PATH:
home
/
thebhoeo
/
public_html
/
wp-content
/
themes
/
woodmart
/
js
/
scripts
/
wc
!function(e){woodmartThemeModule.$document.on("wdShopPageInit wdUpdateWishlist wdArrowsLoadProducts wdLoadMoreLoadProducts wdProductsTabsLoaded wdSearchFullScreenContentLoaded wdBackHistory wdRecentlyViewedProductLoaded",function(){woodmartThemeModule.woodmartCompare()}),woodmartThemeModule.woodmartCompare=function(){var o=woodmartThemeModule.$body,t="woodmart_compare_list",a="";function r(o){var a=e(this),r=a.data("id"),n=e(`.wd-compare-btn a[data-id='${r}']`),d=e(".wd-header-compare");if(n.hasClass("added"))return!0;if(o.preventDefault(),!d.find(".wd-dropdown-compare").length){var s=[],i=Cookies.get(t);return void 0!==i&&i&&(s=Object.values(JSON.parse(i))),s.length&&-1!==s.indexOf(r.toString())||s.push(r.toString()),m(s.length),Cookies.set(t,JSON.stringify(s),{expires:parseInt(woodmart_settings.cookie_expires),path:woodmart_settings.cookie_path,secure:woodmart_settings.cookie_secure_param}),void c(n)}a.addClass("loading"),jQuery.ajax({url:woodmart_settings.ajaxurl,data:{action:"woodmart_add_to_compare",id:r},dataType:"json",method:"GET",success:function(o){if(o.count){var a=e(".wd-header-compare");a.length>0&&a.find(".wd-tools-count").text(o.count),c(n)}else console.log("something wrong loading compare data ",o);o.fragments&&(e.each(o.fragments,function(o,t){e(o).replaceWith(t)}),sessionStorage.setItem(t+"_fragments",JSON.stringify(o.fragments)))},error:function(){console.log("We cant add to compare. Something wrong with AJAX response. Probably some PHP conflict.")},complete:function(){n.removeClass("loading")}})}function n(o){o.stopImmediatePropagation(),o.preventDefault();var d=e(this).data("id").toString(),s=e(`.wd-compare-btn a[data-id='${d}']`),i=[];a&&(i=Object.values(JSON.parse(a))),i=i.filter(function(e){return e!==d}),Cookies.set(t,JSON.stringify(i),{expires:parseInt(woodmart_settings.cookie_expires),path:woodmart_settings.cookie_path,secure:woodmart_settings.cookie_secure_param}),a=Cookies.get(t),s.removeClass("added"),s.find(".wd-action-text").length>0?s.find(".wd-action-text").text(woodmart_settings.compare_origin_button_text):s.text(woodmart_settings.compare_origin_button_text),s.off("click",n),s.on("click",r),woodmartThemeModule.$document.trigger("wdUpdateTooltip",s),m(i.length)}function d(o,a){var r=a.find(".wd-loader-overlay");r.addClass("wd-loading"),jQuery.ajax({url:woodmart_settings.ajaxurl,data:{action:"woodmart_remove_category_from_compare",category_id:o,key:woodmart_settings.compare_page_nonce},dataType:"json",method:"GET",success:function(o){o.table?(s(o),o.fragments&&(e.each(o.fragments,function(o,t){e(o).replaceWith(t)}),sessionStorage.setItem(t+"_fragments",JSON.stringify(o.fragments)))):console.log("something wrong loading compare data ",o)},error:function(){console.log("We cant remove product compare. Something wrong with AJAX response. Probably some PHP conflict.")},complete:function(){r.removeClass("wd-loading");var o=e(".wd-compare-table").first();setTimeout(function(){o.addClass("wd-active")},100),setTimeout(function(){o.addClass("wd-in"),woodmartThemeModule.$document.trigger("wood-images-loaded")},200)}})}function s(o){var t=e(".wd-header-compare"),a=e(".wd-compare-table, .wd-compare-page");t.length>0&&t.find(".wd-tools-count").text(o.count),woodmartThemeModule.removeDuplicatedStylesFromHTML(o.table,function(e){a.replaceWith(e)},a),void 0!==woodmart_settings.compare_by_category&&"yes"===woodmart_settings.compare_by_category&&woodmartThemeModule.$document.trigger("wdTabsInit")}function i(){jQuery.ajax({url:woodmart_settings.ajaxurl,data:{action:"woodmart_get_fragment_product_category_compare"},dataType:"json",method:"GET",success:function(o){o.fragments?(e.each(o.fragments,function(o,t){e(o).replaceWith(t)}),sessionStorage.setItem(t+"_fragments",JSON.stringify(o.fragments))):console.log("something wrong loading compare data ",o)},error:function(){console.log("We cant remove product compare. Something wrong with AJAX response. Probably some PHP conflict.")}})}function c(e){var o=woodmart_settings.compare_added_button_text;e.find(".wd-action-text").length>0?e.find(".wd-action-text").text(o):e.text(o),e.addClass("added"),woodmartThemeModule.$document.trigger("added_to_compare"),woodmartThemeModule.$document.trigger("wdUpdateTooltip",e)}function m(o){var t=e(".wd-header-compare");t.length>0&&t.find(".wd-tools-count").text(o)}woodmart_settings.is_multisite&&(t+="_"+woodmart_settings.current_blog_id),"undefined"!=typeof Cookies&&(a=Cookies.get(t),function(){if(void 0!==woodmart_settings.compare_save_button_state&&"yes"===woodmart_settings.compare_save_button_state&&"undefined"!=typeof Cookies){var o=a?Object.values(JSON.parse(a)):[],t=o.length?e(o.map(e=>`.wd-compare-btn a[data-id='${e}']`).join(", ")):[];t.length&&e.each(t,function(o,t){var a=e(t);a.length&&!a.hasClass("added")&&(a.addClass("added"),a.find(".wd-action-text").length>0?a.find(".wd-action-text").text(woodmart_settings.compare_removed_button_text):a.text(woodmart_settings.compare_removed_button_text),a.off("click.wdCompareSaved").on("click.wdCompareSaved",n),woodmartThemeModule.$document.trigger("wdUpdateTooltip",a))})}}(),function(){var o=e(".wd-header-compare");if(!(o.length<=0)){if(void 0!==a)try{var r=JSON.parse(a);o.find(".wd-tools-count").text(r.length)}catch(n){console.log("cant parse cookies json")}else o.find(".wd-tools-count").text(0);if(void 0!==woodmart_settings.compare_by_category&&"yes"===woodmart_settings.compare_by_category)try{!function(){if(woodmartThemeModule.supports_html5_storage){var o=JSON.parse(sessionStorage.getItem(t+"_fragments"));"undefined"==typeof actions||"1"!==actions.is_lang_switched&&"1"!==actions.force_reset||(o=""),o?e.each(o,function(o,t){e(o).replaceWith(t)}):i()}else i()}()}catch(n){i()}}}(),o.off(".wdCompare"),o.on("click.wdCompare",".wd-compare-btn a",r),o.on("click.wdCompare",".wd-compare-remove",function(o){o.preventDefault();var a=e(this),r=a.data("id"),n="";void 0!==woodmart_settings.compare_by_category&&"yes"===woodmart_settings.compare_by_category&&(n=a.parents(".wd-compare-table").data("category-id"))&&1>=a.parents(".compare-value").siblings().length?d(n,a.parents(".wd-compare-page")):(a.addClass("loading"),jQuery.ajax({url:woodmart_settings.ajaxurl,data:{action:"woodmart_remove_from_compare",id:r,category_id:n,key:woodmart_settings.compare_page_nonce},dataType:"json",method:"GET",success:function(o){o.table?(s(o),o.fragments&&(e.each(o.fragments,function(o,t){e(o).replaceWith(t)}),sessionStorage.setItem(t+"_fragments",JSON.stringify(o.fragments)))):console.log("something wrong loading compare data ",o)},error:function(){console.log("We cant remove product compare. Something wrong with AJAX response. Probably some PHP conflict.")},complete:function(){a.removeClass("loading")}}))}),o.on("change.wdCompare",".wd-compare-select",function(o){o.preventDefault();var t=e(this),a=t.parents(".wd-compare-page"),r=a.find(".wd-compare-table[data-category-id="+t.val()+"]"),n=a.find(".wd-compare-table.wd-active");a.find(".wd-compare-cat-link").attr("href",r.data("category-url")),n.removeClass("wd-in"),setTimeout(function(){n.removeClass("wd-active")},100),setTimeout(function(){r.addClass("wd-active")},100),setTimeout(function(){r.addClass("wd-in"),woodmartThemeModule.$document.trigger("wood-images-loaded")},200)}),o.on("click.wdCompare",".wd-compare-remove-cat",function(o){o.preventDefault();var t=e(this);d(t.parents(".wd-compare-header").find(".wd-compare-select").val(),t.parents(".wd-compare-page"))}))},e(document).ready(function(){woodmartThemeModule.woodmartCompare()})}(jQuery);
[+]
..
[-] filtersArea.min.js
[edit]
[-] quickShop.min.js
[edit]
[-] loginSidebar.js
[edit]
[-] shopLoader.min.js
[edit]
[-] woocommerceWrappTable.min.js
[edit]
[-] abandonedCart.min.js
[edit]
[-] product360Button.min.js
[edit]
[-] swatchesLimit.js
[edit]
[-] frequentlyBoughtTogether.js
[edit]
[-] quickShopVariationForm.min.js
[edit]
[-] trackProductViewed.min.js
[edit]
[-] frequentlyBoughtTogether.min.js
[edit]
[-] sortByWidget.js
[edit]
[-] woocommerceQuantity.min.js
[edit]
[-] stickyDetails.min.js
[edit]
[-] filterDropdowns.min.js
[edit]
[-] commentImage.min.js
[edit]
[-] woocommerceQuantity.js
[edit]
[-] singleProductTabsAccordion.js
[edit]
[-] addToCartAllTypes.min.js
[edit]
[-] swatchesVariations.min.js
[edit]
[-] loginTabs.js
[edit]
[-] categoriesAccordion.min.js
[edit]
[-] checkoutRemoveBtn.min.js
[edit]
[-] productImagesGallery.js
[edit]
[-] singleProductTabsSideHidden.js
[edit]
[-] stickyAddToCart.js
[edit]
[-] swatchesVariations.js
[edit]
[-] imagesGalleryInLoop.min.js
[edit]
[-] quickShop.js
[edit]
[-] product360Button.js
[edit]
[-] initZoom.js
[edit]
[-] emailSubscriptionCheckboxes.min.js
[edit]
[-] headerCategoriesMenu.js
[edit]
[-] headerCategoriesMenu.min.js
[edit]
[-] freeGiftsTable.js
[edit]
[-] wishlist.min.js
[edit]
[-] checkoutQuantity.min.js
[edit]
[-] ptSubscribeForm.min.js
[edit]
[-] productHover.js
[edit]
[-] updateAjaxDeliveryDates.js
[edit]
[-] productMoreDescription.min.js
[edit]
[-] woocommercePriceSlider.min.js
[edit]
[-] productImages.js
[edit]
[-] productReviewsLikes.min.js
[edit]
[-] filterDropdowns.js
[edit]
[-] singleProductTabsAccordion.min.js
[edit]
[-] shopMasonry.min.js
[edit]
[-] woodmartCompare.js
[edit]
[-] searchByFilters.js
[edit]
[-] gridQuantity.min.js
[edit]
[-] swatchesOnGrid.js
[edit]
[-] productsLoadMore.min.js
[edit]
[-] productGalleryVideo.js
[edit]
[-] variationsPrice.min.js
[edit]
[-] productReviewsCriteria.js
[edit]
[-] emailSubscriptionCheckboxes.js
[edit]
[-] freeGiftsTable.min.js
[edit]
[-] dynamicDiscountsTable.min.js
[edit]
[-] waitlistTable.min.js
[edit]
[-] abandonedCart.js
[edit]
[-] shopMasonry.js
[edit]
[-] wishlistGroup.js
[edit]
[-] wishlist.js
[edit]
[-] checkoutFields.js
[edit]
[-] addToCartAllTypes.js
[edit]
[-] imagesGalleryInLoop.js
[edit]
[-] productReviews.js
[edit]
[-] waitlistSubscribeForm.min.js
[edit]
[-] categoriesDropdowns.min.js
[edit]
[-] filtersArea.js
[edit]
[-] cartWidget.min.js
[edit]
[-] estimateDeliveryOnCart.js
[edit]
[-] productRecentlyViewed.min.js
[edit]
[-] woocommerceWrappTable.js
[edit]
[-] waitlistSubscribeForm.js
[edit]
[-] productReviewsLikes.js
[edit]
[-] checkoutRemoveBtn.js
[edit]
[-] cartQuantity.min.js
[edit]
[-] productMoreDescription.js
[edit]
[-] ptSubscribeForm.js
[edit]
[-] shopPageInit.js
[edit]
[-] countProductVisits.min.js
[edit]
[-] loginDropdown.min.js
[edit]
[-] productReviewsCriteria.min.js
[edit]
[-] loginDropdown.js
[edit]
[-] actionAfterAddToCart.min.js
[edit]
[-] miniCartQuantity.js
[edit]
[-] woodmartCompare.min.js
[edit]
[-] searchByFilters.min.js
[edit]
[-] miniCartQuantity.min.js
[edit]
[-] updateCartFragmentsFix.min.js
[edit]
[-] waitlistTable.js
[edit]
[-] onRemoveFromCart.min.js
[edit]
[-] quickShopVariationForm.js
[edit]
[-] categoriesAccordion.js
[edit]
[-] singleProductTabsSideHidden.min.js
[edit]
[-] loginTabs.min.js
[edit]
[-] checkoutFields.min.js
[edit]
[-] estimateDeliveryOnCart.min.js
[edit]
[-] productFilters.js
[edit]
[-] wishlistGroup.min.js
[edit]
[-] productRecentlyViewed.js
[edit]
[-] productFilters.min.js
[edit]
[-] shopLoader.js
[edit]
[-] productHover.min.js
[edit]
[-] quickView.min.js
[edit]
[-] checkoutQuantity.js
[edit]
[-] cartWidget.js
[edit]
[-] onRemoveFromCart.js
[edit]
[-] quickView.js
[edit]
[-] woocommerceComments.js
[edit]
[-] countProductVisits.js
[edit]
[-] dynamicDiscountsTable.js
[edit]
[-] loginSidebar.min.js
[edit]
[-] woocommerceComments.min.js
[edit]
[-] swatchesOnGrid.min.js
[edit]
[-] cartQuantity.js
[edit]
[-] productImagesGallery.min.js
[edit]
[-] updateAjaxDeliveryDates.min.js
[edit]
[-] gridQuantity.js
[edit]
[-] stickySidebarBtn.min.js
[edit]
[-] productVideo.min.js
[edit]
[-] variationsPrice.js
[edit]
[-] productReviews.min.js
[edit]
[-] ajaxFilters.js
[edit]
[-] productImages.min.js
[edit]
[-] trackProductViewed.js
[edit]
[-] ptTable.min.js
[edit]
[-] actionAfterAddToCart.js
[edit]
[-] stickyAddToCart.min.js
[edit]
[-] ptTable.js
[edit]
[-] swatchesLimit.min.js
[edit]
[-] shopPageInit.min.js
[edit]
[-] productVideo.js
[edit]
[-] productGalleryVideo.min.js
[edit]
[-] ajaxFilters.min.js
[edit]
[-] stickyDetails.js
[edit]
[-] productsLoadMore.js
[edit]
[-] woocommercePriceSlider.js
[edit]
[-] sortByWidget.min.js
[edit]
[-] commentImage.js
[edit]
[-] productsTabs.min.js
[edit]
[-] productsTabs.js
[edit]
[-] categoriesDropdowns.js
[edit]
[-] initZoom.min.js
[edit]
[-] updateCartFragmentsFix.js
[edit]
[-] stickySidebarBtn.js
[edit]