(window.webpackJsonp=window.webpackJsonp||[]).push([[10],{670:function(t,e,n){t.exports={}},723:function(t,e,n){"use strict";n(670)},826:function(t,e,n){"use strict";n.r(e);var r=n(35),o=(n(99),n(24)),l=n(255),c=n(624),h=n(213),m=n(220),d=n(623),f=(n(32),n(22),{props:{image:{type:Object,required:!0},width:{type:Number,required:!1,default:425}},computed:{height:function(){var t=this.image.params.dimensions,e=t.height,n=e/t.width;return Math.floor(this.width*n)},extension:function(){return"=w".concat(this.width,"-h").concat(this.height,"-c")}}}),v=n(40),y=Object(v.a)(f,(function(){var t=this,e=t._self._c;return e("div",{ref:"el",on:{click:function(e){return t.$emit("openGallery")}}},[e("img",{attrs:{src:t.image.url+t.extension}})])}),[],!1,null,null,null).exports,x=n(233),w=(n(13),n(71),{props:{image:{type:Object,required:!0}},data:function(){return{elWidth:0,elHeight:0}},mounted:function(){var t=this.$refs.item.getBoundingClientRect();this.elWidth=t.width,this.elHeight=t.height},computed:{extension:function(){var t=this.maxWidth,e=Math.floor(this.aspectRatio*t);return e>this.maxHeight&&(e=this.maxHeight,t=Math.floor(e/this.aspectRatio)),"=w".concat(t,"-h").concat(e,"-c")},dimensions:function(){return this.image.params.dimensions},height:function(){return this.dimensions.height},width:function(){return this.dimensions.width},maxWidth:function(){return Math.floor(Math.min(this.elWidth,this.width))},maxHeight:function(){return Math.floor(Math.min(this.elHeight,this.height))},aspectRatio:function(){return this.height/this.width}}}),_=Object(v.a)(w,(function(){var t=this,e=t._self._c;return t.image?e(d.a,{directives:[{def:x.a,name:"touch",rawName:"v-touch",value:{left:function(){return t.$emit("previousImage")},right:function(){return t.$emit("nextImage")}},expression:"{\n left: () => $emit('previousImage'),\n right: () => $emit('nextImage')\n }"}],ref:"item",staticStyle:{height:"90vh"},attrs:{justify:"center",align:"center",className:"flex-column"}},[e("img",{attrs:{src:t.image.url+t.extension}}),t._v(" "),e("p",{attrs:{className:"mt-2"}},[t._v(t._s(t.image.description))])]):t._e()}),[],!1,null,null,null).exports,I={props:{images:{type:Array,required:!0}},components:{GalleryItem:y,GalleryOverlayItem:_},data:function(){return{overlay:!1,imageIndex:0,galleryWidth:0}},mounted:function(){var t=this,e=this.isDesktop?4:1;this.galleryWidth=Math.ceil((this.$refs.gallery.getBoundingClientRect().width-48)/e),window.addEventListener("keydown",(function(e){e.defaultPrevented||t.overlay&&(37===e.keyCode?t.previousImage():39===e.keyCode?t.nextImage():27===e.keyCode&&(t.overlay=!1))}),!0)},methods:{previousImage:function(){this.imageIndex?this.imageIndex--:this.imageIndex=this.images.length-1},nextImage:function(){this.imageIndex===this.images.length-1?this.imageIndex=0:this.imageIndex++},openGallery:function(t){this.imageIndex=t,this.overlay=!0}},computed:{imageOverlay:function(){return this.images[this.imageIndex]}}},k=(n(723),{components:{itwGallery:Object(v.a)(I,(function(){var t=this,e=t._self._c;return e(d.a,{attrs:{justify:"center","no-gutters":""}},[e(c.a,{attrs:{cols:"12",lg:"12"}},[e("div",{staticClass:"primary white--text pagetitle py-12"},[e("h2",{staticClass:"display-1 secondary--text text-center"},[t._v("Gallery")])])]),t._v(" "),e(m.a,{attrs:{"z-index":"5555555555555555555555555555555555555",opacity:"0.9"},model:{value:t.overlay,callback:function(e){t.overlay=e},expression:"overlay"}},[e(l.a,{attrs:{absolute:"",right:"",top:"",icon:"","x-large":""},on:{click:function(e){t.overlay=!1}}},[e(h.a,{attrs:{"x-large":""}},[t._v("mdi-close")])],1),t._v(" "),e(d.a,{staticStyle:{height:"100vh",width:"100vw"},attrs:{justify:"center",align:"center"}},[t.isDesktop?e(l.a,{attrs:{icon:"","x-large":""},on:{click:t.previousImage}},[e(h.a,{attrs:{"x-large":""}},[t._v("mdi-chevron-left")])],1):t._e(),t._v(" "),e(c.a,{attrs:{cols:"12",lg:"11"}},[e("gallery-overlay-item",{attrs:{image:t.imageOverlay},on:{nextImage:t.nextImage,previousImage:t.previousImage}})],1),t._v(" "),t.isDesktop?e(l.a,{attrs:{icon:"","x-large":""},on:{click:t.nextImage}},[e(h.a,{attrs:{"x-large":""}},[t._v("mdi-chevron-right")])],1):t._e()],1)],1),t._v(" "),e(c.a,{staticClass:"mt-8",attrs:{cols:"12",lg:"8"}},[e("div",{ref:"gallery",staticClass:"grid-wrapper"},[t._l(t.images,(function(image,i){return t.galleryWidth?[e("gallery-item",{attrs:{image:image,width:t.galleryWidth},on:{openGallery:function(e){return t.openGallery(i)}}})]:t._e()}))],2)])],1)}),[],!1,null,null,null).exports},asyncData:function(){return Object(r.a)(regeneratorRuntime.mark((function t(){var e,data;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,o.a.get("/v3/events/".concat("2JN1gP7OOj7jL6mO","/files2"));case 2:return e=t.sent,data=e.data,t.abrupt("return",{data:data});case 5:case"end":return t.stop()}}),t)})))()},computed:{images:function(){return this.data||[]}}}),O=Object(v.a)(k,(function(){var t=this,e=t._self._c;return t.images.length?e("itw-gallery",{attrs:{images:t.images}}):t._e()}),[],!1,null,null,null);e.default=O.exports}}]);