import{d as v,k as s,o as n,c as i,M as g,Q as S,J as a,a as f,I as z}from"./vue.adf17aba.js";const x=["src"],$=v({__name:"index",props:{name:{type:String},size:{type:Number,default:()=>14},color:{type:String}},setup(r){const e=r,m=["https","http","/src","/assets","data:image","/web"],l=s(()=>e==null?void 0:e.name),u=s(()=>{var t;return(t=e==null?void 0:e.name)==null?void 0:t.startsWith("ele-")}),p=s(()=>m.find(t=>{var o;return(o=e.name)==null?void 0:o.startsWith(t)})),c=s(()=>`font-size: ${e.size}px;color: ${e.color};`),h=s(()=>`width: ${e.size}px;height: ${e.size}px;display: inline-block;overflow: hidden;`),d=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)=>u.value?(n(),i("i",{key:0,class:"el-icon",style:a(c.value)},[(n(),g(S(l.value)))],4)):p.value?(n(),i("div",{key:1,style:a(h.value)},[f("img",{src:l.value,style:a(d.value)},null,12,x)],4)):(n(),i("i",{key:2,class:z(l.value),style:a(c.value)},null,6))}});export{$ as _};
