1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4868],{2419:(e,n,i)=>{i.d(n,{N:()=>o});var t=i(33287),a=i(12027);let o=({size:e,centerIcon:n})=>(0,t.jsx)(r,{$size:e,children:(0,t.jsxs)(d,{children:[(0,t.jsx)(c,{}),(0,t.jsx)(l,{}),n?(0,t.jsx)(s,{children:n}):null]})}),r=a.I4.div.withConfig({displayName:"LoadingContainer",componentId:"sc-ebc93df8-0"})(["--spinner-size:",";display:inline-flex;justify-content:center;align-items:center;@media all and (display-mode:standalone){margin-bottom:30px;}"],e=>e.$size?e.$size:"96px"),d=a.I4.div.withConfig({displayName:"SpinnerContainer",componentId:"sc-ebc93df8-1"})(["position:relative;height:var(--spinner-size);width:var(--spinner-size);opacity:1;animation:fadein 200ms ease;"]),s=a.I4.div.withConfig({displayName:"CenterIconContainer",componentId:"sc-ebc93df8-2"})(["position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;svg,img{width:calc(var(--spinner-size) * 0.4);height:calc(var(--spinner-size) * 0.4);border-radius:var(--privy-border-radius-full);}"]),c=a.I4.div.withConfig({displayName:"CircleFixed",componentId:"sc-ebc93df8-3"})(["position:absolute;top:0;right:0;bottom:0;left:0;width:var(--spinner-size);height:var(--spinner-size);&&{border:4px solid var(--privy-color-border-default);border-radius:50%;}"]),l=a.I4.div.withConfig({displayName:"CircleRotate",componentId:"sc-ebc93df8-4"})(["position:absolute;top:0;right:0;bottom:0;left:0;width:var(--spinner-size);height:var(--spinner-size);animation:spin 1200ms linear infinite;&&{border:4px solid;border-color:var(--privy-color-icon-subtle) transparent transparent transparent;border-radius:50%;}@keyframes spin{from{transform:rotate(0deg);}to{transform:rotate(360deg);}}"])},6149:(e,n,i)=>{i.d(n,{u:()=>s});var t=i(75311),a=i(82029),o=i(41864),r=i(9460),d=i(66363);function s(e){let{tokenPrice:n,isTokenPriceLoading:i,tokenPriceError:s}=(e=>{let{showFiatPrices:n,getUsdTokenPrice:i,chains:d}=(0,r.u)(),[s,c]=(0,t.useState)(!0),[l,p]=(0,t.useState)(void 0),[u,m]=(0,t.useState)(void 0);return(0,t.useEffect)(()=>{e||=o.s;let t=(0,a.u)(d).find(n=>n.id===Number(e));(async()=>{if(n){if(!t)return c(!1),p(Error(`Unable to fetch token price on chain id ${e}`));try{c(!0);let e=await i(t);e?m(e):p(Error(`Unable to fetch token price on chain id ${t.id}`))}catch(e){p(e)}finally{c(!1)}}else c(!1)})()},[e]),{tokenPrice:u,isTokenPriceLoading:s,tokenPriceError:l}}
1)("solana"===e?-1:e),{solPrice:c,isSolPriceLoading:l,solPriceError:p}=(0,d.u)({enabled:"solana"===e});return"solana"===e?{tokenPrice:c,isTokenPriceLoading:l,tokenPriceError:p}:{tokenPrice:n,isTokenPriceLoading:i,tokenPriceError:s}}},34912:(e,n,i)=>{i.d(n,{F:()=>r,I:()=>o,a:()=>d,b:()=>s,c:()=>l,d:()=>p,e:()=>a,f:()=>u,g:()=>m,h:()=>c});var t=i(12027);let a=t.I4.div.withConfig({displayName:"FundingMethodContainer",componentId:"sc-eaaa12a-0"})(["display:flex;flex-direction:column;gap:12px;padding-top:24px;padding-bottom:24px;"]),o=t.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=t.I4.div.withConfig({displayName:"FundingQuantityWrapper",componentId:"sc-eaaa12a-2"})(["display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:8px;"]),d=t.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);}"]),s=t.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,t.I4)(s).withConfig({displayName:"FundingAmountInputLarge",componentId:"sc-eaaa12a-6"})(["&&{font-size:42px;}"]),l=t.I4.div.withConfig({displayName:"FundingCurrency",componentId:"sc-eaaa12a-8"})(["font-size:18px;"]),p=t.I4.div.withConfig({displayName:"FundingDollars",componentId:"sc-eaaa12a-9"})(["font-size:12px;color:var(--privy-color-foreground-3);height:20px;"]),u=t.I4.div.withConfig({displayName:"InfoButtonText",componentId:"sc-eaaa12a-13"})([""]),m=t.I4.a.withConfig({displayName:"InfoButtonLink",componentId:"sc-eaaa12a-14"})(["&&{color:var(--privy-color-accent);}cursor:pointer;"])},52625:(e,n,i)=>{i.d(n,{t:()=>r});var t=i(33287),a=i(63259),o=i(994);function r({title:e}){let{currentScreen:n,navigateBack:i,navigate:r,data:d,setModalData:s}=(0,a.a)();return(0,t.jsx)(o.M,{title:e,backFn:"ManualTransferScreen"===n?i:n===d?.funding?.methodScreen?d.funding.comingFromSendTransactionScreen?()=>r("SendTransactionScreen"):void 0:d?.funding?.methodScreen?()=>{let e=d.funding;e.usingDefaultFundingMethod&&(e.usingDefaultFundingMethod=!1),s({funding:e,solanaFundingData:d?.solanaFundingData}),r(e.methodScreen)}:void 0})}},54868:(e,n,i)=>{i.r(n),i.d(n,{FundingAmountEditScreen:()=>g,default:()=>g});var t=i(33287),a=i(75311),o=i(32977),r=i(55865),d=i(994),s=i(52625),c=i(2419),l=i(72874),p=i(63259),u=i(6149),m=i(83213),f=i(34912);i(4116),i(76077),i(57383);let g={component:()=>{let{data:e,setModalData:n}=(0,p.a)(),i=e?.funding,g="solana"===i.chainType,h=(0,a.useRef)(null),{tokenPrice:x}=(0,u.u)(g?"solana":i.chain.id),y=g?void 0:i,v=!(!y?.erc20Address||y?.erc20ContractInfo),I=g?i.isUSDC?"USDC":"SOL":i.erc20Address?i.erc20ContractInfo?.symbol:i.chain.nativeCurrency.symbol||"ETH",b=parseFloat(i.amount),C=!isNaN(b)&&b>0,w=x?(0,m.c)(i.amount,x):void 0;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.t,{}),(0,t.jsx)(l.T,{children:"Confirm or edit amount"}),(0,t.jsxs)(r.F,{style:{marginTop:"32px"},children:[(0,t.jsx)(f.F,{children:v?(0,t.jsx)(c.N,{size:"50px"}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(f.a,{onClick:()=>h.current?.focus(),children:[(0,t.jsx)(f.h,{ref:h,value:i.amount,onChange:t=>{let a=t.target.value;/^[0-9.]*$/.test(a)&&a.split(".").length-1<=1&&n({...e,funding:{...i,amount:a},solanaFundingData:e?.solanaFundingData?{...e.solanaFundingData,amount:a}:void 0})}}),(0,t.jsx)(f.c,{children:I})]}),!y?.erc20Address&&(0,t.jsx)(f.d,{children:w&&C?`${w} USD`:""})]})}),(0,t.jsx)(o.a,{style:{marginTop:"1rem"},disabled:!C,onClick:i.onContinueWithExternalWallet,children:"Continue"})]}),(0,t.jsx)(d.B,{})]})}}},55865:(e,n,i)=>{i.d(n,{B:()=>a,C:()=>d,F:()=>c,H:()=>r,R:()=>m,S:()=>p,a:()=>l,b:()=>u,c:()=>s,d:()=>f,e:()=>o});var t=i(12027);let a=t.I4.div.withConfig({displayName:"BottomPusherContainer",componentId:"sc-cb963810-0"})(["display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-end;margin-top:auto;gap:16px;flex-grow:100;"]),o=t.I4.div.withConfig({displayName:"CenteredItem",componentId:"sc-cb963810-1"})(["display:flex;flex-direction:column;align-items:center;justify-content:center;flex-grow:1;width:100%;"]),r=t.I4.div.withConfig({displayName:"HorizontallyCenteredItem",componentId:"sc-cb963810-2"})(["display:flex;flex-direction:column;align-items:center;width:100%;"]),d=(0,t.I4)(o).withConfig({displayName:"CenteredItemWithPadding",componentId:"sc-cb963810-3"})(["padding:20px 0;"]),s=(0,t.I4)(o).withConfig({displayName:"CenteredItemWithGap",componentId:"sc-cb963810-4"})(["gap:16px;"]),c=t.I4.div.withConfig({displayName:"FlexContainer",componentId:"sc-cb963810-5"})(["display:flex;flex-direction:column;width:100%;"]),l=t.I4.div.withConfig({displayName:"FixedGappedContainer",componentId:"sc-cb963810-6"})(["display:flex;flex-direction:column;gap:8px;"]),p=t.I4.div.withConfig({displayName:"StyledCalloutSection",componentId:"sc-cb963810-8"})(["display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;text-align:left;gap:8px;padding:16px;margin-top:16px;margin-bottom:16px;width:100%;background:var(--privy-color-background-2);border-radius:var(--privy-border-radius-md);&& h4{color:var(--privy-color-foreground-3);font-size:14px;text-decoration:underline;font-weight:medium;}&& p{color:var(--privy-color-foreground-3);font-size:14px;}"]),u=t.I4.div.withConfig({displayName:"RefactorSpacerTop",componentId:"sc-cb963810-9"})(["height:16px;"]),m=t.I4.div.withConfig({displayName:"RefactorSpacerBottom",componentId:"sc-cb963810-10"}
1)(["height:12px;"]),f=t.I4.div.withConfig({displayName:"ConfigurableSpacer",componentId:"sc-cb963810-12"})(["height:","px;"],e=>e.height??"12")},66363:(e,n,i)=>{i.d(n,{u:()=>o});var t=i(75311),a=i(9460);let o=({enabled:e=!0}={})=>{let{showFiatPrices:n,getUsdPriceForSol:i}=(0,a.u)(),[o,r]=(0,t.useState)(!0),[d,s]=(0,t.useState)(void 0),[c,l]=(0,t.useState)(void 0);return(0,t.useEffect)(()=>{(async()=>{if(n&&e)try{r(!0);let e=await i();e?l(e):s(Error("Unable to fetch SOL price"))}catch(e){s(e)}finally{r(!1)}else r(!1)})()},[]),{solPrice:c,isSolPriceLoading:o,solPriceError:d}}},72874:(e,n,i)=>{i.d(n,{T:()=>t});let t=i(12027).I4.span.withConfig({displayName:"Title",componentId:"sc-66de63c-0"})(["color:var(--privy-color-foreground);font-size:1.125rem;font-weight:600;line-height:1.875rem;text-align:center;"])},82029:(e,n,i)=>{i.d(n,{u:()=>a});var t=i(9038);function a(e){let n=e.filter(e=>!t.o.has(e.id));return t.m.concat(n)}},83213:(e,n,i)=>{i.d(n,{a:()=>s,b:()=>u,c:()=>d,g:()=>c,p:()=>l,s:()=>p});var t=i(98598),a=i(9460),o=i(67861);let r=new Intl.NumberFormat(void 0,{style:"currency",currency:"USD",maximumFractionDigits:2}),d=(e,n)=>{let i,t=(i=n*parseFloat(e),r.format(i));return"$0.00"!==t?t:"<$0.01"},s=(e,n)=>{let i,a=(i=n*parseFloat((0,t.c)(e)),r.format(i));return"$0.00"===a?"<$0.01":a},c=(e,n,i=6,t=!1)=>`${l(e,i,t)} ${n}`,l=(e,n=6,i=!1)=>{let a=parseFloat((0,t.c)(e)).toFixed(n).replace(/0+$/,"").replace(/\.$/,"");return i?a:`${"0"===a?"<0.001":a}`},p=e=>e.reduce((e,n)=>e+n,0n),u=(e,n)=>{let{chains:i}=(0,a.u)(),t=`https://etherscan.io/address/${n}`,r=`${(0,o.a5)(e,i)}/address/${n}`;if(!r)return t;try{new URL(r)}catch{return t}return r}}}]);
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.