@gusto/embedded-react-sdk 0.12.0 → 0.12.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (337) hide show
  1. package/CHANGELOG.md +133 -0
  2. package/dist/_virtual/dynamic-import-helper.js +1 -8
  3. package/dist/_virtual/dynamic-import-helper.js.map +1 -1
  4. package/dist/components/Base/Base.js +4 -4
  5. package/dist/components/Common/ReorderableList/DropZone.js +1 -1
  6. package/dist/components/Common/ReorderableList/DropZone.js.map +1 -1
  7. package/dist/components/Common/ReorderableList/ReorderableItem.js +1 -1
  8. package/dist/components/Common/ReorderableList/ReorderableItem.js.map +1 -1
  9. package/dist/components/Common/SignatureForm/SignatureForm.js +2 -2
  10. package/dist/components/Common/SignatureForm/SignatureFormActions.js +1 -1
  11. package/dist/components/Common/SignatureForm/SignatureFormFields.js +1 -1
  12. package/dist/components/Common/UI/CalendarPreview/CalendarPreview.js +1 -1
  13. package/dist/components/Common/UI/DatePicker/DatePicker.js +1 -1
  14. package/dist/components/Common/UI/ProgressBar/ProgressBar.d.ts +1 -1
  15. package/dist/components/Common/UI/ProgressBar/ProgressBar.js +19 -9
  16. package/dist/components/Common/UI/ProgressBar/ProgressBar.js.map +1 -1
  17. package/dist/components/Common/UI/ProgressBar/ProgressBarTypes.d.ts +4 -0
  18. package/dist/components/Common/hooks/useNumberFormatter.js +1 -1
  19. package/dist/components/Company/AssignSignatory/AssignSignatory.js +6 -7
  20. package/dist/components/Company/AssignSignatory/AssignSignatory.js.map +1 -1
  21. package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js +3 -2
  22. package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js.map +1 -1
  23. package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.js +3 -2
  24. package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.js.map +1 -1
  25. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatory.js +7 -8
  26. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatory.js.map +1 -1
  27. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.js +13 -14
  28. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.js.map +1 -1
  29. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js +3 -7
  30. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js.map +1 -1
  31. package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.js +3 -2
  32. package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.js.map +1 -1
  33. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatory.js +9 -10
  34. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatory.js.map +1 -1
  35. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatoryForm.js +10 -11
  36. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatoryForm.js.map +1 -1
  37. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js +3 -7
  38. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js.map +1 -1
  39. package/dist/components/Company/AssignSignatory/useAssignSignatory.js +5 -9
  40. package/dist/components/Company/AssignSignatory/useAssignSignatory.js.map +1 -1
  41. package/dist/components/Company/BankAccount/BankAccount.js +7 -7
  42. package/dist/components/Company/BankAccount/BankAccount.js.map +1 -1
  43. package/dist/components/Company/BankAccount/BankAccountForm/Actions.js +6 -6
  44. package/dist/components/Company/BankAccount/BankAccountForm/BankAccountForm.js +8 -8
  45. package/dist/components/Company/BankAccount/BankAccountForm/BankAccountForm.js.map +1 -1
  46. package/dist/components/Company/BankAccount/BankAccountForm/Form.js +9 -8
  47. package/dist/components/Company/BankAccount/BankAccountForm/Form.js.map +1 -1
  48. package/dist/components/Company/BankAccount/BankAccountForm/context.js +3 -7
  49. package/dist/components/Company/BankAccount/BankAccountForm/context.js.map +1 -1
  50. package/dist/components/Company/BankAccount/BankAccountList/Actions.js +9 -8
  51. package/dist/components/Company/BankAccount/BankAccountList/Actions.js.map +1 -1
  52. package/dist/components/Company/BankAccount/BankAccountList/BankAccountList.js +4 -4
  53. package/dist/components/Company/BankAccount/BankAccountList/BankAccountList.js.map +1 -1
  54. package/dist/components/Company/BankAccount/BankAccountVerify/Actions.js +8 -7
  55. package/dist/components/Company/BankAccount/BankAccountVerify/Actions.js.map +1 -1
  56. package/dist/components/Company/BankAccount/BankAccountVerify/BankAccountVerify.js +2 -2
  57. package/dist/components/Company/BankAccount/BankAccountVerify/Form.js +5 -4
  58. package/dist/components/Company/BankAccount/BankAccountVerify/Form.js.map +1 -1
  59. package/dist/components/Company/DocumentSigner/DocumentList/Actions.js +3 -2
  60. package/dist/components/Company/DocumentSigner/DocumentList/Actions.js.map +1 -1
  61. package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.js +10 -11
  62. package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.js.map +1 -1
  63. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js +3 -7
  64. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  65. package/dist/components/Company/DocumentSigner/DocumentSigner.js +1 -1
  66. package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js +9 -10
  67. package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js.map +1 -1
  68. package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js +3 -7
  69. package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js.map +1 -1
  70. package/dist/components/Company/FederalTaxes/Actions.js +6 -5
  71. package/dist/components/Company/FederalTaxes/Actions.js.map +1 -1
  72. package/dist/components/Company/FederalTaxes/FederalTaxes.js +15 -16
  73. package/dist/components/Company/FederalTaxes/FederalTaxes.js.map +1 -1
  74. package/dist/components/Company/FederalTaxes/Form.js +5 -4
  75. package/dist/components/Company/FederalTaxes/Form.js.map +1 -1
  76. package/dist/components/Company/FederalTaxes/useFederalTaxes.js +11 -15
  77. package/dist/components/Company/FederalTaxes/useFederalTaxes.js.map +1 -1
  78. package/dist/components/Company/Industry/Actions.js +3 -2
  79. package/dist/components/Company/Industry/Actions.js.map +1 -1
  80. package/dist/components/Company/Industry/Context.js +6 -10
  81. package/dist/components/Company/Industry/Context.js.map +1 -1
  82. package/dist/components/Company/Industry/Edit.js +5 -4
  83. package/dist/components/Company/Industry/Edit.js.map +1 -1
  84. package/dist/components/Company/Industry/Industry.js +2 -2
  85. package/dist/components/Company/Locations/LocationForm/Actions.js +7 -6
  86. package/dist/components/Company/Locations/LocationForm/Actions.js.map +1 -1
  87. package/dist/components/Company/Locations/LocationForm/Form.js +5 -6
  88. package/dist/components/Company/Locations/LocationForm/Form.js.map +1 -1
  89. package/dist/components/Company/Locations/LocationForm/LocationForm.js +14 -15
  90. package/dist/components/Company/Locations/LocationForm/LocationForm.js.map +1 -1
  91. package/dist/components/Company/Locations/LocationForm/useLocationForm.js +3 -7
  92. package/dist/components/Company/Locations/LocationForm/useLocationForm.js.map +1 -1
  93. package/dist/components/Company/Locations/LocationsList/Actions.js +7 -6
  94. package/dist/components/Company/Locations/LocationsList/Actions.js.map +1 -1
  95. package/dist/components/Company/Locations/LocationsList/List.js +3 -2
  96. package/dist/components/Company/Locations/LocationsList/List.js.map +1 -1
  97. package/dist/components/Company/Locations/LocationsList/LocationsList.js +7 -8
  98. package/dist/components/Company/Locations/LocationsList/LocationsList.js.map +1 -1
  99. package/dist/components/Company/Locations/LocationsList/useLocationsList.js +3 -7
  100. package/dist/components/Company/Locations/LocationsList/useLocationsList.js.map +1 -1
  101. package/dist/components/Company/OnboardingOverview/Completed.js +11 -10
  102. package/dist/components/Company/OnboardingOverview/Completed.js.map +1 -1
  103. package/dist/components/Company/OnboardingOverview/MissingRequirements.js +7 -6
  104. package/dist/components/Company/OnboardingOverview/MissingRequirements.js.map +1 -1
  105. package/dist/components/Company/OnboardingOverview/OnboardingOverview.js +3 -4
  106. package/dist/components/Company/OnboardingOverview/OnboardingOverview.js.map +1 -1
  107. package/dist/components/Company/OnboardingOverview/context.js +3 -7
  108. package/dist/components/Company/OnboardingOverview/context.js.map +1 -1
  109. package/dist/components/Company/PaySchedule/PaySchedule.js +38 -39
  110. package/dist/components/Company/PaySchedule/PaySchedule.js.map +1 -1
  111. package/dist/components/Company/PaySchedule/_parts/Actions.js +10 -9
  112. package/dist/components/Company/PaySchedule/_parts/Actions.js.map +1 -1
  113. package/dist/components/Company/PaySchedule/_parts/Edit.js +16 -17
  114. package/dist/components/Company/PaySchedule/_parts/Edit.js.map +1 -1
  115. package/dist/components/Company/PaySchedule/_parts/Head.js +7 -6
  116. package/dist/components/Company/PaySchedule/_parts/Head.js.map +1 -1
  117. package/dist/components/Company/PaySchedule/_parts/List.js +12 -11
  118. package/dist/components/Company/PaySchedule/_parts/List.js.map +1 -1
  119. package/dist/components/Company/PaySchedule/usePaySchedule.js +6 -10
  120. package/dist/components/Company/PaySchedule/usePaySchedule.js.map +1 -1
  121. package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.js +3 -2
  122. package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.js.map +1 -1
  123. package/dist/components/Company/StateTaxes/StateTaxesForm/StateTaxesForm.js +3 -3
  124. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js +3 -7
  125. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js.map +1 -1
  126. package/dist/components/Company/StateTaxes/StateTaxesList/Actions.js +3 -2
  127. package/dist/components/Company/StateTaxes/StateTaxesList/Actions.js.map +1 -1
  128. package/dist/components/Company/StateTaxes/StateTaxesList/List.js +3 -2
  129. package/dist/components/Company/StateTaxes/StateTaxesList/List.js.map +1 -1
  130. package/dist/components/Company/StateTaxes/StateTaxesList/StateTaxesList.js +1 -1
  131. package/dist/components/Company/StateTaxes/StateTaxesList/context.js +3 -7
  132. package/dist/components/Company/StateTaxes/StateTaxesList/context.js.map +1 -1
  133. package/dist/components/Contractor/Address/Address.js +8 -9
  134. package/dist/components/Contractor/Address/Address.js.map +1 -1
  135. package/dist/components/Contractor/Address/Form.js +3 -4
  136. package/dist/components/Contractor/Address/Form.js.map +1 -1
  137. package/dist/components/Contractor/Address/useAddress.js +5 -9
  138. package/dist/components/Contractor/Address/useAddress.js.map +1 -1
  139. package/dist/components/Contractor/ContractorList/index.js +18 -18
  140. package/dist/components/Contractor/ContractorList/useContractorList.js +1 -1
  141. package/dist/components/Contractor/NewHireReport/NewHireReport.js +3 -3
  142. package/dist/components/Contractor/OnboardingFlow/OnboardingFlow.js +12 -11
  143. package/dist/components/Contractor/OnboardingFlow/OnboardingFlow.js.map +1 -1
  144. package/dist/components/Contractor/OnboardingFlow/OnboardingFlowComponents.d.ts +1 -0
  145. package/dist/components/Contractor/OnboardingFlow/OnboardingFlowComponents.js +42 -22
  146. package/dist/components/Contractor/OnboardingFlow/OnboardingFlowComponents.js.map +1 -1
  147. package/dist/components/Contractor/OnboardingFlow/onboardingStateMachine.d.ts +5 -5
  148. package/dist/components/Contractor/OnboardingFlow/onboardingStateMachine.js +34 -16
  149. package/dist/components/Contractor/OnboardingFlow/onboardingStateMachine.js.map +1 -1
  150. package/dist/components/Contractor/PaymentMethod/BankAccountForm.js +6 -5
  151. package/dist/components/Contractor/PaymentMethod/BankAccountForm.js.map +1 -1
  152. package/dist/components/Contractor/PaymentMethod/PaymentMethod.js +86 -85
  153. package/dist/components/Contractor/PaymentMethod/PaymentMethod.js.map +1 -1
  154. package/dist/components/Contractor/Profile/ContractorProfile.js +23 -16
  155. package/dist/components/Contractor/Profile/ContractorProfile.js.map +1 -1
  156. package/dist/components/Contractor/Profile/ContractorProfileForm.d.ts +3 -1
  157. package/dist/components/Contractor/Profile/ContractorProfileForm.js +68 -65
  158. package/dist/components/Contractor/Profile/ContractorProfileForm.js.map +1 -1
  159. package/dist/components/Contractor/Profile/useContractorProfile.d.ts +16 -16
  160. package/dist/components/Contractor/Profile/useContractorProfile.js +110 -107
  161. package/dist/components/Contractor/Profile/useContractorProfile.js.map +1 -1
  162. package/dist/components/Contractor/Submit/Submit.js +38 -38
  163. package/dist/components/Contractor/Submit/Submit.js.map +1 -1
  164. package/dist/components/Employee/Compensation/Actions.js +1 -1
  165. package/dist/components/Employee/Compensation/Compensation.js +10 -10
  166. package/dist/components/Employee/Compensation/Compensation.js.map +1 -1
  167. package/dist/components/Employee/Compensation/Edit.js +12 -12
  168. package/dist/components/Employee/Compensation/List.js +23 -22
  169. package/dist/components/Employee/Compensation/List.js.map +1 -1
  170. package/dist/components/Employee/Compensation/useCompensation.js +1 -1
  171. package/dist/components/Employee/Compensation/useCompensation.js.map +1 -1
  172. package/dist/components/Employee/Deductions/Deductions.js +1 -1
  173. package/dist/components/Employee/Deductions/Deductions.js.map +1 -1
  174. package/dist/components/Employee/Deductions/DeductionsForm/DeductionsForm.js +12 -12
  175. package/dist/components/Employee/Deductions/DeductionsList/DeductionsList.js +3 -3
  176. package/dist/components/Employee/Deductions/IncludeDeductionsForm/IncludeDeductionsForm.js +9 -9
  177. package/dist/components/Employee/DocumentSigner/DocumentList/Actions.js +7 -6
  178. package/dist/components/Employee/DocumentSigner/DocumentList/Actions.js.map +1 -1
  179. package/dist/components/Employee/DocumentSigner/DocumentList/DocumentList.js +8 -9
  180. package/dist/components/Employee/DocumentSigner/DocumentList/DocumentList.js.map +1 -1
  181. package/dist/components/Employee/DocumentSigner/DocumentList/List.js +3 -2
  182. package/dist/components/Employee/DocumentSigner/DocumentList/List.js.map +1 -1
  183. package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js +3 -7
  184. package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  185. package/dist/components/Employee/DocumentSigner/SignatureForm/SignatureForm.js +12 -13
  186. package/dist/components/Employee/DocumentSigner/SignatureForm/SignatureForm.js.map +1 -1
  187. package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js +3 -7
  188. package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js.map +1 -1
  189. package/dist/components/Employee/EmployeeList/Actions.js +3 -2
  190. package/dist/components/Employee/EmployeeList/Actions.js.map +1 -1
  191. package/dist/components/Employee/EmployeeList/EmployeeList.js +6 -7
  192. package/dist/components/Employee/EmployeeList/EmployeeList.js.map +1 -1
  193. package/dist/components/Employee/EmployeeList/Head.js +6 -5
  194. package/dist/components/Employee/EmployeeList/Head.js.map +1 -1
  195. package/dist/components/Employee/EmployeeList/List.js +12 -12
  196. package/dist/components/Employee/EmployeeList/useEmployeeList.js +3 -7
  197. package/dist/components/Employee/EmployeeList/useEmployeeList.js.map +1 -1
  198. package/dist/components/Employee/FederalTaxes/Actions.d.ts +1 -0
  199. package/dist/components/Employee/FederalTaxes/Actions.js +15 -0
  200. package/dist/components/Employee/FederalTaxes/Actions.js.map +1 -0
  201. package/dist/components/Employee/FederalTaxes/FederalForm.d.ts +29 -0
  202. package/dist/components/Employee/FederalTaxes/FederalForm.js +110 -0
  203. package/dist/components/Employee/FederalTaxes/FederalForm.js.map +1 -0
  204. package/dist/components/Employee/FederalTaxes/FederalTaxes.d.ts +6 -0
  205. package/dist/components/Employee/FederalTaxes/FederalTaxes.js +72 -0
  206. package/dist/components/Employee/FederalTaxes/FederalTaxes.js.map +1 -0
  207. package/dist/components/Employee/FederalTaxes/Head.d.ts +1 -0
  208. package/dist/components/Employee/FederalTaxes/Head.js +24 -0
  209. package/dist/components/Employee/FederalTaxes/Head.js.map +1 -0
  210. package/dist/components/Employee/FederalTaxes/index.d.ts +2 -0
  211. package/dist/components/Employee/FederalTaxes/useFederalTaxes.d.ts +5 -0
  212. package/dist/components/Employee/FederalTaxes/useFederalTaxes.js +16 -0
  213. package/dist/components/Employee/FederalTaxes/useFederalTaxes.js.map +1 -0
  214. package/dist/components/Employee/Landing/Landing.js +10 -10
  215. package/dist/components/Employee/OnboardingFlow/OnboardingFlow.d.ts +1 -19
  216. package/dist/components/Employee/OnboardingFlow/OnboardingFlow.js.map +1 -1
  217. package/dist/components/Employee/OnboardingFlow/OnboardingFlowComponents.d.ts +22 -0
  218. package/dist/components/Employee/OnboardingFlow/OnboardingFlowComponents.js +18 -0
  219. package/dist/components/Employee/OnboardingFlow/OnboardingFlowComponents.js.map +1 -0
  220. package/dist/components/Employee/OnboardingFlow/onboardingStateMachine.d.ts +2 -1
  221. package/dist/components/Employee/OnboardingFlow/onboardingStateMachine.js +72 -63
  222. package/dist/components/Employee/OnboardingFlow/onboardingStateMachine.js.map +1 -1
  223. package/dist/components/Employee/OnboardingSummary/OnboardingSummary.js +9 -9
  224. package/dist/components/Employee/OnboardingSummary/OnboardingSummary.js.map +1 -1
  225. package/dist/components/Employee/PaymentMethod/Actions.js +6 -5
  226. package/dist/components/Employee/PaymentMethod/Actions.js.map +1 -1
  227. package/dist/components/Employee/PaymentMethod/BankAccountEdit.js +1 -1
  228. package/dist/components/Employee/PaymentMethod/BankAccountsList.js +9 -8
  229. package/dist/components/Employee/PaymentMethod/BankAccountsList.js.map +1 -1
  230. package/dist/components/Employee/PaymentMethod/PaymentMethod.js +8 -8
  231. package/dist/components/Employee/PaymentMethod/PaymentMethod.js.map +1 -1
  232. package/dist/components/Employee/PaymentMethod/Split.js +9 -9
  233. package/dist/components/Employee/PaymentMethod/usePaymentMethod.js +9 -13
  234. package/dist/components/Employee/PaymentMethod/usePaymentMethod.js.map +1 -1
  235. package/dist/components/Employee/Profile/Actions.js +7 -6
  236. package/dist/components/Employee/Profile/Actions.js.map +1 -1
  237. package/dist/components/Employee/Profile/AdminPersonalDetails.d.ts +6 -6
  238. package/dist/components/Employee/Profile/HomeAddress.js +5 -6
  239. package/dist/components/Employee/Profile/HomeAddress.js.map +1 -1
  240. package/dist/components/Employee/Profile/PersonalDetailsInputs.d.ts +2 -2
  241. package/dist/components/Employee/Profile/PersonalDetailsInputs.js +21 -22
  242. package/dist/components/Employee/Profile/PersonalDetailsInputs.js.map +1 -1
  243. package/dist/components/Employee/Profile/Profile.js +13 -13
  244. package/dist/components/Employee/Profile/Profile.js.map +1 -1
  245. package/dist/components/Employee/Profile/useProfile.js +3 -7
  246. package/dist/components/Employee/Profile/useProfile.js.map +1 -1
  247. package/dist/components/Employee/SelfOnboardingFlow/SelfOnboardingComponents.d.ts +2 -1
  248. package/dist/components/Employee/SelfOnboardingFlow/SelfOnboardingComponents.js +37 -24
  249. package/dist/components/Employee/SelfOnboardingFlow/SelfOnboardingComponents.js.map +1 -1
  250. package/dist/components/Employee/SelfOnboardingFlow/selfOnboardingMachine.d.ts +2 -1
  251. package/dist/components/Employee/SelfOnboardingFlow/selfOnboardingMachine.js +31 -19
  252. package/dist/components/Employee/SelfOnboardingFlow/selfOnboardingMachine.js.map +1 -1
  253. package/dist/components/Employee/StateTaxes/Actions.d.ts +1 -0
  254. package/dist/components/Employee/StateTaxes/Actions.js +15 -0
  255. package/dist/components/Employee/StateTaxes/Actions.js.map +1 -0
  256. package/dist/components/Employee/StateTaxes/StateForm.d.ts +10 -0
  257. package/dist/components/Employee/StateTaxes/StateForm.js +34 -0
  258. package/dist/components/Employee/StateTaxes/StateForm.js.map +1 -0
  259. package/dist/components/Employee/StateTaxes/StateTaxes.d.ts +7 -0
  260. package/dist/components/Employee/StateTaxes/StateTaxes.js +90 -0
  261. package/dist/components/Employee/StateTaxes/StateTaxes.js.map +1 -0
  262. package/dist/components/Employee/StateTaxes/index.d.ts +2 -0
  263. package/dist/components/Employee/StateTaxes/useStateTaxes.d.ts +8 -0
  264. package/dist/components/Employee/StateTaxes/useStateTaxes.js +16 -0
  265. package/dist/components/Employee/StateTaxes/useStateTaxes.js.map +1 -0
  266. package/dist/components/Employee/Taxes/Actions.js +9 -8
  267. package/dist/components/Employee/Taxes/Actions.js.map +1 -1
  268. package/dist/components/Employee/Taxes/FederalForm.js +13 -12
  269. package/dist/components/Employee/Taxes/FederalForm.js.map +1 -1
  270. package/dist/components/Employee/Taxes/Taxes.d.ts +5 -0
  271. package/dist/components/Employee/Taxes/Taxes.js +73 -85
  272. package/dist/components/Employee/Taxes/Taxes.js.map +1 -1
  273. package/dist/components/Employee/Taxes/useTaxes.js +3 -7
  274. package/dist/components/Employee/Taxes/useTaxes.js.map +1 -1
  275. package/dist/components/Employee/index.d.ts +3 -1
  276. package/dist/components/Employee/index.js +16 -12
  277. package/dist/components/Employee/index.js.map +1 -1
  278. package/dist/components/Flow/Flow.js +15 -13
  279. package/dist/components/Flow/Flow.js.map +1 -1
  280. package/dist/components/Flow/useFlow.d.ts +1 -0
  281. package/dist/components/Flow/useFlow.js.map +1 -1
  282. package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.d.ts +6 -0
  283. package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js +41 -0
  284. package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js.map +1 -0
  285. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.d.ts +11 -0
  286. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js +80 -0
  287. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js.map +1 -0
  288. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.d.ts +6 -0
  289. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.js +19 -0
  290. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.js.map +1 -0
  291. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.d.ts +5 -0
  292. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js +23 -0
  293. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js.map +1 -0
  294. package/dist/components/Payroll/PayrollList/PayrollList.d.ts +6 -0
  295. package/dist/components/Payroll/PayrollList/PayrollList.js +17 -0
  296. package/dist/components/Payroll/PayrollList/PayrollList.js.map +1 -0
  297. package/dist/components/Payroll/PayrollList/PayrollListPresentation.d.ts +9 -0
  298. package/dist/components/Payroll/PayrollList/PayrollListPresentation.js +51 -0
  299. package/dist/components/Payroll/PayrollList/PayrollListPresentation.js.map +1 -0
  300. package/dist/components/Payroll/PayrollOverview/PayrollOverview.d.ts +7 -0
  301. package/dist/components/Payroll/PayrollOverview/PayrollOverview.js +32 -0
  302. package/dist/components/Payroll/PayrollOverview/PayrollOverview.js.map +1 -0
  303. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.d.ts +6 -0
  304. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js +70 -0
  305. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js.map +1 -0
  306. package/dist/components/Payroll/RunPayrollFlow/RunPayroll.d.ts +16 -0
  307. package/dist/components/Payroll/RunPayrollFlow/RunPayroll.js +55 -0
  308. package/dist/components/Payroll/RunPayrollFlow/RunPayroll.js.map +1 -0
  309. package/dist/components/Payroll/RunPayrollFlow/RunPayrollFlow.d.ts +6 -0
  310. package/dist/components/Payroll/RunPayrollFlow/RunPayrollFlow.js +20 -0
  311. package/dist/components/Payroll/RunPayrollFlow/RunPayrollFlow.js.map +1 -0
  312. package/dist/components/Payroll/index.d.ts +6 -0
  313. package/dist/components/Payroll/index.js +13 -0
  314. package/dist/components/Payroll/index.js.map +1 -0
  315. package/dist/components/index.d.ts +1 -0
  316. package/dist/contexts/ApiProvider/ApiProvider.js +4 -4
  317. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js +3 -2
  318. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js.map +1 -1
  319. package/dist/contexts/ThemeProvider/ThemeProvider.js +7 -7
  320. package/dist/contexts/ThemeProvider/ThemeProvider.js.map +1 -1
  321. package/dist/i18n/I18n.js +1 -1
  322. package/dist/i18n/I18n.js.map +1 -1
  323. package/dist/i18n/en/Contractor.ContractorList.json.js +13 -11
  324. package/dist/i18n/en/Contractor.ContractorList.json.js.map +1 -1
  325. package/dist/i18n/en/Contractor.Profile.json.js +1 -1
  326. package/dist/i18n/en/Employee.FederalTaxes.json.js +46 -0
  327. package/dist/i18n/en/Employee.FederalTaxes.json.js.map +1 -0
  328. package/dist/i18n/en/Employee.StateTaxes.json.js +6 -10
  329. package/dist/i18n/en/Employee.StateTaxes.json.js.map +1 -1
  330. package/dist/i18n/en/Employee.Taxes.json.js +7 -7
  331. package/dist/index.js +11 -9
  332. package/dist/index.js.map +1 -1
  333. package/dist/shared/constants.d.ts +30 -2
  334. package/dist/shared/constants.js +75 -47
  335. package/dist/shared/constants.js.map +1 -1
  336. package/dist/types/i18next.d.ts +29 -7
  337. package/package.json +12 -13
