// source --> https://smbdesign.de/wp-content/plugins/b2b-market/assets/public/bm-update-price.min.js?ver=2.1.11 
jQuery(function(e){var t=".qty",r=!1,i=!1,o=!1,c="",n="",a=null,p=null;if(e(".wooco_component_product_qty_input").length||e(".woosb-bundled").length)var t="form.cart .qty";if(e(".custom-qty").length>0&&(t=".custom-qty"),e(".custom-qty").length>0&&(t=".custom-qty"),e(".tc").length>0&&(t=".tc"),e(document.body).on("found_variation","form.variations_form",function(e,t){a=t.variation_id}),e(".single_variation_wrap").on("hide_variation",function(){a=null}),e(document.body).on("reset_data","form.variations_form",function(){a=null}),e(".single_variation_wrap").length){if(e(".b2b-shortcode-product-group-price").length){var l=e("#current_id").data("id");c=e('.b2b-shortcode-product-group-price[data-product_id="'+l+'"] > .price').html()}if(e(".summary > .b2b-rrp").length&&(n=e(".summary > .b2b-rrp").prop("outerHTML")),e(".single_variation_wrap").on("show_variation",function(r,i){"undefined"!=typeof wc_gzd_add_to_cart_variation_params&&e(".woocommerce-variation-price").length&&e(".variations_form .woocommerce-variation-price").hide(),e(t).change()}),e(".single_variation_wrap").on("hide_variation",function(t,r){if(""!=c){var i=e("#current_id").data("id");e('.b2b-shortcode-product-group-price[data-product_id="'+i+'"] > .price').html(c)}e(".summary > .b2b-rrp").length&&(""!==n?e(".summary > .b2b-rrp").replaceWith(n):e(".summary > .b2b-rrp").remove())}),e(".bm-price-totals").length){var m=new MutationObserver(function(t){t.forEach(function(t){t.target.classList.contains("disabled")?e(".bm-price-totals").hide():W()&&e(".bm-price-totals").show()})}),u=e(".single_variation_wrap button[type=submit]")[0];m.observe(u,{attributes:!0})}}e(".wcpa_form_outer").length&&e(".wcpa_form_outer input.wcpa_has_price").on("change",function(r){e(t).change()}),e.fn.updatePrice=function(t,r=""){e(this).find(".price > ins").length?""!=r?e(this).find(".price:not("+r+") ins > .amount").replaceWith(t.price):e(".summary-container .price").length?e(this).find(".price").replaceWith(t.price):e(this).find(".price > ins > .amount").replaceWith(t.price):""!=r?e(".woocommerce-variation").length?e(this).find(".woocommerce-variation .price:not("+r+")").length?e(this).find(".woocommerce-variation .price:not("+r+") > .amount").replaceWith(t.price):e(this).find(".price:not("+r+")").empty().html(t.price):e(this).find(".price:not("+r+") > .amount").replaceWith(t.price):e(this).find(".price > .amount").replaceWith(t.price),e(this).find(".price-per-unit .amount").length&&""!=t.ppu?e(this).find(".price").hasClass("wc-gzd-additional-info")||(e(".woocommerce-variation-price").length?e(this).find(".woocommerce-variation-price .price-per-unit .amount").replaceWith(t.ppu):e(this).find(".price-per-unit .amount").replaceWith(t.ppu)):e(this).find(".price").hasClass("wc-gzd-additional-info")||(e(".woocommerce-variation-price").length?e(this).find(".woocommerce-variation-price .price-per-unit .amount").empty():e(this).find(".price-per-unit .amount").empty())};let d="."+bm_update_price.bulk_price_table_class,s=bm_update_price.bulk_price_table_pick_min_max_qty;"min"!=s&&"max"!=s&&(s="min");let h=null,g=bm_update_price.bulk_price_table_bg_color,w=bm_update_price.bulk_price_table_font_color,f=null;function b(){showTaxVar=Cookies.get("woocommerce_show_tax"),css_elector="product-tax-off","true"==showTaxVar&&(css_elector="product-tax-on"),d="."+bm_update_price.bulk_price_table_class+"."+css_elector}function v(){table_rows=e("."+bm_update_price.bulk_price_table_class+" tbody > tr"),e(table_rows).unbind("click")}function y(){e(".single_variation_wrap").length&&e(".single_variation_wrap").on("show_variation",function(t,r){showTaxVar=Cookies.get("woocommerce_show_tax"),css_elector="product-tax-off","true"==showTaxVar&&(css_elector="product-tax-on"),e(".woocommerce-variation-bulk-prices table"+(d="."+bm_update_price.bulk_price_table_class+":not(."+css_elector+")")).hide(),v(),b()})}function W(){let e=!0;for(let t of["#tm-epo-totals"])if(jQuery(t).length){e=!1;break}return e}function x(){let t=parseInt(e(f).val()),i=[];e.each(e(h),function(o,c){let n=parseInt(e(this).find("td.quantity_from").text().replace(bm_update_price.wc_thousand_sep,"")),a=parseInt(e(this).find("td.quantity_to").text().replace(bm_update_price.wc_thousand_sep,""));n<=t&&(a>=t||isNaN(a))?n<=t&&isNaN(a)?e(this).next().find("td").length?(isNaN(a)||(a=e(this).next().find("td.quantity_from").text()),n<=t&&a>t||n<=t&&isNaN(a)?(i.push(c),r=e(c).index()):e(c).css({"background-color":"",color:""})):(i.push(c),r=e(c).index()):(e(c).css({"background-color":g,color:w}),r=e(c).index()):(e(c).css({"background-color":"",color:""}),r=!1)}),i.length>0&&e(i[i.length-1]).css({"background-color":g,color:w})}function $(){e(d).length&&(h=e(d+" tbody > tr"),f=e("form.cart input.qty").first(),i=e(f).val(),!1===o&&(o=i),e(h).css({cursor:"pointer"}),e(h).off("click"),e(h).on("click",function(){let t=parseInt(e(this).find("td.quantity_from").text().replace(bm_update_price.wc_thousand_sep,"")),c=parseInt(e(this).find("td.quantity_to").text().replace(bm_update_price.wc_thousand_sep,""));t<o&&(t=o),r!==e(this).index()?(e(h).css({"background-color":"",color:""}),e(this).css({"background-color":g,color:w}),e(f).val(isNaN(c)||"min"==s?t:c),r=e(this).index()):(e(h).css({"background-color":"",color:""}),e(f).val(i),r=!1),e(f).change()}),x())}function z(){if(e(".single_variation_wrap").length){if(e(".single-product").length)var t=e(".single-product");else if(e(".woocommerce.product-content .product").length)var t=e(".woocommerce.product-content .product");e(".legacy-itemprop-offers"),t.on("show_variation",".variations_form",function(){e(".woocommerce-variation-bulk-prices").length&&$()})}}if(void 0!==Cookies.get("woocommerce_show_tax")&&null!==Cookies.get("woocommerce_show_tax")&&e("#wcvat-toggle").length&&(b(),e("#wcvat-toggle.wcvat-toggle-product").on("click",function(t){setTimeout(function(){v(),b(),y(),$(),e(f).change()},100)}),y()),$(),z(),e("#atomion-quick-view-modal").length){var k,u=e("#atomion-quick-view-modal")[0];let q=!1;new MutationObserver(function(t){t.forEach(function(t){"block"==e(u).css("display")?null!==t.addedNodes&&e("form.cart input.qty").length&&!q&&($(),z(),_(),q=!0,e("form.cart input.qty").change()):q=!1})}).observe(u,{attributes:!0,childList:!0,characterData:!0})}function _(){if(e(".wpb_row form.cart.dynamic-button").length){let r=e(t).val();r>0&&e(".wpb_row form.cart.dynamic-button button[name=add-to-cart]").length&&e(".wpb_row form.cart.dynamic-button button[name=add-to-cart]").attr("data-quantity",r)}e("select.wc-pao-addon-select").length&&e("select.wc-pao-addon-select").on("change",function(){e(t).change()});var i,o=250;let c,n=(i=T,(...e)=>(c||((c={}).promise=new Promise((e,t)=>{c.resolve=e,c.reject=t})),clearTimeout(c.timeout),c.latestArgs=e,c.timeout=setTimeout(()=>{let e=c;c=void 0;try{e.resolve(i(...e.latestArgs))}catch(t){e.reject(t)}},250),c.promise));e(t).on("change",n)}function P(){return e(".variation_id").length>0}function T(){var r=e("#current_id").data("id"),i=e(t).val();if(P()&&(r=a),!r||"woocommerce-grouped-product-list-item__quantity"==e(t).parent().parent().attr("class"))return;var o=!1,c=!0,n=!0;e(".b2b-shortcode-product-group-price").length&&(o=!0,c="yes"==e(".b2b-shortcode-product-group-price").data("show_sale"),n="yes"==e(".b2b-shortcode-product-group-price").data("show_rrp"));let l=0,m=!1;if(e("select.wc-pao-addon-select").length&&""!=e("select.wc-pao-addon-select").val()){let u=e("select.wc-pao-addon-select option[value="+e("select.wc-pao-addon-select").val()+"]");l=e(u).attr("data-price"),m=e(u).attr("data-price-type")}p?.abort(),p=e.ajax({type:"POST",url:bm_update_price.ajax_url,data:{action:"update_price",id:r,qty:i,shortcode:o,shortcode_show_sale:c,shortcode_show_rrp:n,nonce:bm_update_price.nonce,addon_price:l,addon_price_type:m},dataType:"json",error:function(e){"abort"!==e.statusText&&(p=null)},success:function(r){if(p=null,0!=r){if(r.price_html){var i=e("#current_id").data("id");return e('.b2b-shortcode-product-group-price[data-product_id="'+i+'"]').html(r.price_html),r.price_value>0&&e('.b2b-shortcode-product-group-price[data-product_id="'+i+'"]').updatePrice(r),!1}let o=r.price_value;if(void 0!==o&&parseFloat(o.replace(",","."))>0){if(e(d).length&&x(),void 0!==e.epoAPI&&e.isFunction(e.epoAPI.addFilter)&&void 0!==r.tm_price&&(e.epoAPI.addFilter("tc_adjust_product_total_price_without_options",function(i){return r.tm_price*e(t).val()},10,1),e(window).trigger("tm-do-epo-update")),e(".wcpa_price_summary").length){e(".single_variation_wrap").length&&e(".single_variation_wrap .woocommerce-variation-price .price > .amount").replaceWith(r.price),e(".wcpa_price_summary .wcpa_product_total .wcpa_price").empty().html(r.price);let c=0;if(e(".wcpa_price_summary .wcpa_options_total .price_value").length)c=parseFloat(e(".wcpa_price_summary .wcpa_options_total .price_value").text().replace(",","."));else if(e(".wcpa_form_outer .wcpa_form_item").length){let n=e(".wcpa_form_outer .wcpa_form_item input.wcpa_has_price:checked");e.each(n,function(t,r){let i=JSON.parse(e(r).attr("data-price"));c+=parseFloat(i.value)})}let a=e(t).val(),l=r.price_value,m=((l+c)*a).toFixed(2);if(e(".wcpa_price_summary .wcpa_total .price_value").html(m.toString().replace(".",",")),e(".bm-price-totals").length){var u=e(".bm-price-totals bdi").html().replace(/([0-9]+[,|.][0-9]+)/g,m).replace(".",",");e(".bm-price-totals bdi").html(u)}e(".wcpa_validate_field").length&&e(".wcpa_validate_field input").on("change",function(){let t=0;if(e(".wcpa_price_summary .wcpa_options_total .price_value").length)t=parseFloat(e(".wcpa_price_summary .wcpa_options_total .price_value").text().replace(",","."));else if(e(".wcpa_form_outer .wcpa_form_item").length){let r=e(".wcpa_form_outer .wcpa_form_item input.wcpa_has_price:checked");e.each(r,function(r,i){let o=JSON.parse(e(i).attr("data-price"));t+=parseFloat(o.value)})}if(m=((l+t)*a).toFixed(2),e(".wcpa_price_summary .wcpa_total .price_value").html(m.toString().replace(".",",")),e(".bm-price-totals").length){var i=e(".bm-price-totals bdi").html().replace(/([0-9]+[,|.][0-9]+)/g,m).replace(".",",");e(".bm-price-totals bdi").html(i)}})}if(e(".bundled_product").length>0&&e(".bundled_product").find(".variations"))return!1;if(r.price_net,r.price_gross,e(".single_variation_wrap").length)e((y="gm_sepcial"==bm_update_price.german_market_price_variable_products?"#german-market-variation-price ":".woocommerce-variation-price")+" > .price .bm-net").length&&e(y+" > .price .bm-net > .amount").replaceWith(r.price_net),e(y+" > .price .bm-gross").length&&e(y+" > .price .bm-gross > .amount").replaceWith(r.price_gross);else{let s=".summary .price .bm-net",h=".summary .price .bm-gross",g=!1;if(e(".summary > .legacy-itemprop-offers").length,e(s).length&&(e(s+" > .amount").replaceWith(r.price_net),g=!0),e(h).length&&(e(h+" > .amount").replaceWith(r.price_gross),g=!0),g)return}if(e(".single_variation_wrap").length){if(void 0!==Cookies.get("woocommerce_show_tax")&&null!==Cookies.get("woocommerce_show_tax")&&e("#wcvat-toggle").length){Cookies.get("woocommerce_show_tax");let w=e("#wcvat-toggle"),f="product-tax-"+(e(w).hasClass("on")?"on":"off");if(e(".woocommerce-variation-price .price").length){let b=e(".woocommerce-variation-price .price .amount span.woocommerce-Price-currencySymbol").prop("outerHTML"),v=r.price_value+"&nbsp;"+b;e(".woocommerce-variation-price .price del").length?e(".woocommerce-variation-price .price ins > .amount."+f+" bdi").empty().html(v):e(".woocommerce-variation-price .price > .amount."+f+" bdi").empty().html(v)}}else{void 0!==r.rrp?e(".summary > .b2b-rrp").length?e(".summary > .b2b-rrp").replaceWith(r.rrp):e(".summary > .price:not(.wc-gzd-additional-info)").before(r.rrp):e(".summary > .price.wc-gzd-additional-info").length&&e(".summary > .b2b-rrp").length&&e(".summary > .b2b-rrp").remove();var y=".woocommerce-variation-price";if("gm_sepcial"==bm_update_price.german_market_price_variable_products&&(y="#german-market-variation-price"),".summary > .price"==bm_update_price.theme_css_selector_price_element&&e(bm_update_price.theme_css_selector_price_element).length&&(!e(".woocommerce-variation-price > .price").length||"none"==e(".woocommerce-variation-price").css("display"))&&(y=".summary"),e(".summary > .summary-inner > .price").length&&(y=".summary > .summary-inner"),e(".cornerstone-builder.summary > .x-div > .x-div > .price").length&&(y=".cornerstone-builder.summary > .x-div > .x-div "),e(".wpb_wrapper .product_field.price").length&&(e((y=".wpb_wrapper")+" > .price:not(.wc-gzd-additional-info) del").length?(e(y+" > .price:not(.wc-gzd-additional-info) > div:not(.b2b-rrp) ins > .amount").replaceWith(r.price),e(y+" > .price:not(.wc-gzd-additional-info) > ins").length&&e(y+" > .price:not(.wc-gzd-additional-info) > ins > .amount").replaceWith(r.price)):(e(y+" > .price:not(.wc-gzd-additional-info) > div:not(.b2b-rrp) .amount").replaceWith(r.price),e(y+" > .price:not(.wc-gzd-additional-info) > .amount").length&&e(y+" > .price:not(.wc-gzd-additional-info) > .amount").replaceWith(r.price))),e(y+" > .price").length){if(e(y+" > .price:not(.wc-gzd-additional-info) del").length){if(/<del(\s.+)?>/.test(r.price)){let $="",z="",k="";e(y+" > .price:not(.wc-gzd-additional-info) .b2b-rrp").length&&(z=e(y+" > .price:not(.wc-gzd-additional-info) .b2b-rrp").prop("outerHTML")+"<br>"),e(y+" > .price:not(.wc-gzd-additional-info) .wgm-sale-label").length&&($=e(y+" > .price:not(.wc-gzd-additional-info) .wgm-sale-label").prop("outerHTML")+" "),e(y+" > .price:not(.wc-gzd-additional-info) .woocommerce-price-suffix").length&&(k=e(y+" > .price:not(.wc-gzd-additional-info) .woocommerce-price-suffix").prop("outerHTML")),e(y+" > .price:not(.wc-gzd-additional-info)").html(z+$+r.price+k)}else e(y+" > .price:not(.wc-gzd-additional-info) .wc-gzd-sale-price-label").length&&e(y+" > .price:not(.wc-gzd-additional-info) .wc-gzd-sale-price-label").remove(),e(y+" > .price:not(.wc-gzd-additional-info) del").length&&e(y+" > .price:not(.wc-gzd-additional-info) del").remove(),e(y+" > .price:not(.wc-gzd-additional-info) ins").length?e(y+" > .price:not(.wc-gzd-additional-info) ins").replaceWith(r.price):e(y+" > .price:not(.wc-gzd-additional-info) .amount").replaceWith(r.price)}else e(y+" > .price:not(.wc-gzd-additional-info) > .amount").length>1?r.price_net:e(y+" > .price > .amount").replaceWith(r.price);e(y+" > .price-per-unit").length&&(void 0!==r.ppu?(e(y+" > .price-per-unit .amount").replaceWith(r.ppu),e(y+" > .price-per-unit").show()):e(y+" > .price-per-unit").hide())}".summary > .price"!=bm_update_price.theme_css_selector_price_element&&e(bm_update_price.theme_css_selector_price_element).length&&(e(bm_update_price.theme_css_selector_price_element+" del").length?/<del(\s.+)?>/.test(r.price)?e(bm_update_price.theme_css_selector_price_element+" > .amount").length>1?e(bm_update_price.theme_css_selector_price_element+":not(.wc-gzd-additional-info)").html(r.price):e(bm_update_price.theme_css_selector_price_element+" > .amount").replaceWith(r.price):e(bm_update_price.theme_css_selector_price_element+" ins > .amount").replaceWith(r.price):e(bm_update_price.theme_css_selector_price_element+" > .amount").length>1?e(bm_update_price.theme_css_selector_price_element+":not(.wc-gzd-additional-info)").html(r.price):e(bm_update_price.theme_css_selector_price_element+" > .amount").replaceWith(r.price),e(bm_update_price.theme_css_selector_price_per_unit_element).length&&e(bm_update_price.theme_css_selector_price_per_unit_element).replaceWith(r.ppu))}}else if(void 0!==Cookies.get("woocommerce_show_tax")&&null!==Cookies.get("woocommerce_show_tax")&&e("#wcvat-toggle").length){Cookies.get("woocommerce_show_tax");let q=e("#wcvat-toggle"),_="product-tax-"+(e(q).hasClass("on")?"on":"off");if(e(".summary .price").length){let P=e(".summary .price .amount span.woocommerce-Price-currencySymbol").prop("outerHTML"),T=r.price_value+"&nbsp;"+P;e(".summary .price del").length?e(".summary .price ins > .amount."+_+" bdi").empty().html(T):e(".summary .price > .amount."+_+" bdi").empty().html(T)}}else{if(e(".summary .b2b-shortcode-product-price-additional-content .price-per-unit").length&&(r.ppu,e(".summary .b2b-shortcode-product-price-additional-content .price-per-unit .amount").replaceWith(r.ppu)),e(".summary .b2b-shortcode-product-price > .price").length)e(".summary .b2b-shortcode-product-price > .price del").length?e(".summary .b2b-shortcode-product-price > .price > ins > .amount").replaceWith(r.price):e(".summary .b2b-shortcode-product-price > .price > .amount").replaceWith(r.price);else if(e(".summary > .legacy-itemprop-offers > .price").length)e(".summary > .legacy-itemprop-offers").updatePrice(r,".wc-gzd-additional-info");else if(e(bm_update_price.theme_css_selector_price_element).length)e((y=bm_update_price.theme_css_selector_price_element)+" del").length?(e(y+" > div:not(.b2b-rrp) ins > .amount").replaceWith(r.price),e(y+" > ins").length&&e(y+" > ins > .amount").replaceWith(r.price)):(e(y+" > div:not(.b2b-rrp) .amount").replaceWith(r.price),e(y+" > .amount").length&&e(y+" > .amount").replaceWith(r.price));else if(e(".summary .price:not(.price-unit)").length){var y=".summary";e(y+" .price:not(.price-unit) del").length?(e(y+" .price:not(.price-unit) > div:not(.b2b-rrp) ins > .amount").replaceWith(r.price),e(y+" .price:not(.price-unit) > ins").length&&e(y+" .price:not(.price-unit) > ins > .amount").replaceWith(r.price)):(e(y+" .price:not(.price-unit) > div:not(.b2b-rrp) .amount").replaceWith(r.price),e(y+" .price:not(.price-unit) > .amount").length&&e(y+" .price:not(.price-unit):not(.tc-price) > .amount").replaceWith(r.price))}else if(e(".summary > .price:not(.price-unit)").length){var y=".summary";e(y+" > .price:not(.price-unit) del").length?(e(y+" > .price:not(.price-unit) > div:not(.b2b-rrp) ins > .amount").replaceWith(r.price),e(y+" > .price:not(.price-unit) > ins").length&&e(y+" > .price:not(.price-unit) > ins > .amount").replaceWith(r.price)):(e(y+" > .price:not(.price-unit) > div:not(.b2b-rrp) .amount").replaceWith(r.price),e(y+" > .price:not(.price-unit) > .amount").length&&e(y+" > .price:not(.price-unit) > .amount").replaceWith(r.price))}else e(".summary > .summary-inner > .price").length?e((y=".summary > .summary-inner")+" > .price del").length?(e(y+" > .price > div:not(.b2b-rrp) ins > .amount").replaceWith(r.price),e(y+" > .price > ins").length&&e(y+" > .price > ins > .amount").replaceWith(r.price)):(e(y+" > .price > div:not(.b2b-rrp) .amount").replaceWith(r.price),e(y+" > .price > .amount").length&&e(y+" > .price > .amount").replaceWith(r.price)):e(".cornerstone-builder.summary > .x-div > .x-div > .price").length&&(e((y=".cornerstone-builder.summary > .x-div > .x-div ")+" > .price del").length?(e(y+" > .price  > div:not(.b2b-rrp) ins > .amount").replaceWith(r.price),e(y+" > .price > ins").length&&e(y+" > .price > ins > .amount").replaceWith(r.price)):(e(y+" > .price  > div:not(.b2b-rrp) .amount").replaceWith(r.price),e(y+" > .price > .amount").length&&e(y+" > .price > .amount").replaceWith(r.price)));e(".wpb_wrapper .product_field.price").length&&(e((y=".wpb_wrapper")+" > .price:not(.wc-gzd-additional-info) del").length?(e(y+" > .price:not(.wc-gzd-additional-info) > div:not(.b2b-rrp) ins > .amount").replaceWith(r.price),e(y+" > .price:not(.wc-gzd-additional-info) > ins").length&&e(y+" > .price:not(.wc-gzd-additional-info) > ins > .amount").replaceWith(r.price)):(e(y+" > .price:not(.wc-gzd-additional-info) > div:not(.b2b-rrp) .amount").replaceWith(r.price),e(y+" > .price:not(.wc-gzd-additional-info) > .amount").length&&e(y+" > .price:not(.wc-gzd-additional-info) > .amount").replaceWith(r.price)))}e(".av-woo-purchase-button > .price").length&&(e(".av-woo-purchase-button > .price > .amount").replaceWith(r.price),e(".av-woo-purchase-button > .legacy-itemprop-offers .price-per-unit").length&&e(".av-woo-purchase-button > .legacy-itemprop-offers .price-per-unit .amount").replaceWith(r.ppu)),e(".module-product-price .price").length&&(e(".module-product-price").updatePrice(r),e(".woocommerce-variation-price").length&&e(".woocommerce-variation .price > .amount").replaceWith(r.price)),(e('.elementor-widget-wrap div[data-widget_type="woocommerce-product-price.default"]').length||e('.elementor-widget-wrap div[data-widget_type="text-editor.default"] .price').length)&&!e(".elementor-widget-wrap .single_variation_wrap").length&&(e('div[data-widget_type="woocommerce-product-price.default"] .elementor-widget-container .price').length&&e('div[data-widget_type="woocommerce-product-price.default"] .elementor-widget-container').updatePrice(r),e('div[data-widget_type="text-editor.default"] .elementor-widget-container .price').length&&e('div[data-widget_type="text-editor.default"] .elementor-widget-container').updatePrice(r)),e('div[data-widget_type="woocommerce-product-add-to-cart.default"] .elementor-widget-container .woocommerce-variation-price > .price').length?e('div[data-widget_type="woocommerce-product-add-to-cart.default"] .elementor-widget-container .woocommerce-variation-price > .price').html(r.price):e(".summary-container .price").length?(e(".summary-container").updatePrice(r),e(".summary-container .price-per-unit .amount").replaceWith(r.ppu)):e(".et_pb_module.et_pb_wc_price > .et_pb_module_inner > .price").length?e(".single_variation_wrap").length||(e(".et_pb_module.et_pb_wc_price > .et_pb_module_inner > .price del").length?e(".et_pb_module.et_pb_wc_price > .et_pb_module_inner > .price ins").empty().html(r.price):e(".et_pb_module.et_pb_wc_price > .et_pb_module_inner > .price > .amount").replaceWith(r.price)):e(".et_pb_module > .et_pb_module_inner > .price").length?(e(".et_pb_module > .et_pb_module_inner > .price del").length?e(".et_pb_module > .et_pb_module_inner > .price ins").empty().html(r.price):e(".et_pb_module > .et_pb_module_inner > .price .amount").replaceWith(r.price),e(".et_pb_module_inner .price-per-unit .amount").replaceWith(r.ppu),e(".woocommerce-variation-price").length&&e(".woocommerce-variation-price .price .amount").replaceWith(r.price)):e(".fusion-woo-price-tb .price").length?e(".fusion-woo-price-tb").updatePrice(r):e(".uncont .price").length&&0==e(".uncont .t-entry-text").length&&e(".uncont").updatePrice(r),0==e(".row-parent.product .uncont .price").length?e(".row-parent.product .uncont del").length?e(".row-parent.product .uncont ins > .amount").replaceWith(r.price):1==e(".row-parent.product .uncont div .amount").length&&e(".row-parent.product .uncont div .amount").replaceWith(r.price):e(".uk-grid-item-match .price").length?e(".uk-grid-item-match").updatePrice(r):e(".summary-product .price").length?(e(".summary-product").updatePrice(r),e(".summary-product .price-per-unit .amount").replaceWith(r.ppu),e(".woocommerce-variation.single_variation").length&&e(".woocommerce-variation.single_variation .woocommerce-variation-price .price > .amount").replaceWith(r.price)):e(".product-summary .price").length?(e(".product-summary").updatePrice(r),e(".product-summary .price-per-unit .amount").replaceWith(r.ppu)):e(".woocommerce-variation.single_variation").length?e(".woocommerce-variation.single_variation .woocommerce-variation-price .price > .amount").replaceWith(r.price):e(".product-price-container .product-page-price").length&&e(".product-price-container .product-page-price .amount").replaceWith(r.price),e(".price-wrapper > .product-page-price.price").length&&(e(".price-wrapper > .product-page-price.price > .amount").length>1?e(".price-wrapper > .product-page-price.price").empty().html(r.price):e(".price-wrapper > .product-page-price.price > .amount").replaceWith(r.price)),e(".bm-price-totals").length&&(""!=r.totals&&e(".bm-price-totals > span.totals-price").empty().html(r.totals),W()&&e(".bm-price-totals").show())}}}})}e("body").on("wcpt_product_modal_ready",function(){e("form.cart input.qty").length&&($(),_(),e("form.cart input.qty").change(),e("body").on("show_variation",".variations_form",function(){e(".woocommerce-variation-bulk-prices").length&&$()}))}),_(),P()||e(t).change(),e(".single_variation_wrap").on("show_variation",function(t,r){e(".bm-price-totals").length&&W()&&e(".bm-price-totals").show()})});