import{t as g}from"../chunks/BEJ5fU19.js";import"../chunks/CWj6FrbW.js";import{p as b,f as h,t as p,b as v,c as y,s as u,d as s,r as o}from"../chunks/DOPisAOl.js";import{s as f}from"../chunks/Xc3_nZLd.js";import{s as P}from"../chunks/CGcWBEH0.js";import{P as w}from"../chunks/D-PR_7HR.js";const j=async({params:i,url:e})=>{const{agent:r,type:t,id:a}=i,n=e.searchParams.get("ts")||void 0,c=Number(e.searchParams.get("run"))||void 0,l=g.tests.resultEntry.query({agent:r,testId:a,resultKey:t,timestamp:n,index:c});return{title:(t==null?void 0:t.replace(/-/g," "))??"Details",id:a,content:l}},K=Object.freeze(Object.defineProperty({__proto__:null,load:j},Symbol.toStringTag,{value:"Module"}));var O=h('<div class="max-h-[calc(100vh-10rem)] overflow-auto p-4"><pre class="whitespace-pre-wrap text-sm text-gray-100"> </pre></div>'),S=h('<div class="space-y-4 px-4 py-6"><div class="flex items-center justify-between"><h1 class="text-2xl font-semibold"> </h1> <a class="text-rc-green-400 hover:underline">&larr; Back</a></div> <!></div>');function M(i,e){b(e,!0);var r=S(),t=s(r),a=s(t),n=s(a,!0);o(a);var c=u(a,2);o(t);var l=u(t,2);w(l,{class:"overflow-hidden p-0",children:(_,k)=>{var d=O(),m=s(d),x=s(m,!0);o(m),o(d),p(()=>f(x,e.data.content)),v(_,d)}}),o(r),p(()=>{f(n,e.data.title),P(c,"href",`/tests/${e.params.agent}`)}),v(i,r),y()}export{M as component,K as universal};
