@gusto/embedded-react-sdk 0.55.1 → 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.
- package/CHANGELOG.md +18 -0
- package/dist/components/Common/UI/Breadcrumbs/Breadcrumbs.js +1 -1
- package/dist/components/Common/UI/FileInput/FileInput.js +1 -1
- package/dist/components/Common/UI/ProgressBar/ProgressBar.js +4 -4
- package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js +4 -3
- package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js.map +1 -1
- package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js +4 -3
- package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js.map +1 -1
- package/dist/components/Company/AssignSignatory/useAssignSignatory.js +6 -5
- package/dist/components/Company/AssignSignatory/useAssignSignatory.js.map +1 -1
- package/dist/components/Company/BankAccount/BankAccountForm/context.js +4 -3
- package/dist/components/Company/BankAccount/BankAccountForm/context.js.map +1 -1
- package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js +4 -3
- package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
- package/dist/components/Company/FederalTaxes/useFederalTaxes.js +6 -5
- package/dist/components/Company/FederalTaxes/useFederalTaxes.js.map +1 -1
- package/dist/components/Company/Industry/Context.js +7 -6
- package/dist/components/Company/Industry/Context.js.map +1 -1
- package/dist/components/Company/Locations/LocationForm/useLocationForm.js +4 -3
- package/dist/components/Company/Locations/LocationForm/useLocationForm.js.map +1 -1
- package/dist/components/Company/Locations/LocationsList/useLocationsList.js +4 -3
- package/dist/components/Company/Locations/LocationsList/useLocationsList.js.map +1 -1
- package/dist/components/Company/OnboardingOverview/context.js +4 -3
- package/dist/components/Company/OnboardingOverview/context.js.map +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesForm/context.js +4 -3
- package/dist/components/Company/StateTaxes/StateTaxesForm/context.js.map +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesList/context.js +4 -3
- package/dist/components/Company/StateTaxes/StateTaxesList/context.js.map +1 -1
- package/dist/components/Company/StateTaxes/TaxRateManagement/context.js +4 -3
- package/dist/components/Company/StateTaxes/TaxRateManagement/context.js.map +1 -1
- package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/useDocumentList.js +4 -3
- package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
- package/dist/components/Employee/FederalTaxes/shared/FederalTaxesView.js +1 -1
- package/dist/components/Employee/PaymentMethod/management/PaymentMethodBankForm.js +4 -4
- package/dist/components/Employee/PaymentMethod/onboarding/BankForm.js +4 -4
- package/dist/components/Flow/Flow.js +1 -1
- package/dist/components/Payroll/GrossUpModal/GrossUpModal.js +3 -2
- package/dist/components/Payroll/GrossUpModal/GrossUpModal.js.map +1 -1
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.d.ts +7 -0
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js +191 -153
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js.map +1 -1
- package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.d.ts +1 -0
- package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.js +87 -81
- package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.js.map +1 -1
- package/dist/components/Payroll/PayrollExecutionFlow/PayrollExecutionFlow.d.ts +1 -0
- package/dist/components/Payroll/PayrollExecutionFlow/PayrollExecutionFlow.js.map +1 -1
- package/dist/components/Payroll/PayrollExecutionFlow/payrollExecutionMachine.js +73 -48
- package/dist/components/Payroll/PayrollExecutionFlow/payrollExecutionMachine.js.map +1 -1
- package/dist/components/Payroll/PayrollFlow/PayrollFlow.d.ts +1 -1
- package/dist/components/Payroll/PayrollFlow/PayrollFlow.js +22 -20
- package/dist/components/Payroll/PayrollFlow/PayrollFlow.js.map +1 -1
- package/dist/components/Payroll/PayrollFlow/PayrollFlowComponents.d.ts +3 -0
- package/dist/components/Payroll/PayrollFlow/PayrollFlowComponents.js +22 -20
- package/dist/components/Payroll/PayrollFlow/PayrollFlowComponents.js.map +1 -1
- package/dist/components/Payroll/PayrollLanding/PayrollLanding.d.ts +2 -0
- package/dist/components/Payroll/PayrollLanding/PayrollLanding.js +34 -26
- package/dist/components/Payroll/PayrollLanding/PayrollLanding.js.map +1 -1
- package/dist/components/Payroll/PayrollLanding/PayrollLandingFlowComponents.d.ts +4 -0
- package/dist/components/Payroll/PayrollLanding/PayrollLandingFlowComponents.js +51 -43
- package/dist/components/Payroll/PayrollLanding/PayrollLandingFlowComponents.js.map +1 -1
- package/dist/components/Payroll/PayrollList/PayrollList.d.ts +2 -0
- package/dist/components/Payroll/PayrollList/PayrollList.js +48 -47
- package/dist/components/Payroll/PayrollList/PayrollList.js.map +1 -1
- package/dist/components/Payroll/PayrollList/PayrollListPresentation.d.ts +2 -1
- package/dist/components/Payroll/PayrollList/PayrollListPresentation.js +44 -43
- package/dist/components/Payroll/PayrollList/PayrollListPresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollOverview/PayrollOverview.d.ts +7 -0
- package/dist/components/Payroll/PayrollOverview/PayrollOverview.js +115 -112
- package/dist/components/Payroll/PayrollOverview/PayrollOverview.js.map +1 -1
- package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.d.ts +2 -1
- package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js +94 -103
- package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollReceipts/PayrollReceipts.js +22 -16
- package/dist/components/Payroll/PayrollReceipts/PayrollReceipts.js.map +1 -1
- package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js +58 -49
- package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js.map +1 -1
- package/dist/components/Payroll/PrintChecks/PrintChecks.d.ts +21 -0
- package/dist/components/Payroll/PrintChecks/PrintChecks.js +68 -0
- package/dist/components/Payroll/PrintChecks/PrintChecks.js.map +1 -0
- package/dist/components/Payroll/PrintChecks/PrintChecksBanner/PrintChecksBanner.d.ts +9 -0
- package/dist/components/Payroll/PrintChecks/PrintChecksBanner/PrintChecksBanner.js +34 -0
- package/dist/components/Payroll/PrintChecks/PrintChecksBanner/PrintChecksBanner.js.map +1 -0
- package/dist/components/Payroll/PrintChecks/PrintChecksBanner/index.d.ts +1 -0
- package/dist/components/Payroll/PrintChecks/PrintChecksComponents.d.ts +48 -0
- package/dist/components/Payroll/PrintChecks/PrintChecksComponents.js +26 -0
- package/dist/components/Payroll/PrintChecks/PrintChecksComponents.js.map +1 -0
- package/dist/components/Payroll/PrintChecks/PrintChecksFailure/PrintChecksFailure.d.ts +14 -0
- package/dist/components/Payroll/PrintChecks/PrintChecksFailure/PrintChecksFailure.js +47 -0
- package/dist/components/Payroll/PrintChecks/PrintChecksFailure/PrintChecksFailure.js.map +1 -0
- package/dist/components/Payroll/PrintChecks/PrintChecksFailure/index.d.ts +1 -0
- package/dist/components/Payroll/PrintChecks/PrintChecksForm/PrintChecksForm.d.ts +16 -0
- package/dist/components/Payroll/PrintChecks/PrintChecksForm/PrintChecksForm.js +144 -0
- package/dist/components/Payroll/PrintChecks/PrintChecksForm/PrintChecksForm.js.map +1 -0
- package/dist/components/Payroll/PrintChecks/PrintChecksForm/index.d.ts +1 -0
- package/dist/components/Payroll/PrintChecks/PrintChecksSummary/PrintChecksSummary.d.ts +14 -0
- package/dist/components/Payroll/PrintChecks/PrintChecksSummary/PrintChecksSummary.js +39 -0
- package/dist/components/Payroll/PrintChecks/PrintChecksSummary/PrintChecksSummary.js.map +1 -0
- package/dist/components/Payroll/PrintChecks/PrintChecksSummary/index.d.ts +1 -0
- package/dist/components/Payroll/PrintChecks/index.d.ts +2 -0
- package/dist/components/Payroll/PrintChecks/printChecksStateMachine.d.ts +33 -0
- package/dist/components/Payroll/PrintChecks/printChecksStateMachine.js +93 -0
- package/dist/components/Payroll/PrintChecks/printChecksStateMachine.js.map +1 -0
- package/dist/components/Payroll/PrintChecks/types.d.ts +14 -0
- package/dist/components/Payroll/index.d.ts +2 -0
- package/dist/components/Payroll/index.js +26 -24
- package/dist/components/Payroll/index.js.map +1 -1
- package/dist/components/Payroll/usePreparedPayrollData.js +9 -8
- package/dist/components/Payroll/usePreparedPayrollData.js.map +1 -1
- package/dist/i18n/I18n.js +4 -0
- package/dist/i18n/I18n.js.map +1 -1
- package/dist/i18n/en/Payroll.PayrollConfiguration.json.js +9 -9
- package/dist/i18n/en/Payroll.PayrollOverview.json.js +38 -38
- package/dist/i18n/en/Payroll.PayrollReceipts.json.js +2 -2
- package/dist/i18n/en/Payroll.PrintChecksBanner.json.js +14 -0
- package/dist/i18n/en/Payroll.PrintChecksBanner.json.js.map +1 -0
- package/dist/i18n/en/Payroll.PrintChecksFailure.json.js +12 -0
- package/dist/i18n/en/Payroll.PrintChecksFailure.json.js.map +1 -0
- package/dist/i18n/en/Payroll.PrintChecksForm.json.js +28 -0
- package/dist/i18n/en/Payroll.PrintChecksForm.json.js.map +1 -0
- package/dist/i18n/en/Payroll.PrintChecksSummary.json.js +14 -0
- package/dist/i18n/en/Payroll.PrintChecksSummary.json.js.map +1 -0
- package/dist/i18n/types.d.ts +65 -7
- package/dist/models/external.d.ts +3 -0
- package/dist/partner-hook-utils/form/buildFormSchema.js +60 -54
- package/dist/partner-hook-utils/form/buildFormSchema.js.map +1 -1
- package/dist/shared/constants.d.ts +28 -0
- package/dist/shared/constants.js +61 -50
- package/dist/shared/constants.js.map +1 -1
- package/dist/style.css +1 -1
- package/docs/guides/endpoint-inventory.json +26 -0
- package/package.json +2 -2
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { jsx as a, jsxs as o, Fragment as
|
|
2
|
-
import { useTranslation as
|
|
3
|
-
import { useState as
|
|
4
|
-
import { isDismissalPayroll as
|
|
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
|
|
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
|
|
10
|
-
import { useComponentContext as
|
|
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
|
|
15
|
-
import {
|
|
16
|
-
import
|
|
17
|
-
import { PayrollLoading as
|
|
18
|
-
import { FastAchSubmissionBlockerBanner as
|
|
19
|
-
import { GenericBlocker as
|
|
20
|
-
import { DataView as
|
|
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:
|
|
25
|
-
onPayrollReceipt:
|
|
26
|
-
onPaystubDownload:
|
|
24
|
+
onCancel: se,
|
|
25
|
+
onPayrollReceipt: de,
|
|
26
|
+
onPaystubDownload: W,
|
|
27
27
|
payrollData: n,
|
|
28
|
-
bankAccount:
|
|
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:
|
|
37
|
-
wireInConfirmationRequest:
|
|
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:
|
|
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 } =
|
|
45
|
-
|
|
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:
|
|
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(
|
|
63
|
+
/* @__PURE__ */ a(F, { status: "info", label: t("cancelledEmptyState") })
|
|
63
64
|
] }) });
|
|
64
|
-
const
|
|
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) +
|
|
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
|
-
),
|
|
73
|
-
(e) => e.unblockType ===
|
|
74
|
-
), J =
|
|
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
|
|
79
|
-
return 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 =
|
|
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
|
-
|
|
88
|
+
B({
|
|
91
89
|
first_name: e.firstName,
|
|
92
90
|
last_name: e.lastName
|
|
93
91
|
}),
|
|
94
|
-
e.excluded && /* @__PURE__ */ a(
|
|
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(
|
|
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 &&
|
|
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 &&
|
|
132
|
+
e.employeeUuid && W(e.employeeUuid);
|
|
135
133
|
},
|
|
136
|
-
children: /* @__PURE__ */ a(
|
|
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
|
-
|
|
143
|
+
m,
|
|
146
144
|
{
|
|
147
145
|
label: t("dataViews.companyPaysTable"),
|
|
148
|
-
columns:
|
|
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 &&
|
|
155
|
+
e.employeeUuid && W(e.employeeUuid);
|
|
158
156
|
},
|
|
159
|
-
children: /* @__PURE__ */ a(
|
|
157
|
+
children: /* @__PURE__ */ a(ie, {})
|
|
160
158
|
}
|
|
161
159
|
) : void 0,
|
|
162
160
|
footer: () => ({
|
|
163
|
-
employeeName: /* @__PURE__ */ o(
|
|
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(
|
|
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
|
-
|
|
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
|
-
|
|
187
|
+
B({
|
|
190
188
|
first_name: e.firstName,
|
|
191
189
|
last_name: e.lastName
|
|
192
190
|
}),
|
|
193
|
-
e.excluded && /* @__PURE__ */ a(
|
|
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) =>
|
|
212
|
+
render: (e) => P(e)[V.REGULAR_HOURS_NAME] || 0
|
|
215
213
|
},
|
|
216
214
|
{
|
|
217
215
|
title: t("tableHeaders.overtime"),
|
|
218
|
-
render: (e) =>
|
|
216
|
+
render: (e) => P(e)[V.OVERTIME_NAME] || 0
|
|
219
217
|
},
|
|
220
218
|
{
|
|
221
219
|
title: t("tableHeaders.doubleOT"),
|
|
222
|
-
render: (e) =>
|
|
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(
|
|
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
|
-
|
|
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
|
-
|
|
250
|
+
B({
|
|
253
251
|
first_name: e.firstName,
|
|
254
252
|
last_name: e.lastName
|
|
255
253
|
}),
|
|
256
|
-
e.excluded && /* @__PURE__ */ a(
|
|
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(
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
],
|
|
376
|
-
/* @__PURE__ */ a(T, { onClick:
|
|
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(
|
|
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) => !
|
|
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:
|
|
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:
|
|
407
|
+
D && /* @__PURE__ */ a(s, { gap: 8, justifyContent: "flex-end", children: te })
|
|
410
408
|
] }),
|
|
411
|
-
!D && /* @__PURE__ */ a(we, { gridTemplateColumns: "1fr", gap: 8, children:
|
|
412
|
-
f === p.Cancelling ? /* @__PURE__ */ a(
|
|
413
|
-
|
|
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
|
-
|
|
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 &&
|
|
422
|
+
b.length > 0 && M && b.map((e) => {
|
|
425
423
|
const r = e.blockerType || "";
|
|
426
|
-
return
|
|
427
|
-
|
|
424
|
+
return ne.includes(r) ? /* @__PURE__ */ a(
|
|
425
|
+
Ae,
|
|
428
426
|
{
|
|
429
427
|
blocker: e,
|
|
430
428
|
selectedValue: w[r],
|
|
431
|
-
onUnblockOptionChange:
|
|
429
|
+
onUnblockOptionChange: M,
|
|
432
430
|
paymentSpeed: be
|
|
433
431
|
},
|
|
434
432
|
r
|
|
435
|
-
) : /* @__PURE__ */ a(
|
|
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
|
-
|
|
437
|
+
m,
|
|
440
438
|
{
|
|
441
439
|
label: t("payrollSummaryLabel"),
|
|
442
440
|
columns: [
|
|
443
441
|
{
|
|
444
442
|
title: t("tableHeaders.totalPayroll"),
|
|
445
|
-
render: () => l(
|
|
443
|
+
render: () => l(x)
|
|
446
444
|
},
|
|
447
445
|
{
|
|
448
446
|
title: t("tableHeaders.wireAmount"),
|
|
449
447
|
render: () => {
|
|
450
|
-
const r =
|
|
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 =
|
|
458
|
-
return r ? `${i.time} on ${
|
|
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: () =>
|
|
461
|
+
render: () => c?.checkDate ? d.formatShortWithYear(c.checkDate) : "-"
|
|
464
462
|
}
|
|
465
463
|
],
|
|
466
464
|
data: [{}]
|
|
467
465
|
}
|
|
468
466
|
) : Q ? /* @__PURE__ */ a(
|
|
469
|
-
|
|
467
|
+
m,
|
|
470
468
|
{
|
|
471
469
|
label: t("payrollSummaryLabel"),
|
|
472
470
|
columns: [
|
|
473
471
|
{
|
|
474
472
|
title: t("tableHeaders.totalPayroll"),
|
|
475
|
-
render: () => l(
|
|
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: () =>
|
|
484
|
+
render: () => Y?.hiddenAccountNumber ?? ""
|
|
487
485
|
},
|
|
488
486
|
{
|
|
489
487
|
title: t("tableHeaders.debitDate"),
|
|
490
488
|
render: () => {
|
|
491
|
-
const r =
|
|
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: () =>
|
|
495
|
+
render: () => c?.checkDate ? d.formatShortWithYear(c.checkDate) : "-"
|
|
498
496
|
}
|
|
499
497
|
],
|
|
500
498
|
data: [{}]
|
|
501
499
|
}
|
|
502
500
|
) : /* @__PURE__ */ a(
|
|
503
|
-
|
|
501
|
+
m,
|
|
504
502
|
{
|
|
505
503
|
label: t("payrollSummaryLabel"),
|
|
506
504
|
columns: [
|
|
507
505
|
{
|
|
508
506
|
title: t("tableHeaders.totalPayroll"),
|
|
509
|
-
render: () => l(
|
|
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: () =>
|
|
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
|
-
|
|
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:
|
|
546
|
+
onPrimaryActionClick: se,
|
|
556
547
|
shouldCloseOnBackdropClick: !0,
|
|
557
548
|
primaryActionLabel: t("confirmCancelCta"),
|
|
558
549
|
isDestructive: !0,
|