@gusto/embedded-react-sdk 0.24.0 → 0.25.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (292) hide show
  1. package/CHANGELOG.md +80 -0
  2. package/dist/assets/icons/slash-circle.svg.js +10 -0
  3. package/dist/assets/icons/slash-circle.svg.js.map +1 -0
  4. package/dist/components/Base/Base.d.ts +1 -1
  5. package/dist/components/Base/Base.js.map +1 -1
  6. package/dist/components/Common/Fields/FileInputField/FileInputField.d.ts +5 -0
  7. package/dist/components/Common/Fields/FileInputField/FileInputField.js +34 -0
  8. package/dist/components/Common/Fields/FileInputField/FileInputField.js.map +1 -0
  9. package/dist/components/Common/Fields/FileInputField/index.d.ts +2 -0
  10. package/dist/components/Common/PaginationControl/PaginationControl.js +41 -40
  11. package/dist/components/Common/PaginationControl/PaginationControl.js.map +1 -1
  12. package/dist/components/Common/PaginationControl/PaginationControlTypes.d.ts +1 -0
  13. package/dist/components/Common/SignatureForm/SignatureFormFields.js +1 -1
  14. package/dist/components/Common/UI/Breadcrumbs/Breadcrumbs.js +1 -1
  15. package/dist/components/Common/UI/FileInput/FileInput.d.ts +2 -0
  16. package/dist/components/Common/UI/FileInput/FileInput.js +151 -0
  17. package/dist/components/Common/UI/FileInput/FileInput.js.map +1 -0
  18. package/dist/components/Common/UI/FileInput/FileInput.module.scss.js +34 -0
  19. package/dist/components/Common/UI/FileInput/FileInput.module.scss.js.map +1 -0
  20. package/dist/components/Common/UI/FileInput/FileInputTypes.d.ts +45 -0
  21. package/dist/components/Common/UI/FileInput/FileInputTypes.js +8 -0
  22. package/dist/components/Common/UI/FileInput/FileInputTypes.js.map +1 -0
  23. package/dist/components/Common/UI/FileInput/index.d.ts +4 -0
  24. package/dist/components/Common/UI/ProgressBar/ProgressBar.js +4 -4
  25. package/dist/components/Common/UI/TextInput/TextInput.js +27 -23
  26. package/dist/components/Common/UI/TextInput/TextInput.js.map +1 -1
  27. package/dist/components/Common/UI/TextInput/TextInputTypes.d.ts +1 -1
  28. package/dist/components/Common/UI/TextInput/TextInputTypes.js.map +1 -1
  29. package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js +1 -1
  30. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.js +12 -12
  31. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js +4 -3
  32. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js.map +1 -1
  33. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatoryForm.js +1 -1
  34. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js +4 -3
  35. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js.map +1 -1
  36. package/dist/components/Company/AssignSignatory/useAssignSignatory.js +6 -5
  37. package/dist/components/Company/AssignSignatory/useAssignSignatory.js.map +1 -1
  38. package/dist/components/Company/BankAccount/BankAccountForm/Form.js +1 -1
  39. package/dist/components/Company/BankAccount/BankAccountForm/context.js +4 -3
  40. package/dist/components/Company/BankAccount/BankAccountForm/context.js.map +1 -1
  41. package/dist/components/Company/BankAccount/BankAccountVerify/Form.js +1 -1
  42. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js +4 -3
  43. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  44. package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js +4 -3
  45. package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js.map +1 -1
  46. package/dist/components/Company/FederalTaxes/Form.js +1 -1
  47. package/dist/components/Company/FederalTaxes/useFederalTaxes.js +9 -8
  48. package/dist/components/Company/FederalTaxes/useFederalTaxes.js.map +1 -1
  49. package/dist/components/Company/Industry/Context.js +7 -6
  50. package/dist/components/Company/Industry/Context.js.map +1 -1
  51. package/dist/components/Company/Locations/LocationForm/Form.js +1 -1
  52. package/dist/components/Company/Locations/LocationForm/useLocationForm.js +4 -3
  53. package/dist/components/Company/Locations/LocationForm/useLocationForm.js.map +1 -1
  54. package/dist/components/Company/Locations/LocationsList/List.js +35 -33
  55. package/dist/components/Company/Locations/LocationsList/List.js.map +1 -1
  56. package/dist/components/Company/Locations/LocationsList/LocationsList.js +29 -28
  57. package/dist/components/Company/Locations/LocationsList/LocationsList.js.map +1 -1
  58. package/dist/components/Company/Locations/LocationsList/useLocationsList.d.ts +1 -0
  59. package/dist/components/Company/Locations/LocationsList/useLocationsList.js +4 -3
  60. package/dist/components/Company/Locations/LocationsList/useLocationsList.js.map +1 -1
  61. package/dist/components/Company/OnboardingOverview/context.js +4 -3
  62. package/dist/components/Company/OnboardingOverview/context.js.map +1 -1
  63. package/dist/components/Company/PaySchedule/_parts/Edit.js +15 -15
  64. package/dist/components/Company/PaySchedule/usePaySchedule.js +6 -5
  65. package/dist/components/Company/PaySchedule/usePaySchedule.js.map +1 -1
  66. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js +4 -3
  67. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js.map +1 -1
  68. package/dist/components/Company/StateTaxes/StateTaxesList/context.js +4 -3
  69. package/dist/components/Company/StateTaxes/StateTaxesList/context.js.map +1 -1
  70. package/dist/components/Contractor/Address/Form.js +1 -1
  71. package/dist/components/Contractor/Address/useAddress.js +6 -5
  72. package/dist/components/Contractor/Address/useAddress.js.map +1 -1
  73. package/dist/components/Contractor/ContractorList/index.js +16 -15
  74. package/dist/components/Contractor/ContractorList/index.js.map +1 -1
  75. package/dist/components/Contractor/PaymentMethod/BankAccountForm.js +2 -2
  76. package/dist/components/Contractor/PaymentMethod/PaymentTypeForm.js +1 -1
  77. package/dist/components/Contractor/Payments/CreatePayment/CreatePayment.js +61 -59
  78. package/dist/components/Contractor/Payments/CreatePayment/CreatePayment.js.map +1 -1
  79. package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.js +24 -22
  80. package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.js.map +1 -1
  81. package/dist/components/Contractor/Payments/CreatePayment/EditContractorPaymentPresentation.js +38 -19
  82. package/dist/components/Contractor/Payments/CreatePayment/EditContractorPaymentPresentation.js.map +1 -1
  83. package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.d.ts +3 -1
  84. package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.js +26 -25
  85. package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.js.map +1 -1
  86. package/dist/components/Contractor/Payments/PaymentFlow/PaymentFlowComponents.d.ts +2 -0
  87. package/dist/components/Contractor/Payments/PaymentFlow/PaymentFlowComponents.js +25 -19
  88. package/dist/components/Contractor/Payments/PaymentFlow/PaymentFlowComponents.js.map +1 -1
  89. package/dist/components/Contractor/Payments/PaymentFlow/paymentStateMachine.d.ts +1 -0
  90. package/dist/components/Contractor/Payments/PaymentFlow/paymentStateMachine.js +86 -56
  91. package/dist/components/Contractor/Payments/PaymentFlow/paymentStateMachine.js.map +1 -1
  92. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistory.d.ts +1 -2
  93. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistory.js +46 -21
  94. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistory.js.map +1 -1
  95. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.d.ts +6 -15
  96. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.js +115 -99
  97. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.js.map +1 -1
  98. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.module.scss.js +8 -0
  99. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.module.scss.js.map +1 -0
  100. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatement.d.ts +8 -0
  101. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatement.js +51 -0
  102. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatement.js.map +1 -0
  103. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.d.ts +11 -0
  104. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.js +157 -0
  105. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.js.map +1 -0
  106. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.module.scss.js +22 -0
  107. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.module.scss.js.map +1 -0
  108. package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.js +40 -43
  109. package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.js.map +1 -1
  110. package/dist/components/Contractor/Profile/ContractorProfileForm.js +15 -15
  111. package/dist/components/Contractor/Profile/useContractorProfile.js +3 -2
  112. package/dist/components/Contractor/Profile/useContractorProfile.js.map +1 -1
  113. package/dist/components/Employee/Compensation/Edit.js +14 -14
  114. package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.js +10 -9
  115. package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.js.map +1 -1
  116. package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.js +11 -10
  117. package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.js.map +1 -1
  118. package/dist/components/Employee/Deductions/DeductionsForm/GarnishmentForm.js +11 -10
  119. package/dist/components/Employee/Deductions/DeductionsForm/GarnishmentForm.js.map +1 -1
  120. package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js +4 -3
  121. package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  122. package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js +4 -3
  123. package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js.map +1 -1
  124. package/dist/components/Employee/EmployeeList/EmployeeList.js +57 -56
  125. package/dist/components/Employee/EmployeeList/EmployeeList.js.map +1 -1
  126. package/dist/components/Employee/EmployeeList/List.js +34 -32
  127. package/dist/components/Employee/EmployeeList/List.js.map +1 -1
  128. package/dist/components/Employee/EmployeeList/useEmployeeList.d.ts +1 -0
  129. package/dist/components/Employee/EmployeeList/useEmployeeList.js +4 -3
  130. package/dist/components/Employee/EmployeeList/useEmployeeList.js.map +1 -1
  131. package/dist/components/Employee/FederalTaxes/FederalForm.js +7 -7
  132. package/dist/components/Employee/FederalTaxes/useFederalTaxes.js +4 -3
  133. package/dist/components/Employee/FederalTaxes/useFederalTaxes.js.map +1 -1
  134. package/dist/components/Employee/PaymentMethod/BankAccountEdit.js +2 -2
  135. package/dist/components/Employee/PaymentMethod/PaymentTypeForm.js +1 -1
  136. package/dist/components/Employee/PaymentMethod/Split.js +8 -8
  137. package/dist/components/Employee/PaymentMethod/usePaymentMethod.js +6 -5
  138. package/dist/components/Employee/PaymentMethod/usePaymentMethod.js.map +1 -1
  139. package/dist/components/Employee/Profile/AdminPersonalDetails.js +1 -1
  140. package/dist/components/Employee/Profile/HomeAddress.js +1 -1
  141. package/dist/components/Employee/Profile/PersonalDetailsInputs.js +2 -2
  142. package/dist/components/Employee/Profile/useProfile.js +4 -3
  143. package/dist/components/Employee/Profile/useProfile.js.map +1 -1
  144. package/dist/components/Employee/StateTaxes/useStateTaxes.js +4 -3
  145. package/dist/components/Employee/StateTaxes/useStateTaxes.js.map +1 -1
  146. package/dist/components/Employee/Taxes/FederalForm.js +7 -7
  147. package/dist/components/Employee/Taxes/useTaxes.js +4 -3
  148. package/dist/components/Employee/Taxes/useTaxes.js.map +1 -1
  149. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsForm/ConfirmWireDetailsForm.js +9 -9
  150. package/dist/components/Payroll/InformationRequests/InformationRequestForm/InformationRequestForm.d.ts +15 -0
  151. package/dist/components/Payroll/InformationRequests/InformationRequestForm/InformationRequestForm.js +142 -0
  152. package/dist/components/Payroll/InformationRequests/InformationRequestForm/InformationRequestForm.js.map +1 -0
  153. package/dist/components/Payroll/InformationRequests/InformationRequestForm/InformationRequestForm.module.scss.js +18 -0
  154. package/dist/components/Payroll/InformationRequests/InformationRequestForm/InformationRequestForm.module.scss.js.map +1 -0
  155. package/dist/components/Payroll/InformationRequests/InformationRequestForm/index.d.ts +2 -0
  156. package/dist/components/Payroll/InformationRequests/InformationRequestList/InformationRequestList.d.ts +7 -0
  157. package/dist/components/Payroll/InformationRequests/InformationRequestList/InformationRequestList.js +88 -0
  158. package/dist/components/Payroll/InformationRequests/InformationRequestList/InformationRequestList.js.map +1 -0
  159. package/dist/components/Payroll/InformationRequests/InformationRequestList/index.d.ts +2 -0
  160. package/dist/components/Payroll/InformationRequests/InformationRequests.d.ts +6 -0
  161. package/dist/components/Payroll/InformationRequests/InformationRequests.js +55 -0
  162. package/dist/components/Payroll/InformationRequests/InformationRequests.js.map +1 -0
  163. package/dist/components/Payroll/InformationRequests/InformationRequestsComponents.d.ts +19 -0
  164. package/dist/components/Payroll/InformationRequests/InformationRequestsComponents.js +20 -0
  165. package/dist/components/Payroll/InformationRequests/InformationRequestsComponents.js.map +1 -0
  166. package/dist/components/Payroll/InformationRequests/index.d.ts +3 -0
  167. package/dist/components/Payroll/InformationRequests/informationRequestsStateMachine.d.ts +13 -0
  168. package/dist/components/Payroll/InformationRequests/informationRequestsStateMachine.js +47 -0
  169. package/dist/components/Payroll/InformationRequests/informationRequestsStateMachine.js.map +1 -0
  170. package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js +116 -130
  171. package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js.map +1 -1
  172. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.d.ts +5 -2
  173. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js +107 -99
  174. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js.map +1 -1
  175. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.module.scss.js +2 -4
  176. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.module.scss.js.map +1 -1
  177. package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.d.ts +21 -0
  178. package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.js +105 -0
  179. package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.js.map +1 -0
  180. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.js +41 -37
  181. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.js.map +1 -1
  182. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.d.ts +5 -4
  183. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js +137 -131
  184. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js.map +1 -1
  185. package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js +16 -15
  186. package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js.map +1 -1
  187. package/dist/components/Payroll/PayrollFlow/payrollStateMachine.d.ts +2 -0
  188. package/dist/components/Payroll/PayrollFlow/payrollStateMachine.js +174 -106
  189. package/dist/components/Payroll/PayrollFlow/payrollStateMachine.js.map +1 -1
  190. package/dist/components/Payroll/PayrollHistory/PayrollHistory.js +28 -28
  191. package/dist/components/Payroll/PayrollHistory/PayrollHistory.js.map +1 -1
  192. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.d.ts +2 -2
  193. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js +85 -104
  194. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js.map +1 -1
  195. package/dist/components/Payroll/PayrollLanding/PayrollLanding.js +24 -20
  196. package/dist/components/Payroll/PayrollLanding/PayrollLanding.js.map +1 -1
  197. package/dist/components/Payroll/PayrollLanding/PayrollLandingFlowComponents.d.ts +2 -0
  198. package/dist/components/Payroll/PayrollLanding/PayrollLandingFlowComponents.js +51 -46
  199. package/dist/components/Payroll/PayrollLanding/PayrollLandingFlowComponents.js.map +1 -1
  200. package/dist/components/Payroll/PayrollLanding/payrollLandingStateMachine.d.ts +2 -0
  201. package/dist/components/Payroll/PayrollLanding/payrollLandingStateMachine.js +111 -45
  202. package/dist/components/Payroll/PayrollLanding/payrollLandingStateMachine.js.map +1 -1
  203. package/dist/components/Payroll/PayrollList/PayrollListPresentation.js +136 -125
  204. package/dist/components/Payroll/PayrollList/PayrollListPresentation.js.map +1 -1
  205. package/dist/components/Payroll/PayrollList/PayrollListPresentation.module.scss.js +8 -4
  206. package/dist/components/Payroll/PayrollList/PayrollListPresentation.module.scss.js.map +1 -1
  207. package/dist/components/Payroll/PayrollOverview/PayrollOverview.js +117 -110
  208. package/dist/components/Payroll/PayrollOverview/PayrollOverview.js.map +1 -1
  209. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.d.ts +4 -2
  210. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js +282 -278
  211. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js.map +1 -1
  212. package/dist/components/Payroll/PayrollOverview/PayrollOverviewTypes.d.ts +6 -0
  213. package/dist/components/Payroll/PayrollOverview/PayrollOverviewTypes.js +5 -0
  214. package/dist/components/Payroll/PayrollOverview/PayrollOverviewTypes.js.map +1 -0
  215. package/dist/components/Payroll/RecoveryCases/RecoveryCases.d.ts +6 -0
  216. package/dist/components/Payroll/RecoveryCases/RecoveryCases.js +55 -0
  217. package/dist/components/Payroll/RecoveryCases/RecoveryCases.js.map +1 -0
  218. package/dist/components/Payroll/RecoveryCases/RecoveryCasesComponents.d.ts +19 -0
  219. package/dist/components/Payroll/RecoveryCases/RecoveryCasesComponents.js +19 -0
  220. package/dist/components/Payroll/RecoveryCases/RecoveryCasesComponents.js.map +1 -0
  221. package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.d.ts +7 -0
  222. package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.js +73 -0
  223. package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.js.map +1 -0
  224. package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.module.scss.js +10 -0
  225. package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.module.scss.js.map +1 -0
  226. package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/index.d.ts +2 -0
  227. package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.d.ts +14 -0
  228. package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.js +46 -0
  229. package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.js.map +1 -0
  230. package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/index.d.ts +2 -0
  231. package/dist/components/Payroll/RecoveryCases/index.d.ts +3 -0
  232. package/dist/components/Payroll/RecoveryCases/recoveryCasesStateMachine.d.ts +13 -0
  233. package/dist/components/Payroll/RecoveryCases/recoveryCasesStateMachine.js +47 -0
  234. package/dist/components/Payroll/RecoveryCases/recoveryCasesStateMachine.js.map +1 -0
  235. package/dist/components/Payroll/helpers.d.ts +12 -0
  236. package/dist/components/Payroll/helpers.js +129 -117
  237. package/dist/components/Payroll/helpers.js.map +1 -1
  238. package/dist/components/Payroll/index.d.ts +2 -0
  239. package/dist/components/Payroll/index.js +18 -14
  240. package/dist/components/Payroll/index.js.map +1 -1
  241. package/dist/components/Payroll/usePreparedPayrollData.d.ts +4 -1
  242. package/dist/components/Payroll/usePreparedPayrollData.js +43 -31
  243. package/dist/components/Payroll/usePreparedPayrollData.js.map +1 -1
  244. package/dist/contexts/ComponentAdapter/adapters/defaultComponentAdapter.js +27 -25
  245. package/dist/contexts/ComponentAdapter/adapters/defaultComponentAdapter.js.map +1 -1
  246. package/dist/contexts/ComponentAdapter/componentAdapterTypes.d.ts +1 -0
  247. package/dist/contexts/ComponentAdapter/createComponentsWithDefaults.d.ts +5 -0
  248. package/dist/contexts/ComponentAdapter/createComponentsWithDefaults.js +17 -15
  249. package/dist/contexts/ComponentAdapter/createComponentsWithDefaults.js.map +1 -1
  250. package/dist/contexts/ComponentAdapter/useComponentContext.d.ts +2 -0
  251. package/dist/contexts/ComponentAdapter/useComponentContext.js +3 -3
  252. package/dist/contexts/ComponentAdapter/useComponentContext.js.map +1 -1
  253. package/dist/helpers/dateFormatting.d.ts +1 -0
  254. package/dist/helpers/dateFormatting.js +1 -0
  255. package/dist/helpers/dateFormatting.js.map +1 -1
  256. package/dist/helpers/formattedStrings.d.ts +1 -0
  257. package/dist/helpers/formattedStrings.js +23 -18
  258. package/dist/helpers/formattedStrings.js.map +1 -1
  259. package/dist/helpers/responsive.js +1 -1
  260. package/dist/helpers/responsive.js.map +1 -1
  261. package/dist/i18n/I18n.js +3 -3
  262. package/dist/i18n/I18n.js.map +1 -1
  263. package/dist/i18n/en/Contractor.Payments.CreatePayment.json.js +36 -32
  264. package/dist/i18n/en/Contractor.Payments.CreatePayment.json.js.map +1 -1
  265. package/dist/i18n/en/Contractor.Payments.PaymentHistory.json.js +11 -11
  266. package/dist/i18n/en/Contractor.Payments.PaymentStatement.json.js +28 -0
  267. package/dist/i18n/en/Contractor.Payments.PaymentStatement.json.js.map +1 -0
  268. package/dist/i18n/en/Contractor.Payments.PaymentsList.json.js +14 -14
  269. package/dist/i18n/en/Payroll.InformationRequestForm.json.js +18 -0
  270. package/dist/i18n/en/Payroll.InformationRequestForm.json.js.map +1 -0
  271. package/dist/i18n/en/Payroll.InformationRequestList.json.js +18 -0
  272. package/dist/i18n/en/Payroll.InformationRequestList.json.js.map +1 -0
  273. package/dist/i18n/en/Payroll.PayrollConfiguration.json.js +27 -21
  274. package/dist/i18n/en/Payroll.PayrollConfiguration.json.js.map +1 -1
  275. package/dist/i18n/en/Payroll.PayrollHistory.json.js +6 -6
  276. package/dist/i18n/en/Payroll.PayrollLanding.json.js +5 -3
  277. package/dist/i18n/en/Payroll.PayrollLanding.json.js.map +1 -1
  278. package/dist/i18n/en/Payroll.PayrollOverview.json.js +32 -28
  279. package/dist/i18n/en/Payroll.PayrollOverview.json.js.map +1 -1
  280. package/dist/i18n/en/Payroll.RecoveryCasesList.json.js +14 -0
  281. package/dist/i18n/en/Payroll.RecoveryCasesList.json.js.map +1 -0
  282. package/dist/i18n/en/Payroll.RecoveryCasesResubmit.json.js +8 -0
  283. package/dist/i18n/en/Payroll.RecoveryCasesResubmit.json.js.map +1 -0
  284. package/dist/i18n/en/common.json.d.ts +6 -0
  285. package/dist/i18n/en/common.json.js +4 -2
  286. package/dist/i18n/en/common.json.js.map +1 -1
  287. package/dist/shared/constants.d.ts +25 -1
  288. package/dist/shared/constants.js +72 -55
  289. package/dist/shared/constants.js.map +1 -1
  290. package/dist/style.css +1 -1
  291. package/dist/types/i18next.d.ts +120 -3
  292. package/package.json +31 -20
