@gusto/embedded-react-sdk 0.56.1 → 0.56.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.
Files changed (612) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/dist/components/Common/FieldCaption/FieldCaption.js +18 -24
  3. package/dist/components/Common/FieldCaption/FieldCaption.js.map +1 -1
  4. package/dist/components/Common/FieldCaption/FieldCaption.module.scss.js +3 -5
  5. package/dist/components/Common/FieldCaption/FieldCaption.module.scss.js.map +1 -1
  6. package/dist/components/Common/PaginationControl/PaginationControl.js +66 -62
  7. package/dist/components/Common/PaginationControl/PaginationControl.js.map +1 -1
  8. package/dist/components/Company/PaySchedule/management/PaySchedule.js +60 -0
  9. package/dist/components/Company/PaySchedule/management/PaySchedule.js.map +1 -0
  10. package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/AssignmentReviewStepPresentation.js +67 -0
  11. package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/AssignmentReviewStepPresentation.js.map +1 -0
  12. package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/AssignmentScheduleStepPresentation.js +59 -0
  13. package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/AssignmentScheduleStepPresentation.js.map +1 -0
  14. package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/AssignmentTypeStepPresentation.js +57 -0
  15. package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/AssignmentTypeStepPresentation.js.map +1 -0
  16. package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/PayScheduleAssignment.js +46 -0
  17. package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/PayScheduleAssignment.js.map +1 -0
  18. package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/PayScheduleAssignmentComponents.js +101 -0
  19. package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/PayScheduleAssignmentComponents.js.map +1 -0
  20. package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/payScheduleAssignmentStateMachine.js +81 -0
  21. package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/payScheduleAssignmentStateMachine.js.map +1 -0
  22. package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/stripNullAssignmentPreviewFields.js +18 -0
  23. package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/stripNullAssignmentPreviewFields.js.map +1 -0
  24. package/dist/components/Company/PaySchedule/management/PayScheduleManagementComponents.js +56 -0
  25. package/dist/components/Company/PaySchedule/management/PayScheduleManagementComponents.js.map +1 -0
  26. package/dist/components/Company/PaySchedule/management/PayScheduleOverview.js +34 -0
  27. package/dist/components/Company/PaySchedule/management/PayScheduleOverview.js.map +1 -0
  28. package/dist/components/Company/PaySchedule/management/PayScheduleOverviewPresentation.js +77 -0
  29. package/dist/components/Company/PaySchedule/management/PayScheduleOverviewPresentation.js.map +1 -0
  30. package/dist/components/Company/PaySchedule/management/PayScheduleOverviewPresentation.module.scss.js +10 -0
  31. package/dist/components/Company/PaySchedule/management/PayScheduleOverviewPresentation.module.scss.js.map +1 -0
  32. package/dist/components/Company/PaySchedule/management/payScheduleManagementStateMachine.js +66 -0
  33. package/dist/components/Company/PaySchedule/management/payScheduleManagementStateMachine.js.map +1 -0
  34. package/dist/components/Company/StateTaxes/StateTaxesForm/StateTaxesForm.js +75 -57
  35. package/dist/components/Company/StateTaxes/StateTaxesForm/StateTaxesForm.js.map +1 -1
  36. package/dist/components/Company/StateTaxes/shared/requirementSetError.js +15 -0
  37. package/dist/components/Company/StateTaxes/shared/requirementSetError.js.map +1 -0
  38. package/dist/components/Company/exports/companyManagement.js +7 -0
  39. package/dist/components/Company/exports/companyManagement.js.map +1 -0
  40. package/dist/components/Payroll/GrossUpModal/GrossUpModal.js +24 -24
  41. package/dist/components/Payroll/GrossUpModal/GrossUpModal.js.map +1 -1
  42. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerList.js +51 -58
  43. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerList.js.map +1 -1
  44. package/dist/components/Payroll/PayrollBlocker/payrollHelpers.js +12 -7
  45. package/dist/components/Payroll/PayrollBlocker/payrollHelpers.js.map +1 -1
  46. package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js +87 -85
  47. package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js.map +1 -1
  48. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js +1 -1
  49. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js.map +1 -1
  50. package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.js +55 -54
  51. package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.js.map +1 -1
  52. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.js +81 -67
  53. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.js.map +1 -1
  54. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js +129 -125
  55. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js.map +1 -1
  56. package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js +30 -27
  57. package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js.map +1 -1
  58. package/dist/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/fields.js +41 -30
  59. package/dist/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/fields.js.map +1 -1
  60. package/dist/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/payrollEditEmployeeHelpers.js.map +1 -1
  61. package/dist/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/usePayrollEditEmployeeForm.js +159 -152
  62. package/dist/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/usePayrollEditEmployeeForm.js.map +1 -1
  63. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js +61 -59
  64. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js.map +1 -1
  65. package/dist/components/Payroll/PayrollLanding/PayrollLandingFlowComponents.js +32 -31
  66. package/dist/components/Payroll/PayrollLanding/PayrollLandingFlowComponents.js.map +1 -1
  67. package/dist/components/Payroll/PayrollList/PayrollList.js +16 -16
  68. package/dist/components/Payroll/PayrollList/PayrollList.js.map +1 -1
  69. package/dist/components/Payroll/PayrollList/PayrollListPresentation.js.map +1 -1
  70. package/dist/components/Payroll/PayrollOverview/PayrollOverview.js +61 -61
  71. package/dist/components/Payroll/PayrollOverview/PayrollOverview.js.map +1 -1
  72. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js +192 -193
  73. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js.map +1 -1
  74. package/dist/components/Payroll/Transition/TransitionFlow.js +27 -22
  75. package/dist/components/Payroll/Transition/TransitionFlow.js.map +1 -1
  76. package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlert.js +55 -53
  77. package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlert.js.map +1 -1
  78. package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlertPresentation.js +44 -41
  79. package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlertPresentation.js.map +1 -1
  80. package/dist/components/Payroll/UNSTABLE_PayrollEditEmployee/UNSTABLE_PayrollEditEmployee.js +48 -47
  81. package/dist/components/Payroll/UNSTABLE_PayrollEditEmployee/UNSTABLE_PayrollEditEmployee.js.map +1 -1
  82. package/dist/components/Payroll/helpers.js +72 -67
  83. package/dist/components/Payroll/helpers.js.map +1 -1
  84. package/dist/components/Payroll/usePreparedPayrollData.js +37 -28
  85. package/dist/components/Payroll/usePreparedPayrollData.js.map +1 -1
  86. package/dist/contexts/ApiProvider/ApiProvider.js +23 -22
  87. package/dist/contexts/ApiProvider/ApiProvider.js.map +1 -1
  88. package/dist/contexts/ApiProvider/informationRequestEnumHook.js +30 -0
  89. package/dist/contexts/ApiProvider/informationRequestEnumHook.js.map +1 -0
  90. package/dist/contexts/UnstableFeaturesProvider/useUnstableFeature.js.map +1 -1
  91. package/dist/helpers/dateFormatting.js.map +1 -1
  92. package/dist/helpers/formattedStrings.js +9 -8
  93. package/dist/helpers/formattedStrings.js.map +1 -1
  94. package/dist/i18n/I18n.js +2 -0
  95. package/dist/i18n/I18n.js.map +1 -1
  96. package/dist/i18n/en/Company.Management.PaySchedule.json.js +24 -0
  97. package/dist/i18n/en/Company.Management.PaySchedule.json.js.map +1 -0
  98. package/dist/i18n/en/Company.Management.PayScheduleAssignment.json.js +18 -0
  99. package/dist/i18n/en/Company.Management.PayScheduleAssignment.json.js.map +1 -0
  100. package/dist/i18n/en/Company.StateTaxes.json.js +1 -1
  101. package/dist/i18n/en/Payroll.GrossUpModal.json.js +12 -14
  102. package/dist/i18n/en/Payroll.GrossUpModal.json.js.map +1 -1
  103. package/dist/i18n/en/Payroll.PayrollOverview.json.js +1 -1
  104. package/dist/i18n/en/Payroll.UNSTABLE_PayrollEditEmployee.json.js +52 -50
  105. package/dist/i18n/en/Payroll.UNSTABLE_PayrollEditEmployee.json.js.map +1 -1
  106. package/dist/i18n/en/common.json.js +36 -38
  107. package/dist/i18n/en/common.json.js.map +1 -1
  108. package/dist/index.js +137 -135
  109. package/dist/index.js.map +1 -1
  110. package/dist/package.json.js +1 -1
  111. package/dist/shared/constants.js +39 -31
  112. package/dist/shared/constants.js.map +1 -1
  113. package/dist/src/components/Common/ActionsLayout/ActionsLayout.d.ts +1 -1
  114. package/dist/src/components/Common/Alert/Alert.d.ts +1 -1
  115. package/dist/src/components/Common/DataView/DataCards/DataCards.d.ts +1 -1
  116. package/dist/src/components/Common/DataView/DataTable/DataTable.d.ts +1 -1
  117. package/dist/src/components/Common/DataView/DataView.d.ts +1 -1
  118. package/dist/src/components/Common/DateRangeFilter/DateRangeFilter.d.ts +1 -1
  119. package/dist/src/components/Common/DetailViewLayout/DetailViewLayout.d.ts +1 -1
  120. package/dist/src/components/Common/DocumentList/DocumentList.d.ts +1 -1
  121. package/dist/src/components/Common/DocumentViewer/DocumentViewer.d.ts +1 -1
  122. package/dist/src/components/Common/EmptyData/EmptyData.d.ts +1 -1
  123. package/dist/src/components/Common/FieldCaption/FieldCaption.d.ts +1 -1
  124. package/dist/src/components/Common/FieldErrorMessage/FieldErrorMessage.d.ts +1 -1
  125. package/dist/src/components/Common/Fields/CheckboxGroupField/CheckboxGroupField.d.ts +1 -1
  126. package/dist/src/components/Common/Fields/ComboBoxField/ComboBoxField.d.ts +1 -1
  127. package/dist/src/components/Common/Fields/PercentageField/PercentageField.d.ts +1 -1
  128. package/dist/src/components/Common/Fields/RadioGroupField/RadioGroupField.d.ts +1 -1
  129. package/dist/src/components/Common/Fields/SelectField/SelectField.d.ts +1 -1
  130. package/dist/src/components/Common/Fields/hooks/FieldElementRegistryProvider.d.ts +1 -1
  131. package/dist/src/components/Common/Flex/Flex.d.ts +2 -2
  132. package/dist/src/components/Common/FlowBreadcrumbs/FlowBreadcrumbs.d.ts +1 -1
  133. package/dist/src/components/Common/Form/Form.d.ts +1 -1
  134. package/dist/src/components/Common/Grid/Grid.d.ts +1 -1
  135. package/dist/src/components/Common/HamburgerMenu/HamburgerMenu.d.ts +1 -1
  136. package/dist/src/components/Common/InlineSpinner/InlineSpinner.d.ts +1 -1
  137. package/dist/src/components/Common/InternalError/InternalError.d.ts +1 -1
  138. package/dist/src/components/Common/Loading/Loading.d.ts +1 -1
  139. package/dist/src/components/Common/OnboardingStatusBadge/index.d.ts +3 -3
  140. package/dist/src/components/Common/PaginationControl/PaginationControl.d.ts +1 -1
  141. package/dist/src/components/Common/PayrollLoading/PayrollLoading.d.ts +1 -1
  142. package/dist/src/components/Common/ReorderableList/ReorderableList.d.ts +1 -1
  143. package/dist/src/components/Common/RequirementsList/RequirementsList.d.ts +1 -1
  144. package/dist/src/components/Common/TaxInputs/TaxInputs.d.ts +7 -7
  145. package/dist/src/components/Common/Toast/Toast.d.ts +1 -1
  146. package/dist/src/components/Common/UI/Alert/Alert.d.ts +1 -1
  147. package/dist/src/components/Common/UI/Box/Box.d.ts +1 -1
  148. package/dist/src/components/Common/UI/BoxHeader/BoxHeader.d.ts +1 -1
  149. package/dist/src/components/Common/UI/Breadcrumbs/Breadcrumbs.d.ts +1 -1
  150. package/dist/src/components/Common/UI/Button/Button.d.ts +1 -1
  151. package/dist/src/components/Common/UI/Button/ButtonIcon.d.ts +1 -1
  152. package/dist/src/components/Common/UI/CalendarPreview/CalendarLegend.d.ts +1 -1
  153. package/dist/src/components/Common/UI/CalendarPreview/CalendarPreview.d.ts +1 -1
  154. package/dist/src/components/Common/UI/Card/Card.d.ts +1 -1
  155. package/dist/src/components/Common/UI/Checkbox/Checkbox.d.ts +1 -1
  156. package/dist/src/components/Common/UI/ComboBox/ComboBox.d.ts +1 -1
  157. package/dist/src/components/Common/UI/DatePicker/DatePicker.d.ts +1 -1
  158. package/dist/src/components/Common/UI/DateRangePicker/DateRangePicker.d.ts +1 -1
  159. package/dist/src/components/Common/UI/DescriptionList/DescriptionList.d.ts +1 -1
  160. package/dist/src/components/Common/UI/Dialog/Dialog.d.ts +1 -1
  161. package/dist/src/components/Common/UI/FileInput/FileInput.d.ts +1 -1
  162. package/dist/src/components/Common/UI/FormBox/FormBox.d.ts +1 -1
  163. package/dist/src/components/Common/UI/FormBoxHeader/FormBoxHeader.d.ts +1 -1
  164. package/dist/src/components/Common/UI/Heading/Heading.d.ts +1 -1
  165. package/dist/src/components/Common/UI/Input/Input.d.ts +1 -1
  166. package/dist/src/components/Common/UI/Link/Link.d.ts +1 -1
  167. package/dist/src/components/Common/UI/List/OrderedList.d.ts +1 -1
  168. package/dist/src/components/Common/UI/List/UnorderedList.d.ts +1 -1
  169. package/dist/src/components/Common/UI/Menu/Menu.d.ts +1 -1
  170. package/dist/src/components/Common/UI/Modal/Modal.d.ts +1 -1
  171. package/dist/src/components/Common/UI/MultiSelectComboBox/MultiSelectComboBox.d.ts +1 -1
  172. package/dist/src/components/Common/UI/NumberInput/NumberInput.d.ts +1 -1
  173. package/dist/src/components/Common/UI/ProgressBar/ProgressBar.d.ts +1 -1
  174. package/dist/src/components/Common/UI/Radio/Radio.d.ts +1 -1
  175. package/dist/src/components/Common/UI/Select/Select.d.ts +1 -1
  176. package/dist/src/components/Common/UI/Switch/Switch.d.ts +1 -1
  177. package/dist/src/components/Common/UI/Table/Table.d.ts +1 -1
  178. package/dist/src/components/Common/UI/Tabs/Tabs.d.ts +1 -1
  179. package/dist/src/components/Common/UI/Text/Text.d.ts +1 -1
  180. package/dist/src/components/Common/UI/TextArea/TextArea.d.ts +1 -1
  181. package/dist/src/components/Common/UI/TextInput/TextInput.d.ts +1 -1
  182. package/dist/src/components/Company/AssignSignatory/AssignSignatory.d.ts +1 -1
  183. package/dist/src/components/Company/AssignSignatory/AssignSignatorySelection.d.ts +1 -1
  184. package/dist/src/components/Company/AssignSignatory/CreateSignatory/Actions.d.ts +1 -1
  185. package/dist/src/components/Company/AssignSignatory/CreateSignatory/CreateSignatory.d.ts +1 -1
  186. package/dist/src/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.d.ts +1 -1
  187. package/dist/src/components/Company/AssignSignatory/Head.d.ts +1 -1
  188. package/dist/src/components/Company/AssignSignatory/InviteSignatory/Actions.d.ts +1 -1
  189. package/dist/src/components/Company/AssignSignatory/InviteSignatory/InviteSignatory.d.ts +1 -1
  190. package/dist/src/components/Company/AssignSignatory/InviteSignatory/InviteSignatoryForm.d.ts +1 -1
  191. package/dist/src/components/Company/AssignSignatory/SignatoryForm.d.ts +1 -1
  192. package/dist/src/components/Company/AssignSignatory/TitleSelect.d.ts +1 -1
  193. package/dist/src/components/Company/BankAccount/BankAccount.d.ts +1 -1
  194. package/dist/src/components/Company/BankAccount/BankAccountComponents.d.ts +3 -3
  195. package/dist/src/components/Company/BankAccount/BankAccountForm/Actions.d.ts +1 -1
  196. package/dist/src/components/Company/BankAccount/BankAccountForm/BankAccountForm.d.ts +1 -1
  197. package/dist/src/components/Company/BankAccount/BankAccountForm/Form.d.ts +1 -1
  198. package/dist/src/components/Company/BankAccount/BankAccountForm/Head.d.ts +1 -1
  199. package/dist/src/components/Company/BankAccount/BankAccountList/AccountView.d.ts +1 -1
  200. package/dist/src/components/Company/BankAccount/BankAccountList/Actions.d.ts +1 -1
  201. package/dist/src/components/Company/BankAccount/BankAccountList/BankAccountList.d.ts +1 -1
  202. package/dist/src/components/Company/BankAccount/BankAccountList/Head.d.ts +1 -1
  203. package/dist/src/components/Company/BankAccount/BankAccountVerify/Actions.d.ts +1 -1
  204. package/dist/src/components/Company/BankAccount/BankAccountVerify/BankAccountVerify.d.ts +1 -1
  205. package/dist/src/components/Company/BankAccount/BankAccountVerify/Form.d.ts +1 -1
  206. package/dist/src/components/Company/BankAccount/BankAccountVerify/Head.d.ts +1 -1
  207. package/dist/src/components/Company/DocumentSigner/DocumentList/Actions.d.ts +1 -1
  208. package/dist/src/components/Company/DocumentSigner/DocumentList/DocumentList.d.ts +1 -1
  209. package/dist/src/components/Company/DocumentSigner/DocumentList/Head.d.ts +1 -1
  210. package/dist/src/components/Company/DocumentSigner/DocumentList/List.d.ts +1 -1
  211. package/dist/src/components/Company/DocumentSigner/DocumentList/ManageSignatories.d.ts +1 -1
  212. package/dist/src/components/Company/DocumentSigner/DocumentSigner.d.ts +1 -1
  213. package/dist/src/components/Company/DocumentSigner/SignatureForm/SignatureForm.d.ts +1 -1
  214. package/dist/src/components/Company/DocumentSigner/documentSignerStateMachine.d.ts +3 -3
  215. package/dist/src/components/Company/DocumentSigner/shared/useSignCompanyForm/fields.d.ts +2 -2
  216. package/dist/src/components/Company/FederalTaxes/Actions.d.ts +1 -1
  217. package/dist/src/components/Company/FederalTaxes/FederalTaxes.d.ts +1 -1
  218. package/dist/src/components/Company/FederalTaxes/Form.d.ts +1 -1
  219. package/dist/src/components/Company/FederalTaxes/Head.d.ts +1 -1
  220. package/dist/src/components/Company/Industry/Actions.d.ts +1 -1
  221. package/dist/src/components/Company/Industry/Edit.d.ts +1 -1
  222. package/dist/src/components/Company/Industry/Head.d.ts +1 -1
  223. package/dist/src/components/Company/Industry/Industry.d.ts +1 -1
  224. package/dist/src/components/Company/Industry/IndustrySelect.d.ts +1 -1
  225. package/dist/src/components/Company/Locations/LocationForm/Actions.d.ts +1 -1
  226. package/dist/src/components/Company/Locations/LocationForm/Form.d.ts +1 -1
  227. package/dist/src/components/Company/Locations/LocationForm/Head.d.ts +1 -1
  228. package/dist/src/components/Company/Locations/LocationForm/LocationForm.d.ts +1 -1
  229. package/dist/src/components/Company/Locations/Locations.d.ts +1 -1
  230. package/dist/src/components/Company/Locations/LocationsList/Actions.d.ts +1 -1
  231. package/dist/src/components/Company/Locations/LocationsList/Head.d.ts +1 -1
  232. package/dist/src/components/Company/Locations/LocationsList/List.d.ts +1 -1
  233. package/dist/src/components/Company/Locations/LocationsList/LocationsList.d.ts +1 -1
  234. package/dist/src/components/Company/Locations/locationsStateMachine.d.ts +2 -2
  235. package/dist/src/components/Company/OnboardingFlow/OnboardingFlow.d.ts +1 -1
  236. package/dist/src/components/Company/OnboardingFlow/OnboardingFlowComponents.d.ts +9 -9
  237. package/dist/src/components/Company/OnboardingOverview/Completed.d.ts +1 -1
  238. package/dist/src/components/Company/OnboardingOverview/MissingRequirements.d.ts +1 -1
  239. package/dist/src/components/Company/OnboardingOverview/OnboardingOverview.d.ts +1 -1
  240. package/dist/src/components/Company/PaySchedule/PaySchedule.d.ts +1 -1
  241. package/dist/src/components/Company/PaySchedule/PayScheduleComponents.d.ts +2 -2
  242. package/dist/src/components/Company/PaySchedule/PayScheduleForm.d.ts +1 -1
  243. package/dist/src/components/Company/PaySchedule/PayScheduleList.d.ts +1 -1
  244. package/dist/src/components/Company/PaySchedule/management/PaySchedule.d.ts +24 -0
  245. package/dist/src/components/Company/PaySchedule/management/PayScheduleAssignment/AssignmentReviewStepPresentation.d.ts +10 -0
  246. package/dist/src/components/Company/PaySchedule/management/PayScheduleAssignment/AssignmentScheduleStepPresentation.d.ts +11 -0
  247. package/dist/src/components/Company/PaySchedule/management/PayScheduleAssignment/AssignmentTypeStepPresentation.d.ts +9 -0
  248. package/dist/src/components/Company/PaySchedule/management/PayScheduleAssignment/PayScheduleAssignment.d.ts +35 -0
  249. package/dist/src/components/Company/PaySchedule/management/PayScheduleAssignment/PayScheduleAssignmentComponents.d.ts +29 -0
  250. package/dist/src/components/Company/PaySchedule/management/PayScheduleAssignment/index.d.ts +1 -0
  251. package/dist/src/components/Company/PaySchedule/management/PayScheduleAssignment/payScheduleAssignmentStateMachine.d.ts +7 -0
  252. package/dist/src/components/Company/PaySchedule/management/PayScheduleAssignment/stripNullAssignmentPreviewFields.d.ts +12 -0
  253. package/dist/src/components/Company/PaySchedule/management/PayScheduleAssignment/usePayScheduleAssignment.d.ts +9 -0
  254. package/dist/src/components/Company/PaySchedule/management/PayScheduleManagementComponents.d.ts +20 -0
  255. package/dist/src/components/Company/PaySchedule/management/PayScheduleOverview.d.ts +11 -0
  256. package/dist/src/components/Company/PaySchedule/management/PayScheduleOverviewPresentation.d.ts +18 -0
  257. package/dist/src/components/Company/PaySchedule/management/index.d.ts +1 -0
  258. package/dist/src/components/Company/PaySchedule/management/payScheduleManagementStateMachine.d.ts +12 -0
  259. package/dist/src/components/Company/PaySchedule/shared/usePayScheduleForm/fields.d.ts +8 -8
  260. package/dist/src/components/Company/StateTaxes/StateTaxes.d.ts +1 -1
  261. package/dist/src/components/Company/StateTaxes/StateTaxesComponents.d.ts +3 -3
  262. package/dist/src/components/Company/StateTaxes/StateTaxesForm/Actions.d.ts +1 -1
  263. package/dist/src/components/Company/StateTaxes/StateTaxesForm/Form.d.ts +1 -1
  264. package/dist/src/components/Company/StateTaxes/StateTaxesForm/Head.d.ts +1 -1
  265. package/dist/src/components/Company/StateTaxes/StateTaxesForm/StateTaxesForm.d.ts +1 -1
  266. package/dist/src/components/Company/StateTaxes/StateTaxesList/Actions.d.ts +1 -1
  267. package/dist/src/components/Company/StateTaxes/StateTaxesList/Head.d.ts +1 -1
  268. package/dist/src/components/Company/StateTaxes/StateTaxesList/List.d.ts +1 -1
  269. package/dist/src/components/Company/StateTaxes/StateTaxesList/StateTaxesList.d.ts +1 -1
  270. package/dist/src/components/Company/StateTaxes/TaxRateManagement/AddRateAction.d.ts +1 -1
  271. package/dist/src/components/Company/StateTaxes/TaxRateManagement/AddTaxRateDialog.d.ts +1 -1
  272. package/dist/src/components/Company/StateTaxes/TaxRateManagement/TaxRateHistorySection.d.ts +1 -1
  273. package/dist/src/components/Company/StateTaxes/TaxRateManagement/TaxRateManagement.d.ts +1 -1
  274. package/dist/src/components/Company/StateTaxes/shared/RequirementFields.d.ts +1 -1
  275. package/dist/src/components/Company/StateTaxes/shared/requirementSetError.d.ts +18 -0
  276. package/dist/src/components/Company/StateTaxes/shared/requirementSetError.test.d.ts +1 -0
  277. package/dist/src/components/Company/exports/companyManagement.d.ts +2 -0
  278. package/dist/src/components/Contractor/Address/management/Address.d.ts +1 -1
  279. package/dist/src/components/Contractor/Address/management/AddressCard/AddressCard.d.ts +1 -1
  280. package/dist/src/components/Contractor/Address/management/AddressComponents.d.ts +2 -2
  281. package/dist/src/components/Contractor/Address/management/AddressEditForm.d.ts +1 -1
  282. package/dist/src/components/Contractor/Address/shared/useContractorAddressForm/fields.d.ts +5 -5
  283. package/dist/src/components/Contractor/Compensation/management/Compensation.d.ts +1 -1
  284. package/dist/src/components/Contractor/Compensation/management/CompensationCard/CompensationCard.d.ts +1 -1
  285. package/dist/src/components/Contractor/Compensation/management/CompensationComponents.d.ts +2 -2
  286. package/dist/src/components/Contractor/Compensation/management/CompensationEditForm.d.ts +1 -1
  287. package/dist/src/components/Contractor/Compensation/shared/useContractorPayForm/fields.d.ts +2 -2
  288. package/dist/src/components/Contractor/ContractorList/management/ManagementContractorList.d.ts +1 -1
  289. package/dist/src/components/Contractor/ContractorList/management/ManagementContractorListView.d.ts +1 -1
  290. package/dist/src/components/Contractor/ContractorList/onboarding/ContractorList.d.ts +1 -1
  291. package/dist/src/components/Contractor/ContractorList/onboarding/ContractorListView.d.ts +1 -1
  292. package/dist/src/components/Contractor/ContractorListFlow/ContractorListFlow.d.ts +1 -1
  293. package/dist/src/components/Contractor/ContractorListFlow/ContractorListFlowComponents.d.ts +2 -2
  294. package/dist/src/components/Contractor/Dashboard/Dashboard.d.ts +1 -1
  295. package/dist/src/components/Contractor/Dashboard/DashboardComponents.d.ts +5 -5
  296. package/dist/src/components/Contractor/Dashboard/DashboardFlow.d.ts +1 -1
  297. package/dist/src/components/Contractor/Dashboard/DetailsView.d.ts +1 -1
  298. package/dist/src/components/Contractor/Dashboard/PayView.d.ts +1 -1
  299. package/dist/src/components/Contractor/Documents/management/DocumentsCard/DocumentsCard.d.ts +1 -1
  300. package/dist/src/components/Contractor/Documents/onboarding/DocumentSigner/DocumentSigner.d.ts +1 -1
  301. package/dist/src/components/Contractor/Documents/onboarding/DocumentSigner/documentSignerStateMachine.d.ts +2 -2
  302. package/dist/src/components/Contractor/Documents/onboarding/DocumentsList/DocumentsList.d.ts +1 -1
  303. package/dist/src/components/Contractor/Documents/shared/SignatureForm/SignatureForm.d.ts +1 -1
  304. package/dist/src/components/Contractor/Documents/shared/SignatureForm/useContractorSignatureForm/fields.d.ts +19 -19
  305. package/dist/src/components/Contractor/Landing/Landing.d.ts +1 -1
  306. package/dist/src/components/Contractor/NewHireReport/NewHireReport.d.ts +1 -1
  307. package/dist/src/components/Contractor/OnboardingFlow/OnboardingFlow.d.ts +1 -1
  308. package/dist/src/components/Contractor/OnboardingFlow/OnboardingFlowComponents.d.ts +7 -7
  309. package/dist/src/components/Contractor/OnboardingSummary/OnboardingSummary.d.ts +1 -1
  310. package/dist/src/components/Contractor/PaymentMethod/management/PaymentMethod.d.ts +1 -1
  311. package/dist/src/components/Contractor/PaymentMethod/management/PaymentMethodCard/PaymentMethodCard.d.ts +1 -1
  312. package/dist/src/components/Contractor/PaymentMethod/management/PaymentMethodComponents.d.ts +2 -2
  313. package/dist/src/components/Contractor/PaymentMethod/management/PaymentMethodEditForm.d.ts +1 -1
  314. package/dist/src/components/Contractor/PaymentMethod/onboarding/PaymentMethod.d.ts +1 -1
  315. package/dist/src/components/Contractor/PaymentMethod/shared/ContractorBankAccountFields/ContractorBankAccountFields.d.ts +1 -1
  316. package/dist/src/components/Contractor/PaymentMethod/shared/ContractorBankAccountFormBody/ContractorBankAccountFormBody.d.ts +1 -1
  317. package/dist/src/components/Contractor/PaymentMethod/shared/useContractorBankAccountForm/fields.d.ts +4 -4
  318. package/dist/src/components/Contractor/PaymentMethod/shared/useContractorPaymentMethodForm/fields.d.ts +1 -1
  319. package/dist/src/components/Contractor/Payments/CreateHistoricalPayment/CreateHistoricalPayment.d.ts +1 -1
  320. package/dist/src/components/Contractor/Payments/CreatePayment/CreatePayment.d.ts +1 -1
  321. package/dist/src/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.d.ts +1 -1
  322. package/dist/src/components/Contractor/Payments/CreatePayment/FastAchSubmissionBlockerBanner.d.ts +1 -1
  323. package/dist/src/components/Contractor/Payments/CreatePayment/GenericBlocker.d.ts +1 -1
  324. package/dist/src/components/Contractor/Payments/CreatePayment/PreviewPresentation.d.ts +1 -1
  325. package/dist/src/components/Contractor/Payments/CreatePaymentFlow/CreatePaymentFlow.d.ts +2 -2
  326. package/dist/src/components/Contractor/Payments/CreatePaymentFlow/CreatePaymentFlowComponents.d.ts +2 -2
  327. package/dist/src/components/Contractor/Payments/HistoricalPaymentFlow/HistoricalPaymentFlow.d.ts +2 -2
  328. package/dist/src/components/Contractor/Payments/HistoricalPaymentFlow/HistoricalPaymentFlowComponents.d.ts +2 -2
  329. package/dist/src/components/Contractor/Payments/HistoricalPaymentSummary/HistoricalPaymentSummary.d.ts +1 -1
  330. package/dist/src/components/Contractor/Payments/PaymentFlow/PaymentFlow.d.ts +1 -1
  331. package/dist/src/components/Contractor/Payments/PaymentFlow/PaymentFlowComponents.d.ts +5 -5
  332. package/dist/src/components/Contractor/Payments/PaymentHistory/PaymentHistory.d.ts +1 -1
  333. package/dist/src/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.d.ts +1 -1
  334. package/dist/src/components/Contractor/Payments/PaymentStatement/PaymentStatement.d.ts +1 -1
  335. package/dist/src/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.d.ts +1 -1
  336. package/dist/src/components/Contractor/Payments/PaymentSummary/PaymentSummary.d.ts +2 -2
  337. package/dist/src/components/Contractor/Payments/PaymentSummary/PaymentSummaryPresentation.d.ts +1 -1
  338. package/dist/src/components/Contractor/Payments/PaymentsList/PaymentsList.d.ts +2 -2
  339. package/dist/src/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.d.ts +1 -1
  340. package/dist/src/components/Contractor/Payments/ViewPaymentFlow/ViewPaymentFlow.d.ts +2 -2
  341. package/dist/src/components/Contractor/Payments/ViewPaymentFlow/ViewPaymentFlowComponents.d.ts +2 -2
  342. package/dist/src/components/Contractor/Payments/shared/PaymentSummaryBlock/PaymentSummaryBlock.d.ts +1 -1
  343. package/dist/src/components/Contractor/Payments/shared/SetPaymentAmounts/EditContractorPaymentPresentation.d.ts +1 -1
  344. package/dist/src/components/Contractor/Payments/shared/SetPaymentAmounts/SetPaymentAmounts.d.ts +1 -1
  345. package/dist/src/components/Contractor/Profile/management/Profile.d.ts +1 -1
  346. package/dist/src/components/Contractor/Profile/management/ProfileCard/ProfileCard.d.ts +1 -1
  347. package/dist/src/components/Contractor/Profile/management/ProfileComponents.d.ts +2 -2
  348. package/dist/src/components/Contractor/Profile/management/ProfileEditForm.d.ts +1 -1
  349. package/dist/src/components/Contractor/Profile/onboarding/BusinessSelfOnboardingProfile.d.ts +1 -1
  350. package/dist/src/components/Contractor/Profile/onboarding/ContractorProfile.d.ts +1 -1
  351. package/dist/src/components/Contractor/Profile/onboarding/IndividualSelfOnboardingProfile.d.ts +1 -1
  352. package/dist/src/components/Contractor/Profile/onboarding/SelfOnboardingContractorProfile.d.ts +1 -1
  353. package/dist/src/components/Contractor/Profile/shared/useContractorDetailsForm/fields.d.ts +14 -14
  354. package/dist/src/components/Contractor/SelfOnboardingFlow/SelfOnboardingComponents.d.ts +6 -6
  355. package/dist/src/components/Contractor/SelfOnboardingFlow/SelfOnboardingFlow.d.ts +1 -1
  356. package/dist/src/components/Contractor/Submit/Submit.d.ts +1 -1
  357. package/dist/src/components/Contractor/Submit/SubmitDone.d.ts +1 -1
  358. package/dist/src/components/Contractor/shared/SelectContractors/SelectContractors.d.ts +1 -1
  359. package/dist/src/components/Contractor/shared/SelectContractors/SelectContractorsPresentation.d.ts +1 -1
  360. package/dist/src/components/Employee/Compensation/management/Compensation.d.ts +1 -1
  361. package/dist/src/components/Employee/Compensation/management/CompensationAddAnotherJobForm/CompensationAddAnotherJobForm.d.ts +1 -1
  362. package/dist/src/components/Employee/Compensation/management/CompensationAddJobForm/CompensationAddJobForm.d.ts +1 -1
  363. package/dist/src/components/Employee/Compensation/management/CompensationCard/CompensationCard.d.ts +1 -1
  364. package/dist/src/components/Employee/Compensation/management/CompensationComponents.d.ts +4 -4
  365. package/dist/src/components/Employee/Compensation/management/CompensationEditForm/CompensationEditForm.d.ts +1 -1
  366. package/dist/src/components/Employee/Compensation/management/CompensationEditJobForm/CompensationEditJobForm.d.ts +1 -1
  367. package/dist/src/components/Employee/Compensation/management/CompensationEditPendingJobForm/CompensationEditPendingJobForm.d.ts +1 -1
  368. package/dist/src/components/Employee/Compensation/management/ManagementCompensationFormBody.d.ts +1 -1
  369. package/dist/src/components/Employee/Compensation/onboarding/Compensation.d.ts +2 -2
  370. package/dist/src/components/Employee/Compensation/onboarding/CompensationFlowComponents.d.ts +3 -3
  371. package/dist/src/components/Employee/Compensation/onboarding/EditCompensation/EditCompensation.d.ts +1 -1
  372. package/dist/src/components/Employee/Compensation/onboarding/JobsList/JobsList.d.ts +1 -1
  373. package/dist/src/components/Employee/Compensation/onboarding/JobsList/JobsListPresentation.d.ts +1 -1
  374. package/dist/src/components/Employee/Compensation/shared/AddCompensationFormBody.d.ts +1 -1
  375. package/dist/src/components/Employee/Compensation/shared/PendingChangesReviewModal.d.ts +1 -1
  376. package/dist/src/components/Employee/Compensation/shared/useCompensationForm/fields.d.ts +7 -7
  377. package/dist/src/components/Employee/Compensation/shared/useJobForm/fields.d.ts +5 -5
  378. package/dist/src/components/Employee/Dashboard/BasicDetailsView.d.ts +1 -1
  379. package/dist/src/components/Employee/Dashboard/Dashboard.d.ts +1 -1
  380. package/dist/src/components/Employee/Dashboard/DashboardComponents.d.ts +13 -13
  381. package/dist/src/components/Employee/Dashboard/DashboardFlow.d.ts +1 -1
  382. package/dist/src/components/Employee/Dashboard/JobAndPayView.d.ts +1 -1
  383. package/dist/src/components/Employee/Dashboard/TaxesView.d.ts +2 -2
  384. package/dist/src/components/Employee/Deductions/management/Deductions.d.ts +1 -1
  385. package/dist/src/components/Employee/Deductions/management/DeductionsCard/DeductionsCard.d.ts +1 -1
  386. package/dist/src/components/Employee/Deductions/management/DeductionsComponents.d.ts +2 -2
  387. package/dist/src/components/Employee/Deductions/management/DeductionsEditForm/DeductionsEditForm.d.ts +1 -1
  388. package/dist/src/components/Employee/Deductions/onboarding/Deductions.d.ts +1 -1
  389. package/dist/src/components/Employee/Deductions/onboarding/DeductionsList/DeductionsList.d.ts +1 -1
  390. package/dist/src/components/Employee/Deductions/onboarding/deductionsContextualComponents.d.ts +2 -2
  391. package/dist/src/components/Employee/Deductions/shared/DeductionsForm/ChildSupportFormView.d.ts +1 -1
  392. package/dist/src/components/Employee/Deductions/shared/DeductionsForm/DeductionsForm.d.ts +1 -1
  393. package/dist/src/components/Employee/Deductions/shared/DeductionsForm/StandardDeductionForm.d.ts +1 -1
  394. package/dist/src/components/Employee/Deductions/shared/DeleteDeductionDialog.d.ts +1 -1
  395. package/dist/src/components/Employee/Deductions/shared/useChildSupportGarnishmentForm/fields.d.ts +8 -8
  396. package/dist/src/components/Employee/Deductions/shared/useDeductionForm/fields.d.ts +7 -7
  397. package/dist/src/components/Employee/Documents/management/DocumentManager.d.ts +1 -1
  398. package/dist/src/components/Employee/Documents/management/Documents.d.ts +1 -1
  399. package/dist/src/components/Employee/Documents/management/DocumentsCard/DocumentsCard.d.ts +1 -1
  400. package/dist/src/components/Employee/Documents/management/DocumentsComponents.d.ts +2 -2
  401. package/dist/src/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/Actions.d.ts +1 -1
  402. package/dist/src/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/DocumentList.d.ts +1 -1
  403. package/dist/src/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/Head.d.ts +1 -1
  404. package/dist/src/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/List.d.ts +1 -1
  405. package/dist/src/components/Employee/Documents/onboarding/DocumentSigner/DocumentSigner.d.ts +1 -1
  406. package/dist/src/components/Employee/Documents/onboarding/DocumentSigner/EmploymentEligibility/EmploymentEligibility.d.ts +1 -1
  407. package/dist/src/components/Employee/Documents/onboarding/DocumentSigner/EmploymentEligibility/EmploymentEligibilityPresentation.d.ts +1 -1
  408. package/dist/src/components/Employee/Documents/onboarding/DocumentSigner/I9SignatureForm/I9SignatureForm.d.ts +1 -1
  409. package/dist/src/components/Employee/Documents/onboarding/DocumentSigner/documentSignerStateMachine.d.ts +4 -4
  410. package/dist/src/components/Employee/Documents/onboarding/EmployeeDocuments/EmployeeDocuments.d.ts +2 -2
  411. package/dist/src/components/Employee/Documents/onboarding/EmployeeDocuments/EmployeeDocumentsPresentation.d.ts +1 -1
  412. package/dist/src/components/Employee/Documents/shared/SignatureForm/SignatureForm.d.ts +1 -1
  413. package/dist/src/components/Employee/Documents/shared/useSignEmployeeForm/fields.d.ts +39 -39
  414. package/dist/src/components/Employee/EmployeeList/management/ManagementEmployeeList.d.ts +1 -1
  415. package/dist/src/components/Employee/EmployeeList/management/ManagementEmployeeListView.d.ts +1 -1
  416. package/dist/src/components/Employee/EmployeeList/onboarding/EmployeeList.d.ts +1 -1
  417. package/dist/src/components/Employee/EmployeeList/onboarding/EmployeeListView.d.ts +1 -1
  418. package/dist/src/components/Employee/EmployeeListFlow/EmployeeListFlow.d.ts +1 -1
  419. package/dist/src/components/Employee/EmployeeListFlow/EmployeeListFlowComponents.d.ts +4 -4
  420. package/dist/src/components/Employee/FederalTaxes/management/FederalTaxes.d.ts +1 -1
  421. package/dist/src/components/Employee/FederalTaxes/management/FederalTaxesCard/FederalTaxesCard.d.ts +1 -1
  422. package/dist/src/components/Employee/FederalTaxes/management/FederalTaxesComponents.d.ts +2 -2
  423. package/dist/src/components/Employee/FederalTaxes/management/FederalTaxesEditForm.d.ts +1 -1
  424. package/dist/src/components/Employee/FederalTaxes/onboarding/FederalTaxes.d.ts +1 -1
  425. package/dist/src/components/Employee/FederalTaxes/shared/FederalTaxesView.d.ts +1 -1
  426. package/dist/src/components/Employee/FederalTaxes/shared/useFederalTaxesForm/fields.d.ts +6 -6
  427. package/dist/src/components/Employee/HomeAddress/management/HomeAddress.d.ts +1 -1
  428. package/dist/src/components/Employee/HomeAddress/management/HomeAddressCard/HomeAddressCard.d.ts +1 -1
  429. package/dist/src/components/Employee/HomeAddress/management/HomeAddressComponents.d.ts +2 -2
  430. package/dist/src/components/Employee/HomeAddress/management/HomeAddressEditForm.d.ts +1 -1
  431. package/dist/src/components/Employee/HomeAddress/management/HomeAddressView.d.ts +1 -1
  432. package/dist/src/components/Employee/Landing/Landing.d.ts +1 -1
  433. package/dist/src/components/Employee/OnboardingExecutionFlow/OnboardingExecutionFlow.d.ts +1 -1
  434. package/dist/src/components/Employee/OnboardingExecutionFlow/OnboardingExecutionFlowComponents.d.ts +3 -3
  435. package/dist/src/components/Employee/OnboardingExecutionFlow/onboardingExecutionStateMachine.d.ts +1 -1
  436. package/dist/src/components/Employee/OnboardingFlow/OnboardingFlow.d.ts +1 -1
  437. package/dist/src/components/Employee/OnboardingFlow/OnboardingFlowComponents.d.ts +2 -2
  438. package/dist/src/components/Employee/OnboardingSummary/OnboardingSummary.d.ts +2 -2
  439. package/dist/src/components/Employee/PaymentMethod/management/PaymentMethod.d.ts +1 -1
  440. package/dist/src/components/Employee/PaymentMethod/management/PaymentMethodBankForm.d.ts +1 -1
  441. package/dist/src/components/Employee/PaymentMethod/management/PaymentMethodCard.d.ts +1 -1
  442. package/dist/src/components/Employee/PaymentMethod/management/PaymentMethodComponents.d.ts +3 -3
  443. package/dist/src/components/Employee/PaymentMethod/management/PaymentMethodSplitForm.d.ts +1 -1
  444. package/dist/src/components/Employee/PaymentMethod/onboarding/BankForm.d.ts +1 -1
  445. package/dist/src/components/Employee/PaymentMethod/onboarding/ListView.d.ts +1 -1
  446. package/dist/src/components/Employee/PaymentMethod/onboarding/PaymentMethod.d.ts +2 -2
  447. package/dist/src/components/Employee/PaymentMethod/onboarding/PaymentMethodComponents.d.ts +3 -3
  448. package/dist/src/components/Employee/PaymentMethod/onboarding/SplitView.d.ts +1 -1
  449. package/dist/src/components/Employee/PaymentMethod/shared/BankFormBody/BankFormBody.d.ts +1 -1
  450. package/dist/src/components/Employee/PaymentMethod/shared/DeleteBankAccountDialog.d.ts +1 -1
  451. package/dist/src/components/Employee/PaymentMethod/shared/SplitPaymentsFormBody/SplitPaymentsFormBody.d.ts +1 -1
  452. package/dist/src/components/Employee/PaymentMethod/shared/useBankForm/fields.d.ts +4 -4
  453. package/dist/src/components/Employee/PaymentMethod/shared/usePaymentMethodForm/fields.d.ts +1 -1
  454. package/dist/src/components/Employee/PaymentMethod/shared/useSplitPaymentsForm/fields.d.ts +1 -1
  455. package/dist/src/components/Employee/Paystubs/management/PaystubsCard/PaystubsCard.d.ts +1 -1
  456. package/dist/src/components/Employee/Profile/management/Profile.d.ts +1 -1
  457. package/dist/src/components/Employee/Profile/management/ProfileCard/ProfileCard.d.ts +1 -1
  458. package/dist/src/components/Employee/Profile/management/ProfileComponents.d.ts +2 -2
  459. package/dist/src/components/Employee/Profile/management/ProfileEditForm.d.ts +1 -1
  460. package/dist/src/components/Employee/Profile/onboarding/AdminProfile.d.ts +1 -1
  461. package/dist/src/components/Employee/Profile/onboarding/EmployeeProfile.d.ts +1 -1
  462. package/dist/src/components/Employee/Profile/onboarding/Profile.d.ts +2 -2
  463. package/dist/src/components/Employee/Profile/shared/useEmployeeDetailsForm/fields.d.ts +7 -7
  464. package/dist/src/components/Employee/Profile/shared/useHomeAddressForm/fields.d.ts +7 -7
  465. package/dist/src/components/Employee/Profile/shared/useWorkAddressForm/fields.d.ts +2 -2
  466. package/dist/src/components/Employee/SelfOnboardingFlow/SelfOnboardingComponents.d.ts +7 -7
  467. package/dist/src/components/Employee/SelfOnboardingFlow/SelfOnboardingFlow.d.ts +1 -1
  468. package/dist/src/components/Employee/StateTaxes/management/StateTaxes.d.ts +1 -1
  469. package/dist/src/components/Employee/StateTaxes/management/StateTaxesCard/StateTaxesCard.d.ts +1 -1
  470. package/dist/src/components/Employee/StateTaxes/management/StateTaxesComponents.d.ts +2 -2
  471. package/dist/src/components/Employee/StateTaxes/management/StateTaxesEditForm.d.ts +1 -1
  472. package/dist/src/components/Employee/StateTaxes/onboarding/StateTaxes.d.ts +1 -1
  473. package/dist/src/components/Employee/StateTaxes/shared/EmployeeStateTaxesView.d.ts +1 -1
  474. package/dist/src/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fieldComponents.d.ts +6 -6
  475. package/dist/src/components/Employee/Terminations/TerminateEmployee/TerminateEmployee.d.ts +1 -1
  476. package/dist/src/components/Employee/Terminations/TerminateEmployee/TerminateEmployeePresentation.d.ts +1 -1
  477. package/dist/src/components/Employee/Terminations/TerminationFlow/TerminationFlow.d.ts +1 -1
  478. package/dist/src/components/Employee/Terminations/TerminationFlow/TerminationFlowComponents.d.ts +4 -4
  479. package/dist/src/components/Employee/Terminations/TerminationSummary/TerminationSummary.d.ts +1 -1
  480. package/dist/src/components/Employee/Terminations/TerminationSummary/TerminationSummaryPresentation.d.ts +1 -1
  481. package/dist/src/components/Employee/WorkAddress/management/WorkAddress.d.ts +1 -1
  482. package/dist/src/components/Employee/WorkAddress/management/WorkAddressCard/WorkAddressCard.d.ts +1 -1
  483. package/dist/src/components/Employee/WorkAddress/management/WorkAddressComponents.d.ts +2 -2
  484. package/dist/src/components/Employee/WorkAddress/management/WorkAddressEditForm.d.ts +1 -1
  485. package/dist/src/components/Employee/WorkAddress/management/WorkAddressView.d.ts +1 -1
  486. package/dist/src/components/Flow/Flow.d.ts +1 -1
  487. package/dist/src/components/Flow/FlowHeader.d.ts +1 -1
  488. package/dist/src/components/InformationRequests/InformationRequestForm/InformationRequestForm.d.ts +2 -2
  489. package/dist/src/components/InformationRequests/InformationRequestList/InformationRequestList.d.ts +1 -1
  490. package/dist/src/components/InformationRequests/InformationRequests.d.ts +1 -1
  491. package/dist/src/components/InformationRequests/InformationRequestsComponents.d.ts +1 -1
  492. package/dist/src/components/Payroll/ConfirmWireDetails/ConfirmWireDetails.d.ts +1 -1
  493. package/dist/src/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsBanner/ConfirmWireDetailsBanner.d.ts +1 -1
  494. package/dist/src/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsComponents.d.ts +2 -2
  495. package/dist/src/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsForm/ConfirmWireDetailsForm.d.ts +1 -1
  496. package/dist/src/components/Payroll/ConfirmWireDetails/WireInstructions/WireInstructions.d.ts +1 -1
  497. package/dist/src/components/Payroll/Dismissal/DismissalFlow.d.ts +1 -1
  498. package/dist/src/components/Payroll/Dismissal/DismissalFlowComponents.d.ts +2 -2
  499. package/dist/src/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelection.d.ts +1 -1
  500. package/dist/src/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelectionPresentation.d.ts +1 -1
  501. package/dist/src/components/Payroll/GrossUpModal/GrossUpModal.d.ts +1 -1
  502. package/dist/src/components/Payroll/OffCycle/OffCycleFlow.d.ts +1 -1
  503. package/dist/src/components/Payroll/OffCycle/OffCycleFlowComponents.d.ts +3 -3
  504. package/dist/src/components/Payroll/OffCycleCreation/OffCycleCreation.d.ts +1 -1
  505. package/dist/src/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.d.ts +1 -1
  506. package/dist/src/components/Payroll/OffCycleDeductionsSetting/OffCycleDeductionsSetting.d.ts +1 -1
  507. package/dist/src/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormPresentation.d.ts +1 -1
  508. package/dist/src/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelection.d.ts +1 -1
  509. package/dist/src/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelectionPresentation.d.ts +1 -1
  510. package/dist/src/components/Payroll/OffCycleTaxWithholdingModal/OffCycleTaxWithholdingModal.d.ts +1 -1
  511. package/dist/src/components/Payroll/OffCycleTaxWithholdingTable/OffCycleTaxWithholdingTable.d.ts +1 -1
  512. package/dist/src/components/Payroll/PayrollBlocker/components/PayrollBlockerAlerts.d.ts +1 -1
  513. package/dist/src/components/Payroll/PayrollBlocker/components/PayrollBlockerList.d.ts +1 -1
  514. package/dist/src/components/Payroll/PayrollBlocker/payrollHelpers.d.ts +12 -0
  515. package/dist/src/components/Payroll/PayrollConfiguration/PayrollConfiguration.d.ts +1 -1
  516. package/dist/src/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.d.ts +1 -1
  517. package/dist/src/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.d.ts +6 -1
  518. package/dist/src/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.d.ts +1 -1
  519. package/dist/src/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.d.ts +1 -1
  520. package/dist/src/components/Payroll/PayrollEditEmployee/TimeOffField.d.ts +2 -2
  521. package/dist/src/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/payrollEditEmployeeHelpers.d.ts +2 -2
  522. package/dist/src/components/Payroll/PayrollExecutionFlow/PayrollExecutionFlow.d.ts +2 -2
  523. package/dist/src/components/Payroll/PayrollFlow/OffCycleFlowContextual.d.ts +1 -1
  524. package/dist/src/components/Payroll/PayrollFlow/PayrollExecutionFlowContextual.d.ts +1 -1
  525. package/dist/src/components/Payroll/PayrollFlow/PayrollFlow.d.ts +1 -1
  526. package/dist/src/components/Payroll/PayrollFlow/PayrollFlowComponents.d.ts +7 -7
  527. package/dist/src/components/Payroll/PayrollFlow/TransitionFlowContextual.d.ts +1 -1
  528. package/dist/src/components/Payroll/PayrollHistory/PayrollHistory.d.ts +1 -1
  529. package/dist/src/components/Payroll/PayrollHistory/PayrollHistoryPresentation.d.ts +1 -1
  530. package/dist/src/components/Payroll/PayrollLanding/PayrollLanding.d.ts +1 -1
  531. package/dist/src/components/Payroll/PayrollLanding/PayrollLandingFlowComponents.d.ts +3 -3
  532. package/dist/src/components/Payroll/PayrollList/PayrollList.d.ts +1 -1
  533. package/dist/src/components/Payroll/PayrollList/PayrollListPresentation.d.ts +1 -1
  534. package/dist/src/components/Payroll/PayrollOverview/PayrollOverview.d.ts +1 -1
  535. package/dist/src/components/Payroll/PayrollOverview/PayrollOverviewPresentation.d.ts +1 -1
  536. package/dist/src/components/Payroll/PayrollOverview/SubmissionBlockers/FastAchSubmissionBlockerBanner.d.ts +1 -1
  537. package/dist/src/components/Payroll/PayrollOverview/SubmissionBlockers/GenericBlocker.d.ts +1 -1
  538. package/dist/src/components/Payroll/PayrollReceipts/PayrollReceipts.d.ts +1 -1
  539. package/dist/src/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.d.ts +1 -1
  540. package/dist/src/components/Payroll/PayrollStatusBadges/PayrollStatusBadges.d.ts +1 -1
  541. package/dist/src/components/Payroll/PrintChecks/PrintChecks.d.ts +1 -1
  542. package/dist/src/components/Payroll/PrintChecks/PrintChecksBanner/PrintChecksBanner.d.ts +1 -1
  543. package/dist/src/components/Payroll/PrintChecks/PrintChecksComponents.d.ts +3 -3
  544. package/dist/src/components/Payroll/PrintChecks/PrintChecksFailure/PrintChecksFailure.d.ts +1 -1
  545. package/dist/src/components/Payroll/PrintChecks/PrintChecksForm/PrintChecksForm.d.ts +1 -1
  546. package/dist/src/components/Payroll/PrintChecks/PrintChecksSummary/PrintChecksSummary.d.ts +1 -1
  547. package/dist/src/components/Payroll/RecoveryCases/RecoveryCases.d.ts +1 -1
  548. package/dist/src/components/Payroll/RecoveryCases/RecoveryCasesComponents.d.ts +1 -1
  549. package/dist/src/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.d.ts +1 -1
  550. package/dist/src/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.d.ts +1 -1
  551. package/dist/src/components/Payroll/Transition/TransitionFlow.d.ts +1 -1
  552. package/dist/src/components/Payroll/Transition/TransitionFlowComponents.d.ts +1 -1
  553. package/dist/src/components/Payroll/TransitionCreation/TransitionCreation.d.ts +1 -1
  554. package/dist/src/components/Payroll/TransitionCreation/TransitionCreationPresentation.d.ts +1 -1
  555. package/dist/src/components/Payroll/TransitionPayroll/TransitionPayroll.d.ts +1 -1
  556. package/dist/src/components/Payroll/TransitionPayroll/TransitionPayrollComponents.d.ts +2 -2
  557. package/dist/src/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlert.d.ts +6 -1
  558. package/dist/src/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlertPresentation.d.ts +7 -1
  559. package/dist/src/components/Payroll/UNSTABLE_PayrollEditEmployee/UNSTABLE_PayrollEditEmployee.d.ts +1 -1
  560. package/dist/src/components/Payroll/helpers.d.ts +34 -0
  561. package/dist/src/components/Payroll/usePreparedPayrollData.d.ts +6 -1
  562. package/dist/src/components/TimeOff/AddEmployeesHoliday/AddEmployeesHoliday.d.ts +1 -1
  563. package/dist/src/components/TimeOff/AddEmployeesToPolicy/AddEmployeesToPolicy.d.ts +1 -1
  564. package/dist/src/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetail.d.ts +1 -1
  565. package/dist/src/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetailPresentation.d.ts +1 -1
  566. package/dist/src/components/TimeOff/HolidaySelectionForm/HolidaySelectionForm.d.ts +1 -1
  567. package/dist/src/components/TimeOff/HolidaySelectionForm/HolidaySelectionFormPresentation.d.ts +1 -1
  568. package/dist/src/components/TimeOff/PolicyList/PolicyList.d.ts +1 -1
  569. package/dist/src/components/TimeOff/PolicyList/PolicyListPresentation.d.ts +1 -1
  570. package/dist/src/components/TimeOff/PolicySettings/PolicySettings.d.ts +1 -1
  571. package/dist/src/components/TimeOff/PolicySettings/PolicySettingsPresentation.d.ts +1 -1
  572. package/dist/src/components/TimeOff/PolicyTypeSelector/PolicyTypeSelector.d.ts +1 -1
  573. package/dist/src/components/TimeOff/PolicyTypeSelector/PolicyTypeSelectorPresentation.d.ts +1 -1
  574. package/dist/src/components/TimeOff/TimeOffFlow/TimeOffFlow.d.ts +1 -1
  575. package/dist/src/components/TimeOff/TimeOffFlow/TimeOffFlowComponents.d.ts +12 -12
  576. package/dist/src/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.d.ts +1 -1
  577. package/dist/src/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormPresentation.d.ts +1 -1
  578. package/dist/src/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesHoliday.d.ts +1 -1
  579. package/dist/src/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentation.d.ts +1 -1
  580. package/dist/src/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesTimeOff.d.ts +1 -1
  581. package/dist/src/components/TimeOff/TimeOffPolicyDetail/EditEmployeeBalanceModal.d.ts +1 -1
  582. package/dist/src/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetail.d.ts +1 -1
  583. package/dist/src/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetailPresentation.d.ts +1 -1
  584. package/dist/src/components/TimeOff/ViewHolidayEmployees/ViewHolidayEmployees.d.ts +1 -1
  585. package/dist/src/components/TimeOff/ViewHolidayPolicyDetails/ViewHolidayPolicyDetails.d.ts +1 -1
  586. package/dist/src/components/TimeOff/ViewHolidaySchedule/ViewHolidaySchedule.d.ts +1 -1
  587. package/dist/src/components/TimeOff/shared/EmployeeTable/EmployeeTable.d.ts +1 -1
  588. package/dist/src/components/TimeOff/shared/PolicyDetailLayout/PolicyDetailLayout.d.ts +1 -1
  589. package/dist/src/components/index.d.ts +12 -0
  590. package/dist/src/contexts/ApiProvider/ApiProvider.d.ts +1 -1
  591. package/dist/src/contexts/ApiProvider/informationRequestEnumHook.d.ts +14 -0
  592. package/dist/src/contexts/ApiProvider/informationRequestEnumHook.test.d.ts +1 -0
  593. package/dist/src/contexts/LoadingIndicatorProvider/LoadingIndicatorProvider.d.ts +1 -1
  594. package/dist/src/contexts/LocaleProvider/LocaleProvider.d.ts +1 -1
  595. package/dist/src/contexts/ObservabilityProvider/ObservabilityProvider.d.ts +1 -1
  596. package/dist/src/contexts/ThemeProvider/customRender.d.ts +1 -1
  597. package/dist/src/contexts/UnstableFeaturesProvider/UnstableFeaturesProvider.d.ts +1 -1
  598. package/dist/src/contexts/UnstableFeaturesProvider/useUnstableFeature.d.ts +2 -0
  599. package/dist/src/helpers/dateFormatting.d.ts +2 -2
  600. package/dist/src/helpers/formattedStrings.d.ts +15 -0
  601. package/dist/src/i18n/en/common.json.d.ts +0 -1
  602. package/dist/src/i18n/types.d.ts +99 -7
  603. package/dist/src/models/external.d.ts +12 -0
  604. package/dist/src/partner-hook-utils/form/FormFieldsMetadataProvider.d.ts +1 -1
  605. package/dist/src/partner-hook-utils/form/SDKFormProvider.d.ts +1 -1
  606. package/dist/src/shared/constants.d.ts +16 -0
  607. package/dist/src/test-utils/renderWithProviders.d.ts +1 -1
  608. package/dist/style.css +1 -1
  609. package/dist/types/sdkError.js +32 -21
  610. package/dist/types/sdkError.js.map +1 -1
  611. package/docs/guides/endpoint-inventory.json +59 -10
  612. package/package.json +11 -11
