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