@gusto/embedded-react-sdk 0.43.0 → 0.44.1

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 (792) hide show
  1. package/CHANGELOG.md +108 -0
  2. package/README.md +23 -5
  3. package/dist/assets/icons/edit-02.svg.js +10 -0
  4. package/dist/assets/icons/edit-02.svg.js.map +1 -0
  5. package/dist/components/Base/useBaseSubmit.js +6 -6
  6. package/dist/components/Base/useBaseSubmit.js.map +1 -1
  7. package/dist/components/Common/DataView/DataTable/DataTable.js +86 -64
  8. package/dist/components/Common/DataView/DataTable/DataTable.js.map +1 -1
  9. package/dist/components/Common/DetailViewLayout/DetailViewLayout.js +52 -0
  10. package/dist/components/Common/DetailViewLayout/DetailViewLayout.js.map +1 -0
  11. package/dist/components/Common/DetailViewLayout/DetailViewLayout.module.scss.js +18 -0
  12. package/dist/components/Common/DetailViewLayout/DetailViewLayout.module.scss.js.map +1 -0
  13. package/dist/components/Common/Fields/hooks/FieldElementRegistryProvider.d.ts +13 -0
  14. package/dist/components/Common/Fields/hooks/FieldElementRegistryProvider.js +12 -0
  15. package/dist/components/Common/Fields/hooks/FieldElementRegistryProvider.js.map +1 -0
  16. package/dist/components/Common/Fields/hooks/fieldElementRegistry.d.ts +21 -0
  17. package/dist/components/Common/Fields/hooks/fieldElementRegistry.js +29 -0
  18. package/dist/components/Common/Fields/hooks/fieldElementRegistry.js.map +1 -0
  19. package/dist/components/Common/Fields/hooks/useField.js +43 -37
  20. package/dist/components/Common/Fields/hooks/useField.js.map +1 -1
  21. package/dist/components/Common/Flex/Flex.d.ts +2 -1
  22. package/dist/components/Common/Flex/Flex.js +14 -12
  23. package/dist/components/Common/Flex/Flex.js.map +1 -1
  24. package/dist/components/Common/Flex/Flex.module.scss.js +4 -4
  25. package/dist/components/Common/TaxInputs/TaxInputs.js +1 -1
  26. package/dist/components/Common/TaxInputs/TaxInputs.js.map +1 -1
  27. package/dist/components/Common/UI/Button/Button.module.scss.js +2 -2
  28. package/dist/components/Common/UI/Dialog/Dialog.js +35 -36
  29. package/dist/components/Common/UI/Dialog/Dialog.js.map +1 -1
  30. package/dist/components/Common/UI/Switch/SwitchTypes.d.ts +2 -2
  31. package/dist/components/Common/UI/Switch/SwitchTypes.js.map +1 -1
  32. package/dist/components/Company/AssignSignatory/AssignSignatory.js +6 -7
  33. package/dist/components/Company/AssignSignatory/AssignSignatory.js.map +1 -1
  34. package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js +3 -2
  35. package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js.map +1 -1
  36. package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.js +3 -2
  37. package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.js.map +1 -1
  38. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatory.js +6 -7
  39. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatory.js.map +1 -1
  40. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.js +2 -3
  41. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.js.map +1 -1
  42. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js +7 -4
  43. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js.map +1 -1
  44. package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.js +3 -2
  45. package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.js.map +1 -1
  46. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatory.js +5 -6
  47. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatory.js.map +1 -1
  48. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatoryForm.js +9 -10
  49. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatoryForm.js.map +1 -1
  50. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js +7 -4
  51. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js.map +1 -1
  52. package/dist/components/Company/AssignSignatory/useAssignSignatory.js +9 -6
  53. package/dist/components/Company/AssignSignatory/useAssignSignatory.js.map +1 -1
  54. package/dist/components/Company/BankAccount/BankAccountForm/Actions.js +6 -6
  55. package/dist/components/Company/BankAccount/BankAccountForm/Form.js +9 -8
  56. package/dist/components/Company/BankAccount/BankAccountForm/Form.js.map +1 -1
  57. package/dist/components/Company/BankAccount/BankAccountForm/context.js +7 -4
  58. package/dist/components/Company/BankAccount/BankAccountForm/context.js.map +1 -1
  59. package/dist/components/Company/BankAccount/BankAccountList/Actions.js +9 -8
  60. package/dist/components/Company/BankAccount/BankAccountList/Actions.js.map +1 -1
  61. package/dist/components/Company/BankAccount/BankAccountVerify/Actions.js +8 -7
  62. package/dist/components/Company/BankAccount/BankAccountVerify/Actions.js.map +1 -1
  63. package/dist/components/Company/BankAccount/BankAccountVerify/Form.js +5 -4
  64. package/dist/components/Company/BankAccount/BankAccountVerify/Form.js.map +1 -1
  65. package/dist/components/Company/DocumentSigner/DocumentList/Actions.js +3 -2
  66. package/dist/components/Company/DocumentSigner/DocumentList/Actions.js.map +1 -1
  67. package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.js +11 -12
  68. package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.js.map +1 -1
  69. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js +7 -4
  70. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  71. package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js +8 -8
  72. package/dist/components/Company/DocumentSigner/shared/useSignCompanyForm/useSignCompanyForm.js +26 -25
  73. package/dist/components/Company/DocumentSigner/shared/useSignCompanyForm/useSignCompanyForm.js.map +1 -1
  74. package/dist/components/Company/FederalTaxes/Actions.js +6 -5
  75. package/dist/components/Company/FederalTaxes/Actions.js.map +1 -1
  76. package/dist/components/Company/FederalTaxes/FederalTaxes.js +2 -3
  77. package/dist/components/Company/FederalTaxes/FederalTaxes.js.map +1 -1
  78. package/dist/components/Company/FederalTaxes/Form.js +3 -2
  79. package/dist/components/Company/FederalTaxes/Form.js.map +1 -1
  80. package/dist/components/Company/FederalTaxes/useFederalTaxes.js +12 -9
  81. package/dist/components/Company/FederalTaxes/useFederalTaxes.js.map +1 -1
  82. package/dist/components/Company/Industry/Actions.js +3 -2
  83. package/dist/components/Company/Industry/Actions.js.map +1 -1
  84. package/dist/components/Company/Industry/Context.js +10 -7
  85. package/dist/components/Company/Industry/Context.js.map +1 -1
  86. package/dist/components/Company/Industry/Edit.js +5 -4
  87. package/dist/components/Company/Industry/Edit.js.map +1 -1
  88. package/dist/components/Company/Locations/LocationForm/Actions.js +7 -6
  89. package/dist/components/Company/Locations/LocationForm/Actions.js.map +1 -1
  90. package/dist/components/Company/Locations/LocationForm/Form.js +4 -5
  91. package/dist/components/Company/Locations/LocationForm/Form.js.map +1 -1
  92. package/dist/components/Company/Locations/LocationForm/LocationForm.js +12 -13
  93. package/dist/components/Company/Locations/LocationForm/LocationForm.js.map +1 -1
  94. package/dist/components/Company/Locations/LocationForm/index.d.ts +2 -0
  95. package/dist/components/Company/Locations/LocationForm/useLocationForm.js +7 -4
  96. package/dist/components/Company/Locations/LocationForm/useLocationForm.js.map +1 -1
  97. package/dist/components/Company/Locations/LocationsList/Actions.js +7 -6
  98. package/dist/components/Company/Locations/LocationsList/Actions.js.map +1 -1
  99. package/dist/components/Company/Locations/LocationsList/List.js +8 -7
  100. package/dist/components/Company/Locations/LocationsList/List.js.map +1 -1
  101. package/dist/components/Company/Locations/LocationsList/LocationsList.js +6 -7
  102. package/dist/components/Company/Locations/LocationsList/LocationsList.js.map +1 -1
  103. package/dist/components/Company/Locations/LocationsList/useLocationsList.js +7 -4
  104. package/dist/components/Company/Locations/LocationsList/useLocationsList.js.map +1 -1
  105. package/dist/components/Company/OnboardingOverview/Completed.js +11 -10
  106. package/dist/components/Company/OnboardingOverview/Completed.js.map +1 -1
  107. package/dist/components/Company/OnboardingOverview/MissingRequirements.js +3 -2
  108. package/dist/components/Company/OnboardingOverview/MissingRequirements.js.map +1 -1
  109. package/dist/components/Company/OnboardingOverview/OnboardingOverview.js +2 -3
  110. package/dist/components/Company/OnboardingOverview/OnboardingOverview.js.map +1 -1
  111. package/dist/components/Company/OnboardingOverview/context.js +7 -4
  112. package/dist/components/Company/OnboardingOverview/context.js.map +1 -1
  113. package/dist/components/Company/PaySchedule/PaySchedule.d.ts +2 -2
  114. package/dist/components/Company/PaySchedule/PaySchedule.js +6 -6
  115. package/dist/components/Company/PaySchedule/PaySchedule.js.map +1 -1
  116. package/dist/components/Company/PaySchedule/PayScheduleForm.js +2 -3
  117. package/dist/components/Company/PaySchedule/PayScheduleForm.js.map +1 -1
  118. package/dist/components/Company/PaySchedule/PayScheduleList.js +9 -9
  119. package/dist/components/Company/PaySchedule/PayScheduleList.js.map +1 -1
  120. package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/usePayScheduleForm.d.ts +3 -3
  121. package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/usePayScheduleForm.js +58 -57
  122. package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/usePayScheduleForm.js.map +1 -1
  123. package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.js +3 -2
  124. package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.js.map +1 -1
  125. package/dist/components/Company/StateTaxes/StateTaxesForm/Form.js +12 -11
  126. package/dist/components/Company/StateTaxes/StateTaxesForm/Form.js.map +1 -1
  127. package/dist/components/Company/StateTaxes/StateTaxesForm/StateTaxesForm.js +67 -63
  128. package/dist/components/Company/StateTaxes/StateTaxesForm/StateTaxesForm.js.map +1 -1
  129. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js +7 -4
  130. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js.map +1 -1
  131. package/dist/components/Company/StateTaxes/StateTaxesForm/rhfKey.d.ts +2 -0
  132. package/dist/components/Company/StateTaxes/StateTaxesForm/rhfKey.js +6 -0
  133. package/dist/components/Company/StateTaxes/StateTaxesForm/rhfKey.js.map +1 -0
  134. package/dist/components/Company/StateTaxes/StateTaxesList/Actions.js +3 -2
  135. package/dist/components/Company/StateTaxes/StateTaxesList/Actions.js.map +1 -1
  136. package/dist/components/Company/StateTaxes/StateTaxesList/List.js +57 -26
  137. package/dist/components/Company/StateTaxes/StateTaxesList/List.js.map +1 -1
  138. package/dist/components/Company/StateTaxes/StateTaxesList/context.js +7 -4
  139. package/dist/components/Company/StateTaxes/StateTaxesList/context.js.map +1 -1
  140. package/dist/components/Company/exports/companyOnboarding.d.ts +3 -0
  141. package/dist/components/Company/exports/companyOnboarding.js +21 -15
  142. package/dist/components/Company/exports/companyOnboarding.js.map +1 -1
  143. package/dist/components/Company/index.d.ts +1 -0
  144. package/dist/components/Company/index.js +14 -12
  145. package/dist/components/Company/index.js.map +1 -1
  146. package/dist/components/Contractor/Address/Address.js +18 -19
  147. package/dist/components/Contractor/Address/Address.js.map +1 -1
  148. package/dist/components/Contractor/Address/Form.js +2 -3
  149. package/dist/components/Contractor/Address/Form.js.map +1 -1
  150. package/dist/components/Contractor/Address/Head.js +7 -6
  151. package/dist/components/Contractor/Address/Head.js.map +1 -1
  152. package/dist/components/Contractor/Address/useAddress.js +9 -6
  153. package/dist/components/Contractor/Address/useAddress.js.map +1 -1
  154. package/dist/components/Contractor/ContractorList/index.js +17 -17
  155. package/dist/components/Contractor/PaymentMethod/BankAccountForm.js +3 -2
  156. package/dist/components/Contractor/PaymentMethod/BankAccountForm.js.map +1 -1
  157. package/dist/components/Contractor/PaymentMethod/PaymentMethod.js +8 -8
  158. package/dist/components/Contractor/PaymentMethod/PaymentMethod.js.map +1 -1
  159. package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.js +3 -2
  160. package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.js.map +1 -1
  161. package/dist/components/Contractor/Payments/CreatePayment/EditContractorPaymentPresentation.js +2 -3
  162. package/dist/components/Contractor/Payments/CreatePayment/EditContractorPaymentPresentation.js.map +1 -1
  163. package/dist/components/Contractor/Payments/CreatePayment/FastAchSubmissionBlockerBanner.js +6 -5
  164. package/dist/components/Contractor/Payments/CreatePayment/FastAchSubmissionBlockerBanner.js.map +1 -1
  165. package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.js +1 -1
  166. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.js +3 -2
  167. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.js.map +1 -1
  168. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.js +3 -2
  169. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.js.map +1 -1
  170. package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummaryPresentation.js +3 -2
  171. package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummaryPresentation.js.map +1 -1
  172. package/dist/components/Contractor/Payments/PaymentsList/PaymentsList.js +5 -5
  173. package/dist/components/Contractor/Payments/PaymentsList/PaymentsList.js.map +1 -1
  174. package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.js +8 -7
  175. package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.js.map +1 -1
  176. package/dist/components/Contractor/Profile/useContractorProfile.js +35 -34
  177. package/dist/components/Contractor/Profile/useContractorProfile.js.map +1 -1
  178. package/dist/components/Contractor/Submit/Submit.js +23 -21
  179. package/dist/components/Contractor/Submit/Submit.js.map +1 -1
  180. package/dist/components/Employee/Compensation/Compensation.d.ts +7 -4
  181. package/dist/components/Employee/Compensation/Compensation.js +72 -179
  182. package/dist/components/Employee/Compensation/Compensation.js.map +1 -1
  183. package/dist/components/Employee/Compensation/CompensationFlowComponents.d.ts +27 -0
  184. package/dist/components/Employee/Compensation/CompensationFlowComponents.js +61 -0
  185. package/dist/components/Employee/Compensation/CompensationFlowComponents.js.map +1 -0
  186. package/dist/components/Employee/Compensation/EditCompensation/EditCompensation.d.ts +14 -0
  187. package/dist/components/Employee/Compensation/EditCompensation/EditCompensation.js +128 -0
  188. package/dist/components/Employee/Compensation/EditCompensation/EditCompensation.js.map +1 -0
  189. package/dist/components/Employee/Compensation/EditCompensation/EditCompensationPresentation.d.ts +17 -0
  190. package/dist/components/Employee/Compensation/EditCompensation/EditCompensationPresentation.js +224 -0
  191. package/dist/components/Employee/Compensation/EditCompensation/EditCompensationPresentation.js.map +1 -0
  192. package/dist/components/Employee/Compensation/EditCompensation/index.d.ts +5 -0
  193. package/dist/components/Employee/Compensation/JobsList/JobsList.d.ts +5 -0
  194. package/dist/components/Employee/Compensation/JobsList/JobsList.js +47 -0
  195. package/dist/components/Employee/Compensation/JobsList/JobsList.js.map +1 -0
  196. package/dist/components/Employee/Compensation/JobsList/JobsListPresentation.d.ts +11 -0
  197. package/dist/components/Employee/Compensation/JobsList/JobsListPresentation.js +98 -0
  198. package/dist/components/Employee/Compensation/JobsList/JobsListPresentation.js.map +1 -0
  199. package/dist/components/Employee/Compensation/JobsList/index.d.ts +5 -0
  200. package/dist/components/Employee/Compensation/{useCompensation.d.ts → compensationSchema.d.ts} +0 -22
  201. package/dist/components/Employee/Compensation/{useCompensation.js → compensationSchema.js} +9 -12
  202. package/dist/components/Employee/Compensation/compensationSchema.js.map +1 -0
  203. package/dist/components/Employee/Compensation/compensationStateMachine.d.ts +6 -0
  204. package/dist/components/Employee/Compensation/compensationStateMachine.js +73 -0
  205. package/dist/components/Employee/Compensation/compensationStateMachine.js.map +1 -0
  206. package/dist/components/Employee/Compensation/shared/useCompensationForm/compensationSchema.d.ts +62 -36
  207. package/dist/components/Employee/Compensation/shared/useCompensationForm/compensationSchema.js +81 -57
  208. package/dist/components/Employee/Compensation/shared/useCompensationForm/compensationSchema.js.map +1 -1
  209. package/dist/components/Employee/Compensation/shared/useCompensationForm/fields.d.ts +5 -12
  210. package/dist/components/Employee/Compensation/shared/useCompensationForm/fields.js +22 -35
  211. package/dist/components/Employee/Compensation/shared/useCompensationForm/fields.js.map +1 -1
  212. package/dist/components/Employee/Compensation/shared/useCompensationForm/index.d.ts +5 -3
  213. package/dist/components/Employee/Compensation/shared/useCompensationForm/useCompensationForm.d.ts +55 -13
  214. package/dist/components/Employee/Compensation/shared/useCompensationForm/useCompensationForm.js +216 -226
  215. package/dist/components/Employee/Compensation/shared/useCompensationForm/useCompensationForm.js.map +1 -1
  216. package/dist/components/Employee/Compensation/shared/useCompensationForm/useCurrentCompensationForm.d.ts +15 -0
  217. package/dist/components/Employee/Compensation/shared/useCompensationForm/useCurrentCompensationForm.js +27 -0
  218. package/dist/components/Employee/Compensation/shared/useCompensationForm/useCurrentCompensationForm.js.map +1 -0
  219. package/dist/components/Employee/Compensation/shared/useJobForm/fields.d.ts +19 -0
  220. package/dist/components/Employee/Compensation/shared/useJobForm/fields.js +29 -0
  221. package/dist/components/Employee/Compensation/shared/useJobForm/fields.js.map +1 -0
  222. package/dist/components/Employee/Compensation/shared/useJobForm/index.d.ts +7 -0
  223. package/dist/components/Employee/Compensation/shared/useJobForm/jobSchema.d.ts +43 -0
  224. package/dist/components/Employee/Compensation/shared/useJobForm/jobSchema.js +37 -0
  225. package/dist/components/Employee/Compensation/shared/useJobForm/jobSchema.js.map +1 -0
  226. package/dist/components/Employee/Compensation/shared/useJobForm/useCurrentJobForm.d.ts +13 -0
  227. package/dist/components/Employee/Compensation/shared/useJobForm/useCurrentJobForm.js +26 -0
  228. package/dist/components/Employee/Compensation/shared/useJobForm/useCurrentJobForm.js.map +1 -0
  229. package/dist/components/Employee/Compensation/shared/useJobForm/useJobForm.d.ts +56 -0
  230. package/dist/components/Employee/Compensation/shared/useJobForm/useJobForm.js +180 -0
  231. package/dist/components/Employee/Compensation/shared/useJobForm/useJobForm.js.map +1 -0
  232. package/dist/components/Employee/Dashboard/BasicDetailsView.js +15 -13
  233. package/dist/components/Employee/Dashboard/BasicDetailsView.js.map +1 -1
  234. package/dist/components/Employee/Dashboard/DashboardComponents.d.ts +3 -0
  235. package/dist/components/Employee/Dashboard/DashboardComponents.js +33 -15
  236. package/dist/components/Employee/Dashboard/DashboardComponents.js.map +1 -1
  237. package/dist/components/Employee/Dashboard/DocumentsView.js +13 -11
  238. package/dist/components/Employee/Dashboard/DocumentsView.js.map +1 -1
  239. package/dist/components/Employee/Dashboard/JobAndPayView.js +11 -9
  240. package/dist/components/Employee/Dashboard/JobAndPayView.js.map +1 -1
  241. package/dist/components/Employee/Dashboard/TaxesView.js +21 -19
  242. package/dist/components/Employee/Dashboard/TaxesView.js.map +1 -1
  243. package/dist/components/Employee/Dashboard/dashboardStateMachine.d.ts +3 -0
  244. package/dist/components/Employee/Dashboard/dashboardStateMachine.js +54 -33
  245. package/dist/components/Employee/Dashboard/dashboardStateMachine.js.map +1 -1
  246. package/dist/components/Employee/Dashboard/hooks/useEmployeeCompensation.d.ts +1 -1
  247. package/dist/components/Employee/Dashboard/hooks/useEmployeeCompensation.js +6 -6
  248. package/dist/components/Employee/Dashboard/hooks/useEmployeeCompensation.js.map +1 -1
  249. package/dist/components/Employee/Dashboard/hooks/useEmployeeForms.js +3 -3
  250. package/dist/components/Employee/Dashboard/hooks/useEmployeeForms.js.map +1 -1
  251. package/dist/components/Employee/Deductions/Deductions.js +7 -7
  252. package/dist/components/Employee/Deductions/Deductions.js.map +1 -1
  253. package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.js +36 -33
  254. package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.js.map +1 -1
  255. package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.js +48 -41
  256. package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.js.map +1 -1
  257. package/dist/components/Employee/Deductions/DeductionsForm/DeductionsForm.js +2 -2
  258. package/dist/components/Employee/Deductions/DeductionsForm/DeductionsForm.js.map +1 -1
  259. package/dist/components/Employee/Deductions/DeductionsForm/GarnishmentForm.d.ts +1 -2
  260. package/dist/components/Employee/Deductions/DeductionsForm/GarnishmentForm.js +23 -20
  261. package/dist/components/Employee/Deductions/DeductionsForm/GarnishmentForm.js.map +1 -1
  262. package/dist/components/Employee/Deductions/DeductionsList/DeductionsList.js +30 -30
  263. package/dist/components/Employee/Deductions/DeductionsList/DeductionsList.js.map +1 -1
  264. package/dist/components/Employee/Deductions/IncludeDeductions/IncludeDeductions.js +2 -3
  265. package/dist/components/Employee/Deductions/IncludeDeductions/IncludeDeductions.js.map +1 -1
  266. package/dist/components/Employee/DocumentSigner/DocumentList/Actions.js +7 -6
  267. package/dist/components/Employee/DocumentSigner/DocumentList/Actions.js.map +1 -1
  268. package/dist/components/Employee/DocumentSigner/DocumentList/DocumentList.js +13 -14
  269. package/dist/components/Employee/DocumentSigner/DocumentList/DocumentList.js.map +1 -1
  270. package/dist/components/Employee/DocumentSigner/DocumentList/List.js +3 -2
  271. package/dist/components/Employee/DocumentSigner/DocumentList/List.js.map +1 -1
  272. package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js +7 -4
  273. package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  274. package/dist/components/Employee/DocumentSigner/DocumentSigner.js +1 -1
  275. package/dist/components/Employee/DocumentSigner/DocumentSigner.js.map +1 -1
  276. package/dist/components/Employee/DocumentSigner/EmploymentEligibility/EmploymentEligibilityPresentation.js +15 -14
  277. package/dist/components/Employee/DocumentSigner/EmploymentEligibility/EmploymentEligibilityPresentation.js.map +1 -1
  278. package/dist/components/Employee/DocumentSigner/EmploymentEligibility/EmploymentEligibilitySchema.js +1 -1
  279. package/dist/components/Employee/DocumentSigner/EmploymentEligibility/EmploymentEligibilitySchema.js.map +1 -1
  280. package/dist/components/Employee/DocumentSigner/I9SignatureForm/I9SignatureForm.js +5 -5
  281. package/dist/components/Employee/DocumentSigner/SignatureForm/SignatureForm.js +7 -7
  282. package/dist/components/Employee/DocumentSigner/shared/useSignEmployeeForm/useSignEmployeeForm.js +69 -68
  283. package/dist/components/Employee/DocumentSigner/shared/useSignEmployeeForm/useSignEmployeeForm.js.map +1 -1
  284. package/dist/components/Employee/EmployeeDocuments/EmployeeDocumentsPresentation.js +3 -2
  285. package/dist/components/Employee/EmployeeDocuments/EmployeeDocumentsPresentation.js.map +1 -1
  286. package/dist/components/Employee/EmployeeList/management/ManagementEmployeeListView.js +8 -7
  287. package/dist/components/Employee/EmployeeList/management/ManagementEmployeeListView.js.map +1 -1
  288. package/dist/components/Employee/EmployeeList/onboarding/EmployeeListView.js +18 -17
  289. package/dist/components/Employee/EmployeeList/onboarding/EmployeeListView.js.map +1 -1
  290. package/dist/components/Employee/FederalTaxes/index.d.ts +3 -1
  291. package/dist/components/Employee/FederalTaxes/management/FederalTaxes.d.ts +8 -0
  292. package/dist/components/Employee/FederalTaxes/management/FederalTaxes.js +71 -0
  293. package/dist/components/Employee/FederalTaxes/management/FederalTaxes.js.map +1 -0
  294. package/dist/components/Employee/FederalTaxes/management/index.d.ts +2 -0
  295. package/dist/components/Employee/FederalTaxes/onboarding/FederalTaxes.d.ts +8 -0
  296. package/dist/components/Employee/FederalTaxes/onboarding/FederalTaxes.js +55 -0
  297. package/dist/components/Employee/FederalTaxes/onboarding/FederalTaxes.js.map +1 -0
  298. package/dist/components/Employee/FederalTaxes/onboarding/index.d.ts +2 -0
  299. package/dist/components/Employee/FederalTaxes/shared/FederalTaxesView.d.ts +15 -0
  300. package/dist/components/Employee/FederalTaxes/shared/FederalTaxesView.js +104 -0
  301. package/dist/components/Employee/FederalTaxes/shared/FederalTaxesView.js.map +1 -0
  302. package/dist/components/Employee/FederalTaxes/shared/index.d.ts +3 -0
  303. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/federalTaxesSchema.d.ts +41 -0
  304. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/federalTaxesSchema.js +40 -0
  305. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/federalTaxesSchema.js.map +1 -0
  306. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/fields.d.ts +18 -0
  307. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/fields.js +31 -0
  308. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/fields.js.map +1 -0
  309. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/index.d.ts +5 -0
  310. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/useFederalTaxesForm.d.ts +37 -0
  311. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/useFederalTaxesForm.js +140 -0
  312. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/useFederalTaxesForm.js.map +1 -0
  313. package/dist/components/Employee/HomeAddress/management/HomeAddressView.js +2 -3
  314. package/dist/components/Employee/HomeAddress/management/HomeAddressView.js.map +1 -1
  315. package/dist/components/Employee/Landing/Landing.js +8 -8
  316. package/dist/components/Employee/OnboardingFlow/OnboardingFlowComponents.d.ts +1 -1
  317. package/dist/components/Employee/OnboardingFlow/OnboardingFlowComponents.js +2 -2
  318. package/dist/components/Employee/OnboardingFlow/OnboardingFlowComponents.js.map +1 -1
  319. package/dist/components/Employee/OnboardingFlow/onboardingStateMachine.js +1 -1
  320. package/dist/components/Employee/OnboardingFlow/onboardingStateMachine.js.map +1 -1
  321. package/dist/components/Employee/OnboardingSummary/OnboardingSummary.js +7 -7
  322. package/dist/components/Employee/PaymentMethod/Actions.js +6 -5
  323. package/dist/components/Employee/PaymentMethod/Actions.js.map +1 -1
  324. package/dist/components/Employee/PaymentMethod/BankAccountsList.js +4 -4
  325. package/dist/components/Employee/PaymentMethod/PaymentMethod.js +14 -14
  326. package/dist/components/Employee/PaymentMethod/PaymentMethod.js.map +1 -1
  327. package/dist/components/Employee/PaymentMethod/Split.js +1 -1
  328. package/dist/components/Employee/PaymentMethod/usePaymentMethod.js +9 -6
  329. package/dist/components/Employee/PaymentMethod/usePaymentMethod.js.map +1 -1
  330. package/dist/components/Employee/Profile/management/Profile.d.ts +6 -0
  331. package/dist/components/Employee/Profile/management/Profile.js +122 -0
  332. package/dist/components/Employee/Profile/management/Profile.js.map +1 -0
  333. package/dist/components/Employee/Profile/management/Profile.module.scss.js +8 -0
  334. package/dist/components/Employee/Profile/management/Profile.module.scss.js.map +1 -0
  335. package/dist/components/Employee/Profile/{AdminProfile.js → onboarding/AdminProfile.js} +15 -15
  336. package/dist/components/Employee/Profile/onboarding/AdminProfile.js.map +1 -0
  337. package/dist/components/Employee/Profile/{EmployeeProfile.js → onboarding/EmployeeProfile.js} +14 -14
  338. package/dist/components/Employee/Profile/onboarding/EmployeeProfile.js.map +1 -0
  339. package/dist/components/Employee/Profile/{Profile.d.ts → onboarding/Profile.d.ts} +2 -2
  340. package/dist/components/Employee/Profile/{Profile.js → onboarding/Profile.js} +4 -4
  341. package/dist/components/Employee/Profile/onboarding/Profile.js.map +1 -0
  342. package/dist/components/Employee/Profile/shared/useEmployeeDetailsForm/useEmployeeDetailsForm.d.ts +9 -4
  343. package/dist/components/Employee/Profile/shared/useEmployeeDetailsForm/useEmployeeDetailsForm.js +61 -58
  344. package/dist/components/Employee/Profile/shared/useEmployeeDetailsForm/useEmployeeDetailsForm.js.map +1 -1
  345. package/dist/components/Employee/Profile/shared/useHomeAddressForm/useHomeAddressForm.js +40 -39
  346. package/dist/components/Employee/Profile/shared/useHomeAddressForm/useHomeAddressForm.js.map +1 -1
  347. package/dist/components/Employee/Profile/shared/useWorkAddressForm/useWorkAddressForm.js +47 -46
  348. package/dist/components/Employee/Profile/shared/useWorkAddressForm/useWorkAddressForm.js.map +1 -1
  349. package/dist/components/Employee/SelfOnboardingFlow/SelfOnboardingComponents.js +14 -14
  350. package/dist/components/Employee/SelfOnboardingFlow/SelfOnboardingComponents.js.map +1 -1
  351. package/dist/components/Employee/StateTaxes/index.d.ts +2 -1
  352. package/dist/components/Employee/StateTaxes/management/StateTaxes.d.ts +6 -0
  353. package/dist/components/Employee/StateTaxes/management/StateTaxes.js +59 -0
  354. package/dist/components/Employee/StateTaxes/management/StateTaxes.js.map +1 -0
  355. package/dist/components/Employee/StateTaxes/management/index.d.ts +2 -0
  356. package/dist/components/Employee/StateTaxes/onboarding/StateTaxes.d.ts +8 -0
  357. package/dist/components/Employee/StateTaxes/onboarding/StateTaxes.js +49 -0
  358. package/dist/components/Employee/StateTaxes/onboarding/StateTaxes.js.map +1 -0
  359. package/dist/components/Employee/StateTaxes/onboarding/index.d.ts +2 -0
  360. package/dist/components/Employee/StateTaxes/shared/EmployeeStateTaxesView.d.ts +14 -0
  361. package/dist/components/Employee/StateTaxes/shared/EmployeeStateTaxesView.js +32 -0
  362. package/dist/components/Employee/StateTaxes/shared/EmployeeStateTaxesView.js.map +1 -0
  363. package/dist/components/Employee/StateTaxes/shared/index.d.ts +3 -0
  364. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/__fixtures__/stateTaxesFixtures.d.ts +8 -0
  365. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/__fixtures__/toWireFormat.d.ts +36 -0
  366. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/employeeStateTaxesSchema.d.ts +56 -0
  367. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/employeeStateTaxesSchema.js +116 -0
  368. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/employeeStateTaxesSchema.js.map +1 -0
  369. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fieldComponents.d.ts +12 -0
  370. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fieldComponents.js +76 -0
  371. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fieldComponents.js.map +1 -0
  372. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fieldMapping.d.ts +14 -0
  373. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fieldMapping.js +23 -0
  374. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fieldMapping.js.map +1 -0
  375. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fieldMeta.d.ts +6 -0
  376. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fieldProps.d.ts +39 -0
  377. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fields.d.ts +46 -0
  378. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fields.js +93 -0
  379. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fields.js.map +1 -0
  380. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/index.d.ts +6 -0
  381. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/useEmployeeStateTaxesForm.d.ts +36 -0
  382. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/useEmployeeStateTaxesForm.js +159 -0
  383. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/useEmployeeStateTaxesForm.js.map +1 -0
  384. package/dist/components/Employee/Taxes/Actions.js +9 -8
  385. package/dist/components/Employee/Taxes/Actions.js.map +1 -1
  386. package/dist/components/Employee/Taxes/FederalForm.js +5 -4
  387. package/dist/components/Employee/Taxes/FederalForm.js.map +1 -1
  388. package/dist/components/Employee/Taxes/useTaxes.js +7 -4
  389. package/dist/components/Employee/Taxes/useTaxes.js.map +1 -1
  390. package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployee.js +11 -11
  391. package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployee.js.map +1 -1
  392. package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployeePresentation.js +3 -2
  393. package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployeePresentation.js.map +1 -1
  394. package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlowComponents.js +4 -4
  395. package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummary.js +3 -3
  396. package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummary.js.map +1 -1
  397. package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummaryPresentation.js +3 -2
  398. package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummaryPresentation.js.map +1 -1
  399. package/dist/components/Employee/WorkAddress/management/WorkAddressView.js +2 -3
  400. package/dist/components/Employee/WorkAddress/management/WorkAddressView.js.map +1 -1
  401. package/dist/components/Employee/exports/employeeManagement.d.ts +3 -0
  402. package/dist/components/Employee/exports/employeeManagement.js +16 -10
  403. package/dist/components/Employee/exports/employeeManagement.js.map +1 -1
  404. package/dist/components/Employee/exports/employeeOnboarding.d.ts +3 -3
  405. package/dist/components/Employee/exports/employeeOnboarding.js +19 -19
  406. package/dist/components/Employee/index.d.ts +2 -1
  407. package/dist/components/Employee/index.js +37 -37
  408. package/dist/components/Flow/FlowHeader.js +8 -8
  409. package/dist/components/Flow/FlowHeader.js.map +1 -1
  410. package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.js +61 -65
  411. package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.js.map +1 -1
  412. package/dist/components/InformationRequests/InformationRequestList/InformationRequestList.js +5 -5
  413. package/dist/components/InformationRequests/InformationRequestList/InformationRequestList.js.map +1 -1
  414. package/dist/components/InformationRequests/InformationRequests.js +1 -1
  415. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsForm/ConfirmWireDetailsForm.js +17 -17
  416. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsForm/ConfirmWireDetailsForm.js.map +1 -1
  417. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelection.js +7 -7
  418. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelection.js.map +1 -1
  419. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelectionPresentation.js +3 -2
  420. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelectionPresentation.js.map +1 -1
  421. package/dist/components/Payroll/GrossUpModal/GrossUpModal.js +23 -21
  422. package/dist/components/Payroll/GrossUpModal/GrossUpModal.js.map +1 -1
  423. package/dist/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.js +3 -2
  424. package/dist/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.js.map +1 -1
  425. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormPresentation.js +1 -0
  426. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormPresentation.js.map +1 -1
  427. package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelectionPresentation.js +7 -6
  428. package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelectionPresentation.js.map +1 -1
  429. package/dist/components/Payroll/OffCycleTaxWithholdingModal/OffCycleTaxWithholdingModal.js +3 -2
  430. package/dist/components/Payroll/OffCycleTaxWithholdingModal/OffCycleTaxWithholdingModal.js.map +1 -1
  431. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerAlerts.js +9 -8
  432. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerAlerts.js.map +1 -1
  433. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerList.js +20 -20
  434. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerList.js.map +1 -1
  435. package/dist/components/Payroll/PayrollBlocker/payrollHelpers.d.ts +2 -2
  436. package/dist/components/Payroll/PayrollBlocker/payrollHelpers.js +21 -25
  437. package/dist/components/Payroll/PayrollBlocker/payrollHelpers.js.map +1 -1
  438. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.d.ts +1 -1
  439. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js +2 -3
  440. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js.map +1 -1
  441. package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.d.ts +2 -2
  442. package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.js +1 -1
  443. package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.js.map +1 -1
  444. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.js +4 -4
  445. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.js.map +1 -1
  446. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.d.ts +1 -1
  447. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js +2 -3
  448. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js.map +1 -1
  449. package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js +17 -16
  450. package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js.map +1 -1
  451. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js +3 -2
  452. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js.map +1 -1
  453. package/dist/components/Payroll/PayrollList/PayrollList.js +4 -4
  454. package/dist/components/Payroll/PayrollList/PayrollList.js.map +1 -1
  455. package/dist/components/Payroll/PayrollList/PayrollListPresentation.d.ts +2 -2
  456. package/dist/components/Payroll/PayrollList/PayrollListPresentation.js +3 -2
  457. package/dist/components/Payroll/PayrollList/PayrollListPresentation.js.map +1 -1
  458. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js +2 -3
  459. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js.map +1 -1
  460. package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/FastAchSubmissionBlockerBanner.js +3 -2
  461. package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/FastAchSubmissionBlockerBanner.js.map +1 -1
  462. package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js +3 -2
  463. package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js.map +1 -1
  464. package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.js +9 -9
  465. package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.js.map +1 -1
  466. package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.js +7 -7
  467. package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.js.map +1 -1
  468. package/dist/components/Payroll/RecoveryCases/useRecoveryCaseErrorCode.js +3 -2
  469. package/dist/components/Payroll/RecoveryCases/useRecoveryCaseErrorCode.js.map +1 -1
  470. package/dist/components/Payroll/TransitionCreation/TransitionCreation.js +7 -7
  471. package/dist/components/Payroll/TransitionCreation/TransitionCreation.js.map +1 -1
  472. package/dist/components/Payroll/TransitionCreation/TransitionCreationPresentation.js +3 -2
  473. package/dist/components/Payroll/TransitionCreation/TransitionCreationPresentation.js.map +1 -1
  474. package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlert.js +9 -9
  475. package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlert.js.map +1 -1
  476. package/dist/components/Payroll/helpers.d.ts +1 -1
  477. package/dist/components/Payroll/helpers.js.map +1 -1
  478. package/dist/components/Payroll/usePreparedPayrollData.d.ts +2 -2
  479. package/dist/components/Payroll/usePreparedPayrollData.js +21 -18
  480. package/dist/components/Payroll/usePreparedPayrollData.js.map +1 -1
  481. package/dist/components/TimeOff/AddEmployeesHoliday/AddEmployeesHoliday.js.map +1 -0
  482. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/AddEmployeesToPolicy/AddEmployeesToPolicy.d.ts +2 -0
  483. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/AddEmployeesToPolicy/AddEmployeesToPolicy.js +3 -2
  484. package/dist/components/TimeOff/AddEmployeesToPolicy/AddEmployeesToPolicy.js.map +1 -0
  485. package/dist/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetail.d.ts +6 -0
  486. package/dist/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetail.js +149 -0
  487. package/dist/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetail.js.map +1 -0
  488. package/dist/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetailPresentation.d.ts +2 -0
  489. package/dist/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetailPresentation.js +80 -0
  490. package/dist/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetailPresentation.js.map +1 -0
  491. package/dist/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetailTypes.d.ts +21 -0
  492. package/dist/components/TimeOff/HolidayPolicyDetail/index.d.ts +5 -0
  493. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/HolidaySelectionForm/HolidaySelectionForm.d.ts +1 -0
  494. package/dist/components/TimeOff/HolidaySelectionForm/HolidaySelectionForm.js +115 -0
  495. package/dist/components/TimeOff/HolidaySelectionForm/HolidaySelectionForm.js.map +1 -0
  496. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/HolidaySelectionForm/HolidaySelectionFormPresentation.js +9 -7
  497. package/dist/components/TimeOff/HolidaySelectionForm/HolidaySelectionFormPresentation.js.map +1 -0
  498. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/HolidaySelectionForm/HolidaySelectionFormTypes.d.ts +2 -0
  499. package/dist/components/TimeOff/PolicyList/PolicyList.js +103 -0
  500. package/dist/components/TimeOff/PolicyList/PolicyList.js.map +1 -0
  501. package/dist/components/TimeOff/PolicyList/PolicyListPresentation.js +135 -0
  502. package/dist/components/TimeOff/PolicyList/PolicyListPresentation.js.map +1 -0
  503. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/PolicyList/PolicyListTypes.d.ts +1 -1
  504. package/dist/components/TimeOff/PolicySettings/PolicySettings.js +70 -0
  505. package/dist/components/TimeOff/PolicySettings/PolicySettings.js.map +1 -0
  506. package/dist/components/TimeOff/PolicySettings/PolicySettings.module.scss.js +16 -0
  507. package/dist/components/TimeOff/PolicySettings/PolicySettingsPresentation.js +164 -0
  508. package/dist/components/TimeOff/PolicySettings/PolicySettingsPresentation.js.map +1 -0
  509. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/PolicySettings/PolicySettingsTypes.d.ts +1 -1
  510. package/dist/components/TimeOff/PolicyTypeSelector/PolicyTypeSelector.js +31 -0
  511. package/dist/components/TimeOff/PolicyTypeSelector/PolicyTypeSelector.js.map +1 -0
  512. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/PolicyTypeSelector/PolicyTypeSelectorPresentation.d.ts +1 -1
  513. package/dist/components/TimeOff/PolicyTypeSelector/PolicyTypeSelectorPresentation.js +68 -0
  514. package/dist/components/TimeOff/PolicyTypeSelector/PolicyTypeSelectorPresentation.js.map +1 -0
  515. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/PolicyTypeSelector/PolicyTypeSelectorTypes.d.ts +1 -0
  516. package/dist/components/TimeOff/TimeOffFlow/TimeOffFlow.js.map +1 -0
  517. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/TimeOffFlow/TimeOffFlowComponents.d.ts +3 -3
  518. package/dist/components/TimeOff/TimeOffFlow/TimeOffFlowComponents.js +117 -0
  519. package/dist/components/TimeOff/TimeOffFlow/TimeOffFlowComponents.js.map +1 -0
  520. package/dist/components/TimeOff/TimeOffFlow/timeOffPolicyTypes.d.ts +9 -0
  521. package/dist/components/TimeOff/TimeOffFlow/timeOffPolicyTypes.js +25 -0
  522. package/dist/components/TimeOff/TimeOffFlow/timeOffPolicyTypes.js.map +1 -0
  523. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/TimeOffFlow/timeOffStateMachine.d.ts +4 -2
  524. package/dist/components/TimeOff/TimeOffFlow/timeOffStateMachine.js +487 -0
  525. package/dist/components/TimeOff/TimeOffFlow/timeOffStateMachine.js.map +1 -0
  526. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.d.ts +1 -0
  527. package/dist/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.js +158 -0
  528. package/dist/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.js.map +1 -0
  529. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormPresentation.js +85 -76
  530. package/dist/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormPresentation.js.map +1 -0
  531. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesHoliday.d.ts +6 -0
  532. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesHoliday.js +143 -0
  533. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesHoliday.js.map +1 -0
  534. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentation.d.ts +2 -0
  535. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentation.js +103 -0
  536. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentation.js.map +1 -0
  537. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentationTypes.d.ts +41 -0
  538. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesTimeOff.d.ts +9 -0
  539. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesTimeOff.js +216 -0
  540. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesTimeOff.js.map +1 -0
  541. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/TimeOffManagement/SelectEmployees/useSelectEmployeesData.d.ts +2 -1
  542. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/useSelectEmployeesData.js +64 -0
  543. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/useSelectEmployeesData.js.map +1 -0
  544. package/dist/components/TimeOff/TimeOffPolicyDetail/EditEmployeeBalanceModal.d.ts +9 -0
  545. package/dist/components/TimeOff/TimeOffPolicyDetail/EditEmployeeBalanceModal.js +56 -0
  546. package/dist/components/TimeOff/TimeOffPolicyDetail/EditEmployeeBalanceModal.js.map +1 -0
  547. package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetail.d.ts +5 -0
  548. package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetail.js +251 -0
  549. package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetail.js.map +1 -0
  550. package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetail.module.scss.js +10 -0
  551. package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetail.module.scss.js.map +1 -0
  552. package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetailPresentation.d.ts +2 -0
  553. package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetailPresentation.js +143 -0
  554. package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetailPresentation.js.map +1 -0
  555. package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetailTypes.d.ts +52 -0
  556. package/dist/components/TimeOff/TimeOffPolicyDetail/index.d.ts +7 -0
  557. package/dist/components/TimeOff/ViewHolidayEmployees/ViewHolidayEmployees.js +9 -0
  558. package/dist/components/TimeOff/ViewHolidayEmployees/ViewHolidayEmployees.js.map +1 -0
  559. package/dist/components/TimeOff/ViewHolidayPolicyDetails/ViewHolidayPolicyDetails.d.ts +6 -0
  560. package/dist/components/TimeOff/ViewHolidayPolicyDetails/ViewHolidayPolicyDetails.js +9 -0
  561. package/dist/components/TimeOff/ViewHolidayPolicyDetails/ViewHolidayPolicyDetails.js.map +1 -0
  562. package/dist/components/TimeOff/ViewHolidaySchedule/ViewHolidaySchedule.js +9 -0
  563. package/dist/components/TimeOff/ViewHolidaySchedule/ViewHolidaySchedule.js.map +1 -0
  564. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/index.d.ts +5 -4
  565. package/dist/components/TimeOff/index.js +27 -0
  566. package/dist/components/TimeOff/shared/EmployeeTable/EmployeeTable.d.ts +2 -0
  567. package/dist/components/TimeOff/shared/EmployeeTable/EmployeeTable.js +95 -0
  568. package/dist/components/TimeOff/shared/EmployeeTable/EmployeeTable.js.map +1 -0
  569. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/shared/EmployeeTable/EmployeeTableTypes.d.ts +2 -0
  570. package/dist/components/TimeOff/shared/PolicyDetailLayout/PolicyDetailLayout.d.ts +3 -0
  571. package/dist/components/TimeOff/shared/PolicyDetailLayout/PolicyDetailLayout.js +86 -0
  572. package/dist/components/TimeOff/shared/PolicyDetailLayout/PolicyDetailLayout.js.map +1 -0
  573. package/dist/components/TimeOff/shared/PolicyDetailLayout/PolicyDetailLayoutTypes.d.ts +27 -0
  574. package/dist/components/TimeOff/shared/PolicyDetailLayout/index.d.ts +3 -0
  575. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/shared/holidayHelpers.d.ts +1 -1
  576. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/shared/holidayHelpers.js +8 -8
  577. package/dist/components/TimeOff/shared/holidayHelpers.js.map +1 -0
  578. package/dist/components/TimeOff/shared/holidayHelpers.test.d.ts +1 -0
  579. package/dist/components/index.d.ts +1 -1
  580. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js +11 -10
  581. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js.map +1 -1
  582. package/dist/helpers/dateFormatting.d.ts +2 -0
  583. package/dist/helpers/dateFormatting.js +4 -0
  584. package/dist/helpers/dateFormatting.js.map +1 -1
  585. package/dist/i18n/I18n.js +11 -10
  586. package/dist/i18n/I18n.js.map +1 -1
  587. package/dist/i18n/en/Company.StateTaxes.json.js +1 -1
  588. package/dist/i18n/en/Company.TimeOff.CreateTimeOffPolicy.json.js +12 -14
  589. package/dist/i18n/en/Company.TimeOff.CreateTimeOffPolicy.json.js.map +1 -1
  590. package/dist/i18n/en/Company.TimeOff.HolidayPolicy.json.js +18 -16
  591. package/dist/i18n/en/Company.TimeOff.HolidayPolicy.json.js.map +1 -1
  592. package/dist/i18n/en/Company.TimeOff.PolicyDetail.json.js +14 -0
  593. package/dist/i18n/en/Company.TimeOff.PolicyDetail.json.js.map +1 -0
  594. package/dist/i18n/en/Company.TimeOff.SelectEmployees.json.js +24 -16
  595. package/dist/i18n/en/Company.TimeOff.SelectEmployees.json.js.map +1 -1
  596. package/dist/i18n/en/Company.TimeOff.TimeOffPolicies.json.js +14 -14
  597. package/dist/i18n/en/Company.TimeOff.TimeOffPolicyDetails.json.js +46 -42
  598. package/dist/i18n/en/Company.TimeOff.TimeOffPolicyDetails.json.js.map +1 -1
  599. package/dist/i18n/en/Employee.FederalTaxes.json.js +16 -10
  600. package/dist/i18n/en/Employee.FederalTaxes.json.js.map +1 -1
  601. package/dist/i18n/en/Employee.Profile.json.js +24 -20
  602. package/dist/i18n/en/Employee.Profile.json.js.map +1 -1
  603. package/dist/i18n/en/Employee.StateTaxes.json.js +14 -6
  604. package/dist/i18n/en/Employee.StateTaxes.json.js.map +1 -1
  605. package/dist/i18n/en/Payroll.GrossUpModal.json.js +12 -10
  606. package/dist/i18n/en/Payroll.GrossUpModal.json.js.map +1 -1
  607. package/dist/index.d.ts +8 -2
  608. package/dist/index.js +118 -93
  609. package/dist/index.js.map +1 -1
  610. package/dist/partner-hook-utils/form/SDKFormProvider.js +18 -14
  611. package/dist/partner-hook-utils/form/SDKFormProvider.js.map +1 -1
  612. package/dist/partner-hook-utils/form/buildFormSchema.js +41 -41
  613. package/dist/partner-hook-utils/form/buildFormSchema.js.map +1 -1
  614. package/dist/partner-hook-utils/form/composeSubmitHandler.d.ts +10 -6
  615. package/dist/partner-hook-utils/form/composeSubmitHandler.js +49 -26
  616. package/dist/partner-hook-utils/form/composeSubmitHandler.js.map +1 -1
  617. package/dist/partner-hook-utils/form/fields/CheckboxHookField.d.ts +1 -1
  618. package/dist/partner-hook-utils/form/fields/CheckboxHookField.js +27 -23
  619. package/dist/partner-hook-utils/form/fields/CheckboxHookField.js.map +1 -1
  620. package/dist/partner-hook-utils/form/fields/DatePickerHookField.d.ts +1 -1
  621. package/dist/partner-hook-utils/form/fields/DatePickerHookField.js +33 -29
  622. package/dist/partner-hook-utils/form/fields/DatePickerHookField.js.map +1 -1
  623. package/dist/partner-hook-utils/form/fields/NumberInputHookField.d.ts +1 -1
  624. package/dist/partner-hook-utils/form/fields/NumberInputHookField.js +37 -33
  625. package/dist/partner-hook-utils/form/fields/NumberInputHookField.js.map +1 -1
  626. package/dist/partner-hook-utils/form/fields/RadioGroupHookField.d.ts +1 -1
  627. package/dist/partner-hook-utils/form/fields/RadioGroupHookField.js +32 -28
  628. package/dist/partner-hook-utils/form/fields/RadioGroupHookField.js.map +1 -1
  629. package/dist/partner-hook-utils/form/fields/SelectHookField.d.ts +1 -1
  630. package/dist/partner-hook-utils/form/fields/SelectHookField.js +34 -30
  631. package/dist/partner-hook-utils/form/fields/SelectHookField.js.map +1 -1
  632. package/dist/partner-hook-utils/form/fields/SwitchHookField.d.ts +1 -1
  633. package/dist/partner-hook-utils/form/fields/SwitchHookField.js +23 -19
  634. package/dist/partner-hook-utils/form/fields/SwitchHookField.js.map +1 -1
  635. package/dist/partner-hook-utils/form/fields/TextInputHookField.d.ts +1 -1
  636. package/dist/partner-hook-utils/form/fields/TextInputHookField.js +31 -27
  637. package/dist/partner-hook-utils/form/fields/TextInputHookField.js.map +1 -1
  638. package/dist/partner-hook-utils/form/fields/withFieldElementRegistry.d.ts +10 -0
  639. package/dist/partner-hook-utils/form/fields/withFieldElementRegistry.js +9 -0
  640. package/dist/partner-hook-utils/form/fields/withFieldElementRegistry.js.map +1 -0
  641. package/dist/partner-hook-utils/form/index.d.ts +3 -0
  642. package/dist/partner-hook-utils/form/resolveFieldError.js +10 -7
  643. package/dist/partner-hook-utils/form/resolveFieldError.js.map +1 -1
  644. package/dist/partner-hook-utils/form/useFieldErrorMessage.js +10 -7
  645. package/dist/partner-hook-utils/form/useFieldErrorMessage.js.map +1 -1
  646. package/dist/partner-hook-utils/form/useHookFieldResolution.d.ts +10 -3
  647. package/dist/partner-hook-utils/form/useHookFieldResolution.js +6 -6
  648. package/dist/partner-hook-utils/form/useHookFieldResolution.js.map +1 -1
  649. package/dist/partner-hook-utils/form/useHookFormInternals.d.ts +22 -0
  650. package/dist/partner-hook-utils/form/useHookFormInternals.js +12 -0
  651. package/dist/partner-hook-utils/form/useHookFormInternals.js.map +1 -0
  652. package/dist/partner-hook-utils/types.d.ts +15 -0
  653. package/dist/shared/constants.d.ts +22 -0
  654. package/dist/shared/constants.js +41 -30
  655. package/dist/shared/constants.js.map +1 -1
  656. package/dist/style.css +1 -1
  657. package/dist/types/i18next.d.ts +62 -14
  658. package/docs/reference/endpoint-inventory.json +313 -122
  659. package/package.json +19 -17
  660. package/dist/components/Employee/Compensation/Actions.d.ts +0 -1
  661. package/dist/components/Employee/Compensation/Actions.js +0 -39
  662. package/dist/components/Employee/Compensation/Actions.js.map +0 -1
  663. package/dist/components/Employee/Compensation/Edit.d.ts +0 -5
  664. package/dist/components/Employee/Compensation/Edit.js +0 -179
  665. package/dist/components/Employee/Compensation/Edit.js.map +0 -1
  666. package/dist/components/Employee/Compensation/Head.d.ts +0 -1
  667. package/dist/components/Employee/Compensation/Head.js +0 -22
  668. package/dist/components/Employee/Compensation/Head.js.map +0 -1
  669. package/dist/components/Employee/Compensation/List.d.ts +0 -1
  670. package/dist/components/Employee/Compensation/List.js +0 -72
  671. package/dist/components/Employee/Compensation/List.js.map +0 -1
  672. package/dist/components/Employee/Compensation/useCompensation.js.map +0 -1
  673. package/dist/components/Employee/FederalTaxes/Actions.d.ts +0 -1
  674. package/dist/components/Employee/FederalTaxes/Actions.js +0 -14
  675. package/dist/components/Employee/FederalTaxes/Actions.js.map +0 -1
  676. package/dist/components/Employee/FederalTaxes/FederalForm.d.ts +0 -12
  677. package/dist/components/Employee/FederalTaxes/FederalForm.js +0 -110
  678. package/dist/components/Employee/FederalTaxes/FederalForm.js.map +0 -1
  679. package/dist/components/Employee/FederalTaxes/FederalTaxes.d.ts +0 -6
  680. package/dist/components/Employee/FederalTaxes/FederalTaxes.js +0 -84
  681. package/dist/components/Employee/FederalTaxes/FederalTaxes.js.map +0 -1
  682. package/dist/components/Employee/FederalTaxes/Head.d.ts +0 -1
  683. package/dist/components/Employee/FederalTaxes/Head.js +0 -24
  684. package/dist/components/Employee/FederalTaxes/Head.js.map +0 -1
  685. package/dist/components/Employee/FederalTaxes/useFederalTaxes.d.ts +0 -5
  686. package/dist/components/Employee/FederalTaxes/useFederalTaxes.js +0 -21
  687. package/dist/components/Employee/FederalTaxes/useFederalTaxes.js.map +0 -1
  688. package/dist/components/Employee/Profile/AdminProfile.js.map +0 -1
  689. package/dist/components/Employee/Profile/EmployeeProfile.js.map +0 -1
  690. package/dist/components/Employee/Profile/Profile.js.map +0 -1
  691. package/dist/components/Employee/Profile/index.d.ts +0 -2
  692. package/dist/components/Employee/StateTaxes/Actions.d.ts +0 -1
  693. package/dist/components/Employee/StateTaxes/Actions.js +0 -14
  694. package/dist/components/Employee/StateTaxes/Actions.js.map +0 -1
  695. package/dist/components/Employee/StateTaxes/StateForm.d.ts +0 -6
  696. package/dist/components/Employee/StateTaxes/StateForm.js +0 -34
  697. package/dist/components/Employee/StateTaxes/StateForm.js.map +0 -1
  698. package/dist/components/Employee/StateTaxes/StateTaxes.d.ts +0 -7
  699. package/dist/components/Employee/StateTaxes/StateTaxes.js +0 -98
  700. package/dist/components/Employee/StateTaxes/StateTaxes.js.map +0 -1
  701. package/dist/components/Employee/StateTaxes/useStateTaxes.d.ts +0 -8
  702. package/dist/components/Employee/StateTaxes/useStateTaxes.js +0 -21
  703. package/dist/components/Employee/StateTaxes/useStateTaxes.js.map +0 -1
  704. package/dist/components/UNSTABLE_TimeOff/AddEmployeesHoliday/AddEmployeesHoliday.js.map +0 -1
  705. package/dist/components/UNSTABLE_TimeOff/AddEmployeesToPolicy/AddEmployeesToPolicy.js.map +0 -1
  706. package/dist/components/UNSTABLE_TimeOff/HolidaySelectionForm/HolidaySelectionForm.js +0 -49
  707. package/dist/components/UNSTABLE_TimeOff/HolidaySelectionForm/HolidaySelectionForm.js.map +0 -1
  708. package/dist/components/UNSTABLE_TimeOff/HolidaySelectionForm/HolidaySelectionFormPresentation.js.map +0 -1
  709. package/dist/components/UNSTABLE_TimeOff/PolicyList/PolicyList.js +0 -107
  710. package/dist/components/UNSTABLE_TimeOff/PolicyList/PolicyList.js.map +0 -1
  711. package/dist/components/UNSTABLE_TimeOff/PolicyList/PolicyListPresentation.js +0 -125
  712. package/dist/components/UNSTABLE_TimeOff/PolicyList/PolicyListPresentation.js.map +0 -1
  713. package/dist/components/UNSTABLE_TimeOff/PolicySettings/PolicySettings.js +0 -66
  714. package/dist/components/UNSTABLE_TimeOff/PolicySettings/PolicySettings.js.map +0 -1
  715. package/dist/components/UNSTABLE_TimeOff/PolicySettings/PolicySettings.module.scss.js +0 -16
  716. package/dist/components/UNSTABLE_TimeOff/PolicySettings/PolicySettingsPresentation.js +0 -154
  717. package/dist/components/UNSTABLE_TimeOff/PolicySettings/PolicySettingsPresentation.js.map +0 -1
  718. package/dist/components/UNSTABLE_TimeOff/PolicyTypeSelector/PolicyTypeSelector.js +0 -29
  719. package/dist/components/UNSTABLE_TimeOff/PolicyTypeSelector/PolicyTypeSelector.js.map +0 -1
  720. package/dist/components/UNSTABLE_TimeOff/PolicyTypeSelector/PolicyTypeSelectorPresentation.js +0 -67
  721. package/dist/components/UNSTABLE_TimeOff/PolicyTypeSelector/PolicyTypeSelectorPresentation.js.map +0 -1
  722. package/dist/components/UNSTABLE_TimeOff/TimeOffFlow/TimeOffFlow.js.map +0 -1
  723. package/dist/components/UNSTABLE_TimeOff/TimeOffFlow/TimeOffFlowComponents.js +0 -112
  724. package/dist/components/UNSTABLE_TimeOff/TimeOffFlow/TimeOffFlowComponents.js.map +0 -1
  725. package/dist/components/UNSTABLE_TimeOff/TimeOffFlow/timeOffStateMachine.js +0 -317
  726. package/dist/components/UNSTABLE_TimeOff/TimeOffFlow/timeOffStateMachine.js.map +0 -1
  727. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.js +0 -72
  728. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.js.map +0 -1
  729. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormPresentation.js.map +0 -1
  730. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectEmployees/SelectEmployees.d.ts +0 -2
  731. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesHoliday.d.ts +0 -6
  732. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesHoliday.js +0 -66
  733. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesHoliday.js.map +0 -1
  734. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentation.d.ts +0 -2
  735. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentation.js +0 -82
  736. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentation.js.map +0 -1
  737. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentationTypes.d.ts +0 -24
  738. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesTimeOff.d.ts +0 -7
  739. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesTimeOff.js +0 -70
  740. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesTimeOff.js.map +0 -1
  741. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesTypes.d.ts +0 -24
  742. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectEmployees/useSelectEmployeesData.js +0 -56
  743. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectEmployees/useSelectEmployeesData.js.map +0 -1
  744. package/dist/components/UNSTABLE_TimeOff/ViewHolidayEmployees/ViewHolidayEmployees.js +0 -35
  745. package/dist/components/UNSTABLE_TimeOff/ViewHolidayEmployees/ViewHolidayEmployees.js.map +0 -1
  746. package/dist/components/UNSTABLE_TimeOff/ViewHolidaySchedule/ViewHolidaySchedule.js +0 -35
  747. package/dist/components/UNSTABLE_TimeOff/ViewHolidaySchedule/ViewHolidaySchedule.js.map +0 -1
  748. package/dist/components/UNSTABLE_TimeOff/ViewPolicyDetails/ViewPolicyDetails.d.ts +0 -5
  749. package/dist/components/UNSTABLE_TimeOff/ViewPolicyDetails/ViewPolicyDetails.js +0 -35
  750. package/dist/components/UNSTABLE_TimeOff/ViewPolicyDetails/ViewPolicyDetails.js.map +0 -1
  751. package/dist/components/UNSTABLE_TimeOff/ViewPolicyEmployees/ViewPolicyEmployees.d.ts +0 -5
  752. package/dist/components/UNSTABLE_TimeOff/ViewPolicyEmployees/ViewPolicyEmployees.js +0 -35
  753. package/dist/components/UNSTABLE_TimeOff/ViewPolicyEmployees/ViewPolicyEmployees.js.map +0 -1
  754. package/dist/components/UNSTABLE_TimeOff/index.js +0 -27
  755. package/dist/components/UNSTABLE_TimeOff/shared/EmployeeTable/EmployeeTable.d.ts +0 -2
  756. package/dist/components/UNSTABLE_TimeOff/shared/EmployeeTable/EmployeeTable.js +0 -90
  757. package/dist/components/UNSTABLE_TimeOff/shared/EmployeeTable/EmployeeTable.js.map +0 -1
  758. package/dist/components/UNSTABLE_TimeOff/shared/holidayHelpers.js.map +0 -1
  759. /package/dist/components/Employee/{Compensation/shared/useCompensationForm/compensationSchemaParity.test.d.ts → FederalTaxes/shared/useFederalTaxesForm/federalTaxesSchema.test.d.ts} +0 -0
  760. /package/dist/components/Employee/Profile/{AdminProfile.d.ts → onboarding/AdminProfile.d.ts} +0 -0
  761. /package/dist/components/Employee/Profile/{AdminProfile.module.scss.js → onboarding/AdminProfile.module.scss.js} +0 -0
  762. /package/dist/components/Employee/Profile/{AdminProfile.module.scss.js.map → onboarding/AdminProfile.module.scss.js.map} +0 -0
  763. /package/dist/components/Employee/Profile/{EmployeeProfile.d.ts → onboarding/EmployeeProfile.d.ts} +0 -0
  764. /package/dist/components/Employee/Profile/{EmployeeProfile.module.scss.js → onboarding/EmployeeProfile.module.scss.js} +0 -0
  765. /package/dist/components/Employee/Profile/{EmployeeProfile.module.scss.js.map → onboarding/EmployeeProfile.module.scss.js.map} +0 -0
  766. /package/dist/components/{UNSTABLE_TimeOff/TimeOffFlow/timeOffStateMachine.test.d.ts → Employee/StateTaxes/shared/useEmployeeStateTaxesForm/employeeStateTaxesSchema.test.d.ts} +0 -0
  767. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/AddEmployeesHoliday/AddEmployeesHoliday.d.ts +0 -0
  768. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/AddEmployeesHoliday/AddEmployeesHoliday.js +0 -0
  769. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/HolidaySelectionForm/HolidaySelectionFormPresentation.d.ts +0 -0
  770. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/PolicyList/PolicyList.d.ts +0 -0
  771. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/PolicyList/PolicyListPresentation.d.ts +0 -0
  772. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/PolicyList/PolicyListPresentation.module.scss.js +0 -0
  773. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/PolicyList/PolicyListPresentation.module.scss.js.map +0 -0
  774. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/PolicySettings/PolicySettings.d.ts +0 -0
  775. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/PolicySettings/PolicySettings.module.scss.js.map +0 -0
  776. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/PolicySettings/PolicySettingsPresentation.d.ts +0 -0
  777. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/PolicyTypeSelector/PolicyTypeSelector.d.ts +0 -0
  778. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/TimeOffFlow/TimeOffFlow.d.ts +0 -0
  779. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/TimeOffFlow/TimeOffFlow.js +0 -0
  780. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/TimeOffFlow/index.d.ts +0 -0
  781. /package/dist/components/{UNSTABLE_TimeOff/shared/holidayHelpers.test.d.ts → TimeOff/TimeOffFlow/timeOffStateMachine.test.d.ts} +0 -0
  782. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.module.scss.js +0 -0
  783. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.module.scss.js.map +0 -0
  784. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormPresentation.d.ts +0 -0
  785. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormTypes.d.ts +0 -0
  786. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/TimeOffManagement/PolicyConfigurationForm/index.d.ts +0 -0
  787. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/ViewHolidayEmployees/ViewHolidayEmployees.d.ts +0 -0
  788. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/ViewHolidaySchedule/ViewHolidaySchedule.d.ts +0 -0
  789. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/index.js.map +0 -0
  790. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/shared/EmployeeTable/EmployeeTable.module.scss.js +0 -0
  791. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/shared/EmployeeTable/EmployeeTable.module.scss.js.map +0 -0
  792. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/shared/EmployeeTable/index.d.ts +0 -0
