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