1var d=new Date,s="",e="",loading=!1,firstLoadForLoadMore=!0,dataArray={},filter=!1,needToUpdateBreadcrumbs=!1,defaultFilterOpen=!0,urlappend="",filterTabState={},filterCheckedState=[],filterArray={},generalFilterArray={},tempArray={},tempFilterState={},previousCatId="",fq={},filters={},topfilters={},templist=[],toggleFilterState="topFilter",touchDisableForDesktop=!0,searchDefaultText="",availabilityInfo=[],priceInfo=[],agentTitle=agentFN=agentLN=agentMail=agentTel=agentMobile=agentFax=agentImgUrl=partListData=customerId=customerName=customerImage=customerAclRole=siteBaseUrlJs="",agentOneImageUrl="",agentOneName="",agentOneTitle="",agentOneMail="",agentOnePhone="",agentOneMobile="",agentOneFax="",agentOneBranch="",agentTwoImageUrl="",agentTwoName="",agentTwoTitle="",agentTwoMail="",agentTwoPhone="",agentTwoMobile="",agentTwoFax="",agentTwoBranch="",agentThreeImageUrl="",agentThreeName="",agentThreeTitle="",agentThreeMail="",agentThreePhone="",agentThreeMobile="",agentThreeFax="",agentThreeBranch="",dashboardDeskTabMobPageSize=15,dashFilterTempList="",__suppressAjaxDispatcherCalls=!1,scrollCheck=!1,scrollCount=1,shopCountry=null!==localStorage.getItem("actualShopCountry")?localStorage.getItem("actualShopCountry"):"UNKNOWN",aac_AddFavouriteUrl="",actAsCustomerBtnLoginTxt="",actAsCustomerBtnCancelTxt="",actAsCustomerSearchHeadline="",actAsCustomerSearchbarHeadline="",actAsCustomerSearchbarPlaceholder="",actAsCustomerFavouritesHeadline="",actAsCustomerMyCustomersOnlyTxt="",actAsCustomerSearchMyCustomersOnlyTxt="",actAsCustomerNoFavouritesDefinedTxt="",actAsCustomerLoginWithUserTxt="",actAsCustomerNotSupervisedTxt="",actAsCustomerAddAllToFavouritListTxt="",actAsCustomerAddToFavouritesOkMsgTxt="",actAsCustomerNoneAddToFavouritesMsgTxt="",actAsCustomerNoListAddableToFavouritesMsgTxt="",startrek="wrathofkahn",actAsCustomerActionMsgInterval="",aac_realEmail="",actAsCustomerLoginForm="",aac_FavListItems="";function isNumber(e){return/^-?[\d.]+(?:e-?\d+)?$/.test(e)}function refreshBreadcrumbOnSale(e){checkFilterFromUrl();var a=getParameterByName("cat"),t="<li class='sale_red_breadcrumbitem'>"+Translator.translate("sales")+"</li>";1==generalFilterArray.sale?(e&&(needToUpdateBreadcrumbs=!0,console.log("refreshBreadcrumbOnSale getRCB !"),dataArray.getRenderedCategoryBlocks={data:{query:"",start:0,limit:50,accessory:0,category:a,facets:filterArray,general_filters:generalFilterArray}}),jQuery("#breadcrumb_block").children(".sale_red_breadcrumbitem").get(0)||jQuery("#breadcrumb_block").append(t)):jQuery("#breadcrumb_block").children(".sale_red_breadcrumbitem").get(0)&&jQuery("#breadcrumb_block .sale_red_breadcrumbitem").remove()}function checkWidth(){console.log("Please remove checkWidth()-function from your code")}function updatePriceAndStock(){var e;"undefined"==typeof productSKUForPrice&&"undefined"==typeof productSKUForStock||((e={}).form_key=formKey,"undefined"!=typeof productSKUForPrice&&"undefined"!=typeof productSKUForStock?e.getProductPricesAndAvailabilities=productSKUForStock:("undefined"!=typeof productSKUForPrice&&(e.getProductPrices=productSKUForPrice),"undefined"!=typeof productSKUForStock&&(e.getProductAvailabilities=productSKUForStock)),jQuery.ajax(ajaxUrl,{dataType:"json",type:"POST",data:e,success:function(e){var t=new AjaxDispatcher;jQuery.each(e,function(e,a){"getProductPricesAndAvailabilities"==e?(a.result.availibility&&t.getProductAvailabilities(a.result.availibility),a.result.prices&&t.getProductPrices(a.result.prices)):t[e](a.result)})},error:function(e){}}))}function gtag(arguments){dataLayer.push(arguments)}function mainNavTracking(e){var a=jQuery(e).attr("data-target-url"),t=jQuery(e).attr("data-tracking-cat");gtag("event","main_navigation_click",{link_text:jQuery(e).children("div").children("div").children("div").text(),link_url:a,data_tracking_cat:t})}function trackMainBannerClick(e){e={event:"website_promotion_click",promotion_name:jQuery(e).attr("data-promotion_name"),promotion_id:jQuery(e).attr("data-promotion_id"),creative_name:jQuery(e).attr("data-creative_name"),creative_slot:jQuery(e).attr("data-creative_slot"),link_url:jQuery(e).attr("data-link_url")};dataLayer.push(e)}function trackMainBannerView(e){e={event:"website_promotion_view",promotion_name:jQuery(e).attr("data-promotion_name"),promotion_id:jQuery(e).attr("data-promotion_id"),creative_name:jQuery(e).attr("data-creative_name"),creative_slot:jQuery(e).attr("data-creative_slot"),link_url:jQuery(e).attr("data-link_url")};dataLayer.push(e)}function productPriceInfoTracking(e,a,t){gtag({event:"product_price_info",custom_item_id:e,custom_item_name:a,custom_item_category:t})}function viewItemTracking(e,a){var t=localStorage.getItem("trackingData_pagetype");
1jQuery(document).ready(function(){gtag({event:"view_item",pageType:t,item_name:e,item_id:a})})}function setSliderNameAsPageType(e,a){0!==jQuery(a).closest(".frame").find(".headline").length?localStorage.setItem("trackingData_pagetype",jQuery(a).closest(".frame").find(".headline").text().trim()+" "+window.location.href):0!==jQuery(a).closest("section").find("h2").length&&localStorage.setItem("trackingData_pagetype",jQuery(a).closest("section").find("h2").text().trim()+" "+window.location.href)}function updateAgentHtml(e){console.log("Running updateAgentHtml() -> "+e),"multipleAdvisorMode"==e?(jQuery("#advisor_heading_normalmode_block").hide(),jQuery("#advisor_detail_normalmode_block").hide(),jQuery("#agentInfoHead").css({border:"none",padding:0,"border-radius":"20px"}),jQuery("#agentInfoHead").html('<i id="advisor_telephone_symbol" class="fa fa-phone-square"></i>'),agentOneMail?(jQuery("#advisor_one_block").show(),jQuery("#multiple_advisor_one_pic").attr("src",agentOneImageUrl),jQuery("#multiple_advisor_one_name").html(agentOneName),jQuery("#multiple_advisor_one_title").html(agentOneTitle),jQuery("#multiple_advisor_one_mail").html('<a href="'+EncryptMailto(agentOneMail)+'">'+agentOneMail.replace("@","(at)")+"</a>"),jQuery("#multiple_advisor_one_phone").html('<a href="tel:'+agentOnePhone+'"><i class="advisor_mobile_icon glyphicon glyphicon-phone-alt" />: '+agentOnePhone+"</a>"),jQuery("#multiple_advisor_one_mobile").hide().next().remove(),0<agentTwoMobile.length&&jQuery("#multiple_advisor_one_mobile").html('<a href="tel:'+agentOneMobile+'"><i class="advisor_mobile_icon glyphicon glyphicon-phone" />: '+agentOneMobile+"</a>").show().after("<br />"),jQuery("#multiple_advisor_one_fax").html(agentOneFax),jQuery("#multiple_advisor_one_branch").html(agentOneBranch)):(jQuery("#advisor_one_block").hide(),console.log("Multiple Advisor One: DEACTIVATED")),agentTwoMail?(jQuery("#advisor_two_block").show(),jQuery("#multiple_advisor_two_pic").attr("src",agentTwoImageUrl),jQuery("#multiple_advisor_two_name").html(agentTwoName),jQuery("#multiple_advisor_two_title").html(agentTwoTitle),jQuery("#multiple_advisor_two_mail").html('<a href="'+EncryptMailto(agentTwoMail)+'">'+agentTwoMail.replace("@","(at)")+"</a>"),jQuery("#multiple_advisor_two_phone").html('<a href="tel:'+agentTwoPhone+'"><i class="advisor_mobile_icon glyphicon glyphicon-phone-alt" />: '+agentTwoPhone+"</a>"),jQuery("#multiple_advisor_two_mobile").hide().next().remove(),0<agentTwoMobile.length&&jQuery("#multiple_advisor_two_mobile").html('<a href="tel:'+agentTwoMobile+'"><i class="advisor_mobile_icon glyphicon glyphicon-phone" />: '+agentTwoMobile+"</a>").show().after("<br />"),jQuery("#multiple_advisor_two_fax").html(agentTwoFax),jQuery("#multiple_advisor_two_branch").html(agentTwoBranch)):(jQuery("#advisor_two_block").hide(),console.log("Multiple Advisor Two: DEACTIVATED")),agentThreeMail?(jQuery("#advisor_three_block").show(),jQuery("#multiple_advisor_three_pic").attr("src",agentThreeImageUrl),jQuery("#multiple_advisor_three_name").html(agentThreeName),jQuery("#multiple_advisor_three_title").html(agentThreeTitle),jQuery("#multiple_advisor_three_mail").html('<a href="'+EncryptMailto(agentThreeMail)+'">'+agentThreeMail.replace("@","(at)")+"</a>"),jQuery("#multiple_advisor_three_phone").html('<a href="tel:'+agentThreePhone+'"><i class="advisor_mobile_icon glyphicon glyphicon-phone-alt" />: '+agentThreePhone+"</a>"),jQuery("#multiple_advisor_three_mobile").hide().next().remove(),0<agentThreeMobile.length&&jQuery("#multiple_advisor_three_mobile").html('<a href="tel:'+agentThreeMobile+'"><i class="advisor_mobile_icon glyphicon glyphicon-phone" />: '+agentThreeMobile+"</a>").show().after("<br />"),jQuery("#multiple_advisor_three_fax").html(agentThreeFax),jQuery("#multiple_advisor_three_branch").html(agentThreeBranch)):(jQuery("#advisor_three_block").hide(),console.log("Multiple Advisor Three: DEACTIVATED"))):(jQuery("#advisor_one_block").hide(),jQuery("#advisor_two_block").hide(),jQuery("#advisor_three_block").hide(),jQuery("#advisor_heading_normalmode_block").show(),jQuery("#advisor_detail_normalmode_block").show(),htmlData='<img src="'+agentImgUrl+'" alt="'+agentTitle+" "+agentFN+" "+agentLN+'"/>',jQuery("#agentInfoHead").html(htmlData),jQuery("#mailto").attr("href",EncryptMailto(agentMail)),jQuery("#callto").attr("href","tel:"+agentTel),jQuery(".user-detail .user-pic").html('<img src="'+agentImgUrl+'" alt="'+agentTitle+" "+agentFN+" "+agentLN+'"/>'),jQuery(".user-detail .name").html(agentFN+" "+agentLN),jQuery(".user-detail .designation").html(agentTitle),jQuery(".user-detail .contact").append('<span class="email col-12" style="float: left; clear: left;"> '+agentMail.replace("@","(at)")+"</span>\n"),jQuery(".user-detail .contact").append('<span class="tel col-12" style="float: left; clear: left;">'+(null!=typeof agentTel&&"undefined"!=typeof agentTel&&""!==agentTel?agentTel:"")+"</span>\n"),jQuery(".user-detail .contact").append('<span class="fax col-12" style="float: left; clear: left;">'+(null!=typeof agentFax&&"undefined"!=typeof agentFax&&""!==agentFax?"Fax: "+agentFax:"")+"</span>"),console.log("updateAgentHtml: localStorage.customerNotLoggedIn = "+localStorage.customerNotLoggedIn),"0"==localStorage.getItem("itemCustomerNotLoggedIn")?(e=(e=jQuery("#vcard").attr("href"))+"?email="+agentMail,jQuery("#vcard").attr("href",e),jQuery("#vcard").show()):jQuery("#vcard").hide(),jQuery(".dead-article-contact")&&(e='<div class="row"><div class="col-sm-3 col-xs-4"><img class="foto" src="'+agentImgUrl.replace("mab58","mab95")+'" alt="'+agentTitle+" "+agentFN+" "+agentLN+'"/></div><div class="col-sm-9 col-xs-8"><div class="contact bold bottompadding">'+Translator.translate("Your Contact Person")+'</div><div class="contact bold">'+agentFN+" "+agentLN+'</div><div class="contact">'+(agentTitle||"")+'</div><div class="contact"> </div><div class="contact blue">
1<a href="tel:'+agentTel+'">'+(null!=typeof agentTel&&"undefined"!=typeof agentTel&&""!==agentTel?agentTel:"")+(null!=typeof agentFax&&"undefined"!=typeof agentFax&&""!==agentFax?"<br>Fax: "+agentFax:"")+'</a></div><div class="contact blue"><a href="'+EncryptMailto(agentMail)+'">'+agentMail.replace("@","(at)")+"</a></div></div></div>",jQuery(".dead-article-contact").html(e)),jQuery(".inquiryPopup")&&(jQuery(".inquiryPopup .contactBx .user-pic").html('<img class="foto" src="'+agentImgUrl.replace("mab58","mab95")+'" alt="'+agentTitle+" "+agentFN+" "+agentLN+'"/><br><h3 class="subHeading paddingT10">'+agentFN+" "+agentLN+"</h3>"),jQuery(".inquiryPopup .contactBx .contact").append(' <a href="tel:'+agentTel+'">'+agentTel+"</a>"),jQuery(".inquiryPopup .contactBx .mail").append(' <a href="'+EncryptMailto(agentMail)+'">'+agentMail.replace("@","(at)")+"</a>"),jQuery(".inquiryPopup .contactBx .fax").append(' <a href="javascript:void(0);">'+agentFax+"</a>")))}function loadCachedSearchBarCategories(){return localStorage.refreshMegaMenuForceTimeCurrent=MEGA_MENU_LATEST_REFRESH_TIMESTAMP,!localStorage.refreshMegaMenuForceTimeLastChangeDropdownMenu||localStorage.refreshMegaMenuForceTimeCurrent>localStorage.refreshMegaMenuForceTimeLastChangeDropdownMenu?(localStorage.searchBarCategoriesContent="",localStorage.refreshMegaMenuForceTimeLastChangeDropdownMenu=localStorage.refreshMegaMenuForceTimeCurrent,!1):!(!localStorage.searchBarCategoriesContent||""==localStorage.searchBarCategoriesContent||(jQuery("#searchDropdownBox").append(localStorage.searchBarCategoriesContent),0))}function registerSeeMoreClickHandler(a){jQuery("#"+a).on("click",function(e){e.preventDefault(),showMoreFilter(a)})}function showMoreFilter(e){var e=e.split("__"),a=e[1],e=e[2],t="";"01"==a||"03"==a?(jQuery("#"+e+"_showMoreFilter").hasClass("moreBttnFilter")&&(console.log(">>> Aufklappen"),jQuery("#"+e+" ul li:nth-child(5)").nextAll().css("display","block"),jQuery("[name='case__01__"+e+"_showMoreFilter']").css("display","none"),jQuery("[name='case__03__"+e+"_showMoreFilter']").css("display","block"),t="lessBttnFilter"),jQuery("#"+e+"_showMoreFilter").hasClass("lessBttnFilter")&&(console.log(">>> Zuklappen"),jQuery("#"+e+" ul li:nth-child(5)").nextAll().css("display","none"),jQuery("[name='case__01__"+e+"_showMoreFilter']").css("display","block"),jQuery("[name='case__03__"+e+"_showMoreFilter']").css("display","none"),t="moreBttnFilter")):(jQuery("#"+e+"_showMoreFilter").hasClass("moreBttnFilter")&&(console.log(">>> Aufklappen"),jQuery("#"+e+" ul li:nth-child(5)").nextAll().css("display","block"),jQuery("[name='case__04__"+e+"_showMoreFilter']").css("display","none"),t="lessBttnFilter"),jQuery("#"+e+"_showMoreFilter").hasClass("lessBttnFilter")&&(console.log(">>> Zuklappen"),jQuery("#"+e+" ul li:nth-child(5)").nextAll().css("display","none"),jQuery("[name='case__04__"+e+"_showMoreFilter']").css("display","block"),t="moreBttnFilter")),"lessBttnFilter"==t&&(jQuery("#"+e+"_showMoreFilter").removeClass("moreBttnFilter"),jQuery("#"+e+"_showMoreFilter").addClass("lessBttnFilter")),"moreBttnFilter"==t&&(jQuery("#"+e+"_showMoreFilter").removeClass("lessBttnFilter"),jQuery("#"+e+"_showMoreFilter").addClass("moreBttnFilter"))}function AjaxDispatcher(){console.log("### activeproductcontainer #01 = "+jQuery("#activeproductcontainer").val()),this.getRenderedCategoryBlocks=function(e){if(console.log("getRCB START!"),parsedData=e,filterArray={},generalFilterArray={},jQuery("ul.messages").empty(),jQuery("ul.errors").empty(),jQuery(".firstViewLoader").empty(),0==parsedData.isCatalogCategory){if(parsedData.breadcrumbsBlock&&1==needToUpdateBreadcrumbs&&(jQuery("#breadcrumbs").html(parsedData.breadcrumbsBlock),needToUpdateBreadcrumbs=!1),jQuery("#category-header .headline-container").html(parsedData.headlineBlock),jQuery(".description-container").html(parsedData.descriptionBlock),console.log("### activeproductcontainer #02 = "+jQuery("#activeproductcontainer").val()),1182<jQuery(window).width()?"accessories"!=jQuery("#activeproductcontainer").val()&&(jQuery(".search-attributes-mob").html(parsedData.filterBlock),copyFilter=jQuery(".search-attributes").html(),jQuery(".search-attributes").html(""),(parsedData.productListBlock?(jQuery(".search-attributes-desktop1").html(""),jQuery(".search-attributes-desktop").html(copyFilter),jQuery(".search-attributes-desktop")):(jQuery(".search-attributes-desktop").html(""),jQuery(".search-attributes-desktop1").html(copyFilter),jQuery(".search-attributes-desktop1"))).parent().attr("id","solrsearch-container"),jQuery(".search-attributes-mob").attr("id","solrsearch-container-mob")):("accessories"!=jQuery("#activeproductcontainer").val()&&jQuery(".search-attributes-mob").html(parsedData.filterBlock),jQuery(document).click(function(e){0<jQuery(e.target).closest(".search-attributes-mob").length||jQuery(".search-attributes-mob .filterPopup").hide()})),""!=customerId||""!=customerName?(jQuery("#general_filters li:nth-child(1)").removeClass("hide"),jQuery("#general_filters li:nth-child(3)").removeClass("hide")):(jQuery("#general_filters li:nth-child(1)").addClass("hide"),jQuery("#general_filters li:nth-child(3)").addClass("hide")),jQuery(".subcats-container").html(parsedData.subcatsBlock),jQuery(".attachments-container").html(parsedData.attachmentsBlock),jQuery(".cms-container").html(parsedData.cmsBlock),parsedData.productListBlock)if(jQuery(".product-list-frame").removeClass("hide"),jQuery("#accessoriesBtn .badge").html(parsedData.accessoryCount),jQuery("#"+jQuery("#activeproductcontainer").val()+"Btn .badge").html(parsedData.count),1==loading){var a={event:"scroll_endless",scroll_index:scrollCount};switch(scrollCheck){case!1:window.dataLayer.push(a),scrollCheck=!0;case!0:for(var t=0;t<window.dataLayer.length;t++)"scroll_endless"==window.dataLayer[t].event&&(window.dataLayer[t].scroll_index=scrollCount++)}jQuery("#"+jQuery("#activeproductcontainer").val()).append(parsedData.productListBlock),parsedData.start+50<parsedData.count?jQuery("#"+jQuery("#activeproductcontainer").val()+"_next").val(parsedData.start+50):jQuery("#"+jQuery("#activeproductcontainer").val()+"_next").val(parsedData.count),loading=!1}else jQuery("#"+jQuery("#activeproductcontainer").val()).html(parsedData.productListBlock),jQuery("#"+jQuery("#activeproductcontainer").val()+"_count").val(parsedData.count),jQuery("#"+jQuery("#activeproductcontainer").val()+"_next").val(50);else{jQuery(".product-list-frame").hasClass("hide")||"accessories"==jQuery("#activeproductcontainer").val()||jQuery(".product-list-frame").addClass("hide"),parsedData.subcatsBlock||1!=filter||jQuery(".product-list-frame").removeClass("hide");e=' <a style="font-weight: bold;" href="'+localStorage.LastSuccessfulUrlOnPlpPage+'">'+Translator.translate("Back")+"</a>";jQuery("#"+jQuery("#activeproductcontainer").val()).html(Translator.translate("There are no products matching the selection.")+e),jQuery("#"+jQuery("#activeproductcontainer").val()+"Btn .badge").html(0),jQuery("#"+jQuery("#activeproductcontainer").val()+"_count").val(parsedData.count),jQuery("#"+jQuery("#activeproductcontainer").val()+"_next").val(parsedData.count)}"accessories"==jQuery("#activeproductcontainer").val()&&jQuery("#accessoriesBtn").attr("onclick","jQuery('#activeproductcontainer').val('accessories'); jQuery('#solrsearch-container').hide();"),0==parsedData.accessoryCount?jQuery("#accessoriesBtn").addClass("hide"):jQuery("#accessoriesBtn").removeClass("hide");var o=!1,n=0,r=("accessories"!=jQuery("#activeproductcontainer").val()&&(jQuery("#solrsearch-container .facet").each(function(){var a="",t=0;if(facet=jQuery(this).attr("id"),jQuery("#selectedFilterTemp-"+facet).text().trim().length){jQuery("#selectedFilter-"+facet+" span").html(jQuery("#selectedFilterTemp-"+facet).html()),jQuery("#selectedFilter-"+facet).css("display","block");for(var e=jQuery("#selectedFilter-"+facet+" span"),r=jQuery("#selectedFilter-"+facet).height(),s=10;e.outerHeight()>r&&0<--s;)e.text(function(e,a){return a.replace(/\W*\s(\S)*$/,"...")});jQuery("#selectedFilter-"+facet).css("height","auto")}5<jQuery("#"+facet+" ul li").size()&&(jQuery("#"+facet+" ul li:nth-child(5)").nextAll().css("display","none"),jQuery("#"+facet+" ul").append('<li name="case__01__'+facet+'_showMoreFilter" id="'+facet+'_showMoreFilter" class="moreBttnFilter">\x3c!-- see-more-button : case #01 --\x3e<a id="case__01__'+facet+'" class="moreBttnFilterAction"><i id="case__01__'+facet+'__Expander" class="fa fa-plus-square-o fa-lg"></i> <span id="case__01__'+facet+'__Linktext">'+Translator.translate("See More")+"</span></a></li>"),registerSeeMoreClickHandler("case__01__"+facet)),jQuery("#"+facet+" input
1:checkbox:checked").each(function(e){o=!0,a=jQuery(this).closest(".facet").attr("id"),t=jQuery(this).parent().attr("position")}),""!=a&&("general_filters"!=a&&jQuery("#"+a+" .panel-heading a").click(),jQuery("#"+a+" .panel-heading a").addClass("blueTxt"),jQuery("#"+a+" .filter-deselect").removeClass("hide"),n+=1),5<jQuery("#"+facet+" ul li").size()&&(jQuery("#"+facet+" ul").append('<li name="case__03__'+facet+'_showMoreFilter" id="'+facet+'_showMoreFilter" class="moreBttnFilter" style="display: none;">\x3c!-- see-more-button : case #03 --\x3e<a id="case__03__'+facet+'" class="moreBttnFilterAction"><i id="case__03__'+facet+'__Expander" class="fa fa-minus-square-o fa-lg"></i> <span id="case__03__'+facet+'__Linktext">'+Translator.translate("See Less")+"</span></a></li>"),registerSeeMoreClickHandler("case__03__"+facet)),5<=t&&jQuery("#case__01__"+facet).click()}),jQuery("#"+toggleFilterState+"Btn").click(),jQuery("#filterMenu .count").text(n)),o&&defaultFilterOpen?(1024<jQuery(window).width()||(jQuery("#filterMenu").click(),console.log("filter click #11")),jQuery("#clearFilter").removeClass("hide")):getParameterByName("q")&&defaultFilterOpen?(1024<jQuery(window).width()||(jQuery("#filterMenu").click(),console.log("filter click #12")),jQuery("#clearFilter").removeClass("hide")):o||getParameterByName("q")?jQuery("#clearFilter").removeClass("hide"):jQuery("#clearFilter").addClass("hide"),jQuery.trim(jQuery("#solrsearch-container").html()).length||"accessories"==jQuery("#activeproductcontainer").val()||1!=filter||jQuery("#solrsearch-container").html('<button id="clearFilter" class="btn btn-default marginTB10" onclick="clearFilter()">'+Translator.translate("Clear Filters")+"</button>"),defaultFilterOpen=!0,"-");"undefined"!=typeof PAGETYPE&&("CART"==PAGETYPE?r="cart":"DETAIL_VIEW"==PAGETYPE?r="product detail view":"PRODUCT_LIST_VIEW"==PAGETYPE&&(r="product list view")),jQuery(".product-list .product-tab-content").each(function(){t=jQuery(this).attr("id").replace("product_",""),""!=partListData&&"error"!=partListData?(htmlData="\x3c!-- position : commonJs.js #1332863 --\x3e",htmlData+="<li class='add-to-new-partslist' onclick='partslistFE.addItemToNewList(\"New parts list\", new ListRequestManager.Product(jQuery(\"#productId-"+t+'").val(), jQuery("#qty-'+t+'").val(), "'+t+'"), "'+r+'");\' data-brand="" data-click="" data-event="" data-id="'+t+"\" ><span class='glyphicon glyphicon-plus-sign plusIcon darkGray'></span> "+Translator.translate("Add to new parts list")+"</li>",jQuery.each(partListData,function(e,a){e=e.replace("\0",""),htmlData+="<li partlist-id = '"+e+"' data-sku = '"+t+"' onclick='partslistFE.addItemToList("+e+', new ListRequestManager.Product(jQuery("#productId-'+t+'").val(), jQuery("#qty-'+t+'").val(), "'+t+'"), false, "'+r+'");\' data-brand="" data-click="" data-event="" data-id="'+t+"\" title='"+a+"'>"+Translator.translate("Add to")+" "+a+"</li>"}),jQuery("#product_"+t+" .dropdown-list").html(htmlData),jQuery("#product_"+t+" .dropdown-list").removeClass("withoutLgn"),jQuery("#parlistdropdownbtn-"+t).removeClass("lgtGray")):(""==customerId&&""==customerName||(htmlData="\x3c!-- position : commonJs.js #9823479873 --\x3e",htmlData+="<li class='add-to-new-partslist' onclick='partslistFE.addItemToNewList(\"New parts list\", new ListRequestManager.Product(jQuery(\"#productId-"+t+'").val(), jQuery("#qty-'+t+'").val(), "'+t+'"), "'+r+'");\' data-brand="" data-click="" data-event="" data-id="'+t+"\" ><span class='glyphicon glyphicon-plus-sign plusIcon darkGray'></span> "+Translator.translate("Add to new parts list")+"</li>",jQuery("#product_"+t+" .dropdown-list").html(htmlData),jQuery("#product_"+t+" .dropdown-list").removeClass("withoutLgn"),jQuery("#parlistdropdownbtn-"+t).removeClass("lgtGray")),jQuery("#product_"+t+" .dropdown-list").css("height","auto"),jQuery("#product_"+t+" .dropdown-list").css("width","auto")),console.log("Current Role #1 = "+customerAclRole),"staff"!=customerAclRole&&"projectant"!=customerAclRole||jQuery("#product_"+t+" .addtocart").addClass("hide")})}else parsedData.breadcrumbsBlock&&0==loading&&0==filter&&jQuery("#breadcrumbs").html(parsedData.breadcrumbsBlock),jQuery(".subcats-container").html(parsedData.subcatsBlock),jQuery(".catalogBnrCont").html(parsedData.cmsBlock1),jQuery("#solrsearch-container").html(parsedData.filterBlock),parsedData.productListBlock?1==loading?(jQuery("#product-list-block").append(parsedData.productListBlock),parsedData.start+50<parsedData.count?jQuery("#"+jQuery("#activeproductcontainer").val()+"_next").val(parsedData.start+50):jQuery("#"+jQuery("#activeproductcontainer").val()+"_next").val(parsedData.count),loading=!1):(jQuery("#product-list-block").html(parsedData.productListBlock),jQuery("#"+jQuery("#activeproductcontainer").val()+"_count").val(parsedData.count),jQuery("#"+jQuery("#activeproductcontainer").val()+"_next").val(50)):(jQuery("#"+jQuery("#activeproductcontainer").val()+"_count").val(parsedData.count),jQuery("#"+jQuery("#activeproductcontainer").val()+"_next").val(parsedData.count)),jQuery(".bxslider").bxSlider({touchEnabled:touchDisableForDesktop,auto:!0,autoControls:!0,mode:"fade"}),jQuery("#product-list-block .catalogLstCont").length%2!=0&&jQuery("#product-list-block .catalogLstCont").last().css("border-bottom","0px"),console.log("Current Role #2 = "+customerAclRole),"staff"!=customerAclRole&&"projectant"!=customerAclRole||jQuery(".addCart").addClass("hide");jQuery("#search-attr-full").val(getParameterByName("q")),jQueryLazyLoader.update(
1),jQuery("#breadcrumbs ul li").click(function(e){!jQuery(this).hasClass("home")&&(e.preventDefault(),url=jQuery(this).find("a").attr("href"))&&(filterArray={},generalFilterArray={},urlappend="",jQuery("#productsBtn").click(),catId=(catId=jQuery(this).attr("class")).replace("category",""),jQuery("#category_id").val(catId),e=-1<url.indexOf("?")?"&":"?",url=url+e+"catId="+catId,history.pushState("data","",url),needToUpdateBreadcrumbs=!0,dataArray.getRenderedCategoryBlocks={data:{query:"",start:0,limit:50,accessory:0,category:catId,facets:filterArray,general_filters:generalFilterArray}},ajaxDispatcherCall())})},this.getPrevMessage=function(e){""!==e&&(e='<ul class="messages"><li class="success-msg"><span class="glyphicon glyphicon-ok"></span> <span>'+e+"</span></li></ul>",jQuery("#content").html(e))},this.getRenderedSearchBlocks=function(e){if((parsedData=e).redirectToSingleSearchResult&&""!=parsedData.redirectToSingleSearchResult)return window.location=parsedData.redirectToSingleSearchResult,!0;if(jQuery("ul.messages").empty(),jQuery("ul.errors").empty(),1==loading){var a={event:"scroll_endless",scroll_index:scrollCount};switch(scrollCheck){case!1:window.dataLayer.push(a),scrollCheck=!0;case!0:for(var t=0;t<window.dataLayer.length;t++)"scroll_endless"==window.dataLayer[t].event&&(window.dataLayer[t].scroll_index=scrollCount++)}e=jQuery.parseHTML(parsedData.searchResultBlock);result=jQuery(e).find("#"+jQuery("#activeproductcontainer").val()).html(),jQuery("#"+jQuery("#activeproductcontainer").val()).append(result),"gridListView"==jQuery("#activeproductcontainer").val()&&(parsedData.productStatus.start+21<parsedData.productStatus.count?jQuery("#"+jQuery("#activeproductcontainer").val()+"_next").val(parsedData.productStatus.start+21):jQuery("#"+jQuery("#activeproductcontainer").val()+"_next").val(parsedData.productStatus.count)),"articleCont"==jQuery("#activeproductcontainer").val()&&(parsedData.pagesStatus.start+20<parsedData.pagesStatus.count?jQuery("#"+jQuery("#activeproductcontainer").val()+"_next").val(parsedData.pagesStatus.start+20):jQuery("#"+jQuery("#activeproductcontainer").val()+"_next").val(parsedData.pagesStatus.count)),"prodListingSales"==jQuery("#activeproductcontainer").val()&&(parsedData.saleStatus.start+7<parsedData.saleStatus.count?jQuery("#"+jQuery("#activeproductcontainer").val()+"_next").val(parsedData.saleStatus.start+7):jQuery("#"+jQuery("#activeproductcontainer").val()+"_next").val(parsedData.saleStatus.count)),loading=!1}else{jQuery("#searchResult").html(parsedData.searchResultBlock),jQuery("#"+jQuery("#activeproductcontainer").val()+"_count").val(parsedData.productStatus.count),jQuery("#"+jQuery("#activeproductcontainer").val()+"_next").val(21),jQuery("#articleCont_count").val(parsedData.pagesStatus.count),jQuery("#articleCont_next").val(20),jQuery("#prodListingSales_count").val(parsedData.saleStatus.count),jQuery("#prodListingSales_next").val(7),1215<jQuery(window).width()?(jQuery(".search-attributes-desktop").html(jQuery(".search-attributes").html()),jQuery(".search-attributes").html(""),jQuery(".search-attributes-desktop").parent().attr("id","solrsearch-container"),jQuery(".search-attributes").parent().attr("id","solrsearch-container-mob"),jQuery("#moreDataDesktop .moreData").html(jQuery("#moreDataMob .moreData").html()),jQuery("#moreDataMob .moreData").html()):(jQuery(window).width()<767&&(jQuery("#stockCleranceMobCon").html(jQuery("#stockCleranceMob").html()),jQuery("#stockCleranceMob").html("")),jQuery("#filterMenu").click(function(){console.log("filter click #13"),jQuery(".filterPopup").toggle()}));var r=!1;jQuery("#solrsearch-container .facet").each(function(){var a="";if(facet=jQuery(this).attr("id"),jQuery("#selectedFilterTemp-"+facet).text().trim().length){jQuery("#selectedFilter-"+facet+" span").html(jQuery("#selectedFilterTemp-"+facet).html()),jQuery("#selectedFilter-"+facet).css("display","block");for(var e=jQuery("#selectedFilter-"+facet+" span"),t=jQuery("#selectedFilter-"+facet).height();e.outerHeight()>t;)e.text(function(e,a){return a.replace(/\W*\s(\S)*$/,"...")});jQuery("#selectedFilter-"+facet).css("height","auto")}5<jQuery("#"+facet+" ul li").size()&&(jQuery("#"+facet+" ul li:nth-child(5)").nextAll().css("display","none"),jQuery("#"+facet+" ul").append('<li name="case__02__'+facet+'_showMoreFilter" id="'+facet+'_showMoreFilter" class="moreBttnFilter">\x3c!-- see-more-button : case #02 --\x3e<a id="case__02__'+facet+'" class="moreBttnFilterAction"><i id="case__02__'+facet+'__Expander" class="fa fa-minus-square-o fa-lg"></i> <span id="case__02__'+facet+'__Linktext">'+Translator.translate("See Less")+"</span></a></li>"),registerSeeMoreClickHandler("case__02__"+facet)),jQuery("#"+facet+" input
1:checkbox:checked").each(function(e){r=!0,a=jQuery(this).closest(".facet").attr("id"),jQuery(this).parent().attr("position")}),""!=a&&("general_filters"!=a&&jQuery("#"+a+" .panel-heading a").click(),jQuery("#"+a+" .panel-heading a").addClass("blueTxt"),jQuery("#"+a+" .filter-deselect").removeClass("hide"))})}skuListOfNormalProducts=parsedData.skuListOfNormalProducts,skuListOfSaleProducts=parsedData.skuListOfSaleProducts,productSKUForPrice={data:{skus:skuListOfNormalProducts.concat(skuListOfSaleProducts)}},productSKUForStock={data:{skus:skuListOfNormalProducts.concat(skuListOfSaleProducts)}},updatePriceAndStock(),"checked"==jQuery("#checkbox-1-5").attr("checked")||0==parsedData.saleStatus.count?(jQuery("#chnageOnSaleFilter").attr("class","col-xs-12 col-sm-12 col-md-12 left"),jQuery("#stockCleranceMob").remove(),jQuery("#gridListView").addClass("noStock")):(jQuery("#chnageOnSaleFilter").attr("class","col-xs-12 col-sm-8 col-md-9 left"),jQuery("#stockCleranceMob").removeClass("hide"),jQuery("#gridListView").removeClass("noStock")),""!=customerId||""!=customerName?(jQuery("#general_filters li:nth-child(1)").removeClass("hide"),jQuery("#general_filters li:nth-child(3)").removeClass("hide")):(jQuery("#general_filters li:nth-child(1)").addClass("hide"),jQuery("#general_filters li:nth-child(3)").addClass("hide"));var r=!1,s=0;jQuery("#solrsearch-container .facet").each(function(){var a="",t=0;facet=jQuery(this).attr("id"),5<jQuery("#"+facet+" ul li").size()&&(jQuery("#"+facet+" ul li:nth-child(5)").nextAll().css("display","none"),jQuery("#"+facet+" ul li:nth-child(5)").after('<li name="case__04__'+facet+'_showMoreFilter" id="'+facet+'_showMoreFilter" class="moreBttnFilter">\x3c!-- see-more-button : case #04 --\x3e<a id="case__04__'+facet+'" class="moreBttnFilterAction"><i id="case__04__'+facet+'__Expander" class="fa fa-plus-square-o fa-lg"></i> <span id="case__04__'+facet+'__Linktext">'+Translator.translate("See More")+"</a></li>"),registerSeeMoreClickHandler("case__04__"+facet)),jQuery("#"+facet+" input:checkbox:checked").each(function(e){r=!0,a=jQuery(this).closest(".facet").attr("id"),t=jQuery(this).parent().attr("position")}),""!=a&&(jQuery("#"+a+" .panel-heading a").click(),jQuery("#"+a+" .panel-heading a").addClass("blueTxt"),s+=1),5<=t&&jQuery("#case__04__"+facet).click()}),jQuery("#"+toggleFilterState+"Btn").click(),jQuery("#filterMenu .count").text(s),r||1==filter&&0==parsedData.productStatus.count?0==globalFRESH_LOAD&&(console.log("Status 2 -> "+globalFRESH_LOAD),jQuery("#filterMenu").click(),console.log("filter click #14"),jQuery("#clearFilter").removeClass("hide")):jQuery("#clearFilter").addClass("hide"),filter=!1,(5<jQuery("#moreDataDesktop ul li.level11").size()||5<jQuery("#moreDataMob ul li.level11").size())&&(jQuery("#moreDataDesktop ul li.level11:nth-child(5)").nextAll().css("display","none"),jQuery("#moreDataDesktop .moreBttnToggle").removeClass("hide"),jQuery("#moreDataMob ul li.level11:nth-child(5)").nextAll().css("display","none"),jQuery("#moreDataMob .moreBttnToggle").removeClass("hide")),jQueryLazyLoader.update(),992<jQuery(window).width()&&imagePreviewHover(),dataLayer&&dataLayer.push({event:"search",count:parsedData.productStatus.count,"page-title":document.title})}
1,this.getSearchBarCategories=function(t){var r="",s="";r+='<li class="dropdown-item" onclick="assignCurrCat(this)" value="'+Translator.translate("All Categories")+'" catid="">'+Translator.translate("All")+"</li>",jQuery.each(t,function(e,a){r+='<li class="dropdown-item" onClick="assignCurrCat(this)" value="'+t[e].name.replace(/"/g,""")+'" catid="'+t[e].id+'">'+t[e].name+"</li>",getParameterByName("cat")==t[e].id&&(s=t[e].name)}),jQuery("#searchDropdownBox").append(r),""!=s&&(jQuery("#selSrchHidden").val(""),jQuery("#allSrchCat").text(s)),r&&(localStorage.searchBarCategoriesContent=r)},this.getAdvisorData=function(e){0===Object.keys(e).length?jQuery(".user-detail").hide():("null"!=e.title&&"undefined"!=e.title&&(agentTitle=e.title),"null"!=e.firstname&&"undefined"!=e.firstname&&(agentFN=e.firstname),"null"!=e.lastname&&"undefined"!=e.lastname&&(agentLN=e.lastname),e.mail&&"null"!=e.mail&&"undefined"!=e.title&&(agentMail=e.mail),"null"!=e.telephonenumber&&"undefined"!=e.telephonenumber&&(agentTel=e.telephonenumber),"null"!=e.mobilephonenumber&&"undefined"!=e.mobilephonenumber&&(agentMobile=e.mobilephonenumber),"null"!=e.faxnumber&&"undefined"!=e.faxnumber&&(agentFax=e.faxnumber),"null"!=e.imageurl&&"undefined"!=e.imageurl&&("undefined"==typeof(agentImgUrl=e.imageurl)?(agentImgUrl="",jQuery("#headerLinks li.user-login").hide()):(jQuery("#headerLinks li.user-login").show(),agentImgUrl=agentImgUrl.toLowerCase())),localStorage.getItem("customerNotLoggedIn")&&1!=localStorage.getItem("customerNotLoggedIn")?(console.log("normalMode -> #2"),updateAgentHtml("normalMode")):(console.log("multipleAdvisorMode"),jQuery("#headerLinks li.user-login").show(),"null"!=e.multiple_advisor_feature&&"undefined"!=e.multiple_advisor_feature&&"enabled"==e.multiple_advisor_feature?("null"!=e.advisor_one_name&&"undefined"!=e.advisor_one_name&&(agentOneName=e.advisor_one_name),"null"!=e.advisor_one_title&&"undefined"!=e.advisor_one_title&&(agentOneTitle=e.advisor_one_title),"null"!=e.advisor_one_mail&&"undefined"!=e.advisor_one_mail&&(agentOneMail=e.advisor_one_mail),"null"!=e.advisor_one_imageurl&&"undefined"!=e.advisor_one_imageurl&&(agentOneImageUrl=e.advisor_one_imageurl),"null"!=e.advisor_one_telephonenumber&&"undefined"!=e.advisor_one_telephonenumber&&(agentOnePhone=e.advisor_one_telephonenumber),"null"!=e.advisor_one_mobile&&"undefined"!=e.advisor_one_mobile&&(agentOneMobile=e.advisor_one_mobile),"null"!=e.advisor_one_faxnumber&&"undefined"!=e.advisor_one_faxnumber&&(agentOneFax="FAX: "+e.advisor_one_faxnumber),"null"!=e.advisor_one_branch&&"undefined"!=e.advisor_one_branch&&(agentOneBranch=e.advisor_one_branch),"null"!=e.advisor_two_name&&"undefined"!=e.advisor_two_name&&(agentTwoName=e.advisor_two_name),"null"!=e.advisor_two_title&&"undefined"!=e.advisor_two_title&&(agentTwoTitle=e.advisor_two_title),"null"!=e.advisor_two_mail&&"undefined"!=e.advisor_two_mail&&(agentTwoMail=e.advisor_two_mail),"null"!=e.advisor_two_imageurl&&"undefined"!=e.advisor_two_imageurl&&(agentTwoImageUrl=e.advisor_two_imageurl),"null"!=e.advisor_two_telephonenumber&&"undefined"!=e.advisor_two_telephonenumber&&(agentTwoPhone=e.advisor_two_telephonenumber),"null"!=e.advisor_two_mobile&&"undefined"!=e.advisor_two_mobile&&(agentTwoMobile=e.advisor_two_mobile),"null"!=e.advisor_two_faxnumber&&"undefined"!=e.advisor_two_faxnumber&&(agentTwoFax="FAX: "+e.advisor_two_faxnumber),"null"!=e.advisor_two_branch&&"undefined"!=e.advisor_two_branch&&(agentTwoBranch=e.advisor_two_branch),"null"!=e.advisor_three_name&&"undefined"!=e.advisor_three_name&&(agentThreeName=e.advisor_three_name),"null"!=e.advisor_three_title&&"undefined"!=e.advisor_three_title&&(agentThreeTitle=e.advisor_three_title),"null"!=e.advisor_three_mail&&"undefined"!=e.advisor_three_mail&&(agentThreeMail=e.advisor_three_mail),"null"!=e.advisor_three_imageurl&&"undefined"!=e.advisor_three_imageurl&&(agentThreeImageUrl=e.advisor_three_imageurl),"null"!=e.advisor_three_telephonenumber&&"undefined"!=e.advisor_three_telephonenumber&&(agentThreePhone=e.advisor_three_telephonenumber),"null"!=e.advisor_three_mobile&&"undefined"!=e.advisor_three_mobile&&(agentThreeMobile=e.advisor_three_mobile),"null"!=e.advisor_three_faxnumber&&"undefined"!=e.advisor_three_faxnumber&&(agentThreeFax="FAX: "+e.advisor_three_faxnumber),"null"!=e.advisor_three_branch&&"undefined"!=e.advisor_three_branch&&(agentThreeBranch=e.advisor_three_branch),updateAgentHtml("multipleAdvisorMode")):(console.log("normalMode -> #1"),updateAgentHtml("normalMode"))))},this.getCustomerInformation=function(e){setOverlayLoaderToLockScreen();var a,t,r,s,o,n,i;""!=e.customer_id&&null!=e.name?(jQuery("#headerPLCaptionIcon").removeClass("partlistGrayIcon"),jQuery("#headerPLCaptionIcon").addClass("partlistBlueIcon"),jQuery("#headerPLCaptionText").removeClass("gray"),jQuery("#headerPLCaptionText").addClass("blueTxt"),"null"!=e.customer_id&&(customerId=e.customer_id),"null"!=e.name&&(customerName=e.name),"null"!=e.acl_role&&(customerAclRole=e.acl_role,isMaster=e.isMasterCustomer,console.log("Current Role #3 = "+customerAclRole),console.log("IsMaster = "+isMaster),"staff"!=customerAclRole&&"projectant"!=customerAclRole&&!isMaster||(jQuery(".btn-quickAdd").addClass("hide"),jQuery(".MyCart").addClass("hide"),new MutationObserver((e,a)=>{jQuery(".slider-cart").each(function(){jQuery(this).remove()}
1),console.log("Removed .slider-cart elements dynamically.")}).observe(document.body,{childList:!0,subtree:!0}))),null===(customerImage="null"!=e.image?e.image:customerImage)&&(customerImage=BASE_URL+"skin/frontend/schrack/default/schrackdesign/Public/Images/dmmuuserImg.png"),jQuery("#my_account_image_link_in_menu").on("click",function(){dataLayer&&dataLayer.push({event:"generalLinkblockActions",eventLabel:"My Account Icon Menu"})}),jQuery("#my_account_text_link_in_menu").on("click",function(){dataLayer&&dataLayer.push({event:"generalLinkblockActions",eventLabel:"My Account Menu"})}),jQuery("#logout_link_in_menu").on("click",function(){forceFetchMegaMenu(),dataLayer&&dataLayer.push({event:"generalLinkblockActions",eventLabel:"Logout Menu"})}),i="",null!=e.name&&(i=e.name),n="",null!=e.customer_id&&(n=e.translation_cid+": "+e.customer_id),a="",null!=e.company_name&&(a=e.company_name),null!=e.fav_customer_list&&e.fav_customer_list,r="skin/frontend/schrack/default/schrackdesign/Public/Images/",t=BASE_URL+r+"dmmuuserImg_blue_small.png",r=BASE_URL+r+"logout_rectangle_blue_small.png",i='<div id="customerAccContainer" class="pull-left"><div id="customerLogInContainer" class="userLogdIn pull-left" title="'+Translator.translate("My Account")+'"><img src="'+customerImage+'" alt="'+customerName+'"/></div></div><div class="headerActionsLayer"><div class="arrow_up"></div><div class="headerActionsLayerContentWrapper"><div class="headerActionsLayerContentRow1">'+i+'</div><div class="headerActionsLayerContentRow2">'+n+'</div><div class="headerActionsLayerContentRow3">'+a+'</div><div class="headerActionsLayerContentRow4"><div class="headerActionsLayerContentRow4Wrapper1"><img src="'+t+'" alt="'+Translator.translate("My Account Alt Text")+'" class="my_account_image"><span id="my_account_text">'+Translator.translate("My Account")+'</span><div style="clear: both;"></div></div><div class="headerActionsLayerContentRow4Wrapper2"><img src="'+r+'" alt="'+Translator.translate("Logout Alt Text")+'" class="my_logout_link_image"><span id="my_logout_text">'+Translator.translate("Logout")+'</span><div style="clear: both;"></div></div></div><div class="headerActionsLayerContentRow5"><span class="aac_headline">'+actAsCustomerSearchbarHeadline+'</span><span class="aac_headline_L2">'+actAsCustomerSearchHeadline+'</span><div class="actAsCustomerSearchbarContainer" ><div class="aac_favouriteListFilterSearch"><label class="aac_favouriteListFilterLabel" for="actAsCustomerListMyCustomersOnlySearchbar">'+actAsCustomerSearchMyCustomersOnlyTxt+'</label><input class="form-check-input" type="checkbox" id="actAsCustomerListMyCustomersOnlySearchbar" value="on" '+("on"==localStorage.actAsCustomerSearchMyCustomersOnly?"checked":"")+' /></div><input id="actAsCustomerSearchbar" autocomplete="off" /><span id="aac_clearSearchbarIcon">X</span><span class="actAsCustomerMagnifierButton" ><span id="aac_loadingSpinner" class="hide" /><span id="aac_searchMagnifierImg" class="glyphicon glyphicon-search show_ib" /></span></div><div id="actAsCustomerSearchbarResultContainer" ><ul id="actAsCustomerSearchbarResultList"></ul></div><div class="actAsCustomerListContainer" ><span class="aac_headline_L2">'+actAsCustomerFavouritesHeadline+'</span><div class="aac_favouriteListFilter"><label class="aac_favouriteListFilterLabel" for="actAsCustomerListMyCustomersOnly">'+actAsCustomerMyCustomersOnlyTxt+'</label><input class="form-check-input" type="checkbox" id="actAsCustomerListMyCustomersOnly" value="on" '+("on"==localStorage.actAsCustomerFavouritesMyCustomersOnly?"checked":"")+' /></div><div class="actAsCustomerList" ><ul id="actAsCustomerFavouritesList"></ul></div></div></div></div></div>',jQuery("#customerProfileLink").html(i),jQuery(actAsCustomerLoginForm).appendTo("#customerProfileLink"),jQuery(".headerActionsLayerContentRow5").show(),1!=localStorage.actAsACustomer&&0!=localStorage.actAsACustomerAllowed||jQuery(".headerActionsLayerContentRow5").hide(),s='<li class="aac_no_fav_li">'+actAsCustomerNoFavouritesDefinedTxt+"</li>",aac_FavListItems=""===aac_FavListItems?s:aac_FavListItems,jQuery(aac_FavListItems).appendTo("#actAsCustomerFavouritesList"),"on"==localStorage.actAsCustomerFavouritesMyCu
1stomersOnly&&jQuery("#actAsCustomerFavouritesList .defaultCustomer").hide(),jQuery("#actAsCustomerSearchbarResultList").on("click",".addFavouriteCustomer",function(){var e=jQuery(this).data("aacFavobject"),a=!1,t=!1;if(clearTimeout(actAsCustomerActionMsgInterval),t=jQuery(this).is("#addAllFavouriteCustomer")?!0:t){for(var r=0;r<aac_searchResultList.customers.length;r++)for(var s=0;s<aac_favouriteList.customers.length;s++)aac_favouriteList.customers[s].aac_id==aac_searchResultList.customers[r].aac_id&&(a=!0,aac_searchResultList.customers[r]="");if(a){for(var o=aac_searchResultList.customers.length,r=0;r<o;r++)aac_searchResultList.customers[r]&&aac_searchResultList.customers.push(aac_searchResultList.customers[r]);aac_searchResultList.customers.splice(0,o)}if(void 0===aac_searchResultList.customers||aac_searchResultList.customers.length<1)return aac_searchResultList={customers:[]},jQuery("#addAllFavouriteCustomer").toggleClass("addFavouriteCustomer addFavouriteCustomerInactive"),jQuery("#Aac_AddFavouritesMsgWrapper .messages .success-msg .success-msg-txt").text(actAsCustomerNoneAddToFavouritesMsgTxt),jQuery("#Aac_AddFavouritesMsgWrapper").removeAttr("style").removeClass("hide"),actAsCustomerActionMsgInterval=setTimeout(function(){jQuery("#Aac_AddFavouritesMsgWrapper").fadeOut(1e3).addClass("hide")},5e3),!1}else{for(r=0;r<aac_favouriteList.customers.length;r++)aac_favouriteList.customers[r].aac_id==e.aac_id&&(a=!0);a&&(jQuery("#actAsCustomerSearchbarResultContainer").animate({scrollTop:0}),jQuery("#Aac_AddFavouritesMsgWrapper .messages .success-msg .success-msg-txt").text(actAsCustomerNoneAddToFavouritesMsgTxt),jQuery("#Aac_AddFavouritesMsgWrapper").removeAttr("style").removeClass("hide"),actAsCustomerActionMsgInterval=setTimeout(function(){jQuery("#Aac_AddFavouritesMsgWrapper").fadeOut(1e3).addClass("hide")},5e3))}a&&!t||(t?(jQuery("#addAllFavouriteCustomer").toggleClass("addFavouriteCustomer addFavouriteCustomerInactive"),aac_favouriteList.customers=aac_favouriteList.customers.concat(aac_searchResultList.customers)):aac_favouriteList.customers.push(e),jQuery("#actAsCustomerSearchbarResultContainer").animate({scrollTop:0}),jQuery("#Aac_AddFavouritesMsgWrapper .messages .success-msg .success-msg-txt").text(actAsCustomerAddToFavouritesOkMsgTxt),jQuery("#Aac_AddFavouritesMsgWrapper").removeAttr("style").removeClass("hide"),hideMsg=setTimeout(function(){jQuery("#Aac_AddFavouritesMsgWrapper").fadeOut(1e3).addClass("hide")},5e3),jQuery.ajax(aac_AddFavouriteUrl,{type:"post",data:aac_favouriteList,success:function(){aac_FavListItems="";for(var e=0;e<aac_favouriteList.customers.length;e++)aac_FavListItems+=actAsCustomerResultListItem(aac_favouriteList.customers[e],"");jQuery("#actAsCustomerFavouritesList").empty(),jQuery(aac_FavListItems).appendTo(jQuery("#actAsCustomerFavouritesList"))}}))}),jQuery("#actAsCustomerFavouritesList").on("click",".removeFavouriteCustomer",function(){for(var e=jQuery(this).data("aacFavobject"),a=-1,t=!1,r=0;r<aac_favouriteList.customers.length;r++)aac_favouriteList.customers[r].aac_id==e.aac_id&&(1==aac_favouriteList.customers.length&&(t=!0),aac_favouriteList.customers.splice(r,1),a=r);t&&(aac_favouriteList=""),0<=a&&jQuery.ajax(aac_AddFavouriteUrl,{type:"post",data:aac_favouriteList,success:function(){if(jQuery("#actAsCustomerFavouritesList").empty(),aac_FavListItems="",t)aac_FavListItems=s,(void 0===aac_favouriteList.customers||aac_favouriteList.customers.length<1)&&(aac_favouriteList={customers:[]});else for(var e=0;e<aac_favouriteList.customers.length;e++)aac_FavListItems+=actAsCustomerResultListItem(aac_favouriteList.customers[e],"");jQuery(aac_FavListItems).appendTo(jQuery("#actAsCustomerFavouritesList"))}})}),jQuery("#actAsCustomerFavouritesList, #actAsCustomerSearchbarResultList").on("click",".aac_text_rows",function(){jQuery(this).parent().hide().next().addClass("active").fadeTo("fast",1)}),jQuery("#actAsCustomerFavouritesList, #actAsCustomerSearchbarResultList").on("click",".aac_login_abort",function(){jQuery(this).parent().fadeOut(500).removeClass("active").prev().fadeIn(500),localStorage.actAsACustomer=0,localStorage.actAsACustomerRealEmail="",jQuery("#aac_customer_id").val("")}
1),jQuery("#actAsCustomerFavouritesList, #actAsCustomerSearchbarResultList").on("click",".aac_login",function(){var e=jQuery(this).data("aacCustomerid");localStorage.actAsACustomer=1,localStorage.actAsACustomerRealEmail=aac_realEmail,console.log("typeof jQuery('#aac_customer_id')"),console.log(typeof jQuery("#aac_customer_id")),jQuery("#aac_customer_id").val(e),jQuery("#aac_act_as_a_customer_form").submit()}),jQuery("#customerLogInContainer").on("click",function(){0==jQuery(".overlay").length&&jQuery("body").append('<div class="overlay"></div>'),jQuery(".overlay").show(),jQuery(".overlay").on("click",function(){"true"==localStorage.darkBackground&&(jQuery(".overlay").hide(),jQuery(".headerActionsLayer").hide())}),localStorage.darkBackground="true",jQuery(".headerActionsLayer").show(),dataLayer&&dataLayer.push({event:"generalLinkblockActions",eventLabel:"My Account Icon Header"})}),jQuery(".headerActionsLayerContentRow4Wrapper1").on("click",function(){window.location=BASE_URL+"customer/account",dataLayer&&dataLayer.push({event:"generalLinkblockActions",eventLabel:"My Account Header"});var e=jQuery(this).text()?jQuery(this).text():"no title",a=jQuery(this).attr("href")?jQuery(this).attr("href"):window.location.href;window.dataLayer.push({event:"header_click",link_text:e,link_url:a})}),jQuery(".headerActionsLayerContentRow4Wrapper2").on("click",function(){forceFetchMegaMenu(),window.location=BASE_URL+"customer/account/logout",dataLayer&&dataLayer.push({event:"generalLinkblockActions",eventLabel:"Logout Header"});var e=jQuery(this).text()?jQuery(this).text():"no title",a=jQuery(this).attr("href")?jQuery(this).attr("href"):window.location.href;window.dataLayer.push({event:"header_click",link_text:e,link_url:a})}),jQuery("#agentInfoHead").addClass("userLogdIn"),jQuery("#headerLinks").fadeIn(500),jQuery("#dashCustName").text(customerName),jQuery("#dashCusID").text(customerId),jQuery.switcher("#actAsCustomerListMyCustomersOnly, #actAsCustomerListMyCustomersOnlySearchbar"),jQuery("#actAsCustomerListMyCustomersOnly").on("change",function(){jQuery(this).is(":checked")?(localStorage.actAsCustomerFavouritesMyCustomersOnly="on",jQuery("#actAsCustomerFavouritesList .defaultCustomer").hide()):(localStorage.actAsCustomerFavouritesMyCustomersOnly="off",jQuery("#actAsCustomerFavouritesList .defaultCustomer").show())}),jQuery("#actAsCustomerListMyCustomersOnlySearchbar").on("change",function(){jQuery(this).is(":checked")?localStorage.actAsCustomerSearchMyCustomersOnly="on":localStorage.actAsCustomerSearchMyCustomersOnly="off",jQuery("#actAsCustomerSearchbar").trigger("keyup")}),jQuery("#aac_clearSearchbarIcon").on("click",function(){jQuery("#actAsCustomerSearchbar").val(""),jQuery("#actAsCustomerSearchbarResultList").removeClass("active").html(""),jQuery("#aac_clearSearchbarIcon").removeClass("show")}),jQuery("#actAsCustomerSearchbar").on("keyup paste",function(e){jQuery("#aac_clearSearchbarIcon").addClass("show"),jQuery("#actAsCustomerSearchbar").css("color","black"),isNumber(jQuery("#actAsCustomerSearchbar").val())&&3<jQuery("#actAsCustomerSearchbar").val().length||!isNumber(jQuery("#actAsCustomerSearchbar").val())&&2<jQuery("#actAsCustomerSearchbar").val().length?(jQuery("#actAsCustomerSearchbar").val(jQuery("#actAsCustomerSearchbar").val().replace(/["';\[\]<>\x00-\x09\x0B\x0C\x0E-\x1F\xE2\x7F\n\r]/g,"")),o&&clearTimeout(o),o=setTimeout(function(){actAsCustomerSearchRequest()},1e3)):(jQuery("#actAsCustomerSearchbarResultList").removeClass("active").html(""),0==jQuery("#actAsCustomerSearchbar").val().length&&jQuery("#aac_clearSearchbarIcon").removeClass("show"))}),jQuery("#actAsCustomerSearchbar").attr("placeholder",actAsCustomerSearchbarPlaceholder)):(jQuery("#headerPLCaptionIcon").removeClass("partlistBlueIcon"),jQuery("#headerPLCaptionIcon").addClass("partlistGrayIcon"),jQuery("#headerPLCaptionText").removeClass("blueTxt"),jQuery("#headerPLCaptionText").addClass("gray"),jQuery("#link-nav-login-button").on("click",function(){window.location=BASE_URL+"customer/account/login",dataLayer&&dataLayer.push({event:"generalLinkblockActions",eventLabel:"Login Menu"})}),n=BASE_URL+"skin/frontend/schrack/default/schrackdesign/Public/
1Images/rwd/login_icon_mobile.png",i='<div id="link_header_login_button" class="square_header_login_button" title="'+Translator.translate("Login")+'"><img id="login_image_mobile" alt="'+Translator.translate("Login Alt Text")+'" src="'+n+'" /></div><ul class="dropdown-menu"></ul></div>',jQuery("#customerProfileLink").html(i),jQuery("#agentInfoHead").addClass("userLogdIn"),jQuery("#headerLinks").fadeIn(500),jQuery("#link_header_login_button").on("click",function(){localStorage.customerLoggedInEmail="",window.location=BASE_URL+"customer/account/login",dataLayer&&dataLayer.push({event:"generalLinkblockActions",eventLabel:"Login Header"})})),jQuery(".logout_action").on("click",function(){localStorage.customerNotLoggedIn="1",localStorage.actAsACustomer=0,localStorage.actAsACustomerRealEmail="",localStorage.customerLoggedInEmail="",console.log("Logout Button #1 Clicked")}),1==e.site_header_info_status?(jQuery("#siteHeaderInfoIconLink").attr("href",e.site_header_info_link),jQuery("#siteHeaderInfoIcon").show()):jQuery("#siteHeaderInfoIcon").hide(),unsetOverlayLoader()},this.getCartItemCount=function(e){""!=e&&null!=e&&jQuery(".MyCart").append('<div id="cartNoBxItemCount" class="cartNoBx">'+e+"</div>")},this.getFeaturedProducts=function(a){var e=BASE_URL+"onlinetools/commonTools/getTranslations",t=new Object,r=(t.key001="NOT AVAILABLE",this);jQuery.ajax(e,{dataType:"json",type:"POST",data:t,success:function(e){""!=e&&null!=e&&(jQuery.each(e,function(e,a){Translator.add(e,a)}),r.getSliderElements(a,jQuery(".featureProdCont"),jQuery("#featureSliderCon")),(e=jQuery("#featureSliderCon")).length)&&((e=e.parent()).hasClass("placeholder-product-slider")&&e.removeClass("placeholder-product-slider"),e.hasClass("last-viewed-purchased"))&&e.removeClass("last-viewed-purchased")}})},this.getLastPurchasedProducts=function(a){var e=BASE_URL+"onlinetools/commonTools/getTranslations",t=new Object,r=(t.key001="NOT AVAILABLE",this);jQuery.ajax(e,{dataType:"json",type:"POST",data:t,success:function(e){""!=e&&null!=e&&(jQuery.each(e,function(e,a){Translator.add(e,a)}),r.getSliderElements(a,jQuery(".purchasedProdCont"),jQuery("#purchasedSliderCon")),(e=jQuery("#purchasedSliderCon")).length)&&(e.parent().removeClass("placeholder-product-slider"),e.parent().removeClass("last-viewed-purchased"))}})},this.setListPrices=function(r,e){var s;"object"==typeof r&&(s=jQuery("."+e),jQuery.each(r,function(e,a){var t="";"promotion"!==r[e].promotype&&"sales"!==r[e].promotype&&"insteadof"!==r[e].promotype||(jQuery(s.find(".price_"+e)).addClass("sliderRedColor"),t="sliderRedColor"),t=r[e].currency+' <span class="general_current_price '+t+'">'+r[e].currentprice+"</span>/"+r[e].priceunit+" "+r[e].qtyunit,jQuery(s.find(".price_"+e)).html(t),jQuery(s.find("#"+e)).data("price",r[e].currentprice).data("currencycode",r[e].currency)}),jQuery(s.find(".slider-cart")).show())},this.getSliderElements=function(s,o,e){var a,t,n="",i="",l=BASE_URL+"skin/frontend/schrack/default/schrackdesign/Public/
1Images/rwd/cartIconWht.png",c=jQuery.trim(o.attr("class")).split(/\s+/),u="";o&&(a=!1,t=window.location.href,-1<["https://www.schrack.at/","https://www.schrack.ba/","https://www.schrack.be/","https://www.schrack.bg/","https://www.schrack.com/","https://www.schrack.cz/","https://www.schrack.ch/","https://www.schrack-technik.de/","https://www.schrack.hr/","https://www.schrack.hu/","https://www.schrack-technik.nl/","https://www.schrack.pl/","https://www.schrack.ro/","https://www.schrack.rs/","https://www.schrack-technik.ru/","https://www.schrack.sa/","https://www.schrack.si/","https://www.schrack.sk/","https://www.schrack.ua/","https://test-at.schrack.com/","https://test-ba.schrack.com/","https://test-be.schrack.com/","https://test-bg.schrack.com/","https://test-ch.schrack.com/","https://test-com.schrack.com/","https://test-cz.schrack.com/","https://test-de.schrack.com/","https://test-hr.schrack.com/","https://test-hu.schrack.com/","https://test-nl.schrack.com/","https://test-pl.schrack.com/","https://test-ro.schrack.com/","https://test-rs.schrack.com/","https://test-ru.schrack.com/","https://test-sa.schrack.com/","https://test-si.schrack.com/","https://test-sk.schrack.com/","https://test-ua.schrack.com/"].indexOf(t)&&(a=!0),void 0!==o&&void 0!==o.attr("class")&&void 0!==o.attr("class").indexOf("featureProdCont")&&-1!=o.attr("class").indexOf("featureProdCont")&&1==a&&(u="TYPO Slider Startpage Last Viewed"),void 0!==o&&void 0!==o.attr("class")&&void 0!==o.attr("class").indexOf("promotionProdCont")&&-1!=o.attr("class").indexOf("promotionProdCont")&&1==a&&(u="TYPO Slider Startpage Promotions"),void 0!==o)&&void 0!==o.attr("class")&&void 0!==o.attr("class").indexOf("solrProdCont")&&o.attr("class").indexOf("solrProdCont")&&0==a&&(u="TYPO Slider Content Page"),"object"==typeof s&&jQuery.each(s,function(e,a){var t,r;void 0===s[e].url||"undefined"==s[e].url||null==s[e].url||0==s[e].url?console.log("No Slider Elements Found"):(i=s[e].imageLightbox,htmlCart="",i=i||s[e].image,t=!0,"strategic_no"!=s[e].statuslocal&&"unsaleable"!=s[e].statuslocal&&"gesperrt"!=s[e].statuslocal&&"tot"!=s[e].statuslocal||(t=!1),s[e].saleable&&1==t&&(htmlCart='<div><input type="number" maxlength="12" class="qty-'+s[e].sku+'" onkeydown="if (event.which === 13){orderItem(\''+s[e].sku+"', '"+c.join(".")+"', '"+u+"', '"+s[e].name.replace(/"/g,""")+"', '"+s[e].category+'\')}"></div><div> <button class="addToCartButton" onclick="orderItem(\''+s[e].sku+"', '"+c.join(".")+"', '"+u+"', '"+s[e].name.replace(/"/g,""")+"', '"+s[e].category+'\')"><img class="addToCartImage" alt="'+Translator.translate("Add To Cart Alt Text")+'" src="'+l+'" /></button></div>'),n+='<li class="slide product-details productSliderList"><div class="imgBox other-actions product_'+s[e].sku+'"><div>'+s[e].sku+"</div>",s[e].isPromotion&&(r=BASE_URL+"skin/frontend/schrack/default/schrackdesign/Public/
1Images/rwd/promotion/promotion_sticker_rot.svg",n+='<img src="'+r+'" class="product-promotion"/>'),void 0!==o.attr("class")&&-1===o.attr("class").indexOf("ddmProdCont")&&1==t&&(n+='<div class="wishListDropdown"> <div class="glyphicon glyphicon-pushpin pin-icon" data-toggle="dropdown"></div> <ul class="dropdown-list dropdown-menu wishListDropdown" aria-labelledby="parlistdropdownbtn-'+s[e].sku+'"></ul></div>'),n+='<div class="img-container">',s[e].promotionLabel&&s[e].promotionLabel.includes("Vignette")&&(n+='<span class="vignette_sign">Vignette</span>'),s[e].eMobilityLabel&&s[e]&&(n+=s[e].eMobilityLabel),s[e].promotionLabel&&s[e].promotionLabel.includes("Fanpackage")&&(n+='<span><img class="visio_sign fanpackage" src="'+s[e].fanpackageImagePath+'" alt="Fanpackage product" /></span>'),s[e].promotionLabel&&s[e].promotionLabel.includes("Sommeraktion")&&(n+='<span><img class="visio_sign fanpackage" src="'+s[e].summerOfferImagePath+'" alt="Summer offer product" /></span>'),s[e].promotionLabel&&s[e].promotionLabel.includes("Herbstaktion")&&(n+='<span><img class="visio_sign fanpackage" src="'+s[e].autumnOfferImagePath+'" alt="Autumn offer product " /></span>'),s[e].isVisioS?n+='<span><img class="visio_sign" src="'+s[e].visioSImagePath+'" alt="Visio product" /></span>':s[e].mainProducer&&s[e].mainProducer.includes("Trinity")&&(n+='<span class="trinity_sign">Trinity</span>'),n=(n+="</div>")+'<a class="previewImageHover" data-preview-path="'+i+'" title="'+s[e].name.replace(/"/g,""")+'" href="'+s[e].url+'"><img data-src="'+s[e].image+'" class="lazy productImage" src="'+s[e].image+'" alt="'+s[e].name.replace(/"/g,""")+'" title="'+s[e].name.replace(/"/g,""")+'"/></a></div><div class="productName"><a href="'+s[e].url+'">'+s[e].name+"</a></div>",1==t?void 0!==o.attr("class")&&-1!==o.attr("class").indexOf("ddmProdCont")?(s[e].offer!==s[e].price?n+='<div class="price"> '+s[e].currency+' <span class="general_current_price offer">'+s[e].offer+"</span> "+s[e].priceunit+"/"+s[e].qtyunit+' </div><div class="price not_actual"> '+s[e].currency+' <span class="general_current_price">'+s[e].price+"</span> "+s[e].priceunit+"/"+s[e].qtyunit+" </div>":n+='<div class="price only_offer"> '+s[e].currency+' <span class="general_current_price">'+s[e].price+"</span> "+s[e].priceunit+"/"+s[e].qtyunit+" </div>",n+='<a class="addToCartButton" href="'+s[e].url+'"> '+Translator.translate("To offer")+" </a>"):n=(n+='<div class="price price_'+s[e].sku+'"><img class="ajaxSpinnerListPriceLoading" src="'+s[e].ajaxLoader+'"/> </div><div style="display:hidden" id="'+s[e].sku+'" data-tracking-enabled="enabled" data-name="'+s[e].name.replace(/"/g,""")+'" data-category="'+s[e].category+'" data-price="" data-currencyCode=""></div><div class="slider-cart" style="display: none">'+htmlCart+"</div>")+'<div id="engeryLabelSet" class="energyLabelSet" style="display: '+(s[e].energyLabel&&s[e].dataSheet&&s[e].energyLabelUrl?"inline-flex":"none")+'; order:8; justify-content: center; margin-top: 5px"><div id="energyLable" class="info-icon energyLabel" data-toggle="modal" data-target="#myModal_'+s[e].sku+'" style="width:43px;border:solid 0px green; display: flex;"><svg viewbox="0 0 290 150" style="width:100%;height:auto" ><polygon points="0,0 0,150 220,150 290,75 220,0" style="stroke-width:1;stroke:rgb(0,0,0);fill:'+s[e].energyLabelColorCode+'"/><rect width="50" height="148" x="1" y="1" style="fill:rgb(255,255,255);stroke-width:1;stroke:rgb(0,0,0);" /><text x="9" y="40" style="fill:black;font-size:35pt;font-family:Arial;font-weight:bold;">A</text><polyline points="26,50 40,75 30,68 30,95 23,95 23,68 13,75 26,50" style="fill:black;stroke:black;stroke-width:1" /><text x="7" y="142" style="fill:black;font-size:35pt;font-family:Arial;font-weight:bold;">G</text><text x="90" y="120" style="fill:black;font-size:90pt;font-family:Arial;fill:rgb(255,255,255); stroke-width:1;stroke:rgb(30,30,30);">'+s[e].energyLabel+'</text></svg></div><div id="myModal_'+s[e].sku+'" class="modal fade" role="dialog" ><div class="modal-dialog modal-sm"><div id="modal-content"><div class="modal-body"><img src="'+s[e].energyLabelUrl+'" alt="energylabel" width="95%"/></div></div></div></div><span class="energyLabelDatasheet" style="font-size: 13px; margin-left: 10px; text-decoration: underline"><a id="energyLableText" style="color: #888;" href="'+s[e].dataSheet+'" rel="nofollow" target="_blank" >Datasheet</a></span></div>':n+='<div style="color: #aaa;">'+Translator.translate("NOT AVAILABLE"),n+="</li>")}),""!=n&&(o.html(n),e.show(),o.bxSlider({touchEnabled:touchDisableForDesktop,useCSS:!1,auto:!1,pager:!1,slideWidth:210,minSli
1des:1,maxSlides:5,moveSlides:5,infiniteLoop:!1,hideControlOnEnd:!0,onSliderLoad:function(e){jQueryLazyLoader.update()}})),992<jQuery(window).width()&&imagePreviewHover(),jQuery(o).find(".product-details .previewImageHover, .product-details .productName a").on("click",function(e){setSliderNameAsPageType(e,this)})},this.getPromotionProducts=function(e){"object"!=typeof e||""==customerId&&""==customerName||this.getSliderElements(e,jQuery(".promotionProdCont"),jQuery("#promotionSliderCon"))},this.getProductPrices=function(y){function a(e){var o=jQuery(e).attr("data-sku"),a=jQuery(e).attr("data-salesunitqty"),t=jQuery("#qtyaddtocartfield"+o).val(),n=0;if(0<t?n=t:(n=a,jQuery("#qtyaddtocartfield"+o).val(a)),jQuery("ul.messages").empty(),jQuery("ul.errors").empty(),void 0!==jQuery(e).data("vtcmaxqty")){t=jQuery(e).data("vtcmaxqty"),a=jQuery("#qtyaddtocartfield"+o).val();if(console.log("appendMessageUl #vtc before check"),t<a)return console.log("appendMessageUl #vtc"),appendMessageUl([Translator.translate("Your selected quantity may result in a longer delivery time. Please select the available quantity currently in stock or pick an alternative item. Get in touch if you would like us to recommend a suitable article.")],"messages_hidden","error-msg","glyphicon glyphicon-exclamation-sign"),unsetOverlayLoader(),void jQuery(".error-msg").scrollTop()}e=globalSHOP_CATEGORY_AJAX_URL;jQuery.ajax(e,{dataType:"json",type:"POST",data:{form_key:globalFORM_KEY,sku:o},success:function(e){var s=e.result,e={data:{sliderClass:"general_current_addtocart_container",sku:o,quantity:n,drum:""}},a=(location.search.split("q=")[1]||"").split("&")[0];"string"==typeof a&&""<a&&(e.data.query=a),jQuery.ajax(ajaxUrl,{dataType:"json",type:"POST",data:{form_key:globalFORM_KEY,setAddToCartFromSlider:e},success:function(e){unsetOverlayLoader();var a,t,r,e=e.setAddToCartFromSlider.result;1==e.showPopup?(jQuery("#quantitywarningpopup").html(e.popupHtml),jQuery("#quantitywarningpopupBtn").click()):(e.numberOfDifferentItemsInCart&&jQuery(".MyCart").append('<div id="cartNoBxItemCount" class="cartNoBx">'+e.numberOfDifferentItemsInCart+"</div>"),t=!1,e.data.newQty&&0<e.data.newQty&&(jQuery("#qtyaddtocartfield"+o).val(e.data.newQty),n=e.data.newQty,t=!0),a=e.data.messages,-1==e.result.indexOf("SUCCESS")?(appendMessageUl(a,"messages_hidden","error-msg","glyphicon glyphicon-exclamation-sign"),console.log("appendMessageUl #40")):(0==t&&(e=(e=(e=(e=(e=jQuery("#textLink_"+o).text()).replace('<span class="results-highlight">',"")).replace("</span>","")).replace(/(\r\n|\n|\r)/gm,"")).trim(),t=new Object,r=document.querySelector("#general_current_price_container"+o),t.trackingEnabled=globalTRACKING_ENABLED,t.pagetype="search results",t.sku=o,t.name=e,t.price=r.querySelector(".span_currentprice5").innerHTML.replace(".","").replace(",","."),t.category=s,t.currencyCode=globalCURRENCY_CODE,t.quantity=n,localStorage.setItem("trackingData_pagetype",t.pagetype),localStorage.setItem("trackingData_name",t.name),localStorage.setItem("trackingData_category",t.category),localStorage.setItem("trackingData_featureSrc","Search Result Page Product"),addToCartTracking(t,"Search")),appendMessageUl(a,"messages_hidden","success-msg","glyphicon glyphicon-ok"),console.log("appendMessageUl #41")))},error:function(e){}})},error:function(e){}})}jQuery.each(y,function(t,e){if(y[t].mayseeprices){var a=y[t].promotype||"unknown",r="sales"==a,s=y[t].currency+' <span class="span_currentprice3 general_current_price">'+y[t].currentprice+"</span>/"+y[t].formattedPriceunit,s=((r||"insteadof"==a)&&0<parseFloat(y[t].saving.replace(",","."))&&(s+=' <div class="general_current_price instead_price">'+Translator.translate("instead")+" "+y[t].currency+" "+y[t].regularprice+"</div>"),jQuery("#product_"+t+" .product-price").prepend(s),'<span class="general_current_price_currency">'+y[t].currency+"</span>"),o='<span class="span_currentprice5 general_current_price_view">'+y[t].currentprice+"</span>
1",n='<span class="general_current_priceunit"> / '+y[t].formattedPriceunit+"</span>",i=jQuery("#product_"+t).attr("data-sku"),l=(l=jQuery("#textLink_"+t).text()).replace(/'/g,"'").replace(/"/g,"""),s='<div class="general_current_price_container'+(y[t].isRestricted?" hide":"")+'" id="general_current_price_container'+t+'">'+s+o+n+('<span><span class="glyphicon glyphicon-info-sign info-icon" onclick=" productPriceInfoTracking(\''+i+"', '"+l+"', 'search')\" id=\"product-price-icon-"+t+'" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true"></span><div class="popupBox qtyBoxCont dropdown-menu" aria-labelledby="product-price-icon-'+t+'"></div></span>')+"</div>",o='<input type="text" class="qtyaddtocartfield qty-'+t+'" id="qtyaddtocartfield'+t+'" name="qty-'+t+'" data-sku="'+t+'" />',n='<img class="addToCartImage loading cartButtonImage" src="'+globalADD_TO_CART_BUTTON_IMAGE_SRC+'" />';"undefined"!==y[t].vtcMaxQty&&(c="data-vtcMaxQty='"+y[t].vtcMaxQty+"'");var i="general_current_addtocart_container ",l=(1==r&&(i="general_current_addtocart_container_sales "),o+('<button id="addtocart-'+t+'" class="bttn-sm qtyaddtocartbutton" '+c+' data-sku="'+t+'" data-salesunitqty="'+y[t].priceunit+'" >'+n+"</button>")),c=(y[t].isRestricted&&(l='<div class="onrequest">'+Translator.translate("Currently not orderable")+"</div>"),'<div class="'+i+'" id="'+i+t+'" >'+l+"</div>");PAGETYPE="SEARCH_RESULTS";var l=(i='<input type="hidden" id="qty-'+t+'" value="'+y[t].priceunit+'">')+('<input type="hidden" id="productId-'+t+'" value="'+t+'">'),u=(jQuery("#product_"+t+" .modified_price_label").html(s+c+l),jQuery("#product_"+t+" .modified_price_label_new").html(s),jQuery("#product_"+t+" .add_to_cart_wrapper").html(c+l),""),d="",g='<ul class="dropdown-list dropdown-menu partslist_dropdown_menu" id="ulDropdownElementSearchResult_'+t+'" aria-labelledby="parlistdropdownbtn-'+t+'"></ul>',p=(1==localStorage.customerNotLoggedIn&&(d=" withoutLgn lgtGray",g='<ul class="dropdown-list dropdown-menu loginSuggest"><li class="add-to-new-partslist"><a href="'+(BASE_URL+"customer/account/login")+'">'+Translator.translate("Please login first!")+"</a></li></ul>"),u+='<div class="searchResultPartslistIcon" id="searchResultPartslist'+t+'"><span class="glyphicon glyphicon-pushpin blueTxt'+d+'" id="parlistdropdownbtn-'+t+'" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true" title="'+Translator.translate("Add to partslist")+'" style="cursor:pointer;"></span>'+g+"</div>",1==r&&jQuery("#product_"+t+" .modified_partslist_icon_sales").length&&jQuery("#product_"+t+" .modified_partslist_icon_sales").html(u),jQuery("#product_"+t+" .modified_partslist_icon").html(u),jQuery("#product_"+t+" .modified_partslist_icon_new").html(u),priceInfo[t]=e,"");switch(p+='<li class="hd">'+Translator.translate("Price Information")+"<span>"+Translator.translate("For")+": "+y[t].formattedPriceunit+"</span></li>",void 0!==y[t].listprice&&(p+="<li>"+Translator.translate("List Price")+':<span class="span_listprice">'+y[t].listprice+"</span></li>"),"promotion"!=a&&"sales"!=a&&"insteadof"!=a||(p+="<li>"+Translator.translate("Your Regular Price")+':<span class="span_regularprice">'+y[t].regularprice+"</span></li>",jQuery("#product_"+t+" .product-price").addClass("red"),d=jQuery("#product_"+t+" .product-price span")[0],jQuery("#product_"+t+" .product-price").find(d).addClass("red"),jQuery("#product_"+t+" .general_current_price_currency").addClass("redColor"),jQuery("#product_"+t+" .general_current_price_view").addClass("redColor"),jQuery("#product_"+t+" .general_current_priceunit").addClass("redColor")),a){case"promotion":p+="<li>"+Translator.translate("Your Promotion Price")+':<span class="span_currentprice general_current_price">'+y[t].currentprice+"</span></li><li>"+Translator.translate("Saving")+":<span>"+y[t].saving+"</span></li><li>"+Translator.translate("valid till")+" :<span>"+y[t].promovalidto+"</span></li>";break;case"sales":p+="<li>"+Translator.translate("Sales Price")+':<span class="span_currentprice4 general_current_price">'+y[t].currentprice+"</span></li><li>"+Translator.translate("Saving")+":<span>"+y[t].saving+"</span></li>";break;case"insteadof":p+="<li>"+Translator.translate("Your new price")+':<span class="span_currentprice4 general_current_price">'+y[t].currentprice+"</span></li><li>"+Translator.translate("Saving")+":<span>"+y[t].saving+"</span></li>";break;default:p+="<li>"+Translator.translate("Your Price")+':<span class="span_currentprice6 general_current_price">'+y[t].currentprice+"</span></li>",void 0!==y[t].uahprice&&(p+="<li>"+Translator.translate("Price in UAH")+':<span class="span_currentprice6 general_current_price">
1'+y[t].uahprice+"</span></li>")}void 0!==y[t].cuttingcosts&&null!==y[t].cuttingcosts&&(p+="<li>"+Translator.translate("Possible cutting costs")+':<span class="span_cuttingcosts">'+y[t].cuttingcosts+"</span></li>"),void 0!==y[t].prices&&null!==y[t].prices&&(p+='<li class="hd">'+Translator.translate("Price Scale")+":<span></span></li>",jQuery.each(y[t].prices,function(e,a){p+="<li>"+Translator.translate("from")+' :<span class="span_scale_price">'+a.qty+y[t].qtyunit+"="+a.price+"</span></li>"})),void 0!==y[t].surcharge&&(p+='<li class="bt">â '+Translator.translate("Surcharges")+'<span class="span_surcharge">'+y[t].surcharge+"</span></li><li>"+Translator.translate("Price incl. surcharge")+': <span class="span_price_plus_surcharges">'+y[t].priceplussurcharge+"</span></li>"),(null!=y[t].pvrate&&"0"!==y[t].pvrate||null!=y[t].batteryrate&&"0"!==y[t].batteryrate)&&(p+="<li>"+Translator.translate("Additional transport costs are due for this product")+"</li>");var g="<ul>"+p+"</ul>",m=(jQuery("#product_"+t+" .product-price .popupBox").append(g),jQuery("#product_"+t+" .modified_price_label_new .general_current_price_container .popupBox").append(g),jQuery("#product_"+t+" .product-price").removeClass("hide"),"sales"==a&&(jQuery("#product_"+t+" .sale_mark").append(Translator.translate(y[t].promotype)),jQuery("#product_"+t+" .sale_mark").removeClass("hide")),void 0!==y[t].amounts&&jQuery.each(y[t].amounts,function(e,a){jQuery("#product-item-total-currency-"+e).html(y[t].currency),jQuery("#product-item-total-mobile-currency-"+e).html(y[t].currency),jQuery("#product-item-total-price-"+e).html(a),jQuery("#product-item-total-mobile-price-"+e).html(y[t].amount)}),void 0!==y[t].offerref&&(jQuery('.productItemWrapper[data-sku="'+t+'"]').css("background","#e8f0fa"),r='<a href="'+y[t].offerrefurl+'">'+y[t].offerref+"</a>",u='<div class="cartOfferRef">'+Translator.translate("from offer")+" "+r+"</div>",jQuery("#product_"+t+" .product-col").append(u)),"-");"undefined"!=typeof PAGETYPE&&("CART"==PAGETYPE?m="cart":"DETAIL_VIEW"==PAGETYPE?m="product detail view":"SEARCH_RESULTS"==PAGETYPE&&(m="search result page")),""!=partListData&&"error"!=partListData?(htmlData="\x3c!-- position : commonJs.js #124298328 --\x3e",htmlData+="<li class='add-to-new-partslist' onclick='partslistFE.addItemToNewList(\"New parts list\", new ListRequestManager.Product(jQuery(\"#productId-"+t+'").val(), jQuery("#qty-'+t+'").val(), "'+t+'"), "'+m+'");\' data-brand="" data-click="" data-event="" data-id="'+t+"\" ><span class='glyphicon glyphicon-plus-sign plusIcon'></span> "+Translator.translate("Add to new parts list")+"</li>",jQuery.each(partListData,function(e,a){e=e.replace("\0",""),htmlData+="<li class='partslistRow' onclick='partslistFE.addItemToList("+e+', new ListRequestManager.Product(jQuery("#productId-'+t+'").val(), jQuery("#qty-'+t+'").val(), "'+t+'"), false, "'+m+'");\' data-brand="" data-click="" data-event="" data-id="'+t+"\" title='"+a+"'>"+Translator.translate("Add to")+" "+a+"</li>"}),jQuery("#product_"+t+" .dropdown-list").html(htmlData),jQuery("#product_"+t+" .dropdown-list").removeClass("withoutLgn"),jQuery("#parlistdropdownbtn-"+t).removeClass("lgtGray")):(""==customerId&&""==customerName||(htmlData="\x3c!-- position : commonJs.js #12263052 --\x3e",htmlData+="<li class='add-to-new-partslist' onclick='partslistFE.addItemToNewList(\"New parts list\", new ListRequestManager.Product(jQuery(\"#productId-"+t+'").val(), jQuery("#qty-'+t+'").val(), "'+t+'"), "'+m+'");\' data-brand="" data-click="" data-event="" data-id="'+t+"\"><span class='glyphicon glyphicon-plus-sign plusIcon darkGray'></span> "+Translator.translate("Add to new parts list")+"</li>",jQuery("#product_"+t+" .dropdown-list").html(htmlData),jQuery("#product_"+t+" .dropdown-list").removeClass("withoutLgn"),jQuery("#parlistdropdownbtn-"+t).removeClass("lgtGray")),jQuery("#product_"+t+" .dropdown-list").css("height","auto"),jQuery("#product_"+t+" .dropdown-list").css("width","auto")),console.log("Current Role #4 = "+customerAclRole),"listView"==globalSEARCH_RESULT_VIEW_MODE&&(jQuery(".general_current_addtocart_container").removeClass("addToCartListViewOffset"),jQuery(".general_current_addtocart_container").addClass("addToCartListViewOffset")),"staff"!=customerAclRole&&"projectant"!=customerAclRole||(jQuery("#product_"+t+" .product-quantity").addClass("hide"),jQuery("#product_"+t+" .add-cart-btn").addClass("hide"),jQuery("#product_"+t+" .form-inline").addClass("hide"),jQuery("#product_"+t+" .bttnAddCrt").addClass("hide"),jQuery("#product_"+t+" .gtm-partlist-addtocart").addClass("hide")),jQuery(".dead-product .product-price").html(y[t].currency+' <span class="span_currentprice2 general_current_price">'+y[t].currentprice+"</span>/"+y[t].formattedPriceunit)}else{e='<span class="span_on_request">'+Translator.translate("Price")+" "+Translator.translate("on request")+"</span>";jQuery("#product_"+t+" .product-price").length?(jQuery("#product_"+t+" .product-price").empty(),jQuery("#product_"+t+" .product-price").prepend(e),jQuery("#product_"+t+" .product-price").removeClass("hide")):(c=(c='<div class="general_current_addtocart_container" ')+'style="margin-top: 11px" id="general_current_addtocart_container'+t+'" >',o='<input type="text" class="qtyaddtocartfield qty-'+t+'" ',o+='id="qtyaddtocartfield'+t+'" name="qty-'+t+'" data-sku="'+t+'">',n='<img class="addToCartImage loading cartButtonImage"',n+=' src="'+globalADD_TO_CART_BUTTON_IMAGE_S
1RC+'" >',d='data-salesunitqty="'+y[t].priceunit+'"',PAGETYPE="SEARCH_RESULTS",i='<input type="hidden" id="qty-'+t+'" value="'+y[t].priceunit+'">',s=e+(c+=o+('<button id="addtocart-'+t+'" class="bttn-sm qtyaddtocartbutton vtc"'+(' data-sku="'+t+'" '+d+" >")+(n+"</button>"))+"</div>")+(l=i+('<input type="hidden" id="productId-'+t+'" value="'+t+'">')),jQuery("#product_"+t+" .modified_price_label").html(s),jQuery("#product_"+t+" .modified_price_label_new").html(s)),jQuery("#product_"+t+" .sml").addClass("hide"),jQuery("#product_"+t+" .finalPrice").addClass("hide")}}),jQuery(".qtyaddtocartbutton").on("click",function(){setOverlayLoader("search-page-container",globalAJAX_LOADER_GIF_PATH),a(this)}),jQuery(".qtyaddtocartfield").keyup(function(e){13==e.keyCode&&(e=jQuery(this).data("sku"),e=jQuery("#addtocart-"+e),setOverlayLoader("search-page-container",globalAJAX_LOADER_GIF_PATH),a(e))})},this.addToWishlist=function(e,a,s,o,n){var t=BASE_URL+"onlinetools/commonTools/getTranslations",r=new Object;r.key001="Please login first!",r.key002="Add to new parts list",r.key003="Add to",jQuery.ajax(t,{dataType:"json",type:"POST",data:r,success:function(e){""!=e&&null!=e&&(jQuery.each(e,function(e,a){Translator.add(e,a)}),e=window.location.href,n=-1<["https://www.schrack.at/","https://www.schrack.ba/","https://www.schrack.be/","https://www.schrack.bg/","https://www.schrack.com/","https://www.schrack.cz/","https://www.schrack-technik.de/","https://www.schrack.hr/","https://www.schrack.hu/","https://www.schrack-technik.nl/","https://www.schrack.pl/","https://www.schrack.ro/","https://www.schrack.rs/","https://www.schrack-technik.ru/","https://www.schrack.sa/","https://www.schrack.si/","https://www.schrack.sk/","https://www.schrack.ua/","https://test-at.schrack.com/","https://test-ba.schrack.com/","https://test-be.schrack.com/","https://test-bg.schrack.com/","https://test-com.schrack.com/","https://test-cz.schrack.com/","https://test-de.schrack.com/","https://test-hr.schrack.com/","https://test-hu.schrack.com/","https://test-nl.schrack.com/","https://test-pl.schrack.com/","https://test-ro.schrack.com/","https://test-rs.schrack.com/","https://test-ru.schrack.com/","https://test-sa.schrack.com/","https://test-si.schrack.com/","https://test-sk.schrack.com/","https://test-ua.schrack.com/"].indexOf(e)?"listname_form_typo3":"listname_form_typo3_content",jQuery.each(a,function(t,r){var e=jQuery("."+o+" .product_"+t+" .dropdown-list"),a=BASE_URL+"customer/account/login";""===customerId?(htmlData="<li class='add-to-new-partslist'><a href='"+a+"'> ",htmlData+=Translator.translate("Please login first!")+" </a></li> ",e.html(htmlData),e.addClass("withoutLgn"),jQuery(".wishListDropdown").addClass("lgtGray")):(void 0!==s&&""!=s&&"error"!=s?(htmlData="\x3c!-- position : commonJs.js #124298298 --\x3e",htmlData+="<li class='add-to-new-partslist' onclick='setSliderNameAsPageType(event, this); partslistFE.addItemToNewList(\"New parts list\", new ListRequestManager.Product("+r.id+', jQuery(".'+o+" .qty-"+t+'").val(), "'+t+'"), "'+n+'");\' data-brand="" data-click="" data-event="" data-id="'+t+"\" ><span class='glyphicon glyphicon-plus-sign plusIcon'></span>"+Translator.translate("Add to new parts list")+"</li>",jQuery.each(s,function(e,a){e=e.replace("\0",""),htmlData+="<li onclick='setSliderNameAsPageType(event, this); partslistFE.addItemToList("+e+", new ListRequestManager.Product("+r.id+', jQuery(".'+o+" .qty-"+t+'").val(), "'+t+'"), false, "'+n+'");\' data-brand="" data-click="" data-event="" data-id="'+t+"\" title='"+a+"'>"+Translator.translate("Add to")+" "+a+"</li>"})):(htmlData="\x3c!-- position : commonJs.js #12263052 --\x3e",htmlData+="<li class='add-to-new-partslist' onclick='setSliderNameAsPageType(event, this); partslistFE.addItemToNewList(\"New parts list\", new ListRequestManager.Product("+r.id+', jQuery(".'+o+" .qty-"+t+'").val(), "'+t+'"), "'+n+'");\' data-brand="" data-click="" data-event="" data-id="'+t+"\"><span class='glyphicon glyphicon-plus-sign plusIcon darkGray'></span> "+Translator.translate("Add to new parts list")+"</li>"),e.html(htmlData),jQuery("#parlistdropdownbtn-"+t).removeClass("lgtGray"))}))},error:function(e){}})}
1,this.getSolrSearchList=function(a,t,r){Object.keys(t).forEach(function(e){this.getSliderElements(t[e],jQuery("#solr-slider-list-"+e),jQuery("#solr-slider-"+e)),this.addToWishlist(a,t[e],r,"solrProdCont");var e=jQuery("#solr-slider-"+e);e.length&&((e=e.parent()).hasClass("placeholder-product-slider")&&e.removeClass("placeholder-product-slider"),e.hasClass("default-productslider"))&&e.removeClass("default-productslider")}.bind(this))},this.getProductAvailabilities=function(y){jQuery.each(y,function(t,e){availabilityInfo[t]=e;var a='<span class="nds-delivery">'+Translator.translate("deliverable")+"</span>",r="",s="",o=y[t].isStsAvailable,n=y[t].isDiscontinuation,i=y[t].isForcedOrder,l=y[t].deliveryQtySum,c=(y[t].pickupQtySum,""),u=y[t].nearestDeliveryQty,d=0,g="",c=Translator.translate("Currently in production"),p=((0==o&&1==n||i)&&(c=Translator.translate("on request")),0<l&&("object"==typeof u.provider&&(c='<span class="nds-time sucubus">'+u.provider.formattedDeliveryTime+'</span> <span class="nds-qty">'+u.provider.formattedQty+"</span> ",d=u.provider.qty),"object"==typeof u.central&&(c='<span class="nds-time sucubus">'+u.central.formattedDeliveryTime+'</span> <span class="nds-qty">'+u.central.formattedQty+"</span> ",d=u.central.qty),"object"==typeof u.local)&&(c='<span class="nds-time sucubus">'+u.local.formattedDeliveryTime+'</span> <span class="nds-qty">'+u.local.formattedQty+"</span> ",d=u.local.qty),c+=g=0<l&&(g='<span class="nds-ext-qty">('+y[t].formattedDeliveryQtySum+")</span> "+a,d==l)?" "+a:g,y[t].formattedPickupQtySum),m=(p=(p=y[t].formattedPickupQtySum+' <span class="pickup-sum-stores-txt">'+Translator.translate("in store")+"</span>").replace("â","Σ"),jQuery.each(e,function(e,a){a&&a.pickup&&void 0!==a.pickup&&(1!=a.pickup.isDefaultPickup||""==customerId&&""==customerName||(p=(p=a.formattedQty+' <span class="pickup-sum-stores-txt">'+Translator.translate("In")+" "+a.pickup.stockName+"</span>").replace("â","Σ")))}),!1),o=(jQuery.each(e.leavings,function(e,a){m?m+=",":(jQuery("#cableGroup").removeClass("hide"),jQuery("#leavings").removeClass("hide"),m=Translator.translate("Ready packaging")+": "),m+=' <span><a class="addCableLeavingToCart" data-sku="'+t+'" data-qty="'+a.qty+'" onclick="simpleAddToCartDispacher(\''+t+"',"+a.qty+',true); return false;">'+a.formattedQty+"</a></span>"}),m&&jQuery("#leavings").html(m),jQuery("#salesunit-val-id").html(y[t].formattedSalesUnitQty),jQuery("#minqty-val-id").html(y[t].formattedMinOrderQty),jQuery("#minqty-mobile-val-id").html(y[t].formattedMinOrderQty),""==s&&(s+=1==n?'<li class="info_button_pickup_info">'+Translator.translate("On Request")+"</li>":'<li class="info_button_pickup_info">'+Translator.translate("Currently in production")+"</li>"),"logstics-icon-text");i&&l<=0&&(o+=" on_request");0==e.hideQuantities?(u=getProductAvailabilitiesList(e),r='<div class="logistics-icon-text-row"><span class="logistic-icon"></span><span class="'+o+'">'+c+' </span></div><div class="'+(0==l?"cut_off_time_text_inactive":"cut_off_time_text")+' hide-on-print"></div><div class="cartInfoHide pickup-icon-text-row"><span class="store-icon-new"></span><span class="formatted-pickup-qty-sum">'+p+'</span></div><div class="product_stock_container"><span class="glyphicon glyphicon-info-sign info-icon" id="product-stock-icon-'+t+'" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true"></span><div class="popupBox qtyBoxCont dropdown-menu" aria-labelledby="product-stock-icon-'+t+'">'+u+"</div></div",jQuery("#product_"+t+" .stock-section .product-store").html(r)):"object"==typeof y[t][999]&&"object"==typeof y[t][999].delivery&&"string"==typeof y[t][999].delivery.thirdPartyLocation&&""<y[t][999].delivery.thirdPartyLocation?(jQuery("#product_"+t+" .stock-section .product-stock").html(Translator.translate("Temporarily unavailable")),jQuery("#product_"+t+" .stock-section .product-store row_pickup_info").html(Translator.translate("Temporarily unavailable"))):(jQuery("#product_"+t+" .stock-section .product-stock").html(Translator.translate("Deliverable")+" : "+Translator.translate("Currently in production")),jQuery("#product_"+t+" .stock-section .product-store row_pickup_info").html(Translator.translate("Pickupable")+" : "+Translator.translate("Currently in production"))),jQuery("#product_"+t+" .stock-section").removeClass("hide")}),"function"==typeof processCutOffTime&&processCutOffTime()},this.getCartGrandTotal=function(e){jQuery("#product-grand-total").html(e.formatted_amounts.grand_total),jQuery("#cartSubTotalHdn").val(e.raw_amounts.grand_total),""!=e.online_bonus_text?(jQuery("#onlineBonusText").html(e.online_bonus_text),jQuery(".onlineBonus").show(),""!=e.online_bonus_text?jQuery(".onlineBonusAnc
1hor").show():jQuery(".onlineBonusAnchor").hide()):(jQuery(".onlineBonus").hide(),jQuery(".onlineBonusAnchor").hide())},this.getAllPartslists=function(e){e.error?partListData="error":(partListData=e,localStorage.setItem("partListData",JSON.stringify(e)))},this.getQuickAddPopup=function(e){jQuery("body").append(e)},this.getVisitorInfo=function(e){jQuery("body").append(e)},this.getMaintenancePageUrl=function(e){jQuery.ajax(e,{type:"GET",success:function(e){maintenanceAlert(e)}})},this.setTransferOfCartAsCSV=function(e){var a=[e.message];jQuery("ul.messages").empty(),jQuery("ul.errors").empty(),-1==e.result.indexOf("SUCCESS")?(appendMessageUl(a,"messages","error-msg","glyphicon glyphicon-exclamation-sign"),console.log("appendMessageUl #51")):(appendMessageUl(a,"messages","success-msg","glyphicon glyphicon-ok"),console.log("appendMessageUl #52"))},this.ordersAction=function(e){parsedData=e;var e=0,a=jQuery("#dashOrderPageNumber").val(),t=(jQuery("ul.messages").empty(),jQuery("ul.errors").empty(),parsedData.filterStatusCounts.all);jQuery("#dashOrderTotalHdnCnt").val(t),t<=(e=parseInt(dashboardDeskTabMobPageSize)*parseInt(a))&&(e=t),jQuery("#loadedRecordCountDesk").val(e),prepareDashboardFilter(parsedData.filterSet),parseInt(a)<=1?jQuery("#loadMoreOrderBodyTabMob").html(parsedData.mobileHtmlBlock):jQuery("#loadMoreOrderBodyTabMob").append(parsedData.mobileHtmlBlock),parseInt(a)<=1?jQuery("#loadMoreOrderBodyDesktop").html(parsedData.desktopHtmlBlock):jQuery("#loadMoreOrderBodyDesktop").append(parsedData.desktopHtmlBlock),updatePagingCount(e,t),unsetOverlayLoader(),jQuery("#ajax_in_progress").val(0)},this.shipmentAction=function(e){this.ordersAction(e)},this.invoiceAction=function(e){this.ordersAction(e)},this.creditmemoAction=function(e){this.ordersAction(e)},this.detailssearchAction=function(e){this.ordersAction(e)},this.offersAction=function(e){this.ordersAction(e)},this.getIsPromotionSKU=function(e){e&&(e=BASE_URL,e+="skin/frontend/schrack/default/schrackdesign/Public/
1Images/rwd/promotion/promotion_sticker_rot.svg",jQuery(".product-sq").append('<img src="'+e+'" class="promotion_sign" />'))},this.validateEmailAddress=function(e){}}function maintenanceAlert(e){e=e.trim();var a=document.createElement("div");a.innerHTML=e,(a.textContent||a.innerText||"").trim()?(a=jQuery("#siteMessageWarning"),jQuery('<div id="siteMessageWarningContainer">').insertBefore(a),a.detach().appendTo("#siteMessageWarningContainer"),a.html('<div class="messageText">'+e+"</div>"),a.show(),e=a.outerHeight(),jQuery("#siteMessageWarningContainer").height(e),jQuery('<button id="warning-message-close-typo" type="button" class="close" data-dismiss="alert" aria-label="Close" ><span class="closeButton">x</span></button>').insertAfter(a),jQuery("#warning-message-close-typo").on("click",function(){jQuery("#siteMessageWarningContainer").hide(),localStorage.isAlreadyDisabledByCustomer=1,localStorage.isAlreadyDisabledByCustomerTimestamp=Date.now()}),void 0!==localStorage.isAlreadyDisabledByCustomer&&1==localStorage.isAlreadyDisabledByCustomer?(console.log("Header Warning existent, but already read and disabled by User"),Date.now()>+localStorage.isAlreadyDisabledByCustomerTimestamp+864e5?(localStorage.removeItem("isAlreadyDisabledByCustomer"),localStorage.removeItem("isAlreadyDisabledByCustomerTimestamp")):jQuery("#siteMessageWarningContainer").hide()):console.log("UNREAD Header Warning existent!")):(console.log("NO header to show"),localStorage.removeItem("isAlreadyDisabledByCustomer"),localStorage.removeItem("isAlreadyDisabledByCustomerTimestamp"))}function restoreOrderSearchQueryOnBrowserBack(){restoreOrderSearchQueryOnBrowserBackForElement("#textsearch")}function restoreOrderSearchQueryOnBrowserBackForElement(e){var a,t=localStorage.orderTextSearchTerm;"string"==typeof t&&""<t&&window.performance&&(0<(a=window.performance.getEntriesByType("navigation")).length&&"back_forward"===a[0].type||window.performance.navigation&&window.performance.navigation.type==window.performance.navigation.TYPE_BACK_FORWARD)&&jQuery(e).val(t)}function ajaxCall(){var e=jQuery("#textsearch").attr("data-func"),a=jQuery("#textsearch").val(),t=jQuery("#dashOrderActiveSortColumnName").val(),r=jQuery("#dashOrderActiveSortColumnStatus").val(),s=jQuery("#dashOrderPageNumber").val(),o=jQuery("#from-date").val(),n=jQuery("#to-date").val(),i=(localStorage.orderTextSearchTerm=a,resetTabletRecords(),{}),a=(a&&(i.text=a),jQuery(".filterdata:checked").each(function(){i[jQuery(this).val()]=1}),0<jQuery.trim(o).length&&0<jQuery.trim(n).length&&(i.date_from=o,i.date_to=n),parseInt(j
1Query("#loadedRecordCountDesk").val())),o=parseInt(jQuery("#dashOrderTotalHdnCnt").val()),n=t+r+JSON.stringify(i),l=localStorage.oldQryString;!isNaN(a)&&!isNaN(o)&&o<=a&&l==n||(l!=n&&(s=1,jQuery("#dashOrderPageNumber").val(s)),localStorage.oldQryString=n,dataArray[e]={data:{filter:i,sort:{field:t,ASC:r},pagination:{page_size:dashboardDeskTabMobPageSize,page:s}}},ajaxDispatcherCall())}function isMobile(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}function updatePagingCount(e,a){var t;0==a?(t='<td colspan="5">'+Translator.translate("No data for table available")+"</td>",jQuery(".totalRecordCount").html("0 "+Translator.translate("to")+" 0 "+Translator.translate("from")+" 0 "+Translator.translate("entries")),jQuery("#loadMoreOrderBodyTabMob").html(t),jQuery("#loadMoreOrderBodyDesktop").html(t)):jQuery(".totalRecordCount").html("1 "+Translator.translate("to")+" "+e+" "+Translator.translate("from")+" "+a+" "+Translator.translate("entries"))}function prepareDashboardFilter(e){filterParamName=filterUiName=dashboardDynamicFilterHtml=receiptRecords="";var t,r=["offer_documents","order_documents","creditmemo_documents","delivery_documents","invoice_documents"];jQuery.each(e,function(e,a){if(filterParamName=a.paramName,filterUiName=a.uiName,t="filterdata","All"==a.uiName)return filterParamName="all",receiptRecords+='<li><input class="all-receipt" type="checkbox" data-id="4" id="dashboardFilterCheckbox" name="column-4-'+filterUiName+'" value="'+filterParamName+'"><label for="id-column-4-'+filterUiName+'" name="column-4-'+filterUiName+'"> '+filterUiName+"</label></input></li>",dashboardDynamicFilterHtml+='<li><input class="all-filterdata" type="checkbox" data-id="4" id="dashboardFilterCheckbox" name="column-4-'+filterUiName+'" value="'+filterParamName+'"><label for="id-column-4-'+filterUiName+'" name="column-4-'+filterUiName+'"> '+filterUiName+"</label></input></li>",!0;0<=r.indexOf(filterParamName)?receiptRecords+='<li><input class="'+t+'" type="checkbox" data-id="4" id="dashboardFilterCheckbox" name="column-4-'+filterUiName+'" value="'+filterParamName+'"><label for="id-column-4-'+filterUiName+'" name="column-4-'+filterUiName+'"> '+filterUiName+" ("+a.count+")</label></input></li>":dashboardDynamicFilterHtml+='<li><input class="'+t+'" type="checkbox" data-id="4" id="dashboardFilterCheckbox" name="column-4-'+filterUiName+'" value="'+filterParamName+'"><label for="id-column-4-'+filterUiName+'" name="column-4-'+filterUiName+'"> '+filterUiName+" ("+a.count+")</label></input></li>"}),jQuery("ul#dynamicStatusRow").children("li").length<=parseInt(0)&&(jQuery("#dynamicStatusRow").append(dashboardDynamicFilterHtml),jQuery("#dynamicStatusRow").css("text-transform","capitalize")),jQuery("ul#dynamicReceiptRow").children("li").length<=parseInt(0)&&(jQuery("#dynamicReceiptRow").append(receiptRecords),jQuery("#dynamicReceiptRow").css("text-transform","capitalize"))}function resetTabletRecords(){jQuery("#loadedRecordCountDesk").val(dashboardDeskTabMobPageSize),jQuery("#loadMoreOrderBodyTabMob").val(dashboardDeskTabMobPageSize),""==jQuery("#dashOrderActiveSortColumnName").val()&&jQuery("#dashOrderActiveSortColumnName").val("orderNumber"),""==jQuery("#dashOrderActiveSortColumnStatus").val()&&jQuery("#dashOrderActiveSortColumnStatus").val(0),0==jQuery("#ajax_in_progress").val()&&jQuery("#dashOrderPageNumber").val(1)}function resetFilters(){jQuery("input[name=time-rangle]").prop("checked",!1),jQuery("#from-date").val(""),jQuery("#to-date").val(""),jQuery(".filterdata").prop("checked",!1),jQuery(".all-filterdata").prop("checked",!1),jQuery("#dashOrderPageNumber").val(1)}function isNumberKey(e){e=e.which||event.keyCode;return!(31<e&&(e<48||57<e))}function assignCurrCat(e){var a;searchDefaultText=""==jQuery(e).attr("catid")?(jQuery("#allSrchCat").text(jQuery(e).attr("value")),jQuery("#selSrchHidden").val(""),Translator.translate("Search in:")+" "+Translator.translate("All Catagories")):(jQuery("#selSrchHidden").val(jQuery(e).attr("catid")),jQuery("#allSrchCat").text(jQuery(e).attr("value")),a=searchDefaultText.lastIndexOf(": "),searchDefaultText.substring(0,a)+": "+jQuery(e).attr("value")),searchBox.value=searchDefaultText}function fillCacheMegaMenuResponsive(e){console.log(">>> Filling responsive localstorage from AJAX data (commonJs.js)"),e?localStorage.megamenuContentResponsive=e:console.log(">>> data desktop --\x3e empty content (commonJs.js)")}function documentDownloadAjaxCall(r,s){return jQuery.ajax(r,{method:"HEAD",success:function(e,a,t){404===t.status?alert(Translator.translate("Can not retrieve document.")):(dataLayer&&dataLayer.push({event:"userDownloads",eventCategory:"File Download",eventAction:"Document Download",eventLabel:s}),window.open(r,"_blank"))},error:function(e){404===e.status&&alert(Translator.translate("Can not retrieve document."))}}),!1}function documentAddtoCartAjaxCall(e){setOverlayLoader(),jQuery.ajax({url:e,method:"POST"}).done(function(e){e=JSON.parse(e);jQuery("ul.messages").empty(),jQuery("ul.errors").empty(),void 0!==e.messages?(appendMessageUl(e.messages,"messages","success-msg"),console.log("appendMessageUl #53"),e.numberOfDifferentItemsInCart&&jQuery(".MyCart").append('<div id="cartNoBxItemCount" class="cartNoBx">'+e.numberOfDifferentItemsInCart+"</div>")):(appendMessageUl(e.errors,"messages","error-msg"),console.log("appendMessageUl #54")),unsetOverlayLoader(),jQuery("html, body").animate({scrollTop:0},"slow"),console.log("ScrollTop #4")})}function dashGetProductslistAsSkulistByDocumentAjaxCall(i,e,a,t,r){var s="",l="",c=r?" "+r:null;"partslist"==t&&(s=BASE_URL+"wishlist/partslist/getProductslistAsSkulistByDocument/type/"+i+"/documentId/"+e,l="partlistModification"),"cart"==t&&(s=BASE_URL+"checkout/cart/getProductslistAsSkulistByDocument/type/"+i+"/documentId/"+e,l="adddocumenttocart"),jQuery.ajax({url:s,data:{form_key:a},method:"POST"}).done(function(e){var a=JSON.parse(e),t=a.length,r=[];if("partlistModification"==l){for(var s=0;s<t;s++)r.push({sku:a[s]}),dataLayer&&(dataLayer.push({event:"partlistModification",eventAction:"Add",eventLabel:i+c,partlistModificationSource:"Document",productSku:a[s]}),console.log({"Event (adddocumenttopartlist) #1 tracked IDs ":a[s]}));addToWishlistTracking(r)}else for(var o=0;o<t;o++){var n=new Object;n.trackingEnabled=a[o].trackingEnabled,n.pagetype=a[o].pagetype,n.sku=a[o].sku,n.name=a[o].name,n.price=a[o].price.replace(",","."),n.quantity=a[o].quantity,n.category=a[o].category,n.currencyCode=
1a[o].currencyCode,addToCartTracking(n,"Document"),console.log({"Event (adddocumenttocart) #2 tracked IDs ":a[o].sku}),console.log(a[o])}})}function dashAddToPartlistAjaxCall(e,a,t,r,s){t=jQuery(t).parent().attr("doc-id"),dashGetProductslistAsSkulistByDocumentAjaxCall(a,t,r,"partslist",s),r=BASE_URL+"wishlist/partslist/batchAddDocuments/id/"+e+"/documents/"+t+":"+a;unsetOverlayLoader(),jQuery.ajax({url:r,method:"POST"}).done(function(e){e=JSON.parse(e);jQuery("ul.messages").empty(),jQuery("ul.errors").empty(),void 0!==e.messages?(appendMessageUl(e.messages,"messages_hidden","success-msg"),console.log("appendMessageUl #46")):(appendMessageUl(e.errors,"messages_hidden","error-msg"),console.log("appendMessageUl #47")),unsetOverlayLoader()})}function ajaxDispatcherCall(){ajaxDispatcherCallWithCallback(!1)}function ajaxDispatcherCallWithCallback(r){__suppressAjaxDispatcherCalls||(setOverlayLoader(),jQuery.ajax(ajaxUrl,{dataType:"json",type:"POST",data:dataArray,success:function(e){var a=e,t=(unsetOverlayLoader(),new AjaxDispatcher);jQuery.each(a,function(e,a){t[e](a.result)}),"function"==typeof r&&r(e)},error:function(e){}}))}function getSubCategory(e,a){needToUpdateBreadcrumbs=!0,jQuery(window).width()<767&&(defaultFilterOpen=!1);var t=-1<e.indexOf("?")?"&":"?";urlForBookMark=e+t+"catId="+a,""!=urlappend&&(urlForBookMark=updateQueryStringParameter(urlForBookMark,"fq",urlappend)),history.pushState("data","",urlForBookMark),jQuery("#category_id").val(a),checkFilterFromUrl(),console.log("getSubCategory getRCB !"),dataArray.getRenderedCategoryBlocks={data:{query:"",start:0,limit:50,accessory:0,category:a,facets:filterArray,general_filters:generalFilterArray}},ajaxDispatcherCall()}function getAccessory(){needToUpdateBreadcrumbs=!1,console.log("getAccessory getRCB !"),dataArray.getRenderedCategoryBlocks={data:{query:jQuery("#search-attr-full").val(),start:0,limit:50,accessory:1,category:jQuery("#category_id").val(),facets:filterArray,general_filters:generalFilterArray}},ajaxDispatcherCall()}function performFilterAjax(e,a){needToUpdateBreadcrumbs=!(filter=!0),"showall"==a&&(facet=jQuery(e).closest(".facet").attr("id"),jQuery("#"+facet+" input:checkbox:checked").each(function(e){jQuery(this).removeAttr("checked")})),urlappend=createQueryFromFilter(),urlForBookMark=updateQueryStringParameter(window.location.href,"fq",urlappend),history.pushState("data","",urlForBookMark),console.log("performFilterAjax getRCB !"),dataArray.getRenderedCategoryBlocks={data:{query:jQuery("#search-attr-full").val(),start:0,limit:50,accessory:0,category:jQuery("#category_id").val(),facets:filterArray,general_filters:generalFilterArray}},ajaxDispatcherCall()}function clearFilter(){needToUpdateBreadcrumbs=!1,jQuery("#solrsearch-container input:checkbox:checked").each(function(e){jQuery(this).removeAttr("checked")}),filterArray={},generalFilterArray={},urlappend="",history.pushState("data","",window.location.pathname),console.log("clearFilter getRCB !"),dataArray.getRenderedCategoryBlocks={data:{query:"",start:0,limit:50,accessory:0,category:jQuery("#category_id").val(),facets:filterArray,general_filters:generalFilterArray}},ajaxDispatcherCall()}function searchFormWithinArticle(){gtag({event:"category_search_bar",search_term:jQuery("#search-attr-full").val()}),filter=!(needToUpdateBreadcrumbs=!1),"Search within article selection"===jQuery("#search-attr-full").val()&&jQuery("#search-attr-full").val(""),""==jQuery("#search-attr-full").val()&&jQuery("#search-attr-full").focus(),checkFilterFromUrl(),urlForBookMark=updateQueryStringParameter(window.location.href,"q",jQuery("#search-attr-full").val()),history.pushState("data","",urlForBookMark),console.log("searchFormWithinArticle getRCB !"),dataArray.getRenderedCategoryBlocks={data:{query:jQuery("#search-attr-full").val(),start:0,limit:50,accessory:0,category:jQuery("#category_id").val(),facets:filterArray,general_filters:generalFilterArray}},ajaxDispatcherCall()}function createQueryFromFilter(){return filterArray={},generalFilterArray={},filters={},topfilters={},jQuery("#solrsearch-container .facet").each(function(){tempArray={},tempGeneralArray={},templist=[],tempGenerallist=[],"general_filters"==(facet=jQuery(this).attr("id"))?jQuery("#"+facet+" input
1:checkbox:checked").each(function(e){generalFilterArray[jQuery(this).attr("filtertype")]=1,topfilters[jQuery(this).attr("filtertype")]=1}):(jQuery("#"+facet+" input:checkbox:checked").each(function(e){tempArray[e]=jQuery(this).val();e=jQuery(this).val();templist.push(e)}),jQuery.isEmptyObject(tempArray)||(filterArray[facet]=tempArray,filters[facet]=templist))}),jQuery("#solrsearch-container select").each(function(){tempArray={},facet=jQuery(this).attr("id"),jQuery(this).val()&&""!=jQuery(this).val()&&(tempArray[0]=jQuery(this).val(),filterArray[facet]=tempArray,filters[facet]=tempArray)}),fq.facets=filters,fq.general_filters=topfilters,encodeURIComponent(JSON.stringify(fq))}function checkFilterFromUrl(e){e=e||window.location.href,generalFilterArray=0<=e.indexOf("fq")&&null!=getParameterByName("fq")&&""!=getParameterByName("fq")?(e=decodeURIComponent((new RegExp("[?|&]fq=([^&;]+?)(&|#|;|$)").exec(location.search)||[null,""])[1].replace(/\+/g,"%20"))||null,e=JSON.parse(e),filterArray=e.facets,e.general_filters):(filterArray={},{})}function getParameterByName(e,a){a=a||window.location.href,e=e.replace(/[\[\]]/g,"\\$&");e=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)").exec(a);return e?e[2]?sanitizeParam(decodeURIComponent(e[2].replace(/\+/g," "))):"":null}function sanitizeParam(e){return e=(e=(e=(e=(e=(e=e.replace(/'/gi,"")).replace(/\\/g,"")).replace("alert(","")).replace(/script/gi,"")).replace(/</gi,"")).replace(/>/gi,"")}function updateQueryStringParameter(e,a,t){var r=new RegExp("([?&])"+a+"=.*?(&|$)","i"),s=-1!==e.indexOf("?")?"&":"?";return e.match(r)?e.replace(r,"$1"+a+"="+t+"$2"):e+s+a+"="+t}function generatePagingLinks(e,a){var t=Math.ceil(e/a);jQuery("#paging").children("a").remove();for(var r=0;r<t;r++)jQuery("<a>").attr("href","#").text(r+1).appendTo("#paging")}function renderAutoSuggest(e,t,r){var s,a="",o=(a=(a+='<div class="menu-triangle"></div>')+'<div class="row">'+'<div class="col-md-12 col-lg-4 rightSec suggest-categories">',""),n=(0<e.categories.length&&(o=o+("<h2>"+Translator.translate("Catagory"))+'</h2><ul id="autosuggestSecond">',jQuery.each(e.categories,function(e,a){if(o+='<li tabindex="'+e+'"><div class="row"><div class="imgBx"><img src="'+a.thumbnail+'" alt="" width="40" height="40"></div><div class="suggest-text"><a href="'+t+"?q="+r+"&cat="+a.id+'">'+a.title+"</a></div></div></li>",4==e)return!1}),a+=o+="</ul>"),a=a+"</div>"+'<div class="col-md-12 col-lg-4 rightSec suggest-products">',""),i=(0<e.products.length&&(s="",n=n+("<h2>"+Translator.translate("Product Suggestions"))+'</h2><ul id="autosuggestThird">',jQuery.each(e.products,function(e,a){n=(n+='<li tabindex="'+e+'">')+'<div class="row autosuggest_product" data-sku="'+a.skuPlain+'"><div class="imgBx">',"https://image.schrackcdn.com/"==(s=(s=a.thumbnail).match(/http/gi)?s:"https:"+s)&&(s=BASE_URL+"media/catalog/product/placeholder/default/Schrack_S_CMYK80x80.jpg"),n=(n=(n=n+'<img src="'+s+'" alt="" width="40" height="40"></div><div class="suggest-text">')+'<a class="autosuggest_product_click_tracking" data-pos="'+(e+1)+'" data-sku="'+a.skuPlain+'" href="'+a.url+"?q="+r+'">'+a.description+"</a><br>")+'<span class="gray">Art. Nr. '+a.sku,a.mainPackingUnit&&(n+=" "+a.mainPackingUnit),n+="</span></div></div></li>"}),a+=n+="</ul>"),a=a+"</div>"+'<div class="col-md-12 col-lg-4 leftSec">',"");0<e.terms.length&&(i=i+("<h2>"+Translator.translate("Search Suggestions"))+'</h2><ul id="autosuggestFirst">',jQuery.each(e.terms,function(e,a){if(i+='<li tabindex="'+e+'"><a href="'+t+"?q="+a+'">'+a+"</a></li>",4==e)return!1}),a+=i+="</ul>"),a+="</div></div>",0<e.terms.products||0<e.categories.products||0<e.products.length?(jQuery("#search_autocomplete").html(a),jQuery("#search_autocomplete").show(),jQuery("#search_autocomplete").css("z-index","99999"),jQuery(".grayout").show(),jQuery(".grayout").css("height",jQuery(document).height()),jQuery(".searchContiner .input-group").css("z-index","99999")):(jQuery("#search_autocomplete").html(""),jQuery("#search_autocomplete").hide(),jQuery(".grayout").hide(),jQuery("body").css("overflow","auto"),jQuery(".searchContiner .input-group").css("z-index","auto")),1===e.products.length||0<e.products.length&&e.preferFirst?localStorage.searchResultIsSingleProduct=e.products[0].url:localStorage.searchResultIsSingleProduct="",jQuery(".autosuggest_product_click_tracking").on("click",function(){localStorage.setItem("trackingData_pagetype","SEARCHBAR");var e=jQuery(this).attr("data-sku"),a=jQuery(this).attr("data-pos"),t=new Object;t.trackingEnabled=globalTRACKING_ENABLED,t.pageType="all pages",t.affectedSku=e,t.currencyCode=globalCURRENCY_CODE,t.trackingSource="solr auto suggest",t.typoUrl=globalTYPO_URL,t.shopCategoryAjaxUrl=globalSHOP_CATEGORY_AJAX_URL,t.formKey=globalFORM_KEY,t.crmUserId=globalCRM_USER_ID,t.customerType=globalCUSTOMER_TYPE,t.accountCrmId=globalACCOUNT_CRM_ID,t.position=a,trackProductClick(t)})}function trackListAddToCart(e,a){console.log(e),console.log(a)}function EncryptMailto(e){for(var a=0,t="",r="mailto:"+e,s=0;s<r.length;s++)8364<=(a=r.charCodeAt(s))&&(a=128),t+=String.fromCharCode(a+1);return"javascript:linkTo_DecryptMailto('"+t+"');"}function DecryptMailto(e){for(var a=0,t="",r=0;r<e.length;r++)8364<=(a=e.charCodeAt(r))&&(a=128),t+=String.fromCharCode(a-1);return t}function linkTo_DecryptMailto(e){location.href=DecryptMailto(e)}function trackAnalyticsCheckoutStep(e,a,t,r,s){dataLayer.push({event:e,eventCategory:"Ecommerce",eventAction:"Checkout Step",eventLabel:a,eventValue:1,ecommerce:{checkout:{actionField:{step:t,option:r},products:s}}})}function addToCartTracking(e,a){var t=e.trackingEnabled,r=e.pagetype,s=e.sku,o=e.name,n=parseFloat(e.price.replace(",",".")),i=e.quantity,l=e.category,e=e.currencyCode,c="Document"!=a&&"Partlist"!=a&&"Search Result List"!=a?"addToCart":"addToCartList";"Detail"==a&&(c="addToCartDetail",a="Standard"),"Search"==a&&(c="addToCartSearch",a="Standard"),"Slider Detail Accessory Product"==a&&(c="addToCartSlider",a="Add To Cart Details Page Product Slider Accessories"),"Slider Detail Related Product"==a&&(c="addToCartSlider",a="Add To Cart Details Page Product Slider Related Products"),"Slider Detail Family Product"==a&&(c="addToCartSlider",a="Add To Cart Details Page Product Slider Family Products"),"Slider Latest Purchased Product"==a&&(c="addToCartSlider",a="Add To Cart MyAccount Overview Slider Latest Purchased Product"),"TYPO Slider Startpage Last Viewed"==a&&(c="addToCartSlider",a="Add To Cart Typo Startpage Slider Last Viewed Products"),"TYPO Slider Startpage Promotions"==a&&(c="addToCartSlider",a="Add To Cart Typo Startpage Slider Promotions Products"),"TYPO Slider Content Page"==a&&(c="addToCartSlider",a="Add To Cart Typo Content Product Slider"),"enabled"===t&&dataLayer&&dataLayer.push({contentType:a,event:c,eventLabel:s,ecommerce:{currencyCode:e,add:{products:[{name:o,id:s,price:n,quantity:i,category:l,dimension8:r,dimension9:l,dimension14:a,dimension15:s}]}}})}function removeFromCartTracking(e){var a=e.trackingEnabled,t=e.cartItems,e=e.currencyCode;"enabled"==a&&dataLayer&&dataLayer.push({event:"removeFromCart",ecommerce:{currencyCode:e,remove:{products:t}}})}function cartQuantityChange(e){var a=e.trackingEnabled,t=e.trackingAction,r=e.pagetype,s=e.sku,o=e.name,n=e.quantity,i=e.category,e=e.currencyCode;"enabled"==a&&dataLayer&&("increase"==t&&dataLayer.push({contentType:"Standard",event:"cartQtyChange",eventAction:"Add To Cart Cart Change",eventLabel:s,ecommerce:{currencyCode:e,add:{products:[{name:o,id:s,quantity:n,category:i,dimension8:r,dimension9:i,dimension14:"Standard",dimension15:s}]}}}),"decrease"==t)&&dataLayer.push({contentType:"Standard",event:"cartQtyChange",eventAction:"Remove From Cart Cart Change",eventLabel:s,ecommerce:{currencyCode:e,remove:{products:[{name:o,id:s,quantity:n,category:i,dimension8:r,dimension9:i,dimension14:"Standard",dimension15:s}]}}})}function removeForbiddenPhoneFieldCharacters(e){for(var a=jQuery("#"+e).val(),t=
1a.length,r="",s=["0","1","2","3","4","5","6","7","8","9"],o=0;o<t;o++)-1!=jQuery.inArray(a[o],s)&&(r+=a[o]);jQuery("#"+e).val(r),0<=(t=(a=(a=(a=(a=(a=(a=r).replace(/ /g,"")).replace(/^0000/,"")).replace(/^000/,"")).replace(/^00/,"")).replace(/^0/,"")).length)&&t<=3||(3<t&&t<=6?a=a.substring(0,2)+a.substring(2,t):6<t&&t<=10?a=a.substring(0,2)+a.substring(2,6)+a.substring(6,t):10<t&&t<=14?a=a.substring(0,2)+a.substring(2,6)+a.substring(6,10)+a.substring(10,t):14<t&&t<=18?a=a.substring(0,2)+a.substring(2,6)+a.substring(6,10)+a.substring(10,14)+a.substring(14,t):18<t&&(a=a.substring(0,2)+a.substring(2,6)+a.substring(6,10)+a.substring(10,14)+a.substring(14,18)+a.substring(18,t))),jQuery("#"+e).val(a)}function forceFetchMegaMenu(){localStorage.removeItem("refreshMegaMenuForceTimeLastChangeDropdownMenu"),localStorage.removeItem("megamenuContentResponsive"),localStorage.removeItem("refreshMegaMenuForceTimeLastChange"),localStorage.removeItem("refreshMegaMenuForceTimeCurrent")}function checkMinimumPhoneExistent(e){var a="defaultForm";"defaultForm"==(a=!jQuery("#registerOnlyForm")||"raw"!=jQuery("#registerOnlyForm").val()&&"validPhone"!=jQuery("#registerOnlyForm").val()?a:"registerOnlyForm")&&(4<jQuery("#schrack_telephone").val().length||4<jQuery("#schrack_mobile_phone").val().length?(jQuery("#requiredWarningPhone").text(""),jQuery("#single_user_account_edit_button").show(),jQuery("#schrack_telephone").css("border","1px solid #ebebeb")):(jQuery("#requiredWarningPhone").text(e),jQuery("#single_user_account_edit_button").hide())),"registerOnlyForm"==a&&"yes"==jQuery("#registerOnlyFormCheckitFlag").val()&&(4<jQuery("#schrack_telephone").val().length||4<jQuery("#schrack_mobile_phone").val().length?(jQuery("#requiredWarningPhone").text(""),jQuery("#schrack_telephone").css("border","1px solid #ebebeb"),jQuery("#registerOnlyForm").val("validPhone")):(jQuery("#registerOnlyForm").val("raw"),jQuery("#requiredWarningPhone").text(e)))}function trackUserDetailDocumentSearch(e){dataLayer&&dataLayer.push({event:"myAccountOverviewDocumentSearch",eventLabel:e})}function isIphone5(){return e=window.navigator.userAgent,a=e.indexOf("OS "),6<=(-1<e.indexOf("iPhone")&&-1<a?window.Number(e.substr(a+3,3).replace("_",".")):0)&&2<=window.devicePixelRatio&&548==screen.availHeight&&(console.log("This Device is an iPhone5"),!0);var e,a}function orderItem(r,s,e,a,t){var o,n=jQuery("."+s+" .qty-"+r);o=""!==n.val()?n.val():1,jQuery(r);void 0!==e&&e&&(localStorage.setItem("trackingData_pagetype","TYPO"),localStorage.setItem("trackingData_name",a),localStorage.setItem("trackingData_category",t),localStorage.setItem("trackingData_featureSrc",e)),setOverlayLoader(),jQuery("ul.messages").empty(),jQuery("ul.errors").empty(),jQuery.ajax(ajaxUrl,{dataType:"json",type:"POST",data:{form_key:formKey,setAddToCart:{data:{sku:r,quantity:o,leaving:!1}}},success:function(e){unsetOverlayLoader();var a,t,e=e.setAddToCart.result;1==e.showPopup?(jQuery("#quantitywarningpopup").html(e.popupHtml),jQuery("#quantitywarningpopupBtn").click()):(e.numberOfDifferentItemsInCart&&jQuery(".MyCart").append('<div id="cartNoBxItemCount" class="cartNoBx">'+e.numberOfDifferentItemsInCart+"</div>"),a=!1,t=n,e.data.newQty&&0<e.data.newQty?(a=!0,t.val(e.data.newQty)):""==t.val()&&t.val("1"),t=e.data.messages,-1==e.result.indexOf("SUCCESS")?(appendMessageUl(t,"messages","error-msg","glyphicon glyphicon-exclamation-sign"),console.log("appendMessageUl #48")):(!1===a&&((e=new Object).sku=r,e.quantity=o,e.trackingEnabled=globalTRACKING_ENABLED,e.currencyCode=globalCURRENCY_CODE,e.price=document.getElementsByClassName("price price_"+r)[0].querySelector(".general_current_price").innerHTML.replace(".","").replace(",","."),e.featureSrc=localStorage.getItem("trackingData_featureSrc"),e.pagetype=localStorage.getItem("trackingData_pagetype"),e.name=localStorage.getItem("trackingData_name"),e.category=localStorage.getItem("trackingData_category"),addToCartTracking(e,e.featureSrc)),t=t.map(function(e){return e.replace("setQty(","setQtyToProduct('"+r+"','"+s+"',")}),appendMessageUl(t,"messages_hidden","success-msg","glyphicon glyphicon-ok"),console.log("appendMessageUl #01")))},error:function(e){}})}function setQtyToProduct(e,a,t,r){jQuery("."+a+" .qty-"+e).val(r),orderItem(e,a)}function trackUserDetailDocumentSearch(e){dataLayer&&dataLayer.push({event:"myAccountOverviewDocumentSearch",eventLabel:e})}function setEcommerceProductClickTracking(e){"enabled"==e.trackingEnabled&&dataLayer&&dataLayer.push({crmId:e.crmId,crmAccountId:e.crmAccountId,customerType:e.customertype,ecPageTypeHit:e.pagetype,event:"productClick",eventLabel:e.trackingSource,ecommerce:{currencyCode:e.currencyCode,click:{products:[{name:e.name,id:e.sku,position:e.position,category:e.category,dimension8:e.pagetype,dimension9:e.category}]}}})}function trackProductClick(e){var a=e.typoUrl,r=e.shopCategoryAjaxUrl,s=e.affectedSku,o=e.trackingEnabled,n=e.pageType,i=e.currencyCode,l=e.trackingSource,c=e.formKey,u=e.crmUserId,d=e.accountCrmId,g=e.customerType,p=e.position;jQuery.ajax(a+"?suggestEID&q="+encodeURIComponent(s)+"&cat=",{dataType:"json",type:"GET",success:function(e){var t=e;!t||t.hasOwnProperty("error")?console.log("SOLR Request not successful"):jQuery.ajax(r,{dataType:"json",type:"POST",data:{form_key:c,sku:s},success:function(e){var e=e.result,a=new Object;a.trackingEnabled=o,a.pagetype=n,a.sku=s,a.name=t.name,a.category=e,a.currencyCode=i,a.trackingSource=l,a.crmId=u,a.crmAccountId=d,a.customertype=g,a.position=p,setEcommerceProductClickTracking(a)},error:function(e){console.log("AJAX did not work for SKU = "+s)}})},error:function(e){console.log("Tracking ERROR in commonJs.js -> "+s),console.log(e)}})}function buildHTMLForPartslistSelection(e){var a=e.partListData,t=e.mageProductEntityId,r=e.productSku,s=e.destinationElementClass,o=e.destinationDropdownId,n=e.trackingFeatureSource,e=jQuery("."+s+" #"+o),o=BASE_URL+"customer/account/login";""==globalCRM_USER_ID||0==globalCRM_USER_ID||"undefined"==typeof globalCRM_USER_ID?(htmlData="\x3c!-- position : commonJs.js #777555333 --\x3e",htmlData="<li class='add-to-new-partslist'><a href='"+o+"'> ",htmlData+=Translator.translate("Please login first!")+" </a></li> ",e.html(htmlData),e.addClass("withoutLgn"),jQuery(".wishListDropdown").addClass("lgtGray")):(void 0!==a&&""!=a&&"error"!=a?(htmlData="\x3c!-- position : commonJs.js #333444555 --\x3e",htmlData+="<li class='add-to-new-partslist' onclick='partslistFE.addItemToNewList(\"New parts list\", new ListRequestManager.Product("+t+', jQuery(".'+s+" .qty-"+r+'").val(), "'+r+'"), "'+n+'");\' data-brand="" data-click="" data-event="" data-id="'+r+"\" ><div class='newPartslistDiv'><span class='glyphicon glyphicon-plus-sign plusIcon' style='float:left;'></span><span class='newPartslistText'>"+Translator.translate("Add to new parts list")+"</span></div></li>",jQuery.each(a,function(e,a){e=e.replace("\0",""),htmlData+="<li class='addToExistingPartslist' onclick='partslistFE.addItemToList("+e+", new ListRequestManager.Product("+t+', jQuery(".'+s+" .qty-"+r+'").val(), "'+r+'"), false, "'+n+'");\' data-brand="" data-click="" data-event="" data-id="'+r+"\" title='"+a+"'>"+Translator.translate("Add to")+" "+a+"</li>"})):(htmlData="\x3c!-- position : commonJs.js #111222333 --\x3e",htmlData+="<li class='add-to-new-partslist' onclick='partslistFE.addItemToNewList(\"New parts list\", new ListRequestManager.Product("+t+', jQuery(".'+s+" .qty-"+r+'").val(), "'+r+'"), "'+n+'");\' data-brand="" data-click="" data-event="" data-id="'+r+"\"><span class='glyphicon glyphicon-plus-sign plusIcon darkGray'></span> "+Translator.translate("Add to new parts list")+"</li>"),e.html(htmlData),jQuery("#parlistdropdownbtn-"+r).removeClass("lgtGray"))}function deactivateButton(e){jQuery("."+e).addClass("button_deactivated")}function loadSlideInTileQuantities(e,a){jQuery.ajax(ajaxUrl,{dataType:"json",type:"POST",data:{form_key:a,getProductAvailabilities:{data:{skus:[e],forceRequest:"1"}}},success:function(e){buildSlideInTileStockHtml(e)},error:function(e){setTimeout(function(){}),console.log("Error: "+e)}})}function buildSlideInTileStockHtml(e){for(var a in e.getProductAvailabilities.result){var t=e.getProductAvailabilities.result[a],r=sortStocks(t),s=t.hideQuantities,o=t.isStsAvailable,n=(s||0==t.overallQtySum||0==o?Translator.translate("Currently in production"):hardBlank(t.formattedOverallQtySum),jQuery("#ajaxSpinnerOverlay_"+a).remove(),'<div class="search_result_availability_data"><div class="availability_headline">'+Translator.translate("Availability")+'</div><div class="qty_underlined">'+Translator.translate("Ready For Shipment")+"</div>"),i=!1;if(!s)for(var l in r){var c=(u=r[l]).delivery;void 0!==c&&0<u.qty&&(d=hardBlank(u.formattedQty),n+="<div>"+c.formattedDeliveryTime+' <span class="qty_right">'+d+"</span></div>",i=!0)}if(i||(n+="<div>"+Translator.translate("Currently in production")+"</div>"),n+='<div class="qty_underlined">'+Translator.translate("Ready For Pickup")+"</div>",i=!1,!s)for(var l in r){var u,d,g=(u=r[l]).pickup;void 0!==g&&0<u.qty&&(d=hardBlank(u.formattedQty),n+="<div>"+g.stockName+' <span class="qty_right">'+d+"</span></div>",i=!0)}i||(n+="<div>"+Translator.translate("Currently in production")+"</div>"),n+="</div>",jQuery("#availtab_"+a).append(n)}}function hardBlank(e){return e.replace(" "," ")}function sortStocks(e){var a,t={};
1for(a in e){var r,s=parseInt(a);10<=s&&s<1e3&&(r=e[a],t[80==s?998:s]=r)}return t}function handleClickShowStockIcon(e,a){jQuery("#availtab_"+e).show("slide",{direction:"right"},500),"0"==jQuery("#availtab_"+e).data("loaded")&&(loadSlideInTileQuantities(e,a),jQuery("#availtab_"+e).data("loaded","1"))}function handleClickShowStockIconClose(e){jQuery("#availtab_"+e).hide("slide",{direction:"right"},500)}function qtyAddToCart(e){var o=jQuery(e).attr("data-sku"),e=jQuery(e).attr("data-salesunitqty"),a=jQuery("#qtyaddtocartfield"+o).val(),n=0,a=(0<a?n=a:(n=e,jQuery("#qtyaddtocartfield"+o).val(e)),jQuery("ul.messages").empty(),jQuery("ul.errors").empty(),globalSHOP_CATEGORY_AJAX_URL);jQuery.ajax(a,{dataType:"json",type:"POST",data:{form_key:globalFORM_KEY,sku:o},success:function(e){var s=e.result;jQuery.ajax(ajaxUrl,{dataType:"json",type:"POST",data:{form_key:globalFORM_KEY,setAddToCartFromSlider:{data:{sliderClass:"general_current_addtocart_container",sku:o,quantity:n,drum:""}}},success:function(e){unsetOverlayLoader();var a,t,r,e=e.setAddToCartFromSlider.result;1==e.showPopup?(jQuery("#quantitywarningpopup").html(e.popupHtml),jQuery("#quantitywarningpopupBtn").click()):(jQuery("html, body").animate({scrollTop:0},"slow"),console.log("ScrollTop #2"),e.numberOfDifferentItemsInCart&&jQuery(".MyCart").append('<div id="cartNoBxItemCount" class="cartNoBx">'+e.numberOfDifferentItemsInCart+"</div>"),t=!1,e.data.newQty&&0<e.data.newQty&&(jQuery("#qtyaddtocartfield"+o).val(e.data.newQty),n=e.data.newQty,t=!0),a=e.data.messages,-1==e.result.indexOf("SUCCESS")?(appendMessageUl(a,"messages","error-msg","glyphicon glyphicon-exclamation-sign"),console.log("appendMessageUl #49")):(0==t&&(e=(e=(e=(e=(e=jQuery("#textLink_"+o).text()).replace('<span class="results-highlight">',"")).replace("</span>","")).replace(/(\r\n|\n|\r)/gm,"")).trim(),t=new Object,r=document.querySelector("#general_current_price_container"+o),t.trackingEnabled=globalTRACKING_ENABLED,t.pagetype="search results",t.sku=o,t.name=e,t.price=r.querySelector(".span_currentprice5").innerHTML.replace(".","").replace(",","."),t.category=s,t.currencyCode=globalCURRENCY_CODE,t.quantity=n,localStorage.setItem("trackingData_pagetype",t.pagetype),localStorage.setItem("trackingData_name",t.name),localStorage.setItem("trackingData_category",t.category),localStorage.setItem("trackingData_featureSrc","Search Result Page Product"),addToCartTracking(t,"Search")),appendMessageUl(a,"messages","success-msg","glyphicon glyphicon-ok"),console.log("appendMessageUl #50")))},error:function(e){}})},error:function(e){}})}function vaildateEmail(e,a){(dataArray={}).validateEmailAddress={data:{email_address:e}},ajaxDispatcherCallWithCallback(a)}function testio(){console.log("hallo")}function suppressAjaxDispatcherCalls(){__suppressAjaxDispatcherCalls=!0}function validateActAsACustomer(e,a,t,r){var s=BASE_URL+"customer/account/validateActAsACustomer";jQuery.ajax(s,{dataType:"json",type:"POST",data:{form_key:globalFORM_KEY,user_email:e,system_contact_email:a},success:function(e){"success"==e.result&&(jQuery("#showActAsACustomerEmailField").show(),e=localStorage.actAsACustomerRealEmail,jQuery("#showActAsACustomerEmail").html(e+" "+t+" "+r))},error:function(e){}})}function deferredAddressValidation(a,e,t,r,s,o){var n=Translator.translate("Address check input failure recognized"),i=Translator.translate("Proceed Anyway");if(null===localStorage.getItem("counterIgnore")&&localStorage.setItem("counterIgnore",""),"billing_2"==o){if("ignore"!=localStorage.getItem("counterIgnore"))return console,log("Erster Durchlauf -> Nicht Speichern"),localStorage.setItem("counterIgnore","ignore"),!1;console,log("Zweiter Durchlauf -> Jetzt kann gespeichert werden"),localStorage.setItem("counterIgnore","")}var l=BASE_URL+"onlinetools/commonTools/addressValidation";jQuery.ajax(l,{dataType:"json",type:"POST",data:{adressdata:{street:e,postcode:t,city:r,country:s}},success:function(e){""!=e&&null!=e&&(e=e,console.log(o),"SUCCESS"==e.result?(console.log("addressValidation succeeded"),"shipping"==a&&shipping.save(),"billing"==a&&billing.save(),"registration"==a&&tryFullRegistration(),"addressmodification"==a&&jQuery("#address-form-validate").submit()):(console.log("addressValidation failed"),appendMessageUl([n+("addressmodification"==a?' <span style="cursor: pointer; font-weight: bold" onclick="snackBarContinue(\'addressmodification\');">'+i+"</span>":"registration"==a?' <span style="cursor: pointer; font-weight: bold" onclick="snackBarContinue(\'registration\');">'+i+"</span>":"billing"==a?' <span style="cursor: pointer; font-weight: bold" onclick="snackBarContinue(\'billing\');">
1'+i+"</span>":"shipping"==a?' <span style="cursor: pointer; font-weight: bold" onclick="snackBarContinue(\'shipping\');">'+i+"</span>":"")],"messages_hidden","error-msg")))},error:function(e){}})}function snackBarContinue(e){"billing"==e&&(billing.save(),jQuery(".smackbar-close").click()),"shipping"==e&&(shipping.save(),jQuery(".smackbar-close").click()),"registration"==e&&(tryFullRegistration(),console.log("continue registration, but address validation failed"),jQuery(".smackbar-close").click()),"addressmodification"==e&&(jQuery("#address-form-validate").submit(),console.log("continue saving address, but address validation failed"),jQuery(".smackbar-close").click())}function addToWishlistTracking(e){var t=localStorage.getItem("currencyCode"),r=localStorage.getItem("trackingData_pagetype");jQuery.ajax(ajaxUrl,{dataType:"json",type:"POST",data:{form_key:globalFORM_KEY,getPrepareProductInfoForAddToWishlistTracking:{data:{products:e}}},success:function(e){var e=e.getPrepareProductInfoForAddToWishlistTracking.result,a={event:"add_to_wishlist",addToWishlistCategory:r,ecommerce:{currency:t,value:e.products.price,items:e.products}};dataLayer.push(a),jQuery("ul.messages").empty(),appendMessageUl(e.messages,"messages_hidden","success-msg","glyphicon glyphicon-exclamation-sign"),jQuery(".success-msg").scrollTop(),unsetOverlayLoader()},error:function(e){console.log("ERROR: add to wishlist tracking"),jQuery("ul.errors").empty(),appendMessageUl(["[ERROR] given items are not received as array."],"messages_hidden","error-msg","glyphicon glyphicon-exclamation-sign"),jQuery(".error-msg").scrollTop(),unsetOverlayLoader()}})}window.location.origin||(siteBaseUrlJs=window.location.origin=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")),992<jQuery(window).width()&&(touchDisableForDesktop=!1),setTimeout(function(){globalFRESH_LOAD=!1},4e3),jQuery(document).ready(function(){function a(e){e&&(e=CSS.escape?CSS.escape(e):e.replace(/[!"#$%&'()*+,.\/:;<=>?@[\\\]^`{|}~]/g,"\\$&"),e=jQuery("#toggle-content-"+e))&&e.collapse("show")}function e(e){jQuery(e.target).parent().find("div").find(".more-less").toggleClass("glyphicon-plus glyphicon-minus"),jQuery(e.target).parent().find("div")[0].scrollIntoView({behavior:"smooth"})}function t(){jQuery(".leftNavSec .leftNav ul.subNav").hide(),jQuery(".leftNavSec .leftNav li span.arrow").removeClass("glyphicon-chevron-up").addClass("glyphicon-chevron-down")}actAsCustomerBtnLoginTxt=Translator.translate("Login"),actAsCustomerBtnCancelTxt=Translator.translate("Cancel"),actAsCustomerSearchHeadline=Translator.translate("Customer Search"),actAsCustomerSearchbarHeadline=Translator.translate("Act As Customer"),actAsCustomerSearchbarPlaceholder=Translator.translate("Search for customer name or number"),actAsCustomerFavouritesHeadline=Translator.translate("Favourites"),actAsCustomerMyCustomersOnlyTxt=Translator.translate("Only Show My Contacts"),actAsCustomerSearchMyCustomersOnlyTxt=Translator.translate("Search my customers only"),actAsCustomerNoFavouritesDefinedTxt=Translator.translate("Actually you have no favourites defined. If you´d like to define one, use the [+] icon in the result list of the customer search."),actAsCustomerLoginWithUserTxt=Translator.translate("Login with selected user?"),actAsCustomerNotSupervisedTxt=Translator.translate("not supervised"),actAsCustomerAddAllToFavouritListTxt=Translator.translate("Add all customers to favourites"),actAsCustomerAddToFavouritesOkMsgTxt=Translator.translate("Customer(s) added to favourites"),actAsCustomerNoneAddToFavouritesMsgTxt=Translator.translate("Customer(s) allready in favourites"),actAsCustomerNoListAddableToFavouritesMsgTxt=Translator.translate("Adding the complete result list to favourites can only be done up to an limit of 25 entries"),"boolean"==typeof isTypo3Page&&isTypo3Page&&localStorage.setItem("trackingData_pagetype",window.location.href),window.location.hash&&a(window.location.hash.replace("#c","")),jQuery("a").each(function(){var e=jQuery(this).attr("href");e&&e.include("#c")&&jQuery(this).click(function(){a(e.replace("#c",""))})}),jQuery(".filterPopup .panel-heading a").click(function(){filterState[jQuery(this).attr("aria-controls")]=jQuery(this).parent().parent().parent().attr("id")}),Validation.add("validate-multi-email",Translator.translate("Please enter a valid email address. For example [email protected]."),function(e){e=e.split(",");for(var a=0;a<e.length;a++)if(0==Validation.get("validate-email").test(e[a]))return!1;return!0}),jQuery(".accordianTypo").on("hidden.bs.collapse",e),jQuery(".accordianTypo").on("shown.bs.collapse",e),jQuery(".leftNavSec .leftNav li span.arrow").click(function(){jQuery(this).parent("li").toggleClass("active"),jQuery(this).hasClass("glyphicon-chevron-down")?(jQuery(this).removeClass("glyphicon-chevron-down"),jQuery(this).addClass("glyphicon-chevron-up")):(jQuery(this).removeClass("glyphicon-chevron-up"),jQuery(this).addClass("glyphicon-chevron-down")),jQuery(this).parent("li").siblings("li").children("span").hasClass("glyphicon-chevron-up")&&(jQuery(this).parent("li").siblings("li").children("span").removeClass("glyphicon-chevron-up"),jQuery(this).parent("li").siblings("li").children("span").addClass("glyphicon-chevron-down")),jQuery(this).siblings("ul.subNav").toggle(),jQuery(this).parent("li").siblings("li").children("ul.subNav").hide(),jQuery(this).parent("li").siblings(".active").removeClass("active")}),t(),jQuery(".leftNavSec .leftNav a").click(function(e){e.ctrlKey||e.metaKey||t()}),1<jQuery(".tabSlider").length&&jQuery(".tabSlider").each(function(e){jQuery(this).attr("id","tab"+e),jQuery(this).children("li:first-child").addClass("active"),jQuery(this).parent(".tabSection").find(".tab-pane").first().addClass("active in")}),jQuery(".tabSlider").bxSlider({touchEnabled:touchDisableForDesktop,auto:!1,pager:!1,infiniteLoop:!1,hideControlOnEnd:!0,autoControls:!0,slideWidth:190,minSlides:1,maxSlides:5,moveSlides:5,slideMargin:0}),jQuery(window).load(function(){jQuery(".frontpage_rwd .sliderBigImage .bxslider, .front_page .sliderBigImage .bxslider").bxSlider({touchEnabled:touchDisableForDesktop,auto:!0,pager:!0,autoControls:!1,mode:"fade",pause:8e3,speed:500,onSliderLoad:function(e){this.children("li").css("display","none").attr("aria-hidden","true"),this.children("li").eq(e).css("display","block").attr("aria-hidden","false"),0==e&&trackMainBannerView(this.find("img"))},onSlideAfter:function(e){this.children("li").css("display","none").attr("aria-hidden","true"),e.css("display","block").attr("aria-hidden","false"),e.visible&&e.visible(!0)&&trackMainBannerView(e.find("img"))}}),jQuery(".frontpage_rwd .sliderBigImage .bxslider img, .front_page .sliderBigImage .bxslider img").click(function(e){trackMainBannerClick(this)}),jQuery(".frontpage_rwd .sliderBigImage .bxslider .button-big-slider, .front_page .sliderBigImage .bxslider .button-big-slider").click(function(e){trackMainBannerClick(jQuery(this).closest("li").find("img"))})}
1),1<jQuery(".deshboardSlider li").size()&&jQuery(".deshboardSlider").bxSlider({touchEnabled:touchDisableForDesktop,auto:!0,pager:!0,autoControls:!1,mode:"fade",slideZIndex:0}),jQuery(".gallerySlider").bxSlider({touchEnabled:touchDisableForDesktop,auto:!1,pager:!1,slideWidth:175,minSlides:1,maxSlides:5,moveSlides:5,slideMargin:10,infiniteLoop:!1,hideControlOnEnd:!0,onSliderLoad:function(e){jQueryLazyLoader.update()}});var r=347,r=(jQuery(window).width()<=992&&(r=280),jQuery(".landingPageSlider").bxSlider({touchEnabled:touchDisableForDesktop,auto:!1,pager:!1,slideWidth:r,minSlides:1,maxSlides:4,moveSlides:5,slideMargin:5,infiniteLoop:!1,hideControlOnEnd:!0,onSliderLoad:function(e){jQueryLazyLoader.update()}}),500),s=(jQuery(window).width()<=767&&(r=350),jQuery(".newLaunches").bxSlider({touchEnabled:touchDisableForDesktop,auto:!1,pager:!1,slideWidth:r,minSlides:1,maxSlides:4,moveSlides:5,slideMargin:15,infiniteLoop:!0,hideControlOnEnd:!0,onSliderLoad:function(e){jQueryLazyLoader.update()}}),jQuery(".bx-viewport").length&&jQuery("body").on({touchmove:function(e){setTimeout(function(){jQuery(window).trigger("scroll")},100)}}),1<jQuery(".product-thumbnail-slider li").size()&&jQuery(".product-thumbnail-slider").bxSlider({touchEnabled:touchDisableForDesktop,pagerCustom:"#bx-pager"}),767<jQuery(window).width()&&jQuery(".pager-thumbnail").bxSlider({touchEnabled:touchDisableForDesktop,auto:!1,pager:!1,slideWidth:85,minSlides:1,maxSlides:5,moveSlides:5,slideMargin:6,infiniteLoop:!1,hideControlOnEnd:!0,onSliderLoad:function(e){jQueryLazyLoader.update()}}),jQuery("#customerProfileLink").click(function(){jQuery(".dropdown-menu .online-contact").hide()}),jQuery("#srchiconclick").click(function(){jQuery("#tx-solr-search-form-pi-search").submit()}),jQuery("#srchiconclickshop").click(function(){var e,a=jQuery("#search").val();""!=a&&a!=searchDefaultText?""!=localStorage.searchResultIsSingleProduct?(e=localStorage.searchResultIsSingleProduct,localStorage.searchResultIsSingleProduct="",window.location=e+"?q="+a):jQuery("#search_mini_form").submit():document.getElementById("search").focus()}),jQuery(document).on("keypress",function(e){var a;"search"===jQuery(e.target).attr("id")&&13==e.which&&(e.preventDefault(),""!=(e=jQuery("#search").val())&&e!=searchDefaultText?null!=localStorage.searchResultIsSingleProduct&&""!=localStorage.searchResultIsSingleProduct?(a=localStorage.searchResultIsSingleProduct,localStorage.searchResultIsSingleProduct="",window.location=a+"?q="+e):jQuery("#search_mini_form").submit():document.getElementById("search").focus())}),jQuery(document).on("paste",function(e){var a;"search"===jQuery(e.target).attr("id")&&13==e.which&&(e.preventDefault(),""!=(e=jQuery("#search").val())&&e!=searchDefaultText?null!=localStorage.searchResultIsSingleProduct&&""!=localStorage.searchResultIsSingleProduct?(a=localStorage.searchResultIsSingleProduct,localStorage.searchResultIsSingleProduct="",window.location=a+"?q="+e):jQuery("#search_mini_form").submit():document.getElementById("search").focus())}),jQuery("#breadcrumbs ul li.home").click(function(e){e.preventDefault(),window.location=BASE_URL.replace("/shop","")}),jQuery('.priceFormatCont input[type="radio"]').click(function(){var e=jQuery(this).attr("value"),e=jQuery("."+e);jQuery(".box").not(e).hide(),jQuery(e).show()}),jQuery("#agentInfoHead").removeAttr("data-toggle"),jQuery(".user-login").click(function(){jQuery(".user-login").addClass("open"),jQuery(".grayout").show(),jQuery("body").css("overflow","hidden")}),jQuery("#customerLogInContainer").removeAttr("data-toggle"),jQuery(".grayout").click(function(){jQuery(".grayout").hide(),jQuery(".user-login").removeClass("open"),jQuery("body").css("overflow","auto"),jQuery("#search_autocomplete").css("display","none"),jQuery(".searchContiner .input-group").css("z-index","auto")}),jQuery(window).width());jQuery(window).resize(function(){(600==jQuery(window).width()&&jQuery(window).width()!=s||960==jQuery(window).width()&&jQuery(window).width()!=s)&&location.reload()}),jQuery("#messagebar_content").on("click",function(){var e=jQuery(".bodytext").text()?jQuery(this).text():"",a=window.location.href,t=localStorage.getItem("currentMessageBarCampaign");window.dataLayer.push({event:"messagebar_click",link_text:e,link_url:a,messagebar_title:t})})}),jQuery(function(){jQuery(".articleLink").bind("click",function(){var e="article-teaser",a=(jQuery(this).parent().parent().hasClass("breadcrumb")&&(e="tag-breadcrumb"),jQuery(this).parent().find(".articleTitle").html());null==a&&(a=jQuery(this).parent().parent().find(".articleTitle").html()),(
1a=jQuery.trim(a.replace(/[\t\n]+/g," "))).replace("<span></span>",""),dataLayer.push({event:e,id:a})})}),getProductAvailabilitiesList=function(e){var a=e.nearestDeliveryQty,t="",r="",s=e.isForcedOrder;return"object"==typeof a.local&&(t+='<li><span class="nds-time">'+a.local.formattedDeliveryTime+' :</span><span class="nds-qty">'+a.local.formattedQty+"</span></li>"),"object"==typeof a.central&&(t+='<li><span class="nds-time">'+a.central.formattedDeliveryTime+' :</span><span class="nds-qty">'+a.central.formattedQty+"</span></li>"),"object"==typeof a.provider&&(t+='<li><span class="nds-time">'+a.provider.formattedDeliveryTime+' :</span><span class="nds-qty">'+a.provider.formattedQty+"</span></li>"),t+"."=="."&&(a=s?Translator.translate("on request"):Translator.translate("Currently in production"),t="<li"+(s&&e.deliveryQtySum<=0?' class="on_request"':"")+">"+a+"</li>"),jQuery.each(e,function(e,a){var t;a&&a.pickup&&void 0!==a.pickup&&(t="pickup_store_name",1!=a.pickup.isDefaultPickup||""==customerId&&""==customerName||(t+=" schrack_txt_highlight"),r+='<li class="info_button_pickup_info"><span class="'+t+'">'+a.pickup.stockName+"</span> :<span> "+a.formattedQty+"</span></li>")}),'<ul><li class="hd">'+Translator.translate("Ready For Shipment")+"<span></span></li>"+t+'<li class="info_button_pickup_info hd">'+Translator.translate("Ready For Pickup")+"<span></span></li>"+r+"</ul>"},jQuery(document).ready(function(){null!=getParameterByName("q")&&""!=getParameterByName("q")&&jQuery("#search").val(getParameterByName("q")),jQuery(document).click(function(e){jQuery(e.target).closest("#search_autocomplete").length});var a="";jQuery("#search").keydown(function(e){40==e.keyCode&&(e.preventDefault(),jQuery("#autosuggestFirst").length?jQuery("#autosuggestFirst li").first().addClass("selected").css("background-color","#dedede").find("a").focus():jQuery("#autosuggestSecond").length?jQuery("#autosuggestSecond li").first().addClass("selected").css("background-color","#dedede").find("a").focus():jQuery("#autosuggestThird").length&&jQuery("#autosuggestThird li").first().addClass("selected").css("background-color","#dedede").find("a").focus())}),jQuery("#search_autocomplete").keydown(function(e){37==e.keyCode?(e.preventDefault(),a=jQuery("#search_autocomplete").find(".selected"),jQuery("#autosuggestFirst").length?(a.removeClass("selected").css("background-color",""),jQuery("#autosuggestFirst li").first().addClass("selected").css("background-color","#dedede").find("a").focus()):jQuery("#autosuggestSecond").length&&(a.removeClass("selected").css("background-color",""),jQuery("#autosuggestSecond li").first().addClass("selected").css("background-color","#dedede").find("a").focus())):38==e.keyCode?(e.preventDefault(),((a=jQuery("#search_autocomplete").find(".selected")).is(":first-child")?(a.removeClass("selected").css("background-color",""),("autosuggestFirst"==a.parent().attr("id")?jQuery("#autosuggestThird").length?jQuery("#autosuggestThird li"):jQuery("#autosuggestSecond").length?jQuery("#autosuggestSecond li"):jQuery("#autosuggestFirst li"):"autosuggestSecond"==a.parent().attr("id")?jQuery("#autosuggestFirst").length?jQuery("#autosuggestFirst li"):jQuery("#autosuggestThird").length?jQuery("#autosuggestThird li"):jQuery("#autosuggestSecond li"):jQuery("#autosuggestSecond").length?jQuery("#autosuggestSecond li"):jQuery("#autosuggestFirst").length?jQuery("#autosuggestFirst li"):jQuery("#autosuggestThird li")).last()):(a.removeClass("selected").css("background-color",""),a.prev())).addClass("selected").css("background-color","#dedede").find("a").focus()):39==e.keyCode?(e.preventDefault(),a=jQuery("#search_autocomplete").find(".selected"),jQuery("#autosuggestThird").length&&(a.removeClass("selected").css("background-color",""),jQuery("#autosuggestThird li").first().addClass("selected").css("background-color","#dedede").find("a").focus())):40==e.keyCode&&(e.preventDefault(),((a=jQuery("#search_autocomplete").find(".selected")).is(":last-child")?(a.removeClass("selected").css("background-color",""),("autosuggestFirst"==a.parent().attr("id")?jQuery("#autosuggestSecond").length?jQuery("#autosuggestSecond li"):jQuery("#autosuggestThird").length?jQuery("#autosuggestThird li"):jQuery("#autosuggestFirst li"):"autosuggestSecond"==a.parent().attr("id")?jQuery("#autosuggestThird").length?jQuery("#autosuggestThird li"):jQuery("#autosuggestFirst").length?jQuery("#autosuggestFirst li"):jQuery("#autosuggestSecond li"):jQuery("#autosuggestFirst").length?jQuery("#autosuggestFirst li"):jQuery("#autosuggestSecond").length?jQuery("#autosuggestSecond li"):jQuery("#autosuggestThird li")).first()):(a.removeClass("selected").css("background-color",""),a.next())).addClass("selected").css("background-color","#dedede").find("a").focus()),13==e.keyCode&&a.find("a").click()}),jQuery("#save_password_data_button").on("click",function(){dataLayer&&dataLayer.push({event:"userSettingChange",eventLabel:"Password Change"})})}),function(){let e=3e4,a=!1,r=0,t=!1;function s(e){try{return new URL(e,location.href).origin===location.origin}catch(e){}}window.navigation?(window.navigation.addEventListener("navigate",e=>{s(e.destination.url)&&(a=!0)}),window.navigation.addEventListener("navigatesuccess",function(){a=!1}),window.navigation.addEventListener("navigateerror",function(){a=!1})):(document.addEventListener("click",a=>{var t=a.target.closest("a[href]");if(t&&"_blank"!==t.target&&!t.hasAttribute("download")){let e;try{e=new URL(t.href,location.href)}catch(e){return}"https:"===e.protocol&&e.origin===location.origin&&e.href.split("#")[0]!==location.href.split("#")[0]&&setTimeout(function(){a.defaultPrevented||(r=Date.now())},0)}},!0),document.addEventListener("submit",function(e){s(e.target.getAttribute("action")||location.href)&&setTimeout(function(){e.defaultPrevented||(r=Date.now())},0)},!0)),window.addEventListener("pagehide",function(){t||a||Date.now()-r<e||(t=!0,fetch(BASE_URL+"sd/ajaxDispatcher/logPunch",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({action:"User left",type:"Punchout"}),keepalive:!0}
1).catch(function(){}))}),window.addEventListener("pageshow",function(e){e.persisted&&(t=!1,a=!1,r=0)})}(),jQuery(document).ready(function(){var t=window.innerWidth;window.innerHeight,jQuery(window).height();function e(){console.log("removeMobileBackgroundOverlay"),jQuery(".mobile_overlay").remove(),console.log("Reset body to normal size #1"),jQuery("body").css("height","auto")}function r(e){dataLayer&&e&&dataLayer.push({event:"allNavigation",eventAction:"Mega Menu Navigation",eventLabel:e})}function a(){jQuery(".nav-panel").hide(),t<=992?(jQuery(".top-navigation-container").hide(),e(),l(),console.log(".main_nav_closing Clicked on mobile device (menu.js)")):(console.log(".main_nav_closing Clicked on desktop device (menu.js)"),jQuery(".backfiller_left").css("background","#e8f0fa"),jQuery(".backfiller_right").css("background","#e8f0fa")),jQuery(".top_navigation_item.active").removeClass("active")}console.log("javascript for menu actions ready to process (menu.js)");var s=!1,o=0,n=setInterval(function(){1==(s=jQuery("#navigationEnvelope").length?!0:s)?(console.log("%c menu %c #navigationEnvelope FOUND -> LOADING events (menu.js)","color: white; background: #638F4C;",""),console.log("Placing related events for menu (menu.js)"),992<jQuery(window).width()&&(jQuery(".top_navigation_item_first").on("mouseover",function(){jQuery(".backfiller_left").css("background","#00589d")}),jQuery(".top_navigation_item_first").on("mouseout",function(){jQuery(".top_navigation_item_first").hasClass("active")||jQuery(".backfiller_left").css("background","#e8f0fa")}),jQuery(".top_navigation_item_alternate").on("click",function(){jQuery(".backfiller_left").css("background","#e8f0fa")}),jQuery(".top_navigation_item_quickadd").on("mouseover",function(){jQuery(".backfiller_right").css("background","#00589d"),jQuery(".top_navigation_item_quickadd").css("background","#00589d"),jQuery(".top_navigation_item_quickadd").removeClass("active")}),jQuery(".top_navigation_item_quickadd").on("mouseout",function(){jQuery(".backfiller_right").css("background","#e8f0fa"),jQuery(".top_navigation_item_quickadd").css("background","#e8f0fa"),jQuery(".top_navigation_item_quickadd").removeClass("active")}),jQuery(".top_navigation_item_quickadd").on("click",function(){jQuery(".backfiller_right").css("background","#e8f0fa"),jQuery(".top_navigation_item_quickadd").css("background","#e8f0fa"),jQuery(".top_navigation_item_quickadd").removeClass("active")})),jQuery(".single_top_nav_special_case").on("click",function(){var e=jQuery(this).attr("data-directurl");window.location=e}),jQuery(".top_navigation_main").on("click",function(){var e=jQuery(this).attr("data-target");jQuery(".main-categories_panel").hide(),jQuery(".sub-categories_panel").hide(),jQuery('div[data-source="'+e+'"]').show(),t<=992?(jQuery('div[data-source="'+e+'"]').animate({left:0},"slow"),jQuery('div[data-source="'+e+'"]').animate({right:jQuery("body").innerWidth()-jQuery('div[data-source="'+e+'"]').width()},"slow"),jQuery(".top_navigation_main").removeClass("active"),jQuery(".top_navigation_item").css("color","#00589d"),console.log(".top_navigation_main Clicked on mobile device (menu.js)")):(jQuery(".top_navigation_item").removeClass("active"),jQuery(this).children(".top_navigation_item").addClass("active"),console.log(".top_navigation_main Clicked on desktop device (menu.js)"),jQuery(".backfiller_right").css("background","#e8f0fa"),jQuery(".top_navigation_item_quickadd").removeClass("active"))}),jQuery(".main_catInner_shop").on("click",function(e){e.preventDefault();var e=jQuery(this).attr("data-target-subpanel"),a=jQuery(this).attr("data-source");t<=992?(jQuery('div[data-source="'+e+'"]').show(),jQuery('div[data-source="'+e+'"]').animate({left:0},"slow"),jQuery('div[data-source="'+e+'"]').animate({right:jQuery("body").innerWidth()-jQuery('div[data-source="'+e+'"]').width()},"slow"),console.log(".main_catInner_shop Clicked on mobile device (menu.js)")):(console.log(".main_catInner_shop Clicked on desktop device (menu.js)"),jQuery('div[data-source="'+a+'"]').hide(),jQuery('div[data-source="'+e+'"]').show()),jQuery(this).attr("data-tracking-cat")&&(jQuery(this).attr("data-target-url"),jQuery(this).attr("data-tracking-cat"),r(jQuery(this).children("div").children("div").children("div").text()))}),jQuery(".nav_back_to_top_cats").on("click",function(){t<=992?(jQuery(".main-categories_panel").hide(),jQuery(".top_navigation_item").removeClass("active"),jQuery(".main-categories_panel").css("left","2000px"),console.log(".nav_back_to_top_cats Clicked on mobile device (menu.js)")):console.log(".nav_back_to_top_cats Clicked on desktop device (menu.js)")}),jQuery(".subNav_back").on("click",function(){var e=jQuery(this).attr("data-target-show"),a=jQuery(this).attr("data-target-hide");jQuery('div[data-source="'+a+'"]').hide(),jQuery('div[data-source="'+e+'"]').show(),t<=992?(jQuery(".sub-categories_panel").css("left","2000px"),console.log(".subNav_back Clicked on mobile device (menu.js)")):console.log(".subNav_back Clicked on desktop device (menu.js)")}),jQuery(".main_nav_closing").on("click",function(){a()}),jQuery(".sub_nav_closing").on("click",function(){jQuery(".nav-panel").hide(),t<=992?(jQuery(".top-navigation-container").hide(),e(),l(),console.log(".sub_nav_closing Clicked on mobile device (menu.js)")):console.log(".sub_nav_closing Clicked on desktop device (menu.js)"),jQuery(".top_navigation_item.active").removeClass("active")}),jQuery(".sub_catInner").on("click",function(){console.log(".sub_catInner Clicked on mobile device (menu.js)");var e=jQuery(this).attr("data-target-url");jQuery(this).attr("data-tracking-cat");r(jQuery(this).children("div").children("div").children("div").text()),mainNavTracking(this),window.location=e}),jQuery(".main_catInner_typo").on("click",function(){console.log(".main_catInner_typo Clicked on mobile device (menu.js)");var e=jQuery(this).attr("data-target-url");window.location=e,mainNavTracking(this)}),jQuery("#hamburgerMenuAlternateButton").on("click",function(){console.log("#hamburgerMenuAlternateButton Clicked on mobile device (menu.js)"),0==jQuery(".mobile_overlay").length&&jQuery("body").append('<div class="mobile_overlay"></div>'),jQuery("body").css("height","100px"),jQuery(".mobile_overlay").show(),jQuery(".top-navigation-container").show()}),jQuery(".closeMobileMainLayer").on("click",function(){console.log("#closeMobileMainLayer Clicked on mobile device (menu.js)"),e(),jQuery(".top-navigation-container").hide(),jQuery(".top_navigation_main").removeClass("active"),jQuery(".top_navigation_item").css("color","#00589d")}),clearInterval(n)):o<20?(i("#navigationEnvelope NOT FOUND - will try again (menu.js)"),o++):(i("#navigationEnvelope Search FAILED (menu.js)"),clearInterval(n))},500);function i(e){console.log("%c menu %c "+e,"color: white; background: red;","")}function l(){t<=992&&(jQuery(".main-categories_panel").css("left","2000px"),jQuery(".sub-categories_panel").css("left","2000px"),jQuery(".top_navigation_main").removeClass("active"),jQuery(".top_navigation_item").css("color","#00589d"),
1console.log("Reset body to normal size #2"),jQuery("body").css("height","auto"),console.log("Reset All Sublayers (menu.js)"))}jQuery(document).on("click",function(e){jQuery(e.target).closest(".nav-panel").length||jQuery(e.target).closest(".top_navigation_main").length||jQuery(e.target).closest(".top_navigation_item").length||jQuery(e.target).closest(".hamburgerMenuAlternateButtonIos").length||jQuery(e.target).closest(".hamburgerMenuAlternateIosTypo").length||jQuery(e.target).closest(".hamburgerMenuAlternateButtonIosTypo").length||jQuery(e.target).closest("#hamburgerMenuAlternateButton").length||jQuery(e.target).closest("#hamburgerMenuAlternateButtonTypo").length||jQuery(e.target).closest("#usercentrics-root").length||jQuery(e.target).closest("#ids_cart_transfer_cart").length||jQuery(e.target).closest("#checkoutSteps ").length||(console.log(jQuery(window).width()),992<jQuery(window).width()&&(console.log("Menu Closing"),a()))})}),jQuery(document).ready(function(){var e=new Date,e=e.setDate(e.getDate()-1),e=new Date(e).toLocaleString().split(","),i=new Date,l=i.setDate(i.getDate()),a=new Date(l).toLocaleString().split(","),e=(localStorage.dayTicketMessageBars&&localStorage.dayTicketMessageBars==a[0]||a[0]!=e[0]&&(localStorage.removeItem("allMessageBars"),localStorage.removeItem("alreadyClosedMessageBars"),localStorage.removeItem("availableMessageBars"),localStorage.removeItem("currentMessageBar"),localStorage.removeItem("currentMessageBarCampaign"),localStorage.removeItem("currentMessageBarContent"),localStorage.removeItem("currentMessageBarLink"),localStorage.removeItem("currentMessageBarLogin"),localStorage.removeItem("customerFormerlyNotLoggedInWhileFetchedMessageBar"),localStorage.removeItem("expiringMessageBarTime"),localStorage.removeItem("runRotateMessageBar"),localStorage.removeItem("timeClosedLastMessageBar"),localStorage.removeItem("timeClosedLastMessageBarHumanReadable"),localStorage.removeItem("trackingClickedMessageBars"),localStorage.removeItem("trackingClosedMessageBars"),localStorage.removeItem("trackingFetchedMessageBars"),localStorage.setItem("dayTicketMessageBars",a[0]),localStorage.setItem("runRotateMessageBar","yes")),null===localStorage.getItem("allMessageBars")&&localStorage.setItem("allMessageBars",""),null===localStorage.getItem("no_other_proccess_running_on_MessageBars")?localStorage.setItem("no_other_proccess_running_on_MessageBars","true"):localStorage.no_other_proccess_running_on_MessageBars="true",null===localStorage.getItem("expiringMessageBarTime")&&localStorage.setItem("expiringMessageBarTime",864e5),null===localStorage.getItem("currentMessageBarLink")&&localStorage.setItem("currentMessageBarLink",""),null===localStorage.getItem("currentMessageBarCampaign")&&localStorage.setItem("currentMessageBarCampaign",""),null===localStorage.getItem("currentMessageBarContent")&&localStorage.setItem("currentMessageBarContent",""),null===localStorage.getItem("currentMessageBar")&&localStorage.setItem("currentMessageBar",""),null===localStorage.getItem("runRotateMessageBar")&&localStorage.setItem("runRotateMessageBar","no"),null===localStorage.getItem("alreadyClosedMessageBars")&&localStorage.setItem("alreadyClosedMessageBars",""),null===localStorage.getItem("timeClosedLastMessageBar")&&localStorage.setItem("timeClosedLastMessageBar",""),null===localStorage.getItem("timeClosedLastMessageBarHumanReadable")&&localStorage.setItem("timeClosedLastMessageBarHumanReadable",""),null===localStorage.getItem("customerFormerlyNotLoggedInWhileFetchedMessageBar")&&localStorage.setItem("customerFormerlyNotLoggedInWhileFetchedMessageBar",""),null===localStorage.getItem("trackingFetchedMessageBars")&&localStorage.setItem("trackingFetchedMessageBars",""),null===localStorage.getItem("trackingClosedMessageBars")&&localStorage.setItem("trackingClosedMessageBars",""),null===localStorage.getItem("trackingClickedMessageBars")&&localStorage.setItem("trackingClickedMessageBars",""),document.querySelector(".placeholder-messagebar"));function c(t,e){g("showMessageBar called"),0<window.location.href.indexOf("checkout/onepage")?g("WELCOME TO CHECKOUT -> no message bars"):(localStorage.no_other_proccess_running_on_MessageBars="false",g(e),g(t),setTimeout(function(){if(1==localStorage.customerNotLoggedIn&&(localStorage.customerFormerlyNotLoggedInWhileFetchedMessageBar=1),1==localStorage.customerFormerlyNotLoggedInWhileFetchedMessageBar&&0==localStorage.customerNotLoggedIn&&(localStorage.customerFormerlyNotLoggedInWhileFetchedMessageBar=0,console.log("%c messageBar %c Customer logged in now - before not logged-in","color: white; background: red;",""),d("customer currently logged id now, but before logged out")),1==localStorage.customerNotLoggedIn&&2==localStorage.currentMessageBarLogin)return!1;if(""!=localStorage.getItem("alreadyClosedMessageBars")){var e=JSON.parse(localStorage.alreadyClosedMessageBars),a=localStorage.currentMessageBar;if(e&&u(a,e)){g("current selected messageBar"+a+"was closed already");a=JSON.parse(localStorage.availableMessageBars);if(0==(e.length<a.length?r("closed messageBar: not all messageBars closed"):(localStorage.setItem("alreadyClosedMessageBars",""),r("now closed all available messageBars"))))return!1}}jQuery(window).width()<=992?(jQuery("#messagebar_form_mini_smartphone").addClass("form_mini_message_bar_modus_smartphone"),jQuery("#messagebar_form_mini_smartphone").html(t),jQuery(".closeMessageBar").addClass("closeMessageBarSmartphone"),jQuery(".closeMessageBarSmartphone").removeClass("closeMessageBar"),jQuery(".messagebar_html").addClass("messagebar_html_smartphone"),jQuery(".messagebar_html_smartphone").removeClass("messagebar_html"),jQuery(".innerTextMessageBarBig").addClass("innerTextMessageBarBigSmartphone"),jQuery(".innerTextMessageBarBig").removeClass("innerTextMessageBarBig"),0<t.indexOf("innerTextMessageBarMedium")&&(jQuery(".form_mini_message_bar_modus_smartphone").addClass("doubleHeight"),jQuery(".messagebar_html_smartphone").addClass("doubleHeight")),jQuery("#closeMessageBarSymbol").css("z-index","-1"),jQuery("#messagebar_form_mini_smartphone").fadeIn(500),setTimeout(function(){var e,a;jQuery(".messagebar_html_smartphone").length&&(a=jQuery(".messagebar_html_smartphone").offset(),e=jQuery(".messagebar_html_smartphone").width(),a=a.left+e-19,jQuery("#closeMessageBarSymbol").css("left",a+"px"),jQuery("#closeMessageBarSymbol").css("z-index","1"))}
1,700)):(jQuery("#messagebar_content").html(t),jQuery("#closeMessageBarSymbol").css("z-index","-1"),jQuery("#messagebar_content").fadeIn(500),setTimeout(function(){var e,a;jQuery(".messagebar_html").length&&(a=jQuery(".messagebar_html").offset(),e=jQuery(".messagebar_html").width(),a=a.left+e-19,jQuery("#closeMessageBarSymbol").css("left",a+"px"),jQuery("#closeMessageBarSymbol").css("z-index","1"))},700)),0==n("trackingFetchedMessageBars",localStorage.currentMessageBar)&&(s("Fetched Message Bar",localStorage.currentMessageBarCampaign,localStorage.currentMessageBar),o("trackingFetchedMessageBars",localStorage.currentMessageBar))},1e3))}function u(e,a){for(var t=a.length,r=0;r<t;r++)if(a[r]==e)return 1}function r(e){if(localStorage.no_other_proccess_running_on_MessageBars="false",e="rotateMessageBar "+e,console.log("%c messageBar %c "+e,"color: white; background: #D97300;",""),""==localStorage.timeClosedLastMessageBar)return!1;var a=new Date,t=a.setDate(a.getDate()),e=parseInt(localStorage.expiringMessageBarTime)+parseInt(localStorage.timeClosedLastMessageBar),r=localStorage.currentMessageBar;if(!(e<t))return""!=(e=""==localStorage.alreadyClosedMessageBars?"":JSON.parse(localStorage.alreadyClosedMessageBars))&&(""==e||u(r,e))||c(localStorage.currentMessageBarContent,"section 14"),g("Wait Time Is Not Expired"),!1;g("Wait Time Expired");var s=JSON.parse(localStorage.availableMessageBars);g("still have some unclosed messageBars available");for(var o=0;o<s.length;o++)if(parseInt(r)==parseInt(s[o])){var n,i=parseInt(s[o+1]);if(!isNaN(i))return localStorage.currentMessageBar=i,n="Changed Message Bar #2 To next value (UID) = "+i,console.log("%c messageBar %c "+n,"color: black; background: pink;",""),n=JSON.parse(localStorage.allMessageBars),localStorage.currentMessageBarContent=n[i].body,localStorage.currentMessageBarCampaign=n[i].campaignName,localStorage.currentMessageBarLink=n[i].link,localStorage.currentMessageBarLogin=n[i].login,t=(a=new Date).setDate(a.getDate()),localStorage.timeClosedLastMessageBar=t,localStorage.timeClosedLastMessageBarHumanReadable=new Date(t).toLocaleString(),c(n[i].body,"section 1"),!0;localStorage.alreadyClosedMessageBars="",d("messageBar is out of range")}}function d(e){e="refreshData "+e,console.log("%c messageBar %c "+e,"color: white; background: #638F4C;",""),localStorage.setItem("allMessageBars",""),localStorage.setItem("currentMessageBarLink",""),localStorage.setItem("currentMessageBarCampaign",""),localStorage.setItem("currentMessageBarContent",""),localStorage.setItem("runRotateMessageBar","no");e=BASE_URL+"sd/Api/getMessageBarTypoSnippet/";jQuery.ajax(e,{type:"POST",data:void 0,success:function(e){var e=JSON.parse(e),a=[],t=!0;if(Array.isArray(e)&&0===e.length&&(t=!1,g("No MessageBars available"),n=document.getElementById("messagebar_content"))&&(n.style.height="0"),1==t){for(var r in e)a.push(r);localStorage.allMessageBars=JSON.stringify(e);var s,o,n=a[0];localStorage.availableMessageBars=JSON.stringify(a),void 0!==n&&g("Changed Message Bar #1 To value (UID) = "+(localStorage.currentMessageBar=n)),p=""==localStorage.alreadyClosedMessageBars?"":JSON.parse(localStorage.alreadyClosedMessageBars),(void 0!==n&&""==p||""!=p&&!u(n,p))&&(g("Current MessageBar-UID = "+a[0]),t=e[n].body,s=e[n].campaignName,o=e[n].link,e=e[n].login,localStorage.currentMessageBarContent=t,localStorage.currentMessageBarCampaign=s,localStorage.currentMessageBarLink=o,localStorage.currentMessageBarLogin=e,i=new Date,l=i.setDate(i.getDate()),localStorage.timeClosedLastMessageBar=l,localStorage.timeClosedLastMessageBarHumanReadable=new Date(l).toLocaleString(),c(t,"section 2"))}else localStorage.setItem("currentMessageBar",""),localStorage.setItem("availableMessageBars",""),g("No ActiveMessageBar");localStorage.runRotateMessageBar="no"}})}function g(e){console.log("%c messageBar %c "+e,"color: white; background: #17a2b8;","")}e&&localStorage.alreadyClosedMessageBars.includes(localStorage.currentMessageBar)&&""!==localStorage.alreadyClosedMessageBars&&(e.style.height="0"),""==localStorage.currentMessageBar?d("current messageBar is empty"):parseInt(localStorage.expiringMessageBarTime)+parseInt(localStorage.timeClosedLastMessageBar)<l&&r("expiration time reached for rotation"),setTimeout(function(){jQuery("#closeMessageBarSymbol").on("click",function(){var e=jQuery(this).attr("data-uid"),a=(""==localStorage.alreadyClosedMessageBars?((a=[]).push(e),localStorage.alreadyClosedMessageBars=JSON.stringify(a),(a=document.querySelector(".placeholder-messagebar"))&&a.classList.remove("placeholder-messagebar")):((a=JSON.parse(localStorage.alreadyClosedMessageBars)).push(e),localStorage.alreadyClosedMessageBars=JSON.stringify(a),(e=document.querySelector(".placeholder-messagebar"))&&(e.style.height="0")),new Date),e=a.setDate(a.getDate());0==n("trackingClosedMessageBars",localStorage.currentMessageBar)&&(s("Closed Message Bar",localStorage.currentMessageBarCampaign,localStorage.currentMessageBar),o("trackingClosedMessageBars",localStorage.currentMessageBar)),localStorage.timeClosedLastMessageBar=e,localStorage.timeClosedLastMessageBarHumanReadable=new Date(e).toLocaleStr
1ing(),localStorage.currentMessageBarContent="",localStorage.currentMessageBarCampaign="",localStorage.currentMessageBarLogin="",localStorage.currentMessageBarLink="",(jQuery(window).width()<=992?(jQuery("#messagebar_form_mini_smartphone").removeClass("form_mini_message_bar_modus_smartphone"),jQuery("#messagebar_form_mini_smartphone")):jQuery("#messagebar_content")).html("")}),jQuery(".linkTargetMessageBar").on("click",function(){0==n("trackingClickedMessageBars",localStorage.currentMessageBar)&&(s("Clicked Message Bar",localStorage.currentMessageBarCampaign,localStorage.currentMessageBar),o("trackingClickedMessageBars",localStorage.currentMessageBar)),window.location.href=localStorage.currentMessageBarLink})},3e3);var p,a=localStorage.getItem("currentMessageBarContent");function s(e,a){dataLayer&&dataLayer.push({eventAction:e,eventLabel:a,event:"eventMessageBar"})}function o(e,a){var t=[];(t=""!=localStorage.getItem(e)?JSON.parse(localStorage.getItem(e)):t).push(a),localStorage.setItem(e,JSON.stringify(t))}function n(e,a){if(""!=localStorage.getItem(e))for(var t=JSON.parse(localStorage.getItem(e)),r=0;r<t.length;r++)if(a==t[r])return!0;return!1}"no"==localStorage.runRotateMessageBar&&a&&"true"==localStorage.no_other_proccess_running_on_MessageBars&&(e=localStorage.currentMessageBar,""!=(p=""==localStorage.alreadyClosedMessageBars?"":JSON.parse(localStorage.alreadyClosedMessageBars))&&(""==p||u(e,p))||(console.log("%c messageBar %c Default: no rotation - just stay here until time expired or customer has closed","color: white; background: violet;",""),c(localStorage.currentMessageBarContent,"section 3")))});var i_barcodePicker=null,i_initDone=!1,i_afterInitOrigin=null,i_afterInitStartFunc=null,i_originElementStack=[],i_imageOverlayLoaderUrl="https://www.schrack.at/shop/skin/frontend/schrack/default/schrackdesign/Public/
1Images/download_ajax_loader.gif",i_storedOverlayElementCss=null,i_hintText=null;function mayScan(){var e,t,r,s,o,n,i,l,c,u,d,g,p,m,y,h,f,a;return"www.schrack.at.localhost"==location.hostname||"www.schrack.at.local"==location.hostname||"test-cz.schrack.com"==location.hostname||(e=this,t=/iPhone/i,r=/iPod/i,s=/iPad/i,o=/(?=.*\bAndroid\b)(?=.*\bMobile\b)/i,n=/Android/i,i=/(?=.*\bAndroid\b)(?=.*\bSD4930UR\b)/i,l=/(?=.*\bAndroid\b)(?=.*\b(?:KFOT|KFTT|KFJWI|KFJWA|KFSOWI|KFTHWI|KFTHWA|KFAPWI|KFAPWA|KFARWI|KFASWI|KFSAWI|KFSAWA)\b)/i,c=/IEMobile/i,u=/(?=.*\bWindows\b)(?=.*\bARM\b)/i,d=/BlackBerry/i,g=/BB10/i,p=/Opera Mini/i,m=/(CriOS|Chrome)(?=.*\bMobile\b)/i,y=/(?=.*\bFirefox\b)(?=.*\bMobile\b)/i,h=new RegExp("(?:Nexus 7|BNTV250|Kindle Fire|Silk|GT-P1000)","i"),f=function(e,a){return e.test(a)},a=function(e){var e=e||navigator.userAgent,a=e.split("[FBAN");return void 0!==(a=(e=void 0!==a[1]?a[0]:e).split("Twitter"))[1]&&(e=a[0]),this.apple={phone:f(t,e),ipod:f(r,e),tablet:!f(t,e)&&f(s,e),device:f(t,e)||f(r,e)||f(s,e)},this.amazon={phone:f(i,e),tablet:!f(i,e)&&f(l,e),device:f(i,e)||f(l,e)},this.android={phone:f(i,e)||f(o,e),tablet:!f(i,e)&&!f(o,e)&&(f(l,e)||f(n,e)),device:f(i,e)||f(l,e)||f(o,e)||f(n,e)},this.windows={phone:f(c,e),tablet:f(u,e),device:f(c,e)||f(u,e)},this.other={blackberry:f(d,e),blackberry10:f(g,e),opera:f(p,e),firefox:f(y,e),chrome:f(m,e),device:f(d,e)||f(g,e)||f(p,e)||f(y,e)||f(m,e)},this.seven_inch=f(h,e),this.any=this.apple.device||this.android.device||this.windows.device||this.other.device||this.seven_inch,this.phone=this.apple.phone||this.android.phone||this.windows.phone,this.tablet=this.apple.tablet||this.android.tablet||this.windows.tablet,"undefined"==typeof window?this:void 0},"undefined"!=typeof module&&module.exports&&"undefined"==typeof window?module.exports=a:"undefined"!=typeof module&&module.exports&&"undefined"!=typeof window?module.exports=v():"function"==typeof define&&define.amd?define("isMobile",[],e.isMobile=v()):e.isMobile=v(),isMobile.any)||isIpad();function v(){var e=new a;return e.Class=a,e}}function isIpad(){var e=window.navigator.userAgent;if(-1<e.indexOf("iPad"))return!0;if(-1<e.indexOf("Macintosh"))try{return document.createEvent("TouchEvent"),!0}catch(e){}return!1}function initScan(e,a,t,r,s){var o,n,i,l,c,u;mayScan()&&(null!=r&&(i_imageOverlayLoaderUrl=r),o=null,o="www.schrack.at.local"==location.hostname||location.hostname.startsWith("test-")&&location.hostname.endsWith(".schrack.com")?"AfqM4VhORx04MGjA1BBW7tg0GJdPLMwMEEJsvb827QdWNoEn3W21GuJcygYSJk49lEdfCW93bMYhTt/nAHyLGiJlKscvYJKqsxuWqYEVfkCfTmbcy1X+xhhZC5HvXs5BZF56O65+1W+uZrSiBGu1ynwyRSVuA3i9+zm02DJJ6zD4b51pnXueFJVx5Dj+fcAZn2bEfCdsbfEpZ4jU+VvQAnse/FZWQ8XpsGcx2u9BIC8MXELuHGVr/QtL3NOJVuQFBkbHIEkwNvaraCJYbl7QvL1Mxn76U2tlsWj+D0NurbNIbE8BIlG9Hx1TgILtc+zg325QmDlaMD2WNwgZS0Tg4nB3AWJvQ6CDkW/fO71KGjecY+2GrWGwyHFdkERwAn/1RnGfuCBe7recYM0oMl4znl9y0I14KbbVn0koV4pcZEGYeoUCj2a+OAAzD69la7ylqkB0UYZo7eXWYdcZC0Kk1EFOzyKaIf1X02o/Vup6R5OqY3s9pmoZ08hrsTy3R3lswUTGqflgaIB8V2OesFLu9xxVK+98VbqdhFmZiUlUOERNEOKDbHEmTIIca4MpeKhinSpCPG51M/CVa8qAexTn9/o9KuAWRDbNH5dYZ4AjQjfHmG9hhdAxoGWyl2pmtgSpQa0Nj23Dgr9N0Bp1sse5JBTieTxOyVHliPDuu1ngEiXJTe6E+c5MXCv6+wONz3TSK54w+uQQ7KetZCZiVaVodxqyYqZpIId/3HY7ASNG1AG0nGHw9CL9GKzi0jH44Uc8Ex9fi2peiEqrPrN+Frq7ePTqNs6ge/VsKe8+Oxt465Dw+rm0RKAE78k6jBpPWwOo5BgH9M5kUHNflLdoR9c+ITy2eGBOkAZYiu5cwyD11n15vXJ9Gd/dc4jc4QLz8kTNU/H/pX6q/CfoyDX1Eh7989V2s70vIdbcQz15zJ8xhd8ZfH9vG60VxZKGJxZFWX9FcYxbIDAaydH1e2e8Ax+K/Uobe3sHgOyY3Aal2s8Vp4zUndnVJ9n6j8/BP/TuQYaf57YVK0bBgxsgCMzcydKsnt1cOUx5dfXuenI40qR+fsBWtSERvhtaDSE2u4yKCF1XkoTtBWj5uPZstPGM1f83njHlsL7Alo7OEsgihwt3yRFINLVNt+axXff8aivIgAmrotlGqZgzoQ/cXz97vPDvq1ncN0NuX3XaeaBDr0U+n4QqUV3yl0NEYxf3HwdaiEtyWh7eU5tv4PB65AhP/KiU4VHcfqSS4vHZaww8XF+heQuF73jox53p4yyyVlfd07zqKa8erH6XpR4=":"AWBsLYmBHZNPG18CMjHgp6YARpP2P9WWHEMQ9lhpSvXLQawnSlqSwvhcQBBVBY78/kKVslVeBskBU9V3V0Z8cphOSHgmcemSqg4ldXlNkN5JWlwmX0i8xOhPIbYCWWOBfF0zz+hcRn2cSldivGFXuoN3+b7RVPqMTUmdtTgxVT9NIXwuqDnGTIBlS/mgJc+FeFWxyjRjcVPLQygxPnrV0SNwSBZOJUQMrnhKeHFhcdkIcmVf+0UKkTF7iWavKu7N/C+0kMBay6nfbTAlRU985ydPciI7WH7+G0gSLsBNEdH4ctdkGkWeCg5jRRngQQtCQ2x5HGR9hoLvZs/qLTXgx11TfLZoHpasx0uMvJEbTvVuSne6KHUNdtNH529UXQ193G7dYoFov3BmYss0KGptyJZtSBlOSCXJN318+PJcuIHCVr1VmkvaJVF47DcZQHhzYzTcbeNxOCAVL4qAkmWrCPZik1rwNKvWdgvm4vU61QbaoHYpbRDQfffPm58eDyq09v7xMBSDLsFmN+QS0RL/l8ti18rkKbCSWSbpQvHG+rS01RJv3+Fq4NEWuImjpuRcIt6rsygT18MA9UXDQTWJ9zNE0GAYLGy5QDMI1loa033T0XTd0dIbHrKjkxQ36n64ntnJhr2sUU9e/z2SNK3M+qMH+sIbUq9b3pcUqqBXFuQNHsybLtkZjs6eJScjB0xxQ6lJgYcWAyuhaCdKffw/cDGdlRpeIaSWRHj2eKgYeqPGoVcODie55SEN6kWwOzR28DnKjKqB+Vsp+vofGe00prqlMYUlEkV+lKEYn4XY7GR1wPiHxYzSk+FOl1/guXAksUNGe1ns59RSilNJ78TcWxrhQcBDNrVJKcMwGuoNOBr4uqPWgtVAzaQQWX4nSe8Kq91zWPfXMRZMKmEDssgRAqcAJELZe3kVUQZpMySMM5s/8gLpwzyS3cHUh8w3ujbwr72d4GWisvjQclzCmqilLIIJ/YGidAR9V1WbdB9TQjLr2cRFFLUxLAHEANZWjjT9s7braFkKCel7DB7/eYgWGl9gRWKrd61eZHIEcebKKHtEr6m4Xjs/69XLR30u9R/wwIZf5K0iYAyKx7QZr7SsYlMT4awxox/Usb6D0UW13JPLY9py5fJPSP9l+ICJE6bdWpiP+6yHsKFNE+g6H1e+aw==",r=e+"skin/frontend/schrack/default/schrackdesign/Public/Javascript/scandit/browser/index.min.js",i={accessCamera:!(n={engineLocation:e+"skin/frontend/schrack/default/schrackdesign/Public/Javascript/scandit"}),visible:!1,playSoundOnScan:!0,vibrateOnScan:!0},c=!(l={enabledSymbologies:["ean13","qr","code128","code39"],codeDuplicateFilter:1e3,searchArea:{x:.05,y:.2,width:.9,height:.6}}),null!=s&&(i_hintText=s),u=function(){console.log("Start of onReadyFunction()"),null!=a&&(Array.isArray(a)?a.forEach(function(e){jQuery("#"+e).show()}):jQuery("#"+a).show()),null!=i_afterInitOrigin&&(i_barcodePicker.reassignOriginElement(document.getElementById(i_afterInitOrigin)),i_afterInitOrigin=null),null!=i_afterInitStartFunc&&(i_afterInitStartFunc(),i_afterInitStartFunc=null),i_initDone=!0},console.log("Starting load scandit"),i_loadScript(r,function(){console.log("Start of initAfterLoadingScandit()"),c||(c=!0,ScanditSDK.configure(o,n).then(function(){return i_originElementStack.unshift(t),ScanditSDK.BarcodePicker.create(document.getElementById(t),i).then(function(e){(i_barcodePicker=e).applyScanSettings(new ScanditSDK.ScanSettings(l)),i_barcodePicker.setVideoFit("cover"),i_barcodePicker.setGuiStyle("viewfinder"),i_barcodePicker.setCameraSwitcherEnabled(!1),i_barcodePicker.on("scanError",function(e){console.error(e.message)}),i_barcodePicker.on("ready",u)}).catch(function(e){alert(e)})}))}))}function openPopupAndScan(e,a){null!=i_barcodePicker&&(jQuery("#"+e).modal(),i_showSomethingAndScan(a))}function showElementAndScan(e,a){null!=i_barcodePicker&&(jQuery("#"+e).show(),i_showSomethingAndScan(a))}function showAndStartScan(e){null!=i_barcodePicker&&i_showSomethingAndScan(e)}function stopScan(){null!=i_barcodePicker&&(i_initDone?(console.log("stopping Scan..."),i_barcodePicker.setVisible(!1),i_barcodePicker.pauseScanning(!0),null!=i_hintText&&jQuery("#ScanHintText").remove()):i_afterInitStartFunc=null)}function pauseScan(){null!=i_barcodePicker&&i_initDone&&i_barcodePicker.pauseScanning(!1)}function resumeScan(){null!=i_barcodePicker&&i_initDone&&i_barcodePicker.resumeScanning()}function pushScannerOriginElement(e){null!=i_barcodePicker&&(i_originElementStack.unshift(e),i_initDone?i_barcodePicker.reassignOriginElement(document.getElementById(e)):i_afterInitOrigin=e)}function popScannerOriginElement(){null!=i_barcodePicker&&1<i_originElementStack.length&&(i_originElementStack.shift(),i_initDone?i_barcodePicker.reassignOriginElement(document.getElementById(i_originElementStack[0])):i_afterInitOrigin=null)}function i_loadScript(e,a){var t=document.getElementsByTagName("head")[0],r=document.createElement("script");r.type="text/javascript",r.src=e,r.onreadystatechange=a,r.onload=a,t.appendChild(r)}function i_showSomethingAndScan(e){i_initDone?i_scan(e):(i_setScannerOverlayLoader(),i_afterInitStartFunc=function(){i_unsetScannerOverlayLoader(),i_scan(e)})}function i_scan(e){null!=i_barcodePicker&&(console.log("starting Scan..."),i_barcodePicker.on("scan",e),i_barcodePicker.setVisible(!0),i_barcodePicker.accessCamera(),i_barcodePicker.resumeScanning(),null!=i_hintText&&jQuery('<div id="ScanHintText" style="position: absolute; left: 2%; top: 2%; z-index: 3000; color:#FFFFFF; font-size:14px;" onclick="switchToEditMode()">'+i_hintText+"</div>").insertAfter(".scandit-logo"),jQuery(".scandit-torch-toggle").each(function(){this.style.setProperty("top","auto","important"),this.style.setProperty("right","auto","important"),this.style.setProperty("bottom","2%","important"),this.style.setProperty("left","2%","important")}))}function i_setScannerOverlayLoader(){var e;null==i_storedOverlayElementCss&&(e="#"+i_originElementStack[0],jQuery('<div id="scannerOverlayLoaderXYZ" style="width:100%; height:300px; background: url('+i_imageOverlayLoaderUrl+') no-repeat center center; z-index: 1000;"/>
1').insertBefore(e),i_storedOverlayElementCss=!0)}function i_unsetScannerOverlayLoader(){null!=i_storedOverlayElementCss&&(jQuery("#scannerOverlayLoaderXYZ").remove(),i_storedOverlayElementCss=null)} 2//# sourceMappingURL=commonPacked.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.