@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,39 +1,40 @@
|
|
|
1
|
-
import { jsxs as r, jsx as e, Fragment as
|
|
2
|
-
import { useState as I, useRef as
|
|
3
|
-
import { useTranslation as
|
|
4
|
-
import { useWatch as
|
|
5
|
-
import { getPendingFutureHomeAddress as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
1
|
+
import { jsxs as r, jsx as e, Fragment as z } from "react/jsx-runtime";
|
|
2
|
+
import { useState as I, useRef as Te, useLayoutEffect as Pe, useMemo as A } from "react";
|
|
3
|
+
import { useTranslation as Z, Trans as L } from "react-i18next";
|
|
4
|
+
import { useWatch as Ie } from "react-hook-form";
|
|
5
|
+
import { getPendingFutureHomeAddress as Ae, formatPendingHomeAddressLine as j } from "./getPendingFutureHomeAddress.js";
|
|
6
|
+
import Le from "../../../../assets/icons/house.svg.js";
|
|
7
|
+
import we from "../../../../assets/icons/pencil.svg.js";
|
|
8
|
+
import Fe from "../../../../assets/icons/trashcan.svg.js";
|
|
9
9
|
import { HomeAddressErrorCodes as a } from "../../Profile/shared/useHomeAddressForm/homeAddressSchema.js";
|
|
10
|
-
import { SDKFormProvider as
|
|
11
|
-
import { Flex as s, FlexItem as
|
|
12
|
-
import { Grid as
|
|
13
|
-
import { EmptyData as
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
|
|
10
|
+
import { SDKFormProvider as K } from "../../../../partner-hook-utils/form/SDKFormProvider.js";
|
|
11
|
+
import { Flex as s, FlexItem as He } from "../../../Common/Flex/Flex.js";
|
|
12
|
+
import { Grid as $ } from "../../../Common/Grid/Grid.js";
|
|
13
|
+
import { EmptyData as Ue } from "../../../Common/EmptyData/EmptyData.js";
|
|
14
|
+
import { ActionsLayout as We } from "../../../Common/ActionsLayout/ActionsLayout.js";
|
|
15
|
+
import { useComponentContext as N } from "../../../../contexts/ComponentAdapter/useComponentContext.js";
|
|
16
|
+
import { formatDateLongWithYear as x, normalizeToDate as Be, addDays as Ve } from "../../../../helpers/dateFormatting.js";
|
|
17
|
+
import { formatStreetForDisplay as q, getCityStateZip as Y } from "../../../../helpers/formattedStrings.js";
|
|
18
|
+
import { HamburgerMenu as Qe } from "../../../Common/HamburgerMenu/HamburgerMenu.js";
|
|
19
|
+
import { useDataView as Oe } from "../../../Common/DataView/useDataView.js";
|
|
20
|
+
import { DataView as ze } from "../../../Common/DataView/DataView.js";
|
|
21
|
+
function G({
|
|
21
22
|
CourtesyWithholding: u,
|
|
22
23
|
formHook: m,
|
|
23
|
-
tHa:
|
|
24
|
+
tHa: d
|
|
24
25
|
}) {
|
|
25
|
-
const y =
|
|
26
|
-
return /* @__PURE__ */ r(
|
|
26
|
+
const y = N(), { control: w } = m.form.hookFormInternals.formMethods, f = Ie({ control: w, name: "courtesyWithholding" });
|
|
27
|
+
return /* @__PURE__ */ r(z, { children: [
|
|
27
28
|
/* @__PURE__ */ e(
|
|
28
29
|
u,
|
|
29
30
|
{
|
|
30
|
-
label:
|
|
31
|
-
description: /* @__PURE__ */ r(
|
|
32
|
-
|
|
31
|
+
label: d("courtesyWithholdingLabel"),
|
|
32
|
+
description: /* @__PURE__ */ r(z, { children: [
|
|
33
|
+
d("courtesyWithholdingDescription"),
|
|
33
34
|
/* @__PURE__ */ e(
|
|
34
|
-
|
|
35
|
+
L,
|
|
35
36
|
{
|
|
36
|
-
t:
|
|
37
|
+
t: d,
|
|
37
38
|
i18nKey: "learnMoreCta",
|
|
38
39
|
components: {
|
|
39
40
|
LearnMoreLink: /* @__PURE__ */ e(y.Link, {})
|
|
@@ -43,111 +44,113 @@ function q({
|
|
|
43
44
|
] })
|
|
44
45
|
}
|
|
45
46
|
),
|
|
46
|
-
f ? /* @__PURE__ */ e(y.Alert, { label:
|
|
47
|
+
f ? /* @__PURE__ */ e(y.Alert, { label: d("withholdingTitle"), status: "warning", children: /* @__PURE__ */ e(L, { t: d, i18nKey: "withholdingNote" }) }) : null
|
|
47
48
|
] });
|
|
48
49
|
}
|
|
49
|
-
function
|
|
50
|
+
function ct({
|
|
50
51
|
editHomeAddressForm: u,
|
|
51
52
|
createHomeAddressForm: m,
|
|
52
|
-
employeeHomeAddresses:
|
|
53
|
+
employeeHomeAddresses: d,
|
|
53
54
|
employeeDisplayName: y,
|
|
54
|
-
editingHomeAddressUuid:
|
|
55
|
+
editingHomeAddressUuid: w,
|
|
55
56
|
onEditAddressTargetChange: f,
|
|
56
|
-
onSaved:
|
|
57
|
-
onConfirmDelete:
|
|
58
|
-
|
|
57
|
+
onSaved: _,
|
|
58
|
+
onConfirmDelete: J,
|
|
59
|
+
onBack: X,
|
|
60
|
+
isDeletePending: ee = !1
|
|
59
61
|
}) {
|
|
60
|
-
const { t } =
|
|
61
|
-
|
|
62
|
+
const { t } = Z("Employee.HomeAddress.Management"), { t: o } = Z("Employee.HomeAddress"), n = N(), [l, C] = I(null), [h, S] = I(null), k = Te(null), [M, F] = I(void 0);
|
|
63
|
+
Pe(() => {
|
|
62
64
|
if (!l) {
|
|
63
65
|
F(void 0);
|
|
64
66
|
return;
|
|
65
67
|
}
|
|
66
68
|
const i = () => {
|
|
67
|
-
F(
|
|
69
|
+
F(k.current ?? void 0);
|
|
68
70
|
};
|
|
69
|
-
if (i(),
|
|
70
|
-
const
|
|
71
|
+
if (i(), k.current == null) {
|
|
72
|
+
const c = requestAnimationFrame(i);
|
|
71
73
|
return () => {
|
|
72
|
-
cancelAnimationFrame(
|
|
74
|
+
cancelAnimationFrame(c);
|
|
73
75
|
};
|
|
74
76
|
}
|
|
75
77
|
}, [l]);
|
|
76
78
|
const {
|
|
77
|
-
data: { homeAddress:
|
|
79
|
+
data: { homeAddress: p },
|
|
80
|
+
status: H,
|
|
81
|
+
actions: { onSubmit: te },
|
|
82
|
+
form: ie
|
|
83
|
+
} = u, g = d, {
|
|
78
84
|
status: U,
|
|
79
|
-
actions: { onSubmit:
|
|
80
|
-
form:
|
|
81
|
-
} = u, p = c, {
|
|
82
|
-
status: W,
|
|
83
|
-
actions: { onSubmit: ee },
|
|
84
|
-
form: te
|
|
85
|
+
actions: { onSubmit: ne },
|
|
86
|
+
form: oe
|
|
85
87
|
} = m, {
|
|
86
88
|
Fields: {
|
|
87
|
-
Street1:
|
|
88
|
-
Street2:
|
|
89
|
-
City:
|
|
90
|
-
State:
|
|
91
|
-
Zip:
|
|
92
|
-
CourtesyWithholding:
|
|
89
|
+
Street1: re,
|
|
90
|
+
Street2: ae,
|
|
91
|
+
City: se,
|
|
92
|
+
State: le,
|
|
93
|
+
Zip: de,
|
|
94
|
+
CourtesyWithholding: ce,
|
|
95
|
+
EffectiveDate: W
|
|
93
96
|
}
|
|
94
|
-
} =
|
|
97
|
+
} = ie, {
|
|
95
98
|
Fields: {
|
|
96
|
-
Street1:
|
|
97
|
-
Street2:
|
|
98
|
-
City:
|
|
99
|
-
State:
|
|
100
|
-
Zip:
|
|
101
|
-
CourtesyWithholding:
|
|
102
|
-
EffectiveDate:
|
|
99
|
+
Street1: ue,
|
|
100
|
+
Street2: me,
|
|
101
|
+
City: fe,
|
|
102
|
+
State: he,
|
|
103
|
+
Zip: pe,
|
|
104
|
+
CourtesyWithholding: ge,
|
|
105
|
+
EffectiveDate: B
|
|
103
106
|
}
|
|
104
|
-
} =
|
|
107
|
+
} = oe, V = {
|
|
105
108
|
[a.REQUIRED]: o("validations.zip"),
|
|
106
109
|
[a.INVALID_ZIP]: o("validations.zip")
|
|
107
|
-
},
|
|
110
|
+
}, Q = {
|
|
108
111
|
[a.REQUIRED]: t("form.startDateRequired")
|
|
109
|
-
},
|
|
110
|
-
() =>
|
|
111
|
-
[
|
|
112
|
-
),
|
|
113
|
-
if (!(!h || !
|
|
114
|
-
return
|
|
115
|
-
}, [h,
|
|
112
|
+
}, b = A(
|
|
113
|
+
() => Ae(g),
|
|
114
|
+
[g]
|
|
115
|
+
), O = A(() => {
|
|
116
|
+
if (!(!h || !g))
|
|
117
|
+
return g.find((i) => i.uuid === h);
|
|
118
|
+
}, [h, g]), ve = A(() => {
|
|
116
119
|
const i = y.trim();
|
|
117
120
|
return i ? `${i}'s` : t("changePendingPossessiveFallback");
|
|
118
|
-
}, [y, t]),
|
|
119
|
-
const v = i.effectiveDate?.toString() ?? "", D =
|
|
121
|
+
}, [y, t]), E = [...g ?? []].sort((i, c) => {
|
|
122
|
+
const v = i.effectiveDate?.toString() ?? "", D = c.effectiveDate?.toString() ?? "";
|
|
120
123
|
return !v && !D ? 0 : v ? D ? v.localeCompare(D) : -1 : 1;
|
|
121
|
-
}),
|
|
122
|
-
const
|
|
123
|
-
if (
|
|
124
|
-
const v =
|
|
124
|
+
}), De = [...E.filter((i) => i.active !== !0)].reverse(), ye = (i) => {
|
|
125
|
+
const c = E.findIndex((Re) => Re.uuid === i.uuid);
|
|
126
|
+
if (c === -1 || c >= E.length - 1) return "—";
|
|
127
|
+
const v = E[c + 1]?.effectiveDate;
|
|
125
128
|
if (!v) return "—";
|
|
126
|
-
const D =
|
|
129
|
+
const D = Be(v.toString());
|
|
127
130
|
if (!D) return "—";
|
|
128
|
-
const P =
|
|
129
|
-
return
|
|
130
|
-
},
|
|
131
|
-
data:
|
|
131
|
+
const P = Ve(D, -1), Ee = P.getFullYear(), xe = String(P.getMonth() + 1).padStart(2, "0"), ke = String(P.getDate()).padStart(2, "0");
|
|
132
|
+
return x(`${Ee}-${xe}-${ke}`);
|
|
133
|
+
}, Ce = Oe({
|
|
134
|
+
data: De,
|
|
132
135
|
columns: [
|
|
133
136
|
{
|
|
134
137
|
title: t("columns.address"),
|
|
135
138
|
render: (i) => /* @__PURE__ */ r(s, { flexDirection: "column", gap: 0, children: [
|
|
136
|
-
/* @__PURE__ */ e(n.Text, { weight: "medium", children:
|
|
137
|
-
/* @__PURE__ */ e(n.Text, { variant: "supporting", children:
|
|
139
|
+
/* @__PURE__ */ e(n.Text, { weight: "medium", children: q(i) }),
|
|
140
|
+
/* @__PURE__ */ e(n.Text, { variant: "supporting", children: Y(i) })
|
|
138
141
|
] })
|
|
139
142
|
},
|
|
140
143
|
{
|
|
141
144
|
title: t("columns.startDate"),
|
|
142
|
-
render: (i) => i.effectiveDate ?
|
|
145
|
+
render: (i) => i.effectiveDate ? x(i.effectiveDate.toString()) : "—"
|
|
143
146
|
},
|
|
144
147
|
{
|
|
145
148
|
title: t("columns.endDate"),
|
|
146
|
-
render: (i) =>
|
|
149
|
+
render: (i) => ye(i)
|
|
147
150
|
}
|
|
148
151
|
],
|
|
149
152
|
itemMenu: (i) => /* @__PURE__ */ e(
|
|
150
|
-
|
|
153
|
+
Qe,
|
|
151
154
|
{
|
|
152
155
|
triggerLabel: t("rowMenuAriaLabel"),
|
|
153
156
|
items: [
|
|
@@ -156,48 +159,48 @@ function at({
|
|
|
156
159
|
onClick: () => {
|
|
157
160
|
f(i.uuid), C("edit");
|
|
158
161
|
},
|
|
159
|
-
icon: /* @__PURE__ */ e(
|
|
162
|
+
icon: /* @__PURE__ */ e(we, { "aria-hidden": !0 })
|
|
160
163
|
},
|
|
161
164
|
{
|
|
162
165
|
label: t("rowDelete"),
|
|
163
166
|
onClick: () => {
|
|
164
167
|
i.active !== !0 && S(i.uuid);
|
|
165
168
|
},
|
|
166
|
-
icon: /* @__PURE__ */ e(
|
|
169
|
+
icon: /* @__PURE__ */ e(Fe, { "aria-hidden": !0 })
|
|
167
170
|
}
|
|
168
171
|
]
|
|
169
172
|
}
|
|
170
173
|
),
|
|
171
174
|
emptyState: () => /* @__PURE__ */ e("div", { "data-testid": "home-address-history-empty", children: /* @__PURE__ */ e(
|
|
172
|
-
|
|
175
|
+
Ue,
|
|
173
176
|
{
|
|
174
|
-
icon: /* @__PURE__ */ e(
|
|
177
|
+
icon: /* @__PURE__ */ e(Le, { "aria-hidden": !0 }),
|
|
175
178
|
title: t("historyEmptyTitle"),
|
|
176
179
|
description: t("historyEmptyDescription")
|
|
177
180
|
}
|
|
178
181
|
) })
|
|
179
|
-
}),
|
|
180
|
-
C(null), f(void 0)
|
|
181
|
-
|
|
182
|
+
}), R = () => {
|
|
183
|
+
C(null), f(void 0), u.form.hookFormInternals.formMethods.reset(void 0, {
|
|
184
|
+
keepDirtyValues: !1
|
|
185
|
+
}), m.form.hookFormInternals.formMethods.reset(void 0, {
|
|
186
|
+
keepDirtyValues: !1
|
|
187
|
+
});
|
|
188
|
+
}, Se = async () => {
|
|
182
189
|
if (!h)
|
|
183
190
|
return;
|
|
184
|
-
await
|
|
185
|
-
},
|
|
186
|
-
onSubmit:
|
|
187
|
-
|
|
188
|
-
isPending: U.isPending
|
|
191
|
+
await J(h) && S(null);
|
|
192
|
+
}, T = l === "edit" ? {
|
|
193
|
+
onSubmit: te,
|
|
194
|
+
isPending: H.isPending
|
|
189
195
|
} : l === "create" ? {
|
|
190
|
-
onSubmit:
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
if (!x)
|
|
196
|
+
onSubmit: ne,
|
|
197
|
+
isPending: U.isPending
|
|
198
|
+
} : null, Me = async () => {
|
|
199
|
+
if (!T)
|
|
195
200
|
return;
|
|
196
|
-
const i = await
|
|
197
|
-
i &&
|
|
198
|
-
|
|
199
|
-
(i || !d) && T();
|
|
200
|
-
}, Se = x?.isPending ?? !1;
|
|
201
|
+
const i = await T.onSubmit();
|
|
202
|
+
i && (_(i), R());
|
|
203
|
+
}, be = T?.isPending ?? !1;
|
|
201
204
|
return /* @__PURE__ */ r(s, { flexDirection: "column", gap: 24, children: [
|
|
202
205
|
/* @__PURE__ */ r(s, { flexDirection: "column", gap: 4, alignItems: "flex-start", children: [
|
|
203
206
|
/* @__PURE__ */ e(n.Heading, { as: "h1", styledAs: "h2", children: t("title") }),
|
|
@@ -210,14 +213,14 @@ function at({
|
|
|
210
213
|
n.BoxHeader,
|
|
211
214
|
{
|
|
212
215
|
title: t("currentSectionTitle"),
|
|
213
|
-
action:
|
|
216
|
+
action: p ? /* @__PURE__ */ e(
|
|
214
217
|
n.Button,
|
|
215
218
|
{
|
|
216
219
|
variant: "secondary",
|
|
217
220
|
onClick: () => {
|
|
218
221
|
f(void 0), C("edit");
|
|
219
222
|
},
|
|
220
|
-
isLoading:
|
|
223
|
+
isLoading: H.isPending,
|
|
221
224
|
children: t("editCta")
|
|
222
225
|
}
|
|
223
226
|
) : void 0
|
|
@@ -230,24 +233,24 @@ function at({
|
|
|
230
233
|
onClick: () => {
|
|
231
234
|
f(void 0), C("create");
|
|
232
235
|
},
|
|
233
|
-
isLoading:
|
|
236
|
+
isLoading: U.isPending,
|
|
234
237
|
children: t("changeCta")
|
|
235
238
|
}
|
|
236
239
|
),
|
|
237
240
|
children: /* @__PURE__ */ r(s, { flexDirection: "column", gap: 16, children: [
|
|
238
|
-
|
|
239
|
-
/* @__PURE__ */ r(
|
|
240
|
-
/* @__PURE__ */ e(n.Text, { weight: "medium", children:
|
|
241
|
-
/* @__PURE__ */ e(n.Text, { weight: "medium", children:
|
|
241
|
+
p ? /* @__PURE__ */ r(s, { flexDirection: "column", gap: 4, children: [
|
|
242
|
+
/* @__PURE__ */ r(He, { children: [
|
|
243
|
+
/* @__PURE__ */ e(n.Text, { weight: "medium", children: q(p) }),
|
|
244
|
+
/* @__PURE__ */ e(n.Text, { weight: "medium", children: Y(p) })
|
|
242
245
|
] }),
|
|
243
|
-
|
|
244
|
-
date:
|
|
246
|
+
p.effectiveDate ? /* @__PURE__ */ e(n.Text, { variant: "supporting", children: t("currentSince", {
|
|
247
|
+
date: x(p.effectiveDate.toString())
|
|
245
248
|
}) }) : null
|
|
246
249
|
] }) : /* @__PURE__ */ e(n.Text, { children: o("formTitle") }),
|
|
247
|
-
|
|
248
|
-
possessiveLabel:
|
|
249
|
-
newAddress:
|
|
250
|
-
effectiveDate:
|
|
250
|
+
b ? /* @__PURE__ */ e(n.Alert, { status: "warning", label: t("changePendingTitle"), children: /* @__PURE__ */ e(n.Text, { variant: "supporting", children: t("changePendingDescription", {
|
|
251
|
+
possessiveLabel: ve,
|
|
252
|
+
newAddress: j(b),
|
|
253
|
+
effectiveDate: b.effectiveDate ? x(b.effectiveDate.toString()) : "—",
|
|
251
254
|
interpolation: { escapeValue: !1 }
|
|
252
255
|
}) }) }) : null
|
|
253
256
|
] })
|
|
@@ -255,22 +258,23 @@ function at({
|
|
|
255
258
|
),
|
|
256
259
|
/* @__PURE__ */ r(s, { flexDirection: "column", gap: 12, children: [
|
|
257
260
|
/* @__PURE__ */ e(n.Heading, { as: "h2", styledAs: "h4", children: t("historySectionTitle") }),
|
|
258
|
-
/* @__PURE__ */ e(
|
|
261
|
+
/* @__PURE__ */ e(ze, { label: t("historySectionTitle"), ...Ce })
|
|
259
262
|
] }),
|
|
263
|
+
/* @__PURE__ */ e(We, { children: /* @__PURE__ */ e(n.Button, { variant: "secondary", onClick: X, children: t("backCta") }) }),
|
|
260
264
|
/* @__PURE__ */ e(
|
|
261
265
|
n.Modal,
|
|
262
266
|
{
|
|
263
267
|
isOpen: l !== null,
|
|
264
|
-
onClose:
|
|
268
|
+
onClose: R,
|
|
265
269
|
shouldCloseOnBackdropClick: !1,
|
|
266
|
-
containerRef:
|
|
270
|
+
containerRef: k,
|
|
267
271
|
footer: /* @__PURE__ */ r(s, { flexDirection: "row", gap: 12, justifyContent: "flex-end", children: [
|
|
268
272
|
/* @__PURE__ */ e(
|
|
269
273
|
n.Button,
|
|
270
274
|
{
|
|
271
275
|
variant: "secondary",
|
|
272
276
|
onClick: () => {
|
|
273
|
-
|
|
277
|
+
R();
|
|
274
278
|
},
|
|
275
279
|
children: t("cancelCta")
|
|
276
280
|
}
|
|
@@ -280,9 +284,9 @@ function at({
|
|
|
280
284
|
{
|
|
281
285
|
variant: "primary",
|
|
282
286
|
onClick: () => {
|
|
283
|
-
|
|
287
|
+
Me();
|
|
284
288
|
},
|
|
285
|
-
isLoading:
|
|
289
|
+
isLoading: be,
|
|
286
290
|
children: t("submitCta")
|
|
287
291
|
}
|
|
288
292
|
)
|
|
@@ -292,8 +296,8 @@ function at({
|
|
|
292
296
|
/* @__PURE__ */ e(n.Heading, { as: "h2", children: t(l === "edit" ? "editModalTitle" : "createModalTitle") }),
|
|
293
297
|
/* @__PURE__ */ e(n.Text, { variant: "supporting", children: t(l === "edit" ? "editModalDescription" : "createModalDescription") })
|
|
294
298
|
] }),
|
|
295
|
-
l === "edit" ? /* @__PURE__ */ e(
|
|
296
|
-
|
|
299
|
+
l === "edit" ? /* @__PURE__ */ e(K, { formHookResult: u, children: /* @__PURE__ */ r(
|
|
300
|
+
$,
|
|
297
301
|
{
|
|
298
302
|
gridTemplateColumns: {
|
|
299
303
|
base: "1fr",
|
|
@@ -301,8 +305,17 @@ function at({
|
|
|
301
305
|
},
|
|
302
306
|
gap: 20,
|
|
303
307
|
children: [
|
|
308
|
+
W ? /* @__PURE__ */ e(
|
|
309
|
+
W,
|
|
310
|
+
{
|
|
311
|
+
label: t("columns.startDate"),
|
|
312
|
+
description: t("startDateHelper"),
|
|
313
|
+
validationMessages: Q,
|
|
314
|
+
portalContainer: M
|
|
315
|
+
}
|
|
316
|
+
) : null,
|
|
304
317
|
/* @__PURE__ */ e(
|
|
305
|
-
|
|
318
|
+
re,
|
|
306
319
|
{
|
|
307
320
|
label: o("street1"),
|
|
308
321
|
validationMessages: {
|
|
@@ -311,7 +324,7 @@ function at({
|
|
|
311
324
|
}
|
|
312
325
|
),
|
|
313
326
|
/* @__PURE__ */ e(
|
|
314
|
-
|
|
327
|
+
ae,
|
|
315
328
|
{
|
|
316
329
|
label: o("street2"),
|
|
317
330
|
validationMessages: {
|
|
@@ -320,7 +333,7 @@ function at({
|
|
|
320
333
|
}
|
|
321
334
|
),
|
|
322
335
|
/* @__PURE__ */ e(
|
|
323
|
-
|
|
336
|
+
se,
|
|
324
337
|
{
|
|
325
338
|
label: o("city"),
|
|
326
339
|
validationMessages: {
|
|
@@ -329,20 +342,20 @@ function at({
|
|
|
329
342
|
}
|
|
330
343
|
),
|
|
331
344
|
/* @__PURE__ */ e(
|
|
332
|
-
|
|
345
|
+
le,
|
|
333
346
|
{
|
|
334
347
|
label: o("state"),
|
|
335
348
|
validationMessages: {
|
|
336
349
|
[a.REQUIRED]: o("validations.state")
|
|
337
350
|
},
|
|
338
|
-
portalContainer:
|
|
351
|
+
portalContainer: M
|
|
339
352
|
}
|
|
340
353
|
),
|
|
341
|
-
/* @__PURE__ */ e(
|
|
354
|
+
/* @__PURE__ */ e(de, { label: o("zip"), validationMessages: V }),
|
|
342
355
|
/* @__PURE__ */ e(
|
|
343
|
-
|
|
356
|
+
G,
|
|
344
357
|
{
|
|
345
|
-
CourtesyWithholding:
|
|
358
|
+
CourtesyWithholding: ce,
|
|
346
359
|
formHook: u,
|
|
347
360
|
tHa: o
|
|
348
361
|
}
|
|
@@ -350,8 +363,8 @@ function at({
|
|
|
350
363
|
]
|
|
351
364
|
}
|
|
352
365
|
) }) : null,
|
|
353
|
-
l === "create" ? /* @__PURE__ */ e(
|
|
354
|
-
|
|
366
|
+
l === "create" ? /* @__PURE__ */ e(K, { formHookResult: m, children: /* @__PURE__ */ r(
|
|
367
|
+
$,
|
|
355
368
|
{
|
|
356
369
|
gridTemplateColumns: {
|
|
357
370
|
base: "1fr",
|
|
@@ -359,17 +372,17 @@ function at({
|
|
|
359
372
|
},
|
|
360
373
|
gap: 20,
|
|
361
374
|
children: [
|
|
362
|
-
|
|
363
|
-
|
|
375
|
+
B ? /* @__PURE__ */ e(
|
|
376
|
+
B,
|
|
364
377
|
{
|
|
365
378
|
label: t("columns.startDate"),
|
|
366
379
|
description: t("startDateHelper"),
|
|
367
|
-
validationMessages:
|
|
368
|
-
portalContainer:
|
|
380
|
+
validationMessages: Q,
|
|
381
|
+
portalContainer: M
|
|
369
382
|
}
|
|
370
383
|
) : null,
|
|
371
384
|
/* @__PURE__ */ e(
|
|
372
|
-
|
|
385
|
+
ue,
|
|
373
386
|
{
|
|
374
387
|
label: o("street1"),
|
|
375
388
|
validationMessages: {
|
|
@@ -378,7 +391,7 @@ function at({
|
|
|
378
391
|
}
|
|
379
392
|
),
|
|
380
393
|
/* @__PURE__ */ e(
|
|
381
|
-
|
|
394
|
+
me,
|
|
382
395
|
{
|
|
383
396
|
label: o("street2"),
|
|
384
397
|
validationMessages: {
|
|
@@ -387,7 +400,7 @@ function at({
|
|
|
387
400
|
}
|
|
388
401
|
),
|
|
389
402
|
/* @__PURE__ */ e(
|
|
390
|
-
|
|
403
|
+
fe,
|
|
391
404
|
{
|
|
392
405
|
label: o("city"),
|
|
393
406
|
validationMessages: {
|
|
@@ -396,20 +409,20 @@ function at({
|
|
|
396
409
|
}
|
|
397
410
|
),
|
|
398
411
|
/* @__PURE__ */ e(
|
|
399
|
-
|
|
412
|
+
he,
|
|
400
413
|
{
|
|
401
414
|
label: o("state"),
|
|
402
415
|
validationMessages: {
|
|
403
416
|
[a.REQUIRED]: o("validations.state")
|
|
404
417
|
},
|
|
405
|
-
portalContainer:
|
|
418
|
+
portalContainer: M
|
|
406
419
|
}
|
|
407
420
|
),
|
|
408
|
-
/* @__PURE__ */ e(
|
|
421
|
+
/* @__PURE__ */ e(pe, { label: o("zip"), validationMessages: V }),
|
|
409
422
|
/* @__PURE__ */ e(
|
|
410
|
-
|
|
423
|
+
G,
|
|
411
424
|
{
|
|
412
|
-
CourtesyWithholding:
|
|
425
|
+
CourtesyWithholding: ge,
|
|
413
426
|
formHook: m,
|
|
414
427
|
tHa: o
|
|
415
428
|
}
|
|
@@ -444,22 +457,22 @@ function at({
|
|
|
444
457
|
{
|
|
445
458
|
variant: "error",
|
|
446
459
|
onClick: () => {
|
|
447
|
-
|
|
460
|
+
Se();
|
|
448
461
|
},
|
|
449
|
-
isLoading:
|
|
462
|
+
isLoading: ee,
|
|
450
463
|
children: t("deleteModalConfirmCta")
|
|
451
464
|
}
|
|
452
465
|
)
|
|
453
466
|
] }),
|
|
454
467
|
children: /* @__PURE__ */ r(s, { flexDirection: "column", gap: 16, children: [
|
|
455
468
|
/* @__PURE__ */ e(n.Heading, { as: "h2", children: t("deleteModalTitle") }),
|
|
456
|
-
/* @__PURE__ */ e(n.Text, { variant: "supporting", children:
|
|
457
|
-
|
|
469
|
+
/* @__PURE__ */ e(n.Text, { variant: "supporting", children: O ? /* @__PURE__ */ e(
|
|
470
|
+
L,
|
|
458
471
|
{
|
|
459
472
|
t,
|
|
460
473
|
i18nKey: "deleteModalDescription",
|
|
461
474
|
values: {
|
|
462
|
-
address:
|
|
475
|
+
address: j(O)
|
|
463
476
|
},
|
|
464
477
|
components: {
|
|
465
478
|
strong: /* @__PURE__ */ e(n.Text, { weight: "medium", as: "span" })
|
|
@@ -473,6 +486,6 @@ function at({
|
|
|
473
486
|
] });
|
|
474
487
|
}
|
|
475
488
|
export {
|
|
476
|
-
|
|
489
|
+
ct as HomeAddressView
|
|
477
490
|
};
|
|
478
491
|
//# sourceMappingURL=HomeAddressView.js.map
|