File: /home/salamatk/takarzan.ir/wp-content/themes/xts-luman/js/scripts/productHoverSummary.min.js
(d=>{XTSThemeModule.$document.on("xtsSingleProductAccordionClick xtsWishlistRemoveSuccess xtsProductTabLoaded xtsElementorProductTabsReady xtsPjaxComplete xtsProductLoadMoreReInit",function(){XTSThemeModule.productHoverSummary()}),d.each(["frontend/element_ready/xts_products.default","frontend/element_ready/xts_single_product_tabs.default"],function(t,e){XTSThemeModule.xtsElementorAddAction(e,function(){XTSThemeModule.productHoverSummary()})}),XTSThemeModule.productHoverSummary=function(){var t=d(".xts-prod-design-summary .xts-col, .xts-prod-design-summary-alt .xts-col");function s(t){var e;0<t.parents(".xts-carousel").length||(e=t.find(".xts-product-hide-info").outerHeight(),t.find(".xts-product-bg").css({marginBottom:-e}),t.addClass("xts-ready"))}t.on("mouseenter mousemove touchstart",function(){var t=d(this).find(".xts-product"),e=t.find(".xts-more-desc");e.hasClass("xts-height-calculated")||(t.imagesLoaded(function(){s(t)}),s(t),e.addClass("xts-height-calculated"))}),t.on("click",".xts-more-desc-btn",function(t){t.preventDefault(),s(d(this).parents(".xts-product"))}),d(".xts-prod-design-summary .xts-col, .xts-prod-design-summary-alt .xts-col, .xts-prod-design-summary-alt-2 .xts-col").on("mouseenter touchstart",function(){var t,e=d(this).find(".xts-product").find(".xts-more-desc"),s=e.find(".xts-more-desc-btn"),o=e.find(".xts-more-desc-inner");e.hasClass("xts-more-desc-calculated")||(t=e.outerHeight(),10<(o=o.outerHeight()-t)?s.addClass("xts-shown"):0<o&&e.css("height",t+o),e.addClass("xts-more-desc-calculated"))}),d(".xts-more-desc-btn").on("click",function(t){t.preventDefault(),d(this).parent().addClass("xts-opened")})},d(document).ready(function(){XTSThemeModule.productHoverSummary()})})(jQuery);