import{_ as d}from"./WebImage-BBQZzdK6.mjs";import{_ as c,o as s,c as n,d as l,v as f,a as p,F as _,r as g,n as y}from"./entry.DPwc-EV0.js";const b={props:{item:{type:Object,required:!0},imageAspectRatio:{type:Number,default:1.8}},computed:{imageAlt(){var e,r,t,i;return((r=(e=this==null?void 0:this.item)==null?void 0:e.primaryImage)==null?void 0:r.displayName)??((i=(t=this==null?void 0:this.item)==null?void 0:t.primaryImage)==null?void 0:i.alt)??""},imageUrl(){var i;const{src:e,isLogo:r}=((i=this.item)==null?void 0:i.primaryImage)??{};return e?`${e.split("?")[0]}?auto=format,compress&fit=${r?"fill&fill-color=white&pad=5":"crop"}`:""},itemUrl(){var e;return((e=this.item.siteContext)==null?void 0:e.path)??""}}},h={class:f(["ebm-content-image-item"]),style:{display:"block",flexDirection:"row"}};function C(e,r,t,i,u,a){const m=d;return s(),n("div",h,[l(m,{image:a.imageUrl,alt:a.imageAlt,credit:t.item.primaryImage?t.item.primaryImage.credit:"","credit-position":"top","content-type":t.item.contentType||t.item.type,"image-link":a.itemUrl,"aspect-ratio":"full-teaser"},null,8,["image","alt","credit","content-type","image-link"])])}const I=c(b,[["render",C],["__scopeId","data-v-6e358baa"]]),k={props:{items:{type:Array,default(){return[]}},numberOfColumns:{type:Number,default:4}},emits:["item-click"],computed:{cssVars(){let e="";for(let r=0;r =4?"1fr 1fr 1fr 1fr":e,"--three-columns":this.numberOfColumns>=3?"1fr 1fr 1fr":e,"--two-columns":this.numberOfColumns>=2?"1fr 1fr":e}}}},x={class:"web-content-image-grid"},v=["onClick"];function w(e,r,t,i,u,a){const m=I;return s(),n("div",{class:"web-content-image-grid-wrapper",style:y(a.cssVars)},[p("div",x,[(s(!0),n(_,null,g(t.items,o=>(s(),n("div",{key:o.id,class:"item",onClick:()=>{e.$emit("item-click",o)}},[l(m,{class:"content-item",item:o},null,8,["item"])],8,v))),128))])],4)}const N=c(k,[["render",w],["__scopeId","data-v-70065d14"]]);export{N as default};