(function ($) {
  "use strict";
  $("#spa-centric-dismiss-notice").on("click", ".notice-dismiss", function () {
    $.ajax({
      url: ajaxurl,
      data: {
        action: "SPA_CENTRIC_dismissble_notice",
      },
    });
  });
  $("#spa-centric-dashboard-tabs-nav li:first-child").addClass("active");
  $(".tab-content").hide();
  $(".tab-content:first").show();
  $("#spa-centric-dashboard-tabs-nav li").click(function () {
    $("#spa-centric-dashboard-tabs-nav li").removeClass("active");
    $(this).addClass("active");
    $(".tab-content").hide();
    var activeTab = $(this).find("a").attr("href");
    $(activeTab).fadeIn();
    return false;
  });
})(jQuery);
