%PDF- %PDF-
| Direktori : /home2/rezakur1/ai.rezakurnia.com/assets/ |
| Current File : /home2/rezakur1/ai.rezakurnia.com/assets/UsagePage-CktEFrzd.js |
import{r as x,c as q,j as e}from"./index-_MR6QBUm.js";import{C as p,h as j,d as b,e as f,a as y,b as T}from"./format-DuRu6B7q.js";import{B as g}from"./Badge-MEsxA8Zk.js";import{R as I,C as $,X as C,Y as w,T as D}from"./CartesianChart-Bopnyt2O.js";import{B as M,a as L}from"./BarChart-drAdbAdE.js";import"./index-B2yPAbM9.js";import"./with-selector-MR6Hz0w7.js";function R(a=30){const[l,r]=x.useState(null),[n,s]=x.useState(!0),[u,o]=x.useState(null);return x.useEffect(()=>{let d=!1;return s(!0),o(null),q(`/me/usage?days=${a}`).then(c=>{d||r(c)}).catch(c=>{d||o(c.message)}).finally(()=>{d||s(!1)}),()=>{d=!0}},[a]),{data:l,loading:n,error:u}}function z(a=30,l=50){const[r,n]=x.useState([]),[s,u]=x.useState(!0),[o,d]=x.useState(null),c=x.useCallback(async()=>{let m=!1;return u(!0),q(`/me/usage/requests?days=${a}&limit=${l}`).then(i=>{m||(n(i.requests),d(null))}).catch(i=>{m||d(i.message)}).finally(()=>{m||u(!1)}),()=>{m=!0}},[a,l]);return x.useEffect(()=>{c()},[c]),{requests:r,loading:s,error:o,refresh:c}}function B({code:a}){return a>=200&&a<300?e.jsx(g,{tone:"success",children:a}):a>=400&&a<500?e.jsx(g,{tone:"warning",children:a}):a>=500?e.jsx(g,{tone:"danger",children:a}):e.jsx(g,{tone:"default",children:a})}function A({data:a}){const l=a.map(i=>Number(i.requests));if(l.length===0)return null;const r=140,n=44,s=3,u=Math.max(1,...l),o=l.length>1?(r-s*2)/(l.length-1):0,c=l.map((i,N)=>{const k=l.length>1?s+N*o:r/2,v=n-s-i/u*(n-s*2);return`${k.toFixed(1)},${v.toFixed(1)}`}).join(" "),m=`${s},${n-s} ${c} ${r-s},${n-s}`;return e.jsxs("svg",{viewBox:`0 0 ${r} ${n}`,className:"h-11 w-36 shrink-0",children:[e.jsx("defs",{children:e.jsxs("linearGradient",{id:"sparkFill",x1:"0",y1:"0",x2:"0",y2:"1",children:[e.jsx("stop",{offset:"0%",stopColor:"#3b82f6",stopOpacity:.35}),e.jsx("stop",{offset:"100%",stopColor:"#3b82f6",stopOpacity:0})]})}),e.jsx("polygon",{points:m,fill:"url(#sparkFill)"}),e.jsx("polyline",{points:c,fill:"none",stroke:"#3b82f6",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}const P=[{value:7,label:"7 hari"},{value:30,label:"30 hari"},{value:90,label:"90 hari"},{value:0,label:"Semua"}];function F({active:a,payload:l}){if(!a||!(l!=null&&l.length))return null;const r=l[0].payload,n=new Date(`${r.date}T00:00:00`),s=Number.isNaN(n.getTime())?r.date:new Intl.DateTimeFormat("id-ID",{day:"2-digit",month:"short",year:"numeric"}).format(n);return e.jsxs("div",{className:"rounded-xl border border-white/[0.08] bg-ink-900 px-3.5 py-2.5 text-xs shadow-modal",children:[e.jsx("p",{className:"mb-1.5 font-semibold text-white",children:s}),e.jsxs("div",{className:"space-y-1",children:[e.jsxs("p",{className:"flex items-center justify-between gap-6 text-slate-400",children:[e.jsxs("span",{className:"flex items-center gap-1.5",children:[e.jsx("span",{className:"h-2 w-2 rounded-full bg-blue-500"}),"Requests"]}),e.jsx("span",{className:"font-semibold tabular-nums text-white",children:r.requests.toLocaleString("id-ID")})]}),e.jsxs("p",{className:"flex items-center justify-between gap-6 text-slate-400",children:[e.jsxs("span",{className:"flex items-center gap-1.5",children:[e.jsx("span",{className:"h-2 w-2 rounded-full bg-blue-300"}),"Total token"]}),e.jsx("span",{className:"font-semibold tabular-nums text-white",children:r.total_tokens.toLocaleString("id-ID")})]})]})]})}function V(){const[a,l]=x.useState(30),[r,n]=x.useState(50),{data:s,loading:u,error:o}=R(a),{requests:d,loading:c,error:m}=z(a,r),i={className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.7},N=Number((s==null?void 0:s.usage.input_tokens)??0)+Number((s==null?void 0:s.usage.cached_tokens)??0)+Number((s==null?void 0:s.usage.output_tokens)??0),k=Number((s==null?void 0:s.usage.avg_latency_ms)??0),v=Number((s==null?void 0:s.usage.requests)??0)>0,_=Math.max(1,...(s==null?void 0:s.models.map(t=>Number(t.requests)))??[1]);return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-4",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"text-xl font-bold tracking-tight text-white sm:text-2xl",children:"Penggunaan"}),e.jsx("p",{className:"mt-1 text-sm text-slate-500",children:"Pemakaian request, token, biaya & latency pada akun Anda."})]}),e.jsx("div",{className:"flex items-center gap-1 rounded-xl border border-white/[0.06] bg-white/[0.03] p-1",children:P.map(t=>e.jsx("button",{onClick:()=>l(t.value),className:`rounded-lg px-3.5 py-1.5 text-xs font-medium transition-colors ${a===t.value?"bg-white/[0.08] text-white":"text-slate-500 hover:text-slate-300"}`,children:t.label},t.value))})]}),u&&!s&&e.jsx("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2 xl:grid-cols-4",children:[...Array(4)].map((t,h)=>e.jsx("div",{className:"h-28 animate-pulse rounded-2xl border border-white/[0.04] bg-white/[0.02]"},h))}),o&&e.jsxs(p,{className:"p-8 text-center text-sm text-red-300",children:["Gagal memuat data penggunaan: ",o]}),s&&e.jsxs(e.Fragment,{children:[e.jsxs(p,{className:"relative overflow-hidden p-6 sm:p-7",children:[e.jsx("div",{className:"pointer-events-none absolute inset-0 bg-[radial-gradient(ellipse_55%_65%_at_85%_-10%,rgba(59,130,246,0.12),transparent)]"}),e.jsxs("div",{className:"relative flex flex-col gap-6",children:[e.jsxs("div",{className:"flex items-start justify-between gap-6",children:[e.jsxs("div",{className:"min-w-0",children:[e.jsxs("p",{className:"flex items-center gap-2 text-xs font-semibold uppercase tracking-widest text-brand-300",children:[e.jsx("svg",{...i,className:"h-4 w-4",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.813 15.904L9 18.75l-.813-2.846a4.5 4.5 0 00-3.09-3.09L2.25 12l2.846-.813a4.5 4.5 0 003.09-3.09L9 5.25l.813 2.846a4.5 4.5 0 003.09 3.09L15.75 12l-2.846.813a4.5 4.5 0 00-3.09 3.09zM18.259 8.715L18 9.75l-.259-1.035a3.375 3.375 0 00-2.455-2.456L14.25 6l1.036-.259a3.375 3.375 0 002.455-2.456L18 2.25l.259 1.035a3.375 3.375 0 002.456 2.456L21.75 6l-1.035.259a3.375 3.375 0 00-2.456 2.456z"})}),"Total Token"]}),e.jsx("p",{className:"mt-3 text-4xl font-extrabold tracking-tight tabular-nums text-white sm:text-5xl",children:N.toLocaleString("id-ID")}),e.jsxs("p",{className:"mt-2 text-xs text-slate-500",children:["token terpakai ·"," ",a===0?"semua waktu":`${a} hari terakhir`]})]}),e.jsx(A,{data:s.daily})]}),e.jsxs("div",{className:"grid grid-cols-1 divide-y divide-white/[0.06] border-t border-white/[0.06] pt-6 sm:grid-cols-3 sm:divide-x sm:divide-y-0",children:[e.jsxs("div",{className:"flex items-center gap-4 py-4 sm:py-0 sm:pr-6",children:[e.jsx("div",{className:"flex h-11 w-11 shrink-0 items-center justify-center rounded-xl border border-white/[0.06] bg-white/[0.03] text-brand-300",children:e.jsx("svg",{...i,children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6v6h4.5m4.5 0a9 9 0 11-18 0 9 9 0 0118 0z"})})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("p",{className:"text-xs text-slate-500",children:"Input Tokens"}),e.jsx("p",{className:"mt-0.5 text-xl font-bold tabular-nums text-white",children:Number(s.usage.input_tokens).toLocaleString("id-ID")})]})]}),e.jsxs("div",{className:"flex items-center gap-4 py-4 sm:py-0 sm:px-6",children:[e.jsx("div",{className:"flex h-11 w-11 shrink-0 items-center justify-center rounded-xl border border-white/[0.06] bg-white/[0.03] text-brand-300",children:e.jsx("svg",{...i,children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0l3.181 3.183a8.25 8.25 0 0013.803-3.7l4.029-1.523a.75.75 0 01.93.539v.011a.75.75 0 01-.539.93l-4.029 1.523a8.25 8.25 0 01-13.803 3.7l-3.182-3.182v-.001z"})})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("p",{className:"text-xs text-slate-500",children:"Cached Tokens"}),e.jsx("p",{className:"mt-0.5 text-xl font-bold tabular-nums text-white",children:Number(s.usage.cached_tokens).toLocaleString("id-ID")})]})]}),e.jsxs("div",{className:"flex items-center gap-4 py-4 sm:py-0 sm:pl-6",children:[e.jsx("div",{className:"flex h-11 w-11 shrink-0 items-center justify-center rounded-xl border border-white/[0.06] bg-white/[0.03] text-brand-300",children:e.jsx("svg",{...i,children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 13.5l10.5-11.25L12 10.5h8.25L9.75 21.75 12 13.5H3.75z"})})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("p",{className:"text-xs text-slate-500",children:"Output Tokens"}),e.jsx("p",{className:"mt-0.5 text-xl font-bold tabular-nums text-white",children:Number(s.usage.output_tokens).toLocaleString("id-ID")})]})]}),e.jsxs("div",{className:"flex items-center gap-4 py-4 sm:py-0 sm:pr-6",children:[e.jsx("div",{className:"flex h-11 w-11 shrink-0 items-center justify-center rounded-xl border border-white/[0.06] bg-white/[0.03] text-brand-300",children:e.jsx("svg",{...i,children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 6.75h12M8.25 12h12m-12 5.25h12M3.75 6.75h.007v.008H3.75V6.75zm.375 0a.375.375 0 11-.75 0 .375.375 0 01.75 0zM3.75 12h.007v.008H3.75V12zm.375 0a.375.375 0 11-.75 0 .375.375 0 01.75 0zm-.375 5.25h.007v.008H3.75v-.008zm.375 0a.375.375 0 11-.75 0 .375.375 0 01.75 0z"})})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("p",{className:"text-xs text-slate-500",children:"Requests"}),e.jsx("p",{className:"mt-0.5 text-xl font-bold tabular-nums text-white",children:s.usage.requests.toLocaleString("id-ID")})]})]}),e.jsxs("div",{className:"flex items-center gap-4 py-4 sm:py-0 sm:px-6",children:[e.jsx("div",{className:"flex h-11 w-11 shrink-0 items-center justify-center rounded-xl border border-white/[0.06] bg-white/[0.03] text-brand-300",children:e.jsx("svg",{...i,children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 8.25h19.5m-16.5.75h12a2.25 2.25 0 012.25 2.25v3a2.25 2.25 0 01-2.25 2.25h-12A2.25 2.25 0 012.25 14.25v-3a2.25 2.25 0 012.25-2.25z"})})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("p",{className:"text-xs text-slate-500",children:"Total Biaya"}),e.jsx("p",{className:"mt-0.5 text-xl font-bold tabular-nums text-white",children:j(Number(s.usage.cost))})]})]}),e.jsxs("div",{className:"flex items-center gap-4 py-4 sm:py-0 sm:pl-6",children:[e.jsx("div",{className:"flex h-11 w-11 shrink-0 items-center justify-center rounded-xl border border-white/[0.06] bg-white/[0.03] text-brand-300",children:e.jsx("svg",{...i,children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6v6h4.5m4.5 0a9 9 0 11-18 0 9 9 0 0118 0z"})})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("p",{className:"text-xs text-slate-500",children:"Latency Rata-rata"}),e.jsx("p",{className:"mt-0.5 text-xl font-bold tabular-nums text-white",children:v?`${k.toLocaleString("id-ID")} ms`:"—"})]})]})]})]})]}),e.jsxs(p,{children:[e.jsx(b,{title:"Tren Pemakaian",subtitle:`Requests & token per hari (${a===0?"semua waktu":`${a} hari terakhir`})`}),e.jsx(f,{children:s.daily.length===0?e.jsx("div",{className:"flex h-64 items-center justify-center text-sm text-slate-500",children:"Belum ada data penggunaan pada rentang ini."}):e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"mb-4 flex items-center gap-5 text-xs text-slate-400",children:[e.jsxs("span",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"inline-block h-2 w-2 rounded-full bg-blue-500"}),"Requests"]}),e.jsxs("span",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"inline-block h-2 w-2 rounded-sm bg-blue-300"}),"Total token"]})]}),e.jsx("div",{className:"h-64 w-full",children:e.jsx(I,{width:"100%",height:"100%",children:e.jsxs(M,{data:s.daily,margin:{top:4,right:4,left:0,bottom:0},barGap:2,barCategoryGap:0,children:[e.jsxs("defs",{children:[e.jsxs("linearGradient",{id:"barReq",x1:"0",y1:"0",x2:"0",y2:"1",children:[e.jsx("stop",{offset:"0%",stopColor:"#3b82f6"}),e.jsx("stop",{offset:"100%",stopColor:"#1d4ed8"})]}),e.jsxs("linearGradient",{id:"barTok",x1:"0",y1:"0",x2:"0",y2:"1",children:[e.jsx("stop",{offset:"0%",stopColor:"#93c5fd"}),e.jsx("stop",{offset:"100%",stopColor:"#60a5fa"})]})]}),e.jsx($,{strokeDasharray:"3 3",stroke:"rgba(255,255,255,0.05)",vertical:!1}),e.jsx(C,{dataKey:"date",tickFormatter:t=>{const h=new Date(`${t}T00:00:00`);return Number.isNaN(h.getTime())?t:new Intl.DateTimeFormat("id-ID",{day:"2-digit",month:"short"}).format(h)},tick:{fill:"#475569",fontSize:10},axisLine:!1,tickLine:!1,minTickGap:24}),e.jsx(w,{yAxisId:"req",tick:{fill:"#475569",fontSize:11},tickFormatter:y,axisLine:!1,tickLine:!1}),e.jsx(w,{yAxisId:"tok",orientation:"right",tick:{fill:"#475569",fontSize:11},tickFormatter:y,axisLine:!1,tickLine:!1}),e.jsx(D,{content:e.jsx(F,{}),cursor:{fill:"rgba(255,255,255,0.04)",radius:6}}),e.jsx(L,{yAxisId:"req",dataKey:"requests",name:"Requests",fill:"url(#barReq)",radius:[5,5,0,0],maxBarSize:18}),e.jsx(L,{yAxisId:"tok",dataKey:"total_tokens",name:"Total token",fill:"url(#barTok)",radius:[5,5,0,0],maxBarSize:18})]})})})]})})]}),e.jsxs("div",{className:"grid grid-cols-1 gap-6 xl:grid-cols-2",children:[e.jsxs(p,{children:[e.jsx(b,{title:"Model Terpopuler",subtitle:"Berdasarkan jumlah request"}),e.jsx(f,{className:"space-y-3",children:s.models.length===0?e.jsx("p",{className:"py-8 text-center text-sm text-slate-500",children:"Belum ada data model."}):s.models.slice(0,6).map(t=>{const h=Number(t.requests),S=Math.round(h/_*100);return e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center justify-between gap-3 text-xs",children:[e.jsx("span",{className:"truncate font-mono text-slate-200",children:t.model}),e.jsxs("span",{className:"shrink-0 text-slate-400",children:[e.jsx("span",{className:"font-semibold tabular-nums text-white",children:h})," ","req · ",j(Number(t.cost))]})]}),e.jsx("div",{className:"mt-1.5 h-1.5 w-full overflow-hidden rounded-full bg-white/[0.04]",children:e.jsx("div",{className:"h-full rounded-full bg-gradient-to-r from-blue-500 to-blue-600",style:{width:`${S}%`}})})]},t.model)})})]}),e.jsxs(p,{children:[e.jsx(b,{title:"Per API Key",subtitle:`Pemakaian ${a===0?"semua waktu":`${a} hari terakhir`}`}),e.jsx(f,{className:"space-y-2.5",children:s.detail.length===0?e.jsx("p",{className:"py-8 text-center text-sm text-slate-500",children:"Belum ada pemakaian."}):s.detail.map(t=>e.jsxs("div",{className:"flex items-center gap-3 rounded-xl border border-white/[0.04] bg-white/[0.02] px-4 py-3",children:[e.jsx("div",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-lg border border-white/[0.06] bg-white/[0.03] text-brand-300",children:e.jsx("svg",{...i,className:"h-4 w-4",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 5.25a3 3 0 013 3m3 0a6 6 0 01-7.029 5.912c-.563-.097-1.159.026-1.563.43L10.5 17.25H8.25v2.25H6v2.25H2.25v-2.818c0-.597.237-1.17.659-1.591l6.499-6.499c.404-.404.527-1 .43-1.563A6 6 0 1121.75 8.25z"})})}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx("p",{className:"truncate text-sm font-medium text-white",children:t.name}),e.jsx("p",{className:"truncate font-mono text-[11px] text-slate-600",children:t.key_prefix})]}),e.jsxs("div",{className:"hidden text-right sm:block",children:[e.jsx("p",{className:"text-xs text-slate-500",children:"Requests"}),e.jsx("p",{className:"text-sm font-semibold tabular-nums text-white",children:t.requests})]}),e.jsxs("div",{className:"hidden text-right md:block",children:[e.jsx("p",{className:"text-xs text-slate-500",children:"Token"}),e.jsx("p",{className:"text-sm font-semibold tabular-nums text-white",children:(Number(t.input_tokens)+Number(t.cached_tokens)+Number(t.output_tokens)).toLocaleString("id-ID")})]}),e.jsxs("div",{className:"text-right",children:[e.jsx("p",{className:"text-xs text-slate-500",children:"Biaya"}),e.jsx("p",{className:"text-sm font-semibold tabular-nums text-white",children:j(Number(t.cost))})]})]},t.api_key_id))})]})]})]}),e.jsxs(p,{children:[e.jsx(b,{title:"Log Permintaan",subtitle:`Rincian request ${a===0?"semua waktu":`${a} hari terakhir`}`,action:e.jsx("div",{className:"flex items-center gap-2",children:e.jsxs("select",{value:r,onChange:t=>n(Number(t.target.value)),className:"input-solid w-auto px-3 py-1.5 text-xs",children:[e.jsx("option",{value:50,children:"50 baris"}),e.jsx("option",{value:100,children:"100 baris"}),e.jsx("option",{value:200,children:"200 baris"})]})})}),e.jsxs(f,{className:"p-0",children:[m&&e.jsxs("div",{className:"p-5 text-sm text-red-300",children:["Gagal memuat log: ",m]}),c&&d.length===0?e.jsx("div",{className:"space-y-3 p-5",children:[...Array(5)].map((t,h)=>e.jsx("div",{className:"h-12 animate-pulse rounded-xl bg-white/[0.02]"},h))}):d.length===0?e.jsx("div",{className:"px-5 py-10 text-center text-sm text-slate-500",children:"Belum ada permintaan pada rentang ini."}):e.jsx("div",{className:"overflow-x-auto",children:e.jsxs("table",{className:"w-full min-w-[900px] text-left text-sm",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"border-b border-white/[0.06] bg-white/[0.02] text-[11px] uppercase tracking-wider text-slate-500",children:[e.jsx("th",{className:"px-5 py-3 font-semibold",children:"Waktu"}),e.jsx("th",{className:"px-4 py-3 font-semibold",children:"Model"}),e.jsx("th",{className:"px-4 py-3 font-semibold",children:"API Key"}),e.jsx("th",{className:"px-4 py-3 text-right font-semibold",children:"Total Token"}),e.jsx("th",{className:"px-4 py-3 text-right font-semibold",children:"Biaya"}),e.jsx("th",{className:"px-4 py-3 text-right font-semibold",children:"Latency"}),e.jsx("th",{className:"px-5 py-3 text-right font-semibold",children:"Status"})]})}),e.jsx("tbody",{children:d.map(t=>e.jsxs("tr",{className:"border-b border-white/[0.04] transition-colors last:border-0 hover:bg-white/[0.02]",children:[e.jsx("td",{className:"px-5 py-3.5 text-xs tabular-nums text-slate-400",children:T(t.created_at)}),e.jsx("td",{className:"px-4 py-3.5",children:t.model?e.jsx("span",{className:"font-mono text-xs text-slate-200",children:t.model}):e.jsx("span",{className:"text-xs text-slate-600",children:"—"})}),e.jsxs("td",{className:"px-4 py-3.5",children:[e.jsx("p",{className:"text-xs font-medium text-slate-200",children:t.key_name}),e.jsx("p",{className:"font-mono text-[11px] text-slate-600",children:t.key_prefix})]}),e.jsx("td",{className:"px-4 py-3.5 text-right font-medium tabular-nums text-slate-300",children:t.total_tokens.toLocaleString("id-ID")}),e.jsx("td",{className:"px-4 py-3.5 text-right font-medium tabular-nums text-slate-300",children:Number(t.covered_by_package)===1?e.jsxs("span",{title:"Request ditanggung paket aktif — tidak ada biaya wallet",className:"inline-flex items-center gap-1 rounded-full border border-brand-400/25 bg-brand-500/10 px-2 py-0.5 text-[10px] font-medium text-brand-200",children:[e.jsx("svg",{className:"h-3 w-3",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),"Paket"]}):t.cost!=null?j(Number(t.cost)):e.jsx("span",{className:"text-slate-600",children:"—"})}),e.jsx("td",{className:"px-4 py-3.5 text-right tabular-nums text-slate-400",children:t.latency_ms!=null?e.jsxs("span",{className:"text-xs",children:[t.latency_ms.toLocaleString("id-ID")," ms"]}):e.jsx("span",{className:"text-xs text-slate-600",children:"—"})}),e.jsx("td",{className:"px-5 py-3.5 text-right",children:e.jsx(B,{code:t.http_status})})]},t.id))})]})})]})]})]})}export{V as default};