import{p as e,H as t,c as s,h as o,a as i}from"./index.js";import{v as a}from"./p-BKP-F1qP.js";import{A as c,a as n,b as r}from"./p-4i8qDRtu.js";import{g as d}from"./p-DKo9A5gq.js";const h=e(class e extends t{constructor(){super();this.__registerHost();this.govChange=s(this,"gov-change");this.hydrated=false;this.size="m";this.noBorder=false;this.h=d(this.host)}validateSize(e){a(n,e,c.root)}componentWillLoad(){this.validateSize(this.size)}componentDidLoad(){this.host.querySelectorAll(r.root).forEach((e=>{e.addEventListener("gov-change",(e=>{e.stopPropagation();this.govChange.emit({component:c.root,open:e.detail.open,ref:e.detail.ref})}))}))}connectedCallback(){this.hydrated=true}render(){return o(i,{key:"62ad311346ed2f7caa86f8085b4ee9a7a81c5f92",hydrated:this.hydrated,class:this.h.classes(c.root),size:this.size,role:"list"},o("slot",{key:"c4fade9da340c36695c6781e411abac9202ffdf8"}))}get host(){return this}static get watchers(){return{size:["validateSize"]}}},[4,"gov-accordion",{size:[1],noBorder:[4,"no-border"]},undefined,{size:["validateSize"]}]);function f(){if(typeof customElements==="undefined"){return}const e=["gov-accordion"];e.forEach((e=>{switch(e){case"gov-accordion":if(!customElements.get(e)){customElements.define(e,h)}break}}))}f();const m=h;const l=f;export{m as GovAccordion,l as defineCustomElement};
//# sourceMappingURL=gov-accordion.js.map