@gusto/embedded-react-sdk 0.55.1 → 0.55.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (161) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/dist/components/Common/FieldLayout/FieldLayout.js +6 -6
  3. package/dist/components/Common/Fieldset/Fieldset.js +6 -6
  4. package/dist/components/Common/HorizontalFieldLayout/HorizontalFieldLayout.js +6 -6
  5. package/dist/components/Common/UI/Breadcrumbs/Breadcrumbs.js +1 -1
  6. package/dist/components/Common/UI/FileInput/FileInput.js +1 -1
  7. package/dist/components/Common/UI/MultiSelectComboBox/MultiSelectComboBox.js +58 -49
  8. package/dist/components/Common/UI/MultiSelectComboBox/MultiSelectComboBox.js.map +1 -1
  9. package/dist/components/Common/UI/MultiSelectComboBox/MultiSelectComboBox.module.scss.js +14 -10
  10. package/dist/components/Common/UI/MultiSelectComboBox/MultiSelectComboBox.module.scss.js.map +1 -1
  11. package/dist/components/Common/UI/MultiSelectComboBox/MultiSelectComboBoxTypes.d.ts +4 -0
  12. package/dist/components/Common/UI/ProgressBar/ProgressBar.js +4 -4
  13. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js +6 -3
  14. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js.map +1 -1
  15. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js +6 -3
  16. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js.map +1 -1
  17. package/dist/components/Company/AssignSignatory/useAssignSignatory.js +8 -5
  18. package/dist/components/Company/AssignSignatory/useAssignSignatory.js.map +1 -1
  19. package/dist/components/Company/BankAccount/BankAccountForm/context.js +6 -3
  20. package/dist/components/Company/BankAccount/BankAccountForm/context.js.map +1 -1
  21. package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.d.ts +4 -0
  22. package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.js.map +1 -1
  23. package/dist/components/Company/DocumentSigner/DocumentList/List.js +11 -8
  24. package/dist/components/Company/DocumentSigner/DocumentList/List.js.map +1 -1
  25. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js +6 -3
  26. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  27. package/dist/components/Company/FederalTaxes/useFederalTaxes.js +11 -8
  28. package/dist/components/Company/FederalTaxes/useFederalTaxes.js.map +1 -1
  29. package/dist/components/Company/Industry/Context.js +9 -6
  30. package/dist/components/Company/Industry/Context.js.map +1 -1
  31. package/dist/components/Company/Locations/LocationForm/useLocationForm.js +6 -3
  32. package/dist/components/Company/Locations/LocationForm/useLocationForm.js.map +1 -1
  33. package/dist/components/Company/Locations/LocationsList/useLocationsList.js +6 -3
  34. package/dist/components/Company/Locations/LocationsList/useLocationsList.js.map +1 -1
  35. package/dist/components/Company/OnboardingOverview/context.js +6 -3
  36. package/dist/components/Company/OnboardingOverview/context.js.map +1 -1
  37. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js +6 -3
  38. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js.map +1 -1
  39. package/dist/components/Company/StateTaxes/StateTaxesList/context.js +6 -3
  40. package/dist/components/Company/StateTaxes/StateTaxesList/context.js.map +1 -1
  41. package/dist/components/Company/StateTaxes/TaxRateManagement/context.js +6 -3
  42. package/dist/components/Company/StateTaxes/TaxRateManagement/context.js.map +1 -1
  43. package/dist/components/Employee/Compensation/shared/useJobForm/useJobForm.js +116 -116
  44. package/dist/components/Employee/Compensation/shared/useJobForm/useJobForm.js.map +1 -1
  45. package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/DocumentList.d.ts +4 -0
  46. package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/DocumentList.js +19 -19
  47. package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/DocumentList.js.map +1 -1
  48. package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/List.js +16 -13
  49. package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/List.js.map +1 -1
  50. package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/useDocumentList.js +6 -3
  51. package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  52. package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentSigner.d.ts +4 -0
  53. package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentSigner.js.map +1 -1
  54. package/dist/components/Employee/FederalTaxes/shared/FederalTaxesView.js +1 -1
  55. package/dist/components/Employee/PaymentMethod/management/PaymentMethodBankForm.js +4 -4
  56. package/dist/components/Employee/PaymentMethod/onboarding/BankForm.js +4 -4
  57. package/dist/components/Flow/Flow.js +1 -1
  58. package/dist/components/Payroll/GrossUpModal/GrossUpModal.js +3 -2
  59. package/dist/components/Payroll/GrossUpModal/GrossUpModal.js.map +1 -1
  60. package/dist/components/Payroll/OffCycleCreation/OffCycleCreation.js +75 -71
  61. package/dist/components/Payroll/OffCycleCreation/OffCycleCreation.js.map +1 -1
  62. package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.d.ts +7 -0
  63. package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js +202 -165
  64. package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js.map +1 -1
  65. package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.d.ts +1 -0
  66. package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.js +88 -82
  67. package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.js.map +1 -1
  68. package/dist/components/Payroll/PayrollExecutionFlow/PayrollExecutionFlow.d.ts +1 -0
  69. package/dist/components/Payroll/PayrollExecutionFlow/PayrollExecutionFlow.js.map +1 -1
  70. package/dist/components/Payroll/PayrollExecutionFlow/payrollExecutionMachine.js +73 -48
  71. package/dist/components/Payroll/PayrollExecutionFlow/payrollExecutionMachine.js.map +1 -1
  72. package/dist/components/Payroll/PayrollFlow/PayrollFlow.d.ts +1 -1
  73. package/dist/components/Payroll/PayrollFlow/PayrollFlow.js +22 -20
  74. package/dist/components/Payroll/PayrollFlow/PayrollFlow.js.map +1 -1
  75. package/dist/components/Payroll/PayrollFlow/PayrollFlowComponents.d.ts +3 -0
  76. package/dist/components/Payroll/PayrollFlow/PayrollFlowComponents.js +22 -20
  77. package/dist/components/Payroll/PayrollFlow/PayrollFlowComponents.js.map +1 -1
  78. package/dist/components/Payroll/PayrollLanding/PayrollLanding.d.ts +2 -0
  79. package/dist/components/Payroll/PayrollLanding/PayrollLanding.js +34 -26
  80. package/dist/components/Payroll/PayrollLanding/PayrollLanding.js.map +1 -1
  81. package/dist/components/Payroll/PayrollLanding/PayrollLandingFlowComponents.d.ts +4 -0
  82. package/dist/components/Payroll/PayrollLanding/PayrollLandingFlowComponents.js +51 -43
  83. package/dist/components/Payroll/PayrollLanding/PayrollLandingFlowComponents.js.map +1 -1
  84. package/dist/components/Payroll/PayrollList/PayrollList.d.ts +2 -0
  85. package/dist/components/Payroll/PayrollList/PayrollList.js +48 -47
  86. package/dist/components/Payroll/PayrollList/PayrollList.js.map +1 -1
  87. package/dist/components/Payroll/PayrollList/PayrollListPresentation.d.ts +2 -1
  88. package/dist/components/Payroll/PayrollList/PayrollListPresentation.js +44 -43
  89. package/dist/components/Payroll/PayrollList/PayrollListPresentation.js.map +1 -1
  90. package/dist/components/Payroll/PayrollOverview/PayrollOverview.d.ts +15 -1
  91. package/dist/components/Payroll/PayrollOverview/PayrollOverview.js +188 -172
  92. package/dist/components/Payroll/PayrollOverview/PayrollOverview.js.map +1 -1
  93. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.d.ts +3 -1
  94. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js +110 -118
  95. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js.map +1 -1
  96. package/dist/components/Payroll/PayrollReceipts/PayrollReceipts.js +22 -16
  97. package/dist/components/Payroll/PayrollReceipts/PayrollReceipts.js.map +1 -1
  98. package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js +58 -49
  99. package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js.map +1 -1
  100. package/dist/components/Payroll/PrintChecks/PrintChecks.d.ts +21 -0
  101. package/dist/components/Payroll/PrintChecks/PrintChecks.js +68 -0
  102. package/dist/components/Payroll/PrintChecks/PrintChecks.js.map +1 -0
  103. package/dist/components/Payroll/PrintChecks/PrintChecksBanner/PrintChecksBanner.d.ts +9 -0
  104. package/dist/components/Payroll/PrintChecks/PrintChecksBanner/PrintChecksBanner.js +34 -0
  105. package/dist/components/Payroll/PrintChecks/PrintChecksBanner/PrintChecksBanner.js.map +1 -0
  106. package/dist/components/Payroll/PrintChecks/PrintChecksBanner/index.d.ts +1 -0
  107. package/dist/components/Payroll/PrintChecks/PrintChecksComponents.d.ts +48 -0
  108. package/dist/components/Payroll/PrintChecks/PrintChecksComponents.js +26 -0
  109. package/dist/components/Payroll/PrintChecks/PrintChecksComponents.js.map +1 -0
  110. package/dist/components/Payroll/PrintChecks/PrintChecksFailure/PrintChecksFailure.d.ts +14 -0
  111. package/dist/components/Payroll/PrintChecks/PrintChecksFailure/PrintChecksFailure.js +47 -0
  112. package/dist/components/Payroll/PrintChecks/PrintChecksFailure/PrintChecksFailure.js.map +1 -0
  113. package/dist/components/Payroll/PrintChecks/PrintChecksFailure/index.d.ts +1 -0
  114. package/dist/components/Payroll/PrintChecks/PrintChecksForm/PrintChecksForm.d.ts +16 -0
  115. package/dist/components/Payroll/PrintChecks/PrintChecksForm/PrintChecksForm.js +144 -0
  116. package/dist/components/Payroll/PrintChecks/PrintChecksForm/PrintChecksForm.js.map +1 -0
  117. package/dist/components/Payroll/PrintChecks/PrintChecksForm/index.d.ts +1 -0
  118. package/dist/components/Payroll/PrintChecks/PrintChecksSummary/PrintChecksSummary.d.ts +14 -0
  119. package/dist/components/Payroll/PrintChecks/PrintChecksSummary/PrintChecksSummary.js +39 -0
  120. package/dist/components/Payroll/PrintChecks/PrintChecksSummary/PrintChecksSummary.js.map +1 -0
  121. package/dist/components/Payroll/PrintChecks/PrintChecksSummary/index.d.ts +1 -0
  122. package/dist/components/Payroll/PrintChecks/index.d.ts +2 -0
  123. package/dist/components/Payroll/PrintChecks/printChecksStateMachine.d.ts +33 -0
  124. package/dist/components/Payroll/PrintChecks/printChecksStateMachine.js +93 -0
  125. package/dist/components/Payroll/PrintChecks/printChecksStateMachine.js.map +1 -0
  126. package/dist/components/Payroll/PrintChecks/types.d.ts +14 -0
  127. package/dist/components/Payroll/helpers.d.ts +0 -15
  128. package/dist/components/Payroll/helpers.js +13 -18
  129. package/dist/components/Payroll/helpers.js.map +1 -1
  130. package/dist/components/Payroll/index.d.ts +2 -0
  131. package/dist/components/Payroll/index.js +26 -24
  132. package/dist/components/Payroll/index.js.map +1 -1
  133. package/dist/components/Payroll/usePreparedPayrollData.js +15 -12
  134. package/dist/components/Payroll/usePreparedPayrollData.js.map +1 -1
  135. package/dist/i18n/I18n.js +4 -0
  136. package/dist/i18n/I18n.js.map +1 -1
  137. package/dist/i18n/en/Company.DocumentList.json.js +34 -32
  138. package/dist/i18n/en/Company.DocumentList.json.js.map +1 -1
  139. package/dist/i18n/en/Employee.DocumentSigner.json.js +24 -22
  140. package/dist/i18n/en/Employee.DocumentSigner.json.js.map +1 -1
  141. package/dist/i18n/en/Payroll.PayrollConfiguration.json.js +9 -9
  142. package/dist/i18n/en/Payroll.PayrollOverview.json.js +36 -36
  143. package/dist/i18n/en/Payroll.PayrollReceipts.json.js +2 -2
  144. package/dist/i18n/en/Payroll.PrintChecksBanner.json.js +14 -0
  145. package/dist/i18n/en/Payroll.PrintChecksBanner.json.js.map +1 -0
  146. package/dist/i18n/en/Payroll.PrintChecksFailure.json.js +12 -0
  147. package/dist/i18n/en/Payroll.PrintChecksFailure.json.js.map +1 -0
  148. package/dist/i18n/en/Payroll.PrintChecksForm.json.js +28 -0
  149. package/dist/i18n/en/Payroll.PrintChecksForm.json.js.map +1 -0
  150. package/dist/i18n/en/Payroll.PrintChecksSummary.json.js +14 -0
  151. package/dist/i18n/en/Payroll.PrintChecksSummary.json.js.map +1 -0
  152. package/dist/i18n/types.d.ts +376 -8
  153. package/dist/models/external.d.ts +3 -0
  154. package/dist/partner-hook-utils/form/buildFormSchema.js +60 -54
  155. package/dist/partner-hook-utils/form/buildFormSchema.js.map +1 -1
  156. package/dist/shared/constants.d.ts +28 -0
  157. package/dist/shared/constants.js +61 -50
  158. package/dist/shared/constants.js.map +1 -1
  159. package/dist/style.css +1 -1
  160. package/docs/guides/endpoint-inventory.json +26 -0
  161. package/package.json +6 -6
