1import{a as s}from"./index.0c461a16.js";import{r as l}from"./index.90e2068c.js";import{s as g}from"./site.25e21301.js";import{_ as n,q as m,e as o,f as i,R as h,n as c}from"./entry.c0f9deca.js";const u={inheritAttrs:!1,props:{src:{type:String,required:!1},alt:{type:String,required:!1},mobileSrc:{type:String,required:!1},isResize:{type:Boolean,default:!1},placeholderSrc:{type:String,default:"/placeholder.png"},wrapperClass:{type:String},loading:{type:String,default:"lazy"},format:{type:String,default:"webp"},width:{type:String,default:""},height:{type:String,default:""},isChangeFormat:{type:Boolean,default:!0},imageWidth:{type:String,default:""},imageHeight:{type:String,default:""},imageWidthMb:{type:String,default:""},imageHeightMb:{type:String,default:""}},computed:{originImageSource(){return this.generateImageUrl(this.src)},originMobileImageSource(){return this.generateImageUrl(this.mobileSrc||this.src)},originImageFallback(){return this.generateFallbackImageUrl(this.src)},originMobileImageFallback(){return this.generateFallbackImageUrl(this.mobileSrc||this.src)},originImageSourceSet(){return this.generateImageSourceSet(this.originImageSource,this.imageWidth,this.imageHeight)},mobileImageSourceSet(){return this.generateImageSourceSet(this.originMobileImageSource,this.imageWidthMb,this.imageHeightMb)},originImageSourceSetFallback(){return this.generateImageSourceSet(this.originImageFallback,this.imageWidth,this.imageHeight)},mobileImageSourceSetFallback(){return this.generateImageSourceSet(this.originMobileImageFallback,this.imageWidthMb,this.imageHeightMb)},altImage(){return l(s(this.alt||this.originImageSource))}},methods:{generateImageUrl(e){return e?`${g.API_URL}/assets/${e}${this.isChangeFormat?"?format=webp":""}`:this.placeholderSrc},generateFallbackImageUrl(e){return e?(e=typeof e=="string"?e:String(e),`${g.API_URL}/assets/${e}${this.isChangeFormat?"?format=jpeg":""}`):this.placeholderSrc},generateImageSourceSet(e,r="1000",t="1000"){return this.isResize?this.isChangeFormat?encodeURI(`${e}&width=${r}&height=${t}&quality=100`):encodeURI(`${e}?width=${r}&height=${t}&quality=100`):encodeURI(e)}}},d=["srcset"],S=["srcset"],I=["srcset"],b=["srcset"],f=["src","alt","loading","fetchpriority","width","height"];function p(e,r,t,y,_,a){return m(),o("picture",{class:c(t.wrapperClass)},[i("source",{media:"(max-width: 767px)",srcset:a.mobileImageSourceSet,type:"image/webp"},null,8,d),i("source",{media:"(max-width: 767px)",srcset:a.mobileImageSourceSetFallback,type:"image/jpeg"},null,8,S),i("source",{media:"(max-width: 1439px)",srcset:a.originImageSourceSet,type:"image/webp"},null,8,I),i("source",{media:"(max-width: 1439px)",srcset:a.originImageSourceSetFallback,type:"image/jpeg"},null,8,b),i("img",h(e.$attrs,{src:t.isResize?t.isChangeFormat?a.originImageSourceSet:a.originImageSourceSetFallback:t.isChangeFormat?a.originImageSource:a.originImageFallback,alt:a.altImage,loading:t.loading,fetchpriority:t.loading==="eager"?"high":"auto",width:t.width,height:t.height}),null,16,f)],2)}const U=n(u,[["render",p]]);export{U 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.