var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(a,b,c){a instanceof String&&(a=String(a));for(var e=a.length,d=0;d<e;d++){var g=a[d];if(b.call(c,g,d,a))return{i:d,v:g}}return{i:-1,v:void 0}};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;
$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)};$jscomp.getGlobal=function(a){return"undefined"!=typeof window&&window===a?a:"undefined"!=typeof global&&null!=global?global:a};$jscomp.global=$jscomp.getGlobal(this);
$jscomp.polyfill=function(a,b,c,e){if(b){c=$jscomp.global;a=a.split(".");for(e=0;e<a.length-1;e++){var d=a[e];d in c||(c[d]={});c=c[d]}a=a[a.length-1];e=c[a];b=b(e);b!=e&&null!=b&&$jscomp.defineProperty(c,a,{configurable:!0,writable:!0,value:b})}};$jscomp.polyfill("Array.prototype.find",function(a){return a?a:function(a,c){return $jscomp.findInternal(this,a,c).v}},"es6","es3");$jscomp.polyfill("Object.is",function(a){return a?a:function(a,c){return a===c?0!==a||1/a===1/c:a!==a&&c!==c}},"es6","es3");
$jscomp.polyfill("Array.prototype.includes",function(a){return a?a:function(a,c){var b=this;b instanceof String&&(b=String(b));var d=b.length;c=c||0;for(0>c&&(c=Math.max(c+d,0));c<d;c++){var g=b[c];if(g===a||Object.is(g,a))return!0}return!1}},"es7","es3");
$jscomp.checkStringArgs=function(a,b,c){if(null==a)throw new TypeError("The 'this' value for String.prototype."+c+" must not be null or undefined");if(b instanceof RegExp)throw new TypeError("First argument to String.prototype."+c+" must not be a regular expression");return a+""};$jscomp.polyfill("String.prototype.includes",function(a){return a?a:function(a,c){return-1!==$jscomp.checkStringArgs(this,a,"includes").indexOf(a,c||0)}},"es6","es3");
var kueperTransmitter=kueperTransmitter||{dvBox:{cLang:"de",de:"/datenschutz/ /datenschutzerklaerung/ /impressum/ /privacy-policy/ /en/privacy/ /data-privacy/ /privacy/ /imprint/".split(" ")}};window.dataLayer=window.dataLayer||[];function gtag(){window.dataLayer.push(arguments)}gtag("consent","default",{ad_storage:"denied",analytics_storage:"denied",ad_user_data:"denied",ad_personalization:"denied",wait_for_update:500});
function sendEvent(a,b,c,e,d){window.dataLayer=window.dataLayer||[];window.dataLayer.push({event:"JS-Event",eventCategory:a,eventAction:b,eventLabel:c,eventValue:void 0===d?0:d,eventName:void 0===e?"":e})}
document.addEventListener("DOMContentLoaded",function(a){wt_update_consent();document.getElementById("wt-dv-box-allow").addEventListener("click",function(){wt_resetCookieSettings("btn-allow")});jQuery("div.wt-acc-title input[type='checkbox']").click(function(a){var b=a.currentTarget.checked;a=jQuery(a.target.parentElement).next();a=jQuery(a).find("div td input[type='checkbox']");b?a.each(function(){jQuery(this).prop("checked",!0)}):a.each(function(){jQuery(this).prop("checked",!1)})});document.getElementById("wt-dv-box-save").addEventListener("click",
function(){wt_resetCookieSettings("btn-save")});document.getElementById("wt-dv-box-disallow").addEventListener("click",function(){wt_resetCookieSettings("btn-disallow")});a=document.getElementsByClassName("wt-more-info");for(var b=0;b<a.length;b++)a[b].addEventListener("click",function(){jQuery(this).next().toggle("wt-c-info-inactive")});a=document.getElementsByClassName("wt-show-dv-box");for(b=0;b<a.length;b++)a[b].addEventListener("click",function(){document.getElementsByClassName("wt-dv-box-wrapper")[0].classList.remove("wt-dv-box-hide");
for(var a=document.getElementsByClassName("wt-acc-title"),b=0;b<a.length;b++)a[b].classList.remove("wt-acc-active"),a[b].classList.add("wt-acc-inactive");var d=wt_getCookieByName("wt-dv-settings");null!=d&&(d?jQuery(".wt-dv-box-wrapper form .wt-acc-panel").each(function(){var a=jQuery(this).find("input:checkbox").length,b=0;jQuery(this).find("input:checkbox").each(function(){-1!==d.indexOf(this.id+",")&&jQuery(this).prop("checked",!0);this.checked&&b++});a===b?jQuery(this).prev().find("input:checkbox").prop("checked",
!0):jQuery(this).prev().find("input:checkbox").prop("checked",!1)}):""===d&&(jQuery(".wt-dv-box-wrapper form .wt-acc-panel input:checkbox").each(function(){jQuery(this).prop("checked",!1)}),jQuery(".wt-dv-box-wrapper form .wt-acc-title input:checkbox").each(function(){jQuery(this).prop("checked",!1)})));document.getElementsByClassName("wt-dv-box-wrapper")[0].classList.remove("wt-dv-box-hide")});jQuery(".wt-dv-box-wrapper form .wt-acc-panel").click(function(){var a=jQuery(this).find("input:checkbox").length,
b=0;jQuery(this).find("input:checkbox").each(function(){this.checked&&b++});a===b?jQuery(this).prev().find("input:checkbox").prop("checked",!0):jQuery(this).prev().find("input:checkbox").prop("checked",!1)});a=document.getElementsByClassName("wt-acc-title");for(b=0;b<a.length;b++)a[b].addEventListener("click",function(a){"INPUT"!=a.target.tagName&&(this.classList.contains("wt-acc-active")?(this.classList.remove("wt-acc-active"),this.classList.add("wt-acc-inactive")):(this.classList.remove("wt-acc-inactive"),
this.classList.add("wt-acc-active")))});null===wt_getCookieByName("wt-dv-settings")&&-1===kueperTransmitter.dvBox[kueperTransmitter.dvBox.cLang].indexOf(window.location.pathname)&&(document.getElementsByClassName("wt-dv-box-wrapper")[0].classList.remove("wt-dv-box-hide"),document.body.style.height="100vh");document.body.classList.contains("single-product")&&(a=document.querySelector("main .product"),b=null,a&&a.id&&(a=a.id.split("-"),b=1<a.length?a[1]:null),b&&jQuery.ajax({url:ajaxurl,type:"POST",
data:{action:"get_tax_class",product_id:b},success:function(a){console.log("Success"+JSON.stringify(a));"differenzbesteuert"==a.data.tax_class?(jQuery('<div class="wt-diff-text">'+a.data.text+"</div>").appendTo(".wt-diff-field"),console.log("Final")):console.log("Tax-Class:",a.tax_class||"Nicht differenzbesteuert")},error:function(a,b,d){console.error("AJAX-Fehler:",d)}}))});window.addEventListener("load",function(a){a=document.querySelectorAll(".wt-diff-text");if(1<a.length)for(var b=1;b<a.length;b++)a[b].remove()});
function wt_update_consent(){var a="denied",b="denied",c=wt_getCookieByName("wt-dv-settings");null!==c&&(c.includes("001,")&&(b="granted"),c.includes("002,")&&(a="granted"),gtag("consent","update",{ad_user_data:a,ad_personalization:a,ad_storage:a,analytics_storage:b}))}
function wt_resetCookieSettings(a,b){b=void 0===b?!1:b;var c="",e=90;switch(a){case "btn-allow":e=365;b=document.forms["wt-dv-settings"].elements;for(a=0;a<b.length;a++)""!==b[a].name&&(c+=b[a].name+",");break;case "btn-save":e=365;b=document.forms["wt-dv-settings"].elements;for(var d=0;d<b.length;d++)!0!==b[d].checked&&!0!==a||""===b[d].name||(c+=b[d].name+",");break;case "btn-disallow":e=90;c="";break;case "add-value":c=wt_getCookieByName("wt-dv-settings"),c=null===c?b+",":c+(b+",")}wt_setCookie(c,
e);wt_update_consent();document.getElementsByClassName("wt-dv-box-wrapper")[0].classList.add("wt-dv-box-hide");document.body.style.height="";window.dataLayer=window.dataLayer||[];dataLayer.push({event:"wt-cb-state-changed"})}function wt_acceptCookieId(a,b){b=void 0===b?!1:b;wt_resetCookieSettings("add-value",a);b&&location.reload()}
function wt_setCookie(a,b){var c="";b&&(c=new Date,c.setTime(c.getTime()+864E5*b),c="; expires="+c.toUTCString());document.cookie="wt-dv-settings="+(a||"")+c+"; path=/"}function wt_getCookieByName(a){return(a=document.cookie.match("(^|;) ?"+a+"=([^;]*)(;|$)"))?a[2]:null}
document.addEventListener("DOMContentLoaded",function(){function a(){var a=!!document.getElementById("shipping_method"),e=!1;b.forEach(function(b){document.querySelectorAll(b).forEach(function(b){var c=!a;b.classList.toggle("d-none",c);c&&(e=!0)})});var d=document.querySelector(".checkout-hint");d&&d.classList.toggle("d-none",!e)}var b=["#place_order",".ppc-button-wrapper"];a();(new MutationObserver(a)).observe(document.body,{childList:!0,subtree:!0})});
jQuery(document).ready(function(a){a(".product-thumbnails .owl-item").on("click",function(){var b=a(this).index();a(".product-image-slider").trigger("to.owl.carousel",[b,300])})});jQuery(document).ready(function(a){a(".woocommerce-table__line-item").each(function(){a(this).find(".product-name a").text().trim().includes("Unknown Product")&&a(this).addClass("d-none")})});
jQuery(document).ready(function(a){a("address").each(function(){var b=a(this).html();b=b.replace(/\bNULL\b/g,"");a(this).html(b)});a(".woocommerce-table--order-details tfoot tr").each(function(){var b=!1;a(this).find("td").each(function(){"NULL"===a(this).text().trim()&&(b=!0)});b&&a(this).addClass("d-none")});jQuery(document.body).on("added_to_cart",function(a,c,e,d){setTimeout(function(){jQuery.ajax({url:ajaxurl,type:"POST",data:{action:"get_cart_total"},success:function(a){if(a.success&&a.data){if(a.data.header_cart_html){var b=
jQuery("#mini-cart .cart-subtotal");b.length&&b.replaceWith(a.data.header_cart_html)}a.data.offcanvas_total_html&&(b=jQuery(".widget_shopping_cart .woocommerce-mini-cart__total"),b.length&&b.replaceWith(a.data.offcanvas_total_html));b=0;a.data.cart_subtotal&&(a=a.data.cart_subtotal.replace(/[^0-9,.]/g,"").replace(",","."),b=parseFloat(a)||0);window.dataLayer=window.dataLayer||[];window.dataLayer.push({event:"add_to_cart",ecommerce:{value:b,currency:"EUR"}})}},error:function(){var a=0,b=jQuery("#mini-cart .cart-price").text()||
jQuery(".widget_shopping_cart .woocommerce-mini-cart__total .woocommerce-Price-amount.amount").text();b&&(b=parseFloat(b.replace(/[^0-9,.]/g,"").replace(",",".")),isNaN(b)||(a=b));window.dataLayer=window.dataLayer||[];window.dataLayer.push({event:"add_to_cart",ecommerce:{value:a,currency:"EUR"}})}})},400)})});
(function(a){function b(a){var b=null,c=a.closest(".porto-tb-item");c.length&&(c.attr("class")||"").split(/\s+/).forEach(function(a){0===a.indexOf("post-")&&(b=a.replace("post-",""))});if(!b){var f=a.find("a.add_to_cart_button[data-product_id]").first();!f.length&&c.length&&(f=c.find("a.add_to_cart_button[data-product_id]").first());f.length&&(c=f.attr("data-product_id")||f.data("product_id"))&&(b=String(c))}b||(a=a.closest("[data-product_id]"),a.length&&(a=a.attr("data-product_id")||a.data("product_id"))&&
(b=String(a)));return b}function c(c){g=!0;(c&&c.jquery&&c.length?c:a(document)).find(".porto-tb-featured-image").each(function(){var c=a(this);c.children(".product-tile-labels").remove();c.removeClass("has-custom-labels");c.addClass("labels-processed");var f=b(c),d="undefined"!==typeof productLabels&&productLabels.map?productLabels.map:null;if(f=d&&f?d[f]||d[String(f)]:null)c.prepend(f),c.addClass("has-custom-labels")});g=!1}function e(){var b=a(".elementor-widget-wc-archive-products .products:not(.is-shortcode)").first();
if(b.length)return b;b=a(".archive-products .products:not(.is-shortcode)").first();if(b.length)return b;b=a(".wcfmmp-store-page-wrap .products:not(.is-shortcode)").first();if(b.length)return b;b=a("#primary .porto-posts-grid .posts-wrap.products-container").first();if(b.length)return b;b=a("#primary .products").first();return b.length?b:a(document)}function d(f){f&&f.length||(f=a(document));var d=[];f.find(".porto-tb-featured-image").each(function(){var c=b(a(this));c&&-1===d.indexOf(c)&&d.push(c)});
d.length||f.get(0)===document||(f=a(document),f.find(".porto-tb-featured-image").each(function(){var c=b(a(this));c&&-1===d.indexOf(c)&&d.push(c)}));d.length&&"undefined"!==typeof productLabels&&productLabels.ajax_url&&productLabels.nonce?a.post(productLabels.ajax_url,{action:"premo_product_tile_labels_map",nonce:productLabels.nonce,product_ids:d.join(",")}).done(function(b){b&&b.success&&b.data&&b.data.map&&(productLabels.map=productLabels.map||{},a.extend(productLabels.map,b.data.map));c(f)}).fail(function(a,
b,d){c(f)}):c(f)}var g=!1,h=null;window.premo_apply_product_tile_labels=c;a(document).ready(function(){c(a(document));var d="undefined"!==typeof productLabels&&productLabels.map?productLabels.map:{},e=[];a(document).find(".porto-tb-featured-image").each(function(){var c=b(a(this));!c||d[c]||d[String(c)]||-1!==e.indexOf(c)||e.push(c)});e.length&&"undefined"!==typeof productLabels&&productLabels.ajax_url&&productLabels.nonce&&a.post(productLabels.ajax_url,{action:"premo_product_tile_labels_map",nonce:productLabels.nonce,
product_ids:e.join(",")}).done(function(b){b&&b.success&&b.data&&b.data.map&&(productLabels.map=productLabels.map||{},a.extend(productLabels.map,b.data.map),c(a(document)))})});a(document.body).on("premo_shop_filter_applied",function(){var b=a();window.premo_shop_filter&&"function"===typeof window.premo_shop_filter.get_external_products_container&&(b=window.premo_shop_filter.get_external_products_container());b.length||(b=a(document));d(b)});a(document.body).on("porto_init_countdown",function(a,b){b&&
b.jquery&&b.length&&(a=b.find(".porto-tb-featured-image").length?b:e(),d(a))});a(document.body).on("porto_load_posts_end",function(b,c){b=c&&c.jquery&&c.length?c:a();b.length||(b=e());d(b)});a(window).on("porto_posts_updated",function(){var a=e();d(a)});a(document).ajaxComplete(function(a,b,c){c&&c.data&&"string"===typeof c.data&&(a=-1!==c.data.indexOf("portoajax"),c=-1!==c.data.indexOf("premo_filter_products"),(a||c)&&setTimeout(function(){var a=e();d(a)},150))});if("undefined"!==typeof MutationObserver){var k=
new MutationObserver(function(){g||(clearTimeout(h),h=setTimeout(function(){g||a(".porto-tb-featured-image:not(.labels-processed)").length&&d(a(document))},300))});a(document).ready(function(){var a=document.querySelector("#primary")||document.querySelector(".main-content")||document.querySelector(".archive-products")||document.body;k.observe(a,{childList:!0,subtree:!0})})}})(jQuery);