@gusto/embedded-react-sdk 0.46.0 → 0.46.3
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 +117 -0
- package/dist/components/Common/DataView/DataCards/DataCards.d.ts +2 -1
- package/dist/components/Common/DataView/DataCards/DataCards.js +14 -13
- package/dist/components/Common/DataView/DataCards/DataCards.js.map +1 -1
- package/dist/components/Common/DataView/DataTable/DataTable.d.ts +2 -1
- package/dist/components/Common/DataView/DataTable/DataTable.js +85 -80
- package/dist/components/Common/DataView/DataTable/DataTable.js.map +1 -1
- package/dist/components/Common/DataView/DataTable/DataTable.module.scss.js +8 -0
- package/dist/components/Common/DataView/DataTable/DataTable.module.scss.js.map +1 -0
- package/dist/components/Common/DataView/DataView.d.ts +1 -0
- package/dist/components/Common/DataView/DataView.js.map +1 -1
- package/dist/components/Common/DataView/useDataView.d.ts +10 -1
- package/dist/components/Common/DataView/useDataView.js +20 -17
- package/dist/components/Common/DataView/useDataView.js.map +1 -1
- package/dist/components/Common/DocumentViewer/DocumentViewer.js +10 -10
- package/dist/components/Common/DocumentViewer/DocumentViewer.js.map +1 -1
- package/dist/components/Common/DocumentViewer/DocumentViewer.module.scss.js +9 -9
- package/dist/components/Common/PaginationControl/PaginationControl.js +11 -10
- package/dist/components/Common/PaginationControl/PaginationControl.js.map +1 -1
- package/dist/components/Common/PaginationControl/PaginationControlTypes.d.ts +1 -1
- package/dist/components/Common/UI/DescriptionList/DescriptionList.js +11 -10
- package/dist/components/Common/UI/DescriptionList/DescriptionList.js.map +1 -1
- package/dist/components/Common/UI/DescriptionList/DescriptionList.module.scss.js +4 -4
- package/dist/components/Common/UI/Input/InputTypes.d.ts +1 -1
- package/dist/components/Common/UI/Input/InputTypes.js.map +1 -1
- package/dist/components/Common/UI/NumberInput/NumberInput.js +51 -48
- package/dist/components/Common/UI/NumberInput/NumberInput.js.map +1 -1
- package/dist/components/Common/VisuallyHidden/VisuallyHidden.d.ts +1 -1
- package/dist/components/Common/VisuallyHidden/VisuallyHidden.js.map +1 -1
- package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js +3 -4
- package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js.map +1 -1
- package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js +3 -4
- package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js.map +1 -1
- package/dist/components/Company/AssignSignatory/useAssignSignatory.js +5 -6
- package/dist/components/Company/AssignSignatory/useAssignSignatory.js.map +1 -1
- package/dist/components/Company/BankAccount/BankAccountForm/context.js +3 -4
- package/dist/components/Company/BankAccount/BankAccountForm/context.js.map +1 -1
- package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js +3 -4
- package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
- package/dist/components/Company/DocumentSigner/shared/useSignCompanyForm/fields.js +4 -4
- package/dist/components/Company/FederalTaxes/useFederalTaxes.js +5 -6
- package/dist/components/Company/FederalTaxes/useFederalTaxes.js.map +1 -1
- package/dist/components/Company/Industry/Context.js +6 -7
- package/dist/components/Company/Industry/Context.js.map +1 -1
- package/dist/components/Company/Locations/LocationForm/useLocationForm.js +3 -4
- package/dist/components/Company/Locations/LocationForm/useLocationForm.js.map +1 -1
- package/dist/components/Company/Locations/LocationsList/useLocationsList.js +3 -4
- package/dist/components/Company/Locations/LocationsList/useLocationsList.js.map +1 -1
- package/dist/components/Company/OnboardingOverview/context.js +3 -4
- package/dist/components/Company/OnboardingOverview/context.js.map +1 -1
- package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/fields.js +5 -5
- package/dist/components/Company/StateTaxes/StateTaxesForm/context.js +3 -4
- package/dist/components/Company/StateTaxes/StateTaxesForm/context.js.map +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesList/context.js +3 -4
- package/dist/components/Company/StateTaxes/StateTaxesList/context.js.map +1 -1
- package/dist/components/Contractor/Address/useAddress.js +5 -6
- package/dist/components/Contractor/Address/useAddress.js.map +1 -1
- package/dist/components/Contractor/Profile/useContractorProfile.js +33 -34
- package/dist/components/Contractor/Profile/useContractorProfile.js.map +1 -1
- package/dist/components/Employee/Compensation/management/AddAnotherJob/AddAnotherJob.d.ts +9 -0
- package/dist/components/Employee/Compensation/management/AddAnotherJob/AddAnotherJob.js +76 -0
- package/dist/components/Employee/Compensation/management/AddAnotherJob/AddAnotherJob.js.map +1 -0
- package/dist/components/Employee/Compensation/management/AddAnotherJob/AddAnotherJob.module.scss.js +8 -0
- package/dist/components/Employee/Compensation/management/AddAnotherJob/AddAnotherJob.module.scss.js.map +1 -0
- package/dist/components/Employee/Compensation/management/EditCompensation/EditCompensation.js +60 -202
- package/dist/components/Employee/Compensation/management/EditCompensation/EditCompensation.js.map +1 -1
- package/dist/components/Employee/Compensation/management/EditPendingCompensation/EditPendingCompensation.d.ts +25 -0
- package/dist/components/Employee/Compensation/management/EditPendingCompensation/EditPendingCompensation.js +79 -0
- package/dist/components/Employee/Compensation/management/EditPendingCompensation/EditPendingCompensation.js.map +1 -0
- package/dist/components/Employee/Compensation/management/EditPendingCompensation/EditPendingCompensation.module.scss.js +8 -0
- package/dist/components/Employee/Compensation/management/EditPendingCompensation/EditPendingCompensation.module.scss.js.map +1 -0
- package/dist/components/Employee/Compensation/management/ManagementCompensationFormBody.d.ts +18 -0
- package/dist/components/Employee/Compensation/management/ManagementCompensationFormBody.js +171 -0
- package/dist/components/Employee/Compensation/management/ManagementCompensationFormBody.js.map +1 -0
- package/dist/components/Employee/Compensation/management/index.d.ts +3 -0
- package/dist/components/Employee/Compensation/onboarding/EditCompensation/EditCompensation.d.ts +6 -1
- package/dist/components/Employee/Compensation/onboarding/EditCompensation/EditCompensation.js +67 -209
- package/dist/components/Employee/Compensation/onboarding/EditCompensation/EditCompensation.js.map +1 -1
- package/dist/components/Employee/Compensation/onboarding/JobsList/JobsListPresentation.js +36 -36
- package/dist/components/Employee/Compensation/onboarding/JobsList/JobsListPresentation.js.map +1 -1
- package/dist/components/Employee/Compensation/shared/AddCompensationFormBody.d.ts +18 -0
- package/dist/components/Employee/Compensation/shared/AddCompensationFormBody.js +169 -0
- package/dist/components/Employee/Compensation/shared/AddCompensationFormBody.js.map +1 -0
- package/dist/components/Employee/Compensation/shared/useCompensationForm/compensationSchema.d.ts +16 -0
- package/dist/components/Employee/Compensation/shared/useCompensationForm/compensationSchema.js +36 -30
- package/dist/components/Employee/Compensation/shared/useCompensationForm/compensationSchema.js.map +1 -1
- package/dist/components/Employee/Compensation/shared/useCompensationForm/fields.d.ts +1 -1
- package/dist/components/Employee/Compensation/shared/useCompensationForm/fields.js +4 -4
- package/dist/components/Employee/Compensation/shared/useCompensationForm/fields.js.map +1 -1
- package/dist/components/Employee/Compensation/shared/useCompensationForm/useCompensationForm.js +213 -191
- package/dist/components/Employee/Compensation/shared/useCompensationForm/useCompensationForm.js.map +1 -1
- package/dist/components/Employee/Compensation/shared/useJobForm/fields.js +6 -6
- package/dist/components/Employee/Compensation/shared/useJobForm/useJobForm.d.ts +6 -5
- package/dist/components/Employee/Compensation/shared/useJobForm/useJobForm.js +162 -131
- package/dist/components/Employee/Compensation/shared/useJobForm/useJobForm.js.map +1 -1
- package/dist/components/Employee/Dashboard/BasicDetailsView.js +74 -88
- package/dist/components/Employee/Dashboard/BasicDetailsView.js.map +1 -1
- package/dist/components/Employee/Dashboard/Dashboard.js +86 -72
- package/dist/components/Employee/Dashboard/Dashboard.js.map +1 -1
- package/dist/components/Employee/Dashboard/DashboardComponents.d.ts +3 -3
- package/dist/components/Employee/Dashboard/DashboardComponents.js +138 -101
- package/dist/components/Employee/Dashboard/DashboardComponents.js.map +1 -1
- package/dist/components/Employee/Dashboard/DocumentsView.js +17 -10
- package/dist/components/Employee/Dashboard/DocumentsView.js.map +1 -1
- package/dist/components/Employee/Dashboard/JobAndPayView.js +359 -313
- package/dist/components/Employee/Dashboard/JobAndPayView.js.map +1 -1
- package/dist/components/Employee/Dashboard/JobAndPayView.module.scss.js +5 -3
- package/dist/components/Employee/Dashboard/JobAndPayView.module.scss.js.map +1 -1
- package/dist/components/Employee/Dashboard/TaxesView.js +114 -101
- package/dist/components/Employee/Dashboard/TaxesView.js.map +1 -1
- package/dist/components/Employee/Dashboard/dashboardStateMachine.js +147 -148
- package/dist/components/Employee/Dashboard/dashboardStateMachine.js.map +1 -1
- package/dist/components/Employee/Dashboard/getPendingCompensationChanges.d.ts +6 -0
- package/dist/components/Employee/Dashboard/getPendingCompensationChanges.js +37 -36
- package/dist/components/Employee/Dashboard/getPendingCompensationChanges.js.map +1 -1
- package/dist/components/Employee/Dashboard/hooks/useEmployeeCompensation.d.ts +2 -2
- package/dist/components/Employee/Dashboard/hooks/useEmployeeCompensation.js +34 -35
- package/dist/components/Employee/Dashboard/hooks/useEmployeeCompensation.js.map +1 -1
- package/dist/components/Employee/Deductions/DeductionsForm/StandardDeductionForm.js +57 -57
- package/dist/components/Employee/Deductions/DeductionsForm/StandardDeductionForm.js.map +1 -1
- package/dist/components/Employee/Deductions/shared/useChildSupportGarnishmentForm/childSupportGarnishmentFormSchema.d.ts +14 -5
- package/dist/components/Employee/Deductions/shared/useChildSupportGarnishmentForm/childSupportGarnishmentFormSchema.js +55 -36
- package/dist/components/Employee/Deductions/shared/useChildSupportGarnishmentForm/childSupportGarnishmentFormSchema.js.map +1 -1
- package/dist/components/Employee/Deductions/shared/useChildSupportGarnishmentForm/fields.js +8 -8
- package/dist/components/Employee/Deductions/shared/useChildSupportGarnishmentForm/useChildSupportGarnishmentForm.js +18 -18
- package/dist/components/Employee/Deductions/shared/useChildSupportGarnishmentForm/useChildSupportGarnishmentForm.js.map +1 -1
- package/dist/components/Employee/Deductions/shared/useDeductionForm/fields.js +4 -4
- package/dist/components/Employee/Deductions/shared/useDeductionForm/useDeductionForm.d.ts +3 -3
- package/dist/components/Employee/Deductions/shared/useDeductionForm/useDeductionForm.js.map +1 -1
- package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/useDocumentList.js +3 -4
- package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
- package/dist/components/Employee/Documents/shared/useSignEmployeeForm/fields.js +1 -1
- package/dist/components/Employee/EmployeeList/management/ManagementEmployeeList.js +37 -40
- package/dist/components/Employee/EmployeeList/management/ManagementEmployeeList.js.map +1 -1
- package/dist/components/Employee/EmployeeList/management/ManagementEmployeeListView.d.ts +1 -2
- package/dist/components/Employee/EmployeeList/management/ManagementEmployeeListView.js +64 -71
- package/dist/components/Employee/EmployeeList/management/ManagementEmployeeListView.js.map +1 -1
- package/dist/components/Employee/EmployeeListFlow/EmployeeListFlow.d.ts +2 -0
- package/dist/components/Employee/EmployeeListFlow/EmployeeListFlow.js +25 -0
- package/dist/components/Employee/EmployeeListFlow/EmployeeListFlow.js.map +1 -0
- package/dist/components/Employee/EmployeeListFlow/EmployeeListFlowComponents.d.ts +13 -0
- package/dist/components/Employee/EmployeeListFlow/EmployeeListFlowComponents.js +37 -0
- package/dist/components/Employee/EmployeeListFlow/EmployeeListFlowComponents.js.map +1 -0
- package/dist/components/Employee/EmployeeListFlow/employeeListStateMachine.d.ts +6 -0
- package/dist/components/Employee/EmployeeListFlow/employeeListStateMachine.js +69 -0
- package/dist/components/Employee/EmployeeListFlow/employeeListStateMachine.js.map +1 -0
- package/dist/components/Employee/EmployeeListFlow/index.d.ts +3 -0
- package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/fields.js +4 -4
- package/dist/components/Employee/HomeAddress/management/HomeAddress.js +15 -12
- package/dist/components/Employee/HomeAddress/management/HomeAddress.js.map +1 -1
- package/dist/components/Employee/HomeAddress/management/HomeAddressView.d.ts +2 -1
- package/dist/components/Employee/HomeAddress/management/HomeAddressView.js +170 -157
- package/dist/components/Employee/HomeAddress/management/HomeAddressView.js.map +1 -1
- package/dist/components/Employee/HomeAddress/management/useHomeAddressManagement.js +56 -55
- package/dist/components/Employee/HomeAddress/management/useHomeAddressManagement.js.map +1 -1
- package/dist/components/Employee/PaymentMethod/onboarding/BankForm.js +20 -20
- package/dist/components/Employee/PaymentMethod/onboarding/BankForm.js.map +1 -1
- package/dist/components/Employee/PaymentMethod/shared/useBankForm/fields.js +1 -1
- package/dist/components/Employee/PaymentMethod/shared/useSplitPaymentsForm/splitFieldFactory.d.ts +1 -1
- package/dist/components/Employee/PaymentMethod/shared/useSplitPaymentsForm/splitFieldFactory.js +4 -4
- package/dist/components/Employee/PaymentMethod/shared/useSplitPaymentsForm/splitFieldFactory.js.map +1 -1
- package/dist/components/Employee/Profile/shared/useEmployeeDetailsForm/fields.js +8 -8
- package/dist/components/Employee/Profile/shared/useHomeAddressForm/fields.js +5 -5
- package/dist/components/Employee/Profile/shared/useHomeAddressForm/homeAddressSchema.d.ts +0 -1
- package/dist/components/Employee/Profile/shared/useHomeAddressForm/homeAddressSchema.js +11 -12
- package/dist/components/Employee/Profile/shared/useHomeAddressForm/homeAddressSchema.js.map +1 -1
- package/dist/components/Employee/Profile/shared/useHomeAddressForm/homeAddressSchema.test.d.ts +1 -0
- package/dist/components/Employee/Profile/shared/useHomeAddressForm/useHomeAddressForm.d.ts +6 -1
- package/dist/components/Employee/Profile/shared/useHomeAddressForm/useHomeAddressForm.js +95 -94
- package/dist/components/Employee/Profile/shared/useHomeAddressForm/useHomeAddressForm.js.map +1 -1
- package/dist/components/Employee/Profile/shared/useWorkAddressForm/fields.js +4 -4
- package/dist/components/Employee/Profile/shared/useWorkAddressForm/useWorkAddressForm.d.ts +6 -1
- package/dist/components/Employee/Profile/shared/useWorkAddressForm/useWorkAddressForm.js +87 -86
- package/dist/components/Employee/Profile/shared/useWorkAddressForm/useWorkAddressForm.js.map +1 -1
- package/dist/components/Employee/StateTaxes/shared/EmployeeStateTaxesView.js +18 -18
- package/dist/components/Employee/StateTaxes/shared/EmployeeStateTaxesView.js.map +1 -1
- package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fieldComponents.js +8 -8
- package/dist/components/Employee/Taxes/useTaxes.js +3 -4
- package/dist/components/Employee/Taxes/useTaxes.js.map +1 -1
- package/dist/components/Employee/WorkAddress/management/WorkAddress.js +14 -11
- package/dist/components/Employee/WorkAddress/management/WorkAddress.js.map +1 -1
- package/dist/components/Employee/WorkAddress/management/WorkAddressView.d.ts +2 -1
- package/dist/components/Employee/WorkAddress/management/WorkAddressView.js +96 -89
- package/dist/components/Employee/WorkAddress/management/WorkAddressView.js.map +1 -1
- package/dist/components/Employee/WorkAddress/management/useWorkAddressManagement.js +61 -60
- package/dist/components/Employee/WorkAddress/management/useWorkAddressManagement.js.map +1 -1
- package/dist/components/Employee/exports/employeeManagement.d.ts +2 -0
- package/dist/components/Employee/exports/employeeManagement.js +18 -16
- package/dist/components/Employee/exports/employeeManagement.js.map +1 -1
- package/dist/components/Employee/index.d.ts +2 -0
- package/dist/components/Employee/index.js +32 -30
- package/dist/components/Employee/index.js.map +1 -1
- package/dist/components/Flow/FlowHeader.js +34 -31
- package/dist/components/Flow/FlowHeader.js.map +1 -1
- package/dist/components/Flow/useFlow.d.ts +12 -0
- package/dist/components/Flow/useFlow.js.map +1 -1
- package/dist/components/Payroll/GrossUpModal/GrossUpModal.js +2 -3
- package/dist/components/Payroll/GrossUpModal/GrossUpModal.js.map +1 -1
- package/dist/components/Payroll/usePreparedPayrollData.js +2 -3
- package/dist/components/Payroll/usePreparedPayrollData.js.map +1 -1
- package/dist/components/TimeOff/PolicyList/PolicyList.js +92 -69
- package/dist/components/TimeOff/PolicyList/PolicyList.js.map +1 -1
- package/dist/components/TimeOff/PolicyList/PolicyListPresentation.js +23 -23
- package/dist/components/TimeOff/PolicyList/PolicyListPresentation.js.map +1 -1
- package/dist/components/TimeOff/TimeOffFlow/TimeOffFlowComponents.d.ts +1 -1
- package/dist/components/TimeOff/TimeOffFlow/TimeOffFlowComponents.js.map +1 -1
- package/dist/components/TimeOff/TimeOffFlow/timeOffStateMachine.js +73 -56
- package/dist/components/TimeOff/TimeOffFlow/timeOffStateMachine.js.map +1 -1
- package/dist/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.js +58 -58
- package/dist/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.js.map +1 -1
- package/dist/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormPresentation.d.ts +1 -1
- package/dist/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormPresentation.js +91 -87
- package/dist/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormPresentation.js.map +1 -1
- package/dist/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormTypes.d.ts +2 -0
- package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesHoliday.js +91 -125
- package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesHoliday.js.map +1 -1
- package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentation.d.ts +1 -1
- package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentation.js +60 -91
- package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentation.js.map +1 -1
- package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentation.module.scss.js +4 -4
- package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentationTypes.d.ts +0 -16
- package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesTimeOff.js +139 -225
- package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesTimeOff.js.map +1 -1
- package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/useSelectEmployeesData.d.ts +7 -3
- package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/useSelectEmployeesData.js +78 -54
- package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/useSelectEmployeesData.js.map +1 -1
- package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/useSelectEmployeesData.test.d.ts +1 -0
- package/dist/components/TimeOff/TimeOffPolicyDetail/EditEmployeeBalanceModal.js +12 -11
- package/dist/components/TimeOff/TimeOffPolicyDetail/EditEmployeeBalanceModal.js.map +1 -1
- package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetail.js +177 -147
- package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetail.js.map +1 -1
- package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetailPresentation.js +34 -34
- package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetailPresentation.js.map +1 -1
- package/dist/components/TimeOff/shared/EmployeeTable/EmployeeTable.d.ts +1 -1
- package/dist/components/TimeOff/shared/EmployeeTable/EmployeeTable.js +38 -36
- package/dist/components/TimeOff/shared/EmployeeTable/EmployeeTable.js.map +1 -1
- package/dist/components/TimeOff/shared/EmployeeTable/EmployeeTableTypes.d.ts +2 -0
- package/dist/helpers/breadcrumbHelpers.d.ts +1 -1
- package/dist/helpers/breadcrumbHelpers.js.map +1 -1
- package/dist/helpers/federalEin.d.ts +1 -0
- package/dist/helpers/federalEin.js.map +1 -1
- package/dist/helpers/mask.d.ts +8 -4
- package/dist/helpers/mask.js.map +1 -1
- package/dist/helpers/rem.d.ts +2 -1
- package/dist/helpers/rem.js.map +1 -1
- package/dist/hooks/useAsyncError.d.ts +1 -0
- package/dist/hooks/useAsyncError.js.map +1 -1
- package/dist/hooks/useForkRef/useForkRef.d.ts +1 -0
- package/dist/hooks/useForkRef/useForkRef.js.map +1 -1
- package/dist/i18n/I18n.d.ts +9 -1
- package/dist/i18n/I18n.js.map +1 -1
- package/dist/i18n/en/Company.TimeOff.EmployeeTable.json.js +14 -14
- package/dist/i18n/en/Company.TimeOff.SelectEmployees.json.js +16 -22
- package/dist/i18n/en/Company.TimeOff.SelectEmployees.json.js.map +1 -1
- package/dist/i18n/en/Company.TimeOff.TimeOffPolicies.json.js +17 -15
- package/dist/i18n/en/Company.TimeOff.TimeOffPolicies.json.js.map +1 -1
- package/dist/i18n/en/Company.TimeOff.TimeOffPolicyDetails.json.js +9 -9
- package/dist/i18n/en/Employee.Compensation.json.js +66 -58
- package/dist/i18n/en/Employee.Compensation.json.js.map +1 -1
- package/dist/i18n/en/Employee.Dashboard.json.js +28 -24
- package/dist/i18n/en/Employee.Dashboard.json.js.map +1 -1
- package/dist/i18n/en/Employee.HomeAddress.Management.json.js +12 -10
- package/dist/i18n/en/Employee.HomeAddress.Management.json.js.map +1 -1
- package/dist/i18n/en/Employee.ManagementEmployeeList.json.js +32 -30
- package/dist/i18n/en/Employee.ManagementEmployeeList.json.js.map +1 -1
- package/dist/i18n/en/Employee.PaymentMethod.json.js +25 -25
- package/dist/i18n/en/Employee.StateTaxes.json.js +12 -10
- package/dist/i18n/en/Employee.StateTaxes.json.js.map +1 -1
- package/dist/i18n/en/Employee.WorkAddress.Management.json.js +16 -14
- package/dist/i18n/en/Employee.WorkAddress.Management.json.js.map +1 -1
- package/dist/i18n/en/common.json.d.ts +14 -0
- package/dist/partner-hook-utils/form/fields/DatePickerHookField.js +33 -32
- package/dist/partner-hook-utils/form/fields/DatePickerHookField.js.map +1 -1
- package/dist/partner-hook-utils/types.d.ts +4 -0
- package/dist/shared/constants.d.ts +2 -0
- package/dist/shared/constants.js +13 -12
- package/dist/shared/constants.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/hooks.d.ts +1 -1
- package/dist/types/i18next.d.ts +30 -29
- package/dist/types/observability.d.ts +1 -1
- package/docs/reference/endpoint-inventory.json +24 -8
- package/package.json +30 -27
- package/dist/components/Employee/Dashboard/CompensationCard.d.ts +0 -13
|
@@ -1,142 +1,146 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useCallback as
|
|
3
|
-
import { useTranslation as
|
|
4
|
-
import { useGustoEmbeddedContext as
|
|
5
|
-
import { payrollsGetPayStub as
|
|
6
|
-
import { useErrorBoundary as
|
|
7
|
-
import { useJobsAndCompensationsDeleteMutation as
|
|
8
|
-
import { usePendingChangeDetailRenderer as
|
|
9
|
-
import { PendingChangesReviewModal as
|
|
10
|
-
import
|
|
11
|
-
import { Flex as
|
|
12
|
-
import { useComponentContext as
|
|
1
|
+
import { jsx as t, jsxs as f, Fragment as rn } from "react/jsx-runtime";
|
|
2
|
+
import { useCallback as pe, useState as R, useEffect as dn } from "react";
|
|
3
|
+
import { useTranslation as k } from "react-i18next";
|
|
4
|
+
import { useGustoEmbeddedContext as cn } from "@gusto/embedded-api/react-query/_context";
|
|
5
|
+
import { payrollsGetPayStub as ln } from "@gusto/embedded-api/funcs/payrollsGetPayStub";
|
|
6
|
+
import { useErrorBoundary as un } from "react-error-boundary";
|
|
7
|
+
import { useJobsAndCompensationsDeleteMutation as mn } from "@gusto/embedded-api/react-query/jobsAndCompensationsDelete";
|
|
8
|
+
import { usePendingChangeDetailRenderer as pn } from "./usePendingChangeDetailRenderer.js";
|
|
9
|
+
import { PendingChangesReviewModal as yn } from "./PendingChangesReviewModal.js";
|
|
10
|
+
import ye from "./JobAndPayView.module.scss.js";
|
|
11
|
+
import { Flex as j } from "../../Common/Flex/Flex.js";
|
|
12
|
+
import { useComponentContext as bn } from "../../../contexts/ComponentAdapter/useComponentContext.js";
|
|
13
13
|
import "classnames";
|
|
14
|
-
import { componentEvents as P, FlsaStatus as
|
|
15
|
-
import { Loading as
|
|
16
|
-
import { EmptyData as
|
|
17
|
-
import { BaseLayout as
|
|
18
|
-
import { composeErrorHandler as
|
|
19
|
-
import { readableStreamToBlob as
|
|
20
|
-
import { formatDateToStringDate as
|
|
21
|
-
import { useFormatCompensationRate as
|
|
22
|
-
import
|
|
23
|
-
import { useI18n as
|
|
24
|
-
import { useDeleteBankAccount as
|
|
25
|
-
import { DeleteBankAccountDialog as
|
|
26
|
-
import { usePaymentMethodList as
|
|
27
|
-
import { useDeductionsList as
|
|
28
|
-
import { useDeleteDeduction as
|
|
29
|
-
import { DeleteDeductionDialog as
|
|
30
|
-
import { formatDeductionAmount as
|
|
31
|
-
import
|
|
32
|
-
import
|
|
33
|
-
import
|
|
34
|
-
import
|
|
35
|
-
import
|
|
36
|
-
import { useEmployeeCompensation as
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
14
|
+
import { componentEvents as P, FlsaStatus as be, PAYMENT_METHODS as gn } from "../../../shared/constants.js";
|
|
15
|
+
import { Loading as v } from "../../Common/Loading/Loading.js";
|
|
16
|
+
import { EmptyData as _ } from "../../Common/EmptyData/EmptyData.js";
|
|
17
|
+
import { BaseLayout as hn } from "../../Base/Base.js";
|
|
18
|
+
import { composeErrorHandler as fn } from "../../../partner-hook-utils/composeErrorHandler.js";
|
|
19
|
+
import { readableStreamToBlob as Pn } from "../../../helpers/readableStreamToBlob.js";
|
|
20
|
+
import { formatDateToStringDate as Cn, formatDateLongWithYear as L } from "../../../helpers/dateFormatting.js";
|
|
21
|
+
import { useFormatCompensationRate as An } from "../../../helpers/formattedStrings.js";
|
|
22
|
+
import ge from "../../../hooks/useNumberFormatter.js";
|
|
23
|
+
import { useI18n as F } from "../../../i18n/I18n.js";
|
|
24
|
+
import { useDeleteBankAccount as Dn } from "../PaymentMethod/shared/useDeleteBankAccount.js";
|
|
25
|
+
import { DeleteBankAccountDialog as jn } from "../PaymentMethod/shared/DeleteBankAccountDialog.js";
|
|
26
|
+
import { usePaymentMethodList as Ln } from "../PaymentMethod/shared/usePaymentMethodList.js";
|
|
27
|
+
import { useDeductionsList as wn } from "../Deductions/shared/useDeductionsList.js";
|
|
28
|
+
import { useDeleteDeduction as En } from "../Deductions/shared/useDeleteDeduction.js";
|
|
29
|
+
import { DeleteDeductionDialog as kn } from "../Deductions/shared/DeleteDeductionDialog.js";
|
|
30
|
+
import { formatDeductionAmount as vn } from "../Deductions/shared/formatDeductionAmount.js";
|
|
31
|
+
import U from "../../../assets/icons/plus-circle.svg.js";
|
|
32
|
+
import Un from "../../../assets/icons/percent-circle.svg.js";
|
|
33
|
+
import Sn from "../../../assets/icons/download-cloud.svg.js";
|
|
34
|
+
import V from "../../../assets/icons/trashcan.svg.js";
|
|
35
|
+
import he from "../../../assets/icons/pencil.svg.js";
|
|
36
|
+
import { useEmployeeCompensation as Bn } from "./hooks/useEmployeeCompensation.js";
|
|
37
|
+
import { VisuallyHidden as Jn } from "../../Common/VisuallyHidden/VisuallyHidden.js";
|
|
38
|
+
import { HamburgerMenu as Y } from "../../Common/HamburgerMenu/HamburgerMenu.js";
|
|
39
|
+
import { useDataView as S } from "../../Common/DataView/useDataView.js";
|
|
40
|
+
import { DataView as B } from "../../Common/DataView/DataView.js";
|
|
41
|
+
function fe(r) {
|
|
42
|
+
if (r === void 0) return null;
|
|
43
|
+
const u = parseFloat(r);
|
|
44
|
+
return Number.isFinite(u) ? u : null;
|
|
44
45
|
}
|
|
45
|
-
function
|
|
46
|
-
employeeId:
|
|
47
|
-
onEvent:
|
|
48
|
-
onEditCompensation:
|
|
49
|
-
onAddJob:
|
|
50
|
-
onAddAnotherJob:
|
|
51
|
-
onAddDeduction:
|
|
52
|
-
onEditDeduction:
|
|
46
|
+
function Ct({
|
|
47
|
+
employeeId: r,
|
|
48
|
+
onEvent: u,
|
|
49
|
+
onEditCompensation: W,
|
|
50
|
+
onAddJob: Pe,
|
|
51
|
+
onAddAnotherJob: Ce,
|
|
52
|
+
onAddDeduction: Ae,
|
|
53
|
+
onEditDeduction: De
|
|
53
54
|
}) {
|
|
54
|
-
|
|
55
|
-
const { t: n } =
|
|
55
|
+
F("Employee.PaymentMethod"), F("Employee.Compensation"), F("Employee.Deductions");
|
|
56
|
+
const { t: n } = k("Employee.Dashboard"), { t: C } = k("Employee.PaymentMethod"), { t: je } = k("Employee.Compensation"), { t: J } = k("Employee.Deductions"), i = bn(), I = An(), N = ge("currency"), Le = ge("percent"), G = cn(), { showBoundary: q } = un(), p = Bn({ employeeId: r }), {
|
|
56
57
|
jobs: A,
|
|
57
|
-
primaryFlsaStatus:
|
|
58
|
-
pendingChanges:
|
|
59
|
-
hasMultipleJobs:
|
|
60
|
-
payStubs:
|
|
61
|
-
employeeFirstName:
|
|
62
|
-
} =
|
|
58
|
+
primaryFlsaStatus: we,
|
|
59
|
+
pendingChanges: K,
|
|
60
|
+
hasMultipleJobs: Ee,
|
|
61
|
+
payStubs: ke,
|
|
62
|
+
employeeFirstName: x
|
|
63
|
+
} = p.data, ve = p.pagination.payStubs, z = p.status.cancellingCompensationUuid, { cancelPendingChange: X } = p.actions, T = p.status.isCompensationLoading, Ue = p.status.isPayStubsLoading, $ = pe(
|
|
63
64
|
async (e) => {
|
|
64
|
-
await
|
|
65
|
-
employeeId:
|
|
65
|
+
await X(e) && u(P.EMPLOYEE_COMPENSATION_CHANGE_CANCELLED, {
|
|
66
|
+
employeeId: r,
|
|
66
67
|
compensationId: e.compensationUuid
|
|
67
68
|
});
|
|
68
69
|
},
|
|
69
|
-
[
|
|
70
|
-
), [
|
|
70
|
+
[X, u, r]
|
|
71
|
+
), [Se, Q] = R(
|
|
71
72
|
() => /* @__PURE__ */ new Set()
|
|
72
|
-
),
|
|
73
|
+
), Be = pe(
|
|
73
74
|
async (e) => {
|
|
74
|
-
const
|
|
75
|
-
if (
|
|
76
|
-
const a =
|
|
77
|
-
a.title =
|
|
78
|
-
const
|
|
79
|
-
|
|
80
|
-
const
|
|
81
|
-
|
|
82
|
-
const
|
|
83
|
-
|
|
75
|
+
const o = window.open("", "_blank"), d = n("jobAndPay.paystubs.downloadLoadingMessage");
|
|
76
|
+
if (o) {
|
|
77
|
+
const a = o.document;
|
|
78
|
+
a.title = d;
|
|
79
|
+
const c = a.createElement("style");
|
|
80
|
+
c.textContent = "body{font-family:system-ui,-apple-system,sans-serif;display:flex;align-items:center;justify-content:center;height:100vh;margin:0;color:#444;gap:12px}.spinner{width:20px;height:20px;border:2px solid #ccc;border-top-color:#444;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}", a.head.appendChild(c);
|
|
81
|
+
const g = a.createElement("div");
|
|
82
|
+
g.className = "spinner", g.setAttribute("aria-hidden", "true");
|
|
83
|
+
const me = a.createElement("span");
|
|
84
|
+
me.textContent = d, a.body.replaceChildren(g, me);
|
|
84
85
|
}
|
|
85
|
-
|
|
86
|
-
const
|
|
87
|
-
return
|
|
86
|
+
Q((a) => {
|
|
87
|
+
const c = new Set(a);
|
|
88
|
+
return c.add(e), c;
|
|
88
89
|
});
|
|
89
90
|
try {
|
|
90
|
-
const a = await
|
|
91
|
+
const a = await ln(G, {
|
|
91
92
|
payrollId: e,
|
|
92
|
-
employeeId:
|
|
93
|
+
employeeId: r
|
|
93
94
|
});
|
|
94
95
|
if (!a.value?.responseStream)
|
|
95
96
|
throw new Error(n("jobAndPay.paystubs.downloadError"));
|
|
96
|
-
const
|
|
97
|
-
|
|
97
|
+
const c = await Pn(a.value.responseStream, "application/pdf"), g = URL.createObjectURL(c);
|
|
98
|
+
o ? (o.addEventListener("load", () => {
|
|
99
|
+
URL.revokeObjectURL(g);
|
|
100
|
+
}), o.location.href = g) : URL.revokeObjectURL(g);
|
|
98
101
|
} catch (a) {
|
|
99
|
-
|
|
102
|
+
o && o.close(), q(a instanceof Error ? a : new Error(String(a)));
|
|
100
103
|
} finally {
|
|
101
|
-
|
|
102
|
-
const
|
|
103
|
-
return
|
|
104
|
+
Q((a) => {
|
|
105
|
+
const c = new Set(a);
|
|
106
|
+
return c.delete(e), c;
|
|
104
107
|
});
|
|
105
108
|
}
|
|
106
109
|
},
|
|
107
|
-
[
|
|
108
|
-
), [D,
|
|
110
|
+
[G, r, n, q]
|
|
111
|
+
), [D, M] = R(null), { mutateAsync: Je, isPending: Z } = mn(), Ne = async () => {
|
|
109
112
|
if (!D) return;
|
|
110
113
|
const e = D.uuid;
|
|
111
|
-
await
|
|
112
|
-
},
|
|
113
|
-
(e) => e.effectiveDate !== void 0 && e.effectiveDate >
|
|
114
|
-
) ?? !1,
|
|
115
|
-
(e) => e.uuid ===
|
|
116
|
-
),
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
114
|
+
await Je({ request: { jobId: e } }), u(P.EMPLOYEE_JOB_DELETED, { employeeId: r, jobId: e }), M(null);
|
|
115
|
+
}, s = A.length === 1 ? A[0] : void 0, h = Ee, xe = Cn(/* @__PURE__ */ new Date()) ?? "", Te = A.find((e) => e.primary)?.compensations?.some(
|
|
116
|
+
(e) => e.effectiveDate !== void 0 && e.effectiveDate > xe && e.flsaStatus !== be.NONEXEMPT
|
|
117
|
+
) ?? !1, Me = A.length >= 1 && we === be.NONEXEMPT && !Te, ee = s ? fe(s.rate) : null, ne = s?.compensations?.find(
|
|
118
|
+
(e) => e.uuid === s.currentCompensationUuid
|
|
119
|
+
), w = /* @__PURE__ */ t("span", { "aria-label": n("listEmptyPlaceholder"), children: "–" }), Oe = s?.paymentUnit ? s.paymentUnit === "Hour" ? n("jobAndPay.compensation.types.hourly") : s.paymentUnit === "Salary" || s.paymentUnit === "Year" ? n("jobAndPay.compensation.types.salary") : s.paymentUnit : null, [He, O] = R(!1), Re = pn(x), _e = K.filter((e) => e.isNewJob), y = K.filter((e) => !e.isNewJob);
|
|
120
|
+
dn(() => {
|
|
121
|
+
y.length === 0 && O(!1);
|
|
122
|
+
}, [y.length]);
|
|
123
|
+
const H = new Set(_e.map((e) => e.jobUuid)), Fe = s ? H.has(s.uuid) : !1, Ve = H.size > 0, te = new Set(y.map((e) => e.jobUuid)), Ye = s ? te.has(s.uuid) : !1, oe = y.length > 0, ie = h && y.length > 1, We = oe && !ie, b = y[0], l = Ln({ employeeId: r }), ae = l.isLoading ? void 0 : l.data.paymentMethod, E = l.isLoading ? [] : l.data.bankAccounts, Ie = l.isLoading ? void 0 : l.status.deletePendingBankAccountUuid, { pendingDeleteAccount: se, setPendingDeleteAccount: re, handleConfirmDelete: Ge } = Dn(async (e) => {
|
|
120
124
|
if (l.isLoading) return;
|
|
121
|
-
const
|
|
122
|
-
|
|
123
|
-
}),
|
|
124
|
-
pendingDeleteDeduction:
|
|
125
|
-
setPendingDeleteDeduction:
|
|
126
|
-
handleConfirmDelete:
|
|
127
|
-
} =
|
|
128
|
-
if (
|
|
129
|
-
const
|
|
130
|
-
|
|
131
|
-
}),
|
|
125
|
+
const o = await l.actions.onDelete(e);
|
|
126
|
+
o && u(P.EMPLOYEE_BANK_ACCOUNT_DELETED, o.data);
|
|
127
|
+
}), m = wn({ employeeId: r }), qe = m.isLoading ? [] : m.data.deductions, de = m.isLoading ? void 0 : m.status.deletingGarnishmentUuid, {
|
|
128
|
+
pendingDeleteDeduction: ce,
|
|
129
|
+
setPendingDeleteDeduction: le,
|
|
130
|
+
handleConfirmDelete: Ke
|
|
131
|
+
} = En(async (e) => {
|
|
132
|
+
if (m.isLoading) return;
|
|
133
|
+
const o = await m.actions.onDelete(e);
|
|
134
|
+
o && u(P.EMPLOYEE_DEDUCTION_DELETED, o.data.garnishment);
|
|
135
|
+
}), ze = fn([p, l, m]), Xe = [
|
|
132
136
|
{
|
|
133
137
|
key: "jobTitle",
|
|
134
138
|
title: n("jobAndPay.compensation.columns.jobTitle"),
|
|
135
139
|
render: (e) => {
|
|
136
|
-
const
|
|
137
|
-
return /* @__PURE__ */
|
|
138
|
-
|
|
139
|
-
|
|
140
|
+
const o = e.compensations?.find((a) => a.uuid === e.currentCompensationUuid), d = fe(e.rate);
|
|
141
|
+
return /* @__PURE__ */ f(rn, { children: [
|
|
142
|
+
o?.title || "-",
|
|
143
|
+
d !== null && e.paymentUnit ? /* @__PURE__ */ t(i.Text, { variant: "supporting", size: "sm", children: I(d, e.paymentUnit) }) : null
|
|
140
144
|
] });
|
|
141
145
|
}
|
|
142
146
|
},
|
|
@@ -144,49 +148,64 @@ function dn({
|
|
|
144
148
|
key: "payType",
|
|
145
149
|
title: n("jobAndPay.compensation.columns.payType"),
|
|
146
150
|
render: (e) => {
|
|
147
|
-
const
|
|
148
|
-
(
|
|
151
|
+
const o = e.compensations?.find(
|
|
152
|
+
(d) => d.uuid === e.currentCompensationUuid
|
|
149
153
|
)?.flsaStatus;
|
|
150
|
-
return
|
|
154
|
+
return o !== void 0 ? je(`flsaStatusLabels.${o}`) : "-";
|
|
151
155
|
}
|
|
152
156
|
},
|
|
153
157
|
{
|
|
154
158
|
key: "effectiveDate",
|
|
155
159
|
title: n("jobAndPay.compensation.columns.effectiveDate"),
|
|
156
160
|
render: (e) => {
|
|
157
|
-
const
|
|
158
|
-
return
|
|
161
|
+
const o = e.compensations?.find((d) => d.uuid === e.currentCompensationUuid);
|
|
162
|
+
return o?.effectiveDate ? L(o.effectiveDate) : "-";
|
|
159
163
|
}
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
data: A,
|
|
163
|
-
columns: Fe,
|
|
164
|
-
itemMenu: (e) => /* @__PURE__ */ t(
|
|
165
|
-
H,
|
|
164
|
+
},
|
|
165
|
+
...Ve ? [
|
|
166
166
|
{
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
167
|
+
key: "status",
|
|
168
|
+
title: /* @__PURE__ */ t(Jn, { children: n("jobAndPay.compensation.columns.status") }),
|
|
169
|
+
render: (e) => H.has(e.uuid) ? /* @__PURE__ */ t(i.Badge, { status: "warning", children: n("jobAndPay.compensation.pendingStatus") }) : null
|
|
170
|
+
}
|
|
171
|
+
] : []
|
|
172
|
+
], $e = S({
|
|
173
|
+
data: A,
|
|
174
|
+
columns: Xe,
|
|
175
|
+
itemMenu: (e) => {
|
|
176
|
+
const d = [
|
|
177
|
+
...te.has(e.uuid) ? [] : [
|
|
170
178
|
{
|
|
171
179
|
label: n("jobAndPay.compensation.editJobCta"),
|
|
172
|
-
icon: /* @__PURE__ */ t(
|
|
180
|
+
icon: /* @__PURE__ */ t(he, { "aria-hidden": !0 }),
|
|
173
181
|
onClick: () => {
|
|
174
|
-
|
|
182
|
+
W?.(e);
|
|
175
183
|
}
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
+
}
|
|
185
|
+
],
|
|
186
|
+
...e.primary ? [] : [
|
|
187
|
+
{
|
|
188
|
+
label: n("jobAndPay.compensation.deleteJobCta"),
|
|
189
|
+
icon: /* @__PURE__ */ t(V, { "aria-hidden": !0 }),
|
|
190
|
+
onClick: () => {
|
|
191
|
+
const a = e.compensations?.find(
|
|
192
|
+
(c) => c.uuid === e.currentCompensationUuid
|
|
193
|
+
);
|
|
194
|
+
M({ uuid: e.uuid, title: a?.title ?? "" });
|
|
184
195
|
}
|
|
185
|
-
|
|
196
|
+
}
|
|
186
197
|
]
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
198
|
+
];
|
|
199
|
+
return d.length === 0 ? null : /* @__PURE__ */ t(
|
|
200
|
+
Y,
|
|
201
|
+
{
|
|
202
|
+
triggerLabel: n("jobAndPay.compensation.hamburgerTitle"),
|
|
203
|
+
isLoading: Z,
|
|
204
|
+
items: d
|
|
205
|
+
}
|
|
206
|
+
);
|
|
207
|
+
}
|
|
208
|
+
}), Qe = [
|
|
190
209
|
{
|
|
191
210
|
key: "nickname",
|
|
192
211
|
title: n("jobAndPay.payment.nickname"),
|
|
@@ -202,7 +221,7 @@ function dn({
|
|
|
202
221
|
title: n("jobAndPay.payment.accountType"),
|
|
203
222
|
render: (e) => e.accountType || "-"
|
|
204
223
|
}
|
|
205
|
-
],
|
|
224
|
+
], Ze = [
|
|
206
225
|
{
|
|
207
226
|
key: "description",
|
|
208
227
|
title: n("jobAndPay.deductions.deduction"),
|
|
@@ -216,25 +235,25 @@ function dn({
|
|
|
216
235
|
{
|
|
217
236
|
key: "amount",
|
|
218
237
|
title: n("jobAndPay.deductions.withhold"),
|
|
219
|
-
render: (e) =>
|
|
220
|
-
formatCurrency:
|
|
221
|
-
formatPercent:
|
|
222
|
-
formatPerPaycheck: (
|
|
238
|
+
render: (e) => vn(e, {
|
|
239
|
+
formatCurrency: N,
|
|
240
|
+
formatPercent: Le,
|
|
241
|
+
formatPerPaycheck: (o) => n("jobAndPay.deductions.amountPerPaycheck", { value: o })
|
|
223
242
|
})
|
|
224
243
|
}
|
|
225
|
-
],
|
|
244
|
+
], en = [
|
|
226
245
|
{
|
|
227
246
|
key: "payday",
|
|
228
247
|
title: n("jobAndPay.paystubs.payday"),
|
|
229
|
-
render: (e) =>
|
|
248
|
+
render: (e) => L(e.checkDate) || "-"
|
|
230
249
|
},
|
|
231
250
|
{
|
|
232
251
|
key: "checkAmount",
|
|
233
252
|
title: n("jobAndPay.paystubs.checkAmount"),
|
|
234
253
|
render: (e) => {
|
|
235
254
|
if (!e.netPay) return "-";
|
|
236
|
-
const
|
|
237
|
-
return isNaN(
|
|
255
|
+
const o = parseFloat(e.netPay);
|
|
256
|
+
return isNaN(o) ? "-" : N(o);
|
|
238
257
|
}
|
|
239
258
|
},
|
|
240
259
|
{
|
|
@@ -242,102 +261,102 @@ function dn({
|
|
|
242
261
|
title: n("jobAndPay.paystubs.grossPay"),
|
|
243
262
|
render: (e) => {
|
|
244
263
|
if (!e.grossPay) return "-";
|
|
245
|
-
const
|
|
246
|
-
return isNaN(
|
|
264
|
+
const o = parseFloat(e.grossPay);
|
|
265
|
+
return isNaN(o) ? "-" : N(o);
|
|
247
266
|
}
|
|
248
267
|
},
|
|
249
268
|
{
|
|
250
269
|
key: "paymentMethod",
|
|
251
270
|
title: n("jobAndPay.paystubs.paymentMethod"),
|
|
252
|
-
render: () =>
|
|
271
|
+
render: () => ae?.type || n("jobAndPay.paystubs.noPaymentMethod")
|
|
253
272
|
}
|
|
254
|
-
],
|
|
273
|
+
], nn = S({
|
|
255
274
|
data: E,
|
|
256
|
-
columns:
|
|
275
|
+
columns: Qe,
|
|
257
276
|
itemMenu: (e) => /* @__PURE__ */ t(
|
|
258
|
-
|
|
277
|
+
Y,
|
|
259
278
|
{
|
|
260
279
|
items: [
|
|
261
280
|
{
|
|
262
281
|
label: C("deleteBankAccountCta"),
|
|
263
282
|
onClick: () => {
|
|
264
|
-
|
|
283
|
+
re({
|
|
265
284
|
uuid: e.uuid,
|
|
266
285
|
hiddenAccountNumber: e.hiddenAccountNumber
|
|
267
286
|
});
|
|
268
287
|
},
|
|
269
|
-
icon: /* @__PURE__ */ t(
|
|
288
|
+
icon: /* @__PURE__ */ t(V, { "aria-hidden": !0 })
|
|
270
289
|
}
|
|
271
290
|
],
|
|
272
291
|
triggerLabel: C("hamburgerTitle")
|
|
273
292
|
}
|
|
274
293
|
)
|
|
275
|
-
}),
|
|
276
|
-
data:
|
|
277
|
-
columns:
|
|
294
|
+
}), tn = S({
|
|
295
|
+
data: qe,
|
|
296
|
+
columns: Ze,
|
|
278
297
|
itemMenu: (e) => /* @__PURE__ */ t(
|
|
279
|
-
|
|
298
|
+
Y,
|
|
280
299
|
{
|
|
281
|
-
isLoading:
|
|
300
|
+
isLoading: de === e.uuid,
|
|
282
301
|
items: [
|
|
283
302
|
{
|
|
284
|
-
label:
|
|
285
|
-
onClick: () =>
|
|
286
|
-
icon: /* @__PURE__ */ t(
|
|
303
|
+
label: J("editCta"),
|
|
304
|
+
onClick: () => De?.(e),
|
|
305
|
+
icon: /* @__PURE__ */ t(he, { "aria-hidden": !0 })
|
|
287
306
|
},
|
|
288
307
|
{
|
|
289
|
-
label:
|
|
308
|
+
label: J("deleteCta"),
|
|
290
309
|
onClick: () => {
|
|
291
|
-
|
|
310
|
+
le(e);
|
|
292
311
|
},
|
|
293
|
-
icon: /* @__PURE__ */ t(
|
|
312
|
+
icon: /* @__PURE__ */ t(V, { "aria-hidden": !0 })
|
|
294
313
|
}
|
|
295
314
|
],
|
|
296
|
-
triggerLabel:
|
|
315
|
+
triggerLabel: J("hamburgerTitle")
|
|
297
316
|
}
|
|
298
317
|
),
|
|
299
318
|
emptyState: () => /* @__PURE__ */ t(
|
|
300
|
-
|
|
319
|
+
_,
|
|
301
320
|
{
|
|
302
321
|
title: n("jobAndPay.deductions.emptyState.title"),
|
|
303
322
|
description: n("jobAndPay.deductions.emptyState.description")
|
|
304
323
|
}
|
|
305
324
|
)
|
|
306
|
-
}),
|
|
307
|
-
data:
|
|
308
|
-
columns:
|
|
309
|
-
pagination:
|
|
325
|
+
}), on = S({
|
|
326
|
+
data: ke,
|
|
327
|
+
columns: en,
|
|
328
|
+
pagination: ve,
|
|
310
329
|
itemMenu: (e) => {
|
|
311
|
-
const
|
|
330
|
+
const o = !!e.payrollUuid && Se.has(e.payrollUuid);
|
|
312
331
|
return /* @__PURE__ */ t(
|
|
313
|
-
|
|
332
|
+
i.ButtonIcon,
|
|
314
333
|
{
|
|
315
334
|
variant: "tertiary",
|
|
316
335
|
"aria-label": n("jobAndPay.paystubs.downloadCta"),
|
|
317
336
|
isDisabled: !e.payrollUuid,
|
|
318
|
-
isLoading:
|
|
337
|
+
isLoading: o,
|
|
319
338
|
onClick: () => {
|
|
320
|
-
e.payrollUuid &&
|
|
339
|
+
e.payrollUuid && Be(e.payrollUuid);
|
|
321
340
|
},
|
|
322
|
-
children: /* @__PURE__ */ t(
|
|
341
|
+
children: /* @__PURE__ */ t(Sn, { "aria-hidden": !0 })
|
|
323
342
|
}
|
|
324
343
|
);
|
|
325
344
|
},
|
|
326
345
|
emptyState: () => /* @__PURE__ */ t(
|
|
327
|
-
|
|
346
|
+
_,
|
|
328
347
|
{
|
|
329
348
|
title: n("jobAndPay.paystubs.emptyState.title"),
|
|
330
349
|
description: n("jobAndPay.paystubs.emptyState.description")
|
|
331
350
|
}
|
|
332
351
|
)
|
|
333
|
-
}),
|
|
334
|
-
return /* @__PURE__ */ t(
|
|
352
|
+
}), an = l.isLoading && l.errorHandling.errors.length === 0, sn = m.isLoading && m.errorHandling.errors.length === 0, ue = ae?.type === gn.directDeposit;
|
|
353
|
+
return /* @__PURE__ */ t(hn, { error: ze.errors, children: /* @__PURE__ */ f(j, { flexDirection: "column", gap: 24, children: [
|
|
335
354
|
/* @__PURE__ */ t(
|
|
336
|
-
|
|
355
|
+
i.Box,
|
|
337
356
|
{
|
|
338
|
-
withPadding: !
|
|
357
|
+
withPadding: !h,
|
|
339
358
|
header: /* @__PURE__ */ t(
|
|
340
|
-
|
|
359
|
+
i.BoxHeader,
|
|
341
360
|
{
|
|
342
361
|
title: n("jobAndPay.compensation.title"),
|
|
343
362
|
action: (
|
|
@@ -345,114 +364,134 @@ function dn({
|
|
|
345
364
|
// know if the employee has jobs — suppress the action
|
|
346
365
|
// so we don't surface an "Add job" CTA against an
|
|
347
366
|
// employee who already has one.
|
|
348
|
-
|
|
349
|
-
|
|
367
|
+
T || h ? null : s ? Ye ? null : /* @__PURE__ */ t(
|
|
368
|
+
i.Button,
|
|
350
369
|
{
|
|
351
370
|
variant: "secondary",
|
|
352
371
|
onClick: () => {
|
|
353
|
-
|
|
372
|
+
W?.(s);
|
|
354
373
|
},
|
|
355
374
|
children: n("jobAndPay.compensation.editCta")
|
|
356
375
|
}
|
|
357
376
|
) : /* @__PURE__ */ t(
|
|
358
|
-
|
|
377
|
+
i.Button,
|
|
359
378
|
{
|
|
360
379
|
variant: "secondary",
|
|
361
|
-
onClick:
|
|
362
|
-
icon: /* @__PURE__ */ t(
|
|
380
|
+
onClick: Pe,
|
|
381
|
+
icon: /* @__PURE__ */ t(U, {}),
|
|
363
382
|
children: n("jobAndPay.compensation.addJobCta")
|
|
364
383
|
}
|
|
365
384
|
)
|
|
366
385
|
)
|
|
367
386
|
}
|
|
368
387
|
),
|
|
369
|
-
footer: !
|
|
370
|
-
|
|
388
|
+
footer: !T && Me ? /* @__PURE__ */ t(
|
|
389
|
+
i.Button,
|
|
371
390
|
{
|
|
372
391
|
variant: "secondary",
|
|
373
|
-
onClick:
|
|
374
|
-
icon: /* @__PURE__ */ t(
|
|
392
|
+
onClick: Ce,
|
|
393
|
+
icon: /* @__PURE__ */ t(U, {}),
|
|
375
394
|
children: n("jobAndPay.compensation.addAnotherJobCta")
|
|
376
395
|
}
|
|
377
396
|
) : void 0,
|
|
378
|
-
children:
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
jobTitle: b.jobTitle,
|
|
387
|
-
date: j(b.effectiveDate)
|
|
388
|
-
}) : n("jobAndPay.compensation.pendingChange.alertLabel", {
|
|
389
|
-
date: j(b.effectiveDate)
|
|
390
|
-
}),
|
|
391
|
-
children: /* @__PURE__ */ d(c, { flexDirection: "column", gap: 12, children: [
|
|
392
|
-
/* @__PURE__ */ t(
|
|
393
|
-
o.UnorderedList,
|
|
394
|
-
{
|
|
395
|
-
items: b.details.map((e) => Ue(e))
|
|
396
|
-
}
|
|
397
|
-
),
|
|
398
|
-
/* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(
|
|
399
|
-
o.Button,
|
|
400
|
-
{
|
|
401
|
-
variant: "secondary",
|
|
402
|
-
isLoading: G === b.compensationUuid,
|
|
403
|
-
onClick: () => {
|
|
404
|
-
q(b);
|
|
405
|
-
},
|
|
406
|
-
children: n("jobAndPay.compensation.pendingChange.cancelCta")
|
|
407
|
-
}
|
|
408
|
-
) })
|
|
409
|
-
] })
|
|
410
|
-
}
|
|
411
|
-
),
|
|
412
|
-
ee && /* @__PURE__ */ t(
|
|
413
|
-
o.Alert,
|
|
414
|
-
{
|
|
415
|
-
status: "warning",
|
|
416
|
-
disableScrollIntoView: !0,
|
|
417
|
-
label: n("jobAndPay.compensation.pendingChange.summaryLabel", {
|
|
418
|
-
name: M ?? ""
|
|
419
|
-
}),
|
|
420
|
-
action: /* @__PURE__ */ t(
|
|
421
|
-
o.Button,
|
|
397
|
+
children: T ? /* @__PURE__ */ t(v, {}) : /* @__PURE__ */ f(j, { flexDirection: "column", gap: 16, children: [
|
|
398
|
+
oe && /* @__PURE__ */ t(
|
|
399
|
+
"div",
|
|
400
|
+
{
|
|
401
|
+
className: [ye.alertWrapper, h && ye.alertWrapperPadded].filter(Boolean).join(" "),
|
|
402
|
+
children: /* @__PURE__ */ f(j, { flexDirection: "column", gap: 16, children: [
|
|
403
|
+
We && b && /* @__PURE__ */ t(
|
|
404
|
+
i.Alert,
|
|
422
405
|
{
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
406
|
+
status: "warning",
|
|
407
|
+
disableScrollIntoView: !0,
|
|
408
|
+
label: h ? n("jobAndPay.compensation.pendingChange.alertLabelWithJob", {
|
|
409
|
+
jobTitle: b.jobTitle,
|
|
410
|
+
date: L(b.effectiveDate)
|
|
411
|
+
}) : n("jobAndPay.compensation.pendingChange.alertLabel", {
|
|
412
|
+
date: L(b.effectiveDate)
|
|
413
|
+
}),
|
|
414
|
+
children: /* @__PURE__ */ f(j, { flexDirection: "column", gap: 12, children: [
|
|
415
|
+
/* @__PURE__ */ t(
|
|
416
|
+
i.UnorderedList,
|
|
417
|
+
{
|
|
418
|
+
items: b.details.map((e) => Re(e))
|
|
419
|
+
}
|
|
420
|
+
),
|
|
421
|
+
/* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(
|
|
422
|
+
i.Button,
|
|
423
|
+
{
|
|
424
|
+
variant: "secondary",
|
|
425
|
+
isLoading: z === b.compensationUuid,
|
|
426
|
+
onClick: () => {
|
|
427
|
+
$(b);
|
|
428
|
+
},
|
|
429
|
+
children: n("jobAndPay.compensation.pendingChange.cancelCta")
|
|
430
|
+
}
|
|
431
|
+
) })
|
|
432
|
+
] })
|
|
433
|
+
}
|
|
434
|
+
),
|
|
435
|
+
ie && /* @__PURE__ */ t(
|
|
436
|
+
i.Alert,
|
|
437
|
+
{
|
|
438
|
+
status: "warning",
|
|
439
|
+
disableScrollIntoView: !0,
|
|
440
|
+
label: n("jobAndPay.compensation.pendingChange.summaryLabel", {
|
|
441
|
+
name: x ?? ""
|
|
442
|
+
}),
|
|
443
|
+
action: /* @__PURE__ */ t(
|
|
444
|
+
i.Button,
|
|
445
|
+
{
|
|
446
|
+
variant: "secondary",
|
|
447
|
+
onClick: () => {
|
|
448
|
+
O(!0);
|
|
449
|
+
},
|
|
450
|
+
children: n("jobAndPay.compensation.pendingChange.reviewCta")
|
|
451
|
+
}
|
|
452
|
+
)
|
|
428
453
|
}
|
|
429
454
|
)
|
|
430
|
-
}
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
455
|
+
] })
|
|
456
|
+
}
|
|
457
|
+
),
|
|
458
|
+
h ? /* @__PURE__ */ t(
|
|
459
|
+
B,
|
|
435
460
|
{
|
|
436
461
|
label: n("jobAndPay.compensation.tableLabel"),
|
|
437
462
|
isWithinBox: !0,
|
|
438
|
-
|
|
463
|
+
...$e
|
|
464
|
+
}
|
|
465
|
+
) : s ? /* @__PURE__ */ t(
|
|
466
|
+
i.DescriptionList,
|
|
467
|
+
{
|
|
468
|
+
items: [
|
|
469
|
+
{
|
|
470
|
+
term: n("jobAndPay.compensation.jobTitle"),
|
|
471
|
+
description: s.title || w
|
|
472
|
+
},
|
|
473
|
+
{
|
|
474
|
+
term: n("jobAndPay.compensation.type"),
|
|
475
|
+
description: Oe || w
|
|
476
|
+
},
|
|
477
|
+
{
|
|
478
|
+
term: n("jobAndPay.compensation.wage"),
|
|
479
|
+
description: ee !== null && s.paymentUnit ? I(ee, s.paymentUnit) : w
|
|
480
|
+
},
|
|
481
|
+
{
|
|
482
|
+
term: n("jobAndPay.compensation.effectiveDate"),
|
|
483
|
+
description: ne?.effectiveDate ? L(ne.effectiveDate) : w
|
|
484
|
+
},
|
|
485
|
+
...Fe ? [
|
|
486
|
+
{
|
|
487
|
+
term: n("jobAndPay.compensation.columns.status"),
|
|
488
|
+
description: /* @__PURE__ */ t(i.Badge, { status: "warning", children: n("jobAndPay.compensation.pendingStatus") })
|
|
489
|
+
}
|
|
490
|
+
] : []
|
|
491
|
+
]
|
|
439
492
|
}
|
|
440
|
-
) :
|
|
441
|
-
|
|
442
|
-
/* @__PURE__ */ t(o.Text, { variant: "supporting", children: n("jobAndPay.compensation.jobTitle") }),
|
|
443
|
-
/* @__PURE__ */ t(o.Text, { children: r.title })
|
|
444
|
-
] }),
|
|
445
|
-
r.paymentUnit && /* @__PURE__ */ d(c, { flexDirection: "column", gap: 0, children: [
|
|
446
|
-
/* @__PURE__ */ t(o.Text, { variant: "supporting", children: n("jobAndPay.compensation.type") }),
|
|
447
|
-
/* @__PURE__ */ t(o.Text, { children: r.paymentUnit === "Hour" ? n("jobAndPay.compensation.types.hourly") : r.paymentUnit === "Salary" || r.paymentUnit === "Year" ? n("jobAndPay.compensation.types.salary") : r.paymentUnit })
|
|
448
|
-
] }),
|
|
449
|
-
$ !== null && r.paymentUnit && /* @__PURE__ */ d(c, { flexDirection: "column", gap: 0, children: [
|
|
450
|
-
/* @__PURE__ */ t(o.Text, { variant: "supporting", children: n("jobAndPay.compensation.wage") }),
|
|
451
|
-
/* @__PURE__ */ t(o.Text, { children: Y($, r.paymentUnit) })
|
|
452
|
-
] }),
|
|
453
|
-
Be
|
|
454
|
-
] }) : /* @__PURE__ */ t(
|
|
455
|
-
O,
|
|
493
|
+
) : /* @__PURE__ */ t(
|
|
494
|
+
_,
|
|
456
495
|
{
|
|
457
496
|
title: n("jobAndPay.compensation.emptyState.title"),
|
|
458
497
|
description: n("jobAndPay.compensation.emptyState.description")
|
|
@@ -462,141 +501,148 @@ function dn({
|
|
|
462
501
|
}
|
|
463
502
|
),
|
|
464
503
|
/* @__PURE__ */ t(
|
|
465
|
-
|
|
504
|
+
i.Box,
|
|
466
505
|
{
|
|
467
506
|
withPadding: E.length === 0,
|
|
468
507
|
header: /* @__PURE__ */ t(
|
|
469
|
-
|
|
508
|
+
i.BoxHeader,
|
|
470
509
|
{
|
|
471
510
|
title: n("jobAndPay.payment.title"),
|
|
472
|
-
action: /* @__PURE__ */
|
|
473
|
-
|
|
474
|
-
|
|
511
|
+
action: /* @__PURE__ */ f(j, { gap: 8, alignItems: "center", justifyContent: "flex-end", children: [
|
|
512
|
+
ue && E.length > 1 && /* @__PURE__ */ t(
|
|
513
|
+
i.Button,
|
|
475
514
|
{
|
|
476
515
|
variant: "secondary",
|
|
477
516
|
onClick: () => {
|
|
478
|
-
|
|
517
|
+
u(P.EMPLOYEE_SPLIT_PAYCHECK, { employeeId: r });
|
|
479
518
|
},
|
|
480
|
-
icon: /* @__PURE__ */ t(
|
|
519
|
+
icon: /* @__PURE__ */ t(Un, {}),
|
|
481
520
|
children: n("jobAndPay.payment.splitPaycheckCta")
|
|
482
521
|
}
|
|
483
522
|
),
|
|
484
523
|
/* @__PURE__ */ t(
|
|
485
|
-
|
|
524
|
+
i.Button,
|
|
486
525
|
{
|
|
487
526
|
variant: "secondary",
|
|
488
527
|
onClick: () => {
|
|
489
|
-
|
|
528
|
+
u(P.EMPLOYEE_BANK_ACCOUNT_CREATE, { employeeId: r });
|
|
490
529
|
},
|
|
491
|
-
icon: /* @__PURE__ */ t(
|
|
530
|
+
icon: /* @__PURE__ */ t(U, {}),
|
|
492
531
|
children: n("jobAndPay.payment.addBankAccountCta")
|
|
493
532
|
}
|
|
494
533
|
)
|
|
495
534
|
] })
|
|
496
535
|
}
|
|
497
536
|
),
|
|
498
|
-
children:
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
537
|
+
children: an ? /* @__PURE__ */ t(v, {}) : E.length === 0 ? /* @__PURE__ */ t(
|
|
538
|
+
i.DescriptionList,
|
|
539
|
+
{
|
|
540
|
+
items: [
|
|
541
|
+
{
|
|
542
|
+
term: C("paymentMethodLabel"),
|
|
543
|
+
description: C(ue ? "directDepositLabel" : "checkLabel")
|
|
544
|
+
}
|
|
545
|
+
]
|
|
546
|
+
}
|
|
547
|
+
) : /* @__PURE__ */ t(
|
|
548
|
+
B,
|
|
503
549
|
{
|
|
504
550
|
label: n("jobAndPay.payment.listLabel"),
|
|
505
551
|
isWithinBox: !0,
|
|
506
|
-
...
|
|
552
|
+
...nn
|
|
507
553
|
}
|
|
508
554
|
)
|
|
509
555
|
}
|
|
510
556
|
),
|
|
511
557
|
/* @__PURE__ */ t(
|
|
512
|
-
|
|
558
|
+
i.Box,
|
|
513
559
|
{
|
|
514
560
|
withPadding: !1,
|
|
515
561
|
header: /* @__PURE__ */ t(
|
|
516
|
-
|
|
562
|
+
i.BoxHeader,
|
|
517
563
|
{
|
|
518
564
|
title: n("jobAndPay.deductions.title"),
|
|
519
565
|
action: /* @__PURE__ */ t(
|
|
520
|
-
|
|
566
|
+
i.Button,
|
|
521
567
|
{
|
|
522
568
|
variant: "secondary",
|
|
523
|
-
onClick:
|
|
524
|
-
icon: /* @__PURE__ */ t(
|
|
569
|
+
onClick: Ae,
|
|
570
|
+
icon: /* @__PURE__ */ t(U, {}),
|
|
525
571
|
children: n("jobAndPay.deductions.addDeductionCta")
|
|
526
572
|
}
|
|
527
573
|
)
|
|
528
574
|
}
|
|
529
575
|
),
|
|
530
|
-
children:
|
|
531
|
-
|
|
576
|
+
children: sn ? /* @__PURE__ */ t(v, {}) : /* @__PURE__ */ t(
|
|
577
|
+
B,
|
|
532
578
|
{
|
|
533
579
|
label: n("jobAndPay.deductions.listLabel"),
|
|
534
580
|
isWithinBox: !0,
|
|
535
|
-
...
|
|
581
|
+
...tn
|
|
536
582
|
}
|
|
537
583
|
)
|
|
538
584
|
}
|
|
539
585
|
),
|
|
540
586
|
/* @__PURE__ */ t(
|
|
541
|
-
|
|
587
|
+
i.Box,
|
|
542
588
|
{
|
|
543
589
|
withPadding: !1,
|
|
544
|
-
header: /* @__PURE__ */ t(
|
|
545
|
-
children:
|
|
590
|
+
header: /* @__PURE__ */ t(i.BoxHeader, { title: n("jobAndPay.paystubs.title") }),
|
|
591
|
+
children: Ue ? /* @__PURE__ */ t(v, {}) : /* @__PURE__ */ t(B, { label: n("jobAndPay.paystubs.listLabel"), isWithinBox: !0, ...on })
|
|
546
592
|
}
|
|
547
593
|
),
|
|
548
594
|
/* @__PURE__ */ t(
|
|
549
|
-
|
|
595
|
+
yn,
|
|
550
596
|
{
|
|
551
|
-
isOpen:
|
|
552
|
-
pendingChanges:
|
|
553
|
-
employeeFirstName:
|
|
554
|
-
cancellingCompensationUuid:
|
|
597
|
+
isOpen: He,
|
|
598
|
+
pendingChanges: y,
|
|
599
|
+
employeeFirstName: x,
|
|
600
|
+
cancellingCompensationUuid: z,
|
|
555
601
|
onClose: () => {
|
|
556
|
-
|
|
602
|
+
O(!1);
|
|
557
603
|
},
|
|
558
604
|
onCancelChange: (e) => {
|
|
559
|
-
|
|
605
|
+
$(e);
|
|
560
606
|
}
|
|
561
607
|
}
|
|
562
608
|
),
|
|
563
609
|
/* @__PURE__ */ t(
|
|
564
|
-
|
|
610
|
+
jn,
|
|
565
611
|
{
|
|
566
|
-
pendingDeleteAccount:
|
|
567
|
-
isPrimaryActionLoading:
|
|
612
|
+
pendingDeleteAccount: se,
|
|
613
|
+
isPrimaryActionLoading: Ie === se?.uuid,
|
|
568
614
|
onClose: () => {
|
|
569
|
-
|
|
615
|
+
re(null);
|
|
570
616
|
},
|
|
571
617
|
onConfirm: () => {
|
|
572
|
-
|
|
618
|
+
Ge();
|
|
573
619
|
}
|
|
574
620
|
}
|
|
575
621
|
),
|
|
576
622
|
/* @__PURE__ */ t(
|
|
577
|
-
|
|
623
|
+
kn,
|
|
578
624
|
{
|
|
579
|
-
pendingDeleteDeduction:
|
|
580
|
-
isPrimaryActionLoading:
|
|
625
|
+
pendingDeleteDeduction: ce,
|
|
626
|
+
isPrimaryActionLoading: de === ce?.uuid,
|
|
581
627
|
onClose: () => {
|
|
582
|
-
|
|
628
|
+
le(null);
|
|
583
629
|
},
|
|
584
630
|
onConfirm: () => {
|
|
585
|
-
|
|
631
|
+
Ke();
|
|
586
632
|
}
|
|
587
633
|
}
|
|
588
634
|
),
|
|
589
635
|
/* @__PURE__ */ t(
|
|
590
|
-
|
|
636
|
+
i.Dialog,
|
|
591
637
|
{
|
|
592
638
|
isOpen: D !== null,
|
|
593
639
|
onClose: () => {
|
|
594
|
-
|
|
640
|
+
M(null);
|
|
595
641
|
},
|
|
596
642
|
onPrimaryActionClick: () => {
|
|
597
|
-
|
|
643
|
+
Ne();
|
|
598
644
|
},
|
|
599
|
-
isPrimaryActionLoading:
|
|
645
|
+
isPrimaryActionLoading: Z,
|
|
600
646
|
isDestructive: !0,
|
|
601
647
|
title: n("jobAndPay.compensation.deleteJobDialog.title"),
|
|
602
648
|
primaryActionLabel: n("jobAndPay.compensation.deleteJobDialog.confirmCta"),
|
|
@@ -609,6 +655,6 @@ function dn({
|
|
|
609
655
|
] }) });
|
|
610
656
|
}
|
|
611
657
|
export {
|
|
612
|
-
|
|
658
|
+
Ct as JobAndPayView
|
|
613
659
|
};
|
|
614
660
|
//# sourceMappingURL=JobAndPayView.js.map
|