1import{az as w,aA as C,b9 as I,aB as n,aF as l,aI as D,aK as i,aW as T,aX as j,aH as L,aL as f,aP as p,aQ as N,aR as P,aS as V,aO as u}from"./entry._D5pAuIZ.js";import{_ as W}from"./TabItem.BdRPvEcD.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},d=new r.Error().stack;d&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[d]="8973b9d9-260f-4b79-8077-fb0b62c886c4",r._sentryDebugIdIdentifier="sentry-dbid-8973b9d9-260f-4b79-8077-fb0b62c886c4")}catch{}})();const z={class:"flex justify-start"},M=w({__name:"Tabs",props:{tabItems:{},darkerBackground:{type:Boolean,default:!1},fixedWidth:{type:Boolean,default:!1}},emits:["tabItem:click"],setup(r,{emit:d}){const o=r,b=d,v=C(),g=I(),y=n(()=>{var e;return(e=R.value[0])==null?void 0:e.index}),m=n(()=>{var e;return(e=o==null?void 0:o.tabItems)==null?void 0:e.map((a,s)=>({...a,active:"active"in a?a.active:s===y.value}))}),k=e=>e.label.split(" ").join("-"),h=n(()=>o.tabItems.map((e,a)=>({index:a,resolvedRoute:"path"in e?g.resolve(e.path).fullPath:null})).filter(e=>e.resolvedRoute)),_=n(()=>h.value.filter(e=>e.resolvedRoute&&x(e.resolvedRoute))),R=n(()=>[..._.value].sort((a,s)=>c(s.resolvedRoute)-c(a.resolvedRoute))),c=e=>e.split("/").length,x=e=>v.fullPath.includes(e);return(e,a)=>{const s=N,B=W;return u(),l("div",z,[D("ul",{class:i(["flex flex-nowrap md:space-x-6 border border-white rounded-full p-1",e.darkerBackground?"bg-tertiary-background-subtle":"bg-white"])},[(u(!0),l(T,null,j(L(m),t=>(u(),l("li",{key:k(t),class:"flex items-center font-step-1"},[f(B,{to:t.path,active:t.active,onClick:E=>b("tabItem:click",t.label)},{default:p(()=>[f(s,{class:i([{"bg-primary-background-emphasis text-primary-foreground-emphasis":t.active&&!e.darkerBackground,"bg-white text-primary-foreground":!t.active&&!e.darkerBackground,"bg-tertiary-background text-tertiary-foreground":t.active&&e.darkerBackground,"bg-tertiary-background-subtle text-tertiary-foreground":!t.active&&e.darkerBackground,"w-48 justify-center":e.fixedWidth},"font-medium pointer-events-none md:pointer-events-auto"]),stop:!1,variant:"transparent"},{default:p(()=>[P(V(t.label),1)]),_:2},1032,["class"])]),_:2},1032,["to","active","onClick"])]))),128))],2)])}}});export{M as _};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.