1"use strict";(self.webpackChunkico_react=self.webpackChunkico_react||[]).push([[463],{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:()=>C});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),b=t(66252),w=t(23316);t(30549),t(82425),t(82595),t(88404);const x=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)},C=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:b,onRetry:x,onCoinbaseReset:C,onDifferentWallet:S}=e,{t:k}=(0,u.u)(),A=m?{label:"Use a different wallet",onClick:C,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:b,disabled:d}:!l&&null!==a&&void 0!==a&&a.retryable&&f<2?{label:"Retry",onClick:x,disabled:!1}:l||a?void 0:{label:k("connectionStatus.connecting"),onClick:()=>{},disabled:!0};return(0,i.jsx)(w.S,{title:t,subtitle:o,icon:n,iconVariant:"loading",iconLoadingStatus:{success:l,fail
1:!!a},primaryCta:A,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,w,k,I,A,E,T,j,R;let N,[W,_]=(0,l.useState)(!1),[L,F]=(0,l.useState)(!1),[O,z]=(0,l.useState)(void 0),{authenticated:U,logout:B}=(0,f.u)(),{navigate:$,navigateBack:M,lastScreen:D,currentScreen:H,setModalData:q,data:P}=(0,f.a)(),V=(0,d.u)(),{t:Y}=(0,u.u)(),{getAuthFlow:X,walletConnectionStatus:K,closePrivyModal:Q,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,b.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===K||void 0===K||null===(e=K.connector)||void 0===e?void 0:e.walletClientType)||"unknown"),fe=a.Fr&&"wallet_connect_v2"===(null===K||void 0===K||null===(n=K.connector)||void 0===n?void 0:n.connectorType)||a.Fr&&"coinbase_wallet"===(null===K||void 0===K||null===(t=K.connector)||void 0===t?void 0:t.connectorType)||a.Fr&&"base_account"===(null===K||void 0===K||null===(r=K.connector)||void 0===r?void 0:r.connectorType)||a.Fr&&"injected"===(null===K||void 0===K||null===(s=K.connector)||void 0===s?void 0:s.connectorType)&&"phantom"===(null===K||void 0===K||null===(g=K.connector)||void 0===g?void 0:g.walletClientType)||a.Fr&&"solana_adapter"===(null===K||void 0===K||null===(h=K.connector)||void 0===h?void 0:h.connectorType)&&"mobile_wallet_adapter"
1===K.connector.walletClientType,ye="connected"===(null===K||void 0===K?void 0:K.status),be="switching_to_supported_chain"===(null===K||void 0===K?void 0:K.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=K.connector)||void 0===e?void 0:e.chainType)&&"phantom"===(null===(n=K.connector)||void 0===n?void 0:n.walletClientType)&&le(b.b)&&void 0===(null===P||void 0===P||null===(t=P.login)||void 0===t?void 0:t.isSigningInWithLedgerSolana)?$("ConnectLedgerScreen",!1):(ye&&!r&&(!ge||he||U?G(K.connectedWallet,he,null===P||void 0===P||null===(o=P.login)||void 0===o?void 0:o.disableSignup,null!==P&&void 0!==P&&null!==(i=P.login)&&void 0!==i&&i.isSigningInWithLedgerSolana?"transaction":"plain").then(()=>{ve(!0)}):(q({captchaModalData:{callback:e=>{var n,t;return G(K.connectedWallet,e,null===P||void 0===P||null===(n=P.login)||void 0===n?void 0:n.disableSignup,null!==P&&void 0!==P&&null!==(t=P.login)&&void 0!==t&&t.isSigningInWithLedgerSolana?"transaction":"plain").then(()=>{ve(!0)})},userIntentRequired:!1,onSuccessNavigateTo:"ConnectionStatusScreen",onErrorNavigateTo:"ErrorScreen"}}),$("CaptchaScreen",!1))),r instanceof c.S&&null!==P&&void 0!==P&&null!==(l=P.login)&&void 0!==l&&l.isSigningInWithLedgerSolana&&(r.messageType="transaction"),r&&fe&&ye&&!r.preparedMessage?r.buildMessage():r&&!fe&&ye&&(L||(async()=>{F(!0),z(void 0);try{var e,n;"wallet_connect_v2"===(null===K||void 0===K||null===(e=K.connector)||void 0===e?void 0:e.connectorType)&&"metamask"===(null===K||void 0===K||null===(n=K.connector)||void 0===n?void 0:n.walletClientType)&&await(0,p.k)(2500),await xe()}catch(a){console.warn("Auto-prompted signature failed",a)}finally{F(!1)}})()))},[te,ye,ue]),(0,l.useEffect)(()=>{if(ie&&W){let e=d.q-500;if(null!==V&&void 0!==V&&V.legal.requireUsersAcceptTerms&&!ie.hasAcceptedTerms){let n=setTimeout(()=>{$("AffirmativeConsentScreen")},e);return()=>clearTimeout(n)}if((0,y.s)(ie,V.embeddedWallets)){let n=setTimeout(()=>{q({createWallet:{onSuccess:()=>{},onFailure:e=>{console.error(e),ee({eventName:"embedded_wallet_creation_failure_logout",payload:{error:e,screen:"ConnectionStatusScreen"}}),B()},callAuthOnSuccessOnClose:!0}}),$("EmbeddedWalletOnAccountCreateScreen")},e);return()=>clearTimeout(n)}Z();let n=setTimeout(()=>Q({shouldCallAuthOnSuccess:!0,isSuccess:!0}),d.q);return()=>clearTimeout(n)}},[ie,W]);let we=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 $("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 $("LinkConflictScreen")):void z(C(e));$("AccountNotFoundScreen")}else $("AllowlistRejectionScreen")};async function xe(){try{await J(),_(!0)}catch(e){we(e)}finally{F(!1)}}(0,l.useEffect)(()=>{(null===K||void 0===K?void 0:K.connectError)&&we(null===K||void 0===K?void 0:K.connectError)},[K]),((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"===Ce&&(null===K||void 0===K?void 0:K.connector)instanceof c.W?K.connector.redirectUri:void 0;e&&ce(e);let n="wallet_connect_v2"===Ce&&(null===K||void 0===K?void 0:K.connector)instanceof c.W?K.connector.fallbackUniversalRedirectUri:void 0;n&&de(n)},(null===K||void 0===K?void 0:K.connector)instanceof c.W&&!re?500:null);let Ce=(null===K||void 0===K||null===(w=K.connector)||void 0===w?void 0:w.connectorType)||"injected",Se=(null===K||void 0===K||null===(k=K.
1connector)||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===K||void 0===K||null===(A=K.connector)||void 0===A?void 0:A.walletBranding.name)||"Browser Extension",Ie=(null===me||void 0===me||null===(E=me.image_url)||void 0===E?void 0:E.md)||(null===K||void 0===K||null===(T=K.connector)||void 0===T?void 0:T.walletBranding.icon)||(e=>(0,i.jsx)(c.B,(0,o.A)({},e))),Ae="Browser Extension"===ke?ke.toLowerCase():ke;N=W?Y("connectionStatus.successfullyConnected",{walletName:Ae}):O?Y("connectionStatus.errorTitle",{errorMessage:O.message}):be?"Switching networks":ye?L&&fe?"Signing":"Sign to verify":"Waiting for ".concat(Ae);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&&O?Ee="Unable to connect wallet":O?Ee=O.detail:be?Ee="Switch your wallet to the requested network.":ye&&fe?Ee="Sign the message in your 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"===Ce?Ee="Open your mobile wallet app to continue":"coinbase_wallet"===Ce?(0,p.T)()||(Ee=x(ie)?"Continue with the Coinbase app. Not the right wallet? Reset your connection below.":"Confirm in the Coinbase app/popup to continue."):(null===P||void 0===P||null===(j=P.login)||void 0===j?void 0:j.isSigningInWithLedgerSolana)&&(Ee="Ledger requires a transaction to verify your identity. You'll sign a transaction that performs no onchain action.");let Te=null===ne||void 0===ne||null===(R=ne.walletConnectors)||void 0===R?void 0:R.find(e=>"coinbase_wallet"===e.walletClientType),je="coinbase_wallet"===Se&&(x(ie)||O===v.C.ERROR_USER_EXISTS);return(0,i.jsx)(S,{walletLogo:Ie,title:N,subtitle:Ee,signSuccess:W,errorMessage:O,connectSuccess:ye,separateConnectAndSign:fe,signing:L,walletConnectRedirectUri:re,walletConnectFallbackUniversalUri:se,hasTabbedAway:pe,showCoinbaseWalletResetCta:je,numRetries:te,onBack:D&&H!==D?M:void 0,onSign:()=>{F(!0),xe()},onRetry:()=>{oe(te+1),z(void 0),ye?(F(!0),xe()):null===K||void 0===K||K.connectRetry()},onCoinbaseReset:()=>{Te&&(null===Te||void 0===Te||Te.disconnect())},onDifferentWallet:M})}};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:()=>R});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);"]),b=r.I4.div.withConfig({displayName:"HeaderContainer",componentId:"sc-2e815abe-2"})(["position:relative;display:flex;flex-direction:column;"]),w=(0,r.I4)(s.M).withConfig({displayName:"StyledModalHeader",componentId:"sc-2e815abe-3"})(["margin:0 -8px;"]),x=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}),C=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;}"]),A=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)"}}),T=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;}"]),j=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 R=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 N=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);}"]),_=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)(N,{children:(0,l.jsx)(_,{pct:Math.min(100,n.current/n.total*100)})}):null};R.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)(b,(0,o.A)((0,o.A)({},f),{},{children:[(0,l.jsx)(w,{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)(R.Icon,{icon:a,variant:r,loadingStatus:c}):null,(0,l.jsxs)(k,{children:[n&&(0,l.jsx)(I,{children:n}),t&&(0,l.jsx)(A,{children:t})]})]}),m&&(0,l.jsx)(L,{step:m})]}))},(R.Body=a.forwardRef((e,n)=>{let{children:t}=e,a=(0,i.A)(e,p);return(0,l.jsx)(x,(0,o.A)((0,o.A)({ref:n},a),{},{children:t}))})).displayName="Screen.Body",R.Footer=e=>{let{children:n}=e,t=(0,i.A)(e,g);return(0,l.jsx)(C,(0,o.A)((0,o.A)({id:"privy-content-footer-container"},t),{},{children:n}))},R.Actions=e=>{let{children:n}=e,t=(0,i.A)(e,h);return(0,l.jsx)(F,(0,o.A)((0,o.A)({},t),{},{children:n}))},R.HelpText=e=>{let{children:n}=e,t=(0,i.A)(e,m);return(0,l.jsx)(O,(0,o.A)((0,o.A)({},t),{},{children:n}))},R.Watermark=()=>(0,l.jsx)(W,{}),R.Icon=e=>{let{icon:n,variant:t="subtle",loadingStatus:o}=e;return"logo"===t&&n?(0,l.jsx)(T,"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)(j,{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 F=r.I4.div.withConfig({displayName:"ActionsContainer",componentId:"sc-2e815abe-16"})(["width:100%;display:flex;flex-direction:column;gap:calc(var(--screen-space) / 2);"]),O=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);}}"])}}]); 2//# sourceMappingURL=463.37110bc9.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.