@@ -3,8 +3,9 @@ import { useTranslation as m } from "react-i18next";
3
3
  import { useDocumentList as s } from "./useDocumentList.js";
4
4
  import { Flex as l } from "../../../Common/Flex/Flex.js";
5
5
  import "classnames";
6
+ import "../../../../shared/constants.js";
6
7
  import { DocumentList as u } from "../../../Common/DocumentList/DocumentList.js";
7
- function b() {
8
+ function f() {
8
9
  const { employeeForms: i, handleRequestFormToSign: n, documentListError: r } = s(), { t: e } = m("Employee.DocumentSigner");
9
10
  return /* @__PURE__ */ o("section", { style: { width: "100%" }, children: /* @__PURE__ */ o(l, { flexDirection: "column", gap: 32, children: /* @__PURE__ */ o(
10
11
  u,
@@ -33,6 +34,6 @@ function b() {
33
34
  ) }) });
34
35
  }
35
36
  export {
36
- b as List
37
+ f as List
37
38
  };
38
39
  //# sourceMappingURL=List.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"List.js","sources":["../../../../../src/components/Employee/DocumentSigner/DocumentList/List.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport { useDocumentList } from './useDocumentList'\nimport { Flex, DocumentList as SharedDocumentList } from '@/components/Common'\n\nexport function List() {\n const { employeeForms, handleRequestFormToSign, documentListError } = useDocumentList()\n const { t } = useTranslation('Employee.DocumentSigner')\n\n return (\n <section style={{ width: '100%' }}>\n <Flex flexDirection=\"column\" gap={32}>\n <SharedDocumentList\n forms={employeeForms.map(form => ({\n uuid: form.uuid,\n title: form.title,\n description: form.description,\n requires_signing: form.requiresSigning,\n }))}\n onRequestSign={handleRequestFormToSign}\n withError={!!documentListError}\n label={t('documentListLabel')}\n columnLabels={{\n form: t('formColumnLabel'),\n action: t('actionColumnLabel'),\n }}\n statusLabels={{\n signCta: t('signDocumentCta'),\n notSigned: t('notSigned'),\n complete: t('signDocumentComplete'),\n }}\n emptyStateLabel={t('emptyTableTitle')}\n errorLabel={t('documentListError')}\n />\n </Flex>\n </section>\n )\n}\n"],"names":["List","employeeForms","handleRequestFormToSign","documentListError","useDocumentList","t","useTranslation","jsx","Flex","SharedDocumentList","form"],"mappings":";;;;;;AAIO,SAASA,IAAO;AACrB,QAAM,EAAE,eAAAC,GAAe,yBAAAC,GAAyB,mBAAAC,EAAA,IAAsBC,EAAA,GAChE,EAAE,GAAAC,EAAA,IAAMC,EAAe,yBAAyB;AAEtD,SACE,gBAAAC,EAAC,WAAA,EAAQ,OAAO,EAAE,OAAO,UACvB,UAAA,gBAAAA,EAACC,GAAA,EAAK,eAAc,UAAS,KAAK,IAChC,UAAA,gBAAAD;AAAA,IAACE;AAAAA,IAAA;AAAA,MACC,OAAOR,EAAc,IAAI,CAAAS,OAAS;AAAA,QAChC,MAAMA,EAAK;AAAA,QACX,OAAOA,EAAK;AAAA,QACZ,aAAaA,EAAK;AAAA,QAClB,kBAAkBA,EAAK;AAAA,MAAA,EACvB;AAAA,MACF,eAAeR;AAAA,MACf,WAAW,CAAC,CAACC;AAAA,MACb,OAAOE,EAAE,mBAAmB;AAAA,MAC5B,cAAc;AAAA,QACZ,MAAMA,EAAE,iBAAiB;AAAA,QACzB,QAAQA,EAAE,mBAAmB;AAAA,MAAA;AAAA,MAE/B,cAAc;AAAA,QACZ,SAASA,EAAE,iBAAiB;AAAA,QAC5B,WAAWA,EAAE,WAAW;AAAA,QACxB,UAAUA,EAAE,sBAAsB;AAAA,MAAA;AAAA,MAEpC,iBAAiBA,EAAE,iBAAiB;AAAA,MACpC,YAAYA,EAAE,mBAAmB;AAAA,IAAA;AAAA,EAAA,GAErC,EAAA,CACF;AAEJ;"}
1
+ {"version":3,"file":"List.js","sources":["../../../../../src/components/Employee/DocumentSigner/DocumentList/List.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport { useDocumentList } from './useDocumentList'\nimport { Flex, DocumentList as SharedDocumentList } from '@/components/Common'\n\nexport function List() {\n const { employeeForms, handleRequestFormToSign, documentListError } = useDocumentList()\n const { t } = useTranslation('Employee.DocumentSigner')\n\n return (\n <section style={{ width: '100%' }}>\n <Flex flexDirection=\"column\" gap={32}>\n <SharedDocumentList\n forms={employeeForms.map(form => ({\n uuid: form.uuid,\n title: form.title,\n description: form.description,\n requires_signing: form.requiresSigning,\n }))}\n onRequestSign={handleRequestFormToSign}\n withError={!!documentListError}\n label={t('documentListLabel')}\n columnLabels={{\n form: t('formColumnLabel'),\n action: t('actionColumnLabel'),\n }}\n statusLabels={{\n signCta: t('signDocumentCta'),\n notSigned: t('notSigned'),\n complete: t('signDocumentComplete'),\n }}\n emptyStateLabel={t('emptyTableTitle')}\n errorLabel={t('documentListError')}\n />\n </Flex>\n </section>\n )\n}\n"],"names":["List","employeeForms","handleRequestFormToSign","documentListError","useDocumentList","t","useTranslation","jsx","Flex","SharedDocumentList","form"],"mappings":";;;;;;;AAIO,SAASA,IAAO;AACrB,QAAM,EAAE,eAAAC,GAAe,yBAAAC,GAAyB,mBAAAC,EAAA,IAAsBC,EAAA,GAChE,EAAE,GAAAC,EAAA,IAAMC,EAAe,yBAAyB;AAEtD,SACE,gBAAAC,EAAC,WAAA,EAAQ,OAAO,EAAE,OAAO,UACvB,UAAA,gBAAAA,EAACC,GAAA,EAAK,eAAc,UAAS,KAAK,IAChC,UAAA,gBAAAD;AAAA,IAACE;AAAAA,IAAA;AAAA,MACC,OAAOR,EAAc,IAAI,CAAAS,OAAS;AAAA,QAChC,MAAMA,EAAK;AAAA,QACX,OAAOA,EAAK;AAAA,QACZ,aAAaA,EAAK;AAAA,QAClB,kBAAkBA,EAAK;AAAA,MAAA,EACvB;AAAA,MACF,eAAeR;AAAA,MACf,WAAW,CAAC,CAACC;AAAA,MACb,OAAOE,EAAE,mBAAmB;AAAA,MAC5B,cAAc;AAAA,QACZ,MAAMA,EAAE,iBAAiB;AAAA,QACzB,QAAQA,EAAE,mBAAmB;AAAA,MAAA;AAAA,MAE/B,cAAc;AAAA,QACZ,SAASA,EAAE,iBAAiB;AAAA,QAC5B,WAAWA,EAAE,WAAW;AAAA,QACxB,UAAUA,EAAE,sBAAsB;AAAA,MAAA;AAAA,MAEpC,iBAAiBA,EAAE,iBAAiB;AAAA,MACpC,YAAYA,EAAE,mBAAmB;AAAA,IAAA;AAAA,EAAA,GAErC,EAAA,CACF;AAEJ;"}
@@ -7,15 +7,18 @@ import "../../../Base/useBase.js";
7
7
  import "@gusto/embedded-api/models/errors/apierror";
8
8
  import "@gusto/embedded-api/models/errors/gustoembeddederror";
9
9
  import "@gusto/embedded-api/models/errors/sdkvalidationerror";
10
- import "@gusto/embedded-api/models/errors/unprocessableentityerrorobject";
10
+ import "@gusto/embedded-api/models/errors/unprocessableentityerror";
11
11
  import "@gusto/embedded-api/models/errors/httpclienterrors";
12
+ import "dompurify";
13
+ import "../../../../contexts/LocaleProvider/useLocale.js";
12
14
  import "../../../../shared/constants.js";
13
15
  import "classnames";
14
16
  import "../../../../contexts/ComponentAdapter/useComponentContext.js";
17
+ import "../../../../contexts/LoadingIndicatorProvider/useLoadingIndicator.js";
15
18
  import { createCompoundContext as t } from "../../../Base/createCompoundContext.js";
16
- const [a, f] = t("DocumentListContext");
19
+ const [P, b] = t("DocumentListContext");
17
20
  export {
18
- f as DocumentListProvider,
19
- a as useDocumentList
21
+ b as DocumentListProvider,
22
+ P as useDocumentList
20
23
  };
21
24
  //# sourceMappingURL=useDocumentList.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useDocumentList.js","sources":["../../../../../src/components/Employee/DocumentSigner/DocumentList/useDocumentList.ts"],"sourcesContent":["import type { Form } from '@gusto/embedded-api/models/components/form'\nimport { createCompoundContext } from '@/components/Base'\n\ntype DocumentListContextType = {\n employeeForms: Form[]\n hasSignedAllForms: boolean\n handleContinue: () => void\n handleRequestFormToSign: (form: Form) => void\n documentListError: Error | null\n formToSign?: Form\n}\n\nconst [useDocumentList, DocumentListProvider] =\n createCompoundContext<DocumentListContextType>('DocumentListContext')\nexport { useDocumentList, DocumentListProvider }\n"],"names":["useDocumentList","DocumentListProvider","createCompoundContext"],"mappings":";;;;;;;;;;;;;;;AAYA,MAAM,CAACA,GAAiBC,CAAoB,IAC1CC,EAA+C,qBAAqB;"}
1
+ {"version":3,"file":"useDocumentList.js","sources":["../../../../../src/components/Employee/DocumentSigner/DocumentList/useDocumentList.ts"],"sourcesContent":["import type { Form } from '@gusto/embedded-api/models/components/form'\nimport { createCompoundContext } from '@/components/Base'\n\ntype DocumentListContextType = {\n employeeForms: Form[]\n hasSignedAllForms: boolean\n handleContinue: () => void\n handleRequestFormToSign: (form: Form) => void\n documentListError: Error | null\n formToSign?: Form\n}\n\nconst [useDocumentList, DocumentListProvider] =\n createCompoundContext<DocumentListContextType>('DocumentListContext')\nexport { useDocumentList, DocumentListProvider }\n"],"names":["useDocumentList","DocumentListProvider","createCompoundContext"],"mappings":";;;;;;;;;;;;;;;;;;AAYA,MAAM,CAACA,GAAiBC,CAAoB,IAC1CC,EAA+C,qBAAqB;"}
@@ -15,7 +15,7 @@ function O(o) {
15
15
  }
16
16
  function M({ employeeId: o, onEvent: i, dictionary: s, withEmployeeI9: t = !1 }) {
17
17
  C("Employee.DocumentSigner", s);
18
- const { data: a } = g({ employeeId: o }), { data: c } = D({ employeeId: o }), u = a.employee?.onboardingDocumentsConfig?.i9Document === !0, m = c.formList?.find((e) => e.name === F), r = t && u && (!m || m.requiresSigning === !0), p = l(
18
+ const { data: a } = g({ employeeId: o }), { data: c } = D({ employeeId: o }), u = a.employee?.onboardingDocumentsConfig?.i9Document === !0, m = c.forms?.find((e) => e.name === F), r = t && u && (!m || m.requiresSigning === !0), p = l(
19
19
  () => f(
20
20
  r ? "employmentEligibility" : "index",
21
21
  E,
@@ -1 +1 @@
1
- {"version":3,"file":"DocumentSigner.js","sources":["../../../../src/components/Employee/DocumentSigner/DocumentSigner.tsx"],"sourcesContent":["import { createMachine } from 'robot3'\nimport { useMemo } from 'react'\nimport { useEmployeesGetSuspense } from '@gusto/embedded-api/react-query/employeesGet'\nimport { useEmployeeFormsListSuspense } from '@gusto/embedded-api/react-query/employeeFormsList'\nimport {\n DocumentListContextual,\n EmploymentEligibilityContextual,\n type DocumentSignerContextInterface,\n} from './documentSignerStateMachine'\nimport { documentSignerMachine } from './stateMachine'\nimport { Flow } from '@/components/Flow/Flow'\nimport { BaseComponent, type BaseComponentInterface } from '@/components/Base'\nimport { useComponentDictionary } from '@/i18n/I18n'\nimport { I9_FORM_NAME } from '@/shared/constants'\n\nexport interface DocumentSignerProps extends BaseComponentInterface<'Employee.DocumentSigner'> {\n employeeId: string\n withEmployeeI9?: boolean\n}\n\nexport function DocumentSigner(props: DocumentSignerProps) {\n return (\n <BaseComponent {...props}>\n <Root {...props} />\n </BaseComponent>\n )\n}\n\nfunction Root({ employeeId, onEvent, dictionary, withEmployeeI9 = false }: DocumentSignerProps) {\n useComponentDictionary('Employee.DocumentSigner', dictionary)\n\n const { data: employeeData } = useEmployeesGetSuspense({ employeeId })\n const { data: formsData } = useEmployeeFormsListSuspense({ employeeId })\n\n const employeeHasI9Enabled = employeeData.employee?.onboardingDocumentsConfig?.i9Document === true\n\n const i9Form = formsData.formList?.find(form => form.name === I9_FORM_NAME)\n const needsI9Form =\n withEmployeeI9 && employeeHasI9Enabled && (!i9Form || i9Form.requiresSigning === true)\n\n const machine = useMemo(\n () =>\n createMachine(\n needsI9Form ? 'employmentEligibility' : 'index',\n documentSignerMachine,\n (initialContext: DocumentSignerContextInterface) => ({\n ...initialContext,\n component: needsI9Form ? EmploymentEligibilityContextual : DocumentListContextual,\n employeeId,\n withEmployeeI9,\n }),\n ),\n [employeeId, withEmployeeI9],\n )\n\n return <Flow machine={machine} onEvent={onEvent} />\n}\n"],"names":["DocumentSigner","props","jsx","BaseComponent","Root","employeeId","onEvent","dictionary","withEmployeeI9","useComponentDictionary","employeeData","useEmployeesGetSuspense","formsData","useEmployeeFormsListSuspense","employeeHasI9Enabled","i9Form","form","I9_FORM_NAME","needsI9Form","machine","useMemo","createMachine","documentSignerMachine","initialContext","EmploymentEligibilityContextual","DocumentListContextual","Flow"],"mappings":";;;;;;;;;;;;AAoBO,SAASA,EAAeC,GAA4B;AACzD,SACE,gBAAAC,EAACC,KAAe,GAAGF,GACjB,4BAACG,GAAA,EAAM,GAAGH,GAAO,EAAA,CACnB;AAEJ;AAEA,SAASG,EAAK,EAAE,YAAAC,GAAY,SAAAC,GAAS,YAAAC,GAAY,gBAAAC,IAAiB,MAA8B;AAC9F,EAAAC,EAAuB,2BAA2BF,CAAU;AAE5D,QAAM,EAAE,MAAMG,EAAA,IAAiBC,EAAwB,EAAE,YAAAN,GAAY,GAC/D,EAAE,MAAMO,EAAA,IAAcC,EAA6B,EAAE,YAAAR,GAAY,GAEjES,IAAuBJ,EAAa,UAAU,2BAA2B,eAAe,IAExFK,IAASH,EAAU,UAAU,KAAK,CAAAI,MAAQA,EAAK,SAASC,CAAY,GACpEC,IACJV,KAAkBM,MAAyB,CAACC,KAAUA,EAAO,oBAAoB,KAE7EI,IAAUC;AAAA,IACd,MACEC;AAAA,MACEH,IAAc,0BAA0B;AAAA,MACxCI;AAAA,MACA,CAACC,OAAoD;AAAA,QACnD,GAAGA;AAAA,QACH,WAAWL,IAAcM,IAAkCC;AAAA,QAC3D,YAAApB;AAAA,QACA,gBAAAG;AAAA,MAAA;AAAA,IACF;AAAA,IAEJ,CAACH,GAAYG,CAAc;AAAA,EAAA;AAG7B,SAAO,gBAAAN,EAACwB,GAAA,EAAK,SAAAP,GAAkB,SAAAb,EAAA,CAAkB;AACnD;"}
1
+ {"version":3,"file":"DocumentSigner.js","sources":["../../../../src/components/Employee/DocumentSigner/DocumentSigner.tsx"],"sourcesContent":["import { createMachine } from 'robot3'\nimport { useMemo } from 'react'\nimport { useEmployeesGetSuspense } from '@gusto/embedded-api/react-query/employeesGet'\nimport { useEmployeeFormsListSuspense } from '@gusto/embedded-api/react-query/employeeFormsList'\nimport {\n DocumentListContextual,\n EmploymentEligibilityContextual,\n type DocumentSignerContextInterface,\n} from './documentSignerStateMachine'\nimport { documentSignerMachine } from './stateMachine'\nimport { Flow } from '@/components/Flow/Flow'\nimport { BaseComponent, type BaseComponentInterface } from '@/components/Base'\nimport { useComponentDictionary } from '@/i18n/I18n'\nimport { I9_FORM_NAME } from '@/shared/constants'\n\nexport interface DocumentSignerProps extends BaseComponentInterface<'Employee.DocumentSigner'> {\n employeeId: string\n withEmployeeI9?: boolean\n}\n\nexport function DocumentSigner(props: DocumentSignerProps) {\n return (\n <BaseComponent {...props}>\n <Root {...props} />\n </BaseComponent>\n )\n}\n\nfunction Root({ employeeId, onEvent, dictionary, withEmployeeI9 = false }: DocumentSignerProps) {\n useComponentDictionary('Employee.DocumentSigner', dictionary)\n\n const { data: employeeData } = useEmployeesGetSuspense({ employeeId })\n const { data: formsData } = useEmployeeFormsListSuspense({ employeeId })\n\n const employeeHasI9Enabled = employeeData.employee?.onboardingDocumentsConfig?.i9Document === true\n\n const i9Form = formsData.forms?.find(form => form.name === I9_FORM_NAME)\n const needsI9Form =\n withEmployeeI9 && employeeHasI9Enabled && (!i9Form || i9Form.requiresSigning === true)\n\n const machine = useMemo(\n () =>\n createMachine(\n needsI9Form ? 'employmentEligibility' : 'index',\n documentSignerMachine,\n (initialContext: DocumentSignerContextInterface) => ({\n ...initialContext,\n component: needsI9Form ? EmploymentEligibilityContextual : DocumentListContextual,\n employeeId,\n withEmployeeI9,\n }),\n ),\n [employeeId, withEmployeeI9],\n )\n\n return <Flow machine={machine} onEvent={onEvent} />\n}\n"],"names":["DocumentSigner","props","jsx","BaseComponent","Root","employeeId","onEvent","dictionary","withEmployeeI9","useComponentDictionary","employeeData","useEmployeesGetSuspense","formsData","useEmployeeFormsListSuspense","employeeHasI9Enabled","i9Form","form","I9_FORM_NAME","needsI9Form","machine","useMemo","createMachine","documentSignerMachine","initialContext","EmploymentEligibilityContextual","DocumentListContextual","Flow"],"mappings":";;;;;;;;;;;;AAoBO,SAASA,EAAeC,GAA4B;AACzD,SACE,gBAAAC,EAACC,KAAe,GAAGF,GACjB,4BAACG,GAAA,EAAM,GAAGH,GAAO,EAAA,CACnB;AAEJ;AAEA,SAASG,EAAK,EAAE,YAAAC,GAAY,SAAAC,GAAS,YAAAC,GAAY,gBAAAC,IAAiB,MAA8B;AAC9F,EAAAC,EAAuB,2BAA2BF,CAAU;AAE5D,QAAM,EAAE,MAAMG,EAAA,IAAiBC,EAAwB,EAAE,YAAAN,GAAY,GAC/D,EAAE,MAAMO,EAAA,IAAcC,EAA6B,EAAE,YAAAR,GAAY,GAEjES,IAAuBJ,EAAa,UAAU,2BAA2B,eAAe,IAExFK,IAASH,EAAU,OAAO,KAAK,CAAAI,MAAQA,EAAK,SAASC,CAAY,GACjEC,IACJV,KAAkBM,MAAyB,CAACC,KAAUA,EAAO,oBAAoB,KAE7EI,IAAUC;AAAA,IACd,MACEC;AAAA,MACEH,IAAc,0BAA0B;AAAA,MACxCI;AAAA,MACA,CAACC,OAAoD;AAAA,QACnD,GAAGA;AAAA,QACH,WAAWL,IAAcM,IAAkCC;AAAA,QAC3D,YAAApB;AAAA,QACA,gBAAAG;AAAA,MAAA;AAAA,IACF;AAAA,IAEJ,CAACH,GAAYG,CAAc;AAAA,EAAA;AAG7B,SAAO,gBAAAN,EAACwB,GAAA,EAAK,SAAAP,GAAkB,SAAAb,EAAA,CAAkB;AACnD;"}
@@ -1,13 +1,14 @@
1
1
  import { jsx as t, jsxs as p } from "react/jsx-runtime";
2
2
  import { useState as I } from "react";
3
- import { useTranslation as L, Trans as A } from "react-i18next";
4
- import { useForm as O, useWatch as d, FormProvider as $ } from "react-hook-form";
5
- import { zodResolver as j } from "@hookform/resolvers/zod";
6
- import { AuthorizationStatus as q, I9AuthorizationDocumentType as w } from "@gusto/embedded-api/models/components/i9authorization";
3
+ import { useTranslation as L, Trans as O } from "react-i18next";
4
+ import { useForm as $, useWatch as d, FormProvider as j } from "react-hook-form";
5
+ import { zodResolver as q } from "@hookform/resolvers/zod";
6
+ import { AuthorizationStatus as w, DocumentType as A } from "@gusto/embedded-api/models/components/i9authorization";
7
7
  import { generateEmploymentEligibilitySchema as k } from "./EmploymentEligibilitySchema.js";
8
8
  import { COUNTRIES as P } from "./countries.js";
9
9
  import { Flex as b } from "../../../Common/Flex/Flex.js";
10
10
  import "classnames";
11
+ import "../../../../shared/constants.js";
11
12
  import { ActionsLayout as V } from "../../../Common/ActionsLayout/ActionsLayout.js";
12
13
  import { ComboBoxField as B } from "../../../Common/Fields/ComboBoxField/ComboBoxField.js";
13
14
  import { Form as H } from "../../../Common/Form/Form.js";
@@ -22,20 +23,20 @@ const Q = {
22
23
  permanent_resident: "statusDescriptions.permanent_resident",
23
24
  noncitizen: "statusDescriptions.noncitizen",
24
25
  alien: "statusDescriptions.alien"
25
- }, fe = ({
26
+ }, ye = ({
26
27
  onSubmit: h,
27
28
  defaultValues: f,
28
29
  hasDocumentNumber: y,
29
30
  isPending: g
30
31
  }) => {
31
32
  M("Employee.EmploymentEligibility");
32
- const { Heading: D, Text: x, Alert: z, Button: E, Link: N } = K(), { t: e } = L("Employee.EmploymentEligibility"), [m, a] = I(!!y), r = O({
33
- resolver: j(k(m)),
33
+ const { Heading: D, Text: x, Alert: E, Button: z, Link: N } = K(), { t: e } = L("Employee.EmploymentEligibility"), [m, a] = I(!!y), r = $({
34
+ resolver: q(k(m)),
34
35
  defaultValues: f
35
- }), { control: l, setValue: u, clearErrors: c } = r, o = d({ control: l, name: "authorizationStatus" }), s = d({ control: l, name: "documentType" }), _ = Object.values(q).map((n) => ({
36
+ }), { control: l, setValue: u, clearErrors: c } = r, o = d({ control: l, name: "authorizationStatus" }), s = d({ control: l, name: "documentType" }), _ = Object.values(w).map((n) => ({
36
37
  value: n,
37
38
  label: e(`select.options.${n}`)
38
- })), S = Object.values(w).map((n) => ({
39
+ })), S = Object.values(A).map((n) => ({
39
40
  value: n,
40
41
  label: e(`authorizationDocument.options.${n}`)
41
42
  })), T = () => {
@@ -46,11 +47,11 @@ const Q = {
46
47
  uscis_alien_registration_number: 9,
47
48
  form_i94: 11
48
49
  };
49
- return /* @__PURE__ */ t($, { ...r, children: /* @__PURE__ */ t(H, { onSubmit: r.handleSubmit(h), children: /* @__PURE__ */ p(b, { flexDirection: "column", gap: 16, children: [
50
+ return /* @__PURE__ */ t(j, { ...r, children: /* @__PURE__ */ t(H, { onSubmit: r.handleSubmit(h), children: /* @__PURE__ */ p(b, { flexDirection: "column", gap: 16, children: [
50
51
  /* @__PURE__ */ p(b, { flexDirection: "column", gap: 2, children: [
51
52
  /* @__PURE__ */ t(D, { as: "h2", children: e("title") }),
52
53
  /* @__PURE__ */ t(x, { variant: "supporting", children: /* @__PURE__ */ t(
53
- A,
54
+ O,
54
55
  {
55
56
  i18nKey: "subtitle",
56
57
  t: e,
@@ -73,7 +74,7 @@ const Q = {
73
74
  }
74
75
  ),
75
76
  o && /* @__PURE__ */ t(
76
- z,
77
+ E,
77
78
  {
78
79
  status: "info",
79
80
  label: e(Q[o]),
@@ -114,10 +115,10 @@ const Q = {
114
115
  isRequired: !0
115
116
  }
116
117
  ),
117
- /* @__PURE__ */ t(V, { children: /* @__PURE__ */ t(E, { type: "submit", isLoading: g, children: e("submit") }) })
118
+ /* @__PURE__ */ t(V, { children: /* @__PURE__ */ t(z, { type: "submit", isLoading: g, children: e("submit") }) })
118
119
  ] }) }) });
119
120
  };
120
121
  export {
121
- fe as EmploymentEligibilityPresentation
122
+ ye as EmploymentEligibilityPresentation
122
123
  };
123
124
  //# sourceMappingURL=EmploymentEligibilityPresentation.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"EmploymentEligibilityPresentation.js","sources":["../../../../../src/components/Employee/DocumentSigner/EmploymentEligibility/EmploymentEligibilityPresentation.tsx"],"sourcesContent":["import { useState } from 'react'\nimport { useTranslation, Trans } from 'react-i18next'\nimport { FormProvider, useForm, useWatch, type SubmitHandler } from 'react-hook-form'\nimport { zodResolver } from '@hookform/resolvers/zod'\nimport {\n AuthorizationStatus,\n I9AuthorizationDocumentType,\n} from '@gusto/embedded-api/models/components/i9authorization'\nimport {\n generateEmploymentEligibilitySchema,\n type EmploymentEligibilityInputs,\n type EmploymentEligibilityPayload,\n} from './EmploymentEligibilitySchema'\nimport { COUNTRIES } from './countries'\nimport {\n Flex,\n SelectField,\n RadioGroupField,\n TextInputField,\n DatePickerField,\n ActionsLayout,\n} from '@/components/Common'\nimport { ComboBoxField } from '@/components/Common/Fields/ComboBoxField/ComboBoxField'\nimport { Form } from '@/components/Common/Form'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\nimport { useI18n } from '@/i18n'\n\ninterface EmploymentEligibilityPresentationProps {\n onSubmit: SubmitHandler<EmploymentEligibilityPayload>\n defaultValues?: Partial<EmploymentEligibilityInputs>\n hasDocumentNumber?: boolean | null\n isPending?: boolean\n}\n\nconst statusDescriptionKeys = {\n citizen: 'statusDescriptions.citizen',\n permanent_resident: 'statusDescriptions.permanent_resident',\n noncitizen: 'statusDescriptions.noncitizen',\n alien: 'statusDescriptions.alien',\n} as const satisfies Record<AuthorizationStatus, string>\n\nexport const EmploymentEligibilityPresentation = ({\n onSubmit,\n defaultValues,\n hasDocumentNumber,\n isPending,\n}: EmploymentEligibilityPresentationProps) => {\n useI18n('Employee.EmploymentEligibility')\n const { Heading, Text, Alert, Button, Link } = useComponentContext()\n const { t } = useTranslation('Employee.EmploymentEligibility')\n\n const [hasExistingDocumentNumber, setHasExistingDocumentNumber] = useState(!!hasDocumentNumber)\n\n const formMethods = useForm<EmploymentEligibilityInputs, unknown, EmploymentEligibilityPayload>({\n resolver: zodResolver(generateEmploymentEligibilitySchema(hasExistingDocumentNumber)),\n defaultValues,\n })\n\n const { control, setValue, clearErrors } = formMethods\n const authorizationStatus = useWatch({ control, name: 'authorizationStatus' })\n const documentType = useWatch({ control, name: 'documentType' })\n\n const statusOptions = Object.values(AuthorizationStatus).map(value => ({\n value,\n label: t(`select.options.${value}`),\n }))\n\n const authorizationDocumentOptions = Object.values(I9AuthorizationDocumentType).map(value => ({\n value,\n label: t(`authorizationDocument.options.${value}`),\n }))\n\n const handleAuthorizationStatusChange = () => {\n setValue('documentNumber', '')\n clearErrors('documentNumber')\n setHasExistingDocumentNumber(false)\n }\n\n const handleDocumentTypeChange = () => {\n setValue('documentNumber', '')\n clearErrors('documentNumber')\n setHasExistingDocumentNumber(false)\n }\n\n const showDocumentTypeRadio = authorizationStatus === 'alien'\n const showDocumentNumberInput =\n authorizationStatus === 'permanent_resident' ||\n (authorizationStatus === 'alien' && !!documentType)\n const activeDocumentType =\n authorizationStatus === 'permanent_resident' ? 'uscis_alien_registration_number' : documentType\n\n const documentNumberMaxLength: Partial<Record<I9AuthorizationDocumentType, number>> = {\n uscis_alien_registration_number: 9,\n form_i94: 11,\n }\n\n return (\n <FormProvider {...formMethods}>\n <Form onSubmit={formMethods.handleSubmit(onSubmit)}>\n <Flex flexDirection=\"column\" gap={16}>\n <Flex flexDirection=\"column\" gap={2}>\n <Heading as=\"h2\">{t('title')}</Heading>\n <Text variant=\"supporting\">\n <Trans\n i18nKey={'subtitle'}\n t={t}\n components={{\n formI9Link: <Link />,\n }}\n />\n </Text>\n </Flex>\n\n <SelectField\n name=\"authorizationStatus\"\n label={t('select.label')}\n description={t('select.description')}\n placeholder={t('select.placeholder')}\n options={statusOptions}\n isRequired\n onChange={handleAuthorizationStatusChange}\n />\n\n {authorizationStatus && (\n <Alert\n status=\"info\"\n label={t(statusDescriptionKeys[authorizationStatus])}\n disableScrollIntoView\n />\n )}\n\n {authorizationStatus === 'alien' && (\n <DatePickerField name=\"expirationDate\" label={t('expirationDate.label')} />\n )}\n\n {showDocumentTypeRadio && (\n <RadioGroupField\n name=\"documentType\"\n label={t('authorizationDocument.label')}\n options={authorizationDocumentOptions}\n isRequired\n onChange={handleDocumentTypeChange}\n />\n )}\n\n {showDocumentNumberInput && activeDocumentType && (\n <TextInputField\n name=\"documentNumber\"\n label={t(`documentNumber.${activeDocumentType}.label`)}\n description={\n activeDocumentType !== 'foreign_passport'\n ? t(`documentNumber.${activeDocumentType}.description`)\n : undefined\n }\n placeholder={\n hasExistingDocumentNumber\n ? t(`documentNumber.${activeDocumentType}.placeholder`)\n : undefined\n }\n maxLength={documentNumberMaxLength[activeDocumentType]}\n isRequired\n />\n )}\n\n {documentType === 'foreign_passport' && authorizationStatus === 'alien' && (\n <ComboBoxField\n name=\"country\"\n label={t('country.label')}\n description={t('country.description')}\n options={COUNTRIES}\n placeholder={t('country.placeholder')}\n allowsCustomValue\n isRequired\n />\n )}\n\n <ActionsLayout>\n <Button type=\"submit\" isLoading={isPending}>\n {t('submit')}\n </Button>\n </ActionsLayout>\n </Flex>\n </Form>\n </FormProvider>\n )\n}\n"],"names":["statusDescriptionKeys","EmploymentEligibilityPresentation","onSubmit","defaultValues","hasDocumentNumber","isPending","useI18n","Heading","Text","Alert","Button","Link","useComponentContext","t","useTranslation","hasExistingDocumentNumber","setHasExistingDocumentNumber","useState","formMethods","useForm","zodResolver","generateEmploymentEligibilitySchema","control","setValue","clearErrors","authorizationStatus","useWatch","documentType","statusOptions","AuthorizationStatus","value","authorizationDocumentOptions","I9AuthorizationDocumentType","handleAuthorizationStatusChange","handleDocumentTypeChange","showDocumentTypeRadio","showDocumentNumberInput","activeDocumentType","documentNumberMaxLength","FormProvider","jsx","Form","jsxs","Flex","Trans","SelectField","DatePickerField","RadioGroupField","TextInputField","ComboBoxField","COUNTRIES","ActionsLayout"],"mappings":"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"}
1
+ {"version":3,"file":"EmploymentEligibilityPresentation.js","sources":["../../../../../src/components/Employee/DocumentSigner/EmploymentEligibility/EmploymentEligibilityPresentation.tsx"],"sourcesContent":["import { useState } from 'react'\nimport { useTranslation, Trans } from 'react-i18next'\nimport { FormProvider, useForm, useWatch, type SubmitHandler } from 'react-hook-form'\nimport { zodResolver } from '@hookform/resolvers/zod'\nimport {\n AuthorizationStatus,\n DocumentType as I9AuthorizationDocumentType,\n} from '@gusto/embedded-api/models/components/i9authorization'\nimport {\n generateEmploymentEligibilitySchema,\n type EmploymentEligibilityInputs,\n type EmploymentEligibilityPayload,\n} from './EmploymentEligibilitySchema'\nimport { COUNTRIES } from './countries'\nimport {\n Flex,\n SelectField,\n RadioGroupField,\n TextInputField,\n DatePickerField,\n ActionsLayout,\n} from '@/components/Common'\nimport { ComboBoxField } from '@/components/Common/Fields/ComboBoxField/ComboBoxField'\nimport { Form } from '@/components/Common/Form'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\nimport { useI18n } from '@/i18n'\n\ninterface EmploymentEligibilityPresentationProps {\n onSubmit: SubmitHandler<EmploymentEligibilityPayload>\n defaultValues?: Partial<EmploymentEligibilityInputs>\n hasDocumentNumber?: boolean | null\n isPending?: boolean\n}\n\nconst statusDescriptionKeys = {\n citizen: 'statusDescriptions.citizen',\n permanent_resident: 'statusDescriptions.permanent_resident',\n noncitizen: 'statusDescriptions.noncitizen',\n alien: 'statusDescriptions.alien',\n} as const satisfies Record<AuthorizationStatus, string>\n\nexport const EmploymentEligibilityPresentation = ({\n onSubmit,\n defaultValues,\n hasDocumentNumber,\n isPending,\n}: EmploymentEligibilityPresentationProps) => {\n useI18n('Employee.EmploymentEligibility')\n const { Heading, Text, Alert, Button, Link } = useComponentContext()\n const { t } = useTranslation('Employee.EmploymentEligibility')\n\n const [hasExistingDocumentNumber, setHasExistingDocumentNumber] = useState(!!hasDocumentNumber)\n\n const formMethods = useForm<EmploymentEligibilityInputs, unknown, EmploymentEligibilityPayload>({\n resolver: zodResolver(generateEmploymentEligibilitySchema(hasExistingDocumentNumber)),\n defaultValues,\n })\n\n const { control, setValue, clearErrors } = formMethods\n const authorizationStatus = useWatch({ control, name: 'authorizationStatus' })\n const documentType = useWatch({ control, name: 'documentType' })\n\n const statusOptions = Object.values(AuthorizationStatus).map(value => ({\n value,\n label: t(`select.options.${value}`),\n }))\n\n const authorizationDocumentOptions = Object.values(I9AuthorizationDocumentType).map(value => ({\n value,\n label: t(`authorizationDocument.options.${value}`),\n }))\n\n const handleAuthorizationStatusChange = () => {\n setValue('documentNumber', '')\n clearErrors('documentNumber')\n setHasExistingDocumentNumber(false)\n }\n\n const handleDocumentTypeChange = () => {\n setValue('documentNumber', '')\n clearErrors('documentNumber')\n setHasExistingDocumentNumber(false)\n }\n\n const showDocumentTypeRadio = authorizationStatus === 'alien'\n const showDocumentNumberInput =\n authorizationStatus === 'permanent_resident' ||\n (authorizationStatus === 'alien' && !!documentType)\n const activeDocumentType =\n authorizationStatus === 'permanent_resident' ? 'uscis_alien_registration_number' : documentType\n\n const documentNumberMaxLength: Partial<Record<I9AuthorizationDocumentType, number>> = {\n uscis_alien_registration_number: 9,\n form_i94: 11,\n }\n\n return (\n <FormProvider {...formMethods}>\n <Form onSubmit={formMethods.handleSubmit(onSubmit)}>\n <Flex flexDirection=\"column\" gap={16}>\n <Flex flexDirection=\"column\" gap={2}>\n <Heading as=\"h2\">{t('title')}</Heading>\n <Text variant=\"supporting\">\n <Trans\n i18nKey={'subtitle'}\n t={t}\n components={{\n formI9Link: <Link />,\n }}\n />\n </Text>\n </Flex>\n\n <SelectField\n name=\"authorizationStatus\"\n label={t('select.label')}\n description={t('select.description')}\n placeholder={t('select.placeholder')}\n options={statusOptions}\n isRequired\n onChange={handleAuthorizationStatusChange}\n />\n\n {authorizationStatus && (\n <Alert\n status=\"info\"\n label={t(statusDescriptionKeys[authorizationStatus])}\n disableScrollIntoView\n />\n )}\n\n {authorizationStatus === 'alien' && (\n <DatePickerField name=\"expirationDate\" label={t('expirationDate.label')} />\n )}\n\n {showDocumentTypeRadio && (\n <RadioGroupField\n name=\"documentType\"\n label={t('authorizationDocument.label')}\n options={authorizationDocumentOptions}\n isRequired\n onChange={handleDocumentTypeChange}\n />\n )}\n\n {showDocumentNumberInput && activeDocumentType && (\n <TextInputField\n name=\"documentNumber\"\n label={t(`documentNumber.${activeDocumentType}.label`)}\n description={\n activeDocumentType !== 'foreign_passport'\n ? t(`documentNumber.${activeDocumentType}.description`)\n : undefined\n }\n placeholder={\n hasExistingDocumentNumber\n ? t(`documentNumber.${activeDocumentType}.placeholder`)\n : undefined\n }\n maxLength={documentNumberMaxLength[activeDocumentType]}\n isRequired\n />\n )}\n\n {documentType === 'foreign_passport' && authorizationStatus === 'alien' && (\n <ComboBoxField\n name=\"country\"\n label={t('country.label')}\n description={t('country.description')}\n options={COUNTRIES}\n placeholder={t('country.placeholder')}\n allowsCustomValue\n isRequired\n />\n )}\n\n <ActionsLayout>\n <Button type=\"submit\" isLoading={isPending}>\n {t('submit')}\n </Button>\n </ActionsLayout>\n </Flex>\n </Form>\n </FormProvider>\n )\n}\n"],"names":["statusDescriptionKeys","EmploymentEligibilityPresentation","onSubmit","defaultValues","hasDocumentNumber","isPending","useI18n","Heading","Text","Alert","Button","Link","useComponentContext","t","useTranslation","hasExistingDocumentNumber","setHasExistingDocumentNumber","useState","formMethods","useForm","zodResolver","generateEmploymentEligibilitySchema","control","setValue","clearErrors","authorizationStatus","useWatch","documentType","statusOptions","AuthorizationStatus","value","authorizationDocumentOptions","I9AuthorizationDocumentType","handleAuthorizationStatusChange","handleDocumentTypeChange","showDocumentTypeRadio","showDocumentNumberInput","activeDocumentType","documentNumberMaxLength","FormProvider","jsx","Form","jsxs","Flex","Trans","SelectField","DatePickerField","RadioGroupField","TextInputField","ComboBoxField","COUNTRIES","ActionsLayout"],"mappings":"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"}
@@ -1,5 +1,5 @@
1
1
  import { z as o } from "zod";
2
- import { I9AuthorizationDocumentType as i, AuthorizationStatus as r } from "@gusto/embedded-api/models/components/i9authorization";
2
+ import { DocumentType as i, AuthorizationStatus as r } from "@gusto/embedded-api/models/components/i9authorization";
3
3
  const t = (u) => /^[Aa]?\d{7,9}$/.test(u), m = (u) => /^\d{9} ?[A-Za-z\d]\d$/.test(u), a = (u) => o.object({
4
4
  authorizationStatus: o.enum(r).optional(),
5
5
  documentType: o.enum(i).optional(),
@@ -1 +1 @@
1
- {"version":3,"file":"EmploymentEligibilitySchema.js","sources":["../../../../../src/components/Employee/DocumentSigner/EmploymentEligibility/EmploymentEligibilitySchema.ts"],"sourcesContent":["import { z } from 'zod'\nimport {\n AuthorizationStatus,\n I9AuthorizationDocumentType,\n} from '@gusto/embedded-api/models/components/i9authorization'\n\nconst isValidUscisNumber = (value: string) => /^[Aa]?\\d{7,9}$/.test(value)\nconst isValidI94Number = (value: string) => /^\\d{9} ?[A-Za-z\\d]\\d$/.test(value)\n\nexport const generateEmploymentEligibilitySchema = (hasDocumentNumber?: boolean | null) =>\n z\n .object({\n authorizationStatus: z.enum(AuthorizationStatus).optional(),\n documentType: z.enum(I9AuthorizationDocumentType).optional(),\n documentNumber: z.string().optional(),\n expirationDate: z\n .date()\n .transform(date => date.toISOString().split('T')[0])\n .optional(),\n country: z.string().optional(),\n })\n .superRefine((data, ctx) => {\n if (!data.authorizationStatus) {\n ctx.addIssue({\n code: z.ZodIssueCode.custom,\n message: 'Authorization status is required',\n path: ['authorizationStatus'],\n })\n return\n }\n if (data.authorizationStatus === 'permanent_resident') {\n if (!data.documentNumber) {\n if (!hasDocumentNumber) {\n ctx.addIssue({\n code: z.ZodIssueCode.custom,\n message: 'Document number is required',\n path: ['documentNumber'],\n })\n }\n } else if (!isValidUscisNumber(data.documentNumber)) {\n ctx.addIssue({\n code: z.ZodIssueCode.custom,\n message: 'Enter a 7-9 digit USCIS number or A-Number (e.g. A123456789)',\n path: ['documentNumber'],\n })\n }\n }\n if (data.authorizationStatus === 'alien') {\n if (!data.documentType) {\n ctx.addIssue({\n code: z.ZodIssueCode.custom,\n message: 'Authorization document is required',\n path: ['documentType'],\n })\n }\n if (!data.documentNumber) {\n if (!hasDocumentNumber) {\n ctx.addIssue({\n code: z.ZodIssueCode.custom,\n message: 'Document number is required',\n path: ['documentNumber'],\n })\n }\n } else if (\n data.documentType === 'uscis_alien_registration_number' &&\n !isValidUscisNumber(data.documentNumber)\n ) {\n ctx.addIssue({\n code: z.ZodIssueCode.custom,\n message: 'Enter a 7-9 digit USCIS number or A-Number (e.g. A123456789)',\n path: ['documentNumber'],\n })\n } else if (data.documentType === 'form_i94' && !isValidI94Number(data.documentNumber)) {\n ctx.addIssue({\n code: z.ZodIssueCode.custom,\n message: 'Enter a valid 11-character Form I-94 admission number',\n path: ['documentNumber'],\n })\n }\n if (data.documentType === 'foreign_passport' && !data.country) {\n ctx.addIssue({\n code: z.ZodIssueCode.custom,\n message: 'Country of issuance is required',\n path: ['country'],\n })\n }\n }\n })\n\nexport type EmploymentEligibilityInputs = z.input<\n ReturnType<typeof generateEmploymentEligibilitySchema>\n>\nexport type EmploymentEligibilityPayload = z.infer<\n ReturnType<typeof generateEmploymentEligibilitySchema>\n>\n"],"names":["isValidUscisNumber","value","isValidI94Number","generateEmploymentEligibilitySchema","hasDocumentNumber","z","AuthorizationStatus","I9AuthorizationDocumentType","date","data","ctx"],"mappings":";;AAMA,MAAMA,IAAqB,CAACC,MAAkB,iBAAiB,KAAKA,CAAK,GACnEC,IAAmB,CAACD,MAAkB,wBAAwB,KAAKA,CAAK,GAEjEE,IAAsC,CAACC,MAClDC,EACG,OAAO;AAAA,EACN,qBAAqBA,EAAE,KAAKC,CAAmB,EAAE,SAAA;AAAA,EACjD,cAAcD,EAAE,KAAKE,CAA2B,EAAE,SAAA;AAAA,EAClD,gBAAgBF,EAAE,OAAA,EAAS,SAAA;AAAA,EAC3B,gBAAgBA,EACb,KAAA,EACA,UAAU,CAAAG,MAAQA,EAAK,YAAA,EAAc,MAAM,GAAG,EAAE,CAAC,CAAC,EAClD,SAAA;AAAA,EACH,SAASH,EAAE,OAAA,EAAS,SAAA;AACtB,CAAC,EACA,YAAY,CAACI,GAAMC,MAAQ;AAC1B,MAAI,CAACD,EAAK,qBAAqB;AAC7B,IAAAC,EAAI,SAAS;AAAA,MACX,MAAML,EAAE,aAAa;AAAA,MACrB,SAAS;AAAA,MACT,MAAM,CAAC,qBAAqB;AAAA,IAAA,CAC7B;AACD;AAAA,EACF;AACA,EAAII,EAAK,wBAAwB,yBAC1BA,EAAK,iBAQET,EAAmBS,EAAK,cAAc,KAChDC,EAAI,SAAS;AAAA,IACX,MAAML,EAAE,aAAa;AAAA,IACrB,SAAS;AAAA,IACT,MAAM,CAAC,gBAAgB;AAAA,EAAA,CACxB,IAZID,KACHM,EAAI,SAAS;AAAA,IACX,MAAML,EAAE,aAAa;AAAA,IACrB,SAAS;AAAA,IACT,MAAM,CAAC,gBAAgB;AAAA,EAAA,CACxB,IAUHI,EAAK,wBAAwB,YAC1BA,EAAK,gBACRC,EAAI,SAAS;AAAA,IACX,MAAML,EAAE,aAAa;AAAA,IACrB,SAAS;AAAA,IACT,MAAM,CAAC,cAAc;AAAA,EAAA,CACtB,GAEEI,EAAK,iBASRA,EAAK,iBAAiB,qCACtB,CAACT,EAAmBS,EAAK,cAAc,IAEvCC,EAAI,SAAS;AAAA,IACX,MAAML,EAAE,aAAa;AAAA,IACrB,SAAS;AAAA,IACT,MAAM,CAAC,gBAAgB;AAAA,EAAA,CACxB,IACQI,EAAK,iBAAiB,cAAc,CAACP,EAAiBO,EAAK,cAAc,KAClFC,EAAI,SAAS;AAAA,IACX,MAAML,EAAE,aAAa;AAAA,IACrB,SAAS;AAAA,IACT,MAAM,CAAC,gBAAgB;AAAA,EAAA,CACxB,IArBID,KACHM,EAAI,SAAS;AAAA,IACX,MAAML,EAAE,aAAa;AAAA,IACrB,SAAS;AAAA,IACT,MAAM,CAAC,gBAAgB;AAAA,EAAA,CACxB,GAkBDI,EAAK,iBAAiB,sBAAsB,CAACA,EAAK,WACpDC,EAAI,SAAS;AAAA,IACX,MAAML,EAAE,aAAa;AAAA,IACrB,SAAS;AAAA,IACT,MAAM,CAAC,SAAS;AAAA,EAAA,CACjB;AAGP,CAAC;"}
1
+ {"version":3,"file":"EmploymentEligibilitySchema.js","sources":["../../../../../src/components/Employee/DocumentSigner/EmploymentEligibility/EmploymentEligibilitySchema.ts"],"sourcesContent":["import { z } from 'zod'\nimport {\n AuthorizationStatus,\n DocumentType as I9AuthorizationDocumentType,\n} from '@gusto/embedded-api/models/components/i9authorization'\n\nconst isValidUscisNumber = (value: string) => /^[Aa]?\\d{7,9}$/.test(value)\nconst isValidI94Number = (value: string) => /^\\d{9} ?[A-Za-z\\d]\\d$/.test(value)\n\nexport const generateEmploymentEligibilitySchema = (hasDocumentNumber?: boolean | null) =>\n z\n .object({\n authorizationStatus: z.enum(AuthorizationStatus).optional(),\n documentType: z.enum(I9AuthorizationDocumentType).optional(),\n documentNumber: z.string().optional(),\n expirationDate: z\n .date()\n .transform(date => date.toISOString().split('T')[0])\n .optional(),\n country: z.string().optional(),\n })\n .superRefine((data, ctx) => {\n if (!data.authorizationStatus) {\n ctx.addIssue({\n code: z.ZodIssueCode.custom,\n message: 'Authorization status is required',\n path: ['authorizationStatus'],\n })\n return\n }\n if (data.authorizationStatus === 'permanent_resident') {\n if (!data.documentNumber) {\n if (!hasDocumentNumber) {\n ctx.addIssue({\n code: z.ZodIssueCode.custom,\n message: 'Document number is required',\n path: ['documentNumber'],\n })\n }\n } else if (!isValidUscisNumber(data.documentNumber)) {\n ctx.addIssue({\n code: z.ZodIssueCode.custom,\n message: 'Enter a 7-9 digit USCIS number or A-Number (e.g. A123456789)',\n path: ['documentNumber'],\n })\n }\n }\n if (data.authorizationStatus === 'alien') {\n if (!data.documentType) {\n ctx.addIssue({\n code: z.ZodIssueCode.custom,\n message: 'Authorization document is required',\n path: ['documentType'],\n })\n }\n if (!data.documentNumber) {\n if (!hasDocumentNumber) {\n ctx.addIssue({\n code: z.ZodIssueCode.custom,\n message: 'Document number is required',\n path: ['documentNumber'],\n })\n }\n } else if (\n data.documentType === 'uscis_alien_registration_number' &&\n !isValidUscisNumber(data.documentNumber)\n ) {\n ctx.addIssue({\n code: z.ZodIssueCode.custom,\n message: 'Enter a 7-9 digit USCIS number or A-Number (e.g. A123456789)',\n path: ['documentNumber'],\n })\n } else if (data.documentType === 'form_i94' && !isValidI94Number(data.documentNumber)) {\n ctx.addIssue({\n code: z.ZodIssueCode.custom,\n message: 'Enter a valid 11-character Form I-94 admission number',\n path: ['documentNumber'],\n })\n }\n if (data.documentType === 'foreign_passport' && !data.country) {\n ctx.addIssue({\n code: z.ZodIssueCode.custom,\n message: 'Country of issuance is required',\n path: ['country'],\n })\n }\n }\n })\n\nexport type EmploymentEligibilityInputs = z.input<\n ReturnType<typeof generateEmploymentEligibilitySchema>\n>\nexport type EmploymentEligibilityPayload = z.infer<\n ReturnType<typeof generateEmploymentEligibilitySchema>\n>\n"],"names":["isValidUscisNumber","value","isValidI94Number","generateEmploymentEligibilitySchema","hasDocumentNumber","z","AuthorizationStatus","I9AuthorizationDocumentType","date","data","ctx"],"mappings":";;AAMA,MAAMA,IAAqB,CAACC,MAAkB,iBAAiB,KAAKA,CAAK,GACnEC,IAAmB,CAACD,MAAkB,wBAAwB,KAAKA,CAAK,GAEjEE,IAAsC,CAACC,MAClDC,EACG,OAAO;AAAA,EACN,qBAAqBA,EAAE,KAAKC,CAAmB,EAAE,SAAA;AAAA,EACjD,cAAcD,EAAE,KAAKE,CAA2B,EAAE,SAAA;AAAA,EAClD,gBAAgBF,EAAE,OAAA,EAAS,SAAA;AAAA,EAC3B,gBAAgBA,EACb,KAAA,EACA,UAAU,CAAAG,MAAQA,EAAK,YAAA,EAAc,MAAM,GAAG,EAAE,CAAC,CAAC,EAClD,SAAA;AAAA,EACH,SAASH,EAAE,OAAA,EAAS,SAAA;AACtB,CAAC,EACA,YAAY,CAACI,GAAMC,MAAQ;AAC1B,MAAI,CAACD,EAAK,qBAAqB;AAC7B,IAAAC,EAAI,SAAS;AAAA,MACX,MAAML,EAAE,aAAa;AAAA,MACrB,SAAS;AAAA,MACT,MAAM,CAAC,qBAAqB;AAAA,IAAA,CAC7B;AACD;AAAA,EACF;AACA,EAAII,EAAK,wBAAwB,yBAC1BA,EAAK,iBAQET,EAAmBS,EAAK,cAAc,KAChDC,EAAI,SAAS;AAAA,IACX,MAAML,EAAE,aAAa;AAAA,IACrB,SAAS;AAAA,IACT,MAAM,CAAC,gBAAgB;AAAA,EAAA,CACxB,IAZID,KACHM,EAAI,SAAS;AAAA,IACX,MAAML,EAAE,aAAa;AAAA,IACrB,SAAS;AAAA,IACT,MAAM,CAAC,gBAAgB;AAAA,EAAA,CACxB,IAUHI,EAAK,wBAAwB,YAC1BA,EAAK,gBACRC,EAAI,SAAS;AAAA,IACX,MAAML,EAAE,aAAa;AAAA,IACrB,SAAS;AAAA,IACT,MAAM,CAAC,cAAc;AAAA,EAAA,CACtB,GAEEI,EAAK,iBASRA,EAAK,iBAAiB,qCACtB,CAACT,EAAmBS,EAAK,cAAc,IAEvCC,EAAI,SAAS;AAAA,IACX,MAAML,EAAE,aAAa;AAAA,IACrB,SAAS;AAAA,IACT,MAAM,CAAC,gBAAgB;AAAA,EAAA,CACxB,IACQI,EAAK,iBAAiB,cAAc,CAACP,EAAiBO,EAAK,cAAc,KAClFC,EAAI,SAAS;AAAA,IACX,MAAML,EAAE,aAAa;AAAA,IACrB,SAAS;AAAA,IACT,MAAM,CAAC,gBAAgB;AAAA,EAAA,CACxB,IArBID,KACHM,EAAI,SAAS;AAAA,IACX,MAAML,EAAE,aAAa;AAAA,IACrB,SAAS;AAAA,IACT,MAAM,CAAC,gBAAgB;AAAA,EAAA,CACxB,GAkBDI,EAAK,iBAAiB,sBAAsB,CAACA,EAAK,WACpDC,EAAI,SAAS;AAAA,IACX,MAAML,EAAE,aAAa;AAAA,IACrB,SAAS;AAAA,IACT,MAAM,CAAC,SAAS;AAAA,EAAA,CACjB;AAGP,CAAC;"}
@@ -10,10 +10,10 @@ import { componentEvents as f } from "../../../../shared/constants.js";
10
10
  import { Flex as m } from "../../../Common/Flex/Flex.js";
11
11
  import "classnames";
12
12
  import { ActionsLayout as k } from "../../../Common/ActionsLayout/ActionsLayout.js";
13
- import { Form as w } from "../../../Common/Form/Form.js";
14
- import { SDKFormProvider as B } from "../../../../partner-hook-utils/form/SDKFormProvider.js";
13
+ import { DocumentViewer as w } from "../../../Common/DocumentViewer/DocumentViewer.js";
14
+ import { Form as B } from "../../../Common/Form/Form.js";
15
+ import { SDKFormProvider as F } from "../../../../partner-hook-utils/form/SDKFormProvider.js";
15
16
  import { useComponentContext as h } from "../../../../contexts/ComponentAdapter/useComponentContext.js";
16
- import { DocumentViewer as F } from "../../../Common/DocumentViewer/DocumentViewer.js";
17
17
  function ne(i) {
18
18
  return /* @__PURE__ */ e(x, { ...i, children: /* @__PURE__ */ e(P, { ...i }) });
19
19
  }
@@ -35,7 +35,7 @@ function P({ employeeId: i, formId: c, className: a }) {
35
35
  l.Preparer3,
36
36
  l.Preparer4
37
37
  ].filter((p) => p !== void 0);
38
- return /* @__PURE__ */ e("section", { className: a, children: /* @__PURE__ */ e(C, { error: n.errorHandling.errors, children: /* @__PURE__ */ e(B, { formHookResult: n, children: /* @__PURE__ */ e(w, { onSubmit: () => void _(), children: /* @__PURE__ */ o(m, { flexDirection: "column", gap: 20, children: [
38
+ return /* @__PURE__ */ e("section", { className: a, children: /* @__PURE__ */ e(C, { error: n.errorHandling.errors, children: /* @__PURE__ */ e(F, { formHookResult: n, children: /* @__PURE__ */ e(B, { onSubmit: () => void _(), children: /* @__PURE__ */ o(m, { flexDirection: "column", gap: 20, children: [
39
39
  /* @__PURE__ */ o("section", { children: [
40
40
  /* @__PURE__ */ e(r.Heading, { as: "h2", children: t("title") }),
41
41
  /* @__PURE__ */ e(r.Text, { children: /* @__PURE__ */ e(
@@ -65,7 +65,7 @@ function P({ employeeId: i, formId: c, className: a }) {
65
65
  }
66
66
  ),
67
67
  /* @__PURE__ */ e(
68
- F,
68
+ w,
69
69
  {
70
70
  url: b,
71
71
  title: S.title,
@@ -8,16 +8,16 @@ import { componentEvents as u } from "../../../../shared/constants.js";
8
8
  import { Flex as p } from "../../../Common/Flex/Flex.js";
9
9
  import "classnames";
10
10
  import { ActionsLayout as w } from "../../../Common/ActionsLayout/ActionsLayout.js";
11
- import { Form as y } from "../../../Common/Form/Form.js";
12
- import { SDKFormProvider as k } from "../../../../partner-hook-utils/form/SDKFormProvider.js";
13
- import { useComponentContext as x } from "../../../../contexts/ComponentAdapter/useComponentContext.js";
14
- import { DocumentViewer as R } from "../../../Common/DocumentViewer/DocumentViewer.js";
11
+ import { DocumentViewer as y } from "../../../Common/DocumentViewer/DocumentViewer.js";
12
+ import { Form as k } from "../../../Common/Form/Form.js";
13
+ import { SDKFormProvider as x } from "../../../../partner-hook-utils/form/SDKFormProvider.js";
14
+ import { useComponentContext as R } from "../../../../contexts/ComponentAdapter/useComponentContext.js";
15
15
  function V(t) {
16
16
  return /* @__PURE__ */ o(L, { ...t, children: /* @__PURE__ */ o(B, { ...t }) });
17
17
  }
18
18
  function B({ employeeId: t, formId: f, className: g }) {
19
19
  D("Employee.DocumentSigner");
20
- const { t: r } = S("Employee.DocumentSigner"), { onEvent: m } = v(), n = x(), e = F({ employeeId: t, formId: f });
20
+ const { t: r } = S("Employee.DocumentSigner"), { onEvent: m } = v(), n = R(), e = F({ employeeId: t, formId: f });
21
21
  if (e.isLoading)
22
22
  return /* @__PURE__ */ o(d, { isLoading: !0, error: e.errorHandling.errors });
23
23
  const { form: i, pdfUrl: a } = e.data, { isPending: h } = e.status, { Fields: l } = e.form, E = () => {
@@ -26,7 +26,7 @@ function B({ employeeId: t, formId: f, className: g }) {
26
26
  const c = await e.actions.onSubmit();
27
27
  c && m(u.EMPLOYEE_SIGN_FORM, c.data);
28
28
  };
29
- return /* @__PURE__ */ o("section", { className: g, children: /* @__PURE__ */ o(d, { error: e.errorHandling.errors, children: /* @__PURE__ */ o(k, { formHookResult: e, children: /* @__PURE__ */ o(y, { onSubmit: () => void b(), children: /* @__PURE__ */ s(p, { flexDirection: "column", children: [
29
+ return /* @__PURE__ */ o("section", { className: g, children: /* @__PURE__ */ o(d, { error: e.errorHandling.errors, children: /* @__PURE__ */ o(x, { formHookResult: e, children: /* @__PURE__ */ o(k, { onSubmit: () => void b(), children: /* @__PURE__ */ s(p, { flexDirection: "column", children: [
30
30
  /* @__PURE__ */ s("section", { children: [
31
31
  /* @__PURE__ */ o(n.Heading, { as: "h2", children: r("signatureFormTitle", { formTitle: i.title }) }),
32
32
  a && /* @__PURE__ */ o(n.Text, { children: /* @__PURE__ */ o(
@@ -50,7 +50,7 @@ function B({ employeeId: t, formId: f, className: g }) {
50
50
  ) })
51
51
  ] }),
52
52
  /* @__PURE__ */ o(
53
- R,
53
+ y,
54
54
  {
55
55
  url: a,
56
56
  title: i.title,
@@ -1,77 +1,78 @@
1
- import { useState as q, useMemo as L, useCallback as R, useEffect as O } from "react";
1
+ import { useState as H, useMemo as L, useCallback as R, useEffect as O } from "react";
2
2
  import { useForm as U } from "react-hook-form";
3
- import { zodResolver as x } from "@hookform/resolvers/zod";
4
- import { useEmployeeFormsGet as z } from "@gusto/embedded-api/react-query/employeeFormsGet";
5
- import { useEmployeeFormsGetPdf as G } from "@gusto/embedded-api/react-query/employeeFormsGetPdf";
6
- import { useEmployeeFormsSignMutation as H } from "@gusto/embedded-api/react-query/employeeFormsSign";
3
+ import { zodResolver as k } from "@hookform/resolvers/zod";
4
+ import { useEmployeeFormsGet as x } from "@gusto/embedded-api/react-query/employeeFormsGet";
5
+ import { useEmployeeFormsGetPdf as z } from "@gusto/embedded-api/react-query/employeeFormsGetPdf";
6
+ import { useEmployeeFormsSignMutation as G } from "@gusto/embedded-api/react-query/employeeFormsSign";
7
7
  import { createSignEmployeeFormSchema as T, MAX_PREPARERS as v, PREPARER_FIELDS_BY_INDEX as V, PREPARERS_BY_INDEX as X } from "./signEmployeeFormSchema.js";
8
- import { Preparer4ConfirmSignature as Y, Preparer4Signature as k, Preparer4Zip as Q, Preparer4State as j, Preparer4City as $, Preparer4Street2 as J, Preparer4Street1 as K, Preparer4LastName as W, Preparer4FirstName as rr, Preparer3ConfirmSignature as er, Preparer3Signature as tr, Preparer3Zip as ar, Preparer3State as ir, Preparer3City as sr, Preparer3Street2 as or, Preparer3Street1 as nr, Preparer3LastName as pr, Preparer3FirstName as mr, Preparer2ConfirmSignature as ur, Preparer2Signature as Sr, Preparer2Zip as fr, Preparer2State as Pr, Preparer2City as cr, Preparer2Street2 as dr, Preparer2Street1 as gr, Preparer2LastName as lr, Preparer2FirstName as Fr, Preparer1ConfirmSignature as Nr, Preparer1Signature as Cr, Preparer1Zip as Er, Preparer1State as br, Preparer1City as yr, Preparer1Street2 as Lr, Preparer1Street1 as Rr, Preparer1LastName as vr, Preparer1FirstName as Mr, UsedPreparerField as hr, ConfirmSignatureField as Ar, SignatureField as _r } from "./fields.js";
9
- import { useDeriveFieldsMetadata as Zr } from "../../../../../partner-hook-utils/form/useDeriveFieldsMetadata.js";
8
+ import { Preparer4ConfirmSignature as Y, Preparer4Signature as Q, Preparer4Zip as j, Preparer4State as $, Preparer4City as J, Preparer4Street2 as K, Preparer4Street1 as W, Preparer4LastName as rr, Preparer4FirstName as er, Preparer3ConfirmSignature as tr, Preparer3Signature as ar, Preparer3Zip as ir, Preparer3State as sr, Preparer3City as or, Preparer3Street2 as nr, Preparer3Street1 as pr, Preparer3LastName as mr, Preparer3FirstName as ur, Preparer2ConfirmSignature as Sr, Preparer2Signature as fr, Preparer2Zip as Pr, Preparer2State as cr, Preparer2City as dr, Preparer2Street2 as gr, Preparer2Street1 as lr, Preparer2LastName as Fr, Preparer2FirstName as Nr, Preparer1ConfirmSignature as Cr, Preparer1Signature as Er, Preparer1Zip as br, Preparer1State as yr, Preparer1City as Lr, Preparer1Street2 as Rr, Preparer1Street1 as vr, Preparer1LastName as Mr, Preparer1FirstName as hr, UsedPreparerField as Ar, ConfirmSignatureField as _r, SignatureField as Zr } from "./fields.js";
9
+ import { useDeriveFieldsMetadata as Ir } from "../../../../../partner-hook-utils/form/useDeriveFieldsMetadata.js";
10
+ import { useHookFormInternals as wr } from "../../../../../partner-hook-utils/form/useHookFormInternals.js";
10
11
  import { withOptions as S } from "../../../../../partner-hook-utils/form/withOptions.js";
11
- import { createGetFormSubmissionValues as wr } from "../../../../../partner-hook-utils/form/getFormSubmissionValues.js";
12
- import { composeErrorHandler as Br } from "../../../../../partner-hook-utils/composeErrorHandler.js";
13
- import { useBaseSubmit as Dr } from "../../../../Base/useBaseSubmit.js";
14
- import { I9_FORM_NAME as Ir, STATES_ABBR as f } from "../../../../../shared/constants.js";
15
- const P = f.map((e) => ({ label: e, value: e })), qr = {
16
- FirstName: Mr,
17
- LastName: vr,
18
- Street1: Rr,
19
- Street2: Lr,
20
- City: yr,
21
- State: br,
22
- Zip: Er,
23
- Signature: Cr,
24
- ConfirmSignature: Nr
25
- }, Or = {
26
- FirstName: Fr,
27
- LastName: lr,
28
- Street1: gr,
29
- Street2: dr,
30
- City: cr,
31
- State: Pr,
32
- Zip: fr,
33
- Signature: Sr,
34
- ConfirmSignature: ur
12
+ import { createGetFormSubmissionValues as Br } from "../../../../../partner-hook-utils/form/getFormSubmissionValues.js";
13
+ import { composeErrorHandler as Dr } from "../../../../../partner-hook-utils/composeErrorHandler.js";
14
+ import { useBaseSubmit as qr } from "../../../../Base/useBaseSubmit.js";
15
+ import { I9_FORM_NAME as Hr, STATES_ABBR as f } from "../../../../../shared/constants.js";
16
+ const P = f.map((e) => ({ label: e, value: e })), Or = {
17
+ FirstName: hr,
18
+ LastName: Mr,
19
+ Street1: vr,
20
+ Street2: Rr,
21
+ City: Lr,
22
+ State: yr,
23
+ Zip: br,
24
+ Signature: Er,
25
+ ConfirmSignature: Cr
35
26
  }, Ur = {
36
- FirstName: mr,
37
- LastName: pr,
38
- Street1: nr,
39
- Street2: or,
40
- City: sr,
41
- State: ir,
42
- Zip: ar,
43
- Signature: tr,
44
- ConfirmSignature: er
27
+ FirstName: Nr,
28
+ LastName: Fr,
29
+ Street1: lr,
30
+ Street2: gr,
31
+ City: dr,
32
+ State: cr,
33
+ Zip: Pr,
34
+ Signature: fr,
35
+ ConfirmSignature: Sr
36
+ }, kr = {
37
+ FirstName: ur,
38
+ LastName: mr,
39
+ Street1: pr,
40
+ Street2: nr,
41
+ City: or,
42
+ State: sr,
43
+ Zip: ir,
44
+ Signature: ar,
45
+ ConfirmSignature: tr
45
46
  }, xr = {
46
- FirstName: rr,
47
- LastName: W,
48
- Street1: K,
49
- Street2: J,
50
- City: $,
51
- State: j,
52
- Zip: Q,
53
- Signature: k,
47
+ FirstName: er,
48
+ LastName: rr,
49
+ Street1: W,
50
+ Street2: K,
51
+ City: J,
52
+ State: $,
53
+ Zip: j,
54
+ Signature: Q,
54
55
  ConfirmSignature: Y
55
56
  };
56
- function ae({
57
+ function oe({
57
58
  employeeId: e,
58
59
  formId: m
59
60
  }) {
60
- const t = z({ employeeId: e, formId: m }), o = G({ employeeId: e, formId: m }), r = t.data?.form, M = o.data?.formPdf?.documentUrl, a = r?.name === Ir, [i, N] = q(0), [C, h] = L(
61
+ const t = x({ employeeId: e, formId: m }), o = z({ employeeId: e, formId: m }), r = t.data?.form, M = o.data?.formPdf?.documentUrl, a = r?.name === Hr, [i, N] = H(0), [C, h] = L(
61
62
  () => T({ isI9: a, preparerCount: i }),
62
63
  [a, i]
63
64
  ), n = U({
64
- resolver: x(C),
65
+ resolver: k(C),
65
66
  defaultValues: {
66
67
  signature: "",
67
68
  confirmSignature: !1,
68
69
  usedPreparer: "no"
69
70
  }
70
- }), { mutateAsync: A, isPending: _ } = H(), {
71
+ }), { mutateAsync: A, isPending: _ } = G(), {
71
72
  baseSubmitHandler: Z,
72
- error: w,
73
- setError: B
74
- } = Dr("SignEmployeeForm"), E = Br([t, o], { submitError: w, setSubmitError: B }), p = Zr(h, n.control), D = L(
73
+ error: I,
74
+ setError: w
75
+ } = qr("SignEmployeeForm"), E = Dr([t, o], { submitError: I, setSubmitError: w }), p = Ir(h, n.control), B = L(
75
76
  () => ({
76
77
  ...p,
77
78
  ...a ? {
@@ -103,7 +104,7 @@ function ae({
103
104
  for (let s = i; s > 0; s--)
104
105
  d();
105
106
  }, [g, a, i, c, d]);
106
- const I = async () => {
107
+ const D = async () => {
107
108
  let s;
108
109
  return await new Promise((u) => {
109
110
  n.handleSubmit(
@@ -129,29 +130,29 @@ function ae({
129
130
  }
130
131
  )();
131
132
  }), s;
132
- };
133
+ }, q = wr(n);
133
134
  return t.isLoading || o.isLoading || !r ? { isLoading: !0, errorHandling: E } : {
134
135
  isLoading: !1,
135
136
  data: { form: r, pdfUrl: M },
136
137
  status: { isPending: _, mode: "create" },
137
138
  actions: {
138
- onSubmit: I,
139
+ onSubmit: D,
139
140
  ...a ? { addPreparer: c, removePreparer: d } : {}
140
141
  },
141
142
  errorHandling: E,
142
143
  form: {
143
144
  Fields: {
144
- Signature: _r,
145
- ConfirmSignature: Ar,
146
- UsedPreparer: a ? hr : void 0,
147
- Preparer1: a && i >= 1 ? qr : void 0,
148
- Preparer2: a && i >= 2 ? Or : void 0,
149
- Preparer3: a && i >= 3 ? Ur : void 0,
145
+ Signature: Zr,
146
+ ConfirmSignature: _r,
147
+ UsedPreparer: a ? Ar : void 0,
148
+ Preparer1: a && i >= 1 ? Or : void 0,
149
+ Preparer2: a && i >= 2 ? Ur : void 0,
150
+ Preparer3: a && i >= 3 ? kr : void 0,
150
151
  Preparer4: a && i >= 4 ? xr : void 0
151
152
  },
152
- fieldsMetadata: D,
153
- hookFormInternals: { formMethods: n },
154
- getFormSubmissionValues: wr(n, C),
153
+ fieldsMetadata: B,
154
+ hookFormInternals: q,
155
+ getFormSubmissionValues: Br(n, C),
155
156
  ...a ? {
156
157
  preparers: {
157
158
  count: i,
@@ -174,6 +175,6 @@ function zr(e, m) {
174
175
  return t;
175
176
  }
176
177
  export {
177
- ae as useSignEmployeeForm
178
+ oe as useSignEmployeeForm
178
179
  };
179
180
  //# sourceMappingURL=useSignEmployeeForm.js.map