PageSourceSearch

https://dynamic-lebkuchen-0238db.netlify.app/static/js/8656.b15d23cc.chunk.js

js dynamic-lebkuchen-0238db.netlify.app collected 2026-10-03 10:41:06 UTC 36,354 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkico_react=self.webpackChunkico_react||[]).push([[8656],{12771:(e,n,t)=>{t.d(n,{g:()=>r});var a=t(75581),i=t(46755),o=t(12663);const r=async e=>{let{address:n,chain:t,rpcConfig:r,privyAppId:d}=e;try{let e=(0,a.l)({chain:t,transport:(0,i.L)((0,o.a)(t,r,d))}),[c,s]=await Promise.all([e.readContract({abi:l,address:n,functionName:"symbol"}),e.readContract({abi:l,address:n,functionName:"decimals"})]);return{decimals:s,symbol:c}}catch(c){return console.log(c),null}};let l=[{inputs:[],name:"decimals",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"}]},14466:(e,n,t)=>{t.d(n,{A:()=>l});var a=t(15882),i=t(57722);const o=["title","titleId"];function r(e,n){let{title:t,titleId:r}=e,l=(0,a.A)(e,o);return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":r},l),t?i.createElement("title",{id:r},t):null,i.createElement("path",{fillRule:"evenodd",d:"M15.97 2.47a.75.75 0 0 1 1.06 0l4.5 4.5a.75.75 0 0 1 0 1.06l-4.5 4.5a.75.75 0 1 1-1.06-1.06l3.22-3.22H7.5a.75.75 0 0 1 0-1.5h11.69l-3.22-3.22a.75.75 0 0 1 0-1.06Zm-7.94 9a.75.75 0 0 1 0 1.06l-3.22 3.22H16.5a.75.75 0 0 1 0 1.5H4.81l3.22 3.22a.75.75 0 1 1-1.06 1.06l-4.5-4.5a.75.75 0 0 1 0-1.06l4.5-4.5a.75.75 0 0 1 1.06 0Z",clipRule:"evenodd"}))}const l=i.forwardRef(r)},28656:(e,n,t)=>{t.r(n),t.d(n,{FundingMethodSelectionScreen:()=>G,default:()=>G});var a=t(24107),i=t(90034),o=t(15882),r=t(57722);const l=["title","titleId"];function d(e,n){let{title:t,titleId:a}=e,i=(0,o.A)(e,l);return r.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":a},i),t?r.createElement("title",{id:a},t):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 8.25h19.5M2.25 9h19.5m-16.5 5.25h6m-6 2.25h3m-3.75 3h15a2.25 2.25 0 0 0 2.25-2.25V6.75A2.25 2.25 0 0 0 19.5 4.5h-15a2.25 2.25 0 0 0-2.25 2.25v10.5A2.25 2.25 0 0 0 4.5 19.5Z"}))}const c=r.forwardRef(d),s=["title","titleId"];function u(e,n){let{title:t,titleId:a}=e,i=(0,o.A)(e,s);return r.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":a},i),t?r.createElement("title",{id:a},t):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 4.875c0-.621.504-1.125 1.125-1.125h4.5c.621 0 1.125.504 1.125 1.125v4.5c0 .621-.504 1.125-1.125 1.125h-4.5A1.125 1.125 0 0 1 3.75 9.375v-4.5ZM3.75 14.625c0-.621.504-1.125 1.125-1.125h4.5c.621 0 1.125.504 1.125 1.125v4.5c0 .621-.504 1.125-1.125 1.125h-4.5a1.125 1.125 0 0 1-1.125-1.125v-4.5ZM13.5 4.875c0-.621.504-1.125 1.125-1.125h4.5c.621 0 1.125.504 1.125 1.125v4.5c0 .621-.504 1.125-1.125 1.125h-4.5A1.125 1.125 0 0 1 13.5 9.375v-4.5Z"}),r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6.75 6.75h.75v.75h-.75v-.75ZM6.75 16.5h.75v.75h-.75v-.75ZM16.5 6.75h.75v.75h-.75v-.75ZM13.5 13.5h.75v.75h-.75v-.75ZM13.5 19.5h.75v.75h-.75v-.75ZM19.5 13.5h.75v.75h-.75v-.75ZM19.5 19.5h.75v.75h-.75v-.75ZM16.5 16.5h.75v.75h-.75v-.75Z"}))}const h=r.forwardRef(u);var p=t(14466),v=t(10133),m=t(33898),f=t(51781),g=t(29002),y=t(41579),x=t(99844),w=t(1991),b=t(51380),C=t(49931),M=t(44131),I=t(57511),j=t(12771),k=t(3756),A=t(61395),F=t(76058),S=t(61314),E=t(50022),T=t(72735);let Z=new Set([k.r.id,A.E.id,F.R.id,S.n.id,E.D.id,T.m.id]),D=new Set([k.r.id,A.E.id,S.n.id,F.R.id,E.D.id,T.m.id]),W={buy:"CARD",send:"CRYPTO_ACCOUNT"},L={USDC:"2b92315d-eab7-5bef-84fa-089a131333f5",ETH:"d85dce9b-5b73-5c3c-8978-522ce1d1c1b4",BTC:"5b71fc48-3dd3-540c-809b-f8c94d0e68b5",SOL:"4f039497-3af8-5bb3-951c-6df9afa9be1c",POL:"026bcc1e-9163-591c-a709-34dd18b2e7a1"};k.r.id,A.E.id,F.R.id,S.n.id,E.D.id,T.m.id;function N(e){let{appId:n,input:t,amount:a,blockchain:i,asset:o,experience:r}=e,l=new URL("https://pay.coinbase.com/buy/select-asset");return l.searchParams.set("appId",t.app_id),l.searchParams.set("sessionToken",t.session_token),l.searchParams.set("endPartnerName","privy:".concat(n)),l.searchParams.set("defaultExperience",r),l.searchParams.set("presetCryptoAmount",a.startsWith(".")?"0".concat(a):a),l.searchParams.set("defaultNetwork",
1i),l.searchParams.set("defaultPaymentMethod",W[r]),l.searchParams.set("defaultAsset",L[o]),l.searchParams.set("partnerUserId",t.partner_user_id),{url:l}}const O=(e,n)=>{switch(n){case"native-currency":return Z.has(e);case"USDC":return D.has(e);default:return console.warn("Unknown asset passed to Coinbase Onramp"),!1}};var P=t(69886),_=t(26833),U=t(97175),z=t(66222);t(88404),t(2035),t(30549);const R=e=>(0,i.jsx)("svg",(0,a.A)((0,a.A)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 210.2",xmlSpace:"preserve"},e),{},{children:(0,i.jsx)("path",{d:"M93.6,27.1C87.6,34.2,78,39.8,68.4,39c-1.2-9.6,3.5-19.8,9-26.1c6-7.3,16.5-12.5,25-12.9  C103.4,10,99.5,19.8,93.6,27.1 M102.3,40.9c-13.9-0.8-25.8,7.9-32.4,7.9c-6.7,0-16.8-7.5-27.8-7.3c-14.3,0.2-27.6,8.3-34.9,21.2  c-15,25.8-3.9,64,10.6,85c7.1,10.4,15.6,21.8,26.8,21.4c10.6-0.4,14.8-6.9,27.6-6.9c12.9,0,16.6,6.9,27.8,6.7  c11.6-0.2,18.9-10.4,26-20.8c8.1-11.8,11.4-23.3,11.6-23.9c-0.2-0.2-22.4-8.7-22.6-34.3c-0.2-21.4,17.5-31.6,18.3-32.2  C123.3,42.9,107.7,41.3,102.3,40.9 M182.6,11.9v155.9h24.2v-53.3h33.5c30.6,0,52.1-21,52.1-51.4c0-30.4-21.1-51.2-51.3-51.2H182.6z   M206.8,32.3h27.9c21,0,33,11.2,33,30.9c0,19.7-12,31-33.1,31h-27.8V32.3z M336.6,169c15.2,0,29.3-7.7,35.7-19.9h0.5v18.7h22.4V90.2  c0-22.5-18-37-45.7-37c-25.7,0-44.7,14.7-45.4,34.9h21.8c1.8-9.6,10.7-15.9,22.9-15.9c14.8,0,23.1,6.9,23.1,19.6v8.6l-30.2,1.8  c-28.1,1.7-43.3,13.2-43.3,33.2C298.4,155.6,314.1,169,336.6,169z M343.1,150.5c-12.9,0-21.1-6.2-21.1-15.7c0-9.8,7.9-15.5,23-16.4  l26.9-1.7v8.8C371.9,140.1,359.5,150.5,343.1,150.5z M425.1,210.2c23.6,0,34.7-9,44.4-36.3L512,54.7h-24.6l-28.5,92.1h-0.5  l-28.5-92.1h-25.3l41,113.5l-2.2,6.9c-3.7,11.7-9.7,16.2-20.4,16.2c-1.9,0-5.6-0.2-7.1-0.4v18.7C417.3,210,423.3,210.2,425.1,210.2z"})})),V=e=>(0,i.jsxs)("svg",(0,a.A)((0,a.A)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 80 38.1",xmlSpace:"preserve"},e),{},{children:[(0,i.jsx)("path",{style:{fill:"#5F6368"},d:"M37.8,19.7V29h-3V6h7.8c1.9,0,3.7,0.7,5.1,2c1.4,1.2,2.1,3,2.1,4.9c0,1.9-0.7,3.6-2.1,4.9c-1.4,1.3-3.1,2-5.1,2  L37.8,19.7L37.8,19.7z M37.8,8.8v8h5c1.1,0,2.2-0.4,2.9-1.2c1.6-1.5,1.6-4,0.1-5.5c0,0-0.1-0.1-0.1-0.1c-0.8-0.8-1.8-1.3-2.9-1.2  L37.8,8.8L37.8,8.8z"}),(0,i.jsx)("path",{style:{fill:"#5F6368"},d:"M56.7,12.8c2.2,0,3.9,0.6,5.2,1.8s1.9,2.8,1.9,4.8V29H61v-2.2h-0.1c-1.2,1.8-2.9,2.7-4.9,2.7  c-1.7,0-3.2-0.5-4.4-1.5c-1.1-1-1.8-2.4-1.8-3.9c0-1.6,0.6-2.9,1.8-3.9c1.2-1,2.9-1.4,4.9-1.4c1.8,0,3.2,0.3,4.3,1v-0.7  c0-1-0.4-2-1.2-2.6c-0.8-0.7-1.8-1.1-2.9-1.1c-1.7,0-3,0.7-3.9,2.1l-2.6-1.6C51.8,13.8,53.9,12.8,56.7,12.8z M52.9,24.2  c0,0.8,0.4,1.5,1,1.9c0.7,0.5,1.5,0.8,2.3,0.8c1.2,0,2.4-0.5,3.3-1.4c1-0.9,1.5-2,1.5-3.2c-0.9-0.7-2.2-1.1-3.9-1.1  c-1.2,0-2.2,0.3-3,0.9C53.3,22.6,52.9,23.3,52.9,24.2z"}),(0,i.jsx)("path",{style:{fill:"#5F6368"},d:"M80,13.3l-9.9,22.7h-3l3.7-7.9l-6.5-14.7h3.2l4.7,11.3h0.1l4.6-11.3H80z"}),(0,i.jsx)("path",{style:{fill:"#4285F4"},d:"M25.9,17.7c0-0.9-0.1-1.8-0.2-2.7H13.2v5.1h7.1c-0.3,1.6-1.2,3.1-2.6,4v3.3H22C24.5,25.1,25.9,21.7,25.9,17.7z"}),(0,i.jsx)("path",{style:{fill:"#34A853"},d:"M13.2,30.6c3.6,0,6.6-1.2,8.8-3.2l-4.3-3.3c-1.2,0.8-2.7,1.3-4.5,1.3c-3.4,0-6.4-2.3-7.4-5.5H1.4v3.4  C3.7,27.8,8.2,30.6,13.2,30.6z"}),(0,i.jsx)("path",{style:{fill:"#FBBC04"},d:"M5.8,19.9c-0.6-1.6-0.6-3.4,0-5.1v-3.4H1.4c-1.9,3.7-1.9,8.1,0,11.9L5.8,19.9z"}),(0,i.jsx)("path",{style:{fill:"#EA4335"},d:"M13.2,9.4c1.9,0,3.7,0.7,5.1,2l0,0l3.8-3.8c-2.4-2.2-5.6-3.5-8.8-3.4c-5,0-9.6,2.8-11.8,7.3l4.4,3.4  C6.8,11.7,9.8,9.4,13.2,9.4z"})]})),H=e=>{let[n,t]=(0,r.useState)();return(0,r.useEffect)(()=>{e().then(e=>{t(e)}).catch(()=>{})},[]),n};let B={[k.r.id]:"ethereum",[A.E.id]:"base",[F.R.id]:"optimism",[S.n.id]:"polygon",[E.D.id]:"arbitrum",[T.m.id]:"avacchain"};const q=(e,n,t,i,o,r)=>new Promise(async(l,d)=>{let c=(0,_.h)();if(!c)return void d(Error("Unable to initialize flow"));let s="ethereum"===n.chainType?function(e){let n=B[e];if(!n)throw new b.a("Unsupported chainId: ".concat(e," for Coinbase Onramp"));return n}(n.chain.id):"solana",u=n.isUSDC?"USDC":"ethereum"===n.chainType?function(e,n){return"USDC"===n?"USDC":e===S.n.id?"POL":"ETH"}(n.chain.id,"native-currency"):"SOL",h=await e.initCoinbaseOnRamp({addresses:[{address:n.address,blockchains:[s]}],assets:[u]}),{url:p}=N({appId:e.getAppId(),input:h,amount:n.amount,blockchain:s,asset:u,experience:r});c.location=p.toString();let v=(0,a.A)((0,a.A)({},null===o||void 0===o?void 0:o.funding),{},{showAlternateFundingMethod:!0});n.usingDefaultFundingMethod&&(v.usingDefaultFundingMethod=!1),t({funding:v,solanaFundingData:null===o||void 0===o?void 0:o.solanaFundingData,coinbaseOnrampStatus:{popup:c}}),i("CoinbaseOnrampStatusScreen"),e.createAnalyticsEvent({eventName:"sdk_fiat_on_ramp_started",payload:{provider:"coinbase-onramp",value:n.amount,chainType:n.chainType,chainId:"ethereum"===n.chainType?n.chain.id:n.chain}}),setTimeout(()=>{t({funding:v,solanaFundingData:null===o||void 0===o?void 0:o.solanaFundingData,coinbaseOnrampStatus:{partnerUserId:h.partner_user_id,popup:c}})},5e3),l()}
1),$=async(e,n,t,i,o,r,l,d)=>{var c;let s=(0,_.h)();if(!s)throw Error("Unable to initialize flow");let u="ethereum"===n.chainType?(0,P.v)(n.chain.id,i):n.isUSDC?"USDC_SOL":"SOL",{signedUrl:h,externalTransactionId:p}=await e.signMoonpayOnRampUrl({address:n.address,useSandbox:null!==(c=t.fundingMethodConfig.moonpay.useSandbox)&&void 0!==c&&c,config:{uiConfig:{accentColor:t.appearance.palette.accent,theme:t.appearance.palette.colorScheme},paymentMethod:d,currencyCode:u,quoteCurrencyAmount:(0,U.a)(n.amount)}});e.createAnalyticsEvent({eventName:"sdk_fiat_on_ramp_started",payload:{provider:"moonpay",value:n.amount,chainType:n.chainType,chainId:"ethereum"===n.chainType?n.chain.id:n.chain}}),s.location=h;let v=(0,a.A)((0,a.A)({},null===l||void 0===l?void 0:l.funding),{},{showAlternateFundingMethod:!0});n.usingDefaultFundingMethod&&(v.usingDefaultFundingMethod=!1),o({moonpayStatus:{},funding:v,solanaFundingData:null===l||void 0===l?void 0:l.solanaFundingData}),r("MoonpayStatusScreen"),setTimeout(()=>{o({moonpayStatus:{externalTransactionId:p},funding:v,solanaFundingData:null===l||void 0===l?void 0:l.solanaFundingData})},8e3)};let Q=async e=>"undefined"!=typeof window&&"PaymentRequest"in window&&await new window.PaymentRequest([{supportedMethods:e}],{id:"0",total:{label:"Item",amount:{currency:"USD",value:"1.00"}}}).canMakePayment();const K=()=>Q("https://apple.com/apple-pay"),Y=()=>Q("https://google.com/pay"),G={component:()=>{var e,n,t;let{wallets:o}=(0,M.u)(),{connectors:l}=(0,b.u)(),d=l.filter(w.v).flatMap(e=>e.wallets),{navigate:s,data:u,setModalData:k}=(0,C.a)(),{client:A}=(0,b.u)(),F=(0,x.u)(),S=null===u||void 0===u?void 0:u.funding,E=H(K),T=H(Y),Z="solana"===S.chainType,D=Z?void 0:S,W=(0,r.useMemo)(()=>((e,n,t,a,i,o)=>{let r,l,d="solana"===t.chainType,c=d?void 0:t,s=t.isUSDC?"USDC":null!==c&&void 0!==c&&c.erc20Address?void 0:"native-currency",u=!!d||s&&(0,P.Rx)(Number(t.chain.id),s),h=!!d||s&&O(Number(t.chain.id),s),p=[];for(let f of(t.preferredCardProvider&&t.supportedOptions.sort(e=>e.provider===t.preferredCardProvider?-1:1),t.supportedOptions))"card"===f.method&&"coinbase"===f.provider&&h&&p.push(()=>q(n,t,a,i,o,"buy")),"card"===f.method&&"moonpay"===f.provider&&u&&s&&p.push(()=>$(n,t,e,s,a,i,o,"credit_debit_card"));for(let f of t.supportedOptions)"exchange"===f.method&&"coinbase"===f.provider&&h&&(r=()=>q(n,t,a,i,o,"buy"));for(let f of null!==(v=null===o||void 0===o||null===(m=o.funding)||void 0===m?void 0:m.supportedOptions)&&void 0!==v?v:[]){var v,m;"wallets"===f.method&&(l=()=>i("TransferFromWalletScreen"))}return{onFundWithCard:p,onFundWithExchange:r,onFundWithWallet:l}})(F,A,S,k,s,u),[F,A,S,u,k,s]),L=Z?d.find(e=>{let{address:n}=e;return n===S.address}):o.find(e=>{let{address:n}=e;return(0,v.b)(n)===(0,v.b)(S.address)}),N=(0,w.Q)((null===L||void 0===L?void 0:L.walletClientType)||"unknown"),_=(null===N||void 0===N?void 0:N.name)||"wallet",U=L&&"privy"!==L.walletClientType?_:F.name,B=(0,r.useMemo)(()=>{var e,n;return null!==(e=S.uiConfig)&&void 0!==e&&null!==(e=e.landing)&&void 0!==e&&e.title?null===(n=S.uiConfig)||void 0===n||null===(n=n.landing)||void 0===n?void 0:n.title:"Add funds to your ".concat(null!==U&&void 0!==U&&U.toLowerCase().endsWith("wallet")?U:U+" wallet")},[null===(e=S.uiConfig)||void 0===e||null===(e=e.landing)||void 0===e?void 0:e.title,U]);(0,r.useEffect)(()=>{if(null!==S&&void 0!==S&&S.defaultFundingMethod&&S.usingDefaultFundingMethod)switch(k({funding:(0,a.A)((0,a.A)({},S),{},{usingDefaultFundingMethod:!1}),solanaFundingData:null===u||void 0===u?void 0:u.solanaFundingData}),null===S||void 0===S?void 0:S.defaultFundingMethod){case"card":W.onFundWithCard[0]&&W.onFundWithCard[0]();break;case"exchange":W.onFundWithExchange&&W.onFundWithExchange();break;case"wallet":W.onFundWithWallet&&W.onFundWithWallet();break;case"manual":s("ManualTransferScreen")}},[]),(0,r.useEffect)(()=>{(null===D||void 0===D?void 0:D.erc20Address)&&!D.erc20ContractInfo&&(0,j.g)({address:D.erc20Address,chain:D.chain,rpcConfig:F.rpcConfig,privyAppId:F.id}).then(e=>{k((0,a.A)((0,a.A)({},u),{},{funding:(0,a.A)((0,a.A)({},D),{},{erc20ContractInfo:e?{symbol:e.symbol,decimals:e.decimals}:void 0})}))}).catch(console.error)},[null===D||void 0===D?void 0:D.erc20Address,null===D||void 0===D?void 0:D.chain]);let Q=!(null===D||void 0===D||!D.erc20Address||null!==D&&void 0!==D&&D.erc20ContractInfo);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(f.t,{}),(0,i.jsx)("h3",{children:B}),(0,i.jsxs)(z.e,{children:[S.errorMessage&&(0,i.jsx)(g.E,{theme:F.appearance.palette.colorScheme,children:S.errorMessage}),(null===(n=W.onFundWithCard)||void 0===n?void 0:n[0])&&(0,i.jsxs)(w.U,{disabled:Q,onClick:W.onFundWithCard[0],children:[(0,i.jsx)(z.I,{children:(0,i.jsx)(c,{style:{width:24}})}),"Pay with card",E?(0,i.jsx)(R,{style:{marginLeft:"auto",maxWidth:"100%",width:"auto",height:"0.875rem"}}):T?(0,i.jsx)(V,{style:{marginLeft:"auto",maxWidth:"100%",width:"auto",height:"0.875rem"}}):null]}),W.onFundWithExchange&&(0,i.jsxs)(w.U,{disabled:Q,onClick:W.onFundWithExchange,children:[(0,i.jsx)(z.I,{children:(0,i.jsx)(p.A,{style:{width:24}})}),"Transfer from an exchange"]}),W.onFundWithWallet&&(0,i.jsxs)(w.U,{disabled:Q,onClick:W.onFundWithWallet,children:[(0,i.jsx)(z.I,{children:(0,i.jsx)(I.W,{style:{width:24}})}),"Transfer from wallet"]}),(0,i.jsxs)(w.U,{disabled:Q,onClick:()=>s("ManualTransferScreen"),children:[(0,i.jsx)(z.I,{children:(0,i.jsx)(h,{style:{width:24}})}),"Receive funds"]}),(null===S||void 0===S?void 0:S.showAlternateFundingMethod)&&(null===(t=W.onFundWithCard)||void 0===t?void 0:t[1])&&(0,i.jsx)(y.I,{theme:F.appearance.palette.colorScheme,children:(0,i.jsxs)(z.f,{children:["Having trouble or facing location restrictions?"," ",(0,i.jsx)(z.g,{onClick:W.onFundWithCard[1],children:"Try a different provider."})]})})]}),(0,i.jsx)(m.B,{})]})}}},29002:(e,n,t)=>{t.d(n,{E:()=>r});var a=t(90034),i=t(60411),o=t(52610);const r=e=>{let{children:n,theme:t}=e;return(0,a.jsxs)(l,{$theme:t,children:[(0,a.jsx)(i.A,{width:"20px",height:"20px",color:"var(--privy-color-icon-error)",strokeWidth:2,style:{flexShrink:0}}),(0,a.jsx)(d,{$theme:t,children:n})]})};let l=o.I4.div.withConfig({displayName:"Container",componentId:"sc-34910fd1-0"})(["display:flex;gap:0.75rem;background-color:var(--privy-color-error-bg);align-items:flex-start;padding:1rem;border-radius:0.75rem;"]),d=o.I4.div.withConfig({displayName:"Content",componentId:"sc-34910fd1-1"})(["color:",";font-size:1rem;font-weight:400;line-height:1.5;flex:1;text-align:left;"],e=>"dark"===e.$theme?"var(--privy-color-foreground-2)":"var(--privy-color-foreground)")},33898:(e,n,t)=>{t.d(n,{B:()=>w,M:()=>k,T:()=>x,a:()=>C});var a=t(24107),i=t(90034),o=t(52610),r=t(99844),l=t(15882),d=t(57722);const c=["title","titleId"];function s(e,n){let{title:t,titleId:a}=e,i=(0,l.A)(e,c);return d.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":a},i),t?d.createElement("title",{id:a},t):null,d.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.5 19.5 3 12m0 0 7.5-7.5M3 12h18"}))}const u=d.forwardRef(s);var h=t(46695);const p=["title","titleId"];function v(e,n){let{title:t,titleId:a}=e,i=(0,l.A)(e,p);return d.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":a},i),t?d.createElement("title",{id:a},t):null,d.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18 
118 6M6 6l12 12"}))}const m=d.forwardRef(v);var f=t(51380);function g(e){return(0,i.jsx)("svg",(0,a.A)((0,a.A)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 460 40"},e),{},{children:(0,i.jsx)("g",{fill:e.color||"var(--privy-color-foreground)",children:(0,i.jsx)("path",{d:"M0 15.4v15.38h4.64V19.96h3.58c2.47 0 3.63-.01 3.77-.02 1-.08 1.49-.15 2.18-.3a9.45 9.45 0 0 0 4.6-2.37c1.66-1.57 2.64-3.87 2.81-6.56.02-.3.02-1.19 0-1.49-.1-1.77-.56-3.35-1.36-4.72A8.84 8.84 0 0 0 15.14.57c-.93-.3-1.75-.43-3.09-.54C11.9.02 10.2 0 5.93 0H0ZM10.85 4c1.85.05 3.1.45 4.16 1.3.22.17.54.49.69.68a5.97 5.97 0 0 1 1.19 3.13c.04.35.04 1.36 0 1.71-.08.68-.23 1.3-.44 1.85a4.8 4.8 0 0 1-1.09 1.68A5.63 5.63 0 0 1 12 15.92c-.6.08-.4.08-4.01.09H4.64V3.98h2.9c1.6 0 3.08 0 3.31.02ZM187.65 5.71v5.72h-.27l-.09-.14a15.9 15.9 0 0 0-1.21-1.73c-.43-.5-1-.95-1.7-1.36-.54-.3-1.05-.5-1.73-.63a8.98 8.98 0 0 0-1.7-.17 8.84 8.84 0 0 0-7.8 4.03 12.95 12.95 0 0 0-2.03 6.39c-.07.98-.06 2.15.02 3.13.2 2.47.87 4.53 2.02 6.25a8.98 8.98 0 0 0 10.22 3.65 6.5 6.5 0 0 0 2.8-1.93c.41-.51.84-1.1 1.1-1.55l.1-.17h.37v3.58h4.38V0h-4.48Zm-5.24 5.54c1.3.14 2.3.6 3.17 1.48.9.9 1.5 2.09 1.85 3.64.36 1.6.39 3.72.06 5.43a8.13 8.13 0 0 1-1.54 3.62 5.1 5.1 0 0 1-3.93 1.96 6.13 6.13 0 0 1-2.32-.31 5.87 5.87 0 0 1-3.33-3.5c-.39-1-.62-2.05-.72-3.32-.03-.32-.04-1.35-.02-1.73.08-1.56.4-2.91.96-4.05a6.2 6.2 0 0 1 1.06-1.58 5.08 5.08 0 0 1 3.6-1.66c.25-.02.9 0 1.16.02ZM210.07 15.39l.01 15.38h4.38l.01-3.57h.37l.09.15c.24.44.84 1.26 1.21 1.7a6.79 6.79 0 0 0 2.57 1.75 9.3 9.3 0 0 0 6.86-.49 9.28 9.28 0 0 0 4.05-4.07A13.05 13.05 0 0 0 231 21.6c.21-1.73.18-3.7-.09-5.32a13.03 13.03 0 0 0-1.5-4.3 9.1 9.1 0 0 0-3.75-3.63 9.15 9.15 0 0 0-4.43-.96 7.46 7.46 0 0 0-2.8.5A7.07 7.07 0 0 0 216 9.7c-.4.52-.82 1.12-1.1 1.59l-.07.14h-.27V0h-4.5Zm11.13-4.14c1.07.1 1.94.44 2.7 1.04a6.1 6.1 0 0 1 1.64 1.98c.43.84.78 2 .94 3.11.15 1.16.16 2.4.02 3.54a9.34 9.34 0 0 1-1.39 4.03 5.33 5.33 0 0 1-2.69 2.15c-.9.3-2.04.38-3.06.2a5.14 5.14 0 0 1-3.45-2.37 6.03 6.03 0 0 1-.45-.8c-.5-1.03-.8-2.2-.92-3.58-.04-.49-.06-.89-.05-1.53.01-.76.05-1.23.13-1.85.38-2.53 1.47-4.38 3.15-5.31a5.46 5.46 0 0 1 2.3-.63 10 10 0 0 1 1.13.02ZM69.05 2.17l-.01 2.77V7.7h-3.36v3.6h3.36v6.8l.01 7.15c.06 1.4.4 2.44 1.1 3.37a5.8 5.8 0 0 0 2.97 2.07c.91.3 1.83.42 2.9.38a8.71 8.71 0 0 0 2.66-.48l-.8-3.7-.38.06a4.96 4.96 0 0 1-2.43-.06c-.33-.1-.56-.25-.8-.49-.4-.41-.6-.88-.7-1.67-.02-.2-.02-.62-.03-6.82v-6.6h4.73V7.7h-4.73V2.16h-4.49ZM133.34 2.17V7.7h-3.39v3.6h3.38v6.9l.01 7.17a5.66 5.66 0 0 0 2.36 4.49c.85.6 2.03 1.03 3.26 1.17.85.1 2.03.05 2.81-.1.3-.06.75-.18 1-.26l.2-.06v-.05l-.81-3.67-.37.06a4.99 4.99 0 0 1-1.8.09c-.85-.13-1.32-.4-1.7-.97a2.63 2.63 0 0 1-.39-1.04c-.06-.4-.06 0-.06-7.1V11.3h4.7V7.7h-4.7l-.01-2.77V2.16h-4.49ZM293.41 2.36a14.56 14.56 0 0 0-13.7 16.07 14.59 14.59 0 0 0 21.86 11.08 14.5 14.5 0 0 0 7.11-14.07 14.61 14.61 0 0 0-6.53-10.73 14.49 14.49 0 0 0-8.74-2.35ZM350.8 2.36a10.17 10.17 0 0 0-7.56 4.2c-.16.2-.45.63-.58.83l-.05.1h-.47l-.01-4.36h-7.36v36.4h7.82V27.27h.49l.05.07a11.3 11.3 0 0 0 7.49 4.15 10.52 10.52 0 0 0 9.38-4.1c1.66-2.1 2.73-4.9 3.07-8.06.1-.87.13-1.4.13-2.37 0-.8 0-1.1-.07-1.76a15.95 15.95 0 0 0-3.23-8.72 12.8 12.8 0 0 0-1.85-1.84 10.49 10.49 0 0 0-7.26-2.28Zm-.94 6.05c1.27.15 2.33.65 3.2 1.5.98.96 1.67 2.31 2.03 4 .34 1.57.38 3.68.12 5.39a9.78 9.78 0 0 1-1.04 3.25c-.14.25-.44.69-.6.89a5.35 5.35 0 0 1-4.31 2.07 5.25 5.25 0 0 1-4.41-1.9 7.35 7.35 0 0 1-1.26-2.32 14.09 14.09 0 0 1-.62-4.83c.05-1.98.38-3.53 1.02-4.85a5.63 5.63 0 0 1 2.5-2.65c.66-.34 1.3-.5 2.14-.58.18-.02 1.04 0 1.23.03ZM363.63 3.1l-.01 3.2v3.16h1.43c1.26.01 1.44.02 1.54.04.42.09.66.28.79.62.08.23.08.08.08 2.96a911.57 911.57 0 0 1 .03 10.18v7.54h7.82v-7.4l.01-7.83c.03-.94.11-1.63.27-2.28.46-1.9 1.54-2.93 3.35-3.23.52-.08.2-.08 5-.08h4.4V3.08h-3.1c-3.48 0-3.91.01-4.67.1-1.83.2-3.04.79-3.96 1.88-.5.6-.9 1.32-1.26 2.26l-.06.17h-.46V3.09h-5.6c-4.46 0-5.6 0-5.6.02ZM390.8 16.95V30.8h3.87l3.86-.01V3.09h-7.73ZM400.6 3.1l-.01.4v.38l4.66 13.4 4.69 13.47.02.05h10.3l.03-.05 4.67-13.45 4.67-13.4V3.1h-7.43l-6.7 19.26h-.5l-3.28-9.5-3.31-9.64-.05-.12h-3.88l-3.88.01ZM430.98 3.1c-.01 0-.02.19-.02.4v.39l5.08 14.59c2.8 8.02 5.08 14.6 5.08 14.61.01.02-.22.02-4.8.02h-4.82v6.42h4.95c5.09 0 5.23 0 5.87-.06 3.15-.28 5.29-1.63 6.63-4.15.28-.55.44-.95.87-2.16L459 6.78l1-2.89v-.8h-7.43l-6.69 19.26h-.5l-3.27-9.46-3.31-9.64-.06-.16h-3.88l-3.88.01ZM36.57 7.36c-1.36.1-2.6.6-3.62 1.45a5.65 5.65 0 0 0-1.67 2.42l-.05.13H31V7.7h-4.35v23.08h4.5v-7.3c0-8 0-7.34.08-7.82a4.89 4.89 0 0 1 2.06-3.18c.83-.58 1.74-.89 2.87-.98a11.87 11.87 0 0 1 2.8.25H39v-4.3l-.21-.02c-.
161-.07-1.74-.1-2.22-.07ZM51.08 7.41c-2.33.12-4.3.84-5.95 2.16a9.89 9.89 0 0 0-2.03 2.2 12.5 12.5 0 0 0-2 5.78 18.04 18.04 0 0 0 0 3.65 12.13 12.13 0 0 0 2.26 6.05 9.74 9.74 0 0 0 5 3.52c2.11.64 4.7.64 6.8 0a9.78 9.78 0 0 0 4.88-3.37c1.38-1.78 2.19-4 2.4-6.58.13-1.46.06-3.06-.18-4.42a11.24 11.24 0 0 0-3.58-6.6 10 10 0 0 0-5.75-2.35c-.56-.06-1.31-.07-1.85-.04Zm1.42 3.78c.88.1 1.62.34 2.28.75a6.13 6.13 0 0 1 1.99 2.15 10.31 10.31 0 0 1 1.2 5c.02 1.23-.12 2.44-.42 3.51a7.14 7.14 0 0 1-1.81 3.32c-.61.6-1.2.98-1.95 1.24a6 6 0 0 1-2 .3 5.7 5.7 0 0 1-2.72-.6 5 5 0 0 1-1.28-.94A7.1 7.1 0 0 1 46 22.73c-.57-1.99-.6-4.46-.08-6.5a7.24 7.24 0 0 1 2.03-3.67 5.13 5.13 0 0 1 3.35-1.4 11 11 0 0 1 1.2.03ZM92.05 7.4c-.96.06-1.56.15-2.3.33a9.62 9.62 0 0 0-6.09 4.66 13.5 13.5 0 0 0-1.71 7c0 .83 0 1.04.06 1.6.16 1.77.58 3.32 1.29 4.7A9.72 9.72 0 0 0 90.28 31c1.84.37 4.08.32 5.85-.13a9.07 9.07 0 0 0 5.02-3.1A7.64 7.64 0 0 0 102.5 25l-2.11-.39-2.11-.38-.08.13a4.72 4.72 0 0 1-2.35 2.55 6.3 6.3 0 0 1-2.23.58c-.29.03-1.13.03-1.44 0a6.35 6.35 0 0 1-3.02-1.04 5.93 5.93 0 0 1-2.02-2.43 8.44 8.44 0 0 1-.72-3.18v-.26h16.38v-.81c0-1.83-.06-2.76-.25-3.87-.2-1.22-.53-2.24-1.05-3.28a8.9 8.9 0 0 0-2.66-3.26 10.1 10.1 0 0 0-5.34-1.94 18.3 18.3 0 0 0-1.46-.03Zm1.3 3.75c1.2.13 2.19.55 3.05 1.3a5.8 5.8 0 0 1 1.78 2.96c.13.51.21 1.17.21 1.66v.15H86.43v-.12c.08-.97.3-1.78.72-2.61.5-1 1.2-1.8 2.14-2.42a5.32 5.32 0 0 1 2.9-.95c.2-.01.97 0 1.17.03ZM116.79 7.41c-2 .1-3.73.65-5.22 1.65a10.7 10.7 0 0 0-4.25 6.06 16.1 16.1 0 0 0-.5 5.8c.2 2.17.84 4.13 1.88 5.76.58.9 1.32 1.73 2.15 2.4a9.37 9.37 0 0 0 3.6 1.8 12.06 12.06 0 0 0 3.92.34 10.2 10.2 0 0 0 3.84-.95 8.31 8.31 0 0 0 4.76-6.75l.01-.04h-4.37l-.05.16a4.87 4.87 0 0 1-4.24 3.75c-.59.07-1.32.06-1.93-.05a5.47 5.47 0 0 1-3.5-2.27c-.56-.75-1-1.73-1.26-2.79a13.8 13.8 0 0 1-.16-5.24 7.77 7.77 0 0 1 2.1-4.3 5.48 5.48 0 0 1 2.15-1.3 6.4 6.4 0 0 1 3.89.1c.59.21 1.03.5 1.5.96a5.32 5.32 0 0 1 1.46 2.5l.04.15h4.37v-.06a8.22 8.22 0 0 0-5.31-6.94 10.98 10.98 0 0 0-4.88-.74ZM156.2 7.41a9.87 9.87 0 0 0-6 2.29 11.02 11.02 0 0 0-3.41 5.43c-.52 1.78-.68 3.9-.48 5.97.17 1.8.63 3.38 1.37 4.8a9.68 9.68 0 0 0 5.91 4.86c1.65.48 3.63.61 5.53.36 3.72-.49 6.55-2.62 7.56-5.69.12-.39.13-.42.1-.43-.02 0-4.13-.75-4.19-.75-.03 0-.04 0-.1.16-.18.42-.45.9-.72 1.22-.16.2-.49.53-.7.7-.67.54-1.5.9-2.43 1.08-.48.08-.83.11-1.41.11-.64 0-1.07-.04-1.6-.15a5.76 5.76 0 0 1-3.93-2.83 8 8 0 0 1-.99-3.79v-.16h16.38v-1.11l-.02-1.43c-.1-2.25-.53-4-1.35-5.59a9.24 9.24 0 0 0-6.18-4.75c-1.04-.26-2.2-.36-3.33-.3Zm1.45 3.74a5.35 5.35 0 0 1 3.66 1.94 6.1 6.1 0 0 1 1.38 4.01v.12h-11.97v-.06c0-.02 0-.14.02-.25a6.6 6.6 0 0 1 2.15-4.32 5.73 5.73 0 0 1 3.5-1.46c.25-.02 1 0 1.26.02ZM233.58 7.82l8.37 23.22a49.22 49.22 0 0 1-.67 1.9 5.36 5.36 0 0 1-1.14 1.8c-.41.4-.82.58-1.48.69-.27.04-1.03.03-1.35 0a8.05 8.05 0 0 1-1.1-.23l-1.08 3.67c0 .02.32.14.66.22.83.21 1.57.29 2.56.28.56-.01.8-.03 1.24-.1 2.71-.4 4.66-2.09 5.86-5.08l9.64-26.44c0-.02-4.82-.06-4.83-.05l-2.93 8.96-2.91 8.94h-.24l-.22-.65-2.91-8.95-2.7-8.3H233.53ZM293.05 35.8c-1.18.04-1.93.09-2.8.16-2.52.24-4.53.69-5.43 1.23-.7.41-.76.86-.2 1.28.88.66 3.29 1.19 6.36 1.4a48.55 48.55 0 0 0 5.75.05c3.47-.19 6.24-.78 7.11-1.5.22-.19.3-.34.3-.53 0-.1 0-.12-.04-.22-.35-.69-2.32-1.3-5.25-1.63a41.09 41.09 0 0 0-5.8-.24Zm0 0"})})}))}let y=o.I4.span.withConfig({displayName:"TermsAndConditionsContainer",componentId:"sc-ff3bd734-0"})(["margin-top:16px;font-size:13px;text-align:center;color:var(--privy-color-foreground-3);display:block;&& > a{color:var(--privy-color-accent);}"]);function x(e){let{app:{legal:{privacyPolicyUrl:n,termsAndConditionsUrl:t,requireUsersAcceptTerms:a}},alwaysShowImplicitConsent:o}=e,r=!(!n||!t);return a&&!o||!t&&!n?(0,i.jsx)(y,{}):(0,i.jsxs)(y,{children:["By logging in I agree to the"," ",t&&(0,i.jsx)("a",{href:t,target:"_blank",children:r?"Terms":"Terms of Service"}),r&&" & ",n&&(0,i.jsx)("a",{href:n,target:"_blank",children:"Privacy Policy"})]})}const w=e=>{var n;let{className:t}=e,{appearance:a}=(0,r.u)();return(0,i.jsx)(C,{className:t,children:null!==(n=a.footerLogo)&&void 0!==n?n:(0,i.jsx)(b,{href:"https://www.privy.io/",target:"_blank",id:"protected-by-privy",children:(0,i.jsx)(g,{color:"currentColor",height:13,width:150})})})};let b=o.I4.a.withConfig({displayName:"PrivyLink",componentId:"sc-ff3bd734-1"})(["&&{padding:0;color:var(--privy-color-foreground-3);}"]);const C=o.I4.div.withConfig({displayName:"ModalFooter",componentId:"sc-ff3bd734-2"})(["display:flex;align-items:center;justify-content:center;padding-top:8px;padding-bottom:12px;gap:8px;font-size:13px;&& a{padding:0.5rem 0;&:hover{text-decoration:none;}}@media all and (display-mode:standalone){padding-bottom:30px;}"]),M=e=>{let{backFn:n}=e;return(0,i.jsx)("div",{children:(0,i.jsx)(A,{onClick:n,children:(0,i.jsx)(u,{height:"16px",width:"16px",strokeWidth:2})})})},I=e=>{let{infoFn:n}=e;return(0,i.jsx)("div",{children:(0,i.jsx)(F,{"aria-label":"info",onClick:n,children:(0,i.jsx)(h.A,{height:"22px",width:"22px",strokeWidth:2})})})},j=e=>(0,i.jsx)("div",{children:(0,i.jsx)(A,{"aria-label":"close modal",onClick:e.onClose,children:(0,i.jsx)(m,{height:"16px",width:"16px",strokeWidth:2})})}),k=e=>{let{backFn:n,infoFn:t,onClose:a,title:o,closeable:l=!0,className:d}=e,{closePrivyModal:c}=(0,f.u)(),s=(0,r.u)();return(0,i.jsxs)(S,{className:d,children:[(0,i.jsxs)(E,{children:[n&&(0,i.jsx)(M,{backFn:n}),(0,i.jsx)("div",{style:{height:24}}),t&&(0,i.jsx)(I,{infoFn:t})]}),o&&(0,i.jsx)(Z,{id:"privy-dialog-title",children:o}),(0,i.jsx)(T,{children:!s.render.standalone&&l&&(0,i.jsx)(j,{onClose:a||(()=>c())})})]})};let A=o.I4.button.withConfig({displayName:"StyledButton",componentId:"sc-bc3cd0df-0"})(["&&{cursor:pointer;display:flex;opacity:0.6;background-color:var(--privy-color-background-2);border-radius:var(--privy-border-radius-full);padding:4px;> svg{margin:auto;color:var(--privy-color-foreground);}:hover{opacity:1;}}
1"]),F=(0,o.I4)(A).withConfig({displayName:"TransparentStyledButton",componentId:"sc-bc3cd0df-1"})(["&&{background-color:transparent;}"]),S=o.I4.div.withConfig({displayName:"StyledHeader",componentId:"sc-bc3cd0df-2"})(["padding:16px 0;display:flex;align-items:center;justify-content:space-between;h2{font-size:16px;line-height:24px;font-weight:600;color:var(--privy-color-foreground);}"]),E=o.I4.div.withConfig({displayName:"LeftActionContainer",componentId:"sc-bc3cd0df-3"})(["flex:1;align-items:center;display:flex;gap:8px;"]),T=o.I4.div.withConfig({displayName:"RightActionContainer",componentId:"sc-bc3cd0df-4"})(["flex:1;display:flex;justify-content:flex-end;"]),Z=o.I4.div.withConfig({displayName:"TitleContainer",componentId:"sc-bc3cd0df-5"})(["overflow:hidden;white-space:nowrap;max-width:100%;text-overflow:ellipsis;text-align:center;color:var(--privy-color-foreground-2);"])},41579:(e,n,t)=>{t.d(n,{I:()=>s});var a=t(90034),i=t(15882),o=t(57722);const r=["title","titleId"];function l(e,n){let{title:t,titleId:a}=e,l=(0,i.A)(e,r);return o.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":a},l),t?o.createElement("title",{id:a},t):null,o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m11.25 11.25.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9-3.75h.008v.008H12V8.25Z"}))}const d=o.forwardRef(l);var c=t(52610);const s=e=>{let{children:n,theme:t}=e;return(0,a.jsxs)(u,{$theme:t,children:[(0,a.jsx)(d,{width:"20px",height:"20px",color:"var(--privy-color-icon-subtle)",strokeWidth:2,style:{flexShrink:0}}),(0,a.jsx)(h,{$theme:t,children:n})]})};let u=c.I4.div.withConfig({displayName:"Container",componentId:"sc-1b5ed8dd-0"})(["display:flex;gap:0.75rem;background-color:var(--privy-color-background-2);align-items:flex-start;padding:1rem;border-radius:0.75rem;"]),h=c.I4.div.withConfig({displayName:"Content",componentId:"sc-1b5ed8dd-1"})(["color:",";font-size:1rem;font-weight:400;line-height:1.5;flex:1;text-align:left;"],e=>"dark"===e.$theme?"var(--privy-color-foreground-2)":"var(--privy-color-foreground)")},46695:(e,n,t)=>{t.d(n,{A:()=>l});var a=t(15882),i=t(57722);const o=["title","titleId"];function r(e,n){let{title:t,titleId:r}=e,l=(0,a.A)(e,o);return i.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":r},l),t?i.createElement("title",{id:r},t):null,i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 5.25h.008v.008H12v-.008Z"}))}const l=i.forwardRef(r)},51781:(e,n,t)=>{t.d(n,{t:()=>r});var a=t(90034),i=t(49931),o=t(33898);function r(e){var n,t;let{title:r}=e,{currentScreen:l,navigateBack:d,navigate:c,data:s,setModalData:u}=(0,i.a)();return(0,a.jsx)(o.M,{title:r,backFn:"ManualTransferScreen"===l?d:l===(null===s||void 0===s||null===(n=s.funding)||void 0===n?void 0:n.methodScreen)?s.funding.comingFromSendTransactionScreen?()=>c("SendTransactionScreen"):void 0:null!==s&&void 0!==s&&null!==(t=s.funding)&&void 0!==t&&t.methodScreen?()=>{let e=s.funding;e.usingDefaultFundingMethod&&(e.usingDefaultFundingMethod=!1),u({funding:e,solanaFundingData:null===s||void 0===s?void 0:s.solanaFundingData}),c(e.methodScreen)}:void 0})}},57511:(e,n,t)=>{t.d(n,{W:()=>r});var a=t(24107),i=t(92030),o=t(90034);const r=e=>{let n=Object.assign({},((0,i.A)(e),e));return(0,o.jsxs)("svg",(0,a.A)((0,a.A)({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},n),{},{children:[(0,o.jsx)("rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}),(0,o.jsx)("path",{d:"M3 9a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2"}),(0,o.jsx)("path",{d:"M3 11h3c.8 0 1.6.3 2.1.9l1.1.9c1.6 1.6 4.1 1.6 5.7 0l1.1-.9c.5-.5 1.3-.9 2.1-.9H21"})]}))}},60411:(e,n,t)=>{t.d(n,{A:()=>l});var a=t(15882),i=t(57722);const o=["title","titleId"];function r(e,n){let{title:t,titleId:r}=e,l=(0,a.A)(e,o);return i.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":r},l),t?i.createElement("title",{id:r},t):null,i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m9-.75
1a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 3.75h.008v.008H12v-.008Z"}))}const l=i.forwardRef(r)},66222:(e,n,t)=>{t.d(n,{F:()=>r,I:()=>o,a:()=>l,b:()=>d,c:()=>s,d:()=>u,e:()=>i,f:()=>h,g:()=>p,h:()=>c});var a=t(52610);const i=a.I4.div.withConfig({displayName:"FundingMethodContainer",componentId:"sc-eaaa12a-0"})(["display:flex;flex-direction:column;gap:12px;padding-top:24px;padding-bottom:24px;"]),o=a.I4.div.withConfig({displayName:"IconContainer",componentId:"sc-eaaa12a-1"})(["width:24px;height:24px;display:flex;justify-content:center;align-items:center;svg{border-radius:var(--privy-border-radius-sm);}"]),r=a.I4.div.withConfig({displayName:"FundingQuantityWrapper",componentId:"sc-eaaa12a-2"})(["display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:8px;"]),l=a.I4.div.withConfig({displayName:"FundingQuantity",componentId:"sc-eaaa12a-3"})(["display:flex;align-items:center;gap:4px;width:100%;padding:0 16px;border-width:1px !important;border-radius:12px;cursor:text;&:focus-within{border-color:var(--privy-color-accent);}"]),d=a.I4.input.withConfig({displayName:"FundingAmountInput",componentId:"sc-eaaa12a-5"})(["background-color:var(--privy-color-background);width:100%;&:focus{outline:none !important;border:none !important;box-shadow:none !important;}&&{font-size:26px;}"]),c=(0,a.I4)(d).withConfig({displayName:"FundingAmountInputLarge",componentId:"sc-eaaa12a-6"})(["&&{font-size:42px;}"]),s=a.I4.div.withConfig({displayName:"FundingCurrency",componentId:"sc-eaaa12a-8"})(["font-size:18px;"]),u=a.I4.div.withConfig({displayName:"FundingDollars",componentId:"sc-eaaa12a-9"})(["font-size:12px;color:var(--privy-color-foreground-3);height:20px;"]),h=a.I4.div.withConfig({displayName:"InfoButtonText",componentId:"sc-eaaa12a-13"})([""]),p=a.I4.a.withConfig({displayName:"InfoButtonLink",componentId:"sc-eaaa12a-14"})(["&&{color:var(--privy-color-accent);}cursor:pointer;"])},67665:(e,n,t)=>{t.d(n,{O:()=>a});const a="sdk_fiat_on_ramp_completed_with_status"},97175:(e,n,t)=>{t.d(n,{a:()=>u,u:()=>h});var a=t(24107),i=t(80595),o=t(57722),r=t(99844),l=t(51380),d=t(49931),c=t(67665);const s="moonpay";function u(e){return parseFloat(e)}function h(e){let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],[t,u]=(0,o.useState)(null),{createAnalyticsEvent:h}=(0,l.u)(),{data:p,navigate:v,setModalData:m}=(0,d.a)(),f=null===p||void 0===p?void 0:p.funding,g=(0,o.useRef)(0);return(0,o.useEffect)(()=>{let t=setInterval(async()=>{if(e)try{var o;let[l]=await async function(e,n){return(0,i.OT)("".concat(n?r.M:r.v,"/transactions/ext/").concat(e),{query:{apiKey:n?r.w:r.x}})}(e,n),d="waitingAuthorization"===l.status&&"credit_debit_card"===l.paymentMethod?"pending":l.status;if(["failed","completed","awaitingAuthorization"].includes(d)&&(h({eventName:c.O,payload:{status:d,provider:s,paymentMethod:l.paymentMethod,cardPaymentType:l.cardPaymentType,currency:null===(o=l.currency)||void 0===o?void 0:o.code,baseCurrencyAmount:l.baseCurrencyAmount,quoteCurrencyAmount:l.quoteCurrencyAmount,feeAmount:l.feeAmount,extraFeeAmount:l.extraFeeAmount,networkFeeAmount:l.networkFeeAmount,isSandbox:n}}),clearInterval(t)),"failed"===d||"serviceFailure"===d)return m({funding:(0,a.A)((0,a.A)({},f),{},{errorMessage:"Something went wrong adding funds from Moonpay. Please try again or use another method to fund your wallet."}),solanaFundingData:null===p||void 0===p?void 0:p.solanaFundingData}),void v("FundingMethodSelectionScreen");u(d)}catch(d){var l;404!==(null===(l=d.response)||void 0===l?void 0:l.status)&&(g.current+=1),g.current>=3&&(h({eventName:c.O,payload:{status:"serviceFailure",provider:s}}),clearInterval(t),m({funding:(0,a.A)((0,a.A)({},f),{},{errorMessage:"Something went wrong adding funds from Moonpay. Please try again or use another method to fund your wallet."}),solanaFundingData:null===p||void 0===p?void 0:p.solanaFundingData}),v("FundingMethodSelectionScreen"))}},3e3);return()=>clearInterval(t)},[e,g]),t}}}]);
2//# sourceMappingURL=8656.b15d23cc.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.