!function(n){woodmartThemeModule.$document.on("wdBackHistory wdProductsTabsLoaded wdSearchFullScreenContentLoaded wdActionAfterAddToCart wdShopPageInit wdArrowsLoadProducts wdLoadMoreLoadProducts wdUpdateWishlist wdQuickViewOpen wdQuickShopSuccess wdProductBaseHoverIconsResize wdRecentlyViewedProductLoaded updated_checkout updated_cart_totals",function(){woodmartThemeModule.btnsToolTips()}),woodmartThemeModule.$document.on("wdUpdateTooltip",function(t,e){woodmartThemeModule.updateTooltip(e)}),n.each(["frontend/element_ready/wd_products.default","frontend/element_ready/wd_products_tabs.default","frontend/element_ready/wd_single_product_nav.default","frontend/element_ready/wd_single_product_size_guide_button.default","frontend/element_ready/wd_single_product_compare_button.default","frontend/element_ready/wd_single_product_wishlist_button.default"],function(t,e){woodmartThemeModule.wdElementorAddAction(e,function(){woodmartThemeModule.btnsToolTips()})}),woodmartThemeModule.btnsToolTips=function(){function o(t,e){!t.hasClass("wd-hint")&&!t.closest(".wd-review-likes").length&&woodmartThemeModule.windowWidth<=1024||t.hasClass("wd-tooltip-inited")||t.hasClass("wd-with-html")||(t.tooltip({animation:!1,container:"body",trigger:"hover",boundary:"window",placement:e,title:function(){var t=n(this);return 0<t.find(".added_to_cart").length||0<t.find(".add_to_cart_button").length?t.find(".add_to_cart_button").text():0<t.find(".wd-swatch-text").length?t.find(".wd-swatch-text").text():t.closest(".wd-review-likes").length?woodmart_settings.review_likes_tooltip:t.text()}}),t.tooltip("show"),t.addClass("wd-tooltip-inited"))}function d(t){if(!t.is('[class*="wd-tooltip-"]'))return"top";let e="top";var o=t.attr("class").split(" ");for(let t=0;t<o.length;t++)0===o[t].indexOf("wd-tooltip-")&&(e=o[t].replace("wd-tooltip-",""));return"start"===e?e=woodmartThemeModule.$body.hasClass("rtl")?"right":"left":"end"===e&&(e=woodmartThemeModule.$body.hasClass("rtl")?"left":"right"),e}n(woodmart_settings.tooltip_top_selector).on("mouseenter",function(){var t=n(this);o(t,d(t))}),document.querySelectorAll(woodmart_settings.tooltip_top_selector).forEach(t=>{t.addEventListener("touchstart",function(t){var e=n(this);o(e,d(e))},{passive:!0})}),n(woodmart_settings.tooltip_left_selector).on("mouseenter",function(){o(n(this),woodmartThemeModule.$body.hasClass("rtl")?"right":"left")}),document.querySelectorAll(woodmart_settings.tooltip_left_selector).forEach(t=>{t.addEventListener("touchstart",function(t){o(n(this),woodmartThemeModule.$body.hasClass("rtl")?"right":"left")},{passive:!0})}),n(".wd-tooltip.wd-with-html").each(function(){var e,o=n(this);o.on("mouseenter touchstart",{passive:!0},function(){var t;n(this).hasClass("wd-tooltip-inited")||((t=o).tooltip({animation:!1,container:"body",trigger:"manual",boundary:"window",placement:"top",sanitize:!1,html:!0,title:function(){return n(this).html()}}),t.addClass("wd-tooltip-inited")),o.tooltip("show"),n("#"+o.attr("aria-describedby")).on("mouseenter touchstart",{passive:!0},function(){clearTimeout(e)}).on("mouseleave touchend",{passive:!0},function(){clearTimeout(e),e=setTimeout(function(){o.tooltip("hide")},100)})}),o.on("mouseleave touchend",{passive:!0},function(){clearTimeout(e),e=setTimeout(function(){o.tooltip("hide"),n("#"+o.attr("aria-describedby")).off("mouseenter mouseleave touchstart touchend")},100)})})},woodmartThemeModule.updateTooltip=function(t){t=n(t);t.hasClass("wd-tooltip-inited")||(t=t.parent(".wd-tooltip-inited")),woodmartThemeModule.windowWidth<=1024||!t.hasClass("wd-tooltip-inited")||void 0===n.fn.tooltip||!t.is(":hover")||t.tooltip("show")},n(document).ready(function(){woodmartThemeModule.btnsToolTips()})}(jQuery);