import{a as B,b as F}from"./chunk-MOALSGA2.js";import{a as I}from"./chunk-5OVEFISH.js";import"./chunk-ECIPGGFF.js";import{a as j}from"./chunk-DZT3OJCU.js";import"./chunk-OP2OM2NB.js";import"./chunk-YFKO2YMD.js";import{a as R}from"./chunk-KMX5PVQZ.js";import{a as V}from"./chunk-D5M6Y5VI.js";import"./chunk-QU4JA34D.js";import"./chunk-TAYSHZWB.js";import"./chunk-GDIYNKGM.js";import"./chunk-7WODUV7D.js";import"./chunk-ZRBE56L3.js";import{b as A}from"./chunk-EP2DJHVF.js";import"./chunk-EQ67X7AF.js";import"./chunk-KHAMQZND.js";import{f as D}from"./chunk-KANMOB5U.js";import{d as q}from"./chunk-D3YCQTGW.js";import"./chunk-OBT56KUD.js";import{m as P}from"./chunk-NMCXU7N6.js";import{$b as g,Ba as M,Bc as p,Dc as c,Jc as z,Ma as v,Na as u,Nb as w,Rb as d,Uc as C,Vc as H,Yb as h,_b as _,ac as x,bc as t,cc as o,dc as y,ea as L,hc as S,mc as b,nb as N,ob as U,oc as k,sb as m,tb as f,u as E}from"./chunk-IYD54RT7.js";import"./chunk-RVFOIZLJ.js";function W(e,i){if(e&1&&(t(0,"a",4)(1,"div",7)(2,"div",8)(3,"mat-icon"),p(4),o()(),t(5,"div",9),p(6),o()()()),e&2){let r=i.$implicit;d("matTooltip",r.description)("routerLink",r.routerLink),m(4),c(" ",r.icon," "),m(2),c(" ",r.label," ")}}function $(e,i){if(e&1){let r=S();t(0,"a",10),b("click",function(){let a=v(r),n=k();return u(n.openLink(a.activeMqUrl))}),t(1,"div",7)(2,"div",8)(3,"mat-icon"),p(4," flash_on "),o()(),t(5,"div",9),p(6," ActiveMQ "),o()()()}}function O(e,i){if(e&1){let r=S();y(0,"iframe",11),t(1,"a",12),b("click",function(){let a=v(r),n=k();return u(n.openLink(a))}),t(2,"div",7)(3,"div",8)(4,"mat-icon"),p(5,"open_in_new"),o()(),t(6,"div",9),p(7," Open in New Window "),o()()()}e&2&&d("src",i,U)}function G(e,i){e&1&&p(0," No data ")}function J(e,i){if(e&1&&(t(0,"a",4)(1,"div",7)(2,"div",8)(3,"mat-icon"),p(4),o()(),t(5,"div",9),p(6),o()()()),e&2){let r=i.$implicit;d("matTooltip",r.description)("routerLink",r.routerLink),m(4),c(" ",r.icon," "),m(2),c(" ",r.label," ")}}var Q=I[1].children.filter(e=>e.label!=="Server Health Dashboard")||[],K=I[1].children.find(e=>e.label==="Server Health Dashboard")||A,X=(()=>{let i=class i{get importantNavItems(){return Q.filter(l=>l.label!=="Http Headers")}get nonImportantNavItems(){return Q.filter(l=>l.label==="Http Headers")}get currNavItem(){return K}constructor(l,a){this.serverHealthHttpService=l,this.sanitizer=a,this.prometheusUrl=this.serverHealthHttpService.PrometheusUrl.pipe(E(n=>{let s=n;return this.sanitizer.bypassSecurityTrustResourceUrl(s)})),this.activeMq=this.serverHealthHttpService.ActiveMq.pipe(L({bufferSize:1,refCount:!0}),V())}openLink(l){let a=this.sanitizer.sanitize(N.URL,l);window.open(a,"_blank")}};i.\u0275fac=function(a){return new(a||i)(f(F),f(q))},i.\u0275cmp=M({type:i,selectors:[["osee-server-health"]],standalone:!0,features:[z],decls:16,vars:9,consts:[[1,"tw-flex","tw-h-full","tw-flex-col"],[3,"icon","name","description"],[1,"tw-flex","tw-justify-center"],[1,"tw-grid","tw-flex-1","tw-grid-cols-5","tw-gap-8","tw-p-8","tw-pt-0"],["queryParamsHandling","merge",1,"tw-w-full","tw-rounded-md","tw-bg-primary-500","tw-p-4","tw-text-foreground","tw-shadow-md","hover:tw-bg-primary-700","dark:tw-bg-primary-600","dark:hover:tw-bg-primary-900",3,"matTooltip","routerLink"],["matTooltip","External Link to ActiveMQ Configuration Page",1,"tw-w-full","tw-rounded-md","tw-bg-primary-500","tw-p-4","tw-text-foreground","tw-shadow-md","hover:tw-bg-primary-700","dark:tw-bg-primary-600","dark:hover:tw-bg-primary-900"],[1,"tw-flex","tw-flex-col","tw-items-center","tw-justify-center","tw-px-8","tw-pb-8"],[1,"tw-flex","tw-items-center"],[1,"tw-px-4","tw-text-white"],[1,"tw-flex","tw-flex-col","tw-items-start","tw-text-lg","tw-font-bold","tw-text-white"],["matTooltip","External Link to ActiveMQ Configuration Page",1,"tw-w-full","tw-rounded-md","tw-bg-primary-500","tw-p-4","tw-text-foreground","tw-shadow-md","hover:tw-bg-primary-700","dark:tw-bg-primary-600","dark:hover:tw-bg-primary-900",3,"click"],["frameborder","0",1,"tw-min-h-[900px]","tw-min-w-full",3,"src"],[1,"tw-w-full","tw-rounded-md","tw-bg-primary-500","tw-p-4","tw-text-foreground","tw-shadow-md","hover:tw-bg-primary-700","dark:tw-bg-primary-600","dark:hover:tw-bg-primary-900",3,"click"]],template:function(a,n){if(a&1&&(t(0,"div",0),y(1,"osee-server-health-page-header",1),t(2,"div",2)(3,"div",3),g(4,W,7,4,"a",4,_),w(6,$,7,0,"a",5),C(7,"async"),o()(),t(8,"div",6),w(9,O,8,1),C(10,"async"),w(11,G,1,0),o(),t(12,"div",2)(13,"div",3),g(14,J,7,4,"a",4,_),o()()()),a&2){let s,T;m(),d("icon",n.currNavItem.icon)("name",n.currNavItem.label)("description",n.currNavItem.description),m(3),x(n.importantNavItems),m(2),h(6,(s=H(7,5,n.activeMq))?6:-1,s),m(3),h(9,(T=H(10,7,n.prometheusUrl))?9:11,T),m(5),x(n.nonImportantNavItems)}},dependencies:[P,D,B,j,R],encapsulation:2});let e=i;return e})(),se=X;export{X as ServerHealthComponent,se as default};
