1import{cI as S,s as V,u as b,v as C,i as _,ez as q,x as i,ey as M,o as c,b as p,w as I,cK as w,g as n,cD as x,n as B,m as U,r as $,h as m,P as k}from"./_Rr8vU5y.js";import{_ as P}from"./BAFiYVwP.js";import"./Bs-Sjfxe.js";const z={slots:{root:"my-5 gap-4"}},j={__name:"ProseTabs",props:U({defaultValue:{type:String,required:!1,default:"0"},sync:{type:String,required:!1},hash:{type:String,required:!1},class:{type:null,required:!1},ui:{type:Object,required:!1}},{modelValue:{type:String},modelModifiers:{}}),emits:["update:modelValue"],setup(r){const d=r,f=S(),a=V("prose.tabs",d),t=b(r,"modelValue"),y=C(),h=m(()=>k({extend:z,...y.ui?.prose?.tabs||{}})),l=$(1),v=m(()=>(l.value,f.default?.()?.flatMap(u).filter(Boolean)||[]));function u(e,s){return typeof e.type=="symbol"?e.children?.map(u):{index:s,label:e.props?.label||`${s}`,description:e.props?.description,icon:e.props?.icon,component:e}}_(()=>{if(a.sync){const e=`tabs-${a.sync}`,s=q(e,()=>localStorage.getItem(e));i(s,()=>{s.value&&(t.value=s.value)},{immediate:!0}),i(t,()=>{t.value&&(s.value=t.value,localStorage.setItem(e,t.value))})}});async function g(){if(a.hash){const e=a.hash.startsWith("#")?a.hash:`#${a.hash}`;setTimeout(()=>{document.querySelector(e)?.scrollIntoView()},200)}}return M(()=>l.value++),(e,s)=>(c(),p(P,{modelValue:t.value,"onUpdate:modelValue":[s[0]||(s[0]=o=>t.value=o),g],color:"primary",variant:"link",items:v.value,class:B(n(a).class),"unmount-on-hide":!1,ui:n(x)(h.value(),n(a).ui)},{content:I(({item:o})=>[(c(),p(w(o.component)))]),_:1},8,["modelValue","items","class","ui"]))}};export{j 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.