@gusto/embedded-react-sdk 0.55.0 → 0.55.2

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 (174) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/dist/components/Common/TaxInputs/TaxInputs.js +65 -64
  3. package/dist/components/Common/TaxInputs/TaxInputs.js.map +1 -1
  4. package/dist/components/Common/UI/Select/Select.module.scss.js +5 -5
  5. package/dist/components/Contractor/Payments/CreateHistoricalPayment/CreateHistoricalPayment.d.ts +4 -2
  6. package/dist/components/Contractor/Payments/CreateHistoricalPayment/CreateHistoricalPayment.js +148 -117
  7. package/dist/components/Contractor/Payments/CreateHistoricalPayment/CreateHistoricalPayment.js.map +1 -1
  8. package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.js +56 -55
  9. package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.js.map +1 -1
  10. package/dist/components/Contractor/Payments/CreatePaymentFlow/CreatePaymentFlow.d.ts +1 -1
  11. package/dist/components/Contractor/Payments/CreatePaymentFlow/CreatePaymentFlow.js +15 -12
  12. package/dist/components/Contractor/Payments/CreatePaymentFlow/CreatePaymentFlow.js.map +1 -1
  13. package/dist/components/Contractor/Payments/HistoricalPaymentFlow/HistoricalPaymentFlow.d.ts +69 -0
  14. package/dist/components/Contractor/Payments/HistoricalPaymentFlow/HistoricalPaymentFlow.js +48 -0
  15. package/dist/components/Contractor/Payments/HistoricalPaymentFlow/HistoricalPaymentFlow.js.map +1 -0
  16. package/dist/components/Contractor/Payments/HistoricalPaymentFlow/HistoricalPaymentFlowComponents.d.ts +20 -0
  17. package/dist/components/Contractor/Payments/HistoricalPaymentFlow/HistoricalPaymentFlowComponents.js +25 -0
  18. package/dist/components/Contractor/Payments/HistoricalPaymentFlow/HistoricalPaymentFlowComponents.js.map +1 -0
  19. package/dist/components/Contractor/Payments/HistoricalPaymentFlow/historicalPaymentMachine.d.ts +20 -0
  20. package/dist/components/Contractor/Payments/HistoricalPaymentFlow/historicalPaymentMachine.js +24 -0
  21. package/dist/components/Contractor/Payments/HistoricalPaymentFlow/historicalPaymentMachine.js.map +1 -0
  22. package/dist/components/Contractor/Payments/HistoricalPaymentFlow/index.d.ts +2 -0
  23. package/dist/components/Contractor/Payments/HistoricalPaymentSummary/HistoricalPaymentSummary.js +16 -15
  24. package/dist/components/Contractor/Payments/HistoricalPaymentSummary/HistoricalPaymentSummary.js.map +1 -1
  25. package/dist/components/Contractor/Payments/PaymentFlow/PaymentFlowComponents.d.ts +2 -0
  26. package/dist/components/Contractor/Payments/PaymentFlow/PaymentFlowComponents.js +36 -23
  27. package/dist/components/Contractor/Payments/PaymentFlow/PaymentFlowComponents.js.map +1 -1
  28. package/dist/components/Contractor/Payments/PaymentFlow/paymentStateMachine.d.ts +10 -8
  29. package/dist/components/Contractor/Payments/PaymentFlow/paymentStateMachine.js +46 -25
  30. package/dist/components/Contractor/Payments/PaymentFlow/paymentStateMachine.js.map +1 -1
  31. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.js +53 -52
  32. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.js.map +1 -1
  33. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.js +37 -47
  34. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.js.map +1 -1
  35. package/dist/components/Contractor/Payments/PaymentsList/PaymentsList.js +47 -44
  36. package/dist/components/Contractor/Payments/PaymentsList/PaymentsList.js.map +1 -1
  37. package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.d.ts +2 -1
  38. package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.js +65 -53
  39. package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.js.map +1 -1
  40. package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.module.scss.js +6 -4
  41. package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.module.scss.js.map +1 -1
  42. package/dist/components/Contractor/Payments/ViewPaymentFlow/ViewPaymentFlow.d.ts +1 -1
  43. package/dist/components/Contractor/Payments/ViewPaymentFlow/ViewPaymentFlow.js +22 -19
  44. package/dist/components/Contractor/Payments/ViewPaymentFlow/ViewPaymentFlow.js.map +1 -1
  45. package/dist/components/Contractor/Payments/shared/PaymentSummaryBlock/PaymentSummaryBlock.d.ts +2 -8
  46. package/dist/components/Contractor/Payments/shared/PaymentSummaryBlock/PaymentSummaryBlock.js +43 -42
  47. package/dist/components/Contractor/Payments/shared/PaymentSummaryBlock/PaymentSummaryBlock.js.map +1 -1
  48. package/dist/components/Contractor/Payments/shared/paymentAmounts.d.ts +32 -0
  49. package/dist/components/Contractor/Payments/shared/paymentAmounts.js +11 -0
  50. package/dist/components/Contractor/Payments/shared/paymentAmounts.js.map +1 -0
  51. package/dist/components/Contractor/Payments/shared/paymentAmounts.test.d.ts +1 -0
  52. package/dist/components/Contractor/Payments/shared/usePaymentAmountsEditor.d.ts +13 -4
  53. package/dist/components/Contractor/Payments/shared/usePaymentAmountsEditor.js +43 -38
  54. package/dist/components/Contractor/Payments/shared/usePaymentAmountsEditor.js.map +1 -1
  55. package/dist/components/Contractor/exports/contractorManagement.d.ts +1 -0
  56. package/dist/components/Contractor/exports/contractorManagement.js +34 -32
  57. package/dist/components/Contractor/exports/contractorManagement.js.map +1 -1
  58. package/dist/components/Contractor/shared/SelectContractors/SelectContractors.d.ts +6 -1
  59. package/dist/components/Contractor/shared/SelectContractors/SelectContractors.js +13 -12
  60. package/dist/components/Contractor/shared/SelectContractors/SelectContractors.js.map +1 -1
  61. package/dist/components/Contractor/shared/SelectContractors/useSelectContractors.d.ts +5 -1
  62. package/dist/components/Contractor/shared/SelectContractors/useSelectContractors.js +34 -32
  63. package/dist/components/Contractor/shared/SelectContractors/useSelectContractors.js.map +1 -1
  64. package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.d.ts +7 -0
  65. package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js +191 -153
  66. package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js.map +1 -1
  67. package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.d.ts +1 -0
  68. package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.js +87 -81
  69. package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.js.map +1 -1
  70. package/dist/components/Payroll/PayrollExecutionFlow/PayrollExecutionFlow.d.ts +1 -0
  71. package/dist/components/Payroll/PayrollExecutionFlow/PayrollExecutionFlow.js.map +1 -1
  72. package/dist/components/Payroll/PayrollExecutionFlow/payrollExecutionMachine.js +73 -48
  73. package/dist/components/Payroll/PayrollExecutionFlow/payrollExecutionMachine.js.map +1 -1
  74. package/dist/components/Payroll/PayrollFlow/PayrollFlow.d.ts +1 -1
  75. package/dist/components/Payroll/PayrollFlow/PayrollFlow.js +22 -20
  76. package/dist/components/Payroll/PayrollFlow/PayrollFlow.js.map +1 -1
  77. package/dist/components/Payroll/PayrollFlow/PayrollFlowComponents.d.ts +3 -0
  78. package/dist/components/Payroll/PayrollFlow/PayrollFlowComponents.js +22 -20
  79. package/dist/components/Payroll/PayrollFlow/PayrollFlowComponents.js.map +1 -1
  80. package/dist/components/Payroll/PayrollLanding/PayrollLanding.d.ts +2 -0
  81. package/dist/components/Payroll/PayrollLanding/PayrollLanding.js +34 -26
  82. package/dist/components/Payroll/PayrollLanding/PayrollLanding.js.map +1 -1
  83. package/dist/components/Payroll/PayrollLanding/PayrollLandingFlowComponents.d.ts +4 -0
  84. package/dist/components/Payroll/PayrollLanding/PayrollLandingFlowComponents.js +51 -43
  85. package/dist/components/Payroll/PayrollLanding/PayrollLandingFlowComponents.js.map +1 -1
  86. package/dist/components/Payroll/PayrollList/PayrollList.d.ts +2 -0
  87. package/dist/components/Payroll/PayrollList/PayrollList.js +48 -47
  88. package/dist/components/Payroll/PayrollList/PayrollList.js.map +1 -1
  89. package/dist/components/Payroll/PayrollList/PayrollListPresentation.d.ts +2 -1
  90. package/dist/components/Payroll/PayrollList/PayrollListPresentation.js +44 -43
  91. package/dist/components/Payroll/PayrollList/PayrollListPresentation.js.map +1 -1
  92. package/dist/components/Payroll/PayrollOverview/PayrollOverview.d.ts +7 -0
  93. package/dist/components/Payroll/PayrollOverview/PayrollOverview.js +115 -112
  94. package/dist/components/Payroll/PayrollOverview/PayrollOverview.js.map +1 -1
  95. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.d.ts +2 -1
  96. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js +94 -103
  97. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js.map +1 -1
  98. package/dist/components/Payroll/PayrollReceipts/PayrollReceipts.js +22 -16
  99. package/dist/components/Payroll/PayrollReceipts/PayrollReceipts.js.map +1 -1
  100. package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js +58 -49
  101. package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js.map +1 -1
  102. package/dist/components/Payroll/PrintChecks/PrintChecks.d.ts +21 -0
  103. package/dist/components/Payroll/PrintChecks/PrintChecks.js +68 -0
  104. package/dist/components/Payroll/PrintChecks/PrintChecks.js.map +1 -0
  105. package/dist/components/Payroll/PrintChecks/PrintChecksBanner/PrintChecksBanner.d.ts +9 -0
  106. package/dist/components/Payroll/PrintChecks/PrintChecksBanner/PrintChecksBanner.js +34 -0
  107. package/dist/components/Payroll/PrintChecks/PrintChecksBanner/PrintChecksBanner.js.map +1 -0
  108. package/dist/components/Payroll/PrintChecks/PrintChecksBanner/index.d.ts +1 -0
  109. package/dist/components/Payroll/PrintChecks/PrintChecksComponents.d.ts +48 -0
  110. package/dist/components/Payroll/PrintChecks/PrintChecksComponents.js +26 -0
  111. package/dist/components/Payroll/PrintChecks/PrintChecksComponents.js.map +1 -0
  112. package/dist/components/Payroll/PrintChecks/PrintChecksFailure/PrintChecksFailure.d.ts +14 -0
  113. package/dist/components/Payroll/PrintChecks/PrintChecksFailure/PrintChecksFailure.js +47 -0
  114. package/dist/components/Payroll/PrintChecks/PrintChecksFailure/PrintChecksFailure.js.map +1 -0
  115. package/dist/components/Payroll/PrintChecks/PrintChecksFailure/index.d.ts +1 -0
  116. package/dist/components/Payroll/PrintChecks/PrintChecksForm/PrintChecksForm.d.ts +16 -0
  117. package/dist/components/Payroll/PrintChecks/PrintChecksForm/PrintChecksForm.js +144 -0
  118. package/dist/components/Payroll/PrintChecks/PrintChecksForm/PrintChecksForm.js.map +1 -0
  119. package/dist/components/Payroll/PrintChecks/PrintChecksForm/index.d.ts +1 -0
  120. package/dist/components/Payroll/PrintChecks/PrintChecksSummary/PrintChecksSummary.d.ts +14 -0
  121. package/dist/components/Payroll/PrintChecks/PrintChecksSummary/PrintChecksSummary.js +39 -0
  122. package/dist/components/Payroll/PrintChecks/PrintChecksSummary/PrintChecksSummary.js.map +1 -0
  123. package/dist/components/Payroll/PrintChecks/PrintChecksSummary/index.d.ts +1 -0
  124. package/dist/components/Payroll/PrintChecks/index.d.ts +2 -0
  125. package/dist/components/Payroll/PrintChecks/printChecksStateMachine.d.ts +33 -0
  126. package/dist/components/Payroll/PrintChecks/printChecksStateMachine.js +93 -0
  127. package/dist/components/Payroll/PrintChecks/printChecksStateMachine.js.map +1 -0
  128. package/dist/components/Payroll/PrintChecks/types.d.ts +14 -0
  129. package/dist/components/Payroll/index.d.ts +2 -0
  130. package/dist/components/Payroll/index.js +26 -24
  131. package/dist/components/Payroll/index.js.map +1 -1
  132. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.d.ts +6 -0
  133. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js +36 -34
  134. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js.map +1 -1
  135. package/dist/contexts/UnstableFeaturesProvider/UnstableFeaturesProvider.d.ts +22 -0
  136. package/dist/contexts/UnstableFeaturesProvider/UnstableFeaturesProvider.js +14 -0
  137. package/dist/contexts/UnstableFeaturesProvider/UnstableFeaturesProvider.js.map +1 -0
  138. package/dist/contexts/UnstableFeaturesProvider/WithUnstableFeature.d.ts +19 -0
  139. package/dist/contexts/UnstableFeaturesProvider/WithUnstableFeature.js +8 -0
  140. package/dist/contexts/UnstableFeaturesProvider/WithUnstableFeature.js.map +1 -0
  141. package/dist/contexts/UnstableFeaturesProvider/useUnstableFeature.d.ts +41 -0
  142. package/dist/contexts/UnstableFeaturesProvider/useUnstableFeature.js +14 -0
  143. package/dist/contexts/UnstableFeaturesProvider/useUnstableFeature.js.map +1 -0
  144. package/dist/contexts/index.d.ts +1 -0
  145. package/dist/i18n/I18n.js +4 -0
  146. package/dist/i18n/I18n.js.map +1 -1
  147. package/dist/i18n/en/Contractor.Payments.CreateHistoricalPayment.json.js +34 -32
  148. package/dist/i18n/en/Contractor.Payments.CreateHistoricalPayment.json.js.map +1 -1
  149. package/dist/i18n/en/Contractor.Payments.PaymentsList.json.js +20 -18
  150. package/dist/i18n/en/Contractor.Payments.PaymentsList.json.js.map +1 -1
  151. package/dist/i18n/en/Payroll.PayrollConfiguration.json.js +9 -9
  152. package/dist/i18n/en/Payroll.PayrollOverview.json.js +38 -38
  153. package/dist/i18n/en/Payroll.PayrollReceipts.json.js +2 -2
  154. package/dist/i18n/en/Payroll.PrintChecksBanner.json.js +14 -0
  155. package/dist/i18n/en/Payroll.PrintChecksBanner.json.js.map +1 -0
  156. package/dist/i18n/en/Payroll.PrintChecksFailure.json.js +12 -0
  157. package/dist/i18n/en/Payroll.PrintChecksFailure.json.js.map +1 -0
  158. package/dist/i18n/en/Payroll.PrintChecksForm.json.js +28 -0
  159. package/dist/i18n/en/Payroll.PrintChecksForm.json.js.map +1 -0
  160. package/dist/i18n/en/Payroll.PrintChecksSummary.json.js +14 -0
  161. package/dist/i18n/en/Payroll.PrintChecksSummary.json.js.map +1 -0
  162. package/dist/i18n/en/common.json.d.ts +0 -21
  163. package/dist/i18n/types.d.ts +75 -9
  164. package/dist/models/external.d.ts +3 -0
  165. package/dist/partner-hook-utils/form/buildFormSchema.js +60 -54
  166. package/dist/partner-hook-utils/form/buildFormSchema.js.map +1 -1
  167. package/dist/shared/constants.d.ts +30 -0
  168. package/dist/shared/constants.js +62 -50
  169. package/dist/shared/constants.js.map +1 -1
  170. package/dist/style.css +1 -1
  171. package/dist/test-utils/renderWithProviders.d.ts +4 -1
  172. package/dist/test-utils/tableQueries.d.ts +9 -0
  173. package/docs/guides/endpoint-inventory.json +33 -0
  174. package/package.json +18 -18
