import{p as e,H as o,h as s,a as t}from"./index.js";import{p as a}from"./p-CQvUntGY.js";import{S as i}from"./p-BcQO4NH2.js";import{g as n,p as c}from"./p-DKo9A5gq.js";import{v as r}from"./p-BKP-F1qP.js";import{d}from"./p-BnxqJyb_.js";import{d as m}from"./p-BJnSrRNH.js";const p=a(i,["_S","_M","_L"]);const f={root:"gov-loading",content:"gov-loading__content",icon:"gov-loading__icon"};const g=e(class e extends o{constructor(){super();this.__registerHost();this.size="m";this.h=n(this.host)}validateSize(e){r(p,e,f.root)}componentWillLoad(){this.validateSize(this.size)}render(){return s(t,{key:"633a5908dcace7298026f28a9cd7e8cf7580ae3e",class:this.h.classes(f.root),size:this.size},s("div",{key:"39027a3ed4b2284070fe7f6954ec3864222b57aa",class:f.content},s("gov-icon",{key:"6baa68d8626e7b271eec0c6990b5999849a23fd5",class:c([f.icon,"gov-spin-animation"]),name:"loader",type:"components"}),s("slot",{key:"c9179dc3e6de4cb6ce2da35b9b81dc16fc2fda67"})),s("gov-backdrop",{key:"ca4fe88eb06122df18b717d008b7520724efd64e",inverse:true}))}get host(){return this}static get watchers(){return{size:["validateSize"]}}},[4,"gov-loading",{size:[1]},undefined,{size:["validateSize"]}]);function l(){if(typeof customElements==="undefined"){return}const e=["gov-loading","gov-backdrop","gov-icon"];e.forEach((e=>{switch(e){case"gov-loading":if(!customElements.get(e)){customElements.define(e,g)}break;case"gov-backdrop":if(!customElements.get(e)){d()}break;case"gov-icon":if(!customElements.get(e)){m()}break}}))}l();const v=g;const b=l;export{v as GovLoading,b as defineCustomElement};
//# sourceMappingURL=gov-loading.js.map