"use strict";(("undefined"!=typeof self?self:this).webpackJsonp__wix_communities_blog_ooi=("undefined"!=typeof self?self:this).webpackJsonp__wix_communities_blog_ooi||[]).push([[1215],{23524:(e,t,i)=>{i.d(t,{A:()=>m});var r={};i.r(r),i.d(r,{debounce:()=>o,get:()=>a,isEqual:()=>l,isFunction:()=>c,isNumber:()=>h,pick:()=>s,throttle:()=>n});const s=(e,t)=>{const i={};return Object.entries(e||{}).forEach((([e,r])=>{t.indexOf(e)>=0&&(i[e]=r)})),i},n=(e,t)=>{let i=!1,r=!1;return(...s)=>{i?r=!0:(r=!1,e.apply(void 0,s),i=!0,setTimeout((()=>{r&&e.apply(void 0,s),i=!1}),t))}},o=(e,t)=>{let i;return(...r)=>{clearTimeout(i),i=setTimeout((()=>{e.apply(void 0,r)}),t)}},a=(e,t,i)=>{const r=String.prototype.split.call(t,/[,[\].]+?/).filter(Boolean).reduce(((e,t)=>null!=e?e[t]:e),e);return void 0===r||r===e?i:r},c=e=>"function"==typeof e,l=(e,t)=>{try{return JSON.stringify(e)===JSON.stringify(t)}catch(e){return!1}},h=e=>!isNaN(parseFloat(e))&&isFinite(e);var u=i(96852),d=i(90761),p=i(41486),g=i(80103);const m=new class{constructor(){this._cache={},this._hash2int={},this._params={},Object.assign(this,r)}shouldUseCache(){return!(0,d.Q)()&&!(0,d.IL)()&&!this.isSSR()}isUndefined(e){return void 0===e}uniqueBy(e,t){return e.filter(((e,i,r)=>r.map((e=>e[t])).indexOf(e[t])===i))}inRange(e,t,i=t){if(0===t)return-1;for(;e<0;)e+=t;for(;e>i;)e-=t;return e}sliceArrayWithRange(e,t,i){return Array(i-t).fill(0).map(((i,r)=>{const s=t+r;return e[this.inRange(s,e.length,e.length-1)]}))}sliceArrayIfAvailable(e,t,i){let r=Math.max(t,0),s=Math.min(i,e.length);return r>t&&(s=Math.min(s+(r-t),e.length)),s{r=t.split("="),r[0]===e&&(i=decodeURIComponent(r[1]))})),!i){const t=decodeURIComponent(s.pathname).split("?")[1];if(!t)return"";t.split("&").forEach((t=>{r=t.split("="),r[0]===e&&(i=decodeURIComponent(r[1]))}))}return this._params[e]=i,i}catch(e){return!1}}stripSlashes(e){let t="";return"string"==typeof e&&(t=e.replace(/\\\//g,"/").replace(/\\'/g,"'").replace(/\\"/g,'"').replace(/\\0/g,"\0").replace(/\\\\/g,"\\")),t}parseStringObject(e){if("string"!=typeof e)return e;const t=this.stripSlashes(e);if("string"==typeof e&&/^[\],:{}\s]*$/.test(t.replace(/\\["\\/bfnrtu]/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))try{return JSON.parse(t)}catch(e){}return t}hashCode(e){let t,i,r=0;if(0===e.length)return r;for(t=0;t{const e=this.parseGetParam("deviceType")||u.A.deviceType,t="true"===this.parseGetParam("showMobileView"),i=(0,d.N)();return!!t||(e?String(e).toLowerCase().indexOf("mobile")>=0:i||void 0)}))}isUserAgentMobile(){try{const e=()=>{let e=!1;var t;return t=navigator.userAgent||navigator.vendor||u.A.opera,(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|pixel|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(t.substr(0,4)))&&(e=!0),e};return this.getOrPutFromCache("isUserAgentMobile",e)}catch(e){return!1}}isMobile(){return this.getOrPutFromCache("isMobile",(()=>{const e=this.isMobileByProps(),t=this.isUserAgentMobile();return this.isUndefined(e)?t:e}))}isTouch(){return this.getOrPutFromCache("isTouch",(()=>{var e;const t=(0,d.Ig)(),i=(null===(e=u.A.navigator)||void 0===e?void 0:e.maxTouchPoints)>0||"ontouchstart"in u.A.document.documentElement;return this.isUndefined(t)?i:t}))}isTest(){try{return u.A.isTest}catch(e){return!1}}isLocal(){try{const e=u.A.location.hostname;return"local.wix.com"===e||(e.indexOf("localhost")>=0||"true"===this.parseGetParam("debug"))}catch(e){return!1}}isDev(){return this.getOrPutFromCache("isDev",(()=>this.shouldDebug("ph_local")||this.isOOI()&&!1||"true"===(this.safeLocalStorage()||{}).forceDevMode))}isVerbose(){return!this.isTest()&&"true"===(this.safeLocalStorage()||{}).forceDevMode}isStoreGallery(){return this.getOrPutFromCache("isStoreGallery",(()=>{try{return u.A.location.search.toLowerCase().indexOf("isstore")>-1}catch(e){return this.isDev()&&console.error("cant find window",e),!1}}))}isSSR(){return void 0!==i.g&&void 0===(null===i.g||void 0===i.g?void 0:i.g.window)}isOOI(){return this.isSSR()||"undefined"!=typeof top&&"undefined"!=typeof self&&(top===self||self.location.origin.includes("editor.wix.com"))}generateUUID(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{const t=Math.floor(16*Math.random())||0;return"x"===e?t.toString(16):e}))}isExternalUrl(e){return/(^https?)|(^data)|(^blob)/.test(e)}isiOS(){return this.getOrPutFromCache("isiOS",(()=>{try{return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!u.A.MSStream}catch(e){return!1}}))}isiPhone(){return this.getOrPutFromCache("isiPhone",(()=>{try{return/iPhone/.test(navigator.userAgent)&&!u.A.MSStream}catch(e){return!1}}))}isLandscape(){return this.getOrPutFromCache("isLandscape",(()=>{if(!this.isMobile())return!1;try{if(this.isUndefined(u.A.orientation)){const e=u.A.matchMedia("(orientation: landscape)");return!(!e||!0!==e.matches)}return 90===u.A.orientation||-90===u.A.orientation}catch(e){return!1}}))}safeLocalStorage(){try{return localStorage||u.A}catch(e){return u.A}}shouldDebug(e){try{return!!this.safeLocalStorage()[e]||(u.A.debugApp||"").indexOf(e)>=0||(this.parseGetParam("debugApp")||"").indexOf(e)>=0}catch(e){return!1}}deviceHasMemoryIssues(){return this.isiOS()}getTabIndex(e){const t=["currentGalleryItem","loadMoreButton","slideshowNext","slideshowPrev","currentThumbnail","slideshowLove","slideshowShare","cartIcon","cartClose","cartFrame","fullscreenClose","fullscreenNext","fullscreenPrev","fullscreenInfo","fullscreenLink","fullscreenProvider","fullscreenCartButton","fullscreenCheckout","fullscreenExpand","fullscreenVideoPlay","fullscreenVideoBar","fullscreenVideoMute","fullscreenVideoVolume","fullscreenCartIcon","fullscreenDownload","fullscreenLove","fullscreenShare"].indexOf(e)+1;return t>=0&&this.isOOI()?0:t||-1}setStateAndLog(e,t,i,r){if(this.isVerbose()){console.log(`State Change Called (${t})`,i);const s=Object.assign({},e.state);e.setState(i,(()=>{const i=Object.assign({},e.state),n=this.printableObjectsDiff(s,i,"state");Object.keys(n).length>0&&console.log(`State Change Completed (${t})`,n),this.isFunction(r)&&r.bind(e)()}))}else e.setState(i,(()=>{this.isFunction(r)&&r.bind(e)()}))}printableObjectsDiff(e,t,i=""){const r=e=>(""===e?e="''":this.isUndefined(e)&&(e="undefined"),String(e)),s=(e={},t={},i,n=1)=>{if(n>3)return{};return Object.entries(e).reduce(((e,[o,a])=>(this.isEqual(a,t[o])||(Array.isArray(t[o])?(a.length!==t[o].length&&(e[o+".length"]="["+a.length+"] => ["+t[o].length+"]"),e=Object.assign(e,s(a,t[o],(i?i+".":"")+o,n+1))):"object"==typeof t[o]?e=Object.assign(e,s(a,t[o],(i?i+".":"")+o,n+1)):e[(i?i+".":"")+o]=r(a)+" => "+r(t[o])),e)),{})};return s(e,t,i,1)}getScreenWidth(){if((0,d.IL)()&&this.isMobile())return 320;if(this.isTest())return 1920;try{return this.isLandscape()?Math.max(u.A.screen.width,u.A.screen.height):u.A.screen.width}catch(e){return 1920}}getScreenHeight(){if(this.isTest())return 1200;try{return this.isLandscape()?Math.min(u.A.screen.width,u.A.screen.height):u.A.screen.height}catch(e){return 1200}}getWindowWidth(){try{return u.A.innerWidth||980}catch(e){return 980}}getMobileEnabledClick(e){return this.isMobile()?{onTouchEnd:e}:{onClick:e}}getTopUrlParam(e){if(this.isUndefined(this._cache.params)&&(this._cache.params={}),this.isUndefined(this._cache.params[e]))try{this._cache.params[e]=top.location.search.replace("?","").split("&").map((t=>{const i=t.split("=");return i[0]===e&&i[1]||""})).join("")}catch(t){this._cache.params[e]=!1}return this._cache.params[e]}scrollTo(e,t,i,r,s){this.isMobile()&&(i=0);const n=r?e.scrollLeft:e.scrollTop,o=t-n;let a=0;const c=()=>{a+=20;const t=((e,t,i,r)=>0===r?i+t:(e/=r/2)<1?i/2*e*e+t:-i/2*(--e*(e-2)-1)+t)(a,n,o,i);a"object"!=typeof t&&-1===String(e).indexOf("Expand")&&-1===String(e).indexOf("Color"))).map((([e,t])=>`${e}=${encodeURI(t)}`)).join("&");console.log("Gallery Playground link:",`https://pro-gallery.surge.sh?${t}`)}}catch(e){console.error(e)}}isSingleItemHorizontalDisplay(e){return e.scrollDirection===p.A[g.A.layoutParams.structure.scrollDirection].HORIZONTAL&&1===e[g.A.layoutParams.groups.groupSize]&&e[g.A.layoutParams.crop.enable]&&1===e[g.A.layoutParams.crop.ratios].length&&"100%/100%"===e[g.A.layoutParams.crop.ratios][0]}getAriaAttributes({proGalleryRole:e,proGalleryRegionLabel:t}){const i="application"===e?"gallery application":"region",r={role:e||"region","aria-label":t};return(e||"region")!==i&&(r["aria-roledescription"]=i),r}focusGalleryElement(e){e.focus()}isMeaningfulString(e){return"string"==typeof e&&!!e.trim().length}isHeightSetByGallery(e){return e[g.A.layoutParams.structure.scrollDirection]===p.A[g.A.layoutParams.structure.scrollDirection].VERTICAL&&!e[g.A.behaviourParams.gallery.vertical.loadMore.enable]}}},90761:(e,t,i)=>{i.d(t,{CB:()=>n,IL:()=>c,Ig:()=>u,N:()=>h,PP:()=>o,Q:()=>a,Xf:()=>l});var r=i(49095),s=i(31199);const n=new class{constructor(){this.setViewMode=this.setViewMode.bind(this),this.isSiteMode=this.isSiteMode.bind(this),this.isEditMode=this.isEditMode.bind(this),this.isPreviewMode=this.isPreviewMode.bind(this),this.isSEOMode=this.isSEOMode.bind(this),this.setDeviceType=this.setDeviceType.bind(this),this.isDeviceTypeDesktop=this.isDeviceTypeDesktop.bind(this),this.isDeviceTypeMobile=this.isDeviceTypeMobile.bind(this),this.isDeviceTypeTablet=this.isDeviceTypeTablet.bind(this),this.isDeviceTypeTouch=this.isDeviceTypeTouch.bind(this),this._viewMode=r.A.SITE,this._deviceType=s.A.DESKTOP}setViewMode(e){this._viewMode=e}setDeviceType(e){this._deviceType=e}isDeviceTypeMobile(){return this._deviceType===s.A.MOBILE}isDeviceTypeTablet(){return this._deviceType===s.A.TABLET}isDeviceTypeDesktop(){return this._deviceType===s.A.DESKTOP}isDeviceTypeTouch(){return this.isDeviceTypeMobile()||this.isDeviceTypeTablet()}isSiteMode(){return this._viewMode===r.A.SITE}isEditMode(){return this._viewMode===r.A.EDIT}isPreviewMode(){return this._viewMode===r.A.PREVIEW}isSEOMode(){return this._viewMode===r.A.SEO}},o=n.isSiteMode,a=n.isEditMode,c=n.isPreviewMode,l=n.isSEOMode,h=n.isDeviceTypeMobile,u=(n.isDeviceTypeTablet,n.isDeviceTypeDesktop,n.isDeviceTypeTouch)},81215:(e,t,i)=>{if(i.d(t,{Xe:()=>u,g4:()=>d,tF:()=>l}),/^(3267|5647|6645|9953)$/.test(i.j))var r=i(90761);if(/^(3267|5647|6645|9953)$/.test(i.j))var s=i(23524);if(/^(3267|5647|6645|9953)$/.test(i.j))var n=i(96852);if(/^(3267|5647|6645|9953)$/.test(i.j))var o=i(80103);if(/^(3267|5647|6645|9953)$/.test(i.j))var a=i(41486);function c(){return((0,r.PP)()||(0,r.Xf)())&&!s.A.isMobile()&&n.A.document}function l({itemContainer:e,enableExperimentalFeatures:t,itemAnchor:i}){if(c()&&t){n.A.document.activeElement===i&&e.focus()}}function h(e,t){const i=n.A.document.activeElement;return String(i.className).includes(e)&&!!n.A.document.querySelector(`#pro-gallery-${t} #${String(i.id)}`)}function u({prevProps:e,currentProps:t,itemContainer:i}){try{if(c()&&n.A.document.activeElement.className){const r=h("gallery-item-container",t.galleryId),s=h("show-more",t.galleryId);(r||s)&&(t.thumbnailHighlightId!==e.thumbnailHighlightId&&t.thumbnailHighlightId===t.id||t.activeIndex!==e.activeIndex&&t.activeIndex===t.idx)&&i.focus()}}catch(e){console.error("Could not set focus to active element",e)}}function d(e){return e[o.A.behaviourParams.item.video.enablePlaceholder]&&(!s.A.isSingleItemHorizontalDisplay(e)||e[o.A.behaviourParams.item.video.playTrigger]!==a.A[o.A.behaviourParams.item.video.playTrigger].AUTO)}}}]); //# sourceMappingURL=1215.chunk.min.js.map