1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4009],{64009:(e,a,l)=>{l.r(a),l.d(a,{DepositPageClient:()=>U});var n=l(85520),r=l(98813),t=l(257),i=l(79281),u=l(8698),d=l(72310),s=l(1786),c=l(92746),o=l(91804),v=l(260),f=l(64348);function U(){(0,i.useRouter)();let e=(0,i.useSearchParams)(),a=e.get("tokenA"),l=e.get("tokenB"),U=e.get("fee"),{chainId:b}=(0,s.useAccount)(),{switchChain:h}=(0,c.useSwitchChain)(),S="0x0000000000000000000000000000000000000000"===a?(0,d.eU)(f.YT).address:a,D="0x0000000000000000000000000000000000000000"===l?(0,d.eU)(f.YT).address:l,{data:g}=(0,t.NO)();(0,o.useEffect)(()=>{b!==f.YT&&h({chainId:f.YT})},[b,h]);let m=(0,t.q5)(g,S),x=(0,t.q5)(g,D),{data:I,isLoading:T}=(0,t.Y$)(S,{enabled:!!S,staleTime:1/0,refetchInterval:!1,chainId:f.YT}),{data:Y,isLoading:A}=(0,t.Y$)(D,{enabled:!!D,staleTime:1/0,refetchInterval:!1,chainId:f.YT}),{data:k}=(0,t.nC)(I,{enabled:!!I}),{data:p}=(0,t.nC)(Y,{enabled:!!Y}),{data:C}=(0,v.u)(b||f.YT,S,{enabled:!!S&&(!(null==k?void 0:k.valueUSD)||0===k.valueUSD)}),{data:N}=(0,v.u)(b||f.YT,D,{enabled:!!D&&(!(null==p?void 0:p.valueUSD)||0===p.valueUSD)}),R=(0,o.useMemo)(()=>{if(!I)return;if(!k)return I;let e=k.valueUSD;if(!e||0===e){var a;e=Array.isArray(C)?(null==(a=C[0])?void 0:a.price)||0:(null==C?void 0:C.price)||0}return{...I,balance:k.balance,valueUSD:e,balanceUSD:k.balanceUSD,logoURI:null==m?void 0:m.logoURI}},[I,k,C,null==m?void 0:m.logoURI]),j=(0,o.useMemo)(()=>{if(!Y)return;if(!p)return Y;let e=p.valueUSD;if(!e||0===e){var a;e=Array.isArray(N)?(null==(a=N[0])?void 0:a.price)||0:(null==N?void 0:N.price)||0}return{...Y,balance:p.balance,valueUSD:e,balanceUSD:p.balanceUSD,logoURI:null==x?void 0:x.logoURI}},[Y,p]);return T||A||!R||!j?(0,n.jsx)(r.A,{}):(0,n.jsx)("div",{className:"relative flex h-full w-full flex-col items-center",children:(0,n.jsx)("div",{className:"flex flex-1 items-center justify-center",children:(0,n.jsx)(u.A,{tokenA:R,tokenB:j,fee:Number(U)})})})}}}]);
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.