1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7974],{91804:function(e,n,t){t.d(n,{Z:function(){return a}});let a=(0,t(79205).Z)("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"}]])},64297:function(e,n,t){var a=t(2265);let o=a.forwardRef(function(e,n){let{title:t,titleId:o,...l}=e;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:n,"aria-labelledby":o},l),t?a.createElement("title",{id:o},t):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"}))});n.Z=o},43867:function(e,n,t){t.d(n,{C:function(){return i}});
1var a=t(57437),o=t(80717),l=t(29872);let i=({children:e,color:n,isLoading:t,isPulsing:o,...l})=>(0,a.jsx)(r,{$color:n,$isLoading:t,$isPulsing:o,...l,children:e}),r=o.zo.span` 2 padding: 0.25rem; 3 font-size: 0.75rem; 4 font-weight: 500; 5 line-height: 1rem; /* 150% */ 6 border-radius: var(--privy-border-radius-xs); 7 display: flex; 8 align-items: center; 9 ${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,o.F4)` 10 from, to { 11 background-color: ${t}; 12 } 13 14 50% { 15 background-color: rgba(${t}, 0.8); 16 } 17 `;return(0,o.iv)` 18 color: ${n}; 19 background-color: ${t}; 20 ${e.$isPulsing&&(0,o.iv)` 21 animation: ${a} 3s linear infinite; 22 `}; 23 `}} 24 25 ${l.L} 26`},9277:function(e,n,t){t.d(n,{t:function(){return i}});var a=t(57437),o=t(22121),l=t(74002);function i({title:e}){let{currentScreen:n,navigateBack:t,navigate:i,data:r,setModalData:c}=(0,o.a)();return(0,a.jsx)(l.M,{title:e,backFn:"ManualTransferScreen"===n?t:n===r?.funding?.methodScreen?r.funding.comingFromSendTransactionScreen?()=>i("SendTransactionScreen"):void 0:r?.funding?.methodScreen?()=>{let e=r.funding;e.usingDefaultFundingMethod&&(e.usingDefaultFundingMethod=!1),c({funding:e,solanaFundingData:r?.solanaFundingData}),i(e.methodScreen)}:void 0})}},19333:function(e,n,t){t.d(n,{I:function(){return l}});var a=t(57437),o=t(64297);let l=({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)(o.Z,{style:{height:24,width:24}}):e?(0,a.jsx)(e,{style:{height:24,width:24}}):null},29872:function(e,n,t){t.d(n,{L:function(){return l}});var a=t(80717);let o=(0,a.F4)` 27 from, to { 28 background: var(--privy-color-foreground-4); 29 color: var(--privy-color-foreground-4); 30 } 31 32 50% { 33 background: var(--privy-color-foreground-accent); 34 color: var(--privy-color-foreground-accent); 35 } 36`,l=(0,a.iv)` 37 ${e=>e.$isLoading?(0,a.iv)` 38 width: 35%; 39 animation: ${o} 2s linear infinite; 40 border-radius: var(--privy-border-radius-sm); 41 `:""} 42`},97757:function(e,n,t){t.d(n,{C:function(){return i},S:function(){return l}});var a=t(57437),o=t(80717);let l=({title:e,description:n,children:t,...o})=>(0,a.jsx)(r,{...o,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,o.zo)(l)` 43 margin-bottom: 24px; 44`;let i=({title:e,description:n,icon:t,children:o,...l})=>(0,a.jsxs)(c,{...l,children:[t||null,(0,a.jsx)("h3",{children:e}),n&&"string"==typeof n?(0,a.jsx)("p",{children:n}):n,o]}),r=o.zo.div` 45 display: flex; 46 flex-direction: column; 47 justify-content: flex-start; 48 align-items: flex-start; 49 text-align: left; 50 gap: 8px; 51 width: 100%; 52 margin-bottom: 24px; 53 54 && h3 { 55 font-size: 17px; 56 color: var(--privy-color-foreground); 57 } 58 59 /* Sugar assuming children are paragraphs. Otherwise, handling styling on your own */ 60 && p { 61 color: var(--privy-color-foreground-2); 62 font-size: 14px; 63 } 64`,c=(0,o.zo)(r)` 65 align-items: center; 66 text-align: center; 67 gap: 16px; 68 69 h3 { 70 margin-bottom: 24px; 71 } 72`},71471:function(e,n,t){t.d(n,{S:function(){return o}});var a=t(80717);let o=a.zo.span` 73 margin-top: 4px; 74 color: var(--privy-color-foreground); 75 text-align: center; 76 77 font-size: 0.875rem; 78 font-weight: 400; 79 line-height: 1.375rem; /* 157.143% */ 80 81 && a { 82 color: var(--privy-color-accent); 83 } 84`},57974:function(e,n,t){t.r(n),t.d(n,{TransferFromWalletScreen:function(){return W},default:function(){return W}});var a=t(57437),o=t(2265),l=t(74002),i=t(97757),r=t(9277),c=t(43867),s=t(71471),d=t(28071),p=t(15588),u=t(6140),h=t(22121),y=t(22422),f=t(14896),g=t(6540),w=t(97048),m=t(80717),x=t(19333),v=t(9228),T=t(62789);t(29155),t(87336),t(64131),t(84250);let C=({provider:e,displayName:n,logo:t,connectOnly:o,connector:l})=>{let i,{navigate:r,setModalData:c}=(0,h.a)(),{connectWallet:s}=(0,u.u)(),d=(0,p.r)(),y=(0,p.z)(e),f="wallet_connect_v2"===l.connectorType?e:l.walletClientType,m=window.matchMedia("(display-mode: standalone)").matches,T=(0,p.k)({connectorType:l.connectorType,walletClientType:f});i=T&&T.chainTypes.includes(l.chainType)?()=>{T.isInstalled||"solana"===l.chainType&&"isInstalled"in l&&l.isInstalled?(s(l,f),r(o?"ConnectOnlyStatusScreen":"ConnectionStatusScreen")):w.tq?(c({installWalletModalData:{w
84alletConfig:T,chainType:l.chainType,connectOnly:o}}),r("WalletInterstitialScreen")):(c({installWalletModalData:{walletConfig:T,chainType:l.chainType,connectOnly:o}}),r("InstallWalletScreen"))}:"coinbase_wallet"!==l.connectorType||"eoaOnly"!==l.coinbaseWalletConfig.preference?.options||!w.tq||m||(0,v.y)()?()=>{(!(0,g.x)(window.navigator.userAgent)||event?.isTrusted)&&(s(l,f),o?"wallet_connect_v2"===l.connectorType?(c(e=>({...e,externalConnectWallet:{...e?.externalConnectWallet,preSelectedWalletId:"wallet_connect_qr"}})),r("ConnectOnlyLandingScreen")):r("ConnectOnlyStatusScreen"):r("ConnectionStatusScreen"))}:()=>{window.location.href=`https://go.cb-w.com/dapp?cb_url=${encodeURI(window.location.href)}`};let C=n||y?.metadata?.shortName||y?.name||l.walletClientType;return(0,a.jsxs)(j,{onClick:i,children:[(0,a.jsx)(x.I,{icon:t||y?.image_url?.md,name:C}),(0,a.jsx)("span",{children:C}),(0,a.jsxs)(_,{id:"chip-container",children:[d?.walletClientType===f&&d?.chainType===l.chainType?(0,a.jsx)(b,{color:"gray",children:"Recent"}):(0,a.jsx)("span",{id:"connect-text",children:"Connect"}),"solana"===l.chainType&&(0,a.jsx)(b,{color:"gray",children:"Solana"})]})]})},j=(0,m.zo)(p.A)` 85 /* Wallet name text color */ 86 > span { 87 color: var(--privy-color-foreground); 88 } 89 90 /* Show "Connect" on hover */ 91 > #chip-container > #connect-text { 92 font-weight: 500; 93 color: var(--privy-color-accent); 94 opacity: 0; 95 transition: opacity 0.1s ease-out; 96 } 97 98 :hover > #chip-container > #connect-text { 99 opacity: 1; 100 } 101 102 @media (max-width: 440px) { 103 > #chip-container > #connect-text { 104 display: none; 105 } 106 } 107`,b=(0,m.zo)(c.C)` 108 margin-left: auto; 109`,_=m.zo.div` 110 display: flex; 111 flex-wrap: wrap; 112 gap: 8px; 113 margin-left: auto; 114`,$=["coinbase_wallet","base_account"],S=["metamask","okx_wallet","rainbow","uniswap","bybit_wallet","ronin_wallet","haha_wallet","uniswap_extension","zerion","rabby_wallet","cryptocom","binance","kraken_wallet"],k=["safe"],z=["phantom","backpack","solflare","jupiter","universal_profile"],W={component:()=>{let e,{connectors:n}=(0,u.u)(),{setModalData:t,data:c,navigate:w}=(0,h.a)(),m=(0,d.u)(),{wallets:x}=(0,y.u)(),v=n.filter(p.c).flatMap(e=>e.wallets),[T,j]=(0,o.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),D=W.map(e=>e.walletClientType),O=v.filter(e=>"privy"!==e.walletClientType),M=O.map(e=>e.walletClientType),E=[],B={...c.funding};B.usingDefaultFundingMethod&&(B.usingDefaultFundingMethod=!1);let A=({wallet:e,walletChainType:n})=>{t({...c,funding:{...B,connectedWallet:e,onContinueWithExternalWallet:()=>w(I({destChainType:b?"solana":"ethereum",sourceChainType:n}))},solanaFundingData:c?.solanaFundingData?{...c.solanaFundingData,sourceWalletData:{address:e.address,walletClientType:e.walletClientType}}:void 0}),w("FundingAmountEditScreen")};"solana-only"!==e&&E.push(...W.map((e,n)=>(0,a.jsx)(F,{onClick:()=>A({wallet:e,walletChainType:"ethereum"}),icon:e.meta.icon,name:e.meta.name,chainType:e.type},n))),"ethereum-only"!==e&&E.push(...O.map((e,n)=>(0,a.jsx)(F,{onClick:()=>A({wallet:e,walletChainType:"solana"}),icon:e.meta.icon,name:e.meta.name,chainType:e.type},n))),E.push(...(({walletList:e,walletChainType:n,connectors:t,connectOnly:o,ignore:l,w
114alletConnectEnabled: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,h]of(r?[r.wallet]:e).entries()){if("detected_ethereum_wallets"===h)for(let[e,n]of p.filter(({chainType:e,connectorType:n,walletClientType:t})=>"solana"!==e&&("uniswap_wallet_extension"===t||"uniswap_extension"===t?!l.includes("uniswap"):"crypto.com_wallet_extension"===t||"crypto.com_onchain"===t?!l.includes("cryptocom"):"injected"===n&&!l.includes(t))).entries()){let{walletClientType:l,walletBranding:i,chainType:r}=n;("unknown"===l?s:c).push((0,a.jsx)(C,{connectOnly:o,provider:l,logo:i.icon,displayName:i.name,connector:n},`${t}-${h}-${l}-${r}-${e}`))}if("detected_solana_wallets"===h)for(let[e,i]of p.filter(({chainType:e,walletClientType:t})=>{if("solana"===e)return"ethereum-only"!==n&&!l.includes(t)}).entries()){let{walletClientType:n,walletBranding:l,chainType:r}=i;("unknown"===n?s:c).push((0,a.jsx)(C,{connectOnly:o,provider:n,logo:l.icon,displayName:l.name,connector:i},`${t}-${h}-${n}-${r}-${e}`))}if(z.includes(h)){let e=p.find(e=>"injected"===e.connectorType&&e.walletClientType===h||e.connectorType===h);if(e&&c.push((0,a.jsx)(C,{connectOnly:o,provider:h,connector:e},`${t}-${h}`)),"solana-only"===n||"ethereum-and-solana"===n){let e=p.find(({chainType:e,walletClientType:n})=>"solana"===e&&n===h);e&&c.push((0,a.jsx)(C,{connectOnly:o,provider:h,connector:e},`${h}-solana`))}}else if(S.includes(h)){let e=p.find(e=>"uniswap"===h?"uniswap_wallet_extension"===e.walletClientType||"uniswap_extension"===e.walletClientType:"cryptocom"===h?"crypto.com_wallet_extension"===e.walletClientType||"crypto.com_onchain"===e.walletClientType:"injected"===e.connectorType&&e.walletClientType===h);if(i&&!e&&(e=u),e&&c.push((0,a.jsx)(C,{connectOnly:o,provider:h,connector:e,logo:"injected"===e.connectorType?e.walletBranding.icon:void 0,displayName:"injected"===e.connectorType?e.walletBranding.name:void 0},`${t}-${h}`)),"solana-only"===n||"ethereum-and-solana"===n){let e=p.find(({chainType:e,walletClientType:n})=>"solana"===e&&n===h);e&&c.push((0,a.jsx)(C,{connectOnly:o,provider:h,connector:e},`${h}-solana`))}}else if($.includes(h)){let e=p.find(({connectorType:e})=>e===h);e&&c.push((0,a.jsx)(C,{connectOnly:o,provider:h,connector:e,displayName:"coinbase_wallet"===e.walletClientType?"Coinbase":"Base",logo:"coinbase_wallet"===e.walletClientType?g.y:g.z},`${t}-${h}`))}else if(k.includes(h))u&&d.push((0,a.jsx)(C,{connectOnly:o,provider:h,connector:u},`${t}-${h}`));else if("wallet_connect"===h)u&&d.push((0,a.jsx)(C,{connectOnly:o,provider:h,connector:u,logo:u.walletBranding.icon,displayName:"WalletConnect"},`${t}-${h}`));else if(h===r?.wallet){let n="ethereum"===r.chainType&&e.includes("detected_ethereum_wallets"),l="solana"===r.chainType&&e.includes("detected_solana_wallets");if(n||l){let e=p.find(({walletClientType:e})=>e===h);e&&c.push((0,a.jsx)(C,{connectOnly:o,provider:h,displayName:e.walletBranding?.name,logo:e.walletBranding?.icon,connector:e},`${t}-${h}`))}}}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,...D,...M],walletConnectEnabled:m.externalWallets.walletConnect.enabled}));let L=(0,a.jsx)(f.W,{text:"More wallets",onClick:()=>j("overflow")}),I=({sourceChainType:e,destChainType:n})=>"ethereum"===e&&"solana"===n?"AwaitingEvmToSolBridgingScreen":"ethereum"===e&&"ethereum"===n?"AwaitingExternalEthereumTransferScreen":"solana"===e&&"ethereum"===n?"AwaitingSolToEvmBridgingScreen":B.externalSolanaFundingScreen;return(0,o.useEffect)(()=>{t({...c,externalConnectWallet:{onCompleteNavigateTo:({address:e,walletClientType:n,walletChainType:a})=>{let o=a??"ethereum",l="ethereum"===o?W.find(t=>t.address===e&&t.walletClientType===n):O.find(t=>t.address===e&&t.walletClientType===n);return t({...c,funding:{...B,connectedWallet:l,onContinueWithExternalWallet:()=>{w(I({destChainType:b?"solana":"ethereum",sourceChainType:o}))}},solanaFundingData:c?.solanaFundingData?{...c.solanaFundingData,sourceWalletData:{address:e||"",walletClientType:n||""}}:void 0}),"FundingAmountEditScreen"}}})},[]),(0,a.jsxs)(a.Fragment,"overflow"===T?{children:[(0,a.jsx)(l.M,{backFn:()=>j("default")},"header"),(0,a.jsxs)(p.Q,{children:[(0,a.jsx)(s.S,{style:{color:"var(--privy-color-foreground-3)",textAlign:"left"},children:"More wallets"}),E]}),(0,a.jsx)(l.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)(p.Q,{children:[E.length>4?E.slice(0,3):E,E.length>4&&L]}),(0,a.jsx)(l.B,{})]})}},F=({onClick:e,icon:n,name:t,chainType:o})=>(0,a.jsxs)(p.A,{onClick:e,children:[(0,a.jsx)(T.I,{style:{width:20},children:(0,a.jsx)("img",{src:n})}),t,(0,a.jsx)(c.C,{color:"gray",style:{marginLeft:"auto"},children:"Connected"}),"solana"===o&&(0,a.jsx)(c.C,{color:"gray",children:"Solana"})]})},14896:function(e,n,t){t.d(n,{W:function(){return i}});var a=t(57437),o=t(91804),l=t(15588);let i=({onClick:e,text:n})=>(0,a.jsxs)(l.A,{onClick:e,children:[(0,a.jsx)(l.C,{children:(0,a.jsx)(o.Z,{})}),(0,a.jsx)(l.G,{children:n})]})},62789:function(e,n,t){t.d(n,{F:function(){return c},I:function(){return r},a:function(){return s},b:function(){return d},c:function(){return u},d:function(){return h},e:function(){return i},f:function(){return f},g:function(){return g},h:function(){return p}});var a=t(80717),o=t(74002),l=t(97954);let i=a.zo.div` 115 display: flex; 116 flex-direction: column; 117 gap: 12px; 118 padding-top: 24px; 119 padding-bottom: 24px; 120`,r=a.zo.div` 121 width: 24px; 122 height: 24px; 123 display: flex; 124 justify-content: center; 125 align-items: center; 126 127 svg { 128 border-radius: var(--privy-border-radius-sm); 129 } 130`,c=a.zo.div` 131 display: flex; 132 flex-direction: column; 133 justify-content: center; 134 align-items: flex-start; 135 gap: 8px; 136`,s=a.zo.div` 137 display: flex; 138 align-items: center; 139 gap: 4px; 140 width: 100%; 141 padding: 0 16px; 142 border-width: 1px !important; 143 border-radius: 12px; 144 cursor: text; 145 146 &:focus-within { 147 border-color: var(--privy-color-accent); 148 } 149`;a.zo.div` 150 font-size: 42px !important; 151`;let d=a.zo.input` 152 background-color: var(--privy-color-background); 153 width: 100%; 154 155 &:focus { 156 outline: none !important; 157 border: none !important; 158 box-shadow: none !important; 159 } 160 161 && { 162 font-size: 26px; 163 } 164`,p=(0,a.zo)(d)` 165 && { 166 font-size: 42px; 167 } 168`;a.zo.button` 169 cursor: pointer; 170 padding-left: 4px; 171`;let u=a.zo.div` 172 font-size: 18px; 173`,h=a.zo.div` 174 font-size: 12px; 175 color: var(--privy-color-foreground-3); 176 // we need this container to maintain a static height if there's no content 177 height: 20px; 178`;a.zo.div` 179 display: flex; 180 flex-direction: row; 181 line-height: 22px; 182 font-size: 16px; 183 text-align: center; 184 svg { 185 margin-right: 6px; 186 margin: auto; 187 } 188`,(0,a.zo)(l.LinkButton)` 189 margin-top: 16px; 190`;let y=(0,a.F4)` 191 from { 192 opacity: 0; 193 } 194 to { 195 opacity: 1; 196 } 197`;(0,a.zo)(o.d)` 198 border-radius: var(--privy-border-radius-md) !important; 199 animation: ${y} 0.3s ease-in-out; 200`;let f=a.zo.div``,g=a.zo.a` 201 && { 202 color: var(--privy-color-accent); 203 } 204 205 cursor: pointer; 206`}}]); 207//# sourceMappingURL=7974.a7111f128d10e73a.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.