import{d as r,c as s,e as i,f as n,p as l,h as g,q as f,s as S,t as z}from"./vue.BxlDVA1H.js";const _=["src"],I=r({name:"svgIcon"}),x=r({...I,props:{name:{type:String},size:{type:Number,default:()=>14},color:{type:String}},setup(m){const e=m,u=["https","http","/src","/assets","data:image","/mhiKnowledge/"],a=s(()=>e==null?void 0:e.name),p=s(()=>{var t;return(t=e==null?void 0:e.name)==null?void 0:t.startsWith("ele-")}),h=s(()=>u.find(t=>{var o;return(o=e.name)==null?void 0:o.startsWith(t)})),c=s(()=>`font-size: ${e.size}px;color: ${e.color};`),d=s(()=>`width: ${e.size}px;height: ${e.size}px;display: inline-block;overflow: hidden;`),v=s(()=>{const t=[];return["-webkit","-ms","-o","-moz"].forEach(y=>t.push(`${y}-filter: drop-shadow(${e.color} 30px 0);`)),`width: ${e.size}px;height: ${e.size}px;position: relative;left: -${e.size}px;${t.join("")}`});return(t,o)=>p.value?(n(),i("i",{key:0,class:"el-icon",style:l(c.value)},[(n(),g(f(a.value)))],4)):h.value?(n(),i("div",{key:1,style:l(d.value)},[S("img",{src:a.value,style:l(v.value)},null,12,_)],4)):(n(),i("i",{key:2,class:z(a.value),style:l(c.value)},null,6))}});export{x as _};
