import{r as t,h as s,H as e,g as a}from"./p-ClISz4NF.js";import{p as i}from"./p-CQvUntGY.js";import{S as r}from"./p-BcQO4NH2.js";import{g as o}from"./p-CoD1xawt.js";import{v as c}from"./p-NOJjz9dT.js";import{i as n}from"./p-CzXeijOj.js";import"./p-CgDnDrq5.js";import"./p-Bz_RzYFb.js";const h=i(r,["_S","_M","_L"]);const d={root:"gov-link",external:"gov-link--external"};const b=class{constructor(s){t(this,s);this.size="m";this.external=false;this.truncate=false;this.inheritedAttributes={};this.h=o(this.host)}validateSize(t){c(h,t,d.root)}componentWillLoad(){this.validateSize(this.size);this.inheritedAttributes=n(this.host)}onAriaAttributeChange(t,s){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:s})}render(){return s(e,{key:"87da124a14ecd5515767b8583a98c8a24ea6b21b",class:this.h.classes(d.root),size:this.size,href:this.href,external:this.external,truncate:this.truncate},s("a",Object.assign({key:"7e9b80a7eb6527214cea32a1a6b2dfa7bdba56a9",class:"element",href:this.href,target:this.external?"_blank":this.target,rel:this.external?"noreferrer":null},this.inheritedAttributes),s("slot",{key:"0620fa97529d8966460cd664ff4285719954ca26",name:"icon-start"}),s("span",{key:"fc56fe240cda4ab1dde314deac56937fa9d53717"},s("slot",{key:"fdb01c25b213ee2c093136ff86a9f3d56a0b12ca"})),s("slot",{key:"1d077305b248a77e6b6730c32d5136ce4a9b2858",name:"icon-end"}),this.external&&s("gov-icon",{key:"c9d155610f0cbd4ddf1fd1945b8da78357ba2767",name:"box-arrow-up-right",type:"components",size:this.size,class:d.external})))}get host(){return a(this)}static get watchers(){return{size:["validateSize"]}}};export{b as gov_link};
//# sourceMappingURL=p-5283672a.entry.js.map