1import{r as C,ak as p,ai as D}from"./bS0gHfOR.js";import{i as I,e as $}from"./DNfnAFmQ.js";import{t as n}from"./BpcjIewx.js";import{u as j}from"./GkII7gtz.js";import{v as A,ab as F,am as N,B as t,ag as w,y,I as O,$ as R,G as V,C as _,ad as S,D as L,J as a}from"./qHTv0qqf.js";import"./ga_jkbhe.js";import"./C3SNbM6u.js";import"./LZ7KV062.js";import"./CD0phfkn.js";import"./C5Y01Dj9.js";const U=A({__name:"BaseImage",props:{blok:{},width:{},height:{}},async setup(e){let l,u;const d=a(()=>n(e.blok.aspectRatio)),m=a(()=>n(e.blok.size)),v=a(()=>n(e.blok.objectFit)),k=a(()=>n(e.blok.variant)),{storyblokOverride:c}=C(),h=e.blok.imageOverride||"",i=a(()=>c.value?.[h]?.filename||c.value?.[h]?.src?{...e.blok,image:c.value[h]}:e.blok),g=a(()=>I(r.value)),r=a(()=>i.value?.image?.src&&i.value.image.src.trim()!==""?i.value.image.src:i.value?.image?.filename),s=a(()=>{if(g.value){const o=$(i.value.image?.filename??r.value??"");return{width:o.width??i.value.image?.width??e.width,height:o.height??i.value.image?.height??e.height}}return{width:e.width,height:e.height}}),{to:x,target:z}=([l,u]=F(()=>j({link:e.blok.link})),l=await l,u(),l);return(o,G)=>{const b=D,B=p,f=N("editable");return e.blok.link&&t(r)?w((y(),O(B,{key:0,to:t(x),target:t(z),class:R(t(m)==="full"?"h-full w-full":"h-auto max-w-full")},{default:V(()=>[_(b,S({src:t(r),alt:t(i)?.image?.alt||t(i)?.image?.meta_data?.alt||"",title:t(i)?.image?.title||t(i)?.image?.meta_data?.title,width:t(s)?.width,height:t(s)?.height,fit:t(v),variant:t(k),size:t(m),ratio:t(d)},o.$attrs,{provider:t(g)?"storyblok":o.$attrs.provider}),null,16,["src","alt","title","width","height","fit","variant","size","ratio","provider"])]),_:1},8,["to","target","class"])),[[f,e.blok]]):t(r)?w((y(),O(b,S({key:1,src:t(r),alt:t(i)?.image?.alt||t(i)?.image?.meta_data?.alt||"",title:t(i)?.image?.title||t(i)?.image?.meta_data?.title,width:t(s)?.width,height:t(s)?.height,fit:t(v),variant:t(k),size:t(m),ratio:t(d)},o.$attrs,{provider:t(g)?"storyblok":o.$attrs.provider}),null,16,["src","alt","title","width","height","fit","variant","size","ratio","provider"])),[[f,e.blok]]):L("",!0)}}}),X=Object.assign(U,{__name:"SBBaseImage"});export{X 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.