1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5434,1212],{95434:function(e,n,t){t.r(n),t.d(n,{ConnectOnlyStatusScreen:function(){return f},ConnectOnlyStatusScreenView:function(){return h},default:function(){return f}});var o=t(27573),a=t(7653),i=t(26996),r=t(73599),l=t(31796),c=t(50800),s=t(88089),d=t(36170),u=t(68150),p=t(80223),g=t(41212);t(97347),t(69021),t(7220),t(61899);let h=({walletLogo:e,success:n,errorMessage:t,title:a,subtitle:i,onRetry:l,onUseDifferentWallet:c,onBack:s,numRetries:d,maxRetries:p})=>(0,o.jsx)(u.S,{title:a,subtitle:i,icon:e,iconVariant:"loading",iconLoadingStatus:{success:n,fail:!!t},primaryCta:t===r.C.ERROR_USER_EXISTS?{label:"Use a different wallet",onClick:c}:!n&&t?.retryable&&d<p?{label:"Retry",onClick:l,disabled:!t?.retryable||d>=p}:!n&&t&&d>=p?{label:"Use a different wallet",onClick:c}:void 0,onBack:s,watermark:!0}),f={component:()=>{let e,{navigateBack:n,navigate:t,lastScreen:r,currentScreen:u,data:f,setModalData:m}=(0,d.a)(),{walletConnectionStatus:v,closePrivyModal:y}=(0,s.u)(),[w,b]=(0,a.useState)(void 0),[C,x]=(0,a.useState)(0),S=(0,c.Q)(v?.connector?.walletClientType||"unknown"),k="connected"===v?.status,E="switching_to_supported_chain"===v?.status;(0,a.useEffect)(()=>{if(k){let e;if(f?.externalConnectWallet?.onCompleteNavigateTo){let n=f.externalConnectWallet.onCompleteNavigateTo,o=v.connectedWallet?.address;e=setTimeout(()=>{if(f.funding&&v.connector){let e=v.connector.wallets.find(e=>e.address===o);m({...f,funding:{...f.funding,connectedWallet:e}})}t(n({address:o,walletClientType:v.connector?.walletClientType,walletChainType:v.connector?.chainType}))},l.q)}else e=setTimeout(y,l.q);return()=>clearTimeout(e)}},[k]),(0,a.useEffect)(()=>{var e;v?.connectError&&(e=v?.connectError,b((0,g.getErrorDetails)(e)))},[v]);let T=v?.connector?.connectorType||"injected",R=v?.connector?.walletClientType||"unknown",_=S?.metadata?.shortName||S?.name||v?.connector?.walletBranding.name||"Browser Extension",N=S?.image_url?.md||v?.connector?.walletBranding.icon||(e=>(0,o.jsx)(p.B,{...e})),W="Browser Extension"===_?_.toLowerCase():_;e=k?`Successfully connected with ${W}`:w?w.message:E?"Switching networks":`Waiting for ${W}`;let j="Donât see your wallet? Check your other browser windows.";return k?j="Youâre good to go!":C>=2&&w?j="Unable to connect wallet":w?j=w.detail:E?j="Switch your wallet to the requested network.":"metamask"===R&&i.tq?j="Click to continue to open and connect MetaMask.":"metamask"===R?j="For the best experience, connect only one wallet at a time.":"wallet_connect_v2"===T?j="Open your mobile wallet app to continue":"coinbase_wallet"===T&&(j="Confirm in the Coinbase app/popup to continue."),(0,o.jsx)(h,{walletName:_,walletLogo:N,success:k,errorMessage:w,title:e,subtitle:j,onRetry:()=>{x(C+1),b(void 0),v?.connectRetry()},onUseDifferentWallet:n,onBack:u===r?void 0:n,numRetries:C,maxRetries:2})}}},41212:function(e,n,t){t.r(n),t.d(n,{ConnectionStatusScreen:function(){return S},ConnectionStatusView:function(){return x},default:function(){return S},getErrorDetails:function(){return C}});var o=t(27573),a=t(7653),i=t(26996),r=t(91628),l=t(80223),c=t(53603),s=t(31796),d=t(93110),u=t(73599),p=t(50800),g=t(36217),h=t(24717),f=t(88089),m=t(36170),v=t(3538),y=t(63002),w=t(68150);t(97347),t(7220),t(61899),t(69021);let b=e=>{let n=localStorage.getItem("-walletlink:https://www.walletlink.org:Addresses")?.split(" ").filter(e=>g.v(e,{strict:!0})).map(e=>h.K(e));return!!n?.length&&!!e?.linkedAccounts.filter(e=>"wallet"==e.type&&n.includes(e.address)).length},C=e=>e?.privyErrorCode===f.b.LINKED_TO_ANOTHER_USER?u.C.ERROR_USER_EXISTS:e instanceof u.P&&!e.details.default?e.details:e instanceof u.d?u.C.ERROR_TIMED_OUT:e?.privyErrorCode===f.b.CANNOT_LINK_MORE_OF_TYPE?u.C.ERROR_USER_LIMIT_REACHED:u.C.ERROR_WALLET_CONNECTION,x=({walletLogo:e,title:n,subtitle:t,signSuccess:a,errorMessage:i,connectSuccess:r,separateConnectAndSign:l,signing:s,walletConnectRedirectUri:p,walletConnectFallbackUniversalUri:g,hasTabbedAway:h,showCoinbaseWalletResetCta:f,numRetries:m,onBack:v,onSign:y,onRetry:b,onCoinbaseReset:C,onDifferentWallet:x})=>{let{t:S}=(0,d.u)(),E=f?{label:"Use a different wallet",onClick:C,disabled:a}:i===u.C.ERROR_USER_EXISTS&&v?{label:"Use a different wallet",onClick:x}:r&&!a&&l?{label:s?"Signing":"Sign with your wallet",onClick:y,disabled:s}:!a&&i?.retryable&&m<2?{label:"Retry",onClick:b,disabled:!1}:a||i?void 0:{label:S("connectionStatus.connecting"),onClick:()=>{},disabled:!0};return(0,o.jsx)(w.S,{title:n,subtitle:t,icon:e,iconVariant:"loading",iconLoadingStatus:{success:a,fail:!!i},primaryCta:E,onBack:v,watermark:!0,children:!r&&p&&!h&&(0,o.jsxs)(k,{children:[S("connectionStatus.stillHere")," ",(0,o.jsx)(c.L,{href:p,target:"_blank",variant:"underlined",size:"sm",children:S("connectionStatus.tryConnectingAgain")}
1),g&&(0,o.jsxs)(o.Fragment,{children:[" ",S("connectionStatus.or")," ",(0,o.jsx)(c.L,{href:g,target:"_blank",variant:"underlined",size:"sm",children:S("connectionStatus.useDifferentLink")})]})]})})},S={component:()=>{var e,n;let t,r,[c,g]=(0,a.useState)(!1),[h,w]=(0,a.useState)(!1),[S,k]=(0,a.useState)(void 0),{authenticated:E,logout:T}=(0,m.u)(),{navigate:R,navigateBack:_,lastScreen:N,currentScreen:W,setModalData:j,data:I}=(0,m.a)(),z=(0,s.u)(),{t:L}=(0,d.u)(),{getAuthFlow:A,walletConnectionStatus:O,closePrivyModal:U,initLoginWithWallet:B,loginWithWallet:F,updateWallets:M,createAnalyticsEvent:$}=(0,f.u)(),{walletConnectors:D}=(0,m.u)(),[q,H]=(0,a.useState)(0),{user:P}=(0,m.u)(),V=(0,y.c)(),[Y]=(0,a.useState)(P?.linkedAccounts.length||0),[X,K]=(0,a.useState)(""),[Q,G]=(0,a.useState)(""),[J,Z]=(0,a.useState)(!1),{hasTabbedAway:ee}=function(){let[e,n]=(0,a.useState)(!1),t=(0,a.useCallback)(()=>{document.hidden&&n(!0)},[]);return(0,a.useEffect)(()=>(document.addEventListener("visibilitychange",t),()=>document.removeEventListener("visibilitychange",t)),[t]),{hasTabbedAway:e,reset:()=>n(!1)}}(),{enabled:en,token:et}=(0,l.a)(),eo=(0,p.Q)(O?.connector?.walletClientType||"unknown"),ea=i.tq&&"wallet_connect_v2"===O?.connector?.connectorType||i.tq&&"coinbase_wallet"===O?.connector?.connectorType||i.tq&&"base_account"===O?.connector?.connectorType||i.tq&&"injected"===O?.connector?.connectorType&&"phantom"===O?.connector?.walletClientType||i.tq&&"solana_adapter"===O?.connector?.connectorType&&"mobile_wallet_adapter"
1===O.connector.walletClientType,ei="connected"===O?.status,er="switching_to_supported_chain"===O?.status;(0,a.useEffect)(()=>{let e=A(),n=e instanceof l.b||e instanceof l.S?e:void 0;ei&&"solana"===O.connector?.chainType&&"phantom"===O.connector?.walletClientType&&V(y.e)&&void 0===I?.login?.isSigningInWithLedgerSolana?R("ConnectLedgerScreen",!1):(ei&&!n&&(!en||et||E?B(O.connectedWallet,et,I?.login?.disableSignup,I?.login?.isSigningInWithLedgerSolana?"transaction":"plain").then(()=>{Z(!0)}):(j({captchaModalData:{callback:e=>B(O.connectedWallet,e,I?.login?.disableSignup,I?.login?.isSigningInWithLedgerSolana?"transaction":"plain").then(()=>{Z(!0)}),userIntentRequired:!1,onSuccessNavigateTo:"ConnectionStatusScreen",onErrorNavigateTo:"ErrorScreen"}}),R("CaptchaScreen",!1))),n instanceof l.S&&I?.login?.isSigningInWithLedgerSolana&&(n.messageType="transaction"),n&&ea&&ei&&!n.preparedMessage?n.buildMessage():n&&!ea&&ei&&(h||(async()=>{w(!0),k(void 0);try{"wallet_connect_v2"===O?.connector?.connectorType&&"metamask"===O?.connector?.walletClientType&&await (0,p.k)(2500),await ec()}catch(e){console.warn("Auto-prompted signature failed",e)}finally{w(!1)}})()))},[q,ei,J]),(0,a.useEffect)(()=>{if(P&&c){let e=s.q-500;if(z?.legal.requireUsersAcceptTerms&&!P.hasAcceptedTerms){let n=setTimeout(()=>{R("AffirmativeConsentScreen")},e);return()=>clearTimeout(n)}if((0,v.s)(P,z.embeddedWallets)){let n=setTimeout(()=>{j({createWallet:{onSuccess:()=>{},onFailure:e=>{console.error(e),$({eventName:"embedded_wallet_creation_failure_logout",payload:{error:e,screen:"ConnectionStatusScreen"}}),T()},callAuthOnSuccessOnClose:!0}}),R("EmbeddedWalletOnAccountCreateScreen")},e);return()=>clearTimeout(n)}M();let n=setTimeout(()=>U({shouldCallAuthOnSuccess:!0,isSuccess:!0}),s.q);return()=>clearTimeout(n)}},[P,c]);let el=e=>{if(e?.privyErrorCode!==f.b.ALLOWLIST_REJECTED){if(e?.privyErrorCode===f.b.USER_LIMIT_REACHED)return console.error(new f.k(e).toString()),void R("UserLimitReachedScreen");if(e?.privyErrorCode!==f.b.USER_DOES_NOT_EXIST)return e?.privyErrorCode===f.b.ACCOUNT_TRANSFER_REQUIRED&&e.data?.data?.nonce?(j({accountTransfer:{nonce:e.data?.data?.nonce,account:A()?.meta.address,displayName:e.data?.data?.account?.displayName,externalWalletMetadata:{walletClientType:A()?.meta.walletClientType,chainId:A()?.meta.chainId,connectorType:A()?.meta.connectorType},linkMethod:A() instanceof l.b?"siwe":"siws",embeddedWalletAddress:e.data?.data?.otherUser?.embeddedWalletAddress}}),void R("LinkConflictScreen")):void k(C(e));R("AccountNotFoundScreen")}else R("AllowlistRejectionScreen")};async function ec(){try{await F(),g(!0)}catch(e){el(e)}finally{w(!1)}}(0,a.useEffect)(()=>{O?.connectError&&el(O?.connectError)},[O]),e=()=>{let e="wallet_connect_v2"===es&&O?.connector instanceof l.W?O.connector.redirectUri:void 0;e&&K(e);let n="wallet_connect_v2"===es&&O?.connector instanceof l.W?O.connector.fallbackUniversalRedirectUri:void 0;n&&G(n)},n=O?.connector instanceof l.W&&!X?500:null,t=(0,a.useRef)(()=>{}),(0,a.useEffect)(()=>{t.current=e}),(0,a.useEffect)(()=>{if(null!==n){let e=setInterval(()=>t.current(),n||0);return()=>clearInterval(e)}},[n]);let es=O?.connector?.connectorType||"injected",ed=O?.connector?.walletClientType||"unknown",eu=eo?.metadata?.shortName||eo?.name||O?.connector?.walletBranding.name||"Browser Extension",ep=eo?.image_url?.md||O?.connector?.walletBranding.icon||(e=>(0,o.jsx)(l.B,{...e})),eg="Browser Extension"===eu?eu.toLowerCase():eu;r=c?L("connectionStatus.successfullyConnected",{walletName:eg}):S?L("connectionStatus.errorTitle",{errorMessage:S.message}):er?"Switching networks":ei?h&&ea?"Signing":"Sign to verify":`Waiting for ${eg}`;let eh=L("connectionStatus.checkOtherWindows");c?eh=Y===(P?.linkedAccounts.length||0)?"Wallet was already linked.":"You're good to go!":q>=2&&S?eh="Unable to connect wallet":S?eh=S.detail:er?eh="Switch your wallet to the requested network.":ei&&ea?eh="Sign the message in your wallet to verify it belongs to you.":"metamask"===ed&&i.tq?eh="Click continue to open and connect MetaMask.":"metamask"===ed?eh="For the best experience, connect only one wallet at a time.":"wallet_connect"===es?eh="Open your mobile wallet app to continue":"coinbase_wallet"===es?(0,p.T)()||(eh=b(P)?"Continue with the Coinbase app. Not the right wallet? Reset your connection below.":"Confirm in the Coinbase app/popup to continue."):I?.login?.isSigningInWithLedgerSolana&&(eh="Ledger requires a transaction to verify your identity. You'll sign a transaction that performs no onchain action.");let ef=D?.walletConnectors?.find(e=>"coinbase_wallet"===e.walletClientType),em="coinbase_wallet"===ed&&(b(P)||S===u.C.ERROR_USER_EXISTS
1);return(0,o.jsx)(x,{walletLogo:ep,title:r,subtitle:eh,signSuccess:c,errorMessage:S,connectSuccess:ei,separateConnectAndSign:ea,signing:h,walletConnectRedirectUri:X,walletConnectFallbackUniversalUri:Q,hasTabbedAway:ee,showCoinbaseWalletResetCta:em,numRetries:q,onBack:N&&W!==N?_:void 0,onSign:()=>{w(!0),ec()},onRetry:()=>{H(q+1),k(void 0),ei?(w(!0),ec()):O?.connectRetry()},onCoinbaseReset:()=>{ef&&ef?.disconnect()},onDifferentWallet:_})}},k=r.zo.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;"])},53603:function(e,n,t){t.d(n,{L:function(){return i}});var o=t(27573);let a=t(91628).zo.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;}}"],({$variant:e})=>"underlined"===e?"var(--privy-color-foreground)":"var(--privy-link-navigation-color, var(--privy-color-accent))",({$variant:e})=>"underlined"===e?"underline":"var(--privy-link-navigation-decoration, none)",({$disabled:e})=>e?"not-allowed":"pointer",({$disabled:e})=>e?.5:1,({$size:e})=>{switch(e){case"xs":return"12px";case"sm":return"14px";default:return"16px"}},({$size:e})=>{switch(e){case"xs":return"18px";case"sm":return"22px";default:return"24px"}},({$variant:e,$disabled:n})=>"underlined"===e?"var(--privy-color-foreground)":"var(--privy-link-navigation-color, var(--privy-color-accent))",({$disabled:e})=>e?"none":"underline",({$variant:e,$disabled:n})=>n?"underlined"===e?"var(--privy-color-foreground)":"var(--privy-link-navigation-color, var(--privy-color-accent))":"var(--privy-color-foreground)"),i=({size:e="md",variant:n="navigation",disabled:t=!1,as:i,children:r,onClick:l,...c})=>(0,o.jsx)(a,{as:i,$size:e,$variant:n,$disabled:t,onClick:e=>{t?e.preventDefault():l?.(e)},...c,children:r})},54037:function(e,n,t){t.d(n,{S:function(){return x}});var o=t(27573),a=t(7653),i=t(91628),r=t(50800),l=t(75593),c=t(29981);let s=i.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=i.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);"]),u=i.zo.div.withConfig({displayName:"HeaderContainer",componentId:"sc-2e815abe-2"})(["position:relative;display:flex;flex-direction:column;"]),p=(0,i.zo)(l.M).withConfig({displayName:"StyledModalHeader",componentId:"sc-2e815abe-3"})(["margin:0 -8px;"]),g=i.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),h=i.zo.div.withConfig({displayName:"FooterContainer",componentId:"sc-2e815abe-5"})(["display:flex;flex-direction:column;gap:var(--screen-space-lg);"]),f=i.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=i.zo.div.withConfig({displayName:"TitleContainer",componentId:"sc-2e815abe-7"})(["display:flex;flex-direction:column;gap:4px;"]),v=i.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;}"]),y=i.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);}"]),w=i.zo.div.withConfig({displayName:"IconContainer",componentId:"sc-2e815abe-10"})(["background:",";border-radius:50%;width:64px;
1height: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=i.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;}"]),C=i.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;left:50%;top:50%;transform:translate(-50%,-50%);}"]),x=({children:e,...n})=>(0,o.jsx)(s,{children:(0,o.jsx)(d,{...n,children:e})}),S=i.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;"]),k=(0,i.zo)(l.B).withConfig({displayName:"StyledBlobbyFooter",componentId:"sc-2e815abe-14"})(["padding:0;&& a{padding:0;color:var(--privy-color-foreground-3);}"]),E=i.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),T=({step:e})=>e?(0,o.jsx)(S,{children:(0,o.jsx)(E,{pct:Math.min(100,e.current/e.total*100)})}):null;x.Header=({title:e,subtitle:n,icon:t,iconVariant:a,iconLoadingStatus:i,showBack:r,onBack:l,showInfo:c,onInfo:s,showClose:d,onClose:g,step:h,...w})=>(0,o.jsxs)(u,{...w,children:[(0,o.jsx)(p,{backFn:r?l:void 0,infoFn:c?s:void 0,onClose:d?g:void 0,closeable:d}),(t||a||e||n)&&(0,o.jsxs)(f,{children:[t||a?(0,o.jsx)(x.Icon,{icon:t,variant:a,loadingStatus:i}):null,(0,o.jsxs)(m,{children:[e&&(0,o.jsx)(v,{children:e}),n&&(0,o.jsx)(y,{children:n})]})]}),h&&(0,o.jsx)(T,{step:h})]}),(x.Body=a.forwardRef(({children:e,...n},t)=>(0,o.jsx)(g,{ref:t,...n,children:e}))).displayName="Screen.Body",x.Footer=({children:e,...n})=>(0,o.jsx)(h,{id:"privy-content-footer-container",...n,children:e}),x.Actions=({children:e,...n})=>(0,o.jsx)(R,{...n,children:e}),x.HelpText=({children:e,...n})=>(0,o.jsx)(_,{...n,children:e}),x.Watermark=()=>(0,o.jsx)(k,{}),x.Icon=({icon:e,variant:n="subtle",loadingStatus:t})=>"logo"===n&&e?(0,o.jsx)(b,"string"==typeof e?{children:(0,o.jsx)("img",{src:e,alt:""})}:a.isValidElement(e)?{children:e}:{children:a.createElement(e)}):"loading"===n?e?(0,o.jsx)(C,{children:(0,o.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center"},children:[(0,o.jsx)(r.a4,{success:t?.success,fail:t?.fail}),"string"==typeof e?(0,o.jsx)("span",{style:{background:`url('${e}') 0 0 / contain`,height:"38px",width:"38px",borderRadius:"6px",margin:"auto",backgroundSize:"contain"}}):a.isValidElement(e)?a.cloneElement(e,{style:{width:"38px",height:"38px"}}):a.createElement(e,{style:{width:"38px",height:"38px"}})]})}):(0,o.jsx)(w,{$variant:n,children:(0,o.jsx)(c.N,{size:"64px"})}):(0,o.jsx)(w,{$variant:n,children:e&&("string"==typeof e?(0,o.jsx)("img",{src:e,alt:"",style:{width:"32px",height:"32px",borderRadius:"6px"}}):a.isValidElement(e)?e:a.createElement(e,{width:32,height:32,stroke:(()=>{switch(n){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 R=i.zo.div.withConfig({displayName:"ActionsContainer",componentId:"sc-2e815abe-16"})(["width:100%;display:flex;flex-direction:column;gap:calc(var(--screen-space) / 2);"]),_=i.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,n,t){t.d(n,{S:function(){return r}});var o=t(27573),a=t(81781),i=t(54037);let r=({primaryCta:e,secondaryCta:n,helpText:t,watermark:r=!0,children:l,...c})=>{let s=e||n?(0,o.jsxs)(o.Fragment,{children:[e&&(()=>{let{label:n,...t}=e,i=t.variant||"primary";return(0,o.jsx)(a.B,{...t,variant:i,style:{width:"100%",...t.style},children:n})})(),n&&(()=>{let{label:e,...t}=n,i=t.variant||"secondary";return(0,o.jsx)(a.B,{...t,variant:i,style:{width:"100%",...t.style},children:e})})()]}):null;return(0,o.jsxs)(i.S,{id:c.id,className:c.className,children:[(0,o.jsx)(i.S.Header,{...c}),l?(0,o.jsx)(i.S.Body,{children:l}):null,t||s||r?(0,o.jsxs)(i.S.Footer,{children:[t?(0,o.jsx)(i.S.HelpText,{children:t}):null,s?(0,o.jsx)(i.S.Actions,{children:s}):null,r?(0,o.jsx)(i.S.Watermark,{}):null]}):null]})}},29981:function(e,n,t){t.d(n,{N:function(){return i}});var o=t(27573),a=t(91628);let i=({size:e,centerIcon:n})=>(0,o.jsx)(r,{$size:e,children:(0,o.jsxs)(l,{children:[(0,o.jsx)(s,{}),(0,o.jsx)(d,{}),n?(0,o.jsx)(c,{children:n}):null]})}),r=a.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"),l=a.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=a.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);}"]),s=a.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=a.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,n,t){t.d(n,{s:function(){return a}});var o=t(80223);let a=(e,n)=>(0,o.s)(e,n.ethereum.createOnLogin)||(0,o.k)(e,n.solana.createOnLogin)},93110:function(e,n,t){t.d(n,{u:function(){return i}});var o=t(31796);let a={"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 a
1pp","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 i(){let e=(0,o.u)();return{t:(n,t)=>{var o;let i;return o=e.intl.textLocalization,i=o?.[n]??a[n],t&&0!==Object.keys(t).length?i.replace(/\{(\w+)\}/g,(e,n)=>t[n]??e):i}}}}}]);
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.