1import{u as j}from"./BsFsUbGw.js";import{u as D}from"./xb5eESbg.js";import{aK as M,aN as g,aM as N,cU as T,be as U,by as Y,b0 as p,aY as b,bx as h,a_ as r,aW as y}from"./CSpsc2oa.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"df7ca7a972abe0a2a56b13d50d3194f0664055e5"};var o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="a1146c52-5aee-4822-a8cf-089fcbed82be",e._sentryDebugIdIdentifier="sentry-dbid-a1146c52-5aee-4822-a8cf-089fcbed82be")}catch{}})();const x=["src","srcset"],A=["srcset"],C=["src","srcset"],K=["src","srcset"],L=M({__name:"ResponsiveImage",props:{src:{type:String,default:""},srcWebp:{type:String,default:""},imagePlaceholder:String,mobileSizes:{type:Object,default:()=>{}},desktopSizes:{type:Object,default:()=>{}},loadOriginal:{type:Boolean,default:!1},adaptiveImage:{type:Boolean,default:!1},lazy:{type:Boolean,default:!1}},setup(e){const o=g("/static/images/no-img.svg"),l=g(""),v=g(""),f=g(),S=g(!1),W=D(),_=N(()=>W.isMobile),c=e,I=(t,s,a)=>s?`${t}/${a.width}x${a.height}/${s}`:t;function w(t,s="/-/"){const[a,...n]=t?t.split(s):["/static/images/no-img.svg"],i=n.join(s);
1return{startSrc:a,endSrc:i}}function P(t,...s){return s.reduce((a,n,i)=>{const B=(k,$)=>({height:k.height*$,width:k.width*$}),E=a===""?a:a+",",O=I(n.startSrc,n.endSrc,B(t,i+1)),R=i===0?"":` ${i+1}x`;return`${E} ${O}${R}`},"")}const d=_.value?c.mobileSizes:c.desktopSizes,m=T({width:d?.width,height:d?.height}),u=()=>{S.value=!0;const t=/^https?:/,s=c.src?c.src.replace(t,""):"";if(c.loadOriginal)o.value=s;else{const a=w(s);if(o.value=I(a.startSrc,a.endSrc,d),l.value=P(d,a,a),c.srcWebp){const n=c.srcWebp?c.srcWebp.replace(t,""):"",i=w(n);v.value=P(d,i,i)}}};c.lazy||u();const{stop:z}=j(f,([{isIntersecting:t}])=>{t&&!S.value&&u()});return U(()=>c.src,()=>u()),Y(()=>{z()}),(t,s)=>e.adaptiveImage?(y(),p("div",{key:0,ref_key:"root",ref:f,class:"adaptive-container"},[b("img",h({...t.$attrs,attrs:r(m)},{src:e.imagePlaceholder||r(o),srcset:e.imagePlaceholder||r(l),class:"adaptive-image"}),null,16,x)],512)):e.srcWebp?(y(),p("picture",{key:1,ref_key:"root",ref:f,class:"adaptive-container"},[b("source",{type:"image/webp",srcset:e.imagePlaceholder||r(v)},null,8,A),b("img",h({src:e.imagePlaceholder||r(o),srcset:e.imagePlaceholder||r(l)},{...t.$attrs,attrs:r(m)},{class:"adaptive-image"}),null,16,C)],512)):(y(),p("img",h({key:2,ref_key:"root",ref:f},{...t.$attrs,attrs:r(m)},{src:e.imagePlaceholder||r(o),srcset:e.imagePlaceholder||r(l),class:"adaptive-image"}),null,16,K))}}),G=Object.assign(L,{__name:"UiResponsiveImage"});export{G as _}; 2//# sourceMappingURL=D5UbWTqe.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.