@gusto/embedded-react-sdk 0.31.1 → 0.32.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 (415) hide show
  1. package/CHANGELOG.md +40 -0
  2. package/dist/assets/icons/icon-arrow-right.svg.js +10 -0
  3. package/dist/assets/icons/icon-arrow-right.svg.js.map +1 -0
  4. package/dist/components/Base/Base.js +46 -45
  5. package/dist/components/Base/Base.js.map +1 -1
  6. package/dist/components/Base/useBase.d.ts +2 -3
  7. package/dist/components/Base/useBase.js.map +1 -1
  8. package/dist/components/Base/useBaseSubmit.js +32 -19
  9. package/dist/components/Base/useBaseSubmit.js.map +1 -1
  10. package/dist/components/Common/DataView/DataView.js +1 -1
  11. package/dist/components/Common/DocumentList/DocumentList.js +1 -1
  12. package/dist/components/Common/DocumentViewer/DocumentViewer.js +1 -1
  13. package/dist/components/Common/FlowBreadcrumbs/FlowBreadcrumbs.js +1 -1
  14. package/dist/components/Common/RequirementsList/RequirementsList.js +1 -1
  15. package/dist/components/Common/RequirementsList/RequirementsList.js.map +1 -1
  16. package/dist/components/Common/RequirementsList/RequirementsList.module.scss.js +1 -1
  17. package/dist/components/Common/SignatureForm/SignatureForm.js +12 -10
  18. package/dist/components/Common/SignatureForm/SignatureForm.js.map +1 -1
  19. package/dist/components/Common/SignatureForm/SignatureFormActions.js +3 -2
  20. package/dist/components/Common/SignatureForm/SignatureFormActions.js.map +1 -1
  21. package/dist/components/Common/SignatureForm/SignatureFormFields.js +7 -6
  22. package/dist/components/Common/SignatureForm/SignatureFormFields.js.map +1 -1
  23. package/dist/components/Common/UI/Box/Box.d.ts +2 -0
  24. package/dist/components/Common/UI/Box/Box.js +13 -0
  25. package/dist/components/Common/UI/Box/Box.js.map +1 -0
  26. package/dist/components/Common/UI/Box/Box.module.scss.js +12 -0
  27. package/dist/components/Common/UI/Box/Box.module.scss.js.map +1 -0
  28. package/dist/components/Common/UI/Box/BoxTypes.d.ts +15 -0
  29. package/dist/components/Common/UI/Box/index.d.ts +2 -0
  30. package/dist/components/Common/UI/Dialog/Dialog.js +1 -1
  31. package/dist/components/Common/UI/Input/InputTypes.d.ts +1 -1
  32. package/dist/components/Common/UI/Input/InputTypes.js.map +1 -1
  33. package/dist/components/Common/UI/List/List.module.scss.js +1 -1
  34. package/dist/components/Common/UI/Modal/Modal.js +1 -1
  35. package/dist/components/Common/UI/Tabs/Tabs.js +1 -1
  36. package/dist/components/Common/UI/TextInput/TextInput.js +30 -28
  37. package/dist/components/Common/UI/TextInput/TextInput.js.map +1 -1
  38. package/dist/components/Common/UI/TextInput/TextInputTypes.d.ts +1 -1
  39. package/dist/components/Common/UI/TextInput/TextInputTypes.js.map +1 -1
  40. package/dist/components/Company/AssignSignatory/AssignSignatory.js +3 -2
  41. package/dist/components/Company/AssignSignatory/AssignSignatory.js.map +1 -1
  42. package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js +4 -3
  43. package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js.map +1 -1
  44. package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.js +3 -2
  45. package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.js.map +1 -1
  46. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatory.js +1 -1
  47. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.js +12 -12
  48. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js +5 -4
  49. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js.map +1 -1
  50. package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.js +3 -2
  51. package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.js.map +1 -1
  52. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatory.js +1 -1
  53. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatoryForm.js +1 -1
  54. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js +5 -4
  55. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js.map +1 -1
  56. package/dist/components/Company/AssignSignatory/TitleSelect.js +5 -5
  57. package/dist/components/Company/AssignSignatory/TitleSelect.js.map +1 -1
  58. package/dist/components/Company/AssignSignatory/useAssignSignatory.js +7 -6
  59. package/dist/components/Company/AssignSignatory/useAssignSignatory.js.map +1 -1
  60. package/dist/components/Company/BankAccount/BankAccountForm/Actions.js +9 -8
  61. package/dist/components/Company/BankAccount/BankAccountForm/Actions.js.map +1 -1
  62. package/dist/components/Company/BankAccount/BankAccountForm/Form.js +7 -5
  63. package/dist/components/Company/BankAccount/BankAccountForm/Form.js.map +1 -1
  64. package/dist/components/Company/BankAccount/BankAccountForm/context.js +5 -4
  65. package/dist/components/Company/BankAccount/BankAccountForm/context.js.map +1 -1
  66. package/dist/components/Company/BankAccount/BankAccountList/Actions.js +3 -2
  67. package/dist/components/Company/BankAccount/BankAccountList/Actions.js.map +1 -1
  68. package/dist/components/Company/BankAccount/BankAccountVerify/Actions.js +7 -6
  69. package/dist/components/Company/BankAccount/BankAccountVerify/Actions.js.map +1 -1
  70. package/dist/components/Company/BankAccount/BankAccountVerify/Form.js +7 -5
  71. package/dist/components/Company/BankAccount/BankAccountVerify/Form.js.map +1 -1
  72. package/dist/components/Company/DocumentSigner/DocumentList/Actions.js +3 -2
  73. package/dist/components/Company/DocumentSigner/DocumentList/Actions.js.map +1 -1
  74. package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.js +9 -8
  75. package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.js.map +1 -1
  76. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js +5 -4
  77. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  78. package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js +4 -3
  79. package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js.map +1 -1
  80. package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js +5 -4
  81. package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js.map +1 -1
  82. package/dist/components/Company/FederalTaxes/Actions.js +7 -6
  83. package/dist/components/Company/FederalTaxes/Actions.js.map +1 -1
  84. package/dist/components/Company/FederalTaxes/FederalTaxes.js +4 -3
  85. package/dist/components/Company/FederalTaxes/FederalTaxes.js.map +1 -1
  86. package/dist/components/Company/FederalTaxes/Form.js +5 -3
  87. package/dist/components/Company/FederalTaxes/Form.js.map +1 -1
  88. package/dist/components/Company/FederalTaxes/useFederalTaxes.js +7 -6
  89. package/dist/components/Company/FederalTaxes/useFederalTaxes.js.map +1 -1
  90. package/dist/components/Company/Industry/Actions.js +8 -7
  91. package/dist/components/Company/Industry/Actions.js.map +1 -1
  92. package/dist/components/Company/Industry/Context.js +8 -7
  93. package/dist/components/Company/Industry/Context.js.map +1 -1
  94. package/dist/components/Company/Industry/Edit.js +3 -2
  95. package/dist/components/Company/Industry/Edit.js.map +1 -1
  96. package/dist/components/Company/Locations/LocationForm/Actions.js +7 -6
  97. package/dist/components/Company/Locations/LocationForm/Actions.js.map +1 -1
  98. package/dist/components/Company/Locations/LocationForm/Form.js +1 -1
  99. package/dist/components/Company/Locations/LocationForm/LocationForm.js +4 -3
  100. package/dist/components/Company/Locations/LocationForm/LocationForm.js.map +1 -1
  101. package/dist/components/Company/Locations/LocationForm/useLocationForm.js +5 -4
  102. package/dist/components/Company/Locations/LocationForm/useLocationForm.js.map +1 -1
  103. package/dist/components/Company/Locations/LocationsList/Actions.js +3 -2
  104. package/dist/components/Company/Locations/LocationsList/Actions.js.map +1 -1
  105. package/dist/components/Company/Locations/LocationsList/List.js +7 -6
  106. package/dist/components/Company/Locations/LocationsList/List.js.map +1 -1
  107. package/dist/components/Company/Locations/LocationsList/LocationsList.js +4 -3
  108. package/dist/components/Company/Locations/LocationsList/LocationsList.js.map +1 -1
  109. package/dist/components/Company/Locations/LocationsList/useLocationsList.js +5 -4
  110. package/dist/components/Company/Locations/LocationsList/useLocationsList.js.map +1 -1
  111. package/dist/components/Company/OnboardingOverview/Completed.js +12 -10
  112. package/dist/components/Company/OnboardingOverview/Completed.js.map +1 -1
  113. package/dist/components/Company/OnboardingOverview/MissingRequirements.js +39 -26
  114. package/dist/components/Company/OnboardingOverview/MissingRequirements.js.map +1 -1
  115. package/dist/components/Company/OnboardingOverview/OnboardingOverview.js +8 -7
  116. package/dist/components/Company/OnboardingOverview/OnboardingOverview.js.map +1 -1
  117. package/dist/components/Company/OnboardingOverview/context.js +5 -4
  118. package/dist/components/Company/OnboardingOverview/context.js.map +1 -1
  119. package/dist/components/Company/PaySchedule/PaySchedule.js +25 -22
  120. package/dist/components/Company/PaySchedule/PaySchedule.js.map +1 -1
  121. package/dist/components/Company/PaySchedule/_parts/Actions.js +3 -2
  122. package/dist/components/Company/PaySchedule/_parts/Actions.js.map +1 -1
  123. package/dist/components/Company/PaySchedule/_parts/Edit.js +15 -15
  124. package/dist/components/Company/PaySchedule/_parts/Head.js +13 -11
  125. package/dist/components/Company/PaySchedule/_parts/Head.js.map +1 -1
  126. package/dist/components/Company/PaySchedule/_parts/List.js +15 -13
  127. package/dist/components/Company/PaySchedule/_parts/List.js.map +1 -1
  128. package/dist/components/Company/PaySchedule/usePaySchedule.js +7 -6
  129. package/dist/components/Company/PaySchedule/usePaySchedule.js.map +1 -1
  130. package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.js +3 -2
  131. package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.js.map +1 -1
  132. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js +5 -4
  133. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js.map +1 -1
  134. package/dist/components/Company/StateTaxes/StateTaxesList/Actions.js +3 -2
  135. package/dist/components/Company/StateTaxes/StateTaxesList/Actions.js.map +1 -1
  136. package/dist/components/Company/StateTaxes/StateTaxesList/List.js +3 -2
  137. package/dist/components/Company/StateTaxes/StateTaxesList/List.js.map +1 -1
  138. package/dist/components/Company/StateTaxes/StateTaxesList/context.js +5 -4
  139. package/dist/components/Company/StateTaxes/StateTaxesList/context.js.map +1 -1
  140. package/dist/components/Company/index.js +20 -20
  141. package/dist/components/Contractor/Address/Address.js +7 -7
  142. package/dist/components/Contractor/Address/Address.js.map +1 -1
  143. package/dist/components/Contractor/Address/Form.js +1 -1
  144. package/dist/components/Contractor/Address/useAddress.js +7 -6
  145. package/dist/components/Contractor/Address/useAddress.js.map +1 -1
  146. package/dist/components/Contractor/ContractorList/index.js +32 -31
  147. package/dist/components/Contractor/ContractorList/index.js.map +1 -1
  148. package/dist/components/Contractor/NewHireReport/NewHireReport.js +14 -13
  149. package/dist/components/Contractor/NewHireReport/NewHireReport.js.map +1 -1
  150. package/dist/components/Contractor/PaymentMethod/BankAccountForm.js +12 -11
  151. package/dist/components/Contractor/PaymentMethod/BankAccountForm.js.map +1 -1
  152. package/dist/components/Contractor/PaymentMethod/PaymentMethod.js +3 -2
  153. package/dist/components/Contractor/PaymentMethod/PaymentMethod.js.map +1 -1
  154. package/dist/components/Contractor/PaymentMethod/PaymentTypeForm.js +4 -3
  155. package/dist/components/Contractor/PaymentMethod/PaymentTypeForm.js.map +1 -1
  156. package/dist/components/Contractor/Payments/CreatePayment/CreatePayment.js +135 -108
  157. package/dist/components/Contractor/Payments/CreatePayment/CreatePayment.js.map +1 -1
  158. package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.js +4 -2
  159. package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.js.map +1 -1
  160. package/dist/components/Contractor/Payments/CreatePayment/EditContractorPaymentFormSchema.d.ts +84 -0
  161. package/dist/components/Contractor/Payments/CreatePayment/EditContractorPaymentFormSchema.js +23 -0
  162. package/dist/components/Contractor/Payments/CreatePayment/EditContractorPaymentFormSchema.js.map +1 -0
  163. package/dist/components/Contractor/Payments/CreatePayment/EditContractorPaymentPresentation.d.ts +3 -31
  164. package/dist/components/Contractor/Payments/CreatePayment/EditContractorPaymentPresentation.js +63 -69
  165. package/dist/components/Contractor/Payments/CreatePayment/EditContractorPaymentPresentation.js.map +1 -1
  166. package/dist/components/Contractor/Payments/CreatePayment/FastAchSubmissionBlockerBanner.d.ts +2 -1
  167. package/dist/components/Contractor/Payments/CreatePayment/FastAchSubmissionBlockerBanner.js +29 -29
  168. package/dist/components/Contractor/Payments/CreatePayment/FastAchSubmissionBlockerBanner.js.map +1 -1
  169. package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.d.ts +2 -1
  170. package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.js +32 -29
  171. package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.js.map +1 -1
  172. package/dist/components/Contractor/Payments/PaymentFlow/PaymentFlowComponents.js +0 -1
  173. package/dist/components/Contractor/Payments/PaymentFlow/PaymentFlowComponents.js.map +1 -1
  174. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.js +4 -2
  175. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.js.map +1 -1
  176. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.js +8 -6
  177. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.js.map +1 -1
  178. package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummaryPresentation.js +4 -2
  179. package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummaryPresentation.js.map +1 -1
  180. package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.js +28 -27
  181. package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.js.map +1 -1
  182. package/dist/components/Contractor/Profile/ContractorProfileForm.js +15 -15
  183. package/dist/components/Contractor/Profile/useContractorProfile.js +4 -3
  184. package/dist/components/Contractor/Profile/useContractorProfile.js.map +1 -1
  185. package/dist/components/Contractor/Submit/Submit.js +21 -20
  186. package/dist/components/Contractor/Submit/Submit.js.map +1 -1
  187. package/dist/components/Employee/Compensation/Actions.js +13 -12
  188. package/dist/components/Employee/Compensation/Actions.js.map +1 -1
  189. package/dist/components/Employee/Compensation/Edit.js +17 -16
  190. package/dist/components/Employee/Compensation/Edit.js.map +1 -1
  191. package/dist/components/Employee/Compensation/List.js +23 -22
  192. package/dist/components/Employee/Compensation/List.js.map +1 -1
  193. package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.js +12 -11
  194. package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.js.map +1 -1
  195. package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.js +13 -12
  196. package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.js.map +1 -1
  197. package/dist/components/Employee/Deductions/DeductionsForm/GarnishmentForm.js +13 -12
  198. package/dist/components/Employee/Deductions/DeductionsForm/GarnishmentForm.js.map +1 -1
  199. package/dist/components/Employee/Deductions/DeductionsList/DeductionsList.js +8 -7
  200. package/dist/components/Employee/Deductions/DeductionsList/DeductionsList.js.map +1 -1
  201. package/dist/components/Employee/Deductions/stateMachine.js +1 -1
  202. package/dist/components/Employee/DocumentSigner/DocumentList/Actions.js +9 -8
  203. package/dist/components/Employee/DocumentSigner/DocumentList/Actions.js.map +1 -1
  204. package/dist/components/Employee/DocumentSigner/DocumentList/DocumentList.js +24 -22
  205. package/dist/components/Employee/DocumentSigner/DocumentList/DocumentList.js.map +1 -1
  206. package/dist/components/Employee/DocumentSigner/DocumentList/List.js +4 -2
  207. package/dist/components/Employee/DocumentSigner/DocumentList/List.js.map +1 -1
  208. package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.d.ts +1 -0
  209. package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js +5 -4
  210. package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  211. package/dist/components/Employee/DocumentSigner/DocumentSigner.js +9 -9
  212. package/dist/components/Employee/DocumentSigner/DocumentSigner.js.map +1 -1
  213. package/dist/components/Employee/DocumentSigner/EmploymentEligibility/EmploymentEligibilityPresentation.js +49 -43
  214. package/dist/components/Employee/DocumentSigner/EmploymentEligibility/EmploymentEligibilityPresentation.js.map +1 -1
  215. package/dist/components/Employee/DocumentSigner/I9SignatureForm/I9SignatureForm.js +150 -111
  216. package/dist/components/Employee/DocumentSigner/I9SignatureForm/I9SignatureForm.js.map +1 -1
  217. package/dist/components/Employee/DocumentSigner/SignatureForm/SignatureForm.js +3 -2
  218. package/dist/components/Employee/DocumentSigner/SignatureForm/SignatureForm.js.map +1 -1
  219. package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js +5 -4
  220. package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js.map +1 -1
  221. package/dist/components/Employee/DocumentSigner/documentSignerStateMachine.d.ts +1 -0
  222. package/dist/components/Employee/DocumentSigner/documentSignerStateMachine.js.map +1 -1
  223. package/dist/components/Employee/DocumentSigner/stateMachine.js +34 -22
  224. package/dist/components/Employee/DocumentSigner/stateMachine.js.map +1 -1
  225. package/dist/components/Employee/EmployeeDocuments/EmployeeDocumentsPresentation.js +4 -2
  226. package/dist/components/Employee/EmployeeDocuments/EmployeeDocumentsPresentation.js.map +1 -1
  227. package/dist/components/Employee/EmployeeList/Actions.js +7 -6
  228. package/dist/components/Employee/EmployeeList/Actions.js.map +1 -1
  229. package/dist/components/Employee/EmployeeList/EmployeeList.js +4 -3
  230. package/dist/components/Employee/EmployeeList/EmployeeList.js.map +1 -1
  231. package/dist/components/Employee/EmployeeList/Head.js +7 -5
  232. package/dist/components/Employee/EmployeeList/Head.js.map +1 -1
  233. package/dist/components/Employee/EmployeeList/List.js +3 -2
  234. package/dist/components/Employee/EmployeeList/List.js.map +1 -1
  235. package/dist/components/Employee/EmployeeList/useEmployeeList.js +5 -4
  236. package/dist/components/Employee/EmployeeList/useEmployeeList.js.map +1 -1
  237. package/dist/components/Employee/FederalTaxes/Actions.js +6 -5
  238. package/dist/components/Employee/FederalTaxes/Actions.js.map +1 -1
  239. package/dist/components/Employee/FederalTaxes/FederalForm.js +12 -11
  240. package/dist/components/Employee/FederalTaxes/FederalForm.js.map +1 -1
  241. package/dist/components/Employee/FederalTaxes/FederalTaxes.js +16 -15
  242. package/dist/components/Employee/FederalTaxes/FederalTaxes.js.map +1 -1
  243. package/dist/components/Employee/FederalTaxes/useFederalTaxes.js +5 -4
  244. package/dist/components/Employee/FederalTaxes/useFederalTaxes.js.map +1 -1
  245. package/dist/components/Employee/Landing/Landing.js +50 -44
  246. package/dist/components/Employee/Landing/Landing.js.map +1 -1
  247. package/dist/components/Employee/OnboardingSummary/OnboardingSummary.js +7 -7
  248. package/dist/components/Employee/PaymentMethod/Actions.js +6 -5
  249. package/dist/components/Employee/PaymentMethod/Actions.js.map +1 -1
  250. package/dist/components/Employee/PaymentMethod/BankAccountEdit.js +5 -4
  251. package/dist/components/Employee/PaymentMethod/BankAccountEdit.js.map +1 -1
  252. package/dist/components/Employee/PaymentMethod/BankAccountsList.js +3 -2
  253. package/dist/components/Employee/PaymentMethod/BankAccountsList.js.map +1 -1
  254. package/dist/components/Employee/PaymentMethod/PaymentTypeForm.js +7 -6
  255. package/dist/components/Employee/PaymentMethod/PaymentTypeForm.js.map +1 -1
  256. package/dist/components/Employee/PaymentMethod/Split.js +11 -10
  257. package/dist/components/Employee/PaymentMethod/Split.js.map +1 -1
  258. package/dist/components/Employee/PaymentMethod/usePaymentMethod.js +7 -6
  259. package/dist/components/Employee/PaymentMethod/usePaymentMethod.js.map +1 -1
  260. package/dist/components/Employee/Profile/Actions.js +6 -5
  261. package/dist/components/Employee/Profile/Actions.js.map +1 -1
  262. package/dist/components/Employee/Profile/AdminPersonalDetails.js +9 -8
  263. package/dist/components/Employee/Profile/AdminPersonalDetails.js.map +1 -1
  264. package/dist/components/Employee/Profile/HomeAddress.js +1 -1
  265. package/dist/components/Employee/Profile/PersonalDetailsInputs.js +2 -2
  266. package/dist/components/Employee/Profile/useProfile.js +5 -4
  267. package/dist/components/Employee/Profile/useProfile.js.map +1 -1
  268. package/dist/components/Employee/StateTaxes/Actions.js +6 -5
  269. package/dist/components/Employee/StateTaxes/Actions.js.map +1 -1
  270. package/dist/components/Employee/StateTaxes/StateTaxes.js +29 -29
  271. package/dist/components/Employee/StateTaxes/StateTaxes.js.map +1 -1
  272. package/dist/components/Employee/StateTaxes/useStateTaxes.js +5 -4
  273. package/dist/components/Employee/StateTaxes/useStateTaxes.js.map +1 -1
  274. package/dist/components/Employee/Taxes/Actions.js +7 -6
  275. package/dist/components/Employee/Taxes/Actions.js.map +1 -1
  276. package/dist/components/Employee/Taxes/FederalForm.js +14 -13
  277. package/dist/components/Employee/Taxes/FederalForm.js.map +1 -1
  278. package/dist/components/Employee/Taxes/Taxes.js +19 -19
  279. package/dist/components/Employee/Taxes/Taxes.js.map +1 -1
  280. package/dist/components/Employee/Taxes/useTaxes.js +5 -4
  281. package/dist/components/Employee/Taxes/useTaxes.js.map +1 -1
  282. package/dist/components/Employee/index.js +22 -22
  283. package/dist/components/Flow/Flow.js +9 -7
  284. package/dist/components/Flow/Flow.js.map +1 -1
  285. package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.js +17 -16
  286. package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.js.map +1 -1
  287. package/dist/components/InformationRequests/InformationRequestList/InformationRequestList.d.ts +0 -1
  288. package/dist/components/InformationRequests/InformationRequestList/InformationRequestList.js +32 -37
  289. package/dist/components/InformationRequests/InformationRequestList/InformationRequestList.js.map +1 -1
  290. package/dist/components/InformationRequests/InformationRequests.d.ts +1 -2
  291. package/dist/components/InformationRequests/InformationRequests.js +36 -43
  292. package/dist/components/InformationRequests/InformationRequests.js.map +1 -1
  293. package/dist/components/InformationRequests/index.js +4 -4
  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/OffCycle/OffCycleFlowComponents.js +23 -21
  297. package/dist/components/Payroll/OffCycle/OffCycleFlowComponents.js.map +1 -1
  298. package/dist/components/Payroll/OffCycleCreation/OffCycleCreation.d.ts +2 -0
  299. package/dist/components/Payroll/OffCycleCreation/OffCycleCreation.js +79 -0
  300. package/dist/components/Payroll/OffCycleCreation/OffCycleCreation.js.map +1 -0
  301. package/dist/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.d.ts +2 -0
  302. package/dist/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.js +47 -0
  303. package/dist/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.js.map +1 -0
  304. package/dist/components/Payroll/OffCycleCreation/OffCycleCreationTypes.d.ts +14 -0
  305. package/dist/components/Payroll/OffCycleCreation/index.d.ts +3 -0
  306. package/dist/components/Payroll/OffCycleDeductionsSetting/OffCycleDeductionsSetting.d.ts +2 -0
  307. package/dist/components/Payroll/OffCycleDeductionsSetting/OffCycleDeductionsSetting.js +44 -0
  308. package/dist/components/Payroll/OffCycleDeductionsSetting/OffCycleDeductionsSetting.js.map +1 -0
  309. package/dist/components/Payroll/OffCycleDeductionsSetting/index.d.ts +3 -0
  310. package/dist/components/Payroll/OffCycleDeductionsSetting/types.d.ts +10 -0
  311. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormPresentation.d.ts +1 -2
  312. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormPresentation.js +37 -0
  313. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormPresentation.js.map +1 -0
  314. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormPresentation.module.scss.js +12 -0
  315. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormPresentation.module.scss.js.map +1 -0
  316. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormTypes.d.ts +0 -4
  317. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormTypes.js +48 -0
  318. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormTypes.js.map +1 -0
  319. package/dist/components/Payroll/OffCyclePayPeriodDateForm/useOffCyclePayPeriodDateValidation.js +18 -0
  320. package/dist/components/Payroll/OffCyclePayPeriodDateForm/useOffCyclePayPeriodDateValidation.js.map +1 -0
  321. package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelection.js +26 -27
  322. package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelection.js.map +1 -1
  323. package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelectionPresentation.d.ts +3 -3
  324. package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelectionPresentation.js +17 -16
  325. package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelectionPresentation.js.map +1 -1
  326. package/dist/components/Payroll/OffCycleTaxWithholdingModal/OffCycleTaxWithholdingModal.d.ts +2 -0
  327. package/dist/components/Payroll/OffCycleTaxWithholdingModal/OffCycleTaxWithholdingModalTypes.d.ts +8 -0
  328. package/dist/components/Payroll/OffCycleTaxWithholdingModal/index.d.ts +3 -0
  329. package/dist/components/Payroll/OffCycleTaxWithholdingTable/OffCycleTaxWithholdingTable.d.ts +2 -0
  330. package/dist/components/Payroll/OffCycleTaxWithholdingTable/OffCycleTaxWithholdingTableTypes.d.ts +17 -0
  331. package/dist/components/Payroll/OffCycleTaxWithholdingTable/index.d.ts +3 -0
  332. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerAlerts.d.ts +3 -8
  333. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerAlerts.js +38 -35
  334. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerAlerts.js.map +1 -1
  335. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerList.js +25 -33
  336. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerList.js.map +1 -1
  337. package/dist/components/Payroll/PayrollBlocker/payrollHelpers.d.ts +2 -0
  338. package/dist/components/Payroll/PayrollBlocker/payrollHelpers.js +21 -19
  339. package/dist/components/Payroll/PayrollBlocker/payrollHelpers.js.map +1 -1
  340. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js +26 -26
  341. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js.map +1 -1
  342. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js +36 -36
  343. package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js +21 -19
  344. package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js.map +1 -1
  345. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js +17 -15
  346. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js.map +1 -1
  347. package/dist/components/Payroll/PayrollLanding/PayrollLandingFlowComponents.js +32 -32
  348. package/dist/components/Payroll/PayrollLanding/PayrollLandingFlowComponents.js.map +1 -1
  349. package/dist/components/Payroll/PayrollList/PayrollListPresentation.js +20 -18
  350. package/dist/components/Payroll/PayrollList/PayrollListPresentation.js.map +1 -1
  351. package/dist/components/Payroll/PayrollOverview/PayrollOverview.js +70 -67
  352. package/dist/components/Payroll/PayrollOverview/PayrollOverview.js.map +1 -1
  353. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.d.ts +2 -1
  354. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js +38 -36
  355. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js.map +1 -1
  356. package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/FastAchSubmissionBlockerBanner.d.ts +2 -1
  357. package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/FastAchSubmissionBlockerBanner.js +20 -20
  358. package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/FastAchSubmissionBlockerBanner.js.map +1 -1
  359. package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js +4 -3
  360. package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js.map +1 -1
  361. package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.js +4 -3
  362. package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.js.map +1 -1
  363. package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.js +12 -11
  364. package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.js.map +1 -1
  365. package/dist/components/Payroll/RecoveryCases/useRecoveryCaseErrorCode.js +5 -3
  366. package/dist/components/Payroll/RecoveryCases/useRecoveryCaseErrorCode.js.map +1 -1
  367. package/dist/components/Payroll/index.d.ts +4 -0
  368. package/dist/components/Payroll/index.js +22 -18
  369. package/dist/components/Payroll/index.js.map +1 -1
  370. package/dist/components/Payroll/usePreparedPayrollData.js +4 -3
  371. package/dist/components/Payroll/usePreparedPayrollData.js.map +1 -1
  372. package/dist/contexts/ComponentAdapter/adapters/defaultComponentAdapter.js +48 -46
  373. package/dist/contexts/ComponentAdapter/adapters/defaultComponentAdapter.js.map +1 -1
  374. package/dist/contexts/ComponentAdapter/componentAdapterTypes.d.ts +1 -0
  375. package/dist/contexts/ComponentAdapter/useComponentContext.d.ts +2 -0
  376. package/dist/contexts/ComponentAdapter/useComponentContext.js.map +1 -1
  377. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js +3 -2
  378. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js.map +1 -1
  379. package/dist/contexts/ThemeProvider/theme.d.ts +1 -0
  380. package/dist/contexts/ThemeProvider/theme.js +1 -0
  381. package/dist/contexts/ThemeProvider/theme.js.map +1 -1
  382. package/dist/helpers/apiErrorToList.js +14 -8
  383. package/dist/helpers/apiErrorToList.js.map +1 -1
  384. package/dist/helpers/dateFormatting.js +61 -45
  385. package/dist/helpers/dateFormatting.js.map +1 -1
  386. package/dist/helpers/formattedStrings.d.ts +1 -0
  387. package/dist/helpers/formattedStrings.js +21 -20
  388. package/dist/helpers/formattedStrings.js.map +1 -1
  389. package/dist/hooks/useOverflowDetection/useOverflowDetection.js +5 -6
  390. package/dist/i18n/I18n.js +7 -7
  391. package/dist/i18n/I18n.js.map +1 -1
  392. package/dist/i18n/en/Contractor.Payments.CreatePayment.json.js +12 -12
  393. package/dist/i18n/en/Employee.EmployeeDocuments.json.js +1 -1
  394. package/dist/i18n/en/Employee.I9SignatureForm.json.js +83 -65
  395. package/dist/i18n/en/Employee.I9SignatureForm.json.js.map +1 -1
  396. package/dist/i18n/en/Employee.Landing.json.js +7 -9
  397. package/dist/i18n/en/Employee.Landing.json.js.map +1 -1
  398. package/dist/i18n/en/Payroll.OffCycleCreation.json.js +14 -0
  399. package/dist/i18n/en/Payroll.OffCycleCreation.json.js.map +1 -0
  400. package/dist/i18n/en/Payroll.OffCycleDeductionsSetting.json.js +12 -0
  401. package/dist/i18n/en/Payroll.OffCycleDeductionsSetting.json.js.map +1 -0
  402. package/dist/i18n/en/Payroll.OffCycleTaxWithholding.json.js +18 -0
  403. package/dist/i18n/en/Payroll.OffCycleTaxWithholding.json.js.map +1 -0
  404. package/dist/i18n/en/Payroll.PayrollBlocker.json.js +21 -19
  405. package/dist/i18n/en/Payroll.PayrollBlocker.json.js.map +1 -1
  406. package/dist/i18n/en/Payroll.PayrollOverview.json.js +1 -1
  407. package/dist/shared/constants.d.ts +4 -0
  408. package/dist/shared/constants.js +6 -4
  409. package/dist/shared/constants.js.map +1 -1
  410. package/dist/style.css +1 -1
  411. package/dist/types/i18next.d.ts +76 -2
  412. package/docs/reference/endpoint-inventory.json +1706 -0
  413. package/package.json +27 -11
  414. package/dist/components/Employee/Landing/Landing.module.scss.js +0 -8
  415. package/dist/components/Employee/Landing/Landing.module.scss.js.map +0 -1
