@gusto/embedded-react-sdk 0.37.0-rc.1 → 0.37.0-rc.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (563) hide show
  1. package/CHANGELOG.md +44 -8
  2. package/README.md +9 -0
  3. package/dist/UNSTABLE_Hooks.d.ts +1 -1
  4. package/dist/UNSTABLE_Hooks.js +50 -6
  5. package/dist/UNSTABLE_Hooks.js.map +1 -1
  6. package/dist/components/Base/Base.d.ts +2 -1
  7. package/dist/components/Base/Base.js +76 -76
  8. package/dist/components/Base/Base.js.map +1 -1
  9. package/dist/components/Base/createCompoundContext.js.map +1 -1
  10. package/dist/components/Common/DataView/DataCards/DataCards.js +42 -36
  11. package/dist/components/Common/DataView/DataCards/DataCards.js.map +1 -1
  12. package/dist/components/Common/Fields/CheckboxField/CheckboxField.d.ts +2 -0
  13. package/dist/components/Common/Fields/CheckboxField/CheckboxField.js +22 -19
  14. package/dist/components/Common/Fields/CheckboxField/CheckboxField.js.map +1 -1
  15. package/dist/components/Common/Fields/CheckboxGroupField/CheckboxGroupField.d.ts +1 -1
  16. package/dist/components/Common/Fields/CheckboxGroupField/CheckboxGroupField.js +32 -30
  17. package/dist/components/Common/Fields/CheckboxGroupField/CheckboxGroupField.js.map +1 -1
  18. package/dist/components/Common/Fields/ComboBoxField/ComboBoxField.d.ts +1 -1
  19. package/dist/components/Common/Fields/ComboBoxField/ComboBoxField.js +36 -34
  20. package/dist/components/Common/Fields/ComboBoxField/ComboBoxField.js.map +1 -1
  21. package/dist/components/Common/Fields/DatePickerField/DatePickerField.d.ts +5 -3
  22. package/dist/components/Common/Fields/DatePickerField/DatePickerField.js +52 -40
  23. package/dist/components/Common/Fields/DatePickerField/DatePickerField.js.map +1 -1
  24. package/dist/components/Common/Fields/FileInputField/FileInputField.js +24 -22
  25. package/dist/components/Common/Fields/FileInputField/FileInputField.js.map +1 -1
  26. package/dist/components/Common/Fields/MultiSelectComboBoxField/MultiSelectComboBoxField.js +24 -22
  27. package/dist/components/Common/Fields/MultiSelectComboBoxField/MultiSelectComboBoxField.js.map +1 -1
  28. package/dist/components/Common/Fields/NumberInputField/NumberInputField.d.ts +2 -0
  29. package/dist/components/Common/Fields/NumberInputField/NumberInputField.js +31 -28
  30. package/dist/components/Common/Fields/NumberInputField/NumberInputField.js.map +1 -1
  31. package/dist/components/Common/Fields/RadioGroupField/RadioGroupField.d.ts +3 -1
  32. package/dist/components/Common/Fields/RadioGroupField/RadioGroupField.js +30 -27
  33. package/dist/components/Common/Fields/RadioGroupField/RadioGroupField.js.map +1 -1
  34. package/dist/components/Common/Fields/SelectField/SelectField.d.ts +3 -1
  35. package/dist/components/Common/Fields/SelectField/SelectField.js +31 -28
  36. package/dist/components/Common/Fields/SelectField/SelectField.js.map +1 -1
  37. package/dist/components/Common/Fields/SwitchField/SwitchField.d.ts +2 -0
  38. package/dist/components/Common/Fields/SwitchField/SwitchField.js +24 -21
  39. package/dist/components/Common/Fields/SwitchField/SwitchField.js.map +1 -1
  40. package/dist/components/Common/Fields/TextAreaField/TextAreaField.js +24 -22
  41. package/dist/components/Common/Fields/TextAreaField/TextAreaField.js.map +1 -1
  42. package/dist/components/Common/Fields/TextInputField/TextInputField.d.ts +2 -0
  43. package/dist/components/Common/Fields/TextInputField/TextInputField.js +26 -23
  44. package/dist/components/Common/Fields/TextInputField/TextInputField.js.map +1 -1
  45. package/dist/components/Common/Fields/hooks/useField.d.ts +3 -2
  46. package/dist/components/Common/Fields/hooks/useField.js +37 -33
  47. package/dist/components/Common/Fields/hooks/useField.js.map +1 -1
  48. package/dist/components/Common/ReorderableList/ReorderableList.js.map +1 -1
  49. package/dist/components/Common/SignatureForm/SignatureForm.js +10 -15
  50. package/dist/components/Common/SignatureForm/SignatureForm.js.map +1 -1
  51. package/dist/components/Common/SignatureForm/SignatureFormActions.js +10 -14
  52. package/dist/components/Common/SignatureForm/SignatureFormActions.js.map +1 -1
  53. package/dist/components/Common/SignatureForm/SignatureFormFields.js +14 -19
  54. package/dist/components/Common/SignatureForm/SignatureFormFields.js.map +1 -1
  55. package/dist/components/Common/UI/Breadcrumbs/Breadcrumbs.js +1 -1
  56. package/dist/components/Common/UI/Button/Button.js +33 -29
  57. package/dist/components/Common/UI/Button/Button.js.map +1 -1
  58. package/dist/components/Common/UI/Button/Button.module.scss.js +5 -3
  59. package/dist/components/Common/UI/Button/Button.module.scss.js.map +1 -1
  60. package/dist/components/Common/UI/Button/ButtonTypes.d.ts +4 -0
  61. package/dist/components/Common/UI/Button/ButtonTypes.js.map +1 -1
  62. package/dist/components/Common/UI/DescriptionList/DescriptionList.module.scss.js +2 -2
  63. package/dist/components/Common/UI/FileInput/FileInput.js +1 -1
  64. package/dist/components/Common/UI/MultiSelectComboBox/MultiSelectComboBox.js +94 -80
  65. package/dist/components/Common/UI/MultiSelectComboBox/MultiSelectComboBox.js.map +1 -1
  66. package/dist/components/Common/UI/NumberInput/NumberInput.js +1 -1
  67. package/dist/components/Common/UI/NumberInput/NumberInput.js.map +1 -1
  68. package/dist/components/Common/UI/ProgressBar/ProgressBar.js +4 -4
  69. package/dist/components/Company/AssignSignatory/AssignSignatory.js +7 -11
  70. package/dist/components/Company/AssignSignatory/AssignSignatory.js.map +1 -1
  71. package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js +6 -10
  72. package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js.map +1 -1
  73. package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.js +8 -11
  74. package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.js.map +1 -1
  75. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatory.js +6 -9
  76. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatory.js.map +1 -1
  77. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.js +14 -16
  78. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.js.map +1 -1
  79. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js +8 -7
  80. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js.map +1 -1
  81. package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.js +6 -9
  82. package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.js.map +1 -1
  83. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatory.js +5 -8
  84. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatory.js.map +1 -1
  85. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatoryForm.js +13 -15
  86. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatoryForm.js.map +1 -1
  87. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js +8 -7
  88. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js.map +1 -1
  89. package/dist/components/Company/AssignSignatory/TitleSelect.js +2 -5
  90. package/dist/components/Company/AssignSignatory/TitleSelect.js.map +1 -1
  91. package/dist/components/Company/AssignSignatory/useAssignSignatory.js +10 -9
  92. package/dist/components/Company/AssignSignatory/useAssignSignatory.js.map +1 -1
  93. package/dist/components/Company/BankAccount/BankAccountForm/Actions.js +9 -11
  94. package/dist/components/Company/BankAccount/BankAccountForm/Actions.js.map +1 -1
  95. package/dist/components/Company/BankAccount/BankAccountForm/Form.js +9 -13
  96. package/dist/components/Company/BankAccount/BankAccountForm/Form.js.map +1 -1
  97. package/dist/components/Company/BankAccount/BankAccountForm/context.js +8 -7
  98. package/dist/components/Company/BankAccount/BankAccountForm/context.js.map +1 -1
  99. package/dist/components/Company/BankAccount/BankAccountList/Actions.js +10 -13
  100. package/dist/components/Company/BankAccount/BankAccountList/Actions.js.map +1 -1
  101. package/dist/components/Company/BankAccount/BankAccountVerify/Actions.js +12 -15
  102. package/dist/components/Company/BankAccount/BankAccountVerify/Actions.js.map +1 -1
  103. package/dist/components/Company/BankAccount/BankAccountVerify/Form.js +4 -8
  104. package/dist/components/Company/BankAccount/BankAccountVerify/Form.js.map +1 -1
  105. package/dist/components/Company/DocumentSigner/DocumentList/Actions.js +5 -8
  106. package/dist/components/Company/DocumentSigner/DocumentList/Actions.js.map +1 -1
  107. package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.js +11 -15
  108. package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.js.map +1 -1
  109. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js +8 -7
  110. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  111. package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js +11 -15
  112. package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js.map +1 -1
  113. package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js +8 -7
  114. package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js.map +1 -1
  115. package/dist/components/Company/FederalTaxes/Actions.js +8 -11
  116. package/dist/components/Company/FederalTaxes/Actions.js.map +1 -1
  117. package/dist/components/Company/FederalTaxes/FederalTaxes.js +15 -19
  118. package/dist/components/Company/FederalTaxes/FederalTaxes.js.map +1 -1
  119. package/dist/components/Company/FederalTaxes/Form.js +6 -8
  120. package/dist/components/Company/FederalTaxes/Form.js.map +1 -1
  121. package/dist/components/Company/FederalTaxes/useFederalTaxes.js +13 -12
  122. package/dist/components/Company/FederalTaxes/useFederalTaxes.js.map +1 -1
  123. package/dist/components/Company/Industry/Actions.js +8 -11
  124. package/dist/components/Company/Industry/Actions.js.map +1 -1
  125. package/dist/components/Company/Industry/Context.js +11 -10
  126. package/dist/components/Company/Industry/Context.js.map +1 -1
  127. package/dist/components/Company/Industry/Edit.js +10 -14
  128. package/dist/components/Company/Industry/Edit.js.map +1 -1
  129. package/dist/components/Company/Locations/LocationForm/Actions.js +8 -11
  130. package/dist/components/Company/Locations/LocationForm/Actions.js.map +1 -1
  131. package/dist/components/Company/Locations/LocationForm/Form.js +5 -8
  132. package/dist/components/Company/Locations/LocationForm/Form.js.map +1 -1
  133. package/dist/components/Company/Locations/LocationForm/LocationForm.js +15 -19
  134. package/dist/components/Company/Locations/LocationForm/LocationForm.js.map +1 -1
  135. package/dist/components/Company/Locations/LocationForm/useLocationForm.js +8 -7
  136. package/dist/components/Company/Locations/LocationForm/useLocationForm.js.map +1 -1
  137. package/dist/components/Company/Locations/LocationsList/Actions.js +6 -9
  138. package/dist/components/Company/Locations/LocationsList/Actions.js.map +1 -1
  139. package/dist/components/Company/Locations/LocationsList/List.js +17 -19
  140. package/dist/components/Company/Locations/LocationsList/List.js.map +1 -1
  141. package/dist/components/Company/Locations/LocationsList/LocationsList.js +6 -10
  142. package/dist/components/Company/Locations/LocationsList/LocationsList.js.map +1 -1
  143. package/dist/components/Company/Locations/LocationsList/useLocationsList.js +8 -7
  144. package/dist/components/Company/Locations/LocationsList/useLocationsList.js.map +1 -1
  145. package/dist/components/Company/OnboardingOverview/Completed.js +12 -15
  146. package/dist/components/Company/OnboardingOverview/Completed.js.map +1 -1
  147. package/dist/components/Company/OnboardingOverview/MissingRequirements.js +9 -12
  148. package/dist/components/Company/OnboardingOverview/MissingRequirements.js.map +1 -1
  149. package/dist/components/Company/OnboardingOverview/OnboardingOverview.js +6 -10
  150. package/dist/components/Company/OnboardingOverview/OnboardingOverview.js.map +1 -1
  151. package/dist/components/Company/OnboardingOverview/context.js +8 -7
  152. package/dist/components/Company/OnboardingOverview/context.js.map +1 -1
  153. package/dist/components/Company/PaySchedule/PaySchedule.js +3 -6
  154. package/dist/components/Company/PaySchedule/PaySchedule.js.map +1 -1
  155. package/dist/components/Company/PaySchedule/_parts/Actions.js +10 -13
  156. package/dist/components/Company/PaySchedule/_parts/Actions.js.map +1 -1
  157. package/dist/components/Company/PaySchedule/_parts/Edit.js +17 -18
  158. package/dist/components/Company/PaySchedule/_parts/Edit.js.map +1 -1
  159. package/dist/components/Company/PaySchedule/_parts/Head.js +11 -14
  160. package/dist/components/Company/PaySchedule/_parts/Head.js.map +1 -1
  161. package/dist/components/Company/PaySchedule/_parts/List.js +19 -21
  162. package/dist/components/Company/PaySchedule/_parts/List.js.map +1 -1
  163. package/dist/components/Company/PaySchedule/usePaySchedule.js +10 -9
  164. package/dist/components/Company/PaySchedule/usePaySchedule.js.map +1 -1
  165. package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.js +5 -8
  166. package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.js.map +1 -1
  167. package/dist/components/Company/StateTaxes/StateTaxesForm/StateTaxesForm.js.map +1 -1
  168. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js +8 -7
  169. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js.map +1 -1
  170. package/dist/components/Company/StateTaxes/StateTaxesList/Actions.js +6 -9
  171. package/dist/components/Company/StateTaxes/StateTaxesList/Actions.js.map +1 -1
  172. package/dist/components/Company/StateTaxes/StateTaxesList/List.js +5 -8
  173. package/dist/components/Company/StateTaxes/StateTaxesList/List.js.map +1 -1
  174. package/dist/components/Company/StateTaxes/StateTaxesList/context.js +8 -7
  175. package/dist/components/Company/StateTaxes/StateTaxesList/context.js.map +1 -1
  176. package/dist/components/Contractor/Address/Address.js +3 -7
  177. package/dist/components/Contractor/Address/Address.js.map +1 -1
  178. package/dist/components/Contractor/Address/Form.js +9 -12
  179. package/dist/components/Contractor/Address/Form.js.map +1 -1
  180. package/dist/components/Contractor/Address/useAddress.js +10 -9
  181. package/dist/components/Contractor/Address/useAddress.js.map +1 -1
  182. package/dist/components/Contractor/ContractorList/index.js +29 -30
  183. package/dist/components/Contractor/ContractorList/index.js.map +1 -1
  184. package/dist/components/Contractor/NewHireReport/NewHireReport.js +2 -3
  185. package/dist/components/Contractor/NewHireReport/NewHireReport.js.map +1 -1
  186. package/dist/components/Contractor/PaymentMethod/BankAccountForm.js +10 -14
  187. package/dist/components/Contractor/PaymentMethod/BankAccountForm.js.map +1 -1
  188. package/dist/components/Contractor/PaymentMethod/PaymentMethod.js +2 -3
  189. package/dist/components/Contractor/PaymentMethod/PaymentMethod.js.map +1 -1
  190. package/dist/components/Contractor/PaymentMethod/PaymentTypeForm.js +2 -5
  191. package/dist/components/Contractor/PaymentMethod/PaymentTypeForm.js.map +1 -1
  192. package/dist/components/Contractor/Payments/CreatePayment/CreatePayment.js.map +1 -1
  193. package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.js +12 -14
  194. package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.js.map +1 -1
  195. package/dist/components/Contractor/Payments/CreatePayment/EditContractorPaymentPresentation.js +12 -13
  196. package/dist/components/Contractor/Payments/CreatePayment/EditContractorPaymentPresentation.js.map +1 -1
  197. package/dist/components/Contractor/Payments/CreatePayment/FastAchSubmissionBlockerBanner.js +18 -21
  198. package/dist/components/Contractor/Payments/CreatePayment/FastAchSubmissionBlockerBanner.js.map +1 -1
  199. package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.js +3 -4
  200. package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.js.map +1 -1
  201. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.js +17 -19
  202. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.js.map +1 -1
  203. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.js +6 -8
  204. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.js.map +1 -1
  205. package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummaryPresentation.js +2 -4
  206. package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummaryPresentation.js.map +1 -1
  207. package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.js +2 -5
  208. package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.js.map +1 -1
  209. package/dist/components/Contractor/Profile/ContractorProfileForm.js +15 -15
  210. package/dist/components/Contractor/Profile/useContractorProfile.js +11 -8
  211. package/dist/components/Contractor/Profile/useContractorProfile.js.map +1 -1
  212. package/dist/components/Contractor/Submit/Submit.js +20 -22
  213. package/dist/components/Contractor/Submit/Submit.js.map +1 -1
  214. package/dist/components/Employee/Compensation/Actions.js +12 -14
  215. package/dist/components/Employee/Compensation/Actions.js.map +1 -1
  216. package/dist/components/Employee/Compensation/Compensation.js.map +1 -1
  217. package/dist/components/Employee/Compensation/Edit.js +27 -28
  218. package/dist/components/Employee/Compensation/Edit.js.map +1 -1
  219. package/dist/components/Employee/Compensation/List.js +23 -25
  220. package/dist/components/Employee/Compensation/List.js.map +1 -1
  221. package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.js +55 -49
  222. package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.js.map +1 -1
  223. package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.js +14 -13
  224. package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.js.map +1 -1
  225. package/dist/components/Employee/Deductions/DeductionsForm/DeductionsForm.js.map +1 -1
  226. package/dist/components/Employee/Deductions/DeductionsForm/GarnishmentForm.js +14 -13
  227. package/dist/components/Employee/Deductions/DeductionsForm/GarnishmentForm.js.map +1 -1
  228. package/dist/components/Employee/Deductions/DeductionsList/DeductionsList.js +18 -19
  229. package/dist/components/Employee/Deductions/DeductionsList/DeductionsList.js.map +1 -1
  230. package/dist/components/Employee/Deductions/IncludeDeductions/IncludeDeductions.js +6 -8
  231. package/dist/components/Employee/Deductions/IncludeDeductions/IncludeDeductions.js.map +1 -1
  232. package/dist/components/Employee/DocumentSigner/DocumentList/Actions.js +6 -9
  233. package/dist/components/Employee/DocumentSigner/DocumentList/Actions.js.map +1 -1
  234. package/dist/components/Employee/DocumentSigner/DocumentList/DocumentList.js +10 -14
  235. package/dist/components/Employee/DocumentSigner/DocumentList/DocumentList.js.map +1 -1
  236. package/dist/components/Employee/DocumentSigner/DocumentList/List.js +2 -6
  237. package/dist/components/Employee/DocumentSigner/DocumentList/List.js.map +1 -1
  238. package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js +8 -7
  239. package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  240. package/dist/components/Employee/DocumentSigner/EmploymentEligibility/EmploymentEligibilityPresentation.js +23 -25
  241. package/dist/components/Employee/DocumentSigner/EmploymentEligibility/EmploymentEligibilityPresentation.js.map +1 -1
  242. package/dist/components/Employee/DocumentSigner/I9SignatureForm/I9SignatureForm.js +9 -11
  243. package/dist/components/Employee/DocumentSigner/I9SignatureForm/I9SignatureForm.js.map +1 -1
  244. package/dist/components/Employee/DocumentSigner/SignatureForm/SignatureForm.js +11 -15
  245. package/dist/components/Employee/DocumentSigner/SignatureForm/SignatureForm.js.map +1 -1
  246. package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js +8 -7
  247. package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js.map +1 -1
  248. package/dist/components/Employee/EmployeeDocuments/EmployeeDocumentsPresentation.js +6 -9
  249. package/dist/components/Employee/EmployeeDocuments/EmployeeDocumentsPresentation.js.map +1 -1
  250. package/dist/components/Employee/EmployeeList/Actions.js +6 -9
  251. package/dist/components/Employee/EmployeeList/Actions.js.map +1 -1
  252. package/dist/components/Employee/EmployeeList/EmployeeList.js +3 -7
  253. package/dist/components/Employee/EmployeeList/EmployeeList.js.map +1 -1
  254. package/dist/components/Employee/EmployeeList/Head.js +5 -8
  255. package/dist/components/Employee/EmployeeList/Head.js.map +1 -1
  256. package/dist/components/Employee/EmployeeList/List.js +16 -17
  257. package/dist/components/Employee/EmployeeList/List.js.map +1 -1
  258. package/dist/components/Employee/EmployeeList/useEmployeeList.js +8 -7
  259. package/dist/components/Employee/EmployeeList/useEmployeeList.js.map +1 -1
  260. package/dist/components/Employee/FederalTaxes/Actions.js +7 -10
  261. package/dist/components/Employee/FederalTaxes/Actions.js.map +1 -1
  262. package/dist/components/Employee/FederalTaxes/FederalForm.js +10 -13
  263. package/dist/components/Employee/FederalTaxes/FederalForm.js.map +1 -1
  264. package/dist/components/Employee/FederalTaxes/useFederalTaxes.js +8 -7
  265. package/dist/components/Employee/FederalTaxes/useFederalTaxes.js.map +1 -1
  266. package/dist/components/Employee/Landing/Landing.js +14 -15
  267. package/dist/components/Employee/Landing/Landing.js.map +1 -1
  268. package/dist/components/Employee/OnboardingSummary/OnboardingSummary.js +7 -7
  269. package/dist/components/Employee/PaymentMethod/Actions.js +8 -11
  270. package/dist/components/Employee/PaymentMethod/Actions.js.map +1 -1
  271. package/dist/components/Employee/PaymentMethod/BankAccountEdit.js +5 -8
  272. package/dist/components/Employee/PaymentMethod/BankAccountEdit.js.map +1 -1
  273. package/dist/components/Employee/PaymentMethod/BankAccountsList.js +9 -10
  274. package/dist/components/Employee/PaymentMethod/BankAccountsList.js.map +1 -1
  275. package/dist/components/Employee/PaymentMethod/PaymentTypeForm.js +7 -10
  276. package/dist/components/Employee/PaymentMethod/PaymentTypeForm.js.map +1 -1
  277. package/dist/components/Employee/PaymentMethod/Split.js +9 -10
  278. package/dist/components/Employee/PaymentMethod/Split.js.map +1 -1
  279. package/dist/components/Employee/PaymentMethod/usePaymentMethod.js +10 -9
  280. package/dist/components/Employee/PaymentMethod/usePaymentMethod.js.map +1 -1
  281. package/dist/components/Employee/Profile/Actions.js +8 -11
  282. package/dist/components/Employee/Profile/Actions.js.map +1 -1
  283. package/dist/components/Employee/Profile/AdminPersonalDetails.js +14 -17
  284. package/dist/components/Employee/Profile/AdminPersonalDetails.js.map +1 -1
  285. package/dist/components/Employee/Profile/HomeAddress.d.ts +3 -3
  286. package/dist/components/Employee/Profile/HomeAddress.js +45 -45
  287. package/dist/components/Employee/Profile/HomeAddress.js.map +1 -1
  288. package/dist/components/Employee/Profile/PersonalDetailsInputs.js +15 -19
  289. package/dist/components/Employee/Profile/PersonalDetailsInputs.js.map +1 -1
  290. package/dist/components/Employee/Profile/Profile.js.map +1 -1
  291. package/dist/components/Employee/Profile/useProfile.js +8 -7
  292. package/dist/components/Employee/Profile/useProfile.js.map +1 -1
  293. package/dist/components/Employee/StateTaxes/Actions.js +8 -11
  294. package/dist/components/Employee/StateTaxes/Actions.js.map +1 -1
  295. package/dist/components/Employee/StateTaxes/useStateTaxes.js +8 -7
  296. package/dist/components/Employee/StateTaxes/useStateTaxes.js.map +1 -1
  297. package/dist/components/Employee/Taxes/Actions.js +8 -11
  298. package/dist/components/Employee/Taxes/Actions.js.map +1 -1
  299. package/dist/components/Employee/Taxes/FederalForm.js +10 -13
  300. package/dist/components/Employee/Taxes/FederalForm.js.map +1 -1
  301. package/dist/components/Employee/Taxes/useTaxes.js +8 -7
  302. package/dist/components/Employee/Taxes/useTaxes.js.map +1 -1
  303. package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployeePresentation.js +12 -15
  304. package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployeePresentation.js.map +1 -1
  305. package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlowComponents.d.ts +1 -0
  306. package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlowComponents.js +37 -33
  307. package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlowComponents.js.map +1 -1
  308. package/dist/components/Employee/Terminations/TerminationFlow/terminationStateMachine.d.ts +1 -0
  309. package/dist/components/Employee/Terminations/TerminationFlow/terminationStateMachine.js +57 -45
  310. package/dist/components/Employee/Terminations/TerminationFlow/terminationStateMachine.js.map +1 -1
  311. package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummaryPresentation.js +8 -11
  312. package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummaryPresentation.js.map +1 -1
  313. package/dist/components/Flow/Flow.js +20 -23
  314. package/dist/components/Flow/Flow.js.map +1 -1
  315. package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.js +16 -18
  316. package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.js.map +1 -1
  317. package/dist/components/InformationRequests/InformationRequestList/InformationRequestList.js +18 -20
  318. package/dist/components/InformationRequests/InformationRequestList/InformationRequestList.js.map +1 -1
  319. package/dist/components/InformationRequests/InformationRequests.js +3 -4
  320. package/dist/components/InformationRequests/InformationRequests.js.map +1 -1
  321. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsBanner/ConfirmWireDetailsBanner.js.map +1 -1
  322. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsForm/ConfirmWireDetailsForm.js +10 -12
  323. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsForm/ConfirmWireDetailsForm.js.map +1 -1
  324. package/dist/components/Payroll/Dismissal/DismissalFlow.js +14 -14
  325. package/dist/components/Payroll/Dismissal/DismissalFlow.js.map +1 -1
  326. package/dist/components/Payroll/Dismissal/DismissalFlowComponents.d.ts +2 -2
  327. package/dist/components/Payroll/Dismissal/DismissalFlowComponents.js +8 -8
  328. package/dist/components/Payroll/Dismissal/DismissalFlowComponents.js.map +1 -1
  329. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelection.d.ts +2 -1
  330. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelection.js +57 -55
  331. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelection.js.map +1 -1
  332. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelectionPresentation.js +8 -11
  333. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelectionPresentation.js.map +1 -1
  334. package/dist/components/Payroll/GrossUpModal/GrossUpModal.d.ts +1 -1
  335. package/dist/components/Payroll/GrossUpModal/GrossUpModal.js +88 -75
  336. package/dist/components/Payroll/GrossUpModal/GrossUpModal.js.map +1 -1
  337. package/dist/components/Payroll/GrossUpModal/GrossUpModal.module.scss.js +6 -6
  338. package/dist/components/Payroll/GrossUpModal/GrossUpModalTypes.d.ts +0 -1
  339. package/dist/components/Payroll/OffCycle/OffCycleFlow.d.ts +1 -1
  340. package/dist/components/Payroll/OffCycle/OffCycleFlow.js +24 -18
  341. package/dist/components/Payroll/OffCycle/OffCycleFlow.js.map +1 -1
  342. package/dist/components/Payroll/OffCycle/OffCycleFlowComponents.d.ts +2 -0
  343. package/dist/components/Payroll/OffCycle/OffCycleFlowComponents.js +25 -24
  344. package/dist/components/Payroll/OffCycle/OffCycleFlowComponents.js.map +1 -1
  345. package/dist/components/Payroll/OffCycleCreation/OffCycleCreation.js +56 -53
  346. package/dist/components/Payroll/OffCycleCreation/OffCycleCreation.js.map +1 -1
  347. package/dist/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.js +30 -32
  348. package/dist/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.js.map +1 -1
  349. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormPresentation.js +18 -26
  350. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormPresentation.js.map +1 -1
  351. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormTypes.js +2 -2
  352. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormTypes.js.map +1 -1
  353. package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelectionPresentation.js +6 -9
  354. package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelectionPresentation.js.map +1 -1
  355. package/dist/components/Payroll/OffCycleTaxWithholdingModal/OffCycleTaxWithholdingModal.js +12 -14
  356. package/dist/components/Payroll/OffCycleTaxWithholdingModal/OffCycleTaxWithholdingModal.js.map +1 -1
  357. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerAlerts.js +11 -14
  358. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerAlerts.js.map +1 -1
  359. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerList.js +12 -12
  360. package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js +85 -87
  361. package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js.map +1 -1
  362. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js +71 -72
  363. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js.map +1 -1
  364. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.d.ts +1 -1
  365. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js +222 -216
  366. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js.map +1 -1
  367. package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js +19 -21
  368. package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js.map +1 -1
  369. package/dist/components/Payroll/PayrollExecutionFlow/PayrollExecutionFlow.d.ts +2 -1
  370. package/dist/components/Payroll/PayrollExecutionFlow/PayrollExecutionFlow.js +29 -27
  371. package/dist/components/Payroll/PayrollExecutionFlow/PayrollExecutionFlow.js.map +1 -1
  372. package/dist/components/Payroll/PayrollExecutionFlow/index.d.ts +1 -1
  373. package/dist/components/Payroll/PayrollExecutionFlow/payrollExecutionMachine.d.ts +1 -1
  374. package/dist/components/Payroll/PayrollExecutionFlow/payrollExecutionMachine.js +60 -60
  375. package/dist/components/Payroll/PayrollExecutionFlow/payrollExecutionMachine.js.map +1 -1
  376. package/dist/components/Payroll/PayrollFlow/OffCycleFlowContextual.js +13 -6
  377. package/dist/components/Payroll/PayrollFlow/OffCycleFlowContextual.js.map +1 -1
  378. package/dist/components/Payroll/PayrollFlow/PayrollExecutionFlowContextual.js +22 -20
  379. package/dist/components/Payroll/PayrollFlow/PayrollExecutionFlowContextual.js.map +1 -1
  380. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js +31 -33
  381. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js.map +1 -1
  382. package/dist/components/Payroll/PayrollList/PayrollList.js +44 -40
  383. package/dist/components/Payroll/PayrollList/PayrollList.js.map +1 -1
  384. package/dist/components/Payroll/PayrollList/PayrollListPresentation.js +15 -17
  385. package/dist/components/Payroll/PayrollList/PayrollListPresentation.js.map +1 -1
  386. package/dist/components/Payroll/PayrollOverview/PayrollOverview.js +15 -15
  387. package/dist/components/Payroll/PayrollOverview/PayrollOverview.js.map +1 -1
  388. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js +127 -128
  389. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js.map +1 -1
  390. package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/FastAchSubmissionBlockerBanner.js +7 -10
  391. package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/FastAchSubmissionBlockerBanner.js.map +1 -1
  392. package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js +2 -3
  393. package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js.map +1 -1
  394. package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.js +2 -4
  395. package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.js.map +1 -1
  396. package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.js +11 -13
  397. package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.js.map +1 -1
  398. package/dist/components/Payroll/RecoveryCases/useRecoveryCaseErrorCode.js +2 -5
  399. package/dist/components/Payroll/RecoveryCases/useRecoveryCaseErrorCode.js.map +1 -1
  400. package/dist/components/Payroll/TransitionCreation/TransitionCreationPresentation.js +8 -10
  401. package/dist/components/Payroll/TransitionCreation/TransitionCreationPresentation.js.map +1 -1
  402. package/dist/components/Payroll/helpers.d.ts +5 -0
  403. package/dist/components/Payroll/helpers.js +81 -74
  404. package/dist/components/Payroll/helpers.js.map +1 -1
  405. package/dist/components/Payroll/usePreparedPayrollData.js +4 -4
  406. package/dist/components/UNSTABLE_Hooks/collectErrors.d.ts +6 -0
  407. package/dist/components/UNSTABLE_Hooks/collectErrors.js +9 -0
  408. package/dist/components/UNSTABLE_Hooks/collectErrors.js.map +1 -0
  409. package/dist/components/UNSTABLE_Hooks/form/FormFieldsMetadataContext.d.ts +2 -2
  410. package/dist/components/UNSTABLE_Hooks/form/FormFieldsMetadataContext.js +6 -9
  411. package/dist/components/UNSTABLE_Hooks/form/FormFieldsMetadataContext.js.map +1 -1
  412. package/dist/components/UNSTABLE_Hooks/form/FormFieldsMetadataProvider.d.ts +2 -2
  413. package/dist/components/UNSTABLE_Hooks/form/FormFieldsMetadataProvider.js +13 -0
  414. package/dist/components/UNSTABLE_Hooks/form/FormFieldsMetadataProvider.js.map +1 -0
  415. package/dist/components/UNSTABLE_Hooks/form/SDKFormProvider.d.ts +11 -6
  416. package/dist/components/UNSTABLE_Hooks/form/SDKFormProvider.js +24 -0
  417. package/dist/components/UNSTABLE_Hooks/form/SDKFormProvider.js.map +1 -0
  418. package/dist/components/UNSTABLE_Hooks/form/composeFormSchema.d.ts +26 -0
  419. package/dist/components/UNSTABLE_Hooks/form/composeFormSchema.js +24 -0
  420. package/dist/components/UNSTABLE_Hooks/form/composeFormSchema.js.map +1 -0
  421. package/dist/components/UNSTABLE_Hooks/form/composeSubmitHandler.d.ts +53 -0
  422. package/dist/components/UNSTABLE_Hooks/form/composeSubmitHandler.js +34 -0
  423. package/dist/components/UNSTABLE_Hooks/form/composeSubmitHandler.js.map +1 -0
  424. package/dist/components/UNSTABLE_Hooks/form/composeSubmitHandler.test.d.ts +1 -0
  425. package/dist/components/UNSTABLE_Hooks/form/deriveFieldsMetadata.d.ts +1 -1
  426. package/dist/components/UNSTABLE_Hooks/form/deriveFieldsMetadata.js +14 -0
  427. package/dist/components/UNSTABLE_Hooks/form/deriveFieldsMetadata.js.map +1 -0
  428. package/dist/components/UNSTABLE_Hooks/form/fields/CheckboxHookField.d.ts +11 -0
  429. package/dist/components/UNSTABLE_Hooks/form/fields/CheckboxHookField.js +34 -0
  430. package/dist/components/UNSTABLE_Hooks/form/fields/CheckboxHookField.js.map +1 -0
  431. package/dist/components/UNSTABLE_Hooks/form/fields/DatePickerHookField.d.ts +11 -0
  432. package/dist/components/UNSTABLE_Hooks/form/fields/DatePickerHookField.js +34 -0
  433. package/dist/components/UNSTABLE_Hooks/form/fields/DatePickerHookField.js.map +1 -0
  434. package/dist/components/UNSTABLE_Hooks/form/fields/NumberInputHookField.d.ts +14 -0
  435. package/dist/components/UNSTABLE_Hooks/form/fields/NumberInputHookField.js +40 -0
  436. package/dist/components/UNSTABLE_Hooks/form/fields/NumberInputHookField.js.map +1 -0
  437. package/dist/components/UNSTABLE_Hooks/form/fields/RadioGroupHookField.d.ts +12 -0
  438. package/dist/components/UNSTABLE_Hooks/form/fields/RadioGroupHookField.js +40 -0
  439. package/dist/components/UNSTABLE_Hooks/form/fields/RadioGroupHookField.js.map +1 -0
  440. package/dist/components/UNSTABLE_Hooks/form/fields/SelectHookField.d.ts +12 -0
  441. package/dist/components/UNSTABLE_Hooks/form/fields/SelectHookField.js +40 -0
  442. package/dist/components/UNSTABLE_Hooks/form/fields/SelectHookField.js.map +1 -0
  443. package/dist/components/UNSTABLE_Hooks/form/fields/SwitchHookField.d.ts +11 -0
  444. package/dist/components/UNSTABLE_Hooks/form/fields/SwitchHookField.js +34 -0
  445. package/dist/components/UNSTABLE_Hooks/form/fields/SwitchHookField.js.map +1 -0
  446. package/dist/components/UNSTABLE_Hooks/form/fields/TextInputHookField.d.ts +13 -0
  447. package/dist/components/UNSTABLE_Hooks/form/fields/TextInputHookField.js +38 -0
  448. package/dist/components/UNSTABLE_Hooks/form/fields/TextInputHookField.js.map +1 -0
  449. package/dist/components/UNSTABLE_Hooks/form/fields/index.d.ts +15 -0
  450. package/dist/components/UNSTABLE_Hooks/form/getFieldWithOptions.d.ts +2 -0
  451. package/dist/components/UNSTABLE_Hooks/form/getFieldWithOptions.js +8 -0
  452. package/dist/components/UNSTABLE_Hooks/form/getFieldWithOptions.js.map +1 -0
  453. package/dist/components/UNSTABLE_Hooks/form/getFormSubmissionValues.d.ts +18 -0
  454. package/dist/components/UNSTABLE_Hooks/form/getFormSubmissionValues.js +10 -0
  455. package/dist/components/UNSTABLE_Hooks/form/getFormSubmissionValues.js.map +1 -0
  456. package/dist/components/UNSTABLE_Hooks/form/getFormSubmissionValues.test.d.ts +1 -0
  457. package/dist/components/UNSTABLE_Hooks/form/index.d.ts +8 -1
  458. package/dist/components/UNSTABLE_Hooks/form/resolveFieldError.d.ts +4 -0
  459. package/dist/components/UNSTABLE_Hooks/form/resolveFieldError.js +13 -0
  460. package/dist/components/UNSTABLE_Hooks/form/resolveFieldError.js.map +1 -0
  461. package/dist/components/UNSTABLE_Hooks/form/resolveRequiredFields.d.ts +6 -0
  462. package/dist/components/UNSTABLE_Hooks/form/resolveRequiredFields.js +14 -0
  463. package/dist/components/UNSTABLE_Hooks/form/resolveRequiredFields.js.map +1 -0
  464. package/dist/components/UNSTABLE_Hooks/form/types.d.ts +12 -0
  465. package/dist/components/UNSTABLE_Hooks/form/useFieldErrorMessage.d.ts +2 -1
  466. package/dist/components/UNSTABLE_Hooks/form/useFieldErrorMessage.js +11 -9
  467. package/dist/components/UNSTABLE_Hooks/form/useFieldErrorMessage.js.map +1 -1
  468. package/dist/components/UNSTABLE_Hooks/form/useFieldsMetadata.d.ts +2 -2
  469. package/dist/components/UNSTABLE_Hooks/form/useFieldsMetadata.js +2 -3
  470. package/dist/components/UNSTABLE_Hooks/form/useFieldsMetadata.js.map +1 -1
  471. package/dist/components/UNSTABLE_Hooks/form/useHookFieldResolution.d.ts +23 -0
  472. package/dist/components/UNSTABLE_Hooks/form/useHookFieldResolution.js +11 -0
  473. package/dist/components/UNSTABLE_Hooks/form/useHookFieldResolution.js.map +1 -0
  474. package/dist/components/UNSTABLE_Hooks/form/withOptions.js +7 -0
  475. package/dist/components/UNSTABLE_Hooks/form/withOptions.js.map +1 -0
  476. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/CompensationForm.d.ts +5 -0
  477. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/CompensationForm.js +149 -0
  478. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/CompensationForm.js.map +1 -0
  479. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/compensationSchema.d.ts +97 -0
  480. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/compensationSchema.js +118 -0
  481. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/compensationSchema.js.map +1 -0
  482. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/fields.d.ts +34 -0
  483. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/fields.js +50 -0
  484. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/fields.js.map +1 -0
  485. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/index.d.ts +5 -1
  486. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/useCompensationForm.d.ts +97 -9
  487. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/useCompensationForm.js +255 -3
  488. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/useCompensationForm.js.map +1 -1
  489. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/EmployeeDetailsForm.d.ts +5 -0
  490. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/EmployeeDetailsForm.js +112 -0
  491. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/EmployeeDetailsForm.js.map +1 -0
  492. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/employeeDetailsSchema.d.ts +39 -0
  493. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/employeeDetailsSchema.js +45 -0
  494. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/employeeDetailsSchema.js.map +1 -0
  495. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/fields.d.ts +23 -0
  496. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/fields.js +46 -0
  497. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/fields.js.map +1 -0
  498. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/index.d.ts +7 -0
  499. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/useEmployeeDetailsForm.d.ts +77 -0
  500. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/useEmployeeDetailsForm.js +153 -0
  501. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/useEmployeeDetailsForm.js.map +1 -0
  502. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/WorkAddressForm.d.ts +5 -0
  503. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/WorkAddressForm.js +69 -0
  504. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/WorkAddressForm.js.map +1 -0
  505. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/fields.d.ts +10 -0
  506. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/fields.js +14 -0
  507. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/fields.js.map +1 -0
  508. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/index.d.ts +7 -0
  509. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/useWorkAddressForm.d.ts +68 -0
  510. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/useWorkAddressForm.js +129 -0
  511. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/useWorkAddressForm.js.map +1 -0
  512. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/workAddressSchema.d.ts +25 -0
  513. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/workAddressSchema.js +24 -0
  514. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/workAddressSchema.js.map +1 -0
  515. package/dist/components/UNSTABLE_Hooks/index.d.ts +8 -4
  516. package/dist/components/UNSTABLE_Hooks/types.d.ts +9 -6
  517. package/dist/components/UNSTABLE_Hooks/useErrorHandling.d.ts +9 -0
  518. package/dist/components/UNSTABLE_Hooks/useErrorHandling.js +12 -0
  519. package/dist/components/UNSTABLE_Hooks/useErrorHandling.js.map +1 -0
  520. package/dist/components/UNSTABLE_Hooks/useErrorHandling.test.d.ts +1 -0
  521. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js +10 -13
  522. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js.map +1 -1
  523. package/dist/contexts/LoadingIndicatorProvider/useLoadingIndicator.d.ts +10 -2
  524. package/dist/contexts/LoadingIndicatorProvider/useLoadingIndicator.js.map +1 -1
  525. package/dist/contexts/ThemeProvider/useTheme.js.map +1 -1
  526. package/dist/helpers/requiredIf.d.ts +13 -0
  527. package/dist/helpers/requiredIf.js +8 -0
  528. package/dist/helpers/requiredIf.js.map +1 -0
  529. package/dist/i18n/I18n.js +12 -12
  530. package/dist/i18n/I18n.js.map +1 -1
  531. package/dist/i18n/en/Company.TimeOff.CreateTimeOffPolicy.json.js +26 -0
  532. package/dist/i18n/en/Company.TimeOff.CreateTimeOffPolicy.json.js.map +1 -0
  533. package/dist/i18n/en/Company.TimeOff.HolidayPolicy.json.js +24 -0
  534. package/dist/i18n/en/Company.TimeOff.HolidayPolicy.json.js.map +1 -0
  535. package/dist/i18n/en/Company.TimeOff.TimeOffPolicies.json.js +32 -0
  536. package/dist/i18n/en/Company.TimeOff.TimeOffPolicies.json.js.map +1 -0
  537. package/dist/i18n/en/Company.TimeOff.TimeOffPolicyDetails.json.js +52 -0
  538. package/dist/i18n/en/Company.TimeOff.TimeOffPolicyDetails.json.js.map +1 -0
  539. package/dist/i18n/en/Company.TimeOff.TimeOffRequests.json.js +21 -0
  540. package/dist/i18n/en/Company.TimeOff.TimeOffRequests.json.js.map +1 -0
  541. package/dist/i18n/en/Payroll.GrossUpModal.json.js +16 -14
  542. package/dist/i18n/en/Payroll.GrossUpModal.json.js.map +1 -1
  543. package/dist/i18n/en/Payroll.OffCycleTaxWithholding.json.js +5 -5
  544. package/dist/i18n/en/Payroll.PayrollConfiguration.json.js +38 -34
  545. package/dist/i18n/en/Payroll.PayrollConfiguration.json.js.map +1 -1
  546. package/dist/i18n/en/Payroll.PayrollEditEmployee.json.js +29 -25
  547. package/dist/i18n/en/Payroll.PayrollEditEmployee.json.js.map +1 -1
  548. package/dist/i18n/en/Payroll.PayrollOverview.json.js +62 -58
  549. package/dist/i18n/en/Payroll.PayrollOverview.json.js.map +1 -1
  550. package/dist/i18n/en/UNSTABLE.CompensationForm.json.js +58 -0
  551. package/dist/i18n/en/UNSTABLE.CompensationForm.json.js.map +1 -0
  552. package/dist/i18n/en/UNSTABLE.EmployeeDetailsForm.json.js +34 -0
  553. package/dist/i18n/en/UNSTABLE.EmployeeDetailsForm.json.js.map +1 -0
  554. package/dist/i18n/en/UNSTABLE.WorkAddressForm.json.js +24 -0
  555. package/dist/i18n/en/UNSTABLE.WorkAddressForm.json.js.map +1 -0
  556. package/dist/models/WA_RISK_CODES.d.ts +5 -2866
  557. package/dist/models/WA_RISK_CODES.js.map +1 -1
  558. package/dist/style.css +1 -1
  559. package/dist/types/i18next.d.ts +549 -1
  560. package/dist/types/sdkError.d.ts +7 -1
  561. package/dist/types/sdkError.js.map +1 -1
  562. package/docs/reference/endpoint-inventory.json +92 -0
  563. package/package.json +13 -13
