import{p as t,H as e,h as s,F as o,a as i}from"./index.js";import{p as n}from"./p-CQvUntGY.js";import{S as a}from"./p-BcQO4NH2.js";import{g as c}from"./p-DKo9A5gq.js";import{d as r}from"./p-BJnSrRNH.js";n(a,["_S","_M","_L"]);const l={root:"gov-tile",link:"gov-tile__link",content:"gov-tile__content",text:"gov-tile__text",title:"gov-tile__title",icon:"gov-tile__icon",annotation:"gov-tile__annotation"};const f=t(class t extends e{constructor(){super();this.__registerHost();this.size="m";this.noBorder=false;this.h=c(this.host)}render(){return s(i,{key:"31fcebee125c753089b2229cea0033dce9aa3133",class:this.h.classes(l.root),size:this.size,orientation:this.orientation,clickable:this.href?true:null},s("slot",{key:"b79748ea55bb2e86d887860c1143d82d75497966",name:"icon"}),s("div",{key:"db8b61554f6943612c9d7165174926cfd205fcfb",class:l.content},s("div",{key:"e844267c106109d0470176d3c89539f8f987c70f",class:l.text},s("div",{key:"e4771f568d8848b87045293ebb10af5679f1a3b7",class:l.title},this.href?s(o,null,s("a",{href:this.href,target:this.target,class:l.link,ref:t=>this.triggerRef=t},s("slot",{name:"title"})),s("span",{class:l.icon},s("gov-icon",{name:"chevron-right",type:"components"}))):s("slot",{name:"title"})),s("div",{key:"cf1bf1a1c29e8879dc509b484325b82808db792a",class:`${l.annotation} ${this.href?`${l.annotation}--padding`:""}`},s("slot",{key:"9a10f28fd144f1131eae6735342da9a5d93665e2"}))),s("slot",{key:"067476f1a27bad0fb50d86789a729f93b1f1e5ad",name:"button"})))}async getTriggerRef(){return this.triggerRef}get host(){return this}},[4,"gov-tile",{size:[513],orientation:[1],noBorder:[4,"no-border"],href:[513],target:[1],getTriggerRef:[64]}]);function d(){if(typeof customElements==="undefined"){return}const t=["gov-tile","gov-icon"];t.forEach((t=>{switch(t){case"gov-tile":if(!customElements.get(t)){customElements.define(t,f)}break;case"gov-icon":if(!customElements.get(t)){r()}break}}))}d();const g=f;const m=d;export{g as GovTile,m as defineCustomElement};
//# sourceMappingURL=gov-tile.js.map