@gusto/embedded-react-sdk 0.24.1 → 0.26.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 (504) hide show
  1. package/CHANGELOG.md +118 -0
  2. package/dist/assets/icons/icon-file-jpg.svg.js +10 -0
  3. package/dist/assets/icons/icon-file-jpg.svg.js.map +1 -0
  4. package/dist/assets/icons/icon-file-pdf.svg.js +10 -0
  5. package/dist/assets/icons/icon-file-pdf.svg.js.map +1 -0
  6. package/dist/assets/icons/icon-file-png.svg.js +10 -0
  7. package/dist/assets/icons/icon-file-png.svg.js.map +1 -0
  8. package/dist/assets/icons/icon-trashcan.svg.js +10 -0
  9. package/dist/assets/icons/icon-trashcan.svg.js.map +1 -0
  10. package/dist/assets/icons/slash-circle.svg.js +10 -0
  11. package/dist/assets/icons/slash-circle.svg.js.map +1 -0
  12. package/dist/components/Base/Base.d.ts +1 -1
  13. package/dist/components/Base/Base.js +12 -13
  14. package/dist/components/Base/Base.js.map +1 -1
  15. package/dist/components/Common/Fields/FileInputField/FileInputField.d.ts +5 -0
  16. package/dist/components/Common/Fields/FileInputField/FileInputField.js +34 -0
  17. package/dist/components/Common/Fields/FileInputField/FileInputField.js.map +1 -0
  18. package/dist/components/Common/Fields/FileInputField/index.d.ts +2 -0
  19. package/dist/components/Common/PaginationControl/PaginationControl.js +41 -40
  20. package/dist/components/Common/PaginationControl/PaginationControl.js.map +1 -1
  21. package/dist/components/Common/PaginationControl/PaginationControlTypes.d.ts +1 -0
  22. package/dist/components/Common/SignatureForm/SignatureForm.js +2 -3
  23. package/dist/components/Common/SignatureForm/SignatureForm.js.map +1 -1
  24. package/dist/components/Common/SignatureForm/SignatureFormActions.js +3 -4
  25. package/dist/components/Common/SignatureForm/SignatureFormActions.js.map +1 -1
  26. package/dist/components/Common/SignatureForm/SignatureFormFields.js +6 -7
  27. package/dist/components/Common/SignatureForm/SignatureFormFields.js.map +1 -1
  28. package/dist/components/Common/UI/Alert/Alert.js +10 -10
  29. package/dist/components/Common/UI/Alert/Alert.js.map +1 -1
  30. package/dist/components/Common/UI/Alert/Alert.module.scss.js +14 -14
  31. package/dist/components/Common/UI/Badge/Badge.module.scss.js +1 -1
  32. package/dist/components/Common/UI/Banner/Banner.module.scss.js +4 -4
  33. package/dist/components/Common/UI/ComboBox/ComboBox.module.scss.js +6 -6
  34. package/dist/components/Common/UI/FileInput/FileInput.d.ts +2 -0
  35. package/dist/components/Common/UI/FileInput/FileInput.js +150 -0
  36. package/dist/components/Common/UI/FileInput/FileInput.js.map +1 -0
  37. package/dist/components/Common/UI/FileInput/FileInput.module.scss.js +36 -0
  38. package/dist/components/Common/UI/FileInput/FileInput.module.scss.js.map +1 -0
  39. package/dist/components/Common/UI/FileInput/FileInputTypes.d.ts +45 -0
  40. package/dist/components/Common/UI/FileInput/FileInputTypes.js +8 -0
  41. package/dist/components/Common/UI/FileInput/FileInputTypes.js.map +1 -0
  42. package/dist/components/Common/UI/FileInput/index.d.ts +4 -0
  43. package/dist/components/Common/UI/Input/Input.module.scss.js +7 -7
  44. package/dist/components/Common/UI/List/List.module.scss.js +1 -1
  45. package/dist/components/Common/UI/Modal/Modal.js +41 -40
  46. package/dist/components/Common/UI/Modal/Modal.js.map +1 -1
  47. package/dist/components/Common/UI/Modal/Modal.module.scss.js +4 -4
  48. package/dist/components/Common/UI/Select/Select.module.scss.js +6 -6
  49. package/dist/components/Common/UI/TextArea/TextArea.module.scss.js +4 -4
  50. package/dist/components/Common/UI/TextInput/TextInput.js +27 -23
  51. package/dist/components/Common/UI/TextInput/TextInput.js.map +1 -1
  52. package/dist/components/Common/UI/TextInput/TextInputTypes.d.ts +1 -1
  53. package/dist/components/Common/UI/TextInput/TextInputTypes.js.map +1 -1
  54. package/dist/components/Company/AssignSignatory/AssignSignatory.js +2 -3
  55. package/dist/components/Company/AssignSignatory/AssignSignatory.js.map +1 -1
  56. package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js +2 -3
  57. package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js.map +1 -1
  58. package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.js +2 -3
  59. package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.js.map +1 -1
  60. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.js +5 -6
  61. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.js.map +1 -1
  62. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js +5 -4
  63. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js.map +1 -1
  64. package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.js +2 -3
  65. package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.js.map +1 -1
  66. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatoryForm.js +4 -5
  67. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatoryForm.js.map +1 -1
  68. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js +5 -4
  69. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js.map +1 -1
  70. package/dist/components/Company/AssignSignatory/TitleSelect.js +3 -4
  71. package/dist/components/Company/AssignSignatory/TitleSelect.js.map +1 -1
  72. package/dist/components/Company/AssignSignatory/useAssignSignatory.js +7 -6
  73. package/dist/components/Company/AssignSignatory/useAssignSignatory.js.map +1 -1
  74. package/dist/components/Company/BankAccount/BankAccountForm/Actions.js +8 -9
  75. package/dist/components/Company/BankAccount/BankAccountForm/Actions.js.map +1 -1
  76. package/dist/components/Company/BankAccount/BankAccountForm/Form.js +4 -5
  77. package/dist/components/Company/BankAccount/BankAccountForm/Form.js.map +1 -1
  78. package/dist/components/Company/BankAccount/BankAccountForm/context.js +5 -4
  79. package/dist/components/Company/BankAccount/BankAccountForm/context.js.map +1 -1
  80. package/dist/components/Company/BankAccount/BankAccountList/Actions.js +2 -3
  81. package/dist/components/Company/BankAccount/BankAccountList/Actions.js.map +1 -1
  82. package/dist/components/Company/BankAccount/BankAccountVerify/Actions.js +6 -7
  83. package/dist/components/Company/BankAccount/BankAccountVerify/Actions.js.map +1 -1
  84. package/dist/components/Company/BankAccount/BankAccountVerify/Form.js +4 -5
  85. package/dist/components/Company/BankAccount/BankAccountVerify/Form.js.map +1 -1
  86. package/dist/components/Company/DocumentSigner/DocumentList/Actions.js +2 -3
  87. package/dist/components/Company/DocumentSigner/DocumentList/Actions.js.map +1 -1
  88. package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.js +8 -9
  89. package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.js.map +1 -1
  90. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js +5 -4
  91. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  92. package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js +2 -3
  93. package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js.map +1 -1
  94. package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js +5 -4
  95. package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js.map +1 -1
  96. package/dist/components/Company/FederalTaxes/Actions.js +6 -7
  97. package/dist/components/Company/FederalTaxes/Actions.js.map +1 -1
  98. package/dist/components/Company/FederalTaxes/FederalTaxes.js +2 -3
  99. package/dist/components/Company/FederalTaxes/FederalTaxes.js.map +1 -1
  100. package/dist/components/Company/FederalTaxes/Form.js +2 -3
  101. package/dist/components/Company/FederalTaxes/Form.js.map +1 -1
  102. package/dist/components/Company/FederalTaxes/useFederalTaxes.js +10 -9
  103. package/dist/components/Company/FederalTaxes/useFederalTaxes.js.map +1 -1
  104. package/dist/components/Company/Industry/Actions.js +7 -8
  105. package/dist/components/Company/Industry/Actions.js.map +1 -1
  106. package/dist/components/Company/Industry/Context.js +8 -7
  107. package/dist/components/Company/Industry/Context.js.map +1 -1
  108. package/dist/components/Company/Industry/Edit.js +2 -3
  109. package/dist/components/Company/Industry/Edit.js.map +1 -1
  110. package/dist/components/Company/Locations/LocationForm/Actions.js +6 -7
  111. package/dist/components/Company/Locations/LocationForm/Actions.js.map +1 -1
  112. package/dist/components/Company/Locations/LocationForm/Form.js +4 -5
  113. package/dist/components/Company/Locations/LocationForm/Form.js.map +1 -1
  114. package/dist/components/Company/Locations/LocationForm/LocationForm.js +2 -3
  115. package/dist/components/Company/Locations/LocationForm/LocationForm.js.map +1 -1
  116. package/dist/components/Company/Locations/LocationForm/useLocationForm.js +5 -4
  117. package/dist/components/Company/Locations/LocationForm/useLocationForm.js.map +1 -1
  118. package/dist/components/Company/Locations/LocationsList/Actions.js +2 -3
  119. package/dist/components/Company/Locations/LocationsList/Actions.js.map +1 -1
  120. package/dist/components/Company/Locations/LocationsList/List.js +31 -30
  121. package/dist/components/Company/Locations/LocationsList/List.js.map +1 -1
  122. package/dist/components/Company/Locations/LocationsList/LocationsList.js +29 -29
  123. package/dist/components/Company/Locations/LocationsList/LocationsList.js.map +1 -1
  124. package/dist/components/Company/Locations/LocationsList/useLocationsList.d.ts +1 -0
  125. package/dist/components/Company/Locations/LocationsList/useLocationsList.js +5 -4
  126. package/dist/components/Company/Locations/LocationsList/useLocationsList.js.map +1 -1
  127. package/dist/components/Company/OnboardingOverview/Completed.js +10 -11
  128. package/dist/components/Company/OnboardingOverview/Completed.js.map +1 -1
  129. package/dist/components/Company/OnboardingOverview/MissingRequirements.js +6 -7
  130. package/dist/components/Company/OnboardingOverview/MissingRequirements.js.map +1 -1
  131. package/dist/components/Company/OnboardingOverview/OnboardingOverview.js +6 -7
  132. package/dist/components/Company/OnboardingOverview/OnboardingOverview.js.map +1 -1
  133. package/dist/components/Company/OnboardingOverview/context.js +5 -4
  134. package/dist/components/Company/OnboardingOverview/context.js.map +1 -1
  135. package/dist/components/Company/PaySchedule/PaySchedule.js +2 -3
  136. package/dist/components/Company/PaySchedule/PaySchedule.js.map +1 -1
  137. package/dist/components/Company/PaySchedule/_parts/Actions.js +2 -3
  138. package/dist/components/Company/PaySchedule/_parts/Actions.js.map +1 -1
  139. package/dist/components/Company/PaySchedule/_parts/Edit.js +9 -10
  140. package/dist/components/Company/PaySchedule/_parts/Edit.js.map +1 -1
  141. package/dist/components/Company/PaySchedule/_parts/Head.js +8 -9
  142. package/dist/components/Company/PaySchedule/_parts/Head.js.map +1 -1
  143. package/dist/components/Company/PaySchedule/_parts/List.js +5 -6
  144. package/dist/components/Company/PaySchedule/_parts/List.js.map +1 -1
  145. package/dist/components/Company/PaySchedule/usePaySchedule.js +7 -6
  146. package/dist/components/Company/PaySchedule/usePaySchedule.js.map +1 -1
  147. package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.js +2 -3
  148. package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.js.map +1 -1
  149. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js +5 -4
  150. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js.map +1 -1
  151. package/dist/components/Company/StateTaxes/StateTaxesList/Actions.js +2 -3
  152. package/dist/components/Company/StateTaxes/StateTaxesList/Actions.js.map +1 -1
  153. package/dist/components/Company/StateTaxes/StateTaxesList/List.js +2 -3
  154. package/dist/components/Company/StateTaxes/StateTaxesList/List.js.map +1 -1
  155. package/dist/components/Company/StateTaxes/StateTaxesList/context.js +5 -4
  156. package/dist/components/Company/StateTaxes/StateTaxesList/context.js.map +1 -1
  157. package/dist/components/Contractor/Address/Address.js +3 -4
  158. package/dist/components/Contractor/Address/Address.js.map +1 -1
  159. package/dist/components/Contractor/Address/Form.js +6 -7
  160. package/dist/components/Contractor/Address/Form.js.map +1 -1
  161. package/dist/components/Contractor/Address/useAddress.js +7 -6
  162. package/dist/components/Contractor/Address/useAddress.js.map +1 -1
  163. package/dist/components/Contractor/ContractorList/index.js +24 -24
  164. package/dist/components/Contractor/ContractorList/index.js.map +1 -1
  165. package/dist/components/Contractor/NewHireReport/NewHireReport.js +13 -14
  166. package/dist/components/Contractor/NewHireReport/NewHireReport.js.map +1 -1
  167. package/dist/components/Contractor/PaymentMethod/BankAccountForm.js +10 -11
  168. package/dist/components/Contractor/PaymentMethod/BankAccountForm.js.map +1 -1
  169. package/dist/components/Contractor/PaymentMethod/PaymentMethod.js +2 -3
  170. package/dist/components/Contractor/PaymentMethod/PaymentMethod.js.map +1 -1
  171. package/dist/components/Contractor/PaymentMethod/PaymentTypeForm.js +2 -3
  172. package/dist/components/Contractor/PaymentMethod/PaymentTypeForm.js.map +1 -1
  173. package/dist/components/Contractor/Payments/CreatePayment/CreatePayment.js +108 -92
  174. package/dist/components/Contractor/Payments/CreatePayment/CreatePayment.js.map +1 -1
  175. package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.js +33 -32
  176. package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.js.map +1 -1
  177. package/dist/components/Contractor/Payments/CreatePayment/EditContractorPaymentPresentation.js +25 -7
  178. package/dist/components/Contractor/Payments/CreatePayment/EditContractorPaymentPresentation.js.map +1 -1
  179. package/dist/components/Contractor/Payments/CreatePayment/FastAchSubmissionBlockerBanner.d.ts +8 -0
  180. package/dist/components/Contractor/Payments/CreatePayment/FastAchSubmissionBlockerBanner.js +58 -0
  181. package/dist/components/Contractor/Payments/CreatePayment/FastAchSubmissionBlockerBanner.js.map +1 -0
  182. package/dist/components/Contractor/Payments/CreatePayment/GenericBlocker.d.ts +6 -0
  183. package/dist/components/Contractor/Payments/CreatePayment/GenericBlocker.js +18 -0
  184. package/dist/components/Contractor/Payments/CreatePayment/GenericBlocker.js.map +1 -0
  185. package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.d.ts +5 -1
  186. package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.js +84 -52
  187. package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.js.map +1 -1
  188. package/dist/components/Contractor/Payments/PaymentFlow/PaymentFlowComponents.d.ts +4 -0
  189. package/dist/components/Contractor/Payments/PaymentFlow/PaymentFlowComponents.js +32 -13
  190. package/dist/components/Contractor/Payments/PaymentFlow/PaymentFlowComponents.js.map +1 -1
  191. package/dist/components/Contractor/Payments/PaymentFlow/paymentStateMachine.d.ts +2 -0
  192. package/dist/components/Contractor/Payments/PaymentFlow/paymentStateMachine.js +100 -53
  193. package/dist/components/Contractor/Payments/PaymentFlow/paymentStateMachine.js.map +1 -1
  194. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistory.d.ts +1 -2
  195. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistory.js +46 -21
  196. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistory.js.map +1 -1
  197. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.d.ts +6 -15
  198. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.js +115 -100
  199. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.js.map +1 -1
  200. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.module.scss.js +8 -0
  201. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.module.scss.js.map +1 -0
  202. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatement.d.ts +8 -0
  203. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatement.js +51 -0
  204. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatement.js.map +1 -0
  205. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.d.ts +11 -0
  206. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.js +155 -0
  207. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.js.map +1 -0
  208. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.module.scss.js +22 -0
  209. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.module.scss.js.map +1 -0
  210. package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummary.d.ts +8 -0
  211. package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummary.js +45 -0
  212. package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummary.js.map +1 -0
  213. package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummaryPresentation.d.ts +15 -0
  214. package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummaryPresentation.js +125 -0
  215. package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummaryPresentation.js.map +1 -0
  216. package/dist/components/Contractor/Payments/PaymentSummary/index.d.ts +3 -0
  217. package/dist/components/Contractor/Payments/PaymentsList/PaymentsList.js +37 -28
  218. package/dist/components/Contractor/Payments/PaymentsList/PaymentsList.js.map +1 -1
  219. package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.d.ts +5 -1
  220. package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.js +61 -60
  221. package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.js.map +1 -1
  222. package/dist/components/Contractor/Profile/useContractorProfile.js +1 -1
  223. package/dist/components/Contractor/Submit/Submit.js +19 -20
  224. package/dist/components/Contractor/Submit/Submit.js.map +1 -1
  225. package/dist/components/Employee/Compensation/Actions.js +12 -13
  226. package/dist/components/Employee/Compensation/Actions.js.map +1 -1
  227. package/dist/components/Employee/Compensation/Edit.js +2 -3
  228. package/dist/components/Employee/Compensation/Edit.js.map +1 -1
  229. package/dist/components/Employee/Compensation/List.js +22 -23
  230. package/dist/components/Employee/Compensation/List.js.map +1 -1
  231. package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.js +4 -3
  232. package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.js.map +1 -1
  233. package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.js +4 -3
  234. package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.js.map +1 -1
  235. package/dist/components/Employee/Deductions/DeductionsForm/GarnishmentForm.js +4 -3
  236. package/dist/components/Employee/Deductions/DeductionsForm/GarnishmentForm.js.map +1 -1
  237. package/dist/components/Employee/Deductions/DeductionsList/DeductionsList.js +2 -3
  238. package/dist/components/Employee/Deductions/DeductionsList/DeductionsList.js.map +1 -1
  239. package/dist/components/Employee/Deductions/IncludeDeductions/IncludeDeductions.js +2 -3
  240. package/dist/components/Employee/Deductions/IncludeDeductions/IncludeDeductions.js.map +1 -1
  241. package/dist/components/Employee/DocumentSigner/DocumentList/Actions.js +2 -3
  242. package/dist/components/Employee/DocumentSigner/DocumentList/Actions.js.map +1 -1
  243. package/dist/components/Employee/DocumentSigner/DocumentList/DocumentList.js +2 -3
  244. package/dist/components/Employee/DocumentSigner/DocumentList/DocumentList.js.map +1 -1
  245. package/dist/components/Employee/DocumentSigner/DocumentList/List.js +2 -3
  246. package/dist/components/Employee/DocumentSigner/DocumentList/List.js.map +1 -1
  247. package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js +5 -4
  248. package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  249. package/dist/components/Employee/DocumentSigner/SignatureForm/SignatureForm.js +2 -3
  250. package/dist/components/Employee/DocumentSigner/SignatureForm/SignatureForm.js.map +1 -1
  251. package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js +5 -4
  252. package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js.map +1 -1
  253. package/dist/components/Employee/EmployeeList/Actions.js +6 -7
  254. package/dist/components/Employee/EmployeeList/Actions.js.map +1 -1
  255. package/dist/components/Employee/EmployeeList/EmployeeList.js +55 -54
  256. package/dist/components/Employee/EmployeeList/EmployeeList.js.map +1 -1
  257. package/dist/components/Employee/EmployeeList/Head.js +5 -6
  258. package/dist/components/Employee/EmployeeList/Head.js.map +1 -1
  259. package/dist/components/Employee/EmployeeList/List.js +32 -31
  260. package/dist/components/Employee/EmployeeList/List.js.map +1 -1
  261. package/dist/components/Employee/EmployeeList/useEmployeeList.d.ts +1 -0
  262. package/dist/components/Employee/EmployeeList/useEmployeeList.js +5 -4
  263. package/dist/components/Employee/EmployeeList/useEmployeeList.js.map +1 -1
  264. package/dist/components/Employee/EmploymentEligibility/EmploymentEligibility.d.ts +3 -0
  265. package/dist/components/Employee/EmploymentEligibility/EmploymentEligibilityPresentation.d.ts +37 -0
  266. package/dist/components/Employee/EmploymentEligibility/index.d.ts +4 -0
  267. package/dist/components/Employee/FederalTaxes/Actions.js +5 -6
  268. package/dist/components/Employee/FederalTaxes/Actions.js.map +1 -1
  269. package/dist/components/Employee/FederalTaxes/FederalForm.js +4 -5
  270. package/dist/components/Employee/FederalTaxes/FederalForm.js.map +1 -1
  271. package/dist/components/Employee/FederalTaxes/useFederalTaxes.js +5 -4
  272. package/dist/components/Employee/FederalTaxes/useFederalTaxes.js.map +1 -1
  273. package/dist/components/Employee/Landing/Landing.js +2 -3
  274. package/dist/components/Employee/Landing/Landing.js.map +1 -1
  275. package/dist/components/Employee/PaymentMethod/Actions.js +5 -6
  276. package/dist/components/Employee/PaymentMethod/Actions.js.map +1 -1
  277. package/dist/components/Employee/PaymentMethod/BankAccountEdit.js +2 -3
  278. package/dist/components/Employee/PaymentMethod/BankAccountEdit.js.map +1 -1
  279. package/dist/components/Employee/PaymentMethod/BankAccountsList.js +2 -3
  280. package/dist/components/Employee/PaymentMethod/BankAccountsList.js.map +1 -1
  281. package/dist/components/Employee/PaymentMethod/PaymentTypeForm.js +5 -6
  282. package/dist/components/Employee/PaymentMethod/PaymentTypeForm.js.map +1 -1
  283. package/dist/components/Employee/PaymentMethod/Split.js +2 -3
  284. package/dist/components/Employee/PaymentMethod/Split.js.map +1 -1
  285. package/dist/components/Employee/PaymentMethod/usePaymentMethod.js +7 -6
  286. package/dist/components/Employee/PaymentMethod/usePaymentMethod.js.map +1 -1
  287. package/dist/components/Employee/Profile/Actions.js +5 -6
  288. package/dist/components/Employee/Profile/Actions.js.map +1 -1
  289. package/dist/components/Employee/Profile/AdminPersonalDetails.js +4 -5
  290. package/dist/components/Employee/Profile/AdminPersonalDetails.js.map +1 -1
  291. package/dist/components/Employee/Profile/HomeAddress.js +8 -9
  292. package/dist/components/Employee/Profile/HomeAddress.js.map +1 -1
  293. package/dist/components/Employee/Profile/PersonalDetailsInputs.js +8 -9
  294. package/dist/components/Employee/Profile/PersonalDetailsInputs.js.map +1 -1
  295. package/dist/components/Employee/Profile/useProfile.js +5 -4
  296. package/dist/components/Employee/Profile/useProfile.js.map +1 -1
  297. package/dist/components/Employee/StateTaxes/Actions.js +5 -6
  298. package/dist/components/Employee/StateTaxes/Actions.js.map +1 -1
  299. package/dist/components/Employee/StateTaxes/useStateTaxes.js +5 -4
  300. package/dist/components/Employee/StateTaxes/useStateTaxes.js.map +1 -1
  301. package/dist/components/Employee/Taxes/Actions.js +6 -7
  302. package/dist/components/Employee/Taxes/Actions.js.map +1 -1
  303. package/dist/components/Employee/Taxes/FederalForm.js +6 -7
  304. package/dist/components/Employee/Taxes/FederalForm.js.map +1 -1
  305. package/dist/components/Employee/Taxes/useTaxes.js +5 -4
  306. package/dist/components/Employee/Taxes/useTaxes.js.map +1 -1
  307. package/dist/components/Flow/Flow.js +7 -8
  308. package/dist/components/Flow/Flow.js.map +1 -1
  309. package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.d.ts +15 -0
  310. package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.js +162 -0
  311. package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.js.map +1 -0
  312. package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.module.scss.js +20 -0
  313. package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.module.scss.js.map +1 -0
  314. package/dist/components/InformationRequests/InformationRequestForm/index.d.ts +2 -0
  315. package/dist/components/InformationRequests/InformationRequestList/InformationRequestList.d.ts +8 -0
  316. package/dist/components/InformationRequests/InformationRequestList/InformationRequestList.js +96 -0
  317. package/dist/components/InformationRequests/InformationRequestList/InformationRequestList.js.map +1 -0
  318. package/dist/components/InformationRequests/InformationRequestList/index.d.ts +2 -0
  319. package/dist/components/InformationRequests/InformationRequests.d.ts +7 -0
  320. package/dist/components/InformationRequests/InformationRequests.js +68 -0
  321. package/dist/components/InformationRequests/InformationRequests.js.map +1 -0
  322. package/dist/components/InformationRequests/InformationRequestsComponents.d.ts +19 -0
  323. package/dist/components/InformationRequests/InformationRequestsComponents.js +20 -0
  324. package/dist/components/InformationRequests/InformationRequestsComponents.js.map +1 -0
  325. package/dist/components/InformationRequests/index.d.ts +4 -0
  326. package/dist/components/InformationRequests/index.js +9 -0
  327. package/dist/components/InformationRequests/index.js.map +1 -0
  328. package/dist/components/InformationRequests/informationRequestsStateMachine.d.ts +13 -0
  329. package/dist/components/InformationRequests/informationRequestsStateMachine.js +47 -0
  330. package/dist/components/InformationRequests/informationRequestsStateMachine.js.map +1 -0
  331. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsBanner/ConfirmWireDetailsBanner.js +69 -59
  332. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsBanner/ConfirmWireDetailsBanner.js.map +1 -1
  333. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsForm/ConfirmWireDetailsForm.js +0 -1
  334. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsForm/ConfirmWireDetailsForm.js.map +1 -1
  335. package/dist/components/Payroll/ConfirmWireDetails/WireInstructions/WireInstructions.js +61 -52
  336. package/dist/components/Payroll/ConfirmWireDetails/WireInstructions/WireInstructions.js.map +1 -1
  337. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerAlerts.js +17 -18
  338. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerAlerts.js.map +1 -1
  339. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerList.d.ts +5 -13
  340. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerList.js +102 -27
  341. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerList.js.map +1 -1
  342. package/dist/components/Payroll/PayrollBlocker/index.d.ts +0 -1
  343. package/dist/components/Payroll/PayrollBlocker/payrollHelpers.js +14 -14
  344. package/dist/components/Payroll/PayrollBlocker/payrollHelpers.js.map +1 -1
  345. package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js +116 -130
  346. package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js.map +1 -1
  347. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.d.ts +6 -3
  348. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js +165 -156
  349. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js.map +1 -1
  350. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.module.scss.js +2 -4
  351. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.module.scss.js.map +1 -1
  352. package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.d.ts +21 -0
  353. package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.js +105 -0
  354. package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.js.map +1 -0
  355. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.js +41 -37
  356. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.js.map +1 -1
  357. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.d.ts +5 -4
  358. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js +151 -146
  359. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js.map +1 -1
  360. package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js +6 -6
  361. package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js.map +1 -1
  362. package/dist/components/Payroll/PayrollFlow/PayrollFlowComponents.d.ts +1 -0
  363. package/dist/components/Payroll/PayrollFlow/PayrollFlowComponents.js +45 -38
  364. package/dist/components/Payroll/PayrollFlow/PayrollFlowComponents.js.map +1 -1
  365. package/dist/components/Payroll/PayrollFlow/payrollStateMachine.d.ts +2 -0
  366. package/dist/components/Payroll/PayrollFlow/payrollStateMachine.js +179 -97
  367. package/dist/components/Payroll/PayrollFlow/payrollStateMachine.js.map +1 -1
  368. package/dist/components/Payroll/PayrollHistory/PayrollHistory.js +28 -28
  369. package/dist/components/Payroll/PayrollHistory/PayrollHistory.js.map +1 -1
  370. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.d.ts +2 -2
  371. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js +86 -106
  372. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js.map +1 -1
  373. package/dist/components/Payroll/PayrollLanding/PayrollLanding.d.ts +2 -1
  374. package/dist/components/Payroll/PayrollLanding/PayrollLanding.js +28 -22
  375. package/dist/components/Payroll/PayrollLanding/PayrollLanding.js.map +1 -1
  376. package/dist/components/Payroll/PayrollLanding/PayrollLandingFlowComponents.d.ts +4 -0
  377. package/dist/components/Payroll/PayrollLanding/PayrollLandingFlowComponents.js +74 -47
  378. package/dist/components/Payroll/PayrollLanding/PayrollLandingFlowComponents.js.map +1 -1
  379. package/dist/components/Payroll/PayrollLanding/payrollLandingStateMachine.d.ts +2 -0
  380. package/dist/components/Payroll/PayrollLanding/payrollLandingStateMachine.js +159 -57
  381. package/dist/components/Payroll/PayrollLanding/payrollLandingStateMachine.js.map +1 -1
  382. package/dist/components/Payroll/PayrollList/PayrollList.js +14 -17
  383. package/dist/components/Payroll/PayrollList/PayrollList.js.map +1 -1
  384. package/dist/components/Payroll/PayrollList/PayrollListPresentation.d.ts +1 -2
  385. package/dist/components/Payroll/PayrollList/PayrollListPresentation.js +137 -132
  386. package/dist/components/Payroll/PayrollList/PayrollListPresentation.js.map +1 -1
  387. package/dist/components/Payroll/PayrollList/PayrollListPresentation.module.scss.js +8 -4
  388. package/dist/components/Payroll/PayrollList/PayrollListPresentation.module.scss.js.map +1 -1
  389. package/dist/components/Payroll/PayrollOverview/PayrollOverview.js +102 -96
  390. package/dist/components/Payroll/PayrollOverview/PayrollOverview.js.map +1 -1
  391. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.d.ts +7 -5
  392. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js +253 -250
  393. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js.map +1 -1
  394. package/dist/components/Payroll/PayrollOverview/PayrollOverviewTypes.d.ts +6 -0
  395. package/dist/components/Payroll/PayrollOverview/PayrollOverviewTypes.js +5 -0
  396. package/dist/components/Payroll/PayrollOverview/PayrollOverviewTypes.js.map +1 -0
  397. package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/FastAchSubmissionBlockerBanner.d.ts +2 -2
  398. package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/FastAchSubmissionBlockerBanner.js +2 -3
  399. package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/FastAchSubmissionBlockerBanner.js.map +1 -1
  400. package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/GenericBlocker.d.ts +2 -2
  401. package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/GenericBlocker.js.map +1 -1
  402. package/dist/components/Payroll/RecoveryCases/RecoveryCaseErrorCode.module.scss.js +8 -0
  403. package/dist/components/Payroll/RecoveryCases/RecoveryCaseErrorCode.module.scss.js.map +1 -0
  404. package/dist/components/Payroll/RecoveryCases/RecoveryCases.d.ts +6 -0
  405. package/dist/components/Payroll/RecoveryCases/RecoveryCases.js +55 -0
  406. package/dist/components/Payroll/RecoveryCases/RecoveryCases.js.map +1 -0
  407. package/dist/components/Payroll/RecoveryCases/RecoveryCasesComponents.d.ts +19 -0
  408. package/dist/components/Payroll/RecoveryCases/RecoveryCasesComponents.js +19 -0
  409. package/dist/components/Payroll/RecoveryCases/RecoveryCasesComponents.js.map +1 -0
  410. package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.d.ts +7 -0
  411. package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.js +104 -0
  412. package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.js.map +1 -0
  413. package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.module.scss.js +8 -0
  414. package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.module.scss.js.map +1 -0
  415. package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/index.d.ts +2 -0
  416. package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.d.ts +14 -0
  417. package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.js +69 -0
  418. package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.js.map +1 -0
  419. package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/index.d.ts +2 -0
  420. package/dist/components/Payroll/RecoveryCases/index.d.ts +3 -0
  421. package/dist/components/Payroll/RecoveryCases/recoveryCasesStateMachine.d.ts +13 -0
  422. package/dist/components/Payroll/RecoveryCases/recoveryCasesStateMachine.js +47 -0
  423. package/dist/components/Payroll/RecoveryCases/recoveryCasesStateMachine.js.map +1 -0
  424. package/dist/components/Payroll/RecoveryCases/useRecoveryCaseErrorCode.d.ts +7 -0
  425. package/dist/components/Payroll/RecoveryCases/useRecoveryCaseErrorCode.js +65 -0
  426. package/dist/components/Payroll/RecoveryCases/useRecoveryCaseErrorCode.js.map +1 -0
  427. package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/PayrollConfigurationContext.d.ts +1 -1
  428. package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/PayrollConfigurationContext.js.map +1 -1
  429. package/dist/components/Payroll/helpers.d.ts +12 -0
  430. package/dist/components/Payroll/helpers.js +129 -117
  431. package/dist/components/Payroll/helpers.js.map +1 -1
  432. package/dist/components/Payroll/index.d.ts +2 -1
  433. package/dist/components/Payroll/index.js +12 -10
  434. package/dist/components/Payroll/index.js.map +1 -1
  435. package/dist/components/Payroll/usePreparedPayrollData.d.ts +5 -2
  436. package/dist/components/Payroll/usePreparedPayrollData.js +44 -32
  437. package/dist/components/Payroll/usePreparedPayrollData.js.map +1 -1
  438. package/dist/components/index.d.ts +1 -0
  439. package/dist/contexts/ComponentAdapter/adapters/defaultComponentAdapter.js +27 -25
  440. package/dist/contexts/ComponentAdapter/adapters/defaultComponentAdapter.js.map +1 -1
  441. package/dist/contexts/ComponentAdapter/componentAdapterTypes.d.ts +1 -0
  442. package/dist/contexts/ComponentAdapter/createComponentsWithDefaults.d.ts +5 -0
  443. package/dist/contexts/ComponentAdapter/createComponentsWithDefaults.js +17 -15
  444. package/dist/contexts/ComponentAdapter/createComponentsWithDefaults.js.map +1 -1
  445. package/dist/contexts/ComponentAdapter/useComponentContext.d.ts +2 -0
  446. package/dist/contexts/ComponentAdapter/useComponentContext.js +3 -3
  447. package/dist/contexts/ComponentAdapter/useComponentContext.js.map +1 -1
  448. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js +1 -1
  449. package/dist/contexts/ThemeProvider/theme.js +5 -5
  450. package/dist/contexts/ThemeProvider/theme.js.map +1 -1
  451. package/dist/helpers/dateFormatting.d.ts +1 -0
  452. package/dist/helpers/dateFormatting.js +1 -0
  453. package/dist/helpers/dateFormatting.js.map +1 -1
  454. package/dist/helpers/formattedStrings.d.ts +1 -0
  455. package/dist/helpers/formattedStrings.js +27 -21
  456. package/dist/helpers/formattedStrings.js.map +1 -1
  457. package/dist/helpers/responsive.js +1 -1
  458. package/dist/helpers/responsive.js.map +1 -1
  459. package/dist/i18n/I18n.js +9 -9
  460. package/dist/i18n/I18n.js.map +1 -1
  461. package/dist/i18n/en/Contractor.Payments.CreatePayment.json.js +44 -36
  462. package/dist/i18n/en/Contractor.Payments.CreatePayment.json.js.map +1 -1
  463. package/dist/i18n/en/Contractor.Payments.PaymentHistory.json.js +11 -11
  464. package/dist/i18n/en/Contractor.Payments.PaymentStatement.json.js +28 -0
  465. package/dist/i18n/en/Contractor.Payments.PaymentStatement.json.js.map +1 -0
  466. package/dist/i18n/en/Contractor.Payments.PaymentSummary.json.js +58 -0
  467. package/dist/i18n/en/Contractor.Payments.PaymentSummary.json.js.map +1 -0
  468. package/dist/i18n/en/Contractor.Payments.PaymentsList.json.js +14 -14
  469. package/dist/i18n/en/Employee.EmploymentEligibility.json.js +28 -0
  470. package/dist/i18n/en/Employee.EmploymentEligibility.json.js.map +1 -0
  471. package/dist/i18n/en/InformationRequests.InformationRequestForm.json.js +20 -0
  472. package/dist/i18n/en/InformationRequests.InformationRequestForm.json.js.map +1 -0
  473. package/dist/i18n/en/InformationRequests.InformationRequestList.json.js +18 -0
  474. package/dist/i18n/en/InformationRequests.InformationRequestList.json.js.map +1 -0
  475. package/dist/i18n/en/Payroll.ConfirmWireDetailsBanner.json.js +1 -1
  476. package/dist/i18n/en/Payroll.PayrollBlocker.json.js +24 -20
  477. package/dist/i18n/en/Payroll.PayrollBlocker.json.js.map +1 -1
  478. package/dist/i18n/en/Payroll.PayrollConfiguration.json.js +27 -21
  479. package/dist/i18n/en/Payroll.PayrollConfiguration.json.js.map +1 -1
  480. package/dist/i18n/en/Payroll.PayrollHistory.json.js +6 -6
  481. package/dist/i18n/en/Payroll.PayrollLanding.json.js +7 -3
  482. package/dist/i18n/en/Payroll.PayrollLanding.json.js.map +1 -1
  483. package/dist/i18n/en/Payroll.PayrollOverview.json.js +32 -28
  484. package/dist/i18n/en/Payroll.PayrollOverview.json.js.map +1 -1
  485. package/dist/i18n/en/Payroll.RecoveryCasesList.json.js +18 -0
  486. package/dist/i18n/en/Payroll.RecoveryCasesList.json.js.map +1 -0
  487. package/dist/i18n/en/Payroll.RecoveryCasesResubmit.json.js +10 -0
  488. package/dist/i18n/en/Payroll.RecoveryCasesResubmit.json.js.map +1 -0
  489. package/dist/i18n/en/Payroll.WireInstructions.json.js +20 -16
  490. package/dist/i18n/en/Payroll.WireInstructions.json.js.map +1 -1
  491. package/dist/i18n/en/common.json.d.ts +5 -0
  492. package/dist/i18n/en/common.json.js +4 -2
  493. package/dist/i18n/en/common.json.js.map +1 -1
  494. package/dist/index.js +10 -8
  495. package/dist/index.js.map +1 -1
  496. package/dist/shared/constants.d.ts +30 -0
  497. package/dist/shared/constants.js +73 -54
  498. package/dist/shared/constants.js.map +1 -1
  499. package/dist/style.css +1 -1
  500. package/dist/types/i18next.d.ts +321 -3
  501. package/package.json +32 -21
  502. package/dist/components/Payroll/PayrollBlocker/PayrollBlocker.d.ts +0 -6
  503. package/dist/components/Payroll/PayrollBlocker/PayrollBlocker.js +0 -32
  504. package/dist/components/Payroll/PayrollBlocker/PayrollBlocker.js.map +0 -1