@@ -7,48 +7,49 @@ import { useRecoveryCaseErrorCode as x } from "../useRecoveryCaseErrorCode.js";
7
7
  import { BaseComponent as D } from "../../../Base/Base.js";
8
8
  import { useBase as B } from "../../../Base/useBase.js";
9
9
  import { Flex as d } from "../../../Common/Flex/Flex.js";
10
- import { useComponentContext as C } from "../../../../contexts/ComponentAdapter/useComponentContext.js";
10
+ import "classnames";
11
+ import { recoveryCasesEvents as C } from "../../../../shared/constants.js";
12
+ import { useComponentContext as y } from "../../../../contexts/ComponentAdapter/useComponentContext.js";
11
13
  import "react";
12
14
  import { Form as F } from "../../../Common/Form/Form.js";
13
15
  import { useFlow as A } from "../../../Flow/useFlow.js";
14
16
  import { useComponentDictionary as I, useI18n as O } from "../../../../i18n/I18n.js";
15
- import { recoveryCasesEvents as y } from "../../../../shared/constants.js";
16
17
  const R = "gusto-sdk-recovery-cases-resubmit-form";
17
18
  function T(e) {
18
19
  return /* @__PURE__ */ t(D, { ...e, children: /* @__PURE__ */ t(U, { ...e, children: e.children }) });
19
20
  }
