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