PATH:
home
/
thebhoeo
/
public_html
/
wp-content
/
themes
/
woodmart
/
js
/
scripts
/
wc
!function(e){"use strict";woodmartThemeModule.$document.on("wdReplaceMainGallery",function(){woodmartThemeModule.productVideoGallery()}),e.each(["frontend/element_ready/wd_single_product_gallery.default"],function(e,d){woodmartThemeModule.wdElementorAddAction(d,function(){woodmartThemeModule.productVideoGallery()})}),woodmartThemeModule.productVideoGallery=function(){var d=e(".woocommerce-product-gallery__wrapper:not(.quick-view-gallery)"),a=d.parents(".woocommerce-product-gallery"),i=e(".variations_form");function o(e){var d,a=e.find("iframe"),i=e.find(".wd-play-video"),o=new YT.Player(a[0],{events:{onReady:function(){e.hasClass("wd-video-muted")?o.mute():o.unMute(),o.setLoop(!0),e.removeClass("wd-loading"),!e.hasClass("wd-video-playing")||woodmartThemeModule.$window.width()<=768&&a.attr("src").indexOf("autoplay=1")&&a.attr("src").indexOf("mute=1")?(e.addClass("wd-video-playing"),o.playVideo()):(e.removeClass("wd-video-playing"),o.pauseVideo())},onStateChange:function(a){e.hasClass("wd-overlay-hidden")&&(a.data===YT.PlayerState.PLAYING?t("hide"):a.data!==YT.PlayerState.PAUSED||e.hasClass("wd-video-design-native")||t("show")),d=a.data}}});i.on("click",function(){d!==YT.PlayerState.UNSTARTED?e.hasClass("wd-video-playing")?(e.removeClass("wd-video-playing"),"function"==typeof o.pauseVideo&&o.pauseVideo()):(e.addClass("wd-video-playing"),"function"==typeof o.playVideo&&o.playVideo()):"function"==typeof o.playVideo&&o.playVideo()})}function n(e){var d,a=e.find("iframe"),i=e.find(".wd-play-video"),o=new Vimeo.Player(a);o.setLoop(!0),e.hasClass("wd-video-muted")?o.setVolume(0):o.setVolume(1),o.on("play",function(){clearInterval(d),e.addClass("wd-video-playing"),e.removeClass("wd-loading"),e.hasClass("wd-overlay-hidden")&&t("hide")}),!e.hasClass("wd-video-design-native")&&e.hasClass("wd-overlay-hidden")&&o.on("pause",function(){t("show")}),e.hasClass("wd-video-playing")?(o.pause(),e.removeClass("wd-video-playing")):o.ready().then(function(){d=setInterval(function(){o.play()},2e3)}),e.hasClass("wd-loaded")&&(e.addClass("wd-video-playing"),e.removeClass("wd-loading"),e.hasClass("wd-overlay-hidden")&&t("hide"),e.removeClass("wd-loaded")),i.on("click",function(){e.hasClass("wd-video-playing")?(e.removeClass("wd-video-playing"),o.pause()):(e.addClass("wd-video-playing"),o.play())})}function t(e){d.hasClass("wd-carousel")&&("hide"===e?a.addClass("wd-hide-overlay-info"):"show"===e&&a.removeClass("wd-hide-overlay-info"))}woodmartThemeModule.$document.on("click",".wd-carousel-item.wd-with-video .wd-play-video",function(d){d.preventDefault();var a=e(this).parents(".wd-carousel-item"),i=a.find("iframe");if(i.length||(i=a.find("video")),!a.hasClass("wd-inited")&&i.length){var s=i.attr("src");s||(s=i.data("lazy-load"),i.attr("src",s)),s&&(a.hasClass("wd-video-playing")||a.addClass("wd-loading"),function(d,a){if(a.addClass("wd-inited"),d.indexOf("vimeo.com")+1)"undefined"==typeof Vimeo||void 0===Vimeo.Player?e.getScript(woodmart_settings.vimeo_library_url,function(){i=setInterval(function(){"undefined"!=typeof Vimeo&&(clearInterval(i),n(a))},100)}):n(a);else if(d.indexOf("youtube.com")+1){var i;"undefined"==typeof YT||void 0===YT.Player?(a.hasClass("wd-video-playing")&&a.find(".wd-video-actions").addClass("wd-loading"),e.getScript("https://www.youtube.com/player_api",function(){i=setInterval(function(){void 0!==YT.Player&&(clearInterval(i),o(a),a.find(".wd-video-actions").removeClass("wd-loading"))},100)})):o(a)}else!function(e){var d=e.find("video"),a=e.find(".wd-play-video");d.on("loadedmetadata",function(){e.removeClass("wd-loading"),d[0].play(),e.addClass("wd-video-playing")}),e.hasClass("wd-overlay-hidden")&&(d.on("play",function(){t("hide")}),e.hasClass("wd-video-design-native")||d.on("pause",function(){t("show")})),e.hasClass("wd-video-muted")?d.prop("muted",!0):d.prop("muted",!1),e.hasClass("wd-video-playing")?(d[0].pause(),e.removeClass("wd-video-playing")):e.hasClass("wd-loaded")&&(e.removeClass("wd-loading"),d[0].play(),e.addClass("wd-video-playing")),a.on("click",function(){e.hasClass("wd-video-playing")?(d[0].pause(),e.removeClass("wd-video-playing")):(e.addClass("wd-video-playing"),d[0].play())})}(a)}(s,a))}}),woodmartThemeModule.$document.on("wdPhotoSwipeBeforeInited",function(d,a){a.listen("initialLayout",function(){void 0!==a.items&&a.items&&e.each(a.items,function(e,d){void 0!==d.mainElement&&d.mainElement.hasClass("wd-video-playing")&&d.mainElement.hasClass("wd-inited")&&d.mainElement.find(".wd-play-video").trigger("click")})}),a.listen("close",function(){void 0!==a.currItem.container&&e(a.currItem.container).parents(".pswp__container").find(".pswp__item").each(function(){var d=e(this).find(".wd-with-video.wd-video-playing");d.length&&d.find(".wd-play-video").trigger("click")})})}),d.find(".wd-carousel-item.wd-with-video").length&&document.querySelector(".woocommerce-product-gallery__wrapper:not(.quick-view-gallery)").addEventListener("wdSlideChange",function(e){var d=e.target.swiper.slides[e.target.swiper.activeIndex];d.classList.contains("wd-overlay-hidden")&&(d.classList.contains("wd-video-playing")||d.classList.contains("wd-video-design-native")&&d.classList.contains("wd-video-hide-thumb"))?t("hide"):!a.hasClass("wd-hide-overlay-info")||d.classList.contains("wd-overlay-hidden")&&d.classList.contains("wd-video-playing")||t("show")}),i.length&&i.on("show_variation",function(a,i){d.find(".wd-carousel-item.wd-video-playing").each(function(){var d=e(this);(d.find(".wp-post-image").length||d.hasClass("wd-inited"))&&d.find(".wd-play-video").trigger("click")})})},e(document).ready(function(){woodmartThemeModule.productVideoGallery()})}(jQuery),window.addEventListener("load",function(){if((document.querySelector("script[src*='googletagmanager.com']")||document.querySelector("#www-widgetapi-script"))&&document.querySelector(".woocommerce-product-gallery .wd-carousel-item.wd-with-video")){const e=document.createElement("script");e.src="//www.youtube.com/iframe_api";const d=document.getElementsByTagName("script")[0];d.parentNode.insertBefore(e,d)}});
[+]
..
[-] 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]