"use strict";(("undefined"!=typeof self?self:this).webpackJsonp__wix_communities_blog_ooi=("undefined"!=typeof self?self:this).webpackJsonp__wix_communities_blog_ooi||[]).push([[2585],{57827:(t,e,i)=>{i.d(e,{KG:()=>o,Ox:()=>s,pY:()=>n,vX:()=>r});var r="specs.wixBlog.FeedMoreActionsFix",o="specs.wixBlog.HashtagPageUseFeedPage",n="specs.wixBlog.RicosEmbedButtons",s="specs.wixBlog.UseLayoutFixer"},45440:(t,e,i)=>{i.d(e,{$:()=>o});var r=i(93523);function o(t){var e=(0,r.YO)(t),i="(galleryEle) => {\n const computedStyle = window.getComputedStyle(galleryEle);\n const computedStyles = {};\n // search css variables to query\n const cssVariables = [];\n const stylesheets = document.styleSheets;\n for (let i = 0; i < stylesheets.length; i++) {\n try {\n const rules = stylesheets[i].rules || stylesheets[i].cssRules;\n for (let j = 0; j < rules.length; j++) {\n const rule = rules[j];\n const style = rule.style;\n if (style) {\n for (let k = 0; k < style.length; k++) {\n const prop = style[k];\n if (prop.startsWith('--')) {\n if (prop.includes('ProGallery-')) {\n cssVariables.push(prop);\n }\n }\n }\n }\n }\n } catch (e) {\n }\n }\n const cssVariablesMap = cssVariables.map((item) => {\n return {\n name: item,\n value: computedStyle.getPropertyValue(item),\n }\n }).filter((item) => item.value);\n // get computed styles\n for (let i = 0; i < cssVariablesMap.length; i++) {\n computedStyles[cssVariablesMap[i].name] = cssVariablesMap[i].value;\n }\n const options = Object.entries(computedStyles).reduce((res, [key, value]) => {\n const keyNameStart = key.indexOf('ProGallery-') + 'ProGallery-'.length;\n const keyName = key.substring(keyNameStart);\n res[keyName] = JSON.parse(value);\n return res;\n }, {});\n const optionsStr = Object.entries({...".concat(JSON.stringify(e),",...options})\n .map(([key, value]) => ([key, JSON.stringify(value)]))\n .filter(([key, value]) => key.includes('layoutParams_'))\n .map((keyval) => keyval.join(\":\")).join('|');\n return optionsStr;\n }");return"(ele) => {\n const mainFunc = ".concat(i,";\n return mainFunc(ele);\n }")}},73459:(t,e,i)=>{i.d(e,{v:()=>r.v});var r=i(71581)},71581:(t,e,i)=>{i.d(e,{v:()=>l});var r=i(60751),o=i.n(r),n=i(62688),s=i.n(n),a=i(33006),l=function(t){var e;try{var i="undefined"!=typeof window?((null===(e=window.document.getElementById("layout-fixer-style-"+t.id))||void 0===e?void 0:e.href)||"").replace(/^.*\/\/[^/]+/,""):"";return o().createElement("div",{id:"layout-fixer-"+t.id+t.isPrerenderMode,key:"layout-fixer-"+t.id+t.isPrerenderMode,style:{display:"none"}},t.isPrerenderMode&&o().createElement("link",{href:i,rel:"stylesheet",id:"layout-fixer-style-"+t.id}),o().createElement("script",{dangerouslySetInnerHTML:{__html:"try {\n window.requestAnimationFrame(function() {\n setTimeout(() => {\n ".concat((0,a.I)(t),"\n }, 0);\n });\n } catch (e) {\n console.warn('Cannot set layoutFixer css', e);\n }")}}))}catch(t){return o().createElement("div",{id:"layoutFixerErrors",style:{display:"none"}},t.toString())}};l.defaultProps={measureContainerId:""},l.propTypes={isPrerenderMode:s().bool,id:s().string,items:s().array,options:s().object,useNativeLayoutFixer:s().bool,containerPostProcess:s().shape({width:s().shape({percentage:s().number,addition:s().number}),height:s().shape({percentage:s().number,addition:s().number}),ios:s().shape({width:s().shape({percentage:s().number,addition:s().number}),height:s().shape({percentage:s().number,addition:s().number})})}),measureContainerId:s().string}},33006:(t,e,i)=>{i.d(e,{I:()=>s});var r=i(45440),o=i(52326),n=i(81326);function s(t){var e,i,s,a,l,h,u,c,p,d,m,g,f,y,v,b,A,I,S,_,w,P,C,T,x,E,O,L,R,M,D,H,k,N,G,z,W=t.useNativeLayoutFixer,B=function(t){var e=t.items,i=t.rawOptions,s=void 0===i?t.options:i,a=t.useNativeLayoutFixer,l=t.customCreateGetOptionsFunc,h=e.slice(0,20).map((function(t){return"".concat((0,n.r)(t.mediaUrl),"_").concat(t.width||t.metaData.width,"_").concat(t.height||t.metaData.height)})).join("|");if(a){var u="function"==typeof l?l(s):(0,r.$)(s);return{hrefStr:"/_serverless/pro-gallery-native-layout-fixer/layoutCssNative?id=".concat(t.id,"&items=").concat(h,"&container="),getOptions:u}}var c=Object.entries((0,n.f)(s,o.s)).map((function(t){return t.join(":")})).join("|");return{hrefStr:"/_serverless/pro-gallery-css-v4-server/layoutCss?ver=2&id=".concat(t.id,"&items=").concat(h,"&container="),getOptions:"() => ".concat(JSON.stringify(c))}}(t),V=B.hrefStr,F=B.getOptions,U=t.measureContainerId||"pro-gallery-"+t.id,j=function(e){return"\n ".concat(e,"\n var isVertical = options.includes('layoutParams_structure_scrollDirection:\"VERTICAL\"');\n var layoutFixerUrl = '").concat(V,"' + pgMeasures.top + '_' + pgMeasures.width + '_' + pgMeasures.height + '_' + window.innerHeight + '&options=' + options;\n document.getElementById('").concat("layout-fixer-style-"+t.id,"').setAttribute('href', encodeURI(layoutFixerUrl));\n ")};return j(W?'\n var ele = document.getElementById("'.concat(t.id,'"), nativeRect = ele.getBoundingClientRect();\n var pgMeasures = {top: nativeRect.top, width: nativeRect.width, height: Number(getComputedStyle(ele).getPropertyValue("height").replace("px", ""))};\n var options = (').concat(F,")(ele);\n "):"\n var ele = document.getElementById('".concat(U,"');\n var pgMeasures = ele.getBoundingClientRect();\n var options = (").concat(F,")(ele);\n var width = pgMeasures.width;\n var height = pgMeasures.height;\n\n var isIOS = /iPad|iPhone|iPod/.test(navigator?.userAgent);\n if(isIOS) {\n width = ").concat((null===(s=null===(i=null===(e=null==t?void 0:t.containerPostProcess)||void 0===e?void 0:e.ios)||void 0===i?void 0:i.width)||void 0===s?void 0:s.percentage)?"width * ".concat(null===(l=null===(a=null==t?void 0:t.containerPostProcess)||void 0===a?void 0:a.ios)||void 0===l?void 0:l.width.percentage):"width",";\n width = ").concat((null===(c=null===(u=null===(h=null==t?void 0:t.containerPostProcess)||void 0===h?void 0:h.ios)||void 0===u?void 0:u.width)||void 0===c?void 0:c.addition)?"width + (".concat(null===(d=null===(p=null==t?void 0:t.containerPostProcess)||void 0===p?void 0:p.ios)||void 0===d?void 0:d.width.addition,")"):"width",";\n height = ").concat((null===(f=null===(g=null===(m=null==t?void 0:t.containerPostProcess)||void 0===m?void 0:m.ios)||void 0===g?void 0:g.height)||void 0===f?void 0:f.percentage)?"height * ".concat(null===(b=null===(v=null===(y=null==t?void 0:t.containerPostProcess)||void 0===y?void 0:y.ios)||void 0===v?void 0:v.height)||void 0===b?void 0:b.percentage):"height",";\n height = ").concat((null===(S=null===(I=null===(A=null==t?void 0:t.containerPostProcess)||void 0===A?void 0:A.ios)||void 0===I?void 0:I.height)||void 0===S?void 0:S.addition)?"height + (".concat(null===(P=null===(w=null===(_=null==t?void 0:t.containerPostProcess)||void 0===_?void 0:_.ios)||void 0===w?void 0:w.height)||void 0===P?void 0:P.addition,")"):"height",";\n } else {\n width = ").concat((null===(T=null===(C=null==t?void 0:t.containerPostProcess)||void 0===C?void 0:C.width)||void 0===T?void 0:T.percentage)?"width * ".concat(null===(x=t.containerPostProcess)||void 0===x?void 0:x.width.percentage):"width",";\n width = ").concat((null===(O=null===(E=null==t?void 0:t.containerPostProcess)||void 0===E?void 0:E.width)||void 0===O?void 0:O.addition)?"width + (".concat(null===(L=t.containerPostProcess)||void 0===L?void 0:L.width.addition,")"):"width",";\n height = ").concat((null===(M=null===(R=null==t?void 0:t.containerPostProcess)||void 0===R?void 0:R.height)||void 0===M?void 0:M.percentage)?"height * ".concat(null===(H=null===(D=null==t?void 0:t.containerPostProcess)||void 0===D?void 0:D.height)||void 0===H?void 0:H.percentage):"height",";\n height = ").concat((null===(N=null===(k=null==t?void 0:t.containerPostProcess)||void 0===k?void 0:k.height)||void 0===N?void 0:N.addition)?"height + (".concat(null===(z=null===(G=null==t?void 0:t.containerPostProcess)||void 0===G?void 0:G.height)||void 0===z?void 0:z.addition,")"):"height",";\n }\n\n pgMeasures = { top: pgMeasures.top, width, height };\n"))}},81326:(t,e,i)=>{i.d(e,{f:()=>r,r:()=>o});var r=function(t,e){return Object.keys(t).filter((function(t){return e.indexOf(t)>=0})).reduce((function(e,i){return e[i]=t[i],e}),{})},o=function(t){void 0===t&&(t="");for(var e=0,i=0;i{i.d(e,{s:()=>r});var r=["isRTL","cubeType","cubeImages","arrowsSize","arrowsPosition","cubeRatio","cropRatio","layoutParams_cropRatio","collageAmount","collageDensity","columnsWidth","cropOnlyFill","chooseBestGroup","externalInfoHeight","externalInfoWidth","fixedColumns","groupsPerStrip","galleryMargin","layoutParams_gallerySpacing","groupTypes","groupSize","isVertical","imageMargin","minItemSize","scrollDirection","placeGroupsLtr","rotatingGroupTypes","layoutParams_repeatingGroupTypes","rotatingCropRatios","smartCrop","scatter","smartCrop","targetItemSize","hasThumbnails","thumbnailSize","thumbnailSpacings","galleryThumbnailsAlignment","isSlideshow","galleryLayout","slideshowInfoSize","layoutParams_structure_galleryRatio_value","gallerySizeType","gallerySizePx","gallerySize","enableInfiniteScroll","imageInfoType","textsHorizontalPadding","gridStyle","numberOfImagesPerRow","numberOfImagesPerCol","calculateTextBoxHeightMode","textBoxHeight","textsVerticalPadding","titlePlacement","textBoxWidthPercent","calculateTextBoxWidthMode","useMaxDimensions"]},58901:(t,e,i)=>{i.d(e,{A:()=>o});var r=i(77017);const 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.A.placements.SHOW_ON_HOVER,hoveringBehaviour:r.A.infoBehaviourOnHover.APPEARS,isAutoSlideshow:!1,slideshowLoop:!1,playButtonForAutoSlideShow:!1,pauseAutoSlideshowOnHover:!0,allowSlideshowCounter:!1,autoSlideshowInterval:4,arrowsSize:23,slideshowInfoSize:200,imageLoadingMode:r.A.loadingMode.BLUR,scrollAnimation:r.A.scrollAnimations.NO_EFFECT,overlayAnimation:r.A.overlayAnimations.NO_EFFECT,imageHoverAnimation:r.A.imageHoverAnimations.NO_EFFECT,itemBorderWidth:0,itemBorderRadius:0,itemEnableShadow:!1,itemShadowBlur:20,loadMoreAmount:"all",itemShadowDirection:135,itemShadowSize:10,imageInfoType:r.A.infoType.NO_BACKGROUND,textBoxBorderRadius:0,textBoxBorderWidth:0,textBoxHeight:200,textImageSpace:10,scrollDirection:0,slideAnimation:r.A.slideAnimations.SCROLL,autoSlideshowType:r.A.autoSlideshowTypes.INTERVAL,autoSlideshowContinuousSpeed:200}},8817:(t,e,i)=>{i.d(e,{i:()=>a});var r=i(77017),o=i(58901),n=i(93523),s=(0,n.MF)(o.A,{layoutParams:{repeatingGroupTypes:"",navigationArrows:{type:r.A.arrowsType.DEFAULT_ARROW,container:{type:r.A.arrowsContainerStyleType.SHADOW,backgroundColor:"rgba(0,0,0,0)",borderRadius:0},mouseCursorContainerMaxWidth:100},thumbnails:{position:r.A.thumbnailsPosition.OUTSIDE_GALLERY},structure:{galleryRatio:{value:0,includeExternalInfo:!1}}},behaviourParams:{item:{content:{magnificationValue:2},secondaryMedia:{trigger:r.A.secondaryMediaTrigger.OFF,behaviour:r.A.secondaryMediaBehaviour.APPEARS}}},galleryLayout:-1,gallerySizePx:0,gallerySizeRatio:0,gallerySizeType:r.A.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.A.itemClick.NOTHING,slideAnimation:r.A.slideAnimations.SCROLL,scrollDuration:400,arrowsPosition:r.A.arrowsPosition.ON_GALLERY,arrowsVerticalPosition:r.A.arrowsVerticalPosition.ITEM_CENTER,arrowsPadding:23,thumbnailSize:120,magicLayoutSeed:1,imagePlacementAnimation:r.A.imagePlacementAnimations.NO_EFFECT,calculateTextBoxWidthMode:r.A.textBoxWidthCalculationOptions.PERCENT,textBoxWidth:200,textBoxWidthPercent:50,loadMoreButtonText:"",videoSpeed:"1",showVideoControls:!1,shouldIndexDirectShareLinkInSEO:!0,slideTransition:r.A.slideTransition.ease,useMaxDimensions:!1,enableVideoPlaceholder:!0,overlayPosition:r.A.overlayPositions.LEFT,overlaySize:100,overlaySizeType:r.A.overlaySizeType.PERCENT,overlayPadding:0,cubeFitPosition:r.A.cubeFitPosition.MIDDLE,magnificationLevel:2});function a(t){var e=(0,n.YO)(s),i=(0,n.YO)(t),r=Object.assign({},e,i);return Object.keys(r).forEach((function(t){void 0===r[t]&&(r[t]=s[t])})),(0,n.Mv)(r)}},8853:(t,e,i)=>{i.d(e,{A:()=>n});var r=i(77017),o=i(45841);const n=new(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,this.fixHeightForHorizontalGalleryIfNeeded()},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)};return t.container.externalScrollBase&&(e.scrollBase+=t.container.externalScrollBase),t.options.hasThumbnails&&t.options.layoutParams.thumbnails.position===r.A.thumbnailsPosition.OUTSIDE_GALLERY&&(e.galleryHeight-=t.getThumbnailHeightDelta(),e.galleryWidth-=t.getThumbnailWidthDelta()),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.A.arrowsPosition.OUTSIDE_GALLERY&&t.options.scrollDirection===r.A.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.A.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.prototype.getThumbnailSize=function(){return this.options.thumbnailSize+this.options.layoutParams.gallerySpacing+3*this.options.thumbnailSpacings},t.prototype.getThumbnailHeightDelta=function(){switch(this.options.galleryThumbnailsAlignment){case"top":case"bottom":return this.getThumbnailSize();case"left":case"right":return 0}},t.prototype.getThumbnailWidthDelta=function(){switch(this.options.galleryThumbnailsAlignment){case"top":case"bottom":return 0;case"left":case"right":return this.getThumbnailSize()}},t.prototype.fixHeightForHorizontalGalleryIfNeeded=function(){if(this.options.scrollDirection===r.A.scrollDirection.HORIZONTAL&&this.options.layoutParams.structure.galleryRatio.value>0)if(this.options.hasThumbnails&&this.options.layoutParams.thumbnails.position===r.A.thumbnailsPosition.OUTSIDE_GALLERY)switch(this.options.galleryThumbnailsAlignment){case"top":case"bottom":this.container.height=this.container.width*this.options.layoutParams.structure.galleryRatio.value+this.getThumbnailHeightDelta();break;case"left":case"right":this.container.height=(this.container.width-this.getThumbnailWidthDelta())*this.options.layoutParams.structure.galleryRatio.value}else this.container.height=this.container.width*this.options.layoutParams.structure.galleryRatio.value,!this.options.layoutParams.structure.galleryRatio.includeExternalInfo&&o.A.isRelevant(this.options)&&(this.container.height+=this.options.externalInfoHeight)},t}())},67462:(t,e,i)=>{i.d(e,{Ay:()=>C,Xl:()=>A,Zf:()=>S,nS:()=>I,ow:()=>w,rs:()=>b});var r=i(34629),o=i(69143),n=i(32669),s=i(15218),a=i(87270),l=i(23151),h=i(59494),u=i(38414),c=i(99715),p=i(19056),d=i(64695),m=i(77017),g=i(93523),f=i(19387),y=i(4342),v=i(33146),b=function(t,e){return void 0===e&&(e=!1),t.gallerySizeType===c.A.PIXELS&&t.gallerySizePx>0?t.gallerySizePx:t.gallerySizeType===c.A.RATIO&&t.gallerySizeRatio>0?(n.A&&n.A.innerWidth||980)*(t.gallerySizeRatio/100):e||t.gallerySize},A=function(t){var e=(0,r.__assign)({},t);return e.fixedColumns=0,(t.scrollDirection===m.A.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},I=function(t){var e=(0,r.__assign)({},t);return e.gridStyle=e.isVertical?t.gridStyle:m.A.gridStyle.FIT_TO_SCREEN,e},S=function(t){var e=(0,r.__assign)({},t);if(!o.A.isUndefined(t.numberOfImagesPerCol)&&t.scrollDirection===m.A.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},_=function(t){var e=(0,r.__assign)({},t);return!function(t){if((0,s.D3)(t.titlePlacement)){if(m.A.isLayout("SLIDER")(t)||m.A.isLayout("PANORAMA")(t)||m.A.isLayout("COLUMN")(t))return!0;if(m.A.isLayout("MASONRY")(t)&&t.isVertical)return!0;if(m.A.isLayout("GRID")(t)&&1!==t.scrollDirection)return!0}return!1}(e)?(o.A.isUndefined(e.itemFont)||(e=P("itemFont","textDecorationTitle",e)),o.A.isUndefined(e.itemDescriptionFont)||(e=P("itemDescriptionFont","textDecorationDesc",e))):(o.A.isUndefined(e.itemFontSlideshow)||(e=P("itemFontSlideshow","textDecorationTitle",e)),o.A.isUndefined(e.itemDescriptionFontSlideshow)||(e=P("itemDescriptionFontSlideshow","textDecorationDesc",e))),e},w=function(t){var e=(0,r.__assign)({},t);return"fit"===e.cubeType&&(e.itemBorderWidth=0,e.itemBorderRadius=0,e.itemEnableShadow=!1),e},P=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};const C=function(t,e){var i=(0,r.__assign)({},t);return o.A.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=function(t){var e=(0,r.__assign)({},t);return e.gallerySizeType===c.A.PIXELS&&e.gallerySizePx>0?e.targetItemSize=e.gallerySizePx:e.gallerySizeType===c.A.RATIO&&e.gallerySizeRatio>0&&(e.targetItemSize=(n.A&&n.A.innerWidth||980)*(e.gallerySizeRatio/100)),e}(i=function(t){var e=(0,r.__assign)({},t);return e.forceMobileCustomButton&&(e.targetItemSize=Math.round(405),e.titlePlacement=s.Ay.SHOW_BELOW,e.galleryLayout=2,e.fixedColumns=1,e.numberOfImagesPerRow=1),e}(i=function(t){var e=(0,r.__assign)({},t);return e.loadMoreButtonFont&&o.A.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=function(t){var e=(0,r.__assign)({},t);return(e.scrollDirection===m.A.scrollDirection.VERTICAL||e.groupSize>1||!e.cubeImages)&&(e.slideAnimation=u.A.SCROLL),e}(i=function(t){var e=(0,r.__assign)({},t);return e.scrollDirection===m.A.scrollDirection.VERTICAL&&(e.slideshowLoop=!1),e}(i=function(t){var e=(0,r.__assign)({},t);return e.scrollDirection===m.A.scrollDirection.HORIZONTAL&&(e.isVertical=!1),e}(i=function(t){var e=(0,r.__assign)({},t);return e.arrowsPosition===p.A.OUTSIDE_GALLERY&&(e.arrowsPadding=0),e}(i=function(t){var e=(0,r.__assign)({},t);if(e.itemEnableShadow&&e.scrollDirection===m.A.scrollDirection.VERTICAL){var i=Math.max(e.layoutParams.gallerySpacing,(e.itemShadowSize||0)+(e.itemShadowBlur||0));e=(0,g.w5)(e,"layoutParams_gallerySpacing",i)}return e}(i=function(t){var e=(0,r.__assign)({},t);return e.itemEnableShadow&&e.scrollDirection===m.A.scrollDirection.HORIZONTAL&&(e.itemEnableShadow=!1),e}(i=function(t){var e=(0,r.__assign)({},t);return e.imageLoadingMode===l.A.COLOR&&e.imageLoadingWithColorMode===h.A.MAIN_COLOR&&(e.imageLoadingMode=l.A.MAIN_COLOR),e}(i=function(t){var e=(0,r.__assign)({},t);return t.EXPERIMENTALallowParallelInfos||(0,s.uF)(e.titlePlacement)||e.hoveringBehaviour===a.A.NEVER_SHOW||(e.hoveringBehaviour=a.A.APPEARS),e}(i=function(t){var e=(0,r.__assign)({},t);return m.A.isLayout("SLIDER")(e)||m.A.isLayout("COLUMN")(e)||m.A.isLayout("SLIDESHOW")(e)||(!e.isVertical||e.groupSize>1)&&(e.titlePlacement=s.Ay.SHOW_ON_HOVER),e}(i)))))))))))),i=function(t){var e=(0,r.__assign)({},t);return!0===e.cropOnlyFill&&(e.cubeImages=e.layoutParams.crop.enable=e.cubeType===d.A.CROP),e}(i=function(t){var e=(0,r.__assign)({},t);return o.A.isTouch()&&t.arrowsPosition===m.A.arrowsPosition.MOUSE_CURSOR&&v.A.isRelevant(t)&&(e.showArrows=!1),e}(i=function(t){var e=(0,r.__assign)({},t);return t.arrowsPosition===m.A.arrowsPosition.MOUSE_CURSOR&&v.A.isRelevant(t)&&(e.showVideoControls=!1),e}(i=function(t){var e=(0,r.__assign)({},t);return t.slideAnimation!==m.A.slideAnimations.FADE&&t.slideAnimation!==m.A.slideAnimations.DECK||!y.A.isRelevant(t)||(e.enableScroll=!1),e}(i=function(t){var e=(0,r.__assign)({},t);return e.allowSlideshowCounter?(e.isAutoSlideshow||(e.allowSlideshowCounter=!1),!1===m.A.isLayout("SLIDESHOW")(t)&&(e.allowSlideshowCounter=!1),e):e}(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.WC)(t)})).join(",");return(0,s.O9)(o)&&i||(e.arrowsVerticalPosition=m.A.arrowsVerticalPosition.ITEM_CENTER),e}(i=(0,f.A)(i,e)))))))}},626:(t,e,i)=>{i.d(e,{Bd:()=>s,Db:()=>p,Ff:()=>a,OV:()=>h,Si:()=>c,W9:()=>n,oX:()=>l,tl:()=>u});var r=i(34629),o=i(17352),n=[["galleryLayout",o.A.layoutParams.structure.galleryLayout],["imageMargin",o.A.layoutParams.structure.itemSpacing],["groupsPerStrip",o.A.layoutParams.groups.numberOfGroupsPerRow],["cubeImages",o.A.layoutParams.crop.enable],["smartCrop",o.A.layoutParams.crop.enableSmartCrop],["cropOnlyFill",o.A.layoutParams.crop.cropOnlyFill],["minItemSize",o.A.layoutParams.targetItemSize.minimum],["scatter",o.A.layoutParams.structure.scatter.randomScatter],["rotatingScatter",o.A.layoutParams.structure.scatter.manualScatter],["numberOfImagesPerCol",o.A.layoutParams.structure.numberOfGridRows],["collageDensity",o.A.layoutParams.groups.density],["chooseBestGroup",o.A.layoutParams.groups.groupByOrientation],["groupSize",o.A.layoutParams.groups.groupSize],["hasThumbnails",o.A.layoutParams.thumbnails.enable],["thumbnailSpacings",o.A.layoutParams.thumbnails.spacing],["thumbnailSize",o.A.layoutParams.thumbnails.size],["showArrows",o.A.layoutParams.navigationArrows.enable],["arrowsPadding",o.A.layoutParams.navigationArrows.padding],["arrowsVerticalPosition",o.A.layoutParams.navigationArrows.verticalAlignment],["arrowsSize",o.A.layoutParams.navigationArrows.size],["imageInfoType",o.A.layoutParams.info.layout],["textImageSpace",o.A.layoutParams.info.spacing],["textBoxBorderWidth",o.A.layoutParams.info.border.width],["textBoxBorderColor",o.A.layoutParams.info.border.color],["textBoxBorderRadius",o.A.layoutParams.info.border.radius]],s=[["useMaxDimensions",o.A.layoutParams.structure.enableStreching]],a=[["magnificationLevel",o.A.behaviourParams.item.content.magnificationValue],["videoLoop",o.A.behaviourParams.item.video.loop],["showVideoPlayButton",o.A.behaviourParams.item.video.enablePlayButton],["showVideoControls",o.A.behaviourParams.item.video.enableControls],["enableVideoPlaceholder",o.A.behaviourParams.item.video.enablePlaceholder],["overlayAnimation",o.A.behaviourParams.item.overlay.hoverAnimation],["overlayPosition",o.A.behaviourParams.item.overlay.position],["overlaySize",o.A.behaviourParams.item.overlay.size],["overlaySizeType",o.A.behaviourParams.item.overlay.sizeUnits],["overlayPadding",o.A.behaviourParams.item.overlay.padding],["imageHoverAnimation",o.A.behaviourParams.item.content.hoverAnimation],["imagePlacementAnimation",o.A.behaviourParams.item.content.placementAnimation],["imageLoadingMode",o.A.behaviourParams.item.content.loader],["scrollSnap",o.A.behaviourParams.gallery.horizontal.enableScrollSnap],["scrollAnimation",o.A.behaviourParams.gallery.scrollAnimation],["shouldIndexDirectShareLinkInSEO",o.A.behaviourParams.gallery.enableIndexingShareLinks],["loadMoreButtonText",o.A.behaviourParams.gallery.vertical.loadMore.text],["slideAnimation",o.A.behaviourParams.gallery.horizontal.slideAnimation],["slideTransition",o.A.behaviourParams.gallery.horizontal.slideTransition],["scrollDuration",o.A.behaviourParams.gallery.horizontal.navigationDuration],["slideshowLoop",o.A.behaviourParams.gallery.horizontal.loop],["autoSlideshowInterval",o.A.behaviourParams.gallery.horizontal.autoSlide.interval],["pauseAutoSlideshowOnHover",o.A.behaviourParams.gallery.horizontal.autoSlide.pauseOnHover],["autoSlideshowContinuousSpeed",o.A.behaviourParams.gallery.horizontal.autoSlide.speed],["allowSlideshowCounter",o.A.behaviourParams.gallery.horizontal.slideshowInfo.enableCounter],["playButtonForAutoSlideShow",o.A.behaviourParams.gallery.horizontal.slideshowInfo.enablePlayButton]],l=[["enableInfiniteScroll",o.A.behaviourParams.gallery.vertical.loadMore.enable],["allowContextMenu",o.A.behaviourParams.gallery.blockContextMenu],["enableScroll",o.A.behaviourParams.gallery.horizontal.blockScroll]],h=[["itemShadowBlur",o.A.stylingParams.itemShadowBlur],["itemShadowDirection",o.A.stylingParams.itemShadowDirection],["itemShadowOpacityAndColor",o.A.stylingParams.itemShadowOpacityAndColor],["arrowsColor",o.A.stylingParams.arrowsColor],["itemShadowSize",o.A.stylingParams.itemShadowSize],["itemEnableShadow",o.A.stylingParams.itemEnableShadow],["itemBorderRadius",o.A.stylingParams.itemBorderRadius],["itemBorderWidth",o.A.stylingParams.itemBorderWidth]];function u(t,e){for(var i=(0,r.__assign)({},t),o=0,n=e;o{i.d(e,{J:()=>l});var r=i(34629),o=i(93523),n=i(32972),s=i(17352),a=i(626);function l(t){var e,i,l,h,u,c=(h=t,u=(0,r.__assign)({},h),u=(0,a.tl)(u,(0,r.__spreadArray)([],a.W9,!0).map((function(t){return(0,r.__spreadArray)([],t,!0).reverse()}))),u=function(t){var e=t;switch((e=(0,a.Db)(e,s.A.layoutParams.navigationArrows.position,"arrowsPosition")).arrowsPosition){case"ON_GALLERY":e.arrowsPosition=0;break;case"OUTSIDE_GALLERY":e.arrowsPosition=1;break;case"MOUSE_CURSOR":e.arrowsPosition=2}return e}(u=function(t){var e,i,r=t;return(0,n.n)("SLIDESHOW")({galleryLayout:t.galleryLayout>=-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.Db)(r,s.A.layoutParams.info.height,"slideshowInfoSize")).textBoxHeight=r.slideshowInfoSize:(r=(0,a.Db)(r,s.A.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.A.layoutParams.groups.allowedGroupTypes]?e[s.A.layoutParams.groups.allowedGroupTypes].join?e[s.A.layoutParams.groups.allowedGroupTypes].join(","):"":void 0,delete e[s.A.layoutParams.groups.allowedGroupTypes],e}(u=function(t){var e=t,i=e[s.A.layoutParams.groups.repeatingGroupTypes]&&e[s.A.layoutParams.groups.repeatingGroupTypes].join(",");return e.layoutParams_repeatingGroupTypes=e.rotatingGroupTypes=i,delete e[s.A.layoutParams.groups.repeatingGroupTypes],e}(u=function(t){var e,i=t;return(i=(0,a.Db)(i,s.A.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.Db)(e,s.A.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.Db)(e,s.A.layoutParams.info.sizeUnits,"calculateTextBoxWidthMode")).calculateTextBoxWidthMode){case"PERCENT":e.calculateTextBoxWidthMode="PERCENT",(e=(0,a.Db)(e,s.A.layoutParams.info.width,"textBoxWidthPercent")).textBoxWidth=e.textBoxWidth||200;break;case"PIXEL":e.calculateTextBoxWidthMode="MANUAL",(e=(0,a.Db)(e,s.A.layoutParams.info.width,"textBoxWidth")).textBoxWidthPercent=e.textBoxWidthPercent||50}return e}(u=function(t){var e,i=t,o=i[s.A.layoutParams.crop.ratios]&&(0,r.__spreadArray)([],i[s.A.layoutParams.crop.ratios],!0),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.A.layoutParams.crop.ratios],i}(u=function(t){var e=t;return"CENTER"===(e=(0,a.Db)(e,s.A.layoutParams.crop.alignment,"cubeFitPosition")).cubeFitPosition&&(e.cubeFitPosition="MIDDLE"),e}(u=function(t){var e=t,i=e[s.A.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.A.layoutParams.targetItemSize.value],e}(u=function(t){var e=t;switch((e=(0,a.Db)(e,s.A.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.A.layoutParams.structure.numberOfColumns],delete e[s.A.layoutParams.structure.numberOfColumns],e}(u=function(t){var e=t;switch((e=(0,a.Db)(e,s.A.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.Db)(e,s.A.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.Db)(e,s.A.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.Db)(e,s.A.layoutParams.structure.scrollDirection,"scrollDirection")).scrollDirection){case"VERTICAL":e.scrollDirection=0;break;case"HORIZONTAL":e.scrollDirection=1}return e}((e=u=(0,a.Si)(u,(0,r.__spreadArray)([],a.Bd,!0).map((function(t){return(0,r.__spreadArray)([],t,!0).reverse()}))),l=e,(l=(0,a.Db)(l,s.A.layoutParams.thumbnails.alignment,"galleryThumbnailsAlignment")).galleryThumbnailsAlignment=null===(i=l.galleryThumbnailsAlignment)||void 0===i?void 0:i.toLowerCase(),u=l)))))))))))))))))),u=(0,a.tl)(u,(0,r.__spreadArray)([],a.Ff,!0).map((function(t){return(0,r.__spreadArray)([],t,!0).reverse()}))),u=function(t){var e,i=t;return(i=(0,a.Db)(i,s.A.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.A.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.A.behaviourParams.gallery.horizontal.autoSlide.behaviour],e}(u=function(t){var e,i=t;return(i=(0,a.Db)(i,s.A.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.Db)(e,s.A.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.Db)(e,s.A.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.Db)(e,s.A.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.Db)(e,s.A.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.Db)(e,s.A.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.Db)(e,s.A.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.Db)(i,s.A.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.Si)(u,(0,r.__spreadArray)([],a.oX,!0).map((function(t){return(0,r.__spreadArray)([],t,!0).reverse()}))))))))))))),u=(0,a.tl)(u,(0,r.__spreadArray)([],a.OV,!0).map((function(t){return(0,r.__spreadArray)([],t,!0).reverse()}))));return(0,r.__assign)((0,r.__assign)({},(0,o.rV)(c)),(0,o.rV)(t))}},99738:(t,e,i)=>{i.d(e,{PF:()=>h});var r=i(34629),o=i(93523),n=i(32972),s=i(17352),a=i(42489),l=i(626);function h(t){var e=(0,o.YO)(t),i=(0,a.J)(function(t){var e=(c=t,p=(0,r.__assign)({},c),p=(0,l.tl)(p,l.W9),p=function(t){var e=t;switch((e=(0,l.Db)(e,"arrowsPosition",s.A.layoutParams.navigationArrows.position))[s.A.layoutParams.navigationArrows.position]){case 0:e[s.A.layoutParams.navigationArrows.position]="ON_GALLERY";break;case 1:e[s.A.layoutParams.navigationArrows.position]="OUTSIDE_GALLERY";break;case 2:e[s.A.layoutParams.navigationArrows.position]="MOUSE_CURSOR"}return e}(p=function(t){var e=t;return delete(e=(0,n.n)("SLIDESHOW")({galleryLayout:t.galleryLayout>=-3?t.galleryLayout:t[s.A.layoutParams.structure.galleryLayout]})?(0,l.Db)(e,"slideshowInfoSize",s.A.layoutParams.info.height):(0,l.Db)(e,"textBoxHeight",s.A.layoutParams.info.height)).slideshowInfoSize,delete e.textBoxHeight,e}(p=function(t){if(void 0!==t[s.A.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.A.layoutParams.structure.gallerySpacing]=e,delete i.layoutParams_gallerySpacing,delete i.galleryMargin,i}(p=function(t){var e=t;switch((e=(0,l.Db)(e,"gridStyle",s.A.layoutParams.structure.responsiveMode))[s.A.layoutParams.structure.responsiveMode]){case 0:e[s.A.layoutParams.structure.responsiveMode]="FIT_TO_SCREEN";break;case 1:e[s.A.layoutParams.structure.responsiveMode]="SET_ITEMS_PER_ROW"}return e}(p=function(t){var e,i=t;return(i=(0,l.Db)(i,"cubeType",s.A.layoutParams.crop.method))[s.A.layoutParams.crop.method]=null===(e=i[s.A.layoutParams.crop.method])||void 0===e?void 0:e.toUpperCase(),i}(p=function(t){var e,i,o,n=t;return n=(0,l.Db)(n,"columnWidths",s.A.layoutParams.structure.columnRatios),0===(null===(e=n[s.A.layoutParams.structure.columnRatios])||void 0===e?void 0:e.length)?n[s.A.layoutParams.structure.columnRatios]=[]:n[s.A.layoutParams.structure.columnRatios]=n[s.A.layoutParams.structure.columnRatios]?(null===(i=n[s.A.layoutParams.structure.columnRatios])||void 0===i?void 0:i.split)?(0,r.__spreadArray)([],null===(o=n[s.A.layoutParams.structure.columnRatios])||void 0===o?void 0:o.split(",").map(Number),!0):n[s.A.layoutParams.structure.columnRatios]:void 0,n}(p=function(t){var e=t;switch((e=(0,l.Db)(e,"calculateTextBoxWidthMode",s.A.layoutParams.info.sizeUnits))[s.A.layoutParams.info.sizeUnits]){case"PERCENT":e[s.A.layoutParams.info.sizeUnits]="PERCENT",delete(e=(0,l.Db)(e,"textBoxWidthPercent",s.A.layoutParams.info.width)).textBoxWidth;break;case"MANUAL":e[s.A.layoutParams.info.sizeUnits]="PIXEL",delete(e=(0,l.Db)(e,"textBoxWidth",s.A.layoutParams.info.width)).textBoxWidthPercent}return e}(p=function(t){if(void 0!==t[s.A.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.A.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.Db)(e,"cubeFitPosition",s.A.layoutParams.crop.alignment))[s.A.layoutParams.crop.alignment]&&(e[s.A.layoutParams.crop.alignment]="CENTER"),e}(p=function(t){var e,i=t;switch(i[s.A.layoutParams.targetItemSize.unit]){case"PIXEL":e="gallerySizePx";break;case"SMART":e="gallerySize";break;case"PERCENT":e="gallerySizeRatio"}return delete(i=(0,l.Db)(i,e,s.A.layoutParams.targetItemSize.value)).gallerySizePx,delete i.gallerySizeRatio,delete i.gallerySize,i}(p=function(t){var e=t;switch((e=(0,l.Db)(e,"gallerySizeType",s.A.layoutParams.targetItemSize.unit))[s.A.layoutParams.targetItemSize.unit]){case"px":e[s.A.layoutParams.targetItemSize.unit]="PIXEL";break;case"ratio":e[s.A.layoutParams.targetItemSize.unit]="PERCENT";break;case"smart":e[s.A.layoutParams.targetItemSize.unit]="SMART"}return e}(p=function(t){if(void 0!==t[s.A.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.A.layoutParams.structure.numberOfColumns]=o,delete e.fixedColumns,delete e.numberOfImagesPerRow,e}(p=function(t){var e;if(void 0!==t[s.A.layoutParams.groups.allowedGroupTypes])return t;var i=t;return i[s.A.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.A.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.A.layoutParams.groups.repeatingGroupTypes]=e,delete i.layoutParams_repeatingGroupTypes,delete i.rotatingGroupTypes,i}(p=function(t){var e=t;switch((e=(0,l.Db)(e,"placeGroupsLtr",s.A.layoutParams.structure.groupsOrder))[s.A.layoutParams.structure.groupsOrder]){case!0:e[s.A.layoutParams.structure.groupsOrder]="LEFT_TO_RIGHT";break;case!1:e[s.A.layoutParams.structure.groupsOrder]="BY_HEIGHT"}return e}(p=function(t){var e=t;switch((e=(0,l.Db)(e,"isVertical",s.A.layoutParams.structure.layoutOrientation))[s.A.layoutParams.structure.layoutOrientation]){case!0:e[s.A.layoutParams.structure.layoutOrientation]="VERTICAL";break;case!1:e[s.A.layoutParams.structure.layoutOrientation]="HORIZONTAL"}return e}(p=function(t){var e=t;switch((e=(0,l.Db)(e,"scrollDirection",s.A.layoutParams.structure.scrollDirection))[s.A.layoutParams.structure.scrollDirection]){case 0:e[s.A.layoutParams.structure.scrollDirection]="VERTICAL";break;case 1:e[s.A.layoutParams.structure.scrollDirection]="HORIZONTAL"}return e}((a=p=(0,l.Si)(p,l.Bd),u=a,(u=(0,l.Db)(u,"galleryThumbnailsAlignment",s.A.layoutParams.thumbnails.alignment))[s.A.layoutParams.thumbnails.alignment]=null===(h=u[s.A.layoutParams.thumbnails.alignment])||void 0===h?void 0:h.toUpperCase(),p=u)))))))))))))))))),p=(0,l.tl)(p,l.Ff),p=function(t){var e,i=t;return(i=(0,l.Db)(i,"galleryTextAlign",s.A.behaviourParams.gallery.horizontal.slideshowInfo.buttonsAlignment))[s.A.behaviourParams.gallery.horizontal.slideshowInfo.buttonsAlignment]=null===(e=i[s.A.behaviourParams.gallery.horizontal.slideshowInfo.buttonsAlignment])||void 0===e?void 0:e.toUpperCase(),i}(p=function(t){if(void 0!==t[s.A.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.A.behaviourParams.gallery.horizontal.autoSlide.behaviour]=e,delete i.isAutoSlideshow,delete i.autoSlideshowType,i}(p=function(t){var e,i=t;return(i=(0,l.Db)(i,"loadMoreAmount",s.A.behaviourParams.gallery.vertical.loadMore.amount))[s.A.behaviourParams.gallery.vertical.loadMore.amount]=null===(e=i[s.A.behaviourParams.gallery.vertical.loadMore.amount])||void 0===e?void 0:e.toUpperCase(),i}(p=function(t){var e=t;switch((e=(0,l.Db)(e,"isRTL",s.A.behaviourParams.gallery.layoutDirection))[s.A.behaviourParams.gallery.layoutDirection]){case!0:e[s.A.behaviourParams.gallery.layoutDirection]="RIGHT_TO_LEFT";break;case!1:e[s.A.behaviourParams.gallery.layoutDirection]="LEFT_TO_RIGHT"}return e}(p=function(t){var e=t;switch((e=(0,l.Db)(e,"titlePlacement",s.A.layoutParams.info.placement))[s.A.layoutParams.info.placement]){case"SHOW_ON_HOVER":e[s.A.layoutParams.info.placement]="OVERLAY";break;case"SHOW_BELOW":e[s.A.layoutParams.info.placement]="BELOW";break;case"SHOW_ABOVE":e[s.A.layoutParams.info.placement]="ABOVE";break;case"SHOW_ON_THE_RIGHT":e[s.A.layoutParams.info.placement]="RIGHT";break;case"SHOW_ON_THE_LEFT":e[s.A.layoutParams.info.placement]="LEFT";break;case"ALTERNATE_HORIZONTAL":e[s.A.layoutParams.info.placement]="ALTERNATE_HORIZONTALLY";break;case"ALTERNATE_VERTICAL":e[s.A.layoutParams.info.placement]="ALTERNATE_VERTICALLY"}return e}(p=function(t){var e=t;switch((e=(0,l.Db)(e,"hoveringBehaviour",s.A.behaviourParams.item.overlay.hoveringBehaviour))[s.A.behaviourParams.item.overlay.hoveringBehaviour]){case"NO_CHANGE":e[s.A.behaviourParams.item.overlay.hoveringBehaviour]="ALWAYS_VISIBLE";break;case"NEVER_SHOW":e[s.A.behaviourParams.item.overlay.hoveringBehaviour]="NEVER_VISIBLE"}return e}(p=function(t){var e=t;return(e=(0,l.Db)(e,"videoSpeed",s.A.behaviourParams.item.video.speed))[s.A.behaviourParams.item.video.speed]=Number(e[s.A.behaviourParams.item.video.speed])>=0?Number(e[s.A.behaviourParams.item.video.speed]):void 0,e}(p=function(t){var e=t;return void 0!==(e=(0,l.Db)(e,"videoSound",s.A.behaviourParams.item.video.volume))[s.A.behaviourParams.item.video.volume]&&(e[s.A.behaviourParams.item.video.volume]=Number(e[s.A.behaviourParams.item.video.volume])),e}(p=function(t){var e,i=t;return(i=(0,l.Db)(i,"videoPlay",s.A.behaviourParams.item.video.playTrigger))[s.A.behaviourParams.item.video.playTrigger]=null===(e=i[s.A.behaviourParams.item.video.playTrigger])||void 0===e?void 0:e.toUpperCase(),i}(p=function(t){var e,i=t;switch((i=(0,l.Db)(i,"itemClick",s.A.behaviourParams.item.clickAction))[s.A.behaviourParams.item.clickAction]=null===(e=i[s.A.behaviourParams.item.clickAction])||void 0===e?void 0:e.toUpperCase(),i[s.A.behaviourParams.item.clickAction]){case"FULLSCREEN":case"EXPAND":i[s.A.behaviourParams.item.clickAction]="ACTION"}return i}(p=(0,l.Si)(p,l.oX))))))))))),delete(p=(0,l.tl)(p,l.OV)).enableLeanGallery,delete p.fullscreen,delete p.magicLayoutSeed,p),i=(0,r.__assign)((0,r.__assign)({},(0,o.rV)(e)),(0,o.rV)(t));var a,h,u;var c,p;return delete i.oldRefactoredOptionInCore,i}(e));return(0,o.Mv)(i)}},17352:(t,e,i)=>{i.d(e,{A:()=>r});const r={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",position:"layoutParams_thumbnails_position",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"},mouseCursorContainerMaxWidth:"layoutParams_navigationArrows_mouseCursorContainerMaxWidth"},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"},secondaryMedia:{trigger:"behaviourParams_item_secondaryMedia_trigger",behaviour:"behaviourParams_item_secondaryMedia_behaviour"}},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"}}},93523:(t,e,i)=>{i.d(e,{MF:()=>l,Mv:()=>s,YO:()=>n,rV:()=>a,w5:()=>o});var r=i(34629);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;e{i.d(e,{A:()=>l});var r=i(34629),o=i(15218),n=i(85382),s=i(17831),a=i(77017);const l=function(t,e){var i=(0,r.__assign)({},t);return i.textBoxHeight=function(t,e){if(!function(t,e){return(0,o.D3)(t.titlePlacement)&&e}(t,e))return 0;return t.textBoxHeight}(i,e),i.externalInfoHeight=function(t,e){var i=e;e>0&&(0,o.D3)(t.titlePlacement)&&t.imageInfoType===n.A.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.A.scrollDirection.VERTICAL&&r&&1===n&&(0,o.rU)(s)&&e}(t,e))return 0;var i=t.calculateTextBoxWidthMode,r=t.textBoxWidth,n=t.textBoxWidthPercent,l=0;l=i===s.A.PERCENT?Math.min(100,Math.max(0,n))/100:r;return l}(i,e),i}},96445:(t,e,i)=>{i.d(e,{q:()=>o});var r=i(34629),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}())},15343:(t,e,i)=>{i.d(e,{D:()=>p,L:()=>c});var r=i(34629),o=i(32972),n=i(15218),s=i(13030),a=i(67462),l=i(93523),h=i(35685),u=function(t){var e=(0,r.__assign)({},t);return e.galleryLayout=o.A.ALTERNATE,e.cubeType="fill",e.cubeImages=!0,(e=(0,l.w5)(e,"layoutParams_cropRatio",1)).titlePlacement=n.Ay.SHOW_ON_HOVER,e.scrollDirection=s.A.VERTICAL,e.gridStyle=h.A.SET_ITEMS_PER_ROW,(e=(0,l.w5)(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.w5)(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.rs)(e),e}},99051:(t,e,i)=>{i.d(e,{D:()=>p,L:()=>c});var r=i(34629),o=i(32972),n=i(15218),s=i(13030),a=i(67462),l=i(93523),h=i(35685),u=function(t){var e=(0,r.__assign)({},t);return e.galleryLayout=o.A.BRICKS,e.cubeType="fill",e.cubeImages=!0,(e=(0,l.w5)(e,"layoutParams_cropRatio",1)).titlePlacement=n.Ay.SHOW_ON_HOVER,e.scrollDirection=s.A.VERTICAL,(e=(0,l.w5)(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.A.SET_ITEMS_PER_ROW,e.gallerySize=400,e.minItemSize=50,e.chooseBestGroup=!0,(e=(0,l.w5)(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.rs)(e),e}},48006:(t,e,i)=>{i.d(e,{D:()=>c,L:()=>u});var r=i(34629),o=i(32972),n=i(15218),s=i(67462),a=i(35685),l=i(38414),h=function(t){var e=(0,r.__assign)({},t);return e.galleryLayout=o.A.COLLAGE,e.cubeImages=!1,e.titlePlacement=n.Ay.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.A.FIT_TO_SCREEN,e.targetItemSize=0,e.fixedColumns=0,e.enableScroll=!0,e.cropOnlyFill=!1,e.slideAnimation=l.A.SCROLL,e},u=h({}),c=function(t){var e=(0,r.__assign)({},t);return(e=h(e)).targetItemSize=(0,s.rs)(e,Math.round(5*e.gallerySize+500)),e}},44915:(t,e,i)=>{i.d(e,{D:()=>c,L:()=>u});var r=i(34629),o=i(32972),n=i(13030),s=i(67462),a=i(93523),l=i(38414),h=function(t){var e=(0,r.__assign)({},t);return e.galleryLayout=o.A.COLUMN,e.cubeType="fill",e.cubeImages=!0,(e=(0,a.w5)(e,"layoutParams_cropRatio",.35)).scrollDirection=n.A.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.A.SCROLL,e},u=h({}),c=function(t){var e=(0,r.__assign)({},t);return(e=h(e)).targetItemSize=(0,s.rs)(e),e}},66673:(t,e,i)=>{i.d(e,{D:()=>o});var r=i(93523),o=function(t){try{var e=t.jsonStyleParams?JSON.parse(t.jsonStyleParams):{};return(0,r.MF)(t,(0,r.Mv)(e))}catch(t){return{}}}},16210:(t,e,i)=>{i.d(e,{A:()=>s});var r=i(88021),o=i(61720),n=i(45863);const s=function(t){t.imagePlacementAnimation=r.A.NO_EFFECT,t.overlayAnimation=n.A.NO_EFFECT,t.imageHoverAnimation=o.A.NO_EFFECT}},4890:(t,e,i)=>{i.d(e,{D:()=>l,L:()=>a});var r=i(34629),o=i(32972),n=i(67462),s=function(t){var e=(0,r.__assign)({},t);return e.galleryLayout=o.A.EMPTY,e},a=s({}),l=function(t){var e=(0,r.__assign)({},t);return(e=s(e)).targetItemSize=(0,n.rs)(e,Math.round(9*e.gallerySize+100)),e}},44413:(t,e,i)=>{i.d(e,{D:()=>c,L:()=>u});var r=i(34629),o=i(32972),n=i(15218),s=i(13030),a=i(67462),l=i(93523),h=function(t){var e=(0,r.__assign)({},t);return e.galleryLayout=o.A.FULLSIZE,e.cubeImages=!0,(e=(0,l.w5)(e,"layoutParams_cropRatio","100%/100%")).cubeType="fill",e.titlePlacement=n.Ay.SHOW_ON_HOVER,e.scrollDirection=s.A.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.rs)(e),e}},61193:(t,e,i)=>{i.d(e,{D:()=>h,L:()=>l});var r=i(34629),o=i(32972),n=i(67462),s=i(38414),a=function(t){var e=(0,r.__assign)({},t);return e.galleryLayout=o.A.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.A.SCROLL,e.collageDensity=0,e},l=a({}),h=function(t){var e=(0,r.__assign)({},t);return(e=a(e)).targetItemSize=(0,n.rs)(e,Math.round(8.5*e.gallerySize+150)),e=(0,n.Xl)(e),e=(0,n.Zf)(e),e=(0,n.ow)(e)}},32516:(t,e,i)=>{i.d(e,{D:()=>c,L:()=>h});var r=i(34629),o=i(32972),n=i(13030),s=i(96445),a=i(93523),l=function(t){var e=(0,r.__assign)({},t);return e.galleryLayout=o.A.MAGIC,e.cubeImages=void 0,(e=(0,a.w5)(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.w5)(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;i{i.d(e,{D:()=>u,L:()=>h});var r=i(34629),o=i(32972),n=i(13030),s=i(67462),a=i(96445),l=function(t){var e=(0,r.__assign)({},t);return e.galleryLayout=o.A.MASONRY,e.cubeImages=!1,e.scrollDirection=n.A.VERTICAL,e.groupSize=1,e.groupTypes="1",e.slideshowLoop=!1,e.enableScroll=!0,e.cropOnlyFill=!1,e},h=l({}),u=function(t){var e=(0,r.__assign)({},t);return(e=l(e)).targetItemSize=(0,s.rs)(e,e.isVertical?8*e.gallerySize+200:5*e.gallerySize+200),a.q.supports.fixedColumnsInMasonry&&(e=(0,s.Xl)(e)),e=(0,s.nS)(e)}},85895:(t,e,i)=>{i.d(e,{D:()=>p,L:()=>c});var r=i(34629),o=i(32972),n=i(15218),s=i(13030),a=i(67462),l=i(93523),h=i(35685),u=function(t){var e=(0,r.__assign)({},t);return e.galleryLayout=o.A.MIX,e.cubeType="fill",e.cubeImages=!0,(e=(0,l.w5)(e,"layoutParams_cropRatio",1)).titlePlacement=n.Ay.SHOW_ON_HOVER,e.scrollDirection=s.A.VERTICAL,(e=(0,l.w5)(e,"layoutParams_gallerySpacing",0)).isVertical=!0,e.groupSize=3,e.groupTypes="1,2h,2v,3t,3b,3l,3r,3v,3h",e.collageDensity=.48,e.gridStyle=h.A.SET_ITEMS_PER_ROW,e.gallerySize=86,e.minItemSize=50,e.chooseBestGroup=!0,(e=(0,l.w5)(e,"layoutParams_repeatingGroupTypes","1,3l,1,3r")).smartCrop=!1,e.scatter=0,e.rotatingScatter="",e.fixedColumns=1,e.groupsPerStrip=0,e.placeGroupsLtr=!1,e.rotatingCropRatios="",e},c=u({}),p=function(t){var e=(0,r.__assign)({},t);return(e=u(e)).targetItemSize=(0,a.rs)(e),e}},35540:(t,e,i)=>{i.d(e,{D:()=>u,L:()=>h});var r=i(34629),o=i(32972),n=i(13030),s=i(67462),a=i(35685),l=function(t){var e=(0,r.__assign)({},t);return e.galleryLayout=o.A.PANORAMA,e.cubeImages=!1,e.scrollDirection=n.A.VERTICAL,e.isVertical=!0,e.groupSize=1,e.groupTypes="1",e.gridStyle=a.A.SET_ITEMS_PER_ROW,e.galleryType="Columns",e.fixedColumns=1,e.enableScroll=!0,e.cropOnlyFill=!1,e.slideshowLoop=!1,e},h=l({}),u=function(t){var e=(0,r.__assign)({},t);return(e=l(e)).targetItemSize=(0,s.rs)(e),e}},30611:(t,e,i)=>{i.d(e,{FD:()=>b});var r=i(32972),o=i(15343),n=i(99051),s=i(48006),a=i(44413),l=i(44915),h=i(61193),u=i(32516),c=i(78656),p=i(85895),d=i(35540),m=i(97558),g=i(51701),f=i(40117),y=i(4890),v=i(66673),b=function(t){var e=t.galleryType,i=t.galleryType,b=t.galleryLayout;if(void 0!==i&&void 0===b)switch(e){case"1":case"0":default:return(0,s.D)(t);case"2":return(0,h.D)(t);case"3":case"4":return(0,c.D)(t);case"5":return(0,d.D)(t);case"6":return(0,l.D)(t);case"7":case"13":return(0,g.D)(t)}else switch(t.galleryLayout){case r.A.MASONRY:return(0,c.D)(t);case r.A.GRID:return(0,h.D)(t);case r.A.THUMBNAIL:return(0,f.D)(t);case r.A.SLIDER:return(0,m.D)(t);case r.A.SLIDESHOW:return(0,g.D)(t);case r.A.PANORAMA:return(0,d.D)(t);case r.A.COLUMN:return(0,l.D)(t);case r.A.MAGIC:return(0,u.D)(t);case r.A.FULLSIZE:return(0,a.D)(t);case r.A.BRICKS:return(0,n.D)(t);case r.A.MIX:return(0,p.D)(t);case r.A.ALTERNATE:return(0,o.D)(t);case r.A.EMPTY:return(0,y.D)(t);case r.A.JSON_FIXED:return(0,v.D)(t);case r.A.COLLAGE:default:return(0,s.D)(t)}};o.L,n.L,s.L,a.L,l.L,h.L,u.L,c.L,p.L,d.L,m.L,g.L,f.L,y.L},97558:(t,e,i)=>{i.d(e,{D:()=>u,L:()=>h});var r=i(34629),o=i(32972),n=i(13030),s=i(38414),a=i(67462),l=function(t){var e=(0,r.__assign)({},t);return e.galleryLayout=o.A.SLIDER,e.enableInfiniteScroll=!0,e.cubeImages=!0,e.scrollDirection=n.A.HORIZONTAL,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=!0,e.slideAnimation=s.A.SCROLL,e},h=l({}),u=function(t){var e=(0,r.__assign)({},t);return(e=l(e)).targetItemSize=(0,a.rs)(e),e=(0,a.ow)(e)}},51701:(t,e,i)=>{i.d(e,{D:()=>p,L:()=>c});var r=i(34629),o=i(32972),n=i(87270),s=i(13030),a=i(67462),l=i(93523),h=i(16210),u=function(t){var e=(0,r.__assign)({},t);return e.galleryLayout=o.A.SLIDESHOW,e.enableInfiniteScroll=!0,(e=(0,l.w5)(e,"layoutParams_cropRatio","100%/100%")).cubeImages=!0,e.hoveringBehaviour=n.A.NEVER_SHOW,e.scrollDirection=s.A.HORIZONTAL,(e=(0,l.w5)(e,"layoutParams_gallerySpacing",0)).isVertical=!1,e.groupSize=1,e.titlePlacement="SHOW_BELOW",e.groupTypes="1",e.itemBorderWidth=0,e.itemBorderRadius=0,e.itemBorderColor=void 0,e.numberOfImagesPerCol=1,(0,h.A)(e),e.smartCrop=!1,e.targetItemSize=550,e.galleryType="Strips",e.fixedColumns=1,e.hasThumbnails=!1,e.enableScroll=!0,e.scrollSnap=!0,e.cropOnlyFill=!1,e.scatter=0,e.rotatingScatter="",e.imageMargin=0,e},c=u({}),p=function(t){var e=(0,r.__assign)({},t);return(e=u(e)).targetItemSize=(0,a.rs)(e),e=(0,a.ow)(e)}},40117:(t,e,i)=>{i.d(e,{D:()=>c,L:()=>u});var r=i(34629),o=i(32972),n=i(15218),s=i(13030),a=i(67462),l=i(93523),h=function(t){var e=(0,r.__assign)({},t);return e.galleryLayout=o.A.THUMBNAIL,e.enableInfiniteScroll=!0,(e=(0,l.w5)(e,"layoutParams_cropRatio","100%/100%")).cubeImages=!0,e.titlePlacement=n.Ay.SHOW_ON_HOVER,e.scrollDirection=s.A.HORIZONTAL,(e=(0,l.w5)(e,"layoutParams_gallerySpacing",0)).isVertical=!1,e.groupSize=1,e.groupTypes="1",e.numberOfImagesPerCol=1,e.smartCrop=!1,e.galleryType="Strips",e.hasThumbnails=!0,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.rs)(e),e=(0,a.ow)(e)}},33146:(t,e,i)=>{i.d(e,{A:()=>a});var r=i(13849),o=i(77017),n=i(35165),s=i(54096);const a={title:"Navigation Arrows Position",isRelevant:function(t){return s.A.isRelevant(t)&&t.showArrows},isRelevantDescription:'Set a Horizontal gallery ("Scroll Direction" as "Horizontal") and set "Show Navigation Arrows" to "true".',type:r.n.OPTIONS,default:o.A.arrowsPosition.ON_GALLERY,options:(0,n.D)("arrowsPosition"),description:"Set the position of the navigation arrows in sliders. You can choose to position the arrows on the gallery (ON_GALLERY)\n ,outside the gallery (OUTSIDE_GALLERY- in these case the gallery will margins from both sides to make room for the arrows), or on the mouse cursor (still in experimental mode).);\n "}},45841:(t,e,i)=>{i.d(e,{A:()=>s});var r=i(5743),o=i(13849),n=i(15218);const s={title:"Include External Info in gallery Ratio",description:"Set to true with a single row horizontal gallery to include the external info (above or below) in the fixed gallery Ratio",isRelevant:function(t){var e=t.layoutParams.repeatingGroupTypes?"1"===t.layoutParams.repeatingGroupTypes:"1"===t.groupTypes,i=t.titlePlacement.split(",").filter((function(t){return!(0,n.WC)(t)})).join(",");return e&&(0,n.O9)(i)&&r.A.isRelevant(t)&&t.layoutParams.structure.galleryRatio.value>0},isRelevantDescription:"Must be a single row horizontal gallery with a provided galleryRatio value and a below/above info placement",default:!1,type:o.n.BOOLEAN}},5743:(t,e,i)=>{i.d(e,{A:()=>o});var r=i(77017);const o={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.A.scrollDirection.HORIZONTAL},isRelevantDescription:'Set a Horizontal gallery ("Scroll Direction" as "Horizontal")',default:0,type:i(13849).n.NUMBER}},79169:(t,e,i)=>{i.d(e,{A:()=>s});var r=i(13849),o=i(77017),n=i(35165);const s={title:"Scroll Direction",isRelevant:function(){return!0},isRelevantDescription:"Always relevant.",type:r.n.OPTIONS,default:o.A.scrollDirection.VERTICAL,options:(0,n.D)("scrollDirection"),description:"Toggle between two types of galleries. Vertical and Horizontal. Notice that many options are available only for a specific scroll direction."}},54096:(t,e,i)=>{i.d(e,{A:()=>s});var r=i(13849),o=i(77017),n=i(79169);const s={title:"Show Navigation Arrows",description:"Choose if you want to have navigation arrows in a sliding gallery",isRelevant:function(t){return n.A.isRelevant(t)&&t.scrollDirection===o.A.scrollDirection.HORIZONTAL},isRelevantDescription:'Set a Horizontal gallery ("Scroll Direction" as "Horizontal").',type:r.n.BOOLEAN,default:!0}},4342:(t,e,i)=>{i.d(e,{A:()=>s});var r=i(13849),o=i(77017),n=i(35165);const s={title:"Slide Animation",isRelevant:function(t){return t.scrollDirection===o.A.scrollDirection.HORIZONTAL&&1===t.groupSize&&t.cubeImages&&"100%/100%"===t.layoutParams.cropRatio},isRelevantDescription:'Set a Horizontal gallery ("Scroll Direction" as "Horizontal"), set "Max Group Size" to "1" and set "Crop Images" to true.',type:r.n.OPTIONS,default:o.A.slideAnimations.SCROLL,options:(0,n.D)("slideAnimations"),description:"Choose the slide animation effect to be used when navigating between items in a slideshow"}},13849:(t,e,i)=>{i.d(e,{n:()=>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"}},35165:(t,e,i)=>{i.d(e,{D:()=>n});var r=i(77017),o=function(t){return t.replace(/_/g," ").split(" ").map((function(t){return t[0].toUpperCase()+t.substr(1).toLowerCase()})).join(" ")},n=function(t){return Object.entries(r.A[t]).map((function(t){var e=t[0];return{value:t[1],title:o(e)}}))}},36696:(t,e,i)=>{i.d(e,{A:()=>d});var r=i(34629),o=i(60751),n=i.n(o),s=i(77017),a=i(69143),l=i(12982),h=i(25051),u=i(7904),c=i(35355),p=function(t){function e(e){var i=t.call(this,e)||this;return i.isUsingCustomInfoElements=i.isUsingCustomInfoElements.bind(i),i.blueprintsManager=new l.A({id:"layoutingGallery"}),i.blueprintsManager.init({deviceType:e.deviceType,api:{isUsingCustomInfoElements:i.isUsingCustomInfoElements,fetchMoreItems:function(t){"function"==typeof e.eventsListener&&e.eventsListener(s.A.events.NEED_MORE_ITEMS,t)},onBlueprintReady:function(t){var e=t.blueprint,r=t.blueprintChanged,o=t.initialBlueprint;r?i.setBlueprint(e,o):a.A.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,r){t===s.A.events.NEED_MORE_ITEMS?i.blueprintsManager.getMoreItems(e):"function"==typeof o&&o(t,e,r)},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.A,(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.A)(this.props,a.A.isSSR())?[2]:[4,i.e(8638).then(i.bind(i,3598))];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);const d=(0,c.i)(p)},79885:(t,e,i)=>{i.d(e,{A:()=>A});var r=i(34629),o=i(60751),n=i.n(o),s=i(69143),a=i(32669),l=i(77017),h=i(98762),u=i(85706),c=i(24261),p=i(28495),d=i(75446),m=i(4288),g=i(17845),f=i(88097),y=i(65390),v=i(4996),b=i(80295);const A=function(t){function e(e){var i=t.call(this,e)||this;i.updateVisibility=function(){var t=(0,b.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.A)(t,e,i.state.structure.items)},s.A.isVerbose()&&console.count("[OOISSR] galleryContainer constructor",a.A.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.A(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.A.innerHeight,n=Math.max(t.scrollHeight,t.offsetHeight,e.clientHeight,e.scrollHeight,e.offsetHeight);o.getMoreItemsIfScrollIsDisabled(n,r)}}))),[2]}))}))},e.prototype.componentDidMount=function(){a.C.stopUsingMock();var t=document.body,e=document.documentElement,i=a.A.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.A.events.APP_LOADED,{}),this.videoScrollHelper.initializePlayState();try{"function"==typeof a.A.CustomEvent?this.currentHoverChangeEvent=new CustomEvent("current_hover_change"):(this.currentHoverChangeEvent=a.A.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,isPrerenderMode:t.isPrerenderMode}};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.A.isVerbose()&&o&&console.log("New props arrived",s.A.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="vertical"===this.containerInfiniteGrowthDirection(),n=!1;if(!o&&i){n=e.height+(r-138)}var a=this.props.options,h={numOfItems:this.state.items.length,container:e,options:a,layoutHeight:n||this.props.container.height,layoutItems:this.props.structure.items,isInfinite:o,isFixedHorizontlaGalleryRatio:"horizontal"===this.containerInfiniteGrowthDirection()&&this.state.options.layoutParams.structure.galleryRatio.value>0,updatedHeight:n};s.A.isVerbose()&&console.log("handleNewGalleryStructure",h),this.eventsListener(l.A.events.GALLERY_CHANGE,h),i&&this.setState({needToHandleShowMoreClick:!1})},e.prototype.isVerticalGallery=function(){return this.state.options.scrollDirection===l.A.scrollDirection.VERTICAL},e.prototype.getIsScrollLessGallery=function(t){var e=t.scrollDirection,i=t.slideAnimation;return e===l.A.scrollDirection.HORIZONTAL&&i!==l.A.slideAnimations.SCROLL},e.prototype.getVisibleItems=function(t,e,i){var r,o,n=this.state.gotFirstScrollEvent,s=(null===(o=null===(r=this.state)||void 0===r?void 0:r.scrollPosition)||void 0===o?void 0:o.top)||0,l=e.galleryHeight,u=e.scrollBase,c=e.galleryWidth;if(i||(0,h.Xf)()||(0,h.Q)()||n||s>0||a.A.scrollY>0||(0,h.IL)()||this.props.activeIndex>0)return t;var p=t;try{var d=a.A.innerHeight,m=this.isVerticalGallery()&&"vertical"===this.containerInfiniteGrowthDirection()?1/0:u+l,g=s+d,f=Math.min(m,g)-u;(p=f<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.iC)(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.Q)()," isPreviewMode =",(0,h.IL)()," isSiteMode =",(0,h.PP)()," 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.I2)(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.Q)()," isPreviewMode =",(0,h.IL)()," isSiteMode =",(0,h.PP)()," 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.A.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.A.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.A.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 ".concat(r?"#pro-gallery-".concat(this.props.id," .gallery-item-container { opacity: 0 }"):"","\n ").concat(i?"#pro-gallery-".concat(this.props.id," .gallery-item-hover::before { background: ").concat(i," !important}"):"","\n ").trim()},e.prototype.createCssLayoutsIfNeeded=function(t){var e=this.props.settings;(void 0===e?{}:e).avoidInlineStyles&&(this.layoutCss=(0,g.X)({layoutParams:t,isMobile:s.A.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.t.calcScrollCss({items:i,options:r,id:e,container:o})},e.prototype.toggleLoadMoreItems=function(){var t=this;this.eventsListener(l.A.events.LOAD_MORE_CLICKED,this.galleryStructure.galleryItems);var e=!0;if(this.state.showMoreClickedAtLeastOnce)this.setState({needToHandleShowMoreClick:e},(function(){t.handleNewGalleryStructure()}));else{this.getScrollCss({id:this.props.id,items:this.galleryStructure.galleryItems,options:this.state.options,container:this.state.container});var i=this.state.container.height;this.setState({showMoreClickedAtLeastOnce:!0,initialGalleryHeight:i,needToHandleShowMoreClick:e},(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){var o=this;if(this.videoScrollHelper.handleEvent({eventName:t,eventData:e}),t===l.A.events.HOVER_SET&&(this.currentHoverChangeEvent.currentHoverIdx=e,a.A.dispatchEvent(this.currentHoverChangeEvent)),t===l.A.events.CURRENT_ITEM_CHANGED&&(this.setCurrentSlideshowViewIdx(e.idx),this.getIsScrollLessGallery(this.state.options)&&this.state.firstUserInteractionExecuted&&this.simulateHorizontalScrollToItem(this.galleryStructure.items[e.idx])),!this.state.firstUserInteractionExecuted)switch(t){case l.A.events.HOVER_SET:case l.A.events.LOAD_MORE_CLICKED:case l.A.events.ITEM_ACTION_TRIGGERED:this.setState({firstUserInteractionExecuted:!0})}if("function"==typeof this.props.eventsListener)switch(t){case l.A.events.ITEM_ACTION_TRIGGERED:case l.A.events.ITEM_CLICKED:setTimeout((function(){o.props.eventsListener(t,e,i)}),0);break;default:this.props.eventsListener(t,e,i)}if(t===l.A.events.GALLERY_SCROLLED){this.videoScrollHelper.trigger.SCROLL(e);var n=(0,r.__assign)((0,r.__assign)({},this.state.scrollPosition),e);this.setState({scrollPosition:n})}},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 b.c,this.galleryStructure&&this.galleryStructure.galleryItems&&this.galleryStructure.galleryItems.length>0&&this.state.items&&this.state.options&&this.state.container){var r=this.state.options.scrollDirection,o=this.galleryStructure[r===l.A.scrollDirection.HORIZONTAL?"width":"height"]+(r===l.A.scrollDirection.HORIZONTAL?0:this.state.container.scrollBase),n=a.A[r===l.A.scrollDirection.HORIZONTAL?"innerWidth":"innerHeight"];o<(t?3*n:0)+(t+n)?(this.eventsListener(l.A.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.A.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.HC)(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.A.scrollDirection.HORIZONTAL?p.A:c.A;s.A.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.A,{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-".concat(this.props.id),scrollTop:null===(e=null===(t=this.state)||void 0===t?void 0:t.scrollPosition)||void 0===e?void 0:e.top,isScrollLessGallery:this.getIsScrollLessGallery(this.state.options),shouldDisableItemFocus:this.props.shouldDisableItemFocus,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-".concat(e),key:"layoutCss-".concat(e),dangerouslySetInnerHTML:{__html:t}})})),(this.scrollCss||[]).filter(Boolean).map((function(t,e){return n().createElement("style",{id:"scrollCss_".concat(e),key:"scrollCss_".concat(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)},80542:(t,e,i)=>{i.d(e,{A:()=>l});var r=i(34629),o=i(60751),n=i.n(o),s=i(69143),a=i(32669);const 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.A.getTopUrlParam("pgdebug"))return!1;var t=n().createElement("div",{className:"version-header "},"Pro Gallery Version #",a.A.staticsVersion),e="";try{e=" psw"+a.A.top.screen.width+" piw"+a.A.top.innerWidth+" pbw"+a.A.top.document.body.clientWidth}catch(t){}var i=n().createElement("div",{className:"version-header "},s.A.isLandscape()?"land":"port"," sw",a.A.screen.width,"sh",a.A.screen.height," iw",a.A.innerWidth," bw",a.A.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)},80295:(t,e,i)=>{i.d(e,{I:()=>n,c:()=>o});var r=i(32669),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}}},4288:(t,e,i)=>{i.d(e,{A:()=>h});var r=i(34629),o=i(60751),n=i.n(o),s=i(69143),a=i(77017),l=i(88097);const h=function(t){function e(e){var i=t.call(this)||this;return i.state={scrollTop:0,scrollLeft:0},i.debouncedOnScroll=s.A.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.A.scrollDirection.HORIZONTAL&&t.horizontal().removeEventListener("scroll",this.onHorizontalScroll)}catch(t){}this.scrollEventListenerSet=!1}},e.prototype.initScrollListener=function(){var t,e,i=this;this.scrollEventListenerSet&&this.removeScrollListener(),this.scrollEventListenerSet=!0;var r=this.props.scrollingElement;if(this.onHorizontalScrollTransition=function(t){var e=t.detail,r=Math.round(e);r>=0&&i.props.scrollDirection===a.A.scrollDirection.HORIZONTAL&&i.setState({scrollLeft:i.state.scrollLeft+r})},this.onHorizontalScroll=function(t){i.props.setGotFirstScrollIfNeeded();var e=t.currentTarget||t.target||t,r=e&&(e.scrollX||e.scrollLeft||e.x);i.props.isRTL&&(r=Math.abs(r)),r>=0&&i.props.scrollDirection===a.A.scrollDirection.HORIZONTAL&&(i.setState({scrollTop:r,scrollLeft:r}),i.props.getMoreItemsIfNeeded(r),i.debouncedOnScroll({left:r}))},this.props.scrollDirection===a.A.scrollDirection.HORIZONTAL)try{null===(t=null==r?void 0:r.horizontal())||void 0===t||t.addEventListener("scroll",this.onHorizontalScroll),null===(e=null==r?void 0:r.horizontal())||void 0===e||e.addEventListener("scrollTransition",this.onHorizontalScrollTransition)}catch(t){console.error(t)}this.onVerticalScroll=function(t){i.props.setGotFirstScrollIfNeeded();var e=t.currentTarget||t.target||t,r=e&&(e.scrollY||e.scrollTop||e.y);r>=0&&(i.props.scrollDirection===a.A.scrollDirection.VERTICAL&&(i.setState({scrollTop:r}),i.props.getMoreItemsIfNeeded(r)),i.debouncedOnScroll({top:r}))};try{r.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.t.calcScrollClasses(i,e),style:{display:"none"}})},e}(n().Component)},24261:(t,e,i)=>{i.d(e,{A:()=>p});var r=i(34629),o=i(60751),n=i.n(o),s=i(32669),a=i(69143),l=i(77017),h=i(80542),u=i(74263),c=i(6934);const 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.A.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.A.focusGalleryElement(this.props.outOfViewComponent),!1;break;case 39:o=i(r,this.props.options.isRTL?"left":"right");break;case 27:return t.stopPropagation(),a.A.focusGalleryElement(this.props.galleryContainerRef),!1}if(o>this.lastVisibleItemIdx()&&(o=r),o>=0)return t.preventDefault(),t.stopPropagation(),a.A.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.A.isMobile()?" pro-gallery-mobile-indicator":"")},n().createElement("button",{tabIndex:a.A.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.A.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 have changed",a.A.printableObjectsDiff(this.lastProps||{},this.props)),this.lastProps=(0,r.__assign)({},this.props),console.log("[DEBUG_RENDER] GalleryView state changed",a.A.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.A.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-".concat(this.id)},a.A.getAriaAttributes({proGalleryRole:this.props.proGalleryRole,proGalleryRegionLabel:this.props.proGalleryRegionLabel})),i,e,t)},e}(n().Component)},62132:(t,e,i)=>{i.d(e,{$9:()=>c});var r=i(34629),o=i(60751),n=i.n(o),s=i(83202),a=i(77017),l=i(69143),h=i(34949),u=i(63155);function c(t){var e,i,o=t.options,s=t.hideLeftArrow,h=t.hideRightArrow,c=t.container,g=t.customNavArrowsRenderer,f=t.next,y=t.id,v=o.isRTL,b=o.scrollDirection,A=o.imageMargin,I=o.arrowsPadding,S=o.arrowsPosition,_=o.arrowsVerticalPosition,w=o.layoutParams,P=o.titlePlacement,C=o.textBoxHeight,T=o.arrowsColor,x=o.arrowsSize,E=w.navigationArrows,O=E.container,L=O.type,R=O.backgroundColor,M=O.borderRadius,D=E.mouseCursorContainerMaxWidth,H=(0,u.FC)({customNavArrowsRenderer:g,arrowsColor:T,arrowsSize:x,arrowsType:w.navigationArrows.type,containerStyleType:L}),k=H.arrowRenderer,N=H.navArrowsContainerWidth,G=H.navArrowsContainerHeight,z=S===a.A.arrowsPosition.MOUSE_CURSOR,W=c.galleryHeight,B=c.galleryWidth,V=C,F=W-V,U="50% + ".concat(A/4,"px");a.A.hasExternalAbovePlacement(P)?i=-1:a.A.hasExternalBelowPlacement(P)&&(i=1);var j=(e={},e[a.A.arrowsVerticalPosition.ITEM_CENTER]=0,e[a.A.arrowsVerticalPosition.IMAGE_CENTER]=V*i,e[a.A.arrowsVerticalPosition.INFO_CENTER]=-F*i,e)[_],Y=(0,u.s0)({type:L,backgroundColor:R,borderRadius:M}),Z=z?{width:"".concat(B,"px"),maxWidth:"".concat(D,"%"),height:"".concat(W,"px"),padding:0,top:0,flex:1}:(0,r.__assign)({width:"".concat(N,"px"),height:"".concat(G,"px"),padding:0,top:"calc(".concat(U," - ").concat(G/2,"px - \n ").concat(j/2,"px)")},Y),X=b===a.A.scrollDirection.HORIZONTAL&&S===a.A.arrowsPosition.OUTSIDE_GALLERY?"-".concat(20+N,"px"):"".concat(A/2+(I||0),"px"),K={left:z?0:X},q={right:z?0:X},J=["nav-arrows-container",L===a.A.arrowsContainerStyleType.SHADOW?"drop-shadow":"",l.A.isMobile()?" pro-gallery-mobile-indicator":"",z?"follow-mouse-cursor":""],Q="arrow-portal-container-".concat(y),$=z?d:p,tt=function(t){return n().createElement($,(0,r.__assign)({},{renderArrowSvg:k,next:f,directionIsLeft:t,arrowsBaseClasses:J,tabIndex:l.A.getTabIndex.bind(l.A),containerStyle:Z,prevContainerStyle:K,nextContainerStyle:q,isRTL:v,hideLeftArrow:s,hideRightArrow:h,arrowBoxStyle:Y,navArrowsContainerWidth:N,navArrowsContainerHeight:G,navigationArrowPortalId:Q,mouseCursorContainerMaxWidth:D,id:y}))};return n().createElement(m,{hideLeftArrow:s,hideRightArrow:h,mouseCursorEnabled:z,isRTL:v,navigationArrowPortalId:Q},s?null:tt(!0),h?null:tt(!1))}function p(t){var e,i=t.cursor,o=t.arrowsBaseClasses,a=t.containerStyle,l=t.prevContainerStyle,h=t.nextContainerStyle,u=t.isRTL,c=t.directionIsLeft,p=t.renderArrowSvg,d=t.next,m=t.tabIndex,g=t.arrowBoxStyle,f=t.navArrowsContainerWidth,y=t.navArrowsContainerHeight,v=t.navigationArrowPortalId,b=c&&u||!c&&!u,A=function(){return d({direction:c?-1:1})},I=((e={className:o.join(" "),onClick:function(){return setTimeout(A,0)}})["aria-label"]="".concat(b?"Next":"Previous"," Item"),e.tabIndex=m(b?"slideshowNext":"slideshowPrev"),e.key=b?"nav-arrow-next":"nav-arrow-back",e["data-hook"]=b?"nav-arrow-next":"nav-arrow-back",e.style=(0,r.__assign)((0,r.__assign)({},a),c?l:h),e);if(i){var S=i.containerRef,_=i.isMouseEnter,w=i.position;return n().createElement("button",(0,r.__assign)({ref:function(t){return S.current=t}},I),_&&s.createPortal(n().createElement("span",{style:(0,r.__assign)((0,r.__assign)({top:w.y-y/2,left:w.x-f/2},g),{width:f,height:y})},p(c?"left":"right")),window.document.getElementById(v)))}return n().createElement("button",(0,r.__assign)({},I),p(c?"left":"right"))}function d(t){var e=t.directionIsLeft,i=t.next,r=t.mouseCursorContainerMaxWidth,o=t.hideLeftArrow,s=t.hideRightArrow,a=t.renderArrowSvg,l=o||s;return n().createElement(h.QH,{id:t.id,mouseCursorContainerMaxWidth:r,onNavigate:function(){return i({direction:e?-1:1})},direction:e?"left":"right",isTheOnlyArrow:l},(function(t,i){return n().createElement("div",{style:{position:"absolute",top:i,left:t,transition:"all 0.2s ease",pointerEvents:"none"}},a(e?"left":"right"))}))}function m(t){var e=t.hideRightArrow,i=t.hideLeftArrow,o=t.mouseCursorEnabled,s=t.isRTL,a=t.children,l=t.navigationArrowPortalId;if(o){var h={justifyContent:i?"flex-end":e?"flex-start":"space-between",flexDirection:s?"row-reverse":"row"};return n().createElement("div",{className:"mouse-cursor",style:(0,r.__assign)({},h)},n().createElement("div",{id:l,className:"arrow-portal-container"}),a)}return n().Fragment?n().createElement(n().Fragment,null,a):n().createElement("div",null,a)}},94958:(t,e,i)=>{i.d(e,{A:()=>m,j:()=>p});var r=i(34629),o=i(60751),n=i.n(o),s=i(69143),a=i(77017),l=i(1009),h=i(56094),u=function(t){function e(e){var i=t.call(this,e)||this;return i.scrollToThumbnail=i.scrollToThumbnail.bind(i),i}return(0,r.__extends)(e,t),e.prototype.scrollToThumbnail=function(t){this.props.navigationToIdxCB(t)},e.prototype.createThumbnails=function(t){var e=this,i=t.navigationPanelPosition,o=t.thumbnailAlignment,u=t.options,c=t.galleryStructure,p=t.settings,m=(0,h.O)(this.props.items,this.props.galleryStructure.galleryItems),g=s.A.inRange(this.props.activeIndex,m.length),f=u.thumbnailSize,y=u.thumbnailSpacings,v=(0,h.E)({items:this.props.items,activeIndex:g,options:u,galleryStructure:c,thumbnailAlignment:o,containerHeight:this.props.container.height,containerWidth:this.props.container.width,activeIndexOffsetMemory:this.activeIndexOffsetMemory,prevActiveIndex:this.prevActiveIndex}),b=v.horizontalThumbnails,A=v.items,I=v.thumbnailsMargins,S=v.thumbnailsStyle,_=v.activeIndexOffsetMemory;return this.prevActiveIndex=g,this.activeIndexOffsetMemory=_,n().createElement("div",{className:"pro-gallery inline-styles thumbnails-gallery "+(b?" one-row hide-scrollbars ":"")+(u.isRTL?" rtl ":" ltr ")+((null==p?void 0:p.isAccessible)?" accessible ":""),style:(0,r.__assign)((0,r.__assign)({width:S.width,height:S.height},I),d({galleryThumbnailsAlignment:o,navigationPanelPosition:i})),"data-hook":"gallery-thumbnails"},n().createElement("div",{"data-hook":"gallery-thumbnails-column",className:"galleryColumn",key:"thumbnails-column",style:(0,r.__assign)({},S)},A.map((function(t){var i=t.thumbnailItem,o=t.location,h=t.idx,c=h===g%m.length,p=(0,r.__assign)({width:f,height:f,marginLeft:y,marginTop:y,overflow:"hidden",backgroundImage:"url(".concat(i.createUrl(a.A.urlSizes.THUMBNAIL,a.A.urlTypes.HIGH_RES),")")},o);return n().createElement("div",{key:"thumbnail-"+i.id+(Number.isInteger(h)?"-"+h:""),className:"thumbnailItem"+(c?" pro-gallery-thumbnails-highlighted pro-gallery-highlight"+(s.A.isMobile()?" pro-gallery-mobile-indicator":""):""),"data-key":i.id,style:p,onClick:function(){return e.scrollToThumbnail(h)},onKeyDown:function(t){"Enter"===t.key&&e.scrollToThumbnail(h)}},"text"===i.type?n().createElement(l.A,(0,r.__assign)({},e.props,i.renderProps(),{options:(0,r.__assign)((0,r.__assign)({},u),{cubeType:"fill",cubeImages:!0}),actions:{},imageDimensions:(0,r.__assign)((0,r.__assign)({},p),{marginTop:0,marginLeft:0}),style:(0,r.__assign)((0,r.__assign)({},i.renderProps().style),p)})):null)}))))},e.prototype.render=function(){var t={navigationPanelPosition:this.props.options.layoutParams.thumbnails.position,thumbnailAlignment:this.props.options.galleryThumbnailsAlignment,options:this.props.options,galleryStructure:this.props.galleryStructure,settings:this.props.settings};return this.createThumbnails(t)},e}(n().Component),c=function(t){var e=t.width,i=t.height,r=t.galleryHeight;return"ON_GALLERY"===t.navigationPanelPosition?{}:{width:e,height:i-r}},p=function(t){var e=t.galleryHeight,i=t.galleryWidth,o=t.height,n=t.width,s=t.galleryThumbnailsAlignment,a=t.navigationPanelPosition;return(0,r.__assign)((0,r.__assign)((0,r.__assign)({},function(t){var e=t.galleryHeight,i=t.galleryWidth,r=t.height,o=t.width,n=t.galleryThumbnailsAlignment,s=t.navigationPanelPosition;switch(n){case"top":case"bottom":return c({galleryHeight:e,galleryWidth:i,height:r,width:o,navigationPanelPosition:s});case"right":case"left":return function(t){var e=t.width,i=t.height,r=t.galleryWidth;return"ON_GALLERY"===t.navigationPanelPosition?{}:{width:e-r,height:i}}({galleryHeight:e,galleryWidth:i,height:r,width:o,navigationPanelPosition:s});default:return!1}}({galleryHeight:e,galleryWidth:i,height:o,width:n,galleryThumbnailsAlignment:s,navigationPanelPosition:a})),d({galleryThumbnailsAlignment:s,navigationPanelPosition:a})),{overflow:"hidden",float:"left"})},d=function(t){var e=t.galleryThumbnailsAlignment;if(t.navigationPanelPosition===a.A.thumbnailsPosition.ON_GALLERY){var i={position:"absolute"};return i[e]=0,i}};const m=u},25051:(t,e,i)=>{i.d(e,{A:()=>l});var r=i(34629),o=i(60751),n=i.n(o),s=i(69143),a=i(79885);const l=function(t){function e(){var e=t.call(this)||this;return s.A.isLocal()&&!s.A.isTest()&&console.log("PRO GALLERY DEV"),e}return(0,r.__extends)(e,t),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-".concat(this.props.id),className:"pro-gallery"}},e.prototype.render=function(){return n().createElement("div",(0,r.__assign)({},this.containerProps()),n().createElement(a.A,(0,r.__assign)({},this.renderProps())))},e}(n().Component)},86932:(t,e,i)=>{i.d(e,{c:()=>n,j:()=>s});var r=i(34629),o=i(77017),n=function(t,e){var i=t.idx,r=t.activeIndex,n=t.options;void 0===e&&(e=!1);var s=n.isRTL;switch(n.slideAnimation){case o.A.slideAnimations.FADE:return"fade fade-".concat(r===i?"visible":"hidden");case o.A.slideAnimations.DECK:return ri?"deck-before".concat(s?"-rtl":""):{};default:return{}}},s=function(t){var e=function(t){console.log("toggleScrollLessAnimation: ",t),[".gallery-item-wrapper",".gallery-item-common-info-outer"].forEach((function(e){t?(0,r.__spreadArray)([],document.querySelectorAll(e),!0).forEach((function(t){var e;null===(e=t.classList)||void 0===e||e.add("disabled-transition")})):(0,r.__spreadArray)([],document.querySelectorAll(e),!0).forEach((function(t){var e;t.offsetHeight,null===(e=t.classList)||void 0===e||e.remove("disabled-transition")}))}))};setTimeout((function(){t&&t(),e(!0),e(!1)}),600)}},28495:(t,e,i)=>{i.d(e,{A:()=>A});var r=i(34629),o=i(60751),n=i.n(o),s=i(98762),a=i(77017),l=i(69143),h=i(32669),u=i(50895),c=i(80542),p=i(69822),d=i(61356),m=i(94958),g=i(6934),f=i(62132),y=i(63155),v=i(86932);function b(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: ".concat(t))}const A=function(t){function e(e){var i=t.call(this,e)||this;return i.autoScrollToNextItem=function(){if(!(0,s.Q)()&&(i.props.isInViewport||(0,s.IL)())){var t=i.props.options,e=t.isRTL?-1:1;t.autoSlideshowType===a.A.autoSlideshowTypes.CONTINUOUS?i._next({direction:e,isAutoTrigger:!0,isContinuousScrolling:!0}):t.autoSlideshowType===a.A.autoSlideshowTypes.INTERVAL&&i._next({direction:e,isAutoTrigger:!0,scrollDuration:800})}},i.getCustomNavigationPanel=function(){var t;return"function"==typeof(null===(t=i.props.customComponents)||void 0===t?void 0:t.EXPERIMENTAL_customNavigationPanelRenderer)&&i.props.customComponents.EXPERIMENTAL_customNavigationPanelRenderer},i.createOrGetCustomNavigationPanelAPI=function(){var t=i.props.options.isRTL;return i.navigationPanelAPI||(i.navigationPanelAPI={next:function(){return i.next({scrollDuration:400,isKeyboardNavigation:!1,isAutoTrigger:!1,avoidIndividualNavigation:!1,isContinuousScrolling:!1,direction:t?-1:1})},back:function(){return i.next({scrollDuration:400,isKeyboardNavigation:!1,isAutoTrigger:!1,avoidIndividualNavigation:!1,isContinuousScrolling:!1,direction:t?1:-1})},isAbleToNavigateNext:function(){return t?!i.state.hideLeftArrow:!i.state.hideRightArrow},isAbleToNavigateBack:function(){return t?!i.state.hideRightArrow:!i.state.hideLeftArrow},getActiveItemIndex:function(){return i.state.activeIndex},triggerItemAction:function(t,e){var o=(void 0===e?{}:e).itemIndex,n=void 0===o?i.state.activeIndex:o,s=i.createGalleryConfig(),l=i.props.galleryStructure.galleryItems[n%i.props.totalItemsCount],h=null==l?void 0:l.renderProps((0,r.__assign)((0,r.__assign)({},s),{visible:!0}));i.props.actions.eventsListener(a.A.events.ITEM_ACTION_TRIGGERED,h,t)},toIndex:function(e){return i.scrollToIndex({itemIdx:e,scrollDuration:400,isRTL:t})},assignIndexChangeCallback:function(t){i.navigationPanelCallbackOnIndexChange=t}})},i.navigationPanelCallbackOnIndexChange=function(){},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.A.throttle(i.setCurrentItemByScroll,600).bind(i),i._next=l.A.throttle(i.nextWithEffects.bind(i),e.isScrollLessGallery?600:400).bind(i),i._next=l.A.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(t){return void 0===t&&(t=this.props),!(t.options.slideAnimation!==a.A.slideAnimations.SCROLL||!this.scrollElement)&&this.scrollPosition()<=1},e.prototype.isScrollEnd=function(t){void 0===t&&(t=this.props);var e=t.options,i=e.slideshowLoop,r=e.slideAnimation;return!i&&r!==a.A.slideAnimations.FADE&&r!==a.A.slideAnimations.DECK&&(this.isAllItemsLoaded(t)&&this.scrollPositionAtTheAndOfTheGallery(t)>=Math.floor(this.getScrollElementWidth(t)))},e.prototype.isAllItemsLoaded=function(t){void 0===t&&(t=this.props);var e=t.totalItemsCount,i=t.getVisibleItems,r=t.galleryStructure,o=t.container,n=t.isPrerenderMode;return i(r.galleryItems,o,n).length>=e},e.prototype.getScrollElementWidth=function(t){void 0===t&&(t=this.props);var e=t.galleryStructure,i=this.props.options.imageMargin;return e.width-i/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(t){return void 0===t&&(t=this.props),!t.options.slideshowLoop&&this.state.activeIndex>=t.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.nextWithEffects=function(t){return(0,r.__awaiter)(this,void 0,void 0,(function(){var e,i,o=this;return(0,r.__generator)(this,(function(r){switch(r.label){case 0:return[4,this.next(t)];case 1:return e=r.sent(),1===this.props.options.groupSize&&this.props.isScrollLessGallery&&e>=this.skipFromSlide&&(i=this.skipFromSlide-this.props.totalItemsCount,(0,v.j)((function(){return o.onScrollToItemOrGroup(i,!1)}))),[2]}}))}))},e.prototype.next=function(t){var e,i=t.direction,o=t.isAutoTrigger,n=t.scrollDuration,s=t.isKeyboardNavigation,l=void 0!==s&&s,h=t.isContinuousScrolling,u=void 0!==h&&h;return(0,r.__awaiter)(this,void 0,void 0,(function(){var t,s,h,c,p;return(0,r.__generator)(this,(function(r){return t=this.props.options.isRTL?i<=-1:i>=1,this.shouldBlockNext({scrollingUpTheGallery:t})?(this.clearAutoSlideshowInterval(),[2]):(i*=this.props.options.isRTL?-1:1,s=document.activeElement,h=s.className&&s.className.includes("gallery-item-container"),c=!l||!((null===(e=this.props.settings)||void 0===e?void 0:e.isAccessible)&&h),p=!1,this.props.options.slideAnimation!==a.A.slideAnimations.SCROLL&&(n=0,p=!0),this.removeArrowsIfNeeded(),c&&this.props.options.groupSize>1?[2,this.nextGroup({direction:i,scrollDuration:n,isContinuousScrolling:u,scrollingUpTheGallery:t})]:(c&&a.A.isLayout("GRID")(this.props.options)&&this.props.options.numberOfImagesPerCol&&(i*=this.props.options.numberOfImagesPerCol),[2,this.nextItem({direction:i,isAutoTrigger:o,scrollDuration:n,avoidIndividualNavigation:c,ignoreScrollPosition:p,isContinuousScrolling:u,scrollingUpTheGallery:t})]))}))}))},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,h=t.scrollingUpTheGallery;return(0,r.__awaiter)(this,void 0,void 0,(function(){var t,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]),u=s?0:t,[4,this.scrollToItemOrGroup(this.props.actions.scrollToItem,u,a,o,h)];case 2:return r.sent(),1!==this.props.options.groupSize||this.props.isScrollLessGallery?[3,4]:t>=this.skipFromSlide?(t=l.A.inRange(t,this.props.totalItemsCount),[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()),[2,t];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.A.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.A.urlSizes.RESIZED,a.A.urlTypes.HIGH_RES),this.props.actions.eventsListener(a.A.events.CURRENT_ITEM_CHANGED,e)),this.navigationPanelCallbackOnIndexChange(this.state.activeIndex)}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.A.autoSlideshowTypes.CONTINUOUS&&t.autoSlideshowContinuousSpeed>0?this.autoScrollToNextItem():t.autoSlideshowType===a.A.autoSlideshowTypes.INTERVAL&&t.autoSlideshowInterval>0&&(this.autoSlideshowInterval=setInterval(this.autoScrollToNextItem,1e3*t.autoSlideshowInterval)))},e.prototype.getFirstIdx=function(t){var e=this.props.galleryStructure.galleryItems,i=e[t].itemId;return e.find((function(t){return t.itemId===i})).idx},e.prototype.scrollToThumbnail=function(t,e){this.props.actions.eventsListener(a.A.events.THUMBNAIL_CLICKED,this.props);var i=this.state.activeIndex,r=i+(this.getFirstIdx(t)-this.getFirstIdx(i));this.scrollToIndex({itemIdx:r,scrollDuration:e,isRTL:this.props.options.isRTL})},e.prototype.scrollToIndex=function(t){var e=t.itemIdx,i=t.scrollDuration,r=t.isRTL;this.props.setGotFirstScrollIfNeeded();var o=r?this.state.activeIndex-e:e-this.state.activeIndex;return this.next({direction:o,isAutoTrigger:!1,scrollDuration:i,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.A.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.A.focusGalleryElement(o)}else this._next({direction:b(e),isKeyboardNavigation:!0});return!1},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.A.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.A.isUndefined(e)||l.A.setStateAndLog(this,"Set Current Item",{activeIndex:e},(function(){t.onCurrentItemChanged()})),e}this.clearAutoSlideshowInterval()}},e.prototype.createDebugMsg=function(){return n().createElement(c.A,(0,r.__assign)({},this.props.debug))},e.prototype.createNavArrows=function(){var t=this.props,e=t.container,i=t.options,r=t.customComponents,o=t.id,s=this.state,a=s.hideLeftArrow,l=s.hideRightArrow;return n().createElement(f.$9,{container:e,options:i,customNavArrowsRenderer:r.customNavArrowsRenderer,hideLeftArrow:a,hideRightArrow:l,next:this._next,id:o})},e.prototype.getBufferedItems=function(t,e){var i,r=this.state,o=this.props,n=o.options,s=o.virtualizationSettings,a=o.getVisibleItems,l=o.isPrerenderMode,h=r.activeIndex,u=a(t,e,l),c=(null===(i=this.props.galleryContainerRef)||void 0===i?void 0:i.clientWidth)||e.galleryWidth||0;return(0,g.J)({groups:u,activeIndex:h,galleryWidth:c,options:n,virtualizationSettings:s})},e.prototype.createGalleryConfig=function(){return{scrollingElement:this.props.scrollingElement,scroll:this.props.scroll,container:this.props.container,options:this.props.options,settings:this.props.settings,activeIndex:this.state.activeIndex,customComponents:this.props.customComponents,galleryId:this.props.id,gotFirstScrollEvent:this.props.gotFirstScrollEvent,playingVideoIdx:this.props.playingVideoIdx,noFollowForSEO:this.props.noFollowForSEO,isPrerenderMode:this.props.isPrerenderMode,firstUserInteractionExecuted:this.props.firstUserInteractionExecuted,enableExperimentalFeatures:this.props.enableExperimentalFeatures,actions:{eventsListener:this.props.actions.eventsListener},totalItemsCount:this.props.totalItemsCount,totalWidth:this.props.galleryStructure.width}},e.prototype.createLayout=function(){var t=this,e=this.props,i=e.container,o=e.galleryStructure,s=this.createGalleryConfig();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-".concat(t.props.id),className:"gallery-horizontal-scroll gallery-column hide-scrollbars ".concat(t.props.options.isRTL?" rtl ":" ltr "," ").concat(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.A,(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.A.scrollDirection.HORIZONTAL&&this.props.options.arrowsPosition===a.A.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)((0,r.__assign)({},i),e),{display:"flex",justifyContent:"space-between"});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(),this.createLayout(),this.createAutoSlideShowPlayButton(),this.createSlideShowNumbers(),(0,y.t_)({options:this.props.options,container:this.props.container,isPrerenderMode:this.props.isPrerenderMode,galleryStructure:this.props.galleryStructure,customNavArrowsRenderer:this.props.customComponents.customNavArrowsRenderer})&&this.createNavArrows())},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.A.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:"".concat(s/2,"px")}:{right:"".concat(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% - ".concat(o,"px + 3px)")},a)},this.state.pauseAutoSlideshowClicked?n().createElement(p.A,{width:"10px",height:"100%"}):n().createElement(d.A,{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:"".concat(l,"px")}:{right:"".concat(a/2,"px")};return n().createElement("div",{className:"auto-slideshow-counter","data-hook":"auto-slideshow-counter",style:(0,r.__assign)({top:"calc(100% - ".concat(s,"px + 3px)")},h)},n().createElement("div",null,this.state.activeIndex%e+1+"/"+e))},e.prototype.getNavigationPanelArray=function(){if(!this.props.options.hasThumbnails)return[!1,!1];var t,e=this.getCustomNavigationPanel();if(e){var i=this.props.container,o=i.galleryHeight,s=i.galleryWidth,l=i.height,h=i.width,u=this.props.options.galleryThumbnailsAlignment,c=this.props.options.layoutParams.thumbnails.position,p=(0,m.j)({galleryHeight:o,galleryWidth:s,height:l,width:h,galleryThumbnailsAlignment:u,navigationPanelPosition:c});t=n().createElement("div",{className:"custom-navigation-panel",style:p},e((0,r.__assign)((0,r.__assign)({},this.props),{activeIndex:this.state.activeIndex,navigationToIdxCB:this.scrollToThumbnail,navigationPanelAPI:this.createOrGetCustomNavigationPanelAPI()})))}else t=n().createElement(m.A,(0,r.__assign)({},this.props,{activeIndex:this.state.activeIndex,navigationToIdxCB:this.scrollToThumbnail}));var d=this.props.options.layoutParams.thumbnails.position,g=this.props.options.galleryThumbnailsAlignment,f=[];if(d===a.A.thumbnailsPosition.ON_GALLERY)return f[0]=!1,f[1]=t,f;switch(g){case"top":case"left":f[0]=t,f[1]=!1;break;case"right":case"bottom":f[0]=!1,f[1]=t}return f},e.prototype.getClassNames=function(){var t="pro-gallery-parent-container";return a.A.isLayout("SLIDER")(this.props.options)?t+=" gallery-slider":this.props.options.hasThumbnails?t+=" gallery-thumbnails":a.A.isLayout("COLUMN")(this.props.options)&&(t+=" gallery-columns"),t},e.prototype.getStyles=function(){return{margin:-1*(this.props.options.imageMargin/2-this.props.options.layoutParams.gallerySpacing),width:this.props.container.width,height:this.props.container.height}},e.prototype.getScrollPosition=function(t){return void 0===t&&(t=this.props),this.scrollElement?this.scrollPosition(t):0},e.prototype.scrollPositionAtTheMiddleOfTheGallery=function(){return this.getScrollPosition()+this.props.container.galleryWidth/2},e.prototype.scrollPositionAtTheAndOfTheGallery=function(t){return void 0===t&&(t=this.props),this.getScrollPosition(t)+t.container.galleryWidth},e.prototype.scrollPosition=function(t){return void 0===t&&(t=this.props),(t.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,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.state.activeIndex>t.items.length-1&&l.A.setStateAndLog(this,"Next Item",{activeIndex:0},(function(){r.onCurrentItemChanged()})),this.props.activeIndex!==t.activeIndex&&l.A.setStateAndLog(this,"Next Item",{activeIndex:t.activeIndex},(function(){r.onCurrentItemChanged()})),this.props.totalItemsCount===t.totalItemsCount&&this.props.container.galleryHeight===t.container.galleryHeight&&this.props.container.galleryWidth===t.container.galleryWidth||this.removeArrowsIfNeeded(t),((0,s.Q)()||(0,s.IL)())&&(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(t){void 0===t&&(t=this.props);var e=t.options.isRTL,i=this.state,r=i.hideLeftArrow,o=i.hideRightArrow,n=this.isScrollStart(t),s=this.isFirstItem(),a=this.isScrollEnd(t),l=this.isLastItem(t),h=n||s,u=a||l,c=!e&&h||e&&u,p=e&&h||!e&&u;(!!c!=!!r||!!p!=!!o)&&this.setState({hideLeftArrow:!!c,hideRightArrow:!!p})},e.prototype.componentDidMount=function(){this.scrollElement=h.A.document.querySelector("#pro-gallery-".concat(this.props.id," #gallery-horizontal-scroll-").concat(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.A.isVerbose()&&(console.count("galleryView render"),console.count("Rendering Gallery count"),console.time("Rendering Gallery took "));var t=this.createGallery(),e=this.getNavigationPanelArray();return l.A.isVerbose()&&console.timeEnd("Rendering Gallery took "),n().createElement("div",(0,r.__assign)({className:this.getClassNames(),style:this.getStyles(),onKeyDown:this.handleSlideshowKeyPress},l.A.getAriaAttributes({proGalleryRole:this.props.proGalleryRole,proGalleryRegionLabel:this.props.proGalleryRegionLabel}),{onFocus:this.onFocus,onBlur:this.onBlur}),e[0],t,e[1])},e}(n().Component)},35355:(t,e,i)=>{i.d(e,{i:()=>l});var r=i(34629),o=i(60751),n=i.n(o),s=i(98762),a=i(69143),l=function(t){return function(e){function i(t){var i=e.call(this,t)||this;return i.initViewModeWrapper(t),i}return(0,r.__extends)(i,e),i.prototype.initViewModeWrapper=function(t){void 0!==t.viewMode&&s.CB.setViewMode(t.viewMode),void 0!==t.deviceType&&s.CB._deviceType!==t.deviceType&&(a.A.dumpCache(),s.CB.setDeviceType(t.deviceType))},i.prototype.updateViewModeWrapper=function(t){this.props.viewMode!==t.viewMode&&(a.A.dumpCache(),s.CB.setViewMode(t.viewMode)),this.props.deviceType!==t.deviceType&&(a.A.dumpCache(),s.CB.setDeviceType(t.deviceType))},i.prototype.UNSAFE_componentWillReceiveProps=function(t){this.updateViewModeWrapper(t)},i.prototype.render=function(){return n().createElement(t,(0,r.__assign)({},this.props))},i}(n().Component)}},7904:(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,{A:()=>r})},50895:(t,e,i)=>{i.d(e,{A:()=>a});var r=i(34629),o=i(60751),n=i.n(o),s=i(74263);const 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.A,(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_".concat(this.props.idx,"_").concat(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)},17845:(t,e,i)=>{i.d(e,{X:()=>n});var r=i(88097),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-".concat(e," #").concat(r.t.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:".concat(s.top,"px;"),l=o?"right:".concat(s.left,"px;left:auto;"):"left:".concat(s.left,"px;"),h="width:".concat(s.width,"px;"),u="height:".concat(s.height,"px;");n+="".concat(i," {").concat(a).concat(l).concat(h).concat(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}},88097:(t,e,i)=>{i.d(e,{t:()=>s});var r=i(32669),o=i(69143),n=i(77017),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.A.screen.width,r.A.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,r=String(e).replace(/[\W]+/g,"");return"pgi".concat(r,"_").concat(i)},t.prototype.buildScrollClassName=function(t,e,i){var r=String(t).replace(/[\W]+/g,"").slice(-8);return"".concat(this.pgScrollClassName,"_").concat(r,"_").concat(i,"-").concat(this.pgScrollSteps[e]+Number(i))},t.prototype.calcScrollClasses=function(t,e){var i=this;return"".concat(this.pgScrollClassName,"-").concat(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.A.isVerbose()&&console.time("CSS Scroll"),!s||!s.length)return[];var h=a.scrollAnimation;if(!h||h===n.A.scrollAnimations.NO_EFFECT)return[];this.screenSize=a.scrollDirection===n.A.scrollDirection.HORIZONTAL?Math.min(r.A.outerWidth,r.A.screen.width,l.galleryWidth):Math.min(r.A.outerHeight,r.A.screen.height),a.scrollDirection===n.A.scrollDirection.VERTICAL&&o.A.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.A.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.A.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.A.scrollDirection.HORIZONTAL?r.offset.left-this.screenSize:r.offset.top-this.screenSize,a=o.scrollDirection===n.A.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-".concat(i," #").concat(h," ").concat(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=[];p{i.d(e,{A:()=>n});var r=i(34629),o=i(33883);const n=function(){function t(){this.listeners={}}return t.prototype.on=function(t,e){var i=this;return this.listeners[t]=this.listeners[t]||[],this.listeners[t].push(e),{remove:function(){i.off(t,e)}}},t.prototype.emit=function(t){for(var e=[],i=1;i{i.d(e,{A:()=>r});const r=function(t,e,i){var r,o=i[t],n=function(t,e,r){var o,n,s,a=null,l={};return i.forEach((function(i){o=i.offset.top+i.height/2,n=i.offset.left+i.width/2,s=Math.sqrt(Math.pow(o-e,2)+Math.pow(n-t,2)),(null===a||s>0&&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)}},34949:(t,e,i)=>{i.d(e,{QH:()=>d});var r=i(34629),o=i(60751),n=i.n(o),s=i(58485),a=i(33883),l=i(69143);var h=function(t){return document.getElementById("pro-gallery-container-".concat(t))},u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.state={position:[0,0],mouseIn:!1},e}return(0,r.__extends)(e,t),e.prototype.componentDidMount=function(){var t=this,e=this.props.getElement();this.mouseFollower=function(t){var e=new s.A,i=function(e){var i=t.getBoundingClientRect();return[e.clientX-i.left,e.clientY-i.top]};function o(o){var n,s=i(o);(n=e.call).mouseEnterState.apply(n,(0,r.__spreadArray)([!p.apply(void 0,(0,r.__spreadArray)([t,o],s,!1))],s,!1))}function n(o){var n,s,a=i(o);(n=e.call).mouseEnterState.apply(n,(0,r.__spreadArray)([!p.apply(void 0,(0,r.__spreadArray)([t,o],a,!1))],a,!1)),(s=e.call).mouseMove.apply(s,a)}function a(){e.call.mouseEnterState(!1,0,0)}function l(t){e.call.mouseClick(t)}return t.addEventListener("mouseenter",o),t.addEventListener("mousemove",n),t.addEventListener("mouseleave",a),t.addEventListener("click",l),{listen:e.listen,destroy:function(){t.removeEventListener("mouseenter",o),t.removeEventListener("mousemove",n),t.removeEventListener("mouseleave",a),t.removeEventListener("click",l)}}}(e),this.mouseFollower.listen.mouseMove(l.A.throttle((function(e,i){t.setState({position:[e,i]})}),this.props.throttle)),this.mouseFollower.listen.mouseEnterState((function(e){for(var i=[],r=1;rt,n=t>i-r;return"left"===e.props.direction?o:n},e.onNavigation=function(t){t.preventDefault(),t.stopPropagation(),e.props.onNavigate()},e}return(0,r.__extends)(e,t),e.prototype.render=function(){var t=this;return n().createElement(u,{getElement:function(){return h(t.props.id)},render:function(e,i){var r;return n().createElement(n().Fragment,null,t.props.children(e,i),n().createElement("style",null,"\n #".concat(null===(r=h(t.props.id))||void 0===r?void 0:r.id," * {\n cursor: none !important;\n }\n ")))},shouldRenderAtPosition:this.shouldRender,onClick:this.onNavigation,throttle:50})},e}(n().Component);var m;m=new Map,(0,a.B)((function(t){return m.get(t)||m.set(t,(function(e){var i;return n().createElement(t,(0,r.__assign)((0,r.__assign)({},e),((i={})[c]="true",i)))})),m.get(t)}))},63155:(t,e,i)=>{i.d(e,{FC:()=>h,s0:()=>d,t_:()=>u});var r=i(60751),o=i.n(r),n=i(77017),s=i(69143),a=i(23033),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.A.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.A.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(".concat("right"===t?1:-1,") scale(").concat(g,")"),fill:s.A.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.A.arrowsType.DEFAULT_ARROW);var e,i=n.A.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.A.ARROW_2;break;case o:e=a.A.ARROW_3;break;case s:e=a.A.ARROW_4;break;case l:e=a.A.ARROW_5;break;case h:e=a.A.ARROW_6;break;case u:e=a.A.ARROW_7;break;default:e=a.A.DEFAULT_ARROW}return e},d=function(t){var e=t.type,i=t.backgroundColor,r=t.borderRadius;return e===n.A.arrowsContainerStyleType.BOX?{backgroundColor:i,borderRadius:"".concat(r,"%")}:{}}},33883:(t,e,i)=>{function r(t){return new Proxy({},{get:function(e,i){return t(i)}})}i.d(e,{B:()=>r})},75446:(t,e,i)=>{i.d(e,{HC:()=>p,I2:()=>a,S:()=>u,iC:()=>s,u9:()=>h});var r=i(69143),o=i(77017),n=i(80295);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,A=t.slideTransition,I=t.isContinuousScrolling,S=t.autoSlideshowContinuousSpeed,_=t.imageMargin,w=u?-1:1;if(p===o.A.scrollDirection.HORIZONTAL?(i=l.scrollLeft*w,e=i+v*d/2):(i=f,e=f+v*m/2),!0!==b){r.A.isVerbose()&&console.log("Scrolling to items #"+v);var P=y.find((function(t){return t.idx===v}));if(e=p===o.A.scrollDirection.HORIZONTAL?r.A.get(P,"offset.left"):r.A.get(P,"offset.top"),r.A.isVerbose()&&console.log("Scrolling to position "+e,P),!(e>=0))return r.A.isVerbose()&&console.warn("Position not found, not scrolling"),new Promise((function(t){return t()}));if(p===o.A.scrollDirection.HORIZONTAL){var C=(d-P.width-_)/2;e-=C,e=Math.max(0,e),e=Math.min(e,g-d+s),e*=w,i*=w,r.A.isVerbose()&&console.log("Scrolling to new position "+e,this)}}return p===o.A.scrollDirection.HORIZONTAL?c({scroller:l,from:Math.round(i),to:Math.round(e),duration:a,isRTL:u,slideTransition:A,isContinuousScrolling:I,autoSlideshowContinuousSpeed:S}):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,A=t.slideTransition,I=t.isContinuousScrolling,S=t.autoSlideshowContinuousSpeed,_=t.imageMargin,w=u?-1:1;if(p===o.A.scrollDirection.HORIZONTAL&&l?(i=l.scrollLeft,e=i+v*d/2):(i=f,e=f+v*m/2),!0!==b){r.A.isVerbose()&&console.log("Scrolling to groups #"+v);var P=y.find((function(t){return t.idx===v}));if(e=p===o.A.scrollDirection.HORIZONTAL?r.A.get(P,"left"):r.A.get(P,"top"),r.A.isVerbose()&&console.log("Scrolling to position "+e,P),!(e>=0))return r.A.isVerbose()&&console.warn("Position not found, not scrolling"),new Promise((function(t){return t()}));if(p===o.A.scrollDirection.HORIZONTAL){var C=(d-P.width-_)/2;e-=C,e=Math.max(0,e),e=Math.min(e,g-d+s),e*=w,r.A.isVerbose()&&console.log("Scrolling to new position "+e,this)}}return p===o.A.scrollDirection.HORIZONTAL?c({scroller:l,from:Math.round(i),to:Math.round(e),duration:a,isRTL:u,slideTransition:A,isContinuousScrolling:I,autoSlideshowContinuousSpeed:S}):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{i.d(e,{E:()=>a,O:()=>s});var r=i(34629),o=i(69143),n=i(77017);function s(t,e){var i;return(i=e,o.A.uniqueBy(i,"id").filter((function(t){return void 0!==t.idx})).sort((function(t,e){return t.idx-e.idx}))).map((function(e){return{item:t.find((function(t){return t.id===e.id})),thumbnailItem:e,idx:e.idx}}))}function a(t){var e=t.options,i=t.activeIndex,a=t.items,h=t.thumbnailAlignment,u=t.galleryStructure,c=t.containerWidth,p=t.containerHeight,d=t.activeIndexOffsetMemory,m=void 0===d?i:d,g=t.prevActiveIndex,f=void 0===g?i:g,y=s(a,u.galleryItems);m=function(t){var e=t.activeIndex,i=t.prevActiveIndex,r=t.activeIndexOffsetMemory,n=t.items.length;if(e===i)return r;e=o.A.inRange(e,n);var s=Math.abs(i-e),a=Math.abs(i-n-e),l=Math.abs(i+n-e);return l{i.d(e,{A:()=>o});var r=i(98762);const o=function(){function t(t){this.left=0,this.top=0,this.setPlayingIdxState=t,this.handleEvent=function(){},this.onScroll=this.onScroll.bind(this),this.trigger={SCROLL:this.onScroll,INIT_SCROLL:function(){}},this.stop=function(){},this.initializePlayState=function(){}}return t.prototype.onScroll=function(t){var e=t.top,i=t.left;this.top=e||this.top,this.left=i||this.left},t.prototype.initVideoScrollHelperIfNeeded=function(t,e){var o=this;if(e.some((function(t){return t.metaData&&"video"===t.metaData.type||t.metadata&&"video"===t.metadata.type}))){var n={setPlayingVideos:(0,r.Q)()?function(){}:this.setPlayingIdxState};Promise.all([i.e(8841),i.e(9143),i.e(4313)]).then(i.bind(i,26069)).then((function(e){Object.assign(o,new e.default(n)),o.updateGalleryStructure(t),o.onScroll({top:o.top,left:o.left})})).catch((function(t){console.error("Failed to load videoScrollHelper. error: "+t)}))}},t.prototype.updateGalleryStructure=function(t,e,i){e&&this.initVideoScrollHelperIfNeeded(t,i)},t}()},6934:(t,e,i)=>{i.d(e,{J:()=>o,u:()=>n});var r=i(77017);function o(t){var e=t.groups,i=t.options,o=t.virtualizationSettings,n=t.galleryWidth,s=t.galleryHeight,a=t.activeIndex,l=o||{},h=l.enabled,u=void 0!==h&&h,c=l.forwardItemMargin,p=void 0===c?3:c,d=l.backwardItemMargin,m=void 0===d?3:d,g=l.forwardItemScrollMargin,f=void 0===g?10:g,y=l.backwardItemScrollMargin,v=void 0===y?10:y,b=i.scrollDirection===r.A.scrollDirection.HORIZONTAL,A=!b||i.slideAnimation===r.A.slideAnimations.SCROLL;if(!u)return e.map((function(t){return{group:t,shouldRender:!0}}));for(var I=b?n:s,S=b?"width":"height",_=A?f:p,w=A?v:m,P=e.findIndex((function(t){var e,i,r=t.items,o=r[0],n=r[r.length-1],s=null!==(e=o.idx)&&void 0!==e?e:o.fullscreenIdx,l=null!==(i=n.idx)&&void 0!==i?i:n.fullscreenIdx;return s<=a&&l>=a})),C=e[P],T=C[S]/I,x=T,E=T,O=[C],L=1;x<_||Ea-f*m&&r{i.d(e,{A:()=>l});var r=i(34629),o=i(60751),n=i.n(o),s=i(77017),a=i(72611);const l=function(t){return function(e){function i(t){var i=e.call(this,t)||this;return i.onMouseMove=i.onMouseMove.bind(i),i.onMouseDown=i.onMouseDown.bind(i),i.onMouseUp=i.onMouseUp.bind(i),i.isMagnifiedBiggerThanContainer=i.isMagnifiedBiggerThanContainer.bind(i),i.toggleMagnify=i.toggleMagnify.bind(i),i.getMagnifyInitialPos=i.getMagnifyInitialPos.bind(i),i.getBoundrys=i.getBoundrys.bind(i),i.getMagnifiedDimensions=i.getMagnifiedDimensions.bind(i),i.containerRef=null,i.state={shouldMagnify:!1,x:0,y:0},i}return(0,r.__extends)(i,e),i.prototype.onDragStart=function(t){t.preventDefault()},i.prototype.onMouseMove=function(t){if(this.dragStarted){var e=this.getMagnifiedDimensions(),i=e.magnifiedWidth,r=e.magnifiedHeight;this.isDragging=!0;var o=this.props.style,n=o.cubedWidth,s=o.cubedHeight,a=t.clientY,l=t.clientX,h=this.getBoundrys(),u=h.boundryY,c=h.boundryX;this.setState({x:Math.max(-c,Math.min(this.dragStartX-l,i-n)),y:Math.max(-u,Math.min(this.dragStartY-a,r-s))})}},i.prototype.onMouseDown=function(t){var e=t.clientX,i=t.clientY,r=this.state,o=r.x,n=r.y;r.shouldMagnify?(this.dragStartX=o+e,this.dragStartY=n+i,this.dragStarted=!0):this.setState(this.getMagnifyInitialPos(t))},i.prototype.onMouseUp=function(){this.isDragging||this.toggleMagnify(),this.dragStarted=!1,this.isDragging=!1},i.prototype.toggleMagnify=function(t){var e=this.state.shouldMagnify;"boolean"==typeof t?this.setState({shouldMagnify:t}):this.setState({shouldMagnify:!e})},i.prototype.getMagnifiedDimensions=function(){var t=this.props,e=t.style,i=e.innerHeight,r=e.innerWidth,o=t.options.behaviourParams.item.content.magnificationValue;return{magnifiedHeight:i*o,magnifiedWidth:r*o}},i.prototype.getPreloadImage=function(){var t,e=this.props,i=e.createUrl,r=e.id,o=e.style,l=e.imageDimensions,h=e.options,u=o.innerWidth,c=o.innerHeight,p=l.marginTop,d=l.marginLeft,m=this.state,g=m.shouldMagnify,f=m.x,y=m.y,v=h.behaviourParams.item.content.magnificationValue,b=i(s.A.urlSizes.RESIZED,s.A.urlTypes.HIGH_RES),A=g?v:1;return n().createElement(a.A,{alt:"",key:"magnified-item-preload-"+r,className:"magnified-item-preload",src:b,style:{width:u,height:c,position:"relative",zIndex:1,opacity:g?1:0,transform:"scale(".concat(A,")"),transformOrigin:"".concat((f+d)/(v-1),"px ").concat((y+p)/(v-1),"px"),transition:"transform 0.3s ease".concat(g?"":", opacity 0.1s ease 0.3s")},customImageRenderer:null===(t=this.props.customComponents)||void 0===t?void 0:t.customImageRenderer})},i.prototype.getHighResImage=function(){var t,e=this.props,i=e.createMagnifiedUrl,r=e.id,o=e.alt,s=e.options,l=this.getMagnifiedDimensions(),h=l.magnifiedWidth,u=l.magnifiedHeight,c=i(s.behaviourParams.item.content.magnificationValue);return n().createElement(a.A,{key:"magnified-item-".concat(r),className:"magnified-item","data-hook":"magnified-item",src:c,alt:"string"==typeof o?o:"untitled image",id:r,style:{width:h,height:u,position:"absolute"},customImageRenderer:null===(t=this.props.customComponents)||void 0===t?void 0:t.customImageRenderer})},i.prototype.isMagnifiedBiggerThanContainer=function(t){var e=this.getMagnifiedDimensions(),i=e.magnifiedWidth,r=e.magnifiedHeight,o=t.cubedWidth,n=t.cubedHeight;return o{i.d(e,{A:()=>a});var r=i(34629),o=i(60751),n=i.n(o),s=i(77017);const a=function(t){return function(e){var i=e.itemWasHovered,o=e.isCurrentHover,a=e.hasSecondaryMedia,l=e.secondaryMediaItem;if(e.options.behaviourParams.item.secondaryMedia.trigger===s.A.secondaryMediaTrigger.OFF||!a)return n().createElement(t,(0,r.__assign)({},e));var h,u,c,p;return n().createElement("div",{className:"item-with-secondary-media-container"},n().createElement(t,(0,r.__assign)({},e)),n().createElement("div",{className:["secondary-media-item",o?"show":"hide"].join(" ")},i&&n().createElement(t,(0,r.__assign)({},(h=l.createUrl,u=l.createMagnifiedUrl,c=l.style,p=l.html,(0,r.__assign)((0,r.__assign)({},e),{style:c,html:p,createUrl:h,createMagnifiedUrl:u}))))))}}},73051:(t,e,i)=>{i.d(e,{A:()=>h});var r=i(34629),o=i(60751),n=i.n(o),s=i(77017),a=i(69143),l=i(72611);const h=function(t){function e(e){var i=t.call(this,e)||this;return i.getImageContainer=i.getImageContainer.bind(i),i.getImageContainerClassNames=i.getImageContainerClassNames.bind(i),i.getImageElement=i.getImageElement.bind(i),i.state={isHighResImageLoaded:!1},i.handleHighResImageLoad=i.handleHighResImageLoad.bind(i),i}return(0,r.__extends)(e,t),e.prototype.componentDidMount=function(){try{"function"==typeof this.props.actions.setItemLoaded&&this.props.actions.setItemLoaded()}catch(t){console.error(t)}},e.prototype.handleHighResImageLoad=function(){this.setState({isHighResImageLoaded:!0});try{this.props.actions.setItemLoaded()}catch(t){console.error("Failed to load high res image",t)}},e.prototype.getImageContainerClassNames=function(){var t=this.props,e=t.isCurrentHover,i=t.options,r=t.isTransparent,o=this.state.isHighResImageLoaded;return["gallery-item-content",e?"item-content-hover":"item-content-regular","image-item","gallery-item-visible","gallery-item","gallery-item-preloaded",i.cubeImages&&"fit"===i.cubeType?"grid-fit":"",i.imageLoadingMode!==s.A.loadingMode.COLOR||r?"":"load-with-color ".concat(o?"image-loaded":"")].join(" ")},e.prototype.getImageContainer=function(t,e,i){var r=this.props,o=r.imageDimensions,s=r.id,a=r.actions;return n().createElement("div",{className:e,onTouchStart:a.handleItemMouseDown,onTouchEnd:a.handleItemMouseUp,key:"image_container-"+s,"data-hook":"image-item",style:o},t(),i)},e.prototype.getImageAnimationOverlay=function(){var t=this.props,e=t.imageDimensions,i=t.options,o=t.createUrl,a=t.id,l=null;switch(i.scrollAnimation){case s.A.scrollAnimations.BLUR:l=o(s.A.urlSizes.RESIZED,s.A.urlTypes.LOW_RES);break;case s.A.scrollAnimations.MAIN_COLOR:l=o(s.A.urlSizes.PIXEL,s.A.urlTypes.HIGH_RES)}return l&&n().createElement("div",{key:"image_container-overlay-"+a,"data-hook":"image-item-overlay",style:(0,r.__assign)((0,r.__assign)({},e),{backgroundImage:"url(".concat(l,")"),backgroundSize:"cover",pointerEvents:"none",position:"absolute",top:0,left:0})})},e.prototype.getImageElement=function(){var t=this,e=this.props,i=e.alt,o=e.imageDimensions,h=e.createUrl,u=e.id,c=e.idx,p=e.settings,d=void 0===p?{}:p,m=e.options,g=e.isTransparent,f=this.state.isHighResImageLoaded,y=d&&d.imageProps&&"function"==typeof d.imageProps?d.imageProps(u):{},v=(o.marginLeft,o.marginTop,(0,r.__rest)(o,["marginLeft","marginTop"]));return function(){var e,o,p,d,b=[],A=a.A.isMobile()&&!t.props.options.allowContextMenu?{WebkitUserSelect:"none",WebkitTouchCallout:"none"}:{},I=t.props.isPrerenderMode?{width:"100%",height:"100%"}:{};if(!f&&!g){var S=null,_=(0,r.__assign)({className:"gallery-item-visible gallery-item gallery-item-preloaded",key:"gallery-item-image-img-preload","data-hook":"gallery-item-image-img-preload",loading:"eager"},y);switch(m.imageLoadingMode){case s.A.loadingMode.BLUR:S=n().createElement(l.A,(0,r.__assign)({id:u,alt:"",key:"image_preload_blur-"+u,src:h(s.A.urlSizes.RESIZED,s.A.urlTypes.LOW_RES),style:(0,r.__assign)((0,r.__assign)((0,r.__assign)({},v),I),A)},_,{customImageRenderer:null===(e=t.props.customComponents)||void 0===e?void 0:e.customImageRenderer}));break;case s.A.loadingMode.MAIN_COLOR:S=n().createElement(l.A,(0,r.__assign)({id:u,alt:"",key:"image_preload_main_color-"+u,src:h(s.A.urlSizes.PIXEL,s.A.urlTypes.HIGH_RES),style:(0,r.__assign)((0,r.__assign)((0,r.__assign)({},v),I),A)},_,{customImageRenderer:null===(o=t.props.customComponents)||void 0===o?void 0:o.customImageRenderer}));break;case s.A.loadingMode.NONE:S=null}b.push(S)}var w=!t.props.isPrerenderMode,P=(null===(p=m.stylingParams)||void 0===p?void 0:p.itemResolutionMode)===s.A.itemResolutionMode.FULL?s.A.urlSizes.FULL:s.A.urlSizes.MULTI,C=h(P,s.A.urlTypes.HIGH_RES),T=n().createElement(l.A,(0,r.__assign)({id:u,key:"image_highres-"+u,className:"gallery-item-visible gallery-item gallery-item-preloaded","data-hook":"gallery-item-image-img","data-idx":c,src:C,alt:"string"==typeof i?i:"",onLoad:t.handleHighResImageLoad,loading:t.props.isPrerenderMode?"lazy":"eager",style:(0,r.__assign)((0,r.__assign)((0,r.__assign)({},v),A),!w&&I)},y,{customImageRenderer:null===(d=t.props.customComponents)||void 0===d?void 0:d.customImageRenderer}));return b.push(T),b}},e.prototype.render=function(){var t=this.getImageElement(),e="".concat(this.getImageContainerClassNames()," ").concat(this.props.extraClasses||""),i=this.props.overlay||this.getImageAnimationOverlay();return this.getImageContainer(t,e,i)},e}(n().Component)},72611:(t,e,i)=>{i.d(e,{A:()=>a});var r=i(34629),o=i(60751),n=i.n(o),s=i(35553);const a=function(t){function e(e){var i=t.call(this,e)||this;return i.imageRef=null,i}return(0,r.__extends)(e,t),e.prototype.componentDidMount=function(){var t;(null===(t=this.imageRef)||void 0===t?void 0:t.complete)&&"function"==typeof this.props.onLoad&&this.props.onLoad()},e.prototype.render=function(){var t=this,e=this.props,i=e.customImageRenderer,o=(0,r.__rest)(e,["customImageRenderer"]);return"function"==typeof i?i(this.props):"string"==typeof this.props.src?n().createElement("img",(0,r.__assign)({ref:function(e){t.imageRef=e},alt:this.props.alt},o)):"object"==typeof this.props.src?n().createElement("picture",{id:"multi_picture_".concat(this.props.id),key:"multi_picture_".concat(this.props.id)},this.props.src.map((function(t,e){return t.forPrinting?n().createElement(s.U,{key:"print-only-image-".concat(e),srcSet:t.dpr,type:"image/".concat(t.type)}):n().createElement("source",{key:"image-source-".concat(e),srcSet:t.dpr||t.url,type:"image/".concat(t.type)})})),n().createElement("img",(0,r.__assign)({ref:function(e){t.imageRef=e},alt:this.props.alt},o,{src:this.props.src[this.props.src.length-1].url}))):null},e}(n().Component)},32276:(t,e,i)=>{i.d(e,{A:()=>o});var r=i(73051);const o=(0,i(41986).A)(r.A)},79566:(t,e,i)=>{i.d(e,{Xe:()=>u,g4:()=>c,tF:()=>l});var r=i(98762),o=i(69143),n=i(32669),s=i(77017);function a(){return((0,r.PP)()||(0,r.Xf)())&&!o.A.isMobile()&&n.A.document}function l(t){var e=t.itemContainer,i=t.enableExperimentalFeatures,r=t.itemAnchor;a()&&i&&(n.A.document.activeElement===r&&e.focus())}function h(t,e){var i=n.A.document.activeElement;return String(i.className).includes(t)&&!!n.A.document.querySelector("#pro-gallery-".concat(e," #").concat(String(i.id)))}function u(t){var e=t.prevProps,i=t.currentProps,r=t.itemContainer;try{if(a()&&n.A.document.activeElement.className){var o=h("gallery-item-container",i.galleryId),s=h("show-more",i.galleryId);(o||s)&&(i.thumbnailHighlightId!==e.thumbnailHighlightId&&i.thumbnailHighlightId===i.id||i.activeIndex!==e.activeIndex&&i.activeIndex===i.idx)&&r.focus()}}catch(t){console.error("Could not set focus to active element",t)}}function c(t){return t.enableVideoPlaceholder&&(!o.A.isSingleItemHorizontalDisplay(t)||t.videoPlay!==s.A.videoPlay.AUTO)}},46630:(t,e,i)=>{i.d(e,{A:()=>h});var r=i(34629),o=i(60751),n=i.n(o),s=i(69143),a=i(77017),l=i(98762);const h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.__extends)(e,t),e.prototype.getHoverClass=function(){var t=this.props,e=t.options,i=t.forceShowHover,r=["gallery-item-hover"];return r.push("fullscreen-"+(e.fullscreen?"enabled":"disabled")),s.A.isUndefined(e.itemOpacity)&&r.push("default"),i?r.push("force-hover"):s.A.isMobile()&&r.push("hide-hover"),this.props.isCurrentHover?r.push("item-overlay-hover"):r.push("item-overlay-regular"),r.join(" ")},e.prototype.shouldRenderHoverInnerIfExist=function(){var t=this.props,e=t.itemWasHovered,i=t.options,r=i.hoveringBehaviour,o=i.overlayAnimation,n=i.alwaysShowHover,s=i.previewHover,h=a.A.infoBehaviourOnHover.APPEARS,u=a.A.overlayAnimations.NO_EFFECT;return!!n||(!(!(0,l.Q)()||!s)||(r!==h||o===u||e))},e.prototype.getOverlayStyle=function(){var t=this.props,e=t.options,i=t.imageDimensions,r={},o=e.overlayPosition,n=e.overlaySize,s=e.overlaySizeType,l=e.overlayPadding,h=o===a.A.overlayPositions.LEFT||o===a.A.overlayPositions.RIGHT||o===a.A.overlayPositions.CENTERED_HORIZONTALLY,u=this.calcHeightAndWidth({isHorizontal:h,overlayPadding:l,requiredOverlaySize:n,imageDimensions:i,overlaySizeType:s}),c=u.width,p=u.height,d=l;return Object.assign(r,{width:c,height:p,margin:d,position:"relative"}),r},e.prototype.calcHeightAndWidth=function(t){var e,i=t.isHorizontal,r=t.overlayPadding,o=t.requiredOverlaySize,n=t.imageDimensions,s=t.overlaySizeType,a=i?"width":"height",l=i?"height":"width",h=this.calcOverlaySize(n[a],o,s,r);return(e={})[a]=h,e[l]=n[l]-2*r,e},e.prototype.calcOverlaySize=function(t,e,i,r){var o=t+-2*r,n=Math.min(o,"PERCENT"===i?o*(e/100):e);return Math.max(0,n)},e.prototype.getOverlayPositionByFlex=function(){var t=this.props,e=t.options,i=t.imageDimensions,r=e.overlayPosition,o={width:i.width,height:i.height,marginTop:i.marginTop,marginLeft:i.marginLeft,display:"flex",position:"absolute",top:0,left:0};switch(r){case a.A.overlayPositions.RIGHT:Object.assign(o,{justifyContent:"flex-end"});break;case a.A.overlayPositions.BOTTOM:Object.assign(o,{alignItems:"flex-end"});break;case a.A.overlayPositions.CENTERED_HORIZONTALLY:Object.assign(o,{justifyContent:"center"});break;case a.A.overlayPositions.CENTERED_VERTICALLY:Object.assign(o,{alignItems:"center"})}return o},e.prototype.render=function(){var t=this.props,e=t.actions,i=t.idx,r=t.renderCustomInfo,o=this.getHoverClass(),s=this.getOverlayStyle(),a=this.getOverlayPositionByFlex();return n().createElement("div",{className:"item-hover-flex-container",style:a},n().createElement("div",{key:"item-hover-"+i,"data-hook":"item-hover-"+i,"aria-hidden":!0,className:o,onTouchStart:e.handleItemMouseDown,onTouchEnd:e.handleItemMouseUp,style:s},this.shouldRenderHoverInnerIfExist()&&r?n().createElement("div",{className:"gallery-item-hover-inner"},r()):null))},e}(n().Component)},74263:(t,e,i)=>{i.d(e,{A:()=>_});var r=i(34629),o=i(60751),n=i.n(o),s=i(77017),a=i(69143),l=i(32669),h=i(96445),u=i(98762),c=i(32276),p=i(98416),d=i(1009),m=i(46630),g=i(79566),f=i(88097),y=i(54795),v=i(6671),b=i(32111),A=i(86932),I=(0,p.A)(c.A),S=(0,p.A)(d.A);const _=function(t){function e(e){var i=t.call(this,e)||this;return i.shouldUseDirectLink=function(){var t=i.props.directLink||{},e=t.url,r=t.target,o=!(!e||!r||"link"!==i.props.options.itemClick);return i.shouldShowHoverOnMobile()&&i.isClickOnCurrentHoveredItem()&&o?(i.props.actions.eventsListener(s.A.events.HOVER_SET,-1),!0):!(!o||i.shouldShowHoverOnMobile())},i.isClickOnCurrentHoveredItem=function(){return i.state.isCurrentHover||i.props.options.hoveringBehaviour===s.A.infoBehaviourOnHover.NO_CHANGE},i.props.actions.eventsListener(s.A.events.ITEM_CREATED,i.props),i.init(),i.state={isCurrentHover:!1,itemWasHovered:!1},i.activeElement="",i}return(0,r.__extends)(e,t),e.prototype.init=function(){this.onItemClick=this.onItemClick.bind(this),this.onItemWrapperClick=this.onItemWrapperClick.bind(this),this.onItemInfoClick=this.onItemInfoClick.bind(this),this.onContainerKeyUp=this.onContainerKeyUp.bind(this),this.onAnchorKeyDown=this.onAnchorKeyDown.bind(this),this.handleItemMouseDown=this.handleItemMouseDown.bind(this),this.handleItemMouseUp=this.handleItemMouseUp.bind(this),this.setItemLoaded=this.setItemLoaded.bind(this),this.isHighlight=this.isHighlight.bind(this),this.getItemHover=this.getItemHover.bind(this),this.getImageItem=this.getImageItem.bind(this),this.getVideoItem=this.getVideoItem.bind(this),this.getTextItem=this.getTextItem.bind(this),this.getItemInner=this.getItemInner.bind(this),this.getItemContainerStyles=this.getItemContainerStyles.bind(this),this.getItemWrapperStyles=this.getItemWrapperStyles.bind(this),this.getItemAriaLabel=this.getItemAriaLabel.bind(this),this.getItemContainerClass=this.getItemContainerClass.bind(this),this.getItemWrapperClass=this.getItemWrapperClass.bind(this),this.getItemContainerTabIndex=this.getItemContainerTabIndex.bind(this),this.isIconTag=this.isIconTag.bind(this),this.onMouseEnter=this.onMouseEnter.bind(this),this.onMouseLeave=this.onMouseLeave.bind(this),this.onFocus=this.onFocus.bind(this),this.onBlur=this.onBlur.bind(this),this.checkIfCurrentHoverChanged=this.checkIfCurrentHoverChanged.bind(this),this.shouldHoverWithoutOverlayAndClickOnMobile=this.shouldHoverWithoutOverlayAndClickOnMobile.bind(this)},e.prototype.setItemLoaded=function(){this.props.actions.eventsListener(s.A.events.ITEM_LOADED,this.props),this.setState({loaded:!0})},e.prototype.isIconTag=function(t){return["button","i","a","svg","path"].indexOf(t.toLowerCase())>=0},e.prototype.onMouseEnter=function(){a.A.isMobile()||this.props.actions.eventsListener(s.A.events.HOVER_SET,this.props.idx)},e.prototype.onMouseLeave=function(){a.A.isMobile()||this.props.actions.eventsListener(s.A.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.A.events.HOVER_SET,this.props.idx),this.props.actions.eventsListener(s.A.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.A.events.HOVER_SET,-1),this.props.actions.eventsListener(s.A.events.ITEM_LOST_FOCUS,this.props)},e.prototype.onContainerKeyUp=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.A.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",!1),t.stopPropagation()},e.prototype.onItemClick=function(t,e,i){void 0===i&&(i=!0),a.A.isFunction(a.A.get(l.A,"galleryWixCodeApi.onItemClicked"))&&l.A.galleryWixCodeApi.onItemClicked(this.props),this.props.actions.eventsListener(s.A.events.ITEM_CLICKED,(0,r.__assign)((0,r.__assign)({},this.props),{clickTarget:e}),t),this.shouldUseDirectLink()||(i&&t.preventDefault(),this.shouldShowHoverOnMobile()||this.shouldShowSecondMediaOnMobile()?setTimeout(this.handleHoverClickOnMobile(t),0):this.shouldHoverWithoutOverlayAndClickOnMobile()?this.props.actions.eventsListener(s.A.events.HOVER_SET,this.props.idx):this.handleGalleryItemAction(t))},e.prototype.handleHoverClickOnMobile=function(t){this.isClickOnCurrentHoveredItem()?(this.handleGalleryItemAction(t),this.props.actions.eventsListener(s.A.events.HOVER_SET,-1)):this.props.actions.eventsListener(s.A.events.HOVER_SET,this.props.idx)},e.prototype.handleItemMouseDown=function(){return!0},e.prototype.handleItemMouseUp=function(){return a.A.isMobile()&&this.longPressTimer&&clearTimeout(this.longPressTimer),!0},e.prototype.shouldShowHoverOnMobile=function(){if(a.A.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.q.supports.mobileSettings;if(i===s.A.infoBehaviourOnHover.NEVER_SHOW)return!1;if("nothing"===r&&"video"!==this.props.type)return!0;if(this.props.customComponents.customHoverRenderer&&s.A.hasHoverPlacement(e)&&i!==s.A.infoBehaviourOnHover.NEVER_SHOW&&d&&(l||c||p))return!0;if(o)return!0;if((0,u.Q)()&&n)return!0}return!1},e.prototype.shouldShowSecondMediaOnMobile=function(){return!!a.A.isMobile()&&("nothing"===this.props.options.itemClick&&"video"!==this.props.type&&this.props.options.behaviourParams.item.secondaryMedia.trigger===s.A.secondaryMediaTrigger.HOVER)},e.prototype.shouldHoverWithoutOverlayAndClickOnMobile=function(){return a.A.isMobile()&&this.props.options.videoPlay===s.A.videoPlay.HOVER&&this.props.options.itemClick===s.A.itemClick.NOTHING},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.A.infoBehaviourOnHover,l=n.NEVER_SHOW,h=n.APPEARS,c=s.A.overlayAnimations.NO_EFFECT;return r!==l&&(!0===e||(!(!(0,u.Q)()||!i)||!(r===h&&o===c&&!this.state.itemWasHovered)&&(!a.A.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(m.A,(0,r.__assign)({},s,{forceShowHover:this.simulateOverlayHover(),isCurrentHover:this.simulateHover(),imageDimensions:t,itemWasHovered:this.state.itemWasHovered,key:"hover",actions:{handleItemMouseDown:this.handleItemMouseDown,handleItemMouseUp:this.handleItemMouseUp},renderCustomInfo:o.customHoverRenderer?function(){return o.customHoverRenderer((0,b.t)(e.props))}:null}))},e.prototype.getImageItem=function(t){var e=a.A.pick(this.props,["gotFirstScrollEvent","alt","title","description","id","idx","options","createUrl","createMagnifiedUrl","settings","isPrerenderMode","isTransparent","style","hasSecondaryMedia","secondaryMediaItem","customComponents"]);return n().createElement(I,(0,r.__assign)({},e,{key:"imageItem",imageDimensions:t,isThumbnail:!!this.props.thumbnailHighlightId,isCurrentHover:this.simulateHover(),itemWasHovered:this.state.itemWasHovered,actions:{handleItemMouseDown:this.handleItemMouseDown,handleItemMouseUp:this.handleItemMouseUp,setItemLoaded:this.setItemLoaded}}))},e.prototype.getVideoItem=function(t,e){return n().createElement(v.A,(0,r.__assign)({},this.props,{shouldPlay:this.props.idx===this.props.playingVideoIdx,key:"video"+this.props.idx,hover:e,imageDimensions:t,hasLink:this.itemHasLink(),isCurrentHover:this.simulateHover(),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.A.pick(this.props,["id","options","style","html","cropRatio","isPrerenderMode","hasSecondaryMedia","secondaryMediaItem"]);return n().createElement(S,(0,r.__assign)({},e,{key:"textItem",imageDimensions:t,isCurrentHover:this.simulateHover(),itemWasHovered:this.state.itemWasHovered,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.A.hasExternalRightPlacement(this.props.options.titlePlacement,this.props.idx)?this.getExternalInfoElement(s.A.placements.SHOW_ON_THE_RIGHT,"gallery-item-right-info"):null},e.prototype.getLeftInfoElementIfNeeded=function(){return s.A.hasExternalLeftPlacement(this.props.options.titlePlacement,this.props.idx)?this.getExternalInfoElement(s.A.placements.SHOW_ON_THE_LEFT,"gallery-item-left-info"):null},e.prototype.getBottomInfoElementIfNeeded=function(){return s.A.hasExternalBelowPlacement(this.props.options.titlePlacement,this.props.idx)?this.getExternalInfoElement(s.A.placements.SHOW_BELOW,"gallery-item-bottom-info"):null},e.prototype.getTopInfoElementIfNeeded=function(){return s.A.hasExternalAbovePlacement(this.props.options.titlePlacement,this.props.idx)?this.getExternalInfoElement(s.A.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,b.t)(this.props),t),p=s.A.isLayout("SLIDESHOW")(this.props.options);return n().createElement("div",{className:"gallery-item-common-info-outer "+(0,A.c)(this.props,p),style:(0,r.__assign)({},(0,y.fm)(t,o,l.height,o.textBoxHeight))},n().createElement("div",{style:(0,y.GL)(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.Q)()&&this.props.options.previewHover},e.prototype.simulateOverlayHover=function(){return this.simulateHover()||this.props.options.hoveringBehaviour===s.A.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,f=(0,y.dB)(l),v={overflowY:"hidden",position:"absolute",bottom:"auto",margin:p===s.A.scrollDirection.HORIZONTAL?d/2+"px":0},b=c.avoidInlineStyles,A=this.props.isPrerenderMode&&!this.props.settings.disableSSROpacity,I=b?{}:{opacity:A?0:1,display:A?"none":"block",transition:"opacity .2s ease"},S=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.A.slideAnimations.FADE:t={left:m?"auto":0,right:m?0:"auto",pointerEvents:o===i?"auto":"none",zIndex:o===i?1:0};break;case s.A.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 _=this.state.loaded&&((0,u.Q)()||(0,u.IL)())?{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),S),f),_),I),t)},e.prototype.getItemWrapperStyles=function(){var t=this.props,e=t.createUrl,i=t.options,r=t.style,o=t.type,n=r.height,a=r.width,l={};return l.backgroundColor="text"===o?"fit"!==i.cubeType?"transparent":"inherit":("fit"!==i.cubeType?r.bgColor:"inherit")||"transparent",i.imageHoverAnimation===s.A.imageHoverAnimations.MAIN_COLOR&&(l.background="url(".concat(e(s.A.urlSizes.PIXEL,s.A.urlTypes.HIGH_RES),")")),l.height=n+"px",l.width=a+"px",l.margin=-i.itemBorderWidth+"px",l},e.prototype.getItemAriaLabel=function(){var t=this.props,e=t.type,i=t.alt,r=t.htmlContent,o=t.options;return{dummy:"",text:r,video:i||"",image:i||""}[e]+(o.isStoreGallery?", Buy Now":"")},e.prototype.isItemClickable=function(t){var e=!this.itemHasLink();return!(t.itemClick===s.A.itemClick.NOTHING||t.itemClick===s.A.itemClick.LINK&&e)},e.prototype.getItemContainerClass=function(){var t=this.props.options,e=t.imagePlacementAnimation,i=t.overlayAnimation,r=t.imageHoverAnimation,o=this.simulateHover(),n={"gallery-item-container":!0,"item-container-regular":!o,"item-container-hover":o,"has-custom-focus":!0,visible:!0,"pro-gallery-highlight":this.isHighlight(),clickable:this.isItemClickable(t),"simulate-hover":this.simulateHover(),"hide-hover":!this.simulateHover()&&a.A.isMobile(),"invert-hover":t.hoveringBehaviour===s.A.infoBehaviourOnHover.DISAPPEARS,"animation-slide":e===s.A.imagePlacementAnimations.SLIDE,"hover-animation-fade-in":i===s.A.overlayAnimations.FADE_IN,"hover-animation-expand":i===s.A.overlayAnimations.EXPAND,"hover-animation-slide-up":i===s.A.overlayAnimations.SLIDE_UP,"hover-animation-slide-right":i===s.A.overlayAnimations.SLIDE_RIGHT,"hover-animation-slide-down":i===s.A.overlayAnimations.SLIDE_DOWN,"hover-animation-slide-left":i===s.A.overlayAnimations.SLIDE_LEFT,"main-color-on-hover":r===s.A.imageHoverAnimations.MAIN_COLOR,"zoom-in-on-hover":r===s.A.imageHoverAnimations.ZOOM_IN,"blur-on-hover":r===s.A.imageHoverAnimations.BLUR,"grayscale-on-hover":r===s.A.imageHoverAnimations.GRAYSCALE,"shrink-on-hover":r===s.A.imageHoverAnimations.SHRINK,"invert-on-hover":r===s.A.imageHoverAnimations.INVERT,"color-in-on-hover":r===s.A.imageHoverAnimations.COLOR_IN,"darkened-on-hover":r===s.A.imageHoverAnimations.DARKENED,"pro-gallery-mobile-indicator":a.A.isMobile()};return Object.entries(n).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.push((0,A.c)(this.props)),r.join(" ")},e.prototype.getItemContainerTabIndex=function(){return this.props.shouldDisableItemFocus?-1:this.isHighlight()?a.A.getTabIndex("currentThumbnail"):this.props.activeIndex===this.props.idx?a.A.getTabIndex("currentGalleryItem"):-1},e.prototype.componentDidMount=function(){if(a.A.isMobile()&&"function"==typeof n().initializeTouchEvents)try{n().initializeTouchEvents(!0)}catch(t){console.error(t)}l.A.addEventListener("current_hover_change",this.checkIfCurrentHoverChanged)},e.prototype.componentWillUnmount=function(){clearTimeout(this.itemLoadedTimeout),l.A.removeEventListener("current_hover_change",this.checkIfCurrentHoverChanged)},e.prototype.componentDidUpdate=function(t){(0,g.Xe)({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.A.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.A.placements.SHOW_ON_HOVER&&!this.hasRequiredMediaUrl,m=this.getItemAriaRole(),v=n().createElement("div",(0,r.__assign)({className:this.getItemContainerClass(),onContextMenu:function(t){return e.onContextMenu(t)},id:f.t.getSellectorDomId(this.props),ref:function(t){return e.itemContainer=t},onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onFocus:this.onFocus,onBlur:this.onBlur,tabIndex:this.getItemContainerTabIndex(),"aria-label":this.getItemAriaLabel(),"data-hash":l,"data-id":o,"data-idx":h},m&&{role:m},{"data-hook":"item-container",key:"item-container-"+a,style:this.getItemContainerStyles(),onKeyUp:this.onContainerKeyUp,onClick:this.onItemWrapperClick}),this.getTopInfoElementIfNeeded(),this.getLeftInfoElementIfNeeded(),n().createElement("div",{style:(0,r.__assign)((0,r.__assign)((0,r.__assign)({},(0,y.nb)(this.props.options)),s.A.hasExternalRightPlacement(this.props.options.titlePlacement,this.props.idx)&&{float:"left"}),s.A.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()},this.getItemInner())),this.getRightInfoElementIfNeeded(),this.getBottomInfoElementIfNeeded()),A=(0,b.l)(this.props),I={ref:function(t){return e.itemAnchor=t},"data-id":o,className:"item-link-wrapper","data-idx":h,"data-hook":"item-link-wrapper",onFocus:function(){(0,g.tF)({itemAnchor:e.itemAnchor,enableExperimentalFeatures:e.props.enableExperimentalFeatures,itemContainer:e.itemContainer})},tabIndex:-1,onKeyDown:function(t){e.onAnchorKeyDown(t)}};return(null===(t=null==A?void 0:A.href)||void 0===t?void 0:t.length)>0?n().createElement("a",(0,r.__assign)({key:"item-container-link-"+a},I,A),v):n().createElement("div",(0,r.__assign)({key:"item-container-div-"+a},I),v)},e.prototype.render=function(){return this.composeItem()},e}(n().Component)},54795:(t,e,i)=>{i.d(e,{GL:()=>u,dB:()=>s,fm:()=>h,nb:()=>a});var r=i(34629),o=i(77017),n=i(69143);function s(t){return(0,r.__assign)({},(t.imageInfoType===o.A.infoType.ATTACHED_BACKGROUND||o.A.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,a=Math.round(o*Math.cos(s)),l=Math.round(-1*o*Math.sin(s));e={boxShadow:"".concat(a,"px ").concat(l,"px ").concat(i,"px ").concat(n.A.formatColor(t.itemShadowOpacityAndColor))}}return e}(t)))}function a(t){return(0,r.__assign)({},!o.A.hasHoverPlacement(t.titlePlacement)&&(t.imageInfoType===o.A.infoType.NO_BACKGROUND||t.imageInfoType===o.A.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.A.formatColor(i),borderStyle:"solid"})}function h(t,e,i,n){var s=(0,r.__assign)((0,r.__assign)({},o.A.hasExternalHorizontalPlacement(t)&&{height:i,float:o.A.isExternalRightPlacement(t)?"right":"left"}),o.A.hasExternalVerticalPlacement(t)&&{height:n,boxSizing:"content-box"});return e.imageInfoType===o.A.infoType.SEPARATED_BACKGROUND?(0,r.__assign)((0,r.__assign)((0,r.__assign)((0,r.__assign)({},s),l(e.textBoxBorderRadius,e.textBoxBorderWidth,e.textBoxBorderColor)),o.A.hasExternalAbovePlacement(t)&&{marginBottom:e.textImageSpace}),o.A.hasExternalBelowPlacement(t)&&{marginTop:e.textImageSpace}):s}function u(t,e,i,n){var s=(0,r.__assign)((0,r.__assign)({},(e.imageInfoType===o.A.infoType.SEPARATED_BACKGROUND||e.imageInfoType===o.A.infoType.ATTACHED_BACKGROUND)&&e.textBoxFillColor&&e.textBoxFillColor.value&&{backgroundColor:e.textBoxFillColor.value}),{overflow:"hidden",boxSizing:"border-box"}),a=o.A.hasExternalVerticalPlacement(t),l=o.A.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))}},35553:(t,e,i)=>{i.d(e,{U:()=>s});var r=i(34629),o=i(60751),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)},32111:(t,e,i)=>{i.d(e,{l:()=>l,t:()=>a});var r=i(34629),o=i(69143),n=i(98762),s=i(77017);function a(t){return(0,r.__assign)((0,r.__assign)({},t),{isMobile:o.A.isMobile()})}function l(t){var e=t.directLink,i=t.options,o=t.directShareLink,a=t.noFollowForSEO,l=(0,n.Xf)();if(i.itemClick===s.A.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===s.A.itemClick.FULLSCREEN||i.itemClick===s.A.itemClick.EXPAND){var d=!!(u=o);p=!i.shouldIndexDirectShareLinkInSEO?{rel:"nofollow"}:{};return d?(0,r.__assign)({href:u,"data-cancel-link":!0},p):{}}}},1009:(t,e,i)=>{i.d(e,{A:()=>s});var r=i(34629),o=i(60751),n=i.n(o);const 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{i.d(e,{A:()=>a});var r=i(34629),o=i(60751),n=i.n(o),s=i(73051);const a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.__extends)(e,t),e.prototype.render=function(){return n().createElement(s.A,(0,r.__assign)({overlay:this.props.videoPlayButton,extraClasses:" video-item gallery-item-video"},this.props))},e}(n().Component)},6671:(t,e,i)=>{i.d(e,{A:()=>g});var r=i(34629),o=i(60751),n=i.n(o),s=i(69143),a=i(98762),l=i(79566),h=i(14001),u=i(3721),c=i(79553),p=s.A.isiOS(),d=function(t){return((t.videoUrl||t.url).includes("youtube.com")||(t.videoUrl||t.url).includes("youtu.be"))&&p},m=function(t){var e=t.pointerEvents;return n().createElement("div",{style:{pointerEvents:e?"initial":"none"}},n().createElement("i",{key:"play-triangle","data-hook":"play-triangle",className:"gallery-item-video-play-triangle play-triangle "},n().createElement(u.A,null)),n().createElement("i",{key:"play-bg","data-hook":"play-background",className:"gallery-item-video-play-background play-background "},n().createElement(h.A,null)))};const g=function(t){function e(e){var i=t.call(this,e)||this;return i.mightPlayVideo=i.mightPlayVideo.bind(i),i.createVideoPlaceholder=i.createVideoPlaceholder.bind(i),i.state={videoItemLoaded:!1},i}return(0,r.__extends)(e,t),e.prototype.mightPlayVideo=function(){var t=this.props.options,e=t.videoPlay,i=t.itemClick,r=this.props.hasLink;return!this.props.isVideoPlaceholder&&("hover"===e||"auto"===e||("nothing"===i||"link"===i&&!r))},e.prototype.createVideoPlaceholder=function(t){var e=s.A.pick(this.props,["alt","title","description","id","idx","options","createUrl","settings","actions","isCurrentHover","customComponents"]);return n().createElement(c.A,(0,r.__assign)({},e,{key:"videoPlaceholder",imageDimensions:this.props.imageDimensions,isThumbnail:!!this.props.thumbnailHighlightId,id:this.props.idx,videoPlayButton:t&&n().createElement(m,{pointerEvents:!d(this.props)})}))},e.prototype.componentDidMount=function(){return(0,r.__awaiter)(this,void 0,void 0,(function(){var t;return(0,r.__generator)(this,(function(e){switch(e.label){case 0:if((0,a.Q)())return[3,4];e.label=1;case 1:return e.trys.push([1,3,,4]),[4,Promise.all([i.e(8841),i.e(1215),i.e(9143),i.e(4367)]).then(i.bind(i,89685))];case 2:return t=e.sent(),this.VideoItem=t.default,this.setState({videoItemLoaded:!0}),[3,4];case 3:return e.sent(),console.error("Failed to fetch VideoItem"),[3,4];case 4:return[2]}}))}))},e.prototype.render=function(){var t=this.props.hover,e=!this.props.hidePlay&&this.props.options.showVideoPlayButton,i=this.createVideoPlaceholder(e),o=this.VideoItem;if(!this.mightPlayVideo()||!this.state.videoItemLoaded||this.props.isPrerenderMode)return n().createElement("div",null,(0,l.g4)(this.props.options)&&i,t);var s=d(this.props);return n().createElement(o,(0,r.__assign)({},this.props,{loadVideo:this.props.loadVideo||s,videoPlaceholder:i,videoPlayButton:e&&n().createElement(m,{pointerEvents:!s})}))},e}(n().Component)},23033:(t,e,i)=>{i.d(e,{A:()=>u});var r=i(79458),o=i(79989),n=i(51798),s=i(10327),a=i(20608),l=i(57241),h=i(67754);const u={DEFAULT_ARROW:{SvgComp:r.A,width:23,height:39},ARROW_2:{SvgComp:o.A,width:40,height:33},ARROW_3:{SvgComp:n.A,width:25,height:42},ARROW_4:{SvgComp:s.A,width:39,height:11},ARROW_5:{SvgComp:a.A,width:39,height:25},ARROW_6:{SvgComp:l.A,width:26,height:40},ARROW_7:{SvgComp:h.A,width:40,height:33}}},79989:(t,e,i)=>{i.d(e,{A:()=>n});var r=i(60751),o=i.n(r);const n=function(t){var e=t.style;return o().createElement("svg",{className:"slideshow-arrow",style:e,width:"40px",height:"33px",viewBox:"0 0 40 33",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},o().createElement("g",{id:"Page-1",stroke:"none",strokeWidth:"1",fillRule:"evenodd"},o().createElement("g",{id:"Artboard-Copy-93",transform:"translate(-28.000000, -32.000000)",fillRule:"nonzero"},o().createElement("polygon",{id:"4",points:"51.5515789 32 67.6 48.0484211 51.5515789 64.0968421 46.9663158 59.5115789 54.9880947 51.4881326 28 51.4897902 28 44.9245271 55.30728 44.9243284 46.9663158 36.5852632"}))))}},51798:(t,e,i)=>{i.d(e,{A:()=>n});var r=i(60751),o=i.n(r);const n=function(t){var e=t.style;return o().createElement("svg",{className:"slideshow-arrow",style:e,width:"25px",height:"42px",viewBox:"0 0 25 42",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},o().createElement("g",{id:"Page-1",stroke:"none",strokeWidth:"1",fillRule:"evenodd"},o().createElement("g",{id:"Artboard-Copy-97",transform:"translate(-36.000000, -27.000000)",fillRule:"nonzero"},o().createElement("path",{d:"M37.2206398,28.239114 C38.8026583,26.647265 41.3436172,26.5881667 42.9967317,28.0675785 L43.1590153,28.2206482 L59.1611748,44.1233571 C61.1319602,46.0819718 61.1995454,49.2312919 59.3527322,51.2754674 L59.1795659,51.4581932 L43.1590166,67.3793505 C41.51408,69.0140701 38.8553922,69.0057967 37.2206146,67.3608606 C35.638653,65.7689547 35.5953873,63.2276769 37.0850712,61.5838107 L37.2391492,61.4224839 L50.946,47.799 L37.2391492,34.1775161 C35.7003375,32.6482622 35.5938031,30.2229032 36.9247365,28.5696317 L37.0675472,28.4014262 L37.2206398,28.239114 Z",id:"8"}))))}},10327:(t,e,i)=>{i.d(e,{A:()=>n});var r=i(60751),o=i.n(r);const n=function(t){var e=t.style;return o().createElement("svg",{className:"slideshow-arrow",style:e,width:"39px",height:"11px",viewBox:"0 0 39 11",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},o().createElement("g",{stroke:"none",strokeWidth:"1",fillRule:"evenodd"},o().createElement("g",{transform:"translate(-29.000000, -43.000000)",fillRule:"nonzero"},o().createElement("polygon",{points:"59.79296 43 67.1767272 48.2074587 59.79296 53.3482492 59.792 49.24 29 49.2402303 29 47.3156703 59.792 47.315"}))))}},20608:(t,e,i)=>{i.d(e,{A:()=>n});var r=i(60751),o=i.n(r);const n=function(t){var e=t.style;return o().createElement("svg",{className:"slideshow-arrow",style:e,width:"39px",height:"25px",viewBox:"0 0 39 25",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},o().createElement("g",{stroke:"none",strokeWidth:"1",fillRule:"evenodd"},o().createElement("g",{transform:"translate(-29.000000, -36.000000)",fillRule:"nonzero"},o().createElement("path",{d:"M29,48.2400242 C29,47.3087892 29.6817196,46.6578788 30.6657131,46.6578788 L62.0721815,46.6578788 L53.6034603,38.6027842 C52.9919732,38.0244263 52.9745394,37.0965804 53.5626533,36.4993057 L53.6196503,36.4424086 C54.2232252,35.8695838 55.2162345,35.8487051 55.8566495,36.4049822 L66.7354947,46.6987178 C66.8997789,46.8532785 67.0362567,47.0299812 67.1410943,47.2233734 C67.6421069,47.9137524 67.5952684,48.7577348 67.0654839,49.3382112 L66.9183084,49.529704 C66.8745903,49.5829565 66.834409,49.6278886 66.7923536,49.6712745 L55.84922,60.0371144 C55.2232594,60.6516206 54.1974244,60.6696143 53.554893,60.0838114 C52.9168128,59.5020667 52.8980482,58.5443858 53.5126939,57.940867 L53.5761731,57.877497 L62.0800244,49.8549119 L30.6657131,49.8549119 C29.6912419,49.8549119 29,49.1805348 29,48.2400242 Z",id:"5"}))))}},57241:(t,e,i)=>{i.d(e,{A:()=>n});var r=i(60751),o=i.n(r);const n=function(t){var e=t.style;return o().createElement("svg",{className:"slideshow-arrow",style:e,width:"26px",height:"40px",viewBox:"0 0 26 40",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},o().createElement("g",{stroke:"none",strokeWidth:"1",fillRule:"evenodd"},o().createElement("g",{transform:"translate(-35.000000, -28.000000)",fillRule:"nonzero"},o().createElement("polygon",{points:"60.4571429 47.8 40.6571429 67.6 35 61.9428571 49.1433951 47.7994621 35 33.6571429 40.6571429 28"}))))}},67754:(t,e,i)=>{i.d(e,{A:()=>n});var r=i(60751),o=i.n(r);const n=function(t){var e=t.style;return o().createElement("svg",{className:"slideshow-arrow",style:e,width:"40px",height:"33px",viewBox:"0 0 40 33",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},o().createElement("g",{stroke:"none",strokeWidth:"1",fillRule:"evenodd"},o().createElement("g",{transform:"translate(-28.000000, -32.000000)",strokeWidth:"nonzero"},o().createElement("polygon",{transform:"translate(47.800000, 48.469489) rotate(-180.000000) translate(-47.800000, -48.469489) ",points:"43.2916087 32 44.4061622 33.1660321 30.8430707 47.6817192 67.6 47.6813756 67.6 49.2576026 30.9452714 49.2580761 44.4061622 63.772946 43.2924258 64.9389782 28.8681974 49.4277178 28 48.5197421"}))))}},79458:(t,e,i)=>{i.d(e,{A:()=>n});var r=i(60751),o=i.n(r);const n=function(t){var e=t.style;return o().createElement("svg",{className:"slideshow-arrow",style:e,width:"23",height:"39",viewBox:"0 0 23 39"},o().createElement("path",{d:"M857.005,231.479L858.5,230l18.124,18-18.127,18-1.49-1.48L873.638,248Z",transform:"translate(-855 -230)"}))}},61356:(t,e,i)=>{i.d(e,{A:()=>h});var r=i(34629),o=i(62688),n=i.n(o),s=i(60751),a=i.n(s),l=function(t){var e=t.size,i=(0,r.__rest)(t,["size"]);return a().createElement("svg",(0,r.__assign)({viewBox:"0 0 10 14",fill:"currentColor",width:e||"10",height:e||"14"},i),a().createElement("g",{id:"final",stroke:"none",fill:"none",strokeWidth:"1",fillRule:"evenodd"},a().createElement("g",{id:"Play",transform:"translate(-490 -763)",fill:"currentColor"},a().createElement("g",{id:"Group-2",transform:"translate(470 284)"},a().createElement("g",{id:"Group",transform:"translate(20 479)"},a().createElement("path",{d:"M7,0 L10,0 L10,14 L7,14 L7,0 Z M0,0 L3,0 L3,14 L0,14 L0,0 Z",id:"_copy_3"}))))))};l.displayName="pause",l.propTypes={size:n().string};const h=l},69822:(t,e,i)=>{i.d(e,{A:()=>h});var r=i(34629),o=i(62688),n=i.n(o),s=i(60751),a=i.n(s),l=function(t){var e=t.size,i=(0,r.__rest)(t,["size"]);return a().createElement("svg",(0,r.__assign)({viewBox:"0 0 11 14",fill:"currentColor",width:e||"11",height:e||"14"},i),a().createElement("g",{id:"final",stroke:"none",fill:"none",strokeWidth:"1",fillRule:"evenodd"},a().createElement("g",{id:"Pause",transform:"translate(-490 -763)",fill:"currentColor"},a().createElement("g",{id:"Group-2",transform:"translate(470 284)"},a().createElement("g",{id:"Group",transform:"translate(20 479)"},a().createElement("path",{id:"play",d:"M0.0788076641 0L0 14 10.5 6.81856071z"}))))))};l.displayName="play",l.propTypes={size:n().string};const h=l},14001:(t,e,i)=>{i.d(e,{A:()=>h});var r=i(34629),o=i(62688),n=i.n(o),s=i(60751),a=i.n(s),l=function(t){var e=t.size,i=(0,r.__rest)(t,["size"]);return a().createElement("svg",(0,r.__assign)({viewBox:"0 0 60 60",fill:"currentColor",width:e||"60",height:e||"60"},i),a().createElement("path",{d:"M30,0c16.6,0,30,13.4,30,30S46.6,60,30,60C13.4,60,0,46.6,0,30S13.4,0,30,0z",fillRule:"evenodd",clipRule:"evenodd"}))};l.displayName="play_background",l.propTypes={size:n().string};const h=l},3721:(t,e,i)=>{i.d(e,{A:()=>h});var r=i(34629),o=i(62688),n=i.n(o),s=i(60751),a=i.n(s),l=function(t){var e=t.size,i=(0,r.__rest)(t,["size"]);return a().createElement("svg",(0,r.__assign)({viewBox:"0 0 60 60",fill:"currentColor",width:e||"60",height:e||"60"},i),a().createElement("path",{d:"M41.5,30l-17,10V20L41.5,30z"}))};l.displayName="play_triangle",l.propTypes={size:n().string};const h=l},27385:(t,e,i)=>{i.d(e,{A:()=>p});var r=i(34629),o=i(85706),n=i(5619),s=i(77017),a=i(99738),l=i(8817),h=i(67462),u=i(30611),c=i(8853);const p=new(function(){function t(){}return t.prototype.createBlueprint=function(t){var e=t.params,i=t.lastParams,o=t.existingBlueprint,n=t.blueprintManagerId,a=t.isUsingCustomInfoElements;this.reasons={items:"",itemsAdded:"",options:"",container:""};var l={};try{var h=e.container,u=e.items,c=e.options,p=i.container,d=i.items,m=i.options,g=this.formatItemsIfNeeded(u,d),f=g.formattedItems,y=g.changed,v=this.formatOptionsIfNeeded(c,m,a),b=v.formattedOptions,A=v.changed,I=this.formatContainerIfNeeded(h,p,m,b||o.options,A),S=I.formattedContainer,_=I.changed,w=y||A||_;if(l={itemsChanged:y,optionsChanged:A,containerChanged:_},w||!o){o||(o={});var P=this.createStructure({formattedContainer:S||o.container,formattedItems:f||o.items,formattedOptions:b||o.options},w);b&&(o.options=b),f&&(o.items=f),S&&(o.container=S),o.structure=P,o.options.scrollDirection===s.A.scrollDirection.VERTICAL&&o.options.enableInfiniteScroll&&(o.container.height=o.container.galleryHeight=P.height)}}catch(t){console.error("Could not create blueprint, error:",t)}var C=Object.entries(this.reasons).reduce((function(t,e){var i=e[0],o=e[1];return(0,r.__spreadArray)((0,r.__spreadArray)([],t,!0),["".concat(i,": ").concat(o)],!1)}),[]).join(", ");return{blueprint:o,changedParams:l,blueprintManagerId:n,reasons:C}},t.prototype.formatItemsIfNeeded=function(t,e){var i,r=this,n=e,s=!1;return!function(t,e){if(t===e)return r.reasons.itemsAdded="items are the same object.",!1;if(!t)return r.reasons.itemsAdded="new items do not exist.",!1;if(!e||e&&0===e.length)return r.reasons.itemsAdded="old items do not exist.",!1;if(e.length>=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.width!==o.metaData.width||t.metaData.height!==o.metaData.height)||t.metaData&&"text"===t.metaData.type&&o.metaData&&"text"===o.metaData.type&&(t.metaData.html!==o.metaData.html||t.metaData.textStyle!==o.metaData.textStyle||t.metaData.editorHtml!==o.metaData.editorHtml);return n&&(r.reasons.items="items #".concat(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.J.convertDtoToLayoutItem(t))})),this.gettingMoreItems=!1,s=!0):(i=n.concat(t.slice(n.length).map((function(t){return o.J.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.PF)(t),c=(0,l.i)(s);r=(0,a.PF)((0,h.Ay)((0,u.FD)(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.A.scrollDirection.VERTICAL||!r.enableInfiniteScroll)&&(!!e.height&&e.height!==i.height),width:!i||!!e.width&&e.width!==i.width,scrollBase:e.scrollBase!==i.scrollBase};return Object.keys(o).reduce((function(t,e){return o[e]&&(a.reasons.container+="container.".concat(e," has changed. ")),t||o[e]}),!1)}({newContainerParams:t,oldContainerParams:e,oldOptions:i}))&&(c.A.updateParams({options:r,container:t}),l=!0,n=Object.assign({},t,c.A.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.A(r),this.layouter.createLayout(r)},t}())},12982:(t,e,i)=>{i.d(e,{A:()=>a});var r=i(34629),o=i(27385),n=i(98762),s=i(77017);const 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.CB.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.A.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.A.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}()},87565:(t,e,i)=>{i.d(e,{A:()=>n});var r=i(78387),o=i(69143);const n=function(){function t(t){this.uniqueId=o.A.generateUUID(),this.isGalleryGroup=!0,t.dto&&t.dto.dto&&(t.dto=t.dto.dto,o.A.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.Y({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}()},83427:(t,e,i)=>{i.d(e,{A:()=>a});var r=i(34629),o=i(69143),n=i(77017),s=i(6025);const a=function(){function t(t){this.uniqueId=o.A.generateUUID(),this.isGalleryItem=!0,this.createdBy=t.createdBy,this.createUrl=this.createUrl.bind(this),this.createMagnifiedUrl=this.createMagnifiedUrl.bind(this),this.createSecondMediaItemIfNeeded(t),this.update(t)}return t.prototype.createSecondMediaItemIfNeeded=function(e){var i;(null===(i=e.dto)||void 0===i?void 0:i.secondaryMedia)&&(this.secondaryMediaItem=new t(this.mapItemConfig(e)))},t.prototype.updateSecondaryMedia=function(t){this.secondaryMediaItem&&this.secondaryMediaItem.update(this.mapItemConfig(t))},t.prototype.mapItemConfig=function(t){var e={};return Object.assign(e,t.dto.secondaryMedia,t.dto.secondaryMedia.metadata),(0,r.__assign)((0,r.__assign)({},t),{dto:e,scheme:(0,r.__assign)((0,r.__assign)({},t.scheme),{maxHeight:e.height,maxWidth:e.width})})},t.prototype.update=function(t){if(this.createMediaUrl=t.createMediaUrl,t.dto&&t.dto.dto&&(t.dto=t.dto.dto,o.A.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.q({dto:e}).scheme)}if(this.dto){var i=this.dto.metaData||this.dto.metadata;i&&(this.dto.metaData=o.A.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(),this.updateSecondaryMedia(t)},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.A.resizeMethods.FILL,this.offset=t.offset,this.group=t.group,this.orientation=t.orientation,this.visibility=t.visibility},t.prototype.renderProps=function(t){var e=(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),i=(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,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:e,isDemo:this.isDemo,videoUrl:this.videoUrl,isExternalVideo:this.isExternalVideo,hasSecondaryMedia:this.hasSecondaryMedia},t);return this.hasSecondaryMedia&&(i.secondaryMediaItem=(0,r.__assign)((0,r.__assign)({},this.secondaryMediaItem.renderProps()),{style:(0,r.__assign)((0,r.__assign)({},e),{bgColor:this.secondaryMediaItem.bgColor})})),i},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.A.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.A.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.A.resizeMethods.FILL&&this.isCropped&&this.focalPoint,p={},d=this.url;return this.isText?Object.assign.apply(Object,(0,r.__spreadArray)([{}],Object.values(n.A.urlTypes).map((function(t){var e;return(e={})[t]=function(){return""},e})),!1)):((this.isVideo||this.isVideoPlaceholder)&&(d=null===(l=this.poster)||void 0===l?void 0:l.url,o.A.isExternalUrl(this.url)?p[n.A.urlTypes.VIDEO]=function(){return h.url}:p[n.A.urlTypes.VIDEO]=function(){return u(h,h.url,n.A.resizeMethods.VIDEO,e,i)}),p[n.A.urlTypes.HIGH_RES]=function(){return u(h,d,t,e,i,s,c)},p[n.A.urlTypes.LOW_RES]=function(){return u(h,d,h.cubeImages&&t!==n.A.resizeMethods.FIT?n.A.resizeMethods.FILL:n.A.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.A.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 o.A.isMeaningfulString(this.metadata.alt)&&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.A.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 ".concat(t.pageName);case"AnchorLink":return"Scroll to ".concat(t.anchorName);case"ExternalLink":return"".concat(t.url);case"EmailLink":return"Email ".concat(t.recipient);case"PhoneLink":return"Call ".concat(t.phoneNumber);case"DocumentLink":return"Open ".concat(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 - ".concat(t.pageName):"PAGE";case"AnchorLink":return"ANCHOR - ".concat(t.anchorName);case"ExternalLink":return"LINK - ".concat(t.url);case"EmailLink":return"EMAIL - ".concat(t.recipient);case"PhoneLink":return"PHONE - ".concat(t.phoneNumber);case"DocumentLink":return"DOCUMENT - ".concat(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.A.get(this,"metadata.link.target")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"linkOpenType",{get:function(){return this.metadata.link&&!o.A.isUndefined(this.metadata.link.target)?this.unprotectedLinkOpenType:this.metadata.link&&!o.A.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}()},85706:(t,e,i)=>{i.d(e,{J:()=>a});var r=i(34629),o=i(83427),n=i(87565),s=i(69143),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.A.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;s{i.d(e,{V:()=>r});var r=function(){function t(t,e,i,r,o){this.idx=t,this.groups=[],this.height=0,this.width=e,this.left=i,this.cubedHeight=r,this.infoWidth=o||0}return t.prototype.addGroup=function(t){this.addGroups([t])},t.prototype.addGroups=function(t){var e=this;this.groups=this.groups.concat(t),t.forEach((function(t){t.columnIdx=e.idx,t.Column=e}))},Object.defineProperty(t.prototype,"totalWidth",{get:function(){return this.width+this.infoWidth},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}},enumerable:!1,configurable:!0}),t}()},78387:(t,e,i)=>{i.d(e,{Y:()=>l});var r=i(34629),o=i(6025),n={lll:"1,2h",llp:"1,3r",lpl:"1,2h",pll:"1,2h,3l",lpp:"1,2h,3r,3h",plp:"1,2h,3l,3r,3h",ppl:"1,2h,3l,3h",ppp:"1,2h,3l,3r,3h"},s={lll:"1,2v,3t,3b,3v",llp:"1,2v,3t,3v",lpl:"1,2v,3t,3b,3v",pll:"1,2v,3b,3v",lpp:"1,2v,3t",plp:"1,2v",ppl:"1,3b",ppp:"1,2h"},a={1:[[1]],2:[[1],[1,2],[2]],3:[[1],[1,2],[1,2,3],[2,3],[3]]},l=function(){function t(t){var e=this;if(this.idx=t.idx,this.stripIdx=t.stripIdx,this.inStripIdx=t.inStripIdx,this.top=t.top,this.showAllItems=t.showAllItems,this.isLastItems=t.isLastItems,this.dummyItems=[],this.targetItemSize=t.targetItemSize,this.items=t.items.map((function(t){return t.Group=e,t})),t.styleParams){var i=t.styleParams;this.scrollDirection=i.scrollDirection,this.cubeType=i.cubeType,this.cubeImages=i.cubeImages,this.isVertical=i.isVertical,this.minItemSize=i.minItemSize,this.collageAmount=i.collageAmount,this.collageDensity=i.collageDensity,this.groupTypes=String(i.groupTypes),this.repeatingGroupTypes=String(i.layoutParams.repeatingGroupTypes),this.rotatingCropRatios=String(i.rotatingCropRatios),this.chooseBestGroup=i.chooseBestGroup,this.externalInfoHeight=i.externalInfoHeight,this.externalInfoWidth=i.externalInfoWidth,this.imageMargin=i.imageMargin,this.groupSize=i.groupSize}this.visible=!0,this.rendered=!0,this.required=!0;for(var r=this.items.length;!this.isWithinMinItemSize&&r>0;)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.q((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}()},6025:(t,e,i)=>{i.d(e,{q:()=>n});var r=i(34629),o=i(25081),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.W.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.W.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.W.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}()},5619:(t,e,i)=>{i.d(e,{A:()=>h});var r=i(25081),o=i(6025),n=i(78387),s=i(73722),a=i(69772),l=i(52350);const 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.W.addDefaultStyleParams(t.styleParams),this.container=r.W.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.A.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.j({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.j({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.V(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.q({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}()},52350:(t,e,i)=>{i.d(e,{A:()=>o});var r=i(34629);const o=new(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}())},73722:(t,e,i)=>{i.d(e,{j:()=>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}()},25081:(t,e,i)=>{i.d(e,{W:()=>s});var r=i(34629),o=i(93523),n=i(99738),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=2585.chunk.min.js.map