1/*! For license information please see 4978.ee9c8832.chunk.js.LICENSE.txt */ 2"use strict";(self.webpackChunkico_react=self.webpackChunkico_react||[]).push([[4978],{3021:(e,r,t)=>{t.d(r,{A:()=>i});const i=(0,t(90513).A)("fingerprint-pattern",[["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"}]])},23316:(e,r,t)=>{t.d(r,{S:()=>p});var i=t(24107),n=t(15882),o=t(90034),a=t(67980),s=t(43122);const c=["primaryCta","secondaryCta","helpText","watermark","children"],l=["label"],d=["label"],p=e=>{let{primaryCta:r,secondaryCta:t,helpText:p,watermark:u=!0,children:h}=e,g=(0,n.A)(e,c),m=r||t?(0,o.jsxs)(o.Fragment,{children:[r&&(()=>{let{label:e}=r,t=(0,n.A)(r,l),s=t.variant||"primary";return(0,o.jsx)(a.B,(0,i.A)((0,i.A)({},t),{},{variant:s,style:(0,i.A)({width:"100%"},t.style),children:e}))})(),t&&(()=>{let{label:e}=t,r=(0,n.A)(t,d),s=r.variant||"secondary";return(0,o.jsx)(a.B,(0,i.A)((0,i.A)({},r),{},{variant:s,style:(0,i.A)({width:"100%"},r.style),children:e}))})()]}):null;return(0,o.jsxs)(s.S,{id:g.id,className:g.className,children:[(0,o.jsx)(s.S.Header,(0,i.A)({},g)),h?(0,o.jsx)(s.S.Body,{children:h}):null,p||m||u?(0,o.jsxs)(s.S.Footer,{children:[p?(0,o.jsx)(s.S.HelpText,{children:p}):null,m?(0,o.jsx)(s.S.Actions,{children:m}):null,u?(0,o.jsx)(s.S.Watermark,{}):null]}):null]})}},43122:(e,r,t)=>{t.d(r,{S:()=>z});var i=t(24107),n=t(15882),o=t(90034),a=t(57722),s=t(52610),c=t(1991),l=t(33898),d=t(76107);const p=["children"],u=["title","subtitle","icon","iconVariant","iconLoadingStatus","showBack","onBack","showInfo","onInfo","showClose","onClose","step"],h=["children"],g=["children"],m=["children"],v=["children"],y=s.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);"]),f=s.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);"]),b=s.I4.div.withConfig({displayName:"HeaderContainer",componentId:"sc-2e815abe-2"})(["position:relative;display:flex;flex-direction:column;"]),x=(0,s.I4)(l.M).withConfig({displayName:"StyledModalHeader",componentId:"sc-2e815abe-3"})(["margin:0 -8px;"]),w=s.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;"],e=>{let{$colorScheme:r}=e;return"light"===r?"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"===r?"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}),k=s.I4.div.withConfig({displayName:"FooterContainer",componentId:"sc-2e815abe-5"})(["display:flex;flex-direction:column;gap:var(--screen-space-lg);"]);let C=s.I4.div.withConfig({displayName:"CenteredHeader",componentId:"sc-2e815abe-6"})(["text-align:center;display:flex;flex-direction:column;align-items:center;gap:var(--screen-space);"]),I=s.I4.div.withConfig({displayName:"TitleContainer",componentId:"sc-2e815abe-7"})(["display:flex;flex-direction:column;gap:4px;"]),A=s.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;}"]),j=s.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);}"]),S=s.I4.div.withConfig({displayName:"IconContainer",componentId:"sc-2e815abe-10"})(["background:",";border-radius:50%;width:64px;
2height:64px;display:flex;align-items:center;justify-content:center;"],e=>{let{$variant:r}=e;switch(r){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)"}}),N=s.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;}"]),E=s.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%);}"]);const z=e=>{let{children:r}=e,t=(0,n.A)(e,p);return(0,o.jsx)(y,{children:(0,o.jsx)(f,(0,i.A)((0,i.A)({},t),{},{children:r}))})};let F=s.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;"]),W=(0,s.I4)(l.B).withConfig({displayName:"StyledBlobbyFooter",componentId:"sc-2e815abe-14"})(["padding:0;&& a{padding:0;color:var(--privy-color-foreground-3);}"]),T=s.I4.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;"],e=>{let{pct:r}=e;return r}),B=e=>{let{step:r}=e;return r?(0,o.jsx)(F,{children:(0,o.jsx)(T,{pct:Math.min(100,r.current/r.total*100)})}):null};z.Header=e=>{let{title:r,subtitle:t,icon:a,iconVariant:s,iconLoadingStatus:c,showBack:l,onBack:d,showInfo:p,onInfo:h,showClose:g,onClose:m,step:v}=e,y=(0,n.A)(e,u);return(0,o.jsxs)(b,(0,i.A)((0,i.A)({},y),{},{children:[(0,o.jsx)(x,{backFn:l?d:void 0,infoFn:p?h:void 0,onClose:g?m:void 0,closeable:g}),(a||s||r||t)&&(0,o.jsxs)(C,{children:[a||s?(0,o.jsx)(z.Icon,{icon:a,variant:s,loadingStatus:c}):null,(0,o.jsxs)(I,{children:[r&&(0,o.jsx)(A,{children:r}),t&&(0,o.jsx)(j,{children:t})]})]}),v&&(0,o.jsx)(B,{step:v})]}))},(z.Body=a.forwardRef((e,r)=>{let{children:t}=e,a=(0,n.A)(e,h);return(0,o.jsx)(w,(0,i.A)((0,i.A)({ref:r},a),{},{children:t}))})).displayName="Screen.Body",z.Footer=e=>{let{children:r}=e,t=(0,n.A)(e,g);return(0,o.jsx)(k,(0,i.A)((0,i.A)({id:"privy-content-footer-container"},t),{},{children:r}))},z.Actions=e=>{let{children:r}=e,t=(0,n.A)(e,m);return(0,o.jsx)(M,(0,i.A)((0,i.A)({},t),{},{children:r}))},z.HelpText=e=>{let{children:r}=e,t=(0,n.A)(e,v);return(0,o.jsx)(L,(0,i.A)((0,i.A)({},t),{},{children:r}))},z.Watermark=()=>(0,o.jsx)(W,{}),z.Icon=e=>{let{icon:r,variant:t="subtle",loadingStatus:i}=e;return"logo"===t&&r?(0,o.jsx)(N,"string"==typeof r?{children:(0,o.jsx)("img",{src:r,alt:""})}:a.isValidElement(r)?{children:r}:{children:a.createElement(r)}):"loading"===t?r?(0,o.jsx)(E,{children:(0,o.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center"},children:[(0,o.jsx)(c.a4,{success:null===i||void 0===i?void 0:i.success,fail:null===i||void 0===i?void 0:i.fail}),"string"==typeof r?(0,o.jsx)("span",{style:{background:"url('".concat(r,"') 0 0 / contain"),height:"38px",width:"38px",borderRadius:"6px",margin:"auto",backgroundSize:"contain"}}):a.isValidElement(r)?a.cloneElement(r,{style:{width:"38px",height:"38px"}}):a.createElement(r,{style:{width:"38px",height:"38px"}})]})}):(0,o.jsx)(S,{$variant:t,children:(0,o.jsx)(d.N,{size:"64px"})}):(0,o.jsx)(S,{$variant:t,children:r&&("string"==typeof r?(0,o.jsx)("img",{src:r,alt:"",style:{width:"32px",height:"32px",borderRadius:"6px"}}):a.isValidElement(r)?r:a.createElement(r,{width:32,height:32,stroke:(()=>{switch(t){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 M=s.I4.div.withConfig({displayName:"ActionsContainer",componentId:"sc-2e815abe-16"})(["width:100%;display:flex;flex-direction:column;gap:calc(var(--screen-space) / 2);"]),L=s.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);}}"])},44978:(e,r,t)=>{t.r(r),t.d(r,{PasskeyStatusScreen:()=>h,PasskeyStatusScreenView:()=>u,default:()=>h});var i=t(90034),n=t(3021),o=t(57722),a=t(52610),s=t(99844),c=t(51380),l=t
2(49931),d=t(47098),p=t(23316);t(88404),t(30549),t(2035),t(82425),t(82595);const u=e=>{let{status:r,passkeySignupFlow:t=!1,error:o,onRetry:a}=e;return(0,i.jsx)(p.S,{title:(()=>{switch(r){case"loading":return"Waiting for passkey";case"success":return"Success";case"error":return"Something went wrong"}})(),subtitle:(0,i.jsx)(g,{children:(()=>{switch(r){case"loading":return t?"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(o instanceof c.c){if(o.privyErrorCode===c.b.CANNOT_LINK_MORE_OF_TYPE)return"Cannot link more passkeys to account.";if(o.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:n.A,iconVariant:"loading",iconLoadingStatus:{success:"success"===r,fail:"error"===r},primaryCta:"error"===r&&a?{label:"Retry",onClick:a}:"success"===r?{label:"Continue",disabled:!0}:void 0,watermark:!0})},h={component:()=>{var e;let{data:r,setModalData:t,navigate:n}=(0,l.a)(),a=(0,s.u)(),{loginWithPasskey:p,signupWithPasskey:h,closePrivyModal:g,createAnalyticsEvent:m}=(0,c.u)(),{user:v,logout:y}=(0,l.u)(),{passkeySignupFlow:f}=null!==(e=null===r||void 0===r?void 0:r.passkeyAuthModalData)&&void 0!==e?e:{},b=s.q-500,[x,w]=(0,o.useState)("loading"),[k,C]=(0,o.useState)(null),I=(0,o.useRef)([]),A=e=>{I.current=[e,...I.current]};(0,o.useEffect)(()=>()=>{I.current.forEach(e=>clearTimeout(e)),I.current=[]},[]);let j=async()=>{w("loading");try{f?await h():await p(),w("success")}catch(e){C(e),w("error")}};return(0,o.useEffect)(()=>{if("success"===x&&v){if(null!==a&&void 0!==a&&a.legal.requireUsersAcceptTerms&&!v.hasAcceptedTerms)return void A(setTimeout(()=>{n("AffirmativeConsentScreen")},b));if(!(0,d.s)(v,null===a||void 0===a?void 0:a.embeddedWallets))return void A(setTimeout(()=>{g({shouldCallAuthOnSuccess:!0,isSuccess:!0})},s.q));A(setTimeout(()=>{t({createWallet:{onSuccess:()=>{},onFailure:e=>{console.error(e),m({eventName:"embedded_wallet_creation_failure_logout",payload:{error:e,screen:"PasskeyStatusScreen"}}),y()},callAuthOnSuccessOnClose:!0}}),n("EmbeddedWalletOnAccountCreateScreen")},b))}},[v,x]),(0,o.useEffect)(()=>{j()},[]),(0,i.jsx)(u,{status:x,passkeySignupFlow:f,error:k,onRetry:j})}};let g=a.I4.span.withConfig({displayName:"SubtitleText",componentId:"sc-5f92460f-0"})(["white-space:pre-wrap;"])},47098:(e,r,t)=>{t.d(r,{s:()=>n});var i=t(78055);const n=(e,r)=>(0,i.s)(e,r.ethereum.createOnLogin)||(0,i.k)(e,r.solana.createOnLogin)},76107:(e,r,t)=>{t.d(r,{N:()=>o});var i=t(90034),n=t(52610);const o=e=>{let{size:r,centerIcon:t}=e;return(0,i.jsx)(a,{$size:r,children:(0,i.jsxs)(s,{children:[(0,i.jsx)(l,{}),(0,i.jsx)(d,{}),t?(0,i.jsx)(c,{children:t}):null]})})};let a=n.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"),s=n.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;"]),c=n.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);}"]),l=n.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=n.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);}}"])},90513:(e,r,t)=>{t.d(r,{A:()=>u});var i=t(24107),n=t(15882),o=t(57722);const a=e=>{const r=(e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,r,t)=>t?t.toUpperCase():r.toLowerCase()))(e);return r.charAt(0).toUpperCase()+r.slice(1)},s=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return r.filter((e,r,t)=>Boolean(e)&&""!==e.trim()&&t.indexOf(e)===r).join(" ").trim()};var c={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"};const l=["color","size","strokeWidth","absoluteStrokeWidth","className","children","iconNode"],d=(0,o.forwardRef)((e,r)=>{let{color:t="currentColor",size:a=24,strokeWidth:d=2,absoluteStrokeWidth:p,className:u="",children:h,iconNode:g}=e,m=(0,n.A)(e,l);return(0,o.createElement)("svg",(0,i.A)((0,i.A)((0,i.A)({ref:r},c),{},{width:a,height:a,stroke:t,strokeWidth:p?24*Number(d)/Number(a):d,className:s("lucide",u)}
2,!h&&!(e=>{for(const r in e)if(r.startsWith("aria-")||"role"===r||"title"===r)return!0})(m)&&{"aria-hidden":"true"}),m),[...g.map(e=>{let[r,t]=e;return(0,o.createElement)(r,t)}),...Array.isArray(h)?h:[h]])}),p=["className"],u=(e,r)=>{const t=(0,o.forwardRef)((t,c)=>{let{className:l}=t,u=(0,n.A)(t,p);return(0,o.createElement)(d,(0,i.A)({ref:c,iconNode:r,className:s("lucide-".concat((h=a(e),h.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase())),"lucide-".concat(e),l)},u));var h});return t.displayName=a(e),t}}}]); 3//# sourceMappingURL=4978.ee9c8832.chunk.js.map
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.