import{r as i,h as o}from"./p-B2f84Zog.js";import{s as e}from"./p-tJa4KYNO.js";import{l as n}from"./p-D4ys0pep.js";const r=":host{display:inline}:host pds-icon{-webkit-margin-start:var(--pine-dimension-2xs);margin-inline-start:var(--pine-dimension-2xs)}.pds-link{-ms-flex-align:center;align-items:center;color:var(--color, var(--pds-context-link-color, var(--pine-color-text)));display:-ms-inline-flexbox;display:inline-flex;font-weight:var(--pine-font-weight-medium)}.pds-link:focus-visible{border-radius:var(--pine-dimension-2xs);outline:var(--pine-outline-focus);outline-offset:var(--pine-border-width-thick);position:relative}.pds-link:hover{color:var(--color, var(--pds-context-link-color-hover, var(--pine-color-text-hover)));text-decoration:none}:host([color=secondary]) .pds-link{color:var(--pine-color-text-primary)}:host([color=secondary]) .pds-link:hover{color:var(--pine-color-text-inverse-secondary)}:host([color=accent]) .pds-link{color:var(--pine-color-accent)}:host([color=accent]) .pds-link:hover{color:var(--pine-color-accent-hover)}:host([color=danger]) .pds-link{color:var(--pine-color-danger)}:host([color=danger]) .pds-link:hover{color:var(--pine-color-danger-hover)}.pds-link--sm{font-size:var(--pine-font-size-body-xs)}.pds-link--sm pds-icon{height:var(--pine-dimension-xs);width:var(--pine-dimension-xs)}.pds-link--md{font-size:var(--pine-font-size-body-sm)}.pds-link--md pds-icon{height:var(--pine-dimension-xs);width:var(--pine-dimension-xs)}.pds-link--lg{font-size:var(--pine-font-size-body-md)}.pds-link--lg pds-icon{height:var(--pine-dimension-sm);width:var(--pine-dimension-sm)}.pds-link--plain{text-decoration:none}.pds-link--plain:hover{color:var(--color, var(--pds-context-link-color-hover, var(--pine-color-text-hover)));text-decoration:underline}";const s=class{constructor(o){i(this,o);this.external=false;this.variant="inline";this.fontSize="lg"}classNames(){const i=["pds-link"];if(this.fontSize){i.push("pds-link--"+this.fontSize)}if(this.variant){i.push("pds-link--"+this.variant)}return i.join(" ")}setLinkStyles(){if(!this.color)return;const i={secondary:"var(--pine-color-text-primary)",accent:"var(--pine-color-accent)",danger:"var(--pine-color-danger)"};const o=e(this.color,i);return o}render(){const i=this.target||(this.external?"_blank":undefined);const e=this.external;const r=i==="_blank"?"noopener noreferrer":undefined;return o("a",{key:"8ab68ceb91a4c7b155a4ae54d2cb421af4d0eec1",class:this.classNames(),download:this.download,href:this.href,id:this.componentId,part:"link",target:i,rel:r,style:this.setLinkStyles()},o("slot",{key:"b90dc967867a3b765d632c16458236e6e4ccf97e"},this.href),e&&o("pds-icon",{key:"ebffdba1a21f7b0f5730608ec5eb88519ee79d1b",icon:n,size:this.fontSize}))}};s.style=r;export{s as pds_link};
//# sourceMappingURL=p-91bea052.entry.js.map