1import{ex as v,aM as S,bo as c,ey as b,eo as w,bn as T,aU as _,aV as z,aP as x,aX as g,aS as m,b0 as P}from"./v7.12-zCVthbrt.js";const k=768,A=1024,E=1280,u={TABLET:k,BIG_TABLET:A,DESKTOP:E};function $(s){const n={mobile:`(max-width: ${u.TABLET-1}px)`,tablet:`(min-width: ${u.TABLET}px)`,bigTablet:`(min-width: ${u.BIG_TABLET}px)`,desktop:`(min-width: ${u.DESKTOP}px)`},e={mobile:4,tablet:3,bigTablet:2,desktop:1};if(!s)return"100vw";const i=Object.keys(s).sort((a,o)=>e[a]-e[o]).map(a=>{const o=s[a];return`${n[a]} ${o}`});return i.push("100vw"),i.join(", ")}function j(s,n,e=2){const i=v(s,n,e),a=Object.keys(i).reduce((o,l)=>(o.push(i[l].map(r=>`${r.url} ${r.width?`${r.width}w`:""}`).join(", ")),o),[]);return[...new Set(a.join(", ").split(", "))].join(", ")}const I=["srcset","sizes"],L=["src","alt","width","height","loading","fetchpriority"],O=S({__name:"BasePicture",props:{origin:{type:String,default:""},sizes:{type:Array,required:!0},alt:{type:String,default:""},loading:{default:"lazy",type:String},usedSized:{default:()=>[360,480,720,868],type:Array},sizesByDevice:{type:Object,default(){return{mobile:"calc(100vw - 16px * 2)",tablet:"calc(100vw - 24px * 2 * 2)",desktop:"900px"}}}},emits:["load","click"],setup(s,{emit:n}){const e=s,i=n,a=c(()=>e.origin),o=c(()=>e.alt),l=e.loading,r=c(()=>{var t;return(t=e.sizes.at(-1))==null?void 0:t.width}),h=c(()=>{var t;return(t=e.sizes.at(-1))==null?void 0:t.height}),f=c(()=>$(e.sizesByDevice)),B=c(()=>j(e.usedSized,b(e.sizes))),d=w("BasePictureRef");T(()=>{var t;(t=d.value)!=null&&t.complete&&d.value.naturalWidth!==0&&p()});function p(){i("load")}function y(){i("click")}return(t,D)=>s.origin?(x(),_("picture",{key:0,class:"picture",onClick:y},[g("source",{srcset:B.value,sizes:f.value},null,8,I),g("img",{ref:"BasePictureRef",class:"picture__img",src:a.value,alt:o.value,width:r.value,height:h.value,loading:m(l),fetchpriority:m(l)==="eager"?"high":void 0,onLoad:p},null,40,L)])):z("",!0)}}),C=P(O,[["__scopeId","data-v-a160e6f8"]]);export{C as B,j as a,$ as g}; 2//# sourceMappingURL=v7.12-B_PXtJlV.js.map
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.