File: /home/salamatk/takarzan.ir/wp-content/themes/xts-luman/js/scripts/tooltip.min.js
(i=>{XTSThemeModule.$document.on("xtsWishlistRemoveSuccess xtsProductTabLoaded xtsElementorProductTabsReady xtsProductLoadMoreReInit xtsPortfolioPjaxComplete xtsProductQuickViewOpen xtsPjaxComplete updated_checkout updated_cart_totals xtsUpdateMiniCartItem",function(){XTSThemeModule.tooltip()}),XTSThemeModule.$document.on("xtsPjaxStart xtsPortfolioPjaxStart",function(){XTSThemeModule.hideTooltip()}),XTSThemeModule.$document.on("xtsUpdateTooltip",function(t,e){XTSThemeModule.updateTooltip(e)}),i.each(["frontend/element_ready/xts_products.default","frontend/element_ready/xts_single_product_tabs.default"],function(t,e){XTSThemeModule.xtsElementorAddAction(e,function(){XTSThemeModule.tooltip()})});var t={left:{selectors:xts_settings.tooltip_left_selector},top:{selectors:xts_settings.tooltip_top_selector},right:{selectors:""}};XTSThemeModule.tooltip=function(){XTSThemeModule.isTabletSize||void 0===i.fn.tooltip||i.each(t,function(e,t){i(t.selectors).on("mouseenter touchstart",function(){var t,o=i(this);o.hasClass("xts-tooltip-inited")||(o.tooltip({animation:!1,container:"body",trigger:"hover",boundary:"window",placement:"left"===(t=e)&&XTSThemeModule.$body.hasClass("rtl")?"right":"right"===t&&XTSThemeModule.$body.hasClass("rtl")?"left":t,title:function(){return e=(t=o).text(),0<t.find("a").length&&(e=t.find("a").text()),t.data("xts-tooltip")&&(e=t.data("xts-tooltip")),e=0<t.find(".added_to_cart").length?t.find(".add_to_cart_button").text():e;var t,e}}),o.tooltip("show"),o.addClass("xts-tooltip-inited"))})})},XTSThemeModule.hideTooltip=function(){XTSThemeModule.isTabletSize||void 0===i.fn.tooltip||i.each(t,function(t,e){i(e.selectors).tooltip("hide")})},XTSThemeModule.updateTooltip=function(t){!XTSThemeModule.isTabletSize&&i(t).hasClass("xts-tooltip-inited")&&void 0!==i.fn.tooltip&&i(t).is(":hover")&&i(t).tooltip("update").tooltip("show")},i(document).ready(function(){XTSThemeModule.tooltip()})})(jQuery);