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