PageSourceSearch

https://www.plvr.io/_next/static/chunks/4726.1e733cb79ebde3de.js

js plvr.io collected 2026-10-04 22:12:55 UTC 13,413 bytes, 1 lines download raw bytes

1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="9e08fed0-64e8-4c89-a4e8-5e36cfb31227",e._sentryDebugIdIdentifier="sentry-dbid-9e08fed0-64e8-4c89-a4e8-5e36cfb31227")}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4726],{14816:(e,n,t)=>{t.d(n,{u:()=>a});var l=t(55035);let o={"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 a(){let e=(0,l.u)();return{t:(n,t)=>{var l,a;let i;return l=e.intl.textLocalization,i=null!=(a=null==l?void 0:l[n])?a:o[n],t&&0!==Object.keys(t).length?i.replace(/\{(\w+)\}/g,(e,n)=>{var l;return null!=(l=t[n])?l:e}):i}}}},34446:(e,n,t)=>{t.d(n,{S:()=>i});var l=t(54568),o=t(81345),a=t(29740);let i=e=>{let{primaryCta:n,secondaryCta:t,helpText:i,footerText:c,watermark:r=!0,children:s,...u}=e,d=n||t?(0,l.jsxs)(l.Fragment,{children:[n&&(()=>{let{label:e,...t}=n,a=t.variant||"primary";return(0,l.jsx)(o.a,{...t,variant:a,style:{width:"100%",...t.style},children:e})})(),t&&(()=>{let{label:e,...n}=t,a=n.variant||"secondary";return(0,l.jsx)(o.a,{...n,variant:a,style:{width:"100%",...n.style},children:e})})()]}):null;return(0,l.jsxs)(a.S,{id:u.id,className:u.className,children:[(0,l.jsx)(a.S.Header,{...u}),s?(0,l.jsx)(a.S.Body,{children:s}):null,i||d||r?(0,l.jsxs)(a.S.Footer,{children:[i?(0,l.jsx)(a.S.HelpText,{children:i}):null,d?(0,l.jsx)(a.S.Actions,{children:d}):null,r?(0,l.jsx)(a.S.Watermark,{}):null]}):null,c?(0,l.jsx)(a.S.FooterText,{children:c}):null]})}},34726:(e,n,t)=>{t.r(n),t.d(n,{ConnectionStatusScreen:()=>k,ConnectionStatusView:()=>E,default:()=>k,getErrorDetails:()=>_});var l=t(57639),o=t(54568),a=t(7620),i=t(99112),c=t(87991),r=t(24562),s=t(85156),u=t(55035),d=t(14816),g=t(12553),v=t(66334),S=t(40073),w=t(61020),h=t(64429),p=t(3964),y=t(70170),f=t(60862),C=t(46753),b=t(34446);function m(){let e=(0,l._)(["\n  text-align: center;\n  color: var(--privy-color-foreground-2);\n  font-size: 14px;\n  line-height: 22px;\n  margin: 16px 0;\n"]);return m=function(){return e},e}t(65742),t(27277),t(55527),t(21984);let T=e=>{var n;let t=null==(n=localStorage.getItem("-walletlink:https://www.walletlink.org:Addresses"))?void 0:n.split(" ").filter(e=>(0,v.q)(e,{strict:!0})).map(e=>(0,S.b)(e));return!!(null==t?void 0:t.length)&&!!(null==e?void 0:e.linkedAccounts.filter(e=>"wallet"==e.type&&t.includes(e.address)).length)},_=e=>(null==e?void 0:e.privyErrorCode)===w.b.LINKED_TO_ANOTHER_USER?g.C.ERROR_USER_EXISTS:e instanceof g.P&&!e.details.default?e.details:e instanceof g.w?g.C.ERROR_TIMED_OUT:(null==e?void 0:e.privyErrorCode)===w.b.CANNOT_LINK_MORE_OF_TYPE?g.C.ERROR_USER_LIMIT_REACHED:g.C.ERROR_WALLET_CONNECTION,E=e=>{let{walletLogo:n,title:t,subtitle:l,signSuccess:a,errorMessage:i,connectSuccess:c,separateConnectAndSign:r,signing:u,walletConnectRedirectUri:v,walletConnectFallbackUniversalUri:S,hasTabbedAway:w,showCoinbaseWalletResetCta:h,numRetries:p,onBack:y,onSign:f,onRetry:C,onCoinbaseReset:m,onDifferentWallet:T}=e,{t:_}=(0,d.u)(),E=h?{label:"Use a different wallet",onClick:m,disabled:a}:i===g.C.ERROR_USER_EXISTS&&y?{label:"Use a different wallet",onClick:T}:c&&!a&&r?{label:u?"Signing":"Sign with your wallet",onClick:f,disabled:u}:!a&&(null==i?void 0:i.retryable)&&p<2?{label:"Retry",onClick:C,disabled:!1}:a||i?void 0:{label:_("connectionStatus.connecting"),onClick:()=>{},disabled:!0};return(0,o.jsx)(b.S,{title:t,subtitle:l,icon:n,iconVariant:"loading",iconLoadingStatus:{success:a,fail:!!i},primaryCta:E,onBack:y,watermark:!0,children:!c&&v&&!w&&(0,o.jsxs)(W,{children:[_("connectionStatus.stillHere")," ",(0,o.jsx)(s.L,{href:v,target:"_blank",variant:"underlined",size:"sm",children:_("connectionStatus.tryConnectingAgain")}),S&&(0,o.jsxs)(o.Fragment,{children:[" ",_("connectionStatus.or")," ",(0,o.jsx)(s.L,{href:S,target:"_blank",variant:"underlined",size:"sm",children:_("connectionStatus.useDifferentLink")})]})]})})},k={component:()=>{var e,n,t,l,c,s,v,S,b,m,k,W,R,A,L;let I,[N,x]=(0,a.useState)(!1),[O,U]=(0,a.useState)(!1),[j,F]=(0,a.useState)(void 0),{authenticated:D,logout:M}=(0,p.u)(),{navigate:B,navigateBack:q,lastScreen:H,currentScreen:z,setModalData:P,data:Y}=(0,p.a)(),X=(0,u.u)(),{t:K}=(0,d.u)(),{getAuthFlow:V,walletConnectionStatus:G,closePrivyModal:J,initLoginWithWallet:Q,loginWithWallet:Z,updateWallets:$,createAnalyticsEvent:ee}=(0,w.u)(),{walletConnectors:en}=(0,p.u)(),[et,el]=(0,a.useState)(0),{user:eo}=(0,p.u)(),ea=(0,f.u)(),[ei]=(0,a.useState)((null==eo?void 0:eo.linkedAccounts.length)||0),[ec,er]=(0,a.useState)(""),[es,eu]=(0,a.useState)(""),[ed,eg]=(0,a.useState)(!1),{hasTabbedAway:ev}=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:eS,token:ew}=(0,r.a)(),eh=(0,h.z)((null==G||null==(e=G.connector)?void 0:e.walletClientType)||"unknown"),ep=i.Fr&&"wallet_connect_v2"===(null==G||null==(n=G.connector)?void 0:n.connectorType)||i.Fr&&"coinbase_wallet"===(null==G||null==(t=G.connector)?void 0:t.connectorType)||i.Fr&&"base_account"===(null==G||null==(l=G.connector)?void 0:l.connectorType)||i.Fr&&"injected"===(null==G||null==(c=G.connector)?void 0:c.connectorType)&&"phantom"===(null==G||null==(s=G.connector)?void 0:s.walletClientType)||i.Fr&&"solana_adapter"
1===(null==G||null==(v=G.connector)?void 0:v.connectorType)&&"mobile_wallet_adapter"===G.connector.walletClientType,ey="connected"===(null==G?void 0:G.status),ef="switching_to_supported_chain"===(null==G?void 0:G.status);(0,a.useEffect)(()=>{var e,n,t,l,o,a;let i=V(),c=i instanceof r.b||i instanceof r.S?i:void 0;ey&&"solana"===(null==(e=G.connector)?void 0:e.chainType)&&"phantom"===(null==(n=G.connector)?void 0:n.walletClientType)&&ea(C.e)&&void 0===(null==Y||null==(t=Y.login)?void 0:t.isSigningInWithLedgerSolana)?B("ConnectLedgerScreen",!1):(ey&&!c&&(!eS||ew||D?Q(G.connectedWallet,ew,null==Y||null==(l=Y.login)?void 0:l.disableSignup,(null==Y||null==(o=Y.login)?void 0:o.isSigningInWithLedgerSolana)?"transaction":"plain").then(()=>{eg(!0)}):(P({captchaModalData:{callback:e=>{var n,t;return Q(G.connectedWallet,e,null==Y||null==(n=Y.login)?void 0:n.disableSignup,(null==Y||null==(t=Y.login)?void 0:t.isSigningInWithLedgerSolana)?"transaction":"plain").then(()=>{eg(!0)})},userIntentRequired:!1,onSuccessNavigateTo:"ConnectionStatusScreen",onErrorNavigateTo:"ErrorScreen"}}),B("CaptchaScreen",!1))),c instanceof r.S&&(null==Y||null==(a=Y.login)?void 0:a.isSigningInWithLedgerSolana)&&(c.messageType="transaction"),c&&ep&&ey&&!c.preparedMessage?c.buildMessage():c&&!ep&&ey&&(O||(async()=>{U(!0),F(void 0);try{var e,n;"wallet_connect_v2"===(null==G||null==(e=G.connector)?void 0:e.connectorType)&&"metamask"===(null==G||null==(n=G.connector)?void 0:n.walletClientType)&&await (0,g.k)(2500),await eb()}catch(e){console.warn("Auto-prompted signature failed",e)}finally{U(!1)}})()))},[et,ey,ed]),(0,a.useEffect)(()=>{if(eo&&N){let e=u.q-500;if((null==X?void 0:X.legal.requireUsersAcceptTerms)&&!eo.hasAcceptedTerms){let n=setTimeout(()=>{B("AffirmativeConsentScreen")},e);return()=>clearTimeout(n)}if((0,y.s)(eo,X.embeddedWallets)){let n=setTimeout(()=>{P({createWallet:{onSuccess:()=>{},onFailure:e=>{console.error(e),ee({eventName:"embedded_wallet_creation_failure_logout",payload:{error:e,screen:"ConnectionStatusScreen"}}),M()},callAuthOnSuccessOnClose:!0}}),B("EmbeddedWalletOnAccountCreateScreen")},e);return()=>clearTimeout(n)}$();let n=setTimeout(()=>J({shouldCallAuthOnSuccess:!0,isSuccess:!0}),u.q);return()=>clearTimeout(n)}},[eo,N]);let eC=e=>{if((null==e?void 0:e.privyErrorCode)!==w.b.ALLOWLIST_REJECTED){var n,t,l,o,a,i,c,s,u,d,g,v,S,h;if((null==e?void 0:e.privyErrorCode)===w.b.USER_LIMIT_REACHED)return console.error(new w.k(e).toString()),void B("UserLimitReachedScreen");if((null==e?void 0:e.privyErrorCode)!==w.b.USER_DOES_NOT_EXIST)return(null==e?void 0:e.privyErrorCode)===w.b.ACCOUNT_TRANSFER_REQUIRED&&(null==(t=e.data)||null==(n=t.data)?void 0:n.nonce)?(P({accountTransfer:{nonce:null==(o=e.data)||null==(l=o.data)?void 0:l.nonce,account:null==(a=V())?void 0:a.meta.address,displayName:null==(s=e.data)||null==(c=s.data)||null==(i=c.account)?void 0:i.displayName,externalWalletMetadata:{walletClientType:null==(u=V())?void 0:u.meta.walletClientType,chainId:null==(d=V())?void 0:d.meta.chainId,connectorType:null==(g=V())?void 0:g.meta.connectorType},linkMethod:V()instanceof r.b?"siwe":"siws",embeddedWalletAddress:null==(h=e.data)||null==(S=h.data)||null==(v=S.otherUser)?void 0:v.embeddedWalletAddress}}),void B("LinkConflictScreen")):void F(_(e));B("AccountNotFoundScreen")}else B("AllowlistRejectionScreen")};async function eb(){try{await Z(),x(!0)}catch(e){eC(e)}finally{U(!1)}}(0,a.useEffect)(()=>{(null==G?void 0:G.connectError)&&eC(null==G?void 0:G.connectError)},[G]),((e,n)=>{let 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 e="wallet_connect_v2"===em&&(null==G?void 0:G.connector)instanceof r.W?G.connector.redirectUri:void 0;e&&er(e);let n="wallet_connect_v2"===em&&(null==G?void 0:G.connector)instanceof r.W?G.connector.fallbackUniversalRedirectUri:void 0;n&&eu(n)},(null==G?void 0:G.connector)instanceof r.W&&!ec?500:null);let em=(null==G||null==(S=G.connector)?void 0:S.connectorType)||"injected",eT=(null==G||null==(b=G.connector)?void 0:b.walletClientType)||"unknown",e_=(null==eh||null==(m
1=eh.metadata)?void 0:m.shortName)||(null==eh?void 0:eh.name)||(null==G||null==(k=G.connector)?void 0:k.walletBranding.name)||"Browser Extension",eE=(null==eh||null==(W=eh.image_url)?void 0:W.md)||(null==G||null==(R=G.connector)?void 0:R.walletBranding.icon)||(e=>(0,o.jsx)(r.B,{...e})),ek="Browser Extension"===e_?e_.toLowerCase():e_;I=N?K("connectionStatus.successfullyConnected",{walletName:ek}):j?K("connectionStatus.errorTitle",{errorMessage:j.message}):ef?"Switching networks":ey?O&&ep?"Signing":"Sign to verify":"Waiting for ".concat(ek);let eW=K("connectionStatus.checkOtherWindows");N?eW=ei===((null==eo?void 0:eo.linkedAccounts.length)||0)?"Wallet was already linked.":"You're good to go!":et>=2&&j?eW="Unable to connect wallet":j?eW=j.detail:ef?eW="Switch your wallet to the requested network.":ey&&ep?eW="Sign the message in your wallet to verify it belongs to you.":"metamask"===eT&&i.Fr?eW="Click continue to open and connect MetaMask.":"metamask"===eT?eW="For the best experience, connect only one wallet at a time.":"wallet_connect"===em?eW="Open your mobile wallet app to continue":"coinbase_wallet"===em?(0,g.y)()||(eW=T(eo)?"Continue with the Coinbase app. Not the right wallet? Reset your connection below.":"Confirm in the Coinbase app/popup to continue."):(null==Y||null==(A=Y.login)?void 0:A.isSigningInWithLedgerSolana)&&(eW="Ledger requires a transaction to verify your identity. You'll sign a transaction that performs no onchain action.");let eR=null==en||null==(L=en.walletConnectors)?void 0:L.find(e=>"coinbase_wallet"===e.walletClientType),eA="coinbase_wallet"===eT&&(T(eo)||j===g.C.ERROR_USER_EXISTS);return(0,o.jsx)(E,{walletLogo:eE,title:I,subtitle:eW,signSuccess:N,errorMessage:j,connectSuccess:ey,separateConnectAndSign:ep,signing:O,walletConnectRedirectUri:ec,walletConnectFallbackUniversalUri:es,hasTabbedAway:ev,showCoinbaseWalletResetCta:eA,numRetries:et,onBack:H&&z!==H?q:void 0,onSign:()=>{U(!0),eb()},onRetry:()=>{el(et+1),F(void 0),ey?(U(!0),eb()):null==G||G.connectRetry()},onCoinbaseReset:()=>{eR&&(null==eR||eR.disconnect())},onDifferentWallet:q})}},W=c.I4.p(m())},70170:(e,n,t)=>{t.d(n,{s:()=>o});var l=t(24562);let o=(e,n)=>(0,l.s)(e,n.ethereum.createOnLogin)||(0,l.k)(e,n.solana.createOnLogin)}}]);

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.