1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2283],{52283:(e,t,i)=>{i.r(t),i.d(t,{FundingAmountEditScreen:()=>g,default:()=>g});var r=i(95155),n=i(12115),o=i(55152),a=i(83361),d=i(62293),l=i(95204),c=i(88172),s=i(34212),u=i(56645),p=i(89049),f=i(70860);i(50205),i(68463),i(92253);let g={component:()=>{let{data:e,setModalData:t}=(0,s.u)(),i=e?.funding,g="solana"===i.chainType,x=(0,n.useRef)(null),{tokenPrice:h}=(0,u.u)(g?"solana":i.chain.id),v=g?void 0:i,m=!(!v?.erc20Address||v?.erc20ContractInfo),y=g?i.isUSDC?"USDC":"SOL":i.erc20Address?i.erc20ContractInfo?.symbol:i.chain.nativeCurrency.symbol||"ETH",b=parseFloat(i.amount),I=!isNaN(b)&&b>0,k=h?(0,p.c)(i.amount,h):void 0;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d.t,{}),(0,r.jsx)(c.T,{children:"Confirm or edit amount"}),(0,r.jsxs)(a.F,{style:{marginTop:"32px"},children:[(0,r.jsx)(f.F,{children:m?(0,r.jsx)(l.N,{size:"50px"}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(f.a,{onClick:()=>x.current?.focus(),children:[(0,r.jsx)(f.h,{ref:x,value:i.amount,onChange:r=>{let n=r.target.value;/^[0-9.]*$/.test(n)&&n.split(".").length-1<=1&&t({...e,funding:{...i,amount:n},solanaFundingData:e?.solanaFundingData?{...e.solanaFundingData,amount:n}:void 0})}}),(0,r.jsx)(f.c,{children:y})]}),!v?.erc20Address&&!(g&&i.isUSDC)&&(0,r.jsx)(f.d,{children:k&&I?`${k} USD`:""})]})}),(0,r.jsx)(o.c,{style:{marginTop:"1rem"},disabled:!I,onClick:i.onContinueWithExternalWallet,children:"Continue"})]}),(0,r.jsx)(o.B,{})]})}}},56645:(e,t,i)=>{i.d(t,{u:()=>l});var r=i(12115),n=i(63599),o=i(53775),a=i(43425),d=i(84742);function l(e){let{tokenPrice:t,isTokenPriceLoading:i,tokenPriceError:l}=(e=>{let{showFiatPrices:t,getUsdTokenPrice:i,chains:d}=(0,a.u)(),[l,c]=(0,r.useState)(!0),[s,u]=(0,r.useState)(void 0),[p,f]=(0,r.useState)(void 0);return(0,r.useEffect)(()=>{e||=o.t;let r=(0,n.uc)(d).find(t=>t.id===Number(e));(async()=>{if(t){if(!r)return c(!1),u(Error(`Unable to fetch token price on chain id ${e}`));try{c(!0);let e=await i(r);e?f(e):u(Error(`Unable to fetch token price on chain id ${r.id}`))}catch(e){u(e)}finally{c(!1)}}else c(!1)})()},[e]),{tokenPrice:p,isTokenPriceLoading:l,tokenPriceError:s}}
1)("solana"===e?-1:e),{solPrice:c,isSolPriceLoading:s,solPriceError:u}=(0,d.u)({enabled:"solana"===e});return"solana"===e?{tokenPrice:c,isTokenPriceLoading:s,tokenPriceError:u}:{tokenPrice:t,isTokenPriceLoading:i,tokenPriceError:l}}},62293:(e,t,i)=>{i.d(t,{t:()=>a});var r=i(95155),n=i(34212),o=i(55152);function a({title:e}){let{currentScreen:t,navigateBack:i,navigate:a,data:d,setModalData:l}=(0,n.u)();return(0,r.jsx)(o.M,{title:e,backFn:"ManualTransferScreen"===t?i:t===d?.funding?.methodScreen?d.funding.comingFromSendTransactionScreen?()=>a("SendTransactionScreen"):void 0:d?.funding?.methodScreen?()=>{let e=d.funding;e.usingDefaultFundingMethod&&(e.usingDefaultFundingMethod=!1),l({funding:e,solanaFundingData:d?.solanaFundingData}),a(e.methodScreen)}:void 0})}},70860:(e,t,i)=>{i.d(t,{F:()=>l,I:()=>d,a:()=>c,b:()=>s,c:()=>p,d:()=>f,e:()=>a,f:()=>x,g:()=>h,h:()=>u});var r=i(11069),n=i(55152),o=i(5326);let a=r.I4.div` 2 display: flex; 3 flex-direction: column; 4 gap: 12px; 5 padding-top: 24px; 6 padding-bottom: 24px; 7`,d=r.I4.div` 8 width: 24px; 9 height: 24px; 10 display: flex; 11 justify-content: center; 12 align-items: center; 13 14 svg { 15 border-radius: var(--privy-border-radius-sm); 16 } 17`,l=r.I4.div` 18 display: flex; 19 flex-direction: column; 20 justify-content: center; 21 align-items: flex-start; 22 gap: 8px; 23`,c=r.I4.div` 24 display: flex; 25 align-items: center; 26 gap: 4px; 27 width: 100%; 28 padding: 0 16px; 29 border-width: 1px !important; 30 border-radius: 12px; 31 cursor: text; 32 33 &:focus-within { 34 border-color: var(--privy-color-accent); 35 } 36`;r.I4.div` 37 font-size: 42px !important; 38`;let s=r.I4.input` 39 background-color: var(--privy-color-background); 40 width: 100%; 41 42 &:focus { 43 outline: none !important; 44 border: none !important; 45 box-shadow: none !important; 46 } 47 48 && { 49 font-size: 26px; 50 } 51`,u=(0,r.I4)(s)` 52 && { 53 font-size: 42px; 54 } 55`;r.I4.button` 56 cursor: pointer; 57 padding-left: 4px; 58`;let p=r.I4.div` 59 font-size: 18px; 60`,f=r.I4.div` 61 font-size: 12px; 62 color: var(--privy-color-foreground-3); 63 // we need this container to maintain a static height if there's no content 64 height: 20px; 65`;r.I4.div` 66 display: flex; 67 flex-direction: row; 68 line-height: 22px; 69 font-size: 16px; 70 text-align: center; 71 svg { 72 margin-right: 6px; 73 margin: auto; 74 } 75`,(0,r.I4)(o.LinkButton)` 76 margin-top: 16px; 77`;let g=(0,r.i7)` 78 from { 79 opacity: 0; 80 } 81 to { 82 opacity: 1; 83 } 84`;(0,r.I4)(n.d)` 85 border-radius: var(--privy-border-radius-md) !important; 86 animation: ${g} 0.3s ease-in-out; 87`;let x=r.I4.div``,h=r.I4.a` 88 && { 89 color: var(--privy-color-accent); 90 } 91 92 cursor: pointer; 93`},83361:(e,t,i)=>{i.d(t,{B:()=>n,C:()=>d,F:()=>c,H:()=>a,R:()=>f,S:()=>u,a:()=>s,b:()=>p,c:()=>l,d:()=>g,e:()=>o});var r=i(11069);let n=r.I4.div` 94 display: flex; 95 flex-direction: column; 96 align-items: flex-start; 97 justify-content: flex-end; 98 margin-top: auto; 99 gap: 16px; 100 flex-grow: 100; 101`,o=r.I4.div` 102 display: flex; 103 flex-direction: column; 104 align-items: center; 105 justify-content: center; 106 flex-grow: 1; 107 width: 100%; 108`,a=r.I4.div` 109 display: flex; 110 flex-direction: column; 111 align-items: center; 112 width: 100%; 113`,d=(0,r.I4)(o)` 114 padding: 20px 0; 115`,l=(0,r.I4)(o)` 116 gap: 16px; 117`,c=r.I4.div` 118 display: flex; 119 flex-direction: column; 120 width: 100%; 121`,s=r.I4.div` 122 display: flex; 123 flex-direction: column; 124 gap: 8px; 125`;r.I4.div` 126 display: flex; 127 flex-direction: column; 128 justify-content: space-between; 129 height: 100%; 130`;let u=r.I4.div` 131 display: flex; 132 flex-direction: column; 133 justify-content: flex-start; 134 align-items: flex-start; 135 text-align: left; 136 gap: 8px; 137 padding: 16px; 138 margin-top: 16px; 139 margin-bottom: 16px; 140 width: 100%; 141 background: var(--privy-color-background-2); 142 border-radius: var(--privy-border-radius-md); 143 && h4 { 144 color: var(--privy-color-foreground-3); 145 font-size: 14px; 146 text-decoration: underline; 147 font-weight: medium; 148 } 149 && p { 150 color: var(--privy-color-foreground-3); 151 font-size: 14px; 152 } 153`,p=r.I4.div` 154 height: 16px; 155`,f=r.I4.div` 156 height: 12px; 157`;r.I4.div` 158 position: relative; 159`;let g=r.I4.div` 160 height: ${e=>e.height??"12"}px; 161`;r.I4.div` 162 background-color: var(--privy-color-accent); 163 display: flex; 164 justify-content: center; 165 align-items: center; 166 border-radius: 50%; 167 border-color: white; 168 border-width: 2px !important; 169`},84742:(e,t,i)=>{i.d(t,{u:()=>
169o});var r=i(12115),n=i(43425);let o=({enabled:e=!0}={})=>{let{showFiatPrices:t,getUsdPriceForSol:i}=(0,n.u)(),[o,a]=(0,r.useState)(!0),[d,l]=(0,r.useState)(void 0),[c,s]=(0,r.useState)(void 0);return(0,r.useEffect)(()=>{(async()=>{if(t&&e)try{a(!0);let e=await i();e?s(e):l(Error("Unable to fetch SOL price"))}catch(e){l(e)}finally{a(!1)}else a(!1)})()},[]),{solPrice:c,isSolPriceLoading:o,solPriceError:d}}},88172:(e,t,i)=>{i.d(t,{T:()=>n});var r=i(11069);let n=r.I4.span` 170 color: var(--privy-color-foreground); 171 font-size: 1.125rem; 172 font-weight: 600; 173 line-height: 1.875rem; /* 166.667% */ 174 text-align: center; 175`},89049:(e,t,i)=>{i.d(t,{a:()=>c,b:()=>f,c:()=>l,g:()=>s,p:()=>u,s:()=>p});var r=i(28245),n=i(43425),o=i(21784);let a=new Intl.NumberFormat(void 0,{style:"currency",currency:"USD",maximumFractionDigits:2}),d=e=>a.format(e),l=(e,t)=>{let i=d(t*parseFloat(e));return"$0.00"!==i?i:"<$0.01"},c=(e,t)=>{let i=d(t*parseFloat((0,r.c)(e)));return"$0.00"===i?"<$0.01":i},s=(e,t,i=6,r=!1)=>`${u(e,i,r)} ${t}`,u=(e,t=6,i=!1)=>{let n=parseFloat((0,r.c)(e)).toFixed(t).replace(/0+$/,"").replace(/\.$/,"");return i?n:`${"0"===n?"<0.001":n}`},p=e=>e.reduce((e,t)=>e+t,0n),f=(e,t)=>{let{chains:i}=(0,n.u)(),r=`https://etherscan.io/address/${t}`,a=`${(0,o.y)(e,i)}/address/${t}`;if(!a)return r;try{new URL(a)}catch{return r}return a}}}]);
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.