@gusto/embedded-react-sdk 0.25.0 → 0.27.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 (370) hide show
  1. package/CHANGELOG.md +119 -0
  2. package/dist/assets/icons/icon-file-jpg.svg.js +10 -0
  3. package/dist/assets/icons/icon-file-jpg.svg.js.map +1 -0
  4. package/dist/assets/icons/icon-file-pdf.svg.js +10 -0
  5. package/dist/assets/icons/icon-file-pdf.svg.js.map +1 -0
  6. package/dist/assets/icons/icon-file-png.svg.js +10 -0
  7. package/dist/assets/icons/icon-file-png.svg.js.map +1 -0
  8. package/dist/assets/icons/icon-trashcan.svg.js +10 -0
  9. package/dist/assets/icons/icon-trashcan.svg.js.map +1 -0
  10. package/dist/assets/icons/plus-circle.svg.js +5 -5
  11. package/dist/assets/icons/plus-circle.svg.js.map +1 -1
  12. package/dist/components/Common/DocumentList/DocumentList.js +23 -23
  13. package/dist/components/Common/DocumentList/DocumentList.js.map +1 -1
  14. package/dist/components/Common/DocumentList/DocumentList.module.scss.js +6 -10
  15. package/dist/components/Common/DocumentList/DocumentList.module.scss.js.map +1 -1
  16. package/dist/components/Common/DocumentViewer/DocumentViewer.module.scss.js +12 -12
  17. package/dist/components/Common/InlineSpinner/InlineSpinner.module.scss.js +1 -1
  18. package/dist/components/Common/InternalError/InternalError.module.scss.js +4 -4
  19. package/dist/components/Common/ReorderableList/ReorderableList.module.scss.js +8 -8
  20. package/dist/components/Common/RequirementsList/RequirementsList.module.scss.js +1 -1
  21. package/dist/components/Common/SignatureForm/SignatureFormActions.js +1 -1
  22. package/dist/components/Common/SignatureForm/SignatureFormFields.js +1 -1
  23. package/dist/components/Common/UI/Alert/Alert.js +10 -10
  24. package/dist/components/Common/UI/Alert/Alert.js.map +1 -1
  25. package/dist/components/Common/UI/Alert/Alert.module.scss.js +10 -10
  26. package/dist/components/Common/UI/Badge/Badge.module.scss.js +1 -1
  27. package/dist/components/Common/UI/Banner/Banner.module.scss.js +4 -4
  28. package/dist/components/Common/UI/Button/Button.module.scss.js +1 -1
  29. package/dist/components/Common/UI/CalendarPreview/CalendarPreview.module.scss.js +4 -4
  30. package/dist/components/Common/UI/Card/Card.module.scss.js +1 -1
  31. package/dist/components/Common/UI/Checkbox/Checkbox.module.scss.js +1 -1
  32. package/dist/components/Common/UI/ComboBox/ComboBox.module.scss.js +6 -6
  33. package/dist/components/Common/UI/DatePicker/DatePicker.module.scss.js +4 -4
  34. package/dist/components/Common/UI/DescriptionList/DescriptionList.module.scss.js +1 -1
  35. package/dist/components/Common/UI/Dialog/Dialog.module.scss.js +2 -2
  36. package/dist/components/Common/UI/FileInput/FileInput.js +105 -106
  37. package/dist/components/Common/UI/FileInput/FileInput.js.map +1 -1
  38. package/dist/components/Common/UI/FileInput/FileInput.module.scss.js +27 -25
  39. package/dist/components/Common/UI/FileInput/FileInput.module.scss.js.map +1 -1
  40. package/dist/components/Common/UI/Input/Input.module.scss.js +8 -8
  41. package/dist/components/Common/UI/List/List.module.scss.js +1 -1
  42. package/dist/components/Common/UI/Modal/Modal.js +41 -40
  43. package/dist/components/Common/UI/Modal/Modal.js.map +1 -1
  44. package/dist/components/Common/UI/Modal/Modal.module.scss.js +12 -12
  45. package/dist/components/Common/UI/Radio/Radio.module.scss.js +6 -6
  46. package/dist/components/Common/UI/Select/Select.module.scss.js +5 -5
  47. package/dist/components/Common/UI/Table/Table.js +1 -1
  48. package/dist/components/Common/UI/Table/Table.js.map +1 -1
  49. package/dist/components/Common/UI/Table/Table.module.scss.js +1 -1
  50. package/dist/components/Common/UI/Tabs/Tabs.module.scss.js +1 -1
  51. package/dist/components/Common/UI/Text/Text.module.scss.js +17 -15
  52. package/dist/components/Common/UI/Text/Text.module.scss.js.map +1 -1
  53. package/dist/components/Common/UI/TextArea/TextArea.module.scss.js +1 -1
  54. package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js +1 -1
  55. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.js +16 -17
  56. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.js.map +1 -1
  57. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js +4 -3
  58. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js.map +1 -1
  59. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatoryForm.js +5 -6
  60. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatoryForm.js.map +1 -1
  61. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js +4 -3
  62. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js.map +1 -1
  63. package/dist/components/Company/AssignSignatory/useAssignSignatory.js +6 -5
  64. package/dist/components/Company/AssignSignatory/useAssignSignatory.js.map +1 -1
  65. package/dist/components/Company/BankAccount/BankAccountForm/Form.js +1 -1
  66. package/dist/components/Company/BankAccount/BankAccountForm/context.js +4 -3
  67. package/dist/components/Company/BankAccount/BankAccountForm/context.js.map +1 -1
  68. package/dist/components/Company/BankAccount/BankAccountVerify/Form.js +1 -1
  69. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js +4 -3
  70. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  71. package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js +4 -3
  72. package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js.map +1 -1
  73. package/dist/components/Company/FederalTaxes/Form.js +1 -1
  74. package/dist/components/Company/FederalTaxes/useFederalTaxes.js +6 -5
  75. package/dist/components/Company/FederalTaxes/useFederalTaxes.js.map +1 -1
  76. package/dist/components/Company/Industry/Context.js +7 -6
  77. package/dist/components/Company/Industry/Context.js.map +1 -1
  78. package/dist/components/Company/Locations/LocationForm/Form.js +5 -6
  79. package/dist/components/Company/Locations/LocationForm/Form.js.map +1 -1
  80. package/dist/components/Company/Locations/LocationForm/useLocationForm.js +4 -3
  81. package/dist/components/Company/Locations/LocationForm/useLocationForm.js.map +1 -1
  82. package/dist/components/Company/Locations/LocationsList/useLocationsList.js +4 -3
  83. package/dist/components/Company/Locations/LocationsList/useLocationsList.js.map +1 -1
  84. package/dist/components/Company/OnboardingOverview/context.js +4 -3
  85. package/dist/components/Company/OnboardingOverview/context.js.map +1 -1
  86. package/dist/components/Company/PaySchedule/_parts/Edit.js +23 -24
  87. package/dist/components/Company/PaySchedule/_parts/Edit.js.map +1 -1
  88. package/dist/components/Company/PaySchedule/usePaySchedule.js +6 -5
  89. package/dist/components/Company/PaySchedule/usePaySchedule.js.map +1 -1
  90. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js +4 -3
  91. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js.map +1 -1
  92. package/dist/components/Company/StateTaxes/StateTaxesList/context.js +4 -3
  93. package/dist/components/Company/StateTaxes/StateTaxesList/context.js.map +1 -1
  94. package/dist/components/Contractor/Address/Form.js +7 -8
  95. package/dist/components/Contractor/Address/Form.js.map +1 -1
  96. package/dist/components/Contractor/Address/useAddress.js +6 -5
  97. package/dist/components/Contractor/Address/useAddress.js.map +1 -1
  98. package/dist/components/Contractor/PaymentMethod/BankAccountForm.js +2 -2
  99. package/dist/components/Contractor/PaymentMethod/PaymentTypeForm.js +1 -1
  100. package/dist/components/Contractor/Payments/CreatePayment/CreatePayment.js +102 -88
  101. package/dist/components/Contractor/Payments/CreatePayment/CreatePayment.js.map +1 -1
  102. package/dist/components/Contractor/Payments/CreatePayment/EditContractorPaymentPresentation.js +22 -23
  103. package/dist/components/Contractor/Payments/CreatePayment/EditContractorPaymentPresentation.js.map +1 -1
  104. package/dist/components/Contractor/Payments/CreatePayment/FastAchSubmissionBlockerBanner.d.ts +8 -0
  105. package/dist/components/Contractor/Payments/CreatePayment/FastAchSubmissionBlockerBanner.js +60 -0
  106. package/dist/components/Contractor/Payments/CreatePayment/FastAchSubmissionBlockerBanner.js.map +1 -0
  107. package/dist/components/Contractor/Payments/CreatePayment/GenericBlocker.d.ts +6 -0
  108. package/dist/components/Contractor/Payments/CreatePayment/GenericBlocker.js +18 -0
  109. package/dist/components/Contractor/Payments/CreatePayment/GenericBlocker.js.map +1 -0
  110. package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.d.ts +3 -1
  111. package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.js +86 -55
  112. package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.js.map +1 -1
  113. package/dist/components/Contractor/Payments/PaymentFlow/PaymentFlowComponents.d.ts +2 -0
  114. package/dist/components/Contractor/Payments/PaymentFlow/PaymentFlowComponents.js +35 -22
  115. package/dist/components/Contractor/Payments/PaymentFlow/PaymentFlowComponents.js.map +1 -1
  116. package/dist/components/Contractor/Payments/PaymentFlow/paymentStateMachine.d.ts +1 -0
  117. package/dist/components/Contractor/Payments/PaymentFlow/paymentStateMachine.js +82 -65
  118. package/dist/components/Contractor/Payments/PaymentFlow/paymentStateMachine.js.map +1 -1
  119. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.module.scss.js +14 -14
  120. package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummary.d.ts +8 -0
  121. package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummary.js +45 -0
  122. package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummary.js.map +1 -0
  123. package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummaryPresentation.d.ts +15 -0
  124. package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummaryPresentation.js +127 -0
  125. package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummaryPresentation.js.map +1 -0
  126. package/dist/components/Contractor/Payments/PaymentSummary/index.d.ts +3 -0
  127. package/dist/components/Contractor/Payments/PaymentsList/PaymentsList.js +37 -28
  128. package/dist/components/Contractor/Payments/PaymentsList/PaymentsList.js.map +1 -1
  129. package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.d.ts +5 -1
  130. package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.js +52 -47
  131. package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.js.map +1 -1
  132. package/dist/components/Contractor/Profile/ContractorProfileForm.js +15 -15
  133. package/dist/components/Contractor/Profile/ContractorProfileForm.module.scss.js +1 -1
  134. package/dist/components/Employee/Compensation/Edit.js +14 -14
  135. package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.d.ts +3 -1
  136. package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.js +145 -137
  137. package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.js.map +1 -1
  138. package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.d.ts +2 -1
  139. package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.js +106 -101
  140. package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.js.map +1 -1
  141. package/dist/components/Employee/Deductions/DeductionsForm/DeductionsForm.js +90 -87
  142. package/dist/components/Employee/Deductions/DeductionsForm/DeductionsForm.js.map +1 -1
  143. package/dist/components/Employee/Deductions/DeductionsForm/GarnishmentForm.d.ts +2 -1
  144. package/dist/components/Employee/Deductions/DeductionsForm/GarnishmentForm.js +110 -104
  145. package/dist/components/Employee/Deductions/DeductionsForm/GarnishmentForm.js.map +1 -1
  146. package/dist/components/Employee/Deductions/DeductionsList/DeductionsList.js +50 -45
  147. package/dist/components/Employee/Deductions/DeductionsList/DeductionsList.js.map +1 -1
  148. package/dist/components/Employee/Deductions/IncludeDeductions/IncludeDeductions.js +30 -30
  149. package/dist/components/Employee/Deductions/IncludeDeductions/IncludeDeductions.js.map +1 -1
  150. package/dist/components/Employee/Deductions/IncludeDeductions/IncludeDeductions.module.scss.js +4 -8
  151. package/dist/components/Employee/Deductions/IncludeDeductions/IncludeDeductions.module.scss.js.map +1 -1
  152. package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js +4 -3
  153. package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  154. package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js +4 -3
  155. package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js.map +1 -1
  156. package/dist/components/Employee/EmployeeList/useEmployeeList.js +4 -3
  157. package/dist/components/Employee/EmployeeList/useEmployeeList.js.map +1 -1
  158. package/dist/components/Employee/EmploymentEligibility/EmploymentEligibility.d.ts +3 -0
  159. package/dist/components/Employee/EmploymentEligibility/EmploymentEligibilityPresentation.d.ts +37 -0
  160. package/dist/components/Employee/EmploymentEligibility/index.d.ts +4 -0
  161. package/dist/components/Employee/FederalTaxes/FederalForm.js +7 -7
  162. package/dist/components/Employee/FederalTaxes/useFederalTaxes.js +4 -3
  163. package/dist/components/Employee/FederalTaxes/useFederalTaxes.js.map +1 -1
  164. package/dist/components/Employee/PaymentMethod/BankAccountEdit.js +2 -2
  165. package/dist/components/Employee/PaymentMethod/PaymentTypeForm.js +1 -1
  166. package/dist/components/Employee/PaymentMethod/Split.js +8 -8
  167. package/dist/components/Employee/PaymentMethod/usePaymentMethod.js +6 -5
  168. package/dist/components/Employee/PaymentMethod/usePaymentMethod.js.map +1 -1
  169. package/dist/components/Employee/Profile/AdminPersonalDetails.js +1 -1
  170. package/dist/components/Employee/Profile/AdminPersonalDetails.module.scss.js +1 -1
  171. package/dist/components/Employee/Profile/HomeAddress.js +9 -10
  172. package/dist/components/Employee/Profile/HomeAddress.js.map +1 -1
  173. package/dist/components/Employee/Profile/PersonalDetailsInputs.js +10 -11
  174. package/dist/components/Employee/Profile/PersonalDetailsInputs.js.map +1 -1
  175. package/dist/components/Employee/Profile/useProfile.js +4 -3
  176. package/dist/components/Employee/Profile/useProfile.js.map +1 -1
  177. package/dist/components/Employee/StateTaxes/useStateTaxes.js +4 -3
  178. package/dist/components/Employee/StateTaxes/useStateTaxes.js.map +1 -1
  179. package/dist/components/Employee/Taxes/FederalForm.js +7 -7
  180. package/dist/components/Employee/Taxes/useTaxes.js +4 -3
  181. package/dist/components/Employee/Taxes/useTaxes.js.map +1 -1
  182. package/dist/components/{Payroll/InformationRequests → InformationRequests}/InformationRequestForm/InformationRequestForm.d.ts +4 -4
  183. package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.js +163 -0
  184. package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.js.map +1 -0
  185. package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.module.scss.js +20 -0
  186. package/dist/components/{Payroll/InformationRequests → InformationRequests}/InformationRequestForm/InformationRequestForm.module.scss.js.map +1 -1
  187. package/dist/components/{Payroll/InformationRequests → InformationRequests}/InformationRequestList/InformationRequestList.d.ts +3 -2
  188. package/dist/components/InformationRequests/InformationRequestList/InformationRequestList.js +98 -0
  189. package/dist/components/InformationRequests/InformationRequestList/InformationRequestList.js.map +1 -0
  190. package/dist/components/InformationRequests/InformationRequests.d.ts +12 -0
  191. package/dist/components/InformationRequests/InformationRequests.js +101 -0
  192. package/dist/components/InformationRequests/InformationRequests.js.map +1 -0
  193. package/dist/components/{Payroll/InformationRequests → InformationRequests}/InformationRequestsComponents.d.ts +4 -4
  194. package/dist/components/{Payroll/InformationRequests → InformationRequests}/InformationRequestsComponents.js +2 -2
  195. package/dist/components/InformationRequests/InformationRequestsComponents.js.map +1 -0
  196. package/dist/components/InformationRequests/index.d.ts +4 -0
  197. package/dist/components/InformationRequests/index.js +9 -0
  198. package/dist/components/InformationRequests/index.js.map +1 -0
  199. package/dist/components/{Payroll/InformationRequests → InformationRequests}/informationRequestsStateMachine.d.ts +1 -1
  200. package/dist/components/{Payroll/InformationRequests → InformationRequests}/informationRequestsStateMachine.js +1 -1
  201. package/dist/components/InformationRequests/informationRequestsStateMachine.js.map +1 -0
  202. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsBanner/ConfirmWireDetailsBanner.js +69 -59
  203. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsBanner/ConfirmWireDetailsBanner.js.map +1 -1
  204. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsForm/ConfirmWireDetailsForm.js +9 -9
  205. package/dist/components/Payroll/ConfirmWireDetails/WireInstructions/WireInstructions.js +61 -52
  206. package/dist/components/Payroll/ConfirmWireDetails/WireInstructions/WireInstructions.js.map +1 -1
  207. package/dist/components/Payroll/ConfirmWireDetails/WireInstructions/WireInstructions.module.scss.js +10 -10
  208. package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelection.d.ts +2 -0
  209. package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelection.js +33 -0
  210. package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelection.js.map +1 -0
  211. package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelectionPresentation.d.ts +7 -0
  212. package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelectionPresentation.js +39 -0
  213. package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelectionPresentation.js.map +1 -0
  214. package/dist/components/Payroll/OffCycleReasonSelection/index.d.ts +5 -0
  215. package/dist/components/Payroll/OffCycleReasonSelection/types.d.ts +15 -0
  216. package/dist/components/Payroll/OffCycleReasonSelection/types.js +14 -0
  217. package/dist/components/Payroll/OffCycleReasonSelection/types.js.map +1 -0
  218. package/dist/components/Payroll/PayPeriodDateForm/PayPeriodDateForm.d.ts +2 -0
  219. package/dist/components/Payroll/PayPeriodDateForm/PayPeriodDateForm.js +35 -0
  220. package/dist/components/Payroll/PayPeriodDateForm/PayPeriodDateForm.js.map +1 -0
  221. package/dist/components/Payroll/PayPeriodDateForm/PayPeriodDateFormPresentation.d.ts +2 -0
  222. package/dist/components/Payroll/PayPeriodDateForm/PayPeriodDateFormPresentation.js +65 -0
  223. package/dist/components/Payroll/PayPeriodDateForm/PayPeriodDateFormPresentation.js.map +1 -0
  224. package/dist/components/Payroll/PayPeriodDateForm/PayPeriodDateFormPresentation.module.scss.js +18 -0
  225. package/dist/components/Payroll/PayPeriodDateForm/PayPeriodDateFormPresentation.module.scss.js.map +1 -0
  226. package/dist/components/Payroll/PayPeriodDateForm/PayPeriodDateFormTypes.d.ts +53 -0
  227. package/dist/components/Payroll/PayPeriodDateForm/index.d.ts +3 -0
  228. package/dist/components/Payroll/PayPeriodDateForm/usePayPeriodDateValidation.d.ts +5 -0
  229. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerAlerts.js +22 -22
  230. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerAlerts.js.map +1 -1
  231. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerList.d.ts +5 -13
  232. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerList.js +103 -28
  233. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerList.js.map +1 -1
  234. package/dist/components/Payroll/PayrollBlocker/index.d.ts +0 -1
  235. package/dist/components/Payroll/PayrollBlocker/payrollHelpers.js +14 -14
  236. package/dist/components/Payroll/PayrollBlocker/payrollHelpers.js.map +1 -1
  237. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.d.ts +1 -1
  238. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js +132 -131
  239. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js.map +1 -1
  240. package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.d.ts +1 -1
  241. package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.js.map +1 -1
  242. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js +38 -39
  243. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js.map +1 -1
  244. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.module.scss.js +5 -5
  245. package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js +6 -6
  246. package/dist/components/Payroll/PayrollFlow/PayrollFlowComponents.d.ts +1 -0
  247. package/dist/components/Payroll/PayrollFlow/PayrollFlowComponents.js +45 -38
  248. package/dist/components/Payroll/PayrollFlow/PayrollFlowComponents.js.map +1 -1
  249. package/dist/components/Payroll/PayrollFlow/payrollStateMachine.js +54 -40
  250. package/dist/components/Payroll/PayrollFlow/payrollStateMachine.js.map +1 -1
  251. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js +29 -29
  252. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js.map +1 -1
  253. package/dist/components/Payroll/PayrollLanding/PayrollLanding.d.ts +2 -1
  254. package/dist/components/Payroll/PayrollLanding/PayrollLanding.js +26 -24
  255. package/dist/components/Payroll/PayrollLanding/PayrollLanding.js.map +1 -1
  256. package/dist/components/Payroll/PayrollLanding/PayrollLandingFlowComponents.d.ts +2 -0
  257. package/dist/components/Payroll/PayrollLanding/PayrollLandingFlowComponents.js +70 -48
  258. package/dist/components/Payroll/PayrollLanding/PayrollLandingFlowComponents.js.map +1 -1
  259. package/dist/components/Payroll/PayrollLanding/payrollLandingStateMachine.js +72 -36
  260. package/dist/components/Payroll/PayrollLanding/payrollLandingStateMachine.js.map +1 -1
  261. package/dist/components/Payroll/PayrollList/PayrollList.js +14 -17
  262. package/dist/components/Payroll/PayrollList/PayrollList.js.map +1 -1
  263. package/dist/components/Payroll/PayrollList/PayrollListPresentation.d.ts +1 -2
  264. package/dist/components/Payroll/PayrollList/PayrollListPresentation.js +93 -98
  265. package/dist/components/Payroll/PayrollList/PayrollListPresentation.js.map +1 -1
  266. package/dist/components/Payroll/PayrollOverview/PayrollOverview.js.map +1 -1
  267. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.d.ts +3 -3
  268. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js +242 -243
  269. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js.map +1 -1
  270. package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/FastAchSubmissionBlockerBanner.d.ts +2 -2
  271. package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/FastAchSubmissionBlockerBanner.js.map +1 -1
  272. package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/GenericBlocker.d.ts +2 -2
  273. package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/GenericBlocker.js.map +1 -1
  274. package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.module.scss.js +18 -18
  275. package/dist/components/Payroll/RecoveryCases/RecoveryCaseErrorCode.module.scss.js +8 -0
  276. package/dist/components/Payroll/RecoveryCases/RecoveryCaseErrorCode.module.scss.js.map +1 -0
  277. package/dist/components/Payroll/RecoveryCases/RecoveryCases.d.ts +4 -1
  278. package/dist/components/Payroll/RecoveryCases/RecoveryCases.js +34 -28
  279. package/dist/components/Payroll/RecoveryCases/RecoveryCases.js.map +1 -1
  280. package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.js +82 -51
  281. package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.js.map +1 -1
  282. package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.module.scss.js +2 -4
  283. package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.module.scss.js.map +1 -1
  284. package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.js +59 -35
  285. package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.js.map +1 -1
  286. package/dist/components/Payroll/RecoveryCases/useRecoveryCaseErrorCode.d.ts +7 -0
  287. package/dist/components/Payroll/RecoveryCases/useRecoveryCaseErrorCode.js +67 -0
  288. package/dist/components/Payroll/RecoveryCases/useRecoveryCaseErrorCode.js.map +1 -0
  289. package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/PayrollConfigurationContext.d.ts +1 -1
  290. package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/PayrollConfigurationContext.js.map +1 -1
  291. package/dist/components/Payroll/helpers.js.map +1 -1
  292. package/dist/components/Payroll/index.d.ts +5 -2
  293. package/dist/components/Payroll/index.js +16 -14
  294. package/dist/components/Payroll/index.js.map +1 -1
  295. package/dist/components/Payroll/usePreparedPayrollData.d.ts +1 -1
  296. package/dist/components/Payroll/usePreparedPayrollData.js +3 -2
  297. package/dist/components/Payroll/usePreparedPayrollData.js.map +1 -1
  298. package/dist/components/index.d.ts +1 -0
  299. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js +3 -2
  300. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js.map +1 -1
  301. package/dist/contexts/ThemeProvider/theme.d.ts +8 -3
  302. package/dist/contexts/ThemeProvider/theme.js +27 -22
  303. package/dist/contexts/ThemeProvider/theme.js.map +1 -1
  304. package/dist/helpers/dateFormatting.d.ts +3 -0
  305. package/dist/helpers/dateFormatting.js.map +1 -1
  306. package/dist/helpers/formattedStrings.js +12 -11
  307. package/dist/helpers/formattedStrings.js.map +1 -1
  308. package/dist/i18n/I18n.js +8 -8
  309. package/dist/i18n/I18n.js.map +1 -1
  310. package/dist/i18n/en/Contractor.Payments.CreatePayment.json.js +30 -26
  311. package/dist/i18n/en/Contractor.Payments.CreatePayment.json.js.map +1 -1
  312. package/dist/i18n/en/Contractor.Payments.PaymentSummary.json.js +58 -0
  313. package/dist/i18n/en/Contractor.Payments.PaymentSummary.json.js.map +1 -0
  314. package/dist/i18n/en/Employee.Deductions.json.js +157 -161
  315. package/dist/i18n/en/Employee.Deductions.json.js.map +1 -1
  316. package/dist/i18n/en/Employee.EmploymentEligibility.json.js +28 -0
  317. package/dist/i18n/en/Employee.EmploymentEligibility.json.js.map +1 -0
  318. package/dist/i18n/en/InformationRequests.InformationRequestForm.json.js +20 -0
  319. package/dist/i18n/en/InformationRequests.InformationRequestForm.json.js.map +1 -0
  320. package/dist/i18n/en/InformationRequests.InformationRequestList.json.js +20 -0
  321. package/dist/i18n/en/InformationRequests.InformationRequestList.json.js.map +1 -0
  322. package/dist/i18n/en/InformationRequests.json.js +8 -0
  323. package/dist/i18n/en/InformationRequests.json.js.map +1 -0
  324. package/dist/i18n/en/Payroll.ConfirmWireDetailsBanner.json.js +1 -1
  325. package/dist/i18n/en/Payroll.OffCycleReasonSelection.json.js +12 -0
  326. package/dist/i18n/en/Payroll.OffCycleReasonSelection.json.js.map +1 -0
  327. package/dist/i18n/en/Payroll.PayPeriodDateForm.json.js +32 -0
  328. package/dist/i18n/en/Payroll.PayPeriodDateForm.json.js.map +1 -0
  329. package/dist/i18n/en/Payroll.PayrollBlocker.json.js +24 -20
  330. package/dist/i18n/en/Payroll.PayrollBlocker.json.js.map +1 -1
  331. package/dist/i18n/en/Payroll.PayrollLanding.json.js +5 -3
  332. package/dist/i18n/en/Payroll.PayrollLanding.json.js.map +1 -1
  333. package/dist/i18n/en/Payroll.RecoveryCasesList.json.js +14 -10
  334. package/dist/i18n/en/Payroll.RecoveryCasesList.json.js.map +1 -1
  335. package/dist/i18n/en/Payroll.RecoveryCasesResubmit.json.js +5 -3
  336. package/dist/i18n/en/Payroll.RecoveryCasesResubmit.json.js.map +1 -1
  337. package/dist/i18n/en/Payroll.WireInstructions.json.js +20 -16
  338. package/dist/i18n/en/Payroll.WireInstructions.json.js.map +1 -1
  339. package/dist/index.js +10 -8
  340. package/dist/index.js.map +1 -1
  341. package/dist/shared/constants.d.ts +10 -0
  342. package/dist/shared/constants.js +22 -17
  343. package/dist/shared/constants.js.map +1 -1
  344. package/dist/style.css +1 -1
  345. package/dist/types/i18next.d.ts +290 -40
  346. package/package.json +17 -17
  347. package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.module.scss.js +0 -8
  348. package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.module.scss.js.map +0 -1
  349. package/dist/components/Employee/Deductions/DeductionsForm/DeductionsForm.module.scss.js +0 -14
  350. package/dist/components/Employee/Deductions/DeductionsForm/DeductionsForm.module.scss.js.map +0 -1
  351. package/dist/components/Payroll/InformationRequests/InformationRequestForm/InformationRequestForm.js +0 -142
  352. package/dist/components/Payroll/InformationRequests/InformationRequestForm/InformationRequestForm.js.map +0 -1
  353. package/dist/components/Payroll/InformationRequests/InformationRequestForm/InformationRequestForm.module.scss.js +0 -18
  354. package/dist/components/Payroll/InformationRequests/InformationRequestList/InformationRequestList.js +0 -88
  355. package/dist/components/Payroll/InformationRequests/InformationRequestList/InformationRequestList.js.map +0 -1
  356. package/dist/components/Payroll/InformationRequests/InformationRequests.d.ts +0 -6
  357. package/dist/components/Payroll/InformationRequests/InformationRequests.js +0 -55
  358. package/dist/components/Payroll/InformationRequests/InformationRequests.js.map +0 -1
  359. package/dist/components/Payroll/InformationRequests/InformationRequestsComponents.js.map +0 -1
  360. package/dist/components/Payroll/InformationRequests/index.d.ts +0 -3
  361. package/dist/components/Payroll/InformationRequests/informationRequestsStateMachine.js.map +0 -1
  362. package/dist/components/Payroll/PayrollBlocker/PayrollBlocker.d.ts +0 -6
  363. package/dist/components/Payroll/PayrollBlocker/PayrollBlocker.js +0 -32
  364. package/dist/components/Payroll/PayrollBlocker/PayrollBlocker.js.map +0 -1
  365. package/dist/i18n/en/Payroll.InformationRequestForm.json.js +0 -18
  366. package/dist/i18n/en/Payroll.InformationRequestForm.json.js.map +0 -1
  367. package/dist/i18n/en/Payroll.InformationRequestList.json.js +0 -18
  368. package/dist/i18n/en/Payroll.InformationRequestList.json.js.map +0 -1
  369. /package/dist/components/{Payroll/InformationRequests → InformationRequests}/InformationRequestForm/index.d.ts +0 -0
  370. /package/dist/components/{Payroll/InformationRequests → InformationRequests}/InformationRequestList/index.d.ts +0 -0