@@ -0,0 +1,18 @@
1
+ const t = "_root_11yro_1", r = "_questionCard_11yro_5", o = "_questionDescription_11yro_15", e = "_textInputWrapper_11yro_22", n = "_fileInputWrapper_11yro_26", p = "_divider_11yro_31", i = {
2
+ root: t,
3
+ questionCard: r,
4
+ questionDescription: o,
5
+ textInputWrapper: e,
6
+ fileInputWrapper: n,
7
+ divider: p
8
+ };
9
+ export {
10
+ i as default,
11
+ p as divider,
12
+ n as fileInputWrapper,
13
+ r as questionCard,
14
+ o as questionDescription,
15
+ t as root,
16
+ e as textInputWrapper
17
+ };
18
+ //# sourceMappingURL=InformationRequestForm.module.scss.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InformationRequestForm.module.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
@@ -0,0 +1,2 @@
1
+ import "./types/i18next.d.ts"
2
+ export { InformationRequestForm } from './InformationRequestForm';
@@ -0,0 +1,7 @@
1
+ import { BaseComponentInterface } from '../../../Base';
2
+ interface InformationRequestListProps extends BaseComponentInterface<'Payroll.InformationRequestList'> {
3
+ companyId: string;
4
+ onEvent: BaseComponentInterface['onEvent'];
5
+ }
6
+ export declare function InformationRequestList(props: InformationRequestListProps): import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,88 @@
1
+ import { jsx as n, jsxs as l } from "react/jsx-runtime";
2
+ import { useTranslation as I } from "react-i18next";
3
+ import { useInformationRequestsGetInformationRequests as b } from "@gusto/embedded-api/react-query/informationRequestsGetInformationRequests";
4
+ import { InformationRequestStatus as s, InformationRequestType as i } from "@gusto/embedded-api/models/components/informationrequest";
5
+ import { BaseComponent as w } from "../../../Base/Base.js";
6
+ import "../../../Base/useBase.js";
7
+ import { useComponentContext as x } from "../../../../contexts/ComponentAdapter/useComponentContext.js";
8
+ import { useComponentDictionary as S, useI18n as v } from "../../../../i18n/I18n.js";
9
+ import { DataView as C } from "../../../Common/DataView/DataView.js";
10
+ import { useDataView as D } from "../../../Common/DataView/useDataView.js";
11
+ import { FlexItem as E, Flex as a } from "../../../Common/Flex/Flex.js";
12
+ import "classnames";
13
+ import { informationRequestEvents as L } from "../../../../shared/constants.js";
14
+ import "react";
15
+ function J(o) {
16
+ return /* @__PURE__ */ n(w, { ...o, children: /* @__PURE__ */ n(T, { ...o, children: o.children }) });
17
+ }
18
+ function T({ companyId: o, dictionary: m, onEvent: c }) {
19
+ S("Payroll.InformationRequestList", m), v("Payroll.InformationRequestList");
20
+ const { t } = I("Payroll.InformationRequestList"), { Heading: p, Text: u, Button: d, Badge: f } = x(), { data: y, isFetching: R } = b({
21
+ companyUuid: o
22
+ }), g = (y?.informationRequestList ?? []).filter(
23
+ (e) => e.blockingPayroll && e.status !== s.Approved
24
+ ), h = (e) => {
25
+ switch (e) {
26
+ case i.CompanyOnboarding:
27
+ return t("types.companyOnboarding");
28
+ case i.AccountProtection:
29
+ return t("types.accountProtection");
30
+ case i.PaymentRequest:
31
+ return t("types.paymentRequest");
32
+ case i.PaymentError:
33
+ return t("types.paymentError");
34
+ default:
35
+ return t("types.unknown");
36
+ }
37
+ }, P = (e) => {
38
+ switch (e) {
39
+ case s.PendingResponse:
40
+ return { label: t("status.incomplete"), badgeStatus: "info" };
41
+ case s.PendingReview:
42
+ return { label: t("status.underReview"), badgeStatus: "warning" };
43
+ default:
44
+ return null;
45
+ }
46
+ }, q = D({
47
+ data: g,
48
+ isFetching: R,
49
+ columns: [
50
+ {
51
+ key: "type",
52
+ title: t("columns.type"),
53
+ render: (e) => /* @__PURE__ */ n(E, { flexGrow: 1, children: /* @__PURE__ */ n(u, { weight: "medium", children: h(e.type) }) })
54
+ },
55
+ {
56
+ key: "status",
57
+ title: t("columns.status"),
58
+ render: (e) => {
59
+ const r = P(e.status);
60
+ return r ? /* @__PURE__ */ n(a, { gap: 8, alignItems: "center", children: /* @__PURE__ */ n(f, { status: r.badgeStatus, children: r.label }) }) : null;
61
+ }
62
+ }
63
+ ],
64
+ itemMenu: (e) => e.status === s.PendingResponse ? /* @__PURE__ */ n(
65
+ d,
66
+ {
67
+ variant: "secondary",
68
+ onClick: () => {
69
+ c(L.INFORMATION_REQUEST_RESPOND, {
70
+ requestId: e.uuid
71
+ });
72
+ },
73
+ children: t("cta.respond")
74
+ }
75
+ ) : null
76
+ });
77
+ return /* @__PURE__ */ l(a, { flexDirection: "column", gap: 20, children: [
78
+ /* @__PURE__ */ l(a, { flexDirection: "column", gap: 2, children: [
79
+ /* @__PURE__ */ n(p, { as: "h2", styledAs: "h3", children: t("title") }),
80
+ /* @__PURE__ */ n(u, { children: t("description") })
81
+ ] }),
82
+ /* @__PURE__ */ n(C, { ...q, label: t("title") })
83
+ ] });
84
+ }
85
+ export {
86
+ J as InformationRequestList
87
+ };
88
+ //# sourceMappingURL=InformationRequestList.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InformationRequestList.js","sources":["../../../../../src/components/Payroll/InformationRequests/InformationRequestList/InformationRequestList.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport { useInformationRequestsGetInformationRequests } from '@gusto/embedded-api/react-query/informationRequestsGetInformationRequests'\nimport type { InformationRequest } from '@gusto/embedded-api/models/components/informationrequest'\nimport {\n InformationRequestStatus,\n InformationRequestType,\n} from '@gusto/embedded-api/models/components/informationrequest'\nimport { BaseComponent, type BaseComponentInterface } from '@/components/Base'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\nimport { useComponentDictionary, useI18n } from '@/i18n'\nimport { DataView } from '@/components/Common/DataView/DataView'\nimport { useDataView } from '@/components/Common/DataView/useDataView'\nimport { Flex, FlexItem } from '@/components/Common'\nimport { informationRequestEvents } from '@/shared/constants'\nimport type { BadgeProps } from '@/components/Common/UI/Badge/BadgeTypes'\n\ninterface InformationRequestListProps extends BaseComponentInterface<'Payroll.InformationRequestList'> {\n companyId: string\n onEvent: BaseComponentInterface['onEvent']\n}\n\nexport function InformationRequestList(props: InformationRequestListProps) {\n return (\n <BaseComponent {...props}>\n <Root {...props}>{props.children}</Root>\n </BaseComponent>\n )\n}\n\ntype StatusMapping = {\n label: string\n badgeStatus: BadgeProps['status']\n} | null\n\nfunction Root({ companyId, dictionary, onEvent }: InformationRequestListProps) {\n useComponentDictionary('Payroll.InformationRequestList', dictionary)\n useI18n('Payroll.InformationRequestList')\n const { t } = useTranslation('Payroll.InformationRequestList')\n const { Heading, Text, Button, Badge } = useComponentContext()\n\n const { data, isFetching } = useInformationRequestsGetInformationRequests({\n companyUuid: companyId,\n })\n\n const informationRequests = data?.informationRequestList ?? []\n\n const visibleRequests = informationRequests.filter(\n request => request.blockingPayroll && request.status !== InformationRequestStatus.Approved,\n )\n\n const getTypeLabel = (type: InformationRequest['type']): string => {\n switch (type) {\n case InformationRequestType.CompanyOnboarding:\n return t('types.companyOnboarding')\n case InformationRequestType.AccountProtection:\n return t('types.accountProtection')\n case InformationRequestType.PaymentRequest:\n return t('types.paymentRequest')\n case InformationRequestType.PaymentError:\n return t('types.paymentError')\n default:\n return t('types.unknown')\n }\n }\n\n const getStatusMapping = (status: InformationRequest['status']): StatusMapping => {\n switch (status) {\n case InformationRequestStatus.PendingResponse:\n return { label: t('status.incomplete'), badgeStatus: 'info' }\n case InformationRequestStatus.PendingReview:\n return { label: t('status.underReview'), badgeStatus: 'warning' }\n default:\n return null\n }\n }\n\n const dataViewProps = useDataView({\n data: visibleRequests,\n isFetching,\n columns: [\n {\n key: 'type',\n title: t('columns.type'),\n render: request => (\n <FlexItem flexGrow={1}>\n <Text weight=\"medium\">{getTypeLabel(request.type)}</Text>\n </FlexItem>\n ),\n },\n {\n key: 'status',\n title: t('columns.status'),\n render: request => {\n const statusMapping = getStatusMapping(request.status)\n if (!statusMapping) {\n return null\n }\n return (\n <Flex gap={8} alignItems=\"center\">\n <Badge status={statusMapping.badgeStatus}>{statusMapping.label}</Badge>\n </Flex>\n )\n },\n },\n ],\n itemMenu: request => {\n const isPendingResponse = request.status === InformationRequestStatus.PendingResponse\n if (!isPendingResponse) {\n return null\n }\n return (\n <Button\n variant=\"secondary\"\n onClick={() => {\n onEvent(informationRequestEvents.INFORMATION_REQUEST_RESPOND, {\n requestId: request.uuid,\n })\n }}\n >\n {t('cta.respond')}\n </Button>\n )\n },\n })\n\n return (\n <Flex flexDirection=\"column\" gap={20}>\n <Flex flexDirection=\"column\" gap={2}>\n <Heading as=\"h2\" styledAs=\"h3\">\n {t('title')}\n </Heading>\n <Text>{t('description')}</Text>\n </Flex>\n\n <DataView {...dataViewProps} label={t('title')} />\n </Flex>\n )\n}\n"],"names":["InformationRequestList","props","jsx","BaseComponent","Root","companyId","dictionary","onEvent","useComponentDictionary","useI18n","useTranslation","Heading","Text","Button","Badge","useComponentContext","data","isFetching","useInformationRequestsGetInformationRequests","visibleRequests","request","InformationRequestStatus","getTypeLabel","type","InformationRequestType","getStatusMapping","status","dataViewProps","useDataView","FlexItem","statusMapping","Flex","informationRequestEvents","jsxs","DataView"],"mappings":";;;;;;;;;;;;;;AAqBO,SAASA,EAAuBC,GAAoC;AACzE,SACE,gBAAAC,EAACC,GAAA,EAAe,GAAGF,GACjB,UAAA,gBAAAC,EAACE,KAAM,GAAGH,GAAQ,UAAAA,EAAM,SAAA,CAAS,EAAA,CACnC;AAEJ;AAOA,SAASG,EAAK,EAAE,WAAAC,GAAW,YAAAC,GAAY,SAAAC,KAAwC;AAC7E,EAAAC,EAAuB,kCAAkCF,CAAU,GACnEG,EAAQ,gCAAgC;AACxC,QAAM,EAAE,EAAA,IAAMC,EAAe,gCAAgC,GACvD,EAAE,SAAAC,GAAS,MAAAC,GAAM,QAAAC,GAAQ,OAAAC,EAAA,IAAUC,EAAA,GAEnC,EAAE,MAAAC,GAAM,YAAAC,EAAA,IAAeC,EAA6C;AAAA,IACxE,aAAab;AAAA,EAAA,CACd,GAIKc,KAFsBH,GAAM,0BAA0B,CAAA,GAEhB;AAAA,IAC1C,CAAAI,MAAWA,EAAQ,mBAAmBA,EAAQ,WAAWC,EAAyB;AAAA,EAAA,GAG9EC,IAAe,CAACC,MAA6C;AACjE,YAAQA,GAAA;AAAA,MACN,KAAKC,EAAuB;AAC1B,eAAO,EAAE,yBAAyB;AAAA,MACpC,KAAKA,EAAuB;AAC1B,eAAO,EAAE,yBAAyB;AAAA,MACpC,KAAKA,EAAuB;AAC1B,eAAO,EAAE,sBAAsB;AAAA,MACjC,KAAKA,EAAuB;AAC1B,eAAO,EAAE,oBAAoB;AAAA,MAC/B;AACE,eAAO,EAAE,eAAe;AAAA,IAAA;AAAA,EAE9B,GAEMC,IAAmB,CAACC,MAAwD;AAChF,YAAQA,GAAA;AAAA,MACN,KAAKL,EAAyB;AAC5B,eAAO,EAAE,OAAO,EAAE,mBAAmB,GAAG,aAAa,OAAA;AAAA,MACvD,KAAKA,EAAyB;AAC5B,eAAO,EAAE,OAAO,EAAE,oBAAoB,GAAG,aAAa,UAAA;AAAA,MACxD;AACE,eAAO;AAAA,IAAA;AAAA,EAEb,GAEMM,IAAgBC,EAAY;AAAA,IAChC,MAAMT;AAAA,IACN,YAAAF;AAAA,IACA,SAAS;AAAA,MACP;AAAA,QACE,KAAK;AAAA,QACL,OAAO,EAAE,cAAc;AAAA,QACvB,QAAQ,CAAAG,MACN,gBAAAlB,EAAC2B,GAAA,EAAS,UAAU,GAClB,UAAA,gBAAA3B,EAACU,GAAA,EAAK,QAAO,UAAU,UAAAU,EAAaF,EAAQ,IAAI,GAAE,EAAA,CACpD;AAAA,MAAA;AAAA,MAGJ;AAAA,QACE,KAAK;AAAA,QACL,OAAO,EAAE,gBAAgB;AAAA,QACzB,QAAQ,CAAAA,MAAW;AACjB,gBAAMU,IAAgBL,EAAiBL,EAAQ,MAAM;AACrD,iBAAKU,IAIH,gBAAA5B,EAAC6B,GAAA,EAAK,KAAK,GAAG,YAAW,UACvB,UAAA,gBAAA7B,EAACY,GAAA,EAAM,QAAQgB,EAAc,aAAc,UAAAA,EAAc,OAAM,GACjE,IALO;AAAA,QAOX;AAAA,MAAA;AAAA,IACF;AAAA,IAEF,UAAU,CAAAV,MACkBA,EAAQ,WAAWC,EAAyB,kBAKpE,gBAAAnB;AAAA,MAACW;AAAA,MAAA;AAAA,QACC,SAAQ;AAAA,QACR,SAAS,MAAM;AACb,UAAAN,EAAQyB,EAAyB,6BAA6B;AAAA,YAC5D,WAAWZ,EAAQ;AAAA,UAAA,CACpB;AAAA,QACH;AAAA,QAEC,YAAE,aAAa;AAAA,MAAA;AAAA,IAAA,IAXX;AAAA,EAcX,CACD;AAED,SACE,gBAAAa,EAACF,GAAA,EAAK,eAAc,UAAS,KAAK,IAChC,UAAA;AAAA,IAAA,gBAAAE,EAACF,GAAA,EAAK,eAAc,UAAS,KAAK,GAChC,UAAA;AAAA,MAAA,gBAAA7B,EAACS,KAAQ,IAAG,MAAK,UAAS,MACvB,UAAA,EAAE,OAAO,GACZ;AAAA,MACA,gBAAAT,EAACU,GAAA,EAAM,UAAA,EAAE,aAAa,EAAA,CAAE;AAAA,IAAA,GAC1B;AAAA,sBAECsB,GAAA,EAAU,GAAGP,GAAe,OAAO,EAAE,OAAO,EAAA,CAAG;AAAA,EAAA,GAClD;AAEJ;"}
@@ -0,0 +1,2 @@
1
+ import "./types/i18next.d.ts"
2
+ export { InformationRequestList } from './InformationRequestList';
@@ -0,0 +1,6 @@
1
+ import { BaseComponentInterface } from '../../Base';
2
+ export interface InformationRequestsProps {
3
+ companyId: string;
4
+ onEvent?: BaseComponentInterface['onEvent'];
5
+ }
6
+ export declare function InformationRequests({ companyId, onEvent }: InformationRequestsProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,55 @@
1
+ import { jsxs as O, jsx as e } from "react/jsx-runtime";
2
+ import { createMachine as p } from "robot3";
3
+ import { useMachine as d } from "react-robot";
4
+ import { useState as v, useMemo as C } from "react";
5
+ import { informationRequestsMachine as N } from "./informationRequestsStateMachine.js";
6
+ import { useComponentContext as h } from "../../../contexts/ComponentAdapter/useComponentContext.js";
7
+ import { FlowContext as F } from "../../Flow/useFlow.js";
8
+ import { informationRequestEvents as i } from "../../../shared/constants.js";
9
+ import { InformationRequestList as I } from "./InformationRequestList/InformationRequestList.js";
10
+ function D({ companyId: t, onEvent: c = () => {
11
+ } }) {
12
+ const { Modal: l } = h(), [u, r] = v(!1), E = C(
13
+ () => p(
14
+ "list",
15
+ N,
16
+ () => ({
17
+ component: null,
18
+ companyId: t,
19
+ onEvent: n
20
+ })
21
+ ),
22
+ [t]
23
+ ), [m, M] = d(E);
24
+ function n(o, a) {
25
+ M({ type: o, payload: a }), o === i.INFORMATION_REQUEST_RESPOND && r(!0), (o === i.INFORMATION_REQUEST_FORM_CANCEL || o === i.INFORMATION_REQUEST_FORM_DONE) && r(!1), c(o, a);
26
+ }
27
+ const R = () => {
28
+ r(!1);
29
+ }, s = m.context.component, f = s?.Footer || void 0;
30
+ return /* @__PURE__ */ O(
31
+ F.Provider,
32
+ {
33
+ value: {
34
+ ...m.context,
35
+ onEvent: n
36
+ },
37
+ children: [
38
+ /* @__PURE__ */ e(I, { companyId: t, onEvent: n }),
39
+ /* @__PURE__ */ e(
40
+ l,
41
+ {
42
+ isOpen: u,
43
+ onClose: R,
44
+ footer: f && /* @__PURE__ */ e(f, { onEvent: n }),
45
+ children: s && /* @__PURE__ */ e(s, {})
46
+ }
47
+ )
48
+ ]
49
+ }
50
+ );
51
+ }
52
+ export {
53
+ D as InformationRequests
54
+ };
55
+ //# sourceMappingURL=InformationRequests.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InformationRequests.js","sources":["../../../../src/components/Payroll/InformationRequests/InformationRequests.tsx"],"sourcesContent":["import { createMachine } from 'robot3'\nimport { useMachine } from 'react-robot'\nimport { useMemo, useState } from 'react'\nimport { InformationRequestList } from './InformationRequestList'\nimport { informationRequestsMachine } from './informationRequestsStateMachine'\nimport { type InformationRequestsContextInterface } from './InformationRequestsComponents'\nimport { type BaseComponentInterface } from '@/components/Base'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\nimport { FlowContext } from '@/components/Flow/useFlow'\nimport { informationRequestEvents, type EventType } from '@/shared/constants'\n\nexport interface InformationRequestsProps {\n companyId: string\n onEvent?: BaseComponentInterface['onEvent']\n}\n\nexport function InformationRequests({ companyId, onEvent = () => {} }: InformationRequestsProps) {\n const { Modal } = useComponentContext()\n const [isModalOpen, setIsModalOpen] = useState(false)\n\n const informationRequestsMachineInstance = useMemo(\n () =>\n createMachine(\n 'list',\n informationRequestsMachine,\n (): InformationRequestsContextInterface => ({\n component: null,\n companyId,\n onEvent: handleEvent,\n }),\n ),\n [companyId],\n )\n const [current, send] = useMachine(informationRequestsMachineInstance)\n\n function handleEvent(type: EventType, data?: unknown) {\n send({ type, payload: data })\n\n if (type === informationRequestEvents.INFORMATION_REQUEST_RESPOND) {\n setIsModalOpen(true)\n }\n\n if (\n type === informationRequestEvents.INFORMATION_REQUEST_FORM_CANCEL ||\n type === informationRequestEvents.INFORMATION_REQUEST_FORM_DONE\n ) {\n setIsModalOpen(false)\n }\n\n onEvent(type, data)\n }\n\n const handleCloseModal = () => {\n setIsModalOpen(false)\n }\n\n const CurrentComponent = current.context.component\n const Footer = CurrentComponent?.Footer || undefined\n\n return (\n <FlowContext.Provider\n value={{\n ...current.context,\n onEvent: handleEvent,\n }}\n >\n <InformationRequestList companyId={companyId} onEvent={handleEvent} />\n <Modal\n isOpen={isModalOpen}\n onClose={handleCloseModal}\n footer={Footer && <Footer onEvent={handleEvent} />}\n >\n {CurrentComponent && <CurrentComponent />}\n </Modal>\n </FlowContext.Provider>\n )\n}\n"],"names":["InformationRequests","companyId","onEvent","Modal","useComponentContext","isModalOpen","setIsModalOpen","useState","informationRequestsMachineInstance","useMemo","createMachine","informationRequestsMachine","handleEvent","current","send","useMachine","type","data","informationRequestEvents","handleCloseModal","CurrentComponent","Footer","jsxs","FlowContext","jsx","InformationRequestList"],"mappings":";;;;;;;;;AAgBO,SAASA,EAAoB,EAAE,WAAAC,GAAW,SAAAC,IAAU,MAAM;AAAC,KAA+B;AAC/F,QAAM,EAAE,OAAAC,EAAA,IAAUC,EAAA,GACZ,CAACC,GAAaC,CAAc,IAAIC,EAAS,EAAK,GAE9CC,IAAqCC;AAAA,IACzC,MACEC;AAAA,MACE;AAAA,MACAC;AAAA,MACA,OAA4C;AAAA,QAC1C,WAAW;AAAA,QACX,WAAAV;AAAA,QACA,SAASW;AAAA,MAAA;AAAA,IACX;AAAA,IAEJ,CAACX,CAAS;AAAA,EAAA,GAEN,CAACY,GAASC,CAAI,IAAIC,EAAWP,CAAkC;AAErE,WAASI,EAAYI,GAAiBC,GAAgB;AACpD,IAAAH,EAAK,EAAE,MAAAE,GAAM,SAASC,EAAA,CAAM,GAExBD,MAASE,EAAyB,+BACpCZ,EAAe,EAAI,IAInBU,MAASE,EAAyB,mCAClCF,MAASE,EAAyB,kCAElCZ,EAAe,EAAK,GAGtBJ,EAAQc,GAAMC,CAAI;AAAA,EACpB;AAEA,QAAME,IAAmB,MAAM;AAC7B,IAAAb,EAAe,EAAK;AAAA,EACtB,GAEMc,IAAmBP,EAAQ,QAAQ,WACnCQ,IAASD,GAAkB,UAAU;AAE3C,SACE,gBAAAE;AAAA,IAACC,EAAY;AAAA,IAAZ;AAAA,MACC,OAAO;AAAA,QACL,GAAGV,EAAQ;AAAA,QACX,SAASD;AAAA,MAAA;AAAA,MAGX,UAAA;AAAA,QAAA,gBAAAY,EAACC,GAAA,EAAuB,WAAAxB,GAAsB,SAASW,EAAA,CAAa;AAAA,QACpE,gBAAAY;AAAA,UAACrB;AAAA,UAAA;AAAA,YACC,QAAQE;AAAA,YACR,SAASc;AAAA,YACT,QAAQE,KAAU,gBAAAG,EAACH,GAAA,EAAO,SAAST,GAAa;AAAA,YAE/C,UAAAQ,uBAAqBA,GAAA,CAAA,CAAiB;AAAA,UAAA;AAAA,QAAA;AAAA,MACzC;AAAA,IAAA;AAAA,EAAA;AAGN;"}
@@ -0,0 +1,19 @@
1
+ import { FlowContextInterface } from '../../Flow/useFlow';
2
+ import { CommonComponentInterface } from '../../Base';
3
+ import { EventType } from '../../../types/Helpers';
4
+ import { OnEventType } from '../../Base/useBase';
5
+ export interface InformationRequestsContextInterface extends FlowContextInterface {
6
+ companyId: string;
7
+ selectedRequestId?: string;
8
+ component: (React.ComponentType<CommonComponentInterface> & {
9
+ Footer?: React.ComponentType<{
10
+ onEvent: OnEventType<EventType, unknown>;
11
+ }>;
12
+ }) | null;
13
+ }
14
+ export declare function InformationRequestFormContextual(): import("react/jsx-runtime").JSX.Element;
15
+ export declare namespace InformationRequestFormContextual {
16
+ var Footer: ({ onEvent }: {
17
+ onEvent: OnEventType<EventType, unknown>;
18
+ }) => import("react/jsx-runtime").JSX.Element;
19
+ }
@@ -0,0 +1,20 @@
1
+ import { jsx as m } from "react/jsx-runtime";
2
+ import { useFlow as n } from "../../Flow/useFlow.js";
3
+ import { ensureRequired as u } from "../../../helpers/ensureRequired.js";
4
+ import { InformationRequestForm as o } from "./InformationRequestForm/InformationRequestForm.js";
5
+ function s() {
6
+ const { companyId: e, selectedRequestId: r, onEvent: t } = n();
7
+ return /* @__PURE__ */ m(
8
+ o,
9
+ {
10
+ companyId: e,
11
+ requestId: u(r),
12
+ onEvent: t
13
+ }
14
+ );
15
+ }
16
+ s.Footer = o.Footer;
17
+ export {
18
+ s as InformationRequestFormContextual
19
+ };
20
+ //# sourceMappingURL=InformationRequestsComponents.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InformationRequestsComponents.js","sources":["../../../../src/components/Payroll/InformationRequests/InformationRequestsComponents.tsx"],"sourcesContent":["import { InformationRequestForm } from './InformationRequestForm'\nimport { useFlow } from '@/components/Flow/useFlow'\nimport { ensureRequired } from '@/helpers/ensureRequired'\nimport type { FlowContextInterface } from '@/components/Flow/useFlow'\nimport type { CommonComponentInterface } from '@/components/Base'\nimport type { EventType } from '@/types/Helpers'\nimport type { OnEventType } from '@/components/Base/useBase'\n\nexport interface InformationRequestsContextInterface extends FlowContextInterface {\n companyId: string\n selectedRequestId?: string\n component:\n | (React.ComponentType<CommonComponentInterface> & {\n Footer?: React.ComponentType<{\n onEvent: OnEventType<EventType, unknown>\n }>\n })\n | null\n}\n\nexport function InformationRequestFormContextual() {\n const { companyId, selectedRequestId, onEvent } = useFlow<InformationRequestsContextInterface>()\n\n return (\n <InformationRequestForm\n companyId={companyId}\n requestId={ensureRequired(selectedRequestId)}\n onEvent={onEvent}\n />\n )\n}\n\nInformationRequestFormContextual.Footer = InformationRequestForm.Footer\n"],"names":["InformationRequestFormContextual","companyId","selectedRequestId","onEvent","useFlow","jsx","InformationRequestForm","ensureRequired"],"mappings":";;;;AAoBO,SAASA,IAAmC;AACjD,QAAM,EAAE,WAAAC,GAAW,mBAAAC,GAAmB,SAAAC,EAAA,IAAYC,EAAA;AAElD,SACE,gBAAAC;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,WAAAL;AAAA,MACA,WAAWM,EAAeL,CAAiB;AAAA,MAC3C,SAAAC;AAAA,IAAA;AAAA,EAAA;AAGN;AAEAH,EAAiC,SAASM,EAAuB;"}
@@ -0,0 +1,3 @@
1
+ import "./types/i18next.d.ts"
2
+ export { InformationRequests } from './InformationRequests';
3
+ export type { InformationRequestsContextInterface } from './InformationRequestsComponents';
@@ -0,0 +1,13 @@
1
+ import { informationRequestEvents } from '../../../shared/constants';
2
+ export type EventPayloads = {
3
+ [informationRequestEvents.INFORMATION_REQUEST_RESPOND]: {
4
+ requestId: string;
5
+ };
6
+ [informationRequestEvents.INFORMATION_REQUEST_FORM_CANCEL]: undefined;
7
+ [informationRequestEvents.INFORMATION_REQUEST_FORM_DONE]: undefined;
8
+ };
9
+ export declare const informationRequestsMachine: {
10
+ list: import('robot3').MachineState<any>;
11
+ form: import('robot3').MachineState<any>;
12
+ final: import('robot3').MachineState<any>;
13
+ };
@@ -0,0 +1,47 @@
1
+ import { state as t, transition as o, reduce as n } from "robot3";
2
+ import { InformationRequestFormContextual as r } from "./InformationRequestsComponents.js";
3
+ import { informationRequestEvents as s } from "../../../shared/constants.js";
4
+ const d = {
5
+ list: t(
6
+ o(
7
+ s.INFORMATION_REQUEST_RESPOND,
8
+ "form",
9
+ n(
10
+ (e, i) => ({
11
+ ...e,
12
+ component: r,
13
+ selectedRequestId: i.payload.requestId
14
+ })
15
+ )
16
+ )
17
+ ),
18
+ form: t(
19
+ o(
20
+ s.INFORMATION_REQUEST_FORM_DONE,
21
+ "list",
22
+ n(
23
+ (e) => ({
24
+ ...e,
25
+ component: null,
26
+ selectedRequestId: void 0
27
+ })
28
+ )
29
+ ),
30
+ o(
31
+ s.INFORMATION_REQUEST_FORM_CANCEL,
32
+ "list",
33
+ n(
34
+ (e) => ({
35
+ ...e,
36
+ component: null,
37
+ selectedRequestId: void 0
38
+ })
39
+ )
40
+ )
41
+ ),
42
+ final: t()
43
+ };
44
+ export {
45
+ d as informationRequestsMachine
46
+ };
47
+ //# sourceMappingURL=informationRequestsStateMachine.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"informationRequestsStateMachine.js","sources":["../../../../src/components/Payroll/InformationRequests/informationRequestsStateMachine.tsx"],"sourcesContent":["import { state, transition, reduce } from 'robot3'\nimport type { InformationRequestsContextInterface } from './InformationRequestsComponents'\nimport { InformationRequestFormContextual } from './InformationRequestsComponents'\nimport { informationRequestEvents } from '@/shared/constants'\nimport type { MachineEventType, MachineTransition } from '@/types/Helpers'\n\nexport type EventPayloads = {\n [informationRequestEvents.INFORMATION_REQUEST_RESPOND]: {\n requestId: string\n }\n [informationRequestEvents.INFORMATION_REQUEST_FORM_CANCEL]: undefined\n [informationRequestEvents.INFORMATION_REQUEST_FORM_DONE]: undefined\n}\n\nexport const informationRequestsMachine = {\n list: state<MachineTransition>(\n transition(\n informationRequestEvents.INFORMATION_REQUEST_RESPOND,\n 'form',\n reduce(\n (\n ctx: InformationRequestsContextInterface,\n ev: MachineEventType<\n EventPayloads,\n typeof informationRequestEvents.INFORMATION_REQUEST_RESPOND\n >,\n ): InformationRequestsContextInterface => ({\n ...ctx,\n component: InformationRequestFormContextual,\n selectedRequestId: ev.payload.requestId,\n }),\n ),\n ),\n ),\n form: state<MachineTransition>(\n transition(\n informationRequestEvents.INFORMATION_REQUEST_FORM_DONE,\n 'list',\n reduce(\n (ctx: InformationRequestsContextInterface): InformationRequestsContextInterface => ({\n ...ctx,\n component: null,\n selectedRequestId: undefined,\n }),\n ),\n ),\n transition(\n informationRequestEvents.INFORMATION_REQUEST_FORM_CANCEL,\n 'list',\n reduce(\n (ctx: InformationRequestsContextInterface): InformationRequestsContextInterface => ({\n ...ctx,\n component: null,\n selectedRequestId: undefined,\n }),\n ),\n ),\n ),\n final: state<MachineTransition>(),\n}\n"],"names":["informationRequestsMachine","state","transition","informationRequestEvents","reduce","ctx","ev","InformationRequestFormContextual"],"mappings":";;;AAcO,MAAMA,IAA6B;AAAA,EACxC,MAAMC;AAAA,IACJC;AAAA,MACEC,EAAyB;AAAA,MACzB;AAAA,MACAC;AAAA,QACE,CACEC,GACAC,OAIyC;AAAA,UACzC,GAAGD;AAAA,UACH,WAAWE;AAAA,UACX,mBAAmBD,EAAG,QAAQ;AAAA,QAAA;AAAA,MAChC;AAAA,IACF;AAAA,EACF;AAAA,EAEF,MAAML;AAAA,IACJC;AAAA,MACEC,EAAyB;AAAA,MACzB;AAAA,MACAC;AAAA,QACE,CAACC,OAAmF;AAAA,UAClF,GAAGA;AAAA,UACH,WAAW;AAAA,UACX,mBAAmB;AAAA,QAAA;AAAA,MACrB;AAAA,IACF;AAAA,IAEFH;AAAA,MACEC,EAAyB;AAAA,MACzB;AAAA,MACAC;AAAA,QACE,CAACC,OAAmF;AAAA,UAClF,GAAGA;AAAA,UACH,WAAW;AAAA,UACX,mBAAmB;AAAA,QAAA;AAAA,MACrB;AAAA,IACF;AAAA,EACF;AAAA,EAEF,OAAOJ,EAAA;AACT;"}
@@ -1,170 +1,156 @@
1
- import { jsx as f } from "react/jsx-runtime";
2
- import { useState as p, useMemo as G, useEffect as K } from "react";
3
- import { useEmployeesListSuspense as j } from "@gusto/embedded-api/react-query/employeesList";
4
- import { usePayrollsGetSuspense as v } from "@gusto/embedded-api/react-query/payrollsGet";
5
- import { usePayrollsCalculateMutation as z } from "@gusto/embedded-api/react-query/payrollsCalculate";
6
- import { PayrollProcessingRequestStatus as h } from "@gusto/embedded-api/models/components/payrollprocessingrequest";
7
- import { useTranslation as J } from "react-i18next";
8
- import { usePayrollsUpdateMutation as Q } from "@gusto/embedded-api/react-query/payrollsUpdate";
9
- import { usePreparedPayrollData as X } from "../usePreparedPayrollData.js";
10
- import { payrollSubmitHandler as Z } from "../PayrollBlocker/payrollHelpers.js";
11
- import { PayrollConfigurationPresentation as $ } from "./PayrollConfigurationPresentation.js";
12
- import { BaseComponent as ee } from "../../Base/Base.js";
13
- import { componentEvents as r } from "../../../shared/constants.js";
14
- import { useComponentDictionary as te, useI18n as ae } from "../../../i18n/I18n.js";
15
- import { useBase as oe } from "../../Base/useBase.js";
16
- import { useDateFormatter as se } from "../../../hooks/useDateFormatter.js";
17
- const re = (t) => t?.status === h.Calculating, le = (t) => t?.status === h.CalculateSuccess;
18
- function Ue(t) {
19
- return /* @__PURE__ */ f(ee, { ...t, children: /* @__PURE__ */ f(ie, { ...t, children: t.children }) });
1
+ import { jsx as m } from "react/jsx-runtime";
2
+ import { useState as h, useEffect as G } from "react";
3
+ import { usePayrollsGetSuspense as H } from "@gusto/embedded-api/react-query/payrollsGet";
4
+ import { usePayrollsCalculateMutation as V } from "@gusto/embedded-api/react-query/payrollsCalculate";
5
+ import { PayrollProcessingRequestStatus as f } from "@gusto/embedded-api/models/components/payrollprocessingrequest";
6
+ import { useTranslation as K } from "react-i18next";
7
+ import { usePayrollsUpdateMutation as j } from "@gusto/embedded-api/react-query/payrollsUpdate";
8
+ import { usePayrollsGetBlockersSuspense as v } from "@gusto/embedded-api/react-query/payrollsGetBlockers";
9
+ import { payrollSubmitHandler as I } from "../PayrollBlocker/payrollHelpers.js";
10
+ import { PayrollConfigurationPresentation as z } from "./PayrollConfigurationPresentation.js";
11
+ import { usePayrollConfigurationData as J } from "./usePayrollConfigurationData.js";
12
+ import { BaseComponent as Q } from "../../Base/Base.js";
13
+ import { componentEvents as s } from "../../../shared/constants.js";
14
+ import { useComponentDictionary as X, useI18n as Z } from "../../../i18n/I18n.js";
15
+ import { useBase as $ } from "../../Base/useBase.js";
16
+ import { useDateFormatter as ee } from "../../../hooks/useDateFormatter.js";
17
+ const te = (t) => t?.status === f.Calculating, ae = (t) => t?.status === f.CalculateSuccess;
18
+ function Le(t) {
19
+ return /* @__PURE__ */ m(Q, { ...t, children: /* @__PURE__ */ m(oe, { ...t, children: t.children }) });
20
20
  }
21
- const ie = ({
21
+ const oe = ({
22
22
  onEvent: t,
23
- companyId: l,
24
- payrollId: o,
25
- dictionary: R,
26
- alerts: w,
27
- withReimbursements: D = !0
23
+ companyId: i,
24
+ payrollId: l,
25
+ dictionary: g,
26
+ alerts: C,
27
+ withReimbursements: L = !0
28
28
  }) => {
29
- te("Payroll.PayrollConfiguration", R), ae("Payroll.PayrollConfiguration");
30
- const { t: i } = J("Payroll.PayrollConfiguration"), { baseSubmitHandler: C } = oe(), L = se(), _ = 10, [S, n] = p(1), [E, N] = p(_), [s, c] = p(!1), [A, P] = p([]), { data: u, isFetching: U } = j({
31
- companyId: l,
32
- payrollUuid: o,
33
- // get back list of employees to specific payroll
34
- per: E,
35
- page: S,
36
- sortBy: "name"
37
- // sort alphanumeric by employee last_names
38
- }), O = G(() => u.showEmployees?.map((e) => e.uuid) || [], [u.showEmployees]), y = Number(u.httpMeta.response.headers.get("x-total-pages") ?? 1), x = {
39
- currentPage: S,
40
- handleFirstPage: () => {
41
- n(1);
42
- },
43
- handlePreviousPage: () => {
44
- n((e) => Math.max(e - 1, 1));
45
- },
46
- handleNextPage: () => {
47
- n((e) => Math.min(e + 1, y));
48
- },
49
- handleLastPage: () => {
50
- n(y);
51
- },
52
- handleItemsPerPageChange: (e) => {
53
- N(e);
54
- },
55
- totalPages: y,
56
- isFetching: U,
57
- itemsPerPage: E
58
- }, { data: a } = v(
29
+ X("Payroll.PayrollConfiguration", g), Z("Payroll.PayrollConfiguration");
30
+ const { t: r } = K("Payroll.PayrollConfiguration"), { baseSubmitHandler: d } = $(), n = ee(), [o, c] = h(!1), {
31
+ employeeDetails: D,
32
+ employeeCompensations: w,
33
+ paySchedule: k,
34
+ payPeriod: R,
35
+ isOffCycle: _,
36
+ pagination: A,
37
+ isLoading: E,
38
+ refetch: b
39
+ } = J({ companyId: i, payrollId: l }), { data: a } = H(
59
40
  {
60
- companyId: l,
61
- payrollId: o,
62
- include: ["taxes", "benefits", "deductions"]
41
+ companyId: i,
42
+ payrollId: l,
43
+ include: ["taxes", "benefits", "deductions", "payroll_status_meta"]
63
44
  },
64
- { refetchInterval: s ? 5e3 : !1 }
65
- ), { mutateAsync: b } = z(), { mutateAsync: F, isPending: Y } = Q(), {
66
- preparedPayroll: d,
67
- paySchedule: B,
68
- isLoading: k,
69
- handlePreparePayroll: q
70
- } = X({
71
- companyId: l,
72
- payrollId: o,
73
- employeeUuids: O,
74
- sortBy: "last_name"
75
- // sort alphanumeric by employee last_names to match employees GET
76
- }), M = async () => {
77
- P([]), await C({}, async () => {
78
- const e = await Z(async () => {
79
- await b({
45
+ { refetchInterval: o ? 5e3 : !1 }
46
+ ), { mutateAsync: x, isPending: P } = V(), { mutateAsync: O, isPending: U } = j(), { data: N } = v({
47
+ companyUuid: i
48
+ }), S = (N.payrollBlockerList ?? []).map((e) => ({
49
+ key: e.key ?? "unknown",
50
+ message: e.message
51
+ })), [B, p] = h(S), M = async () => {
52
+ p([]), await d({}, async () => {
53
+ const e = await I(async () => {
54
+ await x({
80
55
  request: {
81
- companyId: l,
82
- payrollId: o
56
+ companyId: i,
57
+ payrollId: l
83
58
  }
84
59
  }), c(!0);
85
60
  });
86
- !e.success && e.blockers.length > 0 && P(e.blockers);
61
+ !e.success && e.blockers.length > 0 && p(e.blockers);
87
62
  });
88
63
  }, T = (e) => {
89
- t(r.RUN_PAYROLL_EMPLOYEE_EDIT, {
64
+ t(s.RUN_PAYROLL_EMPLOYEE_EDIT, {
90
65
  employeeId: e.uuid,
91
66
  firstName: e.firstName,
92
67
  lastName: e.lastName
93
68
  });
94
- }, I = ({
69
+ }, W = ({
95
70
  paymentMethod: e,
96
- reimbursements: g,
97
- ...m
71
+ reimbursements: y,
72
+ ...u
98
73
  }) => ({
99
- ...m,
74
+ ...u,
100
75
  ...e && e !== "Historical" ? { paymentMethod: e } : {},
101
- memo: m.memo || void 0
102
- }), W = async (e) => {
103
- t(r.RUN_PAYROLL_EMPLOYEE_SKIP, {
76
+ memo: u.memo || void 0
77
+ }), Y = async (e) => {
78
+ t(s.RUN_PAYROLL_EMPLOYEE_SKIP, {
104
79
  employeeId: e.employeeUuid
105
- }), await C({}, async () => {
106
- const g = I(e), m = await F({
80
+ }), await d({}, async () => {
81
+ const y = W(e), u = await O({
107
82
  request: {
108
- companyId: l,
109
- payrollId: o,
83
+ companyId: i,
84
+ payrollId: l,
110
85
  payrollUpdate: {
111
86
  employeeCompensations: [
112
- { ...g, excluded: !g.excluded }
87
+ { ...y, excluded: !y.excluded }
113
88
  ]
114
89
  }
115
90
  }
116
91
  });
117
- t(r.RUN_PAYROLL_EMPLOYEE_SAVED, {
118
- payrollPrepared: m.payrollPrepared
119
- }), await q();
92
+ t(s.RUN_PAYROLL_EMPLOYEE_SAVED, {
93
+ payrollPrepared: u.payrollPrepared
94
+ }), await b();
120
95
  });
121
- }, H = () => {
122
- t(r.RUN_PAYROLL_BLOCKERS_VIEW_ALL);
96
+ }, q = () => {
97
+ t(s.RUN_PAYROLL_BLOCKERS_VIEW_ALL);
123
98
  };
124
- K(() => {
125
- re(a.payrollShow?.processingRequest) && !s && c(!0), s && le(a.payrollShow?.processingRequest) && (t(r.RUN_PAYROLL_CALCULATED, {
126
- payrollId: o,
127
- alert: { type: "success", title: i("alerts.progressSaved") },
99
+ G(() => {
100
+ te(a.payrollShow?.processingRequest) && !o && c(!0), o && ae(a.payrollShow?.processingRequest) && (t(s.RUN_PAYROLL_CALCULATED, {
101
+ payrollId: l,
102
+ alert: { type: "success", title: r("alerts.progressSaved") },
128
103
  payPeriod: a.payrollShow?.payPeriod
129
- }), P([]), c(!1)), s && a.payrollShow?.processingRequest?.status === h.ProcessingFailed && (t(r.RUN_PAYROLL_PROCESSING_FAILED), c(!1));
130
- }, [
131
- a.payrollShow?.processingRequest,
132
- s,
133
- t,
134
- i,
135
- o,
136
- a.payrollShow?.calculatedAt
137
- ]);
138
- const V = a.payrollShow ? {
139
- label: i("alerts.directDepositDeadline", {
140
- payDate: L.formatShortWithWeekday(a.payrollShow.checkDate),
141
- ...L.formatWithTime(a.payrollShow.payrollDeadline)
104
+ }), p([]), c(!1)), o && a.payrollShow?.processingRequest?.status === f.ProcessingFailed && (t(s.RUN_PAYROLL_PROCESSING_FAILED), c(!1));
105
+ }, [a.payrollShow?.processingRequest, o, t, r, l]);
106
+ const F = a.payrollShow?.payrollStatusMeta?.payrollLate && a.payrollShow.payrollStatusMeta.initialCheckDate && a.payrollShow.payrollStatusMeta.expectedDebitTime && a.payrollShow.payrollStatusMeta.expectedCheckDate ? {
107
+ label: r("alerts.payrollLate", {
108
+ initialCheckDate: n.formatShortWithWeekday(
109
+ a.payrollShow.payrollStatusMeta.initialCheckDate
110
+ )
111
+ }),
112
+ content: r("alerts.payrollLateText", {
113
+ ...n.formatWithTime(
114
+ a.payrollShow.payrollStatusMeta.expectedDebitTime
115
+ ),
116
+ newCheckDate: n.formatShortWithWeekday(
117
+ a.payrollShow.payrollStatusMeta.expectedCheckDate
118
+ )
119
+ }),
120
+ variant: "warning"
121
+ } : a.payrollShow ? {
122
+ label: r("alerts.directDepositDeadline", {
123
+ payDate: n.formatShortWithWeekday(a.payrollShow.checkDate),
124
+ ...n.formatWithTime(a.payrollShow.payrollDeadline)
142
125
  }),
143
- content: i("alerts.directDepositDeadlineText")
126
+ content: r("alerts.directDepositDeadlineText"),
127
+ variant: "info"
144
128
  } : void 0;
145
- return /* @__PURE__ */ f(
146
- $,
129
+ return /* @__PURE__ */ m(
130
+ z,
147
131
  {
148
132
  onCalculatePayroll: M,
133
+ isCalculateDisabled: S.length > 0,
149
134
  onEdit: T,
150
- onToggleExclude: W,
151
- onViewBlockers: H,
152
- employeeCompensations: d?.employeeCompensations || [],
153
- employeeDetails: u.showEmployees || [],
154
- payPeriod: d?.payPeriod,
155
- paySchedule: B,
156
- isOffCycle: d?.offCycle,
157
- alerts: w,
158
- payrollDeadlineNotice: V,
159
- isPending: s || k || Y,
160
- payrollBlockers: A,
161
- pagination: x,
162
- withReimbursements: D
135
+ onToggleExclude: Y,
136
+ onViewBlockers: q,
137
+ employeeCompensations: w,
138
+ employeeDetails: D,
139
+ payPeriod: R,
140
+ paySchedule: k,
141
+ isOffCycle: _,
142
+ alerts: C,
143
+ payrollAlert: F,
144
+ isPending: o || E || U || P,
145
+ isCalculating: P || o,
146
+ payrollBlockers: B,
147
+ pagination: A,
148
+ withReimbursements: L
163
149
  }
164
150
  );
165
151
  };
166
152
  export {
167
- Ue as PayrollConfiguration,
168
- ie as Root
153
+ Le as PayrollConfiguration,
154
+ oe as Root
169
155
  };
170
156
  //# sourceMappingURL=PayrollConfiguration.js.map