@@ -1,97 +1,96 @@
1
- import { jsx as a, jsxs as o, Fragment as N } from "react/jsx-runtime";
2
- import { useTranslation as Pe, Trans as xe } from "react-i18next";
3
- import { useState as re, useRef as ke } from "react";
4
- import { isDismissalPayroll as Ne, getPayrollTypeLabel as Ce, calculateTotalPayroll as Se, getReimbursements as B } from "../helpers.js";
1
+ import { jsx as a, jsxs as o, Fragment as k } from "react/jsx-runtime";
2
+ import { useTranslation as Pe, Trans as Ne } from "react-i18next";
3
+ import { useState as ae, useRef as ke } from "react";
4
+ import { isDismissalPayroll as Ce, getPayrollTypeLabel as Se, calculateTotalPayroll as we, getReimbursements as A } from "../helpers.js";
5
5
  import { PayrollOverviewStatus as p } from "./PayrollOverviewTypes.js";
6
- import ne from "./PayrollOverviewPresentation.module.scss.js";
6
+ import re from "./PayrollOverviewPresentation.module.scss.js";
7
7
  import { Flex as s } from "../../Common/Flex/Flex.js";
8
- import { Grid as we } from "../../Common/Grid/Grid.js";
8
+ import { Grid as ve } from "../../Common/Grid/Grid.js";
9
9
  import _e from "../../../hooks/useContainerBreakpoints/useContainerBreakpoints.js";
