"use strict";(self.webpackChunkdebug_log_viewer=self.webpackChunkdebug_log_viewer||[]).push([[423],{423:(a,t,e)=>{e.r(t),e(336);var s,l=e(669);(s=l)(document).ready((function(){function a(){s("#alertTabs .nav-link").on("click",(function(a){a.preventDefault();var e=s(this).attr("data-bs-target"),l=s(this).attr("id");s("#alertTabs .nav-link").removeClass("active"),s(this).addClass("active"),s("#alertTabsContent .tab-pane").removeClass("show active"),s(e).addClass("show active");var n,i=new URL(window.location.href),r=l.replace("-tab","");i.searchParams.set("subtab",r),window.history.pushState({},"",i),"#email-alerts"===e?t():"#slack-alerts"===e&&(console.log("Slack alerts tab initialized"),null!==(n=window.debugLogViewer)&&void 0!==n&&n.isPro)}));var a=new URL(window.location.href).searchParams.get("subtab");a&&"slack-alerts"===a?s("#slack-alerts-tab").trigger("click"):(s("#email-alerts-tab").addClass("active"),s("#email-alerts").addClass("show active"),t())}function t(){console.log("Email alerts tab initialized")}s("#alerts-content").length&&s("#alertTabs").length&&a(),s(document).on("shown.bs.tab",'button[data-bs-target="#alerts-content"]',(function(){s("#alertTabs").length&&a()}))}))}}]);