PageSourceSearch

https://dynamic-lebkuchen-0238db.netlify.app/static/js/6773.9f56d57f.chunk.js

js dynamic-lebkuchen-0238db.netlify.app collected 2026-10-03 10:40:47 UTC 29,139 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkico_react=self.webpackChunkico_react||[]).push([[463,6773],{12228:(e,n,t)=>{t.d(n,{L:()=>s});var o=t(24107),i=t(15882),l=t(90034),a=t(52610);const r=["size","variant","disabled","as","children","onClick"];let c=a.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;}}"],e=>{let{$variant:n}=e;return"underlined"===n?"var(--privy-color-foreground)":"var(--privy-link-navigation-color, var(--privy-color-accent))"},e=>{let{$variant:n}=e;return"underlined"===n?"underline":"var(--privy-link-navigation-decoration, none)"},e=>{let{$disabled:n}=e;return n?"not-allowed":"pointer"},e=>{let{$disabled:n}=e;return n?.5:1},e=>{let{$size:n}=e;switch(n){case"xs":return"12px";case"sm":return"14px";default:return"16px"}},e=>{let{$size:n}=e;switch(n){case"xs":return"18px";case"sm":return"22px";default:return"24px"}},e=>{let{$variant:n,$disabled:t}=e;return"underlined"===n?"var(--privy-color-foreground)":"var(--privy-link-navigation-color, var(--privy-color-accent))"},e=>{let{$disabled:n}=e;return n?"none":"underline"},e=>{let{$variant:n,$disabled:t}=e;return t?"underlined"===n?"var(--privy-color-foreground)":"var(--privy-link-navigation-color, var(--privy-color-accent))":"var(--privy-color-foreground)"});const s=e=>{let{size:n="md",variant:t="navigation",disabled:a=!1,as:s,children:d,onClick:u}=e,v=(0,i.A)(e,r);return(0,l.jsx)(c,(0,o.A)((0,o.A)({as:s,$size:n,$variant:t,$disabled:a,onClick:e=>{a?e.preventDefault():null===u||void 0===u||u(e)}},v),{},{children:d}))}},20079:(e,n,t)=>{t.d(n,{u:()=>l});var o=t(99844);const i={"connectionStatus.successfullyConnected":"Successfully connected with {walletName}","connectionStatus.errorTitle":"{errorMessage}","connectionStatus.connecting":"Connecting","connectionStatus.connectOneWallet":"For the best experience, connect only one wallet at a time.","connectionStatus.checkOtherWindows":"Don't see your wallet? Check your other browser windows.","connectionStatus.stillHere":"Still here?","connectionStatus.tryConnectingAgain":"Try connecting again","connectionStatus.or":"or","connectionStatus.useDifferentLink":"use this different link","connectWallet.connectYourWallet":"Connect a wallet","connectWallet.waitingForWallet":"Waiting for {walletName}","connectWallet.connectToAccount":"Connect a wallet to your {appName} account","connectWallet.installAndConnect":"To connect to {walletName}, install and open the app. Then confirm the connection when prompted.","connectWallet.tryConnectingAgain":"Please try connecting again.","connectWallet.openInApp":"Open in app","connectWallet.copyLink":"Copy link","connectWallet.retry":"Retry","connectWallet.searchPlaceholder":"Search through {count} wallets","connectWallet.noWalletsFound":"No wallets found. Try another search.","connectWallet.lastUsed":"Last used","connectWallet.selectYourWallet":"Select your wallet","connectWallet.selectNetwork":"Select network","connectWallet.goToWallet":"Go to {walletName} to continue","connectWallet.scanToConnect":"Scan code to connect to {walletName}","connectWallet.openOrInstall":"Open or install {walletName}"};function l(){let e=(0,o.u)();return{t:(n,t)=>function(e,n,t,o){let l=null!==(o=null===n||void 0===n?void 0:n[e])&&void 0!==o?o:i[e];return t&&0!==Object.keys(t).length?l.replace(/\{(\w+)\}/g,(e,n)=>{var o;return null!==(o=t[n])&&void 0!==o?o:e}):l}(n,e.intl.textLocalization,t)}}},20463:(e,n,t)=>{t.r(n),t.d(n,{ConnectionStatusScreen:()=>k,ConnectionStatusView:()=>S,default:()=>k,getErrorDetails:()=>x});var o=t(24107),i=t(90034),l=t(57722),a=t(2035),r=t(52610),c=t(78055),s=t(12228),d=t(99844),u=t(20079),v=t(49080),p=t(1991),g=t(10133),h=t(6806),m=t(51380),f=t(49931),y=t(47098),w=t(66252),b=t(23316);t(30549),t(82425),t(82595),t(88404);const C=e=>{var n;let t=null===(n=localStorage.getItem("-walletlink:https://www.walletlink.org:Addresses"))||void 0===n?void 0:n.split(" ").filter(e=>(0,h.q)(e,{strict:!0})).map(e=>(0,g.b)(e));return!(null===t||void 0===t||!t.length)&&!(null===e||void 0===e||!e.linkedAccounts.filter(e=>"wallet"==e.type&&t.includes(e.address)).length)},x=e=>(null===e||void 0===e?void 0:e.privyErrorCode)===m.b.LINKED_TO_ANOTHER_USER?v.C.ERROR_USER_EXISTS:e instanceof v.P&&!e.details.default?e.details:e instanceof v.d?v.C.ERROR_TIMED_OUT:(null===e||void 0===e?void 0:e.privyErrorCode)===m.b.CANNOT_LINK_MORE_OF_TYPE?v.C.ERROR_USER_LIMIT_REACHED:v.C.ERROR_WALLET_CONNECTION,S=e=>{let{walletLogo:n,title:t,subtitle:o,signSuccess:l,errorMessage:a,connectSuccess:r,separateConnectAndSign:c,signing:d,walletConnectRedirectUri:p,walletConnectFallbackUniversalUri:g,hasTabbedAway:h,showCoinbaseWalletResetCta:m,numRetries:f,onBack:y,onSign:w,onRetry:C,onCoinbaseReset:x,onDifferentWallet:S}=e,{t:k}=(0,u.u)(),T=m?{label:"Use a different wallet",onClick:x,disabled:l}:a===v.C.ERROR_USER_EXISTS&&y?{label:"Use a different wallet",onClick:S}:r&&!l&&c?{label:d?"Signing":"Sign with your wallet",onClick:w,disabled:d}:!l&&null!==a&&void 0!==a&&a.retryable&&f<2?{label:"Retry",onClick:C,disabled:!1}:l||a?void 0:{label:k("connectionStatus.connecting"),onClick:()=>{},disabled:!0};return(0,i.jsx)(b.S,{title:t,subtitle:o,icon:n,iconVariant:"loading",iconLoadingStatus:{success:l,fail
1:!!a},primaryCta:T,onBack:y,watermark:!0,children:!r&&p&&!h&&(0,i.jsxs)(I,{children:[k("connectionStatus.stillHere")," ",(0,i.jsx)(s.L,{href:p,target:"_blank",variant:"underlined",size:"sm",children:k("connectionStatus.tryConnectingAgain")}),g&&(0,i.jsxs)(i.Fragment,{children:[" ",k("connectionStatus.or")," ",(0,i.jsx)(s.L,{href:g,target:"_blank",variant:"underlined",size:"sm",children:k("connectionStatus.useDifferentLink")})]})]})})},k={component:()=>{var e,n,t,r,s,g,h,b,k,I,T,E,A,R,_;let j,[W,N]=(0,l.useState)(!1),[L,O]=(0,l.useState)(!1),[F,B]=(0,l.useState)(void 0),{authenticated:U,logout:z}=(0,f.u)(),{navigate:M,navigateBack:D,lastScreen:$,currentScreen:H,setModalData:q,data:V}=(0,f.a)(),P=(0,d.u)(),{t:Y}=(0,u.u)(),{getAuthFlow:X,walletConnectionStatus:Q,closePrivyModal:K,initLoginWithWallet:G,loginWithWallet:J,updateWallets:Z,createAnalyticsEvent:ee}=(0,m.u)(),{walletConnectors:ne}=(0,f.u)(),[te,oe]=(0,l.useState)(0),{user:ie}=(0,f.u)(),le=(0,w.a)(),[ae]=(0,l.useState)((null===ie||void 0===ie?void 0:ie.linkedAccounts.length)||0),[re,ce]=(0,l.useState)(""),[se,de]=(0,l.useState)(""),[ue,ve]=(0,l.useState)(!1),{hasTabbedAway:pe}=function(){let[e,n]=(0,l.useState)(!1),t=(0,l.useCallback)(()=>{document.hidden&&n(!0)},[]);return(0,l.useEffect)(()=>(document.addEventListener("visibilitychange",t),()=>document.removeEventListener("visibilitychange",t)),[t]),{hasTabbedAway:e,reset:()=>n(!1)}}(),{enabled:ge,token:he}=(0,c.a)(),me=(0,p.Q)((null===Q||void 0===Q||null===(e=Q.connector)||void 0===e?void 0:e.walletClientType)||"unknown"),fe=a.Fr&&"wallet_connect_v2"===(null===Q||void 0===Q||null===(n=Q.connector)||void 0===n?void 0:n.connectorType)||a.Fr&&"coinbase_wallet"===(null===Q||void 0===Q||null===(t=Q.connector)||void 0===t?void 0:t.connectorType)||a.Fr&&"base_account"===(null===Q||void 0===Q||null===(r=Q.connector)||void 0===r?void 0:r.connectorType)||a.Fr&&"injected"===(null===Q||void 0===Q||null===(s=Q.connector)||void 0===s?void 0:s.connectorType)&&"phantom"===(null===Q||void 0===Q||null===(g=Q.connector)||void 0===g?void 0:g.walletClientType)||a.Fr&&"solana_adapter"===(null===Q||void 0===Q||null===(h=Q.connector)||void 0===h?void 0:h.connectorType)&&"mobile_wallet_adapter"
1===Q.connector.walletClientType,ye="connected"===(null===Q||void 0===Q?void 0:Q.status),we="switching_to_supported_chain"===(null===Q||void 0===Q?void 0:Q.status);(0,l.useEffect)(()=>{var e,n,t,o,i,l;let a=X(),r=a instanceof c.b||a instanceof c.S?a:void 0;ye&&"solana"===(null===(e=Q.connector)||void 0===e?void 0:e.chainType)&&"phantom"===(null===(n=Q.connector)||void 0===n?void 0:n.walletClientType)&&le(w.b)&&void 0===(null===V||void 0===V||null===(t=V.login)||void 0===t?void 0:t.isSigningInWithLedgerSolana)?M("ConnectLedgerScreen",!1):(ye&&!r&&(!ge||he||U?G(Q.connectedWallet,he,null===V||void 0===V||null===(o=V.login)||void 0===o?void 0:o.disableSignup,null!==V&&void 0!==V&&null!==(i=V.login)&&void 0!==i&&i.isSigningInWithLedgerSolana?"transaction":"plain").then(()=>{ve(!0)}):(q({captchaModalData:{callback:e=>{var n,t;return G(Q.connectedWallet,e,null===V||void 0===V||null===(n=V.login)||void 0===n?void 0:n.disableSignup,null!==V&&void 0!==V&&null!==(t=V.login)&&void 0!==t&&t.isSigningInWithLedgerSolana?"transaction":"plain").then(()=>{ve(!0)})},userIntentRequired:!1,onSuccessNavigateTo:"ConnectionStatusScreen",onErrorNavigateTo:"ErrorScreen"}}),M("CaptchaScreen",!1))),r instanceof c.S&&null!==V&&void 0!==V&&null!==(l=V.login)&&void 0!==l&&l.isSigningInWithLedgerSolana&&(r.messageType="transaction"),r&&fe&&ye&&!r.preparedMessage?r.buildMessage():r&&!fe&&ye&&(L||(async()=>{O(!0),B(void 0);try{var e,n;"wallet_connect_v2"===(null===Q||void 0===Q||null===(e=Q.connector)||void 0===e?void 0:e.connectorType)&&"metamask"===(null===Q||void 0===Q||null===(n=Q.connector)||void 0===n?void 0:n.walletClientType)&&await(0,p.k)(2500),await Ce()}catch(a){console.warn("Auto-prompted signature failed",a)}finally{O(!1)}})()))},[te,ye,ue]),(0,l.useEffect)(()=>{if(ie&&W){let e=d.q-500;if(null!==P&&void 0!==P&&P.legal.requireUsersAcceptTerms&&!ie.hasAcceptedTerms){let n=setTimeout(()=>{M("AffirmativeConsentScreen")},e);return()=>clearTimeout(n)}if((0,y.s)(ie,P.embeddedWallets)){let n=setTimeout(()=>{q({createWallet:{onSuccess:()=>{},onFailure:e=>{console.error(e),ee({eventName:"embedded_wallet_creation_failure_logout",payload:{error:e,screen:"ConnectionStatusScreen"}}),z()},callAuthOnSuccessOnClose:!0}}),M("EmbeddedWalletOnAccountCreateScreen")},e);return()=>clearTimeout(n)}Z();let n=setTimeout(()=>K({shouldCallAuthOnSuccess:!0,isSuccess:!0}),d.q);return()=>clearTimeout(n)}},[ie,W]);let be=e=>{if((null===e||void 0===e?void 0:e.privyErrorCode)!==m.b.ALLOWLIST_REJECTED){var n,t,o,i,l,a,r,s;if((null===e||void 0===e?void 0:e.privyErrorCode)===m.b.USER_LIMIT_REACHED)return console.error(new m.j(e).toString()),void M("UserLimitReachedScreen");if((null===e||void 0===e?void 0:e.privyErrorCode)!==m.b.USER_DOES_NOT_EXIST)return(null===e||void 0===e?void 0:e.privyErrorCode)===m.b.ACCOUNT_TRANSFER_REQUIRED&&null!==(n=e.data)&&void 0!==n&&null!==(n=n.data)&&void 0!==n&&n.nonce?(q({accountTransfer:{nonce:null===(t=e.data)||void 0===t||null===(t=t.data)||void 0===t?void 0:t.nonce,account:null===(o=X())||void 0===o?void 0:o.meta.address,displayName:null===(i=e.data)||void 0===i||null===(i=i.data)||void 0===i||null===(i=i.account)||void 0===i?void 0:i.displayName,externalWalletMetadata:{walletClientType:null===(l=X())||void 0===l?void 0:l.meta.walletClientType,chainId:null===(a=X())||void 0===a?void 0:a.meta.chainId,connectorType:null===(r=X())||void 0===r?void 0:r.meta.connectorType},linkMethod:X()instanceof c.b?"siwe":"siws",embeddedWalletAddress:null===(s=e.data)||void 0===s||null===(s=s.data)||void 0===s||null===(s=s.otherUser)||void 0===s?void 0:s.embeddedWalletAddress}}),void M("LinkConflictScreen")):void B(x(e));M("AccountNotFoundScreen")}else M("AllowlistRejectionScreen")};async function Ce(){try{await J(),N(!0)}catch(e){be(e)}finally{O(!1)}}(0,l.useEffect)(()=>{(null===Q||void 0===Q?void 0:Q.connectError)&&be(null===Q||void 0===Q?void 0:Q.connectError)},[Q]),((e,n)=>{let t=(0,l.useRef)(()=>{});(0,l.useEffect)(()=>{t.current=e}),(0,l.useEffect)(()=>{if(null!==n){let e=setInterval(()=>t.current(),n||0);return()=>clearInterval(e)}},[n])})(()=>{let e="wallet_connect_v2"===xe&&(null===Q||void 0===Q?void 0:Q.connector)instanceof c.W?Q.connector.redirectUri:void 0;e&&ce(e);let n="wallet_connect_v2"===xe&&(null===Q||void 0===Q?void 0:Q.connector)instanceof c.W?Q.connector.fallbackUniversalRedirectUri:void 0;n&&de(n)},(null===Q||void 0===Q?void 0:Q.connector)instanceof c.W&&!re?500:null);let xe=(null===Q||void 0===Q||null===(b=Q.connector)||void 0===b?void 0:b.connectorType)||"injected",Se=(null===Q||void 0===Q||null===(k=Q.connector)||void 0===k?void 0:k.walletClientType)||"unknown",ke=(null===me||void 0===me||null===(I=me.metadata)||void 0===I?void 0:I.shortName)||(null===me||void 0===me?void 0:me.name)||(null===Q||void 0===Q||null===(T=Q.connector)||void 0===T?void 0:T.walletBranding.name)||"Browser Extension",Ie=(null===me||void 0===me||null===(E=me.image_url)||void 0===E?void 0:E.md)||(null===Q||void 0===Q||null===(A=Q.connector)||void 0===A?void 0:A.walletBranding.icon)||(e=>(0,i.jsx)(c.B,(0,o.A)({},e))),Te="Browser Extension"===ke?ke.toLowerCase():ke;j=W?Y("connectionStatus.successfullyConnected",{walletName:Te}):F?Y("connectionStatus.errorTitle",{errorMessage:F.message}):we?"Switching networks":ye?L&&fe?"Signing":"Sign to verify":"Waiting for ".concat(Te);let Ee=Y("connectionStatus.checkOtherWindows");W?Ee=ae===((null===ie||void 0===ie?void 0:ie.linkedAccounts.length)||0)?"Wallet was already linked.":"You're good to go!":te>=2&&F?Ee="Unable to connect wallet":F?Ee=F.detail:we?Ee="Switch your wallet to the requested network.":ye&&fe?Ee="Sign the message in y
1our wallet to verify it belongs to you.":"metamask"===Se&&a.Fr?Ee="Click continue to open and connect MetaMask.":"metamask"===Se?Ee="For the best experience, connect only one wallet at a time.":"wallet_connect"===xe?Ee="Open your mobile wallet app to continue":"coinbase_wallet"===xe?(0,p.T)()||(Ee=C(ie)?"Continue with the Coinbase app. Not the right wallet? Reset your connection below.":"Confirm in the Coinbase app/popup to continue."):(null===V||void 0===V||null===(R=V.login)||void 0===R?void 0:R.isSigningInWithLedgerSolana)&&(Ee="Ledger requires a transaction to verify your identity. You'll sign a transaction that performs no onchain action.");let Ae=null===ne||void 0===ne||null===(_=ne.walletConnectors)||void 0===_?void 0:_.find(e=>"coinbase_wallet"===e.walletClientType),Re="coinbase_wallet"===Se&&(C(ie)||F===v.C.ERROR_USER_EXISTS);return(0,i.jsx)(S,{walletLogo:Ie,title:j,subtitle:Ee,signSuccess:W,errorMessage:F,connectSuccess:ye,separateConnectAndSign:fe,signing:L,walletConnectRedirectUri:re,walletConnectFallbackUniversalUri:se,hasTabbedAway:pe,showCoinbaseWalletResetCta:Re,numRetries:te,onBack:$&&H!==$?D:void 0,onSign:()=>{O(!0),Ce()},onRetry:()=>{oe(te+1),B(void 0),ye?(O(!0),Ce()):null===Q||void 0===Q||Q.connectRetry()},onCoinbaseReset:()=>{Ae&&(null===Ae||void 0===Ae||Ae.disconnect())},onDifferentWallet:D})}};let I=r.I4.p.withConfig({displayName:"RedirectLinksContainer",componentId:"sc-2a867557-0"})(["text-align:center;color:var(--privy-color-foreground-2);font-size:14px;line-height:22px;margin:16px 0;"])},23316:(e,n,t)=>{t.d(n,{S:()=>u});var o=t(24107),i=t(15882),l=t(90034),a=t(67980),r=t(43122);const c=["primaryCta","secondaryCta","helpText","watermark","children"],s=["label"],d=["label"],u=e=>{let{primaryCta:n,secondaryCta:t,helpText:u,watermark:v=!0,children:p}=e,g=(0,i.A)(e,c),h=n||t?(0,l.jsxs)(l.Fragment,{children:[n&&(()=>{let{label:e}=n,t=(0,i.A)(n,s),r=t.variant||"primary";return(0,l.jsx)(a.B,(0,o.A)((0,o.A)({},t),{},{variant:r,style:(0,o.A)({width:"100%"},t.style),children:e}))})(),t&&(()=>{let{label:e}=t,n=(0,i.A)(t,d),r=n.variant||"secondary";return(0,l.jsx)(a.B,(0,o.A)((0,o.A)({},n),{},{variant:r,style:(0,o.A)({width:"100%"},n.style),children:e}))})()]}):null;return(0,l.jsxs)(r.S,{id:g.id,className:g.className,children:[(0,l.jsx)(r.S.Header,(0,o.A)({},g)),p?(0,l.jsx)(r.S.Body,{children:p}):null,u||h||v?(0,l.jsxs)(r.S.Footer,{children:[u?(0,l.jsx)(r.S.HelpText,{children:u}):null,h?(0,l.jsx)(r.S.Actions,{children:h}):null,v?(0,l.jsx)(r.S.Watermark,{}):null]}):null]})}},43122:(e,n,t)=>{t.d(n,{S:()=>_});var o=t(24107),i=t(15882),l=t(90034),a=t(57722),r=t(52610),c=t(1991),s=t(33898),d=t(76107);const u=["children"],v=["title","subtitle","icon","iconVariant","iconLoadingStatus","showBack","onBack","showInfo","onInfo","showClose","onClose","step"],p=["children"],g=["children"],h=["children"],m=["children"],f=r.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=r.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);"]),w=r.I4.div.withConfig({displayName:"HeaderContainer",componentId:"sc-2e815abe-2"})(["position:relative;display:flex;flex-direction:column;"]),b=(0,r.I4)(s.M).withConfig({displayName:"StyledModalHeader",componentId:"sc-2e815abe-3"})(["margin:0 -8px;"]),C=r.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:n}=e;return"light"===n?"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"===n?"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}),x=r.I4.div.withConfig({displayName:"FooterContainer",componentId:"sc-2e815abe-5"})(["display:flex;flex-direction:column;gap:var(--screen-space-lg);"]);let S=r.I4.div.withConfig({displayName:"CenteredHeader",componentId:"sc-2e815abe-6"})(["text-align:center;display:flex;flex-direction:column;align-items:center;gap:var(--screen-space);"]),k=r.I4.div.withConfig({displayName:"TitleContainer",componentId:"sc-2e815abe-7"})(["display:flex;flex-direction:column;gap:4px;"]),I=r.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;}"]),T=r.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);}"]),E=r.I4.div.withConfig({displayName:"IconContainer",componentId:"sc-2e815abe-10"})(["background:",";border-radius:50%;width:64px;
1height:64px;display:flex;align-items:center;justify-content:center;"],e=>{let{$variant:n}=e;switch(n){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)"}}),A=r.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;}"]),R=r.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 _=e=>{let{children:n}=e,t=(0,i.A)(e,u);return(0,l.jsx)(f,{children:(0,l.jsx)(y,(0,o.A)((0,o.A)({},t),{},{children:n}))})};let j=r.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,r.I4)(s.B).withConfig({displayName:"StyledBlobbyFooter",componentId:"sc-2e815abe-14"})(["padding:0;&& a{padding:0;color:var(--privy-color-foreground-3);}"]),N=r.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:n}=e;return n}),L=e=>{let{step:n}=e;return n?(0,l.jsx)(j,{children:(0,l.jsx)(N,{pct:Math.min(100,n.current/n.total*100)})}):null};_.Header=e=>{let{title:n,subtitle:t,icon:a,iconVariant:r,iconLoadingStatus:c,showBack:s,onBack:d,showInfo:u,onInfo:p,showClose:g,onClose:h,step:m}=e,f=(0,i.A)(e,v);return(0,l.jsxs)(w,(0,o.A)((0,o.A)({},f),{},{children:[(0,l.jsx)(b,{backFn:s?d:void 0,infoFn:u?p:void 0,onClose:g?h:void 0,closeable:g}),(a||r||n||t)&&(0,l.jsxs)(S,{children:[a||r?(0,l.jsx)(_.Icon,{icon:a,variant:r,loadingStatus:c}):null,(0,l.jsxs)(k,{children:[n&&(0,l.jsx)(I,{children:n}),t&&(0,l.jsx)(T,{children:t})]})]}),m&&(0,l.jsx)(L,{step:m})]}))},(_.Body=a.forwardRef((e,n)=>{let{children:t}=e,a=(0,i.A)(e,p);return(0,l.jsx)(C,(0,o.A)((0,o.A)({ref:n},a),{},{children:t}))})).displayName="Screen.Body",_.Footer=e=>{let{children:n}=e,t=(0,i.A)(e,g);return(0,l.jsx)(x,(0,o.A)((0,o.A)({id:"privy-content-footer-container"},t),{},{children:n}))},_.Actions=e=>{let{children:n}=e,t=(0,i.A)(e,h);return(0,l.jsx)(O,(0,o.A)((0,o.A)({},t),{},{children:n}))},_.HelpText=e=>{let{children:n}=e,t=(0,i.A)(e,m);return(0,l.jsx)(F,(0,o.A)((0,o.A)({},t),{},{children:n}))},_.Watermark=()=>(0,l.jsx)(W,{}),_.Icon=e=>{let{icon:n,variant:t="subtle",loadingStatus:o}=e;return"logo"===t&&n?(0,l.jsx)(A,"string"==typeof n?{children:(0,l.jsx)("img",{src:n,alt:""})}:a.isValidElement(n)?{children:n}:{children:a.createElement(n)}):"loading"===t?n?(0,l.jsx)(R,{children:(0,l.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center"},children:[(0,l.jsx)(c.a4,{success:null===o||void 0===o?void 0:o.success,fail:null===o||void 0===o?void 0:o.fail}),"string"==typeof n?(0,l.jsx)("span",{style:{background:"url('".concat(n,"') 0 0 / contain"),height:"38px",width:"38px",borderRadius:"6px",margin:"auto",backgroundSize:"contain"}}):a.isValidElement(n)?a.cloneElement(n,{style:{width:"38px",height:"38px"}}):a.createElement(n,{style:{width:"38px",height:"38px"}})]})}):(0,l.jsx)(E,{$variant:t,children:(0,l.jsx)(d.N,{size:"64px"})}):(0,l.jsx)(E,{$variant:t,children:n&&("string"==typeof n?(0,l.jsx)("img",{src:n,alt:"",style:{width:"32px",height:"32px",borderRadius:"6px"}}):a.isValidElement(n)?n:a.createElement(n,{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 O=r.I4.div.withConfig({displayName:"ActionsContainer",componentId:"sc-2e815abe-16"})(["width:100%;display:flex;flex-direction:column;gap:calc(var(--screen-space) / 2);"]),F=r.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,n,t)=>{t.d(n,{s:()=>i});var o=t(78055);const i=(e,n)=>(0,o.s)(e,n.ethereum.createOnLogin)||(0,o.k)(e,n.solana.createOnLogin)},76107:(e,n,t)=>{t.d(n,{N:()=>l});var o=t(90034),i=t(52610);const l=e=>{let{size:n,centerIcon:t}=e;return(0,o.jsx)(a,{$size:n,children:(0,o.jsxs)(r,{children:[(0,o.jsx)(s,{}),(0,o.jsx)(d,{}),t?(0,o.jsx)(c,{children:t}):null]})})};let a=i.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"),r=i.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=i.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);}"]),s=i.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=i.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);}}"])},86773:(e,n,t)=>{t.r(n),t.d(n,{ConnectOnlyStatusScreen:()=>m,ConnectOnlyStatusScreenView:()=>h,default:()=>m});var o=t(24107),i=t(90034),l=t(57722),a=t(2035),r=t(49080),c=t(99844),s=t(1991),d=t(51380),u=t(49931),v=t(23316),p=t(78055),g=t(20463);t(30549),t(88404),t(82425),t(82595);const h=e=>
1{let{walletLogo:n,success:t,errorMessage:o,title:l,subtitle:a,onRetry:c,onUseDifferentWallet:s,onBack:d,numRetries:u,maxRetries:p}=e;return(0,i.jsx)(v.S,{title:l,subtitle:a,icon:n,iconVariant:"loading",iconLoadingStatus:{success:t,fail:!!o},primaryCta:o===r.C.ERROR_USER_EXISTS?{label:"Use a different wallet",onClick:s}:!t&&null!==o&&void 0!==o&&o.retryable&&u<p?{label:"Retry",onClick:c,disabled:!(null!==o&&void 0!==o&&o.retryable)||u>=p}:!t&&o&&u>=p?{label:"Use a different wallet",onClick:s}:void 0,onBack:d,watermark:!0})},m={component:()=>{var e,n,t,r,v,m,f;let y,{navigateBack:w,navigate:b,lastScreen:C,currentScreen:x,data:S,setModalData:k}=(0,u.a)(),{walletConnectionStatus:I,closePrivyModal:T}=(0,d.u)(),[E,A]=(0,l.useState)(void 0),[R,_]=(0,l.useState)(0),j=(0,s.Q)((null===I||void 0===I||null===(e=I.connector)||void 0===e?void 0:e.walletClientType)||"unknown"),W="connected"===(null===I||void 0===I?void 0:I.status),N="switching_to_supported_chain"===(null===I||void 0===I?void 0:I.status);(0,l.useEffect)(()=>{if(W){var e;let t;if(null!==S&&void 0!==S&&null!==(e=S.externalConnectWallet)&&void 0!==e&&e.onCompleteNavigateTo){var n;let e=S.externalConnectWallet.onCompleteNavigateTo,i=null===(n=I.connectedWallet)||void 0===n?void 0:n.address;t=setTimeout(()=>{var n,t;if(S.funding&&I.connector){let e=I.connector.wallets.find(e=>e.address===i);k((0,o.A)((0,o.A)({},S),{},{funding:(0,o.A)((0,o.A)({},S.funding),{},{connectedWallet:e})}))}b(e({address:i,walletClientType:null===(n=I.connector)||void 0===n?void 0:n.walletClientType,walletChainType:null===(t=I.connector)||void 0===t?void 0:t.chainType}))},c.q)}else t=setTimeout(T,c.q);return()=>clearTimeout(t)}},[W]),(0,l.useEffect)(()=>{var e;(null===I||void 0===I?void 0:I.connectError)&&(e=null===I||void 0===I?void 0:I.connectError,A((0,g.getErrorDetails)(e)))},[I]);let L=(null===I||void 0===I||null===(n=I.connector)||void 0===n?void 0:n.connectorType)||"injected",O=(null===I||void 0===I||null===(t=I.connector)||void 0===t?void 0:t.walletClientType)||"unknown",F=(null===j||void 0===j||null===(r=j.metadata)||void 0===r?void 0:r.shortName)||(null===j||void 0===j?void 0:j.name)||(null===I||void 0===I||null===(v=I.connector)||void 0===v?void 0:v.walletBranding.name)||"Browser Extension",B=(null===j||void 0===j||null===(m=j.image_url)||void 0===m?void 0:m.md)||(null===I||void 0===I||null===(f=I.connector)||void 0===f?void 0:f.walletBranding.icon)||(e=>(0,i.jsx)(p.B,(0,o.A)({},e))),U="Browser Extension"===F?F.toLowerCase():F;y=W?"Successfully connected with ".concat(U):E?E.message:N?"Switching networks":"Waiting for ".concat(U);let z="Don\u2019t see your wallet? Check your other browser windows.";return W?z="You\u2019re good to go!":R>=2&&E?z="Unable to connect wallet":E?z=E.detail:N?z="Switch your wallet to the requested network.":"metamask"===O&&a.Fr?z="Click to continue to open and connect MetaMask.":"metamask"===O?z="For the best experience, connect only one wallet at a time.":"wallet_connect_v2"===L?z="Open your mobile wallet app to continue":"coinbase_wallet"===L&&(z="Confirm in the Coinbase app/popup to continue."),(0,i.jsx)(h,{walletName:F,walletLogo:B,success:W,errorMessage:E,title:y,subtitle:z,onRetry:()=>{_(R+1),A(void 0),null===I||void 0===I||I.connectRetry()},onUseDifferentWallet:w,onBack:x===C?void 0:w,numRetries:R,maxRetries:2})}}}}]);
2//# sourceMappingURL=6773.9f56d57f.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.