PageSourceSearch

https://dynamic-lebkuchen-0238db.netlify.app/static/js/1593.ac80304b.chunk.js

js dynamic-lebkuchen-0238db.netlify.app collected 2026-10-03 10:41:20 UTC 16,749 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkico_react=self.webpackChunkico_react||[]).push([[1593],{12578:(e,r,i)=>{i.r(r),i.d(r,{OAuthStatusScreen:()=>I,OAuthStatusScreenView:()=>C,default:()=>I});var o=i(15882),t=i(24107),n=i(90034),a=i(57722),l=i(49931),d=i(39602),c=i(51074),s=i(66333),p=i(99844),u=i(51380),v=i(47098),h=i(23316),m=i(75960),g=i(78055);i(88404),i(2035),i(30549),i(82425),i(82595);const f=["iconUrl"],y=e=>{let{style:r}=e;return(0,n.jsx)(c.A,{style:(0,t.A)({color:"var(--privy-color-error)"},r)})};let b={google:{name:"Google",component:d.G},discord:{name:"Discord",component:d.D},github:{name:"Github",component:d.b},linkedin:{name:"LinkedIn",component:d.L},twitter:{name:"Twitter",component:d.a},spotify:{name:"Spotify",component:d.S},instagram:{name:"Instagram",component:d.I},tiktok:{name:"Tiktok",component:d.T},line:{name:"LINE",component:s.L},twitch:{name:"Twitch",component:s.T},apple:{name:"Apple",component:d.A}},x=e=>{let{iconUrl:r}=e,i=(0,o.A)(e,f);return a.createElement("svg",(0,t.A)({width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i),a.createElement("foreignObject",{x:"2",y:"2",width:"29",height:"28"},a.createElement("img",{src:r,width:"29",height:"28",style:{display:"block",objectFit:"contain",borderRadius:"4px"},alt:"Provider icon"})))};const w=(e,r)=>{if(e in b)return b[e];
1if((0,l.i)(e)&&r){let i=r.find(r=>r.provider===e);if(i)return{name:i.provider_display_name,component:e=>a.createElement(x,(0,t.A)((0,t.A)({},e),{},{iconUrl:i.provider_icon_url}))}}return{name:"Unknown",component:y}};const C=e=>{let{providerName:r,ProviderLogo:i,success:o,errorMessage:t,onRetry:a}=e,l=o?"Successfully connected with ".concat(r):t?t.message:"Verifying connection to ".concat(r);return(0,n.jsx)(h.S,{title:l,subtitle:o?"You're good to go!":t?t.detail:"Just a few moments more",icon:i,iconVariant:"loading",iconLoadingStatus:{success:o,fail:!!t},secondaryCta:null!==t&&void 0!==t&&t.retryable&&a?{label:"Retry",onClick:a}:void 0,watermark:!0})},I={component:()=>{var e;let{authenticated:r,logout:i,ready:o,user:t}=(0,l.u)(),{setModalData:d,navigate:c,resetNavigation:s}=(0,l.a)(),h=(0,p.u)(),{getAuthMeta:f,initLoginWithOAuth:y,loginWithOAuth:b,updateWallets:x,setReadyToTrue:I,closePrivyModal:A,createAnalyticsEvent:E}=(0,u.u)(),[S,k]=(0,a.useState)(!1),[N,j]=(0,a.useState)(void 0),T=(null===(e=f())||void 0===e?void 0:e.provider)||"google",{name:_,component:O}=w(T,h.customOAuthProviders);return(0,a.useEffect)(()=>{b(T).then(()=>{k(!0),I(!0)}).catch(e=>{var r,i,o,t,n,a,l;if(I(!1),(null===e||void 0===e?void 0:e.privyErrorCode)===u.b.ALLOWLIST_REJECTED)return j(void 0),s(),void c("AllowlistRejectionScreen");if((null===e||void 0===e?void 0:e.privyErrorCode)===u.b.USER_LIMIT_REACHED)return console.error(new u.j(e).toString()),j(void 0),s(),void c("UserLimitReachedScreen");if((null===e||void 0===e?void 0:e.privyErrorCode)===u.b.USER_DOES_NOT_EXIST)return j(void 0),s(),void c("AccountNotFoundScreen");if((null===e||void 0===e?void 0:e.privyErrorCode)===u.b.ACCOUNT_TRANSFER_REQUIRED&&null!==(r=e.data)&&void 0!==r&&null!==(r=r.data)&&void 0!==r&&r.nonce)return j(void 0),s(),d({accountTransfer:{nonce:null===(i=e.data)||void 0===i||null===(i=i.data)||void 0===i?void 0:i.nonce,account:null===(o=e.data)||void 0===o||null===(o=o.data)||void 0===o?void 0:o.subject,displayName:null===(t=e.data)||void 0===t||null===(t=t.data)||void 0===t||null===(t=t.account)||void 0===t?void 0:t.displayName,linkMethod:null===(n=f())||void 0===n?void 0:n.provider,embeddedWalletAddress:null===(a=e.data)||void 0===a||null===(a=a.data)||void 0===a||null===(a=a.otherUser)||void 0===a?void 0:a.embeddedWalletAddress,oAuthUserInfo:null===(l=e.data)||void 0===l||null===(l=l.data)||void 0===l||null===(l=l.otherUser)||void 0===l?void 0:l.oAuthUserInfo}}),void c("LinkConflictScreen");let{retryable:p,detail:v}=function(e,r,i){let o={detail:"",retryable:!1},t=(0,m.e)(r);if((null===e||void 0===e?void 0:e.privyErrorCode)===u.b.LINKED_TO_ANOTHER_USER&&(o.detail="This account has already been linked to another user."),(null===e||void 0===e?void 0:e.privyErrorCode)===u.b.INVALID_CREDENTIALS&&(o.retryable=!0,o.detail="Something went wrong. Try again."),e.privyErrorCode===u.b.OAUTH_USER_DENIED&&(o.detail="Retry and check ".concat(t," to finish connecting your account."),o.retryable=!0),(null===e||void 0===e?void 0:e.privyErrorCode)===u.b.TOO_MANY_REQUESTS&&(o.detail="Too many requests. Please wait before trying again."),(null===e||void 0===e?void 0:e.privyErrorCode)===u.b.TOO_MANY_REQUESTS&&e.message.includes("provider rate limit")){let e=w(r,i).name;o.detail="Request limit reached for ".concat(e,". Please wait a moment and try again.")}if((null===e||void 0===e?void 0:e.privyErrorCode)===u.b.OAUTH_ACCOUNT_SUSPENDED){let e=w(r,i).name;o.detail="Your ".concat(e," account is suspended. Please try another login method.")}return(null===e||void 0===e?void 0:e.privyErrorCode)===u.b.CANNOT_LINK_MORE_OF_TYPE&&(o.detail="You cannot authorize more than one account for this user."),(null===e||void 0===e?void 0:e.privyErrorCode)===u.b.OAUTH_UNEXPECTED&&r.startsWith("privy:")&&(o.detail="Something went wrong. Please try again."),o}(e,T,h.customOAuthProviders);j({retryable:p,detail:v,message:"Authentication failed"})}).finally(()=>{(0,g.o)()})},[_,T]),(0,a.useEffect)(()=>{if(o&&r&&S&&t){if(null!==h&&void 0!==h&&h.legal.requireUsersAcceptTerms&&!t.hasAcceptedTerms){let e=setTimeout(()=>
1{c("AffirmativeConsentScreen")},p.q);return()=>clearTimeout(e)}if((0,v.s)(t,h.embeddedWallets)){let e=setTimeout(()=>{d({createWallet:{onSuccess:()=>{},onFailure:e=>{console.error(e),E({eventName:"embedded_wallet_creation_failure_logout",payload:{error:e,provider:T,screen:"OAuthStatusScreen"}}),i()},callAuthOnSuccessOnClose:!0}}),c("EmbeddedWalletOnAccountCreateScreen")},p.q);return()=>clearTimeout(e)}{let e=setTimeout(()=>A({shouldCallAuthOnSuccess:!0,isSuccess:!0}),p.q);return x(),()=>clearTimeout(e)}}},[o,r,S,t]),(0,n.jsx)(C,{providerName:_,ProviderLogo:O,success:S,errorMessage:N,onRetry:null!==N&&void 0!==N&&N.retryable?()=>{(0,g.o)(),y(T),j(void 0)}:void 0})},isShownBeforeReady:!0}},43122:(e,r,i)=>{i.d(r,{S:()=>T});var o=i(24107),t=i(15882),n=i(90034),a=i(57722),l=i(52610),d=i(1991),c=i(33898),s=i(76107);const p=["children"],u=["title","subtitle","icon","iconVariant","iconLoadingStatus","showBack","onBack","showInfo","onInfo","showClose","onClose","step"],v=["children"],h=["children"],m=["children"],g=["children"],f=l.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);"]),y=l.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=l.I4.div.withConfig({displayName:"HeaderContainer",componentId:"sc-2e815abe-2"})(["position:relative;display:flex;flex-direction:column;"]),x=(0,l.I4)(c.M).withConfig({displayName:"StyledModalHeader",componentId:"sc-2e815abe-3"})(["margin:0 -8px;"]),w=l.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}),C=l.I4.div.withConfig({displayName:"FooterContainer",componentId:"sc-2e815abe-5"})(["display:flex;flex-direction:column;gap:var(--screen-space-lg);"]);let I=l.I4.div.withConfig({displayName:"CenteredHeader",componentId:"sc-2e815abe-6"})(["text-align:center;display:flex;flex-direction:column;align-items:center;gap:var(--screen-space);"]),A=l.I4.div.withConfig({displayName:"TitleContainer",componentId:"sc-2e815abe-7"})(["display:flex;flex-direction:column;gap:4px;"]),E=l.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;}"]),S=l.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);}"]),k=l.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;"],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=l.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;}"]),j=l.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;
1left:50%;top:50%;transform:translate(-50%,-50%);}"]);const T=e=>{let{children:r}=e,i=(0,t.A)(e,p);return(0,n.jsx)(f,{children:(0,n.jsx)(y,(0,o.A)((0,o.A)({},i),{},{children:r}))})};let _=l.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;"]),O=(0,l.I4)(c.B).withConfig({displayName:"StyledBlobbyFooter",componentId:"sc-2e815abe-14"})(["padding:0;&& a{padding:0;color:var(--privy-color-foreground-3);}"]),R=l.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}),L=e=>{let{step:r}=e;return r?(0,n.jsx)(_,{children:(0,n.jsx)(R,{pct:Math.min(100,r.current/r.total*100)})}):null};T.Header=e=>{let{title:r,subtitle:i,icon:a,iconVariant:l,iconLoadingStatus:d,showBack:c,onBack:s,showInfo:p,onInfo:v,showClose:h,onClose:m,step:g}=e,f=(0,t.A)(e,u);return(0,n.jsxs)(b,(0,o.A)((0,o.A)({},f),{},{children:[(0,n.jsx)(x,{backFn:c?s:void 0,infoFn:p?v:void 0,onClose:h?m:void 0,closeable:h}),(a||l||r||i)&&(0,n.jsxs)(I,{children:[a||l?(0,n.jsx)(T.Icon,{icon:a,variant:l,loadingStatus:d}):null,(0,n.jsxs)(A,{children:[r&&(0,n.jsx)(E,{children:r}),i&&(0,n.jsx)(S,{children:i})]})]}),g&&(0,n.jsx)(L,{step:g})]}))},(T.Body=a.forwardRef((e,r)=>{let{children:i}=e,a=(0,t.A)(e,v);return(0,n.jsx)(w,(0,o.A)((0,o.A)({ref:r},a),{},{children:i}))})).displayName="Screen.Body",T.Footer=e=>{let{children:r}=e,i=(0,t.A)(e,h);return(0,n.jsx)(C,(0,o.A)((0,o.A)({id:"privy-content-footer-container"},i),{},{children:r}))},T.Actions=e=>{let{children:r}=e,i=(0,t.A)(e,m);return(0,n.jsx)(U,(0,o.A)((0,o.A)({},i),{},{children:r}))},T.HelpText=e=>{let{children:r}=e,i=(0,t.A)(e,g);return(0,n.jsx)(z,(0,o.A)((0,o.A)({},i),{},{children:r}))},T.Watermark=()=>(0,n.jsx)(O,{}),T.Icon=e=>{let{icon:r,variant:i="subtle",loadingStatus:o}=e;return"logo"===i&&r?(0,n.jsx)(N,"string"==typeof r?{children:(0,n.jsx)("img",{src:r,alt:""})}:a.isValidElement(r)?{children:r}:{children:a.createElement(r)}):"loading"===i?r?(0,n.jsx)(j,{children:(0,n.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center"},children:[(0,n.jsx)(d.a4,{success:null===o||void 0===o?void 0:o.success,fail:null===o||void 0===o?void 0:o.fail}),"string"==typeof r?(0,n.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,n.jsx)(k,{$variant:i,children:(0,n.jsx)(s.N,{size:"64px"})}):(0,n.jsx)(k,{$variant:i,children:r&&("string"==typeof r?(0,n.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(i){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 U=l.I4.div.withConfig({displayName:"ActionsContainer",componentId:"sc-2e815abe-16"})(["width:100%;display:flex;flex-direction:column;gap:calc(var(--screen-space) / 2);"]),z=l.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);}}"])},47098:(e,r,i)=>{i.d(r,{s:()=>t});var o=i(78055);const t=(e,r)=>(0,o.s)(e,r.ethereum.createOnLogin)||(0,o.k)(e,r.solana.createOnLogin)},51074:(e,r,i)=>{i.d(r,{A:()=>l});var o=i(15882),t=i(57722);const n=["title","titleId"];function a(e,r){let{title:i,titleId:a}=e,l=(0,o.A)(e,n);return t.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:r,"aria-labelledby":a},l),i?t.createElement("title",{id:a},i):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 21a9.004 9.004 0 0 0 8.716-6.747M12 21a9.004 9.004 0 0 1-8.716-6.747M12 21c2.485 0 4.5-4.03 4.5-9S14.485 3 12 3m0 18c-2.485 0-4.5-4.03-4.5-9S9.515 3 12 3m0 0a8.997 8.997 0 0 1 7.843 4.582M12 3a8.997 8.997 0 0 0-7.843 4.582m15.686 0A11.953 11.953 0 0 1 12 10.5c-2.998 0-5.74-1.1-7.843-2.918m15.686 0A8.959 8.959 0 0 1 21 12c0 .778-.099 1.533-.284 2.253m0 0A17.919 17.919 0 0 1 12 16.5c-3.162 0-6.133-.815-8.716-2.247m0 0A9.015 9.015 0 0 1 3 12c0-1.605.42-3.113 1.157-4.418"}))}const l=t.forwardRef(a)},75960:(e,r,i)=>{function o(e){return e.charAt(0).toUpperCase()+e.slice(1)}i.d(r,{e:()=>o})},76107:(e,r,i)=>{i.d(r,{N:()=>n});var o=i(90034),t=i(52610);const n=e=>{let{size:r,centerIcon:i}=e;return(0,o.jsx)(a,{$size:r,children:(0,o.jsxs)(l,{children:[(0,o.jsx)(c,{}),(0,o.jsx)(s,{}),i?(0,o.jsx)(d,{children:i}):null]})})};let a=t.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=t.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;"]),d=t.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=t.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%;}"]),s=t.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);}}"])}}]);
2//# sourceMappingURL=1593.ac80304b.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.