@gusto/embedded-react-sdk 0.45.0 → 0.46.2

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.
Files changed (233) hide show
  1. package/CHANGELOG.md +64 -0
  2. package/dist/components/Common/DataView/DataCards/DataCards.d.ts +2 -1
  3. package/dist/components/Common/DataView/DataCards/DataCards.js +14 -13
  4. package/dist/components/Common/DataView/DataCards/DataCards.js.map +1 -1
  5. package/dist/components/Common/DataView/DataTable/DataTable.d.ts +2 -1
  6. package/dist/components/Common/DataView/DataTable/DataTable.js +51 -50
  7. package/dist/components/Common/DataView/DataTable/DataTable.js.map +1 -1
  8. package/dist/components/Common/DataView/DataView.d.ts +1 -0
  9. package/dist/components/Common/DataView/DataView.js.map +1 -1
  10. package/dist/components/Common/DataView/useDataView.d.ts +8 -1
  11. package/dist/components/Common/DataView/useDataView.js +20 -17
  12. package/dist/components/Common/DataView/useDataView.js.map +1 -1
  13. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js +20 -4
  14. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js.map +1 -1
  15. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js +20 -4
  16. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js.map +1 -1
  17. package/dist/components/Company/AssignSignatory/useAssignSignatory.js +22 -6
  18. package/dist/components/Company/AssignSignatory/useAssignSignatory.js.map +1 -1
  19. package/dist/components/Company/BankAccount/BankAccountForm/context.js +20 -4
  20. package/dist/components/Company/BankAccount/BankAccountForm/context.js.map +1 -1
  21. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js +20 -4
  22. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  23. package/dist/components/Company/DocumentSigner/shared/useSignCompanyForm/fields.js +4 -4
  24. package/dist/components/Company/FederalTaxes/useFederalTaxes.js +28 -12
  25. package/dist/components/Company/FederalTaxes/useFederalTaxes.js.map +1 -1
  26. package/dist/components/Company/Industry/Context.js +23 -7
  27. package/dist/components/Company/Industry/Context.js.map +1 -1
  28. package/dist/components/Company/Locations/LocationForm/useLocationForm.js +20 -4
  29. package/dist/components/Company/Locations/LocationForm/useLocationForm.js.map +1 -1
  30. package/dist/components/Company/Locations/LocationsList/useLocationsList.js +20 -4
  31. package/dist/components/Company/Locations/LocationsList/useLocationsList.js.map +1 -1
  32. package/dist/components/Company/OnboardingOverview/context.js +20 -4
  33. package/dist/components/Company/OnboardingOverview/context.js.map +1 -1
  34. package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/fields.js +5 -5
  35. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js +20 -4
  36. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js.map +1 -1
  37. package/dist/components/Company/StateTaxes/StateTaxesList/context.js +20 -4
  38. package/dist/components/Company/StateTaxes/StateTaxesList/context.js.map +1 -1
  39. package/dist/components/Contractor/Address/useAddress.js +22 -6
  40. package/dist/components/Contractor/Address/useAddress.js.map +1 -1
  41. package/dist/components/Contractor/Profile/useContractorProfile.js +52 -42
  42. package/dist/components/Contractor/Profile/useContractorProfile.js.map +1 -1
  43. package/dist/components/Employee/Compensation/management/AddAnotherJob/AddAnotherJob.d.ts +9 -0
  44. package/dist/components/Employee/Compensation/management/AddAnotherJob/AddAnotherJob.js +76 -0
  45. package/dist/components/Employee/Compensation/management/AddAnotherJob/AddAnotherJob.js.map +1 -0
  46. package/dist/components/Employee/Compensation/management/AddAnotherJob/AddAnotherJob.module.scss.js +8 -0
  47. package/dist/components/Employee/Compensation/management/AddAnotherJob/AddAnotherJob.module.scss.js.map +1 -0
  48. package/dist/components/Employee/Compensation/management/EditCompensation/EditCompensation.d.ts +11 -0
  49. package/dist/components/Employee/Compensation/management/EditCompensation/EditCompensation.js +85 -0
  50. package/dist/components/Employee/Compensation/management/EditCompensation/EditCompensation.js.map +1 -0
  51. package/dist/components/Employee/Compensation/management/EditCompensation/EditCompensation.module.scss.js +8 -0
  52. package/dist/components/Employee/Compensation/management/EditCompensation/EditCompensation.module.scss.js.map +1 -0
  53. package/dist/components/Employee/Compensation/management/EditCompensation/index.d.ts +3 -0
  54. package/dist/components/Employee/Compensation/management/EditPendingCompensation/EditPendingCompensation.d.ts +25 -0
  55. package/dist/components/Employee/Compensation/management/EditPendingCompensation/EditPendingCompensation.js +81 -0
  56. package/dist/components/Employee/Compensation/management/EditPendingCompensation/EditPendingCompensation.js.map +1 -0
  57. package/dist/components/Employee/Compensation/management/EditPendingCompensation/EditPendingCompensation.module.scss.js +8 -0
  58. package/dist/components/Employee/Compensation/management/EditPendingCompensation/EditPendingCompensation.module.scss.js.map +1 -0
  59. package/dist/components/Employee/Compensation/management/ManagementCompensationFormBody.d.ts +18 -0
  60. package/dist/components/Employee/Compensation/management/ManagementCompensationFormBody.js +171 -0
  61. package/dist/components/Employee/Compensation/management/ManagementCompensationFormBody.js.map +1 -0
  62. package/dist/components/Employee/Compensation/management/index.d.ts +6 -0
  63. package/dist/components/Employee/Compensation/onboarding/EditCompensation/EditCompensation.d.ts +6 -1
  64. package/dist/components/Employee/Compensation/onboarding/EditCompensation/EditCompensation.js +67 -209
  65. package/dist/components/Employee/Compensation/onboarding/EditCompensation/EditCompensation.js.map +1 -1
  66. package/dist/components/Employee/Compensation/shared/AddCompensationFormBody.d.ts +18 -0
  67. package/dist/components/Employee/Compensation/shared/AddCompensationFormBody.js +169 -0
  68. package/dist/components/Employee/Compensation/shared/AddCompensationFormBody.js.map +1 -0
  69. package/dist/components/Employee/Compensation/shared/useCompensationForm/compensationSchema.d.ts +16 -0
  70. package/dist/components/Employee/Compensation/shared/useCompensationForm/compensationSchema.js +36 -30
  71. package/dist/components/Employee/Compensation/shared/useCompensationForm/compensationSchema.js.map +1 -1
  72. package/dist/components/Employee/Compensation/shared/useCompensationForm/fields.d.ts +1 -1
  73. package/dist/components/Employee/Compensation/shared/useCompensationForm/fields.js +4 -4
  74. package/dist/components/Employee/Compensation/shared/useCompensationForm/fields.js.map +1 -1
  75. package/dist/components/Employee/Compensation/shared/useCompensationForm/useCompensationForm.js +212 -187
  76. package/dist/components/Employee/Compensation/shared/useCompensationForm/useCompensationForm.js.map +1 -1
  77. package/dist/components/Employee/Compensation/shared/useJobForm/fields.js +6 -6
  78. package/dist/components/Employee/Compensation/shared/useJobForm/jobSchema.d.ts +8 -0
  79. package/dist/components/Employee/Compensation/shared/useJobForm/jobSchema.js +22 -17
  80. package/dist/components/Employee/Compensation/shared/useJobForm/jobSchema.js.map +1 -1
  81. package/dist/components/Employee/Compensation/shared/useJobForm/useJobForm.d.ts +12 -2
  82. package/dist/components/Employee/Compensation/shared/useJobForm/useJobForm.js +115 -110
  83. package/dist/components/Employee/Compensation/shared/useJobForm/useJobForm.js.map +1 -1
  84. package/dist/components/Employee/Dashboard/BasicDetailsView.d.ts +8 -3
  85. package/dist/components/Employee/Dashboard/BasicDetailsView.js +108 -84
  86. package/dist/components/Employee/Dashboard/BasicDetailsView.js.map +1 -1
  87. package/dist/components/Employee/Dashboard/Dashboard.d.ts +2 -0
  88. package/dist/components/Employee/Dashboard/Dashboard.js +86 -68
  89. package/dist/components/Employee/Dashboard/Dashboard.js.map +1 -1
  90. package/dist/components/Employee/Dashboard/DashboardComponents.d.ts +8 -4
  91. package/dist/components/Employee/Dashboard/DashboardComponents.js +147 -93
  92. package/dist/components/Employee/Dashboard/DashboardComponents.js.map +1 -1
  93. package/dist/components/Employee/Dashboard/DocumentsView.js +18 -11
  94. package/dist/components/Employee/Dashboard/DocumentsView.js.map +1 -1
  95. package/dist/components/Employee/Dashboard/JobAndPayView.js +304 -264
  96. package/dist/components/Employee/Dashboard/JobAndPayView.js.map +1 -1
  97. package/dist/components/Employee/Dashboard/JobAndPayView.module.scss.js +10 -0
  98. package/dist/components/Employee/Dashboard/JobAndPayView.module.scss.js.map +1 -0
  99. package/dist/components/Employee/Dashboard/TaxesView.d.ts +7 -2
  100. package/dist/components/Employee/Dashboard/TaxesView.js +68 -54
  101. package/dist/components/Employee/Dashboard/TaxesView.js.map +1 -1
  102. package/dist/components/Employee/Dashboard/dashboardStateMachine.js +152 -142
  103. package/dist/components/Employee/Dashboard/dashboardStateMachine.js.map +1 -1
  104. package/dist/components/Employee/Dashboard/getPendingCompensationChanges.d.ts +6 -0
  105. package/dist/components/Employee/Dashboard/getPendingCompensationChanges.js +13 -12
  106. package/dist/components/Employee/Dashboard/getPendingCompensationChanges.js.map +1 -1
  107. package/dist/components/Employee/Dashboard/hooks/useEmployeeBasicDetails.d.ts +12 -5
  108. package/dist/components/Employee/Dashboard/hooks/useEmployeeBasicDetails.js +21 -21
  109. package/dist/components/Employee/Dashboard/hooks/useEmployeeBasicDetails.js.map +1 -1
  110. package/dist/components/Employee/Dashboard/hooks/useEmployeeCompensation.d.ts +13 -3
  111. package/dist/components/Employee/Dashboard/hooks/useEmployeeCompensation.js +53 -55
  112. package/dist/components/Employee/Dashboard/hooks/useEmployeeCompensation.js.map +1 -1
  113. package/dist/components/Employee/Dashboard/hooks/useEmployeeForms.d.ts +10 -4
  114. package/dist/components/Employee/Dashboard/hooks/useEmployeeForms.js +10 -12
  115. package/dist/components/Employee/Dashboard/hooks/useEmployeeForms.js.map +1 -1
  116. package/dist/components/Employee/Dashboard/hooks/useEmployeeTaxes.d.ts +10 -3
  117. package/dist/components/Employee/Dashboard/hooks/useEmployeeTaxes.js +19 -14
  118. package/dist/components/Employee/Dashboard/hooks/useEmployeeTaxes.js.map +1 -1
  119. package/dist/components/Employee/Deductions/shared/useChildSupportGarnishmentForm/fields.js +8 -8
  120. package/dist/components/Employee/Deductions/shared/useDeductionForm/fields.js +4 -4
  121. package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/useDocumentList.js +20 -4
  122. package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  123. package/dist/components/Employee/Documents/shared/useSignEmployeeForm/fields.js +1 -1
  124. package/dist/components/Employee/EmployeeList/management/ManagementEmployeeList.js +37 -40
  125. package/dist/components/Employee/EmployeeList/management/ManagementEmployeeList.js.map +1 -1
  126. package/dist/components/Employee/EmployeeList/management/ManagementEmployeeListView.d.ts +1 -2
  127. package/dist/components/Employee/EmployeeList/management/ManagementEmployeeListView.js +64 -71
  128. package/dist/components/Employee/EmployeeList/management/ManagementEmployeeListView.js.map +1 -1
  129. package/dist/components/Employee/EmployeeListFlow/EmployeeListFlow.d.ts +2 -0
  130. package/dist/components/Employee/EmployeeListFlow/EmployeeListFlow.js +25 -0
  131. package/dist/components/Employee/EmployeeListFlow/EmployeeListFlow.js.map +1 -0
  132. package/dist/components/Employee/EmployeeListFlow/EmployeeListFlowComponents.d.ts +13 -0
  133. package/dist/components/Employee/EmployeeListFlow/EmployeeListFlowComponents.js +37 -0
  134. package/dist/components/Employee/EmployeeListFlow/EmployeeListFlowComponents.js.map +1 -0
  135. package/dist/components/Employee/EmployeeListFlow/employeeListStateMachine.d.ts +6 -0
  136. package/dist/components/Employee/EmployeeListFlow/employeeListStateMachine.js +69 -0
  137. package/dist/components/Employee/EmployeeListFlow/employeeListStateMachine.js.map +1 -0
  138. package/dist/components/Employee/EmployeeListFlow/index.d.ts +3 -0
  139. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/fields.js +4 -4
  140. package/dist/components/Employee/HomeAddress/management/HomeAddress.js +15 -12
  141. package/dist/components/Employee/HomeAddress/management/HomeAddress.js.map +1 -1
  142. package/dist/components/Employee/HomeAddress/management/HomeAddressView.d.ts +2 -1
  143. package/dist/components/Employee/HomeAddress/management/HomeAddressView.js +86 -83
  144. package/dist/components/Employee/HomeAddress/management/HomeAddressView.js.map +1 -1
  145. package/dist/components/Employee/PaymentMethod/shared/useBankForm/fields.js +1 -1
  146. package/dist/components/Employee/PaymentMethod/shared/useSplitPaymentsForm/splitFieldFactory.js +4 -4
  147. package/dist/components/Employee/Profile/shared/useEmployeeDetailsForm/fields.js +8 -8
  148. package/dist/components/Employee/Profile/shared/useHomeAddressForm/fields.js +5 -5
  149. package/dist/components/Employee/Profile/shared/useWorkAddressForm/fields.js +4 -4
  150. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fieldComponents.js +8 -8
  151. package/dist/components/Employee/Taxes/useTaxes.js +20 -4
  152. package/dist/components/Employee/Taxes/useTaxes.js.map +1 -1
  153. package/dist/components/Employee/WorkAddress/management/WorkAddress.js +14 -11
  154. package/dist/components/Employee/WorkAddress/management/WorkAddress.js.map +1 -1
  155. package/dist/components/Employee/WorkAddress/management/WorkAddressView.d.ts +2 -1
  156. package/dist/components/Employee/WorkAddress/management/WorkAddressView.js +92 -89
  157. package/dist/components/Employee/WorkAddress/management/WorkAddressView.js.map +1 -1
  158. package/dist/components/Employee/exports/employeeManagement.d.ts +2 -0
  159. package/dist/components/Employee/exports/employeeManagement.js +18 -16
  160. package/dist/components/Employee/exports/employeeManagement.js.map +1 -1
  161. package/dist/components/Employee/index.d.ts +2 -0
  162. package/dist/components/Employee/index.js +32 -30
  163. package/dist/components/Employee/index.js.map +1 -1
  164. package/dist/components/Flow/FlowHeader.js +34 -31
  165. package/dist/components/Flow/FlowHeader.js.map +1 -1
  166. package/dist/components/Flow/useFlow.d.ts +12 -0
  167. package/dist/components/Flow/useFlow.js.map +1 -1
  168. package/dist/components/Payroll/GrossUpModal/GrossUpModal.js +34 -26
  169. package/dist/components/Payroll/GrossUpModal/GrossUpModal.js.map +1 -1
  170. package/dist/components/Payroll/usePreparedPayrollData.js +36 -22
  171. package/dist/components/Payroll/usePreparedPayrollData.js.map +1 -1
  172. package/dist/components/TimeOff/PolicyList/PolicyList.js +92 -69
  173. package/dist/components/TimeOff/PolicyList/PolicyList.js.map +1 -1
  174. package/dist/components/TimeOff/PolicyList/PolicyListPresentation.js +23 -23
  175. package/dist/components/TimeOff/PolicyList/PolicyListPresentation.js.map +1 -1
  176. package/dist/components/TimeOff/PolicySettings/PolicySettingsPresentation.js +52 -40
  177. package/dist/components/TimeOff/PolicySettings/PolicySettingsPresentation.js.map +1 -1
  178. package/dist/components/TimeOff/TimeOffFlow/TimeOffFlowComponents.d.ts +1 -1
  179. package/dist/components/TimeOff/TimeOffFlow/TimeOffFlowComponents.js.map +1 -1
  180. package/dist/components/TimeOff/TimeOffFlow/timeOffStateMachine.js +73 -56
  181. package/dist/components/TimeOff/TimeOffFlow/timeOffStateMachine.js.map +1 -1
  182. package/dist/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.js +58 -58
  183. package/dist/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.js.map +1 -1
  184. package/dist/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormPresentation.d.ts +1 -1
  185. package/dist/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormPresentation.js +91 -87
  186. package/dist/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormPresentation.js.map +1 -1
  187. package/dist/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormTypes.d.ts +2 -0
  188. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesHoliday.js +91 -124
  189. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesHoliday.js.map +1 -1
  190. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentation.d.ts +1 -1
  191. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentation.js +72 -87
  192. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentation.js.map +1 -1
  193. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentationTypes.d.ts +1 -6
  194. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesTimeOff.js +160 -220
  195. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesTimeOff.js.map +1 -1
  196. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/useSelectEmployeesData.d.ts +7 -3
  197. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/useSelectEmployeesData.js +77 -54
  198. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/useSelectEmployeesData.js.map +1 -1
  199. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/useSelectEmployeesData.test.d.ts +1 -0
  200. package/dist/components/TimeOff/TimeOffPolicyDetail/EditEmployeeBalanceModal.js +12 -11
  201. package/dist/components/TimeOff/TimeOffPolicyDetail/EditEmployeeBalanceModal.js.map +1 -1
  202. package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetail.js +177 -147
  203. package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetail.js.map +1 -1
  204. package/dist/components/TimeOff/shared/EmployeeTable/EmployeeTable.d.ts +1 -1
  205. package/dist/components/TimeOff/shared/EmployeeTable/EmployeeTable.js +38 -36
  206. package/dist/components/TimeOff/shared/EmployeeTable/EmployeeTable.js.map +1 -1
  207. package/dist/components/TimeOff/shared/EmployeeTable/EmployeeTableTypes.d.ts +2 -0
  208. package/dist/i18n/en/Company.TimeOff.SelectEmployees.json.js +10 -10
  209. package/dist/i18n/en/Company.TimeOff.TimeOffPolicies.json.js +17 -15
  210. package/dist/i18n/en/Company.TimeOff.TimeOffPolicies.json.js.map +1 -1
  211. package/dist/i18n/en/Company.TimeOff.TimeOffPolicyDetails.json.js +9 -9
  212. package/dist/i18n/en/Employee.Compensation.json.js +68 -56
  213. package/dist/i18n/en/Employee.Compensation.json.js.map +1 -1
  214. package/dist/i18n/en/Employee.Dashboard.json.js +26 -24
  215. package/dist/i18n/en/Employee.Dashboard.json.js.map +1 -1
  216. package/dist/i18n/en/Employee.DocumentManager.json.js +1 -1
  217. package/dist/i18n/en/Employee.HomeAddress.Management.json.js +12 -10
  218. package/dist/i18n/en/Employee.HomeAddress.Management.json.js.map +1 -1
  219. package/dist/i18n/en/Employee.ManagementEmployeeList.json.js +32 -30
  220. package/dist/i18n/en/Employee.ManagementEmployeeList.json.js.map +1 -1
  221. package/dist/i18n/en/Employee.WorkAddress.Management.json.js +16 -14
  222. package/dist/i18n/en/Employee.WorkAddress.Management.json.js.map +1 -1
  223. package/dist/i18n/en/common.json.d.ts +21 -0
  224. package/dist/partner-hook-utils/form/fields/DatePickerHookField.js +33 -32
  225. package/dist/partner-hook-utils/form/fields/DatePickerHookField.js.map +1 -1
  226. package/dist/partner-hook-utils/types.d.ts +4 -0
  227. package/dist/shared/constants.d.ts +4 -0
  228. package/dist/shared/constants.js +20 -18
  229. package/dist/shared/constants.js.map +1 -1
  230. package/dist/style.css +1 -1
  231. package/dist/types/i18next.d.ts +45 -11
  232. package/docs/reference/endpoint-inventory.json +24 -8
  233. package/package.json +1 -1
