File: /home/salamatk/takarzan.ir/wp-content/themes/xts-luman/js/scripts/pricePlanSwitcherElement.min.js
(a=>{XTSThemeModule.xtsElementorAddAction("frontend/element_ready/xts_price_plan_switcher.default",function(){XTSThemeModule.pricePlanSwitcherElement()}),XTSThemeModule.pricePlanSwitcherElement=function(){a(".xts-nav-pp-switcher li").on("click","a",function(t){t.preventDefault();var t=a(this).parent(),i=t.data("action");t.siblings().removeClass("xts-active"),t.addClass("xts-active"),a(".xts-price-plan").each(function(){var t=a(this),e=t.find(".xts-plan-pricing"),n=e.data("pricing");(n[i].price||n[i].fraction||n[i].title)&&(e.find(".xts-plan-price").text(n[i].price),e.find(".xts-plan-fraction").text(n[i].fraction),e.parent().find(".xts-plan-pricing-subtitle").text(n[i].title)),n[i].button_data&&(t.find(".xts-button").attr("href",n[i].button_data.href),t.find(".xts-button").data("product_id",n[i].button_data.product_id),t.find(".xts-button").data("product_sku",n[i].button_data.product_sku))})})},a(document).ready(function(){XTSThemeModule.pricePlanSwitcherElement()})})(jQuery);