import{e as f,aa as _,x as l,r as g,l as C,m as p,o as v,w as i,b as y,n as e,ac as h,J as k,X as m,C as B,aw as I,ai as T,a6 as q,W as w}from"./BoB2h2qv.js";import{i as M,m as P,c as x}from"./DsKIg3wc.js";var S=f({__name:"TabsContent",props:{value:{type:[String,Number],required:!0},forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(o){const t=o,{forwardRef:n}=_(),a=M(),u=l(()=>P(a.baseId,t.value)),b=l(()=>x(a.baseId,t.value)),r=l(()=>t.value===a.modelValue.value),d=g(r.value);return C(()=>{requestAnimationFrame(()=>{d.value=!1})}),(s,R)=>(v(),p(e(I),{present:s.forceMount||r.value,"force-mount":""},{default:i(({present:c})=>[y(e(h),{id:b.value,ref:e(n),"as-child":s.asChild,as:s.as,role:"tabpanel","data-state":r.value?"active":"inactive","data-orientation":e(a).orientation.value,"aria-labelledby":u.value,hidden:!c,tabindex:"0",style:k({animationDuration:d.value?"0s":void 0})},{default:i(()=>[!e(a).unmountOnHide.value||c?m(s.$slots,"default",{key:0}):B("v-if",!0)]),_:2},1032,["id","as-child","as","data-state","data-orientation","aria-labelledby","hidden","style"])]),_:3},8,["present"]))}}),N=S;const F=f({__name:"TabsContent",props:{value:{},forceMount:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},setup(o){const t=o,n=T(t,"class");return(a,u)=>(v(),p(e(N),q({class:e(w)("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",t.class)},e(n)),{default:i(()=>[m(a.$slots,"default")]),_:3},16,["class"]))}});export{F as _};
