import"./vue.db505ee4.js";import{r as p,x as l,w as u,h as f,aR as m,ar as _,aX as x}from"./@vue.cb43a243.js";import"./@babel.6cd0804c.js";import"./regenerator-runtime.8e24db72.js";const C={name:"ExIcon"},w=Object.assign(C,{props:{icon:String},setup(c){const n=c,o=p(),a=l().appContext.components;u(()=>n.icon,e=>{t()}),t();function t(){let e;n.icon.indexOf("fa-")===-1?(e=s(n.icon),a[e]&&(e=a[e])):e=n.icon,typeof e=="string"?o.value=f("i",{class:e}):o.value=e}function s(e){return e&&(e=e.replace(/\-(\w)/g,(r,i)=>i.toUpperCase()),e[0].toUpperCase()+e.substr(1))}return(e,r)=>(m(),_(x(o.value)))}});export{w as default};
