1(function($){$(document).ready(function(){if(!window.elementorFrontend||!window.elementorFrontend.getElements){return} 2const menuCarts=window.elementorFrontend?.getElements()?.$body?.find(".elementor-widget-woocommerce-menu-cart");menuCarts.each((_,el)=>{const settings=$(el).data("settings");if(!settings){return} 3if(settings.automatically_open_cart==null){return} 4const currentValue=settings.automatically_open_cart;settings.automatically_open_cart="no";$(el).data("settings",settings);setTimeout(()=>{settings.automatically_open_cart=currentValue;$(el).data("settings",settings)},1000)})});if(!window.wp?.hooks?.addFilter){return} 5window.wp.hooks.addFilter("yaye_total_price_hook","yaydp",function(html,total){const extraTotalPrice=$(".yayextra-total-price");if(extraTotalPrice.closest(".product").length<1){return html} 6const yaydpDiscountedData=extraTotalPrice.closest(".single-product-wrapper").find(".yaydp-product-discounted-data");if(yaydpDiscountedData.length<1){return html} 7const minRate=yaydpDiscountedData.data("min-rate");const maxRate=yaydpDiscountedData.data("min-rate");if(minRate>=1){return html} 8const discounted=total*minRate;function formatPrice(price){window.accounting.settings.currency.symbol=window.yaydp_frontend_data.currency_settings.symbol;window.accounting.settings.currency.decimal=window.yaydp_frontend_data.currency_settings.decimalSeparator;window.accounting.settings.currency.thousand=window.yaydp_frontend_data.currency_settings.thousandSeparator;window.accounting.settings.currency.precision=window.yaydp_frontend_data.currency_settings.precision;return ` 9 <span class="woocommerce-Price-amount amount">${window.accounting.formatMoney( 10 price 11 )}</span> 12 `} 13return ` 14 <del>${formatPrice(total)}</del> 15 ${formatPrice(discounted)}`})})(window.jQuery)
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.