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