@@ -1,73 +1,104 @@
1
- import { jsx as e, jsxs as i } from "react/jsx-runtime";
2
- import { useTranslation as u } from "react-i18next";
3
- import l from "./RecoveryCasesList.module.scss.js";
4
- import { BaseComponent as h } from "../../../Base/Base.js";
1
+ import { jsx as e, jsxs as m } from "react/jsx-runtime";
2
+ import { useTranslation as l } from "react-i18next";
3
+ import { useRecoveryCasesGetSuspense as v } from "@gusto/embedded-api/react-query/recoveryCasesGet";
4
+ import { useRecoveryCaseErrorCode as h } from "../useRecoveryCaseErrorCode.js";
5
+ import g from "./RecoveryCasesList.module.scss.js";
6
+ import { BaseComponent as R } from "../../../Base/Base.js";
5
7
  import "../../../Base/useBase.js";
6
- import { useComponentContext as f } from "../../../../contexts/ComponentAdapter/useComponentContext.js";
7
- import { useComponentDictionary as p, useI18n as y } from "../../../../i18n/I18n.js";
8
- import { DataView as C } from "../../../Common/DataView/DataView.js";
9
- import { useDataView as v } from "../../../Common/DataView/useDataView.js";
10
- import { FlexItem as x, Flex as o } from "../../../Common/Flex/Flex.js";
8
+ import { useComponentContext as c } from "../../../../contexts/ComponentAdapter/useComponentContext.js";
9
+ import { useComponentDictionary as L, useI18n as u } from "../../../../i18n/I18n.js";
10
+ import { DataView as b } from "../../../Common/DataView/DataView.js";
11
+ import { useDataView as E } from "../../../Common/DataView/useDataView.js";
12
+ import { FlexItem as x, Flex as d } from "../../../Common/Flex/Flex.js";
11
13
  import "classnames";
