import{p as s,H as t,h as e,t as n}from"./p-Bpcl2TqF.js";import{d as o}from"./p-D9XRTfuC.js";const c=()=>``;const i=s(class s extends t{constructor(s){super();if(s!==false){this.__registerHost()}this.__attachShadow()}tokens="css";render(){const s={css:"css-variables.css",scss:"scss-variables.scss"};const t=`infineon-tokens.${this.tokens}`;const n=s[this.tokens];const o=`https://raw.githubusercontent.com/Infineon/public-assets/main/ifx-tokens/${n}`;return e("ifx-link",{key:"866856c6190b54063704b1f98b3556f1b4181add",onClick:s=>{s.preventDefault();fetch(o).then((s=>s.blob())).then((s=>{const e=document.createElement("a");e.href=URL.createObjectURL(s);e.download=t;e.click()}))},href:o,download:t,class:"download__wrapper",size:"m",variant:"bold"},e("slot",{key:"e406b64e8c517ebb16b0463c8fed0ed8b80fe695"}))}static get style(){return c()}},[769,"ifx-download",{tokens:[1]}]);function a(){if(typeof customElements==="undefined"){return}const s=["ifx-download","ifx-link"];s.forEach((s=>{switch(s){case"ifx-download":if(!customElements.get(n(s))){customElements.define(n(s),i)}break;case"ifx-link":if(!customElements.get(n(s))){o()}break}}))}const f=i;const r=a;export{f as IfxDownload,r as defineCustomElement};
//# sourceMappingURL=ifx-download.js.map