PageSourceSearch

https://canfly.ai/assets/FundingEditAmountScreen-BLsQoL4e-BtWO8BYg.js

js canfly.ai collected 2026-10-05 13:53:07 UTC 2,114 bytes, 1 lines download raw bytes

1import{am as f,j as r}from"./vendor-privy-DywTFW8-.js";import{a as h}from"./vendor-i18n-BGlGq9Jg.js";import{k as j,u as g}from"./ModalHeader-DpkEBdQv-DbSTusH8.js";import{d as C}from"./Layouts-BlFm53ED-mOGF99ms.js";import{t as D}from"./FundWalletMethodHeader-D38FBVVM-DuYnbi8N.js";import{t as y}from"./index-Dq_xe9dz-CIHOxaAg.js";import{e as F}from"./Title-BnzYV3Is-BrxByR6s.js";import{c as S}from"./useGetTokenPrice-N5ZX6Yun-BOdn4VsB.js";import{n as v}from"./ethers-BozrzoVi-D9YWI45j.js";import{a as $,p as k,d as A,c as E,l as T}from"./styles-pSKfqjN3-CH9Zidgs.js";import"./vendor-react-jJlKb_y5.js";import"./useGetSolPrice-DwwjjGbd-C8muqrp8.js";import"./LinkPasskeyScreen-CHPataTs-0Q-uUAaU.js";import"./TodoList-CgrU7uwu-DV76fiqb.js";import"./createLucideIcon-BZfnjNKG.js";import"./check-C3G28qrK.js";import"./ScreenLayout-CyK-vOMq-_EPmvGtn.js";import"./Screen-B0u1eY7p-DLefQOmV.js";import"./circle-check-big-BRmCcCFb.js";import"./fingerprint-pattern-Py7hWACQ.js";const X={component:()=>{let{data:o,setModalData:c}=f(),t=o?.funding,n=t.chainType==="solana",e=h.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?v(t.amount,s):void 0;return r.jsxs(r.Fragment,{children:[r.jsx(D,{}),r.jsx(F,{children:"Confirm or edit amount"}),r.jsxs(C,{style:{marginTop:"32px"},children:[r.jsx($,{children:p?r.jsx(y,{size:"50px"}):r.jsxs(r.Fragment,{children:[r.jsxs(k,{onClick:()=>e.current?.focus(),children:[r.jsx(A,{ref:e,value:t.amount,onChange:x=>{let i=x.target.value;/^[0-9.]*$/.test(i)&&i.split(".").length-1<=1&&c({...o,funding:{...t,amount:i},solanaFundingData:o?.solanaFundingData?{...o.solanaFundingData,amount:i}:void 0})}}),r.jsx(E,{children:u})]}),!a?.erc20Address&&!(n&&t.isUSDC)&&r.jsx(T,{children:d&&l?`${d} USD`:""})]})}),r.jsx(j,{style:{marginTop:"1rem"},disabled:!l,onClick:t.onContinueWithExternalWallet,children:"Continue"})]}),r.jsx(g,{})]})}};export{X as FundingAmountEditScreen,X 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.