@@ -1 +1 @@
1
- {"version":3,"file":"Form.js","sources":["../../../../../src/components/Company/BankAccount/BankAccountForm/Form.tsx"],"sourcesContent":["import { z } from 'zod'\nimport { useTranslation } from 'react-i18next'\nimport { accountNumberValidation, routingNumberValidation } from '@/helpers/validations'\nimport { Flex, TextInputField } from '@/components/Common'\n\nexport const BankAccountFormSchema = z.object({\n routingNumber: routingNumberValidation,\n accountNumber: accountNumberValidation,\n})\n\nexport type BankAccountFormInputs = z.infer<typeof BankAccountFormSchema>\n\nexport function Form() {\n const { t } = useTranslation('Company.BankAccount')\n\n return (\n <Flex flexDirection=\"column\" gap={20}>\n <TextInputField\n name=\"routingNumber\"\n isRequired\n label={t('form.routingNumberLabel')}\n description={t('form.routingNumberDescription')}\n errorMessage={t('validations.routingNumber')}\n />\n <TextInputField\n name=\"accountNumber\"\n label={t('form.accountNumberLabel')}\n isRequired\n errorMessage={t('validations.accountNumber')}\n />\n </Flex>\n )\n}\n"],"names":["BankAccountFormSchema","z","routingNumberValidation","accountNumberValidation","Form","t","useTranslation","jsxs","Flex","jsx","TextInputField"],"mappings":";;;;;;;;;;AAKO,MAAMA,IAAwBC,EAAE,OAAO;AAAA,EAC5C,eAAeC;AAAA,EACf,eAAeC;AACjB,CAAC;AAIM,SAASC,IAAO;AACrB,QAAM,EAAE,GAAAC,EAAA,IAAMC,EAAe,qBAAqB;AAElD,SACE,gBAAAC,EAACC,GAAA,EAAK,eAAc,UAAS,KAAK,IAChC,UAAA;AAAA,IAAA,gBAAAC;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,MAAK;AAAA,QACL,YAAU;AAAA,QACV,OAAOL,EAAE,yBAAyB;AAAA,QAClC,aAAaA,EAAE,+BAA+B;AAAA,QAC9C,cAAcA,EAAE,2BAA2B;AAAA,MAAA;AAAA,IAAA;AAAA,IAE7C,gBAAAI;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,MAAK;AAAA,QACL,OAAOL,EAAE,yBAAyB;AAAA,QAClC,YAAU;AAAA,QACV,cAAcA,EAAE,2BAA2B;AAAA,MAAA;AAAA,IAAA;AAAA,EAC7C,GACF;AAEJ;"}
1
+ {"version":3,"file":"Form.js","sources":["../../../../../src/components/Company/BankAccount/BankAccountForm/Form.tsx"],"sourcesContent":["import { z } from 'zod'\nimport { useTranslation } from 'react-i18next'\nimport { accountNumberValidation, routingNumberValidation } from '@/helpers/validations'\nimport { Flex, TextInputField } from '@/components/Common'\n\nexport const BankAccountFormSchema = z.object({\n routingNumber: routingNumberValidation,\n accountNumber: accountNumberValidation,\n})\n\nexport type BankAccountFormInputs = z.infer<typeof BankAccountFormSchema>\n\nexport function Form() {\n const { t } = useTranslation('Company.BankAccount')\n\n return (\n <Flex flexDirection=\"column\" gap={20}>\n <TextInputField\n name=\"routingNumber\"\n isRequired\n label={t('form.routingNumberLabel')}\n description={t('form.routingNumberDescription')}\n errorMessage={t('validations.routingNumber')}\n />\n <TextInputField\n name=\"accountNumber\"\n label={t('form.accountNumberLabel')}\n isRequired\n errorMessage={t('validations.accountNumber')}\n />\n </Flex>\n )\n}\n"],"names":["BankAccountFormSchema","z","routingNumberValidation","accountNumberValidation","Form","t","useTranslation","jsxs","Flex","jsx","TextInputField"],"mappings":";;;;;;AAKO,MAAMA,IAAwBC,EAAE,OAAO;AAAA,EAC5C,eAAeC;AAAA,EACf,eAAeC;AACjB,CAAC;AAIM,SAASC,IAAO;AACrB,QAAM,EAAE,GAAAC,EAAA,IAAMC,EAAe,qBAAqB;AAElD,SACE,gBAAAC,EAACC,GAAA,EAAK,eAAc,UAAS,KAAK,IAChC,UAAA;AAAA,IAAA,gBAAAC;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,MAAK;AAAA,QACL,YAAU;AAAA,QACV,OAAOL,EAAE,yBAAyB;AAAA,QAClC,aAAaA,EAAE,+BAA+B;AAAA,QAC9C,cAAcA,EAAE,2BAA2B;AAAA,MAAA;AAAA,IAAA;AAAA,IAE7C,gBAAAI;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,MAAK;AAAA,QACL,OAAOL,EAAE,yBAAyB;AAAA,QAClC,YAAU;AAAA,QACV,cAAcA,EAAE,2BAA2B;AAAA,MAAA;AAAA,IAAA;AAAA,EAC7C,GACF;AAEJ;"}
@@ -4,16 +4,17 @@ import "react-error-boundary";
4
4
  import "react-i18next";
