!function(t){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)}),t.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 e(e,o){!e.hasClass("wd-hint")&&!e.closest(".wd-review-likes").length&&woodmartThemeModule.windowWidth<=1024||e.hasClass("wd-tooltip-inited")||e.hasClass("wd-with-html")||(e.tooltip({animation:!1,container:"body",trigger:"hover",boundary:"window",placement:o,title:function(){var e=t(this);return e.find(".added_to_cart").length>0||e.find(".add_to_cart_button").length>0?e.find(".add_to_cart_button").text():e.find(".wd-swatch-text").length>0?e.find(".wd-swatch-text").text():e.closest(".wd-review-likes").length?woodmart_settings.review_likes_tooltip:e.text()}}),e.tooltip("show"),e.addClass("wd-tooltip-inited"))}function o(t){if(!t.is('[class*="wd-tooltip-"]'))return"top";let e="top";const o=t.attr("class").split(" ");for(let d=0;d<o.length;d++)0===o[d].indexOf("wd-tooltip-")&&(e=o[d].replace("wd-tooltip-",""));return"start"===e?e=woodmartThemeModule.$body.hasClass("rtl")?"right":"left":"end"===e&&(e=woodmartThemeModule.$body.hasClass("rtl")?"left":"right"),e}t(woodmart_settings.tooltip_top_selector).on("mouseenter",function(){var d=t(this);e(d,o(d))}),document.querySelectorAll(woodmart_settings.tooltip_top_selector).forEach(d=>{d.addEventListener("touchstart",function(d){var n=t(this);e(n,o(n))},{passive:!0})}),t(woodmart_settings.tooltip_left_selector).on("mouseenter",function(){e(t(this),woodmartThemeModule.$body.hasClass("rtl")?"right":"left")}),document.querySelectorAll(woodmart_settings.tooltip_left_selector).forEach(o=>{o.addEventListener("touchstart",function(o){e(t(this),woodmartThemeModule.$body.hasClass("rtl")?"right":"left")},{passive:!0})}),t(".wd-tooltip.wd-with-html").each(function(){var e,o=t(this);o.on("mouseenter touchstart",{passive:!0},function(){var d;t(this).hasClass("wd-tooltip-inited")||((d=o).tooltip({animation:!1,container:"body",trigger:"manual",boundary:"window",placement:"top",sanitize:!1,html:!0,title:function(){return t(this).html()}}),d.addClass("wd-tooltip-inited")),o.tooltip("show"),t("#"+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"),t("#"+o.attr("aria-describedby")).off("mouseenter mouseleave touchstart touchend")},100)})})},woodmartThemeModule.updateTooltip=function(e){var o=t(e);o.hasClass("wd-tooltip-inited")||(o=o.parent(".wd-tooltip-inited")),woodmartThemeModule.windowWidth<=1024||!o.hasClass("wd-tooltip-inited")||void 0===t.fn.tooltip||!o.is(":hover")||o.tooltip("show")},t(document).ready(function(){woodmartThemeModule.btnsToolTips()})}(jQuery);