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