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