"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6744],{856908:function(e,r,t){var n=t(824246);t(827378);var o=t(298784),i=t(69838),s=t(512992),a=t(451809),l=t(516486),c=t(912751),d=t.n(c),u=t(655863);let p=e=>{let{acceptableRoles:r=[],me:t,children:c}=e,u=(0,o.get)(t,"roles")||[];return t&&(0===r.length||r.some(e=>u.includes(e)))?(0,n.jsx)("div",{children:c}):s.Z.IS_CLIENT?t?(0,n.jsx)(l.Z,{}):(0,n.jsx)(a.Z,{params:{returnUrl:(0,i.Z)()},to:d().SIGNIN}):(0,n.jsx)("div",{})};p.defaultProps={acceptableRoles:void 0};let g=(0,o.flow)(u.Z);r.Z=g(p)},451809:function(e,r,t){var n=t(827378),o=t(686677),i=t(512992);let s=e=>{let{params:r,to:t}=e,s=(0,o.useRouter)();return n.useEffect(()=>{i.Z.IS_CLIENT&&s.push(r?{pathname:t,query:r}:t)},[]),null};s.defaultProps={params:void 0},r.Z=s},516486:function(e,r,t){t.d(r,{Z:function(){return P}});var n=t(824246);t(827378);var o=t(141084),i=t(638807),s=t(912751),a=t.n(s),l=t(512709),c=t(452054),d=t(367488);let u=(0,l.ZP)(c.Z)(e=>{let{theme:r}=e;return{["&.".concat(d.Z.root)]:{marginBottom:r.spacing(2),textAlign:"center"}}}),p=(0,l.ZP)(c.Z)(e=>{let{theme:r}=e;return{["&.".concat(d.Z.root)]:{marginBottom:r.spacing(1),textAlign:"center"}}}),g=(0,l.ZP)("div")(()=>({alignItems:"center",display:"flex",flex:1,flexDirection:"column",justifyContent:"center",maxWidth:500})),E=(0,l.ZP)("div")(e=>{let{theme:r}=e;return{alignItems:"center",display:"flex",flex:1,flexDirection:"column",justifyContent:"center",padding:r.spacing(2)}}),m=()=>(0,n.jsx)(E,{children:(0,n.jsxs)(g,{children:[(0,n.jsx)(p,{variant:"h4",children:"Page not found."}),(0,n.jsx)(u,{variant:"body1",children:"The page you were looking for does not exist, or it may be private."}),(0,n.jsx)(o.Z,{href:a().METRICSMENU,underline:"none",children:(0,n.jsx)(i.Z,{variant:"outlined",children:"Return Home"})})]})});var P=m},28873:function(e,r,t){var n=t(824246);t(827378);var o=t(188038),i=t.n(o),s=t(353354),a=t(128517);let l=e=>{let{title:r,...t}=e;return(0,n.jsx)(s.RenderMetaTags,{title:r||a.Z.APP,Wrapper:e=>(0,n.jsx)(i(),{children:e}),...t})};r.Z=l},512992:function(e,r){r.Z={IS_CLIENT:!0,IS_SERVER:!1}},760032:function(e,r){r.Z={AIGR_ADMIN:"AIGR_ADMIN",STUDENT:"STUDENT"}},912751:function(e){e.exports={ABOUT:"/about",COMPLETEFORGOTPASSWORD:"/completeforgotpassword",FIRSTTIMEUSERLOGIN:"/firsttimeuserlogin",FORGOTPASSWORD:"/forgotpassword",INDEX:"/",JOBSMENU:"/jobsmenu",LOOKUPMENU:"/lookupmenu",MANAGE_JOBS:"/manageJobs",METRICSMENU:"/metricsmenu",MFA:"/mfa",PROFILES:"/profiles",QUEUES:"/queues",SIGNIN:"/signin",SIGNOUT:"/signout",SIGNUP:"/signup",MFA:"/mfa",JOBSMENU:"/m_jobs",METRICSMENU:"/m_metrics",REFDATAMENU:"/m_refdata",AEMETRICS:"/auditeventsmetrics"}},69838:function(e,r,t){var n=t(512992);let o=()=>{if(n.Z.IS_CLIENT)return"".concat(window.location.pathname).concat(window.location.search)};r.Z=o},994204:function(e,r,t){var n=t(824246);t(827378);var o=t(928017),i=t(494872),s=t(113287),a=t(624462),l=t(7485),c=t(480007),d=t(622896),u=t(778729),p=t(895842),g=t(877302),E=t(659472),m=t(322570),P=t(913980),f=t(188818),h=t(433178),Z=t(834404),I=t(679655),U=t(298784);let C=e=>{switch(e){case"actions.signOut":return o.Z;case"actions.close":return i.Z;case"actions.domain":return s.Z;case"actions.manageAdmins":return a.Z;case"general.chevron.down":return l.default;case"general.dots.horizontal":return c.Z;case"general.pencil":return d.Z;case"general.plus.circle":return u.Z;case"general.minus.circle":return p.Z;case"general.copy":return g.Z;case"search.email":return E.Z;case"search.name":return m.Z;case"account.detail":return P.Z;case"account":return f.Z;case"arrow.right":return h.Z;case"email.search":return Z.Z;case"file.search":return I.Z;default:return(0,U.constant)((0,n.jsx)("div",{children:"?"}))}};r.Z=C},545517:function(e,r,t){t.d(r,{Z:function(){return Y}});var n=t(824246),o=t(827378),i=t(353354),s=t(298784),a=t(742744),l=t(470710),c=t(69838),d=t(141084),u=t(579894),p=t.n(u);let g=e=>{let{href:r,children:t,...o}=e;return(0,n.jsx)(p(),{href:String(r),legacyBehavior:!0,passHref:!0,children:(0,n.jsx)(d.Z,{...o,children:t})})};var E=t(128517),m=t(516486),P=t(912751),f=t.n(P),h=t(655863),Z=t(183246),I=t(975490),U=t(452054),C=t(912211),v=t(212577),S=t(994204),R=t(760032),O=t(463205),x=t(19548),A=t(365705),M=t(173845),N=t(303552),T=t(207604),y=t(199642),L=t(512709);let j=(0,L.ZP)(O.Z)(e=>{let{theme:r}=e;return{["&.".concat(x.Z.root)]:{backgroundColor:r.palette.primary.main,color:r.palette.common.white,fontSize:18,fontWeight:"bold",margin:r.spacing(0,1)}}}),k=(0,L.ZP)(I.ZP)(e=>{let{theme:r}=e;return{["&.".concat(A.Z.container)]:{"&:hover":{backgroundColor:Z.Z[100]},cursor:"pointer",height:72,marginRight:-r.spacing(2),padding:r.spacing(0,2),userSelect:"none"}}}),F=(0,L.ZP)(M.Z)(e=>{let{theme:r}=e;return{["&.".concat(N.Z.root)]:{padding:r.spacing(1,2)}}}),b=(0,L.ZP)(T.Z)(e=>{let{theme:r}=e;return{["&.".concat(y.Z.list)]:{padding:0},["&.".concat(y.Z.paper)]:{marginTop:r.spacing(1),minWidth:150}}}),w=(0,L.ZP)("div")(()=>({backgroundColor:"rgba(0, 0, 0, 0.15)",bottom:0,left:0,opacity:0,pointerEvents:"none",position:"fixed",right:0,top:72,transition:"opacity 0.5s ease, z-index 0.5s ease",zIndex:1001})),_=(0,S.Z)("actions.signOut"),D=(0,S.Z)("account"),G=e=>{let{me:r}=e,[t,i]=o.useState(null),a=(0,s.get)(r,"firstName")||"",l=(0,s.get)(r,"lastName")||"",c=(0,s.compact)([a,l]).join(" ")||"Admin",d=(0,s.compact)([(0,s.head)(a),(0,s.head)(l)]).join("")||"A",u=[{Icon:D,LinkProps:{href:f().SIGNUP},title:"Create Operations User"},{Icon:_,LinkProps:{href:f().SIGNOUT},title:"Sign Out"}],p=[{Icon:_,LinkProps:{href:f().SIGNOUT},title:"Sign Out"}],E=[R.Z.AIGR_ADMIN],m=(0,s.get)(r,"roles")||[],P=E.some(e=>m.includes(e))?u:p,h=Boolean(t);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(k,{alignItems:"center",container:!0,direction:"row",onClick:e=>{i(e.currentTarget)},spacing:1,sx:h?{backgroundColor:Z.Z[100]}:void 0,wrap:"nowrap",children:[(0,n.jsx)(I.ZP,{item:!0,children:(0,n.jsx)(I.ZP,{alignItems:"flex-end",container:!0,direction:"column",children:(0,n.jsx)(U.Z,{noWrap:!0,variant:"body2",children:c})})}),(0,n.jsx)(I.ZP,{item:!0,children:(0,n.jsx)(j,{children:d})})]}),h&&(0,n.jsx)(b,{anchorEl:t,anchorOrigin:{horizontal:"right",vertical:"bottom"},onClose:()=>{i(null)},open:h,transformOrigin:{horizontal:"right",vertical:"top"},children:P.map((e,r)=>(0,n.jsx)(g,{underline:"none",...e.LinkProps,children:(0,n.jsxs)(F,{divider:r{i(null)},children:[!!e.Icon&&(0,n.jsx)(C.Z,{sx:{minWidth:"40px"},children:(0,n.jsx)(e.Icon,{color:"primary",fontSize:"small"})}),(0,n.jsx)(v.Z,{primary:e.title,primaryTypographyProps:{variant:"overline"}})]},e.title)},e.title))}),(0,n.jsx)(w,{sx:h?{opacity:1}:void 0})]})},B=(0,s.flow)(h.Z);var W=B(G),H=t(770309),z=t(429471),J=t(100757);let q=(0,L.ZP)("div")(()=>({height:"100%"})),V=(0,L.ZP)(H.Z)(()=>({["&.".concat(z.Z.root)]:{paddingRight:0}})),K=(0,L.ZP)("main")(()=>({height:"100%",padding:0,width:"100%"}));(0,L.ZP)(M.Z)(e=>{let{theme:r}=e;return{["&.".concat(N.Z.root)]:{padding:r.spacing(1,2)}}}),(0,L.ZP)(T.Z)(e=>{let{theme:r}=e;return{["&.".concat(y.Z.list)]:{padding:0},["&.".concat(y.Z.paper)]:{marginTop:r.spacing(1),minWidth:150}}}),(0,L.ZP)("div")(()=>({backgroundColor:"rgba(0, 0, 0, 0.15)",bottom:0,left:0,opacity:0,pointerEvents:"none",position:"fixed",right:0,top:72,transition:"opacity 0.5s ease, z-index 0.5s ease",zIndex:1001})),(0,L.ZP)(d.Z)(()=>({["&.".concat(J.Z.root)]:{"&, &:hover":{color:"unset",textDecoration:"none"},cursor:"pointer"}}));let Q=e=>{let{children:r,is404:t,loading:o,activeRoute:d,me:u}=e,p=(0,s.compact)([{isActive:f().METRICSMENU===d,LinkComponent:g,LinkProps:{href:f().METRICSMENU===d?(0,c.Z)():f().METRICSMENU},title:"Metrics"},{isActive:f().PROFILES===d,LinkComponent:g,LinkProps:{href:f().PROFILES===d?(0,c.Z)():f().PROFILES},title:"Profiles"},{isActive:f().JOBSMENU===d,LinkComponent:g,LinkProps:{href:f().JOBSMENU===d?(0,c.Z)():f().JOBSMENU},title:"Jobs"},{isActive:f().REFDATAMENU===d,LinkComponent:g,LinkProps:{href:f().REFDATAMENU===d?(0,c.Z)():f().REFDATAMENU},title:"Ref.Data"}]),P=[R.Z.AIGR_ADMIN],h=(0,s.get)(u,"roles")||[],Z=P.some(e=>h.includes(e))?p:[{}];return(0,n.jsxs)(q,{children:[(0,n.jsx)(a.Z,{style:{backgroundColor:l.Z.white,padding:0},position:"static",elevation:0,children:(0,n.jsx)(V,{maxWidth:"lg",children:(0,n.jsx)(i.AppBarNavigation,{AppBarProps:{elevation:0,position:"static",style:{backgroundColor:l.Z.white,padding:0}},headerRightElement:(0,n.jsx)(W,{}),navigationItems:Z,RenderLogoProps:{alt:E.Z.APP,LinkComponent:g,LinkProps:{href:f().METRICSMENU},src:"static/img/logo-color.png"}})})}),(0,n.jsxs)(K,{children:[o&&(0,n.jsx)(i.Loading,{}),!o&&(0,n.jsxs)(n.Fragment,{children:[t&&m.Z,!t&&r]})]})]})};Q.defaultProps={is404:!1,loading:!1};let X=(0,s.flow)(h.Z);var Y=X(Q)},867746:function(e,r,t){t.d(r,{Z:function(){return E}});var n=t(360629),o=t(512992),i=t(361705),s=t(915217),a=t(93305),l=t(844460),c=t(354413),d=t(296973),u=JSON.parse('{"g":{"ClientLoginError":["InvalidClientCredentialsError"],"ClientLoginResult":["ClientLoginSuccess","InvalidClientCredentialsError"],"Error":["InvalidClientCredentialsError","InvalidPrivacyProgramTermsAndConditionVersionError","InvalidUserCredentialsError","LogoutError","NewPasswordRequiredError","OccupationNotFoundError","OpsCompleteForgotPasswordError","OpsLoginError","OptOutError","PrivacyProgramTermsAndConditionsNotFoundError","ProfileMissingOrInvalidAcceptedTermsAndConditionsError","RefreshOpsAccessTokenError","RefreshUserAccessTokenError","UpdateConsideringMilitaryOptionsError","UpdateEncourageOnboardingCompleteError","UpdateFavoriteOccupationsError","UpdatePrivacyProgramTermsAndConditionsError","UpdateProfileCollegeMindsetCareAboutMostError","UpdateProfileCollegeMindsetExpectationsForEducationError","UpdateProfileCollegeMindsetExperiencesToLearnMostFromError","UpdateProfileContactHomeAddressError","UpdateProfileContactHomeAddressInvalidInputError","UpdateProfilePlansMilitaryBranchesError","UpdateProfilePlansMilitaryBranchesInputError","UpdateProfilePlansMilitaryInterestsError","UpdateProfilePlansMilitaryInterestsInputError","UserLoginError"],"LogoutResult":["LogoutError","LogoutSuccess"],"OpsCompleteForgotPasswordResult":["OpsCompleteForgotPasswordError","OpsCompleteForgotPasswordSuccess"],"OpsLoginResult":["InvalidUserCredentialsError","NewPasswordRequiredError","OpsLoginError","OpsLoginSuccess"],"OpsRegisterUserError":["OpsRegisterUserInvalidInputError","OpsUserAccountExistsError"],"OpsRegisterUserResult":["OpsRegisterUserInvalidInputError","OpsRegisterUserSuccess","OpsUserAccountExistsError"],"OptOutResult":["OptOutError","OptOutSuccess"],"RefreshOpsAccessTokenResult":["RefreshOpsAccessTokenError","RefreshOpsAccessTokenSuccess"],"RefreshUserAccessTokenResult":["RefreshUserAccessTokenError","RefreshUserAccessTokenSuccess"],"RegisterUserError":["CreateProfileError","CreateUserAccountError","RegisterUserInvalidInputError","UserAccountExistsError","UserProfileExistsError"],"RegisterUserResult":["CreateProfileError","CreateUserAccountError","InvalidPrivacyProgramTermsAndConditionVersionError","PrivacyProgramTermsAndConditionsNotFoundError","RegisterUserInvalidInputError","RegisterUserSuccess","UserAccountExistsError","UserProfileExistsError"],"UpdateConsideringMilitaryOptionsResult":["UpdateConsideringMilitaryOptionsError","UpdateConsideringMilitaryOptionsSuccess"],"UpdateEncourageOnboardingCompleteResult":["UpdateEncourageOnboardingCompleteError","UpdateEncourageOnboardingCompleteSuccess"],"UpdateFavoriteOccupationsResult":["OccupationNotFoundError","UpdateFavoriteOccupationsError","UpdateFavoriteOccupationsSuccess"],"UpdatePrivacyProgramTermsAndConditionsResult":["UpdatePrivacyProgramTermsAndConditionsError","UpdatePrivacyProgramTermsAndConditionsSuccess"],"UpdateProfileCollegeMindsetCareAboutMostResult":["UpdateProfileCollegeMindsetCareAboutMostError","UpdateProfileCollegeMindsetCareAboutMostSuccess"],"UpdateProfileCollegeMindsetExpectationsForEducationResult":["UpdateProfileCollegeMindsetExpectationsForEducationError","UpdateProfileCollegeMindsetExpectationsForEducationSuccess"],"UpdateProfileCollegeMindsetExperiencesToLearnMostFromResult":["UpdateProfileCollegeMindsetExperiencesToLearnMostFromError","UpdateProfileCollegeMindsetExperiencesToLearnMostFromSuccess"],"UpdateProfileContactHomeAddressResult":["UpdateProfileContactHomeAddressError","UpdateProfileContactHomeAddressInvalidInputError","UpdateProfileContactHomeAddressSuccess"],"UpdateProfilePlansMilitaryBranchesResult":["UpdateProfilePlansMilitaryBranchesError","UpdateProfilePlansMilitaryBranchesInputError","UpdateProfilePlansMilitaryBranchesSuccess"],"UpdateProfilePlansMilitaryInterestsResult":["UpdateProfilePlansMilitaryInterestsError","UpdateProfilePlansMilitaryInterestsInputError","UpdateProfilePlansMilitaryInterestsSuccess"],"UserLoginResult":["InvalidPrivacyProgramTermsAndConditionVersionError","InvalidUserCredentialsError","PrivacyProgramTermsAndConditionsNotFoundError","ProfileMissingOrInvalidAcceptedTermsAndConditionsError","UserLoginError","UserLoginSuccess"]}}');let p=()=>{let e=(0,c.v)((e,r)=>{let{headers:t}=r;return{headers:{...t,"apollographql-client-name":"AIGR","apollographql-client-version":"0.0.1"}}}),r=new l.A({credentials:"include",uri:d.Z.API_ENDPOINT_GRAPHQL});return new i.f({cache:new s.h({addTypename:!1,possibleTypes:u.g,typePolicies:{Profile:{merge:!0}}}),connectToDevTools:!o.Z.IS_SERVER,link:a.i.from([e,r]),name:d.Z.GRAPHQL_CLIENT_NAME||"AIGR"})},g=null;var E=(0,n.C)(()=>o.Z.IS_SERVER?p():(g||(g=p()),g))},655863:function(e,r,t){var n=t(119989),o=t(824246);t(827378);var i=t(298784),s=t(2779),a=t(931811),l=t(353354),c=t(128517),d=t(226601),u=t(451809),p=t(912751),g=t.n(p);function E(){let e=(0,n.Z)(["\n query WithMeQuery {\n authSession {\n username\n iat\n exp\n }\n }\n "]);return E=function(){return e},e}let m=e=>function(r){let{data:t,loading:n}=(0,s.a)((0,a.Ps)(E()));if(n)return(0,o.jsx)(l.Loading,{});if(void 0===t&&sessionStorage.length>0)return sessionStorage.removeItem(c.Z.SESSION_ID_TOKEN),(0,o.jsx)(u.Z,{to:g().SIGNIN});let p=null;if(null!==sessionStorage.getItem(c.Z.SESSION_ID_TOKEN)){let e=sessionStorage.getItem(c.Z.SESSION_ID_TOKEN)||"",r=(0,i.get)(t,"authSession");p={...r,email:(0,d.Z)(e).email||null,firstName:(0,d.Z)(e).given_name||null,lastName:(0,d.Z)(e).family_name||null,roles:(0,d.Z)(e)["cognito:groups"]||null}}return(0,o.jsx)(e,{...r,me:p||null})};r.Z=m},491623:function(e,r,t){var n=t(824246);t(827378);var o=t(165218),i=t.n(o),s=t(128517);let a=i()(()=>Promise.resolve().then(t.bind(t,456655)),{loadableGenerated:{webpack:()=>[456655]},ssr:!1}),l=e=>function(r){return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(a,{keyName:s.Z.SESSION_ID_TOKEN,onSetKeyValue:()=>{window.location.reload()}}),(0,n.jsx)(e,{...r})]})};r.Z=l}}]);