1import{O as S,av as T,r as d,Z as f,aI as B,o as c,a as u,j as v,F as C,A as I,n as r,i as s,$ as x,I as y,J as A}from"./C_u47FT6.js";const N=["onClick"],$={},M=Object.assign($,{__name:"NkTabs",props:{variant:{type:String,required:!1,default:"default"}},emits:["tab-change"],setup(a,{emit:p}){const t=S("NkTabs"),m=p,b=T(),i=d([]),o=d(null);function l(e){o.value=e}f("activeTab",{activeTab:o,updateActiveTab:l}),f("props",a);const h=e=>{m("tab-change",e),l(e.props.title)};return B(()=>{const e=b.default();i.value=e,i.value.some(n=>n.props.selected===!0)||l(i.value[0].props.title)}),(e,g)=>(c(),u("div",{class:r([s(t).fixedClasses,s(t).variants[a.variant].wrapper])},[v("ul",{class:r(s(t).variants[a.variant].header)},[(c(!0),u(C,null,I(i.value,(n,k)=>(c(),u("li",{key:"tabIndex"+k,class:r(s(t).variants[a.variant].headerItem)},[v("a",{role:"button",href:"#",class:r([s(t).variants[a.variant].headerButton,o.value===n.props.title?s(t).variants[a.variant].headerButtonActive:null]),onClick:x(w=>h(n),["prevent"])},y(n.props.title),11,N)],2))),128))],2),v("div",{class:r(s(t).variants[a.variant].content)},[A(e.$slots,"default")],2)],2))}});export{M as default};
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.