5
5
  import "@tanstack/react-query";
6
6
  import "../../../Base/useBase.js";
7
- import "../../../../shared/constants.js";
8
- import "classnames";
9
- import "../../../../contexts/ComponentAdapter/useComponentContext.js";
7
+ import "@gusto/embedded-api/models/errors/apierror";
10
8
  import "@gusto/embedded-api/models/errors/gustoembeddederror";
11
- import "@gusto/embedded-api/models/errors/httpclienterrors";
12
9
  import "@gusto/embedded-api/models/errors/sdkvalidationerror";
10
+ import "@gusto/embedded-api/models/errors/unprocessableentityerrorobject";
11
+ import "@gusto/embedded-api/models/errors/httpclienterrors";
12
+ import "../../../../shared/constants.js";
13
+ import "../../../../contexts/ComponentAdapter/useComponentContext.js";
13
14
  import { createCompoundContext as o } from "../../../Base/createCompoundContext.js";
14
- const [B, C] = o("BankAccountContext");
15
+ const [C, d] = o("BankAccountContext");
15
16
  export {
16
- C as BankAccountFormProvider,
17
- B as useBankAccountForm
17
+ d as BankAccountFormProvider,
18
+ C as useBankAccountForm
18
19
  };
19
20
  //# sourceMappingURL=context.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"context.js","sources":["../../../../../src/components/Company/BankAccount/BankAccountForm/context.ts"],"sourcesContent":["import { createCompoundContext } from '@/components/Base'\nimport { type OnEventType } from '@/components/Base/useBase'\nimport { type EventType } from '@/shared/constants'\n\ntype BankAccountFormContextType = {\n isPending: boolean\n isEditing: boolean\n onEvent: OnEventType<EventType, unknown>\n}\n\nconst [useBankAccountForm, BankAccountFormProvider] =\n createCompoundContext<BankAccountFormContextType>('BankAccountContext')\n\nexport { useBankAccountForm, BankAccountFormProvider }\n"],"names":["useBankAccountForm","BankAccountFormProvider","createCompoundContext"],"mappings":";;;;;;;;;;;;;AAUA,MAAM,CAACA,GAAoBC,CAAuB,IAChDC,EAAkD,oBAAoB;"}
