"use strict";(self.webpackChunkarena_health=self.webpackChunkarena_health||[]).push([[167],{167:(v,c,r)=>{r.r(c),r.d(c,{DashboardModule:()=>f});var l=r(9808),d=r(9560),i=r(5861),t=r(5e3),g=r(5830);function u(n,a){if(1&n&&(t.TgZ(0,"tr")(1,"td"),t._uU(2),t.qZA(),t.TgZ(3,"td"),t._uU(4),t.qZA(),t.TgZ(5,"td"),t._uU(6,"Staff"),t.qZA(),t.TgZ(7,"td"),t._uU(8," Active "),t.qZA()()),2&n){const o=a.$implicit;t.xp6(2),t.Oqu(o.name),t.xp6(2),t.hij(" ",o.username," ")}}function h(n,a){if(1&n&&(t.TgZ(0,"tr")(1,"th"),t._uU(2),t.qZA(),t.TgZ(3,"th"),t._uU(4," Active "),t.qZA()()),2&n){const o=a.$implicit;t.xp6(2),t.Oqu(o.name)}}const p=[{path:"",component:(()=>{class n{constructor(o,e){this.apiService=o,this.router=e,this.users=[],this.organizations=[]}ngOnInit(){var o=this;return(0,i.Z)(function*(){o.getTeams(),o.getOrganization()})()}getOrganization(){var o=this;return(0,i.Z)(function*(){yield o.apiService.getAllOrganizations().subscribe(function(){var e=(0,i.Z)(function*(s){o.organizations=s});return function(s){return e.apply(this,arguments)}}())})()}getTeams(){var o=this;return(0,i.Z)(function*(){yield o.apiService.getAllUsersByRole("team").subscribe(function(){var e=(0,i.Z)(function*(s){o.users=s});return function(s){return e.apply(this,arguments)}}())})()}}return n.\u0275fac=function(o){return new(o||n)(t.Y36(g.s),t.Y36(d.F0))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-admin-dashboard"]],decls:31,vars:2,consts:[[1,"dashboardWrapper"],["id","dashboard",1,"nav","nav-pills","nav-justify"],[1,"nav-item"],["href","#one","data-bs-toggle","tab",1,"nav-link","active"],["href","#two","data-bs-toggle","tab",1,"nav-link"],[1,"tab-content"],["id","one",1,"tab-pane","active"],[1,"tab-pane","active"],[2,"border-top-left-radius","15px","color","#005599","font-weight","bold"],[2,"color","#005599","font-weight","bold"],[2,"border-top-right-radius","15px","color","#005599","font-weight","bold"],[4,"ngFor","ngForOf"],["id","two",1,"tab-pane"],[1,"tab-pane"],[2,"border-top-left-radius","20px","color","#005599","font-weight","bold"],[2,"border-top-right-radius","20px","color","#005599","font-weight","bold"]],template:function(o,e){1&o&&(t.TgZ(0,"div",0)(1,"ul",1)(2,"li",2)(3,"a",3),t._uU(4,"Arena Team"),t.qZA()(),t.TgZ(5,"li",2)(6,"a",4),t._uU(7,"Organization"),t.qZA()()(),t.TgZ(8,"div",5)(9,"div",6)(10,"table",7)(11,"thead")(12,"th",8),t._uU(13,"Name"),t.qZA(),t.TgZ(14,"th",9),t._uU(15,"Email Id"),t.qZA(),t.TgZ(16,"th",9),t._uU(17,"Designation"),t.qZA(),t.TgZ(18,"th",10),t._uU(19,"Status"),t.qZA()(),t.TgZ(20,"tbody"),t.YNc(21,u,9,2,"tr",11),t.qZA()()(),t.TgZ(22,"div",12)(23,"table",13)(24,"thead")(25,"th",14),t._uU(26,"Organization"),t.qZA(),t.TgZ(27,"th",15),t._uU(28,"Status"),t.qZA()(),t.TgZ(29,"tbody"),t.YNc(30,h,5,1,"tr",11),t.qZA()()()()()),2&o&&(t.xp6(21),t.Q6J("ngForOf",e.users),t.xp6(9),t.Q6J("ngForOf",e.organizations))},directives:[l.sg],styles:[".dashboardWrapper[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]{width:100%;box-shadow:0 0 3px #d3d3d3;border-radius:15px}.dashboardWrapper[_ngcontent-%COMP%]{padding:0 30px}.dashboardWrapper[_ngcontent-%COMP%]   .nav[_ngcontent-%COMP%]{margin-bottom:30px}.nav-item[_ngcontent-%COMP%]{width:15rem;text-align:center}table[_ngcontent-%COMP%]{font-size:16px}thead[_ngcontent-%COMP%]{background-color:#f7f7f7;border-radius:20px}tr[_ngcontent-%COMP%]{border-bottom:1px solid var(--bs-gray-200)}tr[_ngcontent-%COMP%]:last-child{border:none}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{text-align:inherit;padding:15px;color:#757575;font-weight:400}.nav-pills[_ngcontent-%COMP%]   .nav-link.active[_ngcontent-%COMP%], .nav-pills[_ngcontent-%COMP%]   .show[_ngcontent-%COMP%] > .nav-link[_ngcontent-%COMP%]{color:var(--bs-nav-pills-link-active-color);background-color:#059}.nav-link[_ngcontent-%COMP%]{color:#757575;height:44px;font-size:16px}"]}),n})()}];let b=(()=>{class n{}return n.\u0275fac=function(o){return new(o||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[d.Bz.forChild(p)],d.Bz]}),n})(),f=(()=>{class n{}return n.\u0275fac=function(o){return new(o||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[l.ez,b]]}),n})()}}]);