@@ -1,31 +1,31 @@
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 xe, Trans as Pe } from "react-i18next";
3
+ import { useState as ae, useRef as Ne } from "react";
4
+ import { isDismissalPayroll as ke, getPayrollTypeLabel as Ce, calculateTotalPayroll as Se, 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
8
  import { Grid as we } from "../../Common/Grid/Grid.js";
9
- import _e from "../../../hooks/useContainerBreakpoints/useContainerBreakpoints.js";
10
- import { useComponentContext as ve } from "../../../contexts/ComponentAdapter/useComponentContext.js";
9
+ import ve from "../../../hooks/useContainerBreakpoints/useContainerBreakpoints.js";
10
+ import { useComponentContext as _e } from "../../../contexts/ComponentAdapter/useComponentContext.js";
11
11
  import { useI18n as Le } from "../../../i18n/I18n.js";
12
12
  import { useDateFormatter as Ee } from "../../../hooks/useDateFormatter.js";
13
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";
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";
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
+ import { FastAchSubmissionBlockerBanner as Ae } from "./SubmissionBlockers/FastAchSubmissionBlockerBanner.js";
19
+ import { GenericBlocker as Be } from "./SubmissionBlockers/GenericBlocker.js";
20
+ import { DataView as m } from "../../Common/DataView/DataView.js";
21
21
  const Ve = (u, C) => u?.startDate && u.endDate ? C.formatPayPeriod(u.startDate, u.endDate) : { startDate: "", endDate: "" }, lt = ({
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,
@@ -33,16 +33,17 @@ const Ve = (u, C) => u?.startDate && u.endDate ? C.formatPayPeriod(u.startDate,
33
33
  alerts: I = [],
34
34
  submissionBlockers: b = [],
35
35
  selectedUnblockOptions: w = {},
36
- onUnblockOptionChange: F,
37
- wireInConfirmationRequest: ue,
36
+ onUnblockOptionChange: M,
37
+ wireInConfirmationRequest: ce,
38
+ printChecksBanner: ue,
38
39
  withReimbursements: g = !0,
39
40
  paymentSpeed: be,
40
- pagination: _
41
+ pagination: v
41
42
  }) => {
42
- const { Alert: v, Badge: L, Button: T, ButtonIcon: R, Dialog: ye, Heading: j, Text: y, Tabs: pe } = ve();
43
+ const { Alert: F, Badge: _, Button: T, ButtonIcon: R, Dialog: ye, Heading: j, Text: y, Tabs: pe } = _e();
43
44
  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,
45
+ const d = Ee(), { t } = xe("Payroll.PayrollOverview"), l = Oe("currency"), [fe, he] = ae("companyPays"), [U, G] = ae(!1), L = Ne(null), D = ve({ ref: L }).includes("small"), H = f === p.Submitting || f === p.Cancelling, $ = /* @__PURE__ */ a(j, { as: "h1", children: t(h ? "summaryTitle" : "overviewTitle") }), z = ke(n.offCycleReason), K = /* @__PURE__ */ a(y, { children: /* @__PURE__ */ a(
46
+ Pe,
46
47
  {
47
48
  i18nKey: z ? "pageSubtitleDismissal" : "pageSubtitle",
48
49
  t,
@@ -54,44 +55,41 @@ const Ve = (u, C) => u?.startDate && u.endDate ? C.formatPayPeriod(u.startDate,
54
55
  }
55
56
  ) });
56
57
  if (f === p.Cancelled)
57
- return /* @__PURE__ */ a("div", { ref: E, className: ne.container, children: /* @__PURE__ */ o(s, { flexDirection: "column", alignItems: "stretch", children: [
58
+ return /* @__PURE__ */ a("div", { ref: L, className: re.container, children: /* @__PURE__ */ o(s, { flexDirection: "column", alignItems: "stretch", children: [
58
59
  /* @__PURE__ */ a(s, { justifyContent: "space-between", alignItems: "flex-start", gap: 16, children: /* @__PURE__ */ o(s, { flexDirection: "column", gap: 4, children: [
59
60
  $,
60
61
  K
61
62
  ] }) }),
62
- /* @__PURE__ */ a(v, { status: "info", label: t("cancelledEmptyState") })
63
+ /* @__PURE__ */ a(F, { status: "info", label: t("cancelledEmptyState") })
63
64
  ] }) });
64
- const P = Se(n), ge = n.payrollStatusMeta?.expectedDebitTime ?? n.payrollDeadline, X = (e) => e.taxes?.reduce(
65
+ const x = Se(n), ge = n.payrollStatusMeta?.expectedDebitTime ?? n.payrollDeadline, X = (e) => e.taxes?.reduce(
65
66
  (r, i) => i.employer ? r + Number(i.amount) : r,
66
67
  0
67
68
  ) ?? 0, q = (e) => e.benefits?.reduce(
68
69
  (r, i) => i.companyContribution ? r + Number(i.companyContribution) : r,
69
70
  0
70
- ) ?? 0, Te = (e) => Number(e.grossPay) + B(e) + X(e) + q(e), O = b.find(
71
+ ) ?? 0, Te = (e) => Number(e.grossPay) + A(e) + X(e) + q(e), E = b.find(
71
72
  (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(
73
+ ), O = E ? w[E.blockerType || ""] : void 0, c = E?.unblockOptions?.find(
74
+ (e) => e.unblockType === O
75
+ ), J = O === "wire_in", Q = O === "move_to_four_day", P = (e) => e.hourlyCompensations?.reduce(
75
76
  (r, i) => {
76
77
  if (typeof i.name > "u")
77
78
  return r;
78
- const k = i.name.toLowerCase(), He = r[k] ?? 0;
79
- return r[k] = He + Number(i.hours || 0), r;
79
+ const N = i.name.toLowerCase(), He = r[N] ?? 0;
80
+ return r[N] = He + Number(i.hours || 0), r;
80
81
  },
81
82
  {}
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 = [
83
+ ) || {}, Z = (e) => e.paidTimeOff?.reduce((r, i) => r + Number(i.hours || 0), 0) ?? 0, ee = [
86
84
  {
87
85
  key: "employeeName",
88
86
  title: t("tableHeaders.employees"),
89
87
  render: (e) => /* @__PURE__ */ o(s, { flexDirection: "column", gap: 0, children: [
90
- W({
88
+ B({
91
89
  first_name: e.firstName,
92
90
  last_name: e.lastName
93
91
  }),
94
- e.excluded && /* @__PURE__ */ a(L, { status: "warning", children: t("skippedBadge") })
92
+ e.excluded && /* @__PURE__ */ a(_, { status: "warning", children: t("skippedBadge") })
95
93
  ] })
96
94
  },
97
95
  {
@@ -103,7 +101,7 @@ const Ve = (u, C) => u?.startDate && u.endDate ? C.formatPayPeriod(u.startDate,
103
101
  {
104
102
  key: "reimbursements",
105
103
  title: t("tableHeaders.reimbursements"),
106
- render: (e) => l(B(e))
104
+ render: (e) => l(A(e))
107
105
  }
108
106
  ] : [],
109
107
  {
@@ -122,7 +120,7 @@ const Ve = (u, C) => u?.startDate && u.endDate ? C.formatPayPeriod(u.startDate,
122
120
  render: (e) => l(Te(e))
123
121
  }
124
122
  ];
125
- h && D && te.push({
123
+ h && D && ee.push({
126
124
  key: "paystubs",
127
125
  title: t("tableHeaders.paystub"),
128
126
  render: (e) => /* @__PURE__ */ a(s, { justifyContent: "flex-end", children: /* @__PURE__ */ a(
@@ -131,9 +129,9 @@ const Ve = (u, C) => u?.startDate && u.endDate ? C.formatPayPeriod(u.startDate,
131
129
  "aria-label": t("downloadPaystubLabel"),
132
130
  variant: "tertiary",
133
131
  onClick: () => {
134
- e.employeeUuid && Y(e.employeeUuid);
132
+ e.employeeUuid && W(e.employeeUuid);
135
133
  },
136
- children: /* @__PURE__ */ a(oe, {})
134
+ children: /* @__PURE__ */ a(ie, {})
137
135
  }
138
136
  ) })
139
137
  });
@@ -142,25 +140,25 @@ const Ve = (u, C) => u?.startDate && u.endDate ? C.formatPayPeriod(u.startDate,
142
140
  id: "companyPays",
143
141
  label: t("dataViews.companyPaysTab"),
144
142
  content: /* @__PURE__ */ a(
145
- c,
143
+ m,
146
144
  {
147
145
  label: t("dataViews.companyPaysTable"),
148
- columns: te,
146
+ columns: ee,
149
147
  data: n.employeeCompensations,
150
- pagination: _,
148
+ pagination: v,
151
149
  itemMenu: h && !D ? (e) => /* @__PURE__ */ a(
152
150
  R,
153
151
  {
154
152
  "aria-label": t("downloadPaystubLabel"),
155
153
  variant: "tertiary",
156
154
  onClick: () => {
157
- e.employeeUuid && Y(e.employeeUuid);
155
+ e.employeeUuid && W(e.employeeUuid);
158
156
  },
159
- children: /* @__PURE__ */ a(oe, {})
157
+ children: /* @__PURE__ */ a(ie, {})
160
158
  }
161
159
  ) : void 0,
162
160
  footer: () => ({
163
- employeeName: /* @__PURE__ */ o(N, { children: [
161
+ employeeName: /* @__PURE__ */ o(k, { children: [
164
162
  t("tableHeaders.footerTotalsLabel"),
165
163
  /* @__PURE__ */ a(y, { variant: "supporting", size: "sm", children: t("tableHeaders.footerTotalsDescription") })
166
164
  ] }),
@@ -170,7 +168,7 @@ const Ve = (u, C) => u?.startDate && u.endDate ? C.formatPayPeriod(u.startDate,
170
168
  } : {},
171
169
  companyTaxes: l(Number(n.totals?.employerTaxes ?? 0)),
172
170
  companyBenefits: l(Number(n.totals?.benefits ?? 0)),
173
- companyPays: l(P)
171
+ companyPays: l(x)
174
172
  })
175
173
  }
176
174
  )
@@ -179,18 +177,18 @@ const Ve = (u, C) => u?.startDate && u.endDate ? C.formatPayPeriod(u.startDate,
179
177
  id: "hoursWorked",
180
178
  label: t("dataViews.hoursWorkedTab"),
181
179
  content: /* @__PURE__ */ a(
182
- c,
180
+ m,
183
181
  {
184
182
  label: t("dataViews.hoursWorkedTable"),
185
183
  columns: [
186
184
  {
187
185
  title: t("tableHeaders.employees"),
188
186
  render: (e) => /* @__PURE__ */ o(s, { flexDirection: "column", gap: 0, children: [
189
- W({
187
+ B({
190
188
  first_name: e.firstName,
191
189
  last_name: e.lastName
192
190
  }),
193
- e.excluded && /* @__PURE__ */ a(L, { status: "warning", children: t("skippedBadge") })
191
+ e.excluded && /* @__PURE__ */ a(_, { status: "warning", children: t("skippedBadge") })
194
192
  ] })
195
193
  },
196
194
  {
@@ -211,15 +209,15 @@ const Ve = (u, C) => u?.startDate && u.endDate ? C.formatPayPeriod(u.startDate,
211
209
  },
212
210
  {
213
211
  title: t("tableHeaders.regular"),
214
- render: (e) => x(e)[V.REGULAR_HOURS_NAME] || 0
212
+ render: (e) => P(e)[V.REGULAR_HOURS_NAME] || 0
215
213
  },
216
214
  {
217
215
  title: t("tableHeaders.overtime"),
218
- render: (e) => x(e)[V.OVERTIME_NAME] || 0
216
+ render: (e) => P(e)[V.OVERTIME_NAME] || 0
219
217
  },
220
218
  {
221
219
  title: t("tableHeaders.doubleOT"),
222
- render: (e) => x(e)[V.DOUBLE_OVERTIME_NAME] || 0
220
+ render: (e) => P(e)[V.DOUBLE_OVERTIME_NAME] || 0
223
221
  },
224
222
  {
225
223
  title: t("tableHeaders.timeOff"),
@@ -227,14 +225,14 @@ const Ve = (u, C) => u?.startDate && u.endDate ? C.formatPayPeriod(u.startDate,
227
225
  },
228
226
  {
229
227
  title: t("tableHeaders.totalHours"),
230
- render: (e) => Object.values(x(e)).reduce(
228
+ render: (e) => Object.values(P(e)).reduce(
231
229
  (r, i) => r + i,
232
230
  0
233
231
  ) + Z(e)
234
232
  }
235
233
  ],
236
234
  data: n.employeeCompensations,
237
- pagination: _
235
+ pagination: v
238
236
  }
239
237
  )
240
238
  },
@@ -242,18 +240,18 @@ const Ve = (u, C) => u?.startDate && u.endDate ? C.formatPayPeriod(u.startDate,
242
240
  id: "employeeTakeHome",
243
241
  label: t("dataViews.employeeTakeHomeTab"),
244
242
  content: /* @__PURE__ */ a(
245
- c,
243
+ m,
246
244
  {
247
245
  label: t("dataViews.employeeTakeHomeTable"),
248
246
  columns: [
249
247
  {
250
248
  title: t("tableHeaders.employees"),
251
249
  render: (e) => /* @__PURE__ */ o(s, { flexDirection: "column", gap: 0, children: [
252
- W({
250
+ B({
253
251
  first_name: e.firstName,
254
252
  last_name: e.lastName
255
253
  }),
256
- e.excluded && /* @__PURE__ */ a(L, { status: "warning", children: t("skippedBadge") })
254
+ e.excluded && /* @__PURE__ */ a(_, { status: "warning", children: t("skippedBadge") })
257
255
  ] })
258
256
  },
259
257
  {
@@ -276,7 +274,7 @@ const Ve = (u, C) => u?.startDate && u.endDate ? C.formatPayPeriod(u.startDate,
276
274
  ...g ? [
277
275
  {
278
276
  title: t("tableHeaders.reimbursements"),
279
- render: (e) => l(B(e))
277
+ render: (e) => l(A(e))
280
278
  }
281
279
  ] : [],
282
280
  {
@@ -303,7 +301,7 @@ const Ve = (u, C) => u?.startDate && u.endDate ? C.formatPayPeriod(u.startDate,
303
301
  }
304
302
  ],
305
303
  data: n.employeeCompensations,
306
- pagination: _
304
+ pagination: v
307
305
  }
308
306
  )
309
307
  },
@@ -312,7 +310,7 @@ const Ve = (u, C) => u?.startDate && u.endDate ? C.formatPayPeriod(u.startDate,
312
310
  label: t("dataViews.taxesTab"),
313
311
  content: /* @__PURE__ */ o(s, { flexDirection: "column", gap: 32, children: [
314
312
  /* @__PURE__ */ a(
315
- c,
313
+ m,
316
314
  {
317
315
  label: t("dataViews.taxesTable"),
318
316
  columns: [
@@ -341,7 +339,7 @@ const Ve = (u, C) => u?.startDate && u.endDate ? C.formatPayPeriod(u.startDate,
341
339
  }
342
340
  ),
343
341
  /* @__PURE__ */ a(
344
- c,
342
+ m,
345
343
  {
346
344
  label: t("dataViews.debitedTable"),
347
345
  columns: [
@@ -372,8 +370,8 @@ const Ve = (u, C) => u?.startDate && u.endDate ? C.formatPayPeriod(u.startDate,
372
370
  )
373
371
  ] })
374
372
  }
375
- ], ae = h ? /* @__PURE__ */ o(N, { children: [
376
- /* @__PURE__ */ a(T, { onClick: ce, variant: "secondary", isDisabled: H, children: t("payrollReceiptCta") }),
373
+ ], te = h ? /* @__PURE__ */ o(k, { children: [
374
+ /* @__PURE__ */ a(T, { onClick: de, variant: "secondary", isDisabled: H, children: t("payrollReceiptCta") }),
377
375
  me && /* @__PURE__ */ a(
378
376
  T,
379
377
  {
@@ -385,14 +383,14 @@ const Ve = (u, C) => u?.startDate && u.endDate ? C.formatPayPeriod(u.startDate,
385
383
  children: t("cancelCta")
386
384
  }
387
385
  )
388
- ] }) : /* @__PURE__ */ o(N, { children: [
386
+ ] }) : /* @__PURE__ */ o(k, { children: [
389
387
  /* @__PURE__ */ a(T, { onClick: u, variant: "secondary", isDisabled: H, children: t("editCta") }),
390
388
  /* @__PURE__ */ a(
391
389
  T,
392
390
  {
393
391
  onClick: C,
394
392
  isDisabled: H || b.length > 0 && (b.some(
395
- (e) => !ie.includes(e.blockerType || "")
393
+ (e) => !ne.includes(e.blockerType || "")
396
394
  ) || b.some(
397
395
  (e) => !w[e.blockerType || ""]
398
396
  )),
@@ -400,19 +398,19 @@ const Ve = (u, C) => u?.startDate && u.endDate ? C.formatPayPeriod(u.startDate,
400
398
  }
401
399
  )
402
400
  ] });
403
- return /* @__PURE__ */ a("div", { ref: E, className: ne.container, children: /* @__PURE__ */ o(s, { flexDirection: "column", alignItems: "stretch", children: [
401
+ return /* @__PURE__ */ a("div", { ref: L, className: re.container, children: /* @__PURE__ */ o(s, { flexDirection: "column", alignItems: "stretch", children: [
404
402
  /* @__PURE__ */ o(s, { justifyContent: "space-between", alignItems: "flex-start", gap: 16, children: [
405
403
  /* @__PURE__ */ o(s, { flexDirection: "column", gap: 4, children: [
406
404
  $,
407
405
  K
408
406
  ] }),
409
- D && /* @__PURE__ */ a(s, { gap: 8, justifyContent: "flex-end", children: ae })
407
+ D && /* @__PURE__ */ a(s, { gap: 8, justifyContent: "flex-end", children: te })
410
408
  ] }),
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: [
413
- ue,
409
+ !D && /* @__PURE__ */ a(we, { gridTemplateColumns: "1fr", gap: 8, children: te }),
410
+ 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: [
411
+ ce,
414
412
  I.length > 0 && /* @__PURE__ */ a(s, { flexDirection: "column", gap: 16, children: I.map((e, r) => /* @__PURE__ */ a(
415
- v,
413
+ F,
416
414
  {
417
415
  label: e.title,
418
416
  status: e.type,
@@ -421,58 +419,58 @@ const Ve = (u, C) => u?.startDate && u.endDate ? C.formatPayPeriod(u.startDate,
421
419
  },
422
420
  `${e.type}-${e.title}`
423
421
  )) }),
424
- b.length > 0 && F && b.map((e) => {
422
+ b.length > 0 && M && b.map((e) => {
425
423
  const r = e.blockerType || "";
426
- return ie.includes(r) ? /* @__PURE__ */ a(
427
- Be,
424
+ return ne.includes(r) ? /* @__PURE__ */ a(
425
+ Ae,
428
426
  {
429
427
  blocker: e,
430
428
  selectedValue: w[r],
431
- onUnblockOptionChange: F,
429
+ onUnblockOptionChange: M,
432
430
  paymentSpeed: be
433
431
  },
434
432
  r
435
- ) : /* @__PURE__ */ a(We, { blocker: e }, r);
433
+ ) : /* @__PURE__ */ a(Be, { blocker: e }, r);
436
434
  }),
437
435
  /* @__PURE__ */ a(j, { as: "h2", styledAs: "h3", children: t(J ? "payrollSummaryTitleWire" : Q ? "payrollSummaryTitleFourDay" : "payrollSummaryTitle") }),
438
436
  J ? /* @__PURE__ */ a(
439
- c,
437
+ m,
440
438
  {
441
439
  label: t("payrollSummaryLabel"),
442
440
  columns: [
443
441
  {
444
442
  title: t("tableHeaders.totalPayroll"),
445
- render: () => l(P)
443
+ render: () => l(x)
446
444
  },
447
445
  {
448
446
  title: t("tableHeaders.wireAmount"),
449
447
  render: () => {
450
- const r = m?.metadata?.wire_in_amount;
448
+ const r = c?.metadata?.wire_in_amount;
451
449
  return r ? l(Number(r)) : "-";
452
450
  }
453
451
  },
454
452
  {
455
453
  title: t("tableHeaders.wireTransferDeadline"),
456
454
  render: () => {
457
- const r = m?.metadata?.wire_in_deadline, i = d.formatWithTime(r), k = d.formatShortWithYear(r);
458
- return r ? `${i.time} on ${k}` : "-";
455
+ const r = c?.metadata?.wire_in_deadline, i = d.formatWithTime(r), N = d.formatShortWithYear(r);
456
+ return r ? `${i.time} on ${N}` : "-";
459
457
  }
460
458
  },
461
459
  {
462
460
  title: t("tableHeaders.employeePayDate"),
463
- render: () => m?.checkDate ? d.formatShortWithYear(m.checkDate) : "-"
461
+ render: () => c?.checkDate ? d.formatShortWithYear(c.checkDate) : "-"
464
462
  }
465
463
  ],
466
464
  data: [{}]
467
465
  }
468
466
  ) : Q ? /* @__PURE__ */ a(
469
- c,
467
+ m,
470
468
  {
471
469
  label: t("payrollSummaryLabel"),
472
470
  columns: [
473
471
  {
474
472
  title: t("tableHeaders.totalPayroll"),
475
- render: () => l(P)
473
+ render: () => l(x)
476
474
  },
477
475
  {
478
476
  title: t("tableHeaders.debitAmount"),
@@ -483,30 +481,30 @@ const Ve = (u, C) => u?.startDate && u.endDate ? C.formatPayPeriod(u.startDate,
483
481
  },
484
482
  {
485
483
  title: t("tableHeaders.debitAccount"),
486
- render: () => M?.hiddenAccountNumber ?? ""
484
+ render: () => Y?.hiddenAccountNumber ?? ""
487
485
  },
488
486
  {
489
487
  title: t("tableHeaders.debitDate"),
490
488
  render: () => {
491
- const r = m?.metadata?.debit_date;
489
+ const r = c?.metadata?.debit_date;
492
490
  return d.formatShortWithYear(r);
493
491
  }
494
492
  },
495
493
  {
496
494
  title: t("tableHeaders.employeePayDate"),
497
- render: () => m?.checkDate ? d.formatShortWithYear(m.checkDate) : "-"
495
+ render: () => c?.checkDate ? d.formatShortWithYear(c.checkDate) : "-"
498
496
  }
499
497
  ],
500
498
  data: [{}]
501
499
  }
502
500
  ) : /* @__PURE__ */ a(
503
- c,
501
+ m,
504
502
  {
505
503
  label: t("payrollSummaryLabel"),
506
504
  columns: [
507
505
  {
508
506
  title: t("tableHeaders.totalPayroll"),
509
- render: () => l(P)
507
+ render: () => l(x)
510
508
  },
511
509
  {
512
510
  title: t("tableHeaders.debitAmount"),
@@ -514,7 +512,7 @@ const Ve = (u, C) => u?.startDate && u.endDate ? C.formatPayPeriod(u.startDate,
514
512
  },
515
513
  {
516
514
  title: t("tableHeaders.debitAccount"),
517
- render: () => M?.hiddenAccountNumber ?? ""
515
+ render: () => Y?.hiddenAccountNumber ?? ""
518
516
  },
519
517
  {
520
518
  title: t("tableHeaders.debitDate"),
@@ -528,14 +526,7 @@ const Ve = (u, C) => u?.startDate && u.endDate ? C.formatPayPeriod(u.startDate,
528
526
  data: [{}]
529
527
  }
530
528
  ),
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
- ),
529
+ ue,
539
530
  /* @__PURE__ */ a(
540
531
  pe,
541
532
  {
@@ -552,7 +543,7 @@ const Ve = (u, C) => u?.startDate && u.endDate ? C.formatPayPeriod(u.startDate,
552
543
  onClose: () => {
553
544
  G(!1);
554
545
  },
555
- onPrimaryActionClick: de,
546
+ onPrimaryActionClick: se,
556
547
  shouldCloseOnBackdropClick: !0,
557
548
  primaryActionLabel: t("confirmCancelCta"),
558
549
  isDestructive: !0,