1import{_ as q}from"./aGW1nfcV.js";import{d as D,e as V,ak as G,b as O,k as r,l as m,r as T,x as y,q as A,$ as F,L as x,M as b,j as o,N as w,O as h,b1 as H,b2 as J,b0 as K,a1 as i,G as Q}from"./BGumk58u.js";import{u as U}from"./Cy-1-TGW.js";const X={key:0},Y={key:0},Z={key:1},ee=D({__name:"Image",props:{section:{}},setup(S){const C=V(),f=G(),v=O(),_=S;let{style:g,classes:I,settings:s}=U(_.section);const c=_.section?.contents?.[0],P=c?.images?.[0],u=c?.title,p=c?.sub_title,R=c?.hyperlink,$=i(()=>{let e="box-shadow-0";if(s.length){const t=s.find(n=>n.key==="image_shadow");t?.value!==void 0&&(e=t.value)}return e}),z=i(()=>{let e="false";if(s.length){const t=s.find(n=>n.key==="image-rounded");t?.value!==void 0&&(e=t.value)}return["true","1","yes",!0].includes(e)}),L=i(()=>{let e="100%";if(s.length){const t=s.find(n=>n.key==="image-max-width");t?.value!==void 0&&(e=t.value)}return e}),N=i(()=>{let e="center";if(s.length){const t=s.find(n=>n.key==="image-alignment");t?.value!==void 0&&(e=t.value)}return e}),k=i(()=>{let e="none";if(s.length){const t=s.find(n=>n.key==="image-hover-effect");t?.value!==void 0&&(e=t.value)}return e!=="none"?"hover-"+e:""}),a=R,W=a?.target||"_self";a?.type=="internal";let l;if(a?.menuItem?.path&&(l=v.resolve(a?.menuItem?.path)),l&&C.CMS?.i18n&&f.language?.code){const e=a?.menuItem?.translations?.find(t=>t.language?.code===f.language?.code);e?l=v.resolve(e.path):l.query.language=f.language?.code}const B=i(()=>{let e=!1;if(a?.type!=="internal"&&a?.href){const t=a.href;switch(a.type){case"external":!t.startsWith("https://")&&!t.startsWith("http://")?e=`https://${t}`:e=t;break;case"mailto":e=`mailto:${t}`;break;case"tel":e=`tel:${t}`;break}}return e}),d=i(()=>{let e="div";return a?.type==="internal"&&a?.menuItem?e=q:a?.type==="external"&&a?.href?.length&&(e="a"),e}),E=i(()=>{let e={};return d.value==="a"?(e.title="Link",e.href=B.value,e.target=W,e.rel="noopener"):d.value?.name==="NuxtLink"&&(e.to=l),e}),M=i(()=>d.value!=="div"),j=i(()=>{const e=[$.value];return M.value&&k.value&&e.push(k.value),e});return g={"--alignment":N.value,...g},(e,t)=>{const n=F;return r(),m("section",{class:b(["content",o(I)]),style:x(o(g))},[(r(),T(K(d.value),H(J(E.value)),{default:y(()=>[A(n,{image:o(P),lazy:!0,title:o(u),class:b(j.value),"object-fit":"contain",style:x({width:L.value}),"image-rounded":z.value,"show-placeholder":!0},{default:y(()=>[o(u)||o(p)?(r(),m("figcaption",X,[o(u)?(r(),m("p",Y,w(o(u)),1)):h("",!0),o(p)?(r(),m("small",Z,w(o(p)),1)):h("",!0)])):h("",!0)]),_:1},8,["image","title","class","style","image-rounded"])]),_:1},16))],6)}}}),se=Q(ee,[["__scopeId","data-v-d4a52ed8"]]);export{se 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.