PATH:
home
/
thebhoeo
/
public_html
/
wp-content
/
themes
/
woodmart
/
js
/
scripts
/
wc
!function(t){woodmartThemeModule.wishlistGroup=function(){if(void 0!==woodmart_settings.wishlist_expanded&&"yes"===woodmart_settings.wishlist_expanded){var o=woodmart_settings.wishlist_fragment_name,e="woodmart_wishlist_hash";woodmart_settings.is_multisite&&(e+="_"+woodmart_settings.current_blog_id);try{a()}catch(r){d()}woodmartThemeModule.$body.on("keyup",".wd-wishlist-group-name",function(o){"Enter"===o.key&&t(".btn.wd-wishlist-save-btn").trigger("click")}),woodmartThemeModule.$body.on("keyup",".wd-wishlist-input-rename",function(o){"Enter"===o.key&&t(".btn.wd-wishlist-rename-save").trigger("click")}),woodmartThemeModule.$body.on("click",".wd-wishlist-remove-group",function(o){o.preventDefault();var e=t(this),i=e.parents(".wd-wishlist-group").data("group-id"),n=e.parents(".wd-wishlist-group").find(".wd-loader-overlay");confirm(woodmart_settings.wishlist_remove_notice)&&(n.addClass("wd-loading"),t.ajax({url:woodmart_settings.ajaxurl,data:{action:"woodmart_remove_group_from_wishlist",group_id:i,key:woodmart_settings.wishlist_page_nonce},dataType:"json",method:"GET",success:function(t){t.wishlist_content?woodmartThemeModule.$document.trigger("wdUpdateWishlistContent",t,"something"):console.log("something wrong loading wishlist data ",t),t.fragments&&s(t.fragments,t.hash)},error:function(){console.log("We cant remove from wishlist. Something wrong with AJAX response. Probably some PHP conflict.")},complete:function(){n.removeClass("wd-loading")}}))}),woodmartThemeModule.$body.on("click",".wd-wishlist-edit-title",function(o){o.preventDefault();var e=t(this).parents(".wd-wishlist-group-head").find(".wd-wishlist-group-title"),s=e.find(".wd-wishlist-input-rename"),i=s.val();e.addClass("wd-edit"),s.val("").val(i).trigger("focus"),woodmartThemeModule.$body.on("mouseup",function(o){var e=t(this),s=t(".wd-wishlist-group-title.wd-edit");if(s.length){var i=s.parents(".wd-wishlist-group-head");i.is(o.target)||0!==i.has(o.target).length||(s.removeClass("wd-edit"),e.off(o))}else e.off(o)})}),woodmartThemeModule.$body.on("click",".wd-wishlist-rename-cancel",function(o){o.preventDefault(),t(this).parents(".wd-wishlist-group-title").removeClass("wd-edit")}),woodmartThemeModule.$body.on("click",".wd-wishlist-rename-save",function(o){o.preventDefault();var e=t(this),i=e.parents(".wd-wishlist-group-title"),n=e.parents(".wd-wishlist-group"),a=e.siblings(".wd-wishlist-input-rename"),d=a.val(),r=n.data("group-id");d?a.data("title")!==d?(e.addClass("loading"),t.ajax({url:woodmart_settings.ajaxurl,data:{action:"woodmart_rename_wishlist_group",title:d,group_id:r,key:woodmart_settings.wishlist_page_nonce},dataType:"json",method:"GET",success:function(t){t?(i.find(">.title").text(d),a.data("title",d)):console.log("something wrong loading wishlist data ",t),t.fragments&&s(t.fragments,t.hash)},error:function(){console.log("We cant add to wishlist. Something wrong with AJAX response. Probably some PHP conflict.")},complete:function(){i.removeClass("wd-edit"),e.removeClass("loading")}})):i.removeClass("wd-edit"):alert(woodmart_settings.wishlist_rename_group_notice)}),woodmartThemeModule.$body.on("click",".wd-wishlist-create-group-btn",function(t){t.preventDefault(),n("",""," wd-create-group-on-page")}),woodmartThemeModule.$body.on("click",".wd-wishlist-move-action > a",function(o){o.preventDefault();var e=t(this),s=e.parents(".wd-wishlist-group").find(".product.wd-current-product"),i=[];s.length&&(e.addClass("wd-loading"),s.each(function(){i.push(t(this).data("id"))}),n(i,""," wd-move-action"))}),woodmartThemeModule.$body.on("click",".wd-wishlist-group-list li",function(o){var e=t(this);if("add_new"===e.data("group-id")){o.preventDefault();var s=e.parents(".wd-popup-wishlist");return s.addClass("wd-create-group"),void s.find(".wd-wishlist-group-name").trigger("focus")}e.siblings().removeClass("wd-current").find("input").prop("checked",!1),e.addClass("wd-current"),e.find("input").prop("checked",!0)}),woodmartThemeModule.$body.on("click",".wd-wishlist-save-btn",function(o){o.preventDefault();var e=t(this),i=e.parents(".wd-popup-wishlist"),n=e.siblings(".wd-wishlist-group-list"),a=t(".wd-wishlist-move-action > a.wd-loading"),d=n.data("product-id"),r="";if(i.hasClass("wd-create-group"))r=i.find(".wd-wishlist-group-name").val();else{if(i.parents(".wd-create-group-on-page").length)return void function(o,e,i=!1){o&&(e.addClass("loading"),t.ajax({url:woodmart_settings.ajaxurl,data:{action:"woodmart_save_wishlist_group",group:o,key:woodmart_settings.wishlist_page_nonce},dataType:"json",method:"GET",success:function(o){if(o){o.wishlist_content&&woodmartThemeModule.$document.trigger("wdUpdateWishlistContent",o),o.fragments&&s(o.fragments,o.hash),(i||e.parents(".wd-create-group-on-page").length)&&t.magnificPopup.close();var n=t(".wd-wishlist-content").find(".wd-wishlist-group");if(n.length){var a=n.last().offset().top-woodmart_settings.ajax_scroll_offset;t("html, body").stop().animate({scrollTop:a},500)}}else console.log("something wrong loading wishlist data ",o)},error:function(){console.log("We cant add to wishlist. Something wrong with AJAX response. Probably some PHP conflict.")},complete:function(){e.removeClass("loading"),e.siblings(".wd-wishlist-create-group").find(".wd-wishlist-group-name").val("")}}))}(r=i.find(".wd-wishlist-group-name").val(),e,a.length);r=n.find("li.wd-current").data("group-id")}if(r)if(e.addClass("loading"),a.length){var l=a.parents(".wd-wishlist-group").data("group-id");t.ajax({url:woodmart_settings.ajaxurl,data:{action:"woodmart_move_products_from_wishlist",products_id:d,group_id:r,group_id_old:l,key:woodmart_settings.wishlist_page_nonce},dataType:"json",method:"GET",success:function(t){t.wishlist_content?woodmartThemeModule.$document.trigger("wdUpdateWishlistContent",t):console.log("something wrong loading wishlist data ",t),t.fragments&&s(t.fragments,t.hash)},error:function(){console.log("We cant remove from wishlist. Something wrong with AJAX response. Probably some PHP conflict.")},complete:function(){e.removeClass("wd-loading"),t.magnificPopup.close(),a.removeClass("wd-loading")}})}else woodmartThemeModule.$document.trigger("wdAddProductToWishlist",[d,r,n.data("nonce"),function(){(i=t(".wd-popup-wishlist")).addClass("wd-added"),i.addClass("wd-in"),i.removeClass("wd-create-group"),e.removeClass("loading")}])}),woodmartThemeModule.$body.on("click",".wd-wishlist-back-btn",function(o){o.preventDefault(),t(this).parents(".wd-popup-wishlist").removeClass("wd-create-group")}),woodmartThemeModule.$body.on("click",".wd-wishlist-back-to-shop",function(o){o.preventDefault(),void 0!==t.fn.magnificPopup&&t.magnificPopup.close()}),woodmartThemeModule.$document.on("wdShowWishlistGroupPopup",function(t,o,e){n(o,e)}),woodmartThemeModule.$document.on("wdUpdateWishlistFragments",function(t,o,e){s(o,e)}),woodmartThemeModule.$document.on("wdWishlistSaveFragments",function(t,o,e){i(o,e)})}function s(o,e=""){setTimeout(function(){t.each(o,function(o,e){var s=t(o);woodmartThemeModule.removeDuplicatedStylesFromHTML(e,function(t){s.replaceWith(t)},s)})},600),i(o,e)}function i(t,s){localStorage.setItem(o,JSON.stringify(t)),sessionStorage.setItem(o,JSON.stringify(t)),localStorage.setItem(woodmart_settings.wishlist_hash_name,s),sessionStorage.setItem(woodmart_settings.wishlist_hash_name,s),Cookies.set(e,s,{expires:parseInt(woodmart_settings.wishlist_cookie_expires),path:woodmart_settings.cookie_path,secure:woodmart_settings.cookie_secure_param})}function n(o,e,s=""){if(void 0!==t.fn.magnificPopup){var i=t(".wd-popup-wishlist").find("ul"),n=t(".wd-wishlist-move-action > a.wd-loading");void 0!==woodmart_settings.wishlist_show_popup&&"more_one"===woodmart_settings.wishlist_show_popup&&2>i.data("group-count")&&!n.length&&!s?woodmartThemeModule.$document.trigger("wdAddProductToWishlist",[o,"",e,""]):(t.magnificPopup?.instance?.isOpen&&(t.magnificPopup.instance.st.removalDelay=0,t.magnificPopup.close()),t.magnificPopup.open({removalDelay:600,closeMarkup:woodmart_settings.close_markup,tLoading:woodmart_settings.loading,fixedContentPos:!0,callbacks:{beforeOpen:function(){this.wrap.addClass("wd-popup-wishlist-wrap"+s)},open:function(){var i=t(this.content[0]),n=i.find(".wd-wishlist-save-btn");i.find("ul").attr("data-product-id",o).attr("data-nonce",e),i.find("ul").find("li").first().trigger("click")," wd-create-group-on-page"===s&&(n.html(n.data("create-text")),setTimeout(function(){i.find(".wd-wishlist-group-name").trigger("focus")},500))," wd-move-action"===s&&n.html(n.data("move-text"))},close:function(){e&&t("a[data-product-id="+o+"]").removeClass("loading");var i=t(this.content[0]);if(" wd-create-group-on-page"===s&&i.find(".wd-wishlist-save-btn").hasClass("loading")){var d=t(".wd-wishlist-content").find(".wd-wishlist-group").last();setTimeout(function(){t("html, body").animate({scrollTop:d.offset().top-100},500)},50)}i.removeClass("wd-create-group"),i.removeClass("wd-added"),i.find(".wd-wishlist-save-btn").removeClass("loading"),i.find(".wd-wishlist-group-name").val(""),i.find(".wd-wishlist-group-list li.wd-current").removeClass("wd-current").find("input").prop("checked",!1),n.removeClass("loading"),setTimeout(function(){a()},600)}},items:{src:".wd-popup-wishlist"}}))}}function a(){if(woodmartThemeModule.supports_html5_storage){var s=JSON.parse(sessionStorage.getItem(o));sessionStorage.getItem(woodmart_settings.wishlist_hash_name)!==Cookies.get(e)&&(s=""),sessionStorage.getItem(o)!==localStorage.getItem(o)&&(s=""),"undefined"==typeof actions||"1"!==actions.is_lang_switched&&"1"!==actions.force_reset||(s=""),s?t.each(s,function(o,e){var s=t(o);woodmartThemeModule.removeDuplicatedStylesFromHTML(e,function(t){s.replaceWith(t)},s)}):d()}else d()}function d(){t.ajax({url:woodmart_settings.ajaxurl,data:{action:"woodmart_get_wishlist_fragments",key:woodmart_settings.wishlist_fragments_nonce},dataType:"json",method:"GET",success:function(t){t.fragments?s(t.fragments,t.hash):console.log("something wrong loading compare data ",t)},error:function(){console.log("We cant remove product compare. Something wrong with AJAX response. Probably some PHP conflict.")}})}},t(document).ready(function(){woodmartThemeModule.wishlistGroup()})}(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]