@gusto/embedded-react-sdk 0.56.2 → 0.56.4
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 +31 -0
- package/dist/components/Common/FieldCaption/FieldCaption.js +19 -22
- package/dist/components/Common/FieldCaption/FieldCaption.js.map +1 -1
- package/dist/components/Common/FieldCaption/FieldCaption.module.scss.js +6 -6
- package/dist/components/Common/PaginationControl/PaginationControl.js +66 -62
- package/dist/components/Common/PaginationControl/PaginationControl.js.map +1 -1
- 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/PaySchedule/management/PaySchedule.js +60 -0
- package/dist/components/Company/PaySchedule/management/PaySchedule.js.map +1 -0
- package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/AssignmentReviewStepPresentation.js +67 -0
- package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/AssignmentReviewStepPresentation.js.map +1 -0
- package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/AssignmentScheduleStepPresentation.js +59 -0
- package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/AssignmentScheduleStepPresentation.js.map +1 -0
- package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/AssignmentTypeStepPresentation.js +57 -0
- package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/AssignmentTypeStepPresentation.js.map +1 -0
- package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/PayScheduleAssignment.js +46 -0
- package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/PayScheduleAssignment.js.map +1 -0
- package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/PayScheduleAssignmentComponents.js +101 -0
- package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/PayScheduleAssignmentComponents.js.map +1 -0
- package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/payScheduleAssignmentStateMachine.js +81 -0
- package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/payScheduleAssignmentStateMachine.js.map +1 -0
- package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/stripNullAssignmentPreviewFields.js +18 -0
- package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/stripNullAssignmentPreviewFields.js.map +1 -0
- package/dist/components/Company/PaySchedule/management/PayScheduleManagementComponents.js +56 -0
- package/dist/components/Company/PaySchedule/management/PayScheduleManagementComponents.js.map +1 -0
- package/dist/components/Company/PaySchedule/management/PayScheduleOverview.js +34 -0
- package/dist/components/Company/PaySchedule/management/PayScheduleOverview.js.map +1 -0
- package/dist/components/Company/PaySchedule/management/PayScheduleOverviewPresentation.js +77 -0
- package/dist/components/Company/PaySchedule/management/PayScheduleOverviewPresentation.js.map +1 -0
- package/dist/components/Company/PaySchedule/management/PayScheduleOverviewPresentation.module.scss.js +10 -0
- package/dist/components/Company/PaySchedule/management/PayScheduleOverviewPresentation.module.scss.js.map +1 -0
- package/dist/components/Company/PaySchedule/management/payScheduleManagementStateMachine.js +66 -0
- package/dist/components/Company/PaySchedule/management/payScheduleManagementStateMachine.js.map +1 -0
- package/dist/components/Company/StateTaxes/StateTaxesForm/StateTaxesForm.js +75 -57
- package/dist/components/Company/StateTaxes/StateTaxesForm/StateTaxesForm.js.map +1 -1
- package/dist/components/Company/StateTaxes/shared/requirementSetError.js +15 -0
- package/dist/components/Company/StateTaxes/shared/requirementSetError.js.map +1 -0
- package/dist/components/Company/exports/companyManagement.js +7 -0
- package/dist/components/Company/exports/companyManagement.js.map +1 -0
- 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 +28 -28
- package/dist/components/Payroll/GrossUpModal/GrossUpModal.js.map +1 -1
- package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerList.js +51 -58
- package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerList.js.map +1 -1
- package/dist/components/Payroll/PayrollBlocker/payrollHelpers.js +12 -7
- package/dist/components/Payroll/PayrollBlocker/payrollHelpers.js.map +1 -1
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js +87 -85
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js.map +1 -1
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js +1 -1
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.js +55 -54
- package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.js.map +1 -1
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.js +66 -62
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.js.map +1 -1
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js +129 -125
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js +30 -27
- package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js.map +1 -1
- package/dist/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/fields.js +41 -30
- package/dist/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/fields.js.map +1 -1
- package/dist/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/payrollEditEmployeeHelpers.js.map +1 -1
- package/dist/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/usePayrollEditEmployeeForm.js +159 -152
- package/dist/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/usePayrollEditEmployeeForm.js.map +1 -1
- package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js +61 -59
- package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollLanding/PayrollLandingFlowComponents.js +32 -31
- package/dist/components/Payroll/PayrollLanding/PayrollLandingFlowComponents.js.map +1 -1
- package/dist/components/Payroll/PayrollList/PayrollList.js +16 -16
- package/dist/components/Payroll/PayrollList/PayrollList.js.map +1 -1
- package/dist/components/Payroll/PayrollList/PayrollListPresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollOverview/PayrollOverview.js +61 -61
- package/dist/components/Payroll/PayrollOverview/PayrollOverview.js.map +1 -1
- package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js +192 -193
- package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js.map +1 -1
- package/dist/components/Payroll/Transition/TransitionFlow.js +27 -22
- package/dist/components/Payroll/Transition/TransitionFlow.js.map +1 -1
- package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlert.js +55 -53
- package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlert.js.map +1 -1
- package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlertPresentation.js +44 -41
- package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlertPresentation.js.map +1 -1
- package/dist/components/Payroll/helpers.js +72 -67
- package/dist/components/Payroll/helpers.js.map +1 -1
- package/dist/components/Payroll/usePreparedPayrollData.js +34 -25
- package/dist/components/Payroll/usePreparedPayrollData.js.map +1 -1
- package/dist/contexts/ApiProvider/ApiProvider.js +23 -22
- package/dist/contexts/ApiProvider/ApiProvider.js.map +1 -1
- package/dist/contexts/ApiProvider/informationRequestEnumHook.js +30 -0
- package/dist/contexts/ApiProvider/informationRequestEnumHook.js.map +1 -0
- package/dist/contexts/UnstableFeaturesProvider/useUnstableFeature.js.map +1 -1
- package/dist/helpers/dateFormatting.js.map +1 -1
- package/dist/helpers/formattedStrings.js +9 -8
- package/dist/helpers/formattedStrings.js.map +1 -1
- package/dist/i18n/I18n.js +2 -0
- package/dist/i18n/I18n.js.map +1 -1
- package/dist/i18n/en/Company.Management.PaySchedule.json.js +24 -0
- package/dist/i18n/en/Company.Management.PaySchedule.json.js.map +1 -0
- package/dist/i18n/en/Company.Management.PayScheduleAssignment.json.js +18 -0
- package/dist/i18n/en/Company.Management.PayScheduleAssignment.json.js.map +1 -0
- package/dist/i18n/en/Company.StateTaxes.json.js +1 -1
- package/dist/i18n/en/Payroll.GrossUpModal.json.js +12 -14
- package/dist/i18n/en/Payroll.GrossUpModal.json.js.map +1 -1
- package/dist/i18n/en/Payroll.PayrollOverview.json.js +1 -1
- package/dist/i18n/en/common.json.js +36 -38
- package/dist/i18n/en/common.json.js.map +1 -1
- package/dist/index.js +137 -135
- package/dist/index.js.map +1 -1
- package/dist/package.json.js +1 -1
- package/dist/shared/constants.js +39 -31
- package/dist/shared/constants.js.map +1 -1
- package/dist/src/components/Company/PaySchedule/management/PaySchedule.d.ts +24 -0
- package/dist/src/components/Company/PaySchedule/management/PayScheduleAssignment/AssignmentReviewStepPresentation.d.ts +10 -0
- package/dist/src/components/Company/PaySchedule/management/PayScheduleAssignment/AssignmentScheduleStepPresentation.d.ts +11 -0
- package/dist/src/components/Company/PaySchedule/management/PayScheduleAssignment/AssignmentTypeStepPresentation.d.ts +9 -0
- package/dist/src/components/Company/PaySchedule/management/PayScheduleAssignment/PayScheduleAssignment.d.ts +35 -0
- package/dist/src/components/Company/PaySchedule/management/PayScheduleAssignment/PayScheduleAssignmentComponents.d.ts +29 -0
- package/dist/src/components/Company/PaySchedule/management/PayScheduleAssignment/index.d.ts +1 -0
- package/dist/src/components/Company/PaySchedule/management/PayScheduleAssignment/payScheduleAssignmentStateMachine.d.ts +7 -0
- package/dist/src/components/Company/PaySchedule/management/PayScheduleAssignment/stripNullAssignmentPreviewFields.d.ts +12 -0
- package/dist/src/components/Company/PaySchedule/management/PayScheduleAssignment/usePayScheduleAssignment.d.ts +9 -0
- package/dist/src/components/Company/PaySchedule/management/PayScheduleManagementComponents.d.ts +20 -0
- package/dist/src/components/Company/PaySchedule/management/PayScheduleOverview.d.ts +11 -0
- package/dist/src/components/Company/PaySchedule/management/PayScheduleOverviewPresentation.d.ts +18 -0
- package/dist/src/components/Company/PaySchedule/management/index.d.ts +1 -0
- package/dist/src/components/Company/PaySchedule/management/payScheduleManagementStateMachine.d.ts +12 -0
- package/dist/src/components/Company/StateTaxes/shared/requirementSetError.d.ts +18 -0
- package/dist/src/components/Company/StateTaxes/shared/requirementSetError.test.d.ts +1 -0
- package/dist/src/components/Company/exports/companyManagement.d.ts +2 -0
- package/dist/src/components/Payroll/PayrollBlocker/payrollHelpers.d.ts +12 -0
- package/dist/src/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.d.ts +6 -1
- package/dist/src/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/payrollEditEmployeeHelpers.d.ts +2 -2
- package/dist/src/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlert.d.ts +6 -1
- package/dist/src/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlertPresentation.d.ts +7 -1
- package/dist/src/components/Payroll/helpers.d.ts +34 -0
- package/dist/src/components/Payroll/usePreparedPayrollData.d.ts +6 -1
- package/dist/src/components/index.d.ts +12 -0
- package/dist/src/contexts/ApiProvider/informationRequestEnumHook.d.ts +14 -0
- package/dist/src/contexts/ApiProvider/informationRequestEnumHook.test.d.ts +1 -0
- package/dist/src/contexts/UnstableFeaturesProvider/useUnstableFeature.d.ts +2 -0
- package/dist/src/helpers/dateFormatting.d.ts +2 -2
- package/dist/src/helpers/formattedStrings.d.ts +15 -0
- package/dist/src/i18n/en/common.json.d.ts +0 -1
- package/dist/src/i18n/types.d.ts +96 -6
- package/dist/src/models/external.d.ts +12 -0
- package/dist/src/shared/constants.d.ts +16 -0
- package/dist/style.css +1 -1
- package/dist/types/sdkError.js +32 -21
- package/dist/types/sdkError.js.map +1 -1
- package/docs/guides/endpoint-inventory.json +59 -10
- package/package.json +7 -7
|
@@ -1,152 +1,152 @@
|
|
|
1
|
-
import { jsx as a, jsxs as o, Fragment as
|
|
2
|
-
import { useTranslation as ve, Trans as
|
|
3
|
-
import
|
|
4
|
-
import { useState as le, useRef as
|
|
5
|
-
import { isDismissalPayroll as
|
|
6
|
-
import { PayrollOverviewStatus as
|
|
7
|
-
import
|
|
1
|
+
import { jsx as a, jsxs as o, Fragment as N } from "react/jsx-runtime";
|
|
2
|
+
import { useTranslation as ve, Trans as Ce } from "react-i18next";
|
|
3
|
+
import ae from "classnames";
|
|
4
|
+
import { useState as le, useRef as Le } from "react";
|
|
5
|
+
import { isDismissalPayroll as Oe, getPayrollTypeLabel as Ae, getPayPeriodOrCheckDateLabel as ie, calculateTotalPayroll as Ee, getReimbursements as k } from "../helpers.js";
|
|
6
|
+
import { PayrollOverviewStatus as y } from "./PayrollOverviewTypes.js";
|
|
7
|
+
import ne from "./PayrollOverviewPresentation.module.scss.js";
|
|
8
8
|
import { Flex as s } from "../../Common/Flex/Flex.js";
|
|
9
|
-
import { Grid as
|
|
10
|
-
import
|
|
11
|
-
import { useComponentContext as
|
|
9
|
+
import { Grid as Be } from "../../Common/Grid/Grid.js";
|
|
10
|
+
import Ve from "../../../hooks/useContainerBreakpoints/useContainerBreakpoints.js";
|
|
11
|
+
import { useComponentContext as je } from "../../../contexts/ComponentAdapter/useComponentContext.js";
|
|
12
12
|
import { useI18n as We } from "../../../i18n/I18n.js";
|
|
13
13
|
import { useDateFormatter as Ye } from "../../../hooks/useDateFormatter.js";
|
|
14
|
-
import
|
|
15
|
-
import { firstLastName as
|
|
16
|
-
import { FlsaStatus as oe, compensationTypeLabels as
|
|
14
|
+
import Ue from "../../../hooks/useNumberFormatter.js";
|
|
15
|
+
import { firstLastName as A } from "../../../helpers/formattedStrings.js";
|
|
16
|
+
import { FlsaStatus as oe, compensationTypeLabels as E, PAYROLL_RESOLVABLE_SUBMISSION_BLOCKER_TYPES as se } from "../../../shared/constants.js";
|
|
17
17
|
import de from "../../../assets/icons/download-cloud.svg.js";
|
|
18
18
|
import { PayrollLoading as ce } from "../../Common/PayrollLoading/PayrollLoading.js";
|
|
19
|
-
import { FastAchSubmissionBlockerBanner as
|
|
20
|
-
import { GenericBlocker as
|
|
19
|
+
import { FastAchSubmissionBlockerBanner as Ie } from "./SubmissionBlockers/FastAchSubmissionBlockerBanner.js";
|
|
20
|
+
import { GenericBlocker as Me } from "./SubmissionBlockers/GenericBlocker.js";
|
|
21
21
|
import { DataView as c } from "../../Common/DataView/DataView.js";
|
|
22
|
-
const
|
|
23
|
-
className:
|
|
24
|
-
onEdit:
|
|
25
|
-
onSubmit:
|
|
26
|
-
onCancel:
|
|
27
|
-
onPayrollReceipt:
|
|
28
|
-
onPaystubDownload:
|
|
29
|
-
payrollData:
|
|
30
|
-
employeeFlsaStatusByUuid:
|
|
31
|
-
bankAccount:
|
|
32
|
-
taxes:
|
|
33
|
-
status:
|
|
34
|
-
isProcessed:
|
|
35
|
-
canCancel:
|
|
36
|
-
canEdit:
|
|
37
|
-
alerts:
|
|
38
|
-
submissionBlockers:
|
|
39
|
-
selectedUnblockOptions:
|
|
40
|
-
onUnblockOptionChange:
|
|
41
|
-
wireInConfirmationRequest:
|
|
42
|
-
printChecksBanner:
|
|
43
|
-
withReimbursements:
|
|
44
|
-
paymentSpeed:
|
|
22
|
+
const mt = ({
|
|
23
|
+
className: B,
|
|
24
|
+
onEdit: me,
|
|
25
|
+
onSubmit: ue,
|
|
26
|
+
onCancel: be,
|
|
27
|
+
onPayrollReceipt: ye,
|
|
28
|
+
onPaystubDownload: V,
|
|
29
|
+
payrollData: i,
|
|
30
|
+
employeeFlsaStatusByUuid: pe = {},
|
|
31
|
+
bankAccount: j,
|
|
32
|
+
taxes: S,
|
|
33
|
+
status: p = y.Viewing,
|
|
34
|
+
isProcessed: f,
|
|
35
|
+
canCancel: fe = !1,
|
|
36
|
+
canEdit: W = !0,
|
|
37
|
+
alerts: Y = [],
|
|
38
|
+
submissionBlockers: u = [],
|
|
39
|
+
selectedUnblockOptions: w = {},
|
|
40
|
+
onUnblockOptionChange: U,
|
|
41
|
+
wireInConfirmationRequest: he,
|
|
42
|
+
printChecksBanner: ge,
|
|
43
|
+
withReimbursements: h = !0,
|
|
44
|
+
paymentSpeed: Te,
|
|
45
45
|
pagination: _,
|
|
46
|
-
downloadingEmployeeIds:
|
|
46
|
+
downloadingEmployeeIds: I = /* @__PURE__ */ new Set()
|
|
47
47
|
}) => {
|
|
48
|
-
const { Alert:
|
|
48
|
+
const { Alert: M, Badge: v, Button: g, ButtonIcon: F, Dialog: He, Heading: R, Text: b, Tabs: De } = je();
|
|
49
49
|
We("Payroll.PayrollOverview");
|
|
50
|
-
const d = Ye(), { t } = ve("Payroll.PayrollOverview"),
|
|
51
|
-
const { time: e, date: r } = d.formatWithTime(
|
|
50
|
+
const d = Ye(), { t } = ve("Payroll.PayrollOverview"), l = Ue("currency"), [xe, Pe] = le("companyPays"), [$, G] = le(!1), C = Le(null), T = Ve({ ref: C }).includes("small"), H = p === y.Submitting || p === y.Cancelling, z = /* @__PURE__ */ a(R, { as: "h1", children: t(f ? "summaryTitle" : "overviewTitle") }), K = Oe(i.offCycleReason), Ne = (() => {
|
|
51
|
+
const { time: e, date: r } = d.formatWithTime(i.payrollDeadline);
|
|
52
52
|
return r ? `${e} on ${r}` : e;
|
|
53
|
-
})(),
|
|
54
|
-
|
|
53
|
+
})(), X = /* @__PURE__ */ a(b, { children: /* @__PURE__ */ a(
|
|
54
|
+
Ce,
|
|
55
55
|
{
|
|
56
|
-
i18nKey:
|
|
56
|
+
i18nKey: K ? "pageSubtitleDismissal" : "pageSubtitle",
|
|
57
57
|
t,
|
|
58
|
-
components: { dateWrapper: /* @__PURE__ */ a(
|
|
58
|
+
components: { dateWrapper: /* @__PURE__ */ a(b, { weight: "bold", as: "span" }) },
|
|
59
59
|
values: {
|
|
60
|
-
|
|
61
|
-
payrollType:
|
|
60
|
+
payPeriod: ie(i, d),
|
|
61
|
+
payrollType: Ae(i)
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
) });
|
|
65
|
-
if (
|
|
66
|
-
return /* @__PURE__ */ a("div", { ref:
|
|
65
|
+
if (p === y.Cancelled)
|
|
66
|
+
return /* @__PURE__ */ a("div", { ref: C, className: ae(ne.container, B), children: /* @__PURE__ */ o(s, { flexDirection: "column", alignItems: "stretch", children: [
|
|
67
67
|
/* @__PURE__ */ a(s, { justifyContent: "space-between", alignItems: "flex-start", gap: 16, children: /* @__PURE__ */ o(s, { flexDirection: "column", gap: 4, children: [
|
|
68
|
-
|
|
69
|
-
|
|
68
|
+
z,
|
|
69
|
+
X
|
|
70
70
|
] }) }),
|
|
71
|
-
/* @__PURE__ */ a(
|
|
71
|
+
/* @__PURE__ */ a(M, { status: "info", label: t("cancelledEmptyState") })
|
|
72
72
|
] }) });
|
|
73
|
-
const
|
|
74
|
-
(r,
|
|
73
|
+
const D = Ee(i), ke = i.payrollStatusMeta?.expectedDebitTime ?? i.payrollDeadline, q = (e) => e.taxes?.reduce(
|
|
74
|
+
(r, n) => n.employer ? r + Number(n.amount) : r,
|
|
75
75
|
0
|
|
76
|
-
) ?? 0,
|
|
77
|
-
(r,
|
|
76
|
+
) ?? 0, J = (e) => e.benefits?.reduce(
|
|
77
|
+
(r, n) => n.companyContribution ? r + Number(n.companyContribution) : r,
|
|
78
78
|
0
|
|
79
|
-
) ?? 0,
|
|
79
|
+
) ?? 0, Se = (e) => Number(e.grossPay) + k(e) + q(e) + J(e), L = u.find(
|
|
80
80
|
(e) => e.blockerType === "fast_ach_threshold_exceeded" || e.blockerType === "needs_earned_access_for_fast_ach"
|
|
81
|
-
),
|
|
82
|
-
(e) => e.unblockType ===
|
|
83
|
-
),
|
|
84
|
-
(r,
|
|
85
|
-
if (typeof
|
|
81
|
+
), O = L ? w[L.blockerType || ""] : void 0, m = L?.unblockOptions?.find(
|
|
82
|
+
(e) => e.unblockType === O
|
|
83
|
+
), Q = O === "wire_in", Z = O === "move_to_four_day", x = (e) => e.hourlyCompensations?.reduce(
|
|
84
|
+
(r, n) => {
|
|
85
|
+
if (typeof n.name > "u")
|
|
86
86
|
return r;
|
|
87
|
-
const
|
|
88
|
-
return r[
|
|
87
|
+
const P = n.name.toLowerCase(), _e = r[P] ?? 0;
|
|
88
|
+
return r[P] = _e + Number(n.hours || 0), r;
|
|
89
89
|
},
|
|
90
90
|
{}
|
|
91
|
-
) || {},
|
|
91
|
+
) || {}, ee = (e) => e.paidTimeOff?.reduce((r, n) => r + Number(n.hours || 0), 0) ?? 0, te = [
|
|
92
92
|
{
|
|
93
93
|
key: "employeeName",
|
|
94
94
|
title: t("tableHeaders.employees"),
|
|
95
95
|
render: (e) => /* @__PURE__ */ o(s, { flexDirection: "column", gap: 0, children: [
|
|
96
|
-
|
|
96
|
+
A({
|
|
97
97
|
first_name: e.firstName,
|
|
98
98
|
last_name: e.lastName
|
|
99
99
|
}),
|
|
100
|
-
e.excluded && /* @__PURE__ */ a(
|
|
100
|
+
e.excluded && /* @__PURE__ */ a(v, { status: "warning", children: t("skippedBadge") })
|
|
101
101
|
] })
|
|
102
102
|
},
|
|
103
103
|
{
|
|
104
104
|
key: "grossPay",
|
|
105
105
|
title: t("tableHeaders.grossPay"),
|
|
106
106
|
justify: "end",
|
|
107
|
-
render: (e) =>
|
|
107
|
+
render: (e) => l(Number(e.grossPay))
|
|
108
108
|
},
|
|
109
|
-
...
|
|
109
|
+
...h ? [
|
|
110
110
|
{
|
|
111
111
|
key: "reimbursements",
|
|
112
112
|
title: t("tableHeaders.reimbursements"),
|
|
113
113
|
justify: "end",
|
|
114
|
-
render: (e) =>
|
|
114
|
+
render: (e) => l(k(e))
|
|
115
115
|
}
|
|
116
116
|
] : [],
|
|
117
117
|
{
|
|
118
118
|
key: "companyTaxes",
|
|
119
119
|
title: t("tableHeaders.companyTaxes"),
|
|
120
120
|
justify: "end",
|
|
121
|
-
render: (e) =>
|
|
121
|
+
render: (e) => l(q(e))
|
|
122
122
|
},
|
|
123
123
|
{
|
|
124
124
|
key: "companyBenefits",
|
|
125
125
|
title: t("tableHeaders.companyBenefits"),
|
|
126
126
|
justify: "end",
|
|
127
|
-
render: (e) =>
|
|
127
|
+
render: (e) => l(J(e))
|
|
128
128
|
},
|
|
129
129
|
{
|
|
130
130
|
key: "companyPays",
|
|
131
131
|
title: t("tableHeaders.companyPays"),
|
|
132
132
|
justify: "end",
|
|
133
|
-
render: (e) =>
|
|
133
|
+
render: (e) => l(Se(e))
|
|
134
134
|
}
|
|
135
135
|
];
|
|
136
|
-
|
|
136
|
+
f && T && te.push({
|
|
137
137
|
key: "paystubs",
|
|
138
138
|
title: t("tableHeaders.paystub"),
|
|
139
139
|
justify: "end",
|
|
140
140
|
render: (e) => {
|
|
141
|
-
const r = !!e.employeeUuid &&
|
|
141
|
+
const r = !!e.employeeUuid && I.has(e.employeeUuid);
|
|
142
142
|
return /* @__PURE__ */ a(s, { justifyContent: "flex-end", children: /* @__PURE__ */ a(
|
|
143
|
-
|
|
143
|
+
F,
|
|
144
144
|
{
|
|
145
145
|
"aria-label": t("downloadPaystubLabel"),
|
|
146
146
|
variant: "tertiary",
|
|
147
147
|
isLoading: r,
|
|
148
148
|
onClick: () => {
|
|
149
|
-
e.employeeUuid &&
|
|
149
|
+
e.employeeUuid && V(e.employeeUuid);
|
|
150
150
|
},
|
|
151
151
|
children: /* @__PURE__ */ a(de, {})
|
|
152
152
|
}
|
|
@@ -161,36 +161,36 @@ const Me = (m, S) => m?.startDate && m.endDate ? S.formatPayPeriod(m.startDate,
|
|
|
161
161
|
c,
|
|
162
162
|
{
|
|
163
163
|
label: t("dataViews.companyPaysTable"),
|
|
164
|
-
columns:
|
|
165
|
-
data:
|
|
164
|
+
columns: te,
|
|
165
|
+
data: i.employeeCompensations,
|
|
166
166
|
pagination: _,
|
|
167
|
-
itemMenu:
|
|
168
|
-
const r = !!e.employeeUuid &&
|
|
167
|
+
itemMenu: f && !T ? (e) => {
|
|
168
|
+
const r = !!e.employeeUuid && I.has(e.employeeUuid);
|
|
169
169
|
return /* @__PURE__ */ a(
|
|
170
|
-
|
|
170
|
+
F,
|
|
171
171
|
{
|
|
172
172
|
"aria-label": t("downloadPaystubLabel"),
|
|
173
173
|
variant: "tertiary",
|
|
174
174
|
isLoading: r,
|
|
175
175
|
onClick: () => {
|
|
176
|
-
e.employeeUuid &&
|
|
176
|
+
e.employeeUuid && V(e.employeeUuid);
|
|
177
177
|
},
|
|
178
178
|
children: /* @__PURE__ */ a(de, {})
|
|
179
179
|
}
|
|
180
180
|
);
|
|
181
181
|
} : void 0,
|
|
182
182
|
footer: () => ({
|
|
183
|
-
employeeName: /* @__PURE__ */ o(
|
|
183
|
+
employeeName: /* @__PURE__ */ o(N, { children: [
|
|
184
184
|
t("tableHeaders.footerTotalsLabel"),
|
|
185
|
-
/* @__PURE__ */ a(
|
|
185
|
+
/* @__PURE__ */ a(b, { variant: "supporting", size: "sm", children: t("tableHeaders.footerTotalsDescription") })
|
|
186
186
|
] }),
|
|
187
|
-
grossPay:
|
|
188
|
-
...
|
|
189
|
-
reimbursements:
|
|
187
|
+
grossPay: l(Number(i.totals?.grossPay ?? 0)),
|
|
188
|
+
...h ? {
|
|
189
|
+
reimbursements: l(Number(i.totals?.reimbursements ?? 0))
|
|
190
190
|
} : {},
|
|
191
|
-
companyTaxes:
|
|
192
|
-
companyBenefits:
|
|
193
|
-
companyPays:
|
|
191
|
+
companyTaxes: l(Number(i.totals?.employerTaxes ?? 0)),
|
|
192
|
+
companyBenefits: l(Number(i.totals?.benefits ?? 0)),
|
|
193
|
+
companyPays: l(D)
|
|
194
194
|
})
|
|
195
195
|
}
|
|
196
196
|
)
|
|
@@ -206,17 +206,17 @@ const Me = (m, S) => m?.startDate && m.endDate ? S.formatPayPeriod(m.startDate,
|
|
|
206
206
|
{
|
|
207
207
|
title: t("tableHeaders.employees"),
|
|
208
208
|
render: (e) => /* @__PURE__ */ o(s, { flexDirection: "column", gap: 0, children: [
|
|
209
|
-
|
|
209
|
+
A({
|
|
210
210
|
first_name: e.firstName,
|
|
211
211
|
last_name: e.lastName
|
|
212
212
|
}),
|
|
213
|
-
e.excluded && /* @__PURE__ */ a(
|
|
213
|
+
e.excluded && /* @__PURE__ */ a(v, { status: "warning", children: t("skippedBadge") })
|
|
214
214
|
] })
|
|
215
215
|
},
|
|
216
216
|
{
|
|
217
217
|
title: t("tableHeaders.compensationType"),
|
|
218
218
|
render: (e) => {
|
|
219
|
-
const r = e.employeeUuid ?
|
|
219
|
+
const r = e.employeeUuid ? pe[e.employeeUuid] : void 0;
|
|
220
220
|
switch (r) {
|
|
221
221
|
case oe.EXEMPT:
|
|
222
222
|
return t("compensationTypeLabels.exempt");
|
|
@@ -229,29 +229,29 @@ const Me = (m, S) => m?.startDate && m.endDate ? S.formatPayPeriod(m.startDate,
|
|
|
229
229
|
},
|
|
230
230
|
{
|
|
231
231
|
title: t("tableHeaders.regular"),
|
|
232
|
-
render: (e) =>
|
|
232
|
+
render: (e) => x(e)[E.REGULAR_HOURS_NAME] || 0
|
|
233
233
|
},
|
|
234
234
|
{
|
|
235
235
|
title: t("tableHeaders.overtime"),
|
|
236
|
-
render: (e) =>
|
|
236
|
+
render: (e) => x(e)[E.OVERTIME_NAME] || 0
|
|
237
237
|
},
|
|
238
238
|
{
|
|
239
239
|
title: t("tableHeaders.doubleOT"),
|
|
240
|
-
render: (e) =>
|
|
240
|
+
render: (e) => x(e)[E.DOUBLE_OVERTIME_NAME] || 0
|
|
241
241
|
},
|
|
242
242
|
{
|
|
243
243
|
title: t("tableHeaders.timeOff"),
|
|
244
|
-
render: (e) =>
|
|
244
|
+
render: (e) => ee(e)
|
|
245
245
|
},
|
|
246
246
|
{
|
|
247
247
|
title: t("tableHeaders.totalHours"),
|
|
248
|
-
render: (e) => Object.values(
|
|
249
|
-
(r,
|
|
248
|
+
render: (e) => Object.values(x(e)).reduce(
|
|
249
|
+
(r, n) => r + n,
|
|
250
250
|
0
|
|
251
|
-
) +
|
|
251
|
+
) + ee(e)
|
|
252
252
|
}
|
|
253
253
|
],
|
|
254
|
-
data:
|
|
254
|
+
data: i.employeeCompensations,
|
|
255
255
|
pagination: _
|
|
256
256
|
}
|
|
257
257
|
)
|
|
@@ -267,11 +267,11 @@ const Me = (m, S) => m?.startDate && m.endDate ? S.formatPayPeriod(m.startDate,
|
|
|
267
267
|
{
|
|
268
268
|
title: t("tableHeaders.employees"),
|
|
269
269
|
render: (e) => /* @__PURE__ */ o(s, { flexDirection: "column", gap: 0, children: [
|
|
270
|
-
|
|
270
|
+
A({
|
|
271
271
|
first_name: e.firstName,
|
|
272
272
|
last_name: e.lastName
|
|
273
273
|
}),
|
|
274
|
-
e.excluded && /* @__PURE__ */ a(
|
|
274
|
+
e.excluded && /* @__PURE__ */ a(v, { status: "warning", children: t("skippedBadge") })
|
|
275
275
|
] })
|
|
276
276
|
},
|
|
277
277
|
{
|
|
@@ -280,49 +280,49 @@ const Me = (m, S) => m?.startDate && m.endDate ? S.formatPayPeriod(m.startDate,
|
|
|
280
280
|
},
|
|
281
281
|
{
|
|
282
282
|
title: t("tableHeaders.grossPay"),
|
|
283
|
-
render: (e) =>
|
|
283
|
+
render: (e) => l(Number(e.grossPay ?? 0))
|
|
284
284
|
},
|
|
285
285
|
{
|
|
286
286
|
title: t("tableHeaders.deductions"),
|
|
287
|
-
render: (e) =>
|
|
287
|
+
render: (e) => l(
|
|
288
288
|
e.deductions?.reduce(
|
|
289
|
-
(r,
|
|
289
|
+
(r, n) => r + Number(n.amount),
|
|
290
290
|
0
|
|
291
291
|
) ?? 0
|
|
292
292
|
)
|
|
293
293
|
},
|
|
294
|
-
...
|
|
294
|
+
...h ? [
|
|
295
295
|
{
|
|
296
296
|
title: t("tableHeaders.reimbursements"),
|
|
297
|
-
render: (e) =>
|
|
297
|
+
render: (e) => l(k(e))
|
|
298
298
|
}
|
|
299
299
|
] : [],
|
|
300
300
|
{
|
|
301
301
|
title: t("tableHeaders.employeeTaxes"),
|
|
302
|
-
render: (e) =>
|
|
302
|
+
render: (e) => l(
|
|
303
303
|
e.taxes?.reduce(
|
|
304
|
-
(r,
|
|
304
|
+
(r, n) => n.employer ? r : r + Number(n.amount),
|
|
305
305
|
0
|
|
306
306
|
) ?? 0
|
|
307
307
|
)
|
|
308
308
|
},
|
|
309
309
|
{
|
|
310
310
|
title: t("tableHeaders.employeeBenefits"),
|
|
311
|
-
render: (e) =>
|
|
311
|
+
render: (e) => l(
|
|
312
312
|
e.benefits?.reduce(
|
|
313
|
-
(r,
|
|
313
|
+
(r, n) => r + Number(n.employeeDeduction ?? 0),
|
|
314
314
|
0
|
|
315
315
|
) ?? 0
|
|
316
316
|
)
|
|
317
317
|
},
|
|
318
318
|
{
|
|
319
319
|
title: t("tableHeaders.payment"),
|
|
320
|
-
render: (e) =>
|
|
321
|
-
Number(e.netPay ?? 0) +
|
|
320
|
+
render: (e) => l(
|
|
321
|
+
Number(e.netPay ?? 0) + k(e)
|
|
322
322
|
)
|
|
323
323
|
}
|
|
324
324
|
],
|
|
325
|
-
data:
|
|
325
|
+
data: i.employeeCompensations,
|
|
326
326
|
pagination: _
|
|
327
327
|
}
|
|
328
328
|
)
|
|
@@ -344,20 +344,20 @@ const Me = (m, S) => m?.startDate && m.endDate ? S.formatPayPeriod(m.startDate,
|
|
|
344
344
|
{
|
|
345
345
|
key: "byYourEmployees",
|
|
346
346
|
title: t("tableHeaders.byYourEmployees"),
|
|
347
|
-
render: (e) =>
|
|
347
|
+
render: (e) => l(S[e]?.employee ?? 0)
|
|
348
348
|
},
|
|
349
349
|
{
|
|
350
350
|
key: "byYourCompany",
|
|
351
351
|
title: t("tableHeaders.byYourCompany"),
|
|
352
|
-
render: (e) =>
|
|
352
|
+
render: (e) => l(S[e]?.employer ?? 0)
|
|
353
353
|
}
|
|
354
354
|
],
|
|
355
355
|
footer: () => ({
|
|
356
|
-
taxDescription: /* @__PURE__ */ a(
|
|
357
|
-
byYourEmployees:
|
|
358
|
-
byYourCompany:
|
|
356
|
+
taxDescription: /* @__PURE__ */ a(b, { weight: "semibold", size: "sm", children: t("totalsLabel") }),
|
|
357
|
+
byYourEmployees: l(Number(i.totals?.employeeTaxes ?? 0)),
|
|
358
|
+
byYourCompany: l(Number(i.totals?.employerTaxes ?? 0))
|
|
359
359
|
}),
|
|
360
|
-
data: Object.keys(
|
|
360
|
+
data: Object.keys(S)
|
|
361
361
|
}
|
|
362
362
|
),
|
|
363
363
|
/* @__PURE__ */ a(
|
|
@@ -371,75 +371,75 @@ const Me = (m, S) => m?.startDate && m.endDate ? S.formatPayPeriod(m.startDate,
|
|
|
371
371
|
},
|
|
372
372
|
{
|
|
373
373
|
title: t("tableHeaders.taxesTotal"),
|
|
374
|
-
render: ({ value: e }) =>
|
|
374
|
+
render: ({ value: e }) => l(Number(e))
|
|
375
375
|
}
|
|
376
376
|
],
|
|
377
377
|
data: [
|
|
378
|
-
{ label: t("directDepositLabel"), value:
|
|
379
|
-
...
|
|
378
|
+
{ label: t("directDepositLabel"), value: i.totals?.netPayDebit || "0" },
|
|
379
|
+
...h ? [
|
|
380
380
|
{
|
|
381
381
|
label: t("reimbursementLabel"),
|
|
382
|
-
value:
|
|
382
|
+
value: i.totals?.reimbursementDebit || "0"
|
|
383
383
|
}
|
|
384
384
|
] : [],
|
|
385
385
|
{
|
|
386
386
|
label: t("garnishmentsLabel"),
|
|
387
|
-
value:
|
|
387
|
+
value: i.totals?.childSupportDebit || "0"
|
|
388
388
|
},
|
|
389
|
-
{ label: t("taxesLabel"), value:
|
|
389
|
+
{ label: t("taxesLabel"), value: i.totals?.taxDebit || "0" }
|
|
390
390
|
]
|
|
391
391
|
}
|
|
392
392
|
)
|
|
393
393
|
] })
|
|
394
394
|
}
|
|
395
|
-
],
|
|
396
|
-
/* @__PURE__ */ a(
|
|
397
|
-
|
|
398
|
-
|
|
395
|
+
], re = f ? /* @__PURE__ */ o(N, { children: [
|
|
396
|
+
/* @__PURE__ */ a(g, { onClick: ye, variant: "secondary", isDisabled: H, children: t("payrollReceiptCta") }),
|
|
397
|
+
fe && /* @__PURE__ */ a(
|
|
398
|
+
g,
|
|
399
399
|
{
|
|
400
400
|
onClick: () => {
|
|
401
|
-
|
|
401
|
+
G(!0);
|
|
402
402
|
},
|
|
403
403
|
variant: "error",
|
|
404
404
|
isDisabled: H,
|
|
405
405
|
children: t("cancelCta")
|
|
406
406
|
}
|
|
407
407
|
)
|
|
408
|
-
] }) : /* @__PURE__ */ o(
|
|
409
|
-
|
|
408
|
+
] }) : /* @__PURE__ */ o(N, { children: [
|
|
409
|
+
W && /* @__PURE__ */ a(g, { onClick: me, variant: "secondary", isDisabled: H, children: t("editCta") }),
|
|
410
410
|
/* @__PURE__ */ a(
|
|
411
|
-
|
|
411
|
+
g,
|
|
412
412
|
{
|
|
413
|
-
onClick:
|
|
414
|
-
isDisabled: H ||
|
|
413
|
+
onClick: ue,
|
|
414
|
+
isDisabled: H || u.length > 0 && (u.some(
|
|
415
415
|
(e) => !se.includes(e.blockerType || "")
|
|
416
|
-
) ||
|
|
417
|
-
(e) => !
|
|
416
|
+
) || u.some(
|
|
417
|
+
(e) => !w[e.blockerType || ""]
|
|
418
418
|
)),
|
|
419
419
|
children: t("submitCta")
|
|
420
420
|
}
|
|
421
421
|
)
|
|
422
422
|
] });
|
|
423
|
-
return /* @__PURE__ */ a("div", { ref:
|
|
423
|
+
return /* @__PURE__ */ a("div", { ref: C, className: ae(ne.container, B), children: /* @__PURE__ */ o(s, { flexDirection: "column", alignItems: "stretch", children: [
|
|
424
424
|
/* @__PURE__ */ o(s, { justifyContent: "space-between", alignItems: "flex-start", gap: 16, children: [
|
|
425
425
|
/* @__PURE__ */ o(s, { flexDirection: "column", gap: 4, children: [
|
|
426
|
-
|
|
427
|
-
|
|
426
|
+
z,
|
|
427
|
+
X
|
|
428
428
|
] }),
|
|
429
|
-
|
|
429
|
+
T && /* @__PURE__ */ a(s, { gap: 8, justifyContent: "flex-end", children: re })
|
|
430
430
|
] }),
|
|
431
|
-
!
|
|
432
|
-
|
|
431
|
+
!T && /* @__PURE__ */ a(
|
|
432
|
+
Be,
|
|
433
433
|
{
|
|
434
|
-
gridTemplateColumns: !
|
|
434
|
+
gridTemplateColumns: !f && W ? ["minmax(0, 1fr)", "minmax(0, 1fr)"] : "1fr",
|
|
435
435
|
gap: 8,
|
|
436
|
-
children:
|
|
436
|
+
children: re
|
|
437
437
|
}
|
|
438
438
|
),
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
439
|
+
p === y.Cancelling ? /* @__PURE__ */ a(ce, { title: t("cancellingTitle") }) : p === y.Submitting ? /* @__PURE__ */ a(ce, { title: t("loadingTitle"), description: t("loadingDescription") }) : /* @__PURE__ */ o(N, { children: [
|
|
440
|
+
he,
|
|
441
|
+
Y.length > 0 && /* @__PURE__ */ a(s, { flexDirection: "column", gap: 16, children: Y.map((e, r) => /* @__PURE__ */ a(
|
|
442
|
+
M,
|
|
443
443
|
{
|
|
444
444
|
label: e.title,
|
|
445
445
|
status: e.type,
|
|
@@ -448,80 +448,80 @@ const Me = (m, S) => m?.startDate && m.endDate ? S.formatPayPeriod(m.startDate,
|
|
|
448
448
|
},
|
|
449
449
|
`${e.type}-${e.title}`
|
|
450
450
|
)) }),
|
|
451
|
-
|
|
451
|
+
u.length > 0 && U && u.map((e) => {
|
|
452
452
|
const r = e.blockerType || "";
|
|
453
453
|
return se.includes(r) ? /* @__PURE__ */ a(
|
|
454
|
-
|
|
454
|
+
Ie,
|
|
455
455
|
{
|
|
456
456
|
blocker: e,
|
|
457
|
-
selectedValue:
|
|
458
|
-
onUnblockOptionChange:
|
|
459
|
-
paymentSpeed:
|
|
457
|
+
selectedValue: w[r],
|
|
458
|
+
onUnblockOptionChange: U,
|
|
459
|
+
paymentSpeed: Te
|
|
460
460
|
},
|
|
461
461
|
r
|
|
462
|
-
) : /* @__PURE__ */ a(
|
|
462
|
+
) : /* @__PURE__ */ a(Me, { blocker: e }, r);
|
|
463
463
|
}),
|
|
464
|
-
/* @__PURE__ */ a(
|
|
465
|
-
|
|
464
|
+
/* @__PURE__ */ a(R, { as: "h2", styledAs: "h3", children: t(Q ? "payrollSummaryTitleWire" : Z ? "payrollSummaryTitleFourDay" : "payrollSummaryTitle") }),
|
|
465
|
+
Q ? /* @__PURE__ */ a(
|
|
466
466
|
c,
|
|
467
467
|
{
|
|
468
468
|
label: t("payrollSummaryLabel"),
|
|
469
469
|
columns: [
|
|
470
470
|
{
|
|
471
471
|
title: t("tableHeaders.totalPayroll"),
|
|
472
|
-
render: () =>
|
|
472
|
+
render: () => l(D)
|
|
473
473
|
},
|
|
474
474
|
{
|
|
475
475
|
title: t("tableHeaders.wireAmount"),
|
|
476
476
|
render: () => {
|
|
477
|
-
const r =
|
|
478
|
-
return r ?
|
|
477
|
+
const r = m?.metadata?.wire_in_amount;
|
|
478
|
+
return r ? l(Number(r)) : "-";
|
|
479
479
|
}
|
|
480
480
|
},
|
|
481
481
|
{
|
|
482
482
|
title: t("tableHeaders.wireTransferDeadline"),
|
|
483
483
|
render: () => {
|
|
484
|
-
const r =
|
|
485
|
-
return r ? `${
|
|
484
|
+
const r = m?.metadata?.wire_in_deadline, n = d.formatWithTime(r), P = d.formatShortWithYear(r);
|
|
485
|
+
return r ? `${n.time} on ${P}` : "-";
|
|
486
486
|
}
|
|
487
487
|
},
|
|
488
488
|
{
|
|
489
489
|
title: t("tableHeaders.employeePayDate"),
|
|
490
|
-
render: () =>
|
|
490
|
+
render: () => m?.checkDate ? d.formatShortWithYear(m.checkDate) : "-"
|
|
491
491
|
}
|
|
492
492
|
],
|
|
493
493
|
data: [{}]
|
|
494
494
|
}
|
|
495
|
-
) :
|
|
495
|
+
) : Z ? /* @__PURE__ */ a(
|
|
496
496
|
c,
|
|
497
497
|
{
|
|
498
498
|
label: t("payrollSummaryLabel"),
|
|
499
499
|
columns: [
|
|
500
500
|
{
|
|
501
501
|
title: t("tableHeaders.totalPayroll"),
|
|
502
|
-
render: () =>
|
|
502
|
+
render: () => l(D)
|
|
503
503
|
},
|
|
504
504
|
{
|
|
505
505
|
title: t("tableHeaders.debitAmount"),
|
|
506
506
|
render: () => {
|
|
507
|
-
const e =
|
|
508
|
-
return
|
|
507
|
+
const e = i.totals?.companyDebit;
|
|
508
|
+
return l(Number(e ?? 0));
|
|
509
509
|
}
|
|
510
510
|
},
|
|
511
511
|
{
|
|
512
512
|
title: t("tableHeaders.debitAccount"),
|
|
513
|
-
render: () =>
|
|
513
|
+
render: () => j?.hiddenAccountNumber ?? ""
|
|
514
514
|
},
|
|
515
515
|
{
|
|
516
516
|
title: t("tableHeaders.debitDate"),
|
|
517
517
|
render: () => {
|
|
518
|
-
const r =
|
|
518
|
+
const r = m?.metadata?.debit_date;
|
|
519
519
|
return d.formatShortWithYear(r);
|
|
520
520
|
}
|
|
521
521
|
},
|
|
522
522
|
{
|
|
523
523
|
title: t("tableHeaders.employeePayDate"),
|
|
524
|
-
render: () =>
|
|
524
|
+
render: () => m?.checkDate ? d.formatShortWithYear(m.checkDate) : "-"
|
|
525
525
|
}
|
|
526
526
|
],
|
|
527
527
|
data: [{}]
|
|
@@ -533,58 +533,57 @@ const Me = (m, S) => m?.startDate && m.endDate ? S.formatPayPeriod(m.startDate,
|
|
|
533
533
|
columns: [
|
|
534
534
|
{
|
|
535
535
|
title: t("tableHeaders.totalPayroll"),
|
|
536
|
-
render: () =>
|
|
536
|
+
render: () => l(D)
|
|
537
537
|
},
|
|
538
538
|
{
|
|
539
539
|
title: t("tableHeaders.debitAmount"),
|
|
540
|
-
render: () =>
|
|
540
|
+
render: () => l(Number(i.totals?.companyDebit ?? 0))
|
|
541
541
|
},
|
|
542
542
|
{
|
|
543
543
|
title: t("tableHeaders.debitAccount"),
|
|
544
|
-
render: () =>
|
|
544
|
+
render: () => j?.hiddenAccountNumber ?? ""
|
|
545
545
|
},
|
|
546
546
|
{
|
|
547
547
|
title: t("tableHeaders.debitDate"),
|
|
548
|
-
render: () => d.formatShortWithYear(
|
|
548
|
+
render: () => d.formatShortWithYear(ke)
|
|
549
549
|
},
|
|
550
550
|
{
|
|
551
551
|
title: t("tableHeaders.employeePayDate"),
|
|
552
|
-
render: () => d.formatShortWithYear(
|
|
552
|
+
render: () => d.formatShortWithYear(i.checkDate)
|
|
553
553
|
}
|
|
554
554
|
],
|
|
555
555
|
data: [{}]
|
|
556
556
|
}
|
|
557
557
|
),
|
|
558
|
-
|
|
558
|
+
ge,
|
|
559
559
|
/* @__PURE__ */ a(
|
|
560
560
|
De,
|
|
561
561
|
{
|
|
562
|
-
onSelectionChange:
|
|
563
|
-
selectedId:
|
|
562
|
+
onSelectionChange: Pe,
|
|
563
|
+
selectedId: xe,
|
|
564
564
|
"aria-label": t("dataViews.label"),
|
|
565
565
|
tabs: we
|
|
566
566
|
}
|
|
567
567
|
),
|
|
568
|
-
|
|
569
|
-
|
|
568
|
+
$ && /* @__PURE__ */ a(
|
|
569
|
+
He,
|
|
570
570
|
{
|
|
571
|
-
isOpen:
|
|
571
|
+
isOpen: $,
|
|
572
572
|
onClose: () => {
|
|
573
|
-
|
|
573
|
+
G(!1);
|
|
574
574
|
},
|
|
575
|
-
onPrimaryActionClick:
|
|
575
|
+
onPrimaryActionClick: be,
|
|
576
576
|
shouldCloseOnBackdropClick: !0,
|
|
577
577
|
primaryActionLabel: t("confirmCancelCta"),
|
|
578
578
|
isDestructive: !0,
|
|
579
579
|
closeActionLabel: t("declineCancelCta"),
|
|
580
|
-
title: t(
|
|
581
|
-
|
|
582
|
-
endDate: d.formatLongWithYear(l.payPeriod?.endDate)
|
|
580
|
+
title: t(K ? "cancelDialogTitleDismissal" : "cancelDialogTitle", {
|
|
581
|
+
payPeriod: ie(i, d)
|
|
583
582
|
}),
|
|
584
583
|
children: /* @__PURE__ */ o(s, { gap: 14, flexDirection: "column", children: [
|
|
585
|
-
/* @__PURE__ */ a(
|
|
586
|
-
Number(
|
|
587
|
-
deadline:
|
|
584
|
+
/* @__PURE__ */ a(b, { children: t("cancelDialogDescription") }),
|
|
585
|
+
Number(i.totals?.netPayDebit ?? 0) > 0 && /* @__PURE__ */ a(b, { children: t("cancelDialogDescriptionDeadline", {
|
|
586
|
+
deadline: Ne
|
|
588
587
|
}) })
|
|
589
588
|
] })
|
|
590
589
|
}
|