1(function($){$(document).on("mouseenter",".yaydp-tooltip-icon",function(){const tooltip=$(this).find(".yaydp-tooltip-content");if(tooltip.length<1){return;} 2const{left}=tooltip.offset();const width=tooltip.width();console.log(width,left);if(width+left>window.outerWidth){tooltip.css("left",window.outerWidth-width-left-30);} 3if(left<0){tooltip.css("left",30);}});$(document).ready(function(){if(!window.elementorFrontend||!window.elementorFrontend.getElements){return;} 4const menuCarts=window.elementorFrontend?.getElements()?.$body?.find(".elementor-widget-woocommerce-menu-cart");menuCarts.each((_,el)=>{const settings=$(el).data("settings");if(!settings){return;} 5if(settings.automatically_open_cart==null){return;} 6const 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;} 7window.wp.hooks.addFilter("yaye_total_price_hook","yaydp",function(html,total){const extraTotalPrice=$(".yayextra-total-price");if(extraTotalPrice.closest(".product").length<1){return html;} 8const yaydpDiscountedData=extraTotalPrice.closest(".single-product-wrapper").find(".yaydp-product-discounted-data");if(yaydpDiscountedData.length<1){return html;} 9const minRate=yaydpDiscountedData.data("min-rate");const maxRate=yaydpDiscountedData.data("min-rate");if(minRate>=1){return html;} 10const 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` 11 <span class="woocommerce-Price-amount amount">${window.accounting.formatMoney( 12 price 13 )}</span> 14 `;} 15return` 16 <del>${formatPrice(total)}</del> 17 ${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.