import{ak as i,al as s,B as e,b as c,Y as n,o as r,w as o,C as d,E as l,aN as p,e as u,b9 as A,aO as m,G as h}from"./JQJBiNWj.js";var v={root:"p-accordioncontent",content:"p-accordioncontent-content"},y=i.extend({name:"accordioncontent",classes:v}),f={name:"BaseAccordionContent",extends:s,props:{as:{type:[String,Object],default:"DIV"},asChild:{type:Boolean,default:!1}},style:y,provide:function(){return{$pcAccordionContent:this,$parentInstance:this}}},P={name:"AccordionContent",extends:f,inheritAttrs:!1,inject:["$pcAccordion","$pcAccordionPanel"],computed:{id:function(){return"".concat(this.$pcAccordion.id,"_accordioncontent_").concat(this.$pcAccordionPanel.value)},ariaLabelledby:function(){return"".concat(this.$pcAccordion.id,"_accordionheader_").concat(this.$pcAccordionPanel.value)},attrs:function(){return e(this.a11yAttrs,this.ptmi("root",this.ptParams))},a11yAttrs:function(){return{id:this.id,role:"region","aria-labelledby":this.ariaLabelledby,"data-pc-name":"accordioncontent","data-p-active":this.$pcAccordionPanel.active}},ptParams:function(){return{context:{active:this.$pcAccordionPanel.active}}}}};function $(t,b,C,B,k,a){return t.asChild?n(t.$slots,"default",{key:1,class:h(t.cx("root")),active:a.$pcAccordionPanel.active,a11yAttrs:a.a11yAttrs}):(r(),c(m,e({key:0,name:"p-toggleable-content"},t.ptm("transition",a.ptParams)),{default:o(function(){return[!a.$pcAccordion.lazy||a.$pcAccordionPanel.active?d((r(),c(p(t.as),e({key:0,class:t.cx("root")},a.attrs),{default:o(function(){return[u("div",e({class:t.cx("content")},t.ptm("content",a.ptParams)),[n(t.$slots,"default")],16)]}),_:3},16,["class"])),[[A,a.$pcAccordion.lazy?!0:a.$pcAccordionPanel.active]]):l("",!0)]}),_:3},16))}P.render=$;export{P as default};
