1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[95736],{857:e=>{var t=function(e){var t;return!!e&&"object"==typeof e&&"[object RegExp]"!==(t=Object.prototype.toString.call(e))&&"[object Date]"!==t&&e.$$typeof!==n},n="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function r(e,t){return!1!==t.clone&&t.isMergeableObject(e)?a(Array.isArray(e)?[]:{},e,t):e}function o(e,t,n){return e.concat(t).map(function(e){return r(e,n)})}function i(e){return Object.keys(e).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[])}function s(e,t){try{return t in e}catch(e){return!1}}function a(e,n,l){(l=l||{}).arrayMerge=l.arrayMerge||o,l.isMergeableObject=l.isMergeableObject||t,l.cloneUnlessOtherwiseSpecified=r;var c,u,h=Array.isArray(n);return h!==Array.isArray(e)?r(n,l):h?l.arrayMerge(e,n,l):(u={},(c=l).isMergeableObject(e)&&i(e).forEach(function(t){u[t]=r(e[t],c)}),i(n).forEach(function(t){(!s(e,t)||Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))&&(s(e,t)&&c.isMergeableObject(n[t])?u[t]=(function(e,t){if(!t.customMerge)return a;var n=t.customMerge(e);return"function"==typeof n?n:a})(t,c)(e[t],n[t],c):u[t]=r(n[t],c))}),u)}a.all=function(e,t){if(!Array.isArray(e))throw Error("first argument should be an array");return e.reduce(function(e,n){return a(e,n,t)},{})},e.exports=a},736:(e,t,n)=>{n.r(t),n.d(t,{default:()=>s});var r=n(890),o=n(374);function i(e){return 1*String(e).replace(/\D/g,"")}class s extends r.Z{init(){this._initialized=!1,this._pendingOpen=!1,this._fetchStarted=!1;let e="hasShown"===o.Z.getItem(this.options.cookieName)||"hasShown"===sessionStorage.getItem(this.options.cookieName);"#nfxNewsletterVoucher"!==window.location.hash&&e?this._wireLazyReopen():this._fetchAndInit()}_wireLazyReopen(){let e=this;e._lazyClickHandler=t=>{t&&t.target&&t.target.closest&&t.target.closest('[href="#nfxNewsletterVoucher"]')&&e._lazyOpen()},e._lazyHashHandler=()=>{"#nfxNewsletterVoucher"===window.location.hash&&e._lazyOpen()},document.addEventListener("click",e._lazyClickHandler),window.addEventListener("hashchange",e._lazyHashHandler)}_lazyOpen(){if(this._initialized){this.openPopup(this.el);return}
1this._pendingOpen=!0,this._lazyClickHandler&&document.removeEventListener("click",this._lazyClickHandler),this._lazyHashHandler&&window.removeEventListener("hashchange",this._lazyHashHandler),this._fetchAndInit()}_fetchAndInit(){let e=this;if(e._fetchStarted)return;e._fetchStarted=!0;let t=new XMLHttpRequest;t.addEventListener("readystatechange",()=>{if(t.readyState===XMLHttpRequest.DONE){let a;try{a=JSON.parse(t.responseText)}catch(e){return}if(!a||"object"!=typeof a)return;let{showCookie:l}=a,c=o.Z.getItem("cookie-preference"),u=o.Z.getItem(e.options.cookieName);a.delayTime;let h=!0;if(a.startDate){var n=Date.parse(a.startDate),r=Date.parse(a.endDate),i=6e4*new Date().getTimezoneOffset(),s=Date.parse(new Date(Date.now()-i).toISOString().slice(0,-1)+"+00:00");h=r?s>n&&s<r:s>n}if(a.customStyle&&a.customStyle.length>0){let e=document.head||document.getElementsByTagName("head")[0],t=document.createElement("style");e.appendChild(t),t.type="text/css",t.styleSheet?t.styleSheet.cssText=a.customStyle:t.appendChild(document.createTextNode(a.customStyle))}let d="#nfxNewsletterVoucher"===location.hash||a.show&&h&&(l&&!u||c&&(u&&"notShown"===u||0===a.cookieTime)||"session"===a.cacheMode);e.generatePopup(a,d),e.handleFormSubmit(),e._initialized=!0,e._pendingOpen&&e.openPopup(e.el)}}),t.open("GET",e.el.getAttribute("data-nfx-newsletter-voucher-path")),t.send()}generatePopup(e,t){let n,r;let s=this,a=()=>{s.el.classList.add("close"),"session"===e.cacheMode&&0!==e.cookieTime?sessionStorage.setItem(s.options.cookieName,"hasShown"):"cookie"===e.cacheMode&&e.cookieTime>0&&o.Z.setItem(s.options.cookieName,"hasShown",e.cookieTime),setTimeout(function(){s.el.classList.remove("open")},900)},l=s.el.querySelector(".nfx-newsletter-voucher-overlay");l.style.backgroundColor=e.overlayColor,l.style.opacity=e.overlayOpacity,l.addEventListener("click",a);let c=s.el.querySelector(".nfx-newsletter-voucher-dialog");window.innerWidth>991?(n=e.desktopPopupWidth+"px",r=e.desktopPopupHeight+"px"):(n=e.mobilePopupWidth+"px",r=e.mobilePopupHeight+"px"),c.style.width=n,c.style.height=r,c.style.marginTop="".concat(0-i(r)/2,"px"),c.style.marginLeft="".concat(0-i(n)/2,"px");let u=s.el.querySelector(".nfx-newsletter-voucher-container");if("exit"===e.mode&&(u.style.animationDelay="0s",t&&document.body.addEventListener("mouseleave",function(){"session"===e.cacheMode?sessionStorage.getItem("newsletterVoucherOpen")||(s.openPopup(s.el),sessionStorage.setItem("newsletterVoucherOpen",!0)):s.openPopup(s.el)})),u.style.backgroundColor=e.popupColor,u.classList.add(e.animation),e.popupImage){let t=s.el.querySelector(".nfx-newsletter-voucher-image");window.innerWidth>991?t.setAttribute("style",e.imageCSSdesktop):t.setAttribute("style",e.imageCSSmobile),t.setAttribute("src",e.popupImage)}if(e.popupImageLink&&e.popupImageLink.length>3){let t=s.el.querySelector(".nfx-newsletter-voucher-imagelink");t&&t.setAttribute("href",e.popupImageLink)}let h=s.el.querySelector(".nfx-newsletter-voucher-content",!1);h&&(e.content?h.innerHTML=e.content:h.style.display="none");let d=s.el.querySelector(".nfx-newsletter-voucher-content--inner");d?(d.setAttribute("style",e.contentCSS),d.parentNode.setAttribute("style",e.contentWrapCSS)):h&&h.setAttribute("style",e.contentCSS),s.el.querySelector(".nfx-newsletter-voucher-close").addEventListener("click",a),document.addEventListener("keydown",e=>{"Escape"===e.key&&s.el.classList.contains("open")&&a()});let p=()=>{let e=s.el.querySelector('input:not([type="hidden"]):not([type="checkbox"])');e&&setTimeout(()=>e.focus({preventScroll:!0}),150)};new MutationObserver(e=>{e.forEach(e=>{"class"===e.attributeName&&s.el.classList.contains("open")&&p()})}).observe(s.el,{attributes:!0,attributeFilter:["class"]}),document.body.append(s.el),document.addEventListener("click",function(e){e.target&&e.target.closest(".closeNewsletterVoucher")&&a(),e.target&&"#nfxNewsletterVoucher"===e.target.getAttribute("href")&&s.openPopup(s.el)}),t&&setTimeout(()=>{document.$emitter.subscribe("CookieConfiguration_Update",function(){s.onHideCookieBar(s)}),"normal"===e.mode&&this.openPopup(s.el)},1e3*e.delayTime)}openPopup(e){e.classList.add("open"),e.classList.remove("close"),"nfxNewsletterVoucher"in window&&"session"===s.cacheMode&&sessionStorage.setItem("nfxNewsletterVoucherOpen","true")}onHideCookieBar(e){"notShown"===o.Z.getItem(e.options.cookieName)&&this.openPopup(e.el)}handleFormSubmit(){let e=document.getElementById("nfx-newsletter-voucher-content--newsletter-form");if(!e)return null;let t=new XMLHttpRequest;t.addEventListener("readystatechange",()=>{if(t.readyState===XMLHttpRequest.DONE){let e;try{e=JSON.parse(t.responseText)}catch(t){e=null}Array.isArray(e)||(e=[{},{}]);let n=document.getElementsByClassName("nfx-newsletter-voucher-dialog");if(!n.length)return;let r="nfx-newsletter-voucher-confirm-alert",o=n[0].getElementsByClassName(r);o.length>0?o=o[0]:((o=document.createElement("div")).className=r,n[0].appendChild(o)),o.textContent=e.map(e=>{let{alert:t}=e;return t||""}).join("\n")}}),e.addEventListener("submit",function(n){if(n.preventDefault(),e.querySelectorAll('[name="privacy"]')[0].checked){t.open((e.getAttribute("method")||"post").toUpperCase(),e.getAttribute("action")||"form/newsletter",!0);let n=new FormData(e);t.send(n)}})}}s.options={cookieName:"nfxNewsletterVoucher"}}
1,374:(e,t,n)=>{n.d(t,{Z:()=>r});class r{static isSupported(){return"undefined"!==document.cookie}static setItem(e,t,n){if(null==e)throw Error("You must specify a key to set a cookie");let r=new Date;r.setTime(r.getTime()+864e5*n);let o="";"https:"===location.protocol&&(o="secure"),document.cookie="".concat(e,"=").concat(t,";expires=").concat(r.toUTCString(),";path=/;sameSite=lax;").concat(o)}static getItem(e){if(!e)return!1;let t=e+"=",n=document.cookie.split(";");for(let e=0;e<n.length;e++){let r=n[e];for(;" "===r.charAt(0);)r=r.substring(1);if(0===r.indexOf(t))return r.substring(t.length,r.length)}return!1}static removeItem(e){document.cookie="".concat(e,"= ; expires = Thu, 01 Jan 1970 00:00:00 GMT;path=/")}static key(){return""}static clear(){}}},890:(e,t,n)=>{n.d(t,{Z:()=>l});var r=n(857),o=n.n(r);class i{static ucFirst(e){return e.charAt(0).toUpperCase()+e.slice(1)}static lcFirst(e){return e.charAt(0).toLowerCase()+e.slice(1)}static toDashCase(e){return e.replace(/([A-Z])/g,"-$1").replace(/^-/,"").toLowerCase()}static toLowerCamelCase(e,t){let n=i.toUpperCamelCase(e,t);return i.lcFirst(n)}static toUpperCamelCase(e,t){return t?e.split(t).map(e=>i.ucFirst(e.toLowerCase())).join(""):i.ucFirst(e.toLowerCase())}static parsePrimitive(e){try{return/^\d+(.|,)\d+$/.test(e)&&(e=e.replace(",",".")),JSON.parse(e)}catch(t){return e.toString()}}}class s{static isNode(e){return"object"==typeof e&&null!==e&&(e===document||e===window||e instanceof Node)}static hasAttribute(e,t){if(!s.isNode(e))throw Error("The element must be a valid HTML Node!");return"function"==typeof e.hasAttribute&&e.hasAttribute(t)}static getAttribute(e,t){let n=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(n&&!1===s.hasAttribute(e,t))throw Error('The required property "'.concat(t,'" does not exist!'));if("function"!=typeof e.getAttribute){if(n)throw Error("This node doesn't support the getAttribute function!");return}return e.getAttribute(t)}static getDataAttribute(e,t){let n=!(arguments.length>2)||void 0===arguments[2]||arguments[2],r=t.replace(/^data(|-)/,""),o=i.toLowerCamelCase(r,"-");if(!s.isNode(e)){if(n)throw Error("The passed node is not a valid HTML Node!");return}if(void 0===e.dataset){if(n)throw Error("This node doesn't support the dataset attribute!");return}let a=e.dataset[o];if(void 0===a){if(n)throw Error('The required data attribute "'.concat(t,'" does not exist on ').concat(e,"!"));return a}return i.parsePrimitive(a)}static querySelector(e,t){let n=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(n&&!s.isNode(e))throw Error("The parent node is not a valid HTML Node!");let r=e.querySelector(t)||!1;if(n&&!1===r)throw Error('The required element "'.concat(t,'" does not exist in parent node!'));return r}static querySelectorAll(e,t){let n=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(n&&!s.isNode(e))throw Error("The parent node is not a valid HTML Node!");let r=e.querySelectorAll(t);if(0===r.length&&(r=!1),n&&!1===r)throw Error('At least one item of "'.concat(t,'" must exist in parent node!'));return r}static getFocusableElements(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body;return e.querySelectorAll('\n input:not([tabindex^="-"]):not([disabled]):not([type="hidden"]),\n select:not([tabindex^="-"]):not([disabled]),\n textarea:not([tabindex^="-"]):not([disabled]),\n button:not([tabindex^="-"]):not([disabled]),\n a[href]:not([tabindex^="-"]):not([disabled]),\n [tabindex]:not([tabindex^="-"]):not([disabled])\n ')}static getFirstFocusableElement(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body;return this.getFocusableElements(e)[0]}static getLastFocusableElement(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,t=this.getFocusableElements(e);return t[t.length-1]}}class a{publish(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=new CustomEvent(e,{detail:t,cancelable:n});return this.el.dispatchEvent(r),r}subscribe(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this,o=e.split("."),i=n.scope?t.bind(n.scope):t;if(n.once&&!0===n.once){let t=i;i=function(n){r.unsubscribe(e),t(n)}}return this.el.addEventListener(o[0],i),this.listeners.push({splitEventName:o,opts:n,cb:i}),!0}unsubscribe(e){let t=e.split(".");return this.listeners=this.listeners.reduce((e,n)=>([...n.splitEventName].sort().toString()===t.sort().toString()?this.el.removeEventListener(n.splitEventName[0],n.cb):e.push(n),e),[]),!0}
1reset(){return this.listeners.forEach(e=>{this.el.removeEventListener(e.splitEventName[0],e.cb)}),this.listeners=[],!0}get el(){return this._el}set el(e){this._el=e}get listeners(){return this._listeners}set listeners(e){this._listeners=e}constructor(e=document){this._el=e,e.$emitter=this,this._listeners=[]}}class l{init(){throw Error('The "init" method for the plugin "'.concat(this._pluginName,'" is not defined.'))}update(){}_init(){this._initialized||(this.init(),this._initialized=!0)}_update(){this._initialized&&this.update()}_mergeOptions(e){let t=i.toDashCase(this._pluginName),n=s.getDataAttribute(this.el,"data-".concat(t,"-config"),!1),r=s.getAttribute(this.el,"data-".concat(t,"-options"),!1),a=[this.constructor.options,this.options,e];n&&a.push(window.PluginConfigManager.get(this._pluginName,n));try{r&&a.push(JSON.parse(r))}catch(e){throw console.error(this.el),Error('The data attribute "data-'.concat(t,'-options" could not be parsed to json: ').concat(e.message))}return o().all(a.filter(e=>e instanceof Object&&!(e instanceof Array)).map(e=>e||{}))}_registerInstance(){window.PluginManager.getPluginInstancesFromElement(this.el).set(this._pluginName,this),window.PluginManager.getPlugin(this._pluginName,!1).get("instances").push(this)}_getPluginName(e){return e||(e=this.constructor.name),e}constructor(e,t={},n=!1){if(!s.isNode(e))throw Error("There is no valid element given.");this.el=e,this.$emitter=new a(this.el),this._pluginName=this._getPluginName(n),this.options=this._mergeOptions(t),this._initialized=!1,this._registerInstance(),this._init()}}}}]);
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.