10
- import { useComponentContext as ve } from "../../../contexts/ComponentAdapter/useComponentContext.js";
11
- import { useI18n as Le } from "../../../i18n/I18n.js";
12
- import { useDateFormatter as Ee } from "../../../hooks/useDateFormatter.js";
13
- import Oe from "../../../hooks/useNumberFormatter.js";
14
- import { firstLastName as W } from "../../../helpers/formattedStrings.js";
15
- import { PAYMENT_METHODS as Ae, FlsaStatus as le, compensationTypeLabels as V, PAYROLL_RESOLVABLE_SUBMISSION_BLOCKER_TYPES as ie } from "../../../shared/constants.js";
16
- import oe from "../../../assets/icons/download-cloud.svg.js";
17
- import { PayrollLoading as se } from "../../Common/PayrollLoading/PayrollLoading.js";
10
+ import { useComponentContext as Le } from "../../../contexts/ComponentAdapter/useComponentContext.js";
11
+ import { useI18n as Ee } from "../../../i18n/I18n.js";
12
+ import { useDateFormatter as Oe } from "../../../hooks/useDateFormatter.js";
13
+ import Ae from "../../../hooks/useNumberFormatter.js";
14
+ import { firstLastName as B } from "../../../helpers/formattedStrings.js";
15
+ import { FlsaStatus as le, compensationTypeLabels as V, PAYROLL_RESOLVABLE_SUBMISSION_BLOCKER_TYPES as ne } from "../../../shared/constants.js";
16
+ import ie from "../../../assets/icons/download-cloud.svg.js";
17
+ import { PayrollLoading as oe } from "../../Common/PayrollLoading/PayrollLoading.js";
18
18
  import { FastAchSubmissionBlockerBanner as Be } from "./SubmissionBlockers/FastAchSubmissionBlockerBanner.js";
