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='
',a=0;e(c).find(".woocs_auto_switcher_link").each(function(){var c=e(this);if(e(c).attr("data-index",a),a++,!e(c).hasClass("woocs_curr_curr")){var n=e(c).parents("li").clone();e(n).find("a").removeClass("woocs_auto_switcher_link"),e(n).find("a").addClass("nasa-woocs-switcher-link"),r+="- "+e(n).html()+"
"}}),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='',i="";e(s).find(".wmc-currency").each(function(){var c=e(this),a=e(c).clone();if(e(c).hasClass("wmc-active")){var n=e(a).html();e(a).find(".wmc-active-title").length?(e(a).find(".wmc-active-title").prepend(e(a).find(".wmc-currency-symbol")),n=e(a).find(".wmc-active-title").html()):e(a).find("a").length&&(n=e(a).find("a").html()),i=''+n+""}else e(a).find(".wmc-currency-symbol").length&&e(a).find("a").prepend(e(a).find(".wmc-currency-symbol")),r+="- "+e(a).html()+"
"}),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)})});