1
+ {"version":3,"file":"context.js","sources":["../../../../../src/components/Company/BankAccount/BankAccountForm/context.ts"],"sourcesContent":["import { createCompoundContext } from '@/components/Base'\nimport { type OnEventType } from '@/components/Base/useBase'\nimport { type EventType } from '@/shared/constants'\n\ntype BankAccountFormContextType = {\n isPending: boolean\n isEditing: boolean\n onEvent: OnEventType<EventType, unknown>\n}\n\nconst [useBankAccountForm, BankAccountFormProvider] =\n createCompoundContext<BankAccountFormContextType>('BankAccountContext')\n\nexport { useBankAccountForm, BankAccountFormProvider }\n"],"names":["useBankAccountForm","BankAccountFormProvider","createCompoundContext"],"mappings":";;;;;;;;;;;;;;AAUA,MAAM,CAACA,GAAoBC,CAAuB,IAChDC,EAAkD,oBAAoB;"}
@@ -1,19 +1,16 @@
1
- import { jsxs as i, jsx as t } from "react/jsx-runtime";
2
- import { useTranslation as e } from "react-i18next";
1
+ import { jsxs as e, jsx as t } from "react/jsx-runtime";
2
+ import { useTranslation as i } from "react-i18next";
3
3
  import { useBankAccount as a } from "./context.js";
