import"../chunks/CWj6FrbW.js";import{e as L,p as U,f as y,b as t,c as B,a as R,g,s as $,h as l,u as _,d,n as b,r as v}from"../chunks/BRMnbBOX.js";import{a as W}from"../chunks/CB3MYTwM.js";import{g as j}from"../chunks/DQzkcGy8.js";import{p as s}from"../chunks/Dh6pXF8g.js";import{T as q,a as x}from"../chunks/C1rQHXql.js";var z=o=>o.stopPropagation(),A=y("<!> <!>",1),D=y('<div class="flex h-full min-h-0 flex-col bg-rc-gray-980"><div class="flex-none border-b border-rc-gray-300/40 px-4 pt-3"><!></div> <div class="min-h-0 flex-1"><!></div></div>');function M(o,p){U(p,!0);const u=_(()=>s.url.pathname.split("/").at(-1)==="latency"?"latency":"traces"),w=_(()=>s.url.pathname.startsWith("/view")?"/view":"/traces");function T(a){const m=s.params.conversationId??"",r=s.url.search;return`${l(w)}/conversations/${encodeURIComponent(m)}/${a}${r}`}function C({value:a}){a!=="traces"&&a!=="latency"||a!==l(u)&&j(T(a))}var e=D();e.__click=[z];var n=d(e),P=d(n);q(P,{get value(){return l(u)},ariaLabel:"View conversation tabs",onChange:C,children:(a,m)=>{var r=A(),h=R(r);x(h,{value:"traces",children:(i,V)=>{b();var c=g("Traces");t(i,c)},$$slots:{default:!0}});var I=$(h,2);x(I,{value:"latency",children:(i,V)=>{b();var c=g("Latency");t(i,c)},$$slots:{default:!0}}),t(a,r)},$$slots:{default:!0}}),v(n);var f=$(n,2),k=d(f);W(k,()=>p.children),v(f),v(e),t(o,e),B()}L(["click"]);export{M as component};
