import{p as e,H as t,h as i,t as n}from"./p-CHfEnK-2.js";import{c as l}from"./p-DMLRPGid.js";import{i as o,d as r,t as s}from"./p-94ZtGp9D.js";const a=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow()}get el(){return this}href=void 0;target="_self";variant="bold";size="m";disabled=!1;download;ariaLabelText;internalHref="";internalTarget="";internalVariant="";setInternalStates(){this.internalHref=this.href?this.href.trim():void 0,this.internalTarget=this.target.trim(),this.internalVariant=this.variant.trim().toLowerCase()}componentWillRender(){this.setInternalStates()}async componentDidLoad(){if(!o(this.el)){const e=r();s("ifx-link",await e)}}render(){return i("a",{key:"1f3bedc0c8a1e6e8d8226210c83d386fef692467",tabindex:"0","aria-label":this.ariaLabelText,"aria-disabled":this.disabled||!this.internalHref,href:this.disabled?void 0:this.internalHref,download:this.download,target:this.internalTarget,class:this.linkClassNames()},i("slot",{key:"b1830a0721c9566301f34ffb089ba5b213530552"}))}getSizeClass(){const e="xl"===this.size?"extraLarge":null;return("s"===this.size?"small":null)||("m"===this.size?"medium":null)||("l"===this.size?"large":null)||(e&&"underlined"===this.internalVariant?"large":e&&"underlined"!==this.internalVariant?e:"")}getVariantClass(){const e="bold"===this.internalVariant?"bold":null;return e||("title"===this.internalVariant?"title":null)||("underlined"===this.internalVariant?"underlined":null)||("menu"===this.internalVariant?"menu":null)||e}linkClassNames(){return l("link","primary",this.getVariantClass(),this.getSizeClass(),this.disabled?"disabled":"")}static get style(){return":host{display:inline-flex}.link{display:inline-flex;align-items:center;font-weight:400;font-size:1rem;text-decoration:none;color:#0A8276;gap:8px;line-height:1.6;font-family:var(--ifx-font-family)}.link:hover{cursor:pointer}.link:focus{outline-width:2px;outline-style:solid;outline-color:#0A8276;outline-offset:4px;border-radius:3px}.link.bold{font-weight:600}.link.bold:hover{text-decoration:underline}.link.bold:active{color:#08665C;font-style:normal;font-weight:600;text-decoration:underline}.link.underlined{text-decoration:underline;text-decoration-color:#0A8276;color:#1D1D1D;text-underline-offset:8px}.link.underlined:hover{color:#0A8276}.link.underlined:active{color:#0A8276}.link.underlined:disabled,.link.underlined.disabled{text-decoration-color:#BFBBBB}.link.title{text-decoration:none;font-weight:600;color:#1D1D1D}.link.title:hover{color:#0A8276}.link.title:active{color:#08665C}.link.menu{font-weight:400;font-style:normal;line-height:26px;color:#1D1D1D}.link.menu:hover{color:#0A8276}.link.menu:active{color:#08665C}.link.small{font-size:0.875rem}.link.medium{font-size:1rem}.link.large{font-size:1.125rem}.link.extraLarge{font-size:1.25rem}.link.underline{text-decoration:underline}.link:disabled,.link.disabled{color:#BFBBBB;cursor:default;pointer-events:none}"}},[769,"ifx-link",{href:[1],target:[1],variant:[1],size:[1],disabled:[4],download:[1],ariaLabelText:[1,"aria-label-text"],internalHref:[32],internalTarget:[32],internalVariant:[32]}]);function d(){"undefined"!=typeof customElements&&["ifx-link"].forEach((e=>{"ifx-link"===e&&(customElements.get(n(e))||customElements.define(n(e),a))}))}export{a as L,d}