1/*! build on 2026-03-04 */ 2function initAutocompleter(){new Autocompleter({container:"input.js-compass-autocomplete",source:"/ajax/autocomplete.json",itemHtml:"<a class='${additionalClass}'><svg data-svgname='${svgName}'></svg><span>${name}</span><small>${type}</small></a>",tabFormControl:!0}).init()}function initFixedAutocompleter(){new Autocompleter({container:"input.js-compass-autocomplete-fixed",source:"/ajax/autocomplete.json",itemHtml:"<a class='${additionalClass}'><svg data-svgname='${svgName}'></svg><span>${name}</span><small>${type}</small></a>",tabFormControl:!0}).init()}function hideAutocompleter(){$(".autocomplete").removeClass("autocomplete__layer--visible"),$(".autocomplete__input").next(".ac-wrapper").hide()}function showAutocompleter(t){$(".autocomplete").toggleClass("autocomplete__layer--visible",2<=t.length)}function createAutoHide(t){new AutoHide(t).init()}function AutoHide(t){this.elementToClose=t}function CartAdd(t){this.triggerElement=t,this.classHelper=new ClassHelper,this.domHelper=new DomHelper}function createCartBuy(t){return new CartBuy(t)}function CartBuy(t){this.triggerElement=t,this.handlerUtil=new HandlerUtil}function createCartFetcher(t){return new CartFetcher(t)}function CartFetcher(t){this.triggerElement=t,this.handlerUtil=new HandlerUtil,this.domHelper=new DomHelper}function CartRemove(t){this.triggerElement=t}function createCheckoutFetcher(t){return new CheckoutFetcher(t)}function CheckoutFetcher(t){this.triggerElement=t,this.handlerUtil=new HandlerUtil}function CheckoutRemove(t){this.triggerElement=t}function createVerificationFetcher(t,e){return new CheckoutVerificationFetcher(t,e)}function CheckoutVerificationFetcher(t,e){this.triggerElement=e,this.checkoutConrainer=t,this.handlerUtil=new HandlerUtil}function CookieNotice(t){this.config=t,this.cookieManager=new CookieManager}$(document).on("keyup",".autocomplete__input",function(t){var e=$(this).val();$(".autocomplete").toggleClass("autocomplete__layer--visible",1<=e.length).next().attr("disabled",function(){return e.length<1}),27===t.keyCode&&hideAutocompleter()}),$(document).on("click",".autocomplete__delete",function(t){hideAutocompleter(),$(".autocomplete__input").val("")}),$(document).on("click",function(t){$(t.target).parents().hasClass("autocomplete")||hideAutocompleter()}),$(document).on("focus",".autocomplete__input",function(){showAutocompleter($(this).val())}),AutoHide.prototype.DEFAULT_TIME_TO_DELAY=5,AutoHide.prototype.init=function(){this.closeElement()},AutoHide.prototype.getElementToClose=function(){return this.elementToClose},AutoHide.prototype.getCloseDelay=function(){return parseInt(this.getElementToClose().data("autohide-delay"))||this.DEFAULT_TIME_TO_DELAY},AutoHide.prototype.closeElement=function(){this.getElementToClose().delay(1e3*this.getCloseDelay()).fadeOut()},$(document).on("click",".js-cart-add",function(t){t.preventDefault(),new CartAdd($(this)).init()}),CartAdd.prototype.init=function(){this.requestAdd()},CartAdd.prototype.updateCart=function(){var t=new CartFetcher($(".js-cart-fetcher"));t.itemIsAlreadyInCart(this.getItemID())||(t.openCart(),t.handleCartData())},CartAdd.prototype.getTriggerElement=function(){return this.triggerElement},CartAdd.prototype.getItemID=function(){return this.getTriggerElement().data("item-id")||!1},CartAdd.prototype.getEndpoint=function(){return this.getTriggerElement().data("cart-add-source")},CartAdd.prototype.requestAdd=function(){$.ajax({url:this.getEndpoint(),cache:!1,dataType:"json"}).done(function(t){!0===t.success&&(this.disableAllButtons(),this.updateCart(),this.pushMatomoEvent(t))}.bind(this))},CartAdd.prototype.disableAllButtons=function(){var t=$("[data-item-id="+this.getItemID()+"]");$.each(t,function(t,e){this.classHelper.disableButton($(e))}.bind(this))},CartAdd.prototype.pushMatomoEvent=function(t){var e=new MatomoUtils;e.mtmEvent("cart-item-added",{cart_product:t.cart_product,cart_update:t.cart_update}),e.saveCartItems(t.cart_update)},CartBuy.prototype.getCartContainerID=function(){},$(document).on("click",".js-cart-fetcher",function(){$(this).hasClass("dropdown__trigger--disabled")||createCartFetcher($(this)).initFetchData()}),CartFetcher.prototype.initCountData=function(){this.method="countData",this.requestCartData()},CartFetcher.prototype.getEmptyCartTooltip=function(){return this.getTriggerElement().data("empty-cart-tooltip")||"Ihr Warenkorb ist aktuell leer"},CartFetcher.prototype.initFetchData=function(){this.method="fetchData",this.menuIsOpen()||this.handleCartData()},CartFetcher.prototype.removeBadge=function(){this.getBadgeElement()&&this.getBadgeElement().remove()},CartFetcher.prototype.getBadgeElement=function(){return this.triggerElement.find(".shoppingcart__counter")||!1},CartFetcher.prototype.handleCartData=function(){this.setLoading(),this.requestCartData()},CartFetcher.prototype.doAfterSuccessfulRequest=function(t){this.setCartData(t);t=this.countItems(this.getCartData());this.unsetLoading(),0===t?(this.addDisableClass(),this.removeBadge(),this.closeCart(),new Tooltip({triggerElement:this.getTriggerElement(),content:this.getEmptyCartTooltip(),position:"bottom"}).showTooltip()):(this.setBadge(t),this.replaceCartContent(),this.removeDisableClass(),void 0!==this.getTriggerElement().data("original-title")&&new Tooltip({triggerElement:this.getTriggerElement()}).destroyTooltip(),this.handlerUtil.rerender(this.getCartContainer()))},CartFetcher.prototype.requestCartData=function(){$.ajax({url:this.getEndpoint(),cache:!1}).done(function(t){this.doAfterSuccessfulRequest(t),$(document).trigger("cart-fetch-complete",this)}.bind(this))},CartFetcher.prototype.countItems=function(t){var i=0;return $.each($(t),function(t,e){$(e).hasClass("shoppingcart__list--item")&&i++}.bind(this)),i},CartFetcher.prototype.setBadge=function(t){0<t&&(this.getCounter().length||this.setCounterElement(),this.getCounter().html(t))},CartFetcher.prototype.setCounterElement=function(){this.getTriggerElement().find(".shoppingcart").prepend('<span class="shoppingcart__counter"></span>')},CartFetcher.prototype.getCounter=function(){return this.getTriggerElement().find(".shoppingcart__counter")||!1},CartFetcher.prototype.setLoading=function(){this.getCartContainer().html('<li id="news-loading"><div class="loading-container"><div class="loading"></div></div></li>')},CartFetcher.prototype.unsetLoading=function(){$("li#news-loading").remove()},CartFetcher.prototype.menuIsOpen=function(){return this.getMenuElement().hasClass("dropdown--active")},CartFetcher.prototype.getCartContainer=function(){return $(".shoppingcart__list")||$.error("Shoppingcart Container couldn't be found.")},CartFetcher.prototype.replaceCartContent=function(){this.getCartContainer().html(this.getCartData())},CartFetcher.prototype.setCartData=function(t){this.cartData=t},CartFetcher.prototype.closeCart=function(){this.domHelper.isMobileDevice()&&(new ManipulationUtils).unlockPage(),this.getMenuElement().removeClass("dropdown--active")},CartFetcher.prototype.openCart=function(){var t;this.domHelper.isMobileDevice()&&((t=new ManipulationUtils).lockPage(),setTimeout(function(){this.getMenuElement().removeClass("dropdown--active"),t.unlockPage()}.bind(this),3e3)),this.getMenuElement().addClass("dropdown--active")},CartFetcher.prototype.getCartData=function(){return this.cartData||!1},CartFetcher.prototype.getTriggerElement=function(){return this.triggerElement},CartFetcher.prototype.getEndpoint=function(){return this.getTriggerElement().data("cart-source")},CartFetcher.prototype.getMenuElement=function(){return this.getTriggerElement().closest(".dropdown")},CartFetcher.prototype.checkForNewItems=function(){this.getBadgeElement()&&this.requestCartData()},CartFetcher.prototype.removeDisableClass=function(){this.getTriggerElement().removeClass("dropdown__trigger--disabled")},CartFetcher.prototype.addDisableClass=function(){this.getTriggerElement().addClass("dropdown__trigger--disabled")},CartFetcher.prototype.isDisabled=function(){return this.getTriggerElement().hasClass("dropdown__trigger--disabled")},CartFetcher.prototype.itemIsAlreadyInCart=function(t){return this.getCartContainer().find("[data-item-id="+t+"]").length},$(document).on("click",".js-cart-remove",function(t){t.preventDefault(),new CartRemove($(this)).init()}),CartRemove.prototype.init=function(){this.requestDelete()},CartRemove.prototype.updateCart=function(){new CartFetcher($(".js-cart-fetcher")).handleCartData()},CartRemove.prototype.getTriggerElement=function(){return this.triggerElement},CartRemove.prototype.getEndpoint=function(){return this.getTriggerElement().data("cart-remove-source")},CartRemove.prototype.requestDelete=function(){$.ajax({url:this.getEndpoint(),cache:!1,dataType:"json"}).done(function(t){!0===t.success&&(this.updateCart(),this.reactivateBuyButton(),this.pushMatomoEvent(t))}.bind(this))},CartRemove.prototype.reactivateBuyButton=function(){var t=this.getItemID();$(".button[data-item-id="+t+"]").removeClass("button--disabled")},CartRemove.prototype.getItemID=function(){return this.getTriggerElement().data("item-id")},CartRemove.prototype.pushMatomoEvent=function(t){var e=new MatomoUtils;e.mtmEvent("cart-item-removed",{cart_product:t.cart_product,cart_update:t.cart_update}),e.saveCartItems(t.cart_update)},document.addEventListener("DOMContentLoaded",()=>{let n=["invoiceNameOrCompany","invoiceStreet","invoiceAddressAdditional","invoiceZipCode","invoiceCity","invoiceState"],o=["orderedBy","uid"];function r(t){let e,i;if("invoiceState"===t)e=document.querySelector(".niceselect.invoiceState p.top")?.textContent.trim()||"",i=document.querySelector(".select_style, .select_style_error"),"Bitte wählen Sie..."===e||"Please select..."===e?(e="",i.classList.replace("select_style","select_style_error")):i.
2classList.replace("select_style_error","select_style");else{t=document.getElementById(t);if(!t)return;e=t.value.trim(),i=t.closest(".input-element")}0===e.length?i.classList.add("form__field--error"):i.classList.remove("form__field--error")}function e(){var t,e=(e=document.getElementById("email"))?e.value:"",i=document.getElementById("uid"),i={email:e,uid:i?i.value:"",invoiceNameOrCompany:document.getElementById("invoiceNameOrCompany").value,orderedBy:document.getElementById("orderedBy").value,invoiceStreet:document.getElementById("invoiceStreet").value,invoiceAddressAdditional:document.getElementById("invoiceAddressAdditional").value,invoiceZipCode:document.getElementById("invoiceZipCode").value,invoiceCity:document.getElementById("invoiceCity").value,invoiceState:(e=document.querySelector(".niceselect.invoiceState p.top")?.textContent.trim()||"UNDEFINED",(()=>{let i={},t=document.querySelectorAll(".niceselect.invoiceState .values label.nice_label");return t.forEach(t=>{var e=t.textContent.trim();i[e]=t.previousElementSibling.value}),i})()[e]||"UNDEFINED")};0<n.filter(t=>{t=document.getElementById(t);return t&&""===t.value.trim()}).length||(e=$(".checkout-wrapper"),t=$("#invoice-address-verify"),0<e.length&&0<t.length?new CheckoutVerificationFetcher(e,t).init(i):console.error("Required elements not found: checkoutWrapper or verifyButton"))}window.disablePurchaseButton=function(){var t=document.getElementById("purchase-form-submit"),e=document.getElementById("verification-info-message");t&&e&&(t.disabled||(e.removeAttribute("hidden"),t.classList.add("button--disabled")))},document.getElementById("invoice-address-verify").addEventListener("click",t=>{t.preventDefault(),n.forEach(t=>{r(t)}),e()}),window.clearInvoiceAddressInputs=function(){for(let t=0;t<n.length;t++){var e=document.getElementById(n[t]);e&&(e.value="")}var t=document.getElementById("invoiceState");t&&(t.selectedIndex=0);for(let t=0;t<o.length;t++){var i=document.getElementById(o[t]);i&&(i.value="")}},document.querySelector('input[name="uid"]').addEventListener("input",function(){var t=document.querySelector('input[name="uid"]'),e=document.querySelector(".uid");t&&""===t.value.trim()&&e&&e.classList.remove("form__field--error")}),n.forEach(i=>{var t=document.getElementById(i);t&&t.addEventListener("input",()=>{var t,e;"email"===i?(t=i,e=(t=document.getElementById(t)).value.trim(),t=t.closest(".input-element"),0!==e.length&&/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)?t.classList.remove("form__field--error"):t.classList.add("form__field--error")):r(i)})})}),CheckoutFetcher.prototype.DEFAULT_DATA_ENDPOINT="/checkout/document/recalc/DE",CheckoutFetcher.prototype.init=async function(){this.hasCheckoutContainer()&&(this.setLoading(),await this.requestCheckoutData())},CheckoutFetcher.prototype.getTriggerElement=function(){return this.triggerElement},CheckoutFetcher.prototype.getEndpoint=function(){return this.getTriggerElement().data("checkout-source")||this.getDefaultEndpoint()},CheckoutFetcher.prototype.getDefaultEndpoint=function(){return this.DEFAULT_DATA_ENDPOINT},CheckoutFetcher.prototype.setLoading=function(){this.getCheckoutContainer().html('<div id="news-loading" class="mt1"><div class="loading-container"><div class="loading"></div></div></div>')},CheckoutFetcher.prototype.unsetLoading=function(){$("li#news-loading").remove()},CheckoutFetcher.prototype.getCheckoutContainer=function(){return $(".checkout-wrapper")||$.error("Checkout Container couldn't be found.")},CheckoutFetcher.prototype.hasCheckoutContainer=function(){return this.getCheckoutContainer().length},CheckoutFetcher.prototype.doAfterSuccessfulRequest=function(t){this.unsetLoading(),this.setCheckoutData(t),this.replaceCheckoutContent(),$(document).trigger("checkout-fetch-complete",this),this.handlerUtil.rerender(this.getCheckoutContainer())},CheckoutFetcher.prototype.requestCheckoutData=async function(){await $.ajax({url:this.getEndpoint(),data:this.getFormParameters(),cache:!1}).done(function(t){this.doAfterSuccessfulRequest(t)}.bind(this))},CheckoutFetcher.prototype.replaceCheckoutContent=function(){this.getCheckoutContainer().html(this.getCheckoutData())},CheckoutFetcher.prototype.setCheckoutData=function(t){this.checkoutData=t},CheckoutFetcher.prototype.getCheckoutData=function(){return this.checkoutData||!1},CheckoutFetcher.prototype.getFormParameters=function(){return this.getTriggerElement().closest("form").serialize()},$(document).on("click",".js-checkout-remove",function(t){t.preventDefault(),new CheckoutRemove($(this)).init()}),CheckoutRemove.prototype.DEFAULT_DATA_ENDPOINT="/ajax/checkout-table.php",CheckoutRemove.prototype.init=function(){this.updateCheckout()},CheckoutRemove.prototype.updateCheckout=async function(){await new CheckoutFetcher($(this.getTriggerElement())).init(),0===$(".shoppingcart__list--item").length&&this.disableBuyButtonOnEmptyCart()},CheckoutRemove.prototype.getTriggerElement=function(){return this.triggerElement},CheckoutRemove.prototype.getEndpoint=function(){return this.getTriggerElement().data("checkout-remove-source")||this.getDefaultEndpoint()},CheckoutRemove.prototype.getDefaultEndpoint=function(){return this.DEFAULT_DATA_ENDPOINT},CheckoutRemove.prototype.disableBuyButtonOnEmptyCart=function(){$("#purchase-form-submit").addClass("button--disabled")},CheckoutVerificationFetcher.prototype.DEFAULT_VERIFICATION_ENDPOINT="/checkout/verify",CheckoutVerificationFetcher.prototype.init=async function(t){this.hasCheckoutContainer()&&await this.requestVerificationData(t)},CheckoutVerificationFetcher.prototype.getTriggerElement=function(){return this.triggerElement},CheckoutVerificationFetcher.prototype.getEndpoint=function(){return this.getTriggerElement().data("verification-source")||this.getDefaultEndpoint()},CheckoutVerificationFetcher.prototype.getDefaultEndpoint=function(){return this.DEFAULT_VERIFICATION_ENDPOINT},CheckoutVerificationFetcher.prototype.setLoading=function(){this.getCheckoutContainer().html('<div id="news-loading" class="mt1"><div class="loading-container"><div class="loading"></div></div></div>')}
2,CheckoutVerificationFetcher.prototype.unsetLoading=function(){$("li#news-loading").remove()},CheckoutVerificationFetcher.prototype.getCheckoutContainer=function(){return $(".checkout-wrapper")||$.error("Checkout Container couldn't be found.")},CheckoutVerificationFetcher.prototype.getPurchaseButton=function(){return $(".purchase-button-row")||$.error("Purchase Button couldn't be found.")},CheckoutVerificationFetcher.prototype.hasCheckoutContainer=function(){return this.getCheckoutContainer().length},CheckoutVerificationFetcher.prototype.doAfterSuccessfulRequest=function(t,e){this.unsetLoading(),$(".error").remove(),this.setVerificationData(t);var t=$("<div>").html(t),i=t.find("#checkout-wrapper").html(),i=($("#checkout-wrapper").html(i),t.find("#purchase-button-row").html());$("#purchase-button-row").html(i),this.loadSVGs(),this.initializeOverlays(),$(".uid").removeClass("form__field--error"),$("#purchase-form-submit").removeClass("button--disabled").prop("disabled",!1),document.getElementById("billingAddressDisplay").hidden=!1,document.getElementById("verification-info-message").hidden=!0},CheckoutVerificationFetcher.prototype.initializeOverlays=function(){$(".js-overlay").each(function(){bindOverlayClickEvent($(this))})},CheckoutVerificationFetcher.prototype.loadSVGs=function(){findAjaxLoaderElements().each(function(){createSvgAjaxLoader($(this)).init()})},CheckoutVerificationFetcher.prototype.requestVerificationData=async function(t){try{var e=await $.ajax({url:this.getEndpoint(),method:"post",contentType:"application/json",data:JSON.stringify(t),cache:!1});this.setLoading(),this.doAfterSuccessfulRequest(e,t)}catch(t){this.unsetLoading(),$("#purchase-form-submit").addClass("button--disabled"),$("#errorBox").html(t.responseText),document.getElementById("verification-info-message").hidden=!1,"false"===$(t.responseText).find('input[name="isUidValid"]').val()?$(".uid").addClass("form__field--error"):$(".uid").removeClass("form__field--error")}},CheckoutVerificationFetcher.prototype.replaceCheckoutContent=function(){this.getCheckoutContainer().html(this.getVerificationData())},CheckoutVerificationFetcher.prototype.setVerificationData=function(t){this.verificationData=t},CheckoutVerificationFetcher.prototype.getVerificationData=function(){return this.verificationData||!1},CookieNotice.prototype.init=function(){this.validate(),this.showNotice(),this.setAcceptHandler()},CookieNotice.prototype.showNotice=function(){this.config.container.show()},CookieNotice.prototype.hideNotice=function(){this.config.container.fadeOut()},CookieNotice.prototype.validate=function(){if(!this.getCookieNoticeContainer())throw"Cookie Notice Container must be defined!"},CookieNotice.prototype.getCookieNoticeContainer=function(){return void 0!==this.config.container?this.config.container:null},CookieNotice.prototype.setAcceptHandler=function(){this.config.container.on("click",".js-cookie-notice-accept",function(){this.cookieManager.createCookie("acceptCookies",!0),this.hideNotice()}.bind(this))},CookieNotice.prototype.hasAcceptCookieNotice=function(){};var blindshapeSetSize=function(t,e,i){var n=$(window).width();748<=n?(n=i.width()-(n-$(".container").width())/2,t.css("float",e),t.css("width",n+"px"),t.css("height",i.height()+80+"px")):t.removeAttr("style")},initBlindshape=!0,calculateBlindshape=function(){$(".fullwidth").each(function(){var t,e,i=$(this).find(".fullwidth__image");0!=i.length&&(e=i.hasClass("fullwidth__image--right")?"right":"left",!0===initBlindshape?(t=$('<div class="fullwidth__blindshape"></div>'),$(this).find(".fullwidth__content").prepend(t)):t=$(this).find(".fullwidth__blindshape"),blindshapeSetSize(t,e,i.find("img")))}),initBlindshape=!1};function DocumentDownload(t){this.config=t,this.classHelper=new ClassHelper,this.manipulationUtils=new ManipulationUtils}function createHeaderMap(t){new HeaderMap(t).init()}function HeaderMap(t){this.element=t}function CalcHelper(){}function ClassHelper(){}function DomHelper(){}function InactiveContact(t){this.config=t}function LazyLoading(t){this.config=t,this.domHelper=new DomHelper}function createListLimiter(t){new ListLimiter(t).init()}function ListLimiter(t){this.listElement=t}function MatomoUtils(){}function MessageOverlayConfig(t){this.config=t}function bindOverlayClickEvent(t){t.on("click.triggerOverlay",function(t){t.preventDefault(),t.stopPropagation(),createMessageOverlay($(this))})}function unbindOverlayClickEvent(t){t.off("click.triggerOverlay")}function createMessageOverlay(t){t=new MessageOverlay({triggerElement:t});t.setStrategyFactory(),t.init()}function MessageOverlay(t){this.config=new MessageOverlayConfig(t),this.config.validate(),this.triggerElement=this.config.getTriggerElement(),this.manipulationUtils=new ManipulationUtils,this.handlerUtil=new HandlerUtil}function AutoLoadStrategy(t){this.messageOverlay=t}function ClickLoadStrategy(t){this.messageOverlay=t}function AutoCloseTrigger(t){this.messageOverlay=t}function DisableButtonTrigger(t){this.messageOverlay=t}function LoadTrigger(t){this.messageOverlay=t,this.manipulationUtil=new ManipulationUtils}function RedirectTrigger(t){this.messageOverlay=t}function RefreshTrigger(t){this.messageOverlay=t}function SubmitTrigger(t){this.messageOverlay=t}function createNewsFetcher(t,e){return new NewsFetcher(t,e)}function NewsFetcher(t,e){this.triggerElement=t,this.handlerUtil=new HandlerUtil,this.method=e,this.init()}function ProfileNavigation(t){this.navigation=t,this.domHelper=new DomHelper,this.eventUtil=new EventUtil}function createReadMore(t){new ReadMore(t).init()}function ReadMore(t){this.setTriggerElement(t)}$(document).on("click touch",".dropdown__trigger:not(.dropdown__trigger--disabled)",function(t){t.preventDefault();var t=$(this).parent(),e=new ManipulationUtils;$(".dropdown").not(t).removeClass("dropdown--active"),t.hasClass("dropdown--active")?(e.unlockPage(),t.removeClass("dropdown--active")):(e.lockPage(!0),t.addClass("dropdown--active"))}),$(document).on("click touchend",function(t){$(t.target).parents().hasClass("dropdown")||((new ManipulationUtils).unlockPage(),$(".dropdown").removeClass("dropdown--active"))}),$(document).ready(function(o){function e(t){var e=t.data("box");t.is(":checked")?o("#"+e).slideDown():o("#"+e).slideUp()}function r(t){var e=0<t.find("input.input--error").length;t.toggleClass("form--error",e),t.find("[type=submit]").attr("disabled",e)}o("input[data-bemerkung]").on("keyup",function(){o(this).toggleClass("input__bemerkung--valid",""!=o(this).val())}).trigger("keyup"),o(".sidemenu__trigger").on("click touch",function(t){t.preventDefault(),o(this).next(".sidemenu").addClass("visible"),(new EventUtil).triggerEvent(document,"showNavigation")}),o(".sidemenu__close").on("click touch",function(t){t.preventDefault(),o(this).closest(".sidemenu").removeClass("visible")}),o(".mobile-accordeon--trigger").on("click",function(){o(this).parent().toggleClass("visible")}),o(window).on("resize",function(){calculateBlindshape()}),calculateBlindshape(),o("select").niceselect(),o(".showmore__trigger").on("click",function(t){t.preventDefault(),o(this).parent().toggleClass("showmore--showall"),o(this).parent().hasClass("showmore--showall")?o(this).html("WENIGER ANZEIGEN"):o(this).html("MEHR ANZEIGEN")}),o(".historie__trigger").on("click",function(t){t.preventDefault(),o(this).parent().toggleClass("historie--showall")}),o(".monitor__delete").on("click",function(t){t.preventDefault(),o(this).parent().remove()}),o(".js-hidebox-trigger").on("click",function(t){e(o(this))}),o(".js-hidebox-trigger").each(function(){e(o(this))}),o(".closeable").each(function(t){var e=null;o(this).hasClass("fullwidth")?(e=o(this).find(".container")).css("position","relative"):e=o(this),e.append('<div class="closeable__close"><svg class="svgicon svgicon-schliessen" aria-hidden="true"><use xlink:href="#icon-schliessen"/></svg></div>')}),o(document).on("click",".closeable__close",function(){o(this).closest(".closeable").slideUp()}),o(document).on("blur","input[data-urlcheck]",function(t){var e,i=o(this).closest("form"),n=o(this).val();""==n?o(this).removeClass("input--error").removeClass("input--ok"):(e=new RegExp(o(this).data("urlcheck")),n.match(e)?o(this).addClass("input--ok").removeClass("input--error"):o(this).addClass("input--error").removeClass("input--ok"),o(this).hasClass("input--ok")&&!o(this).next().hasClass("input--after")&&o(this).after('<div class="input--after"><svg class="svgicon svgicon-marked" aria-hidden="true"><use xlink:href="#icon-marked"/></svg></div>')),r(i)}),o("input[data-urlcheck]").trigger("blur"),o(document).on("click",".js-available-trigger",function(t){t=o(this).next(".js-available-input");o(this).prev().is(":checked")?(t.val(""),t.attr("disabled","disabled")):t.removeAttr("disabled")}),o(".tab__trigger a[data-headercontent]").on("click",function(){var t=o(this).data("headercontent");o(".tab__header").html(t)}),o(".disabled").on("click",function(t){t.preventDefault()});var t=document.location.hash;t&&o('.tab__trigger a[href="'+t+'"]').tab("show"),o(".regler").each(function(){var t=o(this).data("min"),e=o(this).data("current"),i=o(this).data("max"),n=o(this).data("unit"),n=(o(this).append('<div class="regler__balken"></div>'),o(this).append('<div class="regler__current"><div>'+e+" "+n+"</div></div>"),o(this).after('<div class="regler__max">'+i+" "+n+"</div>"),e/(i-t-20)*100+"%");o(this).find(".regler__balken").css("width",n),o(this).find(".regler__current").css("left",n)}),o(window).on("resize",function(){o("header[data-bg-fallback]").each(function(){var t="";console.log("im data bg"),t=o("html.webp").length?"-webp":"-fallback",o(this).css("background-image","url("+o(this).data("bg"+t)+")"),o(window).width()<768&&(t=o(this).data("bg-xs"+t))&&o(this).css("background-image","url("+t+")")})}).trigger("resize"),o(document).on("click",".mobile-sidebar__trigger",function(t){t.preventDefault(),o("body").toggleClass("mobile-sidebar--visible")})}),$(document).on("click",".js-document-download",function(t){t.preventDefault(),t.stopImmediatePropagation(),new DocumentDownload({element:$(this)}).init()}),DocumentDownload.prototype.init=function(){this.validateConfig(),this.setLoading(),this.downloadFile()},DocumentDownload.prototype.validateConfig=function(){if(!this.getElement())throw"Document Download: No Element given";
2if(!this.getDownloadUrl())throw"Document Download: DocumentUrl not given"},DocumentDownload.prototype.getElement=function(){return this.config.element||!1},DocumentDownload.prototype.getLoadingText=function(){return this.config.loadingText||this.getElement().data("dd-loading-text")||"Dokument wird geladen"},DocumentDownload.prototype.getLoadingCompleteText=function(){return this.config.loadingCompleteText||this.getElement().data("dd-loading-complete-text")||"Dokument steht bereit"},DocumentDownload.prototype.getDownloadUrl=function(){return this.getElement().attr("href")||this.getClosestFormAction()||!1},DocumentDownload.prototype.getMode=function(){return this.getElement().data("dd-mode")||"default"},DocumentDownload.prototype.getForm=function(){return this.getElement().closest("form")},DocumentDownload.prototype.getFormData=function(){return this.getForm().serialize()},DocumentDownload.prototype.getClosestFormAction=function(){return this.getForm().attr("action")},DocumentDownload.prototype.getMethod=function(){return this.getElement().data("dd-method")||"GET"},DocumentDownload.prototype.getMatomoPurchaseData=function(){return atob(this.getElement().data("matomo-purchase"))||"{}"},DocumentDownload.prototype.disableButton=function(){this.classHelper.disableButton(this.getElement())},DocumentDownload.prototype.setLoading=function(){"loading"===this.getMode()?this.manipulationUtils.setPageLoading():(this.disableButton(),this.classHelper.addClass(this.getElement(),"button-loading"),this.getElement().html("<span class='spinner'><i></i></span><span>"+this.getLoadingText()+"</span>"))},DocumentDownload.prototype.unsetLoading=function(){"loading"===this.getMode()?this.manipulationUtils.unsetPageLoading():(this.classHelper.removeClass(this.getElement(),"button-loading"),this.getElement().html(this.getLoadingCompleteText()))},DocumentDownload.prototype.requestDownload=function(){return $.ajax({url:this.getDownloadUrl(
2),method:this.getMethod(),data:this.getFormData(),xhrFields:{responseType:"blob"},cache:!1})},DocumentDownload.prototype.trackMatomoPurchase=function(){var t=new MatomoUtils,e="{'purchase':"+this.getMatomoPurchaseData()+"}";t.mtmEvent("successful-purchase",e)},DocumentDownload.prototype.downloadFile=function(){this.requestDownload().done(function(t,e,i){var n,i=i.getResponseHeader("Content-Disposition"),i=this.getFileNameByContentDisposition(i)||"Dokument.pdf";window.navigator&&window.navigator.msSaveOrOpenBlob?window.navigator.msSaveOrOpenBlob(t,i):((n=document.createElement("a")).href=window.URL.createObjectURL(t),n.download=i,document.body.appendChild(n),n.click(),n.remove()),this.unsetLoading(),this.trackMatomoPurchase()}.bind(this)).fail(function(){this.unsetLoading()}.bind(this))},DocumentDownload.prototype.getFileNameByContentDisposition=function(t){var e,t=/filename[^;=\n]*=(UTF-8(['"]*))?(.*)/.exec(t);return null!=t&&t[3]&&(e=t[3].replace(/['"]/g,"")),decodeURI(e)},HeaderMap.prototype.STATIC_MAP_URL="https://staticmap.maptoolkit.net/",HeaderMap.prototype.init=function(){this.getElement().append(this.buildMapImage())},HeaderMap.prototype.getElement=function(){return this.element},HeaderMap.prototype.getLon=function(){return this.getElement().data("headermap-lon")||null},HeaderMap.prototype.getLat=function(){return this.getElement().data("headermap-lat")||null},HeaderMap.prototype.getProfilTyp=function(){return this.getElement().data("headermap-profiltyp")||null},HeaderMap.prototype.getObjectID=function(){return this.getElement().data("headermap-objectid")||null},HeaderMap.prototype.getZoomLevel=function(){return"webp"!==this.getPictureFormat()&&this.getElement().data("headermap-zoomlevel")||17},HeaderMap.prototype.getEndpoint=function(){return this.getElement().data("headermap-imageurl")||null},HeaderMap.prototype.buildSizeParameter=function(){var t=this.getFactor();return Math.floor(1903/t)+"x"+300/t},HeaderMap.prototype.buildApiKeyParameter=function(){return this.getElement().data("headermap-key")||null},HeaderMap.prototype.getWindowSizeCategory=function(){return"L"},HeaderMap.prototype.buildCenterParameter=function(){return this.getLat()+","+this.getLon()},HeaderMap.prototype.getMarkerIcon=function(){return this.getElement().data("headermap-markerurl")},HeaderMap.prototype.getMapUrl=function(){return this.STATIC_MAP_URL+"?format="+this.getPictureFormat()+"&zoom="+this.getZoomLevel()+"&factor="+this.getFactor()+"&maptype=planat-terrain&check_size=false¢er="+this.buildCenterParameter()+"&size="+this.buildSizeParameter()+"&api_key="+this.buildApiKeyParameter()+"&marker=icon:"+this.getMarkerIcon()+"|center:"+this.buildCenterParameter()},HeaderMap.prototype.getPictureFormat=function(){var t=document.createElement("canvas");return t.getContext&&t.getContext("2d")&&0==t.toDataURL("image/webp").indexOf("data:image/webp")?"webp":"png"},HeaderMap.prototype.getFactor=function(){return 1},HeaderMap.prototype.getUrlParams=function(){var t={url:this.getMapUrl(),id:this.getObjectID(),profileType:this.getProfilTyp(),lon:this.getLon(),lat:this.getLat(),size:this.getWindowSizeCategory(),zoom:this.getZoomLevel()};return $.param(t)},HeaderMap.prototype.buildMapImage=function(){var t=new Image;return t.src=this.getMapUrl(),t},CalcHelper.prototype.calcMillisecondsToSeconds=function(t){return parseInt(t)/1e3},CalcHelper.prototype.calcSecondsToMilliseconds=function(t){return 1e3*(t=parseInt(t))},ClassHelper.prototype.disableButton=function(t){$(t).addClass("button--disabled")},ClassHelper.prototype.enableButton=function(t){$(t).removeClass("button--disabled")},ClassHelper.prototype.addClass=function(t,e){$(t).addClass(e)},ClassHelper.prototype.removeClass=function(t,e){$(t).removeClass(e)},DomHelper.prototype.getDocumentBody=function(){return $(document).find("body")},DomHelper.prototype.isMobileDevice=function(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)},DomHelper.prototype.focusInputElement=function(t){$(t).focus()},DomHelper.prototype.getDeviceSize=function(){var t=$(window).width();return t<768?this.SIZE_XS:768<=t&&t<992?this.SIZE_SM:992<=t&&t<1200?this.SIZE_MD:this.SIZE_LG},DomHelper.prototype.SIZE_XS=function(){return"XS"},DomHelper.prototype.SIZE_SM=function(){return"SM"},DomHelper.prototype.SIZE_MD=function(){return"MD"},DomHelper.prototype.SIZE_LG=function(){return"LG"},InactiveContact.prototype.init=function(){this.validateConfig(),this.addClickHandler(),this.toggleInactiveContact()},InactiveContact.prototype.validateConfig=function(){if(void 0===this.getTriggerElement())throw"TriggerElement must be defined!"},InactiveContact.prototype.getTriggerElement=function(){return $(this.config.triggerElement)||!1},InactiveContact.prototype.getContactElement=function(){var t=this.getTriggerElement().data("c
2ontact-element");return $(t)},InactiveContact.prototype.addClickHandler=function(){this.getTriggerElement().on("click",function(){this.toggleInactiveContact()}.bind(this))},InactiveContact.prototype.toggleInactiveContact=function(){this.getTriggerElement().is(":checked")?this.getContactElement().addClass("inactive-contact-inactive"):this.getContactElement().removeClass("inactive-contact-inactive")},$(document).on("click",".js-interestbox i.icon-schliessen",function(){$(this).closest(".js-interestbox").fadeOut()}),LazyLoading.prototype.init=function(){return this.validateConfig(),this.isImageElement(this.getContainer())?this.handleImageElement():this.handleBackgroundElement()},LazyLoading.prototype.validateConfig=function(){if(!this.getContainer())throw"Lazy Element must be defined";if(!this.getSource()&&!this.isPictureElement(this.getContainer()))throw"Lazy Source must be defined"},LazyLoading.prototype.getContainer=function(){return $(this.config.container)||!1},LazyLoading.prototype.getSource=function(){return this.getContainer().data("ll-src")||this.config.source||!1},LazyLoading.prototype.getWebPSource=function(){return this.getContainer().data("ll-webp-src")||this.config.webpSource||!1},LazyLoading.prototype.isImageElement=function(t){return t.is("img")},LazyLoading.prototype.getImage=function(){var t=new Image;return t.src=this.getSource()+this.appendSizeProperty(),this.getWebPSource()&&this.supportsWebP()&&(t.src=this.getWebPSource()+this.appendSizeProperty()),t},LazyLoading.prototype.handleImageElement=function(){var t=this.getContainer(),e=this.getImage();e.onload=function(){t.attr("src",e.src),calculateBlindshape()}},LazyLoading.prototype.handleBackgroundElement=function(){var t=this.getContainer(),e=this.getImage();e.onload=function(){t.css("background-image",'url("'+e.src+'")'),calculateBlindshape()}},LazyLoading.prototype.supportsWebP=function(){return!!$("html.webp").length},LazyLoading.prototype.appendSizeProperty=function(){return(this.getSource().match(/\?/)?"&":"?")+"size=L"},ListLimiter.prototype.init=function(){this.hideListItemsAboveLimit(),0<this.countHiddenListItems()&&(this.createListToggleElement(),this.appendShowMoreToggle())},ListLimiter.prototype.getShowMoreText=function(){return(this.getListElement().data("showmoretext")||"$ weitere einblenden").replace("$",this.countHiddenListItems())},ListLimiter.prototype.getShowLessText=function(){return this.getListElement().data("showlesstext")||"weniger anzeigen"},ListLimiter.prototype.getListLimit=function(){return parseInt(this.getListElement().data("limit"))||this.countListItems()},ListLimiter.prototype.getListElement=function(){return this.listElement},ListLimiter.prototype.countListItems=function(){return this.getListElement().children("li").length},ListLimiter.prototype.hideListItemsAboveLimit=function(){this.getListItemsAsArray().each(function(t,e){this.isAboveLimit(t)&&$(e).addClass("hide")}.bind(this))},ListLimiter.prototype.showAllListItems=function(){this.getListItemsAsArray().each(function(t,e){$(e).removeClass("hide")}.bind(this))},ListLimiter.prototype.getListItemsAsArray=function(){return this.getListElement().children("li")},ListLimiter.prototype.isAboveLimit=function(t){return t>=this.getListLimit()},ListLimiter.prototype.createListToggleElement=function(){this.listToggle=$("<div class='listlimiter--showmore'>"+this.getShowMoreText()+"</div>"),this.addListToggleHandler()},ListLimiter.prototype.addListToggleHandler=function(){this.getListToggleElement().on("click",function(){this.toggleListContent()}.bind(this))},ListLimiter.prototype.getListToggleElement=function(){return this.listToggle},ListLimiter.prototype.appendShowMoreToggle=function(){this.getListElement().after(this.getListToggleElement())},ListLimiter.prototype.countHiddenListItems=function(){return this.countListItems()-this.getListLimit()},ListLimiter.prototype.toggleListContent=function(){return this.listToggleIsOpen()?(this.getListToggleElement().removeClass("open"),this.getListToggleElement().html(this.getShowMoreText()),this.hideListItemsAboveLimit()):(this.getListToggleElement().addClass("open"),this.getListToggleElement().html(this.getShowLessText()),this.showAllListItems())},ListLimiter.prototype.listToggleIsOpen=function(){return this.getListToggleElement().hasClass("open")},MatomoUtils.prototype.mtmPush=function(t){if("object"!=typeof t)throw new TypeError("data pushed to Matomo Tag Manager must be of type Object.");window._mtm=window._mtm||[],window._mtm.push(t)},MatomoUtils.prototype.mtmEvent=function(t,e){e="string"==typeof e?e:JSON.stringify(e);e=(e=(e=e.replaceAll("'",'"')).replaceAll("null",null)).replace(/"(-?[0-9]+\.{0,1}[0-9]*)"/g,"$1"),e=JSON.parse(e),this.mtmPush(Object.assign({event:t},e))},MatomoUtils.prototype.saveCartItems=function(t){localStorage.setItem("cartItems",JSON.stringify(t))},MessageOverlayConfig.prototype.validate=function(){if(!this.getTriggerElement())throw"Message Overlay Trigger Element must be defined"},MessageOverlayConfig.prototype.getTriggerElement=function(){return void 0!==this.config.triggerElement?this.config.triggerElement:null},MessageOverlayConfig.prototype.getSubmitData=function(){return this.config.overlaySubmitData||null},MessageOverlayConfig.prototype.getAdditionalClass=function(){return this.config.additionalClass||null},$(".js-overlay").each(function(){bindOverlayClickEvent($(this))}),MessageOverlay.prototype.initCaptchaValidation=function(){let e=document.querySelector(".frc-captcha"),i=document.querySelector(".js-overlay-refresh");if(e&&i){i.disabled=!0;let t=setInterval(()=>{(e.textContent.includes("Ich bin ein Mensch")||e.textContent.includes("I am human"))&&(i.disabled=!1,clearInterval(t))},1e3)}},MessageOverlay.prototype.setStrategyFactory=function(){this.hasAutoLoad()?this.strategy=new AutoLoadStrategy(this):this.strategy=new ClickLoadStrategy(this)},MessageOverlay.prototype.getStrategy=function(){return this.strategy},MessageOverlay.prototype.init=function(){this.setUniqueOverlayID(),this.setFormData(this.config.getSubmitData()||this.getOptionsElement().data("overlay-submit-data")),this.get
2Strategy().init(),this.getOverlayDataEndpoint()?this.handleMessageWithRemoteSource():this.handleMessageWithStaticSource()},MessageOverlay.prototype.setUniqueOverlayID=function(){this.overlayID="overlay_"+(Math.floor(1e3*Math.random())+1)},MessageOverlay.prototype.getUniqueOverlayID=function(){return this.overlayID},MessageOverlay.prototype.setFormData=function(t){this.formData=t},MessageOverlay.prototype.getFormData=function(){return this.formData},MessageOverlay.prototype.handleMessageWithRemoteSource=function(){this.appendMessageContainer(),this.replaceOverlayContentFromExternalSource()},MessageOverlay.prototype.handleMessageWithStaticSource=function(){this.handlePostProcess(),this.showOverlayContainer()},MessageOverlay.prototype.hasAutoLoad=function(){return this.getTriggerElement().hasClass("js-overlay-autoload")},MessageOverlay.prototype.getTriggerElement=function(){return this.triggerElement},MessageOverlay.prototype.getStyle=function(){return this.getOptionsElement().data("overlay-style")||this.config.getAdditionalClass()||"message--default"},MessageOverlay.prototype.getOverlayDataEndpoint=function(){return this.getOptionsElement().data("overlay-source")},MessageOverlay.prototype.getCloseOnOutsideClick=function(){return this.getOptionsElement().data("close-on-outside-click")},MessageOverlay.prototype.handlePostProcess=function(){this.isAlreadyInitialized()||(this.addDisableButtonTrigger(),this.addSubmitTrigger(),this.addRefreshTrigger(),this.addAutoCloseTrigger(),this.addRedirectTrigger(),this.addLoadAnimationTrigger(),this.appendStyling().prependCloseContainer().setCloseHandler().setAsInitialized(),this.initCaptchaValidation())},MessageOverlay.prototype.addRefreshTrigger=function(){new RefreshTrigger(this).init()},MessageOverlay.prototype.addDisableButtonTrigger=function(){new DisableButtonTrigger(this).init()},MessageOverlay.prototype.addSubmitTrigger=function(){new SubmitTrigger(this).init()},MessageOverlay.prototype.addAutoCloseTrigger=function(){new AutoCloseTrigger(this).init()},MessageOverlay.prototype.addRedirectTrigger=function(){new RedirectTrigger(this).init()},MessageOverlay.prototype.addLoadAnimationTrigger=function(){new LoadTrigger(this).init()},MessageOverlay.prototype.getOptionsElement=function(){return this.triggerElement||this.getOverlayContainer()},MessageOverlay.prototype.replaceOverlayContentFromExternalSource=function(t){this.addSpinner(),t=t||this.getOverlayDataEndpoint(),$.ajax({url:t,data:this.getFormData(),cache:!1}).done(function(t){this.getMessageContainer().html(t),this.handlePostProcess(),this.showOverlayContainer(),this.handlerUtil.rerender(this.getOverlayContainer()),this.handlerUtil.reRenderCompassTable(this.getOverlayContainer())}.bind(this))},MessageOverlay.prototype.appendStyling=function(){return this.getOverlayContainer().addClass(this.getStyle()),this},MessageOverlay.prototype.preventSending=function(){var t=$("#message").val().trim(),e=document.getElementById("correction-error-info");return""===t?(e.style.visibility="visible",!0):!(e.style.visibility="hidden")},MessageOverlay.prototype.generateMessageOverlayElement=function(){this.setOverlayContainer(this.createOverlayContainer())},MessageOverlay.prototype.createOverlayContainer=function(){return $("<div class='message-overlay' id='"+this.getUniqueOverlayID()+"'></div>")},MessageOverlay.prototype.createMessageContainer=function(){return $("<div class='message__container'></div>")},MessageOverlay.prototype.appendMessageContainer=function(){this.getOverlayContainer().append(this.createMessageContainer())},MessageOverlay.prototype.getOverlayContainer=function(){return this.overlayContainer},MessageOverlay.prototype.getMessageContainer=function(){return this.getOverlayContainer().find(".message__container")},MessageOverlay.prototype.setOverlayContainer=function(t){this.overlayContainer=t},MessageOverlay.prototype.showOverlayContainer=function(){this.overlayIsVisible()||(this.manipulationUtils.disableScrollBars(),this.overlayContainer.fadeIn("slow"))},MessageOverlay.prototype.overlayIsVisible=function(){return this.overlayContainer.is(":visible")},MessageOverlay.prototype.hideOverlayContainer=function(t,e){e||this.manipulationUtils.enableScrollBars(),this.overlayContainer.fadeOut("slow"),this.getOverlayDataEndpoint()&&!t&&window.location.reload()},MessageOverlay.prototype.setAsInitialized=function(){return this.getOverlayContainer().addClass("initialized"),this},MessageOverlay.prototype.setAsUninitialized=function(){return this.getOverlayContainer().removeClass("initialized"),this},MessageOverlay.prototype.isAlreadyInitialized=function(){return this.getOverlayContainer().hasClass("initialized")},MessageOverlay.prototype.addSpinner=function(){this.getMessageContainer().prepend(this.getSpinner())},MessageOverlay.prototype.getSpinner=function(){return $("<div class='full-loading'><div class='loading'></div></div>")},MessageOverlay.prototype.createCloseContainer=function(){return this.closeContainer=$("<div class='close__container'></div>"),this.closeContainer},MessageOverlay.prototype.prependCloseContainer=function(){return this.getMessageContainer().prepend(this.createCloseContainer()),this},MessageOverlay.prototype.setCloseHandler=function(){return this.setCloseOnClickCloseTriggerButtonClickHandler(),!1!==this.getCloseOnOutsideClick()&&(this.setCloseOnESCHandler(),this.setCloseOnOutsideClickHandler()),this},MessageOverlay.prototype.getCloseTriggerButtons=function(){return this.getMessageContainer().find(".js-overlay-close")},MessageOverlay.prototype.getCloseAndSubmitTriggerButtons=function(){return this.getMessageContainer().find(".js-overlay-close-and-submit")},MessageOverlay.prototype.getCloseAndSubmitAsyncTriggerButtons=function(){return this.getMessageContainer().find(".js-overlay-close-and-submit-async")},MessageOverlay.prototype.setCloseOnESCHandler=function(){$(document).on("keyup",function(t){27===t.keyCode&&this.hideOverlayContainer()}.bind(this))},MessageOverlay.prototype.setCloseOnOutsideClickHandler=function(){var e=this;this.getOverlayContainer().on("mousedown",function(t){t.target===this&&e.hideOverlayContainer()})},MessageOverlay.prototype.setCloseOnClickCloseTriggerButtonClickHandler=function(){this.getCloseTriggerButtons().on("click",function(t){t.preventDefault(),this.hideOverlayContainer()}.bind(this)),this.getCloseAndSubmitTriggerButtons().on("click",function(t){t.preventDefault();var t=$(t.target),e=t.closest("form"),t=t.attr("formaction")||e.attr("action");e.attr("action",t),e.submit(),this.hideOverlayContainer(!0)}.bind(this)),this.getCloseAndSubmitAsyncTriggerButtons().on("click",function(t){t.preventDefault();var t=$(t.target),e=t.closest("form"),t=t.attr("formaction")||e.attr("action");$.ajax({type:"POST",url:t,data:e.serialize()}),this.hideOverlayContainer()}.bind(this))},AutoLoadStrategy.prototype.init=function(){return this.hasPredefinedMessage()?this.messageOverlay.setOverlayContainer(this.findMessageOverlayElement()):(this.messageOverlay.generateMessageOverlayElement(),this.messageOverlay.getTriggerElement().append(this.messageOverlay.getOverlayContainer()))},AutoLoadStrategy.prototype.hasPredefinedMessage=function(){return this.findMessageOverlayElement().length},AutoLoadStrategy.prototype.findMessageOverlayElement=function(){return this.messageOverlay.getTriggerElement().find(".message-overlay")},ClickLoadStrategy.prototype.init=function(){return this.hasPredefinedMessage()?this.messageOverlay.setOverlayContainer(this.findMessageOverlayElement()):(this.messageOverlay.generateMessageOverlayElement(),$("body").append(this.messageOverlay.getOverlayContainer()))},ClickLoadStrategy.prototype.hasPredefinedMessage=function(){return this.findMessageOverlayElement().length},ClickLoadStrategy.prototype.findMessageOverlayElement=function(){return $("#"+this.getOverlayID())},ClickLoadStrategy.prototype.getOverlayID=function(){return this.messageOverlay.getTriggerElement().data("overlay-id")},AutoCloseTrigger.prototype.init=function(){this.hasAutoClose()&&setTimeout(function(){this.messageOverlay.hideOverlayContainer()}.bind(this),3e3)},AutoCloseTrigger.prototype.hasAutoClose=function(){return this.messageOverlay.getMessageContainer().find(".js-overlay-autoclose").length},DisableButtonTrigger.prototype.init=function(){this.setDisableButtonClickHandler()},DisableButtonTrigger.prototype.getDisableButton=function(){return this.messageOverlay.getMessageContainer().find(".js-overlay-disable")},DisableButtonTrigger.prototype.setDisableButtonClickHandler=function(){this.getDisableButton().on("click",function(t){t.preventDefault(),$(t.target).addClass("button--disabled")}.bind(this))},LoadTrigger.prototype.init=function(){this.setLoadTriggerClickHandler()},LoadTrigger.prototype.getLoadTriggerButtons=function(){return this.messageOverlay.getMessageContainer().find(".js-overlay-add-loading")},LoadTrigger.prototype.setLoadTriggerClickHandler=function(){this.getLoadTriggerButtons().on("click",function(t){t.preventDefault(),this.manipulationUtil.setPageLoading(),this.messageOverlay.hideOverlayContainer(!1,!0)}.bind(this))},RedirectTrigger.prototype.init=function(){this.hasRedirect()&&(this.getRedirectUrl()?window.location.href=this.getRedirectUrl():document.location.reload(!0))},RedirectTrigger.prototype.hasRedirect=function(){return this.getRedirectContainer().length},RedirectTrigger.prototype.getRedirectContainer=function(){return this.messageOverlay.getMessageContainer().find(".js-overlay-redirect")},RedirectTrigger.prototype.getRedirectUrl=function(){return this.getRedirectContainer().data("overlay-redirect-url")||!1},RefreshTrigger.prototype.init=function(){this.setRefreshTriggerClickHandler()},RefreshTrigger.prototype.getRefreshTriggerButtons=function(){return this.messageOverlay.getMessageContainer().find(".js-overlay-refresh")},RefreshTrigger.prototype.setRefreshTriggerClickHandler=function(){this.getRefreshTriggerButtons().on("click",function(t){this.messageOverlay&&this.messageOverlay.preventSending.call(this.messageOverlay)?t.preventDefault():(t.preventDefault(),this.messageOverlay.setFormData(this.serializeFormData()),this.messageOverlay.setAsUninitialized(),t=this.getRefreshOverlayEndpoint($(t.target)),this.messageOverlay.replaceOverlayContentFromExternalSource(t))}.bind(this))},RefreshTrigger.prototype.serializeFormData=function(){return this.getForm().serialize()},RefreshTrigger.prototype.getForm=function(){return this.messageOverlay.getOverlayContainer().find("form")},RefreshTrigger.prototype.getRefreshOverlayEndpoint=function(t){return t.data("overlay-refresh-endpoint")||this.messageOverlay.getOverlayDataEndpoint()},SubmitTrigger.prototype.init=function(){this.replaceSubmitButtonText(),this.setSubmitOnTriggerButtonClickHandler()},SubmitTrigger.prototype.getSubmitTriggerButtons=function(){return this.messageOverlay.getMessageContainer().find(".js-overlay-submit")},SubmitTrigger.prototype.getSubmitButtonText=function(){return this.messageOverlay.getTriggerElement().html()},SubmitTrigger.prototype.replaceSubmitButtonText=function(){this.submitTriggerButtonHasCustomText()||this.get
2SubmitTriggerButtons().html(this.getSubmitButtonText())},SubmitTrigger.prototype.submitTriggerButtonHasCustomText=function(){return this.getSubmitTriggerButtons().html()},SubmitTrigger.prototype.setSubmitOnTriggerButtonClickHandler=function(){this.getSubmitTriggerButtons().on("click",function(t){unbindOverlayClickEvent(this.messageOverlay.getTriggerElement()),this.messageOverlay.getTriggerElement()[0].click(),this.messageOverlay.hideOverlayContainer(),bindOverlayClickEvent(this.messageOverlay.getTriggerElement())}.bind(this))},$(document).on("click",".js-news-fetcher",function(){$(this).hasClass("dropdown__trigger--disabled")||createNewsFetcher($(this),"fetchData")}),NewsFetcher.prototype.init=function(){"fetchData"===this.getMethod()?this.initFetchData():"countData"===this.getMethod()?this.initCountData():console.log("Error")},NewsFetcher.prototype.getMethod=function(){return this.method||!1},NewsFetcher.prototype.initCountData=function(){this.requestNewsData()},NewsFetcher.prototype.getNoNewsTooltip=function(){return this.triggerElement.data("no-news-tooltip")||"Es liegen keine Benachrichtigungen vor."},NewsFetcher.prototype.initFetchData=function(){this.menuIsOpen()&&(this.removeBadge(),this.handleNewsData())},NewsFetcher.prototype.removeBadge=function(){this.getBadgeElement()&&this.getBadgeElement().hide()},NewsFetcher.prototype.getBadgeElement=function(){return this.triggerElement.find(".notifications__counter")||!1},NewsFetcher.prototype.handleNewsData=function(){this.setLoading(),this.requestNewsData()},NewsFetcher.prototype.doAfterSuccessfulRequest=function(t){t?(this.setNewsData(t),this.countOrReplaceNewsData(),this.removeDisableClass(),void 0!==this.getTriggerElement().data("original-title")&&new Tooltip({triggerElement:this.getTriggerElement()}).destroyTooltip()):(this.addDisableClass(),new Tooltip({triggerElement:this.getTriggerElement(),content:this.getNoNewsTooltip(),position:"bottom"}).showTooltip()),this.handlerUtil.rerender(this.getNewsContainer())},NewsFetcher.prototype.requestNewsData=function(){$.ajax({url:this.getEndpoint(),cache:!1,dataType:"html"}).done(function(t){this.doAfterSuccessfulRequest(t)}.bind(this))},NewsFetcher.prototype.countOrReplaceNewsData=function(){"countData"!==this.getMethod()?(this.unsetLoading(),this.replaceNewsContent(),$(document).trigger("ajax-success",this.getNewsContainer())):this.countNewerItems(this.getNewsData())},NewsFetcher.prototype.countNewerItems=function(t){var i=(new CookieManager).readCookie("lastNews"),n=0;$.each($(t),function(t,e){$(e).data("timestamp")>i&&n++}.bind(this)),this.setBadge(n)},NewsFetcher.prototype.setBadge=function(t){0<t&&(this.getNotificationsCounterContainer().length?(this.getNotificationsCounterContainer().show(),this.getNotificationsCounterContainer().html(t)):this.getTriggerElement().find(".notifications").prepend('<span class="notifications__counter">'+t+"</span>"))},NewsFetcher.prototype.getNotificationsCounterContainer=function(){return this.getTriggerElement().find(".notifications .notifications__counter")},NewsFetcher.prototype.setLoading=function(){this.getNewsContainer().html('<li id="news-loading"><div class="loading-container"><div class="loading"></div></div></li>')},NewsFetcher.prototype.unsetLoading=function(){$("li#news-loading").remove()},NewsFetcher.prototype.menuIsOpen=function(){return this.getMenuElement().hasClass("dropdown--active")},NewsFetcher.prototype.getNewsContainer=function(){return $(".header__notifications .dropdown__list")||$.error("News Container couldn't be found.")},NewsFetcher.prototype.replaceNewsContent=function(){this.getNewsContainer().html(this.getNewsData()),this.setLastNewsCookie()},NewsFetcher.prototype.setLastNewsCookie=function(){(new CookieManager).createCookie("lastNews",this.getTimestampFromLatestNewsItem())},NewsFetcher.prototype.setNewsData=function(t){this.newsData=t},NewsFetcher.prototype.getNewsData=function(){return this.newsData||!1},NewsFetcher.prototype.getTriggerElement=function(){return this.triggerElement},NewsFetcher.prototype.getEndpoint=function(){return this.getTriggerElement().data("news-source")},NewsFetcher.prototype.getIntervalInMinutes=function(){return 1e3*(parseInt(this.getTriggerElement().data("news-interval"))||2)*60},NewsFetcher.prototype.getMenuElement=function(){return this.getTriggerElement().closest(".dropdown")},NewsFetcher.prototype.getFirstNewsItem=function(){return $(this.getNewsData())[0]},NewsFetcher.prototype.getTimestampFromLatestNewsItem=function(){return $(this.getFirstNewsItem()).data("timestamp")},NewsFetcher.prototype.checkForNewItems=function(){setInterval(function(){this.requestNewsData()}.bind(this),this.getIntervalInMinutes())},NewsFetcher.prototype.removeDisableClass=function(){this.getTriggerElement().removeClass("dropdown__trigger--disabled")},NewsFetcher.prototype.addDisableClass=function(){this.getTriggerElement().addClass("dropdown__trigger--disabled")},NewsFetcher.prototype.isDisabled=function(){return this.getTriggerElement().hasClass("dropdown__trigger--disabled")},(d=>{d.fn.niceselect=function(){return this.each(function(t,e){var r=d(this).attr("name"),a=d(this),i=!1,s="",l="radio",c="",n="",u="",o="Bitte wählen Sie...",p=(void 0!==a.attr("multiple")&&(i=!0,s="[]",l="checkbox"),void 0!==d(this).attr("class")&&(n=d(this).attr("class")),0<a.find('[value="placeholder"]').length&&(o=a.find('[value="placeholder"]').html()),void 0!==a.attr("required")&&(c="required"),a.wrap('<div class="select_style '+n+'"/>
2'),d('<span class="selectcon"> </span>').insertBefore(a),d('<div class="niceselect '+r+'" data-multi="'+i+'"><p class="top disabled">'+o+'</p><div class="value_wrapper"></div></div>').insertBefore(this),0<a.find("optgroup").length?a.find("optgroup").each(function(o,t){a.siblings(".niceselect").children(".value_wrapper").append('<div class="opt opt'+o+'"><span class="optTitle">'+d(t).attr("label")+"</span></div>"),d(t).find("option").each(function(t,e){var i=""==d(this).val()?d(this).html():d(this).val(),n=d(this).html();u="",void 0!==d(this).attr("selected")&&(u="checked",a.siblings(".niceselect").find("p.top").html(n)),a.siblings(".niceselect").find(".opt"+o).append('<div class="values"><input type="'+l+'" '+c+" "+u+' style=" pointer-events: none;" name="'+r+s+'" value="'+i+'" data-text="'+n+'" id="'+t+r+t+'" /> <label class="nice_label" >'+n+"</label></div>")})}):a.find("option").each(function(t,e){d(this);var i=""==d(this).val()?d(this).html():d(this).val(),n=d(this).html();u="",void 0!==d(this).attr("selected")&&(u="checked",a.siblings(".niceselect").find("p.top").html(n)),"placeholder"!==i&&a.siblings(".niceselect").children(".value_wrapper").append('<div class="values"><input type="'+l+'" '+c+" "+u+' style=" pointer-events: none;" name="'+r+s+'" value="'+i+'" data-text="'+n+'" id="'+t+r+t+'" /> <label class="nice_label" >'+n+"</label></div>")}),a.remove(),a.attr("name","blobla"),d("body").on("click",function(){d(".niceselect .value_wrapper").hide(),d(".select_style").removeClass("active")}),d("body").on("click",".niceselect",function(t){t.stopImmediatePropagation(),d(this).parent().hasClass("active")?(d(this).find(".value_wrapper").hide(),d(this).parent().removeClass("active")):(d(this).children(".value_wrapper").show(),d(this).parent().addClass("active"))}),d("body").on("click",".niceselect .value_wrapper .values",function(t){t.stopImmediatePropagation();t=d(this).find("input");"true"==d(this).parent().parent().attr("data-multi")?d(this).hasClass("active")?d(this).removeClass("active"):d(this).addClass("active"):(d(this).parent().parent().find("input[checked]").removeAttr("checked"),d(this).parent().parent().find(".active").removeClass("active"),d(this).hasClass("active")?d(this).removeClass("active"):d(this).addClass("active"),d(".niceselect .value_wrapper").hide(),d(".select_style").removeClass("active")),t.prop("checked",!t.prop("checked")),t.trigger("change")}),d("body").on("click",".niceselect .value_wrapper .values label",function(t){t.preventDefault()}),d("body").on("change",".niceselect .values input",function(t){var e,i=d(this).closest(".niceselect");"true"==i.attr("data-multi")?(e=i.find("input:checked").length,i.find("p.top").html(e+" Selected")):i.find("p.top").html(d(this).attr("data-text"))}),"");d("body").on("keypress",function(t){var e;d(".value_wrapper").is(":visible")&&(d(".value_wrapper .highlight").removeClass("highlight"),clearInterval(e),1==(p+=String.fromCharCode(t.which)).length&&(p=p.toUpperCase()),e=d(".value_wrapper:visible").find("label:contains("+p+")").first(),d(e).parent().addClass("highlight"),0<d(".value_wrapper:visible").find(".highlight").length&&d(".value_wrapper:visible").stop().scrollTop(d(".value_wrapper:visible").scrollTop()+d(".highlight").position().top),setTimeout(function(){p=""},500))})})}})(jQuery),ProfileNavigation.prototype.init=function(){this.setOutsideClickHandler(),this.setCloseNavigationOnTooltipHandler(),$.each(this.navigation.find("li"),function(t,e){this.domHelper.isMobileDevice()?this.setClickHandler(e):this.setHoverHandler(e)}.bind(this))},ProfileNavigation.prototype.setClickHandler=function(e){$(e).on("click",function(t){t.preventDefault(),this.closeAllActiveExceptCurrent(e),this.toggleVisibility(e)}.bind(this))},ProfileNavigation.prototype.setHoverHandler=function(e){$(e).hover(function(t){t.preventDefault(),this.closeAllActiveExceptCurrent(e),this.showNavigation(e)}.bind(this),function(t){t.preventDefault(),this.hideNavigation(e)}.bind(this))},ProfileNavigation.prototype.setCloseNavigationOnTooltipHandler=function(){this.navigation.on("show.bs.popover",function(){this.closeAllActiveExceptCurrent()}.bind(this))},ProfileNavigation.prototype.setOutsideClickHandler=function(){var e=$
2(".profile--navigation");$(document).on("touchstart",function(){detectTap=!0}),$(document).on("touchmove",function(){detectTap=!1}),$(document).on("click touchend",function(t){(detectTap="click"===t.type?!0:detectTap)&&!e.is(t.target)&&0===e.has(t.target).length&&this.closeAllActive()}.bind(this))},ProfileNavigation.prototype.toggleVisibility=function(i){$(i).toggleClass(function(t,e){return"active"===e||$(i).data("toggle")||this.eventUtil.triggerEvent(document,"showNavigation",$(i)),"active"}.bind(this))},ProfileNavigation.prototype.showNavigation=function(t){$(t).addClass("active")},ProfileNavigation.prototype.hideNavigation=function(t){$(t).removeClass("active")},ProfileNavigation.prototype.closeAllActiveExceptCurrent=function(i){$.each(this.navigation.find("li.active"),function(t,e){i!==e&&$(e).removeClass("active")}.bind(this))},ProfileNavigation.prototype.closeAllActive=function(){$.each(this.navigation.find("li.active"),function(t,e){$(e).removeClass("active")}.bind(this))},$(document).on("click",".js-readmore",function(t){t.preventDefault(),createReadMore($(this))}),ReadMore.prototype.init=function(){this.setShowLessElement(this.createShowLessElement()),this.getContent().after(this.getShowLessElement()),this.isExpanded()?this.collapseContainer():this.expandContainer()},ReadMore.prototype.getTriggerElement=function(){return this.triggerElement},ReadMore.prototype.getShowLessText=function(){return this.triggerElement.data("showlesstext")||"Weniger"},ReadMore.prototype.createShowLessElement=function(){var t=$('<a class="readmore__less">'+this.getShowLessText()+"</a>");return t.click(function(){this.collapseContainer()}.bind(this)),t},ReadMore.prototype.setTriggerElement=function(t){this.triggerElement=t},ReadMore.prototype.setShowLessElement=function(t){this.showLessElement=t},ReadMore.prototype.getShowLessElement=function(){return this.showLessElement},ReadMore.prototype.isExpanded=function(){return this.getTriggerElement().hasClass("readmore--active")},ReadMore.prototype.expandContainer=function(){this.getTriggerElement().addClass("readmore--active")},ReadMore.prototype.collapseContainer=function(){this.getTriggerElement().removeClass("readmore--active"),this.getShowLessElement().remove()},ReadMore.prototype.getContent=function(){return this.getTriggerElement().next(".readmore__content")},$(document).ready(function(){createNewsFetcher($(".js-news-fetcher"),"countData").checkForNewItems();var t=$(".js-cart-fetcher"),n=(t.length&&createCartFetcher(t).checkForNewItems(),$('[data-toggle="popover"]').each(function(t,e){new Tooltip({triggerElement:$(e),wrapInBody:!0}).showTooltip()}),$(".header__balance").each(function(t,e){new Tooltip({triggerElement:$(e),position:"bottom",content:$(".balance-tooltip-content")[0]}).showTooltip()}),$('[data-toggle="profil-navigation-tooltip"]').each(function(t,e){new Tooltip({triggerElement:$(e),wrapInBody:!0,position:"bottom"}).showTooltip()}),$(".js-inactive-contact").each(function(t,e){new InactiveContact({triggerElement:$(e)}).init()}),$(".js-autofocus").each(function(t,e){var i=new DomHelper;i.isMobileDevice()||i.focusInputElement(e)}),$(".js-lazyloading").each(function(t,e){new LazyLoading({container:$(e)}).init()}),$(".js-redirect").each(function(t,e){new Redirect({container:$(e)}).init()}),$(".js-waitAndReplace").each(function(t,e){new WaitAndReplace({container:$(e),loadingText:"<div>Wird geladen</div>"}).init()}),$(".js-waitAndReplace-hover").each(function(t,e){var i=new WaitAndReplace({container:$(e)});$(e).on("mouseenter",function(t){i.init()})}),createSVGContainer(),[]);$.each(findAjaxLoaderElements(),function(t,e){var e=$(e),i=e.data("svgname"),e=createSvgAjaxLoader(e);isInSVGLoaderArray(i,n)?e.replaceAjaxLoaderElementToSVG():(addToSVGLoaderArray(i,n),e.init())}),$(".js-login-overlay").hasClass("login--open")&&showLoginOverlay(),$("ul.js-listLimiter").each(function(t,e){createListLimiter($(e))}),$(".js-overlay-autoload").each(function(t,e){createMessageOverlay($(e))}),$(".js-autohide").each(function(t,e){createAutoHide($(e))}),$(".js-headermap").each(function(t,e){createHeaderMap($(e))}),(new StickyHeader).init();(new ResetForm).init(),$("input.js-compass-autocomplete").length&&initAutocompleter(),$("input.js-compass-autocomplete-fixed").length&&initFixedAutocompleter(),$(".js-resultlist-filter").each(function(t,e){createResultListFilter($(e))}),$(".js-filter-autocomplete").length&&new Autocompleter({container:"input.js-filter-autocomplete",source:"/ajax/filter-autocomplete.json",itemHtml:"<a><span>${name}</span></a>",tabFormControl:!0}).init();var t=$("#cookie-notice"),e=new CookieManager;t.length&&!e.readCookie("acceptCookies")&&new CookieNotice({container:t}).init(),new ProfileNavigation($(".profile--navigation > ul.iconnavigation")).init()}),$(document).on("ctUpdate",function(t,e){(new HandlerUtil).rerender(e)});var autoCompleter=$("input.js-compass-autocomplete");function Redirect(t){this.config=t,this.calcHelper=new CalcHelper}function Report(t){this.config=t,this.datatypeValidationUtil=new DatatypeValidationUtil}function ResetForm(){}function createResultListFilter(t){new ResultListFilter(t).init()}function ResultListFilter(t){this.filterContainer=t,this.hiddenInput=$("<input type='hidden' id='result-list-filter' name='filter'/>")}function SmoothScroll(){}function StickyHeader(){}function addToSVGLoaderArray(t,e){e.push(t)}function isInSVGLoaderArray(t,e){return 0<=$.inArray(t,e)}
2function findAjaxLoaderElements(){return $("[data-svgname]")}function createSVGContainer(){var t=$("<div id='svg-container'></div>");$("body").prepend(t),t.hide()}function createSvgAjaxLoader(t){return new SvgAjaxLoader(t)}function SvgAjaxLoader(t){this.setAjaxLoaderElement(t)}function createToggleContent(t){new ToggleContent(t).init()}function ToggleContent(t){this.setTriggerElement(t)}function sendBillingAddressRequest(t){fetch(this.getEndpoint(),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}).then(t=>{if(t.ok)return t.text();throw new Error("Network response was not ok.")}).then(t=>{document.getElementById("purchaseButtonContainer").innerHTML=t}).catch(t=>{console.error("Error updating billing address verification:",t)})}function Tooltip(t){return this.config=t,this.domHelper=new DomHelper,this.init(),this}autoCompleter.on("ac-loaded",function(t){t=$(t.target).parent().find(".ac-wrapper");(new HandlerUtil).rerender(t)}),autoCompleter.on("ac-init-rendered",function(t){t=$(t.target).parent().find(".ac-wrapper");(new HandlerUtil).setTooltipHandler(t)}),Redirect.prototype.init=function(){this.validate(),setTimeout("location.href = '"+this.getRedirectUrl()+"';",this.calcHelper.calcSecondsToMilliseconds(this.getRedirectTimer()))},Redirect.prototype.validate=function(){if(!this.getTriggerElement())throw Error("Trigger Element must be defined");if(!this.getRedirectUrl())throw Error("Redirect Url must be defined")},Redirect.prototype.getTriggerElement=function(){return this.config.container||!1},Redirect.prototype.getRedirectTimer=function(){var t=this.getTriggerElement().data("rd-timer")||this.config.timer||3;return parseInt(t)},Redirect.prototype.getRedirectUrl=function(){return this.getTriggerElement().data("rd-url")||this.config.url||!1},$(document).on("click",".js-report",function(){new Report({element:$(this)}).init()}),Report.prototype.init=function(){this.validateConfig(),this.sendRequest()},Report.prototype.validateConfig=function(){if(!this.getReportUrl())throw"ERROR: Report Url must be defined";if(!this.getElement())throw"ERROR: Element must be defined"},Report.prototype.getReportUrl=function(){return this.config.reportUrl||this.config.element.data("report-url")||!1},Report.prototype.getElement=function(){return this.config.element||!1},Report.prototype.getParams=function(){return this.datatypeValidationUtil.isObject(this.config.urlParams)||this.datatypeValidationUtil.isObject(this.config.element.data("report-params"))||[]},Report.prototype.sendRequest=function(){$.get(this.getReportUrl(),this.getParams())},ResetForm.prototype.init=function(){this.setHandler()},ResetForm.prototype.setHandler=function(){$(document).on("click","input[type='reset']",function(t){t.preventDefault(),this.setTriggerElement($(t.target)),this.clearForm()}.bind(this))},ResetForm.prototype.setTriggerElement=function(t){this.triggerElement=t},ResetForm.prototype.getTriggerElement=function(){return this.triggerElement},ResetForm.prototype.clearForm=function(){var t=this.getForm();t.trigger("reset"),t.find("input:text, input:password, select, textarea").val(""),t.find("input:radio, input:checkbox").prop("checked",!1)},ResetForm.prototype.getForm=function(){return this.getTriggerElement().closest("form")},ResultListFilter.prototype.getFilterContainer=function(){return this.filterContainer},ResultListFilter.prototype.init=function(){this.setInitialValues(),this.appendHiddenFilterInputField(),this.setPLZSearchInputHandler(),this.setPLZResultClickHandler(),this.setResultListApplyButtonClickHandler()},ResultListFilter.prototype.getResultListApplyButton=function(){return this.getFilterContainer().find(":submit")},ResultListFilter.prototype.setInitialValues=function(){var t=this.hydrateFilterUrlToArray();$.each(t,function(t,e){e.match(this.getZIPFilterRegex())?this.handleZIPBadge(e):this.setSTATECheckboxChecked(e)}.bind(this)),this.setSTATEBadge()},ResultListFilter.prototype.setSTATEBadge=function(){var i=[];$.each(this.buildStateInputArray(),function(t,e){e.isChecked&&i.push(e.badgename)}),0<i.length&&this.addSTATEBadge(i)},ResultListFilter.prototype.handleZIPBadge=function(t){t=t.replace(this.getZIPPrefixString(),"");this.setZIPInputValue(t),this.setPLZBadge(t)},ResultListFilter.prototype.setPLZBadge=function(t){this.getPLZInputField().hide(),this.addPLZBadge(t),this.setPLZCloseHandler()},ResultListFilter.prototype.setPLZCloseHandler=function(){this.getPLZBadgeWrapper().find("i").on("click",function(){this.getPLZInputField().val(""),this.submitFilters()}.bind(this))},ResultListFilter.prototype.getZIPPrefixString=function(){return"ZIP--"},ResultListFilter.prototype.setZIPInputValue=function(t){this.getPLZInputField().val(t)},ResultListFilter.prototype.setSTATECheckboxChecked=function(t){this.get
2StateCheckboxByName(t).prop("checked",!0)},ResultListFilter.prototype.getZIPFilterRegex=function(){return new RegExp(this.getZIPPrefixString()+"(.*)","gi")},ResultListFilter.prototype.hydrateFilterUrlToArray=function(){var t=ParameterUtil.getCurrentUrlParams().filter,e=[];return e=t?t.split("~"):e},ResultListFilter.prototype.appendHiddenFilterInputField=function(){this.getFilterContainer().append(this.hiddenInput)},ResultListFilter.prototype.buildZipParameterString=function(){if(this.getPLZInputField().val()&&this.getPLZInputField().is(":hidden"))return"ZIP--"+this.getPLZInputField().val()},ResultListFilter.prototype.buildStateParameterString=function(){var i=!1;return $.each(this.buildStateInputArray(),function(t,e){e.isChecked&&(i?i+=this.addSeparator()+e.name:i=e.name)}.bind(this)),i},ResultListFilter.prototype.getStateInputFields=function(){return this.getFilterContainer().find(".state__layer ul li[data-filter-state-name]")},ResultListFilter.prototype.getStateCheckboxByName=function(t){return this.getStateInputFields().filter("[data-filter-state-name="+t+"]").find("input")},ResultListFilter.prototype.buildStateInputArray=function(){var n=[];return this.getStateInputFields().each(function(t,e){var i=$(e).find("input"),i={checkbox:i,isChecked:i.is(":checked"),name:$(e).data("filter-state-name"),badgename:$(e).data("filter-badge-name")};n.push(i)}.bind(this)),n},ResultListFilter.prototype.buildFilterInputParameters=function(){var t,e=this.buildStateParameterString(),i=this.buildZipParameterString(),n="";return e&&(n+=e),i&&(t="",n+=(t=e?this.addSeparator():t)+i),n},ResultListFilter.prototype.addSeparator=function(){return"~"},ResultListFilter.prototype.setFilterInputParameters=function(){this.hiddenInput.val(this.buildFilterInputParameters())},ResultListFilter.prototype.getPLZInputField=function(){return this.getFilterContainer().find(".plz__layer input")},ResultListFilter.prototype.getPLZBadgeWrapper=function(){return this.getFilterContainer().find(".plz-badge-wrapper")},ResultListFilter.prototype.addPLZBadge=function(t){this.getPLZBadgeWrapper().append("<span class='filter-badge'>"+t+"<i class='icon icon-schliessen'></i></span>")},ResultListFilter.prototype.addSTATEBadge=function(t){var e="";1<t.length&&(e="+"+(t.length-1)+" weitere"),this.getStateLabelElement().html("<span class='filter-badge'>"+t[0]+"</span><small class='filter-badge-more'>"+e+"</small>")},ResultListFilter.prototype.getStateLabelElement=function(){return this.getFilterContainer().find(".state__layer a.dropdown__trigger")},ResultListFilter.prototype.setResultListApplyButtonClickHandler=function(){this.getResultListApplyButton().on("click",function(t){t.preventDefault(),this.submitFilters()}.bind(this))},ResultListFilter.prototype.setPLZSearchInputHandler=function(){this.getPLZInputField().on("keydown",function(t){13===t.which&&t.preventDefault()}.bind(this))},ResultListFilter.prototype.setPLZResultClickHandler=function(){this.getPLZInputField().on("ac-select",function(){this.handleZIPBadge($(".ac-item.active").text()),this.submitFilters()}.bind(this))},ResultListFilter.prototype.submitFilters=function(){this.setFilterInputParameters(),this.getFilterContainer().submit()},$(".link--top").click(function(){(new SmoothScroll).scrollToTop()}),$("input.js-compass-autocomplete").focus(function(){(new DomHelper).isMobileDevice()&&(new SmoothScroll).scrollToElement($(this))}),SmoothScroll.prototype.scrollToTop=function(){return $("body,html").animate({scrollTop:0},800),!1},SmoothScroll.prototype.scrollToElement=function(t){return $("body,html").animate({scrollTop:t.offset().top-10},800),!1},StickyHeader.prototype.init=function(){$(document).on("scroll",function(){this.handleStickyHeader(),this.lastOffset=this.getTopOffset()}.bind(this))},StickyHeader.prototype.getHeaderElement=function(){return $("body>header")},StickyHeader.prototype.getContentElement=function(){return this.getHeaderElement().next()},StickyHeader.prototype.getTopOffset=function(){return $(document).scrollTop()},StickyHeader.prototype.getLastTopOffset=function(){return this.lastOffset},StickyHeader.prototype.getHideOffset=function(){return this.getHeaderElement().outerHeight()},StickyHeader.prototype.makeSticky=function(){this.getContentElement().css("margin-top","60px"),this.getHeaderElement().addClass("sticky")},StickyHeader.prototype.undoSticky=function(){this.getContentElement().css("margin-top","0"),this.getHeaderElement().removeClass("sticky on")},StickyHeader.prototype.handleStickyHeader=function(){this.getTopOffset()>this.getHideOffset()?this.makeSticky():this.getTopOffset()<=0&&this.undoSticky(),this.toggleStickyHeader()},StickyHeader.prototype.toggleStickyHeader=function(){this.userHasScrolledUp()?this.getHeaderElement().addClass("on"):this.getHeaderElement().removeClass("on")},StickyHeader.prototype.userHasScrolledUp=function(){return this.getLastTopOffset()>this.getTopOffset()},$(document).on("change",".js-changeSubmit",function(t){$(this).closest("form").trigger("submit")}),$(document).on("click",".js-clickSubmit",function(t){$(this).closest("form").trigger("submit")}),SvgAjaxLoader.prototype.setAjaxLoaderElement=function(t){this.ajaxLoaderElement=t},SvgAjaxLoader.prototype.init=function(){this.insertSVG(),this.replaceAjaxLoaderElementToSVG()},SvgAjaxLoader.prototype.getResourcePath=function(){return $("head").data("resource-path")||""},SvgAjaxLoader.prototype.getAjaxSVGElement=function(){return this.ajaxLoaderElement},SvgAjaxLoader.prototype.getViewBox=function(){return this.getAjaxSVGElement().data("viewbox")||"0 0 48 48"},SvgAjaxLoader.prototype.getId=function(){return this.getAjaxSVGElement().attr("id")||!1},SvgAjaxLoader.prototype.getTitle=function(){return this.getAjaxSVGElement().data("title")||!1},SvgAjaxLoader.prototype.replaceAjaxLoaderElementToSVG=function(){this.getAjaxSVGElement().replaceWith(this.createSVGMarkup())},SvgAjaxLoader.prototype.getWidth=function(){return this.getAjaxSVGElement().attr("width")||"48"},SvgAjaxLoader.prototype.getHeight=function(){return this.getAjaxSVGElement().attr("height")||"48"},SvgAjaxLoader.prototype.createSVGMarkup=function(){var t=this.getId()||"",t=$("<svg "+t+' width="'+this.getWidth()+'" height="'+this.getHeight()+'" viewBox="'+this.getViewBox()+'"><use xlink:href="#'+this.getSVGName()+'"></use></svg>');return t.attr("class",this.getAjaxSVGElement().attr("class")),t.addClass("svg
2icon").addClass("svgicon-"+this.getSVGName()),this.appendAdditionalElements(t),t},SvgAjaxLoader.prototype.appendAdditionalElements=function(t){this.getTitle()&&t.prepend("<title>"+this.getTitle()+"</title>")},SvgAjaxLoader.prototype.getSVGName=function(){return this.getAjaxSVGElement().data("svgname")},SvgAjaxLoader.prototype.insertSVG=function(){var t=this.getSVGPath(this.getAjaxSVGElement());this.SVGAlreadyInContainer()||$.get(t+this.getSVGName(this.getAjaxSVGElement())+".svg",function(t){this.addToSVGContainer(t)}.bind(this))},SvgAjaxLoader.prototype.SVGAlreadyInContainer=function(){return this.getSVGContainer().find("#"+this.getSVGName()).length},SvgAjaxLoader.prototype.addToSVGContainer=function(t){try{if(!t.documentElement)throw new Error("Could not find "+this.getSVGPath(t)+this.getSVGName()+".svg");this.getSVGContainer().append((new XMLSerializer).serializeToString(t.documentElement))}catch(t){console.log(t)}},SvgAjaxLoader.prototype.getSVGContainer=function(){return $("body div#svg-container")},SvgAjaxLoader.prototype.getSVGPath=function(){var t=this.getResourcePath()+"img/svg48/";return t=this.getAjaxSVGElement().hasClass("logo--header")?this.getResourcePath()+"img/":t},$(document).on("click",".js-togglecontent",function(t){t.preventDefault(),createToggleContent($(this))}),ToggleContent.prototype.init=function(){this.toggleContainer()},ToggleContent.prototype.getTriggerElement=function(){return this.triggerElement},ToggleContent.prototype.setTriggerElement=function(t){this.triggerElement=t},ToggleContent.prototype.getContentElementID=function(){return this.triggerElement.data("content-element-id")||!1},ToggleContent.prototype.toggleContainer=function(){this.getContent().slideToggle(),this.getTriggerElement().toggleClass("togglecontent--active"),window.location.pathname.includes("/checkout/")&&this.handleCheckoutPageBehavior()},ToggleContent.prototype.handleCheckoutPageBehavior=function(){clearInvoiceAddressInputs();var t=this.getTriggerElement().hasClass("togglecontent--active"),e=(sendBillingAddressRequest.call(this,{isInvoiceAddress:t}),document.getElementById("purchase-form-submit")),i=document.getElementById("billingAddressDisplay"),n=document.getElementById("verification-info-message");document.querySelectorAll(".form__field--error").forEach(function(t){t.classList.remove("form__field--error"),t.classList.remove("select_style_error")}),t?(e&&e.classList.remove("button--disabled"),i&&(i.hidden=!1),n&&(n.hidden=!0)):(e&&e.classList.add("button--disabled"),i&&(i.hidden=!0),n&&(n.hidden=!1))},ToggleContent.prototype.getContent=function(){return this.getContentElementID()?$("#"+this.getContentElementID()):this.getTriggerElement().next(".togglecontent__content")},ToggleContent.prototype.getEndpoint=function(){return this.getTriggerElement().data("init-invoice-address")},Tooltip.prototype.init=function(){this.addHideTooltipOnOpenNavigationHandler(),this.validate(),this.prepareTooltip()},Tooltip.prototype.validate=function(){if(!this.getTriggerElement())throw"Tooltip Trigger Element must be defined"},Tooltip.prototype.prepareTooltip=function(){this.getTooltipContent()||this.setTooltipContent(this.getTitle()),this.removeTitleFromTooltipElement()},Tooltip.prototype.removeTitleFromTooltipElement=function(){this.config.triggerElement.removeAttr("title")},Tooltip.prototype.getTriggerElement=function(){return void 0!==this.config.triggerElement?this.config.triggerElement:null},Tooltip.prototype.getTooltipContent=function(){return this.config.content||!1},Tooltip.prototype.setTooltipContent=function(t){this.config.content=t},Tooltip.prototype.getTitle=function(){return this.config.triggerElement.attr("title")||!1},Tooltip.prototype.getPosition=function(){return this.getTriggerElement().data("tooltip-position")||this.config.position||"auto top"},Tooltip.prototype.getWrapperPosition=function(){return!0===this.config.wrapInBody?"body":this.getTriggerElement()},Tooltip.prototype.showTooltip=function(){var e=this;this.getTriggerElement().popover({html:!0,trigger:"manual",animation:!1,sanitize:!1,container:e.getWrapperPosition(),content:e.getTooltipContent(),placement:e.getPosition()}).on("mouseenter",function(){e.domHelper.isMobileDevice()||($(this).popover("show"),$(".popover").on("mouseleave",function(){$(this).popover("hide")}))}).on("mouseleave",function(){var t;e.domHelper.isMobileDevice()||(t=this,setTimeout(function(){$(".popover:hover").length||$(t).popover("hide")},300))}).on("click",function(){e.getTriggerElement().popover("toggle"),e.hideAllTooltipExceptCurrent()})},Tooltip.prototype.destroyTooltip=function(){var t=this.getTriggerElement();t.popover().off("mouseleave"),t.popover().off("mouseenter"),t.popover("destroy")},Tooltip.prototype.addHideTooltipOnOpenNavigationHandler=function(){document.addEventListener("showNavigation",function(){this.getTriggerElement().popover("hide")}.bind(this))},Tooltip.prototype.hideAllTooltipExceptCurrent=function(){$(".popover").each(function(t,e){this.getTooltipTriggerElementByID(e.id)[0]!==this.getTriggerElement()[0]&&this.getTooltipTriggerElementByID(e.id).popover("hide")}.bind(this))};let captchaActivated=!(Tooltip.prototype.getTooltipTriggerElementByID=function(t){return $(document).find("[aria-describedby="+t+"]")});function activateCaptcha(){var t;captchaActivated||((t=document.getElementById("infoCheckbox")).checked=!0,t.dispatchEvent(new Event("change",{bubbles:!0})),document.querySelectorAll(".inactive-contact").forEach(t=>{t.classList.remove("inactive-contact")}),captchaActivated=!0)}function CookieManager(){}function DatatypeValidationUtil(){}function EventUtil(){}function HandlerUtil(){}function ManipulationUtils(){this.domHelper=new DomHelper}function ParameterUtil(){}function WaitAndReplace(t){this.config=t,this.handlerUtil=new HandlerUtil}CookieManager.prototype.setExpiresInHours=function(t){this.expires=60*parseInt(t)*60*1e3},CookieManager.prototype.setToExpired=function(){this.expires=-1},CookieManager.prototype.getExpires=function(){return this.expires||315576e6},CookieManager.prototype.createCookie=function(t,e){document.cookie=t+"="+(e||"")+this.buildExpireString()+"; path=/"},CookieManager.prototype.buildExpireString=function(){var t=this.getExpires(),e=new Date;return e.setTime(e.getTime()+t),"; expires="+e.toUTCString()},CookieManager.prototype.deleteCookie=function(t){this.setToExpired(),this.createCookie(t)},CookieManager.prototype.readCookie=function(t){t=document.cookie.match("(^|;) ?"+t+"=([^;]*)(;|$)");return t?t[2]:null},DatatypeValidationUtil.prototype.isArray=function(t){return!!Array.isArray(t)&&t},DatatypeValidationUtil.prototype.isObject=function(t){return!(!t||"object"!=typeof t||t.constructor!==Object)&&t}
2,EventUtil.prototype.triggerEvent=function(t,e,i){this.validateEventName(e);e=new CustomEvent(e,{detail:i});t.dispatchEvent(e)},EventUtil.prototype.validateEventName=function(t){if(!t)throw Error("eventName must be defined!")},HandlerUtil.prototype.rerender=function(t){this.setOverlayClickHandler(t),this.setSVGLoadHandler(t),this.setTooltipHandler(t),this.setListLimiterHandler(t),this.setAutofocusHandler(t),this.setLazyLoadingHandler(t)},HandlerUtil.prototype.setOverlayClickHandler=function(t){$(t).find(".js-overlay").each(function(){bindOverlayClickEvent($(this))})},HandlerUtil.prototype.setSVGLoadHandler=function(t){$.each($(t).find("[data-svgname]"),function(t,e){createSvgAjaxLoader($(e)).init()})},HandlerUtil.prototype.setTooltipHandler=function(t){$.each($(t).find("[data-toggle='popover']"),function(t,e){new Tooltip({triggerElement:$(e),wrapInBody:!0}).showTooltip()})},HandlerUtil.prototype.setAutofocusHandler=function(t){$.each($(t).find(".js-autofocus"),function(t,e){var i=new DomHelper;i.isMobileDevice()||i.focusInputElement(e)})},HandlerUtil.prototype.reRenderCompassTable=function(t){$.each($(t).find(".compass-table"),function(t,e){new CompassTable($(e)).init()})},HandlerUtil.prototype.setListLimiterHandler=function(t){$.each($(t).find("ul.js-listLimiter"),function(t,e){createListLimiter($(e))})},HandlerUtil.prototype.setLazyLoadingHandler=function(t){$.each($(t).find(".js-lazyloading"),function(t,e){new LazyLoading({container:$(e)}).init()})},ManipulationUtils.prototype.enableScrollBars=function(){var t=$("html"),e=parseInt(t.css("top"));t.removeClass("noscroll"),$("html,body").scrollTop(-e)},ManipulationUtils.prototype.disableScrollBars=function(){var t,e=$("html");$(document).height()>$(window).height()&&(t=(e.scrollTop()?e:$("body")).scrollTop(),e.addClass("noscroll").css("top",-t))},ManipulationUtils.prototype.lockPage=function(t){if(!0===t&&!this.domHelper.isMobileDevice())return!1;this.lockContainerAlreadyExists()||(this.disableScrollBars(),this.domHelper.getDocumentBody().prepend(this.getLockContainer()))},ManipulationUtils.prototype.unlockPage=function(){this.lockContainerAlreadyExists()&&($(document).find("#bodylock").remove(),this.enableScrollBars())},ManipulationUtils.prototype.getLockContainer=function(){return $("<div id='bodylock' class='lock'></div>")},ManipulationUtils.prototype.lockContainerAlreadyExists=function(){return $(document).find("#bodylock").length},ManipulationUtils.prototype.getLoadingContainer=function(){return $("<div class='full-loading'><div class='loading'></div></div>")},ManipulationUtils.prototype.setPageLoading=function(){this.loadingContainerAlreadyExists()||(this.disableScrollBars(),this.domHelper.getDocumentBody().prepend(this.getLoadingContainer()))},ManipulationUtils.prototype.unsetPageLoading=function(){$(document).find(".full-loading").remove(),this.enableScrollBars()},ManipulationUtils.prototype.loadingContainerAlreadyExists=function(){return $(document).find(".full-loading").length},ParameterUtil.getParameterPrefix=function(t){return t.match(/\?/g)?"&":"?"},ParameterUtil.updateQueryParams=function(t,e){var i,n=[location.protocol,"//",location.host,location.pathname].join(""),o=document.location.search,r=t+"="+e,a="?"+r;t=(t=t.replace("[","\\[")).replace("]","\\]"),o&&(i=new RegExp("([?&])"+t+"[^&]*"),t=new RegExp("([?&])"+t+"=[^&;]+[&;]?"),a=null==e||!1===e?(a=o.replace(t,"$1")).replace(/[&;]$/,""):null!==o.match(i)?o.replace(i,"$1"+r):o+"&"+r),9!==Browser.getIeVersion()&&window.history.replaceState({},"",n+a)},ParameterUtil.getCurrentUrlParams=function(){var o={};return window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi,function(t,e,i){var n;i=i.replace(/\+/g," "),o[e]?(o[e].constructor!==Array&&((n=[]).push(o[e]),o[e]=n),o[e].push(i)):o[e]=decodeURIComponent(i)}),o},WaitAndReplace.prototype.init=function(){this.isInitialized()||(this.validateConfig(),this.setLoading(),this.handleReplaceData(),this.isSingleReplace()&&this.setAsInitialized())},WaitAndReplace.prototype.validateConfig=function(){if(!this.getContainer())throw"Container must be defined!";if(!this.getSource())throw"Endpoint must be defined!"},WaitAndReplace.prototype.getSource=function(){return $(this.getContainer()).data("war-source")||this.config.source||!1},WaitAndReplace.prototype.getLoadingText=function(){return this.getContainer().data("war-loadingtext")||this.config.loadingText||!1},WaitAndReplace.prototype.getResponseType=function(){return this.getContainer().data("war-response-type")||this.config.responseType||"json"},WaitAndReplace.prototype.isSingleReplace=function(){return!0===this.getContainer().data("war-single-replace")||!0===this.config.singleReplace||!1},WaitAndReplace.prototype.isInlineReplace=function(){return!0===this.getContainer().data("war-inline-replace")},WaitAndReplace.prototype.getReplaceContainerLoadingText=function(){return this.getContainer().data("war-replacecontainer-loadingtext")||this.config.replaceContainerLoadingdText||!1},WaitAndReplace.prototype.getContainer=function(){return $(this.config.container)||!1},WaitAndReplace.prototype.getReplaceContainer=function(){return this.getContainer().data("war-replacecontainer")||this.config.replaceContainer||this.getContainer()},WaitAndReplace.prototype.requestData=function(){return $.ajax({url:this.getSource(),method:"GET",dataType:this.getResponseType(),cache:!1})},WaitAndReplace.prototype.handleReplaceData=function(){var t=this.requestData();t.done(function(t){"json"===this.getResponseType()?this.handleJsonData(t):this.handleHtmlData(t)}.bind(this)),t.fail(function(){var t=$("<div class='mt1 mb1'>Fehler beim Laden der Daten</div>");this.readyToReplace(t)}.bind(this))},WaitAndReplace.prototype.handleJsonData=function(t){"ready"===t.status?this.readyToReplace(t.data):this.notReadyToReplace()},WaitAndReplace.prototype.handleHtmlData=function(t){this.readyToReplace(t)},WaitAndReplace.prototype.readyToReplace=function(t){this.dataToReplace=t,this.unsetLoading(),this.replaceContainer()},WaitAndReplace.prototype.notReadyToReplace=function(){var t=this;setTimeout(function(){t.handleReplaceData()},5e3)},WaitAndReplace.prototype.replaceContainer=function(){var t=$(this.dataToReplace);this.isInlineReplace()?$(this.getReplaceContainer()).html(t):$(this.getReplaceContainer()).replaceWith(t),this.handlerUtil.rerender(t)},WaitAndReplace.prototype.setAsInitialized=function(){this.getContainer().addClass("initialized")},WaitAndReplace.prototype.isInitialized=function(){return this.getContainer().hasClass("initialized")},WaitAndReplace.prototype.setLoading=function(){this.getLoadingText()&&this.getContainer().html(this.getLoadingText()),this.getReplaceContainerLoadingText()&&$(this.getReplaceContainer()).html(this.getReplaceContainerLoadingText())},WaitAndReplace.prototype.unsetLoading=function(){this.getLoadingText()&&$(this.getLoadingText()).remove()};
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.