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