import"../chunks/CWj6FrbW.js";import{o as q}from"../chunks/CwfCwap7.js";import{p as B,e as C,g as H,u as K,h as t,f as S,i as M,j as u,b as o,c as N,$ as O,d as l,s as i,a as U,k as g,l as Y,n as d,r as c}from"../chunks/DhlfkVbH.js";import{i as z}from"../chunks/s_ghFM5S.js";import{g as n}from"../chunks/Kz6TiXE5.js";import{A as F}from"../chunks/B4NkqkLQ.js";import{p as G}from"../chunks/84_D9GGU.js";import{T as J,a as v}from"../chunks/DVdtIo_d.js";import{g as Q}from"../chunks/beLKjDF5.js";import{t as V}from"../chunks/BEJ5fU19.js";var W=S("<!> <!> <!>",1),X=S('<div class="flex h-screen"><!> <div class="flex h-full min-w-0 flex-1 flex-col bg-rc-gray-700 py-2 pr-lg"><nav class="flex h-14 flex-none items-center justify-between bg-rc-gray-700"><div class="flex items-center"><!></div></nav> <div class="flex-1 border-thin border-gray-700 border-rc-gray-300/40 pt-40"><div class="flex h-full items-start justify-center text-rc-gray-200">Select an agent on the left panel to start testing</div></div></div> <!></div>');function ce(P,k){B(k,!0);const{onAgentSelect:R}=Q();let m=C(H([])),r=C(!1);const $="bosun-sidebar-collapsed",h=Y(()=>G.url.pathname.split("/")[1]);function j({value:e}){if(e!==t(h))return e==="traces"?n("/traces"):e==="roleplay"?n("/roleplay"):e==="tests"?n("/tests"):n(`/${e}`)}function E(e){R(e),n(`/tests/${encodeURIComponent(e)}`)}q(async()=>{if(typeof window<"u"){const e=window.localStorage.getItem($);e!==null&&u(r,e==="true")}u(m,await V.agents.list.query(),!0)}),K(()=>{typeof window>"u"||window.localStorage.setItem($,t(r)?"true":"false")});var f=X();M(e=>{O.title="Recombine Agents Hub: Tests"});var b=l(f);F(b,{className:"flex-none",get agents(){return t(m)},currentAgent:"",onAgentClick:E,onToggle:()=>u(r,!t(r)),get isCollapsed(){return t(r)}});var p=i(b,2),x=l(p),_=l(x),I=l(_);J(I,{get value(){return t(h)},ariaLabel:"Top tabs",onChange:j,children:(e,Z)=>{var y=W(),w=U(y);v(w,{value:"roleplay",children:(a,A)=>{d();var s=g("Roleplay");o(a,s)},$$slots:{default:!0}});var T=i(w,2);v(T,{value:"tests",children:(a,A)=>{d();var s=g("Tests");o(a,s)},$$slots:{default:!0}});var D=i(T,2);v(D,{value:"traces",children:(a,A)=>{d();var s=g("Traces");o(a,s)},$$slots:{default:!0}}),o(e,y)},$$slots:{default:!0}}),c(_),c(x),d(2),c(p);var L=i(p,2);z(L,e=>{}),c(f),o(P,f),N()}export{ce as component};
