@gusto/embedded-react-sdk 0.23.0 → 0.24.0

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 (123) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/dist/components/Common/PayrollLoading/PayrollLoading.d.ts +2 -0
  3. package/dist/components/Common/PayrollLoading/PayrollLoading.js +19 -0
  4. package/dist/components/Common/PayrollLoading/PayrollLoading.js.map +1 -0
  5. package/dist/components/Common/PayrollLoading/PayrollLoadingTypes.d.ts +5 -0
  6. package/dist/components/Common/PayrollLoading/index.d.ts +3 -0
  7. package/dist/components/Common/index.d.ts +1 -0
  8. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js +3 -4
  9. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js.map +1 -1
  10. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js +3 -4
  11. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js.map +1 -1
  12. package/dist/components/Company/AssignSignatory/useAssignSignatory.js +5 -6
  13. package/dist/components/Company/AssignSignatory/useAssignSignatory.js.map +1 -1
  14. package/dist/components/Company/BankAccount/BankAccountForm/context.js +3 -4
  15. package/dist/components/Company/BankAccount/BankAccountForm/context.js.map +1 -1
  16. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js +3 -4
  17. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  18. package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js +3 -4
  19. package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js.map +1 -1
  20. package/dist/components/Company/FederalTaxes/useFederalTaxes.js +8 -9
  21. package/dist/components/Company/FederalTaxes/useFederalTaxes.js.map +1 -1
  22. package/dist/components/Company/Industry/Context.js +6 -7
  23. package/dist/components/Company/Industry/Context.js.map +1 -1
  24. package/dist/components/Company/Locations/LocationForm/useLocationForm.js +3 -4
  25. package/dist/components/Company/Locations/LocationForm/useLocationForm.js.map +1 -1
  26. package/dist/components/Company/Locations/LocationsList/useLocationsList.js +3 -4
  27. package/dist/components/Company/Locations/LocationsList/useLocationsList.js.map +1 -1
  28. package/dist/components/Company/OnboardingOverview/context.js +3 -4
  29. package/dist/components/Company/OnboardingOverview/context.js.map +1 -1
  30. package/dist/components/Company/PaySchedule/usePaySchedule.js +5 -6
  31. package/dist/components/Company/PaySchedule/usePaySchedule.js.map +1 -1
  32. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js +3 -4
  33. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js.map +1 -1
  34. package/dist/components/Company/StateTaxes/StateTaxesList/context.js +3 -4
  35. package/dist/components/Company/StateTaxes/StateTaxesList/context.js.map +1 -1
  36. package/dist/components/Contractor/Address/useAddress.js +5 -6
  37. package/dist/components/Contractor/Address/useAddress.js.map +1 -1
  38. package/dist/components/Contractor/Profile/useContractorProfile.js +2 -3
  39. package/dist/components/Contractor/Profile/useContractorProfile.js.map +1 -1
  40. package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.js +2 -3
  41. package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.js.map +1 -1
  42. package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.js +2 -3
  43. package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.js.map +1 -1
  44. package/dist/components/Employee/Deductions/DeductionsForm/GarnishmentForm.js +2 -3
  45. package/dist/components/Employee/Deductions/DeductionsForm/GarnishmentForm.js.map +1 -1
  46. package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js +3 -4
  47. package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  48. package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js +3 -4
  49. package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js.map +1 -1
  50. package/dist/components/Employee/EmployeeList/useEmployeeList.js +3 -4
  51. package/dist/components/Employee/EmployeeList/useEmployeeList.js.map +1 -1
  52. package/dist/components/Employee/FederalTaxes/FederalForm.js +2 -0
  53. package/dist/components/Employee/FederalTaxes/FederalForm.js.map +1 -1
  54. package/dist/components/Employee/FederalTaxes/useFederalTaxes.js +3 -4
  55. package/dist/components/Employee/FederalTaxes/useFederalTaxes.js.map +1 -1
  56. package/dist/components/Employee/PaymentMethod/usePaymentMethod.js +5 -6
  57. package/dist/components/Employee/PaymentMethod/usePaymentMethod.js.map +1 -1
  58. package/dist/components/Employee/Profile/useProfile.js +3 -4
  59. package/dist/components/Employee/Profile/useProfile.js.map +1 -1
  60. package/dist/components/Employee/StateTaxes/useStateTaxes.js +3 -4
  61. package/dist/components/Employee/StateTaxes/useStateTaxes.js.map +1 -1
  62. package/dist/components/Employee/Taxes/FederalForm.js +6 -4
  63. package/dist/components/Employee/Taxes/FederalForm.js.map +1 -1
  64. package/dist/components/Employee/Taxes/useTaxes.js +3 -4
  65. package/dist/components/Employee/Taxes/useTaxes.js.map +1 -1
  66. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetails.d.ts +4 -4
  67. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetails.js +26 -21
  68. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetails.js.map +1 -1
  69. package/dist/components/Payroll/ConfirmWireDetails/index.d.ts +1 -1
  70. package/dist/components/Payroll/ConfirmWireDetails/types.d.ts +8 -1
  71. package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.d.ts +2 -1
  72. package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js +56 -54
  73. package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js.map +1 -1
  74. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.d.ts +2 -1
  75. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js +90 -91
  76. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js.map +1 -1
  77. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.d.ts +2 -1
  78. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.js +33 -31
  79. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.js.map +1 -1
  80. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.d.ts +2 -1
  81. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js +88 -87
  82. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js.map +1 -1
  83. package/dist/components/Payroll/PayrollFlow/PayrollFlow.d.ts +1 -1
  84. package/dist/components/Payroll/PayrollFlow/PayrollFlow.js +24 -18
  85. package/dist/components/Payroll/PayrollFlow/PayrollFlow.js.map +1 -1
  86. package/dist/components/Payroll/PayrollFlow/PayrollFlowComponents.d.ts +5 -0
  87. package/dist/components/Payroll/PayrollFlow/PayrollFlowComponents.js +77 -51
  88. package/dist/components/Payroll/PayrollFlow/PayrollFlowComponents.js.map +1 -1
  89. package/dist/components/Payroll/PayrollLanding/PayrollLanding.d.ts +4 -1
  90. package/dist/components/Payroll/PayrollLanding/PayrollLanding.js +29 -21
  91. package/dist/components/Payroll/PayrollLanding/PayrollLanding.js.map +1 -1
  92. package/dist/components/Payroll/PayrollLanding/PayrollLandingFlowComponents.d.ts +5 -0
  93. package/dist/components/Payroll/PayrollLanding/PayrollLandingFlowComponents.js +36 -26
  94. package/dist/components/Payroll/PayrollLanding/PayrollLandingFlowComponents.js.map +1 -1
  95. package/dist/components/Payroll/PayrollOverview/PayrollOverview.d.ts +4 -1
  96. package/dist/components/Payroll/PayrollOverview/PayrollOverview.js +70 -60
  97. package/dist/components/Payroll/PayrollOverview/PayrollOverview.js.map +1 -1
  98. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.d.ts +2 -1
  99. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js +239 -234
  100. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js.map +1 -1
  101. package/dist/components/Payroll/PayrollReceipts/PayrollReceipts.d.ts +2 -1
  102. package/dist/components/Payroll/PayrollReceipts/PayrollReceipts.js +25 -15
  103. package/dist/components/Payroll/PayrollReceipts/PayrollReceipts.js.map +1 -1
  104. package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.d.ts +2 -1
  105. package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js +152 -137
  106. package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js.map +1 -1
  107. package/dist/components/Payroll/index.d.ts +1 -0
  108. package/dist/components/Payroll/usePreparedPayrollData.js +5 -6
  109. package/dist/components/Payroll/usePreparedPayrollData.js.map +1 -1
  110. package/dist/contexts/ApiProvider/ApiProvider.d.ts +3 -1
  111. package/dist/contexts/ApiProvider/ApiProvider.js +26 -18
  112. package/dist/contexts/ApiProvider/ApiProvider.js.map +1 -1
  113. package/dist/contexts/ComponentAdapter/componentAdapterTypes.d.ts +1 -0
  114. package/dist/contexts/ComponentAdapter/useComponentContext.d.ts +2 -0
  115. package/dist/contexts/ComponentAdapter/useComponentContext.js.map +1 -1
  116. package/dist/contexts/GustoProvider/GustoProvider.d.ts +2 -0
  117. package/dist/contexts/GustoProvider/GustoProvider.js +12 -11
  118. package/dist/contexts/GustoProvider/GustoProvider.js.map +1 -1
  119. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js +24 -14
  120. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js.map +1 -1
  121. package/dist/index.d.ts +1 -0
  122. package/dist/style.css +1 -1
  123. package/package.json +5 -5
