import{p as s,H as e,c as i,h as t,a}from"./index.js";import{a as c}from"./p-Nvj7WFs_.js";import{c as o}from"./p-DrPpH_9c.js";import{g as r}from"./p-DKo9A5gq.js";import{t as l}from"./p-Cjg0wpDG.js";const d={root:"gov-backdrop",bg:"gov-backdrop__background"};const b=s(class s extends e{constructor(){super();this.__registerHost();this.govClick=i(this,"gov-click");this.inverse=false;this.disabled=false;this.h=r(this.host)}async componentDidRender(){if(o()){l((()=>this.validateAccessibility()))}}render(){return t(a,{key:"a86624d0cdaf83455d71298e609324fed9cd19bd",class:this.h.classes(d.root),inverse:this.inverse},t("div",{key:"fb299b51c9e2e2dbc0093a8a365e98dabcfc6e8c",role:"button","aria-disabled":this.disabled,"aria-label":this.accessibleLabel,"aria-labelledby":this.accessibleLabelledBy,onClick:s=>{if(!this.disabled){this.govClick.emit(s)}},class:d.bg}))}async validateAccessibility(){c(this.accessibleLabel,this.accessibleLabelledBy,d.root,this.host)}get host(){return this}},[0,"gov-backdrop",{inverse:[4],disabled:[1540],accessibleLabel:[1,"accessible-label"],accessibleLabelledBy:[1,"accessible-labelledby"],validateAccessibility:[64]}]);function n(){if(typeof customElements==="undefined"){return}const s=["gov-backdrop"];s.forEach((s=>{switch(s){case"gov-backdrop":if(!customElements.get(s)){customElements.define(s,b)}break}}))}n();export{b as G,n as d};
//# sourceMappingURL=p-BnxqJyb_.js.map