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