import{u as a,a as s,b as e,r as t,c as l,o as n,d as u,e as m,f as c,g as r,F as b,h as i,i as o,w as d,j as w,t as h,k as f}from"./wbs-f6dQykzJ.js";const g={class:"with-tab base"},v={class:"wbs-tab-nav"},_={class:"wbs-content"},p={__name:"FrameworkTabs",setup(p){const{wbsCnf:k}=a(),{wb_i18n:j}=s(k),x=k.extend_menus,F=k.disable_menus,y=k.custom_menus,C=e(),S=C.meta.slug,T=C.meta.parentSlug,q=t[S],z=l([]);return n((()=>{const a=T&&y&&y[T];if(a)z.value=a;else{const a=T&&x&&x[T],s=T&&F&&F[T],e=C.matched.length>1?C.matched[0].children:q.children;z.value=e.filter((e=>(!s||!s.includes(e.meta.slug))&&(a&&a.includes(e.meta.slug)?e:e.tab)))}})),(a,s)=>{const e=u("router-link"),t=u("router-view");return c(),m("div",g,[r("ul",v,[(c(!0),m(b,null,i(z.value,(a=>(c(),m("li",{class:"wb-tab-item",key:a.meta.slug},[o(e,{to:a.path},{default:d((()=>[w(h(a.meta.label&&f(j)[a.meta.label]?f(j)[a.meta.label]:a.name),1)])),_:2},1032,["to"])])))),128))]),r("div",_,[o(t)])])}}};export{p as default};
