1import{f as k,e as y,u as x}from"./vendor-vue-BIDZeepx.js";import{u as L}from"./useBreakpoint-DOQrj9xp.js";import{k as P,c as B,y as s,z as c,u as b,K as d,H as r,L as _,P as f,C,D as R,G as S}from"./vendor-misc-5pJBpqhN.js";import{_ as T}from"./index-BNPflmqD.js";const D=["aria-label"],M={key:0,class:"page-tabs__mobile-label"},N={class:"sr-only"},V=["value"],w=["value"],z=P({__name:"PageTabs",props:{tabs:{},sectionLabel:{}},setup(a){const l=a,i=y(),m=x(),{isMobile:p}=L(),v=B(()=>{var u;const e=i.path,o=l.tabs.find(n=>n.to===e);if(o)return o.to;const t=[...l.tabs].sort((n,h)=>h.to.length-n.to.length).find(n=>e.startsWith(n.to));return(t==null?void 0:t.to)??((u=l.tabs[0])==null?void 0:u.to)??e});function g(e){e&&e!==i.path&&m.push(e)}return(e,o)=>(s(),c("nav",{class:"page-tabs","aria-label":a.sectionLabel||"Page sections"},[b(p)?(s(),c("label",M,[d("span",N,r(a.sectionLabel||"Section"),1),d("select",{class:"page-tabs__select",value:v.value,onChange:o[0]||(o[0]=t=>g(t.target.value))},[(s(!0),c(_,null,f(a.tabs,t=>(s(),c("option",{key:t.to,value:t.to},r(t.label),9,w))),128))],40,V)])):(s(!0),c(_,{key:1},f(a.tabs,t=>(s(),C(b(k),{key:t.to,to:t.to,class:"page-tab","active-class":"active","exact-active-class":"active"},{default:R(()=>[S(r(t.label),1)]),_:2},1032,["to"]))),128))],8,D))}}),I=T(z,[["__scopeId","data-v-f2b2e456"]]);export{I as P};
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.