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