1import{c4 as X,d as J,e as D,ak as tt,b as et,ad as it,o as nt,a5 as at,aD as ot,A as $,K as st,j as L,k as x,l as A,m as rt,Q as ct,V as pt,L as P,q as ht,x as lt,aY as dt,b6 as ut,N as mt,O as T,au as ft,M as Z,$ as gt,z as M,a1 as H,a$ as yt,aC as wt,aw as vt,G as Ct}from"./BGumk58u.js";import{P as _t}from"./eAdjwZLi.js";import{u as St}from"./Cy-1-TGW.js";const Rt={captionContent:".pswp-caption-content",type:"auto",horizontalEdgeThreshold:20,mobileCaptionOverlapRatio:.3,mobileLayoutBreakpoint:600,verticallyCenterImage:!1};class zt{constructor(t,e){this.options={...Rt,...e},this.lightbox=t,this.lightbox.on("init",()=>{this.pswp=this.lightbox.pswp,this.initCaption()})}initCaption(){const{pswp:t}=this;t.on("change",()=>{this.showCaption(this.pswp.currSlide)}),t.on("calcSlideSize",e=>this.onCalcSlideSize(e)),t.on("slideDestroy",e=>{e.slide.dynamicCaption&&(e.slide.dynamicCaption.element&&e.slide.dynamicCaption.element.remove(),delete e.slide.dynamicCaption)}),t.on("zoomPanUpdate",({slide:e})=>{if(t.opener.isOpen&&e.dynamicCaption){if(e.currZoomLevel>e.zoomLevels.initial?this.hideCaption(e):this.showCaption(e),e.dynamicCaption.element){let p=0;if(e.currZoomLevel<=e.zoomLevels.initial){const i=e.pan.y-e.bounds.center.y;Math.abs(i)>1&&(p=i)}this.setCaptionYOffset(e.dynamicCaption.element,p)}this.adjustPanArea(e,e.currZoomLevel)}}),t.on("beforeZoomTo",e=>{this.adjustPanArea(t.currSlide,e.destZoomLevel)}),t.on("tapAction",e=>{e.originalEvent.target.closest(".pswp__dynamic-caption")&&e.preventDefault()})}adjustPanArea(t,e){t.dynamicCaption&&t.dynamicCaption.adjustedPanAreaSize&&(e>t.zoomLevels.initial?(t.panAreaSize.x=t.dynamicCaption.originalPanAreaSize.x,t.panAreaSize.y=t.dynamicCaption.originalPanAreaSize.y):(t.panAreaSize.x=t.dynamicCaption.adjustedPanAreaSize.x,t.panAreaSize.y=t.dynamicCaption.adjustedPanAreaSize.y))}useMobileLayout(){const{mobileLayoutBreakpoint:t}=this.options;return typeof t=="function"?t.call(this):typeof t=="number"&&window.innerWidth<t}hideCaption(t){if(t.dynamicCaption&&!t.dynamicCaption.hidden){const e=t.dynamicCaption.element;if(!e)return;t.dynamicCaption.hidden=!0,e.classList.add("pswp__dynamic-caption--faded"),t.captionFadeTimeout&&clearTimeout(t.captionFadeTimeout),t.captionFadeTimeout=setTimeout(()=>{e.style.visibility="hidden",delete t.captionFadeTimeout},400)}}setCaptionYOffset(t,e){t.style.transform=`translateY(${e}px)`}showCaption(t){if(t.dynamicCaption&&t.dynamicCaption.hidden){const e=t.dynamicCaption.element;if(!e)return;t.dynamicCaption.hidden=!1,e.style.visibility="visible",clearTimeout(t.captionFadeTimeout),t.captionFadeTimeout=setTimeout(()=>{e.classList.remove("pswp__dynamic-caption--faded"),delete t.captionFadeTimeout},50)}}setCaptionPosition(t,e,p){const i=e<=this.options.horizontalEdgeThreshold;t.classList[i?"add":"remove"]("pswp__dynamic-caption--on-hor-edge"),t.style.left=e+"px",t.style.top=p+"px"}setCaptionWidth(t,e){e?t.style.width=e+"px":t.style.removeProperty("width")}setCaptionType(t,e){const p=t.dataset.pswpCaptionType;e!==p&&(t.classList.add("pswp__dynamic-caption--"+e),t.classList.remove("pswp__dynamic-caption--"+p),t.dataset.pswpCaptionType=e)}updateCaptionPosition(t){if(!t.dynamicCaption||!t.dynamicCaption.type||!t.dynamicCaption.element)return;if(t.dynamicCaption.type==="mobile"){this.setCaptionType(t.dynamicCaption.element,t.dynamicCaption.type),t.dynamicCaption.element.style.removeProperty("left"),t.dynamicCaption.element.style.removeProperty("top"),this.setCaptionWidth(t.dynamicCaption.element,!1);return}const e=t.zoomLevels.initial,p=Math.ceil(t.width*e),i=Math.ceil(t.height*e);this.setCaptionType(t.dynamicCaption.element,t.dynamicCaption.type),t.dynamicCaption.type==="aside"?(this.setCaptionPosition(t.dynamicCaption.element,t.bounds.center.x+p,t.bounds.center.y),this.setCaptionWidth(t.dynamicCaption.element,!1)):t.dynamicCaption.type==="below"&&(this.setCaptionPosition(t.dynamicCaption.element,t.bounds.center.x,t.bounds.center.y+i),this.setCaptionWidth(t.dynamicCaption.element,p))}onCalcSlideSize(t){const{slide:e}=t;let p,i;if(!e.dynamicCaption){e.dynamicCaption={element:void 0,type:!1,hidden:!1};const h=this.getCaptionHTML(e);if(!h)return;e.dynamicCaption.element=document.createElement("div"),e.dynamicCaption.element.className="pswp__dynamic-caption pswp__hide-on-close",e.dynamicCaption.element.innerHTML=h,this.pswp.dispatch("dynamicCaptionUpdateHTML",{c
1aptionElement:e.dynamicCaption.element,slide:e}),e.holderElement.appendChild(e.dynamicCaption.element)}if(!e.dynamicCaption.element)return;this.storeOriginalPanAreaSize(e),e.bounds.update(e.zoomLevels.initial),this.useMobileLayout()?(e.dynamicCaption.type="mobile",i=!0):this.options.type==="auto"?e.bounds.center.x>e.bounds.center.y?e.dynamicCaption.type="aside":e.dynamicCaption.type="below":e.dynamicCaption.type=this.options.type;const n=Math.ceil(e.width*e.zoomLevels.initial),a=Math.ceil(e.height*e.zoomLevels.initial);if(this.setCaptionType(e.dynamicCaption.element,e.dynamicCaption.type),e.dynamicCaption.type==="aside"){this.setCaptionWidth(e.dynamicCaption.element,!1),p=this.measureCaptionSize(e.dynamicCaption.element,t.slide);const h=p.x,m=n+e.bounds.center.x;e.panAreaSize.x-m<=h&&(e.panAreaSize.x-=h,this.recalculateZoomLevelAndBounds(e))}else if(e.dynamicCaption.type==="below"||i){this.setCaptionWidth(e.dynamicCaption.element,i?this.pswp.viewportSize.x:n),p=this.measureCaptionSize(e.dynamicCaption.element,t.slide);const h=p.y;if(this.options.verticallyCenterImage)e.panAreaSize.y-=h,this.recalculateZoomLevelAndBounds(e);else{const m=a+e.bounds.center.y,r=e.panAreaSize.y-m,u=e.panAreaSize.y;if(r<=h){e.panAreaSize.y-=Math.min((h-r)*2,h),this.recalculateZoomLevelAndBounds(e);const d=e.panAreaSize.x*this.options.mobileCaptionOverlapRatio/2;i&&e.bounds.center.x>d&&(e.panAreaSize.y=u,this.recalculateZoomLevelAndBounds(e))}}}this.storeAdjustedPanAreaSize(e),this.updateCaptionPosition(e)}measureCaptionSize(t,e){const p=t.getBoundingClientRect();return this.pswp.dispatch("dynamicCaptionMeasureSize",{captionEl:t,slide:e,captionSize:{x:p.width,y:p.height}}).captionSize}recalculateZoomLevelAndBounds(t){t.zoomLevels.update(t.width,t.height,t.panAreaSize),t.bounds.update(t.zoomLevels.initial)}storeAdjustedPanAreaSize(t){t.dynamicCaption&&(t.dynamicCaption.adjustedPanAreaSize||(t.dynamicCaption.adjustedPanAreaSize={}),t.dynamicCaption.adjustedPanAreaSize.x=t.panAreaSize.x,t.dynamicCaption.adjustedPanAreaSize.y=t.panAreaSize.y)}storeOriginalPanAreaSize(t){t.dynamicCaption&&(t.dynamicCaption.originalPanAreaSize||(t.dynamicCaption.originalPanAreaSize={}),t.dynamicCaption.originalPanAreaSize.x=t.panAreaSize.x,t.dynamicCaption.originalPanAreaSize.y=t.panAreaSize.y)}getCaptionHTML(t){if(typeof this.options.captionContent=="function")return this.options.captionContent.call(this,t);const e=t.data.element;let p="";if(e){const i=e.querySelector(this.options.captionContent);if(i)p=i.innerHTML;else{const n=e.querySelector("img");n&&(p=n.getAttribute("alt"))}}return p}}var W={exports:{}};var q;function bt(){if(q)return W.exports;q=1;var z=W.exports=function(t){this.top=t.top,this.left=t.left,this.width=t.width,this.spacing=t.spacing,this.targetRowHeight=t.targetRowHeight,this.targetRowHeightTolerance=t.targetRowHeightTolerance,this.minAspectRatio=this.width/t.targetRowHeight*(1-t.targetRowHeightTolerance),this.maxAspectRatio=this.width/t.targetRowHeight*(1+t.targetRowHeightTolerance),this.edgeCaseMinRowHeight=t.edgeCaseMinRowHeight,this.edgeCaseMaxRowHeight=t.edgeCaseMaxRowHeight,this.widowLayoutStyle=t.widowLayoutStyle,this.isBreakoutRow=t.isBreakoutRow,this.items=[],this.height=0};return z.prototype={addItem:function(t){var e=this.items.concat(t),p=this.width-(e.length-1)*this.spacing,i=e.reduce(function(r,u){return r+u.aspectRatio},0),n=p/this.targetRowHeight,a,h,m;return this.isBreakoutRow&&this.items.length===0&&t.aspectRatio>=1?(this.items.push(t),this.completeLayout(p/t.aspectRatio,"justify"),!0):i<this.minAspectRatio?(this.items.push(Object.assign({},t)),!0):i>this.maxAspectRatio?this.items.length===0?(this.items.push(Object.assign({},t)),this.completeLayout(p/i,"justify"),!0):(a=this.width-(this.items.length-1)*this.spacing,h=this.items.reduce(function(r,u){return r+u.aspectRatio},0),m=a/this.targetRowHeight,Math.abs(i-n)>Math.abs(h-m)?(this.completeLayout(a/h,"justify"),!1):(this.items.push(Object.assign({},t)),this.completeLayout(p/i,"justify"),!0)):(this.items.push(Object.assign({},t)),this.completeLayout(p/i,"justify"),!0)},isLayoutComplete:function(){return this.height>0},completeLayout:function(t,e){var p=this.left,i=this.width-(this.items.length-1)*this.spacing,n,a,h,m,r,u;(typeof e>"u"||["justify","center","left"].indexOf(e)<0)&&(e="left"),a=Math.max(this.edgeCaseMinRowHeight,Math.min(t,this.edgeCaseMaxRowHeight)),t!==a?(this.height=a,n=i/a/(i/t)):(this.height=t,n=1),this.items.forEac
1h(function(d){d.top=this.top,d.width=d.aspectRatio*this.height*n,d.height=this.height,d.left=p,p+=d.width+this.spacing},this),e==="justify"?(p-=this.spacing+this.left,h=(p-this.width)/this.items.length,m=this.items.map(function(d,v){return Math.round((v+1)*h)}),this.items.length===1?(r=this.items[0],r.width-=Math.round(h)):this.items.forEach(function(d,v){v>0?(d.left-=m[v-1],d.width-=m[v]-m[v-1]):d.width-=m[v]})):e==="center"&&(u=(this.width-p)/2,this.items.forEach(function(d){d.left+=u+this.spacing},this))},forceComplete:function(t,e){typeof e=="number"?this.completeLayout(e,this.widowLayoutStyle):this.completeLayout(this.targetRowHeight,this.widowLayoutStyle)},getItems:function(){return this.items}},W.exports}var N,V;function Lt(){if(V)return N;V=1;var z=bt();function t(i,n){var a;return i.fullWidthBreakoutRowCadence!==!1&&(n._rows.length+1)%i.fullWidthBreakoutRowCadence===0&&(a=!0),new z({top:n._containerHeight,left:i.containerPadding.left,width:i.containerWidth-i.containerPadding.left-i.containerPadding.right,spacing:i.boxSpacing.horizontal,targetRowHeight:i.targetRowHeight,targetRowHeightTolerance:i.targetRowHeightTolerance,edgeCaseMinRowHeight:.5*i.targetRowHeight,edgeCaseMaxRowHeight:2*i.targetRowHeight,rightToLeft:!1,isBreakoutRow:a,widowLayoutStyle:i.widowLayoutStyle})}function e(i,n,a){return n._rows.push(a),n._layoutItems=n._layoutItems.concat(a.getItems()),n._containerHeight+=a.height+i.boxSpacing.vertical,a.items}function p(i,n,a){var h=[],m,r,u;return i.forceAspectRatio&&a.forEach(function(d){d.forcedAspectRatio=!0,d.aspectRatio=i.forceAspectRatio}),a.some(function(d,v){if(isNaN(d.aspectRatio))throw new Error("Item "+v+" has an invalid aspect ratio");if(r||(r=t(i,n)),m=r.addItem(d),r.isLayoutComplete()){if(h=h.concat(e(i,n,r)),n._rows.length>=i.maxNumRows)return r=null,!0;if(r=t(i,n),!m&&(m=r.addItem(d),r.isLayoutComplete())){if(h=h.concat(e(i,n,r)),n._rows.length>=i.maxNumRows)return r=null,!0;r=t(i,n)}}}),r&&r.getItems().length&&i.showWidows&&(n._rows.length?(n._rows[n._rows.length-1].isBreakoutRow?u=n._rows[n._rows.length-1].targetRowHeight:u=n._rows[n._rows.length-1].height,r.forceComplete(!1,u)):r.forceComplete(!1),h=h.concat(e(i,n,r)),i._widowCount=r.getItems().length),n._containerHeight=n._containerHeight-i.boxSpacing.vertical,n._containerHeight=n._containerHeight+i.containerPadding.bottom,{containerHeight:n._containerHeight,widowCount:i._widowCount,boxes:n._layoutItems}}return N=function(i,n){var a={},h={},m={containerWidth:1060,containerPadding:10,boxSpacing:10,targetRowHeight:320,targetRowHeightTolerance:.25,maxNumRows:Number.POSITIVE_INFINITY,forceAspectRatio:!1,showWidows:!0,fullWidthBreakoutRowCadence:!1,widowLayoutStyle:"left"},r={},u={};return n=n||{},a=Object.assign(m,n),r.top=isNaN(parseFloat(a.containerPadding.top))?a.containerPadding:a.containerPadding.top,r.right=isNaN(parseFloat(a.containerPadding.right))?a.containerPadding:a.containerPadding.right,r.bottom=isNaN(parseFloat(a.containerPadding.bottom))?a.containerPadding:a.containerPadding.bottom,r.left=isNaN(parseFloat(a.containerPadding.left))?a.containerPadding:a.containerPadding.left,u.horizontal=isNaN(parseFloat(a.boxSpacing.horizontal))?a.boxSpacing:a.boxSpacing.horizontal,u.vertical=isNaN(parseFloat(a.boxSpacing.vertical))?a.boxSpacing:a.boxSpacing.vertical,a.containerPadding=r,a.boxSpacing=u,h._layoutItems=[],h._awakeItems=[],h._inViewportItems=[],h._leadingOrphans=[],h._trailingOrphans=[],h._containerHeight=a.containerPadding.top,h._rows=[],h._orphans=[],a._widowCount=0,p(a,h,i.map(function(d){return d.width&&d.height?{aspectRatio:d.width/d.height}:{aspectRatio:d}}))},N}var xt=Lt();const At=X(xt),Pt={key:0},Tt={key:0,class:"title"},Ht=["innerHTML"],kt=J({__name:"Container.client",props:{section:{}},setup(z){const t=z,e=M(),p=D(),i=tt(),n=et(),{style:a,classes:h,settings:m}=St(t.section),r=vt({containerWidth:void 0,containerPadding:{top:void 0,right:void 0,bottom:void 0,left:void 0},boxSpacing:10,targetRowHeight:320}),u=M(null),d=M(null),v=(t.section.contents||[]).sort((o,l)=>(o?.position||0)-(l?.position||0)),Y=H(()=>{let o="none";if(m.length){const l=m.find(s=>
1s.key==="image-hover-effect");l?.value!==void 0&&(o=l.value)}return o!=="none"?"hover-"+o:""}),G=H(()=>{const o=m.find(l=>l.key==="caption-on-hover");return o?.value===!0||o?.value==="true"}),j=v.map(o=>{const l=o.images?.[0];return l?(l.title=o.title,l.text=o.text,l):!1}).filter(Boolean),U=j.map(o=>{const l=o.pivot?.z||1,s=o.pivot?.w||o.width/l,c=o.pivot?.h||o.height/l;return s/c}),O=H(()=>At(U,r)),E=H(()=>{let o=[];const l=(s,c=null)=>{const f=s.pivot;let g=yt(f?.fit||"fit=crop&crop=focalpoint&x=.5&y=.5&z=1"),y;!y&&s?.srcset?.length&&(y=s.srcset.find(I=>I.type===g)),!y&&s?.files?.length&&(y=s.files.find(I=>I.type===g));let{w,h:C,z:_}=f;_||(_=1);let R=s.width/_,S=s.height/_,b=R/S;return w&&C?(b=w/C,c&&C>c&&(S=c),S*b>s.width/_?S=R/b:R=S*b):!w&&!C&&c&&S>c&&(S=c,R=S*b),{id:s.id,src:y?.url||s?.source?.url,width:R,height:S,aspectRatio:b}};return j.forEach((s,c)=>{let f=500;const g=m.find(R=>R.key==="height");g&&g.value&&(f=g.value*1.2);const y=O.value.boxes[c];let w,C,_;w=s,_=l(w),C=l(w,f),o.push({style:y,data:w,thumbnail:C,image:_})}),o}),Q=E.value.map(o=>{const l=o.image.id,s=o.image.src,c=o.image.width,f=o.image.height,g=o.data?.title;let y="";return o.data.title&&(y+=`<h4>${o.data.title}</h4>`),o.data.text&&(y+=o.data.text),{id:l,src:s,width:c,height:f,alt:g,caption:y}}),K=(o,l)=>{const s=v[l];if(s&&s.hyperlink){o.preventDefault(),o.stopPropagation();const c=s.hyperlink.href;let f,g;switch(s.hyperlink.type){case"internal":{const y=wt(s.hyperlink,"menuItem.path");if(y){let w=n.resolve(y);if(w&&p.CMS?.i18n&&i.language?.code){const C=s.hyperlink?.menuItem?.translations?.find(_=>_.language?.code===i.language?.code);C?w=n.resolve(C.path):w.query.language=i.language?.code}n.push(w);return}break}case"external":{c&&!c.startsWith("https://")&&!c.startsWith("http://")?f=`https://${c}`:f=c,g=s.hyperlink.target||"_self";break}case"mailto":{f=`mailto:${c}`,g="_self";break}case"tel":{f=`tel:${c}`,g="_self";break}}f?window.open(f,g):u.value.loadAndOpen(l)}else u.value.loadAndOpen(l)};let B=0;const k=()=>{const o=m.find(s=>s.key==="spacing");o&&o.value&&(r.boxSpacing=o.value);const l=m.find(s=>s.key==="height");if(l&&l.value&&(r.targetRowHeight=l.value),e.value.offsetWidth){const s=getComputedStyle(e.value);r.containerWidth=e.value.offsetWidth,r.containerPadding={top:parseInt(s.paddingTop),right:parseInt(s.paddingRight),bottom:parseInt(s.paddingBottom),left:parseInt(s.paddingLeft)}}else B++,setTimeout(()=>{B<1e3&&k()})},F=it(function(){k()});return nt(async()=>{window.addEventListener("resize",F),await at(),!u.value&&e.value&&(u.value=new _t({dataSource:Q,padding:{top:60,bottom:60,left:60,right:60},errorMsg:$("could-not-load",{type:$("image")}),pswpModule:()=>ot(()=>import("./BXDdABy_.js"),[],import.meta.url)}),u.value.on("uiRegister",()=>{u.value.pswp.ui.registerElement({name:"bulletsIndicator",className:"pswp__bullets-indicator",appendTo:"wrapper",onInit:(o,l)=>{const s=[];let c,f=-1;for(let g=0;g<l.getNumItems();g++){c=document.createElement("label"),c.className="pswp__bullet",c.onclick=w=>{l.goTo(s.indexOf(w.target))};let y=document.createElement("img");y.src="/_ipx/w_120/"+l.options.dataSource[g].src,c.appendChild(y),o.appendChild(c),s.push(c)}l.on("change",g=>{f>=0&&s[f].classList.remove("pswp__bullet--active"),s[l.currIndex].classList.add("pswp__bullet--active"),f=l.currIndex})}})}),d.value=new zt(u.value,{type:"auto",captionContent:o=>o?.data?.caption}),typeof u.value?.init=="function"&&u.value.init()),k()}),st(()=>{window.removeEventListener("resize",F),u.value&&(u.value.destroy(),u.value=null)}),(o,l)=>{const s=gt;return L(v)&&L(v).length?(x(),A("section",{key:0,class:Z(["content",[L(h),{"caption-on-hover":G.value}]]),style:P(L(a))},[rt("div",{class:"column preview-img-list is-offset-1 is-10",ref_key:"container",ref:e,style:P({height:`${O.value.containerHeight}px`})},[(x(!0),A(ct,null,pt(E.value,(c,f)=>(x(),A("div",{class:"box",style:P({top:`${c.style.top}px`,left:`${c.style.left}px`})},[ht(s,{class:Z(["preview-img-item",Y.value]),image:c.data,lazy:!0,"object-fit":"contain",title:c.data.title,is:"a",style:P({width:`${c.style.width}px`,height:`${c.style.height}px`}),sizes:`${c.style.width}px`,onClick:ft(g=>K(g,f),["prevent"])},{default:lt(()=>[c.data.title||("trim"in o?o.trim:L(dt))(L(ut)(c.data.text))?(x(),A("figcaption",Pt,[c.data.title?(x(),A("div",Tt,mt(c.data.title),1)):T("",!0),c.data.text?(x(),A("div",{key:1,class:"text",innerHTML:c.data.text},null,8,Ht)):T("",!0)])):T("",!0)]),_:2}
1,1032,["image","title","class","style","sizes","onClick"])],4))),256))],4)],6)):T("",!0)}}}),Nt=Ct(kt,[["__scopeId","data-v-cd7cf11b"]]);export{Nt 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.