import{b as q}from"./chunk-DBC4OESO.js";import{a as A}from"./chunk-XXO64O37.js";import{a as z}from"./chunk-M7AISLOK.js";import{c as R,d as K}from"./chunk-URVBFPQY.js";import{a as S}from"./chunk-KMX5PVQZ.js";import{c as O,d as b,g as x,h as C,j as M}from"./chunk-GDIYNKGM.js";import{e as P}from"./chunk-L4FY67IO.js";import{a as W}from"./chunk-ZVZZ3QVR.js";import{a as H}from"./chunk-LMRN7T6T.js";import{c as U}from"./chunk-KHAMQZND.js";import{d as h}from"./chunk-KANMOB5U.js";import{m as T}from"./chunk-NMCXU7N6.js";import{Ac as F,Ba as m,Bc as u,Cc as j,Dc as B,Jc as d,Nb as p,Ob as D,Pb as L,Rb as _,Uc as f,Vc as v,Yb as g,bc as i,cc as a,dc as s,mc as w,oc as E,sb as l,tb as k,u as N,va as y}from"./chunk-IYD54RT7.js";var X=()=>[import("./chunk-5BOFY4US.js").then(t=>t.OktaSignComponent)];function Y(t,e){if(t&1&&(i(0,"div",5),u(1),f(2,"async"),a()),t&2){let I,n=E();l(),B(" ",(I=v(2,1,n.userInfo))==null?null:I.name," ")}}function Z(t,e){t&1&&(i(0,"div",5),u(1," Not signed into OSEE. "),a())}function $(t,e){t&1&&s(0,"osee-okta-sign")}var J=(()=>{let e=class e{constructor(n){this.accountService=n,this.userInfo=this.accountService.user,this.opened=!1,this.authScheme=U.authScheme}};e.\u0275fac=function(o){return new(o||e)(k(W))},e.\u0275cmp=m({type:e,selectors:[["osee-display-user"]],standalone:!0,features:[d],decls:14,vars:5,consts:[["userTrigger","matMenu"],["data-cy","user-overflow-btn",1,"tw-flex","tw-items-center","tw-justify-center","tw-gap-[0.35em]","hover:tw-cursor-pointer","hover:tw-opacity-95",3,"matMenuTriggerFor"],[1,"tw-flex"],[1,"tw-h-10","tw-w-10","tw-rounded-full","tw-bg-background-tooltip","tw-bg-cover","tw-text-[2.5rem]","tw-text-foreground-icon"],[1,"tw-flex","tw-flex-col","tw-items-center","tw-overflow-y-hidden"],[1,"tw-px-2","tw-pb-2","tw-pt-1","tw-text-center","tw-text-lg","tw-text-foreground-base"],["name","userMenu"]],template:function(o,r){if(o&1&&(i(0,"div")(1,"div",1)(2,"div",2)(3,"mat-icon",3),u(4,"account_circle"),a()()()(),i(5,"mat-menu",4,0),p(7,Y,3,3,"div",5),f(8,"async"),p(9,Z,2,0)(10,$,1,0),D(11,10,X),s(13,"router-outlet",6),a()),o&2){let c,V=F(6);l(),_("matMenuTriggerFor",V),l(6),g(7,((c=v(8,3,r.userInfo))==null?null:c.name)!=="Sentinel"?7:9),l(4),L(r.authScheme==="OKTA")}},dependencies:[h,T,K,S,R],encapsulation:2,data:{animation:[O("expandButton",[C("closed",x({transform:"rotate(0)"})),C("open",x({transform:"rotate(-180deg)"})),M("open => closed",b("250ms cubic-bezier(0.4, 0.0, 0.2, 1)")),M("closed => open",b("250ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}});let t=e;return t})();function ee(t,e){t&1&&s(0,"img",4)}function te(t,e){t&1&&s(0,"mat-progress-spinner",8)}var Q=(()=>{let e=class e{constructor(){this.loadingService=y(H),this.sideNavService=y(A),this.topLevelNavIcon=this.sideNavService.leftSideNav.pipe(N(n=>n.icon)),this.isLoading=this.loadingService.isLoading,this.oseeToolbar=!0}toggleTopLevelNavIcon(){this.sideNavService.toggleLeftSideNav=""}closeTopLevelNavIcon(){this.sideNavService.closeLeftSideNav=""}};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=m({type:e,selectors:[["osee-toolbar"]],inputs:{oseeToolbar:"oseeToolbar"},standalone:!0,features:[d],decls:14,vars:7,consts:[[1,"tw-h-[6vh]"],[1,"tw-flex","tw-w-full","tw-items-center","tw-justify-between","tw-gap-2"],[1,"tw-flex","tw-items-center","tw-justify-start","tw-gap-2"],["mat-icon-button","",3,"click"],["src","favicon.ico","width","48","height","47"],["name","title",3,"click"],["name","navigationHeader",3,"click"],[1,"tw-flex","tw-items-center","tw-justify-end","tw-gap-2"],["mode","indeterminate","diameter","40"],[3,"click"]],template:function(o,r){o&1&&(i(0,"mat-toolbar",0)(1,"div",1)(2,"span",2)(3,"button",3),w("click",function(){return r.toggleTopLevelNavIcon()}),i(4,"mat-icon"),u(5),f(6,"async"),a()(),p(7,ee,1,0,"img",4),i(8,"router-outlet",5),w("click",function(){return r.closeTopLevelNavIcon()}),a(),i(9,"router-outlet",6),w("click",function(){return r.closeTopLevelNavIcon()}),a()()(),i(10,"span",7),p(11,te,1,0,"mat-progress-spinner",8),f(12,"async"),i(13,"osee-display-user",9),w("click",function(){return r.closeTopLevelNavIcon()}),a()()()),o&2&&(l(5),j(v(6,3,r.topLevelNavIcon)),l(2),g(7,r.oseeToolbar?7:-1),l(4),g(11,v(12,5,r.isLoading)==="true"?11:-1))},dependencies:[h,T,J,q,P,S,z],encapsulation:2});let t=e;return t})();var oe=(()=>{let e=class e{constructor(){}};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=m({type:e,selectors:[["osee-osee-toolbar"]],standalone:!0,features:[d],decls:1,vars:1,consts:[[3,"oseeToolbar"]],template:function(o,r){o&1&&s(0,"osee-toolbar",0),o&2&&_("oseeToolbar",!0)},dependencies:[Q],encapsulation:2});let t=e;return t})(),Me=oe;export{Q as a,oe as b,Me as c};
