import{m as u}from"./chunk-OCYU5QTD.js";import{aa as C,ya as v}from"./chunk-KOULBGOK.js";import{$c as h,Ab as _,Ac as c,Bc as d,Fb as f,Tb as r,Vb as m,Zb as g,cc as l,dc as s,ib as k,mb as a,pc as i,zc as x}from"./chunk-ZGECHOBP.js";function y(t,p){if(t&1&&(l(0,"a",2),c(1),s()),t&2){let n=i();r("href",n.link,k)("download",n.download),a(),d(n.text)}}function P(t,p){if(t&1&&(l(0,"a",3),c(1),s()),t&2){let n=i(2);r("routerLink",n.link),a(),d(n.text)}}function O(t,p){if(t&1&&(l(0,"a",4),c(1),s()),t&2){let n=i(2);a(),d(n.text)}}function L(t,p){if(t&1&&f(0,P,2,2,"a",3)(1,O,2,1,"a",4),t&2){let n=i();g(n.link?0:1)}}var D=(()=>{class t{constructor(){this.link="",this.text="",this.disabled=!1,this.variant="default"}get class(){return this.variant!=="default"}get isDisabled(){return this.disabled}isExternalLink(n){return n.startsWith("http")||n.startsWith("https")||!!this.download}static{this.\u0275fac=function(e){return new(e||t)}}static{this.\u0275cmp=_({type:t,selectors:[["tis-link"]],hostVars:4,hostBindings:function(e,o){e&2&&m("secondary",o.class)("disabled",o.isDisabled)},inputs:{link:"link",text:"text",disabled:"disabled",download:"download",variant:"variant"},decls:3,vars:2,consts:[["internalLink",""],["target","_blank","class","link",3,"href","download",4,"ngIf","ngIfElse"],["target","_blank",1,"link",3,"href","download"],[1,"link",3,"routerLink"],[1,"link"]],template:function(e,o){if(e&1&&f(0,y,2,3,"a",1)(1,L,2,1,"ng-template",null,0,h),e&2){let M=x(2);r("ngIf",o.isExternalLink(o.link))("ngIfElse",M)}},dependencies:[v,C,u],styles:["[_nghost-%COMP%]{width:fit-content;font:var(--font-body-1-strong)}[_nghost-%COMP%]   .link[_ngcontent-%COMP%]{color:var(--color-font-link);text-decoration:none;text-underline-offset:2px;transition:all .2s;cursor:pointer}[_nghost-%COMP%]   .link[_ngcontent-%COMP%]:hover{color:var(--color-font-link-hover);text-decoration:underline}[_nghost-%COMP%]   .link[_ngcontent-%COMP%]:active{color:var(--color-font-link-active);text-decoration:underline}.secondary[_nghost-%COMP%]   .link[_ngcontent-%COMP%]{color:var(--color-font-link-secondary)}.secondary[_nghost-%COMP%]   .link[_ngcontent-%COMP%]:hover{color:var(--color-font-link-secondary-hover)}.secondary[_nghost-%COMP%]   .link[_ngcontent-%COMP%]:active{color:var(--color-font-link-secondary-active)}.disabled[_nghost-%COMP%]   .link[_ngcontent-%COMP%]{pointer-events:none;color:var(--color-font-link-disabled)}"],changeDetection:0})}}return t})();export{D as a};
