1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2365],{19760:(e,r,i)=>{i.d(r,{L:()=>t});var n=i(36495);let o=i(3589).I4.a.withConfig({displayName:"StyledLink",componentId:"sc-c8577138-0"})(["&&{color:",";font-weight:400;text-decoration:",";text-underline-offset:4px;text-decoration-thickness:1px;cursor:",";opacity:",";font-size:",";line-height:",";transition:color 200ms ease,text-decoration-color 200ms ease,opacity 200ms ease;&:hover{color:",";text-decoration:",";text-underline-offset:4px;}&:active{color:",";}&:focus{outline:none;box-shadow:0 0 0 3px #949df9;border-radius:2px;}}"],({$variant:e})=>"underlined"===e?"var(--privy-color-foreground)":"var(--privy-link-navigation-color, var(--privy-color-accent))",({$variant:e})=>"underlined"===e?"underline":"var(--privy-link-navigation-decoration, none)",({$disabled:e})=>e?"not-allowed":"pointer",({$disabled:e})=>e?.5:1,({$size:e})=>{switch(e){case"xs":return"12px";case"sm":return"14px";default:return"16px"}},({$size:e})=>{switch(e){case"xs":return"18px";case"sm":return"22px";default:return"24px"}},({$variant:e,$disabled:r})=>"underlined"===e?"var(--privy-color-foreground)":"var(--privy-link-navigation-color, var(--privy-color-accent))",({$disabled:e})=>e?"none":"underline",({$variant:e,$disabled:r})=>r?"underlined"===e?"var(--privy-color-foreground)":"var(--privy-link-navigation-color, var(--privy-color-accent))":"var(--privy-color-foreground)"),t=({size:e="md",variant:r="navigation",disabled:i=!1,as:t,children:a,onClick:l,...s})=>(0,n.jsx)(o,{as:t,$size:e,$variant:r,$disabled:i,onClick:e=>{i?e.preventDefault():l?.(e)},...s,children:a})},31856:(e,r,i)=>{i.d(r,{s:()=>o});var n=i(13510);let o=(e,r)=>(0,n.s)(e,r.ethereum.createOnLogin)||(0,n.k)(e,r.solana.createOnLogin)},34620:(e,r,i)=>{i.d(r,{A:()=>o});var n=i(1831);let o=n.forwardRef(function({title:e,titleId:r,...i},o){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":r},i),e?n.createElement("title",{id:r},e):null,n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 6.75c0 8.284 6.716 15 15 15h2.25a2.25 2.25 0 0 0 2.25-2.25v-1.372c0-.516-.351-.966-.852-1.091l-4.423-1.106c-.44-.11-.902.055-1.173.417l-.97 1.293c-.282.376-.769.542-1.21.38a12.035 12.035 0 0 1-7.143-7.143c-.162-.441.004-.928.38-1.21l1.293-.97c.363-.271.527-.734.417-1.173L6.963 3.102a1.125 1.125 0 0 0-1.091-.852H4.5A2.25 2.25 0 0 0 2.25 4.5v2.25Z"}))})},36138:(e,r,i)=>{i.d(r,{A:()=>o});var n=i(1831);let o=n.forwardRef(function({title:e,titleId:r,...i},o){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":r},i),e?n.createElement("title",{id:r},e):null,n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21.75 6.75v10.5a2.25 2.25 0 0 1-2.25 2.25h-15a2.25 2.25 0 0 1-2.25-2.25V6.75m19.5 0A2.25 2.25 0 0 0 19.5 4.5h-15a2.25 2.25 0 0 0-2.25 2.25m19.5 0v.243a2.25 2.25 0 0 1-1.07 1.916l-7.5 4.615a2.25 2.25 0 0 1-2.36 0L3.32 8.91a2.25 2.25 0 0 1-1.07-1.916V6.75"}))})},36656:(e,r,i)=>{i.d(r,{S:()=>a});var n=i(36495),o=i(81800),t=i(48158);let a=({primaryCta:e,secondaryCta:r,helpText:i,watermark:a=!0,children:l,...s})=>{let c=e||r?(0,n.jsxs)(n.Fragment,{children:[e&&(()=>{let{label:r,...i}=e,t=i.variant||"primary";return(0,n.jsx)(o.B,{...i,variant:t,style:{width:"100%",...i.style},children:r})})(),r&&(()=>{let{label:e,...i}=r,t=i.variant||"secondary";return(0,n.jsx)(o.B,{...i,variant:t,style:{width:"100%",...i.style},children:e})})()]}):null;return(0,n.jsxs)(t.S,{id:s.id,className:s.className,children:[(0,n.jsx)(t.S.Header,{...s}),l?(0,n.jsx)(t.S.Body,{children:l}):null,i||c||a?(0,n.jsxs)(t.S.Footer,{children:[i?(0,n.jsx)(t.S.HelpText,{children:i}):null,c?(0,n.jsx)(t.S.Actions,{children:c}):null,a?(0,n.jsx)(t.S.Watermark,{}):null]}):null]})}},44267:(e,r,i)=>{i.d(r,{B:()=>o,C:()=>l,F:()=>c,H:()=>a,R:()=>m,S:()=>p,a:()=>d,b:()=>u,c:()=>s,d:()=>g,e:()=>t});var n=i(3589);let o=n.I4.div.withConfig({displayName:"BottomPusherContainer",componentId:"sc-cb963810-0"})(["display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-end;margin-top:auto;gap:16px;flex-grow:100;"]),t=n.I4.div.withConfig({displayName:"CenteredItem",componentId:"sc-cb963810-1"})(["display:flex;flex-direction:column;align-items:center;justify-content:center;flex-grow:1;width:100%;"]),a=n.I4.div.withConfig({displayName:"HorizontallyCenteredItem",componentId:"sc-cb963810-2"})(["display:flex;flex-direction:column;align-items:center;width:100%;"]),l=(0,n.I4)(t).withConfig({displayName:"CenteredItemWithPadding",componentId:"sc-cb963810-3"})(["padding:20px 0;"]),s=(0,n.I4)(t).withConfig({displayName:"CenteredItemWithGap",componentId:"sc-cb963810-4"})(["gap:16px;"]),c=n.I4.div.withConfig({displayName:"FlexContainer",componentId:"sc-cb963810-5"})(["display:flex;flex-direction:column;width:100%;"]),d=n.I4.div.withConfig({displayName:"FixedGappedContainer",componentId:"sc-cb963810-6"})(["display:flex;flex-direction:column;gap:8px;"]),p=n.I4.div.withConfig({displayName:"StyledCalloutSection",componentId:"sc-cb963810-8"})(["display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;text-align:left;gap:8px;padding:16px;margin-top:16px;margin-bottom:16px;width:100%;background:var(--privy-color-background-2);border-radius:var(--privy-border-radius-md);&& h4{color:var(--privy-color-foreground-3);font-size:14px;text-decoration:underline;font-weight:medium;}&& p{color:var(--privy-color-foreground-3);font-size:14px;}"]),u=n.I4.div.withConfig({displayName:"RefactorSpacerTop",componentId:"sc-cb963810-9"})(["height:16px;"]),m=n.I4.div.withConfig({displayName:"RefactorSpacerBottom",componentId:"sc-cb963810-10"}
1)(["height:12px;"]),g=n.I4.div.withConfig({displayName:"ConfigurableSpacer",componentId:"sc-cb963810-12"})(["height:","px;"],e=>e.height??"12")},48158:(e,r,i)=>{i.d(r,{S:()=>C});var n=i(36495),o=i(1831),t=i(3589),a=i(80169),l=i(11396),s=i(92453);let c=t.I4.div.withConfig({displayName:"ScreenRoot",componentId:"sc-2e815abe-0"})(["--screen-space:16px;--screen-space-lg:calc(var(--screen-space) * 1.5);position:relative;overflow:hidden;margin:0 calc(-1 * var(--screen-space));height:100%;border-radius:var(--privy-border-radius-lg);"]),d=t.I4.div.withConfig({displayName:"ScreenRootInner",componentId:"sc-2e815abe-1"})(["display:flex;flex-direction:column;gap:calc(var(--screen-space) * 1.5);width:100%;background:var(--privy-color-background);padding:0 var(--screen-space-lg) var(--screen-space);height:100%;border-radius:var(--privy-border-radius-lg);"]),p=t.I4.div.withConfig({displayName:"HeaderContainer",componentId:"sc-2e815abe-2"})(["position:relative;display:flex;flex-direction:column;"]),u=(0,t.I4)(l.M).withConfig({displayName:"StyledModalHeader",componentId:"sc-2e815abe-3"})(["margin:0 -8px;"]),m=t.I4.div.withConfig({displayName:"BodyContainer",componentId:"sc-2e815abe-4"})(["flex:1 1 auto;display:flex;flex-direction:column;overflow-y:auto;padding:3px;margin:-3px;&::-webkit-scrollbar{display:none;}scrollbar-gutter:stable both-edges;scrollbar-width:none;-ms-overflow-style:none;"," background-repeat:no-repeat;background-size:100% 32px,100% 16px;background-attachment:local,scroll;"],({$colorScheme:e})=>"light"===e?"background: linear-gradient(var(--privy-color-background), var(--privy-color-background) 70%) bottom, linear-gradient(rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 0.06)) bottom;":"dark"===e?"background: linear-gradient(var(--privy-color-background), var(--privy-color-background) 70%) bottom, linear-gradient(rgba(255, 255, 255, 0) 20%, rgba(255, 255, 255, 0.06)) bottom;":void 0),g=t.I4.div.withConfig({displayName:"FooterContainer",componentId:"sc-2e815abe-5"})(["display:flex;flex-direction:column;gap:var(--screen-space-lg);"]),f=t.I4.div.withConfig({displayName:"CenteredHeader",componentId:"sc-2e815abe-6"})(["text-align:center;display:flex;flex-direction:column;align-items:center;gap:var(--screen-space);"]),v=t.I4.div.withConfig({displayName:"TitleContainer",componentId:"sc-2e815abe-7"})(["display:flex;flex-direction:column;gap:4px;"]),h=t.I4.h3.withConfig({displayName:"HeaderTitle",componentId:"sc-2e815abe-8"})(["&&{font-size:20px;line-height:32px;font-weight:500;color:var(--privy-color-foreground);margin:0;}"]),x=t.I4.p.withConfig({displayName:"HeaderSubtitle",componentId:"sc-2e815abe-9"})(["&&{margin:0;font-size:16px;font-weight:300;line-height:24px;color:var(--privy-color-foreground);}"]),y=t.I4.div.withConfig({displayName:"IconContainer",componentId:"sc-2e815abe-10"})(["background:",";border-radius:50%;width:64px;height:64px;display:flex;align-items:center;justify-content:center;"],({$variant:e})=>{switch(e){case"success":return"var(--privy-color-success-bg, #EAFCEF)";case"warning":return"var(--privy-color-warn, #FEF3C7)";case"error":return"var(--privy-color-error-bg, #FEE2E2)";case"loading":case"logo":return"transparent";default:return"var(--privy-color-background-2)"}}),b=t.I4.div.withConfig({displayName:"LogoContainer",componentId:"sc-2e815abe-11"})(["display:flex;align-items:center;justify-content:center;margin-bottom:var(--screen-space);img,svg{max-height:90px;max-width:180px;}"]),w=t.I4.div.withConfig({displayName:"LoadingWithIconContainer",componentId:"sc-2e815abe-12"})(["display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;height:82px;> div{position:relative;}> div > :first-child{position:relative;}> div > :last-child{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);}"]),C=({children:e,...r})=>(0,n.jsx)(c,{children:(0,n.jsx)(d,{...r,children:e})}),I=t.I4.div.withConfig({displayName:"ProgressBarContainer",componentId:"sc-2e815abe-13"})(["position:absolute;top:0;left:calc(-1 * var(--screen-space-lg));width:calc(100% + calc(var(--screen-space-lg) * 2));height:4px;background:var(--privy-color-background-2);border-top-left-radius:inherit;border-top-right-radius:inherit;overflow:hidden;"]),j=(0,t.I4)(l.B).withConfig({displayName:"StyledBlobbyFooter",componentId:"sc-2e815abe-14"})(["padding:0;&& a{padding:0;color:var(--privy-color-foreground-3);}"]),N=t.I4.div.withConfig({displayName:"ProgressBarFill",componentId:"sc-2e815abe-15"}
1)(["height:100%;width:","%;background:var(--privy-color-foreground-3);border-radius:2px;transition:width 300ms ease-in-out;"],({pct:e})=>e),k=({step:e})=>e?(0,n.jsx)(I,{children:(0,n.jsx)(N,{pct:Math.min(100,e.current/e.total*100)})}):null;C.Header=({title:e,subtitle:r,icon:i,iconVariant:o,iconLoadingStatus:t,showBack:a,onBack:l,showInfo:s,onInfo:c,showClose:d,onClose:m,step:g,...y})=>(0,n.jsxs)(p,{...y,children:[(0,n.jsx)(u,{backFn:a?l:void 0,infoFn:s?c:void 0,onClose:d?m:void 0,closeable:d}),(i||o||e||r)&&(0,n.jsxs)(f,{children:[i||o?(0,n.jsx)(C.Icon,{icon:i,variant:o,loadingStatus:t}):null,(0,n.jsxs)(v,{children:[e&&(0,n.jsx)(h,{children:e}),r&&(0,n.jsx)(x,{children:r})]})]}),g&&(0,n.jsx)(k,{step:g})]}),(C.Body=o.forwardRef(({children:e,...r},i)=>(0,n.jsx)(m,{ref:i,...r,children:e}))).displayName="Screen.Body",C.Footer=({children:e,...r})=>(0,n.jsx)(g,{id:"privy-content-footer-container",...r,children:e}),C.Actions=({children:e,...r})=>(0,n.jsx)(E,{...r,children:e}),C.HelpText=({children:e,...r})=>(0,n.jsx)(S,{...r,children:e}),C.Watermark=()=>(0,n.jsx)(j,{}),C.Icon=({icon:e,variant:r="subtle",loadingStatus:i})=>"logo"===r&&e?(0,n.jsx)(b,"string"==typeof e?{children:(0,n.jsx)("img",{src:e,alt:""})}:o.isValidElement(e)?{children:e}:{children:o.createElement(e)}):"loading"===r?e?(0,n.jsx)(w,{children:(0,n.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center"},children:[(0,n.jsx)(a.a4,{success:i?.success,fail:i?.fail}),"string"==typeof e?(0,n.jsx)("span",{style:{background:`url('${e}') 0 0 / contain`,height:"38px",width:"38px",borderRadius:"6px",margin:"auto",backgroundSize:"contain"}}):o.isValidElement(e)?o.cloneElement(e,{style:{width:"38px",height:"38px"}}):o.createElement(e,{style:{width:"38px",height:"38px"}})]})}):(0,n.jsx)(y,{$variant:r,children:(0,n.jsx)(s.N,{size:"64px"})}):(0,n.jsx)(y,{$variant:r,children:e&&("string"==typeof e?(0,n.jsx)("img",{src:e,alt:"",style:{width:"32px",height:"32px",borderRadius:"6px"}}):o.isValidElement(e)?e:o.createElement(e,{width:32,height:32,stroke:(()=>{switch(r){case"success":return"var(--privy-color-icon-success)";case"warning":return"var(--privy-color-icon-warning)";case"error":return"var(--privy-color-icon-error)";default:return"var(--privy-color-icon-muted)"}})(),strokeWidth:2}))});let E=t.I4.div.withConfig({displayName:"ActionsContainer",componentId:"sc-2e815abe-16"})(["width:100%;display:flex;flex-direction:column;gap:calc(var(--screen-space) / 2);"]),S=t.I4.p.withConfig({displayName:"HelpTextContainer",componentId:"sc-2e815abe-17"})(["&&{margin:0;width:100%;text-align:center;color:var(--privy-color-foreground-3);font-size:14px;line-height:22px;& a{color:var(--privy-color-accent);}}"])},92365:(e,r,i)=>{i.r(r),i.d(r,{AwaitingPasswordlessCodeScreen:()=>j,AwaitingPasswordlessCodeScreenView:()=>h,default:()=>j});var n=i(36495),o=i(1831);let t=o.forwardRef(function({title:e,titleId:r,...i},n){return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":r},i),e?o.createElement("title",{id:r},e):null,o.createElement("path",{fillRule:"evenodd",d:"M16.704 4.153a.75.75 0 0 1 .143 1.052l-8 10.5a.75.75 0 0 1-1.127.075l-4.5-4.5a.75.75 0 0 1 1.06-1.06l3.894 3.893 7.48-9.817a.75.75 0 0 1 1.05-.143Z",clipRule:"evenodd"}))});var a=i(36138),l=i(34620),s=i(45660),c=i(3589),d=i(44267),p=i(19760),u=i(41674),m=i(55996),g=i(38017),f=i(31856),v=i(36656);i(87635),i(12226),i(49606),i(21124);let h=({contactMethod:e,authFlow:r,appName:i="Privy",whatsAppEnabled:c=!1,onBack:u,onCodeSubmit:m,onResend:g,errorMessage:f,success:h=!1,resendCountdown:b=0,onInvalidInput:w,onClearError:C})=>{let[I,j]=(0,o.useState)(y);(0,o.useEffect)(()=>{f||j(y)},[f]);let _=async e=>{e.preventDefault();let r=e.currentTarget.value.replace(" ","");if(""===r)return;if(isNaN(Number(r)))return void w?.("Code should be numeric");C?.();let i=Number(e.currentTarget.name?.charAt(5)),n=[...r||[""]].slice(0,x-i),o=[...I.slice(0,i),...n,...I.slice(i+n.length)];j(o);let t=Math.min(Math.max(i+n.length,0),x-1);if(!isNaN(Number(e.currentTarget.value))){let e=document.querySelector(`input[name=code-${t}]`);e?.focus()}if(o.every(e=>e&&!isNaN(+e))){let e=document.querySelector(`input[name=code-${t}]`);e?.blur(),await m?.(o.join(""))}};return(0,n.jsx)(v.S,{title:"Enter confirmation code",subtitle:(0,n.jsxs)("span","email"===r?{children:["Please check ",(0,n.jsx)(T,{children:e}
1)," for an email from privy.io and enter your code below."]}:{children:["Please check ",(0,n.jsx)(T,{children:e})," for a",c?" WhatsApp":""," message from ",i," and enter your code below."]}),icon:"email"===r?a.A:l.A,onBack:u,showBack:!0,helpText:(0,n.jsxs)(S,{children:[(0,n.jsxs)("span",{children:["Didn't get ","email"===r?"an email":"a message","?"]}),b?(0,n.jsxs)(A,{children:[(0,n.jsx)(t,{color:"var(--privy-color-foreground)",strokeWidth:1.33,height:"12px",width:"12px"}),(0,n.jsx)("span",{children:"Code sent"})]}):(0,n.jsx)(p.L,{as:"button",size:"sm",onClick:g,children:"Resend code"})]}),children:(0,n.jsx)(N,{children:(0,n.jsx)(d.H,{children:(0,n.jsxs)(k,{children:[(0,n.jsx)("div",{children:I.map((e,r)=>(0,n.jsx)("input",{name:`code-${r}`,type:"text",value:I[r],onChange:_,onKeyUp:e=>{"Backspace"===e.key&&(e=>{if(C?.(),j([...I.slice(0,e),"",...I.slice(e+1)]),e>0){let r=document.querySelector(`input[name=code-${e-1}]`);r?.focus()}})(r)},inputMode:"numeric",autoFocus:0===r,pattern:"[0-9]",className:`${h?"success":""} ${f?"fail":""}`,autoComplete:s.Fr?"one-time-code":"off"},r))}),(0,n.jsx)(E,{$fail:!!f,$success:h,children:(0,n.jsx)("span",{children:"Invalid or expired verification code"===f?"Incorrect code":f||(h?"Success!":"")})})]})})})})},x=6,y=Array(6).fill("");var b,w,C=((b=C||{})[b.RESET_AFTER_DELAY=0]="RESET_AFTER_DELAY",b[b.CLEAR_ON_NEXT_VALID_INPUT=1]="CLEAR_ON_NEXT_VALID_INPUT",b),I=((w=I||{})[w.EMAIL=0]="EMAIL",w[w.SMS=1]="SMS",w);let j={component:()=>{let{navigate:e,lastScreen:r,navigateBack:i,setModalData:t,onUserCloseViaDialogOrKeybindRef:a}=(0,g.a)(),l=(0,u.u)(),{closePrivyModal:s,resendEmailCode:c,resendSmsCode:d,getAuthMeta:p,loginWithCode:v,updateWallets:x,createAnalyticsEvent:y}=(0,m.u)(),{authenticated:b,logout:w,user:C}=(0,g.u)(),{whatsAppEnabled:I}=(0,u.u)(),[j,N]=(0,o.useState)(!1),[k,E]=(0,o.useState)(null),[S,A]=(0,o.useState)(null),[T,_]=(0,o.useState)(0);a.current=()=>null;let R=+!p()?.email,L=0===R?p()?.email||"":p()?.phoneNumber||"",$=u.q-500;return(0,o.useEffect)(()=>{if(T){let e=setTimeout(()=>{_(T-1)},1e3);return()=>clearTimeout(e)}},[T]),(0,o.useEffect)(()=>{if(b&&j&&C){if(l?.legal.requireUsersAcceptTerms&&!C.hasAcceptedTerms){let r=setTimeout(()=>{e("AffirmativeConsentScreen")},$);return()=>clearTimeout(r)}if((0,f.s)(C,l.embeddedWallets)){let r=setTimeout(()=>{t({createWallet:{onSuccess:()=>{},onFailure:e=>{console.error(e),y({eventName:"embedded_wallet_creation_failure_logout",payload:{error:e,screen:"AwaitingPasswordlessCodeScreen"}}),w()},callAuthOnSuccessOnClose:!0}}),e("EmbeddedWalletOnAccountCreateScreen")},$);return()=>clearTimeout(r)}{x();let e=setTimeout(()=>s({shouldCallAuthOnSuccess:!0,isSuccess:!0}),u.q);return()=>clearTimeout(e)}}},[b,j,C]),(0,o.useEffect)(()=>{if(k&&0===S){let e=setTimeout(()=>{E(null),A(null);let e=document.querySelector("input[name=code-0]");e?.focus()},1400);return()=>clearTimeout(e)}},[k,S]),(0,n.jsx)(h,{contactMethod:L,authFlow:0===R?"email":"sms",appName:l?.name,whatsAppEnabled:I,onBack:()=>i(),onCodeSubmit:async i=>{try{await v(i),N(!0)}catch(i){if(i instanceof m.e&&i.privyErrorCode===m.b.INVALID_CREDENTIALS)E("Invalid or expired verification code"),A(0);else if(i instanceof m.e&&i.privyErrorCode===m.b.CANNOT_LINK_MORE_OF_TYPE)E(i.message);else{if(i instanceof m.e&&i.privyErrorCode===m.b.USER_LIMIT_REACHED)return console.error(new m.j(i).toString()),void e("UserLimitReachedScreen");if(i instanceof m.e&&i.privyErrorCode===m.b.USER_DOES_NOT_EXIST)return void e("AccountNotFoundScreen");if(i instanceof m.e&&i.privyErrorCode===m.b.LINKED_TO_ANOTHER_USER)return t({errorModalData:{error:i,previousScreen:r??"AwaitingPasswordlessCodeScreen"}}),void e("ErrorScreen",!1);if(i instanceof m.e&&i.privyErrorCode===m.b.DISALLOWED_PLUS_EMAIL)return t({inlineError:{error:i}}),void e("ConnectOrCreateScreen",!1);if(i instanceof m.e&&i.privyErrorCode===m.b.ACCOUNT_TRANSFER_REQUIRED&&i.data?.data?.nonce)return t({accountTransfer:{nonce:i.data?.data?.nonce,account:L,displayName:i.data?.data?.account?.displayName,linkMethod:0===R?"email":"sms",embeddedWalletAddress:i.data?.data?.otherUser?.embeddedWalletAddress}}),void e("LinkConflictScreen");E("Issue verifying code"),A(0)}}},onResend:async()=>{_(30),0===R?await c():await d()},errorMessage:k||void 0,success:j,resendCountdown:T,onInvalidInput:e=>{E(e),A(1)},onClearError:()=>{1===S&&(E(null),A(null))}})}},N=c.I4.div.withConfig({displayName:"PasswordlessCodeContainer",componentId:"sc-6187bfee-0"})(["display:flex;flex-direction:column;align-items:center;justify-content:center;margin:auto;gap:16px;flex-grow:1;width:100%;"]),k=c.I4.div.withConfig({displayName:"CodeInput",componentId:"sc-6187bfee-1"})(["display:flex;flex-direction:column;width:100%;gap:12px;> div:first-child{display:flex;justify-content:center;gap:0.5rem;width:100%;border-radius:var(--privy-border-radius-sm);> input{border:1px solid var(--privy-color-foreground-4);background:var(--privy-color-background);border-radius:var(--privy-border-radius-sm);padding:8px 10px;height:48px;width:40px;text-align:center;font-size:18px;font-weight:600;color:var(--privy-color-foreground);transition:all 0.2s ease;}> input:focus{border:1px solid var(--privy-color-foreground);box-shadow:0 0 0 1px var(--privy-color-foreground);}> input:invalid{border:1px solid var(--privy-color-error);}> input.success{border:1px solid var(--privy-color-border-success);background:var(--privy-color-success-bg);}> input.fail{border:1px solid var(--privy-color-border-error);background:var(--privy-color-error-bg);animation:shake 180ms;animation-iteration-count:2;}}@keyframes shake{0%{transform:translate(1px,0px);}33%{transform:translate(-1px,0px);}67%{transform:translate(-1px,0px);}100%{transform:translate(1px,0px);}}"]),E=c.I4.div.withConfig({displayName:"InputHelp",componentId:"sc-6187bfee-2"})(["line-height:20px;min-height:20px;font-size:14px;font-weight:400;color:",";display:flex;justify-content:center;width:100%;text-align:center;"],e=>e.$success?"var(--privy-color-success-dark)":e.$fail?"var(--privy-color-error-dark)":"transparent"),S=c.I4.div.withConfig({displayName:"HelpTextContainer",componentId:"sc-6187bfee-3"})(["display:flex;gap:8px;align-items:center;justify-content:center;width:100%;color:var(--privy-color-foreground-2);"]),A=c.I4.div.withConfig({displayName:"Badge",componentId:"sc-6187bfee-4"})(["display:flex;align-items:center;justify-content:center;border-radius:var(--privy-border-radius-sm);padding:2px 8px;gap:4px;background:var(--privy-color-background-2);color:var(--privy-color-foreground-2);"]),T=c.I4.span.withConfig({displayName:"BoldWrappingSpan",componentId:"sc-6187bfee-5"})(["font-weight:500;word-break:break-all;color:var(--privy-color-foreground);"])}
1,92453:(e,r,i)=>{i.d(r,{N:()=>t});var n=i(36495),o=i(3589);let t=({size:e,centerIcon:r})=>(0,n.jsx)(a,{$size:e,children:(0,n.jsxs)(l,{children:[(0,n.jsx)(c,{}),(0,n.jsx)(d,{}),r?(0,n.jsx)(s,{children:r}):null]})}),a=o.I4.div.withConfig({displayName:"LoadingContainer",componentId:"sc-ebc93df8-0"})(["--spinner-size:",";display:inline-flex;justify-content:center;align-items:center;@media all and (display-mode:standalone){margin-bottom:30px;}"],e=>e.$size?e.$size:"96px"),l=o.I4.div.withConfig({displayName:"SpinnerContainer",componentId:"sc-ebc93df8-1"})(["position:relative;height:var(--spinner-size);width:var(--spinner-size);opacity:1;animation:fadein 200ms ease;"]),s=o.I4.div.withConfig({displayName:"CenterIconContainer",componentId:"sc-ebc93df8-2"})(["position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;svg,img{width:calc(var(--spinner-size) * 0.4);height:calc(var(--spinner-size) * 0.4);border-radius:var(--privy-border-radius-full);}"]),c=o.I4.div.withConfig({displayName:"CircleFixed",componentId:"sc-ebc93df8-3"})(["position:absolute;top:0;right:0;bottom:0;left:0;width:var(--spinner-size);height:var(--spinner-size);&&{border:4px solid var(--privy-color-border-default);border-radius:50%;}"]),d=o.I4.div.withConfig({displayName:"CircleRotate",componentId:"sc-ebc93df8-4"})(["position:absolute;top:0;right:0;bottom:0;left:0;width:var(--spinner-size);height:var(--spinner-size);animation:spin 1200ms linear infinite;&&{border:4px solid;border-color:var(--privy-color-icon-subtle) transparent transparent transparent;border-radius:50%;}@keyframes spin{from{transform:rotate(0deg);}to{transform:rotate(360deg);}}"])}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.