1(("undefined"!=typeof self?self:this).webpackJsonp__wix_communities_blog_ooi=("undefined"!=typeof self?self:this).webpackJsonp__wix_communities_blog_ooi||[]).push([[8684],{62854:(t,e,i)=>{"use strict";i.d(e,{$:()=>r});var s=i(32410);function r(t){var e=(0,s.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 }")}},34793:(t,e,i)=>{"use strict";i.d(e,{v:()=>s.v});var s=i(78371)},78371:(t,e,i)=>{"use strict";i.d(e,{v:()=>l});var s=i(60751),r=i.n(s),o=i(97598),a=i.n(o),n=i(41220),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.getAttribute("href"))||"").replace(/^.*\/\/[^/]+/,""):"";return r().createElement("div",{id:"layout-fixer-"+t.id+t.isPrerenderMode,key:"layout-fixer-"+t.id+t.isPrerenderMode,style:{display:"none"}},t.isPrerenderMode&&r().createElement("link",{href:i,rel:"stylesheet",id:"layout-fixer-style-"+t.id}),r().createElement("script",{dangerouslySetInnerHTML:{__html:"try {\n window.requestAnimationFrame(function() {\n setTimeout(() => {\n ".concat((0,n.I)(t),"\n }, 0);\n });\n } catch (e) {\n console.warn('Cannot set layoutFixer css', e);\n }")}}))}catch(t){return r().createElement("div",{id:"layoutFixerErrors",style:{display:"none"}},t.toString())}};l.defaultProps={measureContainerId:""},l.propTypes={isPrerenderMode:a().bool,id:a().string,items:a().array,options:a().object,useNativeLayoutFixer:a().bool,containerPostProcess:a().shape({width:a().shape({percentage:a().number,addition:a().number}),height:a().shape({percentage:a().number,addition:a().number}),ios:a().shape({width:a().shape({percentage:a().number,addition:a().number}),height:a().shape({percentage:a().number,addition:a().number})})}),measureContainerId:a().string}},41220:(t,e,i)=>{"use strict";i.d(e,{I:()=>a});var s=i(62854),r=i(95372),o=i(99044);function a(t){var e,i,a,n,l,h,u,c,m,d,p,g,y,A,f,v,b,I,P,S,w,O,T,E,x,C,L,M,R,_,D,H,G,k,N,z,W=t.useNativeLayoutFixer,j=function(t){var e=t.items,i=t.rawOptions,a=void 0===i?t.options:i,n=t.useNativeLayoutFixer,l=t.customCreateGetOptionsFunc,h=e.slice(0,20).map((function(t){return"".concat((0,o.r)(t.mediaUrl),"_").concat(t.width||t.metaData.width,"_").concat(t.height||t.metaData.height)})).join("|");if(n){var u="function"==typeof l?l(a):(0,s.$)(a);return{hrefStr:"/_serverless/pro-gallery-native-layout-fixer/layoutCssNative?id=".concat(t.id,"&items=").concat(h,"&container="),getOptions:u}}var c=Object.entries((0,o.f)(a,r.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),F=j.hrefStr,B=j.getOptions,U=t.measureContainerId||"pro-gallery-"+t.id,V=function(e){return"\n ".concat(e,"\n var isVertical = options.includes('layoutParams_structure_scrollDirection:\"VERTICAL\"');\n var layoutFixerUrl = '").concat(F,"' + pgMeasures.top + '_' + pgMeasures.width + '_' + pgMeasures.height + '_' + window.innerHeight + '&options=' + options;
1\n document.getElementById('").concat("layout-fixer-style-"+t.id,"').setAttribute('href', encodeURI(layoutFixerUrl));\n ")};return V(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(B,")(ele);\n "):"\n var ele = document.getElementById('".concat(U,"');\n var pgMeasures = ele.getBoundingClientRect();\n var options = (").concat(B,")(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===(a=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===a?void 0:a.percentage)?"width * ".concat(null===(l=null===(n=null==t?void 0:t.containerPostProcess)||void 0===n?void 0:n.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===(m=null==t?void 0:t.containerPostProcess)||void 0===m?void 0:m.ios)||void 0===d?void 0:d.width.addition,")"):"width",";\n height = ").concat((null===(y=null===(g=null===(p=null==t?void 0:t.containerPostProcess)||void 0===p?void 0:p.ios)||void 0===g?void 0:g.height)||void 0===y?void 0:y.percentage)?"height * ".concat(null===(v=null===(f=null===(A=null==t?void 0:t.containerPostProcess)||void 0===A?void 0:A.ios)||void 0===f?void 0:f.height)||void 0===v?void 0:v.percentage):"height",";\n height = ").concat((null===(P=null===(I=null===(b=null==t?void 0:t.containerPostProcess)||void 0===b?void 0:b.ios)||void 0===I?void 0:I.height)||void 0===P?void 0:P.addition)?"height + (".concat(null===(O=null===(w=null===(S=null==t?void 0:t.containerPostProcess)||void 0===S?void 0:S.ios)||void 0===w?void 0:w.height)||void 0===O?void 0:O.addition,")"):"height",";\n } else {\n width = ").concat((null===(E=null===(T=null==t?void 0:t.containerPostProcess)||void 0===T?void 0:T.width)||void 0===E?void 0:E.percentage)?"width * ".concat(null===(x=t.containerPostProcess)||void 0===x?void 0:x.width.percentage):"width",";\n width = ").concat((null===(L=null===(C=null==t?void 0:t.containerPostProcess)||void 0===C?void 0:C.width)||void 0===L?void 0:L.addition)?"width + (".concat(null===(M=t.containerPostProcess)||void 0===M?void 0:M.width.addition,")"):"width",";\n height = ").concat((null===(_=null===(R=null==t?void 0:t.containerPostProcess)||void 0===R?void 0:R.height)||void 0===_?void 0:_.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===(k=null===(G=null==t?void 0:t.containerPostProcess)||void 0===G?void 0:G.height)||void 0===k?void 0:k.addition)?"height + (".concat(null===(z=null===(N=null==t?void 0:t.containerPostProcess)||void 0===N?void 0:N.height)||void 0===z?void 0:z.addition,")"):"height",";\n }\n\n pgMeasures = { top: pgMeasures.top, width, height };\n"))}},99044:(t,e,i)=>{"use strict";i.d(e,{f:()=>s,r:()=>r});var s=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}),{})},r=function(t){void 0===t&&(t="");for(var e=0,i=0;i<t.length;i++)e+=t.charCodeAt(i);return e}},95372:(t,e,i)=>{"use strict";i.d(e,{s:()=>s});var s=["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"]},32410:(t,e,i)=>{"use strict";function s(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=s(t[i]);for(var o in r)r.hasOwnProperty(o)&&(e[i+"_"+o]=r[o])}else e[i]=t[i];return e}i.d(e,{YO:()=>s})},65319:(t,e,i)=>{var s=i(79937),r=i(43589);i(62378);function o(t){return null==t}function a(t){(t=function(t){var e={};for(var i in t)e[i]=t[i];return e}(t||{})).whiteList=t.whiteList||s.whiteList,t.onAttr=t.onAttr||s.onAttr,t.onIgnoreAttr=t.onIgnoreAttr||s.onIgnoreAttr,t.safeAttrValue=t.safeAttrValue||s.safeAttrValue,this.options=t}a.prototype.process=function(t){if(!(t=(t=t||"").toString()))return"";var e=this.options,i=e.whiteList,s=e.onAttr,a=e.onIgnoreAttr,n=e.safeAttrValue;return r(t,(function(t,e,r,l,h){var u=i[r],c=!1;if(!0===u?c=u:"function"==typeof u?c=u(l):u instanceof RegExp&&(c=u.test(l)),!0!==c&&(c=!1),l=n(r,l)){var m,d={position:e,sourcePosition:t,source:h,isWhite:c};return c?o(m=s(r,l,d))?r+":"+l:m:o(m=a(r,l,d))?void 0:m}}))},t.exports=a},79937:(t,e)=>{function i(){var t={"align-content":!1,"align-items":!1,"align-self":!1,"alignment-adjust":!1,"alignment-baseline":!1,all:!1,"anchor-point":!1,animation:!1,"animation-delay":!1,"animation-direction":!1,"animation-duration":!1,"animation-fill-mode":!1,"animation-iteration-count":!1,"animation-name":!1,"animation-play-state":!1,"animation-timing-function":!1,azimuth:!1,"backface-visibility":!1,background:!0,"background-attachment":!0,"background-clip":!0,"background-color":!0,"background-image":!0,"background-origin":!0,"background-position":!0,"background-repeat":!0,"background-size":!0,"baseline-shift":!1,binding:!1,bleed:!1,"bookmark-label":!1,"bookmark-level":!1,"bookmark-state":!1,border:!0,"border-bottom":!0,"border-bottom-color":!0,"border-bottom-left-radius":!0,"border-bottom-right-radius":!0,"border-bottom-style":!0,"border-bottom-width":!0,"border-collapse":!0,"border-color":!0,"border-image":!0,"border-image-outset":!0,"border-image-repeat":!0,"border-image-slice":!0,"border-image-source":!0,"border-image-width":!0,"border-left":!0,"border-left-color":!0,"border-left-style":!0,"border-left-width":!0,"border-radius":!0,"border-right":!0,"border-right-color":!0,"border-right-style":!0,"border-right-width":!0,"border-spacing":!0,"border-style":!0,"border-top":!0,"border-top-color":!0,"border-top-left-radius":!0,"border-top-right-radius":!0,"border-top-style":!0,"border-top-width":!0,"border-width":!0,bottom:!1,"box-decoration-break":!0,"box-shadow":!0,"box-sizing":!0,"box-snap":!0,"box-suppress":!0,"break-after":!0,"break-before":!0,"break-inside":!0,"caption-side":!1,chains:!1,clear:!0,clip:!1,"clip-path":!1,"clip-rule":!1,color:!0,"color-interpolation-filters":!0,"column-count":!1,"column-fill":!1,"column-gap":!1,"column-rule":!1,"column-rule-color":!1,"column-rule-style":!1,"column-rule-width":!1,"column-span":!1,"column-width":!1,columns:!1,contain:!1,content:!1,"counter-increment":!1,"counter-reset":!1,"counter-set":!1,crop:!1,cue:!1,"cue-after":!1,"cue-before":!1,cursor:!1,direction:!1,display:!0,"display-inside":!0,"display-list":!0,"display-outside":!0,"dominant-baseline":!1,elevation:!1,"empty-cells":!1,filter:!1,flex:!1,"flex-basis":!1,"flex-direction":!1,"flex-flow":!1,"flex-grow":!1,"flex-shrink":!1,"flex-wrap":!1,float:!1,"float-offset":!1,"flood-color":!1,"flood-opacity":!1,"flow-from":!1,"flow-into":!1,font:!0,"font-family":!0,"font-feature-settings":!0,"font-kerning":!0,"font-language-override":!0,"font-size":!0,"font-size-adjust":!0,"font-stretch":!0,"font-style":!0,"font-synthesis":!0,"font-variant":!0,"font-variant-alternates":!0,"font-variant-caps":!0,"font-variant-east-asian":!0,"font-variant-ligatures":!0,"font-variant-numeric":!0,"font-variant-position":!0,"font-weight":!0,grid:!1,"grid-area":!1,"grid-auto-columns":!1,"grid-auto-flow":!1,"grid-auto-rows":!1,"grid-column":!1,"grid-column-end":!1,"grid-column-start":!1,"grid-row":!1,"grid-row-end":!1,"grid-row-start":!1,"grid-template":!1,"grid-template-areas":!1,"grid-template-columns":!1,"grid-template-rows":!1,"hanging-punctuation":!1,height:!0,hyphens:!1,icon:!1,"image-orientation":!1,"image-resolution":!1,"ime-mode":!1,"initial-letters":!1,"inline-box-align":!1,"justify-content":!1,"justify-items":!1,"justify-self":!1,left:!1,"letter-spacing":!0,"lighting-color":!0,"line-box-contain":!1,"line-break":!1,"line-grid":!1,"line-height":!1,"line-snap":!1,"line-stacking":!1,"line-stacking-ruby":!1,"line-stacking-shift":!1,"line-stacking-strategy":!1,"list-style":!0,"list-style-image":!0,"list-style-position":!0,"list-style-type":!0,margin:!0,"margin-bottom":!0,"margin-left":!0,"margin-right":!0,"margin-top":!0,"marker-offset":!1,"marker-side":!1,marks:!1,mask:!1,"mask-box":!1,"mask-box-outset":!1,"mask-box-repeat":!1,"mask-box-slice"
1:!1,"mask-box-source":!1,"mask-box-width":!1,"mask-clip":!1,"mask-image":!1,"mask-origin":!1,"mask-position":!1,"mask-repeat":!1,"mask-size":!1,"mask-source-type":!1,"mask-type":!1,"max-height":!0,"max-lines":!1,"max-width":!0,"min-height":!0,"min-width":!0,"move-to":!1,"nav-down":!1,"nav-index":!1,"nav-left":!1,"nav-right":!1,"nav-up":!1,"object-fit":!1,"object-position":!1,opacity:!1,order:!1,orphans:!1,outline:!1,"outline-color":!1,"outline-offset":!1,"outline-style":!1,"outline-width":!1,overflow:!1,"overflow-wrap":!1,"overflow-x":!1,"overflow-y":!1,padding:!0,"padding-bottom":!0,"padding-left":!0,"padding-right":!0,"padding-top":!0,page:!1,"page-break-after":!1,"page-break-before":!1,"page-break-inside":!1,"page-policy":!1,pause:!1,"pause-after":!1,"pause-before":!1,perspective:!1,"perspective-origin":!1,pitch:!1,"pitch-range":!1,"play-during":!1,position:!1,"presentation-level":!1,quotes:!1,"region-fragment":!1,resize:!1,rest:!1,"rest-after":!1,"rest-before":!1,richness:!1,right:!1,rotation:!1,"rotation-point":!1,"ruby-align":!1,"ruby-merge":!1,"ruby-position":!1,"shape-image-threshold":!1,"shape-outside":!1,"shape-margin":!1,size:!1,speak:!1,"speak-as":!1,"speak-header":!1,"speak-numeral":!1,"speak-punctuation":!1,"speech-rate":!1,stress:!1,"string-set":!1,"tab-size":!1,"table-layout":!1,"text-align":!0,"text-align-last":!0,"text-combine-upright":!0,"text-decoration":!0,"text-decoration-color":!0,"text-decoration-line":!0,"text-decoration-skip":!0,"text-decoration-style":!0,"text-emphasis":!0,"text-emphasis-color":!0,"text-emphasis-position":!0,"text-emphasis-style":!0,"text-height":!0,"text-indent":!0,"text-justify":!0,"text-orientation":!0,"text-overflow":!0,"text-shadow":!0,"text-space-collapse":!0,"text-transform":!0,"text-underline-position":!0,"text-wrap":!0,top:!1,transform:!1,"transform-origin":!1,"transform-style":!1,transition:!1,"transition-delay":!1,"transition-duration":!1,"transition-property":!1,"transition-timing-function":!1,"unicode-bidi":!1,"vertical-align":!1,visibility:!1,"voice-balance":!1,"voice-duration":!1,"voice-family":!1,"voice-pitch":!1,"voice-range":!1,"voice-rate":!1,"voice-stress":!1,"voice-volume":!1,volume:!1,"white-space":!1,widows:!1,width:!0,"will-change":!1,"word-break":!0,"word-spacing":!0,"word-wrap":!0,"wrap-flow":!1,"wrap-through":!1,"writing-mode":!1,"z-index":!1};return t}var s=/javascript\s*\:/gim;e.whiteList=i(),e.getDefaultWhiteList=i,e.onAttr=function(t,e,i){},e.onIgnoreAttr=function(t,e,i){},e.safeAttrValue=function(t,e){return s.test(e)?"":e}},78720:(t,e,i)=>{var s=i(79937),r=i(65319);for(var o in(e=t.exports=function(t,e){return new r(e).process(t)}).FilterCSS=r,s)e[o]=s[o];"undefined"!=typeof window&&(window.filterCSS=t.exports)},43589:(t,e,i)=>{var s=i(62378);t.exports=function(t,e){";"!==(t=s.trimRight(t))[t.length-1]&&(t+=";");var i=t.length,r=!1,o=0,a=0,n="";function l(){if(!r){var i=s.trim(t.slice(o,a)),l=i.indexOf(":");if(-1!==l){var h=s.trim(i.slice(0,l)),u=s.trim(i.slice(l+1));if(h){var c=e(o,n.length,h,u,i);c&&(n+=c+"; ")}}}o=a+1}for(;a<i;a++){var h=t[a];if("/"===h&&"*"===t[a+1]){var u=t.indexOf("*/",a+2);if(-1===u)break;o=(a=u+1)+1,r=!1}else"("===h?r=!0:")"===h?r=!1:";"===h?r||l():"\n"===h&&l()}return s.trim(n)}},62378:t=>{t.exports={indexOf:function(t,e){var i,s;if(Array.prototype.indexOf)return t.indexOf(e);for(i=0,s=t.length;i<s;i++)if(t[i]===e)return i;return-1},forEach:function(t,e,i){var s,r;if(Array.prototype.forEach)return t.forEach(e,i);for(s=0,r=t.length;s<r;s++)e.call(i,t[s],s,t)},trim:function(t){return String.prototype.trim?t.trim():t.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(t){return String.prototype.trimRight?t.trimRight():t.replace(/(\s*$)/g,"")}}},60274:(t,e,i)=>{var s=i(78720).FilterCSS,r=i(78720).getDefaultWhiteList,o=i(64215);function a(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height","loading"],ins:["datetime"],kbd:[],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rows
1pan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}}var n=new s;function l(t){return t.replace(h,"<").replace(u,">")}var h=/</g,u=/>/g,c=/"/g,m=/"/g,d=/&#([a-zA-Z0-9]*);?/gim,p=/:?/gim,g=/&newline;?/gim,y=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,A=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,f=/u\s*r\s*l\s*\(.*/gi;function v(t){return t.replace(c,""")}function b(t){return t.replace(m,'"')}function I(t){return t.replace(d,(function(t,e){return"x"===e[0]||"X"===e[0]?String.fromCharCode(parseInt(e.substr(1),16)):String.fromCharCode(parseInt(e,10))}))}function P(t){return t.replace(p,":").replace(g," ")}function S(t){for(var e="",i=0,s=t.length;i<s;i++)e+=t.charCodeAt(i)<32?" ":t.charAt(i);return o.trim(e)}function w(t){return t=S(t=P(t=I(t=b(t))))}function O(t){return t=l(t=v(t))}e.whiteList={a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height","loading"],ins:["datetime"],kbd:[],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]},e.getDefaultWhiteList=a,e.onTag=function(t,e,i){},e.onIgnoreTag=function(t,e,i){},e.onTagAttr=function(t,e,i){},e.onIgnoreTagAttr=function(t,e,i){},e.safeAttrValue=function(t,e,i,s){if(i=w(i),"href"===e||"src"===e){if("#"===(i=o.trim(i)))return"#";if("http://"!==i.substr(0,7)&&"https://"!==i.substr(0,8)&&"mailto:"!==i.substr(0,7)&&"tel:"!==i.substr(0,4)&&"data:image/"!==i.substr(0,11)&&"ftp://"!==i.substr(0,6)&&"./"!==i.substr(0,2)&&"../"!==i.substr(0,3)&&"#"!==i[0]&&"/"!==i[0])return""}else if("background"===e){if(y.lastIndex=0,y.test(i))return""}else if("style"===e){if(A.lastIndex=0,A.test(i))return"";if(f.lastIndex=0,f.test(i)&&(y.lastIndex=0,y.test(i)))return"";!1!==s&&(i=(s=s||n).process(i))}return i=O(i)},e.escapeHtml=l,e.escapeQuote=v,e.unescapeQuote=b,e.escapeHtmlEntities=I,e.escapeDangerHtml5Entities=P,e.clearNonPrintableCharacter=S,e.friendlyAttrValue=w,e.escapeAttrValue=O,e.onIgnoreTagStripAll=function(){return""},e.StripTagBody=function(t,e){"function"!=typeof e&&(e=function(){});var i=!Array.isArray(t),s=[],r=!1;return{onIgnoreTag:function(a,n,l){if(function(e){return!!i||-1!==o.indexOf(t,e)}(a)){if(l.isClosing){var h="[/removed]",u=l.position+10;return s.push([!1!==r?r:l.position,u]),r=!1,h}return r||(r=l.position),"[removed]"}return e(a,n,l)},remove:function(t){var e="",i=0;return o.forEach(s,(function(s){e+=t.slice(i,s[0]),i=s[1]})),e+=t.slice(i)}}},e.stripCommentTag=function(t){for(var e="",i=0;i<t.length;){var s=t.indexOf("\x3c!--",i);if(-1===s){e+=t.slice(i);break}e+=t.slice(i,s);var r=t.indexOf("--\x3e",s);if(-1===r)break;i=r+3}return e},e.stripBlankChar=function(t){var e=t.split("");return(e=e.filter((function(t){var e=t.charCodeAt(0);return 127!==e&&(!(e<=31)||(10===e||13===e))}))).join("")},e.attributeWrapSign='"',e.cssFilter=n,e.getDefaultCSSWhiteList=r},98071:(t,e,i)=>{var s=i(60274),r=i(74712),o=i(78421);function a(t,e){return new o(e).process(t)}(e=t.exports=a).filterXSS=a,e.FilterXSS=o,function(){for(var t in s)e[t]=s[t];for(var i in r)e[i]=r[i]}(),"undefined"!=typeof window&&(window.filterXSS=t.exports),"undefined"!=typeof self&&"undefined"!=typeof DedicatedWorkerGlobalScope&&self instanceof DedicatedWorkerGlobalScope&&(self.filterXSS=t.exports)},74712:(t,e,i)=>{var s=i(64215);function r(t){var e,i=s.spaceIndex(t);return e=-1===i?t.slice(1,-1):t.slice(1,i+1),"/"===(e=s.trim(e).toLowerCase()).slice(0,1)&&(e=e.slice(1)),"/"===e.slice(-1)&&(e=e.slice(0,-1)),e}function o(t){return"</"===t.slice(0,2)}var a=/[^a-zA-Z0-9\\_:.-]/gim;function n(t,e){for(;e<t.length;e++){var i=t[e];if(" "!==i)return"="===i?e:-1}}function l(t,e){for(;e<t.length;e++){var i=t[e];if(" "!==i)return"'"===i||'"'===i?e:-1}}function h(t,e){for(;e>0;e--){var i=t[e];if(" "!==i)return"="===i?e:-1}}function u(t){return function(t){return'"'===t[0]&&'"'===t[t.length-1]||"'"===t[0]&&"'"===t[t.length-1]}(t)?t.substr(1,t.length-2):t}
1e.parseTag=function(t,e,i){"use strict";var s="",a=0,n=!1,l=!1,h=0,u=t.length,c="",m="";t:for(h=0;h<u;h++){var d=t.charAt(h);if(!1===n){if("<"===d){n=h;continue}}else if(!1===l){if("<"===d){s+=i(t.slice(a,h)),n=h,a=h;continue}if(">"===d||h===u-1){s+=i(t.slice(a,n)),c=r(m=t.slice(n,h+1)),s+=e(n,s.length,c,m,o(m)),a=h+1,n=!1;continue}if('"'===d||"'"===d)for(var p=1,g=t.charAt(h-p);""===g.trim()||"="===g;){if("="===g){l=d;continue t}g=t.charAt(h-++p)}}else if(d===l){l=!1;continue}}return a<u&&(s+=i(t.substr(a))),s},e.parseAttr=function(t,e){"use strict";var i=0,r=0,o=[],c=!1,m=t.length;function d(t,i){if(!((t=(t=s.trim(t)).replace(a,"").toLowerCase()).length<1)){var r=e(t,i||"");r&&o.push(r)}}for(var p=0;p<m;p++){var g,y=t.charAt(p);if(!1!==c||"="!==y)if(!1===c||p!==r)if(/\s|\n|\t/.test(y)){if(t=t.replace(/\s|\n|\t/g," "),!1===c){if(-1===(g=n(t,p))){d(s.trim(t.slice(i,p))),c=!1,i=p+1;continue}p=g-1;continue}if(-1===(g=h(t,p-1))){d(c,u(s.trim(t.slice(i,p)))),c=!1,i=p+1;continue}}else;else{if(-1===(g=t.indexOf(y,p+1)))break;d(c,s.trim(t.slice(r+1,g))),c=!1,i=(p=g)+1}else c=t.slice(i,p),i=p+1,r='"'===t.charAt(i)||"'"===t.charAt(i)?i:l(t,p+1)}return i<t.length&&(!1===c?d(t.slice(i)):d(c,u(s.trim(t.slice(i))))),s.trim(o.join(" "))}},64215:t=>{t.exports={indexOf:function(t,e){var i,s;if(Array.prototype.indexOf)return t.indexOf(e);for(i=0,s=t.length;i<s;i++)if(t[i]===e)return i;return-1},forEach:function(t,e,i){var s,r;if(Array.prototype.forEach)return t.forEach(e,i);for(s=0,r=t.length;s<r;s++)e.call(i,t[s],s,t)},trim:function(t){return String.prototype.trim?t.trim():t.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(t){var e=/\s|\n|\t/.exec(t);return e?e.index:-1}}},78421:(t,e,i)=>{var s=i(78720).FilterCSS,r=i(60274),o=i(74712),a=o.parseTag,n=o.parseAttr,l=i(64215);function h(t){return null==t}function u(t){(t=function(t){var e={};for(var i in t)e[i]=t[i];return e}(t||{})).stripIgnoreTag&&(t.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),t.onIgnoreTag=r.onIgnoreTagStripAll),t.whiteList||t.allowList?t.whiteList=function(t){var e={};for(var i in t)Array.isArray(t[i])?e[i.toLowerCase()]=t[i].map((function(t){return t.toLowerCase()})):e[i.toLowerCase()]=t[i];return e}(t.whiteList||t.allowList):t.whiteList=r.whiteList,this.attributeWrapSign=!0===t.singleQuotedAttributeValue?"'":r.attributeWrapSign,t.onTag=t.onTag||r.onTag,t.onTagAttr=t.onTagAttr||r.onTagAttr,t.onIgnoreTag=t.onIgnoreTag||r.onIgnoreTag,t.onIgnoreTagAttr=t.onIgnoreTagAttr||r.onIgnoreTagAttr,t.safeAttrValue=t.safeAttrValue||r.safeAttrValue,t.escapeHtml=t.escapeHtml||r.escapeHtml,this.options=t,!1===t.css?this.cssFilter=!1:(t.css=t.css||{},this.cssFilter=new s(t.css))}u.prototype.process=function(t){if(!(t=(t=t||"").toString()))return"";var e=this,i=e.options,s=i.whiteList,o=i.onTag,u=i.onIgnoreTag,c=i.onTagAttr,m=i.onIgnoreTagAttr,d=i.safeAttrValue,p=i.escapeHtml,g=e.attributeWrapSign,y=e.cssFilter;i.stripBlankChar&&(t=r.stripBlankChar(t)),i.allowCommentTag||(t=r.stripCommentTag(t));var A=!1;i.stripIgnoreTagBody&&(A=r.StripTagBody(i.stripIgnoreTagBody,u),u=A.onIgnoreTag);var f=a(t,(function(t,e,i,r,a){var A={sourcePosition:t,position:e,isClosing:a,isWhite:Object.prototype.hasOwnProperty.call(s,i)},f=o(i,r,A);if(!h(f))return f;if(A.isWhite){if(A.isClosing)return"</"+i+">";var v=function(t){var e=l.spaceIndex(t);if(-1===e)return{html:"",closing:"/"===t[t.length-2]};var i="/"===(t=l.trim(t.slice(e+1,-1)))[t.length-1];return i&&(t=l.trim(t.slice(0,-1))),{html:t,closing:i}}(r),b=s[i],I=n(v.html,(function(t,e){var s=-1!==l.indexOf(b,t),r=c(i,t,e,s);return h(r)?s?(e=d(i,t,e,y))?t+"="+g+e+g:t:h(r=m(i,t,e,s))?void 0:r:r}));return r="<"+i,I&&(r+=" "+I),v.closing&&(r+=" /"),r+=">"}return h(f=u(i,r,A))?p(r):f}),p);return A&&(f=A.remove(f)),f},t.exports=u},98003:(t,e,i)=>{"use strict";i.d(e,{A:()=>u});var s=i(37296),r=i(51433),o=i(11854),a=i(47317),n=i(38762),l=i(9759),h=i(69337);const u=new class{createBlueprint({params:t,lastParams:e,existingBlueprint:i,blueprintManagerId:s,isUsingCustomInfoElements:r}){this.reasons={items:"",itemsAdded:"",options:"",container:""};let a={};try{const{container:s,items:n,options:l}=t,{container:h,items:u,options:c}=e,{formattedItems:m,changed:d}=this.formatItemsIfNeeded(n,u),{formattedOptions:p,changed:g}=this.formatOptionsIfNeeded(l,c,r),{formattedContainer:y,changed:A}=this.formatContainerIfNeeded(s,h,c,p||i.options,g),f=d||g||A;if(a={itemsChanged:d,optionsChanged:g,containerChanged:A},f||!i){i||(i={});const t=this.createStructure({formattedContainer:y||i.container,formattedItems:m||i.items,formattedOptions:p||i.options},f);p&&(i.options=p),m&&(i.items=m),y&&(i.container=y),i.structure=t;o.A.isHeightSetByGallery(i.options)&&(i.container.height=i.container.galleryHeight=t.height)}}catch(t){console.error("Could not create blueprint, error:",t)}return{blueprint:i,changedParams:a,blueprintManagerId:s,reasons:Object.entries(this.reasons).reduce(((t,[e,i])=>[...t,`${e}: ${i}`]),[]).join(", ")}}formatItemsIfNeeded(t,e){const i=e;let r,o=!1;return((t,e)=>{if(t===e)return this.reasons.itemsAdded="items are the same object.",!1;
1if(!t)return this.reasons.itemsAdded="new items do not exist.",!1;if(!e||e&&0===e.length)return this.reasons.itemsAdded="old items do not exist.",!1;if(e.length>=t.length)return this.reasons.itemsAdded="more old items than new items.",!1;const i=e.reduce(((e,i,s)=>e&&i.id===t[s].itemId),!0);return i||(this.reasons.itemsAdded="items ids were changed. "),i})(t,i)?(r=i.concat(t.slice(i.length).map((t=>s.J.convertDtoToLayoutItem(t)))),this.gettingMoreItems=!1,o=!0):((t,e)=>t===e?(this.reasons.items="items are the same object.",!1):t?!e||e&&0===e.length?(this.reasons.items="old items do not exist.",!0):e.length!==t.length?(this.reasons.items="more new items than old items (or vice versa).",!0):t.some(((t,i)=>{const s=e[i];try{const e=!t||!s||t.itemId!==s.itemId||t.mediaUrl!==s.mediaUrl||t.measured!==s.measured||t.metaData&&s.metaData&&(t.metaData.type!==s.metaData.type||t.metaData.title!==s.metaData.title||t.metaData.description!==s.metaData.description)||t.metaData&&"text"===t.metaData.type&&s.metaData&&"text"===s.metaData.type&&(t.metaData.width!==s.metaData.width||t.metaData.height!==s.metaData.height||t.metaData.html!==s.metaData.html||t.metaData.textStyle!==s.metaData.textStyle||t.metaData.editorHtml!==s.metaData.editorHtml);return e&&(this.reasons.items=`items #${i} id was changed.`),e}catch(t){return this.reasons.items="an error occured",!0}}),!1):(this.reasons.items="new items do not exist.",!1))(t,i)&&(r=t.map((t=>Object.assign(s.J.convertDtoToLayoutItem(t)))),this.gettingMoreItems=!1,o=!0),{formattedItems:r,changed:o}}formatOptionsIfNeeded(t,e,i){let s,r=!1;if(((t,e)=>{if(!t)return this.reasons.options="no new options.",!1;if(!e)return this.reasons.options="no old options.",!0;try{const i={};Object.keys(e).sort().forEach((t=>i[t]=e[t]));const s={};Object.keys(t).sort().forEach((e=>s[e]=t[e]));const r=JSON.stringify(s)!==JSON.stringify(i);return r&&(this.reasons.options="options were changed."),r}catch(t){return console.error("Could not compare options",t),!1}})(t,e)){const e=(0,a.i)(t);s=(0,n.Ay)((0,l.FD)(e),i),r=!0}return{formattedOptions:s,changed:r}}formatContainerIfNeeded(t,e,i,s,r){let a=!1;let n;return(r||(({newContainerParams:t,oldContainerParams:e,oldOptions:i})=>{if(!i||!e)return this.reasons.container="no old container or options. ",!0;if(!t)return this.reasons.container="no new container.",!1;const r={height:!o.A.isHeightSetByGallery(s)&&(!!t.height&&t.height!==e.height),width:!e||!!t.width&&t.width!==e.width,scrollBase:(null==t?void 0:t.scrollBase)!==(null==e?void 0:e.scrollBase)};return Object.keys(r).reduce(((t,e)=>(r[e]&&(this.reasons.container+=`container.${e} has changed. `),t||r[e])),!1)})({newContainerParams:t,oldContainerParams:e,oldOptions:i}))&&(h.A.updateParams({options:s,container:t}),a=!0,n=Object.assign({},t,h.A.getGalleryDimensions())),{formattedContainer:n,changed:a}}createStructure({formattedContainer:t,formattedOptions:e,formattedItems:i}){const s={items:i,container:t,styleParams:e,options:{showAllItems:!0,skipVisibilitiesCalc:!0,useLayoutStore:!1}};return s.options.createLayoutOnInit=!1,this.layouter=new r.A(s),this.layouter.createLayout(s)}}},10672:(t,e,i)=>{"use strict";i.d(e,{A:()=>n});var s=i(98003),r=i(98902),o=i(6940),a=i(59955);class n{constructor({id:t}){this.id=t+"'s blueprintsManager",this.currentState={},this.existingBlueprint={},this.lastBlueprintId=0,this.cache={},this.api={},this.currentState.totalItemsCount=1/0,this.onBlueprintReady=()=>{},this.loopingItems=!1}init(t){this.api=t.api,this.currentState.totalItemsCount=t&&t.totalItemsCount||this.currentState.totalItemsCount,r.CB.setDeviceType(t.deviceType)}setCurrentBlueprint(t){this.lastBlueprintId=t}async createBlueprint(t={}){const 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,t=Object.assign(Object.assign({},t),await this.completeParams(t)),t=this.duplicateItemsForSlideshowLoopIfNeeded(t);const{blueprintManagerId:i,blueprint:r,changedParams:o,reasons:a}=await(async t=>(this.setCurrentBlueprint(t.blueprintManagerId),this.api.createBlueprintImp?await this.api.createBlueprintImp(t):await s.A.createBlueprint(t)))({params:t,lastParams:this.currentState,existingBlueprint:this.existingBlueprint,blueprintManagerId:this.id+e,isUsingCustomInfoElements:this.currentState.isUsingCustomInfoElements});if(i!==this.lastBlueprintId)return;const n=Object.values(o).some((t=>!!t)),l=Object.keys(r).length>0;return this.updateLastParamsIfNeeded(t,o,l),await new Promise((t=>setTimeout(t,0))),l&&this.api.onBlueprintReady&&this.api.onBlueprintReady({blueprint:r,blueprintChanged:n,reasons:a}),this.cache[t]=this.existingBlueprint=r}async getMoreItems(t){let e;t<this.currentState.totalItemsCount?(e=await this.api.fetchMoreItems(t),e&&this.createBlueprint({items:e})):this.existingBlueprint.options[o.A.behaviourParams.gallery.horizontal.loop]&&this.duplicateItemsAndCreateBlueprint()}resetItemLooping(){this.loopingItems=!1}createInitialBlueprint(t){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,t=this.duplicateItemsForSlideshowLoopIfNeeded(t);const{blueprint:e,changedParams:i,reasons:r}=s.A.createBlueprint({params:t,lastParams:this.currentState,existingBlueprint:this.existingBlueprint,blueprintManagerId:this.id,isUsingCustomInfoElements:this.currentState.isUsingCustomInfoElements}),o=Object.values(i).some((t=>!!t)),a=Object.keys(e).length>0;return this.updateLastParamsIfNeeded(t,i,a),a&&this.api.onBlueprintReady&&this.api.onBlueprintReady({blueprint:e,blueprintChanged:o,reasons:r,initialBlueprint:!0}),a&&(this.cache[t]=this.existingBlueprint=e)}createSingleBlueprint(t={}){let{isUsingCustomInfoElements:e}=t;const{blueprint:i}=s.A.createBlueprint({params:t,lastParams:{},existingBlueprint:{},blueprintManagerId:this.id+"_singleBlueprint",isUsingCustomInfoElements:e});return i}duplicateGalleryItems({items:t,duplicateFactor:e=1}){const i=(t=t||this.currentState.items).slice(0,this.currentState.totalItemsCount);for(let s=0;s<e;s++)t=t.concat(...i);return this.loopingItems=!0,t}duplicateItemsAndCreateBlueprint(){const t=this.duplicateGalleryItems({});this.createBlueprint({items:t})}duplicateItemsForSlideshowLoopIfNeeded(t){const{items:e,options:i}=t,{totalItemsCount:s}=this.currentState,r=e.length<30&&e.length===s,n=i[o.A.layoutParams.structure.scrollDirection]===a.A[o.A.layoutParams.structure.scrollDirection].HORIZONTAL;if(i[o.A.behaviourParams.gallery.horizontal.loop]&&r&&n){const i=Math.ceil(30/e.length)-1;return Object.assign(Object.assign({},t),{items:this.duplicateGalleryItems({items:e,duplicateFactor:i})})}return t}async completeParams(t){let{container:e,items:i,options:s,id:r}=t||{};return e=await this.fetchContainerIfNeeded(e),i=await this.fetchItemsIfNeeded(i),s=await this.fetchOptionsIfNeeded(s),{container:e,items:i,options:s,id:r}}async fetchContainerIfNeeded(t){return(t=>{let e=!0;return t&&Object.keys(t).length>0&&(e=!1),e})(t)&&(t=this.api.fetchContainer&&await this.api.fetchContainer()||this.currentState.container),t}async fetchItemsIfNeeded(t){return(t=>{let e=!0;return t&&t.length>0&&(e=!1),e})(t)&&(t=!this.loopingItems&&this.api.fetchItems&&await this.api.fetchItems()||this.currentState.items),t}async fetchOptionsIfNeeded(t){return(t=>{let e=!0;return t&&Object.keys(t).length>0&&(e=!1),e})(t)&&(t=this.api.fetchOptions&&await this.api.fetchOptions()||this.currentState.options),t}updateLastParamsIfNeeded({items:t,container:e,options:i},s,r){r&&(this.currentState.items=s.itemsChanged?t:this.currentState.items,this.currentState.container=s.containerChanged?Object.assign({},e):this.currentState.container,this.currentState.options=s.optionsChanged?Object.assign({},i):this.currentState.options)}needMoreItems(t){this.getMoreItems(t)}}},47317:(t,e,i)=>{"use strict";i.d(e,{i:()=>n});
1var s=i(6940),r=i(45191),o=i(59955);const a=(0,r.YO)({layoutParams:{crop:{ratios:[1],method:o.A[s.A.layoutParams.crop.method].FILL,enable:!1,enableSmartCrop:!1,cropOnlyFill:!1,alignment:o.A[s.A.layoutParams.crop.alignment].CENTER},structure:{galleryLayout:-1,galleryRatio:{value:0,includeExternalInfo:!1},scrollDirection:o.A[s.A.layoutParams.structure.scrollDirection].VERTICAL,gallerySpacing:0,itemSpacing:10,enableStreching:!0,responsiveMode:o.A[s.A.layoutParams.structure.responsiveMode].FIT_TO_SCREEN,scatter:{randomScatter:0,manualScatter:""},layoutOrientation:o.A[s.A.layoutParams.structure.layoutOrientation].HORIZONTAL,groupsOrder:o.A[s.A.layoutParams.structure.groupsOrder].BY_HEIGHT,numberOfGridRows:1,numberOfColumns:3,columnRatios:[]},groups:{groupByOrientation:!0,numberOfGroupsPerRow:0,density:.8,groupSize:3,allowedGroupTypes:[o.A[s.A.layoutParams.groups.allowedGroupTypes][1],o.A[s.A.layoutParams.groups.allowedGroupTypes]["2h"],o.A[s.A.layoutParams.groups.allowedGroupTypes]["2v"],o.A[s.A.layoutParams.groups.allowedGroupTypes]["3t"],o.A[s.A.layoutParams.groups.allowedGroupTypes]["3b"],o.A[s.A.layoutParams.groups.allowedGroupTypes]["3l"],o.A[s.A.layoutParams.groups.allowedGroupTypes]["3r"]],repeatingGroupTypes:[]},thumbnails:{size:120,spacing:4,marginToGallery:0,enable:!1,position:o.A[s.A.layoutParams.thumbnails.position].OUTSIDE_GALLERY,alignment:o.A[s.A.layoutParams.thumbnails.alignment].BOTTOM,ratio:1},navigationArrows:{enable:!0,position:o.A[s.A.layoutParams.navigationArrows.position].ON_GALLERY,padding:23,size:23,verticalAlignment:o.A[s.A.layoutParams.navigationArrows.verticalAlignment].ITEM_CENTER,type:o.A[s.A.layoutParams.navigationArrows.type].DEFAULT_ARROW,container:{type:o.A[s.A.layoutParams.navigationArrows.container.type].SHADOW,backgroundColor:"",borderRadius:-1}},targetItemSize:{unit:o.A[s.A.layoutParams.targetItemSize.unit].SMART,value:30,minimum:120},info:{sizeUnits:o.A[s.A.layoutParams.info.sizeUnits].PERCENT,width:50,height:200,spacing:10,layout:o.A[s.A.layoutParams.info.layout].NO_BACKGROUND,placement:o.A[s.A.layoutParams.info.placement].OVERLAY,border:{width:0,radius:0,color:""}}},behaviourParams:{item:{clickAction:o.A[s.A.behaviourParams.item.clickAction].NOTHING,video:{playTrigger:o.A[s.A.behaviourParams.item.video.playTrigger].HOVER,loop:!0,volume:0,enableControls:!1,speed:1,enablePlayButton:!1,enableThumbnailsPlayButton:!1,enablePlaceholder:!0},overlay:{hoveringBehaviour:o.A[s.A.behaviourParams.item.overlay.hoveringBehaviour].APPEARS,hoverAnimation:o.A[s.A.behaviourParams.item.overlay.hoverAnimation].NO_EFFECT,position:o.A[s.A.behaviourParams.item.overlay.position].LEFT,size:100,sizeUnits:o.A[s.A.behaviourParams.item.overlay.sizeUnits].PERCENT,padding:0},content:{hoverAnimation:o.A[s.A.behaviourParams.item.content.hoverAnimation].NO_EFFECT,loader:o.A[s.A.behaviourParams.item.content.loader].BLUR,placementAnimation:o.A[s.A.behaviourParams.item.content.placementAnimation].NO_EFFECT,magnificationValue:2,tiltAngleValue:-4},secondaryMedia:{trigger:o.A[s.A.behaviourParams.item.secondaryMedia.trigger].OFF,behaviour:o.A[s.A.behaviourParams.item.secondaryMedia.behaviour].APPEARS},threeDimensionalScene:{controls:{enableAutoRotate:!1,enablePan:!0,enableRotate:!0,enableZoom:!1},transform:{rotation:"x0y0z0",scale:"x1y1z1",position:"x0y0z0"},playTrigger:o.A[s.A.behaviourParams.item.threeDimensionalScene.playTrigger].HOVER,enablePlayButton:!1,enableThumbnailsPlayButton:!1,enablePlaceholder:!0}},gallery:{blockContextMenu:!0,layoutDirection:o.A[s.A.behaviourParams.gallery.layoutDirection].LEFT_TO_RIGHT,scrollAnimation:o.A[s.A.behaviourParams.gallery.scrollAnimation].NO_EFFECT,enableIndexingShareLinks:!0,horizontal:{enableScrollSnap:!1,navigationDuration:400,blockScroll:!1,loop:!1,slideTransition:o.A[s.A.behaviourParams.gallery.horizontal.slideTransition].EASE,slideAnimation:o.A[s.A.behaviourParams.gallery.horizontal.slideAnimation].SCROLL,autoSlide:{behaviour:o.A[s.A.behaviourParams.gallery.horizontal.autoSlide.behaviour].OFF,interval:4,pauseOnHover:!0,speed:200},slideshowInfo:{buttonsAlignment:o.A[s.A.behaviourParams.gallery.horizontal.slideshowInfo.buttonsAlignment].CENTER,enablePlayButton:!1,enableCounter:!1}},vertical:{loadMore:{enable:!1,text:"",amount:o.A[s.A.behaviourParams.gallery.vertical.loadMore.amount].ALL}}}},stylingParams:{itemBorderWidth:0,itemBorderRadius:0,itemEnableShadow:!1,itemBorderColor:"",itemShadowBlur:20,itemShadowDirection:135,itemShadowSize:10,itemShadowOpacityAndColor:"",arrowsColor:""},fixedColumns:0});function n(t){const e=Object.assign({},a,t);return Object.keys(e).forEach((t=>{void 0===e[t]&&(e[t]=a[t])})),e}},69337:(t,e,i)=>{"use strict";i.d(e,{A:()=>a});var s=i(59955),r=i(26565),o=i(6940);const a=new class{constructor(){this.options={},this.container={},this.id="",this._cache={}}getOrPutInCache(t,e){return this._cache[t]||(this._cache[t]=e()),this._cache[t]}dumpCache(){this._cache={}}updateParams({options:t,container:e,id:i}){this.dumpCache(),this.id=i||this.id,this.options=t||this.options,this.container=e||this.container,this.fixHeightForHorizontalGalleryIfNeeded()}getGalleryDimensions(){return this.getOrPutInCache("galleryDimensions",(()=>{const t={galleryWidth:Math.ceil(this.getGalleryWidth()),galleryHeight:Math.ceil(this.getGalleryHeight()),scrollBase:this.container.scrollBase?Math.ceil(this.container.scrollBase):0,height:Math.ceil(this.container.height),width:Math.ceil(this.container.width)};return this.container.externalScrollBase&&(t.scrollBase+=this.container.externalScrollBase),this.options[o.A.layoutParams.thumbnails.enable]&&this.options[o.A.layoutParams.thumbnails.position]===s.A[o.A.layoutParams.thumbnails.position].OUTSIDE_GALLERY&&(t.galleryHeight-=this.getThumbnailHeightDelta(),t.galleryWidth-=this.getThumbnailWidthDelta()),this.options[o.A.layoutParams.thumbnails.enable]&&(t.navigationBarHeight=this.getThumbnailHeightDelta()||t.galleryHeight,t.navigationBarWidth=this.getThumbnailWidthDelta()||t.galleryWidth),t}))}getGalleryWidth(){return this.getOrPutInCache("galleryWidth",(()=>{let t=Math.floor(this.container.width)+2*this.getDimensionFix();return this.options[o.A.layoutParams.navigationArrows.position]===s.A[o.A.layoutParams.navigationArrows.position].OUTSIDE_GALLERY&&this.options[o.A.layoutParams.structure.scrollDirection]===s.A[o.A.layoutParams.structure.scrollDirection].HORIZONTAL&&(t-=2*(this.options[o.A.layoutParams.navigationArrows.size]+40+this.options[o.A.layoutParams.structure.itemSpacing]/2)),t}))}getGalleryHeight(){return this.getOrPutInCache("galleryHeight",(()=>Math.floor((this.container.height>0?this.container.height:0)+(()=>this.options[o.A.layoutParams.structure.scrollDirection]===s.A[o.A.layoutParams.structure.scrollDirection].HORIZONTAL?this.getDimensionFix():0)())))}getDimensionFix(){return this.getOrPutInCache("dimensionFix",(()=>Number(this.options[o.A.layoutParams.structure.itemSpacing]/2)-Number(this.options[o.A.layoutParams.structure.gallerySpacing])))}getGalleryRatio(){return this.getOrPutInCache("galleryRatio",(()=>{const t=this.getGalleryDimensions();return t.galleryWidth/t.galleryHeight}))}_getThumbnailDeltaSize(){return this.options[o.A.layoutParams.thumbnails.size]+this.options[o.A.layoutParams.structure.gallerySpacing]+this.options[o.A.layoutParams.thumbnails.marginToGallery]}getThumbnailHeightDelta(){switch(this.options[o.A.layoutParams.thumbnails.alignment]){case s.A[o.A.layoutParams.thumbnails.alignment].TOP:case s.A[o.A.layoutParams.thumbnails.alignment].BOTTOM:return this._getThumbnailDeltaSize();case s.A[o.A.layoutParams.thumbnails.alignment].RIGHT:case s.A[o.A.layoutParams.thumbnails.alignment].LEFT:return 0}}getThumbnailWidthDelta(){switch(this.options[o.A.layoutParams.thumbnails.alignment]){case s.A[o.A.layoutParams.thumbnails.alignment].TOP:case s.A[o.A.layoutParams.thumbnails.alignment].BOTTOM:return 0;case s.A[o.A.layoutParams.thumbnails.alignment].RIGHT:case s.A[o.A.layoutParams.thumbnails.alignment].LEFT:return this._getThumbnailDeltaSize()}}fixHeightForHorizontalGalleryIfNeeded(){if(this.options[o.A.layoutParams.structure.scrollDirection]===s.A[o.A.layoutParams.structure.scrollDirection].HORIZONTAL&&this.options[o.A.layoutParams.structure.galleryRatio.value]>0)if(this.options[o.A.layoutParams.thumbnails.enable]&&this.options[o.A.layoutParams.thumbnails.position]===s.A[o.A.layoutParams.thumbnails.position].OUTSIDE_GALLERY)switch(this.options[o.A.layoutParams.thumbnails.alignment]){case s.A[o.A.layoutParams.thumbnails.alignment].TOP:case s.A[o.A.layoutParams.thumbnails.alignment].BOTTOM:this.container.height=this.container.width*this.options[o.A.layoutParams.structure.galleryRatio.value]+this.getThumbnailHeightDelta();break;case s.A[o.A.layoutParams.thumbnails.alignment].RIGHT:case s.A[o.A.layoutParams.thumbnails.alignment].LEFT:this.container.height=(this.container.width-this.getThumbnailWidthDelta())*this.options[o.A.layoutParams.structure.galleryRatio.value]}else this.container.height=this.container.width*this.options[o.A.layoutParams.structure.galleryRatio.value],!this.options[o.A.layoutParams.structure.galleryRatio.includeExternalInfo]&&r.A.isRelevant(this.options)&&(this.container.height+=this.options.externalInfoHeight)}}},38762:(t,e,i)=>{"use strict";i.d(e,{Ay:()=>A,Xl:()=>m,Zf:()=>g,jT:()=>d,nS:()=>p,ow:()=>y,rs:()=>c});var s=i(11854),r=i(84094),o=i(88665),a=i(59955),n=i(17892),l=i(51484),h=i(55558),u=i(6940);const c=(t,e)=>t[u.A.layoutParams.targetItemSize.unit]===a.A[u.A.layoutParams.targetItemSize.unit].PIXEL&&t[u.A.layoutParams.targetItemSize.value]>0?t[u.A.layoutParams.targetItemSize.value]:t[u.A.layoutParams.targetItemSize.unit]===a.A[u.A.layoutParams.targetItemSize.unit].PERCENT&&t[u.A.layoutParams.targetItemSize.value]>0?(r.A&&r.A.innerWidth||980)*(t[u.A.layoutParams.targetItemSize.value]/100):e>0?e:t[u.A.layoutParams.targetItemSize.value],m=t=>{let e=Object.assign({},t);return e=d(e),e[u.A.layoutParams.structure.scrollDirection]!==a.A[u.A.layoutParams.structure.scrollDirection].VERTICAL&&e[u.A.layoutParams.structure.layoutOrientation]!==a.A[u.A.layoutParams.structure.layoutOrientation].VERTICAL||(e[u.A.layoutParams.groups.allowedGroupTypes]=[a.A[u.A.layoutParams.groups.allowedGroupTypes][1]],e[u.A.layoutParams.groups.groupSize]=1,e[u.A.layoutParams.groups.density]=0),e},d=t=>{let e=Object.assign({},t);return e.fixedColumns=0,e[u.A.layoutParams.structure.scrollDirection]!==a.A[u.A.layoutParams.structure.scrollDirection].VERTICAL&&e[u.A.layoutParams.structure.layoutOrientation]!==a.A[u.A.layoutParams.structure.layoutOrientation].VERTICAL||(e.fixedColumns=t[u.A.layoutParams.structure.responsiveMode]===a.A[u.A.layoutParams.structure.responsiveMode].SET_ITEMS_PER_ROW?e[u.A.layoutParams.structure.numberOfColumns]:0),e},p=t=>{let e=Object.assign({},t);const i=e[u.A.layoutParams.structure.layoutOrientation]===a.A[u.A.layoutParams.structure.layoutOrientation].VERTICAL;return e[u.A.layoutParams.structure.responsiveMode]=i?t[u.A.layoutParams.structure.responsiveMode]:a.A[u.A.layoutParams.structure.responsiveMode].FIT_TO_SCREEN,e},g=t=>{let e=Object.assign({},t);
1if(!s.A.isUndefined(t[u.A.layoutParams.structure.numberOfGridRows])&&t[u.A.layoutParams.structure.scrollDirection]===a.A[u.A.layoutParams.structure.scrollDirection].HORIZONTAL)switch(e[u.A.layoutParams.structure.numberOfColumns]=0,t[u.A.layoutParams.structure.numberOfGridRows]){case 1:default:e[u.A.layoutParams.groups.allowedGroupTypes]=[a.A[u.A.layoutParams.groups.allowedGroupTypes][1]],e[u.A.layoutParams.groups.groupSize]=1,e[u.A.layoutParams.groups.density]=0;break;case 2:e[u.A.layoutParams.groups.allowedGroupTypes]=[a.A[u.A.layoutParams.groups.allowedGroupTypes]["2v"]],e[u.A.layoutParams.groups.groupSize]=2,e[u.A.layoutParams.groups.density]=1;break;case 3:e[u.A.layoutParams.groups.allowedGroupTypes]=[a.A[u.A.layoutParams.groups.allowedGroupTypes]["3v"]],e[u.A.layoutParams.groups.groupSize]=3,e[u.A.layoutParams.groups.density]=1}return e},y=t=>{let e=Object.assign({},t);return e[u.A.layoutParams.crop.method]===a.A[u.A.layoutParams.crop.method].FIT&&(e[u.A.stylingParams.itemBorderWidth]=0,e[u.A.stylingParams.itemBorderRadius]=0,e[u.A.stylingParams.itemEnableShadow]=!1),e};const A=function(t,e){let i=Object.assign({},t);return s.A.isMobile()&&(i=(t=>{let e=Object.assign({},t);return e[u.A.layoutParams.structure.itemSpacing]>0&&(e[u.A.layoutParams.structure.itemSpacing]=Math.min(e[u.A.layoutParams.structure.itemSpacing],50)),e})(i)),i=(t=>{let e=Object.assign({},t);return a.A.isLayout("SLIDER")(e)||a.A.isLayout("COLUMN")(e)||a.A.isLayout("SLIDESHOW")(e)||(e[u.A.layoutParams.structure.layoutOrientation]===a.A[u.A.layoutParams.structure.layoutOrientation].HORIZONTAL||e[u.A.layoutParams.groups.groupSize]>1)&&(e[u.A.layoutParams.info.placement]=a.A[u.A.layoutParams.info.placement].OVERLAY),e})(i),i=(t=>{let e=Object.assign({},t);return t.EXPERIMENTALallowParallelInfos||(0,o.uF)(e[u.A.layoutParams.info.placement])||e[u.A.behaviourParams.item.overlay.hoveringBehaviour]===a.A[u.A.behaviourParams.item.overlay.hoveringBehaviour].NEVER_SHOW||(e[u.A.behaviourParams.item.overlay.hoveringBehaviour]=a.A[u.A.behaviourParams.item.overlay.hoveringBehaviour].APPEARS),e})(i),i=(t=>{let e=Object.assign({},t);return e[u.A.stylingParams.itemEnableShadow]&&e[u.A.layoutParams.structure.scrollDirection]===a.A[u.A.layoutParams.structure.scrollDirection].HORIZONTAL&&(e[u.A.stylingParams.itemEnableShadow]=!1),e})(i),i=(t=>{let e=Object.assign({},t);return e[u.A.stylingParams.itemEnableShadow]&&e[u.A.layoutParams.structure.scrollDirection]===a.A[u.A.layoutParams.structure.scrollDirection].VERTICAL&&(e[u.A.layoutParams.structure.gallerySpacing]=Math.max(e[u.A.layoutParams.structure.gallerySpacing],(e[u.A.stylingParams.itemShadowSize]||0)+(e[u.A.stylingParams.itemShadowBlur]||0))),e})(i),i=(t=>{let e=Object.assign({},t);return e[u.A.layoutParams.navigationArrows.position]===a.A[u.A.layoutParams.navigationArrows.position].OUTSIDE_GALLERY&&(e[u.A.layoutParams.navigationArrows.padding]=0),e})(i),i=(t=>{let e=Object.assign({},t);return e[u.A.layoutParams.structure.scrollDirection]===a.A[u.A.layoutParams.structure.scrollDirection].HORIZONTAL&&(e[u.A.layoutParams.structure.layoutOrientation]=a.A[u.A.layoutParams.structure.layoutOrientation].HORIZONTAL),e})(i),i=(t=>{let e=Object.assign({},t);return e[u.A.layoutParams.structure.scrollDirection]===a.A[u.A.layoutParams.structure.scrollDirection].VERTICAL&&(e[u.A.behaviourParams.gallery.horizontal.loop]=!1),e})(i),i=(t=>{let e=Object.assign({},t);return(e[u.A.layoutParams.structure.scrollDirection]===a.A[u.A.layoutParams.structure.scrollDirection].VERTICAL||e[u.A.layoutParams.groups.groupSize]>1||!e[u.A.layoutParams.crop.enable])&&(e[u.A.behaviourParams.gallery.horizontal.slideAnimation]=a.A[u.A.behaviourParams.gallery.horizontal.slideAnimation].SCROLL),e})(i),i=(t=>{let e=Object.assign({},t);return e.loadMoreButtonFont&&s.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),i=(0,n.A)(i,e),i=(t=>{let e=Object.assign({},t);const i=e[u.A.layoutParams.groups.allowedGroupTypes].length>=1&&"1"===e[u.A.layoutParams.groups.allowedGroupTypes].join(""),s=e[u.A.layoutParams.info.placement].split(",").filter((t=>!(0,o.WC)(t))).join(",");return(0,o.O9)(s)&&i||(e[u.A.layoutParams.navigationArrows.verticalAlignment]=a.A[u.A.layoutParams.navigationArrows.verticalAlignment].ITEM_CENTER),e})(i),i=(t=>{let e=Object.assign({},t);return e[u.A.behaviourParams.gallery.horizontal.slideshowInfo.enableCounter]?(e[u.A.behaviourParams.gallery.horizontal.autoSlide.behaviour]===a.A[u.A.behaviourParams.gallery.horizontal.autoSlide.behaviour].OFF&&(e[u.A.behaviourParams.gallery.horizontal.slideshowInfo.enableCounter]=!1),!1===a.A.isLayout("SLIDESHOW")(t)&&(e[u.A.behaviourParams.gallery.horizontal.slideshowInfo.enableCounter]=!1),e):e})(i),i=(t=>{let e=Object.assign({},t);return t[u.A.behaviourParams.gallery.horizontal.slideAnimation]!==a.A[u.A.behaviourParams.gallery.horizontal.slideAnimation].FADE&&t[u.A.behaviourParams.gallery.horizontal.slideAnimation]!==a.A[u.A.behaviourParams.gallery.horizontal.slideAnimation].DECK||!l.A.isRelevant(t)||(e[u.A.behaviourParams.gallery.horizontal.blockScroll]=!0),e})(i),i=(t=>{let e=Object.assign({},t);return t[u.A.layoutParams.navigationArrows.position]===a.A[u.A.layoutParams.navigationArrows.position].MOUSE_CURSOR&&h.A.isRelevant(t)&&(e[u.A.behaviourParams.item.video.enableControls]=!1),e})(i),i=(t=>{let e=Object.assign({},t);return s.A.isTouch()&&t[u.A.layoutParams.navigationArrows.position]===a.A[u.A.layoutParams.navigationArrows.position].MOUSE_CURSOR&&h.A.isRelevant(t)&&(e[u.A.layoutParams.navigationArrows.enable]=!1),e})(i),i=(t=>{let e=Object.assign({},t);return e[u.A.layoutParams.crop.cropOnlyFill]&&(e[u.A.layoutParams.crop.enable]=e[u.A.layoutParams.crop.method]===a.A[u.A.layoutParams.crop.method].FILL),e})(i),i}},45191:(t,e,i)=>{"use strict";function s(t,e,i,s=!0){let r=s?Object.assign({},t):t,o=e.split("_"),a=o.pop(),n=r;return o.forEach((t=>{"object"!=typeof n[t]&&(n[t]={}),n=n[t]})),n[a]=i,r}function r(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 s=r(t[i]);for(var o in s)s.hasOwnProperty(o)&&(e[i+"_"+o]=s[o])}else e[i]=t[i];return e}function o(t){return Object.entries(t).reduce(((t,[e,i])=>
1s(t,e,i,false)),{})}function a(...t){return o(Object.assign({},...t.map(r)))}i.d(e,{MF:()=>a,Mv:()=>o,YO:()=>r})},17892:(t,e,i)=>{"use strict";i.d(e,{A:()=>a});var s=i(88665),r=i(59955),o=i(6940);const a=(t,e)=>{let i=Object.assign({},t);return i[o.A.layoutParams.info.height]=function(t,e){if(!function(t,e){return(0,s.D3)(t[o.A.layoutParams.info.placement])&&e}(t,e))return 0;return t[o.A.layoutParams.info.height]}(i,e),i.externalInfoHeight=function(t,e){let i=e;e>0&&(0,s.D3)(t[o.A.layoutParams.info.placement])&&t[o.A.layoutParams.info.layout]===r.A[o.A.layoutParams.info.layout].SEPARATED_BACKGROUND&&(i+=t[o.A.layoutParams.info.spacing],i+=2*t[o.A.layoutParams.info.border.width]);return i}(i,i[o.A.layoutParams.info.height]),i.externalInfoWidth=function(t,e){if(!function(t,e){const i=t[o.A.layoutParams.structure.scrollDirection]===r.A[o.A.layoutParams.structure.scrollDirection].VERTICAL&&t[o.A.layoutParams.structure.layoutOrientation]===r.A[o.A.layoutParams.structure.layoutOrientation].VERTICAL&&1===t[o.A.layoutParams.groups.groupSize];return i&&(0,s.rU)(t[o.A.layoutParams.info.placement])&&e}(t,e))return 0;let i=0;i=t[o.A.layoutParams.info.sizeUnits]===r.A[o.A.layoutParams.info.sizeUnits].PERCENT?Math.min(100,Math.max(0,t[o.A.layoutParams.info.width]))/100:t[o.A.layoutParams.info.width];return i}(i,e),i}},62763:(t,e,i)=>{"use strict";i.d(e,{A:()=>d});var s=i(59955),r=i(6940),o=i(11854);function a({activeIndex:t,prevActiveIndex:e,activeIndexOffsetMemory:i,items:s}){const r=s.length;if(t===e)return i;t=o.A.inRange(t,r);const a=Math.abs(e-t),n=Math.abs(e-r-t),l=Math.abs(e+r-t);return l<n&&l<a?i-r:n<l&&n<a?i+r:i}function n(t,e){var i;return(i=e,o.A.uniqueBy(i,"id").filter((t=>void 0!==t.idx)).sort(((t,e)=>t.idx-e.idx))).map((e=>({item:t.find((t=>t.id===e.id)),thumbnailItem:e,idx:e.idx})))}function l({horizontalThumbnails:t,containerWidth:e,containerHeight:i,thumbnailWidth:s,thumbnailHeight:r}){return t?{width:e,height:r}:{width:s,height:i}}function h({width:t,height:e,horizontalThumbnails:i,thumbnailWidth:s,thumbnailHeight:r}){return i?Math.ceil(t/s):Math.ceil(e/r)}function u({horizontalThumbnails:t,width:e,height:i,activeIndex:s,thumbnailSizeWithSpacing:r,itemsCount:o}){const a={overflow:"visible",width:e,height:i},n=t?"left":"top",l=r*(s%o),h=(t?e:i)/2-r/2;return Object.assign(Object.assign({},a),{[n]:l<h?0:h-l})}function c({thumbnailAlignment:t,thumbnailsMarginToGallery:e}){if(t===s.A[r.A.layoutParams.thumbnails.alignment].BOTTOM||t===s.A[r.A.layoutParams.thumbnails.alignment].TOP){const i=t===s.A[r.A.layoutParams.thumbnails.alignment].TOP;return{marginTop:i?0:e,marginBottom:i?e:0}}const i=t===s.A[r.A.layoutParams.thumbnails.alignment].LEFT;return{marginLeft:i?0:e,marginRight:i?e:0}}function m({thumbnailAlignment:t,thumbnailSizeWithSpacing:e,offset:i,isRTL:o}){const a=i*e;return t===s.A[r.A.layoutParams.thumbnails.alignment].BOTTOM||t===s.A[r.A.layoutParams.thumbnails.alignment].TOP?{[o?"right":"left"]:a}:{[o?"bottom":"top"]:a}}const d={getThumbnailsData:function({options:t,activeIndex:e,items:i,thumbnailAlignment:d,galleryStructure:p,containerWidth:g,containerHeight:y,activeIndexOffsetMemory:A=e,prevActiveIndex:f=e}){const v=n(i,p.galleryItems),b=(A=a({activeIndex:e,activeIndexOffsetMemory:A,items:v,prevActiveIndex:f}))+e,I=t[r.A.behaviourParams.gallery.layoutDirection]===s.A[r.A.behaviourParams.gallery.layoutDirection].RIGHT_TO_LEFT;o.A.isVerbose()&&console.log("creating thumbnails for idx",e);const P=t[r.A.layoutParams.thumbnails.size],S=t[r.A.layoutParams.thumbnails.ratio]||1,w=d===s.A[r.A.layoutParams.thumbnails.alignment].BOTTOM||d===s.A[r.A.layoutParams.thumbnails.alignment].TOP,O=w?P*S:P,T=w?P:P/S,E=O+t[r.A.layoutParams.thumbnails.spacing],x=T+t[r.A.layoutParams.thumbnails.spacing],{width:C,height:L}=l({horizontalThumbnails:w,containerWidth:g,containerHeight:y,thumbnailWidth:O,thumbnailHeight:T}),M=h({width:C,height:L,horizontalThumbnails:w,thumbnailWidth:O,thumbnailHeight:T}),R=M%2==1?M:M+1,_=(R-1)/2,D=b%v.length-_,H=D+R,G=o.A.sliceArrayIfAvailable(v,D,H),k=u({horizontalThumbnails:w,width:C,height:L,thumbnailSizeWithSpacing:w?E:x,activeIndex:b,itemsCount:v.length}),N=I?Object.assign(Object.assign({},k),{left:void 0,top:void 0,right:k.left,bottom:k.top}):k,z=c({thumbnailAlignment:d,thumbnailsMarginToGallery:t[r.A.layoutParams.thumbnails.marginToGallery]});return{items:G.map((({item:t,thumbnailItem:e,idx:i},s)=>{const r=s+G[0].idx;return{thumbnailItem:e,item:t,location:m({thumbnailAlignment:d,offset:r,isRTL:I,thumbnailSizeWithSpacing:w?E:x}),idx:i}})),thumbnailsMargins:z,horizontalThumbnails:w,thumbnailsStyle:N,activeIndexOffsetMemory:A,thumbnailWidth:O,thumbnailHeight:T}},getThumbnailsContainerSize:l,getNumberOfThumbnails:h,getThumbnailsStyles:u,getThumbnailsContainerMargin:c,getThumbnailLocation:m,calculateActiveIndexOffset:a,clearGalleryItems:n}},88059:(t,e,i)=>{"use strict";i.d(e,{D:()=>l,L:()=>n});var s=i(38762),r=i(6940),o=i(59955);const a=t=>{let e=Object.assign({},t);return e[r.A.layoutParams.structure.galleryLayout]=o.A[r.A.layoutParams.structure.galleryLayout].ALTERNATE,e[r.A.layoutParams.crop.method]=o.A[r.A.layoutParams.crop.method].FILL,e[r.A.layoutParams.crop.enable]=!0,e[r.A.layoutParams.crop.ratios]=[1],e[r.A.layoutParams.info.placement]=o.A[r.A.layoutParams.info.placement].OVERLAY,e[r.A.layoutParams.structure.scrollDirection]=o.A[r.A.layoutParams.structure.scrollDirection].VERTICAL,e[r.A.layoutParams.structure.responsiveMode]=o.A[r.A.layoutParams.structure.responsiveMode].SET_ITEMS_PER_ROW,e[r.A.layoutParams.structure.gallerySpacing]=0,e[r.A.layoutParams.structure.layoutOrientation]=o.A[r.A.layoutParams.structure.layoutOrientation].VERTICAL,e[r.A.layoutParams.groups.groupSize]=3,e[r.A.layoutParams.groups.density]=.48,e[r.A.layoutParams.groups.allowedGroupTypes]=[o.A[r.A.layoutParams.groups.allowedGroupTypes][1],o.A[r.A.layoutParams.groups.allowedGroupTypes]["2h"],o.A[r.A.layoutParams.groups.allowedGroupTypes]["2v"],o.A[r.A.layoutParams.groups.allowedGroupTypes]["3t"],o.A[r.A.layoutParams.groups.allowedGroupTypes]["3b"],o.A[r.A.layoutParams.groups.allowedGroupTypes]["3l"],o.A[r.A.layoutParams.groups.allowedGroupTypes]["3r"],o.A[r.A.layoutParams.groups.allowedGroupTypes]["3v"],o.A[r.A.layoutParams.groups.allowedGroupTypes]["3h"]],e[r.A.layoutParams.targetItemSize.value]=86,e[r.A.layoutParams.targetItemSize.minimum]=50,e[r.A.layoutParams.groups.groupByOrientation]=!0,e[r.A.layoutParams.groups.repeatingGroupTypes]=[o.A[r.A.layoutParams.groups.allowedGroupTypes][1],o.A[r.A.layoutParams.groups.allowedGroupTypes]["2h"],o.A[r.A.layoutParams.groups.allowedGroupTypes][1],o.A[r.A.layoutParams.groups.allowedGroupTypes]["2h"]],e[r.A.layoutParams.crop.enableSmartCrop]=!1,e[r.A.layoutParams.structure.scatter.randomScatter]=0,e[r.A.layoutParams.structure.scatter.manualScatter]="",e[r.A.layoutParams.structure.numberOfColumns]=1,e[r.A.layoutParams.groups.numberOfGroupsPerRow]=0,e[r.A.layoutParams.structure.groupsOrder]=o.A[r.A.layoutParams.structure.groupsOrder].BY_HEIGHT,e.fixedColumns=1,e},n=a({}),l=t=>{let e=Object.assign({},t);return e=a(e),e.targetItemSize=(0,s.rs)(e),e}}
1,9231:(t,e,i)=>{"use strict";i.d(e,{D:()=>l,L:()=>n});var s=i(38762),r=i(6940),o=i(59955);const a=t=>{let e=Object.assign({},t);return e[r.A.layoutParams.structure.galleryLayout]=o.A[r.A.layoutParams.structure.galleryLayout].BRICKS,e[r.A.layoutParams.crop.method]=o.A[r.A.layoutParams.crop.method].FILL,e[r.A.layoutParams.crop.enable]=!0,e[r.A.layoutParams.info.placement]=o.A[r.A.layoutParams.info.placement].OVERLAY,e[r.A.layoutParams.structure.scrollDirection]=o.A[r.A.layoutParams.structure.scrollDirection].VERTICAL,e[r.A.layoutParams.structure.gallerySpacing]=0,e[r.A.layoutParams.structure.layoutOrientation]=o.A[r.A.layoutParams.structure.layoutOrientation].VERTICAL,e[r.A.layoutParams.groups.groupSize]=3,e[r.A.layoutParams.groups.density]=.8,e[r.A.layoutParams.groups.allowedGroupTypes]=[o.A[r.A.layoutParams.groups.allowedGroupTypes][1],o.A[r.A.layoutParams.groups.allowedGroupTypes]["2h"],o.A[r.A.layoutParams.groups.allowedGroupTypes]["2v"],o.A[r.A.layoutParams.groups.allowedGroupTypes]["3t"],o.A[r.A.layoutParams.groups.allowedGroupTypes]["3b"],o.A[r.A.layoutParams.groups.allowedGroupTypes]["3l"],o.A[r.A.layoutParams.groups.allowedGroupTypes]["3r"],o.A[r.A.layoutParams.groups.allowedGroupTypes]["3v"],o.A[r.A.layoutParams.groups.allowedGroupTypes]["3h"]],e[r.A.behaviourParams.gallery.horizontal.loop]=!1,e[r.A.layoutParams.structure.responsiveMode]=o.A[r.A.layoutParams.structure.responsiveMode].SET_ITEMS_PER_ROW,e[r.A.layoutParams.targetItemSize.value]=400,e[r.A.layoutParams.targetItemSize.minimum]=50,e[r.A.layoutParams.groups.groupByOrientation]=!0,e[r.A.layoutParams.groups.repeatingGroupTypes]=[o.A[r.A.layoutParams.groups.allowedGroupTypes]["2h"]],e[r.A.layoutParams.crop.enableSmartCrop]=!1,e[r.A.layoutParams.structure.scatter.randomScatter]=0,e[r.A.layoutParams.structure.scatter.manualScatter]="",e[r.A.layoutParams.structure.numberOfColumns]=1,e[r.A.layoutParams.groups.numberOfGroupsPerRow]=0,e[r.A.layoutParams.structure.groupsOrder]=o.A[r.A.layoutParams.structure.groupsOrder].BY_HEIGHT,e[r.A.layoutParams.crop.ratios]=[.707,1.414,1.414,.707],e.fixedColumns=1,e},n=a({}),l=t=>{let e=Object.assign({},t);return e=a(e),e.targetItemSize=(0,s.rs)(e),e}},37322:(t,e,i)=>{"use strict";i.d(e,{D:()=>l,L:()=>n});var s=i(38762),r=i(6940),o=i(59955);const a=t=>{let e=Object.assign({},t);return e[r.A.layoutParams.structure.galleryLayout]=o.A[r.A.layoutParams.structure.galleryLayout].COLLAGE,e[r.A.layoutParams.crop.enable]=!1,o.A[r.A.layoutParams.info.placement].OVERLAY,e[r.A.layoutParams.groups.groupSize]=3,e[r.A.layoutParams.groups.allowedGroupTypes]=[o.A[r.A.layoutParams.groups.allowedGroupTypes][1],o.A[r.A.layoutParams.groups.allowedGroupTypes]["2h"],o.A[r.A.layoutParams.groups.allowedGroupTypes]["2v"],o.A[r.A.layoutParams.groups.allowedGroupTypes]["3t"],o.A[r.A.layoutParams.groups.allowedGroupTypes]["3b"],o.A[r.A.layoutParams.groups.allowedGroupTypes]["3l"],o.A[r.A.layoutParams.groups.allowedGroupTypes]["3r"]],e[r.A.behaviourParams.gallery.horizontal.loop]=!1,e[r.A.layoutParams.structure.numberOfGridRows]=1,e[r.A.layoutParams.structure.responsiveMode]=o.A[r.A.layoutParams.structure.responsiveMode].FIT_TO_SCREEN,e[r.A.layoutParams.structure.numberOfColumns]=0,e[r.A.layoutParams.crop.cropOnlyFill]=!1,e[r.A.behaviourParams.gallery.horizontal.slideAnimation]=o.A[r.A.behaviourParams.gallery.horizontal.slideAnimation].SCROLL,e.fixedColumns=0,e},n=a({}),l=t=>{let e=Object.assign({},t);e=a(e);const i=t[r.A.layoutParams.targetItemSize.value];return e.targetItemSize=(0,s.rs)(e,Math.round(5*i+500)),e}},99535:(t,e,i)=>{"use strict";i.d(e,{D:()=>l,L:()=>n});var s=i(38762),r=i(59955),o=i(6940);const a=t=>{let e=Object.assign({},t);return e[o.A.layoutParams.structure.galleryLayout]=r.A[o.A.layoutParams.structure.galleryLayout].COLUMN,e[o.A.layoutParams.crop.method]=r.A[o.A.layoutParams.crop.method].FILL,e[o.A.layoutParams.crop.enable]=!0,e[o.A.layoutParams.crop.ratios]=[.35],e[o.A.layoutParams.structure.scrollDirection]=r.A[o.A.layoutParams.structure.scrollDirection].HORIZONTAL,e[o.A.layoutParams.structure.layoutOrientation]=r.A[o.A.layoutParams.structure.layoutOrientation].HORIZONTAL,e[o.A.layoutParams.groups.groupSize]=1,e[o.A.layoutParams.groups.allowedGroupTypes]=[r.A[o.A.layoutParams.groups.allowedGroupTypes][1]],e[o.A.layoutParams.structure.responsiveMode]=r.A[o.A.layoutParams.structure.responsiveMode].SET_ITEMS_PER_ROW,e[o.A.layoutParams.structure.numberOfGrid
1Rows]=1,e[o.A.layoutParams.crop.enableSmartCrop]=!1,e[o.A.layoutParams.structure.numberOfColumns]=0,e[o.A.layoutParams.crop.cropOnlyFill]=!1,e[o.A.behaviourParams.gallery.horizontal.slideAnimation]=r.A[o.A.behaviourParams.gallery.horizontal.slideAnimation].SCROLL,e.fixedColumns=0,e},n=a({}),l=t=>{let e=Object.assign({},t);return e=a(e),e.targetItemSize=(0,s.rs)(e),e}},15581:(t,e,i)=>{"use strict";i.d(e,{D:()=>r});var s=i(45191);const r=t=>{try{const e=t.jsonStyleParams?JSON.parse(t.jsonStyleParams):{};return(0,s.MF)(t,(0,s.Mv)(e))}catch(t){return{}}}},74262:(t,e,i)=>{"use strict";i.d(e,{A:()=>o});var s=i(6940),r=i(59955);const o=function(t){t[s.A.behaviourParams.item.content.placementAnimation]=r.A[s.A.behaviourParams.item.content.placementAnimation].NO_EFFECT,t[s.A.behaviourParams.item.overlay.hoverAnimation]=r.A[s.A.behaviourParams.item.overlay.hoverAnimation].NO_EFFECT,t[s.A.behaviourParams.item.content.hoverAnimation]=r.A[s.A.behaviourParams.item.content.hoverAnimation].NO_EFFECT}},86510:(t,e,i)=>{"use strict";i.d(e,{D:()=>l,L:()=>n});var s=i(38762),r=i(6940),o=i(59955);const a=t=>{let e=Object.assign({},t);return e[r.A.layoutParams.structure.galleryLayout]=o.A[r.A.layoutParams.structure.galleryLayout].EMPTY,e},n=a({}),l=t=>{let e=Object.assign({},t);return e=a(e),e=(0,s.jT)(e),e.targetItemSize=(0,s.rs)(e,Math.round(9*e[r.A.layoutParams.targetItemSize.value]+100)),e}},80313:(t,e,i)=>{"use strict";i.d(e,{D:()=>l,L:()=>n});var s=i(38762),r=i(6940),o=i(59955);const a=t=>{let e=Object.assign({},t);return e[r.A.layoutParams.structure.galleryLayout]=o.A[r.A.layoutParams.structure.galleryLayout].FULLSIZE,e[r.A.layoutParams.crop.enable]=!0,e[r.A.layoutParams.crop.ratios]=["100%/100%"],e[r.A.layoutParams.crop.method]=o.A[r.A.layoutParams.crop.method].FILL,e[r.A.layoutParams.info.placement]=o.A[r.A.layoutParams.info.placement].OVERLAY,e[r.A.layoutParams.structure.scrollDirection]=o.A[r.A.layoutParams.structure.scrollDirection].HORIZONTAL,e[r.A.layoutParams.structure.gallerySpacing]=0,e[r.A.layoutParams.structure.layoutOrientation]=o.A[r.A.layoutParams.structure.layoutOrientation].HORIZONTAL,e[r.A.layoutParams.groups.groupSize]=1,e[r.A.layoutParams.groups.allowedGroupTypes]=[o.A[r.A.layoutParams.groups.allowedGroupTypes][1]],e[r.A.layoutParams.structure.responsiveMode]=o.A[r.A.layoutParams.structure.responsiveMode].SET_ITEMS_PER_ROW,e[r.A.layoutParams.structure.numberOfGridRows]=1,e[r.A.layoutParams.crop.enableSmartCrop]=!1,e[r.A.behaviourParams.gallery.horizontal.enableScrollSnap]=!0,e[r.A.layoutParams.crop.cropOnlyFill]=!0,e[r.A.layoutParams.structure.scatter.randomScatter]=0,e[r.A.layoutParams.structure.scatter.manualScatter]="",e[r.A.layoutParams.structure.itemSpacing]=0,e},n=a({}),l=t=>{let e=Object.assign({},t);return e=a(e),e.targetItemSize=(0,s.rs)(e),e}},93213:(t,e,i)=>{"use strict";i.d(e,{D:()=>l,L:()=>n});var s=i(38762),r=i(6940),o=i(59955);const a=t=>{let e=Object.assign({},t);return e[r.A.layoutParams.structure.galleryLayout]=o.A[r.A.layoutParams.structure.galleryLayout].GRID,e[r.A.layoutParams.crop.enable]=!0,e[r.A.layoutParams.structure.layoutOrientation]=o.A[r.A.layoutParams.structure.layoutOrientation].VERTICAL,e[r.A.layoutParams.groups.groupSize]=1,e[r.A.layoutParams.groups.allowedGroupTypes]=[o.A[r.A.layoutParams.groups.allowedGroupTypes][1]],e[r.A.behaviourParams.gallery.horizontal.loop]=!1,e[r.A.layoutParams.crop.enableSmartCrop]=!1,e[r.A.layoutParams.crop.cropOnlyFill]=!1,e[r.A.layoutParams.targetItemSize.minimum]=50,e[r.A.behaviourParams.gallery.horizontal.slideAnimation]=o.A[r.A.behaviourParams.gallery.horizontal.slideAnimation].SCROLL,e[r.A.layoutParams.groups.density]=0,e},n=a({}),l=t=>{let e=Object.assign({},t);return e=a(e),e.targetItemSize=(0,s.rs)(e,Math.round(8.5*e[r.A.layoutParams.targetItemSize.value]+150)),e=(0,s.Xl)(e),e=(0,s.Zf)(e),e=(0,s.ow)(e),e}},21380:(t,e,i)=>{"use strict";i.d(e,{D:()=>l,L:()=>n});var s=i(38762),r=i(6940),o=i(59955);const a=t=>{let e=Object.assign({},t);return e[r.A.layoutParams.structure.galleryLayout]=o.A[r.A.layoutParams.structure.galleryLayout].MASONRY,e[r.A.layoutParams.crop.enable]=!1,e[r.A.layoutParams.structure.scrollDirection]=o.A[r.A.layoutParams.structure.scrollDirection].VERTICAL,e[r.A.layoutParams.groups.groupSize]=1,e[r.A.layoutParams.groups.allowedGroupTypes]=[o.A[r.A.layoutParams.groups.allowedGroupTypes][1]],e[r.A.behaviourParams.gallery.horizontal.loop]=!1,e[r.A.layoutParams.crop.cropOnlyFill]=!1,e},n=a({}),l=t=>{let e=Object.assign({},t);e=a(e);const i=e[r.A.layoutParams.structure.layoutOrientation]===o.A[r.A.layoutParams.structure.layoutOrientation].VERTICAL,n=t[r.A.layoutParams.targetItemSize.value];return e.targetItemSize=(0,s.rs)(e,i?8*n+200:5*n+200),e=(0,s.Xl)(e),e=(0,s.nS)(e),e}},60059:(t,e,i)=>{"use strict";i.d(e,{D:()=>l,L:()=>n});var s=i(38762),r=i(6940),o=i(59955);const a=t=>{let e=Object.assign({},t);return e[r.A.layoutParams.structure.galleryLayout]=o.A[r.A.layoutParams.structure.galleryLayout].MIX,e[r.A.layoutParams.crop.method]=o.A[r.A.layoutParams.crop.method].FILL,e[r.A.layoutParams.crop.enable]=!0,e[r.A.layoutParams.crop.ratios]=[1],e[r.A.layoutParams.info.placement]=o.A[r.A.layoutParams.info.placement].OVERLAY,e[r.A.layoutParams.structure.scrollDirection]=o.A[r.A.layoutParams.structure.scrollDirection].VERTICAL,e[r.A.layoutParams.structure.gallerySpacing]=0,e[r.A.layoutParams.structure.layoutOrientation]=o.A[r.A.layoutParams.structure.layoutOrientation].VERTICAL,e[r.A.layoutParams.groups.groupSize]=3,e[r.A.layoutParams.groups.allowedGroupTypes]=[o.A[r.A.layoutParams.groups.allowedGroupTypes][1],o.A[r.A.layoutParams.groups.allowedGroupTypes]["2h"],o.A[r.A.layoutParams.groups.allowedGroupTypes]["2v"],o.A[r.A.layoutParams.groups.allowedGroupTypes]["3t"],o.A[r.A.layoutParams.groups.allowedGroupTypes]["3b"],o.A[r.A.layoutParams.groups.allowedGroupTypes]["3l"],o.A[r.A.layoutParams.groups.allowedGroupTypes]["3r"],o.A[r.A.layoutParams.groups.allowedGroupTypes]["3v"],o.A[r.A.layoutParams.groups.allowedGroupTypes]["3h"]],e[r.A.layoutParams.groups.density]=.48,e[r.A.layoutParams.structure.responsiveMode]=o.A[r.A.layoutParams.structure.responsiveMode].SET_ITEMS_PER_ROW,e[r.A.layoutParams.targetItemSize.value]=86,e[r.A.layoutParams.targetItemSize.minimum]=50,e[r.A.layoutParams.groups.groupByOrientation]=!0,e[r.A.layoutParams.groups.repeatingGroupTypes]=[o.A[r.A.layoutParams.groups.allowedGroupTypes][1],o.A[r.A.layoutParams.groups.allowedGroupTypes]["3l"],o.A[r.A.layoutParams.groups.allowedGroupTypes][1],o.A[r.A.layoutParams.groups.allowedGroupTypes]["3r"]],e[r.A.layoutParams.crop.enableSmartCrop]=!1,e[r.A.layoutParams.structure.scatter.randomScatter]=0,e[r.A.layoutParams.structure.scatter.manualScatter]="",e[r.A.layoutParams.structure.numberOfColumns]=1,e[r.A.layoutParams.groups.numberOfGroupsPerRow]=0,e[r.A.layoutParams.structure.groupsOrder]=o.A[r.A.layoutParams.structure.groupsOrder].BY_HEIGHT,e.fixedColumns=1,e},n=a({}),l=t=>{let e=Object.assign({},t);return e=a(e),e.targetItemSize=(0,s.rs)(e),e}},99088:(t,e,i)=>{"use strict";i.d(e,{D:()=>l,L:()=>n});var s=i(38762),r=i(6940),o=i(59955);const a=t=>{let e=Object.assign({},t);return e[r.A.layoutParams.structure.galleryLayout]=o.A[r.A.layoutParams.structure.galleryLayout].PANORAMA,e[r.A.layoutParams.crop.enable]=!1,e[r.A.layoutParams.structure.scrollDirection]=o.A[r.A.layoutParams.structure.scrollDirection].VERTICAL,e[r.A.layoutParams.structure.layoutOrientation]=o.A[r.A.layoutParams.structure.layoutOrientation].VERTICAL,e[r.A.layoutParams.groups.groupSize]=1,e[r.A.layoutParams.groups.allowedGroupTypes]=[o.A[r.A.layoutParams.groups.allowedGroupTypes][1]],e[r.A.layoutParams.structure.responsiveMode]=o.A[r.A.layoutParams.structure.responsiveMode].SET_ITEMS_PER_ROW,e[r.A.layoutParams.structure.numberOfColumns]=1,e[r.A.layoutParams.crop.cropOnlyFill]=!1,e[r.A.behaviourParams.gallery.horizontal.loop]=!1,e.fixedColumns=1,e},n=a({}),l=t=>{let e=Object.assign({},t);return e=a(e),e.targetItemSize=(0,s.rs)(e),e}},9759:(t,e,i)=>{"use strict";i.d(e,{FD:()=>v});var s=i(88059),r=i(9231),o=i(37322),a=i(80313),n=i(99535),l=i(93213),h=i(21380),u=i(60059),c=i(99088),m=i(60645),d=i(90137),p=i(56218),g=i(86510),y=i(15581),A=i(6940),f=i(59955);const v=t=>{const e=f.A[A.A.layoutParams.structure.galleryLayout];switch(t[A.A.layoutParams.structure.galleryLayout]){case e.MASONRY:return(0,h.D)(t);case e.GRID:return(0,l.D)(t);case e.THUMBNAIL:return(0,p.D)(t);case e.SLIDER:return(0,m.D)(t);case e.SLIDESHOW:return(0,d.D)(t);case e.PANORAMA:return(0,c.D)(t);case e.COLUMN:return(0,n.D)(t);case e.MAGIC:return console.error("A layout generated by the magicLayoutSeed is no longer supported as of Pro Gallery v5"),t;case e.FULLSIZE:return(0,a.D)(t);case e.BRICKS:return(0,r.D)(t);case e.MIX:return(0,u.D)(t);case e.ALTERNATE:return(0,s.D)(t);case e.EMPTY:return(0,g.D)(t);case e.JSON_FIXED:return(0,y.D)(t);case e.COLLAGE:default:return(0,o.D)(t)}};s.L,r.L,o.L,a.L,n.L,l.L,h.L,u.L,c.L,m.L,d.L,p.L,g.L},60645:(t,e,i)=>{"use strict";i.d(e,{D:()=>l,L:()=>n});var s=i(38762),r=i(6940),o=i(59955);const a=t=>{let e=Object.assign({},t);return e[r.A.layoutParams.structure.galleryLayout]=o.A[r.A.layoutParams.structure.galleryLayout].SLIDER,e[r.A.layoutParams.crop.enable]=!0,e[r.A.layoutParams.structure.scrollDirection]=o.A[r.A.layoutParams.structure.scrollDirection].HORIZONTAL,e[r.A.layoutParams.structure.layoutOrientation]=o.A[r.A.layoutParams.structure.layoutOrientation].HORIZONTAL,e[r.A.layoutParams.groups.groupSize]=1,e[r.A.layoutParams.groups.allowedGroupTypes]=[o.A[r.A.layoutParams.groups.allowedGroupTypes][1]],e[r.A.layoutParams.structure.numberOfGrid
1Rows]=1,e[r.A.layoutParams.crop.enableSmartCrop]=!1,e[r.A.layoutParams.structure.responsiveMode]=o.A[r.A.layoutParams.structure.responsiveMode].SET_ITEMS_PER_ROW,e[r.A.behaviourParams.gallery.horizontal.enableScrollSnap]=!0,e[r.A.layoutParams.crop.cropOnlyFill]=!0,e[r.A.behaviourParams.gallery.horizontal.slideAnimation]=o.A[r.A.behaviourParams.gallery.horizontal.slideAnimation].SCROLL,e},n=a({}),l=t=>{let e=Object.assign({},t);return e=a(e),e.targetItemSize=(0,s.rs)(e),e=(0,s.ow)(e),e}},90137:(t,e,i)=>{"use strict";i.d(e,{D:()=>h,L:()=>l});var s=i(38762),r=i(74262),o=i(6940),a=i(59955);const n=t=>{let e=Object.assign({},t);return e[o.A.layoutParams.structure.galleryLayout]=a.A[o.A.layoutParams.structure.galleryLayout].SLIDESHOW,e[o.A.layoutParams.crop.ratios]=["100%/100%"],e[o.A.layoutParams.structure.responsiveMode]=a.A[o.A.layoutParams.structure.responsiveMode].SET_ITEMS_PER_ROW,e[o.A.layoutParams.crop.enable]=!0,e[o.A.layoutParams.structure.scrollDirection]=a.A[o.A.layoutParams.structure.scrollDirection].HORIZONTAL,e[o.A.layoutParams.structure.gallerySpacing]=0,e[o.A.layoutParams.structure.layoutOrientation]=a.A[o.A.layoutParams.structure.layoutOrientation].HORIZONTAL,e[o.A.layoutParams.groups.groupSize]=1,e[o.A.layoutParams.info.placement]=a.A[o.A.layoutParams.info.placement].BELOW,e[o.A.layoutParams.groups.allowedGroupTypes]=[a.A[o.A.layoutParams.groups.allowedGroupTypes][1]],e[o.A.stylingParams.itemBorderWidth]=0,e[o.A.stylingParams.itemBorderRadius]=0,e[o.A.stylingParams.itemBorderColor]=void 0,e[o.A.layoutParams.structure.numberOfGridRows]=1,(0,r.A)(e),e[o.A.layoutParams.crop.enableSmartCrop]=!1,e[o.A.layoutParams.targetItemSize.value]=550,e[o.A.layoutParams.structure.numberOfColumns]=1,e[o.A.behaviourParams.gallery.horizontal.enableScrollSnap]=!0,e[o.A.layoutParams.crop.cropOnlyFill]=!1,e[o.A.layoutParams.structure.scatter.randomScatter]=0,e[o.A.layoutParams.structure.scatter.manualScatter]="",e[o.A.layoutParams.structure.itemSpacing]=0,e.fixedColumns=1,e},l=n({}),h=t=>{let e=Object.assign({},t);return e=n(e),e.targetItemSize=(0,s.rs)(e),e=(0,s.ow)(e),e}},56218:(t,e,i)=>{"use strict";i.d(e,{D:()=>l,L:()=>n});var s=i(38762),r=i(6940),o=i(59955);const a=t=>{let e=Object.assign({},t);return e[r.A.layoutParams.structure.galleryLayout]=o.A[r.A.layoutParams.structure.galleryLayout].THUMBNAIL,e[r.A.layoutParams.crop.ratios]=["100%/100%"],e[r.A.layoutParams.structure.responsiveMode]=o.A[r.A.layoutParams.structure.responsiveMode].SET_ITEMS_PER_ROW,e[r.A.layoutParams.crop.enable]=!0,e[r.A.layoutParams.info.placement]=o.A[r.A.layoutParams.info.placement].OVERLAY,e[r.A.layoutParams.structure.scrollDirection]=o.A[r.A.layoutParams.structure.scrollDirection].HORIZONTAL,e[r.A.layoutParams.structure.gallerySpacing]=0,e[r.A.layoutParams.structure.layoutOrientation]=o.A[r.A.layoutParams.structure.layoutOrientation].HORIZONTAL,e[r.A.layoutParams.groups.groupSize]=1,e[r.A.layoutParams.groups.allowedGroupTypes]=[o.A[r.A.layoutParams.groups.allowedGroupTypes][1]],e[r.A.layoutParams.structure.numberOfGridRows]=1,e[r.A.layoutParams.crop.enableSmartCrop]=!1,e[r.A.layoutParams.thumbnails.enable]=!0,e[r.A.behaviourParams.gallery.horizontal.enableScrollSnap]=!0,e[r.A.layoutParams.crop.cropOnlyFill]=!1,e[r.A.layoutParams.structure.scatter.randomScatter]=0,e[r.A.layoutParams.structure.scatter.manualScatter]="",e[r.A.layoutParams.structure.itemSpacing]=0,e[r.A.layoutParams.targetItemSize.value]=550,e},n=a({}),l=t=>{let e=Object.assign({},t);return e=a(e),e.targetItemSize=(0,s.rs)(e),e=(0,s.ow)(e),e}},51484:(t,e,i)=>{"use strict";i.d(e,{A:()=>n});var s=i(88845),r=i(59955),o=i(72417),a=i(6940);const n={title:"Slide Animation",isRelevant:t=>t[a.A.layoutParams.structure.scrollDirection]===r.A[a.A.layoutParams.structure.scrollDirection].HORIZONTAL&&1===t[a.A.layoutParams.groups.groupSize]&&t[a.A.layoutParams.crop.enable]&&JSON.stringify(t[a.A.layoutParams.crop.ratios])===JSON.stringify(["100%/100%"]),isRelevantDescription:'Set a Horizontal gallery ("Scroll Direction" as "Horizontal"), set "Max Group Size" to "1" and set "Crop Images" to true.',type:s.n.OPTIONS,default:r.A[a.A.behaviourParams.gallery.horizontal.slideAnimation].SCROLL,get options(){return(0,o.D)(a.A.behaviourParams.gallery.horizontal.slideAnimation)},description:"Choose the slide animation effect to be used when navigating between items in a slideshow"}}
1,16386:(t,e,i)=>{"use strict";i.d(e,{A:()=>n});var s=i(88845),r=i(59955),o=i(97740),a=i(6940);const n={title:"Show Navigation Arrows",description:"Choose if you want to have navigation arrows in a sliding gallery",isRelevant:t=>o.A.isRelevant(t)&&t[a.A.layoutParams.structure.scrollDirection]===r.A[a.A.layoutParams.structure.scrollDirection].HORIZONTAL,isRelevantDescription:'Set a Horizontal gallery ("Scroll Direction" as "Horizontal").',type:s.n.BOOLEAN,default:!0}},55558:(t,e,i)=>{"use strict";i.d(e,{A:()=>l});var s=i(88845),r=i(59955),o=i(72417),a=i(16386),n=i(6940);const l={title:"Navigation Arrows Position",isRelevant:t=>a.A.isRelevant(t)&&t[n.A.layoutParams.navigationArrows.enable],isRelevantDescription:'Set a Horizontal gallery ("Scroll Direction" as "Horizontal") and set "Show Navigation Arrows" to "true".',type:s.n.OPTIONS,default:r.A.layoutParams_navigationArrows_position.ON_GALLERY,get options(){return(0,o.D)("layoutParams_navigationArrows_position")},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 "}},26565:(t,e,i)=>{"use strict";i.d(e,{A:()=>n});var s=i(95787),r=i(88845),o=i(88665),a=i(6940);const n={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:t=>{const e=t[a.A.layoutParams.groups.repeatingGroupTypes].length>1?"1"===t[a.A.layoutParams.groups.repeatingGroupTypes].join(""):"1"===t[a.A.layoutParams.groups.allowedGroupTypes].join(""),i=t[a.A.layoutParams.info.placement].split(",").filter((t=>!(0,o.WC)(t))).join(",");return e&&(0,o.O9)(i)&&s.A.isRelevant(t)&&t[a.A.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:r.n.BOOLEAN}},95787:(t,e,i)=>{"use strict";i.d(e,{A:()=>o});var s=i(59955),r=i(6940);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:t=>t[r.A.layoutParams.structure.scrollDirection]===s.A[r.A.layoutParams.structure.scrollDirection].HORIZONTAL,isRelevantDescription:'Set a Horizontal gallery ("Scroll Direction" as "Horizontal")',default:0,type:i(88845).n.NUMBER}},97740:(t,e,i)=>{"use strict";i.d(e,{A:()=>n});var s=i(88845),r=i(59955),o=i(72417),a=i(6940);const n={title:"Scroll Direction",isRelevant:()=>!0,isRelevantDescription:"Always relevant.",type:s.n.OPTIONS,default:r.A[a.A.layoutParams.structure.scrollDirection].VERTICAL,get options(){return(0,o.D)(a.A.layoutParams.structure.scrollDirection)},description:"Toggle between two types of galleries. Vertical and Horizontal. Notice that many options are available only for a specific scroll direction."}},88845:(t,e,i)=>{"use strict";i.d(e,{n:()=>s});const s={NUMBER:"NUMBER",BOOLEAN:"BOOLEAN",OPTIONS:"OPTIONS",TEXT:"TEXT",COLOR_PICKER:"COLOR_PICKER",FONT_PICKER:"FONT_PICKER",BUTTON:"BUTTON",MULTISELECT:"MULTISELECT",MULTIREPEAT:"MULTIREPEAT",TRANSFORM:"TRANSFORM"}},72417:(t,e,i)=>{"use strict";i.d(e,{D:()=>o});var s=i(59955);const r=t=>t.replace(/_/g," ").split(" ").map((t=>t[0].toUpperCase()+t.substr(1).toLowerCase())).join(" "),o=t=>Object.entries(s.A[t]).map((([t,e])=>({value:e,title:r(t)})))},35300:(t,e,i)=>{"use strict";i.d(e,{A:()=>m});var s=i(55823),r=i(60751),o=i(59955),a=i(11854),n=i(10672),l=i(85943),h=i(78532),u=i(73087);class c extends r.Component{constructor(t){super(t),this.isUsingCustomInfoElements=this.isUsingCustomInfoElements.bind(this),this.blueprintsManager=new n.A({id:"layoutingGallery"}),this.blueprintsManager.init({deviceType:t.deviceType,api:{isUsingCustomInfoElements:this.isUsingCustomInfoElements,fetchMoreItems:e=>{"function"==typeof t.eventsListener&&t.eventsListener(o.A.events.NEED_MORE_ITEMS,e)},onBlueprintReady:({blueprint:t,blueprintChanged:e,initialBlueprint:i})=>{e?this.setBlueprint(t,i):a.A.isVerbose()&&console.count(">>> Blueprint not changed, not setting it")}}}),this.onNewProps(t,!0),this.state={blueprint:this.blueprintsManager.createInitialBlueprint(t)||null}}setBlueprint(t,e){e||this.setState({blueprint:t})}isUsingCustomInfoElements(){return!!this.galleryProps.customComponents.customHoverRenderer||!!this.galleryProps.customComponents.customInfoRenderer}onNewProps(t,e){const{eventsListener:i}=t,r=(0,s.__rest)(t,["eventsListener"]);this.galleryProps=Object.assign(Object.assign({},r),{eventsListener:(t,e,s)=>{t===o.A.events.NEED_MORE_ITEMS?this.blueprintsManager.getMoreItems(e):"function"==typeof i&&i(t,e,s)},id:t.id||"default-dom-id",customComponents:t.customComponents||{}}),e||this.blueprintsManager.createBlueprint(this.galleryProps).catch((t=>{console.error("Could not create a blueprint from the new props",t)}))}UNSAFE_componentWillReceiveProps(t){this.onNewProps(t,!1)}render(){const{blueprint:t,typeErrors:e}=this.state;return e||(t&&Object.keys(t).length>0?r.createElement(l.A,Object.assign({},this.galleryProps,t)):null)}async componentDidMount(){if(!1===(0,h.A)(this.props,a.A.isSSR())
1)return;const t=await i.e(8638).then(i.bind(i,53818)),{validate:e,typeErrorsUI:s}=t,r=e(this.state.blueprint.options);r.length>0&&this.setState({typeErrors:s(r)})}}const m=(0,u.i)(c)},48617:(t,e,i)=>{"use strict";i.d(e,{A:()=>b});var s=i(60751),r=i(11854),o=i(84094),a=i(59955),n=i(6940),l=i(98902),h=i(37296),u=i(13593),c=i(47963),m=i(70634),d=i(6364),p=i(21473),g=i(34653),y=i(3637),A=i(49352),f=i(42483);class v extends s.Component{constructor(t){super(t),this.updateVisibility=()=>{const t=(0,f.I)({container:this.props.container,scrollTop:this.state.scrollPosition.top});this.state.isInViewport!==t&&this.setState({isInViewport:t})},this.setVisibilityIfNeeded=(t,e)=>{const{container:i}=this.props,{scrollPosition:s}=this.state;i.scrollBase===t.container.scrollBase&&s.top===e.scrollPosition.top||this.updateVisibility()},this.findNeighborItem=(t,e)=>(0,A.A)(t,e,this.state.structure.items),r.A.isVerbose()&&console.count("[OOISSR] galleryContainer constructor",o.A.isMock),this.getMoreItemsIfNeeded=this.getMoreItemsIfNeeded.bind(this),this.setGotFirstScrollIfNeeded=this.setGotFirstScrollIfNeeded.bind(this),this.toggleLoadMoreItems=this.toggleLoadMoreItems.bind(this),this.scrollToItem=this.scrollToItem.bind(this),this.scrollToGroup=this.scrollToGroup.bind(this),this.eventsListener=this.eventsListener.bind(this),this.onGalleryScroll=this.onGalleryScroll.bind(this),this.getVisibleItems=this.getVisibleItems.bind(this),this.findNeighborItem=this.findNeighborItem.bind(this),this.setCurrentSlideshowViewIdx=this.setCurrentSlideshowViewIdx.bind(this),this.getIsScrollLessGallery=this.getIsScrollLessGallery.bind(this),this.onMouseEnter=this.onMouseEnter.bind(this),this.onMouseLeave=this.onMouseLeave.bind(this),this.mediaScrollHelper=new y.A([{getPlayTrigger:t=>t.behaviourParams_item_video_playTrigger,onSetPlayingIdx:t=>this.setState({playingVideoIdx:t}),supportedItemsFilter:t=>"video"===t.type||"image"===t.type&&(t.id.includes("_placeholder")||t.isVideoPlaceholder)},{getPlayTrigger:t=>t.behaviourParams_item_threeDimensionalScene_playTrigger,onSetPlayingIdx:t=>this.setState({playing3DIdx:t}),supportedItemsFilter:t=>"3d"===t.type}]);const e={scrollPosition:{top:0,left:0},showMoreClickedAtLeastOnce:!1,initialGalleryHeight:void 0,needToHandleShowMoreClick:!1,gotFirstScrollEvent:t.activeIndex>=0,playingVideoIdx:-1,playing3DIdx:-1,viewComponent:null,firstUserInteractionExecuted:!1,isInHover:!1,isInViewport:!0,scrollingElement:this.getScrollingElement()};this.state=e,this.layoutCss=[],this.initialGalleryState={};try{const e=this.propsToState(t);Object.keys(e).length>0&&(this.initialGalleryState=e)}catch(t){console.warn("Cannot create initial state from props",t)}this.state=Object.assign(Object.assign({},e),this.initialGalleryState)}initializeScrollPosition(){if(this.props.activeIndex>0){this.scrollToItem(this.props.activeIndex,!1,!0,0);const t=this.galleryStructure.items[this.props.activeIndex];this.onGalleryScroll(t.offset)}else void 0===this.props.activeIndex&&this.onGalleryScroll({top:o.A.scrollY})}isScrollingUnavailable(t,e){return this.isVerticalGallery()?t<=e+300:this.state.structure.width<this.state.container.width+300}async getMoreItemsIfScrollIsDisabled(t,e){if(this.isScrollingUnavailable(t,e)){const t=this.state.items.length;this.getMoreItemsIfNeeded(0).then((()=>
1{if(this.state.items.length>t){const{body:t,documentElement:e}=document,i=o.A.innerHeight,s=Math.max(t.scrollHeight,t.offsetHeight,e.clientHeight,e.scrollHeight,e.offsetHeight);this.getMoreItemsIfScrollIsDisabled(s,i)}}))}}componentDidMount(){o.C.stopUsingMock();const{body:t,documentElement:e}=document,i=o.A.innerHeight,s=Math.max(t.scrollHeight,t.offsetHeight,e.clientHeight,e.scrollHeight,e.offsetHeight);this.initializeScrollPosition(),this.getMoreItemsIfScrollIsDisabled(s,i),this.handleNewGalleryStructure(),this.eventsListener(a.A.events.APP_LOADED,{}),this.mediaScrollHelper.initializePlayState();try{"function"==typeof o.A.CustomEvent?this.currentHoverChangeEvent=new CustomEvent("current_hover_change"):(this.currentHoverChangeEvent=o.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)}UNSAFE_componentWillReceiveProps(t){!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);const e=()=>{const e=this.propsToState(t);Object.keys(e).length>0&&this.setState(e,this.handleNewGalleryStructure)},i=t=>{const{id:e,options:i,container:s,items:r,isInDisplay:o,isPrerenderMode:a}=t;return{id:e,options:i,container:s,items:r,isInDisplay:o,isPrerenderMode:a}};this.reCreateGalleryTimer&&clearTimeout(this.reCreateGalleryTimer);let s=!0;try{const e=i(this.props),o=i(t);s=JSON.stringify(e)!==JSON.stringify(o),r.A.isVerbose()&&s&&console.log("New props arrived",r.A.printableObjectsDiff(e,o))}catch(t){console.error("Cannot compare props",t)}s&&(e(),this.props.isInDisplay!==t.isInDisplay&&this.handleNavigation(t.isInDisplay))}handleNavigation(t){t||this.mediaScrollHelper.stop()}handleNewGalleryStructure(){const{container:t,needToHandleShowMoreClick:e,initialGalleryHeight:i}=this.state,s="vertical"===this.containerInfiniteGrowthDirection();let o=!1;if(!s&&e){const e=138;o=t.height+(i-e)}const l=this.props.options,h={numOfItems:this.state.items.length,container:t,options:l,layoutHeight:o||this.props.container.height,layoutItems:this.props.structure.items,isInfinite:s,isFixedHorizontlaGalleryRatio:"horizontal"===this.containerInfiniteGrowthDirection()&&this.state.options[n.A.layoutParams.structure.galleryRatio.value]>0,updatedHeight:o};r.A.isVerbose()&&console.log("handleNewGalleryStructure",h),this.eventsListener(a.A.events.GALLERY_CHANGE,h),e&&this.setState({needToHandleShowMoreClick:!1})}isVerticalGallery(){return this.state.options[n.A.layoutParams.structure.scrollDirection]===a.A[n.A.layoutParams.structure.scrollDirection].VERTICAL}getIsScrollLessGallery(t){const e=t[n.A.behaviourParams.gallery.horizontal.slideAnimation];return t[n.A.layoutParams.structure.scrollDirection]===a.A[n.A.layoutParams.structure.scrollDirection].HORIZONTAL&&e!==a.A[n.A.behaviourParams.gallery.horizontal.slideAnimation].SCROLL}getVisibleItems(t,e,i){var s,r;const{gotFirstScrollEvent:a}=this.state,n=(null===(r=null===(s=this.state)||void 0===s?void 0:s.scrollPosition)||void 0===r?void 0:r.top)||0,{galleryHeight:h,scrollBase:u,galleryWidth:c}=e;if(i||(0,l.Xf)()||(0,l.Q)()||a||n>0||(0,l.IL)()||this.props.activeIndex>0)return t;let m=t;try{const e=o.A.innerHeight,i=this.isVerticalGallery()&&"vertical"===this.containerInfiniteGrowthDirection()?1/0:u+h,s=n+e,r=Math.min(i,s)-u;m=r<0?[]:this.isVerticalGallery()?t.filter((t=>t.offset.top<r)):t.filter((t=>t.left<=c+20)),m.length<2&&m.length<t.length&&(m=t.slice(0,2))}catch(e){console.error("Could not calculate visible items, returning original items",e),m=t}return m}propsToState({items:t,options:e,structure:i,container:s,id:o,createMediaUrl:a,isPrerenderMode:u}){t=t||this.props.items,e=e||this.props.options,s=s||this.props.container,i=i||this.props.structure,o=o||this.props.id,a=a||this.props.createMediaUrl,this.galleryStructure=h.J.convertToGalleryItems(i,{thumbnailSize:e[n.A.layoutParams.thumbnails.size],thumbnailRatio:e[n.A.layoutParams.thumbnails.ratio]||1,sharpParams:e.sharpParams,createMediaUrl:a});!(0,l.Xf)()&&((0,l.Q)()||this.state.gotFirstScrollEvent||this.state.showMoreClickedAtLeastOnce)&&this.get
1ScrollCss({id:o,items:this.galleryStructure.galleryItems,options:e,container:s});const c={galleryStructure:this.galleryStructure,galleryWidth:s.galleryWidth,scrollBase:s.scrollBase,options:e,isSSR:r.A.isSSR()};this.mediaScrollHelper.updateGalleryStructure(c);const m={items:t,container:s,options:e,gotScrollEvent:!0};this.createCssLayoutsIfNeeded(m),this.createDynamicStyles(e[n.A.behaviourParams.item.overlay.backgroundColor],u);return{items:t,options:e,container:s,structure:i,scrollingElement:this.getScrollingElement()}}getScrollingElement(){return{vertical:this.props.scrollingElement?()=>this.props.scrollingElement:()=>o.A,horizontal:()=>o.A.document.querySelector(`#pro-gallery-${this.props.id} #gallery-horizontal-scroll-${this.props.id}`)}}scrollToItem(t,e,i,s=0,r,o=!1){if(t>=0){if(this.state.gotFirstScrollEvent||this.setState({gotFirstScrollEvent:!0}),this.getIsScrollLessGallery(this.state.options))return;const h=this.state.scrollingElement,u=h.horizontal();try{const l={scrollMarginCorrection:r,isRTL:this.state.options[n.A.behaviourParams.gallery.layoutDirection]===a.A[n.A.behaviourParams.gallery.layoutDirection].RIGHT_TO_LEFT,scrollDirection:this.state.options[n.A.layoutParams.structure.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:h,horizontalElement:u,durationInMS:s,slideTransition:this.state.options[n.A.behaviourParams.gallery.horizontal.slideTransition],isContinuousScrolling:o,autoSlideshowContinuousSpeed:this.state.options[n.A.behaviourParams.gallery.horizontal.autoSlide.speed],itemSpacing:this.state.options[n.A.layoutParams.structure.itemSpacing]};return this.eventsListener(a.A.events.GALLERY_NAVIGATION_START,{current:"scrollToItem",scrollParams:l}),this.currentScrollData=(0,m.iC)(l),this.currentScrollData.scrollDeffered.promise.then((()=>{this.currentScrollData=null}))}catch(t){console.error("error:",t," pro-gallery, scrollToItem, cannot get scrollParams, ","isEditMode =",(0,l.Q)()," isPreviewMode =",(0,l.IL)()," isSiteMode =",(0,l.PP)()," this.state.options =",this.state.options," this.state.container =",this.state.container," this.galleryStructure =",this.galleryStructure)}}}scrollToGroup(t,e,i,s=0,r,o=!1){if(t>=0){const h=this.state.scrollingElement,u=h.horizontal();try{const l={scrollMarginCorrection:r,isRTL:this.state.options[n.A.behaviourParams.gallery.layoutDirection]===a.A[n.A.behaviourParams.gallery.layoutDirection].RIGHT_TO_LEFT,scrollDirection:this.state.options[n.A.layoutParams.structure.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:h,horizontalElement:u,durationInMS:s,slideTransition:this.state.options[n.A.behaviourParams.gallery.horizontal.slideTransition],isContinuousScrolling:o,autoSlideshowContinuousSpeed:this.state.options[n.A.behaviourParams.gallery.horizontal.autoSlide.speed],itemSpacing:this.state.options[n.A.layoutParams.structure.itemSpacing]};return this.eventsListener(a.A.events.GALLERY_NAVIGATION_START,{current:"scrollToGroup",scrollParams:l}),this.currentScrollData=(0,m.I2)(l),this.currentScrollData.scrollDeffered.promise.then((()=>{this.currentScrollData=null}))}catch(t){console.error("error:",t," pro-gallery, scrollToGroup, cannot get scrollParams, ","isEditMode =",(0,l.Q)()," isPreviewMode =",(0,l.IL)()," isSiteMode =",(0,l.PP)()," this.state.options =",this.state.options," this.state.container =",this.state.container," this.galleryStructure =",this.galleryStructure)}}}containerInfiniteGrowthDirection(t=!1){const e=t||this.props.options,{showMoreClickedAtLeastOnce:i}=this.state;return e[n.A.layoutParams.structure.scrollDirection]===a.A[n.A.layoutParams.structure.scrollDirection].HORIZONTAL?"horizontal":this.props.options[n.A.behaviourParams.gallery.vertical.loadMore.enable]?i&&e[n.A.behaviourParams.gallery.vertical.loadMore.amount]===a.A[n.A.behaviourParams.gallery.vertical.loadMore.amount].ALL?"vertical":"none":"vertical"}onGalleryScroll(t){this.props.isInDisplay&&this.eventsListener(a.A.events.GALLERY_SCROLLED,t)}componentDidUpdate(t,e){if(this.setVisibilityIfNeeded(t,e),this.props.isPrerenderMode!==t.isPrerenderMode){const{body:t,documentElement:e}
1=document,i=o.A.innerHeight,s=Math.max(t.scrollHeight,t.offsetHeight,e.clientHeight,e.scrollHeight,e.offsetHeight);this.getMoreItemsIfScrollIsDisabled(s,i)}}createDynamicStyles(t,e){const i=e&&!this.props.settings.disableSSROpacity;this.dynamicStyles=`\n ${i?`#pro-gallery-${this.props.id} .gallery-item-container { opacity: 0 }`:""}\n ${t?`#pro-gallery-${this.props.id} .gallery-item-hover::before { background: ${t} !important}`:""}\n `.trim()}createCssLayoutsIfNeeded(t){const{settings:e={}}=this.props,{avoidInlineStyles:i}=e;i&&(this.layoutCss=(0,p.X)({layoutParams:t,isMobile:r.A.isMobile(),id:this.props.id,galleryItems:this.galleryStructure.galleryItems}))}getScrollCss({id:t,items:e,options:i,container:s}){this.scrollCss=g.t.calcScrollCss({items:e,options:i,id:t,container:s})}toggleLoadMoreItems(){this.eventsListener(a.A.events.LOAD_MORE_CLICKED,this.galleryStructure.galleryItems);const t=!0;if(this.state.showMoreClickedAtLeastOnce)this.setState({needToHandleShowMoreClick:t},(()=>{this.handleNewGalleryStructure()}));else{this.getScrollCss({id:this.props.id,items:this.galleryStructure.galleryItems,options:this.state.options,container:this.state.container});const e=this.state.container.height;this.setState({showMoreClickedAtLeastOnce:true,initialGalleryHeight:e,needToHandleShowMoreClick:t},(()=>{this.handleNewGalleryStructure()}))}}setGotFirstScrollIfNeeded(){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}))}setCurrentSlideshowViewIdx(t){this.currentSlideshowViewIdx=t}simulateHorizontalScrollToItem(t){(null==t?void 0:t.offset)&&this.onGalleryScroll({left:t.offset.left})}eventsListener(t,e,i){if(this.mediaScrollHelper.handleEvent({eventName:t,eventData:e}),t===a.A.events.HOVER_SET&&(this.currentHoverChangeEvent.currentHoverIdx=e,o.A.dispatchEvent(this.currentHoverChangeEvent)),t===a.A.events.CURRENT_ITEM_CHANGED&&(this.setCurrentSlideshowViewIdx(e.idx),this.getIsScrollLessGallery(this.state.options)&&this.simulateHorizontalScrollToItem(this.galleryStructure.items[e.idx])),!this.state.firstUserInteractionExecuted)switch(t){case a.A.events.HOVER_SET:case a.A.events.LOAD_MORE_CLICKED:case a.A.events.ITEM_ACTION_TRIGGERED:this.setState({firstUserInteractionExecuted:!0})}if("function"==typeof this.props.eventsListener)switch(t){case a.A.events.ITEM_ACTION_TRIGGERED:case a.A.events.ITEM_CLICKED:setTimeout(this.props.eventsListener(t,e,i),0);break;default:this.props.eventsListener(t,e,i)}if(t===a.A.events.GALLERY_SCROLLED){this.mediaScrollHelper.onScroll(e);const t=Object.assign(Object.assign({},this.state.scrollPosition),e);this.setState({scrollPosition:t})}}getMoreItemsIfNeeded(t){var e;if(null===(e=this.deferredGettingMoreItems)||void 0===e?void 0:e.isPending);else if(this.deferredGettingMoreItems=new f.c,this.galleryStructure&&this.galleryStructure.galleryItems&&this.galleryStructure.galleryItems.length>0&&this.state.items&&this.state.options&&this.state.container){const e=this.state.options[n.A.layoutParams.structure.scrollDirection],i=this.galleryStructure[e===a.A[n.A.layoutParams.structure.scrollDirection].HORIZONTAL?"width":"height"]+(e===a.A[n.A.layoutParams.structure.scrollDirection].HORIZONTAL?0:this.state.container.scrollBase),s=o.A[e===a.A[n.A.layoutParams.structure.scrollDirection].HORIZONTAL?"innerWidth":"innerHeight"];i<(t?3*s:0)+(t+s)?(this.eventsListener(a.A.events.NEED_MORE_ITEMS,this.state.items.length),setTimeout((()=>{this.deferredGettingMoreItems.resolve()}),2e3)):this.deferredGettingMoreItems.reject()}else this.deferredGettingMoreItems.reject();return this.deferredGettingMoreItems.promise.catch((()=>{}))}canRender(){const t=this.props.container&&this.props.options&&this.state.items;return!t&&r.A.isVerbose()&&console.log("PROGALLERY [CAN_RENDER] GalleryContainer",t,this.props.container,this.props.options,this.state.items),t}onMouseEnter(){var t;(null===(t=this.currentScrollData)||void 0===t?void 0:t.isContinuousScrolling)&&this.state.options[n.A.behaviourParams.gallery.horizontal.autoSlide.pauseOnHover]&&(0,m.HC)(this.currentScrollData),this.setState({isInHover:!0})}onMouseLeave(){this.setState({isInHover:!1})}render(){var t,e,i;if(!this.canRender())return null;const o=this.props.options[n.A.layoutParams.structure.scrollDirection]===a.A[n.A.layoutParams.structure.scrollDirection].HORIZONTAL?c.A:u.A;r.A.isVerbose()&&(console.count("PROGALLERY [COUNTS] - GalleryContainer (render)"),console.log("PROGALLERY [RENDER] - GalleryContainer",this.props.container.scrollBase,{props:this.props,items:this.state.items}));const l="none"===this.containerInfiniteGrowthDirection();return s.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:t=>
1this.galleryContainerRef=t,tabIndex:-1},s.createElement(d.A,{id:this.props.id,galleryScrollDirection:this.props.options[n.A.layoutParams.structure.scrollDirection],isRTL:this.props.options[n.A.behaviourParams.gallery.layoutDirection]===a.A[n.A.behaviourParams.gallery.layoutDirection].RIGHT_TO_LEFT,totalWidth:this.galleryStructure.width,scrollBase:this.props.container.scrollBase,scrollingElement:this.state.scrollingElement,getMoreItemsIfNeeded:this.getMoreItemsIfNeeded,setGotFirstScrollIfNeeded:this.setGotFirstScrollIfNeeded,onScroll:this.onGalleryScroll}),s.createElement(o,Object.assign({isInDisplay:this.props.isInDisplay,isInViewport:this.state.isInViewport,isPrerenderMode:this.props.isPrerenderMode,scrollingElement:this.state.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:l,id:this.props.id,activeIndex:this.props.activeIndex||0,customComponents:this.props.customComponents,playingVideoIdx:this.state.playingVideoIdx,playing3DIdx:this.state.playing3DIdx,noFollowForSEO:this.props.noFollowForSEO,proGalleryRegionLabel:this.props.proGalleryRegionLabel,proGalleryRole:this.props.proGalleryRole,firstUserInteractionExecuted:this.state.firstUserInteractionExecuted,isGalleryInHover:this.state.isInHover,enableExperimentalFeatures:this.props.enableExperimentalFeatures,galleryContainerRef:this.galleryContainerRef,outOfViewComponent:this.outOfViewComponent,virtualizationSettings:this.props.virtualizationSettings,galleryContainerId:`pro-gallery-container-${this.props.id}`,scrollTop:null===(e=null===(t=this.state)||void 0===t?void 0:t.scrollPosition)||void 0===e?void 0:e.top,isScrollLessGallery:this.getIsScrollLessGallery(this.state.options),disableItemFocus:this.props.disableItemFocus,actions:Object.assign(Object.assign({},this.props.actions),{findNeighborItem:this.findNeighborItem,toggleLoadMoreItems:this.toggleLoadMoreItems,eventsListener:this.eventsListener,setWixHeight:()=>{},scrollToItem:this.scrollToItem,scrollToGroup:this.scrollToGroup})},this.props.gallery)),s.createElement("div",{"data-key":"items-styles",key:"items-styles",style:{display:"none"}},(this.layoutCss||[]).filter(Boolean).map(((t,e)=>s.createElement("style",{id:`layoutCss-${e}`,key:`layoutCss-${e}`,dangerouslySetInnerHTML:{__html:t}}))),(this.scrollCss||[]).filter(Boolean).map(((t,e)=>s.createElement("style",{id:`scrollCss_${e}`,key:`scrollCss_${e}`,dangerouslySetInnerHTML:{__html:t}}))),!!this.dynamicStyles&&s.createElement("style",{dangerouslySetInnerHTML:{__html:this.dynamicStyles}})),"application"===this.props.proGalleryRole&&s.createElement("span",{ref:t=>this.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))}}const b=v},88842:(t,e,i)=>{"use strict";i.d(e,{A:()=>n});var s=i(60751),r=i(11854),o=i(84094);class a extends s.Component{render(){if("true"!==r.A.getTopUrlParam("pgdebug"))return!1;const t=s.createElement("div",{className:"version-header "},"Pro Gallery Version #",o.A.staticsVersion);let e="";try{e=" psw"+o.A.top.screen.width+" piw"+o.A.top.innerWidth+" pbw"+o.A.top.document.body.clientWidth}catch(t){}const i=s.createElement("div",{className:"version-header "},r.A.isLandscape()?"land":"port"," sw",o.A.screen.width,"sh",o.A.screen.height," iw",o.A.innerWidth," bw",o.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 s.createElement("div",null,t,i)}}const n=a},42483:(t,e,i)=>{"use strict";i.d(e,{I:()=>o,c:()=>r});var s=i(84094);class r{constructor(){this.promise=new Promise(((t,e)=>{this.reject=(...t)=>{this.isPending=!1,e(...t)},this.resolve=(...e)=>{this.isPending=!1,t(...e)},this.isPending=!0}))}}function o({container:t,scrollTop:e}
1){try{const i=t.scrollBase<e+s.A.innerHeight,r=t.scrollBase+t.galleryHeight>e;return i&&r}catch(t){return console.warn("Could not calculate viewport",t),!0}}},6364:(t,e,i)=>{"use strict";i.d(e,{A:()=>l});var s=i(60751),r=i(11854),o=i(59955),a=i(6940),n=i(34653);class l extends s.Component{constructor(t){super(),this.state={scrollTop:0,scrollLeft:0},this.debouncedOnScroll=r.A.debounce(t.onScroll,50)}removeScrollListener(){if(this.scrollEventListenerSet){const t=this.props.scrollingElement;try{t.vertical().removeEventListener("scroll",this.onVerticalScroll)}catch(t){}try{const{scrollDirection:e}=this.props;e===o.A[a.A.layoutParams.structure.scrollDirection].HORIZONTAL&&t.horizontal().removeEventListener("scroll",this.onHorizontalScroll)}catch(t){}this.scrollEventListenerSet=!1}}initScrollListener(){var t,e;this.scrollEventListenerSet&&this.removeScrollListener(),this.scrollEventListenerSet=!0;const i=this.props.scrollingElement;if(this.onHorizontalScrollTransition=({detail:t})=>{const e=Math.round(t);e>=0&&this.props.galleryScrollDirection===o.A[a.A.layoutParams.structure.scrollDirection].HORIZONTAL&&this.setState({scrollLeft:this.state.scrollLeft+e})},this.onHorizontalScroll=t=>{var e,i;this.props.setGotFirstScrollIfNeeded();const s=t.currentTarget||t.target||t;let r=s&&(null!==(i=null!==(e=s.scrollX)&&void 0!==e?e:s.scrollLeft)&&void 0!==i?i:s.x);this.props.isRTL&&(r=Math.abs(r)),r>=0&&this.props.galleryScrollDirection===o.A[a.A.layoutParams.structure.scrollDirection].HORIZONTAL&&(this.setState({scrollTop:r,scrollLeft:r}),this.props.getMoreItemsIfNeeded(r),this.debouncedOnScroll({left:r}))},this.props.galleryScrollDirection===o.A[a.A.layoutParams.structure.scrollDirection].HORIZONTAL)try{null===(t=null==i?void 0:i.horizontal())||void 0===t||t.addEventListener("scroll",this.onHorizontalScroll),null===(e=null==i?void 0:i.horizontal())||void 0===e||e.addEventListener("scrollTransition",this.onHorizontalScrollTransition)}catch(t){console.error(t)}this.onVerticalScroll=t=>{this.props.setGotFirstScrollIfNeeded();const e=t.currentTarget||t.target||t,i=e&&(e.scrollY||e.scrollTop||e.y);i>=0&&(this.props.galleryScrollDirection===o.A[a.A.layoutParams.structure.scrollDirection].VERTICAL&&(this.setState({scrollTop:i}),this.props.getMoreItemsIfNeeded(i)),this.debouncedOnScroll({top:i}))};try{i.vertical().addEventListener("scroll",this.onVerticalScroll)}catch(t){console.error(t)}}componentWillUnmount(){this.removeScrollListener()}componentDidMount(){this.initScrollListener()}UNSAFE_componentWillReceiveProps(t){let e=!1;for(const i of["id","scrollDirection","isRTL","totalWidth","scrollBase","scrollingElement"])if(t[i]!==this.props[i]){e=!0;break}e&&this.initScrollListener()}render(){const t=this.props.galleryScrollDirection===o.A[a.A.layoutParams.structure.scrollDirection].VERTICAL&&this.props.scrollBase>0?this.props.scrollBase:0,e=this.state.scrollTop-t,{id:i}=this.props;return s.createElement("div",{key:"css-scroll-indicator","data-hook":"css-scroll-indicator","data-scroll-base":t,"data-scroll-top":this.state.scrollTop,className:n.t.calcScrollClasses(i,e),style:{display:"none"}})}}},13593:(t,e,i)=>{"use strict";i.d(e,{A:()=>m});var s=i(60751),r=i(84094),o=i(6940),a=i(59955),n=i(11854),l=i(88842),h=i(9331),u=i(29746);class c extends s.Component{constructor(t){super(t),this.handleKeys=this.handleKeys.bind(this),this.showMoreItems=this.showMoreItems.bind(this),this.onLoadMoreButtonKeyDown=this.onLoadMoreButtonKeyDown.bind(this),this.onLoadMoreButtonKeyUp=this.onLoadMoreButtonKeyUp.bind(this),this.createGalleryConfig=this.createGalleryConfig.bind(this),this.screenLogs=this.screenLogs.bind(this),this.createGallery=this.createGallery.bind(this),this.id=Date.now()+"|"+Math.floor(1e4*Math.random()),this.state={activeIndex:0}}handleKeys(t){const e=r.A.document.activeElement.getAttribute("data-idx");if(e){const i=this.props.actions.findNeighborItem||this.props.galleryStructure.findNeighborItem||(()=>{}),s=Number(e);let r=-1;switch(t.keyCode||t.charCode){case 38:r=i(s,"up");break;case 37:r=i(s,this.props.options[o.A.behaviourParams.gallery.layoutDirection]===a.A[o.A.behaviourParams.gallery.layoutDirection].RIGHT_TO_LEFT?"right":"left");break;case 40:if(r=i(s,"down"),this.props.totalItemsCount-1===r&&r===this.state.activeIndex)return t.stopPropagation(),n.A.focusGalleryElement(this.props.outOfViewComponent),!1;break;case 39:r=i(s,this.props.options[o.A.behaviourParams.gallery.layoutDirection]===a.A[o.A.behaviourParams.gallery.layoutDirection].RIGHT_TO_LEFT?"left"
1:"right");break;case 27:return!1}if(r>this.lastVisibleItemIdx()&&(r=s),r>=0)return t.preventDefault(),t.stopPropagation(),n.A.setStateAndLog(this,"Set Gallery Current Item",{activeIndex:r}),!1}return!0}lastVisibleItemIdxInHeight(t){for(let e=this.props.galleryStructure.items.length-1;e>=0;e--){if(this.props.galleryStructure.items[e].offset.top<t)return e}return this.items.length-1}lastVisibleItemIdx(){let t=this.props.displayShowMore?this.props.container.height:this.props.galleryStructure.height;return this.lastVisibleItemIdxInHeight(t-100)}showMoreItems(){var t;if(null===(t=this.props.settings)||void 0===t?void 0:t.isAccessible)try{const t=this.lastVisibleItemIdx();n.A.setStateAndLog(this,"Focus on Last Gallery Item",{activeIndex:t+1},(()=>{this.props.actions.toggleLoadMoreItems()}))}catch(t){console.warn("showMoreItems: Cannot find item to focus",t)}else this.props.actions.toggleLoadMoreItems()}onLoadMoreButtonKeyDown(t){switch(t.keyCode||t.charCode){case 32:case 13:return t.preventDefault(),t.stopPropagation(),!1}}onLoadMoreButtonKeyUp(t){switch(t.keyCode||t.charCode){case 32:case 13:return t.stopPropagation(),n.A.setStateAndLog(this,"Set Gallery Current Item",{activeIndex:this.lastVisibleItemIdx()}),setTimeout((()=>{this.props.actions.toggleLoadMoreItems()}),0),!1}}createGallery(t){var e;const{options:i,settings:r,container:n,galleryStructure:c,getVisibleItems:m,virtualizationSettings:d,scrollTop:p}=this.props,g=this.createGalleryConfig(),y=s.createElement(l.A,Object.assign({},this.props.debug));let A;A=t?n.galleryHeight-138:c.height+"px";const f=this.props.isPrerenderMode?"auto":this.props.container.galleryWidth-i[o.A.layoutParams.structure.itemSpacing],v=m(c.galleryItems,n,this.props.isPrerenderMode),b=(0,u.u)({items:v,options:i,virtualizationSettings:d,galleryHeight:Math.min(c.height,(null===(e=n.screen)||void 0===e?void 0:e.height)||c.height),scrollPosition:p||0}).map((({item:t,shouldRender:e},i)=>{const r=t.renderProps(Object.assign(Object.assign({},g),{visible:t.isVisible,key:`itemView-${t.id}-${i}`}));return s.createElement(h.A,Object.assign(Object.assign({},r),{type:e?r.type:"dummy"}))}));return s.createElement("div",{id:this.props.galleryContainerId,className:"pro-gallery inline-styles "+(i[o.A.layoutParams.structure.scrollDirection]===a.A[o.A.layoutParams.structure.scrollDirection].HORIZONTAL?" one-row slider hide-scrollbars ":"")+((null==r?void 0:r.isAccessible)?" accessible ":"")+(i[o.A.behaviourParams.gallery.layoutDirection]===a.A[o.A.behaviourParams.gallery.layoutDirection].RIGHT_TO_LEFT?" rtl ":" ltr "),style:{height:A,overflowX:"hidden"},onKeyDown:this.handleKeys},s.createElement("div",{id:`pro-gallery-margin-container-${this.props.id}`,className:"pro-gallery-margin-container",style:{margin:(this.props.options.galleryMargin||this.props.options[o.A.layoutParams.structure.gallerySpacing])+"px",height:A,width:f,overflow:"visible",position:"relative"}},y,b))}createGalleryConfig(){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,playing3DIdx:this.props.playing3DIdx,noFollowForSEO:this.props.noFollowForSEO,isPrerenderMode:this.props.isPrerenderMode,firstUserInteractionExecuted:this.props.firstUserInteractionExecuted,enableExperimentalFeatures:this.props.enableExperimentalFeatures,actions:{eventsListener:this.props.actions.eventsListener}}}screenLogs(){return n.A.shouldDebug("screenLogs")?s.createElement("div",{className:"screen-logs"},"URL width: ",n.A.parseGetParam("width"),", Container: ",JSON.stringify(this.props.container.galleryWidth),", window.document.body.clientWidth ",document.body.clientWidth,", window.innerWidth ",r.A.innerWidth,", window.screen.width: ",r.A.screen.width):""}createShowMoreButton(){if("function"==typeof this.props.customComponents.customLoadMoreRenderer)return s.createElement("div",{onClick:this.showMoreItems},this.props.customComponents.customLoadMoreRenderer(this.props));const{options:t}=this.props;let e=!1;if(this.props.displayShowMore&&this.props.galleryStructure.height>this.props.container.height){const i=t[o.A.behaviourParams.gallery.vertical.loadMore.text]||"Load More";e=s.createElement("div",{className:"show-more-container"+(n.A.isMobile()?" pro-gallery-mobile-indicator":"")},s.createElement("button",{tabIndex:n.A.getTabIndex("loadMoreButton"),id:"show-more-"+this.props.id,className:"show-more",onClick:this.showMoreItems,onMouseDown:t=>t.preventDefault(),"data-hook":"show-more","aria-label":i,onKeyDown:this.onLoadMoreButtonKeyDown,onKeyUp:this.onLoadMoreButtonKeyUp},i))}return e}render(){n.A.isVerbose()&&(console.count("galleryView render"),console.time("Ren
1dering Gallery took "),console.log("[DEBUG_RENDER] GalleryView options",this.props.options),console.log("[DEBUG_RENDER] GalleryView props changed",n.A.printableObjectsDiff(this.lastProps||{},this.props)),this.lastProps=Object.assign({},this.props),console.log("[DEBUG_RENDER] GalleryView state changed",n.A.printableObjectsDiff(this.lastState||{},this.state)),this.lastState=Object.assign({},this.state),this.renderCount=(this.renderCount||0)+1);const t=this.createShowMoreButton(),e=this.createGallery(t);n.A.isVerbose()&&console.timeEnd("Rendering Gallery took ");const i=this.screenLogs();return s.createElement("div",Object.assign({className:"pro-gallery-parent-container",key:`pro-gallery-${this.id}`},n.A.getAriaAttributes({proGalleryRole:this.props.proGalleryRole,proGalleryRegionLabel:this.props.proGalleryRegionLabel})),i,e,t)}}const m=c},89768:(t,e,i)=>{"use strict";i.d(e,{$9:()=>u});var s=i(60751),r=i(83202),o=i(6940),a=i(59955),n=i(11854),l=i(26641),h=i(91311);function u({options:t,hideLeftArrow:e,hideRightArrow:i,container:r,customNavArrowsRenderer:u,next:p,id:g}){const y=t[o.A.layoutParams.structure.itemSpacing],A=t[o.A.behaviourParams.gallery.layoutDirection]===a.A[o.A.behaviourParams.gallery.layoutDirection].RIGHT_TO_LEFT,f=t[o.A.layoutParams.navigationArrows.position],v=t[o.A.layoutParams.navigationArrows.padding],b=t[o.A.layoutParams.structure.scrollDirection],I=t[o.A.layoutParams.navigationArrows.mouseCursorContainerMaxWidth],{arrowRenderer:P,navArrowsContainerWidth:S,navArrowsContainerHeight:w}=(0,h.FC)({customNavArrowsRenderer:u,arrowsColor:t[o.A.stylingParams.arrowsColor],arrowsSize:t[o.A.layoutParams.navigationArrows.size],arrowsType:t[o.A.layoutParams.navigationArrows.type],containerStyleType:t[o.A.layoutParams.navigationArrows.container.type]}),O=f===a.A[o.A.layoutParams.navigationArrows.position].MOUSE_CURSOR,{galleryHeight:T}=r,E=t[o.A.layoutParams.info.height],x=T-E,C=`50% + ${y/4}px`;let L;a.A.hasExternalAbovePlacement(t[o.A.layoutParams.info.placement])?L=-1:a.A.hasExternalBelowPlacement(t[o.A.layoutParams.info.placement])&&(L=1);const M={[a.A[o.A.layoutParams.navigationArrows.verticalAlignment].ITEM_CENTER]:0,[a.A[o.A.layoutParams.navigationArrows.verticalAlignment].IMAGE_CENTER]:E*L,[a.A[o.A.layoutParams.navigationArrows.verticalAlignment].INFO_CENTER]:-x*L}[t[o.A.layoutParams.navigationArrows.verticalAlignment]],R=(0,h.s0)({type:t[o.A.layoutParams.navigationArrows.container.type],backgroundColor:t[o.A.layoutParams.navigationArrows.container.backgroundColor],borderRadius:t[o.A.layoutParams.navigationArrows.container.borderRadius]}),_=O?Object.assign({width:`${S}px`,height:`${w}px`},R):Object.assign({width:`${S}px`,height:`${w}px`,padding:0,top:`calc(${C} - ${w/2}px - \n ${M/2}px)`},R),D=b===a.A[o.A.layoutParams.structure.scrollDirection].HORIZONTAL&&f===a.A[o.A.layoutParams.navigationArrows.position].OUTSIDE_GALLERY?`-${20+S}px`:`${y/2+(v||0)}px`,H={left:O?0:D},G={right:O?0:D},k=["nav-arrows-container",{BOX:"box",SHADOW:"shadow",NONE:"only-arrows"}[t[o.A.layoutParams.navigationArrows.container.type]]||"",n.A.isMobile()?" pro-gallery-mobile-indicator":""],N=`arrow-portal-container-${g}`,z=O?m:c,W=t=>s.createElement(z,Object.assign({},{renderArrowSvg:P,next:p,directionIsLeft:t,arrowsBaseClasses:k,containerStyle:_,prevContainerStyle:H,nextContainerStyle:G,isRTL:A,hideLeftArrow:e,hideRightArrow:i,arrowBoxStyle:R,navArrowsContainerWidth:S,navArrowsContainerHeight:w,navigationArrowPortalId:N,mouseCursorContainerMaxWidth:I,id:g}));return s.createElement(d,{hideLeftArrow:e,hideRightArrow:i,mouseCursorEnabled:O,isRTL:A,navigationArrowPortalId:N},(j=s.createElement(s.Fragment,null,e?null:W(!0),i?null:W(!1)),O?s.createElement(l.N9,{id:g},j):j));var j}function c({cursor:t,arrowsBaseClasses:e,containerStyle:i,prevContainerStyle:o,nextContainerStyle:a,isRTL:n,directionIsLeft:l,renderArrowSvg:h,next:u,arrowBoxStyle:c,navArrowsContainerWidth:m,navArrowsContainerHeight:d,navigationArrowPortalId:p}){const g=l&&n||!l&&!n,y=()=>u({direction:l?-1:1}),A={className:e.join(" "),onClick:()=>setTimeout(y,0),"aria-label":(g?"Next":"Previous")+" Item",tabIndex:"0",key:g?"nav-arrow-next":"nav-arrow-back","data-hook":g?"nav-arrow-next":"nav-arrow-back",style:Object.assign(Object.assign({},i),l?o:a)};if(t){const{containerRef:e,isMouseEnter:i,position:o}=t;return s.createElement("button",Object.assign({ref:t=>e.current=t},A),i&&r.createPortal(s.createElement("span",{style:Object.assign(Object.assign({top:o.y-d/2,left:o.x-m/2},c),{width:m,height:d})}
1,h(l?"left":"right")),window.document.getElementById(p)))}return s.createElement("button",Object.assign({},A),h(l?"left":"right"))}function m(t){const{directionIsLeft:e,next:i,mouseCursorContainerMaxWidth:r,hideLeftArrow:o,hideRightArrow:a,renderArrowSvg:n,containerStyle:h,arrowsBaseClasses:u,navArrowsContainerWidth:c,navArrowsContainerHeight:m}=t,d=o||a;return s.createElement(l.QH,{id:t.id,mouseCursorContainerMaxWidth:r,navArrowsContainerWidth:c,navArrowsContainerHeight:m,onNavigate:()=>i({direction:e?-1:1}),direction:e?"left":"right",isTheOnlyArrow:d},((t,i)=>s.createElement("div",{style:{top:i,left:t},className:"follow-mouse-cursor"},s.createElement("div",{className:u.join(" "),style:Object.assign(Object.assign({},h),{top:-m/2,left:-c/2})},n(e?"left":"right")))))}function d({hideRightArrow:t,hideLeftArrow:e,mouseCursorEnabled:i,isRTL:r,children:o,navigationArrowPortalId:a}){if(i){const i={justifyContent:e?"flex-end":t?"flex-start":"space-between",flexDirection:r?"row-reverse":"row"};return s.createElement("div",{className:"mouse-cursor",style:Object.assign({},i)},s.createElement("div",{id:a,className:"arrow-portal-container"}),o)}return s.Fragment?s.createElement(s.Fragment,null,o):s.createElement("div",null,o)}},70082:(t,e,i)=>{"use strict";i.d(e,{A:()=>g,j:()=>d});var s=i(60751),r=i(62763),o=i(11854),a=i(6940),n=i(59955),l=i(17722),h=i(16781);class u extends s.Component{constructor(t){super(t),this.scrollToThumbnail=this.scrollToThumbnail.bind(this)}scrollToThumbnail(t){this.props.navigationToIdxCB(t)}createThumbnails({navigationPanelPosition:t,thumbnailAlignment:e,options:i,galleryStructure:u,settings:c}){const m=r.A.clearGalleryItems(this.props.items,this.props.galleryStructure.galleryItems),d=o.A.inRange(this.props.activeIndex,m.length),{horizontalThumbnails:g,items:y,thumbnailsMargins:A,thumbnailsStyle:f,activeIndexOffsetMemory:v,thumbnailWidth:b,thumbnailHeight:I}=r.A.getThumbnailsData({items:this.props.items,activeIndex:d,options:i,galleryStructure:u,thumbnailAlignment:e,containerHeight:this.props.container.height,containerWidth:this.props.container.width,activeIndexOffsetMemory:this.activeIndexOffsetMemory,prevActiveIndex:this.prevActiveIndex});return this.prevActiveIndex=d,this.activeIndexOffsetMemory=v,s.createElement("div",{className:"pro-gallery inline-styles thumbnails-gallery "+(this.props.domOrder?"thumbnails-gallery-"+this.props.domOrder:"")+(g?" one-row hide-scrollbars ":"")+(i[a.A.behaviourParams.gallery.layoutDirection]===n.A[a.A.behaviourParams.gallery.layoutDirection].RIGHT_TO_LEFT?" rtl ":" ltr ")+((null==c?void 0:c.isAccessible)?" accessible ":""),style:Object.assign(Object.assign(Object.assign(Object.assign({},this.props.isPrerenderMode?{display:"block"}:{}),{width:f.width,height:f.height}),A),p({galleryThumbnailsAlignment:e,navigationPanelPosition:t})),"data-hook":"gallery-thumbnails"},s.createElement("div",{"data-hook":"gallery-thumbnails-column",className:"galleryColumn",key:"thumbnails-column",style:Object.assign({},f)},y.map((({thumbnailItem:t,location:e,idx:r})=>{const u=r===d%m.length,c=Object.assign(Object.assign({width:b,height:I,overflow:"hidden",backgroundImage:`url(${t.createUrl(n.A.urlSizes.THUMBNAIL,n.A.urlTypes.HIGH_RES)})`},e),this.props.isPrerenderMode?{opacity:0}:{});return s.createElement("div",{key:"thumbnail-"+t.id+(Number.isInteger(r)?"-"+r:""),className:"thumbnailItem thumbnail-"+t.idx+(u?" pro-gallery-thumbnails-highlighted pro-gallery-highlight"+(o.A.isMobile()?" pro-gallery-mobile-indicator":""):""),"data-key":t.id,style:c,onClick:()=>this.scrollToThumbnail(r),tabIndex:0,onKeyDown:t=>{"Enter"===t.key&&this.scrollToThumbnail(r)}},"video"===t.type&&i[a.A.behaviourParams.item.video.enableThumbnailsPlayButton]&&s.createElement(l.v,{type:"videoPlayButton",size:"28"}),"3d"===t.type&&i[a.A.behaviourParams.item.threeDimensionalScene.enableThumbnailsPlayButton]&&s.createElement(l.v,{type:"rotateArrow",size:"28"}),"text"===t.type?s.createElement(h.A,Object.assign({},this.props,t.renderProps(),{options:Object.assign(Object.assign({},i),{[a.A.layoutParams.crop.method]:n.A[a.A.layoutParams.crop.method].FILL,[a.A.layoutParams.crop.enable]:!0}),actions:{},imageDimensions:Object.assign(Object.assign({},c),{marginTop:0,marginLeft:0}),style:Object.assign(Object.assign({},t.renderProps().style),c)})):null)}))))}render(){const t={navigationPanelPosition:this.props.options[a.A.layoutParams.thumbnails.position],thumbnailAlignment:this.props.options[a.A.layoutParams.thumbnails.alignment],options:this.props.options,galleryStructure:this.props.galleryStructure,settings:this.props.settings};return this.createThumbnails(t)}}const c=({width:t,height:e,galleryHeight:i,navigationPanelPosition:s})=>s===n.A[a.A.layoutParams.thumbnails.position].ON_GALLERY?{}:{width:t,height:e-i},m=({galleryHeight:t,galleryWidth:e,height:i,width:s,galleryThumbnailsAlignment:r,navigationPanelPosition:o})=>{switch(r){case n.A[a.A.layoutParams.thumbnails.alignment].TOP:case n.A[a.A.layoutParams.thumbnails.alignment].BOTTOM:return c({galleryHeight:t,galleryWidth:e,height:i,width:s,navigationPanelPosition:o});case n.A[a.A.layoutParams.thumbnails.alignment].RIGHT:case n.A[a.A.layoutParams.thumbnails.alignment].LEFT:return(({width:t,height:e,galleryWidth:i,navigationPanelPosition:s})=>s===n.A[a.A.layoutParams.thumbnails.position].ON_GALLERY?{}:{width:t-i,height:e})({galleryHeight:t,galleryWidth:e,height:i,width:s,navigationPanelPosition:o});default:return!1}},d=({galleryHeight:t,galleryWidth:e,height:i,width:s,galleryThumbnailsAlignment:r,navigationPanelPosition:o})=>Object.assign(Object.assign(Object.assign({},m({galleryHeight:t,galleryWidth:e,height:i,width:s,galleryThumbnailsAlignment:r,navigationPanelPosition:o})),p({galleryThumbnailsAlignment:r,navigationPanelPosition:o})),{overflow:"hidden",float:"left"}),p=({galleryThumbnailsAlignment:t,navigationPanelPosition:e})=>
1{if(e===n.A[a.A.layoutParams.thumbnails.position].ON_GALLERY){let e={position:"absolute"};return e[t.toLowerCase()]=0,e}},g=u},85943:(t,e,i)=>{"use strict";i.d(e,{A:()=>n});var s=i(60751),r=i(11854),o=i(48617),a=i(79919);class n extends s.Component{constructor(){super(),r.A.isLocal()&&!r.A.isTest()&&console.log("PRO GALLERY DEV")}renderProps(){var t;return Object.assign(Object.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})}containerProps(){return{id:`pro-gallery-${this.props.id}`,className:"pro-gallery"}}render(){return s.createElement(a.A,Object.assign({},this.props),s.createElement("div",Object.assign({},this.containerProps()),s.createElement(o.A,Object.assign({},this.renderProps()))))}}},17224:(t,e,i)=>{"use strict";i.d(e,{c:()=>o,j:()=>a});var s=i(6940),r=i(59955);const o=({idx:t,activeIndex:e,options:i},o=!1)=>{const{[s.A.behaviourParams.gallery.horizontal.slideAnimation]:a}=i,n=i[s.A.behaviourParams.gallery.layoutDirection]===r.A[s.A.behaviourParams.gallery.layoutDirection].RIGHT_TO_LEFT;switch(a){case r.A[s.A.behaviourParams.gallery.horizontal.slideAnimation].FADE:return"fade fade-"+(e===t?"visible":"hidden");case r.A[s.A.behaviourParams.gallery.horizontal.slideAnimation].DECK:return e<t?"deck-after "+(o?"override":""):e===t?"deck-current "+(o?"override":""):e>t?"deck-before"+(n?"-rtl":""):{};default:return{}}},a=t=>{const e=t=>{console.log("toggleScrollLessAnimation: ",t),[".gallery-item-wrapper",".gallery-item-common-info-outer"].forEach((e=>{t?[...document.querySelectorAll(e)].forEach((t=>{var e;null===(e=t.classList)||void 0===e||e.add("disabled-transition")})):[...document.querySelectorAll(e)].forEach((t=>{var e;t.offsetHeight,null===(e=t.classList)||void 0===e||e.remove("disabled-transition")}))}))};setTimeout((()=>{t&&t(),e(!0),e(!1)}),600)}},47963:(t,e,i)=>{"use strict";i.d(e,{A:()=>b});var s=i(60751),r=i(98902),o=i(59955),a=i(6940),n=i(11854),l=i(84094),h=i(24379),u=i(88842),c=i(30978),m=i(43744),d=i(70082),p=i(29746),g=i(89768),y=i(91311),A=i(17224);function f(t){if([33,37,38].includes(t))return-1;if([32,34,39,40].includes(t))return 1;throw new Error(`no direction is defined for charCode: ${t}`)}class v extends s.Component{constructor(t){super(t),this.autoScrollToNextItem=()=>{if(!(0,r.Q)()&&(this.props.isInViewport||(0,r.IL)())){const{options:t}=this.props,e=t.behaviourParams_gallery_layoutDirection===o.A[a.A.behaviourParams.gallery.layoutDirection].RIGHT_TO_LEFT?-1:1;t.behaviourParams_gallery_horizontal_autoSlide_behaviour===o.A[a.A.behaviourParams.gallery.horizontal.autoSlide.behaviour].CONTINUOUS?this._next({direction:e,isAutoTrigger:!0,isContinuousScrolling:!0}):t.behaviourParams_gallery_horizontal_autoSlide_behaviour===o.A[a.A.behaviourParams.gallery.horizontal.autoSlide.behaviour].INTERVAL&&this._next({direction:e,isAutoTrigger:!0,scrollDuration:800})}},this.getCustomNavigationPanel=()=>{var t;return"function"==typeof(null===(t=this.props.customComponents)||void 0===t?void 0:t.EXPERIMENTAL_customNavigationPanelRenderer)&&this.props.customComponents.EXPERIMENTAL_customNavigationPanelRenderer},this.createOrGetCustomNavigationPanelAPI=()=>{const t=this.props.options.behaviourParams_gallery_layoutDirection===o.A[a.A.behaviourParams.gallery.layoutDirection].RIGHT_TO_LEFT;return this.navigationPanelAPI||(this.navigationPanelAPI={onGalleryNavigationStart:t=>{this.props.actions.eventsListener(o.A.events.GALLERY_NAVIGATION_START,t)},next:()=>{this.next({scrollDuration:400,isKeyboardNavigation:!1,isAutoTrigger:!1,avoidIndividualNavigation:!1,isContinuousScrolling:!1,direction:t?-1:1})},previous:()=>{this.next({scrollDuration:400,isKeyboardNavigation:!1,isAutoTrigger:!1,avoidIndividualNavigation:!1,isContinuousScrolling:!1,direction:t?1:-1})},navigateNextEnabled:()=>t?!this.state.hideLeftArrow:!this.state.hideRightArrow,navigatePreviousEnabled:()=>t?!this.state.hideRightArrow:!this.state.hideLeftArrow,currentIndex:()=>this.state.activeIndex,triggerItemClick:(t,{itemIndex:e=this.state.activeIndex}={})=>{const i=this.createGalleryConfig(),s=this.props.galleryStructure.galleryItems[e%this.props.totalItemsCount],r=null==s?void 0:s.renderProps(Object.assign(Object.assign({},i),{visible:!0}));this.props.actions.eventsListener(o.A.events.ITEM_ACTION_TRIGGERED,r,t)},navigateToIndex:(t,e=400)=>{this.scrollToIndex({itemIdx:t,scrollDuration:e})}}),this.props.actions.eventsListener(o.A.events.NAVIGATION_API_READY,this.navigationPanelAPI),this.navigationPanelAPI},this.navigationPanelCallbackOnIndexChange=()=>{},this.scrollToThumbnail=this.scrollToThumbnail.bind(this),this.clearAutoSlideshowInterval=this.clearAutoSlideshowInterval.bind(this),this.onFocus=this.onFocus.bind(this),this.onBlur=this.onBlur.bind(this),this.onAutoSlideShowButtonClick=this.onAutoSlideShowButtonClick.bind(this),this.startAutoSlideshowIfNeeded=this.startAutoSlideshowIfNeeded.bind(this),this.updateAutoSlideShowState=this.updateAutoSlideShowState.bind(this),this.canStartAutoSlideshow=this.canStartAutoSlideshow.bind(this),this.handleSlideshowKeyPress=this.handleSlideshowKeyPress.bind(this),this.onAutoSlideshowAutoPlayKeyPress=this.onAutoSlideshowAutoPlayKeyPress.bind(this),this.setCurrentItemByScroll=this.setCurrentItemByScroll.bind(this),this._setCurrentItemByScroll=n.A.throttle(this.setCurrentItemByScroll,600).bind(this),this._next=n.A.throttle(this.nextWithEffects.bind(this),t.isScrollLessGallery?600:400).bind(this),this.state={activeIndex:t.activeIndex||0,isInView:!0,pauseAutoSlideshowClicked:!1,hideLeftArrow:t.options.behaviourParams_gallery_layoutDirection===o.A[a.A.behaviourParams.gallery.layoutDirection].LEFT_TO_RIGHT,hideRightArrow:t.options.behaviourParams_gallery_layoutDirection===o.A[a.A.behaviourParams.gallery.layoutDirection].RIGHT_TO_LEFT,shouldBlockAutoSlideshow:!1,isInFocus:!1},this.lastCurrentItem=void 0,this.shouldCreateSlideShowPlayButton=!1,this.skipFromSlide=Math.round(1.5*this.props.totalItemsCount)}isFirstItem(){return 0===this.state.activeIndex}
1isScrollStart(t=this.props){return!(t.options.behaviourParams_gallery_horizontal_slideAnimation!==o.A[a.A.behaviourParams.gallery.horizontal.slideAnimation].SCROLL||!this.scrollElement)&&this.scrollPosition(t)<=1}isScrollEnd(t=this.props){const e=t.options.behaviourParams_gallery_horizontal_slideAnimation;return!t.options.behaviourParams_gallery_horizontal_loop&&e!==o.A[a.A.behaviourParams.gallery.horizontal.slideAnimation].FADE&&e!==o.A[a.A.behaviourParams.gallery.horizontal.slideAnimation].DECK&&(this.isAllItemsLoaded(t)&&this.scrollPositionAtTheAndOfTheGallery(t)>=Math.floor(this.getScrollElementWidth(t)))}isAllItemsLoaded(t=this.props){const{totalItemsCount:e,getVisibleItems:i,galleryStructure:s,container:r,isPrerenderMode:o}=t;return i(s.galleryItems,r,o).length>=e}getScrollElementWidth(t=this.props){const{galleryStructure:e}=t;return e.width-this.props.options.layoutParams_structure_itemSpacing/2}isFirstItemFullyVisible(){return!this.props.options.behaviourParams_gallery_horizontal_loop&&this.isScrollStart()}isLastItemFullyVisible(){return!this.props.options.behaviourParams_gallery_horizontal_loop&&this.isScrollEnd()}isLastItem(){const t=this.state.activeIndex;return!this.props.options.behaviourParams_gallery_horizontal_loop&&t>=this.props.totalItemsCount-1}shouldBlockNext({scrollingUpTheGallery:t}){return t&&this.isLastItem()||!t&&this.isFirstItem()}shouldNotAllowScroll({scrollingUpTheGallery:t}){return t&&this.isLastItemFullyVisible()||!t&&this.isFirstItemFullyVisible()}async nextWithEffects(t){const e=await this.next(t);if(1===this.props.options.layoutParams_groups_groupSize&&this.props.isScrollLessGallery&&e>=this.skipFromSlide){const t=this.skipFromSlide-this.props.totalItemsCount;(0,A.j)((()=>this.onScrollToItemOrGroup(t,!1)))}}async next({direction:t,isAutoTrigger:e,scrollDuration:i,isKeyboardNavigation:s=!1,isContinuousScrolling:r=!1}){var n;const l=this.props.options.behaviourParams_gallery_layoutDirection===o.A[a.A.behaviourParams.gallery.layoutDirection].RIGHT_TO_LEFT?t<=-1:t>=1;if(this.shouldBlockNext({scrollingUpTheGallery:l}))return void this.clearAutoSlideshowInterval();t*=this.props.options.behaviourParams_gallery_layoutDirection===o.A[a.A.behaviourParams.gallery.layoutDirection].RIGHT_TO_LEFT?-1:1;const h=document.activeElement,u=h.className&&h.className.includes("gallery-item-container"),c=!s||!((null===(n=this.props.settings)||void 0===n?void 0:n.isAccessible)&&u);let m=!1;return this.props.options.behaviourParams_gallery_horizontal_slideAnimation!==o.A[a.A.behaviourParams.gallery.horizontal.slideAnimation].SCROLL&&(i=0,m=!0),this.removeArrowsIfNeeded(),c&&this.props.options.layoutParams_groups_groupSize>1?this.nextGroup({direction:t,scrollDuration:i,isContinuousScrolling:r,scrollingUpTheGallery:l}):(c&&o.A.isLayout("GRID")(this.props.options)&&this.props.options.layoutParams_structure_numberOfGridRows&&(t*=this.props.options.layoutParams_structure_numberOfGridRows),this.nextItem({direction:t,isAutoTrigger:e,scrollDuration:i,avoidIndividualNavigation:c,ignoreScrollPosition:m,isContinuousScrolling:r,scrollingUpTheGallery:l}))}getNextItemOrGroupToScrollTo(t,e,i,s,r){let o;if(this.isSliding=!0,"nextGroup"!==t&&("nextItem"!==t||i||!s||this.props.options.layoutParams_groups_groupSize>1))"nextItem"===t&&(o=i||!r?this.state.activeIndex:this.setCurrentItemByScroll(),o+=e,this.props.options.behaviourParams_gallery_horizontal_loop||(o=Math.min(this.props.galleryStructure.items.length-1,o),o=Math.max(0,o)));else{const i="nextGroup"===t?"groups":"galleryItems";o=this.getCenteredItemOrGroupIdxByScroll(i)+e}return this.isAutoScrolling=!0,o}async nextItem({direction:t,isAutoTrigger:e,scrollDuration:i,avoidIndividualNavigation:s,ignoreScrollPosition:r,isContinuousScrolling:o,scrollingUpTheGallery:a}){if(this.isSliding)return;let l=this.getNextItemOrGroupToScrollTo("nextItem",t,r,s,e);try{const t=r?0:l;return await this.scrollToItemOrGroup(this.props.actions.scrollToItem,t,o,i,a),1!==this.props.options.layoutParams_groups_groupSize||this.props.isScrollLessGallery||l>=this.skipFromSlide&&(l=n.A.inRange(l,this.props.totalItemsCount),await this.props.actions.scrollToItem(l)),this.onScrollToItemOrGroup(l,o),r&&(this.props.getMoreItemsIfNeeded(this.props.galleryStructure.galleryItems[l].offset.left),this.props.setGotFirstScrollIfNeeded()),l}catch(t){this.onThrowScrollError("Cannot proceed to the next Item",t)}}async nextGroup({direction:t,scrollDuration:e,isContinuousScrolling:i=!1,scrollingUpTheGallery:s}){if(this.isSliding)return;const r=this.getNextItemOrGroupToScrollTo("nextGroup",t);try{await this.scrollToItemOrGroup(this.props.actions.scrollToGroup,r,i,e,s);const o=this.getCenteredItemOrGroupIdxByScroll("galleryItems")+t;this.onScrollToItemOrGroup(o,i)}catch(t){this.onThrowScrollError("Cannot proceed to the next Group",t)}}
1async scrollToItemOrGroup(t,e,i,s,r){const o=!this.shouldNotAllowScroll({scrollingUpTheGallery:r}),{scrollMarginCorrection:a,_scrollDuration:n}=this.getScrollParameters(s);o&&await t(e,!1,!0,n,a,i)}onThrowScrollError(t,e){console.error(t,e),this.clearAutoSlideshowInterval()}onScrollToItemOrGroup(t,e){n.A.setStateAndLog(this,"Next Item",{activeIndex:t},(()=>{this.onCurrentItemChanged(),this.isSliding=!1,e&&this.startAutoSlideshowIfNeeded(this.props.options)}))}getScrollParameters(t){var e;return{scrollMarginCorrection:this.getStyles().margin||0,_scrollDuration:null!==(e=null!=t?t:this.props.options.behaviourParams_gallery_horizontal_navigationDuration)&&void 0!==e?e:400}}onCurrentItemChanged(t=this.props){if(this.lastCurrentItem!==this.state.activeIndex){this.lastCurrentItem=this.state.activeIndex;const 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(o.A.urlSizes.RESIZED,o.A.urlTypes.HIGH_RES),this.props.actions.eventsListener(o.A.events.CURRENT_ITEM_CHANGED,e)),this.navigationPanelCallbackOnIndexChange(this.state.activeIndex)}this.removeArrowsIfNeeded(t)}clearAutoSlideshowInterval(){clearInterval(this.autoSlideshowInterval)}canStartAutoSlideshow(t){return t.behaviourParams_gallery_horizontal_autoSlide_behaviour!==o.A[a.A.behaviourParams.gallery.horizontal.autoSlide.behaviour].OFF&&!this.state.shouldBlockAutoSlideshow}startAutoSlideshowIfNeeded(t){this.clearAutoSlideshowInterval(),this.canStartAutoSlideshow(t)&&(t.behaviourParams_gallery_horizontal_autoSlide_behaviour===o.A[a.A.behaviourParams.gallery.horizontal.autoSlide.behaviour].CONTINUOUS&&t.behaviourParams_gallery_horizontal_autoSlide_speed>0?this.autoScrollToNextItem():t.behaviourParams_gallery_horizontal_autoSlide_behaviour===o.A[a.A.behaviourParams.gallery.horizontal.autoSlide.behaviour].INTERVAL&&t.behaviourParams_gallery_horizontal_autoSlide_interval>0&&(this.autoSlideshowInterval=setInterval(this.autoScrollToNextItem,1e3*t.behaviourParams_gallery_horizontal_autoSlide_interval)))}getFirstIdx(t){const{galleryItems:e}=this.props.galleryStructure,i=e[t].itemId;return e.find((t=>t.itemId===i)).idx}scrollToThumbnail(t,e){this.props.actions.eventsListener(o.A.events.THUMBNAIL_CLICKED,this.props);const i=this.state.activeIndex,s=i+(this.getFirstIdx(t)-this.getFirstIdx(i));this.scrollToIndex({itemIdx:s,scrollDuration:e})}scrollToIndex({itemIdx:t,scrollDuration:e}){this.props.setGotFirstScrollIfNeeded();const i=this.props.options.behaviourParams_gallery_layoutDirection===o.A[a.A.behaviourParams.gallery.layoutDirection].RIGHT_TO_LEFT?this.state.activeIndex-t:t-this.state.activeIndex;return this.next({direction:i,isAutoTrigger:!1,scrollDuration:e,isKeyboardNavigation:!1})}handleSlideshowKeyPress(t){t.stopPropagation();const e=t.charCode||t.keyCode;if(!1===[32,33,34,37,38,39,40,27].includes(e))return!0;t.preventDefault();const i=l.A.document.activeElement.getAttribute("data-idx"),s=i&&this.props.totalItemsCount-1===Number(i)&&Number(i)===this.state.activeIndex;if(40===e&&s||27===e){const t={27:this.props.galleryContainerRef,40:this.props.outOfViewComponent}[e];n.A.focusGalleryElement(t)}else this._next({direction:f(e),isKeyboardNavigation:!0});return!1}getCenteredItemOrGroupIdxByScroll(t){const e=this.props.galleryStructure[t];let i;const s=this.scrollPositionAtTheMiddleOfTheGallery();if(0===s)i=0;else for(let r,o=0;r=e[o];o++){if(("galleryItems"===t?r.offset.left:r.left)>s){i=o-1;break}}return i>=0||(i=this.isFirstItem()?0:e.length-1),i}setCurrentItemByScroll(){if(n.A.isVerbose()&&console.log("Setting current Idx by scroll",this.isAutoScrolling),this.isAutoScrolling)return void(this.isAutoScrolling=!1);if("true"===(this.scrollElement&&this.scrollElement.getAttribute("data-scrolling")))return void this.clearAutoSlideshowInterval();this.startAutoSlideshowIfNeeded(this.props.options);const t=this.getCenteredItemOrGroupIdxByScroll("galleryItems");return n.A.isUndefined(t)||n.A.setStateAndLog(this,"Set Current Item",{activeIndex:t},(()=>{this.onCurrentItemChanged()})),t}createDebugMsg(){return s.createElement(u.A,Object.assign({},this.props.debug))}createNavArrows(){const{container:t,options:e,customComponents:i,id:r}=this.props,{hideLeftArrow:o,hideRightArrow:a}=this.state;return s.createElement(g.$9,{container:t,options:e,customNavArrowsRenderer:i.customNavArrowsRenderer,hideLeftArrow:o,hideRightArrow:a,next:this._next,id:r})}getBufferedItems(t,e){var i;const{state:s,props:r}=this,{options:o,virtualizationSettings:a,getVisibleItems:n,isPrerenderMode:l}=r,{activeIndex:h}=s,u=n(t,e,l),c=(null===(i=this.props.galleryContainerRef)||void 0===i?void 0:i.clientWidth)||e.galleryWidth||0;return(0,p.J)({groups:u,activeIndex:h,galleryWidth:c,options:o,virtualizationSettings:a})}createGalleryConfig(){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,playing3DIdx:this.props.playing3DIdx,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}}createLayout(){const{container:t,galleryStructure:e}=this.props,i=this.createGalleryConfig(),r=e=>{const r=!!e.galleryGroups.length&&this.getBufferedItems(e.galleryGroups,t);if(r)return r.map((({group:t,shouldRender:e})=>!!t.rendered&&s.createElement(h.A,Object.assign(Object.assign({disableItemFocus:this.props.disableItemFocus,activeIndex:this.state.activeIndex,slideAnimation:this.props.options.behaviourParams_gallery_horizontal_slideAnimation,allowLoop:this.props.options.behaviourParams_gallery_horizontal_loop&&this.props.galleryStructure.width>this.props.container.width},t.renderProps(i)),{ariaHidden:t.idx>this.skipFromSlide,shouldRenderEmpty:!e,container:this.props.container,key:t.idx}))))};return e.columns.map(((t,e)=>{const i={width:this.props.isPrerenderMode?"100%":t.width,height:this.getDimensions().height,overflowY:this.props.isPrerenderMode?"visible":"hidden"};return s.createElement("div",{"data-hook":"gallery-column",id:`gallery-horizontal-scroll-${this.props.id}`,className:`gallery-horizontal-scroll gallery-column hide-scrollbars ${this.props.options.behaviourParams_gallery_layoutDirection===o.A[a.A.behaviourParams.gallery.layoutDirection].RIGHT_TO_LEFT?" rtl ":" ltr "} ${this.props.options.behaviourParams_gallery_horizontal_enableScrollSnap?" scroll-snap ":""} `,key:"column"+e,style:i},s.createElement("div",{className:"gallery-horizontal-scroll-inner"},r(t)))}))}getDimensions(){const t=this.props.container.galleryHeight;return this.props.isPrerenderMode?{width:"100%",height:t}:{height:t,width:this.props.container.galleryWidth}}createGallery(){var t;const e=this.props.options.layoutParams_structure_scrollDirection===o.A[a.A.layoutParams.structure.scrollDirection].HORIZONTAL&&this.props.options.layoutParams_navigationArrows_position===o.A[a.A.layoutParams.navigationArrows.position].OUTSIDE_GALLERY?{overflow:"visible",left:this.props.options.layoutParams_navigationArrows_size+40+this.props.options.layoutParams_structure_itemSpacing/2}:{},i=this.getDimensions(),r=Object.assign(Object.assign(Object.assign({},i),e),{display:"flex",justifyContent:"space-between"});return s.createElement("div",{id:this.props.galleryContainerId,className:"pro-gallery inline-styles one-row hide-scrollbars "+(this.props.options.behaviourParams_gallery_horizontal_blockScroll?"":" slider ")+((null===(t=this.props.settings)||void 0===t?void 0:t.isAccessible)?" accessible ":"")+(this.props.options.behaviourParams_gallery_layoutDirection===o.A[a.A.behaviourParams.gallery.layoutDirection].RIGHT_TO_LEFT?" rtl ":" ltr "),style:r},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())}onAutoSlideShowButtonClick(){this.setState({pauseAutoSlideshowClicked:!this.state.pauseAutoSlideshowClicked},(()=>{this.updateAutoSlideShowState(this.props)}))}isFullWidthGallery(){return this.props.container.galleryWidth>=n.A.getWindowWidth()-10}onAutoSlideshowAutoPlayKeyPress(t){switch(t.keyCode||t.charCode){case 32:case 13:return t.preventDefault(),t.stopPropagation(),this.onAutoSlideShowButtonClick(),!1;default:return!0}}calcSlideshowCounterWidth(){const{totalItemsCount:t}=this.props;
1return t<10?26:t<100?43:t<1e3?60:76}createAutoSlideShowPlayButton(){if(!this.shouldCreateSlideShowPlayButton)return!1;const t=this.props.options.behaviourParams_gallery_horizontal_slideshowInfo_buttonsAlignment,e=this.props.options.layoutParams_structure_itemSpacing/2+(this.isFullWidthGallery()?50:0),i=t===o.A[a.A.behaviourParams.gallery.horizontal.slideshowInfo.buttonsAlignment].RIGHT?{left:e/2+"px"}:{right:`${e/2+(this.props.options.behaviourParams_gallery_horizontal_slideshowInfo_enableCounter?this.calcSlideshowCounterWidth():0)}px`};return s.createElement("button",{className:"auto-slideshow-button",onClick:()=>{this.onAutoSlideShowButtonClick()},onKeyDown:this.onAutoSlideshowAutoPlayKeyPress,"data-hook":"auto-slideshow-button",title:"slideshow auto play","aria-pressed":this.state.pauseAutoSlideshowClicked,tabIndex:0,style:Object.assign({top:`calc(100% - ${this.props.options.layoutParams_info_height}px + 3px)`},i)},this.state.pauseAutoSlideshowClicked?s.createElement(c.A,{width:"10px",height:"100%"}):s.createElement(m.A,{width:"10px",height:"100%"}))}createSlideShowNumbers(){if(!this.props.options.behaviourParams_gallery_horizontal_slideshowInfo_enableCounter)return!1;const{totalItemsCount:t}=this.props,e=this.props.options.behaviourParams_gallery_horizontal_slideshowInfo_buttonsAlignment,i=this.props.options.layoutParams_structure_itemSpacing/2+(this.isFullWidthGallery()?50:0),r=this.shouldCreateSlideShowPlayButton?i/2+25:i/2,n=e===o.A[a.A.behaviourParams.gallery.horizontal.slideshowInfo.buttonsAlignment].RIGHT?{left:`${r}px`}:{right:i/2+"px"};return s.createElement("div",{className:"auto-slideshow-counter","data-hook":"auto-slideshow-counter",style:Object.assign({top:`calc(100% - ${this.props.options.layoutParams_info_height}px + 3px)`},n)},s.createElement("div",null,this.state.activeIndex%t+1+"/"+t))}getNavigationPanelArray(){if(!this.props.options.layoutParams_thumbnails_enable)return[!1,!1];const t=this.getCustomNavigationPanel();let e;if(t){const{galleryHeight:i,galleryWidth:r,height:o,width:a}=this.props.container,n=(0,d.j)({galleryHeight:i,galleryWidth:r,height:o,width:a,galleryThumbnailsAlignment:this.props.options.layoutParams_thumbnails_alignment,navigationPanelPosition:this.props.options.layoutParams_thumbnails_position});e=e=>s.createElement("div",{className:"custom-navigation-panel",style:n},t(Object.assign(Object.assign({},this.props),{domOrder:e,activeIndex:this.state.activeIndex,navigationToIdxCB:this.scrollToThumbnail,navigationPanelAPI:this.createOrGetCustomNavigationPanelAPI()})))}else e=t=>s.createElement(d.A,Object.assign({},this.props,{domOrder:t,activeIndex:this.state.activeIndex,navigationToIdxCB:this.scrollToThumbnail}));const i=[];if(this.props.options.layoutParams_thumbnails_position===o.A[a.A.layoutParams.thumbnails.position].ON_GALLERY)return i[0]=!1,i[1]=e("after"),i;if(this.props.isPrerenderMode)return i[0]=e("before"),i[1]=e("after"),i;switch(this.props.options.layoutParams_thumbnails_alignment){case o.A[a.A.layoutParams.thumbnails.alignment].TOP:case o.A[a.A.layoutParams.thumbnails.alignment].LEFT:i[0]=e("before"),i[1]=!1;break;case o.A[a.A.layoutParams.thumbnails.alignment].RIGHT:case o.A[a.A.layoutParams.thumbnails.alignment].BOTTOM:i[0]=!1,i[1]=e("after")}return i}getClassNames(){let t="pro-gallery-parent-container";return o.A.isLayout("SLIDER")(this.props.options)?t+=" gallery-slider":this.props.options.layoutParams_thumbnails_enable?t+=" gallery-thumbnails":o.A.isLayout("COLUMN")(this.props.options)&&(t+=" gallery-columns"),t}getStyles(){return{margin:-1*(this.props.options.layoutParams_structure_itemSpacing/2-this.props.options.layoutParams_structure_gallerySpacing),width:this.props.container.width,height:this.props.container.height}}getScrollPosition(t=this.props){return this.scrollElement?this.scrollPosition(t):0}scrollPositionAtTheMiddleOfTheGallery(){return this.getScrollPosition()+this.props.container.galleryWidth/2}scrollPositionAtTheAndOfTheGallery(t=this.props){return this.getScrollPosition(t)+t.container.galleryWidth}scrollPosition(t=this.props){return(t.options.behaviourParams_gallery_layoutDirection===o.A[a.A.behaviourParams.gallery.layoutDirection].RIGHT_TO_LEFT?-1:1)*this.scrollElement.scrollLeft}updateAutoSlideShowState(t=this.props){const{isGalleryInHover:e,options:i,settings:s}=t,{pauseAutoSlideshowClicked:r,shouldBlockAutoSlideshow:o,isInView:a,isInFocus:n}=this.state,l=e&&i.behaviourParams_gallery_horizontal_autoSlide_pauseOnHover,h=n&&(null==s?void 0:s.isAccessible);let u=!a||r||h||l;o!==u&&this.setState({shouldBlockAutoSlideshow:u},(()=>{this.startAutoSlideshowIfNeeded(i)}))}onFocus(){this.setState({isInFocus:!0},(()=>{this.updateAutoSlideShowState(this.props)}))}onBlur(){this.setState({isInFocus:!1},(()=>{this.updateAutoSlideShowState(this.props)}))}UNSAFE_componentWillReceiveProps(t){var e,i;const s=t.isInViewport&&(null===(e=t.isInDisplay)||void 0===e||e);s!==(this.props.isInViewport&&(null===(i=this.props.isInDisplay)||void 0===i||i))?this.setState({isInView:s},(()=>{this.updateAutoSlideShowState(t)})):this.props.isGalleryInHover!==t.isGalleryInHover?this.updateAutoSlideShowState(t):this.props.container.scrollBase!=t.container.scrollBase&&this.forceUpdate((()=>{this.startAutoSlideshowIfNeeded(t.options)})),this.props.activeIndex!==t.activeIndex&&n.A.setStateAndLog(this,"Next Item",{activeIndex:t.activeIndex},(()=>{this.onCurrentItemChanged(t)})),this.props.totalItemsCount===t.totalItemsCount&&this.props.container.galleryHeight===t.container.galleryHeight&&this.props.container.galleryWidth===t.container.galleryWidth&&this.state.activeIndex===t.activeIndex||this.removeArrowsIfNeeded(t),((0,r.Q)()||(0,r.IL)())&&(this.props.options.behaviourParams_gallery_horizontal_autoSlide_behaviour!==o.A[a.A.behaviourParams.gallery.horizontal.autoSlide.behaviour].OFF!==t.options.behaviourParams_gallery_horizontal_autoSlide_behaviour===o.A[a.A.behaviourParams.gallery.horizontal.autoSlide.behaviour].OFF&&this.props.options.behaviourParams_gallery_horizontal_autoSlide_interval===t.options.behaviourParams_gallery_horizontal_autoSlide_interval||this.startAutoSlideshowIfNeeded(t.options)),this.shouldCreateSlideShowPlayButton=t.options.behaviourParams_gallery_horizontal_autoSlide_behaviour!==o.A[a.A.behaviourParams.gallery.horizontal.autoSlide.behaviour].OFF&&t.options.behaviourParams_gallery_horizontal_slideshowInfo_enablePlayButton}removeArrowsIfNeeded(t=this.props){const e=t.options.behaviourParams_gallery_layoutDirection===o.A[a.A.behaviourParams.gallery.layoutDirection].RIGHT_TO_LEFT,{hideLeftArrow:i,hideRightArrow:s}=this.state,r=this.isScrollStart(t),n=this.isFirstItem(),l=this.isScrollEnd(t),h=this.isLastItem(),u=r||n,c=l||h,m=!e&&u||e&&c,d=e&&u||!e&&c;(!!m!=!!i||!!d!=!!s)&&this.setState({hideLeftArrow:!!m,hideRightArrow:!!d})}componentDidMount(){this.scrollElement=l.A.document.querySelector(`#pro-gallery-${this.props.id} #gallery-horizontal-scroll-${this.props.id}`),this.scrollElement&&this.scrollElement.addEventListener("scroll",this._setCurrentItemByScroll),this.state.activeIndex>0?(this.props.actions.scrollToItem(this.state.activeIndex),this.onCurrentItemChanged()):this.setCurrentItemByScroll(),this.startAutoSlideshowIfNeeded(this.props.options),this.createOrGetCustomNavigationPanelAPI()}componentWillUnmount(){this.scrollElement&&this.scrollElement.removeEventListener("scroll",this._setCurrentItemByScroll)}render(){n.A.isVerbose()&&(console.count("galleryView render"),console.count("Ren
1dering Gallery count"),console.time("Rendering Gallery took "));const t=this.createGallery(),e=this.getNavigationPanelArray();return n.A.isVerbose()&&console.timeEnd("Rendering Gallery took "),s.createElement("div",Object.assign({className:this.getClassNames(),style:this.getStyles(),onKeyDown:this.handleSlideshowKeyPress},n.A.getAriaAttributes({proGalleryRole:this.props.proGalleryRole,proGalleryRegionLabel:this.props.proGalleryRegionLabel}),{onFocus:this.onFocus,onBlur:this.onBlur}),e[0],t,e[1])}}const b=v},73087:(t,e,i)=>{"use strict";i.d(e,{i:()=>a});var s=i(60751),r=i(98902),o=i(11854);const a=t=>class extends s.Component{constructor(t){super(t),this.initViewModeWrapper(t)}initViewModeWrapper(t){void 0!==t.viewMode&&r.CB.setViewMode(t.viewMode),void 0!==t.deviceType&&r.CB._deviceType!==t.deviceType&&(o.A.dumpCache(),r.CB.setDeviceType(t.deviceType))}updateViewModeWrapper(t){this.props.viewMode!==t.viewMode&&(o.A.dumpCache(),r.CB.setViewMode(t.viewMode)),this.props.deviceType!==t.deviceType&&(o.A.dumpCache(),r.CB.setDeviceType(t.deviceType))}UNSAFE_componentWillReceiveProps(t){this.updateViewModeWrapper(t)}render(){return s.createElement(t,Object.assign({},this.props))}}},78532:(t,e,i)=>{"use strict";function s(t,e){return!0!==e&&(!0===t.shouldValidateTypes||"true"===(function(){try{const 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:()=>s})},24379:(t,e,i)=>{"use strict";i.d(e,{A:()=>l});var s=i(60751),r=i(9331),o=i(6940),a=i(59955);class n extends s.Component{constructor(t){super(t),this.displayName="GroupView",this.dom=[],this.state={}}createDom(t,e){return this.props.items.map((i=>{const o=i.renderProps(Object.assign(Object.assign({},this.props.galleryConfig),{visible:t}));return s.createElement(r.A,Object.assign(Object.assign({},o),{disableItemFocus:this.props.disableItemFocus,type:null!=e&&e?"dummy":o.type}))}))}shouldRender(){const{items:t}=this.props;return!!(t&&t.length&&t[0])}isVisible(){const{items:t,galleryConfig:e}=this.props;if(this.props.allowLoop){const{idx:i}=t[t.length-1],{activeIndex:s,totalItemsCount:r}=e,o=s-i,a=Math.floor(r/2);return Math.abs(o)<=a}return!0}render(){const{options:t}=this.props.galleryConfig,e=t[o.A.behaviourParams.gallery.layoutDirection]===a.A[o.A.behaviourParams.gallery.layoutDirection].RIGHT_TO_LEFT;return this.shouldRender()?s.createElement("div",{key:`group_${this.props.idx}_${this.props.items[0].id}`,"data-hook":"group-view",className:`group-view group-view-${this.props.idx}`,style:{"--group-top":this.props.top+"px","--group-left":e?"auto":this.props.left+"px","--group-width":this.props.width+"px","--group-right":e?this.props.left+"px":"auto"},"aria-hidden":this.props.ariaHidden},this.createDom(this.isVisible(),this.props.shouldRenderEmpty)):null}}const l=n},21473:(t,e,i)=>{"use strict";i.d(e,{X:()=>n});var s=i(6940),r=i(59955),o=i(34653);const a=(t="",e,i)=>{const a=i[s.A.behaviourParams.gallery.layoutDirection]===r.A[s.A.behaviourParams.gallery.layoutDirection].RIGHT_TO_LEFT;let n="";return e.forEach((e=>{const i=(({galleryId:t,item:e})=>`#pro-gallery-${t} #${o.t.getSellectorDomId(e)}`)({galleryId:t,item:e}),s=(t=>({top:t.offset.top,left:t.offset.left,width:t.width+t.infoWidth,height:t.height+t.infoHeight,innerHeight:t.height}))(e),r=`top:${s.top}px;`,l=a?`right:${s.left}px;left:auto;`:`left:${s.left}px;`,h=`width:${s.width}px;`,u=`height:${s.height}px;`;n+=`${i} {${r}${l}${h}${u}}`})),n},n=({galleryItems:t,layoutParams:e,id:i})=>{const s=[];return s.push(a(i,t,e.options)),s}},34653:(t,e,i)=>{"use strict";i.d(e,{t:()=>n});var s=i(84094),r=i(11854),o=i(6940),a=i(59955);const n=new class{constructor(){this.pgScrollSteps=[40960,20480,10240,5120,2560,1280,640,320,160,80,40,20,10],this.pgScrollClassName="pgscl",this.screenSize=Math.max(s.A.screen.width,s.A.screen.height),this.scrollCss=[],this.scrollCssProps=[],this.calcScrollPaddings(!1)}calcScrollPaddings(){this.allPagePadding=()=>[1/0,1/0],this.inScreenPadding=()=>[0,0],this.aboveScreenPadding=()=>[0,1/0],this.justBelowScreenPadding=t=>[1/0,-1*(t+this.screenSize)],this.justBelowAndAboveScreenPadding=()=>[2560,1/0],this.justBelowAndInScreenPadding=()=>[5120,0],this.belowScreenPadding=()=>[1/0,0],this.highResPadding=()=>[5120,1/0],this.lowResPadding=()=>[10240,1/0]}getSellectorDomId({id:t,idx:e}){return`pgi${String(t).replace(/[\W]+/g,"")}_${e}`}buildScrollClassName(t,e,i){const s=String(t).replace(/[\W]+/g,"").slice(-8);return`${this.pgScrollClassName}_${s}_${i}-${this.pgScrollSteps[e]+Number(i)}`}calcScrollClasses(t,e){return`${this.pgScrollClassName}-${e} `+this.pgScrollSteps.map(((i,s)=>this.buildScrollClassName(t,s,Math.floor(e/i)*i))).join(" ")}calcScrollCss({id:t,items:e,options:i,container:n}){if(r.A.isVerbose()&&console.time("CSS Scroll"),!e||!e.length)return[];if(i[o.A.behaviourParams.gallery.scrollAnimation]===a.A[o.A.behaviourParams.gallery.scrollAnimation].NO_EFFECT)return[];this.screenSize=i[o.A.layoutParams.structure.scrollDirection]===a.A[o.A.layoutParams.structure.scrollDirection].HORIZONTAL?Math.min(s.A.outerWidth,s.A.screen.width,n.galleryWidth):Math.min(s.A.outerHeight,s.A.screen.height),i[o.A.layoutParams.structure.scrollDirection]===a.A[o.A.layoutParams.structure.scrollDirection].VERTICAL&&r.A.isMobile()&&(this.screenSize+=50),this.calcScrollPaddings();const[l]=e.slice(-1),{top:h,right:u}=l.offset,c=this.pgScrollSteps[0];this.minHeight=0-c,this.maxHeight=(Math.ceil(((i[o.A.layoutParams.structure.scrollDirection]===a.A[o.A.layoutParams.structure.scrollDirection].HORIZONTAL?u:h)+this.screenSize)/c)+1)*c;const m=e.map((e=>this.calcScrollCssForItem({id:t,item:e,options:i})));return r.A.isVerbose()&&console.timeEnd("CSS Scroll"),m}shouldCalcScrollCss({type:t}){return"video"!==t&&"text"!==t&&"3d"!==t}createScrollSelectorsFunction({id:t,item:e,options:i}){const s=i[o.A.layoutParams.structure.scrollDirection]===a.A[o.A.layoutParams.structure.scrollDirection].HORIZONTAL?e.offset.left-this.screenSize:e.offset.top-this.screenSize,r=i[o.A.layoutParams.structure.scrollDirection]===a.A[o.A.layoutParams.structure.scrollDirection].HORIZONTAL?e.offset.left+e.width:e.offset.top+e.height,n=this.pgScrollSteps[this.pgScrollSteps.length-1],l=(t,e)=>Math.ceil(Math.min(this.maxHeight,t)/e)*e,h=(t,e)=>Math.floor(Math.max(this.minHeight,t)/e)*e,u=this.getSellectorDomId(e);return(e,i)=>{const[o,a]=e;if(o===1/0&&a===1/0)return`#pro-gallery-${t} #${u} ${i}`;let c=h(s-o,n);const m=l(r+a,n),d=[];for(;c<m;){const s=this.pgScrollSteps.findIndex((t=>c%t==0&&c+t<=m));if(-1===s){console.error("largestDividerIdx is -1. Couldn't find index in pgScrollSteps array.\nfrom =",c,"\nto =",m,"\npadding[0] =",e[0],"\npadding[1] =",e[1]);break}d.push(`.${this.buildScrollClassName(t,s,c)} ~ div #${u} ${i}`),c+=this.pgScrollSteps[s]}return d.join(", ")}}calcScrollCssForItem({id:t,item:e,options:i}){const{idx:s}=e;let r="";
1const o=this.createScrollSelectorsFunction({id:t,item:e,options:i});return r+=this.createScrollAnimationsIfNeeded({idx:s,item:e,options:i,createScrollSelectors:o}),this.scrollCss[s]=r||this.scrollCss[s],this.scrollCss[s]}createScrollAnimationsIfNeeded({idx:t,options:e,createScrollSelectors:i}){const s=e[o.A.behaviourParams.gallery.scrollAnimation],{NO_EFFECT:r,FADE_IN:n,GRAYSCALE:l,SLIDE_UP:h,EXPAND:u,SHRINK:c,ZOOM_OUT:m,ONE_COLOR:d,MAIN_COLOR:p,BLUR:g}=a.A[o.A.behaviourParams.gallery.scrollAnimation],y=e[o.A.behaviourParams.gallery.layoutDirection]===a.A[o.A.behaviourParams.gallery.layoutDirection].RIGHT_TO_LEFT,A=e[o.A.layoutParams.structure.scrollDirection];if(s===r)return"";const f=100*(t%3+1),v=100*(t%3+1),b=this.allPagePadding(),I=this.aboveScreenPadding();let P="";if(s!==p&&s!==g||(P+=i(b,' [data-hook="image-item-overlay"]')+`{filter: opacity(1); transition: filter 1.${v}s ease-in ${f}ms !important;}`,P+=i(I,' [data-hook="image-item-overlay"]')+"{filter: opacity(0) !important;}"),s===n&&(P+=i(b,"")+`{filter: opacity(0); transition: filter 1.${v}s ease-in !important;}`,P+=i(I,"")+"{filter: opacity(1) !important;}"),s===l&&(P+=i(b," .gallery-item-wrapper")+`{filter: grayscale(100%); transition: filter 1.${200+v}s ease-in !important;}`,P+=i(I," .gallery-item-wrapper")+"{filter: grayscale(0) !important;}"),s===h){const t=A===a.A[o.A.layoutParams.structure.scrollDirection].HORIZONTAL?"X":"Y",e=y?"-":"";P+=i(b,"")+`{transform: translate${t}(${e}100px); transition: transform 0.8s cubic-bezier(.13,.78,.53,.92) !important;}`,P+=i(I,"")+`{transform: translate${t}(0) !important;}`}if(s===u&&(P+=i(b,"")+`{transform: scale(0.95); transition: transform 1s cubic-bezier(.13,.78,.53,.92) ${f}ms !important;}`,P+=i(I,"")+"{transform: scale(1) !important;}"),s===c&&(P+=i(b,"")+`{transform: scale(1.05); transition: transform 1s cubic-bezier(.13,.78,.53,.92) ${f}ms !important;}`,P+=i(I,"")+"{transform: scale(1) !important;}"),s===m&&(P+=i(b," .gallery-item-wrapper")+`{transform: scale(1.1); transition: transform 1.2s cubic-bezier(.13,.78,.53,.92) ${f}ms !important;}`,P+=i(I," .gallery-item-wrapper")+"{transform: scale(1) !important;}"),s===d){const t=e.oneColorAnimationColor&&e.oneColorAnimationColor.value?e.oneColorAnimationColor.value:"transparent";P+=i(b,"")+`{background-color: ${t};}`,P+=i(b," .gallery-item-wrapper")+`{filter: opacity(0); transition: filter 0.${600+v}s ease-in !important;}`,P+=i(I," .gallery-item-wrapper")+"{filter: opacity(1) !important;}"}return P}}},40185:(t,e,i)=>{"use strict";i.d(e,{A:()=>r});var s=i(48063);class r{constructor(){this.listeners={}}on(t,e){return this.listeners[t]=this.listeners[t]||[],this.listeners[t].push(e),{remove:()=>{this.off(t,e)}}}emit(t,...e){const i=this.listeners[t];i&&i.forEach((t=>t(...e)))}off(t,e){const i=this.listeners[t];i&&i.splice(i.indexOf(e),1)}get call(){return(0,s.B)((t=>(...e)=>{this.emit(t,...e)}))}get listen(){return(0,s.B)((t=>e=>(this.on(t,e),()=>{this.off(t,e)})))}}},49352:(t,e,i)=>{"use strict";i.d(e,{A:()=>s});const s=function(t,e,i){const s=i[t];let r;const o=(t,e,s)=>{let r,o,a,n=null,l={};return i.forEach((i=>{r=i.offset.top+i.height/2,o=i.offset.left+i.width/2,a=Math.sqrt(Math.pow(r-e,2)+Math.pow(o-t,2)),(null===n||a>0&&a<n)&&s(t,e,o,r)&&(n=a,l=i)})),l};switch(e){case"up":r=o(s.offset.left+s.width/2,s.offset.top,((t,e,i,s)=>s<e));break;case"left":r=o(s.offset.left,s.offset.top+s.height/2,((t,e,i)=>i<t));break;case"down":r=o(s.offset.left+s.width/2,s.offset.bottom,((t,e,i,s)=>s>e));break;default:r=o(s.offset.right,s.offset.top+s.height/2,((t,e,i)=>i>t))}return r.idx>=0?r.idx:(console.warn("Could not find offset for itemIdx",t,e),t)}},3637:(t,e,i)=>{"use strict";i.d(e,{A:()=>r});var s=i(98902);const r=class{constructor(t){this.config=t,this.scrollHelpers=[],this.stop=t=>{for(const e of this.scrollHelpers)e.findItem(t)&&e.stop(t)},this.initializePlayState=()=>{for(const t of this.scrollHelpers)t.initializePlayState()},this.onScroll=({top:t,left:e})=>{this.scrollHelpers.length||(this.top=t||this.top,this.left=e||this.left);for(const i of this.scrollHelpers)i.onScroll({top:t,left:e})},this.handleEvent=t=>{for(const e of this.scrollHelpers)e.handleEvent(t)},this.updateGalleryStructure=t=>{if(!t.isSSR){for(const e of this.scrollHelpers)e.updateGalleryStructure(t);this.scrollHelperPromise?this.latestGalleryStructure=t:(this.latestGalleryStructure=t,(0,s.Q)()||t.galleryStructure.galleryItems.some((t=>this.config.some((e=>e.supportedItemsFilter(t)))))&&(this.scrollHelperPromise=Promise.all([i.e(8741),i.e(9955),i.e(4313)]).then(i.bind(i,46096)).then((({default:t})=>{for(const e of this.config)this.scrollHelpers.push(new t(e.onSetPlayingIdx,e.supportedItemsFilter,e.getPlayTrigger));this.updateGalleryStructure(this.latestGalleryStructure),this.onScroll({top:this.top,left
1:this.left})})).catch((t=>{console.error("Failed to load videoScrollHelper. error: "+t)}))))}},this.left=0,this.top=0}}},26641:(t,e,i)=>{"use strict";i.d(e,{N9:()=>h,QH:()=>d,vk:()=>p});var s=i(60751),r=i(40185),o=i(48063),a=i(11854);const n=t=>document.getElementById(`pro-gallery-container-${t}`),l=s.createContext(void 0),h=({children:t,id:e})=>{const[i,o]=s.useState();return(0,s.useEffect)((()=>{const t=function(t){const e=new r.A;let i={mouseIn:!1,position:[0,0]};e.listen.mouseEnterState(((t,...e)=>{i={mouseIn:t,position:e}})),e.listen.mouseMove(((t,e)=>{i=Object.assign(Object.assign({},i),{position:[t,e]})}));const s=e=>{const i=t.getBoundingClientRect();return[e.clientX-i.left,e.clientY-i.top]};function o(i){const r=s(i);e.call.mouseEnterState(!m(t,i,...r),...r)}function a(i){const r=s(i);e.call.mouseEnterState(!m(t,i,...r),...r),e.call.mouseMove(...r)}function n(){e.call.mouseEnterState(!1,0,0)}function l(t){e.call.mouseClickInteractionEvent(t)}return t.addEventListener("mouseenter",o),t.addEventListener("mousemove",a),t.addEventListener("mouseleave",n),t.addEventListener("click",l),t.addEventListener("mousedown",l),t.addEventListener("mouseup",l),{listen:e.listen,get state(){return i},destroy:()=>{t.removeEventListener("mouseenter",o),t.removeEventListener("mousemove",a),t.removeEventListener("mouseleave",n),t.removeEventListener("click",l),t.removeEventListener("mousedown",l),t.removeEventListener("mouseup",l)}}}(n(e));return o(t),()=>{t.destroy()}}),[e]),s.createElement(l.Provider,{value:i},i&&t)};class u extends s.Component{constructor(){var t,e;super(...arguments),this.state={position:(null===(t=this.context)||void 0===t?void 0:t.state.position)||[0,0],mouseIn:(null===(e=this.context)||void 0===e?void 0:e.state.mouseIn)||!1}}componentDidMount(){if(!this.context)throw new Error("MouseFollowerContext is undefined");const t=this.context.listen.mouseMove(a.A.throttle((()=>{this.setState({position:this.context.state.position})}),this.props.throttle)),e=this.context.listen.mouseEnterState((()=>{const{mouseIn:t,position:e}=this.context.state;this.state.mouseIn!==t&&(this.setState({mouseIn:t,position:e}),this.props.onEnterState&&this.props.onEnterState(t))})),i=this.context.listen.mouseClickInteractionEvent((t=>{if(!this.state.mouseIn)return;const[e,i]=this.state.position;this.props.shouldRenderAtPosition(e,i)&&("mousedown"!==t.type&&"mouseup"!==t.type?this.props.onClick(t):this.props.onMouseDownOrUp(t))}));this.cleanup=()=>{t(),e(),i()}}componentWillUnmount(){var t;null===(t=this.cleanup)||void 0===t||t.call(this)}render(){if(!this.state.mouseIn)return null;const[t,e]=this.state.position;return this.props.shouldRenderAtPosition(t,e)?this.props.render(this.state.position[0],this.state.position[1]):null}}u.contextType=l;const c="pg-clickable",m=(t,e,i,s)=>{for(const t of e.composedPath())if(t instanceof HTMLElement&&"true"===t.getAttribute(c))return!0;const r=t.getBoundingClientRect(),o=document.elementFromPoint(i+r.left,s+r.top);if(!o)return!1;let a=o;for(;a;){if("true"===a.getAttribute(c))return!0;a=a.parentElement}return!1};class d extends s.Component{constructor(){super(...arguments),this.shouldRender=t=>{const e=n(this.props.id).offsetWidth,i=e*(Math.min(this.props.mouseCursorContainerMaxWidth,this.props.isTheOnlyArrow?100:50)/100),s=i>=t,r=t>e-i;return"left"===this.props.direction?s:r},this.onNavigation=t=>{t.preventDefault(),t.stopPropagation(),this.props.onNavigate()}}render(){return s.createElement(u,{getElement:()=>n(this.props.id),render:(t,e)=>{var i;return s.createElement(s.Fragment,null,this.props.children(t,e),s.createElement("style",null,`\n #${null===(i=n(this.props.id))||void 0===i?void 0:i.id} * {\n cursor: none !important;\n }\n `))},shouldRenderAtPosition:this.shouldRender,onClick:this.onNavigation,onMouseDownOrUp:t=>t.stopPropagation(),throttle:50})}}const p=function(){const t=new Map;return(0,o.B)((e=>(t.get(e)||t.set(e,(t=>s.createElement(e,Object.assign(Object.assign({},t),{[c]:"true"})))),t.get(e))))}()},91311:(t,e,i)=>{"use strict";i.d(e,{FC:()=>h,s0:()=>d,t_:()=>u});var s=i(60751),r=i(59955),o=i(6940),a=i(11854),n=i(10869);const l=({customNavArrowsRenderer:t,arrowsSize:e,svgData:i,containerStyleType:s})=>{const a=i.width/i.height>1;
1if(s===r.A[o.A.layoutParams.navigationArrows.container.type].BOX){return{navArrowsContainerWidth:e,navArrowsContainerHeight:e,scalePercentage:e/2.4/(a?i.width:i.height)}}if(t)return{navArrowsContainerWidth:e,navArrowsContainerHeight:e};const n=e/i.width;return{scalePercentage:n,navArrowsContainerWidth:e,navArrowsContainerHeight:i.height*n}},h=({customNavArrowsRenderer:t,arrowsColor:e,arrowsSize:i,arrowsType:n,containerStyleType:h})=>{const u=m(n),{navArrowsContainerWidth:c,navArrowsContainerHeight:d,scalePercentage:p}=l({customNavArrowsRenderer:t,arrowsSize:i,svgData:u,containerStyleType:h});if(t){const e=h===r.A[o.A.layoutParams.navigationArrows.container.type].BOX?i/2.4:i;return{arrowRenderer:i=>s.createElement("div",{style:{width:e,height:e}},t(i)),navArrowsContainerWidth:c,navArrowsContainerHeight:d}}return{arrowRenderer:t=>{const i={transform:`scaleX(${"right"===t?1:-1}) scale(${p})`,fill:a.A.isMobile()&&(null==e?void 0:e.value)?e.value:""};return s.createElement(u.SvgComp,{style:i})},navArrowsContainerWidth:c,navArrowsContainerHeight:d}},u=t=>{const e=c(t),i=e.options[o.A.layoutParams.navigationArrows.enable],{galleryWidth:s}=e.container,{isPrerenderMode:a,galleryStructure:n,customNavArrowsRenderer:h}=e,u={options:e.options,container:e.container,customNavArrowsRenderer:h},d=n.width<=s;return!!i&&!a&&(({options:t,container:e,customNavArrowsRenderer:i})=>{const{height:s}=e,a=m(t[o.A.layoutParams.navigationArrows.type]),{navArrowsContainerHeight:n}=l({customNavArrowsRenderer:i,arrowsSize:t[o.A.layoutParams.navigationArrows.size],svgData:a,containerStyleType:t[o.A.layoutParams.navigationArrows.container.type]}),h=t[o.A.layoutParams.info.height];return{[r.A[o.A.layoutParams.navigationArrows.verticalAlignment].INFO_CENTER]:h,[r.A[o.A.layoutParams.navigationArrows.verticalAlignment].IMAGE_CENTER]:s-h,[r.A[o.A.layoutParams.navigationArrows.verticalAlignment].ITEM_CENTER]:s}[t[o.A.layoutParams.navigationArrows.verticalAlignment]]>=n})(u)&&!d},c=t=>{const{isPrerenderMode:e,galleryStructure:i,customNavArrowsRenderer:s}=t;return{options:t.options,container:t.container,isPrerenderMode:e,galleryStructure:i,customNavArrowsRenderer:s}},m=(t=r.A[o.A.layoutParams.navigationArrows.type].DEFAULT_ARROW)=>{const{DEFAULT_ARROW:e,ARROW_2:i,ARROW_3:s,ARROW_4:a,ARROW_5:l,ARROW_6:h,ARROW_7:u}=r.A[o.A.layoutParams.navigationArrows.type];let c;switch(t){case i:c=n.A.ARROW_2;break;case s:c=n.A.ARROW_3;break;case a:c=n.A.ARROW_4;break;case l:c=n.A.ARROW_5;break;case h:c=n.A.ARROW_6;break;case u:c=n.A.ARROW_7;break;default:c=n.A.DEFAULT_ARROW}return c},d=({type:t,backgroundColor:e,borderRadius:i})=>t===r.A[o.A.layoutParams.navigationArrows.container.type].BOX?{backgroundColor:e,borderRadius:`${i}%`}:{}},48063:(t,e,i)=>{"use strict";function s(t){return new Proxy({},{get:(e,i)=>t(i)})}i.d(e,{B:()=>s})},70634:(t,e,i)=>{"use strict";i.d(e,{HC:()=>u,I2:()=>l,iC:()=>n});var s=i(6940),r=i(11854),o=i(59955),a=i(42483);function n(t){let e,i;const{scrollMarginCorrection:a=0,durationInMS:n,horizontalElement:l,scrollingElement:u,isRTL:c,scrollDirection:m,galleryWidth:d,galleryHeight:p,totalWidth:g,top:y,items:A,itemIdx:f,fixedScroll:v,slideTransition:b,isContinuousScrolling:I,autoSlideshowContinuousSpeed:P,itemSpacing:S}=t,w=c?-1:1;if(m===o.A[s.A.layoutParams.structure.scrollDirection].HORIZONTAL?(i=l.scrollLeft*w,e=i+f*d/2):(i=y,e=y+f*p/2),!0!==v){r.A.isVerbose()&&console.log("Scrolling to items #"+f);const t=A.find((t=>t.idx===f));if(e=m===o.A[s.A.layoutParams.structure.scrollDirection].HORIZONTAL?r.A.get(t,"offset.left"):r.A.get(t,"offset.top"),r.A.isVerbose()&&console.log("Scrolling to position "+e,t),!(e>=0))return r.A.isVerbose()&&console.warn("Position not found, not scrolling"),new Promise((t=>t()));if(m===o.A[s.A.layoutParams.structure.scrollDirection].HORIZONTAL){const s=(d-t.width-S)/2;e-=s,e=Math.max(0,e),e=Math.min(e,g-d+a),e*=w,i*=w,r.A.isVerbose()&&console.log("Scrolling to new position "+e,this)}}return m===o.A[s.A.layoutParams.structure.scrollDirection].HORIZONTAL?h({scroller:l,from:Math.round(i),to:Math.round(e),duration:n,isRTL:c,slideTransition:b,isContinuousScrolling:I,autoSlideshowContinuousSpeed:P}):new Promise((t=>{u.vertical().scrollTo(0,e),t(e)}))}function l(t){let e,i;const{scrollMarginCorrection:a=0,durationInMS:n,horizontalElement:l,scrollingElement:u,isRTL:c,scrollDirection:m,galleryWidth:d,galleryHeight:p,totalWidth:g,top:y,groups:A,groupIdx:f,fixedScroll:v,slideTransition:b,isContinuousScrolling:I,autoSlideshowContinuousSpeed:P,itemSpacing:S}=t,w=c?-1:1;if(m===o.A[s.A.layoutParams.structure.scrollDirection].HORIZONTAL?(i=l.scrollLeft,e=i+f*d/2):(i=y,e=y+f*p/2),!0!==v){r.A.isVerbose()&&console.log("Scrolling to groups #"+f);const t=A.find((t=>t.idx===f));if(e=m===o.A[s.A.layoutParams.structure.scrollDirection].HORIZONTAL?r.A.get(t,"left"):r.A.get(t,"top"),r.A.isVerbose()&&console.log("Scrolling to position "+e,t),
1!(e>=0))return r.A.isVerbose()&&console.warn("Position not found, not scrolling"),new Promise((t=>t()));if(m===o.A[s.A.layoutParams.structure.scrollDirection].HORIZONTAL){const i=(d-t.width-S)/2;e-=i,e=Math.max(0,e),e=Math.min(e,g-d+a),e*=w,r.A.isVerbose()&&console.log("Scrolling to new position "+e,this)}}return m===o.A[s.A.layoutParams.structure.scrollDirection].HORIZONTAL?h({scroller:l,from:Math.round(i),to:Math.round(e),duration:n,isRTL:c,slideTransition:b,isContinuousScrolling:I,autoSlideshowContinuousSpeed:P}):new Promise((t=>{u.vertical().scrollTo(0,e),t(e)}))}function h({scroller:t,from:e,to:i,duration:s,isRTL:r,slideTransition:o,isContinuousScrolling:n,autoSlideshowContinuousSpeed:l}){let h=i-e;if(0===h)return new Promise((t=>t(i)));n&&(s=Math.abs(h)/l*1e3);const u=t.firstChild;t.setAttribute("data-scrolling","true"),Object.assign(t.style,{"scroll-snap-type":"none"}),Object.assign(u.style,{transition:`transform ${s}ms ${o}`,"-webkit-transition":`transform ${s}ms ${o}`},{transform:`translateX(${-1*h}px)`});const c=new CustomEvent("scrollTransition",{detail:h/10}),m=setInterval((()=>{t.dispatchEvent(c)}),Math.round(s/10));let d=new a.c;const p=setTimeout((()=>{clearInterval(m),Object.assign(u.style,{transition:"none","-webkit-transition":"none"},{transform:"translateX(0px)"}),t.style.removeProperty("scroll-snap-type"),t.scrollLeft=i,t.setAttribute("data-scrolling",""),d.resolve(i)}),s);return{scrollDeffered:d,scroller:t,from:e,to:i,duration:s,isRTL:r,slideTransition:o,isContinuousScrolling:n,autoSlideshowContinuousSpeed:l,currentScrollEndTimeout:p}}function u({scroller:t,from:e,isRTL:i,currentScrollEndTimeout:s,scrollDeffered:r}){clearTimeout(s);const o=t.firstChild;let n=getComputedStyle(o).getPropertyValue("transform");var l=new DOMMatrix(n);(function({scroller:t,at:e,isRTL:i}){Object.assign(t.style,{"scroll-snap-type":"none"});let s=new a.c;Object.assign(t.firstChild.style,{transition:"none","-webkit-transition":"none"},{transform:"translateX(0px)"}),t.scrollLeft=e,s.resolve(e)})({scroller:t,at:e-=Math.round(parseInt(l.m41,10)),isRTL:i}),r.resolve(e)}},29746:(t,e,i)=>{"use strict";i.d(e,{J:()=>o,u:()=>a});var s=i(6940),r=i(59955);function o({groups:t,options:e,virtualizationSettings:i,galleryWidth:o,galleryHeight:a,activeIndex:n}){const{enabled:l=!1,forwardItemMargin:h=3,backwardItemMargin:u=3,forwardItemScrollMargin:c=10,backwardItemScrollMargin:m=10}=i||{},d=e[s.A.layoutParams.structure.scrollDirection]===r.A[s.A.layoutParams.structure.scrollDirection].HORIZONTAL,p=!d||e[s.A.behaviourParams.gallery.horizontal.slideAnimation]===r.A[s.A.behaviourParams.gallery.horizontal.slideAnimation].SCROLL;if(!l)return t.map((t=>({group:t,shouldRender:!0})));const g=d?o:a,y=d?"width":"height",A=p?c:h,f=p?m:u,v=t.findIndex((t=>{var e,i;const{items:s}=t,r=s[0],o=s[s.length-1],a=null!==(e=r.idx)&&void 0!==e?e:r.fullscreenIdx,l=null!==(i=o.idx)&&void 0!==i?i:o.fullscreenIdx;return a<=n&&l>=n})),b=t[v],I=b[y]/g;let P=I,S=I;const w=[b];for(let e=1;P<A||S<f;e++){const i=t[v+e],s=t[v-e];if(i&&P<A){P+=i[y]/g,w.push(i)}if(s&&S<f){S+=s[y]/g,w.push(s)}if(!s&&!i)break}return t.map((t=>({group:t,shouldRender:w.includes(t)})))}function a({items:t,options:e,virtualizationSettings:i,galleryWidth:o,galleryHeight:a,scrollPosition:n}){const{enabled:l=!1,forwardItemScrollMargin:h=10,backwardItemScrollMargin:u=10}=i||{};if(!l)return t.map((t=>({item:t,shouldRender:!0})));const c=e[s.A.layoutParams.structure.scrollDirection]===r.A[s.A.layoutParams.structure.scrollDirection].HORIZONTAL,m=c?o:a,d=c?"width":"height";function p(t){const e=t.group,i=e["height"===d?"top":"left"],s=i+e[d];return i>n-m*u&&s<n+m*h}return t.map((t=>({item:t,shouldRender:p(t)})))}},38222:(t,e,i)=>{"use strict";i.d(e,{A:()=>n});var s=i(60751),r=i(6940),o=i(59955),a=i(62343);const n=function(t){return class extends s.Component{constructor(t){super(t),this.onMouseMove=this.onMouseMove.bind(this),this.onMouseDown=this.onMouseDown.bind(this),this.onMouseUp=this.onMouseUp.bind(this),this.isMagnifiedBiggerThanContainer=this.isMagnifiedBiggerThanContainer.bind(this),this.toggleMagnify=this.toggleMagnify.bind(this),this.getMagnifyInitialPos=this.getMagnifyInitialPos.bind(this),this.getBoundrys=this.getBoundrys.bind(this),this.getMagnifiedDimensions=this.getMagnifiedDimensions.bind(this),this.containerRef
1=null,this.state={shouldMagnify:!1,x:0,y:0}}onDragStart(t){t.preventDefault()}onMouseMove(t){if(this.dragStarted){const{magnifiedWidth:e,magnifiedHeight:i}=this.getMagnifiedDimensions();this.isDragging=!0;const{cubedWidth:s,cubedHeight:r}=this.props.style,{clientY:o,clientX:a}=t,{boundryY:n,boundryX:l}=this.getBoundrys();this.setState({x:Math.max(-l,Math.min(this.dragStartX-a,e-s)),y:Math.max(-n,Math.min(this.dragStartY-o,i-r))})}}onMouseDown(t){const{clientX:e,clientY:i}=t,{x:s,y:r,shouldMagnify:o}=this.state;o?(this.dragStartX=s+e,this.dragStartY=r+i,this.dragStarted=!0):this.setState(this.getMagnifyInitialPos(t))}onMouseUp(){this.isDragging||this.toggleMagnify(),this.dragStarted=!1,this.isDragging=!1}toggleMagnify(t){const{shouldMagnify:e}=this.state;"boolean"==typeof t?this.setState({shouldMagnify:t}):this.setState({shouldMagnify:!e})}getMagnifiedDimensions(){const{style:{innerHeight:t,innerWidth:e}}=this.props,i=this.props.options[r.A.behaviourParams.item.content.magnificationValue];return{magnifiedHeight:t*i,magnifiedWidth:e*i}}getPreloadImage(){var t;const{createUrl:e,id:i,style:n,imageDimensions:l,options:h}=this.props,{innerWidth:u,innerHeight:c}=n,{marginTop:m,marginLeft:d}=l,{shouldMagnify:p,x:g,y}=this.state,A=h[r.A.behaviourParams.item.content.magnificationValue],f=e(o.A.urlSizes.RESIZED,o.A.urlTypes.HIGH_RES),v=p?A:1;return s.createElement(a.A,{alt:"",key:"magnified-item-preload-"+i,className:"magnified-item-preload",src:f,style:{width:u,height:c,position:"relative",zIndex:1,opacity:p?1:0,transform:`scale(${v})`,transformOrigin:`${(g+d)/(A-1)}px ${(y+m)/(A-1)}px`,transition:"transform 0.3s ease"+(p?"":", opacity 0.1s ease 0.3s")},customImageRenderer:null===(t=this.props.customComponents)||void 0===t?void 0:t.customImageRenderer})}getHighResImage(){var t;const{createMagnifiedUrl:e,id:i,alt:o,options:n,isPrerenderMode:l}=this.props,{magnifiedWidth:h,magnifiedHeight:u}=this.getMagnifiedDimensions(),c=e(n[r.A.behaviourParams.item.content.magnificationValue]);return s.createElement(a.A,{key:`magnified-item-${i}`,className:"magnified-item","data-hook":"magnified-item",src:c,alt:"string"==typeof o?o:"untitled image",id:i,isPrerenderMode:l,style:{width:h,height:u,position:"absolute",top:0,left:0},customImageRenderer:null===(t=this.props.customComponents)||void 0===t?void 0:t.customImageRenderer})}isMagnifiedBiggerThanContainer(t){const{magnifiedWidth:e,magnifiedHeight:i}=this.getMagnifiedDimensions(),{cubedWidth:s,cubedHeight:r}=t;return s<e||r<i}getMagnifyInitialPos(t){const{clientX:e,clientY:i}=t,{style:s}=this.props,{magnifiedWidth:r,magnifiedHeight:o}=this.getMagnifiedDimensions(),{cubedWidth:a,cubedHeight:n}=s,{top:l,left:h}=this.containerRef.getBoundingClientRect(),u=(e-h)/a*r-(e-h),c=(i-l)/n*o-(i-l),{boundryY:m,boundryX:d}=this.getBoundrys();return{x:Math.max(-d,Math.min(u,r-a)),y:Math.max(-m,Math.min(c,o-n))}}getBoundrys(){const{style:t}=this.props,{magnifiedWidth:e,magnifiedHeight:i}=this.getMagnifiedDimensions(),{cubedWidth:s,cubedHeight:r}=t;return{boundryY:i<r?r/2-i/2:0,boundryX:e<s?s/2-e/2:0}}getContainerStyle(){const{shouldMagnify:t}=this.state,{style:e}=this.props,{cubedWidth:i,cubedHeight:s}=e;return{width:i,height:s,position:"relative",display:"flex",justifyContent:"center",alignItems:"center",cursor:t?"zoom-out":"zoom-in"}}getMagnifiedImageStyle(){const{shouldMagnify:t,x:e,y:i}=this.state;return{zIndex:2,position:"absolute",top:0,left:0,transform:`translate(${-e}px, ${-i}px)`,opacity:t?1:0,transition:"opacity 0.1s ease",transitionDelay:t?"0.3s":"none"}}render(){const{shouldMagnify:e}=this.state;return this.props.options[r.A.behaviourParams.item.clickAction]!==o.A[r.A.behaviourParams.item.clickAction].MAGNIFY?s.createElement(t,Object.assign({},this.props)):s.createElement("div",{ref:t=>this.containerRef=t,className:"magnified-item-container",style:this.getContainerStyle(),onDragStart:this.onDragStart,onMouseMove:this.onMouseMove,onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp},s.createElement(t,Object.assign({},this.props)),this.getPreloadImage(),s.createElement("div",{className:"magnified-images",style:this.getMagnifiedImageStyle()},e&&this.getHighResImage()))}}}},65636:(t,e,i)=>{"use strict";i.d(e,{A:()=>a});var s=i(60751),r=i(6940),o=i(59955);const a=t=>e=>{const{itemWasHovered:i,isCurrentHover:a,hasSecondaryMedia:n,secondaryMediaItem:l}=e;if(e.options[r.A.behaviourParams.item.secondaryMedia.trigger]===o.A[r.A.behaviourParams.item.secondaryMedia.trigger].OFF||!n)return s.createElement(t,Object.assign({},e));return s.createElement("div",{className:"item-with-secondary-media-container"},s.createElement(t,Object.assign({},e)),s.createElement("div",{className:["secondary-media-item",a?"show":"hide"].join(" ")},i&&s.createElement(t,Object.assign({},(()=>{const{createUrl:t,createMagnifiedUrl:i,style:s,html:r}=l;return Object.assign(Object.assign({},e),{style:s,html:r,createUrl:t,createMagnifiedUrl:i})})()))))}},81326:(t,e,i)=>{"use strict";i.d(e,{A:()=>n});var s=i(60751),r=i(86357),o=i(6940);const a=s.lazy((()=>Promise.all([i.e(8741),i.e(9955),i.e(2114)]).then(i.bind(i,16981))));function n(t){const{options:e}=t,i=e[o.A.behaviourParams.item.threeDimensionalScene.playTrigger],n=e[o.A.behaviourParams.item.threeDimensionalScene.enablePlayButton];return s.createElement(r.A,Object.assign({}
1,t,{MediaImplementation:a,playTrigger:i,placeholderExtraClasses:["gallery-item-3d-placeholder"],enableImagePlaceholder:!0,showPlayButton:n}))}},8927:(t,e,i)=>{"use strict";i.d(e,{A:()=>u});var s=i(55823),r=i(60751),o=i(6940),a=i(59955),n=i(11854),l=i(62343);class h extends r.Component{constructor(t){super(t),this.getImageContainer=this.getImageContainer.bind(this),this.getImageContainerClassNames=this.getImageContainerClassNames.bind(this),this.state={isHighResImageLoaded:!1},this.handleHighResImageLoad=this.handleHighResImageLoad.bind(this)}componentDidMount(){try{"function"==typeof this.props.actions.setItemLoaded&&this.props.actions.setItemLoaded()}catch(t){console.error(t)}}handleHighResImageLoad(){this.setState({isHighResImageLoaded:!0});try{this.props.actions.setItemLoaded()}catch(t){console.error("Failed to load high res image",t)}}getImageContainerClassNames(){const{isCurrentHover:t,options:e}=this.props,{isHighResImageLoaded:i}=this.state;return["gallery-item-content",t?"item-content-hover":"item-content-regular","image-item","gallery-item-visible","gallery-item","gallery-item-preloaded",e[o.A.layoutParams.crop.enable]&&e[o.A.layoutParams.crop.method]===a.A[o.A.layoutParams.crop.method].FIT?"grid-fit":"",e[o.A.behaviourParams.item.content.loader]===a.A[o.A.behaviourParams.item.content.loader].COLOR?"load-with-color "+(i?"image-loaded":""):""].join(" ")}getImageContainer(t,e,i){const{imageDimensions:s,id:o,actions:a}=this.props;return r.createElement("div",{className:e,onTouchStart:a.handleItemMouseDown,onTouchEnd:a.handleItemMouseUp,key:"image_container-"+o,"data-hook":"image-item",style:s},t(),i)}getImageAnimationOverlay(){const{imageDimensions:t,options:e,createUrl:i,id:s}=this.props;let n=null;switch(e[o.A.behaviourParams.gallery.scrollAnimation]){case a.A[o.A.behaviourParams.gallery.scrollAnimation].BLUR:n=i(a.A.urlSizes.RESIZED,a.A.urlTypes.LOW_RES);break;case a.A[o.A.behaviourParams.gallery.scrollAnimation].MAIN_COLOR:n=i(a.A.urlSizes.PIXEL,a.A.urlTypes.HIGH_RES)}return n&&r.createElement("div",{key:"image_container-overlay-"+s,"data-hook":"image-item-overlay",style:Object.assign(Object.assign({},t),{backgroundImage:`url(${n})`,backgroundSize:"cover",pointerEvents:"none",position:"absolute",top:0,left:0})})}getImageElement(){const{alt:t,imageDimensions:e,createUrl:i,id:h,idx:u,settings:c={},options:m}=this.props,{isHighResImageLoaded:d}=this.state,p=c&&c.imageProps&&"function"==typeof c.imageProps?c.imageProps(h):{},{marginLeft:g,marginTop:y}=e,A=(0,s.__rest)(e,["marginLeft","marginTop"]);return()=>{var e,s,c;const g=[],y="string"==typeof t?t:"untitled image",f=n.A.isMobile()&&this.props.options[o.A.behaviourParams.gallery.blockContextMenu]?{WebkitUserSelect:"none",WebkitTouchCallout:"none"}:{},v=this.props.isPrerenderMode?{width:"100%",height:"100%"}:{};if(!d){let t=null;const n=Object.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"},p);switch(m[o.A.behaviourParams.item.content.loader]){case a.A[o.A.behaviourParams.item.content.loader].BLUR:t=r.createElement(l.A,Object.assign({alt:y,key:"image_preload_blur-"+h,src:i(a.A.urlSizes.RESIZED,a.A.urlTypes.LOW_RES),style:Object.assign(Object.assign(Object.assign({},A),v),f)},n,{customImageRenderer:null===(e=this.props.customComponents)||void 0===e?void 0:e.customImageRenderer}));break;case a.A[o.A.behaviourParams.item.content.loader].MAIN_COLOR:t=r.createElement(l.A,Object.assign({alt:y,key:"image_preload_main_color-"+h,src:i(a.A.urlSizes.PIXEL,a.A.urlTypes.HIGH_RES),style:Object.assign(Object.assign(Object.assign({},A),v),f)},n,{customImageRenderer:null===(s=this.props.customComponents)||void 0===s?void 0:s.customImageRenderer}))}g.push(t)}const b=!this.props.isPrerenderMode,I=m[o.A.stylingParams.itemResolutionMode]===a.A[o.A.stylingParams.itemResolutionMode].FULL?a.A.urlSizes.FULL:a.A.urlSizes.MULTI,P=i(I,a.A.urlTypes.HIGH_RES),S=r.createElement(l.A,Object.assign({key:"image_highres-"+h,className:"gallery-item-visible gallery-item gallery-item-preloaded","data-hook":"gallery-item-image-img","data-id
1x":u,src:P,alt:y,onLoad:this.handleHighResImageLoad,loading:this.props.isPrerenderMode?"lazy":"eager",style:Object.assign(Object.assign(Object.assign({},A),f),!b&&v)},p,{customImageRenderer:null===(c=this.props.customComponents)||void 0===c?void 0:c.customImageRenderer}));return g.push(S),g}}render(){const t=this.getImageElement(),e=`${this.getImageContainerClassNames()} ${this.props.extraClasses||""}`,i=this.props.overlay||this.getImageAnimationOverlay();return this.getImageContainer(t,e,i)}}const u=h},62343:(t,e,i)=>{"use strict";i.d(e,{A:()=>n});var s=i(55823),r=i(60751),o=i(34965);class a extends r.Component{constructor(t){super(t),this.imageRef=null}componentDidMount(){var t;(null===(t=this.imageRef)||void 0===t?void 0:t.complete)&&"function"==typeof this.props.onLoad&&this.props.onLoad()}render(){const t=this.props,{customImageRenderer:e}=t,i=(0,s.__rest)(t,["customImageRenderer"]);return"function"==typeof e?e(this.props):"string"==typeof this.props.src?r.createElement("img",Object.assign({ref:t=>{this.imageRef=t},alt:this.props.alt},i)):"object"==typeof this.props.src?r.createElement("picture",{id:`multi_picture_${this.props.id}`,key:`multi_picture_${this.props.id}`},this.props.src.map(((t,e)=>t.forPrinting?r.createElement(o.U,{key:`print-only-image-${e}`,srcSet:t.dpr,type:`image/${t.type}`}):r.createElement("source",{key:`image-source-${e}`,srcSet:t.dpr||t.url,type:`image/${t.type}`}))),r.createElement("img",Object.assign({ref:t=>{this.imageRef=t},alt:this.props.alt},i,{src:this.props.src[this.props.src.length-1].url}))):null}}const n=a},98872:(t,e,i)=>{"use strict";i.d(e,{A:()=>r});var s=i(8927);const r=(0,i(38222).A)(s.A)},2746:(t,e,i)=>{"use strict";i.d(e,{Xe:()=>c,g4:()=>m,tF:()=>h});var s=i(98902),r=i(84094),o=i(6940),a=i(11854),n=i(59955);function l(){return((0,s.PP)()||(0,s.Xf)())&&r.A.document}function h({itemContainer:t,enableExperimentalFeatures:e,itemAnchor:i}){if(l()&&e){r.A.document.activeElement===i&&t.focus()}}function u(t,e){const i=r.A.document.activeElement;return String(i.className).includes(t)&&!!r.A.document.querySelector(`#pro-gallery-${e} #${String(i.id)}`)}function c({prevProps:t,currentProps:e,itemActionRef:i}){try{if(l()&&r.A.document.activeElement.className){const s=u("item-action",e.galleryId),r=u("show-more",e.galleryId);(s||r)&&(e.thumbnailHighlightId!==t.thumbnailHighlightId&&e.thumbnailHighlightId===e.id||e.activeIndex!==t.activeIndex&&e.activeIndex===e.idx)&&i.focus()}}catch(t){console.error("Could not set focus to active element",t)}}function m(t){return t[o.A.behaviourParams.item.video.enablePlaceholder]&&(!a.A.isSingleItemHorizontalDisplay(t)||t[o.A.behaviourParams.item.video.playTrigger]!==n.A[o.A.behaviourParams.item.video.playTrigger].AUTO)}},95194:(t,e,i)=>{"use strict";i.d(e,{A:()=>l});var s=i(60751),r=i(11854),o=i(59955),a=i(6940),n=i(98902);class l extends s.Component{getHoverClass(){const{options:t,forceShowHover:e}=this.props,i=["gallery-item-hover"];return i.push("fullscreen-"+(t.fullscreen?"enabled":"disabled")),r.A.isUndefined(t.itemOpacity)&&i.push("default"),e?i.push("force-hover"):r.A.isMobile()&&i.push("hide-hover"),this.props.isCurrentHover?i.push("item-overlay-hover"):i.push("item-overlay-regular"),i.join(" ")}shouldRenderHoverInnerIfExist(){const{itemWasHovered:t,options:e}=this.props,{alwaysShowHover:i,previewHover:s}=e,{APPEARS:r}=o.A[a.A.behaviourParams.item.overlay.hoveringBehaviour],{NO_EFFECT:l}=o.A[a.A.behaviourParams.item.overlay.hoverAnimation];return!!i||(!(!(0,n.Q)()||!s)||(e[a.A.behaviourParams.item.overlay.hoveringBehaviour]!==r||e[a.A.behaviourParams.item.overlay.hoverAnimation]===l||t))}getOverlayStyle(){const{options:t,imageDimensions:e}=this.props,i={},s=t[a.A.behaviourParams.item.overlay.padding],r=t[a.A.behaviourParams.item.overlay.sizeUnits],n=t[a.A.behaviourParams.item.overlay.size],l=t[a.A.behaviourParams.item.overlay.position],{LEFT:h,RIGHT:u,CENTERED_HORIZONTALLY:c}=o.A[a.A.behaviourParams.item.overlay.position],m=l===h||l===u||l===c,{width:d,height:p}=this.calcHeightAndWidth({isHorizontal:m,overlayPadding:s,requiredOverlaySize:n,imageDimensions:e,overlaySizeUnits:r}),g=s;return Object.assign(i,{width:d,height:p,margin:g,position:"relative"}),i}calcHeightAndWidth({isHorizontal:t,overlayPadding:e,requiredOverlaySize:i,imageDimensions:s,overlaySizeUnits:r}){const o=t?"width":"height",a=t?"height":"width",n=this.calcOverlaySize(s[o],i,r,e);return{[o]:n,[a]:s[a]-2*e}}calcOverlaySize(t,e,i,s){const r=t+-2*s,n=Math.min(r,i===o.A[a.A.behaviourParams.item.overlay.sizeUnits].PERCENT?r*(e/100):e);return Math.max(0,n)}getOverlayPositionByFlex(){const{options:t,imageDimensions:e}=this.props,i=t[a.A.behaviourParams.item.overlay.position],{width:s,height:r,marginTop:n,marginLeft:l}=e,h={width:s,height:r,marginTop:n,marginLeft:l,display:"flex",position:"absolute",top:0,left:0},{RIGHT:u,BOTTOM:c,CENTERED_HORIZONTALLY:m,CENTERED_VERTICALLY:d}=o.A[a.A.behaviourParams.item.overlay.position];switch(i){case u:Object.assign(h,{justifyContent:"flex-end"});break;case c:Object.assign(h,{alignItems:"flex-end"});break;case m:Object.assign(h,{justifyContent:"center"});break;case d:Object.assign(h,{alignItems:"center"})}return h}render(){const{actions:t,idx:e,renderCustomInfo:i}=this.props,r=this.getHoverClass(),o=this.getOverlayStyle(),a=this.getOverlayPositionByFlex();return s.createElement("div",{className:"item-hover-flex-container",style:a},s.createElement("div",{key:"item-hover-"+e,"data-hook":"item-hover-"+e,className:r,onTouchStart:t.handleItemMouseDown,onTouchEnd:t.handleItemMouseUp,style:o},this.shouldRenderHoverInnerIfExist()&&i?s.createElement("div",{className:"gallery-item-hover-inner"},i()):null))}}}
1,9331:(t,e,i)=>{"use strict";i.d(e,{A:()=>w});var s=i(55823),r=i(60751),o=i(6940),a=i(59955),n=i(11854),l=i(98902),h=i(84094),u=i(98872),c=i(81326),m=i(65636),d=i(16781),p=i(95194),g=i(2746),y=i(34653),A=i(23255),f=i(41251),v=i(61947),b=i(17224);const I=(0,m.A)(u.A),P=(0,m.A)(d.A);class S extends r.Component{constructor(t){super(t),this.itemContainer=r.createRef(),this.shouldUseDirectLink=()=>{const{directLink:t}=this.props,{url:e,target:i}=t||{},s=!(!e||!i||this.props.options[o.A.behaviourParams.item.clickAction]!==a.A[o.A.behaviourParams.item.clickAction].LINK);return this.shouldShowHoverOnMobile()&&this.isClickOnCurrentHoveredItem()&&s?(this.props.actions.eventsListener(a.A.events.HOVER_SET,-1),!0):!(!s||this.shouldShowHoverOnMobile())},this.isClickOnCurrentHoveredItem=()=>this.state.isCurrentHover||this.props.options[o.A.behaviourParams.item.overlay.hoveringBehaviour]===a.A[o.A.behaviourParams.item.overlay.hoveringBehaviour].ALWAYS_SHOW,this.props.actions.eventsListener(a.A.events.ITEM_CREATED,this.props),this.init(),this.state={isCurrentHover:!1,itemWasHovered:!1},this.activeElement=""}init(){this.onItemClick=this.onItemClick.bind(this),this.onItemWrapperClick=this.onItemWrapperClick.bind(this),this.onItemInfoClick=this.onItemInfoClick.bind(this),this.onAnchorKeyDown=this.onAnchorKeyDown.bind(this),this.onContainerKeyUp=this.onContainerKeyUp.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)}setItemLoaded(){this.props.actions.eventsListener(a.A.events.ITEM_LOADED,this.props),this.setState({loaded:!0})}isIconTag(t){return["button","i","a","svg","path"].indexOf(t.toLowerCase())>=0}onMouseEnter(){n.A.isMobile()||this.props.actions.eventsListener(a.A.events.HOVER_SET,this.props.idx)}onMouseLeave(){n.A.isMobile()||this.props.actions.eventsListener(a.A.events.HOVER_SET,-1)}onFocus(){var t;(null===(t=this.props.settings)||void 0===t?void 0:t.isAccessible)&&this.props.actions.eventsListener(a.A.events.HOVER_SET,this.props.idx),this.props.actions.eventsListener(a.A.events.ITEM_FOCUSED,this.props)}onBlur(){var t;(null===(t=this.props.settings)||void 0===t?void 0:t.isAccessible)&&this.props.actions.eventsListener(a.A.events.HOVER_SET,-1),this.props.actions.eventsListener(a.A.events.ITEM_LOST_FOCUS,this.props)}onAnchorKeyDown(t){switch(t.keyCode||t.charCode){case 32:case 13:return t.stopPropagation(),this.onItemClick(t,"item-container",!1),!1;default:return!0}}handleGalleryItemAction(t){this.props.actions.eventsListener(a.A.events.ITEM_ACTION_TRIGGERED,this.props,t)}onItemWrapperClick(t){this.onItemClick(t,"item-media")}onItemInfoClick(t){this.onItemClick(t,"item-info",!1),this.shouldUseDirectLink()||t.stopPropagation()}
1onItemClick(t,e,i=!0){this.props.actions.eventsListener(a.A.events.ITEM_CLICKED,Object.assign(Object.assign({},this.props),{clickTarget:e}),t),this.shouldUseDirectLink()||(i&&t.preventDefault(),this.shouldShowHoverOnMobile()||this.shouldShowSecondMediaOnMobile()?this.handleHoverClickOnMobile(t):this.shouldHoverWithoutOverlayAndClickOnMobile()?this.props.actions.eventsListener(a.A.events.HOVER_SET,this.props.idx):this.handleGalleryItemAction(t))}handleHoverClickOnMobile(t){this.isClickOnCurrentHoveredItem()?(this.handleGalleryItemAction(t),this.props.actions.eventsListener(a.A.events.HOVER_SET,-1)):this.props.actions.eventsListener(a.A.events.HOVER_SET,this.props.idx)}handleItemMouseDown(){return!0}handleItemMouseUp(){return n.A.isMobile()&&this.longPressTimer&&clearTimeout(this.longPressTimer),!0}shouldShowHoverOnMobile(){if(n.A.isMobile()){const{[o.A.behaviourParams.item.overlay.hoveringBehaviour]:t,alwaysShowHover:e,previewHover:i}=this.props.options;if(t===a.A[o.A.behaviourParams.item.overlay.hoveringBehaviour].NEVER_SHOW)return!1;if(this.props.options[o.A.behaviourParams.item.clickAction]===a.A[o.A.behaviourParams.item.clickAction].NOTHING&&"video"!==this.props.type&&"3d"!==this.props.type)return!0;if(this.props.customComponents.customHoverRenderer&&a.A.hasHoverPlacement(this.props.options[o.A.layoutParams.info.placement])&&t!==a.A[o.A.behaviourParams.item.overlay.hoveringBehaviour].NEVER_SHOW)return!0;if(e)return!0;if((0,l.Q)()&&i)return!0}return!1}shouldShowSecondMediaOnMobile(){return!!n.A.isMobile()&&(this.props.options[o.A.behaviourParams.item.clickAction]===a.A[o.A.behaviourParams.item.clickAction].NOTHING&&"video"!==this.props.type&&"3d"!==this.props.type&&this.props.options[o.A.behaviourParams.item.secondaryMedia.trigger]===a.A[o.A.behaviourParams.item.secondaryMedia.trigger].HOVER)}shouldHoverWithoutOverlayAndClickOnMobile(){return n.A.isMobile()&&this.props.options[o.A.behaviourParams.item.video.playTrigger]===a.A[o.A.behaviourParams.item.video.playTrigger].HOVER&&this.props.options[o.A.behaviourParams.item.clickAction]===a.A[o.A.behaviourParams.item.clickAction].NOTHING}isHighlight(){return this.props.thumbnailHighlightId&&this.props.thumbnailHighlightId===this.props.id}shouldHover(){const{options:t}=this.props,{alwaysShowHover:e,previewHover:i}=t,s=t[o.A.behaviourParams.item.overlay.hoveringBehaviour],{NEVER_SHOW:r,APPEARS:h}=a.A[o.A.behaviourParams.item.overlay.hoveringBehaviour],{NO_EFFECT:u}=a.A[o.A.behaviourParams.item.overlay.hoverAnimation];return s!==r&&(!0===e||(!(!(0,l.Q)()||!i)||!(s===h&&t[o.A.behaviourParams.item.overlay.hoverAnimation]===u&&!this.state.itemWasHovered)&&(!n.A.isMobile()||this.shouldShowHoverOnMobile())))}getItemHover(t){const e=this.props,{customComponents:i}=e,o=(0,s.__rest)(e,["customComponents"]);return this.shouldHover()&&r.createElement(p.A,Object.assign({},o,{forceShowHover:this.simulateOverlayHover(),isCurrentHover:this.simulateHover(),imageDimensions:t,itemWasHovered:this.state.itemWasHovered,key:"hover",actions:{handleItemMouseDown:this.handleItemMouseDown,handleItemMouseUp:this.handleItemMouseUp},renderCustomInfo:i.customHoverRenderer?()=>i.customHoverRenderer((0,v.t)(this.props)):null}))}getImageItem(t){const e=n.A.pick(this.props,["gotFirstScrollEvent","alt","title","description","id","idx","options","createUrl","createMagnifiedUrl","settings","isPrerenderMode","isTransparent","style","hasSecondaryMedia","secondaryMediaItem","customComponents"]);return r.createElement(I,Object.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}}))}get3dItem(t,e){const{calculatedAlt:i,title:s,description:o,id:a,idx:n,options:l,createUrl:h,createMagnifiedUrl:u,settings:m,isPrerenderMode:d,isTransparent:p,style:g,customComponents:y,scene:A,activeIndex:f,isCurrentHover:v}=this.props;return r.createElement(c.A,{key:"3dItem",imageDimensions:t,itemContainer:this.itemContainer,shouldPlay:this.props.idx===this.props.playing3DIdx,actions:Object.assign(Object.assign({},this.props.actions),{setItemLoaded:this.setItemLoaded,handleItemMouseDown:this.handleItemMouseDown,handleItemMouseUp:this.handleItemMouseUp}),hasLink:this.itemHasLink(),hover:e,activeIndex:f,calculatedAlt:i,createMagnifiedUrl:u,createUrl:h,customComponents:y,title:s,description:o,id:a,idx:n,isPrerenderMode:d,isTransparent:p,options:l,scene:A,style:g,settings:m,isCurrentHover:v})}getVideoItem(t,e){return r.createElement(f.A,Object.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:Object.assign(Object.assign({},this.props.actions),{setItemLoaded:this.setItemLoaded,handleItemMouseDown:this.handleItemMouseDown,handleItemMouseUp:this.handleItemMouseUp})}))}getTextItem(t){const e=n.A.pick(this.props,["id","options","style","html","cropRatio","isPrerenderMode","hasSecondaryMedia","secondaryMediaItem"]);return r.createElement(P,Object.assign({},e,{key:"textItem",imageDimensions:t,isCurrentHover:this.simulateHover(),itemWasHovered:this.state.itemWasHovered,actions:{handleItemMouseDown:this.handleItemMouseDown,handleItemMouseUp:this.handleItemMouseUp,setItemLoaded:this.setItemLoaded}}))}getItemInner(){const{type:t,style:e,offset:i}=this.props;let s;const{innerWidth:o,innerHeight:a}=e,{innerTop:n,innerLeft:l}=i,h={width:o,height:a,marginTop:n,marginLeft:l};let u=null;
1switch(this.shouldHover()&&(u=this.getItemHover(h)),t){case"dummy":s=r.createElement("div",null);break;case"video":s=this.getVideoItem(h,u);break;case"text":s=[this.getTextItem(h),u];break;case"3d":s=this.get3dItem(h,u);break;default:s=this.props.isVideoPlaceholder?this.getVideoItem(h,u):[this.getImageItem(h),u]}return s}getRightInfoElementIfNeeded(){return a.A.hasExternalRightPlacement(this.props.options[o.A.layoutParams.info.placement],this.props.idx)?this.getExternalInfoElement(a.A[o.A.layoutParams.info.placement].RIGHT,"gallery-item-right-info"):null}getLeftInfoElementIfNeeded(){return a.A.hasExternalLeftPlacement(this.props.options[o.A.layoutParams.info.placement],this.props.idx)?this.getExternalInfoElement(a.A[o.A.layoutParams.info.placement].LEFT,"gallery-item-left-info"):null}getBottomInfoElementIfNeeded(){return a.A.hasExternalBelowPlacement(this.props.options[o.A.layoutParams.info.placement],this.props.idx)?this.getExternalInfoElement(a.A[o.A.layoutParams.info.placement].BELOW,"gallery-item-bottom-info"):null}getTopInfoElementIfNeeded(){return a.A.hasExternalAbovePlacement(this.props.options[o.A.layoutParams.info.placement],this.props.idx)?this.getExternalInfoElement(a.A[o.A.layoutParams.info.placement].ABOVE,"gallery-item-top-info"):null}getExternalInfoElement(t,e){const{options:i,customComponents:s,style:n}=this.props;if(!s.customInfoRenderer)return null;let l=null;const h=i[o.A.layoutParams.info.height]+(this.hasRequiredMediaUrl?0:n.height),u=n.infoWidth+(this.hasRequiredMediaUrl?0:n.width),c=s.customInfoRenderer((0,v.t)(this.props),t),m=a.A.isLayout("SLIDESHOW")(this.props.options);return l=r.createElement("div",{className:"gallery-item-common-info-outer "+(0,b.c)(this.props,m),style:Object.assign({},(0,A.fm)(t,i,n.height,i[o.A.layoutParams.info.height]))},r.createElement("div",{style:(0,A.GL)(t,i,h,u),className:"gallery-item-common-info "+e,onClick:this.onItemInfoClick},c)),l}simulateHover(){return this.state.isCurrentHover||!0===this.props.options.alwaysShowHover||(0,l.Q)()&&this.props.options.previewHover}simulateOverlayHover(){return this.simulateHover()||this.props.options[o.A.behaviourParams.item.overlay.hoveringBehaviour]===a.A[o.A.behaviourParams.item.overlay.hoveringBehaviour].ALWAYS_SHOW}itemHasLink(){const{linkData:t,linkUrl:e}=this.props;return!(void 0===t.type&&(void 0===e||""===e))}getItemContainerStyles(){const{idx:t,activeIndex:e,offset:i,style:s,options:r,settings:n={}}=this.props,h=r[o.A.layoutParams.structure.itemSpacing],u=r[o.A.behaviourParams.gallery.horizontal.slideAnimation],c=r[o.A.behaviourParams.gallery.layoutDirection]===a.A[o.A.behaviourParams.gallery.layoutDirection].RIGHT_TO_LEFT,m=r[o.A.layoutParams.structure.scrollDirection],d=(0,A.dB)(r),p={overflowY:"hidden",position:"absolute",bottom:"auto",margin:m===a.A[o.A.layoutParams.structure.scrollDirection].HORIZONTAL?h/2+"px":0},{avoidInlineStyles:g}=n,y=this.props.isPrerenderMode&&!this.props.settings.disableSSROpacity,f=g?{}:{opacity:y?0:1,display:y?"none":"block",transition:"opacity .2s ease"},v=g?{}:{top:i.top,left:c?"auto":i.left,right:c?i.left:"auto",width:s.width+s.infoWidth,height:s.height+s.infoHeight};let b;switch(u){case a.A[o.A.behaviourParams.gallery.horizontal.slideAnimation].FADE:b={left:c?"auto":0,right:c?0:"auto",pointerEvents:e===t?"auto":"none",zIndex:e===t?0:1};break;case a.A[o.A.behaviourParams.gallery.horizontal.slideAnimation].DECK:b={left:c?"auto":0,right:c?0:"auto",pointerEvents:e===t?"auto":"none",zIndex:Math.sign(e-t)};break;default:b={}}const I=this.state.loaded&&((0,l.Q)()||(0,l.IL)())?{transition:"all .4s ease",transitionProperty:"top, left, width, height, opacity"}:{transition:"none"};return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},p),v),d),I),f),b)}getItemWrapperStyles(){const{createUrl:t,options:e,style:i,type:s,offset:r}=this.props,{height:n,width:l,innerWidth:h,innerHeight:u}=i,{innerTop:c,innerLeft:m}=r;let d={};d.backgroundColor="text"===s?e[o.A.layoutParams.crop.method]!==a.A[o.A.layoutParams.crop.method].FIT?"transparent":"inherit":(e[o.A.layoutParams.crop.method]!==a.A[o.A.layoutParams.crop.method].FIT?i.bgColor:"inherit")||"transparent",e[o.A.behaviourParams.item.content.hoverAnimation]===a.A[o.A.behaviourParams.item.content.hoverAnimation].MAIN_COLOR&&(d=Object.assign(Object.assign({},d),{background:`url(${t(a.A.urlSizes.PIXEL,a.A.urlTypes.HIGH_RES)})`,backgroundSize:`${h}px ${u}px`,backgroundRepeat:"no-repeat",backgroundPosition:`top ${c}px left ${m}px`}));const{TILT:p}=a.A[o.A.behaviourParams.item.content.hoverAnimation];return e[o.A.behaviourParams.item.content.hoverAnimation]===p&&(d["--tiltAngleValue"]=e[o.A.behaviourParams.item.content.tiltAngleValue]),d.height=n+"px",d.width=l+"px",d.margin=-e[o.A.stylingParams.itemBorderWidth]+"px",d}getItemAriaLabel(){const{type:t,alt:e,htmlContent:i,options:s}=this.props;return{dummy:"",text:i,video:e||t||"",image:e||t||""}[t]+(s.isStoreGallery?", Buy Now":"")}isItemClickable(t){const e=!this.itemHasLink();return!(t[o.A.behaviourParams.item.clickAction]===a.A[o.A.behaviourParams.item.clickAction].NOTHING||t[o.A.behaviourParams.item.clickAction]===a.A[o.A.behaviourParams.item.clickAction].LINK&&e)}getItemContainerClass(){const{options:t}=this.props,e=t[o.A.behaviourParams.item.content.placementAnimation],i=t[o.A.behaviourParams.item.overlay.hoverAnimation],s=t[o.A.behaviourParams.item.content.hoverAnimation],{FADE_IN:r,EXPAND:l,SLIDE_UP:h,SLIDE_RIGHT:u,SLIDE_DOWN:c,SLIDE_LEFT:m}=a.A[o.A.behaviourParams.item.overlay.hoverAnimation],{MAIN_COLOR:d,ZOOM_IN:p,TILT:g,BLUR:y,GRAYSCALE:A,SHRINK:f,INVERT:v,COLOR_IN:b,DARKENED:I}=a.A[o.A.behaviourParams.item.content.hoverAnimation],P=this.simulateHover(),S={"gallery-item-container":!0,"item-container-regular":!P,"item-container-hover":P,"has-custom-focus":!0,visible:!0,"pro-gallery-highlight":this.isHighlight(),clickable:this.isItemClickable(t),"simulate-hover":this.simulateHover(),"hide-hover":!this.simulateHover()&&n.A.isMobile(),"invert-hover":t[o.A.behaviourParams.item.overlay.hoveringBehaviour]===a.A[o.A.behaviourParams.item.overlay.hoveringBehaviour].DISAPPEARS,"animation-sli
1de":e===a.A[o.A.behaviourParams.item.content.placementAnimation].SLIDE,"hover-animation-fade-in":i===r,"hover-animation-expand":i===l,"hover-animation-slide-up":i===h,"hover-animation-slide-right":i===u,"hover-animation-slide-down":i===c,"hover-animation-slide-left":i===m,"main-color-on-hover":s===d,"zoom-in-on-hover":s===p,"tilt-on-hover":s===g,"blur-on-hover":s===y,"grayscale-on-hover":s===A,"shrink-on-hover":s===f,"invert-on-hover":s===v,"color-in-on-hover":s===b,"darkened-on-hover":s===I,"pro-gallery-mobile-indicator":n.A.isMobile()};return Object.entries(S).map((([t,e])=>!!e&&t)).filter(Boolean).join(" ")}getItemWrapperClass(){const{options:t,type:e}=this.props,i=["gallery-item-wrapper","visible"];return t[o.A.layoutParams.crop.enable]&&i.push("cube-type-"+t[o.A.layoutParams.crop.method].toLowerCase()),"text"===e&&i.push("gallery-item-wrapper-text"),i.push((0,b.c)(this.props)),i.join(" ")}getItemContainerTabIndex(){return this.isHighlight()?n.A.getTabIndex("currentThumbnail"):this.props.activeIndex===this.props.idx?n.A.getTabIndex("currentGalleryItem"):-1}componentDidMount(){if(n.A.isMobile()&&"function"==typeof r.initializeTouchEvents)try{r.initializeTouchEvents(!0)}catch(t){console.error(t)}h.A.addEventListener("current_hover_change",this.checkIfCurrentHoverChanged)}componentWillUnmount(){clearTimeout(this.itemLoadedTimeout),h.A.removeEventListener("current_hover_change",this.checkIfCurrentHoverChanged)}componentDidUpdate(t){(0,g.Xe)({prevProps:t,currentProps:this.props,itemActionRef:this.itemActionRef})}checkIfCurrentHoverChanged(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}))}onContextMenu(t){!n.A.isDev()&&this.props.options[o.A.behaviourParams.gallery.blockContextMenu]&&t.preventDefault(t)}getItemAriaRole(){switch(this.props.options[o.A.behaviourParams.item.clickAction]){case a.A[o.A.behaviourParams.item.clickAction].ACTION:return"button";case a.A[o.A.behaviourParams.item.clickAction].LINK:return"link";default:return""}}getItemAriaHaspopup(){switch(this.props.options.itemClick){case"expand":case"fullscreen":return!0;default:return!1}}onContainerKeyUp(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;case 27:return this.state.isCurrentHover?this.props.actions.eventsListener(a.A.events.HOVER_SET,-1):(t.target.blur(),this.props.actions.eventsListener(a.A.events.ITEM_LOST_FOCUS,this.props)),!1;default:return!0}}composeItem(){var t,e;const{photoId:i,id:s,hash:n,idx:l,options:h,type:u,url:c}=this.props;this.hasRequiredMediaUrl=c||"text"===u;const m=h[o.A.layoutParams.info.placement]!==a.A[o.A.layoutParams.info.placement].OVERLAY&&!this.hasRequiredMediaUrl,d=this.getItemAriaRole(),p=this.getItemAriaLabel(),f=this.getItemAriaHaspopup(),b=(null===(t=this.props.elementsOverride)||void 0===t?void 0:t.item)||"div",I=r.createElement(b,{className:this.getItemContainerClass(),onContextMenu:t=>this.onContextMenu(t),id:y.t.getSellectorDomId(this.props),ref:this.itemContainer,onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onFocus:this.onFocus,onBlur:this.onBlur,"data-hash":n,"data-id":i,"data-idx":l,"data-hook":"item-container",key:"item-container-"+s,style:this.getItemContainerStyles(),onKeyUp:this.onContainerKeyUp,onClick:this.onItemWrapperClick},this.props.disableItemFocus?null:r.createElement("div",Object.assign({"data-id
1x":l,id:"item-action-"+s,className:"item-action",ref:t=>this.itemActionRef=t,onKeyUp:this.onContainerKeyUp,tabIndex:this.getItemContainerTabIndex(),onFocus:this.onFocus,onBlur:this.onBlur,"data-hook":"item-action"},p&&{"aria-label":p},d&&{role:d},f&&{"aria-haspopup":f?"dialog":""})),this.getTopInfoElementIfNeeded(),this.getLeftInfoElementIfNeeded(),r.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(0,A.nb)(this.props.options)),a.A.hasExternalRightPlacement(this.props.options[o.A.layoutParams.info.placement],this.props.idx)&&{float:"left"}),a.A.hasExternalLeftPlacement(this.props.options[o.A.layoutParams.info.placement],this.props.idx)&&{float:"right"})},!m&&r.createElement("div",{"data-hook":"item-wrapper",className:this.getItemWrapperClass(),key:"item-wrapper-"+s,id:"item-wrapper-"+s,style:this.getItemWrapperStyles()},this.getItemInner())),this.getRightInfoElementIfNeeded(),this.getBottomInfoElementIfNeeded()),P=(0,v.l)(this.props),S={ref:t=>this.itemAnchor=t,"data-id":i,className:"item-link-wrapper","data-idx":l,"data-hook":"item-link-wrapper",onFocus:()=>{(0,g.tF)({itemAnchor:this.itemAnchor,enableExperimentalFeatures:this.props.enableExperimentalFeatures,itemContainer:this.itemContainer})},tabIndex:-1,onKeyDown:t=>{this.onAnchorKeyDown(t)}};return(null===(e=null==P?void 0:P.href)||void 0===e?void 0:e.length)>0?r.createElement("a",Object.assign({key:"item-container-link-"+s},S,P),I):r.createElement("div",Object.assign({key:"item-container-div-"+s},S),I)}render(){return this.composeItem()}}const w=S}
1,23255:(t,e,i)=>{"use strict";i.d(e,{GL:()=>u,dB:()=>a,fm:()=>h,nb:()=>n});var s=i(6940),r=i(59955),o=i(11854);function a(t){return Object.assign({},(t[s.A.layoutParams.info.layout]===r.A[s.A.layoutParams.info.layout].ATTACHED_BACKGROUND||r.A.hasHoverPlacement(t[s.A.layoutParams.info.placement]))&&Object.assign(Object.assign({},l(t[s.A.stylingParams.itemBorderRadius],t[s.A.stylingParams.itemBorderWidth],t[s.A.stylingParams.itemBorderColor])),function(t){let e={};if(t[s.A.stylingParams.itemEnableShadow]){const i=t[s.A.stylingParams.itemShadowBlur],r=t[s.A.stylingParams.itemShadowDirection],a=t[s.A.stylingParams.itemShadowSize],n=-1*(Number(r)-90)/360*2*Math.PI;e={boxShadow:`${Math.round(a*Math.cos(n))}px ${Math.round(-1*a*Math.sin(n))}px ${i}px ${o.A.formatColor(t[s.A.stylingParams.itemShadowOpacityAndColor])}`}}return e}(t)))}function n(t){return Object.assign({},!r.A.hasHoverPlacement(t[s.A.layoutParams.info.placement])&&(t[s.A.layoutParams.info.layout]===r.A[s.A.layoutParams.info.layout].NO_BACKGROUND||t[s.A.layoutParams.info.layout]===r.A[s.A.layoutParams.info.layout].SEPARATED_BACKGROUND)&&Object.assign({},l(t[s.A.stylingParams.itemBorderRadius],t[s.A.stylingParams.itemBorderWidth],t[s.A.stylingParams.itemBorderColor])))}function l(t,e,i){return Object.assign(Object.assign({overflow:"hidden"},t>0&&{borderRadius:t}),e>0&&{borderWidth:e+"px",borderColor:o.A.formatColor(i),borderStyle:"solid"})}function h(t,e,i,o){const a=Object.assign(Object.assign({},r.A.hasExternalHorizontalPlacement(t)&&{height:i,float:r.A.isExternalRightPlacement(t)?"right":"left"}),r.A.hasExternalVerticalPlacement(t)&&{height:o,boxSizing:"content-box"});return e[s.A.layoutParams.info.layout]===r.A[s.A.layoutParams.info.layout].SEPARATED_BACKGROUND?Object.assign(Object.assign(Object.assign(Object.assign({},a),l(e[s.A.layoutParams.info.border.radius],e[s.A.layoutParams.info.border.width],e[s.A.layoutParams.info.border.color])),r.A.hasExternalAbovePlacement(t)&&{marginBottom:e[s.A.layoutParams.info.spacing]}),r.A.hasExternalBelowPlacement(t)&&{marginTop:e[s.A.layoutParams.info.spacing]}):a}function u(t,e,i,o){const a=Object.assign(Object.assign({},(e[s.A.layoutParams.info.layout]===r.A[s.A.layoutParams.info.layout].SEPARATED_BACKGROUND||e[s.A.layoutParams.info.layout]===r.A[s.A.layoutParams.info.layout].ATTACHED_BACKGROUND)&&e.textBoxFillColor&&e.textBoxFillColor.value&&{backgroundColor:e.textBoxFillColor.value}),{overflow:"hidden",boxSizing:"border-box"}),n=r.A.hasExternalVerticalPlacement(t),l=r.A.hasExternalHorizontalPlacement(t);return Object.assign(Object.assign(Object.assign({},a),n&&function(t,e){return{width:"100%",height:e}}(0,i)),l&&function(t,e){return{height:"100%",width:e}}(0,o))}},17722:(t,e,i)=>{"use strict";i.d(e,{v:()=>a});var s=i(60751),r=i(79919);const o={videoPlayButton:s.lazy((()=>Promise.all([i.e(8741),i.e(3931),i.e(9955),i.e(1854),i.e(2001),i.e(6492)]).then(i.bind(i,88402)))),rotateArrow:s.lazy((()=>Promise.all([i.e(8741),i.e(3931),i.e(9955),i.e(1854),i.e(2001),i.e(9658)]).then(i.bind(i,19126))))},a=({type:t,size:e})=>{const[i,a]=(0,s.useState)(!1),n=(0,r.h)();if((0,s.useEffect)((()=>{a(!0)}),[]),!i)return s.createElement(s.Fragment,null);if("function"==typeof(null==n?void 0:n[t]))return n[t](e);const l=o[t];return l?s.createElement(s.Suspense,{fallback:s.createElement(s.Fragment,null)},s.createElement(l,{size:e})):s.createElement(s.Fragment,null)}},86357:(t,e,i)=>{"use strict";i.d(e,{A:()=>m});var s=i(60751),r=i(59955),o=i(6940),a=i(98902),n=i(17722),l=i(11854),h=i(8927),u=i(56664);const c=t=>"video"===t?s.createElement(n.v,{type:"videoPlayButton",size:60}):"3d"===t?s.createElement(n.v,{type:"rotateArrow",size:60}):s.createElement(s.Fragment,null);function m(t){const{hasLink:e,options:i,imageDimensions:n,showPlayButton:m,MediaImplementation:d,enableImagePlaceholder:p,isVideoPlaceholder:g,videoPlaceholderUrl:y}=t,{behaviourParams_item_clickAction:A,behaviourParams_item_video_playTrigger:f}=i,[v,b]=(0,s.useState)(!1);(0,s.useEffect)((()=>{b(!0)}),[]);const I=(0,s.useMemo)((()=>!l.A.isSSR()&&(f===r.A[o.A.behaviourParams.item.video.playTrigger].HOVER||f===r.A[o.A.behaviourParams.item.video.playTrigger].AUTO||(A===r.A[o.A.behaviourParams.item.clickAction].NOTHING||A===r.A[o.A.behaviourParams.item.clickAction].MAGNIFY||A===r.A[o.A.behaviourParams.item.clickAction].LINK&&!e))),[e,f,A]),P=(e={})=>p?s.createElement(h.A,Object.assign({},t,{imageDimensions:n,id:t.idx,overlay:m&&!I&&c(t.type),extraClasse
1s:t.placeholderExtraClasses.join(" ")},e)):s.createElement(s.Fragment,null),S=P(),w=s.createElement(u.A,{dimensions:n,url:g?y:t.videoUrl}),O=s.createElement(s.Fragment,null,S,w,t.hover);return I&&!t.isPrerenderMode&&v?(0,a.Q)()?s.createElement(s.Fragment,null,S,t.hover):s.createElement(s.Suspense,{fallback:O},s.createElement(d,Object.assign({},t,{thumbnail:S,placeholder:O,thumbnailWithOverride:P}))):O}},34965:(t,e,i)=>{"use strict";i.d(e,{U:()=>r});var s=i(60751);class r extends s.Component{constructor(t){super(t),this.state={isPrinting:!1}}componentDidMount(){window.addEventListener("beforeprint",(()=>{this.setState({isPrinting:!0})})),window.addEventListener("afterprint",(()=>{this.setState({isPrinting:!1})}))}render(){return this.state.isPrinting?s.createElement("source",Object.assign({},this.props)):null}}},61947:(t,e,i)=>{"use strict";i.d(e,{l:()=>l,t:()=>n});var s=i(11854),r=i(98902),o=i(6940),a=i(59955);function n(t){return Object.assign(Object.assign({},t),{isMobile:s.A.isMobile()})}function l({directLink:t,options:e,directShareLink:i,noFollowForSEO:s}){const n=(0,r.Xf)();if(e[o.A.behaviourParams.item.clickAction]===a.A[o.A.behaviourParams.item.clickAction].LINK){const{url:e,target:i}=t||{},r=n&&s?{rel:"nofollow"}:{};return!(!e||!i)?Object.assign({href:e,target:i},r):{}}if(e[o.A.behaviourParams.item.clickAction]===a.A[o.A.behaviourParams.item.clickAction].ACTION){const t=i,s=!!t,r=!e[o.A.behaviourParams.gallery.enableIndexingShareLinks]?{rel:"nofollow"}:{};return s?Object.assign({href:t,"data-cancel-link":!0},r):{}}}},16781:(t,e,i)=>{"use strict";i.d(e,{A:()=>n});var s=i(6940),r=i(59955),o=i(60751),a=i(98071);class n extends o.Component{constructor(t){super(t),"function"==typeof this.props.actions.setItemLoaded&&this.props.actions.setItemLoaded()}getTextDimensions(){const{style:t,options:e,cropRatio:i,imageDimensions:o}=this.props,a=t.ratio<i-.01,{marginLeft:n,marginTop:l}=o,h=(a?t.height/t.maxHeight:t.width/t.maxWidth)*t.maxHeight,u=(a?t.height/t.maxHeight:t.width/t.maxWidth)*t.maxWidth,c=e[s.A.layoutParams.crop.method]===r.A[s.A.layoutParams.crop.method].FIT?"0, 0":`${Math.round((t.width-u)/2)}px, ${Math.round((t.height-h)/2)}px`,m=a?t.height/t.maxHeight:t.width/t.maxWidth,d=`translate(${c}) scale(${m})`,p=Math.round(n/m),g=Math.round(l/m);return{width:t.maxWidth+"px",height:t.maxHeight+"px",marginLeft:p,marginTop:g,transformOrigin:`${-p}px ${-g}px`,WebkitTransform:d,MsTransform:d,OTransform:d,transform:d}}processInnerhtml(t){try{return t.replace(/class="font_\d+"/gm,"")}catch(e){return t}}render(){const{id:t,options:e,html:i,style:n,actions:l,imageDimensions:h}=this.props,u=this.processInnerhtml(i),c=this.getTextDimensions(),m={dangerouslySetInnerHTML:{__html:a(u)}},d={style:Object.assign(c,e[s.A.layoutParams.crop.method]===r.A[s.A.layoutParams.crop.method].FIT?{backgroundColor:n.bgColor}:{})},p=Object.assign(Object.assign({},m),d),g={height:h&&!this.props.isPrerenderMode?h.height:"inherit",backgroundColor:e[s.A.layoutParams.crop.method]!==r.A[s.A.layoutParams.crop.method].FIT?n.bgColor:"inherit"};h&&h.borderRadius&&(g.borderRadius=h.borderRadius);const y=["gallery-item-content",this.props.isCurrentHover?"item-content-hover":"item-content-regular"];return o.createElement("div",{className:y.join(" "),style:g},o.createElement("div",Object.assign({className:"gallery-item-visible gallery-item gallery-item-loaded text-item",key:"item-text-"+t,onTouchStart:l.handleItemMouseDown,onTouchEnd:l.handleItemMouseUp,"data-hook":"text-item"},p)))}}},56664:(t,e,i)=>{"use strict";i.d(e,{A:()=>r});var s=i(60751);const r=({url:t,dimensions:e})=>{const i=t,r={"data-hook":"video-iframe-placeholder",className:"gallery-item-content video-iframe-placeholder",title:"pro-gallery-video",style:e,allow:"fullscreen",allowFullScreen:!0,loading:"lazy"};return(null==t?void 0:t.includes("youtube.com"))||(null==t?void 0:t.includes("youtu.be"))||(null==t?void 0:t.includes("vimeo.com"))?s.createElement("iframe",Object.assign({},r,{src:t+"&autoplay=0&muted=1"})):s.createElement("iframe",Object.assign({},r,{src:i,srcDoc:`\n <video controls preload='metadata'>\n <source src='${i}' type='video/mp4'>\n </video>\n `}))}},41251:(t,e,i)=>{"use strict";i.d(e,{A:()=>d});var s=i(60751),r=i(11854),o=i(6940),a=i(2746),n=i(17722),l=i(86357);const h=r.A.isiOS(),u=s.lazy((()=>Promise.all([i.e(8741),i.e(3931),i.e(9955),i.e(1854),i.e(4367)]).then(i.bind(i,19917))));class c extends s.Component{render(){const t=(((e=this.props).videoUrl||e.url).includes("youtube.com")||(e.videoUrl||e.url).includes("youtu.be"))&&h;var e;return s.createElement(u,Object.assign({},this.props,{loadVideo:this.props.shouldPlay||t,videoPlaceholder:this.props.thumbnail,videoPlayButton:this.props.showPlayButton&&s.createElement(n.v,{type:"videoPlayButton",size:60})}
1))}}class m extends s.Component{render(){const t=this.props.options[o.A.behaviourParams.item.video.enablePlayButton];return s.createElement(l.A,Object.assign({},this.props,{MediaImplementation:c,enableImagePlaceholder:(0,a.g4)(this.props.options),showPlayButton:t,placeholderExtraClasses:["video-item","gallery-item-video"]}))}}const d=m},10869:(t,e,i)=>{"use strict";i.d(e,{A:()=>u});var s=i(18702),r=i(90897),o=i(23010),a=i(8971),n=i(27524),l=i(52109),h=i(7758);const u={DEFAULT_ARROW:{SvgComp:s.A,width:23,height:39},ARROW_2:{SvgComp:r.A,width:40,height:33},ARROW_3:{SvgComp:o.A,width:25,height:42},ARROW_4:{SvgComp:a.A,width:39,height:11},ARROW_5:{SvgComp:n.A,width:39,height:25},ARROW_6:{SvgComp:l.A,width:26,height:40},ARROW_7:{SvgComp:h.A,width:40,height:33}}},90897:(t,e,i)=>{"use strict";i.d(e,{A:()=>r});var s=i(60751);const r=({style:t})=>s.createElement("svg",{className:"slideshow-arrow",style:t,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"},s.createElement("g",{id:"Page-1",stroke:"none",strokeWidth:"1",fillRule:"evenodd"},s.createElement("g",{id:"Artboard-Copy-93",transform:"translate(-28.000000, -32.000000)",fillRule:"nonzero"},s.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"}))))},23010:(t,e,i)=>{"use strict";i.d(e,{A:()=>r});var s=i(60751);const r=({style:t})=>s.createElement("svg",{className:"slideshow-arrow",style:t,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"},s.createElement("g",{id:"Page-1",stroke:"none",strokeWidth:"1",fillRule:"evenodd"},s.createElement("g",{id:"Artboard-Copy-97",transform:"translate(-36.000000, -27.000000)",fillRule:"nonzero"},s.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"}))))},8971:(t,e,i)=>{"use strict";i.d(e,{A:()=>r});var s=i(60751);const r=({style:t})=>s.createElement("svg",{className:"slideshow-arrow",style:t,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"},s.createElement("g",{stroke:"none",strokeWidth:"1",fillRule:"evenodd"},s.createElement("g",{transform:"translate(-29.000000, -43.000000)",fillRule:"nonzero"},s.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"}))))},27524:(t,e,i)=>{"use strict";i.d(e,{A:()=>r});var s=i(60751);const r=({style:t})=>s.createElement("svg",{className:"slideshow-arrow",style:t,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"},s.createElement("g",{stroke:"none",strokeWidth:"1",fillRule:"evenodd"},s.createElement("g",{transform:"translate(-29.000000, -36.000000)",fillRule:"nonzero"},s.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"}))))},52109:(t,e,i)=>{"use strict";i.d(e,{A:()=>r});var s=i(60751);const r=({style:t})=>s.createElement("svg",{className:"slideshow-arrow",style:t,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"},s.createElement("g",{stroke:"none",strokeWidth:"1",fillRule:"evenodd"},s.createElement("g",{transform:"translate(-35.000000, -28.000000)",fillRule:"nonzero"},s.createElement("polygon",{points:"60.4571429 47.8 40.6571429 67.6 35 61.9428571 49.1433951 47.7994621 35 33.6571429 40.6571429 28"}))))},7758:(t,e,i)=>{"use strict";i.d(e,{A:()=>r});var s=i(60751);const r=({style:t})=>s.createElement("svg",{className:"slideshow-arrow",style:t,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"},s.createElement("g",{stroke:"none",strokeWidth:"1",fillRule:"evenodd"},s.createElement("g",{transform:"translate(-28.000000, -32.000000)",strokeWidth:"nonzero"},s.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"}))))},18702:(t,e,i)=>{"use strict";i.d(e,{A:()=>r});var s=i(60751);const r=({style:t})=>s.createElement("svg",{className:"slideshow-arrow",style:t,width:"23",height:"39",viewBox:"0 0 23 39"},s.createElement("path",{d:"M857.005,231.479L858.5,230l18.124,18-18.127,18-1.49-1.48L873.638,248Z",transform:"translate(-855 -230)"}))},43744:(t,e,i)=>{"use strict";i.d(e,{A:()=>n});var s=i(55823),r=i(97598),o=i(60751);const a=t=>{var{size:e}=t,i=(0,s.__rest)(t,["size"]);return o.createElement("svg",Object.assign({viewBox:"0 0 10 14",fill:"
1currentColor",width:e||"10",height:e||"14"},i),o.createElement("g",{id:"final",stroke:"none",fill:"none",strokeWidth:"1",fillRule:"evenodd"},o.createElement("g",{id:"Play",transform:"translate(-490 -763)",fill:"currentColor"},o.createElement("g",{id:"Group-2",transform:"translate(470 284)"},o.createElement("g",{id:"Group",transform:"translate(20 479)"},o.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"}))))))};a.displayName="pause",a.propTypes={size:r.string};const n=a},30978:(t,e,i)=>{"use strict";i.d(e,{A:()=>n});var s=i(55823),r=i(97598),o=i(60751);const a=t=>{var{size:e}=t,i=(0,s.__rest)(t,["size"]);return o.createElement("svg",Object.assign({viewBox:"0 0 11 14",fill:"currentColor",width:e||"11",height:e||"14"},i),o.createElement("g",{id:"final",stroke:"none",fill:"none",strokeWidth:"1",fillRule:"evenodd"},o.createElement("g",{id:"Pause",transform:"translate(-490 -763)",fill:"currentColor"},o.createElement("g",{id:"Group-2",transform:"translate(470 284)"},o.createElement("g",{id:"Group",transform:"translate(20 479)"},o.createElement("path",{id:"play",d:"M0.0788076641 0L0 14 10.5 6.81856071z"}))))))};a.displayName="play",a.propTypes={size:r.string};const n=a},79919:(t,e,i)=>{"use strict";i.d(e,{A:()=>a,h:()=>n});var s=i(55823),r=i(60751);const o=r.createContext({}),a=t=>{var{children:e}=t;const i=(0,s.__rest)(t,["children"]).customComponents.EXPERIMENTAL_customGalleryUI;return r.createElement(o.Provider,{value:{galleryUI:i}},e)},n=()=>{const{galleryUI:t}=r.useContext(o);return t}},23723:(t,e,i)=>{"use strict";i.d(e,{A:()=>o});var s=i(7921),r=i(11854);const o=class{constructor(t){this.uniqueId=r.A.generateUUID(),this.isGalleryGroup=!0,t.dto&&t.dto.dto&&(t.dto=t.dto.dto,r.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 s.Y({dto:t.dto}).scheme),t.items?this.items=t.items:console.warn("Pro Gallery created Gallery Group without items",t)}processScheme(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}renderProps(t){return{className:"group",id:this.id,idx:this.idx,key:this.key,type:this.t
1ype,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}}get key(){return"group_"+this.id}}},78625:(t,e,i)=>{"use strict";i.d(e,{A:()=>n});var s=i(11854),r=i(59955),o=i(98687);class a{constructor(t){this.uniqueId=s.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)}createSecondMediaItemIfNeeded(t){var e;(null===(e=t.dto)||void 0===e?void 0:e.secondaryMedia)&&(this.secondaryMediaItem=new a(this.mapItemConfig(t)))}updateSecondaryMedia(t){this.secondaryMediaItem&&this.secondaryMediaItem.update(this.mapItemConfig(t))}mapItemConfig(t){const e={};return Object.assign(e,t.dto.secondaryMedia,t.dto.secondaryMedia.metadata),Object.assign(Object.assign({},t),{dto:e,scheme:Object.assign(Object.assign({},t.scheme),{maxHeight:e.height,maxWidth:e.width})})}update(t){if(this.createMediaUrl=t.createMediaUrl,t.dto&&t.dto.dto&&(t.dto=t.dto.dto,s.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);else{const t={};Object.assign(t,this.dto,this.metadata),this.processScheme(new o.q({dto:t}).scheme)}if(this.dto){const t=this.dto.metaData||this.dto.metadata;t&&(this.dto.metaData=s.A.parseStringObject(t))}this.sharpParams=Object.assign({},t.sharpParams),this.sharpParams.quality||(this.sharpParams.quality=90),this.sharpParams.usm||(this.sharpParams.usm={}),this.thumbnailSize=t.thumbnailSize||120,this.thumbnailRatio=t.thumbnailRatio||1,this.resetUrls(),this.updateSharpParams(),this.updateSecondaryMedia(t)}processScheme(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||r.A.resizeMethods.FILL,this.offset=t.offset,this.group=t.group,this.orientation=t.orientation,this.visibility=t.visibility}renderProps(t){const e=Object.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=Object.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,videoPlaceholderUrl:this.videoPlaceholderUrl,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,scene:this.scene},t);return this.hasSecondaryMedia&&(i.secondaryMediaItem=Object.assign(Object.assign({},this.secondaryMediaItem.renderProps()),{style:Object.assign(Object.assign({},e),{bgColor:this.secondaryMediaItem.bgColor})})),i}getDataForShop(){const 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(r.A.resizeMethods.FIT,200,200,null,null).img(),imagePurchasedUrl:this.dto.mediaUrl,fpX:t[0],fpY:t[1]}}getHighestMp4Resolution(t){const e=t.filter((t=>"mp4"===t.formats[0])),{width:i,height:s}=e.sort(((t,e)=>e.width-t.width))[0];return{width:i,height:s}}processedMediaUrl(t,e,i,o,a=!1){var n;const l=(t,e,i,r,o,n=null,l=null)=>{let h;if("function"==typeof this.createMediaUrl)try{const u=String(s.A.hashCode(JSON.stringify({url:e,resizeMethod:i,requiredWidth:r,requiredHeight:o,sharpParams:n,focalPoint:l})));this._cachedUrls[u]||(this._cachedUrls[u]=this.createMediaUrl({item:t,originalUrl:e,resizeMethod:i,requiredWidth:r,requiredHeight:o,sharpParams:n,focalPoint:l,createMultiple:a})||""),h=this._cachedUrls[u]}catch(s){console.error("Cannot create url",s,t,e,i,r,o,n,l),h=String(e)}else h=String(e);return h};e=Math.ceil(e),i=Math.ceil(i);const h=t===r.A.resizeMethods.FILL&&this.isCropped&&this.focalPoint,u={};let c=this.url;return u[r.A.urlTypes.THREE_D]=()=>this.url,this.is3D&&(c=this.poster.url),this.isText?Object.assign({},...Object.values(r.A.urlTypes).map((t=>({[t]:()=>""})))):((this.isVideo||this.isVideoPlaceholder)&&(c=null===(n=this.poster)||void 0===n?void 0:n.url,s.A.isExternalUrl(this.url)?u[r.A.urlTypes.VIDEO]=()=>this.url:u[r.A.urlTypes.VIDEO]=()=>l(this,this.url,r.A.resizeMethods.VIDEO,e,i)),u[r.A.urlTypes.HIGH_RES]=()=>l(this,c,t,e,i,o,h),u[r.A.urlTypes.LOW_RES]=()=>{const e=this.resizeWidth/this.resizeHeight;return l(this,c,this.cubeImages&&t!==r.A.resizeMethods.FIT?r.A.resizeMethods.FILL:r.A.resizeMethods.FIT,250*e,250,Object.assign(Object.assign({}
1,o),{quality:30,blur:30}),h)},u)}resetUrls(){const 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={}}createUrl(t,e){try{return this[t+"_url"][e]()}catch(t){return""}}get cubeTypeResizeMethod(){return{[r.A.layoutParams_crop_method.FIT]:r.A.resizeMethods.FIT,[r.A.layoutParams_crop_method.FILL]:r.A.resizeMethods.FILL}[this.cubeType]}createMagnifiedUrl(t=1){if(!this.urls.magnified_url){const{innerWidth:e,innerHeight:i}=this.style;this.urls.magnified_url=this.processedMediaUrl(this.cubeTypeResizeMethod,e*t,i*t,this.sharpParams,!0)}return this.urls.magnified_url[r.A.urlTypes.HIGH_RES]()}get resized_url(){return this.urls.resized_url||(this.urls.resized_url=this.processedMediaUrl(this.cubeTypeResizeMethod,this.resizeWidth,this.resizeHeight,this.sharpParams)),this.urls.resized_url}get multi_url(){return this.urls.multi_url||(this.urls.multi_url=this.processedMediaUrl(this.cubeTypeResizeMethod,this.resizeWidth,this.resizeHeight,this.sharpParams,!0)),this.urls.multi_url}get scaled_url(){if(!this.urls.scaled_url){const t=this.maxWidth/this.maxHeight,e=this.resizeWidth/this.resizeHeight<t;this.urls.scaled_url=this.processedMediaUrl(r.A.resizeMethods.FILL,e?t*this.resizeHeight:this.resizeWidth,e?this.resizeHeight:this.resizeWidth/t,this.sharpParams)}return this.urls.scaled_url}get pixel_url(){return this.urls.pixel_url||(this.urls.pixel_url=this.processedMediaUrl(r.A.resizeMethods.FILL,1,1,{quality:90})),this.urls.pixel_url}get thumbnail_url(){if(!this.urls.thumbnail_url){const t=this.thumbnailSize/this.thumbnailRatio;this.urls.thumbnail_url=this.processedMediaUrl(r.A.resizeMethods.FILL,this.thumbnailSize,t,{quality:70})}return this.urls.thumbnail_url}get square_url(){return this.urls.square_url||(this.urls.square_url=this.processedMediaUrl(r.A.resizeMethods.FILL,100,100,{quality:80})),this.urls.square_url}get full_url(){return this.urls.full_url||(this.urls.full_url=this.processedMediaUrl(r.A.resizeMethods.FULL,this.maxWidth,this.maxHeight,this.sharpParams)),this.urls.full_url}get sample_url(){return this.urls.sample_url||(this.urls.sample_url=this.processedMediaUrl(r.A.resizeMethods.FIT,500,500,this.sharpParams)),this.urls.sample_url}get preload_url(){return this.urls.preload_url||(this.urls.preload_url=this.processed_url),this.urls.preload_url}get download_url(){return this.createDownloadUrl(this.full_url)}get download_sample_url(){return this.createDownloadUrl(this.sample_url)}createDownloadUrl(t){return this.urls.download_url||(this.urls.download_url=t,this.urls.download_url._img=this.urls.download_url.img,this.urls.download_url.img=()=>{const t=this.urls.download_url._img();return t+(t.includes("?")?"&":"?")+`dn=${this.fileName}`}),this.urls.download_url}updateSharpParams(){if(this.dto.metaData&&this.dto.metaData.sharpParams&&this.dto.metaData.sharpParams.L){const t=this.dto.metaData.sharpParams.L;t.quality&&!0===t.overrideQuality&&(this.sharpParams.quality=t.quality),t.usm&&!0===t.overrideUsm&&(this.sharpParams.usm=t.usm)}}get hasSecondaryMedia(){return!!this.secondaryMediaItem}get itemId(){return this.id}updateId(t){this.dto.itemId=this.id=t}get metadata(){let t=this.dto.metaData||this.dto.metadata;return s.A.isUndefined(t)&&(t={}),t}get metaData(){return this.metadata}get bgColor(){let t;return t=this.isText?this.metadata&&(this.metadata.textStyle&&this.metadata.textStyle.backgroundColor||this.metadata.backgroundColor):"none",t}get isCropped(){return this.cubeImages&&this.cubeTypeResizeMethod===r.A.resizeMethods.FILL}get focalPoint(){return this.metadata.focalPoint||[.5,.5]}set focalPoint(t){this.metadata.focalPoint=t}get photoId(){return this.id}get key(){return this._key||(this._key=(this.dto.key||this.id||this.dto.url||"no_key_found").replace(/\W/g,"")),this._key}get orderIndex(){return this.dto.orderIndex||this.dto.o||0}set orderIndex(t){this.dto.orderIndex=t}updateOrderIndex(t){const e=this.orderIndex!==t;return this.orderIndex=t,e}get url(){return this.dto.file_url||this.dto.mediaUrl||this.dto.url||this.dto.src||""}get mediaUrl(){return this.url}get html(){return this.dto.html||this.dto.text||this.metadata.html||this.metadata.text}get lastModified(){return this.metadata.lastModified}get seed(){return s.A.hashToInt(this.url)}get isImage(){return"image"===this.type}get isImportant(){return!!this.dto.i}get videoUrl(){return this.metadata.videoUrl}get poster(){return this.metadata.poster||this.metadata.customPoster&&this.metadata.customPoster||(this.metadata.posters?this.metadata.posters[this.metadata.posters.length-1]:null)}get scene(){return this.metadata.scene}get qualities(){return this.metadata.qualities}get isExternalVideo(){return this.metadata.isExternal}get isExternal(){return!0===this.metadata.isExternal}set type(t){this._type=t}get type(){switch(this._type||this.dto.type||this.metadata.type||this.dto.media_type){case"dummy":return"dummy";case"v":case"video":return"video";case"h":case"html":case"text":return"text";case"3d":return"3d";default:return"image"}}get isVideoPlaceholder(){return!!(this.dto.isVideoPlaceholder||this.metadata.isVideoPlaceholder||this.dto.media_isVideoPlaceholder)}get videoPlaceholderUrl(){return this.dto.videoPlaceholderUrl||this.metadata.videoPlaceholderUrl||this.dto.media_videoPlaceholderUrl}get htmlContent(){var t;return null===(t=this.html)||void 0===t?void 0:t.replace(/<[^<>]*>/g,"").trim()}get alt(){return s.A.isMeaningfulString(this.metadata.alt)&&this.metadata.alt||""}set alt(t){this.metadata.alt=t}get title(){return this.metadata.title||""}set title(t){this.metadata.title=t}get fileName(){return this.metadata.fileName||""}set fileName(t){this.metadata.fileName=t}get description(){return this.metadata.description||""}set description(t){this.metadata.description=t}get exif(){return this.metadata.exif||""}get hasLink(){return"wix"===this.linkType?!!this.linkData.type:!!this.linkUrl}get link(){return this.metadata.link||{}}get linkData(){return this.metadata.link&&this.metadata.link.data?this.metadata.link.data:this.isWixUrl?{type:"web",url:this.linkUrl}:{}}set linkData(t){this.metadata.link||(this.metadata.link={}),this.metadata.link.data=t}get linkType(){return this.metadata.link&&!s.A.isUndefined(this.metadata.link.type)?this.metadata.link.type:this.linkUrl?"web":"none"}set linkType(t){this.metadata.link||(this.metadata.link={}),this.metadata.link={type:t,url:void 0,text:void 0,title:void 0,target:"_blank"}}get defaultLinkText(){const t=this.linkData;switch(this.linkType){case"wix":if(!t)return"Go to Link";switch(t.type){case"PageLink":return`Go to Page ${t.pageName}`;case"AnchorLink":return`Scroll to ${t.anchorName}`;case"ExternalLink":return`${t.url}`;case"EmailLink":return`Email ${t.recipient}`;case"PhoneLink":return`Call ${t.phoneNumber}`;case"DocumentLink":return`Open ${t.name}`;default:return"Go to Link"}case"web":return this.linkTitleFromUrl||this.linkUrl;case"page":return this.linkTitle;default:return""}}get defaultLinkValue(){const t=this.linkData;switch(this.linkType){case"wix":if(!t)return"Add a Link";switch(t.type){case"PageLink":return t.pageName?`PAGE - ${t.pageName}`:"PAGE";case"AnchorLink":return`ANCHOR - ${t.anchorName}`;case"ExternalLink":return`LINK - ${t.url}`;case"EmailLink":return`EMAIL - ${t.recipient}`;case"PhoneLink":return`PHONE - ${t.phoneNumber}`;case"DocumentLink":return`DOCUMENT - ${t.name}`;default:return"Add a Link"}case"web":return this.linkUrl;case"page":return this.linkTitle;default:return""}}get linkText(){return this.metadata.link&&this.metadata.link.text||this.defaultLinkText}set linkText(t){this.metadata.link||(this.metadata.link={}),this.metadata.link.text=t}get linkTitle(){return this.metadata.link&&this.metadata.link.title}set linkTitle(t){this.metadata.link||(this.metadata.link={}),this.metadata.link.title=t}get linkUrl(){return this.metadata.link&&this.metadata.link.url}set linkUrl(t){this.metadata.link||(this.metadata.link={}),this.metadata.link.url=t}get isWixUrl(){return this.linkUrl&&0===this.linkUrl.indexOf("wix")}get linkTitleFromUrl(){const t=/[^/]*\.\w+$/g.exec(this.linkUrl),e=t&&t[0];return e&&e.split(".")[0]}get unprotectedLinkOpenType(){return s.A.get(this,"metadata.link.target")}get linkOpenType(){return this.metadata.link&&!s.A.isUndefined(this.metadata.link.target)?this.unprotectedLinkOpenType:this.metadata.link&&!s.A.isUndefined(this.metadata.link.targetBlank)?this.metadata.link.targetBlank?"_blank":"_top":"_blank"}set linkOpenType(t){this.metadata.link||(this.metadata.link={}),this.metadata.link.target=t}get initialLinkObject(){return{type:"none",url:void 0,text:void 0,title:void 0,target:"_blank"}}get isDemo(){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 isDemo(t){this.metadata.isDemo=t}get isText(){return"text"===this.type}get isVideo(){return"video"===this.type}get is3D(){return"3d"===this.type}get isVisible(){return!0}get isRendered(){return!0}get isDimensionless(){return!(this.maxWidth>1||this.maxHeight>1)}
1get isTransparent(){return this.url&&(this.url.indexOf(".png")>0||this.url.indexOf(".gif")>0)}get webLink(){var t;return(null===(t=this.linkUrl)||void 0===t?void 0:t.length)>0&&"web"===this.linkType?{url:this.linkUrl,target:this.linkOpenType}:{}}get directLink(){return this.dto.directLink||this.webLink||{}}get directShareLink(){return this.dto.directShareLink||""}}const n=a},37296:(t,e,i)=>{"use strict";i.d(e,{J:()=>a});var s=i(78625),r=i(23723),o=i(11854);class a{static convertDtoToLayoutItem(t){if(!!(t.id&&t.width>0&&t.height>0))return t;{const e=t.metadata||t.metaData,i="object"==typeof e?e:o.A.parseStringObject(e)||{};return Object.assign({id:t.itemId||t.photoId,width:i.width,height:i.height},t)}}static convertToGalleryItems(t,e={},i=[]){t.galleryItems=[];for(let o=0;o<t.columns.length;o++){const a=t.columns[o];a.galleryGroups=[];const n=a.groups||a;for(let o=0;o<n.length;o++){const l=n[o],h=[];for(let r=0;r<l.items.length;r++){const o=l.items[r],a=Object.assign({scheme:o,dto:o.dto},e),n=i[o.idx];let u;n&&n.id&&n.id===o.id?(u=n,u.update(a)):u=new s.A(a),h[r]=u,t.galleryItems[o.idx]=h[r]}a.galleryGroups[o]=new r.A({scheme:l,dto:l.dto,items:h})}}return t}static convertExistingStructureToGalleryItems(t,e,i={}){o.A.isVerbose()&&console.time("convertToGalleryItems"),t.galleryItems||(t.galleryItems=[]);const a=t.columns.slice(-1)[0].galleryGroups.pop();a&&t.galleryItems.splice(-a.items.length);for(let o=0;o<e.columns.length;o++){const a=e.columns[o],n=t.columns[o]||a;n.galleryGroups||(n.galleryGroups=[]);const l=a.groups||a;for(let e=0;e<l.length;e++){const o=l[e],a=[];for(let e=0;e<o.items.length;e++){const r=o.items[e];t.galleryItems[r.idx]?t.galleryItems[r.idx].processScheme(r):(a[e]=new s.A(Object.assign({scheme:r,dto:r.dto},i)),t.galleryItems[r.idx]=a[e])}n.galleryGroups[e]?n.galleryGroups[e].processScheme(o):n.galleryGroups[e]=new r.A({scheme:o,dto:o.dto,items:a})}a.galleryGroups=n.galleryGroups}return e.galleryItems=t.galleryItems,o.A.isVerbose()&&console.timeEnd("convertToGalleryItems"),e}}},6774:(t,e,i)=>{"use strict";i.d(e,{V:()=>s});class s{constructor(t,e,i,s,r){this.idx=t,this.groups=[],this.height=0,this.width=e,this.left=i,this.cubedHeight=s,this.infoWidth=r||0}addGroup(t){this.addGroups([t])}addGroups(t){this.groups=this.groups.concat(t),t.forEach((t=>{t.columnIdx=this.idx,t.Column=this}))}get totalWidth(){return this.width+this.infoWidth}get scheme(){return{idx:this.idx,groups:this.groups.map((t=>t.scheme)),width:this.width,height:this.height}}}},7921:(t,e,i)=>{"use strict";i.d(e,{Y:()=>l});var s=i(6940),r=i(98687);const o={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"},a={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"},n={1:[[1]],2:[[1],[1,2],[2]],3:[[1],[1,2],[1,2,3],[2,3],[3]]};class l{constructor(t){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((t=>(t.Group=this,t))),t.styleParams){const{styleParams:e}=t;this.scrollDirection=e[s.A.layoutParams.structure.scrollDirection],this.cubeType=e[s.A.layoutParams.crop.method],this.cubeImages=e[s.A.layoutParams.crop.enable],this.layoutOrientation=e[s.A.layoutParams.structure.layoutOrientation],this.minItemSize=e[s.A.layoutParams.targetItemSize.minimum],this.collageDensity=e[s.A.layoutParams.groups.density],this.groupTypes=String(e[s.A.layoutParams.groups.allowedGroupTypes]),this.repeatingGroupTypes=String(e[s.A.layoutParams.groups.repeatingGroupTypes]),this.rotatingCropRatios=e[s.A.layoutParams.crop.ratios],this.chooseBestGroup=e[s.A.layoutParams.groups.groupByOrientation],this.externalInfoHeight=e.externalInfoHeight,this.externalInfoWidth=e.externalInfoWidth,this.imageMargin=e[s.A.layoutParams.structure.itemSpacing],this.groupSize=e[s.A.layoutParams.groups.groupSize]}this.visible=!0,this.rendered=!0,this.required=!0;let e=this.items.length;for(;!this.isWithinMinItemSize&&e>0;)this.placeItems(e),this.resize(),e--}resize(){"VERTICAL"===this.layoutOrientation?this.resizeToWidth(this.targetItemSize):this.resizeToHeight(this.targetItemSize),this.setLeft(this.left),this.setTop(this.top)}safeGetItem(t){if(this.items[t])return this.items[t];if(this.dummyItems[t])return this.dummyItems[t];{const e=new r.q(Object.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}}setCubedHeight(t){const e=this.cubeImages&&1===this.groupSize&&["FILL","FIT"].includes(this.cubeType)&&0===this.repeatingGroupTypes.length&&this.rotatingCropRatios.length<2;this.cubedHeight=e?t:null}round(){this.isLastGroup&&"VERTICAL"===this.scrollDirection?this.width=this.stripWidth-this.left:this.width=Math.round(this.width),this.height=Math.round(this.height);for(const t of this.items)t.width=Math.round(t.width),t.height=Math.round(t.height),t.group={width:this.width,height:this.height};const t=this.imageMargin;switch(this.type){default:case"1":this.safeGetItem(0).width=this.width-t,this.safeGetItem(0).height=this.height-t;break;case"2v":this.safeGetItem(0).width=this.safeGetItem(1).width=this.width-t,this.safeGetItem(0).height=this.height-this.safeGetItem(1).height-2*t;break;case"2h":this.safeGetItem(0).height=this.safeGetItem(1).height=this.height-t,this.safeGetItem(0).width=this.width-this.safeGetItem(1).width-2*t;break;case"3t":this.safeGetItem(0).width=this.width-t,this.safeGetItem(0).height=this.height-this.safeGetItem(1).height-2*t,this.safeGetItem(1).width=this.width-this.safeGetItem(2).width-2*t,this.safeGetItem(2).height=this.safeGetItem(1).height;break;case"3b":this.safeGetItem(0).width=this.width-this.safeGetItem(1).width-2*t,this.safeGetItem(1).height=this.safeGetItem(0).height,this.safeGetItem(2).height=this.height-this.safeGetItem(1).height-2*t,this.safeGetItem(2).width=this.width-t;break;case"3l":this.safeGetItem(1).height=this.height-this.safeGetItem(2).height-2*t,this.safeGetItem(2).width=this.safeGetItem(1).width,this.safeGetItem(0).width=this.width-this.safeGetItem(1).width-2*t,this.safeGetItem(0).height=this.height-t;break;case"3r":this.safeGetItem(0).height=this.height-this.safeGetItem(1).height-2*t,this.safeGetItem(1).width=this.safeGetItem(0).width,this.safeGetItem(2).width=this.width-this.safeGetItem(1).width-2*t,this.safeGetItem(2).height=this.height-t;break;case"3v":this.safeGetItem(0).width=this.width-t,this.safeGetItem(1).width=this.width-t,this.safeGetItem(2).width=this.width-t,this.safeGetItem(2).height=this.height-this.safeGetItem(0).height-this.safeGetItem(1).height-3*t;break;case"3h":this.safeGetItem(0).height=this.height-t,this.safeGetItem(1).height=this.height-t,this.safeGetItem(2).height=this.height-t,this.safeGetItem(2).width=this.width-this.safeGetItem(0).width-this.safeGetItem(1).width-3*t}}getGroupType(t){if(this.repeatingGroupTypes){const t=String(this.repeatingGroupTypes).split(",");return t[this.idx%t.length]}{const e="VERTICAL"===this.layoutOrientation;let i;if(this.chooseBestGroup){const t=this.items.map((t=>t.orientation.slice(0,1))).join("");i=(e?o:a)[t]}else 3!==this.items.length&&3!==t||(i=e?"1,2h,3l,3r,3h":"1,2v,3t,3b,3v");2!==this.items.length&&2!==t||(i=e?"1,2h":"1,2v"),1!==this.items.length&&1!==t||(i="1");let s=i.length>0?i.split(","):[];if(this.groupTypes){const t=this.groupTypes.split(",");t.length>1?(s=s.filter((e=>t.indexOf(e)>=0)),0===s.length&&(s=["1"])):s=t}if(this.collageDensity>=0){const t=this.collageDensity,e=parseInt(s[s.length-1]),i=n[e],r=i[Math.floor(t*(i.length-1))];s=s.filter((t=>r.indexOf(parseInt(t))>=0)),0===s.length&&(s=["1"])}return s[this.calculateRandomSeed(s.length)]||"1"}}calculateRandomSeed(t){let e;return e="VERTICAL"===this.layoutOrientation?this.items[0].seed%t:(this.inStripIdx+this.stripIdx)%t,Math.round(Math.min(Math.max(0,e),t-1))}placeItems(t){this.type=this.getGroupType(t);let e,i=[],s=0,r=0;
1switch(this.type){default:case"1":e=this.safeGetItem(0),e.pinToCorner("top-left"),i.push(e),s=e.width,r=e.height;break;case"2v":e=this.safeGetItem(0),e.pinToCorner("top-left"),i.push(e),s=e.width,r=e.height,e=this.safeGetItem(1),e.pinToCorner("bottom-left"),e.resize(s/e.width),r+=e.height,i.push(e);break;case"2h":e=this.safeGetItem(0),e.pinToCorner("top-left"),e.innerOffset=[0,0],i.push(e),s=e.width,r=e.height,e=this.safeGetItem(1),e.pinToCorner("top-right"),e.innerOffset=[0,0],e.resize(r/e.height),s+=e.width,i.push(e);break;case"3b":e=this.safeGetItem(0),e.pinToCorner("top-left"),i.push(e),s=e.width,r=e.height,e=this.safeGetItem(1),e.pinToCorner("top-right"),e.resize(r/e.height),s+=e.width,i.push(e),e=this.safeGetItem(2),e.pinToCorner("bottom-left"),e.resize(s/e.width),r+=e.height,i.push(e);break;case"3t":e=this.safeGetItem(1),e.pinToCorner("bottom-left"),i.push(e),s=e.width,r=e.height,e=this.safeGetItem(2),e.pinToCorner("bottom-right"),e.resize(r/e.height),s+=e.width,i.push(e),e=this.safeGetItem(0),e.pinToCorner("top-left"),e.resize(s/e.width),r+=e.height,i=[e].concat(i);break;case"3r":e=this.safeGetItem(0),e.pinToCorner("top-left"),i.push(e),s=e.width,r=e.height,e=this.safeGetItem(1),e.pinToCorner("bottom-left"),e.resize(s/e.width),r+=e.height,i.push(e),e=this.safeGetItem(2),e.pinToCorner("top-right"),e.resize(r/e.height),s+=e.width,i.push(e);break;case"3l":e=this.safeGetItem(1),e.pinToCorner("top-right"),i.push(e),s=e.width,r=e.height,e=this.safeGetItem(2),e.pinToCorner("bottom-right"),e.resize(s/e.width),r+=e.height,i.push(e),e=this.safeGetItem(0),e.pinToCorner("top-left"),e.resize(r/e.height),s+=e.width,i=[e].concat(i);break;case"3v":e=this.safeGetItem(0),e.pinToCorner("top-left"),e.setPosition("relative"),i.push(e),s=e.width,r=e.height,e=this.safeGetItem(2),e.pinToCorner("bottom-left"),e.setPosition("relative"),e.resize(s/e.width),r+=e.height,i.push(e),e=this.safeGetItem(1),e.setPosition("relative"),e.resize(s/e.width),r+=e.height,e.pinToCorner("top",i[0]),i=[i[0],e,i[1]];break;case"3h":e=this.safeGetItem(0),e.pinToCorner("top-left"),e.setPosition("relative"),i.push(e),s=e.width,r=e.height,e=this.safeGetItem(2),e.pinToCorner("top-right"),e.setPosition("relative"),e.resize(r/e.height),s+=e.width,i.push(e),e=this.safeGetItem(1),e.setPosition("relative"),e.resize(r/e.height),s+=e.width,e.pinToCorner("left",i[0]),i=[i[0],e,i[1]]}this.width=s,this.height=r,this.items=i,this.placed=!0}resizeToHeight(t){this.height=t,this.width=this.getWidthByHeight(t),this.resizeItems()}resizeToWidth(t){this.width=t,this.height=this.getHeightByWidth(t),this.resizeItems()}resizeItems(){const t=["3b","3r"].indexOf(this.type)>=0?this.items.slice().reverse():this.items;t.forEach(((e,i)=>{e.resize(this.getItemDimensions(t,i)),e.group={top:this.top,left
1:this.left,width:this.width,height:this.height},e.groupOffset={bottom:this.top+this.height,right:this.left+this.width}}))}getItemDimensions(t,e){const 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":if(0===e){return{width:this.width-i}}return{height:this.height-t[0].height-2*i};case"3r":case"3l":if(0===e){return{height:this.height-i}}return{width:this.width-t[0].width-2*i}}}getHeightByWidth(t){let e=1,i=1;const s=this.imageMargin,r=this.items.map((t=>t.width/t.height));switch(this.type){default:case"1":e=1/r[0],i=1-e;break;case"2h":e=1/(r[0]+r[1]),i=1-2*e;break;case"2v":e=1/r[0]+1/r[1],i=2-e;break;case"3h":e=1/(r[0]+r[1]+r[2]),i=1-3*e;break;case"3v":e=1/r[0]+1/r[1]+1/r[2],i=3-e;break;case"3t":e=1/(r[2]+r[1])+1/r[0],i=2-2/(r[2]+r[1])+1/r[0];break;case"3b":e=1/(r[0]+r[1])+1/r[2],i=2-2/(r[0]+r[1])+1/r[2];break;case"3l":e=(r[1]+r[2])/(r[0]*r[1]+r[1]*r[2]+r[0]*r[2]),i=2-e*(2+r[0]);break;case"3r":e=(r[0]+r[1])/(r[0]*r[1]+r[1]*r[2]+r[0]*r[2]),i=2-e*(2+r[2])}return t*e+s*i}getWidthByHeight(t){let e=1,i=1;const s=this.imageMargin,r=this.items.map((t=>t.width/t.height));switch(this.type){default:case"1":e=r[0],i=1-e;break;case"2h":e=r[0]+r[1],i=2-e;break;case"2v":e=1/(1/r[0]+1/r[1]),i=1-2*e;break;case"3h":e=r[0]+r[1]+r[2],i=3-e;break;case"3v":e=1/(1/r[0]+1/r[1]+1/r[2]),i=1-3*e;break;case"3t":e=1/(1/(r[2]+r[1])+1/r[0]),i=(2/(r[2]+r[1])+1/r[0]-2)*e;break;case"3b":e=1/(1/(r[0]+r[1])+1/r[2]),i=(2/(r[0]+r[1])+1/r[2]-2)*e;break;case"3l":e=(r[0]*r[1]+r[1]*r[2]+r[0]*r[2])/(r[1]+r[2]),i=2+r[0]-2*e;break;case"3r":e=(r[0]*r[1]+r[1]*r[2]+r[0]*r[2])/(r[0]+r[1]),i=2+r[2]-2*e}return t*e+s*i}setTop(t){this.top=t||0;for(const e of this.items)e.groupOffset={top:t,bottom:t+this.height}}setLeft(t){this.left=t||0;for(const e of this.items)e.groupOffset={left:t,right:t+this.width}}get id(){return"g"+this.idx+"_"+(this.items[0]||{}).id}get ratio(){return this.width/this.height}get height(){return this.cubedHeight||this._height}set height(t){this._height=t}get totalHeight(){return this.height+this.infoHeight}get infoHeight(){return this.externalInfoHeight||0}get infoWidth(){return this.Column?this.Column.infoWidth:this.externalInfoWidth||0}get bottom(){return this.top+this.height}get right(){return this.left+this.width}set items(t){this._items=t}get items(){return this._items}get realItems(){return this._items.filter((t=>"dummy"!==t.type))}get isWithinMinItemSize(){return!(0===this.items.length||!this.placed)&&(1===this.items.length||this.items.reduce(((t,e)=>{const i=Math.min(e.width,e.height)>=this.minItemSize;return t&&i}),!0))}get scheme(){return{id:this.id,idx:this.idx,stripIdx:this.stripIdx,inStripIdx:this.inStripIdx,isLastGroup:this.isLastGroup,items:this.items.map((t=>
1t.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}}}},98687:(t,e,i)=>{"use strict";i.d(e,{q:()=>o});var s=i(6940),r=i(85479);class o{constructor(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){const{styleParams:e}=t;this.cubeType=e[s.A.layoutParams.crop.method],this.cubeImages=e[s.A.layoutParams.crop.enable],this._cropRatio=e[s.A.layoutParams.crop.ratios],this.rotatingCropRatios=e[s.A.layoutParams.crop.ratios].length>1&&e[s.A.layoutParams.crop.ratios],this.smartCrop=e[s.A.layoutParams.crop.enableSmartCrop],this.cropOnlyFill=e[s.A.layoutParams.crop.cropOnlyFill],this.imageMargin=e[s.A.layoutParams.structure.itemSpacing],this.gallerySpacing=e[s.A.layoutParams.structure.gallerySpacing],this.scatter=e[s.A.layoutParams.structure.scatter.randomScatter],this.rotatingScatter=e[s.A.layoutParams.structure.scatter.manualScatter],this.smartCrop=e[s.A.layoutParams.crop.enableSmartCrop],this.useMaxDimensions=!e[s.A.layoutParams.structure.enableStreching]&&"text"!==this.itemType,this.cubeFitPosition=e[s.A.layoutParams.crop.alignment]}this._groupOffset={top:0,left:0,right:0,bottom:0},this._group={},this.calcPinOffset=()=>0,this.resize(1)}fixMetadataVerticalVideoRatio(t){if(t.qualities&&t.qualities[0]){const{qualities:e}=t,{height:i,width:s}=e[e.length-1];t.height=i,t.width=s}}resize(t){let 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}}pinToCorner(t,e=!1){const i=t.indexOf("top")>=0,s=t.indexOf("left")>=0;this.style.top=i?0:"auto",this.style.bottom=i?"auto":0,this.style.left=s?0:"auto",this.style.right=s?"auto":0,this.pin=t,this.isPinnedTop=i,this.isPinnedLeft=s,this.pinAfter=e,this.pinAfterType=i?"top":s?"left":"",this.calcPinOffset=(t,e)=>{if(this.pinAfter){if(this.pin===e){const t=this.imageMargin/2;
1return"top"===e?this.pinAfter.height+2*t:"left"===e?this.pinAfter.width+2*t:0}return 0}return 0}}setPosition(t){this.style.position=t}getPosition(t){return parseInt(t,10)>=0?t:"auto"}calcScatter(t){const e=this.imageMargin/2,i=this.gallerySpacing,s=t.left>0?e:i,o=this.container.galleryWidth-t.right>2*e?e:i,a=t.top>0?e:i,n=this.container.galleryHeight-t.bottom>2*e?e:i;if(!(this.rotatingScatter.length>0)){if(this.scatter>0){const e=this.scatter/100*.4;let i=r.W.hashToRandomInt(this.seed+t.right+"x",-s,o);i*=this.scatter/100,i*=1-e,i+=(i>0?e*o:e*s)*Math.sign(i),i=Math.round(i);let l=r.W.hashToRandomInt(this.seed+t.right+"y",-a,n);return l*=this.scatter/100,l*=1-e,l+=(l>0?e*n:e*a)*Math.sign(l),l=Math.round(l),{x:i,y:l}}return{x:0,y:0}}try{const t=this.rotatingScatter.split(","),[e,i]=t[this.idx%t.length].split("/").map((t=>parseInt(t))).map((t=>t/100));return{x:e*(e>0?o:s),y:i*(i>0?n:a)}}catch(t){console.error("Cannot calculate rotating scatter",t)}}get top(){return this.getPosition(this.style.top)}get left(){return this.getPosition(this.style.left)}get right(){return this.getPosition(this.style.right)}get bottom(){return this.getPosition(this.style.bottom)}set group(t){Object.assign(this._group,t)}get group(){return this._group}set groupOffset(t){Object.assign(this._groupOffset,t)}get offset(){var t;const 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},{fixTop:i=0,fixLeft:s=0,fixRight:r=0,fixBottom:o=0}=this.dimensions;if(e.innerTop=i,e.innerLeft=s,e.innerRight=r,e.innerBottom=o,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){const{x:t,y:i}=this.calcScatter(e);e.left+=t,e.top+=i,e.right=e.left+this.width,e.bottom=e.top+this.height}return e}get id(){return this.dto.id||this.dto.photoId||this.dto.itemId}set id(t){this.dto.itemId=this.dto.photoId=this.dto.id=t}get hash(){return this.dto.hash||this.dto.mediaUrl||this.dto.id}get seed(){return this.dto.seed||r.W.hashToInt(this.hash)}get metadata(){return this.dto.metadata||this.dto.metaData||{}}get itemType(){return this.metadata.type||"image"}get maxWidth(){return this.dto.width||this.dto.w}set maxWidth(t){this.dto.width=t}get outerWidth(){return this.width+2*this.margins}get infoWidth(){return this.Group?this.Group.infoWidth:0}get orgWidth(){return this.style.orgWidth||this.dto.width||this.dto.w||1}get width(){let t;return t=this.cubeImages&&this.ratio>=this.cropRatio?this.style.cubedWidth||this.orgHeight*this.cropRatio:this.orgWidth,Math.max(t,1)}set width(t){this.style.cubedWidth=this.style.orgWidth=this.style.width=Math.max(1,t);const{fixLeft:e=0,fixRight:i=0}=this.dimensions;this.style.innerWidth=this.style.width-e-i}get outerHeight(){return this.height+2*this.margins}get orgHeight(){return this.style.orgHeight||this.dto.height||this.dto.h||1}get height(){let t;return t=this.cubeImages&&this.ratio<this.cropRatio?this.style.cubedHeight||this.orgWidth/this.cropRatio:this.orgHeight,Math.max(t,1)}set height(t){this.style.cubedHeight=this.style.orgHeight=this.style.height=Math.max(1,t);const{fixTop:e=0,fixBottom:i=0}=this.dimensions;this.style.innerHeight=this.style.height-i-e}get maxHeight(){return this.dto.height||this.dto.h}set maxHeight(t){this.dto.height}get infoHeight(){return this.Group?this.Group.infoHeight:0}get margins(){return this.imageMargin/2||0}set margins(t){this.imageMargin=t}get dimensions(){const t=this.cubeImages&&"FIT"===this.cubeType;let e=this.width,i=this.height;const s=(t,s)=>{t?(e=this.useMaxDimensions?Math.min(this.width,this.maxWidth):this.width,i=e/s):(i=this.useMaxDimensions?Math.min(this.height,this.maxHeight):this.height,e=i*s)},r=this.ratio>=this.cropRatio;t?s(r,this.ratio):this.useMaxDimensions&&(this.width>this.maxWidth||this.height>this.maxHeight)&&(this.cubeImages?s(!r,this.cropRatio):s(!r,this.ratio));let o={fixTop:(this.height-i)/2,fixLeft:(this.width-e)/2,fixRight:(this.width-e)/2,fixBottom:(this.height-i)/2};switch(this.cubeFitPosition){case"TOP":o.fixTop=0,o.fixBottom*=2;break;case"BOTTOM":o.fixTop*=2,o.fixBottom=0;break;case"LEFT":o.fixLeft=0,o.fixRight*=2;break;case"RIGHT":o.fixLeft*=2,o.fixRight=0}return o}get cropRatio(){let t;if(this.rotatingCropRatio)t=this.rotatingCropRatio;else if(this.rotatingCropRatios&&this.rotatingCropRatios.length>1){const e=this.rotatingCropRatios;t=this.rotatingCropRatio=e[this.idx%e.length]}if(t||"function"!=typeof this._cropRatio||(t=this._cropRatio()),!t&&this.cropOnlyFill&&"FIT"===this.cubeType&&(t=this.ratio),t||(t=this._cropRatio&&this._cropRatio[0]||this.ratio),null!==this.dynamicCropRatios&&"string"==typeof t){if(!this.dynamicCropRatios){const e=/^\d*\.?\d*(%|px)\/\d*\.?\d*(%|px)$/.exec(t);this.dynamicCropRatios=e?t.split("/").map(((t,e)=>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){const e=this.dynamicCropRatios.map((t=>{if("%"===t.type){const e=this.container[t.dim]+("galleryHeight"===t.dim?this.imageMargin/2:0);return t.val*e-this.imageMargin}return t.val}));t=e[0]/e[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 cropRatio(t){"number"==typeof this._cropRatio&&(this._cropRatio=t,this.style.cubedHeight=this.style.cubedWidth=0)}get orientation(){return this.ratio<.999?"portrait":"landscape"}get isPortrait(){return"portrait"===this.orientation}get isLandscape(){return"landscape"===this.orientation}get ratio(){return this.orgRatio||(this.orgRatio=this.orgWidth/this.orgHeight),this.orgRatio}set ratio(t){this.orgRatio=t}get roundedStyle(){return Object.assign(Object.assign({},this.style),{width:Math.round(this.style.width),height:Math.round(this.style.height)})}get scheme(){return{id:this.id,idx:this.idx,inGroupIdx:this.inGroupIdx,dto:this.dto,type:this.t
1ype,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}}}},51433:(t,e,i)=>{"use strict";i.d(e,{A:()=>u});var s=i(85479),r=i(98687),o=i(7921),a=i(65732),n=i(6774),l=i(5584),h=i(6940);class u{constructor(t){this.ready=!1,this.pointer=0,this.layoutItems=[],this.findNeighborItem=this.findNeighborItem.bind(this),this.updateParams(t),!1!==this.createLayoutOnInit&&this.createLayout(t)}updateParams(t){this.srcItems=t.items,this.styleParams=s.W.addDefaultStyleParams(t.styleParams),this.container=s.W.convertContainer(t.container,this.styleParams);const e=t.options||{};this.useExistingLayout=!!e.useExistingLayout,this.createLayoutOnInit=e.createLayoutOnInit,this.showAllItems=!!e.showAllItems||!!t.showAllItems,this.useLayoutStore=!!e.useLayoutStore}verifyGalleryState(){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")}calcNumberOfColumns(t,e){let i=1;if("VERTICAL"===this.styleParams[h.A.layoutParams.structure.layoutOrientation])if(this.styleParams.fixedColumns>0)i=this.styleParams.fixedColumns;else{const s=t/e,r=[Math.floor,Math.ceil],o=r.map((t=>t(s))).map((e=>Math.round(t/e))).map((t=>Math.abs(e-t)));i=(0,r[o.indexOf(Math.min(...o))])(s)||1}else i=1;return i}findShortestColumn(t,e){let i=t[0];if("LEFT_TO_RIGHT"===this.styleParams[h.A.layoutParams.structure.groupsOrder])i=t[e%t.length];else{let e=-1;for(const s of t){const t=s.height;(t<e||e<0)&&(e=t,i=s)}}return i}saveExistingLayout(){this.useLayoutStore&&(l.A.layout={pointer:this.pointer,layoutItems:this.layoutItems,groups:this.groups,strips:this.strips,groupIdx:this.groupIdx,groupItems:this.groupItems,group:this.group,strip:this.strip,targetItemSize:this.targetItemSize,galleryHeight:this.galleryHeight,columns:this.columns})}
1prepareLayoutParams(){if(this.useExistingLayout&&this.pointer>0){if(this.useLayoutStore)Object.assign(this,l.A.layout);else if("VERTICAL"===this.styleParams[h.A.layoutParams.structure.layoutOrientation]){this.groups.slice(-3).forEach((t=>{const e=this.columns[t.columnIdx];e&&(e.height-=t.totalHeight,e.groups.splice(-1,1)),this.groups.splice(-1,1),t.realItems.forEach((()=>{this.layoutItems.splice(-1,1),this.pointer--})),this.groupIdx--}))}else{if("HORIZONTAL"===this.scrollDirection){this.groups.slice(-1).forEach((t=>{const e=this.columns[0];e&&e.groups.splice(-1,1);const i=this.strips[0];i&&(i.setWidth(i.width-t.width),i.ratio=i.width/i.height,i.groups.splice(-1,1),this.strip=i),this.strips=[],this.groups.splice(-1,1),t.realItems.forEach((()=>{this.layoutItems.splice(-1,1),this.pointer--})),this.groupIdx--})),this.galleryHeight=0}else{const t=this.strips.slice(-2);t&&(t.forEach((t=>{if(t){this.strips.splice(-1,1);t.groups.forEach((t=>{this.groups.splice(-1,1),t.items.forEach((()=>{this.layoutItems.splice(-1,1),this.pointer--})),this.groupIdx--}))}})),this.galleryHeight=this.strips.reduce(((t,e)=>t+e.height),0),this.strip=new a.j({idx:this.strips.length+1,container:this.container,groupsPerStrip:this.styleParams[h.A.layoutParams.groups.numberOfGroupsPerRow],scrollDirection:this.styleParams[h.A.layoutParams.structure.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{let t;t="function"==typeof this.styleParams.targetItemSize?this.styleParams.targetItemSize():this.styleParams.targetItemSize,this.targetItemSize=Math.floor(t)+Math.ceil(2*(this.styleParams[h.A.layoutParams.structure.itemSpacing]/2-this.styleParams[h.A.layoutParams.structure.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 a.j({idx:1,container:this.container,groupsPerStrip:this.styleParams[h.A.layoutParams.groups.numberOfGroupsPerRow],scrollDirection:this.styleParams[h.A.layoutParams.structure.scrollDirection],targetItemSize:this.targetItemSize}),this.galleryHeight=0,this.numOfCols=this.calcNumberOfColumns(this.galleryWidth,this.targetItemSize),this.targetItemSize="VERTICAL"===this.styleParams[h.A.layoutParams.structure.layoutOrientation]?Math.floor(this.galleryWidth/this.numOfCols):this.targetItemSize;const{externalInfoWidth:t}=this.styleParams,e=this.styleParams[h.A.layoutParams.structure.columnRatios],i=this.styleParams[h.A.layoutParams.structure.itemSpacing],s=this.styleParams[h.A.layoutParams.crop.ratios];let r=!1;if(e&&e.length>0){for(r=e.map(Number);r.length<this.numOfCols;)r.push(...r);r=r.slice(0,this.numOfCols);const t=this.galleryWidth/r.reduce(((t,e)=>t+e),0);r=r.map((e=>Math.round(e*=t)))}let o,l=0,u=this.galleryWidth;this.columns=Array(this.numOfCols).fill(0).map(((e,a)=>{let h=r?r[a]:Math.round(u/(this.numOfCols-a));const c=l;l+=h,u-=h;const m=Math.round(t>1?t:t*h)||0;return h-=m,o=o||(this.targetItemSize-m-i)/s[0]+i,new n.V(a,h,c,o,m)})),this.maxLoops=10*this.srcItems.length}}createLayout(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 r.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<this.maxGroupSize&&this.srcItems[this.pointer+1])this.pointer++;else{if(this.group=new o.Y({idx:this.groupIdx,stripIdx:this.strip.idx,inStripIdx:this.strip.groups.length+1,top:this.galleryHeight,items:this.groupItems,isLastItems:this.isLastImages,targetItemSize:this.targetItemSize,showAllItems:this.showAllItems,container:this.container,styleParams:this.styleParams}),this.groups[this.groupIdx]=this.group,this.pointer+=this.group.realItems.length-this.groupItems.length,this.groupIdx++,this.groupItems=[],"HORIZONTAL"===this.styleParams[h.A.layoutParams.structure.layoutOrientation]){if(this.strip.isFull(this.group,this.isLastImage)){this.strip.resizeToHeight(this.galleryWidth/this.strip.ratio),this.strip.setWi
1dth(this.galleryWidth),this.galleryHeight+=this.strip.height,this.columns[0].addGroups(this.strip.groups),this.strips.push(this.strip),this.strip=new a.j({idx:this.strip.idx+1,container:this.container,groupsPerStrip:this.styleParams[h.A.layoutParams.groups.numberOfGroupsPerRow],scrollDirection:this.styleParams[h.A.layoutParams.structure.scrollDirection],targetItemSize:this.targetItemSize}),this.pointer-=this.group.realItems.length-1,this.groupIdx--;continue}this.group.setTop(this.galleryHeight),this.strip.ratio+=this.group.ratio,this.strip.height=this.galleryWidth/this.strip.ratio,this.strip.setWidth(this.galleryWidth),this.strip.addGroup(this.group),this.isLastImage&&this.strip.hasGroups&&("HORIZONTAL"===this.styleParams[h.A.layoutParams.structure.scrollDirection]?this.strip.height=this.container.galleryHeight+(this.styleParams[h.A.layoutParams.structure.itemSpacing]/2-this.styleParams[h.A.layoutParams.structure.gallerySpacing]):this.strip.canRemainIncomplete()&&(this.strip.height=this.targetItemSize,this.strip.markAsIncomplete()),this.strip.resizeToHeight(this.strip.height),this.galleryHeight+=this.strip.height,this.columns[0].addGroups(this.strip.groups),this.strips.push(this.strip))}else{const t=this.findShortestColumn(this.columns,this.groups.length-1);this.group.setCubedHeight(t.cubedHeight),this.group.resizeToWidth(t.width),this.group.round(),this.group.setTop(t.height),this.group.setLeft(t.left),t.addGroup(this.group),t.height+=this.group.totalHeight,this.galleryHeight<t.height&&(this.galleryHeight=t.height)}this.firstGroup||(this.firstGroup=this.group),this.pointer++}}if(this.styleParams.forceFullHeight){const t=this.container.galleryHeight/this.galleryHeight;this.items.map((e=>(e.cubeImages=!0,e.cropRatio=e.ratio=e.width/(e.height*t),e.height*=t,e))),this.groups.map((e=>(e.height*=t,e.setTop(e.top*t),e.resizeItems(),e)))}return this.lastGroup=this.group,this.colWidth=Math.floor(this.galleryWidth/this.numOfCols),this.height=this.galleryHeight-2*(this.styleParams[h.A.layoutParams.structure.itemSpacing]/2-this.styleParams[h.A.layoutParams.structure.gallerySpacing]),this.width=this.lastGroup.left+this.lastGroup.width,this.ready=!0,this.scheme}lastVisibleItemIdxInHeight(t){for(let e=this.items.length-1;e>=0;e--){if(this.items[e].offset.top<t)return e}return this.items.length-1}lastVisibleItemIdx(){return this.lastVisibleItemIdxInHeight(this.container.galleryHeight-100)}findNeighborItem(t,e){const i=this.layoutItems[t];let s;const r=(t,e,i)=>{let s,r,o,a=null,n={};return this.layoutItems.forEach((l=>{s=l.offset.top+l.height/2,r=l.offset.left+l.width/2,o=Math.sqrt(Math.pow(s-e,2)+Math.pow(r-t,2)),(null===a||o>0&&o<a)&&i(t,e,r,s)&&(a=o,n=l)})),n};switch(e){case"up":s=r(i.offset.left+i.width/2,i.offset.top,((t,e,i,s)=>s<e));break;case"left":s=r(i.offset.left,i.offset.top+i.height/2,((t,e,i)=>i<t));break;case"down":s=r(i.offset.left+i.width/2,i.offset.bottom,((t,e,i,s)=>s>e));break;default:s=r(i.offset.right,i.offset.top+i.height/2,((t,e,i)=>i>t))}return s.idx>=0?s.idx:(console.warn("Could not find offset for itemIdx",t,e),t)}getMaxGroupSize(){let t=1;try{const e="string"==typeof this.styleParams[h.A.layoutParams.groups.allowedGroupTypes]&&this.styleParams[h.A.layoutParams.groups.allowedGroupTypes].length>0?this.styleParams[h.A.layoutParams.groups.allowedGroupTypes].split(","):this.styleParams[h.A.layoutParams.groups.allowedGroupTypes];t=e.length>0?e.reduce(((t,e)=>Math.max(t,parseInt(e))),1):Number(e),t=Math.min(t,this.styleParams[h.A.layoutParams.groups.groupSize])}catch(e){console.error("couldn't calculate max group size - returing 3 (?)",e),t=3}return t}get isLastImage(){return!this.srcItems[this.pointer+1]}get isLastImages(){return!this.srcItems[this.pointer+1]}get imagesLeft(){return this.srcItems.length-this.pointer-1}get items(){return this.layoutItems}get scheme(){return{items:this.items.map((t=>t.scheme)),groups:this.groups.map((t=>t.scheme)),strips:this.strips.map((t=>t.scheme)),columns:this.columns.map((t=>t.scheme)),height:this.height,width:this.width}}}},5584:(t,e,i)=>{"use strict";i.d(e,{A:()=>s});const s=new class{set layout(t){this._layout=Object.assign({},t)}get layout(){return this._layout}}},65732:(t,e,i)=>{"use strict";i.d(e,{j:()=>s});class s{constructor(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}addGroup(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}markAsIncomplete(){this.isFullWidth=!1,this.lastGroup.isLastGroup=!1}canRemainIncomplete(){return!(this.groupsPerStrip>0)&&1.5*this.targetItemSize<this.height}setWidth(t){this.width=t,this.hasGroups&&(this.lastGroup.stripWidth=t)}resizeToHeight(t){this.height=t;let e=0,i=0;for(const s of this.groups)s.setLeft(e),s.width+=i,s.resizeToHeight(t),i=s.width,s.roun
1d(),i-=s.width,e+=s.width}isFull(t,e){if(!this.hasGroups)return!1;const{groupsPerStrip:i,scrollDirection:s,targetItemSize:r}=this;if(i>0)return this.groups.length>=i;const{galleryWidth:o}=this.container;let a;if("HORIZONTAL"===s)a=!1;else{const i=o/(this.ratio+t.ratio)-r,s=o/this.ratio-r;a=!isNaN(i)&&!isNaN(s)&&(s<0||i<0&&Math.abs(s)<Math.abs(i)),a&&e&&(a=Number(Math.abs(s))<Math.abs(i))}return a}get hasGroups(){return this.groups.length>0}get lastGroup(){return this.groups[this.groups.length-1]}get scheme(){return{idx:this.idx,groups:this.groups.map((t=>t.scheme)),width:this.width,height:this.height,ratio:this.ratio,isFullWidth:this.isFullWidth}}}},85479:(t,e,i)=>{"use strict";i.d(e,{W:()=>r});var s=i(6940);const r=new class{constructor(){this._hash2int={}}stripSlashes(t){let e="";return"string"==typeof t&&(e=t.replace(/\\\//g,"/").replace(/\\'/g,"'").replace(/\\"/g,'"').replace(/\\0/g,"\0").replace(/\\\\/g,"\\")),e}parseStringObject(t){if("string"!=typeof t)return t;const 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}hashToInt(t,e,i){let s=0;if(void 0===t||0===t.length)return s;if(!this._hash2int[t]){for(let e=0;e<t.length;e++)s+=t.charCodeAt(e);this._hash2int[t]=s}return void 0===e||void 0===i?this._hash2int[t]:this._hash2int[t]%(i-e+1)+e}hashToRandomInt(t,e=0,i=1e5){return void 0===t||0===t.length?0:(e=Math.round(e),i=Math.round(i),t+=t.length+e+i,this._hash2int[t]||(this._hash2int[t]=Math.round(Math.random()*(i-e)+e)),this._hash2int[t])}addDefaultStyleParams(t){const e={[s.A.layoutParams.structure.gallerySpacing]:0,[s.A.layoutParams.groups.repeatingGroupTypes]:[],[s.A.layoutParams.crop.enable]:!1,[s.A.layoutParams.crop.method]:"FILL",[s.A.layoutParams.crop.ratios]:[1],[s.A.layoutParams.crop.enableSmartCrop]:!1,[s.A.layoutParams.structure.itemSpacing]:10,[s.A.layoutParams.structure.scatter.randomScatter]:0,[s.A.layoutParams.structure.scatter.manualScatter]:"",[s.A.layoutParams.groups.groupByOrientation]:!0,[s.A.layoutParams.groups.groupSize]:3,[s.A.layoutParams.groups.allowedGroupTypes]:["1","2h","2v","3h","3v","3t","3b","3l","3r"],[s.A.layoutParams.structure.layoutOrientation]:"VERTICAL",[s.A.layoutParams.targetItemSize.minimum]:120,[s.A.layoutParams.structure.scrollDirection]:"VERTICAL",targetItemSize:500,[s.A.layoutParams.groups.density]:50,fixedColumns:0,[s.A.layoutParams.structure.columnRatios]:[]};return function(t){const i=Object.assign({},e,t);
1return Object.keys(i).forEach((t=>{void 0===i[t]&&(i[t]=e[t])})),i}(t)}convertContainer(t,e){const i=Object.assign({bounds:{}},t);return t.width>=0&&!(t.galleryWidth>=0)&&(i.galleryWidth=t.width+2*((e[s.A.layoutParams.structure.itemSpacing]/2||0)-(e[s.A.layoutParams.structure.gallerySpacing]||0)),delete i.width),t.height>=0&&!(t.galleryHeight>=0)&&(i.galleryHeight=t.height+((e[s.A.layoutParams.structure.itemSpacing]/2||0)-(e[s.A.layoutParams.structure.gallerySpacing]||0)),delete i.height),e.externalInfoHeight>=0&&"HORIZONTAL"===e[s.A.layoutParams.structure.scrollDirection]&&(i.galleryHeight-=e.externalInfoHeight),i}}}}]); 2//# sourceMappingURL=8684.chunk.min.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.