PATH:
home
/
thebhoeo
/
public_html
/
wp-content
/
themes
/
woodmart
/
js
/
scripts
/
wc
!function(t){woodmartThemeModule.$document.on("wdShopPageInit wdArrowsLoadProducts wdLoadMoreLoadProducts wdProductsTabsLoaded wdSearchFullScreenContentLoaded wdBackHistory wdRecentlyViewedProductLoaded",function(){woodmartThemeModule.updateWishlistButtonState()}),woodmartThemeModule.wishlist=function(){var e="woodmart_wishlist_count",o="woodmart_wishlist_products";if(woodmart_settings.is_multisite&&(e+="_"+woodmart_settings.current_blog_id,o+="_"+woodmart_settings.current_blog_id),"undefined"!=typeof Cookies){var s=Cookies.get(e),d=0;if(void 0!==s)try{d=JSON.parse(s)}catch(l){console.log("cant parse cookies json")}void 0!==woodmart_settings.wishlist_expanded&&"yes"===woodmart_settings.wishlist_expanded||i(d),woodmartThemeModule.$body.on("click",".wd-wishlist-btn a",function(s){var d=t(this);s.preventDefault();var n=d.data("product-id"),l=t(`.wd-wishlist-btn a[data-product-id='${n}']`),c=d.data("key");if(woodmartThemeModule.$body.hasClass("logged-in")||"undefined"==typeof Cookies){if(l.addClass("loading"),!l.hasClass("added")&&void 0!==woodmart_settings.wishlist_expanded&&"yes"===woodmart_settings.wishlist_expanded&&"disable"!==woodmart_settings.wishlist_show_popup&&woodmartThemeModule.$body.hasClass("logged-in"))return void woodmartThemeModule.$document.trigger("wdShowWishlistGroupPopup",[n,c]);l.hasClass("added")?t.ajax({url:woodmart_settings.ajaxurl,data:{action:"woodmart_remove_from_wishlist",product_id:n,key:woodmart_settings.wishlist_page_nonce},dataType:"json",method:"GET",success:function(e){void 0!==e.count&&i(e.count),e.fragments&&(woodmartThemeModule.$document.trigger("wdWishlistSaveFragments",[e.fragments,e.hash]),t.each(e.fragments,function(e,o){var s=t(e);woodmartThemeModule.removeDuplicatedStylesFromHTML(o,function(t){s.replaceWith(t)},s)})),r(l,!1)},error:function(){console.log("We cant remove from wishlist. Something wrong with AJAX response. Probably some PHP conflict.")},complete:function(){l.removeClass("loading")}}):a(n,"",c)}else{var w=!0,u={},h=Cookies.get(o);if(void 0!==h&&h){var m=JSON.parse(h);Object.keys(m).length&&(u=m)}l.hasClass("added")&&void 0!==u[n]?(w=!1,delete u[n]):u[n]={product_id:n};var p=Object.keys(u).length;i(p),Cookies.set(o,JSON.stringify(u),{expires:parseInt(woodmart_settings.wishlist_cookie_expires),path:woodmart_settings.cookie_path,secure:woodmart_settings.cookie_secure_param}),Cookies.set(e,p,{expires:parseInt(woodmart_settings.wishlist_cookie_expires),path:woodmart_settings.cookie_path,secure:woodmart_settings.cookie_secure_param}),r(l,w)}}),woodmartThemeModule.$body.on("click",".wd-wishlist-remove",function(s){s.preventDefault();var d=t(this),a="";if(d.parents(".wd-wishlist-group").length&&(a=d.parents(".wd-wishlist-group").data("group-id")),d.addClass("loading"),woodmartThemeModule.$body.hasClass("logged-in")||"undefined"==typeof Cookies||1===d.parents(".wd-products").find(".wd-product").length)n(d.data("product-id"),a,d.parents(".wd-products"),function(){d.removeClass("loading")});else{d.parents(".wd-product").find("link").appendTo("head"),d.parents(".wd-product").remove();var r=Cookies.get(o),l={};void 0!==r&&r&&(l=JSON.parse(r),Object.keys(l).length&&delete l[d.data("product-id")]);var c=Object.keys(l).length;i(c),Cookies.set(o,JSON.stringify(l),{expires:parseInt(woodmart_settings.wishlist_cookie_expires),path:woodmart_settings.cookie_path,secure:woodmart_settings.cookie_secure_param}),Cookies.set(e,c,{expires:parseInt(woodmart_settings.wishlist_cookie_expires),path:woodmart_settings.cookie_path,secure:woodmart_settings.cookie_secure_param})}}),woodmartThemeModule.$body.on("click",".wd-wishlist-checkbox",function(e){var o=t(this),s=o.parents(".wd-product"),d=o.parents(".wd-products-element").siblings(".wd-wishlist-bulk-action"),i=d.find(".wd-wishlist-select-all");s.toggleClass("wd-current-product"),i.hasClass("wd-selected")&&d.hasClass("wd-visible")&&!s.hasClass("wd-current-product")&&i.removeClass("wd-selected"),s.siblings(".product").length===s.siblings(".wd-current-product").length&&s.hasClass("wd-current-product")&&i.addClass("wd-selected"),s.siblings(".wd-current-product").length||!d.hasClass("wd-visible")||s.hasClass("wd-current-product")?d.addClass("wd-visible"):d.removeClass("wd-visible")}),woodmartThemeModule.$body.on("click",".wd-wishlist-remove-action > a",function(e){e.preventDefault();var o=t(this),s=o.parents(".wd-wishlist-bulk-action").siblings(".wd-products-element").find(".products"),d=s.find(".wd-current-product"),i=[],a="";d.length&&confirm(woodmart_settings.wishlist_remove_notice)&&(o.addClass("loading"),o.parents(".wd-wishlist-group").length&&(a=o.parents(".wd-wishlist-group").data("group-id")),d.each(function(){i.push(t(this).data("id"))}),n(i,a,s,function(){o.parents(".wd-wishlist-bulk-action").removeClass("wd-visible"),o.removeClass("loading")}))}),woodmartThemeModule.$body.on("click",".wd-wishlist-select-all > a",function(e){e.preventDefault();var o=t(this).parent(),s=o.parents(".wd-wishlist-bulk-action").siblings(".wd-products-element").find(".products");o.hasClass("wd-selected")?(s.find(".product").removeClass("wd-current-product").find(".wd-wishlist-checkbox").prop("checked",!1),o.removeClass("wd-selected"),o.parents(".wd-wishlist-bulk-action").removeClass("wd-visible")):(s.find(".product").addClass("wd-current-product").find(".wd-wishlist-checkbox").prop("checked",!0),o.addClass("wd-selected"))}),woodmartThemeModule.$document.on("wdAddProductToWishlist",function(t,e,o,s,d){a(e,o,s,d)}),woodmartThemeModule.$document.on("wdRemoveProductToWishlist",function(t,e,o,s,d){n(e,o,s,d)}),woodmartThemeModule.$document.on("wdUpdateWishlistContent",function(e,o){var s,d;s=o,d=t(".wd-wishlist-content"),i(s.count),d.length>0&&!d.hasClass("wd-wishlist-preview")&&woodmartThemeModule.removeDuplicatedStylesFromHTML(s.wishlist_content,function(t){d.replaceWith(t),woodmartThemeModule.$document.trigger("wdUpdateWishlist")},d)})}function i(e){var o=t(".wd-header-wishlist");o.length>0&&o.find(".wd-tools-count").text(e)}function a(e,o,s,d=""){var a=t(".wd-wishlist-btn a[data-product-id="+e+"]");t.ajax({url:woodmart_settings.ajaxurl,data:{action:"woodmart_add_to_wishlist",product_id:e,group:o,key:s},dataType:"json",method:"GET",success:function(e){e?(e.count&&i(e.count),e.fragments&&(woodmartThemeModule.$document.trigger("wdWishlistSaveFragments",[e.fragments,e.hash]),t.each(e.fragments,function(e,o){var s=t(e);woodmartThemeModule.removeDuplicatedStylesFromHTML(o,function(t){s.replaceWith(t)},s)})),r(a)):console.log("something wrong loading wishlist data ",e),d&&d()},error:function(){console.log("We cant add to wishlist. Something wrong with AJAX response. Probably some PHP conflict.")},complete:function(){a.removeClass("loading")}})}function n(e,o,s,d=""){var a="";s&&void 0!==s.data("atts")&&((a=s.data("atts")).ajax_page=s.attr("data-paged")),t.ajax({url:woodmart_settings.ajaxurl,data:{action:"woodmart_remove_from_wishlist",product_id:e,group_id:o,key:woodmart_settings.wishlist_page_nonce,atts:a},dataType:"json",method:"GET",success:function(e){if(e.wishlist_content){var o=s.parents(".wd-products-element"),a=o.parents(".wd-wishlist-content");i(e.count),n=e,(r=o).length&&!t(".wd-wishlist-content").hasClass("wd-wishlist-preview")&&woodmartThemeModule.removeDuplicatedStylesFromHTML(n.wishlist_content,function(t){r.replaceWith(t),woodmartThemeModule.$document.trigger("wdUpdateWishlist")},r),setTimeout(function(){var e=t(".wd-wishlist-content .wd-pagination").find("a.page-numbers");e.length&&e.each(function(){var e=t(this),o=e.attr("href").split("product-page=")[1],s=parseInt(o);e.attr("href",window.location.origin+window.location.pathname+"?product-page="+s)})},500),e.hasOwnProperty("count")&&0===e.count&&a.find(".wd-wishlist-head, .wd-wishlist-bulk-action").remove()}else console.log("something wrong loading wishlist data ",e);var n,r;e.fragments&&woodmartThemeModule.$document.trigger("wdUpdateWishlistFragments",[e.fragments,e.hash]),d&&d()},error:function(){console.log("We cant remove from wishlist. Something wrong with AJAX response. Probably some PHP conflict.")}})}function r(t,e=!0){var o=woodmart_settings.wishlist_remove_button_text;e||(o=woodmart_settings.wishlist_add_button_text),t.find(".wd-action-text").length>0?t.find(".wd-action-text").text(o):t.text(o),e?t.addClass("added"):t.removeClass("added"),woodmartThemeModule.$document.trigger("added_to_wishlist"),setTimeout(function(){woodmartThemeModule.$document.trigger("wdUpdateTooltip",t)})}},woodmartThemeModule.updateWishlistButtonState=function(){if(void 0!==woodmart_settings.wishlist_save_button_state&&"yes"===woodmart_settings.wishlist_save_button_state&&"undefined"!=typeof Cookies&&!woodmartThemeModule.$body.hasClass("logged-in")){var e="woodmart_wishlist_products",o={};woodmart_settings.is_multisite&&(e+="_"+woodmart_settings.current_blog_id);var s=Cookies.get(e);void 0!==s&&s&&(o=Object.values(JSON.parse(s))),o.length&&t.each(o,function(e,o){var s=t(".wd-wishlist-btn a[data-product-id="+o.product_id+"]");if(s.length&&!s.hasClass("added")){s.addClass("added");var d=woodmart_settings.wishlist_remove_button_text;s.find(".wd-action-text").length>0?s.find(".wd-action-text").text(d):s.text(d)}})}},t(document).ready(function(){woodmartThemeModule.wishlist(),woodmartThemeModule.updateWishlistButtonState()})}(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]