@@ -1,57 +1,58 @@
1
- import { jsx as t, jsxs as d, Fragment as P } from "react/jsx-runtime";
2
- import { useTranslation as be, Trans as ye } from "react-i18next";
3
- import { useState as X, useRef as he } from "react";
1
+ import { jsx as r, jsxs as d, Fragment as x } from "react/jsx-runtime";
2
+ import { useTranslation as ue, Trans as be } from "react-i18next";
3
+ import { useState as q, useRef as ye } from "react";
4
4
  import { calculateTotalPayroll as pe } from "../helpers.js";
5
- import fe from "./PayrollOverviewPresentation.module.scss.js";
6
- import { Flex as h, FlexItem as z } from "../../Common/Flex/Flex.js";
5
+ import he from "./PayrollOverviewPresentation.module.scss.js";
6
+ import { Flex as f, FlexItem as z } from "../../Common/Flex/Flex.js";
7
7
  import "classnames";
8
- import { PAYMENT_METHODS as Te, FlsaStatus as q, compensationTypeLabels as x, PAYROLL_RESOLVABLE_SUBMISSION_BLOCKER_TYPES as J } from "../../../shared/constants.js";
9
- import { useComponentContext as ge } from "../../../contexts/ComponentAdapter/useComponentContext.js";
10
- import { useContainerBreakpoints as De } from "../../../hooks/useContainerBreakpoints/useContainerBreakpoints.js";
11
- import { useI18n as He } from "../../../i18n/I18n.js";
12
- import { useDateFormatter as Pe } from "../../../hooks/useDateFormatter.js";
13
- import xe from "../../../hooks/useNumberFormatter.js";
8
+ import { PAYMENT_METHODS as fe, FlsaStatus as J, compensationTypeLabels as k, PAYROLL_RESOLVABLE_SUBMISSION_BLOCKER_TYPES as Q } from "../../../shared/constants.js";
9
+ import { useComponentContext as Te } from "../../../contexts/ComponentAdapter/useComponentContext.js";
10
+ import { useContainerBreakpoints as He } from "../../../hooks/useContainerBreakpoints/useContainerBreakpoints.js";
11
+ import { useI18n as De } from "../../../i18n/I18n.js";
12
+ import { useDateFormatter as ge } from "../../../hooks/useDateFormatter.js";
13
+ import Pe from "../../../hooks/useNumberFormatter.js";
14
14
  import { firstLastName as A } from "../../../helpers/formattedStrings.js";
15
- import ke from "../../../assets/icons/download-cloud.svg.js";
16
- import { useLoadingIndicator as Ce } from "../../../contexts/LoadingIndicatorProvider/useLoadingIndicator.js";
17
- import { FastAchSubmissionBlockerBanner as we } from "./SubmissionBlockers/FastAchSubmissionBlockerBanner.js";
15
+ import xe from "../../../assets/icons/download-cloud.svg.js";
16
+ import { PayrollLoading as ke } from "../../Common/PayrollLoading/PayrollLoading.js";
17
+ import { FastAchSubmissionBlockerBanner as Ce } from "./SubmissionBlockers/FastAchSubmissionBlockerBanner.js";
18
18
  import { GenericBlocker as Ne } from "./SubmissionBlockers/GenericBlocker.js";
19
19
  import { DataView as m } from "../../Common/DataView/DataView.js";
