import{o as a,c as l,j as o}from"./entry.e017eb4f.js";import{_ as u}from"./_plugin-vue_export-helper.c27b6911.js";const f={props:{src:{type:String,required:!0},isSource:{type:Boolean,default:!1},width:{type:Number,default:null},height:{type:Number,default:null},elementWidth:{type:Number,default:null},elementHeight:{type:Number,default:null},external:{type:Boolean,default:!1},lazy:{type:Boolean,default:!1}},computed:{finalSrc(){if(!this.src)return this.src;const r=o();if(this.src.includes(".svg"))return{normal:this.src,retina:this.src};const t="";return r.public.APP_ENV==="local"?{normal:this.src,retina:this.src}:this.width?{normal:t+"/cdn-cgi/image/f=auto,width="+this.width+(this.height?",fit=cover,height="+this.height:"")+"/"+this.src,retina:t+"/cdn-cgi/image/f=auto,width="+this.width*2+(this.height?",fit=cover,height="+this.height:"")+"/"+this.src}:this.height?{normal:t+"/cdn-cgi/image/f=auto,height="+this.height+"/"+this.src,retina:t+"/cdn-cgi/image/f=auto,height="+this.height*2+"/"+this.src}:{normal:t+"/cdn-cgi/image/f=auto/"+this.src,retina:t+"/cdn-cgi/image/f=auto/"+this.src}}}},g=["srcset"],d=["loading","src","srcset","width","height"];function m(r,t,e,_,y,i){var s,h,n,c;return e.isSource?(a(),l("source",{key:0,srcset:((s=i.finalSrc)==null?void 0:s.normal)+", "+((h=i.finalSrc)==null?void 0:h.retina)+" 2x"},null,8,g)):(a(),l("img",{key:1,loading:e.lazy?"lazy":"eager",src:(n=i.finalSrc)==null?void 0:n.normal,srcset:((c=i.finalSrc)==null?void 0:c.retina)+" 2x",width:e.elementWidth,height:e.elementHeight},null,8,d))}const x=u(f,[["render",m]]);export{x as _};