@@ -1,142 +1,172 @@
1
- import { jsx as r, jsxs as d, Fragment as x } from "react/jsx-runtime";
2
- import { useTranslation as ue, Trans as be } from "react-i18next";
3
- import { useState as q, useRef as ye } from "react";
4
- import { calculateTotalPayroll as pe } from "../helpers.js";
5
- import he from "./PayrollOverviewPresentation.module.scss.js";
6
- import { Flex as f, FlexItem as z } from "../../Common/Flex/Flex.js";
7
- import "classnames";
8
- import { useComponentContext as fe } from "../../../contexts/ComponentAdapter/useComponentContext.js";
9
- import { useContainerBreakpoints as Te } from "../../../hooks/useContainerBreakpoints/useContainerBreakpoints.js";
10
- import { useI18n as He } from "../../../i18n/I18n.js";
11
- import { useDateFormatter as De } from "../../../hooks/useDateFormatter.js";
12
- import ge from "../../../hooks/useNumberFormatter.js";
13
- import { firstLastName as A } from "../../../helpers/formattedStrings.js";
14
- import { PAYMENT_METHODS as Pe, FlsaStatus as J, compensationTypeLabels as k, PAYROLL_RESOLVABLE_SUBMISSION_BLOCKER_TYPES as Q } from "../../../shared/constants.js";
15
- import xe from "../../../assets/icons/download-cloud.svg.js";
16
- import { PayrollLoading as ke } from "../../Common/PayrollLoading/PayrollLoading.js";
17
- import { FastAchSubmissionBlockerBanner as Ce } from "./SubmissionBlockers/FastAchSubmissionBlockerBanner.js";
18
- import { GenericBlocker as Ne } from "./SubmissionBlockers/GenericBlocker.js";
19
- import { DataView as m } from "../../Common/DataView/DataView.js";
20
- const we = (p, C) => p?.startDate && p.endDate ? C.formatPayPeriod(p.startDate, p.endDate) : { startDate: "", endDate: "" }, Xe = ({
1
+ import { jsx as r, jsxs as s, Fragment as N } from "react/jsx-runtime";
2
+ import { useTranslation as He, Trans as De } from "react-i18next";
3
+ import { useState as ae, useRef as Pe } from "react";
4
+ import { calculateTotalPayroll as Ce } from "../helpers.js";
5
+ import { PayrollOverviewStatus as h } from "./PayrollOverviewTypes.js";
6
+ import re from "./PayrollOverviewPresentation.module.scss.js";
7
+ import { Flex as d } from "../../Common/Flex/Flex.js";
8
+ import { Grid as ke } from "../../Common/Grid/Grid.js";
9
+ import { useComponentContext as xe } from "../../../contexts/ComponentAdapter/useComponentContext.js";
10
+ import { useContainerBreakpoints as Ne } from "../../../hooks/useContainerBreakpoints/useContainerBreakpoints.js";
11
+ import { useI18n as Se } from "../../../i18n/I18n.js";
12
+ import { useDateFormatter as we } from "../../../hooks/useDateFormatter.js";
13
+ import _e from "../../../hooks/useNumberFormatter.js";
14
+ import { firstLastName as U } from "../../../helpers/formattedStrings.js";
15
+ import { PAYMENT_METHODS as ve, FlsaStatus as ne, compensationTypeLabels as S, PAYROLL_RESOLVABLE_SUBMISSION_BLOCKER_TYPES as le } from "../../../shared/constants.js";
16
+ import ie from "../../../assets/icons/download-cloud.svg.js";
17
+ import { PayrollLoading as oe } from "../../Common/PayrollLoading/PayrollLoading.js";
18
+ import { FastAchSubmissionBlockerBanner as Le } from "./SubmissionBlockers/FastAchSubmissionBlockerBanner.js";
19
+ import { GenericBlocker as Ee } from "./SubmissionBlockers/GenericBlocker.js";
20
+ import { DataView as c } from "../../Common/DataView/DataView.js";
21
+ const Oe = (p, w) => p?.startDate && p.endDate ? w.formatPayPeriod(p.startDate, p.endDate) : { startDate: "", endDate: "" }, tt = ({
21
22
  onEdit: p,
22
- onSubmit: C,
23
- onCancel: Z,
24
- onPayrollReceipt: ee,
25
- onPaystubDownload: te,
26
- employeeDetails: re,
27
- payrollData: o,
28
- bankAccount: O,
29
- taxes: N,
30
- isSubmitting: T = !1,
31
- isProcessed: w,
32
- alerts: M = [],
33
- submissionBlockers: h = [],
34
- selectedUnblockOptions: _ = {},
35
- onUnblockOptionChange: W,
36
- wireInConfirmationRequest: ae,
23
+ onSubmit: w,
24
+ onCancel: se,
25
+ onPayrollReceipt: de,
26
+ onPaystubDownload: V,
27
+ employeeDetails: me,
28
+ payrollData: i,
29
+ bankAccount: Y,
30
+ taxes: _,
31
+ status: g = h.Viewing,
32
+ isProcessed: T,
33
+ canCancel: ce = !1,
34
+ alerts: B = [],
35
+ submissionBlockers: f = [],
36
+ selectedUnblockOptions: v = {},
37
+ onUnblockOptionChange: I,
38
+ wireInConfirmationRequest: ue,
37
39
  withReimbursements: H = !0
38
40
  }) => {
39
- const { Alert: Y, Button: D, ButtonIcon: ne, Dialog: le, Heading: V, Text: a, Tabs: ie } = fe();
40
- He("Payroll.PayrollOverview");
41
- const s = De(), { t } = ue("Payroll.PayrollOverview"), l = ge("currency"), [oe, se] = q("companyPays"), [B, U] = q(!1), I = ye(null), c = Te({ ref: I }).includes("small"), g = pe(o), de = o.payrollStatusMeta?.expectedDebitTime ?? o.payrollDeadline, F = (e) => e.taxes?.reduce(
42
- (n, i) => i.employer ? n + i.amount : n,
41
+ const { Alert: L, Button: D, ButtonIcon: R, Dialog: be, Heading: F, Text: m, Tabs: ye } = xe();
42
+ Se("Payroll.PayrollOverview");
43
+ const o = we(), { t } = He("Payroll.PayrollOverview"), n = _e("currency"), [pe, fe] = ae("companyPays"), [j, G] = ae(!1), E = Pe(null), P = Ne({ ref: E }).includes("small"), C = g === h.Submitting || g === h.Cancelling, $ = /* @__PURE__ */ r(F, { as: "h1", children: t(T ? "summaryTitle" : "overviewTitle") }), z = /* @__PURE__ */ r(m, { children: /* @__PURE__ */ r(
44
+ De,
45
+ {
46
+ i18nKey: "pageSubtitle",
47
+ t,
48
+ components: { dateWrapper: /* @__PURE__ */ r(m, { weight: "bold", as: "span" }) },
49
+ values: Oe(i.payPeriod, o)
50
+ }
51
+ ) });
52
+ if (g === h.Cancelled)
53
+ return /* @__PURE__ */ r("div", { ref: E, className: re.container, children: /* @__PURE__ */ s(d, { flexDirection: "column", alignItems: "stretch", children: [
54
+ /* @__PURE__ */ r(d, { justifyContent: "space-between", alignItems: "flex-start", gap: 16, children: /* @__PURE__ */ s(d, { flexDirection: "column", gap: 4, children: [
55
+ $,
56
+ z
57
+ ] }) }),
58
+ /* @__PURE__ */ r(L, { status: "info", label: t("cancelledEmptyState") })
59
+ ] }) });
60
+ const k = Ce(i), he = i.payrollStatusMeta?.expectedDebitTime ?? i.payrollDeadline, K = (e) => e.taxes?.reduce(
61
+ (a, l) => l.employer ? a + l.amount : a,
43
62
  0
44
- ) ?? 0, R = (e) => e.benefits?.reduce(
45
- (n, i) => i.companyContribution ? n + i.companyContribution : n,
63
+ ) ?? 0, X = (e) => e.benefits?.reduce(
64
+ (a, l) => l.companyContribution ? a + l.companyContribution : a,
46
65
  0
47
- ) ?? 0, L = (e) => e.fixedCompensations?.length ? Number(
66
+ ) ?? 0, O = (e) => e.fixedCompensations?.length ? Number(
48
67
  e.fixedCompensations.find(
49
- (n) => n.name?.toLowerCase() === k.REIMBURSEMENT_NAME.toLowerCase()
68
+ (a) => a.name?.toLowerCase() === S.REIMBURSEMENT_NAME.toLowerCase()
50
69
  )?.amount || 0
51
- ) : 0, ce = (e) => e.grossPay + L(e) + F(e) + R(e), u = new Map(re.map((e) => [e.uuid, e])), E = h.find(
70
+ ) : 0, ge = (e) => e.grossPay + O(e) + K(e) + X(e), u = new Map(me.map((e) => [e.uuid, e])), A = f.find(
52
71
  (e) => e.blockerType === "fast_ach_threshold_exceeded" || e.blockerType === "needs_earned_access_for_fast_ach"
53
- ), S = E ? _[E.blockerType || ""] : void 0, b = E?.unblockOptions?.find(
54
- (e) => e.unblockType === S
55
- ), j = S === "wire_in", G = S === "move_to_four_day", P = (e) => e.hourlyCompensations?.reduce(
56
- (n, i) => {
57
- if (typeof i.name > "u")
58
- return n;
59
- const y = i.name.toLowerCase(), v = n[y] ?? 0;
60
- return n[y] = v + Number(i.hours || 0), n;
72
+ ), M = A ? v[A.blockerType || ""] : void 0, b = A?.unblockOptions?.find(
73
+ (e) => e.unblockType === M
74
+ ), q = M === "wire_in", J = M === "move_to_four_day", x = (e) => e.hourlyCompensations?.reduce(
75
+ (a, l) => {
76
+ if (typeof l.name > "u")
77
+ return a;
78
+ const y = l.name.toLowerCase(), W = a[y] ?? 0;
79
+ return a[y] = W + Number(l.hours || 0), a;
61
80
  },
62
81
  {}
63
- ) || {}, $ = (e) => e.paidTimeOff?.reduce((n, i) => n + Number(i.hours || 0), 0) ?? 0, K = o.employeeCompensations?.reduce(
64
- (e, n) => !n.excluded && n.paymentMethod === Pe.check ? e + 1 : e,
82
+ ) || {}, Q = (e) => e.paidTimeOff?.reduce((a, l) => a + Number(l.hours || 0), 0) ?? 0, Z = i.employeeCompensations?.reduce(
83
+ (e, a) => !a.excluded && a.paymentMethod === ve.check ? e + 1 : e,
65
84
  0
66
- ) ?? 0, X = [
85
+ ) ?? 0, ee = [
67
86
  {
68
87
  key: "employeeName",
69
88
  title: t("tableHeaders.employees"),
70
- render: (e) => /* @__PURE__ */ r(a, { children: A({
89
+ render: (e) => U({
71
90
  first_name: u.get(e.employeeUuid)?.firstName,
72
91
  last_name: u.get(e.employeeUuid)?.lastName
73
- }) })
92
+ })
74
93
  },
75
94
  {
76
95
  key: "grossPay",
77
96
  title: t("tableHeaders.grossPay"),
78
- render: (e) => /* @__PURE__ */ r(a, { children: l(e.grossPay) })
97
+ render: (e) => n(e.grossPay)
79
98
  },
80
99
  ...H ? [
81
100
  {
82
101
  key: "reimbursements",
83
102
  title: t("tableHeaders.reimbursements"),
84
- render: (e) => /* @__PURE__ */ r(a, { children: l(L(e)) })
103
+ render: (e) => n(O(e))
85
104
  }
86
105
  ] : [],
87
106
  {
88
107
  key: "companyTaxes",
89
108
  title: t("tableHeaders.companyTaxes"),
90
- render: (e) => /* @__PURE__ */ r(a, { children: l(F(e)) })
109
+ render: (e) => n(K(e))
91
110
  },
92
111
  {
93
112
  key: "companyBenefits",
94
113
  title: t("tableHeaders.companyBenefits"),
95
- render: (e) => /* @__PURE__ */ r(a, { children: l(R(e)) })
114
+ render: (e) => n(X(e))
96
115
  },
97
116
  {
98
117
  key: "companyPays",
99
118
  title: t("tableHeaders.companyPays"),
100
- render: (e) => /* @__PURE__ */ r(a, { children: l(ce(e)) })
119
+ render: (e) => n(ge(e))
101
120
  }
102
121
  ];
103
- w && X.push({
122
+ T && P && ee.push({
104
123
  key: "paystubs",
105
124
  title: t("tableHeaders.paystub"),
106
- render: (e) => /* @__PURE__ */ r(
107
- ne,
125
+ render: (e) => /* @__PURE__ */ r(d, { justifyContent: "flex-end", children: /* @__PURE__ */ r(
126
+ R,
108
127
  {
109
128
  "aria-label": t("downloadPaystubLabel"),
110
129
  variant: "tertiary",
111
130
  onClick: () => {
112
- e.employeeUuid && te(e.employeeUuid);
131
+ e.employeeUuid && V(e.employeeUuid);
113
132
  },
114
- children: /* @__PURE__ */ r(xe, {})
133
+ children: /* @__PURE__ */ r(ie, {})
115
134
  }
116
- )
135
+ ) })
117
136
  });
118
- const me = [
137
+ const Te = [
119
138
  {
120
139
  id: "companyPays",
121
140
  label: t("dataViews.companyPaysTab"),
122
141
  content: /* @__PURE__ */ r(
123
- m,
142
+ c,
124
143
  {
125
144
  label: t("dataViews.companyPaysTable"),
126
- columns: X,
127
- data: o.employeeCompensations,
145
+ columns: ee,
146
+ data: i.employeeCompensations,
147
+ itemMenu: T && !P ? (e) => /* @__PURE__ */ r(
148
+ R,
149
+ {
150
+ "aria-label": t("downloadPaystubLabel"),
151
+ variant: "tertiary",
152
+ onClick: () => {
153
+ e.employeeUuid && V(e.employeeUuid);
154
+ },
155
+ children: /* @__PURE__ */ r(ie, {})
156
+ }
157
+ ) : void 0,
128
158
  footer: () => ({
129
- employeeName: /* @__PURE__ */ d(x, { children: [
130
- /* @__PURE__ */ r(a, { children: t("tableHeaders.footerTotalsLabel") }),
131
- /* @__PURE__ */ r(a, { children: t("tableHeaders.footerTotalsDescription") })
159
+ employeeName: /* @__PURE__ */ s(N, { children: [
160
+ /* @__PURE__ */ r(m, { weight: "semibold", size: "sm", children: t("tableHeaders.footerTotalsLabel") }),
161
+ /* @__PURE__ */ r(m, { variant: "supporting", size: "sm", children: t("tableHeaders.footerTotalsDescription") })
132
162
  ] }),
133
- grossPay: /* @__PURE__ */ r(a, { children: l(Number(o.totals?.grossPay ?? 0)) }),
163
+ grossPay: n(Number(i.totals?.grossPay ?? 0)),
134
164
  ...H ? {
135
- reimbursements: /* @__PURE__ */ r(a, { children: l(Number(o.totals?.reimbursements ?? 0)) })
165
+ reimbursements: n(Number(i.totals?.reimbursements ?? 0))
136
166
  } : {},
137
- companyTaxes: /* @__PURE__ */ r(a, { children: l(Number(o.totals?.employerTaxes ?? 0)) }),
138
- companyBenefits: /* @__PURE__ */ r(a, { children: l(Number(o.totals?.benefits ?? 0)) }),
139
- companyPays: /* @__PURE__ */ r(a, { children: l(g) })
167
+ companyTaxes: n(Number(i.totals?.employerTaxes ?? 0)),
168
+ companyBenefits: n(Number(i.totals?.benefits ?? 0)),
169
+ companyPays: n(k)
140
170
  })
141
171
  }
142
172
  )
@@ -145,61 +175,61 @@ const we = (p, C) => p?.startDate && p.endDate ? C.formatPayPeriod(p.startDate,
145
175
  id: "hoursWorked",
146
176
  label: t("dataViews.hoursWorkedTab"),
147
177
  content: /* @__PURE__ */ r(
148
- m,
178
+ c,
149
179
  {
150
180
  label: t("dataViews.hoursWorkedTable"),
151
181
  columns: [
152
182
  {
153
183
  title: t("tableHeaders.employees"),
154
- render: (e) => /* @__PURE__ */ r(a, { children: A({
184
+ render: (e) => U({
155
185
  first_name: u.get(e.employeeUuid)?.firstName,
156
186
  last_name: u.get(e.employeeUuid)?.lastName
157
- }) })
187
+ })
158
188
  },
159
189
  {
160
190
  title: t("tableHeaders.compensationType"),
161
- render: (e) => /* @__PURE__ */ r(a, { children: u.get(e.employeeUuid)?.jobs?.reduce((n, i) => {
162
- if (i.primary) {
163
- const y = i.compensations?.find(
164
- (v) => v.uuid === i.currentCompensationUuid
191
+ render: (e) => u.get(e.employeeUuid)?.jobs?.reduce((a, l) => {
192
+ if (l.primary) {
193
+ const y = l.compensations?.find(
194
+ (W) => W.uuid === l.currentCompensationUuid
165
195
  )?.flsaStatus;
166
196
  switch (y) {
167
- case J.EXEMPT:
197
+ case ne.EXEMPT:
168
198
  return t("compensationTypeLabels.exempt");
169
- case J.NONEXEMPT:
199
+ case ne.NONEXEMPT:
170
200
  return t("compensationTypeLabels.nonexempt");
171
201
  default:
172
202
  return y ?? "";
173
203
  }
174
204
  }
175
- return n;
176
- }, "") })
205
+ return a;
206
+ }, "")
177
207
  },
178
208
  {
179
209
  title: t("tableHeaders.regular"),
180
- render: (e) => /* @__PURE__ */ r(a, { children: P(e)[k.REGULAR_HOURS_NAME] || 0 })
210
+ render: (e) => x(e)[S.REGULAR_HOURS_NAME] || 0
181
211
  },
182
212
  {
183
213
  title: t("tableHeaders.overtime"),
184
- render: (e) => /* @__PURE__ */ r(a, { children: P(e)[k.OVERTIME_NAME] || 0 })
214
+ render: (e) => x(e)[S.OVERTIME_NAME] || 0
185
215
  },
186
216
  {
187
217
  title: t("tableHeaders.doubleOT"),
188
- render: (e) => /* @__PURE__ */ r(a, { children: P(e)[k.DOUBLE_OVERTIME_NAME] || 0 })
218
+ render: (e) => x(e)[S.DOUBLE_OVERTIME_NAME] || 0
189
219
  },
190
220
  {
191
221
  title: t("tableHeaders.timeOff"),
192
- render: (e) => /* @__PURE__ */ r(a, { children: $(e) })
222
+ render: (e) => Q(e)
193
223
  },
194
224
  {
195
225
  title: t("tableHeaders.totalHours"),
196
- render: (e) => /* @__PURE__ */ r(a, { children: Object.values(P(e)).reduce(
197
- (n, i) => n + i,
226
+ render: (e) => Object.values(x(e)).reduce(
227
+ (a, l) => a + l,
198
228
  0
199
- ) + $(e) })
229
+ ) + Q(e)
200
230
  }
201
231
  ],
202
- data: o.employeeCompensations
232
+ data: i.employeeCompensations
203
233
  }
204
234
  )
205
235
  },
@@ -207,200 +237,173 @@ const we = (p, C) => p?.startDate && p.endDate ? C.formatPayPeriod(p.startDate,
207
237
  id: "employeeTakeHome",
208
238
  label: t("dataViews.employeeTakeHomeTab"),
209
239
  content: /* @__PURE__ */ r(
210
- m,
240
+ c,
211
241
  {
212
242
  label: t("dataViews.employeeTakeHomeTable"),
213
243
  columns: [
214
244
  {
215
245
  title: t("tableHeaders.employees"),
216
- render: (e) => /* @__PURE__ */ r(a, { children: A({
246
+ render: (e) => U({
217
247
  first_name: u.get(e.employeeUuid)?.firstName,
218
248
  last_name: u.get(e.employeeUuid)?.lastName
219
- }) })
249
+ })
220
250
  },
221
251
  {
222
252
  title: t("tableHeaders.paymentType"),
223
- render: (e) => /* @__PURE__ */ r(a, { children: e.paymentMethod ?? "" })
253
+ render: (e) => e.paymentMethod ?? ""
224
254
  },
225
255
  {
226
256
  title: t("tableHeaders.grossPay"),
227
- render: (e) => /* @__PURE__ */ r(a, { children: l(e.grossPay ?? 0) })
257
+ render: (e) => n(e.grossPay ?? 0)
228
258
  },
229
259
  {
230
260
  title: t("tableHeaders.deductions"),
231
- render: (e) => /* @__PURE__ */ r(a, { children: l(
261
+ render: (e) => n(
232
262
  e.deductions?.reduce(
233
- (n, i) => n + i.amount,
263
+ (a, l) => a + l.amount,
234
264
  0
235
265
  ) ?? 0
236
- ) })
266
+ )
237
267
  },
238
268
  ...H ? [
239
269
  {
240
270
  title: t("tableHeaders.reimbursements"),
241
- render: (e) => /* @__PURE__ */ r(a, { children: l(L(e)) })
271
+ render: (e) => n(O(e))
242
272
  }
243
273
  ] : [],
244
274
  {
245
275
  title: t("tableHeaders.employeeTaxes"),
246
- render: (e) => /* @__PURE__ */ r(a, { children: l(
276
+ render: (e) => n(
247
277
  e.taxes?.reduce(
248
- (n, i) => i.employer ? n : n + i.amount,
278
+ (a, l) => l.employer ? a : a + l.amount,
249
279
  0
250
280
  ) ?? 0
251
- ) })
281
+ )
252
282
  },
253
283
  {
254
284
  title: t("tableHeaders.employeeBenefits"),
255
- render: (e) => /* @__PURE__ */ r(a, { children: l(
285
+ render: (e) => n(
256
286
  e.benefits?.reduce(
257
- (n, i) => n + (i.employeeDeduction ?? 0),
287
+ (a, l) => a + (l.employeeDeduction ?? 0),
258
288
  0
259
289
  ) ?? 0
260
- ) })
290
+ )
261
291
  },
262
292
  {
263
293
  title: t("tableHeaders.payment"),
264
- render: (e) => /* @__PURE__ */ r(a, { children: l(e.netPay ?? 0) })
294
+ render: (e) => n(e.netPay ?? 0)
265
295
  }
266
296
  ],
267
- data: o.employeeCompensations
297
+ data: i.employeeCompensations
268
298
  }
269
299
  )
270
300
  },
271
301
  {
272
302
  id: "taxes",
273
303
  label: t("dataViews.taxesTab"),
274
- content: /* @__PURE__ */ d(f, { flexDirection: "column", gap: 32, children: [
304
+ content: /* @__PURE__ */ s(d, { flexDirection: "column", gap: 32, children: [
275
305
  /* @__PURE__ */ r(
276
- m,
306
+ c,
277
307
  {
278
308
  label: t("dataViews.taxesTable"),
279
309
  columns: [
280
310
  {
281
311
  key: "taxDescription",
282
312
  title: t("tableHeaders.taxDescription"),
283
- render: (e) => /* @__PURE__ */ r(a, { children: e })
313
+ render: (e) => e
284
314
  },
285
315
  {
286
316
  key: "byYourEmployees",
287
317
  title: t("tableHeaders.byYourEmployees"),
288
- render: (e) => /* @__PURE__ */ r(a, { children: l(N[e]?.employee ?? 0) })
318
+ render: (e) => n(_[e]?.employee ?? 0)
289
319
  },
290
320
  {
291
321
  key: "byYourCompany",
292
322
  title: t("tableHeaders.byYourCompany"),
293
- render: (e) => /* @__PURE__ */ r(a, { children: l(N[e]?.employer ?? 0) })
323
+ render: (e) => n(_[e]?.employer ?? 0)
294
324
  }
295
325
  ],
296
326
  footer: () => ({
297
- taxDescription: /* @__PURE__ */ r(a, { children: t("totalsLabel") }),
298
- byYourEmployees: /* @__PURE__ */ r(a, { children: l(Number(o.totals?.employeeTaxes ?? 0)) }),
299
- byYourCompany: /* @__PURE__ */ r(a, { children: l(Number(o.totals?.employerTaxes ?? 0)) })
327
+ taxDescription: /* @__PURE__ */ r(m, { weight: "semibold", size: "sm", children: t("totalsLabel") }),
328
+ byYourEmployees: n(Number(i.totals?.employeeTaxes ?? 0)),
329
+ byYourCompany: n(Number(i.totals?.employerTaxes ?? 0))
300
330
  }),
301
- data: Object.keys(N)
331
+ data: Object.keys(_)
302
332
  }
303
333
  ),
304
334
  /* @__PURE__ */ r(
305
- m,
335
+ c,
306
336
  {
307
337
  label: t("dataViews.debitedTable"),
308
338
  columns: [
309
339
  {
310
340
  title: t("tableHeaders.debitedByGusto"),
311
- render: ({ label: e }) => /* @__PURE__ */ r(a, { children: e })
341
+ render: ({ label: e }) => e
312
342
  },
313
343
  {
314
344
  title: t("tableHeaders.taxesTotal"),
315
- render: ({ value: e }) => /* @__PURE__ */ r(a, { children: l(Number(e)) })
345
+ render: ({ value: e }) => n(Number(e))
316
346
  }
317
347
  ],
318
348
  data: [
319
- { label: t("directDepositLabel"), value: o.totals?.netPayDebit || "0" },
349
+ { label: t("directDepositLabel"), value: i.totals?.netPayDebit || "0" },
320
350
  ...H ? [
321
351
  {
322
352
  label: t("reimbursementLabel"),
323
- value: o.totals?.reimbursementDebit || "0"
353
+ value: i.totals?.reimbursementDebit || "0"
324
354
  }
325
355
  ] : [],
326
356
  {
327
357
  label: t("garnishmentsLabel"),
328
- value: o.totals?.childSupportDebit || "0"
358
+ value: i.totals?.childSupportDebit || "0"
329
359
  },
330
- { label: t("taxesLabel"), value: o.totals?.taxDebit || "0" }
360
+ { label: t("taxesLabel"), value: i.totals?.taxDebit || "0" }
331
361
  ]
332
362
  }
333
363
  )
334
364
  ] })
335
365
  }
336
- ];
337
- return /* @__PURE__ */ r("div", { ref: I, className: he.container, children: /* @__PURE__ */ d(f, { flexDirection: "column", alignItems: "stretch", children: [
338
- /* @__PURE__ */ d(
339
- f,
366
+ ], te = T ? /* @__PURE__ */ s(N, { children: [
367
+ /* @__PURE__ */ r(D, { onClick: de, variant: "secondary", isDisabled: C, children: t("payrollReceiptCta") }),
368
+ ce && /* @__PURE__ */ r(
369
+ D,
340
370
  {
341
- flexDirection: c ? "row" : "column",
342
- justifyContent: c ? "space-between" : "normal",
343
- alignItems: c ? "flex-start" : "stretch",
344
- gap: c ? 0 : 16,
345
- children: [
346
- /* @__PURE__ */ d(z, { flexGrow: 1, children: [
347
- /* @__PURE__ */ r(V, { as: "h1", children: t(w ? "summaryTitle" : "overviewTitle") }),
348
- /* @__PURE__ */ r(a, { children: /* @__PURE__ */ r(
349
- be,
350
- {
351
- i18nKey: "pageSubtitle",
352
- t,
353
- components: { dateWrapper: /* @__PURE__ */ r(a, { weight: "bold", as: "span" }) },
354
- values: we(o.payPeriod, s)
355
- }
356
- ) })
357
- ] }),
358
- /* @__PURE__ */ r(z, { flexGrow: c ? 1 : 0, children: /* @__PURE__ */ r(
359
- f,
360
- {
361
- flexDirection: c ? "row" : "column",
362
- justifyContent: c ? "flex-end" : "normal",
363
- alignItems: c ? "flex-start" : "stretch",
364
- gap: 12,
365
- children: w ? /* @__PURE__ */ d(x, { children: [
366
- /* @__PURE__ */ r(D, { onClick: ee, variant: "secondary", isDisabled: T, children: t("payrollReceiptCta") }),
367
- /* @__PURE__ */ r(
368
- D,
369
- {
370
- onClick: () => {
371
- U(!0);
372
- },
373
- variant: "error",
374
- isDisabled: T,
375
- children: t("cancelCta")
376
- }
377
- )
378
- ] }) : /* @__PURE__ */ d(x, { children: [
379
- /* @__PURE__ */ r(D, { onClick: p, variant: "secondary", isDisabled: T, children: t("editCta") }),
380
- /* @__PURE__ */ r(
381
- D,
382
- {
383
- onClick: C,
384
- isDisabled: T || h.length > 0 && (h.some(
385
- (e) => !Q.includes(
386
- e.blockerType || ""
387
- )
388
- ) || h.some(
389
- (e) => !_[e.blockerType || ""]
390
- )),
391
- children: t("submitCta")
392
- }
393
- )
394
- ] })
395
- }
396
- ) })
397
- ]
371
+ onClick: () => {
372
+ G(!0);
373
+ },
374
+ variant: "error",
375
+ isDisabled: C,
376
+ children: t("cancelCta")
398
377
  }
399
- ),
400
- T ? /* @__PURE__ */ r(ke, { title: t("loadingTitle"), description: t("loadingDescription") }) : /* @__PURE__ */ d(x, { children: [
401
- ae,
402
- M.length > 0 && /* @__PURE__ */ r(f, { flexDirection: "column", gap: 16, children: M.map((e, n) => /* @__PURE__ */ r(
403
- Y,
378
+ )
379
+ ] }) : /* @__PURE__ */ s(N, { children: [
380
+ /* @__PURE__ */ r(D, { onClick: p, variant: "secondary", isDisabled: C, children: t("editCta") }),
381
+ /* @__PURE__ */ r(
382
+ D,
383
+ {
384
+ onClick: w,
385
+ isDisabled: C || f.length > 0 && (f.some(
386
+ (e) => !le.includes(e.blockerType || "")
387
+ ) || f.some(
388
+ (e) => !v[e.blockerType || ""]
389
+ )),
390
+ children: t("submitCta")
391
+ }
392
+ )
393
+ ] });
394
+ return /* @__PURE__ */ r("div", { ref: E, className: re.container, children: /* @__PURE__ */ s(d, { flexDirection: "column", alignItems: "stretch", children: [
395
+ /* @__PURE__ */ s(d, { justifyContent: "space-between", alignItems: "flex-start", gap: 16, children: [
396
+ /* @__PURE__ */ s(d, { flexDirection: "column", gap: 4, children: [
397
+ $,
398
+ z
399
+ ] }),
400
+ P && /* @__PURE__ */ r(d, { gap: 8, justifyContent: "flex-end", children: te })
401
+ ] }),
402
+ !P && /* @__PURE__ */ r(ke, { gridTemplateColumns: "1fr", gap: 8, children: te }),
403
+ g === h.Cancelling ? /* @__PURE__ */ r(oe, { title: t("cancellingTitle") }) : g === h.Submitting ? /* @__PURE__ */ r(oe, { title: t("loadingTitle"), description: t("loadingDescription") }) : /* @__PURE__ */ s(N, { children: [
404
+ ue,
405
+ B.length > 0 && /* @__PURE__ */ r(d, { flexDirection: "column", gap: 16, children: B.map((e, a) => /* @__PURE__ */ r(
406
+ L,
404
407
  {
405
408
  label: e.title,
406
409
  status: e.type,
@@ -409,149 +412,149 @@ const we = (p, C) => p?.startDate && p.endDate ? C.formatPayPeriod(p.startDate,
409
412
  },
410
413
  `${e.type}-${e.title}`
411
414
  )) }),
412
- h.length > 0 && W && h.map((e) => {
413
- const n = e.blockerType || "";
414
- return Q.includes(n) ? /* @__PURE__ */ r(
415
- Ce,
415
+ f.length > 0 && I && f.map((e) => {
416
+ const a = e.blockerType || "";
417
+ return le.includes(a) ? /* @__PURE__ */ r(
418
+ Le,
416
419
  {
417
420
  blocker: e,
418
- selectedValue: _[n],
419
- onUnblockOptionChange: W
421
+ selectedValue: v[a],
422
+ onUnblockOptionChange: I
420
423
  },
421
- n
422
- ) : /* @__PURE__ */ r(Ne, { blocker: e }, n);
424
+ a
425
+ ) : /* @__PURE__ */ r(Ee, { blocker: e }, a);
423
426
  }),
424
- /* @__PURE__ */ r(V, { as: "h3", children: t(j ? "payrollSummaryTitleWire" : G ? "payrollSummaryTitleFourDay" : "payrollSummaryTitle") }),
425
- j ? /* @__PURE__ */ r(
426
- m,
427
+ /* @__PURE__ */ r(F, { as: "h3", children: t(q ? "payrollSummaryTitleWire" : J ? "payrollSummaryTitleFourDay" : "payrollSummaryTitle") }),
428
+ q ? /* @__PURE__ */ r(
429
+ c,
427
430
  {
428
431
  label: t("payrollSummaryLabel"),
429
432
  columns: [
430
433
  {
431
434
  title: t("tableHeaders.totalPayroll"),
432
- render: () => /* @__PURE__ */ r(a, { children: l(g) })
435
+ render: () => n(k)
433
436
  },
434
437
  {
435
438
  title: t("tableHeaders.wireAmount"),
436
439
  render: () => {
437
- const n = b?.metadata?.wire_in_amount;
438
- return /* @__PURE__ */ r(a, { children: n ? l(Number(n)) : "-" });
440
+ const a = b?.metadata?.wire_in_amount;
441
+ return a ? n(Number(a)) : "-";
439
442
  }
440
443
  },
441
444
  {
442
445
  title: t("tableHeaders.wireTransferDeadline"),
443
446
  render: () => {
444
- const n = b?.metadata?.wire_in_deadline, i = s.formatWithTime(n), y = s.formatShortWithYear(n);
445
- return /* @__PURE__ */ r(a, { children: n ? `${i.time} on ${y}` : "-" });
447
+ const a = b?.metadata?.wire_in_deadline, l = o.formatWithTime(a), y = o.formatShortWithYear(a);
448
+ return a ? `${l.time} on ${y}` : "-";
446
449
  }
447
450
  },
448
451
  {
449
452
  title: t("tableHeaders.employeePayDate"),
450
- render: () => /* @__PURE__ */ r(a, { children: b?.checkDate ? s.formatShortWithYear(b.checkDate) : "-" })
453
+ render: () => b?.checkDate ? o.formatShortWithYear(b.checkDate) : "-"
451
454
  }
452
455
  ],
453
456
  data: [{}]
454
457
  }
455
- ) : G ? /* @__PURE__ */ r(
456
- m,
458
+ ) : J ? /* @__PURE__ */ r(
459
+ c,
457
460
  {
458
461
  label: t("payrollSummaryLabel"),
459
462
  columns: [
460
463
  {
461
464
  title: t("tableHeaders.totalPayroll"),
462
- render: () => /* @__PURE__ */ r(a, { children: l(g) })
465
+ render: () => n(k)
463
466
  },
464
467
  {
465
468
  title: t("tableHeaders.debitAmount"),
466
469
  render: () => {
467
- const e = o.totals?.companyDebit;
468
- return /* @__PURE__ */ r(a, { children: l(Number(e ?? 0)) });
470
+ const e = i.totals?.companyDebit;
471
+ return n(Number(e ?? 0));
469
472
  }
470
473
  },
471
474
  {
472
475
  title: t("tableHeaders.debitAccount"),
473
- render: () => /* @__PURE__ */ r(a, { children: O?.hiddenAccountNumber ?? "" })
476
+ render: () => Y?.hiddenAccountNumber ?? ""
474
477
  },
475
478
  {
476
479
  title: t("tableHeaders.debitDate"),
477
480
  render: () => {
478
- const n = b?.metadata?.debit_date;
479
- return /* @__PURE__ */ r(a, { children: s.formatShortWithYear(n) });
481
+ const a = b?.metadata?.debit_date;
482
+ return o.formatShortWithYear(a);
480
483
  }
481
484
  },
482
485
  {
483
486
  title: t("tableHeaders.employeePayDate"),
484
- render: () => /* @__PURE__ */ r(a, { children: b?.checkDate ? s.formatShortWithYear(b.checkDate) : "-" })
487
+ render: () => b?.checkDate ? o.formatShortWithYear(b.checkDate) : "-"
485
488
  }
486
489
  ],
487
490
  data: [{}]
488
491
  }
489
492
  ) : /* @__PURE__ */ r(
490
- m,
493
+ c,
491
494
  {
492
495
  label: t("payrollSummaryLabel"),
493
496
  columns: [
494
497
  {
495
498
  title: t("tableHeaders.totalPayroll"),
496
- render: () => /* @__PURE__ */ r(a, { children: l(g) })
499
+ render: () => n(k)
497
500
  },
498
501
  {
499
502
  title: t("tableHeaders.debitAmount"),
500
- render: () => /* @__PURE__ */ r(a, { children: l(Number(o.totals?.companyDebit ?? 0)) })
503
+ render: () => n(Number(i.totals?.companyDebit ?? 0))
501
504
  },
502
505
  {
503
506
  title: t("tableHeaders.debitAccount"),
504
- render: () => /* @__PURE__ */ r(a, { children: O?.hiddenAccountNumber ?? "" })
507
+ render: () => Y?.hiddenAccountNumber ?? ""
505
508
  },
506
509
  {
507
510
  title: t("tableHeaders.debitDate"),
508
- render: () => /* @__PURE__ */ r(a, { children: s.formatShortWithYear(de) })
511
+ render: () => o.formatShortWithYear(he)
509
512
  },
510
513
  {
511
514
  title: t("tableHeaders.employeePayDate"),
512
- render: () => /* @__PURE__ */ r(a, { children: s.formatShortWithYear(o.checkDate) })
515
+ render: () => o.formatShortWithYear(i.checkDate)
513
516
  }
514
517
  ],
515
518
  data: [{}]
516
519
  }
517
520
  ),
518
- K > 0 && /* @__PURE__ */ r(
519
- Y,
521
+ Z > 0 && /* @__PURE__ */ r(
522
+ L,
520
523
  {
521
524
  status: "warning",
522
- label: t("alerts.checkPaymentWarning", { count: K }),
523
- children: /* @__PURE__ */ r(a, { children: t("alerts.checkPaymentWarningDescription") })
525
+ label: t("alerts.checkPaymentWarning", { count: Z }),
526
+ children: /* @__PURE__ */ r(m, { children: t("alerts.checkPaymentWarningDescription") })
524
527
  }
525
528
  ),
526
529
  /* @__PURE__ */ r(
527
- ie,
530
+ ye,
528
531
  {
529
- onSelectionChange: se,
530
- selectedId: oe,
532
+ onSelectionChange: fe,
533
+ selectedId: pe,
531
534
  "aria-label": t("dataViews.label"),
532
- tabs: me
535
+ tabs: Te
533
536
  }
534
537
  ),
535
- B && /* @__PURE__ */ r(
536
- le,
538
+ j && /* @__PURE__ */ r(
539
+ be,
537
540
  {
538
- isOpen: B,
541
+ isOpen: j,
539
542
  onClose: () => {
540
- U(!1);
543
+ G(!1);
541
544
  },
542
- onPrimaryActionClick: Z,
545
+ onPrimaryActionClick: se,
543
546
  shouldCloseOnBackdropClick: !0,
544
547
  primaryActionLabel: t("confirmCancelCta"),
545
548
  isDestructive: !0,
546
549
  closeActionLabel: t("declineCancelCta"),
547
550
  title: t("cancelDialogTitle", {
548
- startDate: s.formatLong(o.payPeriod?.startDate),
549
- endDate: s.formatLongWithYear(o.payPeriod?.endDate)
551
+ startDate: o.formatLong(i.payPeriod?.startDate),
552
+ endDate: o.formatLongWithYear(i.payPeriod?.endDate)
550
553
  }),
551
- children: /* @__PURE__ */ d(f, { gap: 14, flexDirection: "column", children: [
552
- /* @__PURE__ */ r(a, { children: t("cancelDialogDescription") }),
553
- /* @__PURE__ */ r(a, { children: t("cancelDialogDescriptionDeadline", {
554
- deadline: s.formatWithTime(o.payrollDeadline).time
554
+ children: /* @__PURE__ */ s(d, { gap: 14, flexDirection: "column", children: [
555
+ /* @__PURE__ */ r(m, { children: t("cancelDialogDescription") }),
556
+ /* @__PURE__ */ r(m, { children: t("cancelDialogDescriptionDeadline", {
557
+ deadline: o.formatWithTime(i.payrollDeadline).time
555
558
  }) })
556
559
  ] })
557
560
  }
@@ -560,6 +563,6 @@ const we = (p, C) => p?.startDate && p.endDate ? C.formatPayPeriod(p.startDate,
560
563
  ] }) });
561
564
  };
562
565
  export {
563
- Xe as PayrollOverviewPresentation
566
+ tt as PayrollOverviewPresentation
564
567
  };
565
568
  //# sourceMappingURL=PayrollOverviewPresentation.js.map