@gusto/embedded-react-sdk 0.55.7 → 0.56.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 +63 -0
- package/dist/components/Common/FadeIn/FadeIn.module.scss.js +4 -4
- package/dist/components/Common/FieldCaption/FieldCaption.js +22 -18
- package/dist/components/Common/FieldCaption/FieldCaption.js.map +1 -1
- package/dist/components/Common/Flex/Flex.js +17 -15
- package/dist/components/Common/Flex/Flex.js.map +1 -1
- package/dist/components/Common/UI/Breadcrumbs/Breadcrumbs.js +1 -1
- package/dist/components/Common/UI/FileInput/FileInput.js +1 -1
- package/dist/components/Common/UI/Heading/Heading.module.scss.js +7 -7
- package/dist/components/Common/UI/Menu/MenuTypes.js.map +1 -1
- package/dist/components/Common/UI/MultiSelectComboBox/MultiSelectComboBox.js +43 -42
- package/dist/components/Common/UI/MultiSelectComboBox/MultiSelectComboBox.js.map +1 -1
- package/dist/components/Common/UI/ProgressBar/ProgressBar.js +4 -4
- package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js +5 -3
- package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js.map +1 -1
- package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js +5 -3
- package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js.map +1 -1
- package/dist/components/Company/AssignSignatory/useAssignSignatory.js +7 -5
- package/dist/components/Company/AssignSignatory/useAssignSignatory.js.map +1 -1
- package/dist/components/Company/BankAccount/BankAccountForm/context.js +5 -3
- package/dist/components/Company/BankAccount/BankAccountForm/context.js.map +1 -1
- package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js +5 -3
- package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
- package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js +27 -27
- package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js.map +1 -1
- package/dist/components/Company/FederalTaxes/useFederalTaxes.js +10 -8
- package/dist/components/Company/FederalTaxes/useFederalTaxes.js.map +1 -1
- package/dist/components/Company/Industry/Context.js +8 -6
- package/dist/components/Company/Industry/Context.js.map +1 -1
- package/dist/components/Company/Locations/LocationForm/useLocationForm.js +5 -3
- package/dist/components/Company/Locations/LocationForm/useLocationForm.js.map +1 -1
- package/dist/components/Company/Locations/LocationsList/useLocationsList.js +5 -3
- package/dist/components/Company/Locations/LocationsList/useLocationsList.js.map +1 -1
- package/dist/components/Company/OnboardingOverview/context.js +5 -3
- package/dist/components/Company/OnboardingOverview/context.js.map +1 -1
- package/dist/components/Company/PaySchedule/PaySchedule.js +45 -30
- package/dist/components/Company/PaySchedule/PaySchedule.js.map +1 -1
- package/dist/components/Company/PaySchedule/PayScheduleComponents.js +12 -11
- package/dist/components/Company/PaySchedule/PayScheduleComponents.js.map +1 -1
- package/dist/components/Company/PaySchedule/PayScheduleForm.js +72 -55
- package/dist/components/Company/PaySchedule/PayScheduleForm.js.map +1 -1
- package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/fields.js +24 -20
- package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/fields.js.map +1 -1
- package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/payScheduleSchema.js +33 -29
- package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/payScheduleSchema.js.map +1 -1
- package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/usePayScheduleForm.js +131 -115
- package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/usePayScheduleForm.js.map +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesForm/context.js +5 -3
- package/dist/components/Company/StateTaxes/StateTaxesForm/context.js.map +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesList/context.js +5 -3
- package/dist/components/Company/StateTaxes/StateTaxesList/context.js.map +1 -1
- package/dist/components/Company/StateTaxes/TaxRateManagement/context.js +5 -3
- package/dist/components/Company/StateTaxes/TaxRateManagement/context.js.map +1 -1
- package/dist/components/Contractor/ContractorList/management/ManagementContractorList.js +31 -29
- package/dist/components/Contractor/ContractorList/management/ManagementContractorList.js.map +1 -1
- package/dist/components/Contractor/ContractorList/management/ManagementContractorListView.js +110 -109
- package/dist/components/Contractor/ContractorList/management/ManagementContractorListView.js.map +1 -1
- package/dist/components/Contractor/ContractorList/onboarding/ContractorList.js +21 -19
- package/dist/components/Contractor/ContractorList/onboarding/ContractorList.js.map +1 -1
- package/dist/components/Contractor/ContractorList/onboarding/ContractorListView.js +56 -55
- package/dist/components/Contractor/ContractorList/onboarding/ContractorListView.js.map +1 -1
- package/dist/components/Contractor/Dashboard/Dashboard.js +34 -33
- package/dist/components/Contractor/Dashboard/Dashboard.js.map +1 -1
- package/dist/components/Contractor/Payments/CreateHistoricalPayment/CreateHistoricalPayment.js +117 -115
- package/dist/components/Contractor/Payments/CreateHistoricalPayment/CreateHistoricalPayment.js.map +1 -1
- package/dist/components/Contractor/Payments/CreatePayment/CreatePayment.js +77 -75
- package/dist/components/Contractor/Payments/CreatePayment/CreatePayment.js.map +1 -1
- package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.js +44 -43
- package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.js.map +1 -1
- package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.js +40 -39
- package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.js.map +1 -1
- package/dist/components/Contractor/Payments/HistoricalPaymentSummary/HistoricalPaymentSummary.js +35 -29
- package/dist/components/Contractor/Payments/HistoricalPaymentSummary/HistoricalPaymentSummary.js.map +1 -1
- package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistory.js +21 -20
- package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistory.js.map +1 -1
- package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.js +41 -40
- package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.js.map +1 -1
- package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatement.js +21 -20
- package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatement.js.map +1 -1
- package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.js +33 -32
- package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.js.map +1 -1
- package/dist/components/Contractor/Payments/PaymentsList/PaymentsList.js +80 -78
- package/dist/components/Contractor/Payments/PaymentsList/PaymentsList.js.map +1 -1
- package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.js +44 -43
- package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.js.map +1 -1
- package/dist/components/Contractor/Submit/Submit.js +113 -105
- package/dist/components/Contractor/Submit/Submit.js.map +1 -1
- package/dist/components/Contractor/Submit/SubmitDone.js +11 -11
- package/dist/components/Contractor/Submit/SubmitDone.js.map +1 -1
- package/dist/components/Employee/Compensation/management/CompensationAddJobForm/CompensationAddJobForm.js +20 -18
- package/dist/components/Employee/Compensation/management/CompensationAddJobForm/CompensationAddJobForm.js.map +1 -1
- package/dist/components/Employee/Compensation/management/CompensationEditForm/CompensationEditForm.js +18 -15
- package/dist/components/Employee/Compensation/management/CompensationEditForm/CompensationEditForm.js.map +1 -1
- package/dist/components/Employee/Dashboard/Dashboard.js +33 -32
- package/dist/components/Employee/Dashboard/Dashboard.js.map +1 -1
- package/dist/components/Employee/Deductions/management/DeductionsEditForm/DeductionsEditForm.js +21 -19
- package/dist/components/Employee/Deductions/management/DeductionsEditForm/DeductionsEditForm.js.map +1 -1
- package/dist/components/Employee/Documents/management/DocumentManager.js +34 -26
- package/dist/components/Employee/Documents/management/DocumentManager.js.map +1 -1
- package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/useDocumentList.js +5 -3
- package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
- package/dist/components/Employee/Documents/onboarding/DocumentSigner/EmploymentEligibility/EmploymentEligibility.js +30 -29
- package/dist/components/Employee/Documents/onboarding/DocumentSigner/EmploymentEligibility/EmploymentEligibility.js.map +1 -1
- package/dist/components/Employee/Documents/onboarding/DocumentSigner/EmploymentEligibility/EmploymentEligibilityPresentation.js +54 -53
- package/dist/components/Employee/Documents/onboarding/DocumentSigner/EmploymentEligibility/EmploymentEligibilityPresentation.js.map +1 -1
- package/dist/components/Employee/Documents/onboarding/EmployeeDocuments/EmployeeDocuments.js +29 -28
- package/dist/components/Employee/Documents/onboarding/EmployeeDocuments/EmployeeDocuments.js.map +1 -1
- package/dist/components/Employee/Documents/onboarding/EmployeeDocuments/EmployeeDocumentsPresentation.js +16 -15
- package/dist/components/Employee/Documents/onboarding/EmployeeDocuments/EmployeeDocumentsPresentation.js.map +1 -1
- package/dist/components/Employee/EmployeeList/management/ManagementEmployeeList.js +27 -25
- package/dist/components/Employee/EmployeeList/management/ManagementEmployeeList.js.map +1 -1
- package/dist/components/Employee/EmployeeList/management/ManagementEmployeeListView.js +121 -111
- package/dist/components/Employee/EmployeeList/management/ManagementEmployeeListView.js.map +1 -1
- package/dist/components/Employee/EmployeeList/onboarding/EmployeeList.js +22 -20
- package/dist/components/Employee/EmployeeList/onboarding/EmployeeList.js.map +1 -1
- package/dist/components/Employee/EmployeeList/onboarding/EmployeeListView.js +24 -23
- package/dist/components/Employee/EmployeeList/onboarding/EmployeeListView.js.map +1 -1
- package/dist/components/Employee/EmployeeList/shared/useEmployeeList.js +52 -43
- package/dist/components/Employee/EmployeeList/shared/useEmployeeList.js.map +1 -1
- package/dist/components/Employee/EmployeeListFlow/employeeListStateMachine.js +29 -26
- package/dist/components/Employee/EmployeeListFlow/employeeListStateMachine.js.map +1 -1
- package/dist/components/Employee/FederalTaxes/shared/FederalTaxesView.js +1 -1
- package/dist/components/Employee/HomeAddress/management/HomeAddressEditForm.js +19 -17
- package/dist/components/Employee/HomeAddress/management/HomeAddressEditForm.js.map +1 -1
- package/dist/components/Employee/HomeAddress/management/HomeAddressView.js +79 -78
- package/dist/components/Employee/HomeAddress/management/HomeAddressView.js.map +1 -1
- package/dist/components/Employee/PaymentMethod/management/PaymentMethodBankForm.js +4 -4
- package/dist/components/Employee/PaymentMethod/onboarding/BankForm.js +4 -4
- package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployee.js +40 -39
- package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployee.js.map +1 -1
- package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployeePresentation.js +31 -30
- package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployeePresentation.js.map +1 -1
- package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummary.js +43 -41
- package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummary.js.map +1 -1
- package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummaryPresentation.js +20 -19
- package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummaryPresentation.js.map +1 -1
- package/dist/components/Employee/WorkAddress/management/WorkAddressEditForm.js +19 -17
- package/dist/components/Employee/WorkAddress/management/WorkAddressEditForm.js.map +1 -1
- package/dist/components/Employee/WorkAddress/management/WorkAddressView.js +49 -48
- package/dist/components/Employee/WorkAddress/management/WorkAddressView.js.map +1 -1
- package/dist/components/Flow/Flow.js +1 -1
- package/dist/components/InformationRequests/InformationRequestList/InformationRequestList.js +28 -28
- package/dist/components/InformationRequests/InformationRequestList/InformationRequestList.js.map +1 -1
- package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetails.js +37 -36
- package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetails.js.map +1 -1
- package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsBanner/ConfirmWireDetailsBanner.js +36 -35
- package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsBanner/ConfirmWireDetailsBanner.js.map +1 -1
- package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelection.js +35 -28
- package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelection.js.map +1 -1
- package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelectionPresentation.js +23 -22
- package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelectionPresentation.js.map +1 -1
- package/dist/components/Payroll/GrossUpModal/GrossUpModal.js +48 -45
- package/dist/components/Payroll/GrossUpModal/GrossUpModal.js.map +1 -1
- package/dist/components/Payroll/OffCycleCreation/OffCycleCreation.js +85 -77
- package/dist/components/Payroll/OffCycleCreation/OffCycleCreation.js.map +1 -1
- package/dist/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.js +63 -59
- package/dist/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.js.map +1 -1
- package/dist/components/Payroll/OffCycleDeductionsSetting/OffCycleDeductionsSetting.js +23 -21
- package/dist/components/Payroll/OffCycleDeductionsSetting/OffCycleDeductionsSetting.js.map +1 -1
- package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelection.js +26 -19
- package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelection.js.map +1 -1
- package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelectionPresentation.js +14 -12
- package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelectionPresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js +184 -162
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js.map +1 -1
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js +67 -65
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollConfiguration/useCalculationPoll.js +48 -34
- package/dist/components/Payroll/PayrollConfiguration/useCalculationPoll.js.map +1 -1
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.js +43 -41
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.js.map +1 -1
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js +225 -223
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/fields.js +78 -75
- package/dist/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/fields.js.map +1 -1
- package/dist/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/payrollEditEmployeeHelpers.js +27 -27
- package/dist/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/payrollEditEmployeeHelpers.js.map +1 -1
- package/dist/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/payrollEditEmployeeSchema.js +19 -19
- package/dist/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/payrollEditEmployeeSchema.js.map +1 -1
- package/dist/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/usePayrollEditEmployeeForm.js +51 -48
- package/dist/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/usePayrollEditEmployeeForm.js.map +1 -1
- package/dist/components/Payroll/PayrollHistory/PayrollHistory.js +58 -48
- package/dist/components/Payroll/PayrollHistory/PayrollHistory.js.map +1 -1
- package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js +58 -57
- package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollLanding/PayrollLandingFlowComponents.js +83 -69
- package/dist/components/Payroll/PayrollLanding/PayrollLandingFlowComponents.js.map +1 -1
- package/dist/components/Payroll/PayrollList/PayrollList.js +62 -60
- package/dist/components/Payroll/PayrollList/PayrollList.js.map +1 -1
- package/dist/components/Payroll/PayrollList/PayrollListPresentation.js +119 -117
- package/dist/components/Payroll/PayrollList/PayrollListPresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollOverview/PayrollOverview.js +187 -171
- package/dist/components/Payroll/PayrollOverview/PayrollOverview.js.map +1 -1
- package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js +120 -110
- package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollOverview/useSubmissionPoll.js +45 -34
- package/dist/components/Payroll/PayrollOverview/useSubmissionPoll.js.map +1 -1
- package/dist/components/Payroll/PayrollReceipts/PayrollReceipts.js +20 -14
- package/dist/components/Payroll/PayrollReceipts/PayrollReceipts.js.map +1 -1
- package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js +62 -61
- package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.module.scss.js +14 -14
- package/dist/components/Payroll/PrintChecks/PrintChecksBanner/PrintChecksBanner.js +24 -17
- package/dist/components/Payroll/PrintChecks/PrintChecksBanner/PrintChecksBanner.js.map +1 -1
- package/dist/components/Payroll/PrintChecks/PrintChecksFailure/PrintChecksFailure.js +22 -22
- package/dist/components/Payroll/PrintChecks/PrintChecksFailure/PrintChecksFailure.js.map +1 -1
- package/dist/components/Payroll/PrintChecks/PrintChecksForm/PrintChecksForm.js +88 -80
- package/dist/components/Payroll/PrintChecks/PrintChecksForm/PrintChecksForm.js.map +1 -1
- package/dist/components/Payroll/PrintChecks/PrintChecksForm/useGenerationPoll.js +52 -37
- package/dist/components/Payroll/PrintChecks/PrintChecksForm/useGenerationPoll.js.map +1 -1
- package/dist/components/Payroll/PrintChecks/PrintChecksSummary/PrintChecksSummary.js +26 -26
- package/dist/components/Payroll/PrintChecks/PrintChecksSummary/PrintChecksSummary.js.map +1 -1
- package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.js +32 -32
- package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.js.map +1 -1
- package/dist/components/Payroll/TransitionCreation/TransitionCreation.js +50 -48
- package/dist/components/Payroll/TransitionCreation/TransitionCreation.js.map +1 -1
- package/dist/components/Payroll/TransitionCreation/TransitionCreationPresentation.js +34 -33
- package/dist/components/Payroll/TransitionCreation/TransitionCreationPresentation.js.map +1 -1
- package/dist/components/Payroll/TransitionCreation/TransitionCreationTypes.js.map +1 -1
- package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlert.js +28 -24
- package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlert.js.map +1 -1
- package/dist/components/Payroll/UNSTABLE_PayrollEditEmployee/UNSTABLE_PayrollEditEmployee.js +255 -228
- package/dist/components/Payroll/UNSTABLE_PayrollEditEmployee/UNSTABLE_PayrollEditEmployee.js.map +1 -1
- package/dist/components/Payroll/UNSTABLE_PayrollEditEmployee/UNSTABLE_PayrollEditEmployee.module.scss.js +8 -4
- package/dist/components/Payroll/UNSTABLE_PayrollEditEmployee/UNSTABLE_PayrollEditEmployee.module.scss.js.map +1 -1
- package/dist/components/Payroll/usePreparedPayrollData.js +10 -8
- package/dist/components/Payroll/usePreparedPayrollData.js.map +1 -1
- package/dist/components/TimeOff/AddEmployeesHoliday/AddEmployeesHoliday.js +5 -5
- package/dist/components/TimeOff/AddEmployeesHoliday/AddEmployeesHoliday.js.map +1 -1
- package/dist/components/TimeOff/AddEmployeesToPolicy/AddEmployeesToPolicy.js +8 -7
- package/dist/components/TimeOff/AddEmployeesToPolicy/AddEmployeesToPolicy.js.map +1 -1
- package/dist/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetail.js +51 -50
- package/dist/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetail.js.map +1 -1
- package/dist/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetailPresentation.js +20 -18
- package/dist/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetailPresentation.js.map +1 -1
- package/dist/components/TimeOff/HolidaySelectionForm/HolidaySelectionForm.js +51 -49
- package/dist/components/TimeOff/HolidaySelectionForm/HolidaySelectionForm.js.map +1 -1
- package/dist/components/TimeOff/HolidaySelectionForm/HolidaySelectionFormPresentation.js +20 -20
- package/dist/components/TimeOff/HolidaySelectionForm/HolidaySelectionFormPresentation.js.map +1 -1
- package/dist/components/TimeOff/PolicyList/PolicyList.js +50 -49
- package/dist/components/TimeOff/PolicyList/PolicyList.js.map +1 -1
- package/dist/components/TimeOff/PolicyList/PolicyListPresentation.js +34 -33
- package/dist/components/TimeOff/PolicyList/PolicyListPresentation.js.map +1 -1
- package/dist/components/TimeOff/PolicySettings/PolicySettings.js +46 -45
- package/dist/components/TimeOff/PolicySettings/PolicySettings.js.map +1 -1
- package/dist/components/TimeOff/PolicySettings/PolicySettingsPresentation.js +152 -143
- package/dist/components/TimeOff/PolicySettings/PolicySettingsPresentation.js.map +1 -1
- package/dist/components/TimeOff/PolicyTypeSelector/PolicyTypeSelector.js +14 -13
- package/dist/components/TimeOff/PolicyTypeSelector/PolicyTypeSelector.js.map +1 -1
- package/dist/components/TimeOff/PolicyTypeSelector/PolicyTypeSelectorPresentation.js +44 -35
- package/dist/components/TimeOff/PolicyTypeSelector/PolicyTypeSelectorPresentation.js.map +1 -1
- package/dist/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.js +88 -71
- package/dist/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.js.map +1 -1
- package/dist/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormPresentation.js +164 -155
- package/dist/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormPresentation.js.map +1 -1
- package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesHoliday.js +57 -55
- package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesHoliday.js.map +1 -1
- package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentation.js +25 -24
- package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentation.js.map +1 -1
- package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesTimeOff.js +94 -92
- package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesTimeOff.js.map +1 -1
- package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetail.js +156 -155
- package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetail.js.map +1 -1
- package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetailPresentation.js +21 -19
- package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetailPresentation.js.map +1 -1
- package/dist/components/TimeOff/shared/PolicyDetailLayout/PolicyDetailLayout.js +28 -26
- package/dist/components/TimeOff/shared/PolicyDetailLayout/PolicyDetailLayout.js.map +1 -1
- package/dist/contexts/ApiProvider/ApiProvider.js +29 -28
- package/dist/contexts/ApiProvider/ApiProvider.js.map +1 -1
- package/dist/contexts/ApiProvider/apiVersionMismatchHook.js +15 -0
- package/dist/contexts/ApiProvider/apiVersionMismatchHook.js.map +1 -0
- package/dist/contexts/ComponentAdapter/useComponentContext.js.map +1 -1
- package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js.map +1 -1
- package/dist/contexts/ThemeProvider/ThemeProvider.js +32 -26
- package/dist/contexts/ThemeProvider/ThemeProvider.js.map +1 -1
- package/dist/contexts/UnstableFeaturesProvider/useUnstableFeature.js.map +1 -1
- package/dist/hooks/usePollingTask/usePollingTask.js +53 -41
- package/dist/hooks/usePollingTask/usePollingTask.js.map +1 -1
- package/dist/i18n/en/Company.PaySchedule.json.js +22 -20
- package/dist/i18n/en/Company.PaySchedule.json.js.map +1 -1
- package/dist/i18n/en/Employee.ManagementEmployeeList.json.js +28 -24
- package/dist/i18n/en/Employee.ManagementEmployeeList.json.js.map +1 -1
- package/dist/i18n/en/Payroll.GrossUpModal.json.js +12 -10
- package/dist/i18n/en/Payroll.GrossUpModal.json.js.map +1 -1
- package/dist/i18n/en/Payroll.PayrollConfiguration.json.js +8 -8
- package/dist/i18n/en/Payroll.PayrollOverview.json.js +15 -15
- package/dist/i18n/en/Payroll.UNSTABLE_PayrollEditEmployee.json.js +62 -58
- package/dist/i18n/en/Payroll.UNSTABLE_PayrollEditEmployee.json.js.map +1 -1
- package/dist/package.json.js +1 -1
- package/dist/src/components/Common/FieldCaption/FieldCaption.d.ts +2 -16
- package/dist/src/components/Common/FieldCaption/FieldCaptionTypes.d.ts +22 -0
- package/dist/src/components/Common/FieldCaption/index.d.ts +1 -0
- package/dist/src/components/Common/Flex/Flex.d.ts +3 -1
- package/dist/src/components/Common/UI/ComboBox/ComboBoxTypes.d.ts +1 -1
- package/dist/src/components/Common/UI/DatePicker/DatePickerTypes.d.ts +2 -1
- package/dist/src/components/Common/UI/Menu/MenuTypes.d.ts +1 -1
- package/dist/src/components/Common/UI/MultiSelectComboBox/MultiSelectComboBox.d.ts +1 -1
- package/dist/src/components/Common/UI/MultiSelectComboBox/MultiSelectComboBoxTypes.d.ts +5 -0
- package/dist/src/components/Common/UI/Select/SelectTypes.d.ts +2 -1
- package/dist/src/components/Company/PaySchedule/PaySchedule.d.ts +10 -2
- package/dist/src/components/Company/PaySchedule/PayScheduleComponents.d.ts +1 -0
- package/dist/src/components/Company/PaySchedule/shared/usePayScheduleForm/fields.d.ts +9 -1
- package/dist/src/components/Company/PaySchedule/shared/usePayScheduleForm/index.d.ts +2 -2
- package/dist/src/components/Company/PaySchedule/shared/usePayScheduleForm/payScheduleSchema.d.ts +21 -5
- package/dist/src/components/Company/PaySchedule/shared/usePayScheduleForm/usePayScheduleForm.d.ts +21 -3
- package/dist/src/components/Contractor/ContractorList/management/ManagementContractorListView.d.ts +3 -1
- package/dist/src/components/Contractor/ContractorList/onboarding/ContractorListView.d.ts +3 -1
- package/dist/src/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.d.ts +3 -1
- package/dist/src/components/Contractor/Payments/CreatePayment/PreviewPresentation.d.ts +3 -1
- package/dist/src/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.d.ts +3 -1
- package/dist/src/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.d.ts +3 -1
- package/dist/src/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.d.ts +3 -1
- package/dist/src/components/Contractor/Submit/SubmitDone.d.ts +3 -1
- package/dist/src/components/Employee/Compensation/management/CompensationEditForm/CompensationEditForm.d.ts +1 -1
- package/dist/src/components/Employee/Documents/onboarding/DocumentSigner/EmploymentEligibility/EmploymentEligibilityPresentation.d.ts +3 -1
- package/dist/src/components/Employee/Documents/onboarding/EmployeeDocuments/EmployeeDocumentsPresentation.d.ts +3 -1
- package/dist/src/components/Employee/EmployeeList/management/ManagementEmployeeListView.d.ts +3 -1
- package/dist/src/components/Employee/EmployeeList/onboarding/EmployeeListView.d.ts +3 -1
- package/dist/src/components/Employee/EmployeeList/shared/useEmployeeList.d.ts +11 -2
- package/dist/src/components/Employee/EmployeeListFlow/employeeListStateMachine.test.d.ts +1 -0
- package/dist/src/components/Employee/HomeAddress/management/HomeAddressView.d.ts +3 -1
- package/dist/src/components/Employee/Terminations/TerminateEmployee/TerminateEmployeePresentation.d.ts +3 -1
- package/dist/src/components/Employee/Terminations/TerminationSummary/TerminationSummaryPresentation.d.ts +3 -1
- package/dist/src/components/Employee/WorkAddress/management/WorkAddressView.d.ts +3 -1
- package/dist/src/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelectionPresentation.d.ts +3 -1
- package/dist/src/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.d.ts +1 -1
- package/dist/src/components/Payroll/OffCycleCreation/OffCycleCreationTypes.d.ts +8 -0
- package/dist/src/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelectionPresentation.d.ts +3 -1
- package/dist/src/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.d.ts +3 -1
- package/dist/src/components/Payroll/PayrollConfiguration/useCalculationPoll.d.ts +6 -1
- package/dist/src/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.d.ts +3 -1
- package/dist/src/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/fields.d.ts +9 -9
- package/dist/src/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/payrollEditEmployeeHelpers.d.ts +2 -2
- package/dist/src/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/payrollEditEmployeeSchema.d.ts +4 -4
- package/dist/src/components/Payroll/PayrollHistory/PayrollHistoryPresentation.d.ts +3 -1
- package/dist/src/components/Payroll/PayrollList/PayrollListPresentation.d.ts +3 -1
- package/dist/src/components/Payroll/PayrollOverview/PayrollOverviewPresentation.d.ts +2 -1
- package/dist/src/components/Payroll/PayrollOverview/useSubmissionPoll.d.ts +10 -1
- package/dist/src/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.d.ts +2 -1
- package/dist/src/components/Payroll/TransitionCreation/TransitionCreationPresentation.d.ts +1 -1
- package/dist/src/components/Payroll/TransitionCreation/TransitionCreationTypes.d.ts +2 -0
- package/dist/src/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlert.d.ts +3 -1
- package/dist/src/components/Payroll/UNSTABLE_PayrollEditEmployee/UNSTABLE_PayrollEditEmployee.d.ts +1 -1
- package/dist/src/components/TimeOff/AddEmployeesHoliday/AddEmployeesHoliday.d.ts +1 -1
- package/dist/src/components/TimeOff/AddEmployeesToPolicy/AddEmployeesToPolicy.d.ts +1 -1
- package/dist/src/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetailPresentation.d.ts +1 -1
- package/dist/src/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetailTypes.d.ts +2 -0
- package/dist/src/components/TimeOff/HolidaySelectionForm/HolidaySelectionFormTypes.d.ts +2 -0
- package/dist/src/components/TimeOff/PolicyList/PolicyListPresentation.d.ts +1 -1
- package/dist/src/components/TimeOff/PolicyList/PolicyListTypes.d.ts +2 -0
- package/dist/src/components/TimeOff/PolicySettings/PolicySettingsPresentation.d.ts +1 -1
- package/dist/src/components/TimeOff/PolicySettings/PolicySettingsTypes.d.ts +2 -0
- package/dist/src/components/TimeOff/PolicyTypeSelector/PolicyTypeSelectorPresentation.d.ts +1 -1
- package/dist/src/components/TimeOff/PolicyTypeSelector/PolicyTypeSelectorTypes.d.ts +2 -0
- package/dist/src/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormPresentation.d.ts +1 -1
- package/dist/src/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormTypes.d.ts +2 -0
- package/dist/src/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesHoliday.d.ts +2 -0
- package/dist/src/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentation.d.ts +1 -1
- package/dist/src/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentationTypes.d.ts +2 -0
- package/dist/src/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesTimeOff.d.ts +2 -0
- package/dist/src/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetailPresentation.d.ts +1 -1
- package/dist/src/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetailTypes.d.ts +3 -0
- package/dist/src/components/TimeOff/shared/PolicyDetailLayout/PolicyDetailLayout.d.ts +1 -1
- package/dist/src/components/TimeOff/shared/PolicyDetailLayout/PolicyDetailLayoutTypes.d.ts +2 -0
- package/dist/src/contexts/ApiProvider/ApiProvider.d.ts +5 -3
- package/dist/src/contexts/ApiProvider/apiVersionMismatchHook.d.ts +3 -0
- package/dist/src/contexts/ApiProvider/apiVersionMismatchHook.test.d.ts +1 -0
- package/dist/src/contexts/ComponentAdapter/componentAdapterTypes.d.ts +1 -0
- package/dist/src/contexts/ComponentAdapter/useComponentContext.d.ts +4 -1
- package/dist/src/contexts/GustoProvider/GustoProviderCustomUIAdapter.d.ts +9 -1
- package/dist/src/contexts/ThemeProvider/ThemeProvider.d.ts +8 -3
- package/dist/src/contexts/UnstableFeaturesProvider/useUnstableFeature.d.ts +4 -1
- package/dist/src/hooks/usePollingTask/usePollingTask.d.ts +55 -14
- package/dist/src/i18n/types.d.ts +42 -2
- package/dist/src/index.d.ts +1 -1
- package/dist/src/models/external.d.ts +1 -0
- package/dist/style.css +1 -1
- package/docs/guides/endpoint-inventory.json +5 -0
- package/package.json +20 -19
|
@@ -1,177 +1,179 @@
|
|
|
1
|
-
import { jsx as t, jsxs as
|
|
2
|
-
import { useForm as
|
|
3
|
-
import { useRef as
|
|
1
|
+
import { jsx as t, jsxs as a } from "react/jsx-runtime";
|
|
2
|
+
import { useForm as ee, useFieldArray as Ae, useWatch as Me, FormProvider as ne } from "react-hook-form";
|
|
3
|
+
import { useRef as Oe, useMemo as $, useState as ve } from "react";
|
|
4
|
+
import Re from "classnames";
|
|
4
5
|
import { PayrollEmployeeCompensationsTypePaymentMethod as M } from "@gusto/embedded-api/models/components/payrollemployeecompensationstype";
|
|
5
|
-
import { useTranslation as
|
|
6
|
+
import { useTranslation as xe } from "react-i18next";
|
|
6
7
|
import { z as s } from "zod";
|
|
7
|
-
import { zodResolver as
|
|
8
|
-
import
|
|
9
|
-
import { TimeOffField as
|
|
8
|
+
import { zodResolver as te } from "@hookform/resolvers/zod";
|
|
9
|
+
import c from "./PayrollEditEmployeePresentation.module.scss.js";
|
|
10
|
+
import { TimeOffField as Se, PayoutTimeOffField as Ie } from "./TimeOffField.js";
|
|
10
11
|
import { Flex as P } from "../../Common/Flex/Flex.js";
|
|
11
12
|
import { Grid as x } from "../../Common/Grid/Grid.js";
|
|
12
|
-
import { EmptyData as
|
|
13
|
-
import { useComponentContext as
|
|
14
|
-
import { useI18n as
|
|
15
|
-
import { Form as
|
|
16
|
-
import { formatNumberAsCurrency as
|
|
17
|
-
import { getAdditionalEarningsCompensations as
|
|
18
|
-
import { PayrollCategory as
|
|
19
|
-
import { COMPENSATION_NAME_REIMBURSEMENT as S, HOURS_COMPENSATION_NAMES as
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
13
|
+
import { EmptyData as Fe } from "../../Common/EmptyData/EmptyData.js";
|
|
14
|
+
import { useComponentContext as De } from "../../../contexts/ComponentAdapter/useComponentContext.js";
|
|
15
|
+
import { useI18n as _e } from "../../../i18n/I18n.js";
|
|
16
|
+
import { Form as Le } from "../../Common/Form/Form.js";
|
|
17
|
+
import { formatNumberAsCurrency as ie, firstLastName as ke } from "../../../helpers/formattedStrings.js";
|
|
18
|
+
import { getAdditionalEarningsCompensations as Ue, calculateGrossPay as re } from "../helpers.js";
|
|
19
|
+
import { PayrollCategory as F, isOffCyclePayroll as me } from "../payrollTypes.js";
|
|
20
|
+
import { COMPENSATION_NAME_REIMBURSEMENT as S, HOURS_COMPENSATION_NAMES as se, EXCLUDED_ADDITIONAL_EARNINGS as je, COMPENSATION_NAME_DOUBLE_OVERTIME as Ge, COMPENSATION_NAME_OVERTIME as He, COMPENSATION_NAME_REGULAR_HOURS as we, COMPENSATION_NAME_CASH_TIPS as $e, COMPENSATION_NAME_COMMISSION as Ve, COMPENSATION_NAME_CORRECTION_PAYMENT as Be, COMPENSATION_NAME_PAYCHECK_TIPS as qe, COMPENSATION_NAME_BONUS as ze } from "../../../shared/constants.js";
|
|
21
|
+
import We from "../../../hooks/useContainerBreakpoints/useContainerBreakpoints.js";
|
|
22
|
+
import oe from "../../../assets/icons/plus-circle.svg.js";
|
|
23
|
+
import Ye from "../../../assets/icons/trashcan.svg.js";
|
|
23
24
|
import { TextInputField as I } from "../../Common/Fields/TextInputField/TextInputField.js";
|
|
24
|
-
import { RadioGroupField as
|
|
25
|
-
import { useDataView as
|
|
26
|
-
import { DataView as
|
|
27
|
-
const
|
|
25
|
+
import { RadioGroupField as Ke } from "../../Common/Fields/RadioGroupField/RadioGroupField.js";
|
|
26
|
+
import { useDataView as Xe } from "../../Common/DataView/useDataView.js";
|
|
27
|
+
import { DataView as Qe } from "../../Common/DataView/DataView.js";
|
|
28
|
+
const Ze = s.object({
|
|
28
29
|
uuid: s.string().nullable().optional(),
|
|
29
30
|
description: s.string(),
|
|
30
31
|
amount: s.string(),
|
|
31
32
|
recurring: s.boolean().optional()
|
|
32
|
-
}),
|
|
33
|
+
}), Je = s.object({
|
|
33
34
|
description: s.string(),
|
|
34
35
|
amount: s.string().refine(
|
|
35
|
-
(
|
|
36
|
-
const
|
|
37
|
-
return !Number.isNaN(
|
|
36
|
+
(l) => {
|
|
37
|
+
const C = parseFloat(l);
|
|
38
|
+
return !Number.isNaN(C) && C > 0;
|
|
38
39
|
},
|
|
39
40
|
{ message: "validations.reimbursementAmount" }
|
|
40
41
|
)
|
|
41
|
-
}),
|
|
42
|
+
}), en = s.string().optional().refine((l) => !l || parseFloat(l) >= 0, { message: "validations.negativeAmount" }), nn = s.object({
|
|
42
43
|
hourlyCompensations: s.record(s.string(), s.record(s.string(), s.string().optional())),
|
|
43
44
|
timeOffCompensations: s.record(s.string(), s.string().optional()),
|
|
44
45
|
finalPayoutCompensations: s.record(s.string(), s.string().optional()),
|
|
45
|
-
fixedCompensations: s.record(s.string(),
|
|
46
|
-
reimbursements: s.array(
|
|
46
|
+
fixedCompensations: s.record(s.string(), en),
|
|
47
|
+
reimbursements: s.array(Ze),
|
|
47
48
|
paymentMethod: s.enum(M).optional()
|
|
48
|
-
}),
|
|
49
|
+
}), ae = (l, C, k, p, o = F.Regular) => {
|
|
49
50
|
const y = {
|
|
50
|
-
...
|
|
51
|
-
paymentMethod:
|
|
51
|
+
...C,
|
|
52
|
+
paymentMethod: l.paymentMethod
|
|
52
53
|
};
|
|
53
|
-
y.hourlyCompensations =
|
|
54
|
+
y.hourlyCompensations = C?.hourlyCompensations?.map(
|
|
54
55
|
(r) => {
|
|
55
|
-
const
|
|
56
|
-
return
|
|
56
|
+
const m = r.jobUuid && r.name ? l.hourlyCompensations[r.jobUuid]?.[r.name] : void 0;
|
|
57
|
+
return m ? {
|
|
57
58
|
...r,
|
|
58
|
-
hours:
|
|
59
|
+
hours: m
|
|
59
60
|
} : r;
|
|
60
61
|
}
|
|
61
|
-
), y.paidTimeOff =
|
|
62
|
-
const
|
|
63
|
-
if (
|
|
64
|
-
const
|
|
62
|
+
), y.paidTimeOff = k.map((r) => {
|
|
63
|
+
const m = o === F.Dismissal, { finalPayoutUnusedHoursInput: O, ...h } = r;
|
|
64
|
+
if (m) {
|
|
65
|
+
const u = l.finalPayoutCompensations[r.name] ?? r.finalPayoutUnusedHoursInput;
|
|
65
66
|
return {
|
|
66
67
|
...r,
|
|
67
|
-
hours:
|
|
68
|
-
...
|
|
68
|
+
hours: l.timeOffCompensations[r.name] || "0",
|
|
69
|
+
...u != null ? { finalPayoutUnusedHoursInput: u || "0" } : {}
|
|
69
70
|
};
|
|
70
71
|
}
|
|
71
72
|
return {
|
|
72
|
-
...
|
|
73
|
-
hours:
|
|
73
|
+
...h,
|
|
74
|
+
hours: l.timeOffCompensations[r.name] || "0"
|
|
74
75
|
};
|
|
75
76
|
});
|
|
76
|
-
const
|
|
77
|
-
return Object.entries(
|
|
78
|
-
if (r.toLowerCase() === S.toLowerCase() &&
|
|
77
|
+
const D = !me(o), T = [];
|
|
78
|
+
return Object.entries(l.fixedCompensations).forEach(([r, m]) => {
|
|
79
|
+
if (r.toLowerCase() === S.toLowerCase() && D)
|
|
79
80
|
return;
|
|
80
|
-
const
|
|
81
|
-
(
|
|
82
|
-
),
|
|
83
|
-
|
|
84
|
-
name:
|
|
85
|
-
jobUuid:
|
|
86
|
-
amount:
|
|
87
|
-
}) : parseFloat(
|
|
81
|
+
const h = C?.fixedCompensations?.find(
|
|
82
|
+
(U) => U.name?.toLowerCase() === r.toLowerCase()
|
|
83
|
+
), u = m === "" && h ? "0" : m;
|
|
84
|
+
u !== void 0 && u !== "" && (h ? T.push({
|
|
85
|
+
name: h.name,
|
|
86
|
+
jobUuid: h.jobUuid,
|
|
87
|
+
amount: u
|
|
88
|
+
}) : parseFloat(u) !== 0 && T.push({
|
|
88
89
|
name: r,
|
|
89
|
-
jobUuid:
|
|
90
|
-
amount:
|
|
90
|
+
jobUuid: p,
|
|
91
|
+
amount: u
|
|
91
92
|
}));
|
|
92
|
-
}), y.fixedCompensations = T,
|
|
93
|
+
}), y.fixedCompensations = T, D ? y.reimbursements = l.reimbursements.map((r) => ({
|
|
93
94
|
amount: r.amount,
|
|
94
95
|
description: r.description.trim() === "" ? null : r.description.trim(),
|
|
95
96
|
uuid: r.uuid ?? null,
|
|
96
97
|
recurring: r.recurring
|
|
97
98
|
})) : y.reimbursements = [], y;
|
|
98
|
-
},
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
99
|
+
}, In = ({
|
|
100
|
+
className: l,
|
|
101
|
+
onSave: C,
|
|
102
|
+
onCancel: k,
|
|
103
|
+
employee: p,
|
|
104
|
+
employeeCompensation: o,
|
|
105
|
+
isPending: y = !1,
|
|
106
|
+
fixedCompensationTypes: D,
|
|
107
|
+
payPeriodStartDate: T,
|
|
108
|
+
paySchedule: r,
|
|
109
|
+
payrollCategory: m = F.Regular,
|
|
110
|
+
withReimbursements: O = !0,
|
|
111
|
+
hasDirectDepositSetup: h = !0
|
|
110
112
|
}) => {
|
|
111
|
-
const { Button: u, ButtonIcon:
|
|
112
|
-
|
|
113
|
-
const b =
|
|
113
|
+
const { Button: u, ButtonIcon: U, Heading: f, Text: V } = De(), { t: n } = xe("Payroll.PayrollEditEmployee");
|
|
114
|
+
_e("Payroll.PayrollEditEmployee");
|
|
115
|
+
const b = p.jobs?.find((e) => e.primary), ue = o?.hourlyCompensations?.some(
|
|
114
116
|
(e) => e.jobUuid === b?.uuid
|
|
115
|
-
), v = b &&
|
|
116
|
-
ref:
|
|
117
|
+
), v = b && ue ? [b] : [], B = Oe(null), g = We({
|
|
118
|
+
ref: B
|
|
117
119
|
}).includes("small");
|
|
118
|
-
|
|
119
|
-
const i =
|
|
120
|
+
o?.hourlyCompensations?.forEach((e) => {
|
|
121
|
+
const i = p.jobs?.find((d) => d.uuid === e.jobUuid);
|
|
120
122
|
i && !v.find((d) => d.uuid === i.uuid) && v.push(i);
|
|
121
123
|
});
|
|
122
|
-
const A = (
|
|
124
|
+
const A = (o?.paidTimeOff || []).filter((e) => e.name), j = Ue({
|
|
123
125
|
flsaStatus: b?.compensations?.[0]?.flsaStatus,
|
|
124
|
-
existingFixedCompensations:
|
|
126
|
+
existingFixedCompensations: o?.fixedCompensations || [],
|
|
125
127
|
primaryJobUuid: b?.uuid,
|
|
126
|
-
fixedCompensationTypes:
|
|
127
|
-
excludedTypes:
|
|
128
|
-
}),
|
|
129
|
-
() =>
|
|
130
|
-
[
|
|
131
|
-
),
|
|
132
|
-
() =>
|
|
128
|
+
fixedCompensationTypes: D,
|
|
129
|
+
excludedTypes: je
|
|
130
|
+
}), _ = !me(m), le = $(
|
|
131
|
+
() => O && _ ? o?.reimbursements ?? [] : [],
|
|
132
|
+
[O, _, o?.reimbursements]
|
|
133
|
+
), de = $(
|
|
134
|
+
() => o?.fixedCompensations?.find(
|
|
133
135
|
(e) => e.name?.toLowerCase() === S.toLowerCase()
|
|
134
136
|
),
|
|
135
|
-
[
|
|
136
|
-
),
|
|
137
|
+
[o?.fixedCompensations]
|
|
138
|
+
), q = O && !_ && !!b?.uuid, z = (e, i) => o?.hourlyCompensations?.find(
|
|
137
139
|
(d) => d.jobUuid === e && d.name?.toLowerCase() === i.toLowerCase()
|
|
138
|
-
),
|
|
140
|
+
), ce = (e) => {
|
|
139
141
|
switch (e) {
|
|
140
|
-
case
|
|
142
|
+
case we:
|
|
141
143
|
return n("compensationNames.regularHours");
|
|
142
|
-
case
|
|
144
|
+
case He:
|
|
143
145
|
return n("compensationNames.overtime");
|
|
144
|
-
case
|
|
146
|
+
case Ge:
|
|
145
147
|
return n("compensationNames.doubleOvertime");
|
|
146
148
|
default:
|
|
147
149
|
return e;
|
|
148
150
|
}
|
|
149
|
-
},
|
|
151
|
+
}, W = (e) => {
|
|
150
152
|
switch (e) {
|
|
151
|
-
case
|
|
153
|
+
case ze:
|
|
152
154
|
return n("fixedCompensationNames.bonus");
|
|
153
|
-
case
|
|
155
|
+
case qe:
|
|
154
156
|
return n("fixedCompensationNames.paycheckTips");
|
|
155
|
-
case
|
|
157
|
+
case Be:
|
|
156
158
|
return n("fixedCompensationNames.correctionPayment");
|
|
157
|
-
case
|
|
159
|
+
case Ve:
|
|
158
160
|
return n("fixedCompensationNames.commission");
|
|
159
|
-
case
|
|
161
|
+
case $e:
|
|
160
162
|
return n("fixedCompensationNames.cashTips");
|
|
161
163
|
case S:
|
|
162
164
|
return n("fixedCompensationNames.reimbursement");
|
|
163
165
|
default:
|
|
164
166
|
return e;
|
|
165
167
|
}
|
|
166
|
-
},
|
|
167
|
-
const e =
|
|
168
|
-
return e ? !
|
|
169
|
-
},
|
|
168
|
+
}, pe = () => {
|
|
169
|
+
const e = o?.paymentMethod;
|
|
170
|
+
return e ? !h && e === M.DirectDeposit ? M.Check : e : h ? M.DirectDeposit : M.Check;
|
|
171
|
+
}, fe = {
|
|
170
172
|
hourlyCompensations: (() => {
|
|
171
173
|
const e = {};
|
|
172
174
|
return v.forEach((i) => {
|
|
173
|
-
|
|
174
|
-
const R =
|
|
175
|
+
se.forEach((d) => {
|
|
176
|
+
const R = z(i.uuid, d);
|
|
175
177
|
R && (e[i.uuid] || (e[i.uuid] = {}), e[i.uuid][R.name] = R.hours ? parseFloat(R.hours).toString() : "");
|
|
176
178
|
});
|
|
177
179
|
}), e;
|
|
@@ -190,46 +192,46 @@ const Xe = s.object({
|
|
|
190
192
|
})(),
|
|
191
193
|
fixedCompensations: (() => {
|
|
192
194
|
const e = {};
|
|
193
|
-
return
|
|
195
|
+
return j.forEach((i) => {
|
|
194
196
|
e[i.name] = i.amount ?? "";
|
|
195
|
-
}),
|
|
197
|
+
}), q && (e[S] = de?.amount ?? "0.00"), e;
|
|
196
198
|
})(),
|
|
197
|
-
reimbursements:
|
|
199
|
+
reimbursements: le.map((e) => ({
|
|
198
200
|
uuid: e.uuid ?? null,
|
|
199
201
|
description: e.description ?? "",
|
|
200
202
|
amount: e.amount,
|
|
201
203
|
recurring: e.recurring ?? !1
|
|
202
204
|
})),
|
|
203
|
-
paymentMethod:
|
|
204
|
-
},
|
|
205
|
-
resolver:
|
|
206
|
-
defaultValues:
|
|
205
|
+
paymentMethod: pe()
|
|
206
|
+
}, L = ee({
|
|
207
|
+
resolver: te(nn),
|
|
208
|
+
defaultValues: fe
|
|
207
209
|
}), {
|
|
208
|
-
fields:
|
|
209
|
-
append:
|
|
210
|
-
remove:
|
|
211
|
-
update:
|
|
212
|
-
} =
|
|
213
|
-
control:
|
|
210
|
+
fields: Y,
|
|
211
|
+
append: he,
|
|
212
|
+
remove: be,
|
|
213
|
+
update: ge
|
|
214
|
+
} = Ae({
|
|
215
|
+
control: L.control,
|
|
214
216
|
name: "reimbursements"
|
|
215
217
|
}), Ce = (e) => {
|
|
216
|
-
const i =
|
|
217
|
-
i && (i.uuid ?
|
|
218
|
-
},
|
|
219
|
-
resolver:
|
|
218
|
+
const i = Y[e];
|
|
219
|
+
i && (i.uuid ? ge(e, { ...i, amount: "0" }) : be(e));
|
|
220
|
+
}, G = Y.map((e, i) => ({ ...e, originalIndex: i })).filter((e) => parseFloat(e.amount || "0") !== 0), [K, H] = ve(!1), w = ee({
|
|
221
|
+
resolver: te(Je),
|
|
220
222
|
defaultValues: { description: "", amount: "" }
|
|
221
|
-
}),
|
|
222
|
-
|
|
223
|
-
},
|
|
223
|
+
}), X = () => {
|
|
224
|
+
H(!1), w.reset();
|
|
225
|
+
}, ye = (e) => {
|
|
224
226
|
const i = parseFloat(e.amount);
|
|
225
|
-
|
|
227
|
+
he({
|
|
226
228
|
uuid: null,
|
|
227
229
|
description: e.description.trim(),
|
|
228
230
|
amount: i.toFixed(2),
|
|
229
231
|
recurring: !1
|
|
230
|
-
}),
|
|
231
|
-
},
|
|
232
|
-
data:
|
|
232
|
+
}), X();
|
|
233
|
+
}, Ne = Xe({
|
|
234
|
+
data: G,
|
|
233
235
|
columns: [
|
|
234
236
|
{
|
|
235
237
|
key: "description",
|
|
@@ -240,7 +242,7 @@ const Xe = s.object({
|
|
|
240
242
|
key: "amount",
|
|
241
243
|
title: n("reimbursementAmountColumn"),
|
|
242
244
|
justify: "end",
|
|
243
|
-
render: (e) =>
|
|
245
|
+
render: (e) => ie(parseFloat(e.amount || "0"))
|
|
244
246
|
},
|
|
245
247
|
{
|
|
246
248
|
key: "recurring",
|
|
@@ -252,35 +254,35 @@ const Xe = s.object({
|
|
|
252
254
|
if (e.recurring) return null;
|
|
253
255
|
const i = e.description.trim() || n("reimbursementUnnamedFallback");
|
|
254
256
|
return /* @__PURE__ */ t(
|
|
255
|
-
|
|
257
|
+
U,
|
|
256
258
|
{
|
|
257
259
|
variant: "tertiary",
|
|
258
260
|
onClick: () => {
|
|
259
261
|
Ce(e.originalIndex);
|
|
260
262
|
},
|
|
261
263
|
"aria-label": n("removeReimbursementLabel", { description: i }),
|
|
262
|
-
children: /* @__PURE__ */ t(
|
|
264
|
+
children: /* @__PURE__ */ t(Ye, { "aria-hidden": !0 })
|
|
263
265
|
}
|
|
264
266
|
);
|
|
265
267
|
},
|
|
266
|
-
emptyState: () => /* @__PURE__ */ t(
|
|
268
|
+
emptyState: () => /* @__PURE__ */ t(Fe, { title: n("reimbursementEmptyTitle"), children: /* @__PURE__ */ t(
|
|
267
269
|
u,
|
|
268
270
|
{
|
|
269
271
|
variant: "secondary",
|
|
270
272
|
onClick: () => {
|
|
271
|
-
|
|
273
|
+
H(!0);
|
|
272
274
|
},
|
|
273
|
-
icon: /* @__PURE__ */ t(
|
|
275
|
+
icon: /* @__PURE__ */ t(oe, { "aria-hidden": !0 }),
|
|
274
276
|
children: n("addReimbursementCta")
|
|
275
277
|
}
|
|
276
278
|
) })
|
|
277
|
-
}), N =
|
|
278
|
-
control:
|
|
279
|
-
}),
|
|
279
|
+
}), N = Me({
|
|
280
|
+
control: L.control
|
|
281
|
+
}), Ee = $(() => {
|
|
280
282
|
try {
|
|
281
283
|
const e = {};
|
|
282
|
-
N.hourlyCompensations && Object.entries(N.hourlyCompensations).forEach(([E,
|
|
283
|
-
|
|
284
|
+
N.hourlyCompensations && Object.entries(N.hourlyCompensations).forEach(([E, J]) => {
|
|
285
|
+
J && (e[E] = J);
|
|
284
286
|
});
|
|
285
287
|
const i = (N.reimbursements ?? []).map((E) => ({
|
|
286
288
|
uuid: E.uuid ?? null,
|
|
@@ -294,95 +296,95 @@ const Xe = s.object({
|
|
|
294
296
|
fixedCompensations: N.fixedCompensations || {},
|
|
295
297
|
reimbursements: i,
|
|
296
298
|
paymentMethod: N.paymentMethod
|
|
297
|
-
}, R =
|
|
299
|
+
}, R = ae(
|
|
298
300
|
d,
|
|
299
|
-
|
|
300
|
-
(
|
|
301
|
+
o,
|
|
302
|
+
(o?.paidTimeOff || []).filter((E) => E.name),
|
|
301
303
|
b?.uuid,
|
|
302
|
-
|
|
304
|
+
m
|
|
303
305
|
);
|
|
304
|
-
return
|
|
306
|
+
return re(
|
|
305
307
|
R,
|
|
306
|
-
|
|
307
|
-
O,
|
|
308
|
+
p,
|
|
308
309
|
T,
|
|
309
|
-
r
|
|
310
|
+
r,
|
|
311
|
+
m
|
|
310
312
|
);
|
|
311
313
|
} catch {
|
|
312
|
-
return
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
O,
|
|
314
|
+
return o ? re(
|
|
315
|
+
o,
|
|
316
|
+
p,
|
|
316
317
|
T,
|
|
317
|
-
r
|
|
318
|
+
r,
|
|
319
|
+
m
|
|
318
320
|
) : 0;
|
|
319
321
|
}
|
|
320
322
|
}, [
|
|
321
323
|
N,
|
|
322
|
-
|
|
324
|
+
o,
|
|
323
325
|
b?.uuid,
|
|
324
|
-
|
|
325
|
-
O,
|
|
326
|
+
p,
|
|
326
327
|
T,
|
|
327
|
-
r
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
328
|
+
r,
|
|
329
|
+
m
|
|
330
|
+
]), Pe = ke({
|
|
331
|
+
first_name: p.firstName,
|
|
332
|
+
last_name: p.lastName
|
|
333
|
+
}), Te = (e) => {
|
|
334
|
+
const i = ae(
|
|
333
335
|
e,
|
|
334
|
-
|
|
336
|
+
o,
|
|
335
337
|
A,
|
|
336
338
|
b?.uuid,
|
|
337
|
-
|
|
339
|
+
m
|
|
338
340
|
);
|
|
339
|
-
|
|
340
|
-
},
|
|
341
|
+
C(i);
|
|
342
|
+
}, Q = ie(Ee || 0), Z = /* @__PURE__ */ a(
|
|
341
343
|
P,
|
|
342
344
|
{
|
|
343
|
-
flexDirection:
|
|
344
|
-
justifyContent:
|
|
345
|
-
alignItems:
|
|
345
|
+
flexDirection: g ? "row" : "column",
|
|
346
|
+
justifyContent: g ? "flex-end" : "normal",
|
|
347
|
+
alignItems: g ? "flex-start" : "stretch",
|
|
346
348
|
gap: 12,
|
|
347
349
|
children: [
|
|
348
|
-
/* @__PURE__ */ t(u, { variant: "secondary", onClick:
|
|
350
|
+
/* @__PURE__ */ t(u, { variant: "secondary", onClick: k, title: n("cancelCta"), children: n("cancelCta") }),
|
|
349
351
|
/* @__PURE__ */ t(
|
|
350
352
|
u,
|
|
351
353
|
{
|
|
352
|
-
onClick:
|
|
354
|
+
onClick: L.handleSubmit(Te),
|
|
353
355
|
title: n("saveCta"),
|
|
354
|
-
isLoading:
|
|
356
|
+
isLoading: y,
|
|
355
357
|
children: n("saveCta")
|
|
356
358
|
}
|
|
357
359
|
)
|
|
358
360
|
]
|
|
359
361
|
}
|
|
360
362
|
);
|
|
361
|
-
return /* @__PURE__ */
|
|
363
|
+
return /* @__PURE__ */ a("div", { ref: B, className: Re(c.container, l), children: [
|
|
362
364
|
/* @__PURE__ */ t(
|
|
363
365
|
"div",
|
|
364
366
|
{
|
|
365
|
-
className: `${
|
|
366
|
-
children: /* @__PURE__ */
|
|
367
|
-
/* @__PURE__ */
|
|
368
|
-
/* @__PURE__ */ t(
|
|
369
|
-
|
|
370
|
-
/* @__PURE__ */ t(
|
|
371
|
-
/* @__PURE__ */ t(
|
|
372
|
-
] }) : /* @__PURE__ */ t(
|
|
367
|
+
className: `${c.headerSection} ${g ? "" : c.headerSectionSticky}`,
|
|
368
|
+
children: /* @__PURE__ */ a(P, { justifyContent: "space-between", children: [
|
|
369
|
+
/* @__PURE__ */ a(P, { flexDirection: "column", alignItems: "stretch", gap: g ? 8 : 2, children: [
|
|
370
|
+
/* @__PURE__ */ t(f, { as: "h1", styledAs: g ? "h2" : "h4", children: n("pageTitle", { employeeName: Pe }) }),
|
|
371
|
+
g ? /* @__PURE__ */ a(P, { flexDirection: "column", gap: 6, children: [
|
|
372
|
+
/* @__PURE__ */ t(f, { as: "h2", styledAs: "h3", children: Q }),
|
|
373
|
+
/* @__PURE__ */ t(V, { className: c.grossPayLabel, children: n("grossPayLabel") })
|
|
374
|
+
] }) : /* @__PURE__ */ t(f, { as: "h2", styledAs: "h6", className: c.grossPayLabel, children: n("grossPayLabelMobile", { grossPay: Q }) })
|
|
373
375
|
] }),
|
|
374
|
-
|
|
376
|
+
g && Z
|
|
375
377
|
] })
|
|
376
378
|
}
|
|
377
379
|
),
|
|
378
|
-
/* @__PURE__ */
|
|
379
|
-
/* @__PURE__ */
|
|
380
|
-
v.length > 0 && /* @__PURE__ */
|
|
381
|
-
/* @__PURE__ */ t(
|
|
382
|
-
v.map((e) => /* @__PURE__ */
|
|
383
|
-
v.length > 1 && /* @__PURE__ */ t(
|
|
384
|
-
/* @__PURE__ */ t(x, { gridTemplateColumns: { base: "1fr", small: [320, 320] }, gap: 20, children:
|
|
385
|
-
const d =
|
|
380
|
+
/* @__PURE__ */ a(ne, { ...L, children: [
|
|
381
|
+
/* @__PURE__ */ a(Le, { children: [
|
|
382
|
+
v.length > 0 && /* @__PURE__ */ a("div", { className: c.fieldGroup, children: [
|
|
383
|
+
/* @__PURE__ */ t(f, { as: "h3", children: n("regularHoursTitle") }),
|
|
384
|
+
v.map((e) => /* @__PURE__ */ a(P, { flexDirection: "column", gap: 8, children: [
|
|
385
|
+
v.length > 1 && /* @__PURE__ */ t(f, { as: "h4", children: e.title }),
|
|
386
|
+
/* @__PURE__ */ t(x, { gridTemplateColumns: { base: "1fr", small: [320, 320] }, gap: 20, children: se.map((i) => {
|
|
387
|
+
const d = z(
|
|
386
388
|
e.uuid,
|
|
387
389
|
i
|
|
388
390
|
);
|
|
@@ -394,7 +396,7 @@ const Xe = s.object({
|
|
|
394
396
|
min: 0,
|
|
395
397
|
adornmentEnd: n("hoursUnit"),
|
|
396
398
|
isRequired: !0,
|
|
397
|
-
label:
|
|
399
|
+
label: ce(i),
|
|
398
400
|
name: `hourlyCompensations.${e.uuid}.${d.name}`
|
|
399
401
|
},
|
|
400
402
|
i
|
|
@@ -402,46 +404,46 @@ const Xe = s.object({
|
|
|
402
404
|
}) })
|
|
403
405
|
] }, e.uuid))
|
|
404
406
|
] }),
|
|
405
|
-
A.length > 0 && /* @__PURE__ */
|
|
406
|
-
/* @__PURE__ */ t(
|
|
407
|
+
A.length > 0 && /* @__PURE__ */ a("div", { className: c.fieldGroup, children: [
|
|
408
|
+
/* @__PURE__ */ t(f, { as: "h3", styledAs: "h4", children: m === F.Dismissal ? n("timeOffTitleDismissal") : n("timeOffTitle") }),
|
|
407
409
|
/* @__PURE__ */ t(x, { gridTemplateColumns: { base: "1fr", small: [320, 320] }, gap: 20, children: A.map((e) => /* @__PURE__ */ t(
|
|
408
|
-
|
|
410
|
+
Se,
|
|
409
411
|
{
|
|
410
412
|
timeOff: e,
|
|
411
|
-
employee:
|
|
413
|
+
employee: p
|
|
412
414
|
},
|
|
413
415
|
e.name
|
|
414
416
|
)) })
|
|
415
417
|
] }),
|
|
416
|
-
|
|
417
|
-
/* @__PURE__ */
|
|
418
|
-
/* @__PURE__ */ t(
|
|
419
|
-
/* @__PURE__ */ t(
|
|
418
|
+
m === F.Dismissal && A.length > 0 && /* @__PURE__ */ a("div", { className: c.fieldGroup, children: [
|
|
419
|
+
/* @__PURE__ */ a(P, { flexDirection: "column", gap: 4, children: [
|
|
420
|
+
/* @__PURE__ */ t(f, { as: "h3", styledAs: "h4", children: n("finalPayoutTitle") }),
|
|
421
|
+
/* @__PURE__ */ t(V, { variant: "supporting", children: n("finalPayoutDescription") })
|
|
420
422
|
] }),
|
|
421
423
|
/* @__PURE__ */ t(x, { gridTemplateColumns: { base: "1fr", small: [320, 320] }, gap: 20, children: A.map((e) => /* @__PURE__ */ t(
|
|
422
|
-
|
|
424
|
+
Ie,
|
|
423
425
|
{
|
|
424
426
|
timeOff: e,
|
|
425
|
-
employee:
|
|
427
|
+
employee: p
|
|
426
428
|
},
|
|
427
429
|
`payout-${e.name}`
|
|
428
430
|
)) })
|
|
429
431
|
] }),
|
|
430
|
-
|
|
431
|
-
/* @__PURE__ */ t(
|
|
432
|
+
j.length > 0 && /* @__PURE__ */ a("div", { className: c.fieldGroup, children: [
|
|
433
|
+
/* @__PURE__ */ t(f, { as: "h3", styledAs: "h4", children: n("additionalEarningsTitle") }),
|
|
432
434
|
/* @__PURE__ */ t(
|
|
433
435
|
x,
|
|
434
436
|
{
|
|
435
437
|
gridTemplateColumns: { base: "1fr", small: [320, 320], large: [320, 320, 320] },
|
|
436
438
|
gap: 20,
|
|
437
|
-
children:
|
|
439
|
+
children: j.map((e) => /* @__PURE__ */ t(
|
|
438
440
|
I,
|
|
439
441
|
{
|
|
440
442
|
type: "number",
|
|
441
443
|
min: 0,
|
|
442
444
|
adornmentStart: "$",
|
|
443
445
|
isRequired: !0,
|
|
444
|
-
label:
|
|
446
|
+
label: W(e.name),
|
|
445
447
|
name: `fixedCompensations.${e.name}`,
|
|
446
448
|
errorMessage: n("validations.negativeAmount")
|
|
447
449
|
},
|
|
@@ -450,8 +452,8 @@ const Xe = s.object({
|
|
|
450
452
|
}
|
|
451
453
|
)
|
|
452
454
|
] }),
|
|
453
|
-
|
|
454
|
-
/* @__PURE__ */ t(
|
|
455
|
+
q && /* @__PURE__ */ a("div", { className: c.fieldGroup, children: [
|
|
456
|
+
/* @__PURE__ */ t(f, { as: "h3", styledAs: "h4", children: n("reimbursementTitle") }),
|
|
455
457
|
/* @__PURE__ */ t(x, { gridTemplateColumns: { base: "1fr", small: [320, 320] }, gap: 20, children: /* @__PURE__ */ t(
|
|
456
458
|
I,
|
|
457
459
|
{
|
|
@@ -459,17 +461,17 @@ const Xe = s.object({
|
|
|
459
461
|
min: 0,
|
|
460
462
|
adornmentStart: "$",
|
|
461
463
|
isRequired: !0,
|
|
462
|
-
label:
|
|
464
|
+
label: W(S),
|
|
463
465
|
name: `fixedCompensations.${S}`,
|
|
464
466
|
errorMessage: n("validations.negativeAmount")
|
|
465
467
|
}
|
|
466
468
|
) })
|
|
467
469
|
] }),
|
|
468
|
-
|
|
469
|
-
/* @__PURE__ */ t(
|
|
470
|
-
!(
|
|
471
|
-
|
|
472
|
-
/* @__PURE__ */
|
|
470
|
+
O && _ && /* @__PURE__ */ a("div", { className: c.fieldGroup, children: [
|
|
471
|
+
/* @__PURE__ */ t(f, { as: "h3", styledAs: "h4", children: n("reimbursementTitle") }),
|
|
472
|
+
!(G.length === 0 && K) && /* @__PURE__ */ t(Qe, { label: n("reimbursementsTableLabel"), ...Ne }),
|
|
473
|
+
K ? /* @__PURE__ */ t(ne, { ...w, children: /* @__PURE__ */ a(P, { flexDirection: "column", gap: 12, children: [
|
|
474
|
+
/* @__PURE__ */ a(x, { gridTemplateColumns: { base: "1fr", small: [320, 320] }, gap: 20, children: [
|
|
473
475
|
/* @__PURE__ */ t(
|
|
474
476
|
I,
|
|
475
477
|
{
|
|
@@ -491,27 +493,27 @@ const Xe = s.object({
|
|
|
491
493
|
}
|
|
492
494
|
)
|
|
493
495
|
] }),
|
|
494
|
-
/* @__PURE__ */
|
|
495
|
-
/* @__PURE__ */ t(u, { onClick:
|
|
496
|
-
/* @__PURE__ */ t(u, { variant: "secondary", onClick:
|
|
496
|
+
/* @__PURE__ */ a(P, { gap: 12, children: [
|
|
497
|
+
/* @__PURE__ */ t(u, { onClick: w.handleSubmit(ye), children: n("saveReimbursementCta") }),
|
|
498
|
+
/* @__PURE__ */ t(u, { variant: "secondary", onClick: X, children: n("cancelReimbursementCta") })
|
|
497
499
|
] })
|
|
498
|
-
] }) }) :
|
|
500
|
+
] }) }) : G.length > 0 && /* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(
|
|
499
501
|
u,
|
|
500
502
|
{
|
|
501
503
|
variant: "secondary",
|
|
502
504
|
onClick: () => {
|
|
503
|
-
|
|
505
|
+
H(!0);
|
|
504
506
|
},
|
|
505
507
|
title: n("addReimbursementLink"),
|
|
506
|
-
icon: /* @__PURE__ */ t(
|
|
508
|
+
icon: /* @__PURE__ */ t(oe, { "aria-hidden": !0 }),
|
|
507
509
|
children: n("addReimbursementLink")
|
|
508
510
|
}
|
|
509
511
|
) })
|
|
510
512
|
] }),
|
|
511
|
-
|
|
512
|
-
/* @__PURE__ */ t(
|
|
513
|
+
h && /* @__PURE__ */ a("div", { className: c.fieldGroup, children: [
|
|
514
|
+
/* @__PURE__ */ t(f, { as: "h3", styledAs: "h4", children: n("paymentMethodTitle") }),
|
|
513
515
|
/* @__PURE__ */ t(
|
|
514
|
-
|
|
516
|
+
Ke,
|
|
515
517
|
{
|
|
516
518
|
name: "paymentMethod",
|
|
517
519
|
isRequired: !0,
|
|
@@ -531,11 +533,11 @@ const Xe = s.object({
|
|
|
531
533
|
)
|
|
532
534
|
] })
|
|
533
535
|
] }),
|
|
534
|
-
!
|
|
536
|
+
!g && Z
|
|
535
537
|
] })
|
|
536
538
|
] });
|
|
537
539
|
};
|
|
538
540
|
export {
|
|
539
|
-
|
|
541
|
+
In as PayrollEditEmployeePresentation
|
|
540
542
|
};
|
|
541
543
|
//# sourceMappingURL=PayrollEditEmployeePresentation.js.map
|