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