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