@gusto/embedded-react-sdk 0.26.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 (360) hide show
  1. package/CHANGELOG.md +70 -0
  2. package/dist/assets/icons/plus-circle.svg.js +5 -5
  3. package/dist/assets/icons/plus-circle.svg.js.map +1 -1
  4. package/dist/components/Base/Base.js +13 -12
  5. package/dist/components/Base/Base.js.map +1 -1
  6. package/dist/components/Common/DocumentList/DocumentList.js +23 -23
  7. package/dist/components/Common/DocumentList/DocumentList.js.map +1 -1
  8. package/dist/components/Common/DocumentList/DocumentList.module.scss.js +6 -10
  9. package/dist/components/Common/DocumentList/DocumentList.module.scss.js.map +1 -1
  10. package/dist/components/Common/DocumentViewer/DocumentViewer.module.scss.js +12 -12
  11. package/dist/components/Common/InlineSpinner/InlineSpinner.module.scss.js +1 -1
  12. package/dist/components/Common/InternalError/InternalError.module.scss.js +4 -4
  13. package/dist/components/Common/ReorderableList/ReorderableList.module.scss.js +8 -8
  14. package/dist/components/Common/RequirementsList/RequirementsList.module.scss.js +1 -1
  15. package/dist/components/Common/SignatureForm/SignatureForm.js +12 -10
  16. package/dist/components/Common/SignatureForm/SignatureForm.js.map +1 -1
  17. package/dist/components/Common/SignatureForm/SignatureFormActions.js +3 -2
  18. package/dist/components/Common/SignatureForm/SignatureFormActions.js.map +1 -1
  19. package/dist/components/Common/SignatureForm/SignatureFormFields.js +7 -6
  20. package/dist/components/Common/SignatureForm/SignatureFormFields.js.map +1 -1
  21. package/dist/components/Common/UI/Alert/Alert.module.scss.js +9 -9
  22. package/dist/components/Common/UI/Banner/Banner.module.scss.js +1 -1
  23. package/dist/components/Common/UI/Button/Button.module.scss.js +1 -1
  24. package/dist/components/Common/UI/CalendarPreview/CalendarPreview.module.scss.js +4 -4
  25. package/dist/components/Common/UI/Card/Card.module.scss.js +1 -1
  26. package/dist/components/Common/UI/Checkbox/Checkbox.module.scss.js +1 -1
  27. package/dist/components/Common/UI/ComboBox/ComboBox.module.scss.js +3 -3
  28. package/dist/components/Common/UI/DatePicker/DatePicker.module.scss.js +4 -4
  29. package/dist/components/Common/UI/DescriptionList/DescriptionList.module.scss.js +1 -1
  30. package/dist/components/Common/UI/Dialog/Dialog.module.scss.js +2 -2
  31. package/dist/components/Common/UI/FileInput/FileInput.module.scss.js +26 -26
  32. package/dist/components/Common/UI/Input/Input.module.scss.js +8 -8
  33. package/dist/components/Common/UI/Modal/Modal.module.scss.js +12 -12
  34. package/dist/components/Common/UI/Radio/Radio.module.scss.js +6 -6
  35. package/dist/components/Common/UI/Select/Select.module.scss.js +4 -4
  36. package/dist/components/Common/UI/Table/Table.js +1 -1
  37. package/dist/components/Common/UI/Table/Table.js.map +1 -1
  38. package/dist/components/Common/UI/Table/Table.module.scss.js +1 -1
  39. package/dist/components/Common/UI/Tabs/Tabs.module.scss.js +1 -1
  40. package/dist/components/Common/UI/Text/Text.module.scss.js +17 -15
  41. package/dist/components/Common/UI/Text/Text.module.scss.js.map +1 -1
  42. package/dist/components/Common/UI/TextArea/TextArea.module.scss.js +4 -4
  43. package/dist/components/Company/AssignSignatory/AssignSignatory.js +3 -2
  44. package/dist/components/Company/AssignSignatory/AssignSignatory.js.map +1 -1
  45. package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js +4 -3
  46. package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js.map +1 -1
  47. package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.js +3 -2
  48. package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.js.map +1 -1
  49. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatory.js +1 -1
  50. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.js +12 -12
  51. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js +4 -3
  52. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js.map +1 -1
  53. package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.js +3 -2
  54. package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.js.map +1 -1
  55. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatory.js +1 -1
  56. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatoryForm.js +1 -1
  57. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js +4 -3
  58. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js.map +1 -1
  59. package/dist/components/Company/AssignSignatory/TitleSelect.js +4 -3
  60. package/dist/components/Company/AssignSignatory/TitleSelect.js.map +1 -1
  61. package/dist/components/Company/AssignSignatory/useAssignSignatory.js +6 -5
  62. package/dist/components/Company/AssignSignatory/useAssignSignatory.js.map +1 -1
  63. package/dist/components/Company/BankAccount/BankAccountForm/Actions.js +9 -8
  64. package/dist/components/Company/BankAccount/BankAccountForm/Actions.js.map +1 -1
  65. package/dist/components/Company/BankAccount/BankAccountForm/Form.js +7 -5
  66. package/dist/components/Company/BankAccount/BankAccountForm/Form.js.map +1 -1
  67. package/dist/components/Company/BankAccount/BankAccountForm/context.js +4 -3
  68. package/dist/components/Company/BankAccount/BankAccountForm/context.js.map +1 -1
  69. package/dist/components/Company/BankAccount/BankAccountList/Actions.js +3 -2
  70. package/dist/components/Company/BankAccount/BankAccountList/Actions.js.map +1 -1
  71. package/dist/components/Company/BankAccount/BankAccountVerify/Actions.js +7 -6
  72. package/dist/components/Company/BankAccount/BankAccountVerify/Actions.js.map +1 -1
  73. package/dist/components/Company/BankAccount/BankAccountVerify/Form.js +7 -5
  74. package/dist/components/Company/BankAccount/BankAccountVerify/Form.js.map +1 -1
  75. package/dist/components/Company/DocumentSigner/DocumentList/Actions.js +3 -2
  76. package/dist/components/Company/DocumentSigner/DocumentList/Actions.js.map +1 -1
  77. package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.js +9 -8
  78. package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.js.map +1 -1
  79. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js +4 -3
  80. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  81. package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js +4 -3
  82. package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js.map +1 -1
  83. package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js +4 -3
  84. package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js.map +1 -1
  85. package/dist/components/Company/FederalTaxes/Actions.js +7 -6
  86. package/dist/components/Company/FederalTaxes/Actions.js.map +1 -1
  87. package/dist/components/Company/FederalTaxes/FederalTaxes.js +4 -3
  88. package/dist/components/Company/FederalTaxes/FederalTaxes.js.map +1 -1
  89. package/dist/components/Company/FederalTaxes/Form.js +5 -3
  90. package/dist/components/Company/FederalTaxes/Form.js.map +1 -1
  91. package/dist/components/Company/FederalTaxes/useFederalTaxes.js +6 -5
  92. package/dist/components/Company/FederalTaxes/useFederalTaxes.js.map +1 -1
  93. package/dist/components/Company/Industry/Actions.js +8 -7
  94. package/dist/components/Company/Industry/Actions.js.map +1 -1
  95. package/dist/components/Company/Industry/Context.js +7 -6
  96. package/dist/components/Company/Industry/Context.js.map +1 -1
  97. package/dist/components/Company/Industry/Edit.js +3 -2
  98. package/dist/components/Company/Industry/Edit.js.map +1 -1
  99. package/dist/components/Company/Locations/LocationForm/Actions.js +7 -6
  100. package/dist/components/Company/Locations/LocationForm/Actions.js.map +1 -1
  101. package/dist/components/Company/Locations/LocationForm/Form.js +1 -1
  102. package/dist/components/Company/Locations/LocationForm/LocationForm.js +4 -3
  103. package/dist/components/Company/Locations/LocationForm/LocationForm.js.map +1 -1
  104. package/dist/components/Company/Locations/LocationForm/useLocationForm.js +4 -3
  105. package/dist/components/Company/Locations/LocationForm/useLocationForm.js.map +1 -1
  106. package/dist/components/Company/Locations/LocationsList/Actions.js +3 -2
  107. package/dist/components/Company/Locations/LocationsList/Actions.js.map +1 -1
  108. package/dist/components/Company/Locations/LocationsList/List.js +7 -6
  109. package/dist/components/Company/Locations/LocationsList/List.js.map +1 -1
  110. package/dist/components/Company/Locations/LocationsList/LocationsList.js +8 -7
  111. package/dist/components/Company/Locations/LocationsList/LocationsList.js.map +1 -1
  112. package/dist/components/Company/Locations/LocationsList/useLocationsList.js +4 -3
  113. package/dist/components/Company/Locations/LocationsList/useLocationsList.js.map +1 -1
  114. package/dist/components/Company/OnboardingOverview/Completed.js +12 -10
  115. package/dist/components/Company/OnboardingOverview/Completed.js.map +1 -1
  116. package/dist/components/Company/OnboardingOverview/MissingRequirements.js +8 -6
  117. package/dist/components/Company/OnboardingOverview/MissingRequirements.js.map +1 -1
  118. package/dist/components/Company/OnboardingOverview/OnboardingOverview.js +8 -7
  119. package/dist/components/Company/OnboardingOverview/OnboardingOverview.js.map +1 -1
  120. package/dist/components/Company/OnboardingOverview/context.js +4 -3
  121. package/dist/components/Company/OnboardingOverview/context.js.map +1 -1
  122. package/dist/components/Company/PaySchedule/PaySchedule.js +4 -3
  123. package/dist/components/Company/PaySchedule/PaySchedule.js.map +1 -1
  124. package/dist/components/Company/PaySchedule/_parts/Actions.js +3 -2
  125. package/dist/components/Company/PaySchedule/_parts/Actions.js.map +1 -1
  126. package/dist/components/Company/PaySchedule/_parts/Edit.js +15 -15
  127. package/dist/components/Company/PaySchedule/_parts/Head.js +13 -11
  128. package/dist/components/Company/PaySchedule/_parts/Head.js.map +1 -1
  129. package/dist/components/Company/PaySchedule/_parts/List.js +15 -13
  130. package/dist/components/Company/PaySchedule/_parts/List.js.map +1 -1
  131. package/dist/components/Company/PaySchedule/usePaySchedule.js +6 -5
  132. package/dist/components/Company/PaySchedule/usePaySchedule.js.map +1 -1
  133. package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.js +3 -2
  134. package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.js.map +1 -1
  135. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js +4 -3
  136. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js.map +1 -1
  137. package/dist/components/Company/StateTaxes/StateTaxesList/Actions.js +3 -2
  138. package/dist/components/Company/StateTaxes/StateTaxesList/Actions.js.map +1 -1
  139. package/dist/components/Company/StateTaxes/StateTaxesList/List.js +3 -2
  140. package/dist/components/Company/StateTaxes/StateTaxesList/List.js.map +1 -1
  141. package/dist/components/Company/StateTaxes/StateTaxesList/context.js +4 -3
  142. package/dist/components/Company/StateTaxes/StateTaxesList/context.js.map +1 -1
  143. package/dist/components/Contractor/Address/Address.js +5 -4
  144. package/dist/components/Contractor/Address/Address.js.map +1 -1
  145. package/dist/components/Contractor/Address/Form.js +1 -1
  146. package/dist/components/Contractor/Address/useAddress.js +6 -5
  147. package/dist/components/Contractor/Address/useAddress.js.map +1 -1
  148. package/dist/components/Contractor/ContractorList/index.js +32 -31
  149. package/dist/components/Contractor/ContractorList/index.js.map +1 -1
  150. package/dist/components/Contractor/NewHireReport/NewHireReport.js +14 -13
  151. package/dist/components/Contractor/NewHireReport/NewHireReport.js.map +1 -1
  152. package/dist/components/Contractor/PaymentMethod/BankAccountForm.js +12 -11
  153. package/dist/components/Contractor/PaymentMethod/BankAccountForm.js.map +1 -1
  154. package/dist/components/Contractor/PaymentMethod/PaymentMethod.js +3 -2
  155. package/dist/components/Contractor/PaymentMethod/PaymentMethod.js.map +1 -1
  156. package/dist/components/Contractor/PaymentMethod/PaymentTypeForm.js +4 -3
  157. package/dist/components/Contractor/PaymentMethod/PaymentTypeForm.js.map +1 -1
  158. package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.js +4 -2
  159. package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.js.map +1 -1
  160. package/dist/components/Contractor/Payments/CreatePayment/EditContractorPaymentPresentation.js +10 -10
  161. package/dist/components/Contractor/Payments/CreatePayment/FastAchSubmissionBlockerBanner.js +9 -7
  162. package/dist/components/Contractor/Payments/CreatePayment/FastAchSubmissionBlockerBanner.js.map +1 -1
  163. package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.js +9 -8
  164. package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.js.map +1 -1
  165. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.js +11 -9
  166. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.js.map +1 -1
  167. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.js +8 -6
  168. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.js.map +1 -1
  169. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.module.scss.js +14 -14
  170. package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummaryPresentation.js +4 -2
  171. package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummaryPresentation.js.map +1 -1
  172. package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.js +4 -2
  173. package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.js.map +1 -1
  174. package/dist/components/Contractor/Profile/ContractorProfileForm.js +15 -15
  175. package/dist/components/Contractor/Profile/ContractorProfileForm.module.scss.js +1 -1
  176. package/dist/components/Contractor/Profile/useContractorProfile.js +3 -2
  177. package/dist/components/Contractor/Profile/useContractorProfile.js.map +1 -1
  178. package/dist/components/Contractor/Submit/Submit.js +21 -20
  179. package/dist/components/Contractor/Submit/Submit.js.map +1 -1
  180. package/dist/components/Employee/Compensation/Actions.js +13 -12
  181. package/dist/components/Employee/Compensation/Actions.js.map +1 -1
  182. package/dist/components/Employee/Compensation/Edit.js +17 -16
  183. package/dist/components/Employee/Compensation/Edit.js.map +1 -1
  184. package/dist/components/Employee/Compensation/List.js +23 -22
  185. package/dist/components/Employee/Compensation/List.js.map +1 -1
  186. package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.d.ts +3 -1
  187. package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.js +145 -137
  188. package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.js.map +1 -1
  189. package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.d.ts +2 -1
  190. package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.js +106 -101
  191. package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.js.map +1 -1
  192. package/dist/components/Employee/Deductions/DeductionsForm/DeductionsForm.js +90 -87
  193. package/dist/components/Employee/Deductions/DeductionsForm/DeductionsForm.js.map +1 -1
  194. package/dist/components/Employee/Deductions/DeductionsForm/GarnishmentForm.d.ts +2 -1
  195. package/dist/components/Employee/Deductions/DeductionsForm/GarnishmentForm.js +110 -104
  196. package/dist/components/Employee/Deductions/DeductionsForm/GarnishmentForm.js.map +1 -1
  197. package/dist/components/Employee/Deductions/DeductionsList/DeductionsList.js +51 -45
  198. package/dist/components/Employee/Deductions/DeductionsList/DeductionsList.js.map +1 -1
  199. package/dist/components/Employee/Deductions/IncludeDeductions/IncludeDeductions.js +31 -30
  200. package/dist/components/Employee/Deductions/IncludeDeductions/IncludeDeductions.js.map +1 -1
  201. package/dist/components/Employee/Deductions/IncludeDeductions/IncludeDeductions.module.scss.js +4 -8
  202. package/dist/components/Employee/Deductions/IncludeDeductions/IncludeDeductions.module.scss.js.map +1 -1
  203. package/dist/components/Employee/DocumentSigner/DocumentList/Actions.js +3 -2
  204. package/dist/components/Employee/DocumentSigner/DocumentList/Actions.js.map +1 -1
  205. package/dist/components/Employee/DocumentSigner/DocumentList/DocumentList.js +3 -2
  206. package/dist/components/Employee/DocumentSigner/DocumentList/DocumentList.js.map +1 -1
  207. package/dist/components/Employee/DocumentSigner/DocumentList/List.js +4 -2
  208. package/dist/components/Employee/DocumentSigner/DocumentList/List.js.map +1 -1
  209. package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js +4 -3
  210. package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  211. package/dist/components/Employee/DocumentSigner/SignatureForm/SignatureForm.js +3 -2
  212. package/dist/components/Employee/DocumentSigner/SignatureForm/SignatureForm.js.map +1 -1
  213. package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js +4 -3
  214. package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js.map +1 -1
  215. package/dist/components/Employee/EmployeeList/Actions.js +7 -6
  216. package/dist/components/Employee/EmployeeList/Actions.js.map +1 -1
  217. package/dist/components/Employee/EmployeeList/EmployeeList.js +4 -3
  218. package/dist/components/Employee/EmployeeList/EmployeeList.js.map +1 -1
  219. package/dist/components/Employee/EmployeeList/Head.js +7 -5
  220. package/dist/components/Employee/EmployeeList/Head.js.map +1 -1
  221. package/dist/components/Employee/EmployeeList/List.js +3 -2
  222. package/dist/components/Employee/EmployeeList/List.js.map +1 -1
  223. package/dist/components/Employee/EmployeeList/useEmployeeList.js +4 -3
  224. package/dist/components/Employee/EmployeeList/useEmployeeList.js.map +1 -1
  225. package/dist/components/Employee/FederalTaxes/Actions.js +6 -5
  226. package/dist/components/Employee/FederalTaxes/Actions.js.map +1 -1
  227. package/dist/components/Employee/FederalTaxes/FederalForm.js +12 -11
  228. package/dist/components/Employee/FederalTaxes/FederalForm.js.map +1 -1
  229. package/dist/components/Employee/FederalTaxes/useFederalTaxes.js +4 -3
  230. package/dist/components/Employee/FederalTaxes/useFederalTaxes.js.map +1 -1
  231. package/dist/components/Employee/Landing/Landing.js +11 -10
  232. package/dist/components/Employee/Landing/Landing.js.map +1 -1
  233. package/dist/components/Employee/OnboardingSummary/OnboardingSummary.js +7 -7
  234. package/dist/components/Employee/PaymentMethod/Actions.js +6 -5
  235. package/dist/components/Employee/PaymentMethod/Actions.js.map +1 -1
  236. package/dist/components/Employee/PaymentMethod/BankAccountEdit.js +5 -4
  237. package/dist/components/Employee/PaymentMethod/BankAccountEdit.js.map +1 -1
  238. package/dist/components/Employee/PaymentMethod/BankAccountsList.js +3 -2
  239. package/dist/components/Employee/PaymentMethod/BankAccountsList.js.map +1 -1
  240. package/dist/components/Employee/PaymentMethod/PaymentTypeForm.js +7 -6
  241. package/dist/components/Employee/PaymentMethod/PaymentTypeForm.js.map +1 -1
  242. package/dist/components/Employee/PaymentMethod/Split.js +11 -10
  243. package/dist/components/Employee/PaymentMethod/Split.js.map +1 -1
  244. package/dist/components/Employee/PaymentMethod/usePaymentMethod.js +6 -5
  245. package/dist/components/Employee/PaymentMethod/usePaymentMethod.js.map +1 -1
  246. package/dist/components/Employee/Profile/Actions.js +6 -5
  247. package/dist/components/Employee/Profile/Actions.js.map +1 -1
  248. package/dist/components/Employee/Profile/AdminPersonalDetails.js +6 -5
  249. package/dist/components/Employee/Profile/AdminPersonalDetails.js.map +1 -1
  250. package/dist/components/Employee/Profile/AdminPersonalDetails.module.scss.js +1 -1
  251. package/dist/components/Employee/Profile/HomeAddress.js +1 -1
  252. package/dist/components/Employee/Profile/PersonalDetailsInputs.js +2 -2
  253. package/dist/components/Employee/Profile/useProfile.js +4 -3
  254. package/dist/components/Employee/Profile/useProfile.js.map +1 -1
  255. package/dist/components/Employee/StateTaxes/Actions.js +6 -5
  256. package/dist/components/Employee/StateTaxes/Actions.js.map +1 -1
  257. package/dist/components/Employee/StateTaxes/useStateTaxes.js +4 -3
  258. package/dist/components/Employee/StateTaxes/useStateTaxes.js.map +1 -1
  259. package/dist/components/Employee/Taxes/Actions.js +7 -6
  260. package/dist/components/Employee/Taxes/Actions.js.map +1 -1
  261. package/dist/components/Employee/Taxes/FederalForm.js +14 -13
  262. package/dist/components/Employee/Taxes/FederalForm.js.map +1 -1
  263. package/dist/components/Employee/Taxes/useTaxes.js +4 -3
  264. package/dist/components/Employee/Taxes/useTaxes.js.map +1 -1
  265. package/dist/components/Flow/Flow.js +9 -7
  266. package/dist/components/Flow/Flow.js.map +1 -1
  267. package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.js +17 -16
  268. package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.js.map +1 -1
  269. package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.module.scss.js +4 -4
  270. package/dist/components/InformationRequests/InformationRequestList/InformationRequestList.js +38 -36
  271. package/dist/components/InformationRequests/InformationRequestList/InformationRequestList.js.map +1 -1
  272. package/dist/components/InformationRequests/InformationRequests.d.ts +7 -2
  273. package/dist/components/InformationRequests/InformationRequests.js +78 -45
  274. package/dist/components/InformationRequests/InformationRequests.js.map +1 -1
  275. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsForm/ConfirmWireDetailsForm.js +10 -9
  276. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsForm/ConfirmWireDetailsForm.js.map +1 -1
  277. package/dist/components/Payroll/ConfirmWireDetails/WireInstructions/WireInstructions.module.scss.js +10 -10
  278. package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelection.d.ts +2 -0
  279. package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelection.js +33 -0
  280. package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelection.js.map +1 -0
  281. package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelectionPresentation.d.ts +7 -0
  282. package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelectionPresentation.js +39 -0
  283. package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelectionPresentation.js.map +1 -0
  284. package/dist/components/Payroll/OffCycleReasonSelection/index.d.ts +5 -0
  285. package/dist/components/Payroll/OffCycleReasonSelection/types.d.ts +15 -0
  286. package/dist/components/Payroll/OffCycleReasonSelection/types.js +14 -0
  287. package/dist/components/Payroll/OffCycleReasonSelection/types.js.map +1 -0
  288. package/dist/components/Payroll/PayPeriodDateForm/PayPeriodDateForm.d.ts +2 -0
  289. package/dist/components/Payroll/PayPeriodDateForm/PayPeriodDateForm.js +35 -0
  290. package/dist/components/Payroll/PayPeriodDateForm/PayPeriodDateForm.js.map +1 -0
  291. package/dist/components/Payroll/PayPeriodDateForm/PayPeriodDateFormPresentation.d.ts +2 -0
  292. package/dist/components/Payroll/PayPeriodDateForm/PayPeriodDateFormPresentation.js +65 -0
  293. package/dist/components/Payroll/PayPeriodDateForm/PayPeriodDateFormPresentation.js.map +1 -0
  294. package/dist/components/Payroll/PayPeriodDateForm/PayPeriodDateFormPresentation.module.scss.js +18 -0
  295. package/dist/components/Payroll/PayPeriodDateForm/PayPeriodDateFormPresentation.module.scss.js.map +1 -0
  296. package/dist/components/Payroll/PayPeriodDateForm/PayPeriodDateFormTypes.d.ts +53 -0
  297. package/dist/components/Payroll/PayPeriodDateForm/index.d.ts +3 -0
  298. package/dist/components/Payroll/PayPeriodDateForm/usePayPeriodDateValidation.d.ts +5 -0
  299. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerAlerts.js +4 -2
  300. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerAlerts.js.map +1 -1
  301. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerList.js +19 -18
  302. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerList.js.map +1 -1
  303. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js +36 -36
  304. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.module.scss.js +5 -5
  305. package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js +21 -19
  306. package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js.map +1 -1
  307. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js +17 -15
  308. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js.map +1 -1
  309. package/dist/components/Payroll/PayrollList/PayrollListPresentation.js +26 -24
  310. package/dist/components/Payroll/PayrollList/PayrollListPresentation.js.map +1 -1
  311. package/dist/components/Payroll/PayrollOverview/PayrollOverview.js +30 -29
  312. package/dist/components/Payroll/PayrollOverview/PayrollOverview.js.map +1 -1
  313. package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/FastAchSubmissionBlockerBanner.js +4 -2
  314. package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/FastAchSubmissionBlockerBanner.js.map +1 -1
  315. package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js +3 -2
  316. package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js.map +1 -1
  317. package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.module.scss.js +18 -18
  318. package/dist/components/Payroll/RecoveryCases/RecoveryCases.d.ts +4 -1
  319. package/dist/components/Payroll/RecoveryCases/RecoveryCases.js +34 -28
  320. package/dist/components/Payroll/RecoveryCases/RecoveryCases.js.map +1 -1
  321. package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.js +29 -29
  322. package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.js.map +1 -1
  323. package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.js +12 -11
  324. package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.js.map +1 -1
  325. package/dist/components/Payroll/RecoveryCases/useRecoveryCaseErrorCode.js +4 -2
  326. package/dist/components/Payroll/RecoveryCases/useRecoveryCaseErrorCode.js.map +1 -1
  327. package/dist/components/Payroll/index.d.ts +4 -0
  328. package/dist/components/Payroll/index.js +12 -8
  329. package/dist/components/Payroll/index.js.map +1 -1
  330. package/dist/components/Payroll/usePreparedPayrollData.js +3 -2
  331. package/dist/components/Payroll/usePreparedPayrollData.js.map +1 -1
  332. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js +3 -2
  333. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js.map +1 -1
  334. package/dist/contexts/ThemeProvider/theme.d.ts +8 -3
  335. package/dist/contexts/ThemeProvider/theme.js +29 -24
  336. package/dist/contexts/ThemeProvider/theme.js.map +1 -1
  337. package/dist/helpers/dateFormatting.d.ts +3 -0
  338. package/dist/helpers/dateFormatting.js.map +1 -1
  339. package/dist/i18n/I18n.js +1 -1
  340. package/dist/i18n/I18n.js.map +1 -1
  341. package/dist/i18n/en/Employee.Deductions.json.js +157 -161
  342. package/dist/i18n/en/Employee.Deductions.json.js.map +1 -1
  343. package/dist/i18n/en/InformationRequests.InformationRequestList.json.js +12 -10
  344. package/dist/i18n/en/InformationRequests.InformationRequestList.json.js.map +1 -1
  345. package/dist/i18n/en/InformationRequests.json.js +8 -0
  346. package/dist/i18n/en/InformationRequests.json.js.map +1 -0
  347. package/dist/i18n/en/Payroll.OffCycleReasonSelection.json.js +12 -0
  348. package/dist/i18n/en/Payroll.OffCycleReasonSelection.json.js.map +1 -0
  349. package/dist/i18n/en/Payroll.PayPeriodDateForm.json.js +32 -0
  350. package/dist/i18n/en/Payroll.PayPeriodDateForm.json.js.map +1 -0
  351. package/dist/shared/constants.d.ts +4 -0
  352. package/dist/shared/constants.js +10 -8
  353. package/dist/shared/constants.js.map +1 -1
  354. package/dist/style.css +1 -1
  355. package/dist/types/i18next.d.ts +51 -3
  356. package/package.json +11 -11
  357. package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.module.scss.js +0 -8
  358. package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.module.scss.js.map +0 -1
  359. package/dist/components/Employee/Deductions/DeductionsForm/DeductionsForm.module.scss.js +0 -14
  360. package/dist/components/Employee/Deductions/DeductionsForm/DeductionsForm.module.scss.js.map +0 -1
