PageSourceSearch

https://cms-cdn.lmu.de/assets/scripts/app.bundle.js?v=20260710

js lmu.de collected 2026-09-24 08:28:25 UTC 422,282 bytes, 2 lines download raw bytes

1/*! For license information please see app.bundle.js.LICENSE.txt */
2(()=>{var __webpack_modules__={8229:(t,e,n)=>{"use strict";n(1767),n(5580),n(2815),n(2589);var i=n(7594),o=n(7194),r=n.n(o),s=(n(9448),n(1335)),a=n(3946),l=n(7456),c=n(8850),u=n(7664),p=n(4766);const f={options:{delay:100},pluginName:"ScrollHandler",initialize:function(t,e){e&&(this.options=t.helpers.extend(this.options,e||{})),document.addEventListener("scroll",(function(e){t.Vent&&t.Vent.trigger(t.EVENTS.pagescroll,{type:t.EVENTS.pagescroll})})),document.addEventListener("scroll",t.helpers.throttle((function(e){t.Vent&&t.Vent.trigger(t.EVENTS.pagescrollThrottled,{type:t.EVENTS.pagescrollThrottled})}),this.options.delay))}};var d=n(7885);const h={focus:"focus",pagescroll:"pagescroll",pagescrollThrottled:"pagescrollThrottled",touchstart:"touchstart",touchmove:"touchmove",touchend:"touchend",accordion:{openAll:"accordion:openAll",closeAll:"accordion:closeAll"},a11yFocusKey:{focus:"a11yFocusKey:focus",blur:"a11yFocusKey:blur"},toggler:{toggle:"toggler:toggle",open:"toggler:open",close:"toggler:close"},overlay:{open:"overlay:open"},slider:{slideStart:"slide:start"},timeline:{timelineStart:"timeline:start"},searchOverlay:{toggle:"searchOverlay:toggle",focusSearchField:"searchOverlay:focusSearchField"},mobileNavToggler:{addBackButton:"mobileNavToggler:addBackButton",removeBackButton:"mobileNavToggler:removeBackButton"},stackNavigation:{toggle:"stackNavigation:toggle",closePresentLevel:"stackNavigation:closePresentLevel",isOpening:"stackNavigation:isOpening",isClosing:"stackNavigation:isClosing"},form:{complete:"form:complete",reset:"form:reset"},selectReplace:{closeAll:"selectReplace:closeAll"},socialEmbed:{eventName:"socialEmbed:eventName"},showMore:{eventName:"showMore:eventName"},workspaceNews:{eventName:"workspaceNews:eventName"},toolboxButton:{eventName:"toolboxButton:eventName"},toolboxWorkspace:{eventName:"toolboxWorkspace:eventName"},toolboxModal:{eventName:"toolboxModal:eventName"},copartner:{eventName:"copartner:eventName"},personOverview:{eventName:"personOverview:eventName"},personDetail:{eventName:"personDetail:eventName"},searchBox:{eventName:"searchBox:eventName"},searchOption:{eventName:"searchOption:eventName"},headerPerson:{eventName:"headerPerson:eventName"},letterSelect:{eventName:"letterSelect:eventName"},personList:{eventName:"personList:eventName"},tableOfContent:{eventName:"tableOfContent:eventName"},mzlSubjects:{eventName:"mzlSubjects:eventName"},lmucastPlaylist:{eventName:"lmucastPlaylist:eventName"},newsroomCh2:{eventName:"newsroomCh2:eventName"},toc:{eventName:"toc:eventName"},magnetogramsTracker:{eventName:"magnetogramsTracker:eventName"}},m={options:{delay:100,testColor:"rgb(31,41,59)",bodyClass:"hcm"},pluginName:"HighContrastMode",initialize:function(t,e){this.options=t.helpers.extend(this.options,e||{});var n=document.createElement("div");n.style.color=this.options.testColor,document.body.appendChild(n);var i=document.defaultView?document.defaultView.getComputedStyle(n,null).color:n.currentStyle.color;i=i.replace(/ /g,""),document.body.removeChild(n),t.$(document.body)[i!==this.options.testColor?"addClass":"removeClass"](this.options.bodyClass)}};var v=n(315),y=n(8638),b=n(1883),g=n(6283),w=n(6925),_=n(3599);window.Promise=i.Z,window.MutationObserver=r();var k=n(4208),S=n(7951);const j=jQuery;var E=n.n(j),C=n(7755),O=n.n(C);function x(t){return x="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},x(t)}function T(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,I(i.key),i)}}function P(t,e){return P=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},P(t,e)}function A(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}
2function L(t){return L=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},L(t)}function I(t){var e=function(t,e){if("object"!==x(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!==x(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===x(e)?e:String(e)}const D=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&P(t,e)}(a,t);var e,n,i,o,r,s=(o=a,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=L(o);if(r){var n=L(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===x(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return A(t)}(this,t)});function a(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),function(t,e,n){(e=I(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}(A(e=s.call(this,t,{classes:{scrolled:"is-scrolled"},offsetTop:100})),"$el",E()(e.el)),e}return e=a,i=[{key:"info",get:function(){return{version:"1.0.0"}}}],(n=[{key:"subscribe",get:function(){return{"{{context.EVENTS.pagescroll}}":"onPageScroll"}}},{key:"onPageScroll",value:function(t){var e=this.context.detections.width;parseInt(window.pageYOffset)>this.options.offsetTop&&e>=768?this.$el.addClass(this.options.classes.scrolled):this.$el.removeClass(this.options.classes.scrolled)}},{key:"render",value:function(){return this}}])&&T(e.prototype,n),i&&T(e,i),Object.defineProperty(e,"prototype",{writable:!1}),a}(O());var F=n(9856);function R(t){return R="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},R(t)}function N(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,V(i.key),i)}}function M(t,e){return M=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},M(t,e)}function B(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function q(t){return q=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},q(t)}function H(t,e,n){return(e=V(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function V(t){var e=function(t,e){if("object"!==R(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!==R(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===R(e)?e:String(e)}const W=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&M(t,e)}(a,t);var e,n,i,o,r,s=(o=a,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=q(o);if(r){var n=q(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===R(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return B(t)}(this,t)});function a(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),H(B(e=s.call(this,t,{classes:{active:"is-active",calculating:"is-calculating",close:"is-closed",open:"is-open",unresolved:"is-unresolved",showPreview:"is-preview",isWithImg:"is-withimg",isImgLoading:"is-imgloading"},clickHandler:"click",dataMaxAttr:"data-js-height",openAllOnInit:!1,openByH
2ash:!1,openIndex:null,openOnViewports:["tablet-s","tablet-l","desktop-s","desktop-m","desktop-l"],removeStyles:!1,selectors:{accordionBtn:'[data-js-item="accordion-btn"]',accordionContent:'[data-js-item="accordion-content"]',figureImage:'[data-js-item="figure-acc-image"]'},singleOpen:!1,tabMode:!1,windowwidth:0})),"$el",E()(e.el)),H(B(e),"_$accordionContents",E()(e.options.selectors.accordionContent,e.$el)),H(B(e),"_$accordionBtns",E()(e.options.selectors.accordionBtn,e.$el)),H(B(e),"_$accordionImages",E()(e.options.selectors.figureImage,e.$el)),H(B(e),"_$target",null),H(B(e),"_$btn",null),H(B(e),"openIndex",e.options.openIndex),e}return e=a,i=[{key:"info",get:function(){return{version:"1.0.0",vc:!0,mod:!1}}}],(n=[{key:"$accordionContents",get:function(){return this._$accordionContents},set:function(t){this._$accordionContents=t}},{key:"$accordionImages",get:function(){return this._$accordionImages},set:function(t){this._$accordionImages=t}},{key:"$accordionBtns",get:function(){return this._$accordionBtns},set:function(t){this._$accordionBtns=t}},{key:"$target",get:function(){return this._$target},set:function(t){this._$target=t}},{key:"$btn",get:function(){return this._$btn},set:function(t){this._$btn=t}},{key:"events",get:function(){return{"{{this.options.clickHandler}} {{this.options.selectors.accordionBtn}}":"handleClick"}}},{key:"subscribe",get:function(){return{"{{context.EVENTS.resize}}":"render","{{context.EVENTS.accordion.closeAll}}":"closeAll","{{context.EVENTS.accordion.openAll}}":"openAll"}}},{key:"bindEvents",value:function(){var t=this.onHashChange.bind(this);this.options.openByHash&&E()(window).on(this.context.EVENTS.hashchange,t)}},{key:"didMount",value:function(){if(this.options.openByHash){var t=this.getIndexByHash();this.openIndex="number"==typeof t?t:this.options.openIndex}else this.options.tabMode&&!this.options.openIndex&&(this.openIndex=0)}},{key:"render",value:function(){this.context.currentMedia?E()(window).width()!=this.options.windowwidth&&(this.options.windowwidth=E()(window).width(),this.removeStyles(),setTimeout(this.saveHeights(this.$accordionContents),300),this.closeAll(),this.options.openAllOnInit&&this.openAll(),"number"==typeof this.openIndex&&(this.options.tabMode||-1!==this.options.openOnViewports.indexOf(this.context.currentMedia))&&(this.activateBtn(this.$accordionBtns.eq(this.openIndex)),this.slideDownV(this.$accordionContents.eq(this.openIndex))),this.$el.hasClass(this.options.classes.unresolved)&&this.$el.removeClass(this.options.classes.unresolved)):console.warn("Accordion: @veams/plugin-media-query-handler is necessary to support breakpoints in the accordion component!")}},{key:"getIndexByHash",value:function(){var t=document.location.hash.split("#"),e=!1,n=0;if(t<2)return!1;for(;n<this.$accordionContents.length;n++)if(this.$accordionContents[n].id===t[1]){e=n;break}return e}},{key:"onHashChange",value:function(t){var e=this.getIndexByHash();"number"==typeof e&&(this.options.singleOpen&&this.closeAll(),this.activateBtn(this.$accordionBtns.eq(e)),this.slideDownV(this.$accordionContents.eq(e)))}},{key:"saveHeights",value:function(t){var e=this;(0,F.default)(t,(function(t,n){var i=E()(n);i.hasClass(e.options.classes.showPreview)||(i.hasClass(e.options.classes.isWithImg)?(e.$accordionImages=i.find(e.options.selectors.figureImage),e.$accordionImages.length?e.$accordionImages[0].complete?setTimeout(e.saveHeight(n),1600):(n.classList.add(e.options.classes.isImgLoading),e.$accordionImages.on("load",(function(t){var n=t.currentTarget.closest(".accordion__content");null!=n&&(setTimeout(e.saveHeight(n),1600),n.classList.remove(e.options.classes.isImgLoading)),e.$accordionImages.off("load")}))):e.saveHeight(n)):e.saveHeight(n))}))}},{key:"saveHeight",value:function(t){var e=E()(t);e.addClass(this.options.classes.calculating);var n=e.outerHeight();e.removeClass(this.options.classes.calculating),e.attr(this.options.dataMaxAttr,n)}},{key:"handleClick",value:function(t,e){this.$btn=e?E()(e):E()(t.currentTarget);var n=this.$btn.attr("href");t.preventDefault(),this.options.tabMode&&this.$btn.hasClass(this.options.classes.active)||this.toggleContent(n)}},{key:"toggleContent",value:function(t){this.$target=this.$el.find(t),this.$target.hasClass(this.options.classes.open)?(this.slideUpV(this.$target),this.deactivateBtn(this.$btn)):((this.options.singleOpen||this.options.tabMode)&&this.closeAll(),this.activateBtn(this.$btn),this.slideDownV(this.$target))}},{key:"slideUpV",value:function(t){t.css("height",0).removeAttr("style").attr("aria-expanded","fal
2se").removeClass(this.options.classes.open).addClass(this.options.classes.close)}},{key:"slideDownV",value:function(t){var e=this;t.hasClass(this.options.classes.isImgLoading)&&(this.$accordionImages=t.find(this.options.selectors.figureImage),this.$accordionImages.length>0&&(this.$accordionImages[0].complete?(this.saveHeight(t[0]),t.removeClass(this.options.classes.isImgLoading)):this.$accordionImages.on("load",(function(t){var n=t.currentTarget.closest(".accordion__content");null!=n&&(e.saveHeight(n),n.classList.remove(e.options.classes.isImgLoading)),e.$accordionImages.off("load")})))),t.css("height",t.attr("data-js-height")+"px").attr("aria-expanded","true").removeClass(this.options.classes.close).addClass(this.options.classes.open)}},{key:"activateBtn",value:function(t){t.addClass(this.options.classes.active)}},{key:"deactivateBtn",value:function(t){t.removeClass(this.options.classes.active)}},{key:"removeStyles",value:function(){this.$accordionContents.removeAttr("style")}},{key:"closeAll",value:function(){var t=this;(0,F.default)(this.$accordionContents,(function(e,n){t.slideUpV(E()(n))})),(0,F.default)(this.$accordionBtns,(function(e,n){t.deactivateBtn(E()(n))}))}},{key:"openAll",value:function(){var t=this;(0,F.default)(this.$accordionContents,(function(e,n){t.slideDownV(E()(n))})),(0,F.default)(this.$accordionBtns,(function(e,n){t.activateBtn(E()(n))}))}}])&&N(e.prototype,n),i&&N(e,i),Object.defineProperty(e,"prototype",{writable:!1}),a}(O());function z(t){return z="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},z(t)}function Z(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,K(i.key),i)}}function U(t,e){return U=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},U(t,e)}function Y(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Q(t){return Q=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Q(t)}function J(t,e,n){return(e=K(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function K(t){var e=function(t,e){if("object"!==z(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!==z(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===z(e)?e:String(e)}const X=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&U(t,e)}(a,t);var e,n,i,o,r,s=(o=a,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=Q(o);if(r){var n=Q(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===z(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Y(t)}(this,t)});function a(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),J(Y(e=s.call(this,t,{classes:{down:"is-scrollable-down",left:"is-scrollable-left",right:"is-scrollable-right",up:"is-scrollable-up",showsecond:"is-scrollbar-visible"},isVerticalScroll:!1,offset:20,scrollToEnd:!1,scrollWrapperSecond:[],scrollContentSecond:[],useScrollSecond:!1,selectors:{scrollContent:'[data-js-item="scroll-content"]',scrollIndicator:'[data-js-item="scroll-indicator"]',scrollWrapper:'[data-js-item="scroll-wrapper"]'}})),"$el",E()(e.el)),J(Y(e),"$scrollIndicator",E()(e.options.selectors.scrollIndicator,e.$el)),J(Y(e),"$scrollWrapper",E()(e.options.selectors.scrollWrapper,e.$el)),J(Y(e),"$scrollC
2ontent",E()(e.options.selectors.scrollContent,e.$el)),J(Y(e),"_wrapperDimension",null),J(Y(e),"_contentDimension",null),e}return e=a,i=[{key:"info",get:function(){return{version:"1.0.0"}}}],(n=[{key:"subscribe",get:function(){return{"{{context.EVENTS.resize}}":"update"}}},{key:"wrapperDimension",get:function(){return this._wrapperDimension},set:function(t){this._wrapperDimension=t}},{key:"contentDimension",get:function(){return this._contentDimension},set:function(t){this._contentDimension=t}},{key:"bindEvents",value:function(){this.options.scrollWrapperSecond=this.el.querySelectorAll('[data-js-item="scroll-wrapper-second"]'),this.options.scrollWrapperSecond.length>0&&(this.options.scrollContentSecond=this.el.querySelectorAll('[data-js-item="scroll-content-second"]'),this.options.scrollContentSecond.length>0&&(this.options.useScrollSecond=!0));var t=this.update.bind(this);if(this.$scrollWrapper.on(this.context.EVENTS.scroll,t),this.options.useScrollSecond){var e=this.updateSecond.bind(this);E()(this.options.scrollWrapperSecond).on(this.context.EVENTS.scroll,e)}}},{key:"didMount",value:function(){this.options.isVerticalScroll?(this.scrollStartClass=this.options.classes.up,this.scrollEndClass=this.options.classes.down,this.scrollFunc="scrollTop"):(this.scrollStartClass=this.options.classes.left,this.scrollEndClass=this.options.classes.right,this.scrollFunc="scrollLeft"),this.update()}},{key:"update",value:function(t){this.options.isVerticalScroll||E()(this.options.scrollWrapperSecond[0]).scrollLeft(this.$scrollWrapper.scrollLeft()),this.updateDimensions(),t&&"resize"!==t.type||!this.options.scrollToEnd||(this.$scrollWrapper[0][this.scrollFunc]=this.contentDimension),this.updateClasses()}},{key:"updateSecond",value:function(t){this.options.isVerticalScroll||this.$scrollWrapper.scrollLeft(E()(this.options.scrollWrapperSecond[0]).scrollLeft())}},{key:"updateClasses",value:function(){var t=this.$scrollWrapper[0][this.scrollFunc];this.options.useScrollSecond&&(this.contentDimension<=this.wrapperDimension?this.options.scrollWrapperSecond[0].classList.remove(this.options.classes.showsecond):this.options.scrollWrapperSecond[0].classList.add(this.options.classes.showsecond)),this.contentDimension<=this.wrapperDimension?this.$scrollIndicator.removeClass(this.scrollStartClass+" "+this.scrollEndClass):(t<=this.options.offset?this.$scrollIndicator.removeClass(this.scrollStartClass):this.$scrollIndicator.addClass(this.scrollStartClass),t>=this.contentDimension-this.wrapperDimension-this.options.offset?this.$scrollIndicator.removeClass(this.scrollEndClass):this.$scrollIndicator.addClass(this.scrollEndClass))}},{key:"updateDimensions",value:function(){this.options.isVerticalScroll?(this.wrapperDimension=Math.floor(this.$scrollWrapper[0].clientHeight),this.contentDimension=Math.floor(this.$scrollContent.outerHeight(!0)),this.options.useScrollSecond&&(this.options.scrollContentSecond[0].style.height=this.contentDimension,this.options.scrollWrapperSecond[0].style.height=this.wrapperDimension)):(this.wrapperDimension=Math.floor(this.$scrollWrapper[0].clientWidth),this.contentDimension=Math.floor(this.$scrollContent.outerWidth(!0)),this.options.useScrollSecond&&(this.options.scrollContentSecond[0].style.width=this.contentDimension+"px",this.options.scrollWrapperSecond[0].style.width=this.wrapperDimension+"px"))}}])&&Z(e.prototype,n),i&&Z(e,i),Object.defineProperty(e,"prototype",{writable:!1}),a}(O());var G=n(8713);function tt(t){return tt="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},tt(t)}function et(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,st(i.key),i)}}function nt(t,e){return nt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},nt(t,e)}function it(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ot(t){return ot=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ot(t)}function rt(t,e,n){return(e=st(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function st(t){var e=function(t,e){if("object"!==tt(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!==tt(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===tt(e)?e:String(e)}const at=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&nt(t,e)}(a,t);var e,n,i,o,r,s=(o=a,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=ot(o);if(r){var n=ot(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===tt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return it(t)}(this,t)});function a(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),rt(it(e=s.call(this,t,{classes:{a11yFocusKey:"a11y-focus-key",calculating:"is-calculating",close:"is-closed",open:"is-open"},context:!1,dataMaxAttr:"data-js-height",focusEl:null,globalEvent:"",globalEventId:"",setOverflow:!1,toggleTabindexElems:""})),"$el",E()(e.el)),rt(it(e),"savedStyles",e.$el.attr("style")),rt(it(e),"windowWidth",e.context.detections.width),rt(it(e),"$toggleTabindexElems",e.options.toggleTabindexElems?E()(e.options.toggleTabindexElems,e.el):null),e}return e=a,i=[{key:"info",get:function(){return{version:"1.0.0",vc:!0,mod:!1}}}],(n=[{key:"height",get:function(){return this._height},set:function(t){this._height=t}},{key:"isOpen",get:function(){return this._isOpen},set:function(t){this._isOpen=t}},{key:"subscribe",get:function(){return{"{{context.EVENTS.resize}}":"updateHeight"}}},{key:"didMount",value:function(){var t=this;this.$el.attr("data-js-module")&&this.$el.attr("data-js-module").indexOf("toggler")>
2-1&&!this.options.globalEvent&&console.info("@veams/component-toggler :: this.options.globalEvent not set."),this.isOpen=this.$el.hasClass(this.options.classes.open),this.calculateHeight().then((function(){return!t.isOpen&&t.setHeight(0)}))}},{key:"bindEvents",value:function(){var t=this;new MutationObserver((function(e){e.forEach((function(e){"childList"===e.type&&t.updateHeight()}))})).observe(this.el,{childList:!0}),this.options.globalEvent&&this.registerEvent("{{this.options.globalEvent}}","toggle",!0)}},{key:"updateHeight",value:function(){var t=this;this.windowWidth!==this.context.detections.width&&(this.windowWidth=this.context.detections.width,clearTimeout(this.updateHeightTimeout),this.updateHeightTimeout=setTimeout((function(){t.calculateHeight().then((function(){return t.isOpen&&t.setHeight()}))}),200))}},{key:"enableCalcMode",value:function(){this.isOpen||(this.$el.addClass(this.options.classes.open),this.$el.removeClass(this.options.classes.close)),this.$el.addClass(this.options.classes.calculating)}},{key:"disableCalcMode",value:function(){this.$el.removeClass(this.options.classes.calculating),this.isOpen?this.setHeight():(this.$el.addClass(this.options.classes.close),this.$el.removeClass(this.options.classes.open))}},{key:"setHeight",value:function(t){this.$el.css("height","number"==typeof t?t+"px":this.$el.attr(this.options.dataMaxAttr)+"px")}},{key:"calcHeight",value:function(){var t=this;return new Promise((function(e,n){clearTimeout(t.calcHeightTimeout),t.calcHeightTimeout=setTimeout((function(){var n=t.$el.outerHeight();t.$el.attr(t.options.dataMaxAttr,n),t.height=n!==t.height?n:t.height,e()}),10)}))}},{key:"calculateHeight",value:function(){var t=this;return new Promise((function(e,n){t.el&&t.el.hasAttribute("style")&&t.saveStyles(),t.enableCalcMode(!0),t.calcHeight().then((function(){t.savedStyles&&t.restoreStyles(),t.disableCalcMode(),e()}))}))}},{key:"saveStyles",value:function(){this.savedStyles=this.$el.attr("style"),this.$el.removeAttr("style")}},{key:"restoreStyles",value:function(){this.$el.attr("style",this.savedStyles),this.savedStyles=null}},{key:"toggle",value:function(t){this.options.globalEventId&&t.options&&t.options.globalEventId&&this.options.globalEventId!==t.options.globalEventId||(t.isActive?this.open(t):this.close())}},{key:"open",value:function(t){var e=this;this.$el.css("height",this.$el.attr(this.options.dataMaxAttr)+"px").attr("aria-hidden",!1).removeClass(this.options.classes.close).addClass(this.options.classes.open),this.$srcEl=t&&E()(t.el),this.$toggleTabindexElems&&this.$toggleTabindexElems.length&&this.$el.on((0,G.Z)(),(function(){e.$toggleTabindexElems.attr("tabindex",0),e.$srcEl.hasClass(e.options.classes.a11yFocusKey)&&e.$toggleTabindexElems.eq(0).addClass(e.options.classes.a11yFocusKey),e.$toggleTabindexElems[0].focus(),e.$el.off((0,G.Z)())})),this.context.Vent.trigger(this.context.EVENTS.toggler.open,{context:this.options.context}),this.options.setOverflow&&this.$el.on((0,G.Z)(),(function(){e.$el.css("overflow","visible"),e.$el.off((0,G.Z)())})),this.isOpen=!0}},{key:"close",value:function(){this.$el.removeAttr("style").css("height",0).attr("aria-hidden",!0).removeClass(this.options.classes.open).addClass(this.options.classes.close),this.options.setOverflow&&this.$el.css("overflow","hidden"),this.$toggleTabindexElems&&this.$toggleTabindexElems.length&&this.$toggleTabindexElems.attr("tabindex",-1),this.isOpen=!1}}])&&et(e.prototype,n),i&&et(e,i),Object.defineProperty(e,"prototype",{writable:!1}),a}(O());function lt(t){return lt="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},lt(t)}function ct(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,ht(i.key),i)}}function ut(t,e){return ut=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ut(t,e)}function pt(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ft(t){return ft=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ft(t)}function dt(t,e,n){return(e=ht(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ht(t){var e=function(t,e){if("object"!==lt(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!==lt(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===lt(e)?e:String(e)}const mt=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ut(t,e)}(a,t);var e,n,i,o,r,s=(o=a,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=ft(o);if(r){var n=ft(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===lt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return pt(t)}(this,t)});function a(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),dt(pt(e=s.call(this,t,{classes:{active:"is-active"},clickHandler:"click",closedLabel:"",globalEvent:"cta:click",openedLabel:"",selectors:{ctaContent:'[data-js-item="cta-content"]'}})),"$el",E()(e.el)),dt(pt(e),"$ctaContent",E()(e.options.selectors.ctaContent,e.$el)),e}return e=a,n=[{key:"active",get:function(){return this._active},set:function(t){this._active=t}},{key:"events",get:function(){return{"{{this.options.clickHandler}}":"onClick"}}},{key:"didMount",value:function(){this.options.closedLabel&&!this.options.openedLabel||!this.options.closedLabel&&this.options.openedLabel?console.warn("CTA: You have to set closedLabel and openedLabel or none."):this.options.closedLabel&&this.options.openedLabel&&!this.$ctaContent.length&&console.warn("CTA: Labels set, but "+this.options.selectors.ctaContent+" not found, please make sure settings.ctaContentJsItem is set to true for c-cta__content."),this.$el.is("."+this.options.classes.active)&&(this.active=!0)}},{key:"render",value:function(){return this}},{key:"close",value:function(){this.options.closedLabel&&(this.$ctaContent.text(this.options.closedLabel),this.$el.attr("title",this.options.closedLabel)),this.$el.removeClass(this.options.classes.active),this.$el.attr("aria-expanded",!1),this.active=!1}},{key:"open",value:function(){this.options.openedLabel&&(this.$ctaContent.text(this.options.openedLabel),this.$el.attr("title",this.options.openedLabel)),this.$el.addClass(this.options.classes.active),this.$el.attr("aria-expanded",!0),this.active=!0}},{key:"onClick",value:function(t){t.preventDefault(),"function"==typeof this.clickHandler?(this.active?this.close():this.open(),this.clickHandler.apply(this,arguments)):console.warn("CTA: You need to inherit from "+this+" and override the onClick method or pass a function to "+this+".clickHandler !")}},{key:"clickHandler",value:function(){this.context.Vent.trigger(this.options.globalEvent,{el:this.el,isActive:this.active,options:this.options})}}],i=[{key:"info",get:function(){return{version:"1.0.0",vc:!0,mod:!1}}}],n&&ct(e.prototype,n),i&&ct(e,i),Object.defineProperty(e,"prototype",{writable:!1}),a}(O());function vt(t){return vt="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},vt(t)}function yt(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,kt(i.key),i)}}function bt(t,e){return bt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},bt(t,e)}function gt(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function wt(t){return wt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},wt(t)}function _t(t,e,n){return(e=kt(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function kt(t){var e=function(t,e){if("object"!==vt(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!==vt(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===vt(e)?e:String(e)}const St=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&bt(t,e)}(a,t);var e,n,i,o,r,s=(o=a,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=wt(o);if(r){var n=wt(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===vt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return gt(t)}(this,t)});function a(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),_t(gt(e=s.call(this,t,{selectors:{expandableList:'[data-js-item="expandable-list"]',listToggler:'[data-js-item="toggler-list"]'},classes:{},toggleListEvt:"cta:toggleDefinitionList"})),"listToggler",null),_t(gt(e),"listCta",null),_t(gt(e),"$expandableList",E()(e.options.selectors.expandableList,e.el)),_t(gt(e),"$listToggler",E()(e.options.selectors.listToggler,e.el)),e}return e=a,i=[{key:"info",get:function(){return{version:"1.0.0"}}}],(n=[{key:"events",get:function(){return{}}},{key:"subscribe",get:function(){return{}}},{key:"didMount",value:function(){this.$expandableList.length>0&&(this.listToggler=new at({el:this.$expandableList[0],namespace:"Toggler",context:this.context,options:{globalEvent:this.options.toggleListEvt,globalEventId:this.instanceId}}),this.listToggler.create(),this.listToggler.didMount(),this.listCta=new mt({el:this.$listToggler[0],namespace:"CTA",context:this.context,options:{globalEvent:this.options.toggleListEvt,globalEventId:this.instanceId}}),this.listCta.create(),this.listCta.didMount())}},{key:"render",value:function(){return this}}])&&yt(e.prototype,n),i&&yt(e,i),Object.defineProperty(e,"prototype",{writable:!1}),a}(O());function jt(t){return jt="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},jt(t)}function Et(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,Tt(i.key),i)}}function Ct(t,e){return Ct=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ct(t,e)}function Ot(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function xt(t){return xt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},xt(t)}function Tt(t){var e=function(t,e){if("object"!==jt(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!==jt(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===jt(e)?e:String(e)}const Pt=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ct(t,e)}(a,t);var e,n,i,o,r,s=(o=a,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=xt(o);if(r){var n=xt(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===jt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Ot(t)}(this,t)});function a(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),function(t,e,n){(e=Tt(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}(Ot(e=s.call(this,t,{selectors:{skipLinksSearch:'[data-js-item="skip-links-search"]',skipLinksNav:'[data-js-item="skip-links-nav"]'},navButton:[],stackNavElement:[],mobileNavElement:[]})),"$el",E()(e.el)),e}return e=a,i=[{key:"info",get:function(){return{version:"1.0.0"}}}],(n=[{key:"events",get:function(){return{"{{context.EVENTS.click}} {{this.options.selectors.skipLinksSearch}}":"onClick","{{context.EVENTS.click}} {{this.options.selectors.skipLinksNav}}":"onClickNav"}}},{key:"onClick",value:function(t){t.preventDefault(),this.context.detections.width,this.context.Vent.trigger(this.context.EVENTS.searchOverlay.toggle)}},{key:"onClickNav",value:function(t){this.options.navButton=[].slice.call(document.querySelectorAll('[data-js-item="js-skip-links-navvuebutton"]')),this.options.navButton.length>0&&this.options.navButton[0].click()}}])&&Et(e.prototype,n),i&&Et(e,i),Object.defineProperty(e,"prototype",{writable:!1}),a}(O());function $t(t){return $t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$t(t)}function At(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,(void 0,o=function(t,e){if("object"!==$t(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!==$t(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(i.key),"symbol"===$t(o)?o:String(o)),i)}var o}function Lt(t,e){return Lt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Lt(t,e)}function It(t){return It=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},It(t)}const Dt=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Lt(t,e)}(s,t);var e,n,i,o,r=(i=s,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=It(i);if(o){var n=It(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===$t(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 in
2itialised - super() hasn't been called");return t}(t)}(this,t)});function s(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),(n=r.call(this,{options:t},{classes:{focusClass:"a11y-focus-key"}})).context=e,n.initialize(),n}return e=s,(n=[{key:"isTabKeyPressed",get:function(){return this._isTabKeyPressed},set:function(t){this._isTabKeyPressed=t}},{key:"initialize",value:function(){this.bindEvents()}},{key:"bindEvents",value:function(){var t=this;E()(document).on(this.context.EVENTS.keydown,(function(e){t.isTabKeyPressed="Tab"===e.key||9===e.keyCode})),document.addEventListener(this.context.EVENTS.focus,this.onFocus.bind(this),!0),document.addEventListener(this.context.EVENTS.blur,this.onBlur.bind(this),!0)}},{key:"onFocus",value:function(t){if(this.isTabKeyPressed){this.isTabKeyPressed=!1;var e=E()(t.target);e.addClass(this.options.classes.focusClass),e.trigger(this.context.EVENTS.a11yFocusKey.focus)}}},{key:"onBlur",value:function(t){var e=E()(t.target);e.hasClass(this.options.classes.focusClass)&&(e.removeClass(this.options.classes.focusClass),e.trigger(this.context.EVENTS.a11yFocusKey.blur))}}])&&At(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),s}(n(1737).default);function Ft(t,e){var n,i,o=window.pageYOffset,r="string"==typeof t?document.querySelector(t):t,a={duration:1e3,offset:0,callback:null,easing:function(t,e,n,i){return(t/=i/2)<1?n/2*t*t*t+e:n/2*((t-=2)*t*t+2)+e}},l=(a=s.Z.helpers.extend(a,e||{})).offset+r.getBoundingClientRect().top,c="function"==typeof a.duration?a.duration(l):a.duration;function u(t){i=t-n,window.scrollTo(0,a.easing(i,o,l,c)),i<c?requestAnimationFrame(u):(window.scrollTo(0,o+l),"function"==typeof a.callback&&a.callback())}requestAnimationFrame((function(t){n=t,u(t)}))}function Rt(t){return Rt="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},Rt(t)}function Nt(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,Vt(i.key),i)}}function Mt(t,e){return Mt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Mt(t,e)}function Bt(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function qt(t){return qt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},qt(t)}function Ht(t,e,n){return(e=Vt(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Vt(t){var e=function(t,e){if("object"!==Rt(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!==Rt(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Rt(e)?e:String(e)}const Wt=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Mt(t,e)}(s,t);var e,n,i,o,r=(i=s,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=qt(i);if(o){var n=qt(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===Rt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Bt(t)}(this,t)});function s(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),Ht(Bt(e=r.call(this,t,{selectors:{anchorLink:'[data-js-item="anchor-link"]',header:'[data-js-item="header"]',hiddenList:'[data-js-item="hidden-list"]'},classes:{},toggleMoreLinksEvt:"cta:toggleMoreAnchorNavLinks"})),"$el",E()(e.el)),Ht(Bt(e),"$hiddenList",E()(e.options.selectors.hiddenList,e.el)),Ht(Bt(e),"$header",E()(e.options.selectors.header)),e}return e=s,(n=[{key:"events",get:function(){return{"{{context.EVENTS.click}} {{this.options.selectors.anchorLink}}":"handleClick"}}},{key:"handleClick",value:function(t,e){t.preventDefault();var n=e.href.split("#");if(n.length>1){var i=this.context.detections.width,o=-(this.$header.outerHeight()+20);i<768&&(o=-20),Ft(document.getElementById("".concat(n[1])),{offset:o})}}},{key:"didMount",value:function(){this.$hiddenList.length&&(this.listToggler=new at({el:this.$hiddenList[0],namespace:"Toggler",context:this.context,options:{globalEvent:this.options.toggleMoreLinksEvt,globalEventId:this.instanceId,setOverflow:!0,toggleTabindexElems:this.options.selectors.anchorLink}}),this.listToggler.create(),this.listToggler.didMount())}},{key:"render",value:function(){return this}}])&&Nt(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),s}(O());var zt=n(7810);function Zt(t){return Zt="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},Zt(t)}function Ut(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,Xt(i.key),i)}}function Yt(t,e){return Yt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Yt(t,e)}function Qt(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Jt(t){return Jt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Jt(t)}function Kt(t,e,n){return(e=Xt(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Xt(t){var e=function(t,e){if("object"!==Zt(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!==Zt(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Zt(e)?e:String(e)}const Gt=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Yt(t,e)}(s,t);var e,n,i,o,r=(i=s,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=Jt(i);if(o){var n=Jt(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===Zt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Qt(t)}
2(this,t)});function s(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),Kt(Qt(e=r.call(this,t,{classes:{visible:"is-visible"},selectors:{bgAnimationWrapper:'[data-js-item="bg-animation-wrapper"]'}})),"$el",E()(e.el)),Kt(Qt(e),"$bgAnimationWrapper",E()(e.options.selectors.bgAnimationWrapper,e.el)),e}return e=s,(n=[{key:"subscribe",get:function(){return{"{{context.EVENTS.pagescrollThrottled}}":"onPageScroll"}}},{key:"onPageScroll",value:function(t){(0,zt.Z)(this.el)&&!this.$bgAnimationWrapper.hasClass(this.options.classes.visible)&&this.$bgAnimationWrapper.addClass(this.options.classes.visible)}},{key:"render",value:function(){return this}}])&&Ut(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),s}(O());function te(t){return te="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},te(t)}function ee(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,re(i.key),i)}}function ne(t,e){return ne=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ne(t,e)}function ie(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function oe(t){return oe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},oe(t)}function re(t){var e=function(t,e){if("object"!==te(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!==te(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===te(e)?e:String(e)}const se=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ne(t,e)}(s,t);var e,n,i,o,r=(i=s,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=oe(i);if(o){var n=oe(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===te(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return ie(t)}(this,t)});function s(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),function(t,e,n){(e=re(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}(ie(e=r.call(this,t,{selectors:{backToTopButton:'[data-js-item="back-to-top-link"]'},classes:{visible:"is-visible"},scrollTimeout:2e3})),"$el",E()(e.el)),e}return e=s,(n=[{key:"events",get:function(){return{"{{context.EVENTS.click}} {{this.options.selectors.backToTopButton}}":"onBackToTopButtonClick","{{context.EVENTS.mouseover}} {{this.options.selectors.backToTopButton}}":"onBackToTopButtonHover","{{context.EVENTS.mouseout}} {{this.options.selectors.backToTopButton}}":"onBackToTopButtonHoverLeave","{{context.EVENTS.touchstart}} {{this.options.selectors.backToTopButton}}":"onBackToTopButtonHover","{{context.EVENTS.touchend}} {{this.options.selectors.backToTopButton}}":"onBackToTopButtonHoverLeave"}}},{key:"subscribe",get:function(){return{"{{context.EVENTS.pagescrollThrottled}}":"onScroll"}}},{key:"onBackToTopButtonClick",value:function(t){t.preventDefault(),Ft(document.body)}},{key:"onBackToTopButtonHover",value:function(t){clearTimeout(this.scrollTimeout)}},{key:"onBackToTopButtonHoverLeave",value:function(t){var e=this;this.scrollTimeout=setTimeout((function(){e.$el.removeClass(e.options.classes.visible)}),this.options.scrollTimeout)}},{key:"onScroll",value:function(t){var e=this;clearTimeout(this.scrollTimeout);var n=this.context.detections.height;document.body.scrollTop>n||document.documentElement.scrollTop>n?(this.$el.addClass(this.options.classes.visible),this.scrollTimeout=setTimeout((function(){e.$el.removeClass(e.options.classes.visible)}),this.options.scrollTimeout)):this.$el.removeClass(this.options.classes.visible)}},{key:"render",value:function(){return this}}])&&ee(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),s}(O());function ae(t){return ae="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},ae(t)}function le(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,de(i.key),i)}}function ce(t,e){return ce=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ce(t,e)}function ue(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function pe(t){return pe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},pe(t)}function fe(t,e,n){return(e=de(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function de(t){var e=function(t,e){if("object"!==ae(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!==ae(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===ae(e)?e:String(e)}const he=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ce(t,e)}(a,t);var e,n,i,o,r,s=(o=a,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=pe(o);if(r){var n=pe(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===ae(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return ue(t)}(this,t)});function a(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),fe(ue(e=s.call(this,t,{classes:{a11yFocusKey:"a11y-focus-key"},contextFragmentsSel:"",focusableElems:["a[href]","button:not([disabled])","area[href]","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","iframe","object","embed",'*[tabindex]:not
2([tabindex="-1"])',"*[contenteditable]"],setInitialFocus:!0})),"$el",E()(e.el)),fe(ue(e),"$focusableElems",E()()),fe(ue(e),"active",!1),fe(ue(e),"_active",!1),e}return e=a,i=[{key:"info",get:function(){return{version:"1.0.0"}}}],(n=[{key:"active",get:function(){return this._active},set:function(t){this._active=t}},{key:"onKeyDown",value:function(t){var e=this,n="Tab"===t.key||9===t.keyCode,i={length:0,type:"VeamsQueryObject"};Object.keys(this.$focusableElems).forEach((function(t,n){if("length"!==t&&"type"!==t&&e.$focusableElems.hasOwnProperty(t)){var o=e.$focusableElems[t];null===o.offsetParent||E()(o).closest('[aria-hidden="true"]').length||(i[i.length]=o,i.length++)}}));var o=i[0],r=i[i.length-1];n&&(t.shiftKey?document.activeElement===o&&(r.focus(),E()(r).addClass(this.options.classes.a11yFocusKey),t.preventDefault()):document.activeElement===r&&(o.focus(),E()(o).addClass(this.options.classes.a11yFocusKey),t.preventDefault()))}},{key:"didMount",value:function(){this.options.contextFragmentsSel&&(this.$contextFragmentsSel=E()(this.options.contextFragmentsSel)),this.update()}},{key:"isActive",value:function(){return this.active}},{key:"update",value:function(){var t=this,e=this.options.focusableElems.join();this.$contextFragmentsSel&&this.$contextFragmentsSel.length?this.$contextFragmentsSel.each((function(n,i){t.$focusableElems=t.$focusableElems.add(E()(i).find(e))})):this.$focusableElems=this.$el.find(e)}},{key:"activate",value:function(){this.options.setInitialFocus&&this.$focusableElems.length&&this.$focusableElems[0].focus(),this.registerEvent("{{context.EVENTS.keydown}}","onKeyDown"),this.active=!0}},{key:"deactivate",value:function(){this.unregisterEvent("{{context.EVENTS.keydown}}","onKeyDown"),this.active=!1}}])&&le(e.prototype,n),i&&le(e,i),Object.defineProperty(e,"prototype",{writable:!1}),a}(O());function me(t){return me="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},me(t)}function ve(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,_e(i.key),i)}}function ye(t,e){return ye=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ye(t,e)}function be(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ge(t){return ge=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ge(t)}function we(t,e,n){return(e=_e(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function _e(t){var e=function(t,e){if("object"!==me(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!==me(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===me(e)?e:String(e)}var ke='\n<div id="overlay" class="c-overlay--default" data-css="c-overlay" data-js-item="overlay" aria-hidden="true">\n\t<div class="overlay__wrapper">\n\t\t<button class="overlay__close" data-js-item="overlay-close">Schließen</button>\n\t\t<div class="overlay__content">\n\t\t\t<div class="overlay__inner" data-js-item="overlay-content">\n\t\t\t</div>\n\t\t</div>\n\t</div>\n\t<div class="overlay__mask" data-js-item="overlay-mask"></div>\n</div>';const Se=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ye(t,e)}(a,t);var e,n,i,o,r,s=(o=a,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=ge(o);if(r){var n=ge(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===me(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return be(t)}(this,t)});function a(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),we(be(e=s.call(this,t,{classes:{noScroll:"isnt-scrollable",open:"is-open"},selectors:{closeBtn:'[data-js-item="overlay-close"]',figureImage:'[data-js-item="figure-image"]',footer
2:'[data-js-item="footer"]',header:'[data-js-item="header"]',main:'[data-js-item="main"]',overlay:'[data-js-item="overlay"]',regionContent:'[data-js-item="overlay-content"]',skipLinks:'[data-js-item="skip-links"]'},templates:{default:"OVERLAY__CONTENT"}})),"$body",E()("body")),we(be(e),"$header",E()(e.options.selectors.header)),we(be(e),"$main",E()(e.options.selectors.main)),we(be(e),"$footer",E()(e.options.selectors.footer)),we(be(e),"$skipLinks",E()(e.options.selectors.skipLinks)),we(be(e),"_template",ke),we(be(e),"focusTrap",null),e}return e=a,i=[{key:"info",get:function(){return{version:"1.0.0",vc:!0,mod:!1}}}],(n=[{key:"template",get:function(){return this._template},set:function(t){this._template=t}},{key:"overlayCreated",get:function(){return this._overlayCreated},set:function(t){this._overlayCreated=t}},{key:"isOpen",get:function(){return this._isOpen},set:function(t){this._isOpen=t}},{key:"$overlay",get:function(){return this._$overlay},set:function(t){this._$overlay=t}},{key:"$closeBtn",get:function(){return this._$closeBtn},set:function(t){this._$closeBtn=t}},{key:"$regionContent",get:function(){return this._$regionContent},set:function(t){this._$regionContent=t}},{key:"subscribe",get:function(){return{"{{context.EVENTS.overlay.open}}":"render","{{context.EVENTS.resize}}":"onResize"}}},{key:"bindEvents",value:function(){var t=this;E()(window).on(this.context.EVENTS.keyup,(function(e){27==e.keyCode&&t.isOpen&&t.close()}))}},{key:"bindLocalEvents",value:function(){var t=this.close.bind(this);this.$closeBtn.on(this.context.EVENTS.click,t)}},{key:"onResize",value:function(t){this.open&&this.setInnerWidth()}},{key:"preRender",value:function(){this.$body.append(this.template),this.$overlay=E()(this.options.selectors.overlay),this.$closeBtn=E()(this.options.selectors.closeBtn,this.$overlay),this.$regionContent=E()(this.options.selectors.regionContent,this.$overlay),this.focusTrap=new he({el:this.$overlay[0],namespace:"FocusTrap",context:this.context}),this.focusTrap.create(),this.focusTrap.didMount(),this.overlayCreated=!0,this.bindLocalEvents()}},{key:"render",value:function(t){var e=this.renderTemplate(this.options.templates.default,t.data);this.ctaInstance=t.ctaInstance,this.$regionContent.html(e),this.focusTrap.update(),this.open()}},{key:"setInnerWidth",value:function(){var t=this;this.$overlayImage=this.$overlay.find(this.options.selectors.figureImage),this.$regionContent.css("width",""),this.$overlayImage.length&&(this.$overlayImage[0].complete?this.$regionContent.css("width",this.$overlayImage[0].width+"px"):this.$overlayImage.on("load",(function(e,n){t.$regionContent.css("width",n.width+"px"),t.$overlayImage.off("load")})))}},{key:"open",value:function(){var t=this;this.$overlay.addClass(this.options.classes.open),this.isOpen=!0,this.focusTrap.activate(),this.scrollTop=this.$body[0].scrollTop,this.$body.addClass(this.options.classes.noScroll),this.setInnerWidth(),setTimeout((function(){t.$overlay.attr("aria-hidden",!1),t.$skipLinks.attr("aria-hidden",!0),t.$header.attr("aria-hidden",!0),t.$main.attr("aria-hidden",!0),t.$footer.attr("aria-hidden",!0),t.$closeBtn[0].focus()}),0)}},{key:"close",value:function(){this.$overlay.removeClass(this.options.classes.open),this.isOpen=!1,this.$overlay.attr("aria-hidden",!0),this.$skipLinks.attr("aria-hidden",!1),this.$header.attr("aria-hidden",!1),this.$main.attr("aria-hidden",!1),this.$footer.attr("aria-hidden",!1),this.$body.removeClass(this.options.classes.noScroll),this.$body[0].scrollTop=this.scrollTop,this.focusTrap.deactivate(),this.ctaInstance&&(this.ctaInstance.close(),this.ctaInstance.el.focus()),this.$regionContent.empty()}}])&&ve(e.prototype,n),i&&ve(e,i),Object.defineProperty(e,"prototype",{writable:!1}),a}(O());function je(t){return je="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},je(t)}function Ee(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,Pe(i.key),i)}}function Ce(t,e){return Ce=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ce(t,e)}function Oe(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function xe(t){return xe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},xe(t)}function Te(t,e,n){return(e=Pe(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Pe(t){var e=function(t,e){if("object"!==je(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!==je(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===je(e)?e:String(e)}const $e=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ce(t,e)}(a,t);var e,n,i,o,r,s=(o=a,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=xe(o);if(r){var n=xe(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===je(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Oe(t)}(this,t)});function a(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),Te(Oe(e=s.call(this,t,{classes:{},selectors:{cta:'[data-js-item="overlay-handler-cta"]'}})),"$el",E()(e.el)),Te(Oe(e),"$cta",E()(e.options.selectors.cta,e.$el)),e}return e=a,i=[{key:"info",get:function(){return{version:"1.0.0"}}}],(n=[{key:"didMount",value:function(){this.$cta.length&&this.initOverlayHandler()}},{key:"initOverlayHandler",value:function(){var t=0;for(this.cta=[];t<this.$cta.length;t++)this.cta[t]=new mt({el:this.$cta[t],namespace:"CTA",context:this.context}),this.cta[t].create(),this.cta[t].didMount(),this.cta[t].clickHandler=this.openOverlay.bind(this.cta[t])}},{key:"openOverlay",value:function(){this.active&&this.context.Vent.trigger(this.context.EVENTS.overlay.open,{data:JSON.parse(this.$el.attr("data-content")),ctaInstance:this})}}])&&Ee(e.prototype,n),i&&Ee(e,i),Object.defineProperty(e,"prototype",{writable:!1}),a}(O());function Ae(t,e){if(window.getComputedStyle){var n=getComputedStyle(t),i=n.transform||n.webkitTransform||n.mozTransform,o=i.match(/^matrix3d\((.+)\)$/);return o?parseFloat(o[1].split(", ")[{x:12,y:13,z:14}[e]]):(o=i.match(/^matrix\((.+)\)$/))?parseFloat(o[1].split(", ")[{x:4,y:5,z:6}[e]]):0}}function Le(t){return Le="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},Le(t)}function Ie(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,Me(i.key),i)}}function De(t,e){return De=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},De(t,e)}function Fe(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Re(t){return Re=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Re(t)}function Ne(t,e,n){return(e=Me(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Me(t){var e=function(t,e){if("object"!==Le(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!==Le(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Le(e)?e:String(e)}const Be=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&De(t,e)}(a,t);var e,n,i,o,r,s=(o=a,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=Re(o);if(r){var n=Re(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===Le(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Fe(t)}(this,t)});function a(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),Ne(Fe(e=s.call(this,t,{classes:{active:"is-active",cloned:"is-cloned",disabled:"is-disabled",hidden:"is-hidden",paginationItem:"slider__pagination-list-item",sliding:"is-sliding",unresolved:"is-unresolved",zoom:"is-zoom",zoomOut:"is-zoomOut",animation:"isAnim"},autoPlay:!1,autoPlayInterval:3e3,zoomAnimation:!1,counterRelationLabel:"of",disablePagination:!1,enableTouchSwipe:!1,groupPaginationItems:!1,infinite:!1,pageScrollThreshold:30,paginationItemJsItem:"slider-pagination-item",pauseOnHover:!0,selectors:{counter:'[data-js-item="slider-counter"]',imageDescription:'[data-js-item="image-description"]',imageDescriptionWrapper:'[data-js-item="image-description-wrapper"]',items:'[data-js-item="slider-item"]',next:'[data-js-item="slider-next"]',prev:'[data-js-item="slider-prev"]',paginationList:'[data-js-item="slider-pagination-list"]',ribbon:'[data-js-item="slider-ribbon"]',wrapper:'[data-js-item="slider-wrapper"]'},slideByItemNumber:!1,startAtIndex:0,swipeThreshold:10,visibleItems:{"mobile-s":1,"mobile-p":1,"tablet-p":1,"tablet-l":1,"desktop-m":1,"desktop-l":1}})),"$el",E()(e.el)),Ne(Fe(e),"$prev",e.$el.find(e.options.selectors.prev)),Ne(Fe(e),"$next",e.$el.find(e.options.selectors.next)),Ne(Fe(e),"$items",e.$el.find(e.options.selectors.items)),Ne(Fe(e),"$initialItems",e.$items),Ne(Fe(e),"$wrapper",e.$el.find(e.options.selectors.wrapper)),Ne(Fe(e),"$ribbon",e.$el.find(e.options.selectors.ribbon)),Ne(Fe(e),"$lastItem",e.$items.eq(e.$items.length-1)),Ne(Fe(e),"$firstItem",e.$items.eq(0)),Ne(Fe(e),"$counter",e.$el.find(e.options.selectors.counter)),Ne(Fe(e),"$imageDescriptionWrapper",e.$el.find(e.options.selectors.imageDescriptionWrapper)),Ne(Fe(e),"$imageDescription",e.$imageDescriptionWrapper.find(e.options.selectors.imageDescription)),Ne(Fe(e),"imageDescriptionHeights",[]),Ne(Fe(e),"transition",e.$ribbon.css("transition")),Ne(Fe(e),"paginationDisabled",e.options.disablePagination||e.$items.length<2),Ne(Fe(e),"paginationItemSel",'[data-js-item="'+e.options.paginationItemJsItem+'"]'),Ne(Fe(e),"infinite",e.options.infinite&&e.$items.length>1),Ne(Fe(e),"touchSwipeEnabled",!1),Ne(Fe(e),"clickHandler",!0),Ne(Fe(e),"_index",e.options.startAtIndex||
20),Ne(Fe(e),"_autoPlay",e.options.autoPlay&&e.infinite),Ne(Fe(e),"_zoomAnimation",e.options.zoomAnimation),e}return e=a,i=[{key:"info",get:function(){return{version:"1.0.0",vc:!0,mod:!1}}},{key:"getDragValues",value:function(t,e){var n=t.touches[0].pageX-e.pageX,i=t.touches[0].pageY-e.pageY;return{x:e.elemX+n,deltaX:n,deltaY:i}}}],(n=[{key:"visibles",get:function(){return this._numVisible},set:function(t){this._numVisible=t}},{key:"itemsLength",get:function(){return this._itemLength},set:function(t){this._itemLength=t}},{key:"index",get:function(){return this._index},set:function(t){this._index=t}},{key:"paused",get:function(){return this._paused},set:function(t){this._paused=t}},{key:"autoPlay",get:function(){return this._autoPlay},set:function(t){this._autoPlay=t}},{key:"zoomAnimation",get:function(){return this._zoomAnimation},set:function(t){this._zoomAnimation=t}},{key:"controlHeight",get:function(){return this.$prev.outerHeight()}},{key:"slideBy",get:function(){return this.options.slideByItemNumber||this.visibles}},{key:"ribbonWidth",get:function(){return this.$items.length*this.thumbWidth+1}},{key:"events",get:function(){return{"click {{this.options.selectors.prev}}":"showPrevElement","touchstart {{this.options.selectors.prev}}":"showPrevElement","click {{this.options.selectors.next}}":"showNextElement","touchstart {{this.options.selectors.next}}":"showNextElement","click {{this.paginationItemSel}}":"navigateToElement","touchstart {{this.paginationItemSel}}":"navigateToElement"}}},{key:"subscribe",get:function(){return{"{{context.EVENTS.resize}}":"render"}}},{key:"bindEvents",value:function(){this.autoPlay&&this.options.pauseOnHover&&(this.registerEvent("{{context.EVENTS.mouseenter}}","pause"),this.registerEvent("{{context.EVENTS.mouseleave}}","play"))}},{key:"unbindEvents",value:function(){this.context.Vent.off(this.context.EVENTS.resize),this.$el.off(this.context.clickHandler)}},{key:"didMount",value:function(){if(this.$el.hasClass(this.options.classes.animation)){var t=document.querySelector("."+this.options.classes.animation),e=getComputedStyle(t).visibility;this.$el.removeClass(this.options.classes.animation),"hidden"==e&&(this.autoPlay=!1)}if(this.paginationDisabled||(this.$paginationList=this.$el.find(this.options.selectors.paginationList)),this.options.autoPlay&&!this.infinite&&console.warn('Slider: Sorry - option "autoPlay" has no effect while option "infinite" is set to false!'),this.infinite)for(var n in this.options.visibleItems)if(this.options.visibleItems.hasOwnProperty(n)&&this.options.visibleItems[n]>1){console.warn('Slider: Sorry - option "visibleItems" has no effect while option "infinite" is set to true!');break}}},{key:"render",value:function(){this.context.currentMedia?(this.$clonedLast&&this.$clonedFirst&&(this.$clonedLast.remove(),this.$clonedFirst.remove(),this.$items=this.$initialItems),this.visibles=this.infinite?1:this.options.visibleItems[this.context.currentMedia],this.itemsLength=this.$items.length,this.handleVisibility(),this.paginationDisabled||(this.removePagination(),this.addPagination()),this.infinite&&(this.infiniteLoop(),this.index=0===this.index?this.index+this.visibles:this.index),this.bindTransitions(),this.getAndSetDimensions(),this.context.detections.touch&&this.options.enableTouchSwipe&&!this.touchSwipeEnabled&&this.bindSwipes(),this.goToItem(this.index),this.autoPlay&&this.paused&&this.play(),this.$imageDescription.eq(this.index).addClass(this.options.classes.active),this.getImageDescriptionHeights(),this.$imageDescriptionWrapper.css("height",this.imageDescriptionHeights[this.index]+"px")):console.warn("Slider: this.context.currentMedia is necessary to support the slider module!")}},{key:"bindTransitions",value:function(){var t=this.onRibbonTransitionEnd.bind(this),e=this.onItemsTransitionEnd.bind(this);this.$ribbon.on((0,G.Z)(),t),this.$items.on((0,G.Z)(),e)}},{key:"onRibbonTransitionEnd",value:function(t){t.stopPropagation(),this.$el.removeClass(this.options.classes.sliding),this.$imageDescription.eq(this.index).addClass(this.options.classes.active),this.autoPlay&&this.paused&&(this.options.pauseOnHover&&this.$el.is(":hover")||this.play()),this.$clonedFirst&&this.$clonedFirst.hasClass(this.options.classes.active)&&(this.$clonedFirst.removeClass(this.options.classes.active),this.index=1,this.animateSlide({idx:this.index,animate:!1}),this.$clonedFirst.hasClass(this.options.classes.zoom)&&(this.$clonedFirst.removeClass(this.options.classes.zoom),this.$clonedFirst.addClass(this.options.classes.zoomOut))),this.$clonedLast&&this.$clonedLast.hasClass(this.options.classes.active)&&(this.$clonedLast.removeClass(this.options.classes.active),this.index=this.$items.length-this.visibles-1,this.animateSlide({idx:this.index,animate:!1}),this.$clonedLast.hasClass(this.options.classes.zoom)&&(this.$clonedLast.removeClass(this.options.classes.zoom),this.$clonedFirst.addClass(this.options.classes.zoomOut))),this.clickHandler=!0}},{key:"onItemsTransitionEnd",value:function(t){t.stopPropagation()}},{key:"getImageDescriptionHeights",value:function(){for(var t=0;t<this.$imageDescription.length;t++)this.imageDescriptionHeights.push(this.$imageDescription.eq(t).outerHeight())}},{key:"infiniteLoop",value:function(){this.$clonedFirst=this.$firstItem.clone(!0).addClass(this.options.classes.cloned),this.$clonedLast=this.$lastItem.clone(!0).addClass(this.options.classes.cloned),this.options.infinite&&(this.$clonedFirst.find(this.paginationItemSel).attr("data-index",this.itemsLength),this.$clonedLast.find(this.paginationItemSel).attr("data-index",-1)),this.$firstItem.before(this.$clonedLast),this.$lastItem.after(this.$clonedFirst),this.$items=E()(this.options.selectors.items,this.$el)}},{key:"animateSlide",value:function(t){t.animate?(t.idx!==t.prevIdx&&this.$el.addClass(this.options.classes.sliding),this.$ribbon.css("transition",this.transition)):this.$ribbon.css("transition","none"),t.idx!==t.prevIdx&&this.$imageDescription.removeClass(this.options.classes.active),this.$ribbon.css("transform","translate3d("+-t.idx*this.thumbWidth+"px, 0, 0)")}},{key:"checkSlides",value:function(){this.$clonedFirst.hasClass(this.options.classes.active)&&(this.$firstItem.addClass(this.options.classes.active),this.zoomAnimation&&(this.$firstItem.removeClass(this.options.classes.zoomOut),this.$firstItem.addClass(this.options.classes.zoom))),this.$clonedLast.hasClass(this.options.classes.active)&&(this.$lastItem.addClass(this.options.classes.active),this.zoomAnimation&&(this.$lastItem.removeClass(this.options.classes.zoomOut),this.$lastItem.addClass(this.options.classes.zoom)))}},{key:"handleVisibility",value:function(){0===this.itemsLength&&(this.$el.addClass(this.options.classes.hidden),console.warn("Slider: There is no item we can use in our slider :(")),this.$el.css("max-width","none")}},{key:"removePagination",value:function(){this.$paginationList.empty()}},{key:"addPagination",value:function(){for(var t="",e=0,n=this.options.paginationItemJsItem,i=this.options.classes.paginationItem;e<this.$items.length;e++){var o=e+1,r="";this.options.groupPaginationItems&&(r=e%this.visibles==0?"":this.options.classes.hidden),t+='\n\t\t\t\t\t<li class="'.concat(i," ").concat(r,'" data-js-item="').concat(n,'" data-index="').concat(e,'">\n\t\t\t\t\t\t<strong>').concat(o,"</strong>\n\t\t\t\t\t</li>\n\t\t\t\t\t")}this.$paginationList.append(t),this.$paginationItems=E()('[data-js-item="'+this.options.paginationItemJsItem+'"]',this.$el)}},{key:"navigateToElement",value:function(t,e){var n=E()(e);if(!n.hasClass(this.options.classes.active)){var i=parseInt(n.attr("data-index"),10)||n.index();this.infinite&&(i+=this.slideBy),this.goToItem(i)}}},{key:"showNextElement",value:function(t,e){var n=E()(e);t&&"function"==typeof t.preventDefault&&t.preventDefault(),n.prop("disabled")||this.clickHandler&&(this.goToItem(this.index+this.slideBy),this.clickHandler=!1)}},{key:"showPrevElement",value:function(t,e){var n=E()(e);t&&"function"==typeof t.preventDefault&&t.preventDefault(),n.prop("disabled")||this.clickHandler&&(this.goToItem(this.index-this.slideBy),this.clickHandler=!1)}},{key:"getDirection",value:function(t){return t>this.index?"next":"prev"}},{key:"bindSwipes",value:function(){this.registerEvent("{{context.EVENTS.touchstart}} {{this.options.selectors.ribbon}}","startDrag")}},{key:"startDrag",value:function(t,e){var n=this,i=e,o=E()(i),r=0,s=0,l={elemX:i.offsetLeft+Ae(i,"x"),pageX:t.touches[0].pageX,pageY:t.touches[0].pageY};o.on(this.context.EVENTS.touchmove,(function(t){var e=a.getDragValues(t,l);r=e.deltaX,s=e.deltaY,Math.abs(s)<=n.options.pageScrollThreshold&&n.translateRibbon(e.x)})),E()(window).on(this.context.EVENTS.touchend,(function(){E()(window).off(n.context.EVENTS.touchend),o.off(n.context.EVENTS.touchmove),Math.abs(r)<=n.$el.outerWidth()*(n.options.swipeThreshold/100)||Math.abs(s)>n.options.pageScrollThreshold?n.goToItem(n.index):(t.preventDefault(),r>0&&(n.index>
20?n.goToItem(n.index-1):n.goToItem(n.index)),r<0&&(n.index<n.$items.length-1&&n.goToItem(n.index+1),n.goToItem(n.index)))}))}},{key:"translateRibbon",value:function(t){this.$ribbon.css({transform:"translate3d("+t+"px, 0, 0)",transition:"none"})}},{key:"enableBtn",value:function(t){t.removeClass(this.options.classes.disabled),t.prop("disabled",!1),t.removeAttr("aria-disabled")}},{key:"disableBtn",value:function(t){t.addClass(this.options.classes.disabled),t.prop("disabled",!0),t.attr("aria-disabled",!0)}},{key:"goToItem",value:function(t){var e=this.$items.length-this.visibles;e<0&&(e=0),this.paused||this.pause(),this.infinite?t<0?t=e:t>e&&(t=0):(this.enableBtn(this.$prev),this.enableBtn(this.$next),t<1&&(this.disableBtn(this.$prev),t<0&&(t=0)),t>e-1&&(this.disableBtn(this.$next),t>e&&(t=e)));var n=this.index;this.index=t,this.animateSlide({animate:!this.$el.hasClass(this.options.classes.unresolved),idx:t,prevIdx:n}),this.$el.hasClass(this.options.classes.unresolved)&&this.$el.removeClass(this.options.classes.unresolved),this.handleActivity(),this.infinite&&this.checkSlides()}},{key:"handleActivity",value:function(){this.$items.removeClass(this.options.classes.active),this.$imageDescriptionWrapper.css("height",this.imageDescriptionHeights[this.index]+"px"),this.zoomAnimation&&this.$items.hasClass(this.options.classes.zoom)&&(this.$items.removeClass(this.options.classes.zoom),this.$items.addClass(this.options.classes.zoomOut)),!this.paginationDisabled&&this.$paginationItems&&this.$paginationItems.length&&(this.$paginationItems.removeClass(this.options.classes.active),this.zoomAnimation&&this.$paginationItems.hasClass(this.options.classes.zoom)&&(this.$paginationItems.removeClass(this.options.classes.zoom),this.$paginationItems.addClass(this.options.classes.zoomOut)));var t='<span class="slider__counter-index">'.concat(this.index+1,'</span> <span class="slider__counter-relation-label">').concat(this.options.counterRelationLabel,'</span> <span class="slider__counter-total">').concat(this.$items.length,"</span>");if(this.$counter.html(t),this.infinite)for(var e=this.index-1;e<this.index-1+this.visibles;e++){var n=e;this.$items.eq(n+1).addClass(this.options.classes.active),this.zoomAnimation&&(this.$items.eq(n+1).removeClass(this.options.classes.zoomOut),this.$items.eq(n+1).addClass(this.options.classes.zoom)),this.paginationDisabled||(e>=this.$paginationItems.length&&(n=0),e<0&&(n=this.$paginationItems.length-1),this.$paginationItems.eq(n).addClass(this.options.classes.active),this.zoomAnimation&&(this.$paginationItems.eq(n).removeClass(this.options.classes.zoomOut),this.$paginationItems.eq(n).addClass(this.options.classes.zoom)))}else for(var i=this.index;i<this.index+this.visibles;i++)this.$items.eq(i).addClass(this.options.classes.active),this.zoomAnimation&&(this.$items.eq(i).removeClass(this.options.classes.zoomOut),this.$items.eq(i).addClass(this.options.classes.zoom)),this.paginationDisabled||(this.$paginationItems.eq(i).addClass(this.options.classes.active),this.zoomAnimation&&(this.$paginationItems.eq(i).removeClass(this.options.classes.zoomOut),this.$paginationItems.eq(i).addClass(this.options.classes.zoom)))}},{key:"play",value:function(){var t=this;clearInterval(this.autoPlayInterval),this.autoPlayInterval=setInterval((function(){t.goToItem(t.index+t.visibles)}),this.options.autoPlayInterval),this.paused=!1}},{key:"pause",value:function(){clearInterval(this.autoPlayInterval),this.paused=!0}},{key:"getAndSetDimensions",value:function(){this.resetStyles(),this.width=this.$wrapper.outerWidth(),this.thumbWidth=this.width/this.visibles,this.$wrapper.css("width",this.width+"px"),this.$items.css("width",this.thumbWidth+"px"),this.$ribbon.css({width:this.ribbonWidth+"px"})}},{key:"resetStyles",value:function(){this.$wrapper[0].removeAttribute("style"),this.$items.removeAttr("style"),this.$ribbon.removeAttr("style")}}])&&Ie(e.prototype,n),i&&Ie(e,i),Object.defineProperty(e,"prototype",{writable:!1}),a}(O());function qe(t){return qe="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},qe(t)}function He(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,Ue(i.key),i)}}function Ve(t,e){return Ve=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ve(t,e)}function We(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ze(t){return ze=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ze(t)}function Ze(t,e,n){return(e=Ue(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ue(t){var e=function(t,e){if("object"!==qe(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!==qe(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===qe(e)?e:String(e)}const Ye=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ve(t,e)}(a,t);var e,n,i,o,r,s=(o=a,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=ze(o);if(r){var n=ze(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===qe(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return We(t)}(this,t)});function a(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),Ze(We(e=s.call(this,t,{classes:{active:"is-active",cloned:"is-cloned",disabled:"is-disabled",hidden:"is-hidden",paginationItem:"timeline__pagination-list-item",sliding:"is-sliding",unresolved:"is-unresolved",activedate:"is-activedate",olderdate:"is-olderdate",newdate:"is-newdate"},autoPlay:!1,autoPlayInterval:3e3,counterRelationLabel:"of",disablePagination:!1,enableTouchSwipe:!1,groupPaginationItems:!1,infinite:!1,pageScrollThreshold:30,paginationItemJsItem:"timeline-pagination-item",pauseOnHover:!0,selectors:{counter:'[data-js-item="timeline-counter"]',imageDescription:'[data-js-item="image-description"]',imageDescriptionLink:'[data-js-item="image-description-link"]',imageDescriptionWrapper:'[data-js-item="image-description-wrapper"]',items:'[data-js-item="timeline-item"]',next:'[data-js-item="timeline-next"]',prev:'[data-js-item="timeline-prev"]',paginationList:'[data-js-item="timeline-pagination-list"]',ribbon:'[data-js-item="timeline-ribbon"]',wrapper:'[data-js-item="timeline-wrapper"]',datelinedatebutton:'[data-js-item="timeline__dateline-date-button"]',dateline:'[data-js-item="timeline-dateline"]',datelinewrapper:'[data-js-item="timeline-dateline-wrapper"]',datelinefilledline:'[data-js-item="timeline-dateline-filledLine"]'},activeDateInLine:{},slideByItemNumber:!1,startAtIndex:0,swipeThreshold:10,visibleItems:{"mobile-s":1,"mobile-p":1,"tablet-p":1,"tablet-l":1,"desktop-m":1,"desktop-l":1}})),"$el",E()(e.el)),Ze(We(e),"$prev",e.$el.find(e.options.selectors.prev)),Ze(We(e),"$next",e.$el.find(e.options.selectors.next)),Ze(We(e),"$items",e.$el.find(e.options.selectors.items)),Ze(We(e),"$initialItems",e.$items),Ze(We(e),"$wrapper",e.$el.find(e.options.selectors.wrapper)),Ze(We(e),"$ribbon",e.$el.find(e.options.selectors.ribbon)),Ze(We(e),"$lastItem",e.$items.eq(e.$items.length-1)),Ze(We(e),"$firstItem",e.$items.eq(0)),Ze(We(e),"$counter",e.$el.find(e.options.selectors.counter)),Ze(We(e),"$imageDescriptionWrapper",e.$el.find(e.options.selectors.imageDescriptionWrapper)),Ze(We(e),"$imageDescription",e.$imageDescriptionWrapper.find(e.options.selectors.imageDescription)),Ze(We(e),"$initialImageDescription",e.$imageDescription),Ze(We(e),"$imageDescriptionLink",e.$imageDescriptionWrapper.find(e.options.selectors.imageDescriptionLink)),Ze(We(e),"$lastimageDescription",e.$imageDescription.eq(e.$imageDescription.length-1)),Ze(We(e),"$firstimageDescription",e.$imageDescription.eq(0)),Ze(We(e),"imageDescriptionHeights",[]),Ze(We(e),"imageDescriptionIds",[]),Ze(We(e),"$datelineButtons",e.$el.find(e.options.selectors.datelinedatebutton)),Ze(We(e),"$datelineArea",e.$el.find(e.options.selectors.dateline)),Ze(We(e),"$datelineElement",e.$el.find(e.options.selectors.datelinewrapper)),Ze(We(e),"$datelineFilled",e.$el.find(e.options.selectors.datelinefilledline)),Ze(We(e),"transition",e.$ribbon.css("transition")),Ze(We(e),"paginationDisabled",e.options.disablePagination||e.$items.length<2),Ze(We(e),"paginationItemSel",'[data-js-item="'+e.options.paginationItemJsItem+'"]'),Ze(We(e),"infinite",e.options.infinite&&e.$items.length>1),Ze(We(e),"touchSwipeEnabled",!1),Ze(We(e),"clickHandler",!0),Ze(We(e),"_index",e.options.startAtIndex||
20),Ze(We(e),"_autoPlay",e.options.autoPlay&&e.infinite),e}return e=a,i=[{key:"info",get:function(){return{version:"1.0.0",vc:!0,mod:!1}}},{key:"getDragValues",value:function(t,e){var n=t.touches[0].pageX-e.pageX,i=t.touches[0].pageY-e.pageY;return{x:e.elemX+n,deltaX:n,deltaY:i}}}],(n=[{key:"visibles",get:function(){return this._numVisible},set:function(t){this._numVisible=t}},{key:"itemsLength",get:function(){return this._itemLength},set:function(t){this._itemLength=t}},{key:"index",get:function(){return this._index},set:function(t){this._index=t}},{key:"paused",get:function(){return this._paused},set:function(t){this._paused=t}},{key:"autoPlay",get:function(){return this._autoPlay},set:function(t){this._autoPlay=t}},{key:"controlHeight",get:function(){return this.$prev.outerHeight()}},{key:"slideBy",get:function(){return this.options.slideByItemNumber||this.visibles}},{key:"ribbonWidth",get:function(){return this.$items.length*this.thumbWidth+1}},{key:"events",get:function(){return{"click {{this.options.selectors.prev}}":"showPrevElement","touchstart {{this.options.selectors.prev}}":"showPrevElement","click {{this.options.selectors.next}}":"showNextElement","touchstart {{this.options.selectors.next}}":"showNextElement","click {{this.paginationItemSel}}":"navigateToElement","touchstart {{this.paginationItemSel}}":"navigateToElement","click {{this.options.selectors.datelinedatebutton}}":"navigateToElement","touchstart {{this.options.selectors.datelinedatebutton}}":"navigateToElement"}}},{key:"subscribe",get:function(){return{"{{context.EVENTS.resize}}":"render"}}},{key:"bindEvents",value:function(){this.autoPlay&&this.options.pauseOnHover&&(this.registerEvent("{{context.EVENTS.mouseenter}}","pause"),this.registerEvent("{{context.EVENTS.mouseleave}}","play"))}},{key:"unbindEvents",value:function(){this.context.Vent.off(this.context.EVENTS.resize),this.$el.off(this.context.clickHandler)}},{key:"didMount",value:function(){if(this.paginationDisabled||(this.$paginationList=this.$el.find(this.options.selectors.paginationList)),this.options.autoPlay&&!this.infinite&&console.warn('Timeline: Sorry - option "autoPlay" has no effect while option "infinite" is set to false!'),this.infinite)for(var t in this.options.visibleItems)if(this.options.visibleItems.hasOwnProperty(t)&&this.options.visibleItems[t]>1){console.warn('Timeline: Sorry - option "visibleItems" has no effect while option "infinite" is set to true!');break}}},{key:"render",value:function(){this.context.currentMedia?(this.$clonedLast&&this.$clonedFirst&&(this.$clonedLast.remove(),this.$clonedFirst.remove(),this.$clonedImgDscLast.remove(),this.$clonedImgDscFirst.remove(),this.$items=this.$initialItems,this.$imageDescription=this.$initialImageDescription),this.visibles=this.infinite?1:this.options.visibleItems[this.context.currentMedia],this.itemsLength=this.$items.length,this.handleVisibility(),this.paginationDisabled||(this.removePagination(),this.addPagination()),this.infinite&&(this.infiniteLoop(),this.index=0===this.index?this.index+this.visibles:this.index),this.bindTransitions(),this.getAndSetDimensions(),this.context.detections.touch&&this.options.enableTouchSwipe&&!this.touchSwipeEnabled&&this.bindSwipes(),this.goToItem(this.index),this.autoPlay&&this.paused&&this.play(),this.$imageDescription.eq(this.index).addClass(this.options.classes.active),this.$imageDescription.eq(this.index).find('[data-js-item="image-description-link"]').removeAttr("tabindex"),this.getImageDescriptionHeightsAndId(),this.handleTimeline(this.index),this.$imageDescriptionWrapper.css("height",this.imageDescriptionHeights[this.index]+"px")):console.warn("Timeline: this.context.currentMedia is necessary to support the slider module!")}},{key:"bindTransitions",value:function(){var t=this.onRibbonTransitionEnd.bind(this),e=this.onItemsTransitionEnd.bind(this);this.$ribbon.on((0,G.Z)(),t),this.$items.on((0,G.Z)(),e)}},{key:"onRibbonTransitionEnd",value:function(t){t.stopPropagation(),this.$el.removeClass(this.options.classes.sliding),this.handleTimeline(this.index),this.autoPlay&&this.paused&&(this.options.pauseOnHover&&this.$el.is(":hover")||this.play()),this.$clonedFirst&&this.$clonedFirst.hasClass(this.options.classes.active)&&(this.$clonedFirst.removeClass(this.options.classes.active),this.index=1,console.info("cloned first aktiv"+this.index),this.animateSlide({idx:this.index,animate:!1})),this.$clonedLast&&this.$clonedLast.hasClass(this.options.classes.active)&&(this.$clonedLast.removeClass(this.options.classes.active),this.index=this.$items.length-this.visibles-1,console.info("cloned last aktiv"+this.index),this.animateSlide({idx:this.index,animate:!1})),this.$imageDescriptionLink.removeAttr("tabindex"),this.$imageDescriptionLink.attr("tabindex","-1"),this.$imageDescription.eq(this.index).addClass(this.options.classes.active),this.$imageDescription.eq(this.index).find('[data-js-item="image-description-link"]').removeAttr("tabindex"),this.clickHandler=!0}},{key:"onItemsTransitionEnd",value:function(t){t.stopPropagation()}},{key:"getImageDescriptionHeightsAndId",value:function(){var t=0;for(this.imageDescriptionHeights=[],this.imageDescriptionIds=[];t<this.$imageDescription.length;t++)this.imageDescriptionHeights.push(this.$imageDescription.eq(t).outerHeight()),this.imageDescriptionIds.push(this.$imageDescription.eq(t).attr("data-js-id"))}},{key:"handleTimeline",value:function(t){var e=0,n=0;this.getTimelineAreaWith=this.$datelineArea.eq(0).outerWidth();for(var i=0;n<this.$datelineButtons.length;n++)this.$datelineButtons.eq(n).removeClass(this.options.classes.activedate),this.$datelineButtons.eq(n).removeClass(this.options.classes.olderdate),this.$datelineButtons.eq(n).removeClass(this.options.classes.newdate),this.imageDescriptionIds[t]==this.$datelineButtons.eq(n).attr("data-js-id")?(e=1,this.activeDateInLine={id:this.$datelineButtons.eq(n).attr("data-js-id"),leftPosition:parseFloat(this.$datelineButtons.eq(n).attr("data-js-position"))},this.$datelineButtons.eq(n).addClass(this.options.classes.activedate)):1==e?this.$datelineButtons.eq(n).addClass(this.options.classes.newdate):this.$datelineButtons.eq(n).addClass(this.options.classes.olderdate),parseFloat(this.$datelineButtons.eq(n).attr("data-js-position"))>i&&(i=parseFloat(this.$datelineButtons.eq(n).attr("data-js-position")));if(this.getTimelineAreaWith=parseFloat(this.$datelineArea.eq(0).outerWidth()),this.getTimelineAreaWith>300&&i>this.getTimelineAreaWith){var o=this.getTimelineAreaWith/2;if(this.activeDateInLine.leftPosition>o){var r=o-this.activeDateInLine.leftPosition;this.$datelineElement.eq(0).css("left",r+"px")}else 0!==this.$datelineElement.eq(0).css("left")&&this.$datelineElement.eq(0).css("left","0px")}var s=this.activeDateInLine.leftPosition+16;this.$datelineFilled.eq(0).css("width",s+"px")}},{key:"infiniteLoop",value:function(){this.$clonedFirst=this.$firstItem.clone(!0).addClass(this.options.classes.cloned),this.$clonedLast=this.$lastItem.clone(!0).addClass(this.options.classes.cloned),this.$clonedImgDscFirst=this.$firstimageDescription.clone(!0).addClass(this.options.classes.cloned),this.$clonedImgDscLast=this.$lastimageDescription.clone(!0).addClass(this.options.classes.cloned),this.options.infinite&&(this.$clonedFirst.find(this.paginationItemSel).attr("data-index",this.itemsLength),this.$clonedLast.find(this.paginationItemSel).attr("data-index",-1)),this.$firstItem.before(this.$clonedLast),this.$lastItem.after(this.$clonedFirst),this.$firstimageDescription.before(this.$clonedImgDscLast),this.$lastimageDescription.after(this.$clonedImgDscFirst),this.$items=E()(this.options.selectors.items,this.$el),this.$imageDescription=E()(this.options.selectors.imageDescription,this.$el)}},{key:"animateSlide",value:function(t){t.animate?(t.idx!==t.prevIdx&&this.$el.addClass(this.options.classes.sliding),this.$ribbon.css("transition",this.transition)):this.$ribbon.css("transition","none"),t.idx!==t.prevIdx&&(console.info("remove aktiv from Cescription"),this.$imageDescription.removeClass(this.options.classes.active)),this.$ribbon.css("transform","translate3d("+-t.idx*this.thumbWidth+"px, 0, 0)")}},{key:"checkSlides",value:function(){this.$clonedFirst.hasClass(this.options.classes.active)&&(this.$firstItem.addClass(this.options.classes.active),this.$firstimageDescription.addClass(this.options.classes.active)),this.$clonedLast.hasClass(this.options.classes.active)&&(this.$lastItem.addClass(this.options.classes.active),this.$lastimageDescription.addClass(this.options.classes.active))}},{key:"handleVisibility",value:function(){0===this.itemsLength&&(this.$el.addClass(this.options.classes.hidden),console.warn("Timeline: There is no item we can use in our slider :(")),this.$el.css("max-width","none")}},{key:"removePagination",value:function(){this.$paginationList.empty()}},{key:"addPagination",value:function(){for(var t="",e=0,n=this.options.paginationItemJsItem,i=this.options.classes.paginationItem;e<this.$items.length;e++){var o=e+1,r="";this.options.groupPaginationItems&&(r=e%this.visibles==0?"":this.options.classes.hidden),t+='\n\t\t\t\t\t<li class="'.concat(i," ").concat(r,'" data-js-item="').concat(n,'" data-index="').concat(e,'">\n\t\t\t\t\t\t<strong>').concat(o,"</strong>\n\t\t\t\t\t</li>\n\t\t\t\t\t")}this.$paginationList.append(t),this.$paginationItems=E()('[data-js-item="'+this.options.paginationItemJsItem+'"]',this.$el)}},{key:"navigateToElement",value:function(t,e){t.preventDefault();var n=E()(e);if(!n.hasClass(this.options.classes.active)){var i=parseInt(n.attr("data-index"),10)||n.index();this.infinite&&(i+=this.slideBy),this.goToItem(i)}}},{key:"showNextElement",value:function(t,e){var n=E()(e);t&&"function"==typeof t.preventDefault&&t.preventDefault(),n.prop("disabled")||this.clickHandler&&(this.goToItem(this.index+this.slideBy),this.clickHandler=!1)}},{key:"showPrevElement",value:function(t,e){var n=E()(e);t&&"function"==typeof t.preventDefault&&t.preventDefault(),n.prop("disabled")||this.clickHandler&&(this.goToItem(this.index-this.slideBy),this.clickHandler=!1)}},{key:"getDirection",value:function(t){return t>this.index?"next":"prev"}},{key:"bindSwipes",value:function(){this.registerEvent("{{context.EVENTS.touchstart}} {{this.options.selectors.ribbon}}","startDrag")}},{key:"startDrag",value:function(t,e){var n=this,i=e,o=E()(i),r=0,s=0,l={elemX:i.offsetLeft+Ae(i,"x"),pageX:t.touches[0].pageX,pageY:t.touches[0].pageY};o.on(this.context.EVENTS.touchmove,(function(t){var e=a.getDragValues(t,l);r=e.deltaX,s=e.deltaY,Math.abs(s)<=n.options.pageScrollThreshold&&n.translateRibbon(e.x)})),E()(window).on(this.context.EVENTS.touchend,(function(){E()(window).off(n.context.EVENTS.touchend),o.off(n.context.EVENTS.touchmove),Math.abs(r)<=n.$el.outerWidth()*(n.options.swipeThreshold/100)||Math.abs(s)>n.options.pageScrollThreshold?n.goToItem(n.index):(t.preventDefault(),r>0&&(n.index>
20?n.goToItem(n.index-1):n.goToItem(n.index)),r<0&&(n.index<n.$items.length-1&&n.goToItem(n.index+1),n.goToItem(n.index)))}))}},{key:"translateRibbon",value:function(t){this.$ribbon.css({transform:"translate3d("+t+"px, 0, 0)",transition:"none"})}},{key:"enableBtn",value:function(t){t.removeClass(this.options.classes.disabled),t.prop("disabled",!1),t.removeAttr("aria-disabled")}},{key:"disableBtn",value:function(t){t.addClass(this.options.classes.disabled),t.prop("disabled",!0),t.attr("aria-disabled",!0)}},{key:"goToItem",value:function(t){var e=this.$items.length-this.visibles;e<0&&(e=0),this.paused||this.pause(),this.infinite?t<0?t=e:t>e&&(t=0):(this.enableBtn(this.$prev),this.enableBtn(this.$next),t<1&&(this.disableBtn(this.$prev),t<0&&(t=0)),t>e-1&&(this.disableBtn(this.$next),t>e&&(t=e)));var n=this.index;this.index=t,this.animateSlide({animate:!this.$el.hasClass(this.options.classes.unresolved),idx:t,prevIdx:n}),this.$el.hasClass(this.options.classes.unresolved)&&this.$el.removeClass(this.options.classes.unresolved),this.handleActivity(),this.infinite&&this.checkSlides()}},{key:"handleActivity",value:function(){this.$items.removeClass(this.options.classes.active),this.$items.removeAttr("aria-hidden"),this.$items.attr("aria-hidden","true"),this.$imageDescriptionWrapper.css("height",this.imageDescriptionHeights[this.index]+"px"),!this.paginationDisabled&&this.$paginationItems&&this.$paginationItems.length&&this.$paginationItems.removeClass(this.options.classes.active);var t='<span class="timeline__counter-index">'.concat(this.index+1,'</span> <span class="timeline__counter-relation-label">').concat(this.options.counterRelationLabel,'</span> <span class="timeline__counter-total">').concat(this.$items.length,"</span>");if(this.$counter.html(t),this.infinite)for(var e=this.index-1;e<this.index-1+this.visibles;e++){var n=e;this.$items.eq(n+1).addClass(this.options.classes.active),this.$items.eq(n+1).removeAttr("aria-hidden"),this.paginationDisabled||(e>=this.$paginationItems.length&&(n=0),e<0&&(n=this.$paginationItems.length-1),this.$paginationItems.eq(n).addClass(this.options.classes.active))}else for(var i=this.index;i<this.index+this.visibles;i++)this.$items.eq(i).addClass(this.options.classes.active),this.$items.eq(i).removeAttr("aria-hidden"),this.paginationDisabled||this.$paginationItems.eq(i).addClass(this.options.classes.active)}},{key:"play",value:function(){var t=this;clearInterval(this.autoPlayInterval),this.autoPlayInterval=setInterval((function(){t.goToItem(t.index+t.visibles)}),this.options.autoPlayInterval),this.paused=!1}},{key:"pause",value:function(){clearInterval(this.autoPlayInterval),this.paused=!0}},{key:"getAndSetDimensions",value:function(){this.resetStyles(),this.width=this.$wrapper.outerWidth(),this.thumbWidth=this.width/this.visibles,this.$wrapper.css("width",this.width+"px"),this.$items.css("width",this.thumbWidth+"px"),this.$ribbon.css({width:this.ribbonWidth+"px"})}},{key:"resetStyles",value:function(){this.$wrapper[0].removeAttribute("style"),this.$items.removeAttr("style"),this.$ribbon.removeAttr("style")}}])&&He(e.prototype,n),i&&He(e,i),Object.defineProperty(e,"prototype",{writable:!1}),a}(O());function Qe(t){return Qe="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},Qe(t)}function Je(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,tn(i.key),i)}}function Ke(t,e){return Ke=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ke(t,e)}function Xe(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ge(t){return Ge=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ge(t)}function tn(t){var e=function(t,e){if("object"!==Qe(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!==Qe(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Qe(e)?e:String(e)}const en=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ke(t,e)}(s,t);var e,n,i,o,r=(i=s,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=Ge(i);if(o){var n=Ge(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===Qe(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Xe(t)}(this,t)});function s(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),function(t,e,n){(e=tn(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}(Xe(e=r.call(this,t,{selectors:{stackNavToggler:'[data-js-item="toggle-stack-navigation"]',searchToggler:'[data-js-item="toggle-search"]',stackNavigation:'[data-js-module="stack-navigation"]'},classes:{active:"is-active",expanded:"is-expanded"}}
2)),"$el",E()(e.el)),e}return e=s,(n=[{key:"events",get:function(){return{"{{context.EVENTS.click}} {{this.options.selectors.searchToggler}}":"searchTogglerClick"}}},{key:"subscribe",get:function(){}},{key:"searchTogglerClick",value:function(t){t.preventDefault(),this.context.Vent.trigger(this.context.EVENTS.searchOverlay.toggle)}},{key:"render",value:function(){return this}},{key:"didMount",value:function(){}}])&&Je(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),s}(O());function nn(t){return nn="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},nn(t)}function on(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,ln(i.key),i)}}function rn(t,e){return rn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},rn(t,e)}function sn(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function an(t){return an=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},an(t)}function ln(t){var e=function(t,e){if("object"!==nn(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!==nn(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===nn(e)?e:String(e)}const cn=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&rn(t,e)}(s,t);var e,n,i,o,r=(i=s,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=an(i);if(o){var n=an(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===nn(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return sn(t)}(this,t)});function s(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),function(t,e,n){(e=ln(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}(sn(e=r.call(this,t,{selectors:{closeBtn:'[data-js-item="search-overlay-close"]',inputDesktop:'[data-js-item="search-enter-field"]',toggleSearch:'[data-js-item="toggle-search"]'},classes:{active:"is-active",notScrollable:"isnt-scrollable"},inputMobile:[]})),"$el",E()(e.el)),e}return e=s,(n=[{key:"events",get:function(){return{"{{context.EVENTS.click}} {{this.options.selectors.closeBtn}}":"handleSearchToggle"}}},{key:"subscribe",get:function(){return{"{{context.EVENTS.searchOverlay.toggle}}":"handleSearchToggle"}}},{key:"handleResize",value:function(){this.$inputMobile[0].value="",this.$inputMobile[0].blur(),window.scrollTo(0,0),this.close()}},{key:"handleSearchToggle",value:function(){var t=this.options.classes.active;this.$el.hasClass(t)?this.close():this.open()}},{key:"open",value:function(){var t=this.options.classes.active,e=this.options.classes.notScrollable;this.$body.addClass(e),this.$el.addClass(t),this.$toggleSearch.addClass(t),this.$toggleSearchContainer.addClass(t),this.focusTrap.activate(),this.focusSearchField()}},{key:"close",value:function(){var t=this.options.classes.active,e=this.options.classes.notScrollable;this.$body.removeClass(e),this.$el.removeClass(t),this.$toggleSearch.removeClass(t)[0].focus(),this.$toggleSearchContainer.removeClass(t),this.focusTrap.deactivate()}},{key:"focusSearchField",value:function(){var t=this.options.classes.active;this.$el.hasClass(t)||this.$el.addClass(t),this.$inputDesktop[0].focus()}},{key:"didMount",value:function(){var t=this;if(this.$body=E()("body"),this.$toggleSearch=E()(this.options.selectors.toggleSearch),this.focusTrap=new he({el:this.el,namespace:"FocusTrap",context:this.context}),this.focusTrap.create(),this.focusTrap.didMount(),!this.$toggleSearch.length)return console.warn("SearchOverlay::didMount() - ".concat(this.options.selectors.toggleSearch," not found in page!")),void this.destroy();this.$toggleSearchContainer=E()(this.$toggleSearch[0].parentNode),this.$inputDesktop=E()(this.options.selectors.inputDesktop),this.$inputMobile=E()(this.options.selectors.inputMobile),window.addEventListener("orientationchange",(function(){t.handleResize()}))}},{key:"render",value:function(){return this}}])&&on(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),s}(O());function un(t){return un="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},un(t)}function pn(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,mn(i.key),i)}}
2function fn(t,e){return fn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},fn(t,e)}function dn(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function hn(t){return hn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},hn(t)}function mn(t){var e=function(t,e){if("object"!==un(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!==un(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===un(e)?e:String(e)}const vn=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&fn(t,e)}(s,t);var e,n,i,o,r=(i=s,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=hn(i);if(o){var n=hn(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===un(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return dn(t)}(this,t)});function s(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),function(t,e,n){(e=mn(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}(dn(e=r.call(this,t,{selectors:{stackNavToggler:'[data-js-item="toggle-stack-navigation"]',stackNavigation:'[data-js-module="stack-navigation"]',levelUpNavigation:'[data-js-item="level-up-navigation"]'},classes:{active:"is-active",expanded:"is-expanded",multi:"is-multi"}})),"$el",E()(e.el)),e}return e=s,(n=[{key:"events",get:function(){return{"{{context.EVENTS.click}} {{this.options.selectors.stackNavToggler}}":"stackTogglerClick","{{context.EVENTS.click}} {{this.options.selectors.levelUpNavigation}}":"triggerBackEvent"}}},{key:"subscribe",get:function(){return{"{{context.EVENTS.mobileNavToggler.addBackButton}}":"addBackButton","{{context.EVENTS.mobileNavToggler.removeBackButton}}":"removeBackButton"}}},{key:"addBackButton",value:function(){this.$el.addClass(this.options.classes.multi)}},{key:"triggerBackEvent",value:function(){this.context.Vent.trigger(this.context.EVENTS.stackNavigation.closePresentLevel)}},{key:"removeBackButton",value:function(){this.$el.removeClass(this.options.classes.multi)}},{key:"stackTogglerClick",value:function(t){t.preventDefault(),this.context.Vent.trigger(this.context.EVENTS.stackNavigation.toggle)}},{key:"render",value:function(){return this}}])&&pn(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),s}(O());function yn(t){return yn="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},yn(t)}function bn(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,Sn(i.key),i)}}function gn(t,e){return gn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},gn(t,e)}function wn(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _n(t){return _n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},_n(t)}function kn(t,e,n){return(e=Sn(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Sn(t){var e=function(t,e){if("object"!==yn(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!==yn(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===yn(e)?e:String(e)}const jn=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&gn(t,e)}(s,t);var e,n,i,o,r=(i=s,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=_n(i);if(o){var n=_n(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===yn(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return wn(t)}(this,t)});function s(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),kn(wn(e=r.call(this,t,{classes:{loading:"is-loading",showAll:"is-s
2how-all",visible:"is-visible"},i18n:{loadMore:"Load more",noResultsText:"No results",resultsText:"results",showAll:"Show all"},limit:10,selectors:{filterForm:'[data-js-item="filterable-list-filter-form"]',header:'[data-js-item="header"]',initialWrapperHidden:'[data-js-item="filterable-list-init-wrapper-hidden"]',limit:'[data-js-item="filterable-list-limit"]',list:'[data-js-item="filterable-list-list"]',listItem:'[data-js-item="filterable-list-list-item"]',loadMoreBtn:'[data-js-item="filterable-list-load-more-btn"]',offset:'[data-js-item="filterable-list-offset"]',radioAll:'[data-js-item="filterable-list-radio-all"]',renderTarget:'[data-js-item="filterable-list-render-target"]',resultsInfo:'[data-js-item="filterable-list-results-info"]',showMoreBtn:'[data-js-item="filterable-list-show-more-btn"]',showMoreBtnLabel:'[data-js-item="filterable-list-show-more-btn-label"]'},templates:{list:"FILTERABLELIST__LIST",listItem:"FILTERABLELIST__LISTITEM",loadMoreBtn:"FILTERABLELIST__LOADMOREBTN",resultsInfo:"FILTERABLELIST__RESULTSINFO"}})),"$el",E()(e.el)),kn(wn(e),"$renderTarget",E()(e.options.selectors.renderTarget,e.el)),kn(wn(e),"$offset",E()(e.options.selectors.offset,e.el)),kn(wn(e),"$limit",E()(e.options.selectors.limit,e.el)),kn(wn(e),"$loadMoreBtn",null),kn(wn(e),"$filterForm",E()(e.options.selectors.filterForm,e.el)),kn(wn(e),"$initialWrapperHidden",E()(e.options.selectors.initialWrapperHidden,e.el)),kn(wn(e),"$showMoreBtn",E()(e.options.selectors.showMoreBtn,e.el)),kn(wn(e),"$showMoreBtnLabel",E()(e.options.selectors.showMoreBtnLabel,e.el)),kn(wn(e),"$radioAll",E()(e.options.selectors.radioAll,e.el)),kn(wn(e),"$header",E()(e.options.selectors.header)),kn(wn(e),"isListView",!1),e}return e=s,(n=[{key:"events",get:function(){return{"{{context.EVENTS.click}} {{this.options.selectors.loadMoreBtn}}":"onLoadMoreBtnClick","{{context.EVENTS.click}} {{this.options.selectors.showMoreBtn}}":"onShowMoreBtnClick"}}},{key:"subscribe",get:function(){return{"{{context.EVENTS.form.complete}}":"onFormComplete"}}},{key:"onLoadMoreBtnClick",value:function(t,e){}},{key:"onShowMoreBtnClick",value:function(t,e){var n=this;this.$showMoreBtn.attr("data-js-link")?Ft(this.el,{callback:function(){n.$radioAll.trigger(n.context.EVENTS.click)},offset:-(this.$header.outerHeight()+20)}):(this.$initialWrapperHidden.attr("aria-hidden",!1),this.$initialWrapperHidden.addClass(this.options.classes.visible),this.$showMoreBtn.attr("data-js-link",!0),this.$showMoreBtn.addClass(this.options.classes.showAll),this.$showMoreBtnLabel.text(this.options.i18n.showAll),this.$showMoreBtn.removeAttr("aria-controls"),this.$showMoreBtn.removeAttr("aria-expanded"),this.$initialWrapperHidden[0].focus())}},{key:"onFormComplete",value:function(t){console.log("data: ",t),this.$el.find(t.el).length&&this.render(t.data)}},{key:"didMount",value:function(){this.$limit.val(this.options.limit)}},{key:"render",value:function(t){var e=this;if(this.isListView||(this.$renderTarget.empty(),this.$list=this.$renderTarget.append(this.renderTemplate(this.options.templates.list,{})).find(this.options.selectors.list),this.isListView=!0),this.$resultsInfo&&this.$resultsInfo.length&&(this.$resultsInfo.remove(),this.$resultsInfo=null),this.$resultsInfo=this.$renderTarget.prepend(this.renderTemplate(this.options.templates.resultsInfo,{resultsText:t.totalItemCount?this.options.i18n.resultsText:this.options.i18n.noResultsText,totalItemCount:t.totalItemCount})).find(this.options.selectors.resultsInfo),t.items&&t.items.length){var n=0;0===t.offset&&this.$list.empty();for(var i=function(){var i=E()(e.renderTemplate(e.options.templates.listItem,t.items[n]));e.$list.append(i),0===n&&i[0].focus(),setTimeout((function(){i.removeClass(e.options.classes.loading)}),200)};n<t.items.length;n++)i();this.$offset.val(0),this.$offset.attr("data-load-more-offset",t.offset+this.options.limit)}else this.$list.empty();return t.totalItemCount>t.offset+t.items.length?this.$loadMoreBtn||(this.$loadMoreBtn=this.$renderTarget.append(this.renderTemplate(this.options.templates.loadMoreBtn,{loadMoreLabel:this.options.i18n.loadMore})).find(this.options.selectors.loadMoreBtn)):this.$loadMoreBtn&&this.$loadMoreBtn.length&&(E()(this.$loadMoreBtn[0].parentNode).remove(),this.$loadMoreBtn=null),this}}])&&bn(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),s}(O());var En=n(6851),Cn=n.n(En);function On(t){return On="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},On(t)}function xn(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,In(i.key),i)}}function Tn(){return Tn="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=An(t)););return t}(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}},Tn.apply(this,arguments)}
2function Pn(t,e){return Pn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Pn(t,e)}function $n(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function An(t){return An=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},An(t)}function Ln(t,e,n){return(e=In(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function In(t){var e=function(t,e){if("object"!==On(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!==On(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===On(e)?e:String(e)}const Dn=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Pn(t,e)}(a,t);var e,n,i,o,r,s=(o=a,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=An(o);if(r){var n=An(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===On(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return $n(t)}(this,t)});function a(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),Ln($n(e=s.call(this,t,{submitOnLoad:!1,submitOnChange:!0,classes:{loading:"",success:"is-success",error:"is-error"},eventName:""})),"$el",E()(e.el)),Ln($n(e),"fields",E()("input",e.$el)),Ln($n(e),"selects",E()("select",e.$el)),e}return e=a,i=[{key:"info",get:function(){return{version:"1.0.0",vc:!0,mod:!1}}}],(n=[{key:"didMount",value:function(){this.http=new(Cn())({type:"json"}),this.http.parser=function(t){var e=t.request;return{status:e.status,statusText:e.statusText,data:JSON.parse(e.responseText)}},this.options.submitOnLoad&&this.fetchData(this.$el),Tn(An(a.prototype),"initialize",this).call(this)}},{key:"bindEvents",value:function(){var t=this.fetchData.bind(this),e=this.resetFilters.bind(this);this.$el.on(this.context.EVENTS.submit+" "+this.context.EVENTS.reset,t),this.context.Vent.on(this.context.EVENTS.form.reset,e),this.options.submitOnChange&&this.$el.on(this.context.EVENTS.blur+" "+this.context.EVENTS.change,this.fields,t)}},{key:"fetchData",value:function(t,e){var n,i=this;t&&"function"==typeof t.preventDefault?(t.preventDefault(),n=e||t.currentTarget):n=t,this.$el.removeClass(this.options.classes.success+" "+this.options.classes.error),this.options.classes.loading&&this.$el.addClass(this.options.classes.loading);var o=this.$el.attr("action"),r=(this.$el.attr("method"),o+"?"+this.$el.serialize());this.http.get(r).then((function(t){i.onSuccess(t.data,n)})).catch((function(t){i.onError(t.status,t.statusText)}))}},{key:"onSuccess",value:function(t,e){this.fields=E()("input",this.$el),this.selects=E()("select",this.$el),this.context.Vent.trigger(this.options.eventName||this.context.EVENTS.form.complete,{data:t,el:e}),this.options.classes.loading&&this.$el.removeClass(this.options.classes.loading),this.$el.addClass(this.options.classes.success)}},{key:"onError",value:function(t,e){this.options.classes.loading&&this.$el.removeClass(this.options.classes.loading),this.$el.addClass(this.options.classes.error),console.warn("FormAjax:",e,"("+t+")")}},{key:"resetFilters",value:function(){this.resetChecks(),this.resetSelects()}},{key:"resetChecks",value:function(){this.fields.each((function(){E()(this).prop("checked",!1)}))}},{key:"resetSelects",value:function(){this.selects.each((function(){E()(this).prop("selectedIndex",0)}))}}])&&xn(e.prototype,n),i&&xn(e,i),Object.defineProperty(e,"prototype",{writable:!1}),a}(O());function Fn(t){return Fn="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},Fn(t)}function Rn(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,qn(i.key),i)}}
2function Nn(t,e){return Nn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Nn(t,e)}function Mn(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Bn(t){return Bn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Bn(t)}function qn(t){var e=function(t,e){if("object"!==Fn(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!==Fn(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Fn(e)?e:String(e)}const Hn=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Nn(t,e)}(s,t);var e,n,i,o,r=(i=s,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=Bn(i);if(o){var n=Bn(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===Fn(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Mn(t)}(this,t)});function s(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),function(t,e,n){(e=qn(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}(Mn(e=r.call(this,t,{selectors:{},classes:{},newTab:!0,stickyPlaceholder:!1,onChange:function(t){return!1}})),"$el",E()(e.el)),e.selectedOpt,e.selOpts,e._createSelectEl=e._createSelectEl.bind(Mn(e)),e}return e=s,(n=[{key:"willMount",value:function(){console.log("Component formDropdown will mounted!"),this._createSelectEl()}},{key:"didMount",value:function(){console.log("Component formDropdown mounted!")}},{key:"initialize",value:function(t){console.log(t),this.selectedOpt=this.el.querySelector("option[selected]"),this.hasDefaultPlaceholder=this.selectedOpt&&this.selectedOpt.disabled}},{key:"_createOptionHTML",value:function(t){var e="",n="form__select-element",i="";return!t.selectedOpt||this.foundSelected||this.hasDefaultPlaceholder||(n+="is-selected",this.foundSelected=!0),t.getAttribute("data-class")&&(n+=t.getAttribute("data-class")),t.getAttribute("data-link")&&(i="data-link="+t.getAttribute("data-link")),""!==n&&(e='class="'.concat(n,'"')),"<li ".concat(e).concat(i,' data-option data-value="').concat(t.value,'"><span>').concat(t.textContent,"</span></li>")}},{key:"_createResetOption",value:function(){var t=this.el.dataset.hasResetOption;return t?"true"===t?this._resetOptionTemplate():"":this._resetOptionTemplate()}},{key:"_resetOptionTemplate",value:function(){return'<li class="form__select-element" data-option data-value="" data-reset="1"><span>'.concat(this._getResetOptionText(),"</span></li>")}},{key:"_getResetOptionText",value:function(){var t=this.el.dataset.resetText;return"".concat(void 0===t?"&nbsp;-&nbsp;":t)}},{key:"_createSelectEl",value:function(){var t=this,e=this._createResetOption();[].slice.call(this.el.options).forEach((function(n){if(!n.disabled){var i=n.tagName.toLowerCase();"option"===i?e+=t._createOptionHTML(n):"optgroup"===i&&(e+='<li class="form__select-optgroup"><span>'.concat(n.label,"</span><ul>"),[].slice.call(n.children).forEach((function(n){e+=t._createOptionHTML(n)})),e+="</ul></li>")}}));var n='<div class="form__select-options"><ul>'.concat(e,"</ul></div>");this.selEl=document.createElement("div"),this.selEl.className="form__select-field form_select-skin-border",this.selEl.tabIndex=this.el.tabIndex,this.selectedOpt?this.selEl.innerHTML='<span class="form__select-placeholder">'.concat(this.selectedOpt.textContent,"</span>").concat(n):this.selEl.innerHTML='<span class="form__select-placeholder">\n\t\t\t\t'.concat(this._getPlaceholderText(),"\n\t\t\t</span>").concat(n),this.el.parentNode.appendChild(this.selEl)}},{key:"_getPlaceholderText",value:function(){return"".concat(void 0===this.el.dataset.placeholder?" - ":this.el.dataset.placeholder)}},{key:"bindEvents",value:function(){var t=this;this.selPlaceholder=this.selEl.querySelector("span.form__select-placeholder"),this.selPlaceholder&&(this.selOpts=[].slice.call(this.selEl.querySelectorAll("li[data-option]")),this.selOptsCount=this.selOpts.length,this.current=this.selOpts.indexOf(this.selEl.querySelector("li.is-selected"))||-1,this.selPlaceholder.addEventListener("click",(function(){t._toggleSelect()}
2)),this.selOpts.forEach((function(e,n){e.addEventListener("click",(function(){e.getAttribute("data-reset")?t._resetDropdown(e):(t.current=n,t._changeOption(),t._toggleSelect())}))})),document.addEventListener("click",(function(e){var n=e.target;t._isOpen()&&n!==t.selEl&&!t.hasParent(n,t.selEl)&&t._toggleSelect()})),this.selEl.addEventListener("keydown",(function(e){switch(e.keyCode||e.which){case 38:e.preventDefault(),t._navigateOpts("prev");break;case 40:e.preventDefault(),t._navigateOpts("next");break;case 32:e.preventDefault(),t._isOpen()&&void 0!==t.preSelCurrent&&-1!==t.preSelCurrent&&t._changeOption(),t._toggleSelect();break;case 13:e.preventDefault(),t._isOpen()&&void 0!==t.preSelCurrent&&-1!==t.preSelCurrent&&(t._changeOption(),t._toggleSelect());break;case 27:e.preventDefault(),t._isOpen()&&t._toggleSelect()}})))}},{key:"_navigateOpts",value:function(t){this._isOpen()||this._toggleSelect();var e=void 0!==this.preSelCurrent&&-1!==this.preSelCurrent?this.preSelCurrent:this.current;("prev"===t&&e>0||"next"===t&&e<this.selectedOpt-1)&&(this.preSelCurrent="next"===t?e+1:e-1,this._removeFocus(),this.addClass(this.selOpts[this.preSelCurrent],"is-focus"))}},{key:"_resetDropdown",value:function(t){this.selPlaceholder.textContent=this._getPlaceholderText(),this.el.value="",this.current=-1;var e=this.selEl.querySelector("li.is-selected");e&&this.removeClass(e,"is-selected"),this.removeClass(this.selEl,"is-active"),this.context.Vent.trigger(this.context.EVENTS.selectChanged,this.el)}},{key:"_changeOption",value:function(){void 0!==this.preSelCurrent&&-1!==this.preSelCurrent&&(this.current=this.preSelCurrent,this.preSelCurrent=-1);var t=this.selOpts[this.current];this.selPlaceholder.textContent=t.textContent,this.el.value=t.getAttribute("data-value");var e=this.selEl.querySelector("li.is-selected");e&&this.removeClass(e,"is-selected"),this.addClass(t,"is-selected"),this.context.Vent.trigger(this.context.EVENTS.selectChanged,this.el),t.getAttribute("data-link")&&(this.options.newTab?window.open(t.getAttribute("data-link"),"_blank"):window.location=t.getAttribute("data-link"),this.options.onChange(this.el.value))}},{key:"_toggleSelect",value:function(){this._removeFocus(),this._isOpen()?(-1!==this.current&&(this.selPlaceholder.textContent=this.selOpts[this.current].textContent),this.removeClass(this.selEl,"is-active")):(this.hasDefaultPlaceholder&&this.options.stickyPlaceholder&&(this.selPlaceholder.textContent=this.selectedOpt.textContent),this.addClass(this.selEl,"is-active"))}},{key:"_isOpen",value:function(t){return void 0===t?this.hasClass(this.selEl,"is-active"):this.hasClass(t,"is-active")}},{key:"_removeFocus",value:function(t){var e=this.selEl.querySelector("li.is-focus");e&&this.removeClass(e,"is-focus")}},{key:"hasParent",value:function(t,e){if(!t)return!1;for(var n=t.target||t.srcElement||t||!1;n&&n!=e;)n=n.parentNode||!1;return!1!==n}},{key:"hasClass",value:function(t,e){return E()(t).hasClass(e)}},{key:"addClass",value:function(t,e){E()(t).addClass(e)}},{key:"removeClass",value:function(t,e){E()(t).removeClass(e)}},{key:"render",value:function(){return this}}])&&Rn(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),s}(O());function Vn(t){return Vn="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},Vn(t)}function Wn(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,Qn(i.key),i)}}function zn(t,e){return zn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},zn(t,e)}function Zn(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Un(t){return Un=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Un(t)}function Yn(t,e,n){return(e=Qn(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Qn(t){var e=function(t,e){if("object"!==Vn(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!==Vn(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Vn(e)?e:String(e)}const Jn=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&zn(t,e)}(s,t);var e,n,i,o,r=(i=s,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=Un(i);if(o){var n=Un(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===Vn(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Zn(t)}(this,t)});function s(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),Yn(Zn(e=r.call(this,t,{selectors:{},classes:{},newTab:!0,stickyPlaceholder:!1,onChange:function(t){return!1}}
2)),"$el",E()(e.el)),Yn(Zn(e),"_debounce",(function(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Zn(e),o=null,r=null,s=function(){return t.apply(i,r)};return function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];r=e,clearTimeout(o),o=setTimeout(s,n)}})),e}return e=s,(n=[{key:"willMount",value:function(){}},{key:"didMount",value:function(){}},{key:"initialize",value:function(){}},{key:"bindEvents",value:function(){var t=this,e=document.querySelector(".select-multiple__checkbox-container--sample").cloneNode(!0),n=this.el.querySelectorAll("option"),i=this.el.parentNode;n.forEach((function(t){var n=e.cloneNode(!0);n.classList.remove("select-multiple__checkbox-container--sample"),n.querySelector("input").id="".concat(t.id,"_checkbox"),n.querySelector("input").name="".concat(t.getAttribute("name"),"_checkbox"),n.querySelector("input").value=t.value,n.querySelector("input").checked=t.selected,n.querySelector("input").disabled=t.disabled,n.querySelector("label").htmlFor="".concat(t.id,"_checkbox"),n.querySelector(".select-multiple__label-inner").innerHTML=t.innerHTML,i.querySelector(".select-multiple__results").appendChild(n)})),i.querySelectorAll(".select-multiple__checkbox").forEach((function(e){e.addEventListener("change",(function(){var o=document.getElementById(e.id.replace("_checkbox",""));if(!0===e.checked?o.setAttribute("selected","selected"):o.removeAttribute("selected"),"select-multiple__all"===o.getAttribute("data-js-type")){var r=document.getElementById(o.id+"_checkbox"),s=t._getAllSiblings(o,"option"),a=t._getAllSiblings(r.parentElement,"div.select-multiple__checkbox-container");!0===r.checked?(s.forEach((function(t){!1===t.disabled&&t.setAttribute("selected","selected")})),a.forEach((function(t){!1===t.childNodes[1].disabled&&(t.childNodes[1].checked=!0)}))):(s.forEach((function(t){t.removeAttribute("selected","selected")})),a.forEach((function(t){t.childNodes[1].checked=!1})))}else t.optLength=n.length,t.optCheckedLength=t.el.querySelectorAll("option:checked").length+t.el.querySelectorAll("option:disabled").length,t.optSelectAll=i.querySelector('[data-js-type="select-multiple__all"]'),t.cbxSelectAll=document.getElementById(t.optSelectAll.id+"_checkbox"),t.optSelectAll.selected?t.optCheckedLength<t.optLength&&(t.optSelectAll.removeAttribute("selected","selected"),t.cbxSelectAll.checked=!1):t.optCheckedLength===t.optLength-1&&(t.optSelectAll.setAttribute("selected","selected"),t.cbxSelectAll.checked=!0)}))})),this.selHeadline=this.el.parentNode.previousElementSibling,this.selHeadline.addEventListener("click",(function(e){if(e.target.parentNode.classList.toggle("select-multiple__dropdown--close"),!E()(t.selHeadline).closest(".select-multiple__dropdown-wrapper").hasClass("select-multiple__dropdown--close")){var n=t._debounce((function(e){t.selHeadline.closest(".select-multiple__dropdown-wrapper").classList.add("select-multiple__dropdown--close"),t.selHeadline.parentNode.removeEventListener("mouseleave",n),e.stopPropagation()}),250);t.selHeadline.parentNode.addEventListener("mouseleave",n)}})),i.querySelectorAll(".select-multiple__apply a").forEach((function(t){t.addEventListener("click",(function(){E()(t).closest(".select-multiple__dropdown-wrapper").addClass("select-multiple__dropdown--close")}))}))}},{key:"_getAllSiblings",value:function(t,e){var n=[];for(t=t.parentNode.firstChild;t=t.nextSibling;)this._siblingsMatches(t,e)&&n.push(t);return n}},{key:"_siblingsMatches",value:function(t,e){return!(!t||1!==t.nodeType)&&(!e||t.matches(e))}},{key:"render",value:function(){return this}}])&&Wn(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),s}(O());function Kn(t){return Kn="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},Kn(t)}function Xn(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,ni(i.key),i)}}
2function Gn(t,e){return Gn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Gn(t,e)}function ti(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ei(t){return ei=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ei(t)}function ni(t){var e=function(t,e){if("object"!==Kn(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!==Kn(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Kn(e)?e:String(e)}var ii=n(6267);const oi=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Gn(t,e)}(s,t);var e,n,i,o,r=(i=s,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=ei(i);if(o){var n=ei(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===Kn(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return ti(t)}(this,t)});function s(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),function(t,e,n){(e=ni(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}(ti(e=r.call(this,t,{selectors:{},classes:{checkInputAfterChange:"is-inputchange"},datePickerArea:[],inputDatepickers:[],datePickerContainer:[],startDate:null,endDate:null})),"$el",E()(e.el)),e}return e=s,(n=[{key:"willMount",value:function(){}},{key:"didMount",value:function(){}},{key:"initialize",value:function(t){var e=E()(this.el).closest('[data-js-item="js-form-datepicker-area"]');e.length>0&&(this.options.datePickerArea=e[0],this.options.inputDatepickers=[].slice.call(this.options.datePickerArea.querySelectorAll('[data-js-item="js-form-datepicker"]')),this.options.datePickerContainer=[].slice.call(this.options.datePickerArea.querySelectorAll('[data-js-item="js-form-datepicker-container"]')))}},{key:"bindEvents",value:function(){var t=this;this.options.inputDatepickers.length>0&&this.options.inputDatepickers.forEach((function(e){e.addEventListener("input",(function(e){t.addChangeCheckCss()}))}))}},{key:"render",value:function(){if(this.options.inputDatepickers.length>0&&this.options.datePickerContainer.length>0){var t="DE",e=".";this.options.datePickerArea.hasAttribute("data-js-lng")&&"EN"==this.options.datePickerArea.getAttribute("data-js-lng")&&(t="EN"),"EN"==t&&(e="/");var n=this;if(this.options.classes.checkInputAfterChange,2==this.options.inputDatepickers.length)var i=new ii({field:this.options.inputDatepickers[0],minDate:this.getMinDate(),maxDate:this.getMaxDate(),firstDay:1,i18n:this.geti18nLNG(t),bound:!0,ariaLabel:this.getAriaText(t,"start"),theme:"form__startdate",showDaysInNextAndPreviousMonths:!0,format:"D"+e+"M"+e+"YYYY",toString:function(t,n){var i=t.getDate(),o=t.getMonth()+1,r=t.getFullYear();return"".concat(i).concat(e).concat(o).concat(e).concat(r)},parse:function(t,n){var i=t.split(e),o=parseInt(i[0],10),r=parseInt(i[1],10)-1,s=parseInt(i[2],10);return new Date(s,r,o)},container:this.options.datePickerContainer[0],onSelect:function(){n.options.startDate=this.getDate(),n.updateStartDate(n.options.startDate,i,o)},onOpen:function(){E()(n.options.inputDatepickers[0]).hasClass(n.options.classes.checkInputAfterChange)&&o.hide();var t=n.checkDate(e,"start"),r=n.checkDate(e,"end");n.checkStartDateInput(i,o,t,r),t?i.gotoDate(i.getDate()):(i.setDate(null),n.options.startDate=null,i.gotoToday())},onClose:function(){var t=n.checkDate(e,"start"),r=n.checkDate(e,"end");n.checkStartDateInput(i,o,t,r)}}),o=new ii({field:this.options.inputDatepickers[1],minDate:this.getMinDate(),maxDate:this.getMaxDate(),firstDay:1,i18n:this.geti18nLNG(t),bound:!0,ariaLabel:this.getAriaText(t,"end"),theme:"form__enddate",showDaysInNextAndPreviousMonths:!0,format:"D"+e+"M"+e+"YYYY",toString:function(t,n){var i=t.getDate(),o=t.getMonth()+1,r=t.getFullYear();
2return"".concat(i).concat(e).concat(o).concat(e).concat(r)},parse:function(t,n){var i=t.split(e),o=parseInt(i[0],10),r=parseInt(i[1],10)-1,s=parseInt(i[2],10);return new Date(s,r,o)},container:this.options.datePickerContainer[1],onSelect:function(){n.options.endDate=this.getDate(),n.updateEndDate(n.options.endDate,i,o)},onOpen:function(){E()(n.options.inputDatepickers[1]).hasClass(n.options.classes.checkInputAfterChange)&&i.hide();var t=n.checkDate(e,"start"),r=n.checkDate(e,"end");n.checkEndDateInput(i,o,t,r),r?o.gotoDate(o.getDate()):(o.setDate(null),n.options.endDate=null,t?o.gotoDate(i.getDate()):(n.options.startDate=null,o.gotoToday()))},onClose:function(){var t=n.checkDate(e,"start"),r=n.checkDate(e,"end");n.checkEndDateInput(i,o,t,r)}});else if(this.options.inputDatepickers[0])var r=new ii({field:this.options.inputDatepickers[0],minDate:new Date,maxDate:new Date((new Date).setFullYear((new Date).getFullYear()+5)),i18n:this.geti18nLNG(t),bound:!0,ariaLabel:this.getAriaText(t,""),showDaysInNextAndPreviousMonths:!0,format:"D"+e+"M"+e+"YYYY",toString:function(t,n){var i=t.getDate(),o=t.getMonth()+1,r=t.getFullYear();return"".concat(i).concat(e).concat(o).concat(e).concat(r)},parse:function(t,n){var i=t.split(e),o=parseInt(i[0],10),r=parseInt(i[1],10)-1,s=parseInt(i[2],10);return new Date(s,r,o)},container:this.options.datePickerContainer[0],onOpen:function(){n.checkDateInput(e,r)},onClose:function(){n.checkDateInput(e,r)}})}return this}},{key:"getAriaText",value:function(t,e){return"EN"==(t=void 0!==t&&"EN"===t.toUpperCase()?t.toUpperCase():"DE")?"start"==e?"Please give in a start date in the format Day/Month/Year or use the arrow keys to pick a date ":"end"==e?"Please give in an end date in the format Day/Month/Year or use the arrow keys to pick a date ":"Please give in a date in the format Day/Month/Year or use the arrow keys to pick a date ":"start"==e?"Bitte geben Sie ein Startdatum im Format Tag.Monat.Jahr ein oder nutzen sie die Pfeiltasten um ein Datum auszuwählen":"end"==e?"Bitte geben Sie ein Enddatum im Format Tag.Monat.Jahr ein oder nutzen sie die Pfeiltasten um ein Datum auszuwählen":"Bitte geben Sie ein Datum im Format Tag.Monat.Jahr ein oder nutzen sie die Pfeiltasten um ein Datum auszuwählen"}},{key:"geti18nLNG",value:function(t){return"EN"==(t=void 0!==t&&"EN"===t.toUpperCase()?t.toUpperCase():"DE")?{previousMonth:"Previous Month",nextMonth:"Next Month",months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"S_M_T_W_T_F_S".split("_"),calendarFormat:"DD/MM/YYYY"}:{previousMonth:"Vorheriger Monat",nextMonth:"Nächster Monat",months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"S_M_D_M_D_F_S".split("_"),calendarFormat:"DD.MM.YYYY"}}},{key:"updateStartDate",value:function(t,e,n){e.setStartRange(t),n.setStartRange(t),n.setMinDate(t)}},{key:"updateEndDate",value:function(t,e,n){e.setEndRange(t),e.setMaxDate(t),n.setEndRange(t)}},{key:"checkDate",value:function(t,e){var n="";if(""==(n="start"==e?this.options.inputDatepickers[0].value:"end"==e?this.options.inputDatepickers[1].value:this.options.inputDatepickers[0].value)||!n)return!1;var i=(n=n.toString()).split(t);if(3!=i.length)return!1;if(i[0]=parseInt(i[0],10),i[1]=parseInt(i[1],10)-1,2==i[2].length&&(i[2]="20"+i[2]),4!=i[2].length)return!1;var o=new Date(i[2],i[1],i[0]);return o.getDate()==i[0]&&o.getMonth()==i[1]&&o.getFullYear()==i[2]&&("start"==e?this.options.startDate=o:"end"==e?this.options.endDate=o:this.options.startDate=o,!0)}},{key:"resetDate",value:function(t,e,n,i,o){"start"==t?(this.options.startDate=null,i.setDate(null),i.setMinDate(new Date),i.setStartRange(null),o.setStartRange(null),o.setMinDate(new Date),n?(this.options.endDate=o.getDate(),o.setDate(this.options.endDate),this.updateEndDate(this.options.endDate,i,o)):(i.setEndRange(null),o.setEndRange(null),o.setDate(null),this.options.endDate=null)):"end"==t&&(this.options.endDate=null,o.setDate(null),o.setMinDate(new Date),o.setEndRange(null),i.setEndRange(null),i.setMaxDate(null),e?(i.setDate(this.options.startDate),this.updateStartDate(this.options.startDate,i,o)):(o.setStartRange(null),i.setStartRange(null),i.setDate(null),this.options.startDate=null))}},{key:"checkStartDateInput",value:function(t,e,n,i){E()(this.options.inputDatepickers[0]).hasClass(this.options.classes.checkInputAfterChange)&&(n?(t.setDate(this.options.startDate),this.updateStartDate(this.options.startDate,t,e),i?(e.setDate(this.options.endDate),this.updateEndDate(this.options.endDate,t,e)):(e.setDate(null),this.options.endDate=null,this.updateEndDate(this.options.endDate,t,e))):this.resetDate("start",n,i,t,e),this.removeChangeCheckCss())}},{key:"checkEndDateInput",value:function(t,e,n,i){E()(this.options.inputDatepickers[1]).hasClass(this.options.classes.checkInputAfterChange)&&(i?(e.setDate(this.options.endDate),this.updateEndDate(this.options.endDate,t,e),n?(t.
2setDate(this.options.startDate),this.updateStartDate(this.options.startDate,t,e)):(t.setDate(null),this.options.startDate=null,this.updateStartDate(this.options.startDate,t,e))):this.resetDate("end",n,i,t,e),this.removeChangeCheckCss())}},{key:"checkDateInput",value:function(t,e){E()(this.options.inputDatepickers[0]).hasClass(this.options.classes.checkInputAfterChange)&&(this.checkDate(t,"date")?(e.setDate(this.options.startDate),e.setMinDate(new Date)):(e.setDate(null),e.setMinDate(new Date),e.gotoToday()),this.removeChangeCheckCss())}},{key:"addChangeCheckCss",value:function(){var t=this;this.options.inputDatepickers.forEach((function(e){var n=E()(e);n.hasClass(t.options.classes.checkInputAfterChange)||n.addClass(t.options.classes.checkInputAfterChange)}))}},{key:"removeChangeCheckCss",value:function(){var t=this;this.options.inputDatepickers.forEach((function(e){var n=E()(e);n.hasClass(t.options.classes.checkInputAfterChange)&&n.removeClass(t.options.classes.checkInputAfterChange)}))}},{key:"getMinDate",value:function(){var t,e,n=this.options.datePickerArea,i=new Date;return null!==(t=null!==(e=this.getMinDateFromPastDate(n.getAttribute("data-js-past-date")))&&void 0!==e?e:this.getMinDateFromPastYears(parseInt(n.getAttribute("data-js-past-years"),10),i))&&void 0!==t?t:i}},{key:"getMinDateFromPastDate",value:function(t){if(!t)return null;var e=Date.parse(t);return isNaN(e)?null:new Date(e)}},{key:"getMinDateFromPastYears",value:function(t,e){return null==t?null:new Date(e.getFullYear()-t,e.getMonth(),e.getDate())}},{key:"getMaxDate",value:function(){var t=new Date((new Date).setFullYear((new Date).getFullYear()+5));if(this.options.datePickerArea.hasAttribute("data-js-next-years")){var e=this.options.datePickerArea.getAttribute("data-js-next-years"),n=parseInt(e);isNaN(n)||(t=0===n?new Date:-1===n?this.getYesterday():new Date((new Date).setFullYear((new Date).getFullYear()+n)))}return t}},{key:"getYesterday",value:function(){var t=new Date,e=new Date(t).setDate(t.getDate()-1);return new Date(e)}}])&&Xn(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),s}(O());function ri(t){return ri="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},ri(t)}function si(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,ui(i.key),i)}}function ai(t,e){return ai=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ai(t,e)}function li(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ci(t){return ci=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ci(t)}function ui(t){var e=function(t,e){if("object"!==ri(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!==ri(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===ri(e)?e:String(e)}const pi=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ai(t,e)}(s,t);var e,n,i,o,r=(i=s,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=ci(i);if(o){var n=ci(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===ri(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return li(t)}(this,t)});function s(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),function(t,e,n){(e=ui(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}(li(e=r.call(this,t,{selectors:{backButton:'[data-js-item="back-link"]'},classes:{}})),"$el",E()(e.el)),e}return e=s,(n=[{key:"didMount",value:function(){}},{key:"render",value:function(){return this}},{key:"events",get:function(){return{"{{context.EVENTS.click}} {{this.options.selectors.backButton}}":"onBackButtonClick"}}},{key:"onBackButtonClick",value:function(t){t.preventDefault(),window.history.back()}}])&&si(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),s}(O());function fi(t){return fi="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},fi(t)}function di(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,bi(i.key),i)}}
2function hi(t,e){return hi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},hi(t,e)}function mi(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function vi(t){return vi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},vi(t)}function yi(t,e,n){return(e=bi(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function bi(t){var e=function(t,e){if("object"!==fi(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!==fi(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===fi(e)?e:String(e)}const gi=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&hi(t,e)}(a,t);var e,n,i,o,r,s=(o=a,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=vi(o);if(r){var n=vi(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===fi(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return mi(t)}(this,t)});function a(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),yi(mi(e=s.call(this,t,{classes:{active:"is-active",disabled:"is-disabled",open:"is-open",uiReplaced:"is-ui-replaced"},i18n:{placeholder:"Please select",selected:"Selected",selectMenu:"Select Menu"},selectors:{btn:'[data-js-item="btn"]',btnWrapper:'[data-js-item="btn-wrapper"]',listItem:'[data-js-item="list-item"]',listWrapper:'[data-js-item="list-wrapper"]',listWrapperInner:'[data-js-item="list-wrapper-inner"]'},templates:{btn:"SELECTREPLACE__BTN",list:"SELECTREPLACE__LIST",preRender:"SELECTREPLACE__PRERENDER"},useSelectWidth:!0,validateSelectEvent:"formValidation:validateSelect"})),"$el",E()(e.el)),yi(mi(e),"isMultiSelect",e.el.multiple),yi(mi(e),"isOpen",!1),yi(mi(e),"modifierClasses",[]),e}return e=a,i=[{key:"info",get:function(){return{version:"1.0.0"}}}],(n=[{key:"events",get:function(){return{"{{this.context.EVENTS.change}}":"renderAll","{{this.options.validateSelectEvent}}":"onValidateSelect"}}},{key:"subscribe",get:function(){return{"{{this.context.EVENTS.selectReplace.closeAll}}":"closeList"}}},{key:"data",get:function(){for(var t=this.$el.find("option"),e={},n=[],i=0;i<t.length;i++){var o=E()(t[i]);n[i]={},n[i].text=o.text(),n[i].value=o[0].value,n[i].selected=o[0].selected,n[i].disabled=o[0].disabled}return e.items=n,e.i18n=this.options.i18n,e.disabled=this.el.disabled,e}},{key:"didMount",value:function(){}},{key:"bindEvents",value:function(){var t=this.defaultClickHandler.bind(this),e=this.buttonHandler.bind(this),n=this.selectItemHandler.bind(this);this.options.useSelectWidth&&this.registerEvent("{{this.context.EVENTS.resize}}","setWidth",!0),E()(document.body).on(this.context.EVENTS.click,t),this.$btnWrapper.on(this.context.EVENTS.click,e),this.$listWrapper.on(this.context.EVENTS.click,this.options.selectors.listItem,n)}},{key:"onValidateSelect",value:function(t,e){this.$btnWrapper[e.domAction](e.errorClass)}},{key:"defaultClickHandler",value:function(t){this.closeList()}},{key:"buttonHandler",value:function(t){t.stopPropagation(),this.isOpen?this.closeList():this.openList()}},{key:"selectItemHandler",value:function(t){var e=E()(t.target),n=E()('option[value="'+e.attr("data-value")+'"]',this.el);t.stopPropagation(),e.hasClass(this.options.classes.disabled)||(n[0].selected?n[0].selected=!1:n[0].selected=!0,this.$el.trigger(this.context.EVENTS.change),this.isMultiSelect||this.closeList(),this.lastScrollOffset=this.$listWrapperInner[0].scrollTop,this.renderAll())}},{key:"openList",value:function(){this.context.Vent.trigger(this.context.EVENTS.selectReplace.closeAll),this.$btn.attr("aria-expanded",!0),this.$btnWrapper.addClass(this.options.classes.open),this.$listWrapper.addClass(this.options.classes.open),this.$listWrapper.removeAttr("disabled"),this.isOpen=!0}},{key:"closeList",value:function(){this.$listWrapperInner[0].scrollTop=0,this.$btn.attr("aria-expanded",!1),this.$btnWrapper.removeClass(this.options.classes.open),this.$listWrapper.removeClass(this.options.classes.open),this.$listWrapper.attr("disabled","disabled"),this.isOpen=!1}}
2,{key:"setWidth",value:function(){this.$replaceEl.css({width:this.$el.outerWidth()})}},{key:"preRender",value:function(){var t={isMultiSelect:this.isMultiSelect,instanceId:this.instanceId},e=[].slice.call(this.$el[0].classList);this.$replaceEl=E()(this.renderTemplate(this.options.templates.preRender,t));for(var n=0;n<e.length;n++)0===e[n].indexOf("is-")&&this.modifierClasses.push(e[n]);this.$btnWrapper=this.$replaceEl.find(this.options.selectors.btnWrapper),this.$listWrapper=this.$replaceEl.find(this.options.selectors.listWrapper),this.el.parentNode.insertBefore(this.$replaceEl[0],this.el.nextSibling),this.options.useSelectWidth&&this.setWidth(),this.$el.addClass(this.options.classes.uiReplaced),this.renderAll()}},{key:"renderAll",value:function(){this.renderBtn(this.data),this.renderList(this.data)}},{key:"renderBtn",value:function(t){var e=0,n="",i={instanceId:this.instanceId,modifierClasses:this.modifierClasses.join(" "),ariaExpanded:this.isOpen,disabled:t.disabled,tabIndex:this.el.tabIndex};this.$btn=E()(this.renderTemplate(this.options.templates.btn,i));for(var o=0;e<t.items.length;e++)t.items[e].selected&&(n=t.items[e].text,o++);0===o?(n=this.options.i18n.placeholder,this.$btnWrapper.removeClass(this.options.classes.active)):this.$btnWrapper.addClass(this.options.classes.active),o>1&&(n=this.options.i18n.placeholder+" ("+o+")"),this.$btn.text(n).attr("aria-label",this.options.i18n.selectMenu+": "+this.options.i18n.placeholder),this.$btnWrapper.empty(),this.$btnWrapper.append(this.$btn)}},{key:"renderList",value:function(t){this.$listWrapperInner=E()(this.renderTemplate(this.options.templates.list,t)),this.$listWrapperInner[0].scrollTop=this.lastScrollOffset,this.$listWrapper.empty(),this.$listWrapper.append(this.$listWrapperInner)}}])&&di(e.prototype,n),i&&di(e,i),Object.defineProperty(e,"prototype",{writable:!1}),a}(O());function wi(t){return wi="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},wi(t)}function _i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,Ci(i.key),i)}}function ki(t,e){return ki=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ki(t,e)}function Si(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ji(t){return ji=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ji(t)}function Ei(t,e,n){return(e=Ci(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ci(t){var e=function(t,e){if("object"!==wi(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!==wi(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===wi(e)?e:String(e)}const Oi=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ki(t,e)}(s,t);var e,n,i,o,r=(i=s,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=ji(i);if(o){var n=ji(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===wi(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Si(t)}(this,t)});function s(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),Ei(Si(e=r.call(this,t,{classes:{visible:"is-visible"},selectors:{shAreaWrapper:'[data-js-item="sh-area-wrapper"]',jsShareOptionCopy:'[data-js-item="js-share-option-copy"]',jsShareOptionFacebook:'[data-js-item="js-share-option-facebook"]',jsShareOptionTwitter:'[data-js-item="js-share-option-twitter"]',jsShareOptionBluesky:'[data-js-item="js-share-option-bluesky"]',
2jsShareOptionLinkedIn:'[data-js-item="js-share-option-linkedin"]',jsShareOptionCopyOverlay:'[data-js-item="js-share-option-copy-overlay"]'},overlayObj:{data:{caption:{captionHeadline:"Link wurde kopiert",captionContent:"Sie koennen ihn nun an beliebiger Stelle einfuegen"}}}})),"$el",E()(e.el)),Ei(Si(e),"$shAreaWrapper",E()(e.options.selectors.shAreaWrapper,e.el)),Ei(Si(e),"$jsShareOptionCopy",E()(e.options.selectors.jsShareOptionCopy,e.el)),Ei(Si(e),"$jsShareOptionFacebook",E()(e.options.selectors.jsShareOptionFacebook,e.el)),e}return e=s,(n=[{key:"events",get:function(){return{"{{context.EVENTS.click}} {{this.options.selectors.jsShareOptionCopy}}":"shareOptionCopyClick","{{context.EVENTS.click}} {{this.options.selectors.jsShareOptionFacebook}}":"shareOptionFacebookClick","{{context.EVENTS.click}} {{this.options.selectors.jsShareOptionTwitter}}":"shareOptionTwitterClick","{{context.EVENTS.click}} {{this.options.selectors.jsShareOptionBluesky}}":"shareOptionBlueskyClick","{{context.EVENTS.click}} {{this.options.selectors.jsShareOptionLinkedIn}}":"shareOptionLinkedInClick"}}},{key:"subscribe",get:function(){return{"{{context.EVENTS.pagescrollThrottled}}":"onPageScroll"}}},{key:"render",value:function(){return this}},{key:"getScrollPositionY",value:function(){var t=0;return"number"==typeof window.pageYOffset?t=window.pageYOffset:document.body&&document.body.scrollTop&&(t=document.body.scrollTop),t}},{key:"onPageScroll",value:function(t){var e=this.$shAreaWrapper.css("position"),n=window.innerHeight/4;if("fixed"===e){var i=this.$shAreaWrapper.offset().top+this.$shAreaWrapper.outerHeight(),o=document.getElementById("footer");o.style.zIndex=" 999999",o.getBoundingClientRect().top-i-120<0?this.$shAreaWrapper.hasClass(this.options.classes.visible)&&this.$shAreaWrapper.removeClass(this.options.classes.visible):this.$shAreaWrapper.hasClass(this.options.classes.visible)||this.$shAreaWrapper.addClass(this.options.classes.visible)}else n-this.getScrollPositionY()<0&&!this.$shAreaWrapper.hasClass(this.options.classes.visible)&&this.$shAreaWrapper.addClass(this.options.classes.visible)}},{key:"shareOptionCopyClick",value:function(t){t.preventDefault();var e=window.location.href,n=document.createElement("textarea"),i=document.activeElement,o=document.getElementsByClassName("is-sh-copy");if(void 0!==o&&o.length>0){var r;n.id="share-option__tocopy",n.textContent="".concat(e),o[0].appendChild(n),n.focus(),n.setSelectionRange(0,n.value.length);try{r=document.execCommand("copy")}catch(t){r=!1}if(i&&"function"==typeof i.focus&&i.focus(),o[0].removeChild(n),!1!==r&&void 0!==o[0].dataset.content){var s=o[0].dataset.content,a=JSON.parse(s);this.options.overlayObj.data=a,Veams.Vent.publish(Veams.EVENTS.overlay.open,this.options.overlayObj),setTimeout((function(){var t=document.getElementsByClassName("overlay__close");void 0!==t&&t.length>0&&(t[0].click(),i&&"function"==typeof i.focus&&i.focus())}),1500)}}return!1}},{key:"shareOptionFacebookClick",value:function(t){t.preventDefault();var e=window.location.href;return window.open("https://www.facebook.com/sharer/sharer.php?u=".concat(e),"sharer","width=626,height=436"),!1}},{key:"shareOptionTwitterClick",value:function(t){t.preventDefault();for(var e="",n=window.location.href,i=!1,o=document.getElementsByTagName("meta"),r=0;r<o.length;r++)(t=o[r]).hasAttribute("property")&&"og:title"==t.getAttribute("property")&&t.hasAttribute("content")&&""!==(e=t.getAttribute("content"))&&(i=!0);if(!i){var s=document.getElementsByClassName("c-share-option--default");if(void 0!==s&&s.length>0){var a=s[0].parentNode.getElementsByTagName("h1");void 0!==a&&a.length>0&&""!==(e=a[0].innerHTML)&&(i=!0)}}return i||(e=document.title),e=(e=e.replace("|","/")).replace("%","o/o"),window.open("https://twitter.com/intent/tweet?text=".concat(e,"&url=").concat(n,"&hashtags=lmumünchen,universityofmunich"),"twitter","width=626,height=436"),!1}},{key:"shareOptionBlueskyClick",value:function(t){t.preventDefault();for(var e,n="",i=window.location.href,o="",r="",s=!1,a=document.getElementsByTagName("meta"),l=0;l<a.length;l++)(t=a[l]).hasAttribute("property")&&"og:title"==t.getAttribute("property")&&t.hasAttribute("content")&&""!==(n=t.getAttribute("content"))&&(s=!0);if(!s){var c=document.getElementsByClassName("c-share-option--default");if(void 0!==c&&c.length>0){var u=c[0].parentNode.getElementsByTagName("h1");void 0!==u&&u.length>0&&""!==(n=u[0].innerHTML)&&(s=!0)}}return s||(n=document.title),e=encodeURIComponent(i),(o=encodeURIComponent(n)).length<=299?r=o:(o=n.substring(0,250)+"...",r=encodeURIComponent(o)),window.open("https://bsky.app/intent/compose?text=".concat(r," + ").concat(e),"bluesky","width=626,height=436"),!1}},{key:"shareOptionLinkedInClick",value:function(t){t.preventDefault();var e=window.location.href;return window.open("https://www.linkedin.com/sharing/share-offsite/?url=".concat(e),"sharerlinkedin","width=626,height=436"),!1}}])&&_i(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),s}(O());function xi(t){return xi="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},xi(t)}function Ti(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,Ii(i.key),i)}}
2function Pi(t,e){return Pi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Pi(t,e)}function $i(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ai(t){return Ai=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ai(t)}function Li(t,e,n){return(e=Ii(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ii(t){var e=function(t,e){if("object"!==xi(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!==xi(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===xi(e)?e:String(e)}const Di=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Pi(t,e)}(s,t);var e,n,i,o,r=(i=s,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=Ai(i);if(o){var n=Ai(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===xi(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return $i(t)}(this,t)});function s(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),Li($i(e=r.call(this,t,{selectors:{counterWrapper:'[data-js-item="counter__js__timer"]',counterNumber:'[data-js-item="counter__js__number"]',counterNumberTo:'[data-js-item="counter__js__numberto"]'},classes:{inview:"is-inview",inactive:"is-inactive",active:"is-active"},counterOptions:{from:0,to:0,toFormated:0,speed:800,refreshInterval:100,decimals:0,countnr:0,intervalOne:"",countlng:"de"}})),"$el",E()(e.el)),Li($i(e),"$counterWrapper",E()(e.options.selectors.counterWrapper,e.el)),Li($i(e),"$counterNumber",E()(e.options.selectors.counterNumber,e.el)),Li($i(e),"$counterNumberTo",E()(e.options.selectors.counterNumberTo,e.el)),e}return e=s,(n=[{key:"events",get:function(){return{"{{context.EVENTS.mouseover}} {{this.options.selectors.counterWrapper}}":"wrapperMouseOver","{{context.EVENTS.touchstart}} {{this.options.selectors.counterWrapper}}":"wrapperMouseOver"}}},{key:"subscribe",get:function(){return{"{{context.EVENTS.pagescrollThrottled}}":"onPageScroll"}}},{key:"onPageScroll",value:function(t){this.startCounter(500)}},{key:"render",value:function(){var t=this.options.counterOptions.decimals;return null==this.$counterWrapper.attr("data-decimals")||isNaN(parseFloat(this.$counterWrapper.attr("data-decimals")))||(this.options.counterOptions.decimals=parseFloat(this.$counterWrapper.attr("data-decimals")),t=this.options.counterOptions.decimals),null==this.$counterWrapper.attr("data-from")||isNaN(parseFloat(this.$counterWrapper.attr("data-from")))||(this.options.counterOptions.from=parseFloat(this.$counterWrapper.attr("data-from")).toFixed(t)),this.options.counterOptions.countnr=this.options.counterOptions.from,null==this.$counterWrapper.attr("data-to")||isNaN(parseFloat(this.$counterWrapper.attr("data-to")))||(this.options.counterOptions.to=parseFloat(this.$counterWrapper.attr("data-to")).toFixed(t)),null==this.$counterWrapper.attr("data-speed")||isNaN(parseFloat(this.$counterWrapper.attr("data-speed")))||(this.options.counterOptions.speed=parseFloat(this.$counterWrapper.attr("data-speed"))),null==this.$counterWrapper.attr("data-refreshInterval")||isNaN(parseFloat(this.$counterWrapper.attr("data-refreshInterval")))||(this.options.counterOptions.refreshInterval=parseFloat(this.$counterWrapper.attr("data-refreshInterval"))),null!=this.$counterWrapper.attr("data-js-lng")&&(this.options.counterOptions.countlng=this.$counterWrapper.attr("data-js-lng")),this.options.counterOptions.loops=Math.ceil(this.options.counterOptions.speed/this.options.counterOptions.refreshInterval),this.options.counterOptions.increment=(this.options.counterOptions.to-this.options.counterOptions.from)/this.options.counterOptions.loops,this.options.counterOptions.loopCount=0,this.options.counterOptions.toFormated=this.formatter(this.options.counterOptions.to),this.$counterNumberTo.html(this.options.counterOptions.toFormated),this.$counterNumber.html(this.options.counterOptions.toFormated),this.startCounter(1500),this}},{key:"startCounter",value:function(t){var e=this;setTimeout((function(){(0,zt.Z)(e.el)&&!e.$counterWrapper.hasClass(e.options.classes.inview)&&(e.$counterWrapper.addClass(e.options.classes.inview),e.updateTimer())}),t)}},{key:"countTo",value:function(){var t=this.options.counterOptions.countnr;this.options.counterOptions.countnr=parseFloat(this.options.counterOptions.countnr)+parseFloat(this.options.counterOptions.increment),parseFloat(this.options.counterOptions.countnr)>=parseFloat(this.options.counterOptions.to)?(t=this.options.counterOptions.to,this.counterRender(t)):this.counterRender(t)}},{key:"updateTimer",value:function(){var t=this;this.setActive(),this.options.counterOptions.intervalOne=setInterval((function(){parseFloat(t.options.counterOptions.countnr)>=parseFloat(t.options.counterOptions.to)?(clearInterval(t.options.counterOptions.intervalOne),t.setInactive()):t.countTo()}),this.options.counterOptions.loops)}},{key:"formatter",value:function(t){return"de"==this.options.counterOptions.countlng?parseFloat(t).toFixed(this.options.counterOptions.decimals).replace(/\B(?=(?:\d{3})+(?!\d))/g,"."):parseFloat(t).toFixed(this.options.counterOptions.decimals).replace(/\B(?=(?:\d{3})+(?!\d))/g,",")}},{key:"counterRender",value:function(t){var e=this.formatter(t);this.$counterNumber.html(e)}},{key:"wrapperMouseOver",value:function(t){this.$counterWrapper.hasClass(this.options.classes.inactive)||(clearInterval(this.options.counterOptions.intervalOne),this.options.counterOptions.countnr=this.options.counterOptions.to,this.countTo(),this.setInactive())}},{key:"setActive",value:function(){this.$counterWrapper.hasClass(this.options.classes.inactive)&&(this.$counterWrapper.removeClass(this.options.classes.inactive),this.$counterWrapper.addClass(this.options.classes.active))}},{key:"setInactive",value:function(){this.$counterWrapper.hasClass(this.options.classes.active)&&(this.$counterWrapper.removeClass(this.options.classes.active),this.$counterWrapper.addClass(this.options.classes.inactive))}}])&&Ti(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),s}(O());function Fi(t){return Fi="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},Fi(t)}function Ri(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,Hi(i.key),i)}}
2function Ni(t,e){return Ni=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ni(t,e)}function Mi(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Bi(t){return Bi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Bi(t)}function qi(t,e,n){return(e=Hi(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Hi(t){var e=function(t,e){if("object"!==Fi(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!==Fi(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Fi(e)?e:String(e)}const Vi=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ni(t,e)}(s,t);var e,n,i,o,r=(i=s,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=Bi(i);if(o){var n=Bi(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===Fi(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Mi(t)}(this,t)});function s(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),qi(Mi(e=r.call(this,t,{selectors:{piechartContainer:'[data-js-item="piechart__js__container"]'},classes:{inview:"is-inview",inactivesvg:"is-inactivesvg",activesvg:"is-activesvg"},pieChartOptions:{size:1800,strokeWidth:"",radius:"",value:10,group:"",title:"Tortendiagramm mit",slice:"",sliceResult:"",text:"",textResult:"",unit:"%",showpie:!1,intervalsvg:""}})),"$el",E()(e.el)),qi(Mi(e),"$piechartContainer",E()(e.options.selectors.piechartContainer,e.el)),e}return e=s,(n=[{key:"events",get:function(){return{"{{context.EVENTS.mouseover}} {{this.options.selectors.piechartContainer}}":"wrapperMouseOver","{{context.EVENTS.touchstart}} {{this.options.selectors.piechartContainer}}":"wrapperMouseOver"}}},{key:"subscribe",get:function(){return{"{{context.EVENTS.pagescrollThrottled}}":"onPageScroll"}}},{key:"onPageScroll",value:function(t){this.options.pieChartOptions.value>=0&&this.options.pieChartOptions.value<=100&&this.animationStart(500)}},{key:"render",value:function(){return null==this.$piechartContainer.attr("data-value")||isNaN(parseFloat(this.$piechartContainer.attr("data-value")))||(this.options.pieChartOptions.value=this.$piechartContainer.attr("data-value")),null!=this.$piechartContainer.attr("data-title")&&(this.options.pieChartOptions.title=""+this.$piechartContainer.attr("data-title").replace(/[^a-zA-Z0-9%@€üöäÜÖÄß\s]/g,"")),null!=this.$piechartContainer.attr("data-unit")&&(this.options.pieChartOptions.unit=""+this.$piechartContainer.attr("data-unit").replace(/[^a-zA-Z0-9%@€üöäÜÖÄß\s]/g,"")),this.options.pieChartOptions.strokeWidth=this.options.pieChartOptions.size/10,this.options.pieChartOptions.radius=this.options.pieChartOptions.size/2-this.options.pieChartOptions.strokeWidth/2,this.options.pieChartOptions.value>=0&&this.options.pieChartOptions.value<=100&&(this.createSvgDiagram(),this.options.pieChartOptions.showpie=!0,this.animationStart(1500)),this}},{key:"animationStart",value:function(t){var e=this;setTimeout((function(){(0,zt.Z)(e.el)&&!e.$piechartContainer.hasClass(e.options.classes.inview)&&(e.$piechartContainer.addClass(e.options.classes.inview),e.animate())}),t)}},{key:"createSvgDiagram",value:function(){this.createSvg(),this.createGroup(),this.createTitle(),this.createRectBackgroun
2d(),this.createOuterBackground(),this.createInnerBackground(),this.createSliceResult(),this.createSlice(),this.createTextResult(),this.createText(),this.options.pieChartOptions.svg.appendChild(this.options.pieChartOptions.group),this.$piechartContainer.append(this.options.pieChartOptions.svg),this.setResult()}},{key:"createSvg",value:function(){var t=document.createElementNS("http://www.w3.org/2000/svg","svg");t.setAttribute("width","100%"),t.setAttribute("height","100%"),t.setAttribute("viewBox","0 0 1800 1800"),t.setAttribute("preserveAspectRatio","xMinYMin meet"),t.setAttribute("class","pie-chart__svg"),t.setAttribute("role","img"),t.setAttribute("aria-label",this.options.pieChartOptions.title),this.options.pieChartOptions.svg=t}},{key:"createGroup",value:function(){var t=document.createElementNS("http://www.w3.org/2000/svg","g");t.setAttribute("class","pie-chart__g"),t.setAttribute("aria-hidden","true"),this.options.pieChartOptions.group=t}},{key:"createTitle",value:function(){var t=document.createElementNS("http://www.w3.org/2000/svg","title");t.textContent=this.options.pieChartOptions.title,this.options.pieChartOptions.svg.appendChild(t)}},{key:"createRectBackground",value:function(){var t=document.createElementNS("http://www.w3.org/2000/svg","rect");t.setAttribute("class","pie-chart__svg-rect"),t.setAttribute("aria-hidden","true"),t.setAttribute("x","0"),t.setAttribute("y","0"),t.setAttribute("width","1800"),t.setAttribute("height","1800"),this.options.pieChartOptions.group.appendChild(t)}},{key:"createOuterBackground",value:function(){var t=this.options.pieChartOptions.size-this.options.pieChartOptions.size/2,e=document.createElementNS("http://www.w3.org/2000/svg","circle");e.setAttribute("class","pie-chart__svg-circle"),e.setAttribute("aria-hidden","true"),e.setAttribute("cx",this.options.pieChartOptions.size/2),e.setAttribute("cy",this.options.pieChartOptions.size/2),e.setAttribute("r",t),this.options.pieChartOptions.group.appendChild(e)}},{key:"createInnerBackground",value:function(){var t=this.options.pieChartOptions.size-this.options.pieChartOptions.size/2-this.options.pieChartOptions.strokeWidth,e=document.createElementNS("http://www.w3.org/2000/svg","circle");e.setAttribute("class","pie-chart__svg-innercircle"),e.setAttribute("aria-hidden","true"),e.setAttribute("cx",this.options.pieChartOptions.size/2),e.setAttribute("cy",this.options.pieChartOptions.size/2),e.setAttribute("r",t),this.options.pieChartOptions.group.appendChild(e)}},{key:"createSlice",value:function(){var t=document.createElementNS("http://www.w3.org/2000/svg","path");t.setAttribute("class","pie-chart__svg-slice"),t.setAttribute("aria-hidden","true"),t.setAttribute("stroke-width",this.options.pieChartOptions.strokeWidth),t.setAttribute("transform","translate("+this.options.pieChartOptions.strokeWidth/2+","+this.options.pieChartOptions.strokeWidth/2+")"),this.options.pieChartOptions.group.appendChild(t),this.options.pieChartOptions.slice=t}},{key:"createSliceResult",value:function(){var t=document.createElementNS("http://www.w3.org/2000/svg","path");t.setAttribute("class","pie-chart__svg-sliceresult"),t.setAttribute("aria-hidden","true"),t.setAttribute("stroke-width",this.options.pieChartOptions.strokeWidth),t.setAttribute("transform","translate("+this.options.pieChartOptions.strokeWidth/2+","+this.options.pieChartOptions.strokeWidth/2+")"),this.options.pieChartOptions.group.appendChild(t),this.options.pieChartOptions.sliceResult=t}},{key:"createText",value:function(){var t=parseFloat(this.options.pieChartOptions.size)/5,e=document.createElementNS("http://www.w3.org/2000/svg","text");e.setAttribute("x",this.options.pieChartOptions.size/2+t/7.5),e.setAttribute("y",this.options.pieChartOptions.size/2+t/3),e.setAttribute("class","pie-chart__svg-text"),e.setAttribute("aria-hidden","true"),e.setAttribute("font-size",t),e.textContent=this.options.pieChartOptions.value+" "+this.options.pieChartOptions.unit,this.options.pieChartOptions.group.appendChild(e),this.options.pieChartOptions.text=e}},{key:"createTextResult",value:function(){var t=parseFloat(this.options.pieChartOptions.size)/5,e=document.createElementNS("http://www.w3.org/2000/svg","text");e.setAttribute("x",this.options.pieChartOptions.size/2+t/7.5),e.setAttribute("y",this.options.pieChartOptions.size/2+t/3),e.setAttribute("class","pie-chart__svg-textresult"),e.setAttribute("aria-hidden","true"),e.setAttribute("font-size",t),e.textContent=this.options.pieChartOptions.value+" "+this.options.pieChartOptions.unit,this.options.pieChartOptions.group.appendChild(e),this.options.pieChartOptions.textResult=e}}
2,{key:"animate",value:function(){var t=this;if(this.options.pieChartOptions.showpie){this.setActiveSvg();var e=0;this.options.pieChartOptions.intervalsvg=setInterval((function(){var n=+(e/t.options.pieChartOptions.value).toFixed(2);(e+=n<.95?2-2*n:.05)>=+t.options.pieChartOptions.value&&(e=t.options.pieChartOptions.value,clearInterval(t.options.pieChartOptions.intervalsvg),t.setInactiveSvg()),t.setValue(e)}),30)}}},{key:"setValue",value:function(t){var e=t/100*360;360===e&&(e=359.99);var n=this.options.pieChartOptions.size/2-this.options.pieChartOptions.strokeWidth/2,i=this.describeArc(n,n,n,180,180+e);this.options.pieChartOptions.slice.setAttribute("d",i),this.options.pieChartOptions.text.textContent=Math.floor(t)+" "+this.options.pieChartOptions.unit}},{key:"setResult",value:function(){var t=this.options.pieChartOptions.value/100*360;360===t&&(t=359.99);var e=this.options.pieChartOptions.size/2-this.options.pieChartOptions.strokeWidth/2,n=this.describeArc(e,e,e,180,180+t);this.options.pieChartOptions.sliceResult.setAttribute("d",n),this.options.pieChartOptions.textResult.textContent=Math.floor(this.options.pieChartOptions.value)+" "+this.options.pieChartOptions.unit}},{key:"describeArc",value:function(t,e,n,i,o){var r=this.polarToCartesian(t,e,n,o),s=this.polarToCartesian(t,e,n,i),a=o-i<=180?"0":"1";return["M",r.x,r.y,"A",n,n,0,a,0,s.x,s.y].join(" ")}},{key:"polarToCartesian",value:function(t,e,n,i){var o=(i-90)*Math.PI/180;return{x:t+n*Math.cos(o),y:e+n*Math.sin(o)}}},{key:"setActiveSvg",value:function(){this.$piechartContainer.hasClass(this.options.classes.inactivesvg)&&(this.$piechartContainer.removeClass(this.options.classes.inactivesvg),this.$piechartContainer.addClass(this.options.classes.activesvg))}},{key:"setInactiveSvg",value:function(){this.$piechartContainer.hasClass(this.options.classes.activesvg)&&(this.$piechartContainer.removeClass(this.options.classes.activesvg),this.$piechartContainer.addClass(this.options.classes.inactivesvg))}},{key:"wrapperMouseOver",value:function(t){this.$piechartContainer.hasClass(this.options.classes.inactivesvg)||(clearInterval(this.options.pieChartOptions.intervalsvg),this.setValue(this.options.pieChartOptions.value),this.setInactiveSvg())}}])&&Ri(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),s}(O());function Wi(t){return Wi="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},Wi(t)}function zi(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,Qi(i.key),i)}}function Zi(t,e){return Zi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Zi(t,e)}function Ui(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Yi(t){return Yi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Yi(t)}function Qi(t){var e=function(t,e){if("object"!==Wi(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!==Wi(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Wi(e)?e:String(e)}const Ji=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Zi(t,e)}(s,t);var e,n,i,o,r=(i=s,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=Yi(i);if(o){var n=Yi(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===Wi(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Ui(t)}(this,t)});function s(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),function(t,e,n){(e=Qi(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}(Ui(e=r.call(this,t,{selectors:{},classes:{showFilter:"is-showFilter",hideFilter:"is-hideFilter",activeFilterItem:"is-active",showFilteredInfo:"is-filtered",showselectedFilter:"is-showselectedFilter",hideselectedFilter:"is-hideselectedFilter",notvisibleFilter:"is-notvisibleFilter",noentriesFilter:"is-noentriesFilter",checkInputAfterChange:"is-inputchange"},filterArea:[],selFilterButtons:[],filterZones:[],submitFilterButton:[],delFilterButton:[],selCheckboxes:[],dateFilterButtons:[],dateFilterInputs:[],activeFilterZone:"",buttonPlaceholderArea:"",resultfiltertextArea:[],filterSearchInput:"",filterlng:""})),"$el",E()(e.el)),e}return e=s,n=[{key:"events",get:function(){}},{key:"bindEvents",value:function(){var t=this;this.options.filterArea=document.querySelector('[data-js-item="js-filter-newsroom-event-area"]'),this.options.selFilterButtons=[].slice.call(this.options.filterArea.querySelectorAll('[data-js-item="js-filter-newsroom-event-select"]')),this.options.filterZones=[].slice.call(this.options.filterArea.querySelectorAll('[data-js-item="js-filter-newsroom-event-zone"]')),this.options.selFilterButtons.forEach((function(e){e.addEventListener("click",(function(){t.toogleFilter(e)}))})),document.addEventListener("click",(function(e){var n=e.target;0==t.checkClickPosition(n)&&t.closeFilterZones()})),document.addEventListener("keydown",(function(e){27===(e.which||e.keyCode)&&t.closeFilterZones()})),this.options.selCheckboxes=[].slice.call(this.options.filterArea.querySelectorAll('[data-js-item="js-filter-newsroom-event-checkbox"]')),this.options.selCheckboxes.length>
20&&(this.options.selCheckboxes.forEach((function(e){e.addEventListener("keydown",(function(n){if(13===(n.which||n.keyCode)){e.checked?e.checked=!1:e.checked=!0;var i=E()(e).closest('[data-js-item="js-filter-newsroom-event-zone"]');t.resetCheckboxesOnClick(i[0],e)}}))})),this.options.selCheckboxes.forEach((function(e){e.addEventListener("change",(function(n){if(e.checked){var i=E()(e).closest('[data-js-item="js-filter-newsroom-event-zone"]');t.resetCheckboxesOnClick(i[0],e)}}))}))),this.options.submitFilterButton=[].slice.call(this.options.filterArea.querySelectorAll('[data-js-item="js-filter-newsroom-event-submitButton"]')),this.options.submitFilterButton.length>0&&this.options.submitFilterButton.forEach((function(e){e.addEventListener("click",(function(n){var i=E()(e).closest('[data-js-item="js-filter-newsroom-event-zone"]');t.checkFilterItems(i[0])&&t.reloadEventList()}))})),this.options.delFilterButton=document.querySelector('[data-js-item="js-filter-newsroom-event-filterDeleteButton"]'),this.options.delFilterButton.addEventListener("click",(function(e){t.resetAllAktivFilterItems(),t.manageActiveFilterAreaView(),t.closeFilterZones(),t.reloadEventList()})),this.options.dateFilterButtons=[].slice.call(this.options.filterArea.querySelector('[data-js-filtertyp="period"]').querySelectorAll('[data-js-item="js-filter-newsroom-event-filterButton"]')),this.options.dateFilterButtons.length>0&&this.options.dateFilterButtons.forEach((function(e){e.addEventListener("click",(function(n){t.generateAndFillDates(e)}))})),this.options.dateFilterInputs=[].slice.call(this.options.filterArea.querySelector('[data-js-filtertyp="period"]').querySelectorAll('[data-js-item="js-form-datepicker"]')),2==this.options.dateFilterInputs.length&&this.options.dateFilterInputs.forEach((function(e){e.addEventListener("input",(function(n){var i=E()(e).closest('[data-js-item="js-filter-newsroom-event-zone"]')[0].querySelector('[data-js-item="js-filter-newsroom-event-errortext"]');t.hideElement(i),t.options.dateFilterButtons.forEach((function(e){t.setInactive(e)}))})),e.addEventListener("click",(function(t){var n=e.offsetTop;E()(e).closest('[data-js-item="js-filter-newsroom-event-zonecontent-scroll"]')[0].scrollTop=n})),e.addEventListener("blur",(function(n){var i=E()(e).closest('[data-js-item="js-filter-newsroom-event-zone"]'),o="DE";i[0].hasAttribute("data-js-lng")&&(o=i[0].getAttribute("data-js-lng")),t.checkDateForFilterButton(t.o
2ptions.dateFilterInputs[0].value,t.options.dateFilterInputs[1].value,o)}))})),this.options.activeFilterZone=document.querySelector('[data-js-item="js-filter-newsroom-event-activeFilterZone"]'),this.options.buttonPlaceholderArea=document.querySelector('[data-js-item="js-filter-newsroom-event-buttonPlaceholder"]'),this.options.filterSearchInput=document.querySelector('[data-js-item="js-filter-newsroom-event-filtersearchinput"]')}},{key:"didMount",value:function(){}},{key:"render",value:function(){return this}},{key:"resetCheckboxesOnClick",value:function(t,e){if(e.id.indexOf("_all")>=0)[].slice.call(t.querySelectorAll("input[type=checkbox]")).forEach((function(t){e.id!=t.id&&E()(t).prop("checked")&&E()(t).prop("checked",!1)}));else if(t.hasAttribute("data-js-id")){var n=t.getAttribute("data-js-id")+"_all",i=document.getElementById(n);null!==i&&E()(i).prop("checked")&&E()(i).prop("checked",!1)}}},{key:"checkClickPosition",value:function(t){var e=0;return this.options.filterArea.contains(t)&&(-1==this.options.selFilterButtons.indexOf(t)?this.options.filterZones.forEach((function(n){n.contains(t)&&e++})):e++),e}},{key:"toogleFilter",value:function(t){var e=E()(t).closest('[data-js-item="js-filter-newsroom-event-zone"]');e.hasClass(this.options.classes.showFilter)?(e.removeClass(this.options.classes.showFilter),e.addClass(this.options.classes.hideFilter),this.setAriaExpanded(t,!1)):(this.closeFilterZones(),e.removeClass(this.options.classes.hideFilter),e.addClass(this.options.classes.showFilter),e[0].hasAttribute("data-js-lng")&&""==this.options.filterlng&&(this.options.filterlng=e[0].getAttribute("data-js-lng")),this.setAriaExpanded(t,!0))}},{key:"hideElement",value:function(t){var e=E()(t);e.hasClass(this.options.classes.hideFilter)||(e.hasClass(this.options.classes.showFilter)?(e.removeClass(this.options.classes.showFilter),e.addClass(this.options.classes.hideFilter)):e.addClass(this.options.classes.hideFilter))}},{key:"showElement",value:function(t){var e=E()(t);e.hasClass(this.options.classes.showFilter)||(e.hasClass(this.options.classes.hideFilter)?(e.removeClass(this.options.classes.hideFilter),e.addClass(this.options.classes.showFilter)):e.addClass(this.options.classes.showFilter))}},{key:"setActive",value:function(t){var e=E()(t);e.hasClass(this.options.classes.activeFilterItem)||e.addClass(this.options.classes.activeFilterItem)}},{key:"setInactive",value:function(t){var e=E()(t);e.hasClass(this.options.classes.activeFilterItem)&&e.removeClass(this.options.classes.activeFilterItem)}},{key:"closeFilterZones",value:function(){var t=this;this.options.filterZones.forEach((function(e){var n=E()(e);if(n.hasClass(t.options.classes.showFilter)){n.removeClass(t.options.classes.showFilter),n.addClass(t.options.classes.hideFilter);var i=e.querySelector('[data-js-item="js-filter-newsroom-event-select"]');t.setAriaExpanded(i,!1),t.unfillFilterItems(e),t.fillFilterItems(e)}}))}},{key:"setAriaExpanded",value:function(t,e){t.setAttribute("aria-expanded",e)}},{key:"unfillFilterItems",value:function(t){if(t.hasAttribute("data-js-filtertyp")&&t.hasAttribute("data-js-id"))switch(t.getAttribute("data-js-filtertyp").toUpperCase()){case"ONECHECKBOX":[].slice.call(t.querySelectorAll("input[type=checkbox]:checked")).forEach((function(t){E()(t).prop("checked",!1)}));break;case"PERIOD":this.unfillDateItems(t)}}},{key:"fillFilterItems",value:function(t){var e=this;if(t.hasAttribute("data-js-filtertyp")&&t.hasAttribute("data-js-id")){var n=t.getAttribute("data-js-filtertyp"),i=t.getAttribute("data-js-id"),o=this.getActiveFilterItems(i);switch(n.toUpperCase()){case"ONECHECKBOX":if(o.length>0)o.forEach((function(e){var n=t.querySelector("input[id="+e.getAttribute("data-js-itemId")+"]");E()(n).prop("checked",!0)}));else{var r=t.querySelector("input[id="+i+"_all]");E()(r).prop("checked",!0)}break;case"PERIOD":o.length>0&&o.forEach((function(n){if(n.hasAttribute("data-js-itemId")){var o=n.getAttribute("data-js-itemId");if(o.indexOf("__")&&2==(o=o.split("__")).length){var r="",s="";o.forEach((function(e){var o=t.querySelector('input[id="'+e+'"]'),a=n.querySelector('span[data-js-itemId="'+e+'"]');o.value=a.innerHTML,e==i+"_1"?r=a.innerHTML:s=a.innerHTML}));var a="DE";t.hasAttribute("data-js-lng")&&(a=t.getAttribute("data-js-lng")),e.checkDateForFilterButton(r,s,a)}}}
2)),this.options.dateFilterInputs.forEach((function(t){var n=E()(t);n.hasClass(e.options.classes.checkInputAfterChange)||n.addClass(e.options.classes.checkInputAfterChange)}))}}}},{key:"checkDateForFilterButton",value:function(t,e,n){var i=this,o=new Date,r=!1;if(null!==(t=this.getDateElement(t,n.toUpperCase())))if(t.getFullYear()===o.getFullYear()&&t.getMonth()===o.getMonth()&&t.getDate()===o.getDate())if(null!==(e=this.getDateElement(e,n.toUpperCase()))){var s=this.checkDaysBetweenDates(t,e);s>=0&&this.options.dateFilterButtons.length>0?this.options.dateFilterButtons.forEach((function(t){t.hasAttribute("data-js-info")&&t.getAttribute("data-js-info")==s?i.setActive(t):i.setInactive(t)})):r=!0}else r=!0;else r=!0;else r=!0;r&&this.options.dateFilterButtons.forEach((function(t){i.setInactive(t)}))}},{key:"checkFilterItems",value:function(t){var e=!1;if(t.hasAttribute("data-js-filtertyp"))switch(t.getAttribute("data-js-filtertyp").toUpperCase()){case"ONECHECKBOX":e=this.checkCheckboxItems(t),this.manageActiveFilterAreaView(),this.closeFilterZones();break;case"PERIOD":if(t.hasAttribute("data-js-id")){var n=t.getAttribute("data-js-id"),i=this.getActiveFilterItems(n);if(this.checkDateItems(t)&&(this.manageActiveFilterAreaView(),this.closeFilterZones(),e=!0,!i.length>0)){var o=t.querySelector('input[id="'+n+'_1"]').value,r=t.querySelector('input[id="'+n+'_2"]').value;""===o&&""===r&&(e=!1)}}}return e}},{key:"checkCheckboxItems",value:function(t){var e=this,n=!1;if(t.hasAttribute("data-js-id")){n=!0;var i=[].slice.call(t.querySelectorAll("input[type=checkbox]:checked")),o=t.getAttribute("data-js-id"),r=o+"_all",s=this.getActiveFilterItems(o);if(0==i.length||1==i.length&&i[0].id==r)E()(t.querySelector("[id="+r+"]")).prop("checked",!0),s.length>0?this.deleteAktivFilterItems(s):n=!1;else{var a=i.reverse();this.deleteAktivFilterItems(s),a.forEach((function(t){var n=e.options.activeFilterZone.innerHTML,i=e.options.buttonPlaceholderArea.querySelector('[data-js-item="js-filter-newsroom-event-oneFilterButton"]');i.setAttribute("data-js-itemId",t.id),i.setAttribute("data-js-zoneId",o);var r=t.parentNode.querySelector("label[for="+t.id+"]").innerHTML;i.innerHTML=r,e.options.activeFilterZone.innerHTML=e.options.buttonPlaceholderArea.innerHTML+n}))}}return n}},{key:"checkDateItems",value:function(t){var e=!0,n=t.querySelector('[data-js-item="js-filter-newsroom-event-errortext"]');if(t.hasAttribute("data-js-id")){var i=t.getAttribute("data-js-id"),o=this.getActiveFilterItems(i),r=t.querySelector('input[id="'+i+'_1"]'),s=t.querySelector('input[id="'+i+'_2"]');if(null!==r&&null!==s){var a=r.value,l=s.value;if(""!=a&&""!=l){var c="DE";if(t.hasAttribute("data-js-lng")&&(c="EN"==(c=t.getAttribute("data-js-lng")).toUpperCase()?"EN":"DE"),this.checkDate(a,c)&&this.checkDate(l,c)){var u=this.getDateElement(a,c),p=this.getDateElement(l,c);if(null!==u&&null!==p)if(this.checkDaysBetweenDates(u,p)>=0){o.length>0&&this.deleteAktivFilterItems(o);var f=this.options.activeFilterZone.innerHTML,d=this.options.buttonPlaceholderArea.querySelector('[data-js-item="js-filter-newsroom-event-oneFilterButton"]');d.setAttribute("data-js-itemId",i+"_1__"+i+"_2"),d.setAttribute("data-js-zoneId",i);var h='<span data-js-itemId="'+i+'_1">'+a+'</span> - <span data-js-itemId="'+i+'_2">'+l+"</span>";d.innerHTML=h,this.options.activeFilterZone.innerHTML=this.options.buttonPlaceholderArea.innerHTML+f,e=!0}else e=!1;else e=!1}else e=!1}else""===a&&""===l?(e=!0,o.length>0&&this.deleteAktivFilterItems(o)):e=!1;e||this.showElement(n)}}return e}},{key:"unfillDateItems",value:function(t){var e=this;[].slice.call(t.querySelectorAll("input[type=text]")).forEach((function(t){t.value=""})),this.options.dateFilterButtons.length>0&&this.options.dateFilterButtons.forEach((function(t){e.setInactive(t)}));var n=t.querySelector('[data-js-item="js-filter-newsroom-event-errortext"]');this.hideElement(n)}},{key:"deleteAktivFilterItems",value:function(t){t.length>0&&t.forEach((function(t){E()(t).remove()}))}},{key:"getActiveFilterItems",value:function(t){return"all"==(t=void 0!==t?t:"all")?[].slice.call(this.options.activeFilterZone.querySelectorAll('[data-js-item="js-filter-newsroom-event-oneFilterButton"]')):[].slice.call(this.options.activeFilterZone.querySelectorAll("[data-js-zoneId="+t+"]"))}},{key:"resetAllAktivFilterItems",value:function(){var t=this,e=[].slice.call(this.options.activeFilterZone.querySelectorAll('[data-js-item="js-filter-newsroom-event-oneFilterButton"]'));
2this.deleteAktivFilterItems(e),this.options.filterZones.forEach((function(e){t.unfillFilterItems(e),t.fillFilterItems(e)}))}},{key:"manageActiveFilterAreaView",value:function(){var t=this.getActiveFilterItems("all"),e=t.length,n=document.querySelector('[data-js-item="js-filter-newsroom-event-activeFilterArea"]');e>0?(E()(n).hasClass(this.options.classes.hideFilter)&&(E()(n).removeClass(this.options.classes.hideFilter),E()(n).addClass(this.options.classes.showFilter),this.setAriaExpanded(n,!0)),this.addClickHandler(t)):E()(n).hasClass(this.options.classes.showFilter)&&(E()(n).removeClass(this.options.classes.showFilter),E()(n).addClass(this.options.classes.hideFilter),this.setAriaExpanded(n,!1))}},{key:"addClickHandler",value:function(t){var e=this;t.length>0&&t.forEach((function(t){t.addEventListener("click",(function(n){var i=[];i.push(t),e.deleteAktivFilterItems(i),e.unfillOneFilterItem(t),e.manageActiveFilterAreaView(),e.reloadEventList()}))}))}},{key:"unfillOneFilterItem",value:function(t){if(t.hasAttribute("data-js-itemId")&&t.hasAttribute("data-js-zoneId")){var e=t.getAttribute("data-js-itemId"),n=t.getAttribute("data-js-zoneId"),i=this.options.filterArea.querySelector('[data-js-id="'+n+'"]');if(i.hasAttribute("data-js-filtertyp"))switch(i.getAttribute("data-js-filtertyp").toUpperCase()){case"ONECHECKBOX":var o=i.querySelector("[id="+e+"]");if(E()(o).prop("checked",!1),0==[].slice.call(i.querySelectorAll("input[type=checkbox]:checked")).length){var r=n+"_all";E()(i.querySelector("[id="+r+"]")).prop("checked",!0)}break;case"PERIOD":this.unfillDateItems(i)}}}},{key:"generateAndFillDates",value:function(t){var e=this;if(t.hasAttribute("data-js-type")&&t.hasAttribute("data-js-info")){var n=t.getAttribute("data-js-type"),i=t.getAttribute("data-js-info"),o=E()(t).closest('[data-js-item="js-filter-newsroom-event-zone"]');if("PERIOD"==n.toUpperCase()&&!isNaN(i)&&o[0].hasAttribute("data-js-id")){var r=o[0].getAttribute("data-js-id"),s=o[0].querySelector('input[id="'+r+'_1"]'),a=o[0].querySelector('input[id="'+r+'_2"]'),l=o[0].querySelector('[data-js-item="js-filter-newsroom-event-errortext"]');if(this.hideElement(l),E()(t).hasClass(this.options.classes.activeFilterItem))this.unfillDateItems(o[0]);else{this.options.dateFilterButtons.length>0&&this.options.dateFilterButtons.forEach((function(t){e.setInactive(t)}));var c=new Date,u="DE";o[0].hasAttribute("data-js-lng")&&(u=o[0].getAttribute("data-js-lng").toUpperCase());var p=this.createDate(c,u),f=isNaN(parseInt(i))?0:parseInt(i),d=new Date((new Date).getTime()+24*f*60*60*1e3),h=this.createDate(d,u);this.checkDaysBetweenDates(c,d)>=0?null!==s&&null!==a&&(s.value=p,a.value=h,this.setActive(t)):this.showElement(l)}this.options.dateFilterInputs.forEach((function(t){var n=E()(t);n.hasClass(e.options.classes.checkInputAfterChange)||n.addClass(e.options.classes.checkInputAfterChange)}))}}}},{key:"checkDaysBetweenDates",value:function(t,e){return(this.treatAsUTC(e)-this.treatAsUTC(t))/864e5}},{key:"treatAsUTC",value:function(t){var e=new Date(t);return e.setMinutes(e.getMinutes()-e.getTimezoneOffset()),e}},{key:"getDateElement",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=null;if(t){t=t.toString();var r=this.getDateDelimiter(e);if(3==(t=t.split(r)).length&&(t[0]=parseInt(t[0],10),t[1]=parseInt(t[1],10)-1,2==t[2].length&&(t[2]="20"+t[2]),4==t[2].length&&(o=new Date(t[2],t[1],t[0]),n))){var s=String(t[1]+1);1==s.length&&(s="0"+s);var a=String(t[0]);1==a.length&&(a="0"+a),o=i?t[2]+"-"+s+"-"+a+"T23:59:59Z":t[2]+"-"+s+"-"+a+"T00:00:00Z"}}return o}},{key:"checkDate",value:function(t,e){if(!t)return!1;t=t.toString();var n=this.getDateDelimiter(e);if(3!=(t=t.split(n)).length)return!1;if(t[0]=parseInt(t[0],10),t[1]=parseInt(t[1],10)-1,2==t[2].length&&(t[2]="20"+t[2]),4!=t[2].length)return!1;var i=new Date(t[2],t[1],t[0]);return i.getDate()==t[0]&&i.getMonth()==t[1]&&i.getFullYear()==t[2]}},{key:"getDateDelimiter",value:function(t){return"EN"===t.toUpperCase()?"/":"."}},{key:"createDate",value:function(t,e){null==e&&(e="DE");var n=this.getDateDelimiter(e);return e.toUpperCase(),t.getDate()+n+(t.getMonth()+1)+n+t.getFullYear()}},{key:"reloadEventList",value:function(){for(var t="",e=0,n=this.options.filterArea.querySelector('[data-js-id="fl_1"]'),i=[].slice.call(n.querySelectorAll('[data-js-item="js-filter-newsroom-event-checkbox"]')),o=i.length,r=[],s=0;s<o;s++)!0===i[s].checked&&"1_all"!=i[s].value&&r.push(i[s].value);r.length>0&&(t+=this.createTopicsStringV3(r,t),e++);var a=this.options.dateFilterInputs;if(2==a.length){var l=a[0].value,c=a[1].value,u="DE";if(""!=this.options.filterlng&&(u=this.options.filterlng),""!=l&&""!=c){var p=this.getDateElement(l,u.toUpperCase(),!0,!1),f=this.getDateElement(c,u.toUpperCase(),!0,!0);e>0&&(t+=","),t=this.createEventFilterStringV3(t,p,f),e++}}var d=this.options.filterArea.querySelector('[data-js-id="fl_3"]'),h=[].slice.call(d.querySelectorAll('[data-js-item="js-filter-newsroom-event-checkbox"]')),m=h.length,v=[];for(s=0;s<m;s++)!0===h[s].checked&&"3_all"!=h[s].value&&v.push(h[s].value);v.length>0&&(e>0&&(t+=","),t=this.createLocationFacilityStringV3(v,t),e++),e>1&&(t='{"$and":['+t+"]}"),this.options.filterSearchInput.value!=t&&(this.options.filterSearchInput.value=t,this.options.filterSearchInput.dispatchEvent(new CustomEvent("change")))}},{key:"createEventFilterString",value:function(t,e,n){return t+='{ "$or": [',t+='{"$and":[',t+='{"date_start":{"$gte":{"$date":"'+e+'"}}}',t+=',{"date_start":{"$lte":{"$date":"'+n+'"}}}',t+="]}",t+=',{"$and":[',t+='{"date_end":{"$lte":{"$date":"'+n+'"}}}',t+=',{"date_end":{"$gte":{"$date":"'+e+'"}}}',t+="]}",t+=',{"$and":[',t+='{"date_start":{"$lt":{"$date":"'+e+'"}}}',t+=',{"date_end":{"$gt":{"$date":"'+n+'"}}}',(t+="]}")+"]}"}},{key:"createEventFilterStringV3",value:function(t,e,n){return t+='{ "$or": [',t+='{"$and":[',t+='{"formData.tt_date.value":{"$gte": "'+e+'"}}',t+=',{"formData.tt_date.value":{"$lte": "'+n+'"}}',t+="]}",t+=',{"$and":[',t+='{"formData.tt_end_date.value":{"$lte": "'+n+'"}}',t+=',{"formData.tt_end_date.value":{"$gte": "'+e+'"}}',t+="]}",t+=',{"$and":[',t+='{"formData.tt_date.value":{"$lt":"'+e+'"}}',t+=',{"formData.tt_end_date.value":{"$gt": "'+n+'"}}',(t+="]}")+"]}"}},{key:"createTopicsString",value:function(t,e){if(1==t.length)e+='{"topics":"'+t[0]+'"}';else{e+=' { "$or": [';for(var n=0;n<t.length;n++)n>0&&(e+=","),e+='{"topics":"'+t[n]+'"}';e+="]}"}return e}},{key:"createTopicsStringV3",value:function(t,e){var n=this.mapCheckThemeItem(t);if(0===n.length)return e;if(1==n.length)e+='{"formData.tt_topics.value": { $elemMatch: { "value.target.identifier": "'+n[0]+'"}}}';else{e+=' { "$or": [';for(var i=0;i<n.length;i++)i>0&&(e+=","),e+='{"formData.tt_topics.value": { $elemMatch: { "value.target.identifier":  "'+n[i]+'"}}}';e+="]}"}return e}},{key:"createLocationFacilityString",value:function(t,e){if(1==t.length)e+='{"locationFacility":"'+t[0]+'"}';else{e+=' { "$or": [';for(var n=0;n<t.length;n++)n>0&&(e+=","),e+='{"locationFacility":"'+t[n]+'"}';e+="]}"}return e}},{key:"createLocationFacilityStringV3",value:function(t,e){if(1==t.length)e+='{"formData.tt_location_facility.value": { $elemMatch : { identifier : "'+t[0]+'"}}}';else{e+=' { "$or": [';for(var n=0;n<t.length;n++)n>0&&(e+=","),e+='{"formData.tt_location_facility.value": { $elemMatch : { identifier : "'+t[n]+'"}}}';e+="]}"}return e}},{key:"mapCheckThemeItem",value:function(t){var e=[];return t.map((function(t){if(t)return t.split(",").map((function(t){return e.push(t)}))})),e}}],n&&zi(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),s}(O());function Ki(t){return Ki="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},Ki(t)}function Xi(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,no(i.key),i)}}
2function Gi(t,e){return Gi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Gi(t,e)}function to(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function eo(t){return eo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},eo(t)}function no(t){var e=function(t,e){if("object"!==Ki(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!==Ki(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Ki(e)?e:String(e)}const io=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Gi(t,e)}(s,t);var e,n,i,o,r=(i=s,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=eo(i);if(o){var n=eo(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===Ki(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return to(t)}(this,t)});function s(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),function(t,e,n){(e=no(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}(to(e=r.call(this,t,{selectors:{},classes:{showFilter:"is-showFilter",hideFilter:"is-hideFilter",activeFilterItem:"is-active",showFilteredInfo:"is-filtered",showselectedFilter:"is-showselectedFilter",hideselectedFilter:"is-hideselectedFilter",notvisibleFilter:"is-notvisibleFilter",noentriesFilter:"is-noentriesFilter",checkInputAfterChange:"is-inputchange"},filterArea:[],selFilterButtons:[],filterZones:[],submitFilterButton:[],delFilterButton:[],selCheckboxes:[],activeFilterZone:"",buttonPlaceholderArea:"",resultfiltertextArea:[]})),"$el",E()(e.el)),e}return e=s,(n=[{key:"events",get:function(){}},{key:"bindEvents",value:function(){var t=this;this.options.filterArea=document.querySelector('[data-js-item="js-filter-degree-programs-area"]'),this.options.selFilterButtons=[].slice.call(this.options.filterArea.querySelectorAll('[data-js-item="js-filter-degree-programs-select"]')),this.options.filterZones=[].slice.call(this.options.filterArea.querySelectorAll('[data-js-item="js-filter-degree-programs-zone"]')),this.options.selFilterButtons.forEach((function(e){e.addEventListener("click",(function(){t.toogleFilter(e)}))})),document.addEventListener("click",(function(e){var n=e.target;0==t.checkClickPosition(n)&&t.closeFilterZones()})),document.addEventListener("keydown",(function(e){27===(e.which||e.keyCode)&&t.closeFilterZones()})),this.options.selCheckboxes=[].slice.call(this.options.filterArea.querySelectorAll('[data-js-item="js-filter-degree-programs-checkbox"]')),this.options.selCheckboxes.length>0&&(this.options.selCheckboxes.forEach((function(e){e.addEventListener("keydown",(function(n){if(13===(n.which||n.keyCode)){e.checked?e.checked=!1:e.checked=!0;var i=E()(e).closest('[data-js-item="js-filter-degree-programs-zone"]');t.resetCheckboxesOnClick(i[0],e)}}))})),this.options.selCheckboxes.forEach((function(e){e.addEventListener("change",(function(n){if(e.checked){var i=E()(e).closest('[data-js-item="js-filter-degree-programs-zone"]');t.resetCheckboxesOnClick(i[0],e)}}))}))),this.options.submitFilterButton=[].slice.call(this.options.filterArea.querySelectorAll('[data-js-item="js-filter-degree-programs-submitButton"]')),this.options.submitFilterButton.length>0&&this.options.submitFilterButton.forEach((function(e){e.addEventListener("click",(function(n){var i=E()(e).closest('[data-js-item="js-filter-degree-programs-zone"]');t.checkFilterItems(i[0])&&t.reloadEventList()}))})),this.options.delFilterButton=document.querySelector('[data-js-item="js-filter-degree-programs-filterDeleteButton"]'),this.options.delFilterButton.addEventListener("click",(function(e){t.resetAllAktivFilterItems(),t.manageActiveFilterAreaView(),t.closeFilterZones(),t.reloadEventList()})),this.options.activeFilterZone=document.querySelector('[data-js-item="js-filter-degree-programs-activeFilterZone"]'),this.options.buttonPlaceholderArea=document.querySelector('[data-js-item="js-filter-degree-programs-buttonPlaceholder"]')}},{key:"didMount",value:function(){}},{key:"render",value:function(){return this}},{key:"resetCheckboxesOnClick",value:function(t,e){if(e.id.indexOf("_all")>=0)[].slice.call(t.querySelectorAll("input[type=checkbox]")).forEac
2h((function(t){e.id!=t.id&&E()(t).prop("checked")&&E()(t).prop("checked",!1)}));else if(t.hasAttribute("data-js-id")){var n=t.getAttribute("data-js-id")+"_all",i=document.getElementById(n);null!==i&&E()(i).prop("checked")&&E()(i).prop("checked",!1)}}},{key:"checkClickPosition",value:function(t){var e=0;return this.options.filterArea.contains(t)&&(-1==this.options.selFilterButtons.indexOf(t)?this.options.filterZones.forEach((function(n){n.contains(t)&&e++})):e++),e}},{key:"toogleFilter",value:function(t){var e=E()(t).closest('[data-js-item="js-filter-degree-programs-zone"]');e.hasClass(this.options.classes.showFilter)?(e.removeClass(this.options.classes.showFilter),e.addClass(this.options.classes.hideFilter),this.setAriaExpanded(t,!1)):(this.closeFilterZones(),e.removeClass(this.options.classes.hideFilter),e.addClass(this.options.classes.showFilter),this.setAriaExpanded(t,!0))}},{key:"closeFilterZones",value:function(){var t=this;this.options.filterZones.forEach((function(e){var n=E()(e);if(n.hasClass(t.options.classes.showFilter)){n.removeClass(t.options.classes.showFilter),n.addClass(t.options.classes.hideFilter);var i=e.querySelector('[data-js-item="js-filter-degree-programs-select"]');t.setAriaExpanded(i,!1),t.unfillFilterItems(e),t.fillFilterItems(e)}}))}},{key:"setAriaExpanded",value:function(t,e){t.setAttribute("aria-expanded",e)}},{key:"unfillFilterItems",value:function(t){t.hasAttribute("data-js-filtertyp")&&t.hasAttribute("data-js-id")&&"ONECHECKBOX"===t.getAttribute("data-js-filtertyp").toUpperCase()&&[].slice.call(t.querySelectorAll("input[type=checkbox]:checked")).forEach((function(t){E()(t).prop("checked",!1)}))}},{key:"fillFilterItems",value:function(t){if(t.hasAttribute("data-js-filtertyp")&&t.hasAttribute("data-js-id")){var e=t.getAttribute("data-js-filtertyp"),n=t.getAttribute("data-js-id"),i=this.getActiveFilterItems(n);if("ONECHECKBOX"===e.toUpperCase())if(i.length>0)i.forEach((function(e){var n=t.querySelector("input[id="+e.getAttribute("data-js-itemId")+"]");E()(n).prop("checked",!0)}));else{var o=t.querySelector("input[id="+n+"_all]");E()(o).prop("checked",!0)}}}},{key:"checkFilterItems",value:function(t){var e=!1;return t.hasAttribute("data-js-filtertyp")&&"ONECHECKBOX"===t.getAttribute("data-js-filtertyp").toUpperCase()&&(e=this.checkCheckboxItems(t),this.manageActiveFilterAreaView(),this.closeFilterZones()),e}},{key:"checkCheckboxItems",value:function(t){var e=this,n=!1;if(t.hasAttribute("data-js-id")){n=!0;var i=[].slice.call(t.querySelectorAll("input[type=checkbox]:checked")),o=t.getAttribute("data-js-id"),r=o+"_all",s=this.getActiveFilterItems(o);if(0==i.length||1==i.length&&i[0].id==r)E()(t.querySelector("[id="+r+"]")).prop("checked",!0),s.length>0?this.deleteAktivFilterItems(s):n=!1;else{var a=i.reverse();this.deleteAktivFilterItems(s),a.forEach((function(t){var n=e.options.activeFilterZone.innerHTML,i=e.options.buttonPlaceholderArea.querySelector('[data-js-item="js-filter-degree-programs-oneFilterButton"]');i.setAttribute("data-js-itemId",t.id),i.setAttribute("data-js-zoneId",o);var r=t.parentNode.querySelector("label[for="+t.id+"]").innerHTML;i.innerHTML=r,e.options.activeFilterZone.innerHTML=e.options.buttonPlaceholderArea.innerHTML+n}))}}return n}},{key:"getActiveFilterItems",value:function(t){return"all"==(t=void 0!==t?t:"all")?[].slice.call(this.options.activeFilterZone.querySelectorAll('[data-js-item="js-filter-degree-programs-oneFilterButton"]')):[].slice.call(this.options.activeFilterZone.querySelectorAll("[data-js-zoneId="+t+"]"))}},{key:"deleteAktivFilterItems",value:function(t){t.length>0&&t.forEach((function(t){E()(t).remove()}))}},{key:"resetAllAktivFilterItems",value:function(){var t=this,e=[].slice.call(this.options.activeFilterZone.querySelectorAll('[data-js-item="js-filter-degree-programs-oneFilterButton"]'));this.deleteAktivFilterItems(e),this.options.filterZones.forEach((function(e){t.unfillFilterItems(e),t.fillFilterItems(e)}))}},{key:"manageActiveFilterAreaView",value:function(){var t=this.getActiveFilterItems("all"),e=t.length,n=document.querySelector('[data-js-item="js-filter-degree-programs-activeFilterArea"]'),i=document.querySelector('[data-js-item="js-filter-degree-programs-resultFilterText"]');e>0?(E()(n).hasClass(this.options.classes.hideFilter)&&(E()(n).removeClass(this.options.classes.hideFilter),E()(n).addClass(this.options.classes.showFilter),this.setAriaExpanded(n,!0),E()(i).addClass(this.options.classes.showFilteredInfo)),this.addClickHandler(t)):(E()(n).hasClass(this.options.classes.showFilter)&&(E()(n).removeClass(this.options.classes.showFilter),E()(n).addClass(this.options.classes.hideFilter),this.setAriaExpanded(n,!1)),E()(i).hasClass(this.options.classes.showFilteredInfo)&&E()(i).removeClass(this.options.classes.showFilteredInfo))}},{key:"addClickHandler",value:function(t){var e=this;t.length>0&&t.forEach((function(t){t.addEventListener("click",(function(n){var i=[];i.push(t),e.deleteAktivFilterItems(i),e.unfillOneFilterItem(t),e.manageActiveFilterAreaView(),e.reloadEventList()}))}))}},{key:"unfillOneFilterItem",value:function(t){if(t.hasAttribute("data-js-itemId")&&t.hasAttribute("data-js-zoneId")){var e=t.getAttribute("data-js-itemId"),n=t.getAttribute("data-js-zoneId"),i=this.options.filterArea.querySelector('[data-js-id="'+n+'"]');if(i.hasAttribute("data-js-filtertyp")&&"ONECHECKBOX"===i.getAttribute("data-js-filtertyp").toUpperCase()){var o=i.querySelector("[id="+e+"]");if(E()(o).prop("checked",!1),0==[].slice.call(i.querySelectorAll("input[type=checkbox]:checked")).length){var r=n+"_all";E()(i.querySelector("[id="+r+"]")).prop("checked",!0)}}}}},{key:"reloadEventList",value:function(){console.info("reload")}}])&&Xi(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),s}(O());var oo=n(8187);function ro(t){return ro="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},ro(t)}function so(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,uo(i.key),i)}}
2function ao(t,e){return ao=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ao(t,e)}function lo(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function co(t){return co=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},co(t)}function uo(t){var e=function(t,e){if("object"!==ro(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!==ro(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===ro(e)?e:String(e)}var po=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ao(t,e)}(s,t);var e,n,i,o,r=(i=s,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=co(i);if(o){var n=co(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===ro(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return lo(t)}(this,t)});function s(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),function(t,e,n){(e=uo(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}(lo(e=r.call(this,t,{selectors:{},classes:{},selVideoCompanyYouTube:[],selVideoCompanyVimeo:[],videoCompanies:["youtube","vimeo"]})),"$el",(0,oo.ZP)(e.el)),e}return e=s,n=[{key:"didMount",value:function(){console.log("Component VideoEmbeded mounted!");for(var t=document.cookie,e=0;e<this.options.videoCompanies.length;e++){var n=this.options.videoCompanies[e],i=n+"=true";if(t.includes(i)){var o="video-embeded_company_"+n,r="video-embeded__"+n,s=document.getElementsByClassName(o);if(s.length>0&&(0,oo.ZP)(s[0]).hasClass("video-embeded__hidden")){this.setDataSourceVideo(s);var a=document.getElementsByClassName(r);this.hideVideoInfo(a),this.showVideo(s)}}}}},{key:"render",value:function(){return this}},{key:"events",get:function(){}},{key:"bindEvents",value:function(){var t=this;this.options.selVideoCompanyYouTube=[].slice.call(this.el.querySelectorAll('[data-js-item="js-video-embeded-youtube"]')),this.options.selVideoCompanyVimeo=[].slice.call(this.el.querySelectorAll('[data-js-item="js-video-embeded-vimeo"]')),this.options.selVideoCompanyYouTube.forEach((function(e){e.addEventListener("click",(function(){t.jsShowVideoClick("youtube")}))})),this.options.selVideoCompanyVimeo.forEach((function(e){e.addEventListener("click",(function(){t.jsShowVideoClick("vimeo")}))}))}},{key:"jsShowVideoClick",value:function(t){var e="video-embeded__"+t,n="video-embeded_company_"+t,i=document.getElementsByClassName(n);this.setDataSourceVideo(i);var o=document.getElementsByClassName(e);this.hideVideoInfo(o),this.showVideo(i),document.cookie=t+"=true"}},{key:"setDataSourceVideo",value:function(t){for(var e=0;e<t.length;e++){var n=t[e].dataset.src;n=n.replace(/\\/g,""),t[e].innerHTML=n}}},{key:"hideVideoInfo",value:function(t){for(var e=0;e<t.length;e++){var n=t[e];(0,oo.ZP)(n).addClass("video-embeded__hidden")}}},{key:"showVideo",value:function(t){for(var e=0;e<t.length;e++){var n=t[e];(0,oo.ZP)(n).removeClass("video-embeded__hidden")}}}],n&&so(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),s}(O());const fo=po;function ho(t){return ho="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},ho(t)}function mo(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,go(i.key),i)}}
2function vo(t,e){return vo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},vo(t,e)}function yo(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function bo(t){return bo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},bo(t)}function go(t){var e=function(t,e){if("object"!==ho(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!==ho(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===ho(e)?e:String(e)}var wo=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&vo(t,e)}(s,t);var e,n,i,o,r=(i=s,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=bo(i);if(o){var n=bo(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===ho(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return yo(t)}(this,t)});function s(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),function(t,e,n){(e=go(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}(yo(e=r.call(this,t,{selectors:{jsShowInstagram:'[data-js-item="js-social-embed-instagram"]',jsShowTwitter:'[data-js-item="js-social-embed-twitter"]',jsShowFacebook:'[data-js-item="js-social-embed-facebook"]'},classes:{}})),"$el",E()(e.el)),e}return e=s,n=[{key:"didMount",value:function(){console.log("Component SocialEmbed mounted!");var t=document.cookie;if(t.includes("instagram=true")){E()(".c-social-embed__showinstagram").addClass("c-social-embed__hidden");for(var e=document.getElementsByClassName("c-social-embed__instagram-container"),n=0;n<e.length;n++)s=(s=e[n].dataset.src).replace(/\\/g,""),e[n].innerHTML=s;(i=document.createElement("script")).src="https://www.instagram.com/embed.js",i.type="text/javascript",document.body.parentNode.appendChild(i),setTimeout((function(){E()(".c-social-embed__instagram-container").removeClass("c-social-embed__hidden")}),400)}if(t.includes("twitter=true")){E()(".c-social-embed__showtwitter").addClass("c-social-embed__hidden");var i,o=document.getElementsByClassName("c-social-embed__twitter-container");for(n=0;n<o.length;n++)s=(s=o[n].dataset.src).replace(/\\/g,""),o[n].innerHTML=s,o[n].classList.remove("c-social-embed__hidden");(i=document.createElement("script")).src="https://platform.twitter.com/widgets.js",i.type="text/javascript",document.body.parentNode.appendChild(i),setTimeout((function(){E()(".c-social-embed__twitter-container").removeClass("c-social-embed__hidden")}),400)}if(t.includes("facebook=true")){E()(".c-social-embed__showfacebook").addClass("c-social-embed__hidden");var r=document.getElementsByClassName("c-social-embed__facebook-container");for(n=0;n<r.length;n++){var s;s=(s=r[n].dataset.src).replace(/\\/g,""),r[n].innerHTML=s}setTimeout((function(){E()(".c-social-embed__facebook-container").removeClass("c-social-embed__hidden")}),400)}}},{key:"render",value:function(){return this}},{key:"events",get:function(){return{"{{context.EVENTS.click}} {{this.options.selectors.jsShowInstagram}}":"jsShowInstagramClick","{{context.EVENTS.click}} {{this.options.selectors.jsShowTwitter}}":"jsShowTwitterClick","{{context.EVENTS.click}} {{this.options.selectors.jsShowFacebook}}":"jsShowFacebookClick"}}},{key:"jsShowInstagramClick",value:function(t){t.preventDefault(),E()(".c-social-embed__showinstagram").addClass("c-social-embed__hidden");for(var e=document.getElementsByClassName("c-social-embed__instagram-container"),n=0;n<e.length;n++){var i=e[n].dataset.src;i=i.replace(/\\/g,""),e[n].innerHTML=i}var o=document.createElement("script");return o.src="https://www.instagram.com/embed.js",o.type="text/javascript",document.body.parentNode.appendChild(o),setTimeout((function(){E()(".c-social-embed__instagram-container").removeClass("c-social-embed__hidden")}),400),document.cookie="instagram=true;",!0}},{key:"jsShowTwitterClick",value:function(t){t.preventDefault(),E()(".c-social-embed__showtwitter").addClass("c-social-embed__hidden");for(var e=document.getElementsByClassName("c-social-embed__twitter-container"),n=0;n<e.length;n++){var i=e[n].dataset.src;i=i.replace(/\\/g,""),e[n].innerHTML=i,e[n].classList.remove("c-social-embed__hidden")}var o=document.createElement("script");return o.src="https://platform.twitter.com/widgets.js",o.type="text/javascript",document.body.parentNode.appendChild(o),setTimeout((function(){E()(".c-social-embed__twitter-container").removeClass("c-social-embed__hidden")}),400),document.cookie="twitter=true;",!0}},{key:"jsShowFacebookClick",value:function(t){t.preventDefault(),E()(".c-social-embed__showfacebook").addClass("c-social-embed__hidden");for(var e=document.getElementsByClassName("c-social-embed__facebook-container"),n=0;n<e.length;n++){var i=e[n].dataset.src;i=i.replace(/\\/g,""),e[n].innerHTML=i}return setTimeout((function(){E()(".c-social-embed__facebook-container").removeClass("c-social-embed__hidden")}),400),document.cookie="facebook=true;",!0}}],n&&mo(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),s}(O());const _o=wo;function ko(t){return ko="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},ko(t)}function So(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,Oo(i.key),i)}}
2function jo(t,e){return jo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},jo(t,e)}function Eo(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Co(t){return Co=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Co(t)}function Oo(t){var e=function(t,e){if("object"!==ko(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!==ko(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===ko(e)?e:String(e)}var xo=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&jo(t,e)}(s,t);var e,n,i,o,r=(i=s,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=Co(i);if(o){var n=Co(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===ko(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Eo(t)}(this,t)});function s(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),function(t,e,n){(e=Oo(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}(Eo(e=r.call(this,t,{selectors:{jsShowGoogleMaps:'[data-js-item="js-div-embed-googlemaps"]',jsShowBayernAtlas:'[data-js-item="js-div-embed-bayernatlas"]',jsShowOpenStreetMap:'[data-js-item="js-div-embed-openstreetmap"]'},classes:{}})),"$el",E()(e.el)),e}return e=s,n=[{key:"didMount",value:function(){console.log("Component DivEmbed mounted!");var t=document.cookie;if(t.includes("googlemaps=true")){E()(".is-googlemaps-dsgvoinfo").addClass("div-embed__hidden");for(var e=document.getElementsByClassName("div-embed__googlemaps-container"),n=0;n<e.length;n++)(r=(r=e[n].dataset.src).replace(/\\/g,"")).includes("iframe")&&r.includes("src='https://www.google.com/maps/")&&(e[n].innerHTML=r);setTimeout((function(){E()(".div-embed__googlemaps-container").removeClass("div-embed__hidden")}),400)}if(t.includes("bayernatlas=true")){E()(".is-bayernatlas-dsgvoinfo").addClass("div-embed__hidden");var i=document.getElementsByClassName("div-embed__bayernatlas-container");for(n=0;n<i.length;n++)(r=(r=i[n].dataset.src).replace(/\\/g,"")).includes("iframe")&&r.includes("src='https://atlas.bayern.de/embed.html")&&(i[n].innerHTML=r);setTimeout((function(){E()(".div-embed__bayernatlas-container").removeClass("div-embed__hidden")}),400)}if(t.includes("openstreetmap=true")){E()(".is-openstreetmap-dsgvoinfo").addClass("div-embed__hidden");var o=document.getElementsByClassName("div-embed__openstreetmap-container");for(n=0;n<o.length;n++){var r;(r=(r=o[n].dataset.src).replace(/\\/g,"")).includes("iframe")&&r.includes("src='https://www.openstreetmap.org/export/embed")&&(o[n].innerHTML=r)}E()(".div-embed__openstreetmap-container").removeClass("div-embed__hidden")}}},{key:"render",value:function(){return this}},{key:"events",get:function(){return{"{{context.EVENTS.click}} {{this.options.selectors.jsShowGoogleMaps}}":"jsShowGoogleMapsClick","{{context.EVENTS.click}} {{this.options.selectors.jsShowBayernAtlas}}":"jsShowBayernAtlasClick","{{context.EVENTS.click}} {{this.options.selectors.jsShowOpenStreetMap}}":"jsShowOpenStreetMapClick"}}},{key:"jsShowGoogleMapsClick",value:function(t){t.preventDefault(),E()(".is-googlemaps-dsgvoinfo").addClass("div-embed__hidden");for(var e=document.getElementsByClassName("div-embed__googlemaps-container"),n=0;n<e.length;n++){var i=e[n].dataset.src;(i=i.replace(/\\/g,"")).includes("iframe")&&i.includes("src='https://www.google.com/maps/")?e[n].innerHTML=i:e[n].innerHTML=""}return setTimeout((function(){E()(".div-embed__googlemaps-container").removeClass("div-embed__hidden")}),400),document.cookie="googlemaps=true;",!0}},{key:"jsShowBayernAtlasClick",value:function(t){t.preventDefault(),E()(".is-bayernatlas-dsgvoinfo").addClass("div-embed__hidden");for(var e=document.getElementsByClassName("div-embed__bayernatlas-container"),n=0;n<e.length;n++){var i=e[n].dataset.src;(i=i.replace(/\\/g,"")).includes("iframe")&&i.includes("src='https://atlas.bayern.de/embed.html")?e[n].innerHTML=i:e[n].innerHTML=""}return setTimeout((function(){E()(".div-embed__bayernatlas-container").removeClass("div-embed__hidden")}),400),document.cookie="bayernatlas=true;",!0}},{key:"jsShowOpenStreetMapClick",value:function(t){t.preventDefault(),E()(".is-openstreetmap-dsgvoinfo").addClass("div-embed__hidden");for(var e=document.getElementsByClassName("div-embed__openstreetmap-container"),n=0;n<e.length;n++){var i=e[n].dataset.src;(i=i.replace(/\\/g,"")).includes("iframe")&&i.includes("src='https://www.openstreetmap.org/export/embed")?e[n].innerHTML=i:e[n].innerHTML=""}return E()(".div-embed__openstreetmap-container").removeClass("div-embed__hidden"),document.cookie="openstreetmap=true;",!0}}],n&&So(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),s}(O());const To=xo;function Po(t){return Po="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},Po(t)}function $o(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,Do(i.key),i)}}
2function Ao(t,e){return Ao=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ao(t,e)}function Lo(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Io(t){return Io=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Io(t)}function Do(t){var e=function(t,e){if("object"!==Po(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!==Po(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Po(e)?e:String(e)}const Fo=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ao(t,e)}(s,t);var e,n,i,o,r=(i=s,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=Io(i);if(o){var n=Io(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===Po(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Lo(t)}(this,t)});function s(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),function(t,e,n){(e=Do(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}(Lo(e=r.call(this,t,{selectors:{jsShowMore:'[data-js-item="js-show-more"]'},classes:{}})),"$el",E()(e.el)),e}return e=s,(n=[{key:"didMount",value:function(){console.log("Component ShowMore mounted!")}},{key:"render",value:function(){return this}},{key:"events",get:function(){return{"{{context.EVENTS.click}} {{this.options.selectors.jsShowMore}}":"jsShowMoreClick"}}},{key:"jsShowMoreClick",value:function(t){return E()("#showmore").removeClass("c-show-more__hidden"),E()("#showmorebutton").addClass("c-show-more__hidden"),!0}}])&&$o(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),s}(O());function Ro(t){return Ro="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},Ro(t)}function No(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,Ho(i.key),i)}}function Mo(t,e){return Mo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Mo(t,e)}function Bo(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function qo(t){return qo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},qo(t)}function Ho(t){var e=function(t,e){if("object"!==Ro(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!==Ro(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Ro(e)?e:String(e)}const Vo=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Mo(t,e)}(s,t);var e,n,i,o,r=(i=s,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=qo(i);if(o){var n=qo(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===Ro(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Bo(t)}(this,t)});function s(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),function(t,e,n){(e=Ho(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}(Bo(e=r.call(this,t,{selectors:{tabArea:'[data-js-item="js-tab-area-all"]'},classes:{activeTab:"is-active"},tabArea:[],tabAreaNav:[],tabAreaTab:[],tabAreaTabContent:[],tabAreaContentWrapper:[]})),"$el",E()(e.el)),e}return e=s,(n=[{key:"events",get:function(){}},{key:"subscribe",get:function(){return{"{{context.EVENTS.resize}}":"render"}}},{key:"bindEvents",value:function(){var t=this;this.options.tabArea=this.el.querySelector('[data-js-item="js-tab-area-all"]'),this.options.tabAreaNav=this.el.querySelector('[data-js-item="js-tab-area-nav"]'),this.options.tabAreaContentWrapper=this.el.querySelector('[data-js-item="js-tab-area-contentwrapper"]'),this.options.tabAreaTab=[].slice.call(this.el.querySelectorAll('[data-js-item="js-tab-area-tab"]')),this.options.tabAreaTabContent=[].slice.call(this.el.querySelectorAll('[data-js-item="js-tab-area-content"]')),this.options.tabAreaTab.forEach((function(e){e.addEventListener("click",(function(){t.changeTabs(e)}))}))}},{key:"unbindEvents",value:function(){}},{key:"didMount",value:function(){var t=this;console.log("Component TabArea mounted!"),setTimeout((function(){t.getTabContentAreaHeight()}),3500)}},{key:"render",value:function(){var t=this;setTimeout((function(){t.getTabContentAreaHeight()}),500)}},{key:"changeTabs",value:function(t){this.deactivateActiveTabClass(),this.deactivateAriaSelectedNav(),this.deactivateActiveTabContent(),t.setAttribute("aria-selected",!0);var e=E()(t);if(e.hasClass(this.options.classes.activeTab)||e.addClass(this.options.classes.activeTab),t.hasAttribute("data-js-id")){var n=t.getAttribute("data-js-id");this.activateActiveTabContent(n)}}},{key:"deactivateActiveTabClass",value:function(){var t=this;this.options.tabAreaTab.length>0&&this.options.tabAreaTab.forEach((function(e){var n=E()(e);
2n.hasClass(t.options.classes.activeTab)&&n.removeClass(t.options.classes.activeTab)}))}},{key:"deactivateAriaSelectedNav",value:function(){this.options.tabAreaNav.querySelector('[aria-selected="true"]').setAttribute("aria-selected",!1)}},{key:"deactivateActiveTabContent",value:function(){var t=this;this.options.tabAreaTabContent.length>0&&this.options.tabAreaTabContent.forEach((function(e){e.setAttribute("aria-hidden",!0);var n=E()(e);n.hasClass(t.options.classes.activeTab)&&n.removeClass(t.options.classes.activeTab)}))}},{key:"activateActiveTabContent",value:function(t){var e=this;this.options.tabAreaTabContent.length>0&&this.options.tabAreaTabContent.forEach((function(n){var i=E()(n);n.hasAttribute("data-js-id")&&n.getAttribute("data-js-id")==t&&(e.options.tabAreaContentWrapper.style.height=i.outerHeight()+"px",n.setAttribute("aria-hidden",!1),i.hasClass(e.options.classes.activeTab)||i.addClass(e.options.classes.activeTab))}))}},{key:"getTabContentAreaHeight",value:function(){var t=this.options.tabAreaContentWrapper.querySelector('[aria-hidden="false"]'),e=E()(t);this.options.tabAreaContentWrapper.style.height=e.outerHeight()+"px"}}])&&No(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),s}(O());function Wo(t){return Wo="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},Wo(t)}function zo(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,(void 0,o=function(t,e){if("object"!==Wo(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!==Wo(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(i.key),"symbol"===Wo(o)?o:String(o)),i)}var o}function Zo(t,e){return Zo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Zo(t,e)}function Uo(t){return Uo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Uo(t)}const Yo=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Zo(t,e)}(s,t);var e,n,i,o,r=(i=s,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=Uo(i);if(o){var n=Uo(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===Wo(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)}(this,t)});function s(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),r.call(this,t,{selectors:{},classes:{}})}return e=s,(n=[{key:"didMount",value:function(){console.log("Component WorkspaceNews mounted!")}},{key:"render",value:function(){return this}}])&&zo(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),s}(O());function Qo(t){return Qo="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},Qo(t)}function Jo(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,er(i.key),i)}}function Ko(t,e){return Ko=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ko(t,e)}function Xo(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}
2function Go(t){return Go=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Go(t)}function tr(t,e,n){return(e=er(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function er(t){var e=function(t,e){if("object"!==Qo(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!==Qo(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Qo(e)?e:String(e)}var nr=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ko(t,e)}(s,t);var e,n,i,o,r=(i=s,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=Go(i);if(o){var n=Go(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===Qo(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Xo(t)}(this,t)});function s(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),tr(Xo(e=r.call(this,t,{selectors:{togglePopover:'[data-js-item="toggle-popover"]',deleteItem:'[data-js-item="delete-item"]'},classes:{}})),"$el",E()(e.el)),tr(Xo(e),"onToggle",(function(t,n){console.log("You clicked on: ",n),console.log("You got the following event: ",t);var i=e.$el.find(".popover");e.$el.find(".display").length>0?i.removeClass("display"):i.addClass("display")})),tr(Xo(e),"onDelete",(function(t,e){alert("Delete item...")})),tr(Xo(e),"handleResize",(function(){console.log("Browser was resized and catched by Popover!")})),e}return e=s,(n=[{key:"events",get:function(){return{"{{context.EVENTS.click}} {{this.options.selectors.togglePopover}}":"onToggle","{{context.EVENTS.click}} {{this.options.selectors.deleteItem}}":"onDelete"}}},{key:"subscribe",get:function(){return{"{{context.EVENTS.resize}}":"handleResize"}}},{key:"willMount",value:function(){console.log("Component Popover will mount!")}},{key:"didMount",value:function(){console.log("Component Popover mounted!")}},{key:"render",value:function(){return this}}])&&Jo(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),s}(O());const ir=nr;function or(t){return or="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},or(t)}function rr(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,ur(i.key),i)}}function sr(t,e){return sr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},sr(t,e)}function ar(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function lr(t){return lr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},lr(t)}function cr(t,e,n){return(e=ur(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ur(t){var e=function(t,e){if("object"!==or(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!==or(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===or(e)?e:String(e)}const pr=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&sr(t,e)}(s,t);var e,n,i,o,r=(i=s,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=lr(i);if(o){var n=lr(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===or(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return ar(t)}(this,t)});function s(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),cr(ar(e=r.call(this,t,{selectors:{},classes:{}})),"$el",E()(e.el)),cr(ar(e),"handleClick",(function(t,e){console.log("You clicked on: ",e),console.log("You got the following event: ",t)})),cr(ar(e),"handleResize",(function(){console.log("Browser was resized and catched by ToolboxButton!")})),e}return e=s,(n=[{key:"events",get:function(){return{click:"handleClick"}}},{key:"subscribe",get:function(){return{"{{context.EVENTS.resize}}":"handleResize"}}},{key:"willMount",value:function(){console.log("Component ToolboxButton will mount!")}},{key:"didMount",value:function(){console.log("Component ToolboxButton mounted!")}},{key:"render",value:function(){return this}}])&&rr(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),s}(O());function fr(t){return fr="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},fr(t)}function dr(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,br(i.key),i)}}function hr(t,e){return hr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},hr(t,e)}function mr(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function vr(t){return vr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},vr(t)}function yr(t,e,n){return(e=br(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function br(t){var e=function(t,e){if("object"!==fr(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!==fr(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===fr(e)?e:String(e)}const gr=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&hr(t,e)}(s,t);var e,n,i,o,r=(i=s,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=vr(i);if(o){var n=vr(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===fr(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return mr(t)}(this,t)});function s(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),yr(mr(e=r.call(this,t,{selectors:{},classes:{}})),"$el",E()(e.el)),yr(mr(e),"handleClick",(function(t,e){console.log("You clicked on: ",e),console.log("You got the following event: ",t)})),yr(mr(e),"handleResize",(function(){console.log("Browser was resized and catched by ToolboxWorkspace!")}
2)),e}return e=s,(n=[{key:"events",get:function(){return{click:"handleClick"}}},{key:"subscribe",get:function(){return{"{{context.EVENTS.resize}}":"handleResize"}}},{key:"willMount",value:function(){console.log("Component ToolboxWorkspace will mount!")}},{key:"didMount",value:function(){console.log("Component ToolboxWorkspace mounted!")}},{key:"render",value:function(){return this}}])&&dr(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),s}(O());function wr(t){return wr="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},wr(t)}function _r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,Cr(i.key),i)}}function kr(t,e){return kr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},kr(t,e)}function Sr(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function jr(t){return jr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},jr(t)}function Er(t,e,n){return(e=Cr(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Cr(t){var e=function(t,e){if("object"!==wr(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!==wr(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===wr(e)?e:String(e)}const Or=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&kr(t,e)}(s,t);var e,n,i,o,r=(i=s,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=jr(i);if(o){var n=jr(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===wr(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Sr(t)}(this,t)});function s(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),Er(Sr(e=r.call(this,t,{selectors:{openModal:'[data-js-item="open-modal"]',closeModal:'[data-js-item="close-modal"]'},classes:{}})),"$el",E()(e.el)),Er(Sr(e),"modal",void 0),Er(Sr(e),"onOpen",(function(t,n){console.log("You clicked on: ",n),console.log("You got the following event: ",t),e.modal=e.$el.find(".modal"),e.modal&&e.modal.addClass("display")})),Er(Sr(e),"onClose",(function(t,n){e.modal?(e.modal.removeClass("display"),e.modal=null):(e.modal=e.$el.find(".modal"),e.modal&&(e.modal.removeClass("display"),e.modal=null))})),Er(Sr(e),"onWindow",(function(t){t.target===e.modal&&e.modal.removeClass("display")})),Er(Sr(e),"handleResize",(function(){console.log("Browser was resized and catched by ToolboxModal!")})),e}return e=s,(n=[{key:"events",get:function(){return{"{{context.EVENTS.click}} {{this.options.selectors.openModal}}":"onOpen","{{context.EVENTS.click}} {{this.options.selectors.closeModal}}":"onClose"}}},{key:"subscribe",get:function(){return{"{{context.EVENTS.resize}}":"handleResize"}}},{key:"willMount",value:function(){console.log("Component ToolboxModal will mount!")}},{key:"didMount",value:function(){console.log("Component ToolboxModal mounted!")}},{key:"render",value:function(){return this}}])&&_r(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),s}(O());function xr(t){return xr="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},xr(t)}function Tr(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,Ir(i.key),i)}}function Pr(t,e){return Pr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Pr(t,e)}function $r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ar(t){return Ar=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ar(t)}function Lr(t,e,n){return(e=Ir(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ir(t){var e=function(t,e){if("object"!==xr(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!==xr(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===xr(e)?e:String(e)}const Dr=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Pr(t,e)}(s,t);var e,n,i,o,r=(i=s,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=Ar(i);if(o){var n=Ar(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===xr(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return $r(t)}(this,t)});function s(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),Lr($r(e=r.call(this,t,{selectors:{},classes:{}})),"$el",E()(e.el)),Lr($r(e),"handleClick",(function(t,e){console.log("You clicked on: ",e),console.log("You got the following event: ",t)})),Lr($r(e),"handleResize",(function(){console.log("Browser was resized and catched by Copartner!")})),e}return e=s,(n=[{key:"events",get:function(){return{click:"handleClick"}}},{key:"subscribe",get:function(){return{"{{context.EVENTS.resize}}":"handleResize"}}},{key:"didMount",value:function(){console.log("Component Copartner mounted!")}},{key:"render",value:function(){return this}}])&&Tr(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),s}(O());var Fr=n(8834).lW;function Rr(t){return Rr="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},Rr(t)}function Nr(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,Vr(i.key),i)}}function Mr(t,e){return Mr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Mr(t,e)}function Br(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function qr(t){return qr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},qr(t)}function Hr(t,e,n){return(e=Vr(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Vr(t){var e=function(t,e){if("object"!==Rr(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!==Rr(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Rr(e)?e:String(e)}const Wr=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Mr(t,e)}(s,t);var e,n,i,o,r=(i=s,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=qr(i);if(o){var n=qr(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===Rr(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Br(t)}(this,t)});function s(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),Hr(Br(e=r.call(this,t,{selectors:{filterArea:'[data-js-item="js-filter-course-finder-area"]',dependentFilter:".dependent-filter",filterAdjustment:".filter-course-finder__adjustment",ctaFilterAdjustment:'[data-js-item="js-filter-course-finder-adjustment-cta"]',ctaShowMore:'[data-js-item="js-filter-course-finder-showmore-cta"]',formCheckboxInput:".form__checkbox-input",formSelectField:".form__select-field",formSelectElement:".form__select-element",formSelectPlaceholder:".form__select-placeholder",formSelectWrapper:".form__select-wrapper",filterList:'[data-js-item="js-filter-course-finder-filter-list"]',filterListSuffix:"__filter-list",filterListPrefix:"filter-list__",filterReset:'[data-js-item="js-filter-course-finder-filter-reset"]',submitButton:'[data-js-item="js-filter-course-finder-submit-button"]',paginationArea:'[data-js-item="js-filter-course-finder-pagination-area"]',resultArea:'[data-js-item="js-filter-course-finder-result-area"]',resultPerPage:".filter-course-finder__result-per-page a",resultSorting:'[data-js-item="js-filter-course-finder-results-sorting"]',searchQuery:"query",graduation:"graduation",courseLanguage:"courseLanguage",subjectType:"subjecttyp",schoolType:"schooltyp",studiesStart:"startofstudies",approvalMode:"admissionmodality",majorSubject:"Hauptfach",minorSubject:"Nebenfach",teachingSubject:"Unterrichtsfach",didacticSubject:"Didaktikfach",extensionSubject:"Erweiterungsfach",graduationBachelor:"Bachelor",graduationMaster:"Master",graduationStaExamTeachQual:"Lehramt",graduationStaExam:"Staatsexamen",paginationItem:"pagination__item-",paginationFirsPage:"pagination__firs-page",paginationPrevPage:"pagination__prev-page",paginationNextPage:"pagination__next-page",paginationLastPage:"pagination__last-page",paginationNoOfPage:"pagination__numbers-of-page"},classes:{showFilter:"is-showFilter",hideFilter:"is-hideFilter",isSelected:"is-selected",activeFilterItem:"is-active",isDisabled:"is-disabled",isSuccess:"is-success",isError:"is-error",isLoading:"is-loading"},filterArea:[],resultArea:[],resultPerPage:[],resultSorting:[],closedLabel:"",openedLabel:"",tagTxt:[],tagSel:[],tagCbx:[],filterAdjustment:[],ctaFilterAdjustment:[],ctaShowMore:[],dependentFilters:[],selDependentFilters:[],searchQuery:[],graduationDropdown:[],subjectTypeDropdown:[],filterChechboxs:[],selFilterChechboxs:[],filterDropdowns:[],selFilterDropdowns:[],filterList:[],filterReset:[],submitButton:[],paginationArea:[],autocompleteFocus:-1,autocompleteLimit:10})),"$el",E()(e.el)),Hr(Br(e),"$haupiaQuery",""),Hr(Br(e),"$paginationNumberOfPage",""),Hr(Br(e),"$paginationCurrentPage",""),Hr(Br(e),"$lang",document.getElementsByTagName("HTML")[0].getAttribute("lang")?document.getElementsByTagName("HTML")[0].getAttribute("lang"):"de"),Hr(Br(e),"slideUp",(function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500;t.style.transitionProperty="height, margin, padding",t.style.transitionDuration=e+"ms",t.style.height=t.offsetHeight+"px",t.offsetHeight,t.style.overflow="hidden",t.style.height=0,window.setTimeout((function(){t.style.display="none",t.style.removeProperty("height"),t.style.removeProperty("overflow"),t.style.removeProperty("transition-duration"),t.style.removeProperty("transition-property")}),e)})),Hr(Br(e),"slideDown",(function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500;t.style.removeProperty("display");var n=window.getComputedStyle(t).display;"none"===n&&(n="block"),t.style.display=n;var i=t.offsetHeight;t.style.overflow="hidden",t.style.height=0,t.offsetHeight,t.style.transitionProperty="height, margin, padding",t.style.transitionDuration=e+"ms",t.style.height=i+"px",window.setTimeout((function(){t.style.removeProperty("height"),t.style.removeProperty("overflow"),t.style.removeProperty("transition-duration"),t.style.removeProperty("transition-property")}),e)})),Hr(Br(e),"slideToggle",(function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500;return"none"===window.getComputedStyle(t).display?e.slideDown(t,n):e.slideUp(t,n)})),Hr(Br(e),"arrayToString",(function(t){return t?t.toString():""})),Hr(Br(e),"objectOrArrayToArray",(function(t){return void 0===t||Array.isArray(t)?t:[t]})),Hr(Br(e),"getJSON",(function(t,e,n){var i=new XMLHttpRequest;
2i.open("GET",t,!0),n&&n.forEach((function(t){i.setRequestHeader(t.name,t.value)})),i.onload=function(){if(4===i.readyState&&200===i.status){var t=i.responseText;e(JSON.parse(t))}else console.error(i.statusText)},i.send(null)})),e}return e=s,(n=[{key:"willMount",value:function(){}},{key:"didMount",value:function(){}},{key:"bindEvents",value:function(){var t=this;this.options.filterArea=document.querySelector(this.options.selectors.filterArea),this.options.selFilterChechboxs=[].slice.call(this.options.filterArea.querySelectorAll(this.options.selectors.formCheckboxInput)),this.options.selFilterDropdowns=[].slice.call(this.options.filterArea.querySelectorAll(this.options.selectors.formSelectElement)),this.options.selDependentFilters=[].slice.call(this.options.filterArea.querySelectorAll(this.options.selectors.dependentFilter)),this.options.resultArea=document.querySelector(this.options.selectors.resultArea),this.options.resultSorting=document.querySelector(this.options.selectors.resultSorting),this.options.resultPerPage=[].slice.call(this.options.resultArea.querySelectorAll(this.options.selectors.resultPerPage)),this.options.tagTxt=[this.options.selectors.searchQuery],this.options.tagSel=[this.options.selectors.graduation,this.options.selectors.courseLanguage,this.options.selectors.subjectType,this.options.selectors.schoolType,this.options.selectors.approvalMode],this.options.tagCbx=[this.options.selectors.studiesStart],this.options.filterAdjustment=document.querySelector(this.options.selectors.filterAdjustment),this.options.ctaFilterAdjustment=document.querySelector(this.options.selectors.ctaFilterAdjustment),this.options.paginationArea=document.querySelector(this.options.selectors.paginationArea),this.options.ctaShowMore=document.querySelector(this.options.selectors.ctaShowMore),this.options.searchQuery=document.getElementById(this.options.selectors.searchQuery),this.options.graduationDropdown=document.getElementById(this.options.selectors.graduation),this.options.subjectTypeDropdown=document.getElementById(this.options.selectors.subjectType),this.options.filterList=document.querySelector(this.options.selectors.filterList),this.options.filterReset=document.querySelector(this.options.selectors.filterReset),this.options.submitButton=document.querySelector(this.options.selectors.submitButton);var e,n=decodeURI(window.location.href.split("?")[1]).split("&"),i="?query=",o=!0;"undefined"!==n[0]&&(n.forEach((function(n){var r=n.split("=");if(-1!==t.options.tagSel.indexOf(r[0])||-1!==t.options.tagCbx.indexOf(r[0])){t.options.filterAdjustment.style.display="flex",t.options.ctaFilterAdjustment.classList.add(t.options.classes.activeFilterItem);var s=JSON.parse(t.options.ctaFilterAdjustment.getAttribute("data-js-options")).openedLabel;t.options.ctaFilterAdjustment.classList.add(t.options.classes.activeFilterItem),t.options.ctaFilterAdjustment.setAttribute("title",s),t.options.ctaFilterAdjustment.setAttribute("aria-expanded",!0),t.options.ctaFilterAdjustment.children[0].innerHTML=s}if(-1!==t.options.tagTxt.indexOf(r[0])&&(t.options.searchQuery.value="".concat(r[1]),i+=r[1]?r[1]:"*"),-1!==t.options.tagSel.indexOf(r[0])){var a='[data-value="'.concat(r[0],"→").concat(r[1],'"]'),l=document.querySelector(a);l.classList.add(t.options.classes.isSelected),l.closest(t.options.selectors.formSelectField).firstChild.innerHTML=l.textContent,document.getElementById(r[0]).firstElementChild.removeAttribute("selected"),document.querySelector("[value='".concat(r[0],"→").concat(r[1],"']")).setAttribute("selected","selected"),t.addToFilterList("".concat(r[0]),document.getElementById(r[0]).nextElementSibling.firstChild.textContent),i+="&".concat(r[0],"=").concat(r[1],"%22")}if(-1!==t.options.tagCbx.indexOf(r[0])&&(document.getElementById("".concat(r[0])).checked="".concat(r[1]),t.addToFilterList("".concat(r[0]),document.getElementById(r[0]).nextElementSibling.textContent),i+="&".concat(r[0],"=").concat(r[1],"%22")),"graduation"===r[0]&&r[1].length&&(o=!1),"language"===r[0]&&(i+="&language=".concat(r[1])),"page"===r[0]&&(i+="&page=".concat(r[1]),t.$paginationCurrentPage=r[1]),"numRows"===r[0]&&(i+="&numRows=".concat(r[1]),t.options.resultPerPage.forEach((function(e){e.classList.remove(t.options.classes.isSelected),E()(e).hasClass("results-per-page__".concat(r[1]))&&e.classList.add(t.options.classes.isSelected)}))),"sorting"===r[0]){e=r[1];var c='[data-value="'.concat(r[0],"→").concat(r[1],'"]'),u=document.querySelector(c);u.classList.add(t.options.classes.isSelected),u.closest(t.options.selectors.formSelectField).firstChild.innerHTML=u.textContent,document.getElementById(r[0]).firstElementChild.removeAttribute("selected"),document.querySelector("[value='".concat(r[0],"→").concat(r[1],"']")).setAttribute("selected","selected")}})),i=i.replace("".concat(this.options.selectors.graduation,"="),"facet.filter.Graduation_value=%22").replace("".concat(this.options.selectors.subjectType,"="),"facet.filter.Type_value=%22").replace("".concat(this.options.selectors.courseLanguage,"="),"facet.filter.Language_value=%22").replace("".concat(this.options.selectors.schoolType,"="),"facet.filter.Type_of_school_value=%22").replace("".concat(this.options.selectors.approvalMode,"="),"facet.filter.admissionRestriction1stSemester_value=%22").replace("".concat(this.options.selectors.studiesStart,"="),"facet.filter.Start_of_studies_value=%22").replaceAll("".concat(this.options.selectors.studiesStart,":"),"Start_of_studies_value_facet_string:%22"),this.getAndFillMyResults(i,e),o||this.showDependentFilter(this.options.graduationDropdown.value,!1)),this.toggleVisibilityFilterList(),this.options.selFilterChechboxs.forEach((function(e){e.addEventListener("click",(function(n){var i=n.target;!0===e.checked?t.addToFilterList("".concat(i.id),i.nextElementSibling.textContent):t.removeFromFilterList("".concat(i.id)),t.toggleVisibilityFilterList(),t.writeQueryUrl(!0),t.getAndFillMyResults(t.$haupiaQuery)}))})),this.options.selFilterDropdowns.forEach((function(e){e.addEventListener("click",(function(e){var n=e.target,i=n.parentElement.getAttribute("data-value").split("→")[0],o=document.getElementById("".concat(i).c
2oncat(t.options.selectors.filterListSuffix)),r=n.closest(t.options.selectors.formSelectWrapper).firstElementChild;"graduation"===r.getAttribute("id")&&(t.resetDependentFilters(),[].slice.call(t.options.subjectTypeDropdown.nextElementSibling.lastChild.lastChild.childNodes).forEach((function(e){e.classList.remove(t.options.classes.hideFilter)})),t.showDependentFilter(t.options.graduationDropdown.value,!0)),i.length?(o&&t.removeFromFilterList("".concat(i)),t.addToFilterList("".concat(i),n.textContent)):r.getAttribute("id")&&t.removeFromFilterList(r.getAttribute("id")),t.toggleVisibilityFilterList(),t.writeQueryUrl(!0),t.getAndFillMyResults(t.$haupiaQuery)}))})),this.options.submitButton.addEventListener("click",(function(){t.writeQueryUrl(!0),t.getAndFillMyResults(t.$haupiaQuery)})),this.options.filterList.addEventListener("click",(function(e){t.filterListHandler(e)})),this.options.filterReset.addEventListener("click",(function(e){t.options.selFilterChechboxs.forEach((function(e){!0===e.checked&&(e.checked=!1,t.removeFromFilterList("".concat(e.id)))})),[].slice.call(t.options.filterArea.querySelectorAll("select")).forEac
2h((function(e){e.selectedIndex=0,[].slice.call(e.parentElement.lastChild.querySelectorAll("li")).forEach((function(n,i){0===i?(n.classList.add(t.options.classes.isSelected),e.parentElement.querySelector(t.options.selectors.formSelectPlaceholder).innerHTML=t._getPlaceholderText(e,n),e.id===t.options.selectors.graduation?(t.showDependentFilter(t.options.graduationDropdown.value,!0),t.resetDependentFilters(),t.removeFromFilterList("".concat(e.id))):e.id===t.options.selectors.approvalMode&&t.removeFromFilterList("".concat(e.id))):n.classList.remove(t.options.classes.isSelected)}))})),t.toggleVisibilityFilterList(),t.writeQueryUrl(!0),t.getAndFillMyResults(t.$haupiaQuery)})),this.options.resultPerPage.forEach((function(e){e.addEventListener("click",(function(n){t.options.resultPerPage.forEach((function(e){e.classList.remove(t.options.classes.isSelected)})),e.classList.add(t.options.classes.isSelected),t.$paginationCurrentPage=1,t.writeQueryUrl(!0),t.getAndFillMyResults(t.$haupiaQuery)}))})),this.options.resultSorting.nextElementSibling.lastChild.addEventListener("click",(function(e){var n=e.target.parentElement.getAttribute("data-value").split("→")[1];t.$paginationCurrentPage=1,t.writeQueryUrl(!0),t.getAndFillMyResults(t.$haupiaQuery,n)})),[].slice.call(this.options.paginationArea.querySelector("div").childNodes).forEach((function(e){e.addEventListener("click",(function(n){[].slice.call(e.parentElement.childNodes).forEach((function(e){e&&e[0].classList.remove(t.options.classes.activeFilterItem)})),e.classList.add(t.options.classes.activeFilterItem)}))})),[].slice.call(this.options.paginationArea.childNodes).forEach((function(e){e.addEventListener("click",(function(n){e.id===t.options.selectors.paginationFirsPage?t.$paginationCurrentPage=1:e.id===t.options.selectors.paginationPrevPage?(t.$paginationCurrentPage=Number(t.options.paginationArea.querySelector(".".concat(t.options.classes.activeFilterItem)).innerHTML)-1,t.$paginationCurrentPage=t.$paginationCurrentPage>=1?t.$paginationCurrentPage:"1"):e.id===t.options.selectors.paginationNextPage?(t.$paginationCurrentPage=Number(t.options.paginationArea.querySelector(".".concat(t.options.classes.activeFilterItem)).innerHTML)+1,t.$paginationCurrentPage=t.$paginationCurrentPage<=t.$paginationNumberOfPage?t.$paginationCurrentPage:t.$paginationNumberOfPage):e.id===t.options.selectors.paginationLastPage?t.$paginationCurrentPage=Number(t.$paginationNumberOfPage):e.id===t.options.selectors.paginationNoOfPage&&([].slice.call(e.childNodes).forEach((function(e){e.classList.remove(t.options.classes.activeFilterItem)})),n.srcElement.classList.add(t.options.classes.activeFilterItem),t.$paginationCurrentPage=n.srcElement.innerHTML),t.writeQueryUrl(),t.getAndFillMyResults(t.$haupiaQuery),window.scrollTo({top:t.getElementDistance(t.options.ctaFilterAdjustment),behavior:"smooth"})}))})),this.toggleSpaceBelowCourseInput(),this.options.ctaFilterAdjustment.addEventListener("click",(function(e){e.preventDefault(),t.slideToggle(t.options.filterAdjustment,500)})),this.options.searchQuery.addEventListener("input",(function(e){e.preventDefault();var n=e.target.value;t.autocomplete(n)})),this.options.searchQuery.addEventListener("focus",(function(e){var n=e.target.value;t.autocomplete(n)})),this.options.searchQuery.addEventListener("keydown",(function(e){var n=e.target.parentNode.querySelector(".autocomplete");n&&(n=n.querySelectorAll(".autocomplete__item")),40==e.keyCode?(t.autocompleteFocus++,t.addActive(n)):38==e.keyCode?(t.autocompleteFocus--,t.addActive(n)):13==e.keyCode&&(e.preventDefault(),t.autocompleteFocus>0?n&&n[t.autocompleteFocus-1].click():0==t.autocompleteFocus&&t.options.submitButton.click())})),document.addEventListener("click",(function(e){t.options.searchQuery.parentNode.querySelector(".autocomplete")&&"query"!==e.target.id&&t.closeAllLists()}))}},{key:"paginationPrintItem",value:function(t,e){var n=Number(t),i=Number(e);if(this.options.paginationArea.querySelector("#".concat(this.options.selectors.paginationFirsPage)).classList.remove(this.options.classes.isDisabled),this.options.paginationArea.querySelector("#".concat(this.options.selectors.paginationPrevPage)).classList.remove(this.options.classes.isDisabled),this.options.paginationArea.querySelector("#".concat(this.options.selectors.paginationNextPage)).classList.remove(this.options.classes.isDisabled),this.options.paginationArea.querySelector("#".concat(this.options.selectors.paginationLastPage)).classList.remove(this.options.classes.isDisabled),this.options.paginationArea.querySelector("div").innerHTML="",n<6)for(var o=1;o<=n;o++)this.paginationCreateItem(o);else i>2&&this.paginationCreateItem(1),i>3&&this.paginationCreateItem("..."),i>1&&this.paginationCreateItem(i-1),this.paginationCreateItem(i),i<n&&this.paginationCreateItem(i+1),i<n-2&&this.paginationCreateItem("..."),i<n-1&&this.paginationCreateItem(n);n>0&&document.getElementById("".concat(this.options.selectors.paginationItem).concat(i)).classList.add(this.options.classes.activeFilterItem),1===Number(this.$paginationCurrentPage)&&(this.options.paginationArea.querySelector("#".concat(this.options.selectors.paginationFirsPage)).classList.add(this.options.classes.isDisabled),this.options.paginationArea.querySelector("#".concat(this.options.selectors.paginationPrevPage)).classList.add(this.options.classes.isDisabled)),Number(this.$paginationCurrentPage)===Number(this.$paginationNumberOfPage)&&(this.options.paginationArea.querySelector("#".concat(this.options.selectors.paginationNextPage)).classList.add(this.options.classes.isDisabled),this.options.paginationArea.querySelector("#".concat(this.options.selectors.paginationLastPage)).classList.add(this.options.classes.isDisabled))}},{key:"paginationCreateItem",value:function(t){var e="";isNaN(t)?e=document.createElement("SPAN"):(e=document.createElement("A")).setAttribute("id","".concat(this.options.selectors.paginationItem).concat(t)),e.appendChild(document.createTextNode(t)),this.options.paginationArea.querySelector("div").appendChild(e)}},{key:"getAndFillMyResults",value:function(t,e,n){var i,o=this;i="undefined"!=typeof haupiaUriFirstSpirit&&haupiaUriFirstSpirit?haupiaUriFirstSpirit:{hpLink:"https://cms-search.uni-muenchen.de/search-dev/",hpUser:"[email protected]",hpPass:"haupia_search_proxy"};var r=e||this.options.resultSorting.value.split("→")[1],s="".concat(i.hpLink,"courses_").concat(n?"autocomplete_":"").concat(r,"/execute").concat(t);n||(this.el.classList.remove(this.options.classes.isSuccess,this.options.classes.isError),this.el.classList.add(this.options.classes.isLoading)),this.toggleSpaceBelowCourseInput();var a=[{name:"Authorization",value:"Basic "+Fr.from(i.hpUser+":"+i.hpPass).toString("base64")}];this.getJSON(s,(function(t){void 0!==t.results&&(n?o.fillAutocomplete(t):o.populateResults(t))}),a)}},{key:"populateResults",value:function(t){var e=this;this.$paginationNumberOfPage=Math.ceil(t.numRows/t.rows),this.$paginationCurrentPage<=0?this.$paginationCurrentPage=1:this.$paginationCurrentPage,this.$paginationCurrentPage>=this.$paginationNumberOfPage?this.$paginationCurrentPage=this.$paginationNumberOfPage:this.$paginationCurrentPage,this.paginationPrintItem(this.$paginationNumberOfPage,this.$paginationCurrentPage),this.options.resultArea.querySelector(".filter-course-finder__total-item-count").textContent=t.numRows;var n=this.options.resultArea.querySelector(".filter-course-finder__total-item-text");t.numRows>
21?n.textContent=n.dataset.plural:n.textContent=n.dataset.singular;var i=this.options.resultArea.querySelector('[data-js-item="js-filter-course-finder-result-template"]'),o=this.options.resultArea.querySelector('[data-js-item="js-filter-course-finder-result-list"]');o.innerHTML="",this.objectOrArrayToArray(t.results).forEach((function(n){var r=i.cloneNode(!0);if(r.removeAttribute("data-js-item"),t.highlighting[n.id]){var s=e.arrayToString(t.highlighting[n.id].Name_value&&t.highlighting[n.id].Name_value.length?t.highlighting[n.id].Name_value:n.Name_value);s=(s=s.replaceAll("<strong>",'<span class="highlighting">')).replaceAll("</strong>","</span>"),r.querySelector(".filter-course-finder__result-title a").innerHTML=s;var a=e.arrayToString(t.highlighting[n.id].Description_value&&t.highlighting[n.id].Description_value.length?t.highlighting[n.id].Description_value:n.Description_value);a=(a=a.replaceAll("<strong>",'<span class="highlighting">')).replaceAll("</strong>","</span>"),r.querySelector(".filter-course-finder__result-description").innerHTML=a}else r.querySelector(".filter-course-finder__result-title a").textContent=e.arrayToString(n.Name_value),r.querySelector(".filter-course-finder__result-description").textContent=e.arrayToString(n.Description_value);r.querySelector(".filter-course-finder__result-title-description").textContent=e.arrayToString(n.Graduation_value)+" / "+e.arrayToString(n.Type_of_school_value)+(n.Type_of_school_value?" / ":"")+e.arrayToString(n.Type_value);var l=e.arrayToString(n.admissionRestriction1stSemester_value).length?", "+e.arrayToString(n.admissionRestriction1stSemester_value):"";r.querySelector(".filter-course-finder__result-subtitle").textContent=e.arrayToString(n.Start_of_studies_value)+l,r.querySelector(".filter-course-finder__result-title-link").setAttribute("href",n.detailpage_link),r.querySelector(".filter-course-finder__result-detail-link").setAttribute("href",n.detailpage_link),o.appendChild(r)})),this.el.classList.remove(this.options.classes.isLoading),t.numRows>0?this.el.classList.add(this.options.classes.isSuccess):this.el.classList.add(this.options.classes.isError)}},{key:"writeQueryUrl",value:function(t,e){var n=this,i=[].slice.call(this.options.filterArea.querySelectorAll("".concat(this.options.selectors.formSelectElement,".").concat(this.options.classes.isSelected))),o=[];i.forEach((function(t){var e=t.getAttribute("data-value").replace("→","=");e.length&&o.push(e)}));var r=[].slice.call(this.options.filterArea.querySelectorAll("".concat(this.options.selectors.formCheckboxInput,":checked"))),s=[];r.forEach((function(t){var e=t.getAttribute("data-value").replace("→","=");if(e.length){if(e.includes("||")){var n=e.split("=",2)[0].toString(),i=e.split("=",2)[1].toString();i=i.split("||"),e="fq=",i.forEach((function(t){e=e+n+":"+t+'" OR '})),e=e.slice(0,-5)+""}s.push(e)}}));var a="";this.options.resultPerPage.forEach((function(t){E()(t).hasClass(n.options.classes.isSelected)&&(a=t.innerHTML)}));var l=this.options.resultSorting.value.replace("→","="),c=o.join("&"),u=s.join("&"),p=(c?"&":"")+encodeURI(c).replace("".concat(this.options.selectors.graduation,"="),"facet.filter.Graduation_value=%22").replace("".concat(this.options.selectors.subjectType,"="),"facet.filter.Type_value=%22").replace("".concat(this.options.selectors.courseLanguage,"="),"facet.filter.Language_value=%22").replace("".concat(this.options.selectors.schoolType,"="),"facet.filter.Type_of_school_value=%22").replace("".concat(this.options.selectors.approvalMode,"="),"facet.filter.admissionRestriction1stSemester_value=%22").replace(/&/g,"%22&");p.length&&(p+="%22");var f=(u?"&":"")+encodeURI(u).replace("".concat(this.options.selectors.studiesStart,"="),"facet.filter.Start_of_studies_value=%22").replaceAll("".concat(this.options.selectors.studiesStart,":"),"Start_of_studies_value_facet_string:%22").replace(/&/g,"%22&");f.length&&(f+="%22"),c=c.length?"&".concat(c):"",u=u.length?"&".concat(u):"",l=l.length?"&".concat(l):"";var d=this.options.searchQuery.value?this.options.searchQuery.value:"*",h=t?"1":this.$paginationCurrentPage,m="de"===this.$lang?"&language=de&language=en":"&language=".concat(this.$lang),v="".concat(this.options.selectors.searchQuery,"=").concat(this.options.searchQuery.value).concat(c).concat(u).
2concat(l).concat(m,"&page=").concat(h,"&numRows=").concat(a);history.pushState(v,"Search history","".concat(window.location.href.split("?")[0],"?").concat(v)),e&&(d=d.replace(/[\/\(\)]/g,"").split(" ").filter((function(t){return""!==t})).map((function(t){return"(".concat(t,")")})).join("")),this.$haupiaQuery="?query=".concat(d).concat(f).concat(p,"&language=").concat(this.$lang,"&page=").concat(h,"&numRows=").concat(a)}},{key:"autocomplete",value:function(t){t.length>2?(this.autocompleteFocus=0,this.writeQueryUrl(!0,!0),this.getAndFillMyResults(this.$haupiaQuery,"by_name_asc",!0)):this.closeAllLists()}},{key:"fillAutocomplete",value:function(t){var e=this;this.closeAllLists();var n=document.createElement("DIV");n.setAttribute("class","autocomplete"),this.options.searchQuery.parentNode.appendChild(n),t.results.slice(0,this.options.autocompleteLimit).forEach((function(t){var i=document.createElement("a");i.setAttribute("class","autocomplete__item"),i.setAttribute("href",t.detailpage_link),i.innerHTML="".concat(e.arrayToString(t.Name_value)," (").concat(e.arrayToString(t.Graduation_value)," / ").concat(e.arrayToString(t.Type_of_school_value)," ").concat(e.arrayToString(t.Type_of_school_value)&&"/"," ").concat(e.arrayToString(t.Type_value),")"),n.appendChild(i)})),n&&this.addActive(n.querySelectorAll(".autocomplete__item"))}},{key:"addActive",value:function(t){if(!t)return!1;this.removeActive(t),this.autocompleteFocus>t.length&&(this.autocompleteFocus=0),this.autocompleteFocus<0&&(this.autocompleteFocus=t.length),t[this.autocompleteFocus-1]&&t[this.autocompleteFocus-1].classList.add("autocomplete__item--active")}},{key:"removeActive",value:function(t){for(var e=0;e<t.length;e++)t[e].classList.remove("autocomplete__item--active")}},{key:"closeAllLists",value:function(t){for(var e=document.getElementsByClassName("autocomplete"),n=0;n<e.length;n++)t!=e[n]&&e[n].parentNode.removeChild(e[n])}},{key:"_getPlaceholderText",value:function(t,e){var n=t.querySelector("[data-placeholder]"),i=e.textContent;return n&&n.dataset?i=n.dataset.placeholder:t.dataset&&(i=t.dataset.placeholder),void 0===i?e.textContent:i}},{key:"resetDependentFilters",value:function(){var t=this;this.options.selDependentFilters.forEach((function(e){e.classList.add(t.options.classes.hideFilter),E()(e).find("select")[0].selectedIndex=0,[].slice.call(e.querySelectorAll(t.options.selectors.formSelectElement)).forEach((function(n,i){0===i?(n.classList.add(t.options.classes.isSelected),e.querySelector(t.options.selectors.formSelectPlaceholder).innerHTML=t._getPlaceholderText(e,n)):n.classList.remove(t.options.classes.isSelected)}))}))}},{key:"addToFilterList",value:function(t,e){var n="".concat(t).concat(this.options.selectors.filterListSuffix),i='<div id="'.concat(n,'">').concat(e," <button></button></div>");this.options.filterList.innerHTML+=i}},{key:"removeFromFilterList",value:function(t){var e="".concat(t).concat(this.options.selectors.filterListSuffix),n=document.getElementById(e);if(n)return n.parentNode.removeChild(n)}},{key:"showDependentFilter",value:function(t,e){e&&this.removeFilterListDependentFilter(["".concat(this.options.selectors.courseLanguage),"".concat(this.options.selectors.subjectType),"".concat(this.options.selectors.schoolType)]),t==="".concat(this.options.selectors.graduation,"→").concat(this.options.selectors.graduationBachelor)||t==="".concat(this.options.selectors.graduation,"→").concat(this.options.selectors.graduationMaster)?(this.removeClassDependentFilter([this.options.selectors.courseLanguage,this.options.selectors.subjectType]),this.addClassDependentFilter(["".concat(this.options.selectors.subjectType,"→").concat(this.options.selectors.teachingSubject),"".concat(this.options.selectors.subjectType,"→").concat(this.options.selectors.extensionSubject),"".concat(this.options.selectors.subjectType,"→").concat(this.options.selectors.didacticSubject)])):t==="".concat(this.options.selectors.graduation,"→").concat(this.options.selectors.graduationStaExamTeachQual)&&(this.removeClassDependentFilter([this.options.selectors.subjectType,this.options.selectors.schoolType]),this.addClassDependentFilter(["".concat(this.options.selectors.subjectType,"→").concat(this.options.selectors.majorSubject),"".concat(this.options.selectors.subjectType,"→").concat(this.options.selectors.minorSubject)]))}},{key:"removeFilterListDependentFilter",value:function(t){var e=this;t.forEach((function(t){document.getElementById("".concat(t).concat(e.options.selectors.filterListSuffix
2))&&e.removeFromFilterList(t)}))}},{key:"addClassDependentFilter",value:function(t){var e=this;t.forEach((function(t){e.el.querySelector("li[data-value="+t+"]")&&e.el.querySelector("li[data-value="+t+"]").classList.add(e.options.classes.hideFilter)}))}},{key:"removeClassDependentFilter",value:function(t){var e=this;t.forEach((function(t){document.getElementById(t).closest(".filter-course-finder__col").classList.remove(e.options.classes.hideFilter)}))}},{key:"filterListHandler",value:function(t){var e=this;if(t.preventDefault(),"BUTTON"===t.srcElement.tagName){var n=t.target.parentElement.id.replace(this.options.selectors.filterListSuffix,""),i=document.getElementById(n);i.selectedIndex=0,t.target.parentElement.parentNode.removeChild(t.target.parentElement),-1!==this.options.tagSel.indexOf(n)&&[].slice.call(i.parentElement.querySelectorAll(this.options.selectors.formSelectElement)).forEach((function(t,n){0===n?(t.classList.add(e.options.classes.isSelected),i.parentElement.querySelector(e.options.selectors.formSelectPlaceholder).innerHTML=e._getPlaceholderText(i,t),i.id===e.options.selectors.graduation&&(e.showDependentFilter(e.options.graduationDropdown.value,!0),e.resetDependentFilters())):t.classList.remove(e.options.classes.isSelected)})),-1!==this.options.tagCbx.indexOf(n)&&(i.checked=!1),this.writeQueryUrl(!0),this.getAndFillMyResults(this.$haupiaQuery),this.toggleVisibilityFilterList()}}},{key:"toggleVisibilityFilterList",value:function(){this.options.filterList.childNodes.length<=1?(this.options.filterList.parentElement.style.display="none",this.options.filterReset.parentElement.style.display="none"):(this.options.filterList.parentElement.style.display="flex",this.options.filterReset.parentElement.style.display="inline-block")}},{key:"getElementDistance",value:function(t){var e=0;if(t.offsetParent)do{e+=t.offsetTop,t=t.offsetParent}while(t);return e>=0?e:0}},{key:"toggleSpaceBelowCourseInput",value:function(){this.el.classList.length<=1?(this.options.resultArea.style.display="none",this.options.ctaFilterAdjustment||(this.options.filterArea.children[0].children[0].style.marginBottom="0px")):(this.options.filterArea.children[0].children[0].style.marginBottom="",this.options.resultArea.style.display="")}},{key:"render",value:function(){return this}}])&&Nr(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),s}(O());function zr(t){return zr="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},zr(t)}function Zr(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,Jr(i.key),i)}}function Ur(t,e){return Ur=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ur(t,e)}function Yr(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Qr(t){return Qr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Qr(t)}function Jr(t){var e=function(t,e){if("object"!==zr(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!==zr(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===zr(e)?e:String(e)}const Kr=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ur(t,e)}(s,t);var e,n,i,o,r=(i=s,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=Qr(i);if(o){var n=Qr(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===zr(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Yr(t)}(this,t)});function s(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),function(t,e,n){(e=Jr(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}(Yr(e=r.call(this,t,{selectors:{ctaFilterAdjustment:'[data-js-item="js-filter-course-finder-adjustment-cta"]'},classes:{},closedLabel:"",openedLabel:"",ctaFilterAdjustment:[]})),"$el",E()(e.el)),e}return e=s,(n=[{key:"willMount",value:function(){}},{key:"didMount",value:function(){}},{key:"bindEvents",value:function(){var t=this;this.options.ctaFilterAdjustment=document.querySelector(this.options.selectors.ctaFilterAdjustment),this.options.ctaFilterAdjustment.addEventListener("click",(function(e){e.preventDefault();var n="SPAN"===e.target.tagName?e.target.parentElement:e.target;"true"===n.getAttribute("aria-expanded")?(n.classList.remove("is-active"),n.setAttribute("aria-expanded","fal
2se"),n.setAttribute("title","".concat(t.options.closedLabel)),n.children[0].innerHTML="".concat(t.options.closedLabel)):(console.log("FALSE"),n.classList.add("is-active"),n.setAttribute("aria-expanded","true"),n.setAttribute("title","".concat(t.options.openedLabel)),n.children[0].innerHTML="".concat(t.options.openedLabel))}))}},{key:"render",value:function(){return this}}])&&Zr(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),s}(O());var Xr=n(8834).lW;function Gr(t){return Gr="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},Gr(t)}function ts(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,rs(i.key),i)}}function es(t,e){return es=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},es(t,e)}function ns(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function is(t){return is=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},is(t)}function os(t,e,n){return(e=rs(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function rs(t){var e=function(t,e){if("object"!==Gr(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!==Gr(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Gr(e)?e:String(e)}const ss=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&es(t,e)}(s,t);var e,n,i,o,r=(i=s,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=is(i);if(o){var n=is(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===Gr(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return ns(t)}(this,t)});function s(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),os(ns(e=r.call(this,t,{selectors:{filterForm:'[data-js-item="js-filter-finder-function-filter-form"]',filterList:'[data-js-item="js-filter-finder-function-filter-list"]',filterReset:'[data-js-item="js-filter-finder-function-filter-reset"]',resultArea:'[data-js-item="js-filter-finder-function-result-area"]',resultPerPage:'[data-js-item="js-filter-finder-function__result-per-page"]',paginationArea:'[data-js-item="js-filter-finder-function-pagination-area"]',formSelectElement:".form__select-element",filterListSuffix:"__filter-list",paginationItem:"pagination__item-",paginationFirsPage:"pagination__firs-page",paginationPrevPage:"pagination__prev-page",paginationNextPage:"pagination__next-page",paginationLastPage:"pagination__last-page",paginationNoOfPage:"pagination__numbers-of-page"},classes:{isSelected:"is-selected",activeFilterItem:"is-active",isSuccess:"is-success",isError:"is-error",isLoading:"is-loading"}})),"$el",E()(e.el)),os(ns(e),"$filterForm",E()(e.options.selectors.filterForm,e.el)),os(ns(e),"$filterList",E()(e.options.selectors.filterList,e.el)),os(ns(e),"$fields",E()("input",e.$filterForm)),os(ns(e),"$selects",E()("select",e.$filterForm)),os(ns(e),"$lang",document.getElementsByTagName("HTML")[0].getAttribute("lang")?document.getElementsByTagName("HTML")[0].getAttribute("lang"):"de"),os(ns(e),"$query",""),os(ns(e),"$queryHaupia",""),os(ns(e),"$sort","asc"),os(ns(e),"$paginationNumberOfPage",""),os(ns(e),"$paginationCurrentPage",""),os(ns(e),"arrayToString",(function(t){return t?t.toString():""})),os(ns(e),"objectOrArrayToArray",(function(t){return void 0===t||Array.isArray(t)?t:[t]})),os(ns(e),"getJSON",(function(t,e,n){var i=new XMLHttpRequest;
2i.open("GET",t,!0),n&&n.forEach((function(t){i.setRequestHeader(t.name,t.value)})),i.onload=function(){if(4===i.readyState&&200===i.status){var t=i.responseText;e(JSON.parse(t))}else console.error(i.statusText)},i.send(null)})),e}return e=s,(n=[{key:"willMount",value:function(){console.log("Component FilterFinderFunction will mount!")}},{key:"didMount",value:function(){console.log("Component FilterFinderFunction mounted!")}},{key:"bindEvents",value:function(){var t=this;this.options.filterForm=document.querySelector(this.options.selectors.filterForm),this.options.filterList=document.querySelector(this.options.selectors.filterList),this.options.resultArea=document.querySelector(this.options.selectors.resultArea),this.options.paginationArea=document.querySelector(this.options.selectors.paginationArea),this.options.resultPerPage=this.options.resultArea.querySelector(this.options.selectors.resultPerPage),this.options.resultsPerPage=[].slice.call(this.options.resultArea.querySelectorAll(".filter-finder-function__result-per-page a")),this.options.filterReset=document.querySelector(this.options.selectors.filterReset);var e=decodeURI(window.location.href.split("?")[1]).split("&");"undefined"!==e[0]&&(e.forEach((function(e,n){var i=e.split("="),o="[name=".concat(i[0],"]"),r=i[0].split("_")[0];if(0===n&&("query"===i[0]?(document.querySelector(o).value=i[1],t.$queryHaupia+="?query=".concat(i[1])):t.$queryHaupia+="?query=*"),"cbx"===r){var s=document.querySelector(o);s.checked=!0,t.addToFilterList(i[0],s.nextElementSibling.textContent),t.$queryHaupia+="&".concat(i[0].replace("cbx_","facet.filter.").split("→")[0],"=").concat(i[1])}if("rad"===r&&document.querySelectorAll(o).forEach((function(e){e.dataset.value===i[1].slice(1,-1)&&(e.checked=!0,t.addToFilterList(e.id,e.nextElementSibling.textContent,i[0]),t.$queryHaupia+="&".concat(i[0].replace("rad_","facet.filter.").split("→")[0],"=").concat(i[1]))})),"sel"===r){var a=document.querySelector(o),l=E()(a).closest(".form__select-wrapper");E()(a).val(i[1].slice(1,-1)),l.find('[data-value="'.concat(i[1].slice(1,-1),'"]')).addClass("is-selected"),l.find("span.form__select-placeholder").html(l.find('[data-value="'.concat(i[1].slice(1,-1),'"] span')).html()),t.addToFilterList(a.id,l.find('[data-value="'.concat(i[1].slice(1,-1),'"]'))[0].textContent),t.$queryHaupia+="&".concat(i[0].replace("sel_","facet.filter.").split("→")[0],"=").concat(i[1])}if("mul"===r){var c=document.querySelector(o),u=i[1].slice(1,-1).split("~");c.querySelectorAll("option").forEach((function(t){t.removeAttribute("selected"),E()(c).closest(".select-multiple__overlay").find("input#".concat(t.id,"_checkbox")).prop("checked",!1)})),"all"===u.toString()?c.querySelectorAll("option").forEach((function(e,n){!1===e.disabled&&(e.setAttribute("selected","selected"),E()(c).closest(".select-multiple__overlay").find("input#".concat(e.id,"_checkbox")).prop("checked",!0),n>0&&(t.addToFilterList("".concat(e.id,"_checkbox"),e.textContent),t.$queryHaupia+="&".concat(i[0].replace("mul_","facet.filter."),'="').concat(e.id.split("→")[1],'"')))})):(u.forEach((function(e){(e=E()(c).find('[value="'.concat(e,'"]'))).attr("selected","selected"),E()(c).closest(".select-multiple__overlay").find("input#".concat(e[0].id,"_checkbox")).prop("checked",!0),t.addToFilterList("".concat(e[0].id,"_checkbox"),e[0].textContent)})),i[1].slice(1,-1).split("~").forEach((function(e){t.$queryHaupia+="&".concat(i[0].replace("mul_","facet.filter."),'="').concat(e,'"')})))}if("sorting"===i[0]){var p=document.querySelector(o),f=E()(p).closest(".form__select-wrapper");E()(p).val("".concat(i[0],"→").concat(i[1])),f.find('[data-value="'.concat(i[0],"→").concat(i[1],'"]')).addClass("is-selected"),f.find("span.form__select-placeholder").html(f.find('[data-value="'.concat(i[0],"→").concat(i[1],'"] span')).html()),t.$query+="&sorting=".concat(i[1])}"language"===i[0]&&(t.$query+="&language=".concat(i[1]),t.$queryHaupia+="&language=".concat(i[1])),"page"===i[0]&&(t.$query+="&page=".concat(i[1]),t.$queryHaupia+="&page=".concat(i[1]),t.$paginationCurrentPage=i[1]),"numRows"===i[0]&&(t.$query+="&numRows=".concat(i[1]),t.$queryHaupia+="&numRows=".concat(i[1]),t.options.resultsPerPage.forEach((function(e){e.classList.remove(t.options.classes.isSelected),E()(e).hasClass("results-per-page__".concat(i[1]))&&e.classList.add(t.options.classes.isSelected)})))})),this.getAndFillMyResults(this.$queryHaupia),this.toggleVisibilityFilterList());var n=this.inputHandler.bind(this);this.$filterForm.find('input[type="radio"]').on(this.context.EVENTS.click,n),this.$filterForm.find('input[type="checkbox"]').on(this.context.EVENTS.click,n);var i=this.selectHandler.bind(this);this.$filterForm.find("li.form__select-element").on(this.context.EVENTS.click,i);var o=this.buttonHandler.bind(this);this.$filterForm.find("button.form__submit").on(this.context.EVENTS.click,o);var r=this.removeFromFilterListHandler.bind(this);this.$filterList.on(this.context.EVENTS.click,r);var s=this.filterResetHandler.bind(this);this.$filterForm.find("div.filter-finder-function__filter-reset").on(this.context.EVENTS.click,s),this.options.resultsPerPage.forEach((function(e){e.addEventListener("click",(function(n){t.options.resultsPerPage.forEach((function(e){e.classList.remove(t.options.classes.isSelected)})),e.classList.add(t.options.classes.isSelected),t.$paginationCurrentPage=1,t.toggleVisibilityFilterList(),t.writeQueryUrl(!0),t.getAndFillMyResults(t.$queryHaupia)}))})),[].slice.call(this.options.paginationArea.querySelector("div").childNodes).forEac
2h((function(e){e.addEventListener("click",(function(){[].slice.call(e.parentElement.childNodes).forEach((function(e){e&&e.classList.remove(t.options.classes.activeFilterItem)})),e.classList.add(t.options.classes.activeFilterItem)}))})),[].slice.call(this.options.paginationArea.childNodes).forEach((function(e){e.addEventListener("click",(function(n){e.id===t.options.selectors.paginationFirsPage?t.$paginationCurrentPage=1:e.id===t.options.selectors.paginationPrevPage?(t.$paginationCurrentPage=Number(t.options.paginationArea.querySelector(".".concat(t.options.classes.activeFilterItem)).innerHTML)-1,t.$paginationCurrentPage=t.$paginationCurrentPage>=1?t.$paginationCurrentPage:"1"):e.id===t.options.selectors.paginationNextPage?(t.$paginationCurrentPage=Number(t.options.paginationArea.querySelector(".".concat(t.options.classes.activeFilterItem)).innerHTML)+1,t.$paginationCurrentPage=t.$paginationCurrentPage<=t.$paginationNumberOfPage?t.$paginationCurrentPage:t.$paginationNumberOfPage):e.id===t.options.selectors.paginationLastPage?t.$paginationCurrentPage=Number(t.$paginationNumberOfPage):e.id===t.options.selectors.paginationNoOfPage&&([].slice.call(e.childNodes).forEach((function(e){e.classList.remove(t.options.classes.activeFilterItem)})),n.srcElement.classList.add(t.options.classes.activeFilterItem),t.$paginationCurrentPage=n.srcElement.innerHTML),t.toggleVisibilityFilterList(),t.writeQueryUrl(),t.getAndFillMyResults(t.$queryHaupia)}))}))}},{key:"getAndFillMyResults",value:function(t){var e,n=this;e="undefined"!=typeof haupiaUriFirstSpirit&&haupiaUriFirstSpirit?haupiaUriFirstSpirit:{hpLink:"https://haupia-lmu.asiososys.com/rest/api/v1/prepared_search/",hpUser:"[email protected]",hpPass:"ognjen123"},"?query="!==t.slice(0,7)&&(t="?query=*"+t);var i=e.hpLink+this.$sort+"/execute"+t,o=[{name:"Authorization",value:"Basic "+Xr.from(e.hpUser+":"+e.hpPass).toString("base64")}];this.getJSON(i,(function(t){void 0!==t.results&&n.populateResults(t)}),o)}},{key:"populateResults",value:function(t){var e=this;"undefined"!=typeof resultConfig&&resultConfig&&resultConfig,this.$paginationNumberOfPage=Math.ceil(t.numRows/t.rows),this.$paginationCurrentPage<=0?this.$paginationCurrentPage=1:this.$paginationCurrentPage,this.$paginationCurrentPage>=this.$paginationNumberOfPage?this.$paginationCurrentPage=this.$paginationNumberOfPage:this.$paginationCurrentPage,this.paginationPrintItem(this.$paginationNumberOfPage,this.$paginationCurrentPage);var n=this.options.resultArea.querySelector('[data-js-item="js-filter-finder-function-result-template"]'),i=this.options.resultArea.querySelector('[data-js-item="js-filter-finder-function-result-list"]');i.innerHTML="",this.options.resultArea.querySelector(".filter-finder-function__total-item-count").textContent=t.numRows,this.objectOrArrayToArray(t.results).forEach((function(t){var o=n.cloneNode(!0);o.removeAttribute("data-js-item"),resultConfig.resultTitle&&(o.querySelector(".filter-finder-function__results-item-link").textContent=e.arrayToString(t[resultConfig.resultTitle])),resultConfig.resultDesc?o.querySelector(".filter-finder-function__results-item-description").textContent=e.arrayToString(t[resultConfig.resultDesc]):o.querySelector(".filter-finder-function__results-item-description").textContent="",o.querySelector(".filter-finder-function__results-item-link").setAttribute("href",t.detailpage_link),i.appendChild(o)})),window.setTimeout((function(){e.el.classList.remove(e.options.classes.isLoading),t.numRows>0?e.el.classList.add(e.options.classes.isSuccess):e.el.classList.add(e.options.classes.isError)}),125)}},{key:"removeFromFilterListHandler",value:function(t){var e=this;if(t.preventDefault(),"BUTTON"===t.target.tagName){var n=t.target.parentElement.id.replace(this.options.selectors.filterListSuffix,""),i=this.options.filterForm.querySelector("#".concat(n)),o=i.getAttribute("name");if(t.target.parentElement.remove(),"cbx"===n.split("_")[0]&&(i.checked=!1),"rad"===o.split("_")[0]&&(i.checked=!1),"sel"===n.split("_")[0]&&(i.selectedIndex=0,[].slice.call(i.nextElementSibling.querySelectorAll(this.options.selectors.formSelectElement)).forEac
2h((function(t,n){0===n?(t.classList.add(e.options.classes.isSelected),i.nextElementSibling.firstElementChild.innerHTML=t.textContent):t.classList.remove(e.options.classes.isSelected)}))),"mul"===n.split("_")[0]){var r=E()(i).closest("div.select-multiple__overlay").find("select");r.find("option").length===r.find("option:checked").length+r.find("option:disabled").length&&(r.find("option#".concat(n.split("→")[0],"→all"))[0].removeAttribute("selected","selected"),E()(i).closest("div.select-multiple__results").find("input#".concat(n.split("→")[0],"→all_checkbox"))[0].checked=!1),i.checked=!1,r.find("option#".concat(i.id.replace("_checkbox","")))[0].removeAttribute("selected","selected")}this.toggleVisibilityFilterList(),this.writeQueryUrl(!0),this.getAndFillMyResults(this.$queryHaupia)}}},{key:"filterResetHandler",value:function(){var t=this;Object.values(this.$fields).forEach((function(e,n){e.tagName&&"input"===e.tagName.toLowerCase()&&("text"===e.type.toLowerCase()&&e.classList.contains("form__input-text")&&(e.value=""),"radio"===e.type.toLowerCase()&&e.classList.contains("form__radio-input")&&!0===e.checked&&(e.checked=!1,t.removeFromFilterList("".concat(e.id))),"checkbox"===e.type.toLowerCase()&&e.classList.contains("form__checkbox-input")&&!0===e.checked&&(e.checked=!1,t.removeFromFilterList("".concat(e.id))),"checkbox"===e.type.toLowerCase()&&e.classList.contains("select-multiple__checkbox")&&e.checked&&(e.checked=!1,"all"!==e.id.split("→")[1].replace("_checkbox","")&&t.removeFromFilterList("".concat(e.id))))})),Object.values(this.$selects).forEach((function(e,n){if(e.tagName&&"select"===e.tagName.toLowerCase()&&("select-one"===e.type.toLowerCase()&&e.classList.contains("form__select-input")&&(e.value&&t.removeFromFilterList("".concat(e.id)),e.selectedIndex=0,[].slice.call(e.parentElement.lastChild.querySelectorAll("li")).forEach((function(n,i){0===i?(n.classList.add(t.options.classes.isSelected),e.nextElementSibling.firstElementChild.innerHTML=n.textContent):n.classList.remove(t.options.classes.isSelected)}))),"select-multiple"===e.type.toLowerCase()&&e.classList.contains("select-multiple__filter-select"))){e.selectedIndex=-1;for(var i=0;i<e.options.length;i++)e.options[i].removeAttribute("selected","selected")}})),this.toggleVisibilityFilterList(),window.setTimeout((function(){t.writeQueryUrl(!0),t.getAndFillMyResults(t.$queryHaupia)}),125)}},{key:"inputHandler",value:function(t){var e=this;t.target.checked?"all_checkbox"===t.target.id.split("→")[1]?t.srcElement.offsetParent.querySelectorAll("div.select-multiple__checkbox-container").forEach((function(t,n){n>0&&!1===t.firstElementChild.disabled&&e.addToFilterList(t.firstElementChild.id,t.lastElementChild.textContent)})):this.addToFilterList(t.target.id,t.target.nextElementSibling.textContent,t.target.name):"all_checkbox"===t.target.id.split("→")[1]?t.srcElement.offsetParent.querySelectorAll("div.select-multiple__checkbox-container").forEach((function(t,n){n>0&&!1===t.firstElementChild.disabled&&e.removeFromFilterList(t.firstElementChild.id)})):this.removeFromFilterList(t.target.id),this.toggleVisibilityFilterList(),window.setTimeout((function(){e.writeQueryUrl(!0),e.getAndFillMyResults(e.$queryHaupia)}),125)}},{key:"selectHandler",value:function(t){var e=this;"sorting"===t.target.parentElement.getAttribute("data-value").split("→")[0]?this.$sort=t.target.parentElement.getAttribute("data-value").split("→")[1]:t.target.parentElement.getAttribute("data-value")?this.addToFilterList(t.target.offsetParent.parentElement.previousElementSibling.id,t.target.textContent):this.removeFromFilterList(t.target.offsetParent.parentElement.previousElementSibling.id),this.toggleVisibilityFilterList(),window.setTimeout((function(){e.writeQueryUrl(!0),e.getAndFillMyResults(e.$queryHaupia)}),125)}},{key:"buttonHandler",value:function(t){var e=this;t.preventDefault(),t.stopPropagation(),this.toggleVisibilityFilterList(),window.setTimeout((function(){e.writeQueryUrl(!0),e.getAndFillMyResults(e.$queryHaupia)}),125)}},{key:"writeQueryUrl",value:function(t){var e=this;this.$query="",this.$queryHaupia="",Object.values(this.$fields).forEac
2h((function(t,n){t.tagName&&"input"===t.tagName.toLowerCase()&&("text"===t.type.toLowerCase()&&t.classList.contains("form__input-text")&&(""!==t.value&&t.value!==t.defaultValue&&0!==t.value.length?(e.$query+="?".concat(t.name,"=").concat(t.value),e.$queryHaupia+="?".concat(t.name,"=").concat(t.value)):e.$queryHaupia+="?query=*"),"radio"===t.type.toLowerCase()&&t.classList.contains("form__radio-input")&&t.checked&&(e.$query+="&".concat(t.name,'="').concat(t.dataset.value,'"'),e.$queryHaupia+="&".concat(t.name.replace("rad_","facet.filter.").split("→")[0],'="').concat(t.dataset.value,'"')),"checkbox"===t.type.toLowerCase()&&t.classList.contains("form__checkbox-input")&&t.checked&&(e.$query+="&".concat(t.name,'="').concat(t.value,'"'),e.$queryHaupia+="&".concat(t.name.replace("cbx_","facet.filter.").split("→")[0],'="').concat(t.value,'"')))})),Object.values(this.$selects).forEach((function(t,n){if(t.tagName&&"select"===t.tagName.toLowerCase()&&("select-one"===t.type.toLowerCase()&&t.classList.contains("form__select-input")&&""!==t.value&&t.value!==t.defaultValue&&0!==t.value.length&&(e.$query+="&".concat(t.name,'="').concat(t.value,'"'),e.$queryHaupia+="&".concat(t.name.replace("sel_","facet.filter.").split("→")[0],'="').concat(t.value,'"')),"select-multiple"===t.type.toLowerCase()&&t.classList.contains("select-multiple__filter-select"))){var i=[].map.call(t.selectedOptions,(function(t){return t.value}));i.length&&("all"===t.value?e.$query+="&".concat(t.name.split("→")[0],'="').concat(t.value,'"'):e.$query+="&".concat(t.name.split("→")[0],'="').concat(i.toString().replace(/,/g,"~"),'"'),e.objectOrArrayToArray(i).forEach((function(n){"all"!==n&&(e.$queryHaupia+="&".concat(t.name.replace("mul_","facet.filter.").split("→")[0],'="').concat(n,'"'))})))}}));var n=t?"1":this.$paginationCurrentPage,i="";this.options.resultsPerPage.forEach((function(t){E()(t).hasClass(e.options.classes.isSelected)&&(i=t.innerHTML)})),this.$query+="&sorting=".concat(this.$sort,"&language=").concat(this.$lang,"&numRows=").concat(i,"&page=").concat(n,"&numRows=").concat(i),this.$query=this.$query.substr(1),this.$queryHaupia+="&language=".concat(this.$lang,"&page=").concat(n,"&numRows=").concat(i),history.pushState(this.$query,"Search history","".concat(window.location.href.split("?")[0],"?").concat(this.$query))}},{key:"paginationPrintItem",value:function(t,e){var n=Number(t),i=Number(e);if(this.options.paginationArea.querySelector("#".concat(this.options.selectors.paginationFirsPage)).classList.remove(this.options.classes.isDisabled),this.options.paginationArea.querySelector("#".concat(this.options.selectors.paginationPrevPage)).classList.remove(this.options.classes.isDisabled),this.options.paginationArea.querySelector("#".concat(this.options.selectors.paginationNextPage)).classList.remove(this.options.classes.isDisabled),this.options.paginationArea.querySelector("#".concat(this.options.selectors.paginationLastPage)).classList.remove(this.options.classes.isDisabled),this.options.paginationArea.querySelector("div").innerHTML="",n<6)for(var o=1;o<=n;o++)this.paginationCreateItem(o);else i>2&&this.paginationCreateItem(1),i>3&&this.paginationCreateItem("..."),i>1&&this.paginationCreateItem(i-1),this.paginationCreateItem(i),i<n&&this.paginationCreateItem(i+1),i<n-2&&this.paginationCreateItem("..."),i<n-1&&this.paginationCreateItem(n);n>0&&document.getElementById("".concat(this.options.selectors.paginationItem).concat(i)).classList.add(this.options.classes.activeFilterItem),1===Number(this.$paginationCurrentPage)&&(this.options.paginationArea.querySelector("#".concat(this.options.selectors.paginationFirsPage)).classList.add(this.options.classes.isDisabled),this.options.paginationArea.querySelector("#".concat(this.options.selectors.paginationPrevPage)).classList.add(this.options.classes.isDisabled)),Number(this.$paginationCurrentPage)===Number(this.$paginationNumberOfPage)&&(this.options.paginationArea.querySelector("#".concat(this.options.selectors.paginationNextPage)).classList.add(this.options.classes.isDisabled),this.options.paginationArea.querySelector("#".concat(this.options.selectors.paginationLastPage)).classList.add(this.options.classes.isDisabled))}},{key:"paginationCreateItem",value:function(t){var e="";isNaN(t)?e=document.createElement("SPAN"):(e=document.createElement("A")).setAttribute("id","".concat(this.options.selectors.paginationItem).concat(t)),e.appendChild(document.createTextNode(t)),this.options.paginationArea.querySelector("div").appendChild(e)}},{key:"addToFilterList",value:function(t,e,n){var i=this,o="".concat(t).concat(this.options.selectors.filterListSuffix
2),r=n?'name="'.concat(n,'"'):"",s='<div id="'.concat(o,'" ').concat(r,">").concat(e," <button></button></div>");this.options.filterList.querySelectorAll("div").forEach((function(e){e.id.replace(i.options.selectors.filterListSuffix,"")===t?i.removeFromFilterList(t):e.getAttribute("name")===n&&i.removeFromFilterList(e.id.replace(i.options.selectors.filterListSuffix,""))})),this.options.filterList.innerHTML+=s}},{key:"removeFromFilterList",value:function(t){var e="".concat(t).concat(this.options.selectors.filterListSuffix),n=document.getElementById(e);return n.parentNode.removeChild(n)}},{key:"toggleVisibilityFilterList",value:function(){this.el.classList.remove(this.options.classes.isSuccess,this.options.classes.isError),this.el.classList.add(this.options.classes.isLoading),this.options.filterList.childNodes.length<=1?(this.options.filterList.parentElement.style.display="none",this.options.filterReset.parentElement.style.display="none"):(this.options.filterList.parentElement.style.display="flex",this.options.filterReset.parentElement.style.display="inline-block")}},{key:"render",value:function(){return this}}])&&ts(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),s}(O());function as(t){return as="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},as(t)}function ls(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return cs(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?cs(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,o=function(){};return{s:o,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},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 r,s=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,r=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw r}}}}function cs(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function us(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,ms(i.key),i)}}function ps(t,e){return ps=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ps(t,e)}function fs(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ds(t){return ds=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ds(t)}function hs(t,e,n){return(e=ms(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ms(t){var e=function(t,e){if("object"!==as(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!==as(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===as(e)?e:String(e)}const vs=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ps(t,e)}(s,t);var e,n,i,o,r=(i=s,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=ds(i);if(o){var n=ds(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===as(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return fs(t)}(this,t)});function s(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),hs(fs(e=r.call(this,t,{selectors:{jsonLink:'[data-js-item="js-json-link"]',mainContainer:'[data-js-item="js-hochschulzugang"]',anchorNavigation:'[data-js-module="anchor-nav"]',admissionModality:'[data-js-item="js-admission-modality"]',defaultText:'[data-js-item="js-default-text"]'},classes:{isLoading:"is-loading"}})),"$el",E()(e.el)),hs(fs(e),"$jsonLink",E()(e.options.selectors.jsonLink,e.el)),hs(fs(e),"$title",void 0),hs(fs(e),"$subTitle",void 0),hs(fs(e),"$admissionModalityFromUrl",void 0),hs(fs(e),"$linkFromUrl",void 0),hs(fs(e),"$minorSubjectsFromUrl",void 0),hs(fs(e),"$nationalityFromUrl",void 0),hs(fs(e),"$printStatus",!1),hs(fs(e),"getJSON",(function(t,e,n){var i=new XMLHttpRequest;
2i.open("GET",t,!0),n&&n.forEach((function(t){i.setRequestHeader(t.name,t.value)})),i.onload=function(){if(4===i.readyState&&200===i.status){var t=i.responseText;e(JSON.parse(t))}else console.error(i.statusText)},i.send(null)})),e}return e=s,(n=[{key:"willMount",value:function(){console.log("Component Hochschulzugang will mount!")}},{key:"didMount",value:function(){console.log("Component Hochschulzugang mounted!")}},{key:"bindEvents",value:function(){var t=this;this.options.mainContainer=document.querySelector(this.options.selectors.mainContainer),this.options.jsonLink=document.querySelector(this.options.selectors.jsonLink).getAttribute("data-js-json-link"),this.options.anchorNavigation=this.options.mainContainer.querySelector(this.options.selectors.anchorNavigation),this.options.admissionModality=this.options.mainContainer.querySelector(this.options.selectors.admissionModality),this.options.defaultText=document.querySelector(this.options.selectors.defaultText);var e=decodeURI(window.location.href.split("?")[1]).split("&");if("undefined"===e[0])return this.options.mainContainer.classList.remove(this.options.classes.isLoading),0;e.forEach((function(e){var n=e.split("=");"nationality"===n[0]&&(t.$title=n[1]),"admissionModality"===n[0]&&(t.$admissionModalityFromUrl=n[1],t.$subTitle=n[1]),"link"===n[0]&&(t.$linkFromUrl=n[1]),"minorSubjects"===n[0]&&(t.$minorSubjectsFromUrl=n[1]),"nationality"===n[0]&&(t.$nationalityFromUrl=n[1])})),this.getAndFillData(),this.options.mainContainer.classList.remove(this.options.classes.isLoading)}},{key:"initializationForm",value:function(t){if(console.log("DD1",t.settings.nationality),console.log("DD2",this.checkIfExist(this.$nationalityFromUrl,t.settings.nationality)),this.checkIfExist(this.$admissionModalityFromUrl,t.settings.admissionModality)&&this.checkIfExist(this.$nationalityFromUrl,t.settings.nationality)){var e,n=ls(t.admissionModality);try{for(n.s();!(e=n.n()).done;){var i=e.value;i.admissionModality===this.$admissionModalityFromUrl&&this.createDomElement(i,"admissionModality")}}catch(t){n.e(t)}finally{n.f()}}var o=document.createElement("p"),r=document.createElement("a");r.innerHTML=t.linkToSubject.title,r.href=this.$linkFromUrl,r.target="_blank",r.classList.add("is-external"),o.appendChild(r),this.options.admissionModality.appendChild(o);var s=document.createElement("h3"),a=document.createElement("p");s.innerHTML=t.minorSubjects.title,a.innerHTML=t.minorSubjects.content[this.$minorSubjectsFromUrl],this.options.admissionModality.appendChild(s),this.options.admissionModality.appendChild(a),this.options.anchorNavigation.querySelector(".anchor-nav__headline").textContent=t.anchorLinks.title,this.checkIfExist(this.$admissionModalityFromUrl,t.settings.admissionModality)&&this.checkIfExist(this.$nationalityFromUrl,t.settings.nationality)?(this.printResult(t,"nationality"),this.printResult(t,"application"),this.printResult(t,"admission"),this.printResult(t,"registration"),this.printResult(t,"subjectChange"),this.options.mainContainer.querySelector(".header-article__article-headline").innerText=this.$title,this.options.mainContainer.querySelector(".header-article__article-paragraph").innerHTML=this.$subTitle,this.options.defaultText.remove()):(this.options.anchorNavigation.querySelector(".anchor-nav__headline").remove(),this.options.anchorNavigation.querySelector(".anchor-nav__list").remove(),this.options.admissionModality.remove())}},{key:"checkIfExist",value:function(t,e){var n,i=ls(e);try{for(i.s();!(n=i.n()).done;)if(n.value===t)return!0}catch(t){i.e(t)}finally{i.f()}return!1}},{key:"printResult",value:function(t,e){var n,i=ls(t[e]);try{for(i.s();!(n=i.n()).done;){var o=n.value;o.admissionModality===this.$admissionModalityFromUrl&&o.nationality===this.$nationalityFromUrl&&this.createDomElement(o,e)}}catch(t){i.e(t)}finally{i.f()}}},{key:"createDomElement",value:function(t,e){var n;n="nationality"===e?t.nationality:"admissionModality"===e?t.admissionModality:t.title;var i=document.createElement("h2");i.id=e,i.innerHTML=n,this.options.admissionModality.appendChild(i);var o=document.createElement("a");o.setAttribute("data-js-item","anchor-link"),o.classList.add("anchor-nav__link"),o.href="#"+e,o.title=n,o.innerHTML=n;var r=document.createElement("li");r.classList.add("anchor-nav__list-item"),r.appendChild(o),this.options.anchorNavigation.querySelector(".anchor-nav__list").appendChild(r);var s=document.createElement("div");s.classList.add("rte__contentcreator"),s.innerHTML=t.content,this.options.admissionModality.appendChild(s)}},{key:"getAndFillData",value:function(){var t=this,e=this.options.jsonLink;e&&this.getJSON(e,(function(e){void 0!==e&&t.initializationForm(e)}))}},{key:"render",value:function(){return this}}])&&us(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),s}(O());function ys(t){return ys="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},ys(t)}function bs(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,ks(i.key),i)}}
2function gs(t,e){return gs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},gs(t,e)}function ws(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _s(t){return _s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},_s(t)}function ks(t){var e=function(t,e){if("object"!==ys(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!==ys(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===ys(e)?e:String(e)}const Ss=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&gs(t,e)}(s,t);var e,n,i,o,r=(i=s,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=_s(i);if(o){var n=_s(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===ys(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return ws(t)}(this,t)});function s(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),function(t,e,n){(e=ks(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}(ws(e=r.call(this,t,{selectors:{},classes:{}})),"$el",E()(e.el)),e}return e=s,(n=[{key:"didMount",value:function(){console.log("Component SearchBox mounted!")}},{key:"render",value:function(){return this}}])&&bs(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),s}(O());function js(t){return js="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},js(t)}function Es(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,Ts(i.key),i)}}function Cs(t,e){return Cs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Cs(t,e)}function Os(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function xs(t){return xs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},xs(t)}function Ts(t){var e=function(t,e){if("object"!==js(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!==js(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===js(e)?e:String(e)}const Ps=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Cs(t,e)}(s,t);var e,n,i,o,r=(i=s,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=xs(i);if(o){var n=xs(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===js(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Os(t)}(this,t)});function s(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),function(t,e,n){(e=Ts(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}(Os(e=r.call(this,t,{selectors:{radioButton:'[data-js-item="js-search-option-radio"]'},classes:{},searchOptionRadioButtons:[],searchOptionForm:"",searchOptionHidden:"",searchOptionSearchBox:"",searchOptionGoogleInput:""})),"$el",E()(e.el)),e}return e=s,(n=[{key:"didMount",value:function(){if(console.log("Component SearchOption mounted!"),this.options.searchOptionForm=document.querySelector('[data-js-item="js-search-option-form"]'),null!==this.options.searchOptionForm&&(this.options.searchOptionRadioButtons=[].slice.call(this.options.searchOptionForm.querySelectorAll('[data-js-item="js-search-option-radio"]')),this.options.searchOptionRadioButtons.length>0)){this.options.searchOptionRadioButtons.forEach((function(t){t.checked=!1}
2));var t=this.getQueryStringarameterByName("gsearch-t");if(null!==t){var e=!1;this.options.searchOptionRadioButtons.forEach((function(n){n.value==t&&(n.checked=!0,e=!0)})),e||(this.options.searchOptionRadioButtons[0].checked=!0)}else this.options.searchOptionRadioButtons[0].checked=!0}}},{key:"render",value:function(){return this}},{key:"events",get:function(){return{"{{context.EVENTS.click}} {{this.options.selectors.radioButton}}":"radioButtonChangeSearch"}}},{key:"radioButtonChangeSearch",value:function(t,e){null!==this.options.searchOptionForm&&(this.options.searchOptionHidden=this.options.searchOptionForm.querySelector('[data-js-item="js-search-option-input-hidden"]'),this.options.searchOptionSearchBox=document.querySelector('[data-js-item="js-search-box-google"]'),null!==this.options.searchOptionSearchBox&&(this.options.searchOptionGoogleInput=this.options.searchOptionSearchBox.querySelector('[name="search"]')),null!==this.options.searchOptionGoogleInput&&(this.options.searchOptionRadioButtons.length>0&&this.options.searchOptionRadioButtons.forEach((function(t){t.checked=!1})),e.checked=!0,this.options.searchOptionHidden.value=this.options.searchOptionGoogleInput.value,this.options.searchOptionForm.submit()))}},{key:"getQueryStringarameterByName",value:function(t,e){e||(e=window.location.href),t=t.replace(/[\[\]]/g,"\\$&");var n=new RegExp("[?&]"+t+"(=([^&#]*)|&|#|$)").exec(e);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null}}])&&Es(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),s}(O());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 As(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,Rs(i.key),i)}}function Ls(t,e){return Ls=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ls(t,e)}function Is(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ds(t){return Ds=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ds(t)}function Fs(t,e,n){return(e=Rs(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Rs(t){var e=function(t,e){if("object"!==$s(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!==$s(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===$s(e)?e:String(e)}const Ns=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ls(t,e)}(a,t);var e,n,i,o,r,s=(o=a,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=Ds(o);if(r){var n=Ds(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return 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 Is(t)}(this,t)});function a(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),Fs(Is(e=s.call(this,t,{classes:{down:"is-scrollable-down",left:"is-scrollable-left",right:"is-scrollable-right",up:"is-scrollable-up"},activeLetterElement:[],letterItems:[],selectedLettersElement:[],selectedLetters:[],allselectedLetters:["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],isVerticalScroll:!1,offset:20,scrollToEnd:!1,selectors:{scrollC
2ontent:'[data-js-item="letter-scroll-content"]',scrollIndicator:'[data-js-item="letter-scroll-indicator"]',scrollWrapper:'[data-js-item="letter-scroll-wrapper"]',letterItemCheckbox:'[data-js-item="letter-item-chbx"]',choosenAZField:'[data-js-item="choosen-az"]'}})),"$el",E()(e.el)),Fs(Is(e),"$scrollIndicator",E()(e.options.selectors.scrollIndicator,e.$el)),Fs(Is(e),"$scrollWrapper",E()(e.options.selectors.scrollWrapper,e.$el)),Fs(Is(e),"$scrollContent",E()(e.options.selectors.scrollContent,e.$el)),Fs(Is(e),"$choosenAZField",E()(e.options.selectors.choosenAZField,e.$el)),Fs(Is(e),"_wrapperDimension",null),Fs(Is(e),"_contentDimension",null),e}return e=a,i=[{key:"info",get:function(){return{version:"1.0.0"}}}],(n=[{key:"subscribe",get:function(){return{"{{context.EVENTS.resize}}":"update"}}},{key:"wrapperDimension",get:function(){return this._wrapperDimension},set:function(t){this._wrapperDimension=t}},{key:"contentDimension",get:function(){return this._contentDimension},set:function(t){this._contentDimension=t}},{key:"bindEvents",value:function(){var t=this;this.options.letterItems=this.el.querySelectorAll('[data-js-item="letter-item-chbx"]'),this.options.letterItems.length>0&&(this.options.letterItems.forEach((function(e){e.addEventListener("click",(function(){t.handleLetterItems(e)}))})),this.options.letterItems.forEach((function(e){e.addEventListener("keydown",(function(n){13===(n.which||n.keyCode)&&t.options.selectedLetters.includes(e.value.toUpperCase())&&(e.checked?e.checked=!1:e.checked=!0,t.handleLetterItems(e))}))})));var e=this.update.bind(this);this.$scrollWrapper.on(this.context.EVENTS.scroll,e)}},{key:"didMount",value:function(){var t=this;this.options.isVerticalScroll?(this.scrollStartClass=this.options.classes.up,this.scrollEndClass=this.options.classes.down,this.scrollFunc="scrollTop"):(this.scrollStartClass=this.options.classes.left,this.scrollEndClass=this.options.classes.right,this.scrollFunc="scrollLeft"),this.update(),this.options.selectedLettersElement=this.el.querySelectorAll('[data-js-item-letters="selected-letters"]'),this.options.selectedLettersElement.length>0&&this.options.selectedLettersElement[0].getAttribute("data-js-letters-content")&&this.options.selectedLettersElement[0].getAttribute("data-js-letters-content").length>0?this.options.selectedLetters=this.options.selectedLettersElement[0].getAttribute("data-js-letters-content").toUpperCase().split(","):this.options.selectedLetters=this.options.allselectedLetters,this.options.letterItems.forEach((function(e){t.options.selectedLetters.includes(e.value.toUpperCase())||(e.closest("div").classList.add("is-not-included"),e.setAttribute("disabled","disabled"))}))}},{key:"render",value:function(){return this}},{key:"update",value:function(t){this.updateDimensions(),t&&"resize"!==t.type||!this.options.scrollToEnd||(this.$scrollWrapper[0][this.scrollFunc]=this.contentDimension),this.updateClasses()}},{key:"updateClasses",value:function(){var t=this.$scrollWrapper[0][this.scrollFunc];this.contentDimension<=this.wrapperDimension?this.$scrollIndicator.removeClass(this.scrollStartClass+" "+this.scrollEndClass):(t<=this.options.offset?this.$scrollIndicator.removeClass(this.scrollStartClass):this.$scrollIndicator.addClass(this.scrollStartClass),t>=this.contentDimension-this.wrapperDimension-this.options.offset?this.$scrollIndicator.removeClass(this.scrollEndClass):this.$scrollIndicator.addClass(this.scrollEndClass))}},{key:"updateDimensions",value:function(){this.options.isVerticalScroll?(this.wrapperDimension=this.$scrollWrapper[0].clientHeight,this.contentDimension=this.$scrollContent.outerHeight(!0)):(this.wrapperDimension=this.$scrollWrapper[0].clientWidth,this.contentDimension=this.$scrollContent.outerWidth(!0))}},{key:"handleLetterItems",value:function(t){this.options.selectedLetters.includes(t.value.toUpperCase())?(t.checked?(this.options.letterItems.forEach((function(t){t.checked=!1})),t.checked=!0,this.$choosenAZField.val(t.value)):this.$choosenAZField.val(""),this.$choosenAZField.trigger("change")):t.checked=!1}}])&&As(e.prototype,n),i&&As(e,i),Object.defineProperty(e,"prototype",{writable:!1}),a}(O());function Ms(t){return Ms="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},Ms(t)}function Bs(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,zs(i.key),i)}}
2function qs(t,e){return qs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},qs(t,e)}function Hs(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Vs(t){return Vs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Vs(t)}function Ws(t,e,n){return(e=zs(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function zs(t){var e=function(t,e){if("object"!==Ms(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!==Ms(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Ms(e)?e:String(e)}var Zs=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&qs(t,e)}(s,t);var e,n,i,o,r=(i=s,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=Vs(i);if(o){var n=Vs(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===Ms(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Hs(t)}(this,t)});function s(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),Ws(Hs(e=r.call(this,t,{closedLabel:"",openedLabel:"",titleLabel:"",showToggler:!1,selectors:{article:'[data-css="c-rte"]',anchorLink:'[data-js-item="anchor-link"]',hiddenList:'[data-js-item="hidden-list"]',header:'[data-js-item="header"]'},toggleMoreLinksEvt:"cta:toggleMoreAnchorNavLinks"})),"$el",E()(e.el)),Ws(Hs(e),"$header",E()(e.options.selectors.header)),e}return e=s,n=[{key:"events",get:function(){return{}}},{key:"subscribe",get:function(){return{}}},{key:"bindEvents",value:function(){this.addSmoothScrollHandler()}},{key:"addSmoothScrollHandler",value:function(){var t=this.context,e=this.$header.outerHeight();this.$el.on("click",'[data-js-item="table-of-content-link"]',(function(n){n.preventDefault();var i=this.getAttribute("href").substring(1),o=document.getElementById(i),r=t.detections.width;if(o){var s=-(e+20);r<768&&(s=-20),Ft(o,{offset:s})}}))}},{key:"addIsEmtpy",value:function(){this.$el.addClass("is-empty")}},{key:"render",value:function(){var t=document.querySelector(this.options.selectors.article);if(t){var e=this.getHeadingsFromArticle(t);if(0!==e.length){var n=this.assignIdsToHeading(e);if(0!==n.length){var i=this.mapHeadingsToData(n.map((function(t){return t.el}))),o=this.buildTocHtmlWithToggle(i);return this.$el.html(o),this.$hiddenList=E()(this.options.selectors.hiddenList,this.el),this.bindEvents(),this.$hiddenList.length&&(this.listToggler=this.createToggler(),this.listToggler.create(),this.listToggler.didMount()),this}this.addIsEmtpy()}else this.addIsEmtpy()}else this.addIsEmtpy()}},{key:"didMount",value:function(){}},{key:"createToggler",value:function(){return new at({el:this.$hiddenList[0],namespace:"Toggler",context:this.context,options:{globalEvent:this.options.toggleMoreLinksEvt,globalEventId:this.instanceId,setOverFlow:!0,toggleTabindexElems:this.options.selectors.anchorLink}})}},{key:"calculateScrollPosition",value:function(t,e){var n=e+20;return t<768&&(n=16),n}},{key:"assignIdsToHeading",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=new Set;return e.map((function(e){if(!e.innerText.trim())return null;var i=t.slugify(e.innerText);if(!i)return null;for(var o="toc_".concat(i),r=o,s=1;n.has(r);)r="".concat(o,"-").concat(s),s++;return n.add(r),e.id=r,e.setAttribute("date-name",r),{el:e,id:r}}
2)).filter(Boolean)}},{key:"getHeadingsFromArticle",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"h2, h3, h4, h5";return t?Array.from(t.querySelectorAll(e)):[]}},{key:"mapHeadingsToData",value:function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map((function(t){return{text:t.innerText,id:t.id,tag:t.tagName.toLowerCase()}}))}},{key:"buildTocHtmlList",value:function(){var t=this,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10;return'\n\t\t\t<ul class="table-of-content__list">\n\t\t\t\t'.concat((arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).slice(e,n).map((function(e){return t.buildTocHtmlItem(e)})).join(""),"\n\t\t\t</ul>\n\t\t")}},{key:"buildTocHtmlItem",value:function(t){var e=this.getClassNameFromTag(t.tag);return'\n\t\t\t<li class="table-of-content__list-item">\n\t\t\t\t<a class="table-of-content__link '.concat(e,'" href="#').concat(t.id,'" data-js-item="table-of-content-link" title="Springe zu: ').concat(t.text,'">\n\t\t\t\t\t').concat(t.text,"\n\t\t\t\t</a>\n\t\t\t</li>\n\t\t")}},{key:"buildTocHtmlWithToggle",value:function(t){var e=t.length>10&&this.options.showToggler,n=e?10:t.length,i=e?10:0,o=e?t.length:0;return'\n\t\t\t<div class="grid__container">\n\t\t\t\t<div class="grid__row">\n\t\t\t\t\t<div class="table-of-content__area">\n\t\t\t\t\t\t<div class="table-of-content__headline">'.concat(this.options.titleLabel,'</div>\n\t\t\t\t\t\t<div class="table-of-content__inner" data-js-item="toc-inner">\n\t\t\t\t\t\t\t').concat(this.buildTocHtmlList(t,0,n),"\n\t\t\t\t\t\t\t").concat(this.renderCollapsedList(t,i,o),"\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t").concat(this.renderToggleButton(e),"\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t")}},{key:"renderCollapsedList",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;return'\n\t\t\t<div id="unique-id-hidden-list" style="height=0px; overflow=hidden"\n\t\t\t\tclass="c-table-of-content__hidden-list-wrapper" data-js-item="hidden-list" data-js-height="216" >\n\t\t\t\t'.concat(this.buildTocHtmlList(t,e,n),"\n\t\t\t</div>\n\t\t")}},{key:"renderToggleButton",value:function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?'\n\t\t\t<div class="table-of-content__cta-wrapper">\n\t\t\t\t<button class="c-cta--anchor-nav"\n\t\t\t\t\tdata-js-module="cta" data-js-options=\'{\n\t\t\t\t\t\t"globalEvent":"cta:toggleMoreAnchorNavLinks",\n\t\t\t\t\t\t"closedLabel": "'.concat(this.options.closedLabel,'",\n\t\t\t\t\t\t"openedLabel": "').concat(this.options.openedLabel,'"\n\t\t\t\t\t\t}\'\n\t\t\t\t\tdata-css="c-cta" title="').concat(this.options.closedLabel,'" aria-expanded="false">\n\t\t\t\t\t\t<span class="cta__content" data-js-item="cta-content">').concat(this.options.closedLabel,"</span>\n\t\t\t\t</button>\n\t\t\t</div>\n\t\t"):""}},{key:"getClassNameFromTag",value:function(){return"is-headline".concat({h2:"2",h3:"3",h4:"4",h5:"5"}[arguments.length>0&&void 0!==arguments[0]?arguments[0]:""]||"")}},{key:"slugify",value:function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-")}}],n&&Bs(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),s}(O());const Us=Zs;function Ys(t){return Ys="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},Ys(t)}function Qs(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,Gs(i.key),i)}}function Js(t,e){return Js=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Js(t,e)}function Ks(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}
2function Xs(t){return Xs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Xs(t)}function Gs(t){var e=function(t,e){if("object"!==Ys(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!==Ys(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Ys(e)?e:String(e)}const ta=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Js(t,e)}(s,t);var e,n,i,o,r=(i=s,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=Xs(i);if(o){var n=Xs(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===Ys(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Ks(t)}(this,t)});function s(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),function(t,e,n){(e=Gs(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}(Ks(e=r.call(this,t,{selectors:{},classes:{},personImg:[],personName:[]})),"$el",E()(e.el)),e}return e=s,(n=[{key:"didMount",value:function(){console.log("Component PersonOverview mounted!")}},{key:"render",value:function(){return this}},{key:"bindEvents",value:function(){var t=this;this.options.personImg=this.el.querySelectorAll('[data-js-item="js-person-overview-img"]'),this.options.personName=this.el.querySelectorAll('[data-js-item="js-person-overview-name"]'),this.options.personImg.length>0&&this.options.personImg.forEach((function(e){e.addEventListener("click",(function(){t.jsShowLightbox(e)}))})),this.options.personName.length>0&&this.options.personName.forEach((function(e){e.addEventListener("click",(function(){t.jsShowLightbox(e)}))}))}},{key:"jsShowLightbox",value:function(t){E()(t).closest('[data-js-item="js-person-overview-element"]')[0].querySelector('[data-js-item="overlay-handler-cta"]').click()}}])&&Qs(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),s}(O());function ea(t){return ea="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},ea(t)}function na(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,sa(i.key),i)}}function ia(t,e){return ia=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ia(t,e)}function oa(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ra(t){return ra=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ra(t)}function sa(t){var e=function(t,e){if("object"!==ea(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!==ea(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===ea(e)?e:String(e)}const aa=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ia(t,e)}(s,t);var e,n,i,o,r=(i=s,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=ra(i);if(o){var n=ra(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===ea(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return oa(t)}(this,t)});function s(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),function(t,e,n){(e=sa(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}(oa(e=r.call(this,t,{selectors:{},classes:{}})),"$el",E()(e.el)),e}return e=s,(n=[{key:"subscribe",get:function(){return{"{{context.EVENTS.resize}}":"render"}}},{key:"didMount",value:function(){var t=this;setTimeout((function(){t.getPersonDetailHeightScroll()}),3500)}},{key:"render",value:function(){var t=this;setTimeout((function(){t.getPersonDetailHeightScroll()}),500)}},{key:"getPersonDetailHeightScroll",value:function(){var t=window.innerHeight;this.options.screenHeight=t,this.el.style.height="auto",this.el.style.overflowY="visible",this.$el.outerHeight()>t?(this.el.style.height=t+"px",this.el.style.overflowY="scroll"):(this.el.style.height="auto",this.el.style.overflowY="visible")}}])&&na(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),s}(O());s.Z.onInitialize(function(t){s.Z.use(u.Z,{DOM:t}),s.Z.use(d.ZP,{templates:S,engine:k,helpers:[v,y,b,g,w]}),s.Z.use(l.Z,{furtherEvents:h}),s.Z.use(a.Z),s.Z.use(c.Z),s.Z.use(p.ZP,{useMutationObserver:!0,internalCacheOnly:!1}),s.Z.use(_.Z),s.Z.use(m),s.Z.use(f),s.Z.globalBreakpoint=1024;var e=s.Z.$("html");e.removeClass("no-js").addClass("js"),s.Z.detections.touch?e.addClass("touch"):e.addClass("no-touch")}
2($)),s.Z.afterInitialize((function(){s.Z.detections.touch||new Dt({},s.Z),new Se({context:s.Z}).create(),s.Z.modules.add({namespace:"header",module:D}),s.Z.modules.add({namespace:"accordion",module:W}),s.Z.modules.add({namespace:"scroll-indicator",module:X}),s.Z.modules.add({namespace:"definition-list",module:St}),s.Z.modules.add({namespace:"skiplinks",module:Pt}),s.Z.modules.add({namespace:"cta",module:mt}),s.Z.modules.add({namespace:"toggler",module:at}),s.Z.modules.add({namespace:"anchor-nav",module:Wt}),s.Z.modules.add({namespace:"main-navigation",module:en}),s.Z.modules.add({namespace:"quote",module:Gt}),s.Z.modules.add({namespace:"back-to-top",module:se}),s.Z.modules.add({namespace:"overlay-handler",module:$e}),s.Z.modules.add({namespace:"slider",module:Be}),s.Z.modules.add({namespace:"timeline",module:Ye}),s.Z.modules.add({namespace:"search-overlay",module:cn}),s.Z.modules.add({namespace:"mobile-nav-toggler",module:vn}),s.Z.modules.add({namespace:"filterable-list",module:jn,render:!1}),s.Z.modules.add({namespace:"form-ajax",module:Dn}),s.Z.modules.add({namespace:"back-button",module:pi}),s.Z.modules.add({namespace:"select-replace",module:gi}),s.Z.modules.add({namespace:"share-option",module:Oi}),s.Z.modules.add({namespace:"form-dropdown",module:Hn}),s.Z.modules.add({namespace:"form-datepicker",module:oi}),s.Z.modules.add({namespace:"form-select-multiple",module:Jn}),s.Z.modules.add({namespace:"counter",module:Di}),s.Z.modules.add({namespace:"pie-chart",module:Vi}),s.Z.modules.add({namespace:"video-embeded",module:fo}),s.Z.modules.add({namespace:"filter-newsroom-event",module:Ji}),s.Z.modules.add({namespace:"filter-degree-programs",module:io}),s.Z.modules.add({namespace:"social-embed",module:_o}),s.Z.modules.add({namespace:"div-embed",module:To}
2),s.Z.modules.add({namespace:"show-more",module:Fo}),s.Z.modules.add({namespace:"tab-area",module:Vo}),s.Z.modules.add({namespace:"workspace-news",module:Yo}),s.Z.modules.add({namespace:"popover",module:ir}),s.Z.modules.add({namespace:"toolbox-button",module:pr}),s.Z.modules.add({namespace:"toolbox-workspace",module:gr}),s.Z.modules.add({namespace:"toolbox-modal",module:Or}),s.Z.modules.add({namespace:"copartner",module:Dr}),s.Z.modules.add({namespace:"person-overview",module:ta}),s.Z.modules.add({namespace:"person-detail",module:aa}),s.Z.modules.add({namespace:"filter-course-finder",module:Wr}),s.Z.modules.add({namespace:"filter-course-finder-cta",module:Kr}),s.Z.modules.add({namespace:"filter-finder-function",module:ss}),s.Z.modules.add({namespace:"hochschulzugang",module:vs}),s.Z.modules.add({namespace:"search-box",module:Ss}),s.Z.modules.add({namespace:"search-option",module:Ps}),s.Z.modules.add({namespace:"letter-select",module:Ns}),s.Z.modules.add({namespace:"table-of-content",module:Us})}))},1767:()=>{[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)}})})),window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach),function(){if("function"==typeof window.CustomEvent)return!1;window.CustomEvent=function(t,e){e=e||{bubbles:!1,cancelable:!1,detail:null};var n=document.createEvent("CustomEvent");return n.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),n}}(),String.prototype.replaceAll||(String.prototype.replaceAll=function(t,e){return"[object regexp]"===Object.prototype.toString.call(t).toLowerCase()?this.replace(t,e):this.replace(new RegExp(t,"g"),e)})},7951:t=>{function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(t)}t.exports=function(t){return window.App=window.App||{},window.App.Templates=window.App.Templates||{},window.App.Templates.FILTERABLELIST__LISTITEM=t.template({1:function(t,e,n,i,o){return'data-js-module="overlay-handler"'},3:function(t,e,n,i,o){var r;return" is-"+t.escapeExpression("function"==typeof(r=null!=(r=n.category||(null!=e?e.category:e))?r:t.hooks.helperMissing)?r.call(null!=e?e:t.nullContext||{},{name:"category",hash:{},data:o}):r)},5:function(t,e,n,i,o){var r;return'\t\t\t<div class="filterable-list__list-item-dates">\n'+(null!=(r=n.each.call(null!=e?e:t.nullContext||{},null!=e?e.dateDetails:e,{name:"each",hash:{},fn:t.program(6,o,0),inverse:t.noop,data:o}))?r:"")+"\t\t\t</div>\n"},6:function(t,n,i,o,r){var s,a,l=null!=n?n:t.nullContext||{},c=t.hooks.helperMissing,u="function",p=t.escapeExpression;return(null!=(s=i.if.call(l,r&&r.last,{name:"if",hash:{},fn:t.program(7,r,0),inverse:t.noop,data:r}))?s:"")+'\t\t\t\t\t<div class="filterable-list__list-item-date">\n\t\t\t\t\t\t<span aria-label="'+p(e(a=null!=(a=i.dateDay||(null!=n?n.dateDay:n))?a:c)===u?a.call(l,{name:"dateDay",hash:{},data:r}):a)+'" class="filterable-list__list-item-date-day">'+p(e(a=null!=(a=i.dateDay||(null!=n?n.dateDay:n))?a:c)===u?a.call(l,{name:"dateDay",hash:{},data:r}):a)+'</span>\n\t\t\t\t\t\t<abbr aria-label="'+p(e(a=null!=(a=i.dateMonthFull||(null!=n?n.dateMonthFull:n))?a:c)===u?a.call(l,{name:"dateMonthFull",hash:{},data:r}):a)+'" title="'+p(e(a=null!=(a=i.dateMonthFull||(null!=n?n.dateMonthFull:n))?a:c)===u?a.call(l,{name:"dateMonthFull",hash:{},data:r}):a)+'" class="filterable-list__list-item-date-month">'+p(e(a=null!=(a=i.dateMonthAbbr||(null!=n?n.dateMonthAbbr:n))?a:c)===u?a.call(l,{name:"dateMonthAbbr",hash:{},data:r}):a)+"</abbr>\n\t\t\t\t\t</div>\n"},7:function(t,e,n,i,o){var r;return null!=(r=n.unless.call(null!=e?e:t.nullContext||{},o&&o.first,{name:"unless",hash:{},fn:t.program(8,o,0),inverse:t.noop,data:o}))?r:""},8:function(t,e,n,i,o){return'\t\t\t\t\t\t\t<div class="filterable-list__list-item-date is-connector">\n\t\t\t\t\t\t\t\t<abbr aria-label="bis" title="bis" class="filterable-list__list-item-date-connect">&mdash;
2</abbr>\n\t\t\t\t\t\t\t</div>\n'},10:function(t,e,n,i,o){var r;return'<span class="filterable-list__list-item-meta-date">'+t.escapeExpression("function"==typeof(r=null!=(r=n.date||(null!=e?e.date:e))?r:t.hooks.helperMissing)?r.call(null!=e?e:t.nullContext||{},{name:"date",hash:{},data:o}):r)+"</span>"},12:function(t,e,n,i,o){var r;return'<span class="filterable-list__list-item-meta-addition">'+t.escapeExpression("function"==typeof(r=null!=(r=n.categoryAddition||(null!=e?e.categoryAddition:e))?r:t.hooks.helperMissing)?r.call(null!=e?e:t.nullContext||{},{name:"categoryAddition",hash:{},data:o}):r)+"</span>"},14:function(t,e,n,i,o){var r,s=null!=e?e:t.nullContext||{},a=t.lambda,l=t.escapeExpression;return'\t\t\t<a class="filterable-list__list-item-link'+(null!=(r=n.if.call(s,null!=e?e.category:e,{name:"if",hash:{},fn:t.program(15,o,0),inverse:t.noop,data:o}))?r:"")+'" href="'+l(a(null!=(r=null!=e?e.link:e)?r.href:r,e))+'">'+l(a(null!=(r=null!=e?e.link:e)?r.text:r,e))+(null!=(r=n.if.call(s,null!=(r=null!=e?e.link:e)?r.info:r,{name:"if",hash:{},fn:t.program(18,o,0),inverse:t.noop,data:o}))?r:"")+"</a>\n"},15:function(t,e,n,i,o){var r,s,a=null!=e?e:t.nullContext||{};return' aria-haspopup="true" aria-controls="overlay" aria-expanded="false" data-js-item="overlay-handler-cta" '+(null!=(r=n.if.call(a,null!=(r=null!=e?e.link:e)?r.dataContent:r,{name:"if",hash:{},fn:t.program(16,o,0),inverse:t.noop,data:o}))?r:"")+" is-"+t.escapeExpression("function"==typeof(s=null!=(s=n.category||(null!=e?e.category:e))?s:t.hooks.helperMissing)?s.call(a,{name:"category",hash:{},data:o}):s)},16:function(t,e,n,i,o){var r;return'data-content="'+t.escapeExpression(t.lambda(null!=(r=null!=e?e.link:e)?r.dataContent:r,e))+'"'},18:function(t,e,n,i,o){var r;return' <span class="filterable-list__list-item-link-info">'+t.escapeExpression(t.lambda(null!=(r=null!=e?e.link:e)?r.info:r,e))+"</span>"},20:function(t,e,n,i,o){var r,s=null!=e?e:t.nullContext||{},a=t.lambda,l=t.escapeExpression;return'\t\t\t<a class="filterable-list__list-item-link'+(null!=(r=n.if.call(s,null!=e?e.category:e,{name:"if",hash:{},fn:t.program(3,o,0),inverse:t.noop,data:o}))?r:"")+'" href="'+l(a(null!=(r=null!=e?e.link:e)?r.href:r,e))+'">'+l(a(null!=(r=null!=e?e.link:e)?r.text:r,e))+(null!=(r=n.if.call(s,null!=(r=null!=e?e.link:e)?r.info:r,{name:"if",hash:{},fn:t.program(18,o,0),inverse:t.noop,data:o}))?r:"")+"</a>\n"},22:function(t,e,n,i,o){var r,s,a=null!=e?e:t.nullContext||{};return'\t\t\t<span class="filterable-list__list-item-topic-headline">'+t.escapeExpression("function"==typeof(s=null!=(s=n.topicLabel||(null!=e?e.topicLabel:e))?s:t.hooks.helperMissing)?s.call(a,{name:"topicLabel",hash:{},data:o}):s)+'</span>\n\t\t\t<ul class="filterable-list__list-item-topics">\n'+(null!=(r=n.each.call(a,null!=e?e.topics:e,{name:"each",hash:{},fn:t.program(23,o,0),inverse:t.noop,data:o}))?r:"")+"\t\t\t</ul>\n"},23:function(t,e,n,i,o){var r;return'\t\t\t\t\t<li class="filterable-list__list-item-topic-item">'+t.escapeExpression("function"==typeof(r=null!=(r=n.text||(null!=e?e.text:e))?r:t.hooks.helperMissing)?r.call(null!=e?e:t.nullContext||{},{name:"text",hash:{},data:o}):r)+"</li>\n"},25:function(t,e,n,i,o){var r;return null!=(r=n.if.call(null!=e?e:t.nullContext||{},null!=e?e.address:e,{name:"if",hash:{},fn:t.program(26,o,0),inverse:t.noop,data:o}))?r:""},26:function(t,n,i,o,r){var s,a,l=null!=n?n:t.nullContext||{},c=t.hooks.helperMissing,u="function",p=t.escapeExpression;return'\t\t\t\t<div class="filterable-list__list-item-event">\n\t\t\t\t\t<time class="filterable-list__list-item-time" datetime="'+(null!=(s=i.each.call(l,null!=n?n.dateDetails:n,{name:"each",hash:{},fn:t.program(27,r,0),inverse:t.noop,data:r}))?s:"")+" "+p(e(a=null!=(a=i.time||(null!=n?n.time:n))?a:c)===u?a.call(l,{name:"time",hash:{},data:r}):a)+'">'+p(e(a=null!=(a=i.time||(null!=n?n.time:n))?a:c)===u?a.call(l,{name:"time",hash:{},data:r}):a)+" "+p(e(a=null!=(a=i.timeUnit||(null!=n?n.timeUnit:n))?a:c)===u?a.call(l,{name:"timeUnit",hash:{},data:r}):a)+'</time>\n\t\t\t\t\t<address class="filterable-list__list-item-address">'+p(e(a=null!=(a=i.address||(null!=n?n.address:n))?a:c)===u?a.call(l,{name:"address",hash:{},data:r}
2):a)+"</address>\n\t\t\t\t</div>\n"},27:function(t,n,i,o,r){var s,a,l=null!=n?n:t.nullContext||{},c=t.hooks.helperMissing,u="function",p=t.escapeExpression;return(null!=(s=i.if.call(l,r&&r.last,{name:"if",hash:{},fn:t.program(28,r,0),inverse:t.noop,data:r}))?s:"")+p(e(a=null!=(a=i.dateYear||(null!=n?n.dateYear:n))?a:c)===u?a.call(l,{name:"dateYear",hash:{},data:r}):a)+"-"+p(e(a=null!=(a=i.dateMonth||(null!=n?n.dateMonth:n))?a:c)===u?a.call(l,{name:"dateMonth",hash:{},data:r}):a)+"-"+p(e(a=null!=(a=i.dateDay||(null!=n?n.dateDay:n))?a:c)===u?a.call(l,{name:"dateDay",hash:{},data:r}):a)},28:function(t,e,n,i,o){var r;return null!=(r=n.unless.call(null!=e?e:t.nullContext||{},o&&o.first,{name:"unless",hash:{},fn:t.program(29,o,0),inverse:t.noop,data:o}))?r:""},29:function(t,e,n,i,o){return"-"},31:function(t,e,n,i,o){var r,s;return'<p class="filterable-list__list-item-description">'+(null!=(r="function"==typeof(s=null!=(s=n.infoline||(null!=e?e.infoline:e))?s:t.hooks.helperMissing)?s.call(null!=e?e:t.nullContext||{},{name:"infoline",hash:{},data:o}):s)?r:"")+"</p>"},33:function(t,e,n,i,o){var r,s;return'<p class="filterable-list__list-item-info-video">'+(null!=(r="function"==typeof(s=null!=(s=n.videoInfo||(null!=e?e.videoInfo:e))?s:t.hooks.helperMissing)?s.call(null!=e?e:t.nullContext||{},{name:"videoInfo",hash:{},data:o}):s)?r:"")+"</p>"},35:function(t,n,i,o,r){var s,a,l=null!=n?n:t.nullContext||{},c=t.hooks.helperMissing,u="function";return'<strong class="filterable-list__list-item-deadline">'+t.escapeExpression(e(a=null!=(a=i.deadlineLabel||(null!=n?n.deadlineLabel:n))?a:c)===u?a.call(l,{name:"deadlineLabel",hash:{},data:r}):a)+" "+(null!=(s=e(a=null!=(a=i.deadline||(null!=n?n.deadline:n))?a:c)===u?a.call(l,{name:"deadline",hash:{},data:r}):a)?s:"")+"</strong>"},37:function(t,e,n,i,o){var r;return'\t\t<a class="filterable-list__a11y-clickarea" aria-hidden="true" tabindex="-1" href="'+t.escapeExpression(t.lambda(null!=(r=null!=e?e.link:e)?r.href:r,e))+'"  aria-haspopup="true" aria-controls="overlay" aria-expanded="false" data-js-item="overlay-handler-cta" '+(null!=(r=n.if.call(null!=e?e:t.nullContext||{},null!=(r=null!=e?e.link:e)?r.dataContent:r,{name:"if",hash:{},fn:t.program(16,o,0),inverse:t.noop,data:o}))?r:"")+"></a>\n"},39:function(t,e,n,i,o){var r;return'\t\t<a class="filterable-list__a11y-clickarea" aria-hidden="true" tabindex="-1" href="'+t.escapeExpression(t.lambda(null!=(r=null!=e?e.link:e)?r.href:r,e))+'"></a>\n'},compiler:[8,">= 4.3.0"],main:function(t,n,i,o,r){var s,a,l=null!=n?n:t.nullContext||{},c=t.hooks.helperMissing,u=t.escapeExpression,p="function";return'\t<li class="filterable-list__list-item is-loading" data-js-item="filterable-list-list-item" tabindex="-1" '+(null!=(s=i.if.call(l,null!=(s=null!=n?n.link:n)?s.overlay:s,{name:"if",hash:{},fn:t.program(1,r,0),inverse:t.noop,data:r}))?s:"")+'>\n\t<div class="filterable-list__list-item-image'+(null!=(s=i.if.call(l,null!=n?n.category:n,{name:"if",hash:{},fn:t.program(3,r,0),inverse:t.noop,data:r}))?s:"")+'">\n\t\t'+u((i.partial||n&&n.partial||c).call(l,"picture",null!=n?n.image:n,{name:"partial",hash:{},data:r}))+"\n\n"+(null!=(s=(i.is||n&&n.is||c).call(l,null!=n?n.category:n,"events",{name:"is",hash:{},fn:t.program(5,r,0),inverse:t.noop,data:r}))?s:"")+'\t</div>\n\n\t<div class="filterable-list__list-item-text-wrapper'+(null!=(s=i.if.call(l,null!=n?n.category:n,{name:"if",hash:{},fn:t.program(3,r,0),inverse:t.noop,data:r}))?s:"")+'">\n\t\t<em class="filterable-list__list-item-meta"><span class="filterable-list__list-item-meta-category">'+u(e(a=null!=(a=i.categoryHeadline||(null!=n?n.categoryHeadline:n))?a:c)===p?a.call(l,{name:"categoryHeadline",hash:{},data:r}):a)+"</span> "+(null!=(s=i.if.call(l,null!=n?n.date:n,{name:"if",hash:{},fn:t.program(10,r,0),inverse:t.noop,data:r}))?s:"")+(null!=(s=i.if.call(l,null!=n?n.categoryAddition:n,{name:"if",hash:{},fn:t.program(12,r,0),inverse:t.noop,data:r}))?s:"")+"</em>\n"+(null!=(s=i.if.call(l,null!=(s=null!=n?n.link:n)?s.overlay:s,{name:"if",hash:{},fn:t.program(14,r,0),inverse:t.program(20,r,0),data:r}))?s:"")+"\n\n"+(null!=(s=i.if.call(l,null!=n?n.topicLabel:n,{name:"if",hash:{},fn:t.program(22,r,0),inverse:t.noop,data:r}))?s:"")+"\n"+(null!=(s=i.if.call(l,null!=n?n.time:n,{name:"if",hash:{},fn:t.program(25,r,0),inverse:t.noop,data:r}))?s:"")+"\n\t\t"+(null!=(s=i.if.call(l,null!=n?n.infoline:n,{name:"if",hash:{},fn:t.program(31,r,0),inverse:t.noop,data:r}))?s:"")+'\n\t\t<p class="filterable-list__list-item-description">'+(null!=(s=e(a=null!=(a=i.description||(null!=n?n.description:n))?a:c)===p?a.call(l,{name:"description",hash:{},data:r}):a)?s:"")+"</p>\n\t\t"+(null!=(s=i.if.call(l,null!=n?n.videoInfo:n,{name:"if",hash:{},fn:t.program(33,r,0),inverse:t.noop,data:r}))?s:"")+"\n\t\t"+(null!=(s=i.if.call(l,null!=n?n.deadline:n,{name:"if",hash:{},fn:t.program(35,r,0),inverse:t.noop,data:r}))?s:"")+"\n\t</div>\n"+(null!=(s=i.if.call(l,null!=(s=null!=n?n.link:n)?s.overlay:s,{name:"if",hash:{},fn:t.program(37,r,0),inverse:t.program(39,r,0),data:r}))?s:"")+"</li>\n"},useData:!0}
2),window.App.Templates.FILTERABLELIST__LIST=t.template({compiler:[8,">= 4.3.0"],main:function(t,e,n,i,o){return'<ul class="filterable-list__list" data-js-item="filterable-list-list"></ul>'},useData:!0}),window.App.Templates.FILTERABLELIST__LOADMOREBTN=t.template({compiler:[8,">= 4.3.0"],main:function(t,e,n,i,o){var r;return'<div class="filterable-list__load-more-wrapper">\n<button type="submit" class="filterable-list__load-more"\n        data-js-item="filterable-list-load-more-btn">\n\t<span class="filterable-list__load-more-loader">\n\t\t<span class="filterable-list__load-more-loader-box is-one"></span>\n\t\t<span class="filterable-list__load-more-loader-box is-two"></span>\n\t\t<span class="filterable-list__load-more-loader-box is-three"></span>\n\t</span>\n\t<span class="filterable-list__load-more-text">'+t.escapeExpression("function"==typeof(r=null!=(r=n.loadMoreLabel||(null!=e?e.loadMoreLabel:e))?r:t.hooks.helperMissing)?r.call(null!=e?e:t.nullContext||{},{name:"loadMoreLabel",hash:{},data:o}):r)+"</span></button>\n</div>"},useData:!0}),window.App.Templates.FILTERABLELIST__RESULTSINFO=t.template({1:function(t,e,n,i,o){var r;return'<strong class="filterable-list__total-item-count">'+t.escapeExpression("function"==typeof(r=null!=(r=n.totalItemCount||(null!=e?e.totalItemCount:e))?r:t.hooks.helperMissing)?r.call(null!=e?e:t.nullContext||{},{name:"totalItemCount",hash:{},data:o}):r)+"</strong>"},compiler:[8,">= 4.3.0"],main:function(t,e,n,i,o){var r,s,a=null!=e?e:t.nullContext||{};return'<div class="filterable-list__results-info" data-js-item="filterable-list-results-info">\n\t'+(null!=(r=n.if.call(a,null!=e?e.totalItemCount:e,{name:"if",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o}))?r:"")+' <p\n\t\tclass="filterable-list__results-text">'+(null!=(r="function"==typeof(s=null!=(s=n.resultsText||(null!=e?e.resultsText:e))?s:t.hooks.helperMissing)?s.call(a,{name:"resultsText",hash:{},data:o}):s)?r:"")+"</p>\n</div>"},useData:!0}),window.App.Templates.OVERLAY__CONTENT=t.template({1:function(t,e,n,i,o){return"--slider"},3:function(t,e,n,i,o){return" is-person"},5:function(t,n,i,o,r){var s,a=null!=n?n:t.nullContext||{},l=t.hooks.helperMissing,c="function",u=t.escapeExpression;return'\t<div class="figure__wrapper">\n\t\t<img class="figure__image" src="'+u(e(s=null!=(s=i.src||(null!=n?n.src:n))?s:l)===c?s.call(a,{name:"src",hash:{},data:r}):s)+'" alt="'+u(e(s=null!=(s=i.altText||(null!=n?n.altText:n))?s:l)===c?s.call(a,{name:"altText",hash:{},data:r}):s)+'" data-js-item="figure-image" />\n\t</div>\n'},7:function(t,e,n,i,o){var r,s=null!=e?e:t.nullContext||{};return'\t<video class="figure__video" '+(null!=(r=n.if.call(s,null!=e?e.videoPoster:e,{name:"if",hash:{},fn:t.program(8,o,0),inverse:t.noop,data:o}))?r:"")+' controls preload="metadata"\n\t tabindex="0">\n'+(null!=(r=n.if.call(s,null!=e?e.videoMp4:e,{name:"if",hash:{},fn:t.program(10,o,0),inverse:t.noop,data:o}))?r:"")+(null!=(r=n.if.call(s,null!=e?e.videoWebm:e,{name:"if",hash:{},fn:t.program(12,o,0),inverse:t.noop,data:o}))?r:"")+(null!=(r=n.if.call(s,null!=e?e.videoTrack:e,{name:"if",hash:{},fn:t.program(14,o,0),inverse:t.noop,data:o}))?r:"")+"\t</video>\n"},8:function(t,e,n,i,o){var r;return' poster="'+t.escapeExpression("function"==typeof(r=null!=(r=n.videoPoster||(null!=e?e.videoPoster:e))?r:t.hooks.helperMissing)?r.call(null!=e?e:t.nullContext||{},{name:"videoPoster",hash:{},data:o}):r)+'" '},10:function(t,e,n,i,o){var r;return'\t\t<source src="'+t.escapeExpression("function"==typeof(r=null!=(r=n.videoMp4||(null!=e?e.videoMp4:e))?r:t.hooks.helperMissing)?r.call(null!=e?e:t.nullContext||{},{name:"videoMp4",hash:{},data:o}):r)+'" type=\'video/mp4; codecs="avc1.42E01E, mp4a.40.2"\' />\n'},12:function(t,e,n,i,o){var r;return'\t\t<source src="'+t.escapeExpression("function"==typeof(r=null!=(r=n.videoWebm||(null!=e?e.videoWebm:e))?r:t.hooks.helperMissing)?r.call(null!=e?e:t.nullContext||{},{name:"videoWebm",hash:{},data:o}):r)+'" type=\'video/webm; codecs="vp8, vorbis"\' />\n'},14:function(t,n,i,o,r){var s,a=null!=n?n:t.nullContext||{},l=t.hooks.helperMissing,c="function",u=t.escapeExpression;return'\t\t<track src="'+u(e(s=null!=(s=i.trackSrc||(null!=n?n.trackSrc:n))?s:l)===c?s.call(a,{name:"trackSrc",hash:{},data:r}):s)+'" kind="'+u(e(s=null!=(s=i.trackSubtitle||(null!=n?n.trackSubtitle:n))?s:l)===c?s.call(a,{name:"trackSubtitle",hash:{},data:r}):s)+'" srclang="'+u(e(s=null!=(s=i.trackLang||(null!=n?n.trackLang:n))?s:l)===c?s.call(a,{name:"trackLang",hash:{},data:r}):s)+'" label="'+u(e(s=null!=(s=i.trackLabel||(null!=n?n.trackLabel:n))?s:l)===c?s.call(a,{name:"trackLabel",hash:{},data:r}):s)+'" />\n'},16:function(t,e,n,i,o){var r,s=null!=e?e:t.nullContext||{};return'\t<div class="c-video-embeded--lightbox" data-css="c-video-embeded" data-js-module="video-embeded">\n\t\t<div class="video-embeded__container video-embeded__'+(null!=(r=n.if.call(s,null!=(r=null!=e?e.extplayer:e)?r.youtube:r,{name:"if",hash:{},fn:t.program(17,o,0),inverse:t.noop,data:o}))?r:"")+(null!=(r=n.if.call(s,null!=(r=null!=e?e.extplayer:e)?r.vimeo:r,{name:"if",hash:{},fn:t.program(19,o,0),inverse:t.noop,data:o}))?r:"")+'">\n'+(null!=(r=n.if.call(s,null!=(r=null!=e?e.extplayer:e)?r.img:r,{name:"if",hash:{},fn:t.program(21,o,0),inverse:t.noop,data:o}))?r:"")+'\t\t\t<div class="video-embeded__content-container">\n\t\t\t\t<div class="video-embeded__content">\n\t\t\t\t\t'+(null!=(r=n.if.call(s,null!=(r=null!=e?e.extplayer:e)?r.txten:r,{name:"if",hash:{},fn:t.program(23,o,0),inverse:t.noop,data:o}))?r:"")+"\n\t\t\t\t\t"+(null!=(r=n.if.call(s,null!=(r=null!=e?e.extplayer:e)?r.txtde:r,{name:"if",hash:{},fn:t.program(36,o,0),inverse:t.noop,data:o}))?r:"")+'\n\t\t\t\t</div>\n\t\t\t\t<div class="video-embeded__button">\n\t\t\t\t\t<button type="button" class="video-embeded__link" data-company="'+(null!=(r=n.if.call(s,null!=(r=null!=e?e.extplayer:e)?r.youtube:r,{name:"if",hash:{},fn:t.program(17,o,0),inverse:t.noop,data:o}))?r:"")+(null!=(r=n.if.call(s,null!=(r=null!=e?e.extplayer:e)?r.vimeo:r,{name:"if",hash:{},fn:t.program(19,o,0),inverse:t.noop,data:o}))?r:"")+'" data-js-item="js-video-embeded-'+(null!=(r=n.if.call(s,null!=(r=null!=e?e.extplayer:e)?r.youtube:r,{name:"if",hash:{},fn:t.program(17,o,0),inverse:t.noop,data:o}))?r:"")+(null!=(r=n.if.call(s,null!=(r=null!=e?e.extplayer:e)?r.vimeo:r,{name:"if",hash:{},fn:t.program(19,o,0),inverse:t.noop,data:o}))?r:"")+'">\n\t\t\t\t\t\t'+(null!=(r=n.if.call(s,null!=(r=null!=e?e.extplayer:e)?r.txten:r,{name:"if",hash:{},fn:t.program(41,o,0),inverse:t.noop,data:o}))?r:"")+"\n\t\t\t\t\t\t"+(null!=(r=n.if.call(s,null!=(r=null!=e?e.extplayer:e)?r.txtde:r,{name:"if",hash:{},fn:t.program(43,o,0),inverse:t.noop,data:o}))?r:"")+'\n\t\t\t\t\t</button>\n\t\t\t\t</div>\n\t\t\t\t<div style="clear: both;"></div>\n\t\t\t</div>\n\t\t</div>\n\t\t<div class="video-embeded_box '+(null!=(r=n.if.call(s,null!=(r=null!=e?e.extplayer:e)?r.format:r,{name:"if",hash:{},fn:t.program(45,o,0),inverse:t.noop,data:o}))?r:"")+" video-embeded_company_"+(null!=(r=n.if.call(s,null!=(r=null!=e?e.extplayer:e)?r.youtube:r,{name:"if",hash:{},fn:t.program(17,o,0),inverse:t.noop,data:o}))?r:"")+(null!=(r=n.if.call(s,null!=(r=null!=e?e.extplayer:e)?r.vimeo:r,{name:"if",hash:{},fn:t.program(19,o,0),inverse:t.noop,data:o}))?r:"")+" video-embeded__hidden\" data-src=\"<iframe width='640' height='360' src='"+(null!=(r=n.if.call(s,null!=(r=null!=e?e.extplayer:e)?r.youtube:r,{name:"if",hash:{}
2,fn:t.program(47,o,0),inverse:t.noop,data:o}))?r:"")+(null!=(r=n.if.call(s,null!=(r=null!=e?e.extplayer:e)?r.vimeo:r,{name:"if",hash:{},fn:t.program(49,o,0),inverse:t.noop,data:o}))?r:"")+t.escapeExpression(t.lambda(null!=(r=null!=e?e.extplayer:e)?r.id:r,e))+"' id='ytplayer' frameborder='0' allow='autoplay; fullscreen'\n\t\t\tallowfullscreen></iframe>\" data-company=\""+(null!=(r=n.if.call(s,null!=(r=null!=e?e.extplayer:e)?r.youtube:r,{name:"if",hash:{},fn:t.program(17,o,0),inverse:t.noop,data:o}))?r:"")+(null!=(r=n.if.call(s,null!=(r=null!=e?e.extplayer:e)?r.vimeo:r,{name:"if",hash:{},fn:t.program(19,o,0),inverse:t.noop,data:o}))?r:"")+'">\n\t\t</div>\n\t</div>\n'},17:function(t,e,n,i,o){return"youtube"},19:function(t,e,n,i,o){return"vimeo"},21:function(t,e,n,i,o){var r,s=t.lambda,a=t.escapeExpression;return'\t\t\t<div class="video-embeded__img">\n\t\t\t\t<picture class="c-picture--video-embeded-img" data-css="c-picture">\n\t\t\t\t\t\x3c!--[if IE 9]><audio><![endif]--\x3e\n\t\t\t\t\t<source srcset="'+a(s(null!=(r=null!=(r=null!=e?e.extplayer:e)?r.img:r)?r.format_s_url:r,e))+" "+a(s(null!=(r=null!=(r=null!=e?e.extplayer:e)?r.img:r)?r.format_s:r,e))+","+a(s(null!=(r=null!=(r=null!=e?e.extplayer:e)?r.img:r)?r.format_m_url:r,e))+" "+a(s(null!=(r=null!=(r=null!=e?e.extplayer:e)?r.img:r)?r.format_m:r,e))+","+a(s(null!=(r=null!=(r=null!=e?e.extplayer:e)?r.img:r)?r.format_l_url:r,e))+" "+a(s(null!=(r=null!=(r=null!=e?e.extplayer:e)?r.img:r)?r.format_l:r,e))+'" sizes="(min-width: 1440px) 1440px, 100%" />\n\t\t\t\t\t\x3c!--[if IE 9]></audio><![endif]--\x3e\n\t\t\t\t\t<img class="picture__image" src="'+a(s(null!=(r=null!=(r=null!=e?e.extplayer:e)?r.img:r)?r.format_s_url:r,e))+'" alt="'+a(s(null!=(r=null!=(r=null!=e?e.extplayer:e)?r.img:r)?r.imgAlt:r,e))+'" title="'+a(s(null!=(r=null!=(r=null!=e?e.extplayer:e)?r.img:r)?r.imgTitle:r,e))+'" data-sizes="auto" />\n\t\t\t\t</picture>\n\t\t\t</div>\n'},23:function(t,e,n,i,o){var r,s=null!=e?e:t.nullContext||{};return"<p>If you click to view this video your personal data will be transmitted to "+(null!=(r=n.if.call(s,null!=(r=null!=e?e.extplayer:e)?r.vimeo:r,{name:"if",hash:{},fn:t.program(24,o,0),inverse:t.noop,data:o}))?r:"")+(null!=(r=n.if.call(s,null!=(r=null!=e?e.extplayer:e)?r.youtube:r,{name:"if",hash:{},fn:t.program(26,o,0),inverse:t.noop,data:o}))?r:"")+' and cookies may also be stored on your device. LMU has no influence over how any such data is transmitted or indeed over its further usage.</p><p>More information available here: <a href="'+(null!=(r=n.if.call(s,null!=(r=null!=e?e.extplayer:e)?r.dslink:r,{name:"if",hash:{},fn:t.program(28,o,0),inverse:t.program(30,o,0),data:o}))?r:"")+'" target="_blank" rel=\'noopener\'>LMU data protection policy</a>, <a href="'+(null!=(r=n.if.call(s,null!=(r=null!=e?e.extplayer:e)?r.vimeo:r,{name:"if",hash:{},fn:t.program(32,o,0),inverse:t.noop,data:o}))?r:"")+(null!=(r=n.if.call(s,null!=(r=null!=e?e.extplayer:e)?r.youtube:r,{name:"if",hash:{},fn:t.program(34,o,0),inverse:t.noop,data:o}))?r:"")+'" target="_blank" rel=\'noopener\' class="is-external">data protection policy from '+(null!=(r=n.if.call(s,null!=(r=null!=e?e.extplayer:e)?r.vimeo:r,{name:"if",hash:{},fn:t.program(24,o,0),inverse:t.noop,data:o}))?r:"")+(null!=(r=n.if.call(s,null!=(r=null!=e?e.extplayer:e)?r.youtube:r,{name:"if",hash:{},fn:t.program(26,o,0),inverse:t.noop,data:o}))?r:"")+"</a>.</p>"},24:function(t,e,n,i,o){var r;return t.escapeExpression(t.lambda(null!=(r=null!=e?e.extplayer:e)?r.vimeo:r,e))},26:function(t,e,n,i,o){var r;return t.escapeExpression(t.lambda(null!=(r=null!=e?e.extplayer:e)?r.youtube:r,e))},28:function(t,e,n,i,o){var r;return t.escapeExpression(t.lambda(null!=(r=null!=e?e.extplayer:e)?r.dslink:r,e))},30:function(t,e,n,i,o){return"https://www.lmu.de/en/footer/privacy-disclaimer/index.html"},32:function(t,e,n,i,o){return"https://vimeo.com/terms"},34:function(t,e,n,i,o){return"https://policies.google.com/privacy?hl=en"},36:function(t,e,n,i,o){var r,s=null!=e?e:t.nullContext||{};return"<p>Wenn Sie die Anzeige des Videos aktivieren, werden Ihre personenbezogenen Daten an "+(null!=(r=n.if.call(s,null!=(r=null!=e?e.extplayer:e)?r.vimeo:r,{name:"if",hash:{},fn:t.program(24,o,0),inverse:t.noop,data:o}))?r:"")+(null!=(r=n.if.call(s,null!=(r=null!=e?e.extplayer:e)?r.youtube:r,{name:"if",hash:{},fn:t.program(26,o,0),inverse:t.noop,data:o}))?r:"")+' übertragen und möglicherweise auch Cookies auf Ihrem Gerät gesetzt. Wir haben keinen Einfluss auf eine etwaige Datenübertragung und deren weitere Verwendung.</p><p>Weitere Informationen: <a href="'+(null!=(r=n.if.call(s,null!=(r=null!=e?e.extplayer:e)?r.dslink:r,{name:"if",hash:{},fn:t.program(28,o,0),inverse:t.program(37,o,0),data:o}))?r:"")+'" target="_blank" rel=\'noopener\'>Datenschutzerklärung der LMU</a>, <a href="'+(null!=(r=n.if.call(s,null!=(r=null!=e?e.extplayer:e)?r.vimeo:r,{name:"if",hash:{},fn:t.program(32,o,0),inverse:t.noop,data:o}))?r:"")+(null!=(r=n.if.call(s,null!=(r=null!=e?e.extplayer:e)?r.youtube:r,{name:"if",hash:{},fn:t.program(39,o,0),inverse:t.noop,data:o}))?r:"")+'" target="_blank" rel=\'noopener\' class="is-external">Datenschutzinformationen von '+(null!=(r=n.if.call(s,null!=(r=null!=e?e.extplayer:e)?r.vimeo:r,{name:"if",hash:{},fn:t.program(24,o,0),inverse:t.noop,data:o}))?r:"")+(null!=(r=n.if.call(s,null!=(r=null!=e?e.extplayer:e)?r.youtube:r,{name:"if",hash:{},fn:t.program(26,o,0),inverse:t.noop,data:o}))?r:"")+"</a>.</p>"},37:function(t,e,n,i,o){return"https://www.lmu.de/de/footer/datenschutz/index.html"},39:function(t,e,n,i,o){return"https://policies.google.com/privacy?hl=de"},41:function(t,e,n,i,o){return"I acknowledge that I have read and understood the information concerning the protection of my data and am willing to display the embedded content despite potential risks."},43:function(t,e,n,i,o){return"Ich habe die Datenschutzinformationen zur Kenntnis genommen und möchte die eingebetteten Inhalte auf eigene Verantwortung anzeigen."},45:function(t,e,n,i,o){var r;return"video-embeded_"+t.escapeExpression(t.lambda(null!=(r=null!=e?e.extplayer:e)?r.format:r,e))},47:function(t,e,n,i,o){return"https://www.youtube-nocookie.com/embed/"},49:function(t,e,n,i,o){return"//player.vimeo.com/video/"},51:function(t,e,n,i,o){var r,s,a=null!=e?e:t.nullContext||{};return'\t<div class="figure__videoembed'+(null!=(r=n.if.call(a,null!=e?e.format:e,{name:"if",hash:{},fn:t.program(52,o,0),inverse:t.noop,data:o}))?r:"")+'">\n\t<iframe id="ytplayer" class="figure__youtube" type="text/html" width="640" height="360" src="https://www.youtube-nocookie.com/embed/'+t.escapeExpression("function"==typeof(s=null!=(s=n.id||(null!=e?e.id:e))?s:t.hooks.helperMissing)?s.call(a,{name:"id",hash:{},data:o}):s)+'"\n\t frameborder="0"></iframe>\n\t </div>\n'},52:function(t,e,n,i,o){var r;return" figure__videoembed_"+t.escapeExpression("function"==typeof(r=null!=(r=n.format||(null!=e?e.format:e))?r:t.hooks.helperMissing)?r.call(null!=e?e:t.nullContext||{},{name:"format",hash:{},data:o}):r)},54:function(t,e,n,i,o){var r,s,a=null!=e?e:t.nullContext||{};return'\t<div class="figure__videoembed'+(null!=(r=n.if.call(a,null!=e?e.format:e,{name:"if",hash:{},fn:t.program(52,o,0),inverse:t.noop,data:o}))?r:"")+'">\n\t<iframe id="ytplayer" class="figure__vimeo" type="text/html" width="640" height="360" src="//player.vimeo.com/video/'+t.escapeExpression("function"==typeof(s=null!=(s=n.id||(null!=e?e.id:e))?s:t.hooks.helperMissing)?s.call(a,{name:"id",hash:{},data:o}):s)+'"\n\t frameborder="0"></iframe>\n\t </div>\n'},56:function(t,e,n,i,o){var r,s,a=null!=e?e:t.nullContext||{};return'\t<div class="figure__videoembed'+(null!=(r=n.if.call(a,null!=e?e.format:e,{name:"if",hash:{},fn:t.program(52,o,0),inverse:t.noop,data:o}))?r:"")+'">\n\t<iframe id="ytplayer" class="figure__lrzplayer" type="text/html" width="640" height="360" src="//video.lrz.de/paella/ui/embed.html?id='+t.escapeExpression("function"==typeof(s=null!=(s=n.id||(null!=e?e.id:e))?s:t.hooks.helperMissing)?s.call(a,{name:"id",hash:{},data:o}):s)+'"\n\t frameborder="0"></iframe>\n\t </div>\n'},58:function(t,e,n,i,o){var r,s=null!=e?e:t.nullContext||{};return'\t\t<div class="c-slider--lightbox overlay__slider" data-css="c-slider"\n\t\tdata-js-module="slider">\n\t\t\t<div class="slider__content is-container">\n\t\t\t\t<div class="slider__list-wrapper" data-js-item="slider-wrapper">\n\t\t\t\t\t<ol class="slider__list" data-js-item="slider-ribbon">\n'+(null!=(r=n.each.call(s,null!=(r=null!=e?e.slider:e)?r.imgitems:r,{name:"each",hash:{},fn:t.program(59,o,0),inverse:t.noop,data:o}))?r:"")+'\t\t\t\t\t</ol>\n\t\t\t\t</div>\n\t\t\t</div>
2\n\t\t\t<div class="slider__counter-controls-panel">\n\t\t\t\t<div class="slider__counter" data-js-item="slider-counter" aria-hidden="true"></div>\n\t\t\t\t<div class="slider__controls-wrapper" aria-hidden="true">\n\t\t\t\t\t<button type="button" class="slider__control is-previous" data-js-item="slider-prev">Vorheriges/Previous</button>\n\t\t\t\t\t<button type="button" class="slider__control is-next" data-js-item="slider-next">Nächstes/Next</button>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="slider__image-description-wrapper" data-js-item="image-description-wrapper" aria-hidden="true">\n'+(null!=(r=n.each.call(s,null!=(r=null!=e?e.slider:e)?r.descitems:r,{name:"each",hash:{},fn:t.program(67,o,0),inverse:t.noop,data:o}))?r:"")+"\t\t\t</div>\n\t\t</div>\n"},59:function(t,e,n,i,o){var r;return'\t\t\t\t\t\t<li class="slider__item" data-js-item="slider-item">\n'+(null!=(r=n.if.call(null!=e?e:t.nullContext||{},null!=e?e.img:e,{name:"if",hash:{},fn:t.program(60,o,0),inverse:t.noop,data:o}))?r:"")+"\t\t\t\t\t\t</li>\n"},60:function(t,e,n,i,o){var r,s=null!=e?e:t.nullContext||{},a=t.lambda,l=t.escapeExpression;return'\t\t\t\t\t\t\t<picture class="c-picture--slider" data-css="c-picture">\n\t\t\t\t\t\t\t\t\x3c!--[if IE 9]><audio><![endif]--\x3e\n\t\t\t\t\t\t\t\t<source srcset="'+(null!=(r=n.if.call(s,null!=(r=null!=e?e.img:e)?r.format_l:r,{name:"if",hash:{},fn:t.program(61,o,0),inverse:t.noop,data:o}))?r:"")+(null!=(r=n.if.call(s,null!=(r=null!=e?e.img:e)?r.format_xl:r,{name:"if",hash:{},fn:t.program(63,o,0),inverse:t.noop,data:o}))?r:"")+'" sizes="(min-width: 1440px) 1440px, 100%"/>\n\t\t\t\t\t\t\t\t\x3c!--[if IE 9]></audio><![endif]--\x3e\n\t\t\t\t\t\t\t\t<img class="picture__image" src="'+l(a(null!=(r=null!=e?e.img:e)?r.src:r,e))+'" data-sizes="auto" aria-describedby="image-description-'+l(a(null!=(r=null!=e?e.img:e)?r.id:r,e))+'" '+(null!=(r=n.if.call(s,null!=(r=null!=e?e.img:e)?r.alt:r,{name:"if",hash:{},fn:t.program(65,o,0),inverse:t.noop,data:o}))?r:"")+' data-js-item="figure-slider"/>\n\t\t\t\t\t\t\t</picture>\n'},61:function(t,e,n,i,o){var r,s=t.lambda,a=t.escapeExpression;return a(s(null!=(r=null!=e?e.img:e)?r.format_l_url:r,e))+" "+a(s(null!=(r=null!=e?e.img:e)?r.format_l:r,e))},63:function(t,e,n,i,o){var r,s=t.lambda,a=t.escapeExpression;return","+a(s(null!=(r=null!=e?e.img:e)?r.format_xl_url:r,e))+" "+a(s(null!=(r=null!=e?e.img:e)?r.format_xl:r,e))},65:function(t,e,n,i,o){var r;return' alt="'+t.escapeExpression(t.lambda(null!=(r=null!=e?e.img:e)?r.alt:r,e))+'"'},67:function(t,e,n,i,o){var r;return null!=(r=n.if.call(null!=e?e:t.nullContext||{},null!=e?e.desc:e,{name:"if",hash:{},fn:t.program(68,o,0),inverse:t.noop,data:o}))?r:""},68:function(t,e,n,i,o){var r,s=null!=e?e:t.nullContext||{};return'\t\t\t\t\t\t<div id="image-description-'+t.escapeExpression(t.lambda(null!=(r=null!=e?e.desc:e)?r.id:r,e))+'" class="slider__image-description" data-js-item="image-description">\n'+(null!=(r=n.if.call(s,null!=(r=null!=e?e.desc:e)?r.text:r,{name:"if",hash:{},fn:t.program(69,o,0),inverse:t.noop,data:o}))?r:"")+(null!=(r=n.if.call(s,null!=(r=null!=e?e.desc:e)?r.copy:r,{name:"if",hash:{},fn:t.program(71,o,0),inverse:t.noop,data:o}))?r:"")+"\t\t\t\t\t\t</div>\n"},69:function(t,e,n,i,o){var r;return'\t\t\t\t\t\t\t<p class="slider__image-description-text">\n\t\t\t\t\t\t\t\t'+t.escapeExpression(t.lambda(null!=(r=null!=e?e.desc:e)?r.text:r,e))+"\n\t\t\t\t\t\t\t</p>\n"},71:function(t,e,n,i,o){var r;return'\t\t\t\t\t\t\t<span class="slider__image-description-source">©'+t.escapeExpression(t.lambda(null!=(r=null!=e?e.desc:e)?r.copy:r,e))+"</span>\n"},73:function(t,e,n,i,o){var r,s=null!=e?e:t.nullContext||{};return'\t<figcaption class="figure__caption">\n\t\t<div class="figure__caption-inner">\n\t\t\t'+(null!=(r=n.if.call(s,null!=e?e.captionHeadline:e,{name:"if",hash:{},fn:t.program(74,o,0),inverse:t.noop,data:o}))?r:"")+"\n\t\t\t"+(null!=(r=n.if.call(s,null!=e?e.captionContent:e,{name:"if",hash:{},fn:t.program(76,o,0),inverse:t.noop,data:o}))?r:"")+"\n\t\t</div>\n\t</figcaption>\n"},74:function(t,e,n,i,o){var r;return'<div class="figure__caption-headline">'+t.escapeExpression("function"==typeof(r=null!=(r=n.captionHeadline||(null!=e?e.captionHeadline:e))?r:t.hooks.helperMissing)?r.call(null!=e?e:t.nullContext||{},{name:"captionHeadline",hash:{},data:o}):r)+"</div>"},76:function(t,e,n,i,o){var r;return'<p class="figure__caption-content">'+t.escapeExpression("function"==typeof(r=null!=(r=n.captionContent||(null!=e?e.captionContent:e))?r:t.hooks.helperMissing)?r.call(null!=e?e:t.nullContext||{},{name:"captionContent",hash:{},data:o}):r)+"</p>"},78:function(t,n,i,o,r){var s,a,l=null!=n?n:t.nullContext||{},c=t.hooks.helperMissing,u="function";return'\t<div class="overlay__html '+t.escapeExpression(e(a=null!=(a=i.htmlCssContent||(null!=n?n.htmlCssContent:n))?a:c)===u?a.call(l,{name:"htmlCssContent",hash:{},data:r}):a)+'">'+(null!=(s=e(a=null!=(a=i.htmlContent||(null!=n?n.htmlContent:n))?a:c)===u?a.call(l,{name:"htmlContent",hash:{},data:r}):a)?s:"")+"</div>\n"},80:function(t,e,n,i,o){var r;return'\t<ul class="figure__metainfo-list">\n'+(null!=(r=n.each.call(null!=e?e:t.nullContext||{},null!=(r=null!=e?e.metainfo:e)?r.items:r,{name:"each",hash:{},fn:t.program(81,o,0),inverse:t.noop,data:o}))?r:"")+"\t</ul>\n"},81:function(t,e,n,i,o){var r,s=null!=e?e:t.nullContext||{};return'\t\t<li class="figure__metainfo-list-item">'+(null!=(r=n.if.call(s,null!=e?e.link:e,{name:"if",hash:{},fn:t.program(82,o,0),inverse:t.noop,data:o}))?r:"")+(null!=(r=n.if.call(s,null!=e?e.text:e,{name:"if",hash:{},fn:t.program(84,o,0),inverse:t.noop,data:o}))?r:"")+"</li>\n"},82:function(t,e,n,i,o){var r,s=t.lambda,a=t.escapeExpression;return'<a class="figure__metainfo-link is-'+a(s(null!=(r=null!=e?e.link:e)?r.type:r,e))+'" href="'+a(s(null!=(r=null!=e?e.link:e)?r.href:r,e))+'">'+a(s(null!=(r=null!=e?e.link:e)?r.linkText:r,e))+"</a>"},84:function(t,e,n,i,o){var r;return t.escapeExpression("function"==typeof(r=null!=(r=n.text||(null!=e?e.text:e))?r:t.hooks.helperMissing)?r.call(null!=e?e:t.nullContext||{},{name:"text",hash:{},data:o}):r)},86:function(t,e,n,i,o){var r,s=null!=e?e:t.nullContext||{};return'\t\t<div class="c-person-detail--default" data-css="c-person-detail" data-js-module="person-detail" data-js-options=\'{}\'>\n\t\t\t<div class="grid__container">\n\t\t\t\t<div class="grid__row">\n\t\t\t\t\t<div class="person-detail__frame">\n\t\t\t\t\t\t'+(null!=(r=n.if.call(s,null!=(r=null!=e?e.person:e)?r.personname:r,{name:"if",hash:{},fn:t.program(87,o,0),inverse:t.noop,data:o}))?r:"")+'\n\t\t\t\t\t\t<div class="person-detail__infoarea">\n'+(null!=(r=n.if.call(s,null!=(r=null!=e?e.person:e)?r.img:r,{name:"if",hash:{},fn:t.program(89,o,0),inverse:t.noop,data:o}))?r:"")+'\t\t\t\t\t\t\t<div class="person-detail__info">\n\t\t\t\t\t\t\t\t'+(null!=(r=n.if.call(s,null!=(r=null!=e?e.person:e)?r.organizationunit:r,{name:"if",hash:{},fn:t.program(91,o,0),inverse:t.noop,data:o}))?r:"")+"\n\t\t\t\t\t\t\t\t"+(null!=(r=n.if.call(s,null!=(r=null!=e?e.person:e)?r.jobfunction:r,{name:"if",hash:{},fn:t.program(93,o,0),inverse:t.noop,data:o}))?r:"")+"\n\t\t\t\t\t\t\t\t"+(null!=(r=n.if.call(s,null!=(r=null!=e?e.person:e)?r.jobdescription:r,{name:"if",hash:{},fn:t.program(95,o,0),inverse:t.noop,data:o}))?r:"")+"\n\t\t\t\t\t\t\t\t"+(null!=(r=n.if.call(s,null!=(r=null!=e?e.person:e)?r.personinfo:r,{name:"if",hash:{},fn:t.program(97,o,0),inverse:t.noop,data:o}
2))?r:"")+'\n\t\t\t\t\t\t\t\t<div class="person-detail__contactarea">\n\t\t\t\t\t\t\t\t\t<div class="person-detail__address">\n\t\t\t\t\t\t\t\t\t\t'+(null!=(r=n.if.call(s,null!=(r=null!=e?e.person:e)?r.office:r,{name:"if",hash:{},fn:t.program(99,o,0),inverse:t.noop,data:o}))?r:"")+"\n\t\t\t\t\t\t\t\t\t\t"+(null!=(r=n.if.call(s,null!=(r=null!=e?e.person:e)?r.room:r,{name:"if",hash:{},fn:t.program(101,o,0),inverse:t.noop,data:o}))?r:"")+"\n\t\t\t\t\t\t\t\t\t\t"+(null!=(r=n.if.call(s,null!=(r=null!=e?e.person:e)?r.street:r,{name:"if",hash:{},fn:t.program(103,o,0),inverse:t.noop,data:o}))?r:"")+"\n\t\t\t\t\t\t\t\t\t\t"+(null!=(r=n.if.call(s,null!=(r=null!=e?e.person:e)?r.city:r,{name:"if",hash:{},fn:t.program(105,o,0),inverse:t.noop,data:o}))?r:"")+"\n"+(null!=(r=n.each.call(s,null!=(r=null!=e?e.person:e)?r.addressitems:r,{name:"each",hash:{},fn:t.program(107,o,0),inverse:t.noop,data:o}))?r:"")+'\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div class="person-detail__contact">\n'+(null!=(r=n.each.call(s,null!=(r=null!=e?e.person:e)?r.contactitems:r,{name:"each",hash:{},fn:t.program(107,o,0),inverse:t.noop,data:o}))?r:"")+"\t\t\t\t\t\t\t\t\t\t"+(null!=(r=n.if.call(s,null!=(r=null!=e?e.person:e)?r.phone:r,{name:"if",hash:{},fn:t.program(113,o,0),inverse:t.noop,data:o}))?r:"")+"\n\t\t\t\t\t\t\t\t\t\t"+(null!=(r=n.if.call(s,null!=(r=null!=e?e.person:e)?r.fax:r,{name:"if",hash:{},fn:t.program(115,o,0),inverse:t.noop,data:o}))?r:"")+"\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n"},87:function(t,e,n,i,o){var r;return'<h1 class="person-detail__personname">'+t.escapeExpression(t.lambda(null!=(r=null!=e?e.person:e)?r.personname:r,e))+"</h1>"},89:function(t,e,n,i,o){var r,s=t.lambda,a=t.escapeExpression;return'\t\t\t\t\t\t\t<figure class="c-figure--default person-detail__figure is-right" data-css="c-figure" data-js-module="overlay-handler">\n\t\t\t\t\t\t\t\t<div class="figure__wrapper">\n\t\t\t\t\t\t\t\t\t<picture class="c-picture--default person-detail__picture" data-css="c-picture">\n\t\t\t\t\t\t\t\t\t\t\x3c!--[if IE 9]><audio><![endif]--\x3e\n\t\t\t\t\t\t\t\t\t\t<source srcset="'+a(s(null!=(r=null!=(r=null!=e?e.person:e)?r.img:r)?r.format_m_url:r,e))+" "+a(s(null!=(r=null!=(r=null!=e?e.person:e)?r.img:r)?r.format_m:r,e))+","+a(s(null!=(r=null!=(r=null!=e?e.person:e)?r.img:r)?r.format_l_url:r,e))+" "+a(s(null!=(r=null!=(r=null!=e?e.person:e)?r.img:r)?r.format_l:r,e))+","+a(s(null!=(r=null!=(r=null!=e?e.person:e)?r.img:r)?r.format_xl_url:r,e))+" "+a(s(null!=(r=null!=(r=null!=e?e.person:e)?r.img:r)?r.format_xl:r,e))+'" sizes="'+a(s(null!=(r=null!=(r=null!=e?e.person:e)?r.img:r)?r.sizes:r,e))+'" />\n\t\t\t\t\t\t\t\t\t\t\x3c!--[if IE 9]></audio><![endif]--\x3e\n\t\t\t\t\t\t\t\t\t\t<img class="picture__image" src="'+a(s(null!=(r=null!=(r=null!=e?e.person:e)?r.img:r)?r.imgSrc:r,e))+'" alt="'+a(s(null!=(r=null!=(r=null!=e?e.person:e)?r.img:r)?r.imgAlt:r,e))+'" data-sizes="auto" />\n\t\t\t\t\t\t\t\t\t</picture>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</figure>\n'},91:function(t,e,n,i,o){var r;return'<p class="person-detail__organization-unit">'+t.escapeExpression(t.lambda(null!=(r=null!=e?e.person:e)?r.organizationunit:r,e))+"</p>"},93:function(t,e,n,i,o){var r;return'<p class="person-detail__function">'+t.escapeExpression(t.lambda(null!=(r=null!=e?e.person:e)?r.jobfunction:r,e))+"</p>"},95:function(t,e,n,i,o){var r;return'<p class="person-detail__job-description">'+(null!=(r=t.lambda(null!=(r=null!=e?e.person:e)?r.jobdescription:r,e))?r:"")+"</p>"},97:function(t,e,n,i,o){var r;return'<p class="person-detail__personinfo">'+(null!=(r=t.lambda(null!=(r=null!=e?e.person:e)?r.personinfo:r,e))?r:"")+"</p>"},99:function(t,e,n,i,o){var r;return'<p class="person-detail__office">'+t.escapeExpression(t.lambda(null!=(r=null!=e?e.person:e)?r.office:r,e))+"</p>"},101:function(t,e,n,i,o){var r;return'<p class="person-detail__room">'+t.escapeExpression(t.lambda(null!=(r=null!=e?e.person:e)?r.room:r,e))+"</p>"},103:function(t,e,n,i,o){var r;return'<p class="person-detail__street">'+t.escapeExpression(t.lambda(null!=(r=null!=e?e.person:e)?r.street:r,e))+"</p>"},105:function(t,e,n,i,o){var r;return'<p class="person-detail__plz-city">'+t.escapeExpression(t.lambda(null!=(r=null!=e?e.person:e)?r.city:r,e))+"</p>"},107:function(t,e,n,i,o){var r;return null!=(r=n.if.call(null!=e?e:t.nullContext||{},null!=e?e.content:e,{name:"if",hash:{},fn:t.program(108,o,0),inverse:t.noop,data:o}))?r:""},108:function(t,e,n,i,o){var r,s=null!=e?e:t.nullContext||{},a=t.lambda,l=t.escapeExpression;return'\t\t\t\t\t\t\t\t\t\t\t\t<p class="person-detail__linkarea">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<a '+(null!=(r=n.if.call(s,null!=(r=null!=e?e.content:e)?r.linkTarget:r,{name:"if",hash:{},fn:t.program(109,o,0),inverse:t.noop,data:o}))?r:"")+' href="'+l(a(null!=(r=null!=e?e.content:e)?r.linkHref:r,e))+'" class="person-detail__link '+(null!=(r=n.if.call(s,null!=(r=null!=e?e.content:e)?r.linkClasses:r,{name:"if",hash:{},fn:t.program(111,o,0),inverse:t.noop,data:o}))?r:"")+'">'+l(a(null!=(r=null!=e?e.content:e)?r.linkText:r,e))+"</a>\n\t\t\t\t\t\t\t\t\t\t\t\t</p>\n"},109:function(t,e,n,i,o){var r;return'target="'+t.escapeExpression(t.lambda(null!=(r=null!=e?e.content:e)?r.linkTarget:r,e))+'" rel="noopener"'},111:function(t,e,n,i,o){var r;return t.escapeExpression(t.lambda(null!=(r=null!=e?e.content:e)?r.linkClasses:r,e))},113:function(t,e,n,i,o){var r;return'<p class="person-detail__phone">'+t.escapeExpression(t.lambda(null!=(r=null!=e?e.person:e)?r.phone:r,e))+"</p>"},115:function(t,e,n,i,o){var r;return'<p class="person-detail__fax">'+t.escapeExpression(t.lambda(null!=(r=null!=e?e.person:e)?r.fax:r,e))+"</p>"},compiler:[8,">= 4.3.0"],main:function(t,e,n,i,o){var r,s=null!=e?e:t.nullContext||{};return'<figure class="c-figure--overlay'+(null!=(r=n.if.call(s,null!=e?e.slider:e,{name:"if",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o}))?r:"")+(null!=(r=n.if.call(s,null!=e?e.person:e,{name:"if",hash:{},fn:t.program(3,o,0),inverse:t.noop,data:o}))?r:"")+'" data-css="c-figure">\n'+(null!=(r=n.with.call(s,null!=e?e.image:e,{name:"with",hash:{},fn:t.program(5,o,0),inverse:t.noop,data:o}))?r:"")+(null!=(r=n.with.call(s,null!=e?e.video:e,{name:"with",hash:{},fn:t.program(7,o,0),inverse:t.noop,data:o}))?r:"")+(null!=(r=n.if.call(s,null!=e?e.extplayer:e,{name:"if",hash:{},fn:t.program(16,o,0),inverse:t.noop,data:o}))?r:"")+(null!=(r=n.with.call(s,null!=e?e.youtube:e,{name:"with",hash:{},fn:t.program(51,o,0),inverse:t.noop,data:o}))?r:"")+(null!=(r=n.with.call(s,null!=e?e.vimeo:e,{name:"with",hash:{},fn:t.program(54,o,0),inverse:t.noop,data:o}))?r:"")+(null!=(r=n.with.call(s,null!=e?e.lrzplayer:e,{name:"with",hash:{},fn:t.program(56,o,0),inverse:t.noop,data:o}))?r:"")+(null!=(r=n.if.call(s,null!=e?e.slider:e,{name:"if",hash:{},fn:t.program(58,o,0),inverse:t.noop,data:o}))?r:"")+(null!=(r=n.with.call(s,null!=e?e.caption:e,{name:"with",hash:{},fn:t.program(73,o,0),inverse:t.noop,data:o}))?r:"")+(null!=(r=n.with.call(s,null!=e?e.html:e,{name:"with",hash:{},fn:t.program(78,o,0),inverse:t.noop,data:o}))?r:"")+(null!=(r=n.if.call(s,null!=e?e.metainfo:e,{name:"if",hash:{},fn:t.program(80,o,0),inverse:t.noop,data:o}))?r:"")+(null!=(r=n.if.call(s,null!=e?e.person:e,{name:"if",hash:{},fn:t.program(86,o,0),inverse:t.noop,data:o}))?r:"")+"</figure>\n"},useData:!0}
2),window.App.Templates.SELECTREPLACE__BTN=t.template({1:function(t,e,n,i,o){var r;return" "+t.escapeExpression("function"==typeof(r=null!=(r=n.modifierClasses||(null!=e?e.modifierClasses:e))?r:t.hooks.helperMissing)?r.call(null!=e?e:t.nullContext||{},{name:"modifierClasses",hash:{},data:o}):r)},3:function(t,e,n,i,o){return' disabled="disabled"'},5:function(t,e,n,i,o){var r;return' tabindex="'+t.escapeExpression("function"==typeof(r=null!=(r=n.tabIndex||(null!=e?e.tabIndex:e))?r:t.hooks.helperMissing)?r.call(null!=e?e:t.nullContext||{},{name:"tabIndex",hash:{},data:o}):r)+'"'},compiler:[8,">= 4.3.0"],main:function(t,n,i,o,r){var s,a,l=null!=n?n:t.nullContext||{},c=t.hooks.helperMissing,u="function",p=t.escapeExpression;return'<button class="form__sr-btn'+(null!=(s=i.if.call(l,null!=n?n.modifierClasses:n,{name:"if",hash:{},fn:t.program(1,r,0),inverse:t.noop,data:r}))?s:"")+'" data-js-item="btn"\n        type="button" value="" readonly="readonly" aria-controls="'+p(e(a=null!=(a=i.instanceId||(null!=n?n.instanceId:n))?a:c)===u?a.call(l,{name:"instanceId",hash:{},data:r}):a)+'"\n        aria-expanded="'+p(e(a=null!=(a=i.ariaExpanded||(null!=n?n.ariaExpanded:n))?a:c)===u?a.call(l,{name:"ariaExpanded",hash:{},data:r}):a)+'"'+(null!=(s=i.if.call(l,null!=n?n.disabled:n,{name:"if",hash:{},fn:t.program(3,r,0),inverse:t.noop,data:r}))?s:"")+(null!=(s=i.if.call(l,null!=n?n.tabIndex:n,{name:"if",hash:{},fn:t.program(5,r,0),inverse:t.noop,data:r}))?s:"")+">"+p(e(a=null!=(a=i.buttonLabel||(null!=n?n.buttonLabel:n))?a:c)===u?a.call(l,{name:"buttonLabel",hash:{},data:r}):a)+"</button>\n"},useData:!0}),window.App.Templates.SELECTREPLACE__LIST=t.template({1:function(t,n,i,o,r,s,a){var l,c,u=null!=n?n:t.nullContext||{},p=t.hooks.helperMissing,f="function",d=t.escapeExpression;return'\t\t\t<li class="form__sr-list-item">\n\t\t\t\t<button class="form__sr-list-button'+(null!=(l=i.if.call(u,null!=n?n.selected:n,{name:"if",hash:{},fn:t.program(2,r,0,s,a),inverse:t.noop,data:r}))?l:"")+(null!=(l=i.if.call(u,null!=n?n.disabled:n,{name:"if",hash:{},fn:t.program(4,r,0,s,a),inverse:t.noop,data:r}))?l:"")+'"\n\t\t\t\t        data-value="'+d(e(c=null!=(c=i.value||(null!=n?n.value:n))?c:p)===f?c.call(u,{name:"value",hash:{},data:r}):c)+'" data-js-item="list-item"'+(null!=(l=i.if.call(u,null!=n?n.disabled:n,{name:"if",hash:{},fn:t.program(6,r,0,s,a),inverse:t.noop,data:r}))?l:"")+">"+(null!=(l=i.if.call(u,null!=n?n.selected:n,{name:"if",hash:{},fn:t.program(8,r,0,s,a),inverse:t.noop,data:r}))?l:"")+d(e(c=null!=(c=i.text||(null!=n?n.text:n))?c:p)===f?c.call(u,{name:"text",hash:{},data:r}):c)+"</button>\n\t\t\t</li>\n"},2:function(t,e,n,i,o){return" is-selected"},4:function(t,e,n,i,o){return" is-disabled"},6:function(t,e,n,i,o){return' disabled="disabled"'},8:function(t,e,n,i,o,r,s){var a;return'\n\t\t\t\t\t<span class="is-aural">'+t.escapeExpression(t.lambda(null!=(a=null!=s[1]?s[1].i18n:s[1])?a.selected:a,e))+": </span>"},compiler:[8,">= 4.3.0"],main:function(t,e,n,i,o,r,s){var a;return'<div class="form__sr-list-wrapper-inner" data-js-item="list-wrapper-inner">\n\t<ul class="form__sr-list">\n'+(null!=(a=n.each.call(null!=e?e:t.nullContext||{},null!=e?e.items:e,{name:"each",hash:{},fn:t.program(1,o,0,r,s),inverse:t.noop,data:o}))?a:"")+"\t</ul>\n</div>"},useData:!0,useDepths:!0}),window.App.Templates.SELECTREPLACE__PRERENDER=t.template({1:function(t,e,n,i,o){return" is-multi-select"},compiler:[8,">= 4.3.0"],main:function(t,e,n,i,o){var r,s,a=null!=e?e:t.nullContext||{};return'<div class="form__sr'+(null!=(r=n.if.call(a,null!=e?e.isMultiSelect:e,{name:"if",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o}))?r:"")+'">\n\t<div class="form__sr-btn-wrapper" data-js-item="btn-wrapper"></div>\n\t<fieldset class="form__sr-list-wrapper" data-js-item="list-wrapper" id="'+t.escapeExpression("function"==typeof(s=null!=(s=n.instanceId||(null!=e?e.instanceId:e))?s:t.hooks.helperMissing)?s.call(a,{name:"instanceId",hash:{},data:o}):s)+'"\n\t          disabled="disabled"></fieldset>\n</div>'},useData:!0}),window.App.Templates.PICTURE=t.template({1:function(t,e,n,i,o){var r;return"--"+t.escapeExpression(t.lambda(null!=(r=null!=e?e.settings:e)?r.pictureContextClass:r,e))},3:function(t,e,n,i,o){return"--default"},5:function(t,e,n,i,o){var r;return" "+t.escapeExpression(t.lambda(null!=(r=null!=e?e.settings:e)?r.pictureClasses:r,e))},7:function(t,e,n,i,o){return" lazyload"},9:function(t,e,n,i,o){var r;return" data-js-item='"+t.escapeExpression(t.lambda(null!=(r=null!=e?e.settings:e)?r.pictureJsItem:r,e))+"'"}
2,11:function(t,e,n,i,o,r,s){var a,l=null!=e?e:t.nullContext||{};return"\t<source "+(null!=(a=n.if.call(l,null!=(a=null!=s[1]?s[1].settings:s[1])?a.lazyload:a,{name:"if",hash:{},fn:t.program(12,o,0,r,s),inverse:t.noop,data:o}))?a:"")+'srcset="'+(null!=(a=n.each.call(l,null!=e?e.srcset:e,{name:"each",hash:{},fn:t.program(14,o,0,r,s),inverse:t.noop,data:o}))?a:"")+'"\n\t        '+(null!=(a=n.if.call(l,null!=e?e.sizes:e,{name:"if",hash:{},fn:t.program(19,o,0,r,s),inverse:t.noop,data:o}))?a:"")+"\n\t\t"+(null!=(a=n.if.call(l,null!=e?e.media:e,{name:"if",hash:{},fn:t.program(23,o,0,r,s),inverse:t.noop,data:o}))?a:"")+"\n\t\t"+(null!=(a=n.if.call(l,null!=e?e.type:e,{name:"if",hash:{},fn:t.program(25,o,0,r,s),inverse:t.noop,data:o}))?a:"")+" />\n"},12:function(t,e,n,i,o){return" data-"},14:function(t,e,n,i,o){var r,s=null!=e?e:t.nullContext||{};return(null!=(r=n.unless.call(s,o&&o.first,{name:"unless",hash:{},fn:t.program(15,o,0),inverse:t.noop,data:o}))?r:"")+"\n\t "+t.escapeExpression((n.getUrl||e&&e.getUrl||t.hooks.helperMissing).call(s,null!=e?e.src:e,{name:"getUrl",hash:{},data:o}))+" "+(null!=(r=n.if.call(s,null!=e?e.imageWidth:e,{name:"if",hash:{},fn:t.program(17,o,0),inverse:t.noop,data:o}))?r:"")+" "},15:function(t,e,n,i,o){return", "},17:function(t,e,n,i,o){var r;return" "+t.escapeExpression("function"==typeof(r=null!=(r=n.imageWidth||(null!=e?e.imageWidth:e))?r:t.hooks.helperMissing)?r.call(null!=e?e:t.nullContext||{},{name:"imageWidth",hash:{},data:o}):r)+" "},19:function(t,e,n,i,o){var r;return' sizes=" '+(null!=(r=n.each.call(null!=e?e:t.nullContext||{},null!=e?e.sizes:e,{name:"each",hash:{},fn:t.program(20,o,0),inverse:t.noop,data:o}))?r:"")+'"'},20:function(t,n,i,o,r){var s,a,l=null!=n?n:t.nullContext||{},c=t.hooks.helperMissing,u="function",p=t.escapeExpression;return"\n\t "+(null!=(s=i.unless.call(l,r&&r.first,{name:"unless",hash:{},fn:t.program(21,r,0),inverse:t.noop,data:r}))?s:"")+" "+p(e(a=null!=(a=i.screenWidth||(null!=n?n.screenWidth:n))?a:c)===u?a.call(l,{name:"screenWidth",hash:{},data:r}):a)+" "+p(e(a=null!=(a=i.imageWidth||(null!=n?n.imageWidth:n))?a:c)===u?a.call(l,{name:"imageWidth",hash:{},data:r}):a)+" "},21:function(t,e,n,i,o){return" , "},23:function(t,e,n,i,o){var r;return' media=" '+t.escapeExpression("function"==typeof(r=null!=(r=n.media||(null!=e?e.media:e))?r:t.hooks.helperMissing)?r.call(null!=e?e:t.nullContext||{},{name:"media",hash:{},data:o}):r)+'"'},25:function(t,e,n,i,o){var r;return' type="\n\t '+t.escapeExpression("function"==typeof(r=null!=(r=n.type||(null!=e?e.type:e))?r:t.hooks.helperMissing)?r.call(null!=e?e:t.nullContext||{},{name:"type",hash:{},data:o}):r)+'"'},27:function(t,e,n,i,o){var r,s=null!=e?e:t.nullContext||{},a=t.escapeExpression,l=t.lambda;return'\t\t<img class="\n\t picture__image'+(null!=(r=n.if.call(s,null!=(r=null!=e?e.settings:e)?r.lazyload:r,{name:"if",hash:{},fn:t.program(7,o,0),inverse:t.noop,data:o}))?r:"")+'" src="'+a((n.getUrl||e&&e.getUrl||t.hooks.helperMissing).call(s,null!=(r=null!=e?e.content:e)?r.fallbackSrc:r,{name:"getUrl",hash:{},data:o}))+'" alt="'+a(l(null!=(r=null!=e?e.content:e)?r.alt:r,e))+'"\n\t title="'+a(l(null!=(r=null!=e?e.content:e)?r.alt:r,e))+'" '+(null!=(r=n.if.call(s,null!=(r=null!=e?e.settings:e)?r.autoSizes:r,{name:"if",hash:{},fn:t.program(28,o,0),inverse:t.noop,data:o}))?r:"")+" "+(null!=(r=n.if.call(s,null!=(r=null!=e?e.settings:e)?r.ariaDescribedBy:r,{name:"if",hash:{},fn:t.program(30,o,0),inverse:t.noop,data:o}))?r:"")+" />\n"},28:function(t,e,n,i,o){return'  data-sizes="auto" '},30:function(t,e,n,i,o){var r;return' aria-describedby="'+t.escapeExpression(t.lambda(null!=(r=null!=e?e.settings:e)?r.ariaDescribedBy:r,e))+'"\n\t '},32:function(t,e,n,i,o){return'\t<h3 style="color: red; font-weight: bold;">Define a fallback picture!</h3>\n'},compiler:[8,">= 4.3.0"],main:function(t,e,n,i,o,r,s){var a,l=null!=e?e:t.nullContext||{};return'<picture class="c-picture'+(null!=(a=n.if.call(l,null!=(a=null!=e?e.settings:e)?a.pictureContextClass:a,{name:"if",hash:{},fn:t.program(1,o,0,r,s),inverse:t.program(3,o,0,r,s),data:o}))?a:"")+"\n\t"+(null!=(a=n.if.call(l,null!=(a=null!=e?e.settings:e)?a.pictureClasses:a,{name:"if",hash:{},fn:t.program(5,o,0,r,s),inverse:t.noop,data:o}))?a:"")+(null!=(a=n.if.call(l,null!=(a=null!=e?e.settings:e)?a.lazyload:a,{name:"if",hash:{},fn:t.program(7,o,0,r,s),inverse:t.noop,data:o}))?a:"")+'"\n data-css="c-picture" '+(null!=(a=n.if.call(l,null!=(a=null!=e?e.settings:e)?a.pictureJsItem:a,{name:"if",hash:{},fn:t.program(9,o,0,r,s),inverse:t.noop,data:o}))?a:"")+">\n\n\t\x3c!--[if IE 9]><audio><![endif]--\x3e\n"+(null!=(a=n.each.call(l,null!=(a=null!=e?e.content:e)?a.items:a,{name:"each",hash:{},fn:t.program(11,o,0,r,s),inverse:t.noop,data:o}))?a:"")+"\t\x3c!--[if IE 9]></audio><![endif]--\x3e\n\n"+(null!=(a=n.if.call(l,null!=(a=null!=e?e.content:e)?a.fallbackSrc:a,{name:"if",hash:{},fn:t.program(27,o,0,r,s),inverse:t.program(32,o,0,r,s),data:o}))?a:"")+"</picture>\n"},useData:!0,useDepths:!0}),window.App.Templates}},6283:t=>{t.exports.register=function(t){t.registerHelper("getUrl",(function(t,e){if(t&&"string"==typeof t){for(var n=["http://","https://","mailto:"],i=0;i<n.length;i++)if(-1!==t.indexOf(n[i]))return t;return e.data.root.assets+t}}))}},1883:t=>{t.exports.register=function(t){t.registerHelper("is",(function(t,e,n){return 2===arguments.length&&(e=(n=e).hash.compare),t===e?n.fn(this):n.inverse(this)}))}},315:t=>{t.exports.register=function(t){t.registerHelper("partial",(function(e,n){return e=e.replace("-","").toUpperCase(),new t.SafeString(Veams.templater.templates[e](n))}))}},6925:t=>{t.exports.register=function(t){t.registerHelper("prod",(function(){return!0}))}},8638:module=>{module.exports.register=function(Handlebars,options){Handlebars.registerHelper("xif",(function(v1,operator,v2,options){switch(operator){case"==":return v1==v2?options.fn(this):options.inverse(this);case"!=":return v1!=v2?options.fn(this):options.inverse(this);case"===":return v1===v2?options.fn(this):options.inverse(this);case"!==":return v1!==v2?options.fn(this):options.inverse(this);case"&&":return v1&&v2?options.fn(this):options.inverse(this);case"||":return v1||v2?options.fn(this):options.inverse(this);case"<":return v1<v2?options.fn(this):options.inverse(this);case"<=":return v1<=v2?options.fn(this):options.inverse(this);case">":return v1>v2?options.fn(this):options.inverse(this);case">=":return v1>=v2?options.fn(this):options.inverse(this);default:return eval(""+v1+operator+v2)?options.fn(this):options.inverse(this)}}))}},8488:t=>{"use strict";if("undefined"==typeof moment){var e=new Error("Cannot find module 'moment'");throw e.code="MODULE_NOT_FOUND",e}t.exports=moment}},__webpack_module_cache__={},deferred;function __webpack_require__(t){var e=__webpack_module_cache__[t];if(void 0!==e)return e.exports;var n=__webpack_module_cache__[t]={exports:{}};return __webpack_modules__[t].call(n.exports,n,n.exports,__webpack_require__),n.exports}__webpack_require__.m=__webpack_modules__,deferred=[],__webpack_require__.O=(t,e,n,i)=>{if(!e){var o=1/0;for(l=0;l<deferred.length;l++){for(var[e,n,i]=deferred[l],r=!0,s=0;s<e.length;s++)(!1&i||o>=i)&&Object.keys(__webpack_require__.O).every((t=>__webpack_require__.O[t](e[s])))?e.splice(s--,1):(r=!1,i<o&&(o=i));if(r){deferred.splice(l--,1);var a=n();void 0!==a&&(t=a)}}return t}i=i||0;for(var l=deferred.length;l>0&&deferred[l-1][2]>i;l--)deferred[l]=deferred[l-1];deferred[l]=[e,n,i]},__webpack_require__.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return __webpack_require__.d(e,{a:e}),e},__webpack_require__.d=(t,e)=>{for(var n in e)__webpack_require__.o(e,n)&&!__webpack_require__.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}
2}(),__webpack_require__.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),__webpack_require__.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{var t={143:0};__webpack_require__.O.j=e=>0===t[e];var e=(e,n)=>{var i,o,[r,s,a]=n,l=0;if(r.some((e=>0!==t[e]))){for(i in s)__webpack_require__.o(s,i)&&(__webpack_require__.m[i]=s[i]);if(a)var c=a(__webpack_require__)}for(e&&e(n);l<r.length;l++)o=r[l],__webpack_require__.o(t,o)&&t[o]&&t[o][0](),t[o]=0;return __webpack_require__.O(c)},n=self.webpackChunk=self.webpackChunk||[];n.forEach(e.bind(null,0)),n.push=e.bind(null,n.push.bind(n))})();var __webpack_exports__=__webpack_require__.O(void 0,[350],(()=>__webpack_require__(8229)));__webpack_exports__=__webpack_require__.O(__webpack_exports__)})();

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.