@@ -1,17 +1,18 @@
1
- import { jsxs as c, jsx as t } from "react/jsx-runtime";
1
+ import { jsxs as c, jsx as n } from "react/jsx-runtime";
2
2
  import { useTranslation as s } from "react-i18next";
3
3
  import { useLocationsList as a } from "./useLocationsList.js";
4
4
  import "classnames";
5
+ import "../../../../shared/constants.js";
5
6
  import { ActionsLayout as e } from "../../../Common/ActionsLayout/ActionsLayout.js";
6
7
  import { useComponentContext as m } from "../../../../contexts/ComponentAdapter/useComponentContext.js";
7
- function L() {
8
- const { t: o } = s("Company.Locations"), { handleAddLocation: i, handleContinue: r } = a(), n = m();
8
+ function h() {
9
+ const { t: o } = s("Company.Locations"), { handleAddLocation: i, handleContinue: r } = a(), t = m();
9
10
  return /* @__PURE__ */ c(e, { children: [
10
- /* @__PURE__ */ t(n.Button, { variant: "secondary", onClick: i, children: o("addLocationCta") }),
11
- /* @__PURE__ */ t(n.Button, { onClick: r, children: o("continueCta") })
11
+ /* @__PURE__ */ n(t.Button, { variant: "secondary", onClick: i, children: o("addLocationCta") }),
12
+ /* @__PURE__ */ n(t.Button, { onClick: r, children: o("continueCta") })
12
13
  ] });
13
14
  }
14
15
  export {
15
- L as Actions
16
+ h as Actions
16
17
  };
17
18
  //# sourceMappingURL=Actions.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Actions.js","sources":["../../../../../src/components/Company/Locations/LocationsList/Actions.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport { useLocationsList } from './useLocationsList'\nimport { ActionsLayout } from '@/components/Common'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\n\nexport function Actions() {\n const { t } = useTranslation('Company.Locations')\n const { handleAddLocation, handleContinue } = useLocationsList()\n const Components = useComponentContext()\n\n return (\n <ActionsLayout>\n <Components.Button variant=\"secondary\" onClick={handleAddLocation}>\n {t('addLocationCta')}\n </Components.Button>\n <Components.Button onClick={handleContinue}>{t('continueCta')}</Components.Button>\n </ActionsLayout>\n )\n}\n"],"names":["Actions","t","useTranslation","handleAddLocation","handleContinue","useLocationsList","Components","useComponentContext","ActionsLayout","jsx"],"mappings":";;;;;;AAKO,SAASA,IAAU;AACxB,QAAM,EAAE,GAAAC,EAAA,IAAMC,EAAe,mBAAmB,GAC1C,EAAE,mBAAAC,GAAmB,gBAAAC,EAAA,IAAmBC,EAAA,GACxCC,IAAaC,EAAA;AAEnB,2BACGC,GAAA,EACC,UAAA;AAAA,IAAA,gBAAAC,EAACH,EAAW,QAAX,EAAkB,SAAQ,aAAY,SAASH,GAC7C,UAAAF,EAAE,gBAAgB,EAAA,CACrB;AAAA,IACA,gBAAAQ,EAACH,EAAW,QAAX,EAAkB,SAASF,GAAiB,UAAAH,EAAE,aAAa,EAAA,CAAE;AAAA,EAAA,GAChE;AAEJ;"}
1
+ {"version":3,"file":"Actions.js","sources":["../../../../../src/components/Company/Locations/LocationsList/Actions.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport { useLocationsList } from './useLocationsList'\nimport { ActionsLayout } from '@/components/Common'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\n\nexport function Actions() {\n const { t } = useTranslation('Company.Locations')\n const { handleAddLocation, handleContinue } = useLocationsList()\n const Components = useComponentContext()\n\n return (\n <ActionsLayout>\n <Components.Button variant=\"secondary\" onClick={handleAddLocation}>\n {t('addLocationCta')}\n </Components.Button>\n <Components.Button onClick={handleContinue}>{t('continueCta')}</Components.Button>\n </ActionsLayout>\n )\n}\n"],"names":["Actions","t","useTranslation","handleAddLocation","handleContinue","useLocationsList","Components","useComponentContext","ActionsLayout","jsx"],"mappings":";;;;;;;AAKO,SAASA,IAAU;AACxB,QAAM,EAAE,GAAAC,EAAA,IAAMC,EAAe,mBAAmB,GAC1C,EAAE,mBAAAC,GAAmB,gBAAAC,EAAA,IAAmBC,EAAA,GACxCC,IAAaC,EAAA;AAEnB,2BACGC,GAAA,EACC,UAAA;AAAA,IAAA,gBAAAC,EAACH,EAAW,QAAX,EAAkB,SAAQ,aAAY,SAASH,GAC7C,UAAAF,EAAE,gBAAgB,EAAA,CACrB;AAAA,IACA,gBAAAQ,EAACH,EAAW,QAAX,EAAkB,SAASF,GAAiB,UAAAH,EAAE,aAAa,EAAA,CAAE;AAAA,EAAA,GAChE;AAEJ;"}
@@ -3,6 +3,7 @@ import { useTranslation as L } from "react-i18next";
3
3
  import { useLocationsList as C } from "./useLocationsList.js";
4
4
  import P from "../../../../assets/icons/pencil.svg.js";
5
5
  import "classnames";
6
+ import "../../../../shared/constants.js";
6
7
  import { EmptyData as b } from "../../../Common/EmptyData/EmptyData.js";
7
8
  import { useComponentContext as y } from "../../../../contexts/ComponentAdapter/useComponentContext.js";
8
9
  import { HamburgerMenu as x } from "../../../Common/HamburgerMenu/HamburgerMenu.js";
@@ -10,7 +11,7 @@ import { getStreet as T, getCityStateZip as A } from "../../../../helpers/format
10
11
  import { VisuallyHidden as k } from "../../../Common/VisuallyHidden/VisuallyHidden.js";
11
12
  import { useDataView as D } from "../../../Common/DataView/useDataView.js";
12
13
  import { DataView as S } from "../../../Common/DataView/DataView.js";
13
- const Z = () => {
14
+ const q = () => {
14
15
  const a = y(), {
15
16
  locationList: o,
16
17
  handleEditLocation: s,
@@ -77,6 +78,6 @@ const Z = () => {
77
78
  return /* @__PURE__ */ t(S, { label: e("locationListLabel"), ...f });
78
79
  };
79
80
  export {
80
- Z as List
81
+ q as List
81
82
  };
82
83
  //# sourceMappingURL=List.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"List.js","sources":["../../../../../src/components/Company/Locations/LocationsList/List.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport { useLocationsList } from './useLocationsList'\nimport PencilSvg from '@/assets/icons/pencil.svg?react'\nimport { DataView, EmptyData, useDataView, VisuallyHidden } from '@/components/Common'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\nimport { HamburgerMenu } from '@/components/Common/HamburgerMenu'\nimport { getCityStateZip, getStreet } from '@/helpers/formattedStrings'\n\n/**List of employees slot for EmployeeList component */\nexport const List = () => {\n const Components = useComponentContext()\n const {\n locationList,\n handleEditLocation,\n currentPage,\n totalPages,\n handleFirstPage,\n handleItemsPerPageChange,\n handleLastPage,\n handleNextPage,\n handlePreviousPage,\n handleAddLocation,\n } = useLocationsList()\n\n const { t } = useTranslation('Company.Locations')\n const { ...dataViewProps } = useDataView({\n data: locationList,\n columns: [\n {\n key: 'name',\n title: t('locationListCol1'),\n render: location => {\n return (\n <>\n <address>\n <Components.Text as=\"span\">{getStreet(location)}</Components.Text>\n <br />\n <Components.Text as=\"span\" size=\"sm\">\n {getCityStateZip(location)}\n </Components.Text>\n </address>\n </>\n )\n },\n },\n {\n key: 'status',\n title: <VisuallyHidden>{t('locationListCol2')}</VisuallyHidden>,\n render: location => {\n return (\n <>\n {location.mailingAddress && (\n <Components.Badge status={'info'}>{t('mailingAddress')}</Components.Badge>\n )}\n {location.filingAddress && (\n <>\n {' '}\n <Components.Badge status={'info'}>{t('filingAddress')}</Components.Badge>\n </>\n )}\n </>\n )\n },\n },\n ],\n itemMenu: location => {\n return (\n <HamburgerMenu\n items={[\n {\n label: t('editCta'),\n onClick: () => {\n handleEditLocation(location.uuid)\n },\n icon: <PencilSvg aria-hidden />,\n 'data-testid': 'edit-location',\n },\n ]}\n data-testid=\"location-hamburger\"\n triggerLabel={t('hamburgerTitle')}\n />\n )\n },\n pagination: {\n handleNextPage,\n handleFirstPage,\n handleLastPage,\n handlePreviousPage,\n handleItemsPerPageChange,\n currentPage,\n totalPages,\n },\n emptyState: () => (\n <EmptyData title={t('emptyTableTitle')} description={t('emptyTableDescription')}>\n <Components.Button variant=\"secondary\" onClick={handleAddLocation}>\n {t('addFirstLocationCta')}\n </Components.Button>\n </EmptyData>\n ),\n })\n return <DataView label={t('locationListLabel')} {...dataViewProps} />\n}\n"],"names":["List","Components","useComponentContext","locationList","handleEditLocation","currentPage","totalPages","handleFirstPage","handleItemsPerPageChange","handleLastPage","handleNextPage","handlePreviousPage","handleAddLocation","useLocationsList","t","useTranslation","dataViewProps","useDataView","location","jsx","Fragment","getStreet","getCityStateZip","VisuallyHidden","jsxs","HamburgerMenu","PencilSvg","EmptyData","DataView"],"mappings":";;;;;;;;;;;;AASO,MAAMA,IAAO,MAAM;AACxB,QAAMC,IAAaC,EAAA,GACb;AAAA,IACJ,cAAAC;AAAA,IACA,oBAAAC;AAAA,IACA,aAAAC;AAAA,IACA,YAAAC;AAAA,IACA,iBAAAC;AAAA,IACA,0BAAAC;AAAA,IACA,gBAAAC;AAAA,IACA,gBAAAC;AAAA,IACA,oBAAAC;AAAA,IACA,mBAAAC;AAAA,EAAA,IACEC,EAAA,GAEE,EAAE,GAAAC,EAAA,IAAMC,EAAe,mBAAmB,GAC1C,EAAE,GAAGC,EAAA,IAAkBC,EAAY;AAAA,IACvC,MAAMd;AAAA,IACN,SAAS;AAAA,MACP;AAAA,QACE,KAAK;AAAA,QACL,OAAOW,EAAE,kBAAkB;AAAA,QAC3B,QAAQ,CAAAI,MAEJ,gBAAAC,EAAAC,GAAA,EACE,4BAAC,WAAA,EACC,UAAA;AAAA,UAAA,gBAAAD,EAAClB,EAAW,MAAX,EAAgB,IAAG,QAAQ,UAAAoB,EAAUH,CAAQ,GAAE;AAAA,4BAC/C,MAAA,EAAG;AAAA,UACJ,gBAAAC,EAAClB,EAAW,MAAX,EAAgB,IAAG,QAAO,MAAK,MAC7B,UAAAqB,EAAgBJ,CAAQ,EAAA,CAC3B;AAAA,QAAA,EAAA,CACF,EAAA,CACF;AAAA,MAEJ;AAAA,MAEF;AAAA,QACE,KAAK;AAAA,QACL,OAAO,gBAAAC,EAACI,GAAA,EAAgB,UAAAT,EAAE,kBAAkB,GAAE;AAAA,QAC9C,QAAQ,CAAAI,MAEJ,gBAAAM,EAAAJ,GAAA,EACG,UAAA;AAAA,UAAAF,EAAS,oCACPjB,EAAW,OAAX,EAAiB,QAAQ,QAAS,UAAAa,EAAE,gBAAgB,EAAA,CAAE;AAAA,UAExDI,EAAS,iBACR,gBAAAM,EAAAJ,GAAA,EACG,UAAA;AAAA,YAAA;AAAA,YACD,gBAAAD,EAAClB,EAAW,OAAX,EAAiB,QAAQ,QAAS,UAAAa,EAAE,eAAe,EAAA,CAAE;AAAA,UAAA,EAAA,CACxD;AAAA,QAAA,GAEJ;AAAA,MAEJ;AAAA,IACF;AAAA,IAEF,UAAU,CAAAI,MAEN,gBAAAC;AAAA,MAACM;AAAA,MAAA;AAAA,QACC,OAAO;AAAA,UACL;AAAA,YACE,OAAOX,EAAE,SAAS;AAAA,YAClB,SAAS,MAAM;AACb,cAAAV,EAAmBc,EAAS,IAAI;AAAA,YAClC;AAAA,YACA,MAAM,gBAAAC,EAACO,GAAA,EAAU,eAAW,GAAA,CAAC;AAAA,YAC7B,eAAe;AAAA,UAAA;AAAA,QACjB;AAAA,QAEF,eAAY;AAAA,QACZ,cAAcZ,EAAE,gBAAgB;AAAA,MAAA;AAAA,IAAA;AAAA,IAItC,YAAY;AAAA,MACV,gBAAAJ;AAAA,MACA,iBAAAH;AAAA,MACA,gBAAAE;AAAA,MACA,oBAAAE;AAAA,MACA,0BAAAH;AAAA,MACA,aAAAH;AAAA,MACA,YAAAC;AAAA,IAAA;AAAA,IAEF,YAAY,MACV,gBAAAa,EAACQ,GAAA,EAAU,OAAOb,EAAE,iBAAiB,GAAG,aAAaA,EAAE,uBAAuB,GAC5E,UAAA,gBAAAK,EAAClB,EAAW,QAAX,EAAkB,SAAQ,aAAY,SAASW,GAC7C,UAAAE,EAAE,qBAAqB,EAAA,CAC1B,EAAA,CACF;AAAA,EAAA,CAEH;AACD,2BAAQc,GAAA,EAAS,OAAOd,EAAE,mBAAmB,GAAI,GAAGE,GAAe;AACrE;"}
1
+ {"version":3,"file":"List.js","sources":["../../../../../src/components/Company/Locations/LocationsList/List.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport { useLocationsList } from './useLocationsList'\nimport PencilSvg from '@/assets/icons/pencil.svg?react'\nimport { DataView, EmptyData, useDataView, VisuallyHidden } from '@/components/Common'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\nimport { HamburgerMenu } from '@/components/Common/HamburgerMenu'\nimport { getCityStateZip, getStreet } from '@/helpers/formattedStrings'\n\n/**List of employees slot for EmployeeList component */\nexport const List = () => {\n const Components = useComponentContext()\n const {\n locationList,\n handleEditLocation,\n currentPage,\n totalPages,\n handleFirstPage,\n handleItemsPerPageChange,\n handleLastPage,\n handleNextPage,\n handlePreviousPage,\n handleAddLocation,\n } = useLocationsList()\n\n const { t } = useTranslation('Company.Locations')\n const { ...dataViewProps } = useDataView({\n data: locationList,\n columns: [\n {\n key: 'name',\n title: t('locationListCol1'),\n render: location => {\n return (\n <>\n <address>\n <Components.Text as=\"span\">{getStreet(location)}</Components.Text>\n <br />\n <Components.Text as=\"span\" size=\"sm\">\n {getCityStateZip(location)}\n </Components.Text>\n </address>\n </>\n )\n },\n },\n {\n key: 'status',\n title: <VisuallyHidden>{t('locationListCol2')}</VisuallyHidden>,\n render: location => {\n return (\n <>\n {location.mailingAddress && (\n <Components.Badge status={'info'}>{t('mailingAddress')}</Components.Badge>\n )}\n {location.filingAddress && (\n <>\n {' '}\n <Components.Badge status={'info'}>{t('filingAddress')}</Components.Badge>\n </>\n )}\n </>\n )\n },\n },\n ],\n itemMenu: location => {\n return (\n <HamburgerMenu\n items={[\n {\n label: t('editCta'),\n onClick: () => {\n handleEditLocation(location.uuid)\n },\n icon: <PencilSvg aria-hidden />,\n 'data-testid': 'edit-location',\n },\n ]}\n data-testid=\"location-hamburger\"\n triggerLabel={t('hamburgerTitle')}\n />\n )\n },\n pagination: {\n handleNextPage,\n handleFirstPage,\n handleLastPage,\n handlePreviousPage,\n handleItemsPerPageChange,\n currentPage,\n totalPages,\n },\n emptyState: () => (\n <EmptyData title={t('emptyTableTitle')} description={t('emptyTableDescription')}>\n <Components.Button variant=\"secondary\" onClick={handleAddLocation}>\n {t('addFirstLocationCta')}\n </Components.Button>\n </EmptyData>\n ),\n })\n return <DataView label={t('locationListLabel')} {...dataViewProps} />\n}\n"],"names":["List","Components","useComponentContext","locationList","handleEditLocation","currentPage","totalPages","handleFirstPage","handleItemsPerPageChange","handleLastPage","handleNextPage","handlePreviousPage","handleAddLocation","useLocationsList","t","useTranslation","dataViewProps","useDataView","location","jsx","Fragment","getStreet","getCityStateZip","VisuallyHidden","jsxs","HamburgerMenu","PencilSvg","EmptyData","DataView"],"mappings":";;;;;;;;;;;;;AASO,MAAMA,IAAO,MAAM;AACxB,QAAMC,IAAaC,EAAA,GACb;AAAA,IACJ,cAAAC;AAAA,IACA,oBAAAC;AAAA,IACA,aAAAC;AAAA,IACA,YAAAC;AAAA,IACA,iBAAAC;AAAA,IACA,0BAAAC;AAAA,IACA,gBAAAC;AAAA,IACA,gBAAAC;AAAA,IACA,oBAAAC;AAAA,IACA,mBAAAC;AAAA,EAAA,IACEC,EAAA,GAEE,EAAE,GAAAC,EAAA,IAAMC,EAAe,mBAAmB,GAC1C,EAAE,GAAGC,EAAA,IAAkBC,EAAY;AAAA,IACvC,MAAMd;AAAA,IACN,SAAS;AAAA,MACP;AAAA,QACE,KAAK;AAAA,QACL,OAAOW,EAAE,kBAAkB;AAAA,QAC3B,QAAQ,CAAAI,MAEJ,gBAAAC,EAAAC,GAAA,EACE,4BAAC,WAAA,EACC,UAAA;AAAA,UAAA,gBAAAD,EAAClB,EAAW,MAAX,EAAgB,IAAG,QAAQ,UAAAoB,EAAUH,CAAQ,GAAE;AAAA,4BAC/C,MAAA,EAAG;AAAA,UACJ,gBAAAC,EAAClB,EAAW,MAAX,EAAgB,IAAG,QAAO,MAAK,MAC7B,UAAAqB,EAAgBJ,CAAQ,EAAA,CAC3B;AAAA,QAAA,EAAA,CACF,EAAA,CACF;AAAA,MAEJ;AAAA,MAEF;AAAA,QACE,KAAK;AAAA,QACL,OAAO,gBAAAC,EAACI,GAAA,EAAgB,UAAAT,EAAE,kBAAkB,GAAE;AAAA,QAC9C,QAAQ,CAAAI,MAEJ,gBAAAM,EAAAJ,GAAA,EACG,UAAA;AAAA,UAAAF,EAAS,oCACPjB,EAAW,OAAX,EAAiB,QAAQ,QAAS,UAAAa,EAAE,gBAAgB,EAAA,CAAE;AAAA,UAExDI,EAAS,iBACR,gBAAAM,EAAAJ,GAAA,EACG,UAAA;AAAA,YAAA;AAAA,YACD,gBAAAD,EAAClB,EAAW,OAAX,EAAiB,QAAQ,QAAS,UAAAa,EAAE,eAAe,EAAA,CAAE;AAAA,UAAA,EAAA,CACxD;AAAA,QAAA,GAEJ;AAAA,MAEJ;AAAA,IACF;AAAA,IAEF,UAAU,CAAAI,MAEN,gBAAAC;AAAA,MAACM;AAAA,MAAA;AAAA,QACC,OAAO;AAAA,UACL;AAAA,YACE,OAAOX,EAAE,SAAS;AAAA,YAClB,SAAS,MAAM;AACb,cAAAV,EAAmBc,EAAS,IAAI;AAAA,YAClC;AAAA,YACA,MAAM,gBAAAC,EAACO,GAAA,EAAU,eAAW,GAAA,CAAC;AAAA,YAC7B,eAAe;AAAA,UAAA;AAAA,QACjB;AAAA,QAEF,eAAY;AAAA,QACZ,cAAcZ,EAAE,gBAAgB;AAAA,MAAA;AAAA,IAAA;AAAA,IAItC,YAAY;AAAA,MACV,gBAAAJ;AAAA,MACA,iBAAAH;AAAA,MACA,gBAAAE;AAAA,MACA,oBAAAE;AAAA,MACA,0BAAAH;AAAA,MACA,aAAAH;AAAA,MACA,YAAAC;AAAA,IAAA;AAAA,IAEF,YAAY,MACV,gBAAAa,EAACQ,GAAA,EAAU,OAAOb,EAAE,iBAAiB,GAAG,aAAaA,EAAE,uBAAuB,GAC5E,UAAA,gBAAAK,EAAClB,EAAW,QAAX,EAAkB,SAAQ,aAAY,SAASW,GAC7C,UAAAE,EAAE,qBAAqB,EAAA,CAC1B,EAAA,CACF;AAAA,EAAA,CAEH;AACD,2BAAQc,GAAA,EAAS,OAAOd,EAAE,mBAAmB,GAAI,GAAGE,GAAe;AACrE;"}
@@ -1,6 +1,6 @@
1
1
  import { jsx as e, jsxs as p, Fragment as u } from "react/jsx-runtime";
2
- import { useLocationsGetSuspense as L } from "@gusto/embedded-api/react-query/locationsGet";
3
- import { useState as c } from "react";
2
+ import { useLocationsGetSuspense as L } from "/home/runner/work/embedded-react-sdk/embedded-react-sdk/node_modules/@gusto/embedded-api/esm/react-query/locationsGet.js";
3
+ import { useState as m } from "react";
4
4
  import { Head as f } from "./Head.js";
5
5
  import { List as C } from "./List.js";
6
6
  import { Actions as A } from "./Actions.js";
@@ -9,23 +9,22 @@ import { useI18n as O } from "../../../../i18n/I18n.js";
9
9
  import { BaseComponent as x } from "../../../Base/Base.js";
10
10
  import { useBase as E } from "../../../Base/useBase.js";
11
11
  import { Flex as I } from "../../../Common/Flex/Flex.js";
12
- import "react-i18next";
13
12
  import "classnames";
14
13
  import { companyEvents as i } from "../../../../shared/constants.js";
15
- function V(o) {
14
+ function U(o) {
16
15
  return /* @__PURE__ */ e(x, { ...o, children: /* @__PURE__ */ e(v, { ...o, children: o.children }) });
17
16
  }
18
17
  function v({ companyId: o, className: d, children: s }) {
19
18
  O("Company.Locations");
20
- const { onEvent: a } = E(), [m, n] = c(1), [l, h] = c(5), {
19
+ const { onEvent: a } = E(), [c, n] = m(1), [l, h] = m(5), {
21
20
  data: { locationList: P, httpMeta: g }
22
- } = L({ companyId: o, page: m, per: l }), r = Number(g.response.headers.get("x-total-pages") ?? 1);
21
+ } = L({ companyId: o, page: c, per: l }), r = Number(g.response.headers.get("x-total-pages") ?? 1);
23
22
  return /* @__PURE__ */ e("section", { className: d, children: /* @__PURE__ */ e(
24
23
  N,
25
24
  {
26
25
  value: {
27
26
  locationList: P ?? [],
28
- currentPage: m,
27
+ currentPage: c,
29
28
  totalPages: r,
30
29
  handleFirstPage: () => {
31
30
  n(1);
@@ -61,6 +60,6 @@ function v({ companyId: o, className: d, children: s }) {
61
60
  ) });
62
61
  }
63
62
  export {
64
- V as LocationsList
63
+ U as LocationsList
65
64
  };
66
65
  //# sourceMappingURL=LocationsList.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"LocationsList.js","sources":["../../../../../src/components/Company/Locations/LocationsList/LocationsList.tsx"],"sourcesContent":["import { useLocationsGetSuspense } from '@gusto/embedded-api/react-query/locationsGet'\nimport { useState } from 'react'\nimport { Head } from './Head'\nimport { List } from './List'\nimport { Actions } from './Actions'\nimport { LocationsListProvider } from './useLocationsList'\nimport { useI18n } 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 LocationsListProps extends BaseComponentInterface {\n companyId: string\n}\n\nexport function LocationsList(props: LocationsListProps) {\n return (\n <BaseComponent {...props}>\n <Root {...props}>{props.children}</Root>\n </BaseComponent>\n )\n}\n\nfunction Root({ companyId, className, children }: LocationsListProps) {\n useI18n('Company.Locations')\n const { onEvent } = useBase()\n\n const [currentPage, setCurrentPage] = useState(1)\n const [itemsPerPage, setItemsPerPage] = useState(5)\n\n const {\n data: { locationList, httpMeta },\n } = useLocationsGetSuspense({ companyId, page: currentPage, per: itemsPerPage })\n\n const totalPages = Number(httpMeta.response.headers.get('x-total-pages') ?? 1)\n\n const handleItemsPerPageChange = (newCount: number) => {\n setItemsPerPage(newCount)\n }\n const handleFirstPage = () => {\n setCurrentPage(1)\n }\n const handlePreviousPage = () => {\n setCurrentPage(prevPage => Math.max(prevPage - 1, 1))\n }\n const handleNextPage = () => {\n setCurrentPage(prevPage => Math.min(prevPage + 1, totalPages))\n }\n const handleLastPage = () => {\n setCurrentPage(totalPages)\n }\n\n const handleContinue = () => {\n onEvent(companyEvents.COMPANY_LOCATION_DONE)\n }\n const handleAddLocation = () => {\n onEvent(companyEvents.COMPANY_LOCATION_CREATE)\n }\n const handleEditLocation = (uuid: string) => {\n onEvent(companyEvents.COMPANY_LOCATION_EDIT, { uuid })\n }\n\n return (\n <section className={className}>\n <LocationsListProvider\n value={{\n locationList: locationList ?? [],\n currentPage,\n totalPages,\n handleFirstPage,\n handlePreviousPage,\n handleNextPage,\n handleLastPage,\n handleItemsPerPageChange,\n handleAddLocation,\n handleEditLocation,\n handleContinue,\n }}\n >\n <Flex flexDirection=\"column\" gap={32}>\n {children ? (\n children\n ) : (\n <>\n <Head />\n <List />\n <Actions />\n </>\n )}\n </Flex>\n </LocationsListProvider>\n </section>\n )\n}\n"],"names":["LocationsList","props","jsx","BaseComponent","Root","companyId","className","children","useI18n","onEvent","useBase","currentPage","setCurrentPage","useState","itemsPerPage","setItemsPerPage","locationList","httpMeta","useLocationsGetSuspense","totalPages","LocationsListProvider","prevPage","newCount","companyEvents","uuid","Flex","jsxs","Fragment","Head","List","Actions"],"mappings":";;;;;;;;;;;;;;AAgBO,SAASA,EAAcC,GAA2B;AACvD,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,WAAAC,GAAW,UAAAC,KAAgC;AACpE,EAAAC,EAAQ,mBAAmB;AAC3B,QAAM,EAAE,SAAAC,EAAA,IAAYC,EAAA,GAEd,CAACC,GAAaC,CAAc,IAAIC,EAAS,CAAC,GAC1C,CAACC,GAAcC,CAAe,IAAIF,EAAS,CAAC,GAE5C;AAAA,IACJ,MAAM,EAAE,cAAAG,GAAc,UAAAC,EAAA;AAAA,EAAS,IAC7BC,EAAwB,EAAE,WAAAb,GAAW,MAAMM,GAAa,KAAKG,GAAc,GAEzEK,IAAa,OAAOF,EAAS,SAAS,QAAQ,IAAI,eAAe,KAAK,CAAC;AA4B7E,SACE,gBAAAf,EAAC,aAAQ,WAAAI,GACP,UAAA,gBAAAJ;AAAA,IAACkB;AAAA,IAAA;AAAA,MACC,OAAO;AAAA,QACL,cAAcJ,KAAgB,CAAA;AAAA,QAC9B,aAAAL;AAAA,QACA,YAAAQ;AAAA,QACA,iBA9BgB,MAAM;AAC5B,UAAAP,EAAe,CAAC;AAAA,QAClB;AAAA,QA6BQ,oBA5BmB,MAAM;AAC/B,UAAAA,EAAe,OAAY,KAAK,IAAIS,IAAW,GAAG,CAAC,CAAC;AAAA,QACtD;AAAA,QA2BQ,gBA1Be,MAAM;AAC3B,UAAAT,EAAe,OAAY,KAAK,IAAIS,IAAW,GAAGF,CAAU,CAAC;AAAA,QAC/D;AAAA,QAyBQ,gBAxBe,MAAM;AAC3B,UAAAP,EAAeO,CAAU;AAAA,QAC3B;AAAA,QAuBQ,0BArCyB,CAACG,MAAqB;AACrD,UAAAP,EAAgBO,CAAQ;AAAA,QAC1B;AAAA,QAoCQ,mBAnBkB,MAAM;AAC9B,UAAAb,EAAQc,EAAc,uBAAuB;AAAA,QAC/C;AAAA,QAkBQ,oBAjBmB,CAACC,MAAiB;AAC3C,UAAAf,EAAQc,EAAc,uBAAuB,EAAE,MAAAC,EAAA,CAAM;AAAA,QACvD;AAAA,QAgBQ,gBAxBe,MAAM;AAC3B,UAAAf,EAAQc,EAAc,qBAAqB;AAAA,QAC7C;AAAA,MAsBQ;AAAA,MAGF,UAAA,gBAAArB,EAACuB,KAAK,eAAc,UAAS,KAAK,IAC/B,UAAAlB,KAGC,gBAAAmB,EAAAC,GAAA,EACE,UAAA;AAAA,QAAA,gBAAAzB,EAAC0B,GAAA,EAAK;AAAA,0BACLC,GAAA,EAAK;AAAA,0BACLC,GAAA,CAAA,CAAQ;AAAA,MAAA,EAAA,CACX,EAAA,CAEJ;AAAA,IAAA;AAAA,EAAA,GAEJ;AAEJ;"}
1
+ {"version":3,"file":"LocationsList.js","sources":["../../../../../src/components/Company/Locations/LocationsList/LocationsList.tsx"],"sourcesContent":["import { useLocationsGetSuspense } from '@gusto/embedded-api/react-query/locationsGet'\nimport { useState } from 'react'\nimport { Head } from './Head'\nimport { List } from './List'\nimport { Actions } from './Actions'\nimport { LocationsListProvider } from './useLocationsList'\nimport { useI18n } 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 LocationsListProps extends BaseComponentInterface {\n companyId: string\n}\n\nexport function LocationsList(props: LocationsListProps) {\n return (\n <BaseComponent {...props}>\n <Root {...props}>{props.children}</Root>\n </BaseComponent>\n )\n}\n\nfunction Root({ companyId, className, children }: LocationsListProps) {\n useI18n('Company.Locations')\n const { onEvent } = useBase()\n\n const [currentPage, setCurrentPage] = useState(1)\n const [itemsPerPage, setItemsPerPage] = useState(5)\n\n const {\n data: { locationList, httpMeta },\n } = useLocationsGetSuspense({ companyId, page: currentPage, per: itemsPerPage })\n\n const totalPages = Number(httpMeta.response.headers.get('x-total-pages') ?? 1)\n\n const handleItemsPerPageChange = (newCount: number) => {\n setItemsPerPage(newCount)\n }\n const handleFirstPage = () => {\n setCurrentPage(1)\n }\n const handlePreviousPage = () => {\n setCurrentPage(prevPage => Math.max(prevPage - 1, 1))\n }\n const handleNextPage = () => {\n setCurrentPage(prevPage => Math.min(prevPage + 1, totalPages))\n }\n const handleLastPage = () => {\n setCurrentPage(totalPages)\n }\n\n const handleContinue = () => {\n onEvent(companyEvents.COMPANY_LOCATION_DONE)\n }\n const handleAddLocation = () => {\n onEvent(companyEvents.COMPANY_LOCATION_CREATE)\n }\n const handleEditLocation = (uuid: string) => {\n onEvent(companyEvents.COMPANY_LOCATION_EDIT, { uuid })\n }\n\n return (\n <section className={className}>\n <LocationsListProvider\n value={{\n locationList: locationList ?? [],\n currentPage,\n totalPages,\n handleFirstPage,\n handlePreviousPage,\n handleNextPage,\n handleLastPage,\n handleItemsPerPageChange,\n handleAddLocation,\n handleEditLocation,\n handleContinue,\n }}\n >\n <Flex flexDirection=\"column\" gap={32}>\n {children ? (\n children\n ) : (\n <>\n <Head />\n <List />\n <Actions />\n </>\n )}\n </Flex>\n </LocationsListProvider>\n </section>\n )\n}\n"],"names":["LocationsList","props","jsx","BaseComponent","Root","companyId","className","children","useI18n","onEvent","useBase","currentPage","setCurrentPage","useState","itemsPerPage","setItemsPerPage","locationList","httpMeta","useLocationsGetSuspense","totalPages","LocationsListProvider","prevPage","newCount","companyEvents","uuid","Flex","jsxs","Fragment","Head","List","Actions"],"mappings":";;;;;;;;;;;;;AAgBO,SAASA,EAAcC,GAA2B;AACvD,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,WAAAC,GAAW,UAAAC,KAAgC;AACpE,EAAAC,EAAQ,mBAAmB;AAC3B,QAAM,EAAE,SAAAC,EAAA,IAAYC,EAAA,GAEd,CAACC,GAAaC,CAAc,IAAIC,EAAS,CAAC,GAC1C,CAACC,GAAcC,CAAe,IAAIF,EAAS,CAAC,GAE5C;AAAA,IACJ,MAAM,EAAE,cAAAG,GAAc,UAAAC,EAAA;AAAA,EAAS,IAC7BC,EAAwB,EAAE,WAAAb,GAAW,MAAMM,GAAa,KAAKG,GAAc,GAEzEK,IAAa,OAAOF,EAAS,SAAS,QAAQ,IAAI,eAAe,KAAK,CAAC;AA4B7E,SACE,gBAAAf,EAAC,aAAQ,WAAAI,GACP,UAAA,gBAAAJ;AAAA,IAACkB;AAAA,IAAA;AAAA,MACC,OAAO;AAAA,QACL,cAAcJ,KAAgB,CAAA;AAAA,QAC9B,aAAAL;AAAA,QACA,YAAAQ;AAAA,QACA,iBA9BgB,MAAM;AAC5B,UAAAP,EAAe,CAAC;AAAA,QAClB;AAAA,QA6BQ,oBA5BmB,MAAM;AAC/B,UAAAA,EAAe,OAAY,KAAK,IAAIS,IAAW,GAAG,CAAC,CAAC;AAAA,QACtD;AAAA,QA2BQ,gBA1Be,MAAM;AAC3B,UAAAT,EAAe,OAAY,KAAK,IAAIS,IAAW,GAAGF,CAAU,CAAC;AAAA,QAC/D;AAAA,QAyBQ,gBAxBe,MAAM;AAC3B,UAAAP,EAAeO,CAAU;AAAA,QAC3B;AAAA,QAuBQ,0BArCyB,CAACG,MAAqB;AACrD,UAAAP,EAAgBO,CAAQ;AAAA,QAC1B;AAAA,QAoCQ,mBAnBkB,MAAM;AAC9B,UAAAb,EAAQc,EAAc,uBAAuB;AAAA,QAC/C;AAAA,QAkBQ,oBAjBmB,CAACC,MAAiB;AAC3C,UAAAf,EAAQc,EAAc,uBAAuB,EAAE,MAAAC,EAAA,CAAM;AAAA,QACvD;AAAA,QAgBQ,gBAxBe,MAAM;AAC3B,UAAAf,EAAQc,EAAc,qBAAqB;AAAA,QAC7C;AAAA,MAsBQ;AAAA,MAGF,UAAA,gBAAArB,EAACuB,KAAK,eAAc,UAAS,KAAK,IAC/B,UAAAlB,KAGC,gBAAAmB,EAAAC,GAAA,EACE,UAAA;AAAA,QAAA,gBAAAzB,EAAC0B,GAAA,EAAK;AAAA,0BACLC,GAAA,EAAK;AAAA,0BACLC,GAAA,CAAA,CAAQ;AAAA,MAAA,EAAA,CACX,EAAA,CAEJ;AAAA,IAAA;AAAA,EAAA,GAEJ;AAEJ;"}
@@ -2,21 +2,17 @@ import "react/jsx-runtime";
2
2
  import "react";
3
3
  import "react-error-boundary";
4
4
  import "react-i18next";
5
- import "@gusto/embedded-api/models/errors/apierror";
6
- import "@gusto/embedded-api/models/errors/sdkvalidationerror";
7
- import "@gusto/embedded-api/models/errors/unprocessableentityerrorobject";
8
- import "@tanstack/react-query";
9
5
  import "../../../Base/useBase.js";
10
6
  import "../../../../shared/constants.js";
11
7
  import "classnames";
12
8
  import "dompurify";
13
9
  import "../../../../contexts/ComponentAdapter/useComponentContext.js";
14
10
  import { createCompoundContext as o } from "../../../Base/createCompoundContext.js";
15
- const [d, f] = o(
11
+ const [a, C] = o(
16
12
  "CompanyDocumentListContext"
17
13
  );
18
14
  export {
19
- f as LocationsListProvider,
20
- d as useLocationsList
15
+ C as LocationsListProvider,
16
+ a as useLocationsList
21
17
  };
22
18
  //# sourceMappingURL=useLocationsList.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useLocationsList.js","sources":["../../../../../src/components/Company/Locations/LocationsList/useLocationsList.ts"],"sourcesContent":["import { type Location } from '@gusto/embedded-api/models/components/location'\nimport { createCompoundContext } from '@/components/Base'\n\ntype LocationsListContextType = {\n locationList: Location[]\n totalPages: number\n currentPage: number\n handleItemsPerPageChange: (n: number) => void\n handleFirstPage: () => void\n handlePreviousPage: () => void\n handleNextPage: () => void\n handleLastPage: () => void\n handleEditLocation: (uuid: string) => void\n handleAddLocation: () => void\n handleContinue: () => void\n}\n\nconst [useLocationsList, LocationsListProvider] = createCompoundContext<LocationsListContextType>(\n 'CompanyDocumentListContext',\n)\n\nexport { useLocationsList, LocationsListProvider }\n"],"names":["useLocationsList","LocationsListProvider","createCompoundContext"],"mappings":";;;;;;;;;;;;;;AAiBA,MAAM,CAACA,GAAkBC,CAAqB,IAAIC;AAAA,EAChD;AACF;"}
1
+ {"version":3,"file":"useLocationsList.js","sources":["../../../../../src/components/Company/Locations/LocationsList/useLocationsList.ts"],"sourcesContent":["import { type Location } from '@gusto/embedded-api/models/components/location'\nimport { createCompoundContext } from '@/components/Base'\n\ntype LocationsListContextType = {\n locationList: Location[]\n totalPages: number\n currentPage: number\n handleItemsPerPageChange: (n: number) => void\n handleFirstPage: () => void\n handlePreviousPage: () => void\n handleNextPage: () => void\n handleLastPage: () => void\n handleEditLocation: (uuid: string) => void\n handleAddLocation: () => void\n handleContinue: () => void\n}\n\nconst [useLocationsList, LocationsListProvider] = createCompoundContext<LocationsListContextType>(\n 'CompanyDocumentListContext',\n)\n\nexport { useLocationsList, LocationsListProvider }\n"],"names":["useLocationsList","LocationsListProvider","createCompoundContext"],"mappings":";;;;;;;;;;AAiBA,MAAM,CAACA,GAAkBC,CAAqB,IAAIC;AAAA,EAChD;AACF;"}
@@ -1,18 +1,19 @@
1
- import { jsxs as i, jsx as o } from "react/jsx-runtime";
1
+ import { jsxs as i, jsx as n } from "react/jsx-runtime";
2
2
  import { useTranslation as m } from "react-i18next";
3
3
  import { useOnboardingOverview as l } from "./context.js";
4
- import { Flex as a } from "../../Common/Flex/Flex.js";
4
+ import { Flex as p } from "../../Common/Flex/Flex.js";
5
5
  import "classnames";
6
- import { useComponentContext as d } from "../../../contexts/ComponentAdapter/useComponentContext.js";
7
- const f = () => {
8
- const e = d(), { onboardingCompleted: t, handleDone: r } = l(), { t: n } = m("Company.OnboardingOverview");
9
- return t ? /* @__PURE__ */ i(a, { alignItems: "center", flexDirection: "column", gap: 8, children: [
10
- /* @__PURE__ */ o(e.Heading, { as: "h2", textAlign: "center", children: n("onboardingCompletedTitle") }),
11
- /* @__PURE__ */ o("p", { children: n("onboardingCompletedDescription") }),
12
- /* @__PURE__ */ o(e.Button, { variant: "secondary", onClick: r, children: n("onboardingCompletedCta") })
6
+ import "../../../shared/constants.js";
7
+ import { useComponentContext as a } from "../../../contexts/ComponentAdapter/useComponentContext.js";
8
+ const x = () => {
9
+ const e = a(), { onboardingCompleted: t, handleDone: r } = l(), { t: o } = m("Company.OnboardingOverview");
10
+ return t ? /* @__PURE__ */ i(p, { alignItems: "center", flexDirection: "column", gap: 8, children: [
11
+ /* @__PURE__ */ n(e.Heading, { as: "h2", textAlign: "center", children: o("onboardingCompletedTitle") }),
12
+ /* @__PURE__ */ n("p", { children: o("onboardingCompletedDescription") }),
13
+ /* @__PURE__ */ n(e.Button, { variant: "secondary", onClick: r, children: o("onboardingCompletedCta") })
13
14
  ] }) : null;
14
15
  };
15
16
  export {
16
- f as Completed
17
+ x as Completed
17
18
  };
18
19
  //# sourceMappingURL=Completed.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Completed.js","sources":["../../../../src/components/Company/OnboardingOverview/Completed.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport { useOnboardingOverview } from './context'\nimport { Flex } from '@/components/Common'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\n\nexport const Completed = () => {\n const Components = useComponentContext()\n const { onboardingCompleted, handleDone } = useOnboardingOverview()\n const { t } = useTranslation('Company.OnboardingOverview')\n if (!onboardingCompleted) {\n return null\n }\n return (\n <Flex alignItems=\"center\" flexDirection=\"column\" gap={8}>\n <Components.Heading as=\"h2\" textAlign=\"center\">\n {t('onboardingCompletedTitle')}\n </Components.Heading>\n <p>{t('onboardingCompletedDescription')}</p>\n <Components.Button variant=\"secondary\" onClick={handleDone}>\n {t('onboardingCompletedCta')}\n </Components.Button>\n </Flex>\n )\n}\n"],"names":["Completed","Components","useComponentContext","onboardingCompleted","handleDone","useOnboardingOverview","t","useTranslation","Flex","jsx"],"mappings":";;;;;;AAKO,MAAMA,IAAY,MAAM;AAC7B,QAAMC,IAAaC,EAAA,GACb,EAAE,qBAAAC,GAAqB,YAAAC,EAAA,IAAeC,EAAA,GACtC,EAAE,GAAAC,EAAA,IAAMC,EAAe,4BAA4B;AACzD,SAAKJ,sBAIFK,GAAA,EAAK,YAAW,UAAS,eAAc,UAAS,KAAK,GACpD,UAAA;AAAA,IAAA,gBAAAC,EAACR,EAAW,SAAX,EAAmB,IAAG,MAAK,WAAU,UACnC,UAAAK,EAAE,0BAA0B,EAAA,CAC/B;AAAA,IACA,gBAAAG,EAAC,KAAA,EAAG,UAAAH,EAAE,gCAAgC,EAAA,CAAE;AAAA,IACxC,gBAAAG,EAACR,EAAW,QAAX,EAAkB,SAAQ,aAAY,SAASG,GAC7C,UAAAE,EAAE,wBAAwB,EAAA,CAC7B;AAAA,EAAA,GACF,IAXO;AAaX;"}
1
+ {"version":3,"file":"Completed.js","sources":["../../../../src/components/Company/OnboardingOverview/Completed.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport { useOnboardingOverview } from './context'\nimport { Flex } from '@/components/Common'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\n\nexport const Completed = () => {\n const Components = useComponentContext()\n const { onboardingCompleted, handleDone } = useOnboardingOverview()\n const { t } = useTranslation('Company.OnboardingOverview')\n if (!onboardingCompleted) {\n return null\n }\n return (\n <Flex alignItems=\"center\" flexDirection=\"column\" gap={8}>\n <Components.Heading as=\"h2\" textAlign=\"center\">\n {t('onboardingCompletedTitle')}\n </Components.Heading>\n <p>{t('onboardingCompletedDescription')}</p>\n <Components.Button variant=\"secondary\" onClick={handleDone}>\n {t('onboardingCompletedCta')}\n </Components.Button>\n </Flex>\n )\n}\n"],"names":["Completed","Components","useComponentContext","onboardingCompleted","handleDone","useOnboardingOverview","t","useTranslation","Flex","jsx"],"mappings":";;;;;;;AAKO,MAAMA,IAAY,MAAM;AAC7B,QAAMC,IAAaC,EAAA,GACb,EAAE,qBAAAC,GAAqB,YAAAC,EAAA,IAAeC,EAAA,GACtC,EAAE,GAAAC,EAAA,IAAMC,EAAe,4BAA4B;AACzD,SAAKJ,sBAIFK,GAAA,EAAK,YAAW,UAAS,eAAc,UAAS,KAAK,GACpD,UAAA;AAAA,IAAA,gBAAAC,EAACR,EAAW,SAAX,EAAmB,IAAG,MAAK,WAAU,UACnC,UAAAK,EAAE,0BAA0B,EAAA,CAC/B;AAAA,IACA,gBAAAG,EAAC,KAAA,EAAG,UAAAH,EAAE,gCAAgC,EAAA,CAAE;AAAA,IACxC,gBAAAG,EAACR,EAAW,QAAX,EAAkB,SAAQ,aAAY,SAASG,GAC7C,UAAAE,EAAE,wBAAwB,EAAA,CAC7B;AAAA,EAAA,GACF,IAXO;AAaX;"}
@@ -1,17 +1,18 @@
1
- import { jsxs as l, jsx as t } from "react/jsx-runtime";
2
- import { useTranslation as p } from "react-i18next";
1
+ import { jsxs as p, jsx as t } from "react/jsx-runtime";
2
+ import { useTranslation as l } from "react-i18next";
3
3
  import { useOnboardingOverview as a } from "./context.js";
4
4
  import { Flex as c } from "../../Common/Flex/Flex.js";
5
5
  import "classnames";
6
+ import "../../../shared/constants.js";
6
7
  import { ActionsLayout as u } from "../../Common/ActionsLayout/ActionsLayout.js";
7
8
  import { RequirementsList as d } from "../../Common/RequirementsList/RequirementsList.js";
8
9
  import { useComponentContext as g } from "../../../contexts/ComponentAdapter/useComponentContext.js";
9
- const b = () => {
10
- const r = g(), { onboardingSteps: n, onboardingCompleted: s, handleContinue: m } = a(), { t: e } = p("Company.OnboardingOverview");
10
+ const D = () => {
11
+ const r = g(), { onboardingSteps: n, onboardingCompleted: s, handleContinue: m } = a(), { t: e } = l("Company.OnboardingOverview");
11
12
  if (s)
12
13
  return null;
13
14
  const o = !n?.some((i) => i.required && i.completed);
14
- return /* @__PURE__ */ l(c, { flexDirection: "column", alignItems: "flex-start", gap: 8, children: [
15
+ return /* @__PURE__ */ p(c, { flexDirection: "column", alignItems: "flex-start", gap: 8, children: [
15
16
  /* @__PURE__ */ t(r.Heading, { as: "h2", children: e(o ? "initialSetupTitle" : "missingRequirementsTitle") }),
16
17
  /* @__PURE__ */ t("p", { children: e(o ? "initialSetupDescription" : "missingRequirementsDescription") }),
17
18
  n && /* @__PURE__ */ t(
@@ -28,6 +29,6 @@ const b = () => {
28
29
  ] });
29
30
  };
30
31
  export {
31
- b as MissingRequirements
32
+ D as MissingRequirements
32
33
  };
33
34
  //# sourceMappingURL=MissingRequirements.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"MissingRequirements.js","sources":["../../../../src/components/Company/OnboardingOverview/MissingRequirements.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport { useOnboardingOverview } from './context'\nimport { ActionsLayout, Flex } from '@/components/Common'\nimport { RequirementsList } from '@/components/Common/RequirementsList/RequirementsList'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\n\nexport const MissingRequirements = () => {\n const Components = useComponentContext()\n const { onboardingSteps, onboardingCompleted, handleContinue } = useOnboardingOverview()\n const { t } = useTranslation('Company.OnboardingOverview')\n\n if (onboardingCompleted) {\n return null\n }\n\n const isInitialSetup = !onboardingSteps?.some(step => step.required && step.completed)\n\n return (\n <Flex flexDirection=\"column\" alignItems=\"flex-start\" gap={8}>\n <Components.Heading as=\"h2\">\n {t(isInitialSetup ? 'initialSetupTitle' : 'missingRequirementsTitle')}\n </Components.Heading>\n <p>{t(isInitialSetup ? 'initialSetupDescription' : 'missingRequirementsDescription')}</p>\n {onboardingSteps && (\n <RequirementsList\n requirements={onboardingSteps.map(step => ({\n completed: step.completed!,\n title: t(`stepTitles.${step.id!}`),\n description: t(`stepDescriptions.${step.id!}`),\n }))}\n />\n )}\n <ActionsLayout>\n <Components.Button variant=\"secondary\" onClick={handleContinue}>\n {t(isInitialSetup ? 'initialSetupCta' : 'missingRequirementsCta')}\n </Components.Button>\n </ActionsLayout>\n </Flex>\n )\n}\n"],"names":["MissingRequirements","Components","useComponentContext","onboardingSteps","onboardingCompleted","handleContinue","useOnboardingOverview","t","useTranslation","isInitialSetup","step","Flex","jsx","RequirementsList","ActionsLayout"],"mappings":";;;;;;;;AAMO,MAAMA,IAAsB,MAAM;AACvC,QAAMC,IAAaC,EAAA,GACb,EAAE,iBAAAC,GAAiB,qBAAAC,GAAqB,gBAAAC,EAAA,IAAmBC,EAAA,GAC3D,EAAE,GAAAC,EAAA,IAAMC,EAAe,4BAA4B;AAEzD,MAAIJ;AACF,WAAO;AAGT,QAAMK,IAAiB,CAACN,GAAiB,KAAK,OAAQO,EAAK,YAAYA,EAAK,SAAS;AAErF,2BACGC,GAAA,EAAK,eAAc,UAAS,YAAW,cAAa,KAAK,GACxD,UAAA;AAAA,IAAA,gBAAAC,EAACX,EAAW,SAAX,EAAmB,IAAG,MACpB,UAAAM,EAAEE,IAAiB,sBAAsB,0BAA0B,EAAA,CACtE;AAAA,sBACC,KAAA,EAAG,UAAAF,EAAEE,IAAiB,4BAA4B,gCAAgC,GAAE;AAAA,IACpFN,KACC,gBAAAS;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,cAAcV,EAAgB,IAAI,CAAAO,OAAS;AAAA,UACzC,WAAWA,EAAK;AAAA,UAChB,OAAOH,EAAE,cAAcG,EAAK,EAAG,EAAE;AAAA,UACjC,aAAaH,EAAE,oBAAoBG,EAAK,EAAG,EAAE;AAAA,QAAA,EAC7C;AAAA,MAAA;AAAA,IAAA;AAAA,IAGN,gBAAAE,EAACE,GAAA,EACC,UAAA,gBAAAF,EAACX,EAAW,QAAX,EAAkB,SAAQ,aAAY,SAASI,GAC7C,UAAAE,EAAEE,IAAiB,oBAAoB,wBAAwB,GAClE,EAAA,CACF;AAAA,EAAA,GACF;AAEJ;"}
1
+ {"version":3,"file":"MissingRequirements.js","sources":["../../../../src/components/Company/OnboardingOverview/MissingRequirements.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport { useOnboardingOverview } from './context'\nimport { ActionsLayout, Flex } from '@/components/Common'\nimport { RequirementsList } from '@/components/Common/RequirementsList/RequirementsList'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\n\nexport const MissingRequirements = () => {\n const Components = useComponentContext()\n const { onboardingSteps, onboardingCompleted, handleContinue } = useOnboardingOverview()\n const { t } = useTranslation('Company.OnboardingOverview')\n\n if (onboardingCompleted) {\n return null\n }\n\n const isInitialSetup = !onboardingSteps?.some(step => step.required && step.completed)\n\n return (\n <Flex flexDirection=\"column\" alignItems=\"flex-start\" gap={8}>\n <Components.Heading as=\"h2\">\n {t(isInitialSetup ? 'initialSetupTitle' : 'missingRequirementsTitle')}\n </Components.Heading>\n <p>{t(isInitialSetup ? 'initialSetupDescription' : 'missingRequirementsDescription')}</p>\n {onboardingSteps && (\n <RequirementsList\n requirements={onboardingSteps.map(step => ({\n completed: step.completed!,\n title: t(`stepTitles.${step.id!}`),\n description: t(`stepDescriptions.${step.id!}`),\n }))}\n />\n )}\n <ActionsLayout>\n <Components.Button variant=\"secondary\" onClick={handleContinue}>\n {t(isInitialSetup ? 'initialSetupCta' : 'missingRequirementsCta')}\n </Components.Button>\n </ActionsLayout>\n </Flex>\n )\n}\n"],"names":["MissingRequirements","Components","useComponentContext","onboardingSteps","onboardingCompleted","handleContinue","useOnboardingOverview","t","useTranslation","isInitialSetup","step","Flex","jsx","RequirementsList","ActionsLayout"],"mappings":";;;;;;;;;AAMO,MAAMA,IAAsB,MAAM;AACvC,QAAMC,IAAaC,EAAA,GACb,EAAE,iBAAAC,GAAiB,qBAAAC,GAAqB,gBAAAC,EAAA,IAAmBC,EAAA,GAC3D,EAAE,GAAAC,EAAA,IAAMC,EAAe,4BAA4B;AAEzD,MAAIJ;AACF,WAAO;AAGT,QAAMK,IAAiB,CAACN,GAAiB,KAAK,OAAQO,EAAK,YAAYA,EAAK,SAAS;AAErF,2BACGC,GAAA,EAAK,eAAc,UAAS,YAAW,cAAa,KAAK,GACxD,UAAA;AAAA,IAAA,gBAAAC,EAACX,EAAW,SAAX,EAAmB,IAAG,MACpB,UAAAM,EAAEE,IAAiB,sBAAsB,0BAA0B,EAAA,CACtE;AAAA,sBACC,KAAA,EAAG,UAAAF,EAAEE,IAAiB,4BAA4B,gCAAgC,GAAE;AAAA,IACpFN,KACC,gBAAAS;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,cAAcV,EAAgB,IAAI,CAAAO,OAAS;AAAA,UACzC,WAAWA,EAAK;AAAA,UAChB,OAAOH,EAAE,cAAcG,EAAK,EAAG,EAAE;AAAA,UACjC,aAAaH,EAAE,oBAAoBG,EAAK,EAAG,EAAE;AAAA,QAAA,EAC7C;AAAA,MAAA;AAAA,IAAA;AAAA,IAGN,gBAAAE,EAACE,GAAA,EACC,UAAA,gBAAAF,EAACX,EAAW,QAAX,EAAkB,SAAQ,aAAY,SAASI,GAC7C,UAAAE,EAAEE,IAAiB,oBAAoB,wBAAwB,GAClE,EAAA,CACF;AAAA,EAAA,GACF;AAEJ;"}
@@ -1,5 +1,5 @@
1
1
  import { jsx as n, jsxs as s, Fragment as c } from "react/jsx-runtime";
2
- import { useCompaniesGetOnboardingStatusSuspense as p } from "@gusto/embedded-api/react-query/companiesGetOnboardingStatus";
2
+ import { useCompaniesGetOnboardingStatusSuspense as p } from "/home/runner/work/embedded-react-sdk/embedded-react-sdk/node_modules/@gusto/embedded-api/esm/react-query/companiesGetOnboardingStatus.js";
3
3
  import { OnboardingOverviewProvider as l } from "./context.js";
4
4
  import { MissingRequirements as u } from "./MissingRequirements.js";
5
5
  import { Completed as O } from "./Completed.js";
@@ -7,10 +7,9 @@ import { BaseComponent as f } from "../../Base/Base.js";
7
7
  import { useBase as v } from "../../Base/useBase.js";
8
8
  import { useI18n as C, useComponentDictionary as g } from "../../../i18n/I18n.js";
9
9
  import { Flex as h } from "../../Common/Flex/Flex.js";
10
- import "react-i18next";
11
10
  import "classnames";
12
11
  import { componentEvents as i } from "../../../shared/constants.js";
13
- function A(o) {
12
+ function j(o) {
14
13
  return C("Company.OnboardingOverview"), g("Company.OnboardingOverview", o.dictionary), /* @__PURE__ */ n(f, { ...o, children: /* @__PURE__ */ n(b, { ...o, children: o.children }) });
15
14
  }
16
15
  const b = ({ companyId: o, className: t, children: e }) => {
@@ -36,6 +35,6 @@ const b = ({ companyId: o, className: t, children: e }) => {
36
35
  ) });
37
36
  };
38
37
  export {
39
- A as OnboardingOverview
38
+ j as OnboardingOverview
40
39
  };
41
40
  //# sourceMappingURL=OnboardingOverview.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"OnboardingOverview.js","sources":["../../../../src/components/Company/OnboardingOverview/OnboardingOverview.tsx"],"sourcesContent":["import { useCompaniesGetOnboardingStatusSuspense } from '@gusto/embedded-api/react-query/companiesGetOnboardingStatus'\nimport { OnboardingOverviewProvider } from './context'\nimport { MissingRequirements } from './MissingRequirements'\nimport { Completed } from './Completed'\nimport {\n BaseComponent,\n useBase,\n type BaseComponentInterface,\n type CommonComponentInterface,\n} from '@/components/Base'\nimport { useI18n } from '@/i18n'\nimport { Flex } from '@/components/Common'\nimport { componentEvents } from '@/shared/constants'\nimport { useComponentDictionary } from '@/i18n/I18n'\n\ninterface OnboardingOverviewProps extends CommonComponentInterface<'Company.OnboardingOverview'> {\n companyId: string\n}\n\nexport function OnboardingOverview(props: OnboardingOverviewProps & BaseComponentInterface) {\n useI18n('Company.OnboardingOverview')\n useComponentDictionary('Company.OnboardingOverview', props.dictionary)\n return (\n <BaseComponent {...props}>\n <Root {...props}>{props.children}</Root>\n </BaseComponent>\n )\n}\n\nconst Root = ({ companyId, className, children }: OnboardingOverviewProps) => {\n const { onEvent } = useBase()\n\n const { data } = useCompaniesGetOnboardingStatusSuspense({ companyUuid: companyId })\n const { onboardingCompleted, onboardingSteps } = data.companyOnboardingStatus!\n\n const handleDone = () => {\n onEvent(componentEvents.COMPANY_OVERVIEW_DONE)\n }\n const handleContinue = () => {\n onEvent(componentEvents.COMPANY_OVERVIEW_CONTINUE)\n }\n\n return (\n <section className={className}>\n <OnboardingOverviewProvider\n value={{\n onboardingCompleted,\n onboardingSteps,\n handleDone,\n handleContinue,\n }}\n >\n <Flex flexDirection=\"column\" gap={32}>\n {children ? (\n children\n ) : (\n <>\n <Completed />\n <MissingRequirements />\n </>\n )}\n </Flex>\n </OnboardingOverviewProvider>\n </section>\n )\n}\n"],"names":["OnboardingOverview","props","useI18n","useComponentDictionary","jsx","BaseComponent","Root","companyId","className","children","onEvent","useBase","data","useCompaniesGetOnboardingStatusSuspense","onboardingCompleted","onboardingSteps","OnboardingOverviewProvider","componentEvents","Flex","jsxs","Fragment","Completed","MissingRequirements"],"mappings":";;;;;;;;;;;;AAmBO,SAASA,EAAmBC,GAAyD;AAC1F,SAAAC,EAAQ,4BAA4B,GACpCC,EAAuB,8BAA8BF,EAAM,UAAU,GAEnE,gBAAAG,EAACC,GAAA,EAAe,GAAGJ,GACjB,UAAA,gBAAAG,EAACE,KAAM,GAAGL,GAAQ,UAAAA,EAAM,SAAA,CAAS,EAAA,CACnC;AAEJ;AAEA,MAAMK,IAAO,CAAC,EAAE,WAAAC,GAAW,WAAAC,GAAW,UAAAC,QAAwC;AAC5E,QAAM,EAAE,SAAAC,EAAA,IAAYC,EAAA,GAEd,EAAE,MAAAC,EAAA,IAASC,EAAwC,EAAE,aAAaN,GAAW,GAC7E,EAAE,qBAAAO,GAAqB,iBAAAC,EAAA,IAAoBH,EAAK;AAStD,SACE,gBAAAR,EAAC,aAAQ,WAAAI,GACP,UAAA,gBAAAJ;AAAA,IAACY;AAAA,IAAA;AAAA,MACC,OAAO;AAAA,QACL,qBAAAF;AAAA,QACA,iBAAAC;AAAA,QACA,YAbW,MAAM;AACvB,UAAAL,EAAQO,EAAgB,qBAAqB;AAAA,QAC/C;AAAA,QAYQ,gBAXe,MAAM;AAC3B,UAAAP,EAAQO,EAAgB,yBAAyB;AAAA,QACnD;AAAA,MASQ;AAAA,MAGF,UAAA,gBAAAb,EAACc,KAAK,eAAc,UAAS,KAAK,IAC/B,UAAAT,KAGC,gBAAAU,EAAAC,GAAA,EACE,UAAA;AAAA,QAAA,gBAAAhB,EAACiB,GAAA,EAAU;AAAA,0BACVC,GAAA,CAAA,CAAoB;AAAA,MAAA,EAAA,CACvB,EAAA,CAEJ;AAAA,IAAA;AAAA,EAAA,GAEJ;AAEJ;"}
1
+ {"version":3,"file":"OnboardingOverview.js","sources":["../../../../src/components/Company/OnboardingOverview/OnboardingOverview.tsx"],"sourcesContent":["import { useCompaniesGetOnboardingStatusSuspense } from '@gusto/embedded-api/react-query/companiesGetOnboardingStatus'\nimport { OnboardingOverviewProvider } from './context'\nimport { MissingRequirements } from './MissingRequirements'\nimport { Completed } from './Completed'\nimport {\n BaseComponent,\n useBase,\n type BaseComponentInterface,\n type CommonComponentInterface,\n} from '@/components/Base'\nimport { useI18n } from '@/i18n'\nimport { Flex } from '@/components/Common'\nimport { componentEvents } from '@/shared/constants'\nimport { useComponentDictionary } from '@/i18n/I18n'\n\ninterface OnboardingOverviewProps extends CommonComponentInterface<'Company.OnboardingOverview'> {\n companyId: string\n}\n\nexport function OnboardingOverview(props: OnboardingOverviewProps & BaseComponentInterface) {\n useI18n('Company.OnboardingOverview')\n useComponentDictionary('Company.OnboardingOverview', props.dictionary)\n return (\n <BaseComponent {...props}>\n <Root {...props}>{props.children}</Root>\n </BaseComponent>\n )\n}\n\nconst Root = ({ companyId, className, children }: OnboardingOverviewProps) => {\n const { onEvent } = useBase()\n\n const { data } = useCompaniesGetOnboardingStatusSuspense({ companyUuid: companyId })\n const { onboardingCompleted, onboardingSteps } = data.companyOnboardingStatus!\n\n const handleDone = () => {\n onEvent(componentEvents.COMPANY_OVERVIEW_DONE)\n }\n const handleContinue = () => {\n onEvent(componentEvents.COMPANY_OVERVIEW_CONTINUE)\n }\n\n return (\n <section className={className}>\n <OnboardingOverviewProvider\n value={{\n onboardingCompleted,\n onboardingSteps,\n handleDone,\n handleContinue,\n }}\n >\n <Flex flexDirection=\"column\" gap={32}>\n {children ? (\n children\n ) : (\n <>\n <Completed />\n <MissingRequirements />\n </>\n )}\n </Flex>\n </OnboardingOverviewProvider>\n </section>\n )\n}\n"],"names":["OnboardingOverview","props","useI18n","useComponentDictionary","jsx","BaseComponent","Root","companyId","className","children","onEvent","useBase","data","useCompaniesGetOnboardingStatusSuspense","onboardingCompleted","onboardingSteps","OnboardingOverviewProvider","componentEvents","Flex","jsxs","Fragment","Completed","MissingRequirements"],"mappings":";;;;;;;;;;;AAmBO,SAASA,EAAmBC,GAAyD;AAC1F,SAAAC,EAAQ,4BAA4B,GACpCC,EAAuB,8BAA8BF,EAAM,UAAU,GAEnE,gBAAAG,EAACC,GAAA,EAAe,GAAGJ,GACjB,UAAA,gBAAAG,EAACE,KAAM,GAAGL,GAAQ,UAAAA,EAAM,SAAA,CAAS,EAAA,CACnC;AAEJ;AAEA,MAAMK,IAAO,CAAC,EAAE,WAAAC,GAAW,WAAAC,GAAW,UAAAC,QAAwC;AAC5E,QAAM,EAAE,SAAAC,EAAA,IAAYC,EAAA,GAEd,EAAE,MAAAC,EAAA,IAASC,EAAwC,EAAE,aAAaN,GAAW,GAC7E,EAAE,qBAAAO,GAAqB,iBAAAC,EAAA,IAAoBH,EAAK;AAStD,SACE,gBAAAR,EAAC,aAAQ,WAAAI,GACP,UAAA,gBAAAJ;AAAA,IAACY;AAAA,IAAA;AAAA,MACC,OAAO;AAAA,QACL,qBAAAF;AAAA,QACA,iBAAAC;AAAA,QACA,YAbW,MAAM;AACvB,UAAAL,EAAQO,EAAgB,qBAAqB;AAAA,QAC/C;AAAA,QAYQ,gBAXe,MAAM;AAC3B,UAAAP,EAAQO,EAAgB,yBAAyB;AAAA,QACnD;AAAA,MASQ;AAAA,MAGF,UAAA,gBAAAb,EAACc,KAAK,eAAc,UAAS,KAAK,IAC/B,UAAAT,KAGC,gBAAAU,EAAAC,GAAA,EACE,UAAA;AAAA,QAAA,gBAAAhB,EAACiB,GAAA,EAAU;AAAA,0BACVC,GAAA,CAAA,CAAoB;AAAA,MAAA,EAAA,CACvB,EAAA,CAEJ;AAAA,IAAA;AAAA,EAAA,GAEJ;AAEJ;"}
@@ -2,19 +2,15 @@ import "react/jsx-runtime";
2
2
  import "react";
3
3
  import "react-error-boundary";
4
4
  import "react-i18next";
5
- import "@gusto/embedded-api/models/errors/apierror";
6
- import "@gusto/embedded-api/models/errors/sdkvalidationerror";
7
- import "@gusto/embedded-api/models/errors/unprocessableentityerrorobject";
8
- import "@tanstack/react-query";
9
5
  import "../../Base/useBase.js";
10
6
  import "../../../shared/constants.js";
11
7
  import "classnames";
12
8
  import "dompurify";
13
9
  import "../../../contexts/ComponentAdapter/useComponentContext.js";
14
10
  import { createCompoundContext as o } from "../../Base/createCompoundContext.js";
15
- const [x, C] = o("OnboardingOverviewContext");
11
+ const [a, b] = o("OnboardingOverviewContext");
16
12
  export {
17
- C as OnboardingOverviewProvider,
18
- x as useOnboardingOverview
13
+ b as OnboardingOverviewProvider,
14
+ a as useOnboardingOverview
19
15
  };
20
16
  //# sourceMappingURL=context.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"context.js","sources":["../../../../src/components/Company/OnboardingOverview/context.ts"],"sourcesContent":["import type { OnboardingStep } from '@gusto/embedded-api/models/components/companyonboardingstatus'\nimport { createCompoundContext } from '@/components/Base'\n\ntype OnboardingOverviewContextType = {\n onboardingCompleted?: boolean\n onboardingSteps?: OnboardingStep[]\n handleDone: () => void\n handleContinue: () => void\n}\n\nconst [useOnboardingOverview, OnboardingOverviewProvider] =\n createCompoundContext<OnboardingOverviewContextType>('OnboardingOverviewContext')\n\nexport { useOnboardingOverview, OnboardingOverviewProvider }\n"],"names":["useOnboardingOverview","OnboardingOverviewProvider","createCompoundContext"],"mappings":";;;;;;;;;;;;;;AAUA,MAAM,CAACA,GAAuBC,CAA0B,IACtDC,EAAqD,2BAA2B;"}
1
+ {"version":3,"file":"context.js","sources":["../../../../src/components/Company/OnboardingOverview/context.ts"],"sourcesContent":["import type { OnboardingStep } from '@gusto/embedded-api/models/components/companyonboardingstatus'\nimport { createCompoundContext } from '@/components/Base'\n\ntype OnboardingOverviewContextType = {\n onboardingCompleted?: boolean\n onboardingSteps?: OnboardingStep[]\n handleDone: () => void\n handleContinue: () => void\n}\n\nconst [useOnboardingOverview, OnboardingOverviewProvider] =\n createCompoundContext<OnboardingOverviewContextType>('OnboardingOverviewContext')\n\nexport { useOnboardingOverview, OnboardingOverviewProvider }\n"],"names":["useOnboardingOverview","OnboardingOverviewProvider","createCompoundContext"],"mappings":";;;;;;;;;;AAUA,MAAM,CAACA,GAAuBC,CAA0B,IACtDC,EAAqD,2BAA2B;"}
@@ -1,42 +1,41 @@
1
- import { jsx as a, jsxs as I } from "react/jsx-runtime";
1
+ import { jsx as t, jsxs as I } from "react/jsx-runtime";
2
2
  import { useForm as j, FormProvider as k } from "react-hook-form";
3
- import { zodResolver as G } from "@hookform/resolvers/zod";
3
+ import { zodResolver as G } from "/home/runner/work/embedded-react-sdk/embedded-react-sdk/node_modules/@hookform/resolvers/zod/dist/zod.mjs";
4
4
  import { useState as A, useEffect as _ } from "react";
5
- import { usePaySchedulesGetPreview as z } from "@gusto/embedded-api/react-query/paySchedulesGetPreview";
6
- import { usePaySchedulesUpdateMutation as J } from "@gusto/embedded-api/react-query/paySchedulesUpdate";
7
- import { usePaySchedulesGetAllSuspense as K } from "@gusto/embedded-api/react-query/paySchedulesGetAll";
8
- import { usePaySchedulesCreateMutation as Q } from "@gusto/embedded-api/react-query/paySchedulesCreate";
5
+ import { usePaySchedulesGetPreview as z } from "/home/runner/work/embedded-react-sdk/embedded-react-sdk/node_modules/@gusto/embedded-api/esm/react-query/paySchedulesGetPreview.js";
6
+ import { usePaySchedulesUpdateMutation as J } from "/home/runner/work/embedded-react-sdk/embedded-react-sdk/node_modules/@gusto/embedded-api/esm/react-query/paySchedulesUpdate.js";
7
+ import { usePaySchedulesGetAllSuspense as K } from "/home/runner/work/embedded-react-sdk/embedded-react-sdk/node_modules/@gusto/embedded-api/esm/react-query/paySchedulesGetAll.js";
8
+ import { usePaySchedulesCreateMutation as Q } from "/home/runner/work/embedded-react-sdk/embedded-react-sdk/node_modules/@gusto/embedded-api/esm/react-query/paySchedulesCreate.js";
9
9
  import { PayScheduleSchema as W, PayScheduleProvider as X } from "./usePaySchedule.js";
10
10
  import { Form as Z } from "../../Common/Form/Form.js";
11
11
  import { BaseComponent as $ } from "../../Base/Base.js";
12
12
  import { useBase as V } from "../../Base/useBase.js";
13
13
  import { Flex as ee } from "../../Common/Flex/Flex.js";
14
- import "react-i18next";
15
14
  import "classnames";
16
- import { useI18n as oe, useComponentDictionary as re } from "../../../i18n/I18n.js";
17
15
  import { componentEvents as S } from "../../../shared/constants.js";
16
+ import { useI18n as oe, useComponentDictionary as re } from "../../../i18n/I18n.js";
18
17
  import { formatDateToStringDate as l } from "../../../helpers/dateFormatting.js";
19
- import { Head as te } from "./_parts/Head.js";
20
- import { List as ae } from "./_parts/List.js";
18
+ import { Head as ae } from "./_parts/Head.js";
19
+ import { List as te } from "./_parts/List.js";
21
20
  import { Edit as ne } from "./_parts/Edit.js";
22
21
  import { Actions as ce } from "./_parts/Actions.js";
23
- const He = ({
22
+ const Oe = ({
24
23
  companyId: n,
25
24
  defaultValues: s,
26
- dictionary: t,
27
- ...m
28
- }) => (oe("Company.PaySchedule"), re("Company.PaySchedule", t), /* @__PURE__ */ a($, { ...m, children: /* @__PURE__ */ a(ie, { companyId: n, defaultValues: s, children: m.children }) })), ie = ({ companyId: n, children: s, defaultValues: t }) => {
29
- const { baseSubmitHandler: m, onEvent: u, fieldErrors: h, setError: C } = V(), { data: p } = K({
25
+ dictionary: a,
26
+ ...y
27
+ }) => (oe("Company.PaySchedule"), re("Company.PaySchedule", a), /* @__PURE__ */ t($, { ...y, children: /* @__PURE__ */ t(ie, { companyId: n, defaultValues: s, children: y.children }) })), ie = ({ companyId: n, children: s, defaultValues: a }) => {
28
+ const { baseSubmitHandler: y, onEvent: u, fieldErrors: h, setError: C } = V(), { data: p } = K({
30
29
  companyId: n
31
- }), [i, y] = A(
30
+ }), [i, P] = A(
32
31
  p.payScheduleList?.length === 0 ? "ADD_PAY_SCHEDULE" : "LIST_PAY_SCHEDULES"
33
32
  ), [f, w] = A(null), L = {
34
- frequency: t?.frequency ?? "Every week",
35
- anchorPayDate: t?.anchorPayDate ? new Date(t.anchorPayDate) : void 0,
36
- anchorEndOfPayPeriod: t?.anchorEndOfPayPeriod ? new Date(t.anchorEndOfPayPeriod) : void 0,
37
- day1: t?.day1 ?? void 0,
38
- day2: t?.day2 ?? void 0,
39
- customName: t?.customName ?? "",
33
+ frequency: a?.frequency ?? "Every week",
34
+ anchorPayDate: a?.anchorPayDate ? new Date(a.anchorPayDate) : void 0,
35
+ anchorEndOfPayPeriod: a?.anchorEndOfPayPeriod ? new Date(a.anchorEndOfPayPeriod) : void 0,
36
+ day1: a?.day1 ?? void 0,
37
+ day2: a?.day2 ?? void 0,
38
+ customName: a?.customName ?? "",
40
39
  customTwicePerMonth: "false"
41
40
  }, q = Q(), T = J(), E = j({
42
41
  resolver: G(W),
@@ -64,9 +63,9 @@ const He = ({
64
63
  e.frequency === "Twice per month" && e.day1 === 15 && e.day2 === 31 && e.customTwicePerMonth === void 0 ? D("customTwicePerMonth", "1st15th") : e.frequency === "Twice per month" && e.customTwicePerMonth === void 0 && D("customTwicePerMonth", "custom");
65
64
  }, [e.frequency, e.day1, e.day2, D, e.customTwicePerMonth]);
66
65
  const b = () => {
67
- y("ADD_PAY_SCHEDULE"), d({});
66
+ P("ADD_PAY_SCHEDULE"), d({});
68
67
  }, g = () => {
69
- y("LIST_PAY_SCHEDULES"), d({}), H(), C(null);
68
+ P("LIST_PAY_SCHEDULES"), d({}), H(), C(null);
70
69
  }, B = (o) => {
71
70
  d({
72
71
  frequency: o.frequency,
@@ -75,20 +74,20 @@ const He = ({
75
74
  day1: o.day1 ?? void 0,
76
75
  day2: o.day2 ?? void 0,
77
76
  customName: o.customName ?? ""
78
- }), w(o), y("EDIT_PAY_SCHEDULE");
77
+ }), w(o), P("EDIT_PAY_SCHEDULE");
79
78
  }, x = () => {
80
79
  u(S.PAY_SCHEDULE_DONE);
81
80
  }, R = async (o) => {
82
- await m(o, async (r) => {
83
- const P = (c) => c && l(c) || "";
81
+ await y(o, async (r) => {
82
+ const m = (c) => c && l(c) || "";
84
83
  if (i === "ADD_PAY_SCHEDULE") {
85
84
  const c = await q.mutateAsync({
86
85
  request: {
87
86
  companyId: n,
88
87
  requestBody: {
89
88
  frequency: r.frequency,
90
- anchorPayDate: P(r.anchorPayDate),
91
- anchorEndOfPayPeriod: P(r.anchorEndOfPayPeriod),
89
+ anchorPayDate: m(r.anchorPayDate),
90
+ anchorEndOfPayPeriod: m(r.anchorEndOfPayPeriod),
92
91
  customName: r.customName,
93
92
  day1: r.day1,
94
93
  day2: r.day2
@@ -103,8 +102,8 @@ const He = ({
103
102
  companyId: n,
104
103
  requestBody: {
105
104
  frequency: r.frequency,
106
- anchorPayDate: P(r.anchorPayDate),
107
- anchorEndOfPayPeriod: P(r.anchorEndOfPayPeriod),
105
+ anchorPayDate: m(r.anchorPayDate),
106
+ anchorEndOfPayPeriod: m(r.anchorEndOfPayPeriod),
108
107
  customName: r.customName,
109
108
  day1: r.day1,
110
109
  day2: r.day2,
@@ -114,10 +113,10 @@ const He = ({
114
113
  });
115
114
  u(S.PAY_SCHEDULE_UPDATED, F), d();
116
115
  }
117
- y("LIST_PAY_SCHEDULES");
116
+ P("LIST_PAY_SCHEDULES");
118
117
  });
119
118
  };
120
- return /* @__PURE__ */ a(
119
+ return /* @__PURE__ */ t(
121
120
  X,
122
121
  {
123
122
  value: {
@@ -132,16 +131,16 @@ const He = ({
132
131
  payPreviewLoading: N,
133
132
  currentPaySchedule: f
134
133
  },
135
- children: /* @__PURE__ */ a("span", { "data-testid": "pay-schedule-edit-form", children: /* @__PURE__ */ a(k, { ...E, children: /* @__PURE__ */ a(Z, { onSubmit: E.handleSubmit(R), children: s || /* @__PURE__ */ I(ee, { flexDirection: "column", children: [
136
- /* @__PURE__ */ a(te, {}),
137
- /* @__PURE__ */ a(ae, {}),
138
- /* @__PURE__ */ a(ne, {}),
139
- /* @__PURE__ */ a(ce, {})
134
+ children: /* @__PURE__ */ t("span", { "data-testid": "pay-schedule-edit-form", children: /* @__PURE__ */ t(k, { ...E, children: /* @__PURE__ */ t(Z, { onSubmit: E.handleSubmit(R), children: s || /* @__PURE__ */ I(ee, { flexDirection: "column", children: [
135
+ /* @__PURE__ */ t(ae, {}),
136
+ /* @__PURE__ */ t(te, {}),
137
+ /* @__PURE__ */ t(ne, {}),
138
+ /* @__PURE__ */ t(ce, {})
140
139
  ] }) }) }) })
141
140
  }
142
141
  );
143
142
  };
144
143
  export {
145
- He as PaySchedule
144
+ Oe as PaySchedule
146
145
  };
147
146
  //# sourceMappingURL=PaySchedule.js.map