@gusto/embedded-react-sdk 0.26.0 → 0.28.0

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 (379) hide show
  1. package/CHANGELOG.md +103 -0
  2. package/dist/assets/icons/plus-circle.svg.js +5 -5
  3. package/dist/assets/icons/plus-circle.svg.js.map +1 -1
  4. package/dist/components/Base/Base.js +13 -12
  5. package/dist/components/Base/Base.js.map +1 -1
  6. package/dist/components/Common/DataView/DataCards/DataCards.d.ts +4 -2
  7. package/dist/components/Common/DataView/DataCards/DataCards.js +52 -32
  8. package/dist/components/Common/DataView/DataCards/DataCards.js.map +1 -1
  9. package/dist/components/Common/DataView/DataTable/DataTable.d.ts +3 -2
  10. package/dist/components/Common/DataView/DataTable/DataTable.js +68 -53
  11. package/dist/components/Common/DataView/DataTable/DataTable.js.map +1 -1
  12. package/dist/components/Common/DataView/DataView.d.ts +4 -2
  13. package/dist/components/Common/DataView/DataView.js +28 -18
  14. package/dist/components/Common/DataView/DataView.js.map +1 -1
  15. package/dist/components/Common/DataView/useDataView.d.ts +6 -1
  16. package/dist/components/Common/DataView/useDataView.js +34 -19
  17. package/dist/components/Common/DataView/useDataView.js.map +1 -1
  18. package/dist/components/Common/DocumentList/DocumentList.js +23 -23
  19. package/dist/components/Common/DocumentList/DocumentList.js.map +1 -1
  20. package/dist/components/Common/DocumentList/DocumentList.module.scss.js +6 -10
  21. package/dist/components/Common/DocumentList/DocumentList.module.scss.js.map +1 -1
  22. package/dist/components/Common/DocumentViewer/DocumentViewer.module.scss.js +12 -12
  23. package/dist/components/Common/InlineSpinner/InlineSpinner.module.scss.js +1 -1
  24. package/dist/components/Common/InternalError/InternalError.module.scss.js +4 -4
  25. package/dist/components/Common/ReorderableList/ReorderableList.module.scss.js +8 -8
  26. package/dist/components/Common/RequirementsList/RequirementsList.module.scss.js +1 -1
  27. package/dist/components/Common/SignatureForm/SignatureForm.js +12 -10
  28. package/dist/components/Common/SignatureForm/SignatureForm.js.map +1 -1
  29. package/dist/components/Common/SignatureForm/SignatureFormActions.js +3 -2
  30. package/dist/components/Common/SignatureForm/SignatureFormActions.js.map +1 -1
  31. package/dist/components/Common/SignatureForm/SignatureFormFields.js +7 -6
  32. package/dist/components/Common/SignatureForm/SignatureFormFields.js.map +1 -1
  33. package/dist/components/Common/UI/Alert/Alert.module.scss.js +9 -9
  34. package/dist/components/Common/UI/Banner/Banner.module.scss.js +1 -1
  35. package/dist/components/Common/UI/Breadcrumbs/Breadcrumbs.js +1 -1
  36. package/dist/components/Common/UI/Button/Button.module.scss.js +1 -1
  37. package/dist/components/Common/UI/CalendarPreview/CalendarPreview.module.scss.js +4 -4
  38. package/dist/components/Common/UI/Card/Card.d.ts +1 -1
  39. package/dist/components/Common/UI/Card/Card.js +10 -20
  40. package/dist/components/Common/UI/Card/Card.js.map +1 -1
  41. package/dist/components/Common/UI/Card/Card.module.scss.js +1 -1
  42. package/dist/components/Common/UI/Card/CardTypes.d.ts +4 -4
  43. package/dist/components/Common/UI/Checkbox/Checkbox.module.scss.js +1 -1
  44. package/dist/components/Common/UI/ComboBox/ComboBox.module.scss.js +3 -3
  45. package/dist/components/Common/UI/DatePicker/DatePicker.module.scss.js +4 -4
  46. package/dist/components/Common/UI/DescriptionList/DescriptionList.module.scss.js +1 -1
  47. package/dist/components/Common/UI/Dialog/Dialog.module.scss.js +2 -2
  48. package/dist/components/Common/UI/FileInput/FileInput.js +1 -1
  49. package/dist/components/Common/UI/FileInput/FileInput.module.scss.js +26 -26
  50. package/dist/components/Common/UI/Input/Input.module.scss.js +8 -8
  51. package/dist/components/Common/UI/Modal/Modal.module.scss.js +12 -12
  52. package/dist/components/Common/UI/ProgressBar/ProgressBar.js +4 -4
  53. package/dist/components/Common/UI/Radio/Radio.module.scss.js +6 -6
  54. package/dist/components/Common/UI/Select/Select.module.scss.js +4 -4
  55. package/dist/components/Common/UI/Table/Table.js +1 -1
  56. package/dist/components/Common/UI/Table/Table.js.map +1 -1
  57. package/dist/components/Common/UI/Table/Table.module.scss.js +1 -1
  58. package/dist/components/Common/UI/Tabs/Tabs.module.scss.js +1 -1
  59. package/dist/components/Common/UI/Text/Text.module.scss.js +17 -15
  60. package/dist/components/Common/UI/Text/Text.module.scss.js.map +1 -1
  61. package/dist/components/Common/UI/TextArea/TextArea.module.scss.js +4 -4
  62. package/dist/components/Company/AssignSignatory/AssignSignatory.js +3 -2
  63. package/dist/components/Company/AssignSignatory/AssignSignatory.js.map +1 -1
  64. package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js +4 -3
  65. package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js.map +1 -1
  66. package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.js +3 -2
  67. package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.js.map +1 -1
  68. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatory.js +1 -1
  69. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.js +12 -12
  70. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js +4 -3
  71. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js.map +1 -1
  72. package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.js +3 -2
  73. package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.js.map +1 -1
  74. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatory.js +1 -1
  75. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatoryForm.js +1 -1
  76. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js +4 -3
  77. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js.map +1 -1
  78. package/dist/components/Company/AssignSignatory/TitleSelect.js +4 -3
  79. package/dist/components/Company/AssignSignatory/TitleSelect.js.map +1 -1
  80. package/dist/components/Company/AssignSignatory/useAssignSignatory.js +6 -5
  81. package/dist/components/Company/AssignSignatory/useAssignSignatory.js.map +1 -1
  82. package/dist/components/Company/BankAccount/BankAccountForm/Actions.js +9 -8
  83. package/dist/components/Company/BankAccount/BankAccountForm/Actions.js.map +1 -1
  84. package/dist/components/Company/BankAccount/BankAccountForm/Form.js +7 -5
  85. package/dist/components/Company/BankAccount/BankAccountForm/Form.js.map +1 -1
  86. package/dist/components/Company/BankAccount/BankAccountForm/context.js +4 -3
  87. package/dist/components/Company/BankAccount/BankAccountForm/context.js.map +1 -1
  88. package/dist/components/Company/BankAccount/BankAccountList/Actions.js +3 -2
  89. package/dist/components/Company/BankAccount/BankAccountList/Actions.js.map +1 -1
  90. package/dist/components/Company/BankAccount/BankAccountVerify/Actions.js +7 -6
  91. package/dist/components/Company/BankAccount/BankAccountVerify/Actions.js.map +1 -1
  92. package/dist/components/Company/BankAccount/BankAccountVerify/Form.js +7 -5
  93. package/dist/components/Company/BankAccount/BankAccountVerify/Form.js.map +1 -1
  94. package/dist/components/Company/DocumentSigner/DocumentList/Actions.js +3 -2
  95. package/dist/components/Company/DocumentSigner/DocumentList/Actions.js.map +1 -1
  96. package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.js +9 -8
  97. package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.js.map +1 -1
  98. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js +4 -3
  99. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  100. package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js +4 -3
  101. package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js.map +1 -1
  102. package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js +4 -3
  103. package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js.map +1 -1
  104. package/dist/components/Company/FederalTaxes/Actions.js +7 -6
  105. package/dist/components/Company/FederalTaxes/Actions.js.map +1 -1
  106. package/dist/components/Company/FederalTaxes/FederalTaxes.js +4 -3
  107. package/dist/components/Company/FederalTaxes/FederalTaxes.js.map +1 -1
  108. package/dist/components/Company/FederalTaxes/Form.js +5 -3
  109. package/dist/components/Company/FederalTaxes/Form.js.map +1 -1
  110. package/dist/components/Company/FederalTaxes/useFederalTaxes.js +6 -5
  111. package/dist/components/Company/FederalTaxes/useFederalTaxes.js.map +1 -1
  112. package/dist/components/Company/Industry/Actions.js +8 -7
  113. package/dist/components/Company/Industry/Actions.js.map +1 -1
  114. package/dist/components/Company/Industry/Context.js +7 -6
  115. package/dist/components/Company/Industry/Context.js.map +1 -1
  116. package/dist/components/Company/Industry/Edit.js +3 -2
  117. package/dist/components/Company/Industry/Edit.js.map +1 -1
  118. package/dist/components/Company/Locations/LocationForm/Actions.js +7 -6
  119. package/dist/components/Company/Locations/LocationForm/Actions.js.map +1 -1
  120. package/dist/components/Company/Locations/LocationForm/Form.js +1 -1
  121. package/dist/components/Company/Locations/LocationForm/LocationForm.js +4 -3
  122. package/dist/components/Company/Locations/LocationForm/LocationForm.js.map +1 -1
  123. package/dist/components/Company/Locations/LocationForm/useLocationForm.js +4 -3
  124. package/dist/components/Company/Locations/LocationForm/useLocationForm.js.map +1 -1
  125. package/dist/components/Company/Locations/LocationsList/Actions.js +3 -2
  126. package/dist/components/Company/Locations/LocationsList/Actions.js.map +1 -1
  127. package/dist/components/Company/Locations/LocationsList/List.js +7 -6
  128. package/dist/components/Company/Locations/LocationsList/List.js.map +1 -1
  129. package/dist/components/Company/Locations/LocationsList/LocationsList.js +8 -7
  130. package/dist/components/Company/Locations/LocationsList/LocationsList.js.map +1 -1
  131. package/dist/components/Company/Locations/LocationsList/useLocationsList.js +4 -3
  132. package/dist/components/Company/Locations/LocationsList/useLocationsList.js.map +1 -1
  133. package/dist/components/Company/OnboardingOverview/Completed.js +12 -10
  134. package/dist/components/Company/OnboardingOverview/Completed.js.map +1 -1
  135. package/dist/components/Company/OnboardingOverview/MissingRequirements.js +8 -6
  136. package/dist/components/Company/OnboardingOverview/MissingRequirements.js.map +1 -1
  137. package/dist/components/Company/OnboardingOverview/OnboardingOverview.js +8 -7
  138. package/dist/components/Company/OnboardingOverview/OnboardingOverview.js.map +1 -1
  139. package/dist/components/Company/OnboardingOverview/context.js +4 -3
  140. package/dist/components/Company/OnboardingOverview/context.js.map +1 -1
  141. package/dist/components/Company/PaySchedule/PaySchedule.js +4 -3
  142. package/dist/components/Company/PaySchedule/PaySchedule.js.map +1 -1
  143. package/dist/components/Company/PaySchedule/_parts/Actions.js +3 -2
  144. package/dist/components/Company/PaySchedule/_parts/Actions.js.map +1 -1
  145. package/dist/components/Company/PaySchedule/_parts/Edit.js +15 -15
  146. package/dist/components/Company/PaySchedule/_parts/Head.js +13 -11
  147. package/dist/components/Company/PaySchedule/_parts/Head.js.map +1 -1
  148. package/dist/components/Company/PaySchedule/_parts/List.js +15 -13
  149. package/dist/components/Company/PaySchedule/_parts/List.js.map +1 -1
  150. package/dist/components/Company/PaySchedule/usePaySchedule.js +6 -5
  151. package/dist/components/Company/PaySchedule/usePaySchedule.js.map +1 -1
  152. package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.js +3 -2
  153. package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.js.map +1 -1
  154. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js +4 -3
  155. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js.map +1 -1
  156. package/dist/components/Company/StateTaxes/StateTaxesList/Actions.js +3 -2
  157. package/dist/components/Company/StateTaxes/StateTaxesList/Actions.js.map +1 -1
  158. package/dist/components/Company/StateTaxes/StateTaxesList/List.js +3 -2
  159. package/dist/components/Company/StateTaxes/StateTaxesList/List.js.map +1 -1
  160. package/dist/components/Company/StateTaxes/StateTaxesList/context.js +4 -3
  161. package/dist/components/Company/StateTaxes/StateTaxesList/context.js.map +1 -1
  162. package/dist/components/Contractor/Address/Address.js +5 -4
  163. package/dist/components/Contractor/Address/Address.js.map +1 -1
  164. package/dist/components/Contractor/Address/Form.js +1 -1
  165. package/dist/components/Contractor/Address/useAddress.js +6 -5
  166. package/dist/components/Contractor/Address/useAddress.js.map +1 -1
  167. package/dist/components/Contractor/ContractorList/index.js +32 -31
  168. package/dist/components/Contractor/ContractorList/index.js.map +1 -1
  169. package/dist/components/Contractor/NewHireReport/NewHireReport.js +14 -13
  170. package/dist/components/Contractor/NewHireReport/NewHireReport.js.map +1 -1
  171. package/dist/components/Contractor/PaymentMethod/BankAccountForm.js +12 -11
  172. package/dist/components/Contractor/PaymentMethod/BankAccountForm.js.map +1 -1
  173. package/dist/components/Contractor/PaymentMethod/PaymentMethod.js +3 -2
  174. package/dist/components/Contractor/PaymentMethod/PaymentMethod.js.map +1 -1
  175. package/dist/components/Contractor/PaymentMethod/PaymentTypeForm.js +4 -3
  176. package/dist/components/Contractor/PaymentMethod/PaymentTypeForm.js.map +1 -1
  177. package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.js +4 -2
  178. package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.js.map +1 -1
  179. package/dist/components/Contractor/Payments/CreatePayment/EditContractorPaymentPresentation.js +10 -10
  180. package/dist/components/Contractor/Payments/CreatePayment/FastAchSubmissionBlockerBanner.js +9 -7
  181. package/dist/components/Contractor/Payments/CreatePayment/FastAchSubmissionBlockerBanner.js.map +1 -1
  182. package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.js +9 -8
  183. package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.js.map +1 -1
  184. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.js +11 -9
  185. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.js.map +1 -1
  186. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.js +8 -6
  187. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.js.map +1 -1
  188. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.module.scss.js +14 -14
  189. package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummaryPresentation.js +4 -2
  190. package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummaryPresentation.js.map +1 -1
  191. package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.js +4 -2
  192. package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.js.map +1 -1
  193. package/dist/components/Contractor/Profile/ContractorProfileForm.js +15 -15
  194. package/dist/components/Contractor/Profile/ContractorProfileForm.module.scss.js +1 -1
  195. package/dist/components/Contractor/Profile/useContractorProfile.js +3 -2
  196. package/dist/components/Contractor/Profile/useContractorProfile.js.map +1 -1
  197. package/dist/components/Contractor/Submit/Submit.js +21 -20
  198. package/dist/components/Contractor/Submit/Submit.js.map +1 -1
  199. package/dist/components/Employee/Compensation/Actions.js +13 -12
  200. package/dist/components/Employee/Compensation/Actions.js.map +1 -1
  201. package/dist/components/Employee/Compensation/Edit.js +17 -16
  202. package/dist/components/Employee/Compensation/Edit.js.map +1 -1
  203. package/dist/components/Employee/Compensation/List.js +23 -22
  204. package/dist/components/Employee/Compensation/List.js.map +1 -1
  205. package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.d.ts +3 -1
  206. package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.js +145 -137
  207. package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.js.map +1 -1
  208. package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.d.ts +2 -1
  209. package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.js +106 -101
  210. package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.js.map +1 -1
  211. package/dist/components/Employee/Deductions/DeductionsForm/DeductionsForm.js +90 -87
  212. package/dist/components/Employee/Deductions/DeductionsForm/DeductionsForm.js.map +1 -1
  213. package/dist/components/Employee/Deductions/DeductionsForm/GarnishmentForm.d.ts +2 -1
  214. package/dist/components/Employee/Deductions/DeductionsForm/GarnishmentForm.js +110 -104
  215. package/dist/components/Employee/Deductions/DeductionsForm/GarnishmentForm.js.map +1 -1
  216. package/dist/components/Employee/Deductions/DeductionsList/DeductionsList.js +51 -45
  217. package/dist/components/Employee/Deductions/DeductionsList/DeductionsList.js.map +1 -1
  218. package/dist/components/Employee/Deductions/IncludeDeductions/IncludeDeductions.js +31 -30
  219. package/dist/components/Employee/Deductions/IncludeDeductions/IncludeDeductions.js.map +1 -1
  220. package/dist/components/Employee/Deductions/IncludeDeductions/IncludeDeductions.module.scss.js +4 -8
  221. package/dist/components/Employee/Deductions/IncludeDeductions/IncludeDeductions.module.scss.js.map +1 -1
  222. package/dist/components/Employee/DocumentSigner/DocumentList/Actions.js +3 -2
  223. package/dist/components/Employee/DocumentSigner/DocumentList/Actions.js.map +1 -1
  224. package/dist/components/Employee/DocumentSigner/DocumentList/DocumentList.js +3 -2
  225. package/dist/components/Employee/DocumentSigner/DocumentList/DocumentList.js.map +1 -1
  226. package/dist/components/Employee/DocumentSigner/DocumentList/List.js +4 -2
  227. package/dist/components/Employee/DocumentSigner/DocumentList/List.js.map +1 -1
  228. package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js +4 -3
  229. package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  230. package/dist/components/Employee/DocumentSigner/SignatureForm/SignatureForm.js +3 -2
  231. package/dist/components/Employee/DocumentSigner/SignatureForm/SignatureForm.js.map +1 -1
  232. package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js +4 -3
  233. package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js.map +1 -1
  234. package/dist/components/Employee/EmployeeList/Actions.js +7 -6
  235. package/dist/components/Employee/EmployeeList/Actions.js.map +1 -1
  236. package/dist/components/Employee/EmployeeList/EmployeeList.js +4 -3
  237. package/dist/components/Employee/EmployeeList/EmployeeList.js.map +1 -1
  238. package/dist/components/Employee/EmployeeList/Head.js +7 -5
  239. package/dist/components/Employee/EmployeeList/Head.js.map +1 -1
  240. package/dist/components/Employee/EmployeeList/List.js +3 -2
  241. package/dist/components/Employee/EmployeeList/List.js.map +1 -1
  242. package/dist/components/Employee/EmployeeList/useEmployeeList.js +4 -3
  243. package/dist/components/Employee/EmployeeList/useEmployeeList.js.map +1 -1
  244. package/dist/components/Employee/FederalTaxes/Actions.js +6 -5
  245. package/dist/components/Employee/FederalTaxes/Actions.js.map +1 -1
  246. package/dist/components/Employee/FederalTaxes/FederalForm.js +12 -11
  247. package/dist/components/Employee/FederalTaxes/FederalForm.js.map +1 -1
  248. package/dist/components/Employee/FederalTaxes/useFederalTaxes.js +4 -3
  249. package/dist/components/Employee/FederalTaxes/useFederalTaxes.js.map +1 -1
  250. package/dist/components/Employee/Landing/Landing.js +11 -10
  251. package/dist/components/Employee/Landing/Landing.js.map +1 -1
  252. package/dist/components/Employee/OnboardingSummary/OnboardingSummary.js +7 -7
  253. package/dist/components/Employee/PaymentMethod/Actions.js +6 -5
  254. package/dist/components/Employee/PaymentMethod/Actions.js.map +1 -1
  255. package/dist/components/Employee/PaymentMethod/BankAccountEdit.js +5 -4
  256. package/dist/components/Employee/PaymentMethod/BankAccountEdit.js.map +1 -1
  257. package/dist/components/Employee/PaymentMethod/BankAccountsList.js +3 -2
  258. package/dist/components/Employee/PaymentMethod/BankAccountsList.js.map +1 -1
  259. package/dist/components/Employee/PaymentMethod/PaymentTypeForm.js +7 -6
  260. package/dist/components/Employee/PaymentMethod/PaymentTypeForm.js.map +1 -1
  261. package/dist/components/Employee/PaymentMethod/Split.js +11 -10
  262. package/dist/components/Employee/PaymentMethod/Split.js.map +1 -1
  263. package/dist/components/Employee/PaymentMethod/usePaymentMethod.js +6 -5
  264. package/dist/components/Employee/PaymentMethod/usePaymentMethod.js.map +1 -1
  265. package/dist/components/Employee/Profile/Actions.js +6 -5
  266. package/dist/components/Employee/Profile/Actions.js.map +1 -1
  267. package/dist/components/Employee/Profile/AdminPersonalDetails.js +6 -5
  268. package/dist/components/Employee/Profile/AdminPersonalDetails.js.map +1 -1
  269. package/dist/components/Employee/Profile/AdminPersonalDetails.module.scss.js +1 -1
  270. package/dist/components/Employee/Profile/HomeAddress.js +1 -1
  271. package/dist/components/Employee/Profile/PersonalDetailsInputs.js +2 -2
  272. package/dist/components/Employee/Profile/useProfile.js +4 -3
  273. package/dist/components/Employee/Profile/useProfile.js.map +1 -1
  274. package/dist/components/Employee/StateTaxes/Actions.js +6 -5
  275. package/dist/components/Employee/StateTaxes/Actions.js.map +1 -1
  276. package/dist/components/Employee/StateTaxes/useStateTaxes.js +4 -3
  277. package/dist/components/Employee/StateTaxes/useStateTaxes.js.map +1 -1
  278. package/dist/components/Employee/Taxes/Actions.js +7 -6
  279. package/dist/components/Employee/Taxes/Actions.js.map +1 -1
  280. package/dist/components/Employee/Taxes/FederalForm.js +14 -13
  281. package/dist/components/Employee/Taxes/FederalForm.js.map +1 -1
  282. package/dist/components/Employee/Taxes/useTaxes.js +4 -3
  283. package/dist/components/Employee/Taxes/useTaxes.js.map +1 -1
  284. package/dist/components/Flow/Flow.js +9 -7
  285. package/dist/components/Flow/Flow.js.map +1 -1
  286. package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.js +17 -16
  287. package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.js.map +1 -1
  288. package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.module.scss.js +4 -4
  289. package/dist/components/InformationRequests/InformationRequestList/InformationRequestList.js +41 -39
  290. package/dist/components/InformationRequests/InformationRequestList/InformationRequestList.js.map +1 -1
  291. package/dist/components/InformationRequests/InformationRequests.d.ts +7 -2
  292. package/dist/components/InformationRequests/InformationRequests.js +78 -45
  293. package/dist/components/InformationRequests/InformationRequests.js.map +1 -1
  294. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsForm/ConfirmWireDetailsForm.js +10 -9
  295. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsForm/ConfirmWireDetailsForm.js.map +1 -1
  296. package/dist/components/Payroll/ConfirmWireDetails/WireInstructions/WireInstructions.module.scss.js +10 -10
  297. package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelection.d.ts +2 -0
  298. package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelection.js +33 -0
  299. package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelection.js.map +1 -0
  300. package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelectionPresentation.d.ts +7 -0
  301. package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelectionPresentation.js +39 -0
  302. package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelectionPresentation.js.map +1 -0
  303. package/dist/components/Payroll/OffCycleReasonSelection/index.d.ts +5 -0
  304. package/dist/components/Payroll/OffCycleReasonSelection/types.d.ts +15 -0
  305. package/dist/components/Payroll/OffCycleReasonSelection/types.js +14 -0
  306. package/dist/components/Payroll/OffCycleReasonSelection/types.js.map +1 -0
  307. package/dist/components/Payroll/PayPeriodDateForm/PayPeriodDateForm.d.ts +2 -0
  308. package/dist/components/Payroll/PayPeriodDateForm/PayPeriodDateForm.js +35 -0
  309. package/dist/components/Payroll/PayPeriodDateForm/PayPeriodDateForm.js.map +1 -0
  310. package/dist/components/Payroll/PayPeriodDateForm/PayPeriodDateFormPresentation.d.ts +2 -0
  311. package/dist/components/Payroll/PayPeriodDateForm/PayPeriodDateFormPresentation.js +65 -0
  312. package/dist/components/Payroll/PayPeriodDateForm/PayPeriodDateFormPresentation.js.map +1 -0
  313. package/dist/components/Payroll/PayPeriodDateForm/PayPeriodDateFormPresentation.module.scss.js +18 -0
  314. package/dist/components/Payroll/PayPeriodDateForm/PayPeriodDateFormPresentation.module.scss.js.map +1 -0
  315. package/dist/components/Payroll/PayPeriodDateForm/PayPeriodDateFormTypes.d.ts +53 -0
  316. package/dist/components/Payroll/PayPeriodDateForm/index.d.ts +3 -0
  317. package/dist/components/Payroll/PayPeriodDateForm/usePayPeriodDateValidation.d.ts +5 -0
  318. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerAlerts.js +4 -2
  319. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerAlerts.js.map +1 -1
  320. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerList.js +19 -18
  321. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerList.js.map +1 -1
  322. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js +36 -36
  323. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.module.scss.js +5 -5
  324. package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js +21 -19
  325. package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js.map +1 -1
  326. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js +17 -15
  327. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js.map +1 -1
  328. package/dist/components/Payroll/PayrollList/PayrollListPresentation.js +26 -24
  329. package/dist/components/Payroll/PayrollList/PayrollListPresentation.js.map +1 -1
  330. package/dist/components/Payroll/PayrollOverview/PayrollOverview.js +30 -29
  331. package/dist/components/Payroll/PayrollOverview/PayrollOverview.js.map +1 -1
  332. package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/FastAchSubmissionBlockerBanner.js +4 -2
  333. package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/FastAchSubmissionBlockerBanner.js.map +1 -1
  334. package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js +3 -2
  335. package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js.map +1 -1
  336. package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.module.scss.js +18 -18
  337. package/dist/components/Payroll/RecoveryCases/RecoveryCases.d.ts +4 -1
  338. package/dist/components/Payroll/RecoveryCases/RecoveryCases.js +34 -28
  339. package/dist/components/Payroll/RecoveryCases/RecoveryCases.js.map +1 -1
  340. package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.js +29 -29
  341. package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.js.map +1 -1
  342. package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.js +12 -11
  343. package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.js.map +1 -1
  344. package/dist/components/Payroll/RecoveryCases/useRecoveryCaseErrorCode.js +4 -2
  345. package/dist/components/Payroll/RecoveryCases/useRecoveryCaseErrorCode.js.map +1 -1
  346. package/dist/components/Payroll/index.d.ts +4 -0
  347. package/dist/components/Payroll/index.js +12 -8
  348. package/dist/components/Payroll/index.js.map +1 -1
  349. package/dist/components/Payroll/usePreparedPayrollData.js +3 -2
  350. package/dist/components/Payroll/usePreparedPayrollData.js.map +1 -1
  351. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js +3 -2
  352. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js.map +1 -1
  353. package/dist/contexts/ThemeProvider/theme.d.ts +8 -3
  354. package/dist/contexts/ThemeProvider/theme.js +29 -24
  355. package/dist/contexts/ThemeProvider/theme.js.map +1 -1
  356. package/dist/helpers/dateFormatting.d.ts +3 -0
  357. package/dist/helpers/dateFormatting.js.map +1 -1
  358. package/dist/i18n/I18n.js +1 -1
  359. package/dist/i18n/I18n.js.map +1 -1
  360. package/dist/i18n/en/Employee.Deductions.json.js +157 -161
  361. package/dist/i18n/en/Employee.Deductions.json.js.map +1 -1
  362. package/dist/i18n/en/InformationRequests.InformationRequestList.json.js +18 -14
  363. package/dist/i18n/en/InformationRequests.InformationRequestList.json.js.map +1 -1
  364. package/dist/i18n/en/InformationRequests.json.js +8 -0
  365. package/dist/i18n/en/InformationRequests.json.js.map +1 -0
  366. package/dist/i18n/en/Payroll.OffCycleReasonSelection.json.js +12 -0
  367. package/dist/i18n/en/Payroll.OffCycleReasonSelection.json.js.map +1 -0
  368. package/dist/i18n/en/Payroll.PayPeriodDateForm.json.js +32 -0
  369. package/dist/i18n/en/Payroll.PayPeriodDateForm.json.js.map +1 -0
  370. package/dist/shared/constants.d.ts +4 -0
  371. package/dist/shared/constants.js +10 -8
  372. package/dist/shared/constants.js.map +1 -1
  373. package/dist/style.css +1 -1
  374. package/dist/types/i18next.d.ts +52 -3
  375. package/package.json +11 -11
  376. package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.module.scss.js +0 -8
  377. package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.module.scss.js.map +0 -1
  378. package/dist/components/Employee/Deductions/DeductionsForm/DeductionsForm.module.scss.js +0 -14
  379. package/dist/components/Employee/Deductions/DeductionsForm/DeductionsForm.module.scss.js.map +0 -1
