1(self.webpackChunkglobal=self.webpackChunkglobal||[]).push([[298],{6841:function(e,o,t){var n=t(1699),l=t(582),s=t(5075),c=t(9716),t=(0,n.A)(function e(o,t,n,i,r){var a=this,o=((0,l.A)(this,e),this.modalButton=o,this.modalWindow=t,this.modalData=n,this.modalClose=i,this.modalUniqueCount=r,this.modalBtnCount=0,(this.modalWindowCount=0,s._)());this.modalButton.forEach(function(e){a.modalBtnCount++,e.setAttribute(n,r+a.modalBtnCount)}),this.modalWindow.forEach(function(e){a.modalWindowCount++,e.setAttribute("id",r+a.modalWindowCount)}),this.modalVideo=Array.prototype.slice.call(document.querySelectorAll(".js-hero-modal__content video")),this.modalVimeoPlayer=document.querySelector(".js-vimeo-hero-video"),this.modalVimeoPlayer?this.vimeoPlayer=new c.A(this.modalVimeoPlayer):(console.warn("No Vimeo iframe found on the page."),this.vimeoPlayer=null),o.init({onShow:function(){a.vimeoPlayer&&a.vimeoPlayer.play().catch(function(e){console.error("Error playing Vimeo video:",e)}),0<a.modalVideo.length&&a.modalVideo.forEach(function(e){e.play()})},onClose:function(){a.vimeoPlayer?(a.vimeoPlayer.pause().catch(function(e){console.error("Error pausing Vimeo video:",e)}),a.vimeoPlayer.setCurrentTime(0).catch(function(e){console.error("Error resetting Vimeo video to start:",e)})):console.warn("No Vimeo player available on modal close."),0<a.modalVideo.length&&a.modalVideo.forEach(function(e){e.pause(),e.currentTime=0})},openTrigger:n,closeTrigger:i,openClass:"is-open",disableScroll:!0,disableFocus:!1,awaitOpenAnimation:!0,awaitCloseAnimation:!0,debugMode:!1})});o.default=t},5075:function(e,o,t){function n(e,o){for(var t=0;t<o.length;t++){var n=o[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function f(e){return(e=>{if(Array.isArray(e))return i(e)})(e)||(e=>{if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)})(e)||((e,o)=>{var t;if(e)return"string"==typeof e?i(e,o):"Map"===(t="Object"===(t=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:t)||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?i(e,o):void 0})(e)||(()=>{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 i(e,o){(null==o||o>e.length)&&(o=e.length);for(var t=0,n=new Array(o);t<o;t++)n[t]=e[t];return n}t.d(o,{_:function(){return u}});r=["a[href]","area[href]",'input:not([disabled]):not([type="hidden"]):not([aria-hidden])',"select:not([disabled]):not([aria-hidden])","textarea:not([disabled]):not([aria-hidden])","button:not([disabled]):not([aria-hidden])","iframe","object","embed","[contenteditable]",'[tabindex]:not([tabindex^="-"])'],n(h.prototype,[{key:"registerTriggers",value:function(){for(var o=this,e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t.filter(Boolean).forEach(function(e){e.addEventListener("click",function(e){return o.showModal(e)})})}},{key:"showModal",value:function(){var o=this,e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null;this.activeElement=document.activeElement,this.modal.setAttribute("aria-hidden","false"),this.modal.classList.add(this.config.openClass),this.scrollBehaviour("disable"),this.addEventListeners(),this.config.awaitOpenAnimation?this.modal.addEventListener("animationend",function e(){o.modal.removeEventListener("animationend",e,!1),o.setFocusToFirstNode()},!1):this.setFocusToFirstNode(),this.config.onShow(this.modal,this.activeElement,e)}},{key:"closeModal",value:function(){var o,e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null,t=this.modal;this.modal.setAttribute("aria-hidden","true"),this.removeEventListeners(),this.scrollBehaviour("enable"),this.activeElement&&this.activeElement.focus&&this.activeElement.focus(),this.config.onClose(this.modal,this.activeElement,e),this.config.awaitCloseAnimation?(o=this.config.openClass,this.modal.addEventListener("animationend",function e(){t.classList.remove(o),t.removeEventListener("animationend",e,!1)},!1)):t.classList.remove(this.config.openClass)}},{key:"closeModalById",value:function(e){this.modal=document.getElementById(e),this.modal&&this.closeModal()}},{key:"scrollBehaviour",value:function(e){if(this.config.disableScroll){var o=document.querySelector("body");switch(e){case"enable":Object.assign(o.style,{overflow:""});break;case"disable":Object.assign(o.style,{overflow:"hidden"})}}}},{key:"addEventListeners",value:function(){this.modal.addEventListener("touchstart",this.onClick),this.modal.addEventListener("click",this.onClick),document.addEventListener("keydown",this.onKeydown)}},{key:"removeEventListeners",value:function(){this.modal.removeEventListener("touchstart",this.onClick),this.modal.removeEventListener("click",this.onClick),document.removeEventListener("keydown",this.onKeydown)}},{key:"onClick",value:function(e){(e.target.hasAttribute(this.config.closeTrigger)||e.target.parentNode.hasAttribute(this.config.closeTrigger))&&(e.preventDefault(),e.stopPropagation(),this.closeModal(e))}}
1,{key:"onKeydown",value:function(e){27===e.keyCode&&this.closeModal(e),9===e.keyCode&&this.retainFocus(e)}},{key:"getFocusableNodes",value:function(){var e=this.modal.querySelectorAll(r);return Array.apply(void 0,f(e))}},{key:"setFocusToFirstNode",value:function(){var e,o,t=this;this.config.disableFocus||0!==(e=this.getFocusableNodes()).length&&(0<(o=e.filter(function(e){return!e.hasAttribute(t.config.closeTrigger)})).length&&o[0].focus(),0===o.length)&&e[0].focus()}},{key:"retainFocus",value:function(e){var o,t=this.getFocusableNodes();0!==t.length&&(t=t.filter(function(e){return null!==e.offsetParent}),this.modal.contains(document.activeElement)?(o=t.indexOf(document.activeElement),e.shiftKey&&0===o&&(t[t.length-1].focus(),e.preventDefault()),!e.shiftKey&&0<t.length&&o===t.length-1&&(t[0].focus(),e.preventDefault())):t[0].focus())}}]),l=h,s=null,a=function(e){if(!document.getElementById(e))return console.warn("MicroModal: âSeems like you have missed %c'".concat(e,"'"),"background-color: #f8f9fa;color: #50596c;font-weight: bold;","ID somewhere in your code. Refer example below to resolve it."),console.warn("%cExample:","background-color: #f8f9fa;color: #50596c;font-weight: bold;",'<div class="modal" id="'.concat(e,'"></div>')),!1},c=function(e,o){if(e.length<=0&&(console.warn("MicroModal: âPlease specify at least one %c'micromodal-trigger'","background-color: #f8f9fa;color: #50596c;font-weight: bold;","data attribute."),console.warn("%cExample:","background-color: #f8f9fa;color: #50596c;font-weight: bold;",'<a href="#" data-micromodal-trigger="my-modal"></a>')),o)for(var t in o)a(t);return!0};var r,l,s,a,c,t={init:function(e){var t,n,o=Object.assign({},{openTrigger:"data-micromodal-trigger"},e),e=f(document.querySelectorAll("[".concat(o.openTrigger,"]"))),i=(t=o.openTrigger,n=[],e.forEach(function(e){var o=e.attributes[t].value;void 0===n[o]&&(n[o]=[]),n[o].push(e)}),n);if(!0!==o.debugMode||!1!==c(e,i))for(var r in i){var a=i[r];o.targetModal=r,o.triggers=f(a),s=new l(o)}},show:function(e,o){o=o||{};o.targetModal=e,!0===o.debugMode&&!1===a(e)||(s&&s.removeEventListeners(),(s=new l(o)).showModal())},close:function(e){e?s.closeModalById(e):s.closeModal()}};function h(e){var o=e.targetModal,t=e.triggers,t=void 0===t?[]:t,n=e.onShow,n=void 0===n?function(){}:n,i=e.onClose,i=void 0===i?function(){}:i,r=e.openTrigger,r=void 0===r?"data-micromodal-trigger":r,a=e.closeTrigger,a=void 0===a?"data-micromodal-close":a,l=e.openClass,l=void 0===l?"is-open":l,s=e.disableScroll,s=void 0!==s&&s,c=e.disableFocus,c=void 0!==c&&c,d=e.awaitCloseAnimation,d=void 0!==d&&d,u=e.awaitOpenAnimation,u=void 0!==u&&u,e=e.debugMode,e=void 0!==e&&e;if(!(this instanceof h))throw new TypeError("Cannot call a class as a function");this.modal=document.getElementById(o),this.config={debugMode:e,disableScroll:s,openTrigger:r,closeTrigger:a,openClass:l,onShow:n,onClose:i,awaitCloseAnimation:d,awaitOpenAnimation:u,disableFocus:c},0<t.length&&this.registerTriggers.apply(this,f(t)),this.onClick=this.onClick.bind(this),this.onKeydown=this.onKeydown.bind(this)}"undefined"!=typeof window&&(window.MicroModal=t);var d=t;function u(){return d}},582:function(e,o,t){function n(e,o){if(!(e instanceof o))throw new TypeError("Cannot call a class as a function")}t.d(o,{A:function(){return n}})},1699:function(e,o,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e){e=((e,o)=>{if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0===t)return("string"===o?String:Number)(e);if("object"!=n(t=t.call(e,o||"default")))return t;throw new TypeError("@@toPrimitive must return a primitive value.")})(e,"string");return"symbol"==n(e)?e:e+""}function r(e,o){for(var t=0;t<o.length;t++){var n=o[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}function a(e,o,t){return o&&r(e.prototype,o),t&&r(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}t.d(o,{A:function(){return a}})}}]);
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.