@@ -15,12 +15,13 @@ import { useComponentContext as S } from "../../../../contexts/ComponentAdapter/
15
15
  import { useComponentDictionary as z, useI18n as g } from "../../../../i18n/I18n.js";
16
16
  import { Flex as p, FlexItem as f } from "../../../Common/Flex/Flex.js";
17
17
  import { payrollWireEvents as N } from "../../../../shared/constants.js";
18
- import "react";
19
- import { TextAreaField as V } from "../../../Common/Fields/TextAreaField/TextAreaField.js";
20
- import { useDateFormatter as J } from "../../../../hooks/useDateFormatter.js";
18
+ import "classnames";
19
+ import { TextInputField as V } from "../../../Common/Fields/TextInputField/TextInputField.js";
20
+ import { DatePickerField as J } from "../../../Common/Fields/DatePickerField/DatePickerField.js";
21
21
  import { NumberInputField as Q } from "../../../Common/Fields/NumberInputField/NumberInputField.js";
22
- import { TextInputField as X } from "../../../Common/Fields/TextInputField/TextInputField.js";
23
- import { DatePickerField as Z } from "../../../Common/Fields/DatePickerField/DatePickerField.js";
22
+ import "react";
23
+ import { TextAreaField as X } from "../../../Common/Fields/TextAreaField/TextAreaField.js";
24
+ import { useDateFormatter as Z } from "../../../../hooks/useDateFormatter.js";
24
25
  const $ = r.object({
25
26
  amountSent: r.number().positive(),
26
27
  dateSent: r.date(),
@@ -42,7 +43,7 @@ const oe = ({
42
43
  modalContainerRef: y
43
44
  }) => {
44
45
  z("Payroll.ConfirmWireDetailsForm", i), g("Payroll.ConfirmWireDetailsForm");
45
- const { onEvent: a, baseSubmitHandler: I } = Y(), { t } = F("Payroll.ConfirmWireDetailsForm"), { Heading: v, Text: b } = S(), R = J(), { data: P } = U({
46
+ const { onEvent: a, baseSubmitHandler: I } = Y(), { t } = F("Payroll.ConfirmWireDetailsForm"), { Heading: v, Text: b } = S(), R = Z(), { data: P } = U({
46
47
  wireInRequestUuid: o
47
48
  }), W = P.wireInRequest, { data: q } = G({
48
49
  companyId: n,
@@ -94,7 +95,7 @@ const oe = ({
94
95
  }
95
96
  ),
96
97
  /* @__PURE__ */ e(
97
- Z,
98
+ J,
98
99
  {
99
100
  name: "dateSent",
100
101
  label: t("dateLabel"),
@@ -104,7 +105,7 @@ const oe = ({
104
105
  }
105
106
  ),
106
107
  /* @__PURE__ */ e(
107
- X,
108
+ V,
108
109
  {
109
110
  name: "bankName",
110
111
  label: t("bankNameLabel"),
@@ -114,7 +115,7 @@ const oe = ({
114
115
  errorMessage: t("validations.bankName")
115
116
  }
116
117
  ),
117
- /* @__PURE__ */ e(V, { name: "additionalNotes", label: t("notesLabel"), rows: 3 })
118
+ /* @__PURE__ */ e(X, { name: "additionalNotes", label: t("notesLabel"), rows: 3 })
118
119
  ] })
119
120
  }
120
121
  ) })
@@ -1 +1 @@
1
- {"version":3,"file":"ConfirmWireDetailsForm.js","sources":["../../../../../src/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsForm/ConfirmWireDetailsForm.tsx"],"sourcesContent":["import { Trans, useTranslation } from 'react-i18next'\nimport z from 'zod'\nimport { FormProvider, useForm } from 'react-hook-form'\nimport { zodResolver } from '@hookform/resolvers/zod'\nimport { useIsMutating } from '@tanstack/react-query'\nimport {\n useWireInRequestsSubmitMutation,\n mutationKeyWireInRequestsSubmit,\n} from '@gusto/embedded-api/react-query/wireInRequestsSubmit'\nimport { useWireInRequestsGetSuspense } from '@gusto/embedded-api/react-query/wireInRequestsGet'\nimport type { PutWireInRequestsWireInRequestUuidRequest } from '@gusto/embedded-api/models/operations/putwireinrequestswireinrequestuuid'\nimport { usePayrollsListSuspense } from '@gusto/embedded-api/react-query/payrollsList'\nimport styles from './ConfirmWireDetailsForm.module.scss'\nimport { Form as HtmlForm } from '@/components/Common/Form'\nimport { BaseComponent, useBase, type BaseComponentInterface } from '@/components/Base'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\nimport { useComponentDictionary, useI18n } from '@/i18n'\nimport { Flex, FlexItem } from '@/components/Common/Flex/Flex'\nimport { payrollWireEvents, type EventType } from '@/shared/constants'\nimport { DatePickerField, NumberInputField, TextInputField } from '@/components/Common'\nimport { TextAreaField } from '@/components/Common/Fields/TextAreaField'\nimport type { OnEventType } from '@/components/Base/useBase'\nimport { useDateFormatter } from '@/hooks/useDateFormatter'\n\ninterface ConfirmWireDetailsFormProps extends BaseComponentInterface<'Payroll.ConfirmWireDetailsForm'> {\n wireInId: string\n companyId: string\n modalContainerRef?: React.RefObject<HTMLDivElement | null>\n}\n\nexport const ConfirmWireDetailsFormSchema = z.object({\n amountSent: z.number().positive(),\n dateSent: z.date(),\n bankName: z.string().nonempty(),\n additionalNotes: z.string().optional(),\n})\n\nexport type ConfirmWireDetailsFormValues = z.infer<typeof ConfirmWireDetailsFormSchema>\n\nconst CONFIRM_WIRE_FORM_ID = 'confirm-wire-details-form'\n\nconst transformFormDataToPayload = (\n data: ConfirmWireDetailsFormValues,\n): PutWireInRequestsWireInRequestUuidRequest['requestBody'] => {\n return {\n amountSent: String(data.amountSent),\n dateSent: data.dateSent.toISOString().split('T')[0] || '',\n bankName: data.bankName,\n additionalNotes: data.additionalNotes || undefined,\n }\n}\n\nexport function ConfirmWireDetailsForm(props: ConfirmWireDetailsFormProps) {\n return (\n <BaseComponent {...props}>\n <Root {...props}>{props.children}</Root>\n </BaseComponent>\n )\n}\n\nconst Root = ({\n wireInId,\n companyId,\n dictionary,\n modalContainerRef,\n}: ConfirmWireDetailsFormProps) => {\n useComponentDictionary('Payroll.ConfirmWireDetailsForm', dictionary)\n useI18n('Payroll.ConfirmWireDetailsForm')\n const { onEvent, baseSubmitHandler } = useBase()\n const { t } = useTranslation('Payroll.ConfirmWireDetailsForm')\n const { Heading, Text } = useComponentContext()\n const dateFormatter = useDateFormatter()\n const { data } = useWireInRequestsGetSuspense({\n wireInRequestUuid: wireInId,\n })\n const wireInRequest = data.wireInRequest\n\n const { data: payrollsData } = usePayrollsListSuspense({\n companyId,\n processed: true,\n })\n\n const payrollData = payrollsData.payrollList?.find(\n payroll => payroll.payrollUuid === wireInRequest?.paymentUuid,\n )\n const payPeriod = payrollData?.payPeriod\n const payPeriodRange =\n payPeriod?.startDate && payPeriod.endDate\n ? dateFormatter.formatPayPeriodRange(payPeriod.startDate, payPeriod.endDate)\n : undefined\n\n const checkDate = payrollData\n ? dateFormatter.formatShortWithYear(payrollData.checkDate)\n : undefined\n\n const formHandlers = useForm<ConfirmWireDetailsFormValues>({\n resolver: zodResolver(ConfirmWireDetailsFormSchema),\n defaultValues: {\n bankName: '',\n },\n })\n\n const { mutateAsync: submitWireInRequest } = useWireInRequestsSubmitMutation()\n\n const onSubmit = async (data: ConfirmWireDetailsFormValues) => {\n await baseSubmitHandler(data, async innerData => {\n const payload = transformFormDataToPayload(innerData)\n const response = await submitWireInRequest({\n request: {\n wireInRequestUuid: wireInId,\n requestBody: payload,\n },\n })\n onEvent(payrollWireEvents.PAYROLL_WIRE_FORM_DONE, {\n wireInRequest: response.wireInRequest,\n confirmationAlert: {\n title: payPeriodRange\n ? t('confirmationAlert.title', { payrollRange: payPeriodRange })\n : t('confirmationAlert.emptyTitle'),\n content: checkDate ? (\n <Text>{t('confirmationAlert.content', { checkDate })}</Text>\n ) : undefined,\n },\n })\n })\n }\n\n return (\n <Flex flexDirection=\"column\" gap={24}>\n <FlexItem>\n <Heading as=\"h2\">\n <Trans i18nKey=\"title\" t={t} values={{ payrollRange: payPeriodRange }} />\n </Heading>\n <Text>{t('description')}</Text>\n </FlexItem>\n\n <FormProvider {...formHandlers}>\n <HtmlForm\n id={CONFIRM_WIRE_FORM_ID}\n onSubmit={formHandlers.handleSubmit(onSubmit)}\n className={styles.form}\n >\n <Flex flexDirection=\"column\" gap={20}>\n <NumberInputField\n name=\"amountSent\"\n label={t('amountLabel')}\n isRequired\n format=\"currency\"\n errorMessage={t('validations.amount')}\n />\n <DatePickerField\n name=\"dateSent\"\n label={t('dateLabel')}\n isRequired\n errorMessage={t('validations.date')}\n portalContainer={modalContainerRef?.current || undefined}\n />\n <TextInputField\n name=\"bankName\"\n label={t('bankNameLabel')}\n isRequired\n description={t('bankNameDescription')}\n placeholder={t('bankNamePlaceholder')}\n errorMessage={t('validations.bankName')}\n />\n <TextAreaField name=\"additionalNotes\" label={t('notesLabel')} rows={3} />\n </Flex>\n </HtmlForm>\n </FormProvider>\n </Flex>\n )\n}\n\nconst Footer = ({ onEvent }: { onEvent: OnEventType<EventType, unknown> }) => {\n useI18n('Payroll.ConfirmWireDetailsForm')\n const { t } = useTranslation('Payroll.ConfirmWireDetailsForm')\n const { Button } = useComponentContext()\n const isMutating = useIsMutating({\n mutationKey: mutationKeyWireInRequestsSubmit(),\n })\n const isPending = isMutating > 0\n\n return (\n <Flex gap={12} justifyContent=\"space-evenly\">\n <FlexItem flexGrow={1}>\n <Button\n variant=\"secondary\"\n onClick={() => {\n onEvent(payrollWireEvents.PAYROLL_WIRE_FORM_CANCEL)\n }}\n isDisabled={isPending}\n className={styles.button}\n >\n {t('cancelCta')}\n </Button>\n </FlexItem>\n <FlexItem flexGrow={1}>\n <Button\n variant=\"primary\"\n type=\"submit\"\n form={CONFIRM_WIRE_FORM_ID}\n isLoading={isPending}\n className={styles.button}\n >\n {t('submitCta')}\n </Button>\n </FlexItem>\n </Flex>\n )\n}\nConfirmWireDetailsForm.Footer = Footer\n"],"names":["ConfirmWireDetailsFormSchema","z","CONFIRM_WIRE_FORM_ID","transformFormDataToPayload","data","ConfirmWireDetailsForm","props","jsx","BaseComponent","Root","wireInId","companyId","dictionary","modalContainerRef","useComponentDictionary","useI18n","onEvent","baseSubmitHandler","useBase","useTranslation","Heading","Text","useComponentContext","dateFormatter","useDateFormatter","useWireInRequestsGetSuspense","wireInRequest","payrollsData","usePayrollsListSuspense","payrollData","payroll","payPeriod","payPeriodRange","checkDate","formHandlers","useForm","zodResolver","submitWireInRequest","useWireInRequestsSubmitMutation","onSubmit","innerData","payload","response","payrollWireEvents","jsxs","Flex","FlexItem","Trans","FormProvider","HtmlForm","styles","NumberInputField","DatePickerField","TextInputField","TextAreaField","Footer","t","Button","isPending","useIsMutating","mutationKeyWireInRequestsSubmit"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AA8BO,MAAMA,IAA+BC,EAAE,OAAO;AAAA,EACnD,YAAYA,EAAE,OAAA,EAAS,SAAA;AAAA,EACvB,UAAUA,EAAE,KAAA;AAAA,EACZ,UAAUA,EAAE,OAAA,EAAS,SAAA;AAAA,EACrB,iBAAiBA,EAAE,OAAA,EAAS,SAAA;AAC9B,CAAC,GAIKC,IAAuB,6BAEvBC,KAA6B,CACjCC,OAEO;AAAA,EACL,YAAY,OAAOA,EAAK,UAAU;AAAA,EAClC,UAAUA,EAAK,SAAS,YAAA,EAAc,MAAM,GAAG,EAAE,CAAC,KAAK;AAAA,EACvD,UAAUA,EAAK;AAAA,EACf,iBAAiBA,EAAK,mBAAmB;AAAA;A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ACA,gBAAA3C,EAACuC,GAAA,EAAS,UAAU,GAClB,UAAA,gBAAAvC;AAAA,MAACkD;AAAA,MAAA;AAAA,QACC,SAAQ;AAAA,QACR,MAAK;AAAA,QACL,MAAMvD;AAAA,QACN,WAAWwD;AAAA,QACX,WAAWR,EAAO;AAAA,QAEjB,YAAE,WAAW;AAAA,MAAA;AAAA,IAAA,EAChB,CACF;AAAA,EAAA,GACF;AAEJ;AACA7C,GAAuB,SAASkD;"}
1
+ {"version":3,"file":"ConfirmWireDetailsForm.js","sources":["../../../../../src/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsForm/ConfirmWireDetailsForm.tsx"],"sourcesContent":["import { Trans, useTranslation } from 'react-i18next'\nimport z from 'zod'\nimport { FormProvider, useForm } from 'react-hook-form'\nimport { zodResolver } from '@hookform/resolvers/zod'\nimport { useIsMutating } from '@tanstack/react-query'\nimport {\n useWireInRequestsSubmitMutation,\n mutationKeyWireInRequestsSubmit,\n} from '@gusto/embedded-api/react-query/wireInRequestsSubmit'\nimport { useWireInRequestsGetSuspense } from '@gusto/embedded-api/react-query/wireInRequestsGet'\nimport type { PutWireInRequestsWireInRequestUuidRequest } from '@gusto/embedded-api/models/operations/putwireinrequestswireinrequestuuid'\nimport { usePayrollsListSuspense } from '@gusto/embedded-api/react-query/payrollsList'\nimport styles from './ConfirmWireDetailsForm.module.scss'\nimport { Form as HtmlForm } from '@/components/Common/Form'\nimport { BaseComponent, useBase, type BaseComponentInterface } from '@/components/Base'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\nimport { useComponentDictionary, useI18n } from '@/i18n'\nimport { Flex, FlexItem } from '@/components/Common/Flex/Flex'\nimport { payrollWireEvents, type EventType } from '@/shared/constants'\nimport { DatePickerField, NumberInputField, TextInputField } from '@/components/Common'\nimport { TextAreaField } from '@/components/Common/Fields/TextAreaField'\nimport type { OnEventType } from '@/components/Base/useBase'\nimport { useDateFormatter } from '@/hooks/useDateFormatter'\n\ninterface ConfirmWireDetailsFormProps extends BaseComponentInterface<'Payroll.ConfirmWireDetailsForm'> {\n wireInId: string\n companyId: string\n modalContainerRef?: React.RefObject<HTMLDivElement | null>\n}\n\nexport const ConfirmWireDetailsFormSchema = z.object({\n amountSent: z.number().positive(),\n dateSent: z.date(),\n bankName: z.string().nonempty(),\n additionalNotes: z.string().optional(),\n})\n\nexport type ConfirmWireDetailsFormValues = z.infer<typeof ConfirmWireDetailsFormSchema>\n\nconst CONFIRM_WIRE_FORM_ID = 'confirm-wire-details-form'\n\nconst transformFormDataToPayload = (\n data: ConfirmWireDetailsFormValues,\n): PutWireInRequestsWireInRequestUuidRequest['requestBody'] => {\n return {\n amountSent: String(data.amountSent),\n dateSent: data.dateSent.toISOString().split('T')[0] || '',\n bankName: data.bankName,\n additionalNotes: data.additionalNotes || undefined,\n }\n}\n\nexport function ConfirmWireDetailsForm(props: ConfirmWireDetailsFormProps) {\n return (\n <BaseComponent {...props}>\n <Root {...props}>{props.children}</Root>\n </BaseComponent>\n )\n}\n\nconst Root = ({\n wireInId,\n companyId,\n dictionary,\n modalContainerRef,\n}: ConfirmWireDetailsFormProps) => {\n useComponentDictionary('Payroll.ConfirmWireDetailsForm', dictionary)\n useI18n('Payroll.ConfirmWireDetailsForm')\n const { onEvent, baseSubmitHandler } = useBase()\n const { t } = useTranslation('Payroll.ConfirmWireDetailsForm')\n const { Heading, Text } = useComponentContext()\n const dateFormatter = useDateFormatter()\n const { data } = useWireInRequestsGetSuspense({\n wireInRequestUuid: wireInId,\n })\n const wireInRequest = data.wireInRequest\n\n const { data: payrollsData } = usePayrollsListSuspense({\n companyId,\n processed: true,\n })\n\n const payrollData = payrollsData.payrollList?.find(\n payroll => payroll.payrollUuid === wireInRequest?.paymentUuid,\n )\n const payPeriod = payrollData?.payPeriod\n const payPeriodRange =\n payPeriod?.startDate && payPeriod.endDate\n ? dateFormatter.formatPayPeriodRange(payPeriod.startDate, payPeriod.endDate)\n : undefined\n\n const checkDate = payrollData\n ? dateFormatter.formatShortWithYear(payrollData.checkDate)\n : undefined\n\n const formHandlers = useForm<ConfirmWireDetailsFormValues>({\n resolver: zodResolver(ConfirmWireDetailsFormSchema),\n defaultValues: {\n bankName: '',\n },\n })\n\n const { mutateAsync: submitWireInRequest } = useWireInRequestsSubmitMutation()\n\n const onSubmit = async (data: ConfirmWireDetailsFormValues) => {\n await baseSubmitHandler(data, async innerData => {\n const payload = transformFormDataToPayload(innerData)\n const response = await submitWireInRequest({\n request: {\n wireInRequestUuid: wireInId,\n requestBody: payload,\n },\n })\n onEvent(payrollWireEvents.PAYROLL_WIRE_FORM_DONE, {\n wireInRequest: response.wireInRequest,\n confirmationAlert: {\n title: payPeriodRange\n ? t('confirmationAlert.title', { payrollRange: payPeriodRange })\n : t('confirmationAlert.emptyTitle'),\n content: checkDate ? (\n <Text>{t('confirmationAlert.content', { checkDate })}</Text>\n ) : undefined,\n },\n })\n })\n }\n\n return (\n <Flex flexDirection=\"column\" gap={24}>\n <FlexItem>\n <Heading as=\"h2\">\n <Trans i18nKey=\"title\" t={t} values={{ payrollRange: payPeriodRange }} />\n </Heading>\n <Text>{t('description')}</Text>\n </FlexItem>\n\n <FormProvider {...formHandlers}>\n <HtmlForm\n id={CONFIRM_WIRE_FORM_ID}\n onSubmit={formHandlers.handleSubmit(onSubmit)}\n className={styles.form}\n >\n <Flex flexDirection=\"column\" gap={20}>\n <NumberInputField\n name=\"amountSent\"\n label={t('amountLabel')}\n isRequired\n format=\"currency\"\n errorMessage={t('validations.amount')}\n />\n <DatePickerField\n name=\"dateSent\"\n label={t('dateLabel')}\n isRequired\n errorMessage={t('validations.date')}\n portalContainer={modalContainerRef?.current || undefined}\n />\n <TextInputField\n name=\"bankName\"\n label={t('bankNameLabel')}\n isRequired\n description={t('bankNameDescription')}\n placeholder={t('bankNamePlaceholder')}\n errorMessage={t('validations.bankName')}\n />\n <TextAreaField name=\"additionalNotes\" label={t('notesLabel')} rows={3} />\n </Flex>\n </HtmlForm>\n </FormProvider>\n </Flex>\n )\n}\n\nconst Footer = ({ onEvent }: { onEvent: OnEventType<EventType, unknown> }) => {\n useI18n('Payroll.ConfirmWireDetailsForm')\n const { t } = useTranslation('Payroll.ConfirmWireDetailsForm')\n const { Button } = useComponentContext()\n const isMutating = useIsMutating({\n mutationKey: mutationKeyWireInRequestsSubmit(),\n })\n const isPending = isMutating > 0\n\n return (\n <Flex gap={12} justifyContent=\"space-evenly\">\n <FlexItem flexGrow={1}>\n <Button\n variant=\"secondary\"\n onClick={() => {\n onEvent(payrollWireEvents.PAYROLL_WIRE_FORM_CANCEL)\n }}\n isDisabled={isPending}\n className={styles.button}\n >\n {t('cancelCta')}\n </Button>\n </FlexItem>\n <FlexItem flexGrow={1}>\n <Button\n variant=\"primary\"\n type=\"submit\"\n form={CONFIRM_WIRE_FORM_ID}\n isLoading={isPending}\n className={styles.button}\n >\n {t('submitCta')}\n </Button>\n </FlexItem>\n </Flex>\n )\n}\nConfirmWireDetailsForm.Footer = Footer\n"],"names":["ConfirmWireDetailsFormSchema","z","CONFIRM_WIRE_FORM_ID","transformFormDataToPayload","data","ConfirmWireDetailsForm","props","jsx","BaseComponent","Root","wireInId","companyId","dictionary","modalContainerRef","useComponentDictionary","useI18n","onEvent","baseSubmitHandler","useBase","useTranslation","Heading","Text","useComponentContext","dateFormatter","useDateFormatter","useWireInRequestsGetSuspense","wireInRequest","payrollsData","usePayrollsListSuspense","payrollData","payroll","payPeriod","payPeriodRange","checkDate","formHandlers","useForm","zodResolver","submitWireInRequest","useWireInRequestsSubmitMutation","onSubmit","innerData","payload","response","payrollWireEvents","jsxs","Flex","FlexItem","Trans","FormProvider","HtmlForm","styles","NumberInputField","DatePickerField","TextInputField","TextAreaField","Footer","t","Button","isPending","useIsMutating","mutationKeyWireInRequestsSubmit"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AA8BO,MAAMA,IAA+BC,EAAE,OAAO;AAAA,EACnD,YAAYA,EAAE,OAAA,EAAS,SAAA;AAAA,EACvB,UAAUA,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AAA,EAAK,KAAK,IAAI,gBAAe,gBAC5B,UAAA;AAAA,IAAA,gBAAAtC,EAACuC,GAAA,EAAS,UAAU,GAClB,UAAA,gBAAAvC;AAAA,MAACkD;AAAA,MAAA;AAAA,QACC,SAAQ;AAAA,QACR,SAAS,MAAM;AACb,UAAAzC,EAAQ2B,EAAkB,wBAAwB;AAAA,QACpD;AAAA,QACA,YAAYe;AAAA,QACZ,WAAWR,EAAO;AAAA,QAEjB,YAAE,WAAW;AAAA,MAAA;AAAA,IAAA,GAElB;AAAA,IACA,gBAAA3C,EAACuC,GAAA,EAAS,UAAU,GAClB,UAAA,gBAAAvC;AAAA,MAACkD;AAAA,MAAA;AAAA,QACC,SAAQ;AAAA,QACR,MAAK;AAAA,QACL,MAAMvD;AAAA,QACN,WAAWwD;AAAA,QACX,WAAWR,EAAO;AAAA,QAEjB,YAAE,WAAW;AAAA,MAAA;AAAA,IAAA,EAChB,CACF;AAAA,EAAA,GACF;AAEJ;AACA7C,GAAuB,SAASkD;"}
@@ -1,18 +1,18 @@
1
- const e = "_subtitle_xw5zx_5", t = "_fieldLabel_xw5zx_10", s = "_fieldValue_xw5zx_17", r = "_requirementsCard_xw5zx_23", i = "_requirementsList_xw5zx_45", _ = "_footer_xw5zx_65", l = {
1
+ const e = "_subtitle_jbusm_5", s = "_fieldLabel_jbusm_10", t = "_fieldValue_jbusm_17", r = "_requirementsCard_jbusm_23", u = "_requirementsList_jbusm_45", i = "_footer_jbusm_65", _ = {
2
2
  subtitle: e,
3
- fieldLabel: t,
4
- fieldValue: s,
3
+ fieldLabel: s,
4
+ fieldValue: t,
5
5
  requirementsCard: r,
6
- requirementsList: i,
7
- footer: _
6
+ requirementsList: u,
7
+ footer: i
8
8
  };
9
9
  export {
10
- l as default,
11
- t as fieldLabel,
12
- s as fieldValue,
13
- _ as footer,
10
+ _ as default,
11
+ s as fieldLabel,
12
+ t as fieldValue,
13
+ i as footer,
14
14
  r as requirementsCard,
15
- i as requirementsList,
15
+ u as requirementsList,
16
16
  e as subtitle
17
17
  };
18
18
  //# sourceMappingURL=WireInstructions.module.scss.js.map
@@ -0,0 +1,2 @@
1
+ import { OffCycleReasonSelectionProps } from './types';
2
+ export declare function OffCycleReasonSelection(props: OffCycleReasonSelectionProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,33 @@
1
+ import { jsx as n } from "react/jsx-runtime";
2
+ import { useState as l } from "react";
3
+ import { OffCycleReasonSelectionPresentation as c } from "./OffCycleReasonSelectionPresentation.js";
4
+ import { OFF_CYCLE_REASON_DEFAULTS as f } from "./types.js";
5
+ import { BaseComponent as m } from "../../Base/Base.js";
6
+ import { useBase as i } from "../../Base/useBase.js";
7
+ import { useComponentDictionary as C, useI18n as R } from "../../../i18n/I18n.js";
8
+ import { componentEvents as p } from "../../../shared/constants.js";
9
+ function g(e) {
10
+ return /* @__PURE__ */ n(m, { ...e, children: /* @__PURE__ */ n(u, { ...e }) });
11
+ }
12
+ function u({ dictionary: e }) {
13
+ C("Payroll.OffCycleReasonSelection", e), R("Payroll.OffCycleReasonSelection");
14
+ const { onEvent: t } = i(), [r, s] = l(null);
15
+ return /* @__PURE__ */ n(
16
+ c,
17
+ {
18
+ selectedReason: r,
19
+ onReasonChange: (o) => {
20
+ s(o);
21
+ const a = f[o];
22
+ t(p.OFF_CYCLE_SELECT_REASON, {
23
+ reason: o,
24
+ defaults: a
25
+ });
26
+ }
27
+ }
28
+ );
29
+ }
30
+ export {
31
+ g as OffCycleReasonSelection
32
+ };
33
+ //# sourceMappingURL=OffCycleReasonSelection.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OffCycleReasonSelection.js","sources":["../../../../src/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelection.tsx"],"sourcesContent":["import { useState } from 'react'\nimport { OffCycleReasonSelectionPresentation } from './OffCycleReasonSelectionPresentation'\nimport {\n OFF_CYCLE_REASON_DEFAULTS,\n type OffCycleReason,\n type OffCycleReasonSelectionProps,\n} from './types'\nimport { BaseComponent } from '@/components/Base/Base'\nimport { useBase } from '@/components/Base/useBase'\nimport { useComponentDictionary, useI18n } from '@/i18n'\nimport { componentEvents } from '@/shared/constants'\n\nexport function OffCycleReasonSelection(props: OffCycleReasonSelectionProps) {\n return (\n <BaseComponent {...props}>\n <Root {...props} />\n </BaseComponent>\n )\n}\n\nfunction Root({ dictionary }: OffCycleReasonSelectionProps) {\n useComponentDictionary('Payroll.OffCycleReasonSelection', dictionary)\n useI18n('Payroll.OffCycleReasonSelection')\n\n const { onEvent } = useBase()\n const [selectedReason, setSelectedReason] = useState<OffCycleReason | null>(null)\n\n const handleReasonChange = (reason: OffCycleReason) => {\n setSelectedReason(reason)\n const defaults = OFF_CYCLE_REASON_DEFAULTS[reason]\n onEvent(componentEvents.OFF_CYCLE_SELECT_REASON, {\n reason,\n defaults,\n })\n }\n\n return (\n <OffCycleReasonSelectionPresentation\n selectedReason={selectedReason}\n onReasonChange={handleReasonChange}\n />\n )\n}\n"],"names":["OffCycleReasonSelection","props","jsx","BaseComponent","Root","dictionary","useComponentDictionary","useI18n","onEvent","useBase","selectedReason","setSelectedReason","useState","OffCycleReasonSelectionPresentation","reason","defaults","OFF_CYCLE_REASON_DEFAULTS","componentEvents"],"mappings":";;;;;;;;AAYO,SAASA,EAAwBC,GAAqC;AAC3E,SACE,gBAAAC,EAACC,KAAe,GAAGF,GACjB,4BAACG,GAAA,EAAM,GAAGH,GAAO,EAAA,CACnB;AAEJ;AAEA,SAASG,EAAK,EAAE,YAAAC,KAA4C;AAC1D,EAAAC,EAAuB,mCAAmCD,CAAU,GACpEE,EAAQ,iCAAiC;AAEzC,QAAM,EAAE,SAAAC,EAAA,IAAYC,EAAA,GACd,CAACC,GAAgBC,CAAiB,IAAIC,EAAgC,IAAI;AAWhF,SACE,gBAAAV;AAAA,IAACW;AAAA,IAAA;AAAA,MACC,gBAAAH;AAAA,MACA,gBAZuB,CAACI,MAA2B;AACrD,QAAAH,EAAkBG,CAAM;AACxB,cAAMC,IAAWC,EAA0BF,CAAM;AACjD,QAAAN,EAAQS,EAAgB,yBAAyB;AAAA,UAC/C,QAAAH;AAAA,UACA,UAAAC;AAAA,QAAA,CACD;AAAA,MACH;AAAA,IAKoB;AAAA,EAAA;AAGtB;"}
@@ -0,0 +1,7 @@
1
+ import { OffCycleReason } from './types';
2
+ interface OffCycleReasonSelectionPresentationProps {
3
+ selectedReason: OffCycleReason | null;
4
+ onReasonChange: (reason: OffCycleReason) => void;
5
+ }
6
+ export declare function OffCycleReasonSelectionPresentation({ selectedReason, onReasonChange, }: OffCycleReasonSelectionPresentationProps): import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,39 @@
1
+ import { jsx as l } from "react/jsx-runtime";
2
+ import { useMemo as c } from "react";
3
+ import { useTranslation as a } from "react-i18next";
4
+ import { useComponentContext as p } from "../../../contexts/ComponentAdapter/useComponentContext.js";
5
+ function d({
6
+ selectedReason: e,
7
+ onReasonChange: n
8
+ }) {
9
+ const { t: o } = a("Payroll.OffCycleReasonSelection"), { RadioGroup: t } = p(), i = c(
10
+ () => [
11
+ {
12
+ value: "correction",
13
+ label: o("options.correction.label"),
14
+ description: o("options.correction.description")
15
+ },
16
+ {
17
+ value: "bonus",
18
+ label: o("options.bonus.label"),
19
+ description: o("options.bonus.description")
20
+ }
21
+ ],
22
+ [o]
23
+ ), r = (s) => {
24
+ n(s);
25
+ };
26
+ return /* @__PURE__ */ l(
27
+ t,
28
+ {
29
+ label: o("title"),
30
+ options: i,
31
+ value: e ?? void 0,
32
+ onChange: r
33
+ }
34
+ );
35
+ }
36
+ export {
37
+ d as OffCycleReasonSelectionPresentation
38
+ };
39
+ //# sourceMappingURL=OffCycleReasonSelectionPresentation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OffCycleReasonSelectionPresentation.js","sources":["../../../../src/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelectionPresentation.tsx"],"sourcesContent":["import { useMemo } from 'react'\nimport { useTranslation } from 'react-i18next'\nimport type { OffCycleReason } from './types'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\n\ninterface OffCycleReasonSelectionPresentationProps {\n selectedReason: OffCycleReason | null\n onReasonChange: (reason: OffCycleReason) => void\n}\n\nexport function OffCycleReasonSelectionPresentation({\n selectedReason,\n onReasonChange,\n}: OffCycleReasonSelectionPresentationProps) {\n const { t } = useTranslation('Payroll.OffCycleReasonSelection')\n const { RadioGroup } = useComponentContext()\n\n const options = useMemo(\n () => [\n {\n value: 'correction' as const,\n label: t('options.correction.label'),\n description: t('options.correction.description'),\n },\n {\n value: 'bonus' as const,\n label: t('options.bonus.label'),\n description: t('options.bonus.description'),\n },\n ],\n [t],\n )\n\n const handleChange = (value: string) => {\n onReasonChange(value as OffCycleReason)\n }\n\n return (\n <RadioGroup\n label={t('title')}\n options={options}\n value={selectedReason ?? undefined}\n onChange={handleChange}\n />\n )\n}\n"],"names":["OffCycleReasonSelectionPresentation","selectedReason","onReasonChange","t","useTranslation","RadioGroup","useComponentContext","options","useMemo","handleChange","value","jsx"],"mappings":";;;;AAUO,SAASA,EAAoC;AAAA,EAClD,gBAAAC;AAAA,EACA,gBAAAC;AACF,GAA6C;AAC3C,QAAM,EAAE,GAAAC,EAAA,IAAMC,EAAe,iCAAiC,GACxD,EAAE,YAAAC,EAAA,IAAeC,EAAA,GAEjBC,IAAUC;AAAA,IACd,MAAM;AAAA,MACJ;AAAA,QACE,OAAO;AAAA,QACP,OAAOL,EAAE,0BAA0B;AAAA,QACnC,aAAaA,EAAE,gCAAgC;AAAA,MAAA;AAAA,MAEjD;AAAA,QACE,OAAO;AAAA,QACP,OAAOA,EAAE,qBAAqB;AAAA,QAC9B,aAAaA,EAAE,2BAA2B;AAAA,MAAA;AAAA,IAC5C;AAAA,IAEF,CAACA,CAAC;AAAA,EAAA,GAGEM,IAAe,CAACC,MAAkB;AACtC,IAAAR,EAAeQ,CAAuB;AAAA,EACxC;AAEA,SACE,gBAAAC;AAAA,IAACN;AAAA,IAAA;AAAA,MACC,OAAOF,EAAE,OAAO;AAAA,MAChB,SAAAI;AAAA,MACA,OAAON,KAAkB;AAAA,MACzB,UAAUQ;AAAA,IAAA;AAAA,EAAA;AAGhB;"}
@@ -0,0 +1,5 @@
1
+ import "./types/i18next.d.ts"
2
+ export { OffCycleReasonSelection } from './OffCycleReasonSelection';
3
+ export { OffCycleReasonSelectionPresentation } from './OffCycleReasonSelectionPresentation';
4
+ export type { OffCycleReason, OffCycleReasonDefaults, OffCycleReasonSelectionProps, SelectReasonPayload, WithholdingType, } from './types';
5
+ export { OFF_CYCLE_REASON_DEFAULTS } from './types';
@@ -0,0 +1,15 @@
1
+ import { BaseComponentInterface } from '../../Base/Base';
2
+ export type OffCycleReason = 'bonus' | 'correction';
3
+ export type WithholdingType = 'supplemental' | 'regular';
4
+ export interface OffCycleReasonDefaults {
5
+ skipDeductions: boolean;
6
+ withholdingType: WithholdingType;
7
+ }
8
+ export declare const OFF_CYCLE_REASON_DEFAULTS: Record<OffCycleReason, OffCycleReasonDefaults>;
9
+ export interface SelectReasonPayload {
10
+ reason: OffCycleReason;
11
+ defaults: OffCycleReasonDefaults;
12
+ }
13
+ export interface OffCycleReasonSelectionProps extends BaseComponentInterface<'Payroll.OffCycleReasonSelection'> {
14
+ companyId: string;
15
+ }
@@ -0,0 +1,14 @@
1
+ const e = {
2
+ bonus: {
3
+ skipDeductions: !0,
4
+ withholdingType: "supplemental"
5
+ },
6
+ correction: {
7
+ skipDeductions: !1,
8
+ withholdingType: "regular"
9
+ }
10
+ };
11
+ export {
12
+ e as OFF_CYCLE_REASON_DEFAULTS
13
+ };
14
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sources":["../../../../src/components/Payroll/OffCycleReasonSelection/types.ts"],"sourcesContent":["import type { BaseComponentInterface } from '@/components/Base/Base'\n\nexport type OffCycleReason = 'bonus' | 'correction'\n\nexport type WithholdingType = 'supplemental' | 'regular'\n\nexport interface OffCycleReasonDefaults {\n skipDeductions: boolean\n withholdingType: WithholdingType\n}\n\nexport const OFF_CYCLE_REASON_DEFAULTS: Record<OffCycleReason, OffCycleReasonDefaults> = {\n bonus: {\n skipDeductions: true,\n withholdingType: 'supplemental',\n },\n correction: {\n skipDeductions: false,\n withholdingType: 'regular',\n },\n}\n\nexport interface SelectReasonPayload {\n reason: OffCycleReason\n defaults: OffCycleReasonDefaults\n}\n\nexport interface OffCycleReasonSelectionProps extends BaseComponentInterface<'Payroll.OffCycleReasonSelection'> {\n companyId: string\n}\n"],"names":["OFF_CYCLE_REASON_DEFAULTS"],"mappings":"AAWO,MAAMA,IAA4E;AAAA,EACvF,OAAO;AAAA,IACL,gBAAgB;AAAA,IAChB,iBAAiB;AAAA,EAAA;AAAA,EAEnB,YAAY;AAAA,IACV,gBAAgB;AAAA,IAChB,iBAAiB;AAAA,EAAA;AAErB;"}
@@ -0,0 +1,2 @@
1
+ import { PayPeriodDateFormProps } from './PayPeriodDateFormTypes';
2
+ export declare function PayPeriodDateForm(props: PayPeriodDateFormProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,35 @@
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import { useState as h } from "react";
3
+ import { useFormContext as y } from "react-hook-form";
4
+ import { PayPeriodDateFormPresentation as u } from "./PayPeriodDateFormPresentation.js";
5
+ import { BaseComponent as C } from "../../Base/Base.js";
6
+ import { useBase as D } from "../../Base/useBase.js";
7
+ import { useComponentDictionary as P, useI18n as f } from "../../../i18n/I18n.js";
8
+ import { componentEvents as O } from "../../../shared/constants.js";
9
+ function T(t) {
10
+ return /* @__PURE__ */ o(C, { ...t, children: /* @__PURE__ */ o(S, { ...t, children: t.children }) });
11
+ }
12
+ function S({ onEvent: t, dictionary: n, initialValues: r }) {
13
+ P("Payroll.PayPeriodDateForm", n), f("Payroll.PayPeriodDateForm");
14
+ const { baseSubmitHandler: i } = D(), { handleSubmit: m } = y(), [s, a] = h(r?.isCheckOnly ?? !1), c = async (e) => {
15
+ await i(e, () => (t(O.RUN_PAYROLL_DATES_CONFIGURED, {
16
+ isCheckOnly: e.isCheckOnly,
17
+ startDate: e.startDate?.toISOString().split("T")[0],
18
+ endDate: e.endDate?.toISOString().split("T")[0],
19
+ checkDate: e.checkDate?.toISOString().split("T")[0]
20
+ }), Promise.resolve()));
21
+ }, l = (e) => {
22
+ a(e);
23
+ };
24
+ return /* @__PURE__ */ o("form", { onSubmit: m(c), children: /* @__PURE__ */ o(
25
+ u,
26
+ {
27
+ isCheckOnly: s,
28
+ onCheckOnlyChange: l
29
+ }
30
+ ) });
31
+ }
32
+ export {
33
+ T as PayPeriodDateForm
34
+ };
35
+ //# sourceMappingURL=PayPeriodDateForm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PayPeriodDateForm.js","sources":["../../../../src/components/Payroll/PayPeriodDateForm/PayPeriodDateForm.tsx"],"sourcesContent":["import { useState } from 'react'\nimport { useFormContext } from 'react-hook-form'\nimport { PayPeriodDateFormPresentation } from './PayPeriodDateFormPresentation'\nimport { type PayPeriodDateFormData, type PayPeriodDateFormProps } from './PayPeriodDateFormTypes'\nimport { BaseComponent, useBase } from '@/components/Base'\nimport { useComponentDictionary, useI18n } from '@/i18n'\nimport { componentEvents } from '@/shared/constants'\n\nexport function PayPeriodDateForm(props: PayPeriodDateFormProps) {\n return (\n <BaseComponent {...props}>\n <Root {...props}>{props.children}</Root>\n </BaseComponent>\n )\n}\n\nfunction Root({ onEvent, dictionary, initialValues }: PayPeriodDateFormProps) {\n useComponentDictionary('Payroll.PayPeriodDateForm', dictionary)\n useI18n('Payroll.PayPeriodDateForm')\n const { baseSubmitHandler } = useBase()\n\n const { handleSubmit } = useFormContext<PayPeriodDateFormData>()\n\n const [isCheckOnly, setIsCheckOnly] = useState(initialValues?.isCheckOnly ?? false)\n\n const onSubmit = async (data: PayPeriodDateFormData) => {\n await baseSubmitHandler(data, () => {\n onEvent(componentEvents.RUN_PAYROLL_DATES_CONFIGURED, {\n isCheckOnly: data.isCheckOnly,\n startDate: data.startDate?.toISOString().split('T')[0],\n endDate: data.endDate?.toISOString().split('T')[0],\n checkDate: data.checkDate?.toISOString().split('T')[0],\n })\n return Promise.resolve()\n })\n }\n\n const handleCheckOnlyChange = (checked: boolean) => {\n setIsCheckOnly(checked)\n }\n\n return (\n <form onSubmit={handleSubmit(onSubmit)}>\n <PayPeriodDateFormPresentation\n isCheckOnly={isCheckOnly}\n onCheckOnlyChange={handleCheckOnlyChange}\n />\n </form>\n )\n}\n"],"names":["PayPeriodDateForm","props","jsx","BaseComponent","Root","onEvent","dictionary","initialValues","useComponentDictionary","useI18n","baseSubmitHandler","useBase","handleSubmit","useFormContext","isCheckOnly","setIsCheckOnly","useState","onSubmit","data","componentEvents","handleCheckOnlyChange","checked","PayPeriodDateFormPresentation"],"mappings":";;;;;;;;AAQO,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,SAASG,EAAK,EAAE,SAAAC,GAAS,YAAAC,GAAY,eAAAC,KAAyC;AAC5E,EAAAC,EAAuB,6BAA6BF,CAAU,GAC9DG,EAAQ,2BAA2B;AACnC,QAAM,EAAE,mBAAAC,EAAA,IAAsBC,EAAA,GAExB,EAAE,cAAAC,EAAA,IAAiBC,EAAA,GAEnB,CAACC,GAAaC,CAAc,IAAIC,EAAST,GAAe,eAAe,EAAK,GAE5EU,IAAW,OAAOC,MAAgC;AACtD,UAAMR,EAAkBQ,GAAM,OAC5Bb,EAAQc,EAAgB,8BAA8B;AAAA,MACpD,aAAaD,EAAK;AAAA,MAClB,WAAWA,EAAK,WAAW,YAAA,EAAc,MAAM,GAAG,EAAE,CAAC;AAAA,MACrD,SAASA,EAAK,SAAS,YAAA,EAAc,MAAM,GAAG,EAAE,CAAC;AAAA,MACjD,WAAWA,EAAK,WAAW,YAAA,EAAc,MAAM,GAAG,EAAE,CAAC;AAAA,IAAA,CACtD,GACM,QAAQ,QAAA,EAChB;AAAA,EACH,GAEME,IAAwB,CAACC,MAAqB;AAClD,IAAAN,EAAeM,CAAO;AAAA,EACxB;AAEA,SACE,gBAAAnB,EAAC,QAAA,EAAK,UAAUU,EAAaK,CAAQ,GACnC,UAAA,gBAAAf;AAAA,IAACoB;AAAA,IAAA;AAAA,MACC,aAAAR;AAAA,MACA,mBAAmBM;AAAA,IAAA;AAAA,EAAA,GAEvB;AAEJ;"}
@@ -0,0 +1,2 @@
1
+ import { PayPeriodDateFormPresentationProps } from './PayPeriodDateFormTypes';
2
+ export declare function PayPeriodDateFormPresentation({ isCheckOnly, onCheckOnlyChange, isPending, }: Omit<PayPeriodDateFormPresentationProps, 'payrollType' | 'minCheckDate'>): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,65 @@
1
+ import { jsxs as i, jsx as t } from "react/jsx-runtime";
2
+ import { useFormContext as D, useWatch as b } from "react-hook-form";
3
+ import { useTranslation as f } from "react-i18next";
4
+ import a from "./PayPeriodDateFormPresentation.module.scss.js";
5
+ import { useI18n as y } from "../../../i18n/I18n.js";
6
+ import { useComponentContext as P } from "../../../contexts/ComponentAdapter/useComponentContext.js";
7
+ import "../../../shared/constants.js";
8
+ import "classnames";
9
+ import { DatePickerField as r } from "../../Common/Fields/DatePickerField/DatePickerField.js";
10
+ import "react";
11
+ import { CheckboxField as k } from "../../Common/Fields/CheckboxField/CheckboxField.js";
12
+ function j({
13
+ isCheckOnly: o,
14
+ onCheckOnlyChange: l,
15
+ isPending: c
16
+ }) {
17
+ const { Heading: d, Text: m, Button: p } = P();
18
+ y("Payroll.PayPeriodDateForm");
19
+ const { t: e } = f("Payroll.PayPeriodDateForm"), { setValue: n } = D(), h = b({ name: "startDate" }), u = (s) => {
20
+ l(s), s && (n("startDate", null), n("endDate", null));
21
+ };
22
+ return /* @__PURE__ */ i("div", { className: a.root, children: [
23
+ /* @__PURE__ */ i("div", { className: a.sectionHeader, children: [
24
+ /* @__PURE__ */ t(d, { as: "h2", children: e("pageTitle") }),
25
+ /* @__PURE__ */ t(m, { variant: "supporting", children: e("description") })
26
+ ] }),
27
+ /* @__PURE__ */ i("div", { className: a.formSection, children: [
28
+ !o && /* @__PURE__ */ i("div", { className: a.dateFields, children: [
29
+ /* @__PURE__ */ t(r, { name: "startDate", label: e("startDateLabel"), isRequired: !0 }),
30
+ /* @__PURE__ */ t(
31
+ r,
32
+ {
33
+ name: "endDate",
34
+ label: e("endDateLabel"),
35
+ isRequired: !0,
36
+ isDisabled: !h
37
+ }
38
+ )
39
+ ] }),
40
+ /* @__PURE__ */ t("div", { className: a.checkDateField, children: /* @__PURE__ */ t(
41
+ r,
42
+ {
43
+ name: "checkDate",
44
+ label: e("checkDateLabel"),
45
+ description: o ? void 0 : e("checkDateDescription"),
46
+ isRequired: !0
47
+ }
48
+ ) }),
49
+ /* @__PURE__ */ t(
50
+ k,
51
+ {
52
+ name: "isCheckOnly",
53
+ label: e("checkOnlyLabel"),
54
+ description: e("checkOnlyDescription"),
55
+ onChange: u
56
+ }
57
+ )
58
+ ] }),
59
+ /* @__PURE__ */ t("div", { className: a.actions, children: /* @__PURE__ */ t(p, { type: "submit", isDisabled: c, children: e("continueButton") }) })
60
+ ] });
61
+ }
62
+ export {
63
+ j as PayPeriodDateFormPresentation
64
+ };
65
+ //# sourceMappingURL=PayPeriodDateFormPresentation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PayPeriodDateFormPresentation.js","sources":["../../../../src/components/Payroll/PayPeriodDateForm/PayPeriodDateFormPresentation.tsx"],"sourcesContent":["import { useFormContext, useWatch } from 'react-hook-form'\nimport { useTranslation } from 'react-i18next'\nimport styles from './PayPeriodDateFormPresentation.module.scss'\nimport type {\n PayPeriodDateFormData,\n PayPeriodDateFormPresentationProps,\n} from './PayPeriodDateFormTypes'\nimport { useI18n } from '@/i18n'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\nimport { CheckboxField, DatePickerField } from '@/components/Common'\n\nexport function PayPeriodDateFormPresentation({\n isCheckOnly,\n onCheckOnlyChange,\n isPending,\n}: Omit<PayPeriodDateFormPresentationProps, 'payrollType' | 'minCheckDate'>) {\n const { Heading, Text, Button } = useComponentContext()\n useI18n('Payroll.PayPeriodDateForm')\n const { t } = useTranslation('Payroll.PayPeriodDateForm')\n const { setValue } = useFormContext<PayPeriodDateFormData>()\n\n const startDate = useWatch<PayPeriodDateFormData, 'startDate'>({ name: 'startDate' })\n\n const handleCheckOnlyChange = (checked: boolean) => {\n onCheckOnlyChange(checked)\n if (checked) {\n setValue('startDate', null)\n setValue('endDate', null)\n }\n }\n\n return (\n <div className={styles.root}>\n <div className={styles.sectionHeader}>\n <Heading as=\"h2\">{t('pageTitle')}</Heading>\n <Text variant=\"supporting\">{t('description')}</Text>\n </div>\n\n <div className={styles.formSection}>\n {!isCheckOnly && (\n <div className={styles.dateFields}>\n <DatePickerField name=\"startDate\" label={t('startDateLabel')} isRequired />\n <DatePickerField\n name=\"endDate\"\n label={t('endDateLabel')}\n isRequired\n isDisabled={!startDate}\n />\n </div>\n )}\n\n <div className={styles.checkDateField}>\n <DatePickerField\n name=\"checkDate\"\n label={t('checkDateLabel')}\n description={isCheckOnly ? undefined : t('checkDateDescription')}\n isRequired\n />\n </div>\n\n <CheckboxField\n name=\"isCheckOnly\"\n label={t('checkOnlyLabel')}\n description={t('checkOnlyDescription')}\n onChange={handleCheckOnlyChange}\n />\n </div>\n\n <div className={styles.actions}>\n <Button type=\"submit\" isDisabled={isPending}>\n {t('continueButton')}\n </Button>\n </div>\n </div>\n )\n}\n"],"names":["PayPeriodDateFormPresentation","isCheckOnly","onCheckOnlyChange","isPending","Heading","Text","Button","useComponentContext","useI18n","t","useTranslation","setValue","useFormContext","startDate","useWatch","handleCheckOnlyChange","checked","jsxs","styles","jsx","DatePickerField","CheckboxField"],"mappings":";;;;;;;;;;;AAWO,SAASA,EAA8B;A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UACC,MAAK;AAAA,UACL,OAAOX,EAAE,gBAAgB;AAAA,UACzB,aAAaR,IAAc,SAAYQ,EAAE,sBAAsB;AAAA,UAC/D,YAAU;AAAA,QAAA;AAAA,MAAA,GAEd;AAAA,MAEA,gBAAAU;AAAA,QAACE;AAAA,QAAA;AAAA,UACC,MAAK;AAAA,UACL,OAAOZ,EAAE,gBAAgB;AAAA,UACzB,aAAaA,EAAE,sBAAsB;AAAA,UACrC,UAAUM;AAAA,QAAA;AAAA,MAAA;AAAA,IACZ,GACF;AAAA,IAEA,gBAAAI,EAAC,OAAA,EAAI,WAAWD,EAAO,SACrB,UAAA,gBAAAC,EAACb,GAAA,EAAO,MAAK,UAAS,YAAYH,GAC/B,UAAAM,EAAE,gBAAgB,GACrB,EAAA,CACF;AAAA,EAAA,GACF;AAEJ;"}
@@ -0,0 +1,18 @@
1
+ const t = "_root_h0at5_1", e = "_sectionHeader_h0at5_7", o = "_formSection_h0at5_13", c = "_dateFields_h0at5_19", a = "_checkDateField_h0at5_28", s = "_actions_h0at5_32", _ = {
2
+ root: t,
3
+ sectionHeader: e,
4
+ formSection: o,
5
+ dateFields: c,
6
+ checkDateField: a,
7
+ actions: s
8
+ };
9
+ export {
10
+ s as actions,
11
+ a as checkDateField,
12
+ c as dateFields,
13
+ _ as default,
14
+ o as formSection,
15
+ t as root,
16
+ e as sectionHeader
17
+ };
18
+ //# sourceMappingURL=PayPeriodDateFormPresentation.module.scss.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PayPeriodDateFormPresentation.module.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
@@ -0,0 +1,53 @@
1
+ import { z } from 'zod';
2
+ import { BaseComponentInterface } from '../../Base/Base';
3
+ export type PayrollDateType = 'bonus' | 'correction';
4
+ export interface PayPeriodDateFormProps extends BaseComponentInterface<'Payroll.PayPeriodDateForm'> {
5
+ companyId: string;
6
+ payrollType?: PayrollDateType;
7
+ initialValues?: {
8
+ isCheckOnly?: boolean;
9
+ startDate?: Date;
10
+ endDate?: Date;
11
+ checkDate?: Date;
12
+ };
13
+ }
14
+ export interface PayPeriodDateFormPresentationProps {
15
+ isCheckOnly: boolean;
16
+ onCheckOnlyChange: (value: boolean) => void;
17
+ isPending?: boolean;
18
+ payrollType: PayrollDateType;
19
+ minCheckDate: Date;
20
+ }
21
+ export interface PayPeriodDateFormData {
22
+ isCheckOnly: boolean;
23
+ startDate: Date | null;
24
+ endDate: Date | null;
25
+ checkDate: Date | null;
26
+ }
27
+ export declare const createPayPeriodDateFormSchema: (t: (key: string) => string, payrollType: PayrollDateType, minCheckDate: Date) => z.ZodEffects<z.ZodObject<{
28
+ isCheckOnly: z.ZodBoolean;
29
+ startDate: z.ZodNullable<z.ZodDate>;
30
+ endDate: z.ZodNullable<z.ZodDate>;
31
+ checkDate: z.ZodNullable<z.ZodDate>;
32
+ }, "strip", z.ZodTypeAny, {
33
+ startDate: Date | null;
34
+ endDate: Date | null;
35
+ checkDate: Date | null;
36
+ isCheckOnly: boolean;
37
+ }, {
38
+ startDate: Date | null;
39
+ endDate: Date | null;
40
+ checkDate: Date | null;
41
+ isCheckOnly: boolean;
42
+ }>, {
43
+ startDate: Date | null;
44
+ endDate: Date | null;
45
+ checkDate: Date | null;
46
+ isCheckOnly: boolean;
47
+ }, {
48
+ startDate: Date | null;
49
+ endDate: Date | null;
50
+ checkDate: Date | null;
51
+ isCheckOnly: boolean;
52
+ }>;
53
+ export type PayPeriodDateFormSchema = ReturnType<typeof createPayPeriodDateFormSchema>;
@@ -0,0 +1,3 @@
1
+ import "./types/i18next.d.ts"
2
+ export { PayPeriodDateForm } from './PayPeriodDateForm';
3
+ export type { PayPeriodDateFormProps, PayPeriodDateFormData, PayrollDateType, } from './PayPeriodDateFormTypes';
@@ -0,0 +1,5 @@
1
+ export declare function usePayPeriodDateValidation(): {
2
+ today: Date;
3
+ minCheckDate: Date;
4
+ achLeadTimeBusinessDays: number;
5
+ };
@@ -3,9 +3,11 @@ import { useTranslation as K } from "react-i18next";
3
3
  import { getBlockerTranslationKeys as P } from "../payrollHelpers.js";
4
4
  import { useComponentContext as v } from "../../../../contexts/ComponentAdapter/useComponentContext.js";
5
5
  import { Flex as m } from "../../../Common/Flex/Flex.js";
6
+ import "classnames";
7
+ import "../../../../shared/constants.js";
6
8
  import "react";
7
9
  import { useI18n as D } from "../../../../i18n/I18n.js";
8
- function F({
10
+ function M({
9
11
  blockers: o,
10
12
  onMultipleViewClick: i,
11
13
  multipleViewLabel: f,
@@ -48,6 +50,6 @@ function F({
48
50
  );
49
51
  }
50
52
  export {
51
- F as PayrollBlockerAlerts
53
+ M as PayrollBlockerAlerts
52
54
  };
53
55
  //# sourceMappingURL=PayrollBlockerAlerts.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PayrollBlockerAlerts.js","sources":["../../../../../src/components/Payroll/PayrollBlocker/components/PayrollBlockerAlerts.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport { type ApiPayrollBlocker, getBlockerTranslationKeys } from '../payrollHelpers'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\nimport { Flex } from '@/components/Common'\nimport { useI18n } from '@/i18n'\n\ninterface PayrollBlockerAlertsProps {\n blockers: ApiPayrollBlocker[]\n className?: string\n onMultipleViewClick?: () => void\n multipleViewLabel?: string\n}\n\n/**\n * PayrollBlockerAlerts - Alert-style component for inline blocker display\n * Shows single blocker as alert, or multiple blockers as summary with \"Review\" button\n * Returns null for empty blocker arrays\n */\nexport function PayrollBlockerAlerts({\n blockers,\n onMultipleViewClick,\n multipleViewLabel,\n className,\n}: PayrollBlockerAlertsProps) {\n useI18n('Payroll.PayrollBlocker')\n const { t } = useTranslation('Payroll.PayrollBlocker')\n const { Alert, Button, Text, UnorderedList } = useComponentContext()\n\n // Return null for empty blockers array\n if (blockers.length === 0) {\n return null\n }\n\n const hasMultipleBlockers = blockers.length > 1\n\n const enrichedBlockers = blockers.map(blocker => {\n const translationKeys = getBlockerTranslationKeys(blocker.key)\n\n const title = t(translationKeys.titleKey, {\n defaultValue: t('defaultBlockerDescription'),\n })\n const description = t(translationKeys.descriptionKey, {\n defaultValue: blocker.message || t('defaultBlockerDescription'),\n })\n const helpText = t(translationKeys.helpTextKey, { defaultValue: t('defaultBlockerHelp') })\n\n return {\n ...blocker,\n title,\n description,\n helpText,\n }\n })\n\n const singleBlocker = enrichedBlockers[0]\n\n if (!hasMultipleBlockers && singleBlocker) {\n return (\n <Alert status=\"error\" label={singleBlocker.title} className={className}>\n <Flex flexDirection=\"column\" gap={8}>\n <Text>{singleBlocker.description}</Text>\n {singleBlocker.helpText && singleBlocker.helpText !== singleBlocker.description && (\n <Text variant=\"supporting\" size=\"sm\">\n {singleBlocker.helpText}\n </Text>\n )}\n </Flex>\n </Alert>\n )\n }\n\n const listItems = enrichedBlockers.map(blocker => blocker.title)\n const defaultMultipleLabel = multipleViewLabel || t('viewAllBlockers')\n\n return (\n <Alert\n status=\"error\"\n label={t('multipleIssuesTitle', { count: blockers.length })}\n className={className}\n >\n <Flex flexDirection=\"column\" gap={16}>\n <UnorderedList items={listItems} />\n {onMultipleViewClick && (\n <div>\n <Button variant=\"secondary\" onClick={onMultipleViewClick} title={defaultMultipleLabel}>\n {defaultMultipleLabel}\n </Button>\n </div>\n )}\n </Flex>\n </Alert>\n )\n}\n"],"names":["PayrollBlockerAlerts","blockers","onMultipleViewClick","multipleViewLabel","className","useI18n","t","useTranslation","Alert","Button","Text","UnorderedList","useComponentContext","hasMultipleBlockers","enrichedBlockers","blocker","translationKeys","getBlockerTranslationKeys","title","description","helpText","singleBlocker","jsx","jsxs","Flex","listItems","defaultMultipleLabel"],"mappings":";;;;;;;AAkBO,SAASA,EAAqB;AAAA,EACnC,UAAAC;AAAA,EACA,qBAAAC;AAAA,EACA,mBAAAC;AAAA,EACA,WAAAC;AACF,GAA8B;AAC5B,EAAAC,EAAQ,wBAAwB;AAChC,QAAM,EAAE,GAAAC,EAAA,IAAMC,EAAe,wBAAw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uBAAuB,EAAE,OAAOL,EAAS,QAAQ;AAAA,MAC1D,WAAAG;AAAA,MAEA,UAAA,gBAAAmB,EAACC,GAAA,EAAK,eAAc,UAAS,KAAK,IAChC,UAAA;AAAA,QAAA,gBAAAF,EAACX,GAAA,EAAc,OAAOc,EAAA,CAAW;AAAA,QAChCvB,KACC,gBAAAoB,EAAC,OAAA,EACC,UAAA,gBAAAA,EAACb,GAAA,EAAO,SAAQ,aAAY,SAASP,GAAqB,OAAOwB,GAC9D,UAAAA,EAAA,CACH,EAAA,CACF;AAAA,MAAA,EAAA,CAEJ;AAAA,IAAA;AAAA,EAAA;AAGN;"}
1
+ {"version":3,"file":"PayrollBlockerAlerts.js","sources":["../../../../../src/components/Payroll/PayrollBlocker/components/PayrollBlockerAlerts.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport { type ApiPayrollBlocker, getBlockerTranslationKeys } from '../payrollHelpers'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\nimport { Flex } from '@/components/Common'\nimport { useI18n } from '@/i18n'\n\ninterface PayrollBlockerAlertsProps {\n blockers: ApiPayrollBlocker[]\n className?: string\n onMultipleViewClick?: () => void\n multipleViewLabel?: string\n}\n\n/**\n * PayrollBlockerAlerts - Alert-style component for inline blocker display\n * Shows single blocker as alert, or multiple blockers as summary with \"Review\" button\n * Returns null for empty blocker arrays\n */\nexport function PayrollBlockerAlerts({\n blockers,\n onMultipleViewClick,\n multipleViewLabel,\n className,\n}: PayrollBlockerAlertsProps) {\n useI18n('Payroll.PayrollBlocker')\n const { t } = useTranslation('Payroll.PayrollBlocker')\n const { Alert, Button, Text, UnorderedList } = useComponentContext()\n\n // Return null for empty blockers array\n if (blockers.length === 0) {\n return null\n }\n\n const hasMultipleBlockers = blockers.length > 1\n\n const enrichedBlockers = blockers.map(blocker => {\n const translationKeys = getBlockerTranslationKeys(blocker.key)\n\n const title = t(translationKeys.titleKey, {\n defaultValue: t('defaultBlockerDescription'),\n })\n const description = t(translationKeys.descriptionKey, {\n defaultValue: blocker.message || t('defaultBlockerDescription'),\n })\n const helpText = t(translationKeys.helpTextKey, { defaultValue: t('defaultBlockerHelp') })\n\n return {\n ...blocker,\n title,\n description,\n helpText,\n }\n })\n\n const singleBlocker = enrichedBlockers[0]\n\n if (!hasMultipleBlockers && singleBlocker) {\n return (\n <Alert status=\"error\" label={singleBlocker.title} className={className}>\n <Flex flexDirection=\"column\" gap={8}>\n <Text>{singleBlocker.description}</Text>\n {singleBlocker.helpText && singleBlocker.helpText !== singleBlocker.description && (\n <Text variant=\"supporting\" size=\"sm\">\n {singleBlocker.helpText}\n </Text>\n )}\n </Flex>\n </Alert>\n )\n }\n\n const listItems = enrichedBlockers.map(blocker => blocker.title)\n const defaultMultipleLabel = multipleViewLabel || t('viewAllBlockers')\n\n return (\n <Alert\n status=\"error\"\n label={t('multipleIssuesTitle', { count: blockers.length })}\n className={className}\n >\n <Flex flexDirection=\"column\" gap={16}>\n <UnorderedList items={listItems} />\n {onMultipleViewClick && (\n <div>\n <Button variant=\"secondary\" onClick={onMultipleViewClick} title={defaultMultipleLabel}>\n {defaultMultipleLabel}\n </Button>\n </div>\n )}\n </Flex>\n </Alert>\n )\n}\n"],"names":["PayrollBlockerAlerts","blockers","onMultipleViewClick","multipleViewLabel","className","useI18n","t","useTranslation","Alert","Button","Text","UnorderedList","useComponentContext","hasMultipleBlockers","enrichedBlockers","blocker","translationKeys","getBlockerTranslationKeys","title","description","helpText","singleBlocker","jsx","jsxs","Flex","listItems","defaultMultipleLabel"],"mappings":";;;;;;;;;AAkBO,SAASA,EAAqB;AAAA,EACnC,UAAAC;AAAA,EACA,qBAAAC;AAAA,EACA,mBAAAC;AAAA,EACA,WAAAC;AACF,GAA8B;AAC5B,EAAAC,EAAQ,wBAAwB;AAChC,QAAM,EAAE,GAAAC,EAAA,IAAMC,EAAe,wBAAwB,GAC/C,EAAE,OAAAC,GAAO,QAAAC,GAAQ,MAAAC,GAAM,eAAAC,EAAA,IAA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