@@ -10,14 +10,15 @@ 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";
13
15
  import "react-i18next";
14
16
  import "../../../../contexts/ComponentAdapter/useComponentContext.js";
15
17
  import "react";
16
- import { companyEvents as e } from "../../../../shared/constants.js";
17
- function Q(n) {
18
+ function X(n) {
18
19
  return /* @__PURE__ */ o(R, { ...n, children: /* @__PURE__ */ o(N, { ...n, children: n.children }) });
19
20
  }
20
- function N({ companyId: n, signatoryId: i, className: s, children: m, dictionary: a }) {
21
+ function N({ companyId: n, signatoryId: e, className: s, children: m, dictionary: a }) {
21
22
  D("Company.DocumentList", a), M("Company.DocumentList");
22
23
  const { onEvent: t } = A(), {
23
24
  data: { formList: c },
@@ -28,7 +29,7 @@ function N({ companyId: n, signatoryId: i, className: s, children: m, dictionary
28
29
  data: { signatoryList: l }
29
30
  } = C({
30
31
  companyUuid: n
31
- }), r = l[0], f = !!i && r?.uuid === i;
32
+ }), r = l[0], f = !!e && r?.uuid === e;
32
33
  return /* @__PURE__ */ o("section", { className: s, children: /* @__PURE__ */ o(
33
34
  _,
34
35
  {
@@ -36,13 +37,13 @@ function N({ companyId: n, signatoryId: i, className: s, children: m, dictionary
36
37
  companyForms: p,
37
38
  documentListError: u,
38
39
  handleRequestFormToSign: (d) => {
39
- t(e.COMPANY_VIEW_FORM_TO_SIGN, d);
40
+ t(i.COMPANY_VIEW_FORM_TO_SIGN, d);
40
41
  },
41
42
  handleChangeSignatory: () => {
42
- t(e.COMPANY_FORM_EDIT_SIGNATORY, r);
43
+ t(i.COMPANY_FORM_EDIT_SIGNATORY, r);
43
44
  },
44
45
  handleContinue: () => {
45
- t(e.COMPANY_FORMS_DONE);
46
+ t(i.COMPANY_FORMS_DONE);
46
47
  },
47
48
  isSelfSignatory: f,
48
49
  signatory: r
@@ -57,6 +58,6 @@ function N({ companyId: n, signatoryId: i, className: s, children: m, dictionary
57
58
  ) });
58
59
  }
59
60
  export {
60
- Q as DocumentList
61
+ X as DocumentList
61
62
  };
62
63
  //# 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: { 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,WA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J;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: { 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,eAAAI,EAAA;AAAA,EAAc,IACpBC,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;"}
@@ -7,16 +7,17 @@ import "@gusto/embedded-api/models/errors/sdkvalidationerror";
7
7
  import "@tanstack/react-query";
8
8
  import "../../../Base/useBase.js";
9
9
  import "../../../../shared/constants.js";
10
+ import "classnames";
10
11
  import "../../../../contexts/ComponentAdapter/useComponentContext.js";
11
12
  import "../../../../contexts/LoadingIndicatorProvider/useLoadingIndicator.js";
12
13
  import "dompurify";
13
14
  import "../../../../contexts/LocaleProvider/useLocale.js";
14
15
  import { createCompoundContext as t } from "../../../Base/createCompoundContext.js";
15
- const [a, d] = t(
16
+ const [d, f] = t(
16
17
  "CompanyDocumentListContext"
17
18
  );
18
19
  export {
19
- d as DocumentListProvider,
20
- a as useDocumentList
20
+ f as DocumentListProvider,
21
+ d as useDocumentList
21
22
  };
22
23
  //# 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,11 +12,12 @@ 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
+ import { companyEvents as t } from "../../../../shared/constants.js";
15
17
  import "react-i18next";
16
18
  import "../../../../contexts/ComponentAdapter/useComponentContext.js";
17
19
  import "react";
18
- import { companyEvents as t } from "../../../../shared/constants.js";
19
- function Z(r) {
20
+ function oo(r) {
20
21
  return /* @__PURE__ */ o(x, { ...r, children: /* @__PURE__ */ o(R, { ...r, children: r.children }) });
21
22
  }
22
23
  function R({ formId: r, children: m, dictionary: i }) {
@@ -65,6 +66,6 @@ function R({ formId: r, children: m, dictionary: i }) {
65
66
  }
66
67
  export {
67
68
  R as Root,
68
- Z as SignatureForm
69
+ oo as SignatureForm
69
70
  };
70
71
  //# 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,EAAcC,GAA2B;AACvD,SACE,gBAAA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AArB,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,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,EAA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AA,EAAA,CACX,GAEJ,EAAA,CACF;AAAA,IAAA;AAAA,EAAA;AAGN;"}
@@ -7,16 +7,17 @@ import "@gusto/embedded-api/models/errors/sdkvalidationerror";
7
7
  import "@tanstack/react-query";
8
8
  import "../../../Base/useBase.js";
9
9
  import "../../../../shared/constants.js";
10
+ import "classnames";
10
11
  import "../../../../contexts/ComponentAdapter/useComponentContext.js";
11
12
  import "../../../../contexts/LoadingIndicatorProvider/useLoadingIndicator.js";
12
13
  import "dompurify";
13
14
  import "../../../../contexts/LocaleProvider/useLocale.js";
14
15
  import { createCompoundContext as o } from "../../../Base/createCompoundContext.js";
15
- const [c, d] = o(
16
+ const [d, s] = o(
16
17
  "CompanySignatureFormContext"
17
18
  );
18
19
  export {
19
- d as SignatureFormProvider,
20
- c as useSignatureForm
20
+ s as SignatureFormProvider,
21
+ d as useSignatureForm
21
22
  };
22
23
  //# 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;"}
@@ -2,14 +2,15 @@ import { jsx as o } from "react/jsx-runtime";
2
2
  import { useTranslation as e } from "react-i18next";
3
3
  import { useFederalTaxes as i } from "./useFederalTaxes.js";
4
4
  import "../../../shared/constants.js";
5
- import { ActionsLayout as s } from "../../Common/ActionsLayout/ActionsLayout.js";
6
- import { useComponentContext as m } from "../../../contexts/ComponentAdapter/useComponentContext.js";
5
+ import "classnames";
6
+ import { ActionsLayout as m } from "../../Common/ActionsLayout/ActionsLayout.js";
7
+ import { useComponentContext as s } from "../../../contexts/ComponentAdapter/useComponentContext.js";
7
8
  import "react";
8
- const x = () => {
9
- const { t } = e("Company.FederalTaxes"), { isPending: n } = i(), r = m();
10
- return /* @__PURE__ */ o(s, { children: /* @__PURE__ */ o(r.Button, { type: "submit", isLoading: n, children: t("continueCta") }) });
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") }) });
11
12
  };
12
13
  export {
13
- x as Actions
14
+ C as Actions
14
15
  };
15
16
  //# 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,11 +12,12 @@ 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
+ import { companyEvents as l } from "../../../shared/constants.js";
15
17
  import "react-i18next";
16
18
  import "../../../contexts/ComponentAdapter/useComponentContext.js";
17
19
  import "react";
18
- import { companyEvents as l } from "../../../shared/constants.js";
19
- function re(o) {
20
+ function oe(o) {
20
21
  return /* @__PURE__ */ e(B, { ...o, children: /* @__PURE__ */ e(q, { ...o, children: o.children }) });
21
22
  }
22
23
  function q({ companyId: o, children: t, className: s, defaultValues: i, dictionary: d }) {
@@ -65,6 +66,6 @@ function q({ companyId: o, children: t, className: s, defaultValues: i, dictiona
65
66
  ) });
66
67
  }
67
68
  export {
68
- re as FederalTaxes
69
+ oe as FederalTaxes
69
70
  };
70
71
  //# sourceMappingURL=FederalTaxes.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"FederalTaxes.js","sources":["../../../../src/components/Company/FederalTaxes/FederalTaxes.tsx"],"sourcesContent":["import { useFederalTaxDetailsUpdateMutation } from '@gusto/embedded-api/react-query/federalTaxDetailsUpdate'\nimport { useFederalTaxDetailsGetSuspense } from '@gusto/embedded-api/react-query/federalTaxDetailsGet'\nimport type {\n FilingForm,\n TaxPayerType,\n} from '@gusto/embedded-api/models/operations/putv1companiescompanyidfederaltaxdetails'\nimport { FormProvider, useForm } from 'react-hook-form'\nimport { zodResolver } from '@hookform/resolvers/zod'\nimport {\n FederalTaxesProvider,\n type FederalTaxFormInputs,\n FederalTaxFormSchema,\n type FederalTaxesDefaultValues,\n} from './useFederalTaxes'\nimport { Form as HtmlForm } from '@/components/Common/Form'\nimport { Form } from '@/components/Company/FederalTaxes/Form'\nimport { Actions } from '@/components/Company/FederalTaxes/Actions'\nimport { Head } from '@/components/Company/FederalTaxes/Head'\nimport { useI18n } from '@/i18n'\nimport type { BaseComponentInterface, CommonComponentInterface } from '@/components/Base/Base'\nimport { BaseComponent } from '@/components/Base/Base'\nimport { useBase } from '@/components/Base/useBase'\nimport { Flex } from '@/components/Common'\nimport { companyEvents } from '@/shared/constants'\nimport { useComponentDictionary } from '@/i18n'\n\ninterface FederalTaxesProps extends CommonComponentInterface<'Company.FederalTaxes'> {\n companyId: string\n defaultValues?: FederalTaxesDefaultValues\n}\n\nexport function FederalTaxes(props: FederalTaxesProps & BaseComponentInterface) {\n return (\n <BaseComponent {...props}>\n <Root {...props}>{props.children}</Root>\n </BaseComponent>\n )\n}\n\nfunction Root({ companyId, children, className, defaultValues, dictionary }: FederalTaxesProps) {\n useI18n('Company.FederalTaxes')\n useComponentDictionary('Company.FederalTaxes', dictionary)\n const { onEvent, baseSubmitHandler } = useBase()\n\n const { data } = useFederalTaxDetailsGetSuspense({ companyId })\n const federalTaxDetails = data.federalTaxDetails!\n\n const { mutateAsync: updateFederalTaxDetails, isPending } = useFederalTaxDetailsUpdateMutation()\n\n const formMethods = useForm<FederalTaxFormInputs>({\n resolver: zodResolver(FederalTaxFormSchema),\n defaultValues: {\n federalEin: federalTaxDetails.hasEin ? undefined : '',\n taxPayerType: federalTaxDetails.taxPayerType\n ? (federalTaxDetails.taxPayerType as TaxPayerType)\n : defaultValues?.taxPayerType,\n filingForm: federalTaxDetails.filingForm\n ? (federalTaxDetails.filingForm as FilingForm)\n : defaultValues?.filingForm,\n legalName: federalTaxDetails.legalName ?? defaultValues?.legalName,\n },\n })\n\n const handleSubmit = async (data: FederalTaxFormInputs) => {\n await baseSubmitHandler(data, async payload => {\n const updateFederalTaxDetailsResponse = await updateFederalTaxDetails({\n request: {\n companyId: companyId,\n requestBody: {\n ein: payload.federalEin,\n taxPayerType: payload.taxPayerType as TaxPayerType | undefined,\n filingForm: payload.filingForm as FilingForm | undefined,\n legalName: payload.legalName,\n version: federalTaxDetails.version as string,\n },\n },\n })\n\n onEvent(\n companyEvents.COMPANY_FEDERAL_TAXES_UPDATED,\n updateFederalTaxDetailsResponse.federalTaxDetails,\n )\n onEvent(companyEvents.COMPANY_FEDERAL_TAXES_DONE)\n })\n }\n\n return (\n <section className={className}>\n <FederalTaxesProvider\n value={{\n isPending,\n federalTaxDetails,\n }}\n >\n <FormProvider {...formMethods}>\n <HtmlForm onSubmit={formMethods.handleSubmit(handleSubmit)}>\n <Flex flexDirection=\"column\" gap={32}>\n {children ? (\n children\n ) : (\n <>\n <Head />\n <Form />\n <Actions />\n </>\n )}\n </Flex>\n </HtmlForm>\n </FormProvider>\n </FederalTaxesProvider>\n </section>\n )\n}\n"],"names":["FederalTaxes","props","jsx","BaseComponent","Root","companyId","children","className","defaultValues","dictionary","useI18n","useComponentDictionary","onEvent","baseSubmitHandler","useBase","data","useFederalTaxDetailsGetSuspense","federalTaxDetails","updateFederalTaxDetails","isPending","useFederalTaxDetailsUpdateMutation","formMethods","useForm","zodResolver","FederalTaxFormSchema","handleSubmit","payload","updateFederalTaxDetailsResponse","companyEvents","FederalTaxesProvider","FormProvider","HtmlForm","Flex","jsxs","Fragment","Head","Form","Actions"],"mappings":";;;;;;;;;;;;;;;;;;AA+BO,SAASA,GAAaC,GAAmD;AAC9E,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,UAAAC,GAAU,WAAAC,GAAW,eAAAC,GAAe,YAAAC,KAAiC;AAC9F,EAAAC,EAAQ,sBAAsB,GAC9BC,EAAuB,wBAAwBF,CAAU;AACzD,QAAM,EAAE,SAAAG,GAAS,mBAAAC,EAAA,IAAsBC,EAAA,GAEjC,EAAE,MAAAC,EAAA,IAASC,EAAgC,EAAE,WAAAX,GAAW,GACxDY,IAAoBF,EAAK,mBAEzB,EAAE,aAAaG,GAAyB,WAAAC,EAAA,IAAc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GACX,EAAA,CAEJ,GACF,EAAA,CACF;AAAA,IAAA;AAAA,EAAA,GAEJ;AAEJ;"}
1
+ {"version":3,"file":"FederalTaxes.js","sources":["../../../../src/components/Company/FederalTaxes/FederalTaxes.tsx"],"sourcesContent":["import { useFederalTaxDetailsUpdateMutation } from '@gusto/embedded-api/react-query/federalTaxDetailsUpdate'\nimport { useFederalTaxDetailsGetSuspense } from '@gusto/embedded-api/react-query/federalTaxDetailsGet'\nimport type {\n FilingForm,\n TaxPayerType,\n} from '@gusto/embedded-api/models/operations/putv1companiescompanyidfederaltaxdetails'\nimport { FormProvider, useForm } from 'react-hook-form'\nimport { zodResolver } from '@hookform/resolvers/zod'\nimport {\n FederalTaxesProvider,\n type FederalTaxFormInputs,\n FederalTaxFormSchema,\n type FederalTaxesDefaultValues,\n} from './useFederalTaxes'\nimport { Form as HtmlForm } from '@/components/Common/Form'\nimport { Form } from '@/components/Company/FederalTaxes/Form'\nimport { Actions } from '@/components/Company/FederalTaxes/Actions'\nimport { Head } from '@/components/Company/FederalTaxes/Head'\nimport { useI18n } from '@/i18n'\nimport type { BaseComponentInterface, CommonComponentInterface } from '@/components/Base/Base'\nimport { BaseComponent } from '@/components/Base/Base'\nimport { useBase } from '@/components/Base/useBase'\nimport { Flex } from '@/components/Common'\nimport { companyEvents } from '@/shared/constants'\nimport { useComponentDictionary } from '@/i18n'\n\ninterface FederalTaxesProps extends CommonComponentInterface<'Company.FederalTaxes'> {\n companyId: string\n defaultValues?: FederalTaxesDefaultValues\n}\n\nexport function FederalTaxes(props: FederalTaxesProps & BaseComponentInterface) {\n return (\n <BaseComponent {...props}>\n <Root {...props}>{props.children}</Root>\n </BaseComponent>\n )\n}\n\nfunction Root({ companyId, children, className, defaultValues, dictionary }: FederalTaxesProps) {\n useI18n('Company.FederalTaxes')\n useComponentDictionary('Company.FederalTaxes', dictionary)\n const { onEvent, baseSubmitHandler } = useBase()\n\n const { data } = useFederalTaxDetailsGetSuspense({ companyId })\n const federalTaxDetails = data.federalTaxDetails!\n\n const { mutateAsync: updateFederalTaxDetails, isPending } = useFederalTaxDetailsUpdateMutation()\n\n const formMethods = useForm<FederalTaxFormInputs>({\n resolver: zodResolver(FederalTaxFormSchema),\n defaultValues: {\n federalEin: federalTaxDetails.hasEin ? undefined : '',\n taxPayerType: federalTaxDetails.taxPayerType\n ? (federalTaxDetails.taxPayerType as TaxPayerType)\n : defaultValues?.taxPayerType,\n filingForm: federalTaxDetails.filingForm\n ? (federalTaxDetails.filingForm as FilingForm)\n : defaultValues?.filingForm,\n legalName: federalTaxDetails.legalName ?? defaultValues?.legalName,\n },\n })\n\n const handleSubmit = async (data: FederalTaxFormInputs) => {\n await baseSubmitHandler(data, async payload => {\n const updateFederalTaxDetailsResponse = await updateFederalTaxDetails({\n request: {\n companyId: companyId,\n requestBody: {\n ein: payload.federalEin,\n taxPayerType: payload.taxPayerType as TaxPayerType | undefined,\n filingForm: payload.filingForm as FilingForm | undefined,\n legalName: payload.legalName,\n version: federalTaxDetails.version as string,\n },\n },\n })\n\n onEvent(\n companyEvents.COMPANY_FEDERAL_TAXES_UPDATED,\n updateFederalTaxDetailsResponse.federalTaxDetails,\n )\n onEvent(companyEvents.COMPANY_FEDERAL_TAXES_DONE)\n })\n }\n\n return (\n <section className={className}>\n <FederalTaxesProvider\n value={{\n isPending,\n federalTaxDetails,\n }}\n >\n <FormProvider {...formMethods}>\n <HtmlForm onSubmit={formMethods.handleSubmit(handleSubmit)}>\n <Flex flexDirection=\"column\" gap={32}>\n {children ? (\n children\n ) : (\n <>\n <Head />\n <Form />\n <Actions />\n </>\n )}\n </Flex>\n </HtmlForm>\n </FormProvider>\n </FederalTaxesProvider>\n </section>\n )\n}\n"],"names":["FederalTaxes","props","jsx","BaseComponent","Root","companyId","children","className","defaultValues","dictionary","useI18n","useComponentDictionary","onEvent","baseSubmitHandler","useBase","data","useFederalTaxDetailsGetSuspense","federalTaxDetails","updateFederalTaxDetails","isPending","useFederalTaxDetailsUpdateMutation","formMethods","useForm","zodResolver","FederalTaxFormSchema","handleSubmit","payload","updateFederalTaxDetailsResponse","companyEvents","FederalTaxesProvider","FormProvider","HtmlForm","Flex","jsxs","Fragment","Head","Form","Actions"],"mappings":";;;;;;;;;;;;;;;;;;;AA+BO,SAASA,GAAaC,GAAmD;AAC9E,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,UAAAC,GAAU,WAAAC,GAAW,eAAAC,GAAe,YAAAC,KAAiC;AAC9F,EAAAC,EAAQ,sBAAsB,GAC9BC,EAAuB,wBAAwBF,CAAU;AACzD,QAAM,EAAE,SAAAG,GAAS,mBAAAC,EAAA,IAAsBC,EAAA,GAEjC,EAAE,MAAAC,EAAA,IAASC,EAAgC,EAAE,WAAAX,GAAW,GACxDY,IAAoBF,EAAK,mBAEzB,EAAE,aAAaG,GAAyB,WAAAC,EAAA,IAAcC,EAAA,GAEtDC,IAAcC,EAA8B;AAAA,IAChD,UAAUC,EAAYC,CAAoB;AAAA,IAC1C,eAAe;AAAA,MACb,YAAYP,EAAkB,SAAS,SAAY;AAAA,MACnD,cAAcA,EAAkB,eAC3BA,EAAkB,eACnBT,GAAe;AAAA,MACnB,YAAYS,EAAkB,aACzBA,EAAkB,aACnBT,GAAe;AAAA,MACnB,WAAWS,EAAkB,aAAaT,GAAe;AAAA,IAAA;AAAA,EAC3D,CACD,GAEKiB,IAAe,OAAOV,MAA+B;AACzD,UAAMF,EAAkBE,GAAM,OAAMW,MAAW;AAC7C,YAAMC,IAAkC,MAAMT,EAAwB;AAAA,QACpE,SAAS;AAAA,UACP,WAAAb;AAAA,UACA,aAAa;AAAA,YACX,KAAKqB,EAAQ;AAAA,YACb,cAAcA,EAAQ;AAAA,YACtB,YAAYA,EAAQ;AAAA,YACpB,WAAWA,EAAQ;AAAA,YACnB,SAAST,EAAkB;AAAA,UAAA;AAAA,QAC7B;AAAA,MACF,CACD;AAED,MAAAL;AAAA,QACEgB,EAAc;AAAA,QACdD,EAAgC;AAAA,MAAA,GAElCf,EAAQgB,EAAc,0BAA0B;AAAA,IAClD,CAAC;AAAA,EACH;AAEA,SACE,gBAAA1B,EAAC,aAAQ,WAAAK,GACP,UAAA,gBAAAL;AAAA,IAAC2B;AAAA,IAAA;AAAA,MACC,OAAO;AAAA,QACL,WAAAV;AAAA,QACA,mBAAAF;AAAA,MAAA;AAAA,MAGF,4BAACa,GAAA,EAAc,GAAGT,GAChB,UAAA,gBAAAnB,EAAC6B,GAAA,EAAS,UAAUV,EAAY,aAAaI,CAAY,GACvD,UAAA,gBAAAvB,EAAC8B,KAAK,eAAc,UAAS,KAAK,IAC/B,UAAA1B,KAGC,gBAAA2B,EAAAC,GAAA,EACE,UAAA;AAAA,QAAA,gBAAAhC,EAACiC,GAAA,EAAK;AAAA,0BACLC,GAAA,EAAK;AAAA,0BACLC,GAAA,CAAA,CAAQ;AAAA,MAAA,GACX,EAAA,CAEJ,GACF,EAAA,CACF;AAAA,IAAA;AAAA,EAAA,GAEJ;AAEJ;"}
@@ -4,11 +4,13 @@ import { useTranslation as d, Trans as t } from "react-i18next";
4
4
  import { TaxPayerType as y, FilingForm as u } from "@gusto/embedded-api/models/operations/putv1companiescompanyidfederaltaxdetails";
5
5
  import { useFederalTaxes as b } from "./useFederalTaxes.js";
6
6
  import { Flex as g } from "../../Common/Flex/Flex.js";
7
+ import "classnames";
8
+ import "../../../shared/constants.js";
9
+ import { TextInputField as a } from "../../Common/Fields/TextInputField/TextInputField.js";
7
10
  import { useComponentContext as x } from "../../../contexts/ComponentAdapter/useComponentContext.js";
8
11
  import { usePlaceholderEin as F, normalizeEin as T } from "../../../helpers/federalEin.js";
9
- import { TextInputField as a } from "../../Common/Fields/TextInputField/TextInputField.js";
10
12
  import { SelectField as l } from "../../Common/Fields/SelectField/SelectField.js";
11
- function N() {
13
+ function R() {
12
14
  const { t: e } = d("Company.FederalTaxes"), { federalTaxDetails: s } = b(), i = x(), m = F(s?.hasEin), p = n(
13
15
  () => Object.values(y).map((o) => ({
14
16
  value: o,
@@ -99,6 +101,6 @@ function N() {
99
101
  ] });
100
102
  }
101
103
  export {
102
- N as Form
104
+ R as Form
103
105
  };
104
106
  //# sourceMappingURL=Form.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Form.js","sources":["../../../../src/components/Company/FederalTaxes/Form.tsx"],"sourcesContent":["import { useMemo } from 'react'\nimport { useTranslation, Trans } from 'react-i18next'\nimport {\n TaxPayerType,\n FilingForm,\n} from '@gusto/embedded-api/models/operations/putv1companiescompanyidfederaltaxdetails'\nimport { useFederalTaxes } from './useFederalTaxes'\nimport { TextInputField, SelectField, Flex } from '@/components/Common'\nimport { usePlaceholderEin, normalizeEin } from '@/helpers/federalEin'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\n\nexport function Form() {\n const { t } = useTranslation('Company.FederalTaxes')\n const { federalTaxDetails } = useFederalTaxes()\n const Components = useComponentContext()\n\n const placeholderEin = usePlaceholderEin(federalTaxDetails?.hasEin)\n\n const taxPayerTypeOptions = useMemo(\n () =>\n Object.values(TaxPayerType).map(value => ({\n value: value,\n label: t(`taxPayerType.${value}`),\n })),\n [t],\n )\n\n const filingFormOptions = useMemo(\n () =>\n Object.values(FilingForm).map(value => ({\n value: value,\n label: t(`filingForm.${value}`),\n })),\n [t],\n )\n\n return (\n <Flex flexDirection=\"column\" gap={28}>\n <TextInputField\n name=\"federalEin\"\n label={t('federalEinLabel')}\n description={\n <Trans\n t={t}\n i18nKey=\"federalEinDescription\"\n components={{\n applyLink: (\n <Components.Link\n href=\"https://www.irs.gov/businesses/employer-identification-number\"\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n />\n ),\n }}\n />\n }\n isRequired\n transform={normalizeEin}\n placeholder={placeholderEin}\n />\n <SelectField\n name=\"taxPayerType\"\n label={t('taxpayerTypeLabel')}\n description={t('taxpayerTypeDescription')}\n options={taxPayerTypeOptions}\n isRequired\n />\n <SelectField\n name=\"filingForm\"\n label={t('federalFilingFormLabel')}\n description={\n <Trans\n t={t}\n i18nKey=\"federalFilingFormDescription\"\n components={{\n irsLink: (\n <Components.Link\n href=\"https://www.irs.gov/newsroom/employers-should-you-file-form-944-or-941\"\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n />\n ),\n }}\n />\n }\n options={filingFormOptions}\n isRequired\n />\n <TextInputField\n name=\"legalName\"\n label={t('legalEntityNameLabel')}\n description={t('legalEntityNameDescription')}\n isRequired\n errorMessage={t('legalEntityNameError')}\n />\n </Flex>\n )\n}\n"],"names":["Form","t","useTranslation","federalTaxDetails","useFederalTaxes","Components","useComponentContext","placeholderEin","usePlaceholderEin","taxPayerTypeOptions","useMemo","TaxPayerType","value","filingFormOptions","FilingForm","jsxs","Flex","jsx","TextInputField","Trans","normalizeEin","SelectField"],"mappings":";;;;;;;;;;AAWO,SAASA,IAAO;AACrB,QAAM,EAAE,GAAAC,EAAA,IAAMC,EAAe,sBAAsB,GAC7C,EAAE,mBAAAC,EAAA,IAAsBC,EAAA,GACxBC,IAAaC,EAAA,GAEbC,IAAiBC,EAAkBL,GAAmB,MAAM,GAE5DM,IAAsBC;AAAA,IAC1B,MACE,OAAO,OAAOC,CAAY,EAAE,IAAI,CAAAC,OAAU;AAAA,MACxC,OAAAA;AAAA,MACA,OAAOX,EAAE,gBAAgBW,CAAK,EAAE;AAAA,IAAA,EAChC;AAAA,IACJ,CAACX,CAAC;AAAA,EAAA,GAGEY,IAAoBH;AAAA,IACxB,MACE,OAAO,OAAOI,CAAU,EAAE,IAAI,CAAAF,OAAU;AAAA,MACtC,OAAAA;AAAA,MACA,OAAOX,EAAE,cAAcW,CAAK,EAAE;AAAA,IAAA,EAC9B;AAAA,IACJ,CAACX,CAAC;AAAA,EAAA;AAGJ,SACE,gBAAAc,EAACC,GAAA,EAAK,eAAc,UAAS,KAAK,IACh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C,YAAU;AAAA,QACV,cAAcA,EAAE,sBAAsB;AAAA,MAAA;AAAA,IAAA;AAAA,EACxC,GACF;AAEJ;"}
1
+ {"version":3,"file":"Form.js","sources":["../../../../src/components/Company/FederalTaxes/Form.tsx"],"sourcesContent":["import { useMemo } from 'react'\nimport { useTranslation, Trans } from 'react-i18next'\nimport {\n TaxPayerType,\n FilingForm,\n} from '@gusto/embedded-api/models/operations/putv1companiescompanyidfederaltaxdetails'\nimport { useFederalTaxes } from './useFederalTaxes'\nimport { TextInputField, SelectField, Flex } from '@/components/Common'\nimport { usePlaceholderEin, normalizeEin } from '@/helpers/federalEin'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\n\nexport function Form() {\n const { t } = useTranslation('Company.FederalTaxes')\n const { federalTaxDetails } = useFederalTaxes()\n const Components = useComponentContext()\n\n const placeholderEin = usePlaceholderEin(federalTaxDetails?.hasEin)\n\n const taxPayerTypeOptions = useMemo(\n () =>\n Object.values(TaxPayerType).map(value => ({\n value: value,\n label: t(`taxPayerType.${value}`),\n })),\n [t],\n )\n\n const filingFormOptions = useMemo(\n () =>\n Object.values(FilingForm).map(value => ({\n value: value,\n label: t(`filingForm.${value}`),\n })),\n [t],\n )\n\n return (\n <Flex flexDirection=\"column\" gap={28}>\n <TextInputField\n name=\"federalEin\"\n label={t('federalEinLabel')}\n description={\n <Trans\n t={t}\n i18nKey=\"federalEinDescription\"\n components={{\n applyLink: (\n <Components.Link\n href=\"https://www.irs.gov/businesses/employer-identification-number\"\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n />\n ),\n }}\n />\n }\n isRequired\n transform={normalizeEin}\n placeholder={placeholderEin}\n />\n <SelectField\n name=\"taxPayerType\"\n label={t('taxpayerTypeLabel')}\n description={t('taxpayerTypeDescription')}\n options={taxPayerTypeOptions}\n isRequired\n />\n <SelectField\n name=\"filingForm\"\n label={t('federalFilingFormLabel')}\n description={\n <Trans\n t={t}\n i18nKey=\"federalFilingFormDescription\"\n components={{\n irsLink: (\n <Components.Link\n href=\"https://www.irs.gov/newsroom/employers-should-you-file-form-944-or-941\"\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n />\n ),\n }}\n />\n }\n options={filingFormOptions}\n isRequired\n />\n <TextInputField\n name=\"legalName\"\n label={t('legalEntityNameLabel')}\n description={t('legalEntityNameDescription')}\n isRequired\n errorMessage={t('legalEntityNameError')}\n />\n </Flex>\n )\n}\n"],"names":["Form","t","useTranslation","federalTaxDetails","useFederalTaxes","Components","useComponentContext","placeholderEin","usePlaceholderEin","taxPayerTypeOptions","useMemo","TaxPayerType","value","filingFormOptions","FilingForm","jsxs","Flex","jsx","TextInputField","Trans","normalizeEin","SelectField"],"mappings":";;;;;;;;;;;;AAWO,SAASA,IAAO;AACrB,QAAM,EAAE,GAAAC,EAAA,IAAMC,EAAe,sBAAsB,GAC7C,EAAE,mBAAAC,EAAA,IAAsBC,EAAA,GACxBC,IAAaC,EAAA,GAEbC,IAAiBC,EAAkBL,GAAmB,MAAM,GAE5DM,IAAsBC;AAAA,IAC1B,MACE,OAAO,OAAOC,CAAY,EAAE,IAAI,CAAAC,OAAU;AAAA,MACxC,OAAAA;AAAA,MACA,OAAOX,EAAE,gBAAgBW,CAAK,EAAE;AAAA,IAAA,EAChC;AAAA,IACJ,CAACX,CAAC;AAAA,EAAA,GAGEY,IAAoBH;AAAA,IACxB,MACE,OAAO,OAAOI,CAAU,EAAE,IAAI,CAAAF,OAAU;AAAA,MACtC,OAAAA;AAAA,MACA,OAAOX,EAAE,cAAcW,CAAK,EAAE;AAAA,IAAA,EAC9B;AAAA,IACJ,CAACX,CAAC;AAAA,EAAA;AAGJ,SACE,gBAAAc,EAACC,GAAA,EAAK,eAAc,UAAS,KAAK,IAChC,UAAA;AAAA,IAAA,gBAAAC;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,MAAK;AAAA,QACL,OAAOjB,EAAE,iBAAiB;AAAA,QAC1B,aACE,gBAAAgB;AAAA,UAACE;AAAA,UAAA;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@tanstack/react-query";
10
10
  import "../../Base/useBase.js";
11
11
  import "../../../shared/constants.js";
12
+ import "classnames";
12
13
  import "../../../contexts/ComponentAdapter/useComponentContext.js";
13
14
  import "../../../contexts/LoadingIndicatorProvider/useLoadingIndicator.js";
14
15
  import "dompurify";
15
16
  import "../../../contexts/LocaleProvider/useLocale.js";
16
17
  import { createCompoundContext as t } from "../../Base/createCompoundContext.js";
17
- const C = o.object({
18
+ const b = o.object({
18
19
  federalEin: o.string().optional(),
19
20
  taxPayerType: o.enum(Object.values(e)).optional(),
20
21
  filingForm: o.enum(Object.values(r)).optional(),
21
22
  legalName: o.string().min(1)
22
- }), [b, j] = t(
23
+ }), [j, v] = t(
23
24
  "CompanyFederalTaxesContext"
24
25
  );
25
26
  export {
26
- C as FederalTaxFormSchema,
27
- j as FederalTaxesProvider,
28
- b as useFederalTaxes
27
+ b as FederalTaxFormSchema,
28
+ v as FederalTaxesProvider,
29
+ j as useFederalTaxes
29
30
  };
30
31
  //# sourceMappingURL=useFederalTaxes.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useFederalTaxes.js","sources":["../../../../src/components/Company/FederalTaxes/useFederalTaxes.ts"],"sourcesContent":["import { z } from 'zod'\nimport type { FederalTaxDetails } from '@gusto/embedded-api/models/components/federaltaxdetails'\nimport {\n FilingForm,\n TaxPayerType,\n} from '@gusto/embedded-api/models/operations/putv1companiescompanyidfederaltaxdetails'\nimport { createCompoundContext } from '@/components/Base'\nimport type { RequireAtLeastOne } from '@/types/Helpers'\n\nexport const FederalTaxFormSchema = z.object({\n federalEin: z.string().optional(),\n taxPayerType: z.enum(Object.values(TaxPayerType) as [string, ...string[]]).optional(),\n filingForm: z.enum(Object.values(FilingForm) as [string, ...string[]]).optional(),\n legalName: z.string().min(1),\n})\n\nexport type FederalTaxFormInputs = z.input<typeof FederalTaxFormSchema>\n\nexport type FederalTaxesDefaultValues = RequireAtLeastOne<{\n taxPayerType?: FederalTaxFormInputs['taxPayerType']\n filingForm?: FederalTaxFormInputs['filingForm']\n legalName?: FederalTaxFormInputs['legalName']\n}>\n\ntype FederalTaxesContextType = {\n isPending: boolean\n federalTaxDetails?: FederalTaxDetails\n}\n\nconst [useFederalTaxes, FederalTaxesProvider] = createCompoundContext<FederalTaxesContextType>(\n 'CompanyFederalTaxesContext',\n)\n\nexport { useFederalTaxes, FederalTaxesProvider }\n"],"names":["FederalTaxFormSchema","z","TaxPayerType","FilingForm","useFederalTaxes","FederalTaxesProvider","createCompoundContext"],"mappings":";;;;;;;;;;;;;;;;AASO,MAAMA,IAAuBC,EAAE,OAAO;AAAA,EAC3C,YAAYA,EAAE,OAAA,EAAS,SAAA;AAAA,EACvB,cAAcA,EAAE,KAAK,OAAO,OAAOC,CAAY,CAA0B,EAAE,SAAA;AAAA,EAC3E,YAAYD,EAAE,KAAK,OAAO,OAAOE,CAAU,CAA0B,EAAE,SAAA;AAAA,EACvE,WAAWF,EAAE,OAAA,EAAS,IAAI,CAAC;AAC7B,CAAC,GAeK,CAACG,GAAiBC,CAAoB,IAAIC;AAAA,EAC9C;AACF;"}
1
+ {"version":3,"file":"useFederalTaxes.js","sources":["../../../../src/components/Company/FederalTaxes/useFederalTaxes.ts"],"sourcesContent":["import { z } from 'zod'\nimport type { FederalTaxDetails } from '@gusto/embedded-api/models/components/federaltaxdetails'\nimport {\n FilingForm,\n TaxPayerType,\n} from '@gusto/embedded-api/models/operations/putv1companiescompanyidfederaltaxdetails'\nimport { createCompoundContext } from '@/components/Base'\nimport type { RequireAtLeastOne } from '@/types/Helpers'\n\nexport const FederalTaxFormSchema = z.object({\n federalEin: z.string().optional(),\n taxPayerType: z.enum(Object.values(TaxPayerType) as [string, ...string[]]).optional(),\n filingForm: z.enum(Object.values(FilingForm) as [string, ...string[]]).optional(),\n legalName: z.string().min(1),\n})\n\nexport type FederalTaxFormInputs = z.input<typeof FederalTaxFormSchema>\n\nexport type FederalTaxesDefaultValues = RequireAtLeastOne<{\n taxPayerType?: FederalTaxFormInputs['taxPayerType']\n filingForm?: FederalTaxFormInputs['filingForm']\n legalName?: FederalTaxFormInputs['legalName']\n}>\n\ntype FederalTaxesContextType = {\n isPending: boolean\n federalTaxDetails?: FederalTaxDetails\n}\n\nconst [useFederalTaxes, FederalTaxesProvider] = createCompoundContext<FederalTaxesContextType>(\n 'CompanyFederalTaxesContext',\n)\n\nexport { useFederalTaxes, FederalTaxesProvider }\n"],"names":["FederalTaxFormSchema","z","TaxPayerType","FilingForm","useFederalTaxes","FederalTaxesProvider","createCompoundContext"],"mappings":";;;;;;;;;;;;;;;;;AASO,MAAMA,IAAuBC,EAAE,OAAO;AAAA,EAC3C,YAAYA,EAAE,OAAA,EAAS,SAAA;AAAA,EACvB,cAAcA,EAAE,KAAK,OAAO,OAAOC,CAAY,CAA0B,EAAE,SAAA;AAAA,EAC3E,YAAYD,EAAE,KAAK,OAAO,OAAOE,CAAU,CAA0B,EAAE,SAAA;AAAA,EACvE,WAAWF,EAAE,OAAA,EAAS,IAAI,CAAC;AAC7B,CAAC,GAeK,CAACG,GAAiBC,CAAoB,IAAIC;AAAA,EAC9C;AACF;"}
@@ -1,15 +1,16 @@
1
1
  import { jsx as t } from "react/jsx-runtime";
2
2
  import { useTranslation as i } from "react-i18next";
3
- import { useIndustryApiState as s } from "./Context.js";
3
+ import { useIndustryApiState as m } from "./Context.js";
4
4
  import "../../../shared/constants.js";
5
- import { ActionsLayout as m } from "../../Common/ActionsLayout/ActionsLayout.js";
6
- import { useComponentContext as e } from "../../../contexts/ComponentAdapter/useComponentContext.js";
5
+ import "classnames";
6
+ import { ActionsLayout as s } from "../../Common/ActionsLayout/ActionsLayout.js";
7
+ import { useComponentContext as p } from "../../../contexts/ComponentAdapter/useComponentContext.js";
7
8
  import "react";
8
- const C = () => {
9
- const { t: o } = i("Company.Industry"), { isPending: n } = s(), r = e();
10
- return /* @__PURE__ */ t(m, { children: /* @__PURE__ */ t(r.Button, { type: "submit", isLoading: n, children: o("submitCta") }) });
9
+ const l = () => {
10
+ const { t: o } = i("Company.Industry"), { isPending: n } = m(), r = p();
11
+ return /* @__PURE__ */ t(s, { children: /* @__PURE__ */ t(r.Button, { type: "submit", isLoading: n, children: o("submitCta") }) });
11
12
  };
12
13
  export {
13
- C as Actions
14
+ l as Actions
14
15
  };
15
16
  //# sourceMappingURL=Actions.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Actions.js","sources":["../../../../src/components/Company/Industry/Actions.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport { useIndustryApiState } from './Context'\nimport { ActionsLayout } from '@/components/Common'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\n\nexport const Actions = () => {\n const { t } = useTranslation('Company.Industry')\n const { isPending } = useIndustryApiState()\n const Components = useComponentContext()\n\n return (\n <ActionsLayout>\n <Components.Button type=\"submit\" isLoading={isPending}>\n {t('submitCta')}\n </Components.Button>\n </ActionsLayout>\n )\n}\n"],"names":["Actions","t","useTranslation","isPending","useIndustryApiState","Components","useComponentContext","jsx","ActionsLayout"],"mappings":";;;;;;;AAKO,MAAMA,IAAU,MAAM;AAC3B,QAAM,EAAE,GAAAC,EAAA,IAAMC,EAAe,kBAAkB,GACzC,EAAE,WAAAC,EAAA,IAAcC,EAAA,GAChBC,IAAaC,EAAA;AAEnB,SACE,gBAAAC,EAACC,GAAA,EACC,UAAA,gBAAAD,EAACF,EAAW,QAAX,EAAkB,MAAK,UAAS,WAAWF,GACzC,UAAAF,EAAE,WAAW,GAChB,GACF;AAEJ;"}
1
+ {"version":3,"file":"Actions.js","sources":["../../../../src/components/Company/Industry/Actions.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport { useIndustryApiState } from './Context'\nimport { ActionsLayout } from '@/components/Common'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\n\nexport const Actions = () => {\n const { t } = useTranslation('Company.Industry')\n const { isPending } = useIndustryApiState()\n const Components = useComponentContext()\n\n return (\n <ActionsLayout>\n <Components.Button type=\"submit\" isLoading={isPending}>\n {t('submitCta')}\n </Components.Button>\n </ActionsLayout>\n )\n}\n"],"names":["Actions","t","useTranslation","isPending","useIndustryApiState","Components","useComponentContext","jsx","ActionsLayout"],"mappings":";;;;;;;;AAKO,MAAMA,IAAU,MAAM;AAC3B,QAAM,EAAE,GAAAC,EAAA,IAAMC,EAAe,kBAAkB,GACzC,EAAE,WAAAC,EAAA,IAAcC,EAAA,GAChBC,IAAaC,EAAA;AAEnB,SACE,gBAAAC,EAACC,GAAA,EACC,UAAA,gBAAAD,EAACF,EAAW,QAAX,EAAkB,MAAK,UAAS,WAAWF,GACzC,UAAAF,EAAE,WAAW,GAChB,GACF;AAEJ;"}
@@ -7,20 +7,21 @@ import "@gusto/embedded-api/models/errors/sdkvalidationerror";
7
7
  import "@tanstack/react-query";
8
8
  import "../../Base/useBase.js";
9
9
  import "../../../shared/constants.js";
10
+ import "classnames";
10
11
  import "../../../contexts/ComponentAdapter/useComponentContext.js";
11
12
  import "../../../contexts/LoadingIndicatorProvider/useLoadingIndicator.js";
12
13
  import "dompurify";
13
14
  import "../../../contexts/LocaleProvider/useLocale.js";
14
15
  import { createCompoundContext as t } from "../../Base/createCompoundContext.js";
15
- const [A, P] = t("IndustryItems", {
16
+ const [P, f] = t("IndustryItems", {
16
17
  items: []
17
- }), [f, v] = t("IndustryApi", {
18
+ }), [v, x] = t("IndustryApi", {
18
19
  isPending: !1
19
20
  });
20
21
  export {
21
- v as IndustryApiStateProvider,
22
- P as IndustryItemsProvider,
23
- f as useIndustryApiState,
24
- A as useIndustryItems
22
+ x as IndustryApiStateProvider,
23
+ f as IndustryItemsProvider,
24
+ v as useIndustryApiState,
25
+ P as useIndustryItems
25
26
  };
26
27
  //# sourceMappingURL=Context.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Context.js","sources":["../../../../src/components/Company/Industry/Context.ts"],"sourcesContent":["import { createCompoundContext } from '@/components/Base'\nimport type { ComboBoxOption } from '@/components/Common/UI/ComboBox/ComboBoxTypes'\n\nconst [useIndustryItems, IndustryItemsProvider] = createCompoundContext('IndustryItems', {\n items: [] as ComboBoxOption[],\n})\n\nconst [useIndustryApiState, IndustryApiStateProvider] = createCompoundContext('IndustryApi', {\n isPending: false,\n})\n\nexport { IndustryApiStateProvider, IndustryItemsProvider, useIndustryItems, useIndustryApiState }\n"],"names":["useIndustryItems","IndustryItemsProvider","createCompoundContext","useIndustryApiState","IndustryApiStateProvider"],"mappings":";;;;;;;;;;;;;;AAGA,MAAM,CAACA,GAAkBC,CAAqB,IAAIC,EAAsB,iBAAiB;AAAA,EACvF,OAAO,CAAA;AACT,CAAC,GAEK,CAACC,GAAqBC,CAAwB,IAAIF,EAAsB,eAAe;AAAA,EAC3F,WAAW;AACb,CAAC;"}
1
+ {"version":3,"file":"Context.js","sources":["../../../../src/components/Company/Industry/Context.ts"],"sourcesContent":["import { createCompoundContext } from '@/components/Base'\nimport type { ComboBoxOption } from '@/components/Common/UI/ComboBox/ComboBoxTypes'\n\nconst [useIndustryItems, IndustryItemsProvider] = createCompoundContext('IndustryItems', {\n items: [] as ComboBoxOption[],\n})\n\nconst [useIndustryApiState, IndustryApiStateProvider] = createCompoundContext('IndustryApi', {\n isPending: false,\n})\n\nexport { IndustryApiStateProvider, IndustryItemsProvider, useIndustryItems, useIndustryApiState }\n"],"names":["useIndustryItems","IndustryItemsProvider","createCompoundContext","useIndustryApiState","IndustryApiStateProvider"],"mappings":";;;;;;;;;;;;;;;AAGA,MAAM,CAACA,GAAkBC,CAAqB,IAAIC,EAAsB,iBAAiB;AAAA,EACvF,OAAO,CAAA;AACT,CAAC,GAEK,CAACC,GAAqBC,CAAwB,IAAIF,EAAsB,eAAe;AAAA,EAC3F,WAAW;AACb,CAAC;"}
@@ -2,10 +2,11 @@ import { jsx as t } from "react/jsx-runtime";
2
2
  import { useTranslation as e } from "react-i18next";
3
3
  import { useIndustryItems as m } from "./Context.js";
4
4
  import "../../../shared/constants.js";
5
+ import "classnames";
5
6
  import "../../../contexts/ComponentAdapter/useComponentContext.js";
6
7
  import "react";
7
8
  import { ComboBoxField as i } from "../../Common/Fields/ComboBoxField/ComboBoxField.js";
8
- const u = () => {
9
+ const f = () => {
9
10
  const { t: o } = e("Company.Industry"), { items: r } = m();
10
11
  return /* @__PURE__ */ t(
11
12
  i,
@@ -19,6 +20,6 @@ const u = () => {
19
20
  );
20
21
  };
21
22
  export {
22
- u as Edit
23
+ f as Edit
23
24
  };
24
25
  //# sourceMappingURL=Edit.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Edit.js","sources":["../../../../src/components/Company/Industry/Edit.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport { useIndustryItems } from './Context'\nimport { ComboBoxField } from '@/components/Common'\n\nexport interface IndustryFormFields {\n naics_code: string\n}\n\nexport const Edit = () => {\n const { t } = useTranslation('Company.Industry')\n const { items } = useIndustryItems()\n\n return (\n <ComboBoxField\n isRequired\n options={items}\n label={t('label')}\n name=\"naics_code\"\n placeholder={t('placeholder')}\n />\n )\n}\n"],"names":["Edit","t","useTranslation","items","useIndustryItems","jsx","ComboBoxField"],"mappings":";;;;;;;AAQO,MAAMA,IAAO,MAAM;AACxB,QAAM,EAAE,GAAAC,EAAA,IAAMC,EAAe,kBAAkB,GACzC,EAAE,OAAAC,EAAA,IAAUC,EAAA;AAElB,SACE,gBAAAC;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,YAAU;AAAA,MACV,SAASH;AAAA,MACT,OAAOF,EAAE,OAAO;AAAA,MAChB,MAAK;AAAA,MACL,aAAaA,EAAE,aAAa;AAAA,IAAA;AAAA,EAAA;AAGlC;"}
1
+ {"version":3,"file":"Edit.js","sources":["../../../../src/components/Company/Industry/Edit.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport { useIndustryItems } from './Context'\nimport { ComboBoxField } from '@/components/Common'\n\nexport interface IndustryFormFields {\n naics_code: string\n}\n\nexport const Edit = () => {\n const { t } = useTranslation('Company.Industry')\n const { items } = useIndustryItems()\n\n return (\n <ComboBoxField\n isRequired\n options={items}\n label={t('label')}\n name=\"naics_code\"\n placeholder={t('placeholder')}\n />\n )\n}\n"],"names":["Edit","t","useTranslation","items","useIndustryItems","jsx","ComboBoxField"],"mappings":";;;;;;;;AAQO,MAAMA,IAAO,MAAM;AACxB,QAAM,EAAE,GAAAC,EAAA,IAAMC,EAAe,kBAAkB,GACzC,EAAE,OAAAC,EAAA,IAAUC,EAAA;AAElB,SACE,gBAAAC;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,YAAU;AAAA,MACV,SAASH;AAAA,MACT,OAAOF,EAAE,OAAO;AAAA,MAChB,MAAK;AAAA,MACL,aAAaA,EAAE,aAAa;AAAA,IAAA;AAAA,EAAA;AAGlC;"}
@@ -1,18 +1,19 @@
1
- import { jsxs as r, jsx as n } from "react/jsx-runtime";
1
+ import { jsxs as s, jsx as n } from "react/jsx-runtime";
2
2
  import { useTranslation as a } from "react-i18next";
3
3
  import { useLocationsForm as e } from "./useLocationForm.js";
4
4
  import "../../../../shared/constants.js";
5
+ import "classnames";
5
6
  import { ActionsLayout as m } from "../../../Common/ActionsLayout/ActionsLayout.js";
6
7
  import { useComponentContext as c } from "../../../../contexts/ComponentAdapter/useComponentContext.js";
7
8
  import "react";
8
- const x = () => {
9
- const { t: o } = a("Company.Locations"), { handleCancel: i, isPending: s } = e(), t = c();
10
- return /* @__PURE__ */ r(m, { children: [
9
+ const y = () => {
10
+ const { t: o } = a("Company.Locations"), { handleCancel: i, isPending: r } = e(), t = c();
11
+ return /* @__PURE__ */ s(m, { children: [
11
12
  /* @__PURE__ */ n(t.Button, { variant: "secondary", onClick: i, children: o("cancelCta") }),
12
- /* @__PURE__ */ n(t.Button, { type: "submit", isLoading: s, "data-testid": "location-submit", children: o("saveCta") })
13
+ /* @__PURE__ */ n(t.Button, { type: "submit", isLoading: r, "data-testid": "location-submit", children: o("saveCta") })
13
14
  ] });
14
15
  };
15
16
  export {
16
- x as Actions
17
+ y as Actions
17
18
  };
18
19
  //# sourceMappingURL=Actions.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Actions.js","sources":["../../../../../src/components/Company/Locations/LocationForm/Actions.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport { useLocationsForm } from './useLocationForm'\nimport { ActionsLayout } from '@/components/Common'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\n\nexport const Actions = () => {\n const { t } = useTranslation('Company.Locations')\n const { handleCancel, isPending } = useLocationsForm()\n const Components = useComponentContext()\n\n return (\n <ActionsLayout>\n <Components.Button variant=\"secondary\" onClick={handleCancel}>\n {t('cancelCta')}\n </Components.Button>\n <Components.Button type=\"submit\" isLoading={isPending} data-testid=\"location-submit\">\n {t('saveCta')}\n </Components.Button>\n </ActionsLayout>\n )\n}\n"],"names":["Actions","t","useTranslation","handleCancel","isPending","useLocationsForm","Components","useComponentContext","ActionsLayout","jsx"],"mappings":";;;;;;;AAKO,MAAMA,IAAU,MAAM;AAC3B,QAAM,EAAE,GAAAC,EAAA,IAAMC,EAAe,mBAAmB,GAC1C,EAAE,cAAAC,GAAc,WAAAC,EAAA,IAAcC,EAAA,GAC9BC,IAAaC,EAAA;AAEnB,2BACGC,GAAA,EACC,UAAA;AAAA,IAAA,gBAAAC,EAACH,EAAW,QAAX,EAAkB,SAAQ,aAAY,SAASH,GAC7C,UAAAF,EAAE,WAAW,EAAA,CAChB;AAAA,IACA,gBAAAQ,EAACH,EAAW,QAAX,EAAkB,MAAK,UAAS,WAAWF,GAAW,eAAY,mBAChE,UAAAH,EAAE,SAAS,EAAA,CACd;AAAA,EAAA,GACF;AAEJ;"}
1
+ {"version":3,"file":"Actions.js","sources":["../../../../../src/components/Company/Locations/LocationForm/Actions.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport { useLocationsForm } from './useLocationForm'\nimport { ActionsLayout } from '@/components/Common'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\n\nexport const Actions = () => {\n const { t } = useTranslation('Company.Locations')\n const { handleCancel, isPending } = useLocationsForm()\n const Components = useComponentContext()\n\n return (\n <ActionsLayout>\n <Components.Button variant=\"secondary\" onClick={handleCancel}>\n {t('cancelCta')}\n </Components.Button>\n <Components.Button type=\"submit\" isLoading={isPending} data-testid=\"location-submit\">\n {t('saveCta')}\n </Components.Button>\n </ActionsLayout>\n )\n}\n"],"names":["Actions","t","useTranslation","handleCancel","isPending","useLocationsForm","Components","useComponentContext","ActionsLayout","jsx"],"mappings":";;;;;;;;AAKO,MAAMA,IAAU,MAAM;AAC3B,QAAM,EAAE,GAAAC,EAAA,IAAMC,EAAe,mBAAmB,GAC1C,EAAE,cAAAC,GAAc,WAAAC,EAAA,IAAcC,EAAA,GAC9BC,IAAaC,EAAA;AAEnB,2BACGC,GAAA,EACC,UAAA;AAAA,IAAA,gBAAAC,EAACH,EAAW,QAAX,EAAkB,SAAQ,aAAY,SAASH,GAC7C,UAAAF,EAAE,WAAW,EAAA,CAChB;AAAA,IACA,gBAAAQ,EAACH,EAAW,QAAX,EAAkB,MAAK,UAAS,WAAWF,GAAW,eAAY,mBAChE,UAAAH,EAAE,SAAS,EAAA,CACd;AAAA,EAAA,GACF;AAEJ;"}
@@ -4,11 +4,11 @@ import { useTranslation as l } from "react-i18next";
4
4
  import { zipValidation as n, phoneValidation as m } from "../../../../helpers/validations.js";
5
5
  import { Flex as d } from "../../../Common/Flex/Flex.js";
6
6
  import { Grid as p } from "../../../Common/Grid/Grid.js";
7
+ import { TextInputField as s } from "../../../Common/Fields/TextInputField/TextInputField.js";
7
8
  import "../../../../contexts/ComponentAdapter/useComponentContext.js";
8
9
  import "react";
9
10
  import { STATES_ABBR as c } from "../../../../shared/constants.js";
10
11
  import { useMaskedTransform as u, commonMasks as b } from "../../../../helpers/mask.js";
11
- import { TextInputField as s } from "../../../Common/Fields/TextInputField/TextInputField.js";
12
12
  import { SelectField as f } from "../../../Common/Fields/SelectField/SelectField.js";
13
13
  import { CheckboxGroupField as g } from "../../../Common/Fields/CheckboxGroupField/CheckboxGroupField.js";
14
14
  const S = i.object({
@@ -10,13 +10,14 @@ import { Actions as I } from "./Actions.js";
10
10
  import { LocationsFormProvider as M } from "./useLocationForm.js";
11
11
  import { Form as _ } from "../../../Common/Form/Form.js";
12
12
  import { Flex as w } from "../../../Common/Flex/Flex.js";
13
+ import "classnames";
14
+ import { componentEvents as a } from "../../../../shared/constants.js";
13
15
  import "react-i18next";
14
16
  import "../../../../contexts/ComponentAdapter/useComponentContext.js";
15
17
  import "react";
16
18
  import { BaseComponent as z } from "../../../Base/Base.js";
17
19
  import { useBase as U } from "../../../Base/useBase.js";
18
20
  import { useI18n as j } from "../../../../i18n/I18n.js";
19
- import { componentEvents as a } from "../../../../shared/constants.js";
20
21
  function H(t) {
21
22
  const {
22
23
  data: { location: e }
@@ -81,7 +82,7 @@ function u({
81
82
  }
82
83
  ) }) }) });
83
84
  }
84
- function ae({
85
+ function de({
85
86
  companyId: t,
86
87
  locationId: e,
87
88
  className: i,
@@ -91,6 +92,6 @@ function ae({
91
92
  return /* @__PURE__ */ o(z, { ...s, children: e ? /* @__PURE__ */ o(H, { companyId: t, locationId: e, className: i, children: r }) : /* @__PURE__ */ o(u, { companyId: t, className: i, children: r }) });
92
93
  }
93
94
  export {
94
- ae as LocationForm
95
+ de as LocationForm
95
96
  };
96
97
  //# sourceMappingURL=LocationForm.js.map