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