import{p as s,H as t,h as e,t as n}from"./p-CHfEnK-2.js";import{d as o}from"./p-CUljqVvL.js";const c=s(class extends t{constructor(s){super(),!1!==s&&this.__registerHost(),this.__attachShadow()}tokens="css";render(){const s={css:"https://raw.githubusercontent.com/Infineon/public-assets/main/ifx-tokens/css-variables.css",scss:"https://raw.githubusercontent.com/Infineon/public-assets/main/ifx-tokens/scss-variables.scss",json:"https://raw.githubusercontent.com/Infineon/public-assets/main/ifx-echarts-theme/dds-echarts-theme.json",js:"https://raw.githubusercontent.com/Infineon/public-assets/main/ifx-echarts-theme/dds-echarts-theme.js"}[this.tokens],t="json"===this.tokens||"js"===this.tokens?"dds-echarts-theme."+this.tokens:"infineon-tokens."+this.tokens;return e("ifx-link",{key:"a9fffebdef92640797f0ad864ccc5ead2756ce32",onClick:e=>{e.preventDefault(),fetch(s).then((s=>s.blob())).then((s=>{const e=document.createElement("a");e.href=URL.createObjectURL(s),e.download=t,e.click()}))},href:s,download:t,class:"download__wrapper",size:"m",variant:"bold"},e("slot",{key:"a58203ac50f21518b2f9b0f5c54b84c9ae454188"}))}static get style(){return""}},[769,"ifx-download",{tokens:[1]}]),i=c,a=function(){"undefined"!=typeof customElements&&["ifx-download","ifx-link"].forEach((s=>{switch(s){case"ifx-download":customElements.get(n(s))||customElements.define(n(s),c);break;case"ifx-link":customElements.get(n(s))||o()}}))};export{i as IfxDownload,a as defineCustomElement}