import"../chunks/CWj6FrbW.js";import{o as D}from"../chunks/x2n8lXq-.js";import{p as U,u as B,g as o,e as H,f as S,h as K,i as C,b as n,c as M,$ as N,d as l,s as i,a as O,j as v,k as Y,n as d,r as c}from"../chunks/DOPisAOl.js";import{i as q}from"../chunks/DWnVehjo.js";import{g as f}from"../chunks/BxniC1kI.js";import{A as z}from"../chunks/BsZvu73I.js";import{p as F}from"../chunks/BiKOfkaT.js";import{T as G,a as m}from"../chunks/BK4X32_X.js";import{g as J}from"../chunks/BhT-mCxl.js";var Q=S("<!> <!> <!>",1),V=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 ne(P,$){U($,!0);const{onAgentSelect:R}=J();let t=H(!1);const h="bosun-sidebar-collapsed",b=Y(()=>F.url.pathname.split("/")[1]);function j(e){R(e);const[g,a]=(e||"").split("/");g&&a&&f(`/tests/${encodeURIComponent(g)}/${encodeURIComponent(a)}`)}function k({value:e}){if(e!==o(b)){if(e==="traces")return f("/traces");if(e==="roleplay")return f("/roleplay");f(`/${e}`)}}D(()=>{if(typeof window<"u"){const e=window.localStorage.getItem(h);e!==null&&C(t,e==="true")}}),B(()=>{typeof window>"u"||window.localStorage.setItem(h,o(t)?"true":"false")});var p=V();K(e=>{N.title="Recombine Agents Hub: Tests"});var x=l(p);z(x,{className:"flex-none",get agents(){return $.data.agents},currentAgent:"",onAgentClick:j,onToggle:()=>C(t,!o(t)),get isCollapsed(){return o(t)}});var u=i(x,2),_=l(u),y=l(_),I=l(y);G(I,{get value(){return o(b)},ariaLabel:"Top tabs",onChange:k,children:(e,g)=>{var a=Q(),T=O(a);m(T,{value:"roleplay",children:(r,A)=>{d();var s=v("Roleplay");n(r,s)},$$slots:{default:!0}});var w=i(T,2);m(w,{value:"tests",children:(r,A)=>{d();var s=v("Tests");n(r,s)},$$slots:{default:!0}});var L=i(w,2);m(L,{value:"traces",children:(r,A)=>{d();var s=v("Traces");n(r,s)},$$slots:{default:!0}}),n(e,a)},$$slots:{default:!0}}),c(y),c(_),d(2),c(u);var E=i(u,2);q(E,e=>{}),c(p),n(P,p),M()}export{ne as component};
