1import{_ as c,c as l,a as h,n,o as u}from"./C_dDoqqV.js";const d=new Set(["landscape","portrait"]),f={name:"VImage",props:{src:{type:String,required:!1,default:"/images/lazy-load/lazyLoadPlaceholder.gif"},alt:{type:String,default:"default image description"},shape:{type:String,default:"squared"},aspect:{type:String,default:"1-1"},width:{type:[String,Number],default:void 0},height:{type:[String,Number],default:void 0},classes:{type:[String,Object,Array],default:""},addShadow:{type:Boolean,default:!1},orientation:{type:String,validator:e=>d.has(e),default:"landscape"},objectContain:{type:Boolean,default:!1},lazy:{type:Boolean,default:!0},center:{type:Boolean,default:!1},content:{type:Object,required:!1,default:null},srcset:{type:String,default:""},sizes:{type:String,default:""}},computed:{isSVG(){return this.src?.split("?")[0].endsWith(".svg")},isSmallImage(){const e=Number(this.width),s=Number(this.height);return e&&e<=50||s&&s<=50},shouldUseSrcSet(){if(this.srcset)return!0;if(this.isSVG||this.isSmallImage)return!1;const e=Number(this.width),s=Number(this.height);return!(e&&s&&e<=200&&s<=200)},finalSrcSet(){return this.srcset?this.srcset:this.shouldUseSrcSet?this.generatedSrcSet:null},finalSizes(){return this.sizes?this.sizes:this.shouldUseSrcSet?this.generatedSizes:null},imgClasses(){const e=this.objectContain?"object-contain":"object-cover";return this.isSVG&&this.width&&this.height?e:this.objectContain?"w-full h-full object-contain":this.aspect==="none"?`w-full h-full ${e}`:`w-full h-full ${e} ${this.aspectClass}`},shapeClasses(){return this.shape},sizeClasses(){return this.classes},aspectClass(){if(!this.aspect||this.aspect==="auto"||this.aspect==="none")return"";const e=this.aspect.split("-");if(e.length!==2)return"";const s=Number.parseInt(e[0],10),t=Number.parseInt(e[1],10);if(Number.isNaN(s)||Number.isNaN(t))return"";const[a,r]=this.orientation==="portrait"?[t,s]:[s,t],i=`${a}-${r}`;return{1:"aspect-1","1-1":"aspect-1","1-2":"aspect-1-2","4-18":"aspect-4-18","5-14":"aspect-5-14","4-3":"aspect-4-3","3-4":"aspect-3-4","3-2":"aspect-3-2","3-1":"aspect-3-1","2-3":"aspect-2-3","16-9":"aspect-16-9","9-16":"aspect-9-16","15-2":"aspect-15-2","18-5":"aspect-18-5","21-5":"aspect-21-5","21-9":"aspect-21-9","9-21":"aspect-9-21"}[i]||""},imgAttributes(){const e=Number(this.width)||void 0,s=Number(this.height)||void 0;return this.aspect?.includes("-")&&this.orientation==="portrait"?{width:s,height:e}:{width:e,height:s}},generatedSrcSet(){if(!this.src)return"";const e=this.src.split("?")[0];if(e.includes("/assets/")){const t=this.width||(this.orientation==="portrait"?205:320),a=this.height||(this.orientation==="portrait"?315:320);return` 2 ${e}?resize=${t},${a}&encode=webp 320w, 3 ${e}?resize=${t*2},${a*2}&encode=webp 640w, 4 ${e}?resize=${t*3},${a*3}&encode=webp 1024w 5 `}return` 6 ${e}?w=320&fm=avif 320w, 7 ${e}?w=640&fm=avif 640w, 8 ${e}?w=1024&fm=avif 1024w 9 `},generatedSizes(){const e=Number(this.width);return e&&e<=200?`${e}px`:"(max-width: 768px) 100vw, 50vw"}}},o=["src","srcset","sizes","alt","title","loading","decoding","fetchpriority","width","height"];function p(e,s,t,a,r,i){return u(),l("div",{class:n(["flex",t.center?"justify-center":"justify-start",i.aspectClass,i.shapeClasses,i.sizeClasses,{"overflow-hidden":!t.addShadow,"overflow-visible":t.addShadow}])},[h("img",{src:t.src,srcset:i.finalSrcSet,sizes:i.finalSizes,alt:t.alt,title:t.alt,class:n([i.shapeClasses,i.imgClasses,t.classes||t.content?.classes,{"img-shadow":t.addShadow}]),loading:t.lazy?"lazy":null,decoding:t.lazy?"async":null,fetchpriority:t.lazy?null:"high",width:i.imgAttributes.width,height:i.imgAttributes.height},null,10,o)],2)}const m=Object.assign(c(f,[["render",p],["__scopeId","data-v-afb7b5c1"]]),{__name:"VImage"});export{m as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.