1import{e as y,_ as b,d as w,h as z}from"./p7j0WGZt.js";import{m as g,M as t,Y as l,N as r,I as d,u as a,Q as p,X as h,$ as k,U as v,p as u}from"./uOatmh1Q.js";/* empty css */import{e as P}from"./CwQ1es6R.js";const S=g({__name:"NoPicture",props:{size:{default:110}},setup(s){const e=s;return(m,o)=>{const n=y;return t(),l(n,{name:"ui/no-img",size:e.size},null,8,["size"])}}}),x=b(S,[["__scopeId","data-v-bcdeb477"]]),$={key:0},B=["srcset"],C=["srcset","media"],U=["srcset","media"],I=["src","alt"],N=g({__name:"Picture",props:{picture:{},mobilePictureSrc:{},fill:{type:Boolean},width:{},height:{},size:{},noPictureSize:{},cover:{type:Boolean},isLargestContentfulPaint:{type:Boolean},alt:{}},setup(s){const e=s,m=w(),o=u(()=>!!e.picture);e.isLargestContentfulPaint&&o.value&&z({link:[{rel:"preload",fetchpriority:"high",as:"image",href:m.isDesktop||!e.mobilePictureSrc?e.picture?.webp??e.picture?.src:e.mobilePictureSrc}]});const n=u(()=>{if(!o.value||!e.cover||!e.picture?.src&&e.picture?.webp)return;let i=e.picture?.webp?e.picture?.webp:e.picture?.src;return`background-image: url("${P(i)}");`}),f=u(()=>{const i=e.width??e.size,c=e.height??e.size;return{width:i?i+"px":void 0,height:c?c+"px":void 0}});return(i,c)=>{const _=x;return t(),r("div",{class:v(["ui-picture",{cover:e.cover,fill:e.fill}]),style:h(a(n))},[e.cover?e.picture?.src?k("",!0):(t(),l(_,{key:1,size:e.noPictureSize},null,8,["size"])):(t(),r(d,{key:0},[a(o)?(t(),r("picture",$,[e.mobilePictureSrc?(t(),r(d,{key:1},[p("source",{srcset:e.picture?.webp,type:"image/webp",media:`(min-width: ${i.$viewport.breakpointValue("tablet")}px)`},null,8,C),p("source",{srcset:e.mobilePictureSrc,type:"image/webp",media:`(max-width: ${i.$viewport.breakpointValue("tablet")-1}px)`},null,8,U)],64)):(t(),r("source",{key:0,srcset:e.picture?.webp,type:"image/webp"},null,8,B)),p("img",{src:e.picture?.src,alt:e.picture?.alt||e.alt,style:h(a(f)),loading:"lazy"},null,12,I)])):(t(),l(_,{key:1,size:e.noPictureSize},null,8,["size"]))],64))],6)}}}),E=b(N,[["__scopeId","data-v-1aa748b4"]]);export{E as _};
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.