import{p as s,H as e,c as t,h as o,a}from"./index.js";import{F as c}from"./p-DBXGhafv.js";const i=s(class s extends e{constructor(){super();this.__registerHost();this.govClick=t(this,"gov-click");this.size="m";this.required=false;this.legend=false}render(){const s=this.legend?"legend":"label";return o(a,{key:"ed4ec902f11631d324119863462a67305d8586e5",class:c.root,size:this.size},o(s,{key:"04168b854261d7aca3c96ee0bd77ab8c2fc9d5f2",class:c.label,htmlFor:this.identifier,onClick:()=>this.govClick.emit()},o("slot",{key:"3d9fadd9d60baae633a699db046ca46605c4ab4c"}),this.required?o("span",{class:"gov-color--text-status-error"}," *"):null))}},[4,"gov-form-label",{identifier:[1],size:[1],required:[4],legend:[4]}]);function l(){if(typeof customElements==="undefined"){return}const s=["gov-form-label"];s.forEach((s=>{switch(s){case"gov-form-label":if(!customElements.get(s)){customElements.define(s,i)}break}}))}l();const r=i;const n=l;export{r as GovFormLabel,n as defineCustomElement};
//# sourceMappingURL=gov-form-label.js.map