%PDF- %PDF-
| Direktori : /home2/rezakur1/ai.rezakurnia.com/zh-router-frontend/dist/assets/ |
| Current File : //home2/rezakur1/ai.rezakurnia.com/zh-router-frontend/dist/assets/UsagePage-DuH5Pnti.js |
import{r as c,a as G,j as e}from"./index-BDMoG-ch.js";import{C as N,a as L,b as _}from"./Card-DCk8Plvl.js";import{B as T}from"./Badge-BO45Wp4q.js";import{B as J}from"./Button-CLtEYZTH.js";import{a as b,c as h,g as z,f as Q}from"./format-CjhWL3Ta.js";import{R as Z,C as ee,X as te,Y as se,T as ae}from"./CartesianChart-XyIc3ea4.js";import{A as le,a as re}from"./AreaChart-fX7sv76g.js";import"./index-CZPP6v8x.js";import"./with-selector-DRFco5vk.js";function ne(a=30){const[r,n]=c.useState(null),[i,l]=c.useState(!0),[p,d]=c.useState(null),u=c.useRef(0),s=c.useCallback(async()=>{const x=++u.current;l(!0),d(null);try{const o=await G(`/me/usage?days=${a}`);if(u.current!==x)return;n(o)}catch(o){if(u.current!==x)return;d(o instanceof Error?o.message:"Gagal memuat penggunaan")}finally{u.current===x&&l(!1)}},[a]);return c.useEffect(()=>{s()},[s]),{data:r,loading:i,error:p,refresh:s}}function ie(a=30,r=50){const[n,i]=c.useState([]),[l,p]=c.useState(!0),[d,u]=c.useState(null),s=c.useCallback(async()=>{let x=!1;return p(!0),G(`/me/usage/requests?days=${a}&limit=${r}`).then(o=>{x||(i(o.requests),u(null))}).catch(o=>{x||u(o.message)}).finally(()=>{x||p(!1)}),()=>{x=!0}},[a,r]);return c.useEffect(()=>{s()},[s]),{requests:n,loading:l,error:d,refresh:s}}const oe=[{value:1,label:"Hari ini"},{value:7,label:"7 hari"},{value:30,label:"30 hari"},{value:90,label:"90 hari"},{value:0,label:"Semua"}],j={requests:{label:"Requests",key:"requests",color:"#3b82f6"},tokens:{label:"Token",key:"total_tokens",color:"#93c5fd"}},ce=[{value:"all",label:"Semua"},{value:"wallet",label:"Dipotong Wallet"},{value:"package",label:"Ditanggung Paket"}],k={clock:"M12 6v6h4.5m4.5 0a9 9 0 11-18 0 9 9 0 0118 0z",refresh:"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",bolt:"M3.75 13.5l10.5-11.25L12 10.5h8.25L9.75 21.75 12 13.5H3.75z",list:"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",key:"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"};function O(a){const r=new Date(`${a}T00:00:00`);return Number.isNaN(r.getTime())?a:new Intl.DateTimeFormat("id-ID",{day:"2-digit",month:"short"}).format(r)}function de({code:a}){return a>=200&&a<300?e.jsx(T,{tone:"success",children:a}):a>=400&&a<500?e.jsx(T,{tone:"warning",children:a}):a>=500?e.jsx(T,{tone:"danger",children:a}):e.jsx(T,{tone:"default",children:a})}function xe({data:a}){const r=a.map(o=>Number(o.requests));if(r.length===0)return null;const n=140,i=44,l=3,p=Math.max(1,...r),d=r.length>1?(n-l*2)/(r.length-1):0,s=r.map((o,C)=>{const g=r.length>1?l+C*d:n/2,w=i-l-o/p*(i-l*2);return`${g.toFixed(1)},${w.toFixed(1)}`}).join(" "),x=`${l},${i-l} ${s} ${n-l},${i-l}`;return e.jsxs("svg",{viewBox:`0 0 ${n} ${i}`,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:x,fill:"url(#sparkFill)"}),e.jsx("polyline",{points:s,fill:"none",stroke:"#3b82f6",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function me({active:a,payload:r,metric:n}){if(!a||!(r!=null&&r.length))return null;const i=r[0].payload,l=j[n],p=Number(i[l.key]??0),d=new Date(`${i.date}T00:00:00`),u=Number.isNaN(d.getTime())?i.date:new Intl.DateTimeFormat("id-ID",{day:"2-digit",month:"short",year:"numeric"}).format(d);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 font-semibold text-white",children:u}),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",style:{background:l.color}}),l.label]}),e.jsx("span",{className:"font-semibold tabular-nums text-white",children:n==="requests"?b(p):h(p)})]})]})}function y({label:a,value:r,hint:n,icon:i,accent:l="text-white"}){return e.jsxs("div",{className:"rounded-xl border border-white/[0.06] bg-white/[0.02] px-3 py-2.5",children:[e.jsxs("div",{className:"flex items-center gap-1.5 text-[10px] font-semibold uppercase tracking-wider text-slate-500",children:[e.jsx("svg",{className:"h-3.5 w-3.5 shrink-0",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.7,children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:i})}),e.jsx("span",{className:"truncate",children:a})]}),e.jsx("p",{className:`mt-1 text-base font-bold tabular-nums ${l}`,children:r}),n&&e.jsx("p",{className:"mt-0.5 text-[10px] leading-snug text-slate-500",children:n})]})}function $({label:a,value:r,hint:n}){return e.jsxs("div",{className:"rounded-lg border border-white/[0.06] bg-white/[0.02] px-3 py-2",children:[e.jsx("p",{className:"text-[10px] font-semibold uppercase tracking-wider text-slate-500",children:a}),e.jsx("p",{className:"mt-0.5 text-sm font-semibold tabular-nums text-white",children:r}),n&&e.jsx("p",{className:"text-[10px] text-slate-500",children:n})]})}function ve(){const[a,r]=c.useState(30),[n,i]=c.useState(50),[l,p]=c.useState("requests"),[d,u]=c.useState("all"),{data:s,loading:x,error:o,refresh:C}=ne(a),{requests:g,loading:w,error:B,refresh:W}=ie(a,n),R=a===0?"semua waktu":a===1?"hari ini":`${a} hari terakhir`,K=x||w,U=()=>{C(),W()},P=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),f=Number((s==null?void 0:s.usage.requests)??0),F=Number((s==null?void 0:s.usage.avg_latency_ms)??0),I=f>0,S=(s==null?void 0:s.daily.length)??0,D=S>0?f/S:0,q=((s==null?void 0:s.daily)??[]).reduce((t,m)=>!t||Number(m.requests)>Number(t.requests)?m:t,null),A=((s==null?void 0:s.detail)??[]).reduce((t,m)=>t+Number(m.requests),0),E=g.filter(t=>Number(t.covered_by_package)!==1).length,V=g.length-E,M=g.filter(t=>d==="all"?!0:d==="package"?Number(t.covered_by_package)===1:Number(t.covered_by_package)!==1),X={all:g.length,wallet:E,package:V},H={className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.7};return e.jsxs("div",{className:"space-y-5",children:[e.jsxs("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-end sm:justify-between",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.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsx("div",{className:"flex items-center gap-1 rounded-xl border border-white/[0.06] bg-white/[0.03] p-1",children:oe.map(t=>e.jsx("button",{onClick:()=>r(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))}),e.jsx(J,{variant:"ghost",size:"sm",onClick:U,isLoading:K,children:"Refresh"})]})]}),x&&!s&&e.jsxs("div",{className:"space-y-5",children:[e.jsx("div",{className:"h-56 animate-pulse rounded-2xl border border-white/[0.04] bg-white/[0.02]"}),e.jsx("div",{className:"h-40 animate-pulse rounded-2xl border border-white/[0.04] bg-white/[0.02]"}),e.jsx("div",{className:"h-80 animate-pulse rounded-2xl border border-white/[0.04] bg-white/[0.02]"})]}),o&&e.jsxs(N,{className:"p-8 text-center text-sm text-red-300",children:["Gagal memuat data penggunaan: ",o]}),s&&e.jsxs(e.Fragment,{children:[e.jsxs(N,{className:"relative overflow-hidden",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 p-5 sm:p-6",children:[e.jsxs("div",{className:"flex flex-wrap 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-[11px] font-semibold uppercase tracking-widest text-brand-300",children:[e.jsx("svg",{...H,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-2 text-4xl font-extrabold tracking-tight tabular-nums text-white sm:text-5xl",children:P.toLocaleString("id-ID")}),e.jsxs("p",{className:"mt-1.5 text-xs text-slate-500",children:["token terpakai · ",R]}),e.jsxs("div",{className:"mt-3 flex flex-wrap items-center gap-x-4 gap-y-1.5 text-[11px] text-slate-400",children:[e.jsxs("span",{children:[e.jsx("span",{className:"font-semibold text-white",children:b(f)})," ","request"]}),e.jsx("span",{className:"text-slate-700",children:"·"}),e.jsxs("span",{children:[e.jsx("span",{className:"font-semibold text-white",children:h(D)})," ","req/hari"]}),e.jsx("span",{className:"text-slate-700",children:"·"}),e.jsxs("span",{children:["latency"," ",e.jsx("span",{className:"font-semibold text-white",children:I?`${h(F)} ms`:"—"})]})]})]}),e.jsx(xe,{data:s.daily})]}),e.jsxs("div",{className:"mt-5 grid grid-cols-2 gap-2.5 sm:grid-cols-3 xl:grid-cols-6",children:[e.jsx(y,{label:"Input",value:h(Number(s.usage.input_tokens)),hint:"token prompt",icon:k.clock}),e.jsx(y,{label:"Cached",value:h(Number(s.usage.cached_tokens)),hint:"token cache",icon:k.refresh,accent:"text-sky-300"}),e.jsx(y,{label:"Output",value:h(Number(s.usage.output_tokens)),hint:"token completion",icon:k.bolt}),e.jsx(y,{label:"Requests",value:b(f),hint:`${h(D)} / hari`,icon:k.list}),e.jsx(y,{label:"Latency",value:I?`${h(F)} ms`:"—",hint:"rata-rata per request",icon:k.clock})]})]})]}),e.jsxs(N,{children:[e.jsx(L,{title:"Tren Pemakaian",subtitle:`Per hari · ${R}`,action:e.jsx("div",{className:"flex rounded-lg border border-white/[0.06] bg-white/[0.02] p-0.5",children:Object.keys(j).map(t=>e.jsx("button",{type:"button",onClick:()=>p(t),className:`rounded-md px-2.5 py-1 text-[11px] font-medium transition-colors ${l===t?"bg-white/[0.08] text-white":"text-slate-500 hover:text-slate-300"}`,children:j[t].label},t))})}),e.jsxs(_,{children:[e.jsxs("div",{className:"mb-4 grid grid-cols-2 gap-2 sm:grid-cols-4",children:[e.jsx($,{label:"Total Request",value:b(f)}),e.jsx($,{label:"Rata-rata/hari",value:h(D),hint:`${S} hari aktif`}),e.jsx($,{label:"Hari Tersibuk",value:q?O(q.date):"—",hint:q?`${b(q.requests)} request`:void 0}),e.jsx($,{label:"Total Token",value:h(P)})]}),s.daily.length===0?e.jsx("div",{className:"flex h-60 items-center justify-center text-sm text-slate-500",children:"Belum ada data penggunaan pada rentang ini."}):e.jsx("div",{className:"h-60 w-full",children:e.jsx(Z,{width:"100%",height:"100%",children:e.jsxs(le,{data:s.daily,margin:{top:4,right:4,left:0,bottom:0},children:[e.jsx("defs",{children:e.jsxs("linearGradient",{id:"usageTrend",x1:"0",y1:"0",x2:"0",y2:"1",children:[e.jsx("stop",{offset:"0%",stopColor:j[l].color,stopOpacity:.35}),e.jsx("stop",{offset:"100%",stopColor:j[l].color,stopOpacity:0})]})}),e.jsx(ee,{strokeDasharray:"3 3",stroke:"rgba(255,255,255,0.05)",vertical:!1}),e.jsx(te,{dataKey:"date",tickFormatter:O,tick:{fill:"#475569",fontSize:10},axisLine:!1,tickLine:!1,minTickGap:24}),e.jsx(se,{tick:{fill:"#475569",fontSize:11},tickFormatter:h,axisLine:!1,tickLine:!1,allowDecimals:!1}),e.jsx(ae,{content:e.jsx(me,{metric:l}),cursor:{stroke:"rgba(255,255,255,0.15)"}}),e.jsx(re,{type:"monotone",dataKey:j[l].key,name:j[l].label,stroke:j[l].color,strokeWidth:2,fill:"url(#usageTrend)"})]})})})]})]}),e.jsxs("div",{className:"grid grid-cols-1 gap-5 xl:grid-cols-2",children:[e.jsxs(N,{children:[e.jsx(L,{title:"Model Terpopuler",subtitle:"Share request & biaya per model"}),e.jsx(_,{className:"space-y-2",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 m=Number(t.requests),v=f>0?m/f*100:0;return e.jsxs("div",{className:"rounded-lg border border-white/[0.04] bg-white/[0.02] px-3 py-2",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 tabular-nums text-slate-400",children:[e.jsx("span",{className:"font-semibold text-white",children:b(m)})," ","req · ",v.toFixed(1),"%"]})]}),e.jsxs("div",{className:"mt-1.5 flex items-center gap-2",children:[e.jsx("div",{className:"h-1.5 flex-1 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-400",style:{width:`${v}%`}})}),e.jsx("span",{className:"w-20 shrink-0 text-right text-[10px] tabular-nums text-slate-500",children:z(Number(t.cost))})]})]},t.model)})})]}),e.jsxs(N,{children:[e.jsx(L,{title:"Per API Key",subtitle:`Pemakaian ${R}`}),e.jsx(_,{className:"space-y-2",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=>{const m=Number(t.requests),v=A>0?m/A*100:0,Y=Number(t.input_tokens)+Number(t.cached_tokens)+Number(t.output_tokens);return e.jsxs("div",{className:"rounded-lg border border-white/[0.04] bg-white/[0.02] px-3 py-2",children:[e.jsxs("div",{className:"flex items-center gap-2.5",children:[e.jsx("div",{className:"flex h-7 w-7 shrink-0 items-center justify-center rounded-lg border border-white/[0.06] bg-white/[0.03] text-brand-300",children:e.jsx("svg",{...H,className:"h-3.5 w-3.5",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:k.key})})}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx("p",{className:"truncate text-xs font-medium text-white",children:t.name}),e.jsx("p",{className:"truncate font-mono text-[10px] text-slate-600",children:t.key_prefix})]}),e.jsxs("div",{className:"hidden text-right sm:block",children:[e.jsxs("p",{className:"text-xs font-semibold tabular-nums text-white",children:[b(m)," req"]}),e.jsxs("p",{className:"text-[10px] tabular-nums text-slate-500",children:[h(Y)," token"]})]}),e.jsxs("div",{className:"text-right",children:[e.jsx("p",{className:"text-xs font-semibold tabular-nums text-white",children:z(Number(t.cost))}),e.jsxs("p",{className:"text-[10px] text-slate-500 sm:hidden",children:[b(m)," req"]})]})]}),e.jsxs("div",{className:"mt-1.5 flex items-center gap-2",children:[e.jsx("div",{className:"h-1 flex-1 overflow-hidden rounded-full bg-white/[0.04]",children:e.jsx("div",{className:"h-full rounded-full bg-brand-400",style:{width:`${v}%`}})}),e.jsxs("span",{className:"w-9 shrink-0 text-right text-[10px] tabular-nums text-slate-500",children:[v.toFixed(0),"%"]})]})]},t.api_key_id)})})]})]})]}),e.jsxs(N,{children:[e.jsx(L,{title:"Log Permintaan",subtitle:`Rincian request ${a===0?"semua waktu":a===1?"hari ini":`${a} hari terakhir`}`,action:e.jsxs("select",{value:n,onChange:t=>i(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(_,{className:"p-0",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-1.5 border-b border-white/[0.06] px-4 py-2.5",children:[ce.map(t=>e.jsxs("button",{type:"button",onClick:()=>u(t.value),className:`rounded-md px-2.5 py-1 text-[11px] font-medium transition-colors ${d===t.value?"bg-white/[0.08] text-white":"text-slate-500 hover:text-slate-300"}`,children:[t.label,e.jsx("span",{className:"ml-1 tabular-nums text-slate-500",children:X[t.value]})]},t.value)),e.jsxs("span",{className:"ml-auto text-[10px] tabular-nums text-slate-500",children:[M.length," dari ",g.length," baris"]})]}),B&&e.jsxs("div",{className:"p-5 text-sm text-red-300",children:["Gagal memuat log: ",B]}),w&&g.length===0?e.jsx("div",{className:"space-y-3 p-5",children:[...Array(5)].map((t,m)=>e.jsx("div",{className:"h-12 animate-pulse rounded-xl bg-white/[0.02]"},m))}):M.length===0?e.jsx("div",{className:"px-5 py-10 text-center text-sm text-slate-500",children:g.length===0?"Belum ada permintaan pada rentang ini.":"Tidak ada permintaan pada filter ini."}):e.jsx("div",{className:"max-h-[560px] overflow-auto",children:e.jsxs("table",{className:"w-full min-w-[900px] text-left text-sm",children:[e.jsx("thead",{className:"sticky top-0 z-10",children:e.jsxs("tr",{className:"border-b border-white/[0.06] bg-ink-800 text-[11px] uppercase tracking-wider text-slate-500",children:[e.jsx("th",{className:"px-5 py-2.5 font-semibold",children:"Waktu"}),e.jsx("th",{className:"px-4 py-2.5 font-semibold",children:"Model"}),e.jsx("th",{className:"px-4 py-2.5 font-semibold",children:"API Key"}),e.jsx("th",{className:"px-4 py-2.5 text-right font-semibold",children:"Total Token"}),e.jsx("th",{className:"px-4 py-2.5 text-right font-semibold",children:"Biaya"}),e.jsx("th",{className:"px-4 py-2.5 text-right font-semibold",children:"Latency"}),e.jsx("th",{className:"px-5 py-2.5 text-right font-semibold",children:"Status"})]})}),e.jsx("tbody",{children:M.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-2.5 text-xs tabular-nums text-slate-400",children:Q(t.created_at)}),e.jsx("td",{className:"px-4 py-2.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-2.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-2.5 text-right font-medium tabular-nums text-slate-300",children:b(t.total_tokens)}),e.jsx("td",{className:"px-4 py-2.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-emerald-400/25 bg-emerald-500/10 px-2 py-0.5 text-[10px] font-medium text-emerald-300",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?z(Number(t.cost)):e.jsx("span",{className:"text-slate-600",children:"—"})}),e.jsx("td",{className:"px-4 py-2.5 text-right tabular-nums text-slate-400",children:t.latency_ms!=null?e.jsxs("span",{className:"text-xs",children:[b(t.latency_ms)," ms"]}):e.jsx("span",{className:"text-xs text-slate-600",children:"—"})}),e.jsx("td",{className:"px-5 py-2.5 text-right",children:e.jsx(de,{code:t.http_status})})]},t.id))})]})})]})]})]})}export{ve as default};