1import{_ as m,q as l,t as u}from"./app.js";import"./swiper.js";const c={name:"CasGallery",components:{SizedImage:l},props:["element"],computed:{layout(){var e,t,i;return(i=(t=(e=this.element)==null?void 0:e.data)==null?void 0:t.layout)!=null?i:"fullsize"},layoutClass(){return this.layout==="5-col"?"--layout-col-5":this.layout==="4-col"?"--layout-col-4":""},items(){var e,t,i;return(i=(t=(e=this.element)==null?void 0:e.data)==null?void 0:t.items)!=null?i:[]},responsiveSteps(){return this.layout==="4-col"?[{width:212,height:212,mediaQuery:"(max-width: 424px)"},{width:192,height:192,mediaQuery:"(max-width: 768px)"},{width:270,height:270,mediaQuery:"(max-width: 990px)"}]:this.layout==="5-col"?[{width:212,height:212,mediaQuery:"(max-width: 424px)"},{width:255,height:255,mediaQuery:"(max-width: 767px)"},{width:198,height:198,mediaQuery:"(max-width: 990px)"},{width:216,height:216,mediaQuery:"(max-width: 1080px)"}]:[{width:213,height:133,mediaQuery:"(max-width: 425px)"},{width:384,height:240,mediaQuery:"(max-width: 767px)"},{width:256,height:160,mediaQuery:"(max-width: 1024px)"},{width:480,height:300,mediaQuery:"(max-width: 1080px)"}]}},methods:{initLightbox(){var i;const e=(i=this.$el)==null?void 0:i.querySelectorAll("figure img");if(!e||!e.length)return;const t=this.items.map(a=>({src:a.img.data_mfp_src||a.img.data_src||a.img.src,desc:a.img.copy||"",size:{width:a.img.width||0,height:a.img.height||0}}));t.length&&new u(e,{type:"gallery",items:t})}},mounted(){this.$nextTick(()=>{this.initLightbox()})}},w=window.Vue.renderList,g=window.Vue.Fragment,o=window.Vue.openBlock,n=window.Vue.createElementBlock,p=window.Vue.resolveComponent,y=window.Vue.createBlock,x=window.Vue.normalizeClass,_=window.Vue.createCommentVNode;function f(e,t,i,a,Q,r){const h=p("SizedImage");return r.items.length?(o(),n("div",{key:0,class:x(["element cas gallery",r.layoutClass])},[(o(!0),n(g,null,w(r.items,(s,d)=>(o(),y(h,{key:s.media_id||d,steps:r.responsiveSteps,image:s.thumb},null,8,["steps","image"]))),128))],2)):_("",!0)}const C=m(c,[["render",f]]);export{C 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.