import{p as e,H as t,h as o,a as s}from"./index.js";import{g as a}from"./p-DKo9A5gq.js";import{v as i}from"./p-BKP-F1qP.js";import{a as c,c as n}from"./p-CNqoJU2V.js";import{p as r}from"./p-CQvUntGY.js";import{S as d}from"./p-BcQO4NH2.js";import{p as f}from"./p-GYov8gU1.js";import{d as m}from"./p-BJnSrRNH.js";const l=r(d,["_XS","_S","_M"]);var p;(function(e){e["BOLD"]="bold";e["SUBTLE"]="subtle"})(p||(p={}));const b={root:"gov-tag"};const h=e(class e extends t{constructor(){super();this.__registerHost();this.size=l._S;this.color=c.PRIMARY;this.expanded=false;this.h=a(this.host)}validateColor(e){i(c,e,b.root)}validateSize(e){i(n,e,b.root)}componentWillLoad(){this.validateColor(this.color);this.validateSize(this.size)}render(){const e=f(this.iconStart);const t=f(this.iconEnd);return o(s,{key:"bb366b85a94d134d58766604e6410e17bed07adc",class:this.h.classes(b.root),color:this.color,size:this.size,type:this.type},o("span",{key:"963aa53926b6b65bbc155c349a119f46aabe59c8",class:"element"},o("slot",{key:"3164cfa09970ac3e0f97df7265afd45a623b09aa",name:"icon-start"},e&&o("gov-icon",{key:"335c0e5db0cb5a808c553bd4c9f6893d17a8fac9",type:e.type,name:e.name})),o("slot",{key:"9be29754dcefdaa37daee39befdc6a708e36324d"}),o("slot",{key:"6dffe882089838615e9fe451fc800b728885746a",name:"icon-end"},t&&o("gov-icon",{key:"415d8c03fefdf6281ae13668fb7b3aeaa572856e",type:t.type,name:t.name}))))}get host(){return this}static get watchers(){return{color:["validateColor"],size:["validateSize"]}}},[4,"gov-tag",{iconStart:[1,"icon-start"],iconEnd:[1,"icon-end"],size:[513],color:[513],type:[513],expanded:[516]},undefined,{color:["validateColor"],size:["validateSize"]}]);function v(){if(typeof customElements==="undefined"){return}const e=["gov-tag","gov-icon"];e.forEach((e=>{switch(e){case"gov-tag":if(!customElements.get(e)){customElements.define(e,h)}break;case"gov-icon":if(!customElements.get(e)){m()}break}}))}v();const g=h;const u=v;export{g as GovTag,u as defineCustomElement};
//# sourceMappingURL=gov-tag.js.map