import{_ as h}from"./DpUJxqoL.js";import{_ as g}from"./DFAeCl5-.js";import{u as v}from"./DNc4hpnL.js";import{k as x,d as C}from"./Cfh3kXIQ.js";import{l as L,al as w,a2 as N,E as a,F as P,N as B,P as i,J as D,Z as S,O as u,u as o,L as d,Q as _,U as s}from"./DEIzhR9A.js";import"./_ECBCnJP.js";import"./DKI1tQ5i.js";const $={key:0,class:"my-2 text-center text-md"},q={key:0,class:"my-2 text-center text-md"},R=L({__name:"ShopableImage",props:{blok:{type:Object,required:!0}},setup(e){const l=e,{marginClasses:r}=v(l.blok),k=x(),p=C(),f=k(p.path.replace(/\/$/,"")+"/"+l.blok._uid);return(z,E)=>{const n=h,b=g,y=w("editable");return N((a(),P(b,{to:o(f)},{default:B(()=>[(a(!0),i(D,null,S(e.blok.image,t=>{var c,m;return a(),i("div",{key:t._uid},[(c=t.desktop_image)!=null&&c.filename?(a(),i("div",{key:0,class:u(["hidden w-full sm:block",o(r)])},[d(n,{class:"picture picture-contain",provider:"storyblok",src:t.desktop_image.filename,alt:t.desktop_image.alt,quality:85,loading:"lazy"},null,8,["src","alt"]),e.blok.image_title?(a(),i("div",$,_(e.blok.image_title),1)):s("",!0)],2)):s("",!0),(m=t.mobile_image)!=null&&m.filename?(a(),i("div",{key:1,class:u(["w-full sm:hidden",o(r)])},[d(n,{class:"picture picture-contain",provider:"storyblok",src:t.mobile_image.filename,alt:t.mobile_image.alt},null,8,["src","alt"]),e.blok.image_title_mobile?(a(),i("div",q,_(e.blok.image_title_mobile),1)):s("",!0)],2)):s("",!0)])}),128))]),_:1},8,["to"])),[[y,e.blok]])}}});export{R as default};