@gusto/embedded-react-sdk 0.46.2 → 0.46.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 +67 -0
- package/dist/components/Common/DataView/DataTable/DataTable.js +76 -72
- package/dist/components/Common/DataView/DataTable/DataTable.js.map +1 -1
- package/dist/components/Common/DataView/DataTable/DataTable.module.scss.js +8 -0
- package/dist/components/Common/DataView/DataTable/DataTable.module.scss.js.map +1 -0
- package/dist/components/Common/DataView/useDataView.d.ts +2 -0
- package/dist/components/Common/DataView/useDataView.js.map +1 -1
- package/dist/components/Common/DocumentViewer/DocumentViewer.js +10 -10
- package/dist/components/Common/DocumentViewer/DocumentViewer.js.map +1 -1
- package/dist/components/Common/DocumentViewer/DocumentViewer.module.scss.js +9 -9
- package/dist/components/Common/PaginationControl/PaginationControl.js +11 -10
- package/dist/components/Common/PaginationControl/PaginationControl.js.map +1 -1
- package/dist/components/Common/PaginationControl/PaginationControlTypes.d.ts +1 -1
- package/dist/components/Common/UI/DescriptionList/DescriptionList.js +11 -10
- package/dist/components/Common/UI/DescriptionList/DescriptionList.js.map +1 -1
- package/dist/components/Common/UI/DescriptionList/DescriptionList.module.scss.js +4 -4
- package/dist/components/Common/UI/Input/InputTypes.d.ts +1 -1
- package/dist/components/Common/UI/Input/InputTypes.js.map +1 -1
- package/dist/components/Common/UI/NumberInput/NumberInput.js +51 -48
- package/dist/components/Common/UI/NumberInput/NumberInput.js.map +1 -1
- package/dist/components/Common/VisuallyHidden/VisuallyHidden.d.ts +1 -1
- package/dist/components/Common/VisuallyHidden/VisuallyHidden.js.map +1 -1
- 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/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/context.js +3 -4
- package/dist/components/Company/BankAccount/BankAccountForm/context.js.map +1 -1
- 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/shared/useSignCompanyForm/fields.js +4 -4
- package/dist/components/Company/FederalTaxes/useFederalTaxes.js +5 -6
- 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/useLocationForm.js +3 -4
- package/dist/components/Company/Locations/LocationForm/useLocationForm.js.map +1 -1
- 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/context.js +3 -4
- package/dist/components/Company/OnboardingOverview/context.js.map +1 -1
- package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/fields.js +5 -5
- 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/useAddress.js +5 -6
- package/dist/components/Contractor/Address/useAddress.js.map +1 -1
- package/dist/components/Contractor/Profile/useContractorProfile.js +33 -34
- package/dist/components/Contractor/Profile/useContractorProfile.js.map +1 -1
- package/dist/components/Employee/Compensation/management/EditCompensation/EditCompensation.js +14 -11
- package/dist/components/Employee/Compensation/management/EditCompensation/EditCompensation.js.map +1 -1
- package/dist/components/Employee/Compensation/management/EditPendingCompensation/EditPendingCompensation.js +0 -2
- package/dist/components/Employee/Compensation/management/EditPendingCompensation/EditPendingCompensation.js.map +1 -1
- package/dist/components/Employee/Compensation/management/ManagementCompensationFormBody.js +18 -18
- package/dist/components/Employee/Compensation/management/ManagementCompensationFormBody.js.map +1 -1
- package/dist/components/Employee/Compensation/onboarding/JobsList/JobsListPresentation.js +36 -36
- package/dist/components/Employee/Compensation/onboarding/JobsList/JobsListPresentation.js.map +1 -1
- package/dist/components/Employee/Compensation/shared/useCompensationForm/fields.js +4 -4
- package/dist/components/Employee/Compensation/shared/useCompensationForm/useCompensationForm.js +140 -140
- package/dist/components/Employee/Compensation/shared/useCompensationForm/useCompensationForm.js.map +1 -1
- package/dist/components/Employee/Compensation/shared/useJobForm/fields.js +6 -6
- package/dist/components/Employee/Compensation/shared/useJobForm/useJobForm.d.ts +6 -5
- package/dist/components/Employee/Compensation/shared/useJobForm/useJobForm.js +162 -131
- package/dist/components/Employee/Compensation/shared/useJobForm/useJobForm.js.map +1 -1
- package/dist/components/Employee/Dashboard/BasicDetailsView.js +74 -88
- package/dist/components/Employee/Dashboard/BasicDetailsView.js.map +1 -1
- package/dist/components/Employee/Dashboard/Dashboard.js +53 -51
- package/dist/components/Employee/Dashboard/Dashboard.js.map +1 -1
- package/dist/components/Employee/Dashboard/DocumentsView.js +17 -10
- package/dist/components/Employee/Dashboard/DocumentsView.js.map +1 -1
- package/dist/components/Employee/Dashboard/JobAndPayView.js +383 -357
- package/dist/components/Employee/Dashboard/JobAndPayView.js.map +1 -1
- package/dist/components/Employee/Dashboard/TaxesView.js +114 -101
- package/dist/components/Employee/Dashboard/TaxesView.js.map +1 -1
- package/dist/components/Employee/Dashboard/getPendingCompensationChanges.js +36 -36
- package/dist/components/Employee/Dashboard/getPendingCompensationChanges.js.map +1 -1
- package/dist/components/Employee/Deductions/DeductionsForm/StandardDeductionForm.js +57 -57
- package/dist/components/Employee/Deductions/DeductionsForm/StandardDeductionForm.js.map +1 -1
- package/dist/components/Employee/Deductions/shared/useChildSupportGarnishmentForm/childSupportGarnishmentFormSchema.d.ts +14 -5
- package/dist/components/Employee/Deductions/shared/useChildSupportGarnishmentForm/childSupportGarnishmentFormSchema.js +55 -36
- package/dist/components/Employee/Deductions/shared/useChildSupportGarnishmentForm/childSupportGarnishmentFormSchema.js.map +1 -1
- package/dist/components/Employee/Deductions/shared/useChildSupportGarnishmentForm/fields.js +8 -8
- package/dist/components/Employee/Deductions/shared/useChildSupportGarnishmentForm/useChildSupportGarnishmentForm.js +18 -18
- package/dist/components/Employee/Deductions/shared/useChildSupportGarnishmentForm/useChildSupportGarnishmentForm.js.map +1 -1
- package/dist/components/Employee/Deductions/shared/useDeductionForm/fields.js +4 -4
- package/dist/components/Employee/Deductions/shared/useDeductionForm/useDeductionForm.d.ts +3 -3
- package/dist/components/Employee/Deductions/shared/useDeductionForm/useDeductionForm.js.map +1 -1
- package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/useDocumentList.js +3 -4
- package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
- package/dist/components/Employee/Documents/shared/useSignEmployeeForm/fields.js +1 -1
- package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/fields.js +4 -4
- package/dist/components/Employee/HomeAddress/management/HomeAddressView.js +157 -147
- package/dist/components/Employee/HomeAddress/management/HomeAddressView.js.map +1 -1
- package/dist/components/Employee/HomeAddress/management/useHomeAddressManagement.js +56 -55
- package/dist/components/Employee/HomeAddress/management/useHomeAddressManagement.js.map +1 -1
- package/dist/components/Employee/PaymentMethod/onboarding/BankForm.js +20 -20
- package/dist/components/Employee/PaymentMethod/onboarding/BankForm.js.map +1 -1
- package/dist/components/Employee/PaymentMethod/shared/useBankForm/fields.js +1 -1
- package/dist/components/Employee/PaymentMethod/shared/useSplitPaymentsForm/splitFieldFactory.d.ts +1 -1
- package/dist/components/Employee/PaymentMethod/shared/useSplitPaymentsForm/splitFieldFactory.js +4 -4
- package/dist/components/Employee/PaymentMethod/shared/useSplitPaymentsForm/splitFieldFactory.js.map +1 -1
- package/dist/components/Employee/Profile/shared/useEmployeeDetailsForm/fields.js +8 -8
- package/dist/components/Employee/Profile/shared/useHomeAddressForm/fields.js +5 -5
- package/dist/components/Employee/Profile/shared/useHomeAddressForm/homeAddressSchema.d.ts +0 -1
- package/dist/components/Employee/Profile/shared/useHomeAddressForm/homeAddressSchema.js +11 -12
- package/dist/components/Employee/Profile/shared/useHomeAddressForm/homeAddressSchema.js.map +1 -1
- package/dist/components/Employee/Profile/shared/useHomeAddressForm/homeAddressSchema.test.d.ts +1 -0
- package/dist/components/Employee/Profile/shared/useHomeAddressForm/useHomeAddressForm.d.ts +6 -1
- package/dist/components/Employee/Profile/shared/useHomeAddressForm/useHomeAddressForm.js +95 -94
- package/dist/components/Employee/Profile/shared/useHomeAddressForm/useHomeAddressForm.js.map +1 -1
- package/dist/components/Employee/Profile/shared/useWorkAddressForm/fields.js +4 -4
- package/dist/components/Employee/Profile/shared/useWorkAddressForm/useWorkAddressForm.d.ts +6 -1
- package/dist/components/Employee/Profile/shared/useWorkAddressForm/useWorkAddressForm.js +87 -86
- package/dist/components/Employee/Profile/shared/useWorkAddressForm/useWorkAddressForm.js.map +1 -1
- package/dist/components/Employee/StateTaxes/shared/EmployeeStateTaxesView.js +18 -18
- package/dist/components/Employee/StateTaxes/shared/EmployeeStateTaxesView.js.map +1 -1
- package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fieldComponents.js +8 -8
- package/dist/components/Employee/Taxes/useTaxes.js +3 -4
- package/dist/components/Employee/Taxes/useTaxes.js.map +1 -1
- package/dist/components/Employee/WorkAddress/management/WorkAddressView.js +5 -1
- package/dist/components/Employee/WorkAddress/management/WorkAddressView.js.map +1 -1
- package/dist/components/Employee/WorkAddress/management/useWorkAddressManagement.js +61 -60
- package/dist/components/Employee/WorkAddress/management/useWorkAddressManagement.js.map +1 -1
- package/dist/components/Payroll/GrossUpModal/GrossUpModal.js +2 -3
- package/dist/components/Payroll/GrossUpModal/GrossUpModal.js.map +1 -1
- package/dist/components/Payroll/usePreparedPayrollData.js +2 -3
- package/dist/components/Payroll/usePreparedPayrollData.js.map +1 -1
- package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesHoliday.js +6 -7
- package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesHoliday.js.map +1 -1
- package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentation.d.ts +1 -1
- package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentation.js +52 -68
- package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentation.js.map +1 -1
- package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentation.module.scss.js +4 -4
- package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentationTypes.d.ts +0 -11
- package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesTimeOff.js +137 -163
- package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesTimeOff.js.map +1 -1
- package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/useSelectEmployeesData.js +36 -35
- package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/useSelectEmployeesData.js.map +1 -1
- package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetailPresentation.js +34 -34
- package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetailPresentation.js.map +1 -1
- package/dist/helpers/breadcrumbHelpers.d.ts +1 -1
- package/dist/helpers/breadcrumbHelpers.js.map +1 -1
- package/dist/helpers/federalEin.d.ts +1 -0
- package/dist/helpers/federalEin.js.map +1 -1
- package/dist/helpers/mask.d.ts +8 -4
- package/dist/helpers/mask.js.map +1 -1
- package/dist/helpers/rem.d.ts +2 -1
- package/dist/helpers/rem.js.map +1 -1
- package/dist/hooks/useAsyncError.d.ts +1 -0
- package/dist/hooks/useAsyncError.js.map +1 -1
- package/dist/hooks/useForkRef/useForkRef.d.ts +1 -0
- package/dist/hooks/useForkRef/useForkRef.js.map +1 -1
- package/dist/i18n/I18n.d.ts +9 -1
- package/dist/i18n/I18n.js.map +1 -1
- package/dist/i18n/en/Company.TimeOff.EmployeeTable.json.js +14 -14
- package/dist/i18n/en/Company.TimeOff.SelectEmployees.json.js +12 -18
- package/dist/i18n/en/Company.TimeOff.SelectEmployees.json.js.map +1 -1
- package/dist/i18n/en/Employee.Compensation.json.js +24 -24
- package/dist/i18n/en/Employee.Dashboard.json.js +22 -20
- package/dist/i18n/en/Employee.Dashboard.json.js.map +1 -1
- package/dist/i18n/en/Employee.PaymentMethod.json.js +25 -25
- package/dist/i18n/en/Employee.StateTaxes.json.js +12 -10
- package/dist/i18n/en/Employee.StateTaxes.json.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/hooks.d.ts +1 -1
- package/dist/types/i18next.d.ts +4 -17
- package/dist/types/observability.d.ts +1 -1
- package/package.json +30 -27
- package/dist/components/Employee/Dashboard/CompensationCard.d.ts +0 -13
|
@@ -1,444 +1,453 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useCallback as
|
|
3
|
-
import { useTranslation as
|
|
4
|
-
import { useGustoEmbeddedContext as
|
|
5
|
-
import { payrollsGetPayStub as
|
|
6
|
-
import { useErrorBoundary as
|
|
7
|
-
import { useJobsAndCompensationsDeleteMutation as
|
|
8
|
-
import { usePendingChangeDetailRenderer as
|
|
9
|
-
import { PendingChangesReviewModal as
|
|
10
|
-
import
|
|
11
|
-
import { Flex as
|
|
12
|
-
import { useComponentContext as
|
|
1
|
+
import { jsx as t, jsxs as f, Fragment as rn } from "react/jsx-runtime";
|
|
2
|
+
import { useCallback as pe, useState as R, useEffect as dn } from "react";
|
|
3
|
+
import { useTranslation as k } from "react-i18next";
|
|
4
|
+
import { useGustoEmbeddedContext as cn } from "@gusto/embedded-api/react-query/_context";
|
|
5
|
+
import { payrollsGetPayStub as ln } from "@gusto/embedded-api/funcs/payrollsGetPayStub";
|
|
6
|
+
import { useErrorBoundary as un } from "react-error-boundary";
|
|
7
|
+
import { useJobsAndCompensationsDeleteMutation as mn } from "@gusto/embedded-api/react-query/jobsAndCompensationsDelete";
|
|
8
|
+
import { usePendingChangeDetailRenderer as pn } from "./usePendingChangeDetailRenderer.js";
|
|
9
|
+
import { PendingChangesReviewModal as yn } from "./PendingChangesReviewModal.js";
|
|
10
|
+
import ye from "./JobAndPayView.module.scss.js";
|
|
11
|
+
import { Flex as j } from "../../Common/Flex/Flex.js";
|
|
12
|
+
import { useComponentContext as bn } from "../../../contexts/ComponentAdapter/useComponentContext.js";
|
|
13
13
|
import "classnames";
|
|
14
|
-
import { componentEvents as P, FlsaStatus as
|
|
14
|
+
import { componentEvents as P, FlsaStatus as be, PAYMENT_METHODS as gn } from "../../../shared/constants.js";
|
|
15
15
|
import { Loading as v } from "../../Common/Loading/Loading.js";
|
|
16
|
-
import { EmptyData as
|
|
17
|
-
import { BaseLayout as
|
|
18
|
-
import { composeErrorHandler as
|
|
19
|
-
import { readableStreamToBlob as
|
|
20
|
-
import { formatDateToStringDate as
|
|
21
|
-
import { useFormatCompensationRate as
|
|
22
|
-
import
|
|
23
|
-
import { useI18n as
|
|
24
|
-
import { useDeleteBankAccount as
|
|
25
|
-
import { DeleteBankAccountDialog as
|
|
26
|
-
import { usePaymentMethodList as
|
|
27
|
-
import { useDeductionsList as
|
|
28
|
-
import { useDeleteDeduction as
|
|
29
|
-
import { DeleteDeductionDialog as
|
|
30
|
-
import { formatDeductionAmount as
|
|
31
|
-
import
|
|
32
|
-
import
|
|
33
|
-
import
|
|
34
|
-
import
|
|
35
|
-
import
|
|
36
|
-
import { useEmployeeCompensation as
|
|
37
|
-
import { VisuallyHidden as
|
|
38
|
-
import { HamburgerMenu as
|
|
39
|
-
import { useDataView as
|
|
40
|
-
import { DataView as
|
|
41
|
-
function
|
|
42
|
-
if (
|
|
43
|
-
const u = parseFloat(
|
|
16
|
+
import { EmptyData as _ } from "../../Common/EmptyData/EmptyData.js";
|
|
17
|
+
import { BaseLayout as hn } from "../../Base/Base.js";
|
|
18
|
+
import { composeErrorHandler as fn } from "../../../partner-hook-utils/composeErrorHandler.js";
|
|
19
|
+
import { readableStreamToBlob as Pn } from "../../../helpers/readableStreamToBlob.js";
|
|
20
|
+
import { formatDateToStringDate as Cn, formatDateLongWithYear as L } from "../../../helpers/dateFormatting.js";
|
|
21
|
+
import { useFormatCompensationRate as An } from "../../../helpers/formattedStrings.js";
|
|
22
|
+
import ge from "../../../hooks/useNumberFormatter.js";
|
|
23
|
+
import { useI18n as F } from "../../../i18n/I18n.js";
|
|
24
|
+
import { useDeleteBankAccount as Dn } from "../PaymentMethod/shared/useDeleteBankAccount.js";
|
|
25
|
+
import { DeleteBankAccountDialog as jn } from "../PaymentMethod/shared/DeleteBankAccountDialog.js";
|
|
26
|
+
import { usePaymentMethodList as Ln } from "../PaymentMethod/shared/usePaymentMethodList.js";
|
|
27
|
+
import { useDeductionsList as wn } from "../Deductions/shared/useDeductionsList.js";
|
|
28
|
+
import { useDeleteDeduction as En } from "../Deductions/shared/useDeleteDeduction.js";
|
|
29
|
+
import { DeleteDeductionDialog as kn } from "../Deductions/shared/DeleteDeductionDialog.js";
|
|
30
|
+
import { formatDeductionAmount as vn } from "../Deductions/shared/formatDeductionAmount.js";
|
|
31
|
+
import U from "../../../assets/icons/plus-circle.svg.js";
|
|
32
|
+
import Un from "../../../assets/icons/percent-circle.svg.js";
|
|
33
|
+
import Sn from "../../../assets/icons/download-cloud.svg.js";
|
|
34
|
+
import V from "../../../assets/icons/trashcan.svg.js";
|
|
35
|
+
import he from "../../../assets/icons/pencil.svg.js";
|
|
36
|
+
import { useEmployeeCompensation as Bn } from "./hooks/useEmployeeCompensation.js";
|
|
37
|
+
import { VisuallyHidden as Jn } from "../../Common/VisuallyHidden/VisuallyHidden.js";
|
|
38
|
+
import { HamburgerMenu as Y } from "../../Common/HamburgerMenu/HamburgerMenu.js";
|
|
39
|
+
import { useDataView as S } from "../../Common/DataView/useDataView.js";
|
|
40
|
+
import { DataView as B } from "../../Common/DataView/DataView.js";
|
|
41
|
+
function fe(r) {
|
|
42
|
+
if (r === void 0) return null;
|
|
43
|
+
const u = parseFloat(r);
|
|
44
44
|
return Number.isFinite(u) ? u : null;
|
|
45
45
|
}
|
|
46
|
-
function
|
|
47
|
-
employeeId:
|
|
46
|
+
function Ct({
|
|
47
|
+
employeeId: r,
|
|
48
48
|
onEvent: u,
|
|
49
|
-
onEditCompensation:
|
|
50
|
-
onAddJob:
|
|
51
|
-
onAddAnotherJob:
|
|
52
|
-
onAddDeduction:
|
|
53
|
-
onEditDeduction:
|
|
49
|
+
onEditCompensation: W,
|
|
50
|
+
onAddJob: Pe,
|
|
51
|
+
onAddAnotherJob: Ce,
|
|
52
|
+
onAddDeduction: Ae,
|
|
53
|
+
onEditDeduction: De
|
|
54
54
|
}) {
|
|
55
|
-
|
|
56
|
-
const { t } =
|
|
57
|
-
jobs:
|
|
58
|
-
primaryFlsaStatus:
|
|
59
|
-
pendingChanges:
|
|
60
|
-
hasMultipleJobs:
|
|
61
|
-
payStubs:
|
|
62
|
-
employeeFirstName:
|
|
63
|
-
} =
|
|
55
|
+
F("Employee.PaymentMethod"), F("Employee.Compensation"), F("Employee.Deductions");
|
|
56
|
+
const { t: n } = k("Employee.Dashboard"), { t: C } = k("Employee.PaymentMethod"), { t: je } = k("Employee.Compensation"), { t: J } = k("Employee.Deductions"), i = bn(), I = An(), N = ge("currency"), Le = ge("percent"), G = cn(), { showBoundary: q } = un(), p = Bn({ employeeId: r }), {
|
|
57
|
+
jobs: A,
|
|
58
|
+
primaryFlsaStatus: we,
|
|
59
|
+
pendingChanges: K,
|
|
60
|
+
hasMultipleJobs: Ee,
|
|
61
|
+
payStubs: ke,
|
|
62
|
+
employeeFirstName: x
|
|
63
|
+
} = p.data, ve = p.pagination.payStubs, z = p.status.cancellingCompensationUuid, { cancelPendingChange: X } = p.actions, T = p.status.isCompensationLoading, Ue = p.status.isPayStubsLoading, $ = pe(
|
|
64
64
|
async (e) => {
|
|
65
|
-
await
|
|
66
|
-
employeeId:
|
|
65
|
+
await X(e) && u(P.EMPLOYEE_COMPENSATION_CHANGE_CANCELLED, {
|
|
66
|
+
employeeId: r,
|
|
67
67
|
compensationId: e.compensationUuid
|
|
68
68
|
});
|
|
69
69
|
},
|
|
70
|
-
[
|
|
71
|
-
), [
|
|
70
|
+
[X, u, r]
|
|
71
|
+
), [Se, Q] = R(
|
|
72
72
|
() => /* @__PURE__ */ new Set()
|
|
73
|
-
),
|
|
73
|
+
), Be = pe(
|
|
74
74
|
async (e) => {
|
|
75
|
-
const
|
|
76
|
-
if (
|
|
77
|
-
const
|
|
78
|
-
|
|
79
|
-
const
|
|
80
|
-
|
|
81
|
-
const g =
|
|
75
|
+
const o = window.open("", "_blank"), d = n("jobAndPay.paystubs.downloadLoadingMessage");
|
|
76
|
+
if (o) {
|
|
77
|
+
const a = o.document;
|
|
78
|
+
a.title = d;
|
|
79
|
+
const c = a.createElement("style");
|
|
80
|
+
c.textContent = "body{font-family:system-ui,-apple-system,sans-serif;display:flex;align-items:center;justify-content:center;height:100vh;margin:0;color:#444;gap:12px}.spinner{width:20px;height:20px;border:2px solid #ccc;border-top-color:#444;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}", a.head.appendChild(c);
|
|
81
|
+
const g = a.createElement("div");
|
|
82
82
|
g.className = "spinner", g.setAttribute("aria-hidden", "true");
|
|
83
|
-
const
|
|
84
|
-
|
|
83
|
+
const me = a.createElement("span");
|
|
84
|
+
me.textContent = d, a.body.replaceChildren(g, me);
|
|
85
85
|
}
|
|
86
|
-
|
|
87
|
-
const
|
|
88
|
-
return
|
|
86
|
+
Q((a) => {
|
|
87
|
+
const c = new Set(a);
|
|
88
|
+
return c.add(e), c;
|
|
89
89
|
});
|
|
90
90
|
try {
|
|
91
|
-
const
|
|
91
|
+
const a = await ln(G, {
|
|
92
92
|
payrollId: e,
|
|
93
|
-
employeeId:
|
|
93
|
+
employeeId: r
|
|
94
94
|
});
|
|
95
|
-
if (!
|
|
96
|
-
throw new Error(
|
|
97
|
-
const
|
|
98
|
-
|
|
95
|
+
if (!a.value?.responseStream)
|
|
96
|
+
throw new Error(n("jobAndPay.paystubs.downloadError"));
|
|
97
|
+
const c = await Pn(a.value.responseStream, "application/pdf"), g = URL.createObjectURL(c);
|
|
98
|
+
o ? (o.addEventListener("load", () => {
|
|
99
99
|
URL.revokeObjectURL(g);
|
|
100
|
-
}),
|
|
101
|
-
} catch (
|
|
102
|
-
|
|
100
|
+
}), o.location.href = g) : URL.revokeObjectURL(g);
|
|
101
|
+
} catch (a) {
|
|
102
|
+
o && o.close(), q(a instanceof Error ? a : new Error(String(a)));
|
|
103
103
|
} finally {
|
|
104
|
-
|
|
105
|
-
const
|
|
106
|
-
return
|
|
104
|
+
Q((a) => {
|
|
105
|
+
const c = new Set(a);
|
|
106
|
+
return c.delete(e), c;
|
|
107
107
|
});
|
|
108
108
|
}
|
|
109
109
|
},
|
|
110
|
-
[
|
|
111
|
-
), [D,
|
|
110
|
+
[G, r, n, q]
|
|
111
|
+
), [D, M] = R(null), { mutateAsync: Je, isPending: Z } = mn(), Ne = async () => {
|
|
112
112
|
if (!D) return;
|
|
113
113
|
const e = D.uuid;
|
|
114
|
-
await
|
|
115
|
-
},
|
|
116
|
-
(e) => e.effectiveDate !== void 0 && e.effectiveDate >
|
|
117
|
-
) ?? !1,
|
|
118
|
-
(e) => e.uuid ===
|
|
119
|
-
),
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
114
|
+
await Je({ request: { jobId: e } }), u(P.EMPLOYEE_JOB_DELETED, { employeeId: r, jobId: e }), M(null);
|
|
115
|
+
}, s = A.length === 1 ? A[0] : void 0, h = Ee, xe = Cn(/* @__PURE__ */ new Date()) ?? "", Te = A.find((e) => e.primary)?.compensations?.some(
|
|
116
|
+
(e) => e.effectiveDate !== void 0 && e.effectiveDate > xe && e.flsaStatus !== be.NONEXEMPT
|
|
117
|
+
) ?? !1, Me = A.length >= 1 && we === be.NONEXEMPT && !Te, ee = s ? fe(s.rate) : null, ne = s?.compensations?.find(
|
|
118
|
+
(e) => e.uuid === s.currentCompensationUuid
|
|
119
|
+
), w = /* @__PURE__ */ t("span", { "aria-label": n("listEmptyPlaceholder"), children: "–" }), Oe = s?.paymentUnit ? s.paymentUnit === "Hour" ? n("jobAndPay.compensation.types.hourly") : s.paymentUnit === "Salary" || s.paymentUnit === "Year" ? n("jobAndPay.compensation.types.salary") : s.paymentUnit : null, [He, O] = R(!1), Re = pn(x), _e = K.filter((e) => e.isNewJob), y = K.filter((e) => !e.isNewJob);
|
|
120
|
+
dn(() => {
|
|
121
|
+
y.length === 0 && O(!1);
|
|
122
|
+
}, [y.length]);
|
|
123
|
+
const H = new Set(_e.map((e) => e.jobUuid)), Fe = s ? H.has(s.uuid) : !1, Ve = H.size > 0, te = new Set(y.map((e) => e.jobUuid)), Ye = s ? te.has(s.uuid) : !1, oe = y.length > 0, ie = h && y.length > 1, We = oe && !ie, b = y[0], l = Ln({ employeeId: r }), ae = l.isLoading ? void 0 : l.data.paymentMethod, E = l.isLoading ? [] : l.data.bankAccounts, Ie = l.isLoading ? void 0 : l.status.deletePendingBankAccountUuid, { pendingDeleteAccount: se, setPendingDeleteAccount: re, handleConfirmDelete: Ge } = Dn(async (e) => {
|
|
123
124
|
if (l.isLoading) return;
|
|
124
|
-
const
|
|
125
|
-
|
|
126
|
-
}),
|
|
127
|
-
pendingDeleteDeduction:
|
|
128
|
-
setPendingDeleteDeduction:
|
|
129
|
-
handleConfirmDelete:
|
|
130
|
-
} =
|
|
131
|
-
if (
|
|
132
|
-
const
|
|
133
|
-
|
|
134
|
-
}),
|
|
125
|
+
const o = await l.actions.onDelete(e);
|
|
126
|
+
o && u(P.EMPLOYEE_BANK_ACCOUNT_DELETED, o.data);
|
|
127
|
+
}), m = wn({ employeeId: r }), qe = m.isLoading ? [] : m.data.deductions, de = m.isLoading ? void 0 : m.status.deletingGarnishmentUuid, {
|
|
128
|
+
pendingDeleteDeduction: ce,
|
|
129
|
+
setPendingDeleteDeduction: le,
|
|
130
|
+
handleConfirmDelete: Ke
|
|
131
|
+
} = En(async (e) => {
|
|
132
|
+
if (m.isLoading) return;
|
|
133
|
+
const o = await m.actions.onDelete(e);
|
|
134
|
+
o && u(P.EMPLOYEE_DEDUCTION_DELETED, o.data.garnishment);
|
|
135
|
+
}), ze = fn([p, l, m]), Xe = [
|
|
135
136
|
{
|
|
136
137
|
key: "jobTitle",
|
|
137
|
-
title:
|
|
138
|
+
title: n("jobAndPay.compensation.columns.jobTitle"),
|
|
138
139
|
render: (e) => {
|
|
139
|
-
const
|
|
140
|
-
return /* @__PURE__ */
|
|
141
|
-
|
|
142
|
-
|
|
140
|
+
const o = e.compensations?.find((a) => a.uuid === e.currentCompensationUuid), d = fe(e.rate);
|
|
141
|
+
return /* @__PURE__ */ f(rn, { children: [
|
|
142
|
+
o?.title || "-",
|
|
143
|
+
d !== null && e.paymentUnit ? /* @__PURE__ */ t(i.Text, { variant: "supporting", size: "sm", children: I(d, e.paymentUnit) }) : null
|
|
143
144
|
] });
|
|
144
145
|
}
|
|
145
146
|
},
|
|
146
147
|
{
|
|
147
148
|
key: "payType",
|
|
148
|
-
title:
|
|
149
|
+
title: n("jobAndPay.compensation.columns.payType"),
|
|
149
150
|
render: (e) => {
|
|
150
|
-
const
|
|
151
|
-
(
|
|
151
|
+
const o = e.compensations?.find(
|
|
152
|
+
(d) => d.uuid === e.currentCompensationUuid
|
|
152
153
|
)?.flsaStatus;
|
|
153
|
-
return
|
|
154
|
+
return o !== void 0 ? je(`flsaStatusLabels.${o}`) : "-";
|
|
154
155
|
}
|
|
155
156
|
},
|
|
156
157
|
{
|
|
157
158
|
key: "effectiveDate",
|
|
158
|
-
title:
|
|
159
|
+
title: n("jobAndPay.compensation.columns.effectiveDate"),
|
|
159
160
|
render: (e) => {
|
|
160
|
-
const
|
|
161
|
-
return
|
|
161
|
+
const o = e.compensations?.find((d) => d.uuid === e.currentCompensationUuid);
|
|
162
|
+
return o?.effectiveDate ? L(o.effectiveDate) : "-";
|
|
162
163
|
}
|
|
163
164
|
},
|
|
164
|
-
...
|
|
165
|
+
...Ve ? [
|
|
165
166
|
{
|
|
166
167
|
key: "status",
|
|
167
|
-
title: /* @__PURE__ */
|
|
168
|
-
render: (e) =>
|
|
168
|
+
title: /* @__PURE__ */ t(Jn, { children: n("jobAndPay.compensation.columns.status") }),
|
|
169
|
+
render: (e) => H.has(e.uuid) ? /* @__PURE__ */ t(i.Badge, { status: "warning", children: n("jobAndPay.compensation.pendingStatus") }) : null
|
|
169
170
|
}
|
|
170
171
|
] : []
|
|
171
|
-
],
|
|
172
|
-
data:
|
|
173
|
-
columns:
|
|
174
|
-
itemMenu: (e) =>
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
triggerLabel: t("jobAndPay.compensation.hamburgerTitle"),
|
|
178
|
-
isLoading: $,
|
|
179
|
-
items: [
|
|
172
|
+
], $e = S({
|
|
173
|
+
data: A,
|
|
174
|
+
columns: Xe,
|
|
175
|
+
itemMenu: (e) => {
|
|
176
|
+
const d = [
|
|
177
|
+
...te.has(e.uuid) ? [] : [
|
|
180
178
|
{
|
|
181
|
-
label:
|
|
182
|
-
icon: /* @__PURE__ */
|
|
179
|
+
label: n("jobAndPay.compensation.editJobCta"),
|
|
180
|
+
icon: /* @__PURE__ */ t(he, { "aria-hidden": !0 }),
|
|
183
181
|
onClick: () => {
|
|
184
|
-
|
|
182
|
+
W?.(e);
|
|
185
183
|
}
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
184
|
+
}
|
|
185
|
+
],
|
|
186
|
+
...e.primary ? [] : [
|
|
187
|
+
{
|
|
188
|
+
label: n("jobAndPay.compensation.deleteJobCta"),
|
|
189
|
+
icon: /* @__PURE__ */ t(V, { "aria-hidden": !0 }),
|
|
190
|
+
onClick: () => {
|
|
191
|
+
const a = e.compensations?.find(
|
|
192
|
+
(c) => c.uuid === e.currentCompensationUuid
|
|
193
|
+
);
|
|
194
|
+
M({ uuid: e.uuid, title: a?.title ?? "" });
|
|
194
195
|
}
|
|
195
|
-
|
|
196
|
+
}
|
|
196
197
|
]
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
198
|
+
];
|
|
199
|
+
return d.length === 0 ? null : /* @__PURE__ */ t(
|
|
200
|
+
Y,
|
|
201
|
+
{
|
|
202
|
+
triggerLabel: n("jobAndPay.compensation.hamburgerTitle"),
|
|
203
|
+
isLoading: Z,
|
|
204
|
+
items: d
|
|
205
|
+
}
|
|
206
|
+
);
|
|
207
|
+
}
|
|
208
|
+
}), Qe = [
|
|
200
209
|
{
|
|
201
210
|
key: "nickname",
|
|
202
|
-
title:
|
|
211
|
+
title: n("jobAndPay.payment.nickname"),
|
|
203
212
|
render: (e) => e.name || "-"
|
|
204
213
|
},
|
|
205
214
|
{
|
|
206
215
|
key: "routingNumber",
|
|
207
|
-
title:
|
|
216
|
+
title: n("jobAndPay.payment.routingNumber"),
|
|
208
217
|
render: (e) => e.routingNumber || "-"
|
|
209
218
|
},
|
|
210
219
|
{
|
|
211
220
|
key: "accountType",
|
|
212
|
-
title:
|
|
221
|
+
title: n("jobAndPay.payment.accountType"),
|
|
213
222
|
render: (e) => e.accountType || "-"
|
|
214
223
|
}
|
|
215
|
-
],
|
|
224
|
+
], Ze = [
|
|
216
225
|
{
|
|
217
226
|
key: "description",
|
|
218
|
-
title:
|
|
227
|
+
title: n("jobAndPay.deductions.deduction"),
|
|
219
228
|
render: (e) => e.description || "-"
|
|
220
229
|
},
|
|
221
230
|
{
|
|
222
231
|
key: "frequency",
|
|
223
|
-
title:
|
|
224
|
-
render: (e) => e.recurring ?
|
|
232
|
+
title: n("jobAndPay.deductions.frequency"),
|
|
233
|
+
render: (e) => e.recurring ? n("jobAndPay.deductions.recurring") : n("jobAndPay.deductions.oneTime")
|
|
225
234
|
},
|
|
226
235
|
{
|
|
227
236
|
key: "amount",
|
|
228
|
-
title:
|
|
229
|
-
render: (e) =>
|
|
230
|
-
formatCurrency:
|
|
231
|
-
formatPercent:
|
|
232
|
-
formatPerPaycheck: (
|
|
237
|
+
title: n("jobAndPay.deductions.withhold"),
|
|
238
|
+
render: (e) => vn(e, {
|
|
239
|
+
formatCurrency: N,
|
|
240
|
+
formatPercent: Le,
|
|
241
|
+
formatPerPaycheck: (o) => n("jobAndPay.deductions.amountPerPaycheck", { value: o })
|
|
233
242
|
})
|
|
234
243
|
}
|
|
235
|
-
],
|
|
244
|
+
], en = [
|
|
236
245
|
{
|
|
237
246
|
key: "payday",
|
|
238
|
-
title:
|
|
239
|
-
render: (e) =>
|
|
247
|
+
title: n("jobAndPay.paystubs.payday"),
|
|
248
|
+
render: (e) => L(e.checkDate) || "-"
|
|
240
249
|
},
|
|
241
250
|
{
|
|
242
251
|
key: "checkAmount",
|
|
243
|
-
title:
|
|
252
|
+
title: n("jobAndPay.paystubs.checkAmount"),
|
|
244
253
|
render: (e) => {
|
|
245
254
|
if (!e.netPay) return "-";
|
|
246
|
-
const
|
|
247
|
-
return isNaN(
|
|
255
|
+
const o = parseFloat(e.netPay);
|
|
256
|
+
return isNaN(o) ? "-" : N(o);
|
|
248
257
|
}
|
|
249
258
|
},
|
|
250
259
|
{
|
|
251
260
|
key: "grossPay",
|
|
252
|
-
title:
|
|
261
|
+
title: n("jobAndPay.paystubs.grossPay"),
|
|
253
262
|
render: (e) => {
|
|
254
263
|
if (!e.grossPay) return "-";
|
|
255
|
-
const
|
|
256
|
-
return isNaN(
|
|
264
|
+
const o = parseFloat(e.grossPay);
|
|
265
|
+
return isNaN(o) ? "-" : N(o);
|
|
257
266
|
}
|
|
258
267
|
},
|
|
259
268
|
{
|
|
260
269
|
key: "paymentMethod",
|
|
261
|
-
title:
|
|
262
|
-
render: () =>
|
|
270
|
+
title: n("jobAndPay.paystubs.paymentMethod"),
|
|
271
|
+
render: () => ae?.type || n("jobAndPay.paystubs.noPaymentMethod")
|
|
263
272
|
}
|
|
264
|
-
],
|
|
265
|
-
data:
|
|
266
|
-
columns:
|
|
267
|
-
itemMenu: (e) => /* @__PURE__ */
|
|
268
|
-
|
|
273
|
+
], nn = S({
|
|
274
|
+
data: E,
|
|
275
|
+
columns: Qe,
|
|
276
|
+
itemMenu: (e) => /* @__PURE__ */ t(
|
|
277
|
+
Y,
|
|
269
278
|
{
|
|
270
279
|
items: [
|
|
271
280
|
{
|
|
272
|
-
label:
|
|
281
|
+
label: C("deleteBankAccountCta"),
|
|
273
282
|
onClick: () => {
|
|
274
|
-
|
|
283
|
+
re({
|
|
275
284
|
uuid: e.uuid,
|
|
276
285
|
hiddenAccountNumber: e.hiddenAccountNumber
|
|
277
286
|
});
|
|
278
287
|
},
|
|
279
|
-
icon: /* @__PURE__ */
|
|
288
|
+
icon: /* @__PURE__ */ t(V, { "aria-hidden": !0 })
|
|
280
289
|
}
|
|
281
290
|
],
|
|
282
|
-
triggerLabel:
|
|
291
|
+
triggerLabel: C("hamburgerTitle")
|
|
283
292
|
}
|
|
284
293
|
)
|
|
285
|
-
}),
|
|
286
|
-
data:
|
|
287
|
-
columns:
|
|
288
|
-
itemMenu: (e) => /* @__PURE__ */
|
|
289
|
-
|
|
294
|
+
}), tn = S({
|
|
295
|
+
data: qe,
|
|
296
|
+
columns: Ze,
|
|
297
|
+
itemMenu: (e) => /* @__PURE__ */ t(
|
|
298
|
+
Y,
|
|
290
299
|
{
|
|
291
|
-
isLoading:
|
|
300
|
+
isLoading: de === e.uuid,
|
|
292
301
|
items: [
|
|
293
302
|
{
|
|
294
|
-
label:
|
|
295
|
-
onClick: () =>
|
|
296
|
-
icon: /* @__PURE__ */
|
|
303
|
+
label: J("editCta"),
|
|
304
|
+
onClick: () => De?.(e),
|
|
305
|
+
icon: /* @__PURE__ */ t(he, { "aria-hidden": !0 })
|
|
297
306
|
},
|
|
298
307
|
{
|
|
299
|
-
label:
|
|
308
|
+
label: J("deleteCta"),
|
|
300
309
|
onClick: () => {
|
|
301
|
-
|
|
310
|
+
le(e);
|
|
302
311
|
},
|
|
303
|
-
icon: /* @__PURE__ */
|
|
312
|
+
icon: /* @__PURE__ */ t(V, { "aria-hidden": !0 })
|
|
304
313
|
}
|
|
305
314
|
],
|
|
306
|
-
triggerLabel:
|
|
315
|
+
triggerLabel: J("hamburgerTitle")
|
|
307
316
|
}
|
|
308
317
|
),
|
|
309
|
-
emptyState: () => /* @__PURE__ */
|
|
310
|
-
|
|
318
|
+
emptyState: () => /* @__PURE__ */ t(
|
|
319
|
+
_,
|
|
311
320
|
{
|
|
312
|
-
title:
|
|
313
|
-
description:
|
|
321
|
+
title: n("jobAndPay.deductions.emptyState.title"),
|
|
322
|
+
description: n("jobAndPay.deductions.emptyState.description")
|
|
314
323
|
}
|
|
315
324
|
)
|
|
316
|
-
}),
|
|
317
|
-
data:
|
|
318
|
-
columns:
|
|
319
|
-
pagination:
|
|
325
|
+
}), on = S({
|
|
326
|
+
data: ke,
|
|
327
|
+
columns: en,
|
|
328
|
+
pagination: ve,
|
|
320
329
|
itemMenu: (e) => {
|
|
321
|
-
const
|
|
322
|
-
return /* @__PURE__ */
|
|
323
|
-
|
|
330
|
+
const o = !!e.payrollUuid && Se.has(e.payrollUuid);
|
|
331
|
+
return /* @__PURE__ */ t(
|
|
332
|
+
i.ButtonIcon,
|
|
324
333
|
{
|
|
325
334
|
variant: "tertiary",
|
|
326
|
-
"aria-label":
|
|
335
|
+
"aria-label": n("jobAndPay.paystubs.downloadCta"),
|
|
327
336
|
isDisabled: !e.payrollUuid,
|
|
328
|
-
isLoading:
|
|
337
|
+
isLoading: o,
|
|
329
338
|
onClick: () => {
|
|
330
|
-
e.payrollUuid &&
|
|
339
|
+
e.payrollUuid && Be(e.payrollUuid);
|
|
331
340
|
},
|
|
332
|
-
children: /* @__PURE__ */
|
|
341
|
+
children: /* @__PURE__ */ t(Sn, { "aria-hidden": !0 })
|
|
333
342
|
}
|
|
334
343
|
);
|
|
335
344
|
},
|
|
336
|
-
emptyState: () => /* @__PURE__ */
|
|
337
|
-
|
|
345
|
+
emptyState: () => /* @__PURE__ */ t(
|
|
346
|
+
_,
|
|
338
347
|
{
|
|
339
|
-
title:
|
|
340
|
-
description:
|
|
348
|
+
title: n("jobAndPay.paystubs.emptyState.title"),
|
|
349
|
+
description: n("jobAndPay.paystubs.emptyState.description")
|
|
341
350
|
}
|
|
342
351
|
)
|
|
343
|
-
}),
|
|
344
|
-
return /* @__PURE__ */
|
|
345
|
-
/* @__PURE__ */
|
|
346
|
-
|
|
352
|
+
}), an = l.isLoading && l.errorHandling.errors.length === 0, sn = m.isLoading && m.errorHandling.errors.length === 0, ue = ae?.type === gn.directDeposit;
|
|
353
|
+
return /* @__PURE__ */ t(hn, { error: ze.errors, children: /* @__PURE__ */ f(j, { flexDirection: "column", gap: 24, children: [
|
|
354
|
+
/* @__PURE__ */ t(
|
|
355
|
+
i.Box,
|
|
347
356
|
{
|
|
348
357
|
withPadding: !h,
|
|
349
|
-
header: /* @__PURE__ */
|
|
350
|
-
|
|
358
|
+
header: /* @__PURE__ */ t(
|
|
359
|
+
i.BoxHeader,
|
|
351
360
|
{
|
|
352
|
-
title:
|
|
361
|
+
title: n("jobAndPay.compensation.title"),
|
|
353
362
|
action: (
|
|
354
363
|
// While the compensation card is loading we don't yet
|
|
355
364
|
// know if the employee has jobs — suppress the action
|
|
356
365
|
// so we don't surface an "Add job" CTA against an
|
|
357
366
|
// employee who already has one.
|
|
358
|
-
|
|
359
|
-
|
|
367
|
+
T || h ? null : s ? Ye ? null : /* @__PURE__ */ t(
|
|
368
|
+
i.Button,
|
|
360
369
|
{
|
|
361
370
|
variant: "secondary",
|
|
362
371
|
onClick: () => {
|
|
363
|
-
|
|
372
|
+
W?.(s);
|
|
364
373
|
},
|
|
365
|
-
children:
|
|
374
|
+
children: n("jobAndPay.compensation.editCta")
|
|
366
375
|
}
|
|
367
|
-
) : /* @__PURE__ */
|
|
368
|
-
|
|
376
|
+
) : /* @__PURE__ */ t(
|
|
377
|
+
i.Button,
|
|
369
378
|
{
|
|
370
379
|
variant: "secondary",
|
|
371
|
-
onClick:
|
|
372
|
-
icon: /* @__PURE__ */
|
|
373
|
-
children:
|
|
380
|
+
onClick: Pe,
|
|
381
|
+
icon: /* @__PURE__ */ t(U, {}),
|
|
382
|
+
children: n("jobAndPay.compensation.addJobCta")
|
|
374
383
|
}
|
|
375
384
|
)
|
|
376
385
|
)
|
|
377
386
|
}
|
|
378
387
|
),
|
|
379
|
-
footer: !
|
|
380
|
-
|
|
388
|
+
footer: !T && Me ? /* @__PURE__ */ t(
|
|
389
|
+
i.Button,
|
|
381
390
|
{
|
|
382
391
|
variant: "secondary",
|
|
383
|
-
onClick:
|
|
384
|
-
icon: /* @__PURE__ */
|
|
385
|
-
children:
|
|
392
|
+
onClick: Ce,
|
|
393
|
+
icon: /* @__PURE__ */ t(U, {}),
|
|
394
|
+
children: n("jobAndPay.compensation.addAnotherJobCta")
|
|
386
395
|
}
|
|
387
396
|
) : void 0,
|
|
388
|
-
children:
|
|
389
|
-
|
|
397
|
+
children: T ? /* @__PURE__ */ t(v, {}) : /* @__PURE__ */ f(j, { flexDirection: "column", gap: 16, children: [
|
|
398
|
+
oe && /* @__PURE__ */ t(
|
|
390
399
|
"div",
|
|
391
400
|
{
|
|
392
|
-
className: [
|
|
393
|
-
children: /* @__PURE__ */
|
|
394
|
-
|
|
395
|
-
|
|
401
|
+
className: [ye.alertWrapper, h && ye.alertWrapperPadded].filter(Boolean).join(" "),
|
|
402
|
+
children: /* @__PURE__ */ f(j, { flexDirection: "column", gap: 16, children: [
|
|
403
|
+
We && b && /* @__PURE__ */ t(
|
|
404
|
+
i.Alert,
|
|
396
405
|
{
|
|
397
406
|
status: "warning",
|
|
398
407
|
disableScrollIntoView: !0,
|
|
399
|
-
label: h ?
|
|
408
|
+
label: h ? n("jobAndPay.compensation.pendingChange.alertLabelWithJob", {
|
|
400
409
|
jobTitle: b.jobTitle,
|
|
401
|
-
date:
|
|
402
|
-
}) :
|
|
403
|
-
date:
|
|
410
|
+
date: L(b.effectiveDate)
|
|
411
|
+
}) : n("jobAndPay.compensation.pendingChange.alertLabel", {
|
|
412
|
+
date: L(b.effectiveDate)
|
|
404
413
|
}),
|
|
405
|
-
children: /* @__PURE__ */
|
|
406
|
-
/* @__PURE__ */
|
|
407
|
-
|
|
414
|
+
children: /* @__PURE__ */ f(j, { flexDirection: "column", gap: 12, children: [
|
|
415
|
+
/* @__PURE__ */ t(
|
|
416
|
+
i.UnorderedList,
|
|
408
417
|
{
|
|
409
|
-
items: b.details.map((e) =>
|
|
418
|
+
items: b.details.map((e) => Re(e))
|
|
410
419
|
}
|
|
411
420
|
),
|
|
412
|
-
/* @__PURE__ */
|
|
413
|
-
|
|
421
|
+
/* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(
|
|
422
|
+
i.Button,
|
|
414
423
|
{
|
|
415
424
|
variant: "secondary",
|
|
416
|
-
isLoading:
|
|
425
|
+
isLoading: z === b.compensationUuid,
|
|
417
426
|
onClick: () => {
|
|
418
|
-
|
|
427
|
+
$(b);
|
|
419
428
|
},
|
|
420
|
-
children:
|
|
429
|
+
children: n("jobAndPay.compensation.pendingChange.cancelCta")
|
|
421
430
|
}
|
|
422
431
|
) })
|
|
423
432
|
] })
|
|
424
433
|
}
|
|
425
434
|
),
|
|
426
|
-
|
|
427
|
-
|
|
435
|
+
ie && /* @__PURE__ */ t(
|
|
436
|
+
i.Alert,
|
|
428
437
|
{
|
|
429
438
|
status: "warning",
|
|
430
439
|
disableScrollIntoView: !0,
|
|
431
|
-
label:
|
|
432
|
-
name:
|
|
440
|
+
label: n("jobAndPay.compensation.pendingChange.summaryLabel", {
|
|
441
|
+
name: x ?? ""
|
|
433
442
|
}),
|
|
434
|
-
action: /* @__PURE__ */
|
|
435
|
-
|
|
443
|
+
action: /* @__PURE__ */ t(
|
|
444
|
+
i.Button,
|
|
436
445
|
{
|
|
437
446
|
variant: "secondary",
|
|
438
447
|
onClick: () => {
|
|
439
|
-
|
|
448
|
+
O(!0);
|
|
440
449
|
},
|
|
441
|
-
children:
|
|
450
|
+
children: n("jobAndPay.compensation.pendingChange.reviewCta")
|
|
442
451
|
}
|
|
443
452
|
)
|
|
444
453
|
}
|
|
@@ -446,182 +455,199 @@ function bt({
|
|
|
446
455
|
] })
|
|
447
456
|
}
|
|
448
457
|
),
|
|
449
|
-
h ? /* @__PURE__ */
|
|
450
|
-
|
|
458
|
+
h ? /* @__PURE__ */ t(
|
|
459
|
+
B,
|
|
451
460
|
{
|
|
452
|
-
label:
|
|
461
|
+
label: n("jobAndPay.compensation.tableLabel"),
|
|
453
462
|
isWithinBox: !0,
|
|
454
|
-
|
|
463
|
+
...$e
|
|
455
464
|
}
|
|
456
|
-
) :
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
465
|
+
) : s ? /* @__PURE__ */ t(
|
|
466
|
+
i.DescriptionList,
|
|
467
|
+
{
|
|
468
|
+
items: [
|
|
469
|
+
{
|
|
470
|
+
term: n("jobAndPay.compensation.jobTitle"),
|
|
471
|
+
description: s.title || w
|
|
472
|
+
},
|
|
473
|
+
{
|
|
474
|
+
term: n("jobAndPay.compensation.type"),
|
|
475
|
+
description: Oe || w
|
|
476
|
+
},
|
|
477
|
+
{
|
|
478
|
+
term: n("jobAndPay.compensation.wage"),
|
|
479
|
+
description: ee !== null && s.paymentUnit ? I(ee, s.paymentUnit) : w
|
|
480
|
+
},
|
|
481
|
+
{
|
|
482
|
+
term: n("jobAndPay.compensation.effectiveDate"),
|
|
483
|
+
description: ne?.effectiveDate ? L(ne.effectiveDate) : w
|
|
484
|
+
},
|
|
485
|
+
...Fe ? [
|
|
486
|
+
{
|
|
487
|
+
term: n("jobAndPay.compensation.columns.status"),
|
|
488
|
+
description: /* @__PURE__ */ t(i.Badge, { status: "warning", children: n("jobAndPay.compensation.pendingStatus") })
|
|
489
|
+
}
|
|
490
|
+
] : []
|
|
491
|
+
]
|
|
492
|
+
}
|
|
493
|
+
) : /* @__PURE__ */ t(
|
|
494
|
+
_,
|
|
476
495
|
{
|
|
477
|
-
title:
|
|
478
|
-
description:
|
|
496
|
+
title: n("jobAndPay.compensation.emptyState.title"),
|
|
497
|
+
description: n("jobAndPay.compensation.emptyState.description")
|
|
479
498
|
}
|
|
480
499
|
)
|
|
481
500
|
] })
|
|
482
501
|
}
|
|
483
502
|
),
|
|
484
|
-
/* @__PURE__ */
|
|
485
|
-
|
|
503
|
+
/* @__PURE__ */ t(
|
|
504
|
+
i.Box,
|
|
486
505
|
{
|
|
487
|
-
withPadding:
|
|
488
|
-
header: /* @__PURE__ */
|
|
489
|
-
|
|
506
|
+
withPadding: E.length === 0,
|
|
507
|
+
header: /* @__PURE__ */ t(
|
|
508
|
+
i.BoxHeader,
|
|
490
509
|
{
|
|
491
|
-
title:
|
|
492
|
-
action: /* @__PURE__ */
|
|
493
|
-
|
|
494
|
-
|
|
510
|
+
title: n("jobAndPay.payment.title"),
|
|
511
|
+
action: /* @__PURE__ */ f(j, { gap: 8, alignItems: "center", justifyContent: "flex-end", children: [
|
|
512
|
+
ue && E.length > 1 && /* @__PURE__ */ t(
|
|
513
|
+
i.Button,
|
|
495
514
|
{
|
|
496
515
|
variant: "secondary",
|
|
497
516
|
onClick: () => {
|
|
498
|
-
u(P.EMPLOYEE_SPLIT_PAYCHECK, { employeeId:
|
|
517
|
+
u(P.EMPLOYEE_SPLIT_PAYCHECK, { employeeId: r });
|
|
499
518
|
},
|
|
500
|
-
icon: /* @__PURE__ */
|
|
501
|
-
children:
|
|
519
|
+
icon: /* @__PURE__ */ t(Un, {}),
|
|
520
|
+
children: n("jobAndPay.payment.splitPaycheckCta")
|
|
502
521
|
}
|
|
503
522
|
),
|
|
504
|
-
/* @__PURE__ */
|
|
505
|
-
|
|
523
|
+
/* @__PURE__ */ t(
|
|
524
|
+
i.Button,
|
|
506
525
|
{
|
|
507
526
|
variant: "secondary",
|
|
508
527
|
onClick: () => {
|
|
509
|
-
u(P.EMPLOYEE_BANK_ACCOUNT_CREATE, { employeeId:
|
|
528
|
+
u(P.EMPLOYEE_BANK_ACCOUNT_CREATE, { employeeId: r });
|
|
510
529
|
},
|
|
511
|
-
icon: /* @__PURE__ */
|
|
512
|
-
children:
|
|
530
|
+
icon: /* @__PURE__ */ t(U, {}),
|
|
531
|
+
children: n("jobAndPay.payment.addBankAccountCta")
|
|
513
532
|
}
|
|
514
533
|
)
|
|
515
534
|
] })
|
|
516
535
|
}
|
|
517
536
|
),
|
|
518
|
-
children:
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
537
|
+
children: an ? /* @__PURE__ */ t(v, {}) : E.length === 0 ? /* @__PURE__ */ t(
|
|
538
|
+
i.DescriptionList,
|
|
539
|
+
{
|
|
540
|
+
items: [
|
|
541
|
+
{
|
|
542
|
+
term: C("paymentMethodLabel"),
|
|
543
|
+
description: C(ue ? "directDepositLabel" : "checkLabel")
|
|
544
|
+
}
|
|
545
|
+
]
|
|
546
|
+
}
|
|
547
|
+
) : /* @__PURE__ */ t(
|
|
548
|
+
B,
|
|
523
549
|
{
|
|
524
|
-
label:
|
|
550
|
+
label: n("jobAndPay.payment.listLabel"),
|
|
525
551
|
isWithinBox: !0,
|
|
526
|
-
...
|
|
552
|
+
...nn
|
|
527
553
|
}
|
|
528
554
|
)
|
|
529
555
|
}
|
|
530
556
|
),
|
|
531
|
-
/* @__PURE__ */
|
|
532
|
-
|
|
557
|
+
/* @__PURE__ */ t(
|
|
558
|
+
i.Box,
|
|
533
559
|
{
|
|
534
560
|
withPadding: !1,
|
|
535
|
-
header: /* @__PURE__ */
|
|
536
|
-
|
|
561
|
+
header: /* @__PURE__ */ t(
|
|
562
|
+
i.BoxHeader,
|
|
537
563
|
{
|
|
538
|
-
title:
|
|
539
|
-
action: /* @__PURE__ */
|
|
540
|
-
|
|
564
|
+
title: n("jobAndPay.deductions.title"),
|
|
565
|
+
action: /* @__PURE__ */ t(
|
|
566
|
+
i.Button,
|
|
541
567
|
{
|
|
542
568
|
variant: "secondary",
|
|
543
|
-
onClick:
|
|
544
|
-
icon: /* @__PURE__ */
|
|
545
|
-
children:
|
|
569
|
+
onClick: Ae,
|
|
570
|
+
icon: /* @__PURE__ */ t(U, {}),
|
|
571
|
+
children: n("jobAndPay.deductions.addDeductionCta")
|
|
546
572
|
}
|
|
547
573
|
)
|
|
548
574
|
}
|
|
549
575
|
),
|
|
550
|
-
children:
|
|
551
|
-
|
|
576
|
+
children: sn ? /* @__PURE__ */ t(v, {}) : /* @__PURE__ */ t(
|
|
577
|
+
B,
|
|
552
578
|
{
|
|
553
|
-
label:
|
|
579
|
+
label: n("jobAndPay.deductions.listLabel"),
|
|
554
580
|
isWithinBox: !0,
|
|
555
|
-
...
|
|
581
|
+
...tn
|
|
556
582
|
}
|
|
557
583
|
)
|
|
558
584
|
}
|
|
559
585
|
),
|
|
560
|
-
/* @__PURE__ */
|
|
561
|
-
|
|
586
|
+
/* @__PURE__ */ t(
|
|
587
|
+
i.Box,
|
|
562
588
|
{
|
|
563
589
|
withPadding: !1,
|
|
564
|
-
header: /* @__PURE__ */
|
|
565
|
-
children:
|
|
590
|
+
header: /* @__PURE__ */ t(i.BoxHeader, { title: n("jobAndPay.paystubs.title") }),
|
|
591
|
+
children: Ue ? /* @__PURE__ */ t(v, {}) : /* @__PURE__ */ t(B, { label: n("jobAndPay.paystubs.listLabel"), isWithinBox: !0, ...on })
|
|
566
592
|
}
|
|
567
593
|
),
|
|
568
|
-
/* @__PURE__ */
|
|
569
|
-
|
|
594
|
+
/* @__PURE__ */ t(
|
|
595
|
+
yn,
|
|
570
596
|
{
|
|
571
|
-
isOpen:
|
|
572
|
-
pendingChanges:
|
|
573
|
-
employeeFirstName:
|
|
574
|
-
cancellingCompensationUuid:
|
|
597
|
+
isOpen: He,
|
|
598
|
+
pendingChanges: y,
|
|
599
|
+
employeeFirstName: x,
|
|
600
|
+
cancellingCompensationUuid: z,
|
|
575
601
|
onClose: () => {
|
|
576
|
-
|
|
602
|
+
O(!1);
|
|
577
603
|
},
|
|
578
604
|
onCancelChange: (e) => {
|
|
579
|
-
|
|
605
|
+
$(e);
|
|
580
606
|
}
|
|
581
607
|
}
|
|
582
608
|
),
|
|
583
|
-
/* @__PURE__ */
|
|
584
|
-
|
|
609
|
+
/* @__PURE__ */ t(
|
|
610
|
+
jn,
|
|
585
611
|
{
|
|
586
|
-
pendingDeleteAccount:
|
|
587
|
-
isPrimaryActionLoading:
|
|
612
|
+
pendingDeleteAccount: se,
|
|
613
|
+
isPrimaryActionLoading: Ie === se?.uuid,
|
|
588
614
|
onClose: () => {
|
|
589
|
-
|
|
615
|
+
re(null);
|
|
590
616
|
},
|
|
591
617
|
onConfirm: () => {
|
|
592
|
-
|
|
618
|
+
Ge();
|
|
593
619
|
}
|
|
594
620
|
}
|
|
595
621
|
),
|
|
596
|
-
/* @__PURE__ */
|
|
597
|
-
|
|
622
|
+
/* @__PURE__ */ t(
|
|
623
|
+
kn,
|
|
598
624
|
{
|
|
599
|
-
pendingDeleteDeduction:
|
|
600
|
-
isPrimaryActionLoading:
|
|
625
|
+
pendingDeleteDeduction: ce,
|
|
626
|
+
isPrimaryActionLoading: de === ce?.uuid,
|
|
601
627
|
onClose: () => {
|
|
602
|
-
|
|
628
|
+
le(null);
|
|
603
629
|
},
|
|
604
630
|
onConfirm: () => {
|
|
605
|
-
|
|
631
|
+
Ke();
|
|
606
632
|
}
|
|
607
633
|
}
|
|
608
634
|
),
|
|
609
|
-
/* @__PURE__ */
|
|
610
|
-
|
|
635
|
+
/* @__PURE__ */ t(
|
|
636
|
+
i.Dialog,
|
|
611
637
|
{
|
|
612
638
|
isOpen: D !== null,
|
|
613
639
|
onClose: () => {
|
|
614
|
-
|
|
640
|
+
M(null);
|
|
615
641
|
},
|
|
616
642
|
onPrimaryActionClick: () => {
|
|
617
|
-
|
|
643
|
+
Ne();
|
|
618
644
|
},
|
|
619
|
-
isPrimaryActionLoading:
|
|
645
|
+
isPrimaryActionLoading: Z,
|
|
620
646
|
isDestructive: !0,
|
|
621
|
-
title:
|
|
622
|
-
primaryActionLabel:
|
|
623
|
-
closeActionLabel:
|
|
624
|
-
children: D ?
|
|
647
|
+
title: n("jobAndPay.compensation.deleteJobDialog.title"),
|
|
648
|
+
primaryActionLabel: n("jobAndPay.compensation.deleteJobDialog.confirmCta"),
|
|
649
|
+
closeActionLabel: n("jobAndPay.compensation.deleteJobDialog.cancelCta"),
|
|
650
|
+
children: D ? n("jobAndPay.compensation.deleteJobDialog.description", {
|
|
625
651
|
jobTitle: D.title
|
|
626
652
|
}) : null
|
|
627
653
|
}
|
|
@@ -629,6 +655,6 @@ function bt({
|
|
|
629
655
|
] }) });
|
|
630
656
|
}
|
|
631
657
|
export {
|
|
632
|
-
|
|
658
|
+
Ct as JobAndPayView
|
|
633
659
|
};
|
|
634
660
|
//# sourceMappingURL=JobAndPayView.js.map
|