PageSourceSearch

https://moonex.io/_next/static/chunks/app/layout-7e9e048e346caca3.js

js moonex.io collected 2026-10-08 10:01:30 UTC 20,992 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7177],{7170:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});var a=r(7983);r(32327);var s=r(46104);function n(){return(0,a.jsxs)("div",{className:"fixed inset-0 z-50 flex flex-col items-center justify-center bg-background select-none",children:[(0,a.jsx)("div",{className:"absolute inset-0 pointer-events-none overflow-hidden",children:(0,a.jsx)("div",{className:"absolute top-[30%] left-[50%] -translate-x-1/2 -translate-y-1/2 w-[400px] h-[400px] bg-primary/10 rounded-full blur-[100px] animate-pulse"})}),(0,a.jsxs)("div",{className:"relative flex flex-col items-center gap-6 z-10",children:[(0,a.jsxs)("div",{className:"relative w-20 h-20 flex items-center justify-center",children:[(0,a.jsx)("div",{className:"absolute inset-0 border-2 border-primary/20 border-t-primary rounded-full animate-spin duration-1000"}),(0,a.jsx)("div",{className:"absolute inset-2 border border-accent/20 border-b-accent rounded-full animate-spin duration-1500",style:{animationDirection:"reverse"}}),(0,a.jsx)(s.default,{src:"/images/design-mode/moonex_icon.svg",alt:"MoonEx",width:32,height:32,className:"animate-pulse"})]}),(0,a.jsxs)("div",{className:"flex flex-col items-center gap-1.5 font-mono text-center",children:[(0,a.jsx)("span",{className:"text-xs uppercase tracking-[0.25em] text-primary text-glow-cyan animate-pulse",children:"Establishing Link"}),(0,a.jsx)("span",{className:"text-[9px] uppercase tracking-widest text-muted-foreground animate-pulse duration-1000",children:"Syncing orbital matching deck..."})]})]})]})}},11198:(e,t,r)=>{"use strict";r.d(t,{ConnectionIndicator:()=>d});var a=r(7983),s=r(32327),n=r(98106),i=r(78298),l=r(69514),o=r(29924);function d(){let{isAuthenticated:e}=(0,o.J)(),[t,r]=(0,s.useState)(!0);return((0,s.useEffect)(()=>{let e=()=>r(!0),t=()=>r(!1);return window.addEventListener("online",e),window.addEventListener("offline",t),()=>{window.removeEventListener("online",e),window.removeEventListener("offline",t)}},[]),e)?(0,a.jsx)("div",{className:"fixed bottom-4 right-4 z-50",children:(0,a.jsx)(n.N,{children:!t&&(0,a.jsxs)(i.P.div,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},className:"flex items-center gap-2 rounded-lg border border-destructive/50 bg-destructive/10 px-3 py-2 text-sm text-destructive",children:[(0,a.jsx)(l.A,{className:"h-4 w-4"}),(0,a.jsx)("span",{children:"Connection lost"})]})})}):null}},23130:(e,t,r)=>{Promise.resolve().then(r.t.bind(r,23292,23)),Promise.resolve().then(r.bind(r,7170)),Promise.resolve().then(r.bind(r,42929)),Promise.resolve().then(r.bind(r,53382)),Promise.resolve().then(r.bind(r,73607)),Promise.resolve().then(r.bind(r,11198)),Promise.resolve().then(r.bind(r,13956)),Promise.resolve().then(r.t.bind(r,35530,23)),Promise.resolve().then(r.t.bind(r,8530,23)),Promise.resolve().then(r.bind(r,55819))},23292:()=>{},42929:(e,t,r)=>{"use strict";r.d(t,{default:()=>f});var a=r(7983),s=r(32327),n=r(29545),i=r(6910),l=r(7738),o=r(55251),d=r(31873),c=r(29924),u=r(31064),m=r(30144),x=r(35798);function p({children:e,...t}){return(0,a.jsx)(x.N,{...t,children:e})}function b(){let{theme:e,setTheme:t}=(0,x.D)(),{user:r}=(0,c.J)(),a=s.useRef(null);return(0,s.useEffect)(()=>{r?.theme&&r.theme!==a.current&&(t(r.theme),a.current=r.theme)},[r?.theme,t]),null}function f({children:e}){let[t]=(0,s.useState)(()=>new n.E({defaultOptions:{queries:{staleTime:3e4,gcTime:3e5,refetchOnWindowFocus:!0,retry:2},mutations:{retry:0}}}));return(0,a.jsx)(i.Ht,{client:t,children:(0,a.jsxs)(p,{attribute:"class",defaultTheme:"dark",enableSystem:!1,children:[(0,a.jsx)(o.t,{children:(0,a.jsx)(d.G_,{clientId:"9738616088-6qqm3sh1abae23k151q6tds2dn211r6c.apps.googleusercontent.com",children:(0,a.jsxs)(c.v,{children:[(0,a.jsx)(b,{}),(0,a.jsx)(u.p,{children:(0,a.jsx)(m.f,{children:e})})]})})}),(0,a.jsx)(l.E,{initialIsOpen:!1,buttonPosition:"bottom-left"})]})})}},53382:(e,t,r)=>{"use strict";r.d(t,{AuthStatus:()=>d});var a=r(7983),s=r(39423),n=r(69514),i=r(13748),l=r(98106),o=r(78298);function d(){let{isAuthenticated:e,error:t,user:r}=(0,s.A)();if(!e||!r||!t)return null;let d=t.includes("offline")||t.includes("unavailable");return(0,a.jsx)(l.N,{children:(0,a.jsx)(o.P.div,{initial:{opacity:0,y:-20}
1,animate:{opacity:1,y:0},exit:{opacity:0,y:-20},className:"fixed top-16 md:top-20 left-4 right-4 z-40 mx-auto max-w-md",children:(0,a.jsxs)("div",{className:"flex items-center gap-2 rounded-lg border border-amber-500/20 bg-amber-500/10 px-3 py-2 text-sm text-amber-200 backdrop-blur-sm",children:[d?(0,a.jsx)(n.A,{className:"h-4 w-4 flex-shrink-0"}):(0,a.jsx)(i.A,{className:"h-4 w-4 flex-shrink-0"}),(0,a.jsx)("span",{className:"flex-1 truncate",children:t})]})})})}},73607:(e,t,r)=>{"use strict";r.d(t,{MobileFootnav:()=>L});var a=r(7983),s=r(92469),n=r(29924),i=r(69648),l=r.n(i),o=r(98106),d=r(78298),c=r(65385),u=r(90176),m=r(8794),x=r(61893),p=r(72362),b=r(14725),f=r(32327),h=r(25455),g=r(9846),y=r(37949),v=r(42727),j=r(89443),N=r(81855),w=r(68978),k=r(6910),P=r(55251),S=r(57399),C=r(64932),T=r(86408),B=r(65679),A=r(72129),E=r(34927),M=r(77597);let F={BNB:"0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",USDT:"0x55d398326f99059ff775485246999027b3197955",USDC:"0x4ef18a74dac957a3b8fd7fa6becda25139d517ad",BOOHAA:"0xf005d5f4ce1f0ac7ff788876d7aab4de11d7e776",STK:"0x14c50e4ba0f2732d9961e02ddb7e39efa3213337"},z={BNB:18,USDT:18,USDC:6,BOOHAA:18,STK:18};function $({pair:e,initialSide:t="buy",onClose:r}){let[i,l]=(0,f.useState)("market"),[o,c]=(0,f.useState)(t),[u,x]=(0,f.useState)(""),[p,$]=(0,f.useState)(""),[L,_]=(0,f.useState)(0),{index:D,data:U}=(0,S.c)(),q=(0,k.jE)(),{isAuthenticated:O}=(0,n.J)(),I=(0,s.useRouter)(),{push:W}=(0,P.d)();(0,f.useEffect)(()=>{c(t)},[t]);let{execute:K,reset:H,isLoading:Q,executionState:J,executionError:G,statusMessage:R}=(0,B.Mx)(),{execute:Y,reset:V,isLoading:X,executionState:Z,executionError:ee,statusMessage:et}=(0,A.NI)(),[er,ea]=(0,f.useMemo)(()=>e?.includes("/")?e.split("/"):["BNB","USDT"],[e]),es="buy"===o?ea:er,en="buy"===o?er:ea,{data:ei}=(0,h.n)(e),el=(0,f.useMemo)(()=>(0,T.Fc)(ei,e,U),[ei,e,U]),{data:eo,isLoading:ed}=(0,C.t)((0,T.Wz)(el)),ec=(0,f.useCallback)(e=>{let t=e.toUpperCase(),r=U?.find(e=>e.symbol.toUpperCase()===t&&e.chain===el)||U?.find(e=>e.symbol.toUpperCase()===t&&"BSC_TESTNET"===e.chain)||U?.find(e=>e.symbol.toUpperCase()===t&&(0,T.he)(e.chain)===el);if(r)return{symbol:r.symbol,address:r.address||F[t]||"",decimals:r.decimals??z[t]??18};if(D?.has(t)){let e=D.get(t);return{symbol:e.symbol,address:e.address||F[t]||"",decimals:e.decimals??z[t]??18}}return"ETH"===t&&"ETH"===el?{symbol:"ETH",address:"0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",decimals:18}:"BNB"===t&&"BSC"===el?{symbol:"BNB",address:"0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",decimals:18}:{symbol:t,address:F[t]||"",decimals:z[t]??18}},[D,U,el]),eu=(0,f.useMemo)(()=>ec(es),[ec,es]),em=(0,f.useMemo)(()=>ec(en),[ec,en]),ex=ec(er).address,{data:ep}=(0,E.kG)({tokenAddress:ex}),eb=(0,f.useMemo)(()=>ep?.summary?.find(e=>e.token.address.toLowerCase()===ex.toLowerCase()),[ep,ex]),ef=ei?.lastPrice||0,eh=parseFloat(eb?.avgBuyPrice||"0"),eg=(0,f.useMemo)(()=>"sell"!==o||!eb||eh<=0||ef<=0?null:{percent:(ef-eh)/eh*100,usd:(ef-eh)*(eb.totalBought?parseFloat(eb.totalBought)-parseFloat(eb.totalSold):0),avgBuyPrice:eh},[o,eb,eh,ef]),ey=(0,f.useMemo)(()=>{if(!O||!eo?.length)return{balance:0,rawBalance:"0"};let e=(0,T.Y0)(eo,es,el,eu.address);return{balance:e?.balance??0,rawBalance:e?.rawBalance??"0"}},[eo,es,eu.address,el,O]),ev=async()=>{if(!O)return void I.push("/auth/login");let e=parseFloat(u)||0;if(e<=0)return void W({title:"Invalid Amount",description:"Please enter an amount greater than zero.",variant:"error"});if("market"===i)await K({srcToken:eu.address,destToken:em.address,amount:u,srcDecimals:eu.decimals,slippageBps:1e3,chainId:(0,T.bu)(el)})&&(W({title:"Trade Successful",description:`Swapped ${e.toFixed(6)} ${es} for ${en}`,variant:"success"}),x(""),_(0),H(),q.invalidateQueries({queryKey:["balances"]}),q.invalidateQueries({queryKey:["trade-history"]}),q.invalidateQueries({queryKey:["trade-summary"]}),q.invalidateQueries({queryKey:["trade-stats"]}),r?.());else{let t=parseFloat(p);if(!t||t<=0)return void W({title:"Invalid Price",description:"Please enter a valid limit price greater than zero.",variant:"error"});await Y({tokenIn:eu,tokenOut:em,side:o,price:t,amount:e,slippagePercent:10,expirationHours:24})&&(W({title:"Order Placed",description:`${"buy"===o?"Buy":"Sell"} ${e.toFixed(6)} ${er} at ${t} ${ea}`,variant:"success"}
1),x(""),_(0),$(""),V(),q.invalidateQueries({queryKey:["limit-orders"]}),q.invalidateQueries({queryKey:["balances"]}),q.invalidateQueries({queryKey:["trade-history"]}),q.invalidateQueries({queryKey:["trade-summary"]}),q.invalidateQueries({queryKey:["trade-stats"]}),r?.())}},ej=parseFloat(u)||0,eN=(0,f.useMemo)(()=>{if("market"===i&&ej>0&&ef>0)return"buy"===o?ej/ef:ej*ef;if("limit"===i&&p&&ej){let e=parseFloat(p);return isNaN(e)||e<=0?null:"buy"===o?ej/e:ej*e}return null},[ef,i,p,ej,o]),ew=Q||X,ek=R||et,eP=ej>0&&("limit"!==i||parseFloat(p)>0);return(0,a.jsx)("div",{className:"flex flex-col h-full bg-card",children:(0,a.jsxs)("div",{className:"flex-1 overflow-y-auto p-3 pb-6 space-y-4",children:[(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsxs)("button",{onClick:()=>l("market"),className:(0,b.cn)("flex-1 py-2.5 px-3 rounded-lg text-xs font-medium transition-colors active:scale-[0.98]","market"===i?"bg-primary/20 text-primary border border-primary/30":"bg-background text-muted-foreground hover:text-foreground border border-border"),children:[(0,a.jsx)(m.A,{className:"h-3.5 w-3.5 inline mr-1.5"}),"Market"]}),(0,a.jsxs)("button",{onClick:()=>l("limit"),className:(0,b.cn)("flex-1 py-2.5 px-3 rounded-lg text-xs font-medium transition-colors active:scale-[0.98]","limit"===i?"bg-primary/20 text-primary border border-primary/30":"bg-background text-muted-foreground hover:text-foreground border border-border"),children:[(0,a.jsx)(v.A,{className:"h-3.5 w-3.5 inline mr-1.5"}),"Limit"]})]}),(0,a.jsxs)("div",{className:"flex items-center justify-between p-2.5 bg-background/50 rounded-lg",children:[(0,a.jsx)("span",{className:"text-xs text-muted-foreground",children:"Available"}),(0,a.jsx)("span",{className:"text-xs font-mono text-foreground",children:O?ed?(0,a.jsx)(j.A,{className:"h-3 w-3 animate-spin inline"}):`${ey.balance.toFixed(6)} ${es}`:"—"})]}),"market"===i&&(0,a.jsxs)("div",{className:"mb-4 rounded-lg border border-white/10 bg-white/5 px-3 py-2.5 flex items-center justify-between",children:[(0,a.jsx)("span",{className:"text-[10px] font-mono uppercase text-muted-foreground",children:"Market Price"}),(0,a.jsx)("span",{className:"text-xs font-mono text-white tracking-widest",children:"BEST MATCH"})]}),"limit"===i&&(0,a.jsxs)("div",{className:"space-y-1.5",children:[(0,a.jsx)("label",{className:"text-xs font-medium text-foreground",children:"Price"}),(0,a.jsxs)("div",{className:"flex items-center rounded-lg border border-border bg-background px-3 h-11",children:[(0,a.jsx)("input",{type:"number",value:p,onChange:e=>$(e.target.value),className:"flex-1 bg-transparent text-right text-base font-mono outline-none [appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none",step:"0.00001",placeholder:"0.00",inputMode:"decimal"}),(0,a.jsx)("span",{className:"text-xs text-muted-foreground ml-2 font-medium",children:ea})]})]}),(0,a.jsxs)("div",{className:"space-y-1.5",children:[(0,a.jsx)("label",{className:"text-xs font-medium text-foreground",children:"Amount"}),(0,a.jsxs)("div",{className:"flex items-center rounded-lg border border-border bg-background px-3 h-11",children:[(0,a.jsx)("input",{type:"number",value:u,onChange:e=>{var t;let r;return x(t=e.target.value),r=parseFloat(t)||0,void(ey.balance>0&&_(Math.min(r/ey.balance*100,100)))},className:"flex-1 bg-transparent text-right text-base font-mono outline-none [appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none",step:"0.0001",placeholder:"0.00",inputMode:"decimal"}),(0,a.jsx)("span",{className:"text-xs text-muted-foreground ml-2 font-medium",children:es})]})]}),(0,a.jsx)("div",{className:"grid grid-cols-4 gap-1.5",children:[25,50,75,100].map(e=>(0,a.jsxs)("button",{type:"button",onClick:()=>(e=>{if(_(e),100===e&&"0"!==ey.rawBalance)x((0,M.J)((0,T.PI)(ey.rawBalance),eu.decimals));else{let t=ey.balance*e/100;x(t<1e-12?"":t.toString())}})(e),className:(0,b.cn)("py-2 text-xs font-medium rounded-lg border transition-all active:scale-[0.96]",L===e?"border-primary bg-primary/15 text-primary":"border-border bg-background text-muted-foreground hover:border-primary/50 hover:text-foreground"),children:[e,"%"]},e))}),(0,a.jsxs)("div",{className:"space-y-1.5",children:[(0,a.jsx)(y.A,{value:[L],onValueChange:e=>{let t=e[0];if(_(t),100===t&&"0"!==ey.rawBalance)x((0,M.J)((0,T.PI)(ey.rawBalance),eu.decimals));else{let e=ey.balance*t/100;x(e<1e-12?"":e.toString())}},max:100,step:1,className:"w-full"}),(0,a.jsxs)("div",{className:"flex justify-between text-[10px] text-muted-foreground",children:[(0,a.jsx)("span",{children:"0%"}),(0,a.jsxs)("span",{children:["Max: ",O?`${ey.balance.toFixed(4)} ${es}`:"—"]})]})]}),eg&&(0,a.jsxs)(d.P.div,{initial:{opacity:0,y:10}
1,animate:{opacity:1,y:0},className:"rounded-lg border border-border bg-background/40 p-3 overflow-hidden relative",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between text-[10px] font-mono uppercase tracking-wider text-muted-foreground",children:[(0,a.jsxs)("span",{className:"flex items-center gap-1",children:[(0,a.jsx)(N.A,{className:"w-3 h-3 text-primary/60"}),"Performance"]}),(0,a.jsxs)("span",{children:["Entry Price: $",eg.avgBuyPrice.toFixed(4)]})]}),(0,a.jsxs)("div",{className:"flex items-end justify-between",children:[(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsxs)("span",{className:(0,b.cn)("text-lg font-mono font-bold tracking-tighter",eg.percent>=0?"text-green-500":"text-red-500"),children:[eg.percent>=0?"+":"",eg.percent.toFixed(2),"%"]}),(0,a.jsx)("span",{className:"text-[9px] font-mono text-muted-foreground uppercase",children:"Unrealized P/L"})]}),(0,a.jsxs)("div",{className:(0,b.cn)("px-2 py-1 rounded text-[10px] font-mono font-bold flex flex-col items-end",eg.percent>=0?"bg-green-500/10 text-green-500":"bg-red-500/10 text-red-500"),children:[(0,a.jsxs)("span",{children:[eg.usd>=0?"+":"","$",Math.abs(eg.usd).toFixed(2)]}),(0,a.jsx)("span",{className:"opacity-60 text-[8px]",children:"TOTAL PROFIT"})]})]})]}),(0,a.jsx)("div",{className:"mt-2.5 w-full h-1 bg-border rounded-full overflow-hidden",children:(0,a.jsx)(d.P.div,{initial:{width:0},animate:{width:`${Math.min(Math.abs(eg.percent),100)}%`},className:(0,b.cn)("h-full rounded-full transition-all duration-500",eg.percent>=0?"bg-green-500":"bg-red-500")})})]}),ej>0&&null!==eN&&!isNaN(eN)&&(0,a.jsx)("div",{className:"p-3 bg-background/50 rounded-lg",children:(0,a.jsxs)("div",{className:"flex justify-between text-xs",children:[(0,a.jsx)("span",{className:"text-muted-foreground",children:"You'll receive"}),(0,a.jsxs)("span",{className:"font-mono text-foreground font-medium",children:["≈ ",eN.toFixed(6)," ",en]})]})}),(0,a.jsx)(d.P.div,{whileTap:{scale:.98},children:(0,a.jsxs)(g.$,{type:"button",disabled:ew||!!O&&!eP,onClick:ev,className:(0,b.cn)("w-full h-14 font-mono font-bold uppercase tracking-widest text-base relative overflow-hidden group border-0 rounded-none slanted-edge clip-path-polygon","buy"===o?"bg-linear-to-r from-primary to-primary/80 text-primary-foreground":"bg-linear-to-r from-accent to-accent/80 text-accent-foreground"),style:{clipPath:"polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px)"},children:[(0,a.jsx)("div",{className:"absolute inset-0 bg-white/10 translate-y-full group-hover:translate-y-0 transition-transform duration-300"}),(0,a.jsxs)("span",{className:"relative z-10 flex items-center justify-center gap-2",children:[ew&&(0,a.jsx)(j.A,{className:"h-4 w-4 animate-spin"}),O?ek||(ew?"Processing...":`${"buy"===o?"Buy":"Sell"} ${er}`):"Connect Wallet"]})]})}),("success"===J||"success"===Z)&&(0,a.jsx)("div",{className:"p-2.5 rounded-lg border border-green-500/30 bg-green-500/10",children:(0,a.jsxs)("div",{className:"flex items-center gap-2 text-xs text-green-500",children:[(0,a.jsx)(w.A,{className:"h-3.5 w-3.5"}),(0,a.jsx)("span",{children:"market"===i?"Swap successful!":"Order placed!"})]})})]})})}function L(){let e=(0,s.usePathname)(),{isAuthenticated:t,user:r}=(0,n.J)(),{data:i}=(0,h.q)(),[g,y]=(0,f.useState)(!1),[v,j]=(0,f.useState)("buy");(0,f.useEffect)(()=>{y(!1)},[e]);let N=["/home","/markets","/trade","/portfolio","/trending","/profile"].some(t=>e.startsWith(t));if(!t||!N)return null;let w=e.startsWith("/trade/cex"),k=(()=>{if(!e.startsWith("/trade"))return"DEW/USDT";let t=e.split("/"),r=t[3]||t[2];if(!r||"cex"===r||"dex"===r)return"DEW/USDT";if(i){let e=r.replace("_","/").toUpperCase(),t=i.find(t=>t.symbol.toUpperCase()===e);if(t)return t.symbol;let a=i.find(e=>e.baseTokenAddress.toLowerCase()===r.toLowerCase());if(a)return a.symbol}return"DEW/USDT"})(),P=[{label:"Home",href:"/home",icon:c.A,id:"home"},{label:"Markets",href:"/markets",icon:u.A,id:"markets"},{label:"Trade",href:"/trade",icon:m.A,id:"trade"},{label:"Discover",href:"/trending",icon:x.A,id:"discover"},{label:"Assets",href:"/portfolio",icon:p.A,id:"assets"}];return(0,a.jsxs)("div",{className:"md:hidden fixed bottom-0 left-0 right-0 z-50 bg-[#0a0a0c]/85 border-t border-zinc-800/50 backdrop-blur-xl pb-[env(safe-area-inset-bottom)]",children:[(0,a.jsx)("div",{className:"absolute top-0 left-0 right-0 h-px bg-linear-to-r from-transparent via-primary/30 to-transparent"}),g&&w&&(0,a.jsx)("div",{onClick:()=>y(!1),className:"fixed inset-0 bg-black/60 z-[-1]"}),(0,a.jsx)(o.N,{children:g&&w&&(0,a.jsxs)(d.P.div,{initial:{height:0,opacity:0}
1,animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{type:"spring",damping:25,stiffness:220},className:"border-b border-zinc-800 bg-[#0c0d10] overflow-hidden",children:[(0,a.jsx)("div",{className:"flex justify-center pt-2 pb-1 bg-card",children:(0,a.jsx)("div",{className:"w-10 h-1 bg-zinc-800 rounded-full"})}),(0,a.jsx)("div",{className:"max-h-[60vh] overflow-y-auto min-h-0 bg-card",children:(0,a.jsx)($,{pair:k,initialSide:v,onClose:()=>y(!1)})})]})}),w&&(0,a.jsxs)("div",{className:"grid grid-cols-2 gap-2.5 p-3 border-b border-zinc-800/50 bg-[#0d0d0d]/80 backdrop-blur-md",children:[(0,a.jsx)("button",{onClick:()=>{g&&"buy"===v?y(!1):(j("buy"),y(!0))},className:(0,b.cn)("py-3 rounded-xl text-sm font-semibold transition-all shadow-lg cursor-pointer text-center active:scale-[0.97]",g&&"buy"===v?"bg-primary text-primary-foreground shadow-primary/30 ring-2 ring-primary/50":"bg-primary text-primary-foreground hover:bg-primary/95 shadow-primary/20"),children:"Buy"}),(0,a.jsx)("button",{onClick:()=>{g&&"sell"===v?y(!1):(j("sell"),y(!0))},className:(0,b.cn)("py-3 rounded-xl text-sm font-semibold transition-all shadow-lg cursor-pointer text-center active:scale-[0.97]",g&&"sell"===v?"bg-accent text-accent-foreground shadow-accent/30 ring-2 ring-accent/50":"bg-accent text-accent-foreground hover:bg-accent/95 shadow-accent/20"),children:"Sell"})]}),(0,a.jsx)("div",{className:"flex justify-around items-center h-16 px-2 relative",children:P.map(t=>{let r=t.icon,s=!1;return s="/home"===t.href?"/home"===e:"/trade"===t.href?e.startsWith("/trade"):"/portfolio"===t.href?e.startsWith("/portfolio"):"/trending"===t.href?e.startsWith("/trending"):e===t.href,(0,a.jsxs)(l(),{href:t.href,id:`footnav-${t.id}`,className:"flex-1 flex flex-col items-center justify-center h-full relative group",children:[s&&(0,a.jsx)(d.P.div,{layoutId:"activeFootTabGlow",className:"absolute inset-x-2 inset-y-1.5 bg-primary/5 rounded-xl border border-primary/10 shadow-[0_0_15px_rgba(0,192,255,0.05)]",transition:{type:"spring",bounce:.15,duration:.5}}),s&&(0,a.jsx)(d.P.div,{layoutId:"activeFootTabLine",className:"absolute top-0 w-8 h-[2px] bg-primary shadow-[0_0_8px_rgba(0,192,255,0.8)]",transition:{type:"spring",bounce:.15,duration:.5}}),(0,a.jsxs)("div",{className:"flex flex-col items-center gap-0.5 relative z-10",children:[(0,a.jsx)(d.P.div,{whileTap:{scale:.9},className:(0,b.cn)("p-1 rounded-lg transition-colors duration-200",s?"text-primary text-glow-cyan":"text-zinc-500 group-hover:text-zinc-300"),children:(0,a.jsx)(r,{className:"w-5.5 h-5.5"})}),(0,a.jsx)("span",{className:(0,b.cn)("text-[10px] font-mono tracking-wider uppercase font-semibold transition-colors duration-200",s?"text-white font-bold":"text-zinc-500 group-hover:text-zinc-300"),children:t.label})]})]},t.id)})})]})}}},e=>{e.O(0,[9529,2707,7917,8298,4552,7853,6104,5030,8220,470,6405,6705,1618,5455,128,7535,5154,7358],()=>e(e.s=23130)),_N_E=e.O()}]);

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.