@gusto/embedded-react-sdk 0.19.0 → 0.21.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 (405) hide show
  1. package/CHANGELOG.md +48 -0
  2. package/dist/UNSTABLE_Hooks.d.ts +1 -0
  3. package/dist/UNSTABLE_Hooks.js +9 -0
  4. package/dist/UNSTABLE_Hooks.js.map +1 -0
  5. package/dist/assets/icons/coins-hand.svg.js +10 -0
  6. package/dist/assets/icons/coins-hand.svg.js.map +1 -0
  7. package/dist/components/Base/Base.d.ts +19 -4
  8. package/dist/components/Base/Base.js +68 -61
  9. package/dist/components/Base/Base.js.map +1 -1
  10. package/dist/components/Base/useBase.d.ts +1 -1
  11. package/dist/components/Base/useBase.js.map +1 -1
  12. package/dist/components/Base/useBaseSubmit.d.ts +10 -0
  13. package/dist/components/Base/useBaseSubmit.js +33 -0
  14. package/dist/components/Base/useBaseSubmit.js.map +1 -0
  15. package/dist/components/Common/Fields/TextAreaField/TextAreaField.d.ts +5 -0
  16. package/dist/components/Common/Fields/TextAreaField/TextAreaField.js +34 -0
  17. package/dist/components/Common/Fields/TextAreaField/TextAreaField.js.map +1 -0
  18. package/dist/components/Common/Fields/TextAreaField/index.d.ts +3 -0
  19. package/dist/components/Common/FlowBreadcrumbs/FlowBreadcrumbs.js +10 -10
  20. package/dist/components/Common/FlowBreadcrumbs/FlowBreadcrumbs.js.map +1 -1
  21. package/dist/components/Common/SignatureForm/SignatureForm.js +15 -10
  22. package/dist/components/Common/SignatureForm/SignatureForm.js.map +1 -1
  23. package/dist/components/Common/SignatureForm/SignatureFormActions.js +14 -10
  24. package/dist/components/Common/SignatureForm/SignatureFormActions.js.map +1 -1
  25. package/dist/components/Common/SignatureForm/SignatureFormFields.js +19 -14
  26. package/dist/components/Common/SignatureForm/SignatureFormFields.js.map +1 -1
  27. package/dist/components/Common/UI/Alert/Alert.js +23 -22
  28. package/dist/components/Common/UI/Alert/Alert.js.map +1 -1
  29. package/dist/components/Common/UI/Alert/AlertTypes.d.ts +4 -0
  30. package/dist/components/Common/UI/Alert/AlertTypes.js.map +1 -1
  31. package/dist/components/Common/UI/DatePicker/DatePicker.d.ts +1 -1
  32. package/dist/components/Common/UI/DatePicker/DatePicker.js +38 -37
  33. package/dist/components/Common/UI/DatePicker/DatePicker.js.map +1 -1
  34. package/dist/components/Common/UI/DatePicker/DatePickerTypes.d.ts +4 -0
  35. package/dist/components/Common/UI/Modal/Modal.module.scss.js +17 -17
  36. package/dist/components/Common/UI/Select/Select.d.ts +1 -1
  37. package/dist/components/Common/UI/Select/Select.js +27 -26
  38. package/dist/components/Common/UI/Select/Select.js.map +1 -1
  39. package/dist/components/Common/UI/Select/SelectTypes.d.ts +4 -0
  40. package/dist/components/Common/UI/TextArea/TextArea.d.ts +2 -0
  41. package/dist/components/Common/UI/TextArea/TextArea.js +79 -0
  42. package/dist/components/Common/UI/TextArea/TextArea.js.map +1 -0
  43. package/dist/components/Common/UI/TextArea/TextArea.module.scss.js +12 -0
  44. package/dist/components/Common/UI/TextArea/TextArea.module.scss.js.map +1 -0
  45. package/dist/components/Common/UI/TextArea/TextAreaTypes.d.ts +37 -0
  46. package/dist/components/Common/UI/TextArea/TextAreaTypes.js +9 -0
  47. package/dist/components/Common/UI/TextArea/TextAreaTypes.js.map +1 -0
  48. package/dist/components/Common/UI/TextArea/index.d.ts +4 -0
  49. package/dist/components/Company/AssignSignatory/AssignSignatory.js +11 -7
  50. package/dist/components/Company/AssignSignatory/AssignSignatory.js.map +1 -1
  51. package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js +10 -6
  52. package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js.map +1 -1
  53. package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.js +11 -8
  54. package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.js.map +1 -1
  55. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatory.js +9 -6
  56. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatory.js.map +1 -1
  57. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.js +14 -13
  58. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.js.map +1 -1
  59. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js +6 -4
  60. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js.map +1 -1
  61. package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.js +9 -6
  62. package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.js.map +1 -1
  63. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatory.js +13 -10
  64. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatory.js.map +1 -1
  65. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatoryForm.js +14 -13
  66. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatoryForm.js.map +1 -1
  67. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js +6 -4
  68. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js.map +1 -1
  69. package/dist/components/Company/AssignSignatory/TitleSelect.js +10 -7
  70. package/dist/components/Company/AssignSignatory/TitleSelect.js.map +1 -1
  71. package/dist/components/Company/AssignSignatory/useAssignSignatory.js +8 -6
  72. package/dist/components/Company/AssignSignatory/useAssignSignatory.js.map +1 -1
  73. package/dist/components/Company/BankAccount/BankAccountForm/Actions.js +11 -9
  74. package/dist/components/Company/BankAccount/BankAccountForm/Actions.js.map +1 -1
  75. package/dist/components/Company/BankAccount/BankAccountForm/Form.js +13 -9
  76. package/dist/components/Company/BankAccount/BankAccountForm/Form.js.map +1 -1
  77. package/dist/components/Company/BankAccount/BankAccountForm/context.js +6 -4
  78. package/dist/components/Company/BankAccount/BankAccountForm/context.js.map +1 -1
  79. package/dist/components/Company/BankAccount/BankAccountList/Actions.js +13 -10
  80. package/dist/components/Company/BankAccount/BankAccountList/Actions.js.map +1 -1
  81. package/dist/components/Company/BankAccount/BankAccountVerify/Actions.js +15 -12
  82. package/dist/components/Company/BankAccount/BankAccountVerify/Actions.js.map +1 -1
  83. package/dist/components/Company/BankAccount/BankAccountVerify/Form.js +8 -4
  84. package/dist/components/Company/BankAccount/BankAccountVerify/Form.js.map +1 -1
  85. package/dist/components/Company/DocumentSigner/DocumentList/Actions.js +8 -5
  86. package/dist/components/Company/DocumentSigner/DocumentList/Actions.js.map +1 -1
  87. package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.js +15 -11
  88. package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.js.map +1 -1
  89. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js +6 -4
  90. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  91. package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js +15 -11
  92. package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js.map +1 -1
  93. package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js +6 -4
  94. package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js.map +1 -1
  95. package/dist/components/Company/FederalTaxes/Actions.js +11 -8
  96. package/dist/components/Company/FederalTaxes/Actions.js.map +1 -1
  97. package/dist/components/Company/FederalTaxes/FederalTaxes.js +19 -15
  98. package/dist/components/Company/FederalTaxes/FederalTaxes.js.map +1 -1
  99. package/dist/components/Company/FederalTaxes/Form.js +8 -6
  100. package/dist/components/Company/FederalTaxes/Form.js.map +1 -1
  101. package/dist/components/Company/FederalTaxes/useFederalTaxes.js +11 -9
  102. package/dist/components/Company/FederalTaxes/useFederalTaxes.js.map +1 -1
  103. package/dist/components/Company/Industry/Actions.js +11 -8
  104. package/dist/components/Company/Industry/Actions.js.map +1 -1
  105. package/dist/components/Company/Industry/Context.js +9 -7
  106. package/dist/components/Company/Industry/Context.js.map +1 -1
  107. package/dist/components/Company/Industry/Edit.js +14 -10
  108. package/dist/components/Company/Industry/Edit.js.map +1 -1
  109. package/dist/components/Company/Locations/LocationForm/Actions.js +11 -8
  110. package/dist/components/Company/Locations/LocationForm/Actions.js.map +1 -1
  111. package/dist/components/Company/Locations/LocationForm/Form.js +7 -5
  112. package/dist/components/Company/Locations/LocationForm/Form.js.map +1 -1
  113. package/dist/components/Company/Locations/LocationForm/LocationForm.js +19 -15
  114. package/dist/components/Company/Locations/LocationForm/LocationForm.js.map +1 -1
  115. package/dist/components/Company/Locations/LocationForm/useLocationForm.js +6 -4
  116. package/dist/components/Company/Locations/LocationForm/useLocationForm.js.map +1 -1
  117. package/dist/components/Company/Locations/LocationsList/Actions.js +9 -6
  118. package/dist/components/Company/Locations/LocationsList/Actions.js.map +1 -1
  119. package/dist/components/Company/Locations/LocationsList/List.js +17 -15
  120. package/dist/components/Company/Locations/LocationsList/List.js.map +1 -1
  121. package/dist/components/Company/Locations/LocationsList/LocationsList.js +15 -12
  122. package/dist/components/Company/Locations/LocationsList/LocationsList.js.map +1 -1
  123. package/dist/components/Company/Locations/LocationsList/useLocationsList.js +6 -4
  124. package/dist/components/Company/Locations/LocationsList/useLocationsList.js.map +1 -1
  125. package/dist/components/Company/OnboardingOverview/Completed.js +15 -12
  126. package/dist/components/Company/OnboardingOverview/Completed.js.map +1 -1
  127. package/dist/components/Company/OnboardingOverview/MissingRequirements.js +12 -9
  128. package/dist/components/Company/OnboardingOverview/MissingRequirements.js.map +1 -1
  129. package/dist/components/Company/OnboardingOverview/OnboardingOverview.js +10 -6
  130. package/dist/components/Company/OnboardingOverview/OnboardingOverview.js.map +1 -1
  131. package/dist/components/Company/OnboardingOverview/context.js +6 -4
  132. package/dist/components/Company/OnboardingOverview/context.js.map +1 -1
  133. package/dist/components/Company/PaySchedule/PaySchedule.js +36 -33
  134. package/dist/components/Company/PaySchedule/PaySchedule.js.map +1 -1
  135. package/dist/components/Company/PaySchedule/_parts/Actions.js +13 -10
  136. package/dist/components/Company/PaySchedule/_parts/Actions.js.map +1 -1
  137. package/dist/components/Company/PaySchedule/_parts/Edit.js +15 -15
  138. package/dist/components/Company/PaySchedule/_parts/Head.js +14 -11
  139. package/dist/components/Company/PaySchedule/_parts/Head.js.map +1 -1
  140. package/dist/components/Company/PaySchedule/_parts/List.js +21 -19
  141. package/dist/components/Company/PaySchedule/_parts/List.js.map +1 -1
  142. package/dist/components/Company/PaySchedule/usePaySchedule.js +8 -6
  143. package/dist/components/Company/PaySchedule/usePaySchedule.js.map +1 -1
  144. package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.js +8 -5
  145. package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.js.map +1 -1
  146. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js +6 -4
  147. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js.map +1 -1
  148. package/dist/components/Company/StateTaxes/StateTaxesList/Actions.js +9 -6
  149. package/dist/components/Company/StateTaxes/StateTaxesList/Actions.js.map +1 -1
  150. package/dist/components/Company/StateTaxes/StateTaxesList/List.js +8 -5
  151. package/dist/components/Company/StateTaxes/StateTaxesList/List.js.map +1 -1
  152. package/dist/components/Company/StateTaxes/StateTaxesList/context.js +6 -4
  153. package/dist/components/Company/StateTaxes/StateTaxesList/context.js.map +1 -1
  154. package/dist/components/Contractor/Address/Address.js +8 -4
  155. package/dist/components/Contractor/Address/Address.js.map +1 -1
  156. package/dist/components/Contractor/Address/Form.js +8 -6
  157. package/dist/components/Contractor/Address/Form.js.map +1 -1
  158. package/dist/components/Contractor/Address/useAddress.js +8 -6
  159. package/dist/components/Contractor/Address/useAddress.js.map +1 -1
  160. package/dist/components/Contractor/ContractorList/index.js +29 -28
  161. package/dist/components/Contractor/ContractorList/index.js.map +1 -1
  162. package/dist/components/Contractor/NewHireReport/NewHireReport.js +14 -13
  163. package/dist/components/Contractor/NewHireReport/NewHireReport.js.map +1 -1
  164. package/dist/components/Contractor/PaymentMethod/BankAccountForm.js +14 -10
  165. package/dist/components/Contractor/PaymentMethod/BankAccountForm.js.map +1 -1
  166. package/dist/components/Contractor/PaymentMethod/PaymentMethod.js +3 -2
  167. package/dist/components/Contractor/PaymentMethod/PaymentMethod.js.map +1 -1
  168. package/dist/components/Contractor/PaymentMethod/PaymentTypeForm.js +5 -2
  169. package/dist/components/Contractor/PaymentMethod/PaymentTypeForm.js.map +1 -1
  170. package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.d.ts +15 -0
  171. package/dist/components/Contractor/Payments/Detail/DetailPresentation.d.ts +19 -0
  172. package/dist/components/Contractor/Payments/Overview/OverviewPresentation.d.ts +18 -0
  173. package/dist/components/Contractor/Payments/PaymentEdit/PaymentEditPresentation.d.ts +6 -0
  174. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.d.ts +18 -0
  175. package/dist/components/Contractor/Payments/types.d.ts +4 -0
  176. package/dist/components/Contractor/Profile/ContractorProfileForm.js +13 -13
  177. package/dist/components/Contractor/Profile/useContractorProfile.js +4 -3
  178. package/dist/components/Contractor/Profile/useContractorProfile.js.map +1 -1
  179. package/dist/components/Contractor/Submit/Submit.js +22 -20
  180. package/dist/components/Contractor/Submit/Submit.js.map +1 -1
  181. package/dist/components/Employee/Compensation/Actions.js +14 -12
  182. package/dist/components/Employee/Compensation/Actions.js.map +1 -1
  183. package/dist/components/Employee/Compensation/Edit.js +17 -16
  184. package/dist/components/Employee/Compensation/Edit.js.map +1 -1
  185. package/dist/components/Employee/Compensation/List.js +25 -23
  186. package/dist/components/Employee/Compensation/List.js.map +1 -1
  187. package/dist/components/Employee/Deductions/Deductions.d.ts +1 -1
  188. package/dist/components/Employee/Deductions/Deductions.js +10 -10
  189. package/dist/components/Employee/Deductions/Deductions.js.map +1 -1
  190. package/dist/components/Employee/Deductions/DeductionsComponents.d.ts +2 -0
  191. package/dist/components/Employee/Deductions/DeductionsComponents.js +6 -6
  192. package/dist/components/Employee/Deductions/DeductionsComponents.js.map +1 -1
  193. package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.js +222 -0
  194. package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.js.map +1 -0
  195. package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.module.scss.js +8 -0
  196. package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.module.scss.js.map +1 -0
  197. package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.d.ts +2 -2
  198. package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.js +165 -0
  199. package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.js.map +1 -0
  200. package/dist/components/Employee/Deductions/DeductionsForm/DeductionsForm.d.ts +0 -34
  201. package/dist/components/Employee/Deductions/DeductionsForm/DeductionsForm.js +90 -126
  202. package/dist/components/Employee/Deductions/DeductionsForm/DeductionsForm.js.map +1 -1
  203. package/dist/components/Employee/Deductions/DeductionsForm/DeductionsForm.module.scss.js +14 -0
  204. package/dist/components/Employee/Deductions/DeductionsForm/DeductionsForm.module.scss.js.map +1 -0
  205. package/dist/components/Employee/Deductions/DeductionsList/DeductionsList.js +56 -55
  206. package/dist/components/Employee/Deductions/DeductionsList/DeductionsList.js.map +1 -1
  207. package/dist/components/Employee/Deductions/IncludeDeductions/IncludeDeductions.d.ts +6 -0
  208. package/dist/components/Employee/Deductions/IncludeDeductions/IncludeDeductions.js +53 -0
  209. package/dist/components/Employee/Deductions/IncludeDeductions/IncludeDeductions.js.map +1 -0
  210. package/dist/components/Employee/Deductions/IncludeDeductions/IncludeDeductions.module.scss.js +14 -0
  211. package/dist/components/Employee/Deductions/IncludeDeductions/IncludeDeductions.module.scss.js.map +1 -0
  212. package/dist/components/Employee/Deductions/stateMachine.js +49 -29
  213. package/dist/components/Employee/Deductions/stateMachine.js.map +1 -1
  214. package/dist/components/Employee/DocumentSigner/DocumentList/Actions.js +9 -6
  215. package/dist/components/Employee/DocumentSigner/DocumentList/Actions.js.map +1 -1
  216. package/dist/components/Employee/DocumentSigner/DocumentList/DocumentList.js +13 -9
  217. package/dist/components/Employee/DocumentSigner/DocumentList/DocumentList.js.map +1 -1
  218. package/dist/components/Employee/DocumentSigner/DocumentList/List.js +6 -2
  219. package/dist/components/Employee/DocumentSigner/DocumentList/List.js.map +1 -1
  220. package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js +6 -4
  221. package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  222. package/dist/components/Employee/DocumentSigner/SignatureForm/SignatureForm.js +15 -11
  223. package/dist/components/Employee/DocumentSigner/SignatureForm/SignatureForm.js.map +1 -1
  224. package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js +6 -4
  225. package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js.map +1 -1
  226. package/dist/components/Employee/EmployeeList/Actions.js +9 -6
  227. package/dist/components/Employee/EmployeeList/Actions.js.map +1 -1
  228. package/dist/components/Employee/EmployeeList/EmployeeList.js +6 -3
  229. package/dist/components/Employee/EmployeeList/EmployeeList.js.map +1 -1
  230. package/dist/components/Employee/EmployeeList/Head.js +8 -5
  231. package/dist/components/Employee/EmployeeList/Head.js.map +1 -1
  232. package/dist/components/Employee/EmployeeList/List.js +17 -16
  233. package/dist/components/Employee/EmployeeList/List.js.map +1 -1
  234. package/dist/components/Employee/EmployeeList/useEmployeeList.js +6 -4
  235. package/dist/components/Employee/EmployeeList/useEmployeeList.js.map +1 -1
  236. package/dist/components/Employee/FederalTaxes/Actions.js +10 -7
  237. package/dist/components/Employee/FederalTaxes/Actions.js.map +1 -1
  238. package/dist/components/Employee/FederalTaxes/FederalForm.js +14 -11
  239. package/dist/components/Employee/FederalTaxes/FederalForm.js.map +1 -1
  240. package/dist/components/Employee/FederalTaxes/useFederalTaxes.js +6 -4
  241. package/dist/components/Employee/FederalTaxes/useFederalTaxes.js.map +1 -1
  242. package/dist/components/Employee/Landing/Landing.js +15 -13
  243. package/dist/components/Employee/Landing/Landing.js.map +1 -1
  244. package/dist/components/Employee/OnboardingSummary/OnboardingSummary.js +7 -7
  245. package/dist/components/Employee/PaymentMethod/Actions.js +11 -8
  246. package/dist/components/Employee/PaymentMethod/Actions.js.map +1 -1
  247. package/dist/components/Employee/PaymentMethod/BankAccountEdit.js +8 -5
  248. package/dist/components/Employee/PaymentMethod/BankAccountEdit.js.map +1 -1
  249. package/dist/components/Employee/PaymentMethod/BankAccountsList.js +13 -11
  250. package/dist/components/Employee/PaymentMethod/BankAccountsList.js.map +1 -1
  251. package/dist/components/Employee/PaymentMethod/PaymentTypeForm.js +10 -7
  252. package/dist/components/Employee/PaymentMethod/PaymentTypeForm.js.map +1 -1
  253. package/dist/components/Employee/PaymentMethod/Split.js +10 -9
  254. package/dist/components/Employee/PaymentMethod/Split.js.map +1 -1
  255. package/dist/components/Employee/PaymentMethod/usePaymentMethod.js +8 -6
  256. package/dist/components/Employee/PaymentMethod/usePaymentMethod.js.map +1 -1
  257. package/dist/components/Employee/Profile/Actions.js +11 -8
  258. package/dist/components/Employee/Profile/Actions.js.map +1 -1
  259. package/dist/components/Employee/Profile/AdminPersonalDetails.js +11 -8
  260. package/dist/components/Employee/Profile/AdminPersonalDetails.js.map +1 -1
  261. package/dist/components/Employee/Profile/HomeAddress.js +8 -7
  262. package/dist/components/Employee/Profile/HomeAddress.js.map +1 -1
  263. package/dist/components/Employee/Profile/PersonalDetailsInputs.js +31 -28
  264. package/dist/components/Employee/Profile/PersonalDetailsInputs.js.map +1 -1
  265. package/dist/components/Employee/Profile/useProfile.js +6 -4
  266. package/dist/components/Employee/Profile/useProfile.js.map +1 -1
  267. package/dist/components/Employee/StateTaxes/Actions.js +11 -8
  268. package/dist/components/Employee/StateTaxes/Actions.js.map +1 -1
  269. package/dist/components/Employee/StateTaxes/useStateTaxes.js +6 -4
  270. package/dist/components/Employee/StateTaxes/useStateTaxes.js.map +1 -1
  271. package/dist/components/Employee/Taxes/Actions.js +11 -8
  272. package/dist/components/Employee/Taxes/Actions.js.map +1 -1
  273. package/dist/components/Employee/Taxes/FederalForm.js +15 -12
  274. package/dist/components/Employee/Taxes/FederalForm.js.map +1 -1
  275. package/dist/components/Employee/Taxes/useTaxes.js +6 -4
  276. package/dist/components/Employee/Taxes/useTaxes.js.map +1 -1
  277. package/dist/components/Flow/Flow.js +30 -27
  278. package/dist/components/Flow/Flow.js.map +1 -1
  279. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetails.d.ts +1 -1
  280. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetails.js +58 -36
  281. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetails.js.map +1 -1
  282. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsBanner/ConfirmWireDetailsBanner.d.ts +2 -0
  283. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsBanner/ConfirmWireDetailsBanner.js +71 -54
  284. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsBanner/ConfirmWireDetailsBanner.js.map +1 -1
  285. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsComponents.d.ts +23 -0
  286. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsComponents.js +27 -15
  287. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsComponents.js.map +1 -1
  288. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsForm/ConfirmWireDetailsForm.d.ts +25 -2
  289. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsForm/ConfirmWireDetailsForm.js +153 -23
  290. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsForm/ConfirmWireDetailsForm.js.map +1 -1
  291. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsForm/ConfirmWireDetailsForm.module.scss.js +10 -0
  292. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsForm/ConfirmWireDetailsForm.module.scss.js.map +1 -0
  293. package/dist/components/Payroll/ConfirmWireDetails/WireInstructions/WireInstructions.d.ts +9 -1
  294. package/dist/components/Payroll/ConfirmWireDetails/WireInstructions/WireInstructions.js +195 -22
  295. package/dist/components/Payroll/ConfirmWireDetails/WireInstructions/WireInstructions.js.map +1 -1
  296. package/dist/components/Payroll/ConfirmWireDetails/WireInstructions/WireInstructions.module.scss.js +18 -0
  297. package/dist/components/Payroll/ConfirmWireDetails/WireInstructions/WireInstructions.module.scss.js.map +1 -0
  298. package/dist/components/Payroll/ConfirmWireDetails/confirmWireDetailsStateMachine.d.ts +10 -2
  299. package/dist/components/Payroll/ConfirmWireDetails/confirmWireDetailsStateMachine.js +39 -25
  300. package/dist/components/Payroll/ConfirmWireDetails/confirmWireDetailsStateMachine.js.map +1 -1
  301. package/dist/components/Payroll/ConfirmWireDetails/index.d.ts +1 -0
  302. package/dist/components/Payroll/ConfirmWireDetails/types.d.ts +5 -0
  303. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerAlerts.js +16 -13
  304. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerAlerts.js.map +1 -1
  305. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerList.js +8 -6
  306. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerList.js.map +1 -1
  307. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js +15 -15
  308. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js.map +1 -1
  309. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js +27 -27
  310. package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js +13 -11
  311. package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js.map +1 -1
  312. package/dist/components/Payroll/PayrollHistory/PayrollHistory.d.ts +0 -12
  313. package/dist/components/Payroll/PayrollHistory/PayrollHistory.js +44 -52
  314. package/dist/components/Payroll/PayrollHistory/PayrollHistory.js.map +1 -1
  315. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.d.ts +9 -6
  316. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js +97 -93
  317. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js.map +1 -1
  318. package/dist/components/Payroll/PayrollList/PayrollList.js +58 -59
  319. package/dist/components/Payroll/PayrollList/PayrollList.js.map +1 -1
  320. package/dist/components/Payroll/PayrollList/PayrollListPresentation.d.ts +4 -6
  321. package/dist/components/Payroll/PayrollList/PayrollListPresentation.js +82 -72
  322. package/dist/components/Payroll/PayrollList/PayrollListPresentation.js.map +1 -1
  323. package/dist/components/Payroll/PayrollOverview/PayrollOverview.js +3 -2
  324. package/dist/components/Payroll/PayrollOverview/PayrollOverview.js.map +1 -1
  325. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js +11 -10
  326. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js.map +1 -1
  327. package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/FastAchThresholdExceeded.js +8 -5
  328. package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/FastAchThresholdExceeded.js.map +1 -1
  329. package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js +3 -2
  330. package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js.map +1 -1
  331. package/dist/components/Payroll/PayrollStatusBadges/PayrollStatusBadges.d.ts +7 -0
  332. package/dist/components/Payroll/PayrollStatusBadges/PayrollStatusBadges.js +19 -0
  333. package/dist/components/Payroll/PayrollStatusBadges/PayrollStatusBadges.js.map +1 -0
  334. package/dist/components/Payroll/PayrollStatusBadges/PayrollStatusBadges.module.scss.js +10 -0
  335. package/dist/components/Payroll/PayrollStatusBadges/PayrollStatusBadges.module.scss.js.map +1 -0
  336. package/dist/components/Payroll/PayrollStatusBadges/index.d.ts +4 -0
  337. package/dist/components/Payroll/PayrollStatusBadges/payrollStatusConfig.d.ts +33 -0
  338. package/dist/components/Payroll/PayrollStatusBadges/payrollStatusConfig.js +161 -0
  339. package/dist/components/Payroll/PayrollStatusBadges/payrollStatusConfig.js.map +1 -0
  340. package/dist/components/Payroll/PayrollStatusBadges/usePayrollStatusBadges.d.ts +3 -0
  341. package/dist/components/Payroll/PayrollStatusBadges/usePayrollStatusBadges.js +17 -0
  342. package/dist/components/Payroll/PayrollStatusBadges/usePayrollStatusBadges.js.map +1 -0
  343. package/dist/components/Payroll/PayrollStatusBadges/usePayrollStatusBadges.test.d.ts +1 -0
  344. package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/PayrollConfiguration.d.ts +6 -0
  345. package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/PayrollConfiguration.js +70 -0
  346. package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/PayrollConfiguration.js.map +1 -0
  347. package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/PayrollConfigurationContext.d.ts +7 -0
  348. package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/PayrollConfigurationContext.js +6 -0
  349. package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/PayrollConfigurationContext.js.map +1 -0
  350. package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/PayrollConfigurationProvider.d.ts +9 -0
  351. package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/PayrollConfigurationProvider.js +40 -0
  352. package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/PayrollConfigurationProvider.js.map +1 -0
  353. package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/index.d.ts +5 -0
  354. package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/usePayrollConfiguration.d.ts +2 -0
  355. package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/usePayrollConfiguration.js +12 -0
  356. package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/usePayrollConfiguration.js.map +1 -0
  357. package/dist/components/Payroll/UNSTABLE_PayrollHooks/index.d.ts +2 -0
  358. package/dist/components/Payroll/helpers.d.ts +0 -5
  359. package/dist/components/Payroll/helpers.js +106 -112
  360. package/dist/components/Payroll/helpers.js.map +1 -1
  361. package/dist/components/Payroll/usePreparedPayrollData.js +10 -8
  362. package/dist/components/Payroll/usePreparedPayrollData.js.map +1 -1
  363. package/dist/contexts/ComponentAdapter/adapters/defaultComponentAdapter.js +48 -46
  364. package/dist/contexts/ComponentAdapter/adapters/defaultComponentAdapter.js.map +1 -1
  365. package/dist/contexts/ComponentAdapter/useComponentContext.d.ts +2 -0
  366. package/dist/contexts/ComponentAdapter/useComponentContext.js +3 -3
  367. package/dist/contexts/ComponentAdapter/useComponentContext.js.map +1 -1
  368. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js +9 -5
  369. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js.map +1 -1
  370. package/dist/helpers/dateFormatting.d.ts +9 -0
  371. package/dist/helpers/dateFormatting.js +65 -52
  372. package/dist/helpers/dateFormatting.js.map +1 -1
  373. package/dist/helpers/formattedStrings.js +12 -11
  374. package/dist/helpers/formattedStrings.js.map +1 -1
  375. package/dist/helpers/validations.js +1 -1
  376. package/dist/helpers/validations.js.map +1 -1
  377. package/dist/i18n/I18n.js +10 -10
  378. package/dist/i18n/I18n.js.map +1 -1
  379. package/dist/i18n/en/ContractorPayment.ContractorPaymentCreatePayment.json.js +32 -0
  380. package/dist/i18n/en/ContractorPayment.ContractorPaymentCreatePayment.json.js.map +1 -0
  381. package/dist/i18n/en/ContractorPayment.ContractorPaymentDetail.json.js +24 -0
  382. package/dist/i18n/en/ContractorPayment.ContractorPaymentDetail.json.js.map +1 -0
  383. package/dist/i18n/en/ContractorPayment.ContractorPaymentOverview.json.js +32 -0
  384. package/dist/i18n/en/ContractorPayment.ContractorPaymentOverview.json.js.map +1 -0
  385. package/dist/i18n/en/ContractorPayment.ContractorPaymentPaymentHistory.json.js +32 -0
  386. package/dist/i18n/en/ContractorPayment.ContractorPaymentPaymentHistory.json.js.map +1 -0
  387. package/dist/i18n/en/Payroll.Common.json.js +8 -0
  388. package/dist/i18n/en/Payroll.Common.json.js.map +1 -0
  389. package/dist/i18n/en/Payroll.ConfirmWireDetailsForm.json.js +25 -5
  390. package/dist/i18n/en/Payroll.ConfirmWireDetailsForm.json.js.map +1 -1
  391. package/dist/i18n/en/Payroll.PayrollList.json.js +14 -16
  392. package/dist/i18n/en/Payroll.PayrollList.json.js.map +1 -1
  393. package/dist/i18n/en/Payroll.WireInstructions.json.js +22 -6
  394. package/dist/i18n/en/Payroll.WireInstructions.json.js.map +1 -1
  395. package/dist/shared/constants.d.ts +6 -0
  396. package/dist/shared/constants.js +15 -12
  397. package/dist/shared/constants.js.map +1 -1
  398. package/dist/style.css +1 -1
  399. package/dist/types/i18next.d.ts +183 -8
  400. package/package.json +13 -9
  401. package/dist/components/Employee/Deductions/DeductionsForm/UNSTABLE_DeductionsForm.d.ts +0 -7
  402. package/dist/components/Employee/Deductions/EmptyState/EmptyState.d.ts +0 -6
  403. package/dist/components/Employee/Deductions/IncludeDeductionsForm/IncludeDeductionsForm.d.ts +0 -15
  404. package/dist/components/Employee/Deductions/IncludeDeductionsForm/IncludeDeductionsForm.js +0 -48
  405. package/dist/components/Employee/Deductions/IncludeDeductionsForm/IncludeDeductionsForm.js.map +0 -1
