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