19
- import { GenericBlocker as We } from "./SubmissionBlockers/GenericBlocker.js";
20
- import { DataView as c } from "../../Common/DataView/DataView.js";
21
- const Ve = (u, C) => u?.startDate && u.endDate ? C.formatPayPeriod(u.startDate, u.endDate) : { startDate: "", endDate: "" }, lt = ({
19
+ import { GenericBlocker as Ve } from "./SubmissionBlockers/GenericBlocker.js";
20
+ import { DataView as m } from "../../Common/DataView/DataView.js";
21
+ const We = (u, C) => u?.startDate && u.endDate ? C.formatPayPeriod(u.startDate, u.endDate) : { startDate: "", endDate: "" }, nt = ({
22
22
  onEdit: u,
23
23
  onSubmit: C,
24
- onCancel: de,
25
- onPayrollReceipt: ce,
26
- onPaystubDownload: Y,
24
+ onCancel: se,
25
+ onPayrollReceipt: de,
26
+ onPaystubDownload: W,
27
27
  payrollData: n,
28
- bankAccount: M,
28
+ bankAccount: Y,
29
29
  taxes: S,
30
30
  status: f = p.Viewing,
31
31
  isProcessed: h,
32
32
  canCancel: me = !1,
33
+ canEdit: ce = !0,
33
34
  alerts: I = [],
34
35
  submissionBlockers: b = [],
35
36
  selectedUnblockOptions: w = {},
36
- onUnblockOptionChange: F,
37
+ onUnblockOptionChange: M,
37
38
  wireInConfirmationRequest: ue,
39
+ printChecksBanner: be,
38
40
  withReimbursements: g = !0,
39
- paymentSpeed: be,
40
- pagination: _
41
+ paymentSpeed: ye,
42
+ pagination: v
41
43
  }) => {
42
- const { Alert: v, Badge: L, Button: T, ButtonIcon: R, Dialog: ye, Heading: j, Text: y, Tabs: pe } = ve();
43
- Le("Payroll.PayrollOverview");
44
- const d = Ee(), { t } = Pe("Payroll.PayrollOverview"), l = Oe("currency"), [fe, he] = re("companyPays"), [U, G] = re(!1), E = ke(null), D = _e({ ref: E }).includes("small"), H = f === p.Submitting || f === p.Cancelling, $ = /* @__PURE__ */ a(j, { as: "h1", children: t(h ? "summaryTitle" : "overviewTitle") }), z = Ne(n.offCycleReason), K = /* @__PURE__ */ a(y, { children: /* @__PURE__ */ a(
45
- xe,
44
+ const { Alert: F, Badge: _, Button: T, ButtonIcon: R, Dialog: pe, Heading: j, Text: y, Tabs: fe } = Le();
45
+ Ee("Payroll.PayrollOverview");
46
+ const d = Oe(), { t } = Pe("Payroll.PayrollOverview"), l = Ae("currency"), [he, ge] = ae("companyPays"), [U, G] = ae(!1), L = ke(null), D = _e({ ref: L }).includes("small"), H = f === p.Submitting || f === p.Cancelling, $ = /* @__PURE__ */ a(j, { as: "h1", children: t(h ? "summaryTitle" : "overviewTitle") }), z = Ce(n.offCycleReason), K = /* @__PURE__ */ a(y, { children: /* @__PURE__ */ a(
47
+ Ne,
46
48
  {
47
49
  i18nKey: z ? "pageSubtitleDismissal" : "pageSubtitle",
48
50
  t,
49
51
  components: { dateWrapper: /* @__PURE__ */ a(y, { weight: "bold", as: "span" }) },
50
52
  values: {
51
- ...Ve(n.payPeriod, d),
52
- payrollType: Ce(n)
53
+ ...We(n.payPeriod, d),
54
+ payrollType: Se(n)
53
55
  }
54
56
  }
55
57
  ) });
56
58
  if (f === p.Cancelled)
57
- return /* @__PURE__ */ a("div", { ref: E, className: ne.container, children: /* @__PURE__ */ o(s, { flexDirection: "column", alignItems: "stretch", children: [
59
+ return /* @__PURE__ */ a("div", { ref: L, className: re.container, children: /* @__PURE__ */ o(s, { flexDirection: "column", alignItems: "stretch", children: [
58
60
  /* @__PURE__ */ a(s, { justifyContent: "space-between", alignItems: "flex-start", gap: 16, children: /* @__PURE__ */ o(s, { flexDirection: "column", gap: 4, children: [
59
61
  $,
60
62
  K
61
63
  ] }) }),
62
- /* @__PURE__ */ a(v, { status: "info", label: t("cancelledEmptyState") })
64
+ /* @__PURE__ */ a(F, { status: "info", label: t("cancelledEmptyState") })
63
65
  ] }) });
64
- const P = Se(n), ge = n.payrollStatusMeta?.expectedDebitTime ?? n.payrollDeadline, X = (e) => e.taxes?.reduce(
66
+ const x = we(n), Te = n.payrollStatusMeta?.expectedDebitTime ?? n.payrollDeadline, X = (e) => e.taxes?.reduce(
65
67
  (r, i) => i.employer ? r + Number(i.amount) : r,
66
68
  0
67
69
  ) ?? 0, q = (e) => e.benefits?.reduce(
68
70
  (r, i) => i.companyContribution ? r + Number(i.companyContribution) : r,
69
71
  0
70
- ) ?? 0, Te = (e) => Number(e.grossPay) + B(e) + X(e) + q(e), O = b.find(
72
+ ) ?? 0, De = (e) => Number(e.grossPay) + A(e) + X(e) + q(e), E = b.find(
71
73
  (e) => e.blockerType === "fast_ach_threshold_exceeded" || e.blockerType === "needs_earned_access_for_fast_ach"
72
- ), A = O ? w[O.blockerType || ""] : void 0, m = O?.unblockOptions?.find(
73
- (e) => e.unblockType === A
74
- ), J = A === "wire_in", Q = A === "move_to_four_day", x = (e) => e.hourlyCompensations?.reduce(
74
+ ), O = E ? w[E.blockerType || ""] : void 0, c = E?.unblockOptions?.find(
75
+ (e) => e.unblockType === O
76
+ ), J = O === "wire_in", Q = O === "move_to_four_day", P = (e) => e.hourlyCompensations?.reduce(
75
77
  (r, i) => {
76
78
  if (typeof i.name > "u")
77
79
  return r;
78
- const k = i.name.toLowerCase(), He = r[k] ?? 0;
79
- return r[k] = He + Number(i.hours || 0), r;
80
+ const N = i.name.toLowerCase(), xe = r[N] ?? 0;
81
+ return r[N] = xe + Number(i.hours || 0), r;
80
82
  },
81
83
  {}
82
- ) || {}, Z = (e) => e.paidTimeOff?.reduce((r, i) => r + Number(i.hours || 0), 0) ?? 0, ee = n.employeeCompensations?.reduce(
83
- (e, r) => !r.excluded && r.paymentMethod === Ae.check ? e + 1 : e,
84
- 0
85
- ) ?? 0, te = [
84
+ ) || {}, Z = (e) => e.paidTimeOff?.reduce((r, i) => r + Number(i.hours || 0), 0) ?? 0, ee = [
86
85
  {
87
86
  key: "employeeName",
88
87
  title: t("tableHeaders.employees"),
89
88
  render: (e) => /* @__PURE__ */ o(s, { flexDirection: "column", gap: 0, children: [
90
- W({
89
+ B({
91
90
  first_name: e.firstName,
92
91
  last_name: e.lastName
93
92
  }),
94
- e.excluded && /* @__PURE__ */ a(L, { status: "warning", children: t("skippedBadge") })
93
+ e.excluded && /* @__PURE__ */ a(_, { status: "warning", children: t("skippedBadge") })
95
94
  ] })
96
95
  },
97
96
  {
@@ -103,7 +102,7 @@ const Ve = (u, C) => u?.startDate && u.endDate ? C.formatPayPeriod(u.startDate,
103
102
  {
104
103
  key: "reimbursements",
105
104
  title: t("tableHeaders.reimbursements"),
106
- render: (e) => l(B(e))
105
+ render: (e) => l(A(e))
107
106
  }
108
107
  ] : [],
109
108
  {
@@ -119,10 +118,10 @@ const Ve = (u, C) => u?.startDate && u.endDate ? C.formatPayPeriod(u.startDate,
119
118
  {
120
119
  key: "companyPays",
121
120
  title: t("tableHeaders.companyPays"),
122
- render: (e) => l(Te(e))
121
+ render: (e) => l(De(e))
123
122
  }
124
123
  ];
125
- h && D && te.push({
124
+ h && D && ee.push({
126
125
  key: "paystubs",
127
126
  title: t("tableHeaders.paystub"),
128
127
  render: (e) => /* @__PURE__ */ a(s, { justifyContent: "flex-end", children: /* @__PURE__ */ a(
@@ -131,36 +130,36 @@ const Ve = (u, C) => u?.startDate && u.endDate ? C.formatPayPeriod(u.startDate,
131
130
  "aria-label": t("downloadPaystubLabel"),
132
131
  variant: "tertiary",
133
132
  onClick: () => {
134
- e.employeeUuid && Y(e.employeeUuid);
133
+ e.employeeUuid && W(e.employeeUuid);
135
134
  },
136
- children: /* @__PURE__ */ a(oe, {})
135
+ children: /* @__PURE__ */ a(ie, {})
137
136
  }
138
137
  ) })
139
138
  });
140
- const De = [
139
+ const He = [
141
140
  {
142
141
  id: "companyPays",
143
142
  label: t("dataViews.companyPaysTab"),
144
143
  content: /* @__PURE__ */ a(
145
- c,
144
+ m,
146
145
  {
147
146
  label: t("dataViews.companyPaysTable"),
148
- columns: te,
147
+ columns: ee,
149
148
  data: n.employeeCompensations,
150
- pagination: _,
149
+ pagination: v,
151
150
  itemMenu: h && !D ? (e) => /* @__PURE__ */ a(
152
151
  R,
153
152
  {
154
153
  "aria-label": t("downloadPaystubLabel"),
155
154
  variant: "tertiary",
156
155
  onClick: () => {
157
- e.employeeUuid && Y(e.employeeUuid);
156
+ e.employeeUuid && W(e.employeeUuid);
158
157
  },
159
- children: /* @__PURE__ */ a(oe, {})
158
+ children: /* @__PURE__ */ a(ie, {})
160
159
  }
161
160
  ) : void 0,
162
161
  footer: () => ({
163
- employeeName: /* @__PURE__ */ o(N, { children: [
162
+ employeeName: /* @__PURE__ */ o(k, { children: [
164
163
  t("tableHeaders.footerTotalsLabel"),
165
164
  /* @__PURE__ */ a(y, { variant: "supporting", size: "sm", children: t("tableHeaders.footerTotalsDescription") })
166
165
  ] }),
@@ -170,7 +169,7 @@ const Ve = (u, C) => u?.startDate && u.endDate ? C.formatPayPeriod(u.startDate,
170
169
  } : {},
171
170
  companyTaxes: l(Number(n.totals?.employerTaxes ?? 0)),
172
171
  companyBenefits: l(Number(n.totals?.benefits ?? 0)),
173
- companyPays: l(P)
172
+ companyPays: l(x)
174
173
  })
175
174
  }
176
175
  )
@@ -179,18 +178,18 @@ const Ve = (u, C) => u?.startDate && u.endDate ? C.formatPayPeriod(u.startDate,
179
178
  id: "hoursWorked",
180
179
  label: t("dataViews.hoursWorkedTab"),
181
180
  content: /* @__PURE__ */ a(
182
- c,
181
+ m,
183
182
  {
184
183
  label: t("dataViews.hoursWorkedTable"),
185
184
  columns: [
186
185
  {
187
186
  title: t("tableHeaders.employees"),
188
187
  render: (e) => /* @__PURE__ */ o(s, { flexDirection: "column", gap: 0, children: [
189
- W({
188
+ B({
190
189
  first_name: e.firstName,
191
190
  last_name: e.lastName
192
191
  }),
193
- e.excluded && /* @__PURE__ */ a(L, { status: "warning", children: t("skippedBadge") })
192
+ e.excluded && /* @__PURE__ */ a(_, { status: "warning", children: t("skippedBadge") })
194
193
  ] })
195
194
  },
196
195
  {
@@ -211,15 +210,15 @@ const Ve = (u, C) => u?.startDate && u.endDate ? C.formatPayPeriod(u.startDate,
211
210
  },
212
211
  {
213
212
  title: t("tableHeaders.regular"),
214
- render: (e) => x(e)[V.REGULAR_HOURS_NAME] || 0
213
+ render: (e) => P(e)[V.REGULAR_HOURS_NAME] || 0
215
214
  },
216
215
  {
217
216
  title: t("tableHeaders.overtime"),
218
- render: (e) => x(e)[V.OVERTIME_NAME] || 0
217
+ render: (e) => P(e)[V.OVERTIME_NAME] || 0
219
218
  },
220
219
  {
221
220
  title: t("tableHeaders.doubleOT"),
222
- render: (e) => x(e)[V.DOUBLE_OVERTIME_NAME] || 0
221
+ render: (e) => P(e)[V.DOUBLE_OVERTIME_NAME] || 0
223
222
  },
224
223
  {
225
224
  title: t("tableHeaders.timeOff"),
@@ -227,14 +226,14 @@ const Ve = (u, C) => u?.startDate && u.endDate ? C.formatPayPeriod(u.startDate,
227
226
  },
228
227
  {
229
228
  title: t("tableHeaders.totalHours"),
230
- render: (e) => Object.values(x(e)).reduce(
229
+ render: (e) => Object.values(P(e)).reduce(
231
230
  (r, i) => r + i,
232
231
  0
233
232
  ) + Z(e)
234
233
  }
235
234
  ],
236
235
  data: n.employeeCompensations,
237
- pagination: _
236
+ pagination: v
238
237
  }
239
238
  )
240
239
  },
@@ -242,18 +241,18 @@ const Ve = (u, C) => u?.startDate && u.endDate ? C.formatPayPeriod(u.startDate,
242
241
  id: "employeeTakeHome",
243
242
  label: t("dataViews.employeeTakeHomeTab"),
244
243
  content: /* @__PURE__ */ a(
245
- c,
244
+ m,
246
245
  {
247
246
  label: t("dataViews.employeeTakeHomeTable"),
248
247
  columns: [
249
248
  {
250
249
  title: t("tableHeaders.employees"),
251
250
  render: (e) => /* @__PURE__ */ o(s, { flexDirection: "column", gap: 0, children: [
252
- W({
251
+ B({
253
252
  first_name: e.firstName,
254
253
  last_name: e.lastName
255
254
  }),
256
- e.excluded && /* @__PURE__ */ a(L, { status: "warning", children: t("skippedBadge") })
255
+ e.excluded && /* @__PURE__ */ a(_, { status: "warning", children: t("skippedBadge") })
257
256
  ] })
258
257
  },
259
258
  {
@@ -276,7 +275,7 @@ const Ve = (u, C) => u?.startDate && u.endDate ? C.formatPayPeriod(u.startDate,
276
275
  ...g ? [
277
276
  {
278
277
  title: t("tableHeaders.reimbursements"),
279
- render: (e) => l(B(e))
278
+ render: (e) => l(A(e))
280
279
  }
281
280
  ] : [],
282
281
  {
@@ -303,7 +302,7 @@ const Ve = (u, C) => u?.startDate && u.endDate ? C.formatPayPeriod(u.startDate,
303
302
  }
304
303
  ],
305
304
  data: n.employeeCompensations,
306
- pagination: _
305
+ pagination: v
307
306
  }
308
307
  )
309
308
  },
@@ -312,7 +311,7 @@ const Ve = (u, C) => u?.startDate && u.endDate ? C.formatPayPeriod(u.startDate,
312
311
  label: t("dataViews.taxesTab"),
313
312
  content: /* @__PURE__ */ o(s, { flexDirection: "column", gap: 32, children: [
314
313
  /* @__PURE__ */ a(
315
- c,
314
+ m,
316
315
  {
317
316
  label: t("dataViews.taxesTable"),
318
317
  columns: [
@@ -341,7 +340,7 @@ const Ve = (u, C) => u?.startDate && u.endDate ? C.formatPayPeriod(u.startDate,
341
340
  }
342
341
  ),
343
342
  /* @__PURE__ */ a(
344
- c,
343
+ m,
345
344
  {
346
345
  label: t("dataViews.debitedTable"),
347
346
  columns: [
@@ -372,8 +371,8 @@ const Ve = (u, C) => u?.startDate && u.endDate ? C.formatPayPeriod(u.startDate,
372
371
  )
373
372
  ] })
374
373
  }
375
- ], ae = h ? /* @__PURE__ */ o(N, { children: [
376
- /* @__PURE__ */ a(T, { onClick: ce, variant: "secondary", isDisabled: H, children: t("payrollReceiptCta") }),
374
+ ], te = h ? /* @__PURE__ */ o(k, { children: [
375
+ /* @__PURE__ */ a(T, { onClick: de, variant: "secondary", isDisabled: H, children: t("payrollReceiptCta") }),
377
376
  me && /* @__PURE__ */ a(
378
377
  T,
379
378
  {
@@ -385,14 +384,14 @@ const Ve = (u, C) => u?.startDate && u.endDate ? C.formatPayPeriod(u.startDate,
385
384
  children: t("cancelCta")
386
385
  }
387
386
  )
388
- ] }) : /* @__PURE__ */ o(N, { children: [
389
- /* @__PURE__ */ a(T, { onClick: u, variant: "secondary", isDisabled: H, children: t("editCta") }),
387
+ ] }) : /* @__PURE__ */ o(k, { children: [
388
+ ce && /* @__PURE__ */ a(T, { onClick: u, variant: "secondary", isDisabled: H, children: t("editCta") }),
390
389
  /* @__PURE__ */ a(
391
390
  T,
392
391
  {
393
392
  onClick: C,
394
393
  isDisabled: H || b.length > 0 && (b.some(
395
- (e) => !ie.includes(e.blockerType || "")
394
+ (e) => !ne.includes(e.blockerType || "")
396
395
  ) || b.some(
397
396
  (e) => !w[e.blockerType || ""]
398
397
  )),
@@ -400,19 +399,19 @@ const Ve = (u, C) => u?.startDate && u.endDate ? C.formatPayPeriod(u.startDate,
400
399
  }
401
400
  )
402
401
  ] });
403
- return /* @__PURE__ */ a("div", { ref: E, className: ne.container, children: /* @__PURE__ */ o(s, { flexDirection: "column", alignItems: "stretch", children: [
402
+ return /* @__PURE__ */ a("div", { ref: L, className: re.container, children: /* @__PURE__ */ o(s, { flexDirection: "column", alignItems: "stretch", children: [
404
403
  /* @__PURE__ */ o(s, { justifyContent: "space-between", alignItems: "flex-start", gap: 16, children: [
405
404
  /* @__PURE__ */ o(s, { flexDirection: "column", gap: 4, children: [
406
405
  $,
407
406
  K
408
407
  ] }),
409
- D && /* @__PURE__ */ a(s, { gap: 8, justifyContent: "flex-end", children: ae })
408
+ D && /* @__PURE__ */ a(s, { gap: 8, justifyContent: "flex-end", children: te })
410
409
  ] }),
411
- !D && /* @__PURE__ */ a(we, { gridTemplateColumns: "1fr", gap: 8, children: ae }),
412
- f === p.Cancelling ? /* @__PURE__ */ a(se, { title: t("cancellingTitle") }) : f === p.Submitting ? /* @__PURE__ */ a(se, { title: t("loadingTitle"), description: t("loadingDescription") }) : /* @__PURE__ */ o(N, { children: [
410
+ !D && /* @__PURE__ */ a(ve, { gridTemplateColumns: "1fr", gap: 8, children: te }),
411
+ f === p.Cancelling ? /* @__PURE__ */ a(oe, { title: t("cancellingTitle") }) : f === p.Submitting ? /* @__PURE__ */ a(oe, { title: t("loadingTitle"), description: t("loadingDescription") }) : /* @__PURE__ */ o(k, { children: [
413
412
  ue,
414
413
  I.length > 0 && /* @__PURE__ */ a(s, { flexDirection: "column", gap: 16, children: I.map((e, r) => /* @__PURE__ */ a(
415
- v,
414
+ F,
416
415
  {
417
416
  label: e.title,
418
417
  status: e.type,
@@ -421,58 +420,58 @@ const Ve = (u, C) => u?.startDate && u.endDate ? C.formatPayPeriod(u.startDate,
421
420
  },
422
421
  `${e.type}-${e.title}`
423
422
  )) }),
424
- b.length > 0 && F && b.map((e) => {
423
+ b.length > 0 && M && b.map((e) => {
425
424
  const r = e.blockerType || "";
426
- return ie.includes(r) ? /* @__PURE__ */ a(
425
+ return ne.includes(r) ? /* @__PURE__ */ a(
427
426
  Be,
428
427
  {
429
428
  blocker: e,
430
429
  selectedValue: w[r],
431
- onUnblockOptionChange: F,
432
- paymentSpeed: be
430
+ onUnblockOptionChange: M,
431
+ paymentSpeed: ye
433
432
  },
434
433
  r
435
- ) : /* @__PURE__ */ a(We, { blocker: e }, r);
434
+ ) : /* @__PURE__ */ a(Ve, { blocker: e }, r);
436
435
  }),
437
436
  /* @__PURE__ */ a(j, { as: "h2", styledAs: "h3", children: t(J ? "payrollSummaryTitleWire" : Q ? "payrollSummaryTitleFourDay" : "payrollSummaryTitle") }),
438
437
  J ? /* @__PURE__ */ a(
439
- c,
438
+ m,
440
439
  {
441
440
  label: t("payrollSummaryLabel"),
442
441
  columns: [
443
442
  {
444
443
  title: t("tableHeaders.totalPayroll"),
445
- render: () => l(P)
444
+ render: () => l(x)
446
445
  },
447
446
  {
448
447
  title: t("tableHeaders.wireAmount"),
449
448
  render: () => {
450
- const r = m?.metadata?.wire_in_amount;
449
+ const r = c?.metadata?.wire_in_amount;
451
450
  return r ? l(Number(r)) : "-";
452
451
  }
453
452
  },
454
453
  {
455
454
  title: t("tableHeaders.wireTransferDeadline"),
456
455
  render: () => {
457
- const r = m?.metadata?.wire_in_deadline, i = d.formatWithTime(r), k = d.formatShortWithYear(r);
458
- return r ? `${i.time} on ${k}` : "-";
456
+ const r = c?.metadata?.wire_in_deadline, i = d.formatWithTime(r), N = d.formatShortWithYear(r);
457
+ return r ? `${i.time} on ${N}` : "-";
459
458
  }
460
459
  },
461
460
  {
462
461
  title: t("tableHeaders.employeePayDate"),
463
- render: () => m?.checkDate ? d.formatShortWithYear(m.checkDate) : "-"
462
+ render: () => c?.checkDate ? d.formatShortWithYear(c.checkDate) : "-"
464
463
  }
465
464
  ],
466
465
  data: [{}]
467
466
  }
468
467
  ) : Q ? /* @__PURE__ */ a(
469
- c,
468
+ m,
470
469
  {
471
470
  label: t("payrollSummaryLabel"),
472
471
  columns: [
473
472
  {
474
473
  title: t("tableHeaders.totalPayroll"),
475
- render: () => l(P)
474
+ render: () => l(x)
476
475
  },
477
476
  {
478
477
  title: t("tableHeaders.debitAmount"),
@@ -483,30 +482,30 @@ const Ve = (u, C) => u?.startDate && u.endDate ? C.formatPayPeriod(u.startDate,
483
482
  },
484
483
  {
485
484
  title: t("tableHeaders.debitAccount"),
486
- render: () => M?.hiddenAccountNumber ?? ""
485
+ render: () => Y?.hiddenAccountNumber ?? ""
487
486
  },
488
487
  {
489
488
  title: t("tableHeaders.debitDate"),
490
489
  render: () => {
491
- const r = m?.metadata?.debit_date;
490
+ const r = c?.metadata?.debit_date;
492
491
  return d.formatShortWithYear(r);
493
492
  }
494
493
  },
495
494
  {
496
495
  title: t("tableHeaders.employeePayDate"),
497
- render: () => m?.checkDate ? d.formatShortWithYear(m.checkDate) : "-"
496
+ render: () => c?.checkDate ? d.formatShortWithYear(c.checkDate) : "-"
498
497
  }
499
498
  ],
500
499
  data: [{}]
501
500
  }
502
501
  ) : /* @__PURE__ */ a(
503
- c,
502
+ m,
504
503
  {
505
504
  label: t("payrollSummaryLabel"),
506
505
  columns: [
507
506
  {
508
507
  title: t("tableHeaders.totalPayroll"),
509
- render: () => l(P)
508
+ render: () => l(x)
510
509
  },
511
510
  {
512
511
  title: t("tableHeaders.debitAmount"),
@@ -514,11 +513,11 @@ const Ve = (u, C) => u?.startDate && u.endDate ? C.formatPayPeriod(u.startDate,
514
513
  },
515
514
  {
516
515
  title: t("tableHeaders.debitAccount"),
517
- render: () => M?.hiddenAccountNumber ?? ""
516
+ render: () => Y?.hiddenAccountNumber ?? ""
518
517
  },
519
518
  {
520
519
  title: t("tableHeaders.debitDate"),
521
- render: () => d.formatShortWithYear(ge)
520
+ render: () => d.formatShortWithYear(Te)
522
521
  },
523
522
  {
524
523
  title: t("tableHeaders.employeePayDate"),
@@ -528,31 +527,24 @@ const Ve = (u, C) => u?.startDate && u.endDate ? C.formatPayPeriod(u.startDate,
528
527
  data: [{}]
529
528
  }
530
529
  ),
531
- ee > 0 && /* @__PURE__ */ a(
532
- v,
533
- {
534
- status: "warning",
535
- label: t("alerts.checkPaymentWarning", { count: ee }),
536
- children: t("alerts.checkPaymentWarningDescription")
537
- }
538
- ),
530
+ be,
539
531
  /* @__PURE__ */ a(
540
- pe,
532
+ fe,
541
533
  {
542
- onSelectionChange: he,
543
- selectedId: fe,
534
+ onSelectionChange: ge,
535
+ selectedId: he,
544
536
  "aria-label": t("dataViews.label"),
545
- tabs: De
537
+ tabs: He
546
538
  }
547
539
  ),
548
540
  U && /* @__PURE__ */ a(
549
- ye,
541
+ pe,
550
542
  {
551
543
  isOpen: U,
552
544
  onClose: () => {
553
545
  G(!1);
554
546
  },
555
- onPrimaryActionClick: de,
547
+ onPrimaryActionClick: se,
556
548
  shouldCloseOnBackdropClick: !0,
557
549
  primaryActionLabel: t("confirmCancelCta"),
558
550
  isDestructive: !0,
@@ -573,6 +565,6 @@ const Ve = (u, C) => u?.startDate && u.endDate ? C.formatPayPeriod(u.startDate,
573
565
  ] }) });
574
566
  };
575
567
  export {
576
- lt as PayrollOverviewPresentation
568
+ nt as PayrollOverviewPresentation
577
569
  };
578
570
  //# sourceMappingURL=PayrollOverviewPresentation.js.map