PageSourceSearch

https://www.autumnchasevancouver.com/javascripts/home-d587d8223b.min.js

js autumnchasevancouver.com collected 2026-10-04 05:46:20 UTC 97,975 bytes, 1 lines download raw bytes

1!function(){var t={799:function(){function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function n(t,e){return(n=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function o(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=a(t);if(e){var o=a(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return s(this,i)}}function s(e,i){return!i||"object"!==t(i)&&"function"!=typeof i?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(e):i}function a(t){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var r=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&n(t,e)}(c,ApiManager);var s,a,r,l=o(c);function c(){return e(this,c),l.apply(this,arguments)}return s=c,(a=[{key:"apiName",value:function(){return"fortawesomeapi"}},{key:"apiScript",value:function(){return"//use.fortawesome.com/"+this.apiKey()+".js"}},{key:"apiKey",value:function(){return"26805d78"}},{key:"hasOwnOnLoadCallback",value:function(){return!0}}])&&i(s.prototype,a),r&&i(s,r),c}();window.fortAwesomeLoaded=function(){G5.fortAwesomeApi.doneLoading()},G5.fortAwesomeApi=new r},48:function(t,e,i){var n,o,s,a,r;s=function(t){if("#text"==t.nodeName){for(var e=t.textContent.split(" "),i=0;i<e.length;i++){if(e[i].length>0){var n=document.createElement("span");n.className="js-detect-wrap",n.innerText=e[i],t.parentNode.insertBefore(n,t)}i<e.length-1&&t.parentNode.insertBefore(document.createTextNode(" "),t)}t.parentNode.removeChild(t)}else t.innerText&&(t.innerHTML=o(t.innerText,'<span class="js-detect-wrap">',"</span>"))},r={wrapWords:o=function(t,e,i,n){n=n||" ";for(var o=t.split(" "),s=0;s<o.length;s++)o[s]=e+o[s]+i;return o.join(n)},wrapWordsInElement:a=function t(e){if(e.firstChild){var i=[],n=e.firstChild;do{i.push(n)}while(n=n.nextSibling);for(var o=0;o<i.length;o++)t(i[o])}else s(e)},wrapWordsInChildElement:s,getLines:function(t){a(t);for(var e=t.getElementsByClassName("js-detect-wrap"),i=0,n=[],o=[],s=0,r=0;r<e.length;r++){var l=e[r].offsetTop+e[r].getBoundingClientRect().height;l==i?n.push(e[r]):(n.length>0&&(o[s++]=n),n=[e[r]]),i=l}return o.push(n),o}},void 0===(n=function(){return r}.call(e,i,e,t))||(t.exports=n)},61:function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var e=function(){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),this.map=t,this.setupMobileTouch()}var i,n,o;return i=e,(n=[{key:"isTouchEvent",value:function(t){return t.originalEvent&&"touches"in t.originalEvent}},{key:"isTwoFingerTouch",value:function(t){return t.originalEvent.touches.length>=2}},{key:"setupMobileTouch",value:function(){var t=this;this.map.on("dragstart",(function(e){t.isTouchEvent(e)&&!t.isTwoFingerTouch(e)&&t.map.dragPan.disable()})),this.map.on("touchstart",(function(e){t.isTouchEvent(e)&&t.isTwoFingerTouch(e)&&t.map.dragPan.enable()}))}}])&&t(i.prototype,n),o&&t(i,o),e}();window.MapboxEnhancements=e},554:function(){"use strict";function t(i){return!!("undefined"!=typeof window&&"undefined"!=typeof document&&Array.prototype&&Array.prototype.every&&Array.prototype.filter&&Array.prototype.forEach&&Array.prototype.indexOf&&Array.prototype.lastIndexOf&&Array.prototype.map&&Array.prototype.some&&Array.prototype.reduce&&Array.prototype.reduceRight&&Array.isArray&&Function.prototype&&Function.prototype.bind&&Object.keys&&Object.create&&Object.getPrototypeOf&&Object.getOwnPropertyNames&&Object.isSealed&&Object.isFrozen&&Object.isExtensible&&Object.getOwnPropertyDescriptor&&Object.defineProperty&&Object.defineProperties&&Object.seal&&Object.freeze&&Object.preventExtensions&&"JSON"in window&&"parse"in JSON&&"stringify"in JSON&&function(){if(!("Worker"in window&&"Blob"in window&&"URL"in window))return!1;var t,e,i=new Blob([""],{type:"text/javascript"}),n=URL.createObjectURL(i);try{e=new Worker(n),t=!0}catch(e){t=!1}e&&e.terminate();return URL.revokeObjectURL(n),t}()&&"Uint8ClampedArray"in window&&ArrayBuffer.isView&&function(i){void 0===e[i]&&(e[i]=function(e){var i=document.createElement("canvas"),n=Object.create(t.webGLContextAttributes);return n.failIfMajorPerformanceCaveat=e,i.probablySupportsContext?i.probablySupportsContext("webgl",n)||i.probablySupportsContext("experimental-webgl",n):i.supportsContext?i.supportsContext("webgl",n)||i.supportsContext("experimental-webgl",n):i.getContext("webgl",n)||i.getContext("experimental-webgl",n)}(i));return e[i]}(i&&i.failIfMajorPerformanceCaveat))}window.mapboxgl=window.mapboxgl||{},window.mapboxgl.supported=t;var e={};t.webGLContextAttributes={antialias:!1,alpha:!0,stencil:!0,depth:!0},window.isSupported=t},180:function(){function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function e(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var i=[],n=!0,o=!1,s=void 0;try{for(var a,r=t[Symbol.iterator]();!(n=(a=r.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(t){o=!0,s=t}finally{try{n||null==r.return||r.return()}finally{if(o)throw s}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(t,e)}
1(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function n(t,e,i,n,o,s,a){try{var r=t[s](a),l=r.value}catch(t){return void i(t)}r.done?e(l):Promise.resolve(l).then(n,o)}function o(t){return function(){var e=this,i=arguments;return new Promise((function(o,s){var a=t.apply(e,i);function r(t){n(a,o,s,r,l,"next",t)}function l(t){n(a,o,s,r,l,"throw",t)}r(void 0)}))}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function r(t,e){return(r=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function l(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=h(t);if(e){var o=h(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return c(this,i)}}function c(e,i){return!i||"object"!==t(i)&&"function"!=typeof i?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(e):i}function h(t){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var u=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&r(t,e)}(f,ApiManager);var i,n,c,h,u,d=l(f);function f(){return s(this,f),d.apply(this,arguments)}return i=f,(n=[{key:"apiName",value:function(){return"mapboxglapi"}},{key:"apiScript",value:function(){return"https://api.tiles.mapbox.com/mapbox-gl-js/v2.7.0/mapbox-gl.js"}},{key:"accessToken",get:function(){return"pk.eyJ1IjoiZzVsZXZpYnJvd24iLCJhIjoiVXBockRSOCJ9.6HLfrsqLqgQSrTHG0jPYkw"}},{key:"getLatLng",value:(u=o(regeneratorRuntime.mark((function t(i){var n,o,s,a,r,l,c;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=encodeURIComponent(i),t.next=3,fetch("https://api.mapbox.com/geocoding/v5/mapbox.places/".concat(n,".json?access_token=").concat(this.accessToken));case 3:return o=t.sent,t.next=6,o.json();case 6:return s=t.sent,a=e(s.features,1),r=e(a[0].center,2),l=r[0],c=r[1],t.abrupt("return",{latitude:c,longitude:l});case 9:case"end":return t.stop()}}),t,this)}))),function(t){return u.apply(this,arguments)})},{key:"getAddress",value:(h=o(regeneratorRuntime.mark((function t(i,n){var o,s,a,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fetch("https://api.mapbox.com/geocoding/v5/mapbox.places/".concat(n,",").concat(i,".json?access_token=").concat(this.accessToken));case 2:return o=t.sent,t.next=5,o.json();case 5:return s=t.sent,a=e(s.features,1),r=a[0].place_name,t.abrupt("return",r);case 8:case"end":return t.stop()}}),t,this)}))),function(t,e){return h.apply(this,arguments)})}])&&a(i.prototype,n),c&&a(i,c),f}();G5.mapBoxGlApi=new u},355:function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var e=function(){function e(t){var i=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),this.state={mapbox:null,panStart:{x:0,y:0},scale:1},this.state.mapbox=t,this.state.mapbox.getContainer().addEventListener("touchstart",(function(t){i.touchStart(t)}),!1),this.state.mapbox.getContainer().addEventListener("touchmove",(function(t,e){i.touchMove(t,e)}),!1),"ontouchstart"in document.documentElement&&this.state.mapbox.dragPan.disable()}var i,n,o;return i=e,(n=[{key:"touchStart",value:function(t){if(2===t.touches.length){t.stopImmediatePropagation(),t.preventDefault();for(var e=0,i=0,n=0,o=Array.from(t.touches);n<o.length;n++){var s=o[n];e+=s.screenX,i+=s.screenY}this.state.panStart.x=e/t.touches.length,this.state.panStart.y=i/t.touches.length}}},{key:"touchMove",value:function(t,e){if(2===t.touches.length){this.state.scale==t.scale&&(t.stopImmediatePropagation(),t.preventDefault()),this.state.scale=t.scale;for(var i=0,n=0,o=0,s=Array.from(t.touches);o<s.length;o++){var a=s[o];i+=a.screenX,n+=a.screenY}var r=i/t.touches.length-this.state.panStart.x,l=n/t.touches.length-this.state.panStart.y;this.state.panStart.x=i/t.touches.length,this.state.panStart.y=n/t.touches.length,this.state.mapbox.panBy([1*r/-1,1*l/-1],{animate:!1})}}}])&&t(i.prototype,n),o&&t(i,o),e}();window.twoFingerMapboxPan=e},569:function(){function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function e(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var i=function(){function i(t){var e=this;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),this.config=i.mergeSettings(t),this.selector="string"==typeof this.config.selector?document.querySelector(this.config.selector):this.config.selector,null===this.selector)throw new Error("Something wrong with your selector 😭");this.resolveSlidesNumber(),this.selectorWidth=this.selector.offsetWidth,this.innerElements=[].slice.call(this.selector.children),this.currentSlide=this.config.loop?this.config.startIndex%this.innerElements.length:Math.max(0,Math.min(this.config.startIndex,this.innerElements.length-this.perPage)),this.transformProperty=i.webkitOrNot(),["resizeHandler","touchstartHandler","touchendHandler","touchmoveHandler","mousedownHandler","mouseupHandler","mouseleaveHandler","mousemoveHandler","clickHandler"].forEach((function(t){e[t]=e[t].bind(e)})),this.init()}var n,o,s;return n=i,s=[{key:"mergeSettings",value:function(t){var e={selector:".siema",duration:200,easing:"ease-out",perPage:1,startIndex:0,draggable:!0,multipleDrag:!0,threshold:20,loop:!1,rtl:!1,onInit:function(){},onChange:function(){}},i=t;for(var n in i)e[n]=i[n];return e}},{key:"webkitOrNot",value:function(){return"string"==typeof document.documentElement.style.transform?"transform":"WebkitTransform"}}],(o=[{key:"attachEvents",value:function(){window.addEventListener("resize",this.resizeHandler),this.config.draggable&&(this.pointerDown=!1,this.drag={startX:0,endX:0,startY:0,letItGo:null,preventClick:!1},this.selector.addEventListener("touchstart",this.touchstartHandler),this.selector.addEventListener("touchend",this.touchendHandler),this.selector.addEventListener("touchmove",this.touchmoveHandler),this.selector.addEventListener("mousedown",this.mousedownHandler),this.selector.addEventListener("mouseup",this.mouseupHandler),this.selector.addEventListener("mouseleave",this.mouseleaveHandler),this.selector.addEventListener("mousemove",this.mousemoveHandler),this.selector.addEventListener("click",this.clickHandler))}},{key:"detachEvents",value:function(){window.removeEventListener("resize",this.resizeHandler),this.selector.removeEventListener("touchstart",this.touchstartHandler),this.selector.removeEventListener("touchend",this.touchendHandler),this.selector.removeEventListener("touchmove",this.touchmoveHandler),this.selector.removeEventListener("mousedown",this.mousedownHandler),this.selector.removeEventListener("mouseup",this.mouseupHandler),this.selector.removeEventListener("mouseleave",this.mouseleaveHandler),this.selector.removeEventListener("mousemove",this.mousemoveHandler),this.selector.removeEventListener("click",this.clickHandler)}},{key:"init",value:function(){this.attachEvents(),this.selector.style.overflow="hidden",this.selector.style.direction=this.config.rtl?"rtl":"ltr",this.buildSliderFrame(),this.config.onInit.call(this)}},{key:"buildSliderFrame",value:function(){var t=this.selectorWidth/this.perPage,e=this.config.loop?this.innerElements.length+2*this.perPage:this.innerElements.length;this.sliderFrame=document.createElement("div"),this.sliderFrame.style.width="".concat(t*e,"px"),this.enableTransition(),this.config.draggable&&(this.selector.style.cursor="-webkit-grab");var i=document.createDocumentFragment();if(this.config.loop)for(var n=this.innerElements.length-this.perPage;n<this.innerElements.length;n++){var o=this.buildSliderFrameItem(this.innerElements[n].cloneNode(!0));i.appendChild(o)}for(var s=0;s<this.innerElements.length;s++){var a=this.buildSliderFrameItem(this.innerElements[s]);i.appendChild(a)}if(this.config.loop)for(var r=0;r<this.perPage;r++){var l=this.buildSliderFrameItem(this.innerElements[r].cloneNode(!0));i.appendChild(l)}this.sliderFrame.appendChild(i),this.selector.innerHTML="",this.selector.appendChild(this.sliderFrame),this.slideToCurrent()}},{key:"buildSliderFrameItem",value:function(t){var e=document.createElement("div");return e.style.cssFloat=this.config.rtl?"right":"left",e.style.float=this.config.rtl?"right":"left",e.style.width="".concat(this.config.loop?100/(this.innerElements.length+2*this.perPage):100/this.innerElements.length,"%"),e.a
1ppendChild(t),e}},{key:"resolveSlidesNumber",value:function(){if("number"==typeof this.config.perPage)this.perPage=this.config.perPage;else if("object"===t(this.config.perPage))for(var e in this.perPage=1,this.config.perPage)window.innerWidth>=e&&(this.perPage=this.config.perPage[e])}},{key:"prev",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,e=arguments.length>1?arguments[1]:void 0;if(!(this.innerElements.length<=this.perPage)){var i=this.currentSlide;if(this.config.loop){var n=this.currentSlide-t<0;if(n){this.disableTransition();var o=this.currentSlide+this.innerElements.length,s=this.perPage,a=o+s,r=(this.config.rtl?1:-1)*a*(this.selectorWidth/this.perPage),l=this.config.draggable?this.drag.endX-this.drag.startX:0;this.sliderFrame.style[this.transformProperty]="translate3d(".concat(r+l,"px, 0, 0)"),this.currentSlide=o-t}else this.currentSlide=this.currentSlide-t}else this.currentSlide=Math.max(this.currentSlide-t,0);i!==this.currentSlide&&(this.slideToCurrent(this.config.loop),this.config.onChange.call(this),e&&e.call(this))}}},{key:"next",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,e=arguments.length>1?arguments[1]:void 0;if(!(this.innerElements.length<=this.perPage)){var i=this.currentSlide;if(this.config.loop){var n=this.currentSlide+t>this.innerElements.length-this.perPage;if(n){this.disableTransition();var o=this.currentSlide-this.innerElements.length,s=this.perPage,a=o+s,r=(this.config.rtl?1:-1)*a*(this.selectorWidth/this.perPage),l=this.config.draggable?this.drag.endX-this.drag.startX:0;this.sliderFrame.style[this.transformProperty]="translate3d(".concat(r+l,"px, 0, 0)"),this.currentSlide=o+t}else this.currentSlide=this.currentSlide+t}else this.currentSlide=Math.min(this.currentSlide+t,this.innerElements.length-this.perPage);i!==this.currentSlide&&(this.slideToCurrent(this.config.loop),this.config.onChange.call(this),e&&e.call(this))}}},{key:"disableTransition",value:function(){this.sliderFrame.style.webkitTransition="all 0ms ".concat(this.config.easing),this.sliderFrame.style.transition="all 0ms ".concat(this.config.easing)}},{key:"enableTransition",value:function(){this.sliderFrame.style.webkitTransition="all ".concat(this.config.duration,"ms ").concat(this.config.easing),this.sliderFrame.style.transition="all ".concat(this.config.duration,"ms ").concat(this.config.easing)}},{key:"goTo",value:function(t,e){if(!(this.innerElements.length<=this.perPage)){var i=this.currentSlide;this.currentSlide=this.config.loop?t%this.innerElements.length:Math.min(Math.max(t,0),this.innerElements.length-this.perPage),i!==this.currentSlide&&(this.slideToCurrent(),this.config.onChange.call(this),e&&e.call(this))}}},{key:"slideToCurrent",value:function(t){var e=this,i=this.config.loop?this.currentSlide+this.perPage:this.currentSlide,n=(this.config.rtl?1:-1)*i*(this.selectorWidth/this.perPage);t?requestAnimationFrame((function(){requestAnimationFrame((function(){e.enableTransition(),e.sliderFrame.style[e.transformProperty]="translate3d(".concat(n,"px, 0, 0)")}))})):this.sliderFrame.style[this.transformProperty]="translate3d(".concat(n,"px, 0, 0)")}},{key:"updateAfterDrag",value:function(){var t=(this.config.rtl?-1:1)*(this.drag.endX-this.drag.startX),e=Math.abs(t),i=this.config.multipleDrag?Math.ceil(e/(this.selectorWidth/this.perPage)):1,n=t>0&&this.currentSlide-i<0,o=t<0&&this.currentSlide+i>this.innerElements.length-this.perPage;t>0&&e>this.config.threshold&&this.innerElements.length>this.perPage?this.prev(i):t<0&&e>this.config.threshold&&this.innerElements.length>this.perPage&&this.next(i),this.slideToCurrent(n||o)}},{key:"resizeHandler",value:function(){this.resolveSlidesNumber(),this.currentSlide+this.perPage>this.innerElements.length&&(this.currentSlide=this.innerElements.length<=this.perPage?0:this.innerElements.length-this.perPage),this.selectorWidth=this.selector.offsetWidth,this.buildSliderFrame()}},{key:"clearDrag",value:function(){this.drag={startX:0,endX:0,startY:0,letItGo:null,preventClick:this.drag.preventClick}}},{key:"touchstartHandler",value:function(t){-1!==["TEXTAREA","OPTION","INPUT","SELECT"].indexOf(t.target.nodeName)||(t.stopPropagation(),this.pointerDown=!0,this.drag.startX=t.touches[0].pageX,this.drag.startY=t.touches[0].pageY)}},{key:"touchendHandler",value:function(t){t.stopPropagation(),this.pointerDown=!1,this.enableTransition(),this.drag.endX&&this.updateAfterDrag(),this.clearDrag()}},{key:"touchmoveHandler",value:function(t){if(t.stopPropagation(),null===this.drag.letItGo&&(this.drag.letItGo=Math.abs(this.drag.startY-t.touches[0].pageY)<Math.abs(this.drag.startX-t.touches[0].pageX)),this.pointerDown&&this.drag.letItGo){t.preventDefault(),this.drag.endX=t.touches[0].pageX,this.sliderFrame.style.webkitTransition="all 0ms ".concat(this.config.easing),this.sliderFrame.style.transition="all 0ms ".concat(this.config.easing);var e=(this.config.loop?this.currentSlide+this.perPage:this.currentSlide)*(this.selectorWidth/this.perPage),i=this.drag.endX-this.drag.startX,n=this.config.rtl?e+i:e-i;this.sliderFrame.style[this.transformProperty]="translate3d(".concat((this.config.rtl?1:-1)*n,"px, 0, 0)")}}},{key:"mousedownHandler",value:function(t){-1!==["TEXTAREA","OPTION","INPUT","SELECT"].indexOf(t.target.nodeName)||(t.preventDefault(),t.stopPropagation(),this.pointerDown=!0,this.drag.startX=t.pageX)}},{key:"mouseupHandler",value:function(t){t.stopPropagation(),this.pointerDown=!1,this.selector.style.cursor="-webkit-grab",this.enableTransition(),this.drag.endX&&this.updateAfterDrag(),this.clearDrag()}},{key:"mousemoveHandler",value:function(t){if(t.preventDefault(),this.pointerDown){"A"===t.target.nodeName&&(this.drag.preventClick=!0),this.drag.endX=t.pageX,this.selector.style.cursor="-webkit-grabbing",this.sliderFrame.style.webkitTransition="all 0ms ".concat(this.config.easing),this.sliderFrame.style.transition="all 0ms ".concat(this.config.easing);var e=(this.config.loop?this.currentSlide+this.perPage:this.currentSlide)*(this.selectorWidth/this.perPage),i=this.drag.endX-this.drag.startX,n=this.config.rtl?e+i:e-i;this.sliderFrame.style[this.transformProperty]="translate3d(".concat((this.config.rtl?1:-1)*n,"px, 0, 0)")}}},{key:"mouseleaveHandler",value:function(t){this.pointerDown&&(this.pointerDown=!1,this.selector.style.cursor="-webkit-grab",this.drag.endX=t.pageX,this.drag.preventClick=!1,this.enableTransition(),this.updateAfterDrag(),this.clearDrag())}},{key:"clickHandler",value:function(t){this.drag.preventClick&&t.preventDefault(),this.drag.preventClick=!1}},{key:"remove",value:function(t,e){if(t<0||t>=this.innerElements.length)throw new Error("Item to remove doesn't exist 😭");var i=t<this.currentSlide,n=this.currentSlide+this.perPage-1===t;(i||n)&&this.currentSlide--,this.innerElements.splice(t,1),this.buildSliderFrame(),e&&e.call(this)}}
1,{key:"insert",value:function(t,e,i){if(e<0||e>this.innerElements.length+1)throw new Error("Unable to inset it at this index 😭");if(-1!==this.innerElements.indexOf(t))throw new Error("The same item in a carousel? Really? Nope 😭");var n=e<=this.currentSlide>0&&this.innerElements.length;this.currentSlide=n?this.currentSlide+1:this.currentSlide,this.innerElements.splice(e,0,t),this.buildSliderFrame(),i&&i.call(this)}},{key:"prepend",value:function(t,e){this.insert(t,0),e&&e.call(this)}},{key:"append",value:function(t,e){this.insert(t,this.innerElements.length+1),e&&e.call(this)}},{key:"destroy",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1?arguments[1]:void 0;if(this.detachEvents(),this.selector.style.cursor="auto",t){for(var i=document.createDocumentFragment(),n=0;n<this.innerElements.length;n++)i.appendChild(this.innerElements[n]);this.selector.innerHTML="",this.selector.appendChild(i),this.selector.removeAttribute("style")}e&&e.call(this)}}])&&e(n.prototype,o),s&&e(n,s),i}();window.Siema=i},232:function(){function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function n(t,e){return(n=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function o(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=a(t);if(e){var o=a(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return s(this,i)}}function s(e,i){return!i||"object"!==t(i)&&"function"!=typeof i?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(e):i}function a(t){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var r=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&n(t,e)}(c,ApiManager);var s,a,r,l=o(c);function c(){return e(this,c),l.apply(this,arguments)}return s=c,(a=[{key:"apiName",value:function(){return"youtubeapi"}},{key:"apiScript",value:function(){return"//www.youtube.com/player_api"}},{key:"hasOwnOnLoadCallback",value:function(){return!0}}])&&i(s.prototype,a),r&&i(s,r),c}();window.onYouTubePlayerReady=function(){G5.youTubeApi.doneLoading()},window.onYouTubeIframeAPIReady=function(){G5.youTubeApi.doneLoading()},G5.youTubeApi=new r},916:function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var e=function(){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),this.configs=t,this.widget=$("#"+t.widgetId),this.setupCTAs()}var i,n,o;return i=e,(n=[{key:"setupCTAs",value:function(){var t=this;this.widget.find(".widget-slug").on("click",(function(t){t.preventDefault()})),this.widget.find(".cta-item a").on("click",(function(e){t.trackCTAEvents($(e.currentTarget))})),G5.isPreview&&this.setupPreviewUrls()}},{key:"setupPreviewUrls",value:function(){for(var t=1;t<=4;t++){var e=this.configs["previewUrl".concat(t)],i=this.widget.find(".cta-item-".concat(t," a"));e.length&&i.length&&i.attr("href",e)}}},{key:"trackCTAEvents",value:function(t){if("function"==typeof ga){var e=t.text();try{ga("send","event","CTA","click",e)}catch(t){}try{ga("g5.send","event","CTA","click",e)}catch(t){}}}}])&&t(i.prototype,n),o&&t(i,o),e}();G5.loadWidgetConfigs(".action-calls .config",e)},449:function(){function t(t,e,i,n,o,s,a){try{var r=t[s](a),l=r.value}catch(t){return void i(t)}r.done?e(l):Promise.resolve(l).then(n,o)}function e(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var i=function(){function i(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),this.configs=t,this.variables(),this.widgetInit()}var n,o,s,a,r;return n=i,(o=[{key:"variables",value:function(){this.widgetVariables(),this.mobileVariables(),this.responsiveVariables()}},{key:"widgetVariables",value:function(){this.widgetId=this.configs.widgetId,this.widget=$("#".concat(this.widgetId)),this.videoSrc=this.configs.videoSrc,this.videoId=this.configs.videoId,this.cinemagraphContainer=this.widget.find(".cinemagraph-container"),this.cinemagraphFallbackImage=this.configs.cinemagraphFallbackImage,this.cinemagraphFallbackImageWidth=this.getFallbackPhotoSizes(this.cinemagraphFallbackImage).urlWidth,this.cinemagraphFallbackImageHeight=this.getFallbackPhotoSizes(this.cinemagraphFallbackImage).urlHeight,this.yTPlayerClass="ytplayer",this.vimeoPlayerClass="vimeo-player",this.vimeoIsValid=!1,this.flixelClass="cinemagraph-frame",this.fallbackClass="fallback-image",this.widgetImageDisplay="widget-image-display"}},{key:"mobileVariables",value:function(){this.enableMobileSpecificDisplay=this.configs.enableMobileSpecificDisplay,this.mobileImage=this.configs.mobileImage,this.mobileClass="mobile-image",this.isMobile=this.configs.mobileBreakpoint>window.innerWidth,this.mobileAutoplay=this.configs.mobileAutoplay}},{key:"responsiveVariables",value:function(){var t=window.matchMedia("(max-width: ".concat(this.configs.mobileBreakpoint,"px)")).matches;this.mobile=this.enableMobileSpecificDisplay&&t}},{key:"widgetInit",value:function(){this.buildWidget(),this.buildWidgetResponsive()}},{key:"buildWidget",value:function(){this.mobile?this.buildMobileImage():this.buildVideoSource()}},{key:"buildWidgetResponsive",value:function(){var t=this;this.enableMobileSpecificDisplay&&$(window).resize((function(){t.responsiveVariables(),t.buildWidget()}))}},{key:"buildMobileImage",value:function(){this.doesNotExist(this.mobileClass)&&(this.emptyCinemagraphContainer(),this.widget.addClass(this.widgetImageDisplay),this.mobileImageHtml(),this.appendWidgetHtml())}}
1,{key:"mobileImageHtml",value:function(){this.videoSrcHtml='<div class="'.concat(this.mobileClass,"\">\n                          <img\n                            src='").concat(this.mobileImage,"'\n                            loading='lazy'\n                            ").concat(CloudinaryHelper.responsiveImage(this.mobileImage,{minWidth:300}),"\n                            alt='").concat(this.configs.mobileAltTag,"'\n                          >\n                        </div>")}},{key:"buildVideoSource",value:function(){if(this.configs.mobileVideoHeight||this.setMobileHeight(),this.doesNotExist(this.yTPlayerClass)&&this.doesNotExist(this.vimeoPlayerClass)&&this.doesNotExist(this.flixelClass)&&this.doesNotExist(this.fallbackClass))switch(this.emptyCinemagraphContainer(),this.videoSrc){case this.configs.youtube:this.initYouTube();break;case this.configs.flixel:this.initFlixel();break;default:this.initVimeo()}}},{key:"setMobileHeight",value:function(){var t=document.getElementById("drop-target-main"),e=document.getElementById(this.widgetId),i=t.getBoundingClientRect().top,n=window.innerHeight;e.style.setProperty("--cinemagraph-mobile-height",n-i+"px")}},{key:"initYouTube",value:function(){this.yTPlayerId="".concat(this.yTPlayerClass,"-").concat(this.widgetId),this.youTubeHtml(),this.appendWidgetHtml(),G5.youTubeApi.registerWidget(this,"onYouTubeReady")}},{key:"youTubeHtml",value:function(){var t=!1;this.isMobile&&(t="fallback-image"===this.mobileAutoplay),t?this.fallbackImageHtml():this.videoSrcHtml='<div class="youtube-overlay"></div><div id="'.concat(this.yTPlayerId,'" class="').concat(this.yTPlayerClass,'"></div>')}},{key:"onYouTubeReady",value:function(){var t=this,e=1;return this.isMobile&&(e="autoplay"===this.mobileAutoplay?1:0),this.player=new YT.Player(this.yTPlayerId,{height:"100%",width:"100%",videoId:this.videoId,playerVars:{autoplay:e,color:"white",controls:0,disablekb:1,iv_load_policy:3,loop:1,modestbranding:1,mute:1,playlist:this.videoId,rel:0,playsinline:1},events:{onReady:function(e){t.player.mute(),t.testYouTubeVideoDuration(),t.testYouTubeVideoOnPageLoad(e),t.hideYouTubeOverlay()},onError:function(e){t.youTubeError()},onStateChange:function(e){1===e.data&&t.addYouTubePlayingClass()}}})}},{key:"testYouTubeVideoDuration",value:function(){this.player.getDuration()<=0&&this.youTubeError()}},{key:"testYouTubeVideoOnPageLoad",value:function(t){5===this.player.getPlayerState()&&("fallback-image"===this.mobileAutoplay&&this.youTubeError(),"autoplay"===this.mobileAutoplay&&t.target.playVideo())}},{key:"youTubeError",value:function(){this.emptyCinemagraphContainer(),this.fallbackImage()}},{key:"hideYouTubeOverlay",value:function(){this.widget.find(".youtube-overlay").hide()}},{key:"addYouTubePlayingClass",value:function(){var t=!0;this.isMobile&&(t="click-to-play"!==this.mobileAutoplay),t&&this.widget.find("iframe").addClass("youtube-playing")}},{key:"fallbackImage",value:function(){this.fallbackImageHtml(),this.widget.addClass(this.widgetImageDisplay),this.appendWidgetHtml()}},{key:"fallbackImageHtml",value:function(){this.videoSrcHtml='<div class="'.concat(this.fallbackClass,"\">\n                          <img\n                            src='").concat(this.cinemagraphFallbackImage,"'\n                            loading='lazy'\n                            ").concat(CloudinaryHelper.responsiveImage(this.cinemagraphFallbackImage,{minWidth:300}),'                             class="fallback"\n                            alt=\'').concat(this.configs.fallbackPhotoAltTag,"'\n                            ").concat(this.cinemagraphFallbackImageWidth?"width="+this.cinemagraphFallbackImageWidth:"","\n                            ").concat(this.cinemagraphFallbackImageHeight?"height="+this.cinemagraphFallbackImageHeight:"","\n                          >\n                        </div>")}},{key:"initVimeo",value:function(){var t=this;fetch("https://vimeo.com/api/oembed.json?url=https://www.vimeo.com/".concat(this.videoId)).then((function(e){return t.vimeoResHandler(e)}))}},{key:"vimeoResHandler",value:(a=regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(200!==e.status){t.next=5;break}return t.next=3,e.json();case 3:"string"==typeof t.sent.author_name&&(this.vimeoIsValid=!0);case 5:this.vimeoHtml(),this.appendWidgetHtml();case 7:case"end":return t.stop()}}),t,this)})),r=function(){var e=this,i=arguments;return new Promise((function(n,o){var s=a.apply(e,i);function r(e){t(s,n,o,r,l,"next",e)}function l(e){t(s,n,o,r,l,"throw",e)}r(void 0)}))},function(t){return r.apply(this,arguments)})},{key:"vimeoHtml",value:function(){var t=1,e=1,i=!1,n=null;this.isMobile&&(t="autoplay"===this.mobileAutoplay?1:0,e="click-to-play"===this.mobileAutoplay?0:1,i="fallback-image"===this.mobileAutoplay,n=0==e?'style="pointer-events: auto;"':n),this.vimeoIsValid&&!i?this.videoSrcHtml="<div class='".concat(this.vimeoPlayerClass,"' ").concat(n,'>\n                            <iframe\n                              src="https://player.vimeo.com/video/').concat(this.videoId,"?autoplay=").concat(t,"&loop=1&title=0&byline=0&portrait=0&background=").concat(e,'&muted=1"\
1n                              style="position:absolute;top:0;left:0;width:100%;height:100%;"\n                              title="').concat(this.configs.iFrameTitleAttr,'"\n                              frameborder="0"\n                              allow="autoplay; fullscreen; picture-in-picture"\n                              allowfullscreen>\n                            </iframe>\n                          </div>\n                          <script src="https://player.vimeo.com/api/player.js"><\/script>'):this.fallbackImageHtml()}},{key:"initFlixel",value:function(){this.flixelHtml(),this.appendWidgetHtml()}},{key:"flixelHtml",value:function(){this.videoSrcHtml='<iframe\n                          title="'.concat(this.configs.iFrameTitleAttr,'"\n                          loading="lazy"\n                          src="').concat(this.videoSrc).concat(this.videoId,'?hd=true&forceGif=false"\n                          frameborder="0"\n                          allowfullscreen\n                          class="').concat(this.flixelClass,'"\n                        >')}},{key:"filterHtml",value:function(){return""===(this.mobile?this.configs.mobileFilter:this.configs.cinemagraphFilter)?"":'<div class="filter"></div>'}},{key:"appendWidgetHtml",value:function(){this.cinemagraphContainer.append(this.filterHtml()+this.videoSrcHtml)}},{key:"doesNotExist",value:function(t){return!this.cinemagraphContainer.find(".".concat(t)).length}},{key:"emptyCinemagraphContainer",value:function(){this.widget.removeClass(this.widgetImageDisplay),this.cinemagraphContainer.empty()}},{key:"getFallbackPhotoSizes",value:function(t){var e=0,i=0;if(t.includes("h_")&&t.includes("w_")){var n=t.split("/").filter((function(t){if(t.includes("w_")&&t.includes("h_")&&t.includes("g_center"))return t})).toString();e=this.getFallbackPhotoSize(n,"w_"),i=this.getFallbackPhotoSize(n,"h_")}return{urlWidth:e,urlHeight:i}}},{key:"getFallbackPhotoSize",value:function(t,e){return t.split(",").find((function(t){return t.includes(e)})).replace(e,"")}}])&&e(n.prototype,o),s&&e(n,s),i}();G5.loadWidgetConfigs(".cinemagraph-v2 .config",i)},289:function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var e=function(){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),this.config=t,this.widget=$("#".concat(t.widgetId)),this.bleedType=t.bleedType,this.layoutOption=t.layoutOption,this.cardPhotoOffset=t.cardPhotoOffset,this.staticOnDesktop="true"===t.staticOnDesktop,this.mobileClass(),this.ancestorBleedClasses(),this.carouselInit(),this.fcpoSetup(),this.resize()}var i,n,o;return i=e,(n=[{key:"mobileClass",value:function(){this.desktopBreakpoint=window.matchMedia("(min-width: ".concat(this.config.mobileBreakpoint,")")).matches,this.widget.toggleClass("content-carousel-desktop",this.desktopBreakpoint),this.widget.toggleClass("content-carousel-mobile",!this.desktopBreakpoint)}},{key:"ancestorBleedClasses",value:function(){if("none"!==this.bleedType){var t="full"!==this.bleedType?"browser-edge-col":"";this.widget.closest(".col").addClass("content-carousel-col-bleed-".concat(this.bleedType," ").concat(t)),this.widget.closest(".row").addClass("content-carousel-row-bleed-".concat(this.bleedType))}}},{key:"checkStaticOnDesktop",value:function(){var t=this.widget.find(".control-dots"),e=this.widget.find(".control-arrows"),i=this.widget.find(".content-carousel-content");if(this.staticOnDesktop&&this.desktopBreakpoint){(null==t?void 0:t.length)>0&&t.addClass("hide"),(null==e?void 0:e.length)>0&&e.addClass("hide");for(var n=0;n<(null==i?void 0:i.length);n++)i[n].removeAttribute("tabindex")}else{t.removeClass("hide"),e.removeClass("hide");for(var o=0;o<(null==i?void 0:i.length);o++)i[o].setAttribute("tabindex","0")}}},{key:"carouselInit",value:function(){this.carouselVaribles(),this.imageTopOffset(),this.photoPositionToggle(),this.initClasses(),this.controlDots(),this.currentCounters(),this.autoScroll(),this.controlArrowClick(),this.controlSwipe(),this.carouselItemFocus(),this.checkStaticOnDesktop()}},{key:"carouselVaribles",value:function(){this.carousel=this.widget.find(".content-carou
1sel-items"),this.seats=this.widget.find(".content-carousel-item"),this.isRecycled="recycle"===this.config.carouselBehavior,this.autoScrollClickCondition=!0,this.firstSeat=this.seats.first(),this.lastSeat=this.seats.last(),this.movesToOtherEnd=this.lastSeat.index(),this.leftBleedInView="left"===this.bleedType||"full"===this.bleedType,this.isRef=this.leftBleedInView?this.lastSeat:this.firstSeat}},{key:"photoPositionToggle",value:function(){if("card"===this.layoutOption){this.widget.removeClass("content-carousel-photo-position-left content-carousel-photo-position-right content-carousel-photo-position-top");var t=this.desktopBreakpoint?this.config.photoPositionClass:"content-carousel-photo-position-top";this.widget.addClass(t)}}},{key:"initClasses",value:function(){this.firstSeat.addClass("active"),this.isRef.addClass("is-ref"),this.inView(this.isRef)}},{key:"inView",value:function(t){this.activeEl=this.leftBleedInView?this.next(t):t,this.numberOfColumns=this.config.numberOfColumns,this.leftInView(),this.rightInView(),this.setInView()}},{key:"leftInView",value:function(){if(this.leftBleedInView){var t=this.prev(this.activeEl);t.addClass("in-view")}}},{key:"rightInView",value:function(){this.rightBleedInView="right"===this.bleedType||"full"===this.bleedType,this.rightBleedInView&&this.numberOfColumns++}},{key:"setInView",value:function(){for(var t=0;t<this.numberOfColumns;t++)this.activeEl.addClass("in-view"),this.activeEl=this.isRecycled?this.activeEl.next():this.next(this.activeEl)}},{key:"setImageOffsetValue",value:function(t,e){var i=e.height()/3;t.css("margin-top","".concat(i,"px")),e.parent().css("margin-top","-".concat(i,"px"))}},{key:"imageOffsetToggle",value:function(){this.widget.removeClass("content-carousel-photo-offset-left content-carousel-photo-offset-right content-carousel-photo-offset-top");var t=this.desktopBreakpoint?this.config.photoOffsetClass:"content-carousel-photo-offset-top";this.widget.addClass(t)}},{key:"shouldImageOffset",value:function(){var t=this,e="top"===this.config.cardPhotoPosition||!this.desktopBreakpoint;e&&this.seats.each((function(e,i){var n=$(i),o=n.find(".content-carousel-image img"),s=n.find(".content-carousel-item-container");o.prop("complete")?t.setImageOffsetValue(s,o):o.one("load",(function(){return t.setImageOffsetValue(s,o)}))}))}},{key:"imageTopOffset",value:function(){"card"===this.layoutOption&&this.cardPhotoOffset&&(this.imageOffsetToggle(),this.shouldImageOffset())}},{key:"carouselItemFocus",value:function(){var t="#".concat(this.config.widgetId);$("".concat(t," .content-carousel-content")).on("focus",function(t){var e=$(t.target).closest(".content-carousel-item");this.moveByTarget(e)}.bind(this))}},{key:"controlDots",value:function(){this.controlDots=this.widget.find(".control-dots [class*=control-dot-]"),this.controlDotsExist=this.controlDots.length,this.controlDotsExist&&(this.controlDots.first().addClass("active"),this.controlDotClick())}},{key:"controlDotClick",value:function(){this.controlDots.on("click",function(t){var e=$(t.currentTarget);this.moveByTarget(e)}.bind(this))}},{key:"moveByTarget",value:function(t){clearInterval(this.autoScrollRepeat);for(var e=t.index()-this.carousel.find(".active").index(),i=e>0?"next":"previous",n=0;n<Math.abs(e);n++)this.moveCarousel(i)}},{key:"currentCounters",value:function(){this.counters=this.widget.find(".counter [class*=current-counter-]"),this.countersExist=this.counters.length,this.countersExist&&this.counters.first().addClass("active")}},{key:"autoScroll",value:function(){this.config.enableAutoScroll&&(this.autoScrollRepeat=window.setInterval(function(){this.moveCarousel("next")}.bind(this),this.config.autoScrollSpeed))}},{key:"controlArrowClick",value:function(){this.widget.find(".toggle").on("click",function(t){clearInterval(this.autoScrollRepeat);var e=$(t.currentTarget).data("toggle");this.moveCarousel(e)}.bind(this))}},{key:"controlSwipe",value:function(){var t=document.getElementById("".concat(this.config.contentCarouselItemsContainerId));t&&(t.addEventListener("touchstart",(function(t){touchstartX=t.changedTouches[0].screenX}),!1),t.addEventListener("touchend",function(t){var e=t.changedTouches[0].screenX,i=e<touchstartX,n=e>touchstartX;(i||n)&&clearInterval(this.autoScrollRepeat),i&&this.moveCarousel("next"),n&&this.moveCarousel("previous")}.bind(this),!1))}},{key:"moveCarousel",value:function(t){this.moveCarouselVaribles(),"next"===t?this.toggleNext(this.el):this.togglePrev(this.el),this.recycledReturn||(this.carouselClasses(),this.inView(this.new_seat),this.activeClasses(),this.orderSeats(),this.isSetClass())}},{key:"moveCarouselVaribles",value:function(){this.recycledReturn=!1,this.firstSeatActive=this.firstSeat.hasClass("active"),this.lastSeatActive=this.lastSeat.hasClass("active"),this.el=this.widget.find(".
1is-ref").removeClass("is-ref")}},{key:"carouselClasses",value:function(){this.removeCarouselClasses(),this.addCarouselClasses()}},{key:"removeCarouselClasses",value:function(){this.widget.find(".active").removeClass("active"),this.widget.find(".in-view").removeClass("in-view")}},{key:"addCarouselClasses",value:function(){this.new_seat.addClass("is-ref").css("order","1"),this.newActiveSeat=this.leftBleedInView?this.next(this.new_seat):this.new_seat,this.newActiveSeat.addClass("active")}},{key:"activeClasses",value:function(){this.activeIndex=this.widget.find(".content-carousel-item.active").index(),this.controlDotsActive(),this.currentCountersActive()}},{key:"controlDotsActive",value:function(){this.controlDotsExist&&(this.controlDots.removeClass("active"),this.controlDots.eq(this.activeIndex).addClass("active"))}},{key:"currentCountersActive",value:function(){this.countersExist&&(this.counters.removeClass("active"),this.counters.eq(this.activeIndex).addClass("active"))}},{key:"orderSeats",value:function(){var t,e,i;for(t=e=2,i=this.seats.length;2<=i?e<=i:e>=i;t=2<=i?++e:--e)this.new_seat=this.next(this.new_seat).css("order","".concat(t))}},{key:"isSetClass",value:function(){return this.carousel.removeClass("is-set"),setTimeout(function(){return this.carousel.addClass("is-set")}.bind(this),50)}},{key:"next",value:function(t){return t.next().length?t.next():this.firstSeat}},{key:"prev",value:function(t){return t.prev().length?t.prev():this.lastSeat}},{key:"toggleNext",value:function(t){this.isRecycled&&this.lastSeatActive?this.recycledToggle(t,"previous"):this.regularToggle(t,"next")}},{key:"togglePrev",value:function(t){this.isRecycled&&this.firstSeatActive?this.recycledToggle(t,"next"):this.regularToggle(t,"previous")}},{key:"regularToggle",value:function(t,e){return"next"===e?this.regularToggleNext(t):this.regularTogglePrev(t),this.new_seat}},{key:"regularToggleNext",value:function(t){this.new_seat=this.next(t),this.carousel.removeClass("is-reversing")}},{key:"regularTogglePrev",value:function(t){this.new_seat=this.prev(t),this.carousel.addClass("is-reversing")}},{key:"recycledToggle",value:function(t,e){t.addClass("is-ref");for(var i=0;i<this.movesToOtherEnd;i++)this.moveCarousel(e);this.recycledReturn=!0}},{key:"fcpoSetup",value:function(){this.widget.find("a[data-fcpo-name]").on("click",(function(t){t.preventDefault()}))}},{key:"resize",value:function(){var t=this;$(window).smartresize((function(){t.mobileClass(),t.imageTopOffset(),t.photoPositionToggle(),t.checkStaticOnDesktop()}))}}])&&t(i.prototype,n),o&&t(i,o),e}();G5.loadWidgetConfigs(".content-carousel.widget .config",e)},236:function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var e=function(){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),this.configs=t,this.widget=$("#".concat(this.configs.widgetId)),this.setSlideSpeed(this.configs.slideshowSpeed),this.initVariables(),this.mobileConfigInit(),this.dotConfigInit(),this.setSwipeListeners(),this.rotateGalleryPhotos()}var i,n,o;return i=e,(n=[{key:"setSlideSpeed",value:function(t){var e=parseInt(t)+2e3;this.slideshowSpeed=e||6e3}},{key:"galleryInit",value:function(){var t=this.widget.find(".active"),e=this.widget.find("figure:first"),i=t.next(),n=this.returnNextImage(i,e),o=n.next(),s=this.returnNextImage(o,e);n&&s&&this.zIndexAndActiveClassRotation(t,n)}},{key:"returnNextImage",value:function(t,e){return t.length>0?t:e}},{key:"zIndexAndActiveClassRotation",value:function(t,e){if(e.css("z-index",2),this.configs.dotsEnabled){var i=e[0].id.slice(-2).replace(/\D/g,"");this.activateDot(i)}t.fadeOut(800,(function(){t.css("z-index",1).show().removeClass("active"),e.css("z-index",3).addClass("active")}))}},{key:"activateDot",value:function(t){this.widget.find(".selected").removeClass("selected"),this.widget.find("#".concat(this.configs.widgetId,"-dot-").concat(t)).addClass("selected")}},{key:"rotateGalleryPhotos",value:function(){var t=this;this.interval=setInterval((function(){t.galleryInit()}),this.slideshowSpeed)}},{key:"mobileConfigInit",value:function(){this.buildGalleryWidgetMarkup(),this.responsiveGalleryWidgetMarkup()}},{key:"buildGalleryWidgetMarkup",value:function(){this.configs.enableMobileSpecificDisplay&&(this.mobileVariables(),this.rebuildGalleryWidgetMarkup())}},{key:"responsiveGalleryWidgetMarkup",value:function(){var t=this;$(window).smartresize((function(){t.mobile!==t.isMobile&&t.buildGalleryWidgetMarkup()}))}},{key:"mobileVariables",value:function(){this.widgetMarkup="",this.mobile=this.isMobile,this.maxDesktopImages=this.configs.maxDesktopImages,this.maxMobileImages=this.configs.maxMobileImages,this.maxImages=this.mobile?this.maxMobileImages:this.maxDesktopImages,this.mobilePhotoVariableArrays()}},{key:"isMobile",get:function(){return window.matchMedia("(max-width: ".concat(this.configs.mobileBreakpoint,"px)")).matches}},{key:"mobilePhotoVariableArrays",value:function(){var t=this;this.galleryPhoto=Array.from(Array(this.maxDesktopImages),(function(e,i){return t.configs["gallery_photo".concat(i+1,"_url")]})),this.galleryAlt=Array.from(Array(this.maxDesktopImages),(function(e,i){return t.configs["gallery_photo".concat(i+1,"_alt")]})),this.galleryMobilePhoto=Array.from(Array(this.maxMobileImages),(function(e,i){return t.configs["gallery_photo_mobile".concat(i+1,"_url")]})),this.galleryMobileAlt=Array.from(Array(this.maxMobileImages),(function(e,i){return t.configs["gallery_photo_mobile".concat(i+1,"_alt")]}))}},{key:"rebuildGalleryWidgetMarkup",value:function(){this.widget.find("figure").remove(),this.figureElementMarkup(),this.gallery=this.widget.find(".gallery-photos"),this.gallery.append(this.widgetMarkup),this.configs.dotsEnabled&&this.buildDots()}},{key:"figureElementMarkup",value:function(){for(var t=0;t<this.maxImages;t++){var e=this.mobile?this.galleryMobilePhoto[t]:this.galleryPhoto[t],i=this.mobile?this.galleryMobileAlt[t]:this.galleryAlt[t],n=0===t?"class='active'":"";""!=e&&this.figureElementMarkupEach(n,e,i,t)}}}
1,{key:"figureElementMarkupEach",value:function(t,e,i,n){this.imageDimensions(),this.widgetMarkup+='<figure id="'.concat(this.configs.widgetId,"-image-").concat(n+1,'" ').concat(t,'>                             <img class="u-photo"                               src=\'').concat(e,"'                               loading='lazy'                               ").concat(CloudinaryHelper.responsiveImage(e,{minWidth:300}),"                               alt='").concat(i,"'                               width='").concat(this.conditionalImageWidth,"'                               height='").concat(this.conditionalImageHeight,'\' />                             <div class="gallery-overlay"></div>                           </figure>')}},{key:"imageDimensions",value:function(){this.mobile=window.matchMedia("(max-width: ".concat(this.configs.mobileBreakpoint,"px)")).matches,this.mobile?(this.conditionalImageWidth=this.configs.mobileMaxWidth,this.conditionalImageHeight=this.configs.mobileMaxHeight):(this.conditionalImageWidth=this.configs.maxWidth,this.conditionalImageHeight=this.configs.maxHeight)}},{key:"initVariables",value:function(){var t=this;this.mobile=window.matchMedia("(max-width: ".concat(this.configs.mobileBreakpoint,"px)")).matches,this.desktopPhotos=Array.from(Array(this.configs.maxDesktopImages),(function(e,i){return t.configs["gallery_photo".concat(i+1,"_url")]})),this.mobilePhotos=Array.from(Array(this.configs.maxMobileImages),(function(e,i){return t.configs["gallery_photo_mobile".concat(i+1,"_url")]})),this.desktopPhotosLength=this.desktopPhotos.filter((function(t){return""!==t})).length,this.mobilePhotosLength=this.mobilePhotos.filter((function(t){return""!==t})).length}},{key:"buildDots",value:function(){this.widget.find(".dot").remove();for(var t=this.mobile&&this.configs.enableMobileSpecificDisplay?this.mobilePhotosLength:this.desktopPhotosLength,e="",i=0;i<t;i++){var n=0===i?"selected":"";
1e+='<span id="'.concat(this.configs.widgetId,"-dot-").concat(i+1,'" class="dot ').concat(n,'"></span>')}this.dots.append(e)}},{key:"setDotListeners",value:function(){$(".dot").on("click",this.clickDot.bind(this))}},{key:"clickDot",value:function(t){var e;clearInterval(this.interval);var i=null===(e=t.srcElement)||void 0===e?void 0:e.id.slice(-2).replace(/\D/g,""),n=this.widget.find(".active"),o=this.widget.find("#".concat(this.configs.widgetId,"-image-").concat(i));this.zIndexAndActiveClassRotation(n,o),this.rotateGalleryPhotos()}},{key:"dotConfigInit",value:function(){this.configs.dotsEnabled&&(this.buildDots(),this.setDotListeners())}},{key:"setSwipeListeners",value:function(){this.touchStartValue=0,this.touchEndValue=0;var t=this.widget.find(".gallery-photos");t.on("touchstart",this.touchStart.bind(this)),t.on("touchend",this.touchEnd.bind(this))}},{key:"touchStart",value:function(t){this.touchStartValue=t.originalEvent.changedTouches[0].screenX}},{key:"touchEnd",value:function(t){this.touchEndValue=t.originalEvent.changedTouches[0].screenX,this.handleGesture()}},{key:"handleGesture",value:function(){this.touchEndValue<this.touchStartValue&&this.swipe("left"),this.touchEndValue>this.touchStartValue&&this.swipe("right")}},{key:"swipe",value:function(t){clearInterval(this.interval);var e,i,n=this.widget.find(".active"),o=parseInt(n[0].id.slice(-2).replace(/\D/g,""));e="left"==t?this.isActiveLast(o)?1:o+1:1==o?this.maxPhotoslength:o-1,i=this.widget.find("#".concat(this.configs.widgetId,"-image-").concat(e)),this.zIndexAndActiveClassRotation(n,i),this.rotateGalleryPhotos()}},{key:"isActiveLast",value:function(t){return this.mobile&&this.configs.enableMobileSpecificDisplay?t===this.mobilePhotosLength:t===this.desktopPhotosLength}},{key:"dots",get:function(){return this.widget.find(".pagination-dots")}},{key:"maxPhotoslength",get:function(){return this.mobile&&this.configs.enableMobileSpecificDisplay?this.mobilePhotosLength:this.desktopPhotosLength}}])&&t(i.prototype,n),o&&t(i,o),e}();G5.loadWidgetConfigs(".gallery-basic .config",e)},774:function(){function t(t){return function(t){if(Array.isArray(t))return e(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,i){if(!t)return;if("string"==typeof t)return e(t,i);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return e(t,i)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function e(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function n(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var o=function(){function e(t){var i=this;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),this.configs=t,null!=this.configs){var n=Array.from(Array(parseInt(this.configs.amountOfOptions)).keys()).map((function(t){return t+1}));this.formsToAppendLocation=n.map((function(t){return i.configs["form_to_append_location_select_".concat(t)]})),this.widget=$("#".concat(this.configs.widgetId)),this.userSelectOptions=this.configs.userSelectForms,this.clsUrl=this.configs.secureClsUrl,this.locationUrn=this.configs.locationUrn,this.locationsJson=this.configs.locationsJson,this.form=this.widget.find("form"),this.formSelectDropdown=this.widget.find(".user-form-options"),this.leadSlugForLocSelect="".concat(this.formsToAppendLocation.find((function(t){return!!t}))),this.locationDropdown=this.widget.find(".location-select"),this.runLocSelectOnce=!1,this.index=1,this.userSelect(),this.triggerEnhancer(),this.hideLocationSelect(),this.appendLocationDropdown(),this.changeFormId(),this.syncPrivacyPolicyLink()}}var o,s,a;return o=e,(s=[{key:"syncPrivacyPolicyLink",value:function(){var t=this,e=function(){var e=$
1("footer .footer-info a, footer .widget-footer-info a").filter((function(){var t=$(this).text().toLowerCase(),e=$(this).attr("href")||"";return t.includes("privacy")||e.toLowerCase().includes("privacy")})).first();if(e.length){var i=e.attr("href"),n=t.widget.find(".g5-enhanced-form .privacy-disclaimer");if(n.length){var o=n.find("a");if(o.length)o.attr("href",i),i&&(i.startsWith("http")||i.startsWith("//"))&&(o.attr("target","_blank"),o.attr("rel","noopener noreferrer")),console.log("Privacy policy link updated:",i);else{var s=n.html().replace(/privacy policy/gi,'<a href="'.concat(i,'" target="_blank" rel="noopener noreferrer">privacy policy</a>'));n.html(s),console.log("Privacy policy link created:",i)}}}else console.warn("Footer privacy policy link not found")};$(window).on("G5FormRendered",(function(){setTimeout(e,300)})),this.widget.find(".user-form-options").on("change",(function(){setTimeout(e,600)}))}},{key:"submitHackUrn",get:function(){return"true"===this.configs["hack_urn_".concat(this.index)]}},{key:"showPendingLocations",get:function(){return"true"===this.configs["show_pending_".concat(this.index)]}},{key:"showCorporateLocations",get:function(){return"true"===this.configs["show_corporate_".concat(this.index)]}},{key:"isOrderedBy",get:function(){switch(this.configs["select_ordering_".concat(this.index)]){case"order_by_state_city_address":return{displayBy:this.displayByStateCityAddress,orderBy:["state","city","street_address"]};case"order_by_city_brandedName":return{displayBy:this.displayByCityBrandedName,orderBy:["city","name","state"]};case"order_by_brandedName_city_state":return{displayBy:this.displayByBrandedNameCityState,orderBy:["name","state","city"]};case"order_by_city_state_brandedName":return{displayBy:this.displayByCityStateBrandedName,orderBy:["state","city","name"]};case"order_by_displayName_city_state":return{displayBy:this.displayByDisplayNameCityState,orderBy:["display_name","state","city"]};case"order_by_city_state_displayName":return{displayBy:this.displayByCityStateDisplayName,orderBy:["state","city","display_name"]};case"order_by_state_city_brandedName":return{displayBy:this.displayByStateCityBrandedName,orderBy:["state","city","name"]};case"order_by_state_city_displayName":return{displayBy:this.displayByStateCityDisplayName,orderBy:["state","city","display_name"]}}}},{key:"userSelect",value:function(){var t=this;if(this.userSelectOptions){this.widget.prepend('\n        <div class="user-form-select" style="margin-bottom:15px;">\n          <p id="user-form-label" class="paragraph-title">Please select the type of form you would like to submit</p>\n          <select id="user-form-options" class="user-form-options" aria-labelledby="user-form-label"></select>\n        </div>'),$.each(this.userSelectOptions,(function(e,i){var n='<option value="'.concat(e,'">').concat(i,"</option>");t.widget.find(".user-form-options").append(n)}));var e=!("object"===i(this.userSelectOptions)),n=Object.keys(this.userSelectOptions).length<=1;(e||n)&&this.widget.find(".user-form-select").hide()}}},{key:"orderLocations",value:function(t){return function(e,i){return e[t[0]].toLowerCase()===i[t[0]].toLowerCase()?e[t[1]].toLowerCase()===i[t[1]].toLowerCase()?e[t[2]].toLowerCase()>i[t[2]].toLowerCase()?1:-1:e[t[1]].toLowerCase()>i[t[1]].toLowerCase()?1:-1:e[t[0]].toLowerCase()>i[t[0]].toLowerCase()?1:-1}}},{key:"displayByStateCityAddress",value:function(t){return"".concat(t.state,", ").concat(t.city," - ").concat(t.street_address)}},{key:"displayByCityBrandedName",value:function(t){return"".concat(t.city," - ").concat(t.name)}},{key:"displayByBrandedNameCityState",value:function(t){return"".concat(t.name," - ").concat(t.city,", ").concat(t.state)}},{key:"displayByCityStateBrandedName",value:function(t){return"".concat(t.city,", ").concat(t.state," - ").concat(t.name)}},{key:"displayByDisplayNameCityState",value:function(t){return"".concat(t.display_name," - ").concat(t.city,", ").concat(t.state)}},{key:"displayByCityStateDisplayName",value:function(t){return"".concat(t.city,", ").concat(t.state," - ").concat(t.display_name)}},{key:"displayByStateCityBrandedName",value:function(t){return"".concat(t.state,", ").concat(t.city," - ").concat(t.name)}},{key:"displayByStateCityDisplayName",value:function(t){return"".concat(t.state,", ").concat(t.city," - ").concat(t.display_name)}},{key:"changeIndex",value:function(t){this.index=this.formsToAppendLocation.findIndex((function(e){return e===t}))+1}},{key:"updateLocationDropdownLabel",value:function(){$(".select_dropdown").text(this.configs["select_dropdown_label_".concat(this.index)])}},{key:"removeLocationDropdownOptions",value:function(){this.widget.find(".location-list-urn option").remove()}},{key:"appendDefaultLocationDropdownOption",value:function(){this.widget.find(".location-list-urn").append($('<option class="disabled-option-label" disabled selected="true" value=""></option>').text(this.configs["disabled_option_label_".concat(this.index)]))}},{key:"appendCorporateLocationAtTheTopOfTheList",value:function(e){var i=e.filter((function(t){return!t.corporate})),n=e.filter((function(t){return t.corporate}));return this.showCorporateLocations?[].concat(t(n),t(i)):i}},{key:"appendLocationDropdownOptions",value:function(){var t=this,e=this.showPendingLocations?this.locationsJson:this.locationsJson.filter((function(t){return!t.pending})),i=this.isOrderedBy,n=i.displayBy,o=i.orderBy,s=e.sort(this.orderLocations(o)),a=this.appendCorporateLocationAtTheTopOfTheList(s);$.each(a,(function(e,i){t.widget.find(".location-list-urn").append($("<option></option>
1").val(i.urn).text(n(i)))}))}},{key:"triggerEnhancer",value:function(){var t=this;this.widget.find(".user-form-options").change((function(){var e=$(this).attr("value");t.runLocSelectOnce=!1,t.leadSlugForLocSelect="".concat(e,"_form"),t.changeIndex(t.leadSlugForLocSelect);var i="".concat(t.clsUrl,"/api/v1/locations/").concat(t.locationUrn,"/html_forms/").concat(e);window.G5Leads.g5FormEnhancer({formUrl:i,enhanceClass:"".concat(t.configs.widgetId,".lead-form .g5-enhanced-form")})}))}},{key:"resetPriorSelections",value:function(){this.widget.find(".g5-enhanced-form .location-list-urn option:selected").prop("selected",!1)}},{key:"resetToFirstEmptyOption",value:function(){this.widget.find(".g5-enhanced-form .location-list-urn option:first").attr("selected","selected")}},{key:"triggerUrnSwap",value:function(){this.submitHackUrn?(this.resetPriorSelections(),this.resetToFirstEmptyOption(),this.widget.find(".location-list-urn").change((function(){$("input[type='hidden'][name='location-list-select']").remove();var t=$(this).attr("value"),e=$(this).parent().parent(),i=e.attr("action").split("/");i.splice(6,1,t),e.attr("action",i.join("/"))}))):this.widget.find(".location-select").remove()}},{key:"hideLocationSelect",value:function(){var t=this;$(window).on("G5FormResponseComplete",(function(){t.locationDropdown.hide(),t.widget.find(".user-form-select").hide()}))}},{key:"appendLocationDropdown",value:function(){var t=this;""!==this.leadSlugForLocSelect&&$(window).on("G5FormRendered",(function(){if(t.widget.find(".g5-enhanced-form .".concat(t.leadSlugForLocSelect)).length&&!t.runLocSelectOnce){var e=t.widget.find(".".concat(t.leadSlugForLocSelect," div:first"));t.locationDropdown.clone().insertBefore(e).fadeIn(),t.triggerUrnSwap(),t.runLocSelectOnce=!0,t.locationDropdown.remove(),t.updateLocationDropdownLabel(),t.removeLocationDropdownOptions(),t.appendDefaultLocationDropdownOption(),t.appendLocationDropdownOptions()}}))}},{key:"changeFormId",value:function(){var t=this;$(window).on("G5FormRendered",(function(){var e=setInterval(function(){var t=this;this.widget.find(".g5-enhanced-form form").length&&(this.changedFormId||(this.widget.find("input, textarea, select, label[for]").not(":input[type=submit], :input[type=radio], :input[name=lead_comments], textarea[name=g-recaptcha-response]").each((function(e,i){return"LABEL"==i.nodeName?i.setAttribute("for","".concat(i.getAttribute("for"),"-").concat(t.configs.widgetId)):i.id="".concat(i.id,"-").concat(t.configs.widgetId)})),this.changedFormId=!0),clearInterval(e))}.bind(t),100)}))}}])&&n(o.prototype,s),a&&n(o,a),e}();G5.loadWidgetConfigs(".lead-configs",o)},144:function(){function t(t){return function(t){if(Array.isArray(t))return n(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||i(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function e(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var i=[],n=!0,o=!1,s=void 0;try{for(var a,r=t[Symbol.iterator]();!(n=(a=r.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(t){o=!0,s=t}finally{try{n||null==r.return||r.return()}finally{if(o)throw s}}return i}(t,e)||i(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){if(t){if("string"==typeof t)return n(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?n(t,e):void 0}}function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function a(t,e,i){return e&&s(t.prototype,e),i&&s(t,i),t}var r=function(){function t(e,i){o(this,t),Object.assign(this,e),this.configs=e,this.widget=i,this.widgetWidth=i.width(),this.breakpoint=720,this.filterTextStyle='style="color: #666666; color: var(--filters-text, #666666)"'}return a(t,[{key:"mqClass",get:function(){return this.widgetWidth>this.breakpoint?"large":this.widgetWidth>
1600?"small":"tiny small"}},{key:"isMobile",get:function(){return this.mqClass.includes("small")}},{key:"isMobileDisplay",get:function(){return this.isMobile&&!this.configs.displayPoiListsOnMobile}},{key:"pinStyle",get:function(){return"single"===this.configs.categoryDisplay&&"numbers"===this.configs.pinDisplay?"numbered":null}},{key:"categoryElement",value:function(t){return this.widget.find(".toggle-category[value=".concat(t,"]"))}},{key:"filterCategory",value:function(t){var e=this.categories[t],i=this.isMobileDisplay?this.filterCategoryMobile(t):this.filterCategoryDesktop(t);return'\n      <div class="filter-cat-'.concat(e.id,'">\n        <button class="toggle-category active" value="').concat(t,'" aria-label="Toggle filtering businesses by ').concat(t,'"><i class="fa ').concat(e.icon,'"></i></button>\n        <div class="filter-info closed">\n          ').concat(i,"\n        </div>\n      </div>\n    ")}},{key:"filterCategoryMobile",value:function(t){return'\n      <div class="filter-title" data-category="'.concat(t,'">\n        <span id="filter-').concat(this.categories[t].id,'" ').concat(this.filterTextStyle,">").concat(this.categories[t].label,"</span>\n      </div>\n    ")}},{key:"toggleCategoryIcon",value:function(t){this.configs.usePlusMinusIcon&&$(t).find(".fa").toggleClass("fa-plus fa-minus")}},{key:"filterCategoryDesktop",value:function(t){var e=this,i=Object.create(null);this.pointsOfInterest=this.pointsOfInterest.filter((function(t){var e=["place_id","location_type","name","latitude","longitude"].map((function(e){return t[e]})).join("|");if(!i[e])return i[e]=!0,!0}));var n=this.pointsOfInterest.filter((function(e){return e.location_type===t})),o=this.configs.usePlusMinusIcon?"fa-plus":"fa-caret",s=n.map((function(t){return'<li role="menuitem"><a aria-label="Show '.concat(t.name,' on map" href="#" data-poi-id=').concat(t.id," ").concat(e.filterTextStyle,">").concat(t.name,"</a></li>")})).join("");return'\n      <div class="filter-title" aria-haspopup="true" aria-expanded="false" tabindex="0" data-category="'.concat(t,'" aria-label="Show list of ').concat(t,' businesses" role="button">\n        <span id="filter-').concat(this.categories[t].id,'" ').concat(this.filterTextStyle,">").concat(this.categories[t].label,'</span>\n        <button title="Show list of ').concat(t,' businesses" role="button" class="toggle-list" ').concat(this.filterTextStyle,'>\n          <i class="fa ').concat(o,'"></i>\n        </button>\n      </div>\n      <ul class="filter-list ').concat(this.pinStyle,'" role="menu" aria-labelledby="filter-').concat(this.categories[t].id,'">\n        ').concat(s,"\n      </ul>\n    ")}},{key:"popupContent",value:function(t){var e=t.name?"<span class='name'>".concat(t.name,"</span>"):"",i=t.website?"<span><a class='website-link' href='".concat(t.website,"' target='_blank'>Visit Website</a></span>"):"",n=t.phone_number?"<span class='phone'>".concat(t.phone_number,"</span>"):"",o=this.categories[t.location_type]?"popup-cat-".concat(this.categories[t.location_type].id):"",s=t.address||t.city||t.state||t.postal_code?"\n      <span class='address-block'>\n        ".concat(t.address?"<span class='address'>".concat(t.address,"</span>"):"","\n        <span class='city-state-zip'>\n          ").concat(t.city?"".concat(t.city,", "):"","\n          ").concat(t.state?"".concat(t.state," "):"","\n          ").concat(t.postal_code?t.postal_code:"","</span>\n      </span>\n    "):"";return"\n      <div class='marker-content-wrapper ".concat(o,"'>\n        ").concat(e,"\n        ").concat(s,"\n        ").concat(n,"\n        ").concat(i,"\n      </div>\n    ")}},{key:"businessIconMarkup",value:function(t,i){var n,o=e(i,2),s=o[0],a=o[1];return n=this.businessMarkerCustomImg?'<img src="'.concat(this.businessMarkerCustomImg,'" loading="lazy" alt="').concat(this.name,' marker" />'):'\n        <span class="fa-stack fa-lg">\n          <i class="fa '.concat(this.businessMarkerShape,' fa-stack-2x"></i>\n          <i class="fa ').concat(this.businessMarkerIcon,' fa-stack-1x fa-inverse"></i>\n        </span>\n      '),'\n      <div class="'.concat(t,' marker-cat-0" id="marker-0" data-poi-id="0" data-lng=').concat(s," data-lat=").concat(a,'>
1\n      <span class="location-marker">\n        ').concat(n,"\n      </span>\n      </div>\n    ")}},{key:"businessPopupContent",get:function(){var t=this.name?"<span class='name'>".concat(this.name,"</span>"):"",e=this.profileImage?"<span class='profile-image'><img src='".concat(this.profileImage,"' loading=\"lazy\" alt='").concat(this.name,"' /></span>"):"";return"\n    <div class='marker-content-wrapper popup-cat-0'>\n      ".concat(t,"\n      <span class='address-block'>\n        <span class='address'>").concat(this.streetAddress,"</span>\n        <span class='city-state-zip'>").concat(this.cityStateZip,"</span>\n      </span>\n      ").concat(e,"\n    </div>")}},{key:"locationIconMarkup",value:function(t,i,n,o,s){var a=this.categories[t]?this.categories[t].icon:"fa-location-2",r=e(i,2),l=r[0],c=r[1],h="marker-".concat(n),u=this.categories[t]?"marker-cat-".concat(this.categories[t].id):"";return'\n      <div class="'.concat(o," ").concat(u,'" id="').concat(h,'" data-poi-id="').concat(n,'" data-lng=').concat(l," data-lat=").concat(c,'>
1\n      <span class="fa-stack fa-lg">\n        <i class="fa fa-solid-circle fa-stack-2x"></i>\n        <i class="icon-view fa ').concat(a,' fa-stack-1x fa-inverse"></i>\n        <i class="number-view fa fa-stack-1x fa-inverse">').concat(s,"</i>\n      </span>\n      </div>\n    ")}}]),t}(),l=function(){function e(t){o(this,e),Object.assign(this,t),G5.mapBoxGlApi.registerWidget(this,"setupMap"),this.widget=$("#".concat(this.widgetId)),this.canvas=this.widget.find(".canvas"),this.neighborhoodMarkers=[],this.activeCategories=[],this.cachedExistingCategories=[],this.haveFiltered=!1,this.ui=new r(t,this.widget),this.pointsOfInterest=this.ui.pointsOfInterest,this.resize(),this.pointsOfInterest.length>0&&(this.buildFilters(),this.setupEventListeners())}return a(e,[{key:"singleCategoryView",get:function(){return"single"===this.ui.categoryDisplay}},{key:"setupMap",value:function(){var t=this,e=""!==this.latitude&&""!==this.longitude,i={latitude:this.latitude,longitude:this.longitude},n=e?i:this.setMapGeocode();Promise.resolve(n).then((function(e){return t.showMap(e)}))}},{key:"showMap",value:function(t){var e=this;this.coordinates=[t.longitude,t.latitude],mapboxgl.accessToken=G5.mapBoxGlApi.accessToken;var i=new mapboxgl.NavigationControl({showCompass:!1});this.clientMap.addControl(i,"top-right");var n=new mapboxgl.Popup({offset:25,className:"location-popup"}).setHTML(this.ui.businessPopupContent);this.displayBusinessMarker&&new mapboxgl.Marker({element:this.businessIcon(this.coordinates)}).setLngLat(this.coordinates).setPopup(n).addTo(this.clientMap);var o=this.addMarkers(),s={padding:100};this.mapZoom&&(s.zoom=this.mapZoom),this.clientMap.fitBounds(o,s),this.widget.on("click",".mapboxgl-marker",(function(t){var i=t.currentTarget.dataset,n=i.lng,o=i.lat;e.map.panTo([Number(n),Number(o)])}))}},{key:"businessIcon",value:function(t){var e="marker-container-home",i=this.ui.businessIconMarkup(e,t);return this.widget.append(i),this.widget.find(".".concat(e))[0]}},{key:"locationIcon",value:function(t,e,i,n,o){var s="marker-container-".concat(t,"-").concat(n),a=this.ui.locationIconMarkup(t,e,i,s,o);return this.widget.append(a),this.widget.find(".".concat(s))[0]}},{key:"buildFilters",value:function(){var e=this;this.activeCategories=t(this.existingCategories);var i=this.filtersOpenDefault&&!this.ui.isMobile?"filters-open":"filters-closed",n="numbers"===this.ui.pinDisplay?"numbers":"",o=this.filtersOpenDefault&&!this.ui.isMobile?"open":"closed",s="single"===this.ui.categoryDisplay?"single":"",a=this.existingCategories.map((function(t){return e.ui.filterCategory(t)})).join("");this.widget.find(".canvas").addClass(i).addClass(n).addClass(s),this.widget.find(".map-filters-plus").addClass(o).addClass(s).addClass(this.ui.pinStyle).append(a).removeClass("hide")}},{key:"setupEventListeners",value:function(){var t=this;this.widget.find(".toggle-filters").on("click",(function(e){return t.toggleFilters(e)})),this.ui.isMobileDisplay?this.widget.find("[class*=filter-cat-]").on("click",(function(e){var i=$(e.currentTarget).find(".toggle-category");t.toggleCategorySetup(i)})):(this.widget.find(".toggle-category").on("click",(function(e){e.preventDefault(),t.toggleCategorySetup($(e.currentTarget))})),$(".filter-title").on("click",(function(e){return t.toggleFilterList(e)})),this.widget.find(".filter-list a").on("click",(function(e){return t.filterItem(e)})),this.singleCategoryView&&$(window).on("load",(function(){return $(".single.open .filter-cat-1 .filter-title").click()})))}},{key:"filterItem",value:function(t){t.preventDefault();var e=t.currentTarget.getAttribute("data-poi-id"),i=this.pointsOfInterest.filter((function(t){return t.id==e}))[0];this.createPopUp(i),this.flyToStore(i)}},{key:"toggleFilterList",value:function(t){this.widget.find(".map-filters-plus").find(".filter-title").not(t.currentTarget).attr("aria-expanded","false").closest(".filter-info").addClass("closed"),$(t.currentTarget).closest(".filter-info").toggleClass("closed");var e=t.currentTarget.dataset.category;this.categoryMeta(e).isActive||this.activateCategory(e);var i="true"===$(t.currentTarget).attr("aria-expanded");($(t.currentTarget).attr("aria-expanded",i?"false":"true"),this.ui.toggleCategoryIcon(t.currentTarget),this.singleCategoryView&&this.widget.hasClass("large"))&&(this.removePopups(),this.neighborhoodMarkers.forEac
1h((function(t){t._element.classList.remove("active")})),this.neighborhoodMarkers.filter((function(t){return t.category===e})).forEach((function(t){t._element.classList.add("active")})),this.setBounds())}},{key:"toggleFilters",value:function(t){t.preventDefault();var e=$(t.currentTarget).closest(".map-filters-plus");e.toggleClass("open closed");var i=this.widget.find(".mapboxgl-map");e.hasClass("open")?i.addClass("filters-open").removeClass("filters-closed"):i.addClass("filters-closed").removeClass("filters-open"),this.map.resize()}},{key:"toggleCategorySetup",value:function(t){this.haveFiltered?this.toggleCategory(t):this.firstFilterClicked(t)}},{key:"toggleCategory",value:function(t){var e=t.val(),i=this.categoryMeta(e),n=i.isActive,o=i.index,s=i.isLast;n?s?this.activateAllCategories():(this.deactivateCategory(e,o),t.next().addClass("closed").find(".filter-title").attr("aria-expanded","false")):this.activateCategory(e)}},{key:"firstFilterClicked",value:function(t){var e=this,i=t.val();this.activeCategories.forEach((function(t,i){e.widget.find(".toggle-category[value=".concat(t,"]")).removeClass("active"),e.ui.isMobileDisplay&&e.widget.find(".filter-title[data-category=".concat(t,"]")).closest(".filter-info").addClass("closed")})),this.activeCategories=[],this.removePopups(),this.activateCategory(i),this.setBounds(),this.haveFiltered=!0}},{key:"activateCategory",value:function(t){this.ui.categoryElement(t).addClass("active"),this.activeCategories.push(t),this.setBounds()}},{key:"deactivateCategory",value:function(t,e){this.ui.categoryElement(t).removeClass("active"),this.activeCategories.splice(e,1),this.ui.isMobileDisplay&&this.widget.find(".filter-title[data-category=".concat(t,"]")).closest(".filter-info").addClass("closed"),this.removePopups(),this.setBounds()}},{key:"activateAllCategories",value:function(){var e=this;this.activeCategories=t(this.existingCategories),this.existingCategories.forEach((function(t){e.ui.categoryElement(t).addClass("active")})),this.setBounds(!0)}},{key:"categoryMeta",value:function(t){var e=this.activeCategories.indexOf(t);return{isActive:e>-1,index:e,isLast:1===this.activeCategories.length}}},{key:"getMakerPosition",value:function(t){return t.getLngLat()}},{key:"getMapBounds",value:function(){return new mapboxgl.LngLatBounds}},{key:"addMarkers",value:function(){var t=this,e=this.getMapBounds(),i=0;return this.activeCategories.forEach((function(n){var o=1;t.pointsOfInterest.forEach((function(s,a){if(s.location_type==n){t.addMarker(s,i,o);var r=t.neighborhoodMarkers[i];e.extend(t.getMakerPosition(r)),r.setVisible(!0),i++,o++}}))})),e}},{key:"addMarker",value:function(t,e,i){var n=this,o=t.latitude,s=t.longitude,a=t.location_type,r=this.ui.popupContent(t),l=new mapboxgl.Popup({offset:25}).setHTML(r),c=new mapboxgl.Marker({element:this.locationIcon(a,[s,o],t.id,e,i)}).setLngLat([s,o]).setPopup(l).addTo(this.clientMap);c.category=a,c.setVisible=function(e){var i=n.widget.find("#marker-".concat(t.id));e?i.show():i.hide()},this.neighborhoodMarkers.push(c)}},{key:"flyToStore",value:function(t){var e=t.longitude,i=t.latitude;this.map.flyTo({center:[e,i]})}},{key:"createPopUp",value:function(t){this.removePopups(),new mapboxgl.Popup({offset:25}).setLngLat([t.longitude,t.latitude]).setHTML(this.ui.popupContent(t)).addTo(this.map)}},{key:"removePopups",value:function(){var t=document.getElementsByClassName("mapboxgl-popup")[0];t&&t.parentNode.removeChild(t)}},{key:"setBounds",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=this.getMapBounds();this.pointsOfInterest.forEach((function(n,o){var s=t.neighborhoodMarkers[o];t.activeCategories.includes(s.category)||e?(s.setVisible(!0),i.extend(t.getMakerPosition(s))):s.setVisible(!1)}));var n=$(window).width()<=400?11:16,o={maxZoom:n,padding:100};this.map.fitBounds(i,o)}},{key:"resize",value:function(){var t=Math.min(800,Math.max(.75*this.canvas.width()+30,200));this.canvas.css({height:t}),this.widget.removeClass("small large"),this.widget.addClass(this.ui.mqClass)}},{key:"setMapGeocode",value:function(){var t="".concat(this.streetAddress,", ").concat(this.cityStateZip);return G5.mapBoxGlApi.getLatLng(t)}},{key:"existingCategories",get:function(){if(this.cachedExistingCategories.length)return this.cachedExistingCategories;var e=t(new Set(this.pointsOfInterest.map((function(t){return t.location_type})))),i=Object.keys(this.categories).filter((function(t){return e.includes(t)}));return this.cachedExistingCategories=i,i}},{key:"observeMapResize",value:function(t){var e=this,n=this.canvas[0];new ResizeObserver((function(n){var o,s=function(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=i(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var o=0,s=function(){};return{s,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:s}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,r=!0,l=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return r=t.done,t},e:function(t){l=!0,a=t},f:function(){try{r||null==n.return||n.return()}finally{if(l)throw a}}}}(n);try{for(s.s();!(o=s.n()).done;){o.value.contentBoxSize&&e.resize(),t.resize()}}catch(t){s.e(t)}finally{s.f()}})).observe(n)}}
1,{key:"clientMap",get:function(){return this.map||(this.map=new mapboxgl.Map({container:"".concat(this.widgetId,"-map"),style:"".concat(this.mapboxStyles,"?optimize=true"),center:this.coordinates,zoom:this.mapZoom||16,attributionControl:!1,scrollZoom:!1}),new MapboxEnhancements(this.map),this.observeMapResize(this.map)),this.map}}]),e}();G5.loadWidgetConfigs(".neighborhood-map-plus .config",l)},331:function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var e=function(){function e(t){var i=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),this.window=$(window),this.widget=$("#".concat(t.widgetId)),this.displayType=t.displayType,this.evenGridColumns=t.evenGridColumns,this.evenGridType=this.widget.hasClass("grid-layout-1")||this.widget.hasClass("grid-layout-8"),this.gridRowGap=t.gridRowGap,this.photoSlideTransition=t.photoSlideTransition,this.photoSlideTransitionDuration=t.photoSlideTransitionDuration,this.enableLoadMore=t.enableLoadMore,this.loadMoreThreshold=t.loadMoreThreshold,this.loadMoreTextClosed=t.loadMoreTextClosed,this.loadMoreTextOpen=t.loadMoreTextOpen,this.mobileBreakpoint=window.matchMedia("(max-width: ".concat(t.mobileBreakpoint,")")).matches,this.lightbox=$("#".concat(t.lightboxId)),this.maxPhotoCards=50,this.photoCardContainer=".photo-card-container",this.photoCardsContainer=this.widget.find(".photo-cards-container"),this.widgetPhotoCards=this.widget.find(".photo-cards-container .photo-card"),this.photoCardContainers=this.widgetPhotoCards.find(this.photoCardContainer),this.parentContentStripe=this.widget.closest(".content-stripe-widget"),this.loadMoreButton=this.widget.find(".load-more-button"),this.window.resize((function(){return i.mobileBreakpoint=window.matchMedia("(max-width: ".concat(t.mobileBreakpoint,")")).matches})),this.widgetInitial(),this.widgetSlideTransition(),this.photoCardsMosaicResponsive(),this.gridGapSupport(),this.window.resize((function(){i.gridGapSupport(),i.photoCardsMosaicResponsive()})),this.cssFallbacks(),this.photoCardDisplay(),this.galleryDisplay(),this.addImagesFallbacks(),"true"==this.enableLoadMore&&"grid-layout-8"==t.gridType&&this.setupLoadMore()}var i,n,o;return i=e,(n=[{key:"widgetInitial",value:function(){var t=this.widgetPhotoCards.size(),e=this.widget.find(".total-card-count");this.widget.addClass("photo-cards-".concat(t)),e.text(t);var i=0;this.photoCardContainers.each((function(t,e){var n=$(e);i++,n.find(".this-card-count").text(i)}))}},{key:"widgetSlideTransition",value:function(){var t=this;if(this.photoSlideTransition){var e,i=function(){for(var e=t.window.scrollTop(),i=t.window.height()+e,n=function(n){var o=t.widgetPhotoCards.eq(n).find(t.photoCardContainer);if(o.length){var s=o.offset().top;s+o.outerHeight()>=e&&s<=i&&(o.hasClass("photo-slide-complete")||(o.addClass("photo-slide-transition"),o.one("transitionend",(function(){o.addClass("photo-slide-complete")}))))}},o=0;o<t.maxPhotoCards;o++)n(o)};this.window.one("load",i),this.window.on("scroll",(function(){clearTimeout(e),e=setTimeout(i,100)})),i()}}},{key:"photoCardsMosaicResponsive",value:function(){this.mobileBreakpoint?this.widget.addClass("mobile"):this.widget.removeClass("mobile")}},{key:"gridGapSupport",value:function(){if(!this.mobileBreakpoint)if(this.evenGridType){if(this.gridRowGap.indexOf("%")>=0){var t=parseFloat(this.gridRowGap.replace(/[^-\d\.]/g,"")),e=parseFloat(this.photoCardsContainer.css("height").replace(/[^-\d\.]/g,""))*t/100;this.photoCardsContainer.css("grid-row-gap",e)}}else{for(var i=this.photoCardsContainer.offset().top,n=this.photoCardsContainer.height()+i,o=[],s=0;s<this.maxPhotoCards;s++)if(this.widgetPhotoCards.eq(s).length){var a=n-(this.widgetPhotoCards.eq(s).find(this.photoCardContainer).offset().top+this.widgetPhotoCards.eq(s).find(this.photoCardContainer).outerHeight());o.push(a)}var r=Math.min.apply(null,o);this.widget.find(".photo-cards-mosaic-container").css("margin-bottom",-r)}}}
1,{key:"objectFitSupport",value:function(){this.evenGridType||(this.widget.addClass("photo-cards-mosaic-object-fit-support"),this.photoCardContainers.each((function(t,e){var i=$(e),n=i.find(".front-photo"),o=n.attr("src");n.length&&(i.prepend('<div class="front-photo-alt"></div>'),i.find(".front-photo-alt").css("backgroundImage","url(".concat(o,")")))})))}},{key:"gridColumnsSupport",value:function(){this.evenGridType&&(this.widget.addClass("grid-columns-support"),this.widgetPhotoCards.css("width","".concat(100/this.evenGridColumns,"%")))}},{key:"cssFallbacks",value:function(){window.CSS&&window.CSS.supports||window.supportsCSS?(CSS.supports("(object-fit: cover) or (object-position: center)")||this.objectFitSupport(),CSS.supports("(grid-template-columns: 1fr)")||this.gridColumnsSupport()):(this.gridColumnsSupport(),this.objectFitSupport())}},{key:"photoCardDisplay",value:function(){"photo-cards"===this.displayType&&(this.photoCardTransitionClassToggle(),this.photoChecks(),this.touchTest(),this.touchHovers())}},{key:"photoCardTransitionClassToggle",value:function(){this.photoCardContainers.on("transitionstart",(function(t){$(t.currentTarget).removeClass("allow-scroll")})),this.photoCardContainers.on("transitionend",(function(t){$(t.currentTarget).addClass("allow-scroll")}))}},{key:"photoChecks",value:function(){this.photoCardContainers.each((function(t,e){var i=$(e),n=i.find(".front-photo"),o=i.find(".back-photo");if(n.length||i.addClass("no-front-photo"),o.length){var s=o.attr("src");i.prepend('<div class="back-photo-alt"></div>'),i.addClass("back-photo-card"),i.find(".back-photo-alt").css("backgroundImage","url(".concat(s,")")),o.remove()}}))}},{key:"touchTest",value:function(){$("html").hasClass("touchevents")&&this.photoCardContainers.addClass("touchevents-photo-cards")}},{key:"touchHovers",value:function(t){var e=this;$("body").on("touchend",(function(){e.photoCardContainers.removeClass("hover")})),this.photoCardContainers.on("touchend",(function(t){e.photoCardContainers.removeClass("hover"),$(t.currentTarget).hasClass("no-photo-card-transition")||($(t.currentTarget).addClass("hover"),t.stopPropagation())})),this.widgetPhotoCards.find("a").on("touchend",(function(t){var i=$(t.currentTarget).closest(e.photoCardContainer);i.hasClass("hover")||i.hasClass("no-photo-card-transition")||t.preventDefault()}))}},{key:"galleryDisplay",value:function(){var t=this;"gallery"===this.displayType&&(this.lightboxLeftArrow=this.lightbox.find(".photo-cards-lightbox-left-arrow"),this.lightboxRightArrow=this.lightbox.find(".photo-cards-lightbox-right-arrow"),this.lightboxResponsive(),this.initLightbox(),this.lightboxClick(),this.window.resize((function(){return t.lightboxResponsive()})))}},{key:"removeFAutoFromImageUrl",value:function(t){return t.replace(/(.+)(cloudinary.com)(.+)(f_auto,|,f_auto)(.+)$/i,"$1$2$3$5")}},{key:"removeFAutoFromSrcSet",value:function(t){return t.split(/(\b[0-9]+w, )/i).map(this.removeFAutoFromImageUrl).join("")}},{key:"setImageSrcFallback",value:function(t){var e=t.src,i=(t.srcset,this.removeFAutoFromImageUrl(e));t.src=i}},{key:"setImageSrcsetFallback",value:function(t){var e=t.srcset,i=this.removeFAutoFromSrcSet(e);t.srcset=i}},{key:"setImageFallback",value:function(t){this.setImageSrcFallback(t),this.setImageSrcsetFallback(t)}},{key:"isImageLoadedWithError",value:function(t){return t.complete&&0===t.naturalWidth}},{key:"addImagesFallbacks",value:function(){var t=this;this.widget.find("img.front-photo").each((function(e,i){t.isImageLoadedWithError(i)?t.setImageFallback(i):i.addEventListener("error",(function e(){t.setImageFallback(i),i.removeEventListener("error",e)}))}))}},{key:"initLightbox",value:function(){var t="".concat(this.widget.selector," .siema");this.slideSiema=new Siema({selector:t,draggable:!0,onChange:this.setupSlider.bind(this),onInit:this.initSlider.bind(this)}),this.lightboxExitClick(),this.lightboxLeftArrowClick(),this.lightboxRightArrowClick(),this.lightboxKeyUps()}},{key:"lightboxResponsive",value:function(){var t=this.widget.find(".photo-cards-mosaic-container");this.mobileBreakpoint?(this.lightbox.addClass("mobile"),this.lightbox.closest(".col").removeClass("photo-cards-mosaic-lightbox-open"),this.lightbox.closest(".row").removeClass("photo-cards-mosaic-lightbox-open"),t.hide()):(this.lightbox.removeClass("mobile"),this.lightbox.hasClass("show")&&(this.lightbox.closest(".col").addClass("photo-cards-mosaic-lightbox-open"),this.lightbox.closest(".row").addClass("photo-cards-mosaic-lightbox-open")),t.show())}},{key:"lightboxClick",value:function(){var t=this;this.photoCardContainers.click((function(e){if(!t.mobileBreakpoint){var i=$(e.target).closest(".photo-card"),n=t.widgetPhotoCards.index(i);t.slideSiema.goTo(n),t.checkArrows(),t.widget.find(".photo-cards-lightbox").addClass("show"),t.lightbox.closest(".col").addClass("photo-cards-mosaic-lightbox-open"),t.lightbox.closest(".row").addClass("photo-cards-mosaic-lightbox-open"),t.triggerResize()}}))}},{key:"initSlider",value:function(){var t=this;this.setupSlider(),setTimeout((function(){return t.triggerResize()}),200)}},{key:"setupSlider",value:function(){this.setCounter(),this.checkArrows()}},{key:"setCounter",value:function(){var t=this.slideSiema?this.slideSiema.currentSlide:0;this.widget.find(".photo-cards-lightbox-counter").text("".concat(t+1," / ").concat(this.widgetPhotoCards.length))}},{key:"checkArrows",value:function(){this.slideSiema?0===this.slideSiema.currentSlide?(this.lightboxLeftArrow.hide(),this.lightboxRightArrow.show()):this.slideSiema.currentSlide===this.widgetPhotoCards.length-1?(this.lightboxRightArrow.hide(),this.lightboxLeftArrow.show()):(this.lightboxLeftArrow.show(),this.lightboxRightArrow.show()):(this.lightboxLeftArrow.hide(),this.lightboxRightArrow.show())}},{key:"triggerResize",value:function(){var t=window.document.createEvent("UIEvents");t.initUIEvent("resize",!0,!1,window,0),window.dispatchEvent(t)}},{key:"lightboxExitFunc",value:function(){this.lightbox.removeClass("show"),this.lightbox.closest(".col").removeClass("photo-cards-mosaic-lightbox-open"),this.lightbox.closest(".row").removeClass("photo-cards-mosaic-lightbox-open")}},{key:"lightboxLeftArrowFunc",value:function(){this.slideSiema.prev()}},{key:"lightboxRightArrowFunc",value:function(){this.slideSiema.next()}},{key:"lightboxExitClick",value:function(){var t=this;this.lightbox.find(".photo-cards-lightbox-exit").click((function(){t.lightboxExitFunc()}))}},{key:"lightboxLeftArrowClick",value:function(){var t=this;this.lightboxLeftArrow.click((function(){t.lightboxLeftArrowFunc()}))}},{key:"lightboxRightArrowClick",value:function(){var t=this;this.lightboxRightArrow.click((function(){t.lightboxRightArrowFunc()}))}},{key:"lightboxKeyUps",value:function(){var t=this;$(document).keyup((function(e){t.lightbox.hasClass("show")&&(27===e.which?t.lightboxExitFunc():37===e.which?t.lightboxLeftArrowFunc():39===e.which&&t.lightboxRightArrowFunc())}))}},{key:"togglePhotoThreshold",value:function(t){this.widgetPhotoCards.slice(this.loadMoreThreshold).toggleClass("hide",t)}},{key:"setupLoadMore",value:function(){var t=this;this.togglePhotoThreshold(!0),this.loadMoreButton.click((function(e){t.photoCardsContainer.hasClass("hide-threshold")?(t.photoCardsContainer.removeClass("hide-threshold").addClass("show-threshold"),t.togglePhotoThreshold(!1),t.loadMoreButton[0].innerHTML=t.loadMoreTextOpen):(t.photoCardsContainer.removeClass("show-threshold").addClass("hide-threshold"),t.togglePhotoThreshold(!0),t.loadMoreButton[0].innerHTML=t.loadMoreTextClosed,t.photoCardsContainer[0].scrollIntoView({behavior:"smooth"}))}))}}])&&t(i.prototype,n),o&&t(i,o),e}();G5.loadWidgetConfigs(".photo-cards-mosaic .config",e)},933:function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var e=function(){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),this.configVariables(t),this.elementVariables(),this.responsiveClasses(t),this.tabbedListFill(),this.setMobileActiveTabName(),this.tabNameOnKeydown(),this.tabNameOnClick(),this.resize(t)}var i,n,o;return i=e,(n=[{key:"configVariables",value:function(t){this.widget=$("#".concat(t.tabbedWidgetId)),this.mobileTabLayoutIsDropDown="drop_down"===t.mobileTabLayout}},{key:"elementVariables",value:function(){this.tabbedList=this.widget.find(".tabbed-list"),this.tabbedContent=this.widget.find(".tabbed-content"),this.tab=this.tabbedContent.find(".tab")}},{key:"responsiveClasses",value:function(t){var e=t.desktopTabOrientation,i=t.desktopTabLayoutClass,n=t.desktopTabTransitionClass,o=t.mobileTabLayoutClass,s=t.mobileBreakpoint,a=window.matchMedia("(min-width: ".concat(s,")")).matches;this.widget.toggleClass("tabbed-content-desktop ".concat(i," ").concat(e," ").concat(n),a),this.widget.toggleClass("tabbed-content-mobile ".concat(o),!a)}},{key:"tabbedListFill",value:function(){this.hiddenTabs=[],this.tabLoop(),this.tabbedName=this.tabbedList.find("button"),this.tabbedNameFirst=this.tabbedList.find("button:first-child"),this.tabbedNameLast=this.tabbedList.find("button:last-child"),this.hiddenTabLoop(),this.setActiveClasses()}},{key:"tabLoop",value:function(){var t=this;this.tab.each((function(e,i){var n=$(i),o=n.find(".tab-widget").attr("data-tab-name");t.tabbedList.append('<button tabindex="-1" aria-label="Tab - '.concat(o,'"><span data-text="').concat(o,'">').concat(o,"</span></button>")),""===o&&t.hiddenTabs.push(n.index())}))}},{key:"hiddenTabLoop",value:function(){for(var t=this.hiddenTabs.length,e=0;e<t;e++){var i=this.hiddenTabs[e];this.tabbedName.eq(i).hide(),this.tab.eq(i).hide()}}},{key:"setActiveClasses",value:function(){this.tabbedList.find("button:not([style*=none])").eq(0).addClass("active").attr("tabindex","0"),this.tabbedContent.find(".tab:not([style*=none])").eq(0).addClass("active")}},{key:"setMobileActiveTabName",value:function(){if(this.mobileTabLayoutIsDropDown){this.mobileActiveTabName=this.widget.find(".mobile-drop-down-button");var t=this.tabbedList.find(".active span").text();this.mobileActiveTabName.text(t),this.mobileDropDownButtonClick()}}},{key:"mobileDropDownButtonClick",value:function(){this.mobileActiveTabName.click(function(){this.tabbedList.addClass("drop-down")}.bind(this))}},{key:"moveFocusToPreviousTab",value:function(t){newTabbedName=t.is(":first-child")?this.tabbedNameLast:t.prev(),newTabbedName.focus()}},{key:"moveFocusToNextTab",value:function(t){newTabbedName=t.is(":last-child")?this.tabbedNameFirst:t.next(),newTabbedName.focus()}},{key:"tabNameOnKeydown",value:function(){this.tabbedName.keydown(function(t){var e=$
1(t.currentTarget),i=!1;switch(t.key){case"ArrowLeft":this.moveFocusToPreviousTab(e),i=!0;break;case"ArrowRight":this.moveFocusToNextTab(e),i=!0;break;case"Home":this.tabbedNameFirst.focus(),i=!0;break;case"End":this.tabbedNameLast.focus(),i=!0}i&&(t.stopPropagation(),t.preventDefault())}.bind(this))}},{key:"tabNameOnClick",value:function(){var t=this.tabbedName,e=this.tab;t.click(function(i){var n=$(i.currentTarget);t.removeClass("active").attr("tabindex","-1"),n.addClass("active").attr("tabindex","0"),e.removeClass("active"),e.eq(n.index()).addClass("active"),this.tabNameClickMobileDropDown(n),this.widget.hasClass("tabbed-content-mobile")&&this.mobiletabScrollIntoView(i.currentTarget)}.bind(this))}},{key:"mobiletabScrollIntoView",value:function(t){var e=t,i=e.offsetLeft,n=e.offsetWidth,o=t.parentNode,s=o.offsetWidth,a=s>n?(s-n)/2:15;o.scrollTo({top:0,left:i-a,behavior:"smooth"})}},{key:"tabNameClickMobileDropDown",value:function(t){if(this.mobileTabLayoutIsDropDown){this.tabbedList.removeClass("drop-down");var e=t.find("span").text();this.mobileActiveTabName.text(e)}}},{key:"resize",value:function(t){var e=this;$(window).resize((function(){e.responsiveClasses(t)}))}}])&&t(i.prototype,n),o&&t(i,o),e}();G5.loadWidgetConfigs(".tabbed-widget .config",e)}},e={};function i(n){var o=e[n];if(void 0!==o)return o.exports;var s=e[n]={exports:{}};return t[n](s,s.exports,i),s.exports}i(232),i(799),i(48),i(554),i(180),i(61),i(355),i(569),i(916),i(449),i(289),i(236),i(774),i(144),i(331);i(933)}();

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.