1import{_ as e,v as t,y as n}from"./index-tMJjVXY2.js";var r=n(t(),1),i=e();function a({width:e,height:t,aspectRatio:n}){let r=`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${t??(n?e/n:0)}"></svg>`;return(0,i.jsx)(`img`,{style:{display:`block`,width:`100%`},alt:``,"aria-hidden":`true`,src:`data:image/svg+xml;base64,${btoa(r)}`})}function o({image:e,imageMobile:t,lazy:n=!0,className:o=``}){let s=(0,r.useRef)(null),[c,l]=(0,r.useState)(!1);if((0,r.useEffect)(()=>{l(!(s.current?.complete??!1))},[]),e?.responsiveImage){let r=e.responsiveImage;return(0,i.jsxs)(`div`,{style:{aspectRatio:String(r.aspectRatio),...c?{backgroundImage:`url(${r.base64})`}:{}},className:`relative max-h-full max-w-full bg-cover ${o}`,children:[(0,i.jsx)(`div`,{className:t?.responsiveImage?`max-md:hidden`:``,children:(0,i.jsx)(a,{aspectRatio:r.aspectRatio,height:e.height,width:e.width??0})}),t?.responsiveImage&&(0,i.jsx)(`div`,{className:`md:hidden`,children:(0,i.jsx)(a,{aspectRatio:t.responsiveImage.aspectRatio,height:t.height,width:t.width??0})}),(0,i.jsxs)(`picture`,{className:`absolute inset-0`,children:[t?.responsiveImage&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(`source`,{media:`(max-width: 767px)`,srcSet:t.responsiveImage.webpSrcSet??void 0,type:`image/webp`}),(0,i.jsx)(`source`,{media:`(max-width: 767px)`,srcSet:t.responsiveImage.srcSet??void 0})]}),(0,i.jsx)(`source`,{srcSet:r.webpSrcSet??void 0,type:`image/webp`}),(0,i.jsx)(`source`,{srcSet:r.srcSet??void 0}),(0,i.jsx)(`img`,{ref:s,alt:r.alt??e.alt??``,fetchPriority:n?void 0:`high`,height:e.height??void 0,loading:n?`lazy`:void 0,onLoad:()=>l(!1),src:r.src??void 0,title:r.title??void 0,width:e.width??void 0})]})]})}return e?.format===`svg`?(0,i.jsx)(`div`,{className:`relative ${o}`,children:(0,i.jsxs)(`picture`,{className:o,children:[t?.format===`svg`&&(0,i.jsx)(`source`,{media:`(max-width: 767px)`,srcSet:t.url}),(0,i.jsx)(`img`,{className:o,alt:e.alt??``,height:e.height??void 0,loading:n?`lazy`:void 0,src:e.url,width:e.width??void 0})]})}):null}export{o as t};
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.