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 r(this,i)}}function r(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 s=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)}(l,ApiManager);var r,a,s,c=o(l);function l(){return e(this,l),c.apply(this,arguments)}return r=l,(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(r.prototype,a),s&&i(r,s),l}();window.fortAwesomeLoaded=function(){G5.fortAwesomeApi.doneLoading()},G5.fortAwesomeApi=new s},48:function(t,e,i){var n,o,r,a,s;r=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>"))},s={wrapWords:o=function(t,e,i,n){n=n||" ";for(var o=t.split(" "),r=0;r<o.length;r++)o[r]=e+o[r]+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 r(e)},wrapWordsInChildElement:r,getLines:function(t){a(t);for(var e=t.getElementsByClassName("js-detect-wrap"),i=0,n=[],o=[],r=0,s=0;s<e.length;s++){var c=e[s].offsetTop+e[s].getBoundingClientRect().height;c==i?n.push(e[s]):(n.length>0&&(o[r++]=n),n=[e[s]]),i=c}return o.push(n),o}},void 0===(n=function(){return s}.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,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(t){o=!0,r=t}finally{try{n||null==s.return||s.return()}finally{if(o)throw r}}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,r,a){try{var s=t[r](a),c=s.value}catch(t){return void i(t)}s.done?e(c):Promise.resolve(c).then(n,o)}function o(t){return function(){var e=this,i=arguments;return new Promise((function(o,r){var a=t.apply(e,i);function s(t){n(a,o,r,s,c,"next",t)}function c(t){n(a,o,r,s,c,"throw",t)}s(void 0)}))}}function r(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 s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function c(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 l(this,i)}}function l(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&&s(t,e)}(f,ApiManager);var i,n,l,h,u,d=c(f);function f(){return r(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,r,a,s,c,l;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 r=t.sent,a=e(r.features,1),s=e(a[0].center,2),c=s[0],l=s[1],t.abrupt("return",{latitude:l,longitude:c});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,r,a,s;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 r=t.sent,a=e(r.features,1),s=a[0].place_name,t.abrupt("return",s);case 8:case"end":return t.stop()}}),t,this)}))),function(t,e){return h.apply(this,arguments)})}])&&a(i.prototype,n),l&&a(i,l),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 r=o[n];e+=r.screenX,i+=r.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,r=Array.from(t.touches);o<r.length;o++){var a=r[o];i+=a.screenX,n+=a.screenY}var s=i/t.touches.length-this.state.panStart.x,c=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*s/-1,1*c/-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,r;return n=i,r=[{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 r=0;r<this.innerElements.length;r++){var a=this.buildSliderFrameItem(this.innerElements[r]);i.appendChild(a)}if(this.config.loop)for(var s=0;s<this.perPage;s++){var c=this.buildSliderFrameItem(this.innerElements[s].cloneNode(!0));i.appendChild(c)}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,r=this.perPage,a=o+r,s=(this.config.rtl?1:-1)*a*(this.selectorWidth/this.perPage),c=this.config.draggable?this.drag.endX-this.drag.startX:0;this.sliderFrame.style[this.transformProperty]="translate3d(".concat(s+c,"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,r=this.perPage,a=o+r,s=(this.config.rtl?1:-1)*a*(this.selectorWidth/this.perPage),c=this.config.draggable?this.drag.endX-this.drag.startX:0;this.sliderFrame.style[this.transformProperty]="translate3d(".concat(s+c,"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),r&&e(n,r),i}();window.Siema=i},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)},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(),r=this.returnNextImage(o,e);n&&r&&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,r,a;return o=e,(r=[{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 r=n.html().replace(/privacy policy/gi,'<a href="'.concat(i,'" target="_blank" rel="noopener noreferrer">privacy policy</a>'));n.html(r),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,r=e.sort(this.orderLocations(o)),a=this.appendCorporateLocationAtTheTopOfTheList(r);$.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,r),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,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(t){o=!0,r=t}finally{try{n||null==s.return||s.return()}finally{if(o)throw r}}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 r(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&&r(t.prototype,e),i&&r(t,i),t}var s=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",r=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(r,"\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):"",r=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(r,"\n ").concat(n,"\n ").concat(i,"\n </div>\n ")}},{key:"businessIconMarkup",value:function(t,i){var n,o=e(i,2),r=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(r," 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,r){var a=this.categories[t]?this.categories[t].icon:"fa-location-2",s=e(i,2),c=s[0],l=s[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(c," data-lat=").concat(l,'>
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(r,"</i>\n </span>\n </div>\n ")}}]),t}(),c=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 s(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(),r={padding:100};this.mapZoom&&(r.zoom=this.mapZoom),this.clientMap.fitBounds(o,r),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 r="marker-container-".concat(t,"-").concat(n),a=this.ui.locationIconMarkup(t,e,i,r,o);return this.widget.append(a),this.widget.find(".".concat(r))[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",r="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(r),this.widget.find(".map-filters-plus").addClass(o).addClass(r).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,r=i.isLast;n?r?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(r,a){if(r.location_type==n){t.addMarker(r,i,o);var s=t.neighborhoodMarkers[i];e.extend(t.getMakerPosition(s)),s.setVisible(!0),i++,o++}}))})),e}},{key:"addMarker",value:function(t,e,i){var n=this,o=t.latitude,r=t.longitude,a=t.location_type,s=this.ui.popupContent(t),c=new mapboxgl.Popup({offset:25}).setHTML(s),l=new mapboxgl.Marker({element:this.locationIcon(a,[r,o],t.id,e,i)}).setLngLat([r,o]).setPopup(c).addTo(this.clientMap);l.category=a,l.setVisible=function(e){var i=n.widget.find("#marker-".concat(t.id));e?i.show():i.hide()},this.neighborhoodMarkers.push(l)}},{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 r=t.neighborhoodMarkers[o];t.activeCategories.includes(r.category)||e?(r.setVisible(!0),i.extend(t.getMakerPosition(r))):r.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,r=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,r=function(){};return{s:r,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:r}}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,s=!0,c=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return s=t.done,t},e:function(t){c=!0,a=t}
1,f:function(){try{s||null==n.return||n.return()}finally{if(c)throw a}}}}(n);try{for(r.s();!(o=r.n()).done;){o.value.contentBoxSize&&e.resize(),t.resize()}}catch(t){r.e(t)}finally{r.f()}})).observe(n)}},{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",c)},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 r=o.offset().top;r+o.outerHeight()>=e&&r<=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=[],r=0;r<this.maxPhotoCards;r++)if(this.widgetPhotoCards.eq(r).length){var a=n-(this.widgetPhotoCards.eq(r).find(this.photoCardContainer).offset().top+this.widgetPhotoCards.eq(r).find(this.photoCardContainer).outerHeight());o.push(a)}var s=Math.min.apply(null,o);this.widget.find(".photo-cards-mosaic-container").css("margin-bottom",-s)}}}
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 r=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(r,")")),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)}},e={};function i(n){var o=e[n];if(void 0!==o)return o.exports;var r=e[n]={exports:{}};return t[n](r,r.exports,i),r.exports}i(799),i(48),i(554),i(180),i(61),i(355),i(569),i(916),i(236),i(774),i(144);i(331)}();
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.