1jQuery(document).ready(function($){if($('.et_pb_woopro_price.change_to_variation_price').length>0){var variations_price_range=$('.et_pb_woopro_price.change_to_variation_price .price'),selected_variation_price=$('.et_pb_woopro_price.change_to_variation_price .wcbd_selected_variation_price'),variations_form=$('.wcbd_module .variations_form');variations_form.on('show_variation',function(event,variation){if(typeof variation!=='undefined'&&variation.is_purchasable===true&&variation.price_html!==""){variations_price_range.hide();selected_variation_price.html(variation.price_html);selected_variation_price.show();}else{variations_price_range.show();selected_variation_price.hide();}});variations_form.on('reset_data',function(){variations_price_range.show();selected_variation_price.hide();});} 2$('.wcbd_gallery_shortcode.lightbox .gallery-icon').addClass('et_pb_gallery_image');if($('.woo_product_divi_layout select[id="rating"]').length>1){$('select[name="rating"]').each(function(index){if(index==0){var starsP=$(this).siblings('p.stars');if(starsP.length>1){starsP.not(starsP[0]).remove();};} 3if(index>0){$(this).hide().before('<p class="stars"><span><a class="star-1" href="#">1</a><a class="star-2" href="#">2</a><a class="star-3" href="#">3</a><a class="star-4" href="#">4</a><a class="star-5" href="#">5</a></span></p>');}});} 4function WCBD_On_Page_Load(){if($('.et_pb_wcbd_cart_products').length){$('.et_pb_wcbd_cart_products .cart-collaterals').remove();$('.et_pb_wcbd_cart_products.no_x_icon .product-remove, .et_pb_wcbd_cart_products.no_thumb .product-thumbnail, .et_pb_wcbd_cart_products.no_title .product-name, .et_pb_wcbd_cart_products.no_price .product-price, .et_pb_wcbd_cart_products.no_qty .product-quantity, .et_pb_wcbd_cart_products.no_subtotal .product-subtotal, .et_pb_wcbd_cart_products.no_coupon .actions .coupon, .et_pb_wcbd_cart_products.no_update_cart .actions .button[name="update_cart"], .et_pb_wcbd_cart_products.no_coupon.no_update_cart .actions').remove();} 5if($('.et_pb_wcbd_checkout_classic').length){$('.chechout_no_coupoun .woocommerce-form-coupon-toggle, .chechout_no_coupoun .checkout_coupon, .chechout_no_shipping .woocommerce-shipping-fields, .chechout_no_order_notes .woocommerce-a
5dditional-fields, #order_review_heading, .chechout_no_summary .woocommerce-checkout-review-order-table').remove();} 6if($('.et_pb_wcbd_cart_totals').length){$(".et_pb_wcbd_cart_totals .cart_totals > h2").remove();} 7if($('.et_pb_wcbd_cart_cross_sells').length){$(".et_pb_wcbd_cart_cross_sells .cross-sells > h2").remove();}} 8WCBD_On_Page_Load();function WCBD_On_Cart_Update(){if($('.et_pb_wcbd_cart_products .woocommerce-cart-form').length>1){$('.et_pb_wcbd_cart_products .woocommerce-cart-form').not(':first-of-type').remove();$('.et_pb_wcbd_cart_products .woocommerce-message').not(':first-of-type').remove();$('.et_pb_wcbd_cart_products .woocommerce-error').not(':first-of-type').remove();} 9if($('.et_pb_wcbd_cart_totals').length>1){$('.et_pb_wcbd_cart_totals .cart_totals').not(':nth-child(2)').remove();} 10var emptyCart=$('.woocommerce-cart .cart-empty').length>0?true:false;if(emptyCart){$('body').addClass('wcbd_cart_cleared');$('.et_pb_wcbd_cart_products .et_pb_module_inner .woocommerce, .et_pb_wcbd_cart_products .woocommerce-notices-wrapper, .et_pb_wcbd_cart_totals, .et_pb_wcbd_cart_cross_sells, .remove_on_empty_cart').remove();$('.et_pb_wcbd_cart_products .empty_cart_message, .et_pb_wcbd_cart_products.stay .return-to-shop, .display_on_empty_cart').fadeIn();if($('.et_pb_wcbd_cart_products.reload').length>0){location.reload();} 11if($('.et_pb_wcbd_cart_products.redirect .redirection_url').length>0){window.location=$('.redirection_url').data('redirect-to');}} 12if($('.et_pb_woopro_notices.no_content .woocommerce-notices-wrapper').children().length>0){$('.et_pb_woopro_notices.no_content').removeClass('no_content');}} 13$(document).on('updated_wc_div',function(){WCBD_On_Cart_Update();});function WCBD_On_Ajax_Notices(){if($('.et_pb_woopro_notices .woocommerce-notices-wrapper').length>0){var pageNotices=$('.et_pb_wcbd_checkout_classic .woocommerce-error, .et_pb_wcbd_checkout_classic .woocommerce-message');var noticesModule=$('.et_pb_woopro_notices .woocommerce-notices-wrapper');if(pageNotices.length>0){$('.woocommerce-NoticeGroup, .woocommerce-error, .woocommerce-message').remove();noticesModule.empty();pageNotices.each(function(i){noticeContent=pageNotices[i].outerHTML;noticesModule.append(noticeContent).hide().fadeIn();});$('.et_pb_woopro_notices').removeClass('no_content');}}} 14$(document).on('checkout_error updated_checkout update_checkout',function(){WCBD_On_Ajax_Notices();});function WCBD_On_Adding_To_Cart(){if($('.et_pb_wcbd_cart_cross_sells .ajax_add_to_cart').length){$('body').addClass('wcbd_adding_to_cart');}} 15$(document).on('adding_to_cart',function(){WCBD_On_Adding_To_Cart();});function WCBD_After_Adding_To_Cart(){if($('body.wcbd_adding_to_cart .et_pb_wcbd_cart_cross_sells .ajax_add_to_cart').length){$('body').removeClass('wcbd_adding_to_cart');}} 16$(document).on('cart_page_refreshed',function(){WCBD_After_Adding_To_Cart();});$(document).on('added_to_cart',function(){if($('body').hasClass('wcbd_empty_cart')){window.location.reload();}});function WCBD_fix_vb_js_events(){$('body.et-fb').on('click','.et_pb_wcbd_checkout_classic a.showlogin',function(){$('.et_pb_wcbd_checkout_classic .woocommerce-form-login').slideToggle(400);});$('body.et-fb').on('click','.et_pb_wcbd_checkout_classic a.showcoupon',function(){$('.et_pb_wcbd_checkout_classic .checkout_coupon').slideToggle(400);});$('body.et-fb').on('change','.et_pb_wcbd_checkout_classic #ship-to-different-address input',function(){if($(this).is(":checked")){$("div.shipping_address").slideDown();}else{$("div.shipping_address").slideUp();}});$('body.et-fb').on('click','.et_pb_wcbd_cart_totals .shipping-calculator-button',function(){$('.shipping-calculator-form').slideToggle(400);});} 17WCBD_fix_vb_js_events();function WCBD_MyAccount_Ajax_Tabs(){$('body.et-fb').on('click','.wcbd_myaccount_ajax_tabs .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout a',function(e){e.preventDefault();});var ajaxLinks='.wcbd_myaccount_ajax_tabs .woocommerce-MyAccount-navigation ul li:not(.woocommerce-MyAccount-navigation-link--customer-logout) a, .wcbd_myaccount_ajax_tabs .woocommerce-Address .edit, .wcbd_myaccount_ajax_tabs .woocommerce-orders-table__row a, .wcbd_myaccount_ajax_tabs .woocommerce-orders-table__row a.view';$('body').on('click',ajaxLinks,function(e){e.preventDefault();var clickedLink=$(this);if(clickedLink.hasClass('wcbd-active'))return;if($('body').hasClass('wcbd_myaccount_loading_tab'))return;var linkURL=$(this).attr('href');if(!linkURL.length)return;var menuItem=$(this).parent($('li'));$('body').addClass('wcbd_myaccount_loading_tab');$('.wcbd_myaccount_ajax_tabs .woocommerce-MyAccount-content').append('<div class="preloader_container"><div class="spinner"><div class="double-bounce1"></div><div class="double-bounce2"></div></div></div>');$.get(linkURL,function(result){var content=$(result).find('.et_pb_wcbd_myaccount_classic .woocommerce-MyAccount-content');if(content.length){$(ajaxLinks).removeClass('wcbd-active');clickedLink.addClass('wcbd-active');if(!$('body').hasClass('et-fb')){history.pushState({},'',linkURL);} 18$('.wcbd_myaccount_ajax_tabs .woocommerce-MyAccount-content').hide().html(content.html()).fadeIn();menuItem.siblings().removeClass('is-active');menuItem.addClass('is-active');}}).always(function(){$('body').removeClass('wcbd_myaccount_loading_tab');});});} 19WCBD_MyAccount_Ajax_Tabs();$('body').on('click','.wcbd_login_tabs .tabs .tab_heading',function(){$(this).addClass('active');$(this).siblings().removeClass('active');var target=$($(this).data('target'));if(target.length){target.fadeIn();target.siblings().hide();}});if($('body.wcbd_archive_layout form.et_pb_contact_form').length){var currentURL=window.location.href;var formAction=$('body.wcbd_archive_layout form.et_pb_contact_form').attr('action');if(currentURL!==formAction){$('body.wcbd_archive_layout form.et_pb_contact_form').attr('action','');}} 20var modules=$('.et_pb_wcbd_order_tracking, .et_pb_wcbd_myaccount_login, .et_pb_wcbd_cart_products');var noticesModule=$('.et_pb_woopro_notices .woocommerce-notices-wrapper');if(modules.length&¬icesModule.length){var notices=modules.find('.woocommerce-error, .woocommerce-message, .woocommerce-info');if(notices.length){noticesModule.html(notices);$('.et_pb_woopro_notices').removeClass('no_content');}} 21var desc_tab=$('body.woo_product_divi_layout .et_pb_woopro_tabs .description_tab a');if(desc_tab.length>1){desc_tab.trigger('click');} 22$(document).one('yith_magnifier_after_init_zoom',function(){var yith_zoom=$('.et_pb_woopro_images_slider');if(yith_zoom.length){yith_zoom.parent('.et_pb_column').addClass('wcbd_yith_magnifier_zoom');}});$('<div class="quantity-nav"><div class="quantity-button quantity-up">+</div><div class="quantity-button quantity-down">-</div></div>').insertAfter('.qty-pm.style_1:not(.wcbd_builder) input.qty');$('<div class="quantity-nav"><div class="quantity-button quantity-up">+</div></div>').insertAfter('.qty-pm.style_2:not(.wcbd_builder) input.qty');$('<div class="quantity-nav"><div class="quantity-button quantity-down">-</div></div>').insertBefore('.qty-pm.style_2:not(.wcbd_builder) input.qty');$('.qty-pm').each(function(){var spinner=$(this),input=spinner.find('input.qty');input.each(function(){var input=$(this),nav=input.siblings('.quantity-nav'),btnUp=nav.find('.quantity-up'),btnDown=nav.find('.quantity-down'),min=input.attr('min'),max=input.attr('max'),step=input.attr('step')?parseFloat(input.attr('step')):1;btnUp.click(function(){var oldValue=parseFloat(input.val());if(max&&oldValue>=max){newVal=oldValue;}else{newVal=oldValue+step;} 23$(this).parent().siblings("input.qty").val(newVal);$(this).parent().siblings("input.qty").trigger("change");});btnDown.click(function(){oldValue=parseFloat(input.val());if(oldValue<=min){newVal=oldValue;}else{newVal=oldValue-step;} 24$(this).parent().siblings("input.qty").val(newVal);$(this).parent().siblings("input.qty").trigger("change");});});});$('body').on('mouseenter','.wcbd_flip li.product',function(){var flip=$(this).find('.et_shop_image.flip_image');var orig=$(this).find('.et_shop_image:not(.flip_image)');if(flip.length){flip.css('opacity',1);orig.css('opacity',0);}});$('body').on('mouseleave','.wcbd_flip li.product',function(){var flip=$(this).find('.et_shop_image.flip_image');var orig=$(this).find('.et_shop_image:not(.flip_image)');if(flip.length){flip.css('opacity',0);orig.css('opacity',1);}}
24);});function WCBD_Set_Button_Style(custom_button,button_bg_color,button_selector,button_icon,button_icon_placement,button_use_icon){var additionalCss=[];var utils=window.ET_Builder.API.Utils;if(custom_button==='on'&&typeof utils!=='undefined'){if(button_bg_color!==''){additionalCss.push([{selector:button_selector,declaration:'background:'+button_bg_color+' !important;',}]);} 25if(button_icon!==''&&button_use_icon==='on'){if(button_icon_placement==='left'){additionalCss.push([{selector:button_selector+":before",declaration:'content:"'+utils.processFontIcon(button_icon)+'"!important;',}]);} 26if(button_icon_placement==='right'){additionalCss.push([{selector:button_selector+":after",declaration:'content:"'+utils.processFontIcon(button_icon)+'";font-family: ETmodules!important;',}]);}}} 27return additionalCss;}
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.