1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1197],{59565:function(e,r,t){t.d(r,{Z:function(){return c}});var n=t(7653);/** 2 * @license lucide-react v0.428.0 - ISC 3 * 4 * This source code is licensed under the ISC license. 5 * See the LICENSE file in the root directory of this source tree. 6 */let i=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),o=function(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];return r.filter((e,r,t)=>!!e&&t.indexOf(e)===r).join(" ")};/** 7 * @license lucide-react v0.428.0 - ISC 8 * 9 * This source code is licensed under the ISC license. 10 * See the LICENSE file in the root directory of this source tree. 11 */var a={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** 12 * @license lucide-react v0.428.0 - ISC 13 * 14 * This source code is licensed under the ISC license. 15 * See the LICENSE file in the root directory of this source tree. 16 */let s=(0,n.forwardRef)((e,r)=>{let{color:t="currentColor",size:i=24,strokeWidth:s=2,absoluteStrokeWidth:c,className:l="",children:d,iconNode:p,...u}=e;return(0,n.createElement)("svg",{ref:r,...a,width:i,height:i,stroke:t,strokeWidth:c?24*Number(s)/Number(i):s,className:o("lucide",l),...u},[...p.map(e=>{let[r,t]=e;return(0,n.createElement)(r,t)}),...Array.isArray(d)?d:[d]])}),c=(e,r)=>{let t=(0,n.forwardRef)((t,a)=>{let{className:c,...l}=t;return(0,n.createElement)(s,{ref:a,iconNode:r,className:o("lucide-".concat(i(e)),c),...l})});return t.displayName="".concat(e),t}},27251:function(e,r,t){t.d(r,{Z:function(){return n}});/** 17 * @license lucide-react v0.428.0 - ISC 18 * 19 * This source code is licensed under the ISC license. 20 * See the LICENSE file in the root directory of this source tree. 21 */let n=(0,t(59565).Z)("Fingerprint",[["path",{d:"M12 10a2 2 0 0 0-2 2c0 1.02-.1 2.51-.26 4",key:"1nerag"}],["path",{d:"M14 13.12c0 2.38 0 6.38-1 8.88",key:"o46ks0"}],["path",{d:"M17.29 21.02c.12-.6.43-2.3.5-3.02",key:"ptglia"}],["path",{d:"M2 12a10 10 0 0 1 18-6",key:"ydlgp0"}],["path",{d:"M2 16h.01",key:"1gqxmh"}],["path",{d:"M21.8 16c.2-2 .131-5.354 0-6",key:"drycrb"}],["path",{d:"M5 19.5C5.5 18 6 15 6 12a6 6 0 0 1 .34-2",key:"1tidbn"}],["path",{d:"M8.65 22c.21-.66.45-1.32.57-2",key:"13wd9y"}],["path",{d:"M9 6.8a6 6 0 0 1 9 5.2v2",key:"1fr1j5"}]])},31197:function(e,r,t){t.r(r),t.d(r,{PasskeyStatusScreen:function(){return h},PasskeyStatusScreenView:function(){return u},default:function(){return h}});var n=t(27573),i=t(27251),o=t(7653),a=t(91628),s=t(31796),c=t(88089),l=t(36170),d=t(3538),p=t(68150);t(69021),t(97347),t(26996),t(7220),t(61899);let u=({status:e,passkeySignupFlow:r=!1,error:t,onRetry:o})=>(0,n.jsx)(p.S,{title:(()=>{switch(e){case"loading":return"Waiting for passkey";case"success":return"Success";case"error":return"Something went wrong"}})(),subtitle:(0,n.jsx)(g,{children:(()=>{switch(e){case"loading":return r?"Please follow prompts to register your passkey.":"Please follow prompts to verify your passkey.\nYou will have to sign up with another method first to register a passkey for your account.";case"success":return"You've successfully logged in with your passkey.";case"error":if(t instanceof c.c){if(t.privyErrorCode===c.b.CANNOT_LINK_MORE_OF_TYPE)return"Cannot link more passkeys to account.";if(t.privyErrorCode===c.b.PASSKEY_NOT_ALLOWED)return"Passkey request timed out or rejected by user.\nYou will have to sign up with another method first to register a passkey for your account."}return"An unknown error occurred.\nYou will have to sign up with another method first to register a passkey for your account."}})()}),icon:i.Z,iconVariant:"loading",iconLoadingStatus:{success:"success"===e,fail:"error"===e},primaryCta:"error"===e&&o?{label:"Retry",onClick:o}:"success"===e?{label:"Continue",disabled:!0}:void 0,watermark:!0}),h={component:()=>{let{data:e,setModalData:r,navigate:t}=(0,l.a)(),i=(0,s.u)(),{loginWithPasskey:a,signupWithPasskey:p,closePrivyModal:h,createAnalyticsEvent:g}=(0,c.u)(),{user:f,logout:m}=(0,l.u)(),{passkeySignupFlow:y}=e?.passkeyAuthModalData??{},v=s.q-500,[x,b]=(0,o.useState)("loading"),[w,k]=(0,o.useState)(null),C=(0,o.useRef)([]),j=e=>{C.current=[e,...C.current]};(0,o.useEffect)(()=>()=>
21{C.current.forEach(e=>clearTimeout(e)),C.current=[]},[]);let S=async()=>{b("loading");try{y?await p():await a(),b("success")}catch(e){k(e),b("error")}};return(0,o.useEffect)(()=>{if("success"===x&&f){if(i?.legal.requireUsersAcceptTerms&&!f.hasAcceptedTerms)return void j(setTimeout(()=>{t("AffirmativeConsentScreen")},v));if(!(0,d.s)(f,i?.embeddedWallets))return void j(setTimeout(()=>{h({shouldCallAuthOnSuccess:!0,isSuccess:!0})},s.q));j(setTimeout(()=>{r({createWallet:{onSuccess:()=>{},onFailure:e=>{console.error(e),g({eventName:"embedded_wallet_creation_failure_logout",payload:{error:e,screen:"PasskeyStatusScreen"}}),m()},callAuthOnSuccessOnClose:!0}}),t("EmbeddedWalletOnAccountCreateScreen")},v))}},[f,x]),(0,o.useEffect)(()=>{S()},[]),(0,n.jsx)(u,{status:x,passkeySignupFlow:y,error:w,onRetry:S})}},g=a.zo.span.withConfig({displayName:"SubtitleText",componentId:"sc-5f92460f-0"})(["white-space:pre-wrap;"])},54037:function(e,r,t){t.d(r,{S:function(){return k}});var n=t(27573),i=t(7653),o=t(91628),a=t(50800),s=t(75593),c=t(29981);let l=o.zo.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=o.zo.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=o.zo.div.withConfig({displayName:"HeaderContainer",componentId:"sc-2e815abe-2"})(["position:relative;display:flex;flex-direction:column;"]),u=(0,o.zo)(s.M).withConfig({displayName:"StyledModalHeader",componentId:"sc-2e815abe-3"})(["margin:0 -8px;"]),h=o.zo.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=o.zo.div.withConfig({displayName:"FooterContainer",componentId:"sc-2e815abe-5"})(["display:flex;flex-direction:column;gap:var(--screen-space-lg);"]),f=o.zo.div.withConfig({displayName:"CenteredHeader",componentId:"sc-2e815abe-6"})(["text-align:center;display:flex;flex-direction:column;align-items:center;gap:var(--screen-space);"]),m=o.zo.div.withConfig({displayName:"TitleContainer",componentId:"sc-2e815abe-7"})(["display:flex;flex-direction:column;gap:4px;"]),y=o.zo.h3.withConfig({displayName:"HeaderTitle",componentId:"sc-2e815abe-8"})(["&&{font-size:20px;line-height:32px;font-weight:500;color:var(--privy-color-foreground);margin:0;}"]),v=o.zo.p.withConfig({displayName:"HeaderSubtitle",componentId:"sc-2e815abe-9"})(["&&{margin:0;font-size:16px;font-weight:300;line-height:24px;color:var(--privy-color-foreground);}"]),x=o.zo.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=o.zo.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=o.zo.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;
21left:50%;top:50%;transform:translate(-50%,-50%);}"]),k=({children:e,...r})=>(0,n.jsx)(l,{children:(0,n.jsx)(d,{...r,children:e})}),C=o.zo.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,o.zo)(s.B).withConfig({displayName:"StyledBlobbyFooter",componentId:"sc-2e815abe-14"})(["padding:0;&& a{padding:0;color:var(--privy-color-foreground-3);}"]),S=o.zo.div.withConfig({displayName:"ProgressBarFill",componentId:"sc-2e815abe-15"})(["height:100%;width:","%;background:var(--privy-color-foreground-3);border-radius:2px;transition:width 300ms ease-in-out;"],({pct:e})=>e),z=({step:e})=>e?(0,n.jsx)(C,{children:(0,n.jsx)(S,{pct:Math.min(100,e.current/e.total*100)})}):null;k.Header=({title:e,subtitle:r,icon:t,iconVariant:i,iconLoadingStatus:o,showBack:a,onBack:s,showInfo:c,onInfo:l,showClose:d,onClose:h,step:g,...x})=>(0,n.jsxs)(p,{...x,children:[(0,n.jsx)(u,{backFn:a?s:void 0,infoFn:c?l:void 0,onClose:d?h:void 0,closeable:d}),(t||i||e||r)&&(0,n.jsxs)(f,{children:[t||i?(0,n.jsx)(k.Icon,{icon:t,variant:i,loadingStatus:o}):null,(0,n.jsxs)(m,{children:[e&&(0,n.jsx)(y,{children:e}),r&&(0,n.jsx)(v,{children:r})]})]}),g&&(0,n.jsx)(z,{step:g})]}),(k.Body=i.forwardRef(({children:e,...r},t)=>(0,n.jsx)(h,{ref:t,...r,children:e}))).displayName="Screen.Body",k.Footer=({children:e,...r})=>(0,n.jsx)(g,{id:"privy-content-footer-container",...r,children:e}),k.Actions=({children:e,...r})=>(0,n.jsx)(N,{...r,children:e}),k.HelpText=({children:e,...r})=>(0,n.jsx)(I,{...r,children:e}),k.Watermark=()=>(0,n.jsx)(j,{}),k.Icon=({icon:e,variant:r="subtle",loadingStatus:t})=>"logo"===r&&e?(0,n.jsx)(b,"string"==typeof e?{children:(0,n.jsx)("img",{src:e,alt:""})}:i.isValidElement(e)?{children:e}:{children:i.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:t?.success,fail:t?.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"}}):i.isValidElement(e)?i.cloneElement(e,{style:{width:"38px",height:"38px"}}):i.createElement(e,{style:{width:"38px",height:"38px"}})]})}):(0,n.jsx)(x,{$variant:r,children:(0,n.jsx)(c.N,{size:"64px"})}):(0,n.jsx)(x,{$variant:r,children:e&&("string"==typeof e?(0,n.jsx)("img",{src:e,alt:"",style:{width:"32px",height:"32px",borderRadius:"6px"}}):i.isValidElement(e)?e:i.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 N=o.zo.div.withConfig({displayName:"ActionsContainer",componentId:"sc-2e815abe-16"})(["width:100%;display:flex;flex-direction:column;gap:calc(var(--screen-space) / 2);"]),I=o.zo.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);}}"])},68150:function(e,r,t){t.d(r,{S:function(){return a}});var n=t(27573),i=t(81781),o=t(54037);let a=({primaryCta:e,secondaryCta:r,helpText:t,watermark:a=!0,children:s,...c})=>{let l=e||r?(0,n.jsxs)(n.Fragment,{children:[e&&(()=>{let{label:r,...t}=e,o=t.variant||"primary";return(0,n.jsx)(i.B,{...t,variant:o,style:{width:"100%",...t.style},children:r})})(),r&&(()=>{let{label:e,...t}=r,o=t.variant||"secondary";return(0,n.jsx)(i.B,{...t,variant:o,style:{width:"100%",...t.style},children:e})})()]}):null;return(0,n.jsxs)(o.S,{id:c.id,className:c.className,children:[(0,n.jsx)(o.S.Header,{...c}),s?(0,n.jsx)(o.S.Body,{children:s}):null,t||l||a?(0,n.jsxs)(o.S.Footer,{children:[t?(0,n.jsx)(o.S.HelpText,{children:t}):null,l?(0,n.jsx)(o.S.Actions,{children:l}):null,a?(0,n.jsx)(o.S.Watermark,{}):null]}):null]})}},29981:function(e,r,t){t.d(r,{N:function(){return o}});var n=t(27573),i=t(91628);let o=({size:e,centerIcon:r})=>(0,n.jsx)(a,{$size:e,children:(0,n.jsxs)(s,{children:[(0,n.jsx)(l,{}),(0,n.jsx)(d,{}),r?(0,n.jsx)(c,{children:r}):null]})}),a=i.zo.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"),s=i.zo.div.withConfig({displayName:"SpinnerContainer",componentId:"sc-ebc93df8-1"})(["position:relative;height:var(--spinner-size);width:var(--spinner-size);opacity:1;animation:fadein 200ms ease;"]),c=i.zo.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);}"]),l=i.zo.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=i.zo.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);}}"])},3538:function(e,r,t){t.d(r,{s:function(){return i}});var n=t(80223);let i=(e,r)=>(0,n.s)(e,r.ethereum.createOnLogin)||(0,n.k)(e,r.solana.createOnLogin)}}]);
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.