4
- import "../../../../shared/constants.js";
5
- import "classnames";
6
- import { ActionsLayout as m } from "../../../Common/ActionsLayout/ActionsLayout.js";
7
- import { useComponentContext as s } from "../../../../contexts/ComponentAdapter/useComponentContext.js";
8
- import "react";
9
- function A() {
10
- const { handleContinue: r, handleChange: c } = a(), { t: n } = e("Company.BankAccount"), o = s();
11
- return /* @__PURE__ */ i(m, { children: [
12
- /* @__PURE__ */ t(o.Button, { variant: "secondary", onClick: c, children: n("changeBankAccountCta") }),
13
- /* @__PURE__ */ t(o.Button, { onClick: r, children: n("continueCta") })
4
+ import { ActionsLayout as s } from "../../../Common/ActionsLayout/ActionsLayout.js";
5
+ import { useComponentContext as m } from "../../../../contexts/ComponentAdapter/useComponentContext.js";
6
+ function d() {
7
+ const { handleContinue: c, handleChange: r } = a(), { t: n } = i("Company.BankAccount"), o = m();
8
+ return /* @__PURE__ */ e(s, { children: [
9
+ /* @__PURE__ */ t(o.Button, { variant: "secondary", onClick: r, children: n("changeBankAccountCta") }),
10
+ /* @__PURE__ */ t(o.Button, { onClick: c, children: n("continueCta") })
14
11
  ] });
15
12
  }
16
13
  export {
17
- A as Actions
14
+ d as Actions
18
15
  };
19
16
  //# sourceMappingURL=Actions.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Actions.js","sources":["../../../../../src/components/Company/BankAccount/BankAccountList/Actions.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport { useBankAccount } from './context'\nimport { ActionsLayout } from '@/components/Common'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\n\nexport function Actions() {\n const { handleContinue, handleChange } = useBankAccount()\n const { t } = useTranslation('Company.BankAccount')\n const Components = useComponentContext()\n\n return (\n <ActionsLayout>\n <Components.Button variant=\"secondary\" onClick={handleChange}>\n {t('changeBankAccountCta')}\n </Components.Button>\n <Components.Button onClick={handleContinue}>{t('continueCta')}</Components.Button>\n </ActionsLayout>\n )\n}\n"],"names":["Actions","handleContinue","handleChange","useBankAccount","t","useTranslation","Components","useComponentContext","ActionsLayout","jsx"],"mappings":";;;;;;;;AAKO,SAASA,IAAU;AACxB,QAAM,EAAE,gBAAAC,GAAgB,cAAAC,EAAA,IAAiBC,EAAA,GACnC,EAAE,GAAAC,EAAA,IAAMC,EAAe,qBAAqB,GAC5CC,IAAaC,EAAA;AAEnB,2BACGC,GAAA,EACC,UAAA;AAAA,IAAA,gBAAAC,EAACH,EAAW,QAAX,EAAkB,SAAQ,aAAY,SAASJ,GAC7C,UAAAE,EAAE,sBAAsB,EAAA,CAC3B;AAAA,IACA,gBAAAK,EAACH,EAAW,QAAX,EAAkB,SAASL,GAAiB,UAAAG,EAAE,aAAa,EAAA,CAAE;AAAA,EAAA,GAChE;AAEJ;"}
1
+ {"version":3,"file":"Actions.js","sources":["../../../../../src/components/Company/BankAccount/BankAccountList/Actions.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport { useBankAccount } from './context'\nimport { ActionsLayout } from '@/components/Common'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\n\nexport function Actions() {\n const { handleContinue, handleChange } = useBankAccount()\n const { t } = useTranslation('Company.BankAccount')\n const Components = useComponentContext()\n\n return (\n <ActionsLayout>\n <Components.Button variant=\"secondary\" onClick={handleChange}>\n {t('changeBankAccountCta')}\n </Components.Button>\n <Components.Button onClick={handleContinue}>{t('continueCta')}</Components.Button>\n </ActionsLayout>\n )\n}\n"],"names":["Actions","handleContinue","handleChange","useBankAccount","t","useTranslation","Components","useComponentContext","ActionsLayout","jsx"],"mappings":";;;;;AAKO,SAASA,IAAU;AACxB,QAAM,EAAE,gBAAAC,GAAgB,cAAAC,EAAA,IAAiBC,EAAA,GACnC,EAAE,GAAAC,EAAA,IAAMC,EAAe,qBAAqB,GAC5CC,IAAaC,EAAA;AAEnB,2BACGC,GAAA,EACC,UAAA;AAAA,IAAA,gBAAAC,EAACH,EAAW,QAAX,EAAkB,SAAQ,aAAY,SAASJ,GAC7C,UAAAE,EAAE,sBAAsB,EAAA,CAC3B;AAAA,IACA,gBAAAK,EAACH,EAAW,QAAX,EAAkB,SAASL,GAAiB,UAAAG,EAAE,aAAa,EAAA,CAAE;AAAA,EAAA,GAChE;AAEJ;"}
@@ -1,36 +1,33 @@
1
- import { jsxs as a, jsx as i } from "react/jsx-runtime";
2
- import { useTranslation as c } from "react-i18next";
3
- import { useBankAccountVerify as e } from "./context.js";
4
- import "../../../../shared/constants.js";
5
- import "classnames";
1
+ import { jsxs as c, jsx as i } from "react/jsx-runtime";
2
+ import { useTranslation as e } from "react-i18next";
3
+ import { useBankAccountVerify as r } from "./context.js";
6
4
  import { ActionsLayout as s } from "../../../Common/ActionsLayout/ActionsLayout.js";
7
5
  import { useComponentContext as m } from "../../../../contexts/ComponentAdapter/useComponentContext.js";
8
- import "react";
9
- function b() {
10
- const { t } = c("Company.BankAccount"), { isPending: n, handleCancel: r } = e(), o = m();
11
- return /* @__PURE__ */ a(s, { children: [
6
+ function y() {
7
+ const { t: n } = e("Company.BankAccount"), { isPending: t, handleCancel: a } = r(), o = m();
8
+ return /* @__PURE__ */ c(s, { children: [
12
9
  /* @__PURE__ */ i(
13
10
  o.Button,
14
11
  {
15
12
  variant: "secondary",
16
- isLoading: n,
17
- onClick: r,
13
+ isLoading: t,
14
+ onClick: a,
18
15
  "data-testid": "bank-account-verify-cancel",
19
- children: t("cancelCta")
16
+ children: n("cancelCta")
20
17
  }
21
18
  ),
22
19
  /* @__PURE__ */ i(
23
20
  o.Button,
24
21
  {
25
22
  type: "submit",
26
- isLoading: n,
23
+ isLoading: t,
27
24
  "data-testid": "bank-account-verify-submit",
28
- children: t("verifyCta")
25
+ children: n("verifyCta")
29
26
  }
30
27
  )
31
28
  ] });
32
29
  }
33
30
  export {
34
- b as Actions
31
+ y as Actions
35
32
  };
36
33
  //# sourceMappingURL=Actions.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Actions.js","sources":["../../../../../src/components/Company/BankAccount/BankAccountVerify/Actions.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport { useBankAccountVerify } from './context'\nimport { ActionsLayout } from '@/components/Common'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\n\nexport function Actions() {\n const { t } = useTranslation('Company.BankAccount')\n const { isPending, handleCancel } = useBankAccountVerify()\n const Components = useComponentContext()\n\n return (\n <ActionsLayout>\n <Components.Button\n variant=\"secondary\"\n isLoading={isPending}\n onClick={handleCancel}\n data-testid=\"bank-account-verify-cancel\"\n >\n {t('cancelCta')}\n </Components.Button>\n <Components.Button\n type=\"submit\"\n isLoading={isPending}\n data-testid=\"bank-account-verify-submit\"\n >\n {t('verifyCta')}\n </Components.Button>\n </ActionsLayout>\n )\n}\n"],"names":["Actions","useTranslation","isPending","handleCancel","useBankAccountVerify","Components","useComponentContext","ActionsLayout","jsx"],"mappings":";;;;;;;;AAKO,SAASA,IAAU;AACxB,QAAM,EAAE,EAAA,IAAMC,EAAe,qBAAqB,GAC5C,EAAE,WAAAC,GAAW,cAAAC,EAAA,IAAiBC,EAAA,GAC9BC,IAAaC,EAAA;AAEnB,2BACGC,GAAA,EACC,UAAA;AAAA,IAAA,gBAAAC;AAAA,MAACH,EAAW;AAAA,MAAX;AAAA,QACC,SAAQ;AAAA,QACR,WAAWH;AAAA,QACX,SAASC;AAAA,QACT,eAAY;AAAA,QAEX,YAAE,WAAW;AAAA,MAAA;AAAA,IAAA;AAAA,IAEhB,gBAAAK;AAAA,MAACH,EAAW;AAAA,MAAX;AAAA,QACC,MAAK;AAAA,QACL,WAAWH;AAAA,QACX,eAAY;AAAA,QAEX,YAAE,WAAW;AAAA,MAAA;AAAA,IAAA;AAAA,EAChB,GACF;AAEJ;"}
1
+ {"version":3,"file":"Actions.js","sources":["../../../../../src/components/Company/BankAccount/BankAccountVerify/Actions.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport { useBankAccountVerify } from './context'\nimport { ActionsLayout } from '@/components/Common'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\n\nexport function Actions() {\n const { t } = useTranslation('Company.BankAccount')\n const { isPending, handleCancel } = useBankAccountVerify()\n const Components = useComponentContext()\n\n return (\n <ActionsLayout>\n <Components.Button\n variant=\"secondary\"\n isLoading={isPending}\n onClick={handleCancel}\n data-testid=\"bank-account-verify-cancel\"\n >\n {t('cancelCta')}\n </Components.Button>\n <Components.Button\n type=\"submit\"\n isLoading={isPending}\n data-testid=\"bank-account-verify-submit\"\n >\n {t('verifyCta')}\n </Components.Button>\n </ActionsLayout>\n )\n}\n"],"names":["Actions","t","useTranslation","isPending","handleCancel","useBankAccountVerify","Components","useComponentContext","ActionsLayout","jsx"],"mappings":";;;;;AAKO,SAASA,IAAU;AACxB,QAAM,EAAE,GAAAC,EAAA,IAAMC,EAAe,qBAAqB,GAC5C,EAAE,WAAAC,GAAW,cAAAC,EAAA,IAAiBC,EAAA,GAC9BC,IAAaC,EAAA;AAEnB,2BACGC,GAAA,EACC,UAAA;AAAA,IAAA,gBAAAC;AAAA,MAACH,EAAW;AAAA,MAAX;AAAA,QACC,SAAQ;AAAA,QACR,WAAWH;AAAA,QACX,SAASC;AAAA,QACT,eAAY;AAAA,QAEX,YAAE,WAAW;AAAA,MAAA;AAAA,IAAA;AAAA,IAEhB,gBAAAK;AAAA,MAACH,EAAW;AAAA,MAAX;AAAA,QACC,MAAK;AAAA,QACL,WAAWH;AAAA,QACX,eAAY;AAAA,QAEX,YAAE,WAAW;AAAA,MAAA;AAAA,IAAA;AAAA,EAChB,GACF;AAEJ;"}
@@ -2,16 +2,12 @@ import { jsxs as t, jsx as r } from "react/jsx-runtime";
2
2
  import { z as o } from "zod";
3
3
  import { useTranslation as n } from "react-i18next";
4
4
  import { Flex as s } from "../../../Common/Flex/Flex.js";
5
- import "classnames";
6
- import "../../../../shared/constants.js";
7
5
  import { NumberInputField as i } from "../../../Common/Fields/NumberInputField/NumberInputField.js";
8
- import "../../../../contexts/ComponentAdapter/useComponentContext.js";
9
- import "react";
10
- const x = o.object({
6
+ const u = o.object({
11
7
  deposit1: o.number().min(0),
12
8
  deposit2: o.number().min(0)
13
9
  });
14
- function y() {
10
+ function l() {
15
11
  const { t: e } = n("Company.BankAccount");
16
12
  return /* @__PURE__ */ t(s, { flexDirection: "column", gap: 20, children: [
17
13
  /* @__PURE__ */ r(
@@ -39,7 +35,7 @@ function y() {
39
35
  ] });
40
36
  }
41
37
  export {
42
- x as BankAccountVerifySchema,
43
- y as Form
38
+ u as BankAccountVerifySchema,
39
+ l as Form
44
40
  };
45
41
  //# sourceMappingURL=Form.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Form.js","sources":["../../../../../src/components/Company/BankAccount/BankAccountVerify/Form.tsx"],"sourcesContent":["import { z } from 'zod'\nimport { useTranslation } from 'react-i18next'\nimport { Flex, NumberInputField } from '@/components/Common'\n\nexport const BankAccountVerifySchema = z.object({\n deposit1: z.number().min(0),\n deposit2: z.number().min(0),\n})\n\nexport type BankAccountVerifyInputs = z.infer<typeof BankAccountVerifySchema>\n\nexport function Form() {\n const { t } = useTranslation('Company.BankAccount')\n\n return (\n <Flex flexDirection=\"column\" gap={20}>\n <NumberInputField\n name=\"deposit1\"\n format=\"currency\"\n isRequired\n label={t('deposit1Label')}\n description={t('deposit1Description')}\n errorMessage={t('validations.deposit1')}\n />\n <NumberInputField\n name=\"deposit2\"\n format=\"currency\"\n label={t('deposit2Label')}\n description={t('deposit2Description')}\n isRequired\n errorMessage={t('validations.deposit2')}\n />\n </Flex>\n )\n}\n"],"names":["BankAccountVerifySchema","z","Form","t","useTranslation","jsxs","Flex","jsx","NumberInputField"],"mappings":";;;;;;;;;AAIO,MAAMA,IAA0BC,EAAE,OAAO;AAAA,EAC9C,UAAUA,EAAE,SAAS,IAAI,CAAC;AAAA,EAC1B,UAAUA,EAAE,OAAA,EAAS,IAAI,CAAC;AAC5B,CAAC;AAIM,SAASC,IAAO;AACrB,QAAM,EAAE,GAAAC,EAAA,IAAMC,EAAe,qBAAqB;AAElD,SACE,gBAAAC,EAACC,GAAA,EAAK,eAAc,UAAS,KAAK,IAChC,UAAA;AAAA,IAAA,gBAAAC;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,MAAK;AAAA,QACL,QAAO;AAAA,QACP,YAAU;AAAA,QACV,OAAOL,EAAE,eAAe;AAAA,QACxB,aAAaA,EAAE,qBAAqB;AAAA,QACpC,cAAcA,EAAE,sBAAsB;AAAA,MAAA;AAAA,IAAA;AAAA,IAExC,gBAAAI;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,MAAK;AAAA,QACL,QAAO;AAAA,QACP,OAAOL,EAAE,eAAe;AAAA,QACxB,aAAaA,EAAE,qBAAqB;AAAA,QACpC,YAAU;AAAA,QACV,cAAcA,EAAE,sBAAsB;AAAA,MAAA;AAAA,IAAA;AAAA,EACxC,GACF;AAEJ;"}
1
+ {"version":3,"file":"Form.js","sources":["../../../../../src/components/Company/BankAccount/BankAccountVerify/Form.tsx"],"sourcesContent":["import { z } from 'zod'\nimport { useTranslation } from 'react-i18next'\nimport { Flex, NumberInputField } from '@/components/Common'\n\nexport const BankAccountVerifySchema = z.object({\n deposit1: z.number().min(0),\n deposit2: z.number().min(0),\n})\n\nexport type BankAccountVerifyInputs = z.infer<typeof BankAccountVerifySchema>\n\nexport function Form() {\n const { t } = useTranslation('Company.BankAccount')\n\n return (\n <Flex flexDirection=\"column\" gap={20}>\n <NumberInputField\n name=\"deposit1\"\n format=\"currency\"\n isRequired\n label={t('deposit1Label')}\n description={t('deposit1Description')}\n errorMessage={t('validations.deposit1')}\n />\n <NumberInputField\n name=\"deposit2\"\n format=\"currency\"\n label={t('deposit2Label')}\n description={t('deposit2Description')}\n isRequired\n errorMessage={t('validations.deposit2')}\n />\n </Flex>\n )\n}\n"],"names":["BankAccountVerifySchema","z","Form","t","useTranslation","jsxs","Flex","jsx","NumberInputField"],"mappings":";;;;;AAIO,MAAMA,IAA0BC,EAAE,OAAO;AAAA,EAC9C,UAAUA,EAAE,SAAS,IAAI,CAAC;AAAA,EAC1B,UAAUA,EAAE,OAAA,EAAS,IAAI,CAAC;AAC5B,CAAC;AAIM,SAASC,IAAO;AACrB,QAAM,EAAE,GAAAC,EAAA,IAAMC,EAAe,qBAAqB;AAElD,SACE,gBAAAC,EAACC,GAAA,EAAK,eAAc,UAAS,KAAK,IAChC,UAAA;AAAA,IAAA,gBAAAC;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,MAAK;AAAA,QACL,QAAO;AAAA,QACP,YAAU;AAAA,QACV,OAAOL,EAAE,eAAe;AAAA,QACxB,aAAaA,EAAE,qBAAqB;AAAA,QACpC,cAAcA,EAAE,sBAAsB;AAAA,MAAA;AAAA,IAAA;AAAA,IAExC,gBAAAI;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,MAAK;AAAA,QACL,QAAO;AAAA,QACP,OAAOL,EAAE,eAAe;AAAA,QACxB,aAAaA,EAAE,qBAAqB;AAAA,QACpC,YAAU;AAAA,QACV,cAAcA,EAAE,sBAAsB;AAAA,MAAA;AAAA,IAAA;AAAA,EACxC,GACF;AAEJ;"}
@@ -1,16 +1,13 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
- import { useTranslation as m } from "react-i18next";
3
- import { useDocumentList as e } from "./useDocumentList.js";
4
- import "../../../../shared/constants.js";
5
- import "classnames";
2
+ import { useTranslation as e } from "react-i18next";
3
+ import { useDocumentList as m } from "./useDocumentList.js";
6
4
  import { ActionsLayout as s } from "../../../Common/ActionsLayout/ActionsLayout.js";
7
5
  import { useComponentContext as c } from "../../../../contexts/ComponentAdapter/useComponentContext.js";
8
- import "react";
9
- function x({ continueCtaLabel: t }) {
10
- const { t: n } = m("Company.DocumentList"), { handleContinue: i } = e(), r = c();
6
+ function l({ continueCtaLabel: t }) {
7
+ const { t: n } = e("Company.DocumentList"), { handleContinue: i } = m(), r = c();
11
8
  return /* @__PURE__ */ o(s, { children: /* @__PURE__ */ o(r.Button, { onClick: i, children: t || n("continueCta") }) });
12
9
  }
13
10
  export {
14
- x as Actions
11
+ l as Actions
15
12
  };
16
13
  //# sourceMappingURL=Actions.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Actions.js","sources":["../../../../../src/components/Company/DocumentSigner/DocumentList/Actions.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport { useDocumentList } from './useDocumentList'\nimport { ActionsLayout } from '@/components/Common'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\n\ninterface ActionsProps {\n continueCtaLabel?: string\n}\n\nexport function Actions({ continueCtaLabel }: ActionsProps) {\n const { t } = useTranslation('Company.DocumentList')\n const { handleContinue } = useDocumentList()\n const Components = useComponentContext()\n\n return (\n <ActionsLayout>\n <Components.Button onClick={handleContinue}>\n {continueCtaLabel || t('continueCta')}\n </Components.Button>\n </ActionsLayout>\n )\n}\n"],"names":["Actions","continueCtaLabel","t","useTranslation","handleContinue","useDocumentList","Components","useComponentContext","jsx","ActionsLayout"],"mappings":";;;;;;;;AASO,SAASA,EAAQ,EAAE,kBAAAC,KAAkC;AAC1D,QAAM,EAAE,GAAAC,EAAA,IAAMC,EAAe,sBAAsB,GAC7C,EAAE,gBAAAC,EAAA,IAAmBC,EAAA,GACrBC,IAAaC,EAAA;AAEnB,SACE,gBAAAC,EAACC,GAAA,EACC,UAAA,gBAAAD,EAACF,EAAW,QAAX,EAAkB,SAASF,GACzB,UAAAH,KAAoBC,EAAE,aAAa,EAAA,CACtC,GACF;AAEJ;"}
1
+ {"version":3,"file":"Actions.js","sources":["../../../../../src/components/Company/DocumentSigner/DocumentList/Actions.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport { useDocumentList } from './useDocumentList'\nimport { ActionsLayout } from '@/components/Common'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\n\ninterface ActionsProps {\n continueCtaLabel?: string\n}\n\nexport function Actions({ continueCtaLabel }: ActionsProps) {\n const { t } = useTranslation('Company.DocumentList')\n const { handleContinue } = useDocumentList()\n const Components = useComponentContext()\n\n return (\n <ActionsLayout>\n <Components.Button onClick={handleContinue}>\n {continueCtaLabel || t('continueCta')}\n </Components.Button>\n </ActionsLayout>\n )\n}\n"],"names":["Actions","continueCtaLabel","t","useTranslation","handleContinue","useDocumentList","Components","useComponentContext","jsx","ActionsLayout"],"mappings":";;;;;AASO,SAASA,EAAQ,EAAE,kBAAAC,KAAkC;AAC1D,QAAM,EAAE,GAAAC,EAAA,IAAMC,EAAe,sBAAsB,GAC7C,EAAE,gBAAAC,EAAA,IAAmBC,EAAA,GACrBC,IAAaC,EAAA;AAEnB,SACE,gBAAAC,EAACC,GAAA,EACC,UAAA,gBAAAD,EAACF,EAAW,QAAX,EAAkB,SAASF,GACzB,UAAAH,KAAoBC,EAAE,aAAa,EAAA,CACtC,GACF;AAEJ;"}
@@ -10,15 +10,11 @@ import { useComponentDictionary as D, useI18n as M } from "../../../../i18n/I18n
10
10
  import { BaseComponent as R } from "../../../Base/Base.js";
11
11
  import { useBase as A } from "../../../Base/useBase.js";
12
12
  import { Flex as E } from "../../../Common/Flex/Flex.js";
13
- import "classnames";
14
- import { companyEvents as i } from "../../../../shared/constants.js";
15
- import "react-i18next";
16
- import "../../../../contexts/ComponentAdapter/useComponentContext.js";
17
- import "react";
18
- function X(n) {
13
+ import { companyEvents as r } from "../../../../shared/constants.js";
14
+ function z(n) {
19
15
  return /* @__PURE__ */ o(R, { ...n, children: /* @__PURE__ */ o(N, { ...n, children: n.children }) });
20
16
  }
21
- function N({ companyId: n, signatoryId: e, className: s, children: m, dictionary: a }) {
17
+ function N({ companyId: n, signatoryId: i, className: m, children: s, dictionary: a }) {
22
18
  D("Company.DocumentList", a), M("Company.DocumentList");
23
19
  const { onEvent: t } = A(), {
24
20
  data: { formList: c },
@@ -29,26 +25,26 @@ function N({ companyId: n, signatoryId: e, className: s, children: m, dictionary
29
25
  data: { signatories: l }
30
26
  } = C({
31
27
  companyUuid: n
32
- }), r = l[0], f = !!e && r?.uuid === e;
33
- return /* @__PURE__ */ o("section", { className: s, children: /* @__PURE__ */ o(
28
+ }), e = l[0], f = !!i && e?.uuid === i;
29
+ return /* @__PURE__ */ o("section", { className: m, children: /* @__PURE__ */ o(
34
30
  _,
35
31
  {
36
32
  value: {
37
33
  companyForms: p,
38
34
  documentListError: u,
39
35
  handleRequestFormToSign: (d) => {
40
- t(i.COMPANY_VIEW_FORM_TO_SIGN, d);
36
+ t(r.COMPANY_VIEW_FORM_TO_SIGN, d);
41
37
  },
42
38
  handleChangeSignatory: () => {
43
- t(i.COMPANY_FORM_EDIT_SIGNATORY, r);
39
+ t(r.COMPANY_FORM_EDIT_SIGNATORY, e);
44
40
  },
45
41
  handleContinue: () => {
46
- t(i.COMPANY_FORMS_DONE);
42
+ t(r.COMPANY_FORMS_DONE);
47
43
  },
48
44
  isSelfSignatory: f,
49
- signatory: r
45
+ signatory: e
50
46
  },
51
- children: /* @__PURE__ */ o(E, { flexDirection: "column", gap: 32, children: m || /* @__PURE__ */ g(h, { children: [
47
+ children: /* @__PURE__ */ o(E, { flexDirection: "column", gap: 32, children: s || /* @__PURE__ */ g(h, { children: [
52
48
  /* @__PURE__ */ o(y, {}),
53
49
  /* @__PURE__ */ o(L, {}),
54
50
  /* @__PURE__ */ o(F, {}),
@@ -58,6 +54,6 @@ function N({ companyId: n, signatoryId: e, className: s, children: m, dictionary
58
54
  ) });
59
55
  }
60
56
  export {
61
- X as DocumentList
57
+ z as DocumentList
62
58
  };
63
59
  //# sourceMappingURL=DocumentList.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DocumentList.js","sources":["../../../../../src/components/Company/DocumentSigner/DocumentList/DocumentList.tsx"],"sourcesContent":["import { type Form as FormSchema } from '@gusto/embedded-api/models/components/form'\nimport { useCompanyFormsGetAllSuspense } from '@gusto/embedded-api/react-query/companyFormsGetAll'\nimport { useSignatoriesListSuspense } from '@gusto/embedded-api/react-query/signatoriesList'\nimport { Head } from './Head'\nimport { List } from './List'\nimport { ManageSignatories } from './ManageSignatories'\nimport { Actions } from './Actions'\nimport { DocumentListProvider } from './useDocumentList'\nimport { useI18n, useComponentDictionary } from '@/i18n'\nimport { BaseComponent, type BaseComponentInterface } from '@/components/Base/Base'\nimport { useBase } from '@/components/Base/useBase'\nimport { Flex } from '@/components/Common'\nimport { companyEvents } from '@/shared/constants'\n\ninterface DocumentListProps extends BaseComponentInterface<'Company.DocumentList'> {\n companyId: string\n signatoryId?: string\n}\n\nexport function DocumentList(props: DocumentListProps) {\n return (\n <BaseComponent {...props}>\n <Root {...props}>{props.children}</Root>\n </BaseComponent>\n )\n}\n\nfunction Root({ companyId, signatoryId, className, children, dictionary }: DocumentListProps) {\n useComponentDictionary('Company.DocumentList', dictionary)\n useI18n('Company.DocumentList')\n const { onEvent } = useBase()\n\n const {\n data: { formList },\n error: documentListError,\n } = useCompanyFormsGetAllSuspense({\n companyId,\n })\n const companyForms = formList!\n\n const {\n data: { signatories: signatoryList },\n } = useSignatoriesListSuspense({\n companyUuid: companyId,\n })\n const signatories = signatoryList!\n\n // For now, this will only ever have one entry for the current signatory since companies can\n // only have one signatory. If that changes in the future, this UX will need to be revisited.\n const signatory = signatories[0]\n const isSelfSignatory = !!signatoryId && signatory?.uuid === signatoryId\n\n const handleRequestFormToSign = (form: FormSchema) => {\n onEvent(companyEvents.COMPANY_VIEW_FORM_TO_SIGN, form)\n }\n\n const handleChangeSignatory = () => {\n onEvent(companyEvents.COMPANY_FORM_EDIT_SIGNATORY, signatory)\n }\n\n const handleContinue = () => {\n onEvent(companyEvents.COMPANY_FORMS_DONE)\n }\n\n return (\n <section className={className}>\n <DocumentListProvider\n value={{\n companyForms,\n documentListError,\n handleRequestFormToSign,\n handleChangeSignatory,\n handleContinue,\n isSelfSignatory,\n signatory,\n }}\n >\n <Flex flexDirection=\"column\" gap={32}>\n {children ? (\n children\n ) : (\n <>\n <Head />\n <ManageSignatories />\n <List />\n <Actions />\n </>\n )}\n </Flex>\n </DocumentListProvider>\n </section>\n )\n}\n"],"names":["DocumentList","props","jsx","BaseComponent","Root","companyId","signatoryId","className","children","dictionary","useComponentDictionary","useI18n","onEvent","useBase","formList","documentListError","useCompanyFormsGetAllSuspense","companyForms","signatoryList","useSignatoriesListSuspense","signatory","isSelfSignatory","DocumentListProvider","form","companyEvents","Flex","jsxs","Fragment","Head","ManageSignatories","List","Actions"],"mappings":";;;;;;;;;;;;;;;;;AAmBO,SAASA,EAAaC,GAA0B;AACrD,SACE,gBAAAC,EAACC,GAAA,EAAe,GAAGF,GACjB,UAAA,gBAAAC,EAACE,KAAM,GAAGH,GAAQ,UAAAA,EAAM,SAAA,CAAS,EAAA,CACnC;AAEJ;AAEA,SAASG,EAAK,EAAE,WAAAC,GAAW,aAAAC,GAAa,WAAAC,GAAW,UAAAC,GAAU,YAAAC,KAAiC;AAC5F,EAAAC,EAAuB,wBAAwBD,CAAU,GACzDE,EAAQ,sBAAsB;AAC9B,QAAM,EAAE,SAAAC,EAAA,IAAYC,EAAA,GAEd;AAAA,IACJ,MAAM,EAAE,UAAAC,EAAA;AAAA,IACR,OAAOC;AAAA,EAAA,IACLC,EAA8B;AAAA,IAChC,WAAAX;AAAA,EAAA,CACD,GACKY,IAAeH,GAEf;AAAA,IACJ,MAAM,EAAE,aAAaI,EAAA;AAAA,EAAc,IACjCC,EAA2B;AAAA,IAC7B,aAAad;AAAA,EAAA,CACd,GAKKe,IAJcF,EAIU,CAAC,GACzBG,IAAkB,CAAC,CAACf,KAAec,GAAW,SAASd;AAc7D,SACE,gBAAAJ,EAAC,aAAQ,WAAAK,GACP,UAAA,gBAAAL;AAAA,IAACoB;AAAA,IAAA;AAAA,MACC,OAAO;AAAA,QACL,cAAAL;AAAA,QACA,mBAAAF;AAAA,QACA,yBAlBwB,CAACQ,MAAqB;AACpD,UAAAX,EAAQY,EAAc,2BAA2BD,CAAI;AAAA,QACvD;AAAA,QAiBQ,uBAfsB,MAAM;AAClC,UAAAX,EAAQY,EAAc,6BAA6BJ,CAAS;AAAA,QAC9D;AAAA,QAcQ,gBAZe,MAAM;AAC3B,UAAAR,EAAQY,EAAc,kBAAkB;AAAA,QAC1C;AAAA,QAWQ,iBAAAH;AAAA,QACA,WAAAD;AAAA,MAAA;AAAA,MAGF,UAAA,gBAAAlB,EAACuB,KAAK,eAAc,UAAS,KAAK,IAC/B,UAAAjB,KAGC,gBAAAkB,EAAAC,GAAA,EACE,UAAA;AAAA,QAAA,gBAAAzB,EAAC0B,GAAA,EAAK;AAAA,0BACLC,GAAA,EAAkB;AAAA,0BAClBC,GAAA,EAAK;AAAA,0BACLC,GAAA,CAAA,CAAQ;AAAA,MAAA,EAAA,CACX,EAAA,CAEJ;AAAA,IAAA;AAAA,EAAA,GAEJ;AAEJ;"}
1
+ {"version":3,"file":"DocumentList.js","sources":["../../../../../src/components/Company/DocumentSigner/DocumentList/DocumentList.tsx"],"sourcesContent":["import { type Form as FormSchema } from '@gusto/embedded-api/models/components/form'\nimport { useCompanyFormsGetAllSuspense } from '@gusto/embedded-api/react-query/companyFormsGetAll'\nimport { useSignatoriesListSuspense } from '@gusto/embedded-api/react-query/signatoriesList'\nimport { Head } from './Head'\nimport { List } from './List'\nimport { ManageSignatories } from './ManageSignatories'\nimport { Actions } from './Actions'\nimport { DocumentListProvider } from './useDocumentList'\nimport { useI18n, useComponentDictionary } from '@/i18n'\nimport { BaseComponent, type BaseComponentInterface } from '@/components/Base/Base'\nimport { useBase } from '@/components/Base/useBase'\nimport { Flex } from '@/components/Common'\nimport { companyEvents } from '@/shared/constants'\n\ninterface DocumentListProps extends BaseComponentInterface<'Company.DocumentList'> {\n companyId: string\n signatoryId?: string\n}\n\nexport function DocumentList(props: DocumentListProps) {\n return (\n <BaseComponent {...props}>\n <Root {...props}>{props.children}</Root>\n </BaseComponent>\n )\n}\n\nfunction Root({ companyId, signatoryId, className, children, dictionary }: DocumentListProps) {\n useComponentDictionary('Company.DocumentList', dictionary)\n useI18n('Company.DocumentList')\n const { onEvent } = useBase()\n\n const {\n data: { formList },\n error: documentListError,\n } = useCompanyFormsGetAllSuspense({\n companyId,\n })\n const companyForms = formList!\n\n const {\n data: { signatories: signatoryList },\n } = useSignatoriesListSuspense({\n companyUuid: companyId,\n })\n const signatories = signatoryList!\n\n // For now, this will only ever have one entry for the current signatory since companies can\n // only have one signatory. If that changes in the future, this UX will need to be revisited.\n const signatory = signatories[0]\n const isSelfSignatory = !!signatoryId && signatory?.uuid === signatoryId\n\n const handleRequestFormToSign = (form: FormSchema) => {\n onEvent(companyEvents.COMPANY_VIEW_FORM_TO_SIGN, form)\n }\n\n const handleChangeSignatory = () => {\n onEvent(companyEvents.COMPANY_FORM_EDIT_SIGNATORY, signatory)\n }\n\n const handleContinue = () => {\n onEvent(companyEvents.COMPANY_FORMS_DONE)\n }\n\n return (\n <section className={className}>\n <DocumentListProvider\n value={{\n companyForms,\n documentListError,\n handleRequestFormToSign,\n handleChangeSignatory,\n handleContinue,\n isSelfSignatory,\n signatory,\n }}\n >\n <Flex flexDirection=\"column\" gap={32}>\n {children ? (\n children\n ) : (\n <>\n <Head />\n <ManageSignatories />\n <List />\n <Actions />\n </>\n )}\n </Flex>\n </DocumentListProvider>\n </section>\n )\n}\n"],"names":["DocumentList","props","jsx","BaseComponent","Root","companyId","signatoryId","className","children","dictionary","useComponentDictionary","useI18n","onEvent","useBase","formList","documentListError","useCompanyFormsGetAllSuspense","companyForms","signatoryList","useSignatoriesListSuspense","signatory","isSelfSignatory","DocumentListProvider","form","companyEvents","Flex","jsxs","Fragment","Head","ManageSignatories","List","Actions"],"mappings":";;;;;;;;;;;;;AAmBO,SAASA,EAAaC,GAA0B;AACrD,SACE,gBAAAC,EAACC,GAAA,EAAe,GAAGF,GACjB,UAAA,gBAAAC,EAACE,KAAM,GAAGH,GAAQ,UAAAA,EAAM,SAAA,CAAS,EAAA,CACnC;AAEJ;AAEA,SAASG,EAAK,EAAE,WAAAC,GAAW,aAAAC,GAAa,WAAAC,GAAW,UAAAC,GAAU,YAAAC,KAAiC;AAC5F,EAAAC,EAAuB,wBAAwBD,CAAU,GACzDE,EAAQ,sBAAsB;AAC9B,QAAM,EAAE,SAAAC,EAAA,IAAYC,EAAA,GAEd;AAAA,IACJ,MAAM,EAAE,UAAAC,EAAA;AAAA,IACR,OAAOC;AAAA,EAAA,IACLC,EAA8B;AAAA,IAChC,WAAAX;AAAA,EAAA,CACD,GACKY,IAAeH,GAEf;AAAA,IACJ,MAAM,EAAE,aAAaI,EAAA;AAAA,EAAc,IACjCC,EAA2B;AAAA,IAC7B,aAAad;AAAA,EAAA,CACd,GAKKe,IAJcF,EAIU,CAAC,GACzBG,IAAkB,CAAC,CAACf,KAAec,GAAW,SAASd;AAc7D,SACE,gBAAAJ,EAAC,aAAQ,WAAAK,GACP,UAAA,gBAAAL;AAAA,IAACoB;AAAA,IAAA;AAAA,MACC,OAAO;AAAA,QACL,cAAAL;AAAA,QACA,mBAAAF;AAAA,QACA,yBAlBwB,CAACQ,MAAqB;AACpD,UAAAX,EAAQY,EAAc,2BAA2BD,CAAI;AAAA,QACvD;AAAA,QAiBQ,uBAfsB,MAAM;AAClC,UAAAX,EAAQY,EAAc,6BAA6BJ,CAAS;AAAA,QAC9D;AAAA,QAcQ,gBAZe,MAAM;AAC3B,UAAAR,EAAQY,EAAc,kBAAkB;AAAA,QAC1C;AAAA,QAWQ,iBAAAH;AAAA,QACA,WAAAD;AAAA,MAAA;AAAA,MAGF,UAAA,gBAAAlB,EAACuB,KAAK,eAAc,UAAS,KAAK,IAC/B,UAAAjB,KAGC,gBAAAkB,EAAAC,GAAA,EACE,UAAA;AAAA,QAAA,gBAAAzB,EAAC0B,GAAA,EAAK;AAAA,0BACLC,GAAA,EAAkB;AAAA,0BAClBC,GAAA,EAAK;AAAA,0BACLC,GAAA,CAAA,CAAQ;AAAA,MAAA,EAAA,CACX,EAAA,CAEJ;AAAA,IAAA;AAAA,EAAA,GAEJ;AAEJ;"}
@@ -4,18 +4,19 @@ import "react-error-boundary";
4
4
  import "react-i18next";
5
5
  import "@tanstack/react-query";
6
6
  import "../../../Base/useBase.js";
7
- import "../../../../shared/constants.js";
8
- import "classnames";
9
- import "../../../../contexts/ComponentAdapter/useComponentContext.js";
7
+ import "@gusto/embedded-api/models/errors/apierror";
10
8
  import "@gusto/embedded-api/models/errors/gustoembeddederror";
11
- import "@gusto/embedded-api/models/errors/httpclienterrors";
12
9
  import "@gusto/embedded-api/models/errors/sdkvalidationerror";
10
+ import "@gusto/embedded-api/models/errors/unprocessableentityerrorobject";
11
+ import "@gusto/embedded-api/models/errors/httpclienterrors";
12
+ import "../../../../shared/constants.js";
13
+ import "../../../../contexts/ComponentAdapter/useComponentContext.js";
13
14
  import { createCompoundContext as t } from "../../../Base/createCompoundContext.js";
14
- const [L, a] = t(
15
+ const [a, d] = t(
15
16
  "CompanyDocumentListContext"
16
17
  );
17
18
  export {
18
- a as DocumentListProvider,
19
- L as useDocumentList
19
+ d as DocumentListProvider,
20
+ a as useDocumentList
20
21
  };
21
22
  //# sourceMappingURL=useDocumentList.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useDocumentList.js","sources":["../../../../../src/components/Company/DocumentSigner/DocumentList/useDocumentList.ts"],"sourcesContent":["import { type Signatory } from '@gusto/embedded-api/models/components/signatory'\nimport { type Form as FormSchema } from '@gusto/embedded-api/models/components/form'\nimport { createCompoundContext } from '@/components/Base'\n\ntype DocumentListContextType = {\n companyForms: FormSchema[]\n documentListError: Error | null\n handleRequestFormToSign: (form: FormSchema) => void\n handleChangeSignatory: () => void\n handleContinue: () => void\n isSelfSignatory: boolean\n signatory?: Signatory\n}\n\nconst [useDocumentList, DocumentListProvider] = createCompoundContext<DocumentListContextType>(\n 'CompanyDocumentListContext',\n)\n\nexport { useDocumentList, DocumentListProvider }\n"],"names":["useDocumentList","DocumentListProvider","createCompoundContext"],"mappings":";;;;;;;;;;;;;AAcA,MAAM,CAACA,GAAiBC,CAAoB,IAAIC;AAAA,EAC9C;AACF;"}
1
+ {"version":3,"file":"useDocumentList.js","sources":["../../../../../src/components/Company/DocumentSigner/DocumentList/useDocumentList.ts"],"sourcesContent":["import { type Signatory } from '@gusto/embedded-api/models/components/signatory'\nimport { type Form as FormSchema } from '@gusto/embedded-api/models/components/form'\nimport { createCompoundContext } from '@/components/Base'\n\ntype DocumentListContextType = {\n companyForms: FormSchema[]\n documentListError: Error | null\n handleRequestFormToSign: (form: FormSchema) => void\n handleChangeSignatory: () => void\n handleContinue: () => void\n isSelfSignatory: boolean\n signatory?: Signatory\n}\n\nconst [useDocumentList, DocumentListProvider] = createCompoundContext<DocumentListContextType>(\n 'CompanyDocumentListContext',\n)\n\nexport { useDocumentList, DocumentListProvider }\n"],"names":["useDocumentList","DocumentListProvider","createCompoundContext"],"mappings":";;;;;;;;;;;;;;AAcA,MAAM,CAACA,GAAiBC,CAAoB,IAAIC;AAAA,EAC9C;AACF;"}
@@ -12,25 +12,21 @@ import { BaseComponent as x } from "../../../Base/Base.js";
12
12
  import { useBase as A } from "../../../Base/useBase.js";
13
13
  import { SignatureForm as v } from "../../../Common/SignatureForm/SignatureForm.js";
14
14
  import { Flex as G } from "../../../Common/Flex/Flex.js";
15
- import "classnames";
16
15
  import { companyEvents as t } from "../../../../shared/constants.js";
17
- import "react-i18next";
18
- import "../../../../contexts/ComponentAdapter/useComponentContext.js";
19
- import "react";
20
- function oo(r) {
16
+ function V(r) {
21
17
  return /* @__PURE__ */ o(x, { ...r, children: /* @__PURE__ */ o(R, { ...r, children: r.children }) });
22
18
  }
23
- function R({ formId: r, children: m, dictionary: i }) {
19
+ function R({ formId: r, children: e, dictionary: i }) {
24
20
  O("Company.SignatureForm", i), b("Company.SignatureForm");
25
21
  const { onEvent: n, baseSubmitHandler: a } = A(), {
26
22
  data: { form: s }
27
23
  } = C({
28
24
  formId: r
29
- }), u = s, { isPending: c, mutateAsync: p } = h(), {
30
- data: { formPdf: f }
25
+ }), u = s, { isPending: c, mutateAsync: f } = h(), {
26
+ data: { formPdf: p }
31
27
  } = y({
32
28
  formId: r
33
- }), l = f.documentUrl;
29
+ }), l = p.documentUrl;
34
30
  return /* @__PURE__ */ o(
35
31
  M,
36
32
  {
@@ -43,19 +39,19 @@ function R({ formId: r, children: m, dictionary: i }) {
43
39
  }
44
40
  },
45
41
  children: /* @__PURE__ */ o(v, { onSubmit: async (d) => {
46
- await a(d, async (e) => {
47
- const F = await p({
42
+ await a(d, async (m) => {
43
+ const F = await f({
48
44
  request: {
49
45
  formId: r,
50
46
  requestBody: {
51
- signatureText: e.signature,
52
- agree: e.confirmSignature
47
+ signatureText: m.signature,
48
+ agree: m.confirmSignature
53
49
  }
54
50
  }
55
51
  });
56
52
  n(t.COMPANY_SIGN_FORM, F.form), n(t.COMPANY_SIGN_FORM_DONE);
57
53
  });
58
- }, children: /* @__PURE__ */ o(G, { flexDirection: "column", gap: 32, children: m || /* @__PURE__ */ S(g, { children: [
54
+ }, children: /* @__PURE__ */ o(G, { flexDirection: "column", gap: 32, children: e || /* @__PURE__ */ S(g, { children: [
59
55
  /* @__PURE__ */ o(N, {}),
60
56
  /* @__PURE__ */ o(P, {}),
61
57
  /* @__PURE__ */ o(_, {}),
@@ -66,6 +62,6 @@ function R({ formId: r, children: m, dictionary: i }) {
66
62
  }
67
63
  export {
68
64
  R as Root,
69
- oo as SignatureForm
65
+ V as SignatureForm
70
66
  };
71
67
  //# sourceMappingURL=SignatureForm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SignatureForm.js","sources":["../../../../../src/components/Company/DocumentSigner/SignatureForm/SignatureForm.tsx"],"sourcesContent":["import { useCompanyFormsGetSuspense } from '@gusto/embedded-api/react-query/companyFormsGet'\nimport { useCompanyFormsSignMutation } from '@gusto/embedded-api/react-query/companyFormsSign'\nimport { useCompanyFormsGetPdfSuspense } from '@gusto/embedded-api/react-query/companyFormsGetPdf'\nimport { Head } from './Head'\nimport { Preview } from './Preview'\nimport { Form } from './Form'\nimport { Actions } from './Actions'\nimport { SignatureFormProvider } from './useSignatureForm'\nimport { useI18n, useComponentDictionary } from '@/i18n'\nimport type { BaseComponentInterface } from '@/components/Base/Base'\nimport { BaseComponent } from '@/components/Base/Base'\nimport { useBase } from '@/components/Base/useBase'\nimport {\n SignatureForm as SharedSignatureForm,\n type SignatureFormInputs,\n} from '@/components/Common/SignatureForm'\nimport { Flex } from '@/components/Common'\nimport { companyEvents } from '@/shared/constants'\n\ninterface SignatureFormProps extends BaseComponentInterface<'Company.SignatureForm'> {\n formId: string\n companyId: string\n}\n\nexport function SignatureForm(props: SignatureFormProps) {\n return (\n <BaseComponent {...props}>\n <Root {...props}>{props.children}</Root>\n </BaseComponent>\n )\n}\n\nexport function Root({ formId, children, dictionary }: SignatureFormProps) {\n useComponentDictionary('Company.SignatureForm', dictionary)\n useI18n('Company.SignatureForm')\n const { onEvent, baseSubmitHandler } = useBase()\n\n const {\n data: { form: formNullable },\n } = useCompanyFormsGetSuspense({\n formId,\n })\n const form = formNullable!\n\n const { isPending, mutateAsync: signForm } = useCompanyFormsSignMutation()\n\n const {\n data: { formPdf },\n } = useCompanyFormsGetPdfSuspense({\n formId,\n })\n const pdfUrl = formPdf!.documentUrl!\n\n const handleSubmit = async (data: SignatureFormInputs) => {\n await baseSubmitHandler(data, async payload => {\n const signFormResponse = await signForm({\n request: {\n formId,\n requestBody: {\n signatureText: payload.signature,\n agree: payload.confirmSignature,\n },\n },\n })\n\n onEvent(companyEvents.COMPANY_SIGN_FORM, signFormResponse.form)\n\n onEvent(companyEvents.COMPANY_SIGN_FORM_DONE)\n })\n }\n\n const handleBack = () => {\n onEvent(companyEvents.COMPANY_SIGN_FORM_BACK)\n }\n\n return (\n <SignatureFormProvider\n value={{\n form,\n pdfUrl,\n isPending,\n onBack: handleBack,\n }}\n >\n <SharedSignatureForm onSubmit={handleSubmit}>\n <Flex flexDirection=\"column\" gap={32}>\n {children ? (\n children\n ) : (\n <>\n <Head />\n <Preview />\n <Form />\n <Actions />\n </>\n )}\n </Flex>\n </SharedSignatureForm>\n </SignatureFormProvider>\n )\n}\n"],"names":["SignatureForm","props","jsx","BaseComponent","Root","formId","children","dictionary","useComponentDictionary","useI18n","onEvent","baseSubmitHandler","useBase","formNullable","useCompanyFormsGetSuspense","form","isPending","signForm","useCompanyFormsSignMutation","formPdf","useCompanyFormsGetPdfSuspense","pdfUrl","SignatureFormProvider","companyEvents","SharedSignatureForm","data","payload","signFormResponse","Flex","jsxs","Fragment","Head","Preview","Form","Actions"],"mappings":";;;;;;;;;;;;;;;;;;;AAwBO,SAASA,GAAcC,GAA2B;AACvD,SACE,gBAAAC,EAACC,GAAA,EAAe,GAAGF,GACjB,UAAA,gBAAAC,EAACE,KAAM,GAAGH,GAAQ,UAAAA,EAAM,SAAA,CAAS,EAAA,CACnC;AAEJ;AAEO,SAASG,EAAK,EAAE,QAAAC,GAAQ,UAAAC,GAAU,YAAAC,KAAkC;AACzE,EAAAC,EAAuB,yBAAyBD,CAAU,GAC1DE,EAAQ,uBAAuB;AAC/B,QAAM,EAAE,SAAAC,GAAS,mBAAAC,EAAA,IAAsBC,EAAA,GAEjC;AAAA,IACJ,MAAM,EAAE,MAAMC,EAAA;AAAA,EAAa,IACzBC,EAA2B;AAAA,IAC7B,QAAAT;AAAA,EAAA,CACD,GACKU,IAAOF,GAEP,EAAE,WAAAG,GAAW,aAAaC,EAAA,IAAaC,EAAA,GAEvC;AAAA,IACJ,MAAM,EAAE,SAAAC,EAAA;AAAA,EAAQ,IACdC,EAA8B;AAAA,IAChC,QAAAf;AAAA,EAAA,CACD,GACKgB,IAASF,EAAS;AAwBxB,SACE,gBAAAjB;AAAA,IAACoB;AAAA,IAAA;AAAA,MACC,OAAO;AAAA,QACL,MAAAP;AAAA,QACA,QAAAM;AAAA,QACA,WAAAL;AAAA,QACA,QAVa,MAAM;AACvB,UAAAN,EAAQa,EAAc,sBAAsB;AAAA,QAC9C;AAAA,MAQc;AAAA,MAGV,UAAA,gBAAArB,EAACsB,GAAA,EAAoB,UA/BJ,OAAOC,MAA8B;AACxD,cAAMd,EAAkBc,GAAM,OAAMC,MAAW;AAC7C,gBAAMC,IAAmB,MAAMV,EAAS;AAAA,YACtC,SAAS;AAAA,cACP,QAAAZ;AAAA,cACA,aAAa;AAAA,gBACX,eAAeqB,EAAQ;AAAA,gBACvB,OAAOA,EAAQ;AAAA,cAAA;AAAA,YACjB;AAAA,UACF,CACD;AAED,UAAAhB,EAAQa,EAAc,mBAAmBI,EAAiB,IAAI,GAE9DjB,EAAQa,EAAc,sBAAsB;AAAA,QAC9C,CAAC;AAAA,MACH,GAgBM,UAAA,gBAAArB,EAAC0B,GAAA,EAAK,eAAc,UAAS,KAAK,IAC/B,UAAAtB,KAGC,gBAAAuB,EAAAC,GAAA,EACE,UAAA;AAAA,QAAA,gBAAA5B,EAAC6B,GAAA,EAAK;AAAA,0BACLC,GAAA,EAAQ;AAAA,0BACRC,GAAA,EAAK;AAAA,0BACLC,GAAA,CAAA,CAAQ;AAAA,MAAA,EAAA,CACX,GAEJ,EAAA,CACF;AAAA,IAAA;AAAA,EAAA;AAGN;"}
1
+ {"version":3,"file":"SignatureForm.js","sources":["../../../../../src/components/Company/DocumentSigner/SignatureForm/SignatureForm.tsx"],"sourcesContent":["import { useCompanyFormsGetSuspense } from '@gusto/embedded-api/react-query/companyFormsGet'\nimport { useCompanyFormsSignMutation } from '@gusto/embedded-api/react-query/companyFormsSign'\nimport { useCompanyFormsGetPdfSuspense } from '@gusto/embedded-api/react-query/companyFormsGetPdf'\nimport { Head } from './Head'\nimport { Preview } from './Preview'\nimport { Form } from './Form'\nimport { Actions } from './Actions'\nimport { SignatureFormProvider } from './useSignatureForm'\nimport { useI18n, useComponentDictionary } from '@/i18n'\nimport type { BaseComponentInterface } from '@/components/Base/Base'\nimport { BaseComponent } from '@/components/Base/Base'\nimport { useBase } from '@/components/Base/useBase'\nimport {\n SignatureForm as SharedSignatureForm,\n type SignatureFormInputs,\n} from '@/components/Common/SignatureForm'\nimport { Flex } from '@/components/Common'\nimport { companyEvents } from '@/shared/constants'\n\ninterface SignatureFormProps extends BaseComponentInterface<'Company.SignatureForm'> {\n formId: string\n companyId: string\n}\n\nexport function SignatureForm(props: SignatureFormProps) {\n return (\n <BaseComponent {...props}>\n <Root {...props}>{props.children}</Root>\n </BaseComponent>\n )\n}\n\nexport function Root({ formId, children, dictionary }: SignatureFormProps) {\n useComponentDictionary('Company.SignatureForm', dictionary)\n useI18n('Company.SignatureForm')\n const { onEvent, baseSubmitHandler } = useBase()\n\n const {\n data: { form: formNullable },\n } = useCompanyFormsGetSuspense({\n formId,\n })\n const form = formNullable!\n\n const { isPending, mutateAsync: signForm } = useCompanyFormsSignMutation()\n\n const {\n data: { formPdf },\n } = useCompanyFormsGetPdfSuspense({\n formId,\n })\n const pdfUrl = formPdf!.documentUrl!\n\n const handleSubmit = async (data: SignatureFormInputs) => {\n await baseSubmitHandler(data, async payload => {\n const signFormResponse = await signForm({\n request: {\n formId,\n requestBody: {\n signatureText: payload.signature,\n agree: payload.confirmSignature,\n },\n },\n })\n\n onEvent(companyEvents.COMPANY_SIGN_FORM, signFormResponse.form)\n\n onEvent(companyEvents.COMPANY_SIGN_FORM_DONE)\n })\n }\n\n const handleBack = () => {\n onEvent(companyEvents.COMPANY_SIGN_FORM_BACK)\n }\n\n return (\n <SignatureFormProvider\n value={{\n form,\n pdfUrl,\n isPending,\n onBack: handleBack,\n }}\n >\n <SharedSignatureForm onSubmit={handleSubmit}>\n <Flex flexDirection=\"column\" gap={32}>\n {children ? (\n children\n ) : (\n <>\n <Head />\n <Preview />\n <Form />\n <Actions />\n </>\n )}\n </Flex>\n </SharedSignatureForm>\n </SignatureFormProvider>\n )\n}\n"],"names":["SignatureForm","props","jsx","BaseComponent","Root","formId","children","dictionary","useComponentDictionary","useI18n","onEvent","baseSubmitHandler","useBase","formNullable","useCompanyFormsGetSuspense","form","isPending","signForm","useCompanyFormsSignMutation","formPdf","useCompanyFormsGetPdfSuspense","pdfUrl","SignatureFormProvider","companyEvents","SharedSignatureForm","data","payload","signFormResponse","Flex","jsxs","Fragment","Head","Preview","Form","Actions"],"mappings":";;;;;;;;;;;;;;;AAwBO,SAASA,EAAcC,GAA2B;AACvD,SACE,gBAAAC,EAACC,GAAA,EAAe,GAAGF,GACjB,UAAA,gBAAAC,EAACE,KAAM,GAAGH,GAAQ,UAAAA,EAAM,SAAA,CAAS,EAAA,CACnC;AAEJ;AAEO,SAASG,EAAK,EAAE,QAAAC,GAAQ,UAAAC,GAAU,YAAAC,KAAkC;AACzE,EAAAC,EAAuB,yBAAyBD,CAAU,GAC1DE,EAAQ,uBAAuB;AAC/B,QAAM,EAAE,SAAAC,GAAS,mBAAAC,EAAA,IAAsBC,EAAA,GAEjC;AAAA,IACJ,MAAM,EAAE,MAAMC,EAAA;AAAA,EAAa,IACzBC,EAA2B;AAAA,IAC7B,QAAAT;AAAA,EAAA,CACD,GACKU,IAAOF,GAEP,EAAE,WAAAG,GAAW,aAAaC,EAAA,IAAaC,EAAA,GAEvC;AAAA,IACJ,MAAM,EAAE,SAAAC,EAAA;AAAA,EAAQ,IACdC,EAA8B;AAAA,IAChC,QAAAf;AAAA,EAAA,CACD,GACKgB,IAASF,EAAS;AAwBxB,SACE,gBAAAjB;AAAA,IAACoB;AAAA,IAAA;AAAA,MACC,OAAO;AAAA,QACL,MAAAP;AAAA,QACA,QAAAM;AAAA,QACA,WAAAL;AAAA,QACA,QAVa,MAAM;AACvB,UAAAN,EAAQa,EAAc,sBAAsB;AAAA,QAC9C;AAAA,MAQc;AAAA,MAGV,UAAA,gBAAArB,EAACsB,GAAA,EAAoB,UA/BJ,OAAOC,MAA8B;AACxD,cAAMd,EAAkBc,GAAM,OAAMC,MAAW;AAC7C,gBAAMC,IAAmB,MAAMV,EAAS;AAAA,YACtC,SAAS;AAAA,cACP,QAAAZ;AAAA,cACA,aAAa;AAAA,gBACX,eAAeqB,EAAQ;AAAA,gBACvB,OAAOA,EAAQ;AAAA,cAAA;AAAA,YACjB;AAAA,UACF,CACD;AAED,UAAAhB,EAAQa,EAAc,mBAAmBI,EAAiB,IAAI,GAE9DjB,EAAQa,EAAc,sBAAsB;AAAA,QAC9C,CAAC;AAAA,MACH,GAgBM,UAAA,gBAAArB,EAAC0B,GAAA,EAAK,eAAc,UAAS,KAAK,IAC/B,UAAAtB,KAGC,gBAAAuB,EAAAC,GAAA,EACE,UAAA;AAAA,QAAA,gBAAA5B,EAAC6B,GAAA,EAAK;AAAA,0BACLC,GAAA,EAAQ;AAAA,0BACRC,GAAA,EAAK;AAAA,0BACLC,GAAA,CAAA,CAAQ;AAAA,MAAA,EAAA,CACX,GAEJ,EAAA,CACF;AAAA,IAAA;AAAA,EAAA;AAGN;"}
@@ -4,18 +4,19 @@ import "react-error-boundary";
4
4
  import "react-i18next";
5
5
  import "@tanstack/react-query";
6
6
  import "../../../Base/useBase.js";
7
- import "../../../../shared/constants.js";
8
- import "classnames";
9
- import "../../../../contexts/ComponentAdapter/useComponentContext.js";
7
+ import "@gusto/embedded-api/models/errors/apierror";
10
8
  import "@gusto/embedded-api/models/errors/gustoembeddederror";
11
- import "@gusto/embedded-api/models/errors/httpclienterrors";
12
9
  import "@gusto/embedded-api/models/errors/sdkvalidationerror";
10
+ import "@gusto/embedded-api/models/errors/unprocessableentityerrorobject";
11
+ import "@gusto/embedded-api/models/errors/httpclienterrors";
12
+ import "../../../../shared/constants.js";
13
+ import "../../../../contexts/ComponentAdapter/useComponentContext.js";
13
14
  import { createCompoundContext as o } from "../../../Base/createCompoundContext.js";
14
- const [S, c] = o(
15
+ const [c, d] = o(
15
16
  "CompanySignatureFormContext"
16
17
  );
17
18
  export {
18
- c as SignatureFormProvider,
19
- S as useSignatureForm
19
+ d as SignatureFormProvider,
20
+ c as useSignatureForm
20
21
  };
21
22
  //# sourceMappingURL=useSignatureForm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useSignatureForm.js","sources":["../../../../../src/components/Company/DocumentSigner/SignatureForm/useSignatureForm.ts"],"sourcesContent":["import { type Form as FormSchema } from '@gusto/embedded-api/models/components/form'\nimport { createCompoundContext } from '@/components/Base'\n\ntype SignatureFormContextType = {\n form: FormSchema\n pdfUrl?: string | null\n isPending: boolean\n onBack: () => void\n}\n\nconst [useSignatureForm, SignatureFormProvider] = createCompoundContext<SignatureFormContextType>(\n 'CompanySignatureFormContext',\n)\n\nexport { useSignatureForm, SignatureFormProvider }\n"],"names":["useSignatureForm","SignatureFormProvider","createCompoundContext"],"mappings":";;;;;;;;;;;;;AAUA,MAAM,CAACA,GAAkBC,CAAqB,IAAIC;AAAA,EAChD;AACF;"}
1
+ {"version":3,"file":"useSignatureForm.js","sources":["../../../../../src/components/Company/DocumentSigner/SignatureForm/useSignatureForm.ts"],"sourcesContent":["import { type Form as FormSchema } from '@gusto/embedded-api/models/components/form'\nimport { createCompoundContext } from '@/components/Base'\n\ntype SignatureFormContextType = {\n form: FormSchema\n pdfUrl?: string | null\n isPending: boolean\n onBack: () => void\n}\n\nconst [useSignatureForm, SignatureFormProvider] = createCompoundContext<SignatureFormContextType>(\n 'CompanySignatureFormContext',\n)\n\nexport { useSignatureForm, SignatureFormProvider }\n"],"names":["useSignatureForm","SignatureFormProvider","createCompoundContext"],"mappings":";;;;;;;;;;;;;;AAUA,MAAM,CAACA,GAAkBC,CAAqB,IAAIC;AAAA,EAChD;AACF;"}
@@ -1,16 +1,13 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
- import { useTranslation as e } from "react-i18next";
3
- import { useFederalTaxes as i } from "./useFederalTaxes.js";
4
- import "../../../shared/constants.js";
5
- import "classnames";
6
- import { ActionsLayout as m } from "../../Common/ActionsLayout/ActionsLayout.js";
7
- import { useComponentContext as s } from "../../../contexts/ComponentAdapter/useComponentContext.js";
8
- import "react";
9
- const C = () => {
10
- const { t } = e("Company.FederalTaxes"), { isPending: n } = i(), r = s();
11
- return /* @__PURE__ */ o(m, { children: /* @__PURE__ */ o(r.Button, { type: "submit", isLoading: n, children: t("continueCta") }) });
2
+ import { useTranslation as r } from "react-i18next";
3
+ import { useFederalTaxes as s } from "./useFederalTaxes.js";
4
+ import { ActionsLayout as i } from "../../Common/ActionsLayout/ActionsLayout.js";
5
+ import { useComponentContext as m } from "../../../contexts/ComponentAdapter/useComponentContext.js";
6
+ const f = () => {
7
+ const { t } = r("Company.FederalTaxes"), { isPending: n } = s(), e = m();
8
+ return /* @__PURE__ */ o(i, { children: /* @__PURE__ */ o(e.Button, { type: "submit", isLoading: n, children: t("continueCta") }) });
12
9
  };
13
10
  export {
14
- C as Actions
11
+ f as Actions
15
12
  };
16
13
  //# sourceMappingURL=Actions.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Actions.js","sources":["../../../../src/components/Company/FederalTaxes/Actions.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport { useFederalTaxes } from './useFederalTaxes'\nimport { ActionsLayout } from '@/components/Common'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\n\nexport const Actions = () => {\n const { t } = useTranslation('Company.FederalTaxes')\n const { isPending } = useFederalTaxes()\n const Components = useComponentContext()\n\n return (\n <ActionsLayout>\n <Components.Button type=\"submit\" isLoading={isPending}>\n {t('continueCta')}\n </Components.Button>\n </ActionsLayout>\n )\n}\n"],"names":["Actions","useTranslation","isPending","useFederalTaxes","Components","useComponentContext","jsx","ActionsLayout"],"mappings":";;;;;;;;AAKO,MAAMA,IAAU,MAAM;AAC3B,QAAM,EAAE,EAAA,IAAMC,EAAe,sBAAsB,GAC7C,EAAE,WAAAC,EAAA,IAAcC,EAAA,GAChBC,IAAaC,EAAA;AAEnB,SACE,gBAAAC,EAACC,GAAA,EACC,UAAA,gBAAAD,EAACF,EAAW,QAAX,EAAkB,MAAK,UAAS,WAAWF,GACzC,UAAA,EAAE,aAAa,GAClB,GACF;AAEJ;"}
1
+ {"version":3,"file":"Actions.js","sources":["../../../../src/components/Company/FederalTaxes/Actions.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport { useFederalTaxes } from './useFederalTaxes'\nimport { ActionsLayout } from '@/components/Common'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\n\nexport const Actions = () => {\n const { t } = useTranslation('Company.FederalTaxes')\n const { isPending } = useFederalTaxes()\n const Components = useComponentContext()\n\n return (\n <ActionsLayout>\n <Components.Button type=\"submit\" isLoading={isPending}>\n {t('continueCta')}\n </Components.Button>\n </ActionsLayout>\n )\n}\n"],"names":["Actions","useTranslation","isPending","useFederalTaxes","Components","useComponentContext","jsx","ActionsLayout"],"mappings":";;;;;AAKO,MAAMA,IAAU,MAAM;AAC3B,QAAM,EAAE,EAAA,IAAMC,EAAe,sBAAsB,GAC7C,EAAE,WAAAC,EAAA,IAAcC,EAAA,GAChBC,IAAaC,EAAA;AAEnB,SACE,gBAAAC,EAACC,GAAA,EACC,UAAA,gBAAAD,EAACF,EAAW,QAAX,EAAkB,MAAK,UAAS,WAAWF,GACzC,UAAA,EAAE,aAAa,GAClB,GACF;AAEJ;"}
@@ -12,17 +12,13 @@ import { useI18n as R, useComponentDictionary as M } from "../../../i18n/I18n.js
12
12
  import { BaseComponent as B } from "../../Base/Base.js";
13
13
  import { useBase as O } from "../../Base/useBase.js";
14
14
  import { Flex as j } from "../../Common/Flex/Flex.js";
15
- import "classnames";
16
15
  import { companyEvents as l } from "../../../shared/constants.js";
17
- import "react-i18next";
18
- import "../../../contexts/ComponentAdapter/useComponentContext.js";
19
- import "react";
20
- function oe(o) {
21
- return /* @__PURE__ */ e(B, { ...o, children: /* @__PURE__ */ e(q, { ...o, children: o.children }) });
16
+ function Z(a) {
17
+ return /* @__PURE__ */ e(B, { ...a, children: /* @__PURE__ */ e(q, { ...a, children: a.children }) });
22
18
  }
23
- function q({ companyId: o, children: t, className: s, defaultValues: i, dictionary: d }) {
19
+ function q({ companyId: a, children: t, className: s, defaultValues: i, dictionary: d }) {
24
20
  R("Company.FederalTaxes"), M("Company.FederalTaxes", d);
25
- const { onEvent: m, baseSubmitHandler: f } = O(), { data: p } = h({ companyId: o }), r = p.federalTaxDetails, { mutateAsync: c, isPending: F } = D(), n = E({
21
+ const { onEvent: n, baseSubmitHandler: f } = O(), { data: c } = h({ companyId: a }), r = c.federalTaxDetails, { mutateAsync: p, isPending: F } = D(), m = E({
26
22
  resolver: v(A),
27
23
  defaultValues: {
28
24
  federalEin: r.hasEin ? void 0 : "",
@@ -31,23 +27,23 @@ function q({ companyId: o, children: t, className: s, defaultValues: i, dictiona
31
27
  legalName: r.legalName ?? i?.legalName
32
28
  }
33
29
  }), x = async (u) => {
34
- await f(u, async (a) => {
35
- const T = await c({
30
+ await f(u, async (o) => {
31
+ const T = await p({
36
32
  request: {
37
- companyId: o,
33
+ companyId: a,
38
34
  requestBody: {
39
- ein: a.federalEin,
40
- taxPayerType: a.taxPayerType,
41
- filingForm: a.filingForm,
42
- legalName: a.legalName,
35
+ ein: o.federalEin,
36
+ taxPayerType: o.taxPayerType,
37
+ filingForm: o.filingForm,
38
+ legalName: o.legalName,
43
39
  version: r.version
44
40
  }
45
41
  }
46
42
  });
47
- m(
43
+ n(
48
44
  l.COMPANY_FEDERAL_TAXES_UPDATED,
49
45
  T.federalTaxDetails
50
- ), m(l.COMPANY_FEDERAL_TAXES_DONE);
46
+ ), n(l.COMPANY_FEDERAL_TAXES_DONE);
51
47
  });
52
48
  };
53
49
  return /* @__PURE__ */ e("section", { className: s, children: /* @__PURE__ */ e(
@@ -57,7 +53,7 @@ function q({ companyId: o, children: t, className: s, defaultValues: i, dictiona
57
53
  isPending: F,
58
54
  federalTaxDetails: r
59
55
  },
60
- children: /* @__PURE__ */ e(P, { ...n, children: /* @__PURE__ */ e(S, { onSubmit: n.handleSubmit(x), children: /* @__PURE__ */ e(j, { flexDirection: "column", gap: 32, children: t || /* @__PURE__ */ y(g, { children: [
56
+ children: /* @__PURE__ */ e(P, { ...m, children: /* @__PURE__ */ e(S, { onSubmit: m.handleSubmit(x), children: /* @__PURE__ */ e(j, { flexDirection: "column", gap: 32, children: t || /* @__PURE__ */ y(g, { children: [
61
57
  /* @__PURE__ */ e(b, {}),
62
58
  /* @__PURE__ */ e(C, {}),
63
59
  /* @__PURE__ */ e(_, {})
@@ -66,6 +62,6 @@ function q({ companyId: o, children: t, className: s, defaultValues: i, dictiona
66
62
  ) });
67
63
  }
68
64
  export {
69
- oe as FederalTaxes
65
+ Z as FederalTaxes
70
66
  };
71
67
  //# sourceMappingURL=FederalTaxes.js.map