@gusto/embedded-react-sdk 0.13.4 → 0.14.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 +26 -0
- package/dist/assets/icons/plus-circle.svg.js +10 -0
- package/dist/assets/icons/plus-circle.svg.js.map +1 -0
- package/dist/assets/icons/spinner_large.svg.js +10 -0
- package/dist/assets/icons/spinner_large.svg.js.map +1 -0
- package/dist/assets/icons/x-circle.svg.js +10 -0
- package/dist/assets/icons/x-circle.svg.js.map +1 -0
- package/dist/components/Common/Flex/Flex.js +16 -12
- package/dist/components/Common/Flex/Flex.js.map +1 -1
- package/dist/components/Common/Loading/Loading.d.ts +5 -1
- package/dist/components/Common/Loading/Loading.js +9 -9
- package/dist/components/Common/Loading/Loading.js.map +1 -1
- package/dist/components/Common/Loading/Loading.module.scss.js +1 -1
- package/dist/components/Common/SignatureForm/SignatureForm.js +1 -1
- package/dist/components/Common/SignatureForm/SignatureFormActions.js +1 -1
- package/dist/components/Common/SignatureForm/SignatureFormFields.js +1 -1
- package/dist/components/Common/UI/Alert/Alert.module.scss.js +14 -14
- package/dist/components/Common/UI/Button/ButtonIcon.module.scss.js +1 -1
- package/dist/components/Common/UI/LoadingSpinner/LoadingSpinner.d.ts +3 -0
- package/dist/components/Common/UI/LoadingSpinner/LoadingSpinner.js +25 -0
- package/dist/components/Common/UI/LoadingSpinner/LoadingSpinner.js.map +1 -0
- package/dist/components/Common/UI/LoadingSpinner/LoadingSpinner.module.scss.js +10 -0
- package/dist/components/Common/UI/LoadingSpinner/LoadingSpinner.module.scss.js.map +1 -0
- package/dist/components/Common/UI/LoadingSpinner/LoadingSpinnerTypes.d.ts +18 -0
- package/dist/components/Common/UI/LoadingSpinner/LoadingSpinnerTypes.js +8 -0
- package/dist/components/Common/UI/LoadingSpinner/LoadingSpinnerTypes.js.map +1 -0
- package/dist/components/Common/UI/LoadingSpinner/index.d.ts +4 -0
- package/dist/components/Common/index.d.ts +1 -0
- package/dist/components/Company/AssignSignatory/AssignSignatory.js +7 -6
- package/dist/components/Company/AssignSignatory/AssignSignatory.js.map +1 -1
- package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js +2 -3
- package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js.map +1 -1
- package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.js +2 -3
- package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.js.map +1 -1
- package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatory.js +3 -2
- package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatory.js.map +1 -1
- package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.js +14 -13
- package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.js.map +1 -1
- package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.js +2 -3
- package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.js.map +1 -1
- package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatory.js +6 -5
- package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatory.js.map +1 -1
- package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatoryForm.js +11 -10
- package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatoryForm.js.map +1 -1
- package/dist/components/Company/BankAccount/BankAccountForm/Actions.js +6 -6
- package/dist/components/Company/BankAccount/BankAccountForm/Form.js +8 -9
- package/dist/components/Company/BankAccount/BankAccountForm/Form.js.map +1 -1
- package/dist/components/Company/BankAccount/BankAccountList/Actions.js +8 -9
- package/dist/components/Company/BankAccount/BankAccountList/Actions.js.map +1 -1
- package/dist/components/Company/BankAccount/BankAccountVerify/Actions.js +7 -8
- package/dist/components/Company/BankAccount/BankAccountVerify/Actions.js.map +1 -1
- package/dist/components/Company/BankAccount/BankAccountVerify/Form.js +4 -5
- package/dist/components/Company/BankAccount/BankAccountVerify/Form.js.map +1 -1
- package/dist/components/Company/DocumentSigner/DocumentList/Actions.js +2 -3
- package/dist/components/Company/DocumentSigner/DocumentList/Actions.js.map +1 -1
- package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.js +3 -2
- package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.js.map +1 -1
- package/dist/components/Company/DocumentSigner/DocumentSigner.js +0 -1
- package/dist/components/Company/DocumentSigner/DocumentSigner.js.map +1 -1
- package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js +7 -6
- package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js.map +1 -1
- package/dist/components/Company/FederalTaxes/Actions.js +5 -6
- package/dist/components/Company/FederalTaxes/Actions.js.map +1 -1
- package/dist/components/Company/FederalTaxes/FederalTaxes.js +13 -12
- package/dist/components/Company/FederalTaxes/FederalTaxes.js.map +1 -1
- package/dist/components/Company/FederalTaxes/Form.js +3 -4
- package/dist/components/Company/FederalTaxes/Form.js.map +1 -1
- package/dist/components/Company/Industry/Actions.js +2 -3
- package/dist/components/Company/Industry/Actions.js.map +1 -1
- package/dist/components/Company/Industry/Edit.js +4 -5
- package/dist/components/Company/Industry/Edit.js.map +1 -1
- package/dist/components/Company/Locations/LocationForm/Actions.js +6 -7
- package/dist/components/Company/Locations/LocationForm/Actions.js.map +1 -1
- package/dist/components/Company/Locations/LocationForm/Form.js +6 -5
- package/dist/components/Company/Locations/LocationForm/Form.js.map +1 -1
- package/dist/components/Company/Locations/LocationForm/LocationForm.js +11 -10
- package/dist/components/Company/Locations/LocationForm/LocationForm.js.map +1 -1
- package/dist/components/Company/Locations/LocationsList/Actions.js +6 -7
- package/dist/components/Company/Locations/LocationsList/Actions.js.map +1 -1
- package/dist/components/Company/Locations/LocationsList/List.js +9 -10
- package/dist/components/Company/Locations/LocationsList/List.js.map +1 -1
- package/dist/components/Company/Locations/LocationsList/LocationsList.js +7 -6
- package/dist/components/Company/Locations/LocationsList/LocationsList.js.map +1 -1
- package/dist/components/Company/OnboardingOverview/Completed.js +10 -11
- package/dist/components/Company/OnboardingOverview/Completed.js.map +1 -1
- package/dist/components/Company/OnboardingOverview/MissingRequirements.js +6 -7
- package/dist/components/Company/OnboardingOverview/MissingRequirements.js.map +1 -1
- package/dist/components/Company/OnboardingOverview/OnboardingOverview.js +3 -2
- package/dist/components/Company/OnboardingOverview/OnboardingOverview.js.map +1 -1
- package/dist/components/Company/PaySchedule/PaySchedule.js +34 -33
- package/dist/components/Company/PaySchedule/PaySchedule.js.map +1 -1
- package/dist/components/Company/PaySchedule/_parts/Actions.js +9 -10
- package/dist/components/Company/PaySchedule/_parts/Actions.js.map +1 -1
- package/dist/components/Company/PaySchedule/_parts/Edit.js +17 -16
- package/dist/components/Company/PaySchedule/_parts/Edit.js.map +1 -1
- package/dist/components/Company/PaySchedule/_parts/Head.js +6 -7
- package/dist/components/Company/PaySchedule/_parts/Head.js.map +1 -1
- package/dist/components/Company/PaySchedule/_parts/List.js +14 -15
- package/dist/components/Company/PaySchedule/_parts/List.js.map +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.js +2 -3
- package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.js.map +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesList/Actions.js +2 -3
- package/dist/components/Company/StateTaxes/StateTaxesList/Actions.js.map +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesList/List.js +2 -3
- package/dist/components/Company/StateTaxes/StateTaxesList/List.js.map +1 -1
- package/dist/components/Contractor/Address/Address.js +5 -4
- package/dist/components/Contractor/Address/Address.js.map +1 -1
- package/dist/components/Contractor/Address/Form.js +4 -3
- package/dist/components/Contractor/Address/Form.js.map +1 -1
- package/dist/components/Contractor/ContractorList/index.js +17 -17
- package/dist/components/Contractor/PaymentMethod/BankAccountForm.js +5 -6
- package/dist/components/Contractor/PaymentMethod/BankAccountForm.js.map +1 -1
- package/dist/components/Contractor/Profile/ContractorProfileForm.js +13 -13
- package/dist/components/Contractor/Submit/Submit.js +1 -1
- package/dist/components/Employee/Compensation/Actions.js +1 -1
- package/dist/components/Employee/Compensation/Compensation.js +144 -147
- package/dist/components/Employee/Compensation/Compensation.js.map +1 -1
- package/dist/components/Employee/Compensation/Edit.js +38 -37
- package/dist/components/Employee/Compensation/Edit.js.map +1 -1
- package/dist/components/Employee/Compensation/List.js +22 -23
- package/dist/components/Employee/Compensation/List.js.map +1 -1
- package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.js +8 -8
- package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.js +9 -9
- package/dist/components/Employee/Deductions/DeductionsForm/DeductionsForm.js +8 -8
- package/dist/components/Employee/Deductions/DeductionsList/DeductionsList.js +7 -7
- package/dist/components/Employee/Deductions/IncludeDeductionsForm/IncludeDeductionsForm.js +8 -8
- package/dist/components/Employee/DocumentSigner/DocumentList/Actions.js +6 -7
- package/dist/components/Employee/DocumentSigner/DocumentList/Actions.js.map +1 -1
- package/dist/components/Employee/DocumentSigner/DocumentList/DocumentList.js +8 -7
- package/dist/components/Employee/DocumentSigner/DocumentList/DocumentList.js.map +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/SignatureForm/SignatureForm.js +10 -9
- package/dist/components/Employee/DocumentSigner/SignatureForm/SignatureForm.js.map +1 -1
- package/dist/components/Employee/EmployeeList/Actions.js +2 -3
- package/dist/components/Employee/EmployeeList/Actions.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 +5 -6
- package/dist/components/Employee/EmployeeList/Head.js.map +1 -1
- package/dist/components/Employee/EmployeeList/List.js +14 -14
- package/dist/components/Employee/FederalTaxes/Actions.js +6 -7
- package/dist/components/Employee/FederalTaxes/Actions.js.map +1 -1
- package/dist/components/Employee/FederalTaxes/FederalForm.js +11 -12
- package/dist/components/Employee/FederalTaxes/FederalForm.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/Actions.js +5 -6
- package/dist/components/Employee/PaymentMethod/Actions.js.map +1 -1
- package/dist/components/Employee/PaymentMethod/BankAccountEdit.js +1 -1
- package/dist/components/Employee/PaymentMethod/BankAccountsList.js +8 -9
- package/dist/components/Employee/PaymentMethod/BankAccountsList.js.map +1 -1
- package/dist/components/Employee/PaymentMethod/Split.js +8 -8
- package/dist/components/Employee/Profile/Actions.js +6 -7
- package/dist/components/Employee/Profile/Actions.js.map +1 -1
- package/dist/components/Employee/Profile/HomeAddress.js +6 -5
- package/dist/components/Employee/Profile/HomeAddress.js.map +1 -1
- package/dist/components/Employee/Profile/PersonalDetailsInputs.js +22 -21
- package/dist/components/Employee/Profile/PersonalDetailsInputs.js.map +1 -1
- package/dist/components/Employee/StateTaxes/Actions.js +7 -8
- package/dist/components/Employee/StateTaxes/Actions.js.map +1 -1
- package/dist/components/Employee/Taxes/Actions.js +8 -9
- package/dist/components/Employee/Taxes/Actions.js.map +1 -1
- package/dist/components/Employee/Taxes/FederalForm.js +12 -13
- package/dist/components/Employee/Taxes/FederalForm.js.map +1 -1
- package/dist/components/Payroll/PayrollBlocker/PayrollBlocker.d.ts +6 -0
- package/dist/components/Payroll/PayrollBlocker/PayrollBlocker.js +32 -0
- package/dist/components/Payroll/PayrollBlocker/PayrollBlocker.js.map +1 -0
- package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerAlerts.d.ts +14 -0
- package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerAlerts.js +53 -0
- package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerAlerts.js.map +1 -0
- package/dist/components/Payroll/PayrollBlocker/{PayrollBlockerList.d.ts → components/PayrollBlockerList.d.ts} +14 -1
- package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerList.js +39 -0
- package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerList.js.map +1 -0
- package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerList.module.scss.js +8 -0
- package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerList.module.scss.js.map +1 -0
- package/dist/components/Payroll/PayrollBlocker/index.d.ts +4 -3
- package/dist/components/Payroll/PayrollBlocker/payrollHelpers.d.ts +27 -0
- package/dist/components/Payroll/PayrollBlocker/payrollHelpers.js +39 -0
- package/dist/components/Payroll/PayrollBlocker/payrollHelpers.js.map +1 -0
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js +108 -66
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js.map +1 -1
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.d.ts +7 -2
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js +177 -124
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.module.scss.js +8 -0
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.module.scss.js.map +1 -0
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.js +39 -36
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.js.map +1 -1
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js +66 -65
- 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/PayrollFlowComponents.d.ts +1 -0
- package/dist/components/Payroll/PayrollFlow/PayrollFlowComponents.js +32 -26
- package/dist/components/Payroll/PayrollFlow/PayrollFlowComponents.js.map +1 -1
- package/dist/components/Payroll/PayrollFlow/payrollStateMachine.d.ts +1 -0
- package/dist/components/Payroll/PayrollFlow/payrollStateMachine.js +72 -48
- package/dist/components/Payroll/PayrollFlow/payrollStateMachine.js.map +1 -1
- package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js +10 -11
- package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollLanding/PayrollLanding.d.ts +2 -1
- package/dist/components/Payroll/PayrollLanding/PayrollLanding.js +28 -36
- package/dist/components/Payroll/PayrollLanding/PayrollLanding.js.map +1 -1
- package/dist/components/Payroll/PayrollLanding/PayrollLandingFlowComponents.d.ts +15 -0
- package/dist/components/Payroll/PayrollLanding/PayrollLandingFlowComponents.js +62 -0
- package/dist/components/Payroll/PayrollLanding/PayrollLandingFlowComponents.js.map +1 -0
- package/dist/components/Payroll/PayrollLanding/payrollLandingStateMachine.d.ts +5 -0
- package/dist/components/Payroll/PayrollLanding/payrollLandingStateMachine.js +93 -0
- package/dist/components/Payroll/PayrollLanding/payrollLandingStateMachine.js.map +1 -0
- package/dist/components/Payroll/PayrollList/PayrollList.d.ts +1 -1
- package/dist/components/Payroll/PayrollList/PayrollList.js +65 -24
- package/dist/components/Payroll/PayrollList/PayrollList.js.map +1 -1
- package/dist/components/Payroll/PayrollList/PayrollListPresentation.d.ts +13 -1
- package/dist/components/Payroll/PayrollList/PayrollListPresentation.js +149 -52
- package/dist/components/Payroll/PayrollList/PayrollListPresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollList/PayrollListPresentation.module.scss.js +10 -0
- package/dist/components/Payroll/PayrollList/PayrollListPresentation.module.scss.js.map +1 -0
- package/dist/components/Payroll/PayrollOverview/PayrollOverview.d.ts +2 -1
- package/dist/components/Payroll/PayrollOverview/PayrollOverview.js +105 -77
- 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 +309 -263
- package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollReceipts/PayrollReceipts.d.ts +2 -1
- package/dist/components/Payroll/PayrollReceipts/PayrollReceipts.js +26 -12
- 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 +44 -41
- package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js.map +1 -1
- package/dist/components/Payroll/index.d.ts +1 -1
- package/dist/components/Payroll/index.js +6 -8
- package/dist/components/Payroll/index.js.map +1 -1
- package/dist/components/Payroll/usePreparedPayrollData.js +39 -24
- package/dist/components/Payroll/usePreparedPayrollData.js.map +1 -1
- package/dist/contexts/ComponentAdapter/adapters/defaultComponentAdapter.js +28 -26
- package/dist/contexts/ComponentAdapter/adapters/defaultComponentAdapter.js.map +1 -1
- package/dist/contexts/ComponentAdapter/createComponentsWithDefaults.d.ts +5 -0
- package/dist/contexts/ComponentAdapter/createComponentsWithDefaults.js +28 -23
- package/dist/contexts/ComponentAdapter/createComponentsWithDefaults.js.map +1 -1
- package/dist/contexts/ComponentAdapter/useComponentContext.d.ts +2 -0
- package/dist/contexts/ComponentAdapter/useComponentContext.js.map +1 -1
- package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js +2 -3
- package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js.map +1 -1
- package/dist/contexts/LoadingIndicatorProvider/useLoadingIndicator.d.ts +3 -1
- package/dist/contexts/LoadingIndicatorProvider/useLoadingIndicator.js +8 -8
- package/dist/contexts/LoadingIndicatorProvider/useLoadingIndicator.js.map +1 -1
- package/dist/hooks/useContainerBreakpoints/useContainerBreakpoints.js.map +1 -1
- package/dist/i18n/en/Payroll.PayrollConfiguration.json.js +17 -17
- package/dist/i18n/en/Payroll.PayrollList.json.js +24 -14
- package/dist/i18n/en/Payroll.PayrollList.json.js.map +1 -1
- package/dist/i18n/en/Payroll.PayrollOverview.json.js +56 -50
- package/dist/i18n/en/Payroll.PayrollOverview.json.js.map +1 -1
- package/dist/i18n/en/Payroll.PayrollReceipts.json.js +14 -12
- package/dist/i18n/en/Payroll.PayrollReceipts.json.js.map +1 -1
- package/dist/i18n/en/PayrollBlocker.json.js +17 -11
- package/dist/i18n/en/PayrollBlocker.json.js.map +1 -1
- package/dist/shared/constants.d.ts +7 -1
- package/dist/shared/constants.js +11 -8
- package/dist/shared/constants.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/i18next.d.ts +159 -3
- package/package.json +21 -21
- package/dist/components/Payroll/PayrollBlocker/PayrollBlockerAlerts.d.ts +0 -7
- package/dist/components/Payroll/PayrollBlocker/PayrollBlockerTypes.d.ts +0 -101
- package/dist/components/Payroll/RunPayrollFlow/RunPayroll.js +0 -126
- package/dist/components/Payroll/RunPayrollFlow/RunPayroll.js.map +0 -1
- package/dist/components/Payroll/RunPayrollFlow/RunPayrollFlow.js +0 -22
- package/dist/components/Payroll/RunPayrollFlow/RunPayrollFlow.js.map +0 -1
|
@@ -1,432 +1,478 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useTranslation as
|
|
3
|
-
import { useState as
|
|
4
|
-
import { Flex as
|
|
1
|
+
import { jsx as t, jsxs as s, Fragment as D } from "react/jsx-runtime";
|
|
2
|
+
import { useTranslation as ne, Trans as ae } from "react-i18next";
|
|
3
|
+
import { useState as Y } from "react";
|
|
4
|
+
import { Flex as d, FlexItem as j } from "../../Common/Flex/Flex.js";
|
|
5
5
|
import "classnames";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import
|
|
11
|
-
import re from "../../Common/hooks/useNumberFormatter.js";
|
|
6
|
+
import { useComponentContext as ie } from "../../../contexts/ComponentAdapter/useComponentContext.js";
|
|
7
|
+
import { useI18n as le } from "../../../i18n/I18n.js";
|
|
8
|
+
import { useLocale as oe } from "../../../contexts/LocaleProvider/useLocale.js";
|
|
9
|
+
import { parseDateStringToLocal as y } from "../../../helpers/dateFormatting.js";
|
|
10
|
+
import se from "../../Common/hooks/useNumberFormatter.js";
|
|
12
11
|
import { firstLastName as S } from "../../../helpers/formattedStrings.js";
|
|
13
|
-
import
|
|
12
|
+
import { PAYMENT_METHODS as de, FlsaStatus as W, compensationTypeLabels as P } from "../../../shared/constants.js";
|
|
13
|
+
import ce from "../../../assets/icons/download-cloud.svg.js";
|
|
14
|
+
import { useLoadingIndicator as me } from "../../../contexts/LoadingIndicatorProvider/useLoadingIndicator.js";
|
|
14
15
|
import { DataView as b } from "../../Common/DataView/DataView.js";
|
|
15
|
-
const
|
|
16
|
-
payPeriod:
|
|
17
|
-
locale:
|
|
18
|
-
t: f
|
|
16
|
+
const ue = ({
|
|
17
|
+
payPeriod: m,
|
|
18
|
+
locale: g
|
|
19
19
|
}) => {
|
|
20
|
-
if (
|
|
21
|
-
const
|
|
22
|
-
if (
|
|
23
|
-
const
|
|
20
|
+
if (m?.startDate && m.endDate) {
|
|
21
|
+
const T = y(m.startDate), H = y(m.endDate);
|
|
22
|
+
if (T && H) {
|
|
23
|
+
const N = T.toLocaleDateString(g, {
|
|
24
24
|
month: "long",
|
|
25
25
|
day: "numeric"
|
|
26
|
-
}),
|
|
26
|
+
}), x = H.toLocaleDateString(g, {
|
|
27
27
|
month: "short",
|
|
28
28
|
day: "numeric",
|
|
29
29
|
year: "numeric"
|
|
30
30
|
});
|
|
31
|
-
return
|
|
31
|
+
return { startDate: N, endDate: x };
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
-
return
|
|
35
|
-
},
|
|
36
|
-
onEdit:
|
|
37
|
-
onSubmit:
|
|
38
|
-
onCancel:
|
|
39
|
-
onPayrollReceipt:
|
|
40
|
-
onPaystubDownload:
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
34
|
+
return { startDate: "", endDate: "" };
|
|
35
|
+
}, we = ({
|
|
36
|
+
onEdit: m,
|
|
37
|
+
onSubmit: g,
|
|
38
|
+
onCancel: T,
|
|
39
|
+
onPayrollReceipt: H,
|
|
40
|
+
onPaystubDownload: N,
|
|
41
|
+
onBack: x,
|
|
42
|
+
employeeDetails: G,
|
|
43
|
+
payrollData: i,
|
|
44
|
+
bankAccount: X,
|
|
45
|
+
taxes: k,
|
|
46
|
+
isSubmitting: h = !1,
|
|
47
|
+
isProcessed: L,
|
|
48
|
+
alerts: O
|
|
48
49
|
}) => {
|
|
49
|
-
const { Alert:
|
|
50
|
-
|
|
51
|
-
const { locale:
|
|
52
|
-
(
|
|
50
|
+
const { Alert: M, Button: p, ButtonIcon: $, Dialog: z, Heading: w, Text: n, Tabs: K, LoadingSpinner: Z } = ie();
|
|
51
|
+
le("Payroll.PayrollOverview");
|
|
52
|
+
const { locale: u } = oe(), { t: r } = ne("Payroll.PayrollOverview"), o = se("currency"), [q, J] = Y("companyPays"), [U, A] = Y(!1), { LoadingIndicator: Q } = me(), V = i.totals ? Number(i.totals.grossPay ?? 0) + Number(i.totals.employerTaxes ?? 0) + Number(i.totals.reimbursements ?? 0) + Number(i.totals.benefits ?? 0) : 0, ee = i.payrollStatusMeta?.expectedDebitTime ? y(i.payrollStatusMeta.expectedDebitTime) : i.payrollDeadline, _ = (e) => e.taxes?.reduce(
|
|
53
|
+
(a, l) => l.employer ? a + l.amount : a,
|
|
53
54
|
0
|
|
54
|
-
) ?? 0,
|
|
55
|
-
(
|
|
55
|
+
) ?? 0, I = (e) => e.benefits?.reduce(
|
|
56
|
+
(a, l) => l.companyContribution ? a + l.companyContribution : a,
|
|
56
57
|
0
|
|
57
|
-
) ?? 0,
|
|
58
|
+
) ?? 0, v = (e) => e.fixedCompensations?.length ? Number(
|
|
58
59
|
e.fixedCompensations.find(
|
|
59
|
-
(
|
|
60
|
-
)?.amount ||
|
|
61
|
-
) : 0,
|
|
62
|
-
(
|
|
63
|
-
if (typeof
|
|
64
|
-
return
|
|
65
|
-
const
|
|
66
|
-
return
|
|
60
|
+
(a) => a.name?.toLowerCase() === P.REIMBURSEMENT_NAME.toLowerCase()
|
|
61
|
+
)?.amount || 0
|
|
62
|
+
) : 0, te = (e) => e.grossPay + v(e) + _(e) + I(e), c = new Map(G.map((e) => [e.uuid, e])), C = (e) => e.hourlyCompensations?.reduce(
|
|
63
|
+
(a, l) => {
|
|
64
|
+
if (typeof l.name > "u")
|
|
65
|
+
return a;
|
|
66
|
+
const f = l.name.toLowerCase(), E = a[f] ?? 0;
|
|
67
|
+
return a[f] = E + Number(l.hours || 0), a;
|
|
67
68
|
},
|
|
68
69
|
{}
|
|
69
|
-
) || {},
|
|
70
|
+
) || {}, B = (e) => e.paidTimeOff?.reduce((a, l) => a + Number(l.hours || 0), 0) ?? 0, R = i.employeeCompensations?.reduce(
|
|
71
|
+
(e, a) => !a.excluded && a.paymentMethod === de.check ? e + 1 : e,
|
|
72
|
+
0
|
|
73
|
+
) ?? 0, F = [
|
|
70
74
|
{
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
+
key: "employeeName",
|
|
76
|
+
title: r("tableHeaders.employees"),
|
|
77
|
+
render: (e) => /* @__PURE__ */ t(n, { children: S({
|
|
78
|
+
first_name: c.get(e.employeeUuid)?.firstName,
|
|
79
|
+
last_name: c.get(e.employeeUuid)?.lastName
|
|
75
80
|
}) })
|
|
76
81
|
},
|
|
77
82
|
{
|
|
78
|
-
|
|
79
|
-
|
|
83
|
+
key: "grossPay",
|
|
84
|
+
title: r("tableHeaders.grossPay"),
|
|
85
|
+
render: (e) => /* @__PURE__ */ t(n, { children: o(e.grossPay) })
|
|
80
86
|
},
|
|
81
87
|
{
|
|
82
|
-
|
|
83
|
-
|
|
88
|
+
key: "reimbursements",
|
|
89
|
+
title: r("tableHeaders.reimbursements"),
|
|
90
|
+
render: (e) => /* @__PURE__ */ t(n, { children: o(v(e)) })
|
|
84
91
|
},
|
|
85
92
|
{
|
|
86
|
-
|
|
87
|
-
|
|
93
|
+
key: "companyTaxes",
|
|
94
|
+
title: r("tableHeaders.companyTaxes"),
|
|
95
|
+
render: (e) => /* @__PURE__ */ t(n, { children: o(_(e)) })
|
|
88
96
|
},
|
|
89
97
|
{
|
|
90
|
-
|
|
91
|
-
|
|
98
|
+
key: "companyBenefits",
|
|
99
|
+
title: r("tableHeaders.companyBenefits"),
|
|
100
|
+
render: (e) => /* @__PURE__ */ t(n, { children: o(I(e)) })
|
|
92
101
|
},
|
|
93
102
|
{
|
|
94
|
-
|
|
95
|
-
|
|
103
|
+
key: "companyPays",
|
|
104
|
+
title: r("tableHeaders.companyPays"),
|
|
105
|
+
render: (e) => /* @__PURE__ */ t(n, { children: o(te(e)) })
|
|
96
106
|
}
|
|
97
107
|
];
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
108
|
+
L && F.push({
|
|
109
|
+
key: "paystubs",
|
|
110
|
+
title: r("tableHeaders.paystub"),
|
|
111
|
+
render: (e) => /* @__PURE__ */ t(
|
|
112
|
+
$,
|
|
102
113
|
{
|
|
103
|
-
"aria-label":
|
|
114
|
+
"aria-label": r("downloadPaystubLabel"),
|
|
104
115
|
variant: "tertiary",
|
|
105
116
|
onClick: () => {
|
|
106
|
-
e.employeeUuid &&
|
|
117
|
+
e.employeeUuid && N(e.employeeUuid);
|
|
107
118
|
},
|
|
108
|
-
children: /* @__PURE__ */
|
|
119
|
+
children: /* @__PURE__ */ t(ce, {})
|
|
109
120
|
}
|
|
110
121
|
)
|
|
111
122
|
});
|
|
112
|
-
const
|
|
123
|
+
const re = [
|
|
113
124
|
{
|
|
114
125
|
id: "companyPays",
|
|
115
|
-
label:
|
|
116
|
-
content: /* @__PURE__ */
|
|
126
|
+
label: r("dataViews.companyPaysTab"),
|
|
127
|
+
content: /* @__PURE__ */ t(
|
|
117
128
|
b,
|
|
118
129
|
{
|
|
119
|
-
label:
|
|
120
|
-
columns:
|
|
121
|
-
data:
|
|
130
|
+
label: r("dataViews.companyPaysTable"),
|
|
131
|
+
columns: F,
|
|
132
|
+
data: i.employeeCompensations,
|
|
133
|
+
footer: () => ({
|
|
134
|
+
employeeName: /* @__PURE__ */ s(D, { children: [
|
|
135
|
+
/* @__PURE__ */ t(n, { children: r("tableHeaders.footerTotalsLabel") }),
|
|
136
|
+
/* @__PURE__ */ t(n, { children: r("tableHeaders.footerTotalsDescription") })
|
|
137
|
+
] }),
|
|
138
|
+
grossPay: /* @__PURE__ */ t(n, { children: o(Number(i.totals?.grossPay ?? 0)) }),
|
|
139
|
+
reimbursements: /* @__PURE__ */ t(n, { children: o(Number(i.totals?.reimbursements ?? 0)) }),
|
|
140
|
+
companyTaxes: /* @__PURE__ */ t(n, { children: o(Number(i.totals?.employerTaxes ?? 0)) }),
|
|
141
|
+
companyBenefits: /* @__PURE__ */ t(n, { children: o(Number(i.totals?.benefits ?? 0)) }),
|
|
142
|
+
companyPays: /* @__PURE__ */ t(n, { children: o(V) })
|
|
143
|
+
})
|
|
122
144
|
}
|
|
123
145
|
)
|
|
124
146
|
},
|
|
125
147
|
{
|
|
126
148
|
id: "hoursWorked",
|
|
127
|
-
label:
|
|
128
|
-
content: /* @__PURE__ */
|
|
149
|
+
label: r("dataViews.hoursWorkedTab"),
|
|
150
|
+
content: /* @__PURE__ */ t(
|
|
129
151
|
b,
|
|
130
152
|
{
|
|
131
|
-
label:
|
|
153
|
+
label: r("dataViews.hoursWorkedTable"),
|
|
132
154
|
columns: [
|
|
133
155
|
{
|
|
134
|
-
title:
|
|
135
|
-
render: (e) => /* @__PURE__ */
|
|
136
|
-
first_name:
|
|
137
|
-
last_name:
|
|
156
|
+
title: r("tableHeaders.employees"),
|
|
157
|
+
render: (e) => /* @__PURE__ */ t(n, { children: S({
|
|
158
|
+
first_name: c.get(e.employeeUuid)?.firstName,
|
|
159
|
+
last_name: c.get(e.employeeUuid)?.lastName
|
|
138
160
|
}) })
|
|
139
161
|
},
|
|
140
162
|
{
|
|
141
|
-
title:
|
|
142
|
-
render: (e) => /* @__PURE__ */
|
|
143
|
-
if (
|
|
144
|
-
const
|
|
145
|
-
(
|
|
163
|
+
title: r("tableHeaders.compensationType"),
|
|
164
|
+
render: (e) => /* @__PURE__ */ t(n, { children: c.get(e.employeeUuid)?.jobs?.reduce((a, l) => {
|
|
165
|
+
if (l.primary) {
|
|
166
|
+
const f = l.compensations?.find(
|
|
167
|
+
(E) => E.uuid === l.currentCompensationUuid
|
|
146
168
|
)?.flsaStatus;
|
|
147
|
-
switch (
|
|
148
|
-
case
|
|
149
|
-
return
|
|
150
|
-
case
|
|
151
|
-
return
|
|
169
|
+
switch (f) {
|
|
170
|
+
case W.EXEMPT:
|
|
171
|
+
return r("compensationTypeLabels.exempt");
|
|
172
|
+
case W.NONEXEMPT:
|
|
173
|
+
return r("compensationTypeLabels.nonexempt");
|
|
152
174
|
default:
|
|
153
|
-
return
|
|
175
|
+
return f ?? "";
|
|
154
176
|
}
|
|
155
177
|
}
|
|
156
|
-
return
|
|
178
|
+
return a;
|
|
157
179
|
}, "") })
|
|
158
180
|
},
|
|
159
181
|
{
|
|
160
|
-
title:
|
|
161
|
-
render: (e) => /* @__PURE__ */
|
|
182
|
+
title: r("tableHeaders.regular"),
|
|
183
|
+
render: (e) => /* @__PURE__ */ t(n, { children: C(e)[P.REGULAR_HOURS_NAME] || 0 })
|
|
162
184
|
},
|
|
163
185
|
{
|
|
164
|
-
title:
|
|
165
|
-
render: (e) => /* @__PURE__ */
|
|
186
|
+
title: r("tableHeaders.overtime"),
|
|
187
|
+
render: (e) => /* @__PURE__ */ t(n, { children: C(e)[P.OVERTIME_NAME] || 0 })
|
|
166
188
|
},
|
|
167
189
|
{
|
|
168
|
-
title:
|
|
169
|
-
render: (e) => /* @__PURE__ */
|
|
190
|
+
title: r("tableHeaders.doubleOT"),
|
|
191
|
+
render: (e) => /* @__PURE__ */ t(n, { children: C(e)[P.DOUBLE_OVERTIME_NAME] || 0 })
|
|
170
192
|
},
|
|
171
193
|
{
|
|
172
|
-
title:
|
|
173
|
-
render: (e) => /* @__PURE__ */
|
|
194
|
+
title: r("tableHeaders.timeOff"),
|
|
195
|
+
render: (e) => /* @__PURE__ */ t(n, { children: B(e) })
|
|
174
196
|
},
|
|
175
197
|
{
|
|
176
|
-
title:
|
|
177
|
-
render: (e) => /* @__PURE__ */
|
|
178
|
-
(
|
|
198
|
+
title: r("tableHeaders.totalHours"),
|
|
199
|
+
render: (e) => /* @__PURE__ */ t(n, { children: Object.values(C(e)).reduce(
|
|
200
|
+
(a, l) => a + l,
|
|
179
201
|
0
|
|
180
|
-
) +
|
|
202
|
+
) + B(e) })
|
|
181
203
|
}
|
|
182
204
|
],
|
|
183
|
-
data:
|
|
205
|
+
data: i.employeeCompensations
|
|
184
206
|
}
|
|
185
207
|
)
|
|
186
208
|
},
|
|
187
209
|
{
|
|
188
210
|
id: "employeeTakeHome",
|
|
189
|
-
label:
|
|
190
|
-
content: /* @__PURE__ */
|
|
211
|
+
label: r("dataViews.employeeTakeHomeTab"),
|
|
212
|
+
content: /* @__PURE__ */ t(
|
|
191
213
|
b,
|
|
192
214
|
{
|
|
193
|
-
label:
|
|
215
|
+
label: r("dataViews.employeeTakeHomeTable"),
|
|
194
216
|
columns: [
|
|
195
217
|
{
|
|
196
|
-
title:
|
|
197
|
-
render: (e) => /* @__PURE__ */
|
|
198
|
-
first_name:
|
|
199
|
-
last_name:
|
|
218
|
+
title: r("tableHeaders.employees"),
|
|
219
|
+
render: (e) => /* @__PURE__ */ t(n, { children: S({
|
|
220
|
+
first_name: c.get(e.employeeUuid)?.firstName,
|
|
221
|
+
last_name: c.get(e.employeeUuid)?.lastName
|
|
200
222
|
}) })
|
|
201
223
|
},
|
|
202
224
|
{
|
|
203
|
-
title:
|
|
204
|
-
render: (e) => /* @__PURE__ */
|
|
225
|
+
title: r("tableHeaders.paymentType"),
|
|
226
|
+
render: (e) => /* @__PURE__ */ t(n, { children: e.paymentMethod ?? "" })
|
|
205
227
|
},
|
|
206
228
|
{
|
|
207
|
-
title:
|
|
208
|
-
render: (e) => /* @__PURE__ */
|
|
229
|
+
title: r("tableHeaders.grossPay"),
|
|
230
|
+
render: (e) => /* @__PURE__ */ t(n, { children: o(e.grossPay ?? 0) })
|
|
209
231
|
},
|
|
210
232
|
{
|
|
211
|
-
title:
|
|
212
|
-
render: (e) => /* @__PURE__ */
|
|
233
|
+
title: r("tableHeaders.deductions"),
|
|
234
|
+
render: (e) => /* @__PURE__ */ t(n, { children: o(
|
|
213
235
|
e.deductions?.reduce(
|
|
214
|
-
(
|
|
236
|
+
(a, l) => a + l.amount,
|
|
215
237
|
0
|
|
216
238
|
) ?? 0
|
|
217
239
|
) })
|
|
218
240
|
},
|
|
219
241
|
{
|
|
220
|
-
title:
|
|
221
|
-
render: (e) => /* @__PURE__ */
|
|
242
|
+
title: r("tableHeaders.reimbursements"),
|
|
243
|
+
render: (e) => /* @__PURE__ */ t(n, { children: o(v(e)) })
|
|
222
244
|
},
|
|
223
245
|
{
|
|
224
|
-
title:
|
|
225
|
-
render: (e) => /* @__PURE__ */
|
|
246
|
+
title: r("tableHeaders.employeeTaxes"),
|
|
247
|
+
render: (e) => /* @__PURE__ */ t(n, { children: o(
|
|
226
248
|
e.taxes?.reduce(
|
|
227
|
-
(
|
|
249
|
+
(a, l) => l.employer ? a : a + l.amount,
|
|
228
250
|
0
|
|
229
251
|
) ?? 0
|
|
230
252
|
) })
|
|
231
253
|
},
|
|
232
254
|
{
|
|
233
|
-
title:
|
|
234
|
-
render: (e) => /* @__PURE__ */
|
|
255
|
+
title: r("tableHeaders.employeeBenefits"),
|
|
256
|
+
render: (e) => /* @__PURE__ */ t(n, { children: o(
|
|
235
257
|
e.benefits?.reduce(
|
|
236
|
-
(
|
|
258
|
+
(a, l) => a + (l.employeeDeduction ?? 0),
|
|
237
259
|
0
|
|
238
260
|
) ?? 0
|
|
239
261
|
) })
|
|
240
262
|
},
|
|
241
263
|
{
|
|
242
|
-
title:
|
|
243
|
-
render: (e) => /* @__PURE__ */
|
|
264
|
+
title: r("tableHeaders.payment"),
|
|
265
|
+
render: (e) => /* @__PURE__ */ t(n, { children: o(e.netPay ?? 0) })
|
|
244
266
|
}
|
|
245
267
|
],
|
|
246
|
-
data:
|
|
268
|
+
data: i.employeeCompensations
|
|
247
269
|
}
|
|
248
270
|
)
|
|
249
271
|
},
|
|
250
272
|
{
|
|
251
273
|
id: "taxes",
|
|
252
|
-
label:
|
|
253
|
-
content: /* @__PURE__ */ d
|
|
254
|
-
/* @__PURE__ */
|
|
274
|
+
label: r("dataViews.taxesTab"),
|
|
275
|
+
content: /* @__PURE__ */ s(d, { flexDirection: "column", gap: 32, children: [
|
|
276
|
+
/* @__PURE__ */ t(
|
|
255
277
|
b,
|
|
256
278
|
{
|
|
257
|
-
label:
|
|
279
|
+
label: r("dataViews.taxesTable"),
|
|
258
280
|
columns: [
|
|
259
281
|
{
|
|
260
282
|
key: "taxDescription",
|
|
261
|
-
title:
|
|
262
|
-
render: (e) => /* @__PURE__ */
|
|
283
|
+
title: r("tableHeaders.taxDescription"),
|
|
284
|
+
render: (e) => /* @__PURE__ */ t(n, { children: e })
|
|
263
285
|
},
|
|
264
286
|
{
|
|
265
287
|
key: "byYourEmployees",
|
|
266
|
-
title:
|
|
267
|
-
render: (e) => /* @__PURE__ */
|
|
288
|
+
title: r("tableHeaders.byYourEmployees"),
|
|
289
|
+
render: (e) => /* @__PURE__ */ t(n, { children: o(k[e]?.employee ?? 0) })
|
|
268
290
|
},
|
|
269
291
|
{
|
|
270
292
|
key: "byYourCompany",
|
|
271
|
-
title:
|
|
272
|
-
render: (e) => /* @__PURE__ */
|
|
293
|
+
title: r("tableHeaders.byYourCompany"),
|
|
294
|
+
render: (e) => /* @__PURE__ */ t(n, { children: o(k[e]?.employer ?? 0) })
|
|
273
295
|
}
|
|
274
296
|
],
|
|
275
297
|
footer: () => ({
|
|
276
|
-
taxDescription: /* @__PURE__ */
|
|
277
|
-
byYourEmployees: /* @__PURE__ */
|
|
278
|
-
byYourCompany: /* @__PURE__ */
|
|
298
|
+
taxDescription: /* @__PURE__ */ t(n, { children: r("totalsLabel") }),
|
|
299
|
+
byYourEmployees: /* @__PURE__ */ t(n, { children: o(Number(i.totals?.employeeTaxes ?? 0)) }),
|
|
300
|
+
byYourCompany: /* @__PURE__ */ t(n, { children: o(Number(i.totals?.employerTaxes ?? 0)) })
|
|
279
301
|
}),
|
|
280
|
-
data: Object.keys(
|
|
302
|
+
data: Object.keys(k)
|
|
281
303
|
}
|
|
282
304
|
),
|
|
283
|
-
/* @__PURE__ */
|
|
305
|
+
/* @__PURE__ */ t(
|
|
284
306
|
b,
|
|
285
307
|
{
|
|
286
|
-
label:
|
|
308
|
+
label: r("dataViews.debitedTable"),
|
|
287
309
|
columns: [
|
|
288
310
|
{
|
|
289
|
-
title:
|
|
290
|
-
render: ({ label: e }) => /* @__PURE__ */
|
|
311
|
+
title: r("tableHeaders.debitedByGusto"),
|
|
312
|
+
render: ({ label: e }) => /* @__PURE__ */ t(n, { children: e })
|
|
291
313
|
},
|
|
292
314
|
{
|
|
293
|
-
title:
|
|
294
|
-
render: ({ value: e }) => /* @__PURE__ */
|
|
315
|
+
title: r("tableHeaders.taxesTotal"),
|
|
316
|
+
render: ({ value: e }) => /* @__PURE__ */ t(n, { children: o(Number(e)) })
|
|
295
317
|
}
|
|
296
318
|
],
|
|
297
319
|
data: [
|
|
298
|
-
{ label:
|
|
320
|
+
{ label: r("directDepositLabel"), value: i.totals?.netPayDebit || "0" },
|
|
299
321
|
{
|
|
300
|
-
label:
|
|
301
|
-
value:
|
|
322
|
+
label: r("reimbursementLabel"),
|
|
323
|
+
value: i.totals?.reimbursementDebit || "0"
|
|
302
324
|
},
|
|
303
325
|
{
|
|
304
|
-
label:
|
|
305
|
-
value:
|
|
326
|
+
label: r("garnishmentsLabel"),
|
|
327
|
+
value: i.totals?.childSupportDebit || "0"
|
|
306
328
|
},
|
|
307
|
-
{ label:
|
|
329
|
+
{ label: r("taxesLabel"), value: i.totals?.taxDebit || "0" }
|
|
308
330
|
]
|
|
309
331
|
}
|
|
310
332
|
)
|
|
311
333
|
] })
|
|
312
334
|
}
|
|
313
335
|
];
|
|
314
|
-
return /* @__PURE__ */ d
|
|
315
|
-
/* @__PURE__ */ d
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
/* @__PURE__ */
|
|
336
|
+
return /* @__PURE__ */ s(d, { flexDirection: "column", alignItems: "stretch", children: [
|
|
337
|
+
x && /* @__PURE__ */ t(d, { justifyContent: "flex-end", children: /* @__PURE__ */ t(p, { onClick: x, variant: "secondary", children: r("backButton") }) }),
|
|
338
|
+
/* @__PURE__ */ s(d, { justifyContent: "space-between", children: [
|
|
339
|
+
/* @__PURE__ */ s(j, { flexGrow: 1, children: [
|
|
340
|
+
/* @__PURE__ */ t(w, { as: "h1", children: r(L ? "summaryTitle" : "overviewTitle") }),
|
|
341
|
+
/* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(
|
|
342
|
+
ae,
|
|
343
|
+
{
|
|
344
|
+
i18nKey: "pageSubtitle",
|
|
345
|
+
t: r,
|
|
346
|
+
components: { dateWrapper: /* @__PURE__ */ t(n, { weight: "bold", as: "span" }) },
|
|
347
|
+
values: ue({ payPeriod: i.payPeriod, locale: u })
|
|
348
|
+
}
|
|
349
|
+
) })
|
|
319
350
|
] }),
|
|
320
|
-
/* @__PURE__ */
|
|
321
|
-
/* @__PURE__ */
|
|
322
|
-
/* @__PURE__ */
|
|
323
|
-
|
|
351
|
+
/* @__PURE__ */ t(j, { flexGrow: 1, children: /* @__PURE__ */ t(d, { justifyContent: "flex-end", children: L ? /* @__PURE__ */ s(D, { children: [
|
|
352
|
+
/* @__PURE__ */ t(p, { onClick: H, variant: "secondary", isDisabled: h, children: r("payrollReceiptCta") }),
|
|
353
|
+
/* @__PURE__ */ t(
|
|
354
|
+
p,
|
|
324
355
|
{
|
|
325
356
|
onClick: () => {
|
|
326
|
-
|
|
357
|
+
A(!0);
|
|
327
358
|
},
|
|
328
359
|
variant: "error",
|
|
329
|
-
|
|
360
|
+
isDisabled: h,
|
|
361
|
+
children: r("cancelCta")
|
|
330
362
|
}
|
|
331
363
|
)
|
|
332
|
-
] }) : /* @__PURE__ */
|
|
333
|
-
/* @__PURE__ */
|
|
334
|
-
/* @__PURE__ */
|
|
335
|
-
] }) })
|
|
364
|
+
] }) : /* @__PURE__ */ s(D, { children: [
|
|
365
|
+
/* @__PURE__ */ t(p, { onClick: m, variant: "secondary", isDisabled: h, children: r("editCta") }),
|
|
366
|
+
/* @__PURE__ */ t(p, { onClick: g, isDisabled: h, children: r("submitCta") })
|
|
367
|
+
] }) }) })
|
|
336
368
|
] }),
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
369
|
+
h ? /* @__PURE__ */ t(Q, { children: /* @__PURE__ */ s(d, { flexDirection: "column", alignItems: "center", gap: 4, children: [
|
|
370
|
+
/* @__PURE__ */ t(Z, { size: "lg" }),
|
|
371
|
+
/* @__PURE__ */ t(w, { as: "h4", children: r("loadingTitle") }),
|
|
372
|
+
/* @__PURE__ */ t(n, { children: r("loadingDescription") })
|
|
373
|
+
] }) }) : /* @__PURE__ */ s(D, { children: [
|
|
374
|
+
O?.length && /* @__PURE__ */ t(d, { flexDirection: "column", gap: 16, children: O.map((e, a) => /* @__PURE__ */ t(M, { label: e.title, status: e.type, children: e.content ?? null }, `${e.type}-${e.title}`)) }),
|
|
375
|
+
/* @__PURE__ */ t(w, { as: "h3", children: r("payrollSummaryTitle") }),
|
|
376
|
+
/* @__PURE__ */ t(
|
|
377
|
+
b,
|
|
378
|
+
{
|
|
379
|
+
label: r("payrollSummaryLabel"),
|
|
380
|
+
columns: [
|
|
381
|
+
{
|
|
382
|
+
title: r("tableHeaders.totalPayroll"),
|
|
383
|
+
render: () => /* @__PURE__ */ t(n, { children: o(V) })
|
|
384
|
+
},
|
|
385
|
+
{
|
|
386
|
+
title: r("tableHeaders.debitAmount"),
|
|
387
|
+
render: () => /* @__PURE__ */ t(n, { children: o(Number(i.totals?.companyDebit ?? 0)) })
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
title: r("tableHeaders.debitAccount"),
|
|
391
|
+
render: () => /* @__PURE__ */ t(n, { children: X?.hiddenAccountNumber ?? "" })
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
title: r("tableHeaders.debitDate"),
|
|
395
|
+
render: () => /* @__PURE__ */ t(n, { children: ee?.toLocaleString(u, {
|
|
396
|
+
month: "short",
|
|
397
|
+
day: "numeric",
|
|
398
|
+
year: "numeric"
|
|
399
|
+
}) })
|
|
400
|
+
},
|
|
401
|
+
{
|
|
402
|
+
title: r("tableHeaders.employeesPayDate"),
|
|
403
|
+
render: () => /* @__PURE__ */ t(n, { children: y(i.checkDate)?.toLocaleDateString(u, {
|
|
404
|
+
month: "short",
|
|
405
|
+
day: "numeric",
|
|
406
|
+
year: "numeric"
|
|
407
|
+
}) })
|
|
408
|
+
}
|
|
409
|
+
],
|
|
410
|
+
data: [{}]
|
|
411
|
+
}
|
|
412
|
+
),
|
|
413
|
+
R > 0 && /* @__PURE__ */ t(
|
|
414
|
+
M,
|
|
415
|
+
{
|
|
416
|
+
status: "warning",
|
|
417
|
+
label: r("alerts.checkPaymentWarning", { count: R }),
|
|
418
|
+
children: /* @__PURE__ */ t(n, { children: r("alerts.checkPaymentWarningDescription") })
|
|
419
|
+
}
|
|
420
|
+
),
|
|
421
|
+
/* @__PURE__ */ t(
|
|
422
|
+
K,
|
|
423
|
+
{
|
|
424
|
+
onSelectionChange: J,
|
|
425
|
+
selectedId: q,
|
|
426
|
+
"aria-label": r("dataViews.label"),
|
|
427
|
+
tabs: re
|
|
428
|
+
}
|
|
429
|
+
),
|
|
430
|
+
U && /* @__PURE__ */ t(
|
|
431
|
+
z,
|
|
432
|
+
{
|
|
433
|
+
isOpen: U,
|
|
434
|
+
onClose: () => {
|
|
435
|
+
A(!1);
|
|
363
436
|
},
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
437
|
+
onPrimaryActionClick: T,
|
|
438
|
+
shouldCloseOnBackdropClick: !0,
|
|
439
|
+
primaryActionLabel: r("confirmCancelCta"),
|
|
440
|
+
isDestructive: !0,
|
|
441
|
+
closeActionLabel: r("declineCancelCta"),
|
|
442
|
+
title: r("cancelDialogTitle", {
|
|
443
|
+
startDate: y(
|
|
444
|
+
i.payPeriod?.startDate ?? ""
|
|
445
|
+
)?.toLocaleDateString(u, {
|
|
446
|
+
month: "long",
|
|
447
|
+
day: "numeric"
|
|
448
|
+
}),
|
|
449
|
+
endDate: y(
|
|
450
|
+
i.payPeriod?.endDate ?? ""
|
|
451
|
+
)?.toLocaleDateString(u, {
|
|
452
|
+
month: "long",
|
|
368
453
|
day: "numeric",
|
|
369
454
|
year: "numeric"
|
|
370
|
-
}) })
|
|
371
|
-
}
|
|
372
|
-
],
|
|
373
|
-
data: [{}]
|
|
374
|
-
}
|
|
375
|
-
),
|
|
376
|
-
/* @__PURE__ */ r(
|
|
377
|
-
G,
|
|
378
|
-
{
|
|
379
|
-
onSelectionChange: $,
|
|
380
|
-
selectedId: X,
|
|
381
|
-
"aria-label": t("dataViews.label"),
|
|
382
|
-
tabs: J
|
|
383
|
-
}
|
|
384
|
-
),
|
|
385
|
-
F && /* @__PURE__ */ r(
|
|
386
|
-
W,
|
|
387
|
-
{
|
|
388
|
-
isOpen: F,
|
|
389
|
-
onClose: () => {
|
|
390
|
-
N(!1);
|
|
391
|
-
},
|
|
392
|
-
onPrimaryActionClick: f,
|
|
393
|
-
shouldCloseOnBackdropClick: !0,
|
|
394
|
-
primaryActionLabel: t("confirmCancelCta"),
|
|
395
|
-
isDestructive: !0,
|
|
396
|
-
closeActionLabel: t("declineCancelCta"),
|
|
397
|
-
title: t("cancelDialogTitle", {
|
|
398
|
-
startDate: p(
|
|
399
|
-
l.payPeriod?.startDate ?? ""
|
|
400
|
-
)?.toLocaleDateString(m, {
|
|
401
|
-
month: "long",
|
|
402
|
-
day: "numeric"
|
|
403
|
-
}),
|
|
404
|
-
endDate: p(
|
|
405
|
-
l.payPeriod?.endDate ?? ""
|
|
406
|
-
)?.toLocaleDateString(m, {
|
|
407
|
-
month: "long",
|
|
408
|
-
day: "numeric",
|
|
409
|
-
year: "numeric"
|
|
410
|
-
})
|
|
411
|
-
}),
|
|
412
|
-
children: /* @__PURE__ */ d(u, { gap: 14, flexDirection: "column", children: [
|
|
413
|
-
/* @__PURE__ */ r(a, { children: t("cancelDialogDescription") }),
|
|
414
|
-
/* @__PURE__ */ r(a, { children: t("cancelDialogDescriptionDeadline", {
|
|
415
|
-
deadline: (l.payrollDeadline ?? "").toLocaleString(m, {
|
|
416
|
-
month: "short",
|
|
417
|
-
day: "numeric",
|
|
418
|
-
year: "numeric",
|
|
419
|
-
hour: "numeric",
|
|
420
|
-
minute: "numeric",
|
|
421
|
-
timeZoneName: "short"
|
|
422
455
|
})
|
|
423
|
-
})
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
456
|
+
}),
|
|
457
|
+
children: /* @__PURE__ */ s(d, { gap: 14, flexDirection: "column", children: [
|
|
458
|
+
/* @__PURE__ */ t(n, { children: r("cancelDialogDescription") }),
|
|
459
|
+
/* @__PURE__ */ t(n, { children: r("cancelDialogDescriptionDeadline", {
|
|
460
|
+
deadline: (i.payrollDeadline ?? "").toLocaleString(u, {
|
|
461
|
+
month: "short",
|
|
462
|
+
day: "numeric",
|
|
463
|
+
year: "numeric",
|
|
464
|
+
hour: "numeric",
|
|
465
|
+
minute: "numeric",
|
|
466
|
+
timeZoneName: "short"
|
|
467
|
+
})
|
|
468
|
+
}) })
|
|
469
|
+
] })
|
|
470
|
+
}
|
|
471
|
+
)
|
|
472
|
+
] })
|
|
427
473
|
] });
|
|
428
474
|
};
|
|
429
475
|
export {
|
|
430
|
-
|
|
476
|
+
we as PayrollOverviewPresentation
|
|
431
477
|
};
|
|
432
478
|
//# sourceMappingURL=PayrollOverviewPresentation.js.map
|