20
21
  function U({ dictionary: e, recoveryCaseId: o }) {
21
22
  I("Payroll.RecoveryCasesResubmit", e);
22
- const { Heading: r, Text: i } = C(), { onEvent: n, baseSubmitHandler: a } = B(), { companyId: f } = A(), { data: p } = S({
23
- companyUuid: f
24
- }), v = p?.recoveryCaseList?.find((s) => s.uuid === o), { title: c, subtitle: m, description: u } = x(
23
+ const { Heading: r, Text: s } = y(), { onEvent: n, baseSubmitHandler: a } = B(), { companyId: p } = A(), { data: f } = S({
24
+ companyUuid: p
25
+ }), v = f?.recoveryCaseList?.find((i) => i.uuid === o), { title: c, subtitle: m, description: u } = x(
25
26
  v?.latestErrorCode ?? void 0
26
- ), E = _(), b = async (s) => {
27
- s.preventDefault(), await a({}, async () => {
27
+ ), E = _(), b = async (i) => {
28
+ i.preventDefault(), await a({}, async () => {
28
29
  await E.mutateAsync({
29
30
  request: {
30
31
  recoveryCaseUuid: o
31
32
  }
32
- }), n(y.RECOVERY_CASE_RESUBMIT_DONE, {
33
+ }), n(C.RECOVERY_CASE_RESUBMIT_DONE, {
33
34
  recoveryCaseId: o
34
35
  });
35
36
  });
36
37
  };
37
38
  return /* @__PURE__ */ l(d, { flexDirection: "column", gap: 16, children: [
38
39
  c && /* @__PURE__ */ t(r, { as: "h2", children: c }),
39
- m && /* @__PURE__ */ t(i, { children: m }),
40
+ m && /* @__PURE__ */ t(s, { children: m }),
40
41
  u.length > 0 && u,
41
42
  /* @__PURE__ */ t(F, { id: R, onSubmit: b, "aria-hidden": "true" })
42
43
  ] });
43
44
  }
44
45
  const P = ({ onEvent: e }) => {
45
46
  O("Payroll.RecoveryCasesResubmit");
46
- const { t: o } = h("Payroll.RecoveryCasesResubmit"), { Button: r } = C(), n = g({
47
+ const { t: o } = h("Payroll.RecoveryCasesResubmit"), { Button: r } = y(), n = g({
47
48
  mutationKey: M()
48
49
  }) > 0;
49
50
  return /* @__PURE__ */ l(d, { justifyContent: "flex-end", gap: 12, children: [
50
51
  /* @__PURE__ */ t(r, { variant: "secondary", onClick: () => {
51
- e(y.RECOVERY_CASE_RESUBMIT_CANCEL);
52
+ e(C.RECOVERY_CASE_RESUBMIT_CANCEL);
52
53
  }, isDisabled: n, children: o("cta.cancel") }),
53
54
  /* @__PURE__ */ t(
54
55
  r,
@@ -1 +1 @@
1
- {"version":3,"file":"RecoveryCasesResubmit.js","sources":["../../../../../src/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport { useIsMutating } from '@tanstack/react-query'\nimport {\n useRecoveryCasesRedebitMutation,\n mutationKeyRecoveryCasesRedebit,\n} from '@gusto/embedded-api/react-query/recoveryCasesRedebit'\nimport { useRecoveryCasesGet } from '@gusto/embedded-api/react-query/recoveryCasesGet'\nimport type { RecoveryCasesContextInterface } from '../RecoveryCasesComponents'\nimport { useRecoveryCaseErrorCode } from '../useRecoveryCaseErrorCode'\nimport { BaseComponent, useBase, type BaseComponentInterface } from '@/components/Base'\nimport type { OnEventType } from '@/components/Base/useBase'\nimport { Flex } from '@/components/Common'\nimport { Form } from '@/components/Common/Form'\nimport { useFlow } from '@/components/Flow/useFlow'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\nimport { useComponentDictionary, useI18n } from '@/i18n'\nimport { recoveryCasesEvents, type EventType } from '@/shared/constants'\n\nconst RECOVERY_CASES_RESUBMIT_FORM_ID = 'gusto-sdk-recovery-cases-resubmit-form'\n\ninterface RecoveryCasesResubmitProps extends BaseComponentInterface<'Payroll.RecoveryCasesResubmit'> {\n recoveryCaseId: string\n onEvent: OnEventType<EventType, unknown>\n}\n\nexport function RecoveryCasesResubmit(props: RecoveryCasesResubmitProps) {\n return (\n <BaseComponent {...props}>\n <Root {...props}>{props.children}</Root>\n </BaseComponent>\n )\n}\n\nfunction Root({ dictionary, recoveryCaseId }: RecoveryCasesResubmitProps) {\n useComponentDictionary('Payroll.RecoveryCasesResubmit', dictionary)\n const { Heading, Text } = useComponentContext()\n const { onEvent, baseSubmitHandler } = useBase()\n const { companyId } = useFlow<RecoveryCasesContextInterface>()\n\n const { data: recoveryCasesData } = useRecoveryCasesGet({\n companyUuid: companyId,\n })\n\n const recoveryCase = recoveryCasesData?.recoveryCaseList?.find(rc => rc.uuid === recoveryCaseId)\n\n const { title, subtitle, description } = useRecoveryCaseErrorCode(\n recoveryCase?.latestErrorCode ?? undefined,\n )\n\n const redebitMutation = useRecoveryCasesRedebitMutation()\n\n const onSubmit = async (e: React.FormEvent<HTMLFormElement>) => {\n e.preventDefault()\n await baseSubmitHandler({}, async () => {\n await redebitMutation.mutateAsync({\n request: {\n recoveryCaseUuid: recoveryCaseId,\n },\n })\n onEvent(recoveryCasesEvents.RECOVERY_CASE_RESUBMIT_DONE, {\n recoveryCaseId,\n })\n })\n }\n\n return (\n <Flex flexDirection=\"column\" gap={16}>\n {title && <Heading as=\"h2\">{title}</Heading>}\n {subtitle && <Text>{subtitle}</Text>}\n {description.length > 0 && description}\n {/*\n This empty form is used to connect the Footer's submit button to the submission logic\n via the form attribute. This is semantically incorrect and hidden from assistive tech.\n */}\n <Form id={RECOVERY_CASES_RESUBMIT_FORM_ID} onSubmit={onSubmit} aria-hidden=\"true\">\n {/* Empty form - submission triggered by footer button via form attribute */}\n </Form>\n </Flex>\n )\n}\n\nconst Footer = ({ onEvent }: { onEvent: OnEventType<EventType, unknown> }) => {\n useI18n('Payroll.RecoveryCasesResubmit')\n const { t } = useTranslation('Payroll.RecoveryCasesResubmit')\n const { Button } = useComponentContext()\n\n const isMutating = useIsMutating({\n mutationKey: mutationKeyRecoveryCasesRedebit(),\n })\n const isPending = isMutating > 0\n\n const handleCancel = () => {\n onEvent(recoveryCasesEvents.RECOVERY_CASE_RESUBMIT_CANCEL)\n }\n\n return (\n <Flex justifyContent=\"flex-end\" gap={12}>\n <Button variant=\"secondary\" onClick={handleCancel} isDisabled={isPending}>\n {t('cta.cancel')}\n </Button>\n <Button\n variant=\"primary\"\n type=\"submit\"\n form={RECOVERY_CASES_RESUBMIT_FORM_ID}\n isLoading={isPending}\n >\n {t('cta.resubmit')}\n </Button>\n </Flex>\n )\n}\n\nRecoveryCasesResubmit.Footer = Footer\n"],"names":["RECOVERY_CASES_RESUBMIT_FORM_ID","RecoveryCasesResubmit","props","jsx","BaseComponent","Root","dictionary","recoveryCaseId","useComponentDictionary","Heading","Text","useComponentContext","onEvent","baseSubmitHandler","useBase","companyId","useFlow","recoveryCasesData","useRecoveryCasesGet","recoveryCase","rc","title","subtitle","description","useRecoveryCaseErrorCode","redebitMutation","useRecoveryCasesRedebitMutation","onSubmit","e","recoveryCasesEvents","jsxs","Flex","Form","Footer","useI18n","t","useTranslation","Button","isPending","useIsMutating","mutationKeyRecoveryCasesRedebit"],"mappings":";;;;;;;;;;;;;;;AAkBA,MAAMA,IAAkC;AAOjC,SAASC,EAAsBC,GAAmC;AACvE,SACE,gBAAAC,EAACC,GAAA,EAAe,GAAGF,GACjB,UAAA,gBAAAC,EAACE,KAAM,GAAGH,GAAQ,UAAAA,EAAM,SAAA,CAAS,EAAA,CACnC;AAEJ;AAEA,SAASG,EAAK,EAAE,YAAAC,GAAY,gBAAAC,KAA8C;AACxE,EAAAC,EAAuB,iCAAiCF,CA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HaC,EAAc;AAAA,IAC/B,aAAaC,EAAA;AAAA,EAAgC,CAC9C,IAC8B;AAM/B,SACE,gBAAAV,EAACC,GAAA,EAAK,gBAAe,YAAW,KAAK,IACnC,UAAA;AAAA,IAAA,gBAAA5B,EAACkC,GAAA,EAAO,SAAQ,aAAY,SANX,MAAM;AACzB,MAAAzB,EAAQiB,EAAoB,6BAA6B;AAAA,IAC3D,GAIuD,YAAYS,GAC5D,UAAAH,EAAE,YAAY,EAAA,CACjB;AAAA,IACA,gBAAAhC;AAAA,MAACkC;AAAA,MAAA;AAAA,QACC,SAAQ;AAAA,QACR,MAAK;AAAA,QACL,MAAMrC;AAAA,QACN,WAAWsC;AAAA,QAEV,YAAE,cAAc;AAAA,MAAA;AAAA,IAAA;AAAA,EACnB,GACF;AAEJ;AAEArC,EAAsB,SAASgC;"}
1
+ {"version":3,"file":"RecoveryCasesResubmit.js","sources":["../../../../../src/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport { useIsMutating } from '@tanstack/react-query'\nimport {\n useRecoveryCasesRedebitMutation,\n mutationKeyRecoveryCasesRedebit,\n} from '@gusto/embedded-api/react-query/recoveryCasesRedebit'\nimport { useRecoveryCasesGet } from '@gusto/embedded-api/react-query/recoveryCasesGet'\nimport type { RecoveryCasesContextInterface } from '../RecoveryCasesComponents'\nimport { useRecoveryCaseErrorCode } from '../useRecoveryCaseErrorCode'\nimport { BaseComponent, useBase, type BaseComponentInterface } from '@/components/Base'\nimport type { OnEventType } from '@/components/Base/useBase'\nimport { Flex } from '@/components/Common'\nimport { Form } from '@/components/Common/Form'\nimport { useFlow } from '@/components/Flow/useFlow'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\nimport { useComponentDictionary, useI18n } from '@/i18n'\nimport { recoveryCasesEvents, type EventType } from '@/shared/constants'\n\nconst RECOVERY_CASES_RESUBMIT_FORM_ID = 'gusto-sdk-recovery-cases-resubmit-form'\n\ninterface RecoveryCasesResubmitProps extends BaseComponentInterface<'Payroll.RecoveryCasesResubmit'> {\n recoveryCaseId: string\n onEvent: OnEventType<EventType, unknown>\n}\n\nexport function RecoveryCasesResubmit(props: RecoveryCasesResubmitProps) {\n return (\n <BaseComponent {...props}>\n <Root {...props}>{props.children}</Root>\n </BaseComponent>\n )\n}\n\nfunction Root({ dictionary, recoveryCaseId }: RecoveryCasesResubmitProps) {\n useComponentDictionary('Payroll.RecoveryCasesResubmit', dictionary)\n const { Heading, Text } = useComponentContext()\n const { onEvent, baseSubmitHandler } = useBase()\n const { companyId } = useFlow<RecoveryCasesContextInterface>()\n\n const { data: recoveryCasesData } = useRecoveryCasesGet({\n companyUuid: companyId,\n })\n\n const recoveryCase = recoveryCasesData?.recoveryCaseList?.find(rc => rc.uuid === recoveryCaseId)\n\n const { title, subtitle, description } = useRecoveryCaseErrorCode(\n recoveryCase?.latestErrorCode ?? undefined,\n )\n\n const redebitMutation = useRecoveryCasesRedebitMutation()\n\n const onSubmit = async (e: React.FormEvent<HTMLFormElement>) => {\n e.preventDefault()\n await baseSubmitHandler({}, async () => {\n await redebitMutation.mutateAsync({\n request: {\n recoveryCaseUuid: recoveryCaseId,\n },\n })\n onEvent(recoveryCasesEvents.RECOVERY_CASE_RESUBMIT_DONE, {\n recoveryCaseId,\n })\n })\n }\n\n return (\n <Flex flexDirection=\"column\" gap={16}>\n {title && <Heading as=\"h2\">{title}</Heading>}\n {subtitle && <Text>{subtitle}</Text>}\n {description.length > 0 && description}\n {/*\n This empty form is used to connect the Footer's submit button to the submission logic\n via the form attribute. This is semantically incorrect and hidden from assistive tech.\n */}\n <Form id={RECOVERY_CASES_RESUBMIT_FORM_ID} onSubmit={onSubmit} aria-hidden=\"true\">\n {/* Empty form - submission triggered by footer button via form attribute */}\n </Form>\n </Flex>\n )\n}\n\nconst Footer = ({ onEvent }: { onEvent: OnEventType<EventType, unknown> }) => {\n useI18n('Payroll.RecoveryCasesResubmit')\n const { t } = useTranslation('Payroll.RecoveryCasesResubmit')\n const { Button } = useComponentContext()\n\n const isMutating = useIsMutating({\n mutationKey: mutationKeyRecoveryCasesRedebit(),\n })\n const isPending = isMutating > 0\n\n const handleCancel = () => {\n onEvent(recoveryCasesEvents.RECOVERY_CASE_RESUBMIT_CANCEL)\n }\n\n return (\n <Flex justifyContent=\"flex-end\" gap={12}>\n <Button variant=\"secondary\" onClick={handleCancel} isDisabled={isPending}>\n {t('cta.cancel')}\n </Button>\n <Button\n variant=\"primary\"\n type=\"submit\"\n form={RECOVERY_CASES_RESUBMIT_FORM_ID}\n isLoading={isPending}\n >\n {t('cta.resubmit')}\n </Button>\n </Flex>\n )\n}\n\nRecoveryCasesResubmit.Footer = Footer\n"],"names":["RECOVERY_CASES_RESUBMIT_FORM_ID","RecoveryCasesResubmit","props","jsx","BaseComponent","Root","dictionary","recoveryCaseId","useComponentDictionary","Heading","Text","useComponentContext","onEvent","baseSubmitHandler","useBase","companyId","useFlow","recoveryCasesData","useRecoveryCasesGet","recoveryCase","rc","title","subtitle","description","useRecoveryCaseErrorCode","redebitMutation","useRecoveryCasesRedebitMutation","onSubmit","e","recoveryCasesEvents","jsxs","Flex","Form","Footer","useI18n","t","useTranslation","Button","isPending","useIsMutating","mutationKeyRecoveryCasesRedebit"],"mappings":";;;;;;;;;;;;;;;;AAkBA,MAAMA,IAAkC;AAOjC,SAASC,EAAsBC,GAAmC;AACvE,SACE,gBAAAC,EAACC,GAAA,EAAe,GAAGF,GACjB,UAAA,gBAAAC,EAACE,KAAM,GAAGH,GAAQ,UAAAA,EAAM,SAAA,CAAS,EAAA,CACnC;AAEJ;AAEA,SAASG,EAAK,EAAE,YAAAC,GAAY,gBAAAC,KAA8C;AACxE,EAAAC,EAAuB,iCAAiCF,CAAU;AAClE,QAAM,EAAE,SAAAG,GAAS,MAAAC,EAAA,IAASC,EAAA,GACpB,EAAE,SAAAC,GAAS,mBAAAC,EAAA,IAAsBC,EAAA,GACjC,EAA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ACnC,UAAA;AAAA,IAAA,gBAAA5B,EAACkC,GAAA,EAAO,SAAQ,aAAY,SANX,MAAM;AACzB,MAAAzB,EAAQiB,EAAoB,6BAA6B;AAAA,IAC3D,GAIuD,YAAYS,GAC5D,UAAAH,EAAE,YAAY,EAAA,CACjB;AAAA,IACA,gBAAAhC;AAAA,MAACkC;AAAA,MAAA;AAAA,QACC,SAAQ;AAAA,QACR,MAAK;AAAA,QACL,MAAMrC;AAAA,QACN,WAAWsC;AAAA,QAEV,YAAE,cAAc;AAAA,MAAA;AAAA,IAAA;AAAA,EACnB,GACF;AAEJ;AAEArC,EAAsB,SAASgC;"}
@@ -1,7 +1,9 @@
1
- import { jsx as e, jsxs as d } from "react/jsx-runtime";
1
+ import { jsxs as d, jsx as e } from "react/jsx-runtime";
2
2
  import { useTranslation as a, Trans as c } from "react-i18next";
3
3
  import p from "./RecoveryCaseErrorCode.module.scss.js";
4
4
  import { Flex as C } from "../../Common/Flex/Flex.js";
5
+ import "classnames";
6
+ import "../../../shared/constants.js";
5
7
  import { useComponentContext as R } from "../../../contexts/ComponentAdapter/useComponentContext.js";
6
8
  import "react";
7
9
  import { useI18n as f } from "../../../i18n/I18n.js";
@@ -19,7 +21,7 @@ function h(s) {
19
21
  return "bankError";
20
22
  }
21
23
  }
22
- function g(s) {
24
+ function T(s) {
23
25
  f("Payroll.RecoveryCasesResubmit");
24
26
  const { t: r } = a("Payroll.RecoveryCasesResubmit"), { Text: o } = R();
25
27
  if (!s)
@@ -60,6 +62,6 @@ function g(s) {
60
62
  };
61
63
  }
62
64
  export {
63
- g as useRecoveryCaseErrorCode
65
+ T as useRecoveryCaseErrorCode
64
66
  };
65
67
  //# sourceMappingURL=useRecoveryCaseErrorCode.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useRecoveryCaseErrorCode.js","sources":["../../../../src/components/Payroll/RecoveryCases/useRecoveryCaseErrorCode.tsx"],"sourcesContent":["import type { ReactNode } from 'react'\nimport { Trans, useTranslation } from 'react-i18next'\nimport styles from './RecoveryCaseErrorCode.module.scss'\nimport { Flex } from '@/components/Common'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\nimport { useI18n } from '@/i18n'\n\nexport interface RecoveryCaseErrorCodeContent {\n title: string | null\n subtitle: string | null\n description: ReactNode[]\n}\n\ntype ErrorCodeKey = 'R01' | 'R02' | 'R16' | 'R29' | 'bankError'\n\nfunction getErrorCodeKey(errorCode: string | null | undefined): ErrorCodeKey {\n switch (errorCode) {\n case 'R01':\n return 'R01'\n case 'R02':\n return 'R02'\n case 'R16':\n return 'R16'\n case 'R29':\n return 'R29'\n default:\n return 'bankError'\n }\n}\n\nexport function useRecoveryCaseErrorCode(\n errorCode: string | null | undefined,\n): RecoveryCaseErrorCodeContent {\n useI18n('Payroll.RecoveryCasesResubmit')\n const { t } = useTranslation('Payroll.RecoveryCasesResubmit')\n const { Text } = useComponentContext()\n\n if (!errorCode) {\n return {\n title: null,\n subtitle: null,\n description: [],\n }\n }\n\n const errorCodeKey = getErrorCodeKey(errorCode)\n\n const transComponents = {\n medium: <Text as=\"span\" weight=\"medium\" />,\n }\n\n const description: ReactNode[] = [\n <Text key=\"body\">\n <Trans t={t} i18nKey={`errorCodes.${errorCodeKey}.body`} components={transComponents} />\n </Text>,\n ]\n\n if (errorCodeKey === 'R29') {\n const achCodes = Object.values(t('errorCodes.R29.achCodes', { returnObjects: true }))\n description.push(\n <Flex key=\"instruction\" flexDirection=\"column\" gap={16}>\n <Text>{t('errorCodes.R29.listDescription')}</Text>\n <ul className={styles.compactList}>\n {achCodes.map((code, index) => (\n <li key={index}>{code}</li>\n ))}\n </ul>\n <Text>\n <Trans t={t} i18nKey=\"errorCodes.R29.instruction\" components={transComponents} />\n </Text>\n </Flex>,\n )\n } else {\n const instruction = t(`errorCodes.${errorCodeKey}.instruction`)\n if (instruction) {\n description.push(\n <Text key=\"instruction\">\n <Trans\n t={t}\n i18nKey={`errorCodes.${errorCodeKey}.instruction`}\n components={transComponents}\n />\n </Text>,\n )\n }\n }\n\n return {\n title: t(`errorCodes.${errorCodeKey}.title`),\n subtitle: t(`errorCodes.${errorCodeKey}.subtitle`),\n description,\n }\n}\n"],"names":["getErrorCodeKey","errorCode","useRecoveryCaseErrorCode","useI18n","t","useTranslation","Text","useComponentContext","errorCodeKey","transComponents","jsx","description","Trans","achCodes","jsxs","Flex","styles","code","index"],"mappings":";;;;;;;AAeA,SAASA,EAAgBC,GAAoD;AAC3E,UAAQA,GAAA;AAAA,IACN,KAAK;AACH,aAAO;AAAA,IACT,KAAK;AACH,aAAO;AAAA,IACT,KAAK;AACH,aAAO;AAAA,IACT,KAAK;AACH,aAAO;AAAA,IACT;AACE,aAAO;AAAA,EAAA;AAEb;AAEO,SAASC,EACdD,GAC8B;AAC9B,EAAAE,EAAQ,+BAA+B;AACvC,QAAM,EAAE,GAAAC,EAAA,IAAMC,EAAe,+BAA+B,GACtD,EAAE,MAAAC,EAAA,IAASC,EAAA;AAEjB,MAAI,CAACN;AACH,WAAO;AAAA,MACL,OAAO;AAAA,MACP,UAAU;AAAA,MACV,aAAa,CAAA;AAAA,IAAC;AAIlB,QAAMO,IAAeR,EAAgBC,CAAS,GAExCQ,IAAkB;AAAA,IACtB,QAAQ,gBAAAC,EAACJ,GAAA,EAAK,IAAG,QAAO,QAAO,SAAA,CAAS;AAAA,EAAA,GAGpCK,IAA2B;AAAA,IAC/B,gBAAAD,EAACJ,GAAA,EACC,UAAA,gBAAAI,EAACE,GAAA,EAAM,GAAAR,GAAM,SAAS,cAAcI,CAAY,SAAS,YAAYC,EAAA,CAAiB,EAAA,GAD9E,MAEV;AAAA,EAAA;AAGF,MAAID,MAAiB,OAAO;AAC1B,UAAMK,IAAW,OAAO,OAAOT,EAAE,2BAA2B,EAAE,eAAe,GAAA,CAAM,CAAC;AACpF,IAAAO,EAAY;AAAA,MACV,gBAAAG,EAACC,GAAA,EAAuB,eAAc,UAAS,KAAK,IAClD,UAAA;AAAA,QAAA,gBAAAL,EAACJ,GAAA,EAAM,UAAAF,EAAE,gCAAgC,EAAA,CAAE;AAAA,QAC3C,gBAAAM,EAAC,MAAA,EAAG,WAAWM,EAAO,aACnB,UAAAH,EAAS,IAAI,CAACI,GAAMC,MACnB,gBAAAR,EAAC,MAAA,EAAgB,UAAAO,KAARC,CAAa,CACvB,GACH;AAAA,QACA,gBAAAR,EAACJ,KACC,UAAA,gBAAAI,EAACE,GAAA,EAAM,GAAAR,GAAM,SAAQ,8BAA6B,YAAYK,EAAA,CAAiB,EAAA,CACjF;AAAA,MAAA,EAAA,GATQ,aAUV;AAAA,IAAA;AAAA,EAEJ;AAEE,IADoBL,EAAE,cAAcI,CAAY,cAAc,KAE5DG,EAAY;AAAA,wBACTL,GAAA,EACC,UAAA,gBAAAI;AAAA,QAACE;AAAA,QAAA;AAAA,UACC,GAAAR;AAAA,UACA,SAAS,cAAcI,CAAY;AAAA,UACnC,YAAYC;AAAA,QAAA;AAAA,MAAA,KAJN,aAMV;AAAA,IAAA;AAKN,SAAO;AAAA,IACL,OAAOL,EAAE,cAAcI,CAAY,QAAQ;AAAA,IAC3C,UAAUJ,EAAE,cAAcI,CAAY,WAAW;AAAA,IACjD,aAAAG;AAAA,EAAA;AAEJ;"}
1
+ {"version":3,"file":"useRecoveryCaseErrorCode.js","sources":["../../../../src/components/Payroll/RecoveryCases/useRecoveryCaseErrorCode.tsx"],"sourcesContent":["import type { ReactNode } from 'react'\nimport { Trans, useTranslation } from 'react-i18next'\nimport styles from './RecoveryCaseErrorCode.module.scss'\nimport { Flex } from '@/components/Common'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\nimport { useI18n } from '@/i18n'\n\nexport interface RecoveryCaseErrorCodeContent {\n title: string | null\n subtitle: string | null\n description: ReactNode[]\n}\n\ntype ErrorCodeKey = 'R01' | 'R02' | 'R16' | 'R29' | 'bankError'\n\nfunction getErrorCodeKey(errorCode: string | null | undefined): ErrorCodeKey {\n switch (errorCode) {\n case 'R01':\n return 'R01'\n case 'R02':\n return 'R02'\n case 'R16':\n return 'R16'\n case 'R29':\n return 'R29'\n default:\n return 'bankError'\n }\n}\n\nexport function useRecoveryCaseErrorCode(\n errorCode: string | null | undefined,\n): RecoveryCaseErrorCodeContent {\n useI18n('Payroll.RecoveryCasesResubmit')\n const { t } = useTranslation('Payroll.RecoveryCasesResubmit')\n const { Text } = useComponentContext()\n\n if (!errorCode) {\n return {\n title: null,\n subtitle: null,\n description: [],\n }\n }\n\n const errorCodeKey = getErrorCodeKey(errorCode)\n\n const transComponents = {\n medium: <Text as=\"span\" weight=\"medium\" />,\n }\n\n const description: ReactNode[] = [\n <Text key=\"body\">\n <Trans t={t} i18nKey={`errorCodes.${errorCodeKey}.body`} components={transComponents} />\n </Text>,\n ]\n\n if (errorCodeKey === 'R29') {\n const achCodes = Object.values(t('errorCodes.R29.achCodes', { returnObjects: true }))\n description.push(\n <Flex key=\"instruction\" flexDirection=\"column\" gap={16}>\n <Text>{t('errorCodes.R29.listDescription')}</Text>\n <ul className={styles.compactList}>\n {achCodes.map((code, index) => (\n <li key={index}>{code}</li>\n ))}\n </ul>\n <Text>\n <Trans t={t} i18nKey=\"errorCodes.R29.instruction\" components={transComponents} />\n </Text>\n </Flex>,\n )\n } else {\n const instruction = t(`errorCodes.${errorCodeKey}.instruction`)\n if (instruction) {\n description.push(\n <Text key=\"instruction\">\n <Trans\n t={t}\n i18nKey={`errorCodes.${errorCodeKey}.instruction`}\n components={transComponents}\n />\n </Text>,\n )\n }\n }\n\n return {\n title: t(`errorCodes.${errorCodeKey}.title`),\n subtitle: t(`errorCodes.${errorCodeKey}.subtitle`),\n description,\n }\n}\n"],"names":["getErrorCodeKey","errorCode","useRecoveryCaseErrorCode","useI18n","t","useTranslation","Text","useComponentContext","errorCodeKey","transComponents","jsx","description","Trans","achCodes","jsxs","Flex","styles","code","index"],"mappings":";;;;;;;;;AAeA,SAASA,EAAgBC,GAAoD;AAC3E,UAAQA,GAAA;AAAA,IACN,KAAK;AACH,aAAO;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AAA,MAAA,EAAA,GATQ,aAUV;AAAA,IAAA;AAAA,EAEJ;AAEE,IADoBL,EAAE,cAAcI,CAAY,cAAc,KAE5DG,EAAY;AAAA,wBACTL,GAAA,EACC,UAAA,gBAAAI;AAAA,QAACE;AAAA,QAAA;AAAA,UACC,GAAAR;AAAA,UACA,SAAS,cAAcI,CAAY;AAAA,UACnC,YAAYC;AAAA,QAAA;AAAA,MAAA,KAJN,aAMV;AAAA,IAAA;AAKN,SAAO;AAAA,IACL,OAAOL,EAAE,cAAcI,CAAY,QAAQ;AAAA,IAC3C,UAAUJ,EAAE,cAAcI,CAAY,WAAW;AAAA,IACjD,aAAAG;AAAA,EAAA;AAEJ;"}
@@ -6,6 +6,8 @@ export { PayrollLanding } from './PayrollLanding/PayrollLanding';
6
6
  export { PayrollList } from './PayrollList/PayrollList';
7
7
  export { OffCycleReasonSelection } from './OffCycleReasonSelection';
8
8
  export type { OffCycleReason, OffCycleReasonDefaults, OffCycleReasonSelectionProps, SelectReasonPayload, } from './OffCycleReasonSelection';
9
+ export { OffCycleDeductionsSetting } from './OffCycleDeductionsSetting';
10
+ export type { OffCycleDeductionsSettingProps, OffCycleDeductionsSettingChangePayload, } from './OffCycleDeductionsSetting';
9
11
  export { PayrollOverview } from './PayrollOverview/PayrollOverview';
10
12
  export { PayrollFlow } from './PayrollFlow/PayrollFlow';
11
13
  export { PayrollExecutionFlow, type PayrollExecutionFlowProps, type PayrollExecutionInitialState, } from './PayrollExecutionFlow';
@@ -15,5 +17,7 @@ export type { ConfirmWireDetailsProps, ConfirmWireDetailsComponentType } from '.
15
17
  export { PayrollBlockerList, type ApiPayrollBlocker } from './PayrollBlocker';
16
18
  export { RecoveryCases } from './RecoveryCases/RecoveryCases';
17
19
  export type { OffCyclePayPeriodDateFormData, OffCyclePayrollDateType, } from './OffCyclePayPeriodDateForm';
20
+ export { OffCycleCreation } from './OffCycleCreation';
21
+ export type { OffCycleCreationProps, OffCycleCreationFormData } from './OffCycleCreation';
18
22
  export { OffCycleFlow } from './OffCycle';
19
23
  export type { OffCycleFlowContextInterface, OffCycleFlowProps } from './OffCycle';
@@ -1,31 +1,35 @@
1
1
  import { PayrollConfiguration as e } from "./PayrollConfiguration/PayrollConfiguration.js";
2
2
  import { PayrollEditEmployee as t } from "./PayrollEditEmployee/PayrollEditEmployee.js";
3
3
  import { PayrollHistory as m } from "./PayrollHistory/PayrollHistory.js";
4
- import { PayrollLanding as a } from "./PayrollLanding/PayrollLanding.js";
4
+ import { PayrollLanding as i } from "./PayrollLanding/PayrollLanding.js";
5
5
  import { PayrollList as y } from "./PayrollList/PayrollList.js";
6
- import { PayrollOverview as P } from "./PayrollOverview/PayrollOverview.js";
7
- import { PayrollFlow as s } from "./PayrollFlow/PayrollFlow.js";
6
+ import { PayrollOverview as n } from "./PayrollOverview/PayrollOverview.js";
7
+ import { PayrollFlow as P } from "./PayrollFlow/PayrollFlow.js";
8
8
  import { PayrollReceipts as C } from "./PayrollReceipts/PayrollReceipts.js";
9
- import { ConfirmWireDetails as v } from "./ConfirmWireDetails/ConfirmWireDetails.js";
10
- import { RecoveryCases as F } from "./RecoveryCases/RecoveryCases.js";
11
- import { OffCycleReasonSelection as O } from "./OffCycleReasonSelection/OffCycleReasonSelection.js";
12
- import { PayrollExecutionFlow as d } from "./PayrollExecutionFlow/PayrollExecutionFlow.js";
13
- import { PayrollBlockerList as u } from "./PayrollBlocker/components/PayrollBlockerList.js";
14
- import { OffCycleFlow as B } from "./OffCycle/OffCycleFlow.js";
9
+ import { ConfirmWireDetails as w } from "./ConfirmWireDetails/ConfirmWireDetails.js";
10
+ import { RecoveryCases as g } from "./RecoveryCases/RecoveryCases.js";
11
+ import { OffCycleCreation as v } from "./OffCycleCreation/OffCycleCreation.js";
12
+ import { OffCycleDeductionsSetting as F } from "./OffCycleDeductionsSetting/OffCycleDeductionsSetting.js";
13
+ import { OffCycleFlow as R } from "./OffCycle/OffCycleFlow.js";
14
+ import { OffCycleReasonSelection as S } from "./OffCycleReasonSelection/OffCycleReasonSelection.js";
15
+ import { PayrollBlockerList as B } from "./PayrollBlocker/components/PayrollBlockerList.js";
16
+ import { PayrollExecutionFlow as W } from "./PayrollExecutionFlow/PayrollExecutionFlow.js";
15
17
  export {
16
- v as ConfirmWireDetails,
17
- B as OffCycleFlow,
18
- O as OffCycleReasonSelection,
19
- u as PayrollBlockerList,
18
+ w as ConfirmWireDetails,
19
+ v as OffCycleCreation,
20
+ F as OffCycleDeductionsSetting,
21
+ R as OffCycleFlow,
22
+ S as OffCycleReasonSelection,
23
+ B as PayrollBlockerList,
20
24
  e as PayrollConfiguration,
21
25
  t as PayrollEditEmployee,
22
- d as PayrollExecutionFlow,
23
- s as PayrollFlow,
26
+ W as PayrollExecutionFlow,
27
+ P as PayrollFlow,
24
28
  m as PayrollHistory,
25
- a as PayrollLanding,
29
+ i as PayrollLanding,
26
30
  y as PayrollList,
27
- P as PayrollOverview,
31
+ n as PayrollOverview,
28
32
  C as PayrollReceipts,
29
- F as RecoveryCases
33
+ g as RecoveryCases
30
34
  };
31
35
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;"}
@@ -4,16 +4,17 @@ import { usePaySchedulesGet as w } from "@gusto/embedded-api/react-query/paySche
4
4
  import "react/jsx-runtime";
5
5
  import "react-error-boundary";
6
6
  import "react-i18next";
7
- import "@gusto/embedded-api/models/errors/apierror";
7
+ import "@gusto/embedded-api/models/errors/gustoembeddederror";
8
8
  import "@gusto/embedded-api/models/errors/sdkvalidationerror";
9
9
  import "@tanstack/react-query";
10
10
  import { useBase as M } from "../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
- const F = ({
17
+ const J = ({
17
18
  companyId: r,
18
19
  payrollId: s,
19
20
  employeeUuids: a,
@@ -65,6 +66,6 @@ const F = ({
65
66
  };
66
67
  };
67
68
  export {
68
- F as usePreparedPayrollData
69
+ J as usePreparedPayrollData
69
70
  };
70
71
  //# sourceMappingURL=usePreparedPayrollData.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"usePreparedPayrollData.js","sources":["../../../src/components/Payroll/usePreparedPayrollData.ts"],"sourcesContent":["import { useState, useEffect, useCallback, useRef, useMemo } from 'react'\nimport { usePayrollsPrepareMutation } from '@gusto/embedded-api/react-query/payrollsPrepare'\nimport { usePaySchedulesGet } from '@gusto/embedded-api/react-query/paySchedulesGet'\nimport type { PayrollPrepared } from '@gusto/embedded-api/models/components/payroll'\nimport type { PayScheduleObject } from '@gusto/embedded-api/models/components/payscheduleobject'\nimport type { QueryParamSortBy } from '@gusto/embedded-api/models/operations/putv1companiescompanyidpayrollspayrollidprepare'\nimport { useBase } from '../Base'\n\ninterface UsePreparedPayrollDataParams {\n companyId: string\n payrollId: string\n employeeUuids?: string[]\n sortBy?: QueryParamSortBy\n onDataReady?: (preparedPayroll: PayrollPrepared) => void\n}\n\ninterface UsePreparedPayrollDataReturn {\n handlePreparePayroll: () => Promise<void>\n preparedPayroll: PayrollPrepared | undefined\n paySchedule: PayScheduleObject | undefined\n isLoading: boolean\n isPaginating: boolean\n hasInitialData: boolean\n}\n\nexport const usePreparedPayrollData = ({\n companyId,\n payrollId,\n employeeUuids,\n sortBy,\n onDataReady,\n}: UsePreparedPayrollDataParams): UsePreparedPayrollDataReturn => {\n const { mutateAsync: preparePayroll, isPending: isPreparePayrollPending } =\n usePayrollsPrepareMutation()\n const [preparedPayroll, setPreparedPayroll] = useState<PayrollPrepared | undefined>()\n const hasInitialDataRef = useRef(false)\n const { baseSubmitHandler } = useBase()\n\n const employeeUuidsKey = useMemo(() => employeeUuids?.join(',') ?? '', [employeeUuids])\n\n const { data: payScheduleData, isLoading: isPayScheduleLoading } = usePaySchedulesGet(\n {\n companyId,\n payScheduleId: preparedPayroll?.payPeriod?.payScheduleUuid || '',\n },\n {\n enabled: !!preparedPayroll?.payPeriod?.payScheduleUuid,\n },\n )\n\n const handlePreparePayroll = useCallback(async () => {\n await baseSubmitHandler(null, async () => {\n const result = await preparePayroll({\n request: {\n companyId,\n payrollId,\n sortBy,\n requestBody: {\n employeeUuids,\n },\n },\n })\n setPreparedPayroll(result.payrollPrepared)\n if (result.payrollPrepared) {\n hasInitialDataRef.current = true\n onDataReady?.(result.payrollPrepared)\n }\n })\n }, [\n companyId,\n payrollId,\n preparePayroll,\n employeeUuidsKey,\n baseSubmitHandler,\n sortBy,\n onDataReady,\n ])\n\n useEffect(() => {\n void handlePreparePayroll()\n }, [handlePreparePayroll])\n\n const isInitialLoading = isPreparePayrollPending && !hasInitialDataRef.current\n const isPaginating = isPreparePayrollPending && hasInitialDataRef.current\n const isLoading = isInitialLoading || isPayScheduleLoading\n\n return {\n handlePreparePayroll,\n preparedPayroll,\n paySchedule: payScheduleData?.payScheduleObject,\n isLoading,\n isPaginating,\n hasInitialData: hasInitialDataRef.current,\n }\n}\n"],"names":["usePreparedPayrollData","companyId","payrollId","employeeUuids","sortBy","onDataReady","preparePayroll","isPreparePayrollPending","usePayrollsPrepareMutation","preparedPayroll","setPreparedPayroll","useState","hasInitialDataRef","useRef","baseSubmitHandler","useBase","employeeUuidsKey","useMemo","payScheduleData","isPayScheduleLoading","usePaySchedulesGet","handlePreparePayroll","useCallback","result","useEffect","isInitialLoading","isPaginating","isLoading"],"mappings":";;;;;;;;;;;;;;;AAyBO,MAAMA,IAAyB,CAAC;AAAA,EACrC,WAAAC;AAAA,EACA,WAAAC;AAAA,EACA,eAAAC;AAAA,EACA,QAAAC;AAAA,EACA,aAAAC;AACF,MAAkE;AAChE,QAAM,EAAE,aAAaC,GAAgB,WAAWC,EAAA,IAC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file":"usePreparedPayrollData.js","sources":["../../../src/components/Payroll/usePreparedPayrollData.ts"],"sourcesContent":["import { useState, useEffect, useCallback, useRef, useMemo } from 'react'\nimport { usePayrollsPrepareMutation } from '@gusto/embedded-api/react-query/payrollsPrepare'\nimport { usePaySchedulesGet } from '@gusto/embedded-api/react-query/paySchedulesGet'\nimport type { PayrollPrepared } from '@gusto/embedded-api/models/components/payroll'\nimport type { PayScheduleObject } from '@gusto/embedded-api/models/components/payscheduleobject'\nimport type { QueryParamSortBy } from '@gusto/embedded-api/models/operations/putv1companiescompanyidpayrollspayrollidprepare'\nimport { useBase } from '../Base'\n\ninterface UsePreparedPayrollDataParams {\n companyId: string\n payrollId: string\n employeeUuids?: string[]\n sortBy?: QueryParamSortBy\n onDataReady?: (preparedPayroll: PayrollPrepared) => void\n}\n\ninterface UsePreparedPayrollDataReturn {\n handlePreparePayroll: () => Promise<void>\n preparedPayroll: PayrollPrepared | undefined\n paySchedule: PayScheduleObject | undefined\n isLoading: boolean\n isPaginating: boolean\n hasInitialData: boolean\n}\n\nexport const usePreparedPayrollData = ({\n companyId,\n payrollId,\n employeeUuids,\n sortBy,\n onDataReady,\n}: UsePreparedPayrollDataParams): UsePreparedPayrollDataReturn => {\n const { mutateAsync: preparePayroll, isPending: isPreparePayrollPending } =\n usePayrollsPrepareMutation()\n const [preparedPayroll, setPreparedPayroll] = useState<PayrollPrepared | undefined>()\n const hasInitialDataRef = useRef(false)\n const { baseSubmitHandler } = useBase()\n\n const employeeUuidsKey = useMemo(() => employeeUuids?.join(',') ?? '', [employeeUuids])\n\n const { data: payScheduleData, isLoading: isPayScheduleLoading } = usePaySchedulesGet(\n {\n companyId,\n payScheduleId: preparedPayroll?.payPeriod?.payScheduleUuid || '',\n },\n {\n enabled: !!preparedPayroll?.payPeriod?.payScheduleUuid,\n },\n )\n\n const handlePreparePayroll = useCallback(async () => {\n await baseSubmitHandler(null, async () => {\n const result = await preparePayroll({\n request: {\n companyId,\n payrollId,\n sortBy,\n requestBody: {\n employeeUuids,\n },\n },\n })\n setPreparedPayroll(result.payrollPrepared)\n if (result.payrollPrepared) {\n hasInitialDataRef.current = true\n onDataReady?.(result.payrollPrepared)\n }\n })\n }, [\n companyId,\n payrollId,\n preparePayroll,\n employeeUuidsKey,\n baseSubmitHandler,\n sortBy,\n onDataReady,\n ])\n\n useEffect(() => {\n void handlePreparePayroll()\n }, [handlePreparePayroll])\n\n const isInitialLoading = isPreparePayrollPending && !hasInitialDataRef.current\n const isPaginating = isPreparePayrollPending && hasInitialDataRef.current\n const isLoading = isInitialLoading || isPayScheduleLoading\n\n return {\n handlePreparePayroll,\n preparedPayroll,\n paySchedule: payScheduleData?.payScheduleObject,\n isLoading,\n isPaginating,\n hasInitialData: hasInitialDataRef.current,\n }\n}\n"],"names":["usePreparedPayrollData","companyId","payrollId","employeeUuids","sortBy","onDataReady","preparePayroll","isPreparePayrollPending","usePayrollsPrepareMutation","preparedPayroll","setPreparedPayroll","useState","hasInitialDataRef","useRef","baseSubmitHandler","useBase","employeeUuidsKey","useMemo","payScheduleData","isPayScheduleLoading","usePaySchedulesGet","handlePreparePayroll","useCallback","result","useEffect","isInitialLoading","isPaginating","isLoading"],"mappings":";;;;;;;;;;;;;;;;AAyBO,MAAMA,IAAyB,CAAC;AAAA,EACrC,WAAAC;AAAA,EACA,WAAAC;AAAA,EACA,eAAAC;AAAA,EACA,QAAAC;AAAA,EACA,aAAAC;AACF,MAAkE;AAChE,QAAM,EAAE,aAAaC,GAAgB,WAAWC,EAAA,IAC9CC,EAAA,GACI,CAACC,GAAiBC,CAAkB,IAAIC,EAAA,GACxCC,IAAoBC,EAAO,EAAK,GAChC,EAAE,mBAAAC,EAAA,IAAsBC,EAAA,GAExBC,IAAmBC,EAAQ,MAAMd,GAAe,KAAK,GAAG,KAAK,IAAI,CAACA,CAAa,CAAC,GAEhF,EAAE,MAAMe,GAAiB,WAAWC,MAAyBC;AAAA,IACjE;AAAA,MACE,WAAAnB;AAAA,MACA,eAAeQ,GAAiB,WAAW,mBAAmB;AAAA,IAAA;AAAA,IAEhE;AAAA,MACE,SAAS,CAAC,CAACA,GAAiB,WAAW;AAAA,IAAA;AAAA,EACzC,GAGIY,IAAuBC,EAAY,YAAY;AACnD,UAAMR,EAAkB,MAAM,YAAY;AACxC,YAAMS,IAAS,MAAMjB,EAAe;AAAA,QAClC,SAAS;AAAA,UACP,WAAAL;AAAA,UACA,WAAAC;AAAA,UACA,QAAAE;AAAA,UACA,aAAa;AAAA,YACX,eAAAD;AAAA,UAAA;AAAA,QACF;AAAA,MACF,CACD;AACD,MAAAO,EAAmBa,EAAO,eAAe,GACrCA,EAAO,oBACTX,EAAkB,UAAU,IAC5BP,IAAckB,EAAO,eAAe;AAAA,IAExC,CAAC;AAAA,EACH,GAAG;AAAA,IACDtB;AAAA,IACAC;AAAA,IACAI;AAAA,IACAU;AAAA,IACAF;AAAA,IACAV;AAAA,IACAC;AAAA,EAAA,CACD;AAED,EAAAmB,EAAU,MAAM;AACd,IAAKH,EAAA;AAAA,EACP,GAAG,CAACA,CAAoB,CAAC;AAEzB,QAAMI,IAAmBlB,KAA2B,CAACK,EAAkB,SACjEc,IAAenB,KAA2BK,EAAkB,SAC5De,IAAYF,KAAoBN;AAEtC,SAAO;AAAA,IACL,sBAAAE;AAAA,IACA,iBAAAZ;AAAA,IACA,aAAaS,GAAiB;AAAA,IAC9B,WAAAS;AAAA,IACA,cAAAD;AAAA,IACA,gBAAgBd,EAAkB;AAAA,EAAA;AAEtC;"}
@@ -5,67 +5,69 @@ import { NumberInput as i } from "../../../components/Common/UI/NumberInput/Numb
5
5
  import { CheckboxGroup as e } from "../../../components/Common/UI/CheckboxGroup/CheckboxGroup.js";
6
6
  import { ComboBox as p } from "../../../components/Common/UI/ComboBox/ComboBox.js";
7
7
  import { Checkbox as n } from "../../../components/Common/UI/Checkbox/Checkbox.js";
8
- import { DatePicker as a } from "../../../components/Common/UI/DatePicker/DatePicker.js";
9
- import { Radio as f } from "../../../components/Common/UI/Radio/Radio.js";
8
+ import { DatePicker as f } from "../../../components/Common/UI/DatePicker/DatePicker.js";
9
+ import { Radio as a } from "../../../components/Common/UI/Radio/Radio.js";
10
10
  import { RadioGroup as d } from "../../../components/Common/UI/RadioGroup/RadioGroup.js";
11
11
  import { Select as u } from "../../../components/Common/UI/Select/Select.js";
12
12
  import { Switch as s } from "../../../components/Common/UI/Switch/Switch.js";
13
13
  import { Button as c } from "../../../components/Common/UI/Button/Button.js";
14
- import { ButtonIcon as l } from "../../../components/Common/UI/Button/ButtonIcon.js";
15
- import { Alert as b } from "../../../components/Common/UI/Alert/Alert.js";
16
- import { Card as x } from "../../../components/Common/UI/Card/Card.js";
17
- import { Badge as B } from "../../../components/Common/UI/Badge/Badge.js";
18
- import { Banner as C } from "../../../components/Common/UI/Banner/Banner.js";
19
- import { Link as g } from "../../../components/Common/UI/Link/Link.js";
20
- import { Menu as L } from "../../../components/Common/UI/Menu/Menu.js";
21
- import { Table as T } from "../../../components/Common/UI/Table/Table.js";
22
- import { OrderedList as k } from "../../../components/Common/UI/List/OrderedList.js";
23
- import { UnorderedList as I } from "../../../components/Common/UI/List/UnorderedList.js";
24
- import { Heading as h } from "../../../components/Common/UI/Heading/Heading.js";
25
- import { Text as D } from "../../../components/Common/UI/Text/Text.js";
26
- import { CalendarPreview as P } from "../../../components/Common/UI/CalendarPreview/CalendarPreview.js";
27
- import { ProgressBar as S } from "../../../components/Common/UI/ProgressBar/ProgressBar.js";
28
- import { Breadcrumbs as w } from "../../../components/Common/UI/Breadcrumbs/Breadcrumbs.js";
29
- import { Tabs as A } from "../../../components/Common/UI/Tabs/Tabs.js";
30
- import { Dialog as G } from "../../../components/Common/UI/Dialog/Dialog.js";
31
- import { Modal as M } from "../../../components/Common/UI/Modal/Modal.js";
32
- import { LoadingSpinner as R } from "../../../components/Common/UI/LoadingSpinner/LoadingSpinner.js";
33
- import { DescriptionList as v } from "../../../components/Common/UI/DescriptionList/DescriptionList.js";
34
- import { FileInput as F } from "../../../components/Common/UI/FileInput/FileInput.js";
14
+ import { ButtonIcon as x } from "../../../components/Common/UI/Button/ButtonIcon.js";
15
+ import { Alert as B } from "../../../components/Common/UI/Alert/Alert.js";
16
+ import { Card as l } from "../../../components/Common/UI/Card/Card.js";
17
+ import { Box as b } from "../../../components/Common/UI/Box/Box.js";
18
+ import { Badge as C } from "../../../components/Common/UI/Badge/Badge.js";
19
+ import { Banner as g } from "../../../components/Common/UI/Banner/Banner.js";
20
+ import { Link as L } from "../../../components/Common/UI/Link/Link.js";
21
+ import { Menu as T } from "../../../components/Common/UI/Menu/Menu.js";
22
+ import { Table as k } from "../../../components/Common/UI/Table/Table.js";
23
+ import { OrderedList as I } from "../../../components/Common/UI/List/OrderedList.js";
24
+ import { UnorderedList as h } from "../../../components/Common/UI/List/UnorderedList.js";
25
+ import { Heading as D } from "../../../components/Common/UI/Heading/Heading.js";
26
+ import { Text as P } from "../../../components/Common/UI/Text/Text.js";
27
+ import { CalendarPreview as S } from "../../../components/Common/UI/CalendarPreview/CalendarPreview.js";
28
+ import { ProgressBar as w } from "../../../components/Common/UI/ProgressBar/ProgressBar.js";
29
+ import { Breadcrumbs as A } from "../../../components/Common/UI/Breadcrumbs/Breadcrumbs.js";
30
+ import { Tabs as G } from "../../../components/Common/UI/Tabs/Tabs.js";
31
+ import { Dialog as M } from "../../../components/Common/UI/Dialog/Dialog.js";
32
+ import { Modal as R } from "../../../components/Common/UI/Modal/Modal.js";
33
+ import { LoadingSpinner as v } from "../../../components/Common/UI/LoadingSpinner/LoadingSpinner.js";
34
+ import { DescriptionList as F } from "../../../components/Common/UI/DescriptionList/DescriptionList.js";
35
+ import { FileInput as H } from "../../../components/Common/UI/FileInput/FileInput.js";
35
36
  const br = {
36
- Alert: (r) => /* @__PURE__ */ o(b, { ...r }),
37
- Badge: (r) => /* @__PURE__ */ o(B, { ...r }),
38
- Banner: (r) => /* @__PURE__ */ o(C, { ...r }),
37
+ Alert: (r) => /* @__PURE__ */ o(B, { ...r }),
38
+ Badge: (r) => /* @__PURE__ */ o(C, { ...r }),
39
+ Banner: (r) => /* @__PURE__ */ o(g, { ...r }),
39
40
  Button: (r) => /* @__PURE__ */ o(c, { ...r }),
40
- ButtonIcon: (r) => /* @__PURE__ */ o(l, { ...r }),
41
- Card: (r) => /* @__PURE__ */ o(x, { ...r }),
41
+ ButtonIcon: (r) => /* @__PURE__ */ o(x, { ...r }),
42
+ Card: (r) => /* @__PURE__ */ o(l, { ...r }),
43
+ Box: (r) => /* @__PURE__ */ o(b, { ...r }),
42
44
  TextInput: (r) => /* @__PURE__ */ o(m, { ...r }),
43
45
  TextArea: (r) => /* @__PURE__ */ o(t, { ...r }),
44
46
  Checkbox: (r) => /* @__PURE__ */ o(n, { ...r }),
45
47
  CheckboxGroup: (r) => /* @__PURE__ */ o(e, { ...r }),
46
48
  ComboBox: (r) => /* @__PURE__ */ o(p, { ...r }),
47
- DatePicker: (r) => /* @__PURE__ */ o(a, { ...r }),
48
- OrderedList: (r) => /* @__PURE__ */ o(k, { ...r }),
49
- UnorderedList: (r) => /* @__PURE__ */ o(I, { ...r }),
49
+ DatePicker: (r) => /* @__PURE__ */ o(f, { ...r }),
50
+ OrderedList: (r) => /* @__PURE__ */ o(I, { ...r }),
51
+ UnorderedList: (r) => /* @__PURE__ */ o(h, { ...r }),
50
52
  NumberInput: (r) => /* @__PURE__ */ o(i, { ...r }),
51
- Radio: (r) => /* @__PURE__ */ o(f, { ...r }),
53
+ Radio: (r) => /* @__PURE__ */ o(a, { ...r }),
52
54
  RadioGroup: (r) => /* @__PURE__ */ o(d, { ...r }),
53
55
  Select: (r) => /* @__PURE__ */ o(u, { ...r }),
54
56
  Switch: (r) => /* @__PURE__ */ o(s, { ...r }),
55
- Link: (r) => /* @__PURE__ */ o(g, { ...r }),
56
- Menu: (r) => /* @__PURE__ */ o(L, { ...r }),
57
- Table: (r) => /* @__PURE__ */ o(T, { ...r }),
58
- Heading: (r) => /* @__PURE__ */ o(h, { ...r }),
59
- Text: (r) => /* @__PURE__ */ o(D, { ...r }),
60
- CalendarPreview: (r) => /* @__PURE__ */ o(P, { ...r }),
61
- ProgressBar: (r) => /* @__PURE__ */ o(S, { ...r }),
62
- Breadcrumbs: (r) => /* @__PURE__ */ o(w, { ...r }),
63
- Tabs: (r) => /* @__PURE__ */ o(A, { ...r }),
64
- Dialog: (r) => /* @__PURE__ */ o(G, { ...r }),
65
- Modal: (r) => /* @__PURE__ */ o(M, { ...r }),
66
- LoadingSpinner: (r) => /* @__PURE__ */ o(R, { ...r }),
67
- DescriptionList: (r) => /* @__PURE__ */ o(v, { ...r }),
68
- FileInput: (r) => /* @__PURE__ */ o(F, { ...r })
57
+ Link: (r) => /* @__PURE__ */ o(L, { ...r }),
58
+ Menu: (r) => /* @__PURE__ */ o(T, { ...r }),
59
+ Table: (r) => /* @__PURE__ */ o(k, { ...r }),
60
+ Heading: (r) => /* @__PURE__ */ o(D, { ...r }),
61
+ Text: (r) => /* @__PURE__ */ o(P, { ...r }),
62
+ CalendarPreview: (r) => /* @__PURE__ */ o(S, { ...r }),
63
+ ProgressBar: (r) => /* @__PURE__ */ o(w, { ...r }),
64
+ Breadcrumbs: (r) => /* @__PURE__ */ o(A, { ...r }),
65
+ Tabs: (r) => /* @__PURE__ */ o(G, { ...r }),
66
+ Dialog: (r) => /* @__PURE__ */ o(M, { ...r }),
67
+ Modal: (r) => /* @__PURE__ */ o(R, { ...r }),
68
+ LoadingSpinner: (r) => /* @__PURE__ */ o(v, { ...r }),
69
+ DescriptionList: (r) => /* @__PURE__ */ o(F, { ...r }),
70
+ FileInput: (r) => /* @__PURE__ */ o(H, { ...r })
69
71
  };
70
72
  export {
71
73
  br as defaultComponents
@@ -1 +1 @@
1
- {"version":3,"file":"defaultComponentAdapter.js","sources":["../../../../src/contexts/ComponentAdapter/adapters/defaultComponentAdapter.tsx"],"sourcesContent":["// This is used to set the default adapter and can already be ommitted by using the\n// `GustoProviderCustomUIAdapter` component. That means this is a safe file to use\n// non type imports from the UI directory so the lint rule is disabled for this file.\n/* eslint-disable no-restricted-imports */\nimport type { ComponentsContextType } from '../useComponentContext'\nimport type { TextInputProps } from '@/components/Common/UI/TextInput/TextInputTypes'\nimport { TextInput } from '@/components/Common/UI/TextInput'\nimport type { TextAreaProps } from '@/components/Common/UI/TextArea/TextAreaTypes'\nimport { TextArea } from '@/components/Common/UI/TextArea'\nimport type { NumberInputProps } from '@/components/Common/UI/NumberInput/NumberInputTypes'\nimport { NumberInput } from '@/components/Common/UI/NumberInput'\nimport type { CheckboxGroupProps } from '@/components/Common/UI/CheckboxGroup/CheckboxGroupTypes'\nimport { CheckboxGroup } from '@/components/Common/UI/CheckboxGroup'\nimport type { ComboBoxProps } from '@/components/Common/UI/ComboBox/ComboBoxTypes'\nimport { ComboBox } from '@/components/Common/UI/ComboBox/ComboBox'\nimport type { CheckboxProps } from '@/components/Common/UI/Checkbox/CheckboxTypes'\nimport { Checkbox } from '@/components/Common/UI/Checkbox'\nimport type { DatePickerProps } from '@/components/Common/UI/DatePicker/DatePickerTypes'\nimport { DatePicker } from '@/components/Common/UI/DatePicker'\nimport type { RadioProps } from '@/components/Common/UI/Radio/RadioTypes'\nimport { Radio } from '@/components/Common/UI/Radio'\nimport type { RadioGroupProps } from '@/components/Common/UI/RadioGroup/RadioGroupTypes'\nimport { RadioGroup } from '@/components/Common/UI/RadioGroup'\nimport type { SelectProps } from '@/components/Common/UI/Select/SelectTypes'\nimport { Select } from '@/components/Common/UI/Select'\nimport type { SwitchProps } from '@/components/Common/UI/Switch/SwitchTypes'\nimport { Switch } from '@/components/Common/UI/Switch'\nimport type { ButtonProps, ButtonIconProps } from '@/components/Common/UI/Button/ButtonTypes'\nimport { Button } from '@/components/Common/UI/Button'\nimport { ButtonIcon } from '@/components/Common/UI/Button/ButtonIcon'\nimport type { AlertProps } from '@/components/Common/UI/Alert/AlertTypes'\nimport { Alert } from '@/components/Common/UI/Alert/Alert'\nimport type { CardProps } from '@/components/Common/UI/Card/CardTypes'\nimport { Card } from '@/components/Common/UI/Card/Card'\nimport { Badge } from '@/components/Common/UI/Badge/Badge'\nimport type { BadgeProps } from '@/components/Common/UI/Badge/BadgeTypes'\nimport { Banner } from '@/components/Common/UI/Banner/Banner'\nimport type { BannerProps } from '@/components/Common/UI/Banner/BannerTypes'\nimport type { LinkProps } from '@/components/Common/UI/Link/LinkTypes'\nimport { Link } from '@/components/Common/UI/Link'\nimport type { MenuProps } from '@/components/Common/UI/Menu/MenuTypes'\nimport { Menu } from '@/components/Common/UI/Menu'\nimport type { TableProps } from '@/components/Common/UI/Table'\nimport { Table } from '@/components/Common/UI/Table'\nimport type { OrderedListProps, UnorderedListProps } from '@/components/Common/UI/List'\nimport { OrderedList, UnorderedList } from '@/components/Common/UI/List'\nimport { Heading } from '@/components/Common/UI/Heading'\nimport type { HeadingProps } from '@/components/Common/UI/Heading/HeadingTypes'\nimport { Text } from '@/components/Common/UI/Text'\nimport type { TextProps } from '@/components/Common/UI/Text/TextTypes'\nimport { CalendarPreview } from '@/components/Common/UI/CalendarPreview'\nimport type { CalendarPreviewProps } from '@/components/Common/UI/CalendarPreview/CalendarPreviewTypes'\nimport type { ProgressBarProps } from '@/components/Common/UI/ProgressBar'\nimport { ProgressBar } from '@/components/Common/UI/ProgressBar'\nimport type { BreadcrumbsProps } from '@/components/Common/UI/Breadcrumbs'\nimport { Breadcrumbs } from '@/components/Common/UI/Breadcrumbs'\nimport type { TabsProps } from '@/components/Common/UI/Tabs/TabsTypes'\nimport { Tabs } from '@/components/Common/UI/Tabs'\nimport type { DialogProps } from '@/components/Common/UI/Dialog/DialogTypes'\nimport { Dialog } from '@/components/Common/UI/Dialog'\nimport type { ModalProps } from '@/components/Common/UI/Modal/ModalTypes'\nimport { Modal } from '@/components/Common/UI/Modal'\nimport type { LoadingSpinnerProps } from '@/components/Common/UI/LoadingSpinner/LoadingSpinnerTypes'\nimport { LoadingSpinner } from '@/components/Common/UI/LoadingSpinner'\nimport type { DescriptionListProps } from '@/components/Common/UI/DescriptionList/DescriptionListTypes'\nimport { DescriptionList } from '@/components/Common/UI/DescriptionList'\nimport type { FileInputProps } from '@/components/Common/UI/FileInput/FileInputTypes'\nimport { FileInput } from '@/components/Common/UI/FileInput'\n\nexport const defaultComponents: ComponentsContextType = {\n Alert: (props: AlertProps) => <Alert {...props} />,\n Badge: (props: BadgeProps) => <Badge {...props} />,\n Banner: (props: BannerProps) => <Banner {...props} />,\n Button: (props: ButtonProps) => <Button {...props} />,\n ButtonIcon: (props: ButtonIconProps) => <ButtonIcon {...props} />,\n Card: (props: CardProps) => <Card {...props} />,\n TextInput: (props: TextInputProps) => <TextInput {...props} />,\n TextArea: (props: TextAreaProps) => <TextArea {...props} />,\n Checkbox: (props: CheckboxProps) => <Checkbox {...props} />,\n CheckboxGroup: (props: CheckboxGroupProps) => <CheckboxGroup {...props} />,\n ComboBox: (props: ComboBoxProps) => <ComboBox {...props} />,\n DatePicker: (props: DatePickerProps) => <DatePicker {...props} />,\n OrderedList: (props: OrderedListProps) => <OrderedList {...props} />,\n UnorderedList: (props: UnorderedListProps) => <UnorderedList {...props} />,\n NumberInput: (props: NumberInputProps) => <NumberInput {...props} />,\n Radio: (props: RadioProps) => <Radio {...props} />,\n RadioGroup: (props: RadioGroupProps) => <RadioGroup {...props} />,\n Select: (props: SelectProps) => <Select {...props} />,\n Switch: (props: SwitchProps) => <Switch {...props} />,\n Link: (props: LinkProps) => <Link {...props} />,\n Menu: (props: MenuProps) => <Menu {...props} />,\n Table: (props: TableProps) => <Table {...props} />,\n Heading: (props: HeadingProps) => <Heading {...props} />,\n Text: (props: TextProps) => <Text {...props} />,\n CalendarPreview: (props: CalendarPreviewProps) => <CalendarPreview {...props} />,\n ProgressBar: (props: ProgressBarProps) => <ProgressBar {...props} />,\n Breadcrumbs: (props: BreadcrumbsProps) => <Breadcrumbs {...props} />,\n Tabs: (props: TabsProps) => <Tabs {...props} />,\n Dialog: (props: DialogProps) => <Dialog {...props} />,\n Modal: (props: ModalProps) => <Modal {...props} />,\n LoadingSpinner: (props: LoadingSpinnerProps) => <LoadingSpinner {...props} />,\n DescriptionList: (props: DescriptionListProps) => <DescriptionList {...props} />,\n FileInput: (props: FileInputProps) => <FileInput {...props} />,\n}\n"],"names":["defaultComponents","props","jsx","Alert","Badge","Banner","Button","ButtonIcon","Card","TextInput","TextArea","Checkbox","CheckboxGroup","ComboBox","DatePicker","OrderedList","UnorderedList","NumberInput","Radio","RadioGroup","Select","Switch","Link","Menu","Table","Heading","Text","CalendarPreview","ProgressBar","Breadcrumbs","Tabs","Dialog","Modal","LoadingSpinner","DescriptionList","FileInput"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqEO,MAAMA,KAA2C;AAAA,EACtD,OAAO,CAACC,MAAsB,gBAAAC,EAACC,GAAA,EAAO,GAAGF,GAAO;AAAA,EAChD,OAAO,CAACA,MAAsB,gBAAAC,EAACE,GAAA,EAAO,GAAGH,GAAO;AAAA,EAChD,QAAQ,CAACA,MAAuB,gBAAAC,EAACG,GAAA,EAAQ,GAAGJ,GAAO;AAAA,EACnD,QAAQ,CAACA,MAAuB,gBAAAC,EAACI,GAAA,EAAQ,GAAGL,GAAO;AAAA,EACnD,YAAY,CAACA,MAA2B,gBAAAC,EAACK,GAAA,EAAY,GAAGN,GAAO;AAAA,EAC/D,MAAM,CAACA,MAAqB,gBAAAC,EAACM,GAAA,EAAM,GAAGP,GAAO;AAAA,EAC7C,WAAW,CAACA,MAA0B,gBAAAC,EAACO,GAAA,EAAW,GAAGR,GAAO;AAAA,EAC5D,UAAU,CAACA,MAAyB,gBAAAC,EAACQ,GAAA,EAAU,GAAGT,GAAO;AAAA,EACzD,UAAU,CAACA,MAAyB,gBAAAC,EAACS,GAAA,EAAU,GAAGV,GAAO;AAAA,EACzD,eAAe,CAACA,MAA8B,gBAAAC,EAACU,GAAA,EAAe,GAAGX,GAAO;AAAA,EACxE,UAAU,CAACA,MAAyB,gBAAAC,EAACW,GAAA,EAAU,GAAGZ,GAAO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,GAAA,EAAM,GAAG7B,GAAO;AAAA,EAC7C,QAAQ,CAACA,MAAuB,gBAAAC,EAAC6B,GAAA,EAAQ,GAAG9B,GAAO;AAAA,EACnD,OAAO,CAACA,MAAsB,gBAAAC,EAAC8B,GAAA,EAAO,GAAG/B,GAAO;AAAA,EAChD,gBAAgB,CAACA,MAA+B,gBAAAC,EAAC+B,GAAA,EAAgB,GAAGhC,GAAO;AAAA,EAC3E,iBAAiB,CAACA,MAAgC,gBAAAC,EAACgC,GAAA,EAAiB,GAAGjC,GAAO;AAAA,EAC9E,WAAW,CAACA,MAA0B,gBAAAC,EAACiC,GAAA,EAAW,GAAGlC,EAAA,CAAO;AAC9D;"}
1
+ {"version":3,"file":"defaultComponentAdapter.js","sources":["../../../../src/contexts/ComponentAdapter/adapters/defaultComponentAdapter.tsx"],"sourcesContent":["// This is used to set the default adapter and can already be ommitted by using the\n// `GustoProviderCustomUIAdapter` component. That means this is a safe file to use\n// non type imports from the UI directory so the lint rule is disabled for this file.\n/* eslint-disable no-restricted-imports */\nimport type { ComponentsContextType } from '../useComponentContext'\nimport type { TextInputProps } from '@/components/Common/UI/TextInput/TextInputTypes'\nimport { TextInput } from '@/components/Common/UI/TextInput'\nimport type { TextAreaProps } from '@/components/Common/UI/TextArea/TextAreaTypes'\nimport { TextArea } from '@/components/Common/UI/TextArea'\nimport type { NumberInputProps } from '@/components/Common/UI/NumberInput/NumberInputTypes'\nimport { NumberInput } from '@/components/Common/UI/NumberInput'\nimport type { CheckboxGroupProps } from '@/components/Common/UI/CheckboxGroup/CheckboxGroupTypes'\nimport { CheckboxGroup } from '@/components/Common/UI/CheckboxGroup'\nimport type { ComboBoxProps } from '@/components/Common/UI/ComboBox/ComboBoxTypes'\nimport { ComboBox } from '@/components/Common/UI/ComboBox/ComboBox'\nimport type { CheckboxProps } from '@/components/Common/UI/Checkbox/CheckboxTypes'\nimport { Checkbox } from '@/components/Common/UI/Checkbox'\nimport type { DatePickerProps } from '@/components/Common/UI/DatePicker/DatePickerTypes'\nimport { DatePicker } from '@/components/Common/UI/DatePicker'\nimport type { RadioProps } from '@/components/Common/UI/Radio/RadioTypes'\nimport { Radio } from '@/components/Common/UI/Radio'\nimport type { RadioGroupProps } from '@/components/Common/UI/RadioGroup/RadioGroupTypes'\nimport { RadioGroup } from '@/components/Common/UI/RadioGroup'\nimport type { SelectProps } from '@/components/Common/UI/Select/SelectTypes'\nimport { Select } from '@/components/Common/UI/Select'\nimport type { SwitchProps } from '@/components/Common/UI/Switch/SwitchTypes'\nimport { Switch } from '@/components/Common/UI/Switch'\nimport type { ButtonProps, ButtonIconProps } from '@/components/Common/UI/Button/ButtonTypes'\nimport { Button } from '@/components/Common/UI/Button'\nimport { ButtonIcon } from '@/components/Common/UI/Button/ButtonIcon'\nimport type { AlertProps } from '@/components/Common/UI/Alert/AlertTypes'\nimport { Alert } from '@/components/Common/UI/Alert/Alert'\nimport type { CardProps } from '@/components/Common/UI/Card/CardTypes'\nimport { Card } from '@/components/Common/UI/Card/Card'\nimport type { BoxProps } from '@/components/Common/UI/Box/BoxTypes'\nimport { Box } from '@/components/Common/UI/Box/Box'\nimport { Badge } from '@/components/Common/UI/Badge/Badge'\nimport type { BadgeProps } from '@/components/Common/UI/Badge/BadgeTypes'\nimport { Banner } from '@/components/Common/UI/Banner/Banner'\nimport type { BannerProps } from '@/components/Common/UI/Banner/BannerTypes'\nimport type { LinkProps } from '@/components/Common/UI/Link/LinkTypes'\nimport { Link } from '@/components/Common/UI/Link'\nimport type { MenuProps } from '@/components/Common/UI/Menu/MenuTypes'\nimport { Menu } from '@/components/Common/UI/Menu'\nimport type { TableProps } from '@/components/Common/UI/Table'\nimport { Table } from '@/components/Common/UI/Table'\nimport type { OrderedListProps, UnorderedListProps } from '@/components/Common/UI/List'\nimport { OrderedList, UnorderedList } from '@/components/Common/UI/List'\nimport { Heading } from '@/components/Common/UI/Heading'\nimport type { HeadingProps } from '@/components/Common/UI/Heading/HeadingTypes'\nimport { Text } from '@/components/Common/UI/Text'\nimport type { TextProps } from '@/components/Common/UI/Text/TextTypes'\nimport { CalendarPreview } from '@/components/Common/UI/CalendarPreview'\nimport type { CalendarPreviewProps } from '@/components/Common/UI/CalendarPreview/CalendarPreviewTypes'\nimport type { ProgressBarProps } from '@/components/Common/UI/ProgressBar'\nimport { ProgressBar } from '@/components/Common/UI/ProgressBar'\nimport type { BreadcrumbsProps } from '@/components/Common/UI/Breadcrumbs'\nimport { Breadcrumbs } from '@/components/Common/UI/Breadcrumbs'\nimport type { TabsProps } from '@/components/Common/UI/Tabs/TabsTypes'\nimport { Tabs } from '@/components/Common/UI/Tabs'\nimport type { DialogProps } from '@/components/Common/UI/Dialog/DialogTypes'\nimport { Dialog } from '@/components/Common/UI/Dialog'\nimport type { ModalProps } from '@/components/Common/UI/Modal/ModalTypes'\nimport { Modal } from '@/components/Common/UI/Modal'\nimport type { LoadingSpinnerProps } from '@/components/Common/UI/LoadingSpinner/LoadingSpinnerTypes'\nimport { LoadingSpinner } from '@/components/Common/UI/LoadingSpinner'\nimport type { DescriptionListProps } from '@/components/Common/UI/DescriptionList/DescriptionListTypes'\nimport { DescriptionList } from '@/components/Common/UI/DescriptionList'\nimport type { FileInputProps } from '@/components/Common/UI/FileInput/FileInputTypes'\nimport { FileInput } from '@/components/Common/UI/FileInput'\n\nexport const defaultComponents: ComponentsContextType = {\n Alert: (props: AlertProps) => <Alert {...props} />,\n Badge: (props: BadgeProps) => <Badge {...props} />,\n Banner: (props: BannerProps) => <Banner {...props} />,\n Button: (props: ButtonProps) => <Button {...props} />,\n ButtonIcon: (props: ButtonIconProps) => <ButtonIcon {...props} />,\n Card: (props: CardProps) => <Card {...props} />,\n Box: (props: BoxProps) => <Box {...props} />,\n TextInput: (props: TextInputProps) => <TextInput {...props} />,\n TextArea: (props: TextAreaProps) => <TextArea {...props} />,\n Checkbox: (props: CheckboxProps) => <Checkbox {...props} />,\n CheckboxGroup: (props: CheckboxGroupProps) => <CheckboxGroup {...props} />,\n ComboBox: (props: ComboBoxProps) => <ComboBox {...props} />,\n DatePicker: (props: DatePickerProps) => <DatePicker {...props} />,\n OrderedList: (props: OrderedListProps) => <OrderedList {...props} />,\n UnorderedList: (props: UnorderedListProps) => <UnorderedList {...props} />,\n NumberInput: (props: NumberInputProps) => <NumberInput {...props} />,\n Radio: (props: RadioProps) => <Radio {...props} />,\n RadioGroup: (props: RadioGroupProps) => <RadioGroup {...props} />,\n Select: (props: SelectProps) => <Select {...props} />,\n Switch: (props: SwitchProps) => <Switch {...props} />,\n Link: (props: LinkProps) => <Link {...props} />,\n Menu: (props: MenuProps) => <Menu {...props} />,\n Table: (props: TableProps) => <Table {...props} />,\n Heading: (props: HeadingProps) => <Heading {...props} />,\n Text: (props: TextProps) => <Text {...props} />,\n CalendarPreview: (props: CalendarPreviewProps) => <CalendarPreview {...props} />,\n ProgressBar: (props: ProgressBarProps) => <ProgressBar {...props} />,\n Breadcrumbs: (props: BreadcrumbsProps) => <Breadcrumbs {...props} />,\n Tabs: (props: TabsProps) => <Tabs {...props} />,\n Dialog: (props: DialogProps) => <Dialog {...props} />,\n Modal: (props: ModalProps) => <Modal {...props} />,\n LoadingSpinner: (props: LoadingSpinnerProps) => <LoadingSpinner {...props} />,\n DescriptionList: (props: DescriptionListProps) => <DescriptionList {...props} />,\n FileInput: (props: FileInputProps) => <FileInput {...props} />,\n}\n"],"names":["defaultComponents","props","jsx","Alert","Badge","Banner","Button","ButtonIcon","Card","Box","TextInput","TextArea","Checkbox","CheckboxGroup","ComboBox","DatePicker","OrderedList","UnorderedList","NumberInput","Radio","RadioGroup","Select","Switch","Link","Menu","Table","Heading","Text","CalendarPreview","ProgressBar","Breadcrumbs","Tabs","Dialog","Modal","LoadingSpinner","DescriptionList","FileInput"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuEO,MAAMA,KAA2C;AAAA,EACtD,OAAO,CAACC,MAAsB,gBAAAC,EAACC,GAAA,EAAO,GAAGF,GAAO;AAAA,EAChD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export type { ProgressBarProps } from '../../components/Common/UI/ProgressBar/Pr
2
2
  export type { BreadcrumbsProps } from '../../components/Common/UI/Breadcrumbs/BreadcrumbsTypes';
3
3
  export type { ButtonProps, ButtonIconProps } from '../../components/Common/UI/Button/ButtonTypes';
4
4
  export type { CardProps } from '../../components/Common/UI/Card/CardTypes';
5
+ export type { BoxProps } from '../../components/Common/UI/Box/BoxTypes';
5
6
  export type { CheckboxProps } from '../../components/Common/UI/Checkbox/CheckboxTypes';
6
7
  export type { CheckboxGroupProps, CheckboxGroupOption, } from '../../components/Common/UI/CheckboxGroup/CheckboxGroupTypes';
7
8
  export type { ComboBoxProps, ComboBoxOption } from '../../components/Common/UI/ComboBox/ComboBoxTypes';
@@ -13,6 +13,7 @@ import { SwitchProps } from '../../components/Common/UI/Switch/SwitchTypes';
13
13
  import { ButtonIconProps, ButtonProps } from '../../components/Common/UI/Button/ButtonTypes';
14
14
  import { AlertProps } from '../../components/Common/UI/Alert/AlertTypes';
15
15
  import { CardProps } from '../../components/Common/UI/Card/CardTypes';
16
+ import { BoxProps } from '../../components/Common/UI/Box/BoxTypes';
16
17
  import { LinkProps } from '../../components/Common/UI/Link/LinkTypes';
17
18
  import { BadgeProps } from '../../components/Common/UI/Badge/BadgeTypes';
18
19
  import { BannerProps } from '../../components/Common/UI/Banner/BannerTypes';
@@ -39,6 +40,7 @@ export interface ComponentsContextType {
39
40
  Button: (props: ButtonProps) => JSX.Element | null;
40
41
  ButtonIcon: (props: ButtonIconProps) => JSX.Element | null;
41
42
  Card: (props: CardProps) => JSX.Element | null;
43
+ Box: (props: BoxProps) => JSX.Element | null;
42
44
  Checkbox: (props: CheckboxProps) => JSX.Element | null;
43
45
  CheckboxGroup: (props: CheckboxGroupProps) => JSX.Element | null;
44
46
  ComboBox: (props: ComboBoxProps) => JSX.Element | null;
@@ -1 +1 @@
1
- {"version":3,"file":"useComponentContext.js","sources":["../../../src/contexts/ComponentAdapter/useComponentContext.ts"],"sourcesContent":["import { createContext, useContext } from 'react'\nimport type { JSX } from 'react'\nimport type { TextInputProps } from '@/components/Common/UI/TextInput/TextInputTypes'\nimport type { TextAreaProps } from '@/components/Common/UI/TextArea/TextAreaTypes'\nimport type { NumberInputProps } from '@/components/Common/UI/NumberInput/NumberInputTypes'\nimport type { CheckboxGroupProps } from '@/components/Common/UI/CheckboxGroup/CheckboxGroupTypes'\nimport type { ComboBoxProps } from '@/components/Common/UI/ComboBox/ComboBoxTypes'\nimport type { CheckboxProps } from '@/components/Common/UI/Checkbox/CheckboxTypes'\nimport type { DatePickerProps } from '@/components/Common/UI/DatePicker/DatePickerTypes'\nimport type { RadioProps } from '@/components/Common/UI/Radio/RadioTypes'\nimport type { RadioGroupProps } from '@/components/Common/UI/RadioGroup/RadioGroupTypes'\nimport type { SelectProps } from '@/components/Common/UI/Select/SelectTypes'\nimport type { SwitchProps } from '@/components/Common/UI/Switch/SwitchTypes'\nimport type { ButtonIconProps, ButtonProps } from '@/components/Common/UI/Button/ButtonTypes'\nimport type { AlertProps } from '@/components/Common/UI/Alert/AlertTypes'\nimport type { CardProps } from '@/components/Common/UI/Card/CardTypes'\nimport type { LinkProps } from '@/components/Common/UI/Link/LinkTypes'\nimport type { BadgeProps } from '@/components/Common/UI/Badge/BadgeTypes'\nimport type { BannerProps } from '@/components/Common/UI/Banner/BannerTypes'\nimport type { MenuProps } from '@/components/Common/UI/Menu/MenuTypes'\nimport type { TableProps } from '@/components/Common/UI/Table/TableTypes'\nimport type { OrderedListProps, UnorderedListProps } from '@/components/Common/UI/List/ListTypes'\nimport type { HeadingProps } from '@/components/Common/UI/Heading/HeadingTypes'\nimport type { PaginationControlProps } from '@/components/Common/PaginationControl/PaginationControlTypes'\nimport type { TextProps } from '@/components/Common/UI/Text/TextTypes'\nimport type { CalendarPreviewProps } from '@/components/Common/UI/CalendarPreview/CalendarPreviewTypes'\nimport type { ProgressBarProps } from '@/components/Common/UI/ProgressBar/ProgressBarTypes'\nimport type { BreadcrumbsProps } from '@/components/Common/UI/Breadcrumbs/BreadcrumbsTypes'\nimport type { TabsProps } from '@/components/Common/UI/Tabs/TabsTypes'\nimport type { DialogProps } from '@/components/Common/UI/Dialog/DialogTypes'\nimport type { ModalProps } from '@/components/Common/UI/Modal/ModalTypes'\nimport type { LoadingSpinnerProps } from '@/components/Common/UI/LoadingSpinner/LoadingSpinnerTypes'\nimport type { DescriptionListProps } from '@/components/Common/UI/DescriptionList/DescriptionListTypes'\nimport type { FileInputProps } from '@/components/Common/UI/FileInput/FileInputTypes'\nimport type { PayrollLoadingProps } from '@/components/Common/PayrollLoading/PayrollLoadingTypes'\n\nexport interface ComponentsContextType {\n Alert: (props: AlertProps) => JSX.Element | null\n Badge: (props: BadgeProps) => JSX.Element | null\n Banner: (props: BannerProps) => JSX.Element | null\n Button: (props: ButtonProps) => JSX.Element | null\n ButtonIcon: (props: ButtonIconProps) => JSX.Element | null\n Card: (props: CardProps) => JSX.Element | null\n Checkbox: (props: CheckboxProps) => JSX.Element | null\n CheckboxGroup: (props: CheckboxGroupProps) => JSX.Element | null\n ComboBox: (props: ComboBoxProps) => JSX.Element | null\n DatePicker: (props: DatePickerProps) => JSX.Element | null\n OrderedList: (props: OrderedListProps) => JSX.Element | null\n UnorderedList: (props: UnorderedListProps) => JSX.Element | null\n NumberInput: (props: NumberInputProps) => JSX.Element | null\n Radio: (props: RadioProps) => JSX.Element | null\n RadioGroup: (props: RadioGroupProps) => JSX.Element | null\n Select: (props: SelectProps) => JSX.Element | null\n Switch: (props: SwitchProps) => JSX.Element | null\n TextInput: (props: TextInputProps) => JSX.Element | null\n TextArea: (props: TextAreaProps) => JSX.Element | null\n Link: (props: LinkProps) => JSX.Element | null\n Menu: (props: MenuProps) => JSX.Element | null\n Table: (props: TableProps) => JSX.Element | null\n Heading: (props: HeadingProps) => JSX.Element | null\n PaginationControl?: (props: PaginationControlProps) => JSX.Element | null\n PayrollLoading?: (props: PayrollLoadingProps) => JSX.Element | null\n Text: (props: TextProps) => JSX.Element | null\n CalendarPreview: (props: CalendarPreviewProps) => JSX.Element | null\n ProgressBar: (props: ProgressBarProps) => JSX.Element | null\n Breadcrumbs: (props: BreadcrumbsProps) => JSX.Element | null\n Tabs: (props: TabsProps) => JSX.Element | null\n Dialog: (props: DialogProps) => JSX.Element | null\n Modal: (props: ModalProps) => JSX.Element | null\n LoadingSpinner: (props: LoadingSpinnerProps) => JSX.Element | null\n DescriptionList: (props: DescriptionListProps) => JSX.Element | null\n FileInput: (props: FileInputProps) => JSX.Element | null\n}\n\nexport const ComponentsContext = createContext<ComponentsContextType | null>(null)\n\nexport const useComponentContext = () => {\n const context = useContext(ComponentsContext)\n if (!context) {\n throw new Error('useComponentContext must be used within a ComponentsProvider')\n }\n return context\n}\n"],"names":["ComponentsContext","createContext","useComponentContext","context","useContext"],"mappings":";AA0EO,MAAMA,IAAoBC,EAA4C,IAAI,GAEpEC,IAAsB,MAAM;AACvC,QAAMC,IAAUC,EAAWJ,CAAiB;AAC5C,MAAI,CAACG;AACH,UAAM,IAAI,MAAM,8DAA8D;AAEhF,SAAOA;AACT;"}
1
+ {"version":3,"file":"useComponentContext.js","sources":["../../../src/contexts/ComponentAdapter/useComponentContext.ts"],"sourcesContent":["import { createContext, useContext } from 'react'\nimport type { JSX } from 'react'\nimport type { TextInputProps } from '@/components/Common/UI/TextInput/TextInputTypes'\nimport type { TextAreaProps } from '@/components/Common/UI/TextArea/TextAreaTypes'\nimport type { NumberInputProps } from '@/components/Common/UI/NumberInput/NumberInputTypes'\nimport type { CheckboxGroupProps } from '@/components/Common/UI/CheckboxGroup/CheckboxGroupTypes'\nimport type { ComboBoxProps } from '@/components/Common/UI/ComboBox/ComboBoxTypes'\nimport type { CheckboxProps } from '@/components/Common/UI/Checkbox/CheckboxTypes'\nimport type { DatePickerProps } from '@/components/Common/UI/DatePicker/DatePickerTypes'\nimport type { RadioProps } from '@/components/Common/UI/Radio/RadioTypes'\nimport type { RadioGroupProps } from '@/components/Common/UI/RadioGroup/RadioGroupTypes'\nimport type { SelectProps } from '@/components/Common/UI/Select/SelectTypes'\nimport type { SwitchProps } from '@/components/Common/UI/Switch/SwitchTypes'\nimport type { ButtonIconProps, ButtonProps } from '@/components/Common/UI/Button/ButtonTypes'\nimport type { AlertProps } from '@/components/Common/UI/Alert/AlertTypes'\nimport type { CardProps } from '@/components/Common/UI/Card/CardTypes'\nimport type { BoxProps } from '@/components/Common/UI/Box/BoxTypes'\nimport type { LinkProps } from '@/components/Common/UI/Link/LinkTypes'\nimport type { BadgeProps } from '@/components/Common/UI/Badge/BadgeTypes'\nimport type { BannerProps } from '@/components/Common/UI/Banner/BannerTypes'\nimport type { MenuProps } from '@/components/Common/UI/Menu/MenuTypes'\nimport type { TableProps } from '@/components/Common/UI/Table/TableTypes'\nimport type { OrderedListProps, UnorderedListProps } from '@/components/Common/UI/List/ListTypes'\nimport type { HeadingProps } from '@/components/Common/UI/Heading/HeadingTypes'\nimport type { PaginationControlProps } from '@/components/Common/PaginationControl/PaginationControlTypes'\nimport type { TextProps } from '@/components/Common/UI/Text/TextTypes'\nimport type { CalendarPreviewProps } from '@/components/Common/UI/CalendarPreview/CalendarPreviewTypes'\nimport type { ProgressBarProps } from '@/components/Common/UI/ProgressBar/ProgressBarTypes'\nimport type { BreadcrumbsProps } from '@/components/Common/UI/Breadcrumbs/BreadcrumbsTypes'\nimport type { TabsProps } from '@/components/Common/UI/Tabs/TabsTypes'\nimport type { DialogProps } from '@/components/Common/UI/Dialog/DialogTypes'\nimport type { ModalProps } from '@/components/Common/UI/Modal/ModalTypes'\nimport type { LoadingSpinnerProps } from '@/components/Common/UI/LoadingSpinner/LoadingSpinnerTypes'\nimport type { DescriptionListProps } from '@/components/Common/UI/DescriptionList/DescriptionListTypes'\nimport type { FileInputProps } from '@/components/Common/UI/FileInput/FileInputTypes'\nimport type { PayrollLoadingProps } from '@/components/Common/PayrollLoading/PayrollLoadingTypes'\n\nexport interface ComponentsContextType {\n Alert: (props: AlertProps) => JSX.Element | null\n Badge: (props: BadgeProps) => JSX.Element | null\n Banner: (props: BannerProps) => JSX.Element | null\n Button: (props: ButtonProps) => JSX.Element | null\n ButtonIcon: (props: ButtonIconProps) => JSX.Element | null\n Card: (props: CardProps) => JSX.Element | null\n Box: (props: BoxProps) => JSX.Element | null\n Checkbox: (props: CheckboxProps) => JSX.Element | null\n CheckboxGroup: (props: CheckboxGroupProps) => JSX.Element | null\n ComboBox: (props: ComboBoxProps) => JSX.Element | null\n DatePicker: (props: DatePickerProps) => JSX.Element | null\n OrderedList: (props: OrderedListProps) => JSX.Element | null\n UnorderedList: (props: UnorderedListProps) => JSX.Element | null\n NumberInput: (props: NumberInputProps) => JSX.Element | null\n Radio: (props: RadioProps) => JSX.Element | null\n RadioGroup: (props: RadioGroupProps) => JSX.Element | null\n Select: (props: SelectProps) => JSX.Element | null\n Switch: (props: SwitchProps) => JSX.Element | null\n TextInput: (props: TextInputProps) => JSX.Element | null\n TextArea: (props: TextAreaProps) => JSX.Element | null\n Link: (props: LinkProps) => JSX.Element | null\n Menu: (props: MenuProps) => JSX.Element | null\n Table: (props: TableProps) => JSX.Element | null\n Heading: (props: HeadingProps) => JSX.Element | null\n PaginationControl?: (props: PaginationControlProps) => JSX.Element | null\n PayrollLoading?: (props: PayrollLoadingProps) => JSX.Element | null\n Text: (props: TextProps) => JSX.Element | null\n CalendarPreview: (props: CalendarPreviewProps) => JSX.Element | null\n ProgressBar: (props: ProgressBarProps) => JSX.Element | null\n Breadcrumbs: (props: BreadcrumbsProps) => JSX.Element | null\n Tabs: (props: TabsProps) => JSX.Element | null\n Dialog: (props: DialogProps) => JSX.Element | null\n Modal: (props: ModalProps) => JSX.Element | null\n LoadingSpinner: (props: LoadingSpinnerProps) => JSX.Element | null\n DescriptionList: (props: DescriptionListProps) => JSX.Element | null\n FileInput: (props: FileInputProps) => JSX.Element | null\n}\n\nexport const ComponentsContext = createContext<ComponentsContextType | null>(null)\n\nexport const useComponentContext = () => {\n const context = useContext(ComponentsContext)\n if (!context) {\n throw new Error('useComponentContext must be used within a ComponentsProvider')\n }\n return context\n}\n"],"names":["ComponentsContext","createContext","useComponentContext","context","useContext"],"mappings":";AA4EO,MAAMA,IAAoBC,EAA4C,IAAI,GAEpEC,IAAsB,MAAM;AACvC,QAAMC,IAAUC,EAAWJ,CAAiB;AAC5C,MAAI,CAACG;AACH,UAAM,IAAI,MAAM,8DAA8D;AAEhF,SAAOA;AACT;"}
@@ -7,12 +7,13 @@ import { ApiProvider as C } from "../ApiProvider/ApiProvider.js";
7
7
  import { LoadingIndicatorProvider as I } from "../LoadingIndicatorProvider/LoadingIndicatorProvider.js";
8
8
  import { SDKI18next as t } from "./SDKI18next.js";
9
9
  import "../../shared/constants.js";
10
+ import "classnames";
10
11
  import { InternalError as x } from "../../components/Common/InternalError/InternalError.js";
11
12
  import "../ComponentAdapter/useComponentContext.js";
12
13
  import { LocaleProvider as L } from "../LocaleProvider/LocaleProvider.js";
13
14
  import "../LocaleProvider/useLocale.js";
14
15
  import { ThemeProvider as U } from "../ThemeProvider/ThemeProvider.js";
15
- const T = (a) => {
16
+ const z = (a) => {
16
17
  const {
17
18
  children: d,
18
19
  config: e,
@@ -51,6 +52,6 @@ const T = (a) => {
51
52
  ) }, n) }) }) }) }) });
52
53
  };
53
54
  export {
54
- T as GustoProviderCustomUIAdapter
55
+ z as GustoProviderCustomUIAdapter
55
56
  };
56
57
  //# sourceMappingURL=GustoProviderCustomUIAdapter.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"GustoProviderCustomUIAdapter.js","sources":["../../../src/contexts/GustoProvider/GustoProviderCustomUIAdapter.tsx"],"sourcesContent":["import type React from 'react'\nimport { ErrorBoundary } from 'react-error-boundary'\nimport { I18nextProvider } from 'react-i18next'\nimport type { QueryClient } from '@tanstack/react-query'\nimport { useEffect } from 'react'\nimport { ComponentsProvider } from '../ComponentAdapter/ComponentsProvider'\nimport type { ComponentsContextType } from '../ComponentAdapter/useComponentContext'\nimport { ApiProvider } from '../ApiProvider/ApiProvider'\nimport { LoadingIndicatorProvider } from '../LoadingIndicatorProvider/LoadingIndicatorProvider'\nimport type { LoadingIndicatorContextProps } from '../LoadingIndicatorProvider/useLoadingIndicator'\nimport { SDKI18next } from './SDKI18next'\nimport { InternalError } from '@/components/Common'\nimport { LocaleProvider } from '@/contexts/LocaleProvider'\nimport { ThemeProvider } from '@/contexts/ThemeProvider'\nimport type { GustoSDKTheme } from '@/contexts/ThemeProvider/theme'\nimport type { ResourceDictionary, SupportedLanguages } from '@/types/Helpers'\nimport type { SDKHooks } from '@/types/hooks'\n\nexport interface APIConfig {\n baseUrl: string\n headers?: HeadersInit\n hooks?: SDKHooks\n}\n\nexport interface GustoProviderProps {\n config: APIConfig\n dictionary?: ResourceDictionary\n lng?: string\n locale?: string\n currency?: string\n theme?: GustoSDKTheme\n queryClient?: QueryClient\n components: ComponentsContextType\n LoaderComponent?: LoadingIndicatorContextProps['LoadingIndicator']\n}\n\nexport interface GustoProviderCustomUIAdapterProps extends GustoProviderProps {\n children?: React.ReactNode\n}\n\n/**\n * A provider that accepts UI component adapters through the components prop\n */\nconst GustoProviderCustomUIAdapter: React.FC<GustoProviderCustomUIAdapterProps> = props => {\n const {\n children,\n config,\n dictionary,\n lng = 'en',\n locale = 'en-US',\n currency = 'USD',\n theme,\n components,\n LoaderComponent,\n queryClient,\n } = props\n\n // Handle dictionary resources\n if (dictionary) {\n for (const language in dictionary) {\n const lang = language as SupportedLanguages\n for (const ns in dictionary[lang]) {\n // Adding resources overrides to i18next instance - initial load will override common namespace and add component specific dictionaries provided by partners\n SDKI18next.addResourceBundle(\n lang,\n ns,\n (dictionary[lang] as Record<string, unknown>)[ns],\n true,\n true,\n )\n }\n }\n }\n\n // Handle language change\n useEffect(() => {\n void (async () => {\n await SDKI18next.changeLanguage(lng)\n })()\n }, [lng])\n\n return (\n <ComponentsProvider value={components}>\n <LoadingIndicatorProvider value={LoaderComponent}>\n <ErrorBoundary FallbackComponent={InternalError}>\n <ThemeProvider theme={theme}>\n <LocaleProvider locale={locale} currency={currency}>\n <I18nextProvider i18n={SDKI18next} key={lng}>\n <ApiProvider\n url={config.baseUrl}\n headers={config.headers}\n hooks={config.hooks}\n queryClient={queryClient}\n >\n {children}\n </ApiProvider>\n </I18nextProvider>\n </LocaleProvider>\n </ThemeProvider>\n </ErrorBoundary>\n </LoadingIndicatorProvider>\n </ComponentsProvider>\n )\n}\n\nexport { GustoProviderCustomUIAdapter }\n"],"names":["GustoProviderCustomUIAdapter","props","children","config","dictionary","lng","locale","currency","theme","components","LoaderComponent","queryClient","language","lang","ns","SDKI18next","useEffect","jsx","ComponentsProvider","LoadingIndicatorProvider","ErrorBoundary","InternalError","ThemeProvider","LocaleProvider","I18nextProvider","ApiProvider"],"mappings":";;;;;;;;;;;;;;AA2CA,MAAMA,IAA4E,CAAAC,MAAS;AACzF,QAAM;AAAA,IACJ,UAAAC;AAAA,IACA,QAAAC;AAAA,IACA,YAAAC;AAAA,IACA,KAAAC,IAAM;AAAA,IACN,QAAAC,IAAS;AAAA,IACT,UAAAC,IAAW;AAAA,IACX,OAAAC;AAAA,IACA,YAAAC;AAAA,IACA,iBAAAC;AAAA,IACA,aAAAC;AAAA,EAAA,IACEV;AAGJ,MAAIG;AACF,eAAWQ,KAAYR,GAAY;AACjC,YAAMS,IAAOD;AACb,iBAAWE,KAAMV,EAAWS,CAAI;AAE9B,QAAAE,EAAW;AAAA,UACTF;AAAA,UACAC;AAAA,UACCV,EAAWS,CAAI,EAA8BC,CAAE;AAAA,UAChD;AAAA,UACA;AAAA,QAAA;AAAA,IAGN;AAIF,SAAAE,EAAU,MAAM;AACd,KAAM,YACJ,MAAMD,EAAW,eAAeV,CAAG;AAAA,EAEvC,GAAG,CAACA,CAAG,CAAC,GAGN,gBAAAY,EAACC,KAAmB,OAAOT,GACzB,4BAACU,GAAA,EAAyB,OAAOT,GAC/B,UAAA,gBAAAO,EAACG,GAAA,EAAc,mBAAmBC,GAChC,UAAA,gBAAAJ,EAACK,GAAA,EAAc,OAAAd,GACb,UAAA,gBAAAS,EAACM,GAAA,EAAe,QAAAjB,GAAgB,UAAAC,GAC9B,UAAA,gBAAAU,EAACO,GAAA,EAAgB,MAAMT,GACrB,UAAA,gBAAAE;AAAA,IAACQ;AAAA,IAAA;AAAA,MACC,KAAKtB,EAAO;AAAA,MACZ,SAASA,EAAO;AAAA,MAChB,OAAOA,EAAO;AAAA,MACd,aAAAQ;AAAA,MAEC,UAAAT;AAAA,IAAA;AAAA,EAAA,KAPmCG,CASxC,EAAA,CACF,EAAA,CACF,EAAA,CACF,GACF,GACF;AAEJ;"}
1
+ {"version":3,"file":"GustoProviderCustomUIAdapter.js","sources":["../../../src/contexts/GustoProvider/GustoProviderCustomUIAdapter.tsx"],"sourcesContent":["import type React from 'react'\nimport { ErrorBoundary } from 'react-error-boundary'\nimport { I18nextProvider } from 'react-i18next'\nimport type { QueryClient } from '@tanstack/react-query'\nimport { useEffect } from 'react'\nimport { ComponentsProvider } from '../ComponentAdapter/ComponentsProvider'\nimport type { ComponentsContextType } from '../ComponentAdapter/useComponentContext'\nimport { ApiProvider } from '../ApiProvider/ApiProvider'\nimport { LoadingIndicatorProvider } from '../LoadingIndicatorProvider/LoadingIndicatorProvider'\nimport type { LoadingIndicatorContextProps } from '../LoadingIndicatorProvider/useLoadingIndicator'\nimport { SDKI18next } from './SDKI18next'\nimport { InternalError } from '@/components/Common'\nimport { LocaleProvider } from '@/contexts/LocaleProvider'\nimport { ThemeProvider } from '@/contexts/ThemeProvider'\nimport type { GustoSDKTheme } from '@/contexts/ThemeProvider/theme'\nimport type { ResourceDictionary, SupportedLanguages } from '@/types/Helpers'\nimport type { SDKHooks } from '@/types/hooks'\n\nexport interface APIConfig {\n baseUrl: string\n headers?: HeadersInit\n hooks?: SDKHooks\n}\n\nexport interface GustoProviderProps {\n config: APIConfig\n dictionary?: ResourceDictionary\n lng?: string\n locale?: string\n currency?: string\n theme?: GustoSDKTheme\n queryClient?: QueryClient\n components: ComponentsContextType\n LoaderComponent?: LoadingIndicatorContextProps['LoadingIndicator']\n}\n\nexport interface GustoProviderCustomUIAdapterProps extends GustoProviderProps {\n children?: React.ReactNode\n}\n\n/**\n * A provider that accepts UI component adapters through the components prop\n */\nconst GustoProviderCustomUIAdapter: React.FC<GustoProviderCustomUIAdapterProps> = props => {\n const {\n children,\n config,\n dictionary,\n lng = 'en',\n locale = 'en-US',\n currency = 'USD',\n theme,\n components,\n LoaderComponent,\n queryClient,\n } = props\n\n // Handle dictionary resources\n if (dictionary) {\n for (const language in dictionary) {\n const lang = language as SupportedLanguages\n for (const ns in dictionary[lang]) {\n // Adding resources overrides to i18next instance - initial load will override common namespace and add component specific dictionaries provided by partners\n SDKI18next.addResourceBundle(\n lang,\n ns,\n (dictionary[lang] as Record<string, unknown>)[ns],\n true,\n true,\n )\n }\n }\n }\n\n // Handle language change\n useEffect(() => {\n void (async () => {\n await SDKI18next.changeLanguage(lng)\n })()\n }, [lng])\n\n return (\n <ComponentsProvider value={components}>\n <LoadingIndicatorProvider value={LoaderComponent}>\n <ErrorBoundary FallbackComponent={InternalError}>\n <ThemeProvider theme={theme}>\n <LocaleProvider locale={locale} currency={currency}>\n <I18nextProvider i18n={SDKI18next} key={lng}>\n <ApiProvider\n url={config.baseUrl}\n headers={config.headers}\n hooks={config.hooks}\n queryClient={queryClient}\n >\n {children}\n </ApiProvider>\n </I18nextProvider>\n </LocaleProvider>\n </ThemeProvider>\n </ErrorBoundary>\n </LoadingIndicatorProvider>\n </ComponentsProvider>\n )\n}\n\nexport { GustoProviderCustomUIAdapter }\n"],"names":["GustoProviderCustomUIAdapter","props","children","config","dictionary","lng","locale","currency","theme","components","LoaderComponent","queryClient","language","lang","ns","SDKI18next","useEffect","jsx","ComponentsProvider","LoadingIndicatorProvider","ErrorBoundary","InternalError","ThemeProvider","LocaleProvider","I18nextProvider","ApiProvider"],"mappings":";;;;;;;;;;;;;;;AA2CA,MAAMA,IAA4E,CAAAC,MAAS;AACzF,QAAM;AAAA,IACJ,UAAAC;AAAA,IACA,QAAAC;AAAA,IACA,YAAAC;AAAA,IACA,KAAAC,IAAM;AAAA,IACN,QAAAC,IAAS;AAAA,IACT,UAAAC,IAAW;AAAA,IACX,OAAAC;AAAA,IACA,YAAAC;AAAA,IACA,iBAAAC;AAAA,IACA,aAAAC;AAAA,EAAA,IACEV;AAGJ,MAAIG;AACF,eAAWQ,KAAYR,GAAY;AACjC,YAAMS,IAAOD;AACb,iBAAWE,KAAMV,EAAWS,CAAI;AAE9B,QAAAE,EAAW;AAAA,UACTF;AAAA,UACAC;AAAA,UACCV,EAAWS,CAAI,EAA8BC,CAAE;AAAA,UAChD;AAAA,UACA;AAAA,QAAA;AAAA,IAGN;AAIF,SAAAE,EAAU,MAAM;AACd,KAAM,YACJ,MAAMD,EAAW,eAAeV,CAAG;AAAA,EAEvC,GAAG,CAACA,CAAG,CAAC,GAGN,gBAAAY,EAACC,KAAmB,OAAOT,GACzB,4BAACU,GAAA,EAAyB,OAAOT,GAC/B,UAAA,gBAAAO,EAACG,GAAA,EAAc,mBAAmBC,GAChC,UAAA,gBAAAJ,EAACK,GAAA,EAAc,OAAAd,GACb,UAAA,gBAAAS,EAACM,GAAA,EAAe,QAAAjB,GAAgB,UAAAC,GAC9B,UAAA,gBAAAU,EAACO,GAAA,EAAgB,MAAMT,GACrB,UAAA,gBAAAE;AAAA,IAACQ;AAAA,IAAA;AAAA,MACC,KAAKtB,EAAO;AAAA,MACZ,SAASA,EAAO;AAAA,MAChB,OAAOA,EAAO;AAAA,MACd,aAAAQ;AAAA,MAEC,UAAAT;AAAA,IAAA;AAAA,EAAA,KAPmCG,CASxC,EAAA,CACF,EAAA,CACF,EAAA,CACF,GACF,GACF;AAEJ;"}