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