PageSourceSearch

https://mpdx.org/_next/static/chunks/pages/accountLists/[accountLi…/mpdSupervisorReport-9072a50483c3b44c.js

js mpdx.org collected 2026-10-04 15:17:21 UTC 59,331 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8463],{68131:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/accountLists/[accountListId]/hrTools/mpdSupervisorReport",function(){return a(32919)}])},32919:(e,t,a)=>{"use strict";a.r(t),a.d(t,{MpdSupervisorReportPage:()=>tO,__N_SSP:()=>tY,default:()=>tz});var r=a(74848),n=a(13368),l=a.n(n),s=a(96540),o=a(75034),i=a(33200),c=a(60020),d=a(93989),u=a(55148),h=a(27414),p=a(26098),m=a(66718),f=a(75594),x=a(50113),g=a(32164),y=a(28710),v=a(84577),j=a(42835),b=a(25395);function A(){let e=(0,v._)(["\n  query ManagedStaffTeams {\n    managedStaffTeams {\n      name\n      departments\n    }\n  }\n"]);return A=function(){return e},e}let S={},w=(0,j.J1)(A());function C(e){let t={...S,...e};return b.I(w,t)}var M=a(86715),N=a(52757),k=a(17458),I=function(e){return e.AllPeople="allPeople",e.NegativeLastMonth="negativeLastMonth",e.ThreeMonthsNegative="threeMonthsNegative",e}({});let P=["allPeople","negativeLastMonth","threeMonthsNegative"],E=(e,t)=>{switch(t){case"negativeLastMonth":return e("Negative last month");case"threeMonthsNegative":return e("Negative last 3+ months");default:return e("All people")}},G=(e,t)=>{switch(t){case"negativeLastMonth":return e("Staff whose payroll last month was below their New Staff Monthly Salary.");case"threeMonthsNegative":return e("Staff whose payroll was below their New Staff Monthly Salary in each of the last three complete months.");default:return null}};function T(){let e=(0,v._)(["\n  query ManagedStaff(\n    $first: Int\n    $after: String\n    $name: String\n    $teamNames: [String!]\n    $departments: [String!]\n    $assignmentCategoryGroup: MpdAssignmentCategoryGroupEnum\n    $negativeLastMonth: Boolean\n    $negativeThreeMonths: Boolean\n  ) {\n    managedStaff(\n      first: $first\n      after: $after\n      name: $name\n      teamNames: $teamNames\n      departments: $departments\n      assignmentCategoryGroup: $assignmentCategoryGroup\n      negativeLastMonth: $negativeLastMonth\n      negativeThreeMonths: $negativeThreeMonths\n    ) {\n      nodes {\n        firstName\n        lastName\n        spouseFirstName\n        spouseLastName\n        staffAccountId\n        personNumber\n        spousePersonNumber\n        spouseStaffAccountId\n        geographicLocation\n        assignmentCategoryGroup\n        tenure\n        healthcareDependentsCount\n        peopleGroupSupportType\n        secaStatus\n        teams {\n          employee {\n            id\n            name\n            department\n          }\n          spouse {\n            id\n            name\n            department\n          }\n        }\n        newStaffMonthlySalary\n        quarterlyHealth {\n          monthlyGrossSalary\n          startingQuarter {\n            quarter\n            fiscalYear\n            months {\n              month\n              payroll\n              status\n            }\n          }\n          completedQuarters {\n            quarter\n            fiscalYear\n            averagePayroll\n            status\n          }\n        }\n      }\n      pageInfo {\n        endCursor\n        hasNextPage\n      }\n      totalCount\n    }\n  }\n"]);return T=function(){return e},e}let R={},D=(0,j.J1)(T());function F(e){let t={...R,...e};return b.I(D,t)}var L=function(e){return e.MonthlySummary="MonthlySummary",e.Quarterly="Quarterly",e.Payroll="Payroll",e.MPGAReport="MPGAReport",e.StaffExpenseReport="StaffExpenseReport",e}({}),H=a(12372),B=function(e){return e.Navigation="Navigation",e.Filters="Filters",e}({}),q=function(e){return e.Comfortable="comfortable",e.Compact="compact",e}({});let W=e=>{var t;let a=null==e?void 0:e.graphQLErrors.find(e=>{let{extensions:t}=e;return(null==t?void 0:t.code)==="FILTER_REQUIRED"});if(!a)return null;let{count:r,filtered:n}=null!==(t=a.extensions)&&void 0!==t?t:{};return{count:"number"==typeof r?r:0,filtered:!0===n}},Y=(0,s.createContext)(void 0),O=e=>{let t=Array.isArray(e)?e[0]:e;return Object.values(L).includes(t)?t:L.MonthlySummary},z=e=>{let{children:t}
1=e,a=(0,M.useRouter)(),n=null==a?void 0:a.query,[l,o]=(0,s.useState)(void 0),[i,c]=(0,s.useState)(!1),[d,u]=(0,s.useState)(""),[h,p]=(0,s.useState)(null),[m,f]=(0,s.useState)(null),[x,g]=(0,s.useState)(null),[y,v]=(0,s.useState)(I.AllPeople),[j,b]=(0,s.useState)(()=>O(null==n?void 0:n.tab)),[A,S]=(0,k.M)("mpdSupervisorReport.rowDensity","comfortable"),w=Object.values(q).includes(A)?A:"comfortable",C=(0,N.o)(d,500),P=(0,s.useMemo)(()=>({first:100,name:C.trim()||null,teamNames:h?[h]:null,departments:m?[m]:null,assignmentCategoryGroup:x,negativeLastMonth:y===I.NegativeLastMonth||null,negativeThreeMonths:y===I.ThreeMonthsNegative||null}),[C,h,m,x,y]),{data:E,loading:G,error:T,fetchMore:R,refetch:D}=F({context:{suppressErrorCodes:["FILTER_REQUIRED"]},variables:P}),L=null==E?void 0:E.managedStaff.pageInfo,[B,z]=(0,s.useState)(!1),[$,_]=(0,s.useState)(void 0),Q=(0,s.useCallback)(()=>z(!0),[]);(0,s.useEffect)(()=>{_(void 0)},[C,h,m,x,y]),(0,s.useEffect)(()=>{(null==L?void 0:L.hasNextPage)&&!G&&!$&&z(!0)},[null==L?void 0:L.hasNextPage,null==L?void 0:L.endCursor,G,$]),(0,s.useEffect)(()=>{if(B&&!G){if(!(null==L?void 0:L.hasNextPage)||!L.endCursor){z(!1);return}z(!1),_(void 0),R({variables:{after:L.endCursor}}).catch(e=>_(e))}},[B,G,null==L?void 0:L.hasNextPage,null==L?void 0:L.endCursor,R]);let U=(0,s.useCallback)(()=>{D().catch(()=>void 0)},[D]),V=(0,s.useMemo)(()=>W(T),[T]),X=(h?1:0)+(m?1:0)+(x?1:0)+(y===I.AllPeople?0:1),J=(0,s.useCallback)(()=>{u(""),p(null),f(null),g(null),v(I.AllPeople)}
1,[]),[K,Z]=(0,s.useState)(()=>new Set),ee=(0,s.useCallback)(e=>{Z(t=>{let a=new Set(t);return a.delete(e)||a.add(e),a})},[]),et=(0,s.useMemo)(()=>{var e;return(0,H.$Z)(null!==(e=null==E?void 0:E.managedStaff.nodes)&&void 0!==e?e:[])},[E]),ea=(0,s.useCallback)((e,t)=>{b(t);let a=new URL(window.location.href);a.searchParams.set("tab",t),window.history.replaceState(window.history.state,"",a.toString())},[]),er=(0,s.useMemo)(()=>{var e,t;return{selectedMember:l,isOpen:void 0!==l,openMember:e=>{c(!1),o(e)},legendOpen:i,openLegend:()=>{o(void 0),c(!0)},closeLegend:()=>c(!1),updateSelectedMember:(e,t)=>o(a=>(null==a?void 0:a.personNumber)===e?{...a,...t}:a),closePanel:()=>o(void 0),search:d,setSearch:u,team:h,setTeam:p,department:m,setDepartment:f,employmentType:x,setEmploymentType:g,activeQuickFilter:y,setActiveQuickFilter:v,activeFilterCount:X,clearFilters:J,rowDensity:w,setRowDensity:S,selectedTabKey:j,setSelectedTabKey:b,handleTabChange:ea,expandedRows:K,toggleRow:ee,staffMembers:et,loadedCount:(0,H.jk)(et),totalCount:null!==(e=null==E?void 0:E.managedStaff.totalCount)&&void 0!==e?e:0,staffLoading:G,staffError:V?void 0:T,filterRequired:V,loadMoreError:$,queryVariables:P,staffComplete:!!E&&!G&&!(null==L?void 0:L.hasNextPage),hasNextPage:null!==(t=null==L?void 0:L.hasNextPage)&&void 0!==t&&t,loadMore:Q,refetchStaff:U}},[l,i,d,h,m,x,y,X,J,w,S,j,ea,K,ee,et,E,G,T,V,$,P,null==L?void 0:L.hasNextPage,Q,U]);return(0,r.jsx)(Y.Provider,{value:er,children:t})},$=()=>{let e=(0,s.useContext)(Y);if(!e)throw Error("useMpdSupervisorReport must be used within a MpdSupervisorReportProvider");return e},_=e=>{let{label:t,placeholder:a,value:n,onChange:l,options:s}=e;return(0,r.jsx)(c.A,{fullWidth:!0,autoHighlight:!0,size:"small",value:n,onChange:(e,t)=>
1l(t),options:s,disabled:!s.length,renderInput:e=>(0,r.jsx)(d.A,{...e,label:t,placeholder:a})})},Q=e=>{let{onClose:t}=e,{t:a}=(0,o.B)(),{activeQuickFilter:n,setActiveQuickFilter:l,team:c,setTeam:v,department:j,setDepartment:b,employmentType:A,setEmploymentType:S}=$(),{data:w}=C(),M=(0,s.useMemo)(()=>{var e;return null!==(e=null==w?void 0:w.managedStaffTeams)&&void 0!==e?e:[]},[w]),N=(0,s.useMemo)(()=>M.filter(e=>{let{departments:t}=e;return!j||t.includes(j)}).map(e=>{let{name:t}=e;return t}).sort((e,t)=>e.localeCompare(t,void 0,{numeric:!0})),[M,j]),k=(0,s.useMemo)(()=>[...new Set(M.filter(e=>{let{name:t}=e;return!c||t===c}).flatMap(e=>{let{departments:t}=e;return t}))].sort((e,t)=>e.localeCompare(t,void 0,{numeric:!0})),[M,c]),I=e=>{l(e)};return(0,r.jsxs)(u.A,{sx:{display:"flex",flexDirection:"column",height:"100%"},children:[(0,r.jsxs)(u.A,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",px:2,py:1.5,borderBottom:"1px solid",borderBottomColor:"divider"},children:[(0,r.jsx)(h.A,{id:"left-panel-header",variant:"h6",children:a("Filters")}),(0,r.jsx)(p.A,{"aria-label":a("Close"),onClick:t,size:"small",children:(0,r.jsx)(i.A,{})})]}),(0,r.jsxs)(m.A,{spacing:2,sx:{p:2},children:[(0,r.jsx)(m.A,{direction:"row",spacing:1,useFlexGap:!0,flexWrap:"wrap",children:P.map(e=>{let t=(0,r.jsx)(f.A,{label:E(a,e),variant:n===e?"filled":"outlined",sx:{backgroundColor:n===e?"primary.main":"default",color:n===e?"primary.contrastText":"default"},onClick:()=>I(e)},e),l=G(a,e);return l?(0,r.jsx)(x.A,{title:l,describeChild:!0,children:t},e):t})}),(0,r.jsx)(_,{label:a("Team"),placeholder:a("All teams"),value:c,onChange:v,options:N}),(0,r.jsx)(_,{label:a("Department"),placeholder:a("All departments"),value:j,onChange:b,options:k}),(0,r.jsxs)(d.A,{select:!0,fullWidth:!0,value:null!=A?A:"all",onChange:e=>{let t=e.target.value;S("all"===t?null:t)},size:"small",label:a("Employment type"),children:[(0,r.jsx)(g.A,{value:"all",children:a("All types")}),Object.values(y.Hr).map(e=>(0,r.jsx)(g.A,{value:e,children:(0,H.a8)(a,e)},e))]})]})]})};var U=a(63490),V=a(32297),X=a(12484),J=a(8300),K=a(56565),Z=a(62189),ee=a(23017),et=a(95381),ea=a(69301),er=a(17191),en=a(49195),el=a(56615),es=a(49528),eo=a(99328),ei=a(68179);let ec=()=>{let{t:e}=(0,o.B)(),{team:t,setTeam:a,department:n,setDepartment:l,employmentType:s,setEmploymentType:c,activeQuickFilter:d,setActiveQuickFilter:h,activeFilterCount:p,clearFilters:m}=$();if(!p)return null;let x=[];return d!==I.AllPeople&&x.push({key:"quickFilter",label:E(e,d),onDelete:()=>h(I.AllPeople)}),t&&x.push({key:"team",label:e("Team: {{team}}",{team:t}),onDelete:()=>a(null)}),n&&x.push({key:"department",label:e("Department: {{department}}",{department:n}),onDelete:()=>l(null)}),s&&x.push({key:"employmentType",label:e("Employment type: {{type}}",{type:(0,H.a8)(e,s)}),onDelete:()=>c(null)}),(0,r.jsxs)(u.A,{component:"ul","aria-label":e("Applied filters"),sx:{display:"flex",flexWrap:"wrap",alignItems:"center",gap:1,m:0,mb:1.5,p:0,listStyle:"none"},children:[x.map(t=>{let{key:a,label:n,onDelete:l}=t;return(0,r.jsx)("li",{children:(0,r.jsx)(f.A,{label:n,size:"small","aria-label":e("Remove {{label}}",{label:n}),onClick:l,onDelete:l,deleteIcon:(0,r.jsx)(i.A,{})})},a)}),(0,r.jsx)("li",{children:(0,r.jsx)(Z.A,{size:"small",onClick:m,children:e("Clear all")})})]})},ed=()=>{let{t:e}=(0,o.B)(),{activeFilterCount:t,search:a,clearFilters:n}=$(),l=t>0||""!==a.trim();return(0,r.jsxs)(u.A,{sx:{textAlign:"center",mt:4},children:[(0,r.jsx)(h.A,{color:"text.secondary",children:e(l?"No staff match your filters":"No staff members found")}),l&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(h.A,{variant:"body2",color:"text.secondary",sx:{mt:.5},children:e("Try removing a filter or changing your search.")}),(0,r.jsx)(Z.A,{variant:"outlined",size:"small",onClick:n,sx:{mt:2},children:e("Clear filters")})]})]})};var eu=a(6532);let eh=e=>{let{filterRequired:{count:t,filtered:a},onOpenFilters:n}=e,{t:l}=(0,o.B)();return(0,r.jsxs)(u.A,{role:"status",sx:{textAlign:"center",mt:8,mx:"auto",maxWidth:480,px:2},children:[(0,r.jsx)(eu.A,{sx:{fontSize:40,color:"text.disabled"}}),(0,r.jsx)(h.A,{variant:"h6",component:"h2",sx:{mt:1},children:l(a?"{{total}} staff match — still too many to list at once.":"You supervise {{total}} staff — too many to list at once.",{total:t})}),(0,r.jsx)(h.A,{color:"text.secondary",sx:{mt:1},children:l(a?"Add another filter or search by name to narrow the list.":"Search by name, or pick a team, department, employment type or one of the negative-month filters.")}),n&&(0,r.jsx)(Z.A,{variant:"contained",onClick:n,sx:{mt:2},children:l("Open filters")})]})};var ep=a(210);let em=[y.hE.Green,y.hE.Yellow,y.hE.Red,y.hE.Gray],ef=(e,t)=>{let a=(0,H.vO)(e,t);return a.charAt(0).toLocaleUpperCase()+a.slice(1)},ex=e=>({title:e("New Staff Monthly Salary"),body:e("The monthly salary a new staff member in the same situation would receive. It is calculated from HR records for the staff member (and their spouse, if married) using the current year's 
1New Staff goal rates, then added together and divided by 12:"),steps:[e("Base salary: the annual base salary for their marital status, number of dependent children on healthcare, and age range, multiplied by the geographic multiplier for their location."),e("Plus a tenure adjustment based on years on staff."),e("If a couple's combined salary would be over the salary cap, both salaries are reduced proportionally to the cap."),e("Plus SECA (Social Security) tax on that salary, unless they have opted out of SECA."),e("Plus the 403(b) retirement contribution.")],footer:e("Change the Geographic Multiplier in the staff member's details to recalculate it.")}),eg=e=>e('The monthly salary a new staff member in the same situation would receive: base salary for their marital status, children and age \xd7 geographic multiplier, plus tenure adjustment, plus SECA and 403(b). Combined with their spouse\'s and divided by 12. See "How this report works" for details.'),ey=e=>{let{sx:t}=e,{t:a}=(0,o.B)(),n=(0,ep.A)();return(0,r.jsx)(u.A,{component:"ul","aria-label":a("Chip colors"),sx:[{display:"flex",flexWrap:"wrap",alignItems:"center",gap:2,m:0,p:0,listStyle:"none"},...Array.isArray(t)?t:[t]],children:em.map(e=>{let{bg:t,color:l}=(0,H.S9)(n,e);return(0,r.jsxs)(u.A,{component:"li",sx:{display:"flex",alignItems:"center",gap:.75},children:[(0,r.jsx)(u.A,{"aria-hidden":!0,sx:{width:10,height:10,borderRadius:"50%",bgcolor:t,border:"1.5px solid ".concat(l)}}),(0,r.jsx)(h.A,{variant:"caption",color:"text.secondary",children:ef(a,e)})]},e)})})};var ev=a(18230);let ej=()=>{let{t:e}=(0,o.B)(),{openLegend:t}=$();return(0,r.jsx)(x.A,{title:e("How this report works"),children:(0,r.jsx)(p.A,{size:"small","aria-label":e("How this report works"),onClick:t,children:(0,r.jsx)(ev.A,{fontSize:"small",sx:{color:"mpdxGrayDark.main"}})})})};var eb=a(13889),eA=a(78841),eS=a(46569),ew=a(57979);let eC=()=>{let{t:e}=(0,o.B)(),{rowDensity:t,setRowDensity:a}=$();return(0,r.jsxs)(eS.A,{value:t,exclusive:!0,size:"small","aria-label":e("Row density"),onChange:(e,t)=>
1{t&&a(t)},children:[(0,r.jsx)(ew.A,{value:q.Comfortable,"aria-label":e("Comfortable rows"),children:(0,r.jsx)(x.A,{title:e("Comfortable rows"),children:(0,r.jsx)(eb.A,{fontSize:"small"})})}),(0,r.jsx)(ew.A,{value:q.Compact,"aria-label":e("Compact rows"),children:(0,r.jsx)(x.A,{title:e("Compact rows"),children:(0,r.jsx)(eA.A,{fontSize:"small"})})})]})};var eM=a(81027),eN=a(66893),ek=a(3489),eI=a(50797),eP=a(20312),eE=a(8596),eG=a(98140),eT=a(51597),eR=a(44930);let eD=e=>{let{warning:t,focusable:a=!0}=e;return(0,r.jsx)(x.A,{title:t,children:(0,r.jsx)(eR.A,{fontSize:"small",color:"error",tabIndex:a?0:void 0,titleAccess:t,"aria-label":t})})},eF=(0,ee.Ay)(f.A,{shouldForwardProp:e=>"health"!==e})(e=>{let{health:t}=e,{bg:a,color:r}=(0,H.S9)(ei.A,t);return{height:22,fontWeight:600,backgroundColor:a,color:r,minWidth:"80px","& .MuiChip-label":{paddingInline:ei.A.spacing(1)}}});var eL=a(72193);let eH=e=>{let{label:t,value:a,valueColor:n}=e;return(0,r.jsxs)(u.A,{sx:{display:"flex",flexDirection:"column",minWidth:140},children:[(0,r.jsx)(h.A,{variant:"caption",color:"text.secondary",children:t}),(0,r.jsx)(h.A,{variant:"body2",color:n,component:"div",sx:{display:"flex",alignItems:"center",gap:.5},children:a})]})},eB=e=>{var t,a,n,l;let{row:s}=e,{t:i}=(0,o.B)(),{formatCurrency:c}=(0,eT.F)(),{partner:d,quarterlyHealth:h,newStaffMonthlySalary:p}=s,m=null!==(t=null==h?void 0:h.monthlyGrossSalary)&&void 0!==t?t:null,f=(0,H.$O)(i,c,s),x=[...new Set([...s.teams.employee,...null!==(a=null==d?void 0:d.teams.employee)&&void 0!==a?a:[]].map(e=>{let{department:t}=e;return t}).filter(e=>!!e))],g=null==h?void 0:h.startingQuarter,y=(0,H.ty)(s),v=e=>{let t=t=>{var a;return null!==(a=e(t))&&void 0!==a?a:H.kj};return d?(0,r.jsxs)(u.A,{component:"span",sx:{display:"flex",flexDirection:"column"},children:[(0,r.jsxs)("span",{children:[s.firstName,": ",t(s)]}),(0,r.jsxs)("span",{children:[d.firstName,": ",t(d)]})]}):String(t(s))};return(0,r.jsxs)(u.A,{"data-testid":"quick-glance",sx:{display:"flex",flexWrap:"wrap",gap:2,px:4,py:1.5,borderTop:"1px solid",borderColor:"divider",bgcolor:"action.hover"},children:[(0,r.jsx)(eH,{label:d?i("Person numbers"):i("Person number"),value:d?"".concat(s.personNumber," & ").concat(d.personNumber):s.personNumber}),(0,r.jsx)(eH,{label:i("Staff account"),value:s.staffAccountId}),(0,r.jsx)(eH,{label:i("Department"),value:x.join(", ")||H.kj}),(0,r.jsx)(eH,{label:i("Geographic location"),value:null!==(n=s.geographicLocation)&&void 0!==n?n:H.kj}),(0,r.jsx)(eH,{label:i("New Staff Monthly Salary"),value:null!=p?c(p):H.kj}),(0,r.jsx)(eH,{label:i("Monthly Gross Salary"),valueColor:f?"error.main":void 0,value:(0,r.jsxs)(r.Fragment,{children:[null!==m?c(m):H.kj,f&&(0,r.jsx)(eD,{warning:f})]})}),(0,r.jsx)(eH,{label:i("Tenure"),value:v(e=>{let{tenure:t}=e;return null!=t?i("{{count}} years",{count:t}):null})}),(0,r.jsx)(eH,{label:i("Healthcare dependents"),value:null!==(l=s.healthcareDependentsCount)&&void 0!==l?l:H.kj}),(0,r.jsx)(eH,{label:i("Support type"),value:v(e=>{let{peopleGroupSupportType:t}=e;return t?(0,H.pJ)(i,t):null})}),(0,r.jsx)(eH,{label:i("SECA"),value:v(e=>{let{secaStatus:t}=e;return(0,eL.d)(t,i)})}),y&&(0,r.jsx)(eH,{label:i("Spouse"),value:y}),g&&(0,r.jsx)(eH,{label:i("Payroll started"),value:(0,H.F4)(g.fiscalYear,g.quarter)})]})},eq=(0,ee.Ay)(eN.A,{shouldForwardProp:e=>"compact"!==e})(e=>{let{theme:t,compact:a}=e;return{marginBottom:t.spacing(a?.5:1),boxShadow:t.shadows[1],border:"1px solid",borderColor:t.palette.divider,cursor:"pointer",width:"100%"}}),eW=(0,ee.Ay)(ek.A)(e=>{let{theme:t}=e;return{display:"flex",alignItems:"center",gap:t.spacing(2)}}),eY=(0,ee.Ay)(ek.A)(e=>{let{theme:t}=e;return{display:"flex",alignItems:"center",gap:t.spacing(3),flexWrap:"wrap",justifyContent:"flex-end"}}),eO=e=>{let{data:t,density:a=q.Comfortable,expanded:n=!1,onToggleExpand:l,onClick:i}=e,{t:c}=(0,o.B)(),d=a===q.Compact,{formatCurrency:h}=(0,eT.F)(),{staffAccountId:m,assignmentCategoryGroup:f,partner:x}=t,g=(0,H.$O)(c,h,t),y=(0,H.Oh)(t),v=(0,s.useMemo)(()=>(0,H.uY)(t.quarterlyHealth),[t.quarterlyHealth]),j=(0,s.useMemo)(()=>(0,H.WU)(t).join(", "),[t]),b=x?null:(0,H.ty)(t);return(0,r.jsxs)(eq,{compact:d,children:[(0,r.jsxs)(u.A,{sx:{display:"flex",alignItems:"stretch"},children:[l&&(0,r.jsx)(u.A,{sx:{display:"flex",alignItems:"center",pl:1},children:(0,r.jsx)(p.A,{size:"small",onClick:l,"aria-expanded":n,"aria-label":c(n?"Hide details for {{name}}":"Show details for {{name}}",{name:y}),children:(0,r.jsx)(eM.A,{fontSize:"small",sx:{transition:"transform 150ms",transform:n?"rotate(180deg)":"none"}})})}),(0,r.jsx)(eI.A,{"aria-label":g?c("View details for {{name}}. {{warning}}",{name:y,warning:g}):c("View details for {{name}}",{name:y}),onClick:i,sx:{flex:1,paddingInline:ei.A.spacing(l?2:4),paddingRight:ei.A.spacing(4),paddingTop:ei.A.spacing(d?.5:1),paddingBottom:ei.A.spacing(d?.5:1)},children:(0,r.jsxs)(ek.A,{container:!0,children:[(0,r.jsxs)(eW,{size:6,children:[!d&&(0,r.jsx)(eP.A,{sx:{bgcolor:"mpdxGrayLight.main",color:"text.primary"},children:(0,H.cn)(t)}),(0,r.jsx)(u.A,{sx:{flexGrow:1,minWidth:200,ml:d?0:1},children:(0,r.jsx)(u.A,{sx:{display:"flex",justifyContent:"space-between",flexWrap:"wrap"},children:(0,r.jsx)(e$,{names:y,staffAccountID:m,userPersonType:(0,H.a8)(c,f),team:j,spouse:b,grossWarning:g,compact:d})})})]}),(0,r.jsx)(eY,{size:6,children:(0,r.jsx)(ez,{quarters:v})})]})})]}),l&&(0,r.jsx)(eE.A,{in:n,unmountOnExit:!0,children:(0,r.jsx)(eB,{row:t})})]})},ez=s.memo(e=>{let{quarters:t}=e,{t:a}=(0,o.B)(),{formatCurrency:n}=(0,eT.F)();return(0,r.jsx)(m.A,{direction:"row",spacing:2,children:t.map(e=>{let{fiscalYear:t,quarter:l,status:s,averagePayroll:o}=e,i=(0,H.F4)(t,l),c=(0,H.J9)({t:a,status:s,averagePayroll:o,formatCurrency:n});return(0,r.jsx)(eF,{label:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(u.A,{component:"span",sx:eG.A,children:a("{{label}}, {{status}}",{label:i,status:(0,H.vO)(a,s)})}),c]}),health:s,size:"small"},i)})})}),e$=s.memo(e=>{let{names:t,staffAccountID:a,userPersonType:n,team:l,spouse:s,grossWarning:i,compact:c=!1}=e,{t:d}=(0,o.B)();return(0,r.jsx)(u.A,{sx:{display:"flex",justifyContent:"space-between"},children:(0,r.jsxs)(u.A,{sx:{display:"flex",flexDirection:c?"row":"column",alignItems:c?"baseline":"stretch",flexWrap:"wrap",columnGap:c?1.5:0},children:[(0,r.jsxs)(u.A,{sx:{display:"flex",alignItems:"center",gap:1},children:[(0,r.jsx)(h.A,{variant:c?"body1":"h6",fontWeight:c?600:void 0,children:t}),i&&(0,r.jsx)(eD,{warning:i,focusable:!1})]}),(0,r.jsxs)(h.A,{variant:"body2",sx:{color:"text.secondary"},"data-testid":"person-numbers",children:[a," \xb7 ",n,l&&" \xb7 ".concat(l),s&&" \xb7 ".concat(d("Spouse: {{name}}",{name:s}))]})]})})});var e_=a(97455);let eQ=[y.hE.Red,y.hE.Yellow,y.hE.Green],eU=e=>{let{team:t,selected:a,onToggle:n}=e,{t:l}=(0,o.B)(),s=(0,ep.A)(),i=eQ.reduce((e,a)=>e+t.counts[a],0);return(0,r.jsxs)(e_.A,{onClick:n,"aria-pressed":a,sx:{display:"flex",flexDirection:"column",alignItems:"stretch",gap:.75,minWidth:180,p:1.25,borderRadius:1,border:"1px solid",borderColor:a?"primary.main":"divider",bgcolor:a?"action.selected":"background.paper",textAlign:"left","&:hover":{bgcolor:"action.hover"}},children:[(0,r.jsxs)(u.A,{sx:{display:"flex",justifyContent:"space-between",gap:1},children:[(0,r.jsx)(h.A,{variant:"subtitle2",noWrap:!0,children:t.name}),(0,r.jsx)(h.A,{variant:"caption",color:"text.secondary",noWrap:!0,children:l("{{count}} staff",{count:t.staffCount})})]}),(0,r.jsx)(u.A,{sx:{display:"flex",flexWrap:"wrap",gap:.5},children:em.filter(e=>t.counts[e]>
10).map(e=>{let{bg:a,color:n}=(0,H.S9)(s,e);return(0,r.jsx)(h.A,{variant:"caption",sx:{px:.75,borderRadius:3,bgcolor:a,color:n,fontWeight:600,lineHeight:1.8},children:l("{{status}} ({{total}})",{status:ef(l,e),total:t.counts[e]})},e)})}),i>0&&(0,r.jsx)(u.A,{"aria-hidden":!0,sx:{display:"flex",height:4,borderRadius:2,overflow:"hidden",bgcolor:"divider"},children:eQ.filter(e=>t.counts[e]>0).map(e=>(0,r.jsx)(u.A,{sx:{flex:t.counts[e],bgcolor:(0,H.S9)(s,e).color}},e))})]})},eV=()=>{var e;let{t}=(0,o.B)(),{queryVariables:a,team:n,department:l,setTeam:i,filterRequired:c}=$(),{data:d,error:p,refetch:m}=C(),f=null!==(e=null==d?void 0:d.managedStaffTeams.length)&&void 0!==e?e:0,{data:x,previousData:g,error:y,loading:v,fetchMore:j}=F({context:{suppressErrorCodes:["FILTER_REQUIRED"]},variables:{...a,teamNames:null},skip:f<2||!!c}),b=null!=x?x:g,A=null==b?void 0:b.managedStaff.pageInfo,[S,w]=(0,s.useState)();(0,s.useEffect)(()=>{w(void 0)},[a]),(0,s.useEffect)(()=>{(null==A?void 0:A.hasNextPage)&&A.endCursor&&!S&&j({variables:{after:A.endCursor}}).catch(e=>w(e))},[null==A?void 0:A.hasNextPage,null==A?void 0:A.endCursor,S,j]);let M=!!(null==A?void 0:A.hasNextPage),N=(0,s.useMemo)(()=>l?new Set(null==d?void 0:d.managedStaffTeams.filter(e=>{let{departments:t}=e;return t.includes(l)}).map(e=>{let{name:t}=e;return t})):null,[d,l]),k=(0,s.useMemo)(()=>{var e;return(0,H.aK)((0,H.$Z)(null!==(e=null==b?void 0:b.managedStaff.nodes)&&void 0!==e?e:[])).filter(e=>{let{name:t}=e;return!N||N.has(t)})},[b,N]);return p&&!d?(0,r.jsx)(K.A,{severity:"error",sx:{mb:2},action:(0,r.jsx)(e_.A,{onClick:()=>{m().catch(()=>void 0)},sx:{px:1,fontWeight:600},children:t("Retry")}),children:t("Could not load your teams: {{message}}",{message:p.message})}):f<2||c||W(y)||v&&!g||M&&!g||S||0===k.length?null:(0,r.jsxs)(u.A,{component:"section","aria-label":t("Teams"),"aria-busy":v||M,sx:{mb:2,opacity:v||M?.6:1,transition:"opacity 150ms"},children:[(0,r.jsx)(h.A,{variant:"overline",component:"h2",color:"text.secondary",sx:{display:"block",mb:.5},children:t("Teams")}),(0,r.jsx)(u.A,{sx:{display:"flex",flexWrap:"wrap",gap:1},children:k.map(e=>(0,r.jsx)(eU,{team:e,selected:n===e.name,onToggle:()=>i(n===e.name?null:e.name)},e.name))})]})},eX=(0,ee.Ay)(V.A)(e=>{let{theme:t}=e;return{padding:t.spacing(2),height:"calc(100vh - ".concat(ea.K," - ").concat(er.VT,")"),display:"flex",flexDirection:"column",overflow:"hidden"}}),eJ=(0,ee.Ay)(u.A)(()=>({display:"flex",justifyContent:"space-between",alignItems:"center",flexWrap:"wrap",gap:ei.A.spacing(1),lineHeight:1.1})),eK=(0,ee.Ay)(u.A)(()=>({flex:1,display:"flex",alignItems:"center",gap:ei.A.spacing(2)})),eZ=(0,ee.Ay)(u.A)(()=>({display:"flex",alignItems:"center",justifyContent:"flex-end",width:"100%",paddingInline:ei.A.spacing(4),paddingBottom:ei.A.spacing(1),gap:ei.A.spacing(2),marginBottom:ei.A.spacing(2)})),e0=(0,ee.Ay)(u.A)(()=>({borderRight:"1px solid ".concat(ei.A.palette.divider),"&:first-of-type":{borderLeft:"1px solid ".concat(ei.A.palette.divider)}})),e1=e=>{let{panelOpen:t,onNavListToggle:a,onFilterListToggle:n,title:l}=e,{t:i}=(0,o.B)(),c=(0,es.Y)(),{openMember:p,search:m,setSearch:f,staffMembers:g,totalCount:y,staffLoading:v,staffError:j,filterRequired:b,loadMoreError:A,hasNextPage:S,loadMore:w,refetchStaff:C,activeFilterCount:M,rowDensity:N,loadedCount:k,expandedRows:I,toggleRow:P}=$(),E=(0,s.useMemo)(()=>g.length?(0,H.uY)(g[0].quarterlyHealth).map(e=>{let{fiscalYear:t,quarter:a,averagePayroll:r}=e,{start:n,end:l}=(0,H.qf)(t,a),s=i("Fiscal quarter {{quarter}}, FY{{year}}: {{start}} – {{end}}",{quarter:a,year:String(t).slice(-2),start:(0,eo.Ff)(n.month,n.year,c),end:(0,eo.Ff)(l.month,l.year,c)});return{label:(0,H.F4)(t,a),tooltip:null===r?i("{{range}} Partial quarter: payroll started during this quarter.",{range:s}):s}}):[],[g,i,c]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(er.Vh,{p:2,"data-testid":"MultiPageHeader",children:(0,r.jsxs)(eJ,{children:[(0,r.jsx)(er.IK,{panelOpen:t===B.Navigation,onClick:a,children:(0,r.jsx)(er.eY,{titleAccess:(0,en.g)(er.dI.HrTools,i),"data-testid":"HrToolsMenuIcon"})}),(0,r.jsx)(er.IK,{panelOpen:t===B.Filters,onClick:n,"aria-label":(0,en.g)(er.dI.Filters,i),children:(0,r.jsx)(X.A,{badgeContent:M,color:"primary",children:(0,r.jsx)(el.x,{"data-testid":"FilterIcon"})})}),(0,r.jsxs)(eK,{children:[(0,r.jsxs)(u.A,{display:"flex",alignItems:"center",gap:.5,children:[(0,r.jsx)(h.A,{variant:"h5",children:l}),(0,r.jsx)(ej,{})]}),!b&&(0,r.jsx)(h.A,{variant:"body2",color:"text.secondary",sx:{dis
1play:{xs:"none",md:"block"}},children:k===g.length?i("Showing {{count}} of {{total}} \xb7 sorted by MPD health",{count:k,total:y}):1===g.length?i("Showing {{count}} of {{total}} in one row \xb7 sorted by MPD health",{count:k,total:y}):i("Showing {{count}} of {{total}} in {{rows}} rows \xb7 sorted by MPD health",{count:k,total:y,rows:g.length})})]}),(0,r.jsx)(eC,{}),(0,r.jsx)(d.A,{value:m,onChange:e=>f(e.target.value),label:i("Search name"),size:"small",sx:{minWidth:{xs:"100%",sm:220},width:{xs:"100%",sm:"auto"}},InputProps:{startAdornment:(0,r.jsx)(J.A,{position:"start",children:(0,r.jsx)(U.A,{fontSize:"small"})})}})]})}),(0,r.jsxs)(eX,{maxWidth:!1,children:[(0,r.jsx)(ec,{}),(0,r.jsx)(eV,{}),(0,r.jsxs)(eZ,{children:[E.length>0&&(0,r.jsx)(ey,{sx:{mr:"auto",display:{xs:"none",md:"flex"}}}),E.map(e=>{let{label:t,tooltip:a}=e;return(0,r.jsx)(e0,{children:(0,r.jsx)(x.A,{title:a,arrow:!0,describeChild:!0,children:(0,r.jsx)(h.A,{variant:"body2",fontWeight:"bold",tabIndex:0,sx:{width:"80px",textDecoration:"underline dotted",textDecorationColor:"text.disabled",textUnderlineOffset:"3px",cursor:"help"},textAlign:"center",children:t})})},t)})]}),g.length>0&&(A||j)&&(0,r.jsx)(K.A,{severity:"error",sx:{mb:1},action:(0,r.jsx)(Z.A,{color:"inherit",size:"small",onClick:A?w:C,children:i("Retry")}),children:A?i("Could not load more staff: {{message}}",{message:A.message}):i("Could not refresh the staff list: {{message}}",{message:null==j?void 0:j.message})}),(0,r.jsx)(u.A,{sx:{flex:1,minHeight:0},children:b?(0,r.jsx)(eh,{filterRequired:b,onOpenFilters:t===B.Filters?void 0:n}):j&&!g.length?(0,r.jsx)(K.A,{severity:"error",action:(0,r.jsx)(Z.A,{color:"inherit",size:"small",onClick:C,children:i("Retry")}),children:j.message}):(0,r.jsx)(et.d,{loading:v,data:g,disableHover:!0,style:{height:"100%"},itemContent:(e,t)=>(0,r.jsx)(eO,{data:t,density:N,expanded:I.has(t.personNumber),onToggleExpand:()=>P(t.personNumber),onClick:()=>p(t)},t.personNumber),endReached:()=>{S&&w()},EmptyPlaceholder:(0,r.jsx)(ed,{})})})]})]})};var e2=a(57278),e5=a(42375),e8=a(9634),e4=a(68576),e9=a(94982);let e3=(0,ee.Ay)(u.A)(e=>{let{theme:t}=e;return{display:"flex",alignItems:"center",justifyContent:"space-between",padding:t.spacing(1,1,1,2),borderBottom:"1px solid ".concat(t.palette.mpdxGrayLight.main)}}),e7=(0,ee.Ay)(u.A)(e=>{let{theme:t}=e;return{padding:t.spacing(2),overflowY:"auto"}}),e6=e=>{let{title:t,children:a}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(e2.A,{sx:{my:2}}),(0,r.jsx)(h.A,{variant:"subtitle1",component:"h3",fontWeight:600,mb:1,children:t}),a]})},te=e=>{let{term:t,children:a}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(h.A,{variant:"body2",component:"dt",fontWeight:"bold",children:t}),(0,r.jsx)(h.A,{variant:"body2",component:"dd",sx:{ml:0,mb:1},children:a})]})},tt={[y.hE.Green]:4250,[y.hE.Yellow]:3100,[y.hE.Red]:1900,[y.hE.Gray]:null},ta=()=>{let{t:e}=(0,o.B)(),{formatCurrency:t}=(0,eT.F)(),a=(0,es.Y)(),{closeLegend:n}=$(),l={[y.hE.Green]:e("Payroll was at or above their Monthly Gross Salary (within $5)."),[y.hE.Yellow]:e("Payroll was below their Monthly Gross Salary but at or above their New Staff Monthly Salary."),[y.hE.Red]:e("Payroll was below both benchmarks."),[y.hE.Gray]:e("The quarter can't be graded: a benchmark is missing, or the quarter is before or includes their first payroll (shown as Partial).")},s=e=>{let{year:t,month:r}=e;return new Intl.DateTimeFormat(a,{month:"long"}).format(new Date(t,r-1,1))},c=[1,2,3,4].map(t=>{let{start:a,end:r}=(0,H.qf)(2026,t);return{quarter:t,months:e("{{startMonth}} – {{endMonth}}",{startMonth:s(a),endMonth:s(r)})}}),d=[I.NegativeLastMonth,I.ThreeMonthsNegative],m=ex(e);return(0,r.jsxs)(u.A,{component:"section","aria-labelledby":"report-legend-title",sx:{display:"flex",flexDirection:"column",height:"100%"},children:[(0,r.jsxs)(e3,{children:[(0,r.jsx)(h.A,{variant:"h6",id:"report-legend-title",children:e("How this report works")}),(0,r.jsx)(p.A,{size:"small",onClick:n,"aria-label":e("Close Panel"),children:(0,r.jsx)(i.A,{fontSize:"small"})})]}),(0,r.jsxs)(e7,{children:[(0,r.jsx)(h.A,{variant:"body2",color:"text.secondary",children:e("Each chip is a staff member's average monthly payroll for a fiscal quarter, graded against two benchmarks: their Monthly Gross Salary and their New Staff Monthly Salary.")}),(0,r.jsxs)(e6,{title:e("Colors"),children:[em.map(a=>{let n=tt[a];return(0,r.jsxs)(u.A,{sx:{display:"flex",alignItems:"flex-start",ga
1p:1.5,mb:1},children:[(0,r.jsx)(eF,{"aria-hidden":!0,health:a,size:"small",label:null===n?"-":t(n),sx:{flexShrink:0}}),(0,r.jsxs)(h.A,{variant:"body2",children:[(0,r.jsx)(u.A,{component:"strong",children:ef(e,a)}),": ",l[a]]})]},a)}),(0,r.jsx)(h.A,{variant:"body2",color:"text.secondary",children:e("A staff member whose Monthly Gross Salary is below their New Staff Monthly Salary can show green quarters yet still have negative months. Their Monthly Gross Salary is marked red in their details.")})]}),(0,r.jsx)(e6,{title:e("Numbers"),children:(0,r.jsxs)(u.A,{component:"dl",sx:{m:0},children:[(0,r.jsx)(te,{term:e("Quarter amount"),children:e("Average monthly payroll across the quarter's three months. A month with no payroll counts as $0.")}),(0,r.jsx)(te,{term:e("Partial"),children:e("The quarter in which payroll started. Open the staff member to see each of its months graded on its own.")}),(0,r.jsx)(te,{term:e("- (dash)"),children:e("No payroll in a quarter that can't be graded.")}),(0,r.jsx)(te,{term:e("Geographic location"),children:e("Sets the cost-of-living multiplier in the New Staff Monthly Salary. It is stored on the staff member's own MPDX account list, so it can only be set for staff who have one; until then the report shows no location.")}),(0,r.jsx)(te,{term:e("Monthly Gross Salary"),children:e("The staff member's annual gross salary plus their spouse's (from HR records), divided by 12.")}),(0,r.jsx)(te,{term:e("Sort order"),children:e("Staff with the highest share of red quarters come first, then the highest share of yellow, then those furthest below their benchmarks. Staff with no data are listed last, sorted alphabetically by last name.")})]})}),(0,r.jsxs)(e6,{title:e("Filters"),children:[(0,r.jsx)(u.A,{component:"dl",sx:{m:0},children:d.map(t=>(0,r.jsx)(te,{term:E(e,t),children:G(e,t)},t))}),(0,r.jsx)(h.A,{variant:"body2",color:"text.secondary",children:e("The current month is never counted.")})]}),(0,r.jsxs)(e6,{title:e("New Staff Monthly Salary (the goal)"),children:[(0,r.jsx)(h.A,{variant:"body2",children:m.body}),(0,r.jsx)(u.A,{component:"ol",sx:{my:1,pl:3},children:m.steps.map(e=>(0,r.jsx)(h.A,{variant:"body2",component:"li",children:e},e))}),(0,r.jsx)(h.A,{variant:"body2",children:m.footer})]}),(0,r.jsxs)(e6,{title:e("Fiscal quarters"),children:[(0,r.jsx)(h.A,{variant:"body2",children:e("Cru's fiscal year runs September – August and is named for the calendar year in which it ends, so FQ1 26 is September–November 2025.")}),(0,r.jsx)(e5.A,{size:"small",sx:{my:1,width:"auto"},children:(0,r.jsx)(e8.A,{children:c.map(t=>{let{quarter:a,months:n}=t;return(0,r.jsxs)(e4.A,{children:[(0,r.jsx)(e9.A,{sx:{fontWeight:"bold",pl:0},children:e("FQ{{quarter}}",{quarter:a})}),(0,r.jsx)(e9.A,{children:n})]},a)})})}),(0,r.jsx)(h.A,{variant:"body2",children:e("The report shows the last four completed quarters, newest first; the current quarter appears once it ends.")})]})]})]})};var tr=a(82586),tn=a(65836),tl=a(39954),ts=a(37583),to=a(32947),ti=a(96342),tc=a(12087),td=a(58842),tu=a(95420);function th(){let e=(0,v._)(["\n  mutation UpdateStaffGeographicLocation(\n    $input: ManagedStaffGeographicLocationUpdateMutationInput!\n  ) {\n    updateManagedStaffGeographicLocation(input: $input) {\n      geographicLocation\n      newStaffMonthlySalary\n    }\n  }\n"]);return th=function(){return e},e}let tp={},tm=(0,j.J1)(th()),tf=e=>{let{firstName:t,personNumber:a,geographicLocation:n,onSaved:l}=e,{t:i}=(0,o.B)(),h=(0,es.Y)(),{enqueueSnackbar:p}=(0,tc.dh)(),{goalGeographicConstantMap:m,loading:f,unavailable:x}=(0,td.k9)(),g=null!=n?n:null,[y,v]=(0,s.useState)(g),[j,{loading:b}]=function(e){let t={...tp};return tu.n(tm,t)}(),A=(0,s.useMemo)(()=>Array.from(m.keys()),[m]),S=async()=>{y&&await j({variables:{input:{personNumber:a,geographicLocation:y}},refetchQueries:["QuarterlyPayrollHistory"],update:(e,t)=>{let{data:r}=t,n=null==r?void 0:r.updateManagedStaffGeographicLocation;if(!n)return;let l=e.identify({__typename:"MpdManagedStaff",personNumber:a});l&&e.modify({id:l,fields:{geographicLocation:()=>n.geographicLocation,newStaffMonthlySalary:()=>n.newStaffMonthlySalary}})},onCompleted:e=>{let t=e.updateManagedStaffGeographicLocation;if(!t){p(i("Failed to save geographic location. Please try again."),{variant:"error"});return}p(i("Saved successfully"),{variant:"success"}),l(t.geographicLocation,t.newStaffMonthlySalary)}})};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(u.A,{sx:{display:"flex",alignItems:"flex-start",ga
1p:1,flexWrap:"wrap"},children:[(0,r.jsx)(c.A,{options:A,getOptionLabel:e=>{let t=m.get(e);return void 0===t||0===t?e:"".concat(e," (").concat((0,eo.QI)(t,h),")")},value:y,onChange:(e,t)=>v(t),disabled:f||b||x,size:"small",sx:{minWidth:220},renderInput:e=>(0,r.jsx)(d.A,{...e,label:i("Geographic Location"),helperText:i('The major city within 50 miles of {{firstName}}. If none apply, select "None".',{firstName:t})})}),(0,r.jsx)(Z.A,{variant:"contained",onClick:S,disabled:!y||y===g||b||x,"aria-busy":b,startIcon:b?(0,r.jsx)(ti.A,{size:20,color:"inherit"}):null,children:b?i("Saving..."):i("Save")})]}),x&&(0,r.jsx)(K.A,{severity:"warning",sx:{width:"100%"},children:i("Geographic locations are not available for this year, so this cannot be updated right now.")}),!x&&!g&&(0,r.jsx)(K.A,{severity:"warning",sx:{width:"100%"},children:i("No geographic location is set for {{firstName}}. Select one so the new staff monthly salary reflects their cost of living correctly.",{firstName:t})}),g===td.DS&&(0,r.jsx)(K.A,{severity:"info",sx:{width:"100%"},children:i('"None" applies no adjustment to the new staff monthly salary. Please select a city if {{firstName}} lives near one.',{firstName:t})})]})};var tx=a(14953),tg=a.n(tx),ty=a(48494);let tv=()=>a.e(9468).then(a.bind(a,10159)).then(e=>{let{StaffTabMPGA:t}=e;return t}),tj=tg()(tv,{loading:ty.u}),tb=()=>Promise.all([a.e(253),a.e(70)]).then(a.bind(a,91858)).then(e=>{let{StaffTabMonthlySummary:t}=e;return t}),tA=tg()(tb,{loading:ty.u}),tS=()=>a.e(9086).then(a.bind(a,18852)).then(e=>{let{StaffTabPayroll:t}=e;return t}),tw=tg()(tS,{loading:ty.u}),tC=()=>a.e(2264).then(a.bind(a,1179)).then(e=>{let{StaffTabQuarterly:t}=e;return t}),tM=tg()(tC,{loading:ty.u}),tN=()=>Promise.resolve().then(a.bind(a,21989)).then(e=>{let{StaffTabStaffExpenseReport:t}=e;return t});tg()(tN,{loading:ty.u});var tk=a(21989);let tI=e=>{let{label:t,value:a,labelAdornment:n,valueAdornment:l,valueColor:s}=e;return(0,r.jsxs)(u.A,{sx:{display:"flex",flexDirection:"column",gap:.25,minWidth:140},children:[(0,r.jsxs)(u.A,{display:"flex",alignItems:"center",gap:.5,children:[(0,r.jsx)(h.A,{variant:"caption",color:"text.secondary",children:t}),n]}),(0,r.jsxs)(u.A,{display:"flex",alignItems:"center",gap:.5,children:[(0,r.jsx)(h.A,{variant:"body2",color:s,children:a}),l]})]})},tP=(0,ee.Ay)(u.A)(e=>{let{theme:t}=e;return{display:"flex",flexDirection:"row",gap:t.spacing(2),flexWrap:"wrap"}}),tE=(0,ee.Ay)(u.A)(e=>{let{}=e;return{width:"100%",backgroundColor:"transparent",boxShadow:"none",borderBottom:"1px solid ".concat(ei.A.palette.divider)}}),tG=(0,ee.Ay)(tr.A)(e=>{let{theme:t}=e;return{width:"100%",minHeight:40,"& .MuiTabs-indicator":{backgroundColor:t.palette.progressBarYellow.main}}}),tT=(0,ee.Ay)(ts.A)(e=>{let{}=e;return{textTransform:"none",minWidth:64,minHeight:40,marginRight:ei.A.spacing(1),color:ei.A.palette.text.primary,opacity:.75,"&:hover":{opacity:1}}}),tR=()=>{var e;let{t}=(0,o.B)(),{formatCurrency:a}=(0,eT.F)(),{selectedMember:n,updateSelectedMember:l,closePanel:s,selectedTabKey:c,handleTabChange:d,refetchStaff:m}=$();if(!n)return null;let{firstName:f,lastName:g,spouseFirstName:y,spouseLastName:v,personNumber:j,staffAccountId:b,geographicLocation:A,spousePersonNumber:S,spouseStaffAccountId:w,teams:C,newStaffMonthlySalary:M,quarterlyHealth:N,assignmentCategoryGroup:k}=n,I=(0,H.IM)(f,g),P="".concat(f," ").concat(g),E=C.employee.map(e=>{let{name:t}=e;return t}).join(", ")||H.kj,G=null!==(e=null==N?void 0:N.monthlyGrossSalary)&&void 0!==e?e:null,T=(0,H.$O)(t,a,n);return(0,r.jsxs)(u.A,{sx:e=>({display:"flex",flexDirection:"column",gap:e.spacing(2),p:e.spacing(3),height:"100%",width:"100%"}),children:[(0,r.jsxs)(u.A,{sx:{display:"flex",alignItems:"flex-start",gap:2},children:[(0,r.jsx)(eP.A,{sx:{bgcolor:"mpdxGrayLight.main",color:"text.primary"},children:I}),(0,r.jsxs)(u.A,{sx:{flex:1,display:"flex",flexDirection:"column",gap:1},children:[(0,r.jsx)(h.A,{variant:"h6",id:"right-panel-header",children:P}),N&&(0,r.jsx)(ez,{quarters:(0,H.uY)(N)})]}),(0,r.jsx)(p.A,{"aria-label":t("Close"),onClick:s,size:"small",children:(0,r.jsx)(i.A,{})})]}),(0,r.jsxs)(tP,{children:[(0,r.jsx)(tI,{label:t("Person Number"),value:j}),(0,r.jsx)(tI,{label:t("Staff Account Number"),value:b}),(0,r.jsx)(tI,{label:t("Employment Type"),value:(0,H.a8)(t,k)}),(0,r.jsx)(tI,{label:t("Team"),value:E})]}),y&&(0,r.jsxs)(tP,{children:[(0,r.jsxs)(h.A,{variant:"subtitle2",fontWeight:"bold",sx:{width:"100%"},children:[t("Spouse"),": ","".concat(y," ").concat(null!=v?v:g)]}),(0,r.jsx)(tI,{label:t("Person Number"),value:null!=S?S:H.kj}),(0,r.jsx)(tI,{label:t("Staff Account Number"),value:null!=w?w:H.kj})]}),(0,r.jsxs)(tP,{children:[(0,r.jsxs)(u.A,{sx:{display:"flex",flexDirection:"column",gap:1},children:[(0,r.jsx)(h.A,{variant:"subtitle2",fontWeight:"bold",children:t("MPD Health Benchmark:")}),(0,r.jsxs)(tP,{children:[(0,r.jsx)(tI,{label:t("New Staff Monthly Salary"),labelAdornment:(0,r.jsx)(x.A,{title:eg(t),describeChild:!0,children:(0,r.jsx)(to.$,{tabIndex:0,titleAccess:t("How New Staff Monthly Salary is calculated")})}),value:null!==M?a(M):H.kj}),(0,r.jsx)(tI,{label:t("Monthly Gross Salary"),valueColor:T?"error.main":void 0,valueAdornment:T&&(0,r.jsx)(eD,{warning:T}),value:null!==G?a(G):H.kj})]}),(null===G||null===M)&&(0,r.jsx)(K.A,{severity:"error",sx:{width:0,minWidth:"100%"},children:t("MPD health cannot be graded without both benchmarks.")})]}),(0,r.jsxs)(u.A,{sx:{display:"flex",flexDirection:"column",gap:1,flex:1,minWidth:260},children:[(0,r.jsx)(h.A,{variant:"subtitle2",fontWeight:"bold",children:t("Geographic Multiplier:")}),(0,r.jsx)(tf,{firstName:f,personNumber:j,geographicLocation:A,onSaved:(e,t)=>{l(j,{geographicLocation:e,newStaffMonthlySalary:t}),m()}},j)]})]}),(0,r.jsxs)(tn.Ay,{value:c,children:[(0,r.jsx)(tE,{children:(0,r.jsxs)(tG,{onChange:d,"aria-label":t("Staff details"),children:[(0,r.jsx)(tT,{value:L.MonthlySummary,label:t("Monthly Summary"),onMouseEnter:tb}),(0,r.jsx)(tT,{value:L.Quarterly,label:t("Quarterly"),onMouseEnter:tC}),(0,r.jsx)(tT,{value:L.Payroll,label:t("Payroll"),onMouseEnter:tS}),(0,r.jsx)(tT,{value:L.MPGAReport,label:t("MPGA Report"),onMouseEnter:tv}),(0,r.jsx)(tT,{value:L.StaffExpenseReport,label:t("Staff Expense Report"),onMouseEnter:tN})]})}),(0,r.jsx)(tl.A,{value:L.MonthlySummary,children:(0,r.jsx)(tA,{staffAccountId:b})}),(0,r.jsx)(tl.A,{value:L.Quarterly,children:(0,r.jsx)(tM,{staffAccountId:b})}),(0,r.jsx)(tl.A,{value:L.Payroll,children:(0,r.jsx)(tw,{staffAccountId:b})}),(0,r.jsx)(tl.A,{value:L.MPGAReport,children:(0,r.jsx)(tj,{staffAccountId:b,personNumber:j})}),(0,r.jsx)(tl.A,{value:L.StaffExpenseReport,children:(0,r.jsx)(tk.StaffTabStaffExpenseReport,{staffAccountId:b,personNumber:j})})]})]})};var tD=a(46103),tF=a(82587),tL=a(48398),tH=a(75697),tB=a(11213),tq=a(80860);let tW=()=>{let{t:e}=(0,o.B)(),{isOpen:t,legendOpen:a}
1=$(),[n,l]=(0,s.useState)(B.Filters);return(0,r.jsx)(tD.T,{isScrollBox:!1,leftPanel:n===B.Navigation?(0,r.jsx)(tF.E,{isOpen:!0,selectedId:"mpdSupervisorReport",onClose:()=>l(null),navType:tF.T.HrTools}):n===B.Filters?(0,r.jsx)(Q,{onClose:()=>l(null)}):void 0,leftOpen:null!==n,leftWidth:"290px",rightPanel:t?(0,r.jsx)(tR,{}):a?(0,r.jsx)(ta,{}):void 0,rightOpen:t||a,rightWidth:t?"60%":"520px",headerHeight:er.VT,mainContent:(0,r.jsx)(e1,{panelOpen:n,onNavListToggle:()=>{l(n===B.Navigation?null:B.Navigation)},onFilterListToggle:()=>{l(n===B.Filters?null:B.Filters)},title:e("MPD Supervisor Report")})})};var tY=!0;let tO=()=>{let{t:e}=(0,o.B)(),t=(0,tq.f)(),{developer:a}=(0,tB.f)();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(l(),{children:(0,r.jsx)("title",{children:"".concat(t," | ").concat(e("HR Tools | MPD Supervisor Report"))})}),(0,r.jsx)(tL.eK,{requireUserGroups:tL.P0.MpdSupervisor,alwaysAllow:a,children:(0,r.jsx)(tH.D,{children:(0,r.jsx)(z,{children:(0,r.jsx)(tW,{})})})})]})},tz=tO},21989:(e,t,a)=>{"use strict";a.r(t),a.d(t,{StaffTabStaffExpenseReport:()=>s});var r=a(74848);a(96540);var n=a(75034),l=a(33215);let s=e=>{let{staffAccountId:t,personNumber:a}=e,{t:s}=(0,n.B)();return(0,r.jsx)(l._,{staffAccountId:t,reportLink:"staffExpense",reportName:s("Staff Expense"),personNumber:a})}},33215:(e,t,a)=>{"use strict";a.d(t,{_:()=>u});var r=a(74848),n=a(91106),l=a.n(n);a(96540);var s=a(86771),o=a(55148),i=a(73938),c=a(75034),d=a(81506);let u=e=>{let{staffAccountId:t,reportLink:a,reportName:n,personNumber:u}=e,{t:h}=(0,c.B)(),p=(0,d.E)();return(0,r.jsxs)(o.A,{sx:{display:"flex",alignItems:"center",gap:1},children:[(0,r.jsx)(s.A,{fontSize:"small",color:"action"}),(0,r.jsx)(i.A,{component:l(),href:{pathname:"/accountLists/".concat(p,"/reports/").concat(a),query:{staffAccountId:t,...u&&{personNumber:u}}},underline:"hover",children:h("View {{reportName}} Report",{reportName:n})})]})}},12372:(e,t,a)=>{"use strict";a.d(t,{$O:()=>l,$Z:()=>m,F4:()=>i,IM:()=>s,J9:()=>u,Oh:()=>g,S9:()=>o,WU:()=>x,a8:()=>p,aK:()=>A,cn:()=>y,jk:()=>v,kj:()=>n,pJ:()=>S,qf:()=>c,ty:()=>f,uY:()=>h,vO:()=>d});var r=a(28710);let n="—",l=(e,t,a)=>{var r,n,l;let s=null!==(n=null===(r=a.quarterlyHealth)||void 0===r?void 0:r.monthlyGrossSalary)&&void 0!==n?n:null,o=null!==(l=a.newStaffMonthlySalary)&&void 0!==l?l:null;return null===s||null===o||s>=o?null:e("Monthly Gross Salary ({{gross}}) is {{shortfall}} below the New Staff Monthly Salary ({{newStaff}}). Even at full salary, this staff member's payroll cannot reach the New Staff benchmark.",{gross:t(s),newStaff:t(o),shortfall:t(o-s)})},s=(e,t)=>{var a,r;return((null!==(a=null==e?void 0:e[0])&&void 0!==a?a:"")+(null!==(r=null==t?void 0:t[0])&&void 0!==r?r:"")).toUpperCase()},o=(e,t)=>{switch(t){case r.hE.Green:return{bg:e.palette.chipGreenLight.main,color:e.palette.chipGreenDark.main};case r.hE.Red:return{bg:e.palette.chipRedLight.main,color:e.palette.chipRedDark.main};case r.hE.Yellow:return{bg:e.palette.chipYellowLight.main,color:e.palette.chipYellowDark.main};case r.hE.Gray:default:return{bg:e.palette.chipGrayLight.main,color:e.palette.chipGrayDark.main}}},i=(e,t)=>"FQ".concat(t," ").concat(e.toString().slice(-2)),c=(e,t)=>{let a=8+(t-1)*3,r=t=>({year:e-1+Math.floor(t/12),month:t%12+1});return{start:r(a),end:r(a+2)}},d=(e,t)=>{switch(t){case r.hE.Green:return e("on track");case r.hE.Red:return e("at risk");case r.hE.Yellow:return e("needs attention");case r.hE.Gray:default:return e("no data")}},u=e=>{let{t,status:a,averagePayroll:n,formatCurrency:l}=e;return null===n?t("Partial"):a!==r.hE.Gray||n?l(n):"-"},h=e=>{let{completedQuarters:t,startingQuarter:a}=e;return[...t.map(e=>{let{fiscalYear:t,quarter:a,status:r,averagePayroll:n}=e;return{fiscalYear:t,quarter:a,status:r,averagePayroll:n}}),...a?[{fiscalYear:a.fiscalYear,quarter:a.quarter,status:r.hE.Gray,averagePayroll:null}]:[]].sort((e,t)=>t.fiscalYear-e.fiscalYear||t.quarter-e.quarter)},p=(e,t)=>{switch(t){case r.Hr.FullTime:return e("Full time");case r.Hr.PartTime:return e("Part time");default:return n}},m=e=>{let t=new Set,a=[];for(let r of e){if(t.has(r.personNumber))continue;let n=e.find(e=>e.personNumber!==r.personNumber&&!t.has(e.personNumber)&&e.staffAccountId===r.staffAccountId);n?(t.add(r.personNumber),t.add(n.personNumber),a.push({...r,partner:n})):a.push(r)}return a},f=e=>{let{partner:t,spouseFirstName:a,spouseLastName:r,lastName:n}=e;return t?"".concat(t.firstName," ").concat(t.lastName):a?"".concat(a," ").concat(null!=r?r:n):null},x=e=>{var t;let{teams:a,partner:r}=e;return[...new Set([...a.employee.map(e=>{let{name:t}=e;return t}),...null!==(t=null==r?void 0:r.teams.employee.map(e=>{let{name:t}=e;return t}))&&void 0!==t?t:[]])]},g=e=>{let{firstName:t,lastName:a,partner:r}=e;return r?r.lastName===a?"".concat(t," & ").concat(r.firstName," ").concat(a):"".concat(t," ").concat(a," & ").concat(r.firstName," ").concat(r.lastName):"".concat(t," ").concat(a)},y=e=>{let{firstName:t,lastName:a,partner:r}=e;return r?s(t,r.firstName):s(t,a)},v=e=>e.reduce((e,t)=>
1e+(t.partner?2:1),0),j=e=>{var t,a;let{quarterlyHealth:n}=e,[l]=[...null!==(t=null==n?void 0:n.completedQuarters)&&void 0!==t?t:[]].sort((e,t)=>t.fiscalYear-e.fiscalYear||t.quarter-e.quarter);return null!==(a=null==l?void 0:l.status)&&void 0!==a?a:r.hE.Gray},b=()=>({[r.hE.Red]:0,[r.hE.Yellow]:0,[r.hE.Green]:0,[r.hE.Gray]:0}),A=e=>{let t=new Map,a=(e,a)=>{let r=j(e);for(let e of new Set(a)){var n;let a=null!==(n=t.get(e))&&void 0!==n?n:{name:e,staffCount:0,counts:b()};a.staffCount+=1,a.counts[r]+=1,t.set(e,a)}};for(let t of e){let{partner:e,...r}=t;a(r,r.teams.employee.map(e=>{let{name:t}=e;return t})),e&&a(e,e.teams.employee.map(e=>{let{name:t}=e;return t}))}return[...t.values()].sort((e,t)=>t.counts[r.hE.Red]-e.counts[r.hE.Red]||t.counts[r.hE.Yellow]-e.counts[r.hE.Yellow]||e.name.localeCompare(t.name))},S=(e,t)=>{switch(t){case r.HV.SupportedRmo:return e("Supported RMO");case r.HV.SupportedNonRmo:return e("Supported non-RMO");case r.HV.Designation:return e("Designation");case r.HV.None:return e("Not supported");default:return n}}},32947:(e,t,a)=>{"use strict";a.d(t,{$:()=>n});var r=a(18230);let n=(0,a(23017).Ay)(r.A)(e=>{let{theme:t}=e;return{marginLeft:t.spacing(.5),verticalAlign:"middle",cursor:"pointer",color:t.palette.mpdxGrayDark.main,fontSize:"1rem"}})},72193:(e,t,a)=>{"use strict";a.d(t,{d:()=>n});var r=a(28710);let n=(e,t)=>e?e===r.C3.Fica?t("Subject to FICA"):e===r.C3.Seca?t("Subject to SECA"):e===r.C3.Optout?t("Exempt"):void 0:void 0},51597:(e,t,a)=>{"use strict";a.d(t,{F:()=>l});var r=a(49528),n=a(99328);let l=()=>{let e=(0,r.Y)(),t=function(t){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return(0,n.QI)(null!=t?t:0,e,{fractionDigits:a})};return{formatCurrency:t=>(0,n.N8)(null!=t?t:0,"USD",e,{fractionDigits:2,showTrailingZeros:!0}),formatFraction:t,formatPercentage:function(e){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return t((null!=e?e:0)/100,a)},formatDecimal:t=>new Intl.NumberFormat(e,{style:"decimal",minimumFractionDigits:2,maximumFractionDigits:4}).format(null!=t?t:0)}}},95381:(e,t,a)=>{"use strict";a.d(t,{d:()=>y,j:()=>m});var r=a(74848),n=a(96540),l=a(69323),s=a(12668),o=a(20132),i=a(27414),c=a(23017),d=a(13292),u=a(68179);let h=(e,t)=>{if(!t)return{items:[...e],groupCounts:[],groupLabels:[]};let a=Array.from(e.reduce((e,a)=>{var r;let{label:n,order:l=n}=t(a),s=null!==(r=e.get(l))&&void 0!==r?r:{label:n,items:[]};return s.items.push(a),e.set(l,s),e},new Map).entries()).sort((e,t)=>{let[a]=e,[r]=t;return a>r?1:a<r?-1:0}).map(e=>{let[t,a]=e;return a});return{items:a.flatMap(e=>{let{items:t}=e;return t}),groupCounts:a.map(e=>{let{items:t}=e;return t.length}),groupLabels:a.map(e=>{let{label:t}=e;return t})}},p=n.forwardRef((e,t)=>(0,r.jsx)(l.A,{component:"div",disablePadding:!0,...e,ref:t})),m=(0,c.Ay)(s.Ay,{shouldForwardProp:e=>"disableHover"!==e})(e=>{let{disableHover:t}=e;return{padding:"".concat(0,"px"),"&:last-child":{borderBottom:"none"},...t?{}:{borderBottom:"1px solid ".concat(u.A.palette.grey[200]),"&:hover":{backgroundColor:u.A.palette.mpdxGrayLight.main}}}}),f=e=>{let{height:t}=e;return(0,r.jsx)(m,{disableGutters:!0,disableHover:!0,children:(0,r.jsx)(o.A,{variant:"rectangular",height:t-0})})},x=()=>(0,r.jsxs)("div",{"aria-busy":!0,"data-testid":"infinite-list-skeleton-loading",children:[(0,r.jsx)(f,{height:72}),(0,r.jsx)(f,{height:72}),(0,r.jsx)(f,{height:72}),(0,r.jsx)(f,{height:72}),(0,r.jsx)(f,{height:72}),(0,r.jsx)(f,{height:72})]}),g=(0,c.Ay)(i.A)(e=>{let{theme:t}=e;return{borderBottom:"1px solid ".concat(t.palette.grey[200]),background:t.palette.common.white,marginTop:t.spacing(2),padding:t.spacing(0,2)}}),y=e=>{let{loading:t,disableHover:a=!1,data:l=[],EmptyPlaceholder:s=null,ItemOverride:o=null,context:i,groupBy:c,itemContent:u,...y}=e,{groupCounts:v,groupLabels:j,items:b}=(0,n.useMemo)(()=>h(l,c),[l,c]),A=(0,n.useCallback)(e=>(0,r.jsx)(m,{disableGutters:!0,disableHover:a,...e}),[a]),S={...y,components:{Footer:t?x:void 0,EmptyPlaceholder:t?void 0:()=>s,List:p,Item:null!=o?o:A,ScrollSeekPlaceholder:f,...y.components},scrollSeekConfiguration:{enter:e=>Math.abs(e)>2e3,exit:e=>100>Math.abs(e),...y.scrollSeekConfiguration},overscan:2e3};return v.length>0?(0,r.jsx)(d.kN,{groupCounts:v,groupContent:e=>(0,r.jsx)(g,{variant:"h5",children:j[e]}),itemContent:e=>b[e]&&u(e,b[e],i),...S}):(0,r.jsx)(d.aY,{data:b,itemContent:e=>b[e]&&u(e,b[e],i),...S})}},59874:(e,t,a)=>{"use strict";a.d(t,{X:()=>f});var r=a(74848),n=a(91106),l=a.n(n),s=a(32297),o=a(55148),i=a(27414),c=a(62189),d=a(75034),u=a(81506),h=a(68179),p=a(51990);let m=e=>{let{t,link:a,noStaffAccount:n,userGroupError:l,notSupervisor:s}=e;return l?{title:t("Unable to load this page"),content:(0,r.jsxs)(p.x,{t:t,children:["Something went wrong while loading your account information. Please try again later. If the problem persists, please contact ",a,"."]})}:n?{title:t("Access to this feature is limited."),content:(0,r.jsxs)(p.x,{t:t,children:["Our records show that you do not have a staff account. You cannot access this feature if you do not have a staff account. If you think this is a mistake, please contact ",a,"."]})}:s?{title:t("Access to this feature is limited."),content:(0,r.jsxs)(p.x,{t:t,children:["Our records show that you do not supervise any staff. You cannot access this feature if you do not supervise staff. If you think this is a mistake, please contact ",a,"."]})}:{title:t("Access to this feature is limited."),content:(0,r.jsxs)(p.x,{t:t,children:["Our records show that you are not part of the user group that has access to this feature. If you think this is a mistake, please contact ",a," ","to change your user group."]})}},f=e=>{let{noStaffAccount:t,userGroupError:a,notSupervisor:n}=e,{t:p}=(0,d.B)(),f=(0,u.E)(),{title:x,content:g}=m({t:p,link:(0,r.jsx)(l(),{href:"mailto:[email protected]",style:{color:h.A.palette.primary.main,fontWeight:"bold"},children:"[email protected]"}),noStaffAccount:t,userGroupError:a,notSupervisor:n});
1return(0,r.jsx)(s.A,{maxWidth:"md",sx:{display:"flex",alignItems:"center",justifyContent:"center",minHeight:"80vh"},children:(0,r.jsxs)(o.A,{sx:{display:"flex",flexDirection:"column",gap:1},children:[(0,r.jsx)(i.A,{variant:"h2",children:x}),(0,r.jsx)(i.A,{variant:"h6",children:g}),(0,r.jsx)(o.A,{sx:{display:"flex",mt:2},children:(0,r.jsx)(c.A,{variant:"contained",href:"/accountLists/".concat(f),children:p("Back to Dashboard")})})]})})}},17191:(e,t,a)=>{"use strict";a.d(t,{IK:()=>g,VT:()=>f,Vh:()=>x,dI:()=>m,eO:()=>v,eY:()=>y});var r=a(74848);a(96540);var n=a(43125),l=a(55148),s=a(26098),o=a(27414),i=a(23017),c=a(75034),d=a(91951),u=a(68179),h=a(56615),p=a(49195),m=function(e){return e.Report="reports",e.HrTools="hrTools",e.Filters="filters",e.Settings="settings",e.MpdxTools="mpdxTools",e}({});let f=u.A.spacing(10),x=(0,i.Ay)(l.A)(()=>({position:"sticky",top:0,borderBottom:"1px solid",borderBottomColor:u.A.palette.grey[200],height:f,zIndex:"700",background:u.A.palette.common.white,"@media print":{display:"none"}})),g=(0,i.Ay)(s.A,{shouldForwardProp:e=>"panelOpen"!==e})(e=>{let{panelOpen:t}=e;
1return{display:"inline-block",width:48,height:48,borderradius:24,margin:u.A.spacing(0),backgroundColor:t?u.A.palette.secondary.dark:"transparent",marginRight:"8px",padding:"11px"}}),y=(0,i.Ay)(n.A)(()=>({width:24,height:24,color:u.A.palette.primary.dark})),v=e=>{let{title:t,rightExtra:a,isNavListOpen:n,onNavListToggle:s,headerType:i}=e,{t:u}=(0,c.B)(),{onSetupTour:m}=(0,d.iq)(),f="reports"===i,v="hrTools"===i,j="settings"===i,b="mpdxTools"===i,A="filters"===i,S=(0,p.g)(i,u);return(0,r.jsx)(x,{p:2,"test-dataid":"MultiPageHeader",children:(0,r.jsxs)(l.A,{display:"flex",justifyContent:"space-between",alignItems:"center",sx:{lineHeight:1.1},children:[(0,r.jsxs)(g,{panelOpen:n,onClick:s,disabled:m&&j,children:[f&&(0,r.jsx)(y,{titleAccess:S,"data-testid":"ReportsMenuIcon"}),v&&(0,r.jsx)(y,{titleAccess:S,"data-testid":"HrToolsMenuIcon"}),A&&(0,r.jsx)(h.x,{titleAccess:S,"data-testid":"FilterIcon"}),!m&&j&&(0,r.jsx)(y,{titleAccess:S,"data-testid":"SettingsMenuIcon"}),b&&(0,r.jsx)(y,{titleAccess:S,"data-testid":"MpdxToolsMenuIcon"})]}),(0,r.jsx)(o.A,{variant:"h5",sx:{flex:1},children:t}),a]})})}},49195:(e,t,a)=>{"use strict";a.d(t,{g:()=>n});var r=a(17191);let n=(e,t)=>{switch(e){case r.dI.Report:return t("Toggle Navigation Panel");case r.dI.HrTools:return t("Toggle HR Tools Menu");case r.dI.Filters:return t("Toggle Filters Panel");case r.dI.Settings:return t("Toggle Preferences Menu");case r.dI.MpdxTools:return t("Toggle MPDX Tools Menu");default:return t("Toggle Navigation Panel")}}},48398:(e,t,a)=>{"use strict";a.d(t,{P0:()=>c,eK:()=>h});var r=a(74848),n=a(1944),l=a(28710),s=a(65282),o=a(35458),i=a(59874),c=function(e){return e.Asr="asr",e.SalaryCalc="salaryCalc",e.Mha="mha",e.MpdGoalCalc="mpdGoalCalc",e.NsGoalCalc="nsGoalCalc",e.PdsGoalCalc="pdsGoalCalc",e.MpdSupervisor="mpdSupervisor",e.NewStaffCohorts="newStaffCohorts",e}({});let d=e=>e===l.rS.UsStaff||e===l.rS.HybridStaff,u=e=>e===l.rS.GlobalStaff||e===l.rS.HybridStaff,h=e=>{let{requiredUserType:t=l.rS.UsStaff,requireStaffAccount:a,children:c,alwaysAllow:h,requireUserGroups:p}=e,{inAsrIneligibleGroup:m,inSalaryCalcIneligibleGroup:f,inMhaIneligibleGroup:x,inMpdGoalCalcIneligibleGroup:g,inNsGoalCalcIneligibleGroup:y,inPdsGoalCalcIneligibleGroup:v,inMpdSupervisorIneligibleGroup:j,canViewNewStaffCohorts:b,userType:A,hasNoStaffAccount:S,userLoading:w,userError:C}=(0,o.i)(),M=(0,s.o)(),N=t===l.rS.UsStaff?d(A):u(A),k=A&&!N||p&&({asr:m,salaryCalc:f,mha:x,mpdGoalCalc:g,nsGoalCalc:y,pdsGoalCalc:v,mpdSupervisor:j,newStaffCohorts:!b})[p];return h?c:C?(0,r.jsx)(i.X,{userGroupError:!0}):w&&!A?(0,r.jsx)(n.A,{loading:!0}):k&&!M?(0,r.jsx)(i.X,{notSupervisor:"mpdSupervisor"===p}):a&&S?(0,r.jsx)(i.X,{noStaffAccount:!0}):c}},75697:(e,t,a)=>{"use strict";a.d(t,{D:()=>n});var r=a(55148);let n=(0,a(23017).Ay)(r.A)(e=>{let{theme:t}=e;return{backgroundColor:t.palette.common.white}})},52757:(e,t,a)=>{"use strict";a.d(t,{Y:()=>s,o:()=>o});var r=a(96540),n=a(38221),l=a.n(n);let s=(e,t)=>{let a=(0,r.useRef)(e);(0,r.useEffect)(()=>{a.current=e},[e]);let n=(0,r.useMemo)(()=>l()(function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return a.current(...t)},t),[t]);return(0,r.useEffect)(()=>()=>{n.cancel()},[]),n},o=(e,t)=>{let[a,n]=(0,r.useState)(e),l=s(n,t);return(0,r.useEffect)(()=>
1{l(e)},[e,t]),a}},58842:(e,t,a)=>{"use strict";a.d(t,{DS:()=>d,k9:()=>h});var r=a(96540),n=a(84577),l=a(42835),s=a(25395);function o(){let e=(0,n._)(["\n  query GoalCalculatorConstants($year: Int) {\n    constant {\n      mpdGoalBenefitsConstants(year: $year) {\n        id\n        size\n        sizeDisplayName\n        plan\n        planDisplayName\n        cost\n      }\n      mpdGoalGeographicConstants(year: $year) {\n        id\n        location\n        percentageMultiplier\n      }\n      mpdGoalMiscConstants(year: $year) {\n        id\n        category\n        categoryDisplayName\n        label\n        labelDisplayName\n        fee\n      }\n    }\n  }\n"]);return o=function(){return e},e}let i={},c=(0,l.J1)(o()),d="None",u=e=>{var t;let a={};null==e||e.mpdGoalMiscConstants.forEach(e=>{let{category:t,label:r}=e;a[t]||(a[t]={}),a[t][r]=e});let r=new Map;return r.set(d,0),null==e||e.mpdGoalGeographicConstants.forEach(e=>{let{location:t,percentageMultiplier:a}=e;r.set(t,a)}),{goalBenefitsPlans:null!==(t=null==e?void 0:e.mpdGoalBenefitsConstants)&&void 0!==t?t:[],goalMiscConstants:a,goalGeographicConstantMap:r}},h=(e,t)=>{let{data:a,error:n}=function(e){let t={...i,...e};return s.I(c,t)}({variables:{year:null!=e?e:null},fetchPolicy:"cache-first",skip:null==t?void 0:t.skip}),l=(0,r.useMemo)(()=>u(null==a?void 0:a.constant),[a]);return(0,r.useMemo)(()=>({...l,error:n,loading:!a,unavailable:!!a&&0===a.constant.mpdGoalBenefitsConstants.length}),[l,n,a])}},80860:(e,t,a)=>{"use strict";a.d(t,{f:()=>r});let r=()=>"MPDX"}},e=>{var t=t=>e(e.s=t);e.O(0,[5594,20,113,1857,9260,8601,3292,6629,5514,4475,2351,636,6593,8792],()=>t(68131)),_N_E=e.O()}]);
2//# sourceMappingURL=mpdSupervisorReport-9072a50483c3b44c.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.