import{B as v,l as T,x as o,y as b,j as s,o as n,g as c,F as p,d as _,e as P,c as u,w as d,E as B,h as S,n as k,u as $}from"./app-SC54XQDl.js";var A={root:function(e){var r=e.instance;return["p-tabpanel",{"p-tabpanel-active":r.active}]}},C=v.extend({name:"tabpanel",classes:A}),x={name:"BaseTabPanel",extends:b,props:{value:{type:[String,Number],default:void 0},as:{type:[String,Object],default:"DIV"},asChild:{type:Boolean,default:!1},header:null,headerStyle:null,headerClass:null,headerProps:null,headerActionProps:null,contentStyle:null,contentClass:null,contentProps:null,disabled:Boolean},style:C,provide:function(){return{$pcTabPanel:this,$parentInstance:this}}},h={name:"TabPanel",extends:x,inheritAttrs:!1,inject:["$pcTabs"],computed:{active:function(){var e;return T((e=this.$pcTabs)===null||e===void 0?void 0:e.d_value,this.value)},id:function(){var e;return"".concat((e=this.$pcTabs)===null||e===void 0?void 0:e.id,"_tabpanel_").concat(this.value)},ariaLabelledby:function(){var e;return"".concat((e=this.$pcTabs)===null||e===void 0?void 0:e.id,"_tab_").concat(this.value)},attrs:function(){return o(this.a11yAttrs,this.ptmi("root",this.ptParams))},a11yAttrs:function(){var e;return{id:this.id,tabindex:(e=this.$pcTabs)===null||e===void 0?void 0:e.tabindex,role:"tabpanel","aria-labelledby":this.ariaLabelledby,"data-pc-name":"tabpanel","data-p-active":this.active}},ptParams:function(){return{context:{active:this.active}}}}};function g(a,e,r,m,y,t){var l,i;return t.$pcTabs?(n(),c(p,{key:1},[a.asChild?s(a.$slots,"default",{key:1,class:k(a.cx("root")),active:t.active,a11yAttrs:t.a11yAttrs}):(n(),c(p,{key:0},[!((l=t.$pcTabs)!==null&&l!==void 0&&l.lazy)||t.active?_((n(),u(B(a.as),o({key:0,class:a.cx("root")},t.attrs),{default:d(function(){return[s(a.$slots,"default")]}),_:3},16,["class"])),[[P,(i=t.$pcTabs)!==null&&i!==void 0&&i.lazy?!0:t.active]]):S("",!0)],64))],64)):s(a.$slots,"default",{key:0})}h.render=g;const L={__name:"TTabPanel",props:["code"],setup(a){return(e,r)=>(n(),u($(h),{value:a.code},{default:d(()=>[s(e.$slots,"default")]),_:3},8,["value"]))}};var w={root:"p-tabpanels"},j=v.extend({name:"tabpanels",classes:w}),z={name:"BaseTabPanels",extends:b,props:{},style:j,provide:function(){return{$pcTabPanels:this,$parentInstance:this}}},f={name:"TabPanels",extends:z,inheritAttrs:!1};function D(a,e,r,m,y,t){return n(),c("div",o({class:a.cx("root"),role:"presentation"},a.ptmi("root")),[s(a.$slots,"default")],16)}f.render=D;const E={__name:"TTabPanels",setup(a){return(e,r)=>(n(),u($(f),null,{default:d(()=>[s(e.$slots,"default")]),_:3}))}};export{E as _,L as a};
