PageSourceSearch

https://jpc.de/js/3558bb/modules.min.js

js jpc.de collected 2026-10-02 02:30:58 UTC 166,735 bytes, 2 lines download raw bytes

1var ModuleAddressform={init:function(){return Dom.addressforms=Dom.body.find("form.addressform"),process=!0,!!Dom.addressforms[0]&&(Dom.addressforms.each(function(){if($(this).hasClass("no-classic-form-handler"))return process=!1}),!!process)&&(Dom.addressforms.each(function(){ModuleAddressform.initForm($(this))}),!0)},initForm:function(e){if(!e[0])return!1;ModuleAddressform.checkSubmit(e),ModuleAddressform.changeZip(e),ModuleAddressform.changeStreet(e)},checkForm:function(e){var t=e.Progress("div",!0),o=$.Deferred();return o.always(function(){t.stop()}),e.hasClass("all-ready")?(e.removeClass("all-ready"),o.resolve()):"DE"!=e.find("label.field-country select").val()?o.resolve():ModuleAddressform.checkCity(e).then(function(){if(e.hasClass("city-gap"))return o.resolve(),!0;ModuleAddressform.checkStreet(e).then(function(e,t){o.resolve()}).fail(function(){o.reject("street")})}).fail(function(){o.reject("city")}),o},checkSubmit:function(){$form.off("submit.checkAddress").on("submit.checkAddress",function(e){var t=ModuleAddressform.checkForm($form);e.preventDefault(),t.done(function(){$form.addClass("all-ready").submit()})})},checkStreet:function(n){var i,e,t,r=$.Deferred();return n.hasClass("street-okay")?r.resolve():(i=$("div.street-layer"),e=n.find("label.field-zip input").val(),t=n.find("label.field-street input").val(),e&&t?$.post("/address/check/street",{zip:e,street:t},function(e){var t,o;return e&&(t=e)&&null!=t?(o=function(e){return!(""==e&&!n.hasClass("streetNo-okay")&&((e=$("div.nr-layer")).find("button.no").off("click.no").on("click.no",function(e){e.preventDefault(),ModuleBody.closeOpenHelpLayer()}),e.find("button.yes").off("click.yes").on("click.yes",function(e){e.preventDefault(),ModuleBody.closeOpenHelpLayer(),n.addClass("streetNo-okay streetNo-ignore").submit()}),ModuleBody.openHelpLayer(e),1))},void(0==t.streetOK?(i.find("strong.street-name").html(t.street).data("no",t.street_no),i.find("button.no").off("click.no").on("click.no",function(e){e.preventDefault(),ModuleBody.closeOpenHelpLayer()}),i.find("button.yes").off("click.yes").on("click.yes",function(e){e.preventDefault(),ModuleBody.closeOpenHelpLayer(),n.addClass("street-okay street-ignore"),o(t.street_no)&&n.submit()}),ModuleBody.openHelpLayer(i),r.reject("layer")):o(t.street_no)?r.resolve(t.street,t.street_no):r.reject("layer"))):(n.addClass("street-okay"),r.resolve(),!0)}):r.resolve()),r},checkCity:function(t){var o,n,i,r=$.Deferred();return t.hasClass("city-okay")?r.resolve():(o=$("div.city-layer"),n=t.find("label.field-zip input").val(),i=t.find("label.field-city input").val(),n?$.post("/address/s/zip",{zip:n},function(e){return!e||!(e=e)||null==e[n]||1!=e[n].length||null==e[n][0]?(t.addClass("city-okay"),r.resolve(),!0):(e=e[n][0],i.toLowerCase()==e.n.toLowerCase()?(t.addClass("city-okay"),1==e.g&&t.addClass("city-gap"),r.resolve(),!0):(o.find("strong.city-name").html(i),o.find("button.no").off("click.no").on("click.no",function(e){e.preventDefault(),ModuleBody.closeOpenHelpLayer()}),o.find("button.yes").off("click.yes").on("click.yes",function(e){e.preventDefault(),ModuleBody.closeOpenHelpLayer(),t.addClass("city-okay city-ignore").submit()}),ModuleBody.openHelpLayer(o),void r.reject("layer")))}):(progress.stop(),r.resolve())),r},changeZip:function(r){var t=r.find("label.field-zip").find("input"),a=r.find("label.field-city"),s=a.find("input"),l=r.find("label.field-street"),d=l.find("input"),c=r.find("label.field-nr"),u=c.find("input"),f=r.find("label.field-additional").find("span").first(),h=f.text(),m="",o=r.find("label.field-is-packstation").find("input"),n=r.find("label.field-is-postfiliale").find("input");if(t.off("input.zip"),t.off("blur.zip"),"DE"!==r.find("label.field-country select").val())return!0;t.on("blur.zip",function(){var e,i=s.next("ul.city-select");return i.hide().find("li").remove(),o.prop("checked")||n.prop("checked")||(d.prop("disabled",!1),u.prop("disabled",!1),l.removeClass("hidden"),c.removeClass("hidden"),h.match(/\*$/)&&(f.text(h.substr(0,h.length)),h=f.text())),s.removeClass("list-closed"),t.val()===m||5!==(m=t.val()).length||(e=a.Progress(),void $.ajax({url:"/address/s/zip",data:{zip:m,max:50},success:function(e){try{var t=m,o=e,n="";s.removeClass("user-error"),1<o[t].length&&($.each(o[t],function(e,t){n+='<li data-g="'+t.g+'">'+t.n+"</li>"}),n+='<li class="type-in-city">- Ort manuell eingeben -</li>',i.find("li").remove(),i.append(n),i.slideDown(),a.removeClass("list-closed").addClass("list-open"),i.find("li").off("
1click.selectCity").on("click.selectCity",function(e){e.preventDefault();e=$(this);(e.hasClass("type-in-city")?s.val(""):(1===parseInt(e.data("g"))&&(d.val("").prop("disabled",!0),u.val("").prop("disabled",!0),l.addClass("hidden"),c.addClass("hidden"),h.match(/\*$/)||(h=f.text(h+"*").text())),s.val(e.html()))).trigger("focus"),a.removeClass("list-open").addClass("list-closed"),i.slideUp()}),s.off("click.openCitiesToChoose").on("click.openCitiesToChoose",function(){var e=$(this).parent();e.hasClass("list-closed")?(i.slideDown(),e.removeClass("list-closed").addClass("list-open")):e.hasClass("list-open")&&(i.slideUp(),e.removeClass("list-open").addClass("list-closed"))}),$("label.field-city").hasClass("list-open"))&&($(document).off("click.closeCitySelect").on("click.closeCitySelect",function(e){var e=$(e.target),t=e.parent();if(t.hasClass("field-city")||t.hasClass("city-select")||0<e.parents("ul.city-select").length)return!0;i.slideUp(),a.removeClass("list-open").addClass("list-closed")}),r.find("input").off("focus.closeCitySelect").on("focus.closeCitySelect",function(e){var e=$(e.target),t=e.parent();if(t.hasClass("field-city")||t.hasClass("city-select")||0<e.parents("ul.city-select").length)return!0;i.slideUp(),a.removeClass("list-open").addClass("list-closed"),r.find("input").off("focus.closeCitySelect")})),s.val(o[t][0].n),1===parseInt(o[t][0].g)&&(d.val("").prop("disabled",!0),u.val("").prop("disabled",!0),l.addClass("hidden"),c.addClass("hidden"),h.match(/\*$/)||f.text(h+"*"))}catch(e){s.removeClass("user-error").addClass("user-error")}},complete:function(){e.stop()}}))}),""!==t.val()&&t.trigger("blur.zipcode")},changeStreet:function(e){var t=e.find("label.field-street"),o=t.find("input"),n=t.find("datalist"),i=e.find("label.field-zip input"),r="",a=[];if(n.html(""),o.off("input.street"),"DE"!=e.find("label.field-country select").val())return!1;o.on("input.street",function(){var e=i.val();return 5!=e.length||o.val()==r||(r=o.val(),void $.post("/address/s/street",{max:20,zip:e,street:r},function(e){var o;return!!e&&(o="",$.each(e,function(e,t){return a[t]||(o+='<option value="'+t+'">'+t+"</option>",a[t]=!0),!0}),void n.append(o))}))})}},ModuleBody=(R.me("ModuleAddressform",!1),{openedHelpLayer:null,filterLinkTimeout:0,booknavTimeout:0,miniCartTs:0,unloaded:!1,mqlBreak:660,reducedMotion:!1,init:function(){$(window).on("beforeunload",function(){ModuleBody.unloaded=!0}),matchMedia("(prefers-reduced-motion: reduce)").matches&&(ModuleBody.reducedMotion=!0),ModuleBody.fixFooterToBottom(),Respond.onLoad("fixfooter",ModuleBody.fixFooterToBottom),Respond.onResize("fixfooter",ModuleBody.fixFooterToBottom),ModuleBody.setMiniCart(),ModuleBody.setCardBoxes(),ModuleBody.setBanner(),ModuleBody.setCharts(),ModuleBody.setTabsBehavior(),ModuleBody.setLinklistBehavior(),ModuleBody.initLinkPreload(),ModuleBody.initHelpLayer(),ModuleBody.initSearchLinks(),ModuleBody.initArtistGenre(),ModuleBody.initMiniCartAnimation(),ModuleBody.initCollapser(),ModuleBody.initDevicePerformance(),ModuleBody.initFlyoutContainer(),ModuleBody.initBottomSlideOut(),ModuleBody.initExitIntentPopup(),ModuleBody.initDeathnotes()},initExitIntentPopup:function(){$(document).on("mouseleave",function(e){{var t;(!$(".ecourier-detail-layer")[0]||$(".ecourier-detail-layer.mfp-hide")[0])&&e.clientY<0&&$("body").hasClass("exit-popup")?($.ajax({url:"/ecourier/anmeldung/getAboFormClosed",type:"POST",data:[],success:function(e){"1"==e&&$("body").removeClass("exit-popup")}}),t={source:"exitPopup",lang:$("body").data("lang"),exitid:$("body").data("exitid")},$.ajax({url:"/ecourier/anmeldung/getAboForm",type:"POST",data:t,success:function(e){""!=e&&($.magnificPopup.open({items:{src:e,type:"inline"},callbacks:{beforeOpen:function(){this.st.mainClass="mfp-move-from-top"},close:function(){ModuleBody.initExitIntentPopupCloseAction()}},removalDelay:500,closeBtnInside:!0}),dataLayer.push({atname:"ecept",atgroup:$("body").data("ecept"),event:"actionstest"}),$("body").removeAttr("data-ecept"),Dom.body.find(".dontlike span.pseudo-link").off("click.pseudoclose").on("click.pseudoclose",function(){$.magnificPopup.close()}),ModuleEcourier.init())}}
1)):e.clientY<0&&void 0!==(t=$("body").attr("data-ecept"))&&!1!==t&&(dataLayer.push({atname:"ecept",atgroup:$("body").data("ecept"),event:"actionstest"}),$("body").removeAttr("data-ecept"),$("body").removeClass("exit-popup"))}})},initExitIntentPopupCloseAction:function(){var e=!1;(e=$("body").hasClass("exit-popup")?!0:e)&&($(".mfp-content").find("section.js--ecourier-onsite-regform").length||$(".mfp-content").find("section.js--ecourier-onsite-regform-en").length)&&($.ajax({url:"/ecourier/anmeldung/setAboFormClosed",type:"POST",data:[],success:function(){$("body").removeClass("exit-popup")}}),$.magnificPopup.close())},initBottomSlideOut:function(){timeoutID=window.setTimeout(function(){var e=Dom.body.find("article.slide-out"),t=$("div.cc_banner"),o=respondMaxOnly(640)?20:30,n=null!=t[0]?o+t.height():12;$.each(e,function(e,t){$(t).css("bottom",n+"px"),n+=$(t).height()+42;t=$(t).data("position");Ajax.post({xjxfun:"bottomSlideOutClosed",position:t},function(){},function(){},function(){})})},5e3),Dom.body.off("click.slideOutClose",".slide-out .close").on("click.slideOutClose",".slide-out .close",function(){var e=$
1(this),n=e.parents(".slide-out"),i=parseInt(n.css("bottom").replace("px","")),t=Dom.body.find("article.slide-out"),e=e.data("position");Ajax.post({xjxfun:"bottomSlideOutClosed",position:e},function(){},function(){},function(){}),$.each(t,function(e,t){var o=parseInt($(t).css("bottom").replace("px",""));12<o&&i<o&&$(t).css("bottom",o-(n.height()+50)+"px")}),n.css("bottom","-"+(n.height()+50)+"px")})},initFlyoutContainer:function(){Dom.body.off("click.flyoutContainer","h3.flyout-trigger").on("click.flyoutContainer","h3.flyout-trigger",function(e){e.preventDefault(),$(this).parents("div.flyout-container").eq(0).toggleClass("is-open")})},initDevicePerformance:function(){var e=document.head.parentElement;e.classList.remove("no-js"),navigator.userAgent.match(/iPhone/i)&&(Dom.window.height()<460?(e.classList.remove("no-iphone","speed"),e.classList.add("iphone","no-speed")):(e.classList.remove("no-iphone"),e.classList.add("iphone"))),navigator.userAgent.match(/(iPad|iPhone|iPod)/g)&&(e.classList.remove("no-ios"),e.classList.add("ios")),/safari/.test(navigator.userAgent.toLowerCase())&&/Apple Computer/.test(navigator.vendor)&&(e.classList.remove("no-safari"),e.classList.add("safari"))},initCollapser:function(){function t(e){(e=e.target.closest(".limitheight")).querySelector(".heightlimiter").classList.remove("heightlimiter"),e.classList.remove("hide-class"),(e=e.querySelector(".release-limitheight")).removeEventListener("click",t),e.remove()}document.querySelectorAll(".textcontent .release-limitheight").forEach(function(e){e.addEventListener("click",t,{passive:!0})})},initArtistGenre:function(){var t,o,e,n=Dom.body.find("main.artistgenre-page");return!!n[0]&&(t=n.find("div.info"),o=n.find("div.info-more"),e=t.find("img"),Respond.onLoad("artistGenre",function(){e.outerHeight()>t.height()?o.remove():(t.height(e.outerHeight()),o.off("click.showMore").on("click.showMore",function(e){e.preventDefault(),t.removeAttr("style"),o.remove()}))}),!0)},initSearchLinks:function(){Dom.body.off("click.searchLink",".search-link").on("click.searchLink",".search-link",ModuleBody.clickSearchLinks)},clickSearchLinks:function(e){e.preventDefault();var e=$(this),t=e.data(),o=e.attr("href"),n=$('<form method="post"></form>');return $.each(t,function(e,t){switch(e){case"searchtype":if("interpret"===t||"person"===t||"soundtrack"===t)return!0;break;case"maskedHref":return""!==t&&(o=t),!0;case"cid":e="oid"}n.append('<input name="'+e+'" value="'+t+'" />')}),n.attr("action",o),Dom.body.append(n),n.submit(),!0},initFilterLinks:function(){Dom.body.off("click.filterLink",".filter-link").on("click.filterLink",".filter-link",ModuleBody.clickFilterLinks)},clickFilterLinks:function(e){e.preventDefault();var a=$(this);return clearTimeout(ModuleBody.filterLinkTimeout),ModuleBody.filterLinkTimeout=setTimeout(function(){var e=document.location.protocol,t=document.location.host,o=a.data("dir"),n=a.data("param"),i=a.data("ldelim"),r=a.data("rdelim");window.location=e+"//"+t+i+o+r+(""!==n?"?"+n:"")},25),!0},initHelpLayer:function(){var e=Dom.body.find("div.help-layer");return ModuleBody.dialog||(ModuleBody.dialog=new MagnificDialog("generic-help-layer")),!!e[0]&&(e.filter(".auto-open").each(function(){var e=$
1(this);ModuleBody.openHelpLayer(e)}),ModuleBody.HelpLayerDialogs={},document.querySelectorAll(".open-help-layer").forEach(e=>{var t=ModuleBody._getLayerName(e);""!==t&&(ModuleBody.HelpLayerDialogs[t]||(ModuleBody.HelpLayerDialogs[t]=new MagnificDialog(t)),ModuleBody.HelpLayerDialogs[t].addControllingButton(e),e.removeEventListener("click",ModuleBody._helpLayerClickHandler),e.addEventListener("click",ModuleBody._helpLayerClickHandler),"BUTTON"!==e.tagName)&&(e.removeEventListener("keyup",this._helpLayerKeyupHandler),e.addEventListener("keyup",this._helpLayerKeyupHandler))}),!0)},_helpLayerOpen:function(e){var t=document.querySelector(".help-layer."+e);t&&ModuleBody.HelpLayerDialogs[e]&&(ModuleBody.HelpLayerDialogs[e].open({items:{src:t}}),t.querySelector(".close-layer")?.addEventListener("click",()=>{ModuleBody.dialog.close()}),t.querySelector("form"))&&ModuleForm.init()},_helpLayerClickHandler:function(e){e.preventDefault();e=ModuleBody._getLayerNameFromEvent(e);""!==e&&ModuleBody._helpLayerOpen(e)},_helpLayerKeyupHandler:function(e){var t=ModuleBody._getLayerNameFromEvent(e);""===t||"keyup"===e.type&&("Enter"!==e.key||ModuleBody.HelpLayerDialogs[t].isOpen())||ModuleBody._helpLayerOpen(t)},_getLayerName:function(e){return e.dataset.layer.replace(".","")},_getLayerNameFromEvent:function(e){e=e.target.closest(".open-help-layer");return e?ModuleBody._getLayerName(e):""},openHelpLayer:function(e){e=e[0];e&&(ModuleBody.dialog.open({items:{src:e},onClose:()=>ModuleBody.openHelpLayer=null}),ModuleBody.openedHelpLayer=ModuleBody.dialog,e.querySelector(".close-layer")?.addEventListener("click",()=>{ModuleBody.dialog.close()}),e.querySelector("form"))&&ModuleForm.init()},closeOpenHelpLayer:function(){return!(!ModuleBody.openedHelpLayer||(ModuleBody.openedHelpLayer.close(),ModuleBody.openedHelpLayer=null))},openAjaxLayer:function(e,t){ModuleBody.dialog.open({items:{src:e}}),$(ModuleBody.dialog.dialogElement).find("form")[0]&&ModuleForm.init()},initLinkPreload:function(){var t;return!Dom.body.hasClass("page-cart")&&!Dom.body.hasClass("page-myaccount")&&(t=0,Dom.body.off("mouseleave.preload").on("mouseleave.preload","a",function(){clearTimeout(t)}).off("mouseenter.preload").on("mouseenter.preload","a",function(){clearTimeout(t);
1var e=$(this);t=setTimeout(function(){ModuleBody.doLinkPreload(e)},100)}).off("vmousedown.preload").on("vmousedown.preload","a",function(){clearTimeout(t),ModuleBody.doLinkPreload($(this))}),!0)},doLinkPreload:function(e){var t=e.attr("href");return null==t||""==t||"#"==t||t==window.location.href||0<=t.indexOf("http://")||0<=t.indexOf("mail:")||0<=t.indexOf("tel:")||0<=t.indexOf("/rv/www/")||!!(e.hasClass("no-preload")||e.hasClass("login-link")||e.hasClass("logout-link")||e.hasClass("search-link"))||void(Dom.preload&&Dom.preloadFF?Dom.preload.attr("href")!=t&&(Dom.preload.attr("href",t),Dom.preloadFF.attr("href",t)):(Dom.preload=$('<link rel="prerender" href="'+t+'" />'),Dom.preloadFF=$('<link rel="prefetch" href="'+t+'" />'),Dom.html.find("head").append(Dom.preload).append(Dom.preloadFF)))},initMiniCartAnimation:function(){Dom.body.off("click.miniCartAnimation").on("click.miniCartAnimation",".to-cart",ModuleBody.setItemToMiniCartAnimation)},setItemToMiniCartAnimation:function(e){var t,o=$(this),n=o.data("parent"),i=o.data("appendTo"),r=o.data("selector");if(n)t=o.parents(""+n).first();else{if(!r)return!0;t=$(""+r).first()}if(!t[0]||!o.is(":visible"))return!0;ModuleBody.doItemToMiniCartAnimation(t,o.parents(""+i))},doItemToMiniCartAnimation:function(e,t){var o=e.offset().top-Respond.scrolled,n=e.offset().left,i=e.width(),r=e.height(),a=Dom.miniCart.outerWidth(),s=Dom.miniCart.outerHeight(),l=Dom.miniCart.position().top,d=Dom.miniCart.offset().left,c=e.clone();t[0]||(t=e.parents("main").eq(0)),c.appendTo(t),c.width(i).height(r).css({top:o,left:n,"z-index":"999"}).addClass("to-cart-animation"),c.animate({width:a,height:s,top:l,left:d,opacity:.7},500,function(){c.remove()})},fixFooterToBottom:function(){Dom.footer.removeAttr("style");var e=Respond.height-Dom.body.height();return e<=0||(e++,Dom.footer.css("margin-top",e+"px")),!0},setBanner:function(){Dom.body.find("section.banner").each(function(){$(this).find("article > a").sameHeight(!0)})},setCharts:function(){Dom.body.find("section.charts").each(function(){$(this).find("li > a > *").sameHeight(!0)})},setLinklistBehavior:function(){Dom.body.find("ul.linklist").each(function(){var t=$(this),e=t.children("li");e.sameHeight(),e.find("h3").off("click.list").on("click.list",function(e){e.preventDefault();e=$(this).parent("li");e.hasClass("active")?e.removeClass("active"):(t.children("li").removeClass("active"),e.addClass("active"),ModuleHeader.scrollToIfNotVisible(e),Imagehandler.init())}),t.hasClass("shop-links")&&matchMedia("screen and (min-width: 960px)").matches&&(t.removeClass("hidden"),$(".shop-links-mobile").addClass("hidden"))})},setActiveTabBehavior:function(e,t){self=this,e.find("[role=tab], [role=button]").each(function(){$(this).hasClass("active")?$(this).attr("tabindex","0"):$(this).attr("tabindex","-1")})},setMediaBreakEvent:function(){let o=self.mqlBreak;(()=>{var e=window.matchMedia(`(width <= ${o}px)`);let t=t=>{var e=document.querySelectorAll("ul.tabs,[role=tablist]");if(null===e)return null;e.forEach(e=>{e=e.querySelectorAll("[role=tab], [button]");if(null===e)return null;"big"===t?e.forEach(e=>{e.hasAttribute("aria-hidden")&&e.removeAttribute("aria-hidden"),e.hasAttribute("aria-expanded")&&e.removeAttribute("aria-expanded")}):e.forEach(e=>{e.classList.contains("active")?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden","true"),e.setAttribute("aria-expanded","false")})})};e.onchange=e=>{e.matches?t("small"):t("big")}})()},setTabsBehavior:function(){(self=this).setMediaBreakEvent(),Dom.body.find("ul.tabs,[role=tablist]").each(function(){let i=$(this),o=i.parent().find(".tabcontent"),r=i.get(0).querySelectorAll("[role=tab], [role=button]");respondMaxOnly(self.mqlBreak)&&i.get(0).querySelectorAll("[role=tab], [button]").forEach(e=>{e.classList.contains("active")?(e.removeAttribute("aria-hidden"),e.setAttribute("aria-expanded",!1)):(e.setAttribute("aria-hidden",!0),e.removeAttribute("aria-expanded"))}),i.css("border-bottom-color",i.find("[role=tab].active, [role=button].active").css("background-color")),i.find("[role=tab], [role=button]").off("keydown").on("keydown",function(e){var t=$(":focus"),o=i.find("[role=tab].active, [role=button].active");let n=null;switch(e.key){case"ArrowLeft":case"ArrowUp":(n=t.parent().children().first().attr("id")!==t.attr("id")?t.prev():t.parent().children().last(
1)).get(0).hasAttribute("aria-hidden")&&(n=null);break;case"ArrowRight":case"ArrowDown":(n=t.parent().children().last().attr("id")!==t.attr("id")?t.next():t.parent().children().first()).get(0).hasAttribute("aria-hidden")&&(n=null);break;case"Home":(n=t.parent().children().first()).get(0).hasAttribute("aria-hidden")&&(n=null);break;case"End":(n=t.parent().children().last()).get(0).hasAttribute("aria-hidden")&&(n=null);break;case"Enter":case"Space":ModuleBody.loadTabContent(i,t);break;case"Escape":respondMaxOnly(self.mqlBreak)&&(i.removeClass("is-open"),null!==r&&r.forEach(e=>{e.classList.contains("active")||e.setAttribute("aria-hidden",!0)}),o.focus())}n&&(e.preventDefault(),n.css("border-bottom-color",o.css("background-color")).focus())}),i.find("[role=tab], [role=button]").off("click.tabs").on("click.tabs",function(e){e.preventDefault();let t=$(this);respondMaxOnly(self.mqlBreak)?i.hasClass("is-open")?(t.hasClass("active")||(i.find("[role=tab], [role=button]").removeClass("active").attr("aria-selected","false").removeAttr("aria-expanded").attr("aria-hidden",!0),t.addClass("active").attr("aria-selected","true").attr("aria-expanded","false").removeAttr("aria-hidden"),o.attr("aria-labelledby",t.attr("id")),ModuleBody.loadTabContent(i,t),setTimeout(function(){i.css("border-bottom-color",t.css("background-color"))},250)),i.removeClass("is-open"),t.attr("aria-expanded",!1),null!==r&&r.forEach(e=>{e.classList.contains("active")||(e.setAttribute("aria-hidden",!0),e.removeAttribute("aria-expanded"))})):(i.addClass("is-open"),t.attr("aria-expanded",!0),null!==r&&r.forEach(e=>{e.removeAttribute("aria-hidden"),e.classList.contains("active")||e.removeAttribute("aria-expanded")})):t.hasClass("active")||(i.find("[role=tab], [role=button]").removeClass("active").attr("aria-selected","false"),t.addClass("active").attr("aria-selected","true"),o.attr("aria-labelledby",t.attr("id")),ModuleBody.loadTabContent(i,t),setTimeout(function(){i.css("border-bottom-color",t.css("background-color"))},250)),ModuleBody.setActiveTabBehavior(i,o)})})},loadTabContent:function(e,t){var o=e.parent().find(".tabcontent"),n=e.Progress("div"),i=t.data("ajax"),r=t.data("cat"),t=t.data("content"),a=window[e.data("callback-object")],s=e.data("callback-method");if(o.attr("aria-busy","true"),o.hasClass("has-content")){if(void 0===t||""===t||null===t)return console.warn("data-content not defined!"),!1;o.children().removeClass("active").filter(".content-"+t).addClass("active"),ModuleBody.loadedTabContent(n,a,s)}else o.addClass("remove"),Ajax.get(i,function(e){o.removeClass("remove").html(e),null!=r&&""!=r&&(o.removeClass(o.data("old-cat")),o.addClass(r),o.data("old-cat",r)),ModuleBody.loadedTabContent(n,a,s)})},loadedTabContent:function(e,t,o){e.stop(),Imagehandler.init(),null!=t&&"function"==typeof(e=t[o])&&e()},setCardBoxes:function(){return!!Dom.body.find(".cardbox")[0]&&(Dom.body.find(".cardbox").each(function(){var u=$(this),f=u.find("[role=tablist]"),h=u.find(".tabcontent");h.attr("aria-busy","false"),ModuleBody.setActiveTabBehavior(f,h),0<h.find(".infotext").length?h.attr("tabindex","0"):h.attr("tabindex","-1"),u.off("click.nextPrev","p.pager button").on("click.nextPrev","p.pager button",function(){var e,t,o,n,i,r,a,s=u.find("p.pager"),l=s.find("small span"),d=parseInt(l.first().text(),10),c=$(this).hasClass("next-page");s.hasClass("ajax")?(e=f.find("[role=tab].active, [role=button].active"),e=$.extend(e.data("ajax"),{}),t=s.Progress("div"),o=window[f.data("callback-object")],n=f.data("callback-method"),h.attr("aria-busy","true"),(i=c?d+1:d-1)<=1&&(i=1),l.html(i),d=$.extend({},e),a=e.xjxargs.slice(0),d.xjxfun="browse",d.xjxr="null",d.maxArticleCount=s.data("max"),d.width="three-of-five",a.push("N"+s.data("max")),a.push("N"+i),a.push("N"+(new Date).getTime()),d.xjxargs=a,h.addClass("remove"),Ajax.get(d,function(e){h.removeClass("remove").html(e),u.find("p.pager small span").html(i),ModuleBody.loadedTabContent(t,o,n)}),d.xjxargs=e=null):(s=(r=u.find("div.pages div.page")).filter(".active"),a=c?s.next("div.page"):s.prev("div.page"),s.removeClass("active").attr("aria-selected","false"),a[0]?(a.addClass("active").attr("aria-selected","true"),l.html(function(){return c?parseInt($(this).html(),10)+1:parseInt($(this).html(),10)-1})):((c?r.first():r.last()).addClass("active").attr("aria-selected","true"),l.html(function(){return c?1:r.length})),Imagehandler.init())}),u.find("div.cards.without-actions").each(function(){$(this).find(".card:not(.no-same-height)").sameHeight(!1,function(e){e.each(function(){var e=$
1(this),t=e.children("div.content");e.removeClass("fixed-bottom"),t.height()<e.height()&&e.addClass("fixed-bottom")})})}),u.find("div.cards.with-actions").each(function(){var e=$(this).find("li.card:not(.no-same-height), div.card:not(.no-same-height)");e.find("a.image").sameHeight(),e.find("div.content").sameHeight()}),u.find("i.delete-card").off("click.deleteCard").on("click.deleteCard",function(e){e.preventDefault();e=$(this).parents(".card").eq(0).attr("data-hnum");$(".recommended-product-"+e).length&&$(".recommended-product-"+e).remove(),$(this).parents(".card").eq(0).remove(),ModuleBody.setCardBoxes()})}),!0)},initDeathnotes:function(){$("section.deathnotes").find("li.two-cols").sameHeight()},getMiniCart:function(){return void 0===ModuleBody.miniCart&&(ModuleBody.miniCart=new Minicart(Dom.miniCart,Dom.miniCart.find("b.amount"),Dom.miniCart.find(".amount-wrapper"),Dom.miniCart.find("span.price"),Dom.body.data("lang"))),ModuleBody.miniCart},setMiniCart:function(){try{ModuleBody.getMiniCart().sync()}catch(e){!1===ModuleBody.unloaded&&(new CartErrorHandler).handleException(e,"setMiniCart")}},setMiniCartWithoutSync:function(){try{ModuleBody.getMiniCart().render()}catch(e){(new CartErrorHandler).handleException(e,"setMiniCart")}$text="",$text="de"===Dom.body.data("lang")?"Warenkorb: "+Dom.miniCart.find("b.amount").html()+" Artikel, Summe EUR "+Dom.miniCart.find("span.price").html():"Shopping cart: "+Dom.miniCart.find("b.amount").html()+" items, total EUR "+Dom.miniCart.find("span.price").html(),Dom.miniCart.attr("aria-label",$text)}}),ModuleEcourier=("object"==typeof R?R.me("ModuleBody",!1):"object"==typeof module&&(module.exports=ModuleBody),{stopFormSubmitHandler:!1,init:function(){ModuleEcourierSuccesswindow.openEcourierSuccessWindow(function(e){$(".delete-on-ecourier-success-window").remove(),ModuleEcourier.openEcourierLayer(e,!0)}),ModuleEcourier.dialog=new MagnificDialog,Dom.body.find(".ecourier-action").off("click.ecourierAction").on("click.ecourierAction",function(e){e.preventDefault();var e=$(this).data("task"),t=$(this).data("hnum"),o=$(".js-ecourier--input").val(),n=$(this).parent().AnnouncingProgress(),i=!1;$(".mfp-wrap").hasClass("mfp-move-from-top")&&(i=!0),$.get("/ecourier/"+e+"/",{hnum:t,lang:Dom.body.data("lang"),email:o},function(e){n.stop(),window.setTimeout(function(){ModuleEcourier.openEcourierLayer(e,i)},500)})}),Dom.body.find("form.ecourier-form").off("submit.ecourierAction").on("submit.ecourierAction",function(e){e.preventDefault();var e=$(this),t=e.AnnouncingProgress();sendAjaxForm(e,ModuleEcourier.openEcourierLayer,null,function(){t.stop()})}),extendTriggerBehavior(ModuleEcourier)},openEcourierLayer:function(e,t){e='<div class="help-layer ecourier-detail-layer">'+e+"</div>",ModuleEcourier.dialog.close();var o=$("body"),n=(o.find("div.ecourier-detail-layer").remove(),o.append(e),o.find("div.ecourier-detail-layer")),i=n.find("button.mfp-close");n.off("click.closeDisclosure").on("click.closeDisclosure",function(e){e.target.closest(".close-jpc-disclosure-button")&&n.find("jpc-disclosure-button").get(0).close()}),ModuleEcourier.dialog.open({items:{src:n,type:"inline"},onClose:()=>{o.off("click.closeEcourierPopup")},onOpen:()=>{$("body").off("click.closeHelpLayer","div.mfp-content div.help-layer .close-layer").on("click.closeHelpLayer","div.mfp-content div.help-layer .close-layer",function(e){e.preventDefault(),ModuleEcourier.dialog.close()}),n.find("form")[0]&&ModuleForm.init(),t&&$(".mfp-wrap").addClass("mfp-move-from-top");
1var e=$(".ecourier-detail-layer button.show-more");e[0]&&e.off("click.showMore").on("click.showMore",function(){$(".contributor-show-more").removeClass("hidden contributor-show-more"),e.remove()}),ModuleEcourier.ecourierAjaxForm(i)}})},closeEcourierLayer:function(){Dom.body.find("div.ecourier-detail-layer").find("button.exit,button.mfp-close").trigger("click")},ecourierAjaxForm:function(n){var i=Dom.body.find("div.ecourier-detail-layer");ModuleForm.init(),Imagehandler.init(),ModuleEcourier.ecourierPriceAlarm(i),ModuleBody.initExitIntentPopupCloseAction(),i.find("button.exit").off("click.exit").on("click.exit",function(){var e=i.find("form");ModuleEcourier.trigger("close",e[0]?e.data("step"):null),ModuleEcourier.dialog.close()}),i.find("button.mfp-close").off("click.ecourier").on("click.ecourier",function(){var e=i.find("form");ModuleEcourier.trigger("close",e[0]?e.data("step"):null)}),n.length<=0&&(n=i.find(".mfp-close")),!1===ModuleEcourier.stopFormSubmitHandler&&i.find("jpc-form,form").first().off("submit.submit").on("submit.submit",function(e){var t=$(this);if(e.preventDefault(),t.hasClass("required-checkbox")){if(!t.find("input[type=checkbox]:checked")[0])return t.find(".select-error").removeClass("hidden").show(),!1;t.find(".select-error").hide()}var o=i.AnnouncingProgress();ModuleEcourier.dialog.setLoading(),sendAjaxForm(t,function(e){i.html(e).append(n),ModuleEcourier.ecourierAjaxForm(n);e=i.find(".has-step"),e=e[0]?e.data("step"):"";ModuleEcourier.trigger("afterSubmit",e),ModuleEcourier.dialog.finishLoading()},null,function(){o.stop()})}),i.find("form label.select-all input").off("change.selectAll").on("change.selectAll",function(e){e.preventDefault();var e=$(this),t=e.parents("form").eq(0);!e.prop("checked")?t.find("input[type=checkbox]:visible").prop("checked",!1):t.find("input[type=checkbox]:visible").prop("checked",!0)}),i.find("form").off("click.showAllMedia",".show-all-media").on("click.showAllMedia",".show-all-media",function(e){var t=$(this);e.preventDefault(),t.parents("form").eq(0).find("label.hidden").removeClass("hidden"),t.addClass("hidden")}),ModuleEcourier.trigger("afterShow",i.find(".has-step").data("step"))},ecourierPriceAlarm:function(e){if(!e.find("form.ecourier-price-alert")[0])return!1;var o=e.find("input[name=alertprice]");e.find("fieldset button").off("click.changePrice").on("click.changePrice",function(e){e.preventDefault();var e=o.val(),e=parseFloat(e.replace(",",".")),t=$(this).hasClass("minus")?-1:1,e=parseFloat(e+t);o.data("price",e=e<.01?.01:e).val(e.formatMoney(2,",","")),o.attr("aria-valuenow",e)})}}),ModuleECourierBox=(R.me("ModuleEcourier",!1),(l=>({init:function(){var t,e;Dom.ecourierbox=l(".ecourierbox-area"),Dom.ecourierbox[0]&&(e=(location.href.match(/\/(jpcng\/)?([a-z]+)\/home/)||["","home"])[2],!1===getLocalCachedFlag("ecbox-"+e)?Dom.ecourierbox.remove():(t=e,e=0,respondMinOnly(980)?e=2:respondMinOnly(450)&&(e=1),l.ajax({url:"/ecourier/box",method:"post",data:{mp:e,bereich:t,lang:Dom.body.data("lang")},success:function(e){"0"===e?(Dom.ecourierbox.remove(),saveLocalCachedFlag("ecbox-"+t,!1,getCustomerIdFromJwt())):(saveLocalCachedFlag("ecbox-"+t,!0,getCustomerIdFromJwt()),Dom.ecourierbox.find("div").remove(),Dom.ecourierbox.append(e),Dom.ecourierbox.removeClass("pre-load").addClass("recommendations-area"),e=Dom.ecourierbox.find("section.recommendations"),ModuleRecommendations.initContainer(e.get(0),"ec-0"),Imagehandler.init(Dom.ecourierbox.get(0)),ModuleECourierBox.mediaApi=new AjaxFetch("/ecourieralerts/media"),Dom.ecourierbox.find("div.interests button").off("click.action").on("click.action",function(){var n,e=l(this),t=e.parents("div.card").eq(0),o=(n=(t[0]?t:(t=e.parents("article").eq(0)).find("div.inner")).Progress(),t.data("hnum")),i=t.data("reason"),r="ecbox",a="";if(e.hasClass("like")?a="like":e.hasClass("dislike")?a="dislike":e.hasClass("buyed")?a="owns":e.hasClass("alert")&&(a="alert"),""==a)return n.stop(),!1;var s=this.closest("div.slide");"like"!=a&&(s.closest(".slides").querySelectorAll(".slide"),ModuleBody.reducedMotion||!ModuleRecommendations.isScrollable("ec-0")?s.querySelectorAll("button").forEach(function(e){e.setAttribute("disabled",!0),e.classList.remove("white")}):(s.addEventListener("transitionend",function(e){"flex-basis"===e.propertyName&&ModuleRecommendations.removeSlide(s,"ec-0")}),s.classList.add("to-remove"),s.querySelector("article").style.width=s.querySelector("article").getClientRects()[0].width+"px")),"alert"==a?l.ajax({type:"PUT",async:!0,url:"/ecourieralerts/availability/",dataType:"json",data:JSON.stringify({hnum:o,id:r}),contentType:"application/json; charset=utf-8"}).done(function(){alert("Der Alarm wurde angelegt.")}).always(function(){n.stop()}
1):"like"==a?l.ajax({type:"PUT",async:!0,url:"/session/like/"+o+"/"+r}).always(function(){n.stop();var e=s.querySelector("button.like"),t=s.querySelector("button.dislike");e&&(e.setAttribute("disabled",!0),e.classList.add("success")),t&&t.classList.add("hidden")}):l.post("/ecourier/ajax/like",{mode:a,hnum:o,eCourierId:r,reason:i,lang:Dom.body.data("lang")},function(e,t,o){n.stop(),"owns"===a&&!o.getResponseHeader("x-get-email")||(ModuleEcourier.stopFormSubmitHandler=!0,ModuleEcourier.openEcourierLayer(e,!0),ModuleEcourier.stopFormSubmitHandler=!1)}),Dom.body.off("submit.ecourierActionSave","div.ecourier-like-layer form").on("submit.ecourierActionSave","div.ecourier-like-layer form",function(e){e.preventDefault(),e.stopPropagation();var e=l(this),t=e.parents("div.ecourier-like-layer").eq(0).Progress(),n=[];return e.find("input:checked").each(function(){var e=l(this),t=e.data("isgroup"),o=e.data("division"),e=e.val();t?ModuleECourierBox.mediaApi.put({mediaGroup:e,division:o,source:""}):n.push(e)}),"alert"==a?l.ajax({type:"PUT",async:!0,url:"/ecourieralerts/availability/",dataType:"json",data:JSON.stringify({hnum:o}),contentType:"application/json; charset=utf-8"}).done(function(){alert("Der Alarm wurde angelegt.")}).always(function(){t.stop()}):"like"==a?l.ajax({type:"PUT",async:!0,url:"/session/like/"+o+"/"+r}).always(function(){t.stop()}):l.post("/ecourier/ajax/like",{mode:a,hnum:o,eCourierId:r,reason:i,save:1,values:n,lang:Dom.body.data("lang")},function(e){t.stop(),ModuleBody.closeOpenHelpLayer(),ModuleBody.openAjaxLayer(e,"ecourier-like-layer"),setTimeout(function(){ModuleBody.closeOpenHelpLayer()},2e3)}),!1})}))},error:function(){Dom.ecourierbox.remove(),saveLocalCachedFlag("ecbox-"+t,!1,getCustomerIdFromJwt())}})))}}))($)),ModuleFooter=(R.me("ModuleEcourierBox",!1),{_loadingLastId:!1,init:function(){Dom.newsletterButton=$(".main-links .newsletter a.is--receiver").first(),Dom.newsletterButton[0]&&ModuleFooter.initNewsletterButton(Dom.newsletterButton)},initNewsletterButton:function(t){ModuleFooter.getLastId(function(e){!1!==e&&t.attr("href",Dom.newsletterButton.data("urlExists")+e).html(Dom.newsletterButton.data("textExists"))})},getLastId:function(t){var e,o,n;ModuleFooter._loadingLastId?setTimeout(e=>ModuleFooter.getLastId(t),50):(ModuleFooter._loadingLastId=!0,null!==(e=getLocalCachedFlag("ecLastId"))?(t(e),ModuleFooter._loadingLastId=!1):!1===(o=getCustomerIdFromJwt())?ModuleFooter._loadingLastId=!1:(n=function(){saveLocalCachedFlag("ecLastId",!1,o,900)},new AjaxFetch("/session/ecourier/lastId",{404:n}).post({}).then(function(e){200===e.status&&$.isPlainObject(e.data)?"object"==typeof e.data&&null!==e.data&&"string"==typeof e.data.id&&""!==e.data.id&&(saveLocalCachedFlag("ecLastId",e.data.id,o,3600),t(e.data.id)):n()}).always(()=>{ModuleFooter._loadingLastId=!1})))}}),ModuleForm=(R.me("ModuleFooter",!1),{formValidityTimeout:null,init:function(){if(Dom.forms=$("form, .form-fields"),!Dom.forms[0])return!1;ModuleForm.setFormFieldStatus(),ModuleForm.setSelectedOptions(),ModuleForm.setMobileCheckboxes(),ModuleForm.activateButtons()},setFormFieldStatus:function(){Dom.forms.find("input, select, textarea, button").on("blur.status",function(){$(this).removeClass("has-focus").addClass("blured"),$(this).parents("form").removeClass("active")}).on("focus.status",function(){$(this).addClass("has-focus"),$(this).parents("form").addClass("active")})},setSelectedOptions:function(){Dom.forms.find("select[data-selected]").each(function(){var e=$
1(this);e.val(e.data("selected"))})},setMobileCheckboxes:function(){return Dom.forms.find("input[type=checkbox]").not(".no-toggle,.sr-only").after("<em></em>").parents("label.cb").addClass("toggle"),Dom.forms.find("input[type=radio]").not(".no-choose,.sr-only").after("<em></em>").parents("label.cb").addClass("choose"),Dom.forms.find("input[type=radio]").on("click",e=>this.toggleRadio(e)),!0},toggleRadio(e){var e=$(e.target),t=e.hasClass("optionSelected"),o=e.attr("name");Dom.forms.find("input[name="+o+"]:radio").each(function(){$(this).removeClass("optionSelected")}),t?(e.removeAttr("checked"),e.prop("checked",!1)):(e.attr("checked",!0),e.addClass("optionSelected"))},activateButtons:function(){Dom.forms.each(function(){var e=$(this);if(e.hasClass("no-validate"))return!0;e.find(".btn.js-grey").addClass("grey"),ModuleForm.checkFormValidity(e),e.find("input, select, textarea").off("keyup.activateButton change.activateButton click.activateButton blur.activateButton input.activateButton").on("keyup.activateButton change.activateButton click.activateButton blur.activateButton input.activateButton",function(){clearTimeout(ModuleForm.formValidityTimeout),ModuleForm.formValidityTimeout=setTimeout(function(){ModuleForm.checkFormValidity(e)},30)})})},checkFormValidity:function(a){var e=a.find(".btn.js-grey"),t=a.find("input, textarea, select"),s=!0;a.find("button").off("click.formUsed").on("click.formUsed",function(){a.addClass("used")}),t.each(function(){var e=!0,t=$(this),o=t.val(),n=t.attr("name");if(t.prop("required"))switch(t.attr("type")){case"radio":0===a.find(`input[type="radio"][name="${n}"]:checked`).length&&(e=!1);break;case"checkbox":t.is(":checked")||(e=!1);break;default:""===o&&(e=!1)}var i=parseInt(t.attr("minlength")),r=parseInt(t.attr("maxlength"));return!isNaN(i)&&0<i&&o.length<i&&(e=!1),!isNaN(r)&&0<r&&o.length>r&&(e=!1),t.hasClass("invalid-email")&&(e=!1),t.hasClass("blured")&&(!1!==e?t.removeClass("user-error"):t.addClass("user-error")),!1===e&&(s=!1),!0}),!1!==s?(e.removeClass("grey"),a.addClass("is-valid")):(e.addClass("grey"),a.removeClass("is-valid"))}}),ModuleHeader=(R.me("ModuleForm",!1),{fixedHeaderHeight:104,fixedSmallHeaderHeight:64,searchOldVal:"",searchOldCat:"",searchSuggestHideTimeout:null,scrolledToHash:"",navigationKeys:["Tab","Escape","ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Enter","Shift","Control","Alt","Meta"],init:function(){Dom.header.logo=Dom.header.find("a.logo"),Dom.header.searchForm=Dom.header.find("form"),Dom.header.searchForm[0]&&Dom.header.logo[0]&&(Dom.header.searchField=Dom.header.searchForm.find("input[type=search]"),Dom.header.searchCategory=Dom.header.searchForm.find("select"),Dom.header.searchButton=Dom.header.searchForm.find("button"),Dom.header.searchSuggest=Dom.header.searchForm.find("ol, ul"),Dom.header.extSearchMobile=Dom.header.find(".ext-search.mobile"),Dom.header.extSearch=Dom.header.find(".ext-search.desktop"),ModuleHeader.initHeaderPosition(),ModuleHeader.initSearchForm(),ModuleHeader.initHashBehavior())},initHeaderPosition:function(){if(Dom.header.logo.off("click.logo").on("click.logo",ModuleHeader.clickLogo),Dom.html.hasClass("no-speed"))return!0;ModuleHeader.setFixed(),Respond.onResize("fixHeader",ModuleHeader.setFixed),Respond.onLoad("scrollHeader",ModuleHeader.setScrolled),Respond.onResize("scrollHeader",ModuleHeader.setScrolled),Respond.onScroll("scrollHeader",ModuleHeader.setScrolled)},setFixed:function(){return $("span.header-spacer").remove(),respondMaxOnly(319)?Dom.header.removeClass("is-fixed"):Dom.header.addClass("is-fixed").after($('<span class="header-spacer" />')),!0},setScrolled:function(){return respondMaxOnly(319)?Dom.header.removeClass("is-scrolled").removeClass("is-small"):$("body").hasClass("no-header-resize")?(Dom.header.addClass("is-scrolled"),Dom.header.addClass("is-small")):(1<Respond.scrolled?Dom.header.addClass("is-scrolled"):Dom.header.removeClass("is-scrolled"),Respond.height/25<Respond.scrolled?Dom.header.addClass("is-small"):Dom.header.removeClass("is-small"),Respond.height/10<Respond.scrolled&&"up"!==Respond.scrollDirection&&!Dom.header.searchField.hasClass("has-focus")?Dom.header.addClass("is-only-first-row"):(Dom.header.removeClass("is-only-first-row"),$("body").hasClass("page-feed")&&Dom.header.removeClass("is-small"))),!0},clickLogo:function(e){return Dom.header.hasClass("is-small")&&null===document.querySelector("article .company-page")&&(e.preventDefault(),ModuleHeader.scrollTo(0)),!0},initSearchForm:function(){Dom.header.searchField[0]&&Dom.header.searchCategory[0]&&Dom.header.searchButton[0]&&(ModuleHeader.searchOldVal="",ModuleHeader.searchOldCat=Dom.header.searchCategory.val(),Dom.header.searchField.off("blur.suggest").on("blur.suggest",ModuleHeader.hideSearchSuggest),Dom.header.searchCategory.off("blur.suggest").on("blur.suggest",ModuleHeader.hideSearchSuggest),Dom.header.searchButton.off("blur.suggest").on("blur.suggest",ModuleHeader.hideSearchSuggest),Dom.header.extSearchMobile.off("blur.suggest").on("blur.suggest",ModuleHeader.hideSearchSuggest),Dom.header.extSearch.off("blur.suggest").on("blur.suggest",ModuleHeader.hideSearchSuggest),Dom.header.searchField.off("keyup click").on("keyup click",function(e){!Dom.header.searchForm.hasClass("show-suggest")||"Tab"!==e.key&&"Escape"!==e.key?e.key&&!ModuleHeader.n
1avigationKeys.includes(e.key)&&(Dom.header.searchField.hasClass("hide-suggest")&&Dom.header.searchField.removeClass("hide-suggest"),ModuleHeader.showSearchSuggest(),ModuleHeader.getSearchSuggests()):(Dom.header.searchForm.removeClass("show-suggest"),ModuleHeader.handleEscPress(e))}),Dom.header.searchCategory.off("keydown").on("keydown",function(e){"Enter"===e.key&&(e.preventDefault(),Dom.header.searchCategory.click())}),Dom.header.extSearch.off("keydown").on("keydown",function(e){"Tab"===e.key&&!e.shiftKey&&Dom.header.searchForm.hasClass("show-suggest")&&(e.preventDefault(),ModuleHeader.destroySearchSuggest(),document.querySelector("li.home > a").focus())}),Dom.header.searchField.off("focus.suggest").on("focus.suggest",ModuleHeader.showSearchSuggest),Dom.header.searchCategory.off("focus.suggest").on("focus.suggest",ModuleHeader.showSearchSuggest),Dom.header.searchButton.off("focus.suggest").on("focus.suggest",ModuleHeader.showSearchSuggest),Dom.header.extSearchMobile.off("focus.suggest").on("focus.suggest",ModuleHeader.showSearchSuggest),Dom.header.extSearch.off("focus.suggest").on("focus.suggest",ModuleHeader.showSearchSuggest),Dom.header.searchField.off("change.suggests").on("change.suggests",ModuleHeader.getSearchSuggests),Dom.header.searchCategory.off("change.suggests").on("change.suggests",ModuleHeader.getSearchSuggests),Dom.document.off("keydown.suggest").on("keydown.suggest",ModuleHeader.navigateToSearchSuggest),Dom.header.searchCategory.enterKey(function(){Dom.header.searchForm.submit()}),ModuleHeader.initExtendedSearchLink())},handleEscPress:e=>{"Escape"===e.key&&(e.preventDefault(),Dom.header.searchField.addClass("hide-suggest"),Dom.header.searchField.focus())},initExtendedSearchLink:function(){Dom.header.find(".ext-search").off("click.extSearch").on("click.extSearch",function(e){e.preventDefault();var e=$(this).closest("a"),t=Dom.header.searchCategory.val(),e=e.attr("href");void 0===t&&(t="home"),location.href=e.replace(/home/,t)}),$("input[name='interpret']").on("change",function(){$("input[name='contributorId']").first().val("")}),$("input[name='interpret']").on("focusout",function(){var e,t=$(this),o=$("input[name='contributorId']");""==o.first().val()&&((e=o.next("ol").find("li:first"))[0]?(e=e.find("span").first(),o.first().val(e.data("cid")),t.val(e.text())):t.val(""))})},getSearchSuggests:function(){var e=Dom.header.searchField.val().trim(),t=Dom.header.searchCategory.val();return e===ModuleHeader.searchOldVal&&t===ModuleHeader.searchOldCat?(0===Dom.header.searchSuggest.find("li a").length&&ModuleHeader.doGetSearchSuggests(e),!0):(ModuleHeader.searchOldVal=e,ModuleHeader.searchOldCat=t,e.length<=2?(ModuleHeader.destroySearchSuggest(),!0):void ModuleHeader.doGetSearchSuggests(e))},doGetSearchSuggests:function(e){return Dom.header.searchSuggest.addClass("load"),Dom.header.searchProgress=Dom.header.searchSuggest.Progress("li"),Dom.header.searchField.hasClass("hide-suggest")&&(Dom.header.searchField.removeClass("hide-suggest"),ModuleHeader.showSearchSuggest()),Dom.header.searchForm.hasClass("show-suggest")&&"string"==typeof e&&""!==e?Ajax.get({xjxfun:"incSearch",xjxargs:["S"+e,"S"+Dom.header.searchCategory.val()]},function(e){if(parseInt(e.count)<=0)return ModuleHeader.destroySearchSuggest(),!1;Dom.header.searchSuggest.html(e.html).addClass("loaded"),Dom.header.searchField.attr("aria-expanded","true");e=Dom.header.searchSuggest.find("li a");return e.off("blur.suggest").on("blur.suggest",ModuleHeader.hideSearchSuggest),e.off("focus.suggest").on("focus.suggest",ModuleHeader.showSearchSuggest),e.off("keydown.suggest").on("keydown.suggest",ModuleHeader.navigateSearchSuggest),Dom.header.searchSuggest.off("click.searchLink",".search-link").on("click.searchLink",".search-link",ModuleBody.clickSearchLinks),!0},function(){ModuleHeader.destroySearchSuggest()},function(){}):(Dom.header.searchProgress.stop(),ModuleHeader.destroySearchSuggest()),!0},showSearchSuggest:function(){Dom.header.searchField.hasClass("hide-suggest")||Dom.header.searchForm.addClass("show-suggest"),Dom.header.searchForm.addClass("show-search-btn"),Dom.header.extSearchMobile.addClass("active"),Dom.header.addClass("room-for-extended-search")},destroySearchSuggest:function(){ModuleHeader.hideSearchSuggest(),Dom.header.searchSuggest.removeClass("load").removeClass("loaded").html(""),Dom.header.searchField.attr("aria-expanded","fal
1se");var e=Dom.header.searchSuggest.find("li a");e.off("blur.suggest"),e.off("focus.suggest"),e.off("keydown.suggest")},hideSearchSuggest:function(e){clearTimeout(ModuleHeader.searchSuggestHideTimeout),ModuleHeader.searchSuggestHideTimeout=setTimeout(function(){if($(document.activeElement).closest("form.search-form,.ext-search")[0])return!0;Dom.header.searchForm.removeClass("show-suggest"),Dom.header.removeClass("room-for-extended-search"),Dom.header.extSearchMobile.removeClass("active")},25)},navigateSearchSuggest:function(e){var t,o;return!Dom.header.searchForm.hasClass("show-suggest")||("Tab"===e.key||"Escape"===e.key?(Dom.header.searchForm.removeClass("show-suggest"),e.preventDefault(),("Escape"===e.key?(Dom.header.searchField.addClass("hide-suggest"),Dom.header.searchField):Dom.header.searchCategory).focus(),!1):!(t=$(document.activeElement)).parents("form.search-form")[0]||!(t=t.parent("li"))[0]||("ArrowUp"===e.key?(e.preventDefault(),((o=t.prev("li"))[0]?o.children("a"):Dom.header.searchField).trigger("focus"),!1):"ArrowDown"===e.key?(e.preventDefault(),((o=t.next("li"))[0]?o:Dom.header.searchSuggest.children("li").first()).children("a").trigger("focus"),!1):void 0))},navigateToSearchSuggest:function(e){return!Dom.header.searchForm.hasClass("show-suggest")||("Tab"!==e.key&&"Escape"!==e.key?"ArrowUp"===e.key?(e.preventDefault(),Dom.header.searchSuggest.children("li").last().children("a").trigger("focus"),!1):"ArrowDown"===e.key?(e.preventDefault(),Dom.header.searchSuggest.children("li").first().children("a").trigger("focus"),!1):void 0:(Dom.header.searchForm.removeClass("show-suggest"),Dom.header.searchField.addClass("hide-suggest"),void ModuleHeader.handleEscPress(e)))},initHashBehavior:function(){window.location.hash&&(ModuleHeader.scrolledToHash=window.location.hash,Respond.onLoad("windowHash",function(){var e=$
1(window.location.hash);if(!e[0]||e.data("no-auto-scroll"))return!0;var t=e.closest("details");0<t.length&&t.attr("open",""),ModuleHeader.clearHash(),ModuleHeader.scrollTo(e)})),Dom.body.on("click.anker",'div.page a[href*="#"]',function(e){var t=window.location.href.split("#"),o=this.href.split("#");return t[0]!=o[0]||!(t=$(this.hash))[0]||(e.preventDefault(),ModuleHeader.clearHash(),void ModuleHeader.scrollTo(t))})},clearHash:function(){history.replaceState(null,null,location.href.replace(/#.*$/,""))},scrollToHref:function(e,t){e=$(e);if(void 0!==e.attr("href")&&""!==e.attr("href")&&"#"!==e.attr("href"))var o=e.attr("href");else{if(void 0===e.data("href")||""===e.data("href"))return!0;o=e.data("href")}e=$(o).offset().top;return Dom.header.hasClass("is-fixed")&&!Dom.body.hasClass("no-scroll")&&(e-=ModuleHeader.fixedHeaderHeight),$(null==t?"html, body":t).animate({scrollTop:e},900),!0},scrollTo:function(e,t){var e=isNaN(e)?$(e).offset().top:e,o=51;return respondMinOnly(740)&&(o=33),Dom.header.hasClass("is-fixed")&&!Dom.body.hasClass("no-scroll")&&(e-Respond.scrollDirectionBuffer>Dom.window.scrollTop()?Dom.body.hasClass("no-header-resize")?e=e-ModuleHeader.fixedSmallHeaderHeight-o:e-=ModuleHeader.fixedSmallHeaderHeight:Dom.body.hasClass("no-header-resize")?e=e-ModuleHeader.fixedSmallHeaderHeight-o:e-=ModuleHeader.fixedHeaderHeight),$(null==t?"html, body":t).animate({scrollTop:e},600),!0},scrollToIfNotVisible:function(e,t){e=isNaN(e)?$(e).offset().top:e;return Dom.header.hasClass("is-fixed")&&!Dom.body.hasClass("no-scroll")&&(e-Respond.scrollDirectionBuffer>Dom.window.scrollTop()?e-=ModuleHeader.fixedSmallHeaderHeight:e-=ModuleHeader.fixedHeaderHeight),!(e>=Dom.window.scrollTop()&&e<=Dom.window.scrollTop()+Respond.height||($(null==t?"html, body":t).animate({scrollTop:e},900),0))}});R.me("ModuleHeader",!1);let ModuleHeroshot={init(){var e=document.querySelectorAll(".heroshot");0!==e.length&&e.forEach(e=>{var t=new Sliderbox(e,ModuleBody.reducedMotion,".slides",".slide");t.onHideElement=e=>{e&&e.setAttribute("tabindex","-1")},t.onShowElement=e=>{e&&e.setAttribute("tabindex","0")},t.onScrollFn(this._createScrollHandler()),this._setupThumbnailPager(e,t),this._setupKeyboardPager(e,t)})},_createScrollHandler(){return(e,t)=>{let o=0;t.forEach((e,t)=>{e.classList.contains("shown")&&(o=t)}),e.querySelectorAll(".pager-container").forEach(e=>{e.querySelectorAll(".mobile-pager-item.slider-navigation--item").forEach((e,t)=>{t===o?this._togglePagerButton(e,"on"):this._togglePagerButton(e,"off")})})}},_setupThumbnailPager(o,n){o.querySelectorAll(".slider-navigation--item").forEach(t=>{t.addEventListener("pointerup",()=>{var e=parseInt(t.dataset.idx);this._activatePagerAt(o,e),n.scrollToSlide(e)},{passive:!0})})},_activatePagerAt(e,o){e.querySelectorAll(".pager-container").forEach(e=>{e.querySelectorAll(".slider-navigation--item").forEach((e,t)=>{t===o?e.classList.add("active"):e.classList.remove("active")})})},_setupKeyboardPager(a,s){let l=a.querySelector('.hero-pager[role="tablist"]');if(l){let r=l.querySelectorAll('[role="tab"]').length;l.addEventListener("keydown",o=>{let n=l.querySelector('[role="tab"].active'),i=parseInt(n?.dataset.idx);(e=>{let t;switch(e=e.toLowerCase()){case"arrowright":t=i+1<r?i+1:0;break;case"arrowleft":t=0<=i-1?i-1:r-1;break;case"home":t=0;break;case"end":t=s.slidesCount-1;break;case"enter":o.preventDefault(),o.stopPropagation(),o.stopImmediatePropagation();default:return!1}e=l.querySelector(`[role="tab"][data-idx="${t}"]`);return e&&(this._togglePagerButton(n,"off"),this._togglePagerButton(e,"on"),this._syncThumbnailPager(a,t),e.focus()),s.scrollToSlide(t),!0})(o.key)&&(o.preventDefault(),o.stopPropagation())})}},_togglePagerButton(e,t){switch(t.toLowerCase()){case"on":e.classList.add("active"),e.classList.replace("fa-circle-thin","fa-circle"),e.setAttribute("tabindex","0"),e.setAttribute("aria-selected","true");break;case"off":e.classList.remove("active"),e.classList.replace("fa-circle","fa-circle-thin"),e.setAttribute("tabindex","-1"),e.setAttribute("aria-selected","false")}},_syncThumbnailPager(e,t){e.querySelectorAll("aside .slider-navigation--item").forEach(e
1=>{parseInt(e.dataset.idx)===t?e.classList.toggle("active",!0):e.classList.toggle("active",!1)})}};"object"==typeof R?R.me("ModuleHeroshot",!1):"object"==typeof module&&(module.exports=ModuleHeroshot);var ModuleHitlist={galleryMinMobileWidth:629,galleryMinWidth:740,galleryMaxWidth:960,initialized:!1,init:function(){if(Dom.searchresult=$("div.searchresult"),!Dom.searchresult[0])return!1;Dom.searchresult.cardbox=Dom.searchresult.find("main section.cardbox"),Dom.searchresult.filterOpt=Dom.searchresult.find("form.filter"),Dom.searchresult.OrderBy=Dom.searchresult.filterOpt.find("label.order-by"),Dom.searchresult.ToggleFilter=Dom.searchresult.filterOpt.find(".toggle-filters button").first(),Dom.searchresult.View=Dom.searchresult.filterOpt.find("span.view"),Dom.searchresult.Pagination=Dom.searchresult.filterOpt.find("span.pagination"),ModuleHitlist.toggleCardboxColumnsByViewport(),Respond.onResize("searchCardboxColumns",ModuleHitlist.toggleCardboxColumnsByViewport),Dom.body.off("click.afterMiniCartAnimation").on("click.afterMiniCartAnimation",".to-cart",ModuleHitlist.afterMiniCartAnimation),ModuleHitlist.initCartForm(),ModuleHitlist.initFilter(),ModuleHitlist.initialized||(ModuleHitlist.initChips(),ModuleHitlist.initPriceSlider(),ModuleHitlist.initialized=!0)},initSlider:function(){var e,t,o,n=document.getElementById("slider");null==n||n.classList.contains("noUi-target")||(o=n.getAttribute("data-start"),e=n.getAttribute("data-stop"),o=Number.parseInt(Math.floor(o).toString(),10),e=Number.parseInt(Math.ceil(e).toString(),10),t={from:function(e){return Math.round(e)},to:function(e){return Math.round(e)}},o=noUiSlider.create(n,{start:[o,e],connect:!0,range:ModuleHitlist.getRangeForSlider(o,e),format:t}),n.classList.contains("filtered")&&ModuleHitlist.addPriceChip(n),o.on("slide",function(e){var t=document.getElementById("slider").noUiSlider.get();document.getElementById("priceFromVis").value=t[0],document.getElementById("priceToVis").value=t[1],document.getElementById("priceFrom").value=t[0],document.getElementById("priceTo").value=t[1],document.getElementById("applyPriceFilter").removeAttribute("disabled")}),document.getElementById("priceFrom").addEventListener("change",function(e){document.getElementById("slider").noUiSlider.set([this.value,null]),document.getElementById("applyPriceFilter").removeAttribute("disabled")}),document.getElementById("priceTo").addEventListener("change",function(e){document.getElementById("slider").noUiSlider.set([null,this.value]),document.getElementById("applyPriceFilter").removeAttribute("disabled")}))},addPriceChip:function(e){var t=e.dataset.start,e=e.dataset.stop,o=Number.parseInt(Math.floor(parseFloat(t)).toString(),10),n=Number.parseInt(Math.ceil(parseFloat(e)).toString(),10);ModuleHitlist.chips.addRange("price-slider-0","pricemin","pricemax",o+"-"+n+"€",t,e,function(e){setTimeout(function(){e.querySelector("button").classList.add("loading")},250),document.querySelectorAll(".remove-option").forEach(function(e){e.classList.add("disabled"),e.disabled=!0}),document.getElementById("priceFrom").value="removeFilter",document.getElementById("priceTo").value="removeFilter",document.getElementById("priceTo").closest("form").submit()})},getRangeForSlider:function(e,t){return{min:e,max:t}},initChips:function(){document.querySelectorAll(".remove-option").forEach(function(e){e.addEventListener("click",function(e){e.target.classList.add("loading")})})},initFilter:function(){Dom.searchresult.OrderBy.children("select").off("change.order").on("change.order",ModuleHitlist.changeOrderBy),Dom.searchresult.View.children("button").off("click.filterView").on("click.filterView",ModuleHitlist.changeView),Dom.searchresult.ToggleFilter.off("click.toggleFilter").on("click.toggleFilter",ModuleHitlist.toggleFilter),ModuleHitlist.hideViewOptions(),Respond.onResize("filterViewOptions",ModuleHitlist.hideViewOptions),ModuleHitlist.toggleOrderByText(),Respond.onResize("filterToggleOrderByText",ModuleHitlist.toggleOrderByText),Dom.searchresult.cardbox.hasClass("one-column")?(Dom.searchresult.View.children("button.list").addClass("active"),Dom.searchresult.View.children("button.gallery").removeClass("active")):(Dom.searchresult.View.children("button.list").removeClass("active"),Dom.searchresult.View.children("button.gallery").addClass("active"));var e=document.querySelector("button.list"),e=(null!=e&&e.addEventListener("keydown",e=>{"Enter"!==e.key&&"Space"!==e.key&&" "!==e.key||(e.preventDefault(),e.target.classList.contains("active"))||this.changeView(e)}),document.querySelector("button.gallery"));null!=e&&e.addEventListener("keydown",e=>{"Enter"!==e.key&&"Space"!==e.key&&" "!==e.key||(e.preventDefault(),e.target.classList.contains("active"))||this.changeView(e)})},toggleFilter:function(){Dom.body.find(".comboboxes-form").toggleClass("shown")}
1,changeOrderBy:function(){var e=$(this),t=e.data("switches")||"pd_orderby",e=e.val();Dom.searchresult.OrderBy.find("input[name="+t+"]").val(e),Dom.searchresult.filterOpt.submit()},changeView:function(e){e.preventDefault();let t=$(e.target);"list"!==t.data("view")&&"gallery"!==t.data("view")&&"A"!==$.ucfirst(t.prop("tagName"))&&(t=t.parents("button").first()),Dom.searchresult.View.children("button").removeClass("active").filter("."+t.data("view")).addClass("active"),"list"===t.data("view")?Dom.searchresult.cardbox.addClass("one-column").removeClass("two-columns"):Dom.searchresult.cardbox.addClass("two-columns").removeClass("one-column");var e=new XMLHttpRequest,o="/jpcng/classic/sessionproperty?task=hitlistFilterView&bar="+t.data("view");return e.open("GET",o),e.send(),ModuleBody.setCardBoxes(),ModuleInfiniteScr.init(!0),!0},hideViewOptions:function(){setTimeout(function(){respondMinMax(ModuleHitlist.galleryMinWidth,ModuleHitlist.galleryMaxWidth)||respondMaxOnly(ModuleHitlist.galleryMinMobileWidth)?Dom.searchresult.View.addClass("hide"):Dom.searchresult.View.removeClass("hide")},15)},toggleOrderByText:function(){Dom.searchresult.OrderBy.children("select").find("option").first().html(function(){return respondMinOnly(380)?$(this).data("label-original"):$(this).data("label-mobile")})},toggleCardboxColumnsByViewport:function(){respondMinMax(ModuleHitlist.galleryMinWidth,ModuleHitlist.galleryMaxWidth)?Dom.searchresult.cardbox.removeClass("two-columns"):Dom.searchresult.cardbox.hasClass("one-column")||Dom.searchresult.cardbox.addClass("two-columns")},hitlistToCart:function(e){var t=e.parents(".card").eq(0),o=new CartStorage,n=e.data("hnum"),i=e.find("input[name=amount]").val(),r=e.data("price"),i=i||e.find("select[name=amount]").val();void 0!==Dom.notepad&&"object"==typeof Dom.notepad.items&&!(i=!(i=i||Dom.notepad.items.find("select[name=amount-"+n+"]").val())&&Dom.notepad&&Dom.notepad.items&&Dom.notepad.items[0]?Dom.notepad.items.find("input[name=amount-"+n+"]").val():i)&&Dom.notepad&&Dom.notepad.items&&Dom.notepad.items[0]&&(i=Dom.notepad.items.find("select[name=amount-"+n+"]").val()),o.setAndWrite(n,i=i||1,r),ModuleBody.setMiniCart(),e.off("submit"),t.addClass("is-in-cart")},initCartForm:function(){var e,t;return void 0!==Dom.searchresult.cardbox&&!!(e=Dom.searchresult.cardbox.find("form.cart-form"))[0]&&(t=(new CartStorage).hnums(),e.filter(function(){var e=$
1(this);return!(0<=t.indexOf(e.data("hnum")+"")&&(e.parents(".card").addClass("is-in-cart"),1))}).off("submit.hitlistToCart").on("submit.hitlistToCart",function(e){var t=$(this);ModuleHitlist.hitlistToCart(t),e.preventDefault()}),!0)},afterMiniCartAnimation:function(){$(this).is(":visible")&&setTimeout(function(){ModuleBody.setCardBoxes()},20)},initPriceSlider:function(){var e;document.querySelector("nav.sub-nav.search-filter")&&(e=document.querySelector("#filter-combo--selected"),ModuleHitlist.chips=new Chips(e,document.getElementById("filter-combo--submit")),ModuleHitlist.initSlider(),e=document.querySelector("#salefilter"))&&e.addEventListener("change",function(){document.querySelector("button.applyBtn").removeAttribute("disabled")})}};function InfiniteScrolling(){this.scrollThresholdTop=90,this.scrollNudgeTop=10,this.scrollThresholdBottom=null,this.windowScrollMarker=null,this.loading=!1,this.stopClick=!1,this.handleAfterLoad=null,this.enablePrefetch=!1,this.prefetchCall=null,this.oldUrl=null,this.loadedCount=0,this.retried=!1}R.me("ModuleHitlist",!1),InfiniteScrolling.prototype.init=function(e){Dom.infiniteScrolling=$(".infinite-scrolling"),Dom.infiniteScrolling[0]&&(this.currentPage=parseInt((location.href.match(/page=([\d]+)/)||["","1"])[1]),this.startPage=this.currentPage,this.lastPageLoaded=this.currentPage,this.maxPage=parseInt(Dom.infiniteScrolling.data("max-page")),this.updateScrollThreshold(),!e&&!location.hash&&1<this.startPage&&window.scrollTo(0,this.scrollThresholdTop+this.scrollNudgeTop),this.initContainer(),!e&&self.enablePrefetch&&self.prefetch(self.currentPage+1),this.initStatusRegion())},InfiniteScrolling.prototype.initStatusRegion=function(){var e;document.getElementById("infinite-scrolling-status")||((e=document.createElement("div")).classList.add("visually-hidden"),e.setAttribute("id","infinite-scrolling-status"),e.setAttribute("role","status"),e.setAttribute("aria-live","polite"),e.setAttribute("aria-relevant","additions text"),document.body.prepend(e))},InfiniteScrolling.prototype.announceStartLoading=function(){var t=document.getElementById("infinite-scrolling-status"),o=document.querySelector(".infinite-scrolling");if(t&&o){let e="Weitere Artikel werden geladen";"en"===document.body.dataset.lang&&(e="More articles are loaded"),t.innerHTML=e,o.setAttribute("aria-busy","true")}},InfiniteScrolling.prototype.announceEndLoading=function(){var t=document.getElementById("infinite-scrolling-status"),o=document.querySelector(".infinite-scrolling");if(t&&o){let e="Weitere Artikel wurden geladen";"en"===document.body.dataset.lang&&(e="More articles have been loaded"),t.innerHTML=e,o.removeAttribute("aria-busy")}},InfiniteScrolling.prototype.initContainer=function(){var e,t=0,o=0,r=this;function a(){var e=Dom.infiniteScrolling.Progress(null,!0);return r.load(1,e)}function s(){var e=Dom.body.find("form.filter").eq(0).Progress("li,div",!0);return r.load(-1,e)}function l(){return r.currentPage<r.maxPage&&r.currentPage+1>r.startPage}function d(){return 1<r.currentPage&&r.currentPage-1<r.startPage}function c(){return 4===r.loadedCount}function u(){r.loadedCount++}function f(e){var t,o;$(".infinite--load-more")[0]||(t='<span class="fa fa-chevron-down" aria-hidden="true"></span>',o="de"===$("body").data("lang")?"Weitere Treffer für Ihre Suche anzeigen":"Show more results for your search",o=0<Dom.infiniteScrolling.find("div.card").length?'<div class="card infinite--load-more"><button class="btn big infinite-load-more--btn">'+t+'<span class="infinite-load-more--txt">'+o+"</span>"+t+"</button></div>":'<li class="card infinite--load-more"><button class="btn big infinite-load-more--btn">'+t+'<span class="infinite-load-more--txt">'+o+"</span>"+t+"</button></li>",$(".infinite--load-more").remove(),d()&&Dom.infiniteScrolling.find("li.card,div.card").eq(0).before($(o.replace(/chevron-down/g,"chevron-up"))),l()&&Dom.infiniteScrolling.find("li.card,div.card").last().after($(o)),$(".infinite-load-more--btn").on("click.loadMore",function(){$(".infinite--load-more").remove(),u(),e()}))}var h=Dom.infiniteScrolling.data("bot");function n(){var e,n=Dom.window.scrollTop(),i=-1;"0"==h&&(0<(e=n)-o&&e>=r.scrollThresholdBottom&&l()&&(c()?f(a):a()&&u()),(e=n)-o<0)&&e<=r.scrollThresholdTop&&d()&&(c()?f(s):s()&&u()),o=n,Math.abs(n-t)>r.windowScrollMarker&&(t=n,Dom.infiniteScrolling.find(".cards-page").each(function(){var e,t=$(this),o=parseInt(t.data("page"));i<o&&(e=n,parseInt(t.offset().top)<e+Dom.window.height()/2)&&(i=o)}),0<i)&&r.setCurrentPage(i)}$(window).off("scroll.infinite").on("scroll.infinite",function(){clearTimeout(void 0),setTimeout(function(){r.loading?r.handleAfterLoad=n:n()},20)}),r.initLinks(Dom.infiniteScrolling),ModuleHeader.scrolledToHash&&!r.alreadyScrolledToHash&&(e=ModuleHeader.scrolledToHash.match(/([\d]+)/),r.alreadyScrolledToHash=!0,e)&&(r.historyReplace(location.href.replace(/#.*$/,"")),(e=$("#product-"+e[1]))[0])&&ModuleHeader.scrollTo(e)},InfiniteScrolling.prototype.displayRetryBtn=function(e){var t,o;$(".infinite--retry")[0]||(t="de"===$("body").data("lang")?(o="Beim Laden der gesuchten Artikel ist ein Fehler aufgetreten.","Erneut versuchen"):(o="An error occurred while loading the items you were looking for.","Try again"),o=0<Dom.infiniteScrolling.find("div.card").length?'<div class="card infinite--load-more infinite--retry"><div class="msg warn">'+o+'<button class="btn big infinite-load-more--btn infinite-retry--btn"><span class="infinite-load-more--txt">'+t+"</span></button></div></div>":'<li class="card infinite--load-more infinite--retry"><div class="msg warn">'+o+'<button class="btn big infinite-load-more--btn infinite-retry--btn"><span class="infinite-load-more--txt">'+t+"</span></button></div></li>",Dom.infiniteScrolling.find("li.card,div.card").eq(0).before($(o.replace(/chevron-down/g,"chevron-up"))),Dom.infiniteScrolling.find("li.card,div.card").last().after($(o)),$(".infinite-retry--btn").on("click.retry",function(){$(".infinite--retry").remove(),e()}))},InfiniteScrolling.prototype.setCurrentPage=function(e){this.currentPage=e;let t=decodeURIComponent($(".card-page-url-"+e).data("page-url"));t=t.replaceAll("&amp;","&"),null===this.oldUrl&&(this.oldUrl=location.pathname+location.search),this.oldUrl!==t&&(t=(this.oldUrl=t)||this.buildUrl(e),this.historyReplace(t))},InfiniteScrolling.prototype.initLinks=function(e){var o=this;
1e.find("li.card,div.card").off("click.infinite","a").on("click.infinite","a",function(e){if(!(e=e||window.event).ctrlKey&&!e.shiftKey&&!e.metaKey){if(1==o.stopClick)return!0;e.preventDefault();var t=$(e.target);(t=t.is("a")?t:t.parents("a").eq(0)).is("a")||(t=$(e.target).find("a")),o.loading=!0,o.pushUrl.call(o,t),location.href=t.attr("href")}})},InfiniteScrolling.prototype.pushUrl=function(e){var e=e.parents(".card").eq(0),t=(t=e.data("page"))||e.parents(".cards-page").eq(0).data("page"),t=this.buildUrl(t)+"#"+e.attr("id");this.historyReplace(t)},InfiniteScrolling.prototype.updateScrollThreshold=function(){var e=Dom.window.height(),t=Dom.infiniteScrolling.find("li.card:last,div.card:last").height();this.scrollThresholdBottom=.9*(Dom.document.height()-e-4*t),this.windowScrollMarker=.3*e},InfiniteScrolling.prototype.prefetch=function(e){var t=this;null!==this.prefetchCall&&this.prefetchCall.abort&&(t.prefetchCall.abort(),t.prefetchCall=null),e==this.currentPage||e<=0||(this.prefetchCall=$.post(this.buildUrl(e),{infinite_scrolling:1,prefetch:1}).then(function(){t.prefetchCall=null}))},InfiniteScrolling.prototype.load=function(n,i){var e,r,a=Math.max(parseInt(this.currentPage+n),1),s=this;return null!==this.prefetchCall&&this.prefetchCall.abort&&(s.prefetchCall.abort(),s.prefetchCall=null),this.lastPageLoaded===a||a<=0?(i.stop(),!1):(e=this.buildUrl(a),this.loading=!0,this.announceStartLoading(),r=function(){$(".progress.active").hide(),s.loading=!1;var e=function(){$(".progress.active").show(),this.retried=!0,this.load.call(this,n,i)}.bind(s);s.retried?s.displayRetryBtn(e):setTimeout(e,2e3)},$.ajax({url:e,data:{infinite_scrolling:1},type:"post",success:function(e){s.enablePrefetch&&s.prefetch(a+n);var t,o,e=s.getNewCardsFromRes(e);0===e.length?r():(s.retried=!1,$(".infinite--retry").remove(),n<1?(s.trigger("addElementsStart.standard",e),t=Dom.infiniteScrolling.find("li.card-new,div.card-new"),o=Dom.infiniteScrolling.find("li.card,div.card").not(".card-new").eq(0),window.scrollTo(0,o.offset().top-s.scrollThresholdTop)):(s.trigger("addElementsEnd.standard",e),t=Dom.infiniteScrolling.find("li.card-new,div.card-new")),o=t.parent(),Main.initBookAvailability(),ModuleHitlist.initCartForm(),Imagehandler.init(o.get(0)),ModuleHitlist.init(),ModuleNotepad.initNotepadInListLayer(),void 0!==ModuleNotepad.itemToCart&&ModuleNotepad.itemToCart(),void 0!==ModuleNotepad.deleteItem&&ModuleNotepad.deleteItem(),void 0!==ModuleNotepad.unDeleteItem&&ModuleNotepad.unDeleteItem(),"undefined"!=typeof ModuleNotepadArticle&&ModuleNotepadArticle.initPartial(o),ModuleEcourier.init(),ModuleBody.initHelpLayer(),s.initLinks(o),s.lastPageLoaded=parseInt(t.data("page")),s.updateScrollThreshold(),i.stop(),s.loading=!1,window.dispatchEvent(new CustomEvent("infinitescroll",{detail:s.lastPageLoaded})),t.removeClass("card-new"),s.handleAfterLoad&&(s.handleAfterLoad(),s.handleAfterLoad=null))},error:r,complete:this.announceEndLoading}),!0)},InfiniteScrolling.prototype.getNewCardsFromRes=function(e){return $(e).find(".card")},InfiniteScrolling.prototype.buildUrl=function(e){var t,o=location.href;return 1===e?t=o.replace(/#.*$/,"").replace(/\/ff\//,"/s/").replace(/page=[\d]+&*/,""):(t=o.replace(/#.*$/,"").replace(/\/s\//,"/ff/").replace(/page=[\d]+(&*)/,"page="+e+"$1")).indexOf("page=")<0&&(t=t+(t.match(/\?/)?"&":"?")+"page="+e),t=t.replace(/[\?&]$/,"")},InfiniteScrolling.prototype.historyReplace=function(e){history.replaceState(null,null,e)},ModuleInfiniteScr=new InfiniteScrolling,extendTriggerBehavior(ModuleInfiniteScr),ModuleInfiniteScr.on("addElementsStart.standard",function(e){Dom.infiniteScrolling.find("li.card,div.card").eq(0).before(e),Respond.doOnAddContent()}),ModuleInfiniteScr.on("addElementsEnd.standard",function(e){Dom.infiniteScrolling.find("li.card,div.card").last().after(e),Respond.doOnAddContent()}),R.me("ModuleInfiniteScrolling",!1);var ModuleMoinai={initialContenHeight:null,load:null,autoopen:!1,interacted:!1,opened:!1,closed:!1,init:function(){ModuleMoinai.initCookieConsentChangeListener(),document.getElementById("chatbot-place")?(ModuleMoinai.pushAboveCookieConsent(),Respond.onResize("moinai",ModuleMoinai.pushAboveCookieConsent),ModuleMoinai.initRequestContentButton()):ModuleMoinai.addMoinAiEvents()},pushAboveCookieConsent:function(){var e,t,o=document.getElementById("#cookieconsent-container.cookieconsent--container cookieconsent-container--simple");o&&(o=o.getClientRects())[0]&&(e=document.getElementById("chatbot-place"),t=document.getElementById("moin-ai-container"),e&&(e.style.bottom=o[0].height-20+"px"),t&&window.knowhere.api.setWidgetPosition(o[0].height,0,"px",!0),e=document.querySelector(".chatbot-consent-box"))&&(t=e.getBoundingClientRect(),null===ModuleMoinai.initialContenHeight&&0<t.height&&(ModuleMoinai.initialContenHeight=t.height),0<ModuleMoinai.initialContenHeight)&&(e.style.maxHeight=Math.min(ModuleMoinai.initialContenHeight,t.height+t.y-20)+"px")},trackEvent:function(e){var t={};t.source="moinai_"+encodeURIComponent(e),trackJSEvent(t)},initRequestContentButton:function(){loadConsent=function(){var t,o;null===ModuleMoinai.load&&(t=document.querySelector(".chatbot-consent-content"))&&(t.setAttribute("aria-busy","true"),o=function(){var e;t.setAttribute("aria-busy","false"),200!==this.status?(ModuleMoinai.load.removeEventListener("load",o),ModuleMoinai.load=null,$(".chatbot-consent-close").trigger("click")):(t.innerHTML=this.responseText,t.querySelectorAll("b").forEach(e
1=>{e.setAttribute("role","heading"),e.setAttribute("aria-level","3")}),ModuleMoinai.pushAboveCookieConsent(),e=this.getResponseHeader("X-Ids"),document.querySelector(".chatbot-consent-box .button-container").classList.remove("content-not-loaded"),(document.getElementById("moinai-consent-btn").dataset.ids=e).split(",").forEach(function(e){e=document.querySelector('input[type="checkbox"][name="ids[]"][value="'+e+'"]');e&&e.classList.add("check-on-bot-consent")}))},ModuleMoinai.trackEvent("ConsentLoad"),ModuleMoinai.load=new XMLHttpRequest,ModuleMoinai.load.open("GET","/cookieconsent/getPurposeByName?name=MOINAI"),ModuleMoinai.load.addEventListener("load",o),ModuleMoinai.load.send())},$("#moinai-consent-btn").off("click.consent").on("click.consent",function(e){var t;$("#moinai-consent-btn").hasClass("loading")?e.preventDefault():(ModuleMoinai.trackEvent("ConsentGiven"),$("#moinai-consent-btn").addClass("loading").attr("aria-busy","true"),e=new XMLHttpRequest,(t=new FormData).set("ids[]",document.getElementById("moinai-consent-btn").dataset.ids.split(",")[0]),t.set("btnid","cb"),t.set("noredirect",1),e.addEventListener("load",function(){ModuleMoinai.addMoinAi();var e,t=document.querySelector(".check-on-bot-consent");t&&(e=new Event("change"),t.setAttribute("checked","1"),t.dispatchEvent(e))}),e.open("POST","/cookieconsent/save"),e.send(t))}),$(".knw_widget_button").off("click.openchat").on("click.openchat",function(e){e.preventDefault(),$(".knw_widget_button_wrapper").hide(),$(".chatbot-request-consent").addClass("closed"),$(".chatbot-consent-box").addClass("opened").get(0).showModal(),ModuleMoinai.autoopen=!0,loadConsent()}),$(".chatbot-consent-close").off("click.closeChatConsent").on("click.closeChatConsent",function(e){$(".chatbot-consent-box").get(0).close()}),$(".chatbot-consent-box").off("close").on("close",()=>{$(".chatbot-request-consent").removeClass("closed"),$(".chatbot-consent-box").removeClass("opened"),ModuleMoinai.trackEvent("ConsentClosed"),ModuleMoinai.autoopen=!1,$(".knw_widget_button_wrapper").show().find("button").focus()})},checkConsent:function(){try{JSON.parse(decode64(readCookie("cookieconsent").split(".")[1])).optinNames.match(/#MOINAI#/)?ModuleMoinai.addMoinAi():ModuleMoinai.removeMoinAi()}catch(e){}ModuleMoinai.pushAboveCookieConsent()},initCookieConsentChangeListener:function(){window.removeEventListener("cookieconsent",ModuleMoinai.checkConsent),window.addEventListener("cookieconsent",ModuleMoinai.checkConsent)},addMoinAiEvents:function(){window.chatWidgetReady=function(){ModuleMoinai.pushAboveCookieConsent(),window.knowhere.api.on("widget.interaction",function(e){ModuleMoinai.handleWidgetInteraction(e)}),window.knowhere.api.on("user.click",function(e){ModuleMoinai.handleWidgetClick(e)}),window.knowhere.api.on("user.input",function(e){ModuleMoinai.handleWidgetInput(e)});var e=readCookie("jwt");"string"==typeof e?window.knowhere.api.addContext({jwt:e}):window.knowhere.api.addContext({jwt:"logout"})}},addMoinAi:function(){var e=document.createElement("script"),t=document.getElementById("chatbot-place");e.setAttribute("type","text/javascript"),e.setAttribute("id","moinloader"),e.setAttribute("src",t.dataset.scriptSrc),ModuleMoinai.autoopen&&(e.dataset.forceOpen=!0),document.body.append(e),t.remove(),ModuleMoinai.addMoinAiEvents()},handleWidgetInteraction:function(e){if(!ModuleMoinai.closed){var t="",o="";if((t=void 0!==e.message&&(void 0!==e.message.source&&(o=e.message.source),void 0!==e.message.action)?e.message.action:t).match(/open/))ModuleMoinai.opened=!0,t="open";else if(t.match(/close/))t="teaser"===o?"teaser_close":"close",ModuleMoinai.closed=!0;else{if("teaser"!==o)return;t="teaser_interaction",ModuleMoinai.opened=!0}this.trackEvent(t)}},handleWidgetClick:function(e){ModuleMoinai.interacted||(ModuleMoinai.interacted=!0,this.trackEvent("interaction"))},handleWidgetInput:function(e){ModuleMoinai.interacted||(ModuleMoinai.interacted=!0,this.trackEvent("interaction"))},removeMoinAi:function(){"object"==typeof window.knowhere.api&&window.knowhere.api.close();var e=document.querySelector("#moin-ai-container");e&&e.remove()}},ModuleNav=("object"==typeof R?R.me("ModuleMoinai",!1):"object"==typeof module&&(module.exports=ModuleMoinai),{mainNav:{},savedMainNav:{},savedSubNav:{},mobileSubNavOldScrollPos:0,mobileInitialized:!1,mobileWidthLimit:740,init:function(){Dom.header.mobileNav=Dom.header.find("div.mobile-nav, button.mobile-nav"),Dom.header.mobileSubNav=Dom.header.find("div.mobile-sub-nav, button.mobile-sub-nav"),ModuleNav.savedMainNav=$("body > nav.main-nav").clone(),ModuleNav.savedSubNav=$("main + nav.sub-nav").clone(),ModuleNav.initNavs()},initMMenu:function(e){var t=document.querySelector("html").getAttribute("lang")??"de";ModuleNav.mmenu=new Mmenu(e,{setSelected:{hover:!0,parent:!0,current:!1},slidingSubmenus:!1,offCanvas:{position:"left-front",clone:!0},menu:{insertMethod:"prepend",insertSelector:"body > nav.main-nav"},navbars:[{content:["prev","breadcrumbs","close"],breadcrumbs:{removeFirst:!0}}],classNames:{nopanel:".pseudo-link",nolistview:".pseudo-link"}},{language:t,offCanvas:{screenReader:{closeMenu:"de"===t?"Menü schließen":"close menu",openMenu:"de"===t?"Menü öffnen":"open menu"}}}),ModuleNav.drawer=ModuleNav.mmenu.API},breadcrumbOpenMenu:function(){var e,t,o,n;!Dom.body.hasClass("cat-books")||(n=Dom.body.find(".breadcrumb")).length<=0||(e=n.find("ol").first(),t=n.find(".wrapper").first(),e.length<=0)||t.length<=0||((o=e.get(0)).scrollLeft=2e4,0<o.scrollLeft&&(t.addClass("scroll-indicator"),e.off("scroll").on("scroll",function(){o.scrollLeft<=0?t.removeClass("scroll-indicator"):t.addClass("scroll-indicator")}
1)),(n=e.find(".mobile-nav").first()).length<=0)||n.off("click").on("click",ModuleNav.showMmenu)},initNavs:function(){if(respondMinOnly(ModuleNav.mobileWidthLimit))$("body > nav.main-nav").appendTo(Dom.header.find("div.wrapper"));else{if(ModuleNav.mobileInitialized)return;Dom.header.mobileNav.off("click").on("click",ModuleNav.showMmenu),ModuleNav.breadcrumbOpenMenu();var e=$("body > nav.main-nav"),t=$("main + nav.sub-nav").not(".search-filter").clone().find("ul").first();if(0===e.length)return;Dom.body.hasClass("cat-books")?ModuleNav.prepareMobileBooksNav(e,t):(Dom.body.hasClass("page-myaccount"),ModuleNav.prepareMobileStandardNav(e,t)),e.find("jpc-disclosure-button, jpc-disclosure-button-sidebarmenu").each((e,t)=>{$(t).before($(`<span class="${t.classList}">${t.innerText}</span>`)),t.setAttribute("hidden",!0)}),ModuleNav.initMMenu(e.get(0)),document.querySelectorAll(".mm-ocd").forEach(e=>{e.previousSibling&&8===e.previousSibling.nodeType&&e.previousSibling.remove(),e.remove()}),ModuleNav.mainNav=e,$("main + nav.sub-nav").not(".search-filter").remove(),e.find("ul>li").each(function(e,t){for(var o=0;o<t.children.length;o++)if(t.children[o].matches("ul:not(.no-jsp)")){t.classList.add("with-sub");break}}),document.querySelectorAll("li.booknav[data-param]").forEach(e=>{e=e.querySelector("span.mm-listitem__text");e&&(e.innerHTML=`<jpc-pseudo-link-booknav class="pseudo-link" title="${e.innerText.trim()}"
2                role="link" tabindex="0">${e.innerHTML.trim()}</jpc-pseudo-link-booknav>`)}),document.querySelectorAll("ul[hidden]").forEach(e=>{e.removeAttribute("hidden")}),ModuleNav.initActiveState(e),Dom.header.mobileNav.hasClass("loading")&&ModuleNav.showMmenu()}var o;if(Respond.onResize("resetMainNav",function(){clearTimeout(o),o=setTimeout(ModuleNav.resetMainNav,20)}),Dom.subNav[0]){if(Dom.subNav.find("li.submenu > div.row > .toggle").off("click.submenu").on("click.submenu",function(){$(this).parents("li").eq(0).toggleClass("is-open")}),!Dom.subNav.hasClass("search-filter"))return!0;Dom.body.removeClass("no-mobile-sub-nav"),Dom.header.mobileSubNav.on("click",ModuleNav.showMobileSubNav),Dom.html.hasClass("touch")&&Dom.body.off("swipeleft.mobileSubNav").on("swipeleft.mobileSubNav",ModuleNav.showMobileSubNavOnSwipe),Dom.subNav.find("b.filter-link").off("click.filterLink").on("click.filterLink",ModuleBody.clickFilterLinks)}},showMmenu:function(e){if(respondMinOnly(ModuleNav.mobileWidthLimit))return!1;void 0!==e&&e.preventDefault(),ModuleNav.drawer.open(),null!==document.querySelector('.mm-panel--opened a:not([aria-hidden="true"])')&&document.querySelector('.mm-panel--opened a:not([aria-hidden="true"])').focus(),null!==document.querySelector(".mm-panels.mm-panel--open")&&document.querySelector(".mm-panels.mm-panel--open").setAttribute("tabindex","-1"),document.querySelectorAll(".mm-listitem__text").forEach(e=>{var t=e.getAttribute("aria-label"),o=e.innerText;null!==t&&e.setAttribute("aria-label",t+" "+o)});var t,e=ModuleNav.mainNav.find(".selected > a");e.attr("href")===location.href?0<(t=e.siblings("ul")).length&&(ModuleNav.mmenu.openPanel(t.get(0)),t.get(0).focus()):(e.get(0)?.focus(),void 0!==(t=$("nav.main-nav").find("li.selected:last"))[0]&&ModuleNav.mmenu.openPanel(t.get(0).closest("ul")))},resetMainNav:function(){$.isEmptyObject(ModuleNav.mainNav)||void 0!==ModuleNav.drawer&&(ModuleNav.drawer.close(),document.querySelector("button.mobile-nav").focus()),$("nav.main-nav").remove(),$("body").append(ModuleNav.savedMainNav),$("nav.sub-nav").remove(),$("main").after(ModuleNav.savedSubNav),Dom.mainNav=Dom.header.find("nav.main-nav"),Dom.subNav=Dom.body.find("nav.sub-nav"),"search"!==Dom.body.data("page")&&!Dom.body.hasClass("cat-home:not(.page-myaccount)")||Dom.subNav.addClass("search-filter"),ModuleNav.init(),ModuleHeader.init(),ModuleSidebar.init()},initActiveState:function(e){if(!$.isEmptyObject(e)&&!Dom.html.hasClass("no-speed")&&!Dom.body.hasClass("cat-books")){e.find("li").removeClass("selected");var e=e.get(0).querySelectorAll("a,.booknav"),t=ModuleSidebar.getLinkMatcher(location.pathname),o=void 0;if(e.forEach(function(e){void 0===o&&t(e)&&(e.matches(".booknav")||(e=e.closest("li")),o=e)}),o){for(var n=o;n=n.parentElement.closest("li.with-sub");)n.classList.add("selected");o.classList.add("selected")}}},showMobileSubNav:function(e){if(respondMinOnly(ModuleNav.mobileWidthLimit))return!1;Dom.subNav.find("li.sidebar-legend").addClass("hidden"),void 0!==e&&e.preventDefault(),Dom.header.mobileSubNav.find("button").attr("aria-expanded","true"),Dom.header.ShowOverlay(),Dom.subNav.addClass("is-canvas").scrollTop(0).off("click.close").on("click.close",ModuleNav.hideMobileSubNav),Dom.subNav.children("div.inner").off("click.stopPropagation").on("click.stopPropagation",stopPropagation),Dom.subNav.focus();
2var t=Dom.subNav.find(".headline"),o=(t.each(function(){var e=$(this);e.before('<strong class="headline-placeholder">'+e.html()+"</strong>")}),Dom.subNav.find(".headline-placeholder"));Dom.subNav.CloseCanvasBySwipe("right",ModuleNav.hideMobileSubNav,function(){ModuleNav.scrollMobileSubNav(t,o)}),t.off("click.scrollto").on("click.scrollto",function(e){e.preventDefault();e=($(this).siblings(".headline-placeholder").offset().top||$(this).offset().top)-Dom.subNav.offset().top+Dom.subNav.scrollTop()-1;ModuleHeader.scrollTo(e,Dom.subNav)}),ModuleNav.scrollMobileSubNav(t,o),Dom.subNav.off("scroll.headlines").on("scroll.headlines",function(){ModuleNav.scrollMobileSubNav(t,o)}),Dom.subNav.find("li.submenu > div.row > small.toggle").off("click.submenu").on("click.submenu",function(){$(this).parents("li").eq(0).toggleClass("is-open"),ModuleNav.scrollMobileSubNav(t,o)})},scrollMobileSubNav:function(e,t){if(Dom.html.hasClass("no-speed"))return!0;Dom.body.hasClass("cat-books")||(t.each(function(){var e=$(this),t=e.parent("li").not(".no-headline"),o=t.children(".headline");if(!e[0]||!t[0])return!0;var n=Dom.subNav.scrollTop(),i=t.offset().top-Dom.subNav.offset().top+Dom.subNav.scrollTop(),e=(Dom.subNav.scrollTop()<ModuleNav.mobileSubNavOldScrollPos&&(i+=$(e).outerHeight()),t.removeClass("is-fixed").removeClass("top").removeClass("bottom"),o.removeAttr("style"),t.prevAll("li.is-fixed.bottom").not(".no-headline").length);if(i<=n)t.addClass("is-fixed").addClass("top").removeClass("bottom");else if(i>=n+Respond.height){if(e<3){t.addClass("is-fixed").addClass("bottom").removeClass("top");var r=t.nextAll("li").not(".no-headline").length,a=-o.outerHeight(),s=(r=3<r?3:r)+1;3<=e+r&&(s=3-e);for(var l=0;l<s;l++)a+=o.outerHeight();o.css("bottom",a)}}else i-o.outerHeight()<=n&&t.prevAll("li").not(".no-headline").removeClass("is-fixed").removeClass("top")}),ModuleNav.mobileSubNavOldScrollPos=Dom.subNav.scrollTop())},showMobileSubNavOnSwipe:function(e){return!!Dom.body.hasClass("no-scroll")||parseInt(e.swipestart.coords[0])<Respond.width-100||parseInt(e.swipestart.coords[0])-parseInt(e.swipestop.coords[0])<30||void ModuleNav.showMobileSubNav()},hideMobileSubNav:function(e){e.preventDefault(),Dom.subNav.find(".headline-placeholder").remove(),Dom.subNav.off("scroll.headlines").removeClass("is-canvas"),Dom.header.HideOverlay(),Dom.header.mobileSubNav.find("button").attr("aria-expanded","false"),document.querySelector("button.mobile-nav").focus()},prepareMobileStandardNav:function(e,t){e.find("li.list-headline").remove(),e.find("svg").remove(),t.find("li.statics").remove(),t.find("li.ad").remove(),t.find("li.sidebar-legend").remove(),t.find(".category").parent("li").remove(),t.find("small.toggle").remove(),t.find("span.clr").remove(),t.find(".headline--subtle").remove(),t.find("ul.letters").remove();function o(){var e,t=$(this);return(t.is(".composers-headline")?(e=t,$("<a />").attr("href",e.data("link"))):(e=t,$("<span />"))).append(e.contents())}var n=t.find("ul");1===n.length&&(t=n.first()).addClass("top");t.find("li > strong.headline, li > h2.headline").each(function(e,t){$(t).replaceWith(o)}),t.find("li > .row > b, li .pseudo-link").each(function(e,t){$(t).replaceWith(function(){return $("<span />").append($(this).contents())})}),t.find("li.submenu").removeClass("submenu").each(function(e,t){$(t).find("div.row").replaceWith(function(){return $(this).contents()})}),t.find("li.cms-cpo").each(function(e,t){$(t).find("figure").replaceWith(function(){return $("<span />").append($(this).contents())})}),t.find("li.filter-block").remove(),t.find("li.seperator").remove(),t.find("jpc-disclosure-button").each((e,t)=>{$(t).before('<span class="'+t.className+"'>"+t.innerText+"</span>")}),t.find("[id]").each((e,t)=>{t.setAttribute("id",t.id+"-mobile")}),t.find("[aria-controls]").each((e,t)=>{t.setAttribute("aria-controls",t.getAttribute("aria-controls")+"-mobile")}),0<t.find("li").length&&(Dom.body.hasClass("cat-poprock")?e.find("li.poprock").append(t):Dom.body.hasClass("cat-jazz")?e.find("li.jazz").append(t):Dom.body.hasClass("cat-classic")?e.find("li.classic").append(t):Dom.body.hasClass("cat-vinyl")?e.find("li.vinyl").append(t):Dom.body.hasClass("cat-movie")?e.find("li.movie").append(t):Dom.body.hasClass("cat-score")?e.find("li.score").append(t):Dom.body.hasClass("cat-sale")?e.find("li.sale").append(t):Dom.body.hasClass("page-myaccount")?e.find("li.my-account-link").append(t):(location.href.toLowerCase().includes("/home/service")||location.href.toLowerCase().includes("tname/hilfe-"))&&e.find("li.help").append(t))},prepareMobileBooksNav:function(e,t){var o,t=t.find("li");t.length<=0||((o=$("<ul>")).append(t),o.find("ul,.contains-link-to-top").remove(),((t=o.find(".active")).length<=0?o.find(".contains-submenu"):t).addClass("selected"),o.find("li.with-offset").each(function(e,t){$(t).prev().addClass("without-border")}),t=o.find(">li").first(),e=e.find("li.books"),t&&t.hasClass("contains-submenu")&&e.addClass("no-border-top"),e.append(o))}}),ModuleNewsticker=(R.me("ModuleNav",!1),{init:function(){var e,t,o,n=document.querySelector(".newsticker section");!n||n.querySelectorAll("li").length<2||(e=function(){var e=n.querySelector("li.active"),t=(t=e.nextElementSibling)||n.querySelector("li");n.querySelectorAll("li.transition").forEach(function(e){e.classList.remove("transition")}),e.classList.add("transition"),e.classList.remove("active"),t.classList.add("active")},o=function(){t=setInterval(e,7500)},n.addEventListener("mouseenter",function(){clearInterval(t)}),n.addEventListener("mouseleave",o),o())},beforeBootstrap:function(){var e,t,o,n=document.body.querySelector("div.page>div.wrapper.newsticker");n&&(0===(t=(e=n.querySelector("ol")).querySelectorAll("li")).length?n.remove():(o=0,t.forEach(function(e){var t=e.scrollHeight;o<t&&(o=t),e.classList.remove("init")}),e.style.minHeight=o+"px"))}}),ModuleNotepad=("object"==typeof R?R.me("ModuleNewsticker",!1):"object"==typeof module&&(module.exports=ModuleNewsticker),{reloadAfterPopupClosePage:!1,removeProductFromWk:!1,init:function(){return Dom.notepadForm=Dom.body.find("form.notepad-save-form"),Dom.notepadForm[0]&&ModuleNotepad.initNotepadSaveForm(),Dom.body.find("form.notepad-save-form.no-redirect")[0]&&ModuleNotepad.initNotepadInListLayer(),Dom.notepadLayer=Dom.body.find("div.notepad-layer"),Dom.notepadLayer[0]&&ModuleNotepad.initNotepadLayer(),!0},initNotepadSaveForm:function(){return!!Dom.body.hasClass("not-logged")&&(Dom.notepadForm.each(function(){var e=$
2(this);if(e.hasClass("no-redirect"))return!0;e.off("submit.loginform").on("submit.loginform",function(e){e.preventDefault();e=$(this);ModuleNotepad.notepadLogin(e)})}),!0)},notepadLogin:function(t){var e=t.Progress();Ajax.post({xjxfun:"getPopup",xjxargs:[1],dataType:"html",targetUrl:t.attr("action"),hnum:t.data("hnum")},function(e){ModuleBody.openAjaxLayer(e,"login-layer");e=$("div.login-layer");t.hasClass("no-redirect")&&e.find("form").addClass("no-redirect"),ModuleNotepad.initLoginPopup(e.find("form"))},null,function(){e.stop()})},initLoginPopup:function(r){r.off("submit.loginLayer").on("submit.loginLayer",function(e){e.preventDefault();var n=$(this),i=n.parents("div.login-layer"),t=i.Progress();Ajax.post({xjxfun:"login",xjxargs:[1],dataType:"html",loginname:n.find("input[name=login]").val(),loginpass:n.find("input[name=pw]").val()},function(e,t,o){1==o.getResponseHeader("x-login-check")?n.hasClass("no-redirect")?(Dom.notepadForm.each(function(){$(this).off("submit.loginform"),r.off("submit.loginLayer")}),setTimeout(function(){ModuleNotepad.reloadAfterPopupClosePage=!0,ModuleNotepad.initNotepadInListLayer(),ModuleNotepad.insertProduct(i,n.data("hnum"))},0)):window.location.href=Dom.notepadForm.attr("action"):i.find("div.danger").removeClass("hidden")},null,function(){t.stop()})})},notepadSaveNoRedirect:function(e){Dom.body.hasClass("not-logged")?ModuleNotepad.notepadLogin(e):(e.hasClass("remove-wk-product")&&(ModuleNotepad.reloadAfterPopupClosePage=!1,ModuleNotepad.removeProductFromWk=e.parents(".has-notepad").find(".remove-link")),ModuleNotepad.insertProduct(e,e.data("hnum")))},initNotepadInListLayer:function(){if(Dom.body.hasClass("not-logged"))return!1;Dom.body.off("submit.notepad-save-form","form.notepad-save-form.no-redirect").on("submit.notepad-save-form","form.notepad-save-form.no-redirect",function(e){var t=$(this);e.preventDefault(),ModuleNotepad.notepadSaveNoRedirect(t)})},insertProduct:function(e,t){var o=e.Progress();Ajax.post({xjxfun:"insertProduct",xjxargs:[1],dataType:"html",hnum:t},function(e){ModuleBody.openAjaxLayer(e,"notepad-layer"),Dom.notepadLayer=Dom.body.find("div.notepad-layer"),Dom.notepadLayer.data("hnum",t),ModuleNotepad.initNotepadLayer()},null,function(){o.stop()})},initNotepadLayer:function(){if(!Dom.notepadLayer[0])return!1;
2var e=Dom.notepadLayer.find("div.notepad-list"),t=Dom.notepadLayer.find("form.notepad-new-list"),e=e.find("ul"),i=Dom.notepadLayer.data("hnum"),r=Dom.notepadLayer.data("listid")||0;!1!==ModuleNotepad.removeProductFromWk&&ModuleNotepad.removeProductFromWk[0]?$.magnificPopup.instance.close=function(){location.href=ModuleNotepad.removeProductFromWk.attr("href")}:ModuleNotepad.reloadAfterPopupClosePage&&($.magnificPopup.instance.close=function(){location.href=location.href}),e.find("a, button").off("click.saveNotepadList").on("click.saveNotepadList",function(e){e.preventDefault();var e=parseInt($(this).data("id")),t=$(this).data("hnum"),o=Dom.notepadLayer.Progress(),t={xjxfun:"insertProduct",hnum:t,listId:e};r&&(t.xjxfun="moveProduct",t.listId=r,t.destId=e),Ajax.post(t,function(){ModuleBody.closeOpenHelpLayer()},null,function(){o.stop()})}),t.off("submit.newNotepadList").on("submit.newNotepadList",function(e){e.preventDefault();var o=Dom.notepadLayer.Progress(),n=t.find("input[name=new-list-name]").val();if(""==n)return!1;Ajax.post({xjxfun:"createNotepad",json:!0},function(t){Ajax.post({xjxfun:"renameNotepad",listId:t.ID,name:n},function(){var e={xjxfun:"insertProduct",hnum:i,listId:t.ID};r&&(e.xjxfun="moveProduct",e.listId=r,e.destId=t.ID),Ajax.post(e,function(){ModuleBody.closeOpenHelpLayer()},null,function(){o.stop()})},function(){o.stop()})},function(){o.stop()})})}});R.me("ModuleNotepad",!1);class PasswordValidation{constructor(){this.debug=!1,this.#debugInfo("Debug is ",this.debug),this.pw1=null,this.pw2=null,this.ruleInfo=null,this.passwordMismatchElement=null,this.srInfoElement=null,this.debounceTimeoutMS=500,this.okClass="okay",this.failedClass="fail"}init(e,t,o,n,i){if(null===e||null===t||"input"!==e.nodeName.toLowerCase()||"input"!==t.nodeName.toLowerCase())return!1;this.pw1=e,this.pw2=t,this.ruleInfo=o,this.passwordMismatchElement=n,this.srInfoElement=i,this.#debugInfo("Received those elements",this.pw1,this.pw2,this.ruleInfo,this.passwordMismatchElement,this.srInfoElement),this.ruleHints=this.ruleInfo.querySelectorAll(".password-hint"),this.#debugInfo("I deferred from ruleInfo those rules: ",this.ruleHints),this.watchPasswordRules(),this.watchPasswordsMatch()}watchPasswordRules(){let t=e=>{this.#debugInfo("Password rule observer activated");let t=e.target?.value,o=!0;e=this.srInfoElement.querySelector(".requirementsDoneCounter");this.resetRuleHints(),Object.keys(this.#validationMap()).forEach(e=>{if(this.#validationElementFor(e))return this.#validationOperationFor(e)(t)?void this.#markOk(e):(this.#markFail(e),!1===o?void 0:void(o=!1))}),e.innerText=this.ruleInfo.querySelectorAll(".password-hint.okay").length??"0"},o;this.pw1.addEventListener("keyup",e=>{clearTimeout(o),o=setTimeout(()=>{t(e)},this.debounceTimeoutMS)})}watchPasswordsMatch(){let t=()=>{this.pw1.value===this.pw2.value?(this.pw2.setCustomValidity(""),this.passwordMismatchElement.innerText="",this.passwordMismatchElement.setAttribute("hidden","true")):(this.passwordMismatchElement.hasAttribute("hidden")&&this.passwordMismatchElement.removeAttribute("hidden"),this.pw2.setCustomValidity(this.passwordMismatchElement.dataset.text),this.passwordMismatchElement.innerText=this.passwordMismatchElement.dataset.text)},o;this.pw2.addEventListener("keyup",e=>{clearTimeout(o),o=setTimeout(()=>{t()},this.debounceTimeoutMS)})}watch(){this.resetRuleHints(),this.watchPasswordRules(),this.watchPasswordsMatch()}resetRuleHints(){this.ruleHints.forEach(e=>{e.classList.remove(this.okClass,this.failedClass)}),this.ruleInfo.querySelectorAll("img.failed-pw-rule, img.success-pw-rule").forEach(e=>{e.setAttribute("hidden","hidden")})}#validationElementFor=e=>this.ruleInfo.querySelector(".password-hint.password-hint-"+e);#regExFor(e){return{665:new RegExp(/^.{8,}$/),669:new RegExp(/[0-9]+/),670:new RegExp(/[\W]+/)}[e]??null}#validationOperationFor=e=>this.#validationMap()[e]??null;#validationMap(){return{665:e=>0<=e.search(this.#regExFor("665")),667:e=>e!==e.toLocaleLowerCase(navigator.language),668:e=>e!==e.toLocaleUpperCase(navigator.language),669:e=>0<=e.search(this.#regExFor("669")),670:e=>0<=e.search(this.#regExFor("670"))}}#markOk(e){e=this.#validationElementFor(e);e.classList.add("hint",this.okClass),e.querySelector("img.failed-pw-rule")?.setAttribute("hidden","hidden"),e.querySelector("img.success-pw-rule")?.removeAttribute("hidden")}#markFail(e){e=this.#validationElementFor(e);e.classList.add("hint",this.failedClass),e.querySelector("img.success-pw-rule").setAttribute("hidden","hidden"),e.querySelector("img.failed-pw-rule").removeAttribute("hidden")}#debugInfo(...e){!0===this.debug&&console.log(e)}}var ModulePerformance={listTimer:0,listViews:[],listClicks:[],detailVie
2ws:[],detailClicks:[],init:function(){if(/bot|google|baidu|bing|msn|duckduckbot|teoma|slurp|yandex/i.test(navigator.userAgent))return!1;ModulePerformance.initUser(),ModulePerformance.initAggregated()},initUser:function(){ModulePerformance.initUserDetail(),ModulePerformance.initUserCart(),ModulePerformance.initUserNotepad(),ModulePerformance.initUserLike(),ModulePerformance.initUserHideHints(),ModulePerformance.initUserSwitchSalutation(),ModulePerformance.initUserFeedToNotepad()},initUserDetail:function(){if(ModulePerformance.$detail=$("main.product"),!ModulePerformance.$detail[0])return!1;setTimeout(function(){ModulePerformance.saveUserAction("/session/detail/click/"+ModulePerformance.$detail.data("hnum"))},3e3)},initUserCart:function(){$("form.cart-form").off("click.userPerformanceCart","button.to-cart").on("click.userPerformanceCart","button.to-cart",function(){var e=$(this).parents("form").eq(0);ModulePerformance.saveUserAction("/session/detail/cart/"+e.data("hnum"))})},initUserNotepad:function(){$("form.notepad-savearticle-form").off("click.userPerformanceNotepad","button").on("click.userPerformanceNotepad","button",function(){var e=$
2(this).parents("form").eq(0);ModulePerformance.saveUserAction("/session/detail/notepad/"+e.data("hnum"))})},initUserLike:function(){$("body").off("click.userPerformanceLike",".action.like, .btn.like").on("click.userPerformanceLike",".action.like, .btn.like",function(){var e=$(this),t=e.parent();e.hasClass("active")||t[0]&&t.data("hnum")&&(ModulePerformance.saveUserAction("/session/like/"+t.data("hnum")),e.addClass("active"))})},initUserFeedToNotepad:function(){$("body").off("click.userPerformanceFeedToNotepad",".action.feedtonotepad, .btn.feedtonotepad").on("click.userPerformanceFeedToNotepad",".action.feedtonotepad, .btn.feedtonotepad",function(){var e,t=$(this),o=t.parent();o[0]&&o.data("hnum")&&(e=function(e){e.showFirsttimeModal&&$("#info-notepad-created").show();e=$("body").data("lang");t.hasClass("active")?(t.removeClass("active"),"de"==e?t.find("title").html("Artikel merken"):t.find("title").html("Add to notepad")):(t.addClass("active"),"de"==e?t.find("title").html("Artikel vom Merkzettel entfernen"):t.find("title").html("Remove from notepad"))},t.hasClass("active")?ModulePerformance.saveUserActionWithCallback("/session/removefromnotepad/"+o.data("hnum"),e):(ModulePerformance.saveUserActionWithCallback("/session/addtonotepad/"+o.data("hnum"),e),ModulePerformance.saveUserAction("/session/detail/notepad/"+o.data("hnum"))))})},initUserHideHints:function(){$("body").off("click.userPerformanceHideHints",".action.hidehints, .btn.hidehints").on("click.userPerformanceHideHints",".action.hidehints, .btn.hidehints",function(){var e=$
2(this).parent();e[0]&&e.data("box")&&ModulePerformance.saveUserAction("/session/hidehints/"+e.data("box"))})},initUserSwitchSalutation:function(){$("body").off("click.userPerformanceSwitchSalutation",".action.switchsalutation, .btn.switchsalutation").on("click.userPerformanceSwitchSalutation",".action.switchsalutation, .btn.switchsalutation",function(){$(this).find("svg").hasClass("active")?ModulePerformance.saveUserAction("/session/salutationdefault/true"):ModulePerformance.saveUserAction("/session/salutationdefault/false")})},saveUserAction:function(e){$.ajax({type:"PUT",async:!0,url:e}).always(function(){$.get("/session/score")})},saveUserActionWithCallback:function(e,t){$.ajax({type:"PUT",async:!0,url:e}).done(t).fail(function(){$("#info-error-occured").show()}).always(function(){$.get("/session/score")})},initAggregated:function(){var e=ModulePerformance.initList(),t=ModulePerformance.initDetail();return!(!e&&!t||(window.addEventListener("pagehide",ModulePerformance.save,{capture:!1}),0))},initList:function(){return ModulePerformance.$cards=$("div.cards .card"),!!ModulePerformance.$cards[0]&&(ModulePerformance.listTimer=0,ModulePerformance.listViews=[],ModulePerformance.listClicks=[],Respond.onLoad("performanceScroll",ModulePerformance.listScroll),Respond.onScroll("performanceScroll",ModulePerformance.listScroll),ModulePerformance.initListClicks(),!0)},initDetail:function(){return ModulePerformance.$detail=$("main.product"),!(!ModulePerformance.$detail[0]||(ModulePerformance.$form=ModulePerformance.$detail.find("form.cart-form"),!ModulePerformance.$form[0])||!ModulePerformance.$form.data("hnum")||(ModulePerformance.detailViews=[],ModulePerformance.detailClicks=[],setTimeout(function(){ModulePerformance.detailViews.push(ModulePerformance.$form.data("hnum")),ModulePerformance.$form.off("click.performanceTracking","button.to-cart").on("click.performanceTracking","button.to-cart",function(){ModulePerformance.$form.off("click.performanceTracking","button.to-cart"),ModulePerformance.detailClicks.push(ModulePerformance.$form.data("hnum"))})},1e3),0))},initListClicks:function(){ModulePerformance.$cards.filter(":visible").off("click.performanceClick").on("click.performanceClick",function(){ModulePerformance.doListClick($(this))}).find("a, button").off("click.performanceChildClick").on("click.performanceChildClick",function(){ModulePerformance.doListClick($(this).parents(".card").eq(0))})}
2,doListClick:function(e){return!e[0]||!(e=e.data("hnum"))||-1!==$.inArray(e,ModulePerformance.listClicks)||(-1===$.inArray(e,ModulePerformance.listViews)&&ModulePerformance.listViews.push(e),void ModulePerformance.listClicks.push(e))},listScroll:function(){clearTimeout(ModulePerformance.listTimer),ModulePerformance.listTimer=setTimeout(ModulePerformance.listScrolled,150)},listScrolled:function(){return ModulePerformance.$cards.filter(":visible").each(function(){var e,t=$(this),o=t.data("hnum");return!o||-1!==$.inArray(o,ModulePerformance.listViews)||(e=t.offset().top)+(t=.6*t.height())<Respond.scrolled||e+t>Respond.scrolled+Respond.height||ModulePerformance.listViews.push(o),!0}),!0},save:function(){return ModulePerformance.listViews.length<1&&ModulePerformance.detailViews.length<1||(document.removeEventListener("pagehide",ModulePerformance.save,!1),clearTimeout(ModulePerformance.listTimer),$.ajax({type:"PUT",async:!0,url:"/session/perf",data:{listViews:ModulePerformance.listViews,listClicks:ModulePerformance.listClicks,detailViews:ModulePerformance.detailViews,detailClicks:ModulePerformance.detailClicks}}),ModulePerformance.listViews=[],ModulePerformance.listClicks=[],ModulePerformance.detailViews=[],ModulePerformance.detailClicks=[]),!0}},ModulePrint=(R.me("ModulePerformance",["ModuleHitlist"]),{init:function(){ModulePrint.printPopup(),ModulePrint.printHotkey(),"1"===$("body").attr("data-print")&&window.print()},printPopup:function(){Dom.body.off("click.print",".print").on("click.print",".print",function(e){e.preventDefault();e=$(this).data("url");"notepadlist"===$(this).data("source")&&void 0!==e?window.location=e:window.print()})},printHotkey:function(){Dom.document.off("keyup.print keydown.print").on("keyup.print keydown.print",function(e){if((e.metaKey||e.ctrlKey)&&80===e.keyCode)return e.preventDefault(),ModulePrint.printOrPopup(),!1})},printOrPopup:function(){1===Dom.body.find(".print").length?Dom.body.find(".print").trigger("click"):window.print()}}),ModuleRecommendations=(R.me("ModulePrint",!1),{_sd:{},_sl:{},init:function(){var e=document.querySelectorAll(".recommendations");0!==e.length&&e.forEach(function(e,t){ModuleRecommendations.initContainer(e,"recommendation-"+t)})},initContainer:function(e,t){var o=new Sliderbox(e,ModuleBody.reducedMotion,".slides",".slide"),n=o.sliderElementsVisible();0<n&&n<o.slidesCount&&o.container.classList.remove("no-controls"),e.classList.contains("no-controls")||!1===e.dataset.recommendationAutostart||((ModuleRecommendations._sl[t]=o).isScrollable()?(ModuleRecommendations._sd[t]=[],ModuleRecommendations._sd[t].push(function(){o.destroy()}),ModuleRecommendations._sd[t].push(ModuleRecommendations.sliderControls(o)),ModuleRecommendations._sd[t].push(ModuleRecommendations.heightAdjuster(o)),ModuleRecommendations._sd[t].push(ModuleRecommendations.autoscroll(o))):(e.classList.add("no-controls"),ModuleRecommendations.shutdownContainer(t)))},shutdownContainer:function(e){e=ModuleRecommendations._sd[e];e&&e.forEach(function(e){e()})},heightAdjuster:function(e){var a,o;return e.container.querySelector(".without-autoheight")instanceof HTMLElement?(e.initObserver(),function(){}):(a=[],e.onScrollFn(o=function(e,t){function i(){o(e,t)}var r=0;t.forEach(function(e){var t,o,n;Sliderbox.isSlideShown(e)?(e.querySelectorAll("a").forEach(e=>{e.classList.contains("image")||e.removeAttribute("tabindex")}),null!==(n=e.querySelector("article,.article"))&&void 0!==(t=n.querySelector("img"))&&(o=t.getAttribute("height"),t.complete||""!==o&&null!==o?void 0!==(o=n.getClientRects())[0]&&(n=o[0].height,r<n)&&(r=n):(t.addEventListener("load",i),a.push(t)))):e.querySelectorAll("a").forEach(e=>{e.classList.contains("image")||e.setAttribute("tabindex","-1")})}),r<=0||(r=r-r%25+50,e.style.maxHeight=r+"px")}),function(){a.forEach(function(e){e.removeEventListener("load",o)})})},autoscroll:function(e){var t=e.container.querySelector(".with-autoscroll");if(!(t instanceof HTMLElement))return function(){};let o=parseInt(t.dataset.autoscrollDelayMs),n=!1,i=!1,r=((isNaN(o)||o<=0)&&(o=1e4),()=>{setTimeout(e=>{n=!0},1),l(!0)}),a=()=>{n=!1,l(!1)},s=(e.container.addEventListener("mouseover",r),e.container.addEventListener("mouseleave",a),e.container.querySelectorAll('.slider-control
2s button, .slider-controls [role="button"]').forEach(e=>{e.addEventListener("focus",r),e.addEventListener("blur",a)}),e.container.querySelectorAll(".content").forEach(e=>{e.addEventListener("focus",r),e.addEventListener("blur",a)}),e.container.querySelector(".pause")),l=e=>{var t;s&&(t=$("body").data("lang"),!0!==e&&s.classList.contains("paused")?(i=!1,s.classList.remove("paused"),"de"===t?s.setAttribute("aria-label","Pause"):s.setAttribute("aria-label","Stop")):(i=!0,s.classList.add("paused"),"de"===t?s.setAttribute("aria-label","Wiedergabe"):s.setAttribute("aria-label","Play")))},d=(s&&(s.addEventListener("click",l),ModuleBody.reducedMotion)&&l(!0),setInterval(()=>{n||i||e.scrollToNextPage()},o));return function(){clearInterval(d),e.container.removeEventListener("mouseover",r),e.container.removeEventListener("mouseleave",a),s&&s.removeEventListener("click",l),e.container.querySelectorAll('.slider-controls button, .slider-controls [role="button"]').forEach(e=>{e.removeEventListener("focus",r),e.removeEventListener("blur",a)})}},sliderControls:function(e){e.container.querySelector(".next").addEventListener("click",function(){e.scrollToNextPage()},{passive:!0}),e.container.querySelector(".prev").addEventListener("click",function(){e.scrollToPrevPage()},{passive:!0});function t(){e.scrollToSlide(e.leftmostSlideIdx)}function o(){e.sliderElementsVisible()<e.slidesCount?e.container.classList.remove("no-controls"):e.container.querySelectorAll(".slides > .slide").length<=e.slidesCount&&e.container.classList.add("no-controls"),clearTimeout(n),n=setTimeout(t,200)}var n=null;return window.addEventListener("resize",o,{passive:!0}),function(){e.container.querySelector(".next").removeEventListener("click",function(){e.scrollToNextPage()},{passive:!0}),e.container.querySelector(".prev").removeEventListener("click",function(){e.scrollToPrevPage()},{passive:!0}),window.removeEventListener("resize",o,{passive:!0})}},isScrollable:function(e){e=ModuleRecommendations._sl[e];return!!e&&e.isScrollable()},removeSlide:function(e,t){var o=e.closest("section.recommendations");ModuleRecommendations.shutdownContainer(t),e.remove(),ModuleRecommendations.initContainer(o,t)}}),Suggest=("object"==typeof R?R.me("ModuleRecommendations",!1):"object"==typeof module&&(module.exports=ModuleRecommendations),function(e,t){var o={xjxfun:"",additionalArgs:!1,timeoutDelay:300};this.oldVal="",this.options=$.isPlainObject(t)?$.extend(o,t,!0):o,this.searchField=e,this.fieldContainer=this.searchField.parents(".suggest").eq(0),this.suggestionsContainer=this.fieldContainer.find("ol, ul"),this.loadingXhr=null,this.initHandler()});function SearchSuggest(e,t){return new Suggest(e,t)}Suggest.prototype.getSearchSuggests=function(e){var t=String(this.searchField.val()).trim(),o=["S"+t],n=this;e&&!this.navigateToSearchSuggest(e)||t!==this.oldVal&&(this.oldVal=t,null!==n.loadingXhr&&n.loadingXhr.readyState<4&&(n.loadingXhr.abort(),n.loadingXhr=null),clearTimeout(this.timeout),this.timeout=setTimeout(function(){t.length<=2?n.destroySearchSuggest():(n.suggestionsContainer.addClass("load"),n.progress=n.fieldContainer.Progress("li"),n.trigger("beforeGetSearchSuggest"),"function"==typeof n.options.additionalArgs?o.push(n.options.additionalArgs()):Array.isArray(n.options.additionalArgs)&&$.each(n.options.additionalArgs,function(e,t){o.push(t)}),n.loadingXhr=Ajax.get({xjxfun:n.options.xjxfun,xjxargs:o},function(e){if(parseInt(e.count)<=0)return n.destroySearchSuggest(),!1;n.suggestionsContainer.html(e.html).addClass("loaded"),n.searchField.attr("aria-expanded","true");e=n.suggestionsContainer.find("li span");return e.off("click.suggest").on("click.suggest",$.proxy(n.selectSearchSuggest,n)),e.off("blur.suggest").on("blur.suggest",$.proxy(n.hideSearchSuggest,n)),e.off("focus.suggest").on("focus.suggest",$.proxy(n.showSearchSuggest,n)),e.off("keydown.suggest").on("keydown.suggest",$.proxy(n.navigateSearchSuggest,n)),!0},function(){n.destroySearchSuggest()},function(){n.progress.stop()}))},this.options.timeoutDelay))},Suggest.prototype.showSearchSuggest=function(){var e=this;setTimeout(function(){e.fieldContainer.addClass("show-suggest")},30)},Suggest.prototype.destroySearchSuggest=function(){this.hideSearchSuggest(),this.suggestionsContainer.removeClass("load").removeClass("loaded").html(""),this.searchField.attr("aria-expanded","fal
2se");var e=this.suggestionsContainer.find("li span");e.off("click.suggest"),e.off("blur.suggest"),e.off("focus.suggest"),e.off("keydown.suggest")},Suggest.prototype.hideSearchSuggest=function(){var e=this;clearTimeout(this.hideSuggestTimeout),hideSuggestTimeout=setTimeout(function(){if($(document.activeElement).parents(".suggest.show-suggest")[0])return!0;e.fieldContainer.removeClass("show-suggest")},25)},Suggest.prototype.navigateSearchSuggest=function(e){var t,o;return!this.suggestionsContainer.hasClass("loaded")||!(t=$(document.activeElement)).parents(".suggest")[0]||!(t=t.parent("li"))[0]||(13===e.keyCode?(this.selectSearchSuggest(e),!1):38===e.keyCode?(e.preventDefault(),((o=t.prev("li"))[0]&&!o.hasClass(".no-focus")?o.children("span"):this.searchField).trigger("focus"),!1):40===e.keyCode?(e.preventDefault(),((o=t.next("li"))[0]&&!o.hasClass(".no-focus")?o:this.suggestionsContainer.children("li:not(.no-focus)").first()).children("span").trigger("focus"),!1):void 0)},Suggest.prototype.navigateToSearchSuggest=function(e){return!(this.fieldContainer.hasClass("show-suggest")&&this.suggestionsContainer.hasClass("loaded")&&(38===e.keyCode?(e.preventDefault(),this.suggestionsContainer.children("li:not(.no-focus)").last().children("span").trigger("focus"),1):40===e.keyCode&&(e.preventDefault(),this.suggestionsContainer.children("li:not(.no-focus)").first().children("span").trigger("focus"),1)))},Suggest.prototype.selectSearchSuggest=function(e){e.preventDefault();e=$(e.target).is("li")?$(e.target).find("span"):$(e.target),e=$.extend(this.options,{$el:e,$searchField:this.searchField});this.trigger("select",e),this.destroySearchSuggest()},Suggest.prototype.selectFirstElement=function(){var e=this.suggestionsContainer.find("li:not(.no-focus) span").first(),t=$.extend(this.options,{$el:e});e[0]&&(this.trigger("select",t),this.destroySearchSuggest())},Suggest.prototype.initHandler=function(){this.searchField.off("blur.suggest").on("blur.suggest",$.proxy(this.hideSearchSuggest,this)),this.searchField.off("focus.suggest").on("focus.suggest",$.proxy(this.showSearchSuggest,this)),this.getSearchSuggests(),this.searchField.off("focus.suggests keyup.suggests change.suggests").on("focus.suggests keyup.suggests change.suggests",$.proxy(this.getSearchSuggests,this)),Dom.document.off("keydown.suggest-extended"+this.options.xjxfun).on("keydown.suggest-extended"+this.options.xjxfun,$.proxy(this.navigateToSearchSuggest,this))},Suggest.prototype.destroy=function(){this.destroySearchSuggest(),this.searchField.off("blur.suggest"),this.searchField.off("focus.suggest"),this.searchField.off("focus.suggests keyup.suggests change.suggests"),Dom.document.off("keydown.suggest-extended"+this.options.xjxfun)},extendTriggerBehavior(Suggest.prototype),R.me("ModuleSearchSuggest",!1);var ModuleSidebar={init:function(){if(!Dom.subNav[0])return!1;if(Dom.subNav.parent=Dom.subNav.parent(),Dom.mainContent=Dom.subNav.siblings("main"),!Dom.mainContent[0])return!1;ModuleSidebar.initDfp();var e=ModuleSidebar.getActiveLink();ModuleSidebar.setActiveTree(e),ModuleSidebar.initSidebarHeights(),ModuleSidebar.scrollToActive(e),Respond.offResize("initSidebarHeights").onResize("initSidebarHeights",ModuleSidebar.initSidebarHeights),Respond.offLoad("initSidebarHeights").onLoad("initSidebarHeights",ModuleSidebar.initSidebarHeights),ModuleSidebar.initFixedSidebar(),Respond.offResize("initFixedSidebar").onResize("initFixedSidebar",ModuleSidebar.initFixedSidebar),Respond.offLoad("initFixedSidebar").onLoad("initFixedSidebar",ModuleSidebar.initFixedSidebar),Respond.offAddContent("reinitSidebar").onAddContent("reinitSidebar",ModuleSidebar.reinit),ModuleSidebar.initEcourierSubscription()},initEcourierSubscription(){let o=()=>{var e=document.querySelector("footer .main-links .newsletter a");e&&e.classList.remove("visually-hidden")};var n=$("nav.sub-nav .newsletter a.is--receiver").first();0===n.length?o():ModuleFooter.getLastId(function(e){var t;(!1===e||(n.parents(".newsletter").removeClass("hidden"),n.attr("href",n.data("urlExists")+e).html(n.data("textExists")),respondMinOnly(740)&&(t=(e=document.querySelector("div.page")).querySelector(".page>section>nav>.inner,.page>section>.wrapper>nav>.inner"),e.querySelector(".page>section:not(.breadcrumb,.my-account)").getBoundingClientRect().height-t.getBoundingClientRect().height>window.innerHeight)))&&o()})},reinit:function(){Dom.subNav=Dom.body.find("nav.sub-nav"),ModuleSidebar.init()},initDfp:function(){var e,t=$(".ad.no-headline");Respond.offAddContent("sidebarDfp"),t[0]&&(e=$(".ad-sidebar-container"),ModuleSidebar.adHeight=e.outerHeight(),t.width(Dom.subNav.width()),Respond.onAddContent("sidebarDfp",ModuleSidebar.reinit))},getLinkMatcher:function(t){var o,n=location.protocol+"//"+location.host;
2return t.includes("/node/")?(o=parseInt(t.replace(/\D/g,"")),function(e){e=e.closest("li");if(e)return parseInt(e.dataset.param)===o}):function(e){e=e.dataset.linkMatcher??e.getAttribute("href");if(null!==e&&""!==String(e).trim())return(e=e.replace(n,""))===t}},getActiveLink:function(){var e,t,o;return!Dom.html.hasClass("no-speed")&&!Dom.body.hasClass("cat-books")&&(e=Dom.subNav.get(0).querySelectorAll("a,.booknav"),t=ModuleSidebar.getLinkMatcher(location.pathname),o=void 0,e.forEach(function(e){void 0===o&&t(e)&&(o=e)}),o)||null},setActiveTree:function(e){if(e){if(Dom.body.hasClass("cat-books"))return null;for(var t=e;t=t.parentElement.closest("li.submenu");)t.classList.add("is-open");e.closest("li").classList.add("active")}},scrollToActive:function(o){var n;if(o)return Dom.body.hasClass("cat-books")?null:void((n=o.closest("ul.stacked-submenu.scrollable"))&&setTimeout(function(){var e=o.closest("li"),t=(e.classList.add("active"),o.offsetTop),e=e.offsetHeight;t<=200-e||n.scrollTo(0,t-1.5*e)},25))},initSidebarHeights:function(){var l,d,e=Dom.subNav.find("ul.top > li > ul.stacked-submenu");return respondMaxOnly(739)?(e.filter(".scrollable").css("max-height","none"),!1):Dom.body.hasClass("cat-books")?null:((l=document.createElement("li")).classList.add("scroll-up","scroll-indicator"),l.innerHTML='<i class="fa fa-angle-up"></i>',(d=document.createElement("li")).classList.add("scroll-down","scroll-indicator"),d.innerHTML='<i class="fa fa-angle-down"></i>',e.each(function(e,t){var o,n,i,r,a,s;t.classList.contains("scrollable")||t.classList.contains("always-expanded")||t.offsetHeight<=250||(t.classList.add("scrollable"),o=l.cloneNode(!0),n=d.cloneNode(!0),i=t.firstElementChild.querySelector("*"),r=t.lastElementChild.querySelector("*"),i&&r&&(t.prepend(o),t.append(n),(a=new IntersectionObserver(function(e,t){e.forEach(function(e){e.target===i&&(e.isIntersecting?o.classList.remove("visible"):o.classList.add("visible")),e.target===r&&(e.isIntersecting?n.classList.remove("visible"):n.classList.add("visible"))})},{root:t,rootMargin:"0px",threshold:.75})).observe(i),a.observe(r),s="smooth",ModuleBody.reducedMotion&&(s="auto"),o.addEventListener("click",function(e){t.scrollBy({left:0,top:-140,behavior:s})},{passive:!0}),n.addEventListener("click",function(e){t.scrollBy({left:0,top:140,behavior:s})},{passive:!0})))}),void ModuleSidebar.initFixedSidebar())},initFixedSidebar:function(){var e,t,o;return Dom.html.hasClass("no-speed")||respondMaxOnly(739)?(Respond.offScroll("fixSidebar"),ModuleSidebar.unfixSidebar(),!1):(e=Respond.height-ModuleHeader.fixedHeaderHeight,t=Dom.mainContent.outerHeight(),o=Dom.subNav.outerHeight(),0<ModuleSidebar.adHeight&&(ModuleSidebar.adParentTop=Dom.subNav.parent.offset().top,ModuleSidebar.adOffset=ModuleSidebar.adParentTop+o-ModuleSidebar.adHeight),o<e&&o<t||0<ModuleSidebar.adHeight?(ModuleSidebar.fixSidebar(),Respond.offScroll("fixSidebar"),Respond.onScroll("fixSidebar",ModuleSidebar.fixSidebar),Respond.offLoad("fixSidebar").onLoad("fixSidebar",function(){setTimeout(function(){ModuleSidebar.fixSidebar()},525)})):ModuleSidebar.unfixSidebar(),!0)},unfixSidebar:function(){Dom.subNav.hasClass("fixed")&&Dom.subNav.removeClass("fixed").removeAttr("style")},fixSidebar:function(){var e=Dom.header.outerHeight()+12,t=Dom.subNav.outerHeight(),o=e;if(Respond.scrolled+e<Dom.subNav.parent.offset().top||Dom.mainContent.outerHeight()<=t)return ModuleSidebar.unfixSidebar(),!0;0<ModuleSidebar.adHeight&&(o=ModuleSidebar.adParentTop-Respond.scrolled,ModuleSidebar.adOffset-e<Respond.scrolled)&&(o=o+(Respond.scrolled-ModuleSidebar.adOffset)+e),Dom.subNav.css({width:Dom.subNav.outerWidth(),top:o+"px",left:Dom.subNav.parent.offset().left+10+"px"}).addClass("fixed");e=Dom.subNav.offset().top+t-(Dom.subNav.parent.offset().top+Dom.subNav.parent.outerHeight());0<=e&&Dom.subNav.css("top",o-e+"px")}},ModuleTranslation=(R.me("ModuleSidebar",!1),{init:function(){ModuleTranslation.initTranslationHome(),ModuleTranslation.initTranslation()},initTranslationHome:function(){},doTranslateHome:function(e,t,o,n,i){let r=[],a=[],s=[];["noscript","section.breadcrumb","section.heroshot","section#main-newsticker","h1.page-title","div.recommendations-area","section.banner","div.editorial-area","section.editorial","div.charts-area","div.columns.div.offers-area","div.offers-area","section.feedlist-extension","nav.sub-nav","div.linklist-area","section.textcontent","footer"].forEach(function(o,e){if("section.linklist-extension"==o){var t=document.querySelector(o);t&&(t=t.querySelectorAll("div.linklist-area"))&&t.forEach(function(e){var t=e.innerHTML.trim();""!=t&&(r.push(o),a.push(e),s.push(t))})}else if("section.heroshot"==o){var t=document.querySelector(o);t&&(t=t.querySelectorAll("a.slide"))&&t.forEach(function(e){var t=e.innerHTML.trim();""!=t&&(r.push(o),a.push(e),s.push(t))})}else if("classic"!=n&&"score"!=n||"nav.sub-nav"!=o){let e=document.querySelector(o);"div.columns.div.offers-area"==o&&(t=document.querySelector("div.columns"))&&(e=t.querySelector("div.offers-area")),(e="div.offers-area"==o?[...document.querySelectorAll(
2o)].pop():e)&&""!=(t=e.innerHTML.trim())&&(r.push(o),a.push(e),s.push(t))}}),ModuleTranslation.sendTranslateHome(r,a,s,e,t,o,n,i)},sendTranslateHome:function(n,i,e,t,o,r,a,s){Ajax.post({xjxfun:"getTranslationCategories",xjxargs:[1],dataType:"json",target_lang:t,page_lang:o,sourcepage:r,typnum:a,shop:s,content:JSON.stringify(e),selector:JSON.stringify(n)},function(e,t,o){try{data=e,n.forEach(function(e,t){void 0!==data[t]&&""!=data[t]&&(i[t].innerHTML=data[t],"div.recommendations-area"==e&&ModuleRecommendations.init(),"div.offers-area"!=e&&"div.columns.div.offers-area"!=e||ModuleBody.setCardBoxes())})}catch(e){console.log(e)}},function(e,t,o){console.log(o)})},initTranslation:function(){let t=document.querySelector(" .js--translationSelectorForm button");var e=document.querySelector(".js--translationSelector"),o=$("body").data("lang"),n=$("body").data("lang"),i=$("body").data("page"),r=$("main").data("typnum"),a=$("body").hasClass("is-translated"),s=$(".js--translationSelector"),l=$(".js--translationSelectorForm"),d=s.data("source-lang");if(6!==r&&!$("body").hasClass("cat-books")){if(!t)return!1;t?.classList.add("hidden"),"en"!==o||"en"===d||a?(e.addEventListener("change",e=>{""!==e.currentTarget.value?t?.classList.remove("hidden"):t?.classList.add("hidden")}),l.off("submit.js--translationSelectorForm").on("submit.js--translationSelectorForm",function(e){return e.preventDefault(),""!==(o=s.val())&&ModuleTranslation.dotranslate(o,i,n),document.querySelector(" .js--translationSelectorForm select").focus(),!1})):ModuleTranslation.dotranslate(o,i,n)}},dotranslate:function(s,e,n){var i,r,a,l,d,c,u,f,h,m,t,p,v,g,o,y=$(".js--translationSelector").data("source-lang");let b=document.querySelector(" .js--translationSelectorForm button");"de"===s&&"de"===y||"en"===s&&"en"===y?(o=$(".js--translationSelectorBox").Progress("div",!0),a=$("#red-text").find("div"),u=$(".original-spotlighttext").html(),i=$(".spotlight").find("div.text"),""!==u&&(i.html(u),i.removeAttr("lang"),$(".original-spotlighttext").html("")),a.each(function(){var e;"j"===$(this).data("pd")&&(e=$(".original-text-j").html(),$(this).html(e),$(this).removeAttr("lang"),$(".original-text-j").html("")),"k"===$(this).data("pd")&&(e=$(".original-text-k").html(),$(this).html(e),$(this).removeAttr("lang"),$(".original-text-k").html("")),"hint"===$(this).data("pd")&&(e=$(".original-text-hint").html(),$(this).html(e),$(this).removeAttr("lang"),$(".original-text-hint").html(""))}),t=$(".reviews").find(".reviews-list").find("article"),p=[],v=[],g=[],t.each(function(){var e=$
2(this).find(".kube-caption-org"),t=$(this).find(".kube-body-org"),o=$(this).find(".caption"),n=$(this).find(".caption");o.html(e.html()),o.removeAttr("lang"),n.html(t.html()),n.removeAttr("lang")}),"en"!==n||$(".js--translationSelectorBox").hasClass("englishOptionAdded")||($(".js--translationSelector option").eq(2).before($("<option></option>").val("en").text("English")),$(".js--translationSelectorBox").removeClass("englishOptionAdded").addClass("englishOptionAdded")),b?.classList.add("hidden"),o.stop()):"detail"===e&&(e=$("main").data("hnum"),r=(i=$(".spotlight").find("div.text")).html(),a=$("#red-text").find("div"),$(".box.content"),c=d=l="",a.each(function(){"j"===$(this).data("pd")&&(l=$(this).html(),$(this).addClass("in-translation")),"k"===$(this).data("pd")&&(d=$(this).html(),$(this).addClass("in-translation")),"hint"===$(this).data("pd")&&(c=$(this).html(),$(this).addClass("in-translation"))}),u=$(".original-spotlighttext").html(),f=$(".original-text-j").html(),h=$(".original-text-k").html(),m=$(".original-text-hint").html(),""!==u&&(r=u),""!==f&&(l=f),""!==h&&(d=h),""!==m&&(c=m),t=$(".reviews").find(".reviews-list").find("article"),p=[],v=[],g=[],t.each(function(){var e=$
2(this).data("id"),t=$(this).find(".caption"),o=t.html(),n=$(this).find(".body"),i=n.html(),r=(t.addClass("in-translation"),n.addClass("in-translation"),"kube-caption-org-"+e),a="kube-body-org-"+e,s=document.getElementById(r),l=document.getElementById(a);null===s?t.after('<div class="kube-caption-org" id="'+r+'">'+o+"</div>"):o=s.innerText,null===l?n.after('<div class="kube-body-org" id="'+a+'">'+i+"</div>"):i=l.innerText,p.push(e),v.push(o),g.push(i)}),$("body").removeClass("is-translated").addClass("is-translated"),o=$(".js--translationSelectorBox").Progress("div",!0),Ajax.post({xjxfun:"getTranslationDetail",xjxargs:[1],dataType:"json",target_lang:s,source_lang:y,sourcepage:"detail",hnum:e,spotlighttext:r,redtextj:l,redtextk:d,redtexthint:c},function(e,t,o){""===u&&$(".original-spotlighttext").html(r),""===f&&$(".original-text-j").html(l),""===h&&$(".original-text-k").html(d),""===m&&$(".original-text-hint").html(c);try{"error"!==(data=e)&&(""!==data.spotlight&&(i.html(data.spotlight),i.attr("lang",s)),a.each(function(){"j"===$(this).data("pd")&&""!==data.redtextj&&($(this).html(data.redtextj),$(this).attr("lang",s)),"k"===$(this).data("pd")&&""!==data.redtextk&&($(this).html(data.redtextk),$(this).attr("lang",s)),"hint"===$(this).data("pd")&&""!==data.redtexthint&&($(this).html(data.redtexthint),$(this).attr("lang",s))}),"en"===n||"en"!==y||$(".js--translationSelectorBox").hasClass("germanOptionAdded")?"en"===n||$(".js--translationSelectorBox").hasClass("germanOptionAdded")||($(".js--translationSelector option").eq(1).before($("<option></option>").val("de").text("German")),$(".js--translationSelectorBox").removeClass("germanOptionAdded").addClass("germanOptionAdded")):($(".js--translationSelector option").eq(1).before($("<option></option>").val("en").text("English")),$(".js--translationSelectorBox").removeClass("germanOptionAdded").addClass("germanOptionAdded")))}catch(e){console.log("tryCatch",e)}},null,function(e){console.log("error",e),o.stop(),b?.classList.add("hidden"),a.each(function(){"j"===$(this).data("pd")&&$(this).removeClass("in-translation"),"k"===$(this).data("pd")&&$(this).removeClass("in-translation"),"hint"===$(this).data("pd")&&$(this).removeClass("in-translation")})}),"de"!==s&&Ajax.post({xjxfun:"getTranslationKube",xjxargs:[1],dataType:"json",target_lang:s,sourcepage:"kube",hnum:e,kubeids:JSON.stringify(p),kubecaptions:JSON.stringify(v),kubebodies:JSON.stringify(g)},function(e,t,o){try{if("error"!==(data=e))for(var n=$(".reviews").find(".reviews-list"),i=0;i<p.length;i++){var r=n.find(".review-"+p[i]).find(".caption"),a=(void 0!==r&&(r.html(data.captions[i]),r.attr("lang",s)),n.find(".review-"+p[i]).find(".body"));void 0!==a&&(a.html(data.bodies[i]),a.attr("lang",s))}}catch(e){}},null,function(e){o.stop(),b?.classList.add("hidden"),t.each(function(){$(this).find(".caption").removeClass("in-translation"),$(this).find(".body").removeClass("in-translation")})}),ModuleTranslation.initTranslation())}}),ModuleDfp=(R.me("ModuleTranslation",!1),{scrollEvent:null,loadObserver:null,init:function(){if(Dom.dfpOutside=$(".adexchange-container-outside"),Dom.footer=null!==Dom.footer?Dom.footer:$("footer"),Dom.header=null!==Dom.header?Dom.header:$("header"),!Dom.dfpOutside[0]||!Dom.header[0])return!1;Dom.heroshotArea=$("section.heroshot").find(".slides"),Dom.searchArea=$(".searchresult").find(".filter"),Dom.recommendationsArea=$(".recommendations-area"),Dom.imageslotArea=$(".imageslot-area"),Dom.bannerArea=$(".banner-area"),Dom.highlightArea=$(".highlight-area"),Dom.breadcrumb=$("section.breadcrumb");var e=ModuleDfp.getUppermostAnchorElement();ModuleDfp.initDfpOutsideChange(Dom.dfpOutside.get(0),Dom.header.get(0),Dom.footer.get(0),e)},getUppermostAnchorElement:function(){var i=null;return["heroshotArea","searchArea","recommendationsArea","imageslotArea","bannerArea","highlightArea"].forEach(function(e){var t,o,n;if(i instanceof HTMLElement)return(t=Dom[e].get(0))instanceof HTMLElement?(o=t.getBoundingClientRect(),n=i.getBoundingClientRect(),void(0<o.top&&o.top<n.top&&(i=t))):void 0;i=Dom[e].get(0)}),i},initDfpOutsideChange:function(o,t,e,n){function i(){e=o.getBoundingClientRect(),t=d();
2var e,t={left:c(),top:Math.min(l(),t-e.height)};t.left!==s.left&&(o.style.left=t.left+"px"),t.top!==s.top&&(o.style.top=t.top+"px"),s=t}function r(){i(),o.classList.remove("hidden")}var a=t.getBoundingClientRect().bottom,s={left:null,top:null},l=function(){var e;return n&&0<(e=n.getBoundingClientRect()).top&&(a=e.top),Math.max(a,t.getBoundingClientRect().bottom)},d=function(){return e?e.getBoundingClientRect().y:window.outerHeight},c=function(){var e=t.querySelector(".wrapper");return null===e?0:e.getBoundingClientRect().right},u=null;"function"==typeof ModuleDfp.scrollEvent&&window.removeEventListener("scroll",ModuleDfp.scrollEvent),ModuleDfp.scrollEvent=function(){clearTimeout(u),matchMedia("@media screen and (max-width: 1319px)").matches||(u=setTimeout(i,10))},window.addEventListener("scroll",ModuleDfp.scrollEvent),Respond.onResize("dfpOutside",i);"1"===o.querySelector("ins").dataset.reviveLoaded?r():(ModuleDfp.loadObserver instanceof MutationObserver&&ModuleDfp.loadObserver.disconnect(),ModuleDfp.loadObserver=new MutationObserver(function(e,t){e.forEach(function(e){"attributes"===e.type&&"data-revive-loaded"===e.attributeName&&"1"===e.target.dataset.reviveLoaded&&(r(),t.disconnect())})}),ModuleDfp.loadObserver.observe(o,{childList:!0,subtree:!0,attributeFilter:["data-revive-loaded"]}))}});function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_toPropertyKey(n.key),n)}}function _createClass(e,t,o){return t&&_defineProperties(e.prototype,t),o&&_defineProperties(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e}function _toPropertyKey(e){e=_toPrimitive(e,"string");return"symbol"==_typeof(e)?e:e+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var o=e[Symbol.toPrimitive];if(void 0===o)return("string"===t?String:Number)(e);o=o.call(e,t||"default");if("object"!=_typeof(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}R.me("ModuleDfp",!1);var Overlay=(()=>{function i(e){_classCallCheck(this,i),this.classIdentifier=e,this.previousSubmitFn=null,this.previousResponseFn=null,this._reloadOnClose=!1,"string"==typeof e&&this._initElements()}return _createClass(i,[{key:"_initElements",value:function(){var t=this;if(this.dialog=document.querySelector("dialog.overlay."+this.classIdentifier),!this.dialog)throw new Error("overlay "+this.classIdentifier+" not found");this.dialog.removeAttribute("aria-live"),this.dialog.addEventListener("cancel",function(e){e.preventDefault(),t.close()}),this._form=this.dialog.querySelector("jpc-form,form"),this.isPlainForm&&ModuleFormShop.watchValidityChange(this._form),this.responseFn=null,this.submitFn=null,this.xhr=null,this.closeBtn=this.dialog.querySelector(".head .close"),this.closeFn=null,this.closeFnBefore=null,this.closeFnAfter=null,this._initCloseBtn()}},{key:"update",value:function(e,t,o){this._savePreviousHandlers(),this._removeEventListener();var n=document.querySelector(".overlay."+this.classIdentifier);n.after(n.cloneNode(!0)),n.remove(),this.dialog=document.querySelector(".overlay."+this.classIdentifier),this.dialog.outerHTML=e,"string"==typeof t&&(this.classIdentifier=t),!0===o?this.dialog.setAttribute("role","alertdialog"):this.dialog.removeAttribute("role"),this._initElements()}},{key:"create",value:function(e,t,o){var n=document.createElement("dialog");n.classList.add("overlay",t),document.body.append(n),this.dialog=document.querySelector(".overlay."+t),this.dialog.outerHTML=e,this.classIdentifier=t,!0===o?this.dialog.setAttribute("role","alertdialog"):this.dialog.removeAttribute("role"),this._initElements()}},{key:"reset",value:function(){this.update(this.dialog.outerHTML)}},{key:"removeFromDom",value:function(){this.dialog&&this.dialog.remove()}},{key:"load",value:function(e,t,o,i,r){var n,a=this;return null===document.querySelector(".overlay."+e)&&((n=document.createElement("dialog")).classList.add("overlay",e),o.parentElement.append(n)),this.classIdentifier=e,new Promise(function(n,e){a._request(t,i,function(e,t,o){a.update(t.responseText),n(t)},r)})}},{key:"reattachPreviousHandlers",value:function(){this.previousSubmitFn&&(this.submitFn=this.previousSubmitFn,this.previousSubmitFn=null,this._form.addEventListener("submit",this.submitFn)),this.previousResponseFn&&(this.responseFn=this.previousResponseFn,this.previousResponseFn=null)}},{key:"setInputValue",value:function(e,t){var o=this.querySelector("input[name=".concat(e,"]"));if(!o)throw Error("could not find input with name ".concat(e));o.value=t}},{key:"querySelector",value:function(e){return document.querySelector("dialog."+this.classIdentifier+" "+e)}},{key:"querySelectorAll",value:function(e){return document.querySelectorAll("dialog."+this.classIdentifier+" "+e)}},{key:"onSubmit",value:function(e,t){if(!this._form)throw new Error("no form inside overlay");this.submitFn&&this._form.removeEventListener("submit",this.submitFn),this.submitFn=!0===t?e:this._getDefaultSubmitFn(e),this._form.addEventListener("submit",this.submitFn)}},{key:"onResponse",value:function(e){if(!this._form)throw new Error("no form inside overlay");this.submitFn||this.onSubmit(function(){}),this.responseFn=e}},{key:"onBeforeClose",value:function(e){this.closeFnBefore=e}},{key:"onAfterClose",value:function(e){this.closeFnAfter=e}},{key:"hideCloseButton",value:function(){var e=this.querySelector(".head button.close");e&&e.classList.add("hidden")}},{key:"onCloseDoReload",value:function(){this._reloadOnClose=!0}},{key:"open",value:function(){this.dialog.querySelectorAll("div.progress.active").forEach(function(e){return e.remove()}),this.dialog.showModal(),this.dialog.focus();var e=this.dialog.querySelector(".wrapper");e&&e.scrollTo(0,0)}},{key:"close",value:function(){this.closeFn?this.closeFn():this.dialog.close()}},{key:"submit",value:function(){var e;this._form&&(e=new Event("submit",{cancelable:!0}),this._form.dispatchEvent(e))}},{key:"form",get:function(){return this._form||null}},{key:"isPlainForm",get:function(){return!!this._form&&"FORM"===this._form.tagName}},{key:"formAction",get:function(){return this._form&&this._form.getAttribute("action")||""}},{key:"formMethod",get:function(){return this._form&&this._form.getAttribute("method")||"get"}},{key:"formData",get:function(){return this._form?this.isPlainForm?new FormData(this._form):new FormData(this._form.querySelector("form")):new FormData}},{key:"_removeEventListener",value:function(){this.submitFn&&this._form.removeEventListener("submit",this.submitFn),this.closeBtn&&this.closeBtn.removeEventListener("click",this.closeFn)}}
2,{key:"_initCloseBtn",value:function(){var e=this;this.closeBtn&&(this.closeFn||(this.closeFn=function(){"function"==typeof e.closeFnBefore&&e.closeFnBefore(e),e._reloadOnClose?location.reload():(e.isPlainForm&&(e._form.querySelectorAll(".box.error").forEach(function(e){return e.remove()}),e._form.querySelectorAll("input.error, select.error").forEach(function(e){return e.classList.remove("error")}),e._form.reset(),e._form.querySelectorAll("input.clear-on-close").forEach(function(e){e.value=""}),e._form.querySelectorAll(".remove-on-close").forEach(function(e){e.remove()})),e.dialog.close()),"function"==typeof e.closeFnAfter&&e.closeFnAfter(e)}),this.closeBtn.removeEventListener("click",this.closeFn),this.closeBtn.addEventListener("click",this.closeFn))}},{key:"_replaceWithUnrecoverableError",value:function(e,t){this._removeEventListener(),this.update(e,t),document.querySelector(".error-reload").addEventListener("click",function(){location.reload()}),this.onCloseDoReload(),this.open()}},{key:"_createHeaderMap",value:function(e){var e=e.trim().split(/[\r\n]+/),o={};return e.forEach(function(e){var e=e.split(": "),t=e.shift();o[t]=e.join(": ")}),o}},{key:"_getDefaultSubmitFn",value:function(o){var n=this;return function(e){e.preventDefault(),n.setLoadingState();var t=n.formData;"function"==typeof o&&o(n,e),n._request(n.formAction,n.formMethod,function(e,t,o){"function"==typeof e.responseFn&&(e.responseFn(e,t,o),e.onResponse(e.responseFn))},t)}}},{key:"_request",value:function(e,t,o,n){var i=new XMLHttpRequest,r=this;i.addEventListener("load",function(){var e;401===this.status?location.reload():void 0!==(e=r._createHeaderMap(this.getAllResponseHeaders()))["x-unrecoverable-error-template"]?r._replaceWithUnrecoverableError(this.responseText,e["x-unrecoverable-error-template"]):"function"==typeof o&&o(r,this,e)}),i.open(t,e),"GET"!==t?i.send(n):i.send()}}
2,{key:"setLoadingState",value:function(e){(e=e||this.dialog.querySelector("button[type=submit]"))&&(LoadingState.addProgressBar(e),e.setAttribute("disabled",""))}},{key:"setLoadingFinishedState",value:function(e){(e=e||this.dialog.querySelector("button[type=submit]"))&&(e.classList.remove("loading"),e.removeAttribute("disabled"),LoadingState.clearProgressBar(e))}},{key:"_savePreviousHandlers",value:function(){this.submitFn&&(this.previousSubmitFn=this.submitFn),this.responseFn&&(this.previousResponseFn=this.responseFn)}}],[{key:"addOpeningBehaviour",value:function(){var e=document.querySelectorAll("[overlay-open]:not([data-overlay-known])");e.length<=0||("object"!==("undefined"==typeof htmx?"undefined":_typeof(htmx))||document.body.dataset.overlayHtmxInitialized||(document.body.dataset.overlayHtmxInitialized="1",htmx.on("htmx:afterSwap",function(){i.addOpeningBehaviour()})),e.forEach(function(e){e.dataset.overlayKnown="1";var t=e.closest("[overlay-open]").getAttribute("overlay-open");e.setAttribute("aria-controls",t),e.setAttribute("aria-haspopup","dialog"),e.addEventListener("click",function(e){var t,e=e.target.closest("[overlay-open]");e&&((t=new i(e.getAttribute("overlay-open"))).querySelectorAll("button.close").forEach(function(e){e.addEventListener("click",function(){return t.close()})}),t.open())})}))}},{key:"displayStandardError",value:function(e,t){var t="en"===document.body.dataset.lang?(o="Error",e=null!=t?t:"Something went wrong. Please try again later.","Close"):(e=null!=e?e:"Etwas ist schief gegangen. Bitte versuchen Sie es später erneut.",o="Fehler","Schließen"),o='\n        <dialog class="overlay error" role="alertdialog">\n            <div class="wrapper">\n                <span class="head">\n                    '.concat(o,'\n                    <button class="close">\n                        <img src="/m/m/svg/icon-close-dialog.svg"\n                             width="18" height="18"\n                             alt="').concat(t,'">\n                    </button>\n                </span>\n                <div class="content">\n                    <div class="msg warn">').concat(e,'</div>\n                    <button class="btn close">').concat(t,"</button>\n                </div>\n            </div>\n        </dialog>\n        "),n=new i(null);n.create(o,"error"),n.querySelector(".btn.close").addEventListener("click",function(){n.close(),n.removeFromDom()}),n.open()}}])})();function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_toPropertyKey(n.key),n)}}function _createClass(e,t,o){return t&&_defineProperties(e.prototype,t),o&&_defineProperties(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e}function _toPropertyKey(e){e=_toPrimitive(e,"string");return"symbol"==_typeof(e)?e:e+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var o=e[Symbol.toPrimitive];if(void 0===o)return("string"===t?String:Number)(e);o=o.call(e,t||"default");if("object"!=_typeof(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}window.addEventListener("load",function(){Overlay.addOpeningBehaviour()}),R.me("Overlay",["LoadingState"]);var PageDetailHeaderproduct=(()=>_createClass(function e(){_classCallCheck(this,e),this.head=document.querySelector(".page header:first-child"),this.image=document.querySelector(".main-image img"),this._headerProduct=document.querySelector("main.product article .headerproduct"),this.headerProductInit=!1},[{key:"initScroll",value:function(){var o,e,n;!this._headerProduct||(o=!0,n=this,e=null)||(e=function(){o=!0},window.addEventListener("scroll",e),setInterval(function(){var e,t;o&&(o=!1,e=n.image.getBoundingClientRect(),t=n.head.getBoundingClientRect(),!e||!t||e.bottom>t.bottom?n.head.classList.remove("with-product"):(n.headerProductInit||n._initHeaderProduct(),n.head.classList.add("with-product")))},200))}},{key:"_initHeaderProduct",value:function(){var t=this;this.headerProductInit=!0,this._headerProduct=this._headerProduct.cloneNode(!0),""===this._headerProduct.querySelector(".title").innerText&&this._headerProduct.classList.add("only-title"),this.head.querySelector(".wrapper:first-child").append(this._headerProduct);$(this.head.querySelector(".cart-form")).off("submit.submit").on("submit.submit",function(e){PageDetail.sendCartForm(e),t.head.querySelector(".cart-form button").setAttribute("disabled","1")})}}]))();function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_toPropertyKey(n.key),n)}}function _createClass(e,t,o){return t&&_defineProperties(e.prototype,t),o&&_defineProperties(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e}function _toPropertyKey(e){e=_toPrimitive(e,"string");return"symbol"==_typeof(e)?e:e+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var o=e[Symbol.toPrimitive];if(void 0===o)return("string"===t?String:Number)(e);o=o.call(e,t||"default");if("object"!=_typeof(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}var ModulePagination=(()=>_createClass(function e(t){_classCallCheck(this,e),this.container=t},[{key:"init",value:function(){var d,c,u,e,t;this.container&&(d=this.container.querySelectorAll(".pagination"),c=this.container.querySelectorAll(".pagination .window"),null===(u=this.container.querySelector(".pagination > .clickable"))&&(u=this.container.querySelector(".pagination li > .clickable")),d.length<=0||(e=function(){var e=c[0],t=null!=(n=c[1])?n:null,o=(d.forEac
2h(function(e){return e.classList.remove("shrink")}),-1),n=(e.querySelectorAll(".clickable").forEach(function(e,t){e.classList.remove("hidden"),o<=0&&e.classList.contains("active")&&(o=t)}),t&&t.querySelectorAll(".hidden").forEach(function(e){return e.classList.remove("hidden")}),e.querySelectorAll(".clickable").length),i=e.querySelector(".clickable:not(.hidden)").getBoundingClientRect().width,r=e.getBoundingClientRect().width,r=Math.floor(r/i),a=u.getBoundingClientRect().width;if(n<=r)1.1*i<a&&d.forEach(function(e){return e.classList.add("shrink")});else{var s=o-Math.floor(r/2);if(!(s<0)){n-r<s&&(s=n-r);for(var l=1;l<=s;l++)e.querySelector(".clickable:nth-child(".concat(l,")")).classList.add("hidden"),t&&t.querySelector(".clickable:nth-child(".concat(l,")")).classList.add("hidden")}}},"set"!==document.body.dataset.modulePaginationInit&&window.addEventListener("resize",function(){clearTimeout(t),t=setTimeout(e,100)}),document.body.dataset.modulePaginationInit="set",e()))}},{key:"afterSwapScrollTo",value:function(t){htmx.on("htmx:afterSwap",function(e){e.detail.requestConfig.elt.closest(".pagination")&&(e=t.getBoundingClientRect(),window.scrollTo({top:e.y,left:0,behavior:"smooth"}))})}}]))();function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_toPropertyKey(n.key),n)}}function _createClass(e,t,o){return t&&_defineProperties(e.prototype,t),o&&_defineProperties(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e}function _toPropertyKey(e){e=_toPrimitive(e,"string");return"symbol"==_typeof(e)?e:e+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var o=e[Symbol.toPrimitive];if(void 0===o)return("string"===t?String:Number)(e);o=o.call(e,t||"default");if("object"!=_typeof(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}R.me("ModulePagination",!1);var RatingRadioGroup=(()=>_createClass(function e(t){_classCallCheck(this,e),this.groupNode=t,this.radioButtons=[],this.firstRadioButton=null,this.lastRadioButton=null;for(var o=this.groupNode.querySelectorAll("[type=radio]"),n=0;n<o.length;n++){var i=o[n];i.addEventListener("keydown",this.handleKeydown.bind(this)),i.addEventListener("click",this.handleClick.bind(this)),i.addEventListener("focus",this.handleFocus.bind(this)),i.addEventListener("blur",this.handleBlur.bind(this)),this.radioButtons.push(i),this.firstRadioButton||(this.firstRadioButton=i),this.lastRadioButton=i}this.firstRadioButton.tabIndex=0},[{key:"setChecked",value:function(e){for(var t=0;t<this.radioButtons.length;t++){var o=this.radioButtons[t];o.removeAttribute("checked"),o.checked=!1,o.tabIndex=-1}this.groupNode.classList.remove("unset"),e.setAttribute("checked","1"),e.checked=!0,e.tabIndex=0,e.focus()}},{key:"setCheckedToPreviousItem",value:function(e){e===this.firstRadioButton?this.setChecked(this.lastRadioButton):(e=this.radioButtons.indexOf(e),this.setChecked(this.radioButtons[e-1]))}},{key:"setCheckedToNextItem",value:function(e){e===this.lastRadioButton?this.setChecked(this.firstRadioButton):(e=this.radioButtons.indexOf(e),this.setChecked(this.radioButtons[e+1]))}},{key:"handleKeydown",value:function(e){var t=e.currentTarget,o=!1;switch(e.key){case" ":this.setChecked(t),o=!0;break;case"Up":case"ArrowUp":case"Left":case"ArrowLeft":this.setCheckedToPreviousItem(t),o=!0;break;case"Down":case"ArrowDown":case"Right":case"ArrowRight":this.setCheckedToNextItem(t),o=!0}o&&(e.stopPropagation(),e.preventDefault())}},{key:"handleClick",value:function(e){this.setChecked(e.currentTarget)}},{key:"handleFocus",value:function(e){e.currentTarget.classList.add("focus")}},{key:"handleBlur",value:function(e){e.currentTarget.classList.remove("focus")}}]))();function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){var o;if(e)return"string"==typeof e?_arrayLikeToArray(e,t):"Map"===(o="Object"===(o={}.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:o)||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?_arrayLikeToArray(e,t):void 0}function _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=Array(t);o<t;o++)n[o]=e[o];return n}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_toPropertyKey(n.key),n)}}function _createClass(e,t,o){return t&&_defineProperties(e.prototype,t),o&&_defineProperties(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e}function _toPropertyKey(e){e=_toPrimitive(e,"string");return"symbol"==_typeof(e)?e:e+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var o=e[Symbol.toPrimitive];if(void 0===o)return("string"===t?String:Number)(e);o=o.call(e,t||"default");if("object"!=_typeof(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}R.me("RatingRadioGroup",!1);var ModuleReviews=(()=>{function s(){_classCallCheck(this,s)}return _createClass(s,[{key:"init",value:function(){var e,t=document.querySelector("aside.reviews");t&&((e=this).initHtmxOnError(),e.initHtmxAfterSwap(e),e.initHtmxBeforeRequest(),e.initPagination(t),e.initBarReveal())}},{key:"initHtmxOnError",value:function(){htmx.on("htmx:responseError",function(e){var t=null!=(t=e.detail.elt)?t:null;t&&t.closest(".helpful")?Overlay.displayStandardError("Ihre Bewertung konnte nicht gespeichert werden. Bitte versuchen Sie es später erneut.","Your feedback could not be saved. Please try again later."):t&&t.closest(".productsearch")&&404===e.detail.xhr.status||Overlay.displayStandardError()})}},{key:"initPagination",value:function(e){e=e.querySelector(".pagination-container");new ModulePagination(e).init()}},{key:"initHtmxAfterSwap",value:function(a){htmx.on("htmx:afterSwap",function(e){var t=e.detail.elt,o=t.closest(".with-spinner"),n=t.closest("dialog"),i=(n&&e.detail.target instanceof HTMLDialogElement&&n.setAttribute("aria-live","off"),(o=!o&&e.detail.requestConfig&&e.detail.requestConfig.elt?e.detail.requestConfig.elt:o)&&(a.applyOkayState(null!=(n=e.detail.requestConfig)?n:null),o.setAttribute("aria-busy","false")),e.detail.requestConfig.elt);switch(i.dataset.afterswap){case"newListLoaded":Imagehandler.init(t),a.initBarReveal(),a.initPagination(document.querySelector("aside.reviews,.overview-container")),Imagehandler.init(t),a.applyOkayState(null!=(r=e.detail.requestConfig)?r:null);break;case"updateOverlay":if(i.classList.contains("productsearch"))return;var r=null!=(r=i.dataset.overlayid)?r:"";""===r?console.error("reviews updateOverlay: no oid found"):a.initOverlay(r)}})}},{key:"initHtmxBeforeRequest",value:function(){htmx.on("htmx:beforeRequest",function(e){var t=e.detail.elt,o=t.closest(".with-spinner"),n=t.closest(".focus-this-after-kube-dialog"),t=t.closest("dialog");t&&e.detail.target instanceof HTMLDialogElement&&t.setAttribute("aria-live","assertive"),o&&o.setAttribute("aria-busy","true"),n&&(document.querySelectorAll(".focus-this-after-kube-dialog").forEach(function(e){return e.classList.remove("focus-this-after-kube-dialog")}),n.classList.add("focus-this-after-kube-dialog"))})}},{key:"initNickname",value:function(){var e=document.querySelector(".about-me.loggedin"),t=this;e&&(e=e.querySelector(".author .nickname_force_anonym input[type=checkbox]"))&&e.addEventListener("change",function(e){t.handleNicknameToggle(e)})}},{key:"initNicknameComment",value:function(){var e,t,o,n,i=document.querySelector(".about-me.comment");i&&i.classList.contains("logged-in")&&(e=i.querySelector("#forceAnonym"),t=i.querySelector('input[name="nickname"]'),o=i.querySelector(".email-notification"),e.addEventListener("change",n=function(){e.checked?(i.classList.add("force-anonym"),o.querySelector('input[type="checkbox"]').checked=!1):i.classList.remove("force-anonym"),i.classList.contains("force-anonym")||i.classList.contains("with-nickname")?t.removeAttribute("required"):t.setAttribute("required","1")}),n())}},{key:"handleNicknameToggle",value:function(e){var e=e.currentTarget,t=e.closest(".about-me"),o=t.querySelector(".nickname .anonym"),n=t.querySelector(".nickname .name"),i=t.querySelector(".nickname_force_anonym .anonym"),r=t.querySelector(".nickname_force_anonym .name"),a=t.querySelector(".send-mail-notification"),s=t.querySelector("#rating-nickname-status"),l=s.dataset.lang;e.checked?(n.classList.add("hidden"),o.classList.remove("hidden"),r.classList.remove("hidden"),i.classList.add("hidden"),a.classList.add("hidden"),a.querySelector('input[type="checkbox"]').checked=!1,t.classList.add("anonym"),s.innerText="en"===l?"Review anonymously":"Anonym rezensieren"):(n.classList.remove("hidden"),o.classList.add("hidden"),r.classList.add("hidden"),i.classList.remove("hidden"),a.classList.remove("hidden"),t.classList.remove("anonym"),e=n.innerText,s.innerText="en"==l?'Review as "'+e+'"':'Als "'+e+'" rezensieren')}},{key:"searchRecommendations",value:function(e){var o,n,t,i,r,a=document.querySelector("dialog.overlay.kube[open] form .product-recommendation div.productsearch");a&&!a.querySelector("button.productsearch").classList.contains("htmx-request")&&""!==(r=a.querySelector("input[type=search]").value.trim()).trim()&&(o=document.querySelector("#productsearch-loading-status"),n=document.documentElement.lang.startsWith("de"),o.removeAttribute("hidden"),r=7!==r.length&&8!==r.length||!parseInt(r)?(i="/s/"+encodeURIComponent(r)+"?IgnoreVisit=1&dataType=html&output=kube_recommmendations",t=null,"GET"):(t={hnum:r,language:Dom.body.data("lang")},i="/kube/hnum/","POST"),o.textContent="",o.innerHTML=n?"Suche Artikel":"Searching products",a.setAttribute("aria-busy","true"),a.classList.remove("searched"),document.querySelector("#target01").innerText="",htmx.ajax(r,i,{source:"button.productsearch",target:"#target01",swap:"innerHTML",values:t}).then(function(e){var t=document.querySelector("#target01");a.classList.add("searched"),s.handleSearchData(),a.setAttribute("aria-busy","false"),0===t.querySelectorAll(".entry").length?(a.classList.add("no-result"),o.innerHTML=n?"Keine passenden Art
2ikel gefunden":"No matching products found"):(a.classList.remove("no-result"),o.innerHTML=n?"Artikel geladen":"Products loaded"),t.scrollTo(0,0)}))}},{key:"handleSearchFieldEnter",value:function(e){var t=document.querySelector("dialog.overlay.kube[open] form .product-recommendation div.productsearch");t&&(t=t.querySelector("button.productsearch"),"Enter"===e.key)&&(t.click(),e.preventDefault())}},{key:"initProductRecommendations",value:function(){var e,t=document.querySelector("#target02"),t=(t&&(t.removeEventListener("click",s.removeArticle),t.addEventListener("click",s.removeArticle)),document.querySelector("dialog.overlay.kube[open] form .product-recommendation div.productsearch"));t&&(e=t.querySelector("input[type=search]"),t=t.querySelector("button.productsearch"),e.removeEventListener("keydown",this.handleSearchFieldEnter),e.addEventListener("keydown",this.handleSearchFieldEnter),t.removeEventListener("click",this.searchRecommendations),t.addEventListener("click",this.searchRecommendations))}},{key:"applyOkayState",value:function(e){var t=null!=(e=e.elt)?e:null;t&&t.classList.contains("only-once")&&(t.closest("div.helpful").querySelectorAll(".only-once").forEach(function(e){return e.setAttribute("disabled","")}),setTimeout(function(){t.classList.add("okay")},200))}},{key:"initOverlay",value:function(e){var t=new Overlay(e);t.onAfterClose(function(){t.dialog.remove()}),t.querySelectorAll(".content .close").forEach(function(e){return e.addEventListener("click",function(){return t.close()})}),t.open(),document.querySelector("dialog.".concat(e)).addEventListener("close",function(e){var t=document.querySelector(".focus-this-after-kube-dialog");t&&t.focus()}),this.initProductRecommendations(),this.initHandlePreview(t),Imagehandler.init(t.dialog),this.initNickname(),this.initNicknameComment(),this.initRatingStars(t),this.initTextareaMinimumTextLength(t),this.initBarReveal(),this.handleErrorFocus(),ModuleForm.init()}},{key:"initBarReveal",value:function(){var e,t,o,n=document.querySelectorAll(".set-width-on-reveal:not(.revealed)");0===n.length||(e=!0,o=this,t=null)||(t=function(){e=!0},window.addEventListener("scroll",t),setInterval(function(){e&&(e=!1,n.forEach(function(e){!e.classList.contains("revealed")&&o.isScrolledIntoView(e)&&(e.style.width=e.dataset.width,e.classList.add("revealed"))}))},200))}},{key:"isScrolledIntoView",value:function(e){e=e.getBoundingClientRect();return e.top<window.innerHeight&&0<=e.bottom}},{key:"initRatingStars",value:function(e){e.querySelectorAll(".rating-radiogroup").forEach(function(e){new RatingRadioGroup(e)})}},{key:"initTextareaMinimumTextLength",value:function(e){var t,o,n=e.querySelector('textarea[name="bewertungstext"]'),i=e.querySelector(".required-chars");n&&i&&(t=parseInt(n.getAttribute("minlength")),o=i.querySelector("b"),isNaN(t)||t<=0||!o||(n.addEventListener("keyup",e=function(){var e=n.value.length;e<t&&(i.classList.remove("hidden"),o.innerText=String(t-e)),t<=e&&i.classList.add("hidden")}),n.addEventListener("change",e),e()))}},{key:"initHandlePreview",value:function(e){e.querySelector(".reviewform")&&htmx.on("htmx:beforeRequest",function(e){var t,o=e.detail.elt,e=e.detail.requestConfig;e.triggeringEvent&&e.triggeringEvent.submitter&&(t=e.triggeringEvent.submitter,o.classList.contains("reviewform")||o.classList.contains("send-review"))&&o.querySelectorAll(".with-spinner").forEach(function(e){e!==t&&(e.classList.remove("with-spinner"),e.setAttribute("disabled","1"))})})}},{key:"handleErrorFocus",value:function(){var e=document.querySelector("div.msg.danger");e&&e.hasAttribute("tabindex")&&e.focus()}}],[{key:"addArticle",value:function(e){var t,o,n,i=e.target.closest("button");"true"===i.getAttribute("aria-pressed")?s.removeArticle(e):(t=e.target.closest("[data-hnum]").dataset.hnum,n=(o=document.querySelector("#target02")).querySelector('[data-hnum="'.concat(t,'"]')),i.setAttribute("aria-pressed","true"),n||(o.removeAttribute("hidden"),(i=e.target.closest(".entry").cloneNode(!0)).querySelector(".product").classList.remove("product"),i.querySelector(".add-product").className="remove-product",i.querySelector(".remove-product").setAttribute("aria-describedby","product-recommendation-".concat(t)),(n=document.createElement("div")).classList.add("product"),n.prepend.apply(n,_toConsumableArray(i.querySelectorAll("img.cover,.content"))),n.id="product-recommendation-".concat(t),i.prepend(n),o.append(i),(e=o.querySelector('[data-hnum="'.concat(t,'"]'))).querySelector("[aria-pressed]").removeAttribute("aria-pressed"),e.querySelector(".trash[aria-hidden]").removeAttribute("aria-hidden"),(n=document.createElement("input")).type="hidden",n.name="empfehlungen",n.setAttribute("value",t),e.append(n)))}},{key:"removeArticle",value:function(e){var t=e.target.closest(".entry"),o=document.querySelector("#target02"),n=document.querySelector("#productsearch"),i=t.previousElementSibling,e=null!==e.target.closest("#target02"),r=e&&null!==i;t&&(t=t.closest("[data-hnum]").dataset.hnum,o.querySelector('[data-hnum="'.concat(t,'"]')).remove(),o.querySelector(".entry")||o.setAttribute("hidden",""),(o=document.querySelector("#target01").querySelector('[data-hnum="'.concat(t,'"]')))&&o.querySelector("[aria-pressed]").setAttribute("aria-pressed","fal
2se"),r?i.querySelector("button").focus():e&&n.focus())}},{key:"handleSearchData",value:function(){var e,t=document.querySelector("#target01"),o=t.querySelectorAll(".product-recommendations li");t.classList.remove("hidden"),0===o.length?((e=document.querySelector("#errortextProductSearch").cloneNode(!0)).removeAttribute("id"),e.removeAttribute("hidden"),t.append(e)):o.forEach(function(e){var t=e.closest("[data-hnum]").dataset.hnum,e=e.querySelector("button");document.querySelector('#target02 [data-hnum="'.concat(t,'"]'))&&e.setAttribute("aria-pressed","true"),e.removeEventListener("click",s.addArticle),e.addEventListener("click",s.addArticle)})}}])})();function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _createForOfIteratorHelper(e,t){var o,n,i,r,a="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(a)return i=!(n=!0),{s:function(){a=a.call(e)},n:function(){var e=a.next();return n=e.done,e},e:function(e){i=!0,o=e},f:function(){try{n||null==a.return||a.return()}finally{if(i)throw o}}};if(Array.isArray(e)||(a=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e.length)return a&&(e=a),r=0,{s:t=function(){},n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){var o;if(e)return"string"==typeof e?_arrayLikeToArray(e,t):"Map"===(o="Object"===(o={}.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:o)||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?_arrayLikeToArray(e,t):void 0}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=Array(t);o<t;o++)n[o]=e[o];return n}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_toPropertyKey(n.key),n)}}function _createClass(e,t,o){return t&&_defineProperties(e.prototype,t),o&&_defineProperties(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e}function _toPropertyKey(e){e=_toPrimitive(e,"string");return"symbol"==_typeof(e)?e:e+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var o=e[Symbol.toPrimitive];if(void 0===o)return("string"===t?String:Number)(e);o=o.call(e,t||"default");if("object"!=_typeof(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}R.me("ModuleReviews",["RatingRadioGroup"]);var ModuleReviewsOverview=(()=>_createClass(function e(){_classCallCheck(this,e)},[{key:"init",value:function(){var e;this.container=document.querySelector(".kube-overview-page .overview-container"),document.querySelector(".kube-overview-page")&&(this.menuContainer=this.container.querySelector(" nav .scrollable-menu"),this.menuScroller=this.menuContainer.querySelector("ul"),this.addMenuScrollHandler(),this.addMenuResizeHandler(),this.addChooseSectionHandler(),this.initHtmxOnError(),this.initHtmxAfterSwap(this),this.initCollapse(this),this.initReveal(),this.initPagination(this.container),(e=new ModuleReviews).initHtmxAfterSwap(e),window.addEventListener("popstate",function(){location.reload()}))}},{key:"initHtmxOnError",value:function(){htmx.on("htmx:responseError",function(e){e=null!=(e=e.detail.elt)?e:null;e&&e.closest(".helpful")?Overlay.displayStandardError("Ihre Bewertung konnte nicht gespeichert werden. Bitte versuchen Sie es später erneut.","Your feedback could not be saved. Please try again later."):Overlay.displayStandardError()})}},{key:"initPagination",value:function(e){var t=e.querySelector(".pagination-container"),t=new ModulePagination(t);t.init(),t.afterSwapScrollTo(e.querySelector(".all-reviews"))}},{key:"initHtmxAfterSwap",value:function(o){htmx.on("htmx:afterSwap",function(e){var t=e.detail.elt;o.initReveal(),o.initCollapse(o),Imagehandler.init(t),o.applyOkayState(null!=(e=e.detail.requestConfig)?e:null),o.initPagination(o.c
2ontainer),t.classList.contains("overview-container")&&(o.container=document.querySelector(".kube-overview-page .overview-container"),o.menuContainer=o.container.querySelector(" nav .scrollable-menu"),o.menuScroller=o.menuContainer.querySelector("ul"),o.addMenuScrollHandler(),o.addMenuResizeHandler(),o.addChooseSectionHandler()),o.pushHistory.call(o,new FormData(t.closest("form")))})}},{key:"pushHistory",value:function(e){var t,o=new URL(location),n=_createForOfIteratorHelper(e.entries());try{for(n.s();!(t=n.n()).done;){var i=t.value;o.searchParams.set(i[0],i[1])}}catch(e){n.e(e)}finally{n.f()}history.pushState({},"",o)}},{key:"applyOkayState",value:function(e){var t=null!=(e=e.elt)?e:null;t&&t.classList.contains("only-once")&&(t.setAttribute("disabled",""),setTimeout(function(){return t.classList.add("okay")},200))}},{key:"initCollapse",value:function(e){e.container.querySelectorAll("article > div.comments").forEach(function(e){var t=e.querySelector("div.head button.collapse"),o=e.querySelector("div.head button.expand");t.addEventListener("click",function(){e.classList.add("collapse")}),o.addEventListener("click",function(){e.classList.remove("collapse")})})}},{key:"initReveal",value:function(){var e,t,o,n=document.querySelectorAll(".set-width-on-reveal:not(.revealed)");0===n.length||(e=!0,o=this,t=null)||(t=function(){e=!0},window.addEventListener("scroll",t),setInterval(function(){e&&(e=!1,n.forEach(function(e){!e.classList.contains("revealed")&&o.isScrolledIntoView(e)&&(e.style.width=e.dataset.width,e.classList.add("revealed"))}))},200))}},{key:"isScrolledIntoView",value:function(e){e=e.getBoundingClientRect();return e.top<window.innerHeight&&0<=e.bottom}},{key:"addMenuResizeHandler",value:function(){var e=this;this.justResized=!1,window.addEventListener("resize",function(){e.justResized=!0}),setInterval(function(){e.justResized&&(e.updateScrollableKontextMenu(),e.justResized=!1)},200),this.updateScrollableKontextMenu()}},{key:"addMenuScrollHandler",value:function(){var e=this;this.justScrolled=!1,this.scrollTargetLeft=null,this.scrollTargetRight=null,this.menuScroller.addEventListener("scroll",function(){return e.justScrolled=!0}),this.menuScroller.addEventListener("scrollend",function(){e.justScrolled=!0,e.scrollTargetLeft=null,e.scrollTargetRight=null,e.updateScrollableKontextMenu()}),this.initScrollButtons(),this.scrollToActiveButton()}},{key:"updateScrollableKontextMenu",value:function(){var i=this,e=this.menuScroller.getBoundingClientRect();e&&(this.menuScroller.scrollWidth-e.width<=2?(this.menuContainer.classList.remove("scrollable"),clearInterval(this.scrollCheckInterval)):(this.menuContainer.classList.add("scrollable"),this.scrollCheckInterval=setInterval(function(){var e,t,o,n=i.menuScroller.getBoundingClientRect();i.justScrolled&&(i.justScrolled=!1,e=i.menuScroller.scrollWidth,t=i.menuScroller.scrollLeft,o=i.menuScroller.scrollLeft+n.width,"number"==typeof i.scrollTargetLeft&&(t=i.scrollTargetLeft),"number"==typeof i.scrollTargetRight&&(o=i.scrollTargetRight+n.width),0<t?i.menuContainer.classList.add("scrolled"):i.menuContainer.classList.remove("scrolled"),e<=o?i.menuContainer.classList.add("rightmost"):i.menuContainer.classList.remove("rightmost"))},100)))}},{key:"initScrollButtons",value:function(){var o=this;this.menuScroller&&(this.menuContainer.querySelector(".scroll-left").addEventListener("click",function(e){var t=o.menuScroller.getBoundingClientRect().width/2;o.justScrolled=!0,o.scrollTargetLeft=o.menuScroller.scrollLeft-t,o.menuScroller.scrollBy({left:-1*t,top:0,behavior:"smooth"})}),this.menuContainer.querySelector(".scroll-right").addEventListener("click",function(e){var t=o.menuScroller.getBoundingClientRect().width/2;o.justScrolled=!0,o.scrollTargetRight=o.menuScroller.scrollLeft+t,o.menuScroller.scrollBy({left:t,top:0,behavior:"smooth"})}))}},{key:"addChooseSectionHandler",value:function(){var t=this,e=this.container.querySelector(".choose-section");e&&e.addEventListener("change",function(e){t.container.classList.remove("section--all-reviews","section--top-reviewers","section--top-reviews"),t.container.classList.add("section--"+e.target.value)})}},{key:"scrollToActiveButton",value:function(){var e,t=this.menuScroller.querySelector(".active");t&&(t=t.closest("li"))&&(t=t.getBoundingClientRect(),e=this.menuContainer.getBoundingClientRect().width/2,t.left<e||this.menuScroller.scrollTo({left:t.left-e,top:0,behavior:"instant"}))}}]))();R.me("ModuleReviewsOverview",!1);

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.