@@ -1,49 +1,50 @@
1
- import { jsx as n, jsxs as m, Fragment as P } from "react/jsx-runtime";
2
- import { useTranslation as A } from "react-i18next";
3
- import { useGarnishmentsListSuspense as O } from "@gusto/embedded-api/react-query/garnishmentsList";
1
+ import { jsx as n, jsxs as l, Fragment as A } from "react/jsx-runtime";
2
+ import { useTranslation as M } from "react-i18next";
3
+ import { useGarnishmentsListSuspense as N } from "@gusto/embedded-api/react-query/garnishmentsList";
4
4
  import { useGarnishmentsUpdateMutation as w } from "@gusto/embedded-api/react-query/garnishmentsUpdate";
5
- import { BaseComponent as N } from "../../../Base/Base.js";
6
- import { useBase as _ } from "../../../Base/useBase.js";
7
- import { Flex as k } from "../../../Common/Flex/Flex.js";
8
- import { ActionsLayout as I } from "../../../Common/ActionsLayout/ActionsLayout.js";
9
- import u from "../../../../hooks/useNumberFormatter.js";
10
- import M from "../../../../assets/icons/pencil.svg.js";
11
- import U from "../../../../assets/icons/trashcan.svg.js";
12
- import { useComponentDictionary as B, useI18n as S } from "../../../../i18n/I18n.js";
13
- import { componentEvents as c } from "../../../../shared/constants.js";
14
- import { useComponentContext as V } from "../../../../contexts/ComponentAdapter/useComponentContext.js";
15
- import { HamburgerMenu as Y } from "../../../Common/HamburgerMenu/HamburgerMenu.js";
16
- import { useDataView as q } from "../../../Common/DataView/useDataView.js";
17
- import { DataView as F } from "../../../Common/DataView/DataView.js";
18
- function ce(r) {
19
- return /* @__PURE__ */ n(N, { ...r, children: /* @__PURE__ */ n(H, { ...r, children: r.children }) });
5
+ import { BaseComponent as I } from "../../../Base/Base.js";
6
+ import { useBase as k } from "../../../Base/useBase.js";
7
+ import { Flex as U } from "../../../Common/Flex/Flex.js";
8
+ import "classnames";
9
+ import { componentEvents as a } from "../../../../shared/constants.js";
10
+ import { ActionsLayout as Y } from "../../../Common/ActionsLayout/ActionsLayout.js";
11
+ import { HamburgerMenu as B } from "../../../Common/HamburgerMenu/HamburgerMenu.js";
12
+ import E from "../../../../hooks/useNumberFormatter.js";
13
+ import S from "../../../../assets/icons/pencil.svg.js";
14
+ import V from "../../../../assets/icons/trashcan.svg.js";
15
+ import { useComponentDictionary as q, useI18n as F } from "../../../../i18n/I18n.js";
16
+ import { useComponentContext as H } from "../../../../contexts/ComponentAdapter/useComponentContext.js";
17
+ import { useDataView as j } from "../../../Common/DataView/useDataView.js";
18
+ import { DataView as G } from "../../../Common/DataView/DataView.js";
19
+ function me(r) {
20
+ return /* @__PURE__ */ n(I, { ...r, children: /* @__PURE__ */ n(R, { ...r, children: r.children }) });
20
21
  }
21
- function H({ className: r, children: s, employeeId: d, dictionary: l }) {
22
- const { onEvent: a, baseSubmitHandler: p } = _(), { t } = A("Employee.Deductions"), i = V(), D = u("currency"), h = u("percent");
23
- B("Employee.Deductions", l), S("Employee.Deductions");
24
- const { data: E } = O({ employeeId: d }), f = E.garnishmentList.filter((e) => e.active), { mutateAsync: g, isPending: C } = w(), y = async (e) => {
25
- await p(e, async (o) => {
26
- const { garnishment: x } = await g({
22
+ function R({ className: r, children: s, employeeId: D, dictionary: p }) {
23
+ const { onEvent: o, baseSubmitHandler: f } = k(), { t } = M("Employee.Deductions"), c = H(), h = E("currency"), g = E("percent");
24
+ q("Employee.Deductions", p), F("Employee.Deductions");
25
+ const { data: C } = N({ employeeId: D }), u = C.garnishmentList, T = u.filter((e) => e.active), { mutateAsync: v, isPending: y } = w(), b = async (e) => {
26
+ await f(e, async (i) => {
27
+ const { garnishment: m } = await v({
27
28
  request: {
28
- garnishmentId: o.uuid,
29
+ garnishmentId: i.uuid,
29
30
  requestBody: {
30
- ...o,
31
- totalAmount: o.totalAmount ?? void 0,
31
+ ...i,
32
+ totalAmount: i.totalAmount ?? void 0,
32
33
  active: !1,
33
- version: o.version
34
+ version: i.version
34
35
  }
35
36
  }
36
- });
37
- a(c.EMPLOYEE_DEDUCTION_DELETED, x);
37
+ }), d = u.filter((x) => x.active);
38
+ d.length === 1 && d[0]?.uuid === m?.uuid ? o(a.EMPLOYEE_DEDUCTION_DELETED_EMPTY) : o(a.EMPLOYEE_DEDUCTION_DELETED, m);
38
39
  });
39
- }, T = (e) => {
40
- a(c.EMPLOYEE_DEDUCTION_EDIT, e);
41
- }, b = () => {
42
- a(c.EMPLOYEE_DEDUCTION_ADD);
43
- }, v = () => {
44
- a(c.EMPLOYEE_DEDUCTION_DONE);
45
- }, { ...L } = q({
46
- data: f,
40
+ }, L = (e) => {
41
+ o(a.EMPLOYEE_DEDUCTION_EDIT, e);
42
+ }, P = () => {
43
+ o(a.EMPLOYEE_DEDUCTION_ADD);
44
+ }, O = () => {
45
+ o(a.EMPLOYEE_DEDUCTION_DONE);
46
+ }, { ..._ } = j({
47
+ data: T,
47
48
  columns: [
48
49
  {
49
50
  key: "description",
@@ -58,46 +59,46 @@ function H({ className: r, children: s, employeeId: d, dictionary: l }) {
58
59
  key: "amount",
59
60
  title: t("withheldColumn"),
60
61
  render: (e) => {
61
- const o = e.deductAsPercentage ? h(Number(e.amount)) : D(Number(e.amount));
62
- return e.recurring ? t("recurringAmount", { value: o }) : o;
62
+ const i = e.deductAsPercentage ? g(Number(e.amount)) : h(Number(e.amount));
63
+ return e.recurring ? t("recurringAmount", { value: i }) : i;
63
64
  }
64
65
  }
65
66
  ],
66
67
  itemMenu: (e) => /* @__PURE__ */ n(
67
- Y,
68
+ B,
68
69
  {
69
- isLoading: C,
70
+ isLoading: y,
70
71
  items: [
71
72
  {
72
73
  label: t("editCta"),
73
74
  onClick: () => {
74
- T(e);
75
+ L(e);
75
76
  },
76
- icon: /* @__PURE__ */ n(M, { "aria-hidden": !0 })
77
+ icon: /* @__PURE__ */ n(S, { "aria-hidden": !0 })
77
78
  },
78
79
  {
79
80
  label: t("deleteCta"),
80
81
  onClick: async () => {
81
- await y(e);
82
+ await b(e);
82
83
  },
83
- icon: /* @__PURE__ */ n(U, { "aria-hidden": !0 })
84
+ icon: /* @__PURE__ */ n(V, { "aria-hidden": !0 })
84
85
  }
85
86
  ]
86
87
  }
87
88
  )
88
89
  });
89
- return /* @__PURE__ */ n("section", { className: r, children: /* @__PURE__ */ n(k, { flexDirection: "column", gap: 32, children: s || /* @__PURE__ */ m(P, { children: [
90
- /* @__PURE__ */ n(i.Heading, { as: "h2", children: t("pageTitle") }),
91
- /* @__PURE__ */ n(i.Text, { variant: "supporting", children: t("includeDeductionsDescriptionV2") }),
92
- /* @__PURE__ */ n(i.Text, { weight: "bold", size: "lg", children: t("includeDeductionsSubtitle") }),
93
- /* @__PURE__ */ n(F, { label: t("deductionsTableLabel"), ...L }),
94
- /* @__PURE__ */ m(I, { children: [
95
- /* @__PURE__ */ n(i.Button, { variant: "secondary", onClick: b, children: t("addDeductionCta") }),
96
- /* @__PURE__ */ n(i.Button, { onClick: v, children: t("continueCta") })
90
+ return /* @__PURE__ */ n("section", { className: r, children: /* @__PURE__ */ n(U, { flexDirection: "column", gap: 32, children: s || /* @__PURE__ */ l(A, { children: [
91
+ /* @__PURE__ */ n(c.Heading, { as: "h2", children: t("pageTitle") }),
92
+ /* @__PURE__ */ n(c.Text, { variant: "supporting", children: t("includeDeductionsDescriptionV2") }),
93
+ /* @__PURE__ */ n(c.Text, { weight: "bold", size: "lg", children: t("includeDeductionsSubtitle") }),
94
+ /* @__PURE__ */ n(G, { label: t("deductionsTableLabel"), ..._ }),
95
+ /* @__PURE__ */ l(Y, { children: [
96
+ /* @__PURE__ */ n(c.Button, { variant: "secondary", onClick: P, children: t("addDeductionCta") }),
97
+ /* @__PURE__ */ n(c.Button, { onClick: O, children: t("continueCta") })
97
98
  ] })
98
99
  ] }) }) });
99
100
  }
100
101
  export {
101
- ce as DeductionsList
102
+ me as DeductionsList
102
103
  };
103
104
  //# sourceMappingURL=DeductionsList.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DeductionsList.js","sources":["../../../../../src/components/Employee/Deductions/DeductionsList/DeductionsList.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport { useGarnishmentsListSuspense } from '@gusto/embedded-api/react-query/garnishmentsList'\nimport { useGarnishmentsUpdateMutation } from '@gusto/embedded-api/react-query/garnishmentsUpdate'\nimport { type Garnishment } from '@gusto/embedded-api/models/components/garnishment'\nimport {\n BaseComponent,\n type BaseComponentInterface,\n type CommonComponentInterface,\n useBase,\n} from '@/components/Base'\nimport { useDataView, DataView } from '@/components/Common'\nimport { ActionsLayout } from '@/components/Common'\nimport { Flex } from '@/components/Common/Flex/Flex'\nimport useNumberFormatter from '@/hooks/useNumberFormatter'\nimport PencilSvg from '@/assets/icons/pencil.svg?react'\nimport TrashCanSvg from '@/assets/icons/trashcan.svg?react'\nimport { HamburgerMenu } from '@/components/Common/HamburgerMenu'\nimport { useI18n } from '@/i18n'\nimport { componentEvents } from '@/shared/constants'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\nimport { useComponentDictionary } from '@/i18n/I18n'\n\ninterface DeductionsListProps extends CommonComponentInterface<'Employee.Deductions'> {\n employeeId: string\n}\n\nexport function DeductionsList(props: DeductionsListProps & BaseComponentInterface) {\n return (\n <BaseComponent {...props}>\n <Root {...props}>{props.children}</Root>\n </BaseComponent>\n )\n}\n\nfunction Root({ className, children, employeeId, dictionary }: DeductionsListProps) {\n const { onEvent, baseSubmitHandler } = useBase()\n const { t } = useTranslation('Employee.Deductions')\n const Components = useComponentContext()\n const formatCurrency = useNumberFormatter('currency')\n const formatPercent = useNumberFormatter('percent')\n\n useComponentDictionary('Employee.Deductions', dictionary)\n useI18n('Employee.Deductions')\n\n const { data } = useGarnishmentsListSuspense({ employeeId })\n const deductions = data.garnishmentList!\n const activeDeductions = deductions.filter(deduction => deduction.active)\n\n const { mutateAsync: updateDeduction, isPending: isPendingUpdate } =\n useGarnishmentsUpdateMutation()\n\n const handleDelete = async (deduction: Garnishment) => {\n await baseSubmitHandler(deduction, async payload => {\n const { garnishment } = await updateDeduction({\n request: {\n garnishmentId: payload.uuid,\n requestBody: {\n ...payload,\n totalAmount: payload.totalAmount ?? undefined,\n active: false,\n version: payload.version as string,\n },\n },\n })\n onEvent(componentEvents.EMPLOYEE_DEDUCTION_DELETED, garnishment)\n })\n }\n\n const handleEdit = (deduction: Garnishment) => {\n onEvent(componentEvents.EMPLOYEE_DEDUCTION_EDIT, deduction)\n }\n\n const handleAdd = () => {\n onEvent(componentEvents.EMPLOYEE_DEDUCTION_ADD)\n }\n\n const handleContinue = () => {\n onEvent(componentEvents.EMPLOYEE_DEDUCTION_DONE)\n }\n\n const { ...dataViewProps } = useDataView({\n data: activeDeductions,\n columns: [\n {\n key: 'description',\n title: t('nameColumn'),\n },\n {\n key: 'recurring',\n title: t('frequencyColumn'),\n render: deduction => {\n return deduction.recurring ? t('recurringText') : t('nonRecurringText')\n },\n },\n {\n key: 'amount',\n title: t('withheldColumn'),\n render: deduction => {\n const formattedAmount = deduction.deductAsPercentage\n ? formatPercent(Number(deduction.amount))\n : formatCurrency(Number(deduction.amount))\n return deduction.recurring\n ? t('recurringAmount', { value: formattedAmount })\n : formattedAmount\n },\n },\n ],\n itemMenu: deduction => {\n return (\n <HamburgerMenu\n isLoading={isPendingUpdate}\n items={[\n {\n label: t('editCta'),\n onClick: () => {\n handleEdit(deduction)\n },\n icon: <PencilSvg aria-hidden />,\n },\n {\n label: t('deleteCta'),\n onClick: async () => {\n await handleDelete(deduction)\n },\n icon: <TrashCanSvg aria-hidden />,\n },\n ]}\n />\n )\n },\n })\n\n return (\n <section className={className}>\n <Flex flexDirection=\"column\" gap={32}>\n {children ? (\n children\n ) : (\n <>\n <Components.Heading as=\"h2\">{t('pageTitle')}</Components.Heading>\n <Components.Text variant=\"supporting\">\n {t('includeDeductionsDescriptionV2')}\n </Components.Text>\n <Components.Text weight=\"bold\" size=\"lg\">\n {t('includeDeductionsSubtitle')}\n </Components.Text>\n <DataView label={t('deductionsTableLabel')} {...dataViewProps} />\n <ActionsLayout>\n <Components.Button variant=\"secondary\" onClick={handleAdd}>\n {t('addDeductionCta')}\n </Components.Button>\n <Components.Button onClick={handleContinue}>{t('continueCta')}</Components.Button>\n </ActionsLayout>\n </>\n )}\n </Flex>\n </section>\n )\n}\n"],"names":["DeductionsList","props","jsx","BaseComponent","Root","className","children","employeeId","dictionary","onEvent","baseSubmitHandler","useBase","useTranslation","Components","useComponentContext","formatCurrency","useNumberFormatter","formatPercent","useComponentDictionary","useI18n","data","useGarnishmentsListSuspense","activeDeductions","deduction","updateDeduction","isPendingUpdate","useGarnishmentsUpdateMutation","handleDelete","payload","garnishment","componentEvents","handleEdit","handleAdd","handleContinue","dataViewProps","useDataView","formattedAmount","HamburgerMenu","PencilSvg","TrashCanSvg","Flex","jsxs","Fragment","DataView","ActionsLayout"],"mappings":"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"}
1
+ {"version":3,"file":"DeductionsList.js","sources":["../../../../../src/components/Employee/Deductions/DeductionsList/DeductionsList.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport { useGarnishmentsListSuspense } from '@gusto/embedded-api/react-query/garnishmentsList'\nimport { useGarnishmentsUpdateMutation } from '@gusto/embedded-api/react-query/garnishmentsUpdate'\nimport { type Garnishment } from '@gusto/embedded-api/models/components/garnishment'\nimport {\n BaseComponent,\n type BaseComponentInterface,\n type CommonComponentInterface,\n useBase,\n} from '@/components/Base'\nimport { useDataView, DataView } from '@/components/Common'\nimport { ActionsLayout } from '@/components/Common'\nimport { Flex } from '@/components/Common/Flex/Flex'\nimport useNumberFormatter from '@/hooks/useNumberFormatter'\nimport PencilSvg from '@/assets/icons/pencil.svg?react'\nimport TrashCanSvg from '@/assets/icons/trashcan.svg?react'\nimport { HamburgerMenu } from '@/components/Common/HamburgerMenu'\nimport { useI18n } from '@/i18n'\nimport { componentEvents } from '@/shared/constants'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\nimport { useComponentDictionary } from '@/i18n/I18n'\n\ninterface DeductionsListProps extends CommonComponentInterface<'Employee.Deductions'> {\n employeeId: string\n}\n\nexport function DeductionsList(props: DeductionsListProps & BaseComponentInterface) {\n return (\n <BaseComponent {...props}>\n <Root {...props}>{props.children}</Root>\n </BaseComponent>\n )\n}\n\nfunction Root({ className, children, employeeId, dictionary }: DeductionsListProps) {\n const { onEvent, baseSubmitHandler } = useBase()\n const { t } = useTranslation('Employee.Deductions')\n const Components = useComponentContext()\n const formatCurrency = useNumberFormatter('currency')\n const formatPercent = useNumberFormatter('percent')\n\n useComponentDictionary('Employee.Deductions', dictionary)\n useI18n('Employee.Deductions')\n\n const { data } = useGarnishmentsListSuspense({ employeeId })\n const deductions = data.garnishmentList!\n const activeDeductions = deductions.filter(deduction => deduction.active)\n\n const { mutateAsync: updateDeduction, isPending: isPendingUpdate } =\n useGarnishmentsUpdateMutation()\n\n const handleDelete = async (deduction: Garnishment) => {\n await baseSubmitHandler(deduction, async payload => {\n const { garnishment } = await updateDeduction({\n request: {\n garnishmentId: payload.uuid,\n requestBody: {\n ...payload,\n totalAmount: payload.totalAmount ?? undefined,\n active: false,\n version: payload.version as string,\n },\n },\n })\n\n // if soft deleted deduction was the last active, then return to empty view\n // else if any other active deductions return to list view\n const remainingActiveDeductions = deductions.filter(d => d.active)\n\n if (\n remainingActiveDeductions.length === 1 &&\n remainingActiveDeductions[0]?.uuid === garnishment?.uuid\n ) {\n onEvent(componentEvents.EMPLOYEE_DEDUCTION_DELETED_EMPTY)\n } else {\n onEvent(componentEvents.EMPLOYEE_DEDUCTION_DELETED, garnishment)\n }\n })\n }\n\n const handleEdit = (deduction: Garnishment) => {\n onEvent(componentEvents.EMPLOYEE_DEDUCTION_EDIT, deduction)\n }\n\n const handleAdd = () => {\n onEvent(componentEvents.EMPLOYEE_DEDUCTION_ADD)\n }\n\n const handleContinue = () => {\n onEvent(componentEvents.EMPLOYEE_DEDUCTION_DONE)\n }\n\n const { ...dataViewProps } = useDataView({\n data: activeDeductions,\n columns: [\n {\n key: 'description',\n title: t('nameColumn'),\n },\n {\n key: 'recurring',\n title: t('frequencyColumn'),\n render: deduction => {\n return deduction.recurring ? t('recurringText') : t('nonRecurringText')\n },\n },\n {\n key: 'amount',\n title: t('withheldColumn'),\n render: deduction => {\n const formattedAmount = deduction.deductAsPercentage\n ? formatPercent(Number(deduction.amount))\n : formatCurrency(Number(deduction.amount))\n return deduction.recurring\n ? t('recurringAmount', { value: formattedAmount })\n : formattedAmount\n },\n },\n ],\n itemMenu: deduction => {\n return (\n <HamburgerMenu\n isLoading={isPendingUpdate}\n items={[\n {\n label: t('editCta'),\n onClick: () => {\n handleEdit(deduction)\n },\n icon: <PencilSvg aria-hidden />,\n },\n {\n label: t('deleteCta'),\n onClick: async () => {\n await handleDelete(deduction)\n },\n icon: <TrashCanSvg aria-hidden />,\n },\n ]}\n />\n )\n },\n })\n\n return (\n <section className={className}>\n <Flex flexDirection=\"column\" gap={32}>\n {children ? (\n children\n ) : (\n <>\n <Components.Heading as=\"h2\">{t('pageTitle')}</Components.Heading>\n <Components.Text variant=\"supporting\">\n {t('includeDeductionsDescriptionV2')}\n </Components.Text>\n <Components.Text weight=\"bold\" size=\"lg\">\n {t('includeDeductionsSubtitle')}\n </Components.Text>\n <DataView label={t('deductionsTableLabel')} {...dataViewProps} />\n <ActionsLayout>\n <Components.Button variant=\"secondary\" onClick={handleAdd}>\n {t('addDeductionCta')}\n </Components.Button>\n <Components.Button onClick={handleContinue}>{t('continueCta')}</Components.Button>\n </ActionsLayout>\n </>\n )}\n </Flex>\n </section>\n )\n}\n"],"names":["DeductionsList","props","jsx","BaseComponent","Root","className","children","employeeId","dictionary","onEvent","baseSubmitHandler","useBase","useTranslation","Components","useComponentContext","formatCurrency","useNumberFormatter","formatPercent","useComponentDictionary","useI18n","data","useGarnishmentsListSuspense","deductions","activeDeductions","deduction","updateDeduction","isPendingUpdate","useGarnishmentsUpdateMutation","handleDelete","payload","garnishment","remainingActiveDeductions","d","componentEvents","handleEdit","handleAdd","handleContinue","dataViewProps","useDataView","formattedAmount","HamburgerMenu","PencilSvg","TrashCanSvg","Flex","jsxs","Fragment","DataView","ActionsLayout"],"mappings":";;;;;;;;;;;;;;;;;;AA0BO,SAASA,GAAeC,GAAqD;AAClF,SACE,gBAAAC,EAACC,GAAA,EAAe,GAAGF,GACjB,UAAA,gBAAAC,EAACE,KAAM,GAAGH,GAAQ,UAAAA,EAAM,SAAA,CAAS,EAAA,CACnC;AAEJ;AAEA,SAASG,EAAK,EAAE,WAAAC,GAAW,UAAAC,GAAU,YAAAC,GAAY,YAAAC,KAAmC;AAClF,QAAM,EAAE,SAAAC,GAAS,mBAAAC,EAAA,IAAsBC,EAAA,GACjC,EAAE,EAAA,IAAMC,EAAe,qBAAqB,GAC5CC,IAAaC,EAAA,GACbC,IAAiBC,EAAmB,UAAU,GAC9CC,IAAgBD,EAAmB,SAAS;AAElD,EAAAE,EAAuB,uBAAuBV,CAAU,GACxDW,EAAQ,qBAAqB;AAE7B,QAAM,EAAE,MAAAC,EAAA,IAASC,EAA4B,EAAE,YAAAd,GAAY,GACrDe,IAAaF,EAAK,iBAClBG,IAAmBD,EAAW,OAAO,CAAAE,MAAaA,EAAU,MAAM,GAElE,EAAE,aAAaC,GAAiB,WAAWC,EAAA,IAC/CC,EAAA,GAEIC,IAAe,OAAOJ,MAA2B;AACrD,UAAMd,EAAkBc,GAAW,OAAMK,MAAW;AAClD,YAAM,EAAE,aAAAC,MAAgB,MAAML,EAAgB;AAAA,QAC5C,SAAS;AAAA,UACP,eAAeI,EAAQ;AAAA,UACvB,aAAa;AAAA,YACX,GAAGA;AAAA,YACH,aAAaA,EAAQ,eAAe;AAAA,YACpC,QAAQ;AAAA,YACR,SAASA,EAAQ;AAAA,UAAA;AAAA,QACnB;AAAA,MACF,CACD,GAIKE,IAA4BT,EAAW,OAAO,CAAAU,MAAKA,EAAE,MAAM;AAEjE,MACED,EAA0B,WAAW,KACrCA,EAA0B,CAAC,GAAG,SAASD,GAAa,OAEpDrB,EAAQwB,EAAgB,gCAAgC,IAExDxB,EAAQwB,EAAgB,4BAA4BH,CAAW;AAAA,IAEnE,CAAC;AAAA,EACH,GAEMI,IAAa,CAACV,MAA2B;AAC7C,IAAAf,EAAQwB,EAAgB,yBAAyBT,CAAS;AAAA,EAC5D,GAEMW,IAAY,MAAM;AACtB,IAAA1B,EAAQwB,EAAgB,sBAAsB;AAAA,EAChD,GAEMG,IAAiB,MAAM;AAC3B,IAAA3B,EAAQwB,EAAgB,uBAAuB;AAAA,EACjD,GAEM,EAAE,GAAGI,EAAA,IAAkBC,EAAY;AAAA,IACvC,MAAMf;AAAA,IACN,SAAS;AAAA,MACP;AAAA,QACE,KAAK;AAAA,QACL,OAAO,EAAE,YAAY;AAAA,MAAA;AAAA,MAEvB;AAAA,QACE,KAAK;AAAA,QACL,OAAO,EAAE,iBAAiB;AAAA,QAC1B,QAAQ,CAAAC,MACCA,EAAU,YAAY,EAAE,eAAe,IAAI,EAAE,kBAAkB;AAAA,MACxE;AAAA,MAEF;AAAA,QACE,KAAK;AAAA,QACL,OAAO,EAAE,gBAAgB;AAAA,QACzB,QAAQ,CAAAA,MAAa;AACnB,gBAAMe,IAAkBf,EAAU,qBAC9BP,EAAc,OAAOO,EAAU,MAAM,CAAC,IACtCT,EAAe,OAAOS,EAAU,MAAM,CAAC;AAC3C,iBAAOA,EAAU,YACb,EAAE,mBAAmB,EAAE,OAAOe,EAAA,CAAiB,IAC/CA;AAAA,QACN;AAAA,MAAA;AAAA,IACF;AAAA,IAEF,UAAU,CAAAf,MAEN,gBAAAtB;AAAA,MAACsC;AAAA,MAAA;AAAA,QACC,WAAWd;AAAA,QACX,OAAO;AAAA,UACL;AAAA,YACE,OAAO,EAAE,SAAS;AAAA,YAClB,SAAS,MAAM;AACb,cAAAQ,EAAWV,CAAS;AAAA,YACtB;AAAA,YACA,MAAM,gBAAAtB,EAACuC,GAAA,EAAU,eAAW,GAAA,CAAC;AAAA,UAAA;AAAA,UAE/B;AAAA,YACE,OAAO,EAAE,WAAW;AAAA,YACpB,SAAS,YAAY;AACnB,oBAAMb,EAAaJ,CAAS;AAAA,YAC9B;AAAA,YACA,MAAM,gBAAAtB,EAACwC,GAAA,EAAY,eAAW,GAAA,CAAC;AAAA,UAAA;AAAA,QACjC;AAAA,MACF;AAAA,IAAA;AAAA,EAGN,CACD;AAED,SACE,gBAAAxC,EAAC,WAAA,EAAQ,WAAAG,GACP,UAAA,gBAAAH,EAACyC,GAAA,EAAK,eAAc,UAAS,KAAK,IAC/B,UAAArC,KAGC,gBAAAsC,EAAAC,GAAA,EACE,UAAA;AAAA,IAAA,gBAAA3C,EAACW,EAAW,SAAX,EAAmB,IAAG,MAAM,UAAA,EAAE,WAAW,GAAE;AAAA,IAC5C,gBAAAX,EAACW,EAAW,MAAX,EAAgB,SAAQ,cACtB,UAAA,EAAE,gCAAgC,GACrC;AAAA,IACA,gBAAAX,EAACW,EAAW,MAAX,EAAgB,QAAO,QAAO,MAAK,MACjC,UAAA,EAAE,2BAA2B,EAAA,CAChC;AAAA,sBACCiC,GAAA,EAAS,OAAO,EAAE,sBAAsB,GAAI,GAAGT,GAAe;AAAA,sBAC9DU,GAAA,EACC,UAAA;AAAA,MAAA,gBAAA7C,EAACW,EAAW,QAAX,EAAkB,SAAQ,aAAY,SAASsB,GAC7C,UAAA,EAAE,iBAAiB,EAAA,CACtB;AAAA,MACA,gBAAAjC,EAACW,EAAW,QAAX,EAAkB,SAASuB,GAAiB,UAAA,EAAE,aAAa,EAAA,CAAE;AAAA,IAAA,EAAA,CAChE;AAAA,EAAA,EAAA,CACF,GAEJ,GACF;AAEJ;"}
@@ -0,0 +1,6 @@
1
+ import { BaseComponentInterface, CommonComponentInterface } from '../../../Base';
2
+ interface IncludeDeductionsProps extends CommonComponentInterface<'Employee.Deductions'> {
3
+ employeeId: string;
4
+ }
5
+ export declare function IncludeDeductions(props: IncludeDeductionsProps & BaseComponentInterface): import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,53 @@
1
+ import { jsx as t, jsxs as r } from "react/jsx-runtime";
2
+ import { useTranslation as u } from "react-i18next";
3
+ import i from "./IncludeDeductions.module.scss.js";
4
+ import { BaseComponent as a } from "../../../Base/Base.js";
5
+ import { useBase as p } from "../../../Base/useBase.js";
6
+ import { Grid as h } from "../../../Common/Grid/Grid.js";
7
+ import { Flex as C } from "../../../Common/Flex/Flex.js";
8
+ import { ActionsLayout as f } from "../../../Common/ActionsLayout/ActionsLayout.js";
9
+ import { useComponentContext as D } from "../../../../contexts/ComponentAdapter/useComponentContext.js";
10
+ import "react";
11
+ import { useComponentDictionary as E, useI18n as g } from "../../../../i18n/I18n.js";
12
+ import { componentEvents as s } from "../../../../shared/constants.js";
13
+ import y from "../../../../assets/icons/coins-hand.svg.js";
14
+ import x from "../../../../assets/icons/plus-circle.svg.js";
15
+ function Y(o) {
16
+ return /* @__PURE__ */ t(a, { ...o, children: /* @__PURE__ */ t(I, { ...o, children: o.children }) });
17
+ }
18
+ function I({ className: o, dictionary: l }) {
19
+ const { onEvent: c } = p(), { t: n } = u("Employee.Deductions"), e = D();
20
+ E("Employee.Deductions", l), g("Employee.Deductions");
21
+ const d = () => {
22
+ c(s.EMPLOYEE_DEDUCTION_INCLUDE_YES);
23
+ }, m = () => {
24
+ c(s.EMPLOYEE_DEDUCTION_INCLUDE_NO);
25
+ };
26
+ return /* @__PURE__ */ t("section", { className: o, children: /* @__PURE__ */ r(h, { gridTemplateColumns: "1fr", children: [
27
+ /* @__PURE__ */ t(e.Heading, { as: "h2", children: n("pageTitle") }),
28
+ /* @__PURE__ */ t(e.Text, { variant: "supporting", children: n("includeDeductionsDescriptionV2") }),
29
+ /* @__PURE__ */ t(e.Text, { weight: "bold", size: "lg", children: n("includeDeductionsSubtitle") }),
30
+ /* @__PURE__ */ t("section", { className: i.emptyStateContainer, children: /* @__PURE__ */ r(C, { flexDirection: "column", gap: 16, justifyContent: "center", alignItems: "center", children: [
31
+ /* @__PURE__ */ t("section", { className: i.coinHandsIconContainer, children: /* @__PURE__ */ t(y, { width: 36, height: 36 }) }),
32
+ /* @__PURE__ */ t(e.Text, { weight: "bold", children: n("includeDeductionsEmptyState") }),
33
+ /* @__PURE__ */ r(
34
+ e.Button,
35
+ {
36
+ type: "button",
37
+ variant: "secondary",
38
+ onClick: d,
39
+ className: i.addDeductionButton,
40
+ children: [
41
+ /* @__PURE__ */ t(x, { width: 24, height: 24, className: i.plusCircleIcon }),
42
+ n("addDeductionButtonCta")
43
+ ]
44
+ }
45
+ )
46
+ ] }) }),
47
+ /* @__PURE__ */ t(f, { children: /* @__PURE__ */ t(e.Button, { type: "button", onClick: m, children: n("continueCta") }) })
48
+ ] }) });
49
+ }
50
+ export {
51
+ Y as IncludeDeductions
52
+ };
53
+ //# sourceMappingURL=IncludeDeductions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IncludeDeductions.js","sources":["../../../../../src/components/Employee/Deductions/IncludeDeductions/IncludeDeductions.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport styles from './IncludeDeductions.module.scss'\nimport {\n BaseComponent,\n type BaseComponentInterface,\n type CommonComponentInterface,\n useBase,\n} from '@/components/Base'\nimport { Grid } from '@/components/Common/Grid/Grid'\nimport { ActionsLayout, Flex } from '@/components/Common'\nimport { useI18n } from '@/i18n'\nimport { componentEvents } from '@/shared/constants'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\nimport { useComponentDictionary } from '@/i18n/I18n'\nimport CoinsHandsIcon from '@/assets/icons/coins-hand.svg?react'\nimport PlusCircleIcon from '@/assets/icons/plus-circle.svg?react'\n\ninterface IncludeDeductionsProps extends CommonComponentInterface<'Employee.Deductions'> {\n employeeId: string\n}\n\nexport function IncludeDeductions(props: IncludeDeductionsProps & BaseComponentInterface) {\n return (\n <BaseComponent {...props}>\n <Root {...props}>{props.children}</Root>\n </BaseComponent>\n )\n}\n\nfunction Root({ className, dictionary }: IncludeDeductionsProps) {\n const { onEvent } = useBase()\n const { t } = useTranslation('Employee.Deductions')\n const Components = useComponentContext()\n\n useComponentDictionary('Employee.Deductions', dictionary)\n useI18n('Employee.Deductions')\n\n const handleAdd = () => {\n onEvent(componentEvents.EMPLOYEE_DEDUCTION_INCLUDE_YES)\n }\n\n const handleContinue = () => {\n onEvent(componentEvents.EMPLOYEE_DEDUCTION_INCLUDE_NO)\n }\n\n return (\n <section className={className}>\n <Grid gridTemplateColumns=\"1fr\">\n <Components.Heading as=\"h2\">{t('pageTitle')}</Components.Heading>\n <Components.Text variant=\"supporting\">\n {t('includeDeductionsDescriptionV2')}\n </Components.Text>\n <Components.Text weight=\"bold\" size=\"lg\">\n {t('includeDeductionsSubtitle')}\n </Components.Text>\n <section className={styles.emptyStateContainer}>\n <Flex flexDirection=\"column\" gap={16} justifyContent=\"center\" alignItems=\"center\">\n <section className={styles.coinHandsIconContainer}>\n <CoinsHandsIcon width={36} height={36} />\n </section>\n <Components.Text weight=\"bold\">{t('includeDeductionsEmptyState')}</Components.Text>\n <Components.Button\n type=\"button\"\n variant=\"secondary\"\n onClick={handleAdd}\n className={styles.addDeductionButton}\n >\n <PlusCircleIcon width={24} height={24} className={styles.plusCircleIcon} />\n {t('addDeductionButtonCta')}\n </Components.Button>\n </Flex>\n </section>\n <ActionsLayout>\n <Components.Button type=\"button\" onClick={handleContinue}>\n {t('continueCta')}\n </Components.Button>\n </ActionsLayout>\n </Grid>\n </section>\n )\n}\n"],"names":["IncludeDeductions","props","jsx","BaseComponent","Root","className","dictionary","onEvent","useBase","t","useTranslation","Components","useComponentContext","useComponentDictionary","useI18n","handleAdd","componentEvents","handleContinue","jsxs","Grid","styles","Flex","CoinsHandsIcon","PlusCircleIcon","ActionsLayout"],"mappings":";;;;;;;;;;;;;;AAqBO,SAASA,EAAkBC,GAAwD;AACxF,SACE,gBAAAC,EAACC,GAAA,EAAe,GAAGF,GACjB,UAAA,gBAAAC,EAACE,KAAM,GAAGH,GAAQ,UAAAA,EAAM,SAAA,CAAS,EAAA,CACnC;AAEJ;AAEA,SAASG,EAAK,EAAE,WAAAC,GAAW,YAAAC,KAAsC;AAC/D,QAAM,EAAE,SAAAC,EAAA,IAAYC,EAAA,GACd,EAAE,GAAAC,EAAA,IAAMC,EAAe,qBAAqB,GAC5CC,IAAaC,EAAA;AAEnB,EAAAC,EAAuB,uBAAuBP,CAAU,GACxDQ,EAAQ,qBAAqB;AAE7B,QAAMC,IAAY,MAAM;AACtB,IAAAR,EAAQS,EAAgB,8BAA8B;AAAA,EACxD,GAEMC,IAAiB,MAAM;AAC3B,IAAAV,EAAQS,EAAgB,6BAA6B;AAAA,EACvD;AAEA,2BACG,WAAA,EAAQ,WAAAX,GACP,UAAA,gBAAAa,EAACC,GAAA,EAAK,qBAAoB,OACxB,UAAA;AAAA,IAAA,gBAAAjB,EAACS,EAAW,SAAX,EAAmB,IAAG,MAAM,UAAAF,EAAE,WAAW,GAAE;AAAA,IAC5C,gBAAAP,EAACS,EAAW,MAAX,EAAgB,SAAQ,cACtB,UAAAF,EAAE,gCAAgC,GACrC;AAAA,IACA,gBAAAP,EAACS,EAAW,MAAX,EAAgB,QAAO,QAAO,MAAK,MACjC,UAAAF,EAAE,2BAA2B,EAAA,CAChC;AAAA,IACA,gBAAAP,EAAC,WAAA,EAAQ,WAAWkB,EAAO,qBACzB,UAAA,gBAAAF,EAACG,GAAA,EAAK,eAAc,UAAS,KAAK,IAAI,gBAAe,UAAS,YAAW,UACvE,UAAA;AAAA,MAAA,gBAAAnB,EAAC,WAAA,EAAQ,WAAWkB,EAAO,wBACzB,UAAA,gBAAAlB,EAACoB,KAAe,OAAO,IAAI,QAAQ,GAAA,CAAI,EAAA,CACzC;AAAA,MACA,gBAAApB,EAACS,EAAW,MAAX,EAAgB,QAAO,QAAQ,UAAAF,EAAE,6BAA6B,GAAE;AAAA,MACjE,gBAAAS;AAAA,QAACP,EAAW;AAAA,QAAX;AAAA,UACC,MAAK;AAAA,UACL,SAAQ;AAAA,UACR,SAASI;AAAA,UACT,WAAWK,EAAO;AAAA,UAElB,UAAA;AAAA,YAAA,gBAAAlB,EAACqB,KAAe,OAAO,IAAI,QAAQ,IAAI,WAAWH,EAAO,gBAAgB;AAAA,YACxEX,EAAE,uBAAuB;AAAA,UAAA;AAAA,QAAA;AAAA,MAAA;AAAA,IAC5B,EAAA,CACF,EAAA,CACF;AAAA,IACA,gBAAAP,EAACsB,GAAA,EACC,UAAA,gBAAAtB,EAACS,EAAW,QAAX,EAAkB,MAAK,UAAS,SAASM,GACvC,UAAAR,EAAE,aAAa,GAClB,EAAA,CACF;AAAA,EAAA,EAAA,CACF,EAAA,CACF;AAEJ;"}
@@ -0,0 +1,14 @@
1
+ const n = "_emptyStateContainer_1iboq_1", t = "_coinHandsIconContainer_1iboq_11", o = "_plusCircleIcon_1iboq_17", e = "_addDeductionButton_1iboq_21", c = {
2
+ emptyStateContainer: n,
3
+ coinHandsIconContainer: t,
4
+ plusCircleIcon: o,
5
+ addDeductionButton: e
6
+ };
7
+ export {
8
+ e as addDeductionButton,
9
+ t as coinHandsIconContainer,
10
+ c as default,
11
+ n as emptyStateContainer,
12
+ o as plusCircleIcon
13
+ };
14
+ //# sourceMappingURL=IncludeDeductions.module.scss.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IncludeDeductions.module.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
@@ -1,16 +1,16 @@
1
- import { state as D, transition as e, reduce as t } from "robot3";
2
- import { DeductionsListContextual as d, DeductionFormContextual as u } from "./DeductionsComponents.js";
1
+ import { state as D, transition as e, reduce as E } from "robot3";
2
+ import { DeductionsListContextual as c, IncludeDeductionsFormContextual as i, DeductionFormContextual as u } from "./DeductionsComponents.js";
3
3
  import { componentEvents as n } from "../../../shared/constants.js";
4
- const E = (o) => (c) => ({
5
- ...c,
4
+ const t = (o) => (d) => ({
5
+ ...d,
6
6
  ...o
7
- }), _ = {
7
+ }), I = {
8
8
  includeDeductions: D(
9
9
  e(
10
10
  n.EMPLOYEE_DEDUCTION_INCLUDE_YES,
11
11
  "addDeduction",
12
- t(
13
- E({
12
+ E(
13
+ t({
14
14
  component: u,
15
15
  currentDeductionId: null
16
16
  })
@@ -19,15 +19,15 @@ const E = (o) => (c) => ({
19
19
  e(
20
20
  n.EMPLOYEE_DEDUCTION_INCLUDE_NO,
21
21
  "done",
22
- t((o) => (o.onEvent(n.EMPLOYEE_DEDUCTION_DONE), o))
22
+ E((o) => (o.onEvent(n.EMPLOYEE_DEDUCTION_DONE), o))
23
23
  )
24
24
  ),
25
25
  viewDeductions: D(
26
26
  e(
27
27
  n.EMPLOYEE_DEDUCTION_ADD,
28
28
  "addDeduction",
29
- t(
30
- E({
29
+ E(
30
+ t({
31
31
  component: u,
32
32
  currentDeductionId: null
33
33
  })
@@ -36,20 +36,30 @@ const E = (o) => (c) => ({
36
36
  e(
37
37
  n.EMPLOYEE_DEDUCTION_EDIT,
38
38
  "editDeduction",
39
- t(
40
- (o, c) => ({
39
+ E(
40
+ (o, d) => ({
41
41
  ...o,
42
42
  component: u,
43
- currentDeductionId: c.payload.uuid
43
+ currentDeductionId: d.payload.uuid
44
44
  })
45
45
  )
46
46
  ),
47
47
  e(
48
48
  n.EMPLOYEE_DEDUCTION_DELETED,
49
49
  "viewDeductions",
50
- t(
51
- E({
52
- component: d
50
+ E(
51
+ t({
52
+ component: c
53
+ })
54
+ )
55
+ ),
56
+ e(
57
+ n.EMPLOYEE_DEDUCTION_DELETED_EMPTY,
58
+ "includeDeductions",
59
+ E(
60
+ t({
61
+ component: i,
62
+ currentDeductionId: null
53
63
  })
54
64
  )
55
65
  ),
@@ -59,9 +69,9 @@ const E = (o) => (c) => ({
59
69
  e(
60
70
  n.EMPLOYEE_DEDUCTION_CREATED,
61
71
  "viewDeductions",
62
- t(
63
- E({
64
- component: d,
72
+ E(
73
+ t({
74
+ component: c,
65
75
  currentDeductionId: null
66
76
  })
67
77
  )
@@ -69,9 +79,19 @@ const E = (o) => (c) => ({
69
79
  e(
70
80
  n.EMPLOYEE_DEDUCTION_CANCEL,
71
81
  "viewDeductions",
72
- t(
73
- E({
74
- component: d,
82
+ E(
83
+ t({
84
+ component: c,
85
+ currentDeductionId: null
86
+ })
87
+ )
88
+ ),
89
+ e(
90
+ n.EMPLOYEE_DEDUCTION_CANCEL_EMPTY,
91
+ "includeDeductions",
92
+ E(
93
+ t({
94
+ component: i,
75
95
  currentDeductionId: null
76
96
  })
77
97
  )
@@ -81,9 +101,9 @@ const E = (o) => (c) => ({
81
101
  e(
82
102
  n.EMPLOYEE_DEDUCTION_UPDATED,
83
103
  "viewDeductions",
84
- t(
85
- E({
86
- component: d,
104
+ E(
105
+ t({
106
+ component: c,
87
107
  currentDeductionId: null
88
108
  })
89
109
  )
@@ -91,9 +111,9 @@ const E = (o) => (c) => ({
91
111
  e(
92
112
  n.EMPLOYEE_DEDUCTION_CANCEL,
93
113
  "viewDeductions",
94
- t(
95
- E({
96
- component: d,
114
+ E(
115
+ t({
116
+ component: c,
97
117
  currentDeductionId: null
98
118
  })
99
119
  )
@@ -102,6 +122,6 @@ const E = (o) => (c) => ({
102
122
  done: D()
103
123
  };
104
124
  export {
105
- _ as deductionsStateMachine
125
+ I as deductionsStateMachine
106
126
  };
107
127
  //# sourceMappingURL=stateMachine.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"stateMachine.js","sources":["../../../../src/components/Employee/Deductions/stateMachine.ts"],"sourcesContent":["import { state, transition, reduce, state as final } from 'robot3'\nimport type { DeductionsContextInterface, EventPayloads } from './DeductionsComponents'\nimport { DeductionsListContextual, DeductionFormContextual } from './DeductionsComponents'\nimport { componentEvents } from '@/shared/constants'\nimport type { MachineEventType, MachineTransition } from '@/types/Helpers'\n\n// Helper function to create consistent reducers\nconst createReducer =\n (props: Partial<DeductionsContextInterface>) => (ctx: DeductionsContextInterface) => ({\n ...ctx,\n ...props,\n })\n\nexport const deductionsStateMachine = {\n includeDeductions: state<MachineTransition>(\n transition(\n componentEvents.EMPLOYEE_DEDUCTION_INCLUDE_YES,\n 'addDeduction',\n reduce(\n createReducer({\n component: DeductionFormContextual,\n currentDeductionId: null,\n }),\n ),\n ),\n transition(\n componentEvents.EMPLOYEE_DEDUCTION_INCLUDE_NO,\n 'done',\n reduce((ctx: DeductionsContextInterface) => {\n // Emit the completion event to notify parent onboarding flow\n ctx.onEvent(componentEvents.EMPLOYEE_DEDUCTION_DONE)\n return ctx\n }),\n ),\n ),\n viewDeductions: state<MachineTransition>(\n transition(\n componentEvents.EMPLOYEE_DEDUCTION_ADD,\n 'addDeduction',\n reduce(\n createReducer({\n component: DeductionFormContextual,\n currentDeductionId: null,\n }),\n ),\n ),\n transition(\n componentEvents.EMPLOYEE_DEDUCTION_EDIT,\n 'editDeduction',\n reduce(\n (\n ctx: DeductionsContextInterface,\n ev: MachineEventType<EventPayloads, typeof componentEvents.EMPLOYEE_DEDUCTION_EDIT>,\n ) => ({\n ...ctx,\n component: DeductionFormContextual,\n currentDeductionId: ev.payload.uuid,\n }),\n ),\n ),\n transition(\n componentEvents.EMPLOYEE_DEDUCTION_DELETED,\n 'viewDeductions',\n reduce(\n createReducer({\n component: DeductionsListContextual,\n }),\n ),\n ),\n transition(componentEvents.EMPLOYEE_DEDUCTION_DONE, 'done'),\n ),\n addDeduction: state<MachineTransition>(\n transition(\n componentEvents.EMPLOYEE_DEDUCTION_CREATED,\n 'viewDeductions',\n reduce(\n createReducer({\n component: DeductionsListContextual,\n currentDeductionId: null,\n }),\n ),\n ),\n transition(\n componentEvents.EMPLOYEE_DEDUCTION_CANCEL,\n 'viewDeductions',\n reduce(\n createReducer({\n component: DeductionsListContextual,\n currentDeductionId: null,\n }),\n ),\n ),\n ),\n editDeduction: state<MachineTransition>(\n transition(\n componentEvents.EMPLOYEE_DEDUCTION_UPDATED,\n 'viewDeductions',\n reduce(\n createReducer({\n component: DeductionsListContextual,\n currentDeductionId: null,\n }),\n ),\n ),\n transition(\n componentEvents.EMPLOYEE_DEDUCTION_CANCEL,\n 'viewDeductions',\n reduce(\n createReducer({\n component: DeductionsListContextual,\n currentDeductionId: null,\n }),\n ),\n ),\n ),\n done: final(),\n}\n"],"names":["createReducer","props","ctx","deductionsStateMachine","state","transition","componentEvents","reduce","DeductionFormContextual","ev","DeductionsListContextual","final"],"mappings":";;;AAOA,MAAMA,IACJ,CAACC,MAA+C,CAACC,OAAqC;AAAA,EACpF,GAAGA;AAAA,EACH,GAAGD;AACL,IAEWE,IAAyB;AAAA,EACpC,mBAAmBC;AAAA,IACjBC;AAAA,MACEC,EAAgB;AAAA,MAChB;AAAA,MACAC;AAAA,QACEP,EAAc;AAAA,UACZ,WAAWQ;AAAA,UACX,oBAAoB;AAAA,QAAA,CACrB;AAAA,MAAA;AAAA,IACH;AAAA,IAEFH;AAAA,MACEC,EAAgB;AAAA,MAChB;AAAA,MACAC,EAAO,CAACL,OAENA,EAAI,QAAQI,EAAgB,uBAAuB,GAC5CJ,EACR;AAAA,IAAA;AAAA,EACH;AAAA,EAEF,gBAAgBE;AAAA,IACdC;AAAA,MACEC,EAAgB;AAAA,MAChB;AAAA,MACAC;AAAA,QACEP,EAAc;AAAA,UACZ,WAAWQ;AAAA,UACX,oBAAoB;AAAA,QAAA,CACrB;AAAA,MAAA;AAAA,IACH;AAAA,IAEFH;AAAA,MACEC,EAAgB;AAAA,MAChB;AAAA,MACAC;AAAA,QACE,CACEL,GACAO,OACI;AAAA,UACJ,GAAGP;AAAA,UACH,WAAWM;AAAA,UACX,oBAAoBC,EAAG,QAAQ;AAAA,QAAA;AAAA,MACjC;AAAA,IACF;AAAA,IAEFJ;AAAA,MACEC,EAAgB;AAAA,MAChB;AAAA,MACAC;AAAA,QACEP,EAAc;AAAA,UACZ,WAAWU;AAAA,QAAA,CACZ;AAAA,MAAA;AAAA,IACH;AAAA,IAEFL,EAAWC,EAAgB,yBAAyB,MAAM;AAAA,EAAA;AAAA,EAE5D,cAAcF;AAAA,IACZC;AAAA,MACEC,EAAgB;AAAA,MAChB;AAAA,MACAC;AAAA,QACEP,EAAc;AAAA,UACZ,WAAWU;AAAA,UACX,oBAAoB;AAAA,QAAA,CACrB;AAAA,MAAA;AAAA,IACH;AAAA,IAEFL;AAAA,MACEC,EAAgB;AAAA,MAChB;AAAA,MACAC;AAAA,QACEP,EAAc;AAAA,UACZ,WAAWU;AAAA,UACX,oBAAoB;AAAA,QAAA,CACrB;AAAA,MAAA;AAAA,IACH;AAAA,EACF;AAAA,EAEF,eAAeN;AAAA,IACbC;AAAA,MACEC,EAAgB;AAAA,MAChB;AAAA,MACAC;AAAA,QACEP,EAAc;AAAA,UACZ,WAAWU;AAAA,UACX,oBAAoB;AAAA,QAAA,CACrB;AAAA,MAAA;AAAA,IACH;AAAA,IAEFL;AAAA,MACEC,EAAgB;AAAA,MAChB;AAAA,MACAC;AAAA,QACEP,EAAc;AAAA,UACZ,WAAWU;AAAA,UACX,oBAAoB;AAAA,QAAA,CACrB;AAAA,MAAA;AAAA,IACH;AAAA,EACF;AAAA,EAEF,MAAMC,EAAA;AACR;"}
1
+ {"version":3,"file":"stateMachine.js","sources":["../../../../src/components/Employee/Deductions/stateMachine.ts"],"sourcesContent":["import { state, transition, reduce, state as final } from 'robot3'\nimport type { DeductionsContextInterface, EventPayloads } from './DeductionsComponents'\nimport {\n IncludeDeductionsFormContextual,\n DeductionsListContextual,\n DeductionFormContextual,\n} from './DeductionsComponents'\nimport { componentEvents } from '@/shared/constants'\nimport type { MachineEventType, MachineTransition } from '@/types/Helpers'\n\n// Helper function to create consistent reducers\nconst createReducer =\n (props: Partial<DeductionsContextInterface>) => (ctx: DeductionsContextInterface) => ({\n ...ctx,\n ...props,\n })\n\nexport const deductionsStateMachine = {\n includeDeductions: state<MachineTransition>(\n transition(\n componentEvents.EMPLOYEE_DEDUCTION_INCLUDE_YES,\n 'addDeduction',\n reduce(\n createReducer({\n component: DeductionFormContextual,\n currentDeductionId: null,\n }),\n ),\n ),\n transition(\n componentEvents.EMPLOYEE_DEDUCTION_INCLUDE_NO,\n 'done',\n reduce((ctx: DeductionsContextInterface) => {\n // Emit the completion event to notify parent onboarding flow\n ctx.onEvent(componentEvents.EMPLOYEE_DEDUCTION_DONE)\n return ctx\n }),\n ),\n ),\n viewDeductions: state<MachineTransition>(\n transition(\n componentEvents.EMPLOYEE_DEDUCTION_ADD,\n 'addDeduction',\n reduce(\n createReducer({\n component: DeductionFormContextual,\n currentDeductionId: null,\n }),\n ),\n ),\n transition(\n componentEvents.EMPLOYEE_DEDUCTION_EDIT,\n 'editDeduction',\n reduce(\n (\n ctx: DeductionsContextInterface,\n ev: MachineEventType<EventPayloads, typeof componentEvents.EMPLOYEE_DEDUCTION_EDIT>,\n ) => ({\n ...ctx,\n component: DeductionFormContextual,\n currentDeductionId: ev.payload.uuid,\n }),\n ),\n ),\n transition(\n componentEvents.EMPLOYEE_DEDUCTION_DELETED,\n 'viewDeductions',\n reduce(\n createReducer({\n component: DeductionsListContextual,\n }),\n ),\n ),\n transition(\n componentEvents.EMPLOYEE_DEDUCTION_DELETED_EMPTY,\n 'includeDeductions',\n reduce(\n createReducer({\n component: IncludeDeductionsFormContextual,\n currentDeductionId: null,\n }),\n ),\n ),\n transition(componentEvents.EMPLOYEE_DEDUCTION_DONE, 'done'),\n ),\n addDeduction: state<MachineTransition>(\n transition(\n componentEvents.EMPLOYEE_DEDUCTION_CREATED,\n 'viewDeductions',\n reduce(\n createReducer({\n component: DeductionsListContextual,\n currentDeductionId: null,\n }),\n ),\n ),\n transition(\n componentEvents.EMPLOYEE_DEDUCTION_CANCEL,\n 'viewDeductions',\n reduce(\n createReducer({\n component: DeductionsListContextual,\n currentDeductionId: null,\n }),\n ),\n ),\n transition(\n componentEvents.EMPLOYEE_DEDUCTION_CANCEL_EMPTY,\n 'includeDeductions',\n reduce(\n createReducer({\n component: IncludeDeductionsFormContextual,\n currentDeductionId: null,\n }),\n ),\n ),\n ),\n editDeduction: state<MachineTransition>(\n transition(\n componentEvents.EMPLOYEE_DEDUCTION_UPDATED,\n 'viewDeductions',\n reduce(\n createReducer({\n component: DeductionsListContextual,\n currentDeductionId: null,\n }),\n ),\n ),\n transition(\n componentEvents.EMPLOYEE_DEDUCTION_CANCEL,\n 'viewDeductions',\n reduce(\n createReducer({\n component: DeductionsListContextual,\n currentDeductionId: null,\n }),\n ),\n ),\n ),\n done: final(),\n}\n"],"names":["createReducer","props","ctx","deductionsStateMachine","state","transition","componentEvents","reduce","DeductionFormContextual","ev","DeductionsListContextual","IncludeDeductionsFormContextual","final"],"mappings":";;;AAWA,MAAMA,IACJ,CAACC,MAA+C,CAACC,OAAqC;AAAA,EACpF,GAAGA;AAAA,EACH,GAAGD;AACL,IAEWE,IAAyB;AAAA,EACpC,mBAAmBC;AAAA,IACjBC;AAAA,MACEC,EAAgB;AAAA,MAChB;AAAA,MACAC;AAAA,QACEP,EAAc;AAAA,UACZ,WAAWQ;AAAA,UACX,oBAAoB;AAAA,QAAA,CACrB;AAAA,MAAA;AAAA,IACH;AAAA,IAEFH;AAAA,MACEC,EAAgB;AAAA,MAChB;AAAA,MACAC,EAAO,CAACL,OAENA,EAAI,QAAQI,EAAgB,uBAAuB,GAC5CJ,EACR;AAAA,IAAA;AAAA,EACH;AAAA,EAEF,gBAAgBE;AAAA,IACdC;AAAA,MACEC,EAAgB;AAAA,MAChB;AAAA,MACAC;AAAA,QACEP,EAAc;AAAA,UACZ,WAAWQ;AAAA,UACX,oBAAoB;AAAA,QAAA,CACrB;AAAA,MAAA;AAAA,IACH;AAAA,IAEFH;AAAA,MACEC,EAAgB;AAAA,MAChB;AAAA,MACAC;AAAA,QACE,CACEL,GACAO,OACI;AAAA,UACJ,GAAGP;AAAA,UACH,WAAWM;AAAA,UACX,oBAAoBC,EAAG,QAAQ;AAAA,QAAA;AAAA,MACjC;AAAA,IACF;AAAA,IAEFJ;AAAA,MACEC,EAAgB;AAAA,MAChB;AAAA,MACAC;AAAA,QACEP,EAAc;AAAA,UACZ,WAAWU;AAAA,QAAA,CACZ;AAAA,MAAA;AAAA,IACH;AAAA,IAEFL;AAAA,MACEC,EAAgB;AAAA,MAChB;AAAA,MACAC;AAAA,QACEP,EAAc;AAAA,UACZ,WAAWW;AAAA,UACX,oBAAoB;AAAA,QAAA,CACrB;AAAA,MAAA;AAAA,IACH;AAAA,IAEFN,EAAWC,EAAgB,yBAAyB,MAAM;AAAA,EAAA;AAAA,EAE5D,cAAcF;AAAA,IACZC;AAAA,MACEC,EAAgB;AAAA,MAChB;AAAA,MACAC;AAAA,QACEP,EAAc;AAAA,UACZ,WAAWU;AAAA,UACX,oBAAoB;AAAA,QAAA,CACrB;AAAA,MAAA;AAAA,IACH;AAAA,IAEFL;AAAA,MACEC,EAAgB;AAAA,MAChB;AAAA,MACAC;AAAA,QACEP,EAAc;AAAA,UACZ,WAAWU;AAAA,UACX,oBAAoB;AAAA,QAAA,CACrB;AAAA,MAAA;AAAA,IACH;AAAA,IAEFL;AAAA,MACEC,EAAgB;AAAA,MAChB;AAAA,MACAC;AAAA,QACEP,EAAc;AAAA,UACZ,WAAWW;AAAA,UACX,oBAAoB;AAAA,QAAA,CACrB;AAAA,MAAA;AAAA,IACH;AAAA,EACF;AAAA,EAEF,eAAeP;AAAA,IACbC;AAAA,MACEC,EAAgB;AAAA,MAChB;AAAA,MACAC;AAAA,QACEP,EAAc;AAAA,UACZ,WAAWU;AAAA,UACX,oBAAoB;AAAA,QAAA,CACrB;AAAA,MAAA;AAAA,IACH;AAAA,IAEFL;AAAA,MACEC,EAAgB;AAAA,MAChB;AAAA,MACAC;AAAA,QACEP,EAAc;AAAA,UACZ,WAAWU;AAAA,UACX,oBAAoB;AAAA,QAAA,CACrB;AAAA,MAAA;AAAA,IACH;AAAA,EACF;AAAA,EAEF,MAAME,EAAA;AACR;"}
@@ -1,13 +1,16 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
2
  import { useTranslation as r } from "react-i18next";
3
- import { useDocumentList as s } from "./useDocumentList.js";
4
- import { ActionsLayout as m } from "../../../Common/ActionsLayout/ActionsLayout.js";
3
+ import { useDocumentList as m } from "./useDocumentList.js";
4
+ import "../../../../shared/constants.js";
5
+ import "classnames";
6
+ import { ActionsLayout as s } from "../../../Common/ActionsLayout/ActionsLayout.js";
5
7
  import { useComponentContext as c } from "../../../../contexts/ComponentAdapter/useComponentContext.js";
6
- function d() {
7
- const { t: n } = r("Employee.DocumentSigner"), { handleContinue: t, hasSignedAllForms: e } = s(), i = c();
8
- return /* @__PURE__ */ o(m, { children: /* @__PURE__ */ o(i.Button, { onClick: t, isLoading: !1, isDisabled: !e, children: n("continueCta") }) });
8
+ import "react";
9
+ function g() {
10
+ const { t } = r("Employee.DocumentSigner"), { handleContinue: n, hasSignedAllForms: i } = m(), e = c();
11
+ return /* @__PURE__ */ o(s, { children: /* @__PURE__ */ o(e.Button, { onClick: n, isLoading: !1, isDisabled: !i, children: t("continueCta") }) });
9
12
  }
10
13
  export {
11
- d as Actions
14
+ g as Actions
12
15
  };
13
16
  //# sourceMappingURL=Actions.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Actions.js","sources":["../../../../../src/components/Employee/DocumentSigner/DocumentList/Actions.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport { useDocumentList } from './useDocumentList'\nimport { ActionsLayout } from '@/components/Common'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\n\nexport function Actions() {\n const { t } = useTranslation('Employee.DocumentSigner')\n const { handleContinue, hasSignedAllForms } = useDocumentList()\n const Components = useComponentContext()\n\n return (\n <ActionsLayout>\n <Components.Button onClick={handleContinue} isLoading={false} isDisabled={!hasSignedAllForms}>\n {t('continueCta')}\n </Components.Button>\n </ActionsLayout>\n )\n}\n"],"names":["Actions","t","useTranslation","handleContinue","hasSignedAllForms","useDocumentList","Components","useComponentContext","ActionsLayout","jsx"],"mappings":";;;;;AAKO,SAASA,IAAU;AACxB,QAAM,EAAE,GAAAC,EAAA,IAAMC,EAAe,yBAAyB,GAChD,EAAE,gBAAAC,GAAgB,mBAAAC,EAAA,IAAsBC,EAAA,GACxCC,IAAaC,EAAA;AAEnB,2BACGC,GAAA,EACC,UAAA,gBAAAC,EAACH,EAAW,QAAX,EAAkB,SAASH,GAAgB,WAAW,IAAO,YAAY,CAACC,GACxE,UAAAH,EAAE,aAAa,GAClB,GACF;AAEJ;"}
1
+ {"version":3,"file":"Actions.js","sources":["../../../../../src/components/Employee/DocumentSigner/DocumentList/Actions.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport { useDocumentList } from './useDocumentList'\nimport { ActionsLayout } from '@/components/Common'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\n\nexport function Actions() {\n const { t } = useTranslation('Employee.DocumentSigner')\n const { handleContinue, hasSignedAllForms } = useDocumentList()\n const Components = useComponentContext()\n\n return (\n <ActionsLayout>\n <Components.Button onClick={handleContinue} isLoading={false} isDisabled={!hasSignedAllForms}>\n {t('continueCta')}\n </Components.Button>\n </ActionsLayout>\n )\n}\n"],"names":["Actions","useTranslation","handleContinue","hasSignedAllForms","useDocumentList","Components","useComponentContext","ActionsLayout","jsx"],"mappings":";;;;;;;;AAKO,SAASA,IAAU;AACxB,QAAM,EAAE,EAAA,IAAMC,EAAe,yBAAyB,GAChD,EAAE,gBAAAC,GAAgB,mBAAAC,EAAA,IAAsBC,EAAA,GACxCC,IAAaC,EAAA;AAEnB,2BACGC,GAAA,EACC,UAAA,gBAAAC,EAACH,EAAW,QAAX,EAAkB,SAASH,GAAgB,WAAW,IAAO,YAAY,CAACC,GACxE,UAAA,EAAE,aAAa,GAClB,GACF;AAEJ;"}
@@ -1,4 +1,4 @@
1
- import { jsx as o, jsxs as p } from "react/jsx-runtime";
1
+ import { jsx as o, jsxs as l } from "react/jsx-runtime";
2
2
  import { useEmployeeFormsListSuspense as f } from "@gusto/embedded-api/react-query/employeeFormsList";
3
3
  import { Head as d } from "./Head.js";
4
4
  import { List as E } from "./List.js";
@@ -9,27 +9,31 @@ import { useBase as L } from "../../../Base/useBase.js";
9
9
  import { useI18n as S } from "../../../../i18n/I18n.js";
10
10
  import { componentEvents as m } from "../../../../shared/constants.js";
11
11
  import { Flex as g } from "../../../Common/Flex/Flex.js";
12
- function A(e) {
12
+ import "classnames";
13
+ import "react-i18next";
14
+ import "../../../../contexts/ComponentAdapter/useComponentContext.js";
15
+ import "react";
16
+ function G(e) {
13
17
  return /* @__PURE__ */ o(F, { ...e, children: /* @__PURE__ */ o(O, { ...e }) });
14
18
  }
15
- function O({ employeeId: e, className: s, children: n }) {
19
+ function O({ employeeId: e, className: s, children: t }) {
16
20
  S("Employee.DocumentSigner");
17
- const { onEvent: t } = L(), { data: u, error: c } = f({ employeeId: e }), i = u.formList, l = i.every((r) => !r.requiresSigning);
21
+ const { onEvent: n } = L(), { data: u, error: c } = f({ employeeId: e }), i = u.formList, p = i.every((r) => !r.requiresSigning);
18
22
  return /* @__PURE__ */ o("section", { className: s, children: /* @__PURE__ */ o(
19
23
  h,
20
24
  {
21
25
  value: {
22
26
  employeeForms: i,
23
- hasSignedAllForms: l,
27
+ hasSignedAllForms: p,
24
28
  handleContinue: () => {
25
- t(m.EMPLOYEE_FORMS_DONE);
29
+ n(m.EMPLOYEE_FORMS_DONE);
26
30
  },
27
31
  handleRequestFormToSign: (r) => {
28
- t(m.EMPLOYEE_VIEW_FORM_TO_SIGN, { uuid: r.uuid });
32
+ n(m.EMPLOYEE_VIEW_FORM_TO_SIGN, { uuid: r.uuid });
29
33
  },
30
34
  documentListError: c
31
35
  },
32
- children: n || /* @__PURE__ */ p(g, { flexDirection: "column", children: [
36
+ children: t || /* @__PURE__ */ l(g, { flexDirection: "column", children: [
33
37
  /* @__PURE__ */ o(d, {}),
34
38
  /* @__PURE__ */ o(E, {}),
35
39
  /* @__PURE__ */ o(a, {})
@@ -38,6 +42,6 @@ function O({ employeeId: e, className: s, children: n }) {
38
42
  ) });
39
43
  }
40
44
  export {
41
- A as DocumentList
45
+ G as DocumentList
42
46
  };
43
47
  //# sourceMappingURL=DocumentList.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DocumentList.js","sources":["../../../../../src/components/Employee/DocumentSigner/DocumentList/DocumentList.tsx"],"sourcesContent":["import { useEmployeeFormsListSuspense } from '@gusto/embedded-api/react-query/employeeFormsList'\nimport { type Form } from '@gusto/embedded-api/models/components/form'\nimport { Head } from './Head'\nimport { List } from './List'\nimport { Actions } from './Actions'\nimport { DocumentListProvider } from './useDocumentList'\nimport {\n BaseComponent,\n type BaseComponentInterface,\n type CommonComponentInterface,\n} from '@/components/Base/Base'\nimport { useBase } from '@/components/Base/useBase'\nimport { useI18n } from '@/i18n'\nimport { componentEvents } from '@/shared/constants'\nimport { Flex } from '@/components/Common'\n\ninterface DocumentListProps extends CommonComponentInterface {\n employeeId: string\n}\n\nexport function DocumentList(props: DocumentListProps & BaseComponentInterface) {\n return (\n <BaseComponent {...props}>\n <Root {...props} />\n </BaseComponent>\n )\n}\n\nfunction Root({ employeeId, className, children }: DocumentListProps) {\n useI18n('Employee.DocumentSigner')\n const { onEvent } = useBase()\n\n const { data, error: documentListError } = useEmployeeFormsListSuspense({ employeeId })\n const employeeForms = data.formList!\n\n const hasSignedAllForms = employeeForms.every(employeeForm => !employeeForm.requiresSigning)\n\n const handleRequestFormToSign = (data: Form) => {\n onEvent(componentEvents.EMPLOYEE_VIEW_FORM_TO_SIGN, { uuid: data.uuid })\n }\n\n const handleContinue = () => {\n onEvent(componentEvents.EMPLOYEE_FORMS_DONE)\n }\n\n return (\n <section className={className}>\n <DocumentListProvider\n value={{\n employeeForms,\n hasSignedAllForms,\n handleContinue,\n handleRequestFormToSign,\n documentListError,\n }}\n >\n {children ? (\n children\n ) : (\n <Flex flexDirection=\"column\">\n <Head />\n <List />\n <Actions />\n </Flex>\n )}\n </DocumentListProvider>\n </section>\n )\n}\n"],"names":["DocumentList","props","jsx","BaseComponent","Root","employeeId","className","children","useI18n","onEvent","useBase","data","documentListError","useEmployeeFormsListSuspense","employeeForms","hasSignedAllForms","employeeForm","DocumentListProvider","componentEvents","jsxs","Flex","Head","List","Actions"],"mappings":";;;;;;;;;;;AAoBO,SAASA,EAAaC,GAAmD;AAC9E,SACE,gBAAAC,EAACC,KAAe,GAAGF,GACjB,4BAACG,GAAA,EAAM,GAAGH,GAAO,EAAA,CACnB;AAEJ;AAEA,SAASG,EAAK,EAAE,YAAAC,GAAY,WAAAC,GAAW,UAAAC,KAA+B;AACpE,EAAAC,EAAQ,yBAAyB;AACjC,QAAM,EAAE,SAAAC,EAAA,IAAYC,EAAA,GAEd,EAAE,MAAAC,GAAM,OAAOC,EAAA,IAAsBC,EAA6B,EAAE,YAAAR,GAAY,GAChFS,IAAgBH,EAAK,UAErBI,IAAoBD,EAAc,MAAM,CAAAE,MAAgB,CAACA,EAAa,eAAe;AAU3F,SACE,gBAAAd,EAAC,aAAQ,WAAAI,GACP,UAAA,gBAAAJ;AAAA,IAACe;AAAA,IAAA;AAAA,MACC,OAAO;AAAA,QACL,eAAAH;AAAA,QACA,mBAAAC;AAAA,QACA,gBAVe,MAAM;AAC3B,UAAAN,EAAQS,EAAgB,mBAAmB;AAAA,QAC7C;AAAA,QASQ,yBAfwB,CAACP,MAAe;AAC9C,UAAAF,EAAQS,EAAgB,4BAA4B,EAAE,MAAMP,EAAK,MAAM;AAAA,QACzE;AAAA,QAcQ,mBAAAC;AAAA,MAAA;AAAA,MAGD,UAAAL,KAGC,gBAAAY,EAACC,GAAA,EAAK,eAAc,UAClB,UAAA;AAAA,QAAA,gBAAAlB,EAACmB,GAAA,EAAK;AAAA,0BACLC,GAAA,EAAK;AAAA,0BACLC,GAAA,CAAA,CAAQ;AAAA,MAAA,EAAA,CACX;AAAA,IAAA;AAAA,EAAA,GAGN;AAEJ;"}
1
+ {"version":3,"file":"DocumentList.js","sources":["../../../../../src/components/Employee/DocumentSigner/DocumentList/DocumentList.tsx"],"sourcesContent":["import { useEmployeeFormsListSuspense } from '@gusto/embedded-api/react-query/employeeFormsList'\nimport { type Form } from '@gusto/embedded-api/models/components/form'\nimport { Head } from './Head'\nimport { List } from './List'\nimport { Actions } from './Actions'\nimport { DocumentListProvider } from './useDocumentList'\nimport {\n BaseComponent,\n type BaseComponentInterface,\n type CommonComponentInterface,\n} from '@/components/Base/Base'\nimport { useBase } from '@/components/Base/useBase'\nimport { useI18n } from '@/i18n'\nimport { componentEvents } from '@/shared/constants'\nimport { Flex } from '@/components/Common'\n\ninterface DocumentListProps extends CommonComponentInterface {\n employeeId: string\n}\n\nexport function DocumentList(props: DocumentListProps & BaseComponentInterface) {\n return (\n <BaseComponent {...props}>\n <Root {...props} />\n </BaseComponent>\n )\n}\n\nfunction Root({ employeeId, className, children }: DocumentListProps) {\n useI18n('Employee.DocumentSigner')\n const { onEvent } = useBase()\n\n const { data, error: documentListError } = useEmployeeFormsListSuspense({ employeeId })\n const employeeForms = data.formList!\n\n const hasSignedAllForms = employeeForms.every(employeeForm => !employeeForm.requiresSigning)\n\n const handleRequestFormToSign = (data: Form) => {\n onEvent(componentEvents.EMPLOYEE_VIEW_FORM_TO_SIGN, { uuid: data.uuid })\n }\n\n const handleContinue = () => {\n onEvent(componentEvents.EMPLOYEE_FORMS_DONE)\n }\n\n return (\n <section className={className}>\n <DocumentListProvider\n value={{\n employeeForms,\n hasSignedAllForms,\n handleContinue,\n handleRequestFormToSign,\n documentListError,\n }}\n >\n {children ? (\n children\n ) : (\n <Flex flexDirection=\"column\">\n <Head />\n <List />\n <Actions />\n </Flex>\n )}\n </DocumentListProvider>\n </section>\n )\n}\n"],"names":["DocumentList","props","jsx","BaseComponent","Root","employeeId","className","children","useI18n","onEvent","useBase","data","documentListError","useEmployeeFormsListSuspense","employeeForms","hasSignedAllForms","employeeForm","DocumentListProvider","componentEvents","jsxs","Flex","Head","List","Actions"],"mappings":";;;;;;;;;;;;;;;AAoBO,SAASA,EAAaC,GAAmD;AAC9E,SACE,gBAAAC,EAACC,KAAe,GAAGF,GACjB,4BAACG,GAAA,EAAM,GAAGH,GAAO,EAAA,CACnB;AAEJ;AAEA,SAASG,EAAK,EAAE,YAAAC,GAAY,WAAAC,GAAW,UAAAC,KAA+B;AACpE,EAAAC,EAAQ,yBAAyB;AACjC,QAAM,EAAE,SAAAC,EAAA,IAAYC,EAAA,GAEd,EAAE,MAAAC,GAAM,OAAOC,EAAA,IAAsBC,EAA6B,EAAE,YAAAR,GAAY,GAChFS,IAAgBH,EAAK,UAErBI,IAAoBD,EAAc,MAAM,CAAAE,MAAgB,CAACA,EAAa,eAAe;AAU3F,SACE,gBAAAd,EAAC,aAAQ,WAAAI,GACP,UAAA,gBAAAJ;AAAA,IAACe;AAAA,IAAA;AAAA,MACC,OAAO;AAAA,QACL,eAAAH;AAAA,QACA,mBAAAC;AAAA,QACA,gBAVe,MAAM;AAC3B,UAAAN,EAAQS,EAAgB,mBAAmB;AAAA,QAC7C;AAAA,QASQ,yBAfwB,CAACP,MAAe;AAC9C,UAAAF,EAAQS,EAAgB,4BAA4B,EAAE,MAAMP,EAAK,MAAM;AAAA,QACzE;AAAA,QAcQ,mBAAAC;AAAA,MAAA;AAAA,MAGD,UAAAL,KAGC,gBAAAY,EAACC,GAAA,EAAK,eAAc,UAClB,UAAA;AAAA,QAAA,gBAAAlB,EAACmB,GAAA,EAAK;AAAA,0BACLC,GAAA,EAAK;AAAA,0BACLC,GAAA,CAAA,CAAQ;AAAA,MAAA,EAAA,CACX;AAAA,IAAA;AAAA,EAAA,GAGN;AAEJ;"}
@@ -2,8 +2,12 @@ import { jsx as o } from "react/jsx-runtime";
2
2
  import { useTranslation as m } from "react-i18next";
3
3
  import { useDocumentList as s } from "./useDocumentList.js";
4
4
  import { Flex as l } from "../../../Common/Flex/Flex.js";
5
+ import "classnames";
6
+ import "../../../../shared/constants.js";
7
+ import "../../../../contexts/ComponentAdapter/useComponentContext.js";
8
+ import "react";
5
9
  import { DocumentList as u } from "../../../Common/DocumentList/DocumentList.js";
6
- function L() {
10
+ function D() {
7
11
  const { employeeForms: i, handleRequestFormToSign: n, documentListError: r } = s(), { t: e } = m("Employee.DocumentSigner");
8
12
  return /* @__PURE__ */ o("section", { style: { width: "100%" }, children: /* @__PURE__ */ o(l, { flexDirection: "column", gap: 32, children: /* @__PURE__ */ o(
9
13
  u,
@@ -32,6 +36,6 @@ function L() {
32
36
  ) }) });
33
37
  }
34
38
  export {
35
- L as List
39
+ D as List
36
40
  };
37
41
  //# sourceMappingURL=List.js.map