12
- import { recoveryCasesEvents as g } from "../../../../shared/constants.js";
14
+ import { recoveryCasesEvents as D } from "../../../../shared/constants.js";
13
15
  import "react";
14
- function F(n) {
15
- return /* @__PURE__ */ e(h, { ...n, children: /* @__PURE__ */ e(R, { ...n, children: n.children }) });
16
+ import { formatNumberAsCurrency as y } from "../../../../helpers/formattedStrings.js";
17
+ function z(t) {
18
+ return /* @__PURE__ */ e(R, { ...t, children: /* @__PURE__ */ e(w, { ...t, children: t.children }) });
16
19
  }
17
- function R({ dictionary: n, onEvent: s }) {
18
- p("Payroll.RecoveryCasesList", n), y("Payroll.RecoveryCasesList");
19
- const { t } = u("Payroll.RecoveryCasesList"), { Heading: c, Text: r, Button: a, Badge: d } = f(), m = v({
20
- data: [{ id: "placeholder" }],
21
- columns: [
22
- {
23
- title: t("columns.originalDebitDate"),
24
- render: () => /* @__PURE__ */ e(x, { flexGrow: 1, children: /* @__PURE__ */ e(r, { children: "2025-10-11" }) })
20
+ function P(t) {
21
+ return t === "open" ? "info" : "warning";
22
+ }
23
+ function A({ errorCode: t }) {
24
+ u("Payroll.RecoveryCasesList");
25
+ const { t: n } = l("Payroll.RecoveryCasesList"), { Text: s } = c(), { title: r, subtitle: i } = h(t);
26
+ return !r && !i ? /* @__PURE__ */ e("span", { "aria-label": n("labels.noLatestErrorCodeAriaLabel"), "aria-live": "polite", children: n("labels.noLatestErrorCode") }) : /* @__PURE__ */ m(d, { flexDirection: "column", gap: 4, children: [
27
+ r && /* @__PURE__ */ e(s, { weight: "semibold", children: r }),
28
+ i && /* @__PURE__ */ e(s, { children: i })
29
+ ] });
30
+ }
31
+ function S({ status: t }) {
32
+ u("Payroll.RecoveryCasesList");
33
+ const { t: n } = l("Payroll.RecoveryCasesList"), { Badge: s } = c();
34
+ if (!t)
35
+ return null;
36
+ const r = P(t), i = n(`status.${t}`);
37
+ return /* @__PURE__ */ e(s, { status: r, children: i });
38
+ }
39
+ function k({
40
+ recoveryCase: t,
41
+ onEvent: n
42
+ }) {
43
+ u("Payroll.RecoveryCasesList");
44
+ const { t: s } = l("Payroll.RecoveryCasesList"), { Button: r } = c();
45
+ return t.status !== "open" ? null : /* @__PURE__ */ e(
46
+ r,
47
+ {
48
+ variant: "secondary",
49
+ onClick: () => {
50
+ n(D.RECOVERY_CASE_RESOLVE, {
51
+ recoveryCaseId: t.uuid
52
+ });
25
53
  },
54
+ children: s("cta.resolve")
55
+ }
56
+ );
57
+ }
58
+ function w({ companyId: t, dictionary: n, onEvent: s }) {
59
+ L("Payroll.RecoveryCasesList", n), u("Payroll.RecoveryCasesList");
60
+ const { t: r } = l("Payroll.RecoveryCasesList"), { Heading: i, Text: a } = c(), { data: C } = v({
61
+ companyUuid: t
62
+ }), f = (C.recoveryCaseList ?? []).filter((o) => o.status !== "recovered"), p = E({
63
+ data: f,
64
+ columns: [
26
65
  {
27
- title: t("columns.totalAmount"),
28
- render: () => /* @__PURE__ */ e(r, { children: "$30,093.45" })
66
+ key: "originalDebitDate",
67
+ title: r("columns.originalDebitDate"),
68
+ render: (o) => /* @__PURE__ */ e(x, { flexGrow: 1, children: /* @__PURE__ */ e(a, { children: o.originalDebitDate ?? "-" }) })
29
69
  },
30
70
  {
31
- title: t("columns.amountOutstanding"),
32
- render: () => /* @__PURE__ */ e(r, { children: "$30,093.45" })
71
+ key: "totalAmount",
72
+ title: r("columns.totalAmount"),
73
+ render: (o) => /* @__PURE__ */ e(a, { children: o.eventTotalAmount ? y(parseFloat(o.eventTotalAmount)) : "-" })
33
74
  },
34
75
  {
35
- title: t("columns.latestErrorCode"),
36
- render: () => /* @__PURE__ */ i(o, { flexDirection: "column", gap: 4, children: [
37
- /* @__PURE__ */ e(r, { weight: "semibold", children: "R01: Insufficient funds" }),
38
- /* @__PURE__ */ e(r, { children: "Ensure sufficient funds to unblock your account" })
39
- ] })
76
+ key: "amountOutstanding",
77
+ title: r("columns.amountOutstanding"),
78
+ render: (o) => /* @__PURE__ */ e(a, { children: o.amountOutstanding ? y(parseFloat(o.amountOutstanding)) : "-" })
40
79
  },
41
80
  {
42
- title: t("columns.status"),
43
- render: () => /* @__PURE__ */ e(o, { gap: 8, alignItems: "center", children: /* @__PURE__ */ e(d, { status: "info", children: "Open" }) })
81
+ key: "latestErrorCode",
82
+ title: r("columns.latestErrorCode"),
83
+ render: (o) => /* @__PURE__ */ e(A, { errorCode: o.latestErrorCode })
44
84
  },
45
85
  {
46
- title: "",
47
- render: () => /* @__PURE__ */ e(o, { justifyContent: "flex-end", alignItems: "center", children: /* @__PURE__ */ e(
48
- a,
49
- {
50
- variant: "secondary",
51
- onClick: () => {
52
- s(g.RECOVERY_CASE_RESOLVE, {
53
- recoveryCaseId: "placeholder-id"
54
- });
55
- },
56
- children: t("cta.resolve")
57
- }
58
- ) })
86
+ key: "status",
87
+ title: r("columns.status"),
88
+ render: (o) => /* @__PURE__ */ e(S, { status: o.status })
59
89
  }
60
- ]
90
+ ],
91
+ itemMenu: (o) => /* @__PURE__ */ e(k, { recoveryCase: o, onEvent: s })
61
92
  });
62
- return /* @__PURE__ */ e("div", { className: l.root, children: /* @__PURE__ */ i(o, { flexDirection: "column", gap: 24, children: [
63
- /* @__PURE__ */ i("div", { className: l.header, children: [
64
- /* @__PURE__ */ e(c, { as: "h2", styledAs: "h3", children: t("title") }),
65
- /* @__PURE__ */ e(r, { children: t("description") })
93
+ return /* @__PURE__ */ e("div", { className: g.root, children: /* @__PURE__ */ m(d, { flexDirection: "column", gap: 20, children: [
94
+ /* @__PURE__ */ m(d, { flexDirection: "column", gap: 2, children: [
95
+ /* @__PURE__ */ e(i, { as: "h2", styledAs: "h4", children: r("title") }),
96
+ /* @__PURE__ */ e(a, { children: r("description") })
66
97
  ] }),
67
- /* @__PURE__ */ e(C, { ...m, label: t("title") })
98
+ /* @__PURE__ */ e(b, { ...p, label: r("title") })
68
99
  ] }) });
69
100
  }
70
101
  export {
71
- F as RecoveryCasesList
102
+ z as RecoveryCasesList
72
103
  };
73
104
  //# sourceMappingURL=RecoveryCasesList.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"RecoveryCasesList.js","sources":["../../../../../src/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport styles from './RecoveryCasesList.module.scss'\nimport { BaseComponent, type BaseComponentInterface } from '@/components/Base'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\nimport { useComponentDictionary, useI18n } from '@/i18n'\nimport { DataView } from '@/components/Common/DataView/DataView'\nimport { useDataView } from '@/components/Common/DataView/useDataView'\nimport { Flex, FlexItem } from '@/components/Common'\nimport { recoveryCasesEvents } from '@/shared/constants'\n\ninterface RecoveryCasesListProps extends BaseComponentInterface<'Payroll.RecoveryCasesList'> {\n companyId: string\n onEvent: BaseComponentInterface['onEvent']\n}\n\nexport function RecoveryCasesList(props: RecoveryCasesListProps) {\n return (\n <BaseComponent {...props}>\n <Root {...props}>{props.children}</Root>\n </BaseComponent>\n )\n}\n\nfunction Root({ dictionary, onEvent }: RecoveryCasesListProps) {\n useComponentDictionary('Payroll.RecoveryCasesList', dictionary)\n useI18n('Payroll.RecoveryCasesList')\n const { t } = useTranslation('Payroll.RecoveryCasesList')\n const { Heading, Text, Button, Badge } = useComponentContext()\n\n // TODO: Replace with actual recovery cases data from API\n\n const dataViewProps = useDataView({\n data: [{ id: 'placeholder' }],\n columns: [\n {\n title: t('columns.originalDebitDate'),\n render: () => (\n <FlexItem flexGrow={1}>\n <Text>2025-10-11</Text>\n </FlexItem>\n ),\n },\n {\n title: t('columns.totalAmount'),\n render: () => <Text>$30,093.45</Text>,\n },\n {\n title: t('columns.amountOutstanding'),\n render: () => <Text>$30,093.45</Text>,\n },\n {\n title: t('columns.latestErrorCode'),\n render: () => (\n <Flex flexDirection=\"column\" gap={4}>\n <Text weight=\"semibold\">R01: Insufficient funds</Text>\n <Text>Ensure sufficient funds to unblock your account</Text>\n </Flex>\n ),\n },\n {\n title: t('columns.status'),\n render: () => (\n <Flex gap={8} alignItems=\"center\">\n <Badge status=\"info\">Open</Badge>\n </Flex>\n ),\n },\n {\n title: '',\n render: () => (\n <Flex justifyContent=\"flex-end\" alignItems=\"center\">\n <Button\n variant=\"secondary\"\n onClick={() => {\n onEvent(recoveryCasesEvents.RECOVERY_CASE_RESOLVE, {\n recoveryCaseId: 'placeholder-id',\n })\n }}\n >\n {t('cta.resolve')}\n </Button>\n </Flex>\n ),\n },\n ],\n })\n\n return (\n <div className={styles.root}>\n <Flex flexDirection=\"column\" gap={24}>\n <div className={styles.header}>\n <Heading as=\"h2\" styledAs=\"h3\">\n {t('title')}\n </Heading>\n <Text>{t('description')}</Text>\n </div>\n\n <DataView {...dataViewProps} label={t('title')} />\n </Flex>\n </div>\n )\n}\n"],"names":["RecoveryCasesList","props","jsx","BaseComponent","Root","dictionary","onEvent","useComponentDictionary","useI18n","useTranslation","Heading","Text","Button","Badge","useComponentContext","dataViewProps","useDataView","FlexItem","jsxs","Flex","recoveryCasesEvents","styles","DataView"],"mappings":";;;;;;;;;;;;;AAeO,SAASA,EAAkBC,GAA+B;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ACN,gBAAAT,EAACiB,GAAA,EAAK,KAAK,GAAG,YAAW,UACvB,UAAA,gBAAAjB,EAACW,GAAA,EAAM,QAAO,QAAO,kBAAI,EAAA,CAC3B;AAAA,MAAA;AAAA,MAGJ;AAAA,QACE,OAAO;AAAA,QACP,QAAQ,MACN,gBAAAX,EAACiB,KAAK,gBAAe,YAAW,YAAW,UACzC,UAAA,gBAAAjB;AAAA,UAACU;AAAA,UAAA;AAAA,YACC,SAAQ;AAAA,YACR,SAAS,MAAM;AACb,cAAAN,EAAQc,EAAoB,uBAAuB;AAAA,gBACjD,gBAAgB;AAAA,cAAA,CACjB;AAAA,YACH;AAAA,YAEC,YAAE,aAAa;AAAA,UAAA;AAAA,QAAA,EAClB,CACF;AAAA,MAAA;AAAA,IAEJ;AAAA,EACF,CACD;AAED,SACE,gBAAAlB,EAAC,OAAA,EAAI,WAAWmB,EAAO,MACrB,4BAACF,GAAA,EAAK,eAAc,UAAS,KAAK,IAChC,UAAA;AAAA,IAAA,gBAAAD,EAAC,OAAA,EAAI,WAAWG,EAAO,QACrB,UAAA;AAAA,MAAA,gBAAAnB,EAACQ,KAAQ,IAAG,MAAK,UAAS,MACvB,UAAA,EAAE,OAAO,GACZ;AAAA,MACA,gBAAAR,EAACS,GAAA,EAAM,UAAA,EAAE,aAAa,EAAA,CAAE;AAAA,IAAA,GAC1B;AAAA,sBAECW,GAAA,EAAU,GAAGP,GAAe,OAAO,EAAE,OAAO,EAAA,CAAG;AAAA,EAAA,EAAA,CAClD,EAAA,CACF;AAEJ;"}
1
+ {"version":3,"file":"RecoveryCasesList.js","sources":["../../../../../src/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport type {\n RecoveryCase,\n RecoveryCaseStatus,\n} from '@gusto/embedded-api/models/components/recoverycase'\nimport { useRecoveryCasesGetSuspense } from '@gusto/embedded-api/react-query/recoveryCasesGet'\nimport { useRecoveryCaseErrorCode } from '../useRecoveryCaseErrorCode'\nimport styles from './RecoveryCasesList.module.scss'\nimport { BaseComponent, type BaseComponentInterface } from '@/components/Base'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\nimport { useComponentDictionary, useI18n } from '@/i18n'\nimport { DataView } from '@/components/Common/DataView/DataView'\nimport { useDataView } from '@/components/Common/DataView/useDataView'\nimport { Flex, FlexItem } from '@/components/Common'\nimport { recoveryCasesEvents } from '@/shared/constants'\nimport type { BadgeProps } from '@/components/Common/UI/Badge/BadgeTypes'\nimport { formatNumberAsCurrency } from '@/helpers/formattedStrings'\n\ninterface RecoveryCasesListProps extends BaseComponentInterface<'Payroll.RecoveryCasesList'> {\n companyId: string\n onEvent: BaseComponentInterface['onEvent']\n}\n\nexport function RecoveryCasesList(props: RecoveryCasesListProps) {\n return (\n <BaseComponent {...props}>\n <Root {...props}>{props.children}</Root>\n </BaseComponent>\n )\n}\n\nfunction getStatusBadgeStatus(status: RecoveryCaseStatus | undefined): BadgeProps['status'] {\n if (status === 'open') {\n return 'info'\n }\n return 'warning'\n}\n\nfunction ErrorCodeCell({ errorCode }: { errorCode: string | null | undefined }) {\n useI18n('Payroll.RecoveryCasesList')\n const { t } = useTranslation('Payroll.RecoveryCasesList')\n const { Text } = useComponentContext()\n const { title, subtitle } = useRecoveryCaseErrorCode(errorCode)\n\n if (!title && !subtitle) {\n return (\n <span aria-label={t('labels.noLatestErrorCodeAriaLabel')} aria-live=\"polite\">\n {t('labels.noLatestErrorCode')}\n </span>\n )\n }\n\n return (\n <Flex flexDirection=\"column\" gap={4}>\n {title && <Text weight=\"semibold\">{title}</Text>}\n {subtitle && <Text>{subtitle}</Text>}\n </Flex>\n )\n}\n\nfunction StatusCell({ status }: { status: RecoveryCaseStatus | undefined }) {\n useI18n('Payroll.RecoveryCasesList')\n const { t } = useTranslation('Payroll.RecoveryCasesList')\n const { Badge } = useComponentContext()\n\n if (!status) {\n return null\n }\n\n const badgeStatus = getStatusBadgeStatus(status)\n const statusLabel = t(`status.${status}`)\n\n return <Badge status={badgeStatus}>{statusLabel}</Badge>\n}\n\nfunction ResolveButton({\n recoveryCase,\n onEvent,\n}: {\n recoveryCase: RecoveryCase\n onEvent: BaseComponentInterface['onEvent']\n}) {\n useI18n('Payroll.RecoveryCasesList')\n const { t } = useTranslation('Payroll.RecoveryCasesList')\n const { Button } = useComponentContext()\n\n if (recoveryCase.status !== 'open') {\n return null\n }\n\n return (\n <Button\n variant=\"secondary\"\n onClick={() => {\n onEvent(recoveryCasesEvents.RECOVERY_CASE_RESOLVE, {\n recoveryCaseId: recoveryCase.uuid,\n })\n }}\n >\n {t('cta.resolve')}\n </Button>\n )\n}\n\nfunction Root({ companyId, dictionary, onEvent }: RecoveryCasesListProps) {\n useComponentDictionary('Payroll.RecoveryCasesList', dictionary)\n useI18n('Payroll.RecoveryCasesList')\n const { t } = useTranslation('Payroll.RecoveryCasesList')\n const { Heading, Text } = useComponentContext()\n\n const { data } = useRecoveryCasesGetSuspense({\n companyUuid: companyId,\n })\n\n const recoveryCases = (data.recoveryCaseList ?? []).filter(rc => rc.status !== 'recovered')\n\n const dataViewProps = useDataView({\n data: recoveryCases,\n columns: [\n {\n key: 'originalDebitDate',\n title: t('columns.originalDebitDate'),\n render: recoveryCase => (\n <FlexItem flexGrow={1}>\n <Text>{recoveryCase.originalDebitDate ?? '-'}</Text>\n </FlexItem>\n ),\n },\n {\n key: 'totalAmount',\n title: t('columns.totalAmount'),\n render: recoveryCase => (\n <Text>\n {recoveryCase.eventTotalAmount\n ? formatNumberAsCurrency(parseFloat(recoveryCase.eventTotalAmount))\n : '-'}\n </Text>\n ),\n },\n {\n key: 'amountOutstanding',\n title: t('columns.amountOutstanding'),\n render: recoveryCase => (\n <Text>\n {recoveryCase.amountOutstanding\n ? formatNumberAsCurrency(parseFloat(recoveryCase.amountOutstanding))\n : '-'}\n </Text>\n ),\n },\n {\n key: 'latestErrorCode',\n title: t('columns.latestErrorCode'),\n render: recoveryCase => <ErrorCodeCell errorCode={recoveryCase.latestErrorCode} />,\n },\n {\n key: 'status',\n title: t('columns.status'),\n render: recoveryCase => <StatusCell status={recoveryCase.status} />,\n },\n ],\n itemMenu: recoveryCase => <ResolveButton recoveryCase={recoveryCase} onEvent={onEvent} />,\n })\n\n return (\n <div className={styles.root}>\n <Flex flexDirection=\"column\" gap={20}>\n <Flex flexDirection=\"column\" gap={2}>\n <Heading as=\"h2\" styledAs=\"h4\">\n {t('title')}\n </Heading>\n <Text>{t('description')}</Text>\n </Flex>\n\n <DataView {...dataViewProps} label={t('title')} />\n </Flex>\n </div>\n )\n}\n"],"names":["RecoveryCasesList","props","jsx","BaseComponent","Root","getStatusBadgeStatus","status","ErrorCodeCell","errorCode","useI18n","t","useTranslation","Text","useComponentContext","title","subtitle","useRecoveryCaseErrorCode","jsxs","Flex","StatusCell","Badge","badgeStatus","statusLabel","ResolveButton","recoveryCase","onEvent","Button","recoveryCasesEvents","companyId","dictionary","useComponentDictionary","Heading","data","useRecoveryCasesGetSuspense","recoveryCases","rc","dataViewProps","useDataView","FlexItem","formatNumberAsCurrency","styles","DataView"],"mappings":";;;;;;;;;;;;;;;;AAuBO,SAASA,EAAkBC,GAA+B;AAC/D,SACE,gBAAAC,EAACC,GAAA,EAAe,GAAGF,GACjB,UAAA,gBAAAC,EAACE,KAAM,GAAGH,GAAQ,UAAAA,EAAM,SAAA,CAAS,EAAA,CACnC;AAEJ;AAEA,SAASI,EAAqBC,GAA8D;AAC1F,SAAIA,MAAW,SACN,SAEF;AACT;AAEA,SAASC,EAAc,EAAE,WAAAC,KAAuD;AAC9E,EAAAC,EAAQ,2BAA2B;AACnC,QAAM,EAAE,GAAAC,EAAA,IAAMC,EAAe,2BAA2B,GAClD,EAAE,MAAAC,EAAA,IAASC,EAAA,GACX,EAAE,OAAAC,GAAO,UAAAC,MAAaC,EAAyBR,CAAS;AAE9D,SAAI,CAACM,KAAS,CAACC,IAEX,gBAAAb,EAAC,QAAA,EAAK,cAAYQ,EAAE,mCAA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,OAAA,CAAQ;AAAA,MAAA;AAAA,IACnE;AAAA,IAEF,UAAU,CAAAA,MAAgB,gBAAAtB,EAACqB,GAAA,EAAc,cAAAC,GAA4B,SAAAC,EAAA,CAAkB;AAAA,EAAA,CACxF;AAED,SACE,gBAAAvB,EAAC,OAAA,EAAI,WAAWsC,EAAO,MACrB,4BAACtB,GAAA,EAAK,eAAc,UAAS,KAAK,IAChC,UAAA;AAAA,IAAA,gBAAAD,EAACC,GAAA,EAAK,eAAc,UAAS,KAAK,GAChC,UAAA;AAAA,MAAA,gBAAAhB,EAAC6B,KAAQ,IAAG,MAAK,UAAS,MACvB,UAAArB,EAAE,OAAO,GACZ;AAAA,MACA,gBAAAR,EAACU,GAAA,EAAM,UAAAF,EAAE,aAAa,EAAA,CAAE;AAAA,IAAA,GAC1B;AAAA,sBAEC+B,GAAA,EAAU,GAAGL,GAAe,OAAO1B,EAAE,OAAO,EAAA,CAAG;AAAA,EAAA,EAAA,CAClD,EAAA,CACF;AAEJ;"}
@@ -1,10 +1,8 @@
1
- const o = "_root_5swl6_1", e = "_header_5swl6_7", t = {
2
- root: o,
3
- header: e
1
+ const o = "_root_whd9a_1", t = {
2
+ root: o
4
3
  };
5
4
  export {
6
5
  t as default,
7
- e as header,
8
6
  o as root
9
7
  };
10
8
  //# sourceMappingURL=RecoveryCasesList.module.scss.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"RecoveryCasesList.module.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
1
+ {"version":3,"file":"RecoveryCasesList.module.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
@@ -1,46 +1,70 @@
1
- import { jsx as e, jsxs as i } from "react/jsx-runtime";
2
- import { useTranslation as u } from "react-i18next";
3
- import { BaseComponent as R } from "../../../Base/Base.js";
4
- import { useBase as C } from "../../../Base/useBase.js";
5
- import { Flex as y } from "../../../Common/Flex/Flex.js";
1
+ import { jsx as t, jsxs as l } from "react/jsx-runtime";
2
+ import { useTranslation as h } from "react-i18next";
3
+ import { useIsMutating as g } from "@tanstack/react-query";
4
+ import { useRecoveryCasesRedebitMutation as _, mutationKeyRecoveryCasesRedebit as M } from "@gusto/embedded-api/react-query/recoveryCasesRedebit";
5
+ import { useRecoveryCasesGet as S } from "@gusto/embedded-api/react-query/recoveryCasesGet";
6
+ import { useRecoveryCaseErrorCode as x } from "../useRecoveryCaseErrorCode.js";
7
+ import { BaseComponent as D } from "../../../Base/Base.js";
8
+ import { useBase as B } from "../../../Base/useBase.js";
9
+ import { Flex as d } from "../../../Common/Flex/Flex.js";
6
10
  import "classnames";
7
- import { recoveryCasesEvents as s } from "../../../../shared/constants.js";
8
- import { ActionsLayout as h } from "../../../Common/ActionsLayout/ActionsLayout.js";
9
- import { useComponentContext as c } from "../../../../contexts/ComponentAdapter/useComponentContext.js";
11
+ import { recoveryCasesEvents as C } from "../../../../shared/constants.js";
12
+ import { useComponentContext as y } from "../../../../contexts/ComponentAdapter/useComponentContext.js";
10
13
  import "react";
11
- import { Form as b } from "../../../Common/Form/Form.js";
12
- import { useComponentDictionary as E, useI18n as a } from "../../../../i18n/I18n.js";
13
- const m = "gusto-sdk-recovery-cases-resubmit-form";
14
- function f(o) {
15
- return /* @__PURE__ */ e(R, { ...o, children: /* @__PURE__ */ e(p, { ...o, children: o.children }) });
14
+ import { Form as F } from "../../../Common/Form/Form.js";
15
+ import { useFlow as A } from "../../../Flow/useFlow.js";
16
+ import { useComponentDictionary as I, useI18n as O } from "../../../../i18n/I18n.js";
17
+ const R = "gusto-sdk-recovery-cases-resubmit-form";
18
+ function T(e) {
19
+ return /* @__PURE__ */ t(D, { ...e, children: /* @__PURE__ */ t(U, { ...e, children: e.children }) });
16
20
  }
17
- function p({ dictionary: o, recoveryCaseId: n }) {
18
- E("Payroll.RecoveryCasesResubmit", o), a("Payroll.RecoveryCasesResubmit");
19
- const { Heading: r, Text: t } = c(), { onEvent: l, baseSubmitHandler: d } = C();
20
- return /* @__PURE__ */ i(y, { flexDirection: "column", gap: 16, children: [
21
- /* @__PURE__ */ e(r, { as: "h2", children: "[Placeholder title based on R code]" }),
22
- /* @__PURE__ */ e(t, { children: "[Placeholder subtitle based on R code]" }),
23
- /* @__PURE__ */ e(t, { children: "[Placeholder body based on R code]" }),
24
- /* @__PURE__ */ e(t, { children: "[Placeholder instruction based on R code]" }),
25
- /* @__PURE__ */ e(b, { id: m, onSubmit: async () => {
26
- await d({}, async () => {
27
- l(s.RECOVERY_CASE_RESUBMIT_DONE);
21
+ function U({ dictionary: e, recoveryCaseId: o }) {
22
+ I("Payroll.RecoveryCasesResubmit", e);
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(
26
+ v?.latestErrorCode ?? void 0
27
+ ), E = _(), b = async (i) => {
28
+ i.preventDefault(), await a({}, async () => {
29
+ await E.mutateAsync({
30
+ request: {
31
+ recoveryCaseUuid: o
32
+ }
33
+ }), n(C.RECOVERY_CASE_RESUBMIT_DONE, {
34
+ recoveryCaseId: o
28
35
  });
29
- }, "aria-hidden": "true" })
36
+ });
37
+ };
38
+ return /* @__PURE__ */ l(d, { flexDirection: "column", gap: 16, children: [
39
+ c && /* @__PURE__ */ t(r, { as: "h2", children: c }),
40
+ m && /* @__PURE__ */ t(s, { children: m }),
41
+ u.length > 0 && u,
42
+ /* @__PURE__ */ t(F, { id: R, onSubmit: b, "aria-hidden": "true" })
30
43
  ] });
31
44
  }
32
- const v = ({ onEvent: o }) => {
33
- a("Payroll.RecoveryCasesResubmit");
34
- const { t: n } = u("Payroll.RecoveryCasesResubmit"), { Button: r } = c();
35
- return /* @__PURE__ */ i(h, { children: [
36
- /* @__PURE__ */ e(r, { variant: "secondary", onClick: () => {
37
- o(s.RECOVERY_CASE_RESUBMIT_CANCEL);
38
- }, children: n("cta.cancel") }),
39
- /* @__PURE__ */ e(r, { variant: "primary", type: "submit", form: m, children: n("cta.resubmit") })
45
+ const P = ({ onEvent: e }) => {
46
+ O("Payroll.RecoveryCasesResubmit");
47
+ const { t: o } = h("Payroll.RecoveryCasesResubmit"), { Button: r } = y(), n = g({
48
+ mutationKey: M()
49
+ }) > 0;
50
+ return /* @__PURE__ */ l(d, { justifyContent: "flex-end", gap: 12, children: [
51
+ /* @__PURE__ */ t(r, { variant: "secondary", onClick: () => {
52
+ e(C.RECOVERY_CASE_RESUBMIT_CANCEL);
53
+ }, isDisabled: n, children: o("cta.cancel") }),
54
+ /* @__PURE__ */ t(
55
+ r,
56
+ {
57
+ variant: "primary",
58
+ type: "submit",
59
+ form: R,
60
+ isLoading: n,
61
+ children: o("cta.resubmit")
62
+ }
63
+ )
40
64
  ] });
41
65
  };
42
- f.Footer = v;
66
+ T.Footer = P;
43
67
  export {
44
- f as RecoveryCasesResubmit
68
+ T as RecoveryCasesResubmit
45
69
  };
46
70
  //# sourceMappingURL=RecoveryCasesResubmit.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"RecoveryCasesResubmit.js","sources":["../../../../../src/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport { BaseComponent, useBase, type BaseComponentInterface } from '@/components/Base'\nimport type { OnEventType } from '@/components/Base/useBase'\nimport { ActionsLayout, Flex } from '@/components/Common'\nimport { Form } from '@/components/Common/Form'\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 useI18n('Payroll.RecoveryCasesResubmit')\n const { Heading, Text } = useComponentContext()\n const { onEvent, baseSubmitHandler } = useBase()\n\n // TODO: Wire up resubmit API call\n const onSubmit = async () => {\n // TODO: remove this lint ignore once we wire this up and await the api call\n // eslint-disable-next-line @typescript-eslint/require-await\n await baseSubmitHandler({}, async () => {\n // TODO: Call API resubmit payment endpoint here\n onEvent(recoveryCasesEvents.RECOVERY_CASE_RESUBMIT_DONE)\n })\n }\n\n return (\n <Flex flexDirection=\"column\" gap={16}>\n <Heading as=\"h2\">[Placeholder title based on R code]</Heading>\n <Text>[Placeholder subtitle based on R code]</Text>\n <Text>[Placeholder body based on R code]</Text>\n <Text>[Placeholder instruction based on R code]</Text>\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 handleCancel = () => {\n onEvent(recoveryCasesEvents.RECOVERY_CASE_RESUBMIT_CANCEL)\n }\n\n return (\n <ActionsLayout>\n <Button variant=\"secondary\" onClick={handleCancel}>\n {t('cta.cancel')}\n </Button>\n <Button variant=\"primary\" type=\"submit\" form={RECOVERY_CASES_RESUBMIT_FORM_ID}>\n {t('cta.resubmit')}\n </Button>\n </ActionsLayout>\n )\n}\n\nRecoveryCasesResubmit.Footer = Footer\n"],"names":["RECOVERY_CASES_RESUBMIT_FORM_ID","RecoveryCasesResubmit","props","jsx","BaseComponent","Root","dictionary","recoveryCaseId","useComponentDictionary","useI18n","Heading","Text","useComponentContext","onEvent","baseSubmitHandler","useBase","jsxs","Flex","Form","recoveryCasesEvents","Footer","t","useTranslation","Button","ActionsLayout"],"mappings":";;;;;;;;;;;;AASA,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,GAClEG,EAAQ,+BAA+B;AACvC,QAAM,EAAE,SAAAC,GAAS,MAAAC,EAAA,IAASC,EAAA,GACpB,EAAE,SAAAC,GAAS,mBAAAC,EAAA,IAAsBC,EAAA;AAYvC,SACE,gBAAAC,EAACC,GAAA,EAAK,eAAc,UAAS,KAAK,IAChC,UAAA;AAAA,IAAA,gBAAAd,EAACO,GAAA,EAAQ,IAAG,MAAK,UAAA,uCAAmC;AAAA,IACpD,gBAAAP,EAACQ,KAAK,UAAA,yCAAA,CAAsC;AAAA,IAC5C,gBAAAR,EAACQ,KAAK,UAAA,qCAAA,CAAkC;AAAA,IACxC,gBAAAR,EAACQ,KAAK,UAAA,4CAAA,CAAyC;AAAA,sBAK9CO,GAAA,EAAK,IAAIlB,GAAiC,UAnB9B,YAAY;AAG3B,YAAMc,EAAkB,CAAA,GAAI,YAAY;AAEtC,QAAAD,EAAQM,EAAoB,2BAA2B;AAAA,MACzD,CAAC;AAAA,IACH,GAYmE,eAAY,OAAA,CAE3E;AAAA,EAAA,GACF;AAEJ;AAEA,MAAMC,IAAS,CAAC,EAAE,SAAAP,QAA4D;AAC5E,EAAAJ,EAAQ,+BAA+B;AACvC,QAAM,EAAE,GAAAY,EAAA,IAAMC,EAAe,+BAA+B,GACtD,EAAE,QAAAC,EAAA,IAAWX,EAAA;AAMnB,2BACGY,GAAA,EACC,UAAA;AAAA,IAAA,gBAAArB,EAACoB,KAAO,SAAQ,aAAY,SANX,MAAM;AACzB,MAAAV,EAAQM,EAAoB,6BAA6B;AAAA,IAC3D,GAKO,UAAAE,EAAE,YAAY,GACjB;AAAA,IACA,gBAAAlB,EAACoB,GAAA,EAAO,SAAQ,WAAU,MAAK,UAAS,MAAMvB,GAC3C,UAAAqB,EAAE,cAAc,EAAA,CACnB;AAAA,EAAA,GACF;AAEJ;AAEApB,EAAsB,SAASmB;"}
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,EAAE,WAAAC,EAAA,IAAcC,EAAA,GAEhB,EAAE,MAAMC,EAAA,IAAsBC,EAAoB;AAAA,IACtD,aAAaH;AAAA,EAAA,CACd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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;"}
@@ -0,0 +1,7 @@
1
+ import { ReactNode } from 'react';
2
+ export interface RecoveryCaseErrorCodeContent {
3
+ title: string | null;
4
+ subtitle: string | null;
5
+ description: ReactNode[];
6
+ }
7
+ export declare function useRecoveryCaseErrorCode(errorCode: string | null | undefined): RecoveryCaseErrorCodeContent;
@@ -0,0 +1,67 @@
1
+ import { jsx as e, jsxs as d } from "react/jsx-runtime";
2
+ import { useTranslation as a, Trans as c } from "react-i18next";
3
+ import p from "./RecoveryCaseErrorCode.module.scss.js";
4
+ import { Flex as C } from "../../Common/Flex/Flex.js";
5
+ import "classnames";
6
+ import "../../../shared/constants.js";
7
+ import { useComponentContext as R } from "../../../contexts/ComponentAdapter/useComponentContext.js";
8
+ import "react";
9
+ import { useI18n as f } from "../../../i18n/I18n.js";
10
+ function h(s) {
11
+ switch (s) {
12
+ case "R01":
13
+ return "R01";
14
+ case "R02":
15
+ return "R02";
16
+ case "R16":
17
+ return "R16";
18
+ case "R29":
19
+ return "R29";
20
+ default:
21
+ return "bankError";
22
+ }
23
+ }
24
+ function T(s) {
25
+ f("Payroll.RecoveryCasesResubmit");
26
+ const { t: r } = a("Payroll.RecoveryCasesResubmit"), { Text: o } = R();
27
+ if (!s)
28
+ return {
29
+ title: null,
30
+ subtitle: null,
31
+ description: []
32
+ };
33
+ const t = h(s), n = {
34
+ medium: /* @__PURE__ */ e(o, { as: "span", weight: "medium" })
35
+ }, i = [
36
+ /* @__PURE__ */ e(o, { children: /* @__PURE__ */ e(c, { t: r, i18nKey: `errorCodes.${t}.body`, components: n }) }, "body")
37
+ ];
38
+ if (t === "R29") {
39
+ const u = Object.values(r("errorCodes.R29.achCodes", { returnObjects: !0 }));
40
+ i.push(
41
+ /* @__PURE__ */ d(C, { flexDirection: "column", gap: 16, children: [
42
+ /* @__PURE__ */ e(o, { children: r("errorCodes.R29.listDescription") }),
43
+ /* @__PURE__ */ e("ul", { className: p.compactList, children: u.map((l, m) => /* @__PURE__ */ e("li", { children: l }, m)) }),
44
+ /* @__PURE__ */ e(o, { children: /* @__PURE__ */ e(c, { t: r, i18nKey: "errorCodes.R29.instruction", components: n }) })
45
+ ] }, "instruction")
46
+ );
47
+ } else
48
+ r(`errorCodes.${t}.instruction`) && i.push(
49
+ /* @__PURE__ */ e(o, { children: /* @__PURE__ */ e(
50
+ c,
51
+ {
52
+ t: r,
53
+ i18nKey: `errorCodes.${t}.instruction`,
54
+ components: n
55
+ }
56
+ ) }, "instruction")
57
+ );
58
+ return {
59
+ title: r(`errorCodes.${t}.title`),
60
+ subtitle: r(`errorCodes.${t}.subtitle`),
61
+ description: i
62
+ };
63
+ }
64
+ export {
65
+ T as useRecoveryCaseErrorCode
66
+ };
67
+ //# sourceMappingURL=useRecoveryCaseErrorCode.js.map
@@ -0,0 +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,K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B,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,4 +1,4 @@
1
- import { PayrollShow } from '@gusto/embedded-api/models/components/payrollshow';
1
+ import { PayrollShow } from '@gusto/embedded-api/models/components/payroll';
2
2
  export interface PayrollConfigurationContextValue {
3
3
  payrollData: {
4
4
  payrollShow?: PayrollShow | null;
@@ -1 +1 @@
1
- {"version":3,"file":"PayrollConfigurationContext.js","sources":["../../../../../src/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/PayrollConfigurationContext.ts"],"sourcesContent":["import { createContext } from 'react'\nimport type { PayrollShow } from '@gusto/embedded-api/models/components/payrollshow'\n\nexport interface PayrollConfigurationContextValue {\n payrollData: {\n payrollShow?: PayrollShow | null\n }\n}\n\nexport const PayrollConfigurationContext = createContext<\n PayrollConfigurationContextValue | undefined\n>(undefined)\n"],"names":["PayrollConfigurationContext","createContext"],"mappings":";AASO,MAAMA,IAA8BC,EAEzC,MAAS;"}
1
+ {"version":3,"file":"PayrollConfigurationContext.js","sources":["../../../../../src/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/PayrollConfigurationContext.ts"],"sourcesContent":["import { createContext } from 'react'\nimport type { PayrollShow } from '@gusto/embedded-api/models/components/payroll'\n\nexport interface PayrollConfigurationContextValue {\n payrollData: {\n payrollShow?: PayrollShow | null\n }\n}\n\nexport const PayrollConfigurationContext = createContext<\n PayrollConfigurationContextValue | undefined\n>(undefined)\n"],"names":["PayrollConfigurationContext","createContext"],"mappings":";AASO,MAAMA,IAA8BC,EAEzC,MAAS;"}