"use strict";(("undefined"!=typeof self?self:this).webpackJsonp__wix_communities_blog_ooi=("undefined"!=typeof self?self:this).webpackJsonp__wix_communities_blog_ooi||[]).push([[5938],{85938:function(t,e,i){var r=i(31191),o=i(27762),n=i.n(o),s=i(70347),a=i(30972),l=i(47666),h=i(56312),u=i(30237),c=function(t){function e(e){var i=t.call(this,e)||this;return i.isUsingCustomInfoElements=i.isUsingCustomInfoElements.bind(i),i.blueprintsManager=new l.Z({id:"layoutingGallery"}),i.blueprintsManager.init({deviceType:e.deviceType,api:{isUsingCustomInfoElements:i.isUsingCustomInfoElements,fetchMoreItems:function(t){"function"==typeof e.eventsListener&&e.eventsListener(s.Z.events.NEED_MORE_ITEMS,t)},onBlueprintReady:function(t){var e=t.blueprint,r=t.blueprintChanged,o=t.initialBlueprint;r?i.setBlueprint(e,o):a.Z.isVerbose()&&console.count(">>> Blueprint not changed, not setting it")}}}),i.onNewProps(e,!0),i.state={blueprint:i.blueprintsManager.createInitialBlueprint(e)||null},i}return(0,r.__extends)(e,t),e.prototype.setBlueprint=function(t,e){e||this.setState({blueprint:t})},e.prototype.isUsingCustomInfoElements=function(){return!!this.galleryProps.customComponents.customHoverRenderer||!!this.galleryProps.customComponents.customInfoRenderer},e.prototype.onNewProps=function(t,e){var i=this,o=t.eventsListener,n=(0,r.__rest)(t,["eventsListener"]);this.galleryProps=(0,r.__assign)((0,r.__assign)({},n),{eventsListener:function(t,e){t===s.Z.events.NEED_MORE_ITEMS?i.blueprintsManager.getMoreItems(e):"function"==typeof o&&o(t,e)},id:t.id||"default-dom-id",customComponents:t.customComponents||{}}),e||this.blueprintsManager.createBlueprint(this.galleryProps).catch((function(t){console.error("Could not create a blueprint from the new props",t)}))},e.prototype.UNSAFE_componentWillReceiveProps=function(t){this.onNewProps(t,!1)},e.prototype.render=function(){var t=this.state,e=t.blueprint,i=t.typeErrors;return i||(e&&Object.keys(e).length>0?n().createElement(h.Z,(0,r.__assign)({},this.galleryProps,e)):null)},e.prototype.componentDidMount=function(){return(0,r.__awaiter)(this,void 0,void 0,(function(){var t,e,o,n;return(0,r.__generator)(this,(function(r){switch(r.label){case 0:return!1===(0,u.Z)(this.props,a.Z.isSSR())?[2]:[4,i.e(8368).then(i.bind(i,56619))];case 1:return t=r.sent(),e=t.validate,o=t.typeErrorsUI,(n=e(this.state.blueprint.options)).length>0&&this.setState({typeErrors:o(n)}),[2]}}))}))},e}(n().Component);e.Z=c},98560:function(t,e,i){var r=i(31191),o=i(27762),n=i.n(o),s=i(30972),a=i(12146),l=i(70347),h=i(47458),u=i(16526),c=i(58653),p=i(86199),d=i(73004),m=i(21630),g=i(70706),f=i(74409),y=i(91093),v=i(18832),b=i(36341),I=i(94272),S=function(t){function e(e){var i=t.call(this,e)||this;i.updateVisibility=function(){var t=(0,I.I)({container:i.props.container,scrollTop:i.state.scrollPosition.top});i.state.isInViewport!==t&&i.setState({isInViewport:t})},i.setVisibilityIfNeeded=function(t,e){var r=i.props.container,o=i.state.scrollPosition;r.scrollBase===t.container.scrollBase&&o.top===e.scrollPosition.top||i.updateVisibility()},i.findNeighborItem=function(t,e){return(0,v.Z)(t,e,i.state.structure.items)},s.Z.isVerbose()&&console.count("[OOISSR] galleryContainer constructor",a.Z.isMock),i.getMoreItemsIfNeeded=i.getMoreItemsIfNeeded.bind(i),i.setGotFirstScrollIfNeeded=i.setGotFirstScrollIfNeeded.bind(i),i.toggleLoadMoreItems=i.toggleLoadMoreItems.bind(i),i.scrollToItem=i.scrollToItem.bind(i),i.scrollToGroup=i.scrollToGroup.bind(i),i._scrollingElement=i.getScrollingElement(),i.eventsListener=i.eventsListener.bind(i),i.onGalleryScroll=i.onGalleryScroll.bind(i),i.setPlayingIdxState=i.setPlayingIdxState.bind(i),i.getVisibleItems=i.getVisibleItems.bind(i),i.findNeighborItem=i.findNeighborItem.bind(i),i.setCurrentSlideshowViewIdx=i.setCurrentSlideshowViewIdx.bind(i),i.getIsScrollLessGallery=i.getIsScrollLessGallery.bind(i),i.onMouseEnter=i.onMouseEnter.bind(i),i.onMouseLeave=i.onMouseLeave.bind(i),i.videoScrollHelper=new y.Z(i.setPlayingIdxState);var o={scrollPosition:{top:0,left:0},showMoreClickedAtLeastOnce:!1,initialGalleryHeight:void 0,needToHandleShowMoreClick:!1,gotFirstScrollEvent:e.activeIndex>=0,playingVideoIdx:-1,viewComponent:null,firstUserInteractionExecuted:!1,isInHover:!1,isInViewport:!0};i.state=o,i.layoutCss=[],i.initialGalleryState={};try{var n=i.propsToState(e);Object.keys(n).length>0&&(i.initialGalleryState=n)}catch(t){console.warn("Cannot create initial state from props",t)}return i.state=(0,r.__assign)((0,r.__assign)({},o),i.initialGalleryState),i}return(0,r.__extends)(e,t),e.prototype.initializeScrollPosition=function(){if(this.props.activeIndex>0){this.scrollToItem(this.props.activeIndex,!1,!0,0);var t=this.galleryStructure.items[this.props.activeIndex];this.onGalleryScroll(t.offset)}},e.prototype.isScrollingUnavailable=function(t,e){return this.isVerticalGallery()?t<=e+300:this.state.structure.widthi){var t=document.body,e=document.documentElement,r=a.Z.innerHeight,n=Math.max(t.scrollHeight,t.offsetHeight,e.clientHeight,e.scrollHeight,e.offsetHeight);o.getMoreItemsIfScrollIsDisabled(n,r)}}))),[2]}))}))},e.prototype.componentDidMount=function(){var t=document.body,e=document.documentElement,i=a.Z.innerHeight,r=Math.max(t.scrollHeight,t.offsetHeight,e.clientHeight,e.scrollHeight,e.offsetHeight);this.initializeScrollPosition(),this.getMoreItemsIfScrollIsDisabled(r,i),this.handleNewGalleryStructure(),this.eventsListener(l.Z.events.APP_LOADED,{}),this.videoScrollHelper.initializePlayState();try{"function"==typeof a.Z.CustomEvent?this.currentHoverChangeEvent=new CustomEvent("current_hover_change"):(this.currentHoverChangeEvent=a.Z.document.createEvent("CustomEvent"),this.currentHoverChangeEvent.initCustomEvent("current_hover_change",!1,!1,null))}catch(t){console.error("could not create 'current_hover_change' customEvent. Error =",t)}this.props.id&&(this.currentHoverChangeEvent.galleryId=this.props.id)},e.prototype.UNSAFE_componentWillReceiveProps=function(t){var e=this;!this.currentHoverChangeEvent.galleryId&&t.id&&(this.currentHoverChangeEvent.galleryId=t.id),this.props.activeIndex!==t.activeIndex&&t.activeIndex!==this.currentSlideshowViewIdx&&this.scrollToItem(t.activeIndex,!1,!0,0);var i=function(t){return{id:t.id,options:t.options,container:t.container,items:t.items,isInDisplay:t.isInDisplay}};this.reCreateGalleryTimer&&clearTimeout(this.reCreateGalleryTimer);var r,o=!0;try{var n=i(this.props),a=i(t);o=JSON.stringify(n)!==JSON.stringify(a),s.Z.isVerbose()&&o&&console.log("New props arrived",s.Z.printableObjectsDiff(n,a))}catch(t){console.error("Cannot compare props",t)}o&&(r=e.propsToState(t),Object.keys(r).length>0&&e.setState(r,e.handleNewGalleryStructure),this.props.isInDisplay!==t.isInDisplay&&this.handleNavigation(t.isInDisplay))},e.prototype.handleNavigation=function(t){t?this.videoScrollHelper.trigger.INIT_SCROLL():this.videoScrollHelper.stop()},e.prototype.handleNewGalleryStructure=function(){var t=this.state,e=t.container,i=t.needToHandleShowMoreClick,r=t.initialGalleryHeight,o=this.props.options,n=this.state.items.length,a=this.props.structure.height,h=this.props.structure.items,u="vertical"===this.containerInfiniteGrowthDirection(),c="horizontal"===this.containerInfiniteGrowthDirection()&&this.state.options.layoutParams.structure.galleryRatio.value>0,p=!1;if(!u&&i){p=e.height+(r-138)}var d={numOfItems:n,container:e,options:o,layoutHeight:a,layoutItems:h,isInfinite:u,isFixedHorizontlaGalleryRatio:c,updatedHeight:p};s.Z.isVerbose()&&console.log("handleNewGalleryStructure",d),this.eventsListener(l.Z.events.GALLERY_CHANGE,d),i&&this.setState({needToHandleShowMoreClick:!1})},e.prototype.isVerticalGallery=function(){return this.state.options.scrollDirection===l.Z.scrollDirection.VERTICAL},e.prototype.getIsScrollLessGallery=function(t){var e=t.scrollDirection,i=t.slideAnimation;return e===l.Z.scrollDirection.HORIZONTAL&&i!==l.Z.slideAnimations.SCROLL},e.prototype.getVisibleItems=function(t,e){var i=this.state.gotFirstScrollEvent,r=a.Z.scrollY,o=e.galleryHeight,n=e.scrollBase,l=e.galleryWidth;if(s.Z.isSSR()||(0,h.Vg)()||(0,h.wh)()||i||r>0||this.props.activeIndex>0)return t;var u=t;try{var c=a.Z.innerHeight,p=this.isVerticalGallery()&&"vertical"===this.containerInfiniteGrowthDirection()?1/0:n+o,d=r+c,m=Math.min(p,d)-n;(u=m<0?[]:this.isVerticalGallery()?t.filter((function(t){return t.offset.top=0){if(this.state.gotFirstScrollEvent||this.setState({gotFirstScrollEvent:!0}),this.getIsScrollLessGallery(this.state.options))return;var a=this._scrollingElement,l=a.horizontal();try{var u={scrollMarginCorrection:o,isRTL:this.state.options.isRTL,scrollDirection:this.state.options.scrollDirection,galleryWidth:this.state.container.galleryWidth,galleryHeight:this.state.container.galleryHeight,top:0,items:this.galleryStructure.items,totalWidth:this.galleryStructure.width,itemIdx:t,fixedScroll:e,isManual:i,scrollingElement:a,horizontalElement:l,durationInMS:r,slideTransition:this.state.options.slideTransition,isContinuousScrolling:n,autoSlideshowContinuousSpeed:this.state.options.autoSlideshowContinuousSpeed,imageMargin:this.state.options.imageMargin};return this.currentScrollData=(0,d.rq)(u),this.currentScrollData.scrollDeffered.promise.then((function(){s.currentScrollData=null}))}catch(t){console.error("error:",t," pro-gallery, scrollToItem, cannot get scrollParams, ","isEditMode =",(0,h.wh)()," isPreviewMode =",(0,h.g4)()," isSiteMode =",(0,h.bK)()," this.state.options =",this.state.options," this.state.container =",this.state.container," this.galleryStructure =",this.galleryStructure)}}},e.prototype.scrollToGroup=function(t,e,i,r,o,n){var s=this;if(void 0===r&&(r=0),void 0===n&&(n=!1),t>=0){var a=this._scrollingElement,l=a.horizontal();try{var u={scrollMarginCorrection:o,isRTL:this.state.options.isRTL,scrollDirection:this.state.options.scrollDirection,galleryWidth:this.state.container.galleryWidth,galleryHeight:this.state.container.galleryHeight,top:0,groups:this.galleryStructure.groups,totalWidth:this.galleryStructure.width,groupIdx:t,fixedScroll:e,isManual:i,scrollingElement:a,horizontalElement:l,durationInMS:r,slideTransition:this.state.options.slideTransition,isContinuousScrolling:n,autoSlideshowContinuousSpeed:this.state.options.autoSlideshowContinuousSpeed,imageMargin:this.state.options.imageMargin};return this.currentScrollData=(0,d.cb)(u),this.currentScrollData.scrollDeffered.promise.then((function(){s.currentScrollData=null}))}catch(t){console.error("error:",t," pro-gallery, scrollToGroup, cannot get scrollParams, ","isEditMode =",(0,h.wh)()," isPreviewMode =",(0,h.g4)()," isSiteMode =",(0,h.bK)()," this.state.options =",this.state.options," this.state.container =",this.state.container," this.galleryStructure =",this.galleryStructure)}}},e.prototype.containerInfiniteGrowthDirection=function(t){void 0===t&&(t=!1);var e=t||this.props.options,i=this.props.options.enableInfiniteScroll,r=this.state.showMoreClickedAtLeastOnce,o=e.scrollDirection,n=e.loadMoreAmount;return o===l.Z.scrollDirection.HORIZONTAL?"horizontal":i||r&&"all"===n?"vertical":"none"},e.prototype.setPlayingIdxState=function(t){this.setState({playingVideoIdx:t})},e.prototype.onGalleryScroll=function(t){this.props.isInDisplay&&this.eventsListener(l.Z.events.GALLERY_SCROLLED,t)},e.prototype.componentDidUpdate=function(t,e){if(this.setVisibilityIfNeeded(t,e),this.props.isPrerenderMode!==t.isPrerenderMode){var i=document.body,r=document.documentElement,o=a.Z.innerHeight,n=Math.max(i.scrollHeight,i.offsetHeight,r.clientHeight,r.scrollHeight,r.offsetHeight);this.getMoreItemsIfScrollIsDisabled(n,o)}},e.prototype.createDynamicStyles=function(t,e){var i=t.overlayBackground,r=e&&!this.props.settings.disableSSROpacity;this.dynamicStyles=("\n "+(r?"#pro-gallery-"+this.props.id+" .gallery-item-container { opacity: 0 }":"")+"\n "+(i?"#pro-gallery-"+this.props.id+" .gallery-item-hover::before { background: "+i+" !important}":"")+"\n ").trim()},e.prototype.createCssLayoutsIfNeeded=function(t){var e=this.props.settings;(void 0===e?{}:e).avoidInlineStyles&&(this.layoutCss=(0,g._)({layoutParams:t,isMobile:s.Z.isMobile(),id:this.props.id,galleryItems:this.galleryStructure.galleryItems}))},e.prototype.getScrollCss=function(t){var e=t.id,i=t.items,r=t.options,o=t.container;this.scrollCss=f.O.calcScrollCss({items:i,options:r,id:e,container:o})},e.prototype.toggleLoadMoreItems=function(){var t=this;this.eventsListener(l.Z.events.LOAD_MORE_CLICKED,this.galleryStructure.galleryItems);if(this.state.showMoreClickedAtLeastOnce)this.setState({needToHandleShowMoreClick:true},(function(){t.handleNewGalleryStructure()}));else{this.getScrollCss({id:this.props.id,items:this.galleryStructure.galleryItems,options:this.state.options,container:this.state.container});var e=this.state.container.height;this.setState({showMoreClickedAtLeastOnce:!0,initialGalleryHeight:e,needToHandleShowMoreClick:true},(function(){t.handleNewGalleryStructure()}))}},e.prototype.setGotFirstScrollIfNeeded=function(){this.state.gotFirstScrollEvent||(this.getScrollCss({id:this.props.id,items:this.galleryStructure.galleryItems,options:this.state.options,container:this.state.container}),this.setState({gotFirstScrollEvent:!0}))},e.prototype.setCurrentSlideshowViewIdx=function(t){this.currentSlideshowViewIdx=t},e.prototype.simulateHorizontalScrollToItem=function(t){(null==t?void 0:t.offset)&&this.onGalleryScroll({left:t.offset.left})},e.prototype.eventsListener=function(t,e,i){if(this.videoScrollHelper.handleEvent({eventName:t,eventData:e}),t===l.Z.events.HOVER_SET&&(this.currentHoverChangeEvent.currentHoverIdx=e,a.Z.dispatchEvent(this.currentHoverChangeEvent)),t===l.Z.events.CURRENT_ITEM_CHANGED&&(this.setCurrentSlideshowViewIdx(e.idx),this.getIsScrollLessGallery(this.state.options)&&this.simulateHorizontalScrollToItem(this.galleryStructure.items[e.idx])),!this.state.firstUserInteractionExecuted)switch(t){case l.Z.events.HOVER_SET:case l.Z.events.LOAD_MORE_CLICKED:case l.Z.events.ITEM_ACTION_TRIGGERED:this.setState({firstUserInteractionExecuted:!0})}if("function"==typeof this.props.eventsListener&&this.props.eventsListener(t,e,i),t===l.Z.events.GALLERY_SCROLLED){this.videoScrollHelper.trigger.SCROLL(e);var o=(0,r.__assign)((0,r.__assign)({},this.state.scrollPosition),e);this.setState({scrollPosition:o})}},e.prototype.getMoreItemsIfNeeded=function(t){var e,i=this;if(null===(e=this.deferredGettingMoreItems)||void 0===e?void 0:e.isPending);else if(this.deferredGettingMoreItems=new I.B,this.galleryStructure&&this.galleryStructure.galleryItems&&this.galleryStructure.galleryItems.length>0&&this.state.items&&this.state.options&&this.state.container){var r=this.state.options,o=r.scrollDirection,n=r.isRTL,s=this.galleryStructure[o===l.Z.scrollDirection.HORIZONTAL?"width":"height"]+(o===l.Z.scrollDirection.HORIZONTAL?0:this.state.container.scrollBase),h=a.Z[o===l.Z.scrollDirection.HORIZONTAL?"innerWidth":"innerHeight"];s<(t?3*h:0)+(o===l.Z.scrollDirection.HORIZONTAL&&n?t-s+h:t+h)?(this.eventsListener(l.Z.events.NEED_MORE_ITEMS,this.state.items.length),setTimeout((function(){i.deferredGettingMoreItems.resolve()}),2e3)):this.deferredGettingMoreItems.reject()}else this.deferredGettingMoreItems.reject();return this.deferredGettingMoreItems.promise.catch((function(){}))},e.prototype.canRender=function(){var t=this.props.container&&this.props.options&&this.state.items;return!t&&s.Z.isVerbose()&&console.log("PROGALLERY [CAN_RENDER] GalleryContainer",t,this.props.container,this.props.options,this.state.items),t},e.prototype.onMouseEnter=function(){var t;(null===(t=this.currentScrollData)||void 0===t?void 0:t.isContinuousScrolling)&&this.state.options.pauseAutoSlideshowOnHover&&(0,d.r1)(this.currentScrollData),this.setState({isInHover:!0})},e.prototype.onMouseLeave=function(){this.setState({isInHover:!1})},e.prototype.render=function(){var t,e,i,o=this;if(!this.canRender())return null;var a=this.props.options.scrollDirection===l.Z.scrollDirection.HORIZONTAL?p.Z:c.Z;s.Z.isVerbose()&&(console.count("PROGALLERY [COUNTS] - GalleryContainer (render)"),console.log("PROGALLERY [RENDER] - GalleryContainer",this.props.container.scrollBase,{props:this.props,items:this.state.items}));var h="none"===this.containerInfiniteGrowthDirection();return n().createElement("div",{"data-key":"pro-gallery-inner-container",key:"pro-gallery-inner-container",className:this.props.isPrerenderMode?"pro-gallery-prerender":"",onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,ref:function(t){return o.galleryContainerRef=t},tabIndex:-1},n().createElement(m.Z,{id:this.props.id,scrollDirection:this.props.options.scrollDirection,isRTL:this.props.options.isRTL,totalWidth:this.galleryStructure.width,scrollBase:this.props.container.scrollBase,scrollingElement:this._scrollingElement,getMoreItemsIfNeeded:this.getMoreItemsIfNeeded,setGotFirstScrollIfNeeded:this.setGotFirstScrollIfNeeded,onScroll:this.onGalleryScroll}),n().createElement(a,(0,r.__assign)({isInDisplay:this.props.isInDisplay,isInViewport:this.state.isInViewport,isPrerenderMode:this.props.isPrerenderMode,scrollingElement:this._scrollingElement,totalItemsCount:this.props.totalItemsCount,renderedItemsCount:this.props.renderedItemsCount,getMoreItemsIfNeeded:this.getMoreItemsIfNeeded,gotFirstScrollEvent:this.state.gotFirstScrollEvent,setGotFirstScrollIfNeeded:this.setGotFirstScrollIfNeeded,items:this.state.items,getVisibleItems:this.getVisibleItems,galleryStructure:this.galleryStructure,options:this.props.options,container:this.props.container,settings:this.props.settings,displayShowMore:h,id:this.props.id,activeIndex:this.props.activeIndex||0,customComponents:this.props.customComponents,playingVideoIdx:this.state.playingVideoIdx,noFollowForSEO:this.props.noFollowForSEO,proGalleryRegionLabel:this.props.proGalleryRegionLabel,proGalleryRole:this.props.proGalleryRole,firstUserInteractionExecuted:this.state.firstUserInteractionExecuted,isGalleryInHover:this.state.isInHover,enableExperimentalFeatures:this.props.enableExperimentalFeatures,galleryContainerRef:this.galleryContainerRef,outOfViewComponent:this.outOfViewComponent,virtualizationSettings:this.props.virtualizationSettings,galleryContainerId:"pro-gallery-container-"+this.props.id,scrollTop:null===(e=null===(t=this.state)||void 0===t?void 0:t.scrollPosition)||void 0===e?void 0:e.top,actions:(0,r.__assign)((0,r.__assign)({},this.props.actions),{findNeighborItem:this.findNeighborItem,toggleLoadMoreItems:this.toggleLoadMoreItems,eventsListener:this.eventsListener,setWixHeight:function(){},scrollToItem:this.scrollToItem,scrollToGroup:this.scrollToGroup})},this.props.gallery)),n().createElement("div",{"data-key":"items-styles",key:"items-styles",style:{display:"none"}},(this.layoutCss||[]).filter(Boolean).map((function(t,e){return n().createElement("style",{id:"layoutCss-"+e,key:"layoutCss-"+e,dangerouslySetInnerHTML:{__html:t}})})),(this.scrollCss||[]).filter(Boolean).map((function(t,e){return n().createElement("style",{id:"scrollCss_"+e,key:"scrollCss_"+e,dangerouslySetInnerHTML:{__html:t}})})),!!this.dynamicStyles&&n().createElement("style",{dangerouslySetInnerHTML:{__html:this.dynamicStyles}})),"application"===this.props.proGalleryRole&&n().createElement("span",{ref:function(t){return o.outOfViewComponent=t},tabIndex:-1,className:"sr-only out-of-view-component"},null===(i=this.props.translations)||void 0===i?void 0:i.Accessibility_Left_Gallery))},e}(n().Component);e.Z=S},56829:function(t,e,i){var r=i(31191),o=i(27762),n=i.n(o),s=i(30972),a=i(12146),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.__extends)(e,t),e.prototype.render=function(){if("true"!==s.Z.getTopUrlParam("pgdebug"))return!1;var t=n().createElement("div",{className:"version-header "},"Pro Gallery Version #",a.Z.staticsVersion),e="";try{e=" psw"+a.Z.top.screen.width+" piw"+a.Z.top.innerWidth+" pbw"+a.Z.top.document.body.clientWidth}catch(t){}var i=n().createElement("div",{className:"version-header "},s.Z.isLandscape()?"land":"port"," sw",a.Z.screen.width,"sh",a.Z.screen.height," iw",a.Z.innerWidth," bw",a.Z.document.body.clientWidth," sr","1","rc",this.props.resizeCount," oc",this.props.orientationCount," nh",this.props.newHeight," lh",this.props.lastHeight,e,"www",this.props.maxGalleryWidth);return n().createElement("div",null,t,i)},e}(n().Component);e.Z=l},94272:function(t,e,i){i.d(e,{B:function(){return o},I:function(){return n}});var r=i(12146),o=function(){var t=this;this.promise=new Promise((function(e,i){t.reject=function(){for(var e=[],r=0;ri;return o&&n}catch(t){return console.warn("Could not calculate viewport",t),!0}}},21630:function(t,e,i){var r=i(31191),o=i(27762),n=i.n(o),s=i(30972),a=i(70347),l=i(74409),h=function(t){function e(e){var i=t.call(this)||this;return i.state={scrollTop:0,scrollLeft:0},i.debouncedOnScroll=s.Z.debounce(e.onScroll,50),i}return(0,r.__extends)(e,t),e.prototype.removeScrollListener=function(){if(this.scrollEventListenerSet){var t=this.props.scrollingElement;try{t.vertical().removeEventListener("scroll",this.onVerticalScroll)}catch(t){}try{this.props.scrollDirection===a.Z.scrollDirection.HORIZONTAL&&t.horizontal().removeEventListener("scroll",this.onHorizontalScroll)}catch(t){}this.scrollEventListenerSet=!1}},e.prototype.initScrollListener=function(){var t=this;this.scrollEventListenerSet&&this.removeScrollListener(),this.scrollEventListenerSet=!0;var e=this.props.scrollingElement;if(this.onHorizontalScrollTransition=function(e){var i=e.detail,r=Math.round(i);r>=0&&t.props.scrollDirection===a.Z.scrollDirection.HORIZONTAL&&t.setState({scrollLeft:t.state.scrollLeft+r})},this.onHorizontalScroll=function(e){t.props.setGotFirstScrollIfNeeded();var i=e.currentTarget||e.target||e,r=i&&(i.scrollX||i.scrollLeft||i.x);t.props.isRTL&&(r=Math.abs(r)),r>=0&&t.props.scrollDirection===a.Z.scrollDirection.HORIZONTAL&&(t.setState({scrollTop:r,scrollLeft:r}),t.props.getMoreItemsIfNeeded(r),t.debouncedOnScroll({left:r}))},this.props.scrollDirection===a.Z.scrollDirection.HORIZONTAL)try{e.horizontal().addEventListener("scroll",this.onHorizontalScroll),e.horizontal().addEventListener("scrollTransition",this.onHorizontalScrollTransition)}catch(t){console.error(t)}this.onVerticalScroll=function(e){t.props.setGotFirstScrollIfNeeded();var i=e.currentTarget||e.target||e,r=i&&(i.scrollY||i.scrollTop||i.y);r>=0&&(t.setState({scrollTop:r}),t.props.scrollDirection===a.Z.scrollDirection.VERTICAL&&t.props.getMoreItemsIfNeeded(r),t.debouncedOnScroll({top:r}))};try{e.vertical().addEventListener("scroll",this.onVerticalScroll)}catch(t){console.error(t)}},e.prototype.componentWillUnmount=function(){this.removeScrollListener()},e.prototype.componentDidMount=function(){this.initScrollListener()},e.prototype.UNSAFE_componentWillReceiveProps=function(t){for(var e=!1,i=0,r=["id","scrollDirection","isRTL","totalWidth","scrollBase"];i0?this.props.scrollBase:0,e=this.state.scrollTop-t,i=this.props.id;return n().createElement("div",{key:"css-scroll-indicator","data-hook":"css-scroll-indicator","data-scroll-base":t,"data-scroll-top":this.state.scrollTop,className:l.O.calcScrollClasses(i,e),style:{display:"none"}})},e}(n().Component);e.Z=h},58653:function(t,e,i){var r=i(31191),o=i(27762),n=i.n(o),s=i(12146),a=i(30972),l=i(70347),h=i(56829),u=i(20339),c=i(52453),p=function(t){function e(e){var i=t.call(this,e)||this;return i.handleKeys=i.handleKeys.bind(i),i.showMoreItems=i.showMoreItems.bind(i),i.createGalleryConfig=i.createGalleryConfig.bind(i),i.screenLogs=i.screenLogs.bind(i),i.createGallery=i.createGallery.bind(i),i.id=Date.now()+"|"+Math.floor(1e4*Math.random()),i.state={activeIndex:0},i}return(0,r.__extends)(e,t),e.prototype.handleKeys=function(t){var e=s.Z.document.activeElement.getAttribute("data-idx");if(e){var i=this.props.actions.findNeighborItem||this.props.galleryStructure.findNeighborItem||function(){},r=Number(e),o=-1;switch(t.keyCode||t.charCode){case 38:o=i(r,"up");break;case 37:o=i(r,this.props.options.isRTL?"right":"left");break;case 40:if(o=i(r,"down"),this.props.totalItemsCount-1===o&&o===this.state.activeIndex)return t.stopPropagation(),a.Z.focusGalleryElement(this.props.outOfViewComponent),!1;break;case 39:o=i(r,this.props.options.isRTL?"left":"right");break;case 27:return t.stopPropagation(),a.Z.focusGalleryElement(this.props.galleryContainerRef),!1}if(o>this.lastVisibleItemIdx()&&(o=r),o>=0)return t.preventDefault(),t.stopPropagation(),a.Z.setStateAndLog(this,"Set Gallery Current Item",{activeIndex:o}),!1}return!0},e.prototype.lastVisibleItemIdxInHeight=function(t){for(var e=this.props.galleryStructure.items.length-1;e>=0;e--){if(this.props.galleryStructure.items[e].offset.topthis.props.container.height){var i=t.loadMoreButtonText||"Load More";e=n().createElement("div",{className:"show-more-container"+(a.Z.isMobile()?" pro-gallery-mobile-indicator":"")},n().createElement("button",{tabIndex:a.Z.getTabIndex("loadMoreButton"),id:"show-more-"+this.props.id,className:"show-more",onClick:this.showMoreItems,onMouseDown:function(t){return t.preventDefault()},"data-hook":"show-more","aria-label":i},i))}return e},e.prototype.render=function(){a.Z.isVerbose()&&(console.count("galleryView render"),console.time("Rendering Gallery took "),console.log("[DEBUG_RENDER] GalleryView options",this.props.options),console.log("[DEBUG_RENDER] GalleryView props changed",a.Z.printableObjectsDiff(this.lastProps||{},this.props)),this.lastProps=(0,r.__assign)({},this.props),console.log("[DEBUG_RENDER] GalleryView state changed",a.Z.printableObjectsDiff(this.lastState||{},this.state)),this.lastState=(0,r.__assign)({},this.state),this.renderCount=(this.renderCount||0)+1);var t=this.createShowMoreButton(),e=this.createGallery(t);a.Z.isVerbose()&&console.timeEnd("Rendering Gallery took ");var i=this.screenLogs();return n().createElement("div",(0,r.__assign)({className:"pro-gallery-parent-container",key:"pro-gallery-"+this.id},a.Z.getAriaAttributes({proGalleryRole:this.props.proGalleryRole,proGalleryRegionLabel:this.props.proGalleryRegionLabel})),i,e,t)},e}(n().Component);e.Z=p},56312:function(t,e,i){var r=i(31191),o=i(27762),n=i.n(o),s=i(30972),a=i(47458),l=i(98560),h=function(t){function e(e){var i=t.call(this)||this;return i.init(e),s.Z.isLocal()&&!s.Z.isTest()&&console.log("PRO GALLERY DEV"),i}return(0,r.__extends)(e,t),e.prototype.init=function(t){void 0!==t.viewMode&&a.Ce.setViewMode(t.viewMode),void 0!==t.deviceType&&a.Ce.setDeviceType(t.deviceType)},e.prototype.UNSAFE_componentWillReceiveProps=function(t){this.props.viewMode!==t.viewMode&&(s.Z.dumpCache(),a.Ce.setViewMode(t.viewMode)),this.props.deviceType!==t.deviceType&&(s.Z.dumpCache(),a.Ce.setDeviceType(t.deviceType))},e.prototype.renderProps=function(){var t;return(0,r.__assign)((0,r.__assign)({},this.props),{id:this.props.id,items:this.props.items||[],settings:this.props.settings||{},offsetTop:this.props.offsetTop,proGalleryRegionLabel:this.props.proGalleryRegionLabel,isInDisplay:null===(t=this.props.isInDisplay)||void 0===t||t})},e.prototype.containerProps=function(){return{id:"pro-gallery-"+this.props.id,className:"pro-gallery"}},e.prototype.render=function(){return n().createElement("div",(0,r.__assign)({},this.containerProps()),n().createElement(l.Z,(0,r.__assign)({},this.renderProps())))},e}(n().Component);e.Z=h},86199:function(t,e,i){var r=i(31191),o=i(27762),n=i.n(o),s=i(47458),a=i(70347),l=i(30972),h=i(12146),u=i(17775),c=i(56829),p=i(77536),d=i(31540),m=i(87484),g=i(89976),f=i(52453),y=i(58207);function v(t){if([33,37,38].includes(t))return-1;if([32,34,39,40].includes(t))return 1;throw new Error("no direction is defined for charCode: "+t)}var b=function(t){function e(e){var i=t.call(this,e)||this;return i.autoScrollToNextItem=function(){if(!(0,s.wh)()&&(i.props.isInViewport||(0,s.g4)())){var t=i.props.options,e=t.isRTL?-1:1;t.autoSlideshowType===a.Z.autoSlideshowTypes.CONTINUOUS?i._next({direction:e,isAutoTrigger:!0,isContinuousScrolling:!0}):t.autoSlideshowType===a.Z.autoSlideshowTypes.INTERVAL&&i._next({direction:e,isAutoTrigger:!0,scrollDuration:800})}},i.scrollToThumbnail=i.scrollToThumbnail.bind(i),i.clearAutoSlideshowInterval=i.clearAutoSlideshowInterval.bind(i),i.onFocus=i.onFocus.bind(i),i.onBlur=i.onBlur.bind(i),i.onAutoSlideShowButtonClick=i.onAutoSlideShowButtonClick.bind(i),i.startAutoSlideshowIfNeeded=i.startAutoSlideshowIfNeeded.bind(i),i.updateAutoSlideShowState=i.updateAutoSlideShowState.bind(i),i.canStartAutoSlideshow=i.canStartAutoSlideshow.bind(i),i.handleSlideshowKeyPress=i.handleSlideshowKeyPress.bind(i),i.onAutoSlideshowAutoPlayKeyPress=i.onAutoSlideshowAutoPlayKeyPress.bind(i),i.setCurrentItemByScroll=i.setCurrentItemByScroll.bind(i),i._setCurrentItemByScroll=l.Z.throttle(i.setCurrentItemByScroll,600).bind(i),i._next=l.Z.throttle(i.next.bind(i),400).bind(i),i.state={activeIndex:e.activeIndex||0,isInView:!0,pauseAutoSlideshowClicked:!1,hideLeftArrow:!e.options.isRTL,hideRightArrow:e.options.isRTL,shouldBlockAutoSlideshow:!1,isInFocus:!1},i.lastCurrentItem=void 0,i.shouldCreateSlideShowPlayButton=!1,i.skipFromSlide=Math.round(1.5*i.props.totalItemsCount),i}return(0,r.__extends)(e,t),e.prototype.isFirstItem=function(){return 0===this.state.activeIndex},e.prototype.isScrollStart=function(){return!(this.props.options.slideAnimation!==a.Z.slideAnimations.SCROLL||!this.scrollElement)&&this.scrollPosition()<=1},e.prototype.isScrollEnd=function(){var t=this.props.options,e=t.slideshowLoop,i=t.slideAnimation;return!e&&i!==a.Z.slideAnimations.FADE&&i!==a.Z.slideAnimations.DECK&&(this.isAllItemsLoaded()&&this.scrollPositionAtTheAndOfTheGallery()>=Math.floor(this.getScrollElementWidth()))},e.prototype.isAllItemsLoaded=function(){var t=this.props,e=t.totalItemsCount,i=t.getVisibleItems,r=t.galleryStructure,o=t.container;return i(r.galleryItems,o).length>=e},e.prototype.getScrollElementWidth=function(){var t=this.props.galleryStructure,e=this.props.options.imageMargin;return t.width-e/2},e.prototype.isFirstItemFullyVisible=function(){return!this.props.options.slideshowLoop&&this.isScrollStart()},e.prototype.isLastItemFullyVisible=function(){return!this.props.options.slideshowLoop&&this.isScrollEnd()},e.prototype.isLastItem=function(){return!this.props.options.slideshowLoop&&this.state.activeIndex>=this.props.totalItemsCount-1},e.prototype.shouldBlockNext=function(t){var e=t.scrollingUpTheGallery;return e&&this.isLastItem()||!e&&this.isFirstItem()},e.prototype.shouldNotAllowScroll=function(t){var e=t.scrollingUpTheGallery;return e&&this.isLastItemFullyVisible()||!e&&this.isFirstItemFullyVisible()},e.prototype.next=function(t){var e,i=t.direction,r=t.isAutoTrigger,o=t.scrollDuration,n=t.isKeyboardNavigation,s=void 0!==n&&n,l=t.isContinuousScrolling,h=void 0!==l&&l,u=this.props.options.isRTL?i<=-1:i>=1;if(this.shouldBlockNext({scrollingUpTheGallery:u}))this.clearAutoSlideshowInterval();else{i*=this.props.options.isRTL?-1:1;var c=document.activeElement,p=c.className&&c.className.includes("gallery-item-container"),d=!s||!((null===(e=this.props.settings)||void 0===e?void 0:e.isAccessible)&&p),m=!1;this.props.options.slideAnimation!==a.Z.slideAnimations.SCROLL&&(o=0,m=!0),d&&this.props.options.groupSize>1?this.nextGroup({direction:i,scrollDuration:o,isContinuousScrolling:h,scrollingUpTheGallery:u}):(d&&a.Z.isLayout("GRID")(this.props.options)&&this.props.options.numberOfImagesPerCol&&(i*=this.props.options.numberOfImagesPerCol),this.nextItem({direction:i,isAutoTrigger:r,scrollDuration:o,avoidIndividualNavigation:d,ignoreScrollPosition:m,isContinuousScrolling:h,scrollingUpTheGallery:u})),this.removeArrowsIfNeeded()}},e.prototype.getNextItemOrGroupToScrollTo=function(t,e,i,r,o){var n;if(this.isSliding=!0,"nextGroup"!==t&&("nextItem"!==t||i||!r||this.props.options.groupSize>1))"nextItem"===t&&(n=i||!o?this.state.activeIndex:this.setCurrentItemByScroll(),n+=e,this.props.options.slideshowLoop||(n=Math.min(this.props.galleryStructure.items.length-1,n),n=Math.max(0,n)));else{var s="nextGroup"===t?"groups":"galleryItems";n=this.getCenteredItemOrGroupIdxByScroll(s)+e}return this.isAutoScrolling=!0,n},e.prototype.nextItem=function(t){var e=t.direction,i=t.isAutoTrigger,o=t.scrollDuration,n=t.avoidIndividualNavigation,s=t.ignoreScrollPosition,a=t.isContinuousScrolling,l=t.scrollingUpTheGallery;return(0,r.__awaiter)(this,void 0,void 0,(function(){var t,h,u,c;return(0,r.__generator)(this,(function(r){switch(r.label){case 0:if(this.isSliding)return[2];t=this.getNextItemOrGroupToScrollTo("nextItem",e,s,n,i),r.label=1;case 1:return r.trys.push([1,5,,6]),h=s?0:t,[4,this.scrollToItemOrGroup(this.props.actions.scrollToItem,h,a,o,l)];case 2:return r.sent(),1!==this.props.options.groupSize?[3,4]:(u=this.skipFromSlide-this.props.totalItemsCount,t>=this.skipFromSlide?(t=u,[4,this.props.actions.scrollToItem(t)]):[3,4]);case 3:r.sent(),r.label=4;case 4:return this.onScrollToItemOrGroup(t,a),s&&(this.props.getMoreItemsIfNeeded(this.props.galleryStructure.galleryItems[t].offset.left),this.props.setGotFirstScrollIfNeeded()),[3,6];case 5:return c=r.sent(),this.onThrowScrollError("Cannot proceed to the next Item",c),[3,6];case 6:return[2]}}))}))},e.prototype.nextGroup=function(t){var e=t.direction,i=t.scrollDuration,o=t.isContinuousScrolling,n=void 0!==o&&o,s=t.scrollingUpTheGallery;return(0,r.__awaiter)(this,void 0,void 0,(function(){var t,o,a;return(0,r.__generator)(this,(function(r){switch(r.label){case 0:if(this.isSliding)return[2];t=this.getNextItemOrGroupToScrollTo("nextGroup",e),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.scrollToItemOrGroup(this.props.actions.scrollToGroup,t,n,i,s)];case 2:return r.sent(),o=this.getCenteredItemOrGroupIdxByScroll("galleryItems")+e,this.onScrollToItemOrGroup(o,n),[3,4];case 3:return a=r.sent(),this.onThrowScrollError("Cannot proceed to the next Group",a),[3,4];case 4:return[2]}}))}))},e.prototype.scrollToItemOrGroup=function(t,e,i,o,n){return(0,r.__awaiter)(this,void 0,void 0,(function(){var s,a,l,h;return(0,r.__generator)(this,(function(r){switch(r.label){case 0:return s=!this.shouldNotAllowScroll({scrollingUpTheGallery:n}),a=this.getScrollParameters(o),l=a.scrollMarginCorrection,h=a._scrollDuration,s?[4,t(e,!1,!0,h,l,i)]:[3,2];case 1:r.sent(),r.label=2;case 2:return[2]}}))}))},e.prototype.onThrowScrollError=function(t,e){console.error(t,e),this.clearAutoSlideshowInterval()},e.prototype.onScrollToItemOrGroup=function(t,e){var i=this;l.Z.setStateAndLog(this,"Next Item",{activeIndex:t},(function(){i.onCurrentItemChanged(),i.isSliding=!1,e&&i.startAutoSlideshowIfNeeded(i.props.options)}))},e.prototype.getScrollParameters=function(t){return{scrollMarginCorrection:this.getStyles().margin||0,_scrollDuration:t||this.props.options.scrollDuration||400}},e.prototype.onCurrentItemChanged=function(){if(this.lastCurrentItem!==this.state.activeIndex){this.lastCurrentItem=this.state.activeIndex;var t=this.props.galleryStructure.galleryItems[this.state.activeIndex],e=this.props.items[this.state.activeIndex];e&&(e.idx=this.state.activeIndex,e.resizedImageSrc=t.createUrl(a.Z.urlSizes.RESIZED,a.Z.urlTypes.HIGH_RES),this.props.actions.eventsListener(a.Z.events.CURRENT_ITEM_CHANGED,e))}this.removeArrowsIfNeeded()},e.prototype.clearAutoSlideshowInterval=function(){clearInterval(this.autoSlideshowInterval)},e.prototype.canStartAutoSlideshow=function(t){return t.isAutoSlideshow&&!this.state.shouldBlockAutoSlideshow},e.prototype.startAutoSlideshowIfNeeded=function(t){this.clearAutoSlideshowInterval(),this.canStartAutoSlideshow(t)&&(t.autoSlideshowType===a.Z.autoSlideshowTypes.CONTINUOUS&&t.autoSlideshowContinuousSpeed>0?this.autoScrollToNextItem():t.autoSlideshowType===a.Z.autoSlideshowTypes.INTERVAL&&t.autoSlideshowInterval>0&&(this.autoSlideshowInterval=setInterval(this.autoScrollToNextItem,1e3*t.autoSlideshowInterval)))},Object.defineProperty(e.prototype,"clearedGalleryItems",{get:function(){return(0,y.x)(this.props.items,this.props.galleryStructure.galleryItems)},enumerable:!1,configurable:!0}),e.prototype.scrollToThumbnail=function(t,e){this.props.actions.eventsListener(a.Z.events.THUMBNAIL_CLICKED,this.props),this.props.setGotFirstScrollIfNeeded();var i=t-this.state.activeIndex;this.next({direction:i,isAutoTrigger:!1,scrollDuration:e,isKeyboardNavigation:!1})},e.prototype.handleSlideshowKeyPress=function(t){t.stopPropagation();var e=t.charCode||t.keyCode;if(!1===[32,33,34,37,38,39,40,27].includes(e))return!0;t.preventDefault();var i=h.Z.document.activeElement.getAttribute("data-idx"),r=i&&this.props.totalItemsCount-1===Number(i)&&Number(i)===this.state.activeIndex;if(40===e&&r||27===e){var o={27:this.props.galleryContainerRef,40:this.props.outOfViewComponent}[e];l.Z.focusGalleryElement(o)}else this._next({direction:v(e),isKeyboardNavigation:!0});return!1},e.prototype.createThumbnails=function(t){var e=this,i=this.props,o=i.options,s=i.galleryStructure,h=i.settings,u=this.clearedGalleryItems,c=l.Z.inRange(this.state.activeIndex,u.length),p=o.thumbnailSize,d=o.thumbnailSpacings,g=(0,y.e)({items:this.props.items,activeIndex:c,options:o,galleryStructure:s,thumbnailPosition:t,containerHeight:this.props.container.height,containerWidth:this.props.container.width,activeIndexOffsetMemory:this.activeIndexOffsetMemory,prevActiveIndex:this.prevActiveIndex}),f=g.horizontalThumbnails,v=g.items,b=g.thumbnailsMargins,I=g.thumbnailsStyle,S=g.activeIndexOffsetMemory;return this.prevActiveIndex=c,this.activeIndexOffsetMemory=S,n().createElement("div",{className:"pro-gallery inline-styles thumbnails-gallery "+(f?" one-row hide-scrollbars ":"")+(o.isRTL?" rtl ":" ltr ")+((null==h?void 0:h.isAccessible)?" accessible ":""),style:(0,r.__assign)({width:I.width,height:I.height},b),"data-hook":"gallery-thumbnails"},n().createElement("div",{"data-hook":"gallery-thumbnails-column",className:"galleryColumn",key:"thumbnails-column",style:(0,r.__assign)({},I)},v.map((function(t){var i=t.thumbnailItem,s=t.location,h=t.idx,u=h===c,g=(0,r.__assign)({width:p,height:p,marginLeft:d,marginTop:d,overflow:"hidden",backgroundImage:"url("+i.createUrl(a.Z.urlSizes.THUMBNAIL,a.Z.urlTypes.HIGH_RES)+")"},s);return n().createElement("div",{key:"thumbnail-"+i.id+(Number.isInteger(h)?"-"+h:""),className:"thumbnailItem"+(u?" pro-gallery-thumbnails-highlighted pro-gallery-highlight"+(l.Z.isMobile()?" pro-gallery-mobile-indicator":""):""),"data-key":i.id,style:g,onClick:function(){return e.scrollToThumbnail(h)}},"text"===i.type?n().createElement(m.Z,(0,r.__assign)({},e.props,i.renderProps(),{options:(0,r.__assign)((0,r.__assign)({},o),{cubeType:"fill",cubeImages:!0}),actions:{},imageDimensions:(0,r.__assign)((0,r.__assign)({},g),{marginTop:0,marginLeft:0}),style:(0,r.__assign)((0,r.__assign)({},i.renderProps().style),g)})):null)}))))},e.prototype.getCenteredItemOrGroupIdxByScroll=function(t){var e,i=this.props.galleryStructure[t],r=this.scrollPositionAtTheMiddleOfTheGallery();if(0===r)e=0;else for(var o=void 0,n=0;o=i[n];n++){if(("galleryItems"===t?o.offset.left:o.left)>r){e=n-1;break}}return e>=0||(e=i.length-1),e},e.prototype.setCurrentItemByScroll=function(){var t=this;if(l.Z.isVerbose()&&console.log("Setting current Idx by scroll",this.isAutoScrolling),this.isAutoScrolling)this.isAutoScrolling=!1;else{if(!("true"===(this.scrollElement&&this.scrollElement.getAttribute("data-scrolling")))){this.startAutoSlideshowIfNeeded(this.props.options);var e=this.getCenteredItemOrGroupIdxByScroll("galleryItems");return l.Z.isUndefined(e)||l.Z.setStateAndLog(this,"Set Current Item",{activeIndex:e},(function(){t.onCurrentItemChanged()})),e}this.clearAutoSlideshowInterval()}},e.prototype.createDebugMsg=function(){return n().createElement(c.Z,(0,r.__assign)({},this.props.debug))},e.prototype.createNavArrows=function(){var t,e,i=this,o=this.props.options,s=o.isRTL,h=o.scrollDirection,u=o.imageMargin,c=o.arrowsPadding,p=o.arrowsPosition,d=o.arrowsVerticalPosition,m=o.layoutParams,f=o.titlePlacement,y=o.textBoxHeight,v=m.navigationArrows.container,b=v.type,I=v.backgroundColor,S=v.borderRadius,_=this.state,w=_.hideLeftArrow,P=_.hideRightArrow,T=(0,g.yq)({customNavArrowsRenderer:this.props.customComponents.customNavArrowsRenderer,arrowsColor:this.props.options.arrowsColor,arrowsSize:this.props.options.arrowsSize,arrowsType:m.navigationArrows.type,containerStyleType:b}),x=T.arrowRenderer,C=T.navArrowsContainerWidth,Z=T.navArrowsContainerHeight,E=y,O=this.props.container.galleryHeight-E,L="50% + "+u/4+"px";a.Z.hasExternalAbovePlacement(f)?e=-1:a.Z.hasExternalBelowPlacement(f)&&(e=1);var R=(t={},t[a.Z.arrowsVerticalPosition.ITEM_CENTER]=0,t[a.Z.arrowsVerticalPosition.IMAGE_CENTER]=E*e,t[a.Z.arrowsVerticalPosition.INFO_CENTER]=-O*e,t)[d],A=(0,r.__assign)({width:C+"px",height:Z+"px",padding:0,top:"calc("+L+" - "+Z/2+"px - \n "+R/2+"px)"},(0,g.Bl)({type:b,backgroundColor:I,borderRadius:S})),M=h===a.Z.scrollDirection.HORIZONTAL&&p===a.Z.arrowsPosition.OUTSIDE_GALLERY?"-"+(20+C)+"px":u/2+(c||0)+"px",H={left:M},D={right:M},k=["nav-arrows-container",b===a.Z.arrowsContainerStyleType.SHADOW?"drop-shadow":""];return[w?null:n().createElement("button",{className:k.join(" ")+(l.Z.isMobile()?" pro-gallery-mobile-indicator":""),onClick:function(){return i._next({direction:-1})},"aria-label":(s?"Next":"Previous")+" Item",tabIndex:l.Z.getTabIndex("slideshowPrev"),key:"nav-arrow-back","data-hook":"nav-arrow-back",style:(0,r.__assign)((0,r.__assign)({},A),H)},x("left")),P?null:n().createElement("button",{className:k.join(" "),onClick:function(){return i._next({direction:1})},"aria-label":(s?"Previous":"Next")+" Item",tabIndex:l.Z.getTabIndex("slideshowNext"),key:"nav-arrow-next","data-hook":"nav-arrow-next",style:(0,r.__assign)((0,r.__assign)({},A),D)},x("right"))]},e.prototype.getBufferedItems=function(t,e){var i,r=this.state,o=this.props,n=o.options,s=o.virtualizationSettings,a=o.getVisibleItems,l=r.activeIndex,h=a(t,e),u=(null===(i=this.props.galleryContainerRef)||void 0===i?void 0:i.clientWidth)||e.galleryWidth||0;return(0,f.y)({groups:h,activeIndex:l,galleryWidth:u,options:n,virtualizationSettings:s})},e.prototype.createLayout=function(){var t=this,e=this.props,i=e.container,o=e.galleryStructure,s={scrollingElement:this.props.scrollingElement,totalItemsCount:this.props.totalItemsCount,scroll:this.props.scroll,options:this.props.options,container:this.props.container,settings:this.props.settings,activeIndex:this.state.activeIndex,customComponents:this.props.customComponents,noFollowForSEO:this.props.noFollowForSEO,galleryId:this.props.id,gotFirstScrollEvent:this.props.gotFirstScrollEvent,playingVideoIdx:this.props.playingVideoIdx,isPrerenderMode:this.props.isPrerenderMode,totalWidth:this.props.galleryStructure.width,firstUserInteractionExecuted:this.props.firstUserInteractionExecuted,enableExperimentalFeatures:this.props.enableExperimentalFeatures,actions:{eventsListener:this.props.actions.eventsListener}};return o.columns.map((function(e,o){var a={width:t.props.isPrerenderMode?"100%":e.width,height:t.getDimensions().height,overflowY:t.props.isPrerenderMode?"visible":"hidden"};return n().createElement("div",{"data-hook":"gallery-column",id:"gallery-horizontal-scroll-"+t.props.id,className:"gallery-horizontal-scroll gallery-column hide-scrollbars "+(t.props.options.isRTL?" rtl ":" ltr ")+" "+(t.props.options.scrollSnap?" scroll-snap ":"")+" ",key:"column"+o,style:a},n().createElement("div",{className:"gallery-horizontal-scroll-inner"},function(e){var o=!!e.galleryGroups.length&&t.getBufferedItems(e.galleryGroups,i);if(o)return o.map((function(e){var i=e.group,o=e.shouldRender;return!!i.rendered&&n().createElement(u.Z,(0,r.__assign)((0,r.__assign)({activeIndex:t.state.activeIndex,slideAnimation:t.props.options.slideAnimation,allowLoop:t.props.options.slideshowLoop&&t.props.galleryStructure.width>t.props.container.width},i.renderProps(s)),{ariaHidden:i.idx>t.skipFromSlide,shouldRenderEmpty:!o,container:t.props.container,key:i.idx}))}))}(e)))}))},e.prototype.getDimensions=function(){var t=this.props.container.galleryHeight;return this.props.isPrerenderMode?{width:"100%",height:t}:{height:t,width:this.props.container.galleryWidth}},e.prototype.createGallery=function(){var t,e=this.props.options.scrollDirection===a.Z.scrollDirection.HORIZONTAL&&this.props.options.arrowsPosition===a.Z.arrowsPosition.OUTSIDE_GALLERY?{overflow:"visible",left:this.props.options.arrowsSize+40+this.props.options.imageMargin/2}:{},i=this.getDimensions(),o=(0,r.__assign)((0,r.__assign)({},i),e);return n().createElement("div",{id:this.props.galleryContainerId,className:"pro-gallery inline-styles one-row hide-scrollbars "+(this.props.options.enableScroll?" slider ":"")+((null===(t=this.props.settings)||void 0===t?void 0:t.isAccessible)?" accessible ":"")+(this.props.options.isRTL?" rtl ":" ltr "),style:o},this.createDebugMsg(),(0,g.Ie)({options:this.props.options,container:this.props.container,isPrerenderMode:this.props.isPrerenderMode,galleryStructure:this.props.galleryStructure,customNavArrowsRenderer:this.props.customComponents.customNavArrowsRenderer})&&this.createNavArrows(),this.createLayout(),this.createAutoSlideShowPlayButton(),this.createSlideShowNumbers())},e.prototype.onAutoSlideShowButtonClick=function(){var t=this;this.setState({pauseAutoSlideshowClicked:!this.state.pauseAutoSlideshowClicked},(function(){t.updateAutoSlideShowState(t.props)}))},e.prototype.isFullWidthGallery=function(){return this.props.container.galleryWidth>=l.Z.getWindowWidth()-10},e.prototype.onAutoSlideshowAutoPlayKeyPress=function(t){switch(t.keyCode||t.charCode){case 32:case 13:return t.preventDefault(),t.stopPropagation(),this.onAutoSlideShowButtonClick(),!1;default:return!0}},e.prototype.calcSlideshowCounterWidth=function(){var t=this.props.totalItemsCount;return t<10?26:t<100?43:t<1e3?60:76},e.prototype.createAutoSlideShowPlayButton=function(){var t=this;if(!this.shouldCreateSlideShowPlayButton)return!1;var e=this.props.options,i=e.galleryTextAlign,o=e.textBoxHeight,s=this.props.options.imageMargin/2+(this.isFullWidthGallery()?50:0),a="right"===i?{left:s/2+"px"}:{right:s/2+(this.props.options.allowSlideshowCounter?this.calcSlideshowCounterWidth():0)+"px"};return n().createElement("button",{className:"auto-slideshow-button",onClick:function(){t.onAutoSlideShowButtonClick()},onKeyDown:this.onAutoSlideshowAutoPlayKeyPress,"data-hook":"auto-slideshow-button",title:"slideshow auto play","aria-pressed":this.state.pauseAutoSlideshowClicked,tabIndex:0,style:(0,r.__assign)({top:"calc(100% - "+o+"px + 3px)"},a)},this.state.pauseAutoSlideshowClicked?n().createElement(p.Z,{width:"10px",height:"100%"}):n().createElement(d.Z,{width:"10px",height:"100%"}))},e.prototype.createSlideShowNumbers=function(){if(!this.props.options.allowSlideshowCounter)return!1;var t=this.props,e=t.totalItemsCount,i=t.options,o=i.galleryTextAlign,s=i.textBoxHeight,a=this.props.options.imageMargin/2+(this.isFullWidthGallery()?50:0),l=this.shouldCreateSlideShowPlayButton?a/2+25:a/2,h="right"===o?{left:l+"px"}:{right:a/2+"px"};return n().createElement("div",{className:"auto-slideshow-counter","data-hook":"auto-slideshow-counter",style:(0,r.__assign)({top:"calc(100% - "+s+"px + 3px)"},h)},n().createElement("div",null,this.state.activeIndex%e+1+"/"+e))},e.prototype.getThumbnails=function(){var t=this.props.options.hasThumbnails,e=this.props.options.galleryThumbnailsAlignment,i=!!t&&this.createThumbnails(e),r=[];switch(e){case"top":case"left":r[0]=i,r[1]=!1;break;case"right":case"bottom":r[0]=!1,r[1]=i}return r},e.prototype.getClassNames=function(){var t="pro-gallery-parent-container";return a.Z.isLayout("SLIDER")(this.props.options)?t+=" gallery-slider":this.props.options.hasThumbnails?t+=" gallery-thumbnails":a.Z.isLayout("COLUMN")(this.props.options)&&(t+=" gallery-columns"),this.isFullWidthGallery()&&(t+=" streched"),t},e.prototype.getStyles=function(){return{margin:-1*(this.props.options.imageMargin/2-this.props.options.layoutParams.gallerySpacing)}},e.prototype.getScrollPosition=function(){return this.scrollElement?this.scrollPosition():0},e.prototype.scrollPositionAtTheMiddleOfTheGallery=function(){return this.getScrollPosition()+this.props.container.galleryWidth/2},e.prototype.scrollPositionAtTheAndOfTheGallery=function(){return this.getScrollPosition()+this.props.container.galleryWidth},e.prototype.scrollPosition=function(){return(this.props.options.isRTL?-1:1)*this.scrollElement.scrollLeft},e.prototype.updateAutoSlideShowState=function(t){var e=this;void 0===t&&(t=this.props);var i=t.isGalleryInHover,r=t.options,o=t.settings,n=this.state,s=n.pauseAutoSlideshowClicked,a=n.shouldBlockAutoSlideshow,l=n.isInView,h=n.isInFocus,u=i&&r.pauseAutoSlideshowOnHover,c=h&&(null==o?void 0:o.isAccessible),p=!l||s||c||u;a!==p&&this.setState({shouldBlockAutoSlideshow:p},(function(){e.startAutoSlideshowIfNeeded(r)}))},e.prototype.onFocus=function(){var t=this;this.setState({isInFocus:!0},(function(){t.updateAutoSlideShowState(t.props)}))},e.prototype.onBlur=function(){var t=this;this.setState({isInFocus:!1},(function(){t.updateAutoSlideShowState(t.props)}))},e.prototype.UNSAFE_componentWillReceiveProps=function(t){var e,i,r=this;t.items&&(this.itemsForSlideshowLoopThumbnails=!1);var o=t.isInViewport&&(null===(e=t.isInDisplay)||void 0===e||e);o!==(this.props.isInViewport&&(null===(i=this.props.isInDisplay)||void 0===i||i))?this.setState({isInView:o},(function(){r.updateAutoSlideShowState(t)})):this.props.isGalleryInHover!==t.isGalleryInHover?this.updateAutoSlideShowState(t):this.props.container.scrollBase!=t.container.scrollBase&&this.forceUpdate((function(){r.startAutoSlideshowIfNeeded(t.options)})),this.props.activeIndex!==t.activeIndex&&l.Z.setStateAndLog(this,"Next Item",{activeIndex:t.activeIndex},(function(){r.onCurrentItemChanged()})),this.props.totalItemsCount!==t.totalItemsCount&&this.removeArrowsIfNeeded(),((0,s.wh)()||(0,s.g4)())&&(this.props.options.isAutoSlideshow===t.options.isAutoSlideshow&&this.props.options.autoSlideshowInterval===t.options.autoSlideshowInterval||this.startAutoSlideshowIfNeeded(t.options)),this.shouldCreateSlideShowPlayButton=t.options.isAutoSlideshow&&t.options.playButtonForAutoSlideShow},e.prototype.removeArrowsIfNeeded=function(){var t=this.props.options.isRTL,e=this.state,i=e.hideLeftArrow,r=e.hideRightArrow,o=this.isScrollStart(),n=this.isFirstItem(),s=this.isScrollEnd(),a=this.isLastItem(),l=o||n,h=s||a,u=!t&&l||t&&h,c=t&&l||!t&&h;(!!u!=!!i||!!c!=!!r)&&this.setState({hideLeftArrow:!!u,hideRightArrow:!!c})},e.prototype.componentDidMount=function(){this.scrollElement=h.Z.document.querySelector("#pro-gallery-"+this.props.id+" #gallery-horizontal-scroll-"+this.props.id),this.scrollElement&&this.scrollElement.addEventListener("scroll",this._setCurrentItemByScroll),this.state.activeIndex>0?(this.props.actions.scrollToItem(this.state.activeIndex),this.onCurrentItemChanged()):this.setCurrentItemByScroll(),this.startAutoSlideshowIfNeeded(this.props.options)},e.prototype.componentWillUnmount=function(){this.scrollElement&&this.scrollElement.removeEventListener("scroll",this._setCurrentItemByScroll)},e.prototype.render=function(){l.Z.isVerbose()&&(console.count("galleryView render"),console.count("Rendering Gallery count"),console.time("Rendering Gallery took "));var t=this.createGallery(),e=this.getThumbnails();return l.Z.isVerbose()&&console.timeEnd("Rendering Gallery took "),n().createElement("div",(0,r.__assign)({className:this.getClassNames(),style:this.getStyles(),onKeyDown:this.handleSlideshowKeyPress},l.Z.getAriaAttributes({proGalleryRole:this.props.proGalleryRole,proGalleryRegionLabel:this.props.proGalleryRegionLabel}),{onFocus:this.onFocus,onBlur:this.onBlur}),e[0],t,e[1])},e}(n().Component);e.Z=b},30237:function(t,e,i){function r(t,e){return!0!==e&&(!0===t.shouldValidateTypes||"true"===(function(){try{var t=new URLSearchParams(window.location.search);return Object.fromEntries(t.entries())}catch(t){return console.log("cannot use the URLSearchParams",t),{}}}()||""))}i.d(e,{Z:function(){return r}})},17775:function(t,e,i){var r=i(31191),o=i(27762),n=i.n(o),s=i(20339),a=function(t){function e(e){var i=t.call(this,e)||this;return i.displayName="GroupView",i.dom=[],i.state={},i}return(0,r.__extends)(e,t),e.prototype.createDom=function(t,e){var i=this;return this.props.items.map((function(o){var a=o.renderProps((0,r.__assign)((0,r.__assign)({},i.props.galleryConfig),{visible:t}));return n().createElement(s.Z,(0,r.__assign)((0,r.__assign)({},a),{type:null!=e&&e?"dummy":a.type}))}))},e.prototype.shouldRender=function(){var t=this.props.items;return!!(t&&t.length&&t[0])},e.prototype.isVisible=function(){var t=this.props,e=t.items,i=t.galleryConfig;if(this.props.allowLoop){var r=e[e.length-1].idx,o=i.activeIndex,n=i.totalItemsCount,s=o-r,a=Math.floor(n/2);return Math.abs(s)<=a}return!0},e.prototype.render=function(){var t=this.props.galleryConfig.options.isRTL;return this.shouldRender()?n().createElement("div",{key:"group_"+this.props.idx+"_"+this.props.items[0].id,"data-hook":"group-view",style:{"--group-top":this.props.top+"px","--group-left":t?"auto":this.props.left+"px","--group-width":this.props.width+"px","--group-right":t?this.props.left+"px":"auto"},"aria-hidden":this.props.ariaHidden},this.createDom(this.isVisible(),this.props.shouldRenderEmpty)):null},e}(n().Component);e.Z=a},70706:function(t,e,i){i.d(e,{_:function(){return n}});var r=i(74409),o=function(t,e,i){void 0===t&&(t="");var o=i.isRTL,n="";return e.forEach((function(e){var i=function(t){var e=t.galleryId,i=t.item;return"#pro-gallery-"+e+" #"+r.O.getSellectorDomId(i)}({galleryId:t,item:e}),s=function(t){return{top:t.offset.top,left:t.offset.left,width:t.width+t.infoWidth,height:t.height+t.infoHeight,innerHeight:t.height}}(e),a="top:"+s.top+"px;",l=o?"right:"+s.left+"px;left:auto;":"left:"+s.left+"px;",h="width:"+s.width+"px;",u="height:"+s.height+"px;";n+=i+" {"+a+l+h+u+"}"})),n},n=function(t){var e=t.galleryItems,i=t.layoutParams,r=t.id,n=[];return n.push(o(r,e,i.styleParams)),n}},74409:function(t,e,i){i.d(e,{O:function(){return s}});var r=i(12146),o=i(30972),n=i(70347),s=new(function(){function t(){this.pgScrollSteps=[40960,20480,10240,5120,2560,1280,640,320,160,80,40,20,10],this.pgScrollClassName="pgscl",this.screenSize=Math.max(r.Z.screen.width,r.Z.screen.height),this.scrollCss=[],this.scrollCssProps=[],this.calcScrollPaddings(!1)}return t.prototype.calcScrollPaddings=function(){var t=this;this.allPagePadding=function(){return[1/0,1/0]},this.inScreenPadding=function(){return[0,0]},this.aboveScreenPadding=function(){return[0,1/0]},this.justBelowScreenPadding=function(e){return[1/0,-1*(e+t.screenSize)]},this.justBelowAndAboveScreenPadding=function(){return[2560,1/0]},this.justBelowAndInScreenPadding=function(){return[5120,0]},this.belowScreenPadding=function(){return[1/0,0]},this.highResPadding=function(){return[5120,1/0]},this.lowResPadding=function(){return[10240,1/0]}},t.prototype.getSellectorDomId=function(t){var e=t.id,i=t.idx;return"pgi"+String(e).replace(/[\W]+/g,"")+"_"+i},t.prototype.buildScrollClassName=function(t,e,i){var r=String(t).replace(/[\W]+/g,"").slice(-8);return this.pgScrollClassName+"_"+r+"_"+i+"-"+(this.pgScrollSteps[e]+Number(i))},t.prototype.calcScrollClasses=function(t,e){var i=this;return this.pgScrollClassName+"-"+e+" "+this.pgScrollSteps.map((function(r,o){return i.buildScrollClassName(t,o,Math.floor(e/r)*r)})).join(" ")},t.prototype.calcScrollCss=function(t){var e=this,i=t.id,s=t.items,a=t.options,l=t.container;if(o.Z.isVerbose()&&console.time("CSS Scroll"),!s||!s.length)return[];var h=a.scrollAnimation;if(!h||h===n.Z.scrollAnimations.NO_EFFECT)return[];this.screenSize=a.scrollDirection===n.Z.scrollDirection.HORIZONTAL?Math.min(r.Z.outerWidth,r.Z.screen.width,l.galleryWidth):Math.min(r.Z.outerHeight,r.Z.screen.height),a.scrollDirection===n.Z.scrollDirection.VERTICAL&&o.Z.isMobile()&&(this.screenSize+=50),this.calcScrollPaddings();var u=s.slice(-1)[0].offset,c=u.top,p=u.right,d=this.pgScrollSteps[0];this.minHeight=0-d,this.maxHeight=(Math.ceil(((a.scrollDirection===n.Z.scrollDirection.HORIZONTAL?p:c)+this.screenSize)/d)+1)*d;var m=s.map((function(t){return e.calcScrollCssForItem({id:i,item:t,options:a})}));return o.Z.isVerbose()&&console.timeEnd("CSS Scroll"),m},t.prototype.shouldCalcScrollCss=function(t){var e=t.type;return"video"!==e&&"text"!==e},t.prototype.createScrollSelectorsFunction=function(t){var e=this,i=t.id,r=t.item,o=t.options,s=o.scrollDirection===n.Z.scrollDirection.HORIZONTAL?r.offset.left-this.screenSize:r.offset.top-this.screenSize,a=o.scrollDirection===n.Z.scrollDirection.HORIZONTAL?r.offset.left+r.width:r.offset.top+r.height,l=this.pgScrollSteps[this.pgScrollSteps.length-1],h=this.getSellectorDomId(r);return function(t,r){var o=t[0],n=t[1];if(o===1/0&&n===1/0)return"#pro-gallery-"+i+" #"+h+" "+r;for(var u,c,p=(u=s-o,c=l,Math.floor(Math.max(e.minHeight,u)/c)*c),d=function(t,i){return Math.ceil(Math.min(e.maxHeight,t)/i)*i}(a+n,l),m=[];p0&&se}));break;default:r=n(o.offset.right,o.offset.top+o.height/2,(function(t,e,i){return i>t}))}return r.idx>=0?r.idx:(console.warn("Could not find offset for itemIdx",t,e),t)}},89976:function(t,e,i){i.d(e,{Bl:function(){return d},Ie:function(){return u},yq:function(){return h}});var r=i(27762),o=i.n(r),n=i(70347),s=i(30972),a=i(83596),l=function(t){var e=t.customNavArrowsRenderer,i=t.arrowsSize,r=t.svgData,o=t.containerStyleType,s=r.width/r.height>1;if(o===n.Z.arrowsContainerStyleType.BOX)return{navArrowsContainerWidth:i,navArrowsContainerHeight:i,scalePercentage:i/2.4/(s?r.width:r.height)};if(e)return{navArrowsContainerWidth:i,navArrowsContainerHeight:i};var a=i/r.width;return{scalePercentage:a,navArrowsContainerWidth:i,navArrowsContainerHeight:r.height*a}},h=function(t){var e=t.customNavArrowsRenderer,i=t.arrowsColor,r=t.arrowsSize,a=t.arrowsType,h=t.containerStyleType,u=p(a),c=l({customNavArrowsRenderer:e,arrowsSize:r,svgData:u,containerStyleType:h}),d=c.navArrowsContainerWidth,m=c.navArrowsContainerHeight,g=c.scalePercentage;if(e){var f=h===n.Z.arrowsContainerStyleType.BOX?r/2.4:r;return{arrowRenderer:function(t){return o().createElement("div",{style:{width:f,height:f}},e(t))},navArrowsContainerWidth:d,navArrowsContainerHeight:m}}return{arrowRenderer:function(t){var e={transform:"scaleX("+("right"===t?1:-1)+") scale("+g+")",fill:s.Z.isMobile()&&(null==i?void 0:i.value)?i.value:""};return o().createElement(u.SvgComp,{style:e})},navArrowsContainerWidth:d,navArrowsContainerHeight:m}},u=function(t){var e=c(t),i=e.options.showArrows,r=e.container.galleryWidth,o=e.isPrerenderMode,n=e.galleryStructure,s=e.customNavArrowsRenderer,a={options:e.options,container:e.container,customNavArrowsRenderer:s},h=n.width<=r;return!!i&&!o&&function(t){var e=t.options,i=e.arrowsVerticalPosition,r=e.textBoxHeight,o=e.arrowsSize,n=e.layoutParams,s=t.container.height,a=t.customNavArrowsRenderer,h=p(n.navigationArrows.type),u=l({customNavArrowsRenderer:a,arrowsSize:o,svgData:h,containerStyleType:n.navigationArrows.container.containerStyleType}).navArrowsContainerHeight;return{INFO_CENTER:r,IMAGE_CENTER:s-r,ITEM_CENTER:s}[i]>=u}(a)&&!h},c=function(t){var e=t.isPrerenderMode,i=t.galleryStructure,r=t.customNavArrowsRenderer;return{options:t.options,container:t.container,isPrerenderMode:e,galleryStructure:i,customNavArrowsRenderer:r}},p=function(t){void 0===t&&(t=n.Z.arrowsType.DEFAULT_ARROW);var e,i=n.Z.arrowsType,r=(i.DEFAULT_ARROW,i.ARROW_2),o=i.ARROW_3,s=i.ARROW_4,l=i.ARROW_5,h=i.ARROW_6,u=i.ARROW_7;switch(t){case r:e=a.Z.ARROW_2;break;case o:e=a.Z.ARROW_3;break;case s:e=a.Z.ARROW_4;break;case l:e=a.Z.ARROW_5;break;case h:e=a.Z.ARROW_6;break;case u:e=a.Z.ARROW_7;break;default:e=a.Z.DEFAULT_ARROW}return e},d=function(t){var e=t.type,i=t.backgroundColor,r=t.borderRadius;return e===n.Z.arrowsContainerStyleType.BOX?{backgroundColor:i,borderRadius:r+"%"}:{}}},73004:function(t,e,i){i.d(e,{ZS:function(){return h},cb:function(){return a},qW:function(){return u},r1:function(){return p},rq:function(){return s}});var r=i(30972),o=i(70347),n=i(94272);function s(t){var e,i,n=t.scrollMarginCorrection,s=void 0===n?0:n,a=t.durationInMS,l=t.horizontalElement,h=t.scrollingElement,u=t.isRTL,p=t.scrollDirection,d=t.galleryWidth,m=t.galleryHeight,g=t.totalWidth,f=t.top,y=t.items,v=t.itemIdx,b=t.fixedScroll,I=t.slideTransition,S=t.isContinuousScrolling,_=t.autoSlideshowContinuousSpeed,w=t.imageMargin,P=u?-1:1;if(p===o.Z.scrollDirection.HORIZONTAL?(i=l.scrollLeft*P,e=i+v*d/2):(i=f,e=f+v*m/2),!0!==b){r.Z.isVerbose()&&console.log("Scrolling to items #"+v);var T=y.find((function(t){return t.idx===v}));if(e=p===o.Z.scrollDirection.HORIZONTAL?r.Z.get(T,"offset.left"):r.Z.get(T,"offset.top"),r.Z.isVerbose()&&console.log("Scrolling to position "+e,T),!(e>=0))return r.Z.isVerbose()&&console.warn("Position not found, not scrolling"),new Promise((function(t){return t()}));if(p===o.Z.scrollDirection.HORIZONTAL){var x=(d-T.width-w)/2;e-=x,e=Math.max(0,e),e=Math.min(e,g-d+s),e*=P,i*=P,r.Z.isVerbose()&&console.log("Scrolling to new position "+e,this)}}return p===o.Z.scrollDirection.HORIZONTAL?c({scroller:l,from:Math.round(i),to:Math.round(e),duration:a,isRTL:u,slideTransition:I,isContinuousScrolling:S,autoSlideshowContinuousSpeed:_}):new Promise((function(t){h.vertical().scrollTo(0,e),t(e)}))}function a(t){var e,i,n=t.scrollMarginCorrection,s=void 0===n?0:n,a=t.durationInMS,l=t.horizontalElement,h=t.scrollingElement,u=t.isRTL,p=t.scrollDirection,d=t.galleryWidth,m=t.galleryHeight,g=t.totalWidth,f=t.top,y=t.groups,v=t.groupIdx,b=t.fixedScroll,I=t.slideTransition,S=t.isContinuousScrolling,_=t.autoSlideshowContinuousSpeed,w=t.imageMargin,P=u?-1:1;if(p===o.Z.scrollDirection.HORIZONTAL?(i=l.scrollLeft,e=i+v*d/2):(i=f,e=f+v*m/2),!0!==b){r.Z.isVerbose()&&console.log("Scrolling to groups #"+v);var T=y.find((function(t){return t.idx===v}));if(e=p===o.Z.scrollDirection.HORIZONTAL?r.Z.get(T,"left"):r.Z.get(T,"top"),r.Z.isVerbose()&&console.log("Scrolling to position "+e,T),!(e>=0))return r.Z.isVerbose()&&console.warn("Position not found, not scrolling"),new Promise((function(t){return t()}));if(p===o.Z.scrollDirection.HORIZONTAL){var x=(d-T.width-w)/2;e-=x,e=Math.max(0,e),e=Math.min(e,g-d+s),e*=P,r.Z.isVerbose()&&console.log("Scrolling to new position "+e,this)}}return p===o.Z.scrollDirection.HORIZONTAL?c({scroller:l,from:Math.round(i),to:Math.round(e),duration:a,isRTL:u,slideTransition:I,isContinuousScrolling:S,autoSlideshowContinuousSpeed:_}):new Promise((function(t){h.vertical().scrollTo(0,e),t(e)}))}function l(t){var e=t.offset,i=t.scroll,r=t.itemStart;return{before:i-e-t.itemEnd,after:e+r-t.screenSize-i}}function h(t){var e=t.target,i=t.scrollBase,r=t.top,o=t.bottom,n=t.screenHeight,s=t.padding,a=l({offset:i||0,scroll:e.scrollY,itemStart:r,itemEnd:o,screenSize:n});return a.before=a})),x=e[T],C=x[_]/S,Z=C,E=C,O=[x],L=1;Za-f*m&&r=0},e.prototype.onMouseOver=function(){a.Z.isMobile()||this.props.actions.eventsListener(s.Z.events.HOVER_SET,this.props.idx)},e.prototype.onMouseOut=function(){a.Z.isMobile()||this.props.actions.eventsListener(s.Z.events.HOVER_SET,-1)},e.prototype.onFocus=function(){var t;(null===(t=this.props.settings)||void 0===t?void 0:t.isAccessible)&&this.props.actions.eventsListener(s.Z.events.HOVER_SET,this.props.idx),this.props.actions.eventsListener(s.Z.events.ITEM_FOCUSED,this.props)},e.prototype.onBlur=function(){var t;(null===(t=this.props.settings)||void 0===t?void 0:t.isAccessible)&&this.props.actions.eventsListener(s.Z.events.HOVER_SET,-1),this.props.actions.eventsListener(s.Z.events.ITEM_LOST_FOCUS,this.props)},e.prototype.onContainerKeyDown=function(t){switch(t.keyCode||t.charCode){case 32:case 13:return t.stopPropagation(),this.onItemClick(t,"item-container",!1),this.shouldUseDirectLink()&&this.itemAnchor.click(),!1;default:return!0}},e.prototype.onAnchorKeyDown=function(t){switch(t.keyCode||t.charCode){case 32:case 13:return t.stopPropagation(),this.onItemClick(t,"item-container",!1),!1;default:return!0}},e.prototype.handleGalleryItemAction=function(t){this.props.actions.eventsListener(s.Z.events.ITEM_ACTION_TRIGGERED,this.props,t)},e.prototype.onItemWrapperClick=function(t){this.onItemClick(t,"item-media")},e.prototype.onItemInfoClick=function(t){this.onItemClick(t,"item-info")},e.prototype.onItemClick=function(t,e,i){void 0===i&&(i=!0),a.Z.isFunction(a.Z.get(l.Z,"galleryWixCodeApi.onItemClicked"))&&l.Z.galleryWixCodeApi.onItemClicked(this.props),this.props.actions.eventsListener(s.Z.events.ITEM_CLICKED,(0,r.__assign)((0,r.__assign)({},this.props),{clickTarget:e}),t),this.shouldUseDirectLink()||(i&&t.preventDefault(),this.shouldShowHoverOnMobile()?this.handleHoverClickOnMobile(t):this.handleGalleryItemAction(t))},e.prototype.handleHoverClickOnMobile=function(t){this.isClickOnCurrentHoveredItem()?(this.handleGalleryItemAction(t),this.props.actions.eventsListener(s.Z.events.HOVER_SET,-1)):this.props.actions.eventsListener(s.Z.events.HOVER_SET,this.props.idx)},e.prototype.handleItemMouseDown=function(){return!0},e.prototype.handleItemMouseUp=function(){return a.Z.isMobile()&&this.longPressTimer&&clearTimeout(this.longPressTimer),!0},e.prototype.shouldShowHoverOnMobile=function(){if(a.Z.isMobile()){var t=this.props.options,e=t.titlePlacement,i=t.hoveringBehaviour,r=t.itemClick,o=t.alwaysShowHover,n=t.previewHover,l=t.allowDescription,c=t.allowTitle,p=t.isStoreGallery,d=h.e.supports.mobileSettings;if(i===s.Z.infoBehaviourOnHover.NEVER_SHOW)return!1;if("nothing"===r&&"video"!==this.props.type)return!0;if(this.props.customComponents.customHoverRenderer&&s.Z.hasHoverPlacement(e)&&i!==s.Z.infoBehaviourOnHover.NEVER_SHOW&&d&&(l||c||p))return!0;if(o)return!0;if((0,u.wh)()&&n)return!0}return!1},e.prototype.isHighlight=function(){return this.props.thumbnailHighlightId&&this.props.thumbnailHighlightId===this.props.id},e.prototype.shouldHover=function(){var t=this.props.options,e=t.alwaysShowHover,i=t.previewHover,r=t.hoveringBehaviour,o=t.overlayAnimation,n=s.Z.infoBehaviourOnHover,l=n.NEVER_SHOW,h=n.APPEARS,c=s.Z.overlayAnimations.NO_EFFECT;return r!==l&&(!0===e||(!(!(0,u.wh)()||!i)||!(r===h&&o===c&&!this.state.itemWasHovered)&&(!a.Z.isMobile()||this.shouldShowHoverOnMobile())))},e.prototype.getItemHover=function(t){var e=this,i=this.props,o=i.customComponents,s=(0,r.__rest)(i,["customComponents"]);return this.shouldHover()&&n().createElement(d.Z,(0,r.__assign)({},s,{forceShowHover:this.simulateOverlayHover(),imageDimensions:t,itemWasHovered:this.state.itemWasHovered,key:"hover",actions:{handleItemMouseDown:this.handleItemMouseDown,handleItemMouseUp:this.handleItemMouseUp},renderCustomInfo:o.customHoverRenderer?function(){return o.customHoverRenderer((0,v.x$)(e.props))}:null}))},e.prototype.getImageItem=function(t){var e=a.Z.pick(this.props,["gotFirstScrollEvent","calculatedAlt","title","description","id","idx","options","createUrl","createMagnifiedUrl","settings","isPrerenderMode","isTransparent","style"]);return n().createElement(c.Z,(0,r.__assign)({},e,{key:"imageItem",imageDimensions:t,isThumbnail:!!this.props.thumbnailHighlightId,actions:{handleItemMouseDown:this.handleItemMouseDown,handleItemMouseUp:this.handleItemMouseUp,setItemLoaded:this.setItemLoaded}}))},e.prototype.getVideoItem=function(t,e){return n().createElement(y.Z,(0,r.__assign)({},this.props,{shouldPlay:this.props.idx===this.props.playingVideoIdx,key:"video"+this.props.idx,hover:e,imageDimensions:t,hasLink:this.itemHasLink(),actions:(0,r.__assign)((0,r.__assign)({},this.props.actions),{setItemLoaded:this.setItemLoaded,handleItemMouseDown:this.handleItemMouseDown,handleItemMouseUp:this.handleItemMouseUp})}))},e.prototype.getTextItem=function(t){var e=a.Z.pick(this.props,["id","options","style","html","cropRatio","isPrerenderMode"]);return n().createElement(p.Z,(0,r.__assign)({},e,{key:"textItem",imageDimensions:t,actions:{handleItemMouseDown:this.handleItemMouseDown,handleItemMouseUp:this.handleItemMouseUp,setItemLoaded:this.setItemLoaded}}))},e.prototype.getItemInner=function(){var t,e=this.props,i=e.type,r=e.style,o=e.offset,s={width:r.innerWidth,height:r.innerHeight,marginTop:o.innerTop,marginLeft:o.innerLeft},a=null;switch(this.shouldHover()&&(a=this.getItemHover(s)),i){case"dummy":t=n().createElement("div",null);break;case"video":t=this.getVideoItem(s,a);break;case"text":t=[this.getTextItem(s),a];break;default:t=this.props.isVideoPlaceholder?this.getVideoItem(s,a):[this.getImageItem(s),a]}return t},e.prototype.getRightInfoElementIfNeeded=function(){return s.Z.hasExternalRightPlacement(this.props.options.titlePlacement,this.props.idx)?this.getExternalInfoElement(s.Z.placements.SHOW_ON_THE_RIGHT,"gallery-item-right-info"):null},e.prototype.getLeftInfoElementIfNeeded=function(){return s.Z.hasExternalLeftPlacement(this.props.options.titlePlacement,this.props.idx)?this.getExternalInfoElement(s.Z.placements.SHOW_ON_THE_LEFT,"gallery-item-left-info"):null},e.prototype.getBottomInfoElementIfNeeded=function(){return s.Z.hasExternalBelowPlacement(this.props.options.titlePlacement,this.props.idx)?this.getExternalInfoElement(s.Z.placements.SHOW_BELOW,"gallery-item-bottom-info"):null},e.prototype.getTopInfoElementIfNeeded=function(){return s.Z.hasExternalAbovePlacement(this.props.options.titlePlacement,this.props.idx)?this.getExternalInfoElement(s.Z.placements.SHOW_ABOVE,"gallery-item-top-info"):null},e.prototype.getExternalInfoElement=function(t,e){var i=this.props,o=i.options,a=i.customComponents,l=i.style;if(!a.customInfoRenderer)return null;var h=o.textBoxHeight+(this.hasRequiredMediaUrl?0:l.height),u=l.infoWidth+(this.hasRequiredMediaUrl?0:l.width),c=a.customInfoRenderer((0,v.x$)(this.props),t),p=s.Z.isLayout("SLIDESHOW")(this.props.options),d=(0,v.$z)(this.props,p);return n().createElement("div",{className:"gallery-item-common-info-outer ",style:(0,r.__assign)((0,r.__assign)({},(0,f.HC)(t,o,l.height,o.textBoxHeight)),d)},n().createElement("div",{style:(0,f.CF)(t,o,h,u),className:"gallery-item-common-info "+e,onClick:this.onItemInfoClick},c))},e.prototype.simulateHover=function(){return this.state.isCurrentHover||!0===this.props.options.alwaysShowHover||(0,u.wh)()&&this.props.options.previewHover},e.prototype.simulateOverlayHover=function(){return this.simulateHover()||this.props.options.hoveringBehaviour===s.Z.infoBehaviourOnHover.NO_CHANGE},e.prototype.itemHasLink=function(){var t=this.props,e=t.linkData,i=t.linkUrl;return!(void 0===e.type&&(void 0===i||""===i))},e.prototype.getItemContainerStyles=function(){var t,e=this.props,i=e.idx,o=e.activeIndex,n=e.offset,a=e.style,l=e.options,h=e.settings,c=void 0===h?{}:h,p=l.scrollDirection,d=l.imageMargin,m=l.isRTL,g=l.slideAnimation,y=(0,f.PK)(l),v={overflowY:"hidden",position:"absolute",bottom:"auto",margin:p===s.Z.scrollDirection.HORIZONTAL?d/2+"px":0,cursor:this.isItemClickable(l)},b=c.avoidInlineStyles,I=this.props.isPrerenderMode&&!this.props.settings.disableSSROpacity,S=b?{}:{opacity:I?0:1,display:I?"none":"block",transition:"opacity .2s ease"},_=b?{}:{top:n.top,left:m?"auto":n.left,right:m?n.left:"auto",width:a.width+a.infoWidth,height:a.height+a.infoHeight};switch(g){case s.Z.slideAnimations.FADE:t={left:m?"auto":0,right:m?0:"auto",pointerEvents:o===i?"auto":"none",zIndex:o===i?0:1};break;case s.Z.slideAnimations.DECK:t={left:m?"auto":0,right:m?0:"auto",pointerEvents:o===i?"auto":"none",zIndex:Math.sign(o-i)};break;default:t={}}var w=this.state.loaded&&((0,u.wh)()||(0,u.g4)())?{transition:"all .4s ease",transitionProperty:"top, left, width, height, opacity"}:{transition:"none"};return(0,r.__assign)((0,r.__assign)((0,r.__assign)((0,r.__assign)((0,r.__assign)((0,r.__assign)({},v),_),y),w),S),t)},e.prototype.getItemWrapperStyles=function(){var t=this.props,e=t.options,i=t.style,o=t.type,n=i.height,s=i.width,a={};return a.backgroundColor="text"===o?"fit"!==e.cubeType?"transparent":"inherit":("fit"!==e.cubeType?i.bgColor:"inherit")||"transparent",a.height=n+"px",a.width=s+"px",a.margin=-e.itemBorderWidth+"px",(0,r.__assign)((0,r.__assign)({},a),(0,v.$z)(this.props))},e.prototype.getItemAriaLabel=function(){var t=this.props,e=t.type,i=t.calculatedAlt,r=t.htmlContent,o=t.options;return{dummy:"",text:r,video:i||"Untitled video",image:i||"Untitled image"}[e]+(o.isStoreGallery?", Buy Now":"")},e.prototype.isItemClickable=function(t){var e=!this.itemHasLink();return!(t.itemClick===s.Z.itemClick.NOTHING||t.itemClick===s.Z.itemClick.LINK&&e)},e.prototype.getItemContainerClass=function(){var t=this.props.options,e=t.imagePlacementAnimation,i=t.overlayAnimation,r=t.imageHoverAnimation,o={"gallery-item-container":!0,visible:!0,"pro-gallery-highlight":this.isHighlight(),clickable:this.isItemClickable(t),"simulate-hover":this.simulateHover(),"hide-hover":!this.simulateHover()&&a.Z.isMobile(),"invert-hover":t.hoveringBehaviour===s.Z.infoBehaviourOnHover.DISAPPEARS,"animation-slide":e===s.Z.imagePlacementAnimations.SLIDE,"hover-animation-fade-in":i===s.Z.overlayAnimations.FADE_IN,"hover-animation-expand":i===s.Z.overlayAnimations.EXPAND,"hover-animation-slide-up":i===s.Z.overlayAnimations.SLIDE_UP,"hover-animation-slide-right":i===s.Z.overlayAnimations.SLIDE_RIGHT,"hover-animation-slide-down":i===s.Z.overlayAnimations.SLIDE_DOWN,"hover-animation-slide-left":i===s.Z.overlayAnimations.SLIDE_LEFT,"zoom-in-on-hover":r===s.Z.imageHoverAnimations.ZOOM_IN,"blur-on-hover":r===s.Z.imageHoverAnimations.BLUR,"grayscale-on-hover":r===s.Z.imageHoverAnimations.GRAYSCALE,"shrink-on-hover":r===s.Z.imageHoverAnimations.SHRINK,"invert-on-hover":r===s.Z.imageHoverAnimations.INVERT,"color-in-on-hover":r===s.Z.imageHoverAnimations.COLOR_IN,"darkened-on-hover":r===s.Z.imageHoverAnimations.DARKENED,"pro-gallery-mobile-indicator":a.Z.isMobile()};return Object.entries(o).map((function(t){var e=t[0];return!!t[1]&&e})).filter(Boolean).join(" ")},e.prototype.getItemWrapperClass=function(){var t=this.props,e=t.options,i=t.type,r=["gallery-item-wrapper","visible"];return e.cubeImages&&r.push("cube-type-"+e.cubeType),"text"===i&&r.push("gallery-item-wrapper-text"),r.join(" ")},e.prototype.getItemContainerTabIndex=function(){return this.isHighlight()?a.Z.getTabIndex("currentThumbnail"):this.props.activeIndex===this.props.idx?a.Z.getTabIndex("currentGalleryItem"):-1},e.prototype.componentDidMount=function(){if(a.Z.isMobile()&&"function"==typeof n().initializeTouchEvents)try{n().initializeTouchEvents(!0)}catch(t){console.error(t)}l.Z.addEventListener("current_hover_change",this.checkIfCurrentHoverChanged)},e.prototype.componentWillUnmount=function(){clearTimeout(this.itemLoadedTimeout),l.Z.removeEventListener("current_hover_change",this.checkIfCurrentHoverChanged)},e.prototype.componentDidUpdate=function(t){(0,m.sq)({prevProps:t,currentProps:this.props,itemContainer:this.itemContainer})},e.prototype.checkIfCurrentHoverChanged=function(t){t.galleryId===this.props.galleryId&&(this.state.isCurrentHover||t.currentHoverIdx!==this.props.idx?this.state.isCurrentHover&&t.currentHoverIdx!==this.props.idx&&this.setState({isCurrentHover:!1}):this.setState({isCurrentHover:!0,itemWasHovered:!0}))},e.prototype.onContextMenu=function(t){a.Z.isDev()||this.props.options.allowContextMenu||t.preventDefault(t)},e.prototype.getItemAriaRole=function(){switch(this.props.options.itemClick){case"expand":case"fullscreen":return"button";case"link":return"link";default:return""}},e.prototype.composeItem=function(){var t,e=this,i=this.props,o=i.photoId,a=i.id,l=i.hash,h=i.idx,u=i.options,c=i.type,p=i.url;this.hasRequiredMediaUrl=p||"text"===c;var d=u.titlePlacement!==s.Z.placements.SHOW_ON_HOVER&&!this.hasRequiredMediaUrl,y=n().createElement("div",{className:this.getItemContainerClass(),onContextMenu:function(t){return e.onContextMenu(t)},id:g.O.getSellectorDomId(this.props),ref:function(t){return e.itemContainer=t},onMouseOver:this.onMouseOver,onMouseOut:this.onMouseOut,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onContainerKeyDown,tabIndex:this.getItemContainerTabIndex(),"aria-label":this.getItemAriaLabel(),"data-hash":l,"data-id":o,"data-idx":h,role:this.getItemAriaRole(),"data-hook":"item-container",key:"item-container-"+a,style:this.getItemContainerStyles()},this.getTopInfoElementIfNeeded(),this.getLeftInfoElementIfNeeded(),n().createElement("div",{style:(0,r.__assign)((0,r.__assign)((0,r.__assign)({},(0,f.TR)(this.props.options)),s.Z.hasExternalRightPlacement(this.props.options.titlePlacement,this.props.idx)&&{float:"left"}),s.Z.hasExternalLeftPlacement(this.props.options.titlePlacement,this.props.idx)&&{float:"right"})},!d&&n().createElement("div",{"data-hook":"item-wrapper",className:this.getItemWrapperClass(),key:"item-wrapper-"+a,id:"item-wrapper-"+a,style:this.getItemWrapperStyles(),onClick:this.onItemWrapperClick},this.getItemInner())),this.getRightInfoElementIfNeeded(),this.getBottomInfoElementIfNeeded()),b=(0,v.dX)(this.props),I={ref:function(t){return e.itemAnchor=t},"data-id":o,class:"item-link-wrapper","data-idx":h,"data-hook":"item-link-wrapper",onFocus:function(){(0,m.VD)({itemAnchor:e.itemAnchor,enableExperimentalFeatures:e.props.enableExperimentalFeatures,itemContainer:e.itemContainer})},tabIndex:-1,onKeyDown:function(t){e.onAnchorKeyDown(t)}};return(null===(t=null==b?void 0:b.href)||void 0===t?void 0:t.length)>0?n().createElement("a",(0,r.__assign)({key:"item-container-link-"+a},I,b),y):n().createElement("div",(0,r.__assign)({key:"item-container-div-"+a},I),y)},e.prototype.render=function(){return this.composeItem()},e}(n().Component);e.Z=b},29869:function(t,e,i){i.d(e,{CF:function(){return u},HC:function(){return h},PK:function(){return s},TR:function(){return a}});var r=i(31191),o=i(70347),n=i(30972);function s(t){return(0,r.__assign)({},(t.imageInfoType===o.Z.infoType.ATTACHED_BACKGROUND||o.Z.hasHoverPlacement(t.titlePlacement))&&(0,r.__assign)((0,r.__assign)({},l(t.itemBorderRadius,t.itemBorderWidth,t.itemBorderColor)),function(t){var e={};if(t.itemEnableShadow){var i=t.itemShadowBlur,r=t.itemShadowDirection,o=t.itemShadowSize,s=-1*(Number(r)-90)/360*2*Math.PI;e={boxShadow:Math.round(o*Math.cos(s))+"px "+Math.round(-1*o*Math.sin(s))+"px "+i+"px "+n.Z.formatColor(t.itemShadowOpacityAndColor)}}return e}(t)))}function a(t){return(0,r.__assign)({},!o.Z.hasHoverPlacement(t.titlePlacement)&&(t.imageInfoType===o.Z.infoType.NO_BACKGROUND||t.imageInfoType===o.Z.infoType.SEPARATED_BACKGROUND)&&(0,r.__assign)({},l(t.itemBorderRadius,t.itemBorderWidth,t.itemBorderColor)))}function l(t,e,i){return(0,r.__assign)((0,r.__assign)({overflow:"hidden"},t>0&&{borderRadius:t}),e>0&&{borderWidth:e+"px",borderColor:n.Z.formatColor(i),borderStyle:"solid"})}function h(t,e,i,n){var s=(0,r.__assign)((0,r.__assign)({},o.Z.hasExternalHorizontalPlacement(t)&&{height:i,float:o.Z.isExternalRightPlacement(t)?"right":"left"}),o.Z.hasExternalVerticalPlacement(t)&&{height:n,boxSizing:"content-box"});return e.imageInfoType===o.Z.infoType.SEPARATED_BACKGROUND?(0,r.__assign)((0,r.__assign)((0,r.__assign)((0,r.__assign)({},s),l(e.textBoxBorderRadius,e.textBoxBorderWidth,e.textBoxBorderColor)),o.Z.hasExternalAbovePlacement(t)&&{marginBottom:e.textImageSpace}),o.Z.hasExternalBelowPlacement(t)&&{marginTop:e.textImageSpace}):s}function u(t,e,i,n){var s=(0,r.__assign)((0,r.__assign)({},(e.imageInfoType===o.Z.infoType.SEPARATED_BACKGROUND||e.imageInfoType===o.Z.infoType.ATTACHED_BACKGROUND)&&e.textBoxFillColor&&e.textBoxFillColor.value&&{backgroundColor:e.textBoxFillColor.value}),{overflow:"hidden",boxSizing:"border-box"}),a=o.Z.hasExternalVerticalPlacement(t),l=o.Z.hasExternalHorizontalPlacement(t);return(0,r.__assign)((0,r.__assign)((0,r.__assign)({},s),a&&function(t,e){return{width:"100%",height:e}}(0,i)),l&&function(t,e){return{height:"100%",width:e}}(0,n))}},10651:function(t,e,i){i.d(e,{k:function(){return s}});var r=i(31191),o=i(27762),n=i.n(o),s=function(t){function e(e){var i=t.call(this,e)||this;return i.state={isPrinting:!1},i}return(0,r.__extends)(e,t),e.prototype.componentDidMount=function(){var t=this;window.addEventListener("beforeprint",(function(){t.setState({isPrinting:!0})})),window.addEventListener("afterprint",(function(){t.setState({isPrinting:!1})}))},e.prototype.render=function(){return this.state.isPrinting?n().createElement("source",(0,r.__assign)({},this.props)):null},e}(n().Component)},51944:function(t,e,i){i.d(e,{$z:function(){return a},dX:function(){return h},x$:function(){return l}});var r=i(31191),o=i(70347),n=i(30972),s=i(47458);function a(t,e){var i=t.idx,n=t.activeIndex,s=t.options,a=t.container;void 0===e&&(e=!1);var l=s.isRTL,h={display:"block"};switch(s.slideAnimation){case o.Z.slideAnimations.FADE:return(0,r.__assign)((0,r.__assign)({},h),{transition:"opacity 600ms ease",opacity:n===i?1:0});case o.Z.slideAnimations.DECK:var u=l?1:-1;if(ni)return(0,r.__assign)((0,r.__assign)({},h),{zIndex:1,transition:"transform 600ms ease",transform:"translateX("+u*Math.round(a.width)+"px)"});break;default:return{}}}function l(t){return(0,r.__assign)((0,r.__assign)({},t),{isMobile:n.Z.isMobile()})}function h(t){var e=t.directLink,i=t.options,n=t.directShareLink,a=t.noFollowForSEO,l=(0,s.Vg)();if(i.itemClick===o.Z.itemClick.LINK){var h=e||{},u=h.url,c=h.target,p=l&&a?{rel:"nofollow"}:{};return!(!u||!c)?(0,r.__assign)({href:u,target:c},p):{}}if(i.itemClick===o.Z.itemClick.FULLSCREEN||i.itemClick===o.Z.itemClick.EXPAND){var d=!!(u=n);p=!i.shouldIndexDirectShareLinkInSEO?{rel:"nofollow"}:{};return d?(0,r.__assign)({href:u,"data-cancel-link":!0},p):{}}}},87484:function(t,e,i){var r=i(31191),o=i(27762),n=i.n(o),s=function(t){function e(e){var i=t.call(this,e)||this;return"function"==typeof i.props.actions.setItemLoaded&&i.props.actions.setItemLoaded(),i}return(0,r.__extends)(e,t),e.prototype.getTextDimensions=function(){var t=this.props,e=t.style,i=t.options,r=t.cropRatio,o=t.imageDimensions,n=e.ratio=t.length)return r.reasons.itemsAdded="more old items than new items.",!1;var i=e.reduce((function(e,i,r){return e&&i.id===t[r].itemId}),!0);return i||(r.reasons.itemsAdded="items ids were changed. "),i}(t,n)?function(t,e){return t===e?(r.reasons.items="items are the same object.",!1):t?!e||e&&0===e.length?(r.reasons.items="old items do not exist.",!0):e.length!==t.length?(r.reasons.items="more new items than old items (or vice versa).",!0):t.some((function(t,i){var o=e[i];try{var n=!t||!o||t.itemId!==o.itemId||t.mediaUrl!==o.mediaUrl||t.measured!==o.measured||t.metaData&&o.metaData&&(t.metaData.type!==o.metaData.type||t.metaData.title!==o.metaData.title||t.metaData.description!==o.metaData.description)||t.metaData&&"text"===t.metaData.type&&o.metaData&&"text"===o.metaData.type&&(t.metaData.width!==o.metaData.width||t.metaData.height!==o.metaData.height||t.metaData.html!==o.metaData.html||t.metaData.textStyle!==o.metaData.textStyle||t.metaData.editorHtml!==o.metaData.editorHtml);return n&&(r.reasons.items="items #"+i+" id was changed."),n}catch(t){return r.reasons.items="an error occured",!0}}),!1):(r.reasons.items="new items do not exist.",!1)}(t,n)&&(i=t.map((function(t){return Object.assign(o.M.convertDtoToLayoutItem(t))})),this.gettingMoreItems=!1,s=!0):(i=n.concat(t.slice(n.length).map((function(t){return o.M.convertDtoToLayoutItem(t)}))),this.gettingMoreItems=!1,s=!0),{formattedItems:i,changed:s}},t.prototype.formatOptionsIfNeeded=function(t,e,i){var r,o=this,n=!1;if(function(t,e){if(!t)return o.reasons.options="no new options.",!1;if(!e)return o.reasons.options="no old options.",!0;try{var i={};Object.keys(e).sort().forEach((function(t){return i[t]=e[t]}));var r={};Object.keys(t).sort().forEach((function(e){return r[e]=t[e]}));var n=JSON.stringify(r)!==JSON.stringify(i);return n&&(o.reasons.options="options were changed."),n}catch(t){return console.error("Could not compare options",t),!1}}(t,e)){var s=(0,a.RT)(t),c=(0,l.A)(s);r=(0,a.RT)((0,h.ZP)((0,u.V4)(c),i)),n=!0}return{formattedOptions:r,changed:n}},t.prototype.formatContainerIfNeeded=function(t,e,i,r,o){var n,a=this,l=!1;return(o||function(t){var e=t.newContainerParams,i=t.oldContainerParams;if(!t.oldOptions||!i)return a.reasons.container="no old container or options. ",!0;if(!e)return a.reasons.container="no new container.",!1;var o={height:(r.scrollDirection!==s.Z.scrollDirection.VERTICAL||!r.enableInfiniteScroll)&&(!!e.height&&e.height!==i.height),width:!i||!!e.width&&e.width!==i.width};return Object.keys(o).reduce((function(t,e){return o[e]&&(a.reasons.container+="container."+e+" has changed. "),t||o[e]}),!1)}({newContainerParams:t,oldContainerParams:e,oldOptions:i}))&&(c.Z.updateParams({options:r,container:t}),l=!0,n=Object.assign({},t,c.Z.getGalleryDimensions())),{formattedContainer:n,changed:l}},t.prototype.createStructure=function(t){var e=t.formattedContainer,i=t.formattedOptions,r={items:t.formattedItems,container:e,styleParams:i,options:{showAllItems:!0,skipVisibilitiesCalc:!0,useLayoutStore:!1}};return r.options.createLayoutOnInit=!1,this.layouter=new n.Z(r),this.layouter.createLayout(r)},t}());e.Z=p},47666:function(t,e,i){var r=i(31191),o=i(26692),n=i(47458),s=i(70347),a=function(){function t(t){var e=t.id;this.id=e+"'s blueprintsManager",this.currentState={},this.existingBlueprint={},this.lastBlueprintId=0,this.cache={},this.api={},this.currentState.totalItemsCount=1/0,this.onBlueprintReady=function(){},this.loopingItems=!1}return t.prototype.init=function(t){this.api=t.api,this.currentState.totalItemsCount=t&&t.totalItemsCount||this.currentState.totalItemsCount,n.Ce.setDeviceType(t.deviceType)},t.prototype.setCurrentBlueprint=function(t){this.lastBlueprintId=t},t.prototype.createBlueprint=function(t){return void 0===t&&(t={}),(0,r.__awaiter)(this,void 0,void 0,(function(){var e,i,n,s,a,l,h,u,c,p,d=this;return(0,r.__generator)(this,(function(m){switch(m.label){case 0:return e=Math.floor(1e3*Math.random()),this.currentState.totalItemsCount=t.totalItemsCount||this.api.getTotalItemsCount&&this.api.getTotalItemsCount()||this.currentState.totalItemsCount,this.currentState.isUsingCustomInfoElements=t.isUsingCustomInfoElements||this.api.isUsingCustomInfoElements&&this.api.isUsingCustomInfoElements()||this.currentState.isUsingCustomInfoElements,i=[(0,r.__assign)({},t)],[4,this.completeParams(t)];case 1:return t=r.__assign.apply(void 0,i.concat([m.sent()])),t=this.duplicateItemsForSlideshowLoopIfNeeded(t),n=function(t){return(0,r.__awaiter)(d,void 0,void 0,(function(){return(0,r.__generator)(this,(function(e){switch(e.label){case 0:return this.setCurrentBlueprint(t.blueprintManagerId),this.api.createBlueprintImp?[4,this.api.createBlueprintImp(t)]:[3,2];case 1:case 3:return[2,e.sent()];case 2:return[4,o.Z.createBlueprint(t)]}}))}))},[4,n({params:t,lastParams:this.currentState,existingBlueprint:this.existingBlueprint,blueprintManagerId:this.id+e,isUsingCustomInfoElements:this.currentState.isUsingCustomInfoElements})];case 2:return s=m.sent(),a=s.blueprintManagerId,l=s.blueprint,h=s.changedParams,u=s.reasons,a!==this.lastBlueprintId?[2]:(c=Object.values(h).some((function(t){return!!t})),p=Object.keys(l).length>0,this.updateLastParamsIfNeeded(t,h,p),p&&this.api.onBlueprintReady&&this.api.onBlueprintReady({blueprint:l,blueprintChanged:c,reasons:u}),[2,this.cache[t]=this.existingBlueprint=l])}}))}))},t.prototype.getMoreItems=function(t){return(0,r.__awaiter)(this,void 0,void 0,(function(){var e;return(0,r.__generator)(this,(function(i){switch(i.label){case 0:return t0;return this.updateLastParamsIfNeeded(t,r,a),a&&this.api.onBlueprintReady&&this.api.onBlueprintReady({blueprint:i,blueprintChanged:s,reasons:n,initialBlueprint:!0}),a&&(this.cache[t]=this.existingBlueprint=i)},t.prototype.createSingleBlueprint=function(t){void 0===t&&(t={});var e=t.isUsingCustomInfoElements;return o.Z.createBlueprint({params:t,lastParams:{},existingBlueprint:{},blueprintManagerId:this.id+"_singleBlueprint",isUsingCustomInfoElements:e}).blueprint},t.prototype.duplicateGalleryItems=function(t){for(var e=t.items,i=t.duplicateFactor,r=void 0===i?1:i,o=(e=e||this.currentState.items).slice(0,this.currentState.totalItemsCount),n=0;n0&&(e=!1),e}(t)?(e=this.api.fetchContainer)?[4,this.api.fetchContainer()]:[3,2]:[3,3];case 1:e=i.sent(),i.label=2;case 2:t=e||this.currentState.container,i.label=3;case 3:return[2,t]}}))}))},t.prototype.fetchItemsIfNeeded=function(t){return(0,r.__awaiter)(this,void 0,void 0,(function(){var e;return(0,r.__generator)(this,(function(i){switch(i.label){case 0:return function(t){var e=!0;return t&&t.length>0&&(e=!1),e}(t)?(e=!this.loopingItems&&this.api.fetchItems)?[4,this.api.fetchItems()]:[3,2]:[3,3];case 1:e=i.sent(),i.label=2;case 2:t=e||this.currentState.items,i.label=3;case 3:return[2,t]}}))}))},t.prototype.fetchOptionsIfNeeded=function(t){return(0,r.__awaiter)(this,void 0,void 0,(function(){var e;return(0,r.__generator)(this,(function(i){switch(i.label){case 0:return function(t){var e=!0;return t&&Object.keys(t).length>0&&(e=!1),e}(t)?(e=this.api.fetchOptions)?[4,this.api.fetchOptions()]:[3,2]:[3,3];case 1:e=i.sent(),i.label=2;case 2:t=e||this.currentState.options,i.label=3;case 3:return[2,t]}}))}))},t.prototype.updateLastParamsIfNeeded=function(t,e,i){var o=t.items,n=t.container,s=t.options;i&&(this.currentState.items=e.itemsChanged?o:this.currentState.items,this.currentState.container=e.containerChanged?(0,r.__assign)({},n):this.currentState.container,this.currentState.options=e.optionsChanged?(0,r.__assign)({},s):this.currentState.options)},t.prototype.needMoreItems=function(t){this.getMoreItems(t)},t}();e.Z=a},76047:function(t,e,i){var r=i(70347),o={layoutParams:{gallerySpacing:0,cropRatio:1},isRTL:!1,isVertical:!1,minItemSize:120,groupSize:3,chooseBestGroup:!0,groupTypes:"1,2h,2v,3t,3b,3l,3r",cubeImages:!1,cubeType:"fill",smartCrop:!1,fullscreen:!0,videoLoop:!0,videoSound:!1,videoPlay:"hover",videoSpeed:1,numberOfImagesPerRow:3,collageDensity:.8,galleryTextAlign:"center",imageMargin:10,fixedColumns:0,showArrows:!0,hasThumbnails:!1,galleryThumbnailsAlignment:"bottom",gridStyle:0,titlePlacement:r.Z.placements.SHOW_ON_HOVER,hoveringBehaviour:r.Z.infoBehaviourOnHover.APPEARS,isAutoSlideshow:!1,slideshowLoop:!1,playButtonForAutoSlideShow:!1,pauseAutoSlideshowOnHover:!0,allowSlideshowCounter:!1,autoSlideshowInterval:4,arrowsSize:23,slideshowInfoSize:200,imageLoadingMode:r.Z.loadingMode.BLUR,scrollAnimation:r.Z.scrollAnimations.NO_EFFECT,overlayAnimation:r.Z.overlayAnimations.NO_EFFECT,imageHoverAnimation:r.Z.imageHoverAnimations.NO_EFFECT,itemBorderWidth:0,itemBorderRadius:0,itemEnableShadow:!1,itemShadowBlur:20,loadMoreAmount:"all",itemShadowDirection:135,itemShadowSize:10,imageInfoType:r.Z.infoType.NO_BACKGROUND,textBoxBorderRadius:0,textBoxBorderWidth:0,textBoxHeight:200,textImageSpace:10,scrollDirection:0,slideAnimation:r.Z.slideAnimations.SCROLL,autoSlideshowType:r.Z.autoSlideshowTypes.INTERVAL,autoSlideshowContinuousSpeed:200};e.Z=o},36675:function(t,e,i){i.d(e,{A:function(){return a}});var r=i(70347),o=i(76047),n=i(17370),s=(0,n.oZ)(o.Z,{layoutParams:{repeatingGroupTypes:"",navigationArrows:{type:r.Z.arrowsType.DEFAULT_ARROW,container:{type:r.Z.arrowsContainerStyleType.SHADOW,backgroundColor:"rgba(0,0,0,0)",borderRadius:0}},structure:{galleryRatio:{value:0,includeExternalInfo:!1}}},behaviourParams:{item:{content:{magnificationValue:2}}},galleryLayout:-1,gallerySizePx:0,gallerySizeRatio:0,gallerySizeType:r.Z.gallerySizeType.SMART,itemShadowOpacityAndColor:"",arrowsColor:"",textBoxBorderColor:"",allowContextMenu:!1,showVideoPlayButton:!1,gallerySize:30,cropOnlyFill:!1,rotatingCropRatios:"",columnWidths:"",numberOfImagesPerCol:1,groupsPerStrip:0,imageMargin:10,scatter:0,rotatingScatter:"",placeGroupsLtr:!1,enableInfiniteScroll:!0,thumbnailSpacings:4,enableScroll:!0,scrollSnap:!1,itemClick:r.Z.itemClick.NOTHING,slideAnimation:r.Z.slideAnimations.SCROLL,scrollDuration:400,arrowsPosition:r.Z.arrowsPosition.ON_GALLERY,arrowsVerticalPosition:r.Z.arrowsVerticalPosition.ITEM_CENTER,arrowsPadding:23,thumbnailSize:120,magicLayoutSeed:1,imagePlacementAnimation:r.Z.imagePlacementAnimations.NO_EFFECT,calculateTextBoxWidthMode:r.Z.textBoxWidthCalculationOptions.PERCENT,textBoxWidth:200,textBoxWidthPercent:50,loadMoreButtonText:"",videoSpeed:"1",showVideoControls:!1,shouldIndexDirectShareLinkInSEO:!0,slideTransition:r.Z.slideTransition.ease,useMaxDimensions:!1,enableVideoPlaceholder:!0,overlayPosition:r.Z.overlayPositions.LEFT,overlaySize:100,overlaySizeType:r.Z.overlaySizeType.PERCENT,overlayPadding:0,cubeFitPosition:r.Z.cubeFitPosition.MIDDLE,magnificationLevel:2});function a(t){var e=(0,n.FX)(s),i=(0,n.FX)(t),r=Object.assign({},e,i);return Object.keys(r).forEach((function(t){void 0===r[t]&&(r[t]=s[t])})),(0,n.Tx)(r)}},4822:function(t,e,i){var r=i(70347),o=i(33511),n=function(){function t(){this.options={},this.container={},this.id="",this._cache={}}return t.prototype.getOrPutInCache=function(t,e){return this._cache[t]||(this._cache[t]=e()),this._cache[t]},t.prototype.dumpCache=function(){this._cache={}},t.prototype.updateParams=function(t){var e=t.options,i=t.container,r=t.id;this.dumpCache(),this.id=r||this.id,this.options=e||this.options,this.container=i||this.container},t.prototype.getGalleryDimensions=function(){var t=this;return this.getOrPutInCache("galleryDimensions",(function(){var e={galleryWidth:Math.ceil(t.getGalleryWidth()),galleryHeight:Math.ceil(t.getGalleryHeight()),scrollBase:t.container.scrollBase?Math.ceil(t.container.scrollBase):0,height:Math.ceil(t.container.height),width:Math.ceil(t.container.width)};if(t.container.externalScrollBase&&(e.scrollBase+=t.container.externalScrollBase),t.options.hasThumbnails){var i=t.options.thumbnailSize+t.options.layoutParams.gallerySpacing+3*t.options.thumbnailSpacings;switch(t.options.galleryThumbnailsAlignment){case"top":case"bottom":e.galleryHeight-=i;break;case"left":case"right":e.galleryWidth-=i}}if(t.options.scrollDirection===r.Z.scrollDirection.HORIZONTAL&&t.options.layoutParams.structure.galleryRatio.value>0){if(e.galleryHeight=e.galleryWidth*t.options.layoutParams.structure.galleryRatio.value,t.options.hasThumbnails){i=t.options.thumbnailSize+t.options.layoutParams.gallerySpacing+3*t.options.thumbnailSpacings;switch(t.options.galleryThumbnailsAlignment){case"top":case"bottom":e.height=e.galleryHeight+i;break;default:e.height=e.galleryHeight}}!t.options.layoutParams.structure.galleryRatio.includeExternalInfo&&o.Z.isRelevant(t.options)&&(e.galleryHeight+=t.options.externalInfoHeight)}return e}))},t.prototype.getGalleryWidth=function(){var t=this;return this.getOrPutInCache("galleryWidth",(function(){var e=Math.floor(t.container.width)+2*t.getDimensionFix();return t.options.arrowsPosition===r.Z.arrowsPosition.OUTSIDE_GALLERY&&t.options.scrollDirection===r.Z.scrollDirection.HORIZONTAL&&(e-=2*(t.options.arrowsSize+40+t.options.imageMargin/2)),e}))},t.prototype.getGalleryHeight=function(){var t=this;return this.getOrPutInCache("galleryHeight",(function(){return Math.floor((t.container.height>0?t.container.height:0)+(t.options.scrollDirection===r.Z.scrollDirection.HORIZONTAL?t.getDimensionFix():0))}))},t.prototype.getDimensionFix=function(){var t=this;return this.getOrPutInCache("dimensionFix",(function(){return Number(t.options.imageMargin/2)-Number(t.options.layoutParams.gallerySpacing)}))},t.prototype.getGalleryRatio=function(){var t=this;return this.getOrPutInCache("galleryRatio",(function(){var e=t.getGalleryDimensions();return e.galleryWidth/e.galleryHeight}))},t}();e.Z=new n},15466:function(t,e,i){i.d(e,{$e:function(){return S},_A:function(){return b},_Q:function(){return y},c4:function(){return v},fE:function(){return f}});var r=i(31191),o=i(30972),n=i(12146),s=i(60983),a=i(87763),l=i(55837),h=i(53266),u=i(7554),c=i(62212),p=i(48790),d=i(70347),m=i(17370),g=i(26363),f=function(t,e){return void 0===e&&(e=!1),t.gallerySizeType===c.Z.PIXELS&&t.gallerySizePx>0?t.gallerySizePx:t.gallerySizeType===c.Z.RATIO&&t.gallerySizeRatio>0?(n.Z&&n.Z.innerWidth||980)*(t.gallerySizeRatio/100):e||t.gallerySize},y=function(t){var e=(0,r.__assign)({},t);return e.fixedColumns=0,(t.scrollDirection===d.Z.scrollDirection.VERTICAL||t.isVertical)&&(e.fixedColumns="1"===String(t.gridStyle)?Number(t.numberOfImagesPerRow):0,e.groupTypes="1",e.groupSize=1,e.collageAmount=0,e.collageDensity=0),e},v=function(t){var e=(0,r.__assign)({},t);return e.gridStyle=e.isVertical?t.gridStyle:d.Z.gridStyle.FIT_TO_SCREEN,e},b=function(t){var e=(0,r.__assign)({},t);if(!o.Z.isUndefined(t.numberOfImagesPerCol)&&t.scrollDirection===d.Z.scrollDirection.HORIZONTAL)switch(e.fixedColumns=0,t.numberOfImagesPerCol){case 1:default:e.groupTypes="1",e.groupSize=1,e.collageAmount=0,e.collageDensity=0;break;case 2:e.groupTypes="2v",e.groupSize=2,e.collageAmount=1,e.collageDensity=1;break;case 3:e.groupTypes="3v",e.groupSize=3,e.collageAmount=1,e.collageDensity=1}return e},I=function(t){var e=(0,r.__assign)({},t);return!function(t){if((0,s.hd)(t.titlePlacement)){if(d.Z.isLayout("SLIDER")(t)||d.Z.isLayout("PANORAMA")(t)||d.Z.isLayout("COLUMN")(t))return!0;if(d.Z.isLayout("MASONRY")(t)&&t.isVertical)return!0;if(d.Z.isLayout("GRID")(t)&&1!==t.scrollDirection)return!0}return!1}(e)?(o.Z.isUndefined(e.itemFont)||(e=_("itemFont","textDecorationTitle",e)),o.Z.isUndefined(e.itemDescriptionFont)||(e=_("itemDescriptionFont","textDecorationDesc",e))):(o.Z.isUndefined(e.itemFontSlideshow)||(e=_("itemFontSlideshow","textDecorationTitle",e)),o.Z.isUndefined(e.itemDescriptionFontSlideshow)||(e=_("itemDescriptionFontSlideshow","textDecorationDesc",e))),e},S=function(t){var e=(0,r.__assign)({},t);return"fit"===e.cubeType&&(e.itemBorderWidth=0,e.itemBorderRadius=0,e.itemEnableShadow=!1),e},_=function(t,e,i){var o=(0,r.__assign)({},i);return o[t].value=o[t].value.replace(/^font\s*:\s*/,""),o[t].value=o[t].value.replace(/;$/,""),o[t].value.indexOf("underline")>-1||!0===o[t].style.underline?(o[t].value=o[t].value.replace("underline",""),o[e]="underline"):!1===o[t].style.underline&&(o[e]="none"),o};e.ZP=function(t,e){var i=(0,r.__assign)({},t);return o.Z.isMobile()&&(i=function(t){var e=(0,r.__assign)({},t);return e.imageMargin>0&&(e.imageMargin=Math.min(e.imageMargin,50)),e}(i=I(i))),i=function(t){var e=(0,r.__assign)({},t);return d.Z.isLayout("SLIDER")(e)||d.Z.isLayout("COLUMN")(e)||d.Z.isLayout("SLIDESHOW")(e)||(!e.isVertical||e.groupSize>1)&&(e.titlePlacement=s.ZP.SHOW_ON_HOVER),e}(i),i=function(t){var e=(0,r.__assign)({},t);return(0,s.Sy)(e.titlePlacement)||e.hoveringBehaviour===a.Z.NEVER_SHOW||(e.hoveringBehaviour=a.Z.APPEARS),e}(i),i=function(t){var e=(0,r.__assign)({},t);return e.imageLoadingMode===l.Z.COLOR&&e.imageLoadingWithColorMode===h.Z.MAIN_COLOR&&(e.imageLoadingMode=l.Z.MAIN_COLOR),e}(i),i=function(t){var e=(0,r.__assign)({},t);return e.itemEnableShadow&&e.scrollDirection===d.Z.scrollDirection.HORIZONTAL&&(e.itemEnableShadow=!1),e}(i),i=function(t){var e=(0,r.__assign)({},t);if(e.itemEnableShadow&&e.scrollDirection===d.Z.scrollDirection.VERTICAL){var i=Math.max(e.layoutParams.gallerySpacing,(e.itemShadowSize||0)+(e.itemShadowBlur||0));e=(0,m._x)(e,"layoutParams_gallerySpacing",i)}return e}(i),i=function(t){var e=(0,r.__assign)({},t);return e.arrowsPosition===p.Z.OUTSIDE_GALLERY&&(e.arrowsPadding=0),e}(i),i=function(t){var e=(0,r.__assign)({},t);return e.scrollDirection===d.Z.scrollDirection.HORIZONTAL&&(e.isVertical=!1),e}(i),i=function(t){var e=(0,r.__assign)({},t);return e.scrollDirection===d.Z.scrollDirection.VERTICAL&&(e.slideshowLoop=!1),e}(i),i=function(t){var e=(0,r.__assign)({},t);return(e.scrollDirection===d.Z.scrollDirection.VERTICAL||e.groupSize>1||!e.cubeImages)&&(e.slideAnimation=u.Z.SCROLL),e}(i),i=function(t){var e=(0,r.__assign)({},t);return e.loadMoreButtonFont&&o.Z.isMobile()&&(e.loadMoreButtonFont.value=e.loadMoreButtonFont.value.replace(/^font\s*:\s*/,""),e.loadMoreButtonFont.value=e.loadMoreButtonFont.value.replace(/;$/,""),e.loadMoreButtonFont.value.indexOf("underline")>-1?(e.loadMoreButtonFont.value=e.loadMoreButtonFont.value.replace("underline",""),e.textDecorationLoadMore="underline"):e.textDecorationLoadMore="none"),e}(i),i=function(t){var e=(0,r.__assign)({},t);return e.forceMobileCustomButton&&(e.targetItemSize=Math.round(405),e.titlePlacement=s.ZP.SHOW_BELOW,e.galleryLayout=2,e.fixedColumns=1,e.numberOfImagesPerRow=1),e}(i),i=function(t){var e=(0,r.__assign)({},t);return e.gallerySizeType===c.Z.PIXELS&&e.gallerySizePx>0?e.targetItemSize=e.gallerySizePx:e.gallerySizeType===c.Z.RATIO&&e.gallerySizeRatio>0&&(e.targetItemSize=(n.Z&&n.Z.innerWidth||980)*(e.gallerySizeRatio/100)),e}(i),i=function(t){var e=(0,r.__assign)({},t),i=e.layoutParams.repeatingGroupTypes?"1"==e.layoutParams.repeatingGroupTypes:"1"==e.groupTypes,o=e.titlePlacement.split(",").filter((function(t){return!(0,s.mR)(t)})).join(",");return(0,s.DT)(o)&&i||(e.arrowsVerticalPosition=d.Z.arrowsVerticalPosition.ITEM_CENTER),e}(i=(0,g.Z)(i,e)),i=function(t){var e=(0,r.__assign)({},t);return e.allowSlideshowCounter?(e.isAutoSlideshow||(e.allowSlideshowCounter=!1),!1===d.Z.isLayout("SLIDESHOW")(t)&&(e.allowSlideshowCounter=!1),e):e}(i),i}},57183:function(t,e,i){i.d(e,{L6:function(){return a},Sb:function(){return u},YR:function(){return p},eK:function(){return c},hh:function(){return l},o4:function(){return n},tp:function(){return h},u$:function(){return s}});var r=i(31191),o=i(93657),n=[["galleryLayout",o.Z.layoutParams.structure.galleryLayout],["imageMargin",o.Z.layoutParams.structure.itemSpacing],["groupsPerStrip",o.Z.layoutParams.groups.numberOfGroupsPerRow],["cubeImages",o.Z.layoutParams.crop.enable],["smartCrop",o.Z.layoutParams.crop.enableSmartCrop],["cropOnlyFill",o.Z.layoutParams.crop.cropOnlyFill],["minItemSize",o.Z.layoutParams.targetItemSize.minimum],["scatter",o.Z.layoutParams.structure.scatter.randomScatter],["rotatingScatter",o.Z.layoutParams.structure.scatter.manualScatter],["numberOfImagesPerCol",o.Z.layoutParams.structure.numberOfGridRows],["collageDensity",o.Z.layoutParams.groups.density],["chooseBestGroup",o.Z.layoutParams.groups.groupByOrientation],["groupSize",o.Z.layoutParams.groups.groupSize],["hasThumbnails",o.Z.layoutParams.thumbnails.enable],["thumbnailSpacings",o.Z.layoutParams.thumbnails.spacing],["thumbnailSize",o.Z.layoutParams.thumbnails.size],["showArrows",o.Z.layoutParams.navigationArrows.enable],["arrowsPadding",o.Z.layoutParams.navigationArrows.padding],["arrowsVerticalPosition",o.Z.layoutParams.navigationArrows.verticalAlignment],["arrowsSize",o.Z.layoutParams.navigationArrows.size],["imageInfoType",o.Z.layoutParams.info.layout],["textImageSpace",o.Z.layoutParams.info.spacing],["textBoxBorderWidth",o.Z.layoutParams.info.border.width],["textBoxBorderColor",o.Z.layoutParams.info.border.color],["textBoxBorderRadius",o.Z.layoutParams.info.border.radius]],s=[["useMaxDimensions",o.Z.layoutParams.structure.enableStreching]],a=[["magnificationLevel",o.Z.behaviourParams.item.content.magnificationValue],["videoLoop",o.Z.behaviourParams.item.video.loop],["showVideoPlayButton",o.Z.behaviourParams.item.video.enablePlayButton],["showVideoControls",o.Z.behaviourParams.item.video.enableControls],["enableVideoPlaceholder",o.Z.behaviourParams.item.video.enablePlaceholder],["overlayAnimation",o.Z.behaviourParams.item.overlay.hoverAnimation],["overlayPosition",o.Z.behaviourParams.item.overlay.position],["overlaySize",o.Z.behaviourParams.item.overlay.size],["overlaySizeType",o.Z.behaviourParams.item.overlay.sizeUnits],["overlayPadding",o.Z.behaviourParams.item.overlay.padding],["imageHoverAnimation",o.Z.behaviourParams.item.content.hoverAnimation],["imagePlacementAnimation",o.Z.behaviourParams.item.content.placementAnimation],["imageLoadingMode",o.Z.behaviourParams.item.content.loader],["scrollSnap",o.Z.behaviourParams.gallery.horizontal.enableScrollSnap],["scrollAnimation",o.Z.behaviourParams.gallery.scrollAnimation],["shouldIndexDirectShareLinkInSEO",o.Z.behaviourParams.gallery.enableIndexingShareLinks],["loadMoreButtonText",o.Z.behaviourParams.gallery.vertical.loadMore.text],["slideAnimation",o.Z.behaviourParams.gallery.horizontal.slideAnimation],["slideTransition",o.Z.behaviourParams.gallery.horizontal.slideTransition],["scrollDuration",o.Z.behaviourParams.gallery.horizontal.navigationDuration],["slideshowLoop",o.Z.behaviourParams.gallery.horizontal.loop],["autoSlideshowInterval",o.Z.behaviourParams.gallery.horizontal.autoSlide.interval],["pauseAutoSlideshowOnHover",o.Z.behaviourParams.gallery.horizontal.autoSlide.pauseOnHover],["autoSlideshowContinuousSpeed",o.Z.behaviourParams.gallery.horizontal.autoSlide.speed],["allowSlideshowCounter",o.Z.behaviourParams.gallery.horizontal.slideshowInfo.enableCounter],["playButtonForAutoSlideShow",o.Z.behaviourParams.gallery.horizontal.slideshowInfo.enablePlayButton]],l=[["enableInfiniteScroll",o.Z.behaviourParams.gallery.vertical.loadMore.enable],["allowContextMenu",o.Z.behaviourParams.gallery.blockContextMenu],["enableScroll",o.Z.behaviourParams.gallery.horizontal.blockScroll]],h=[["itemShadowBlur",o.Z.stylingParams.itemShadowBlur],["itemShadowDirection",o.Z.stylingParams.itemShadowDirection],["itemShadowOpacityAndColor",o.Z.stylingParams.itemShadowOpacityAndColor],["arrowsColor",o.Z.stylingParams.arrowsColor],["itemShadowSize",o.Z.stylingParams.itemShadowSize],["itemEnableShadow",o.Z.stylingParams.itemEnableShadow],["itemBorderRadius",o.Z.stylingParams.itemBorderRadius],["itemBorderWidth",o.Z.stylingParams.itemBorderWidth]];function u(t,e){for(var i=(0,r.__assign)({},t),o=0,n=e;o=-3?t.galleryLayout:null===(i=null===(e=t.layoutParams)||void 0===e?void 0:e.structure)||void 0===i?void 0:i.galleryLayout})?(r=(0,a.YR)(r,s.Z.layoutParams.info.height,"slideshowInfoSize")).textBoxHeight=r.slideshowInfoSize:(r=(0,a.YR)(r,s.Z.layoutParams.info.height,"textBoxHeight")).slideshowInfoSize=r.textBoxHeight,r}(u=function(t){var e=t;return e.layoutParams_gallerySpacing=e.galleryMargin=e.layoutParams_structure_gallerySpacing,delete e.layoutParams_structure_gallerySpacing,e}(u=function(t){var e=t;return e.groupTypes=e[s.Z.layoutParams.groups.allowedGroupTypes]?e[s.Z.layoutParams.groups.allowedGroupTypes].join?e[s.Z.layoutParams.groups.allowedGroupTypes].join(","):"":void 0,delete e[s.Z.layoutParams.groups.allowedGroupTypes],e}(u=function(t){var e=t,i=e[s.Z.layoutParams.groups.repeatingGroupTypes]&&e[s.Z.layoutParams.groups.repeatingGroupTypes].join(",");return e.layoutParams_repeatingGroupTypes=e.rotatingGroupTypes=i,delete e[s.Z.layoutParams.groups.repeatingGroupTypes],e}(u=function(t){var e,i=t;return(i=(0,a.YR)(i,s.Z.layoutParams.crop.method,"cubeType")).cubeType=null===(e=i.cubeType)||void 0===e?void 0:e.toLowerCase(),i}(u=function(t){var e=t;return(e=(0,a.YR)(e,s.Z.layoutParams.structure.columnRatios,"columnWidths")).columnWidths=e.columnWidths?e.columnWidths.join?e.columnWidths.join(","):"":void 0,e}(u=function(t){var e=t;switch((e=(0,a.YR)(e,s.Z.layoutParams.info.sizeUnits,"calculateTextBoxWidthMode")).calculateTextBoxWidthMode){case"PERCENT":e.calculateTextBoxWidthMode="PERCENT",(e=(0,a.YR)(e,s.Z.layoutParams.info.width,"textBoxWidthPercent")).textBoxWidth=e.textBoxWidth||200;break;case"PIXEL":e.calculateTextBoxWidthMode="MANUAL",(e=(0,a.YR)(e,s.Z.layoutParams.info.width,"textBoxWidth")).textBoxWidthPercent=e.textBoxWidthPercent||50}return e}(u=function(t){var e,i=t,o=i[s.Z.layoutParams.crop.ratios]&&(0,r.__spreadArrays)(i[s.Z.layoutParams.crop.ratios]),n=o||[];return e=n.length>1?n.slice(0).join(","):0===(null==o?void 0:o.length)?"":void 0,i.layoutParams_cropRatio=i.cubeRatio=n[0],i.rotatingCropRatios=e,delete i[s.Z.layoutParams.crop.ratios],i}(u=function(t){var e=t;return"CENTER"===(e=(0,a.YR)(e,s.Z.layoutParams.crop.alignment,"cubeFitPosition")).cubeFitPosition&&(e.cubeFitPosition="MIDDLE"),e}(u=function(t){var e=t,i=e[s.Z.layoutParams.targetItemSize.value],r=e.gallerySizeType,o={smart:"gallerySize",px:"gallerySizePx",ratio:"gallerySizeRatio"};return e.gallerySize=e.gallerySizePx=e.gallerySizeRatio=void 0,e[o[r]]=i,delete e[s.Z.layoutParams.targetItemSize.value],e}(u=function(t){var e=t;switch((e=(0,a.YR)(e,s.Z.layoutParams.targetItemSize.unit,"gallerySizeType")).gallerySizeType){case"PIXEL":e.gallerySizeType="px";break;case"PERCENT":e.gallerySizeType="ratio";break;case"SMART":e.gallerySizeType="smart"}return e}(u=function(t){var e=t;return e.fixedColumns=e.fixedColumns||void 0,e.numberOfImagesPerRow=e[s.Z.layoutParams.structure.numberOfColumns],delete e[s.Z.layoutParams.structure.numberOfColumns],e}(u=function(t){var e=t;switch((e=(0,a.YR)(e,s.Z.layoutParams.structure.responsiveMode,"gridStyle")).gridStyle){case"FIT_TO_SCREEN":e.gridStyle=0;break;case"SET_ITEMS_PER_ROW":e.gridStyle=1}return e}(u=function(t){var e=t;switch((e=(0,a.YR)(e,s.Z.layoutParams.structure.groupsOrder,"placeGroupsLtr")).placeGroupsLtr){case"LEFT_TO_RIGHT":e.placeGroupsLtr=!0;break;case"RIGHT_TO_LEFT":case"BY_HEIGHT":e.placeGroupsLtr=!1;break;default:e.placeGroupsLtr=void 0}return e}(u=function(t){var e=t;switch((e=(0,a.YR)(e,s.Z.layoutParams.structure.layoutOrientation,"isVertical")).isVertical){case"VERTICAL":e.isVertical=!0;break;case"HORIZONTAL":e.isVertical=!1}return e}(u=function(t){var e=t;switch((e=(0,a.YR)(e,s.Z.layoutParams.structure.scrollDirection,"scrollDirection")).scrollDirection){case"VERTICAL":e.scrollDirection=0;break;case"HORIZONTAL":e.scrollDirection=1}return e}((e=u=(0,a.eK)(u,(0,r.__spreadArrays)(a.u$).map((function(t){return(0,r.__spreadArrays)(t).reverse()}))),l=e,(l=(0,a.YR)(l,s.Z.layoutParams.thumbnails.alignment,"galleryThumbnailsAlignment")).galleryThumbnailsAlignment=null===(i=l.galleryThumbnailsAlignment)||void 0===i?void 0:i.toLowerCase(),u=l)))))))))))))))))),u=(0,a.Sb)(u,(0,r.__spreadArrays)(a.L6).map((function(t){return(0,r.__spreadArrays)(t).reverse()}))),u=function(t){var e,i=t;return(i=(0,a.YR)(i,s.Z.behaviourParams.gallery.horizontal.slideshowInfo.buttonsAlignment,"galleryTextAlign")).galleryTextAlign=null===(e=i.galleryTextAlign)||void 0===e?void 0:e.toLowerCase(),i}(u=function(t){var e=t;switch(e[s.Z.behaviourParams.gallery.horizontal.autoSlide.behaviour]){case"OFF":e.isAutoSlideshow=!1,e.autoSlideshowType="interval";break;case"INTERVAL":e.isAutoSlideshow=!0,e.autoSlideshowType="interval";break;case"CONTINUOUS":e.isAutoSlideshow=!0,e.autoSlideshowType="continuous"}return delete e[s.Z.behaviourParams.gallery.horizontal.autoSlide.behaviour],e}(u=function(t){var e,i=t;return(i=(0,a.YR)(i,s.Z.behaviourParams.gallery.vertical.loadMore.amount,"loadMoreAmount")).loadMoreAmount=null===(e=i.loadMoreAmount)||void 0===e?void 0:e.toLowerCase(),i}(u=function(t){var e=t;switch((e=(0,a.YR)(e,s.Z.behaviourParams.gallery.layoutDirection,"isRTL")).isRTL){case"RIGHT_TO_LEFT":e.isRTL=!0;break;case"LEFT_TO_RIGHT":e.isRTL=!1}return e}(u=function(t){var e=t;switch((e=(0,a.YR)(e,s.Z.layoutParams.info.placement,"titlePlacement")).titlePlacement){case"OVERLAY":e.titlePlacement="SHOW_ON_HOVER";break;case"BELOW":e.titlePlacement="SHOW_BELOW";break;case"ABOVE":e.titlePlacement="SHOW_ABOVE";break;case"RIGHT":e.titlePlacement="SHOW_ON_THE_RIGHT";break;case"LEFT":e.titlePlacement="SHOW_ON_THE_LEFT";break;case"ALTERNATE_HORIZONTALLY":e.titlePlacement="ALTERNATE_HORIZONTAL";break;case"ALTERNATE_VERTICALLY":e.titlePlacement="ALTERNATE_VERTICAL"}return e}(u=function(t){var e=t;switch((e=(0,a.YR)(e,s.Z.behaviourParams.item.overlay.hoveringBehaviour,"hoveringBehaviour")).hoveringBehaviour){case"ALWAYS_VISIBLE":e.hoveringBehaviour="NO_CHANGE";break;case"NEVER_VISIBLE":e.hoveringBehaviour="NEVER_SHOW"}return e}(u=function(t){var e=t;return(e=(0,a.YR)(e,s.Z.behaviourParams.item.video.speed,"videoSpeed")).videoSpeed=e.videoSpeed>=0?String(e.videoSpeed):void 0,e}(u=function(t){var e=t;return(e=(0,a.YR)(e,s.Z.behaviourParams.item.video.volume,"videoSound")).videoSound=void 0===e.videoSound?void 0:!!e.videoSound,e}(u=function(t){var e=t;switch((e=(0,a.YR)(e,s.Z.behaviourParams.item.video.playTrigger,"videoPlay")).videoPlay){case"CLICK":e.videoPlay="onClick";break;case"HOVER":e.videoPlay="hover";break;case"AUTO":e.videoPlay="auto"}return e}(u=function(t){var e,i=t;return"action"===((i=(0,a.YR)(i,s.Z.behaviourParams.item.clickAction,"itemClick")).itemClick=null===(e=i.itemClick)||void 0===e?void 0:e.toLowerCase(),i.itemClick)&&(i.itemClick="expand"),i}(u=(0,a.eK)(u,(0,r.__spreadArrays)(a.hh).map((function(t){return(0,r.__spreadArrays)(t).reverse()}))))))))))))),u=(0,a.Sb)(u,(0,r.__spreadArrays)(a.tp).map((function(t){return(0,r.__spreadArrays)(t).reverse()}))));return(0,r.__assign)((0,r.__assign)({},(0,o.v5)(c)),(0,o.v5)(t))}},71281:function(t,e,i){i.d(e,{RT:function(){return h}});var r=i(31191),o=i(17370),n=i(78375),s=i(93657),a=i(37886),l=i(57183);function h(t){var e=(0,o.FX)(t),i=(0,a.E)(function(t){var e=(c=t,p=(0,r.__assign)({},c),p=(0,l.Sb)(p,l.o4),p=function(t){var e=t;switch((e=(0,l.YR)(e,"arrowsPosition",s.Z.layoutParams.navigationArrows.position))[s.Z.layoutParams.navigationArrows.position]){case 0:e[s.Z.layoutParams.navigationArrows.position]="ON_GALLERY";break;case 1:e[s.Z.layoutParams.navigationArrows.position]="OUTSIDE_GALLERY"}return e}(p=function(t){var e=t;return delete(e=(0,n.L)("SLIDESHOW")({galleryLayout:t.galleryLayout>=-3?t.galleryLayout:t[s.Z.layoutParams.structure.galleryLayout]})?(0,l.YR)(e,"slideshowInfoSize",s.Z.layoutParams.info.height):(0,l.YR)(e,"textBoxHeight",s.Z.layoutParams.info.height)).slideshowInfoSize,delete e.textBoxHeight,e}(p=function(t){if(void 0!==t[s.Z.layoutParams.structure.gallerySpacing])return t;var e,i=t;return i["layoutParams.gallerySpacing"]>=0?e=i["layoutParams.gallerySpacing"]:i.galleryMargin>=0&&(e=i.galleryMargin),i[s.Z.layoutParams.structure.gallerySpacing]=e,delete i.layoutParams_gallerySpacing,delete i.galleryMargin,i}(p=function(t){var e=t;switch((e=(0,l.YR)(e,"gridStyle",s.Z.layoutParams.structure.responsiveMode))[s.Z.layoutParams.structure.responsiveMode]){case 0:e[s.Z.layoutParams.structure.responsiveMode]="FIT_TO_SCREEN";break;case 1:e[s.Z.layoutParams.structure.responsiveMode]="SET_ITEMS_PER_ROW"}return e}(p=function(t){var e,i=t;return(i=(0,l.YR)(i,"cubeType",s.Z.layoutParams.crop.method))[s.Z.layoutParams.crop.method]=null===(e=i[s.Z.layoutParams.crop.method])||void 0===e?void 0:e.toUpperCase(),i}(p=function(t){var e,i,o,n=t;return n=(0,l.YR)(n,"columnWidths",s.Z.layoutParams.structure.columnRatios),0===(null===(e=n[s.Z.layoutParams.structure.columnRatios])||void 0===e?void 0:e.length)?n[s.Z.layoutParams.structure.columnRatios]=[]:n[s.Z.layoutParams.structure.columnRatios]=n[s.Z.layoutParams.structure.columnRatios]?(null===(i=n[s.Z.layoutParams.structure.columnRatios])||void 0===i?void 0:i.split)?(0,r.__spreadArrays)(null===(o=n[s.Z.layoutParams.structure.columnRatios])||void 0===o?void 0:o.split(",").map(Number)):n[s.Z.layoutParams.structure.columnRatios]:void 0,n}(p=function(t){var e=t;switch((e=(0,l.YR)(e,"calculateTextBoxWidthMode",s.Z.layoutParams.info.sizeUnits))[s.Z.layoutParams.info.sizeUnits]){case"PERCENT":e[s.Z.layoutParams.info.sizeUnits]="PERCENT",delete(e=(0,l.YR)(e,"textBoxWidthPercent",s.Z.layoutParams.info.width)).textBoxWidth;break;case"MANUAL":e[s.Z.layoutParams.info.sizeUnits]="PIXEL",delete(e=(0,l.YR)(e,"textBoxWidth",s.Z.layoutParams.info.width)).textBoxWidthPercent}return e}(p=function(t){if(void 0!==t[s.Z.layoutParams.crop.ratios])return t;var e,i=t,r=i.rotatingCropRatios,o=i.cubeRatio||i.layoutParams_cropRatio;e="string"==typeof r&&""!==r?r:o;var n=function(t){return Number(t)>=0?Number(t):t};return i[s.Z.layoutParams.crop.ratios]=e&&String(e).split(",").map(n),delete i.cubeRatio,delete i.layoutParams_cropRatio,delete i.rotatingCropRatios,i}(p=function(t){var e=t;return"MIDDLE"===(e=(0,l.YR)(e,"cubeFitPosition",s.Z.layoutParams.crop.alignment))[s.Z.layoutParams.crop.alignment]&&(e[s.Z.layoutParams.crop.alignment]="CENTER"),e}(p=function(t){var e,i=t;switch(i[s.Z.layoutParams.targetItemSize.unit]){case"PIXEL":e="gallerySizePx";break;case"SMART":e="gallerySize";break;case"PERCENT":e="gallerySizeRatio"}return delete(i=(0,l.YR)(i,e,s.Z.layoutParams.targetItemSize.value)).gallerySizePx,delete i.gallerySizeRatio,delete i.gallerySize,i}(p=function(t){var e=t;switch((e=(0,l.YR)(e,"gallerySizeType",s.Z.layoutParams.targetItemSize.unit))[s.Z.layoutParams.targetItemSize.unit]){case"px":e[s.Z.layoutParams.targetItemSize.unit]="PIXEL";break;case"ratio":e[s.Z.layoutParams.targetItemSize.unit]="PERCENT";break;case"smart":e[s.Z.layoutParams.targetItemSize.unit]="SMART"}return e}(p=function(t){if(void 0!==t[s.Z.layoutParams.structure.numberOfColumns])return t;var e=t,i=t.fixedColumns,r=t.numberOfImagesPerRow,o=r>=0?r:i>=0?i:void 0;return e[s.Z.layoutParams.structure.numberOfColumns]=o,delete e.fixedColumns,delete e.numberOfImagesPerRow,e}(p=function(t){var e;if(void 0!==t[s.Z.layoutParams.groups.allowedGroupTypes])return t;var i=t;return i[s.Z.layoutParams.groups.allowedGroupTypes]=(null===(e=i.groupTypes)||void 0===e?void 0:e.split)?i.groupTypes.split(","):i.groupTypes?i.groupTypes:void 0,delete i.groupTypes,i}(p=function(t){if(void 0!==t[s.Z.layoutParams.groups.repeatingGroupTypes])return t;var e,i=t,r=i.rotatingGroupTypes||i.layoutParams_repeatingGroupTypes;return e="string"==typeof r&&""!==r?r.split(","):"string"==typeof r&&""===r?[]:void 0,i[s.Z.layoutParams.groups.repeatingGroupTypes]=e,delete i.layoutParams_repeatingGroupTypes,delete i.rotatingGroupTypes,i}(p=function(t){var e=t;switch((e=(0,l.YR)(e,"placeGroupsLtr",s.Z.layoutParams.structure.groupsOrder))[s.Z.layoutParams.structure.groupsOrder]){case!0:e[s.Z.layoutParams.structure.groupsOrder]="LEFT_TO_RIGHT";break;case!1:e[s.Z.layoutParams.structure.groupsOrder]="BY_HEIGHT"}return e}(p=function(t){var e=t;switch((e=(0,l.YR)(e,"isVertical",s.Z.layoutParams.structure.layoutOrientation))[s.Z.layoutParams.structure.layoutOrientation]){case!0:e[s.Z.layoutParams.structure.layoutOrientation]="VERTICAL";break;case!1:e[s.Z.layoutParams.structure.layoutOrientation]="HORIZONTAL"}return e}(p=function(t){var e=t;switch((e=(0,l.YR)(e,"scrollDirection",s.Z.layoutParams.structure.scrollDirection))[s.Z.layoutParams.structure.scrollDirection]){case 0:e[s.Z.layoutParams.structure.scrollDirection]="VERTICAL";break;case 1:e[s.Z.layoutParams.structure.scrollDirection]="HORIZONTAL"}return e}((a=p=(0,l.eK)(p,l.u$),u=a,(u=(0,l.YR)(u,"galleryThumbnailsAlignment",s.Z.layoutParams.thumbnails.alignment))[s.Z.layoutParams.thumbnails.alignment]=null===(h=u[s.Z.layoutParams.thumbnails.alignment])||void 0===h?void 0:h.toUpperCase(),p=u)))))))))))))))))),p=(0,l.Sb)(p,l.L6),p=function(t){var e,i=t;return(i=(0,l.YR)(i,"galleryTextAlign",s.Z.behaviourParams.gallery.horizontal.slideshowInfo.buttonsAlignment))[s.Z.behaviourParams.gallery.horizontal.slideshowInfo.buttonsAlignment]=null===(e=i[s.Z.behaviourParams.gallery.horizontal.slideshowInfo.buttonsAlignment])||void 0===e?void 0:e.toUpperCase(),i}(p=function(t){if(void 0!==t[s.Z.behaviourParams.gallery.horizontal.autoSlide.behaviour])return t;var e,i=t,r=i.isAutoSlideshow,o=i.autoSlideshowType;return e=void 0===r?void 0:r?"interval"===o?"INTERVAL":"CONTINUOUS":"OFF",i[s.Z.behaviourParams.gallery.horizontal.autoSlide.behaviour]=e,delete i.isAutoSlideshow,delete i.autoSlideshowType,i}(p=function(t){var e,i=t;return(i=(0,l.YR)(i,"loadMoreAmount",s.Z.behaviourParams.gallery.vertical.loadMore.amount))[s.Z.behaviourParams.gallery.vertical.loadMore.amount]=null===(e=i[s.Z.behaviourParams.gallery.vertical.loadMore.amount])||void 0===e?void 0:e.toUpperCase(),i}(p=function(t){var e=t;switch((e=(0,l.YR)(e,"isRTL",s.Z.behaviourParams.gallery.layoutDirection))[s.Z.behaviourParams.gallery.layoutDirection]){case!0:e[s.Z.behaviourParams.gallery.layoutDirection]="RIGHT_TO_LEFT";break;case!1:e[s.Z.behaviourParams.gallery.layoutDirection]="LEFT_TO_RIGHT"}return e}(p=function(t){var e=t;switch((e=(0,l.YR)(e,"titlePlacement",s.Z.layoutParams.info.placement))[s.Z.layoutParams.info.placement]){case"SHOW_ON_HOVER":e[s.Z.layoutParams.info.placement]="OVERLAY";break;case"SHOW_BELOW":e[s.Z.layoutParams.info.placement]="BELOW";break;case"SHOW_ABOVE":e[s.Z.layoutParams.info.placement]="ABOVE";break;case"SHOW_ON_THE_RIGHT":e[s.Z.layoutParams.info.placement]="RIGHT";break;case"SHOW_ON_THE_LEFT":e[s.Z.layoutParams.info.placement]="LEFT";break;case"ALTERNATE_HORIZONTAL":e[s.Z.layoutParams.info.placement]="ALTERNATE_HORIZONTALLY";break;case"ALTERNATE_VERTICAL":e[s.Z.layoutParams.info.placement]="ALTERNATE_VERTICALLY"}return e}(p=function(t){var e=t;switch((e=(0,l.YR)(e,"hoveringBehaviour",s.Z.behaviourParams.item.overlay.hoveringBehaviour))[s.Z.behaviourParams.item.overlay.hoveringBehaviour]){case"NO_CHANGE":e[s.Z.behaviourParams.item.overlay.hoveringBehaviour]="ALWAYS_VISIBLE";break;case"NEVER_SHOW":e[s.Z.behaviourParams.item.overlay.hoveringBehaviour]="NEVER_VISIBLE"}return e}(p=function(t){var e=t;return(e=(0,l.YR)(e,"videoSpeed",s.Z.behaviourParams.item.video.speed))[s.Z.behaviourParams.item.video.speed]=Number(e[s.Z.behaviourParams.item.video.speed])>=0?Number(e[s.Z.behaviourParams.item.video.speed]):void 0,e}(p=function(t){var e=t;return void 0!==(e=(0,l.YR)(e,"videoSound",s.Z.behaviourParams.item.video.volume))[s.Z.behaviourParams.item.video.volume]&&(e[s.Z.behaviourParams.item.video.volume]=Number(e[s.Z.behaviourParams.item.video.volume])),e}(p=function(t){var e,i=t;return(i=(0,l.YR)(i,"videoPlay",s.Z.behaviourParams.item.video.playTrigger))[s.Z.behaviourParams.item.video.playTrigger]=null===(e=i[s.Z.behaviourParams.item.video.playTrigger])||void 0===e?void 0:e.toUpperCase(),i}(p=function(t){var e,i=t;switch((i=(0,l.YR)(i,"itemClick",s.Z.behaviourParams.item.clickAction))[s.Z.behaviourParams.item.clickAction]=null===(e=i[s.Z.behaviourParams.item.clickAction])||void 0===e?void 0:e.toUpperCase(),i[s.Z.behaviourParams.item.clickAction]){case"FULLSCREEN":case"EXPAND":i[s.Z.behaviourParams.item.clickAction]="ACTION"}return i}(p=(0,l.eK)(p,l.hh))))))))))),delete(p=(0,l.Sb)(p,l.tp)).enableLeanGallery,delete p.fullscreen,delete p.magicLayoutSeed,p),i=(0,r.__assign)((0,r.__assign)({},(0,o.v5)(e)),(0,o.v5)(t));var a,h,u;var c,p;return delete i.oldRefactoredOptionInCore,i}(e));return(0,o.Tx)(i)}},93657:function(t,e){e.Z={layoutParams:{groups:{density:"layoutParams_groups_density",groupByOrientation:"layoutParams_groups_groupByOrientation",numberOfGroupsPerRow:"layoutParams_groups_numberOfGroupsPerRow",allowedGroupTypes:"layoutParams_groups_allowedGroupTypes",repeatingGroupTypes:"layoutParams_groups_repeatingGroupTypes",groupSize:"layoutParams_groups_groupSize"},crop:{method:"layoutParams_crop_method",alignment:"layoutParams_crop_alignment",enable:"layoutParams_crop_enable",enableSmartCrop:"layoutParams_crop_enableSmartCrop",cropOnlyFill:"layoutParams_crop_cropOnlyFill",ratios:"layoutParams_crop_ratios"},structure:{galleryLayout:"layoutParams_structure_galleryLayout",galleryRatio:{value:"layoutParams_structure_galleryRatio_value",includeExternalInfo:"layoutParams_structure_galleryRatio_includeExternalInfo"},enableStreching:"layoutParams_structure_enableStreching",gallerySpacing:"layoutParams_structure_gallerySpacing",itemSpacing:"layoutParams_structure_itemSpacing",scrollDirection:"layoutParams_structure_scrollDirection",numberOfColumns:"layoutParams_structure_numberOfColumns",numberOfGridRows:"layoutParams_structure_numberOfGridRows",responsiveMode:"layoutParams_structure_responsiveMode",columnRatios:"layoutParams_structure_columnRatios",scatter:{randomScatter:"layoutParams_structure_scatter_randomScatter",manualScatter:"layoutParams_structure_scatter_manualScatter"},layoutOrientation:"layoutParams_structure_layoutOrientation",groupsOrder:"layoutParams_structure_groupsOrder"},thumbnails:{enable:"layoutParams_thumbnails_enable",spacing:"layoutParams_thumbnails_spacing",size:"layoutParams_thumbnails_size",alignment:"layoutParams_thumbnails_alignment"},navigationArrows:{enable:"layoutParams_navigationArrows_enable",size:"layoutParams_navigationArrows_size",padding:"layoutParams_navigationArrows_padding",position:"layoutParams_navigationArrows_position",verticalAlignment:"layoutParams_navigationArrows_verticalAlignment",type:"layoutParams_navigationArrows_type",container:{type:"layoutParams_navigationArrows_container_type",borderRadius:"layoutParams_navigationArrows_container_borderRadius",backgroundColor:"layoutParams_navigationArrows_container_backgroundColor"}},info:{sizeUnits:"layoutParams_info_sizeUnits",width:"layoutParams_info_width",height:"layoutParams_info_height",spacing:"layoutParams_info_spacing",layout:"layoutParams_info_layout",border:{width:"layoutParams_info_border_width",color:"layoutParams_info_border_color",radius:"layoutParams_info_border_radius"},placement:"layoutParams_info_placement"},targetItemSize:{unit:"layoutParams_targetItemSize_unit",value:"layoutParams_targetItemSize_value",minimum:"layoutParams_targetItemSize_minimum"}},behaviourParams:{item:{clickAction:"behaviourParams_item_clickAction",video:{speed:"behaviourParams_item_video_speed",volume:"behaviourParams_item_video_volume",loop:"behaviourParams_item_video_loop",playTrigger:"behaviourParams_item_video_playTrigger",enablePlayButton:"behaviourParams_item_video_enablePlayButton",enableControls:"behaviourParams_item_video_enableControls",enablePlaceholder:"behaviourParams_item_video_enablePlaceholder"},overlay:{hoveringBehaviour:"behaviourParams_item_overlay_hoveringBehaviour",hoverAnimation:"behaviourParams_item_overlay_hoverAnimation",position:"behaviourParams_item_overlay_position",size:"behaviourParams_item_overlay_size",sizeUnits:"behaviourParams_item_overlay_sizeUnits",padding:"behaviourParams_item_overlay_padding"},content:{hoverAnimation:"behaviourParams_item_content_hoverAnimation",placementAnimation:"behaviourParams_item_content_placementAnimation",loader:"behaviourParams_item_content_loader",magnificationValue:"behaviourParams_item_content_magnificationValue"}},gallery:{layoutDirection:"behaviourParams_gallery_layoutDirection",blockContextMenu:"behaviourParams_gallery_blockContextMenu",scrollAnimation:"behaviourParams_gallery_scrollAnimation",enableIndexingShareLinks:"behaviourParams_gallery_enableIndexingShareLinks",vertical:{loadMore:{enable:"behaviourParams_gallery_vertical_loadMore_enable",amount:"behaviourParams_gallery_vertical_loadMore_amount",text:"behaviourParams_gallery_vertical_loadMore_text"}},horizontal:{enableScrollSnap:"behaviourParams_gallery_horizontal_enableScrollSnap",slideAnimation:"behaviourParams_gallery_horizontal_slideAnimation",slideTransition:"behaviourParams_gallery_horizontal_slideTransition",blockScroll:"behaviourParams_gallery_horizontal_blockScroll",navigationDuration:"behaviourParams_gallery_horizontal_navigationDuration",loop:"behaviourParams_gallery_horizontal_loop",autoSlide:{behaviour:"behaviourParams_gallery_horizontal_autoSlide_behaviour",interval:"behaviourParams_gallery_horizontal_autoSlide_interval",pauseOnHover:"behaviourParams_gallery_horizontal_autoSlide_pauseOnHover",speed:"behaviourParams_gallery_horizontal_autoSlide_speed"},slideshowInfo:{buttonsAlignment:"behaviourParams_gallery_horizontal_slideshowInfo_buttonsAlignment",enableCounter:"behaviourParams_gallery_horizontal_slideshowInfo_enableCounter",enablePlayButton:"behaviourParams_gallery_horizontal_slideshowInfo_enablePlayButton"}}}},stylingParams:{arrowsColor:"stylingParams_arrowsColor",itemShadowBlur:"stylingParams_itemShadowBlur",itemShadowDirection:"stylingParams_itemShadowDirection",itemShadowOpacityAndColor:"stylingParams_itemShadowOpacityAndColor",itemShadowSize:"stylingParams_itemShadowSize",itemEnableShadow:"stylingParams_itemEnableShadow",itemBorderRadius:"stylingParams_itemBorderRadius",itemBorderWidth:"stylingParams_itemBorderWidth",itemResolutionMode:"stylingParams_itemResolutionMode"}}},17370:function(t,e,i){i.d(e,{FX:function(){return n},Tx:function(){return s},_x:function(){return o},oZ:function(){return l},v5:function(){return a}});var r=i(31191);function o(t,e,i,o){void 0===o&&(o=!0);var n=o?(0,r.__assign)({},t):t,s=e.split("_"),a=s.pop(),l=n;return s.forEach((function(t){"object"!=typeof l[t]&&(l[t]={}),l=l[t]})),l[a]=i,n}function n(t){var e={};for(var i in t)if(t.hasOwnProperty(i))if("object"==typeof t[i]&&!(t[i]instanceof Array)&&null!==t[i]&&Object.keys(t[i]).length>0){var r=n(t[i]);for(var o in r)r.hasOwnProperty(o)&&(e[i+"_"+o]=r[o])}else e[i]=t[i];return e}function s(t){return Object.entries(t).reduce((function(t,e){return o(t,e[0],e[1],false)}),{})}function a(t){return Object.keys(t).forEach((function(e){return void 0===t[e]?delete t[e]:{}})),t}function l(){for(var t=[],e=0;e0&&(0,o.hd)(t.titlePlacement)&&t.imageInfoType===n.Z.SEPARATED_BACKGROUND&&(i+=t.textImageSpace,i+=2*t.textBoxBorderWidth);return i}(i,i.textBoxHeight),i.externalInfoWidth=function(t,e){if(!function(t,e){var i=t.scrollDirection,r=t.isVertical,n=t.groupSize,s=t.titlePlacement;return i===a.Z.scrollDirection.VERTICAL&&r&&1===n&&(0,o.Xq)(s)&&e}(t,e))return 0;var i=t.calculateTextBoxWidthMode,r=t.textBoxWidth,n=t.textBoxWidthPercent,l=0;l=i===s.Z.PERCENT?Math.min(100,Math.max(0,n))/100:r;return l}(i,e),i}},65497:function(t,e,i){i.d(e,{e:function(){return o}});var r=i(31191),o=new(function(){function t(){this.features={fullscreenRedesign:{title:"New fullscreen design",releaseDate:Date.parse("2017-09-25T12:00:00.000Z")},spacingCalculation:{title:"Improve spacing calculation",releaseDate:Date.parse("2017-08-29T11:27:29.000Z")},fixedColumnsInMasonry:{title:"Allow fixed number of columns in Masonry layout",releaseDate:Date.parse("2018-05-24T18:00:00.000Z")},mobileSettings:{title:"Separate mobile and desktop setting",releaseDate:Date.parse("2018-12-18T12:00:50.054Z")}},this.freezeDate=new Date,this.updateFeatures()}return Object.defineProperty(t.prototype,"freezeDate",{get:function(){return this._dateCreated||new Date},set:function(t){"object"==typeof t&&"function"==typeof t.getTime&&(this._dateCreated=t,this.updateFeatures())},enumerable:!1,configurable:!0}),t.prototype.updateFeatures=function(){var t=this;this.supports=Object.entries(this.features).reduce((function(e,i){var o,n=i[0],s=i[1].releaseDate;return(0,r.__assign)((0,r.__assign)({},e),((o={})[n]=t.freezeDate>=s,o))}))},t}())},58958:function(t,e,i){i.d(e,{J:function(){return p},_:function(){return c}});var r=i(31191),o=i(78375),n=i(60983),s=i(83110),a=i(15466),l=i(17370),h=i(59894),u=function(t){var e=(0,r.__assign)({},t);return e.galleryLayout=o.Z.ALTERNATE,e.cubeType="fill",e.cubeImages=!0,(e=(0,l._x)(e,"layoutParams_cropRatio",1)).titlePlacement=n.ZP.SHOW_ON_HOVER,e.scrollDirection=s.Z.VERTICAL,e.gridStyle=h.Z.SET_ITEMS_PER_ROW,(e=(0,l._x)(e,"layoutParams_gallerySpacing",0)).isVertical=!0,e.groupSize=3,e.collageDensity=.48,e.groupTypes="1,2h,2v,3t,3b,3l,3r,3v,3h",e.gallerySize=86,e.minItemSize=50,e.chooseBestGroup=!0,(e=(0,l._x)(e,"layoutParams_repeatingGroupTypes","1,2h,1,2h")).smartCrop=!1,e.scatter=0,e.rotatingScatter="",e.fixedColumns=1,e.groupsPerStrip=0,e.placeGroupsLtr=!1,e.rotatingCropRatios="",e.slideshowLoop=!1,e},c=u({}),p=function(t){var e=(0,r.__assign)({},t);return(e=u(e)).targetItemSize=(0,a.fE)(e),e}},87122:function(t,e,i){i.d(e,{J:function(){return p},_:function(){return c}});var r=i(31191),o=i(78375),n=i(60983),s=i(83110),a=i(15466),l=i(17370),h=i(59894),u=function(t){var e=(0,r.__assign)({},t);return e.galleryLayout=o.Z.BRICKS,e.cubeType="fill",e.cubeImages=!0,(e=(0,l._x)(e,"layoutParams_cropRatio",1)).titlePlacement=n.ZP.SHOW_ON_HOVER,e.scrollDirection=s.Z.VERTICAL,(e=(0,l._x)(e,"layoutParams_gallerySpacing",0)).isVertical=!0,e.groupSize=3,e.collageDensity=.8,e.groupTypes="1,2h,2v,3t,3b,3l,3r,3v,3h",e.slideshowLoop=!1,e.gridStyle=h.Z.SET_ITEMS_PER_ROW,e.gallerySize=400,e.minItemSize=50,e.chooseBestGroup=!0,(e=(0,l._x)(e,"layoutParams_repeatingGroupTypes","2h")).smartCrop=!1,e.scatter=0,e.rotatingScatter="",e.fixedColumns=1,e.groupsPerStrip=0,e.placeGroupsLtr=!1,e.rotatingCropRatios="0.707,1.414,1.414,0.707",e},c=u({}),p=function(t){var e=(0,r.__assign)({},t);return(e=u(e)).targetItemSize=(0,a.fE)(e),e}},39562:function(t,e,i){i.d(e,{J:function(){return c},_:function(){return u}});var r=i(31191),o=i(78375),n=i(60983),s=i(15466),a=i(59894),l=i(7554),h=function(t){var e=(0,r.__assign)({},t);return e.galleryLayout=o.Z.COLLAGE,e.cubeImages=!1,e.titlePlacement=n.ZP.SHOW_ON_HOVER,e.groupSize=3,e.hasThumbnails=!1,e.groupTypes="1,2h,2v,3t,3b,3l,3r",e.slideshowLoop=!1,e.numberOfImagesPerCol=1,e.gridStyle=a.Z.FIT_TO_SCREEN,e.targetItemSize=0,e.fixedColumns=0,e.enableScroll=!0,e.cropOnlyFill=!1,e.slideAnimation=l.Z.SCROLL,e},u=h({}),c=function(t){var e=(0,r.__assign)({},t);return(e=h(e)).targetItemSize=(0,s.fE)(e,Math.round(5*e.gallerySize+500)),e}},59245:function(t,e,i){i.d(e,{J:function(){return c},_:function(){return u}});var r=i(31191),o=i(78375),n=i(83110),s=i(15466),a=i(17370),l=i(7554),h=function(t){var e=(0,r.__assign)({},t);return e.galleryLayout=o.Z.COLUMN,e.cubeType="fill",e.cubeImages=!0,(e=(0,a._x)(e,"layoutParams_cropRatio",.35)).scrollDirection=n.Z.HORIZONTAL,e.isVertical=!1,e.groupSize=1,e.groupTypes="1",e.numberOfImagesPerCol=1,e.smartCrop=!1,e.galleryType="Strips",e.fixedColumns=0,e.enableScroll=!0,e.cropOnlyFill=!1,e.slideAnimation=l.Z.SCROLL,e},u=h({}),c=function(t){var e=(0,r.__assign)({},t);return(e=h(e)).targetItemSize=(0,s.fE)(e),e}},75513:function(t,e,i){i.d(e,{J:function(){return o}});var r=i(17370),o=function(t){try{var e=t.jsonStyleParams?JSON.parse(t.jsonStyleParams):{};return(0,r.oZ)(t,(0,r.Tx)(e))}catch(t){return{}}}},25505:function(t,e,i){var r=i(89233),o=i(5109),n=i(2896);e.Z=function(t){t.imagePlacementAnimation=r.Z.NO_EFFECT,t.overlayAnimation=n.Z.NO_EFFECT,t.imageHoverAnimation=o.Z.NO_EFFECT}},29484:function(t,e,i){i.d(e,{J:function(){return l},_:function(){return a}});var r=i(31191),o=i(78375),n=i(15466),s=function(t){var e=(0,r.__assign)({},t);return e.galleryLayout=o.Z.EMPTY,e},a=s({}),l=function(t){var e=(0,r.__assign)({},t);return(e=s(e)).targetItemSize=(0,n.fE)(e,Math.round(9*e.gallerySize+100)),e}},5584:function(t,e,i){i.d(e,{J:function(){return c},_:function(){return u}});var r=i(31191),o=i(78375),n=i(60983),s=i(83110),a=i(15466),l=i(17370),h=function(t){var e=(0,r.__assign)({},t);return e.galleryLayout=o.Z.FULLSIZE,e.cubeImages=!0,(e=(0,l._x)(e,"layoutParams_cropRatio","100%/100%")).cubeType="fill",e.titlePlacement=n.ZP.SHOW_ON_HOVER,e.scrollDirection=s.Z.HORIZONTAL,e.galleryMargin=0,e.isVertical=!1,e.groupSize=1,e.groupTypes="1",e.numberOfImagesPerCol=1,e.smartCrop=!1,e.galleryType="Strips",e.hasThumbnails=!1,e.enableScroll=!0,e.scrollSnap=!0,e.cropOnlyFill=!1,e.scatter=0,e.rotatingScatter="",e.imageMargin=0,e},u=h({}),c=function(t){var e=(0,r.__assign)({},t);return(e=h(e)).targetItemSize=(0,a.fE)(e),e}},73822:function(t,e,i){i.d(e,{J:function(){return h},_:function(){return l}});var r=i(31191),o=i(78375),n=i(15466),s=i(7554),a=function(t){var e=(0,r.__assign)({},t);return e.galleryLayout=o.Z.GRID,e.cubeImages=!0,e.isVertical=!0,e.groupSize=1,e.hasThumbnails=!1,e.groupTypes="1",e.slideshowLoop=!1,e.smartCrop=!1,e.galleryType="Columns",e.targetItemSize=0,e.enableScroll=!0,e.cropOnlyFill=!1,e.minItemSize=50,e.slideAnimation=s.Z.SCROLL,e.collageDensity=0,e},l=a({}),h=function(t){var e=(0,r.__assign)({},t);return(e=a(e)).targetItemSize=(0,n.fE)(e,Math.round(8.5*e.gallerySize+150)),e=(0,n._Q)(e),e=(0,n._A)(e),e=(0,n.$e)(e)}},26561:function(t,e,i){i.d(e,{J:function(){return c},_:function(){return h}});var r=i(31191),o=i(78375),n=i(83110),s=i(65497),a=i(17370),l=function(t){var e=(0,r.__assign)({},t);return e.galleryLayout=o.Z.MAGIC,e.cubeImages=void 0,(e=(0,a._x)(e,"layoutParams_cropRatio",void 0)).isVertical=void 0,e.targetItemSize=void 0,e.collageAmount=void 0,e.collageDensity=void 0,e.groupTypes=void 0,e.oneRow=void 0,e.imageMargin=void 0,e.scatter=void 0,(e=(0,a._x)(e,"layoutParams_gallerySpacing",void 0)).chooseBestGroup=void 0,e.smartCrop=void 0,e.cubeType=void 0,e.hasThumbnails=void 0,e.enableScroll=void 0,e.cropOnlyFill=void 0,e.fixedColumns=void 0,e.enableInfiniteScroll=void 0,e.slideshowLoop=!1,e},h=l({}),u=function(t){var e=(0,r.__assign)({},t),i=e.magicLayoutSeed;!i>0&&(i=999999),i=Math.floor(i);var o=function(t,e,r){var o,n,s=function(t){t=String(t);for(var e=0,i=0;i0},isRelevantDescription:"Must be a single row horizontal gallery with a provided galleryRatio value and a below/above info placement",default:!1,type:o.A.BOOLEAN}},66614:function(t,e,i){var r=i(70347),o=i(12094);e.Z={title:"Gallery Ratio",description:"This option allows horizontally scrolled galleries to link their height to the width of the gallery by the provided ratio",isRelevant:function(t){return t.scrollDirection===r.Z.scrollDirection.HORIZONTAL},isRelevantDescription:'Set a Horizontal gallery ("Scroll Direction" as "Horizontal")',default:0,type:o.A.NUMBER}},12094:function(t,e,i){i.d(e,{A:function(){return r}});var r={NUMBER:"NUMBER",BOOLEAN:"BOOLEAN",OPTIONS:"OPTIONS",TEXT:"TEXT",COLOR_PICKER:"COLOR_PICKER",FONT_PICKER:"FONT_PICKER",BUTTON:"BUTTON",MULTISELECT:"MULTISELECT",MULTIREPEAT:"MULTIREPEAT"}},72186:function(t,e,i){var r=i(23744),o=i(30972),n=function(){function t(t){this.uniqueId=o.Z.generateUUID(),this.isGalleryGroup=!0,t.dto&&t.dto.dto&&(t.dto=t.dto.dto,o.Z.isDev()&&console.warn("Item core is created with already existing item core")),this.dto=Object.assign({},t.dto),t.scheme?this.processScheme(t.scheme):this.processScheme(new r.Z({dto:t.dto}).scheme),t.items?this.items=t.items:console.warn("Pro Gallery created Gallery Group without items",t)}return t.prototype.processScheme=function(t){this.id=t.id,this.idx=t.idx,this.width=t.width,this.height=t.height,this.totalHeight=t.totalHeight,this.ratio=t.ratio,this.top=t.top,this.left=t.left,this.right=t.right,this.bottom=t.bottom,this.visible=t.visible,this.rendered=t.rendered,this.required=t.required},t.prototype.renderProps=function(t){return{className:"group",id:this.id,idx:this.idx,key:this.key,type:this.type,top:this.top,left:this.left,right:this.right,bottom:this.bottom,width:this.width,height:this.height,totalHeight:this.totalHeight,items:this.items,visible:this.visible,rendered:this.rendered,required:this.required,galleryConfig:t}},Object.defineProperty(t.prototype,"key",{get:function(){return"group_"+this.id},enumerable:!1,configurable:!0}),t}();e.Z=n},38471:function(t,e,i){var r=i(31191),o=i(30972),n=i(70347),s=i(24386),a=function(){function t(t){this.uniqueId=o.Z.generateUUID(),this.isGalleryItem=!0,this.createdBy=t.createdBy,this.createUrl=this.createUrl.bind(this),this.createMagnifiedUrl=this.createMagnifiedUrl.bind(this),this.update(t)}return t.prototype.update=function(t){if(this.createMediaUrl=t.createMediaUrl,t.dto&&t.dto.dto&&(t.dto=t.dto.dto,o.Z.isDev()&&console.warn("Item core is created with already existing item core")),this.dto=(0,r.__assign)({},t.dto),t.scheme)this.processScheme(t.scheme);else{var e={};Object.assign(e,this.dto,this.metadata),this.processScheme(new s.c({dto:e}).scheme)}if(this.dto){var i=this.dto.metaData||this.dto.metadata;i&&(this.dto.metaData=o.Z.parseStringObject(i))}this.sharpParams=(0,r.__assign)({},t.sharpParams),this.sharpParams.quality||(this.sharpParams.quality=90),this.sharpParams.usm||(this.sharpParams.usm={}),this.thumbnailSize=t.thumbnailSize||120,this.resetUrls(),this.updateSharpParams()},t.prototype.processScheme=function(t){this.id=t.id,this.idx=t.idx,this.type=t.type,this.style=t.style,this.width=t.width,this.maxWidth=t.maxWidth,this.infoWidth=t.infoWidth,this.height=t.height,this.maxHeight=t.maxHeight,this.infoHeight=t.infoHeight,this.margins=t.margins,this.ratio=t.ratio,this.cropRatio=t.cropRatio,this.cubeImages=t.isCropped,this.cubeType=t.cropType||n.Z.resizeMethods.FILL,this.offset=t.offset,this.group=t.group,this.orientation=t.orientation,this.visibility=t.visibility},t.prototype.renderProps=function(t){return(0,r.__assign)({className:"image",key:this.key,idx:this.idx,photoId:this.photoId,id:this.id,hash:this.id,html:this.html,type:this.type,isVideoPlaceholder:this.isVideoPlaceholder,url:this.url,alt:this.alt,calculatedAlt:this.calculatedAlt,htmlContent:this.htmlContent,directLink:this.directLink,directShareLink:this.directShareLink,linkUrl:this.linkUrl,linkType:this.linkType,linkOpenType:this.linkOpenType,linkData:this.linkData,title:this.title,fileName:this.fileName,description:this.description,createUrl:this.createUrl,createMagnifiedUrl:this.createMagnifiedUrl,cubeImages:this.cubeImages,cubeType:this.cubeType,cropRatio:this.cropRatio,isTransparent:this.isTransparent,offset:this.offset,style:(0,r.__assign)({ratio:this.ratio,bgColor:this.bgColor,maxWidth:this.maxWidth,maxHeight:this.maxHeight,infoWidth:this.infoWidth,infoHeight:this.infoHeight,orientation:this.orientation},this.style),isDemo:this.isDemo,videoUrl:this.videoUrl,isExternalVideo:this.isExternalVideo},t)},t.prototype.getDataForShop=function(){var t=this.focalPoint,e=this.metadata;return{isDemo:e.isDemo,orderIndex:this.orderIndex,itemId:this.dto.itemId,itemUrl:this.url,itemHeight:e.height,title:e.title,itemWidth:e.width,itemType:e.type||"image",imageUrl:this.processedMediaUrl(n.Z.resizeMethods.FIT,200,200,null,null).img(),imagePurchasedUrl:this.dto.mediaUrl,fpX:t[0],fpY:t[1]}},t.prototype.getHighestMp4Resolution=function(t){var e=t.filter((function(t){return"mp4"===t.formats[0]})).sort((function(t,e){return e.width-t.width}))[0];return{width:e.width,height:e.height}},t.prototype.processedMediaUrl=function(t,e,i,s,a){var l,h=this;void 0===a&&(a=!1);var u=function(t,e,i,r,n,s,l){var u;if(void 0===s&&(s=null),void 0===l&&(l=null),"function"==typeof h.createMediaUrl)try{var c=String(o.Z.hashCode(JSON.stringify({url:e,resizeMethod:i,requiredWidth:r,requiredHeight:n,sharpParams:s,focalPoint:l})));h._cachedUrls[c]||(h._cachedUrls[c]=h.createMediaUrl({item:t,originalUrl:e,resizeMethod:i,requiredWidth:r,requiredHeight:n,sharpParams:s,focalPoint:l,createMultiple:a})||""),u=h._cachedUrls[c]}catch(o){console.error("Cannot create url",o,t,e,i,r,n,s,l),u=String(e)}else u=String(e);return u};e=Math.ceil(e),i=Math.ceil(i);var c=t===n.Z.resizeMethods.FILL&&this.isCropped&&this.focalPoint,p={},d=this.url;return this.isText?Object.assign.apply(Object,(0,r.__spreadArrays)([{}],Object.values(n.Z.urlTypes).map((function(t){var e;return(e={})[t]=function(){return""},e})))):((this.isVideo||this.isVideoPlaceholder)&&(d=null===(l=this.poster)||void 0===l?void 0:l.url,o.Z.isExternalUrl(this.url)?p[n.Z.urlTypes.VIDEO]=function(){return h.url}:p[n.Z.urlTypes.VIDEO]=function(){return u(h,h.url,n.Z.resizeMethods.VIDEO,e,i)}),p[n.Z.urlTypes.HIGH_RES]=function(){return u(h,d,t,e,i,s,c)},p[n.Z.urlTypes.LOW_RES]=function(){return u(h,d,h.cubeImages&&t!==n.Z.resizeMethods.FIT?n.Z.resizeMethods.FILL:n.Z.resizeMethods.FIT,250,250,(0,r.__assign)((0,r.__assign)({},s),{quality:30,blur:30}),c)},p)},t.prototype.resetUrls=function(){var t=this.maxWidth||this.dto.width||this.metadata.width,e=this.maxHeight||this.dto.height||this.metadata.height;this.resizeWidth=Math.min(t,Math.ceil(this.width)),this.resizeHeight=Math.min(e,Math.ceil(this.height)),this._cachedUrls={},this.urls={}},t.prototype.createUrl=function(t,e){try{return this[t+"_url"][e]()}catch(t){return""}},t.prototype.createMagnifiedUrl=function(t){if(void 0===t&&(t=1),!this.urls.magnified_url){var e=this.style,i=e.innerWidth,r=e.innerHeight;this.urls.magnified_url=this.processedMediaUrl(this.cubeType,i*t,r*t,this.sharpParams,!0)}return this.urls.magnified_url[n.Z.urlTypes.HIGH_RES]()},Object.defineProperty(t.prototype,"resized_url",{get:function(){return this.urls.resized_url||(this.urls.resized_url=this.processedMediaUrl(this.cubeType,this.resizeWidth,this.resizeHeight,this.sharpParams)),this.urls.resized_url},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"multi_url",{get:function(){return this.urls.multi_url||(this.urls.multi_url=this.processedMediaUrl(this.cubeType,this.resizeWidth,this.resizeHeight,this.sharpParams,!0)),this.urls.multi_url},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"scaled_url",{get:function(){if(!this.urls.scaled_url){var t=this.maxWidth/this.maxHeight,e=this.resizeWidth/this.resizeHeight]*>/g,"").trim()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"alt",{get:function(){return this.metadata.alt||""},set:function(t){this.metadata.alt=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.metadata.title||""},set:function(t){this.metadata.title=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fileName",{get:function(){return this.metadata.fileName||""},set:function(t){this.metadata.fileName=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"description",{get:function(){return this.metadata.description||""},set:function(t){this.metadata.description=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"exif",{get:function(){return this.metadata.exif||""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasLink",{get:function(){return"wix"===this.linkType?!!this.linkData.type:!!this.linkUrl},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"link",{get:function(){return this.metadata.link||{}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"linkData",{get:function(){return this.metadata.link&&this.metadata.link.data?this.metadata.link.data:this.isWixUrl?{type:"web",url:this.linkUrl}:{}},set:function(t){this.metadata.link||(this.metadata.link={}),this.metadata.link.data=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"linkType",{get:function(){return this.metadata.link&&!o.Z.isUndefined(this.metadata.link.type)?this.metadata.link.type:this.linkUrl?"web":"none"},set:function(t){this.metadata.link||(this.metadata.link={}),this.metadata.link={type:t,url:void 0,text:void 0,title:void 0,target:"_blank"}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultLinkText",{get:function(){var t=this.linkData;switch(this.linkType){case"wix":if(!t)return"Go to Link";switch(t.type){case"PageLink":return"Go to Page "+t.pageName;case"AnchorLink":return"Scroll to "+t.anchorName;case"ExternalLink":return""+t.url;case"EmailLink":return"Email "+t.recipient;case"PhoneLink":return"Call "+t.phoneNumber;case"DocumentLink":return"Open "+t.name;default:return"Go to Link"}case"web":return this.linkTitleFromUrl||this.linkUrl;case"page":return this.linkTitle;default:return""}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultLinkValue",{get:function(){var t=this.linkData;switch(this.linkType){case"wix":if(!t)return"Add a Link";switch(t.type){case"PageLink":return t.pageName?"PAGE - "+t.pageName:"PAGE";case"AnchorLink":return"ANCHOR - "+t.anchorName;case"ExternalLink":return"LINK - "+t.url;case"EmailLink":return"EMAIL - "+t.recipient;case"PhoneLink":return"PHONE - "+t.phoneNumber;case"DocumentLink":return"DOCUMENT - "+t.name;default:return"Add a Link"}case"web":return this.linkUrl;case"page":return this.linkTitle;default:return""}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"linkText",{get:function(){return this.metadata.link&&this.metadata.link.text||this.defaultLinkText},set:function(t){this.metadata.link||(this.metadata.link={}),this.metadata.link.text=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"linkTitle",{get:function(){return this.metadata.link&&this.metadata.link.title},set:function(t){this.metadata.link||(this.metadata.link={}),this.metadata.link.title=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"linkUrl",{get:function(){return this.metadata.link&&this.metadata.link.url},set:function(t){this.metadata.link||(this.metadata.link={}),this.metadata.link.url=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isWixUrl",{get:function(){return this.linkUrl&&0===this.linkUrl.indexOf("wix")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"linkTitleFromUrl",{get:function(){var t=/[^/]*\.\w+$/g.exec(this.linkUrl),e=t&&t[0];return e&&e.split(".")[0]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"unprotectedLinkOpenType",{get:function(){return o.Z.get(this,"metadata.link.target")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"linkOpenType",{get:function(){return this.metadata.link&&!o.Z.isUndefined(this.metadata.link.target)?this.unprotectedLinkOpenType:this.metadata.link&&!o.Z.isUndefined(this.metadata.link.targetBlank)?this.metadata.link.targetBlank?"_blank":"_top":"_blank"},set:function(t){this.metadata.link||(this.metadata.link={}),this.metadata.link.target=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"initialLinkObject",{get:function(){return{type:"none",url:void 0,text:void 0,title:void 0,target:"_blank"}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDemo",{get:function(){return this.metadata.isDemo||this.dto.isDemo||"public"===this.metadata.sourceName||this.metadata.tags&&Array.isArray(this.metadata.tags)&&this.metadata.tags.indexOf("_paid")>=0},set:function(t){this.metadata.isDemo=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isText",{get:function(){return"text"===this.type},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVideo",{get:function(){return"video"===this.type},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRendered",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDimensionless",{get:function(){return!(this.maxWidth>1||this.maxHeight>1)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isTransparent",{get:function(){return this.url&&(this.url.indexOf(".png")>0||this.url.indexOf(".gif")>0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"webLink",{get:function(){var t;return(null===(t=this.linkUrl)||void 0===t?void 0:t.length)>0&&"web"===this.linkType?{url:this.linkUrl,target:this.linkOpenType}:{}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"directLink",{get:function(){return this.dto.directLink||this.webLink||{}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"directShareLink",{get:function(){return this.dto.directShareLink||""},enumerable:!1,configurable:!0}),t}();e.Z=a},16526:function(t,e,i){i.d(e,{M:function(){return a}});var r=i(31191),o=i(38471),n=i(72186),s=i(30972),a=function(){function t(){}return t.convertDtoToLayoutItem=function(t){if(!!(t.id&&t.width>0&&t.height>0))return t;var e=t.metadata||t.metaData,i="object"==typeof e?e:s.Z.parseStringObject(e)||{};return(0,r.__assign)({id:t.itemId||t.photoId,width:i.width,height:i.height},t)},t.convertToGalleryItems=function(t,e,i){void 0===e&&(e={}),void 0===i&&(i=[]),t.galleryItems=[];for(var s=0;s0;)this.placeItems(r),this.resize(),r--}return t.prototype.resize=function(){this.isVertical?this.resizeToWidth(this.targetItemSize):this.resizeToHeight(this.targetItemSize),this.setLeft(this.left),this.setTop(this.top)},t.prototype.safeGetItem=function(t){if(this.items[t])return this.items[t];if(this.dummyItems[t])return this.dummyItems[t];var e=new o.c((0,r.__assign)({},this.items[this.items.length-1].config));return e.idx=e.config.idx+t-(this.items.length-1),e.type="dummy",this.dummyItems[t]=e,e},t.prototype.setCubedHeight=function(t){var e=this.cubeImages&&1===this.groupSize&&["fill","fit"].includes(this.cubeType)&&0===this.repeatingGroupTypes.length&&0===this.rotatingCropRatios.length;this.cubedHeight=e?t:null},t.prototype.round=function(){this.isLastGroup&&0===this.scrollDirection?this.width=this.stripWidth-this.left:this.width=Math.round(this.width),this.height=Math.round(this.height);for(var t=0,e=this.items;t0?r.split(","):[];if(this.groupTypes){var h=this.groupTypes.split(",");h.length>1?0===(l=l.filter((function(t){return h.indexOf(t)>=0}))).length&&(l=["1"]):l=h}if(this.collageDensity>=0){var u=this.collageDensity,c=parseInt(l[l.length-1]),p=a[c],d=p[Math.floor(u*(p.length-1))];0===(l=l.filter((function(t){return d.indexOf(parseInt(t))>=0}))).length&&(l=["1"])}return l[this.calculateRandomSeed(l.length)]||"1"},t.prototype.calculateRandomSeed=function(t){var e;return e=this.isVertical?this.items[0].seed%t:(this.inStripIdx+this.stripIdx)%t,Math.round(Math.min(Math.max(0,e),t-1))},t.prototype.placeItems=function(t){this.type=this.getGroupType(t);var e,i=[],r=0,o=0;switch(this.type){default:case"1":(e=this.safeGetItem(0)).pinToCorner("top-left"),i.push(e),r=e.width,o=e.height;break;case"2v":(e=this.safeGetItem(0)).pinToCorner("top-left"),i.push(e),r=e.width,o=e.height,(e=this.safeGetItem(1)).pinToCorner("bottom-left"),e.resize(r/e.width),o+=e.height,i.push(e);break;case"2h":(e=this.safeGetItem(0)).pinToCorner("top-left"),e.innerOffset=[0,0],i.push(e),r=e.width,o=e.height,(e=this.safeGetItem(1)).pinToCorner("top-right"),e.innerOffset=[0,0],e.resize(o/e.height),r+=e.width,i.push(e);break;case"3b":(e=this.safeGetItem(0)).pinToCorner("top-left"),i.push(e),r=e.width,o=e.height,(e=this.safeGetItem(1)).pinToCorner("top-right"),e.resize(o/e.height),r+=e.width,i.push(e),(e=this.safeGetItem(2)).pinToCorner("bottom-left"),e.resize(r/e.width),o+=e.height,i.push(e);break;case"3t":(e=this.safeGetItem(1)).pinToCorner("bottom-left"),i.push(e),r=e.width,o=e.height,(e=this.safeGetItem(2)).pinToCorner("bottom-right"),e.resize(o/e.height),r+=e.width,i.push(e),(e=this.safeGetItem(0)).pinToCorner("top-left"),e.resize(r/e.width),o+=e.height,i=[e].concat(i);break;case"3r":(e=this.safeGetItem(0)).pinToCorner("top-left"),i.push(e),r=e.width,o=e.height,(e=this.safeGetItem(1)).pinToCorner("bottom-left"),e.resize(r/e.width),o+=e.height,i.push(e),(e=this.safeGetItem(2)).pinToCorner("top-right"),e.resize(o/e.height),r+=e.width,i.push(e);break;case"3l":(e=this.safeGetItem(1)).pinToCorner("top-right"),i.push(e),r=e.width,o=e.height,(e=this.safeGetItem(2)).pinToCorner("bottom-right"),e.resize(r/e.width),o+=e.height,i.push(e),(e=this.safeGetItem(0)).pinToCorner("top-left"),e.resize(o/e.height),r+=e.width,i=[e].concat(i);break;case"3v":(e=this.safeGetItem(0)).pinToCorner("top-left"),e.setPosition("relative"),i.push(e),r=e.width,o=e.height,(e=this.safeGetItem(2)).pinToCorner("bottom-left"),e.setPosition("relative"),e.resize(r/e.width),o+=e.height,i.push(e),(e=this.safeGetItem(1)).setPosition("relative"),e.resize(r/e.width),o+=e.height,e.pinToCorner("top",i[0]),i=[i[0],e,i[1]];break;case"3h":(e=this.safeGetItem(0)).pinToCorner("top-left"),e.setPosition("relative"),i.push(e),r=e.width,o=e.height,(e=this.safeGetItem(2)).pinToCorner("top-right"),e.setPosition("relative"),e.resize(o/e.height),r+=e.width,i.push(e),(e=this.safeGetItem(1)).setPosition("relative"),e.resize(o/e.height),r+=e.width,e.pinToCorner("left",i[0]),i=[i[0],e,i[1]]}this.width=r,this.height=o,this.items=i,this.placed=!0},t.prototype.resizeToHeight=function(t){this.height=t,this.width=this.getWidthByHeight(t),this.resizeItems()},t.prototype.resizeToWidth=function(t){this.width=t,this.height=this.getHeightByWidth(t),this.resizeItems()},t.prototype.resizeItems=function(){var t=this,e=["3b","3r"].indexOf(this.type)>=0?this.items.slice().reverse():this.items;e.forEach((function(i,r){i.resize(t.getItemDimensions(e,r)),i.group={top:t.top,left:t.left,width:t.width,height:t.height},i.groupOffset={bottom:t.top+t.height,right:t.left+t.width}}))},t.prototype.getItemDimensions=function(t,e){var i=this.imageMargin;switch(this.type){default:case"1":case"2v":case"3v":return{width:this.width-i};case"2h":case"3h":return{height:this.height-i};case"3t":case"3b":return 0===e?{width:this.width-i}:{height:this.height-t[0].height-2*i};case"3r":case"3l":return 0===e?{height:this.height-i}:{width:this.width-t[0].width-2*i}}},t.prototype.getHeightByWidth=function(t){var e=1,i=1,r=this.imageMargin,o=this.items.map((function(t){return t.width/t.height}));switch(this.type){default:case"1":i=1-(e=1/o[0]);break;case"2h":i=1-2*(e=1/(o[0]+o[1]));break;case"2v":i=2-(e=1/o[0]+1/o[1]);break;case"3h":i=1-3*(e=1/(o[0]+o[1]+o[2]));break;case"3v":i=3-(e=1/o[0]+1/o[1]+1/o[2]);break;case"3t":e=1/(o[2]+o[1])+1/o[0],i=2-2/(o[2]+o[1])+1/o[0];break;case"3b":e=1/(o[0]+o[1])+1/o[2],i=2-2/(o[0]+o[1])+1/o[2];break;case"3l":i=2-(e=(o[1]+o[2])/(o[0]*o[1]+o[1]*o[2]+o[0]*o[2]))*(2+o[0]);break;case"3r":i=2-(e=(o[0]+o[1])/(o[0]*o[1]+o[1]*o[2]+o[0]*o[2]))*(2+o[2])}return t*e+r*i},t.prototype.getWidthByHeight=function(t){var e=1,i=1,r=this.imageMargin,o=this.items.map((function(t){return t.width/t.height}));switch(this.type){default:case"1":i=1-(e=o[0]);break;case"2h":i=2-(e=o[0]+o[1]);break;case"2v":i=1-2*(e=1/(1/o[0]+1/o[1]));break;case"3h":i=3-(e=o[0]+o[1]+o[2]);break;case"3v":i=1-3*(e=1/(1/o[0]+1/o[1]+1/o[2]));break;case"3t":e=1/(1/(o[2]+o[1])+1/o[0]),i=(2/(o[2]+o[1])+1/o[0]-2)*e;break;case"3b":e=1/(1/(o[0]+o[1])+1/o[2]),i=(2/(o[0]+o[1])+1/o[2]-2)*e;break;case"3l":e=(o[0]*o[1]+o[1]*o[2]+o[0]*o[2])/(o[1]+o[2]),i=2+o[0]-2*e;break;case"3r":e=(o[0]*o[1]+o[1]*o[2]+o[0]*o[2])/(o[0]+o[1]),i=2+o[2]-2*e}return t*e+r*i},t.prototype.setTop=function(t){this.top=t||0;for(var e=0,i=this.items;e=t.minItemSize;return e&&r}),!0))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"scheme",{get:function(){return{id:this.id,idx:this.idx,stripIdx:this.stripIdx,inStripIdx:this.inStripIdx,isLastGroup:this.isLastGroup,items:this.items.map((function(t){return t.scheme})),type:this.type,width:this.width,height:this.height,infoHeight:this.infoHeight,infoWidth:this.infoWidth,ratio:this.ratio,top:this.top,left:this.left,right:this.right,bottom:this.bottom,visible:this.visible,rendered:this.rendered,required:this.required}},enumerable:!1,configurable:!0}),t}()},24386:function(t,e,i){i.d(e,{c:function(){return n}});var r=i(31191),o=i(7767),n=function(){function t(t){if(this.style={},this.visibility={},(t=t||{}).dto||(console.error("Item has no DTO",t),t.dto={}),this.config=t,this.dto=t.dto,this.idx=t.idx,this.inGroupIdx=t.inGroupIdx,this.container=t.container,this.cubeType="fill",t.styleParams){var e=t.styleParams;this.cubeType=e.cubeType,this.cubeImages=e.cubeImages,this._cropRatio=e.layoutParams.cropRatio,this.rotatingCropRatios=e.rotatingCropRatios,this.smartCrop=e.smartCrop,this.cropOnlyFill=e.cropOnlyFill,this.imageMargin=e.imageMargin,this.gallerySpacing=e.layoutParams.gallerySpacing,this.scatter=e.scatter,this.rotatingScatter=e.rotatingScatter,this.smartCrop=e.smartCrop,this.useMaxDimensions=e.useMaxDimensions&&"text"!==this.itemType,this.cubeFitPosition=e.cubeFitPosition}this._groupOffset={top:0,left:0,right:0,bottom:0},this._group={},this.calcPinOffset=function(){return 0},this.resize(1)}return t.prototype.fixMetadataVerticalVideoRatio=function(t){if(t.qualities&&t.qualities[0]){var e=t.qualities,i=e[e.length-1],r=i.height,o=i.width;t.height=r,t.width=o}},t.prototype.resize=function(t){var e=1;if(!1!==t){if(t>0)e=t;else if("object"==typeof t){if(t.width)e=Math.max(1,t.width)/this.width;else if(t.height){e=Math.max(1,t.height)/this.height}}return this.width*=e,this.height*=e,this.resized=!0,this}},t.prototype.pinToCorner=function(t,e){var i=this;void 0===e&&(e=!1);var r=t.indexOf("top")>=0,o=t.indexOf("left")>=0;this.style.top=r?0:"auto",this.style.bottom=r?"auto":0,this.style.left=o?0:"auto",this.style.right=o?"auto":0,this.pin=t,this.isPinnedTop=r,this.isPinnedLeft=o,this.pinAfter=e,this.pinAfterType=r?"top":o?"left":"",this.calcPinOffset=function(t,e){if(i.pinAfter){if(i.pin===e){var r=i.imageMargin/2;return"top"===e?i.pinAfter.height+2*r:"left"===e?i.pinAfter.width+2*r:0}return 0}return 0}},t.prototype.setPosition=function(t){this.style.position=t},t.prototype.getPosition=function(t){return parseInt(t,10)>=0?t:"auto"},t.prototype.calcScatter=function(t){var e=this.imageMargin/2,i=this.gallerySpacing,r=t.left>0?e:i,n=this.container.galleryWidth-t.right>2*e?e:i,s=t.top>0?e:i,a=this.container.galleryHeight-t.bottom>2*e?e:i;if(!(this.rotatingScatter.length>0)){if(this.scatter>0){var l=this.scatter/100*.4;h=o.P.hashToRandomInt(this.seed+t.right+"x",-r,n);h*=this.scatter/100,h*=1-l,h+=(h>0?l*n:l*r)*Math.sign(h),h=Math.round(h);u=o.P.hashToRandomInt(this.seed+t.right+"y",-s,a);return u*=this.scatter/100,u*=1-l,u+=(u>0?l*a:l*s)*Math.sign(u),{x:h,y:u=Math.round(u)}}return{x:0,y:0}}try{var h,u,c=this.rotatingScatter.split(","),p=c[this.idx%c.length].split("/").map((function(t){return parseInt(t)})).map((function(t){return t/100})),d=p[0],m=p[1];return{x:h=d*(d>0?n:r),y:u=m*(m>0?a:s)}}catch(t){console.error("Cannot calculate rotating scatter",t)}},Object.defineProperty(t.prototype,"top",{get:function(){return this.getPosition(this.style.top)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"left",{get:function(){return this.getPosition(this.style.left)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"right",{get:function(){return this.getPosition(this.style.right)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bottom",{get:function(){return this.getPosition(this.style.bottom)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"group",{get:function(){return this._group},set:function(t){Object.assign(this._group,t)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"groupOffset",{set:function(t){Object.assign(this._groupOffset,t)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"offset",{get:function(){var t,e={top:this._groupOffset.top+(this.isPinnedTop?this.calcPinOffset(this._group.height,"top"):this._group.height-this.outerHeight)||0,left:this._groupOffset.left+(this.isPinnedLeft?this.calcPinOffset(this._group.width,"left"):this._group.width-this.outerWidth)||0},i=this.dimensions,r=i.fixTop,o=void 0===r?0:r,n=i.fixLeft,s=void 0===n?0:n,a=i.fixRight,l=void 0===a?0:a,h=i.fixBottom,u=void 0===h?0:h;if(e.innerTop=o,e.innerLeft=s,e.innerRight=l,e.innerBottom=u,e.right=e.left+this.width,e.bottom=e.top+this.height,this.scatter>0||(null===(t=this.rotatingScatter)||void 0===t?void 0:t.length)>0){var c=this.calcScatter(e),p=c.x,d=c.y;e.left+=p,e.top+=d,e.right=e.left+this.width,e.bottom=e.top+this.height}return e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this.dto.id||this.dto.photoId||this.dto.itemId},set:function(t){this.dto.itemId=this.dto.photoId=this.dto.id=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hash",{get:function(){return this.dto.hash||this.dto.mediaUrl||this.dto.id},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"seed",{get:function(){return this.dto.seed||o.P.hashToInt(this.hash)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"metadata",{get:function(){return this.dto.metadata||this.dto.metaData||{}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemType",{get:function(){return this.metadata.type||"image"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxWidth",{get:function(){return this.dto.width||this.dto.w},set:function(t){this.dto.width=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"outerWidth",{get:function(){return this.width+2*this.margins},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"infoWidth",{get:function(){return this.Group?this.Group.infoWidth:0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"orgWidth",{get:function(){return this.style.orgWidth||this.dto.width||this.dto.w||1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){var t;return t=this.cubeImages&&this.ratio>=this.cropRatio?this.style.cubedWidth||this.orgHeight*this.cropRatio:this.orgWidth,Math.max(t,1)},set:function(t){this.style.cubedWidth=this.style.orgWidth=this.style.width=Math.max(1,t);var e=this.dimensions,i=e.fixLeft,r=void 0===i?0:i,o=e.fixRight,n=void 0===o?0:o;this.style.innerWidth=this.style.width-r-n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"outerHeight",{get:function(){return this.height+2*this.margins},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"orgHeight",{get:function(){return this.style.orgHeight||this.dto.height||this.dto.h||1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){var t;return t=this.cubeImages&&this.ratio=this.cropRatio;e?o(n,this.ratio):this.useMaxDimensions&&(this.width>this.maxWidth||this.height>this.maxHeight)&&(this.cubeImages?o(!n,this.cropRatio):o(!n,this.ratio));var s={fixTop:(this.height-r)/2,fixLeft:(this.width-i)/2,fixRight:(this.width-i)/2,fixBottom:(this.height-r)/2};switch(this.cubeFitPosition){case"TOP":s.fixTop=0,s.fixBottom*=2;break;case"BOTTOM":s.fixTop*=2,s.fixBottom=0;break;case"LEFT":s.fixLeft=0,s.fixRight*=2;break;case"RIGHT":s.fixLeft*=2,s.fixRight=0}return s},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cropRatio",{get:function(){var t,e=this;if(this.rotatingCropRatio)t=this.rotatingCropRatio;else if(this.rotatingCropRatios&&this.rotatingCropRatios.length>0){var i=String(this.rotatingCropRatios).split(",");t=this.rotatingCropRatio=i[this.idx%i.length]}if(t||"function"!=typeof this._cropRatio||(t=this._cropRatio()),!t&&this.cropOnlyFill&&"fit"===this.cubeType&&(t=this.ratio),t||(t=this._cropRatio||this.ratio),null!==this.dynamicCropRatios&&"string"==typeof t){if(!this.dynamicCropRatios){var r=/^\d*\.?\d*(%|px)\/\d*\.?\d*(%|px)$/.exec(t);this.dynamicCropRatios=r?t.split("/").map((function(t,e){return t.indexOf("%")>0?{type:"%",val:parseFloat(t.replace("%",""))/100,dim:0===e?"galleryWidth":"galleryHeight"}:{type:"px",val:parseInt(t.replace("px",""))}})):null}if(this.dynamicCropRatios){var o=this.dynamicCropRatios.map((function(t){if("%"===t.type){var i=e.container[t.dim]+("galleryHeight"===t.dim?e.imageMargin/2:0);return t.val*i-e.imageMargin}return t.val}));t=o[0]/o[1]}}return t=Number(t),!0===this.smartCrop&&(t=this.isPortrait?Math.min(t,1/t):Math.max(t,1/t)),"min"===this.cubeType?t=Math.max(t,this.orgRatio):"max"===this.cubeType&&(t=Math.min(t,this.orgRatio)),t},set:function(t){"number"==typeof this._cropRatio&&(this._cropRatio=t,this.style.cubedHeight=this.style.cubedWidth=0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"orientation",{get:function(){return this.ratio<.999?"portrait":"landscape"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPortrait",{get:function(){return"portrait"===this.orientation},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLandscape",{get:function(){return"landscape"===this.orientation},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ratio",{get:function(){return this.orgRatio||(this.orgRatio=this.orgWidth/this.orgHeight),this.orgRatio},set:function(t){this.orgRatio=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"roundedStyle",{get:function(){return(0,r.__assign)((0,r.__assign)({},this.style),{width:Math.round(this.style.width),height:Math.round(this.style.height)})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"scheme",{get:function(){return{id:this.id,idx:this.idx,inGroupIdx:this.inGroupIdx,dto:this.dto,type:this.type,style:this.style,roundedStyle:this.roundedStyle,width:this.width,maxWidth:this.maxWidth,outerWidth:this.outerWidth,infoWidth:this.infoWidth,margins:this.margins,ratio:this.ratio,dimensions:this.dimensions,cropRatio:this.cropRatio,isCropped:this.cubeImages,cropType:this.cubeType,height:this.height,maxHeight:this.maxHeight,outerHeight:this.outerHeight,infoHeight:this.infoHeight,group:this.group,offset:this.offset,groupOffset:this._groupOffset,orientation:this.orientation,isPortrait:this.isPortrait,isLandscape:this.isLandscape,visibility:this.visibility}},enumerable:!1,configurable:!0}),t}()},22389:function(t,e,i){var r=i(7767),o=i(24386),n=i(23744),s=i(98350),a=i(69995),l=i(20733),h=function(){function t(t){this.ready=!1,this.pointer=0,this.layoutItems=[],this.findNeighborItem=this.findNeighborItem.bind(this),this.updateParams(t),!1!==this.createLayoutOnInit&&this.createLayout(t)}return t.prototype.updateParams=function(t){this.srcItems=t.items,this.styleParams=r.P.addDefaultStyleParams(t.styleParams),this.container=r.P.convertContainer(t.container,this.styleParams);var e=t.options||{};this.useExistingLayout=!!e.useExistingLayout,this.createLayoutOnInit=e.createLayoutOnInit,this.showAllItems=!!e.showAllItems||!!t.showAllItems,this.useLayoutStore=!!e.useLayoutStore},t.prototype.verifyGalleryState=function(){if(!this.container.galleryWidth)throw this.ready=!1,new Error("Layouter: cannot create layout, galleryWidth is undefined or 0");if(!this.styleParams.targetItemSize)throw this.ready=!1,new Error("Layouter: cannot create layout, targetItemSize is undefined or 0")},t.prototype.calcNumberOfColumns=function(t,e){var i=1;if(this.styleParams.isVertical)if(this.styleParams.fixedColumns>0)i=this.styleParams.fixedColumns;else{var r=t/e,o=[Math.floor,Math.ceil],n=o.map((function(t){return t(r)})).map((function(e){return Math.round(t/e)})).map((function(t){return Math.abs(e-t)}));i=(0,o[n.indexOf(Math.min.apply(Math,n))])(r)||1}else i=1;return i},t.prototype.findShortestColumn=function(t,e){var i=t[0];if(this.styleParams.placeGroupsLtr)i=t[e%t.length];else for(var r=-1,o=0,n=t;o0){if(this.useLayoutStore)Object.assign(this,l.Z.layout);else if(this.styleParams.isVertical){this.groups.slice(-3).forEach((function(e){var i=t.columns[e.columnIdx];i&&(i.height-=e.totalHeight,i.groups.splice(-1,1)),t.groups.splice(-1,1),e.realItems.forEach((function(){t.layoutItems.splice(-1,1),t.pointer--})),t.groupIdx--}))}else{if(1===this.scrollDirection){this.groups.slice(-1).forEach((function(e){var i=t.columns[0];i&&i.groups.splice(-1,1);var r=t.strips[0];r&&(r.setWidth(r.width-e.width),r.ratio=r.width/r.height,r.groups.splice(-1,1),t.strip=r),t.strips=[],t.groups.splice(-1,1),e.realItems.forEach((function(){t.layoutItems.splice(-1,1),t.pointer--})),t.groupIdx--})),this.galleryHeight=0}else{var e=this.strips.slice(-2);e&&(e.forEach((function(e){e&&(t.strips.splice(-1,1),e.groups.forEach((function(e){t.groups.splice(-1,1),e.items.forEach((function(){t.layoutItems.splice(-1,1),t.pointer--})),t.groupIdx--})))})),this.galleryHeight=this.strips.reduce((function(t,e){return t+e.height}),0),this.strip=new s.D({idx:this.strips.length+1,container:this.container,groupsPerStrip:this.styleParams.groupsPerStrip,scrollDirection:this.styleParams.scrollDirection,targetItemSize:this.targetItemSize}))}this.groupItems=[]}this.item={},this.pointer=Math.max(0,this.pointer),this.maxLoops=10*this.srcItems.length}else{if(this.pointer=0,this.firstGroup=!1,this.layoutItems=[],this.groups=[],this.strips=[],this.styleParams.forceFullHeight)this.targetItemSize=Math.sqrt(this.container.galleryHeight*this.container.galleryWidth/this.srcItems.length);else{var i=void 0;i="function"==typeof this.styleParams.targetItemSize?this.styleParams.targetItemSize():this.styleParams.targetItemSize,this.targetItemSize=Math.floor(i)+Math.ceil(2*(this.styleParams.imageMargin/2-this.styleParams.layoutParams.gallerySpacing))}this.galleryWidth=Math.floor(this.container.galleryWidth),this.maxGroupSize=this.getMaxGroupSize(),this.groupIdx=0,this.item={},this.groupItems=[],this.group={},this.bounds=this.container.bounds||{},this.strip=new s.D({idx:1,container:this.container,groupsPerStrip:this.styleParams.groupsPerStrip,scrollDirection:this.styleParams.scrollDirection,targetItemSize:this.targetItemSize}),this.galleryHeight=0,this.numOfCols=this.calcNumberOfColumns(this.galleryWidth,this.targetItemSize),this.targetItemSize=this.styleParams.isVertical?Math.floor(this.galleryWidth/this.numOfCols):this.targetItemSize;var r=this.styleParams,o=r.columnWidths,n=r.externalInfoWidth,h=r.imageMargin,u=this.styleParams.layoutParams.cropRatio,c=!1;if(o&&o.length>0){for(c=o.split(",").map(Number);c.length1?n:n*r)||0;return r-=s,d=d||(t.targetItemSize-s-h)/u+h,new a.s(i,r,o,d,s)})),this.maxLoops=10*this.srcItems.length}},t.prototype.createLayout=function(t){for(void 0!==t&&this.updateParams(t),this.verifyGalleryState(),this.prepareLayoutParams();this.srcItems[this.pointer];){if(6===this.imagesLeft&&this.saveExistingLayout(),this.maxLoops--,this.maxLoops<=0)return console.error("Cannot create layout, maxLoops reached!!!"),!1;if(this.item=new o.c({idx:this.pointer,inGroupIdx:this.groupItems.length+1,scrollTop:this.galleryHeight,dto:this.srcItems[this.pointer],container:this.container,styleParams:this.styleParams}),this.layoutItems[this.pointer]=this.item,this.groupItems.push(this.item),this.groupItems.length=0;e--){if(this.items[e].offset.top0&&se}));break;default:i=n(o.offset.right,o.offset.top+o.height/2,(function(t,e,i){return i>t}))}return i.idx>=0?i.idx:(console.warn("Could not find offset for itemIdx",t,e),t)},t.prototype.getMaxGroupSize=function(){var t=1;try{var e="string"==typeof this.styleParams.groupTypes&&this.styleParams.groupTypes.length>0?this.styleParams.groupTypes.split(","):this.styleParams.groupTypes;t=e.length>0?e.reduce((function(t,e){return Math.max(t,parseInt(e))}),1):Number(e),t=Math.min(t,this.styleParams.groupSize)}catch(e){console.error("couldn't calculate max group size - returing 3 (?)",e),t=3}return t},Object.defineProperty(t.prototype,"isLastImage",{get:function(){return!this.srcItems[this.pointer+1]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLastImages",{get:function(){return!this.srcItems[this.pointer+1]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imagesLeft",{get:function(){return this.srcItems.length-this.pointer-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"items",{get:function(){return this.layoutItems},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"scheme",{get:function(){return{items:this.items.map((function(t){return t.scheme})),groups:this.groups.map((function(t){return t.scheme})),strips:this.strips.map((function(t){return t.scheme})),columns:this.columns.map((function(t){return t.scheme})),height:this.height,width:this.width}},enumerable:!1,configurable:!0}),t}();e.Z=h},20733:function(t,e,i){var r=i(31191),o=function(){function t(){}return Object.defineProperty(t.prototype,"layout",{get:function(){return this._layout},set:function(t){this._layout=(0,r.__assign)({},t)},enumerable:!1,configurable:!0}),t}();e.Z=new o},98350:function(t,e,i){i.d(e,{D:function(){return r}});var r=function(){function t(t){this.ratio=0,this.groups=[],this.width=0,this.height=0,this.isFullWidth=!0,this.idx=t.idx,this.groupsPerStrip=t.groupsPerStrip,this.scrollDirection=t.scrollDirection,this.targetItemSize=t.targetItemSize,this.container=t.container}return t.prototype.addGroup=function(t){this.hasGroups&&(this.lastGroup.isLastGroup=!1),this.groups.push(t),t.stripIdx=this.idx,t.Strip=this,this.lastGroup.isLastGroup=!0,this.lastGroup.stripWidth=this.height*this.ratio},t.prototype.markAsIncomplete=function(){this.isFullWidth=!1,this.lastGroup.isLastGroup=!1},t.prototype.canRemainIncomplete=function(){return!(this.groupsPerStrip>0)&&1.5*this.targetItemSize0)return this.groups.length>=r;var s,a=this.container.galleryWidth;if(1===o)s=!1;else{var l=a/(this.ratio+t.ratio)-n,h=a/this.ratio-n;(s=!isNaN(l)&&!isNaN(h)&&(h<0||l<0&&Math.abs(h)0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastGroup",{get:function(){return this.groups[this.groups.length-1]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"scheme",{get:function(){return{idx:this.idx,groups:this.groups.map((function(t){return t.scheme})),width:this.width,height:this.height,ratio:this.ratio,isFullWidth:this.isFullWidth}},enumerable:!1,configurable:!0}),t}()},7767:function(t,e,i){i.d(e,{P:function(){return s}});var r=i(31191),o=i(17370),n=i(71281),s=new(function(){function t(){this._hash2int={}}return t.prototype.stripSlashes=function(t){var e="";return"string"==typeof t&&(e=t.replace(/\\\//g,"/").replace(/\\'/g,"'").replace(/\\"/g,'"').replace(/\\0/g,"\0").replace(/\\\\/g,"\\")),e},t.prototype.parseStringObject=function(t){if("string"!=typeof t)return t;var e=this.stripSlashes(t);if("string"==typeof t&&/^[\],:{}\s]*$/.test(e.replace(/\\["\\\/bfnrtu]/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))try{return JSON.parse(e)}catch(t){}return e},t.prototype.hashToInt=function(t,e,i){var r=0;if(void 0===t||0===t.length)return r;if(!this._hash2int[t]){for(var o=0;o=0&&!(t.galleryWidth>=0)&&(i.galleryWidth=t.width+2*((e.imageMargin/2||0)-(e.layoutParams.gallerySpacing||0)),delete i.width),t.height>=0&&!(t.galleryHeight>=0)&&(i.galleryHeight=t.height+((e.imageMargin/2||0)-(e.layoutParams.gallerySpacing||0)),delete i.height),e.externalInfoHeight>=0&&1===e.scrollDirection&&(i.galleryHeight-=e.externalInfoHeight),i},t}())}}]); //# sourceMappingURL=5938.chunk.min.js.map