1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3041],{1117:(e,n,t)=>{t.d(n,{L:()=>o});var a=t(11643);let l=(0,a.i7)` 2 from, to { 3 background: var(--privy-color-foreground-4); 4 color: var(--privy-color-foreground-4); 5 } 6 7 50% { 8 background: var(--privy-color-foreground-accent); 9 color: var(--privy-color-foreground-accent); 10 } 11`,o=(0,a.AH)` 12 ${e=>e.$isLoading?(0,a.AH)` 13 width: 35%; 14 animation: ${l} 2s linear infinite; 15 border-radius: var(--privy-border-radius-sm); 16 `:""} 17`},19493:(e,n,t)=>{t.d(n,{C:()=>i});var a=t(97448),l=t(11643),o=t(1117);let i=({children:e,color:n,isLoading:t,isPulsing:l,...o})=>(0,a.jsx)(r,{$color:n,$isLoading:t,$isPulsing:l,...o,children:e}),r=l.I4.span` 18 padding: 0.25rem; 19 font-size: 0.75rem; 20 font-weight: 500; 21 line-height: 1rem; /* 150% */ 22 border-radius: var(--privy-border-radius-xs); 23 display: flex; 24 align-items: center; 25 ${e=>{let n,t;"green"===e.$color&&(n="var(--privy-color-success-dark)",t="var(--privy-color-success-light)"),"red"===e.$color&&(n="var(--privy-color-error)",t="var(--privy-color-error-light)"),"gray"===e.$color&&(n="var(--privy-color-foreground-2)",t="var(--privy-color-background-2)");let a=(0,l.i7)` 26 from, to { 27 background-color: ${t}; 28 } 29 30 50% { 31 background-color: rgba(${t}, 0.8); 32 } 33 `;return(0,l.AH)` 34 color: ${n}; 35 background-color: ${t}; 36 ${e.$isPulsing&&(0,l.AH)` 37 animation: ${a} 3s linear infinite; 38 `}; 39 `}} 40 41 ${o.L} 42`},23411:(e,n,t)=>{t.d(n,{A:()=>a});let a=(0,t(45785).A)("wallet",[["path",{d:"M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1",key:"18etb6"}],["path",{d:"M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4",key:"xoc0q4"}]])},23438:(e,n,t)=>{t.d(n,{t:()=>i});var a=t(97448),l=t(89356),o=t(8042);function i({title:e}){let{currentScreen:n,navigateBack:t,navigate:r,data:c,setModalData:s}=(0,l.a)();return(0,a.jsx)(o.M,{title:e,backFn:"ManualTransferScreen"===n?t:n===c?.funding?.methodScreen?c.funding.comingFromSendTransactionScreen?()=>r("SendTransactionScreen"):void 0:c?.funding?.methodScreen?()=>{let e=c.funding;e.usingDefaultFundingMethod&&(e.usingDefaultFundingMethod=!1),s({funding:e,solanaFundingData:c?.solanaFundingData}),r(e.methodScreen)}:void 0})}},42147:(e,n,t)=>{t.d(n,{S:()=>l});var a=t(11643);let l=a.I4.span` 43 margin-top: 4px; 44 color: var(--privy-color-foreground); 45 text-align: center; 46 47 font-size: 0.875rem; 48 font-weight: 400; 49 line-height: 1.375rem; /* 157.143% */ 50 51 && a { 52 color: var(--privy-color-accent); 53 } 54`},42736:(e,n,t)=>{t.d(n,{A:()=>l});var a=t(91972);let l=a.forwardRef(function({title:e,titleId:n,...t},l){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:l,"aria-labelledby":n},t),e?a.createElement("title",{id:n},e):null,a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 12a2.25 2.25 0 0 0-2.25-2.25H15a3 3 0 1 1-6 0H5.25A2.25 2.25 0 0 0 3 12m18 0v6a2.25 2.25 0 0 1-2.25 2.25H5.25A2.25 2.25 0 0 1 3 18v-6m18 0V9M3 12V9m18 0a2.25 2.25 0 0 0-2.25-2.25H5.25A2.25 2.25 0 0 0 3 9m18 0V6a2.25 2.25 0 0 0-2.25-2.25H5.25A2.25 2.25 0 0 0 3 6v3"}))})},50449:(e,n,t)=>{t.d(n,{F:()=>c,I:()=>r,a:()=>s,b:()=>d,c:()=>u,d:()=>y,e:()=>i,f:()=>g,g:()=>f,h:()=>p});var a=t(11643),l=t(8042),o=t(41395);let i=a.I4.div` 55 display: flex; 56 flex-direction: column; 57 gap: 12px; 58 padding-top: 24px; 59 padding-bottom: 24px; 60`,r=a.I4.div` 61 width: 24px; 62 height: 24px; 63 display: flex; 64 justify-content: center; 65 align-items: center; 66 67 svg { 68 border-radius: var(--privy-border-radius-sm); 69 } 70`,c=a.I4.div` 71 display: flex; 72 flex-direction: column; 73 justify-content: center; 74 align-items: flex-start; 75 gap: 8px; 76`,s=a.I4.div` 77 display: flex; 78 align-items: center; 79 gap: 4px; 80 width: 100%; 81 padding: 0 16px; 82 border-width: 1px !important; 83 border-radius: 12px; 84 cursor: text; 85 86 &:focus-within { 87 border-color: var(--privy-color-accent); 88 } 89`;a.I4.div` 90 font-size: 42px !important; 91`;let d=a.I4.input` 92 background-color: var(--privy-color-background); 93 width: 100%; 94 95 &:focus { 96 outline: none !important; 97 border: none !important; 98 box-shadow: none !important; 99 } 100 101 && { 102 font-size: 26px; 103 } 104`,p=(0,a.I4)(d)` 105 && { 106 font-size: 42px; 107 } 108`;a.I4.button` 109 cursor: pointer; 110 padding-left: 4px; 111`;let u=a.I4.div` 112 font-size: 18px; 113`,y=a.I4.div` 114 font-size: 12px; 115 color: var(--privy-color-foreground-3); 116 // we need this container to maintain a static height if there's no content 117 height: 20px; 118`;a.I4.div` 119 display: flex; 120 flex-direction: row; 121 line-height: 22px; 122 font-size: 16px; 123 text-align: center; 124 svg { 125 margin-right: 6px; 126 margin: auto; 127 } 128`,(0,a.I4)(o.LinkButton)` 129 margin-top: 16px; 130`;let h=(0,a.i7)` 131 from { 132 opacity: 0; 133 } 134 to { 135 opacity: 1; 136 } 137`;(0,a.I4)(l.d)` 138 border-radius: var(--privy-border-radius-md) !important; 139 animation: ${h} 0.3s ease-in-out; 140`;let g=a.I4.div``,f=a.I4.a` 141 && { 142 color: var(--privy-color-accent); 143 } 144 145 cursor: pointer; 146`},74376:(e,n,t)=>{t.d(n,{W:()=>i});var a=t(97448),l=t(23411),o=t(81828);let i=({onClick:e,text:n})=>(0,a.jsxs)(o.A,{onClick:e,children:[(0,a.jsx)(o.C,{children:(0,a.jsx)(l.A,{})}),(0,a.jsx)(o.G,{children:n})]})},87550:(e,n,t)=>{t.d(n,{I:()=>o});var a=t(97448),l=t(42736);let o=({icon:e,name:n})=>"string"==typeof e?(0,a.jsx)("img",{alt:`${n||"wallet"} logo`,src:e,style:{height:24,width:24,borderRadius:4}}):void 0===e?(0,a.jsx)(l.A,{style:{height:24,width:24}}):e?(0,a.jsx)(e,{style:{height:24,width:24}}):null},93041:(e,n,t)=>{t.r(n),t.d(n,{TransferFromWalletScreen:()=>W,default:()=>W});var a=t(97448),l=t(91972),o=t(8042),i=t(95154),r=t(23438),c=t(87550),s=t(19493),d=t(42147),p=t(54028),u=t(81828),y=t(90730),h=t(89356),g=t(64808),f=t(74376),w=t(49963),m=t(17195),x=t(11643),v=t(48871),T=t(50449);t(1496),t(54744),t(38255),t(10107);let C=({provider:e,displayName:n,logo:t,connectOnly:o,connector:i})=>{let r,{navigate:s,setModalData:d}=(0,h.a)(),{connectWallet:p,walletConnectionStatus:g}=(0,y.u)(),f=(0,u.r)(),x="wallet_connect_v2"===i.connectorType?e:i.walletClientType,[T,C]=(0,l.useState)(!1);(0,l.useEffect)(()=>{T&&("connected"===g?.status||g?.connectError)&&(s(o?"ConnectOnlyStatusScreen":"ConnectionStatusScreen"),C(!1))},[T,g]);let S=(0,u.z)(e),$=window.matchMedia("(display-mode: standalone)").matches,k=(0,u.k)({connectorType:i.connectorType,walletClientType:x});r=k&&k.chainTypes.includes(i.chainType)?()=>{k.isInstalled||"solana"===i.chainType&&"isInstalled"in i&&i.isInstalled?(p(i,x),s(o?"ConnectOnlyStatusScreen":"ConnectionStatusScreen")):m.Fr?(d({installWalletModalData:{w
146alletConfig:k,chainType:i.chainType,connectOnly:o}}),s("WalletInterstitialScreen")):(d({installWalletModalData:{walletConfig:k,chainType:i.chainType,connectOnly:o}}),s("InstallWalletScreen"))}:"coinbase_wallet"!==i.connectorType||"eoaOnly"!==i.coinbaseWalletConfig.preference?.options||!m.Fr||$||(0,v.z)()?()=>{if(!(0,w.x)(window.navigator.userAgent)||event?.isTrusted){if("mobile_wallet_adapter"===i.walletClientType)return p(i,x),void C(!0);p(i,x),o?"wallet_connect_v2"===i.connectorType?(d(e=>({...e,externalConnectWallet:{...e?.externalConnectWallet,preSelectedWalletId:"wallet_connect_qr"}})),s("ConnectOnlyLandingScreen")):s("ConnectOnlyStatusScreen"):s("ConnectionStatusScreen")}}:()=>{window.location.href=`https://go.cb-w.com/dapp?cb_url=${encodeURI(window.location.href)}`};let I=n||S?.metadata?.shortName||S?.name||i.walletClientType;return(0,a.jsxs)(j,{onClick:r,children:[(0,a.jsx)(c.I,{icon:t||S?.image_url?.md,name:I}),(0,a.jsx)("span",{children:I}),(0,a.jsxs)(_,{id:"chip-container",children:[f?.walletClientType===x&&f?.chainType===i.chainType?(0,a.jsx)(b,{color:"gray",children:"Recent"}):(0,a.jsx)("span",{id:"connect-text",children:"Connect"}),"solana"===i.chainType&&(0,a.jsx)(b,{color:"gray",children:"Solana"})]})]})},j=(0,x.I4)(u.A)` 147 /* Wallet name text color */ 148 > span { 149 color: var(--privy-color-foreground); 150 } 151 152 /* Show "Connect" on hover */ 153 > #chip-container > #connect-text { 154 font-weight: 500; 155 color: var(--privy-color-accent); 156 opacity: 0; 157 transition: opacity 0.1s ease-out; 158 } 159 160 :hover > #chip-container > #connect-text { 161 opacity: 1; 162 } 163 164 @media (max-width: 440px) { 165 > #chip-container > #connect-text { 166 display: none; 167 } 168 } 169`,b=(0,x.I4)(s.C)` 170 margin-left: auto; 171`,_=x.I4.div` 172 display: flex; 173 flex-wrap: wrap; 174 gap: 8px; 175 margin-left: auto; 176`,S=["coinbase_wallet","base_account"],$=["metamask","okx_wallet","rainbow","uniswap","bybit_wallet","ronin_wallet","haha_wallet","uniswap_extension","zerion","rabby_wallet","cryptocom","binance","kraken_wallet"],k=["safe"],I=["phantom","backpack","solflare","jupiter","universal_profile"],W={component:()=>{let e,{connectors:n}=(0,y.u)(),{setModalData:t,data:c,navigate:s}=(0,h.a)(),m=(0,p.u)(),{wallets:x}=(0,g.u)(),v=n.filter(u.c).flatMap(e=>e.wallets),[T,j]=(0,l.useState)("default"),b="solana"===c?.funding?.chainType,_=!!c?.funding?.crossChainBridgingEnabled;e="ethereum"===c?.funding?.chainType?c.funding.erc20Address&&!c.funding.isUSDC?"ethereum-only":_&&!c.funding.chain.testnet?"ethereum-and-solana":"ethereum-only":_&&!c.funding?.isUSDC?"ethereum-and-solana":"solana-only";let W=x.filter(e=>"privy"!==e.walletClientType),F=W.map(e=>e.walletClientType),O=v.filter(e=>"privy"!==e.walletClientType),D=O.map(e=>e.walletClientType),M=[],E={...c.funding};E.usingDefaultFundingMethod&&(E.usingDefaultFundingMethod=!1);let B=({wallet:e,walletChainType:n})=>{t({...c,funding:{...E,connectedWallet:e,onContinueWithExternalWallet:()=>s(L({destChainType:b?"solana":"ethereum",sourceChainType:n}))},solanaFundingData:c?.solanaFundingData?{...c.solanaFundingData,sourceWalletData:{address:e.address,walletClientType:e.walletClientType}}:void 0}),s("FundingAmountEditScreen")};"solana-only"!==e&&M.push(...W.map((e,n)=>(0,a.jsx)(A,{onClick:()=>B({wallet:e,walletChainType:"ethereum"}),icon:e.meta.icon,name:e.meta.name,chainType:e.type},n))),"ethereum-only"!==e&&M.push(...O.map((e,n)=>(0,a.jsx)(A,{onClick:()=>B({wallet:e,walletChainType:"solana"}),icon:e.meta.icon,name:e.meta.name,chainType:e.type},n))),M.push(...(({walletList:e,walletChainType:n,connectors:t,connectOnly:l,ignore:o,walletConnectEnabled:i,forceWallet:r})=>{let c=[],s=[],d=[],p=t.filter(e=>"ethereum-only"===n?"ethereum"===e.chainType:"solana-only"!==n||"solana"===e.chainType),u=p.find(e=>"wallet_connect_v2"===e.connectorType);for(let[t,y]of(r?[r.wallet]:e).entries()){if("detected_ethereum_wallets"===y)for(let[e,n]of p.filter(({chainType:e,connectorType:n,walletClientType:t})=>"solana"!==e&&("uniswap_wallet_extension"===t||"uniswap_extension"===t?!o.includes("uniswap"):"crypto.com_wallet_extension"===t||"crypto.com_onchain"===t?!o.includes("cryptocom"):"injected"===n&&!o.includes(t))).entries()){let{walletClientType:o,walletBranding:i,chainType:r}=n;("unknown"===o?s:c).push((0,a.jsx)(C,{connectOnly:l,provider:o,logo:i.icon,displayName:i.name,connector:n},`${t}-${y}-${o}-${r}-${e}`))}if("detected_solana_wallets"===y)for(let[e,i]of p.filter(({chainType:e,walletClientType:t})=>{if("solana"===e)return"ethereum-only"!==n&&!o.includes(t)}
176).entries()){let{walletClientType:n,walletBranding:o,chainType:r}=i;("unknown"===n?s:c).push((0,a.jsx)(C,{connectOnly:l,provider:n,logo:o.icon,displayName:o.name,connector:i},`${t}-${y}-${n}-${r}-${e}`))}if(I.includes(y)){let e=p.find(e=>"injected"===e.connectorType&&e.walletClientType===y||e.connectorType===y);if(e&&c.push((0,a.jsx)(C,{connectOnly:l,provider:y,connector:e},`${t}-${y}`)),"solana-only"===n||"ethereum-and-solana"===n){let e=p.find(({chainType:e,walletClientType:n})=>"solana"===e&&n===y);e&&c.push((0,a.jsx)(C,{connectOnly:l,provider:y,connector:e},`${y}-solana`))}}else if($.includes(y)){let e=p.find(e=>"uniswap"===y?"uniswap_wallet_extension"===e.walletClientType||"uniswap_extension"===e.walletClientType:"cryptocom"===y?"crypto.com_wallet_extension"===e.walletClientType||"crypto.com_onchain"===e.walletClientType:"injected"===e.connectorType&&e.walletClientType===y);if(i&&!e&&(e=u),e&&c.push((0,a.jsx)(C,{connectOnly:l,provider:y,connector:e,logo:"injected"===e.connectorType?e.walletBranding.icon:void 0,displayName:"injected"===e.connectorType?e.walletBranding.name:void 0},`${t}-${y}`)),"solana-only"===n||"ethereum-and-solana"===n){let e=p.find(({chainType:e,walletClientType:n})=>"solana"===e&&n===y);e&&c.push((0,a.jsx)(C,{connectOnly:l,provider:y,connector:e},`${y}-solana`))}}else if(S.includes(y)){let e=p.find(({connectorType:e})=>e===y);e&&c.push((0,a.jsx)(C,{connectOnly:l,provider:y,connector:e,displayName:"coinbase_wallet"===e.walletClientType?"Coinbase":"Base",logo:"coinbase_wallet"===e.walletClientType?w.y:w.z},`${t}-${y}`))}else if(k.includes(y))u&&d.push((0,a.jsx)(C,{connectOnly:l,provider:y,connector:u},`${t}-${y}`));else if("wallet_connect"===y)u&&d.push((0,a.jsx)(C,{connectOnly:l,provider:y,connector:u,logo:u.walletBranding.icon,displayName:"WalletConnect"},`${t}-${y}`));else if(y===r?.wallet){let n="ethereum"===r.chainType&&e.includes("detected_ethereum_wallets"),o="solana"===r.chainType&&e.includes("detected_solana_wallets");if(n||o){let e=p.find(({walletClientType:e})=>e===y);e&&c.push((0,a.jsx)(C,{connectOnly:l,provider:y,displayName:e.walletBranding?.name,logo:e.walletBranding?.icon,connector:e},`${t}-${y}`))}}}return[...s,...c,...d]})({walletList:m.appearance.walletList.filter(e=>!W.some(n=>n.walletClientType===e)&&!O.some(n=>n.walletClientType===e)),walletChainType:e,connectors:n,connectOnly:!0,ignore:[...m.appearance.walletList,...F,...D],walletConnectEnabled:m.externalWallets.walletConnect.enabled}));let z=(0,a.jsx)(f.W,{text:"More wallets",onClick:()=>j("overflow")}),L=({sourceChainType:e,destChainType:n})=>"ethereum"===e&&"solana"===n?"AwaitingEvmToSolBridgingScreen":"ethereum"===e&&"ethereum"===n?"AwaitingExternalEthereumTransferScreen":"solana"===e&&"ethereum"===n?"AwaitingSolToEvmBridgingScreen":E.externalSolanaFundingScreen;return(0,l.useEffect)(()=>{t({...c,externalConnectWallet:{onCompleteNavigateTo:({address:e,walletClientType:n,walletChainType:a})=>{let l=a??"ethereum",o="ethereum"===l?W.find(t=>t.address===e&&t.walletClientType===n):O.find(t=>t.address===e&&t.walletClientType===n);return t({...c,funding:{...E,connectedWallet:o,onContinueWithExternalWallet:()=>{s(L({destChainType:b?"solana":"ethereum",sourceChainType:l}))}},solanaFundingData:c?.solanaFundingData?{...c.solanaFundingData,sourceWalletData:{address:e||"",walletClientType:n||""}}:void 0}),"FundingAmountEditScreen"}}})},[]),(0,a.jsxs)(a.Fragment,"overflow"===T?{children:[(0,a.jsx)(o.M,{backFn:()=>j("default")},"header"),(0,a.jsxs)(u.Q,{children:[(0,a.jsx)(d.S,{style:{color:"var(--privy-color-foreground-3)",textAlign:"left"},children:"More wallets"}),M]}),(0,a.jsx)(o.B,{})]}:{children:[(0,a.jsx)(r.t,{}),(0,a.jsx)(i.C,{title:"Transfer from wallet",description:"Connect a wallet to deposit funds or send funds manually to your wallet address."}),(0,a.jsxs)(u.Q,{children:[M.length>4?M.slice(0,3):M,M.length>4&&z]}),(0,a.jsx)(o.B,{})]})}},A=({onClick:e,icon:n,name:t,chainType:l})=>(0,a.jsxs)(u.A,{onClick:e,children:[(0,a.jsx)(T.I,{style:{width:20},children:(0,a.jsx)(c.I,{icon:n,name:t})}),t,(0,a.jsx)(s.C,{color:"gray",style:{marginLeft:"auto"},children:"Connected"}),"solana"===l&&(0,a.jsx)(s.C,{color:"gray",children:"Solana"})]})},95154:(e,n,t)=>{t.d(n,{C:()=>i,S:()=>o});var a=t(97448),l=t(11643);let o=({title:e,description:n,children:t,...l})=>(0,a.jsx)(r,{...l,children:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("h3",{children:e}),"string"==typeof n?(0,a.jsx)("p",{children:n}):n,t]})});(0,l.I4)(o)` 177 margin-bottom: 24px; 178`;let i=({title:e,description:n,icon:t,children:l,...o})=>(0,a.jsxs)(c,{...o,children:[t||null,(0,a.jsx)("h3",{children:e}),n&&"string"==typeof n?(0,a.jsx)("p",{children:n}):n,l]}),r=l.I4.div` 179 display: flex; 180 flex-direction: column; 181 justify-content: flex-start; 182 align-items: flex-start; 183 text-align: left; 184 gap: 8px; 185 width: 100%; 186 margin-bottom: 24px; 187 188 && h3 { 189 font-size: 17px; 190 color: var(--privy-color-foreground); 191 } 192 193 /* Sugar assuming children are paragraphs. Otherwise, handling styling on your own */ 194 && p { 195 color: var(--privy-color-foreground-2); 196 font-size: 14px; 197 } 198`,c=(0,l.I4)(r)` 199 align-items: center; 200 text-align: center; 201 gap: 16px; 202 203 h3 { 204 margin-bottom: 24px; 205 } 206`}}]);
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.