import{d as b,aN as x,c as o,m as t,s as i,C as n,b as m,bv as y,F as R,D as $,v as f,G as w,x as z,aH as A,Z as N,a1 as P,t as k,K as C,M as S,aV as v,n as U}from"./entry.YecQDbUo.js";const V=["src","alt"],W=["media","srcset"],F=["src","alt"],E={key:1,class:"text-caption text-center"},I=b({inheritAttrs:!1,__name:"Image",setup(D){const e=x(),r=e.width?parseInt(`${e.width}`):void 0,d=[{width:745,mediaWidth:600}],c=o(()=>({float:e.position,[e.position=="right"?"margin-left":"margin-right"]:"1rem"})),u=o(()=>{var s,a;return e["asset-alt"]??((a=(s=e.context)==null?void 0:s.custom)==null?void 0:a.alt)}),p=o(()=>{var s,a;return(a=(s=e.context)==null?void 0:s.custom)==null?void 0:a.caption}),l=o(()=>{var s;return(s=e.derived)==null?void 0:s.map(a=>a.raw_transformation)[0]});return(s,a)=>{var h,_;return t(e).inline?(i(),n("img",{key:0,src:(h=("useCloudinaryImage"in s?s.useCloudinaryImage:t(m))(t(e).public_id,{width:t(e).width,transform:t(l)}))==null?void 0:h.toURL(),alt:t(u),style:y({maxWidth:"100%",...t(c)})},null,12,V)):(i(),n("picture",{key:1,class:A({"my-5 d-block":!t(e).inline})},[t(r)?w("",!0):(i(),n(R,{key:0},$(d,({mediaWidth:B,width:L})=>{var g;return f("source",{media:`(min-width: ${B}px)`,srcset:(g=("useCloudinaryImage"in s?s.useCloudinaryImage:t(m))(t(e).public_id,{width:L,transform:t(l)}))==null?void 0:g.toURL()},null,8,W)}),64)),f("img",{src:(_=("useCloudinaryImage"in s?s.useCloudinaryImage:t(m))(t(e).public_id,{width:t(e).width??600,transform:t(l)}))==null?void 0:_.toURL(),alt:t(u),style:y({maxWidth:"100%",width:t(r)??"100%"}),class:"mx-auto d-block"},null,12,F),!t(e).inline&&(t(e)["asset-caption"]||t(p))?(i(),n("figcaption",E,z(t(e)["asset-caption"]?t(e)["asset-caption"]:t(p)),1)):w("",!0)],2))}}}),G=["href"],K=b({inheritAttrs:!1,__name:"index",setup(D){const e=x();return(r,d)=>{const c=N("hc-target");return t(e).link?P((i(),n("a",{key:0,href:t(e).link},[(i(),k(v(t(I)),C(S(t(e))),null,16))],8,G)),[[c]]):(i(),k(v(t(I)),C(U({key:1},t(e))),null,16))}}});export{K as default};