1import{go as f,B as g,j as o}from"./index-BSx329UM.js";import{k as h,u as j}from"./ModalHeader-DffkxvO4-4hAT2A9_.js";import{d as C}from"./Layouts-BlFm53ED-C4rR6VvK.js";import{t as D}from"./FundWalletMethodHeader-A50eT5P4-DeyUgsJx.js";import{t as y}from"./index-Dq_xe9dz-txSzgltx.js";import{e as F}from"./Title-BnzYV3Is-5TbbvIo3.js";import{c as S}from"./useGetTokenPrice-ENX-6s3C-BOVgkrWg.js";import{n as $}from"./ethers-VpbQV-TA-CAhdVO1M.js";import{a as v,p as k,d as A,c as E,l as T}from"./styles-ByUO8DsA-CZMGYBE3.js";import"./useGetSolPrice-x7gfUIHJ-DKVBX17p.js";import"./LinkPasskeyScreen-C-MqivSL-CegMy8r7.js";import"./TodoList-CgrU7uwu-BPLRFI_B.js";import"./x-DJH24y2V.js";import"./createLucideIcon-DVQ5gbwD.js";import"./check-HNrCic8x.js";import"./ScreenLayout-Caq5mGD8-C8e_i3Eq.js";import"./Screen-D8KNyGVj-aZIJz9Of.js";import"./circle-check-big-BBmS3Rm6.js";import"./fingerprint-pattern-DMXeGVu0.js";const V={component:()=>{let{data:r,setModalData:c}=f(),t=r?.funding,n=t.chainType==="solana",e=g.useRef(null),{tokenPrice:s}=S(n?"solana":t.chain.id),a=n?void 0:t,p=!(!a?.erc20Address||a?.erc20ContractInfo),u=n?t.isUSDC?"USDC":"SOL":t.erc20Address?t.erc20ContractInfo?.symbol:t.chain.nativeCurrency.symbol||"ETH",m=parseFloat(t.amount),l=!isNaN(m)&&m>0,d=s?$(t.amount,s):void 0;return o.jsxs(o.Fragment,{children:[o.jsx(D,{}),o.jsx(F,{children:"Confirm or edit amount"}),o.jsxs(C,{style:{marginTop:"32px"},children:[o.jsx(v,{children:p?o.jsx(y,{size:"50px"}):o.jsxs(o.Fragment,{children:[o.jsxs(k,{onClick:()=>e.current?.focus(),children:[o.jsx(A,{ref:e,value:t.amount,onChange:x=>{let i=x.target.value;/^[0-9.]*$/.test(i)&&i.split(".").length-1<=1&&c({...r,funding:{...t,amount:i},solanaFundingData:r?.solanaFundingData?{...r.solanaFundingData,amount:i}:void 0})}}),o.jsx(E,{children:u})]}),!a?.erc20Address&&!(n&&t.isUSDC)&&o.jsx(T,{children:d&&l?`${d} USD`:""})]})}),o.jsx(h,{style:{marginTop:"1rem"},disabled:!l,onClick:t.onContinueWithExternalWallet,children:"Continue"})]}),o.jsx(j,{})]})}};export{V as FundingAmountEditScreen,V as default};
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.