PageSourceSearch

https://www.viega.de/etc.clientlibs/viega-frontend/clientlibs/main…-17482c69df2cf8ad4afb03355bd4d275-lc.min.js

js viega.de collected 2026-10-02 06:23:27 UTC 728,589 bytes, 3 lines download raw bytes

1/*! For license information please see main.js.LICENSE.txt */
2!function(){var t,r={75302:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return h}});r(52675),r(89463),r(2259),r(45700),r(23792),r(89572),r(2892),r(40875),r(26099),r(60825),r(47764),r(23500),r(62953);var n=r(13368),o=r(18248);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},i(t)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,p(n.key),n)}}function u(t,e,r){return e=s(e),function(t,e){if(e&&("object"==i(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,c()?Reflect.construct(e,r||[],s(t).constructor):e.apply(t,r))}function c(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(c=function(){return!!t})()}
2function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}function l(t,e){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},l(t,e)}function f(t,e,r){return(e=p(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function p(t){var e=function(t,e){if("object"!=i(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==i(e)?e:e+""}var h=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),u(this,e,arguments)}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}(e,t),function(t,e,r){return e&&a(t.prototype,e),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"connect",value:function(){this._bindEvents()}},{key:"_bindEvents",value:function(){var t=this;this.controllerCheckboxTarget.addEventListener("change",function(r){r.target.checked?t.element.querySelectorAll(e.checkboxSelector+"~ *").forEach(function(t){t.classList.remove(o.A.CSS.IS_DISABLED),t.querySelectorAll("input").forEach(function(t){t.removeAttribute("disabled")})}):t.element.querySelectorAll(e.checkboxSelector+"~ *").forEach(function(t){t.classList.add(o.A.CSS.IS_DISABLED),t.classList.remove(o.A.CSS.HAS_ERROR),t.querySelectorAll("input").forEach(function(t){t.setAttribute("disabled","")})})})}}])}(n.xI);f(h,"targets",["controllerCheckbox"]),f(h,"checkboxSelector",".c-elementaccesscontroller__checkbox")},34348:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return y}});r(52675),r(89463),r(2259),r(45700),r(23418),r(23792),r(34782),r(89572),r(62010),r(2892),r(40875),r(26099),r(60825),r(27495),r(38781),r(47764),r(62953);var n=r(13368),o=r(18248);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},i(t)}function a(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return u(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}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 i,a=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){c=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(c)throw i}}}}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function c(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,h(n.key),n)}}function s(t,e,r){return e=f(e),function(t,e){if(e&&("object"==i(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,l()?Reflect.construct(e,r||[],f(t).constructor):e.apply(t,r))}function l(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(l=function(){return!!t})()}function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}
2function p(t,e){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},p(t,e)}function h(t){var e=function(t,e){if("object"!=i(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==i(e)?e:e+""}var y=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),s(this,e,arguments)}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&p(t,e)}(e,t),function(t,e,r){return e&&c(t.prototype,e),r&&c(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"handleButtonClick",value:function(t){this._toggleIcon(),this._type=this.toggleButtonTarget.dataset.type,this._functionName="_toggle"+this._type[0].toUpperCase()+this._type.slice(1),"function"==typeof this[this._functionName]&&this[this._functionName]()}},{key:"_toggleIcon",value:function(){if(this.toggleButtonTarget.children.length>1){var t,e=a(this.toggleButtonTarget.children);try{for(e.s();!(t=e.n()).done;){t.value.classList.toggle(o.A.CSS.IS_ACTIVE)}}catch(t){e.e(t)}finally{e.f()}}}},{key:"_toggleBookmark",value:function(){}},{key:"_toggleGrid",value:function(){}}])}(n.xI);!function(t,e,r){(e=h(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}(y,"targets",["toggleButton"])},83846:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return y}});r(52675),r(89463),r(2259),r(45700),r(23792),r(89572),r(2892),r(40875),r(79432),r(26099),r(60825),r(47764),r(62953);var n=r(13368),o=r(18248),i=r(29808),a=r(74692);function u(t){return u="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},u(t)}function c(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,h(n.key),n)}}function s(t,e,r){return e=f(e),function(t,e){if(e&&("object"==u(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,l()?Reflect.construct(e,r||[],f(t).constructor):e.apply(t,r))}function l(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(l=function(){return!!t})()}function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}function p(t,e){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},p(t,e)}function h(t){var e=function(t,e){if("object"!=u(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==u(e)?e:e+""}var y=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),s(this,e,arguments)}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&p(t,e)}(e,t),function(t,e,r){return e&&c(t.prototype,e),r&&c(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"connect",value:function(){var t=this.element.getAttribute("data-has-consentmanager");this._hasConsentManager=!t||"true"===t,!0===this._hasConsentManager?(this._updateHubspotFormVisbility(!0),a(window).on(o.A.EVENTS.CONSENT.CONSENT_CHANGED,this._handleConsentChanged.bind(this))):(this._consentGiven=!0,this._addHubspotScriptElement(),this._updateItemVisibility(!0,!1),a(window).off(o.A.EVENTS.CONSENT.CONSENT_CHANGED))}},{key:"onHubspotScriptLoad",value:function(){var t,e=!0;try{t=JSON.parse(this.configTarget.innerText)}catch(t){e=!1}if(e){var r="";t.css&&(r=t.css),hbspt?(hbspt.forms.create({portalId:t.portalId,formId:t.formId,target:t.target,css:r}),this._scriptLoaded=!0):window.location.reload()}}},{key:"_addHubspotScriptElement",value:function(){var t=document.createElement("script");t.src=this.data.get("hubspot-script-path"),window._onHubspotScriptLoad=this.onHubspotScriptLoad.bind(this),t.onload=function(){window._onHubspotScriptLoad()},this.element.appendChild(t)}},{key:"_handleConsentChanged",value:function(t,e){this._consentGiven=(0,i.DG)("hubspot",e.details),this._consentGiven?(this._updateItemVisibility(!0,!1),this._scriptLoaded||this._addHubspotScriptElement()):this._updateItemVisibility(!1,!0)}},{key:"_updateItemVisibility",value:function(t,e){this._updatePlaceholderVisibility(t),this._updateHubspotFormVisbility(e)}},{key:"_updatePlaceholderVisibility",value:function(t){this.hasPlaceholderTarget&&(t?this.placeholderTarget.classList.add(o.A.CSS.IS_HIDDEN):this.placeholderTarget.classList.remove(o.A.CSS.IS_HIDDEN))}},{key:"_updateHubspotFormVisbility",value:function(t){t?this.hubspotContainerTarget.classList.add(o.A.CSS.IS_HIDDEN):this.hubspotContainerTarget.classList.remove(o.A.CSS.IS_HIDDEN)}}])}(n.xI);!function(t,e,r){(e=h(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}(y,"targets",["config","hubspotContainer","placeholder"])},25954:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return h}});r(52675),r(89463),r(2259),r(45700),r(28706),r(23792),r(89572),r(2892),r(40875),r(26099),r(60825),r(84864),r(27495),r(38781),r(47764),r(5746),r(11392),r(23500),r(62953),r(3296),r(27208),r(48408);var n=r(13368),o=r(29808);r(74692),r(18248);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},i(t)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,p(n.key),n)}}function u(t,e,r){return e=s(e),function(t,e){if(e&&("object"==i(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,c()?Reflect.construct(e,r||[],s(t).constructor):e.apply(t,r))}function c(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(c=function(){return!!t})()}
2function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}function l(t,e){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},l(t,e)}function f(t,e,r){return(e=p(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function p(t){var e=function(t,e){if("object"!=i(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==i(e)?e:e+""}var h=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return f(t=u(this,e,[].concat(n)),"_iframeType",""),f(t,"_iframeUrl",""),t}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}(e,t),function(t,e,r){return e&&a(t.prototype,e),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"connect",value:function(){this._setIframeType(),this._iframeType===e.VIEGA_LEAD_FLOW_TYPE&&(this._setIframeUrlParams(),this._addEventlistenerForHeightCalc())}},{key:"_setIframeType",value:function(){var t=this.containerTarget.querySelector("div.m-iframe__video");t&&(this._iframeType=t.getAttribute("data-iframe-type"))}},{key:"_setIframeUrlParams",value:function(){var t=new URLSearchParams(window.location.search),r=this.containerTarget.firstElementChild,n=r.firstElementChild,o="true"===r.dataset.hasConsentmanager?e.DATA_SOURCE_ATTRIBUTE:e.SOURCE_ATTRIBUTE,i=new URL(n.getAttribute(o),window.location.href);e.UTM_PARAMETER_LIST.forEach(function(e){var r=t.get(e);null!==r&&i.searchParams.set(e,r)}),this._setAbsoluteRedirectDestination(i),this._iframeUrl=i.toString(),n.setAttribute(o,this._iframeUrl)}},{key:"_setAbsoluteRedirectDestination",value:function(t){var r=t.searchParams.get(e.REDIRECT_DESTINATION_PARAM);r&&r.startsWith("/")&&t.searchParams.set(e.REDIRECT_DESTINATION_PARAM,new URL(r,window.location.origin).toString())}},{key:"_addEventlistenerForHeightCalc",value:function(){var t=this,r=this.containerTarget.querySelector("div.m-iframe");r&&window.addEventListener("message",function(n){if(t._isTrustedMessageEvent(n)){var o=t._getHeightFromEventData(n.data);if(t._matchesHeightPattern(o))r.style.setProperty("height",o,"important"),r.style.setProperty("padding-top","0px","important");else if(t._matchesSubmitSuccessPattern(n)){var i=document.querySelector("div.c-integration").getBoundingClientRect().top+window.scrollY;window.scrollTo({top:i-e.HEADER_OFFSET,behavior:"auto"})}}})}},{key:"_isTrustedMessageEvent",value:function(t){var e=this.containerTarget.querySelector("iframe.m-iframe__iframe");if(!e||t.source!==e.contentWindow)return!1;if(!(0,o.Xw)(t.origin))return!1;var r=this._getIframeUrl(e);if(!r)return!1;try{var n=new URL(r);return t.origin===n.origin&&this._matchesEventUrl(t,n)}catch(t){return!1}}},{key:"_getIframeUrl",value:function(t){return t.getAttribute(e.SOURCE_ATTRIBUTE)||t.getAttribute(e.DATA_SOURCE_ATTRIBUTE)}},{key:"_matchesEventUrl",value:function(t,e){var r,n=null==t||null===(r=t.data)||void 0===r?void 0:r.url;if(!n)return!0;try{return new URL(n).href===e.href}catch(t){return!1}}},{key:"_getHeightFromEventData",value:function(t){var r=new RegExp(e.HEIGHT_PATTERN);return r.test(t)?t:t&&r.test(t.height)?t.height:null}},{key:"_matchesHeightPattern",value:function(t){return new RegExp(e.HEIGHT_PATTERN).test(t)}},{key:"_matchesSubmitSuccessPattern",value:function(t){return t.data===e.SUBMIT_PATTERN}}])}(n.xI);f(h,"targets",["container"]),f(h,"HEIGHT_PATTERN","^(?:[1-9]|\\d{2,3}|[1-4]\\d{3}|5000)px$"),f(h,"VIEGA_LEAD_FLOW_TYPE","viegaleadflow"),f(h,"REFERRER_PARAM","referrer"),f(h,"SOURCE_ATTRIBUTE","src"),f(h,"DATA_SOURCE_ATTRIBUTE","data-src"),f(h,"UTM_PARAMETER_LIST",["utm_medium","utm_source","utm_campaign","utm_content","utm_term"]),f(h,"REDIRECT_DESTINATION_PARAM","url_redirect_destination"),f(h,"SUBMIT_PATTERN","submitSuccess"),f(h,"HEADER_OFFSET",150)},95610:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return h}});r(52675),r(89463),r(2259),r(45700),r(23792),r(89572),r(2892),r(40875),r(26099),r(60825),r(47764),r(62953);var n=r(13368),o=r(74692),i=r.n(o);function a(t){return a="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},a(t)}function u(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,p(n.key),n)}}function c(t,e,r){return e=l(e),function(t,e){if(e&&("object"==a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}
2(t,s()?Reflect.construct(e,r||[],l(t).constructor):e.apply(t,r))}function s(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(s=function(){return!!t})()}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}function f(t,e){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},f(t,e)}function p(t){var e=function(t,e){if("object"!=a(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==a(e)?e:e+""}var h=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),c(this,e,arguments)}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&f(t,e)}(e,t),function(t,e,r){return e&&u(t.prototype,e),r&&u(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"checkboxClick",value:function(t){var e=i()(this.element.querySelector(".js-c-linkbuttonwithconfirmation__button"));t.currentTarget.checked?(e.addClass("a-button--secondary"),e.removeClass("a-button--inactive")):t.currentTarget.checked||(e.removeClass("a-button--secondary"),e.addClass("a-button--inactive"))}}])}(n.xI);!function(t,e,r){(e=p(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}(h,"targets",[])},36874:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return m}});r(52675),r(89463),r(2259),r(45700),r(28706),r(23792),r(89572),r(2892),r(40875),r(26099),r(60825),r(47764),r(48718),r(62953);var n=r(13368),o=r(47519),i=r(80133),a=r(14229),u=r(18248),c=r(22849);function s(t){return s="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},s(t)}function l(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,v(n.key),n)}}function f(t,e,r){return e=h(e),function(t,e){if(e&&("object"==s(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,p()?Reflect.construct(e,r||[],h(t).constructor):e.apply(t,r))}function p(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(p=function(){return!!t})()}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}function y(t,e){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},y(t,e)}function d(t,e,r){return(e=v(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function v(t){var e=function(t,e){if("object"!=s(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==s(e)?e:e+""}var m=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return d(t=f(this,e,[].concat(n)),"fullscreenStateClass","c-productrenderer--is-fullscreen"),t}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&y(t,e)}(e,t),function(t,e,r){return e&&l(t.prototype,e),r&&l(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}
2(e,[{key:"connect",value:function(){this.debug=!1}},{key:"disconnect",value:function(){this.removeEventListeners()}},{key:"init3dViewer",value:function(){var t=this,e=this.element.querySelector("button.c-productrenderer__fallback-cta");if(null!=e&&e.hasAttribute("id")){var r=e.getAttribute("id");(0,c.DF)(r)}this.container=this.viewportTarget,this.scene=new o.Z58,this.camera=this.createCamera(),this.controls=this.createControls(this.camera,this.container),this.lights=this.createLights(this.scene,this.camera),this.renderer=this.createRenderer(this.container),this.model=this.loadModel(this.data.get("model"),this.scene),this.renderer.setAnimationLoop(function(){t.render()}),this.addEventListeners()}},{key:"createCamera",value:function(){var t=this.container.clientWidth/this.container.clientHeight,e=new o.ubm(50,t,1,1e4);return e.position.set(0,0,200),e.updateProjectionMatrix(),e}},{key:"createControls",value:function(t,e){var r=new a.N(t,e);return r.autoRotate=!0,r.autoRotateSpeed=6,r.screenSpacePanning=!0,r}},{key:"createLights",value:function(t,e){var r=new o.$p8(2105376);t.add(r);var n=new o.nCl(16777215);n.position.set(0,1500,0),n.castShadow=!0,n.shadow.mapSize.width=1024,n.shadow.mapSize.height=1024,n.shadow.camera.near=500,n.shadow.camera.far=4e3,n.shadow.camera.fov=30,n.intensity=0,t.add(n);var i=new o.ZyN(16772829,1.1);return i.position.copy(e.position),i.intensity=1,t.add(i),{ambientLight:r,spotLight:n,directionalLight:i}}},{key:"createRenderer",value:function(t){var e=new o.JeP({antialias:!0});return e.setClearColor(14804967),this.setRendererSize(e,t),t.innerHTML="",t.appendChild(e.domElement),e}},{key:"loadModel",value:function(t,e){var r=this;(new i.B).load(t,function(t){r.progressTarget.classList.remove(u.A.CSS.IS_LOADING);var n=t.scene,i=r.getScaleFactor(n);n.scale.set(i,i,i),n.rotateX(-Math.PI/2);var a=(new o.NRn).setFromObject(n).getCenter(new o.Pq0);return n.position.sub(a),e.add(n),r.element.classList.add("c-productrenderer--loaded"),r.debug&&r.debugHelper(r.scene,r.camera,n),n},function(t){r.progressTarget.classList.add(u.A.CSS.IS_LOADING),r.progressTarget.max=t.total,r.progressTarget.value=t.loaded},function(t){r.progressTarget.classList.remove(u.A.CSS.IS_LOADING)})}},{key:"render",value:function(){this.lights.directionalLight.position.copy(this.camera.position),this.controls.update(),this.renderer.render(this.scene,this.camera)}},{key:"setRendererSize",value:function(t,e){var r=e.clientWidth,n=e.clientHeight;t.setSize(r,n)}},{key:"getScaleFactor",value:function(t){var e=0,r=0,n=0,i=0,a=0,u=0;t.traverse(function(t){t instanceof o.eaF&&(t.geometry.computeBoundingBox(),t.geometry.boundingBox&&(e=Math.min(e,t.geometry.boundingBox.min.x),r=Math.max(r,t.geometry.boundingBox.max.x),n=Math.min(n,t.geometry.boundingBox.min.y),i=Math.max(i,t.geometry.boundingBox.max.y),a=Math.min(a,t.geometry.boundingBox.min.z),u=Math.max(u,t.geometry.boundingBox.max.z)))});var c=e-r,s=n-i,l=a-u;return 150/Math.sqrt(c*c+s*s+l*l)}},{key:"debugHelper",value:function(t,e,r){var n=new o.IWo(r,16711680);n.geometry.computeBoundingBox(),n.update(),t.add(n);var i=new o.IzY(10);t.add(i);var a=new o.WTh(e);t.add(a)}},{key:"toggleHelp",value:function(){this.helpTarget.classList.toggle("c-productrenderer__help--open")}},{key:"closeHelp",value:function(){this.helpTarget.classList.remove("c-productrenderer__help--open")}},{key:"toggleAutoRotate",value:function(){this.rotateTarget.classList.toggle(u.A.CSS.IS_PAUSED),this.controls.autoRotate=!this.controls.autoRotate}},{key:"stopAutoRotate",value:function(){!0===this.controls.autoRotate&&(this.rotateTarget.classList.add(u.A.CSS.IS_PAUSED),this.controls.autoRotate=!1)}},{key:"toggleFullscreen",value:function(){this.element.classList.contains(this.fullscreenStateClass)?this.leaveFullscreen():this.enterFullscreen()}},{key:"enterFullscreen",value:function(){this.element.classList.add(this.fullscreenStateClass),document.body.classList.add(u.A.CSS.IS_ACTIVE_SHADER),this.onResize(),this.escapeFullscreen=this.escapeFullscreen.bind(this),document.addEventListener("keyup",this.escapeFullscreen)}},{key:"leaveFullscreen",value:function(){this.element.classList.remove(this.fullscreenStateClass),document.body.classList.remove(u.A.CSS.IS_ACTIVE_SHADER),this.resetViewport(),this.closeHelp(),this.onResize(),!1===this.controls.autoRotate&&this.toggleAutoRotate(),document.removeEventListener("keyup",this.escapeFullscreen)}},{key:"escapeFullscreen",value:function(t){var e=t.key||t.keyCode;"Escape"!==e&&"Esc"!==e&&27!==e||this.leaveFullscreen()}},{key:"resetViewport",value:function(){this.controls.reset()}},{key:"addEventListeners",value:function(){this.stopAutoRotate=this.stopAutoRotate.bind(this),this.renderer.domElement.addEventListener("click",this.stopAutoRotate),this.renderer.domElement.addEventListener("touchstart",this.stopAutoRotate),this.onResize=this.onResize.bind(this),window.addEventListener("resize",this.onResize)}},{key:"removeEventListeners",value:function(){this.renderer.domElement.removeEventListener("click",this.stopAutoRotate),this.renderer.domElement.removeEventListener("touchstart",this.stopAutoRotate),window.removeEventListener("resize",this.onResize)}},{key:"onResize",value:function(){this.camera.aspect=this.container.clientWidth/this.container.clientHeight,this.camera.updateProjectionMatrix(),this.setRendererSize(this.renderer,this.container)}}])}(n.xI);d(m,"targets",["viewport","progress","help","rotate"])},27356:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return y}});r(52675),r(89463),r(2259),r(45700),r(23418),r(23792),r(34782),r(89572),r(62010),r(2892),r(40875),r(26099),r(60825),r(27495),r(38781),r(47764),r(62953);var n=r(13368),o=r(18248);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},i(t)}function a(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return u(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}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 i,a=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){c=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(c)throw i}}}}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function c(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,h(n.key),n)}}function s(t,e,r){return e=f(e),function(t,e){if(e&&("object"==i(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,l()?Reflect.construct(e,r||[],f(t).constructor):e.apply(t,r))}function l(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(l=function(){return!!t})()}function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}
2function p(t,e){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},p(t,e)}function h(t){var e=function(t,e){if("object"!=i(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==i(e)?e:e+""}var y=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),s(this,e,arguments)}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&p(t,e)}(e,t),function(t,e,r){return e&&c(t.prototype,e),r&&c(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"handleThumbClick",value:function(t){var e,r=t.currentTarget,n=a(this.thumbTargets);try{for(n.s();!(e=n.n()).done;){e.value.classList.remove(o.A.CSS.IS_ACTIVE)}}catch(t){n.e(t)}finally{n.f()}r.classList.add(o.A.CSS.IS_ACTIVE)}}])}(n.xI);!function(t,e,r){(e=h(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}(y,"targets",["thumb"])},27644:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return g}});r(52675),r(89463),r(2259),r(45700),r(28706),r(50113),r(23418),r(23792),r(34782),r(89572),r(62010),r(2892),r(40875),r(79432),r(26099),r(60825),r(27495),r(38781),r(47764),r(25440),r(50778),r(12041),r(62953),r(48408);var n=r(13368),o=r(18248),i=r(75940),a=r(22849);function u(t){return u="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},u(t)}function c(t){return function(t){if(Array.isArray(t))return f(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||l(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 s(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=l(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}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 i,a=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}function l(t,e){if(t){if("string"==typeof t)return f(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(t,e):void 0}}function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function p(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,b(n.key),n)}}function h(t,e,r){return e=d(e),function(t,e){if(e&&("object"==u(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,y()?Reflect.construct(e,r||[],d(t).constructor):e.apply(t,r))}function y(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(y=function(){return!!t})()}function d(t){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},d(t)}function v(t,e){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},v(t,e)}function m(t,e,r){return(e=b(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function b(t){var e=function(t,e){if("object"!=u(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
2(t,"string");return"symbol"==u(e)?e:e+""}var g=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return m(t=h(this,e,[].concat(n)),"isActive",!1),m(t,"isWatchtlistAllCertificatesActive",!1),m(t,"_watchlistData",void 0),t}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&v(t,e)}(e,t),function(t,e,r){return e&&p(t.prototype,e),r&&p(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"watchlistData",get:function(){return this._watchlistData},set:function(t){this._watchlistData=t,this.data.set("watchlist",JSON.stringify(t)),this.updateState()}},{key:"initialize",value:function(){if(null!==this.data.get("watchlist")){this._watchlistData=JSON.parse(decodeURIComponent(this.data.get("watchlist").replace(/%22/g,"%27")));var t=this._watchlistData.image;t&&(this._watchlistData.image.name=this._provideURLWithEncodedQueryString(t.name)),this._watchlistData.link=this._provideURLWithEncodedQueryString(this._watchlistData.link)}}},{key:"connect",value:function(){null!=this._watchlistData&&i.l.subscribe(this.updateState.bind(this))}},{key:"updateState",value:function(){var t=!1,e="",r=this.element.querySelector("svg.a-svgicon--bookmark_active > title");t=Array.isArray(this._watchlistData)?i.l.findMultiple(this._watchlistData):i.l.find(this._watchlistData),r&&(e=r.innerHTML),Array.isArray(t)&&t.length===this._watchlistData.length||!Array.isArray(t)&&t?(this.isActive=!0,this.element.classList.add(o.A.CSS.IS_ACTIVE)):this.isWatchtlistAllCertificatesActive?(this.isActive=!0,this.element.classList.add(o.A.CSS.IS_ACTIVE),this.isWatchtlistAllCertificatesActive=!1):(this.isActive=!1,this.element.classList.remove(o.A.CSS.IS_ACTIVE),(r=this.element.querySelector("svg.a-svgicon--bookmark_inactive > title"))&&(e=r.innerHTML)),this.element.setAttribute("aria-label",e)}},{key:"handleButtonClick",value:function(t){var e;if(this._toggleIcon(),this._type=this.element.dataset.type,this._functionName="_toggle"+this._type[0].toUpperCase()+this._type.slice(1),"function"==typeof this[this._functionName]&&this[this._functionName](),null!==(e=this._watchlistData)&&void 0!==e&&e.id){var r=this.isActive?a.q_:a.qd,n=this._getParentAdobedataLayerId();(0,a.PR)(this._watchlistData,n,r),(0,a.Ax)((0,a.JE)(this._watchlistData.id))}}},{key:"_toggleIcon",value:function(){if(this.element.children.length>1){var t,e=s(this.element.children);try{for(e.s();!(t=e.n()).done;){t.value.classList.toggle(o.A.CSS.IS_ACTIVE)}}catch(t){e.e(t)}finally{e.f()}}}},{key:"_toggleBookmark",value:function(){if(this.isActive)Array.isArray(this._watchlistData)?i.l.remove.apply(i.l,c(this._watchlistData)):i.l.remove(this._watchlistData),this.isActive=!1;else if(this._watchlistData){var t=(new Date).toLocaleDateString(navigator.language,{year:"numeric",month:"2-digit",day:"2-digit"});Array.isArray(this._watchlistData)?this._saveWatchlistItems(t):(this._watchlistData.bookmark_date=t,this.watchlistData.link&&i.l.save(this._watchlistData)),this.isActive=!0}}},{key:"_toggleGrid",value:function(){this._toggleIcon()}},{key:"_provideURLWithEncodedQueryString",value:function(t){var e="";if(t){var r=t.split("?");e=r[0],r[1]&&(e+="?"+this._encodeQueryString(r[1]))}return e}},{key:"_encodeQueryString",value:function(t){var e,r="",n=s(new URLSearchParams(t).entries());try{for(n.s();!(e=n.n()).done;){var o=e.value;r+=o[0]+"="+encodeURIComponent(o[1]).replaceAll("%20","%2B")+"&"}}catch(t){n.e(t)}finally{n.f()}return r.replaceAll("&amp;","&")}},{key:"_saveWatchlistItems",value:function(t){var e,r=s(this._watchlistData);try{for(r.s();!(e=r.n()).done;){var n=e.value;n.link&&(this.isWatchtlistAllCertificatesActive=!0,n.bookmark_date=t,i.l.save(n))}}catch(t){r.e(t)}finally{r.f()}}},{key:"_getParentAdobedataLayerId",value:function(){var t,e,r,n,o;if(null!==(t=this.element.parentElement)&&void 0!==t&&t.hasAttribute("data-controller")){if("c-headline"===this.element.parentElement.dataset.controller)o=document.body.getAttribute("id")}else if(null!==(e=this.element.parentElement)&&void 0!==e&&e.classList.contains("m-watchlistflyoutteaser__logo-container"))o=document.body.getAttribute("id");else if("result"===(null===(r=this._watchlistData)||void 0===r?void 0:r.categoryId)&&null!==(n=this._watchlistData)&&void 0!==n&&n.adobeDataLayerParentId)o=this._watchlistData.adobeDataLayerParentId;else if(this.element.closest("div.m-teaserlistitem")){var i=this.element.closest("div.m-teaserlistitem");o=this._getAdobedataLayerIdFromElement(i)}else if(this.element.closest("a.m-teaserlistitem")){var a=this.element.closest("a.m-teaserlistitem");o=this._getAdobedataLayerIdFromElement(a)}else if(this.element.closest("div.m-teaserblog")){var u=this.element.closest("div.m-teaserblog");o=this._getAdobedataLayerIdFromElement(u)}else if(this.element.closest("div.m-table")){var c=this.element.closest("div.m-table");o=this._getAdobedataLayerIdFromElement(c)}return o}},{key:"_getAdobedataLayerIdFromElement",value:function(t){return null!=t&&t.hasAttribute("id")?t.getAttribute("id"):null!=t&&t.hasAttribute(a.QV)?t.getAttribute(a.QV):void 0}}])}(n.xI);m(g,"targets",[])},40696:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return l}});r(52675),r(89463),r(2259),r(45700),r(23792),r(89572),r(2892),r(40875),r(26099),r(60825),r(47764),r(62953);function n(t){return n="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},n(t)}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,s(n.key),n)}}function i(t,e,r){return e=u(e),function(t,e){if(e&&("object"==n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,a()?Reflect.construct(e,r||[],u(t).constructor):e.apply(t,r))}function a(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(a=function(){return!!t})()}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}
2function c(t,e){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},c(t,e)}function s(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var l=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),i(this,e,arguments)}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&c(t,e)}(e,t),function(t,e,r){return e&&o(t.prototype,e),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"initialize",value:function(){this._invokables=[]}},{key:"handleClick",value:function(t){this._invokables.each(function(t){return t()})}},{key:"register",value:function(t){"function"==typeof t&&this._invokables.push(t)}}])}(r(13368).xI);!function(t,e,r){(e=s(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}(l,"targets",[])},19198:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return l}});r(52675),r(89463),r(2259),r(45700),r(23792),r(89572),r(2892),r(40875),r(26099),r(60825),r(47764),r(62953);function n(t){return n="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},n(t)}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,s(n.key),n)}}function i(t,e,r){return e=u(e),function(t,e){if(e&&("object"==n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,a()?Reflect.construct(e,r||[],u(t).constructor):e.apply(t,r))}function a(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(a=function(){return!!t})()}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}function c(t,e){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},c(t,e)}function s(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var l=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),i(this,e,arguments)}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&c(t,e)}(e,t),function(t,e,r){return e&&o(t.prototype,e),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"changeValue",value:function(t){this.inputTarget.setAttribute("checked",t.currentTarget.checked)}}])}(r(13368).xI);!function(t,e,r){(e=s(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}(l,"targets",["input"])},34150:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return h}});r(52675),r(89463),r(2259),r(45700),r(23792),r(89572),r(2892),r(40875),r(26099),r(60825),r(47764),r(62953);var n=r(13368),o=r(69261),i=r(80063).i;function a(t){return a="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},a(t)}function u(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,p(n.key),n)}}function c(t,e,r){return e=l(e),function(t,e){if(e&&("object"==a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}
2(t,s()?Reflect.construct(e,r||[],l(t).constructor):e.apply(t,r))}function s(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(s=function(){return!!t})()}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}function f(t,e){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},f(t,e)}function p(t){var e=function(t,e){if("object"!=a(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==a(e)?e:e+""}var h=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),c(this,e,arguments)}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&f(t,e)}(e,t),function(t,e,r){return e&&u(t.prototype,e),r&&u(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"initialize",value:function(){this.data.get("zoomImage")&&(this.element.oncontextmenu=function(){return!1},new o.A(this.element,{sourceAttribute:"data-a-image-zoom-image",showWhitespaceAtEdges:!0,inlinePane:!0,containInl
2ine:!1,zoomFactor:2.5,touchDelay:500,hoverDelay:0,inlineOffsetX:i.MediaQuery.atLeast("large")?0:-50,inlineOffsetY:i.MediaQuery.atLeast("large")?0:-50}))}}])}(n.xI);!function(t,e,r){(e=p(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}(h,"targets",[])},68518:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return l}});r(52675),r(89463),r(2259),r(45700),r(23792),r(89572),r(2892),r(40875),r(26099),r(60825),r(47764),r(62953);function n(t){return n="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},n(t)}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,s(n.key),n)}}function i(t,e,r){return e=u(e),function(t,e){if(e&&("object"==n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,a()?Reflect.construct(e,r||[],u(t).constructor):e.apply(t,r))}function a(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(a=function(){return!!t})()}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}function c(t,e){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},c(t,e)}function s(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var l=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),i(this,e,arguments)}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&c(t,e)}(e,t),function(t,e,r){return e&&o(t.prototype,e),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"saveValue",value:function(t){this.inputTarget.setAttribute("value",t.currentTarget.value)}}])}(r(13368).xI);!function(t,e,r){(e=s(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}(l,"targets",["input"])},13540:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return h}});r(52675),r(89463),r(2259),r(45700),r(23792),r(89572),r(2892),r(40875),r(26099),r(60825),r(47764),r(62953);var n=r(13368),o=r(29808),i=r(18248);function a(t){return a="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},a(t)}function u(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,c(n.key),n)}}function c(t){var e=function(t,e){if("object"!=a(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==a(e)?e:e+""}function s(t,e,r){return e=f(e),function(t,e){if(e&&("object"==a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,l()?Reflect.construct(e,r||[],f(t).constructor):e.apply(t,r))}function l(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(l=function(){return!!t})()}function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}
2function p(t,e){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},p(t,e)}var h=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),s(this,e,arguments)}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&p(t,e)}(e,t),function(t,e,r){return e&&u(t.prototype,e),r&&u(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"handleCmpPrivacyClick",value:function(){(0,o.AT)(i.A.EVENTS.CONSENT.SHOW_SECOND_LAYER)}}])}(n.xI)},80990:function(t,r,n){"use strict";n.r(r),n.d(r,{default:function(){return y}});n(52675),n(89463),n(2259),n(45700),n(50113),n(23792),n(89572),n(2892),n(40875),n(79432),n(26099),n(58940),n(60825),n(47764),n(62953);var o=n(13368),i=n(75940),a=n(29808);function u(t){return u="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},u(t)}function c(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,h(n.key),n)}}function s(t,e,r){return e=f(e),function(t,e){if(e&&("object"==u(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,l()?Reflect.construct(e,r||[],f(t).constructor):e.apply(t,r))}function l(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(l=function(){return!!t})()}function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}function p(t,e){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},p(t,e)}function h(t){var e=function(t,e){if("object"!=u(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==u(e)?e:e+""}var y=function(t){function r(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r),s(this,r,arguments)}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&p(t,e)}(r,t),function(t,e,r){return e&&c(t.prototype,e),r&&c(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(r,[{key:"isEnabled",get:function(){return!this.inputTarget.disabled}},{key:"connect",value:function(){var t,r,n=!0;try{r=JSON.parse(e.currentTarget.dataset.watchlist),t=i.l.find(r)}catch(t){n=!1}n&&void 0!==t&&t.hasOwnProperty("quantity")&&(this.inputTarget.value=t.quantity)}},{key:"decreaseQuantity",value:function(t){this.isEnabled&&(Math.floor(this.inputTarget.value)>=1?this.inputTarget.value=Math.floor(this.inputTarget.value)-1:Math.floor(this.inputTarget.value)<0&&(this.inputTarget.value=0),(0,a.w3)(this.inputTarget,"change"))}},{key:"increaseQuantity",value:function(t){this.isEnabled&&(Math.floor(this.inputTarget.value<=0)?this.inputTarget.value=1:this.inputTarget.value=Math.floor(this.inputTarget.value)+1,(0,a.w3)(this.inputTarget,"change"))}},{key:"changeQuantity",value:function(t){var e=parseInt(t.currentTarget.value);if(e>=0&&void 0!==t.currentTarget.dataset.watchlist){var r,n,o=!0;try{r=JSON.parse(t.currentTarget.dataset.watchlist),n=i.l.find(r)}catch(t){o=!1}o&&r&&(r.quantity=e,void 0!==n&&i.l.save(r),r.bookmark_date=(new Date).toLocaleDateString(navigator.language,{year:"numeric",month:"2-digit",day:"2-digit"}),t.currentTarget.dataset.watchlist=JSON.stringify(r))}}}])}(o.xI);!function(t,e,r){(e=h(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}(y,"targets",["input"])},43042:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return l}});r(52675),r(89463),r(2259),r(45700),r(23792),r(89572),r(2892),r(40875),r(26099),r(60825),r(47764),r(62953);function n(t){return n="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},n(t)}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,s(n.key),n)}}function i(t,e,r){return e=u(e),function(t,e){if(e&&("object"==n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,a()?Reflect.construct(e,r||[],u(t).constructor):e.apply(t,r))}function a(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(a=function(){return!!t})()}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}
2function c(t,e){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},c(t,e)}function s(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var l=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),i(this,e,arguments)}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&c(t,e)}(e,t),function(t,e,r){return e&&o(t.prototype,e),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e)}(r(13368).xI);!function(t,e,r){(e=s(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}(l,"targets",[""])},40456:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return p}});r(52675),r(89463),r(2259),r(45700),r(23792),r(89572),r(2892),r(40875),r(26099),r(60825),r(47764),r(62953);var n=r(13368),o=r(18248);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},i(t)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,f(n.key),n)}}function u(t,e,r){return e=s(e),function(t,e){if(e&&("object"==i(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,c()?Reflect.construct(e,r||[],s(t).constructor):e.apply(t,r))}function c(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(c=function(){return!!t})()}
2function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}function l(t,e){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},l(t,e)}function f(t){var e=function(t,e){if("object"!=i(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==i(e)?e:e+""}var p=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),u(this,e,arguments)}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}(e,t),function(t,e,r){return e&&a(t.prototype,e),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"handleInteraction",value:function(t){this.inputTarget.classList.remove(o.A.CSS.HAS_PLACEHOLDER),this.inputTarget.options[this.inputTarget.selectedIndex].setAttribute("selected","")}},{key:"openValueLink",value:function(t){location.href=this.inputTarget.options[this.inputTarget.selectedIndex].value}}])}(n.xI);!function(t,e,r){(e=f(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}(p,"targets",["input"])},48196:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return l}});r(52675),r(89463),r(2259),r(45700),r(23792),r(89572),r(2892),r(40875),r(26099),r(58940),r(60825),r(47764),r(62953);function n(t){return n="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},n(t)}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,s(n.key),n)}}function i(t,e,r){return e=u(e),function(t,e){if(e&&("object"==n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,a()?Reflect.construct(e,r||[],u(t).constructor):e.apply(t,r))}function a(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(a=function(){return!!t})()}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}function c(t,e){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},c(t,e)}function s(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var l=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),i(this,e,arguments)}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&c(t,e)}(e,t),function(t,e,r){return e&&o(t.prototype,e),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"initialize",value:function(){this._initMaxLength()}},{key:"_initMaxLength",value:function(){this.textareaTarget.getAttribute("maxlength")&&this.textareaTarget.addEventListener("input",this._handleInput.bind(this))}},{key:"_handleInput",value:function(){var t=this.textareaTarget.value.length,e=parseInt(this.textareaTarget.getAttribute("maxlength"),10)-t;this.maxLengthAmountTarget.innerText=e}},{key:"saveValue",value:function(t){this.textareaTarget.setAttribute("data-value",t.currentTarget.value)}}])}(r(13368).xI);!function(t,e,r){(e=s(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}(l,"targets",["textarea","maxLengthAmount"])},56690:function(t,e,r){"use strict";r.d(e,{A:function(){return y}});r(52675),r(89463),r(66412),r(2259),r(45700),r(78125),r(28706),r(23418),r(23792),r(94490),r(34782),r(89572),r(62010),r(4731),r(60479),r(2892),r(40875),r(26099),r(3362),r(60825),r(27495),r(38781),r(47764),r(23500),r(62953);function n(t){return n="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},n(t)}function o(){o=function(){return e};var t,e={},r=Object.prototype,i=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},u="function"==typeof Symbol?Symbol:{},c=u.iterator||"@@iterator",s=u.asyncIterator||"@@asyncIterator",l=u.toStringTag||"@@toStringTag";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(t,e,r){return t[e]=r}}function p(t,e,r,n){var o=e&&e.prototype instanceof g?e:g,i=Object.create(o.prototype),u=new L(n||[]);return a(i,"_invoke",{value:C(t,r,u)}),i}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=p;var y="suspendedStart",d="suspendedYield",v="executing",m="completed",b={};function g(){}function S(){}function w(){}var _={};f(_,c,function(){return this});var T=Object.getPrototypeOf,O=T&&T(T(x([])));O&&O!==r&&i.call(O,c)&&(_=O);var E=w.prototype=g.prototype=Object.create(_);function j(t){["next","throw","return"].forEach(function(e){f(t,e,function(t){return this._invoke(e,t)})})}function P(t,e){function r(o,a,u,c){var s=h(t[o],t,a);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==n(f)&&i.call(f,"__await")?e.resolve(f.__await).then(function(t){r("next",t,u,c)},function(t){r("throw",t,u,c)}):e.resolve(f).then(function(t){l.value=t,u(l)},function(t){return r("throw",t,u,c)})}c(s.arg)}var o;a(this,"_invoke",{value:function(t,n){function i(){return new e(function(e,o){r(t,n,e,o)})}return o=o?o.then(i,i):i()}})}function C(e,r,n){var o=y;return function(i,a){if(o===v)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}
vendor: 6,765 bytes, line 2
2for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var c=A(u,n);if(c){if(c===b)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===y)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=h(e,r,n);if("normal"===s.type){if(o=n.done?m:d,s.arg===b)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=m,n.method="throw",n.arg=s.arg)}}}function A(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,A(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var i=h(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,b;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,b):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function x(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(i.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+" is not iterable")}return S.prototype=w,a(E,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:S,configurable:!0}),S.displayName=f(w,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===S||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,f(t,l,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},j(P.prototype),f(P.prototype,s,function(){return this}),e.AsyncIterator=P,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new P(p(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next()})},j(E),f(E,l,"Generator"),f(E,c,function(){return this}),f(E,"toString",function(){return"[object Generator]"}),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=x,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(I),!e)for(var r in this)"t"===r.charAt(0)&&i.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,o){return u.type="throw",u.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],u=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=i.call(a,"catchLoc"),s=i.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,b):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),b},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),I(r),b}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;I(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:x(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),b}},e}function i(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return a(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}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 i,u=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return u=t.done,t},e:function(t){c=!0,i=t},f:function(){try{u||null==r.return||r.return()}finally{if(c)throw i}}}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function u(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,o)}function c(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,h(n.key),n)}}function s(t,e,r){return e=f(e),function(t,e){if(e&&("object"==n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,l()?Reflect.construct(e,r||[],f(t).constructor):e.apply(t,r))}function l(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(l=function(){return!!t})()}function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}
2function p(t,e){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},p(t,e)}function h(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var y=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return function(t,e,r){(e=h(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}(t=s(this,e,[].concat(n)),"_subscriptions",[]),t}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&p(t,e)}(e,t),function(t,e,r){return e&&c(t.prototype,e),r&&c(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"connect",value:function(){var t=this;Promise.resolve().then(function(){t.submitFilter()})}},{key:"subscribe",value:function(t){"function"==typeof t&&this._subscriptions.push({callback:t})}},{key:"_emit",value:(r=o().mark(function t(e,r){var n,a,u;return o().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:n=i(this._subscriptions),t.prev=1,n.s();case 3:if((a=n.n()).done){t.next=9;break}return u=a.value,t.next=7,u.callback({key:e,value:r});case 7:t.next=3;break;case 9:t.next=14;break;case 11:t.prev=11,t.t0=t.catch(1),n.e(t.t0);case 14:return t.prev=14,n.f(),t.finish(14);case 17:case"end":return t.stop()}},t,this,[[1,11,14,17]])}),n=function(){var t=this,e=arguments;return new Promise(function(n,o){var i=r.apply(t,e);function a(t){u(i,n,o,a,c,"next",t)}function c(t){u(i,n,o,a,c,"throw",t)}a(void 0)})},function(t,e){return n.apply(this,arguments)})},{key:"activeFilterLabels",get:function(){return[]}},{key:"submitFilter",value:function(t){}},{key:"updateFilters",value:function(t){}},{key:"removeFilter",value:function(t){}}]);var r,n}(r(13368).xI)},43204:function(t,e,r){"use strict";r.d(e,{Q:function(){return u}});r(52675),r(89463),r(2259),r(45700),r(23792),r(89572),r(2892),r(26099),r(47764),r(23500),r(62953);function n(t){return n="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},n(t)}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,a(n.key),n)}}function i(t,e,r){return(e=a(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function a(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var u=function(){return function(t,e,r){return e&&o(t.prototype,e),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),i(this,"_subscriptions",[])},[{key:"trigger",value:function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];this._subscriptions.forEach(function(e){t===e.event&&e.callback.apply(e,r)})}}])}();i(u,"EVENT_TYPES",{})},60710:function(t,e,r){"use strict";r.d(e,{VG:function(){return o},zm:function(){return i}});r(26099),r(3362);var n=r(22776),o=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=document.querySelector(t),o=window.pageYOffset+r.getBoundingClientRect().top-e;return new Promise(function(t,e){(0,n.A)({targets:[document.body,document.documentElement],scrollTop:o,duration:1e3,easing:"easeOutQuint",complete:function(){return t()}})})},i=function(t,e,r){return new Promise(function(o,i){(0,n.A)({targets:t,height:{value:e},duration:r,easing:"easeOutQuint",complete:function(){return o()}})})}},54762:function(t,e,r){"use strict";r.d(e,{u:function(){return S}});r(45700),r(52675),r(89463),r(66412),r(2259),r(78125),r(28706),r(74423),r(34782),r(89572),r(62010),r(2892),r(79432),r(23418),r(23792),r(94490),r(4731),r(60479),r(40875),r(26099),r(3362),r(47764),r(62953),r(58940),r(84864),r(27495),r(38781),r(21699),r(71761),r(25440),r(90744),r(23500);var n,o=r(18248),i=r(11026),a=(r(13368),r(53655)),u=r(22849);function c(t){return c="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},c(t)}function s(t){return function(t){if(Array.isArray(t))return d(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||y(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 l(){l=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(t,e,r){return t[e]=r}}function p(t,e,r,n){var i=e&&e.prototype instanceof g?e:g,a=Object.create(i.prototype),u=new L(n||[]);return o(a,"_invoke",{value:C(t,r,u)}),a}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=p;var y="suspendedStart",d="suspendedYield",v="executing",m="completed",b={};function g(){}function S(){}function w(){}var _={};f(_,a,function(){return this});var T=Object.getPrototypeOf,O=T&&T(T(x([])));O&&O!==r&&n.call(O,a)&&(_=O);var E=w.prototype=g.prototype=Object.create(_);function j(t){["next","throw","return"].forEach(function(e){f(t,e,function(t){return this._invoke(e,t)})})}function P(t,e){function r(o,i,a,u){var s=h(t[o],t,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==c(f)&&n.call(f,"__await")?e.resolve(f.__await).then(function(t){r("next",t,a,u)},function(t){r("throw",t,a,u)}):e.resolve(f).then(function(t){l.value=t,a(l)},function(t){return r("throw",t,a,u)})}u(s.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e(function(e,o){r(t,n,e,o)})}return i=i?i.then(o,o):o()}})}function C(e,r,n){var o=y;return function(i,a){if(o===v)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}
vendor: 6,685 bytes, line 2
2for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var c=A(u,n);if(c){if(c===b)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===y)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=h(e,r,n);if("normal"===s.type){if(o=n.done?m:d,s.arg===b)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=m,n.method="throw",n.arg=s.arg)}}}function A(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,A(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var i=h(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,b;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,b):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function x(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(c(e)+" is not iterable")}return S.prototype=w,o(E,"constructor",{value:w,configurable:!0}),o(w,"constructor",{value:S,configurable:!0}),S.displayName=f(w,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===S||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,f(t,s,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},j(P.prototype),f(P.prototype,u,function(){return this}),e.AsyncIterator=P,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new P(p(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next()})},j(E),f(E,s,"Generator"),f(E,a,function(){return this}),f(E,"toString",function(){return"[object Generator]"}),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=x,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(I),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return u.type="throw",u.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,b):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),b},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),I(r),b}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;I(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:x(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),b}},e}function f(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,o)}function p(t){return function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function a(t){f(i,n,o,a,u,"next",t)}function u(t){f(i,n,o,a,u,"throw",t)}a(void 0)})}}function h(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=y(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}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 i,a=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}function y(t,e){if(t){if("string"==typeof t)return d(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?d(t,e):void 0}}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function v(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,b(n.key),n)}}function m(t,e,r){return(e=b(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function b(t){var e=function(t,e){if("object"!=c(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
2(t,"string");return"symbol"==c(e)?e:e+""}var g=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return function(t,e,r){return e&&v(t.prototype,e),r&&v(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(t,[{key:"validate",value:function(e,r){var n=this,o=[];return[].forEach.call(e.querySelectorAll(t.validateSelector),function(t){if(null!==t.offsetParent){var e=n._validateElement(t,r);o=o.concat(e)}}),o}},{key:"addValidation",value:function(e){var r=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;e.setAttribute("novalidate",""),e.addEventListener("submit",this.handleSubmit.bind(this,e,n,o));var i=this._getErrorJumper(e);i&&i.addEventListener("click",this._handleJumperClick.bind(this,e)),[].forEach.call(e.querySelectorAll(t.validateSelector),function(o){if(o.classList.contains(t.validationContainerName)){var i,a=h(o.querySelectorAll('input[type="number"]'));try{for(a.s();!(i=a.n()).done;){i.value.addEventListener("change",function(t){r._validateElement(o,n),r._updateJumper(e)})}}catch(t){a.e(t)}finally{a.f()}}else"CAP-WIDGET"===o.nodeName?(o.addEventListener("solve",function(t){r._validateElement(o,n),r._updateJumper(e)}),o.addEventListener("reset",function(t){r._validateElement(o,n),r._updateJumper(e)})):(o.addEventListener("change",function(t){r._validateElement(t),r._updateJumper(e)}),o.addEventListener("focus",function(t){var e=o.target||o,n=r._getErrorElement(e);if(e){var i=n.querySelector("div.g-form__error-message");if(null!=i&&i.textContent){var a=i.textContent;i.textContent="",i.textContent=a}}}))})}},{key:"addValidationToBlock",value:function(e,r){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;[].forEach.call(e.querySelectorAll(t.validateSelector),function(e){if(e.classList.contains(t.validationContainerName)){var i,a=h(e.querySelectorAll('input[type="number"]'));try{for(a.s();!(i=a.n()).done;){i.value.addEventListener("change",function(t){n._validateElement(e,o),n._updateJumper(r)})}}catch(t){a.e(t)}finally{a.f()}}else e.addEventListener("change",function(t){n._validateElement(t),n._updateJumper(r)})})}},{key:"handleSubmit",value:(r=p(l().mark(function t(e,r,n,i){var a,c,s,f,p,h,y;return l().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(i.preventDefault(),a=this.validate(i.currentTarget,r),c=i.currentTarget.querySelector('[type="submit"]'),0!==a.length){t.next=16;break}return s=this.getFormData(e),f=r?r.requestOptions:{},r&&r.extendFormData&&(s=r.extendFormData(s)),n&&n.extendFormData&&(s=n.extendFormData(s)),c&&(c.classList.add(o.A.CSS.IS_LOADING),(0,u.Dr)(c)),this._hideJumper(e),t.next=12,this._request(e,s,f);case 12:p=t.sent,this._handleResponse(p,e,r,c),t.next=20;break;case 16:(h=this._getErrorJumper(e)).textContent&&(y=h.textContent,h.textContent="",h.textContent=y),this._scrollSubmitButtonIntoView(c),this.showJumper(e,a);case 20:case"end":return t.stop()}},t,this)})),function(t,e,n,o){return r.apply(this,arguments)})},{key:"_scrollSubmitButtonIntoView",value:function(t){null!==t&&setTimeout(function(){t.scrollIntoView(!1)},200)}},{key:"_getFormElementValue",value:function(t){var e;if("INPUT"===t.nodeName)if("checkbox"===t.type)t.checked&&(e=t.value);else if("radio"===t.type){var r=this._getCheckedRadio(t);void 0!==r&&(e=r.value)}else e=t.value;else"SELECT"===t.nodeName?e=this.getSelectValue(t):"TEXTAREA"===t.nodeName&&(e=t.value);return e}},{key:"getFormData",value:function(e){var r=this,n={};if(e){var o,i,a,u,c,s,l,f,p,h=e.querySelectorAll(t.formElementsSelector);n.formId=e.getAttribute("id");var y={};[].forEach.call(h,function(t){if(p=t.getAttribute("name"),p=r._fixName(p),!0!==y[p]&&null===t.getAttribute("disabled")&&(y[p]=!0,c=p.split("."),l=r._getFormElementValue(t),c&&l))if(2===c.length?(a=c[0],s=c[1]):(a=null,s=c[0]),a){var e=-1!==s.indexOf("[]");void 0===n[a]&&(n[a]=e?[]:{}),a!==u&&void 0!==o&&(o=void 0),e?(f=s.split("[]")[0],void 0!==o&&o!==f||(n[a].push?o===f&&n[a].push(i):(n[a][f]||(n[a][f]=[]),n[a][f].push(l)),u=a,o=f,i={}),i[f]=l):n[a][s]=l}else n[s]=l}),i&&Object.keys(i).length&&n[u].push&&n[u].push(i)}return n}},{key:"handleAddBlock",value:function(t,e,r,n,i,a){if(t&&t.preventDefault(),e){this[r]++,this[n]++;2===this[r]&&e.classList.add(o.A.CSS.IS_ACTIVE);var u=document.createElement("div");u.innerHTML=i,u.innerHTML=u.innerHTML.replace(new RegExp(a+"1","g"),a+this[n]),u.innerHTML=u.innerHTML.replace(new RegExp("#entryId","g"),"#"+this[n]);for(var c=0;c<u.children.length;c++){var s=u.children[c].cloneNode(!0);e.appendChild(s)}}}},{key:"handleDelBlock",value:function(e,r,n,i,a){if(r){var u=e.target.closest(i);if(u){var c=t.getEntryNumber(u,a);this[n]--,1===this[n]&&r.classList.remove(o.A.CSS.IS_ACTIVE),[].forEach.call(this.formTarget.querySelectorAll("."+a+c),function(t){t.parentNode.removeChild(t)})}}}},{key:"_fixErrorField",value:function(e){var r=e;if(-1!==e.indexOf("flushingStation")){var n=new RegExp(/\[(.*?)\]/),o=e.match(n)[1];r="".concat(t.flushingStationSerialNumberField,"#").concat(parseInt(o)+1)}return r}},{key:"_fixName",value:function(t){var e=t;return"input_text_sn1"===t?e="registrationEntries.serialNumber[]":"input_text_pw1"===t&&(e="registrationEntries.wlanNumber[]"),e}},{key:"_validateElement",value:function(e,r){var n,i=e.target||e,a=[];if(i.closest("div").classList.contains(o.A.CSS.IS_DISABLED))return a;
2if("INPUT"===i.nodeName){var u=i.getAttribute("pattern");"text"===i.type||"tel"===i.type?n=this._getTextValidationErrors(i,u):"password"===i.type?n=this._getPasswordValidationErrors(i,u):"email"===i.type?n=this._getEmailValidationErrors(i,u):"radio"===i.type?n=this._getRadioValidationErrors(i):"checkbox"===i.type?n=this._getCheckboxValidationErrors(i):"number"===i.type&&(n=this._getNumberValidationErrors(i,u))}else n="SELECT"===i.nodeName?this._getSelectValidationErrors(i):"CAP-WIDGET"===i.nodeName?this._getCaptchaValidationErrors(i):i.classList.contains(t.validationContainerName)?this._getTableValidationErrors(i):this._getTextValidationErrors(i);return n&&(a=a.concat(n)),0===a.length&&this._removeError(i),a}},{key:"_getTableValidationErrors",value:function(t){var e,r=t.querySelectorAll('.a-quantity input[type="number"]'),n=[],o=h(r);try{for(o.s();!(e=o.n()).done;){var i=e.value;0===parseInt(i.value)&&n.push(i)}}catch(t){o.e(t)}finally{o.f()}return n.length===r.length&&this._addError(t),n.length===r.length?n:[]}},{key:"_getNumberValidationErrors",value:function(t,e){var r;return(null!=e?this._matchesPattern(t,e):!(0===parseInt(t.value)&&null!==t.getAttribute("required")))||(r=[t],this._addError(t)),r}},{key:"_isBACNetSerialNumberValid",value:function(e){var r=!0;(e&&(r=this._matchesPattern(e,t.serialnumberPattern)),r)&&(r=BigInt(e.value)%BigInt(97)===BigInt(1));return r}},{key:"_getTextValidationErrors",value:function(t,e){var r,n=!0;return null!==e&&(n=this._matchesPattern(t,e)),n&&t.hasAttribute(a.default.dataIsBACnetActivation)&&"true"===t.getAttribute(a.default.dataIsBACnetActivation)&&(n=this._isBACNetSerialNumberValid(t)),(!n||""===t.value&&null!==t.getAttribute("required")&&null===t.getAttribute("disabled"))&&(r=[t],this._addError(t)),r}},{key:"_getSelectValidationErrors",value:function(t){var e,r=this._getSelectedOption(t);return r&&null!==t.getAttribute("required")&&null!==r.getAttribute("disabled")&&(e=[t],this._addError(t)),e}},{key:"_getRadioValidationErrors",value:function(t){var e;return void 0===this._getCheckedRadio(t)&&null!==t.getAttribute("required")&&(e=[t],this._addError(t)),e}},{key:"_getCheckboxValidationErrors",value:function(e){var r,n=!1,o=e.checked,i=e.closest("div.a-checkbox").className;return i.includes(t.checkboxValidationGroup)&&((n=this._handleCheckboxGroupValidation(e,o,i))||(r=[e])),o||null===e.getAttribute("required")||n||(r=[e],this._addError(e)),r}},{key:"_getPasswordValidationErrors",value:function(e,r){var n=r||t.defaultPasswordPattern;return this._getRepeatValidationErrors(e,".g-form__password-repeat",n)}},{key:"_getEmailValidationErrors",value:function(e,r){var n=r||t.defaultEmailPattern;return this._getRepeatValidationErrors(e,".g-form__email-repeat",n)}},{key:"_getRepeatValidationErrors",value:function(t,e,r){var n,o=this._isRepeat(t,e),i=this._matchesPattern(t,r),a=null!==t.getAttribute("disabled"),u=null!==t.getAttribute("required");return a||!u||""!==t.value&&!o&&i||o&&(!o||this._valuesMatches(t,e))&&i||(n=[t],this._addError(t)),n}},{key:"_getCaptchaValidationErrors",value:function(t){var e,r=t.querySelector("input[type=hidden]");return this._matchesPattern(r,"^[a-z0-9:]{47}$")||(e=[t],this._addError(t)),e}},{key:"getSelectValue",value:function(t){var e=this._getSelectedOption(t);return e?e.value:null}},{key:"getSelectText",value:function(t){var e=this._getSelectedOption(t);return e?e.text:null}},{key:"_getSelectedOption",value:function(t){return t.options[t.selectedIndex]}},{key:"_removeError",value:function(e){var r=this._getErrorElement(e);if(r.classList.contains(o.A.CSS.HAS_ERROR)){if(r.classList.contains("a-radiobutton"))this._getRadioLegend(e).classList.remove(o.A.CSS.HAS_ERROR),r.parentNode.querySelectorAll(".a-radiobutton").forEach(function(t){return t.classList.remove(o.A.CSS.HAS_ERROR)});r.classList.remove(o.A.CSS.HAS_ERROR,t.hasErrorCode),[].forEach.call(r.querySelectorAll(".g-form__error-code"),function(t){t.classList.remove(o.A.CSS.IS_VISIBLE)})}}},{key:"_getErrorElement",value:function(e){return e.closest(".a-input, .a-select, .a-radiobutton, .a-checkbox, .a-textarea, .".concat(t.validationContainerName))||e}},{key:"_getCheckedRadio",value:function(t){for(var e,r=t.name,n=document.getElementsByName(r),o=0;o<n.length;o++)if(n[o].checked)return n[o];return e}},{key:"_handleCheckboxGroupValidation",value:function(t,e,r){var n=!1,o=this._getValidationGroupId(r);return e?(n=!0,this._setCheckboxValidationGroupState(t,o,n)):(n=this._val
2idateCheckboxGroup(t,o),this._setCheckboxValidationGroupState(t,o,n)),n}},{key:"_getValidationGroupId",value:function(e){var r=t.checkboxValidationGroup.length,n=e.lastIndexOf(t.checkboxValidationGroup),o=e.slice(n+r,n+r+4);return"."+t.checkboxValidationGroup+o}},{key:"_validateCheckboxGroup",value:function(t,e){var r=t.closest("form"),n=!1;return r.querySelectorAll(e).forEach(function(t){t.querySelectorAll("input").forEach(function(t){"checkbox"===t.type&&!0===t.checked&&(n=!0)})}),n}},{key:"_setCheckboxValidationGroupState",value:function(t,e,r){var n=this;t.closest("form").querySelectorAll(e).forEach(function(t){t.querySelectorAll("input").forEach(function(t){r?n._removeError(t):n._addError(t)})})}},{key:"_getRadioLegend",value:function(t){return t.closest(".a-radiobutton__legend").querySelector("legend")}},{key:"_isRepeat",value:function(t,e){return!!t.closest(e)}},{key:"_matchesPattern",value:function(t,e){var r=t.value;return new RegExp(e).test(r)}},{key:"_valuesMatches",value:function(e,r){var n=!1,o=this._getRepeatGroup(e,r),i=document.querySelector(r+t.groupPrefix+o+" .a-input__input");return""!==i.value&&i.value===e.value&&(n=!0),n}},{key:"_getRepeatGroup",value:function(e,r){for(var n,o=e.closest(r),i=0;i<o.classList.length;i++){var a=o.classList[i].split(r.replace(".","")+t.groupPrefix);if(a.length>1){n=a[1];break}}return n}},{key:"_addError",value:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;if("INPUT"===e.nodeName||"SELECT"===e.nodeName||"TEXTAREA"===e.nodeName||"CAP-WIDGET"===e.nodeName){var i=this._getErrorElement(e),a=n?t.hasErrorCode:o.A.CSS.HAS_ERROR;i.querySelectorAll(".g-form__error-code").forEach(function(t){return t.classList.remove(o.A.CSS.IS_VISIBLE)});var u=n?i.querySelector(".g-form__error-code-".concat(n)):null;if(n&&u)u.classList.add(o.A.CSS.IS_VISIBLE);else{var c=i.querySelector(".g-form__error-message");r&&c?(c.dataset.error||(c.dataset.error=c.innerText),c.innerText=r,c.classList.add(o.A.CSS.IS_VISIBLE)):c&&c.dataset.error&&(c.innerText=c.dataset.error,c.classList.add(o.A.CSS.IS_VISIBLE),delete c.dataset.error)}if("radio"===e.type){var s=this._getRadioLegend(e),l=e.closest(".a-radiobutton");s.classList.add(o.A.CSS.HAS_ERROR),l.classList.add(o.A.CSS.HAS_ERROR)}else i.classList.add(a)}else e.classList.contains(t.validationContainerName)&&e.classList.add(o.A.CSS.HAS_ERROR)}},{key:"_handleErrors",value:function(t,e){if(e)for(var r=0;r<e.length;r++){var n=e[r],o=this._fixErrorField(n.field),i=this._getErrorFieldIndex(o),a=i?t.querySelectorAll('[name="'+o+'"]')[i]:t.querySelector('[name="'+o+'"]');if(a){var u=n.errorMessage?n.errorMessage:void 0;this._addError(a,u,n.errorCode),this._fixFlushingStationSerialFields(o,n,i)}}}},{key:"_fixFlushingStationSerialFields",value:function(e,r,n){if(e===t.flushingStationSerialNumberField){var o=form.querySelectorAll('[name="'+t.flushingStationWlanNumberField+'"]')[n];this._addError(o,void 0,r.errorCode)}}},{key:"_handleResponse",value:function(t,e,r,n){n&&n.classList.remove(o.A.CSS.IS_LOADING),t.success?t.data.code&&t.data.errors&&t.data.errors.length>0?this._handleErrors(e,t.data.errors):this._handleSuccess(e,r,t):this.showJumper(e,[],t.status)}},{key:"_getErrorFieldIndex",value:function(t){var e=0,r=new RegExp(/\[(.*)\]/);if(-1!==t.indexOf("[")){var n=t.match(r);n.length>0&&(e=n[1])}return e}},{key:"_request",value:(e=p(l().mark(function t(e,r){var n,o=arguments;return l().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=o.length>2&&void 0!==o[2]?o[2]:{},t.next=3,i.j.request(e.getAttribute("action"),{method:"POST",body:r,contentType:n.contentType,isSeminarDocumentsForm:void 0!==n.isSeminarDocumentsForm&&n.isSeminarDocumentsForm});case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}},t)})),function(t,r){return e.apply(this,arguments)})},{key:"_handleSuccess",value:function(t,e,r){e&&e.setNewContent?e.setNewContent():t.dataset.success?document.location.href=t.dataset.success:t.dataset.successAction&&e&&"function"==typeof e[t.dataset.successAction]&&e[t.dataset.successAction](r)}},{key:"_handleJumperClick",value:function(t){var e=this._getErrorJumper(t);if(e){var r=e.dataset.target,n=t.querySelector('[name="'+r+'"]');
2if(n){var i=this._getErrorElement(n),a=document.querySelector(".o-header"),u=a?a.offsetHeight:0,c=window.scrollY-i.offsetTop>o.A.CSS.HEADER_SCROLL_THRESHOLD?i.offsetTop-u:i.offsetTop;window.scroll({top:c,left:0,behavior:"smooth"}),this._hideJumper(t)}}}},{key:"_updateJumper",value:function(t){0===s(t.querySelectorAll("."+o.A.CSS.HAS_ERROR)).length&&this._hideJumper(t)}},{key:"_getErrorJumper",value:function(t){var e=t.querySelector(".m-formpage.is-active .g-form__error-jumper");return e||t.querySelector(".g-form__error-jumper")}},{key:"showJumper",value:function(t,e,r){var n=this._getErrorJumper(t);n&&(this._showJumperErrorcodeText(n,r),n.classList.add(o.A.CSS.IS_ACTIVE),e&&e.length&&(n.dataset.target=e[0].getAttribute("name")))}},{key:"_showJumperErrorcodeText",value:function(e,r){var n=e.querySelectorAll(t.jumperTextSelector);if(n&&r){var i=e.querySelector("".concat(t.jumperTextSelector,'[data-errorcode="').concat(r,'"]'));i||(i=e.querySelector("".concat(t.jumperTextSelector,'[data-errorcode="ServerError"]'))),i&&(n.forEach(function(t){return t.classList.add(o.A.CSS.IS_HIDDEN)}),i.dataset.pointer&&"false"===i.dataset.pointer&&e.classList.add("no-pointer"),i.classList.remove(o.A.CSS.IS_HIDDEN))}else if(n&&!r){n.forEach(function(t){return t.classList.remove(o.A.CSS.IS_HIDDEN)});var a=e.querySelectorAll("".concat(t.jumperTextSelector,"[data-errorcode]"));a&&a.forEach(function(t){return t.classList.add(o.A.CSS.IS_HIDDEN)})}}},{key:"_hideJumper",value:function(t){var e=this._getErrorJumper(t);e&&(e.classList.remove(o.A.CSS.IS_ACTIVE),delete e.dataset.target)}}],[{key:"getEntryNumber",value:function(t,e){var r;return[].forEach.call(t.classList,function(t){-1!==t.indexOf(e)&&(r=t.split("---")[1])}),r}}]);var e,r}();n=g,m(g,"CODES",{success:200}),m(g,"hasErrorCode","has-error-code"),m(g,"flushingStationSerialNumberField","registrationEntries.serialNumber[]"),m(g,"flushingStationWlanNumberField","registrationEntries.wlanNumber[]"),m(g,"validationContainerName","js-g-validation-container"),m(g,"validateSelector","input, select, textarea, cap-widget, .".concat(n.validationContainerName)),m(g,"formElementsSelector",".a-input__input, .a-select__input, .a-radiobutton__input, .a-checkbox__input, .a-textarea__input, cap-widget > input[type=hidden]"),m(g,"groupPrefix","-group-"),m(g,"checkboxValidationGroup","g-form__checkboxValidationGroup"),m(g,"defaultPasswordPattern","([^s])"),m(g,"defaultEmailPattern",'^(([^<>()\\[\\]\\\\.,;:\\s@"]+(\\.[^<>()\\[\\]\\\\.,;:\\s@"]+)*)|(".+"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$'),m(g,"serialnumberPattern","^[0-9]{22}$"),m(g,"jumperTextSelector",".g-form__error-jumper-text");var S=new g},80063:function(t,e,r){"use strict";r.d(e,{i:function(){return n.i}});var n=r(11182),o=r(35973),i=r(59322),a=r(88629),u=r(72158),c=r(5471),s=r(95173),l=r(56221),f=r(82946),p=r(72092),h=r(25734),y=r(50671),d=r(51372),v=r(34993),m=r(7217),b=r(74692);n.i.addToJquery(b),n.i.rtl=o.h,n.i.GetYoDigits=o.r7,n.i.transitionend=o.XA,n.i.RegExpEscape=o.rG,n.i.onLoad=o.kF,n.i.Box=i.a,n.i.onImagesLoaded=a.v,n.i.Keyboard=u.s,n.i.MediaQuery=c.z,n.i.Motion=s.T,n.i.Move=s.y,n.i.Nest=l.D,n.i.Timer=f.M,p.U.init(b),h._.init(b,n.i),c.z._init(),n.i.plugin(y.n,"Accordion"),n.i.plugin(d.c,"Drilldown"),n.i.plugin(v.r,"Equalizer"),n.i.plugin(m.t,"Tabs")},31201:function(t,e,r){"use strict";r.d(e,{A:function(){return y}});r(52675),r(89463),r(2259),r(45700),r(23792),r(89572),r(2892),r(26099),r(3362),r(47764),r(62953),r(2008),r(23418),r(34782),r(26910),r(62010),r(27495),r(38781);function n(t){return n="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},n(t)}function o(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return i(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}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,u=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return u=t.done,t},e:function(t){c=!0,a=t},f:function(){try{u||null==r.return||r.return()}finally{if(c)throw a}}}}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
2(t,"string");return"symbol"==n(e)?e:e+""}var c=function(){return function(t,e,r){return e&&a(t.prototype,e),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.mapsDataSource=e,this.filters=[],this.computeDistanceBetweenPoints=r,this._maxResults=void 0},[{key:"maxResults",set:function(t){this._maxResults=t}},{key:"applyFilters",value:function(t){var e=this;if(!this.filters.length)return this.applyMaxResult(t);var r,n=t.slice(),i=o(this.filters);try{var a=function(){var t=r.value;"property"==t.type&&(n=n.filter(function(e){return Array.isArray(e.properties[t.propName])?e.properties[t.propName].indexOf(t.propValue)>-1:e.properties[t.propName]==t.propValue})),"radius"==t.type&&(n=(n=n.filter(function(r){return r.distance=e.computeDistanceBetweenPoints(t.center,r.geometry),r.distance<1e3?r.distance=1:r.distance=Math.round(r.distance/1e3),e.mapsDataSource.mergeData([{id:r.id,properties:{distance:r.distance}}]),r.distance<=t.radius})).sort(function(t,e){return t.distance-e.distance}))};for(i.s();!(r=i.n()).done;)a()}catch(t){i.e(t)}finally{i.f()}return this.applyMaxResult(n)}},{key:"applyMaxResult",value:function(t){return this._maxResults?t.slice(0,this._maxResults):t.slice()}},{key:"getItems",value:function(){var t=this;return new Promise(function(e,r){t.mapsDataSource.fetch().then(function(r){var n=t.applyFilters(r);e(n)})})}},{key:"setData",value:function(t){this.mapsDataSource.setData(t)}},{key:"addFilterFor",value:function(t,e){this.filters.push({type:"property",propName:t,propValue:e})}},{key:"removeFilterFor",value:function(t,e){this.filters=this.filters.filter(function(r){return"property"==r.type&&r.propValue!=e&&r.propName!=t})}},{key:"addRadiusFilterFor",value:function(t,e){this.filters.push({type:"radius",center:t,radius:e})}},{key:"removeFilterType",value:function(t){this.filters=this.filters.filter(function(e){return e.type!=t})}},{key:"resetFilters",value:function(){this.filters=[]}},{key:"ensureDetailsFor",value:function(t){var e=this;return new Promise(function(r,n){e.mapsDataSource.ensureDetailsFor(t).then(function(t){return r(t)},n)})}},{key:"hasActiveRadiusFilter",value:function(){var t,e=!1,r=o(this.filters);try{for(r.s();!(t=r.n()).done;){if("radius"==t.value.type){e=!0;break}}}catch(t){r.e(t)}finally{r.f()}return e}}])}(),s=r(85043),l=r(4409);function f(t){return f="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},f(t)}function p(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,h(n.key),n)}}function h(t){var e=function(t,e){if("object"!=f(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==f(e)?e:e+""}var y=function(){return function(t,e,r){return e&&p(t.prototype,e),r&&p(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var r=e.mapsDataService?e.mapsDataService:this.defaultConfig.mapsDataService,n=e.mapsDataSource?e.mapsDataSource:this.defaultConfig.mapsDataSource,o=e.googleMap?e.googleMap:this.defaultConfig.googleMap,i=e.urlGenerator?e.urlGenerator:void 0,a=e.requestOptions||this.defaultConfig.requestOptions;this.mapsDataSource=new n(i,a),this.mapsDataService=new r(this.mapsDataSource,e.computeDistanceBetweenPoints),this.googleMap=new o(e.apiKey,e.mapContainer,e.hasCluster?e.hasCluster:this.defaultConfig.hasCluster,!1!==e.hasCustomResults&&this.defaultConfig.hasCustomResults,this.mapsDataService,e.resultEl,e.resultsContainer,e.mapOptions)},[{key:"defaultConfig",get:function(){return{mapContainer:"",resultEl:"",resultsContainer:"",apiKey:"",hasCluster:!0,hasCustomResults:!0,cumputeDistanceBetweenPoints:function(){return!1},mapOptions:{mapId:"DEMO_MAP_ID",zoom:8,center:{lat:50.110924,lng:8.682127},clickableIcons:!0,templateVars:[],templateDelimiters:[]},urlGenerator:function(){},requestOptions:{method:"GET",body:null},mapsDataSource:s.A,mapsDataService:c,googleMap:l.A}}},{key:"setData",value:function(t){this.mapsDataService.setData(t)}},{key:"setRequestOptions",value:function(t){this.mapsDataSource.requestOptions=t}},{key:"initializeMap",value:function(){var t=this;return new Promise(function(e,r){t.googleMap.load().then(function(){e()},r)})}},{key:"showAll",value:function(){var t=this;return new Promise(function(e,r){t.mapsDataService.resetFilters(),t.googleMap.updateView().then(function(){return e()},r)})}},{key:"searchFor",value:function(t,e){var r=this;return new Promise(function(n,o){r.googleMap.searchFor(t).then(function(){r.mapsDataService.removeFilterType("radius"),r.mapsDataService.addRadiusFilterFor(r.googleMap.clientLatLong,e),n()},o)})}},{key:"mapIsLoaded",value:function(){return this.googleMap.isLoaded}},{key:"getCurrentLocation",value:function(){return this.googleMap.clientLatLong}},{key:"locateUser",value:function(t,e){var r=this;if(this.mapIsLoaded())return new Promise(function(n,o){navigator.geolocation?navigator.geolocation.getCurrentPosition(function(o){r.googleMap.clientLatLong={lat:o.coords.latitude,lng:o.coords.longitude},r.mapsDataService.removeFilterType("radius"),r.mapsDataService.addRadiusFilterFor(r.googleMap.clientLatLong,t),r.setMapZoom(e),n()},function(t){return o(t)}):o()})}},{key:"setMapZoom",value:function(t){this.googleMap.setZoom(t)}},{key:"setMaxResults",value:function(t){this.mapsDataService.maxResults=t}},{key:"updateView",value:function(){var t=this;return new Promise(function(e,r){t.googleMap.updateView().then(function(){return e()},r)})}},{key:"closeInfoWindow",value:function(){this.googleMap.closeInfoWindow()}},{key:"addFilterFor",value:function(t,e){var r=this;return new Promise(function(n,o){r.mapsDataService.addFilterFor(t,e),n()})}},{key:"removeFilter",value:function(t,e){var r=this;return new Promise(function(n,o){r.mapsDataService.removeFilterFor(t,e),n()})}},{key:"addRadiusFilterFor",value:function(t){var e=this;return new Promise(function(r,n){e.mapsDataService.removeFilterType("radius"),e.mapsDataService.addRadiusFilterFor(e.googleMap.clientLatLong,t),r()})}},{key:"removeFilterType",value:function(t){var e=this;return new Promise(function(r,n){e.mapsDataService.removeFilterType(t),r()})}}])}()},4409:function(t,e,r){"use strict";r.d(e,{A:function(){return j}});r(52675),r(89463),r(2259),r(45700),r(2008),r(50113),r(23418),r(23792),r(62062),r(34782),r(89572),r(62010),r(2892),r(83851),r(81278),r(79432),r(26099),r(3362),r(84864),r(27495),r(38781),r(47764),r(25440),r(23500),r(62953);function n(t){for(var e="",r={"&":"&amp;","'":"&#39;",'"':"&quot;","<":"&lt;",">":"&gt;"},n=0,o=t.length;n<o;++n){var i=t[n];e+=i in r?r[i]:i}return e}var o=r(111);r(36033),r(40875),r(60825);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},i(t)}function a(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=c(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}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 i,a=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}function u(t){return function(t){if(Array.isArray(t))return s(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||c(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 c(t,e){if(t){if("string"==typeof t)return s(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(t,e):void 0}}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function l(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,f(n.key),n)}}function f(t){var e=function(t,e){if("object"!=i(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
2(t,"string");return"symbol"==i(e)?e:e+""}function p(t,e,r){return e=v(e),function(t,e){if(e&&("object"==i(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,y()?Reflect.construct(e,r||[],v(t).constructor):e.apply(t,r))}function h(t){var e="function"==typeof Map?new Map:void 0;return h=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return function(t,e,r){if(y())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,e);var o=new(t.bind.apply(t,n));return r&&d(o,r.prototype),o}(t,arguments,v(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),d(r,t)},h(t)}function y(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(y=function(){return!!t})()}function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}function v(t){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},v(t)}var m=function(t){function e(t,r){var n;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=p(this,e)).root=r||window.document,"string"==typeof t){var o;(o=n).push.apply(o,u(n.root.querySelectorAll(t).values()))}else{var i,a;if("function"==typeof t.values)(i=n).push.apply(i,u(t.values()));if(window.Array.isArray(t))(a=n).push.apply(a,u(t));else n.push(t),r||(n.root=t)}return n}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&d(t,e)}(e,t),function(t,e,r){return e&&l(t.prototype,e),r&&l(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"find",value:function(t){return new e(t,this.root)}},{key:"get",value:function(t){return new e(this[t],this.root)}},{key:"first",value:function(){return new e(this[0],this.root)}},{key:"last",value:function(){return new e(this[this.length-1],this.root)}},{key:"innerHtml",value:function(t){if(t){var e,r=a(this);try{for(r.s();!(e=r.n()).done;){e.value.innerHTML=t}}catch(t){r.e(t)}finally{r.f()}return this}return this[0].innerHTML}},{key:"outerHtml",value:function(t){if(t){var e,r=a(this);try{for(r.s();!(e=r.n()).done;){e.value.outerHTML=t}}catch(t){r.e(t)}finally{r.f()}return this}return this[0].outerHTML}},{key:"append",value:function(t){var e,r=a(this);try{for(r.s();!(e=r.n()).done;){e.value.insertAdjacentHTML("beforeend",t)}}catch(t){r.e(t)}finally{r.f()}return this}},{key:"remove",value:function(){var t,e=a(this);try{for(e.s();!(t=e.n()).done;){var r=t.value;r.parentNode.removeChild(r)}}catch(t){e.e(t)}finally{e.f()}return this}},{key:"style",value:function(t){var e,r=a(this);try{for(r.s();!(e=r.n()).done;){var n=e.value;for(var o in t)n.style[o]=t[o]}}catch(t){r.e(t)}finally{r.f()}return this}},{key:"addClass",value:function(t){var e,r=Array.isArray(t)?t:t.split(" "),n=a(this);try{for(n.s();!(e=n.n()).done;){var o,i=e.value,u=a(r);try{for(u.s();!(o=u.n()).done;){var c=o.value;i.classList.add(c)}}catch(t){u.e(t)}finally{u.f()}}}catch(t){n.e(t)}finally{n.f()}return this}},{key:"hasClass",value:function(t){var e,r=Array.isArray(t)?t:t.split(" "),n=a(this);try{for(n.s();!(e=n.n()).done;){var o,i=e.value,u=a(r);try{for(u.s();!(o=u.n()).done;){var c=o.value;if(!i.classList.contains(c))return!1}}catch(t){u.e(t)}finally{u.f()}}}catch(t){n.e(t)}finally{n.f()}return!0}},{key:"removeClass",value:function(t){var e,r=Array.isArray(t)?t:t.split(" "),n=a(this);try{for(n.s();!(e=n.n()).done;){var o,i=e.value,u=a(r);try{for(u.s();!(o=u.n()).done;){var c=o.value;i.classList.remove(c)}}catch(t){u.e(t)}finally{u.f()}}}catch(t){n.e(t)}finally{n.f()}return this}},{key:"toggleClass",value:function(t){var e,r=Array.isArray(t)?t:t.split(" "),n=a(this);try{for(n.s();!(e=n.n()).done;){var o,i=e.value,u=a(r);try{for(u.s();!(o=u.n()).done;){o.value;i.classList.toggle(t)}}catch(t){u.e(t)}finally{u.f()}}}catch(t){n.e(t)}finally{n.f()}}},{key:"attribute",value:function(t,e){if(this.length){if(void 0===e)return this[0].getAttribute(t);var r,n=a(this);try{for(n.s();!(r=n.n()).done;){r.value.setAttribute(t,e)}}catch(t){n.e(t)}finally{n.f()}}return this}},{key:"on",value:function(t,e,r){var n,o=Array.isArray(t)?t:t.split(" "),i=a(this);try{for(i.s();!(n=i.n()).done;){var u,c=n.value,s=a(o);try{for(s.s();!(u=s.n()).done;){var l=u.value;c.addEventListener(l,e,r)}}catch(t){s.e(t)}finally{s.f()}}}catch(t){i.e(t)}finally{i.f()}return this}},{key:"off",value:function(t,e){var r,n=Array.isArray(t)?t:t.split(" "),o=a(this);try{for(o.s();!(r=o.n()).done;){var i,u=r.value,c=a(n);try{for(c.s();!(i=c.n()).done;){var s=i.value;u.removeEventListener(s,e)}}catch(t){c.e(t)}
2finally{c.f()}}}catch(t){o.e(t)}finally{o.f()}return this}},{key:"trigger",value:function(t){var e,r="string"==typeof t?new Event(t):t,n=a(this);try{for(n.s();!(e=n.n()).done;){e.value.dispatchEvent(r)}}catch(t){n.e(t)}finally{n.f()}return this}},{key:"data",value:function(t,e){if(this.length){if(this[0].__data__=this[0].__data__||{},void 0===e)return this[0].__data__[t];this[0].__data__[t]=e}return this}},{key:"children",value:function(){var t,r=[],n=a(this[0].children);try{for(n.s();!(t=n.n()).done;){var o=t.value;r.push(new e(o,this.root))}}catch(t){n.e(t)}finally{n.f()}return r}},{key:"scrollIntoView",value:function(t){return this[0].scrollIntoView(t)}}])}(h(Array));function b(t){return b="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},b(t)}function g(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return S(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?S(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}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 i,a=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}function S(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function w(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function _(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?w(Object(r),!0).forEach(function(e){T(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):w(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function T(t,e,r){return(e=E(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function O(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,E(n.key),n)}}function E(t){var e=function(t,e){if("object"!=b(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=b(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==b(e)?e:e+""}var j=function(){return function(t,e,r){return e&&O(t.prototype,e),r&&O(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(function t(e,r,n,o,i,a,u,c){var s,l,f,p;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.map=null,this.centerPos=null,this.defaultMapConfig=c,this.mapContainer=r,this.markerCluster=null,this._isLoaded=!1,this.hasCluster=n,this.hasCustomResults=o,this.infowindow=null,this.mapsDataService=i,this.$resultsContainer=new m(u),this.resultEl=a,this._markers=[],this.apiKey=e,window.addEventListener("resize",(s=this._reCenter.bind(this),l=100,function(){var t=this,e=arguments,r=f&&!p;clearTimeout(p),p=setTimeout(function(){p=null,f||s.apply(t,e)},l),r&&s.apply(t,e)}))},[{key:"clientLatLong",get:function(){return this._clientLatLong},set:function(t){var e=t.lat,r=t.lng;this._clientLatLong=new google.maps.LatLng({lat:e,lng:r}),this.map.setCenter(this._clientLatLong)}},{key:"isLoaded",get:function(){return this._isLoaded}},{key:"markers",get:function(){return this._markers}},{key:"load",value:function(){var t=this;return new Promise(function(e,r){var n=t,o=document.createElement("script");
2o.type="text/javascript",o.src="https://maps.googleapis.com/maps/api/js?key="+t.apiKey+"&callback=onGoogleApiLoaded&libraries=geometry,places,marker",window.onGoogleApiLoaded=function(){n._onGoogleMapsLoad(),n._isLoaded=!0,e()},document.querySelector("head").appendChild(o)})}},{key:"_onGoogleMapsLoad",value:function(){this._clientLatLong=new google.maps.LatLng(this.defaultMapConfig.center.lat,this.defaultMapConfig.center.lng),this.map=new google.maps.Map(document.getElementById(this.mapContainer),_(_({},this.defaultMapConfig),{},{center:this._clientLatLong})),this._initCustomSetStyle()}},{key:"_initCustomSetStyle",value:function(){this.map.data.setStyle(function(t){return{visible:t.getProperty("active")}})}},{key:"_initClusterer",value:function(){var t=this.map,e=this._markers,r={render:function(t,e,r){var n=t.count,o=t.position,i='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200" width="50" height="50">\n<circle cx="99.97" cy="99.88" r="59.83" fill="#ff0"/>\n<ellipse cx="99.97" cy="99.88" fill="#ffed00" rx="70.71" ry="68.89"/>\n<path fill="#ffed00" d="M100 190.53c-51 0-92.46-40.67-92.46-90.65S49 9.23 100 9.23s92.47 40.67 92.47 90.65S151\n190.53 100 190.53zm0-174c-47 0-85.21 37.41-85.21 83.4S53 183.28 100 183.28s85.21-37.41 85.21-83.4S147 16.48 100 16.48z"/>\n<path fill-rule="evenodd" d="M54.65 99.88A45.33 45.33 0 1 0 100 54.56a45.34 45.34 0 0 0-45.35 45.32z"/>\n<path fill="#fff" d="M100 148.83a49 49 0 1 1 48.95-49 49 49 0 0 1-48.95 49zm0-90.65a41.7 41.7 0 1 0 41.7 41.7 41.74 41.74 0 0 0-41.7-41.7z"/>\n<text x="50%" y="53%" style="fill:#ffed00" text-anchor="middle" font-size="50" dominant-baseline="middle" font-family="arial,sans-serif" font-weight="bold">'.concat(n,"</text>\n</svg>"),a=(new DOMParser).parseFromString(i,"image/svg+xml").documentElement,u={map:r,position:o,zIndex:Number(google.maps.Marker.MAX_ZINDEX)+n,content:a};return new google.maps.marker.AdvancedMarkerElement(u)}};this.markerCluster=new o.w1({renderer:r,map:t,markers:e})}},{key:"_bindCustomResultClick",value:function(){this.$resultsContainer.find(this.resultEl).on("click",this._onResultClick.bind(this))}},{key:"_reCenter",value:function(){var t=this.map.getCenter();this.centerPos||(this.centerPos=this.map.getCenter()),t.lat()!=this.centerPos.lat()&&t.lng()!=this.centerPos.lng()&&(this.centerPos=this.map.getCenter()),this.map.setCenter(this.centerPos)}},{key:"_onMarkerClick",value:function(t){var e=this;!1!==this.defaultMapConfig.clickableIcons?(this.infowindow||(this.infowindow=new google.maps.InfoWindow),this.mapsDataService.ensureDetailsFor([t.content.id]).then(function(r){var n=e.parseTemplate(".gmapInfoTemplate",t);e.parseInfoWindow(t,n)})):this.map.setCenter(t.position)}},{key:"_onResultClick",value:function(t){var e=this,r=new m(t.currentTarget);new m(this.resultEl).removeClass("is-active"),r.addClass("is-active"),this.getMarkers().then(function(t){var n=t.filter(function(t){return t.content.id===r.attribute("data-id")});e._onMarkerClick(n[0])})}},{key:"parseInfoWindow",value:function(t,e){var r=this;return new Promise(function(n,o){google.maps.event.addListener(r.infowindow,"domready",n),r.infowindow.setContent(e),r.infowindow.setPosition(t.position),r.infowindow.setOptions({pixelOffset:new google.maps.Size(0,-30)}),r.infowindow.open(r.map),r.map.setCenter(t.position),r.setZoom(13)})}},{key:"parseTemplate",value:function(t,e){var r,n=e.content,o=this.defaultMapConfig.templateDelimiters,i=document.querySelector(t).innerHTML,a=g(this.defaultMapConfig.templateVars);try{for(a.s();!(r=a.n()).done;){var u=r.value;i=this.replaceTemplateVar(i,u,o,n.properties),this.defaultMapConfig.templateVars.indexOf("distance")>-1&&n.properties.distance&&"distance"===u&&!0===this.mapsDataService.hasActiveRadiusFilter()&&(i=i.replace(/{distance}/g,n.properties.distance).replace(/is-hidden/g,""))}}catch(t){a.e(t)}finally{a.f()}return i=this.replaceTemplateVar(i,"id",o,{id:n.id})}},{key:"replaceTemplateVar",value:function(t,e,r){var o,i=function(t,e,r,n){return t.replace(new RegExp(n[0]+e+n[1],"g"),r)},a=(o=(arguments.length>3&&void 0!==arguments[3]?arguments[3]:{})[e],document.createElement("a").appendChild(document.createTextNode(o)).parentNode.innerHTML),u=[n(r[0]),n(r[1])];return t=i(t,e,a,r),t=i(t,e,a,u)}},{key:"closeInfoWindow",value:function(){this.infowindow&&this.infowindow.close()}},{key:"setZoom",value:function(t){this.map.setZoom(t)}},{key:"updateView",value:function(){var t=this;return new Promise(function(e,r){var n="";t._markers.length>
20&&t._markers.forEach(function(t){return t.map=null}),t.getMarkers().then(function(r){r.forEach(function(e){t.hasCustomResults&&(n+=t.parseTemplate(".customSearchResultItemTemplate",e)),e.map=t.map}),t.hasCluster&&(t.markerCluster&&t.markerCluster.clearMarkers(),t._initClusterer()),t.hasCustomResults&&(t.$resultsContainer[0].innerHTML="",t.$resultsContainer.append(n)),t._bindCustomResultClick(),e()},r)})}},{key:"getMarkers",value:function(){var t=this;return new Promise(function(e,r){t.mapsDataService.getItems().then(function(r){t._markers=r.map(function(e){var r=new google.maps.marker.PinElement({background:"#ffed00",glyphColor:"#111111",borderColor:"#111111",scale:1}).element;r.properties=e.properties,r.id=e.id;var n=new google.maps.marker.AdvancedMarkerElement({position:{lng:e.geometry.lng,lat:e.geometry.lat},content:r});return google.maps.event.addListener(n,"click",function(e){return function(){return t._onMarkerClick(e)}}(n)),n}),e(t._markers)})})}},{key:"searchFor",value:function(t){var e=this;return new Promise(function(r,n){e._geocode({address:t}).then(function(t){var o=t.results,i=t.status;if("OK"===i){var a=o[0].geometry.location;e.map.setCenter(a),e._clientLatLong=new google.maps.LatLng({lat:a.lat(),lng:a.lng()}),r()}else n({code:i,message:"geocoding error"})})})}},{key:"_geocode",value:function(t){return new Promise(function(e,r){(new google.maps.Geocoder).geocode(t,function(t,r){e({results:t,status:r})})})}}])}()},85043:function(t,e,r){"use strict";r.d(e,{A:function(){return c}});r(52675),r(89463),r(2259),r(45700),r(2008),r(50113),r(23418),r(23792),r(34782),r(89572),r(62010),r(2892),r(69085),r(79432),r(26099),r(3362),r(27495),r(38781),r(47764),r(62953);function n(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return o(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}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,u=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return u=t.done,t},e:function(t){c=!0,a=t},f:function(){try{u||null==r.return||r.return()}finally{if(c)throw a}}}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];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},i(t)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if("object"!=i(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==i(e)?e:e+""}var c=function(){return function(t,e,r){return e&&a(t.prototype,e),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._urlGenerator=e||window.defaultUrlGenerator,this._requestOptions=r,this._data=null},[{key:"data",get:function(){return this._data}},{key:"requestOptions",set:function(t){this._requestOptions=t}},{key:"buildResult",value:function(t,e){var r={success:[204,202,201,200].indexOf(t.target.status)>-1,status:t.target.status,data:!1,error:void 0,errorCode:0};if(t.target.responseText)try{r.data=JSON.parse(t.target.responseText),null!=e&&e.transformer&&e.transformer(r)}catch(t){r.success=!1,r.data=!1}
2return"load"!=t.type&&(r.error=t.type),r}},{key:"request",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._requestOptions,r=this;return new Promise(function(n,o){var a=new XMLHttpRequest;a.addEventListener("load",function(t){n(r.buildResult(t,e))}),a.addEventListener("abort",function(t){n(r.buildResult(t,e))}),a.addEventListener("error",function(t){n(r.buildResult(t,e))}),a.addEventListener("timeout",function(t){n(r.buildResult(t,e))}),a.open(e.method||"GET",t),void 0!==e.acceptType?e.acceptType&&a.setRequestHeader("accept",e.acceptType):a.setRequestHeader("accept","application/vnd.collection+json"),e.body?"object"==i(e.body)?(a.setRequestHeader("content-type",e.contentType||"application/json"),a.send(JSON.stringify(e.body,null,4))):a.send(e.body):e.formData?a.send(e.formData):a.send()})}},{key:"fetchDataFor",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return void 0===this._urlGenerator?Promise.resolve(this._data):new Promise(function(n,o){var i=t._urlGenerator({extended:e,ids:r});t.request(i,t._requestOptions).then(function(e){e.success&&e.data.success&&n(t.mergeData(e.data.results))}).catch(function(t){return o(t)})})}},{key:"mergeData",value:function(t){var e=this;if(this._data){var r,o=n(t);try{var i=function(){var t=r.value,n=e._data.find(function(e){return e.id===t.id});n&&Object.assign(n.properties,t.properties)};for(o.s();!(r=o.n()).done;)i()}catch(t){o.e(t)}finally{o.f()}}else this._data=t;return this._data}},{key:"setData",value:function(t){this._data=t}},{key:"fetch",value:function(){var t=this;return new Promise(function(e,r){t._data?e(t._data):t.fetchDataFor().then(function(t){return e(t)},r)})}},{key:"ensureDetailsFor",value:function(t){var e=this;return new Promise(function(r,n){e.fetch().then(function(o){var i=[];o.filter(function(e){e.properties.city||-1===t.indexOf(e.id)||i.push(e.id)}),i.length?e.fetchDataFor(!0,i).then(function(t){return r(t)},n):r(o)},n)})}}])}()},92745:function(t,e,r){var n,o,i;r(52675),r(89463),r(2259),r(50113),r(23792),r(62062),r(34782),r(26099),r(58940),r(84864),r(27495),r(38781),r(47764),r(25440),r(90744),r(42762),r(62953),function(){"use strict";o=[r(74692)],n=function(t){function e(r,n){var o=this;o.element=r,o.el=t(r),o.suggestions=[],o.badQueries=[],o.selectedIndex=-1,o.currentValue=o.element.value,o.timeoutId=null,o.cachedResponse={},o.onChangeTimeout=null,o.onChange=null,o.isLocal=!1,o.suggestionsContainer=null,o.noSuggestionsContainer=null,o.options=t.extend(!0,{},e.defaults,n),o.classes={selected:"autocomplete-selected",suggestion:"autocomplete-suggestion"},o.hint=null,o.hintValue="",o.selection=null,o.initialize(),o.setOptions(n)}function r(t,e,r){return-1!==t.value.toLowerCase().indexOf(r)}function n(e){return"string"==typeof e?t.parseJSON(e):e}function o(t,e){if(!e)return t.value;var r="("+a.escapeRegExChars(e)+")";return t.value.replace(new RegExp(r,"gi"),"<strong>$1</strong>").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/&lt;(\/?strong)&gt;/g,"<$1>")}function i(t,e){return'<div class="autocomplete-group">'+e+"</div>"}var a={escapeRegExChars:function(t){return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")},createNode:function(t){var e=document.createElement("div");return e.className=t,e.style.position="absolute",e.style.display="none",e}},u={ESC:27,TAB:9,RETURN:13,LEFT:37,UP:38,RIGHT:39,DOWN:40},c=t.noop;e.utils=a,t.Autocomplete=e,e.defaults={ajaxSettings:{},autoSelectFirst:!1,appendTo:"body",serviceUrl:null,lookup:null,onSelect:null,width:"auto",minChars:1,maxHeight:300,deferRequestBy:0,params:{},formatResult:o,formatGroup:i,delimiter:null,zIndex:9999,type:"GET",noCache:!1,onSearchStart:c,onSearchComplete:c,onSearchError:c,preserveInput:!1,containerClass:"autocomplete-suggestions",tabDisabled:!1,dataType:"text",currentRequest:null,triggerSelectOnValidInput:!0,preventBadQueries:!0,lookupFilter:r,paramName:"query",transformResult:n,showNoSuggestionNotice:!1,noSuggestionNotice:"No results",orientation:"bottom",forceFixPosition:!1},e.prototype={initialize:function(){var r,n=this,o="."+n.classes.suggestion,i=n.classes.selected,a=n.options;n.element.setAttribute("autocomplete","off"),n.noSuggestionsContainer=t('<div class="autocomplete-no-suggestion"></div>').html(this.options.noSuggestionNotice).get(0),n.suggestionsContainer=e.utils.createNode(a.containerClass),(r=t(n.suggestionsContainer)).appendTo(a.appendTo||"body"),"auto"!==a.width&&r.css("width",a.width),r.on("mouseover.autocomplete",o,function(){n.activate(t(this).data("index"))}),r.on("mouseout.autocomplete",function(){n.selectedIndex=-1,r.children("."+i).removeClass(i)}),r.on("click.autocomplete",o,function(){n.select(t(this).data("index"))}),r.on("click.autocomplete",function(){clearTimeout(n.blurTimeoutId)}),n.fixPositionCapture=function(){n.visible&&n.fixPosition()},t(window).on("resize.autocomplete",n.fixPositionCapture),n.el.on("key
2down.autocomplete",function(t){n.onKeyPress(t)}),n.el.on("keyup.autocomplete",function(t){n.onKeyUp(t)}),n.el.on("blur.autocomplete",function(){n.onBlur()}),n.el.on("focus.autocomplete",function(){n.onFocus()}),n.el.on("change.autocomplete",function(t){n.onKeyUp(t)}),n.el.on("input.autocomplete",function(t){n.onKeyUp(t)})},onFocus:function(){var t=this;t.fixPosition(),t.el.val().length>=t.options.minChars&&t.onValueChange()},onBlur:function(){var e=this,r=e.options,n=e.el.val(),o=e.getQuery(n);e.blurTimeoutId=setTimeout(function(){e.hide(),e.selection&&e.currentValue!==o&&(r.onInvalidateSelection||t.noop).call(e.element)},200)},abortAjax:function(){var t=this;t.currentRequest&&(t.currentRequest.abort(),t.currentRequest=null)},setOptions:function(e){var r=this,n=t.extend({},r.options,e);r.isLocal=Array.isArray(n.lookup),r.isLocal&&(n.lookup=r.verifySuggestionsFormat(n.lookup)),n.orientation=r.validateOrientation(n.orientation,"bottom"),t(r.suggestionsContainer).css({"max-height":n.maxHeight+"px",width:n.width+"px","z-index":n.zIndex}),this.options=n},clearCache:function(){this.cachedResponse={},this.badQueries=[]},clear:function(){this.clearCache(),this.currentValue="",this.suggestions=[]},disable:function(){var t=this;t.disabled=!0,clearTimeout(t.onChangeTimeout),t.abortAjax()},enable:function(){this.disabled=!1},fixPosition:function(){var e=this,r=t(e.suggestionsContainer),n=r.parent().get(0);if(n===document.body||e.options.forceFixPosition){var o=e.options.orientation,i=r.outerHeight(),a=e.el.outerHeight(),u=e.el.offset(),c={top:u.top,left:u.left};if("auto"===o){var s=t(window).height(),l=t(window).scrollTop(),f=-l+u.top-i,p=l+s-(u.top+a+i);o=Math.max(f,p)===f?"top":"bottom"}if(c.top+="top"===o?-i:a,n!==document.body){var h,y=r.css("opacity");e.visible||r.css("opacity",0).show(),h=r.offsetParent().offset(),c.top-=h.top,c.top+=n.scrollTop,c.left-=h.left,e.visible||r.css("opacity",y).hide()}"auto"===e.options.width&&(c.width=e.el.outerWidth()+"px"),r.css(c)}},isCursorAtEnd:function(){var t,e=this,r=e.el.val().length,n=e.element.selectionStart;return"number"==typeof n?n===r:!document.selection||((t=document.selection.createRange()).moveStart("character",-r),r===t.text.length)},onKeyPress:function(t){var e=this;if(e.disabled||e.visible||t.which!==u.DOWN||!e.currentValue){if(!e.disabled&&e.visible){switch(t.which){case u.ESC:e.el.val(e.currentValue),e.hide();break;case u.RIGHT:if(e.hint&&e.options.onHint&&e.isCursorAtEnd()){e.selectHint();break}return;case u.TAB:if(e.hint&&e.options.onHint)return void e.selectHint();if(-1===e.selectedIndex)return void e.hide();if(e.select(e.selectedIndex),!1===e.options.tabDisabled)return;break;case u.RETURN:if(-1===e.selectedIndex)return void e.hide();e.select(e.selectedIndex);break;case u.UP:e.moveUp();break;case u.DOWN:e.moveDown();break;default:return}t.stopImmediatePropagation(),t.preventDefault()}}else e.suggest()},onKeyUp:function(t){var e=this;if(!e.disabled){switch(t.which){case u.UP:case u.DOWN:return}clearTimeout(e.onChangeTimeout),e.currentValue!==e.el.val()&&(e.findBestHint(),e.options.deferRequestBy>0?e.onChangeTimeout=setTimeout(function(){e.onValueChange()},e.options.deferRequestBy):e.onValueChange())}},onValueChange:function(){if(!this.ignoreValueChange){var e=this,r=e.options,n=e.el.val(),o=e.getQuery(n);return e.selection&&e.currentValue!==o&&(e.selection=null,(r.onInvalidateSelection||t.noop).call(e.element)),clearTimeout(e.onChangeTimeout),e.currentValue=n,e.selectedIndex=-1,r.triggerSelectOnValidInput&&e.isExactMatch(o)?void e.select(0):void(o.length<r.minChars?e.hide():e.getSuggestions(o))}this.ignoreValueChange=!1},isExactMatch:function(t){var e=this.suggestions;return 1===e.length&&e[0].value.toLowerCase()===t.toLowerCase()},getQuery:function(e){var r,n=this.options.delimiter;return n?(r=e.split(n),t.trim(r[r.length-1])):e},getSuggestionsLocal:function(e){var r,n=this.options,o=e.toLowerCase(),i=n.lookupFilter,a=parseInt(n.lookupLimit,10);return r={suggestions:t.grep(n.lookup,function(t){return i(t,e,o)})},a&&r.suggestions.length>a&&(r.suggestions=r.suggestions.slice(0,a)),r},getSuggestions:function(e){var r,n,o,i,a=this,u=a.options,c=u.serviceUrl;if(u.params[u.paramName]=e,!1!==u.onSearchStart.call(a.element,u.params)){if(n=u.ignoreParams?null:u.params,t.isFunction(u.lookup))return void u.lookup(e,function(t){a.suggestions=t.suggestions,a.suggest(),u.onSearchComplete.call(a.element,e,t.suggestions)});a.isLocal?r=a.getSuggestionsLocal(e):(t.isFunction(c)&&(c=c.call(a.element,e)),o=c+"?"+t.param(n||{}),r=a.cachedResponse[o]),r&&Array.isArray(r.suggestions)?(a.suggestions=r.suggestions,a.suggest(),u.onSearchComplete.call(a.element,e,r.suggestions)):a.isBadQuery(e)?u.onSearchComplete.call(a.element,e,[]):(a.abortAjax(),i={url:c,data:n,type:u.type,dataType:u.dataType},t.extend(i,u.ajaxSettings),a.currentRequest=t.ajax(i).done(function(t){var r;a.currentRequest=null,r=u.transformResult(t,e),a.processResponse(r,e,o),u.onSearchComplete.call(a.element,e,r.suggestions)}).fail(function(t,r,n){u.onSearchError.call(a.element,e,t,r,n)}))}},isBadQuery:function(t){if(!this.options.preventBadQueries)return!1;for(var e=this.badQueries,r=e.length;r--;)if(0===t.indexOf(e[r]))return!0;return!1},hide:function(){var e=this,r=t(e.suggestionsContainer);t.isFunction(e.options.onHide)&&e.visible&&e.options.onHide.call(e.element,r),e.visible=!1,e.selectedIndex=-1,
2clearTimeout(e.onChangeTimeout),t(e.suggestionsContainer).hide(),e.signalHint(null)},suggest:function(){if(this.suggestions.length){var e,r=this,n=r.options,o=n.groupBy,i=n.formatResult,a=r.getQuery(r.currentValue),u=r.classes.suggestion,c=r.classes.selected,s=t(r.suggestionsContainer),l=t(r.noSuggestionsContainer),f=n.beforeRender,p="",h=function(t,r){var i=t[o];return e===i?"":(e=i,n.formatGroup(t,e))};return n.triggerSelectOnValidInput&&r.isExactMatch(a)?void r.select(0):(t.each(r.suggestions,function(t,e){o&&(p+=h(e,a,t)),p+='<div class="'+u+'" data-index="'+t+'">'+i(e,a,t)+"</div>"}),this.adjustContainerWidth(),l.detach(),s.html(p),t.isFunction(f)&&f.call(r.element,s,r.suggestions),r.fixPosition(),s.show(),n.autoSelectFirst&&(r.selectedIndex=0,s.scrollTop(0),s.children("."+u).first().addClass(c)),r.visible=!0,void r.findBestHint())}this.options.showNoSuggestionNotice?this.noSuggestions():this.hide()},noSuggestions:function(){var e=this,r=e.options.beforeRender,n=t(e.suggestionsContainer),o=t(e.noSuggestionsContainer);this.adjustContainerWidth(),o.detach(),n.empty(),n.append(o),t.isFunction(r)&&r.call(e.element,n,e.suggestions),e.fixPosition(),n.show(),e.visible=!0},adjustContainerWidth:function(){var e,r=this,n=r.options,o=t(r.suggestionsContainer);"auto"===n.width?(e=r.el.outerWidth(),o.css("width",e>0?e:300)):"flex"===n.width&&o.css("width","")},findBestHint:function(){var e=this,r=e.el.val().toLowerCase(),n=null;r&&(t.each(e.suggestions,function(t,e){var o=0===e.value.toLowerCase().indexOf(r);return o&&(n=e),!o}),e.signalHint(n))},signalHint:function(e){var r="",n=this;e&&(r=n.currentValue+e.value.substr(n.currentValue.length)),n.hintValue!==r&&(n.hintValue=r,n.hint=e,(this.options.onHint||t.noop)(r))},verifySuggestionsFormat:function(e){return console.log(e),e.length&&"string"==typeof e[0]?t.map(e,function(t){return{value:t,data:null}}):e},validateOrientation:function(e,r){return e=t.trim(e||"").toLowerCase(),-1===t.inArray(e,["auto","bottom","top"])&&(e=r),e},processResponse:function(t,e,r){console.log("processREsponse");var n=this,o=n.options;t.suggestions=n.verifySuggestionsFormat(t.suggestions),o.noCache||(n.cachedResponse[r]=t,o.preventBadQueries&&!t.suggestions.length&&n.badQueries.push(e)),e===n.getQuery(n.currentValue)&&(n.suggestions=t.suggestions,n.suggest())},activate:function(e){var r,n=this,o=n.classes.selected,i=t(n.suggestionsContainer),a=i.find("."+n.classes.suggestion);return i.find("."+o).removeClass(o),n.selectedIndex=e,-1!==n.selectedIndex&&a.length>n.selectedIndex?(r=a.get(n.selectedIndex),t(r).addClass(o),r):null},selectHint:function(){var e=this,r=t.inArray(e.hint,e.suggestions);e.select(r)},select:function(t){var e=this;e.hide(),e.onSelect(t)},moveUp:function(){var e=this;if(-1!==e.selectedIndex)return 0===e.selectedIndex?(t(e.suggestionsContainer).children("."+e.classes.suggestion).first().removeClass(e.classes.selected),e.selectedIndex=-1,e.ignoreValueChange=!1,e.el.val(e.currentValue),void e.findBestHint()):void e.adjustScroll(e.selectedIndex-1)},moveDown:function(){var t=this;t.selectedIndex!==t.suggestions.length-1&&t.adjustScroll(t.selectedIndex+1)},adjustScroll:function(e){var r=this,n=r.activate(e);if(n){var o,i,a,u=t(n).outerHeight();o=n.offsetTop,a=(i=t(r.suggestionsContainer).scrollTop())+r.options.maxHeight-u,o<i?t(r.suggestionsContainer).scrollTop(o):o>a&&t(r.suggestionsContainer).scrollTop(o-r.options.maxHeight+u),r.options.preserveInput||(r.ignoreValueChange=!0,r.el.val(r.getValue(r.suggestions[e].value))),r.signalHint(null)}},onSelect:function(e){var r=this,n=r.options.onSelect,o=r.suggestions[e];r.currentValue=r.getValue(o.value),r.currentValue===r.el.val()||r.options.preserveInput||r.el.val(r.currentValue),r.signalHint(null),r.suggestions=[],r.selection=o,t.isFunction(n)&&n.call(r.element,o)},getValue:function(t){var e,r,n=this,o=n.options.delimiter;return o?1===(r=(e=n.currentValue).split(o)).length?t:e.substr(0,e.length-r[r.length-1].length)+t:t},dispose:function(){var e=this;e.el.off(".autocomplete").removeData("autocomplete"),t(window).off("resize.autocomplete",e.fixPositionCapture),t(e.suggestionsContainer).remove()}},t.fn.devbridgeAutocomplete=function(r,n){var o="autocomplete";return arguments.length?this.each(function(){var i=t(this),a=i.data(o);"string"==typeof r?a&&"function"==typeof a[r]&&a[r](n):(a&&a.dispose&&a.dispose(),a=new e(this,r),i.data(o,a))}):this.first().data(o)}
2,t.fn.autocomplete||(t.fn.autocomplete=t.fn.devbridgeAutocomplete)},void 0===(i="function"==typeof n?n.apply(e,o):n)||(t.exports=i)}()},36497:function(t,e,r){"use strict";r.d(e,{Z:function(){return l},o:function(){return s}});r(28706),r(79432),r(26099),r(84864),r(27495),r(38781),r(25440),r(23500),r(25295);var n=r(10915),o=r.n(n),i=r(38338),a=r.n(i),u=r(12412),c=r.n(u);r(46952);function s(){if(-1!==navigator.userAgent.indexOf("MSIE")||navigator.appVersion.indexOf("Trident/")>-1){var t="o-gridcontainer",e="auto 30px ",r=[2,3,4];document.querySelectorAll(".".concat(t)).forEach(function(n){var o="",i=1,a=1;n.children.forEach(function(u,c){for(var s=!0,l=0,f=r;l<f.length;l++){var p=f[l];if(n.classList.contains("".concat(t,"--").concat(p,"columns"))){s=!1,u.style.msGridRow=i,u.style.msGridColumn=a;var h=window.matchMedia("(min-width:640px)"),y=window.matchMedia("(min-width:1024px)"),d=p;if(y.matches||!h.matches||3!==p&&4!==p){if(!y.matches&&h.matches&&2===p||!y.matches&&!h.matches){s=!0;break}}else d=2;a+=2,(c+1)%d===0&&(i+=2,a=1,n.children.length>d&&(o+=e))}}s&&(u.style.msGridRow=i,i+=2,o+=e)}),n.style.msGridRows=o})}}function l(){var t=window.matchMedia("(min-width:768px)"),e=window.matchMedia("(min-width:1024px)");if((-1!==navigator.userAgent.indexOf("MSIE")||navigator.appVersion.indexOf("Trident/")>-1)&&!e.matches&&t.matches){document.querySelectorAll(".".concat("o-roadshow__list")).forEach(function(t){var e="",r=1,n=1;t.children.forEach(function(o,i){o.style.msGridRow=r,o.style.msGridColumn=n,n+=2,(i+1)%2==0&&(r+=2,n=1,t.children.length>2&&(e+="auto 30px "))}),t.style.msGridRows=e})}}String.prototype.interpolate=function(t){var e=this.replace(new RegExp("{% verbatim %}","g"),"").replace(new RegExp("{% endverbatim %}","g"),"");return c().extendFilter("revertSearchResultHighlighting",function(t){return JSON.parse(JSON.stringify(t).replace(new RegExp("<strong>|</strong>","g"),""))}),c().extendFilter("removeDataLayerProperties",function(t){return t.adobeDataLayerId&&delete t.adobeDataLayerId,t.dataLayerJsonString&&delete t.dataLayerJsonString,t}),c().twig({data:e}).render(t)},a()(),o()(),function(){if("function"==typeof window.CustomEvent)return!1;window.CustomEvent=function(t,e){e=e||{bubbles:!1,cancelable:!1,detail:null};var r=document.createEvent("CustomEvent");return r.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),r}}(),Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(t){var e=this;do{if(e.matches(t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}),[Element.prototype,CharacterData.prototype,DocumentType.prototype].forEach(function(t){t.hasOwnProperty("remove")||Object.defineProperty(t,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){this.parentNode.removeChild(this)}})});var f,p,h=["9999999","data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTgwIiBoZWlnaHQ9IjQwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KIDxzdHlsZT4KICAuYmxpbmtpbmd7CiAgYW5pbWF0aW9uOiBibGluayAxcyBsaW5lYXIgaW5maW5pdGU7CiAgfQogIEBrZXlmcmFtZXMgYmxpbmt7CiAgMCV7b3BhY2l0eTogMDt9CiAgNTAle29wYWNpdHk6IC41O30KICAxMDAle29wYWNpdHk6IDE7fQogIH0KIDwvc3R5bGU+CiA8Zz4KICA8dGl0bGU+YmFja2dyb3VuZDwvdGl0bGU+CiAgPHJlY3QgZmlsbD0iI2ZmZiIgaWQ9ImNhbnZhc19iYWNrZ3JvdW5kIiBoZWlnaHQ9IjQwMiIgd2lkdGg9IjU4MiIgeT0iLTEiIHg9Ii0xIi8+CiAgPGcgZGlzcGxheT0ibm9uZSIgb3ZlcmZsb3c9InZpc2libGUiIHk9IjAiIHg9IjAiIGhlaWdodD0iMTAwJSIgd2lkdGg9IjEwMCUiIGlkPSJjYW52YXNHcmlkIj4KICAgPHJlY3QgZmlsbD0idXJsKCNncmlkcGF0dGVybikiIHN0cm9rZS13aWR0aD0iMCIgeT0iMCIgeD0iMCIgaGVpZ2h0PSIxMDAlIiB3aWR0aD0iMTAwJSIvPgogIDwvZz4KIDwvZz4KIDxnPgogIDx0aXRsZT5MYXllciAxPC90aXRsZT4KICA8dGV4dCBjbGFzcz0iYmxpbmtpbmciIHN0cm9rZT0iIzAwMCIgdHJhbnNmb3JtPSJtYXRyaXgoMi45ODQ3ODg1ODYxMjYxODQ1LDAsMCwyLjk4NDc4ODU4NjEyNjE4NDUsLTE5OS4wNTc1MTU5NTE3NjA3NiwtNTA4Ljc1NjAzNjc3NTUxNjgpICIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSIgdGV4dC1hbmNob3I9InN0YXJ0IiBmb250LWZhbWlseT0iSGVsdmV0aWNhLCBBcmlhbCwgc2Fucy1zZXJpZiIgZm9udC1zaXplPSIxMDAiIGlkPSJzdmdfMiIgeT0iMjczLjI3MzU0IiB4PSI2OS4wMTIwNjciIHN0cm9rZS13aWR0aD0iMCIgZmlsbD0iI0ZGQUFCOCI+QS5DLjwvdGV4dD4KIDwvZz4KPC9zdmc+","img","indexOf","arrowleft","appendChild","now","toLowerCase","zIndex","fixed","20px","push","90px","arrowright","1995arrowleftarrowrightenter","height","enter","style","width","src","body","addEventListener","to
2p"];f=h,p=288,function(t){for(;--t;)f.push(f.shift())}(++p);var y,d=function(t,e){return h[t-=0]},v=[],m=Date[d("0x11")]();y=d("0xc"),document[d("0x9")]("keydown",function(t){var e=d("0x2"),r=t.key[d("0x12")](),n=Date[d("0x11")]();if((n-m>1e3||-1===e.indexOf(r))&&(v=[]),-1!==e[d("0xe")](r)){if(v[d("0x16")](r),"1"===v[0]&&"9"===v[1]&&"9"===v[2]&&"5"===v[3]&&v[4]===d("0xf")&&v[5]===d("0x1")&&v[6]===d("0x4")){var o=document.createElement(d("0xd"));o[d("0x7")]=y,o[d("0x5")][d("0x6")]=d("0x0"),o.style[d("0x3")]=d("0x0"),o[d("0x5")].position=d("0x14"),o.style[d("0xa")]=d("0x15"),o[d("0x5")].left=d("0x15"),o[d("0x5")][d("0x13")]=d("0xb"),document[d("0x8")][d("0x10")](o)}m=n}})},11026:function(t,e,r){"use strict";r.d(e,{B:function(){return a},j:function(){return u}});r(52675),r(89463),r(2259),r(45700),r(23792),r(89572),r(2892),r(79432),r(26099),r(3362),r(47764),r(62953);function n(t){return n="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},n(t)}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,i(n.key),n)}}function i(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var a=function(){return function(t,e,r){return e&&o(t.prototype,e),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)},[{key:"_buildResult",value:function(t,e,r){var n={success:[204,202,201,200].indexOf(t.target.status)>-1,status:t.target.status,data:!1,error:void 0,errorCode:0,title:""};if("arraybuffer"===t.target.responseType)n.data=t.target.response,e&&e.transformer&&e.transformer(n);else if((t.target.responseText&&""===t.target.responseType||"text"===t.target.responseType)&&e&&!e.isSeminarDocumentsForm)try{n.data=JSON.parse(t.target.responseText),e&&e.transformer&&e.transformer(n)}catch(t){n.success=!1,n.data=!1}return"load"!==t.type&&(n.error=t.type),n}},{key:"request",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this;return new Promise(function(o,i){var a=e||{},u=new XMLHttpRequest;u.addEventListener("load",function(t){o(r._buildResult(t,e,u))}),u.addEventListener("abort",function(t){o(r._buildResult(t,e,u))}),u.addEventListener("error",function(t){o(r._buildResult(t,e,u))}),u.addEventListener("timeout",function(t){o(r._buildResult(t,e,u))}),u.open(a.method||"GET",t),e.authorization&&u.setRequestHeader("Authorization",e.authorization),void 0!==e.acceptType&&e.acceptType&&u.setRequestHeader("accept",e.acceptType),e.responseType&&(u.responseType=e.responseType),e.contentType&&u.setRequestHeader("content-type",a.contentType||"application/json"),e.body?"object"==n(e.body)?u.send(JSON.stringify(e.body,null,4)):u.send(e.body):e.formData?u.send(e.formData):u.send()})}}])}(),u=new a},75940:function(t,e,r){"use strict";r.d(e,{P:function(){return C},l:function(){return A}});r(52675),r(89463),r(66412),r(2259),r(45700),r(78125),r(28706),r(2008),r(50113),r(23418),r(23792),r(94490),r(34782),r(89572),r(62010),r(4731),r(60479),r(2892),r(69085),r(83851),r(81278),r(40875),r(79432),r(26099),r(3362),r(60825),r(27495),r(38781),r(47764),r(23500),r(62953);var n=r(43204);function o(t){return o="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},o(t)}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,f(n.key),n)}}function a(t,e,r){return e=c(e),function(t,e){if(e&&("object"==o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,u()?Reflect.construct(e,r||[],c(t).constructor):e.apply(t,r))}function u(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(u=function(){return!!t})()}
2function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}function s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},s(t,e)}function l(t,e,r){return(e=f(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function f(t){var e=function(t,e){if("object"!=o(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==o(e)?e:e+""}var p=function(t){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),l(t=a(this,e),"_storage",window.localStorage),t}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(e,t),function(t,e,r){return e&&i(t.prototype,e),r&&i(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"storage",get:function(){return this._storage}},{key:"setItem",value:function(t,r){this._storage.setItem(t,r),this.trigger(e.EVENT_TYPES.add),this.trigger(e.EVENT_TYPES.change)}},{key:"getItem",value:function(t){var e=this._storage.getItem(t);if(e)try{return JSON.parse(e)}catch(t){if(e)return e}return!1}},{key:"remove",value:function(t){for(var r=this,n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];o.forEach(function(t){return r._storage.removeItem(t)}),!1===t&&(this.trigger(e.EVENT_TYPES.remove),this.trigger(e.EVENT_TYPES.change))}},{key:"subscribe",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.EVENT_TYPES.change,n=arguments.length>2?arguments[2]:void 0;"function"==typeof t&&(this._subscriptions.push({callback:t,key:n,event:e.EVENT_TYPES.hasOwnProperty(r)?r:"change"}),r===e.EVENT_TYPES.change&&t(this.getItem(n)))}}])}(n.Q);l(p,"EVENT_TYPES",{change:"change",remove:"remove",add:"add"});var h=r(11026);function y(t){return y="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},y(t)}function d(){d=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var i=e&&e.prototype instanceof g?e:g,a=Object.create(i.prototype),u=new L(n||[]);return o(a,"_invoke",{value:C(t,r,u)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var p="suspendedStart",h="suspendedYield",v="executing",m="completed",b={};function g(){}function S(){}function w(){}var _={};s(_,a,function(){return this});var T=Object.getPrototypeOf,O=T&&T(T(x([])));O&&O!==r&&n.call(O,a)&&(_=O);var E=w.prototype=g.prototype=Object.create(_);function j(t){["next","throw","return"].forEach(function(e){s(t,e,function(t){return this._invoke(e,t)})})}function P(t,e){function r(o,i,a,u){var c=f(t[o],t,i);if("throw"!==c.type){var s=c.arg,l=s.value;return l&&"object"==y(l)&&n.call(l,"__await")?e.resolve(l.__await).then(function(t){r("next",t,a,u)},function(t){r("throw",t,a,u)}):e.resolve(l).then(function(t){s.value=t,a(s)},function(t){return r("throw",t,a,u)})}u(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e(function(e,o){r(t,n,e,o)})}return i=i?i.then(o,o):o()}})}function C(e,r,n){var o=p;return function(i,a){if(o===v)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}
vendor: 5,102 bytes, line 2
2for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var c=A(u,n);if(c){if(c===b)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=f(e,r,n);if("normal"===s.type){if(o=n.done?m:h,s.arg===b)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=m,n.method="throw",n.arg=s.arg)}}}function A(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,A(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,b;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,b):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function x(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(y(e)+" is not iterable")}return S.prototype=w,o(E,"constructor",{value:w,configurable:!0}),o(w,"constructor",{value:S,configurable:!0}),S.displayName=s(w,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===S||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,s(t,c,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},j(P.prototype),s(P.prototype,u,function(){return this}),e.AsyncIterator=P,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new P(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next()})},j(E),s(E,c,"Generator"),s(E,a,function(){return this}),s(E,"toString",function(){return"[object Generator]"}),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=x,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(I),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return u.type="throw",u.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,b):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),b},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),I(r),b}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;I(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:x(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),b}},e}function v(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function m(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
2e%2?v(Object(r),!0).forEach(function(e){j(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function b(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,o)}function g(t){return function(t){if(Array.isArray(t))return S(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return S(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?S(t,e):void 0}}(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 S(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function w(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,P(n.key),n)}}function _(t,e,r){return e=O(e),function(t,e){if(e&&("object"==y(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,T()?Reflect.construct(e,r||[],O(t).constructor):e.apply(t,r))}function T(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(T=function(){return!!t})()}function O(t){return O=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},O(t)}function E(t,e){return E=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},E(t,e)}function j(t,e,r){return(e=P(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function P(t){var e=function(t,e){if("object"!=y(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=y(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==y(e)?e:e+""}var C=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),j(t=_(this,e),"_storageService",void 0),j(t,"_requestService",void 0),j(t,"itemsStorageKey","watchlist_items"),j(t,"tokenStorageKey","watchlist_token"),j(t,"restorableItems",[]);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];for(var i=0,a=n;i<a.length;i++){var u=a[i];u instanceof h.B?t._requestService=u:u instanceof p&&(t._storageService=u)}return t._checkDependencies(),t}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&E(t,e)}(e,t),function(t,e,r){return e&&w(t.prototype,e),r&&w(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"_checkDependencies",value:function(){var t="watchlist.service: invalid parameters passed, missing: ";if(!this._storageService)throw t+"storage.service";if(!this._requestService)throw t+"request.service"}},{key:"_getWatchlistStorage",value:function(){return this._storageService.getItem(this.itemsStorageKey)||{items:[]}}},{key:"restore",value:function(){this.save.apply(this,g(this.restorableItems))}},{key:"cleanRestorableItems",value:function(){this.restorableItems=[]}},{key:"setCustomerStorageToken",value:function(t){this._storageService.setItem(this.tokenStorageKey,t)}},{key:"save",value:function(){for(var t=!1,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];var i=this._getWatchlistStorage(),a=n.filter(function(e){return 0===i.items.filter(function(r,n){return r.id===e.id&&(i.items[n]=e,t=!0,!0)}).length&&e});a.length>0&&this.trigger(e.EVENT_TYPES.add,a);var u=i.items.concat(a);this._storageService.setItem(this.itemsStorageKey,JSON.stringify({items:u})),(t||a.length>0)&&this.trigger(e.EVENT_TYPES.change,this.getAll())}},{key:"remove",value:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var o=this._getWatchlistStorage(),i=[],a=[];r.length>
20&&o.items.forEach(function(t){var e=r.filter(function(e){return t.id===e.id});a.push.apply(a,g(e)),0===e.length&&i.push(t)}),this._storageService.remove(i.length>0,this.itemsStorageKey),r.length>0&&this.trigger(e.EVENT_TYPES.remove,a),this.restorableItems=this.restorableItems.concat(a),i.length>0?this.save.apply(this,i):this.trigger(e.EVENT_TYPES.change,this.getAll())}},{key:"getAll",value:function(){return this._getWatchlistStorage()}},{key:"find",value:function(t){return this._getWatchlistStorage().items.find(function(e){return e.id===t.id})}},{key:"findMultiple",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return this._getWatchlistStorage().items.filter(function(e){return t.find(function(t){return t.id===e.id})})}},{key:"subscribeToStorage",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.EVENT_TYPES.change;this._storageService.subscribe(t,e,this.itemsStorageKey)}},{key:"subscribe",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.EVENT_TYPES.change;"function"==typeof t&&(this._subscriptions.push({callback:t,event:e.EVENT_TYPES.hasOwnProperty(r)?r:"change"}),r===e.EVENT_TYPES.change&&t(this.getAll()))}},{key:"persist",value:(r=d().mark(function t(e){var r,n,o;return d().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r=this._storageService.getItem(this.tokenStorageKey),n={},r&&Object.assign(n,{id:r}),t.next=4,this._requestService.request(e,{method:"POST",contentType:"application/json; charset=utf-8",body:m(m({},n),this._getWatchlistStorage())});case 4:return(o=t.sent).success&&o.data.id&&this.setCustomerStorageToken(o.data.id),t.abrupt("return",o);case 7:case"end":return t.stop()}},t,this)}),n=function(){var t=this,e=arguments;return new Promise(function(n,o){var i=r.apply(t,e);function a(t){b(i,n,o,a,u,"next",t)}function u(t){b(i,n,o,a,u,"throw",t)}a(void 0)})},function(t){return n.apply(this,arguments)})}]);var r,n}(n.Q);j(C,"EVENT_TYPES",{change:"change",remove:"remove",add:"add"});var A=new C(h.j,new p)},30607:function(t,e,r){"use strict";r.d(e,{o:function(){return o}});var n=r(18248);function o(t,e){t.addEventListener("mouseenter",function(t){e.querySelector(".slick-active").classList.add(n.A.CSS.IS_PAUSED)}),t.addEventListener("mouseleave",function(t){var r=e.querySelector(".slick-active");r.classList.contains(n.A.CSS.IS_PAUSED)&&(r.classList.remove(n.A.CSS.IS_PAUSED),r.classList.add("reset-animation"),setTimeout(function(){r.classList.remove("reset-animation")},1))}),t.addEventListener("click",function(t){e.classList.remove(n.A.CSS.IS_PAUSED)})}},18248:function(t,e,r){"use strict";r(52675),r(89463),r(2259),r(45700),r(23792),r(89572),r(2892),r(69085),r(26099),r(58940),r(47764),r(62953);var n=r(29808),o=r(74692),i=r.n(o);function a(t){return a="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},a(t)}function u(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,c(n.key),n)}}function c(t){var e=function(t,e){if("object"!=a(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==a(e)?e:e+""}var s=function(){return function(t,e,r){return e&&u(t.prototype,e),r&&u(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._css={},this._initCSSVariables()},[{key:"CSS",get:function(){return this._css}},{key:"EVENTS",get:function(){return{MAIN_NAV:{CALC_FLYOUT_HEIGHT:"viega:app:events:overlay:open"},VIDEO:{YOUTUBE_READY:"onYouTubeIframeAPIReady",MOVINGIMAGE_READY:"onMovingImageAPIReady",PLAY:"viega:app:events:video:play",STOP:"viega:app:events:video:stop"},CONSENT:{CONSENT_CHANGED:"viega:app:events:userconsentchanged",SHOW_SECOND_LAYER:"showsecondlayer",ACCEPT_SERVICE:"acceptservice"}}}},{key:"COOKIES",get:function(){return{COOKIES_ACCEPTED:"COOKIES_ACCEPTED",PREFERRED_LANGUAGE:"PREFERRED_LANGUAGE"}}}
2,{key:"_initCSSVariables",value:function(){i()("meta.css-variables").length||i()('<meta class="css-variables">').appendTo(document.head);var t=i()("meta.css-variables").css("font-family"),e=(0,n.lN)(t);for(var r in e)if(e.hasOwnProperty(r)){var o={},a=parseInt(e[r]);o[r]=a||e[r],Object.assign(this._css,o)}}}])}();e.A=new s},22849:function(t,e,r){"use strict";r.d(e,{Ax:function(){return rt},BQ:function(){return B},DF:function(){return nt},Dr:function(){return et},EJ:function(){return F},Fh:function(){return Z},Hw:function(){return ut},JE:function(){return dt},Kx:function(){return N},Nx:function(){return j},OT:function(){return T},P9:function(){return M},PR:function(){return $},QV:function(){return p},T9:function(){return P},V5:function(){return D},W8:function(){return ot},XH:function(){return z},Z$:function(){return L},aq:function(){return H},bR:function(){return G},do:function(){return yt},g9:function(){return O},jN:function(){return ft},kz:function(){return vt},n4:function(){return l},nE:function(){return R},o$:function(){return st},pj:function(){return K},q_:function(){return k},qd:function(){return I},r4:function(){return E},t0:function(){return A},tB:function(){return pt},tl:function(){return U},y3:function(){return x},y9:function(){return h}});r(52675),r(89463),r(66412),r(2259),r(45700),r(78125),r(23418),r(23792),r(48598),r(62062),r(94490),r(34782),r(11745),r(89572),r(62010),r(4731),r(60479),r(2892),r(40875),r(79432),r(26099),r(3362),r(27495),r(38781),r(47764),r(68156),r(50778),r(21489),r(81630),r(72170),r(75044),r(69539),r(31694),r(89955),r(33206),r(44496),r(66651),r(12887),r(19369),r(66812),r(8995),r(31575),r(36072),r(88747),r(28845),r(29423),r(57301),r(373),r(86614),r(41405),r(33684),r(23500),r(62953);function n(t){return n="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},n(t)}function o(){o=function(){return e};var t,e={},r=Object.prototype,i=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},u="function"==typeof Symbol?Symbol:{},c=u.iterator||"@@iterator",s=u.asyncIterator||"@@asyncIterator",l=u.toStringTag||"@@toStringTag";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(t,e,r){return t[e]=r}}function p(t,e,r,n){var o=e&&e.prototype instanceof g?e:g,i=Object.create(o.prototype),u=new L(n||[]);return a(i,"_invoke",{value:C(t,r,u)}),i}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=p;var y="suspendedStart",d="suspendedYield",v="executing",m="completed",b={};function g(){}function S(){}function w(){}var _={};f(_,c,function(){return this});var T=Object.getPrototypeOf,O=T&&T(T(x([])));O&&O!==r&&i.call(O,c)&&(_=O);var E=w.prototype=g.prototype=Object.create(_);function j(t){["next","throw","return"].forEach(function(e){f(t,e,function(t){return this._invoke(e,t)})})}function P(t,e){function r(o,a,u,c){var s=h(t[o],t,a);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==n(f)&&i.call(f,"__await")?e.resolve(f.__await).then(function(t){r("next",t,u,c)},function(t){r("throw",t,u,c)}):e.resolve(f).then(function(t){l.value=t,u(l)},function(t){return r("throw",t,u,c)})}c(s.arg)}var o;a(this,"_invoke",{value:function(t,n){function i(){return new e(function(e,o){r(t,n,e,o)})}return o=o?o.then(i,i):i()}})}function C(e,r,n){var o=y;return function(i,a){if(o===v)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var c=A(u,n);if(c){if(c===b)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===y)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=h(e,r,n);if("normal"===s.type){if(o=n.done?m:d,s.arg===b)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=m,n.method="throw",n.arg=s.arg)}}}function A(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&
vendor: 5,557 bytes, line 2
2(r.method="return",r.arg=t,A(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var i=h(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,b;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,b):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function x(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(i.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+" is not iterable")}return S.prototype=w,a(E,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:S,configurable:!0}),S.displayName=f(w,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===S||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,f(t,l,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},j(P.prototype),f(P.prototype,s,function(){return this}),e.AsyncIterator=P,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new P(p(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next()})},j(E),f(E,l,"Generator"),f(E,c,function(){return this}),f(E,"toString",function(){return"[object Generator]"}),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=x,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(I),!e)for(var r in this)"t"===r.charAt(0)&&i.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,o){return u.type="throw",u.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],u=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=i.call(a,"catchLoc"),s=i.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,b):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),b},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),I(r),b}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;I(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:x(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),b}},e}function i(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return a(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}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 i,u=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return u=t.done,t},e:function(t){c=!0,i=t},f:function(){try{u||null==r.return||r.return()}finally{if(c)throw i}}}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function u(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
2(t,"string");return"symbol"==n(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function c(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,o)}function s(t){return function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function a(t){c(i,n,o,a,u,"next",t)}function u(t){c(i,n,o,a,u,"throw",t)}a(void 0)})}}var l="data-cmp-datalayer-data",f="data-cmp-data-layer",p="data-cmp-datalayer-id",h="data-cmp-data-layer-enabled",y="@type",d="dc:title",v="xdm:linkURL",m="xdm:index",b="parentId",g="context",S="quantity",w="articlenumber",_="category",T="searchLight",O="searchBasic",E="cmp:search",j="cmp:searchpagination",P="cmp:searchfilter",C="clickDownload",A="button",k="addToWatchlist",I="removeFromWatchlist",L="undoWatchlist",x="removeWatchlistCategory",R="openWatchlistCategoryDownload",N="downloadWatchlistCategory",D="openWatchlistCategoryPdf",F="generatePdfWatchlistCategory",M="openWatchlistCategoryEmail",H="emailWatchlistCategory",B="openWatchlistCategoryPrintOrder",V="watchlistItem",q="viega-frontend/cms/components/content/watchlistItem",G="link",U="viega-frontend/cms/components/content/link",z="viega-frontend/cms/components/content/linkbutton";function W(t,e){return Y.apply(this,arguments)}function Y(){return(Y=s(o().mark(function t(e,r){var n;return o().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,J(e);case 2:if(!(n=t.sent)||!r){t.next=7;break}return t.abrupt("return",r+"-"+n);case 7:return t.abrupt("return","");case 8:case"end":return t.stop()}},t)}))).apply(this,arguments)}function J(t){return Q.apply(this,arguments)}function Q(){return(Q=s(o().mark(function t(e){var r,n;return o().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r=new TextEncoder,n=r.encode(e),t.next=5,window.crypto.subtle.digest("SHA-256",n).then(function(t){var e=Array.from(new Uint8Array(t)).map(function(t){return t.toString(16).padStart(2,"0")}).join("");return e?e.substring(0,10):""});case 5:return t.abrupt("return",t.sent);case 6:case"end":return t.stop()}},t)}))).apply(this,arguments)}function K(t){if(t){t='{"component":'+t+"}";try{var e=JSON.parse(t);window.adobeDataLayer=window.adobeDataLayer||[],window.adobeDataLayer.push(e)}catch(t){}}}function $(t,e,r){if(t){var n=dt(t.id),o=u({},n,u({},y,q));e&&(o[n][b]=e),t.category&&(o[n][_]=t.category),r&&(o[n][g]=r);try{K(JSON.stringify(o))}catch(t){}}}function Z(t,e,r,n,o,i,a){return X.apply(this,arguments)}function X(){return(X=s(o().mark(function t(e,r,n,i,a,c,s){var l,f;return o().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,W(e,s);case 2:return l=t.sent,f=u({},l,u({},y,r)),n&&(f[l][b]=n),c&&(f[l][d]=c),i&&(f[l][g]=i),a&&(f[l][_]=a),t.prev=8,K(JSON.stringify(f)),t.abrupt("return",l);case 14:t.prev=14,t.t0=t.catch(8);case 16:case"end":return t.stop()}},t,null,[[8,14]])}))).apply(this,arguments)}function tt(t){(function(t){var e;if(null!==(e=t.target)&&void 0!==e&&e.closest('[data-type="bookmark"]'))return t.preventDefault(),!0;return!1})(t)||et(t.currentTarget)}function et(t){var e=t.getAttribute(p);if(!e){var r=t.getAttribute(f),n=JSON.parse(r);n&&(e=Object.keys(n)[0])}window.adobeDataLayer=window.adobeDataLayer||[],window.adobeDataLayer.push({event:"cmp:click",eventInfo:{path:"component."+e}})}function rt(t){window.adobeDataLayer=window.adobeDataLayer||[],window.adobeDataLayer.push({event:"cmp:click",eventInfo:{path:"component."+t}})}function nt(t){window.adobeDataLayer=window.adobeDataLayer||[],window.adobeDataLayer.push({event:"cmp:click",eventInfo:{path:"component."+t}})}function ot(t){t.addEventListener("click",tt)}
2function it(t,e){return at.apply(this,arguments)}function at(){return(at=s(o().mark(function t(e,r){var n,a,c,s,l,f,p;return o().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:n=1,a=i(e.items),t.prev=2,a.s();case 4:if((c=a.n()).done){t.next=19;break}if(null==(s=c.value)||!s.teaserType){t.next=17;break}return l=s.link,s.link||(l=s.teaserType+"/"+n.toString()),t.next=11,W(l,s.teaserType);case 11:f=t.sent,s.adobeDataLayerId=f,p=u({},f,u(u(u(u(u(u({},y,"viega-frontend/cms/components/content/dynamicAccordionTeaser"),g,C),d,s.title.text),v,s.link),m,n),b,r)),s.tagPath&&(p[f].tagpath=s.tagPath),s.dataLayerJsonString=JSON.stringify(p),n++;case 17:t.next=4;break;case 19:t.next=24;break;case 21:t.prev=21,t.t0=t.catch(2),a.e(t.t0);case 24:return t.prev=24,a.f(),t.finish(24);case 27:case"end":return t.stop()}},t,null,[[2,21,24,27]])}))).apply(this,arguments)}function ut(t,e){return ct.apply(this,arguments)}function ct(){return(ct=s(o().mark(function t(e,r){var n,a,c,s,l,f,p,h;return o().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!((null==e?void 0:e.results.length)>0)){t.next=29;break}n=1,a="",r&&(a=r.getAttribute("id")),c=i(e.results),t.prev=5,c.s();case 7:if((s=c.n()).done){t.next=21;break}return l=s.value,f=l.entry+"/"+l.entryTagId+"/"+n.toString(),t.next=12,W(f,"dynamicAccordionItem");case 12:return p=t.sent,l.adobeDataLayerId=p,h=u({},p,u(u(u(u(u({},y,"viega-frontend/cms/components/content/dynamicAccordionItem"),d,l.entry),"xdm:id",l.entryTagId),m,n),b,a)),l.dataLayerJsonString=JSON.stringify(h),t.next=18,it(l,p);case 18:n++;case 19:t.next=7;break;case 21:t.next=26;break;case 23:t.prev=23,t.t0=t.catch(5),c.e(t.t0);case 26:return t.prev=26,c.f(),t.finish(26);case 29:case"end":return t.stop()}},t,null,[[5,23,26,29]])}))).apply(this,arguments)}function st(t,e){return lt.apply(this,arguments)}function lt(){return(lt=s(o().mark(function t(e,r){var n,a,c,s,l,f,p,h,S;return o().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!((null==e||null===(n=e.data)||void 0===n||null===(n=n.items)||void 0===n?void 0:n.length)>0)){t.next=30;break}a=1,c=r.getAttribute("id"),s=i(e.data.items),t.prev=4,s.s();case 6:if((l=s.n()).done){t.next=22;break}if((f=l.value).adobeDataLayerParentId=c,null==f||!f.teaserType){t.next=20;break}return p=f.link,f.link||(p=f.teaserType+"/"+a.toString()),t.next=14,W(p,f.teaserType);case 14:h=t.sent,f.adobeDataLayerId=h,S=u({},h,u(u(u(u(u({},y,f.teaserType),d,f.title.text),v,f.link),m,a),b,c)),"downloadTeaser"===f.teaserType&&(S[h][g]=C),f.dataLayerJsonString=JSON.stringify(S),a++;case 20:t.next=6;break;case 22:t.next=27;break;case 24:t.prev=24,t.t0=t.catch(4),s.e(t.t0);case 27:return t.prev=27,s.f(),t.finish(27);case 30:case"end":return t.stop()}},t,null,[[4,24,27,30]])}))).apply(this,arguments)}function ft(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"a";t.querySelectorAll(e+"["+l+"]").forEach(function(t){K(t.getAttribute(l)),ot(t)})}function pt(t,e,r){t.querySelectorAll(e+":not(.slick-cloned)").forEach(function(t){var e=t.querySelector(r);if(e){var n=e.getAttribute(l);n&&(K(n),ot(e))}})}function ht(t,e,r){if(null!=t&&t.teaserType){var n=dt(t.id),o=u({},n,u(u(u(u(u(u({},y,t.teaserType),_,t.category),d,t.title.text),v,t.link),m,e),b,r));t.quantity&&t.quantity>0&&(o[n][S]=t.quantity,t.firstArticleNumber&&(o[n][w]=t.firstArticleNumber));try{t.dataLayerJsonString=JSON.stringify(o),t.adobeDataLayerId=n}catch(t){}e++}}function yt(t,e){if(t){var r,n=i(t);try{for(n.s();!(r=n.n()).done;){ht(r.value,1,e)}}catch(t){n.e(t)}finally{n.f()}}}function dt(t){return V+"-"+t}function vt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"a";t.querySelectorAll(e+"["+p+"]").forEach(function(t){ot(t)})}},29808:function(t,e,r){"use strict";r.d(e,{AT:function(){return h},DG:function(){return f},Hl:function(){return b},PI:function(){return j},Pd:function(){return S},Pe:function(){return P},Pl:function(){return C},Ri:function(){return A},S6:function(){return q},SH:function(){return _},TV:function(){return k},Uk:function(){return T},W4:function(){return c},X2:function(){return d},Xw:function(){return V},_q:function(){return x},eX:function(){return O},lN:function(){return m},lW:function(){return E},lZ:function(){return R},lb:function(){return y},pg:function(){return g},sN:function(){return N},sg:function(){return v},vX:function(){return L},w3:function(){return I},z:function(){return w}});r(52675),r(89463),r(2259),r(28706),r(2008),r(23418),r(74423),r(23792),r(48598),r(62062),r(72712),r(94490),r(34782),r(26910),r(62010),r(36033),r(79432),r(26099),r(78459),r(84864),r(27495),r(38781),r(47764),r(25440),r(5746
2),r(42762),r(12041),r(23500),r(62953),r(3296),r(27208),r(48408);var n=r(18248),o=r(74692);function i(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return a(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(t,e):void 0}}(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 a(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function u(t){return u="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},u(t)}var c={youtube:{name:"YouTube Video",id:"BJz7qNsdj-7"},issuu:{name:"Issuu",id:"dwkRM0PG"},yntro:{name:"Yntro",id:"6wCbs9sZc"},googlemaps:{name:"Google Maps",id:"S1pcEj_jZX"},hubspot:{name:"HubSpot Forms",id:"r1Fhc4iOoWX"},viegaleadflow:{name:"Salesforce Marketing Cloud Account Engagement",id:"lX960FalA68X38"}},s=new Map([["desktop",3],["tablet",2],["mobile",1]]),l=new Map([["large","1024"],["medium","640"]]);function f(t,e){var r=!1;return e&&c[t]&&e[c[t].name]&&(r=e[c[t].name]),r}function p(t,e){t===n.A.EVENTS.CONSENT.SHOW_SECOND_LAYER?UC_UI.showSecondLayer():t===n.A.EVENTS.CONSENT.ACCEPT_SERVICE&&null!==e&&UC_UI.acceptService(e)}function h(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;window.UC_UI&&window.UC_UI.isInitialized()?p(t,e):window.addEventListener("UC_UI_INITIALIZED",function(r){p(t,e)})}function y(){var t=document.getElementsByTagName("script");[].filter.call(t,function(t){return t.src.indexOf("googleapis.com")>=0}).forEach(function(t){t.parentNode.removeChild(t)})}function d(t,e){var r=function(r){var o;!t.contains(r.target)&&((o=t)&&(o.offsetWidth||o.offsetHeight||o.getClientRects().length))&&"svg"!==r.target.nodeName&&"use"!==r.target.nodeName&&(e(t),n(),r.stopPropagation())},n=function(){document.removeEventListener("click",r)};return window.requestAnimationFrame(function(){return document.addEventListener("click",r)}),n}function v(t,e,r){var n;return function(){var o=this,i=arguments,a=r&&!n;clearTimeout(n),n=setTimeout(function(){n=null,r||t.apply(o,i)},e),a&&t.apply(o,i)}}function m(t){var e={};return"string"!=typeof t?e:(t=t.trim().slice(1,-1))?e=t.split("&").reduce(function(t,e){var r=e.replace(/\+/g," ").split("="),n=r[0],o=r[1];return n=decodeURIComponent(n),o=void 0===o?null:decodeURIComponent(o),t.hasOwnProperty(n)?Array.isArray(t[n])?t[n].push(o):t[n]=[t[n],o]:t[n]=o,t},{}):e}function b(t,e){var r=new CustomEvent(t,{bubbles:!1,detail:e});document.dispatchEvent(r)}function g(t){var e=null,r=[];return location.search.substr(1).split("&").forEach(function(n){(r=n.split("="))[0]===t&&(e=decodeURIComponent(r[1]))}),e}function S(t,e){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];t=encodeURI(t),e=encodeURI(e);for(var n,o=document.location.search.substr(1).split("&"),i=o.length;i--;)if((n=o[i].split("="))[0]==t){n[1]=e,o[i]=n.join("=");break}if(i<0&&(o[o.length]=[t,e].join("=")),r&&history.pushState){var a=window.location.protocol+"//"+window.location.host+window.location.pathname+"?"+o.join("&");window.history.pushState({path:a},"",a)}}function w(t){var e,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t&&"string"==typeof t)if(function(t){var e;try{e=new URL(t)}catch(t){return!1}return"http:"===e.protocol||"https:"===e.protocol}(e=t)&&-1!==e.indexOf("?"))t=t.replaceAll("&amp;","&").replaceAll("+","%2B");else{if(r)return t=t.replace(/"/g,"&quot;").replace(/'/g,"&#x27;");t=t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\"\s/g," ").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}return t=document.createElement("a").appendChild(document.createTextNode(t)).parentNode.innerHTML}function _(t,e){for(var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=0,o=Object.keys(t);n<o.length;n++){var i=o[n],a=t[i];a&&"object"===u(a)?_(a,e,r):e&&e.searchQuery.length>e.searchHighlightLimit&&-1===e.excludedHighlightProperties.indexOf(i)?t[i]=w(a).replace(new RegExp(e.pattern,"gi"),"<strong>$1</strong>"):t[i]=r?w(a,!0):w(a)}return t}function T(t){if(!t)return"";var e=(new DOMParser).parseFromString("<root>".concat(t,"</root>"),"application/xml"),r=e.querySelector("parsererror");return r?(console.warn("Error parsing xml datas: ",r.textContent),t):e.firstChild.textContent}function O(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o="",i=g("q")||"",a="("+i.trim().replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")+")";return t.forEach(function(t){var u=e["".concat(t.teaserType,"ResultTemplateTarget")].innerHTML;o+=u.interpolate(_(t,{searchQuery:i,searchHighlightLimit:e.searchHighlightLimit,pattern:a,excludedHighlightProperties:r},n))}),o.replace(/&amp;quot;/g,"&quot;").replace(/&amp;#x27;/g,"&#x27;")}function E(t){t.select(),t.setSelectionRange(0,99999),document.execCommand("copy")}function j(t){var e=document.createElement("textarea");e.id="temp_element",e.style.height=0,document.body.appendChild(e),e.value=t.innerText,document.querySelector("#temp_element").select(),document.execCommand("copy"),document.body.removeChild(e)}function P(t){var e=t.parentNode;return[].slice.call(e.children).indexOf(t)}function C(){return window.stimulusApplication.getControllerForElementAndIdentifier(document.querySelector(".m-overlay"),"m-overlay")}function A(t){var e=new RegExp(t+"=([^;]+)").exec(document.cookie);return null!=e?unescape(e[1]):null}function k(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=new Date;n.setTime(n.getTime()+24*e*60*60*1e3);var o="expires="+n.toUTCString();document.cookie="".concat(t,"=").concat(r,"; ").concat(o," ").concat("; path=/; secure; SameSite=Lax")}function I(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Event",n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],i=null;"function"==typeof Event?i=new Event(e):(i=document.createEvent(r)).initEvent(e,n,o),t.dispatchEvent(i)}function L(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"medium",e=arguments.length>1?arguments[1]:void 0;-1===["small","medium","xmedium","large","xlarge","xxlarge"].indexOf(t)&&console.warn("matchBreakpoint(): undefined breakpoint "+t);var r=o("meta.css-variables").css("--breakpoint--".concat(t)),n=window.matchMedia("(min-width: ".concat(r,")"));return"function"==typeof e&&(void 0!==n.addEventListener?n.addEventListener("change",e):n.addListener(e)),n}function x(t){for(var e=new google.maps.LatLngBounds,r=0;r<t.mapsDataSource.data.length;r++)e.extend(t.mapsDataSource.data[r].geometry);t.googleMap.map.fitBounds(e)}function R(t){for(var e=0;t=t.previousElementSibling;)e++;return e}function N(t,e){var r=t.querySelectorAll("tbody tr"),o="thead th:nth-child("+(e+1)+")",i=t.querySelector(o).classList,a=[],u="",c=!1;i&&(i.contains(n.A.CSS.IS_DATE)?u="date":i.contains(n.A.CSS.IS_NUMBER)&&(u="number"),i.contains(n.A.CSS.IS_REVERSE)?(c=!0,t.querySelector(o).classList.remove(n.A.CSS.IS_REVERSE)):(c=!1,t.querySelector(o).classList.add(n.A.CSS.IS_REVERSE))),a=function(t,e,r){for(var o=!0,i=[],a=0;a<t.length;a++){var u="td:nth-child("+(r+1)+")",c=t[a].querySelector(u),s=c.querySelector("."+n.A.CSS.IS_SORTTARGET),l=s?s.innerText:c.innerText;l=l.replace(/\s/g,""),isNaN(l)?o=!1:l=parseFloat(l),i.push({value:l,row:t[a]})}""==e&&o&&(e="number");"number"==e?(i.sort(D),i=i.reverse()):"date"==e?i.sort(M):i.sort(H);return i}(r,u,e),!0===c&&a.reverse();for(var s=0;s<a.length;s++)t.querySelector("tbody").appendChild(a[s].row)}function D(t,e){return F(t.value,e.value)}function F(t,e){return t-e}function M(t,e){return F(Date.parse(t.value),Date.parse(e.value))}function H(t,e){var r=(t.value+"").toUpperCase(),n=(e.value+"").toUpperCase();return r<n?-1:r>n?1:0}var B=["https://campaign.viega.de","https://campaign.viega.at","https://campaign.viega.nl","https://campaign.viega.pl","https://internal-communication.viega.com","https://press.viega.us","https://press.viega.ca","https://campaign.viega.dk","https://campaign.viega.fr","https://campaign.viega.it","https://campaign.viega.cz","https://campaign.viega.be","https://campaign.viega.co.uk","https://pi.pardot.com"];function V(t){return B.includes(t)}function q(t,e){var r=s.get("mobile");t>l.get("medium")&&t<l.get("large")?r=s.get("tablet"):t>=l.get("large")&&(r=s.get("desktop"));for(var n=i(e.querySelectorAll("div.m-teaserblog")),o=function(){var t=n.slice(a,a+r),e=t.map(function(t){var e=t.querySelector("div.m-teaserblog__text");return e?e.offsetHeight:"0"});t.forEach(function(t){var r=t.querySelector("div.m-teaserblog__text");r&&(r.style.height=Math.max.apply(Math,i(e))+"px")})},a=0;a<n.length;a+=r)o()}},14316:function(t,e,r){"use strict";r(52675),r(89463),r(2259),r(45700),r(2008),r(23792),r(62062),r(89572),r(2892),r(83851),r(81278),r(79432),r(26099),r(47764),r(23500),r(62953);var n=r(74692),o=r.n(n),i=r(36497),a=(r(86879),r(18248)),u=r(13368),c=r(42051),s=r(29808);function l(t){return l="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},l(t)}function f(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function p(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
2e%2?f(Object(r),!0).forEach(function(e){h(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function h(t,e,r){return(e=d(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function y(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,d(n.key),n)}}function d(t){var e=function(t,e){if("object"!=l(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==l(e)?e:e+""}new(function(){return function(t,e,r){return e&&y(t.prototype,e),r&&y(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._scrollY=0,this._isScrolling=!1,this._isScrollDown=!1,this._isScrollUp=!1,this._storage=window.localStorage,this._storageKey="uc_settings",this._relativeScrollDistance=0,this._scrollThreshold=200,this.$html=o()("html"),this.$body=o()(document.body),document.addEventListener("DOMContentLoaded",this.domReady.bind(this)),window.addEventListener("launch",this._handleUCconsentEvent.bind(this))},[{key:"domReady",value:function(){this._initStimulus(),this._initGlobalEvents(),this._initFoundationModules(),(0,i.o)(),o()(window).on("changed.zf.mediaquery",function(){return(0,i.o)()})}},{key:"_handleUCconsentEvent",value:function(t){t.detail&&"consent_status"==t.detail.event&&o()(window).trigger(a.A.EVENTS.CONSENT.CONSENT_CHANGED,{details:t.detail})}},{key:"_initFoundationModules",value:function(){window.addEventListener("load",function(){window.jQuery=o(),o()(document).foundation()},!1)}},{key:"_initStimulus",value:function(){this._stimulusApplication=u.lg.start();var t=r(56621),e=(0,c.U)(t);this._stimulusApplication.load(e.map(function(t){var e=t.identifier.split("--");return p(p({},t),{},{identifier:e[e.length-1]})})),window.hasOwnProperty("stimulusApplication")||(window.stimulusApplication=this._stimulusApplication)}},{key:"_initGlobalEvents",value:function(){o()(window).on("scroll",(0,s.sg)(this.handleScroll.bind(this),10))}},{key:"handleScroll",value:function(t){this._isScrolling&&t.preventDefault();var e=window.pageYOffset>0?window.pageYOffset:0,r=this.$html[0].clientHeight,n=Math.round(e)+Math.round(r)>=Math.round(this.$body.outerHeight()),i=e<=0;if(e!==this._scrollY){Math.abs(e-this._scrollY)>2&&(e>this._scrollY?this._handleScrollDown(e):this._handleScrollUp(e)),o()(window).trigger("viega:app:scroll",{oldY:this._scrollY,newY:e}),this._scrollY=e}i||n?this.$body.addClass(i?a.A.CSS.IS_TOP:a.A.CSS.IS_BOTTOM):this.$body.removeClass(a.A.CSS.IS_TOP+" "+a.A.CSS.IS_BOTTOM)}},{key:"_handleScrollDown",value:function(t){this._relativeScrollDistance=0,this.$body.removeClass(a.A.CSS.IS_SCROLLUP).addClass(a.A.CSS.IS_SCROLLDOWN),this._isScrollDown=!0,this._isScrollUp=!1,o()(window).trigger("viega:app:scrolldown",{oldY:this._scrollY,newY:t})}},{key:"_handleScrollUp",value:function(t){0===this._relativeScrollDistance&&(this._scrollUpStartPosition=this._scrollY),this._relativeScrollDistance=this._scrollUpStartPosition-t,this._relativeScrollDistance>=this._scrollThreshold&&(this.$body.addClass(a.A.CSS.IS_SCROLLUP).removeClass(a.A.CSS.IS_SCROLLDOWN),this._isScrollDown=!1,this._isScrollUp=!0),o()(window).trigger("viega:app:scrollup",{oldY:this._scrollY,newY:t})}}])}())},10167:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return f}});r(52675),r(89463),r(2259),r(45700),r(23792),r(89572),r(2892),r(40875),r(26099),r(60825),r(47764),r(62953);function n(t){return n="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},n(t)}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,l(n.key),n)}}function i(t,e,r){return e=u(e),function(t,e){if(e&&("object"==n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,a()?Reflect.construct(e,r||[],u(t).constructor):e.apply(t,r))}function a(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(a=function(){return!!t})()}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}
2function c(t,e){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},c(t,e)}function s(t,e,r){return(e=l(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function l(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var f=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),i(this,e,arguments)}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&c(t,e)}(e,t),function(t,e,r){return e&&o(t.prototype,e),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"initialize",value:function(){this.__handleGridContext()}},{key:"__handleGridContext",value:function(){null!==this.element.closest("div.o-gridcontainer__column")&&this.element.closest("div."+e.CONTACT_WRAPPER_CLASS).classList.add(e.CONTACT_WRAPPER_CLASS+"--gridContext")}}])}(r(13368).xI);s(f,"targets",[]),s(f,"CONTACT_WRAPPER_CLASS","m-infovcard__contacts__wrapper")},26411:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return h}});r(52675),r(89463),r(2259),r(45700),r(28706),r(23792),r(89572),r(2892),r(40875),r(26099),r(60825),r(47764),r(23500),r(62953);var n=r(13368),o=r(80063).i;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},i(t)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,p(n.key),n)}}function u(t,e,r){return e=s(e),function(t,e){if(e&&("object"==i(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,c()?Reflect.construct(e,r||[],s(t).constructor):e.apply(t,r))}function c(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(c=function(){return!!t})()}
2function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}function l(t,e){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},l(t,e)}function f(t,e,r){return(e=p(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function p(t){var e=function(t,e){if("object"!=i(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==i(e)?e:e+""}var h=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return f(t=u(this,e,[].concat(n)),"elementSelector",void 0),f(t,"showItemsDesktop",void 0),f(t,"showItemsMobile",void 0),t}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}(e,t),function(t,e,r){return e&&a(t.prototype,e),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"initialize",value:function(){var t=this;this.elementSelector=this.element.querySelectorAll(".m-interactiveimages__grid__container"),this.showItemsDesktop=this.data.get("show-desktop"),this.showItemsMobile=this.data.get("show-mobile"),o.MediaQuery.current>"xmedium"?(this.elementSelector.length>this.showItemsDesktop&&this.toggleBtnTarget.classList.toggle("hide"),this.element.querySelectorAll(".m-interactiveimages__grid__container.hide").forEach(function(e,r){r<t.showItemsDesktop&&e.classList.toggle("hide")})):(this.elementSelector.length>this.showItemsMobile&&this.toggleBtnTarget.classList.toggle("hide"),this.element.querySelectorAll(".m-interactiveimages__grid__container.hide").forEach(function(e,r){r<t.showItemsMobile&&e.classList.toggle("hide")}))}},{key:"_toggleGridItems",value:function(){var t=o.MediaQuery.current>"xmedium"?this.showItemsDesktop:this.showItemsMobile;this.elementSelector.forEach(function(e,r){r>=t&&e.classList.toggle("hide")})}},{key:"toggleGrid",value:function(t){this._toggleGridItems();var e=this.data.get("text-more"),r=this.data.get("text-less"),n=t.target.querySelector("span");n.innerText===e?n.innerText=r:n.innerText=e,t.target.querySelectorAll(".a-svgicon").forEach(function(t){t.classList.toggle("hide")})}}])}(n.xI);f(h,"targets",["toggleBtn"])},26073:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return m}});r(52675),r(89463),r(2259),r(45700),r(23418),r(23792),r(62062),r(34782),r(89572),r(62010),r(2892),r(40875),r(26099),r(60825),r(27495),r(38781),r(47764),r(23500),r(62953);var n=r(13368),o=r(74692),i=r.n(o);function a(t){return a="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},a(t)}function u(t){return function(t){if(Array.isArray(t))return s(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||c(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 c(t,e){if(t){if("string"==typeof t)return s(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(t,e):void 0}}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function l(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,v(n.key),n)}}function f(t,e,r){return e=h(e),function(t,e){if(e&&("object"==a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,p()?Reflect.construct(e,r||[],h(t).constructor):e.apply(t,r))}function p(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(p=function(){return!!t})()}
2function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}function y(t,e){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},y(t,e)}function d(t,e,r){return(e=v(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function v(t){var e=function(t,e){if("object"!=a(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==a(e)?e:e+""}var m=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),f(this,e,arguments)}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&y(t,e)}(e,t),function(t,e,r){return e&&l(t.prototype,e),r&&l(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"initialize",value:function(){}},{key:"connect",value:function(){this._initGallery(),this._checkCaptionHeight(),this._setCaptionTextHeight()}},{key:"_initGallery",value:function(){var t=this.data.get("slide-width"),e=this.data.get("finite-loop"),r="true"===e?4.5:4;i()(this.element).parents(".o-smallgrid").length>0&&(r=2),i()(this.galleryTarget).slick({dragging:!1,prevArrow:this.leftArrowTarget,nextArrow:this.rightArrowTarget,variableWidth:"true"===t,infinite:"true"!==e,slidesToShow:r,slidesToScroll:1,responsive:[{breakpoint:1280,settings:{initialSlide:1,arrows:!1,centerMode:!0,slidesToShow:2,slidesToScroll:"true"===t?1:2}},{breakpoint:768,settings:{arrows:!1,centerMode:!0,slidesToShow:1}}]})}},{key:"_checkCaptionHeight",value:function(){var t,e=function(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=c(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}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 i,a=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}(this.captionTargets);try{for(e.s();!(t=e.n()).done;){if(t.value.innerHTML.length>35){this.galleryTarget.classList.add("m-mediagallery__gallery--bigCaption");break}}}catch(t){e.e(t)}finally{e.f()}}},{key:"_setCaptionTextHeight",value:function(){var t=this.captionTextTargets.map(function(t){return t.offsetHeight});Math.max.apply(Math,u(t))>e.SHORT_CAPTION_TEXT_CAPACITY&&this.captionTextTargets.forEach(function(t){t.classList.add(e.TEXT_CONTAINER_BASE_CLASS+"--longCaptionText")})}}])}(n.xI);d(m,"targets",["gallery","leftArrow","rightArrow","caption","captionText"]),d(m,"TEXT_CONTAINER_BASE_CLASS","m-mediagallery__gallery__slide__caption-text-container"),d(m,"SHORT_CAPTION_TEXT_CAPACITY",80)},32627:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return h}});r(52675),r(89463),r(2259),r(45700),r(23792),r(89572),r(2892),r(40875),r(26099),r(60825),r(47764),r(62953);var n=r(13368),o=r(74692),i=r.n(o);function a(t){return a="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},a(t)}function u(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,p(n.key),n)}}function c(t,e,r){return e=l(e),function(t,e){if(e&&("object"==a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}
2(t,s()?Reflect.construct(e,r||[],l(t).constructor):e.apply(t,r))}function s(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(s=function(){return!!t})()}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}function f(t,e){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},f(t,e)}function p(t){var e=function(t,e){if("object"!=a(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==a(e)?e:e+""}var h=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),c(this,e,arguments)}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&f(t,e)}(e,t),function(t,e,r){return e&&u(t.prototype,e),r&&u(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"initialize",value:function(){}},{key:"connect",value:function(){this._initGallery()}},{key:"_initGallery",value:function(){var t=this;i()(this.galleryTarget).slick({touchThreshold:8,variableWidth:!1,dragging:!1,prevArrow:this.leftArrowTarget,nextArrow:this.rightArrowTarget,infinite:!1,fade:!0}),i()(this.galleryTarget).on("beforeChange",function(e,r,n,o){t.counterTarget.innerHTML=o+1})}}])}(n.xI);!function(t,e,r){(e=p(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}(h,"targets",["gallery","counter","leftArrow","rightArrow"])},59687:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return h}});r(52675),r(89463),r(2259),r(45700),r(23792),r(89572),r(2892),r(40875),r(26099),r(60825),r(47764),r(62953);var n=r(13368),o=r(18248),i=r(80063).i;function a(t){return a="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},a(t)}function u(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,p(n.key),n)}}function c(t,e,r){return e=l(e),function(t,e){if(e&&("object"==a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,s()?Reflect.construct(e,r||[],l(t).constructor):e.apply(t,r))}function s(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(s=function(){return!!t})()}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}function f(t,e){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},f(t,e)}function p(t){var e=function(t,e){if("object"!=a(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==a(e)?e:e+""}var h=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),c(this,e,arguments)}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&f(t,e)}(e,t),function(t,e,r){return e&&u(t.prototype,e),r&&u(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"initialize",value:function(){var t=this;window.addEventListener("scroll",function(){return t.handleScroll()})}},{key:"handleScroll",value:function(){var t=window.scrollY,e=this.element.dataset.mStickybuttonScrollValue,r=i.MediaQuery.atLeast("medium")?400:800;t>=e&&window.innerHeight+t<=document.body.scrollHeight-r?this.element.classList.add(o.A.CSS.IS_VISIBLE):this.element.classList.remove(o.A.CSS.IS_VISIBLE)}}])}(n.xI);!function(t,e,r){(e=p(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}(h,"targets",[])},14175:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return l}});r(52675),r(89463),r(2259),r(45700),r(23792),r(89572),r(2892),r(40875),r(26099),r(60825),r(47764),r(62953);function n(t){return n="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},n(t)}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,s(n.key),n)}}function i(t,e,r){return e=u(e),function(t,e){if(e&&("object"==n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,a()?Reflect.construct(e,r||[],u(t).constructor):e.apply(t,r))}function a(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(a=function(){return!!t})()}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}
2function c(t,e){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},c(t,e)}function s(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var l=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),i(this,e,arguments)}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&c(t,e)}(e,t),function(t,e,r){return e&&o(t.prototype,e),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"initialize",value:function(){}}])}(r(13368).xI);!function(t,e,r){(e=s(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}(l,"targets",[])},99959:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return d}});r(52675),r(89463),r(2259),r(45700),r(28706),r(23792),r(89572),r(2892),r(40875),r(26099),r(60825),r(47764),r(23500),r(62953);var n=r(13368),o=r(74692),i=r.n(o),a=r(18248);function u(t){return u="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},u(t)}function c(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,y(n.key),n)}}function s(t,e,r){return e=f(e),function(t,e){if(e&&("object"==u(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,l()?Reflect.construct(e,r||[],f(t).constructor):e.apply(t,r))}function l(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(l=function(){return!!t})()}function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}function p(t,e){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},p(t,e)}function h(t,e,r){return(e=y(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function y(t){var e=function(t,e){if("object"!=u(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==u(e)?e:e+""}var d=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return h(t=s(this,e,[].concat(n)),"elementSelector",void 0),t}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&p(t,e)}(e,t),function(t,e,r){return e&&c(t.prototype,e),r&&c(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"initialize",value:function(){var t=this;this.elementSelector=this.element.querySelectorAll(".o-tab__grid__container"),i()(this.tabContentTarget).slick({dragging:!1,fade:!0,arrows:!1,slidesToShow:1,slidesToScroll:1,infinite:!1,adaptiveHeight:!0,cssEase:"linear"}),i()(this.tabContentTarget).on("beforeChange",function(e,r,n,o){t._toggleTabItems("".concat(o))}),window.matchMedia("(max-width: 767px)").matches&&i()(window).on("viega:app:scroll",this._handleScrollUpVertical.bind(this))}},{key:"_handleScrollUpVertical",value:function(t,r){var n=this.element.querySelector(".o-tab__grid"),o=document.body.getBoundingClientRect(),i=this.element.getBoundingClientRect(),u=this._getHeaderHeight(),c=document.querySelector(".o-header"),s=i.top-o.top,l=s+this.element.offsetHeight;r.newY>=s&&r.newY<l?(n.classList.add(a.A.CSS.IS_STICKY),c&&c.classList.contains(a.A.CSS.IS_ACTIVE)&&!document.body.classList.contains("is-scroll-up")?n.style.setProperty(e.CSS_STICKY_TOP_OFFSET,"".concat(this._getTabGridTopOffset(u,this._isInsideStickyNavigation()),"px")):this._isInsideStickyNavigation()?n.style.setProperty(e.CSS_STICKY_TOP_OFFSET,"".concat(this._getTabGridTopOffset(0,!0),"px")):n.style.setProperty(e.CSS_STICKY_TOP_OFFSET,"0px")):(n.classList.remove(a.A.CSS.IS_STICKY),n.style.setProperty(e.CSS_STICKY_TOP_OFFSET,"0px"))}},{key:"_isInsideStickyNavigation",value:function(){var t=this.element.querySelector(".o-tab__grid");return!!t&&null!==t.closest(".stickyNavigation")}},{key:"_getHeaderHeight",value:function(){var t=document.querySelector(".o-header__container");return t?t.offsetHeight:0}},{key:"_getTabGridTopOffset",value:function(t,e){var r;if(!e)return t;var n=null===(r=this.element.querySelector(".o-tab__grid"))||void 0===r?void 0:r.closest(".stickyNavigation"),o=n?n.querySelector("ul.m-contentnav__items"):null;return t+(o?o.offsetHeight:0)}},{key:"_toggleTabItems",value:function(t){this.elementSelector.forEach(function(e){e.classList.remove("active"),e.dataset.tabId===t&&e.classList.add("active")})}},{key:"toggleTab",value:function(t){var e=t.currentTarget||t.target.closest(".o-tab__grid__container");e&&(i()(this.tabContentTarget).slick("slickGoTo",e.dataset.tabId),this._toggleTabItems(e.dataset.tabId))}}])}(n.xI);h(d,"targets",["tabs","tabContent"]),h(d,"CSS_STICKY_TOP_OFFSET","--sticky-top-offset")},45627:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return v}});r(52675),r(89463),r(2259),r(45700),r(28706),r(23792),r(89572),r(2892),r(40875),r(26099),r(60825),r(47764),r(62953);var n=r(13368),o=r(74692),i=r.n(o),a=r(78253),u=r(80063).i;function c(t){return c="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},c(t)}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,d(n.key),n)}}function l(t,e,r){return e=p(e),function(t,e){if(e&&("object"==c(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,f()?Reflect.construct(e,r||[],p(t).constructor):e.apply(t,r))}function f(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(f=function(){return!!t})()}
2function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},p(t)}function h(t,e){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},h(t,e)}function y(t,e,r){return(e=d(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function d(t){var e=function(t,e){if("object"!=c(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==c(e)?e:e+""}var v=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return y(t=l(this,e,[].concat(n)),"accordion",void 0),t}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&h(t,e)}(e,t),function(t,e,r){return e&&s(t.prototype,e),r&&s(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"connect",value:function(){this._initAccordion(),this._initOnFocusEventlistener()}},{key:"_initAccordion",value:function(){var t=this;this.accordion=new u.Accordion(i()(this.element),{multiExpand:!0,allowAllClosed:!0}),this.accordion.toggle=function(e){if(e.closest("[data-accordion]").is("[disabled]"))console.info("Cannot toggle an accordion that is disabled.");else if(!e.parent().hasClass("is-inactive")){if(e.parent().hasClass("is-active")?t.accordion.up(e):t.accordion.down(e),t.accordion.options.deepLink){var r=e.prev("a").attr("href");t.accordion.options.updateHistory?history.pushState({},"",r):history.replaceState({},"",r)}t._updateHeadlineState(a.A,!0)}}}},{key:"_closeAccordionItem",value:function(t){t.preventDefault(),this.accordion.up(i()(t.currentTarget.closest(".m-accordion__content")))}},{key:"_updateHeadlineState",value:function(t,e){this.hasHeadlineTarget&&(e?this.headlineTarget.setAttribute("aria-hidden",!0):this.headlineTarget.removeAttribute("aria-hidden"))}},{key:"_initOnFocusEventlistener",value:function(){var t=this;this.buttonTarget.addEventListener("focus",function(e){t._updateHeadlineState(e,!1)})}}])}(n.xI);y(v,"targets",["headline","button"])},81511:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return h}});r(52675),r(89463),r(2259),r(45700),r(23792),r(89572),r(2892),r(40875),r(26099),r(60825),r(47764),r(62953);var n=r(13368),o=r(74692),i=r.n(o);function a(t){return a="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},a(t)}function u(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,p(n.key),n)}}function c(t,e,r){return e=l(e),function(t,e){if(e&&("object"==a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,s()?Reflect.construct(e,r||[],l(t).constructor):e.apply(t,r))}function s(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(s=function(){return!!t})()}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}function f(t,e){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},f(t,e)}function p(t){var e=function(t,e){if("object"!=a(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
2(t,"string");return"symbol"==a(e)?e:e+""}var h=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),c(this,e,arguments)}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&f(t,e)}(e,t),function(t,e,r){return e&&u(t.prototype,e),r&&u(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"initialize",value:function(){}},{key:"toggleView",value:function(t){i()(this.breadcrumbsTarget).hasClass("is-active")?i()(this.breadcrumbsTarget).removeClass("is-active"):i()(this.breadcrumbsTarget).addClass("is-active")}}])}(n.xI);!function(t,e,r){(e=p(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}(h,"targets",["breadcrumbs"])},92393:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return v}});r(52675),r(89463),r(2259),r(45700),r(28706),r(23792),r(89572),r(2892),r(40875),r(79432),r(26099),r(60825),r(47764),r(62953);var n=r(13368),o=r(30607),i=r(74692),a=r.n(i),u=(r(9599),r(22849));function c(t){return c="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},c(t)}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,d(n.key),n)}}function l(t,e,r){return e=p(e),function(t,e){if(e&&("object"==c(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,f()?Reflect.construct(e,r||[],p(t).constructor):e.apply(t,r))}function f(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(f=function(){return!!t})()}function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},p(t)}function h(t,e){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},h(t,e)}function y(t,e,r){return(e=d(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function d(t){var e=function(t,e){if("object"!=c(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==c(e)?e:e+""}var v=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return y(t=l(this,e,[].concat(n)),"_sliderConfig",{autoplay:!0,autoplaySpeed:5e3,dotsClass:"m-carousel__dots",arrowsEnabled:!0,dotsEnabled:!1}),t}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&h(t,e)}(e,t),function(t,e,r){return e&&s(t.prototype,e),r&&s(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"initialize",value:function(){this.data.get("dots")&&(this._sliderConfig.dotsEnabled=JSON.parse(this.data.get("dots"))),this.data.get("autoplay")&&(this._sliderConfig.autoplay=JSON.parse(this.data.get("autoplay")))}},{key:"connect",value:function(){this._initCarousel(),this.hasImageSliderTarget&&(0,u.tB)(this.imageSliderTarget,"div.m-carousel__slide","a.m-carousel__link")}},{key:"_initCarousel",value:function(){a()(this.imageSliderTarget).slick({infinite:!0,autoplay:this._sliderConfig.auto
2play,autoplaySpeed:this._sliderConfig.autoplaySpeed,touchThreshold:8,dragging:!0,nextArrow:this._sliderConfig.arrowsEnabled?this.nextButtonTarget:null,prevArrow:this._sliderConfig.arrowsEnabled?this.prevButtonTarget:null,dots:this._sliderConfig.dotsEnabled,rows:0,edgeFriction:0,appendDots:!!this._sliderConfig.dotsEnabled&&this.element,zIndex:100,dotsClass:this._sliderConfig.autoplay?"".concat(this._sliderConfig.dotsClass," has-animation"):this._sliderConfig.dotsClass}),this._dotsEnabled&&(0,o.o)(this.element.querySelector(".slick-list"),this.element.querySelector(".".concat(this._sliderConfig.dotsClass)))}}])}(n.xI);y(v,"targets",["imageSlider","nextButton","prevButton"])},54129:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return b}});r(52675),r(89463),r(2259),r(45700),r(28706),r(23792),r(62062),r(89572),r(2892),r(40875),r(26099),r(3362),r(60825),r(47764),r(23500),r(62953);var n=r(13368),o=r(74692),i=r.n(o),a=r(22776),u=r(18248),c=r(60710),s=r(80063).i;function l(t){return l="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},l(t)}function f(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,m(n.key),n)}}function p(t,e,r){return e=y(e),function(t,e){if(e&&("object"==l(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,h()?Reflect.construct(e,r||[],y(t).constructor):e.apply(t,r))}function h(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(h=function(){return!!t})()}function y(t){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},y(t)}function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}function v(t,e,r){return(e=m(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function m(t){var e=function(t,e){if("object"!=l(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==l(e)?e:e+""}var b=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return v(t=p(this,e,[].concat(n)),"isDataLayerEnabled",!1),v(t,"isElementClicked",void 0),v(t,"clickedElementLink",void 0),t}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&d(t,e)}(e,t),function(t,e,r){return e&&f(t.prototype,e),r&&f(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"scrollOffset",get:function(){if(s.MediaQuery.atLeast("xmedium")){return document.body.classList.contains(u.A.CSS.IS_SCROLLUP)?140+u.A.CSS.HEADER_HEIGHT:140}return 80}},{key:"clickOffset",get:function(){return s.MediaQuery.atLeast("xmedium")?90:80}},{key:"initialize",value:function(){this._previousHorizontalScroll=0,this._initialFirstItemPosition=s.Box.GetDimensions(this.element.querySelector(".m-contentnav__item:first-child")),this._contentNavControlleritems=this.element.querySelector(".m-contentnav__items"),this._isHorizontalAnimating=!1,i()(window).on("viega:app:scroll",this._onVerticalScroll.bind(this)),window.addEventListener("resize",this._handleResize.bind(this))}},{key:"connect",value:function(){this.header=document.querySelector(".o-header"),this._checkIfArrowsNeeded(),this._mouseDragHandling(),this.isDataLayerEnabled=document.body.hasAttribute("data-cmp-data-layer-enabled")}},{key:"_handleResize",value:function(){this._checkIfArrowsNeeded()}},{key:"_mouseDragHandling",value:function(){var t,e,r=this.itemListTarget,n=!1;r.addEventListener("mousedown",function(o){n=!0,r.classList.add("active"),t=o.pageX-r.offsetLeft,e=r.scrollLeft}),r.addEventListener("mouseleave",function(){n=!1,r.classList.remove("active")}),r.addEventListener("mouseup",function(){n=!1,r.classList.remove("active")}
2),r.addEventListener("mousemove",function(o){if(n){o.preventDefault();var i=1*(o.pageX-r.offsetLeft-t);r.scrollLeft=e-i}})}},{key:"_checkIfArrowsNeeded",value:function(){var t=!1;return this._contentNavControlleritems.scrollWidth-this._contentNavControlleritems.clientWidth!==0||this.arrowLeftTarget.classList.contains(u.A.CSS.IS_HIDDEN)?this._contentNavControlleritems.scrollWidth-this._contentNavControlleritems.clientWidth!==0&&(this.arrowLeftTarget.classList.remove(u.A.CSS.IS_HIDDEN),this.arrowRightTarget.classList.remove(u.A.CSS.IS_HIDDEN),t=!0):(this.arrowLeftTarget.classList.add(u.A.CSS.IS_HIDDEN),this.arrowRightTarget.classList.add(u.A.CSS.IS_HIDDEN)),this.onHorizontalScroll(),t}},{key:"onHorizontalScroll",value:function(t){var e=this._contentNavControlleritems.scrollWidth-this._contentNavControlleritems.clientWidth,r=i()(this._contentNavControlleritems).scrollLeft();this.arrowLeftTarget.classList.contains(u.A.CSS.IS_ACTIVE)||this.arrowLeftTarget.classList.add(u.A.CSS.IS_ACTIVE),this.arrowRightTarget.classList.contains(u.A.CSS.IS_ACTIVE)||this.arrowRightTarget.classList.add(u.A.CSS.IS_ACTIVE),r===e?this.arrowRightTarget.classList.remove(u.A.CSS.IS_ACTIVE):0===r&&this.arrowLeftTarget.classList.remove(u.A.CSS.IS_ACTIVE)}},{key:"_onVerticalScroll",value:function(t,e){var r=document.body.getBoundingClientRect(),n=this.element.getBoundingClientRect().top-r.top,o=this.element.querySelector(".m-contentnav__link.".concat(u.A.CSS.IS_ACTIVE));this.header&&this.header.classList.contains(u.A.CSS.IS_SCROLLUP)&&!document.body.classList.contains(u.A.CSS.HEADER_HIDDEN)&&(s.MediaQuery.atLeast("xmedium")?n-=u.A.CSS.HEADER_HEIGHT:n-=u.A.CSS.HEADER_HEIGHT_MOBILE),e.newY>n?(this.navTarget.classList.add(u.A.CSS.IS_STICKY),document.body.classList.add(u.A.CSS.CONTENTNAV_STICKY)):(this.navTarget.classList.remove(u.A.CSS.IS_STICKY),document.body.classList.remove(u.A.CSS.CONTENTNAV_STICKY)),this.handleActiveState(),this.handleAcdlTracking(o)}},{key:"handleActiveState",value:function(){var t=window.innerHeight/2,e=[],r=[],n=this.linkTargets.map(function(t){var e=t.getAttribute("href");return r.push(e),document.querySelector(e)});for(var o in n)if(null!=n[o]){var i=n[o].getBoundingClientRect();(i.y<=t||void 0===i.y&&i.top<=t)&&e.push(n[o])}if(e.length>0){var a=e[e.length-1];this.setActive(this.linkTargets[r.indexOf("#".concat(a.getAttribute("id")))])}}},{key:"itemClick",value:function(t){var e=this;t.preventDefault();var r=document.documentElement.scrollTop||document.body.scrollTop,n=t.currentTarget.getAttribute("href"),o=document.querySelector(n).offsetTop;this.isElementClicked=!0,this.clickedElementLink=n;var i=this.clickOffset;r>o&&!document.body.classList.contains(u.A.CSS.HEADER_HIDDEN)&&(s.MediaQuery.atLeast("xmedium")?i+=u.A.CSS.HEADER_HEIGHT:i+=u.A.CSS.HEADER_HEIGHT_MOBILE),document.getElementById(n.substr(1))&&(0,c.VG)(n,i).then(function(){return e.horizontalScroll()})}},{key:"setActive",value:function(t){this.linkTargets.forEach(function(t){return t.classList.remove(u.A.CSS.IS_ACTIVE)}),t.classList.add(u.A.CSS.IS_ACTIVE),this.horizontalScroll()}},{key:"horizontalScroll",value:function(t){var e=this.element.querySelector(".m-contentnav__link.".concat(u.A.CSS.IS_ACTIVE));if(e){var r=s.Box.GetDimensions(e),n=this._previousHorizontalScroll;(r.offset.left+e.offsetWidth>window.innerWidth||r.offset.left<this._initialFirstItemPosition.offset.left)&&(n=e.offsetLeft);var o=this._contentNavControlleritems.scrollWidth-this._contentNavControlleritems.clientWidth;n>o&&(n=o),n!==this._previousHorizontalScroll&&(this._previousHorizontalScroll=n,this.animateHorizontalScrollTo(n))}}},{key:"horizontalClick",value:function(t){var e=t.currentTarget.dataset.arrowDirection,r=this.itemListTarget.scrollLeft;if("right"===e){if(r>=this.itemListTarget.scrollWidth-this.itemListTarget.clientWidth)return;this.animateHorizontalScrollTo(this.itemListTarget.scrollLeft+200)}else if("left"===e){if(0===r)return;this.animateHorizontalScrollTo(this.itemListTarget.scrollLeft-200)}}},{key:"animateHorizontalScrollTo",value:function(t){var e=this;if(!this._isHorizontalAnimating)return this._isHorizontalAnimating=!0,new Promise(function(r,n){(0,a.A)({targets:[e.itemListTarget],scrollLeft:t,duration:800,easing:"easeOutQuint",complete:function(t){r(),e._isHorizontalAnimating=!1}})})}},{key:"handleAcdlTracking",value:function(t){var e=this.element.querySelector(".m-contentnav__link.".concat(u.A.CSS.IS_ACTIVE));if(null!=e&&(!e.isSameNode(t)||null==t)){var r=null;"acdlid"in e.dataset&&(r=e.dataset.acdlid),this.isElementClicked?e.getAttribute("href")===this.clickedElementLink&&(this.sendACDLEvent("cmp:click",r),this.isElementClicked=!1,this.clickedElementLink=null):this.sendACDLEvent("cmp:contentnavScrollToArea",r)}}},{key:"sendACDLEvent",value:function(t,e){this.isDataLayerEnabled&&(window.adobeDataLayer=window.adobeDataLayer||[],e&&(e="component."+e,window.adobeDataLayer.push({event:t,eventInfo:{path:e}})))}}])}(n.xI);v(b,"targets",["nav","link","itemList","arrowLeft","arrowRight"])},11683:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return h}});r(52675),r(89463),r(2259),r(45700),r(23792),r(89572),r(2892),r(40875),r(26099),r(60825),r(47764),r(62953);var n=r(13368),o=r(18248),i=r(29808);function a(t){return a="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},a(t)}function u(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,p(n.key),n)}}function c(t,e,r){return e=l(e),function(t,e){if(e&&("object"==a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}
2(t,s()?Reflect.construct(e,r||[],l(t).constructor):e.apply(t,r))}function s(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(s=function(){return!!t})()}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}function f(t,e){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},f(t,e)}function p(t){var e=function(t,e){if("object"!=a(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==a(e)?e:e+""}var h=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),c(this,e,arguments)}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&f(t,e)}(e,t),function(t,e,r){return e&&u(t.prototype,e),r&&u(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"initialize",value:function(){(0,i.Ri)(o.A.COOKIES.COOKIES_ACCEPTED)||this.data.element.classList.add(o.A.CSS.IS_ACTIVE)}},{key:"closeCookieLayer",value:function(){(0,i.TV)(o.A.COOKIES.COOKIES_ACCEPTED,30,"true"),this.data.element.classList.remove(o.A.CSS.IS_ACTIVE)}}])}(n.xI);!function(t,e,r){(e=p(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}(h,"targets",[])},15035:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return y}});r(52675),r(89463),r(2259),r(45700),r(28706),r(23792),r(89572),r(2892),r(40875),r(79432),r(26099),r(60825),r(47764),r(42762),r(62953);var n=r(13368),o=r(18248),i=r(29808);function a(t){return a="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},a(t)}function u(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,h(n.key),n)}}function c(t,e,r){return e=l(e),function(t,e){if(e&&("object"==a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,s()?Reflect.construct(e,r||[],l(t).constructor):e.apply(t,r))}function s(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(s=function(){return!!t})()}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}function f(t,e){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},f(t,e)}function p(t,e,r){return(e=h(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function h(t){var e=function(t,e){if("object"!=a(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==a(e)?e:e+""}var y=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return p(t=c(this,e,[].concat(n)),"_currentLanguage",""),p(t,"_languageOptions",{}),t}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&f(t,e)}(e,t),function(t,e,r){return e&&u(t.prototype,e),r&&u(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}
2(e,[{key:"connect",value:function(){this._languageOptions=JSON.parse(this.data.get("language-options")),this._currentLanguage=navigator.language.substring(0,2);var t=this._getCurrentLanguage(),e=(0,i.Ri)(o.A.COOKIES.PREFERRED_LANGUAGE);t!==this._currentLanguage&&(e&&e===t||this.element.classList.add(o.A.CSS.IS_ACTIVE))}},{key:"changeLanguage",value:function(t){(0,i.TV)(o.A.COOKIES.PREFERRED_LANGUAGE,30,t.currentTarget.dataset.lang)}},{key:"openCountryFlyout",value:function(){var t=document.querySelector(".m-mainnav__menu-countryselection");t&&t.click()}},{key:"closeCountryhintLayer",value:function(){var t=this,e=document.querySelector(".m-mainnav__language-link.is-active"),r=this._currentLanguage;e&&(r=e.text.trim().toLowerCase()),(0,i.TV)(o.A.COOKIES.PREFERRED_LANGUAGE,30,r),this.element.classList.remove(o.A.CSS.IS_ACTIVE),setTimeout(function(){return t.element.classList.add(o.A.CSS.IS_HIDDEN)},300)}},{key:"_getCurrentLanguage",value:function(){return location.pathname.split("/")[1]}}])}(n.xI);p(y,"targets",[])},66319:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return l}});r(52675),r(89463),r(2259),r(45700),r(23792),r(89572),r(2892),r(40875),r(26099),r(60825),r(47764),r(62953);function n(t){return n="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},n(t)}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,s(n.key),n)}}function i(t,e,r){return e=u(e),function(t,e){if(e&&("object"==n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,a()?Reflect.construct(e,r||[],u(t).constructor):e.apply(t,r))}function a(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(a=function(){return!!t})()}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}function c(t,e){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},c(t,e)}function s(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var l=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),i(this,e,arguments)}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&c(t,e)}(e,t),function(t,e,r){return e&&o(t.prototype,e),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e)}(r(13368).xI);!function(t,e,r){(e=s(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}(l,"targets",[])},58183:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return v}});r(52675),r(89463),r(2259),r(45700),r(28706),r(23792),r(89572),r(2892),r(40875),r(26099),r(78459),r(58940),r(60825),r(47764),r(62953);var n=r(13368),o=r(54869),i=r(18248),a=r(29808),u=r(74692);function c(t){return c="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},c(t)}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,d(n.key),n)}}function l(t,e,r){return e=p(e),function(t,e){if(e&&("object"==c(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,f()?Reflect.construct(e,r||[],p(t).constructor):e.apply(t,r))}function f(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(f=function(){return!!t})()}
2function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},p(t)}function h(t,e){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},h(t,e)}function y(t,e,r){return(e=d(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function d(t){var e=function(t,e){if("object"!=c(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==c(e)?e:e+""}var v=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return y(t=l(this,e,[].concat(n)),"_position",{lat:0,lng:0}),y(t,"_map",{}),y(t,"_marker",null),t}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&h(t,e)}(e,t),function(t,e,r){return e&&s(t.prototype,e),r&&s(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"initialize",value:function(){var t=this;this._consentType="googlemaps";var e=this.element.getAttribute("data-has-consentmanager");this._hasConsentManager=!e||"true"===e;var r=this.data.get("api-key");this._position={lat:parseFloat(this.data.get("lat")),lng:parseFloat(this.data.get("lng"))},this._loader=new o.aH({apiKey:r,libraries:["marker"]}),!0===this._hasConsentManager?(this.mapTarget.classList.add(i.A.CSS.IS_HIDDEN),u(window).on(i.A.EVENTS.CONSENT.CONSENT_CHANGED,this._handleConsentChanged.bind(this))):(u(window).off(i.A.EVENTS.CONSENT.CONSENT_CHANGED),this._loader.load().then(function(){t.initMap()}).catch(function(t){console.error(t)}))}},{key:"_handleConsentChanged",value:function(t,e){this._consentGiven=(0,a.DG)(this._consentType,e.details),this._consentGiven?this.initMap():this._initPlaceholderImage(this._consentType)}},{key:"_initPlaceholderImage",value:function(){this.mapTarget.classList.add(i.A.CSS.IS_HIDDEN),this.hasPlaceholderTarget&&this.placeholderTarget.classList.remove(i.A.CSS.IS_HIDDEN)}},{key:"initMap",value:function(){var t=this;this.mapTarget.classList.remove(i.A.CSS.IS_HIDDEN),this.hasPlaceholderTarget&&this.placeholderTarget.classList.add(i.A.CSS.IS_HIDDEN),this._loader.load().then(function(){var e=parseInt(t.data.get("zoom"))||13,r=t.data.get("map-id")||"DEMO_MAP_ID";t._map=new google.maps.Map(t.mapTarget,{mapId:r,center:t._position,zoom:e}),t.initMarker()}).catch(function(t){console.error(t)})}},{key:"initMarker",value:function(){this._marker=new google.maps.marker.AdvancedMarkerElement({position:this._position,map:this._map});var t=parseFloat(this.data.get("marker-icon-size")||1),e=new google.maps.marker.PinElement({background:"#ffed00",glyphColor:"#111111",borderColor:"#111111",scale:t});this._marker=new google.maps.marker.AdvancedMarkerElement({map:this._map,position:this._position,content:e.element})}}])}(n.xI);y(v,"targets",["map","placeholder"])},31047:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return h}});r(52675),r(89463),r(2259),r(45700),r(28706),r(50113),r(23792),r(94490),r(89572),r(62010),r(2892),r(40875),r(26099),r(58940),r(60825),r(47764),r(23500),r(62953);var n=r(56690),o=r(18248);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},i(t)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,p(n.key),n)}}function u(t,e,r){return e=s(e),function(t,e){if(e&&("object"==i(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,c()?Reflect.construct(e,r||[],s(t).constructor):e.apply(t,r))}function c(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(c=function(){return!!t})()}
2function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}function l(t,e){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},l(t,e)}function f(t,e,r){return(e=p(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function p(t){var e=function(t,e){if("object"!=i(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==i(e)?e:e+""}var h=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return f(t=u(this,e,[].concat(n)),"activeFolderId",0),f(t,"folderStructure",[]),t}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}(e,t),function(t,e,r){return e&&a(t.prototype,e),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"submitFilter",value:function(t){if(t){var e=t.currentTarget.options[t.currentTarget.selectedIndex];this.activeFolderId=e.disabled?0:parseInt(e.value)}this._emit(this.element.dataset.name,this.activeFolderId)}},{key:"updateFilters",value:function(t){if(this.folderStructure=t,this.reset(),0!==this.activeFolderId){var e=this.getHierarchyFor(this.activeFolderId);this.renderFilters(e[0])}else this.renderFilters(this.folderStructure)}},{key:"reset",value:function(){this.containerTarget.innerHTML=""}},{key:"renderFilters",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=this.foldersTemplateTarget.innerHTML.interpolate({folders:t,level:e});for(var n in this.containerTarget.insertAdjacentHTML("beforeend",r),this.setActive(t,e),t){var o=t[n];if(!0===o.isActive&&o.hasOwnProperty("children")&&o.children.length>0){this.renderFilters(o.children,e+1);break}}}},{key:"setActive",value:function(t){var e=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;t.forEach(function(t,n){if(!0===t.isActive){var i=e.containerTarget.children[r].querySelector("select");if(i){i.classList.remove(o.A.CSS.HAS_PLACEHOLDER);var a=i.querySelector("option[disabled]");a&&a.remove(),i.selectedIndex=n}}})}},{key:"getHierarchyFor",value:function(t){var e=[],r="isActive";(function t(n,o){var i=o.find(function(t,e,i){return t.folderId===n&&(o[e][r]=!0,!0)});if(i)return e.push(o),o;for(var a in o)if(o[a].hasOwnProperty("children")&&o[a].children.length>0&&(i=t(n,o[a].children)),i)return o[a][r]=!0,e.push(o),i})(t,this.folderStructure);return e.reverse()}}])}(n.A);f(h,"targets",["input","container","foldersTemplate"])},55821:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return m}});r(52675),r(89463),r(2259),r(45700),r(28706),r(23418),r(23792),r(34782),r(89572),r(62010),r(2892),r(25843),r(40875),r(26099),r(60825),r(27495),r(38781),r(47764),r(23500),r(62953);var n=r(13368),o=r(18248),i=r(29808),a=r(80063).i;function u(t){return u="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},u(t)}function c(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return s(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}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 i,a=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function l(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,v(n.key),n)}}function f(t,e,r){return e=h(e),function(t,e){if(e&&("object"==u(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,p()?Reflect.construct(e,r||[],h(t).constructor):e.apply(t,r))}function p(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(p=function(){return!!t})()}
2function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}function y(t,e){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},y(t,e)}function d(t,e,r){return(e=v(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function v(t){var e=function(t,e){if("object"!=u(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==u(e)?e:e+""}var m=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return d(t=f(this,e,[].concat(n)),"_currentHotspotPosition",1),t}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&y(t,e)}(e,t),function(t,e,r){return e&&l(t.prototype,e),r&&l(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"connect",value:function(){var t=this;window.addEventListener("resize",this.onResize.bind(this)),a.MediaQuery.upTo("small")?this._setSwipeTextContainerState("activate"):this._setSwipeTextContainerState("deactivate"),this._setCurrentHotspotMobileContent(),this.hasAmountOfItemsTarget&&(this.amountOfItemsTarget.textContent=this.hotspotTargets.length),this.hasImagecontainerTarget&&this.imagecontainerTarget.addEventListener("scrollend",function(e){t._setSwipeTextContainerState("deactivate")})}},{key:"_setSwipeTextContainerState",value:function(t){var e=this.element.querySelector(".m-hotspotimage__image-wide");this.hasSwipetextTarget&&e&&("activate"===t?this.swipetextTarget.classList.add(o.A.CSS.IS_ACTIVE):"deactivate"===t&&this.swipetextTarget.classList.remove(o.A.CSS.IS_ACTIVE))}},{key:"_closeAllHotspots",value:function(){var t,e=c(this.hotspotTargets);try{for(e.s();!(t=e.n()).done;){var r=t.value;r.classList.remove(o.A.CSS.IS_ACTIVE);var n=r.querySelector("button");n&&n.classList.remove(o.A.CSS.IS_ACTIVE)}}catch(t){e.e(t)}finally{e.f()}}},{key:"toggleHotspot",value:function(t){var e=(t.currentTarget||t.target).parentNode;a.MediaQuery.upTo("small")?this._handleMobileViewButtonClick(e):this._handleNonMobileViewButtonClick(t,e)}},{key:"_handleMobileViewButtonClick",value:function(t){t.querySelector("button").classList.contains(o.A.CSS.IS_ACTIVE)||(this._closeAllHotspots(),this._setMobileViewHotspotContent(t))}},{key:"_handleNonMobileViewButtonClick",value:function(t,e){e.nextSibling&&this.hotspotListTarget.appendChild(e),this.removeOnClickOutsideListener&&this.removeOnClickOutsideListener(),e.classList.contains(o.A.CSS.IS_ACTIVE)?(e.classList.remove(o.A.CSS.IS_ACTIVE),e.querySelector("button").classList.remove(o.A.CSS.IS_ACTIVE)):(this._closeAllHotspots(),this._fixHotspotContentPosition(e),e.classList.add(o.A.CSS.IS_ACTIVE),this.removeOnClickOutsideListener=(0,i.X2)(this.element,this.toggleHotspot.bind(this,t)))}},{key:"_setCurrentHotspotMobileContent",value:function(){var t=this.element.querySelector('li[data-position="'+Number.parseInt(this._currentHotspotPosition)+'"]');a.MediaQuery.upTo("small")?t&&this._setMobileViewHotspotContent(t):t.querySelector("button").classList.remove(o.A.CSS.IS_ACTIVE)}},{key:"_setMobileViewHotspotContent",value:function(t){if(this.hasCurrentPositionTarget&&(this._currentHotspotPosition=Number.parseInt(t.dataset.position),this.currentPositionTarget.textContent=this._currentHotspotPosition),this.hasMobileheadlineTarget){var e=t.querySelector("h4.m-hotspotimage__hotspot-headline");e&&(this.mobileheadlineTarget.textContent=e.textContent)}if(this.hasMobiletextTarget){var r="",n=t.querySelector("div.m-hotspotimage__hotspot-text");n&&(r=n.textContent),this.mobiletextTarget.textContent=r}if(this.hasMobilelinkTarget){var i="",a=t.querySelector("a.m-hotspotimage__hotspot-link");a&&(i=a.getAttribute("href")),this.mobilelinkTarget.setAttribute("href",i)}this.hasMobilehotspotcontentTarget&&this.mobilehotspotcontentTarget.classList.add(o.A.CSS.IS_ACTIVE),t.querySelector("button").classList.add(o.A.CSS.IS_ACTIVE)}},{key:"_fixHotspotContentPosition",value:function(t){if(a.MediaQuery.atLeast("xmedium")){var e=t.querySelector(".m-hotspotimage__hotspot-content");e.style.transform="scale(1)";var r=e.getBoundingClientRect(),n=r.height+r.y,o=this.element.getBoundingClientRect();if(o.bottom<n){var i=r.height-22;r.y-i<0&&(i=o.y),t.classList.add("m-hotspotimage__hotspot--up"),e.style.top="-".concat(i,"px")}}}},{key:"_resetHotspotContentPosition",value:function(t){t.classList.remove("m-hotspotimage__hotspot--up"),t.querySelector(".m-hotspotimage__hotspot-content").style.top=""}},{key:"onResize",value:function(){var t=this;
2this.hotspotTargets.forEach(function(e){return t._resetHotspotContentPosition(e)}),this._setCurrentHotspotMobileContent()}},{key:"prevHotspot",value:function(t){1===this._currentHotspotPosition?this._currentHotspotPosition=this.hotspotTargets.length:this._currentHotspotPosition--;var e=this.element.querySelector('li[data-position="'+this._currentHotspotPosition+'"]');e&&e.querySelector("button").click()}},{key:"nextHotspot",value:function(t){this._currentHotspotPosition===this.hotspotTargets.length?this._currentHotspotPosition=1:this._currentHotspotPosition++;var e=this.element.querySelector('li[data-position="'+this._currentHotspotPosition+'"]');e&&e.querySelector("button").click()}}])}(n.xI);d(m,"targets",["hotspotList","hotspot","mobilehotspotcontent","mobileheadline","mobiletext","mobilelink","swipetext","amountOfItems","currentPosition","amountOfItems","prevButton","nextButton","imagecontainer"])},81141:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return m}});r(52675),r(89463),r(2259),r(45700),r(23792),r(89572),r(2892),r(40875),r(26099),r(60825),r(47764),r(62953);var n=r(13368),o=r(44126),i=r(18248),a=r(29808),u=r(74692),c=r.n(u);function s(t){return s="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},s(t)}function l(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,v(n.key),n)}}function f(t,e,r){return e=h(e),function(t,e){if(e&&("object"==s(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,p()?Reflect.construct(e,r||[],h(t).constructor):e.apply(t,r))}function p(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(p=function(){return!!t})()}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}function y(t,e){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},y(t,e)}function d(t,e,r){return(e=v(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function v(t){var e=function(t,e){if("object"!=s(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==s(e)?e:e+""}var m=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),f(this,e,arguments)}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&y(t,e)}(e,t),function(t,e,r){return e&&l(t.prototype,e),r&&l(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"connect",value:function(){this._iframeType=this.element.getAttribute("data-iframe-type");var t=this.element.getAttribute("data-has-consentmanager");this._hasConsentManager=!t||"true"===t,!0===this._hasConsentManager?(this.hasIframeTarget&&(this.iframeTarget.classList.add(i.A.CSS.IS_HIDDEN),this._registerEventListenerForLeadFlowIframe()),c()(window).on(i.A.EVENTS.CONSENT.CONSENT_CHANGED,this._handleConsentChanged.bind(this))):(c()(window).off(i.A.EVENTS.CONSENT.CONSENT_CHANGED),this._initIframe())}},{key:"_initIframe",value:function(){this.hasIframeTarget&&c()(this.iframeTarget).attr("src",c()(this.iframeTarget).data("src")),this.hasPlaceholderTarget&&this.placeholderTarget.classList.add(i.A.CSS.IS_HIDDEN),this.hasIframeTarget&&this.iframeTarget.classList.remove(i.A.CSS.IS_HIDDEN),(0,o.iframeResizer)({log:!1,checkOrigin:!1,warningTimeout:0},this.iframeTarget),this._iframeType===e.PHAINA_PRODUCT_FINDER_IFRAME_TYPE&&this.hasIframeTarget&&c()(this.iframeTarget).removeAttr("scrolling")}},{key:"_handleConsentChanged",value:function(t,r){if(this._consentGiven=(0,a.DG)(this._iframeType,r.details),this._consentGiven)this._initIframe();else{if(this._iframeType==e.VIEGA_LEAD_FLOW_IFRAME_TYPE)return void this._handleViegaLeadFlowConsentRefused();this._initPlaceholderImage(this._iframeType)}}},{key:"_initPlaceholderImage",value:function(){this.hasIframeTarget&&this.iframeTarget.classList.add(i.A.CSS.IS_HIDDEN),this.hasPlaceholderTarget&&this.placeholderTarget.classList.remove(i.A.CSS.IS_HIDDEN),this.hasIframeTarget&&c()(this.iframeTarget).attr("src","")}},{key:"_handleViegaLeadFlowConsentRefused",value:function(){this.hasIframeTarget&&(this.iframeTarget.contentWindow.postMessage(this._consentGiven,"*"),setTimeout(this._initPlaceholderImage.bind(this),100))}},{key:"_registerEventListenerForLeadFlowIframe",value:function(){var t=this;this.hasIframeTarget&&this._iframeType==e.VIEGA_LEAD_FLOW_IFRAME_TYPE&&this.iframeTarget.addEventListener("load",function(e){t._consentGiven&&t.iframeTarget.contentWindow.postMessage(t._consentGiven,"*")})}}])}(n.xI);d(m,"targets",["iframe","placeholder"]),d(m,"VIEGA_LEAD_FLOW_IFRAME_TYPE","viegaleadflow"),d(m,"PHAINA_PRODUCT_FINDER_IFRAME_TYPE","phainaproductfinder")},40963:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return y}});r(52675),r(89463),r(2259),r(45700),r(23792),r(89572),r(2892),r(40875),r(26099),r(60825),r(47764),r(23500),r(62953);var n=r(13368),o=r(29808),i=r(74692),a=r.n(i);function u(t){return u="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},u(t)}function c(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,h(n.key),n)}}function s(t,e,r){return e=f(e),function(t,e){if(e&&("object"==u(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,l()?Reflect.construct(e,r||[],f(t).constructor):e.apply(t,r))}function l(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(l=function(){return!!t})()}function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}
2function p(t,e){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},p(t,e)}function h(t){var e=function(t,e){if("object"!=u(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==u(e)?e:e+""}var y=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),s(this,e,arguments)}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&p(t,e)}(e,t),function(t,e,r){return e&&c(t.prototype,e),r&&c(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"showLightbox",value:function(t){var e=this._collectCorrespondingTemplates(),r=(0,o.Pl)();if(r){var n=document.createElement("div"),i=document.createElement("div"),u="js-a-lightbox__overlay-slide-container";n.innerHTML=this.galleryArrowsTemplateTarget.innerHTML,i.setAttribute("class",u),i.innerHTML=e,n.append(i),r.insertNode(n),r.open(),a()(".m-overlay .".concat(u)).slick({infinite:!1,dragging:!0,nextArrow:a()(".m-overlay .a-galleryarrows__arrow--right"),prevArrow:a()(".m-overlay .a-galleryarrows__arrow--left"),dots:!1,rows:0})}}},{key:"_collectCorrespondingTemplates",value:function(){var t=this,e=document.querySelectorAll('[data-m-lightboxactionimage-lightboxid="'.concat(this.data.get("lightboxid"),'"]')),r="";return e.forEach(function(e){var n=t.application.getControllerForElementAndIdentifier(e,"m-lightboxactionimage");n&&(r+=n.slideTemplateTarget.innerHTML)}),r}}])}(n.xI);!function(t,e,r){(e=h(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}(y,"targets",["slideTemplate","galleryArrowsTemplate"])},70345:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return v}});r(52675),r(89463),r(2259),r(45700),r(28706),r(23792),r(89572),r(62010),r(2892),r(40875),r(26099),r(60825),r(47764),r(23500),r(62953);var n=r(56690),o=r(29808),i=r(74692),a=r.n(i),u=r(80063).i;function c(t){return c="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},c(t)}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,d(n.key),n)}}function l(t,e,r){return e=p(e),function(t,e){if(e&&("object"==c(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,f()?Reflect.construct(e,r||[],p(t).constructor):e.apply(t,r))}function f(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(f=function(){return!!t})()}function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},p(t)}function h(t,e){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},h(t,e)}function y(t,e,r){return(e=d(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function d(t){var e=function(t,e){if("object"!=c(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==c(e)?e:e+""}var v=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return y(t=l(this,e,[].concat(n)),"accordion",{}),y(t,"accordionTitle",null),y(t,"matchMedia",null),t}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&h(t,e)}(e,t),function(t,e,r){return e&&s(t.prototype,e),r&&s(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"activeFilterLabels",get:function(){var t=[];
2return this.inputTargets.forEach(function(e){if(!0===e.checked){var r=e.parentNode.querySelector("label")?e.parentNode.querySelector("label").cloneNode(!0):"";r=r.innerHTML,t.push({label:r,id:e.id})}}),t}},{key:"initialize",value:function(){this._initAccordion(),this.matchMedia=(0,o.vX)("large",this._breakpointChange.bind(this)),this._breakpointChange()}},{key:"_breakpointChange",value:function(){var t=a()(this.element.querySelector(".m-accordion__content"));this.matchMedia.matches?this.accordion.down(t):this.accordion.up(t)}},{key:"_initAccordion",value:function(){this.accordion=new u.Accordion(a()(this.element.querySelector(".m-accordion")),{multiExpand:!1,allowAllClosed:!0}),this.accordionTitle=this.element.querySelector(".m-accordion__title")}},{key:"submitFilter",value:function(t){var e=[];this.inputTargets.forEach(function(t){!0===t.checked&&"0"!==t.value&&e.push(t.value)}),this._emit(this.element.dataset.name,e)}},{key:"updateFilters",value:function(t,e){var r=this;t.forEach(function(t){if(t.hasOwnProperty("id")&&t.hasOwnProperty("count")){r.element.querySelector('[value="'.concat(t.id,'"')).parentNode.querySelector(".js-m-searchoptionsfilternew__filter-item-count").innerHTML="(".concat(t.count,")")}else{var e=r.element.querySelector('[value="'.concat(t,'"'));e&&(e.checked=!0)}});var n=this.element.querySelector('[value="0"]');n&&(n.parentNode.querySelector(".js-m-searchoptionsfilternew__filter-item-count").innerHTML="(".concat(e,")"));var o=this.activeFilterLabels[0]?this.activeFilterLabels[0].id:"",i=this.activeFilterLabels[0]?this.activeFilterLabels[0].label:"";""!==o&&this.accordionTitle&&i&&(this.accordionTitle.innerHTML=i)}},{key:"removeFilter",value:function(){this.submitFilter()}}])}(n.A);y(v,"targets",["activeFiltersContainer","input"])},2735:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return O}});r(52675),r(89463),r(66412),r(2259),r(45700),r(78125),r(28706),r(50113),r(23418),r(23792),r(94490),r(34782),r(89572),r(62010),r(4731),r(60479),r(2892),r(40875),r(26099),r(3362),r(60825),r(27495),r(38781),r(47764),r(23500),r(62953);var n=r(13368),o=r(18248),i=r(22776),a=r(29808),u=r(75940),c=r(74692),s=r.n(c),l=r(22849),f=r(80063).i;function p(t){return p="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},p(t)}function h(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return y(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?y(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}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 i,a=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}function y(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function d(){d=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var i=e&&e.prototype instanceof g?e:g,a=Object.create(i.prototype),u=new L(n||[]);return o(a,"_invoke",{value:C(t,r,u)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var h="suspendedStart",y="suspendedYield",v="executing",m="completed",b={};function g(){}function S(){}function w(){}var _={};s(_,a,function(){return this});var T=Object.getPrototypeOf,O=T&&T(T(x([])));O&&O!==r&&n.call(O,a)&&(_=O);var E=w.prototype=g.prototype=Object.create(_);function j(t){["next","throw","return"].forEach(function(e){s(t,e,function(t){return this._invoke(e,t)})})}function P(t,e){function r(o,i,a,u){var c=f(t[o],t,i);if("throw"!==c.type){var s=c.arg,l=s.value;return l&&"object"==p(l)&&n.call(l,"__await")?e.resolve(l.__await).then(function(t){r("next",t,a,u)},function(t){r("throw",t,a,u)}):e.resolve(l).then(function(t){s.value=t,a(s)},function(t){return r("throw",t,a,u)})}u(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e(function(e,o){r(t,n,e,o)})}return i=i?i.then(o,o):o()}})}function C(e,r,n){var o=h;return function(i,a){if(o===v)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}
vendor: 5,615 bytes, line 2
2for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var c=A(u,n);if(c){if(c===b)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=f(e,r,n);if("normal"===s.type){if(o=n.done?m:y,s.arg===b)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=m,n.method="throw",n.arg=s.arg)}}}function A(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,A(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,b;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,b):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function x(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(p(e)+" is not iterable")}return S.prototype=w,o(E,"constructor",{value:w,configurable:!0}),o(w,"constructor",{value:S,configurable:!0}),S.displayName=s(w,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===S||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,s(t,c,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},j(P.prototype),s(P.prototype,u,function(){return this}),e.AsyncIterator=P,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new P(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next()})},j(E),s(E,c,"Generator"),s(E,a,function(){return this}),s(E,"toString",function(){return"[object Generator]"}),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=x,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(I),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return u.type="throw",u.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,b):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),b},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),I(r),b}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;I(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:x(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),b}},e}function v(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,o)}function m(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,T(n.key),n)}}function b(t,e,r){return e=S(e),function(t,e){if(e&&("object"==p(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,g()?Reflect.construct(e,r||[],S(t).constructor):e.apply(t,r))}function g(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(g=function(){return!!t})()}
2function S(t){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},S(t)}function w(t,e){return w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},w(t,e)}function _(t,e,r){return(e=T(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function T(t){var e=function(t,e){if("object"!=p(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=p(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==p(e)?e:e+""}var O=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return _(t=b(this,e,[].concat(n)),"drilldownClass",".m-mainnav__drilldown"),_(t,"languageIconLeft",[]),_(t,"languageIconRight",[]),t}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&w(t,e)}(e,t),function(t,e,r){return e&&m(t.prototype,e),r&&m(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"initialize",value:function(){var t=this;this._hasActiveDrilldown=!1,this._animationTime=400,this._currentTarget=null,this._isAnimating=!1,this._removeClickListener=null,this.languageIconLeft=document.querySelectorAll(".a-svgicon--language_select_left"),this.languageIconRight=document.querySelectorAll(".a-svgicon--language_select_right"),this._switchLanguageIcon(),s()(window).on("changed.zf.mediaquery",function(e,r,n){t._initDrilldownMenu();var i=t.mainItemsTarget.parentNode.querySelector(".".concat(o.A.CSS.IS_ACTIVE_NAVITEM));i&&t._openSubmenuOf(i)}),document.addEventListener(o.A.EVENTS.MAIN_NAV.CALC_FLYOUT_HEIGHT,function(e){t._openSubmenuOf(e.detail.navItem)}),this._initDrilldownMenu()}},{key:"connect",value:function(){u.l.subscribe(this._onWatchlistStorageChange.bind(this))}},{key:"_switchLanguageIcon",value:function(){var t=document.querySelector(".m-mainnav__language-link.is-active");null!=t&&("1"===t.dataset.position&&this.languageIconRight.length>0?(this.languageIconRight.forEach(function(t){t.classList.add(o.A.CSS.IS_HIDDEN)}),this.languageIconLeft.forEach(function(t){t.classList.remove(o.A.CSS.IS_HIDDEN)})):this.languageIconLeft.length>0&&(this.languageIconLeft.forEach(function(t){t.classList.add(o.A.CSS.IS_HIDDEN)}),this.languageIconRight.forEach(function(t){t.classList.remove(o.A.CSS.IS_HIDDEN)})))}},{key:"_onWatchlistStorageChange",value:function(t){var e=this,r="";if(t&&t.hasOwnProperty("items"))if(this.updateWatchlistItemCount(t.items.length),t.items.length>0){var n=this.watchlistItemTemplateTarget.innerHTML;this.watchlistFlyoutTarget.classList.remove(o.A.CSS.IS_EMPTY),t.items.slice(Math.max(t.items.length-3,0)).forEach(function(t){t.adobeDataLayerId=(0,l.JE)(t.id),r+=n.slice(1).interpolate((0,a.SH)(t)),(0,l.PR)(t,e.element.getAttribute("id"))})}else this.updateWatchlistItemCount(0);else this.updateWatchlistItemCount(0);""===r&&(this.watchlistFlyoutTarget.classList.contains(o.A.CSS.IS_EMPTY)||this.watchlistFlyoutTarget.classList.add(o.A.CSS.IS_EMPTY)),this.watchlistContainerTarget.innerHTML=r,(0,l.kz)(this.watchlistContainerTarget)}},{key:"updateWatchlistItemCount",value:function(t){this.watchlistCounterTargets.forEach(function(e){e.innerHTML=t})}},{key:"getDrilldownOptions",value:function(){return{autoHeight:!0,backButton:'\n\t\t\t\t<li class="js-drilldown-back">\n\t\t\t\t\t<a tabindex="0" class="m-mainnav__back-button-link" data-target="m-mainnav.backButton">Back</a>\n\t\t\t\t</li>',wrapper:'<div class="m-mainnav__drilldown'+(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"")+'"></div>',closeOnClick:!1}}},{key:"_initDrilldownMenu",value:function(){if(f.MediaQuery.atLeast("large")&&"large"!==f.MediaQuery.current)this._hasActiveDrilldown&&(s()(this.mainItemsTarget).foundation("_destroy"),s()(this.mainItemsTarget).removeClass("drilldown"),this._hasActiveDrilldown=!1);else if(!this._hasActiveDrilldown){var t=this.getDrilldownOptions();this.drilldown=new f.Drilldown(s()(this.mainItemsTarget),t),this._initDrilldownBackButtons(),this._hasActiveDrilldown=!0}}},{key:"toggleMobileMenu",value:function(t){var r=this,n=s()(this.mainItemsTarget),a=s()(this.mobileMenuToggleTarget),u=document.querySelector(".is-drilldown"),c=u.querySelector("ul.drilldown");this.hasMobileLanguageToggleTarget&&this.hasLanguageItemsTarget&&this.closeDrilldownMenu(s()(this.languageItemsTarget),s()(this.mobileLanguageToggleTarget),document.querySelector(this.drilldownClass+e.language_extension)),n.hasClass(o.A.CSS.IS_ACTIVE_NAVITEM)?((0,i.A)({targets:u,height:{value:0},duration:this._animationTime,easing:"easeOutQuint",complete:function(){n.removeClass(o.A.CSS.IS_ACTIVE_NAVITEM),a.removeClass(o.A.CSS.IS_ACTIVE_NAVITEM),r._isAnimating=!1}}),this._toggleShader(!1)):(s()(u).height(n.outerHeight()),s()(u).css("max-width","100%"),n.outerHeight()>window.innerHeight&&(s()(c).css("height","100vh"),s()(c).css("overflow-y","scroll")),s()(c),n.addClass(o.A.CSS.IS_ACTIVE_NAVITEM),a.addClass(o.A.CSS.IS_ACTIVE_NAVITEM),(0,i.A)({targets:u,height:{value:[0,u.offsetHeight]},duration:this._animationTime,easing:"easeOutQuint",complete:function(){r._isAnimating=!1}}),this.drilldown._getMaxDims(),this._toggleShader(!0))}},{key:"closeDrilldownMenu",value:(r=d().mark(function t(e,r,n){var a,u=this;return d().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return a=(0,i.A)({targets:n,height:{value:0},duration:this._animationTime,easing:"easeOutQuint",complete:function(){e.removeClass(o.A.CSS.IS_ACTIVE_NAVITEM),r.removeClass(o.A.CSS.IS_ACTIVE_NAVITEM),u._isAnimating=!1}}).finished,this._toggleShader(!1),t.next=4,a;case 4:case"end":return t.stop()}},t,this)}),n=function(){var t=this,e=arguments;return new Promise(function(n,o){var i=r.apply(t,e);function a(t){v(i,n,o,a,u,"next",t)}function u(t){v(i,n,o,a,u,"throw",t)}a(void 0)})},function(t,e,r){return n.apply(this,arguments)})},{key:"openDrilldownMenu",value:function(t,e,r){var n=this;s()(r).height(t.outerHeight()),s()(r).css("max-width","100%"),t.addClass(o.A.CSS.IS_ACTIVE_NAVITEM),e.addClass(o.A.CSS.IS_ACTIVE_NAVITEM),(0,i.A)({targets:r,height:{value:[0,r.offsetHeight]},duration:this._animationTime,easing:"easeOutQuint",complete:function(){n._isA
2nimating=!1}}),this._toggleShader(!0)}},{key:"toggleDrilldownMobileMenu",value:function(t,r,n){var i=this,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],u=s()(t),c=s()(r);u.hasClass(o.A.CSS.IS_ACTIVE_NAVITEM)?this.closeDrilldownMenu(u,c,n):!0===a?this.closeDrilldownMenu(s()(this.mainItemsTarget),s()(this.mobileMenuToggleTarget),document.querySelector(this.drilldownClass)).then(function(){i.openDrilldownMenu(u,c,n)}):this.hasMobileLanguageToggleTarget&&this.hasLanguageItemsTarget?this.closeDrilldownMenu(s()(this.languageItemsTarget),s()(this.mobileLanguageToggleTarget),document.querySelector(this.drilldownClass+e.language_extension)).then(function(){i.openDrilldownMenu(u,c,n)}):this.openDrilldownMenu(u,c,n)}},{key:"_initDrilldownBackButtons",value:function(){var t,e=h(this.backButtonTargets);try{for(e.s();!(t=e.n()).done;){var r=t.value;r.innerHTML=s()(r.parentNode.parentNode.parentNode).find("a").html()}}catch(t){e.e(t)}finally{e.f()}}},{key:"_toggleShader",value:function(t){t?(f.MediaQuery.atLeast("xlarge")&&(this._removeClickListener=(0,a.X2)(this.element,this.closeAll.bind(this))),document.body.classList.add(o.A.CSS.IS_ACTIVE_SHADER)):(f.MediaQuery.atLeast("xlarge")&&this._removeClickListener&&this._removeClickListener(),document.removeEventListener("click",this.closeAll.bind(this)),document.body.classList.remove(o.A.CSS.IS_ACTIVE_SHADER))}},{key:"isSubmenueActive",value:function(){return!!this.mainItemsTarget.parentNode.querySelector(".m-mainnav__submenu-item"+".".concat(o.A.CSS.IS_ACTIVE_NAVITEM))}},{key:"closeAll",value:function(){this._closeDescendingSubmenus(this.element)}},{key:"navigationLinkClick",value:function(t){if(f.MediaQuery.atLeast("xlarge")){this._currentTarget=t.currentTarget;var e=this._currentTarget.parentNode,r=e.parentNode.parentNode;if(e.contains(e.querySelector(".m-mainnav__submenu"))){if(t.preventDefault(),this._isAnimating)return!1;if(this._isAnimating=!0,e.classList.contains(o.A.CSS.IS_ACTIVE_NAVITEM))this._closeDescendingSubmenus(e.parentNode);else if(this.mainItemsTarget.querySelector(".".concat(o.A.CSS.IS_ACTIVE_NAVITEM)||0)){var n=0;this.mainItemsTarget.querySelector(".".concat(o.A.CSS.IS_ACTIVE_NAVITEM))&&!this._currentTarget.classList.contains("has-submenu")?n=this.mainItemsTarget.querySelector(".".concat(o.A.CSS.IS_ACTIVE_NAVITEM," .m-mainnav__submenu")).offsetHeight:this.menuItemsTarget.querySelector(".".concat(o.A.CSS.IS_ACTIVE_NAVITEM))&&!this._currentTarget.classList.contains("has-submenu")&&(n=this.menuItemsTarget.querySelector(".".concat(o.A.CSS.IS_ACTIVE_NAVITEM," .m-mainnav__submenu")).offsetHeight),this._closeDescendingSubmenus(r),this._openSubmenuOf(e,n)}else if(this.menuItemsTarget.querySelector(".".concat(o.A.CSS.IS_ACTIVE_NAVITEM))){var i=this.menuItemsTarget.querySelector(".".concat(o.A.CSS.IS_ACTIVE_NAVITEM," .m-mainnav__submenu")).offsetHeight;this._closeDescendingSubmenus(r),this._openSubmenuOf(e,i)}else this._openSubmenuOf(e)}}}},{key:"_closeDescendingSubmenus",value:function(t){var e=this;t.querySelectorAll(".".concat(o.A.CSS.IS_ACTIVE_NAVITEM)).forEach(function(t){var r=t.querySelector(".m-mainnav__submenu"),n=r?r.children:void 0,a=i.A.timeline({duration:e._animationTime,easing:"easeOutQuint"});n&&(a.add({targets:n,opacity:0},0),a.add({targets:r,height:0,paddingTop:0,paddingBottom:0,begin:function(){r.style.overflow="hidden",t.classList.remove(o.A.CSS.IS_ACTIVE_NAVITEM),t.classList.add(o.A.CSS.IS_ANIMATING)},complete:function(){t.classList.remove(o.A.CSS.IS_ANIMATING),r.style.cssText="",e._isAnimating=!1}},e._animationTime/2))}),(t.classList.contains("m-mainnav")||t.classList.contains("m-mainnav__main-items")||t.classList.contains("m-mainnav__menu"))&&this._toggleShader(!1)}},{key:"_openSubmenuOf",value:function(t,e){var r=this,n=(document.querySelector(".m-mainnav__navigation-container"),t.querySelector(".m-mainnav__submenu")),a=n.children;if(n){var u=e||n.offsetHeight;n.style.height="",t.classList.add(o.A.CSS.IS_ACTIVE_NAVITEM),t.classList.contains("m-mainnav__countrylist")||i.A.set(a,{opacity:0});var c=i.A.timeline({duration:this._animationTime,easing:"easeOutQuint"}),s=t.querySelector(".m-mainnav__submenu--2");c.add({targets:n,height:{value:[u,n.offsetHeight]},complete:function(){r._isAnimating=!1,n.style.overflow="visible",s&&s.scrollHeight+ +s.getBoundingClientRect().top>window.innerHeight&&(s.style.setProperty("max-height","50vh"),s.style.setProperty("overflow-y","scroll"))}},0),c.add({targets:a,opacity:1},"-=100"),this._toggleShader(!0)}}},{key:"changeLanguage",value:function(t){var e=t.currentTarget.dataset.lang;(0,a.TV)(o.A.COOKIES.PREFERRED_LANGUAGE,30,e)}},{key:"getDrillDownMenuState",value:function(){return s()(this.mainItemsTarget).hasClass(o.A.CSS.IS_ACTIVE_NAVITEM)}}]);var r,n}(n.xI);_(O,"targets",["mainItems","menuItems","languageItems","backButton","mobileMenuToggle","mobileLanguageToggle","watchlistItemTemplate","watchlistCounter","watchlistContainer","watchlistFlyout"]),_(O,"language_extension","--language")},10602:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return P}});r(52675),r(89463),r(2259),r(45700),r(28706),r(2008),r(23792),r(89572),r(2892),r(40875),r(26099),r(60825),r(47764),r(23500),r(62953);var n=r(13368),o=r(18248),i=(r(79432),r(43204)),a=r(75940);function u(t){return u="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},u(t)}function c(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,y(n.key),n)}}function s(t,e,r){return e=f(e),function(t,e){if(e&&("object"==u(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,l()?Reflect.construct(e,r||[],f(t).constructor):e.apply(t,r))}function l(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(l=function(){return!!t})()}function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}
2function p(t,e){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},p(t,e)}function h(t,e,r){return(e=y(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function y(t){var e=function(t,e){if("object"!=u(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==u(e)?e:e+""}var d=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),h(t=s(this,e),"_watchlistService",void 0);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];for(var i=0,u=n;i<u.length;i++){var c=u[i];c instanceof a.P&&(t._watchlistService=c)}return t._checkDependencies(),t._addSubscribtions(),t}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&p(t,e)}(e,t),function(t,e,r){return e&&c(t.prototype,e),r&&c(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"_checkDependencies",value:function(){if(!this._watchlistService)throw"notification.service: invalid parameters passed, missing: watchlist.service"}},{key:"_addSubscribtions",value:function(){this._watchlistService.subscribe(this._handleWatchlistNotification.bind(this),a.P.EVENT_TYPES.remove)}},{key:"_handleWatchlistNotification",value:function(t){var r=Object.keys(t).length,n=e.EVENT_MESSAGES.watchlistRemove;this.handleNotification(n,r,t)}},{key:"subscribe",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.EVENT_TYPES.open;"function"==typeof t&&this._subscriptions.push({callback:t,event:r})}},{key:"handleNotification",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;this.trigger(e.EVENT_TYPES.open,{type:t,value:r,data:n})}}])}(i.Q);h(d,"EVENT_TYPES",{open:"open"}),h(d,"EVENT_MESSAGES",{watchlistRemove:"watchlist-remove"});var v=new d(a.l),m=r(22849),b=r(80063).i;function g(t){return g="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},g(t)}function S(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,j(n.key),n)}}function w(t,e,r){return e=T(e),function(t,e){if(e&&("object"==g(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,_()?Reflect.construct(e,r||[],T(t).constructor):e.apply(t,r))}function _(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(_=function(){return!!t})()}function T(t){return T=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},T(t)}function O(t,e){return O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},O(t,e)}function E(t,e,r){return(e=j(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function j(t){var e=function(t,e){if("object"!=g(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=g(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==g(e)?e:e+""}var P=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return E(t=w(this,e,[].concat(n)),"visibleDelay",3e3),E(t,"defaultMessage",""),E(t,"dataQueue",[]),t}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&O(t,e)}(e,t),function(t,e,r){return e&&S(t.prototype,e),r&&S(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"initialize",value:function(){this.buttonSelector=".m-notification__button",this.infoTextSelector=".m-notification__info-text",this.infoTextMultipleSelector=".m-notification__info-text-multiple",this.infoButtonTextSelector=".m-notification__info-button-text",this.watchlistMainnavSelector=".m-mainnav__watchlist",this.watchlistHeaderLiteSelector=".o-headerlite__watchlist",this.defaultMessage=this.textTarget.textContent,this._setPosition()}},{key:"connect",value:function(){v.subscribe(this._queue.bind(this)),window.addEventListener("resize",this._setPosition.bind(this))}},{key:"handleClick",value:function(t){t.stopImmediatePropagation(),this.element.querySelector(this.buttonSelector).click()}},{key:"handleDefault",value:function(){}},{key:"handleMouseOver",value:function(){this.isMouseOver=!0}},{key:"handleMouseOut",value:function(){this.isMouseOver=!1,this.mouseOutCallback&&(this.mouseOutCallback(),delete this.mouseOutCallback)}},{key:"handleWatchlistRemove",value:function(t){t.stopImmediatePropagation(),a.l.restore(
2),a.l.restorableItems.forEach(function(t){(0,m.Ax)((0,m.JE)(t.id),m.Z$)}),this._closeWatchlistRemove()}},{key:"_queue",value:function(t){var e=[];if(t.data&&(e=this.dataQueue.filter(function(e){return e.data[0].id===t.data[0].id})),0===e.length){var r=0;this.dataQueue.push(t),this.dataQueue.forEach(function(t){return r+=t.data.length});var n={type:t.type,value:r};this._open(n)}}},{key:"_open",value:function(t){this.element.classList.remove(o.A.CSS.IS_HIDDEN);var e=this["".concat(t.type,"Target")];if(e){clearTimeout(this.closeTimeout);var r=t.value?t.value:"",n=t.value>1?this.infoTextMultipleSelector:this.infoTextSelector,i=e.querySelector(n),a=i?i.innerHTML:this.defaultMessage;this.textTarget.textContent=a,this.valueTarget.textContent=r;var u=e.querySelector(this.infoButtonoActionSelector),c=e.querySelector(this.infoButtonTextSelector),s=this._getAction(t.type),l=s||u.textContent;this.element.querySelector(this.buttonSelector).dataset.action=l,this.element.querySelector(this.buttonSelector+" span").textContent=c.textContent,this.element.classList.remove(o.A.CSS.IS_EMPTY),this._startCloseTimeout(t.type)}}},{key:"_startCloseTimeout",value:function(t){var e=this;this.closeTimeout=setTimeout(function(){if(e.isMouseOver)e.mouseOutCallback=function(){e._startCloseTimeout(t)};else{var r=e._getCloseAction(t);"function"==typeof e[r]&&e[r]()}},this.visibleDelay)}},{key:"_close",value:function(){clearTimeout(this.closeTimeout),this.element.classList.contains(o.A.CSS.IS_EMPTY)||this.element.classList.add(o.A.CSS.IS_EMPTY),this.element.classList.contains(o.A.CSS.IS_HIDDEN)||this.element.classList.add(o.A.CSS.IS_HIDDEN)}},{key:"_closeWatchlistRemove",value:function(){this._close(),this.dataQueue=[],a.l.cleanRestorableItems()}},{key:"_getAction",value:function(t){var r;if(t===d.EVENT_MESSAGES.watchlistRemove)r=e.EVENT_ACTION.watchlistRemove;else r="handleDefault";return"click->m-notification#".concat(r)}},{key:"_getCloseAction",value:function(t){var r;if(t===d.EVENT_MESSAGES.watchlistRemove)r=e.CLOSE_ACTION.watchlistRemove;else r="_close";return r}},{key:"_setPosition",value:function(){var t=null;if(document.querySelector(this.watchlistMainnavSelector)?t=document.querySelector(this.watchlistMainnavSelector):document.querySelector(this.watchlistHeaderLiteSelector)&&document.querySelector(this.watchlistHeaderLiteSelector).children&&(t=document.querySelector(this.watchlistHeaderLiteSelector).children[0]),t){var e=t.getBoundingClientRect().left+t.clientWidth/2;b.MediaQuery.atLeast("xlarge")?this.element.style.left="".concat(e,"px"):this.element.style.left=0}}}])}(n.xI);E(P,"targets",["text","value","watchlist-remove"]),E(P,"EVENT_ACTION",{watchlistRemove:"handleWatchlistRemove"}),E(P,"CLOSE_ACTION",{watchlistRemove:"_closeWatchlistRemove"})},61435:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return y}});r(52675),r(89463),r(2259),r(45700),r(23792),r(89572),r(2892),r(40875),r(26099),r(60825),r(47764),r(62953);var n=r(13368),o=r(18248),i=r(29808);function a(t){return a="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},a(t)}function u(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,h(n.key),n)}}function c(t,e,r){return e=l(e),function(t,e){if(e&&("object"==a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,s()?Reflect.construct(e,r||[],l(t).constructor):e.apply(t,r))}function s(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(s=function(){return!!t})()}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}function f(t,e){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},f(t,e)}function p(t,e,r){return(e=h(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function h(t){var e=function(t,e){if("object"!=a(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
2(t,"string");return"symbol"==a(e)?e:e+""}var y=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),c(this,e,arguments)}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&f(t,e)}(e,t),function(t,e,r){return e&&u(t.prototype,e),r&&u(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"close",value:function(){this.element.classList.remove(o.A.CSS.IS_ACTIVE),this.resetMediumSize(),this.removeOnClickOutsideListener()}},{key:"open",value:function(){this.element.classList.add(o.A.CSS.IS_ACTIVE),this.removeOnClickOutsideListener=(0,i.X2)(this.containerTarget,this.close.bind(this))}},{key:"insertHTML",value:function(t){t&&(this.contentTarget.innerHTML=t)}},{key:"insertNode",value:function(t){t&&(this.contentTarget.innerHTML="",this.contentTarget.appendChild(t))}},{key:"setMediumSize",value:function(){this.element.classList.add(e.MEDIUM_WIDTH_MODIFIER)}},{key:"resetMediumSize",value:function(){this.element.classList.remove(e.MEDIUM_WIDTH_MODIFIER)}},{key:"triggerEvent",value:function(t){(0,i.Hl)(t.currentTarget.dataset.event,{target:t})}},{key:"toggleBlock",value:function(t){var e=t.currentTarget;[].forEach.call(this.element.querySelectorAll(".js-m-overlay__block"),function(t){var r="removeAttribute";e.checked?t.classList.remove(o.A.CSS.IS_INACTIVE):(t.classList.add(o.A.CSS.IS_INACTIVE),r="setAttribute"),[].forEach.call(t.querySelectorAll("input"),function(t){t[r]("disabled",!0)})})}}])}(n.xI);p(y,"MEDIUM_WIDTH_MODIFIER","m-overlay--medium-width"),p(y,"targets",["content","container"])},88857:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return h}});r(52675),r(89463),r(2259),r(45700),r(23792),r(89572),r(2892),r(40875),r(26099),r(60825),r(47764),r(62953);var n=r(13368),o=r(18248),i=r(29808);function a(t){return a="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},a(t)}function u(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,p(n.key),n)}}function c(t,e,r){return e=l(e),function(t,e){if(e&&("object"==a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,s()?Reflect.construct(e,r||[],l(t).constructor):e.apply(t,r))}function s(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(s=function(){return!!t})()}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}function f(t,e){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},f(t,e)}function p(t){var e=function(t,e){if("object"!=a(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==a(e)?e:e+""}var h=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),c(this,e,arguments)}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&f(t,e)}(e,t),function(t,e,r){return e&&u(t.prototype,e),r&&u(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"initialize",value:function(){this.data.element.classList.add(o.A.CSS.IS_ACTIVE)}},{key:"consentAcceptService",value:function(){var t=this.data.get("consentservice");if(t&&i.W4[t]&&i.W4[t].id){t=t.toLowerCase();var e=i.W4[t].id;
2(0,i.AT)(o.A.EVENTS.CONSENT.ACCEPT_SERVICE,e)}}},{key:"consentMoreInfo",value:function(){(0,i.AT)(o.A.EVENTS.CONSENT.SHOW_SECOND_LAYER)}}])}(n.xI);!function(t,e,r){(e=p(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}(h,"targets",[])},10397:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return y}});r(52675),r(89463),r(2259),r(45700),r(28706),r(23792),r(89572),r(2892),r(40875),r(26099),r(58940),r(60825),r(47764),r(23500),r(62953);var n=r(13368),o=r(29808),i=r(18248);function a(t){return a="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},a(t)}function u(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,h(n.key),n)}}function c(t,e,r){return e=l(e),function(t,e){if(e&&("object"==a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,s()?Reflect.construct(e,r||[],l(t).constructor):e.apply(t,r))}function s(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(s=function(){return!!t})()}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}function f(t,e){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},f(t,e)}function p(t,e,r){return(e=h(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function h(t){var e=function(t,e){if("object"!=a(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==a(e)?e:e+""}var y=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return p(t=c(this,e,[].concat(n)),"_subscriptions",[]),p(t,"totalResultCount",0),p(t,"resultsPerPage",2),p(t,"activePageNumber",-1),p(t,"insertPageParam",!0),p(t,"isClicked",!1),t}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&f(t,e)}(e,t),function(t,e,r){return e&&u(t.prototype,e),r&&u(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"handlePaginationClick",value:function(t){var e=t.currentTarget.dataset.goto;if(this.isClicked=!0,this.goTo(t.currentTarget.dataset.goto,!1,this.insertPageParam),this.hasPaginationContainerTarget&&"next"!==e&&"previous"!==e&&"first"!==e&&"last"!==e){var r=this.paginationContainerTarget.querySelector('button[data-goto="'+this.activePageNumber+'"]');r&&r.focus()}}},{key:"subscribe",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.EVENT_TYPES.change;"function"==typeof t&&this._subscriptions.push({callback:t,event:r})}},{key:"renderPagination",value:function(t){if(this.totalResultCount<=this.resultsPerPage)this.element.classList.add(i.A.CSS.IS_HIDDEN);else{this.element.classList.remove(i.A.CSS.IS_HIDDEN);var e=this.getLast(),r=this.getPaginationPageMinMax(t,e),n={totalResults:this.totalResultCount,maxPageCount:e,currentPage:t,maxPaginationPage:r.max,minPaginationPage:r.min};this.paginationContainerTarget.innerHTML=this.paginationTemplateTarget.innerHTML.interpolate(n),this.activePageNumber=t}}},{key:"getPaginationPageMinMax",value:function(t,e){for(var r=t,n=t,o=0,i=0,a=1;a<3;a++)t+a<=e?r+=1:o+=1,t-a>0?n-=1:i+=1;return{max:r+=i,min:n-=o}}},{key:"goTo",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=this._getCorrespondingPageNumber(t),a=this.activePageNumber;if(this.renderPagination(i),i!==a){r||this.trigger(e.EVENT_TYPES.change,this.activePageNumber);var u=parseInt((0,o.pg)("page"))||0;!n||0!==u&&u===i||(0,o.Pd)("page",i)}}},{key:"trigger",value:function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];this._subscriptions.forEach(function(e){t===e.event&&e.callback.apply(e,r)})}},{key:"getNext",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.activePageNumber,e=this.getLast();return t+1>=e?e:t+1}},{key:"getPrevious",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.activePageNumber;return t-1<=0?1:t-1}},{key:"getLast",value:function(){return Math.ceil(this.totalResultCount/this.resultsPerPage)}},{key:"_getCorrespondingPageNumber",value:function(t){var e=-1;switch(t){case"first":e=1;break;case"previous":e=this.getPrevious();break;case"next":e=this.getNext();break;case"last":e=this.getLast();break;default:"number"!=typeof(t=parseInt(t))||isNaN(t)||(e=t)}return e}}])}(n.xI);p(y,"targets",["paginationContainer","paginationTemplate"]),p(y,"EVENT_TYPES",{change:"change"})},22181:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return y}});r(52675),r(89463),r(2259),r(45700),r(28706),r(23792),r(34782),r(89572),r(2892),r(40875),r(26099),r(60825),r(27495),r(47764),r(25440),r(62953);var n=r(13368),o=r(18248),i=r(29808);function a(t){return a="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},a(t)}function u(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,h(n.key),n)}}function c(t,e,r){return e=l(e),function(t,e){if(e&&("object"==a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}
2(t,s()?Reflect.construct(e,r||[],l(t).constructor):e.apply(t,r))}function s(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(s=function(){return!!t})()}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}function f(t,e){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},f(t,e)}function p(t,e,r){return(e=h(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function h(t){var e=function(t,e){if("object"!=a(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==a(e)?e:e+""}var y=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return p(t=c(this,e,[].concat(n)),"_currentService",""),t}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&f(t,e)}(e,t),function(t,e,r){return e&&u(t.prototype,e),r&&u(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"initialize",value:function(){this._currentService=this.data.get("consentservice");var t=this._currentService.charAt(0).toUpperCase()+this._currentService.slice(1),e=this.element.querySelector(".m-placeholderimage__headline"),r=this.element.querySelector(".m-placeholderimage__richtext");e&&""!==this._currentService&&(e.innerHTML=e.innerHTML.replace("$$service$$",t)),r&&""!==this._currentService&&(r.innerHTML=r.innerHTML.replace("$$service$$",t))}},{key:"consentAcceptService",value:function(){if(this._currentService&&i.W4[this._currentService]&&i.W4[this._currentService].id){this._currentService=this._currentService.toLowerCase();var t=i.W4[this._currentService].id;(0,i.AT)(o.A.EVENTS.CONSENT.ACCEPT_SERVICE,t)}}},{key:"consentMoreInfo",value:function(){(0,i.AT)(o.A.EVENTS.CONSENT.SHOW_SECOND_LAYER)}}])}(n.xI);p(y,"targets",[])},94047:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return y}});r(52675),r(89463),r(2259),r(45700),r(23792),r(89572),r(62010),r(2892),r(40875),r(79432),r(26099),r(58940),r(60825),r(47764),r(23500),r(62953);var n=r(18248),o=r(56690),i=r(74692),a=r.n(i);function u(t){return u="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},u(t)}function c(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,h(n.key),n)}}function s(t,e,r){return e=f(e),function(t,e){if(e&&("object"==u(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,l()?Reflect.construct(e,r||[],f(t).constructor):e.apply(t,r))}function l(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(l=function(){return!!t})()}function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}function p(t,e){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},p(t,e)}function h(t){var e=function(t,e){if("object"!=u(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
2(t,"string");return"symbol"==u(e)?e:e+""}var y=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),s(this,e,arguments)}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&p(t,e)}(e,t),function(t,e,r){return e&&c(t.prototype,e),r&&c(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"activeFilterLabels",get:function(){var t=[];return this.filterContentTargets.forEach(function(e){e.querySelectorAll("input").forEach(function(e){if(!0===e.checked){var r=e.closest(".a-checkbox");if(r){var n=r.querySelector("label").cloneNode(!0);n.querySelector("span")&&n.querySelector("span").remove(),n=n.textContent,t.push({label:n,id:e.id})}}})}),t}},{key:"submitFilter",value:function(t){var e={};this.filterContentTargets.forEach(function(t){e[t.dataset.groupName]=[],t.querySelectorAll("input").forEach(function(r){r&&!0===r.checked&&e[t.dataset.groupName].push(r.value)})}),this._emit(this.element.dataset.name,e)}},{key:"updateFilters",value:function(t){var e=this;Object.keys(t).forEach(function(r){var o=t[r];if(o.hasOwnProperty("count")&&o.hasOwnProperty("items")){var i=e.element.querySelector('[data-group-name="'.concat(r,'"]'));if(!i)return!1;(i=i.parentNode.parentNode).querySelector(".js-m-searchfacetfilter__filter-count").innerHTML="(".concat(o.count,")"),parseInt(o.count)>0?(o.items.forEach(function(t){var r=e.element.querySelector('[value="'.concat(t.id,'"]'));if(r){var o=r.closest(".a-checkbox");0===parseInt(t.count)?(o.classList.add(n.A.CSS.IS_HIDDEN),r.checked=!1):o.classList.remove(n.A.CSS.IS_HIDDEN),o.querySelector(".js-m-searchfacetfilter__filter-item-count").innerHTML="(".concat(t.count,")")}}),i.classList.remove(n.A.CSS.IS_INACTIVE)):(i.classList.contains(n.A.CSS.IS_ACTIVE)&&i.querySelector(".m-accordion__title").click(),i.classList.add(n.A.CSS.IS_INACTIVE),i.querySelectorAll("input").forEach(function(t){return t.checked=!1}))}else o.forEach(function(t){return e.element.querySelector('[value="'.concat(t,'"')).checked=!0})})}},{key:"removeFilter",value:function(t){a()("#".concat(t)).prop("checked",!1),this.submitFilter()}}])}(o.A);!function(t,e,r){(e=h(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}(y,"targets",["filterContent","facetfiltertype"])},48795:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return m}});r(52675),r(89463),r(2259),r(45700),r(23418),r(23792),r(62062),r(72712),r(34782),r(26910),r(54554),r(89572),r(62010),r(2892),r(40875),r(26099),r(58940),r(60825),r(84864),r(27495),r(38781),r(47764),r(25440),r(42762),r(23500),r(62953);var n=r(13368),o=(r(92745),r(18248)),i=r(29808),a=r(74692),u=r.n(a);function c(t){return c="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},c(t)}function s(t){return function(t){if(Array.isArray(t))return l(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return l(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(t,e):void 0}}(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 l(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function f(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,v(n.key),n)}}function p(t,e,r){return e=y(e),function(t,e){if(e&&("object"==c(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,h()?Reflect.construct(e,r||[],y(t).constructor):e.apply(t,r))}function h(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(h=function(){return!!t})()}
2function y(t){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},y(t)}function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}function v(t){var e=function(t,e){if("object"!=c(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==c(e)?e:e+""}var m=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),p(this,e,arguments)}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&d(t,e)}(e,t),function(t,e,r){return e&&f(t.prototype,e),r&&f(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"initialize",value:function(){}},{key:"connect",value:function(){var t=(0,i.pg)("q");t&&(this.searchInputTarget.value=decodeURI(t.replace(/\+/g," "))),this._initSearchFlyout()}},{key:"handleButtonClick",value:function(t){t.preventDefault(),0==this.searchInputTarget.value.length?this.searchInputTarget.focus():this.element.submit()}},{key:"_initSearchFlyout",value:function(){var t=this;this.hasSearchInputTarget&&u()(this.searchInputTarget).devbridgeAutocomplete({dataType:"application/json",groupBy:"categoryId",maxHeight:"initial",autoSelectFirst:!1,triggerSelectOnValidInput:!1,width:"100%",appendTo:this.suggestionsTarget,showNoSuggestionNotice:!0,noSuggestionNotice:this.noSuggestionTemplateTarget.innerHTML,beforeRender:this._beforeRender.bind(this),formatGroup:this._formatGroup.bind(this),lookup:this._fetchApi.bind(this),formatResult:this._formatResult.bind(this),onSearchStart:function(){document.body.classList.add(o.A.CSS.IS_ACTIVE_SHADER),t.suggestionsTarget.classList.add("is-open"),t._getSuggestionsContainer().removeAttribute("aria-hidden")},onSelect:function(){},onHide:function(){document.querySelector(".m-mainnav__navigation-container .".concat(o.A.CSS.IS_ACTIVE_NAVITEM))||document.body.classList.remove(o.A.CSS.IS_ACTIVE_SHADER),t._hideLoader(),t.suggestionsTarget.classList.remove("is-open"),t._getSuggestionsContainer().setAttribute("aria-hidden",!0)},onSearchComplete:function(){return t._onSearchComplete()}})}},{key:"_beforeRender",value:function(t,e){this._hideLoader()}},{key:"_formatGroup",value:function(t,e){var r="";return void 0!==t.categoryName&&(r='<h3 class="category-title">'.concat(t.categoryName.charAt(0).toUpperCase()+t.categoryName.slice(1),"</h3>")),r}},{key:"_fetchApi",value:function(t,e){this._showLoader(),u().ajax({type:"GET",dataType:"json",url:this.data.get("apiurl"),data:{queryString:t}}).done(function(t){t.items&&t.items.length>0?(t.items.forEach(function(e,r){e.value||t.items.splice(r,1)}),t=t.items.sort(function(t,e){return t.categoryId<e.categoryId?1:t.categoryId>e.categoryId?-1:0}),e({suggestions:t})):e({suggestions:[]})})}},{key:"_formatResult",value:function(t,e){if(!e)return t.value;var r=this.suggestionTemplateTarget.innerHTML,n=this.resultTemplateTarget.innerHTML,o="("+u().Autocomplete.utils.escapeRegExChars(e.trim())+")";return"suggestion"===t.categoryId.toLowerCase()?r.interpolate({title:(0,i.z)(t.value).replace(new RegExp(o,"gi"),"<strong>$1</strong>")}):n.interpolate((0,i.SH)(t))}},{key:"_showLoader",value:function(){this.searchLoadingContainerTarget.classList.remove(o.A.CSS.IS_HIDDEN),this._getSuggestionsContainer().classList.add(o.A.CSS.IS_HIDDEN)}},{key:"_hideLoader",value:function(){this.searchLoadingContainerTarget.classList.add(o.A.CSS.IS_HIDDEN),this._getSuggestionsContainer().classList.remove(o.A.CSS.IS_HIDDEN)}},{key:"_getSuggestionsContainer",value:function(){return this.element.querySelector(".autocomplete-suggestions")}},{key:"_onSearchComplete",value:function(){var t=s(this._getSuggestionsContainer().children);this._getSuggestionsContainer().style.maxHeight=t&&t.length?t.map(function(t){var e=window.getComputedStyle(t);return["height","margin-top","margin-bottom"].map(function(t){return parseInt(e.getPropertyValue(t),10)}).reduce(function(t,e){return t+e})||0}).reduce(function(t,e){return t+e})+15+"px":"100vh"}}])}(n.xI);!function(t,e,r){(e=v(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}(m,"targets",["searchInput","suggestions","noSuggestionTemplate","suggestionTemplate","resultTemplate","searchLoadingContainer"])},92609:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return d}});r(52675),r(89463),r(2259),r(45700),r(28706),r(23792),r(94490),r(34782),r(54554),r(89572),r(62010),r(2892),r(40875),r(79432),r(26099),r(60825),r(84864),r(27495),r(38781),r(47764),r(25440),r(42762),r(50778),r(23500),r(62953);var n=r(13368),o=r(29808),i=r(18248),a=r(74692);function u(t){return u="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},u(t)}function c(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,y(n.key),n)}}function s(t,e,r){return e=f(e),function(t,e){if(e&&("object"==u(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,l()?Reflect.construct(e,r||[],f(t).constructor):e.apply(t,r))}function l(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(l=function(){return!!t})()}function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}
2function p(t,e){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},p(t,e)}function h(t,e,r){return(e=y(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function y(t){var e=function(t,e){if("object"!=u(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==u(e)?e:e+""}var d=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return h(t=s(this,e,[].concat(n)),"_searchOverlayIsActive",!1),h(t,"_storage",window.localStorage),h(t,"_storageKey","recent_searches"),h(t,"_recentSearches",[]),h(t,"_maxRecentSearches",5),h(t,"_activeSearchElement",null),h(t,"_savedQuery",""),h(t,"_replacementString","<strong>$&</strong>"),t}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&p(t,e)}(e,t),function(t,e,r){return e&&c(t.prototype,e),r&&c(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"connect",value:function(){var t=(0,o.pg)("q");t&&(this.searchInputTarget.value=decodeURI(t.replace(/\+/g," "))),this._recentSearches=this._getRecentSearches(),this._renderRecentSearches()}},{key:"handleSearchFocus",value:function(){this._searchOverlayIsActive||this._openOverlay()}},{key:"_openOverlay",value:function(){this._searchOverlayIsActive=!0,this.overlayTarget.classList.add(i.A.CSS.IS_ACTIVE),this._addEventListeners(),document.querySelector("main").classList.add(i.A.CSS.IS_BLURRY),document.querySelector("footer").classList.add(i.A.CSS.IS_BLURRY)}},{key:"_addEventListeners",value:function(){this._handleOverlayKeydown=this._handleOverlayKeydown.bind(this),window.addEventListener("keydown",this._handleOverlayKeydown)}},{key:"_removeEventListeners",value:function(){window.removeEventListener("keydown",this._handleOverlayKeydown)}},{key:"_handleOverlayKeydown",value:function(t){"Escape"===t.key?this.closeOverlay():"ArrowUp"===t.key?this._handleArrowClick(t,"up"):"ArrowDown"===t.key&&this._handleArrowClick(t,"down")}},{key:"closeOverlay",value:function(){this._searchOverlayIsActive=!1,this.overlayTarget.classList.remove(i.A.CSS.IS_ACTIVE),this.searchInputTarget.value="",this.searchLoadingContainerTarget.classList.add(i.A.CSS.IS_HIDDEN),this.searchItemsTarget.innerHTML="",this.searchInputTarget.blur(),this._removeEventListeners(),this._recentSearches.length>0&&this.recentSearchesContainerTarget.classList.remove(i.A.CSS.IS_HIDDEN),document.querySelector("main").classList.remove(i.A.CSS.IS_BLURRY),document.querySelector("footer").classList.remove(i.A.CSS.IS_BLURRY)}},{key:"clearRecentSearches",value:function(){this._storage.removeItem(this._storageKey),this._recentSearches=[],this.recentSearchesTarget.innerHTML="",this.recentSearchesContainerTarget.classList.add(i.A.CSS.IS_HIDDEN)}},{key:"_handleArrowClick",value:function(t,e){if(t.preventDefault(),this._activeSearchElement){this._activeSearchElement.classList.remove(i.A.CSS.IS_ACTIVE);var r=this._getNextListItem(this._activeSearchElement,e);r&&r.classList.contains("m-searchinputnew__search-item-headline")&&(r=this._getNextListItem(r,e)),this._activeSearchElement=r}else if("down"===e){this._savedQuery=this.searchInputTarget.value;var n=this.searchItemsTarget.children[0]||this.recentSearchesTarget.children[0]||null;this._activeSearchElement=n}this._activeSearchElement&&this._activeSearchElement.classList.add(i.A.CSS.IS_ACTIVE),this._updateSearchInput()}},{key:"_getNextListItem",value:function(t,e){return"up"===e?t.previousElementSibling:"down"===e?t.nextElementSibling||t:void console.error("Direction must be set in function: getNextListItem")}},{key:"_updateSearchInput",value:function(){this._activeSearchElement&&!this._activeSearchElement.href&&"false"==this._activeSearchElement.dataset.lastItem?(console.log(this._savedQuery,this._activeSearchElement),this.searchInputTarget.value=this._activeSearchElement.dataset.originalTitle):this.searchInputTarget.value=this._savedQuery}},{key:"handleSearchInput",value:function(){var t=this.searchInputTarget.value;this._searchOverlayIsActive||this._openOverlay(),this._activeSearchElement&&(this._activeSearchElement.classList.remove(i.A.CSS.IS_ACTIVE),this._activeSearchElement=null),t.length>0?(this.recentSearchesContainerTarget.classList.add(i.A.CSS.IS_HIDDEN),this._fetchData(this.searchInputTarget.value),this.searchLoadingContainerTarget.classList.remove(i.A.CSS.IS_HIDDEN),this.searchItemsTarget.classList.add(i.A.CSS.IS_HIDDEN)):(this.searchLoadingContainerTarget.classList.add(i.A.CSS.IS_HIDDEN),this.searchItemsTarget.classList.add(i.A.CSS.IS_HIDDEN),this.searchItemsTarget.innerHTML="",this._recentSearches.length>0&&this.recentSearchesContainerTarget.classList.remove(i.A.CSS.IS_HIDDEN))}},{key:"_fetchData",value:function(t){var e=this;a.ajax({type:"GET",dataType:"json",url:this.data.get("apiurl"),data:{queryString:t}}).done(function(t){if(t.items&&t.items.length>0){var r=[],n=[],o=[];
2t.items.forEach(function(t){"autocomplete"===t.categoryId?r.push(t):"suggestion"===t.categoryId?n.push(t):"result"===t.categoryId&&o.push(t)}),e._renderSearchResults({autocompletes:r,suggestions:n,results:o})}})}},{key:"handleSubmit",value:function(t){t.preventDefault(),0===this.searchInputTarget.value.length?(this.searchInputTarget.focus(),this.handleSearchFocus()):(this._saveSearchQuery(this.searchInputTarget.value.trim()),this._activeSearchElement&&this._activeSearchElement.href?window.location.href=this._activeSearchElement.href:this.element.submit())}},{key:"_saveSearchQuery",value:function(t){this._recentSearches.indexOf(t)>-1&&this._recentSearches.splice(this._recentSearches.indexOf(t),1),this._recentSearches.push(t),this._recentSearches.length>this._maxRecentSearches&&this._recentSearches.splice(0,1),this._storage.setItem(this._storageKey,JSON.stringify({items:this._recentSearches}))}},{key:"_getRecentSearches",value:function(){var t=this._storage.getItem(this._storageKey);if(t)try{return JSON.parse(t).items}catch(e){console.error(e,t)}return[]}},{key:"_renderRecentSearches",value:function(){if(0===this.recentSearchesTarget.innerHTML.length){var t=this.recentSearchTemplateTarget.innerHTML,e="";this._recentSearches.length>0?(this._recentSearches.slice().reverse().forEach(function(r){e+=t.interpolate({title:r.trim()})}),this.recentSearchesTarget.innerHTML=e):this.recentSearchesContainerTarget.classList.add(i.A.CSS.IS_HIDDEN)}}},{key:"handleSearchItemMouseover",value:function(t){this._activeSearchElement=t.currentTarget,this._activeSearchElement.parentElement.children.forEach(function(t){return t.classList.remove(i.A.CSS.IS_ACTIVE)}),this._activeSearchElement.classList.add(i.A.CSS.IS_ACTIVE)}},{key:"handleSearchItemMouseleave",value:function(t){this._activeSearchElement&&(this._activeSearchElement.classList.remove(i.A.CSS.IS_ACTIVE),this._activeSearchElement=null)}},{key:"handleSearchItemClick",value:function(t){this.searchInputTarget.value=t.currentTarget.innerHTML.trim(),this.handleSubmit(t)}},{key:"applySearchItem",value:function(t){t.preventDefault();var e=t.currentTarget.parentElement.querySelector("span").innerHTML.trim();e+=" ",this.searchInputTarget.value=e,this.handleSearchInput(),this.searchInputTarget.focus()}},{key:"_renderSearchResults",value:function(t){var e=this,r=t.autocompletes,n=t.results,o=t.suggestions,a="",u=this.searchInputTarget.value,c=new RegExp(u,"i");r.length>0&&r.forEach(function(t){a+=e.getRenderedSearchItem(t,c)}),o.length>0&&o.forEach(function(t){a+=e.getRenderedSearchItem(t,c)}),n.length>0&&(a+=this.getRenderedSearchItemHeadline("result"),n.forEach(function(t){a+=e.getRenderedSearchResult(t,c)}),a+=this.getRenderedSearchItem({categoryId:"suggestion",categoryName:"Suggestion",value:this.searchItemHeadlineTemplateTarget.dataset.showAllHeadline,lastItem:!0},"")),this.searchItemsTarget.innerHTML=a,this.searchItemsTarget.classList.remove(i.A.CSS.IS_HIDDEN),this.searchLoadingContainerTarget.classList.add(i.A.CSS.IS_HIDDEN)}},{key:"getRenderedSearchItemHeadline",value:function(t){var e="".concat(t,"Headline");return this.searchItemHeadlineTemplateTarget.innerHTML.interpolate({title:this.searchItemHeadlineTemplateTarget.dataset[e]})}},{key:"getRenderedSearchItem",value:function(t,e){return this.suggestionTemplateTarget.innerHTML.interpolate({title:t.value.replace(e,this._replacementString),originalTitle:t.value,lastItem:t.lastItem||!1})}},{key:"getRenderedSearchResult",value:function(t,e){return this.resultTemplateTarget.innerHTML.interpolate({link:t.link,title:t.title.text.replace(e,this._replacementString),originalTitle:t.title.text,description:t.description.replace(e,this._replacementString),imageUrl:t.image.name})}},{key:"handleClear",value:function(){this.searchInputTarget.value="",this.handleSearchInput()}}])}(n.xI);h(d,"targets",["searchInput","overlay","recentSearchesContainer","recentSearches","recentSearchTemplate","recentSearchQuery","searchItems","searchItemHeadlineTemplate","suggestionTemplate","resultTemplate","searchLoadingContainer"])},88500:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return y}});r(52675),r(89463),r(2259),r(45700),r(23792),r(89572),r(62010),r(2892),r(40875),r(26099),r(58940),r(60825),r(47764),r(23500),r(62953);var n=r(56690),o=r(18248),i=r(74692),a=r.n(i);function u(t){return u="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},u(t)}function c(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,h(n.key),n)}}function s(t,e,r){return e=f(e),function(t,e){if(e&&("object"==u(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,l()?Reflect.construct(e,r||[],f(t).constructor):e.apply(t,r))}function l(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(l=function(){return!!t})()}function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}
2function p(t,e){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},p(t,e)}function h(t){var e=function(t,e){if("object"!=u(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==u(e)?e:e+""}var y=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),s(this,e,arguments)}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&p(t,e)}(e,t),function(t,e,r){return e&&c(t.prototype,e),r&&c(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"activeFilterLabels",get:function(){var t=[];return this.inputTargets.forEach(function(e){if(!0===e.checked){var r=e.closest(".a-checkbox");if(r){var n=r.querySelector("label").cloneNode(!0);n.querySelector("span")&&n.querySelector("span").remove(),n=n.innerHTML;var o="";"searchfiltername"in e.dataset==!0&&(o=e.dataset.searchfiltername),t.push({label:n,id:e.id,searchfiltername:o})}else console.log("NO PARENT",e)}}),t}},{key:"submitFilter",value:function(t){var e=[];this.inputTargets.forEach(function(t){!0===t.checked&&e.push(t.value)}),this._emit(this.element.dataset.name,e)}},{key:"updateFilters",value:function(t){var e=this;t.forEach(function(t){if(t.hasOwnProperty("id")&&t.hasOwnProperty("count")){var r=e.element.querySelector('[value="'.concat(t.id,'"')),n=r.closest(".a-checkbox");n&&(parseInt(t.count)>0?n.classList.remove(o.A.CSS.IS_HIDDEN):(r.checked=!1,n.classList.add(o.A.CSS.IS_HIDDEN)),n.querySelector(".js-m-searchoptionsfilter__filter-item-count").innerHTML="(".concat(t.count,")"))}else e.element.querySelector('[value="'.concat(t,'"')).checked=!0})}},{key:"removeFilter",value:function(t){a()("#".concat(t)).prop("checked",!1),this.submitFilter()}}])}(n.A);!function(t,e,r){(e=h(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}(y,"targets",["input"])},3933:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return l}});r(52675),r(89463),r(2259),r(45700),r(23792),r(89572),r(62010),r(2892),r(40875),r(26099),r(60825),r(47764),r(62953);function n(t){return n="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},n(t)}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,s(n.key),n)}}function i(t,e,r){return e=u(e),function(t,e){if(e&&("object"==n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,a()?Reflect.construct(e,r||[],u(t).constructor):e.apply(t,r))}function a(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(a=function(){return!!t})()}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}function c(t,e){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},c(t,e)}function s(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var l=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),i(this,e,arguments)}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&c(t,e)}(e,t),function(t,e,r){return e&&o(t.prototype,e),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"submitFilter",value:function(t){var e=this.inputTarget.options[this.inputTarget.selectedIndex],r=!(!e||e.disabled)&&e.value;this._emit(this.element.dataset.name,r)}},{key:"updateFilters",value:function(t){t&&(this.inputTarget.value=t)}}])}(r(56690).A);!function(t,e,r){(e=s(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}(l,"targets",["input"])},33567:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return l}});r(52675),r(89463),r(2259),r(45700),r(23792),r(89572),r(62010),r(2892),r(40875),r(26099),r(60825),r(47764),r(62953);function n(t){return n="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},n(t)}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,s(n.key),n)}}function i(t,e,r){return e=u(e),function(t,e){if(e&&("object"==n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,a()?Reflect.construct(e,r||[],u(t).constructor):e.apply(t,r))}function a(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(a=function(){return!!t})()}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}
2function c(t,e){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},c(t,e)}function s(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var l=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),i(this,e,arguments)}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&c(t,e)}(e,t),function(t,e,r){return e&&o(t.prototype,e),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"activeFilterLabels",get:function(){return this.inputTarget.value?[{label:this.inputTarget.value,id:this.inputTarget.id}]:[]}},{key:"submitFilter",value:function(t){t&&13!==t.which&&"click"!==t.type||this._emit(this.inputTarget.name,this.inputTarget.value)}},{key:"updateFilters",value:function(t){t&&(this.inputTarget.value=t)}},{key:"removeFilter",value:function(t){this.inputTarget.value="",this.submitFilter()}}])}(r(56690).A);!function(t,e,r){(e=s(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}(l,"targets",["template","input"])},46431:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return h}});r(52675),r(89463),r(2259),r(45700),r(23792),r(89572),r(36033),r(2892),r(40875),r(26099),r(60825),r(47764),r(23500),r(62953);var n=r(13368),o=r(18248);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},i(t)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,p(n.key),n)}}function u(t,e,r){return e=s(e),function(t,e){if(e&&("object"==i(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,c()?Reflect.construct(e,r||[],s(t).constructor):e.apply(t,r))}function c(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(c=function(){return!!t})()}
2function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}function l(t,e){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},l(t,e)}function f(t,e,r){return(e=p(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function p(t){var e=function(t,e){if("object"!=i(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==i(e)?e:e+""}var h=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),u(this,e,arguments)}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}(e,t),function(t,e,r){return e&&a(t.prototype,e),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"connect",value:function(){this.closeSelectionMenu()}},{key:"openSelectionMenu",value:function(){this.__updateActionButtonsVisibility(!0),this.__updateMenuItemsVisibility(!0)}},{key:"closeSelectionMenu",value:function(){this.__updateActionButtonsVisibility(!1),this.__updateMenuItemsVisibility(!1)}},{key:"__updateActionButtonsVisibility",value:function(t){t?(this.closeButtonTarget.classList.remove(o.A.CSS.IS_HIDDEN),this.openButtonTarget.classList.add(o.A.CSS.IS_HIDDEN)):(this.closeButtonTarget.classList.add(o.A.CSS.IS_HIDDEN),this.openButtonTarget.classList.remove(o.A.CSS.IS_HIDDEN))}},{key:"__updateMenuItemsVisibility",value:function(t){var r=this.menuItemsTarget.querySelectorAll(".m-selectionmenu__menuItem"),n=e.ITEM_POSITIONS_FOR_NUMBER_OF_ITEMS.get(r.length);t?(this.menuItemsTarget.querySelectorAll(".m-selectionmenu__menuItem").forEach(function(t,o){var i="--angle:"+n[o]+"deg;";r.length>=5?t.setAttribute("style","--radius: 160px; "+i):t.setAttribute("style","--radius: 120px; "+i),t.classList.add(e.MENU_ITEM_POSITION_CLASS)}),this.closeOverlayTarget.classList.remove(o.A.CSS.IS_HIDDEN)):(this.menuItemsTarget.querySelectorAll(".m-selectionmenu__menuItem").forEach(function(t,r){t.classList.remove(e.MENU_ITEM_POSITION_CLASS)}),this.closeOverlayTarget.classList.add(o.A.CSS.IS_HIDDEN))}}])}(n.xI);f(h,"targets",["menuItems","closeButton","openButton","closeOverlay"]),f(h,"MENU_ITEM_POSITION_CLASS","m-selectionmenu__menuItem--positioning"),f(h,"ITEM_POSITIONS_FOR_NUMBER_OF_ITEMS",new Map([[1,["180"]],[2,["205","150"]],[3,["225","180","135"]],[4,["245","200","160","115"]],[5,["270","225","180","135","90"]],[6,["270","234","198","162","126","90"]],[7,["270","240","210","180","150","120","90"]]]))},26519:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return d}});r(52675),r(89463),r(2259),r(45700),r(23792),r(89572),r(2892),r(40875),r(26099),r(60825),r(47764),r(23500),r(62953);var n=r(13368),o=r(74692),i=r.n(o),a=r(18248),u=r(80063).i;function c(t){return c="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},c(t)}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,y(n.key),n)}}function l(t,e,r){return e=p(e),function(t,e){if(e&&("object"==c(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,f()?Reflect.construct(e,r||[],p(t).constructor):e.apply(t,r))}function f(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(f=function(){return!!t})()}
2function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},p(t)}function h(t,e){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},h(t,e)}function y(t){var e=function(t,e){if("object"!=c(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==c(e)?e:e+""}var d=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),l(this,e,arguments)}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&h(t,e)}(e,t),function(t,e,r){return e&&s(t.prototype,e),r&&s(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"connect",value:function(){this._initAccordion()}},{key:"_initAccordion",value:function(){this.accordion=new u.Accordion(i()(this.element),{multiExpand:!0,allowAllClosed:!0})}},{key:"switchVersion",value:function(t){var e=this.selectTarget.options[this.selectTarget.selectedIndex].value;this.sectionTargets.forEach(function(t){return t.classList.remove(a.A.CSS.IS_ACTIVE)}),this.element.querySelector('[data-section="'.concat(e,'"]')).classList.add(a.A.CSS.IS_ACTIVE)}}])}(n.xI);!function(t,e,r){(e=y(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}(d,"targets",["select","section"])},58899:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return S}});r(52675),r(89463),r(2259),r(45700),r(28706),r(23418),r(23792),r(34782),r(89572),r(62010),r(2892),r(40875),r(79432),r(26099),r(58940),r(3362),r(60825),r(27495),r(38781),r(47764),r(25440),r(50778),r(23500),r(62953),r(3296),r(27208),r(48408);var n=r(13368),o=r(18248),i=r(75940),a=r(29808),u=r(74692),c=r.n(u),s=r(80063).i;function l(t){return l="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},l(t)}function f(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return p(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?p(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}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 i,a=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}function p(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function h(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,g(n.key),n)}}function y(t,e,r){return e=v(e),function(t,e){if(e&&("object"==l(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,d()?Reflect.construct(e,r||[],v(t).constructor):e.apply(t,r))}function d(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(d=function(){return!!t})()}function v(t){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},v(t)}
2function m(t,e){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},m(t,e)}function b(t,e,r){return(e=g(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function g(t){var e=function(t,e){if("object"!=l(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==l(e)?e:e+""}var S=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return b(t=y(this,e,[].concat(n)),"rotateIconInAction",!1),b(t,"resultsPerPage",10),b(t,"totalResultCount",0),b(t,"trNotHidden","tr:not(.is-hidden)"),b(t,"_startZipDownload",function(t,r){var n=document.createElement("a");n.href=window.URL.createObjectURL(new Blob([t],{type:"application/octet-stream"})),n.download=e.VIEGA_CERTIFICATE_DOWNLOAD_FILENAME,n.click(),window.URL.revokeObjectURL(n.href),n.remove(),this._updateDownloadState(!1,r)}),t}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&m(t,e)}(e,t),function(t,e,r){return e&&h(t.prototype,e),r&&h(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"initialize",value:function(){this.hasTableheadTarget&&this.hasTableheadFixedTarget&&(c()(window).on("viega:app:scroll",this._onVerticalScroll.bind(this)),window.addEventListener("resize",this._setTableheadCellWidth.bind(this))),this.hasTableTarget&&this.tableTarget.dataset.resultsperpage&&(this.resultsPerPage=this.tableTarget.dataset.resultsperpage)}},{key:"connect",value:function(){var t=this;this.header=document.querySelector(".o-header"),Promise.resolve().then(function(){t.hasTablebodyTarget&&t.tableTarget.dataset.paginate&&"true"==t.tableTarget.dataset.paginate&&(t.subscribeToPagination(),t.totalResultCount=t.tablebodyTarget.querySelectorAll(t.trNotHidden).length,t._updatePagination(t.totalResultCount,1)),t.hasOptionsTarget&&t.changeFormat(t.optionsTarget.value),t.tableTarget.classList.contains(o.A.CSS.IS_SORTABLE)&&t._sortTable(),t.hasTableheadTarget&&t.hasTableheadFixedTarget&&t._setTableheadCellWidth()}),null!=this.watchlistData&&i.l.subscribe(this.updateState.bind(this))}},{key:"_sortTable",value:function(){var t,e;(t=this.tableTarget.querySelector("thead"))&&(e=t.querySelectorAll("th"))&&(e.forEach(function(t){t.classList.contains(o.A.CSS.IS_SORTABLE)&&(t.innerHTML="<a class='m-table__linksort' href='javascript:void(0);'>"+t.innerHTML+"</a>")}),t.addEventListener("click",this._sortTableFunction(this.tableTarget)))}},{key:"_sortTableFunction",value:function(t){var e=this;return function(r){"a"==r.target.tagName.toLowerCase()&&((0,a.sN)(t,(0,a.lZ)(r.target.parentNode)),r.preventDefault(),e.tableTarget.dataset.paginate&&"true"==e.tableTarget.dataset.paginate&&e.handlePaginationClick(e.getActivePageNumber()))}}},{key:"subscribeToPagination",value:function(){var t=this.getPaginationController();t&&(t.resultsPerPage=this.resultsPerPage,t.insertPageParam=!1,t.subscribe(this.handlePaginationClick.bind(this)));var e=this.getTopPaginationController();e&&(e.resultsPerPage=this.resultsPerPage,e.insertPageParam=!1,e.subscribe(this.handlePaginationClick.bind(this)))}},{key:"getActivePageNumber",value:function(){var t=this.getPaginationController();return t?t.activePageNumber:1}},{key:"getPaginationController",value:function(){return this.application.getControllerForElementAndIdentifier(this.element.querySelectorAll(".m-pagination").item(1),"m-pagination")}},{key:"getTopPaginationController",value:function(){return this.application.getControllerForElementAndIdentifier(this.element.querySelectorAll(".m-pagination").item(0),"m-pagination")}},{key:"_updatePagination",value:function(t,e){var r=this.getPaginationController();r&&(r.totalResultCount=parseInt(t),1===e&&r.goTo(1,!1,!1));var n=this.getTopPaginationController();n&&(n.totalResultCount=parseInt(t),1===e&&n.goTo(1,!1,!1))}},{key:"handlePaginationClick",value:function(t){(t+=-1)<0&&(t=0);var e=this.tablebodyTarget.querySelectorAll(this.trNotHidden),r=t*Number(this.resultsPerPage),n=r+Number(this.resultsPerPage);if(e){var o=Array.from(e).slice(r,n);e.forEach(function(t){t.style.display="none"}),o.forEach(function(t){t.style.display="table-row"})}this._setNotClickedPagination()}},{key:"_setTableheadCellWidth",value:function(){var t=this.tableheadTarget.querySelectorAll("th"),e=this.tableheadFixedTarget.querySelectorAll("th");t.length&&e.length&&t.forEach(function(t,r){var n=t.getBoundingClientRect().width;e[r].style.minWidth=n+"px"}),this.onHorizontalScroll()}},{key:"_provideLastRowRect",value:function(){var t;if(this.tableTarget.dataset.paginate){var e=this.element.querySelectorAll('.m-table__body-row[style="display: table-row;"]');if(e.length>=1)t=e.item(e.length-1).getBoundingClientRect();else t=this.element.querySelector(".m-table__head-row:last-child").getBoundingClientRect()}else t=this.element.querySelector(".m-table__body-row:last-child").getBoundingClientRect();return t}},{key:"_onVerticalScroll",value:function(t,e){var r=document.body.getBoundingClientRect(),n=this.tableTarget.getBoundingClientRect(),i=this._provideLastRowRect(),a=n.top-r.top,u=1.5*(i.top-i.height);this.header&&this.header.classList.contains(o.A.CSS.IS_SCROLLUP)&&!document.body.classList.contains(o.A.CSS.HEADER_HIDDEN)&&(s.MediaQuery.atLeast("xmedium")?(a-=o.A.CSS.HEADER_HEIGHT,u-=o.A.CSS.HEADER_HEIGHT):(a-=o.A.CSS.HEADER_HEIGHT_MOBILE,u-=o.A.CSS.HEADER_HEIGHT_MOBILE)),document.querySelectorAll(".m-contentnav").length&&(a-=o.A.CSS.CONTENTNAV_HEIGHT,u-=o.A.CSS.CONTENTNAV_HEIGHT),e.newY>a&&u>0?(this.element.classList.add(o.A.CSS.IS_STICKY),e.newY<e.oldY&&this.tableheadFixedTarget.classList.add(o.A.CSS.HAS_TRANSITION)):(this.element.classList.remove(o.A.CSS.IS_STICKY),this.tableheadFixedTarget.classList.remove(o.A.CSS.HAS_TRANSITION)),this._setTableheadCellWidth()}},{key:"onHorizontalScroll",value:function(t){if(this.element.classList.contains(o.A.CSS.IS_STICKY)){var e=(this.tablewrapperTarget.getBoundingClientRect().x||this.tablewrapperTarget.offsetLeft)-this.tablewrapperTarget.scrollLeft;this.tableheadFixedTarget.style.left="".concat(e,"px")}else this.tableheadFixedTarget.style.left=0}},{key:"handleFilter",value:function(t){var e=t.currentTarget.value,r=this.tableTarget.querySelector("thead"),n=r.querySelectorAll("th");if(e=e.toUpperCase().replace(/\s/g,""),r&&n&&null!==e&&""!==e){var o=Array.from(n).indexOf(r.querySelector(".has-filter")),i=this.tablebodyTarget.querySelectorAll("tr");i&&o>-1&&(this.filterTableRows(i,e,o),this.updatePaginationAfterFilter())}}},{key:"filterTableRows",value:function(t,e,r){var n=0;t.forEach(function(t){var i=t.getElementsByTagName("td")[r];if(t.classList.remove(o.A.CSS.IS_EVEN),t.classList.remove(o.A.CSS.IS_ODD),i){var a=i.textContent||i.innerText;a=a.toUpperCase().replace(/\s/g,""),n%2==0?t.classList.add(o.A.CSS.IS_EVEN):t.classList.add(o.A.CSS.IS_ODD),a.indexOf(e)>-1||""===e||0==e?(t.classList.remove(o.A.CSS.IS_HIDDEN),t.style.display="table-row",n++):t.classList.add(o.A.CSS.IS_HIDDEN)}})}},{key:"updatePaginationAfterFilter",value:function(){if(this.tableTarget.dataset.paginate&&"true"==this.tableTarget.dataset.paginate){var t=this.tablebodyTarget.querySelectorAll(this.trNotHidden);t&&t.length&&(this.totalResultCount=t.length),this._updatePagination(this.totalResultCount,1),this.handlePaginationClick(1)}}},{key:"handleSelection",value:function(t){this.changeFormat(t.currentTarget.value)}},{key:"changeFormat",value:function(t){this._swapContents(t,this.sizeTargets,"innerHTML"),this._swapContents(t,this.downloadTargets,"href"),t&&this.actionbuttonTargets&&this._updateWatchlistAttribute(t,this.actionbuttonTargets)}},{key:"_swapContents",value:function(t,e,r){if(t&&e){var n,o=f(e);try{for(o.s();!(n=o.n()).done;){var i=n.value;i.dataset[t]&&(i[r]=i.dataset[t])}}catch(t){o.e(t)}finally{o.f()}}}},{key:"_updateWatchlistAttribute",value:function(t,e){var r,n=f(e);try{for(n.s();!(r=n.n()).done;){var o=r.value;if(o.dataset[t]){var i=void 0;o.dataset.aActionbuttonWatchlistTemplate?i=o.dataset.aActionbuttonWatchlistTemplate:(i=o.dataset.aActionbuttonWatchlist,o.dataset.aActionbuttonWatchlistTemplate=i);var a=JSON.parse(o.dataset[t]);i=(i=i.replace(/\$\{format\}/gm,t.toUpperCase())).replace(/\$\{size\}/gm,a.size||""),(i=JSON.parse(i)).link=a.link||"",this.setActionButtonController(i,o)}}}catch(t){n.e(t)}finally{n.f()}}},{key:"setActionButtonController",value:function(t,e){var r=this.application.getControllerForElementAndIdentifier(e,"a-actionbutton");r&&(r.watchlistData=t)}},{key:"addToWatchlist",value:function(){var t=this.element.querySelectorAll('.a-quantity input[type="number"]');if(t.length>0){var e,r=f(t);try{for(r.s();!(e=r.n()).done;){var n=e.value;try{var o=JSON.parse(n.dataset.watchlist);parseInt(o.quantity)>0&&i.l.save(o)}catch(t){}}}catch(t){r.e(t)}finally{r.f()}}}},{key:"showLightbox",value:function(t){var e=t.currentTarget.dataset.lightboxid,r=this._collectCorrespondingTemplates(e),n=(0,a.Pl)();if(n){var o=document.createElement("div");o.innerHTML=r,n.insertNode(o),n.open()}}},{key:"_collectCorrespondingTemplates",value:function(t){return document.querySelector('[data-lightboxid="'.concat(t,'"] script')).innerHTML}},{key:"_setNotClickedPagination",value:function(){var t=this.getPaginationController(),e=this.getTopPaginationController();if(t&&e){if(t.isClicked){e.goTo(t.activePageNumber,!0,!1);var r=this._getScrollToHeadlineElement();r&&r.scrollIntoView()}else e.isClicked&&t.goTo(e.activePageNumber,!0,!1);t.isClicked=!1,e.isClicked=!1}}},{key:"_getScrollToHeadlineElement",value:function(){var t=this.element.parentElement;return t&&t.previousElementSibling?t.previousElementSibling.previousElementSibling:null}},{key:"handleMultipleDownloads",value:function(){if(this.hasDownloadAllTarget&&!this.rotateIconInAction){var t=this.downloadAllTargets[1],r=t.dataset.serviceurl;if(r){var n=t.querySelector(e.LOTTIE_CONTAINER_ID),o=JSON.parse(t.dataset.rotateanimationmodel),i=this,a={container:n,renderer:"svg",loop:!0,autoplay:!0,animationData:o,rendererSettings:{className:e.LOTTIE_ICON_CLASS}};this._updateDownloadState(!0,t),lottie.loadAnimation(a),c().ajax({type:"POST",url:r,contentType:"application/json; charset=utf-8",data:JSON.stringify({filter:this._provideFilterOption()}),xhrFields:{responseType:"blob"},success:function(e){i._startZipDownload(e,t)},error:function(){i._updateDownloadState(!1,t)}})}}}},{key:"_updateDownloadState",value:function(t,r){var n=r.querySelector(e.DOWNLOAD_ALL_ICON_CLASS),i=r.querySelector(e.LOTTIE_CONTAINER_ID);t?(i.classList.remove(o.A.CSS.IS_HIDDEN),n.classList.add(o.A.CSS.IS_HIDDEN),this.rotateIconInAction=!0):(n.classList.remove(o.A.CSS.IS_HIDDEN),n.style.display="inline-block",i.querySelector("."+e.LOTTIE_ICON_CLASS).remove(),this.rotateIconInAction=!1)}},{key:"_provideFilterOption",value:function(){return this.hasOptionsTarget?this.optionsTarget.value:e.DOWNLOAD_ALL_FILTER_VALUE}}])}(n.xI);b(S,"targets",["lightboxTemplate","tablewrapper","table","tablehead","tablebody","tableheadFixed","tablepagination","options","size","download","actionbutton","input","paginationContainer","paginationTemplate","downloadAll"]),b(S,"VIEGA_CERTIFICATE_DOWNLOAD_FILENAME","viega_certificate_download.zip"),b(S,"DOWNLOAD_ALL_FILTER_VALUE","0"),b(S,"DOWNLOAD_ALL_ICON_CLASS",".a-svgicon--download"),b(S,"LOTTIE_CONTAINER_ID","#m-table__lottie-container"),b(S,"LOTTIE_ICON_CLASS","m-table__lottie-icon")},51309:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return y}});r(52675),r(89463),r(2259),r(45700),r(28706),r(23418),r(23792),r(34782),r(89572),r(62010),r(2892),r(40875),r(79432),r(26099),r(60825),r(27495),r(38781),r(47764),r(25440),r(62953);var n=r(13368),o=r(22849);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},i(t)}function a(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return u(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}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 i,a=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){c=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(c)throw i}}}}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function c(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,h(n.key),n)}}function s(t,e,r){return e=f(e),function(t,e){if(e&&("object"==i(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,l()?Reflect.construct(e,r||[],f(t).constructor):e.apply(t,r))}function l(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(l=function(){return!!t})()}function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}
2function p(t,e){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},p(t,e)}function h(t){var e=function(t,e){if("object"!=i(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==i(e)?e:e+""}var y=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return function(t,e,r){(e=h(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}(t=s(this,e,[].concat(n)),"resizeCallIndex",0),t}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&p(t,e)}(e,t),function(t,e,r){return e&&c(t.prototype,e),r&&c(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"connect",value:function(){var t=this;new ResizeObserver(function(e){var r,n=a(e);try{for(n.s();!(r=n.n()).done;){var o=r.value;t.resizeCallIndex++,o.target.querySelector("a.m-teaserblog__standalone")?t.resize(!0):t.resize(!1)}}catch(t){n.e(t)}finally{n.f()}}).observe(this.element)}},{key:"disconnect",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"resize",value:function(t){var e=this.element.querySelector(".m-teaserblog__image-container"),r=this.element.querySelector(".m-teaserblog__sticker-container"),n=this.element.querySelector(".m-teaserblog__bookmark-container"),o=window.matchMedia("(max-width: 767px)").matches;this._setImageHeightProperty(e),this._setStickerContainerHeight(r,o),n&&this.element.style.setProperty("--bookmark-width","".concat(n.offsetWidth,"px")),this.element.classList.toggle("m-teaserblog--standalone",t&&!o)}},{key:"_setStickerContainerHeight",value:function(t,e){if(t){var r,n,o=t.offsetHeight,i=this._getResultPosition();if(null!=this&&null!==(r=this.element)&&void 0!==r&&r.parentElement.classList.contains("o-lightsearch__search-results")&&null!=this&&null!==(n=this.element)&&void 0!==n&&null!==(n=n.parentElement)&&void 0!==n&&n.style){i&&1===i&&1===this.resizeCallIndex&&this.element.parentElement.style.setProperty("--sticker-height","0px");var a=this.element.parentElement.style.getPropertyValue("--sticker-height").replace("px","");e?(this.element.parentElement.style.removeProperty("--sticker-height"),this.element.style.setProperty("--sticker-height","".concat(o,"px"))):(this.element.style.removeProperty("--sticker-height"),o>a&&this.element.parentElement.style.setProperty("--sticker-height","".concat(o,"px")))}else this.element.parentElement.style.removeProperty("--sticker-height"),this.element.style.setProperty("--sticker-height","".concat(o,"px"))}}},{key:"_setImageHeightProperty",value:function(t){if(t){var e,r,n=t.offsetHeight;if(null!=this&&null!==(e=this.element)&&void 0!==e&&e.parentElement.classList.contains("o-lightsearch__search-results")&&null!=this&&null!==(r=this.element)&&void 0!==r&&null!==(r=r.parentElement)&&void 0!==r&&r.style){var o=this.element.parentElement.style.getPropertyValue("--fallback-image-height");if(n>25&&n!==o)this.element.style.setProperty("--teaser-image-height","".concat(n,"px")),this.element.parentElement.style.setProperty("--fallback-image-height","".concat(n,"px"));else{var i=this.element.querySelector("div.m-teaserblog__image-container");i&&(i.style.height="".concat(o)),this.element.style.setProperty("--teaser-image-height","".concat(o))}}else this.element.parentElement.style.removeProperty("--teaser-image-height"),this.element.style.setProperty("--teaser-image-height","".concat(n,"px"))}}},{key:"_getResultPosition",value:function(){var t=9,e=this.element.querySelector("a.m-teaserblog__link");if(e){var r=e.getAttribute(o.n4);if(r)try{var n=e.getAttribute(o.QV),i=JSON.parse(r);i&&n&&(t=i[n]["xdm:index"])}catch(e){t=5}}return t}}])}(n.xI)},70531:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return l}});r(52675),r(89463),r(2259),r(45700),r(23792),r(89572),r(2892),r(40875),r(26099),r(60825),r(47764),r(62953);function n(t){return n="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},n(t)}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,s(n.key),n)}}function i(t,e,r){return e=u(e),function(t,e){if(e&&("object"==n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,a()?Reflect.construct(e,r||[],u(t).constructor):e.apply(t,r))}function a(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(a=function(){return!!t})()}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}
2function c(t,e){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},c(t,e)}function s(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var l=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),i(this,e,arguments)}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&c(t,e)}(e,t),function(t,e,r){return e&&o(t.prototype,e),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e)}(r(13368).xI);!function(t,e,r){(e=s(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}(l,"targets",[])},76767:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return m}});r(52675),r(89463),r(2259),r(45700),r(23418),r(74423),r(23792),r(34782),r(89572),r(62010),r(2892),r(40875),r(26099),r(60825),r(27495),r(38781),r(21699),r(47764),r(62953);var n=r(13368),o=r(18248),i=r(60710),a=r(29808),u=r(22849);function c(t){return c="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},c(t)}function s(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return l(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}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 i,a=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function f(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,v(n.key),n)}}function p(t,e,r){return e=y(e),function(t,e){if(e&&("object"==c(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,h()?Reflect.construct(e,r||[],y(t).constructor):e.apply(t,r))}function h(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(h=function(){return!!t})()}function y(t){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},y(t)}function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}function v(t){var e=function(t,e){if("object"!=c(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==c(e)?e:e+""}var m=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),p(this,e,arguments)}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&d(t,e)}(e,t),function(t,e,r){return e&&f(t.prototype,e),r&&f(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"initialize",value:function(){var t,e=this,r=s(this.element.getElementsByTagName("a"));try{for(r.s();!(t=r.n()).done;){var n=t.value;(0,u.W8)(n)}}catch(t){r.e(t)}finally{r.f()}var o=this.element.querySelector(".m-teaserlistitem__bookmark");o&&o.addEventListener("click",function(t){t.preventDefault()}),new ResizeObserver(function(t){try{e.resize()}catch(t){t.message.includes("ResizeObserver loop")&&console.warn("ResizeObserver loop detected, ignoring")}}).observe(this.element)}},{key:"resize",value:function(){var t=this.element.closest(".m-teaserlistitem__container"),e=this.element.classList.contains("m-teaserlistitem--reference-teaser"),r=window.matchMedia("(max-width: 767px)").matches;if(t){var n=t.querySelector(".m-teaserlistitem__sticker-container"),o=n?n.offsetHeight:0;if(this.element.style.setProperty("--sticker-container-height","".concat(o,"px")),e&&r){var i=this.element.querySelector(".m-teaserlistitem__image-container"),a=t.querySelector(".m-teaserlistitem__bookmark-container"),u=i?i.offsetHeight:0;n.style.setProperty("--image-container-height","".concat(u,"px")),a.style.setProperty("--image-container-height","".concat(u,"px"))}}}},{key:"toggleDetailsFlyout",value:function(t){t.preventDefault();var e=t.currentTarget.parentNode,r=e.querySelector(".m-teaserlistitem__details-flyout-inner").clientHeight,n=e.querySelector(".m-teaserlistitem__details-flyout");e.classList.contains(o.A.CSS.IS_ACTIVE)?this.closeDetailsFlyout():(e.classList.add(o.A.CSS.IS_ACTIVE),(0,i.zm)(n,r,400),(0,a.X2)(e,this.closeDetailsFlyout.bind(this)))}},{key:"closeDetailsFlyout",value:function(){this.element.querySelector(".has-flyout").classList.remove(o.A.CSS.IS_ACTIVE),(0,i.zm)(this.element.querySelector(".m-teaserlistitem__details-flyout"),0,400)}}])}(n.xI);!function(t,e,r){(e=v(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}(m,"targets",[])},14511:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return b}});r(52675),r(89463),r(2259),r(45700),r(28706),r(2008),r(50113),r(74423),r(23792),r(34782),r(89572),r(2892),r(83851),r(81278),r(40875),r(79432),r(26099),r(60825),r(31415),r(21699),r(47764),r(23500),r(62953);var n=r(13368),o=r(29808),i=r(18248),a=r(74692),u=r.n(a);function c(t){return c="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},c(t)}function s(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function l(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
2e%2?s(Object(r),!0).forEach(function(e){v(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function f(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,m(n.key),n)}}function p(t,e,r){return e=y(e),function(t,e){if(e&&("object"==c(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,h()?Reflect.construct(e,r||[],y(t).constructor):e.apply(t,r))}function h(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(h=function(){return!!t})()}function y(t){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},y(t)}function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}function v(t,e,r){return(e=m(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function m(t){var e=function(t,e){if("object"!=c(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==c(e)?e:e+""}var b=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return v(t=p(this,e,[].concat(n)),"_player",void 0),v(t,"_consentGiven",!1),v(t,"_hasConsentManager",!0),v(t,"_videoLoaded",!1),v(t,"_initializedObservers",new Set),v(t,"_videoSizeObserver",void 0),t}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&d(t,e)}(e,t),function(t,e,r){return e&&f(t.prototype,e),r&&f(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"player",get:function(){return this._player}},{key:"connect",value:function(){if(this._videoType=this.element.getAttribute("data-video-type"),"dynamicmedia"!==this._videoType){this._videoId=this.videocontainerTarget.getAttribute("data-video-id");var t=this.element.getAttribute("data-has-consentmanager");this._hasConsentManager=!t||"true"===t,!0===this._hasConsentManager?(this.videocontainerTarget.classList.add(i.A.CSS.IS_HIDDEN),u()(window).on(i.A.EVENTS.CONSENT.CONSENT_CHANGED,this._handleConsentChanged.bind(this))):(this._consentGiven=!0,u()(window).off(i.A.EVENTS.CONSENT.CONSENT_CHANGED),this._initPlayers(),this._registerLazyLoadingHandler())}else{var e=this;this._videoSizeObserver=new MutationObserver(function(t){t.forEach(function(t){e._resizeVideo(u()(t.target))})}),setTimeout(function(){e._initVideoParentObserver(e)},0)}}},{key:"_initPlayers",value:function(){var t=this;this.hasPlaceholderTarget&&this.placeholderTarget.classList.add(i.A.CSS.IS_HIDDEN),this.videocontainerTarget.classList.remove(i.A.CSS.IS_HIDDEN),this._isVisibleInViewport(this.videocontainerTarget)&&("youtube"===this._videoType&&document.addEventListener(i.A.EVENTS.VIDEO.YOUTUBE_READY,function(){window.YT&&void 0===t._player&&t.onYouTubeIframeAPIReady()}),document.addEventListener(i.A.EVENTS.VIDEO.PLAY,function(){return t.play()}),document.addEventListener(i.A.EVENTS.VIDEO.STOP,function(){return t.stop()}),this.handleApiScript(),this._videoLoaded=!0)}},{key:"_handleConsentChanged",value:function(t,e){this._consentGiven=(0,o.DG)(this._videoType,e.details),this._consentGiven?(this._initPlayers(),this._registerLazyLoadingHandler()):this._initPlaceholderImage(this._videoType)}},{key:"_initPlaceholderImage",value:function(){this.videocontainerTarget.classList.add(i.A.CSS.IS_HIDDEN),this.hasPlaceholderTarget&&this.placeholderTarget.classList.remove(i.A.CSS.IS_HIDDEN)}},{key:"handleApiScript",value:function(){"youtube"===this._videoType&&this.youtubeApiScriptLoanding()}},{key:"youtubeApiScriptLoanding",value:function(){var t=document.querySelector(".youtube-api-script");
2if(t&&0===t.innerHTML.length&&this.checkIfYoutubeIframeApiNeeded()){var r=document.createElement("script");r.src=e.youtubeIframeAPIUrl,t.appendChild(r),window.onYouTubeIframeAPIReady=function(){(0,o.Hl)(i.A.EVENTS.VIDEO.YOUTUBE_READY)}}else void 0===this._player&&window.YT&&this.onYouTubeIframeAPIReady()}},{key:"onYouTubeIframeAPIReady",value:function(){var t=this,e="true"===this.videocontainerTarget.getAttribute("data-autoplay")?1:0,r="true"===this.videocontainerTarget.getAttribute("data-controls")?1:0,n="true"===this.videocontainerTarget.getAttribute("data-loop")?1:0;this._player=new YT.Player(this.videoTarget,{host:"https://www.youtube-nocookie.com",videoId:this._videoId,playerVars:l({color:"white",enablejsapi:1,rel:0,autoplay:e,controls:r,loop:n,mute:e},1===n&&{playlist:this.videocontainerTarget.getAttribute("data-video-id")}),events:{onReady:function(){return t.handlePlayerReady()}}})}},{key:"play",value:function(){void 0!==this._player&&"youtube"===this._videoType&&this._player.playVideo()}},{key:"stop",value:function(){void 0!==this._player&&"youtube"===this._videoType&&this._player.stopVideo()}},{key:"handlePlayerReady",value:function(){"true"===this.videocontainerTarget.getAttribute("data-autoplay")&&this._player.playVideo()}},{key:"jumpTo",value:function(t){return void 0!==this._player&&("function"==typeof this._player.seekTo?(this.play(),this._player.seekTo(t)):(this._player.currentTime=t,this.play()),!0)}},{key:"getCurrentTime",value:function(){return!!this.player&&this.player.getCurrentTime()}},{key:"checkIfYoutubeIframeApiNeeded",value:function(){var t=Array.prototype.slice.call(document.getElementsByTagName("script")),r=!0;return t.every(function(t){var n=t.getAttribute("src");return!n||!n.includes(e.youtubeIframeAPIUrl)||(r=!1,!1)}),r}},{key:"_isVisibleInViewport",value:function(t){return t.getBoundingClientRect().top<=window.innerHeight}},{key:"_registerLazyLoadingHandler",value:function(){if(!this._videoLoaded){var t=function(){this._isVisibleInViewport(this.videocontainerTarget)&&(this._initPlayers(),document.removeEventListener("scroll",t))}.bind(this);document.addEventListener("scroll",t)}}},{key:"_selectAspect",value:function(t,r){var n=t.closest(".m-video"),o=n.attr("data-aspectDesktop"),i=n.attr("data-aspectTablet"),a=n.attr("data-aspectMobile");return r>=e.DESKTOP_BREAKPOINT?o:r>=e.TABLET_BREAKPOINT?i:a}},{key:"_resizeVideo",value:function(t){var e=u()(window).width(),r=this._selectAspect(t,e),n=t.width();if(r>0){var o=Math.round(n/r);o!==t.height()&&t.height(o);var i=t.find("video"),a=Math.abs(i.width()/r-i.height())<5;Math.abs(i.width()-t.width())<2&&!a?"true"!=i.attr("resized")&&(i.attr("resized","true"),setTimeout(function(){t.width(t.width()-1),i.attr("resized","false")},200)):setTimeout(function(){t.width("")},0)}}},{key:"_getVideoParentContainers",value:function(){var t=u()("div.m-smartvideo");return 0===t.length&&(t=u()("iframe").contents().find("div.smartvideo div.m-video")),t}},{key:"_initVideoObserver",value:function(t){var e=t.closest("div.m-video").find("div.s7smartcropvideoviewer > div.s7container");if(e.length>0){var r=e[0];return this._initializedObservers.has(r)||(this._initializedObservers.add(r),this._resizeVideo(u()(r)),this._videoSizeObserver.observe(r,{attributes:!0,attributeFilter:["style"]})),!0}}},{key:"_initVideoParentObserver",value:function(t){t._getVideoParentContainers().each(function(){var e=u()(this);t._initVideoObserver(e),new MutationObserver(function(e,r){e.forEach(function(e){t._initVideoObserver(u()(e.target))&&r.disconnect()})}).observe(this,{childList:!0,subtree:!0}),setTimeout(function(){t._initVideoObserver(e)},0)})}}])}(n.xI);v(b,"targets",["video","placeholder","videocontainer"]),v(b,"youtubeIframeAPIUrl","//www.youtube.com/iframe_api"),v(b,"DESKTOP_BREAKPOINT",1024),v(b,"TABLET_BREAKPOINT",768)},89335:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return y}});r(52675),r(89463),r(2259),r(45700),r(2008),r(23792),r(89572),r(2892),r(40875),r(79432),r(26099),r(60825),r(47764),r(62953);var n=r(13368),o=r(54762),i=r(18248);function a(t){return a="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},a(t)}function u(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,h(n.key),n)}}function c(t,e,r){return e=l(e),function(t,e){if(e&&("object"==a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}
2(t,s()?Reflect.construct(e,r||[],l(t).constructor):e.apply(t,r))}function s(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(s=function(){return!!t})()}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}function f(t,e){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},f(t,e)}function p(t,e,r){return(e=h(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function h(t){var e=function(t,e){if("object"!=a(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==a(e)?e:e+""}var y=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),c(this,e,arguments)}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&f(t,e)}(e,t),function(t,e,r){return e&&u(t.prototype,e),r&&u(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"connect",value:function(){o.u.addValidation(this.formTarget,this),this.otherGroupsTarget.classList.add(i.A.CSS.IS_HIDDEN),this.subtopicsTarget.classList.add(i.A.CSS.IS_HIDDEN),this.requestOptions={contentType:"text/plain;charset=UTF-8"}}},{key:"displaySubtopics",value:function(t){var r=t.target.closest(e.requestTopicSelector);r&&this._selectTopicWithSubtopics(r)}},{key:"displayAdditionalField",value:function(){var t=this.targetGroupsTarget.querySelector("select"),e=this.otherGroupsTarget.querySelector("input");t.options[t.selectedIndex].hasAttribute("additionalContent")?(this.otherGroupsTarget.classList.remove(i.A.CSS.IS_HIDDEN),e.removeAttribute("disabled")):(this.otherGroupsTarget.classList.add(i.A.CSS.IS_HIDDEN),e.setAttribute("disabled",""))}},{key:"_selectTopicWithSubtopics",value:function(t){var e=t.querySelector("select"),r=o.u.getSelectText(e),n=this._getSubtopicsByTopic(r),a=this.subto
2picsTarget.querySelector("select");n&&n.length?(this._addSubtopics(a,n),this.subtopicsTarget.classList.remove(i.A.CSS.IS_HIDDEN),a.removeAttribute("disabled")):(this._removeSubtopics(a),this.subtopicsTarget.classList.add(i.A.CSS.IS_HIDDEN),this.subtopicsTarget.classList.remove(i.A.CSS.HAS_ERROR),a.setAttribute("disabled",""))}},{key:"_getSubtopicsByTopic",value:function(t){var e=this._getParsedServices().filter(function(e,r){return e.topicName===t});return e.length&&e[0].subtopics?e[0].subtopics:null}},{key:"_getParsedServices",value:function(){return this.parsedServices||(this.parsedServices=this.topicDataTarget?JSON.parse(this.topicDataTarget.innerHTML):null),this.parsedServices}},{key:"_addSubtopics",value:function(t,e){this._removeSubtopics(t),[].forEach.call(e,function(e){var r=document.createElement("option");r.value=e.subtopicId,r.text=e.subtopicName,t.appendChild(r)})}},{key:"_removeSubtopics",value:function(t){[].forEach.call(t.querySelectorAll("option:not([disabled])"),function(t){t.remove()})}},{key:"extendFormData",value:function(t){var e=t,r=e.contactPersonInfo.email;return r&&(e.userMailRecipient=r),void 0!==e.contactPersonInfo.otherTargetGroup&&(e.contactPersonInfo.targetGroup=e.contactPersonInfo.otherTargetGroup),e}}])}(n.xI);p(y,"targets",["form","topicData","subtopics","targetGroups","otherGroups"]),p(y,"requestTopicSelector",".js-o-callbackform__topic-select")},75627:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return m}});r(52675),r(89463),r(2259),r(45700),r(28706),r(23792),r(89572),r(2892),r(40875),r(79432),r(26099),r(60825),r(47764),r(62953);var n=r(13368),o=r(30607),i=r(74692),a=r.n(i),u=r(22776),c=r(22849);function s(t){return s="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},s(t)}function l(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,v(n.key),n)}}function f(t,e,r){return e=h(e),function(t,e){if(e&&("object"==s(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,p()?Reflect.construct(e,r||[],h(t).constructor):e.apply(t,r))}function p(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(p=function(){return!!t})()}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}function y(t,e){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},y(t,e)}function d(t,e,r){return(e=v(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function v(t){var e=function(t,e){if("object"!=s(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==s(e)?e:e+""}var m=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return d(t=f(this,e,[].concat(n)),"_sliderConfig",{autoplay:!0,autoplaySpeed:5e3,dotsClass:"o-carouselstage__dots"}),t}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&y(t,e)}(e,t),function(t,e,r){return e&&l(t.prototype,e),r&&l(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"initialize",value:function(){this.data.get("autoplay")&&(this._sliderConfig.auto
2play=JSON.parse(this.data.get("autoplay")))}},{key:"connect",value:function(){this._initCarousel(),this.hasSliderTarget&&(0,c.tB)(this.sliderTarget,"li.o-carouselstage__slide","a.o-carouselstage__slide-teaser")}},{key:"_initCarousel",value:function(){a()(this.sliderTarget).slick({accessibility:!0,touchThreshold:8,dragging:!0,appendArrows:!1,autoplay:this._sliderConfig.autoplay,autoplaySpeed:this._sliderConfig.autoplaySpeed,dots:!0,rows:0,zIndex:100,dotsClass:this._sliderConfig.autoplay?"".concat(this._sliderConfig.dotsClass," has-animation"):this._sliderConfig.dotsClass}),(0,o.o)(this.element.querySelector(".slick-list"),this.element.querySelector(".".concat(this._sliderConfig.dotsClass)))}},{key:"handleScroll",value:function(t){var e=this.element.parentElement.nextElementSibling,r=e&&e.getBoundingClientRect().top;if(e&&r>0){var n=r+window.scrollY-document.documentElement.clientTop;(0,u.A)({targets:[document.documentElement,document.body],scrollTop:n,duration:500,easing:"easeInOutQuad"})}}}])}(n.xI);d(m,"targets",["slider","scrollindicator"])},1923:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return p}});r(52675),r(89463),r(2259),r(45700),r(23792),r(89572),r(2892),r(40875),r(79432),r(26099),r(60825),r(47764),r(62953);var n=r(13368),o=r(18248);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},i(t)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,f(n.key),n)}}function u(t,e,r){return e=s(e),function(t,e){if(e&&("object"==i(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,c()?Reflect.construct(e,r||[],s(t).constructor):e.apply(t,r))}function c(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(c=function(){return!!t})()}
2function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}function l(t,e){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},l(t,e)}function f(t){var e=function(t,e){if("object"!=i(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==i(e)?e:e+""}var p=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),u(this,e,arguments)}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}(e,t),function(t,e,r){return e&&a(t.prototype,e),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"connect",value:function(){this.element.querySelector("div.js-m-formpage__otherInformationCheckbox > div > input").addEventListener("change",this._enableCustomInputField.bind(this)),this._setInputFieldState(!1)}},{key:"_enableCustomInputField",value:function(t){t.target.checked?this._setInputFieldState(!0):this._setInputFieldState(!1)}},{key:"_setInputFieldState",value:function(t){var e=this.topicSelectionTarget.querySelector("div.js-m-formpage__otherInformationInput > input");t?(e.classList.remove(o.A.CSS.IS_DISABLED),e.removeAttribute("disabled","")):(e.classList.add(o.A.CSS.IS_DISABLED),e.setAttribute("disabled",""))}},{key:"extendFormData",value:function(t){var e=t,r=e.personData.email,n=e.topics;return r&&(e.userMailRecipient=r),n&&(e.topics=Object.keys(n)),e}}])}(n.xI);!function(t,e,r){(e=f(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}(p,"targets",["form","topicSelection"])},2535:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return p}});r(52675),r(89463),r(2259),r(45700),r(23792),r(89572),r(2892),r(40875),r(26099),r(60825),r(47764),r(62953);var n=r(13368),o=r(54762);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},i(t)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,f(n.key),n)}}function u(t,e,r){return e=s(e),function(t,e){if(e&&("object"==i(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,c()?Reflect.construct(e,r||[],s(t).constructor):e.apply(t,r))}function c(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(c=function(){return!!t})()}
2function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}function l(t,e){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},l(t,e)}function f(t){var e=function(t,e){if("object"!=i(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==i(e)?e:e+""}var p=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),u(this,e,arguments)}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}(e,t),function(t,e,r){return e&&a(t.prototype,e),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"initialize",value:function(){o.u.addValidation(this.formTarget,this),this.requestOptions={contentType:"text/plain;charset=UTF-8"}}},{key:"extendFormData",value:function(t){var e=t,r=e.userEmail;return r&&(e.userMailRecipient=r),e}}])}(n.xI);!function(t,e,r){(e=f(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}(p,"targets",["form"])},97369:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return p}});r(52675),r(89463),r(2259),r(45700),r(23792),r(89572),r(2892),r(40875),r(26099),r(60825),r(47764),r(62953);var n=r(13368),o=r(54762);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},i(t)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,f(n.key),n)}}function u(t,e,r){return e=s(e),function(t,e){if(e&&("object"==i(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,c()?Reflect.construct(e,r||[],s(t).constructor):e.apply(t,r))}function c(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(c=function(){return!!t})()}
2function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}function l(t,e){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},l(t,e)}function f(t){var e=function(t,e){if("object"!=i(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==i(e)?e:e+""}var p=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),u(this,e,arguments)}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}(e,t),function(t,e,r){return e&&a(t.prototype,e),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"initialize",value:function(){o.u.addValidation(this.formTarget,this),this.requestOptions={contentType:"text/plain;charset=UTF-8"}}},{key:"extendFormData",value:function(t){var e=t,r=e.email;return r&&(e.userMailRecipient=r),e}}])}(n.xI);!function(t,e,r){(e=f(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}(p,"targets",["form"])},62235:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return l}});r(52675),r(89463),r(2259),r(45700),r(23792),r(89572),r(2892),r(40875),r(26099),r(60825),r(47764),r(62953);function n(t){return n="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},n(t)}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,i(n.key),n)}}function i(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}function a(t,e,r){return e=c(e),function(t,e){if(e&&("object"==n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,u()?Reflect.construct(e,r||[],c(t).constructor):e.apply(t,r))}function u(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(u=function(){return!!t})()}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}
2function s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},s(t,e)}var l=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),a(this,e,arguments)}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(e,t),function(t,e,r){return e&&o(t.prototype,e),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"initialize",value:function(){if(this.element.dataset.image){var t=this.element.dataset.image,e=this.element.classList.contains("o-container--add-dark-overlay");if(t){var r="url("+t+")";this.element.style.backgroundImage=e?"linear-gradient(to bottom, rgba(0, 0, 0, 0.50), rgba(0, 0, 0, 0.5)), "+r:r}}}}])}(r(13368).xI)},80079:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return d}});r(52675),r(89463),r(2259),r(45700),r(50113),r(23792),r(89572),r(2892),r(40875),r(26099),r(60825),r(47764),r(62953);var n=r(13368),o=r(18248),i=r(29808),a=r(74692),u=r.n(a);function c(t){return c="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},c(t)}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,y(n.key),n)}}function l(t,e,r){return e=p(e),function(t,e){if(e&&("object"==c(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,f()?Reflect.construct(e,r||[],p(t).constructor):e.apply(t,r))}function f(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(f=function(){return!!t})()}function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},p(t)}function h(t,e){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},h(t,e)}function y(t){var e=function(t,e){if("object"!=c(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==c(e)?e:e+""}var d=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),l(this,e,arguments)}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&h(t,e)}(e,t),function(t,e,r){return e&&s(t.prototype,e),r&&s(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"initialize",value:function(){var t=this.element.querySelector(".js-o-countryflyout__select > select");t&&t.addEventListener("change",this.countrySelect.bind(this))}},{key:"countryClick",value:function(t){var e=u()(t.currentTarget).attr("data-vcard-id");u()(this.countryTargets).removeClass(o.A.CSS.IS_ACTIVE),u()(this.mapTargets).addClass(o.A.CSS.IS_INACTIVE),u()(t.currentTarget).addClass(o.A.CSS.IS_ACTIVE),u()(this.vcardTargets).removeClass(o.A.CSS.IS_ACTIVE),u()(this.vcardsTarget).find("[data-vcard-id='".concat(e,"']")).addClass(o.A.CSS.IS_ACTIVE),"false"===this.data.get("is-content-element")&&(0,i.Hl)(o.A.EVENTS.MAIN_NAV.CALC_FLYOUT_HEIGHT,{navItem:this.element.parentNode.parentNode.parentNode})}},{key:"countrySelect",value:function(t){var e=t.currentTarget.options[t.currentTarget.selectedIndex].value;u()(this.vcardTargets).removeClass(o.A.CSS.IS_ACTIVE),u()(this.mapTargets).addClass(o.A.CSS.IS_INACTIVE),u()(this.vcardsTarget).find("[data-vcard-id='".concat(e,"']")).addClass(o.A.CSS.IS_ACTIVE),"false"===this.data.get("is-content-element")&&(0,i.Hl)(o.A.EVENTS.MAIN_NAV.CALC_FLYOUT_HEIGHT,{navItem:this.element.parentNode.parentNode.parentNode})}}])}(n.xI);!function(t,e,r){(e=y(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}(d,"targets",["country","vcards","vcard","map"])},46059:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return p}});r(52675),r(89463),r(2259),r(45700),r(23792),r(89572),r(2892),r(40875),r(26099),r(60825),r(47764),r(62953);var n=r(13368),o=r(54762);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},i(t)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,f(n.key),n)}}function u(t,e,r){return e=s(e),function(t,e){if(e&&("object"==i(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,c()?Reflect.construct(e,r||[],s(t).constructor):e.apply(t,r))}function c(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(c=function(){return!!t})()}
2function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}function l(t,e){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},l(t,e)}function f(t){var e=function(t,e){if("object"!=i(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==i(e)?e:e+""}var p=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),u(this,e,arguments)}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}(e,t),function(t,e,r){return e&&a(t.prototype,e),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"initialize",value:function(){o.u.addValidation(this.formTarget,this),this.requestOptions={contentType:"text/plain;charset=UTF-8"}}},{key:"extendFormData",value:function(t){var e=t,r=e.venue,n=e.personData.email;if(r){var o=r.split(",");o&&o.length>=3&&(e.venue=o[0],e.eventDate=o[1],e.startTime=o[2],4===o.length&&(e.endTime=o[3]))}return n&&(e.userMailRecipient=n),e}}])}(n.xI);!function(t,e,r){(e=f(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}(p,"targets",["form"])},45315:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return p}});r(52675),r(89463),r(2259),r(45700),r(23792),r(89572),r(2892),r(40875),r(26099),r(60825),r(47764),r(62953);var n=r(13368),o=r(54762);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},i(t)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,f(n.key),n)}}function u(t,e,r){return e=s(e),function(t,e){if(e&&("object"==i(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,c()?Reflect.construct(e,r||[],s(t).constructor):e.apply(t,r))}function c(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(c=function(){return!!t})()}
2function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}function l(t,e){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},l(t,e)}function f(t){var e=function(t,e){if("object"!=i(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==i(e)?e:e+""}var p=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),u(this,e,arguments)}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}(e,t),function(t,e,r){return e&&a(t.prototype,e),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"initialize",value:function(){o.u.addValidation(this.formTarget,this),this.requestOptions={contentType:"text/plain;charset=UTF-8"}}},{key:"extendFormData",value:function(t){var e=t,r=e.venue,n=e.personData.email;if(r){var o=r.split(",");o&&o.length>=3&&(e.venue=o[0],e.eventDate=o[1],e.startTime=o[2],4===o.length&&(e.endTime=o[3]))}return n&&(e.userMailRecipient=n),e}}])}(n.xI);!function(t,e,r){(e=f(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}(p,"targets",["form"])},11342:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return V}});r(52675),r(89463),r(66412),r(2259),r(45700),r(78125),r(28706),r(23792),r(94490),r(34782),r(89572),r(62010),r(4731),r(60479),r(2892),r(40875),r(79432),r(26099),r(3362),r(60825),r(27495),r(47764),r(25440),r(23500),r(62953);var n=r(13368),o=r(31201),i=(r(23418),r(62062),r(5506),r(83851),r(40888),r(38781),r(50778),r(85043)),a=r(29808);function u(t){return u="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},u(t)}function c(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],c=!0,s=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){s=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return u}}(t,e)||function(t,e){if(t){if("string"==typeof t)return s(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(t,e):void 0}}(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 s(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function l(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,f(n.key),n)}}function f(t){var e=function(t,e){if("object"!=u(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==u(e)?e:e+""}function p(t,e,r){return e=d(e),function(t,e){if(e&&("object"==u(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,h()?Reflect.construct(e,r||[],d(t).constructor):e.apply(t,r))}function h(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(h=function(){return!!t})()}function y(){return y="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=d(t)););return t}(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},y.apply(null,arguments)}
2function d(t){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},d(t)}function v(t,e){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},v(t,e)}var m=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),p(this,e,arguments)}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&v(t,e)}(e,t),function(t,e,r){return e&&l(t.prototype,e),r&&l(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"buildResult",value:function(t,r){var n=y(d(e.prototype),"buildResult",this).call(this,t,r);return n.data=this._format(n.data),n}},{key:"_format",value:function(t){if(t){var e=this.decodeRetailerDatas(t);return{success:!0,error:"",totalNumberOfResults:t.totalNumberOfResults,results:e.retailers.map(function(t){var e=t.sapRetailerId,r=t.name,n=t.email,o=t.homepage,i=t.phone,a=t.fax,u=t.street,c=t.streetNumber,s=t.postalCode,l=t.city,f=t.country,p=t.latitude,h=t.longitude,y=t.distanceInKilometers,d=t.tags,v=t.showAdditionalText,m=t.additionalTextLine1,b=t.additionalTextLine2,g=t.additionalTextLine3,S=t.additionalTextLine4,w=t.additionalTextLine5,_=t.additionalTextLine6,T=t.showAdditionalCTAButton,O=t.ctaButtonText,E=t.link,j=t.linkTarget;return{id:e,properties:{dealerName:r,email:n||"",phoneNumber:i||"",markerToClientPos:"",faxNumber:a||"",city:l,country:f,distanceInKilometers:y,street:u,housenumber:c,zipCode:s,detailhref:o,tags:d&&d.length>0?d.map(function(t){return t.key.toLowerCase()}):[],showAdditionalText:v,additionalTextLine1:m,additionalTextLine2:b,additionalTextLine3:g,additionalTextLine4:S,additionalTextLine5:w,additionalTextLine6:_,showAdditionalCTAButton:T,ctaButtonText:O,link:E,linkTarget:j},geometry:{lng:h,lat:p}}})}}}},{key:"decodeRetailerDatas",value:function(t){return t?t.retailers&&Array.isArray(t.retailers)?(t.retailers=t.retailers.map(function(t){for(var e={},r=0,n=Object.entries(t);r<n.length;r++){var o=c(n[r],2),i=o[0],u=o[1];e[i]="string"==typeof u?(0,a.Uk)(u):u}return e}),t):void 0:""}}])}(i.A),b=r(4409),g=r(18248);function S(t){return S="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},S(t)}function w(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,_(n.key),n)}}function _(t){var e=function(t,e){if("object"!=S(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=S(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==S(e)?e:e+""}function T(t,e,r){return e=j(e),function(t,e){if(e&&("object"==S(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,O()?Reflect.construct(e,r||[],j(t).constructor):e.apply(t,r))}function O(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(O=function(){return!!t})()}function E(){return E="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=j(t)););return t}(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},E.apply(null,arguments)}
2function j(t){return j=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},j(t)}function P(t,e){return P=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},P(t,e)}var C=function(t){function e(t,r,n,o,i,a,u,c){var s;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(s=T(this,e,[t,r,n,o,i,a,u,c])).resultsContainer=u,s.resultEl=a,s}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&P(t,e)}(e,t),function(t,e,r){return e&&w(t.prototype,e),r&&w(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"_onMarkerClick",value:function(t){E(j(e.prototype),"_onMarkerClick",this).call(this,t);var r=this.resultsContainer.querySelector("".concat(this.resultEl,'[data-id="').concat(t.content.id,'"]')),n=this.resultsContainer.querySelector(".is-active");n&&n.classList.remove(g.A.CSS.IS_ACTIVE),r.classList.add(g.A.CSS.IS_ACTIVE),r.scrollIntoView({behavior:"smooth",block:"center"})}}])}(b.A),A=r(74692);function k(t){return k="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},k(t)}function I(){I=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),u=new L(n||[]);return o(a,"_invoke",{value:j(t,r,u)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var p="suspendedStart",h="suspendedYield",y="executing",d="completed",v={};function m(){}function b(){}function g(){}var S={};s(S,a,function(){return this});var w=Object.getPrototypeOf,_=w&&w(w(x([])));_&&_!==r&&n.call(_,a)&&(S=_);var T=g.prototype=m.prototype=Object.create(S);function O(t){["next","throw","return"].forEach(function(e){s(t,e,function(t){return this._invoke(e,t)})})}function E(t,e){function r(o,i,a,u){var c=f(t[o],t,i);if("throw"!==c.type){var s=c.arg,l=s.value;return l&&"object"==k(l)&&n.call(l,"__await")?e.resolve(l.__await).then(function(t){r("next",t,a,u)},function(t){r("throw",t,a,u)}):e.resolve(l).then(function(t){s.value=t,a(s)},function(t){return r("throw",t,a,u)})}u(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e(function(e,o){r(t,n,e,o)})}return i=i?i.then(o,o):o()}})}function j(e,r,n){var o=p;return function(i,a){if(o===y)throw Error("Generator is already running");if(o===d){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var c=P(u,n);if(c){if(c===v)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=d,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var s=f(e,r,n);if("normal"===s.type){if(o=n.done?d:h,s.arg===v)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=d,n.method="throw",n.arg=s.arg)}}}function P(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,P(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,v;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function A(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function x(e){if(e||""===e){var r=e[a];if(r)return r.call(e);
vendor: 4,422 bytes, line 2
2if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(k(e)+" is not iterable")}return b.prototype=g,o(T,"constructor",{value:g,configurable:!0}),o(g,"constructor",{value:b,configurable:!0}),b.displayName=s(g,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,s(t,c,"GeneratorFunction")),t.prototype=Object.create(T),t},e.awrap=function(t){return{__await:t}},O(E.prototype),s(E.prototype,u,function(){return this}),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next()})},O(T),s(T,c,"Generator"),s(T,a,function(){return this}),s(T,"toString",function(){return"[object Generator]"}),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=x,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(A),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return u.type="throw",u.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),A(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;A(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:x(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}function L(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,o)}function x(t){return function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function a(t){L(i,n,o,a,u,"next",t)}function u(t){L(i,n,o,a,u,"throw",t)}a(void 0)})}}function R(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,B(n.key),n)}}function N(t,e,r){return e=F(e),function(t,e){if(e&&("object"==k(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,D()?Reflect.construct(e,r||[],F(t).constructor):e.apply(t,r))}function D(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(D=function(){return!!t})()}
2function F(t){return F=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},F(t)}function M(t,e){return M=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},M(t,e)}function H(t,e,r){return(e=B(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function B(t){var e=function(t,e){if("object"!=k(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=k(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==k(e)?e:e+""}var V=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return H(t=N(this,e,[].concat(n)),"dealerLocator",null),H(t,"_autocomplete",null),H(t,"_consentGiven",!1),H(t,"_hasConsentManager",!0),H(t,"_consentType","googlemaps"),t}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&M(t,e)}(e,t),function(t,e,r){return e&&R(t.prototype,e),r&&R(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"initialize",value:function(){var t=this.element.getAttribute("data-has-consentmanager");this._hasConsentManager=!t||"true"===t,!0===this._hasConsentManager?A(window).on(g.A.EVENTS.CONSENT.CONSENT_CHANGED,this._handleConsentChanged.bind(this)):(this._consentGiven=!0,A(window).off(g.A.EVENTS.CONSENT.CONSENT_CHANGED),(0,a.lb)(),this._initGoogleMaps())}},{key:"_connectGoogleMaps",value:(u=x(I().mark(function t(){var e;return I().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,e=JSON.parse(this.data.get("auto-zoom")),t.next=4,this.dealerLocator.initializeMap();case 4:return t.next=6,this.dealerLocator.showAll();case 6:e&&(0,a._q)(this.dealerLocator),this.updateResultCounter(),this._autocomplete=new google.maps.places.Autocomplete(this.searchInputTarget),t.next=14;break;case 11:t.prev=11,t.t0=t.catch(0),this.updateErrorMessage(t.t0);case 14:this.filterOptionsTarget.options&&2===this.filterOptionsTarget.options.length&&(this.filterOptionsTarget.classList.add("hide"),this.filterOptionsTarget.options[1].selected=!0,this.addFilterOption());case 15:case"end":return t.stop()}},t,this,[[0,11]])})),function(){return u.apply(this,arguments)})},{key:"_handleConsentChanged",value:function(t,e){this._consentGiven=(0,a.DG)(this._consentType,e.details),this._consentGiven?this._initGoogleMaps():this._initPlaceholderImage(this._consentType)}},{key:"_initPlaceholderImage",value:function(){for(this.hasPlaceholderTarget&&this.placeholderTarget.classList.remove(g.A.CSS.IS_HIDDEN);this.googlecontainerTarget.firstChild;)this.googlecontainerTarget.removeChild(this.googlecontainerTarget.firstChild);(0,a.lb)()}},{key:"_createDealerLocator",value:function(){var t=this,e=JSON.parse(this.data.get("initial-zoom"))||6;return new o.A({mapContainer:"googleMapsContainer",resultEl:".o-dealerlocator__result-item",resultsContainer:this.resultContainerTarget,apiKey:this.data.get("api-key"),hasCluster:!0,computeDistanceBetweenPoints:function(t,e){var r=new google.maps.LatLng({lat:e.lat,lng:e.lng});return google.maps.geometry.spherical.computeDistanceBetween(t,r)},requestOptions:{method:"POST",body:JSON.parse(this.data.get("request-payload")),acceptType:"*/*"},urlGenerator:function(e){return t.data.get("api-url")},mapsDataSource:m,googleMap:C,mapOptions:{mapId:this.data.get("map-id")||"DEMO_MAP_ID",clickableIcons:!1,zoom:e,center:JSON.parse(this.data.get("initial-position")),templateVars:["distance","dealerName","city","street","housenumber","zipCode","country","phoneNumber","email","detailhref","showAdditionalText","additionalTextLine1","additionalTextLine2","additionalTextLine3","additionalTextLine4","additionalTextLine5","additionalTextLine6","showAdditionalCTAButton","ctaButtonText","link","linkTarget"],templateDelimiters:["{","}"]}})}},{key:"_initGoogleMaps",value:function(){this.hasPlaceholderTarget&&this.placeholderTarget.classList.add(g.A.CSS.IS_HIDDEN),(0,a.lb)(),this.dealerLocator=this._createDealerLocator(),this._connectGoogleMaps()}},{key:"search",value:(i=x(I().mark(function t(e){var r,n;return I().wrap(function(t){for(;;
2)switch(t.prev=t.next){case 0:if(e.preventDefault(),r=this.searchInputTarget.value,n=this.data.get("search-radius"),""===r){t.next=19;break}return t.prev=4,t.next=7,this.dealerLocator.searchFor(r,n||9999);case 7:return this.dealerLocator.setMapZoom(13),t.next=10,this.dealerLocator.updateView();case 10:this.updateResultCounter(),this.updateErrorMessage(),t.next=17;break;case 14:t.prev=14,t.t0=t.catch(4),this.updateErrorMessage(t.t0);case 17:t.next=31;break;case 19:return t.prev=19,t.next=22,this.dealerLocator.showAll();case 22:return this.dealerLocator.setMapZoom(8),t.next=25,this.dealerLocator.updateView();case 25:this.updateErrorMessage(),t.next=31;break;case 28:t.prev=28,t.t1=t.catch(19),this.updateErrorMessage(t.t1);case 31:case"end":return t.stop()}},t,this,[[4,14],[19,28]])})),function(t){return i.apply(this,arguments)})},{key:"setCurrentLocation",value:(n=x(I().mark(function t(e){return I().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e.preventDefault(),t.prev=1,t.next=4,this.dealerLocator.locateUser(9999,13);case 4:return t.next=6,this.dealerLocator.updateView();case 6:this.updateResultCounter(),this.updateErrorMessage(),this.searchInputTarget.value="",t.next=14;break;case 11:t.prev=11,t.t0=t.catch(1),this.updateErrorMessage(t.t0);case 14:case"end":return t.stop()}},t,this,[[1,11]])})),function(t){return n.apply(this,arguments)})},{key:"updateResultCounter",value:function(){var t=this.dealerLocator.mapsDataService.applyFilters(this.dealerLocator.mapsDataSource.data).length;this.resultCounterTarget.innerText="".concat(t," ").concat(this.resultCounterTarget.getAttribute(1===t?"data-singular":"data-plural"))}},{key:"updateErrorMessage",value:function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";""!==e?(t=1===e.code?"geolocation-denied":e.code,this.searchErrorTarget.innerText=this.searchErrorTarget.getAttribute("data-".concat(t.toLowerCase().replace(/_/,"-")))):this.searchErrorTarget.innerText=""}},{key:"addFilterOption",value:(r=x(I().mark(function t(e){var r;return I().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.dealerLocator.removeFilterType("property");case 2:if("all"!==(r=this.filterOptionsTarget.options[this.filterOptionsTarget.selectedIndex].value.toLowerCase())){t.next=8;break}return t.next=6,this.dealerLocator.updateView();case 6:return this.updateResultCounter(),t.abrupt("return");case 8:return t.next=10,this.dealerLocator.addFilterFor("tags",r);case 10:return t.next=12,this.dealerLocator.updateView();case 12:this.updateResultCounter();case 13:case"end":return t.stop()}},t,this)})),function(t){return r.apply(this,arguments)})}]);var r,n,i,u}(n.xI);H(V,"targets",["searchInput","searchError","resultContainer","resultCounter","filterOptions","placeholder","googlecontainer"])},41163:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return p}});r(52675),r(89463),r(2259),r(45700),r(23792),r(89572),r(62010),r(2892),r(40875),r(26099),r(60825),r(38781),r(47764),r(23500),r(62953);var n=r(13368),o=r(54762);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},i(t)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,f(n.key),n)}}function u(t,e,r){return e=s(e),function(t,e){if(e&&("object"==i(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,c()?Reflect.construct(e,r||[],s(t).constructor):e.apply(t,r))}function c(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(c=function(){return!!t})()}
2function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}function l(t,e){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},l(t,e)}function f(t){var e=function(t,e){if("object"!=i(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==i(e)?e:e+""}var p=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),u(this,e,arguments)}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}(e,t),function(t,e,r){return e&&a(t.prototype,e),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"initialize",value:function(){o.u.addValidation(this.formTarget,this),this.requestOptions={contentType:"text/plain;charset=UTF-8"}}},{key:"extendFormData",value:function(t){var e=t,r=t.email;return r&&(e.userMailRecipient=r),e.deliveryType=this.getCheckedInputs(this.deliveryTypeTargets),e.orderedMedia=this.getCheckedInputs(this.orderedMediaTargets,e),e}},{key:"getCheckedInputs",value:function(t,e){var r=[];return t.forEach(function(t){t.querySelectorAll("input:not([disabled])[type='checkbox']:checked").forEach(function(t){var n=t.name;r.push(n),e&&delete e[n]})}),r.toString()}}])}(n.xI);!function(t,e,r){(e=f(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}(p,"targets",["form","deliveryType","orderedMedia"])},91539:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return g}});r(52675),r(89463),r(66412),r(2259),r(45700),r(78125),r(28706),r(23418),r(23792),r(94490),r(34782),r(89572),r(62010),r(4731),r(60479),r(2892),r(40875),r(79432),r(26099),r(58940),r(3362),r(60825),r(27495),r(38781),r(47764),r(23500),r(62953),r(3296),r(27208),r(48408);var n=r(13368),o=r(11026),i=r(29808);function a(t){return a="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},a(t)}function u(){u=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(t,e,r){return t[e]=r}}function p(t,e,r,n){var i=e&&e.prototype instanceof g?e:g,a=Object.create(i.prototype),u=new L(n||[]);return o(a,"_invoke",{value:C(t,r,u)}),a}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=p;var y="suspendedStart",d="suspendedYield",v="executing",m="completed",b={};function g(){}function S(){}function w(){}var _={};f(_,c,function(){return this});var T=Object.getPrototypeOf,O=T&&T(T(x([])));O&&O!==r&&n.call(O,c)&&(_=O);var E=w.prototype=g.prototype=Object.create(_);function j(t){["next","throw","return"].forEach(function(e){f(t,e,function(t){return this._invoke(e,t)})})}function P(t,e){function r(o,i,u,c){var s=h(t[o],t,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==a(f)&&n.call(f,"__await")?e.resolve(f.__await).then(function(t){r("next",t,u,c)},function(t){r("throw",t,u,c)}):e.resolve(f).then(function(t){l.value=t,u(l)},function(t){return r("throw",t,u,c)})}c(s.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e(function(e,o){r(t,n,e,o)})}return i=i?i.then(o,o):o()}})}function C(e,r,n){var o=y;return function(i,a){if(o===v)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}
vendor: 6,821 bytes, line 2
2for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var c=A(u,n);if(c){if(c===b)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===y)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=h(e,r,n);if("normal"===s.type){if(o=n.done?m:d,s.arg===b)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=m,n.method="throw",n.arg=s.arg)}}}function A(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,A(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var i=h(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,b;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,b):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function x(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(a(e)+" is not iterable")}return S.prototype=w,o(E,"constructor",{value:w,configurable:!0}),o(w,"constructor",{value:S,configurable:!0}),S.displayName=f(w,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===S||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,f(t,l,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},j(P.prototype),f(P.prototype,s,function(){return this}),e.AsyncIterator=P,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new P(p(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next()})},j(E),f(E,l,"Generator"),f(E,c,function(){return this}),f(E,"toString",function(){return"[object Generator]"}),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=x,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(I),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return u.type="throw",u.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,b):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),b},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),I(r),b}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;I(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:x(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),b}},e}function c(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,o)}function s(t){return function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function a(t){c(i,n,o,a,u,"next",t)}function u(t){c(i,n,o,a,u,"throw",t)}a(void 0)})}}function l(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return f(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}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 i,a=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function p(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,b(n.key),n)}}function h(t,e,r){return e=d(e),function(t,e){if(e&&("object"==a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,y()?Reflect.construct(e,r||[],d(t).constructor):e.apply(t,r))}function y(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(y=function(){return!!t})()}
2function d(t){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},d(t)}function v(t,e){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},v(t,e)}function m(t,e,r){return(e=b(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function b(t){var e=function(t,e){if("object"!=a(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==a(e)?e:e+""}var g=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return m(t=h(this,e,[].concat(n)),"keycloak",{}),m(t,"hierarchyFilterName","m-hierarchyfilter"),m(t,"filterModuleNames",[t.hierarchyFilterName,"m-searchtextfilter","m-searchsortfilter"]),m(t,"filterPayload",{pageNumber:1,pageSize:10,folderId:0}),m(t,"filterControllersReady",0),m(t,"refreshTokenInterval",void 0),t}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&v(t,e)}(e,t),function(t,e,r){return e&&p(t.prototype,e),r&&p(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"connect",value:function(){var t=this;Promise.resolve().then(function(){t.readQueryParameters(),t.initKeyCloak(),t.subscribeToFilterControllers(),t.subscribeToPagination()})}},{key:"initKeyCloak",value:function(){var t=document.createElement("script");t.src=this.data.get("keycloak-script-path"),window._onKeycloakLoad=this.onKeycloakLoad.bind(this),t.onload=function(){window._onKeycloakLoad()},this.keycloakScriptContainerTarget.appendChild(t)}},{key:"readQueryParameters",value:function(){var t=this,e=(0,i.pg)("document_search");if(e){var r=!0;try{e=JSON.parse(e)}catch(t){r=!1}r&&Object.keys(e).forEach(function(r){var n=t.element.querySelector('[data-name="'.concat(r,'"]'));if("folderId"===r)t._initializeFolderFilter(e,r);else if(n){var o=t.application.getControllerForElementAndIdentifier(n,n.dataset.controller);o&&o.updateFilters(e[r])}})}}},{key:"subscribeToFilterControllers",value:function(){var t,e=l(this.filterModuleNames);try{for(e.s();!(t=e.n()).done;){var r=t.value,n=this.element.querySelector(".".concat(r)),o=this.application.getControllerForElementAndIdentifier(n,r);o&&o.subscribe(this.handleFilterControllerChange.bind(this))}}catch(t){e.e(t)}finally{e.f()}}},{key:"subscribeToPagination",value:function(){var t=this.getPaginationController();t&&t.subscribe(this.handlePaginationClick.bind(this))}},{key:"handlePaginationClick",value:function(t){this.buildFilterPayload("pageNumber",t),this.fetchDocumentServiceApi()}},{key:"handleFilterControllerChange",value:function(t){var e=t.key,r=t.value;this.filterControllersReady<this.filterModuleNames.length&&this.filterControllersReady++,this.buildFilterPayload(e,r),this.filterControllersReady===this.filterModuleNames.length&&(this.buildFilterPayload("pageNumber",1),this.fetchDocumentServiceApi())}},{key:"handleFolderFilterChange",value:function(t){this.buildFilterPayload(t.currentTarget.getAttribute("name")||t.currentTarget.dataset.filterName,t.currentTarget.value||t.currentTarget.dataset.filterValue),this.buildFilterPayload("pageNumber",1),this.fetchDocumentServiceApi()}},{key:"resetAllFilter",value:function(t){var e=this.element.querySelector(".m-searchtextfilter"),r=this.application.getControllerForElementAndIdentifier(e,"m-searchtextfilter");r&&(r.inputTarget.value="",this.buildFilterPayload(r.element.dataset.name,""));var n=this.getHierarchyController();n&&(n.activeFolderId=0),this.handleFolderFilterChange(t)}},{key:"buildFilterPayload",value:function(t,e){this.filterPayload[t]=e,(0,i.Pd)("document_search",JSON.stringify(this.filterPayload))}},{key:"buildGETFilterParams",value:function(){var t=this,e="?";
2return Object.keys(this.filterPayload).forEach(function(r){return e+="".concat(encodeURI(r),"=").concat(encodeURI(t.filterPayload[r]),"&")}),e.slice(0,-1)}},{key:"getPaginationController",value:function(){return this.application.getControllerForElementAndIdentifier(this.element.querySelector(".m-pagination"),"m-pagination")}},{key:"getHierarchyController",value:function(){return this.application.getControllerForElementAndIdentifier(this.element.querySelector(".m-hierarchyfilter"),this.hierarchyFilterName)}},{key:"onKeycloakLoad",value:(c=s(u().mark(function t(){var e=this;return u().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:this.keycloak=new Keycloak({url:this.data.get("keycloak-api-url"),realm:"viega",clientId:"wholesaler-service"}),this.keycloak.init({promiseType:"native",onLoad:"check-sso",silentCheckSsoRedirectUri:window.location.origin+this.data.get("silent-check-sso-api")}).then(function(t){e.refreshTokenInterval=setInterval(s(u().mark(function t(){return u().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.updateToken();case 2:case"end":return t.stop()}},t)})),2e4),e.fetchDocumentServiceApi()}).catch(function(){console.warn("failed to initialize keycloak")});case 2:case"end":return t.stop()}},t,this)})),function(){return c.apply(this,arguments)})},{key:"fetchDocumentServiceApi",value:(a=s(u().mark(function t(){var e,r;return u().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e=this.data.get("document-search-api-url")+this.buildGETFilterParams(),t.next=3,this.updateToken();case 3:return t.next=5,o.j.request(e,{method:"GET",authorization:"Bearer "+this.keycloak.token,acceptType:"application/json"});case 5:(r=t.sent).success&&this.updateUI(r.data);case 7:case"end":return t.stop()}},t,this)})),function(){return a.apply(this,arguments)})},{key:"downloadFile",value:(n=s(u().mark(function t(e){var r,n,i,a;return u().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.currentTarget.dataset.fileType,n=e.currentTarget.dataset.fileUrl,t.next=5,this.updateToken();case 5:return t.next=7,o.j.request(n,{method:"GET",authorization:"Bearer "+this.keycloak.token,contentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",responseType:"arraybuffer"});case 7:(i=t.sent).success&&i.data&&(a=new Blob([i.data],{type:"application/".concat(r)}),window.open(window.URL.createObjectURL(a)));case 9:case"end":return t.stop()}},t,this)})),function(t){return n.apply(this,arguments)})},{key:"updateToken",value:(r=s(u().mark(function t(){return u().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.keycloak.updateToken(30);case 3:t.next=8;break;case 5:return t.prev=5,t.t0=t.catch(0),t.abrupt("return",!1);case 8:case"end":return t.stop()}},t,this,[[0,5]])})),function(){return r.apply(this,arguments)})},{key:"updateUI",value:function(t){this._updateFoldersUI(t.folders),this._updateFilesUI(t.files.content),this._updatePagination(t.files.totalElements)}},{key:"_updateFoldersUI",value:function(t){var e=this.application.getControllerForElementAndIdentifier(this.element.querySelector(".m-hierarchyfilter"),this.hierarchyFilterName);e&&e.updateFilters(t)}},{key:"_updateFilesUI",value:function(t){this._render(t,"files")}},{key:"_updatePagination",value:function(t){var e=this.getPaginationController();e&&(e.totalResultCount=parseInt(t),1===this.filterPayload.pageNumber&&e.goTo(1,!0))}},{key:"_render",value:function(t,e){var r=this["".concat(e,"TemplateTarget")].innerHTML,n={};n[e]=t,this["".concat(e,"ContainerTarget")].innerHTML=r.interpolate(n)}},{key:"_initializeFolderFilter",value:function(t,e){this.buildFilterPayload("folderId",t[e]);var r=this.getHierarchyController();r&&(r.activeFolderId=parseInt(t[e]))}}]);var r,n,a,c}(n.xI);m(g,"targets",["folderCheckbox","keycloakScriptContainer","filesTemplate","filesContainer"])},73251:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return b}});r(52675),r(89463),r(66412),r(2259),r(45700),r(78125),r(23792),r(94490),r(34782),r(89572),r(62010),r(4731),r(60479),r(2892),r(40875),r(26099),r(3362),r(60825),r(47764),r(23500),r(62953);var n=r(13368),o=r(11026),i=r(36497),a=r(18248),u=r(22849);function c(t){return c="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},c(t)}function s(){s=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(t,e,r){return t[e]=r}}function p(t,e,r,n){var i=e&&e.prototype instanceof g?e:g,a=Object.create(i.prototype),u=new L(n||[]);return o(a,"_invoke",{value:C(t,r,u)}),a}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=p;var y="suspendedStart",d="suspendedYield",v="executing",m="completed",b={};function g(){}function S(){}function w(){}var _={};f(_,a,function(){return this});var T=Object.getPrototypeOf,O=T&&T(T(x([])));O&&O!==r&&n.call(O,a)&&(_=O);var E=w.prototype=g.prototype=Object.create(_);function j(t){["next","throw","return"].forEach(function(e){f(t,e,function(t){return this._invoke(e,t)})})}function P(t,e){function r(o,i,a,u){var s=h(t[o],t,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==c(f)&&n.call(f,"__await")?e.resolve(f.__await).then(function(t){r("next",t,a,u)},function(t){r("throw",t,a,u)}):e.resolve(f).then(function(t){l.value=t,a(l)},function(t){return r("throw",t,a,u)})}u(s.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e(function(e,o){r(t,n,e,o)})}return i=i?i.then(o,o):o()}})}function C(e,r,n){var o=y;return function(i,a){if(o===v)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}
vendor: 5,808 bytes, line 2
2for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var c=A(u,n);if(c){if(c===b)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===y)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=h(e,r,n);if("normal"===s.type){if(o=n.done?m:d,s.arg===b)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=m,n.method="throw",n.arg=s.arg)}}}function A(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,A(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var i=h(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,b;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,b):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function x(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(c(e)+" is not iterable")}return S.prototype=w,o(E,"constructor",{value:w,configurable:!0}),o(w,"constructor",{value:S,configurable:!0}),S.displayName=f(w,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===S||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,f(t,l,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},j(P.prototype),f(P.prototype,u,function(){return this}),e.AsyncIterator=P,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new P(p(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next()})},j(E),f(E,l,"Generator"),f(E,a,function(){return this}),f(E,"toString",function(){return"[object Generator]"}),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=x,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(I),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return u.type="throw",u.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,b):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),b},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),I(r),b}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;I(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:x(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),b}},e}function l(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,o)}function f(t){return function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function a(t){l(i,n,o,a,u,"next",t)}function u(t){l(i,n,o,a,u,"throw",t)}a(void 0)})}}function p(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,m(n.key),n)}}function h(t,e,r){return e=d(e),function(t,e){if(e&&("object"==c(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,y()?Reflect.construct(e,r||[],d(t).constructor):e.apply(t,r))}function y(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(y=function(){return!!t})()}
2function d(t){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},d(t)}function v(t,e){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},v(t,e)}function m(t){var e=function(t,e){if("object"!=c(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==c(e)?e:e+""}var b=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),h(this,e,arguments)}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&v(t,e)}(e,t),function(t,e,r){return e&&p(t.prototype,e),r&&p(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"initialize",value:function(){this.fetchResults()}},{key:"renderResults",value:(c=f(s().mark(function t(e){return s().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.hasOwnProperty("results")){t.next=8;break}if(!(e.results.length>0)){t.next=8;break}return t.next=4,this.renderAccordion(e.results,["link","name","alt"]);case 4:return this.resultsContainerTarget.innerHTML=t.sent,(0,i.o)(),(0,u.jN)(this.resultsContainerTarget),t.abrupt("return",!0);case 8:return this.showNoResultText(),this.resultsContainerTarget.innerHTML="",t.abrupt("return",!1);case 11:case"end":return t.stop()}},t,this)})),function(t){return c.apply(this,arguments)})},{key:"showNoResultText",value:function(){this.noResultsContainerTarget.classList.remove(a.A.CSS.IS_HIDDEN)}},{key:"renderAccordion",value:(n=f(s().mark(function t(e){var r,n,o;return s().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r="",(n=[]).closeText=this.data.get("closetext"),n.items=[],e.forEach(function(t){var e={title:t.entry,adobeDataLayerId:t.adobeDataLayerId,content:{teaser:t.items}};n.items.push(e),(0,u.pj)(t.dataLayerJsonString)}),o=this.accordionTemplateTarget.innerHTML,r+=o.interpolate(n),t.abrupt("return",r);case 9:case"end":return t.stop()}},t,this)})),function(t){return n.apply(this,arguments)})},{key:"fetchResults",value:(r=f(s().mark(function t(){var e;return s().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return this.toggleLoadingState(),t.next=3,o.j.request(this.data.get("apiurl"),{method:"POST"});case 3:if(!(e=t.sent).success){t.next=9;break}return t.next=7,(0,u.Hw)(e.data,this.element);case 7:return t.next=9,this.renderResults(e.data);case 9:this.toggleLoadingState();case 10:case"end":return t.stop()}},t,this)})),function(){return r.apply(this,arguments)})},{key:"toggleLoadingState",value:function(){this.loadingContainerTarget.classList.contains(a.A.CSS.IS_HIDDEN)?(this.loadingContainerTarget.classList.remove(a.A.CSS.IS_HIDDEN),this.resultsContainerTarget.classList.add(a.A.CSS.IS_HIDDEN)):(this.loadingContainerTarget.classList.add(a.A.CSS.IS_HIDDEN),this.resultsContainerTarget.classList.remove(a.A.CSS.IS_HIDDEN))}}]);var r,n,c}(n.xI);!function(t,e,r){(e=m(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}(b,"targets",["accordionTemplate","loadingContainer","resultsContainer","noResultsContainer"])},90083:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return h}});r(52675),r(89463),r(2259),r(45700),r(28706),r(23792),r(89572),r(2892),r(40875),r(26099),r(60825),r(27495),r(47764),r(25440),r(23500),r(62953);var n=r(13368),o=r(54762);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},i(t)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,p(n.key),n)}}function u(t,e,r){return e=s(e),function(t,e){if(e&&("object"==i(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,c()?Reflect.construct(e,r||[],s(t).constructor):e.apply(t,r))}function c(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(c=function(){return!!t})()}
2function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}function l(t,e){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},l(t,e)}function f(t,e,r){return(e=p(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function p(t){var e=function(t,e){if("object"!=i(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==i(e)?e:e+""}var h=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return f(t=u(this,e,[].concat(n)),"addRegistrationEntry",void 0),f(t,"addRegistrationEntryCount",1),f(t,"addRegistrationEntryLastId",1),t}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}(e,t),function(t,e,r){return e&&a(t.prototype,e),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"initialize",value:function(){this._cacheAddRegistrationEntry(),this._fixFirstRegistrationEntry(),o.u.addValidation(this.formTarget,this),this.requestOptions={contentType:"application/json"}}},{key:"handleAddRegistration",value:function(t){var r=this,n=this.addRegistrationEntryCount;(o.u.handleAddBlock.bind(this)(t,this.registrationEntriesTarget,"addRegistrationEntryCount","addRegistrationEntryLastId",this.addRegistrationEntry,e.registrationEntryPrefix),this.addRegistrationEntryCount>n)&&this.registrationEntriesTarget.querySelectorAll("."+e.registrationEntryPrefix+this.addRegistrationEntryCount).forEach(function(t){t&&o.u.addValidationToBlock(t,r.formTarget,r)})}},{key:"handleDelRegistration",value:function(t){o.u.handleDelBlock.bind(this)(t,this.registrationEntriesTarget,"addRegistrationEntryCount",".o-flushingstationform__registration-entry",e.registrationEntryPrefix)}},{key:"_cacheAddRegistrationEntry",value:function(){this.registrationEntriesTarget&&(this.addRegistrationEntry=this.registrationEntriesTarget.innerHTML)}},{key:"_fixFirstRegistrationEntry",value:function(){this.registrationEntriesTarget.innerHTML=this.registrationEntriesTarget.innerHTML.replace(/#entryId/g,"#1")}}])}(n.xI);f(h,"targets",["form","registrationEntries"]),f(h,"registrationEntryPrefix","js-o-flushingstationform__registration-entry---")},67099:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return p}});r(52675),r(89463),r(2259),r(45700),r(23792),r(89572),r(2892),r(40875),r(26099),r(60825),r(47764),r(62953);var n=r(13368),o=r(22776);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},i(t)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,f(n.key),n)}}function u(t,e,r){return e=s(e),function(t,e){if(e&&("object"==i(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,c()?Reflect.construct(e,r||[],s(t).constructor):e.apply(t,r))}function c(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(c=function(){return!!t})()}
2function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}function l(t,e){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},l(t,e)}function f(t){var e=function(t,e){if("object"!=i(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==i(e)?e:e+""}var p=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),u(this,e,arguments)}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}(e,t),function(t,e,r){return e&&a(t.prototype,e),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"scrollToTop",value:function(t){t.preventDefault();var e=document.body.clientHeight/8;(0,o.A)({targets:[document.body,document.documentElement],scrollTop:0,duration:e,easing:"easeOutCubic"})}}])}(n.xI);!function(t,e,r){(e=f(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}(p,"targets",[])},13771:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return p}});r(52675),r(89463),r(2259),r(45700),r(23792),r(89572),r(2892),r(40875),r(26099),r(60825),r(47764),r(62953);var n=r(13368),o=r(22776);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},i(t)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if("object"!=i(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==i(e)?e:e+""}function c(t,e,r){return e=l(e),function(t,e){if(e&&("object"==i(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,s()?Reflect.construct(e,r||[],l(t).constructor):e.apply(t,r))}function s(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(s=function(){return!!t})()}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}function f(t,e){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},f(t,e)}var p=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),c(this,e,arguments)}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&f(t,e)}(e,t),function(t,e,r){return e&&a(t.prototype,e),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"scrollToTop",value:function(t){t.preventDefault();var e=document.body.clientHeight/8;(0,o.A)({targets:[document.body,document.documentElement],scrollTop:0,duration:e,easing:"easeOutCubic"})}}])}(n.xI)},26825:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return l}});r(52675),r(89463),r(2259),r(45700),r(23792),r(89572),r(2892),r(40875),r(26099),r(60825),r(47764),r(62953);function n(t){return n="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},n(t)}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,s(n.key),n)}}function i(t,e,r){return e=u(e),function(t,e){if(e&&("object"==n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,a()?Reflect.construct(e,r||[],u(t).constructor):e.apply(t,r))}function a(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(a=function(){return!!t})()}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}
2function c(t,e){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},c(t,e)}function s(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var l=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),i(this,e,arguments)}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&c(t,e)}(e,t),function(t,e,r){return e&&o(t.prototype,e),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e)}(r(13368).xI);!function(t,e,r){(e=s(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}(l,"targets",[])},13431:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return g}});r(52675),r(89463),r(2259),r(45700),r(28706),r(2008),r(50113),r(23418),r(23792),r(34782),r(89572),r(62010),r(36033),r(2892),r(40875),r(26099),r(60825),r(27495),r(38781),r(47764),r(23500),r(62953);var n=r(13368),o=r(18248),i=r(54762),a=r(22776),u=r(22849);function c(t){return c="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},c(t)}function s(t){return function(t){if(Array.isArray(t))return f(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||l(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 l(t,e){if(t){if("string"==typeof t)return f(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(t,e):void 0}}function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function p(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,b(n.key),n)}}function h(t,e,r){return e=d(e),function(t,e){if(e&&("object"==c(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,y()?Reflect.construct(e,r||[],d(t).constructor):e.apply(t,r))}function y(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(y=function(){return!!t})()}function d(t){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},d(t)}function v(t,e){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},v(t,e)}function m(t,e,r){return(e=b(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function b(t){var e=function(t,e){if("object"!=c(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==c(e)?e:e+""}var g=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return m(t=h(this,e,[].concat(n)),"config",{requestOptions:"application/json"}),m(t,"formData",null),m(t,"formPages",[]),m(t,"radioButtonState",new Map),t}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&v(t,e)}(e,t),function(t,e,r){return e&&p(t.prototype,e),r&&p(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"activePage",get:function(){return this.formPages.find(function(t){return t.classList.contains(o.A.CSS.IS_ACTIVE)})}},{key:"initialize",value:function(){var t=this.element.dataset.formController,e=null;if(t){var r=document.querySelector("."+t);e=r&&this.application.getControllerForElementAndIdentifier(r,t)}i.u.addValidation(this.element,this,e)}},{key:"connect",value:function(){var t=this;this.element.querySelectorAll(".m-formpage").forEach(function(e){return t.formPages.push(e)});try{this.formPages[0].classList.add(o.A.CSS.IS_ACTIVE)}catch(t){console.warn("\tNo form pages detected in ".concat(this.element.className,"!\n\tThe form needs at least one formpage molecule inside of its {% form_content %} block."))}}},{key:"back",value:function(t){this._switchPage("previous")}},{key:"next",value:function(t){var e=i.u.validate(this.element);e.length>0?i.u.showJumper(this.element,e):((0,u.Dr)(t.currentTarget),this._switchPage())}},{key:"extendFormData",value:function(t){return this.formData=t,t.personInfo&&(t.userMailRecipient=t.personInfo.email),t}},{key:"_switchPage",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"next",e=this.activePage,r="previous"===t?e.previousElementSibling:e.nextElementSibling;r&&(r.classList.contains("is-summary")&&this._generateSummaryPage(),this._saveRadioButtonState(),this._animatePages(e,r))}},{key:"_animatePages",value:function(t,e){var r=this;
2a.A.timeline({easing:"easeOutExpo",duration:1e3}).add({targets:t,opacity:0,complete:function(){t.classList.remove(o.A.CSS.IS_ACTIVE)}}).add({targets:e,opacity:1,begin:function(){e.classList.add(o.A.CSS.IS_ACTIVE),r._applyRadioButtonState()}})}},{key:"_generateSummaryPage",value:function(){var t=this.element.querySelector(".js-summary");t.innerHTML="",this.formPages.filter(function(t){return!t.classList.contains("is-summary")}).forEach(function(e){t.innerHTML+=e.cloneNode(!0).innerHTML}),this._convertSummaryContent(t)}},{key:"_convertSummaryContent",value:function(t){t.querySelectorAll("input, textarea, select").forEach(function(t){if("radio"===t.type)t.checked||t.setAttribute("disabled","");else if("select-one"===t.type){s(t.options).filter(function(t){return!t.selected}).forEach(function(t){return t.setAttribute("disabled","")})}else"textarea"===t.type?(t.setAttribute("readonly",""),t.dataset.value&&(t.value=t.dataset.value)):t.setAttribute("readonly","")}),this._removeElementsFromSummary(t)}},{key:"_removeElementsFromSummary",value:function(t){var e=t.querySelectorAll(".g-form__cta"),r=t.querySelectorAll(".g-form__error-jumper"),n=t.querySelectorAll(".js-summary-hide-zero"),o=[].concat(s(e),s(r));o.length>0&&o.forEach(function(t){return t.remove()});var i=s(n);i.length>0&&i.forEach(function(t){var e=t instanceof HTMLInputElement?t:t.querySelector("input");e&&0===Number(e.value)&&t.remove()})}},{key:"_saveRadioButtonState",value:function(){var t=s(this.activePage.querySelectorAll(".a-radiobutton input")).filter(function(t){return t.checked});if(t.length>0){var e,r=function(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=l(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}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 i,a=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}(t);try{for(r.s();!(e=r.n()).done;){var n=e.value;this.radioButtonState.set(n.name,n.value)}}catch(t){r.e(t)}finally{r.f()}}}},{key:"_applyRadioButtonState",value:function(){var t=this;this.radioButtonState.forEach(function(e,r){var n=s(t.activePage.querySelectorAll('[name="'.concat(r,'"]'))).find(function(t){return t.value===e});n.removeAttribute("disabled"),n.checked="checked"})}}])}(n.xI);m(g,"targets",["summary"])},57731:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return v}});r(52675),r(89463),r(2259),r(45700),r(28706),r(23792),r(89572),r(2892),r(40875),r(79432),r(26099),r(60825),r(47764),r(62953);var n=r(13368),o=r(18248),i=r(29808),a=r(74692),u=r.n(a);function c(t){return c="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},c(t)}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,d(n.key),n)}}function l(t,e,r){return e=p(e),function(t,e){if(e&&("object"==c(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,f()?Reflect.construct(e,r||[],p(t).constructor):e.apply(t,r))}function f(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(f=function(){return!!t})()}function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},p(t)}function h(t,e){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},h(t,e)}function y(t,e,r){return(e=d(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function d(t){var e=function(t,e){if("object"!=c(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
2(t,"string");return"symbol"==c(e)?e:e+""}var v=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return y(t=l(this,e,[].concat(n)),"_dotsEnabled",!1),y(t,"_dotsClass","o-gallery__dots"),y(t,"_thumbnavigationEnabled",!1),t}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&h(t,e)}(e,t),function(t,e,r){return e&&s(t.prototype,e),r&&s(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"initialize",value:function(){this.data.get("dots")&&(this._dotsEnabled=JSON.parse(this.data.get("dots"))),this.data.get("thumbnavigation")&&(this._thumbnavigationEnabled=JSON.parse(this.data.get("thumbnavigation"))),this._initImageSlider(),this._thumbnavigationEnabled&&this.hasThumbListTarget&&this._initThumbnavigation(this.imageSliderTarget),this.element.classList.add(o.A.CSS.IS_ACTIVE)}},{key:"_initImageSlider",value:function(){var t=u()(this.imageSliderTarget);t[0].classList.contains("slick-initialized")||t.slick({infinite:!1,touchThreshold:8,dragging:!0,nextArrow:this.nextButtonTarget,prevArrow:this.prevButtonTarget,dots:this._dotsEnabled&&!this._thumbnavigationEnabled,rows:0,edgeFriction:0,appendDots:this._dotsEnabled?this.sliderContainerTarget:u()(this),zIndex:100,dotsClass:this._dotsClass})}},{key:"_initThumbnavigation",value:function(){var t=this.thumbListTarget.querySelectorAll(".o-gallery__thumb-item");t[0].classList.add(o.A.CSS.IS_ACTIVE),this.hasThumbListTarget&&u()(this.imageSliderTarget).on("beforeChange",function(e,r,n,i){t[n].classList.remove(o.A.CSS.IS_ACTIVE),t[i].classList.add(o.A.CSS.IS_ACTIVE)})}},{key:"handleThumbClick",value:function(t){var e=(0,i.Pe)(t.currentTarget);u()(this.imageSliderTarget).slick("slickGoTo",e)}}])}(n.xI);y(v,"targets",["sliderContainer","imageSlider","nextButton","prevButton","thumbList"])},15563:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return y}});r(52675),r(89463),r(2259),r(45700),r(23792),r(89572),r(2892),r(40875),r(26099),r(60825),r(47764),r(23500),r(62953);var n=r(13368),o=r(29808),i=r(80063).i,a=r(74692);function u(t){return u="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},u(t)}function c(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,h(n.key),n)}}function s(t,e,r){return e=f(e),function(t,e){if(e&&("object"==u(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,l()?Reflect.construct(e,r||[],f(t).constructor):e.apply(t,r))}function l(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(l=function(){return!!t})()}function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}function p(t,e){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},p(t,e)}function h(t){var e=function(t,e){if("object"!=u(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==u(e)?e:e+""}var y=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),s(this,e,arguments)}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&p(t,e)}(e,t),function(t,e,r){return e&&c(t.prototype,e),r&&c(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"initialize",value:function(){if(void 0===this.element.dataset.teasergrid){new i.Equalizer(a(this.element),{equalizeByRow:!0,equalizeOn:"medium"});var t=this.element.querySelectorAll("[data-equalizer-watch] .a-image");t&&this._reinitializeEqualizer(t),this._containsBlogSearchResultList()&&(0,o.S6)(window.innerWidth,this.element)}
2this.element.dataset.image&&this._setBackgroundImageAndOverlay()}},{key:"_reinitializeEqualizer",value:function(t){var e=this;t.forEach(function(t){t.addEventListener("lazyloaded",function(){return i.reInit(a(e.element))})})}},{key:"_containsBlogSearchResultList",value:function(){return this.element.querySelectorAll("div.m-teaserblog").length}},{key:"_setBackgroundImageAndOverlay",value:function(){var t=this.element.dataset.image,e=this.element.classList.contains("o-gridcontainer--add-dark-overlay");if(t){var r=this.element.parentElement;if(this.element.classList.contains("o-gridcontainer--not-standalone")&&(r=this.element),r){r.classList.add("o-gridcontainer--with-background-image");var n="url("+t+")";r.style.backgroundImage=e?"linear-gradient(to bottom, rgba(0, 0, 0, 0.50), rgba(0, 0, 0, 0.5)), "+n:n}}}}])}(n.xI);!function(t,e,r){(e=h(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}(y,"targets",[])},72671:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return b}});r(52675),r(89463),r(2259),r(45700),r(28706),r(23418),r(23792),r(34782),r(89572),r(62010),r(2892),r(40875),r(26099),r(60825),r(27495),r(38781),r(47764),r(62953);var n=r(13368),o=r(18248),i=r(74692),a=r.n(i),u=r(80063).i;function c(t){return c="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},c(t)}function s(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return l(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}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 i,a=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function f(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,m(n.key),n)}}function p(t,e,r){return e=y(e),function(t,e){if(e&&("object"==c(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,h()?Reflect.construct(e,r||[],y(t).constructor):e.apply(t,r))}function h(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(h=function(){return!!t})()}function y(t){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},y(t)}function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}function v(t,e,r){return(e=m(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function m(t){var e=function(t,e){if("object"!=c(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==c(e)?e:e+""}var b=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return v(t=p(this,e,[].concat(n)),"_relativeScrollDistance",0),v(t,"_scrollThreshold",o.A.CSS.HEADER_SCROLL_THRESHOLD),v(t,"_searchAlwaysActive",!1),v(t,"_searchAlwaysActiveClass","show-search"),t}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&d(t,e)}(e,t),function(t,e,r){return e&&f(t.prototype,e),r&&f(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"initialize",value:function(){var t=this;a()(window).on("viega:app:scrolldown",function(e,r){return t._handleScrollDown(e,r)}),a()(window).on("viega:app:scrollup",function(e,r){return t._handleScrollUp(e,r)}),this._searchAlwaysActive="true"===this.data.get("search-always-active")}},{key:"connect",value:function(){this._checkHeaderVisibility(),this._initMutationObserver()}},{key:"disconnect",value:function(){this.observer&&this.observer.disconnect()}},{key:"_initMutationObserver",value:function(){var t=this;this.observer=new MutationObserver(function(e,r){var n,o=s(e);try{for(o.s();!(n=o.n()).done;){var i=n.value;"attributes"===i.type&&"style"===i.attributeName&&t._checkHeaderVisibility()}}catch(t){o.e(t)}finally{o.f()}}),this.observer.observe(this.element,{attributes:!0})}},{key:"_checkHeaderVisibility",value:function(){"none"===window.getComputedStyle(this.element).display&&document.body.classList.add(o.A.CSS.HEADER_HIDDEN)}},{key:"_handleScrollUp",value:function(t,e){0===this._relativeScrollDistance&&(this._scrollUpStartPosition=e.oldY),this._relativeScrollDistance=this._scrollUpStartPosition-e.newY,this.element.classList.contains(o.A.CSS.IS_ACTIVE)||(e.oldY>o.A.CSS.HEADER_HEIGHT&&this._relativeScrollDistance>=this._scrollThreshold||e.oldY<o.A.CSS.HEADER_HEIGHT)&&this.element.classList.add(o.A.CSS.IS_ACTIVE)}},{key:"_handleScrollDown",value:function(t,e){var r=this;this._relativeScrollDistance=0,this.element.classList.remove(o.A.CSS.IS_ACTIVE);var n=this.application.getControllerForElementAndIdentifier(document.querySelector(".m-mainnav"),"m-mainnav"),i=o.A.CSS.HEADER_HEIGHT;n.getDrillDownMenuState()?(this.containerTarget.classList.add(o.A.CSS.HAS_ACTIVE_DRILLDOWN),i=o.A.CSS.NAV_HEIGHT):this.containerTarget.classList.remove(o.A.CSS.HAS_ACTIVE_DRILLDOWN),e.newY>=i?(this.element.classList.add(o.A.CSS.IS_STICKY),this.containerTarget.classList.contains(o.A.CSS.HAS_TRANSITION)||setTimeout(function(){r.containerTarget.classList.add(o.A.CSS.HAS_TRANSITION),r._searchAlwaysActive&&r.element.classList.add(r._searchAlwaysActiveClass)},200)):(this.element.classList.remove(o.A.CSS.IS_STICKY),this.containerTarget.classList.remove(o.A.CSS.HAS_TRANSITION),this._searchAlwaysActive&&this.element.classList.remove(this._searchAlwaysActiveClass)),u.MediaQuery.atLeast("xlarge")&&(n.isSubmenueActive()||(n._toggleShader(!1),n.closeAll()))}}])}(n.xI);v(b,"targets",["container"]),v(b,"observer",void 0)},59111:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return b}});r(52675),r(89463),r(2259),r(45700),r(28706),r(23792),r(34782),r(89572),r(2892),r(40875),r(26099),r(60825),r(47764),r(23500),r(62953);var n=r(13368),o=r(18248),i=r(22776),a=r(29808),u=r(75940),c=r(74692),s=r(80063).i;function l(t){return l="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},l(t)}function f(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,m(n.key),n)}}function p(t,e,r){return e=y(e),function(t,e){if(e&&("object"==l(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,h()?Reflect.construct(e,r||[],y(t).constructor):e.apply(t,r))}function h(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(h=function(){return!!t})()}
2function y(t){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},y(t)}function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}function v(t,e,r){return(e=m(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function m(t){var e=function(t,e){if("object"!=l(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==l(e)?e:e+""}var b=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return v(t=p(this,e,[].concat(n)),"_animationConfig",{easing:"easeOutExpo",duration:500}),v(t,"_removeClickListener",null),v(t,"_activeFlyoutTab",null),v(t,"_relativeScrollDistance",0),t}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&d(t,e)}(e,t),function(t,e,r){return e&&f(t.prototype,e),r&&f(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"toggleWatchlistFlyout",value:function(t){this.hasWatchlistFlyoutTarget&&this._toggleFlyout(this.watchlistFlyoutTarget)}},{key:"_toggleFlyout",value:function(t){this.flyoutTarget.classList.contains(o.A.CSS.IS_ANIMATING)||(t.classList.contains(o.A.CSS.IS_HIDDEN)?(this._openFlyout(t),this.hasMenuButtonTarget&&this.menuButtonTarget.classList.remove(o.A.CSS.IS_ACTIVE)):this._closeFlyout())}},{key:"initialize",value:function(){var t=this;c(window).on("viega:app:scrolldown",function(e,r){return t._handleScrollDown(e,r)}),c(window).on("viega:app:scrollup",function(e,r){return t._handleScrollUp(e,r)})}},{key:"connect",value:function(){u.l.subscribe(this._onWatchlistStorageChange.bind(this))}},{key:"_onWatchlistStorageChange",value:function(t){var e="";if(t&&t.hasOwnProperty("items"))if(this.updateWatchlistItemCount(t.items.length),t.items.length>0){var r=this.watchlistItemTemplateTarget.innerHTML;this.hasWatchlistFlyoutTarget&&this.watchlistFlyoutTarget.classList.remove(o.A.CSS.IS_EMPTY),t.items.slice(Math.max(t.items.length-3,0)).forEach(function(t){e+=r.slice(1).interpolate((0,a.SH)(t))})}else this.updateWatchlistItemCount(0);else this.updateWatchlistItemCount(0);""===e&&this.hasWatchlistFlyoutTarget&&!this.watchlistFlyoutTarget.classList.contains(o.A.CSS.IS_EMPTY)&&this.watchlistFlyoutTarget.classList.add(o.A.CSS.IS_EMPTY),this.hasWatchlistContainerTarget&&(this.watchlistContainerTarget.innerHTML=e)}},{key:"updateWatchlistItemCount",value:function(t){this.watchlistCounterTargets.forEach(function(e){e.innerHTML=t})}},{key:"toggleCountryFlyout",value:function(){this.flyoutTarget.classList.contains(o.A.CSS.IS_ANIMATING)||(this.countrySelectionTabTarget.classList.contains(o.A.CSS.IS_HIDDEN)?this._openFlyout(this.countrySelectionTabTarget):this._closeFlyout())}},{key:"openMobileNavigation",value:function(t){this.flyoutTarget.classList.contains(o.A.CSS.IS_ANIMATING)||(this.navigationTabTarget.classList.contains(o.A.CSS.IS_HIDDEN)?(this._openFlyout(this.navigationTabTarget),this.hasMenuButtonTarget&&this.menuButtonTarget.classList.add(o.A.CSS.IS_ACTIVE)):this._closeFlyout())}},{key:"_openFlyout",value:function(t){var e=this,r=i.A.timeline(this._animationConfig);null===this._activeFlyoutTab&&(this.flyoutTarget.classList.remove(o.A.CSS.IS_HIDDEN),t.classList.remove(o.A.CSS.IS_HIDDEN),r.add({targets:this.flyoutTarget,height:[0,t.offsetHeight],display:["none","block"],begin:function(){e.flyoutTarget.classList.add(o.A.CSS.IS_ANIMATING),e._toggleShader(!0)}})),this._activeFlyoutTab!==t&&(null!==this._activeFlyoutTab&&(this._activeFlyoutTab.classList.add(o.A.CSS.IS_HIDDEN),t.classList.remove(o.A.CSS.IS_HIDDEN),r.add({targets:this.flyoutTarget,height:t.offsetHeight,begin:function(){e.flyoutTarget.classList.add(o.A.CSS.IS_ANIMATING)}})),r.add({targets:t,opacity:[0,1],complete:function(){e.flyoutTarget.classList.remove(o.A.CSS.IS_ANIMATING),e._activeFlyoutTab=t}}))}},{key:"_closeFlyout",value:function(){var t=this;i.A.timeline(this._animationConfig).add({targets:this._activeFlyoutTab,opacity:[1,0],begin:function(){t.flyoutTarget.classList.add(o.A.CSS.IS_ANIMATING),t._toggleShader(!1)}}).add({targets:this.flyoutTarget,height:0,complete:function(){t._activeFlyoutTab.classList.add(o.A.CSS.IS_HIDDEN),t._activeFlyoutTab=null,t.flyoutTarget.classList.add(o.A.CSS.IS_HIDDEN),t.flyoutTarget.classList.remove(o.A.CSS.IS_ANIMATING)}}),this.hasMenuButtonTarget&&this.menuButtonTarget.classList.remove(o.A.CSS.IS_ACTIVE)}},{key:"_toggleShader",value:function(t){!0===t?(s.MediaQuery.atLeast("xlarge")&&(this._removeClickListener=(0,a.X2)(this.element,this._closeFlyout.bind(this))),document.body.classList.add(o.A.CSS.IS_ACTIVE_SHADER)):(s.MediaQuery.atLeast("xlarge")&&this._removeClickListener&&this._removeClickListener(),document.removeEventListener("click",this._closeFlyout.bind(this)),document.body.classList.remove(o.A.CSS.IS_ACTIVE_SHADER))}},{key:"_handleScrollDown",value:function(t,e){this._relativeScrollDistance=0,this.hasFlyoutTarget&&!this.flyoutTarget.classList.contains(o.A.CSS.IS_HIDDEN)&&e.newY>=o.A.CSS.NAV_HEIGHT&&this.flyoutTarget.classList.add(o.A.CSS.IS_STICKY)}},{key:"_handleScrollUp",value:function(t,e){0===this._relativeScrollDistance&&(this._scrollUpStartPosition=e.oldY),this._relativeScrollDistance=this._scrollUpStartPosition-e.newY,this.hasFlyoutTarget&&this.flyoutTarget.classList.contains(o.A.CSS.IS_STICKY)&&(e.oldY>o.A.CSS.HEADER_HEIGHT&&this._relativeScrollDistance>=this._scrollThreshold||e.oldY<o.A.CSS.NAV_HEIGHT)&&this.flyoutTarget.classList.remove(o.A.CSS.IS_STICKY)}}])}(n.xI);v(b,"targets",["menuButton","flyout","navigationTab","countrySelectionTab","watchlistItemTemplate","watchlistCounter","watchlistContainer","watchlistFlyout"])},75045:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return p}});r(52675),r(89463),r(2259),r(45700),r(23792),r(89572),r(2892),r(40875),r(26099),r(60825),r(47764),r(62953);var n=r(13368),o=r(54762);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},i(t)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,f(n.key),n)}}function u(t,e,r){return e=s(e),function(t,e){if(e&&("object"==i(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,c()?Reflect.construct(e,r||[],s(t).constructor):e.apply(t,r))}function c(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(c=function(){return!!t})()}
2function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}function l(t,e){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},l(t,e)}function f(t){var e=function(t,e){if("object"!=i(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==i(e)?e:e+""}var p=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),u(this,e,arguments)}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}(e,t),function(t,e,r){return e&&a(t.prototype,e),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"initialize",value:function(){o.u.addValidation(this.formTarget,this)}}])}(n.xI);!function(t,e,r){(e=f(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}(p,"targets",["form"])},16089:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return p}});r(52675),r(89463),r(2259),r(45700),r(23792),r(89572),r(2892),r(40875),r(26099),r(60825),r(47764),r(62953);var n=r(13368),o=r(54762);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},i(t)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,f(n.key),n)}}function u(t,e,r){return e=s(e),function(t,e){if(e&&("object"==i(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,c()?Reflect.construct(e,r||[],s(t).constructor):e.apply(t,r))}function c(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(c=function(){return!!t})()}
2function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}function l(t,e){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},l(t,e)}function f(t){var e=function(t,e){if("object"!=i(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==i(e)?e:e+""}var p=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),u(this,e,arguments)}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}(e,t),function(t,e,r){return e&&a(t.prototype,e),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"initialize",value:function(){o.u.addValidation(this.formTarget,this)}}])}(n.xI);!function(t,e,r){(e=f(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}(p,"targets",["form"])},45527:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return E}});r(52675),r(89463),r(66412),r(2259),r(45700),r(78125),r(28706),r(2008),r(23418),r(23792),r(94490),r(34782),r(54554),r(89572),r(62010),r(4731),r(60479),r(2892),r(40875),r(79432),r(26099),r(58940),r(3362),r(60825),r(27495),r(38781),r(47764),r(25440),r(23500),r(62953);var n=r(13368),o=r(29808),i=r(11026),a=r(18248),u=r(36497),c=r(74692),s=r.n(c),l=r(22849);function f(t){return f="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},f(t)}function p(){p=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var i=e&&e.prototype instanceof g?e:g,a=Object.create(i.prototype),u=new L(n||[]);return o(a,"_invoke",{value:C(t,r,u)}),a}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var y="suspendedStart",d="suspendedYield",v="executing",m="completed",b={};function g(){}function S(){}function w(){}var _={};s(_,a,function(){return this});var T=Object.getPrototypeOf,O=T&&T(T(x([])));O&&O!==r&&n.call(O,a)&&(_=O);var E=w.prototype=g.prototype=Object.create(_);function j(t){["next","throw","return"].forEach(function(e){s(t,e,function(t){return this._invoke(e,t)})})}function P(t,e){function r(o,i,a,u){var c=h(t[o],t,i);if("throw"!==c.type){var s=c.arg,l=s.value;return l&&"object"==f(l)&&n.call(l,"__await")?e.resolve(l.__await).then(function(t){r("next",t,a,u)},function(t){r("throw",t,a,u)}):e.resolve(l).then(function(t){s.value=t,a(s)},function(t){return r("throw",t,a,u)})}u(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e(function(e,o){r(t,n,e,o)})}return i=i?i.then(o,o):o()}})}function C(e,r,n){var o=y;return function(i,a){if(o===v)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var c=A(u,n);if(c){if(c===b)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===y)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=h(e,r,n);if("normal"===s.type){if(o=n.done?m:d,s.arg===b)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=m,n.method="throw",n.arg=s.arg)}}}function A(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&
vendor: 6,003 bytes, line 2
2(r.method="return",r.arg=t,A(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var i=h(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,b;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,b):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function x(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(f(e)+" is not iterable")}return S.prototype=w,o(E,"constructor",{value:w,configurable:!0}),o(w,"constructor",{value:S,configurable:!0}),S.displayName=s(w,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===S||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,s(t,c,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},j(P.prototype),s(P.prototype,u,function(){return this}),e.AsyncIterator=P,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new P(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next()})},j(E),s(E,c,"Generator"),s(E,a,function(){return this}),s(E,"toString",function(){return"[object Generator]"}),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=x,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(I),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return u.type="throw",u.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,b):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),b},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),I(r),b}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;I(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:x(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),b}},e}function h(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,o)}function y(t){return function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function a(t){h(i,n,o,a,u,"next",t)}function u(t){h(i,n,o,a,u,"throw",t)}a(void 0)})}}function d(t){return function(t){if(Array.isArray(t))return m(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||v(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 v(t,e){if(t){if("string"==typeof t)return m(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?m(t,e):void 0}}function m(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function b(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,O(n.key),n)}}function g(t,e,r){return e=w(e),function(t,e){if(e&&("object"==f(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,S()?Reflect.construct(e,r||[],w(t).constructor):e.apply(t,r))}function S(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(S=function(){return!!t})()}
2function w(t){return w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},w(t)}function _(t,e){return _=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},_(t,e)}function T(t,e,r){return(e=O(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function O(t){var e=function(t,e){if("object"!=f(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==f(e)?e:e+""}var E=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return T(t=g(this,e,[].concat(n)),"filterModuleNames",["m-lightsearchoptionsfilter"]),T(t,"filterPayload",{}),T(t,"filterPayloadReady",!1),T(t,"isFetching",!1),T(t,"filterControllers",[]),T(t,"searchHighlightLimit",2),T(t,"maxResultsPerPage",9),T(t,"isInitialCall",!0),T(t,"filterNbr",0),T(t,"isDataLayerEnabled",!1),t}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_(t,e)}(e,t),function(t,e,r){return e&&b(t.prototype,e),r&&b(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"connect",value:function(){var t=this;this.updateSearchHeadline(),Promise.resolve().then(function(){t.readQueryParameters(),t.subscribeToFilterControllers(),t.subscribeToPagination(),t.addEventListeners(),0===t.filterNbr&&t.handleFilterChange()}),(0,o.S6)(window.innerWidth,this.element),this.isDataLayerEnabled=document.body.hasAttribute(l.y9)}},{key:"disconnect",value:function(){this.removeEventListeners()}},{key:"readQueryParameters",value:function(){var t=this,e=(0,o.pg)("st");if(e){var r=!0;try{e=JSON.parse(e).values}catch(t){r=!1}r&&Object.keys(e).forEach(function(r){var n=t.element.querySelector('[data-name="'.concat(r,'"]'));if(n){var o=t.application.getControllerForElementAndIdentifier(n,n.dataset.controller);o&&o.updateFilters(e[r])}})}}},{key:"subscribeToFilterControllers",value:function(){var t=this,e=[];d(this.filterModuleNames).forEach(function(r){var n,o=function(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=v(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}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 i,a=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}(t.element.querySelectorAll(".".concat(r)));try{for(o.s();!(n=o.n()).done;){var i=n.value;t.filterNbr++;var a=t.application.getControllerForElementAndIdentifier(i,r);a?e.push(a):t.filterModuleNames.splice(t.filterModuleNames.indexOf(r),1)}}catch(t){o.e(t)}finally{o.f()}}),e.forEach(function(e){t.filterControllers.push(e),e.subscribe(t.handleFilterChange.bind(t))})}},{key:"subscribeToPagination",value:function(){var t=this.getPaginationController();t&&(t.resultsPerPage=this.maxResultsPerPage,t.subscribe(this.handlePaginationClick.bind(this)))}},{key:"getPaginationController",value:function(){return this.application.getControllerForElementAndIdentifier(this.element.querySelector(".m-pagination"),"m-pagination")}},{key:"getActivePageNumber",value:function(){var t=this.getPaginationController();return t?t.activePageNumber:1}},{key:"handleFilterChange",value:(c=y(p().mark(function t(e){var r,n,i;return p().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(r=parseInt((0,o.pg)("page"))||0,n=this.isInitialCall&&r>1?r:1,e?this.buildFilterPayload(e):this.filterPayloadReady=!0,!this.filterPayloadReady){t.next=15;break}return(0,o.Pd)("st",JSON.stringify({values:this.filterPayload})),t.next=7,this.fetchResults(n);case 7:if(!(i=t.sent).success){t.next=14;break}return this.updateUI(n,i.data.filter,i.data.totalResults,!0),t.next=12,this.renderSearchResults(i.data);case 12:this.isInitialCall||this.sendACDLEvent(l.T9,i.data.totalResults,n),(0,o.S6)(window.innerWidth,this.element);case 14:this.isInitialCall=!1;case 15:case"end":return t.stop()}},t,this)})),function(t){return c.apply(this,arguments)})},{key:"fetchResults",value:(n=y(p().mark(function t(){var e,r,n=arguments;return p().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e=n.length>0&&void 0!==n[0]?n[0]:1,this.isFetching=!0,this.toggleLoadingState(),t.next=5,i.j.request(this.data.get("apiurl"),{method:"POST",body:{q:(0,o.pg)("q"),number:this.maxResultsPerPage,start:(e-1)*this.maxResultsPerPage,values:this.filterPayload,view:"blogSearch"}});case 5:return r=t.sent,t.next=8,(0,l.o$)(r,this.element);case 8:return this.toggleLoadingState(),this.isFetching=!1,this.isInitialCall&&this.sendACDLEvent(l.r4,r.data.totalResults,e),t.abrupt("return",r);case 12:case"end":return t.stop()}},t,this)})),function(){return n.apply(this,arguments)})},{key:"sendACDLEvent",value:function(t,e,r){if(this.isDataLayerEnabled){var n=[],i={value:"",filterType:""},a=[];
2this.filterControllers.forEach(function(t){t.activeFilterLabels.forEach(function(e){if(e.id){var r=Object.create(i);r.value=e.id,t.element.dataset.name&&(r.filterType=t.element.dataset.name),a.push(r)}})}),a.length>0&&n.push({searchoptions:a}),window.adobeDataLayer=window.adobeDataLayer||[];var u=(0,o.pg)("q");u&&(u=u.replace(/\+/g," ")),window.adobeDataLayer.push({event:t,xdm:{web:{search:{searchTerm:u,searchResults:parseInt(e)>0?e:"ZERO",pagination:r,searchContentType:n.length>0?n:"everything",context:l.OT}}}})}}},{key:"buildFilterPayload",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.filterPayload[t.key]=t.value,Object.keys(this.filterPayload).length!==this.filterNbr||this.filterPayloadReady||(this.filterPayloadReady=!0),this.filterPayloadReady}},{key:"handlePaginationClick",value:(r=y(p().mark(function t(e){var r,n,i=arguments;return p().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r=i.length>1&&void 0!==i[1]&&i[1],t.next=3,this.fetchResults(e);case 3:(n=t.sent).success&&(this.renderSearchResults(n.data),this.updateUI(e,n.data.filter,n.data.totalResults,r),(0,o.S6)(window.innerWidth,this.element),this._jumpToTopOfResultList(),this.sendACDLEvent(l.Nx,n.data.totalResults,e));case 5:case"end":return t.stop()}},t,this)})),function(t){return r.apply(this,arguments)})},{key:"updateUI",value:function(t,e,r){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(parseInt(r)>0){this.showResultText(),this.updateResultCounter(t,r),this.updateFilterUI(e,r);var o=this.getPaginationController();o&&(o.totalResultCount=parseInt(r),(1===t||n)&&o.goTo(t,!0))}else this.showNoResultText()}},{key:"updateResultCounter",value:function(t,e){var r=t*this.maxResultsPerPage;this.resultSpanTarget.innerText="".concat(r-(this.maxResultsPerPage-1)," - ").concat(r<e?r:e),this.totalResultsTarget.innerText=e}},{key:"updateSearchHeadline",value:function(){var t=document.querySelector(".js-search-headline")||document.querySelector("h1"),e=this.data.get("headline-prefix"),r=this.data.get("corrected-search-query"),n="".concat(e," ").concat(r);t&&e&&r&&(t.innerHTML=n)}},{key:"updateFilterUI",value:function(t,e){this.filterControllers.forEach(function(r){"options-filter-group"===r.element.dataset.name&&r.updateFilters(t[r.element.dataset.name],e)})}},{key:"showResultText",value:function(){this.totalResultsContainerTarget.classList.remove(a.A.CSS.IS_HIDDEN),this.noResultsContainerTarget.classList.add(a.A.CSS.IS_HIDDEN)}},{key:"showNoResultText",value:function(){this.totalResultsContainerTarget.classList.add(a.A.CSS.IS_HIDDEN),this.noResultsContainerTarget.classList.remove(a.A.CSS.IS_HIDDEN)}},{key:"renderSearchResults",value:function(t){return t.hasOwnProperty("items")&&t.items.length>0?(this.searchResultsContainerTarget.innerHTML=(0,o.eX)(t.items,this,["link","name","alt","adobeDataLayerId","dataLayerJsonString"]),(0,u.o)(),(0,l.jN)(this.searchResultsContainerTarget),!0):(this.searchResultsContainerTarget.innerHTML="",!1)}},{key:"toggleLoadingState",value:function(){this.searchLoadingContainerTarget.classList.contains(a.A.CSS.IS_HIDDEN)?(this.searchLoadingContainerTarget.classList.remove(a.A.CSS.IS_HIDDEN),this.searchResultsContainerTarget.classList.add(a.A.CSS.IS_HIDDEN)):(this.searchLoadingContainerTarget.classList.add(a.A.CSS.IS_HIDDEN),this.searchResultsContainerTarget.classList.remove(a.A.CSS.IS_HIDDEN))}},{key:"addEventListeners",value:function(){this._onPopstate=this._onPopstate.bind(this),window.addEventListener("popstate",this._onPopstate)}},{key:"removeEventListeners",value:function(){window.removeEventListener("popstate",this._onPopstate)}},{key:"_onPopstate",value:function(t){var e=parseInt((0,o.pg)("page"))||0;e&&this.handlePaginationClick(e,!0)}},{key:"resetFilters",value:function(){this._resetFilterUI(),this._submitFilterReset()}},{key:"_resetFilterUI",value:function(){this.filterContainerTarget.querySelectorAll(".m-lightsearchoptionsfilter__option").forEach(function(t){var e=t.querySelector("input");s()(e).prop("checked",!1)})}},{key:"_submitFilterReset",value:function(){var t=this;this.filterContainerTarget.querySelectorAll("div.m-lightsearchoptionsfilter").forEach(function(e){var r=t.application.getControllerForElementAndIdentifier(e,"m-lightsearchoptionsfilter");r&&r.submitFilter()})}},{key:"_jumpToTopOfResultList",value:function(){var t=document.querySelector("div.o-lightsearch").getBoundingClientRect().top+window.scrollY;window.scrollTo({top:t-e.HEADER_OFFSET,behavior:"smooth"})}}]);var r,n,c}(n.xI);T(E,"targets",["searchResultsContainer","currentPage","maxPage","totalResultsContainer","totalResults","resultSpan","resultQuerySpan","noResultsContainer","paginationContainer","searchLoadingContainer","seminarTeaserResultTemplate","referenceTeaserResultTemplate","productTeaserResultTemplate","pageTeaserResultTemplate","manualTeaserResultTemplate","imageTeaserResultTemplate","icsDownloadTeaserResultTemplate","etmTeaserResultTemplate","downloadTeaserResultTemplate","paginationTemplate","blogPageTeaserResultTemplate","blogSearchTeaserResultTemplate","filterContainer"]),T(E,"HEADER_OFFSET",150)},12623:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return m}});r(52675),r(89463),r(66412),r(2259),r(45700),r(78125),r(28706),r(2008),r(23792),r(48598),r(62062),r(94490),r(34782),r(89572),r(62010),r(4731),r(60479),r(2892),r(40875),r(26099),r(3362),r(60825),r(27495),r(47764),r(25440),r(23500),r(62953);var n=r(13368),o=r(54762),i=r(29808);function a(t){return a="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},a(t)}function u(){u=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(t,e,r){return t[e]=r}}function p(t,e,r,n){var i=e&&e.prototype instanceof g?e:g,a=Object.create(i.prototype),u=new L(n||[]);return o(a,"_invoke",{value:C(t,r,u)}),a}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=p;var y="suspendedStart",d="suspendedYield",v="executing",m="completed",b={};function g(){}function S(){}function w(){}var _={};f(_,c,function(){return this});var T=Object.getPrototypeOf,O=T&&T(T(x([])));O&&O!==r&&n.call(O,c)&&(_=O);var E=w.prototype=g.prototype=Object.create(_);function j(t){["next","throw","return"].forEach(function(e){f(t,e,function(t){return this._invoke(e,t)})})}function P(t,e){function r(o,i,u,c){var s=h(t[o],t,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==a(f)&&n.call(f,"__await")?e.resolve(f.__await).then(function(t){r("next",t,u,c)},function(t){r("throw",t,u,c)}):e.resolve(f).then(function(t){l.value=t,u(l)},function(t){return r("throw",t,u,c)})}c(s.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e(function(e,o){r(t,n,e,o)})}return i=i?i.then(o,o):o()}})}function C(e,r,n){var o=y;return function(i,a){if(o===v)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}
vendor: 5,808 bytes, line 2
2for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var c=A(u,n);if(c){if(c===b)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===y)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=h(e,r,n);if("normal"===s.type){if(o=n.done?m:d,s.arg===b)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=m,n.method="throw",n.arg=s.arg)}}}function A(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,A(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var i=h(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,b;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,b):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function x(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(a(e)+" is not iterable")}return S.prototype=w,o(E,"constructor",{value:w,configurable:!0}),o(w,"constructor",{value:S,configurable:!0}),S.displayName=f(w,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===S||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,f(t,l,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},j(P.prototype),f(P.prototype,s,function(){return this}),e.AsyncIterator=P,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new P(p(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next()})},j(E),f(E,l,"Generator"),f(E,c,function(){return this}),f(E,"toString",function(){return"[object Generator]"}),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=x,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(I),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return u.type="throw",u.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,b):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),b},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),I(r),b}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;I(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:x(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),b}},e}function c(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,o)}function s(t){return function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function a(t){c(i,n,o,a,u,"next",t)}function u(t){c(i,n,o,a,u,"throw",t)}a(void 0)})}}function l(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,v(n.key),n)}}function f(t,e,r){return e=h(e),function(t,e){if(e&&("object"==a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,p()?Reflect.construct(e,r||[],h(t).constructor):e.apply(t,r))}function p(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(p=function(){return!!t})()}
2function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}function y(t,e){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},y(t,e)}function d(t,e,r){return(e=v(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function v(t){var e=function(t,e){if("object"!=a(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==a(e)?e:e+""}var m=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),f(this,e,arguments)}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&y(t,e)}(e,t),function(t,e,r){return e&&l(t.prototype,e),r&&l(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"initialize",value:function(){o.u.addValidation(this.formTarget,this),this.requestOptions={contentType:"text/plain;charset=UTF-8"},this.fetchPhainaData()}},{key:"fetchPhainaData",value:(n=s(u().mark(function t(){var e,r;return u().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e=(0,i.pg)("interview_id")){t.next=4;break}return console.warn("No Parameter found"),t.abrupt("return",null);case 4:return t.prev=4,t.next=7,this.fetchInterviewFromBackend(e);case 7:return r=t.sent,this.phainaInterviewData=r,t.abrupt("return",r);case 12:return t.prev=12,t.t0=t.catch(4),console.error("Error fetching datas"),t.abrupt("return",null);case 16:case"end":return t.stop()}},t,this,[[4,12]])})),function(){return n.apply(this,arguments)})},{key:"fetchInterviewFromBackend",value:(r=s(u().mark(function t(r){var n,o,i,a,c;return u().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return o=window.location.pathname.replace(".html",""),i="".concat(o).concat(e.PHAINA_SERVLET_SELECTOR,"?interviewId=").concat(encodeURIComponent(r)),t.next=4,fetch(i,{method:"GET",headers:{Accept:"application/json"}});case 4:if((a=t.sent).ok){t.next=7;break}throw new Error("Backend servlet request failed: ".concat(a.status," ").concat(a.statusText));case 7:return t.next=9,a.json();case 9:if(!(c=t.sent).errors){t.next=12;break}throw new Error("GraphQL errors: ".concat(JSON.stringify(c.errors)));case 12:return t.abrupt("return",(null===(n=c.data)||void 0===n?void 0:n.interview)||null);case 13:case"end":return t.stop()}},t)})),function(t){return r.apply(this,arguments)})},{key:"formatQuestionHistory",value:function(t){return t.map(function(t){var e;return{question:(null===(e=t.question)||void 0===e||null===(e=e.translation)||void 0===e?void 0:e.description)||"",answers:(t.givenAnswers||[]).map(function(t){var e;return null===(e=t.translation)||void 0===e?void 0:e.value}).filter(Boolean).join(", ")}})}},{key:"extendFormData",value:function(t){var e=t,r=e.email;if(r&&(e.userMailRecipient=r),this.phainaInterviewData){var n;e.interviewId=this.phainaInterviewData.id;var o=(null===(n=this.phainaInterviewData.result)||void 0===n?void 0:n.products)||[];e.recommendedProducts=o.map(function(t){var e;return null===(e=t.translation)||void 0===e?void 0:e.name}).filter(Boolean).join(", "),e.questionHistory=this.formatQuestionHistory(this.phainaInterviewData.questionHistory||[]),e.configurationUrl=window.location.href}else e.errorMailText=this.element.dataset.errormailtext;return e}}]);var r,n}(n.xI);d(m,"targets",["form"]),d(m,"PHAINA_SERVLET_SELECTOR",".phaina-interview.json")},71811:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return v}});r(52675),r(89463),r(66412),r(2259),r(45700),r(78125),r(28706),r(50113),r(23792),r(94490),r(34782),r(26910),r(89572),r(62010),r(4731),r(60479),r(2892),r(40875),r(26099),r(3362),r(60825),r(27495),r(47764),r(42762),r(23500),r(62953);var n=r(13368),o=r(11026),i=r(18248);function a(t){return a="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},a(t)}function u(){u=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(t,e,r){return t[e]=r}}function p(t,e,r,n){var i=e&&e.prototype instanceof g?e:g,a=Object.create(i.prototype),u=new L(n||[]);return o(a,"_invoke",{value:C(t,r,u)}),a}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=p;var y="suspendedStart",d="suspendedYield",v="executing",m="completed",b={};function g(){}function S(){}function w(){}var _={};f(_,c,function(){return this});var T=Object.getPrototypeOf,O=T&&T(T(x([])));O&&O!==r&&n.call(O,c)&&(_=O);var E=w.prototype=g.prototype=Object.create(_);function j(t){["next","throw","return"].forEach(function(e){f(t,e,function(t){return this._invoke(e,t)})})}function P(t,e){function r(o,i,u,c){var s=h(t[o],t,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==a(f)&&n.call(f,"__await")?e.resolve(f.__await).then(function(t){r("next",t,u,c)},function(t){r("throw",t,u,c)}):e.resolve(f).then(function(t){l.value=t,u(l)},function(t){return r("throw",t,u,c)})}c(s.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e(function(e,o){r(t,n,e,o)})}return i=i?i.then(o,o):o()}})}function C(e,r,n){var o=y;return function(i,a){if(o===v)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}
vendor: 5,615 bytes, line 2
2for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var c=A(u,n);if(c){if(c===b)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===y)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=h(e,r,n);if("normal"===s.type){if(o=n.done?m:d,s.arg===b)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=m,n.method="throw",n.arg=s.arg)}}}function A(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,A(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var i=h(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,b;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,b):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function x(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(a(e)+" is not iterable")}return S.prototype=w,o(E,"constructor",{value:w,configurable:!0}),o(w,"constructor",{value:S,configurable:!0}),S.displayName=f(w,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===S||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,f(t,l,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},j(P.prototype),f(P.prototype,s,function(){return this}),e.AsyncIterator=P,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new P(p(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next()})},j(E),f(E,l,"Generator"),f(E,c,function(){return this}),f(E,"toString",function(){return"[object Generator]"}),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=x,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(I),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return u.type="throw",u.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,b):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),b},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),I(r),b}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;I(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:x(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),b}},e}function c(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,o)}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,d(n.key),n)}}function l(t,e,r){return e=p(e),function(t,e){if(e&&("object"==a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,f()?Reflect.construct(e,r||[],p(t).constructor):e.apply(t,r))}function f(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(f=function(){return!!t})()}
2function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},p(t)}function h(t,e){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},h(t,e)}function y(t,e,r){return(e=d(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function d(t){var e=function(t,e){if("object"!=a(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==a(e)?e:e+""}var v=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return y(t=l(this,e,[].concat(n)),"currentPartNumber",void 0),t}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&h(t,e)}(e,t),function(t,e,r){return e&&s(t.prototype,e),r&&s(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"__validatePartNumber",value:function(t){var e=String(null!=t?t:"").trim();return""===e?null:/^\d+$/.test(e)?e:null}},{key:"processPartNumber",value:function(t){var e=this.__validatePartNumber(this.inputTarget.value);e?e!==this.currentPartNumber&&(this.currentPartNumber=e,this.__saveAdressInSessionStorage(),this.clearUI(),this.handleApiCall(e)):(this.clearUI(),this.currentPartNumber="",this.noInputErrorTarget.classList.add(i.A.CSS.IS_ACTIVE))}},{key:"clearUI",value:function(){this.resultContainerTarget.innerHTML="",this.noResultsErrorTarget.classList.remove(i.A.CSS.IS_ACTIVE),this.noInputErrorTarget.classList.remove(i.A.CSS.IS_ACTIVE)}},{key:"__saveAdressInSessionStorage",value:function(){var t=this.__getAdressField();t&&sessionStorage.setItem(e.SESSSION_STORAGE_ADRESS_ITEM_KEY,t.value)}},{key:"__loadAdressFromSessionStorage",value:function(){var t=this.__getAdressField();t&&(t.value=sessionStorage.getItem(e.SESSSION_STORAGE_ADRESS_ITEM_KEY))}},{key:"__getAdressField",value:function(){if(this.hasResultContainerTarget)return this.resultContainerTarget.querySelector('textarea[name="PurchaserAddressData"]')}},{key:"handleApiCall",value:(r=u().mark(function t(e){var r,n,a,c=this;return u().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(r=this.__validatePartNumber(e)){t.next=6;break}return this.clearUI(),this.currentPartNumber="",this.noResultsErrorTarget.classList.add(i.A.CSS.IS_ACTIVE),t.abrupt("return");case 6:return n="".concat(this.data.get("api-url"),"/").concat(encodeURIComponent(r),"?locale=").concat(this.data.get("locale")),t.next=9,o.j.request(n,{transformer:function(t){if(t){var e=c.data.get("locale").split("_")[0];if(e){var r=function(t,e){return t.stringValues.find(function(t){return t.hasOwnProperty(e)})[e]};t.data.partDescription=r(t.data.partDescription,e),t.data.material=r(t.data.material,e),t.data.chargeNos.sort()}}return t}});case 9:(a=t.sent).success?(this.resultContainerTarget.innerHTML=this.resultTemplateTarget.innerHTML.interpolate(a.data),this.__loadAdressFromSessionStorage()):(this.failedUserInputTarget.textContent=r,this.noResultsErrorTarget.classList.add(i.A.CSS.IS_ACTIVE));case 11:case"end":return t.stop()}},t,this)}),n=function(){var t=this,e=arguments;return new Promise(function(n,o){var i=r.apply(t,e);function a(t){c(i,n,o,a,u,"next",t)}function u(t){c(i,n,o,a,u,"throw",t)}a(void 0)})},function(t){return n.apply(this,arguments)})}]);var r,n}(n.xI);y(v,"targets",["input","noInputError","noResultsError","resultContainer","resultTemplate","failedUserInput"]),y(v,"SESSSION_STORAGE_ADRESS_ITEM_KEY","adress")},2915:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return l}});r(52675),r(89463),r(2259),r(45700),r(23792),r(89572),r(2892),r(40875),r(26099),r(60825),r(47764),r(62953);function n(t){return n="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},n(t)}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,s(n.key),n)}}function i(t,e,r){return e=u(e),function(t,e){if(e&&("object"==n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,a()?Reflect.construct(e,r||[],u(t).constructor):e.apply(t,r))}function a(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(a=function(){return!!t})()}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}
2function c(t,e){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},c(t,e)}function s(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var l=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),i(this,e,arguments)}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&c(t,e)}(e,t),function(t,e,r){return e&&o(t.prototype,e),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e)}(r(13368).xI);!function(t,e,r){(e=s(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}(l,"targets",[])},84538:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return x}});r(52675),r(89463),r(66412),r(2259),r(45700),r(78125),r(28706),r(23418),r(23792),r(94490),r(34782),r(89572),r(62010),r(4731),r(60479),r(2892),r(40875),r(79432),r(26099),r(3362),r(60825),r(27495),r(38781),r(47764),r(23500),r(62953);var n=r(13368),o=r(31201),i=(r(50113),r(62062),r(58940),r(4409)),a=r(18248);function u(t){return u="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},u(t)}function c(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,s(n.key),n)}}function s(t){var e=function(t,e){if("object"!=u(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==u(e)?e:e+""}function l(t,e,r){return e=p(e),function(t,e){if(e&&("object"==u(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,f()?Reflect.construct(e,r||[],p(t).constructor):e.apply(t,r))}function f(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(f=function(){return!!t})()}function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},p(t)}function h(t,e){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},h(t,e)}var y=function(t){function e(t,r,n,o,i,a,u,c){var s;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(s=l(this,e,[t,r,n,o,i,a,u,c])).resultsContainer=u,s.resultEl=a,s}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&h(t,e)}(e,t),function(t,e,r){return e&&c(t.prototype,e),r&&c(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"_onResultClick",value:function(t){var e=this,r=t.currentTarget;this.getMarkers().then(function(t){var n=t.find(function(t){return parseInt(t.content.id)===parseInt(r.getAttribute("data-id"))});e.resultsContainer.querySelector("".concat(e.resultEl,'[data-id="').concat(n.content.id,'"]')).classList.contains(a.A.CSS.IS_ACTIVE)&&e._setMapPosition(n)})}},{key:"_onMarkerClick",value:function(t){var e=this.resultsContainer.querySelector("".concat(this.resultEl,'[data-id="').concat(t.content.id,'"]'));e.classList.contains(a.A.CSS.IS_ACTIVE)||e.querySelector("a.o-roadshow__event").click(),setTimeout(function(){e.scrollIntoView({behavior:"smooth",block:"center"})},300),this._setMapPosition(t)}},{key:"_setMapPosition",value:function(t){this.map.setCenter(t.position),this.map.setZoom(13)}}])}(i.A),d=r(36497),v=r(74692),m=r.n(v),b=r(29808),g=r(80063).i;function S(t){return S="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},S(t)}function w(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return _(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}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 i,a=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}function _(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function T(){T=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),u=new L(n||[]);return o(a,"_invoke",{value:C(t,r,u)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var p="suspendedStart",h="suspendedYield",y="executing",d="completed",v={};function m(){}function b(){}function g(){}var w={};s(w,a,function(){return this});var _=Object.getPrototypeOf,O=_&&_(_(x([])));O&&O!==r&&n.call(O,a)&&(w=O);var E=g.prototype=m.prototype=Object.create(w);function j(t){["next","throw","return"].forEach(function(e){s(t,e,function(t){return this._invoke(e,t)})})}function P(t,e){function r(o,i,a,u){var c=f(t[o],t,i);if("throw"!==c.type){var s=c.arg,l=s.value;return l&&"object"==S(l)&&n.call(l,"__await")?e.resolve(l.__await).then(function(t){r("next",t,a,u)},function(t){r("throw",t,a,u)}):e.resolve(l).then(function(t){s.value=t,a(s)},function(t){return r("throw",t,a,u)})}u(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e(function(e,o){r(t,n,e,o)})}return i=i?i.then(o,o):o()}})}function C(e,r,n){var o=p;return function(i,a){if(o===y)throw Error("Generator is already running");if(o===d){if("throw"===i)throw a;return{value:t,done:!0}}
vendor: 5,945 bytes, line 2
2for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var c=A(u,n);if(c){if(c===v)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=d,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var s=f(e,r,n);if("normal"===s.type){if(o=n.done?d:h,s.arg===v)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=d,n.method="throw",n.arg=s.arg)}}}function A(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,A(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,v;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function x(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(S(e)+" is not iterable")}return b.prototype=g,o(E,"constructor",{value:g,configurable:!0}),o(g,"constructor",{value:b,configurable:!0}),b.displayName=s(g,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,s(t,c,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},j(P.prototype),s(P.prototype,u,function(){return this}),e.AsyncIterator=P,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new P(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next()})},j(E),s(E,c,"Generator"),s(E,a,function(){return this}),s(E,"toString",function(){return"[object Generator]"}),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=x,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(I),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return u.type="throw",u.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),I(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;I(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:x(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}function O(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,o)}function E(t){return function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function a(t){O(i,n,o,a,u,"next",t)}function u(t){O(i,n,o,a,u,"throw",t)}a(void 0)})}}function j(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,L(n.key),n)}}function P(t,e,r){return e=A(e),function(t,e){if(e&&("object"==S(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,C()?Reflect.construct(e,r||[],A(t).constructor):e.apply(t,r))}function C(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(C=function(){return!!t})()}function A(t){return A=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},A(t)}
2function k(t,e){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},k(t,e)}function I(t,e,r){return(e=L(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function L(t){var e=function(t,e){if("object"!=S(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=S(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==S(e)?e:e+""}var x=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return I(t=P(this,e,[].concat(n)),"accordion",{}),I(t,"dealerLocator",null),I(t,"_consentGiven",!1),I(t,"_hasConsentManager",!0),I(t,"_consentType","googlemaps"),t}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&k(t,e)}(e,t),function(t,e,r){return e&&j(t.prototype,e),r&&j(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"initialize",value:function(){(0,d.Z)();var t=this.element.getAttribute("data-has-consentmanager");this._hasConsentManager=!t||"true"===t,m()(window).on("changed.zf.mediaquery",function(){return(0,d.Z)()}),!0===this._hasConsentManager?m()(window).on(a.A.EVENTS.CONSENT.CONSENT_CHANGED,this._handleConsentChanged.bind(this)):(this._consentGiven=!0,m()(window).off(a.A.EVENTS.CONSENT.CONSENT_CHANGED),this._initGoogleMaps())}},{key:"connect",value:(n=E(T().mark(function t(){return T().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}},t)})),function(){return n.apply(this,arguments)})},{key:"_connectGoogleMaps",value:(r=E(T().mark(function t(){var e,r;return T().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,e=JSON.parse(this.data.get("roadshow-data")),r=JSON.parse(this.data.get("auto-zoom")),this.dealerLocator.setData(this.extractItems(e)),t.next=6,this.dealerLocator.initializeMap();case 6:this.dealerLocator.showAll(),r&&(0,b._q)(this.dealerLocator),t.next=13;break;case 10:t.prev=10,t.t0=t.catch(0),console.error(t.t0);case 13:return t.prev=13,this.hasAccordionTarget&&this._initAccordion(),t.finish(13);case 16:case"end":return t.stop()}},t,this,[[0,10,13,16]])})),function(){return r.apply(this,arguments)})},{key:"_handleConsentChanged",value:function(t,e){this._consentGiven=(0,b.DG)(this._consentType,e.details),this._consentGiven?this._initGoogleMaps():this._initPlaceholderImage(this._consentType)}},{key:"_initPlaceholderImage",value:function(){for(this.hasPlaceholderTarget&&this.placeholderTarget.classList.remove(a.A.CSS.IS_HIDDEN);this.googlecontainerTarget.firstChild;)this.googlecontainerTarget.removeChild(this.googlecontainerTarget.firstChild);(0,b.lb)()}},{key:"_initGoogleMaps",value:function(){this.hasPlaceholderTarget&&this.placeholderTarget.classList.add(a.A.CSS.IS_HIDDEN),(0,b.lb)();var t=JSON.parse(this.data.get("initial-zoom"))||6;this.dealerLocator=new o.A({mapContainer:"googleMapsContainer",resultEl:".o-roadshow__list-item",resultsContainer:this.resultContainerTarget,apiKey:this.data.get("api-key"),hasCluster:!0,hasCustomResults:!1,googleMap:y,computeDistanceBetweenPoints:function(t,e){var r=new google.maps.LatLng({lat:e.lat,lng:e.lng});return google.maps.geometry.spherical.computeDistanceBetween(t,r)},mapOptions:{mapId:this.data.get("map-id")||"DEMO_MAP_ID",clickableIcons:!1,zoom:t,center:JSON.parse(this.data.get("initial-position")),templateVars:["distance","dealerName","city","street","housenumber","zipCode","country","phoneNumber","email","detailhref"],templateDelimiters:["{","}"]}}),this._connectGoogleMaps()}},{key:"extractItems",value:function(t){var e=[];for(var r in t)for(var n in t[r]){var o,i=w(t[r][n]);try{for(i.s();!(o=i.n()).done;){var a=o.value;e.push({geometry:a.geometry,id:a.id})}}catch(t){i.e(t)}finally{i.f()}}return e}},{key:"_initAccordion",value:function(){this.accordion=new g.Accordion(m()(this.accordionTargets),{multiExpand:!1,allowAllClosed:!0})}}]);var r,n}(n.xI);I(x,"targets",["schedule","accordion","resultContainer","placeholder","googlecontainer"])},95017:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return T}});r(52675),r(89463),r(66412),r(2259),r(45700),r(78125),r(28706),r(2008),r(50113),r(23418),r(23792),r(94490),r(34782),r(54554),r(89572),r(62010),r(4731),r(60479),r(2892),r(40875),r(79432),r(26099),r(58940),r(3362),r(60825),r(27495),r(38781),r(47764),r(25440),r(42762),r(23500),r(62953);var n=r(13368),o=r(29808),i=r(22849),a=r(11026),u=(r(10397),r(36497)),c=r(18248);function s(t){return s="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},s(t)}function l(){l=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(t,e,r){return t[e]=r}}function p(t,e,r,n){var i=e&&e.prototype instanceof g?e:g,a=Object.create(i.prototype),u=new L(n||[]);return o(a,"_invoke",{value:C(t,r,u)}),a}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=p;var y="suspendedStart",d="suspendedYield",v="executing",m="completed",b={};function g(){}function S(){}function w(){}var _={};f(_,a,function(){return this});var T=Object.getPrototypeOf,O=T&&T(T(x([])));O&&O!==r&&n.call(O,a)&&(_=O);var E=w.prototype=g.prototype=Object.create(_);function j(t){["next","throw","return"].forEach(function(e){f(t,e,function(t){return this._invoke(e,t)})})}function P(t,e){function r(o,i,a,u){var c=h(t[o],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==s(f)&&n.call(f,"__await")?e.resolve(f.__await).then(function(t){r("next",t,a,u)},function(t){r("throw",t,a,u)}):e.resolve(f).then(function(t){l.value=t,a(l)},function(t){return r("throw",t,a,u)})}u(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e(function(e,o){r(t,n,e,o)})}return i=i?i.then(o,o):o()}})}function C(e,r,n){var o=y;return function(i,a){if(o===v)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}
vendor: 6,682 bytes, line 2
2for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var c=A(u,n);if(c){if(c===b)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===y)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=h(e,r,n);if("normal"===s.type){if(o=n.done?m:d,s.arg===b)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=m,n.method="throw",n.arg=s.arg)}}}function A(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,A(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var i=h(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,b;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,b):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function x(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(s(e)+" is not iterable")}return S.prototype=w,o(E,"constructor",{value:w,configurable:!0}),o(w,"constructor",{value:S,configurable:!0}),S.displayName=f(w,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===S||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,f(t,c,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},j(P.prototype),f(P.prototype,u,function(){return this}),e.AsyncIterator=P,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new P(p(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next()})},j(E),f(E,c,"Generator"),f(E,a,function(){return this}),f(E,"toString",function(){return"[object Generator]"}),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=x,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(I),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return u.type="throw",u.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,b):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),b},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),I(r),b}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;I(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:x(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),b}},e}function f(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,o)}function p(t){return function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function a(t){f(i,n,o,a,u,"next",t)}function u(t){f(i,n,o,a,u,"throw",t)}a(void 0)})}}function h(t){return function(t){if(Array.isArray(t))return d(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||y(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 y(t,e){if(t){if("string"==typeof t)return d(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?d(t,e):void 0}}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function v(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,_(n.key),n)}}function m(t,e,r){return e=g(e),function(t,e){if(e&&("object"==s(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,b()?Reflect.construct(e,r||[],g(t).constructor):e.apply(t,r))}function b(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(b=function(){return!!t})()}function g(t){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},g(t)}
2function S(t,e){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},S(t,e)}function w(t,e,r){return(e=_(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function _(t){var e=function(t,e){if("object"!=s(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==s(e)?e:e+""}var T=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return w(t=m(this,e,[].concat(n)),"filterModuleNames",["m-searchtextfilter","m-searchoptionsfilter","m-searchfacetfilter","m-searchsortfilter"]),w(t,"acdlFilterModuleNames",["m-searchoptionsfilter","m-searchfacetfilter"]),w(t,"filterPayload",{}),w(t,"filterPayloadReady",!1),w(t,"isFetching",!1),w(t,"filterControllers",[]),w(t,"searchHighlightLimit",2),w(t,"maxResultsPerPage",10),w(t,"isInitialCall",!0),w(t,"isDataLayerEnabled",!1),t}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&S(t,e)}(e,t),function(t,e,r){return e&&v(t.prototype,e),r&&v(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"connect",value:function(){var t=this;Promise.resolve().then(function(){t.readQueryParameters(),t.subscribeToFilterControllers(),t.subscribeToPagination(),t.addEventListeners()}),this.isDataLayerEnabled=document.body.hasAttribute(i.y9)}},{key:"disconnect",value:function(){this.removeEventListeners()}},{key:"readQueryParameters",value:function(){var t=this,e=(0,o.pg)("st");if(e){var r=!0;try{e=JSON.parse(e).values}catch(t){r=!1}r&&Object.keys(e).forEach(function(r){var n=t.element.querySelector('[data-name="'.concat(r,'"]'));if(n){var o=t.application.getControllerForElementAndIdentifier(n,n.dataset.controller);o&&o.updateFilters(e[r])}})}}},{key:"subscribeToFilterControllers",value:function(){var t=this,e=[];h(this.filterModuleNames).forEach(function(r){var n=t.element.querySelector(".".concat(r)),o=t.application.getControllerForElementAndIdentifier(n,r);o?e.push(o):t.filterModuleNames.splice(t.filterModuleNames.indexOf(r),1)}),e.forEach(function(e){t.filterControllers.push(e),e.subscribe(t.handleFilterChange.bind(t))})}},{key:"subscribeToPagination",value:function(){var t=this.getTopPaginationController();t&&(t.resultsPerPage=this.maxResultsPerPage,t.subscribe(this.handlePaginationClick.bind(this)));var e=this.getPaginationController();e&&(e.resultsPerPage=this.maxResultsPerPage,e.subscribe(this.handlePaginationClick.bind(this)))}},{key:"getTopPaginationController",value:function(){return this.application.getControllerForElementAndIdentifier(this.element.querySelectorAll(".m-pagination").item(0),"m-pagination")}},{key:"getPaginationController",value:function(){return this.application.getControllerForElementAndIdentifier(this.element.querySelectorAll(".m-pagination").item(1),"m-pagination")}},{key:"getActivePageNumber",value:function(){var t=this.getPaginationController();return t?t.activePageNumber:1}},{key:"handleFilterChange",value:(s=p(l().mark(function t(e){var r,n,a;return l().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(r=parseInt((0,o.pg)("page"))||0,n=this.isInitialCall&&r>1?r:1,this.buildFilterPayload(e),!this.filterPayloadReady){t.next=15;break}return(0,o.Pd)("st",JSON.stringify({values:this.filterPayload})),t.next=7,this.fetchResults(n);case 7:if(!(a=t.sent).success){t.next=14;break}return this.updateUI(n,a.data.filter,a.data.totalResults,!0),this.handleActiveFilterDisplay(),t.next=13,this.renderSearchResults(a.data);case 13:this.isInitialCall||this.sendACDLEvent(i.T9,a.data.totalResults,n);case 14:this.isInitialCall=!1;case 15:case"end":return t.stop()}},t,this)})),function(t){return s.apply(this,arguments)})},{key:"fetchResults",value:(n=p(l().mark(function t(){var e,r,n=arguments;return l().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e=n.length>0&&void 0!==n[0]?n[0]:1,this.isFetching=!0,this.toggleLoadingState(),t.next=5,a.j.request(this.data.get("apiurl"),{method:"POST",body:{q:(0,o.pg)("q"),number:this.maxResultsPerPage,start:(e-1)*this.maxResultsPerPage,values:this.filterPayload}});case 5:return r=t.sent,t.prev=6,t.next=9,(0,i.o$)(r,this.element);case 9:t.next=13;break;case 11:t.prev=11,t.t0=t.catch(6);case 13:return this.toggleLoadingState(),this.isFetching=!1,this.isInitialCall&&this.sendACDLEvent(i.r4,r.data.totalResults,e),t.abrupt("return",r);case 17:case"end":return t.stop()}},t,this,[[6,11]])})),function(){return n.apply(this,arguments)})},{key:"getActiveSearchOptionsFilters",value:function(t){var e=[];
2return t.activeFilterLabels.forEach(function(t){t.searchfiltername?e.push(t.searchfiltername):e.push(t.label)}),e}},{key:"getActiveFacetFiltersForGroup",value:function(t,e){var r=[];return t.filterContentTargets.forEach(function(t,n){n===e&&t.querySelectorAll("input").forEach(function(t){if(!0===t.checked){var e=t.closest(".a-checkbox");if(e){var n=e.querySelector("label").cloneNode(!0);n=(n=n.textContent).replace(/\([0-9]+\)/,"").trim(),r.push(n)}}})}),r}},{key:"getInternationalFacetFilterGroupName",value:function(t){var e=t.innerText;return"facetfiltertype"in t.dataset&&(e=t.dataset.facetfiltertype),e}},{key:"sendACDLEvent",value:function(t,e,r){var n=this;if(this.isDataLayerEnabled){var a=[];this.filterControllers.forEach(function(t){if(t.identifier===n.acdlFilterModuleNames[0]){var e=n.getActiveSearchOptionsFilters(t);e.length>0&&a.push({searchoptions:e})}t.identifier===n.acdlFilterModuleNames[1]&&t.hasFacetfiltertypeTarget&&t.facetfiltertypeTargets.forEach(function(e,r){var o=n.getInternationalFacetFilterGroupName(e),i=n.getActiveFacetFiltersForGroup(t,r);if(i.length>0){var u=w({},o,i);a.push(u)}})}),window.adobeDataLayer=window.adobeDataLayer||[];var u=(0,o.pg)("q");u&&(u=u.replace(/\+/g," ")),window.adobeDataLayer.push({event:t,xdm:{web:{search:{searchTerm:u,searchResults:parseInt(e)>0?e:"ZERO",pagination:r,searchContentType:a.length>0?a:"everything",context:i.g9}}}})}}},{key:"buildFilterPayload",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.filterPayload[t.key]=t.value,Object.keys(this.filterPayload).length!==this.filterModuleNames.length||this.filterPayloadReady||(this.filterPayloadReady=!0),this.filterPayloadReady}},{key:"handleActiveFilterDisplay",value:function(){var t=this.activeFilterTemplateTarget.innerHTML,e="";this.filterControllers.forEach(function(r){r.activeFilterLabels.forEac
2h(function(n){!function(n){e+=t.slice(1).interpolate({id:(0,o.z)(n.id),label:(0,o.z)(n.label),name:(0,o.z)(r.element.dataset.name)})}(n)})}),this.activeFiltersContainerTarget.innerHTML=e}},{key:"resetAllFilters",value:function(t){var e,r=function(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=y(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}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 i,a=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}(this.activeFiltersContainerTarget.cloneNode(!0).children);try{for(r.s();!(e=r.n()).done;){var n=e.value;this.removeFilter(n.dataset.name,n.dataset.id)}}catch(t){r.e(t)}finally{r.f()}}},{key:"activeFilterButtonClick",value:function(t){this.removeFilter(t.currentTarget.dataset.name,t.currentTarget.dataset.id)}},{key:"removeFilter",value:function(t,e){var r=this.filterControllers.find(function(e){return e.element.dataset.name===t});r&&r.removeFilter(e)}},{key:"handlePaginationClick",value:(r=p(l().mark(function t(e){var r,n,o=arguments;return l().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r=o.length>1&&void 0!==o[1]&&o[1],t.next=3,this.fetchResults(e);case 3:(n=t.sent).success&&(this.renderSearchResults(n.data),this.updateUI(e,n.data.filter,n.data.totalResults,r),this.sendACDLEvent(i.Nx,n.data.totalResults,e)),this._setNotClickedPagination();case 6:case"end":return t.stop()}},t,this)})),function(t){return r.apply(this,arguments)})},{key:"updateUI",value:function(t,e,r){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(parseInt(r)>0){this.showResultText(),this.updateResultCounter(t,r),this.handleResetButtons(),this.updateFilterUI(e);var o=this.getTopPaginationController();o&&(o.totalResultCount=parseInt(r),(1===t||n)&&o.goTo(t,!0));var i=this.getPaginationController();i&&(i.totalResultCount=parseInt(r),(1===t||n)&&i.goTo(t,!0))}else this.showNoResultText()}},{key:"updateResultCounter",value:function(t,e){var r=t*this.maxResultsPerPage;this.resultSpanTarget.innerText="".concat(r-(this.maxResultsPerPage-1)," - ").concat(r<e?r:e),this.totalResultsTarget.innerText=e}},{key:"handleResetButtons",value:function(){this.hasActiveFilters()?this.resetButtonTarget.classList.remove("a-button--inactive"):this.resetButtonTarget.classList.add("a-button--inactive")}},{key:"updateFilterUI",value:function(t){this.filterControllers.forEach(function(e){"options-filter-group"!==e.element.dataset.name&&"facets-filter-group"!==e.element.dataset.name||e.updateFilters(t[e.element.dataset.name])})}},{key:"showResultText",value:function(){this.totalResultsContainerTarget.classList.remove(c.A.CSS.IS_HIDDEN),this.noResultsContainerTarget.classList.add(c.A.CSS.IS_HIDDEN)}},{key:"showNoResultText",value:function(){this.totalResultsContainerTarget.classList.add(c.A.CSS.IS_HIDDEN),this.noResultsContainerTarget.classList.remove(c.A.CSS.IS_HIDDEN)}},{key:"hasActiveFilters",value:function(){var t=0;return this.filterControllers.forEach(function(e){e.activeFilterLabels.forEac
2h(function(e){t++})}),t>0}},{key:"renderSearchResults",value:function(t){return t.hasOwnProperty("items")&&t.items.length>0?(this.searchResultsContainerTarget.innerHTML=(0,o.eX)(t.items,this,["link","name","alt","adobeDataLayerId","dataLayerJsonString"]),(0,u.o)(),(0,i.jN)(this.searchResultsContainerTarget),!0):(this.searchResultsContainerTarget.innerHTML="",!1)}},{key:"toggleLoadingState",value:function(){this.searchLoadingContainerTarget.classList.contains(c.A.CSS.IS_HIDDEN)?(this.searchLoadingContainerTarget.classList.remove(c.A.CSS.IS_HIDDEN),this.searchResultsContainerTarget.classList.add(c.A.CSS.IS_HIDDEN)):(this.searchLoadingContainerTarget.classList.add(c.A.CSS.IS_HIDDEN),this.searchResultsContainerTarget.classList.remove(c.A.CSS.IS_HIDDEN))}},{key:"_setNotClickedPagination",value:function(){var t=this.getPaginationController(),e=this.getTopPaginationController();t&&e&&(t.isClicked?e.goTo(t.activePageNumber,!0,!1):e.isClicked&&t.goTo(e.activePageNumber,!0,!1),t.isClicked=!1,e.isClicked=!1)}},{key:"addEventListeners",value:function(){this._onPopstate=this._onPopstate.bind(this),window.addEventListener("popstate",this._onPopstate)}},{key:"removeEventListeners",value:function(){window.removeEventListener("popstate",this._onPopstate)}},{key:"_onPopstate",value:function(t){var e=parseInt((0,o.pg)("page"))||0;e&&this.handlePaginationClick(e,!0)}}]);var r,n,s}(n.xI);w(T,"targets",["resetButton","activeFilterTemplate","activeFiltersContainer","searchResultsContainer","currentPage","maxPage","totalResultsContainer","totalResults","resultSpan","noResultsContainer","paginationContainer","searchLoadingContainer","seminarTeaserResultTemplate","referenceTeaserResultTemplate","productTeaserResultTemplate","pageTeaserResultTemplate","manualTeaserResultTemplate","imageTeaserResultTemplate","icsDownloadTeaserResultTemplate","etmTeaserResultTemplate","downloadTeaserResultTemplate","paginationTemplate","blogPageTeaserResultTemplate"])},43979:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return l}});r(52675),r(89463),r(2259),r(45700),r(23792),r(89572),r(2892),r(40875),r(26099),r(60825),r(47764),r(62953);function n(t){return n="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},n(t)}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,i(n.key),n)}}function i(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}function a(t,e,r){return e=c(e),function(t,e){if(e&&("object"==n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,u()?Reflect.construct(e,r||[],c(t).constructor):e.apply(t,r))}function u(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(u=function(){return!!t})()}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}
2function s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},s(t,e)}var l=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),a(this,e,arguments)}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(e,t),function(t,e,r){return e&&o(t.prototype,e),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"initialize",value:function(){if(this.element.dataset.image){var t=this.element.dataset.image,e=this.element.classList.contains("o-section--add-dark-overlay");if(t){var r="url("+t+")";this.element.style.backgroundImage=e?"linear-gradient(to bottom, rgba(0, 0, 0, 0.50), rgba(0, 0, 0, 0.5)), "+r:r}}}}])}(r(13368).xI)},63467:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return p}});r(52675),r(89463),r(2259),r(45700),r(28706),r(23792),r(89572),r(2892),r(40875),r(26099),r(60825),r(47764),r(23500),r(62953);var n=r(13368),o=r(54762);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},i(t)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,f(n.key),n)}}function u(t,e,r){return e=s(e),function(t,e){if(e&&("object"==i(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,c()?Reflect.construct(e,r||[],s(t).constructor):e.apply(t,r))}function c(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(c=function(){return!!t})()}
2function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}function l(t,e){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},l(t,e)}function f(t){var e=function(t,e){if("object"!=i(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==i(e)?e:e+""}var p=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),u(this,e,arguments)}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}(e,t),function(t,e,r){return e&&a(t.prototype,e),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"initialize",value:function(){o.u.addValidation(this.formTarget,this),this.requestOptions={isSeminarDocumentsForm:!0}}},{key:"openURL",value:function(){if(0===o.u.validate(this.formTarget,this).length){var t=this.formTarget.action,e=this.fieldsContainerTarget.querySelectorAll(".a-input__input");e.forEach(function(r,n){t=t.concat(r.value),n!==e.length-1&&(t=t.concat("_"))}),window.open(t)}}}])}(n.xI);!function(t,e,r){(e=f(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}(p,"targets",["form","fieldsContainer"])},39739:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return d}});r(52675),r(89463),r(2259),r(45700),r(28706),r(2008),r(23418),r(23792),r(89572),r(2892),r(40875),r(79432),r(26099),r(60825),r(47764),r(42762),r(23500),r(62953);var n=r(13368),o=r(18248),i=r(74692),a=r.n(i);function u(t){return u="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},u(t)}function c(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,y(n.key),n)}}function s(t,e,r){return e=f(e),function(t,e){if(e&&("object"==u(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,l()?Reflect.construct(e,r||[],f(t).constructor):e.apply(t,r))}function l(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(l=function(){return!!t})()}function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}function p(t,e){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},p(t,e)}function h(t,e,r){return(e=y(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function y(t){var e=function(t,e){if("object"!=u(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==u(e)?e:e+""}var d=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return h(t=s(this,e,[].concat(n)),"isStandaloneComponent",void 0),h(t,"locationInputs",null),t}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&p(t,e)}(e,t),function(t,e,r){return e&&c(t.prototype,e),r&&c(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"initialize",value:function(){(this.isStandaloneComponent=!!this.actionButtonTarget.querySelector("button"),this.locationInputs=this.locationSelectionTarget.querySelectorAll("input"),this._fillSelectionWithDates(!0),this.isStandaloneComponent)?(this.timeSelectionTarget.closest("div").classList.add(o.A.CSS.IS_HIDDEN),this._manageWebinarFields(!1)):(Array.from(this.locationInputs).filter(function(t){return t.checked}).length>0?this._removeDisabledStateForSelection():this.dateSelectionTarget.querySelector("select").setAttribute("disabled",""),this._manageWebinarFields(!0,!0));this._insertSeminarDatasFromAPI()}},{key:"handleLocationSelection",value:function(){this._fillSelectionWithDates(!1),this._removeDisabledStateForSelection(),this.isStandaloneComponent?(this._setDisabledStateForCTAButton(),this._manageWebinarFields(!1)):this._manageWebinarFields(!0)}},{key:"seminarRegistrationFormController",get:function(){var t=document.querySelector(".o-seminarregistrationform");return this.application.getControllerForElementAndIdentifier(t,"o-seminarregistrationform")}},{key:"handleDateSelection",value:function(t){var e=this._manageWebinarFields(!0,!1);this.isStandaloneComponent&&(this.data.get("apiurl")&&this._setSubmitUrl(t),e?this._setDisabledStateForCTAButton():this._removeDisabledStateForCTAButton())}},{key:"handleTimeSelection",value:function(){this._removeDisabledStateForCTAButton()}},{key:"_setSubmitUrl",value:function(){var t=event.target,e=t.options[t.selectedIndex].getAttribute("data-redirecturl");this.formTarget.setAttribute("action",e),this.formTarget.setAttribute("method","POST")}},{key:"_manageWebinarFields",value:function(t,r){var n=this,i=!1;
2return this.locationInputs.forEach(function(a){a.checked&&a.value?a.value!==e.webinar_id?n.timeSelectionTarget.closest("div").classList.add(o.A.CSS.IS_HIDDEN):(t&&(n.timeSelectionTarget.closest("div").classList.remove(o.A.CSS.IS_HIDDEN),n._fillSelectionWithTime(r)),i=!0):n.timeSelectionTarget.closest("div").classList.add(o.A.CSS.IS_HIDDEN)}),this.isStandaloneComponent||this.seminarRegistrationFormController._switchFormFields(i),i}},{key:"_fillSelectionWithDates",value:function(t){var e=this;this.locationInputs.forEach(function(r){if(r.checked){var n=e.dateSelectionTarget.querySelector("select"),o=e._getOptionsByLocation(r.value,t);n.innerHTML="",o&&o.length&&o.forEach(function(t){n.appendChild(t)})}})}},{key:"_fillSelectionWithTime",value:function(t){var e=this.timeSelectionTarget,r=this.dateSelectionTarget.querySelector("select"),n=r.options[r.selectedIndex].value,o=this._getOptionsbyDate(n,t);e.innerHTML="",o.forEach(function(t){e.appendChild(t)})}},{key:"_getOptionsByLocation",value:function(t,e){var r="";return this._getDateParsedServices().forEach(function(e){e.radioValue===t&&(r=e)}),this._getOptionElements(r,e)}},{key:"_getOptionsbyDate",value:function(t,e){var r="";return this._getTimeParsedServices().forEach(function(e){e.dateValue===t&&(r=e)}),this._getOptionElements(r,e)}},{key:"_getOptionElements",value:function(t,e){var r=this,n=[],o=t.optionList;return this.isStandaloneComponent&&n.push(this._createDefaultOption(t)),o&&o.forEach(function(t){n.push(r._createOption(t,e))}),n}},{key:"_getDateParsedServices",value:function(){return this.dateParsedServices||(this.dateParsedServices=this.dateDataTarget?JSON.parse(this.dateDataTarget.innerHTML):null),this.dateParsedServices}},{key:"_getTimeParsedServices",value:function(){return this.timeParsedServices||(this.timeParsedServices=this.timeDataTarget?JSON.parse(this.timeDataTarget.innerHTML):null),this.timeParsedServices}},{key:"_createOption",value:function(t,e){var r=document.createElement("option"),n=t.selected;return r.text=t.text,r.value=t.value,t.redirectUrl&&r.setAttribute("data-redirectUrl",t.redirectUrl),!this.isStandaloneComponent&&n&&e&&(r.selected="selected"),r}},{key:"_createDefaultOption",value:function(t){var e=document.createElement("option");return e.text=t.defaultLabel,e.setAttribute("disabled",""),e.setAttribute("selected",""),e}},{key:"_setDisabledStateForCTAButton",value:function(){var t=this.actionButtonTarget.querySelector("button");t&&(t.classList.add(o.A.CSS.IS_DISABLED),t.setAttribute("disabled",""))}},{key:"_removeDisabledStateForCTAButton",value:function(){var t=this.actionButtonTarget.querySelector("button");t&&(t.classList.remove(o.A.CSS.IS_DISABLED),t.removeAttribute("disabled"))}},{key:"_removeDisabledStateForSelection",value:function(){this.dateSelectionTarget.querySelector("div").classList.remove(o.A.CSS.IS_DISABLED),this.dateSelectionTarget.querySelector("select").removeAttribute("disabled")}},{key:"_insertSeminarDatasFromAPI",value:function(){var t=this,e=this.data.get("apiurl");e&&a().ajax({type:"GET",dataType:"json",url:e}).done(function(e){var r=[],n={locations:[]};t._processApiDatas(e,r,n),t._interpolateApiDatasIntoDom(r,n),t.formTarget.removeAttribute("data-success")})}},{key:"_processApiDatas",value:function(t,e,r){var n=this,o=this.dateDataTemplateTarget?JSON.parse(this.dateDataTemplateTarget.innerHTML):null;t.forEach(function(t){n._checkForExistingLocation(t,e,o)||(e.push(t,n._provideNewOption(t,e,o)),r.locations.push(t.location))})}},{key:"_checkForExistingLocation",value:function(t,e,r){var n=this,o=!1;return e.forEach(function(e){e.radioValue&&e.radioValue.trim()===t.location.trim()&&(n._pushDatasToOptionList(e.optionList,t,r),o=!0)}),o}},{key:"_provideNewOption",value:function(t,e,r){var n={};return n.defaultLabel=r.defaultLabel,n.radioValue=t.location,n.optionList=[],this._pushDatasToOptionList(n.optionList,t,r),n}},{key:"_pushDatasToOptionList",value:function(t,e,r){t.push({text:e.startDateTime+" - "+e.endDateTime+" / "+r.availableSlotsTranslation+" "+e.availableSeats,value:e.startDateTime+" - "+e.endDateTime+" / "+r.availableSlotsTranslation+" "+e.availableSeats,redirectUrl:e.redirectUrl})}},{key:"_interpolateApiDatasIntoDom",value:function(t,e){this.dateDataTarget.innerHTML=JSON.stringify(t);var r=this.seminarLocationTarget.innerHTML;this.locationSelectionTarget.innerHTML=r.interpolate(e),this.locationInputs=this.locationSelectionTarget.querySelectorAll("input")}}])}(n.xI);h(d,"targets",["form","locationSelection","dateSelection","actionButton","dateData","dateDataTemplate","timeData","timeSelection","seminarLocationTemplate","seminarLocation"]),h(d,"webinar_id","Webinar")},54315:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return v}});r(52675),r(89463),r(2259),r(45700),r(28706),r(23418),r(23792),r(34782),r(89572),r(62010),r(2892),r(5506),r(40875),r(26099),r(16034),r(60825),r(27495),r(38781),r(47764),r(42762),r(23500),r(62953);var n=r(13368),o=r(54762),i=r(18248);function a(t){return a="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},a(t)}function u(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],c=!0,s=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;
2!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){s=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return u}}(t,e)||function(t,e){if(t){if("string"==typeof t)return c(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(t,e):void 0}}(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 c(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,d(n.key),n)}}function l(t,e,r){return e=p(e),function(t,e){if(e&&("object"==a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,f()?Reflect.construct(e,r||[],p(t).constructor):e.apply(t,r))}function f(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(f=function(){return!!t})()}function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},p(t)}function h(t,e){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},h(t,e)}function y(t,e,r){return(e=d(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function d(t){var e=function(t,e){if("object"!=a(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==a(e)?e:e+""}var v=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return y(t=l(this,e,[].concat(n)),"addRegistrationEntry",""),y(t,"addWebinarRegistrationEntry",""),y(t,"additionalRegistrationEntryCount",1),y(t,"additionalRegistrationEntryCountWeb",1),y(t,"addRegistrationEntryLastId",1),y(t,"addRegistrationEntryLastIdWeb",1),t}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&h(t,e)}(e,t),function(t,e,r){return e&&s(t.prototype,e),r&&s(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"initialize",value:function(){o.u.addValidation(this.formTarget,this),this._cacheAddRegistrationEntry(),this._cacheAddWebinarRegistrationEntry(),document.querySelector(".o-seminarregistrationform__registration-entry").classList.add(i.A.CSS.IS_HIDDEN),document.querySelector(".o-seminarregistrationform__web-registration-entry").classList.add(i.A.CSS.IS_HIDDEN),this.requestOptions={contentType:"text/plain;charset=UTF-8"}}},{key:"_switchFormFields",value:function(t){t?(this.webinarFieldsTarget.classList.remove(i.A.CSS.IS_HIDDEN),this.seminarFieldsTarget.classList.add(i.A.CSS.IS_HIDDEN),this._enableDisableWebinarFields(!1),this._enableDisableSeminarFields(!0)):(this.webinarFieldsTarget.classList.add(i.A.CSS.IS_HIDDEN),this.seminarFieldsTarget.classList.remove(i.A.CSS.IS_HIDDEN),this._enableDisableWebinarFields(!0),this._enableDisableSeminarFields(!1))}},{key:"_enableDisableSeminarFields",value:function(t){this.seminarFieldsTarget.querySelectorAll("input").forEach(function(e){e.disabled=t}),this.seminarFieldsTarget.querySelectorAll("select").forEach(function(e){e.disabled=t})}},{key:"_enableDisableWebinarFields",value:function(t){this.webinarFieldsTarget.querySelectorAll("input").forEach(function(e){e.disabled=t}),this.webinarFieldsTarget.querySelectorAll("select").forEach(function(e){e.disabled=t})}},{key:"handleAdditionalRegistrations",value:function(t){var r=this.additionalRegistrationEntryCount;if(o.u.handleAddBlock.bind(this)(t,this.registrationEntriesTarget,"additionalRegistrationEntryCount","addRegistrationEntryLastId",this.addRegistrationEntry,e.registrationEntryPrefix),this.additionalRegistrationEntryCount>r){var n=this.registrationEntriesTarget.querySelector("."+e.registrationEntryPrefix+this.additionalRegistrationEntryCount);n&&o.u.addValidationToBlock(n,this.formTarget,this)}}},{key:"handleDelRegistration",value:function(t){o.u.handleDelBlock.bind(this)(t,this.registrationEntriesTarget,"additionalRegistrationEntryCount",e.registrationEntrySelector,e.registrationEntryPrefix)}},{key:"handleAdditionalWebinarRegistrations",value:function(t){o.u.handleAddBlock.bind(this)(t,this.webinarRegistrationEntriesTarget,"additionalRegistrationEntryCountWeb","addRegistrationEntryLastIdWeb",this.addWebinarRegistrationEntry,e.registrationEntryPrefixWeb)}},{key:"handleDelRegistrationWeb",value:function(t){o.u.handleDelBlock.bind(this)(t,this.webinarRegistrationEntriesTarget,"additionalRegistrationEntryCountWeb",e.registrationEntrySelectorWeb,e.registrationEntryPrefixWeb)}},{key:"_cacheAddRegistrationEntry",value:function(){this.registrationEntriesTarget&&(this.addRegistrationEntry=this.registrationEntriesTarget.innerHTML)}},{key:"_cacheAddWebinarRegistrationEntry",value:function(){this.webinarRegistrationEntriesTarget&&(this.addWebinarRegistrationEntry=this.webinarRegistrationEntriesTarget.innerHTML)}},{key:"extendFormData",value:function(t){var e=t,r=e.personData.email;r&&(e.userMailRecipient=r);var n=this.seminarRegisterTarget.querySelector(".o-seminarregister__headline").innerHTML;return n&&(e.seminar.name=n.trim()),e.seminar.additionalParticipants=this._provideAdditionalRegistrationList(e),e.seminar.additionalParticipantCount=e.seminar.additionalParticipants.length,e}},{key:"_provideAdditionalRegistrationList",value:function(t){var e=[];
2if(t.seminarRegistrations)e=Object.values(t.seminarRegistrations),delete t.seminarRegistrations;else if(t.webinarRegistrations){var r=Object.entries(t.webinarRegistrations),n={};r.forEach(function(t,r){var o=u(t,2),i=o[0],a=o[1];n[i]=a,(r+1)%3==0&&(e.push(n),n={})}),delete t.webinarRegistrations}return e}}])}(n.xI);y(v,"targets",["form","registrationEntries","registrationsList","seminarRegister","seminarFields","webinarFields","webinarRegistrationEntries"]),y(v,"registrationEntryPrefix","js-o-seminarregistrationform__registration-entry---"),y(v,"registrationEntryPrefixWeb","js-o-seminarregistrationform__web-registration-entry---"),y(v,"registrationEntrySelector",".o-seminarregistrationform__registration-entry"),y(v,"registrationEntrySelectorWeb",".o-seminarregistrationform__web-registration-entry")},53655:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return b}});r(52675),r(89463),r(2259),r(45700),r(28706),r(2008),r(23418),r(23792),r(34782),r(89572),r(62010),r(2892),r(9868),r(83851),r(81278),r(40875),r(79432),r(26099),r(78459),r(60825),r(27495),r(38781),r(47764),r(25440),r(23500),r(62953);var n=r(13368),o=r(54762),i=r(18248);function a(t){return a="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},a(t)}function u(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function c(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?u(Object(r),!0).forEach(function(e){v(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function s(t){return function(t){if(Array.isArray(t))return l(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return l(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(t,e):void 0}}(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 l(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function f(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,m(n.key),n)}}function p(t,e,r){return e=y(e),function(t,e){if(e&&("object"==a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,h()?Reflect.construct(e,r||[],y(t).constructor):e.apply(t,r))}function h(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(h=function(){return!!t})()}function y(t){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},y(t)}function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}function v(t,e,r){return(e=m(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function m(t){var e=function(t,e){if("object"!=a(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==a(e)?e:e+""}var b=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return v(t=p(this,e,[].concat(n)),"additionalRegistrationEntry",void 0),v(t,"additionalRegistrationEntryCount",1),v(t,"additionalRegistrationEntryLastId",1),v(t,"isBacnetActivation","false"),t}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&d(t,e)}(e,t),function(t,e,r){return e&&f(t.prototype,e),r&&f(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"initialize",value:function(){o.u.addValidation(this.formTarget,this),this.requestOptions={contentType:"text/plain;charset=UTF-8"}
2,this.isBacnetActivation=this.data.get("is-bacnet-activation"),"true"===this.isBacnetActivation?(this._cacheAdditionalBacNetRegistrationEntry(),this._hideDeleteButton()):(this._cacheAdditionalRegistrationEntry(),this._bindEvents())}},{key:"handleAdditionalRegistrations",value:function(t){var r,n=this.additionalRegistrationEntryCount;if("true"===this.isBacnetActivation?(r=this.registrationListBacnetTarget,this._updateTotalPrice(!0)):r=this.registrationsListTarget,o.u.handleAddBlock.bind(this)(t,r,"additionalRegistrationEntryCount","additionalRegistrationEntryLastId",this.additionalRegistrationEntry,e.registrationEntryPrefix),this.additionalRegistrationEntryCount>n){var i=r.querySelector("."+e.registrationEntryPrefix+this.additionalRegistrationEntryCount);i&&o.u.addValidationToBlock(i,this.formTarget,this)}}},{key:"handleDelRegistration",value:function(t){var r;r="true"===this.isBacnetActivation?this.registrationListBacnetTarget:this.registrationsListTarget,o.u.handleDelBlock.bind(this)(t,r,"additionalRegistrationEntryCount",e.registrationEntrySelector,e.registrationEntryPrefix),"true"===this.isBacnetActivation&&this._updateTotalPrice(!1)}},{key:"extendFormData",value:function(t){var r=this,n=t;return n.businessPartner.email&&(n.userMailRecipient=t.businessPartner.email),"true"===this.isBacnetActivation?(n.bacnetRegistrations&&n.bacnetRegistrations.length&&(this.totalPriceTarget.textContent&&(n.totalPrice=this.totalPriceTarget.textContent+" "+this.currencyTarget.textContent),s(n.bacnetRegistrations).forEach(function(t,e){n.bacnetRegistrations[e].position=e+1})),t):(n.registrations&&n.registrations.length&&s(n.registrations).forEach(function(t,o){var i=n.registrations[o];i.position=o+1,delete i.service,delete i.product;var a=r._getDataByPosition(i.position,e.registrationEntryServiceSelector,"service"),u=r._getDataByPosition(i.position,e.registrationEntryProductSelector,"product");i=c(c(c({},i),a),u),n.registrations[o]=i}),n)}},{key:"_updateTotalPrice",value:function(t){var e,r=parseFloat(this.totalPriceTarget.textContent),n=parseFloat(this.totalPriceContainerTarget.dataset.unitprice);isNaN(r)||isNaN(n)||(e=t?r+n:r-n,this.totalPriceTarget.textContent=e.toFixed(2))}},{key:"_hideDeleteButton",value:function(){var t=document.querySelector("div.o-servicetechnologyorderform__delete-registration--bacnet");t&&t.classList.add(i.A.CSS.IS_HIDDEN)}},{key:"_cacheAdditionalRegistrationEntry",value:function(){this.hasRegistrationsListTarget&&(this.additionalRegistrationEntry=this.registrationsListTarget.innerHTML)}},{key:"_cacheAdditionalBacNetRegistrationEntry",value:function(){this.hasRegistrationListBacnetTarget&&(this.additionalRegistrationEntry=this.registrationListBacnetTarget.innerHTML)}},{key:"_bindEvents",value:function(){var t=this;this.registrationsListTarget.addEventListener("change",function(r){var n=r.target.closest(e.registrationEntryServiceSelector);n&&t._selectService(n)}),this.registrationsListTarget.addEventListener("change",function(r){var n=r.target.closest(e.registrationEntryProductSelector);n&&t._selectProduct(n)})}},{key:"_selectService",value:function(t){var r=t.closest(e.registrationEntrySelector),n=t.querySelector("select"),a=o.u.getSelectText(n),u=this._getProductsByService(a),c=r.querySelector(e.registrationEntryProductSelector),s=c.querySelector("select");u&&u.length?(this._addProducts(s,u),c.classList.remove(i.A.CSS.IS_INACTIVE)):(this._removeProducts(s),c.classList.add(i.A.CSS.IS_INACTIVE),c.classList.remove(i.A.CSS.HAS_ERROR)),this._selectProduct(c)}},{key:"_selectProduct",value:function(t){var r=t.closest(e.registrationEntrySelector),n=r.querySelector(e.registrationEntryProductSelector).querySelector("select"),i=o.u._getSelectedOption(n),a=r.querySelector(e.registrationEntrySerialNumber),u=r.querySelector(e.registrationEntrySerialNumberLabel);i.hasAttribute(e.dataIsServicenumberRequired)&&a&&"true"===i.getAttribute(e.dataIsServicenumberRequired)?(a.setAttribute("required","true"),u.innerText=u.innerText+" *"):this._setSerialNumberMandatory(a,u,r)}},{key:"_setSerialNumberMandatory",value:function(t,r,n){t&&t.removeAttribute("required"),r&&(r.innerText=r.innerText.replace("/ /g",""),r.innerText=r.innerText.replace("*",""));var o=n.querySelector(e.registrationEntrySerialNumberInputError);o&&o.classList.remove(i.A.CSS.HAS_ERROR)}},{key:"_addProducts",value:function(t,r){this._removeProducts(t),[].forEach.call(r,function(r){var n=document.createElement("option");n.value=r.productId,n.text=r.productName,n.setAttribute(e.dataIsServicenumberRequired,r.isServiceNumberRequired),t.appendChild(n)})}},{key:"_removeProducts",value:function(t){[].forEach.call(t.querySelectorAll("option:not([disabled])"),function(t){t.remove()})}},{key:"_getProductsByService",value:function(t){var e=this._getParsedServices().filter(function(e,r){return e.serviceName===t});return e.length&&e[0].products?e[0].products:null}},{key:"_getParsedServices",value:function(){return this.parsedServices||(this.parsedServices=this.serviceDataTarget?JSON.parse(this.serviceDataTarget.innerHTML):null),this.parsedServices}},{key:"_getRegistrationEntry",value:function(t){return this.registrationsListTarget.querySelector(e.registrationEntrySelector+":nth-child("+t+")")}},{key:"_getDataByPosition",value:function(t,e,r){var n=this._getRegistrationEntry(t),i={};if(n){var a=n.querySelector(e+" select");a&&(i[r+"Id"]=o.u.getSelectValue(a),i[r+"Name"]=o.u.getSelectText(a))}return i}}])}(n.xI);v(b,"targets",["form","registrationsList","serviceData","registrationListBacnet","totalPriceContainer","totalPrice","currency"]),v(b,"registrationEntryPrefix","js-o-servicetechnologyorderform__registration-entry---"),v(b,"registrationEntrySelector",".o-servicetechnologyorderform__registration-entry"),v(b,"registrationEntryServiceSelector",".js-o-servicetechnologyorderform__service-select"),v(b,"registrationEntryProductSelector",".js-o-servicetechnologyorderform__product-select"),v(b,"registrationEntrySerialNumber",'input[id="registrations.serialNumber"]'),v(b,"registrationEntrySerialNumberLabel",'label[for="registrations.serialNumber"]'),v(b,"registrationEntrySerialNumberInputError","div.o-servicetechnologyorderform__serial > div.a-input"),v(b,"dataIsServicenumberRequired","data-is-servicenumber-required"),v(b,"hideClass","hide"),v(b,"dataIsBACnetActivation","data-is-bacnet-
2activation")},73915:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return f}});r(52675),r(89463),r(2259),r(45700),r(28706),r(23792),r(89572),r(36033),r(2892),r(9868),r(69085),r(40875),r(79432),r(26099),r(78459),r(58940),r(60825),r(47764),r(23500),r(62953);function n(t){return n="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},n(t)}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,l(n.key),n)}}function i(t,e,r){return e=u(e),function(t,e){if(e&&("object"==n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,a()?Reflect.construct(e,r||[],u(t).constructor):e.apply(t,r))}function a(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(a=function(){return!!t})()}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}function c(t,e){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},c(t,e)}function s(t,e,r){return(e=l(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function l(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var f=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return s(t=i(this,e,[].concat(n)),"totalPrice",0),s(t,"softwareOrderItems",[]),s(t,"selectedItems",[]),s(t,"_selectOptionCache",new Map),t}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&c(t,e)}(e,t),function(t,e,r){return e&&o(t.prototype,e),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"connect",value:function(){var t=this;this.softwareOrderItems=JSON.parse(this.data.get("software-order-items")),this.requestOptions={contentType:"text/plain;charset=UTF-8"},this.element.querySelectorAll(".a-quantity .a-input__input").forEach(function(e){return e.addEventListener("change",t.onQuantityChange.bind(t))})}},{key:"extendFormData",value:function(t){return t.items=this.selectedItems,t.orderSum=this.totalPrice.toFixed(2),t.contactPersonInfo&&(t.userMailRecipient=t.contactPersonInfo.email),t}},{key:"onQuantityChange",value:function(t){var e=this;this.totalPrice=0,this.selectedItems=[],this.tableContainerTarget.querySelectorAll(".a-quantity[data-price]").forEach(function(t,r){var n=e.softwareOrderItems[r],o=parseInt(t.querySelector('input[type="number"]').value),i=parseFloat(t.dataset.price)*o;if(o>0){var a=Object.assign(n,{sum:i,quantity:o});e.selectedItems.push(a)}e.totalPrice+=i}),this.totalPriceTarget.innerText=this.totalPrice.toFixed(2)}}])}(r(13368).xI);s(f,"targets",["tableContainer","totalPrice","dataprivacy"])},71687:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return p}});r(52675),r(89463),r(2259),r(45700),r(28706),r(23792),r(89572),r(2892),r(40875),r(26099),r(60825),r(27495),r(38781),r(47764),r(25440),r(12041),r(23500),r(62953);var n=r(13368);r(54762);function o(t){return o="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},o(t)}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,f(n.key),n)}}function a(t,e,r){return e=c(e),function(t,e){if(e&&("object"==o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,u()?Reflect.construct(e,r||[],c(t).constructor):e.apply(t,r))}function u(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(u=function(){return!!t})()}
2function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}function s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},s(t,e)}function l(t,e,r){return(e=f(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function f(t){var e=function(t,e){if("object"!=o(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==o(e)?e:e+""}var p=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return l(t=a(this,e,[].concat(n)),"participantCache",null),t}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(e,t),function(t,e,r){return e&&i(t.prototype,e),r&&i(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"initialize",value:function(){this.participantCache=this.participantSectionTarget.cloneNode(!0),this.participantCache.querySelector(".".concat(e.hideClass)).classList.remove(e.hideClass)}},{key:"showMainSection",value:function(){this.mainSectionTarget.classList.remove(e.hideClass),this.footerTarget.classList.remove(e.hideClass)}},{key:"addParticipant",value:function(){if(this.participantSectionTargets.length!==e.maxParticipantCount){var t=this.participantCache.cloneNode(!0);t.innerHTML=t.innerHTML.replaceAll("[]","[]#".concat(this.participantSectionTargets.length)),this.participantListTarget.appendChild(t),this._updateCounterButtonLabel(),this._updateCounterHeadlines()}}},{key:"removeParticipant",value:function(t){this.participantListTarget.removeChild(t.target.closest(".".concat(e.participantIdentifierClass))),this._updateCounterButtonLabel(),this._updateCounterHeadlines()}},{key:"_updateCounterButtonLabel",value:function(){this.participantSectionTargets.length===e.maxParticipantCount?this.counterTarget.classList.add(e.hideClass):this.counterTarget.classList.remove(e.hideClass);var t=this.counterTarget.querySelector("span"),r=t.innerText.split("(");r.pop(),r.length?t.innerText=r.toString()+" (".concat(this.participantSectionTargets.length,"/").concat(e.maxParticipantCount-1,")"):t.innerText=t.innerText+" (".concat(this.participantSectionTargets.length,"/").concat(e.maxParticipantCount-1,")")}},{key:"_updateCounterHeadlines",value:function(){var t=this.participantCounterheadlineTargets;t&&t.forEach(function(t,e){var r=t.querySelector(".a-headline--h4");if(r){var n=r.innerText.split(".");n.length<2?r.innerText=e+"."+r.innerText:(n.shift(),r.innerText=e+"."+n.toString())}})}},{key:"extendFormData",value:function(t){var e=t;if(e.personData.length>1){var r=t.personData.shift();e.additionalParticipants=t.personData,e.contactPerson=r}else e.contactPerson=t.personData[0];delete e.personData;var n=e.contactPerson.email;return n&&(e.userMailRecipient=n),e}}])}(n.xI);l(p,"maxParticipantCount",11),l(p,"hideClass","o-symposium2022form__hidden"),l(p,"participantIdentifierClass","participant-section"),l(p,"targets",["form","mainSection","participantSection","participantList","counter","participantCounterheadline","footer"])},87259:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return m}});r(52675),r(89463),r(66412),r(2259),r(45700),r(78125),r(28706),r(23792),r(94490),r(34782),r(89572),r(62010),r(4731),r(60479),r(2892),r(40875),r(79432),r(26099),r(3362),r(60825),r(47764),r(23500),r(62953);var n=r(13368),o=r(54762),i=r(11026);function a(){a=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(t,e,r){return t[e]=r}}function p(t,e,r,n){var i=e&&e.prototype instanceof g?e:g,a=Object.create(i.prototype),u=new L(n||[]);return o(a,"_invoke",{value:C(t,r,u)}),a}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=p;var y="suspendedStart",d="suspendedYield",v="executing",m="completed",b={};function g(){}function S(){}function w(){}var _={};f(_,c,function(){return this});var T=Object.getPrototypeOf,O=T&&T(T(x([])));O&&O!==r&&n.call(O,c)&&(_=O);var E=w.prototype=g.prototype=Object.create(_);function j(t){["next","throw","return"].forEach(function(e){f(t,e,function(t){return this._invoke(e,t)})})}function P(t,e){function r(o,i,a,c){var s=h(t[o],t,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==u(f)&&n.call(f,"__await")?e.resolve(f.__await).then(function(t){r("next",t,a,c)},function(t){r("throw",t,a,c)}):e.resolve(f).then(function(t){l.value=t,a(l)},function(t){return r("throw",t,a,c)})}c(s.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e(function(e,o){r(t,n,e,o)})}return i=i?i.then(o,o):o()}})}function C(e,r,n){var o=y;return function(i,a){if(o===v)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}
vendor: 6,038 bytes, line 2
2for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var c=A(u,n);if(c){if(c===b)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===y)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=h(e,r,n);if("normal"===s.type){if(o=n.done?m:d,s.arg===b)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=m,n.method="throw",n.arg=s.arg)}}}function A(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,A(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var i=h(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,b;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,b):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function x(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(u(e)+" is not iterable")}return S.prototype=w,o(E,"constructor",{value:w,configurable:!0}),o(w,"constructor",{value:S,configurable:!0}),S.displayName=f(w,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===S||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,f(t,l,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},j(P.prototype),f(P.prototype,s,function(){return this}),e.AsyncIterator=P,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new P(p(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next()})},j(E),f(E,l,"Generator"),f(E,c,function(){return this}),f(E,"toString",function(){return"[object Generator]"}),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=x,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(I),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return u.type="throw",u.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,b):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),b},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),I(r),b}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;I(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:x(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),b}},e}function u(t){return u="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},u(t)}function c(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,o)}function s(t){return function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function a(t){c(i,n,o,a,u,"next",t)}function u(t){c(i,n,o,a,u,"throw",t)}a(void 0)})}}function l(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,v(n.key),n)}}function f(t,e,r){return e=h(e),function(t,e){if(e&&("object"==u(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,p()?Reflect.construct(e,r||[],h(t).constructor):e.apply(t,r))}function p(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(p=function(){return!!t})()}
2function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}function y(t,e){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},y(t,e)}function d(t,e,r){return(e=v(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function v(t){var e=function(t,e){if("object"!=u(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==u(e)?e:e+""}var m=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return d(t=f(this,e,[].concat(n)),"additionalRegistrationEntry",void 0),d(t,"additionalRegistrationEntryCount",1),d(t,"additionalRegistrationEntryLastId",1),t}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&y(t,e)}(e,t),function(t,e,r){return e&&l(t.prototype,e),r&&l(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"initialize",value:function(){o.u.addValidation(this.formAccountTarget,this),o.u.addValidation(this.formTarget,this),this._cacheAdditionalRegistrationEntry(),this.requestOptions={contentType:"application/json"}}},{key:"handleAdditionalRegistrations",value:function(t){o.u.handleAddBlock.bind(this)(t,this.registrationsListTarget,"additionalRegistrationEntryCount","additionalRegistrationEntryLastId",this.additionalRegistrationEntry,e.registrationEntryPrefix)}},{key:"handleDelRegistration",value:function(t){o.u.handleDelBlock.bind(this)(t,this.registrationsListTarget,"additionalRegistrationEntryCount",".o-symposiumform__registration-entry",e.registrationEntryPrefix)}},{key:"handleAuthenticate",value:function(t){var e=this;this._updateFormData(t.data).then(function(){e.showOpenForm()})}},{key:"showAccountForm",value:function(){this.formTarget.classList.add(e.hideClass),this.formAccountTarget.classList.remove(e.hideClass)}},{key:"showOpenForm",value:function(){var t=this;this._getEvents().then(function(){t.formAccountTarget.classList.add(e.hideClass),t.formTarget.classList.remove(e.hideClass)})}},{key:"handleDelivery",value:function(t){t&&t.preventDefault(),this.deliveryButtonTarget.classList.add(e.hideClass),this.deliveryTarget.classList.remove(e.hideClass),this.deliveryCloseTarget.classList.remove(e.hideClass)}},{key:"handleDeliveryClose",value:function(t){t.preventDefault(),this.deliveryButtonTarget.classList.remove(e.hideClass),this.deliveryTarget.classList.add(e.hideClass),this.deliveryTarget.querySelectorAll("input, select, textarea").forEach(function(t){t.value=""}),this.deliveryCloseTarget.classList.add(e.hideClass)}},{key:"extendFormData",value:function(t){var e=t;return e.roadshowId=this._getRoadshowId(),t.differentDelivery=t.hasOwnProperty("delivery")&&Object.keys(t.delivery).length>1,e}},{key:"_cacheAdditionalRegistrationEntry",value:function(){this.registrationsListTarget&&(this.additionalRegistrationEntry=this.registrationsListTarget.innerHTML)}},{key:"_updateFormData",value:(n=s(a().mark(function t(e){var r,n,o,i=this;return a().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r=this._fixResponseData(e),n="additionalRegistrations",o={},t.abrupt("return",new Promise(function(t){[].forEach.call(Object.keys(r),function(t){null!==r[t]&&("object"!==u(r[t])?i._updateElementData(t,r[t]):t!==n?[].forEach.call(Object.keys(r[t]),function(e){if("subscribedNewsletters"===e){var n=i.formTarget.querySelectorAll('[name="contactPerson.subscribedNewsletters[]"]');[].forEach.call(r[t][e],function(t,e){i._updateFormElement(n[e],t)})}else null!==r[t][e]&&i._updateElementData(t+"."+e,r[t][e])}):[].forEach.call(r[t],function(t,e){var r=e+1;r>1&&i.handleAdditionalRegistrations(),[].forEach.call(Object.keys(t),function(a){var u='[name^="'+n+"."+a+'[]"]',c=i.registrationsListTarget.querySelectorAll(u);1===r&&c.length>1&&(o[a]=c.length);var s=o[a]?c[e*o[a]]:c[e];null!==t[a]&&i._updateFormElement(s,t[a])})}))}),t()}));case 5:case"end":return t.stop()}},t,this)})),function(t){return n.apply(this,arguments)})},{key:"_fixResponseData",value:function(t){var e=t;return e.deliveryTo&&(e.delivery=e.deliveryTo,delete e.deliveryTo,this.handleDelivery()),e.customer.houseNumber=e.customer.streetNumber,delete e.customer.streetNumber,e.customer.zip=e.customer.postalCode,delete e.customer.postalCode,e}},{key:"_updateElementData",value:function(t,e){var r=this.formTarget.querySelector('[name="'+t+'"]');this._updateFormElement(r,e,t)}},{key:"_updateFormElement",value:function(t,e,r){if(t){if("INPUT"===t.nodeName)if("text"===t.type||"tel"===t.type||"email"===t.type)t.value=e;else if("radio"===t.type){var n,o=t.closest(".a-radiobutton").parentElement;(n=r?this.formTarget.querySelector('[name="'+r+'"][value="'+e+'"]'):o.querySelector('[value="'+e+'"]'))&&(n.checked=!0);var i=o.querySelectorAll("input[type=radio]");
2i&&i.forEach(function(t){return t.setAttribute("disabled","")})}else"checkbox"===t.type&&(t.checked=e);else"SELECT"!==t.nodeName&&"TEXTAREA"!==t.nodeName||(t.value=e);t.setAttribute("disabled","")}}},{key:"_getEvents",value:(r=s(a().mark(function t(){var e,r=this;return a().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e=i.j.request(this.formTarget.dataset.events,{method:"GET"}),t.abrupt("return",new Promise(function(t){e.then(function(e){e.data&&r._updateEventSelect(e.data),t()})}));case 2:case"end":return t.stop()}},t,this)})),function(){return r.apply(this,arguments)})},{key:"_getRoadshowId",value:function(){return this.element.dataset.roadshowId}},{key:"_updateEventSelect",value:function(t){var e=this.formTarget.dataset.eventId,r=this.formTarget.querySelector(".js-o-symposiumform__events select");if(r&&(r.querySelectorAll("option:not([disabled])").forEach(function(t){return t.remove()}),[].forEach.call(t,function(t){var n=document.createElement("option");n.value=t.id,n.text=t.id,t.id===e&&(n.selected=!0),r.appendChild(n)}),!e)){var n=r.querySelector("[disabled]");n.removeAttribute("disabled"),n.selected=!0,n.setAttribute("disabled","")}}}]);var r,n}(n.xI);d(m,"targets",["form","formAccount","delivery","deliveryButton","deliveryClose","additionalRegistrationsButton","registrationsList"]),d(m,"registrationEntryPrefix","js-o-symposiumform__registration-entry---"),d(m,"hideClass","hide")},89715:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return p}});r(52675),r(89463),r(2259),r(45700),r(23792),r(89572),r(2892),r(40875),r(26099),r(60825),r(47764),r(62953);var n=r(13368),o=r(54762);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},i(t)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,f(n.key),n)}}function u(t,e,r){return e=s(e),function(t,e){if(e&&("object"==i(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,c()?Reflect.construct(e,r||[],s(t).constructor):e.apply(t,r))}function c(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(c=function(){return!!t})()}
2function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}function l(t,e){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},l(t,e)}function f(t){var e=function(t,e){if("object"!=i(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==i(e)?e:e+""}var p=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),u(this,e,arguments)}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}(e,t),function(t,e,r){return e&&a(t.prototype,e),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"initialize",value:function(){o.u.addValidation(this.formTarget)}}])}(n.xI);!function(t,e,r){(e=f(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}(p,"targets",["form"])},99835:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return h}});r(52675),r(89463),r(2259),r(45700),r(28706),r(50113),r(23792),r(89572),r(2892),r(40875),r(26099),r(60825),r(47764),r(23500),r(62953);var n=r(13368),o=r(18248);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},i(t)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,p(n.key),n)}}function u(t,e,r){return e=s(e),function(t,e){if(e&&("object"==i(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,c()?Reflect.construct(e,r||[],s(t).constructor):e.apply(t,r))}function c(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(c=function(){return!!t})()}
2function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}function l(t,e){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},l(t,e)}function f(t,e,r){return(e=p(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function p(t){var e=function(t,e){if("object"!=i(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==i(e)?e:e+""}var h=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return f(t=u(this,e,[].concat(n)),"_videoControllerCache",null),t}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}(e,t),function(t,e,r){return e&&a(t.prototype,e),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"_videoContoller",get:function(){return null===this._videoControllerCache&&(this._videoControllerCache=this.application.getControllerForElementAndIdentifier(this.element.querySelector(".m-video"),"m-video")),this._videoControllerCache}},{key:"_activeChapter",get:function(){return this.chapterTargets.find(function(t){return t.classList.contains(o.A.CSS.IS_ACTIVE)})}},{key:"applyTimestamp",value:function(t){this.chapterTargets.forEach(function(t){return t.classList.remove(o.A.CSS.IS_ACTIVE)}),t.currentTarget.classList.add(o.A.CSS.IS_ACTIVE);var e=t.currentTarget.dataset.timestamp;console.log(e),console.log(this._videoContoller),this._videoContoller.jumpTo(e)}}])}(n.xI);f(h,"targets",["chapter"])},7191:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return k}});r(52675),r(89463),r(66412),r(2259),r(45700),r(78125),r(28706),r(2008),r(23418),r(23792),r(62062),r(94490),r(34782),r(89572),r(62010),r(4731),r(60479),r(2892),r(83851),r(81278),r(40875),r(79432),r(26099),r(3362),r(60825),r(27495),r(38781),r(47764),r(42762),r(50778),r(23500),r(62953);var n=r(13368),o=r(75940),i=r(29808),a=r(18248),u=r(60710),c=r(11026),s=r(54762),l=r(74692),f=r.n(l),p=r(22849);function h(t){return h="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},h(t)}function y(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function d(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?y(Object(r),!0).forEach(function(e){C(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function v(t){return function(t){if(Array.isArray(t))return g(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||b(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 m(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=b(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}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 i,a=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}function b(t,e){if(t){if("string"==typeof t)return g(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?g(t,e):void 0}}function g(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function S(){S=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var i=e&&e.prototype instanceof b?e:b,a=Object.create(i.prototype),u=new L(n||[]);return o(a,"_invoke",{value:C(t,r,u)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var p="suspendedStart",y="suspendedYield",d="executing",v="completed",m={};function b(){}function g(){}function w(){}var _={};s(_,a,function(){return this});var T=Object.getPrototypeOf,O=T&&T(T(x([])));O&&O!==r&&n.call(O,a)&&(_=O);var E=w.prototype=b.prototype=Object.create(_);function j(t){["next","throw","return"].forEach(function(e){s(t,e,function(t){return this._invoke(e,t)})})}function P(t,e){function r(o,i,a,u){var c=f(t[o],t,i);if("throw"!==c.type){var s=c.arg,l=s.value;return l&&"object"==h(l)&&n.call(l,"__await")?e.resolve(l.__await).then(function(t){r("next",t,a,u)},function(t){r("throw",t,a,u)}):e.resolve(l).then(function(t){s.value=t,a(s)},function(t){return r("throw",t,a,u)})}u(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e(function(e,o){r(t,n,e,o)})}return i=i?i.then(o,o):o()}})}function C(e,r,n){var o=p;return function(i,a){if(o===d)throw Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}
vendor: 5,808 bytes, line 2
2for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var c=A(u,n);if(c){if(c===m)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var s=f(e,r,n);if("normal"===s.type){if(o=n.done?v:y,s.arg===m)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=v,n.method="throw",n.arg=s.arg)}}}function A(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,A(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,m;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function x(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(h(e)+" is not iterable")}return g.prototype=w,o(E,"constructor",{value:w,configurable:!0}),o(w,"constructor",{value:g,configurable:!0}),g.displayName=s(w,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,s(t,c,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},j(P.prototype),s(P.prototype,u,function(){return this}),e.AsyncIterator=P,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new P(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next()})},j(E),s(E,c,"Generator"),s(E,a,function(){return this}),s(E,"toString",function(){return"[object Generator]"}),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=x,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(I),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return u.type="throw",u.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),I(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;I(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:x(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}function w(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,o)}function _(t){return function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function a(t){w(i,n,o,a,u,"next",t)}function u(t){w(i,n,o,a,u,"throw",t)}a(void 0)})}}function T(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,A(n.key),n)}}function O(t,e,r){return e=j(e),function(t,e){if(e&&("object"==h(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,E()?Reflect.construct(e,r||[],j(t).constructor):e.apply(t,r))}function E(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(E=function(){return!!t})()}
2function j(t){return j=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},j(t)}function P(t,e){return P=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},P(t,e)}function C(t,e,r){return(e=A(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function A(t){var e=function(t,e){if("object"!=h(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=h(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==h(e)?e:e+""}var k=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return C(t=O(this,e,[].concat(n)),"categories",[]),C(t,"_watchlistToken",void 0),t}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&P(t,e)}(e,t),function(t,e,r){return e&&T(t.prototype,e),r&&T(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"initialize",value:function(){var t=this;JSON.parse(this.data.get("categories")).forEach(function(e){return t.categories.push(e.id)})}},{key:"connect",value:function(){var t=this;Promise.resolve().then(_(S().mark(function e(){var r,n;return S().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=(0,i.Ri)("viega_noticelist_token"),e.next=3,t._migrateOldWatchlist(r);case 3:if(e.sent&&(0,i.TV)("viega_noticelist_token"),!(n=(0,i.pg)("token"))){e.next=9;break}return e.next=9,t._initializeWithToken(n);case 9:o.l.subscribe(t.renderWatchlistItems.bind(t));case 10:case"end":return e.stop()}},e)})))}},{key:"_needMigration",value:function(t){if(t.length>0)return t[0].hasOwnProperty("flyoutItemLink")||t[0].hasOwnProperty("listItemLink")}},{key:"_closeOverlay",value:function(){var t=(0,i.Pl)();t&&t.close()}},{key:"removeCategoryItems",value:(I=_(S().mark(function t(e){var r,n,i,a,u,c,s,l,f=this;return S().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r=this.element.querySelector('*[data-target="o-watchlistoverview.'.concat(e.currentTarget.dataset.category,'CategoryContainer"]')),n=[],i=r.parentNode.parentNode,a=i?i.getAttribute("id"):"",u=e.currentTarget.dataset.category,c=e.currentTarget.innerText,s=document.body.getAttribute("id")+"/"+u+"/"+c,t.next=8,(0,p.Fh)(s,p.tl,a,p.y3,u,c,p.bR);case 8:l=t.sent,r.querySelectorAll(".a-actionbutton").forEach(function(t){var e=f.application.getControllerForElementAndIdentifier(t,"a-actionbutton");e&&n.push(e.watchlistData)}),o.l.remove.apply(o.l,n),(0,p.Ax)(l);case 12:case"end":return t.stop()}},t,this)})),function(t){return I.apply(this,arguments)})},{key:"renderWatchlistItems",value:function(){var t=this,e=o.l.getAll();e.items.length>0?this.categories.forEach(function(r){var n=[];e.items.forEach(function(t){t.category&&t.category.toLowerCase()===r&&n.push(t)}),t.renderCategory(r,n)}):this.categories.forEach(function(e){t.renderCategory(e,[])})}},{key:"renderCategory",value:function(t,e){var r=this.element.querySelector('*[data-target="o-watchlistoverview.'.concat(t,'CategoryContainer"]'));if(r){var n=r.parentNode.parentNode,o=n?n.getAttribute("id"):"";(0,p.do)(e,o),r.innerHTML=(0,i.eX)(e,this,[],!1),(0,p.jN)(r),r.parentNode.parentNode.querySelector(".js-o-watchlistoverview__counter").innerHTML="(".concat(e.length,")"),e.length>0?n.classList.remove(a.A.CSS.IS_INACTIVE):(n.classList.contains(a.A.CSS.IS_ACTIVE)&&n.querySelector("[data-accordion-item] > a").click(),n.classList.add(a.A.CSS.IS_INACTIVE))}}},{key:"openOverlay",value:(k=_(S().mark(function t(e,r){var n,o,a,u,c,l,h,y,d,v,b,g,w,_=arguments;return S().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(n=_.length>2&&void 0!==_[2]?_[2]:{},!(o=(0,i.Pl)())){t.next=25;break}if(a=this["".concat(r,"OverlayTemplateTarget")].innerHTML){t.next=6;break}return t.abrupt("return",!1);case 6:if(a=a.interpolate(e),o.insertHTML(a),(u=o.element.querySelector("form"))&&s.u.addValidation(u),(c=o.element.querySelector("button.a-button--submit"))||(c=o.element.querySelector("button.a-button--submit")),!c){t.next=21;break}return l=n.category,h=c.innerText.trim(),y=document.body.getAttribute("id")+"/"+l+"/"+h,t.next=18,(0,p.Fh)(y,p.XH,n.parentLinkAdobeDatalayerID,n.context,l,h,p.t0);case 18:d=t.sent,c.setAttribute(p.QV,d),(0,p.W8)(c);
2case 21:if((v=document.querySelectorAll(".m-overlay [data-event]")).length>0){b=m(v);try{for(b.s();!(g=b.n()).done;)w=g.value,f()(document).off(w.dataset.event),f()(document).on(w.dataset.event,this["".concat(w.dataset.event)].bind(this,n))}catch(t){b.e(t)}finally{b.f()}}o.setMediumSize(),o.open();case 25:case"end":return t.stop()}},t,this)})),function(t,e){return k.apply(this,arguments)})},{key:"copyToClipboard",value:function(t){(0,i.lW)(t.detail.target.currentTarget)}},{key:"copyTokenToClipboard",value:function(){var t=document.querySelector(".o-watchlistoverview__overlay--copytokentext");t&&(0,i.PI)(t)}},{key:"toggleMenu",value:function(t){var e=t.currentTarget.parentNode.querySelector(".js-o-watchlistoverview__category-actions-container"),r=e.firstElementChild,n=t.currentTarget;e&&(e.classList.contains(a.A.CSS.IS_ACTIVE)?((0,u.zm)(e,0,400),e.classList.remove(a.A.CSS.IS_ACTIVE),n.classList.remove(a.A.CSS.IS_ACTIVE)):((0,u.zm)(e,r.clientHeight,400),e.classList.add(a.A.CSS.IS_ACTIVE),n.classList.add(a.A.CSS.IS_ACTIVE)))}},{key:"showSendArticlesOverlay",value:(A=_(S().mark(function t(e){var r,n,o,i,a,u,c;return S().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r=this.element.querySelector('*[data-target="o-watchlistoverview.'.concat(e.currentTarget.dataset.category,'CategoryContainer"]')),n=r.parentNode.parentNode,o=n?n.getAttribute("id"):"",i=e.currentTarget.dataset.category,a=e.currentTarget.innerText,u=document.body.getAttribute("id")+"/"+i+"/"+a,t.next=8,(0,p.Fh)(u,p.tl,o,p.P9,i,a,p.bR);case 8:c=t.sent,(0,p.Ax)(c),e.preventDefault(),this.openOverlay({},"watchlistSendArticles",{category:i,parentLinkAdobeDatalayerID:c,context:p.aq});case 12:case"end":return t.stop()}},t,this)})),function(t){return A.apply(this,arguments)})},{key:"showDownloadItemsOverlay",value:(j=_(S().mark(function t(e){var r,n,o,i,a,u,c;return S().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r=this.element.querySelector('*[data-target="o-watchlistoverview.'.concat(e.currentTarget.dataset.category,'CategoryContainer"]')),n=r.parentNode.parentNode,o=n?n.getAttribute("id"):"",i=e.currentTarget.dataset.category,a=e.currentTarget.innerText,u=document.body.getAttribute("id")+"/"+i+"/"+a,t.next=8,(0,p.Fh)(u,p.tl,o,p.nE,i,a,p.bR);case 8:c=t.sent,(0,p.Ax)(c),e.preventDefault(),this.openOverlay({},"watchlistDownloadItems",{category:i,parentLinkAdobeDatalayerID:c,context:p.Kx});case 12:case"end":return t.stop()}},t,this)})),function(t){return j.apply(this,arguments)})},{key:"showGeneratePDFView",value:(E=_(S().mark(function t(e){var r,n,o,i,a,u,c;return S().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r=this.element.querySelector('*[data-target="o-watchlistoverview.'.concat(e.currentTarget.dataset.category,'CategoryContainer"]')),n=r.parentNode.parentNode,o=n?n.getAttribute("id"):"",i=e.currentTarget.dataset.category,a=e.currentTarget.innerText,u=document.body.getAttribute("id")+"/"+i+"/"+a,t.next=8,(0,p.Fh)(u,p.tl,o,p.V5,i,a,p.bR);case 8:c=t.sent,(0,p.Ax)(c),e.preventDefault(),this.openOverlay({},"watchlistGeneratePDF",{type:i,category:i,parentLinkAdobeDatalayerID:c,context:p.EJ});case 12:case"end":return t.stop()}},t,this)})),function(t){return E.apply(this,arguments)})},{key:"showPrintView",value:(w=_(S().mark(function t(e){var r,n,o,i,a,u,c;return S().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e.preventDefault(),r=e.currentTarget.parentNode.parentNode.parentNode.parentNode,n="is-hidden@print",o=r?r.getAttribute("id"):"",i=e.currentTarget.dataset.category,a=e.currentTarget.innerText,u=document.body.getAttribute("id")+"/"+i+"/"+a,t.next=8,(0,p.Fh)(u,p.tl,o,p.BQ,i,a,p.bR);case 8:c=t.sent,(0,p.Ax)(c),r.classList.contains(n)||(this.element.querySelectorAll(".m-accordion__item").forEach(function(t){return t.classList.add(n)}),r.classList.remove(n),this._configurePrintViewState("add")),window.print(),this._configurePrintViewState("remove");case 13:case"end":return t.stop()}},t,this)})),function(t){return w.apply(this,arguments)})},{key:"_configurePrintViewState",value:function(t){var e="is-hidden@print",r=document.querySelector("footer"),n=document.querySelector(".m-mainnav__main-items"),o=document.querySelector(".m-mainnav__menu"),i=document.querySelector(".m-mainnav__search-container");r&&r.classList[t](e),n&&n.classList[t](e),o&&o.classList[t](e),i&&i.classList[t](e)}},{key:"_migrateOldWatchlist",value:(g=_(S().mark(function t(e){var r,n;return S().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e){t.next=2;break}return t.abrupt("return",!1);case 2:return t.next=4,c.j.request("".concat(this.data.get("migrate-old-token-apiurl"),"?noticeListId=").concat(e));
2case 4:if(!(r=t.sent).success||!r.data.hasOwnProperty("items")){t.next=13;break}return o.l.remove(),o.l.save.apply(o.l,v(r.data.items)),o.l.setCustomerStorageToken(e),t.next=11,o.l.persist(this.data.get("generate-token-apiurl"));case 11:return n=t.sent,t.abrupt("return",n.success&&r.success);case 13:return t.abrupt("return",!1);case 14:case"end":return t.stop()}},t,this)})),function(t){return g.apply(this,arguments)})},{key:"_initializeWithToken",value:(b=_(S().mark(function t(e){var r;return S().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,c.j.request("".concat(this.data.get("decode-token-apiurl"),"/").concat(e,"/entries"));case 2:if(!((r=t.sent).success&&r.data&&r.data.length)){t.next=12;break}if(!this._needMigration(r.data)){t.next=10;break}return t.next=8,this._migrateOldWatchlist(e);case 8:t.next=12;break;case 10:o.l.remove(),o.l.save.apply(o.l,v(r.data));case 12:case"end":return t.stop()}},t,this)})),function(t){return b.apply(this,arguments)})},{key:"downloadItems",value:(y=_(S().mark(function t(e,r){var n,i;return S().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:n=o.l.getAll().items.filter(function(t){return"download"===t.category.toLowerCase()}),i="".concat(r.detail.target.currentTarget.dataset.apiurl,"?_charset_=UTF-8&asset="),n.forEach(function(t){return i+="".concat(escape(encodeURI(t.link)),",")}),window.open(i,"_blank"),this._closeOverlay();case 5:case"end":return t.stop()}},t,this)})),function(t,e){return y.apply(this,arguments)})},{key:"sendSaveMail",value:(h=_(S().mark(function t(e,r){return S().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.sendMail(r.detail.target.currentTarget.dataset.apiurl,{token:this._watchlistToken});case 2:case"end":return t.stop()}},t,this)})),function(t,e){return h.apply(this,arguments)})},{key:"sendArticlesMail",value:(l=_(S().mark(function t(e,r){var n;return S().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=o.l.getAll(),t.next=3,this.sendMail(r.detail.target.currentTarget.dataset.apiurl,{orderlistItems:n.items.filter(function(t){return"product"===t.category.toLowerCase()||"order"===t.category.toLowerCase()}).map(function(t){return{articleNumber:t.firstArticleNumber.split(": ").pop(),modelNumber:(t.firstModelNumber?t.firstModelNumber:t.modelNumbers).split(": ").pop(),title:t.title.text?t.title.text:t.title,count:t.quantity,description:t.description}})});case 3:case"end":return t.stop()}},t,this)})),function(t,e){return l.apply(this,arguments)})},{key:"generatePDFDownload",value:function(t,e){var r=t.type||"label",n=o.l.getAll().items.filter(function(t){return t.category.toLowerCase()===r}),i="".concat(e.detail.target.currentTarget.dataset.apiurl,"?type=").concat(r,"&articles=");n.forEach(function(t){t.firstArticleNumber?i+="".concat(t.firstArticleNumber,","):i+="".concat(t.link.slice(-10,-4),",")}),window.open(i,"_blank"),this._closeOverlay()}},{key:"sendMail",value:(n=_(S().mark(function t(e){var r,n,o,a,u=arguments;return S().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(r=u.length>1&&void 0!==u[1]?u[1]:{},n=document.querySelector(".m-overlay form"),o=n.querySelector('input[type="email"]'),0!==s.u.validate(n,this).length){t.next=9;break}return t.next=7,c.j.request(e,{method:"POST",body:d(d({},r),{},{userMailRecipient:o.value,token:this._watchlistToken})});case 7:t.sent.success&&(a=(0,i.Pl)())&&a.close();case 9:case"end":return t.stop()}},t,this)})),function(t){return n.apply(this,arguments)})},{key:"saveWatchlist",value:(r=_(S().mark(function t(e){var r;return S().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!(o.l.getAll().items.length>0)){t.next=6;break}return t.next=4,o.l.persist(this.data.get("generate-token-apiurl"));case 4:(r=t.sent).success&&r.data.id&&(this._watchlistToken=r.data.id,this.openOverlay({token:this._watchlistToken},"watchlistSave"));case 6:case"end":return t.stop()}},t,this)})),function(t){return r.apply(this,arguments)})}]);var r,n,l,h,y,b,g,w,E,j,A,k,I}(n.xI);C(k,"targets",["seminarTeaserResultTemplate","referenceTeaserResultTemplate","productTeaserResultTemplate","pageTeaserResultTemplate","manualTeaserResultTemplate","imageTeaserResultTemplate","icsDownloadTeaserResultTemplate","etmTeaserResultTemplate","downloadTeaserResultTemplate","blogSearchTeaserResultTemplate","watchlistSaveOverlayTemplate","watchlistSendArticlesOverlayTemplate","watchlistDownloadItemsOverlayTemplate","watchlistGeneratePDFOverlayTemplate"])},42639:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return h}});r(52675),r(89463),r(2259),r(45700),r(23792),r(89572),r(2892),r(40875),r(26099),r(60825),r(47764),r(62953);var n=r(13368),o=r(54762),i=r(18248);function a(t){return a="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},a(t)}function u(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,p(n.key),n)}}function c(t,e,r){return e=l(e),function(t,e){if(e&&("object"==a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}
2(t,s()?Reflect.construct(e,r||[],l(t).constructor):e.apply(t,r))}function s(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(s=function(){return!!t})()}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}function f(t,e){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},f(t,e)}function p(t){var e=function(t,e){if("object"!=a(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==a(e)?e:e+""}var h=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),c(this,e,arguments)}return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&f(t,e)}(e,t),function(t,e,r){return e&&u(t.prototype,e),r&&u(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"initialize",value:function(){o.u.addValidation(this.formTarget,this),this.successAreaTarget.classList.add(i.A.CSS.IS_HIDDEN)}},{key:"setNewContent",value:function(){this.formTarget.classList.add(i.A.CSS.IS_HIDDEN),this.successAreaTarget.classList.remove(i.A.CSS.IS_HIDDEN)}}])}(n.xI);!function(t,e,r){(e=p(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}(h,"targets",["form","successArea"])},56621:function(t,e,r){var n={"./aem/components/c-elementaccesscontroller/c-elementaccesscontroller_controller.js":75302,"./aem/components/c-headline/c-headline_controller.js":34348,"./aem/components/c-hubspotform/c-hubspotform_controller.js":83846,"./aem/components/c-integration/c-integration_controller.js":25954,"./aem/components/c-linkbuttonwithconfirmation/c-linkbuttonwithconfirmation_controller.js":95610,"./aem/components/c-productrenderer/c-productrenderer_controller.js":36874,"./aem/components/c-viegavoice/c-viegavoice_controller.js":27356,"./atoms/a-actionbutton/a-actionbutton_controller.js":27644,"./atoms/a-button/a-button_controller.js":40696,"./atoms/a-checkbox/a-checkbox_controller.js":19198,"./atoms/a-image/a-image_controller.js":34150,"./atoms/a-input/a-input_controller.js":68518,"./atoms/a-link/a-link_controller.js":13540,"./atoms/a-quantity/a-quantity_controller.js":80990,"./atoms/a-radiobutton/a-radiobutton_controller.js":43042,"./atoms/a-select/a-select_controller.js":40456,"./atoms/a-textarea/a-textarea_controller.js":48196,"./karriere/molecules/m-infovcard/m-infovcard_controller.js":10167,"./karriere/molecules/m-interactiveimages/m-interactiveimages_controller.js":26411,"./karriere/molecules/m-mediagallery/m-mediagallery_controller.js":26073,"./karriere/molecules/m-stepbystepgallery/m-stepbystepgallery_controller.js":32627,"./karriere/molecules/m-stickybutton/m-stickybutton_controller.js":59687,"./karriere/organisms/o-smallgrid/o-smallgrid_controller.js":14175,"./karriere/organisms/o-tab/o-tab_controller.js":99959,"./molecules/m-accordion/m-accordion_controller.js":45627,"./molecules/m-breadcrumb/m-breadcrumb_controller.js":81511,"./molecules/m-carousel/m-carousel_controller.js":92393,"./molecules/m-contentnav/m-contentnav_controller.js":54129,"./molecules/m-cookielayer/m-cookielayer_controller.js":11683,"./molecules/m-countryhint/m-countryhint_controller.js":15035,"./molecules/m-formpage/m-formpage_controller.js":66319,"./molecules/m-googlemap/m-googlemap_controller.js":58183,"./molecules/m-hierarchyfilter/m-hierarchyfilter_controller.js":31047,"./molecules/m-hotspotimage/m-hotspotimage_controller.js":55821,"./molecules/m-iframe/m-iframe_controller.js":81141,"./molecules/m-lightboxactionimage/m-lightboxactionimage_controller.js":40963,"./molecules/m-lightsearchoptionsfilter/m-lightsearchoptionsfilter_controller.js":70345,"./molecules/m-mainnav/m-mainnav_controller.js":2735,"./molecules/m-notification/m-notification_controller.js":10602,"./molecules/m-overlay/m-overlay_controller.js":61435,"./molecules/m-overlayconsent/m-overlayconsent_controller.js":88857,"./molecules/m-pagination/m-pagination_controller.js":10397,"./molecules/m-placeholderimage/m-placeholderimage_controller.js":22181,"./molecules/m-searchfacetfilter/m-searchfacetfilter_controller.js":94047,"./molecules/m-searchinput/m-searchinput_controller.js":48795,"./molecules/m-searchinputnew/m-searchinputnew_controller.js":92609,"./molecules/m-searchoptionsfilter/m-searchoptionsfilter_controller.js":88500,"./molecules/m-searchsortfilter/m-searchsortfilter_controller.js":3933,"./molecules/m-searchtextfilter/m-searchtextfilter_controller.js":33567,"./molecules/m-selectionmenu/m-selectionmenu_controller.js":46431,"./molecules/m-softwaredownload/m-softwaredownload_controller.js":26519,"./molecules/m-table/m-table_controller.js":58899,"./molecules/m-teaserblog/m-teaserblog_controller.js":51309,"./molecules/m-teaserevent/m-teaserevent_c
2ontroller.js":70531,"./molecules/m-teaserlistitem/m-teaserlistitem_controller.js":76767,"./molecules/m-video/m-video_controller.js":14511,"./organisms/o-callbackform/o-callbackform_controller.js":89335,"./organisms/o-carouselstage/o-carouselstage_controller.js":75627,"./organisms/o-competitionform/o-competitionform_controller.js":1923,"./organisms/o-contactformmicrosite/o-contactformmicrosite_controller.js":2535,"./organisms/o-contactformshort/o-contactformshort_controller.js":97369,"./organisms/o-container/o-container_controller.js":62235,"./organisms/o-countryflyout/o-countryflyout_controller.js":80079,"./organisms/o-dayofeducation/o-dayofeducation_controller.js":46059,"./organisms/o-dayofstudents/o-dayofstudents_controller.js":45315,"./organisms/o-dealerlocator/o-dealerlocator_controller.js":11342,"./organisms/o-distributorform/o-distributorform_controller.js":41163,"./organisms/o-documentsearch/o-documentsearch_controller.js":91539,"./organisms/o-dynamicaccordion/o-dynamicaccordion_controller.js":73251,"./organisms/o-flushingstationform/o-flushingstationform_controller.js":90083,"./organisms/o-footer/o-footer_controller.js":67099,"./organisms/o-footerlite/o-footerlite_controller.js":13771,"./organisms/o-form/o-form_controller.js":26825,"./organisms/o-formnew/o-formnew_controller.js":13431,"./organisms/o-gallery/o-gallery_controller.js":57731,"./organisms/o-gridcontainer/o-gridcontainer_controller.js":15563,"./organisms/o-header/o-header_controller.js":72671,"./organisms/o-headerlite/o-headerlite_controller.js":59111,"./organisms/o-keycloakbaseform/o-keycloakbaseform_controller.js":75045,"./organisms/o-keycloakregistrationform/o-keycloakregistrationform_controller.js":16089,"./organisms/o-lightsearch/o-lightsearch_controller.js":45527,"./organisms/o-materialanalysisform/o-materialanalysisform_controller.js":12623,"./organisms/o-mtrform/o-mtrform_controller.js":71811,"./organisms/o-retaileragreementform/o-retaileragreementform_controller.js":2915,"./organisms/o-roadshow/o-roadshow_controller.js":84538,"./organisms/o-search/o-search_controller.js":95017,"./organisms/o-section/o-section_controller.js":43979,"./organisms/o-seminardocuments/o-seminardocuments_controller.js":63467,"./organisms/o-seminarregister/o-seminarregister_controller.js":39739,"./organisms/o-seminarregistrationform/o-seminarregistrationform_controller.js":54315,"./organisms/o-servicetechnologyorderform/o-servicetechnologyorderform_controller.js":53655,"./organisms/o-softwareorderform/o-softwareorderform_controller.js":73915,"./organisms/o-symposium2022form/o-symposium2022form_controller.js":71687,"./organisms/o-symposiumform/o-symposiumform_controller.js":87259,"./organisms/o-upgradeform/o-upgradeform_controller.js":89715,"./organisms/o-videochapters/o-videochapters_controller.js":99835,"./organisms/o-watchlistoverview/o-watchlistoverview_controller.js":7191,"./organisms/o-wholesalerregistrationform/o-wholesalerregistrationform_controller.js":42639,"aem/components/c-elementaccesscontroller/c-elementaccesscontroller_controller.js":75302,"aem/components/c-headline/c-headline_controller.js":34348,"aem/components/c-hubspotform/c-hubspotform_controller.js":83846,"aem/components/c-integration/c-integration_controller.js":25954,"aem/components/c-linkbuttonwithconfirmation/c-linkbuttonwithconfirmation_controller.js":95610,"aem/components/c-productrenderer/c-productrenderer_controller.js":36874,"aem/components/c-viegavoice/c-viegavoice_controller.js":27356,"atoms/a-actionbutton/a-actionbutton_controller.js":27644,"atoms/a-button/a-button_controller.js":40696,"atoms/a-checkbox/a-checkbox_controller.js":19198,"atoms/a-image/a-image_controller.js":34150,"atoms/a-input/a-input_controller.js":68518,"atoms/a-link/a-link_controller.js":13540,"atoms/a-quantity/a-quantity_controller.js":80990,"atoms/a-radiobutton/a-radiobutton_controller.js":43042,"atoms/a-select/a-select_controller.js":40456,"atoms/a-textarea/a-textarea_controller.js":48196,"karriere/molecules/m-infovcard/m-infovcard_controller.js":10167,"karriere/molecules/m-interactiveimages/m-interactiveimages_controller.js":26411,"karriere/molecules/m-mediagallery/m-mediagallery_controller.js":26073,"karriere/molecules/m-stepbystepgallery/m-stepbystepgallery_controller.js":32627,"karriere/molecules/m-stickybutton/m
2-stickybutton_controller.js":59687,"karriere/organisms/o-smallgrid/o-smallgrid_controller.js":14175,"karriere/organisms/o-tab/o-tab_controller.js":99959,"molecules/m-accordion/m-accordion_controller.js":45627,"molecules/m-breadcrumb/m-breadcrumb_controller.js":81511,"molecules/m-carousel/m-carousel_controller.js":92393,"molecules/m-contentnav/m-contentnav_controller.js":54129,"molecules/m-cookielayer/m-cookielayer_controller.js":11683,"molecules/m-countryhint/m-countryhint_controller.js":15035,"molecules/m-formpage/m-formpage_controller.js":66319,"molecules/m-googlemap/m-googlemap_controller.js":58183,"molecules/m-hierarchyfilter/m-hierarchyfilter_controller.js":31047,"molecules/m-hotspotimage/m-hotspotimage_controller.js":55821,"molecules/m-iframe/m-iframe_controller.js":81141,"molecules/m-lightboxactionimage/m-lightboxactionimage_controller.js":40963,"molecules/m-lightsearchoptionsfilter/m-lightsearchoptionsfilter_controller.js":70345,"molecules/m-mainnav/m-mainnav_controller.js":2735,"molecules/m-notification/m-notification_controller.js":10602,"molecules/m-overlay/m-overlay_controller.js":61435,"molecules/m-overlayconsent/m-overlayconsent_controller.js":88857,"molecules/m-pagination/m-pagination_controller.js":10397,"molecules/m-placeholderimage/m-placeholderimage_controller.js":22181,"molecules/m-searchfacetfilter/m-searchfacetfilter_controller.js":94047,"molecules/m-searchinput/m-searchinput_controller.js":48795,"molecules/m-searchinputnew/m-searchinputnew_controller.js":92609,"molecules/m-searchoptionsfilter/m-searchoptionsfilter_controller.js":88500,"molecules/m-searchsortfilter/m-searchsortfilter_controller.js":3933,"molecules/m-searchtextfilter/m-searchtextfilter_controller.js":33567,"molecules/m-selectionmenu/m-selectionmenu_controller.js":46431,"molecules/m-softwaredownload/m-softwaredownload_controller.js":26519,"molecules/m-table/m-table_controller.js":58899,"molecules/m-teaserblog/m-teaserblog_controller.js":51309,"molecules/m-teaserevent/m-teaserevent_controller.js":70531,"molecules/m-teaserlistitem/m-teaserlistitem_controller.js":76767,"molecules/m-video/m-video_controller.js":14511,"organisms/o-callbackform/o-callbackform_controller.js":89335,"organisms/o-carouselstage/o-carouselstage_controller.js":75627,"organisms/o-competitionform/o-competitionform_controller.js":1923,"organisms/o-contactformmicrosite/o-contactformmicrosite_controller.js":2535,"organisms/o-contactformshort/o-contactformshort_controller.js":97369,"organisms/o-container/o-container_controller.js":62235,"organisms/o-countryflyout/o-countryflyout_controller.js":80079,"organisms/o-dayofeducation/o-dayofeducation_controller.js":46059,"organisms/o-dayofstudents/o-dayofstudents_controller.js":45315,"organisms/o-dealerlocator/o-dealerlocator_controller.js":11342,"organisms/o-distributorform/o-distributorform_controller.js":41163,"organisms/o-documentsearch/o-documentsearch_controller.js":91539,"organisms/o-dynamicaccordion/o-dynamicaccordion_controller.js":73251,"organisms/o-flushingstationform/o-flushingstationform_controller.js":90083,"organisms/o-footer/o-footer_controller.js":67099,"organisms/o-footerlite/o-footerlite_controller.js":13771,"organisms/o-form/o-form_controller.js":26825,"organisms/o-formnew/o-formnew_controller.js":13431,"organisms/o-gallery/o-gallery_controller.js":57731,"organisms/o-gridcontainer/o-gridcontainer_controller.js":15563,"organisms/o-header/o-header_controller.js":72671,"organisms/o-headerlite/o-headerlite_controller.js":59111,"organisms/o-keycloakbaseform/o-keycloakbaseform_controller.js":75045,"organisms/o-keycloakregistrationform/o-keycloakregistrationform_controller.js":16089,"organisms/o-lightsearch/o-lightsearch_controller.js":45527,"organisms/o-materialanalysisform/o-materialanalysisform_controller.js":12623,"organisms/o-mtrform/o-mtrform_controller.js":71811,"organisms/o-retaileragreementform/o-retaileragreementform_controller.js":2915,"organisms/o-roadshow/o-roadshow_controller.js":84538,"organisms/o-search/o-search_controller.js":95017,"organisms/o-section/o-section_controller.js":43979,"organisms/o-seminardocuments/o-seminardocuments_controller.js":63467,"organisms/o-seminarregister/o-seminarregister_controller.js":39739,"organisms/o-seminarregistrationform/o-seminarregistrationform_controller.js":54315,"organisms/o-servicetechnologyorderform/o-servicetechnologyorderform_controller.js":53655,"organisms/o-softwareorderform/o-softwareorderform_controller.js":73915,"organisms/o-symposium2022form/o-symposium2022form_controller.js":71687,"organisms/o-symposiumform/o-symposiumform_controller.js":87259,"organisms/o-upgradeform/o-upgradeform_controller.js":89715,"organisms/o-videochapters/o-videochapters_controller.js":99835,"organisms/o-watchlistoverview/o-watchlistoverview_controller.js":7191,"organisms/o-wholesalerregistrationform/o-wholesalerregistrationform_controller.js":42639};function o(t){var e=i(t);return r(e)}function i(t){if(!r.o(n,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return n[t]}o.keys=function(){return Object.keys(n)}
2,o.resolve=i,t.exports=o,o.id=56621},96198:function(){}},n={};function o(t){var e=n[t];if(void 0!==e)return e.exports;var i=n[t]={exports:{}};return r[t].call(i.exports,i,i.exports,o),i.exports}o.m=r,t=[],o.O=function(e,r,n,i){if(!r){var a=1/0;for(l=0;l<t.length;l++){r=t[l][0],n=t[l][1],i=t[l][2];for(var u=!0,c=0;c<r.length;c++)(!1&i||a>=i)&&Object.keys(o.O).every(function(t){return o.O[t](r[c])})?r.splice(c--,1):(u=!1,i<a&&(a=i));if(u){t.splice(l--,1);var s=n();void 0!==s&&(e=s)}}return e}i=i||0;for(var l=t.length;l>0&&t[l-1][2]>i;l--)t[l]=t[l-1];t[l]=[r,n,i]},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,{a:e}),e},o.d=function(t,e){for(var r in e)o.o(e,r)&&!o.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},function(){var t={792:0};o.O.j=function(e){return 0===t[e]};var e=function(e,r){var n,i,a=r[0],u=r[1],c=r[2],s=0;if(a.some(function(e){return 0!==t[e]})){for(n in u)o.o(u,n)&&(o.m[n]=u[n]);if(c)var l=c(o)}for(e&&e(r);s<a.length;s++)i=a[s],o.o(t,i)&&t[i]&&t[i][0](),t[i]=0;return o.O(l)},r=self.webpackChunkviega_frontend_2_0=self.webpackChunkviega_frontend_2_0||[];r.forEach(e.bind(null,0)),r.push=e.bind(null,r.push.bind(r))}(),o.O(void 0,[70,249],function(){return o(84315)});var i=o.O(void 0,[70,249],function(){return o(14316)});i=o.O(i)}();
3//# sourceMappingURL=main.js.map

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.