@@ -1,264 +1,289 @@
1
- import { useRef as X, useMemo as oe, useEffect as V } from "react";
2
- import { useForm as De, useWatch as se } from "react-hook-form";
3
- import { zodResolver as Ae } from "@hookform/resolvers/zod";
4
- import { useJobsAndCompensationsGetJobs as Ie } from "@gusto/embedded-api/react-query/jobsAndCompensationsGetJobs";
5
- import { useJobsAndCompensationsCreateCompensationMutation as Ue } from "@gusto/embedded-api/react-query/jobsAndCompensationsCreateCompensation";
6
- import { useJobsAndCompensationsUpdateCompensationMutation as Re } from "@gusto/embedded-api/react-query/jobsAndCompensationsUpdateCompensation";
7
- import { useLocationsGetMinimumWages as Te } from "@gusto/embedded-api/react-query/locationsGetMinimumWages";
8
- import { useEmployeeAddressesGetWorkAddresses as je } from "@gusto/embedded-api/react-query/employeeAddressesGetWorkAddresses";
9
- import { useEmployeesGet as we } from "@gusto/embedded-api/react-query/employeesGet";
10
- import { createCompensationSchema as Le } from "./compensationSchema.js";
11
- import { EffectiveDateField as _e, MinimumWageIdField as Xe, AdjustForMinimumWageField as Ve, PaymentUnitField as Je, RateField as Ye, FlsaStatusField as ke, TitleField as qe } from "./fields.js";
12
- import { withOptions as J } from "../../../../../partner-hook-utils/form/withOptions.js";
13
- import { createGetFormSubmissionValues as He } from "../../../../../partner-hook-utils/form/getFormSubmissionValues.js";
14
- import { useDeriveFieldsMetadata as Be } from "../../../../../partner-hook-utils/form/useDeriveFieldsMetadata.js";
15
- import { useHookFormInternals as Ge } from "../../../../../partner-hook-utils/form/useHookFormInternals.js";
16
- import { composeErrorHandler as Ke } from "../../../../../partner-hook-utils/composeErrorHandler.js";
17
- import { PAY_PERIODS as d, FlsaStatus as t, TIP_CREDITS_UNSUPPORTED_STATES as Qe } from "../../../../../shared/constants.js";
18
- import { useBaseSubmit as $e } from "../../../../Base/useBaseSubmit.js";
19
- import { SDKInternalError as E } from "../../../../../types/sdkError.js";
20
- function xe(e, n, s) {
1
+ import { useRef as Y, useMemo as U, useEffect as q } from "react";
2
+ import { useForm as Ue, useWatch as ue } from "react-hook-form";
3
+ import { zodResolver as Ie } from "@hookform/resolvers/zod";
4
+ import { useJobsAndCompensationsGetJobs as Re } from "@gusto/embedded-api/react-query/jobsAndCompensationsGetJobs";
5
+ import { GetV1EmployeesEmployeeIdJobsQueryParamInclude as Te } from "@gusto/embedded-api/models/operations/getv1employeesemployeeidjobs";
6
+ import { useJobsAndCompensationsCreateCompensationMutation as we } from "@gusto/embedded-api/react-query/jobsAndCompensationsCreateCompensation";
7
+ import { useJobsAndCompensationsUpdateCompensationMutation as je } from "@gusto/embedded-api/react-query/jobsAndCompensationsUpdateCompensation";
8
+ import { useLocationsGetMinimumWages as Le } from "@gusto/embedded-api/react-query/locationsGetMinimumWages";
9
+ import { useEmployeeAddressesGetWorkAddresses as _e } from "@gusto/embedded-api/react-query/employeeAddressesGetWorkAddresses";
10
+ import { useEmployeesGet as Je } from "@gusto/embedded-api/react-query/employeesGet";
11
+ import { createCompensationSchema as Ve } from "./compensationSchema.js";
12
+ import { EffectiveDateField as Xe, MinimumWageIdField as ke, AdjustForMinimumWageField as Ye, PaymentUnitField as qe, RateField as He, FlsaStatusField as Be, TitleField as Ge } from "./fields.js";
13
+ import { withOptions as H } from "../../../../../partner-hook-utils/form/withOptions.js";
14
+ import { createGetFormSubmissionValues as Qe } from "../../../../../partner-hook-utils/form/getFormSubmissionValues.js";
15
+ import { useDeriveFieldsMetadata as Ke } from "../../../../../partner-hook-utils/form/useDeriveFieldsMetadata.js";
16
+ import { useHookFormInternals as $e } from "../../../../../partner-hook-utils/form/useHookFormInternals.js";
17
+ import { composeErrorHandler as xe } from "../../../../../partner-hook-utils/composeErrorHandler.js";
18
+ import { FlsaStatus as i, PAY_PERIODS as p, TIP_CREDITS_UNSUPPORTED_STATES as ze } from "../../../../../shared/constants.js";
19
+ import { useBaseSubmit as Ze } from "../../../../Base/useBaseSubmit.js";
20
+ import { SDKInternalError as M } from "../../../../../types/sdkError.js";
21
+ import { formatDateToStringDate as et, addDays as tt } from "../../../../../helpers/dateFormatting.js";
22
+ function nt(e, o, n) {
21
23
  if (!e) return { compensation: null, job: null };
22
- if (n) {
23
- for (const i of e) {
24
- const a = i.compensations?.find((C) => C.uuid === n);
25
- if (a) return { compensation: a, job: i };
24
+ if (o) {
25
+ for (const a of e) {
26
+ const W = a.compensations?.find((I) => I.uuid === o);
27
+ if (W) return { compensation: W, job: a };
26
28
  }
27
- return { compensation: null, job: null };
29
+ return { compensation: null, job: n ? e.find((a) => a.uuid === n) ?? null : null };
28
30
  }
29
- return s ? { compensation: null, job: e.find((i) => i.uuid === s) ?? null } : { compensation: null, job: null };
31
+ return n ? { compensation: null, job: e.find((r) => r.uuid === n) ?? null } : { compensation: null, job: null };
30
32
  }
31
- function ze(e) {
33
+ function it(e) {
32
34
  if (!e) return null;
33
- for (const n of e) {
34
- if (!n.primary) continue;
35
- const s = n.compensations?.find((i) => i.uuid === n.currentCompensationUuid);
36
- if (s?.flsaStatus) return s.flsaStatus;
35
+ for (const o of e) {
36
+ if (!o.primary) continue;
37
+ const n = o.compensations?.find((r) => r.uuid === o.currentCompensationUuid);
38
+ if (n?.flsaStatus) return n.flsaStatus;
37
39
  }
38
40
  return null;
39
41
  }
40
- function Ze(e) {
42
+ function ot(e) {
41
43
  if (!e?.compensations) return [];
42
- const n = re();
43
- return e.compensations.filter((s) => s.effectiveDate !== void 0 && s.effectiveDate > n);
44
+ const o = ce();
45
+ return e.compensations.filter((n) => n.effectiveDate !== void 0 && n.effectiveDate > o);
44
46
  }
45
- function et(e) {
46
- return e.length === 0 ? null : e.reduce((n, s) => {
47
- const i = s.effectiveDate;
48
- return i && (!n || i < n) ? i : n;
47
+ function st(e) {
48
+ return e.length === 0 ? null : e.reduce((o, n) => {
49
+ const r = n.effectiveDate;
50
+ return r && (!o || r < o) ? r : o;
49
51
  }, null);
50
52
  }
51
- const ie = [
52
- t.EXEMPT,
53
- t.SALARIED_NONEXEMPT,
54
- t.NONEXEMPT,
55
- t.OWNER,
56
- t.COMMISSION_ONLY_EXEMPT,
57
- t.COMMISSION_ONLY_NONEXEMPT
58
- ], tt = ie.map((e) => ({ value: e, label: e })), ae = [
59
- d.HOUR,
60
- d.WEEK,
61
- d.MONTH,
62
- d.YEAR,
63
- d.PAYCHECK
64
- ], nt = ae.map((e) => ({ value: e, label: e }));
65
- function re() {
53
+ const me = [
54
+ i.EXEMPT,
55
+ i.SALARIED_NONEXEMPT,
56
+ i.NONEXEMPT,
57
+ i.OWNER,
58
+ i.COMMISSION_ONLY_EXEMPT,
59
+ i.COMMISSION_ONLY_NONEXEMPT
60
+ ], at = me.map((e) => ({ value: e, label: e })), le = [
61
+ p.HOUR,
62
+ p.WEEK,
63
+ p.MONTH,
64
+ p.YEAR,
65
+ p.PAYCHECK
66
+ ], rt = le.map((e) => ({ value: e, label: e }));
67
+ function ce() {
66
68
  return (/* @__PURE__ */ new Date()).toISOString().split("T")[0];
67
69
  }
68
- function ht({
70
+ function Tt({
69
71
  employeeId: e,
70
- jobId: n,
71
- compensationId: s,
72
- optionalFieldsToRequire: i,
72
+ jobId: o,
73
+ compensationId: n,
74
+ optionalFieldsToRequire: r,
73
75
  defaultValues: a,
74
- validationMode: C = "onSubmit",
75
- shouldFocusError: ue = !0,
76
- withEffectiveDateField: O = !0
76
+ validationMode: W = "onSubmit",
77
+ shouldFocusError: I = !0,
78
+ withEffectiveDateField: E = !0
77
79
  }) {
78
- const P = Ie(
79
- { employeeId: e ?? "" },
80
+ const R = Re(
81
+ {
82
+ employeeId: e ?? "",
83
+ // Fetch all effective-dated compensations when editing an existing one so
84
+ // resolveCompAndJob can find the target comp (future-dated comps are
85
+ // omitted from the default response, which only returns the current comp).
86
+ include: n ? Te.AllCompensations : void 0
87
+ },
80
88
  { enabled: !!e }
81
- ), D = je(
89
+ ), T = _e(
82
90
  { employeeId: e ?? "" },
83
91
  { enabled: !!e }
84
- ), A = we({ employeeId: e ?? "" }, { enabled: !!e }), l = P.data?.jobs, Y = D.data?.employeeWorkAddressesList?.find((o) => o.active), k = Y?.locationUuid, me = A.data?.employee, I = Te(
85
- { locationUuid: k ?? "" },
86
- { enabled: !!k }
87
- ), y = I.data?.minimumWageList ?? [], { compensation: r, job: p } = xe(
88
- l,
89
- s,
90
- n
91
- ), ce = l && p ? l.filter((o) => o.uuid !== p.uuid).length : 0, U = X(null);
92
- U.current === null && l !== void 0 && (U.current = l.some((o) => o.primary));
93
- const W = U.current === !0 ? ze(l) : null, R = p?.hireDate ?? null, q = Ze(p), de = q.length > 0, le = et(q), F = !s, T = F ? "create" : "update", j = F && W === t.NONEXEMPT, [H, fe] = oe(
94
- () => Le({
95
- mode: T,
96
- optionalFieldsToRequire: i,
97
- hireDate: R,
98
- withEffectiveDateField: O
92
+ ), w = Je({ employeeId: e ?? "" }, { enabled: !!e }), f = R.data?.jobs, B = T.data?.employeeWorkAddressesList?.find((t) => t.active), G = B?.locationUuid, de = w.data?.employee, j = Le(
93
+ { locationUuid: G ?? "" },
94
+ { enabled: !!G }
95
+ ), C = j.data?.minimumWageList ?? [], { compensation: u, job: s } = nt(
96
+ f,
97
+ n,
98
+ o
99
+ ), fe = f && s ? f.filter((t) => t.uuid !== s.uuid).length : 0, L = Y(null);
100
+ L.current === null && f !== void 0 && (L.current = f.some((t) => t.primary));
101
+ const N = L.current === !0 ? it(f) : null, F = s?.hireDate ?? // Secondary jobs being created (AddAnotherJob) have no hireDate until the
102
+ // job POST completes. Fall back to the primary job's hireDate so the schema
103
+ // can enforce EFFECTIVE_DATE_BEFORE_HIRE during that window.
104
+ f?.find((t) => t.primary)?.hireDate ?? null, Q = ot(s).filter(
105
+ (t) => t.uuid !== n
106
+ ), pe = Q.length > 0, K = st(Q), d = !n, _ = d ? "create" : "update", J = d && N === i.NONEXEMPT && s?.primary !== !0, h = U(() => {
107
+ if (E && !(!d && s?.primary === !0))
108
+ return et(tt(/* @__PURE__ */ new Date(), 1)) ?? void 0;
109
+ }, [d, s?.primary, E]), [$, ve] = U(
110
+ () => Ve({
111
+ mode: _,
112
+ optionalFieldsToRequire: r,
113
+ hireDate: F,
114
+ minEffectiveDate: h,
115
+ withEffectiveDateField: E
99
116
  }),
100
- [T, i, R, O]
101
- ), B = Y?.state, N = oe(
117
+ [_, r, F, h, E]
118
+ ), x = B?.state, P = U(
102
119
  () => ({
103
- title: r?.title ?? a?.title ?? "",
120
+ title: u?.title ?? s?.title ?? a?.title ?? "",
104
121
  // When adding a secondary, the FLSA must match the primary's — force it
105
122
  // here (overriding any partner default) so the form submits the right
106
123
  // value even though `Fields.FlsaStatus` is hidden.
107
- flsaStatus: j ? W : r?.flsaStatus ?? a?.flsaStatus ?? W ?? void 0,
108
- rate: Number(r?.rate ?? a?.rate ?? 0),
109
- adjustForMinimumWage: r?.adjustForMinimumWage ?? a?.adjustForMinimumWage ?? !1,
110
- minimumWageId: r?.minimumWages?.[0]?.uuid ?? a?.minimumWageId ?? "",
111
- paymentUnit: r?.paymentUnit ?? a?.paymentUnit ?? d.HOUR,
112
- effectiveDate: r?.effectiveDate ?? a?.effectiveDate ?? null
124
+ flsaStatus: J ? N : u?.flsaStatus ?? a?.flsaStatus ?? N ?? void 0,
125
+ rate: Number(u?.rate ?? a?.rate ?? 0),
126
+ adjustForMinimumWage: u?.adjustForMinimumWage ?? a?.adjustForMinimumWage ?? !1,
127
+ minimumWageId: u?.minimumWages?.[0]?.uuid ?? a?.minimumWageId ?? "",
128
+ paymentUnit: u?.paymentUnit ?? a?.paymentUnit ?? p.HOUR,
129
+ effectiveDate: u?.effectiveDate ?? a?.effectiveDate ?? null
113
130
  }),
114
- [r, a, W, j]
115
- ), M = De({
116
- resolver: Ae(H),
117
- mode: C,
118
- shouldFocusError: ue,
119
- defaultValues: N,
120
- values: N,
131
+ [u, s, a, N, J]
132
+ ), S = Ue({
133
+ resolver: Ie($),
134
+ mode: W,
135
+ shouldFocusError: I,
136
+ defaultValues: P,
137
+ values: P,
121
138
  resetOptions: { keepDirtyValues: !0 }
122
- }), { control: G, getValues: S, setValue: u } = M, m = se({ control: G, name: "flsaStatus" }), pe = se({
123
- control: G,
139
+ }), { control: z, getValues: g, setValue: m } = S, l = ue({ control: z, name: "flsaStatus" }), Ee = ue({
140
+ control: z,
124
141
  name: "adjustForMinimumWage"
125
142
  });
126
- V(() => {
127
- m === t.OWNER ? u("paymentUnit", d.PAYCHECK) : m === t.COMMISSION_ONLY_NONEXEMPT || m === t.COMMISSION_ONLY_EXEMPT ? (u("paymentUnit", d.YEAR), u("rate", 0)) : u("paymentUnit", N.paymentUnit);
128
- }, [m, u, N.paymentUnit]);
129
- const Ee = r?.flsaStatus, v = !F && Ee === t.NONEXEMPT && m !== void 0 && m !== t.NONEXEMPT && ce > 0, h = X(!1), w = X(null);
130
- V(() => {
131
- v && !h.current ? (w.current = S("effectiveDate") ?? null, u("effectiveDate", re(), { shouldDirty: !0, shouldValidate: !1 }), h.current = !0) : !v && h.current && (u("effectiveDate", w.current ?? null, {
143
+ q(() => {
144
+ l === i.OWNER ? m("paymentUnit", p.PAYCHECK) : l === i.COMMISSION_ONLY_NONEXEMPT || l === i.COMMISSION_ONLY_EXEMPT ? (m("paymentUnit", p.YEAR), m("rate", 0)) : m("paymentUnit", P.paymentUnit);
145
+ }, [l, m, P.paymentUnit]);
146
+ const Me = s ? s.compensations?.find((t) => t.uuid === s.currentCompensationUuid) : void 0, b = (u?.flsaStatus ?? Me?.flsaStatus ?? null) === i.NONEXEMPT && l !== void 0 && l !== i.NONEXEMPT && fe > 0, A = Y(!1), V = Y(null);
147
+ q(() => {
148
+ !d && b && !A.current ? (V.current = g("effectiveDate") ?? null, m("effectiveDate", ce(), { shouldDirty: !0, shouldValidate: !1 }), A.current = !0) : !d && !b && A.current && (m("effectiveDate", V.current ?? null, {
132
149
  shouldDirty: !0,
133
150
  shouldValidate: !1
134
- }), w.current = null, h.current = !1);
135
- }, [v, S, u]);
136
- const K = Re(), Q = Ue(), Me = K.isPending || Q.isPending, {
137
- baseSubmitHandler: Se,
138
- error: ve,
139
- setError: ge
140
- } = $e("CompensationForm"), $ = Ke(e ? [P, D, A, I] : [], { submitError: ve, setSubmitError: ge }), x = m === t.COMMISSION_ONLY_NONEXEMPT || m === t.COMMISSION_ONLY_EXEMPT, be = m === t.OWNER, Oe = !j && (m !== t.NONEXEMPT || p?.primary === !0 || F), g = m === t.NONEXEMPT && y.length > 0 && B !== void 0 && !Qe.includes(B);
141
- V(() => {
142
- g || (S("adjustForMinimumWage") && u("adjustForMinimumWage", !1, { shouldDirty: !0, shouldValidate: !1 }), S("minimumWageId") && u("minimumWageId", "", { shouldDirty: !0, shouldValidate: !1 }));
143
- }, [g, S, u]);
144
- const ye = y.map((o) => ({
145
- value: o.uuid,
146
- label: `${o.wage} - ${o.authority}: ${o.notes ?? ""}`
147
- })), f = Be(fe, M.control), We = {
148
- title: f.title,
149
- effectiveDate: { ...f.effectiveDate, isDisabled: v },
150
- flsaStatus: J(
151
- f.flsaStatus,
152
- tt,
153
- ie
151
+ }), V.current = null, A.current = !1);
152
+ }, [d, b, g, m]);
153
+ const Z = je(), ee = we(), Se = Z.isPending || ee.isPending, {
154
+ baseSubmitHandler: ge,
155
+ error: be,
156
+ setError: ye
157
+ } = Ze("CompensationForm"), te = xe(e ? [R, T, w, j] : [], { submitError: be, setSubmitError: ye }), ne = l === i.COMMISSION_ONLY_NONEXEMPT || l === i.COMMISSION_ONLY_EXEMPT, Oe = l === i.OWNER, De = !J && (l !== i.NONEXEMPT || s?.primary === !0 || d), y = l === i.NONEXEMPT && C.length > 0 && x !== void 0 && !ze.includes(x);
158
+ q(() => {
159
+ y || (g("adjustForMinimumWage") && m("adjustForMinimumWage", !1, { shouldDirty: !0, shouldValidate: !1 }), g("minimumWageId") && m("minimumWageId", "", { shouldDirty: !0, shouldValidate: !1 }));
160
+ }, [y, g, m]);
161
+ const We = C.map((t) => ({
162
+ value: t.uuid,
163
+ label: `${t.wage} - ${t.authority}: ${t.notes ?? ""}`
164
+ })), v = Ke(ve, S.control), ie = U(
165
+ () => [h, F].filter((t) => !!t).reduce((t, O) => !t || O > t ? O : t, null),
166
+ [h, F]
167
+ ), Ce = {
168
+ title: v.title,
169
+ effectiveDate: {
170
+ ...v.effectiveDate,
171
+ isDisabled: b && !d,
172
+ minDate: ie,
173
+ maxDate: K
174
+ },
175
+ flsaStatus: H(
176
+ v.flsaStatus,
177
+ at,
178
+ me
154
179
  ),
155
- rate: { ...f.rate, isDisabled: x },
156
- paymentUnit: J(
157
- { ...f.paymentUnit, isDisabled: be || x },
158
- nt,
159
- ae
180
+ rate: { ...v.rate, isDisabled: ne },
181
+ paymentUnit: H(
182
+ { ...v.paymentUnit, isDisabled: Oe || ne },
183
+ rt,
184
+ le
160
185
  ),
161
186
  adjustForMinimumWage: {
162
- ...f.adjustForMinimumWage,
163
- isDisabled: !g
187
+ ...v.adjustForMinimumWage,
188
+ isDisabled: !y
164
189
  },
165
- minimumWageId: J(
166
- f.minimumWageId,
167
- ye,
168
- y
190
+ minimumWageId: H(
191
+ v.minimumWageId,
192
+ We,
193
+ C
169
194
  )
170
- }, Fe = async (o) => {
171
- let z;
172
- return await new Promise((Z) => {
173
- M.handleSubmit(
174
- async (Ce) => {
175
- await Se(Ce, async (c) => {
176
- const ee = o?.jobId ?? n, L = o?.compensationId ?? s, te = L ? "update" : "create", Pe = O ? o?.effectiveDate ?? c.effectiveDate ?? void 0 : o?.effectiveDate ?? void 0, ne = {
195
+ }, Ne = async (t) => {
196
+ let O;
197
+ return await new Promise((oe) => {
198
+ S.handleSubmit(
199
+ async (Pe) => {
200
+ await ge(Pe, async (c) => {
201
+ const se = t?.jobId ?? o, X = t?.compensationId ?? n, ae = X ? "update" : "create", Ae = E ? t?.effectiveDate ?? c.effectiveDate ?? void 0 : t?.effectiveDate ?? void 0, re = {
177
202
  rate: String(c.rate),
178
203
  paymentUnit: c.paymentUnit,
179
204
  flsaStatus: c.flsaStatus,
180
- effectiveDate: Pe,
205
+ effectiveDate: Ae,
181
206
  title: c.title || void 0,
182
207
  adjustForMinimumWage: c.adjustForMinimumWage,
183
208
  minimumWages: c.adjustForMinimumWage ? [{ uuid: c.minimumWageId }] : []
184
209
  };
185
- let b;
186
- if (te === "create") {
187
- if (!ee)
188
- throw new E(
210
+ let D;
211
+ if (ae === "create") {
212
+ if (!se)
213
+ throw new M(
189
214
  "jobId is required to create a compensation. Pass it as a hook prop or via submit options."
190
215
  );
191
216
  if (!c.flsaStatus)
192
- throw new E("flsaStatus is required to create a compensation.");
193
- if (b = (await Q.mutateAsync({
217
+ throw new M("flsaStatus is required to create a compensation.");
218
+ if (D = (await ee.mutateAsync({
194
219
  request: {
195
- jobId: ee,
196
- compensationsRequestBody: { ...ne, flsaStatus: c.flsaStatus }
220
+ jobId: se,
221
+ compensationsRequestBody: { ...re, flsaStatus: c.flsaStatus }
197
222
  }
198
- })).compensation, !b) throw new E("Compensation creation failed");
223
+ })).compensation, !D) throw new M("Compensation creation failed");
199
224
  } else {
200
- if (!L)
201
- throw new E(
225
+ if (!X)
226
+ throw new M(
202
227
  "compensationId is required to update a compensation. Pass it as a hook prop or via submit options."
203
228
  );
204
- const _ = o?.compensationVersion ?? r?.version;
205
- if (!_)
206
- throw new E(
229
+ const k = t?.compensationVersion ?? u?.version;
230
+ if (!k)
231
+ throw new M(
207
232
  "compensation version is required to update a compensation. Pass it via submit options when threading post-create, or ensure the compensation is loaded."
208
233
  );
209
- if (b = (await K.mutateAsync({
234
+ if (D = (await Z.mutateAsync({
210
235
  request: {
211
- compensationId: L,
236
+ compensationId: X,
212
237
  compensationsUpdateRequestBody: {
213
- version: _,
214
- ...ne
238
+ version: k,
239
+ ...re
215
240
  }
216
241
  }
217
- })).compensation, !b) throw new E("Compensation update failed");
242
+ })).compensation, !D) throw new M("Compensation update failed");
218
243
  }
219
- z = { mode: te, data: b };
220
- }), Z();
244
+ O = { mode: ae, data: D };
245
+ }), oe();
221
246
  },
222
247
  () => {
223
- Z();
248
+ oe();
224
249
  }
225
250
  )();
226
- }), z;
227
- }, Ne = e ? P.isLoading || D.isLoading || A.isLoading || I.isLoading : !1, he = Ge(M);
228
- return Ne || e && (!l || !me) ? { isLoading: !0, errorHandling: $ } : {
251
+ }), O;
252
+ }, Fe = e ? R.isLoading || T.isLoading || w.isLoading || j.isLoading : !1, he = $e(S);
253
+ return Fe || e && (!f || !de) ? { isLoading: !0, errorHandling: te } : {
229
254
  isLoading: !1,
230
255
  data: {
231
- compensation: r,
232
- currentJob: p,
233
- minimumWages: y,
234
- minimumEffectiveDate: R,
235
- maximumEffectiveDate: le,
236
- hasPendingFutureCompensation: de
256
+ compensation: u,
257
+ currentJob: s,
258
+ minimumWages: C,
259
+ minimumEffectiveDate: ie,
260
+ maximumEffectiveDate: K,
261
+ hasPendingFutureCompensation: pe
237
262
  },
238
263
  status: {
239
- isPending: Me,
240
- mode: T,
241
- willDeleteSecondaryJobs: v
264
+ isPending: Se,
265
+ mode: _,
266
+ willDeleteSecondaryJobs: b
242
267
  },
243
- actions: { onSubmit: Fe },
244
- errorHandling: $,
268
+ actions: { onSubmit: Ne },
269
+ errorHandling: te,
245
270
  form: {
246
271
  Fields: {
247
- Title: qe,
248
- FlsaStatus: Oe ? ke : void 0,
249
- Rate: Ye,
250
- PaymentUnit: Je,
251
- AdjustForMinimumWage: g ? Ve : void 0,
252
- MinimumWageId: g && pe ? Xe : void 0,
253
- EffectiveDate: O ? _e : void 0
272
+ Title: Ge,
273
+ FlsaStatus: De ? Be : void 0,
274
+ Rate: He,
275
+ PaymentUnit: qe,
276
+ AdjustForMinimumWage: y ? Ye : void 0,
277
+ MinimumWageId: y && Ee ? ke : void 0,
278
+ EffectiveDate: E ? Xe : void 0
254
279
  },
255
- fieldsMetadata: We,
280
+ fieldsMetadata: Ce,
256
281
  hookFormInternals: he,
257
- getFormSubmissionValues: He(M, H)
282
+ getFormSubmissionValues: Qe(S, $)
258
283
  }
259
284
  };
260
285
  }
261
286
  export {
262
- ht as useCompensationForm
287
+ Tt as useCompensationForm
263
288
  };
264
289
  //# sourceMappingURL=useCompensationForm.js.map