20
- const _e = (p, k) => p?.startDate && p.endDate ? k.formatPayPeriod(p.startDate, p.endDate) : { startDate: "", endDate: "" }, ze = ({
20
+ const we = (p, C) => p?.startDate && p.endDate ? C.formatPayPeriod(p.startDate, p.endDate) : { startDate: "", endDate: "" }, Xe = ({
21
21
  onEdit: p,
22
- onSubmit: k,
23
- onCancel: Q,
24
- onPayrollReceipt: Z,
25
- onPaystubDownload: ee,
26
- employeeDetails: te,
22
+ onSubmit: C,
23
+ onCancel: Z,
24
+ onPayrollReceipt: ee,
25
+ onPaystubDownload: te,
26
+ employeeDetails: re,
27
27
  payrollData: o,
28
28
  bankAccount: O,
29
- taxes: C,
29
+ taxes: N,
30
30
  isSubmitting: T = !1,
31
31
  isProcessed: w,
32
32
  alerts: M = [],
33
- submissionBlockers: f = [],
34
- selectedUnblockOptions: N = {},
33
+ submissionBlockers: h = [],
34
+ selectedUnblockOptions: _ = {},
35
35
  onUnblockOptionChange: W,
36
- wireInConfirmationRequest: re
36
+ wireInConfirmationRequest: ae,
37
+ withReimbursements: H = !0
37
38
  }) => {
38
- const { Alert: I, Button: g, ButtonIcon: ae, Dialog: ne, Heading: _, Text: a, Tabs: le, LoadingSpinner: ie } = ge();
39
- He("Payroll.PayrollOverview");
40
- const s = Pe(), { t: r } = be("Payroll.PayrollOverview"), l = xe("currency"), [oe, se] = X("companyPays"), [Y, V] = X(!1), { LoadingIndicator: de } = Ce(), B = he(null), c = De({ ref: B }).includes("small"), D = pe(o), ce = o.payrollStatusMeta?.expectedDebitTime ?? o.payrollDeadline, R = (e) => e.taxes?.reduce(
39
+ const { Alert: Y, Button: D, ButtonIcon: ne, Dialog: le, Heading: V, Text: a, Tabs: ie } = Te();
40
+ De("Payroll.PayrollOverview");
41
+ const s = ge(), { t } = ue("Payroll.PayrollOverview"), l = Pe("currency"), [oe, se] = q("companyPays"), [B, U] = q(!1), I = ye(null), c = He({ ref: I }).includes("small"), g = pe(o), de = o.payrollStatusMeta?.expectedDebitTime ?? o.payrollDeadline, F = (e) => e.taxes?.reduce(
41
42
  (n, i) => i.employer ? n + i.amount : n,
42
43
  0
43
- ) ?? 0, U = (e) => e.benefits?.reduce(
44
+ ) ?? 0, R = (e) => e.benefits?.reduce(
44
45
  (n, i) => i.companyContribution ? n + i.companyContribution : n,
45
46
  0
46
47
  ) ?? 0, L = (e) => e.fixedCompensations?.length ? Number(
47
48
  e.fixedCompensations.find(
48
- (n) => n.name?.toLowerCase() === x.REIMBURSEMENT_NAME.toLowerCase()
49
+ (n) => n.name?.toLowerCase() === k.REIMBURSEMENT_NAME.toLowerCase()
49
50
  )?.amount || 0
50
- ) : 0, me = (e) => e.grossPay + L(e) + R(e) + U(e), u = new Map(te.map((e) => [e.uuid, e])), E = f.find(
51
+ ) : 0, ce = (e) => e.grossPay + L(e) + F(e) + R(e), u = new Map(re.map((e) => [e.uuid, e])), E = h.find(
51
52
  (e) => e.blockerType === "fast_ach_threshold_exceeded" || e.blockerType === "needs_earned_access_for_fast_ach"
52
- ), S = E ? N[E.blockerType || ""] : void 0, b = E?.unblockOptions?.find(
53
+ ), S = E ? _[E.blockerType || ""] : void 0, b = E?.unblockOptions?.find(
53
54
  (e) => e.unblockType === S
54
- ), F = S === "wire_in", j = S === "move_to_four_day", H = (e) => e.hourlyCompensations?.reduce(
55
+ ), j = S === "wire_in", G = S === "move_to_four_day", P = (e) => e.hourlyCompensations?.reduce(
55
56
  (n, i) => {
56
57
  if (typeof i.name > "u")
57
58
  return n;
@@ -59,110 +60,114 @@ const _e = (p, k) => p?.startDate && p.endDate ? k.formatPayPeriod(p.startDate,
59
60
  return n[y] = v + Number(i.hours || 0), n;
60
61
  },
61
62
  {}
62
- ) || {}, G = (e) => e.paidTimeOff?.reduce((n, i) => n + Number(i.hours || 0), 0) ?? 0, $ = o.employeeCompensations?.reduce(
63
- (e, n) => !n.excluded && n.paymentMethod === Te.check ? e + 1 : e,
63
+ ) || {}, $ = (e) => e.paidTimeOff?.reduce((n, i) => n + Number(i.hours || 0), 0) ?? 0, K = o.employeeCompensations?.reduce(
64
+ (e, n) => !n.excluded && n.paymentMethod === fe.check ? e + 1 : e,
64
65
  0
65
- ) ?? 0, K = [
66
+ ) ?? 0, X = [
66
67
  {
67
68
  key: "employeeName",
68
- title: r("tableHeaders.employees"),
69
- render: (e) => /* @__PURE__ */ t(a, { children: A({
69
+ title: t("tableHeaders.employees"),
70
+ render: (e) => /* @__PURE__ */ r(a, { children: A({
70
71
  first_name: u.get(e.employeeUuid)?.firstName,
71
72
  last_name: u.get(e.employeeUuid)?.lastName
72
73
  }) })
73
74
  },
74
75
  {
75
76
  key: "grossPay",
76
- title: r("tableHeaders.grossPay"),
77
- render: (e) => /* @__PURE__ */ t(a, { children: l(e.grossPay) })
78
- },
79
- {
80
- key: "reimbursements",
81
- title: r("tableHeaders.reimbursements"),
82
- render: (e) => /* @__PURE__ */ t(a, { children: l(L(e)) })
77
+ title: t("tableHeaders.grossPay"),
78
+ render: (e) => /* @__PURE__ */ r(a, { children: l(e.grossPay) })
83
79
  },
80
+ ...H ? [
81
+ {
82
+ key: "reimbursements",
83
+ title: t("tableHeaders.reimbursements"),
84
+ render: (e) => /* @__PURE__ */ r(a, { children: l(L(e)) })
85
+ }
86
+ ] : [],
84
87
  {
85
88
  key: "companyTaxes",
86
- title: r("tableHeaders.companyTaxes"),
87
- render: (e) => /* @__PURE__ */ t(a, { children: l(R(e)) })
89
+ title: t("tableHeaders.companyTaxes"),
90
+ render: (e) => /* @__PURE__ */ r(a, { children: l(F(e)) })
88
91
  },
89
92
  {
90
93
  key: "companyBenefits",
91
- title: r("tableHeaders.companyBenefits"),
92
- render: (e) => /* @__PURE__ */ t(a, { children: l(U(e)) })
94
+ title: t("tableHeaders.companyBenefits"),
95
+ render: (e) => /* @__PURE__ */ r(a, { children: l(R(e)) })
93
96
  },
94
97
  {
95
98
  key: "companyPays",
96
- title: r("tableHeaders.companyPays"),
97
- render: (e) => /* @__PURE__ */ t(a, { children: l(me(e)) })
99
+ title: t("tableHeaders.companyPays"),
100
+ render: (e) => /* @__PURE__ */ r(a, { children: l(ce(e)) })
98
101
  }
99
102
  ];
100
- w && K.push({
103
+ w && X.push({
101
104
  key: "paystubs",
102
- title: r("tableHeaders.paystub"),
103
- render: (e) => /* @__PURE__ */ t(
104
- ae,
105
+ title: t("tableHeaders.paystub"),
106
+ render: (e) => /* @__PURE__ */ r(
107
+ ne,
105
108
  {
106
- "aria-label": r("downloadPaystubLabel"),
109
+ "aria-label": t("downloadPaystubLabel"),
107
110
  variant: "tertiary",
108
111
  onClick: () => {
109
- e.employeeUuid && ee(e.employeeUuid);
112
+ e.employeeUuid && te(e.employeeUuid);
110
113
  },
111
- children: /* @__PURE__ */ t(ke, {})
114
+ children: /* @__PURE__ */ r(xe, {})
112
115
  }
113
116
  )
114
117
  });
115
- const ue = [
118
+ const me = [
116
119
  {
117
120
  id: "companyPays",
118
- label: r("dataViews.companyPaysTab"),
119
- content: /* @__PURE__ */ t(
121
+ label: t("dataViews.companyPaysTab"),
122
+ content: /* @__PURE__ */ r(
120
123
  m,
121
124
  {
122
- label: r("dataViews.companyPaysTable"),
123
- columns: K,
125
+ label: t("dataViews.companyPaysTable"),
126
+ columns: X,
124
127
  data: o.employeeCompensations,
125
128
  footer: () => ({
126
- employeeName: /* @__PURE__ */ d(P, { children: [
127
- /* @__PURE__ */ t(a, { children: r("tableHeaders.footerTotalsLabel") }),
128
- /* @__PURE__ */ t(a, { children: r("tableHeaders.footerTotalsDescription") })
129
+ employeeName: /* @__PURE__ */ d(x, { children: [
130
+ /* @__PURE__ */ r(a, { children: t("tableHeaders.footerTotalsLabel") }),
131
+ /* @__PURE__ */ r(a, { children: t("tableHeaders.footerTotalsDescription") })
129
132
  ] }),
130
- grossPay: /* @__PURE__ */ t(a, { children: l(Number(o.totals?.grossPay ?? 0)) }),
131
- reimbursements: /* @__PURE__ */ t(a, { children: l(Number(o.totals?.reimbursements ?? 0)) }),
132
- companyTaxes: /* @__PURE__ */ t(a, { children: l(Number(o.totals?.employerTaxes ?? 0)) }),
133
- companyBenefits: /* @__PURE__ */ t(a, { children: l(Number(o.totals?.benefits ?? 0)) }),
134
- companyPays: /* @__PURE__ */ t(a, { children: l(D) })
133
+ grossPay: /* @__PURE__ */ r(a, { children: l(Number(o.totals?.grossPay ?? 0)) }),
134
+ ...H ? {
135
+ reimbursements: /* @__PURE__ */ r(a, { children: l(Number(o.totals?.reimbursements ?? 0)) })
136
+ } : {},
137
+ companyTaxes: /* @__PURE__ */ r(a, { children: l(Number(o.totals?.employerTaxes ?? 0)) }),
138
+ companyBenefits: /* @__PURE__ */ r(a, { children: l(Number(o.totals?.benefits ?? 0)) }),
139
+ companyPays: /* @__PURE__ */ r(a, { children: l(g) })
135
140
  })
136
141
  }
137
142
  )
138
143
  },
139
144
  {
140
145
  id: "hoursWorked",
141
- label: r("dataViews.hoursWorkedTab"),
142
- content: /* @__PURE__ */ t(
146
+ label: t("dataViews.hoursWorkedTab"),
147
+ content: /* @__PURE__ */ r(
143
148
  m,
144
149
  {
145
- label: r("dataViews.hoursWorkedTable"),
150
+ label: t("dataViews.hoursWorkedTable"),
146
151
  columns: [
147
152
  {
148
- title: r("tableHeaders.employees"),
149
- render: (e) => /* @__PURE__ */ t(a, { children: A({
153
+ title: t("tableHeaders.employees"),
154
+ render: (e) => /* @__PURE__ */ r(a, { children: A({
150
155
  first_name: u.get(e.employeeUuid)?.firstName,
151
156
  last_name: u.get(e.employeeUuid)?.lastName
152
157
  }) })
153
158
  },
154
159
  {
155
- title: r("tableHeaders.compensationType"),
156
- render: (e) => /* @__PURE__ */ t(a, { children: u.get(e.employeeUuid)?.jobs?.reduce((n, i) => {
160
+ title: t("tableHeaders.compensationType"),
161
+ render: (e) => /* @__PURE__ */ r(a, { children: u.get(e.employeeUuid)?.jobs?.reduce((n, i) => {
157
162
  if (i.primary) {
158
163
  const y = i.compensations?.find(
159
164
  (v) => v.uuid === i.currentCompensationUuid
160
165
  )?.flsaStatus;
161
166
  switch (y) {
162
- case q.EXEMPT:
163
- return r("compensationTypeLabels.exempt");
164
- case q.NONEXEMPT:
165
- return r("compensationTypeLabels.nonexempt");
167
+ case J.EXEMPT:
168
+ return t("compensationTypeLabels.exempt");
169
+ case J.NONEXEMPT:
170
+ return t("compensationTypeLabels.nonexempt");
166
171
  default:
167
172
  return y ?? "";
168
173
  }
@@ -171,27 +176,27 @@ const _e = (p, k) => p?.startDate && p.endDate ? k.formatPayPeriod(p.startDate,
171
176
  }, "") })
172
177
  },
173
178
  {
174
- title: r("tableHeaders.regular"),
175
- render: (e) => /* @__PURE__ */ t(a, { children: H(e)[x.REGULAR_HOURS_NAME] || 0 })
179
+ title: t("tableHeaders.regular"),
180
+ render: (e) => /* @__PURE__ */ r(a, { children: P(e)[k.REGULAR_HOURS_NAME] || 0 })
176
181
  },
177
182
  {
178
- title: r("tableHeaders.overtime"),
179
- render: (e) => /* @__PURE__ */ t(a, { children: H(e)[x.OVERTIME_NAME] || 0 })
183
+ title: t("tableHeaders.overtime"),
184
+ render: (e) => /* @__PURE__ */ r(a, { children: P(e)[k.OVERTIME_NAME] || 0 })
180
185
  },
181
186
  {
182
- title: r("tableHeaders.doubleOT"),
183
- render: (e) => /* @__PURE__ */ t(a, { children: H(e)[x.DOUBLE_OVERTIME_NAME] || 0 })
187
+ title: t("tableHeaders.doubleOT"),
188
+ render: (e) => /* @__PURE__ */ r(a, { children: P(e)[k.DOUBLE_OVERTIME_NAME] || 0 })
184
189
  },
185
190
  {
186
- title: r("tableHeaders.timeOff"),
187
- render: (e) => /* @__PURE__ */ t(a, { children: G(e) })
191
+ title: t("tableHeaders.timeOff"),
192
+ render: (e) => /* @__PURE__ */ r(a, { children: $(e) })
188
193
  },
189
194
  {
190
- title: r("tableHeaders.totalHours"),
191
- render: (e) => /* @__PURE__ */ t(a, { children: Object.values(H(e)).reduce(
195
+ title: t("tableHeaders.totalHours"),
196
+ render: (e) => /* @__PURE__ */ r(a, { children: Object.values(P(e)).reduce(
192
197
  (n, i) => n + i,
193
198
  0
194
- ) + G(e) })
199
+ ) + $(e) })
195
200
  }
196
201
  ],
197
202
  data: o.employeeCompensations
@@ -200,43 +205,45 @@ const _e = (p, k) => p?.startDate && p.endDate ? k.formatPayPeriod(p.startDate,
200
205
  },
201
206
  {
202
207
  id: "employeeTakeHome",
203
- label: r("dataViews.employeeTakeHomeTab"),
204
- content: /* @__PURE__ */ t(
208
+ label: t("dataViews.employeeTakeHomeTab"),
209
+ content: /* @__PURE__ */ r(
205
210
  m,
206
211
  {
207
- label: r("dataViews.employeeTakeHomeTable"),
212
+ label: t("dataViews.employeeTakeHomeTable"),
208
213
  columns: [
209
214
  {
210
- title: r("tableHeaders.employees"),
211
- render: (e) => /* @__PURE__ */ t(a, { children: A({
215
+ title: t("tableHeaders.employees"),
216
+ render: (e) => /* @__PURE__ */ r(a, { children: A({
212
217
  first_name: u.get(e.employeeUuid)?.firstName,
213
218
  last_name: u.get(e.employeeUuid)?.lastName
214
219
  }) })
215
220
  },
216
221
  {
217
- title: r("tableHeaders.paymentType"),
218
- render: (e) => /* @__PURE__ */ t(a, { children: e.paymentMethod ?? "" })
222
+ title: t("tableHeaders.paymentType"),
223
+ render: (e) => /* @__PURE__ */ r(a, { children: e.paymentMethod ?? "" })
219
224
  },
220
225
  {
221
- title: r("tableHeaders.grossPay"),
222
- render: (e) => /* @__PURE__ */ t(a, { children: l(e.grossPay ?? 0) })
226
+ title: t("tableHeaders.grossPay"),
227
+ render: (e) => /* @__PURE__ */ r(a, { children: l(e.grossPay ?? 0) })
223
228
  },
224
229
  {
225
- title: r("tableHeaders.deductions"),
226
- render: (e) => /* @__PURE__ */ t(a, { children: l(
230
+ title: t("tableHeaders.deductions"),
231
+ render: (e) => /* @__PURE__ */ r(a, { children: l(
227
232
  e.deductions?.reduce(
228
233
  (n, i) => n + i.amount,
229
234
  0
230
235
  ) ?? 0
231
236
  ) })
232
237
  },
238
+ ...H ? [
239
+ {
240
+ title: t("tableHeaders.reimbursements"),
241
+ render: (e) => /* @__PURE__ */ r(a, { children: l(L(e)) })
242
+ }
243
+ ] : [],
233
244
  {
234
- title: r("tableHeaders.reimbursements"),
235
- render: (e) => /* @__PURE__ */ t(a, { children: l(L(e)) })
236
- },
237
- {
238
- title: r("tableHeaders.employeeTaxes"),
239
- render: (e) => /* @__PURE__ */ t(a, { children: l(
245
+ title: t("tableHeaders.employeeTaxes"),
246
+ render: (e) => /* @__PURE__ */ r(a, { children: l(
240
247
  e.taxes?.reduce(
241
248
  (n, i) => i.employer ? n : n + i.amount,
242
249
  0
@@ -244,8 +251,8 @@ const _e = (p, k) => p?.startDate && p.endDate ? k.formatPayPeriod(p.startDate,
244
251
  ) })
245
252
  },
246
253
  {
247
- title: r("tableHeaders.employeeBenefits"),
248
- render: (e) => /* @__PURE__ */ t(a, { children: l(
254
+ title: t("tableHeaders.employeeBenefits"),
255
+ render: (e) => /* @__PURE__ */ r(a, { children: l(
249
256
  e.benefits?.reduce(
250
257
  (n, i) => n + (i.employeeDeduction ?? 0),
251
258
  0
@@ -253,8 +260,8 @@ const _e = (p, k) => p?.startDate && p.endDate ? k.formatPayPeriod(p.startDate,
253
260
  ) })
254
261
  },
255
262
  {
256
- title: r("tableHeaders.payment"),
257
- render: (e) => /* @__PURE__ */ t(a, { children: l(e.netPay ?? 0) })
263
+ title: t("tableHeaders.payment"),
264
+ render: (e) => /* @__PURE__ */ r(a, { children: l(e.netPay ?? 0) })
258
265
  }
259
266
  ],
260
267
  data: o.employeeCompensations
@@ -263,71 +270,73 @@ const _e = (p, k) => p?.startDate && p.endDate ? k.formatPayPeriod(p.startDate,
263
270
  },
264
271
  {
265
272
  id: "taxes",
266
- label: r("dataViews.taxesTab"),
267
- content: /* @__PURE__ */ d(h, { flexDirection: "column", gap: 32, children: [
268
- /* @__PURE__ */ t(
273
+ label: t("dataViews.taxesTab"),
274
+ content: /* @__PURE__ */ d(f, { flexDirection: "column", gap: 32, children: [
275
+ /* @__PURE__ */ r(
269
276
  m,
270
277
  {
271
- label: r("dataViews.taxesTable"),
278
+ label: t("dataViews.taxesTable"),
272
279
  columns: [
273
280
  {
274
281
  key: "taxDescription",
275
- title: r("tableHeaders.taxDescription"),
276
- render: (e) => /* @__PURE__ */ t(a, { children: e })
282
+ title: t("tableHeaders.taxDescription"),
283
+ render: (e) => /* @__PURE__ */ r(a, { children: e })
277
284
  },
278
285
  {
279
286
  key: "byYourEmployees",
280
- title: r("tableHeaders.byYourEmployees"),
281
- render: (e) => /* @__PURE__ */ t(a, { children: l(C[e]?.employee ?? 0) })
287
+ title: t("tableHeaders.byYourEmployees"),
288
+ render: (e) => /* @__PURE__ */ r(a, { children: l(N[e]?.employee ?? 0) })
282
289
  },
283
290
  {
284
291
  key: "byYourCompany",
285
- title: r("tableHeaders.byYourCompany"),
286
- render: (e) => /* @__PURE__ */ t(a, { children: l(C[e]?.employer ?? 0) })
292
+ title: t("tableHeaders.byYourCompany"),
293
+ render: (e) => /* @__PURE__ */ r(a, { children: l(N[e]?.employer ?? 0) })
287
294
  }
288
295
  ],
289
296
  footer: () => ({
290
- taxDescription: /* @__PURE__ */ t(a, { children: r("totalsLabel") }),
291
- byYourEmployees: /* @__PURE__ */ t(a, { children: l(Number(o.totals?.employeeTaxes ?? 0)) }),
292
- byYourCompany: /* @__PURE__ */ t(a, { children: l(Number(o.totals?.employerTaxes ?? 0)) })
297
+ taxDescription: /* @__PURE__ */ r(a, { children: t("totalsLabel") }),
298
+ byYourEmployees: /* @__PURE__ */ r(a, { children: l(Number(o.totals?.employeeTaxes ?? 0)) }),
299
+ byYourCompany: /* @__PURE__ */ r(a, { children: l(Number(o.totals?.employerTaxes ?? 0)) })
293
300
  }),
294
- data: Object.keys(C)
301
+ data: Object.keys(N)
295
302
  }
296
303
  ),
297
- /* @__PURE__ */ t(
304
+ /* @__PURE__ */ r(
298
305
  m,
299
306
  {
300
- label: r("dataViews.debitedTable"),
307
+ label: t("dataViews.debitedTable"),
301
308
  columns: [
302
309
  {
303
- title: r("tableHeaders.debitedByGusto"),
304
- render: ({ label: e }) => /* @__PURE__ */ t(a, { children: e })
310
+ title: t("tableHeaders.debitedByGusto"),
311
+ render: ({ label: e }) => /* @__PURE__ */ r(a, { children: e })
305
312
  },
306
313
  {
307
- title: r("tableHeaders.taxesTotal"),
308
- render: ({ value: e }) => /* @__PURE__ */ t(a, { children: l(Number(e)) })
314
+ title: t("tableHeaders.taxesTotal"),
315
+ render: ({ value: e }) => /* @__PURE__ */ r(a, { children: l(Number(e)) })
309
316
  }
310
317
  ],
311
318
  data: [
312
- { label: r("directDepositLabel"), value: o.totals?.netPayDebit || "0" },
313
- {
314
- label: r("reimbursementLabel"),
315
- value: o.totals?.reimbursementDebit || "0"
316
- },
319
+ { label: t("directDepositLabel"), value: o.totals?.netPayDebit || "0" },
320
+ ...H ? [
321
+ {
322
+ label: t("reimbursementLabel"),
323
+ value: o.totals?.reimbursementDebit || "0"
324
+ }
325
+ ] : [],
317
326
  {
318
- label: r("garnishmentsLabel"),
327
+ label: t("garnishmentsLabel"),
319
328
  value: o.totals?.childSupportDebit || "0"
320
329
  },
321
- { label: r("taxesLabel"), value: o.totals?.taxDebit || "0" }
330
+ { label: t("taxesLabel"), value: o.totals?.taxDebit || "0" }
322
331
  ]
323
332
  }
324
333
  )
325
334
  ] })
326
335
  }
327
336
  ];
328
- return /* @__PURE__ */ t("div", { ref: B, className: fe.container, children: /* @__PURE__ */ d(h, { flexDirection: "column", alignItems: "stretch", children: [
337
+ return /* @__PURE__ */ r("div", { ref: I, className: he.container, children: /* @__PURE__ */ d(f, { flexDirection: "column", alignItems: "stretch", children: [
329
338
  /* @__PURE__ */ d(
330
- h,
339
+ f,
331
340
  {
332
341
  flexDirection: c ? "row" : "column",
333
342
  justifyContent: c ? "space-between" : "normal",
@@ -335,51 +344,51 @@ const _e = (p, k) => p?.startDate && p.endDate ? k.formatPayPeriod(p.startDate,
335
344
  gap: c ? 0 : 16,
336
345
  children: [
337
346
  /* @__PURE__ */ d(z, { flexGrow: 1, children: [
338
- /* @__PURE__ */ t(_, { as: "h1", children: r(w ? "summaryTitle" : "overviewTitle") }),
339
- /* @__PURE__ */ t(a, { children: /* @__PURE__ */ t(
340
- ye,
347
+ /* @__PURE__ */ r(V, { as: "h1", children: t(w ? "summaryTitle" : "overviewTitle") }),
348
+ /* @__PURE__ */ r(a, { children: /* @__PURE__ */ r(
349
+ be,
341
350
  {
342
351
  i18nKey: "pageSubtitle",
343
- t: r,
344
- components: { dateWrapper: /* @__PURE__ */ t(a, { weight: "bold", as: "span" }) },
345
- values: _e(o.payPeriod, s)
352
+ t,
353
+ components: { dateWrapper: /* @__PURE__ */ r(a, { weight: "bold", as: "span" }) },
354
+ values: we(o.payPeriod, s)
346
355
  }
347
356
  ) })
348
357
  ] }),
349
- /* @__PURE__ */ t(z, { flexGrow: c ? 1 : 0, children: /* @__PURE__ */ t(
350
- h,
358
+ /* @__PURE__ */ r(z, { flexGrow: c ? 1 : 0, children: /* @__PURE__ */ r(
359
+ f,
351
360
  {
352
361
  flexDirection: c ? "row" : "column",
353
362
  justifyContent: c ? "flex-end" : "normal",
354
363
  alignItems: c ? "flex-start" : "stretch",
355
364
  gap: 12,
356
- children: w ? /* @__PURE__ */ d(P, { children: [
357
- /* @__PURE__ */ t(g, { onClick: Z, variant: "secondary", isDisabled: T, children: r("payrollReceiptCta") }),
358
- /* @__PURE__ */ t(
359
- g,
365
+ children: w ? /* @__PURE__ */ d(x, { children: [
366
+ /* @__PURE__ */ r(D, { onClick: ee, variant: "secondary", isDisabled: T, children: t("payrollReceiptCta") }),
367
+ /* @__PURE__ */ r(
368
+ D,
360
369
  {
361
370
  onClick: () => {
362
- V(!0);
371
+ U(!0);
363
372
  },
364
373
  variant: "error",
365
374
  isDisabled: T,
366
- children: r("cancelCta")
375
+ children: t("cancelCta")
367
376
  }
368
377
  )
369
- ] }) : /* @__PURE__ */ d(P, { children: [
370
- /* @__PURE__ */ t(g, { onClick: p, variant: "secondary", isDisabled: T, children: r("editCta") }),
371
- /* @__PURE__ */ t(
372
- g,
378
+ ] }) : /* @__PURE__ */ d(x, { children: [
379
+ /* @__PURE__ */ r(D, { onClick: p, variant: "secondary", isDisabled: T, children: t("editCta") }),
380
+ /* @__PURE__ */ r(
381
+ D,
373
382
  {
374
- onClick: k,
375
- isDisabled: T || f.length > 0 && (f.some(
376
- (e) => !J.includes(
383
+ onClick: C,
384
+ isDisabled: T || h.length > 0 && (h.some(
385
+ (e) => !Q.includes(
377
386
  e.blockerType || ""
378
387
  )
379
- ) || f.some(
380
- (e) => !N[e.blockerType || ""]
388
+ ) || h.some(
389
+ (e) => !_[e.blockerType || ""]
381
390
  )),
382
- children: r("submitCta")
391
+ children: t("submitCta")
383
392
  }
384
393
  )
385
394
  ] })
@@ -388,14 +397,10 @@ const _e = (p, k) => p?.startDate && p.endDate ? k.formatPayPeriod(p.startDate,
388
397
  ]
389
398
  }
390
399
  ),
391
- T ? /* @__PURE__ */ t(de, { children: /* @__PURE__ */ d(h, { flexDirection: "column", alignItems: "center", gap: 4, children: [
392
- /* @__PURE__ */ t(ie, { size: "lg" }),
393
- /* @__PURE__ */ t(_, { as: "h4", children: r("loadingTitle") }),
394
- /* @__PURE__ */ t(a, { children: r("loadingDescription") })
395
- ] }) }) : /* @__PURE__ */ d(P, { children: [
396
- re,
397
- M.length > 0 && /* @__PURE__ */ t(h, { flexDirection: "column", gap: 16, children: M.map((e, n) => /* @__PURE__ */ t(
398
- I,
400
+ T ? /* @__PURE__ */ r(ke, { title: t("loadingTitle"), description: t("loadingDescription") }) : /* @__PURE__ */ d(x, { children: [
401
+ ae,
402
+ M.length > 0 && /* @__PURE__ */ r(f, { flexDirection: "column", gap: 16, children: M.map((e, n) => /* @__PURE__ */ r(
403
+ Y,
399
404
  {
400
405
  label: e.title,
401
406
  status: e.type,
@@ -404,148 +409,148 @@ const _e = (p, k) => p?.startDate && p.endDate ? k.formatPayPeriod(p.startDate,
404
409
  },
405
410
  `${e.type}-${e.title}`
406
411
  )) }),
407
- f.length > 0 && W && f.map((e) => {
412
+ h.length > 0 && W && h.map((e) => {
408
413
  const n = e.blockerType || "";
409
- return J.includes(n) ? /* @__PURE__ */ t(
410
- we,
414
+ return Q.includes(n) ? /* @__PURE__ */ r(
415
+ Ce,
411
416
  {
412
417
  blocker: e,
413
- selectedValue: N[n],
418
+ selectedValue: _[n],
414
419
  onUnblockOptionChange: W
415
420
  },
416
421
  n
417
- ) : /* @__PURE__ */ t(Ne, { blocker: e }, n);
422
+ ) : /* @__PURE__ */ r(Ne, { blocker: e }, n);
418
423
  }),
419
- /* @__PURE__ */ t(_, { as: "h3", children: r(F ? "payrollSummaryTitleWire" : j ? "payrollSummaryTitleFourDay" : "payrollSummaryTitle") }),
420
- F ? /* @__PURE__ */ t(
424
+ /* @__PURE__ */ r(V, { as: "h3", children: t(j ? "payrollSummaryTitleWire" : G ? "payrollSummaryTitleFourDay" : "payrollSummaryTitle") }),
425
+ j ? /* @__PURE__ */ r(
421
426
  m,
422
427
  {
423
- label: r("payrollSummaryLabel"),
428
+ label: t("payrollSummaryLabel"),
424
429
  columns: [
425
430
  {
426
- title: r("tableHeaders.totalPayroll"),
427
- render: () => /* @__PURE__ */ t(a, { children: l(D) })
431
+ title: t("tableHeaders.totalPayroll"),
432
+ render: () => /* @__PURE__ */ r(a, { children: l(g) })
428
433
  },
429
434
  {
430
- title: r("tableHeaders.wireAmount"),
435
+ title: t("tableHeaders.wireAmount"),
431
436
  render: () => {
432
437
  const n = b?.metadata?.wire_in_amount;
433
- return /* @__PURE__ */ t(a, { children: n ? l(Number(n)) : "-" });
438
+ return /* @__PURE__ */ r(a, { children: n ? l(Number(n)) : "-" });
434
439
  }
435
440
  },
436
441
  {
437
- title: r("tableHeaders.wireTransferDeadline"),
442
+ title: t("tableHeaders.wireTransferDeadline"),
438
443
  render: () => {
439
444
  const n = b?.metadata?.wire_in_deadline, i = s.formatWithTime(n), y = s.formatShortWithYear(n);
440
- return /* @__PURE__ */ t(a, { children: n ? `${i.time} on ${y}` : "-" });
445
+ return /* @__PURE__ */ r(a, { children: n ? `${i.time} on ${y}` : "-" });
441
446
  }
442
447
  },
443
448
  {
444
- title: r("tableHeaders.employeePayDate"),
445
- render: () => /* @__PURE__ */ t(a, { children: b?.checkDate ? s.formatShortWithYear(b.checkDate) : "-" })
449
+ title: t("tableHeaders.employeePayDate"),
450
+ render: () => /* @__PURE__ */ r(a, { children: b?.checkDate ? s.formatShortWithYear(b.checkDate) : "-" })
446
451
  }
447
452
  ],
448
453
  data: [{}]
449
454
  }
450
- ) : j ? /* @__PURE__ */ t(
455
+ ) : G ? /* @__PURE__ */ r(
451
456
  m,
452
457
  {
453
- label: r("payrollSummaryLabel"),
458
+ label: t("payrollSummaryLabel"),
454
459
  columns: [
455
460
  {
456
- title: r("tableHeaders.totalPayroll"),
457
- render: () => /* @__PURE__ */ t(a, { children: l(D) })
461
+ title: t("tableHeaders.totalPayroll"),
462
+ render: () => /* @__PURE__ */ r(a, { children: l(g) })
458
463
  },
459
464
  {
460
- title: r("tableHeaders.debitAmount"),
465
+ title: t("tableHeaders.debitAmount"),
461
466
  render: () => {
462
467
  const e = o.totals?.companyDebit;
463
- return /* @__PURE__ */ t(a, { children: l(Number(e ?? 0)) });
468
+ return /* @__PURE__ */ r(a, { children: l(Number(e ?? 0)) });
464
469
  }
465
470
  },
466
471
  {
467
- title: r("tableHeaders.debitAccount"),
468
- render: () => /* @__PURE__ */ t(a, { children: O?.hiddenAccountNumber ?? "" })
472
+ title: t("tableHeaders.debitAccount"),
473
+ render: () => /* @__PURE__ */ r(a, { children: O?.hiddenAccountNumber ?? "" })
469
474
  },
470
475
  {
471
- title: r("tableHeaders.debitDate"),
476
+ title: t("tableHeaders.debitDate"),
472
477
  render: () => {
473
478
  const n = b?.metadata?.debit_date;
474
- return /* @__PURE__ */ t(a, { children: s.formatShortWithYear(n) });
479
+ return /* @__PURE__ */ r(a, { children: s.formatShortWithYear(n) });
475
480
  }
476
481
  },
477
482
  {
478
- title: r("tableHeaders.employeePayDate"),
479
- render: () => /* @__PURE__ */ t(a, { children: b?.checkDate ? s.formatShortWithYear(b.checkDate) : "-" })
483
+ title: t("tableHeaders.employeePayDate"),
484
+ render: () => /* @__PURE__ */ r(a, { children: b?.checkDate ? s.formatShortWithYear(b.checkDate) : "-" })
480
485
  }
481
486
  ],
482
487
  data: [{}]
483
488
  }
484
- ) : /* @__PURE__ */ t(
489
+ ) : /* @__PURE__ */ r(
485
490
  m,
486
491
  {
487
- label: r("payrollSummaryLabel"),
492
+ label: t("payrollSummaryLabel"),
488
493
  columns: [
489
494
  {
490
- title: r("tableHeaders.totalPayroll"),
491
- render: () => /* @__PURE__ */ t(a, { children: l(D) })
495
+ title: t("tableHeaders.totalPayroll"),
496
+ render: () => /* @__PURE__ */ r(a, { children: l(g) })
492
497
  },
493
498
  {
494
- title: r("tableHeaders.debitAmount"),
495
- render: () => /* @__PURE__ */ t(a, { children: l(Number(o.totals?.companyDebit ?? 0)) })
499
+ title: t("tableHeaders.debitAmount"),
500
+ render: () => /* @__PURE__ */ r(a, { children: l(Number(o.totals?.companyDebit ?? 0)) })
496
501
  },
497
502
  {
498
- title: r("tableHeaders.debitAccount"),
499
- render: () => /* @__PURE__ */ t(a, { children: O?.hiddenAccountNumber ?? "" })
503
+ title: t("tableHeaders.debitAccount"),
504
+ render: () => /* @__PURE__ */ r(a, { children: O?.hiddenAccountNumber ?? "" })
500
505
  },
501
506
  {
502
- title: r("tableHeaders.debitDate"),
503
- render: () => /* @__PURE__ */ t(a, { children: s.formatShortWithYear(ce) })
507
+ title: t("tableHeaders.debitDate"),
508
+ render: () => /* @__PURE__ */ r(a, { children: s.formatShortWithYear(de) })
504
509
  },
505
510
  {
506
- title: r("tableHeaders.employeePayDate"),
507
- render: () => /* @__PURE__ */ t(a, { children: s.formatShortWithYear(o.checkDate) })
511
+ title: t("tableHeaders.employeePayDate"),
512
+ render: () => /* @__PURE__ */ r(a, { children: s.formatShortWithYear(o.checkDate) })
508
513
  }
509
514
  ],
510
515
  data: [{}]
511
516
  }
512
517
  ),
513
- $ > 0 && /* @__PURE__ */ t(
514
- I,
518
+ K > 0 && /* @__PURE__ */ r(
519
+ Y,
515
520
  {
516
521
  status: "warning",
517
- label: r("alerts.checkPaymentWarning", { count: $ }),
518
- children: /* @__PURE__ */ t(a, { children: r("alerts.checkPaymentWarningDescription") })
522
+ label: t("alerts.checkPaymentWarning", { count: K }),
523
+ children: /* @__PURE__ */ r(a, { children: t("alerts.checkPaymentWarningDescription") })
519
524
  }
520
525
  ),
521
- /* @__PURE__ */ t(
522
- le,
526
+ /* @__PURE__ */ r(
527
+ ie,
523
528
  {
524
529
  onSelectionChange: se,
525
530
  selectedId: oe,
526
- "aria-label": r("dataViews.label"),
527
- tabs: ue
531
+ "aria-label": t("dataViews.label"),
532
+ tabs: me
528
533
  }
529
534
  ),
530
- Y && /* @__PURE__ */ t(
531
- ne,
535
+ B && /* @__PURE__ */ r(
536
+ le,
532
537
  {
533
- isOpen: Y,
538
+ isOpen: B,
534
539
  onClose: () => {
535
- V(!1);
540
+ U(!1);
536
541
  },
537
- onPrimaryActionClick: Q,
542
+ onPrimaryActionClick: Z,
538
543
  shouldCloseOnBackdropClick: !0,
539
- primaryActionLabel: r("confirmCancelCta"),
544
+ primaryActionLabel: t("confirmCancelCta"),
540
545
  isDestructive: !0,
541
- closeActionLabel: r("declineCancelCta"),
542
- title: r("cancelDialogTitle", {
546
+ closeActionLabel: t("declineCancelCta"),
547
+ title: t("cancelDialogTitle", {
543
548
  startDate: s.formatLong(o.payPeriod?.startDate),
544
549
  endDate: s.formatLongWithYear(o.payPeriod?.endDate)
545
550
  }),
546
- children: /* @__PURE__ */ d(h, { gap: 14, flexDirection: "column", children: [
547
- /* @__PURE__ */ t(a, { children: r("cancelDialogDescription") }),
548
- /* @__PURE__ */ t(a, { children: r("cancelDialogDescriptionDeadline", {
551
+ children: /* @__PURE__ */ d(f, { gap: 14, flexDirection: "column", children: [
552
+ /* @__PURE__ */ r(a, { children: t("cancelDialogDescription") }),
553
+ /* @__PURE__ */ r(a, { children: t("cancelDialogDescriptionDeadline", {
549
554
  deadline: s.formatWithTime(o.payrollDeadline).time
550
555
  }) })
551
556
  ] })
@@ -555,6 +560,6 @@ const _e = (p, k) => p?.startDate && p.endDate ? k.formatPayPeriod(p.startDate,
555
560
  ] }) });
556
561
  };
557
562
  export {
558
- ze as PayrollOverviewPresentation
563
+ Xe as PayrollOverviewPresentation
559
564
  };
560
565
  //# sourceMappingURL=PayrollOverviewPresentation.js.map