import{r as t,c as s,h as n,a as e}from"./p-5308bbce.js";import{g as o}from"./p-68f17bb5.js";const i="ifx-icon{display:inline-flex;justify-content:center}ifx-icon:empty{display:none}";const r=class{constructor(n){t(this,n);this.consoleError=s(this,"consoleError",7);this.icon="";this.ifxIcon=undefined}convertStringToHtml(t){const s=document.createElement("div");s.innerHTML=t;return s.firstChild}convertHtmlToObject(t){let s=Array.from(t.attributes,(({name:t,value:s})=>({name:t,value:s}))).reduce(((t,s)=>{t[s.name]=s.value;return t}),{});return s}convertPathsToVnode(t){let s=[];const e=this.convertHtmlToObject(t);const o=n("path",e);s.push(o);if(t.firstChild){const e=t.querySelectorAll("path");const o=t.querySelectorAll("path").length;for(let t=0;tt.toLowerCase().replace(/[^a-zA-Z0-9]+(.)/g,((t,s)=>s));this.ifxIcon=o(t(this.icon))}render(){return n(e,null,this.constructIcon())}};r.style=i;export{r as ifx_icon}; //# sourceMappingURL=p-5f0c8cc4.entry.js.map