jQuery(document).ready(function(e){"use strict";if(e(".nasa-currencies-3rd .nasa-currency-switcher").length){if(e(".woocs_auto_switcher").length){var c=e(".woocs_auto_switcher"),r='";var n=e(c).find(".woocs_curr_curr").clone();e(n).removeClass("woocs_auto_switcher_link"),e(n).removeClass("woocs_curr_curr"),e(n).addClass("nasa-crc nasa-woocs-crc"),e(".nasa-currencies-3rd").prepend(n),e(".nasa-currency-switcher").append(r),e(".nasa-currency-switcher, .nasa-currencies-3rd").removeClass("hidden-tag")}if(e(".wmc-list-currencies").length){var s=e(".wmc-list-currencies"),r='",e(".nasa-currencies-3rd").prepend(i),e(".nasa-currency-switcher").append(r),e(".nasa-currency-switcher, .nasa-currencies-3rd").removeClass("hidden-tag"),e(s).parents(".woocommerce-multi-currency").length&&e(s).parents(".woocommerce-multi-currency").addClass("hidden-tag")}}e("body").on("click",".nasa-woocs-switcher-link",function(){var c=e(this).attr("data-index");e('.woocs_auto_switcher_link[data-index="'+c+'"]').length&&e('.woocs_auto_switcher_link[data-index="'+c+'"]').trigger("click")}),e("body").on("nasa_after_render_currencies_switcher",function(c,r){e(r).find(".nasa-currency-switcher").length&&(e(r).addClass("menu-item-has-children root-item li_accordion"),e(r).find(".nasa-currency-switcher").addClass("nav-dropdown")),c.preventDefault()});var t="";e("body").on("nasa_before_load_ajax",function(){if(e(".nasa-currencies-3rd").length){var c=e(".nasa-currencies-3rd").clone();t=e(c).html()}}),e("body").on("nasa_after_loaded_ajax_complete",function(){e(".nasa-currencies-3rd").length&&(e(".nasa-currencies-3rd").html(t),e(".nasa-currencies-3rd").removeClass("hidden-tag")),t=""}),e("body").on("click","a[data-currency]",function(){"undefined"!=typeof _popstate_reload&&(_popstate_reload=!1)})});