import{p as t,H as e,h as o,a}from"./index.js";import{g as s}from"./p-DKo9A5gq.js";import{p as i}from"./p-CQvUntGY.js";import{S as n}from"./p-BcQO4NH2.js";import{v as r}from"./p-BKP-F1qP.js";const d=i(n,["_S","_M","_L","_XL"]);var c;(function(t){t["SIMPLE"]="simple";t["WAVES"]="waves";t["STRIPES"]="stripes";t["LINES"]="lines"})(c||(c={}));var l;(function(t){t["IMAGE"]="image";t["LOGO"]="logo";t["ICON"]="icon"})(l||(l={}));var f;(function(t){t["LIGHT"]="light";t["DARK"]="dark"})(f||(f={}));const b={root:"gov-banner",content:"gov-banner__content"};const u=t(class t extends e{constructor(){super();this.__registerHost();this.size=d._M;this.background=c.SIMPLE;this.foreground=l.LOGO;this.textColor=f.LIGHT;this.h=s(this.host)}validateSize(t){r(d,t,b.root)}validateBackground(t){r(c,t,b.root)}validateForeground(t){r(l,t,b.root)}validateTextColor(t){r(f,t,b.root)}componentWillLoad(){this.validateSize(this.size);this.validateBackground(this.background);this.validateForeground(this.foreground);this.validateTextColor(this.textColor)}render(){return o(a,Object.assign({key:"c035b04b0715ffcc996d66a1f673d1bd9518284c",class:this.h.classes(b.root),role:"region",size:this.size},this.size!=="xl"?{background:this.background,foreground:this.foreground}:{"text-color":this.textColor}),o("div",{key:"d5a59901f7a1a707c3679ffc20677163bbf31dc7"},o("div",{key:"366d4ce913119a38f3166fdc70d9ae06181e7a5d",class:b.content},o("slot",{key:"92baa67137573e91b5eb74884b2fa1cb68d5bf90",name:"headline"}),o("slot",{key:"2630dbd6c23e8ec71b136d76df977b0bef7aa830"})),this.h.hasSlot("button")&&o("slot",{key:"0e8b200648c9a4af27da49a5f725be48159ad595",name:"button"})),o("slot",{key:"79bdb4c7d136d66561aab55012c8d5669503469f",name:"image"}))}get host(){return this}static get watchers(){return{size:["validateSize"],background:["validateBackground"],foreground:["validateForeground"],"text-color":["validateTextColor"]}}},[4,"gov-banner",{size:[513],background:[1],foreground:[1],textColor:[1,"text-color"]},undefined,{size:["validateSize"],background:["validateBackground"],foreground:["validateForeground"],"text-color":["validateTextColor"]}]);function g(){if(typeof customElements==="undefined"){return}const t=["gov-banner"];t.forEach((t=>{switch(t){case"gov-banner":if(!customElements.get(t)){customElements.define(t,u)}break}}))}g();const h=u;const v=g;export{h as GovBanner,v as defineCustomElement};
//# sourceMappingURL=gov-banner.js.map