PageSourceSearch

https://www.withengine.ai/_next/static/chunks/952.6cd770058cf759d9.js

js withengine.ai collected 2026-10-05 16:19:36 UTC 8,033 bytes, 175 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[952],{15347:(e,t,i)=>{i.d(t,{u:()=>l});var r=i(7620),n=i(54258),o=i(52726),a=i(2359),d=i(90628);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.u)(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}})("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}}},24791:(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(96728);let n=r.I4.div`
2  display: flex;
3  flex-direction: column;
4  align-items: flex-start;
5  justify-content: flex-end;
6  margin-top: auto;
7  gap: 16px;
8  flex-grow: 100;
9`,o=r.I4.div`
10  display: flex;
11  flex-direction: column;
12  align-items: center;
13  justify-content: center;
14  flex-grow: 1;
15  width: 100%;
16`,a=r.I4.div`
17  display: flex;
18  flex-direction: column;
19  align-items: center;
20  width: 100%;
21`,d=(0,r.I4)(o)`
22  padding: 20px 0;
23`,l=(0,r.I4)(o)`
24  gap: 16px;
25`,c=r.I4.div`
26  display: flex;
27  flex-direction: column;
28  width: 100%;
29`,s=r.I4.div`
30  display: flex;
31  flex-direction: column;
32  gap: 8px;
33`;r.I4.div`
34  display: flex;
35  flex-direction: column;
36  justify-content: space-between;
37  height: 100%;
38`;let u=r.I4.div`
39  display: flex;
40  flex-direction: column;
41  justify-content: flex-start;
42  align-items: flex-start;
43  text-align: left;
44  gap: 8px;
45  padding: 16px;
46  margin-top: 16px;
47  margin-bottom: 16px;
48  width: 100%;
49  background: var(--privy-color-background-2);
50  border-radius: var(--privy-border-radius-md);
51  && h4 {
52    color: var(--privy-color-foreground-3);
53    font-size: 14px;
54    text-decoration: underline;
55    font-weight: medium;
56  }
57  && p {
58    color: var(--privy-color-foreground-3);
59    font-size: 14px;
60  }
61`,p=r.I4.div`
62  height: 16px;
63`,f=r.I4.div`
64  height: 12px;
65`;r.I4.div`
66  position: relative;
67`;let g=r.I4.div`
68  height: ${e=>e.height??"12"}px;
69`;r.I4.div`
70  background-color: var(--privy-color-accent);
71  display: flex;
72  justify-content: center;
73  align-items: center;
74  border-radius: 50%;
75  border-color: white;
76  border-width: 2px !important;
77`},49838:(e,t,i)=>{i.d(t,{T:()=>n});var r=i(96728);let n=r.I4.span`
78  color: var(--privy-color-foreground);
79  font-size: 1.125rem;
80  font-weight: 600;
81  line-height: 1.875rem; /* 166.667% */
82  text-align: center;
83`},53299:(e,t,i)=>{i.d(t,{t:()=>a});var r=i(54568),n=i(73716),o=i(76654);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})}},54258:(e,t,i)=>{i.d(t,{u:()=>n});var r=i(12054);function n(e){let t=e.filter(e=>!r.o.has(e.id));return r.m.concat(t)}},67819:(e,t,i)=>{i.d(t,{a:()=>c,b:()=>f,c:()=>l,g:()=>s,p:()=>u,s:()=>p});var r=i(16620),n=i(2359),o=i(35411);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)=>
83e+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}},87055:(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(96728),n=i(76654),o=i(75153);let a=r.I4.div`
84  display: flex;
85  flex-direction: column;
86  gap: 12px;
87  padding-top: 24px;
88  padding-bottom: 24px;
89`,d=r.I4.div`
90  width: 24px;
91  height: 24px;
92  display: flex;
93  justify-content: center;
94  align-items: center;
95
96  svg {
97    border-radius: var(--privy-border-radius-sm);
98  }
99`,l=r.I4.div`
100  display: flex;
101  flex-direction: column;
102  justify-content: center;
103  align-items: flex-start;
104  gap: 8px;
105`,c=r.I4.div`
106  display: flex;
107  align-items: center;
108  gap: 4px;
109  width: 100%;
110  padding: 0 16px;
111  border-width: 1px !important;
112  border-radius: 12px;
113  cursor: text;
114
115  &:focus-within {
116    border-color: var(--privy-color-accent);
117  }
118`;r.I4.div`
119  font-size: 42px !important;
120`;let s=r.I4.input`
121  background-color: var(--privy-color-background);
122  width: 100%;
123
124  &:focus {
125    outline: none !important;
126    border: none !important;
127    box-shadow: none !important;
128  }
129
130  && {
131    font-size: 26px;
132  }
133`,u=(0,r.I4)(s)`
134  && {
135    font-size: 42px;
136  }
137`;r.I4.button`
138  cursor: pointer;
139  padding-left: 4px;
140`;let p=r.I4.div`
141  font-size: 18px;
142`,f=r.I4.div`
143  font-size: 12px;
144  color: var(--privy-color-foreground-3);
145  // we need this container to maintain a static height if there's no content
146  height: 20px;
147`;r.I4.div`
148  display: flex;
149  flex-direction: row;
150  line-height: 22px;
151  font-size: 16px;
152  text-align: center;
153  svg {
154    margin-right: 6px;
155    margin: auto;
156  }
157`,(0,r.I4)(o.LinkButton)`
158  margin-top: 16px;
159`;let g=(0,r.i7)`
160  from {
161    opacity: 0;
162  }
163  to {
164    opacity: 1;
165  }
166`;(0,r.I4)(n.d)`
167  border-radius: var(--privy-border-radius-md) !important;
168  animation: ${g} 0.3s ease-in-out;
169`;let x=r.I4.div``,h=r.I4.a`
170  && {
171    color: var(--privy-color-accent);
172  }
173
174  cursor: pointer;
175`},90628:(e,t,i)=>{i.d(t,{u:()=>o});var r=i(7620),n=i(2359);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)})()}
175,[]),{solPrice:c,isSolPriceLoading:o,solPriceError:d}}},90952:(e,t,i)=>{i.r(t),i.d(t,{FundingAmountEditScreen:()=>g,default:()=>g});var r=i(54568),n=i(7620),o=i(76654),a=i(24791),d=i(53299),l=i(71170),c=i(49838),s=i(73716),u=i(15347),p=i(67819),f=i(87055);i(21984),i(17225),i(99112);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,{})]})}}}}]);

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.