1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7467],{95702:(e,t,a)=>{var s=a(42186);a.o(s,"useParams")&&a.d(t,{useParams:function(){return s.useParams}}),a.o(s,"usePathname")&&a.d(t,{usePathname:function(){return s.usePathname}}),a.o(s,"useRouter")&&a.d(t,{useRouter:function(){return s.useRouter}}),a.o(s,"useSearchParams")&&a.d(t,{useSearchParams:function(){return s.useSearchParams}})},97467:(e,t,a)=>{a.r(t),a.d(t,{default:()=>x});var s=a(80069),l=a(95702),n=a(20801),c=a(66926),i=a(34733);function r(e){let{label:t,value:a,isHash:l=!1,clickableUrl:n,onCopy:c}=e;return(0,s.jsxs)("div",{className:"flex items-center gap-6",children:[(0,s.jsx)("div",{className:"flex flex-col gap-1.5 w-[48px]",children:(0,s.jsx)("span",{className:"text-base text-text-light font-medium leading-[21px]",children:t})}),n?(0,s.jsx)("a",{href:n,target:"_blank",rel:"noopener noreferrer",className:"text-base font-medium text-[#2EBD85] leading-[21px] text-left hover:opacity-80 transition-opacity cursor-pointer underline decoration-dotted decoration-0.5 underline-offset-2",children:a}):l?(0,s.jsx)("button",{onClick:()=>null==c?void 0:c(a),className:"text-base font-medium text-[#2EBD85] leading-[21px] text-left hover:opacity-80 transition-opacity",children:a}):(0,s.jsx)("span",{className:"text-base font-medium text-text-dark leading-[21px] text-left",children:a})]})}function o(){return(0,s.jsx)("div",{className:"h-[1px] bg-panel-border-color w-full"})}function x(){let{t:e}=(0,c.Bd)(),t=(0,l.useParams)(),[a,x]=(0,n.useState)(null),[d,u]=(0,n.use
1State)(!0),h=t.hash;(0,n.useEffect)(()=>{if(!h)return void u(!1);(async()=>{u(!0);try{let e=await fetch("".concat("https://api.xstable.ai/","api/v1/orders/chain?txHash=").concat(encodeURIComponent(h)),{headers:{"Content-Type":"application/json"}});if(!e.ok)return void x(null);let t=await e.json();if(!t.data)return void x(null);let{data:a}=t,s=a.symbol.split("/")[0],l=(0,i.Ey)(a.chainBlockTime,"/");x({hash:a.txHash,block:a.chainSlot.toString(),time:l,user:a.userAccount,side:a.side,priceValue:a.price,quantity:a.quantity,token:s,chainNet:a.chainEnv,symbol:a.symbol})}catch(e){console.error("Failed to fetch transaction details:",e),x(null)}finally{u(!1)}})()},[h]);let m=h||(null==a?void 0:a.hash)||"";return(0,s.jsx)("div",{className:"w-full h-screen bg-main-background px-4 py-6 md:px-6 md:py-8",children:(0,s.jsx)("div",{className:"max-w-[1284px] mx-auto",children:(0,s.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,s.jsx)("h1",{className:"text-base text-text-light font-medium leading-[21px]",children:e("tx.transaction_details")}),(0,s.jsx)("p",{className:"text-2xl md:text-3xl text-text-dark font-semibold leading-[38px]",children:e("tx.hash_prefix",{hash:m?m.length<=12?m:"".concat(m.slice(0,6),"...").concat(m.slice(-4)):""})})]}),d?(0,s.jsx)("div",{className:"flex items-center justify-center py-20",children:(0,s.jsx)("div",{className:"text-text-light",children:e("tx.loading")})}):a?(0,s.jsxs)("div",{className:"bg-tx-background rounded-2xl p-6",children:[(0,s.jsx)("h2",{className:"text-2xl text-text-dark font-semibold leading-[37px] mb-4",children:e("partner.overview")}),(0,s.jsxs)("div",{className:"flex flex-col gap-5",children:[(0,s.jsx)(r,{label:e("tx.hash"),value:a.hash,clickableUrl:((e,t)=>{let a="https://solscan.io/tx/".concat(e);return"devnet"===t||"testnet"===t?"".concat(a,"?cluster=").concat(t):a})(a.hash,a.chainNet)}),(0,s.jsx)(o,{}),(0,s.jsx)(r,{label:e("tx.block"),value:a.block,clickableUrl:((e,t)=>{let a="https://solscan.io/block/".concat(e);return"devnet"===t||"testnet"===t?"".concat(a,"?cluster=").concat(t):a})(a.block,a.chainNet)}),(0,s.jsx)(o,{}),(0,s.jsx)(r,{label:e("trade.time"),value:a.time}),(0,s.jsx)(o,{}),(0,s.jsx)(r,{label:e("tx.action"),value:e("trade.".concat(a.side))}),(0,s.jsx)(o,{}),(0,s.jsx)(r,{label:e("trade.price"),value:"".concat((0,i.tu)(a.priceValue)," USD")}),(0,s.jsx)(o,{}),(0,s.jsx)(r,{label:e("tx.size"),value:"".concat((0,i.HD)(a.quantity,4)," ").concat(a.token)})]})]}):(0,s.jsx)("div",{className:"text-center py-20 text-text-light",children:e("tx.not_found")})]})})})}}}]);
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.