@@ -1,132 +1,139 @@
1
- import { useState as O, useRef as De, useCallback as b, useEffect as Oe, useMemo as o } from "react";
2
- import { useQueryClient as ke } from "@tanstack/react-query";
3
- import { useForm as Ae, useWatch as Ce, useFieldArray as Fe } from "react-hook-form";
4
- import { zodResolver as Me } from "@hookform/resolvers/zod";
5
- import { useEmployeesGetSuspense as Te } from "@gusto/embedded-api/react-query/employeesGet";
6
- import { useEmployeePaymentMethodsGetBankAccountsSuspense as Ue } from "@gusto/embedded-api/react-query/employeePaymentMethodsGetBankAccounts";
7
- import { useEarningTypesListSuspense as Ve } from "@gusto/embedded-api/react-query/earningTypesList";
8
- import { usePayrollsPrepareMutation as Be } from "@gusto/embedded-api/react-query/payrollsPrepare";
9
- import { usePaySchedulesGet as _e } from "@gusto/embedded-api/react-query/paySchedulesGet";
10
- import { usePayrollsUpdateMutation as xe } from "@gusto/embedded-api/react-query/payrollsUpdate";
11
- import { UnprocessableEntityError as Le } from "@gusto/embedded-api/models/errors/unprocessableentityerror";
12
- import { createPayrollEditEmployeeSchema as je, reimbursementDraftSchema as Ne, PayrollEditEmployeeErrorCodes as We, PAYMENT_METHOD_VALUES as He, PAYMENT_METHOD_OPTIONS as Qe } from "./payrollEditEmployeeSchema.js";
13
- import { normalizeWorkweeks as Ye, collectOvertimeEarningNames as qe, hasExistingOvertimeHours as ze, hasBreakdownsMatchingWorkweeks as Ge, resolveEditableFixedCompensations as Ie, derivePayrollEditEmployeeDefaults as J, zeroFillClearedWorkweekCells as Je, buildPayrollUpdateEmployeeCompensation as Ke } from "./payrollEditEmployeeHelpers.js";
14
- import { createReimbursementDraftFields as Xe, createPayrollEditEmployeeFields as Ze, computeTimeOffRemaining as $e } from "./fields.js";
15
- import { withOptions as et } from "../../../../../partner-hook-utils/form/withOptions.js";
16
- import { derivePayrollCategory as tt, isOffCyclePayroll as rt } from "../../../payrollTypes.js";
17
- import { PREPARE_QUERY_KEY as ot } from "../../../PayrollConfiguration/usePayrollConfigurationData.js";
18
- import { isOvertimeEligibleFlsaStatus as st } from "../../../helpers.js";
19
- import { retryAsync as nt } from "../../../../../helpers/retryAsync.js";
20
- import { useHookFormInternals as at } from "../../../../../partner-hook-utils/form/useHookFormInternals.js";
21
- import { createGetFormSubmissionValues as it } from "../../../../../partner-hook-utils/form/getFormSubmissionValues.js";
22
- import { composeErrorHandler as mt } from "../../../../../partner-hook-utils/composeErrorHandler.js";
23
- import { useBaseSubmit as ut } from "../../../../Base/useBaseSubmit.js";
24
- import { SDKInternalError as lt } from "../../../../../types/sdkError.js";
25
- const ct = 4, dt = 1500, pt = (u) => u instanceof Le && u.errors.some((l) => l.category === "invalid_operation");
26
- function jt({
1
+ import { useState as O, useRef as Ae, useCallback as h, useEffect as Ce, useMemo as o } from "react";
2
+ import { useQueryClient as Fe } from "@tanstack/react-query";
3
+ import { useForm as Te, useWatch as Me, useFieldArray as Ue } from "react-hook-form";
4
+ import { zodResolver as Ve } from "@hookform/resolvers/zod";
5
+ import { useEmployeesGetSuspense as Be } from "@gusto/embedded-api/react-query/employeesGet";
6
+ import { useEmployeePaymentMethodsGetBankAccountsSuspense as _e } from "@gusto/embedded-api/react-query/employeePaymentMethodsGetBankAccounts";
7
+ import { useEarningTypesListSuspense as xe } from "@gusto/embedded-api/react-query/earningTypesList";
8
+ import { usePayrollsGetSuspense as Le } from "@gusto/embedded-api/react-query/payrollsGet";
9
+ import { usePayrollsPrepareMutation as je } from "@gusto/embedded-api/react-query/payrollsPrepare";
10
+ import { usePaySchedulesGet as Ne } from "@gusto/embedded-api/react-query/paySchedulesGet";
11
+ import { usePayrollsUpdateMutation as We } from "@gusto/embedded-api/react-query/payrollsUpdate";
12
+ import { UnprocessableEntityError as He } from "@gusto/embedded-api/models/errors/unprocessableentityerror";
13
+ import { createPayrollEditEmployeeSchema as Qe, reimbursementDraftSchema as Ye, PayrollEditEmployeeErrorCodes as qe, PAYMENT_METHOD_VALUES as Ge, PAYMENT_METHOD_OPTIONS as ze } from "./payrollEditEmployeeSchema.js";
14
+ import { normalizeWorkweeks as Je, collectOvertimeEarningNames as Ke, hasExistingOvertimeHours as Ie, hasBreakdownsMatchingWorkweeks as Xe, resolveEditableFixedCompensations as Ze, derivePayrollEditEmployeeDefaults as I, zeroFillClearedWorkweekCells as $e, buildPayrollUpdateEmployeeCompensation as et } from "./payrollEditEmployeeHelpers.js";
15
+ import { createReimbursementDraftFields as tt, createPayrollEditEmployeeFields as rt, computeTimeOffRemaining as ot } from "./fields.js";
16
+ import { withOptions as st } from "../../../../../partner-hook-utils/form/withOptions.js";
17
+ import { derivePayrollCategory as X, PayrollCategory as nt, isOffCyclePayroll as at } from "../../../payrollTypes.js";
18
+ import { PREPARE_QUERY_KEY as it } from "../../../PayrollConfiguration/usePayrollConfigurationData.js";
19
+ import { isOvertimeEligibleFlsaStatus as mt } from "../../../helpers.js";
20
+ import { retryAsync as ut } from "../../../../../helpers/retryAsync.js";
21
+ import { useHookFormInternals as lt } from "../../../../../partner-hook-utils/form/useHookFormInternals.js";
22
+ import { createGetFormSubmissionValues as ct } from "../../../../../partner-hook-utils/form/getFormSubmissionValues.js";
23
+ import { composeErrorHandler as dt } from "../../../../../partner-hook-utils/composeErrorHandler.js";
24
+ import { useBaseSubmit as pt } from "../../../../Base/useBaseSubmit.js";
25
+ import { SDKInternalError as ft } from "../../../../../types/sdkError.js";
26
+ const yt = 4, Et = 1500, bt = (u) => u instanceof He && u.errors.some((l) => l.category === "invalid_operation");
27
+ function Yt({
27
28
  employeeId: u,
28
29
  companyId: l,
29
- payrollId: h,
30
- withReimbursements: K = !0,
31
- validationMode: X = "onSubmit",
32
- shouldFocusError: Z = !0,
30
+ payrollId: f,
31
+ withReimbursements: Z = !0,
32
+ validationMode: $ = "onSubmit",
33
+ shouldFocusError: ee = !0,
33
34
  errorMessages: P
34
35
  }) {
35
- const { data: $ } = Te({ employeeId: u }), { data: ee } = Ue({
36
+ const { data: te } = Be({ employeeId: u }), { data: re } = _e({
36
37
  employeeId: u
37
- }), { data: U } = Ve({ companyId: l }), te = ke(), { mutateAsync: V } = Be(), { mutateAsync: re, isPending: oe } = xe(), [n, B] = O(), [se, _] = O(null), x = De(!1), k = b(async () => {
38
- _(null);
38
+ }), { data: U } = xe({ companyId: l }), { data: oe } = Le({ companyId: l, payrollId: f }), V = X(oe.payrollShow ?? {}) === nt.Transition, se = Fe(), { mutateAsync: B } = je(), { mutateAsync: ne, isPending: ae } = We(), [n, _] = O(), [ie, x] = O(null), L = Ae(!1), k = h(async () => {
39
+ x(null);
39
40
  try {
40
- const e = await nt(
41
- () => V({
42
- request: { companyId: l, payrollId: h, requestBody: { employeeUuids: [u] } }
41
+ const e = await ut(
42
+ () => B({
43
+ request: {
44
+ companyId: l,
45
+ payrollId: f,
46
+ requestBody: { employeeUuids: V ? void 0 : [u] }
47
+ }
43
48
  }),
44
49
  {
45
- maxAttempts: ct,
46
- delayMs: dt,
47
- shouldRetry: pt
50
+ maxAttempts: yt,
51
+ delayMs: Et,
52
+ shouldRetry: bt
48
53
  }
49
54
  );
50
- B(e.payrollPrepared);
55
+ _(e.payrollPrepared);
51
56
  } catch (e) {
52
- _(e);
57
+ x(e);
53
58
  }
54
- }, [l, h, u, V]);
55
- Oe(() => {
56
- x.current || (x.current = !0, k());
59
+ }, [l, f, u, B, V]);
60
+ Ce(() => {
61
+ L.current || (L.current = !0, k());
57
62
  }, [k]);
58
- const L = _e(
63
+ const j = Ne(
59
64
  { companyId: l, payScheduleId: n?.payPeriod?.payScheduleUuid ?? "" },
60
65
  { enabled: !!n?.payPeriod?.payScheduleUuid }
61
- ), a = $.employee, s = n?.employeeCompensations?.at(0), g = tt(n ?? {}), d = (ee.employeeBankAccounts?.length ?? 0) > 0, i = o(
62
- () => n ? Ye(n.workweeks, n.payPeriod) : [],
66
+ ), a = te.employee, s = n?.employeeCompensations?.find(
67
+ (e) => e.employeeUuid === u
68
+ ), S = X(n ?? {}), d = (re.employeeBankAccounts?.length ?? 0) > 0, i = o(
69
+ () => n ? Je(n.workweeks, n.payPeriod) : [],
63
70
  [n]
64
- ), f = o(
65
- () => qe(U.earningTypeList),
71
+ ), y = o(
72
+ () => Ke(U.earningTypeList),
66
73
  [U.earningTypeList]
67
74
  ), A = o(() => {
68
75
  const e = s?.hourlyCompensations?.find(
69
76
  (m) => m.flsaStatus
70
77
  )?.flsaStatus;
71
78
  return e || a?.jobs?.find((m) => m.primary)?.compensations?.[0]?.flsaStatus;
72
- }, [s, a]), c = st(A), [ne, ae] = O(!1), p = ne || ze(s?.hourlyCompensations) || Ge(s?.hourlyCompensations, i), j = o(() => a?.jobs?.find((e) => e.primary)?.uuid, [a]), y = o(
73
- () => Ie(
79
+ }, [s, a]), c = mt(A), [me, ue] = O(!1), p = me || Ie(s?.hourlyCompensations) || Xe(s?.hourlyCompensations, i), N = o(() => a?.jobs?.find((e) => e.primary)?.uuid, [a]), E = o(
80
+ () => Ze(
74
81
  s?.fixedCompensations,
75
82
  n?.fixedCompensationTypes,
76
- j,
83
+ N,
77
84
  A
78
85
  ),
79
- [s, n?.fixedCompensationTypes, j, A]
80
- ), N = o(() => {
86
+ [s, n?.fixedCompensationTypes, N, A]
87
+ ), W = o(() => {
81
88
  const e = /* @__PURE__ */ new Map();
82
89
  for (const t of a?.jobs ?? [])
83
90
  t.uuid && t.title && e.set(t.uuid, t.title);
84
91
  return e;
85
- }, [a]), S = o(() => {
92
+ }, [a]), g = o(() => {
86
93
  const e = /* @__PURE__ */ new Map();
87
94
  for (const t of a?.eligiblePaidTimeOff ?? [])
88
95
  t.name && t.accrualBalance != null && e.set(t.name, t.accrualBalance);
89
96
  return e;
90
- }, [a]), W = o(() => je(), []), C = o(
91
- () => J(
97
+ }, [a]), H = o(() => Qe(), []), C = o(
98
+ () => I(
92
99
  s,
93
100
  i,
94
101
  d,
95
- f,
102
+ y,
96
103
  c,
97
104
  p,
98
- y
105
+ E
99
106
  ),
100
107
  [
101
108
  s,
102
109
  i,
103
110
  d,
104
- f,
111
+ y,
105
112
  c,
106
113
  p,
107
- y
114
+ E
108
115
  ]
109
- ), r = Ae(
116
+ ), r = Te(
110
117
  {
111
- resolver: Me(W),
112
- mode: X,
113
- shouldFocusError: Z,
118
+ resolver: Ve(H),
119
+ mode: $,
120
+ shouldFocusError: ee,
114
121
  defaultValues: C,
115
122
  values: C,
116
123
  resetOptions: { keepDirtyValues: !0 }
117
124
  }
118
- ), H = Ce({ control: r.control, name: "timeOff" }), ie = !rt(g), v = K && ie, {
125
+ ), Q = Me({ control: r.control, name: "timeOff" }), le = !at(S), v = Z && le, {
119
126
  fields: R,
120
- append: Q,
121
- remove: Y,
122
- update: q
123
- } = Fe({
127
+ append: Y,
128
+ remove: q,
129
+ update: G
130
+ } = Ue({
124
131
  control: r.control,
125
132
  name: "reimbursements"
126
- }), [me, F] = O(!1), ue = o(
127
- () => Xe(P),
133
+ }), [ce, F] = O(!1), de = o(
134
+ () => tt(P),
128
135
  [P]
129
- ), le = o(
136
+ ), pe = o(
130
137
  () => R.map((e, t) => ({
131
138
  key: e.id,
132
139
  index: t,
@@ -136,81 +143,81 @@ function jt({
136
143
  recurring: e.recurring ?? !1
137
144
  })).filter((e) => parseFloat(e.amount || "0") !== 0),
138
145
  [R]
139
- ), ce = b(() => {
146
+ ), fe = h(() => {
140
147
  F(!0);
141
- }, []), de = b(() => {
148
+ }, []), ye = h(() => {
142
149
  r.setValue("reimbursementDraft", { description: "", amount: "" }), r.clearErrors("reimbursementDraft"), F(!1);
143
- }, [r]), pe = b(() => {
144
- const e = r.getValues("reimbursementDraft"), t = Ne.safeParse(e);
150
+ }, [r]), Ee = h(() => {
151
+ const e = r.getValues("reimbursementDraft"), t = Ye.safeParse(e);
145
152
  if (!t.success) {
146
153
  r.setError("reimbursementDraft.amount", {
147
- message: We.REIMBURSEMENT_AMOUNT
154
+ message: qe.REIMBURSEMENT_AMOUNT
148
155
  });
149
156
  return;
150
157
  }
151
- Q({
158
+ Y({
152
159
  uuid: null,
153
160
  description: t.data.description.trim(),
154
161
  amount: parseFloat(t.data.amount).toFixed(2),
155
162
  recurring: !1
156
163
  }), r.setValue("reimbursementDraft", { description: "", amount: "" }), r.clearErrors("reimbursementDraft"), F(!1);
157
- }, [Q, r]), fe = b(
164
+ }, [Y, r]), be = h(
158
165
  (e) => {
159
166
  const t = R[e];
160
- t && (t.uuid ? q(e, { ...t, amount: "0" }) : Y(e));
167
+ t && (t.uuid ? G(e, { ...t, amount: "0" }) : q(e));
161
168
  },
162
- [R, Y, q]
163
- ), M = o(
164
- () => Ze({
169
+ [R, q, G]
170
+ ), T = o(
171
+ () => rt({
165
172
  employeeCompensation: s,
166
- fixedCompensations: y,
173
+ fixedCompensations: E,
167
174
  workweeks: i,
168
- payrollCategory: g,
175
+ payrollCategory: S,
169
176
  hasDirectDepositSetup: d,
170
- overtimeEarningNames: f,
177
+ overtimeEarningNames: y,
171
178
  isOvertimeEligible: c,
172
179
  withOvertime: p,
173
- jobTitlesByUuid: N,
174
- timeOffAccrualByName: S,
180
+ jobTitlesByUuid: W,
181
+ timeOffAccrualByName: g,
175
182
  errorMessages: P
176
183
  }),
177
184
  [
178
185
  s,
179
- y,
186
+ E,
180
187
  i,
181
- g,
188
+ S,
182
189
  d,
183
- f,
190
+ y,
184
191
  c,
185
192
  p,
186
- N,
187
- S,
193
+ W,
194
+ g,
188
195
  P
189
196
  ]
190
- ), ye = o(
191
- () => M.timeOff.map((e) => ({
197
+ ), he = o(
198
+ () => T.timeOff.map((e) => ({
192
199
  ...e,
193
- remaining: $e(
194
- S.get(e.name),
195
- H[e.name]
200
+ remaining: ot(
201
+ g.get(e.name),
202
+ Q[e.name]
196
203
  )
197
204
  })),
198
- [M.timeOff, S, H]
199
- ), Ee = () => {
200
- ae(!0);
201
- const e = J(
205
+ [T.timeOff, g, Q]
206
+ ), Pe = () => {
207
+ ue(!0);
208
+ const e = I(
202
209
  s,
203
210
  i,
204
211
  d,
205
- f,
212
+ y,
206
213
  c,
207
214
  !0,
208
- y
209
- ), t = i[0]?.startDate ?? "", m = r.getValues(), w = (D, T) => {
210
- for (const [G, E] of Object.entries(D))
211
- for (const [Re, we] of Object.entries(E)) {
212
- const I = T?.[G]?.[Re]?.[t];
213
- I !== void 0 && (we[t] = I);
215
+ E
216
+ ), t = i[0]?.startDate ?? "", m = r.getValues(), w = (D, M) => {
217
+ for (const [J, b] of Object.entries(D))
218
+ for (const [Oe, ke] of Object.entries(b)) {
219
+ const K = M?.[J]?.[Oe]?.[t];
220
+ K !== void 0 && (ke[t] = K);
214
221
  }
215
222
  return D;
216
223
  };
@@ -226,53 +233,53 @@ function jt({
226
233
  ),
227
234
  { shouldDirty: !0 }
228
235
  );
229
- }, be = o(
236
+ }, Se = o(
230
237
  () => ({
231
- paymentMethod: et(
238
+ paymentMethod: st(
232
239
  { name: "paymentMethod" },
233
- Qe,
234
- He
240
+ ze,
241
+ Ge
235
242
  )
236
243
  }),
237
244
  []
238
245
  ), {
239
- baseSubmitHandler: he,
240
- error: Pe,
241
- setError: ge
242
- } = ut("PayrollEditEmployeeForm"), z = mt([{
243
- error: se,
246
+ baseSubmitHandler: ge,
247
+ error: ve,
248
+ setError: Re
249
+ } = pt("PayrollEditEmployeeForm"), z = dt([{
250
+ error: ie,
244
251
  refetch: (() => k())
245
- }, L], {
246
- submitError: Pe,
247
- setSubmitError: ge
248
- }), Se = at(r), ve = async () => {
252
+ }, j], {
253
+ submitError: ve,
254
+ setSubmitError: Re
255
+ }), we = lt(r), De = async () => {
249
256
  let e;
250
- const t = Je(r.getValues(), C);
257
+ const t = $e(r.getValues(), C);
251
258
  return t.hours && r.setValue("hours", t.hours, { shouldDirty: !0 }), t.overtimeIncludedEarnings && r.setValue("overtimeIncludedEarnings", t.overtimeIncludedEarnings, {
252
259
  shouldDirty: !0
253
260
  }), await new Promise((m) => {
254
261
  r.handleSubmit(
255
262
  async (w) => {
256
- await he(w, async (D) => {
257
- const T = Ke(
263
+ await ge(w, async (D) => {
264
+ const M = et(
258
265
  D,
259
266
  s,
260
267
  i,
261
- g,
268
+ S,
262
269
  c,
263
270
  p
264
- ), E = (await re({
271
+ ), b = (await ne({
265
272
  request: {
266
273
  companyId: l,
267
- payrollId: h,
268
- payrollUpdate: { employeeCompensations: [T] }
274
+ payrollId: f,
275
+ payrollUpdate: { employeeCompensations: [M] }
269
276
  }
270
277
  })).payrollPrepared;
271
- if (!E)
272
- throw new lt("Payroll update did not return a prepared payroll");
273
- B(E), await te.invalidateQueries({
274
- queryKey: [ot, h]
275
- }), e = { mode: "update", data: E };
278
+ if (!b)
279
+ throw new ft("Payroll update did not return a prepared payroll");
280
+ _(b), await se.invalidateQueries({
281
+ queryKey: [it, f]
282
+ }), e = { mode: "update", data: b };
276
283
  }), m();
277
284
  },
278
285
  () => {
@@ -287,40 +294,40 @@ function jt({
287
294
  employee: a,
288
295
  employeeCompensation: s,
289
296
  preparedPayroll: n,
290
- paySchedule: L.data?.payScheduleShow,
297
+ paySchedule: j.data?.payScheduleShow,
291
298
  isMultipleWorkweeks: i.length > 1,
292
299
  workweeks: i,
293
300
  isOvertimeEligible: c,
294
301
  withOvertime: p,
295
302
  hasDirectDepositSetup: d,
296
- ...v ? { reimbursements: le } : {}
303
+ ...v ? { reimbursements: pe } : {}
297
304
  },
298
- status: { isPending: oe, mode: "update" },
305
+ status: { isPending: ae, mode: "update" },
299
306
  actions: {
300
- onSubmit: ve,
301
- addOvertime: Ee,
307
+ onSubmit: De,
308
+ addOvertime: Pe,
302
309
  ...v ? {
303
- beginAddReimbursement: ce,
304
- saveReimbursement: pe,
305
- cancelReimbursement: de,
306
- removeReimbursement: fe
310
+ beginAddReimbursement: fe,
311
+ saveReimbursement: Ee,
312
+ cancelReimbursement: ye,
313
+ removeReimbursement: be
307
314
  } : {}
308
315
  },
309
316
  errorHandling: z,
310
317
  form: {
311
318
  Fields: {
312
- ...M,
313
- timeOff: ye,
314
- reimbursementDraft: v ? ue : void 0
319
+ ...T,
320
+ timeOff: he,
321
+ reimbursementDraft: v ? de : void 0
315
322
  },
316
- fieldsMetadata: be,
317
- hookFormInternals: Se,
318
- getFormSubmissionValues: it(r, W),
319
- ...v ? { reimbursementDraft: { isAdding: me } } : {}
323
+ fieldsMetadata: Se,
324
+ hookFormInternals: we,
325
+ getFormSubmissionValues: ct(r, H),
326
+ ...v ? { reimbursementDraft: { isAdding: ce } } : {}
320
327
  }
321
328
  };
322
329
  }
323
330
  export {
324
- jt as usePayrollEditEmployeeForm
331
+ Yt as usePayrollEditEmployeeForm
325
332
  };
326
333
  //# sourceMappingURL=usePayrollEditEmployeeForm.js.map