@gusto/embedded-react-sdk 0.47.1 → 0.48.1

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 (848) hide show
  1. package/CHANGELOG.md +139 -0
  2. package/dist/components/Common/EmptyData/EmptyData.d.ts +1 -1
  3. package/dist/components/Common/EmptyData/EmptyData.js +10 -12
  4. package/dist/components/Common/EmptyData/EmptyData.js.map +1 -1
  5. package/dist/components/Common/EmptyData/EmptyData.module.scss.js +6 -10
  6. package/dist/components/Common/EmptyData/EmptyData.module.scss.js.map +1 -1
  7. package/dist/components/Common/Form/Form.d.ts +1 -1
  8. package/dist/components/Common/Form/Form.js +8 -7
  9. package/dist/components/Common/Form/Form.js.map +1 -1
  10. package/dist/components/Common/UI/Card/Card.js +8 -8
  11. package/dist/components/Common/UI/Card/Card.js.map +1 -1
  12. package/dist/components/Common/UI/Card/Card.module.scss.js +5 -3
  13. package/dist/components/Common/UI/Card/Card.module.scss.js.map +1 -1
  14. package/dist/components/Company/AssignSignatory/AssignSignatory.js +10 -7
  15. package/dist/components/Company/AssignSignatory/AssignSignatory.js.map +1 -1
  16. package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js +8 -6
  17. package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js.map +1 -1
  18. package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.js +9 -8
  19. package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.js.map +1 -1
  20. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatory.js +9 -6
  21. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatory.js.map +1 -1
  22. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.js +14 -13
  23. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.js.map +1 -1
  24. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js +3 -17
  25. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js.map +1 -1
  26. package/dist/components/Company/AssignSignatory/Head.js +9 -8
  27. package/dist/components/Company/AssignSignatory/Head.js.map +1 -1
  28. package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.js +7 -6
  29. package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.js.map +1 -1
  30. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatory.js +8 -5
  31. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatory.js.map +1 -1
  32. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatoryForm.js +21 -20
  33. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatoryForm.js.map +1 -1
  34. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js +3 -17
  35. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js.map +1 -1
  36. package/dist/components/Company/AssignSignatory/TitleSelect.js +4 -2
  37. package/dist/components/Company/AssignSignatory/TitleSelect.js.map +1 -1
  38. package/dist/components/Company/AssignSignatory/useAssignSignatory.js +5 -19
  39. package/dist/components/Company/AssignSignatory/useAssignSignatory.js.map +1 -1
  40. package/dist/components/Company/BankAccount/BankAccount.js +6 -7
  41. package/dist/components/Company/BankAccount/BankAccount.js.map +1 -1
  42. package/dist/components/Company/BankAccount/BankAccountForm/Actions.js +3 -2
  43. package/dist/components/Company/BankAccount/BankAccountForm/Actions.js.map +1 -1
  44. package/dist/components/Company/BankAccount/BankAccountForm/Form.js +11 -9
  45. package/dist/components/Company/BankAccount/BankAccountForm/Form.js.map +1 -1
  46. package/dist/components/Company/BankAccount/BankAccountForm/Head.js +3 -2
  47. package/dist/components/Company/BankAccount/BankAccountForm/Head.js.map +1 -1
  48. package/dist/components/Company/BankAccount/BankAccountForm/context.js +3 -17
  49. package/dist/components/Company/BankAccount/BankAccountForm/context.js.map +1 -1
  50. package/dist/components/Company/BankAccount/BankAccountList/Actions.js +7 -6
  51. package/dist/components/Company/BankAccount/BankAccountList/Actions.js.map +1 -1
  52. package/dist/components/Company/BankAccount/BankAccountVerify/Actions.js +8 -7
  53. package/dist/components/Company/BankAccount/BankAccountVerify/Actions.js.map +1 -1
  54. package/dist/components/Company/BankAccount/BankAccountVerify/Form.js +6 -4
  55. package/dist/components/Company/BankAccount/BankAccountVerify/Form.js.map +1 -1
  56. package/dist/components/Company/DocumentSigner/DocumentList/Actions.js +6 -5
  57. package/dist/components/Company/DocumentSigner/DocumentList/Actions.js.map +1 -1
  58. package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.js +14 -11
  59. package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.js.map +1 -1
  60. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js +3 -17
  61. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  62. package/dist/components/Company/DocumentSigner/DocumentSigner.js +2 -3
  63. package/dist/components/Company/DocumentSigner/DocumentSigner.js.map +1 -1
  64. package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js +8 -7
  65. package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js.map +1 -1
  66. package/dist/components/Company/DocumentSigner/shared/useSignCompanyForm/fields.js +4 -4
  67. package/dist/components/Company/FederalTaxes/Actions.js +7 -6
  68. package/dist/components/Company/FederalTaxes/Actions.js.map +1 -1
  69. package/dist/components/Company/FederalTaxes/FederalTaxes.js +10 -7
  70. package/dist/components/Company/FederalTaxes/FederalTaxes.js.map +1 -1
  71. package/dist/components/Company/FederalTaxes/Form.js +4 -4
  72. package/dist/components/Company/FederalTaxes/useFederalTaxes.js +12 -26
  73. package/dist/components/Company/FederalTaxes/useFederalTaxes.js.map +1 -1
  74. package/dist/components/Company/Industry/Actions.js +6 -5
  75. package/dist/components/Company/Industry/Actions.js.map +1 -1
  76. package/dist/components/Company/Industry/Context.js +6 -20
  77. package/dist/components/Company/Industry/Context.js.map +1 -1
  78. package/dist/components/Company/Industry/Edit.js +12 -10
  79. package/dist/components/Company/Industry/Edit.js.map +1 -1
  80. package/dist/components/Company/Industry/IndustrySelect.js +14 -14
  81. package/dist/components/Company/Industry/IndustrySelect.js.map +1 -1
  82. package/dist/components/Company/Locations/LocationForm/Actions.js +3 -2
  83. package/dist/components/Company/Locations/LocationForm/Actions.js.map +1 -1
  84. package/dist/components/Company/Locations/LocationForm/Form.js +6 -4
  85. package/dist/components/Company/Locations/LocationForm/Form.js.map +1 -1
  86. package/dist/components/Company/Locations/LocationForm/LocationForm.js +17 -14
  87. package/dist/components/Company/Locations/LocationForm/LocationForm.js.map +1 -1
  88. package/dist/components/Company/Locations/LocationForm/useLocationForm.js +3 -17
  89. package/dist/components/Company/Locations/LocationForm/useLocationForm.js.map +1 -1
  90. package/dist/components/Company/Locations/LocationsList/Actions.js +3 -2
  91. package/dist/components/Company/Locations/LocationsList/Actions.js.map +1 -1
  92. package/dist/components/Company/Locations/LocationsList/List.js +9 -9
  93. package/dist/components/Company/Locations/LocationsList/LocationsList.js +12 -9
  94. package/dist/components/Company/Locations/LocationsList/LocationsList.js.map +1 -1
  95. package/dist/components/Company/Locations/LocationsList/useLocationsList.js +3 -17
  96. package/dist/components/Company/Locations/LocationsList/useLocationsList.js.map +1 -1
  97. package/dist/components/Company/OnboardingOverview/Completed.js +6 -5
  98. package/dist/components/Company/OnboardingOverview/Completed.js.map +1 -1
  99. package/dist/components/Company/OnboardingOverview/MissingRequirements.js +9 -8
  100. package/dist/components/Company/OnboardingOverview/MissingRequirements.js.map +1 -1
  101. package/dist/components/Company/OnboardingOverview/OnboardingOverview.js +5 -2
  102. package/dist/components/Company/OnboardingOverview/OnboardingOverview.js.map +1 -1
  103. package/dist/components/Company/OnboardingOverview/context.js +4 -18
  104. package/dist/components/Company/OnboardingOverview/context.js.map +1 -1
  105. package/dist/components/Company/PaySchedule/PayScheduleForm.js +5 -4
  106. package/dist/components/Company/PaySchedule/PayScheduleForm.js.map +1 -1
  107. package/dist/components/Company/PaySchedule/PayScheduleList.js +8 -8
  108. package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/fields.js +5 -5
  109. package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.js +6 -5
  110. package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.js.map +1 -1
  111. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js +3 -17
  112. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js.map +1 -1
  113. package/dist/components/Company/StateTaxes/StateTaxesList/Actions.js +7 -6
  114. package/dist/components/Company/StateTaxes/StateTaxesList/Actions.js.map +1 -1
  115. package/dist/components/Company/StateTaxes/StateTaxesList/List.js +3 -2
  116. package/dist/components/Company/StateTaxes/StateTaxesList/List.js.map +1 -1
  117. package/dist/components/Company/StateTaxes/StateTaxesList/context.js +3 -17
  118. package/dist/components/Company/StateTaxes/StateTaxesList/context.js.map +1 -1
  119. package/dist/components/Contractor/Address/Address.js +5 -2
  120. package/dist/components/Contractor/Address/Address.js.map +1 -1
  121. package/dist/components/Contractor/Address/Form.js +4 -2
  122. package/dist/components/Contractor/Address/Form.js.map +1 -1
  123. package/dist/components/Contractor/Address/Head.js +5 -4
  124. package/dist/components/Contractor/Address/Head.js.map +1 -1
  125. package/dist/components/Contractor/Address/useAddress.js +5 -19
  126. package/dist/components/Contractor/Address/useAddress.js.map +1 -1
  127. package/dist/components/Contractor/ContractorList/index.js +4 -4
  128. package/dist/components/Contractor/PaymentMethod/BankAccountForm.js +4 -2
  129. package/dist/components/Contractor/PaymentMethod/BankAccountForm.js.map +1 -1
  130. package/dist/components/Contractor/PaymentMethod/PaymentTypeForm.js +4 -2
  131. package/dist/components/Contractor/PaymentMethod/PaymentTypeForm.js.map +1 -1
  132. package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.js +10 -10
  133. package/dist/components/Contractor/Payments/CreatePayment/EditContractorPaymentFormSchema.d.ts +2 -2
  134. package/dist/components/Contractor/Payments/CreatePayment/FastAchSubmissionBlockerBanner.js +3 -2
  135. package/dist/components/Contractor/Payments/CreatePayment/FastAchSubmissionBlockerBanner.js.map +1 -1
  136. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.js +15 -15
  137. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatement.js +2 -3
  138. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatement.js.map +1 -1
  139. package/dist/components/Contractor/Payments/PaymentsList/PaymentsList.js +2 -3
  140. package/dist/components/Contractor/Payments/PaymentsList/PaymentsList.js.map +1 -1
  141. package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.js +4 -3
  142. package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.js.map +1 -1
  143. package/dist/components/Contractor/Profile/ContractorProfileForm.js +13 -13
  144. package/dist/components/Contractor/Profile/useContractorProfile.d.ts +6 -6
  145. package/dist/components/Contractor/Profile/useContractorProfile.js +39 -48
  146. package/dist/components/Contractor/Profile/useContractorProfile.js.map +1 -1
  147. package/dist/components/Contractor/Submit/Submit.js +3 -2
  148. package/dist/components/Contractor/Submit/Submit.js.map +1 -1
  149. package/dist/components/Contractor/exports/contractorManagement.d.ts +6 -0
  150. package/dist/components/Contractor/exports/contractorManagement.js +15 -0
  151. package/dist/components/Contractor/exports/contractorManagement.js.map +1 -0
  152. package/dist/components/Employee/Compensation/management/Compensation.d.ts +35 -0
  153. package/dist/components/Employee/Compensation/management/Compensation.js +2 -3
  154. package/dist/components/Employee/Compensation/management/Compensation.js.map +1 -1
  155. package/dist/components/Employee/Compensation/management/CompensationAddAnotherJobForm/CompensationAddAnotherJobForm.d.ts +23 -3
  156. package/dist/components/Employee/Compensation/management/CompensationAddAnotherJobForm/CompensationAddAnotherJobForm.js +8 -9
  157. package/dist/components/Employee/Compensation/management/CompensationAddAnotherJobForm/CompensationAddAnotherJobForm.js.map +1 -1
  158. package/dist/components/Employee/Compensation/management/CompensationAddJobForm/CompensationAddJobForm.d.ts +21 -10
  159. package/dist/components/Employee/Compensation/management/CompensationAddJobForm/CompensationAddJobForm.js +2 -3
  160. package/dist/components/Employee/Compensation/management/CompensationAddJobForm/CompensationAddJobForm.js.map +1 -1
  161. package/dist/components/Employee/Compensation/management/CompensationCard/CompensationCard.d.ts +24 -7
  162. package/dist/components/Employee/Compensation/management/CompensationCard/CompensationCard.js +18 -18
  163. package/dist/components/Employee/Compensation/management/CompensationCard/CompensationCard.js.map +1 -1
  164. package/dist/components/Employee/Compensation/management/CompensationCard/index.d.ts +0 -1
  165. package/dist/components/Employee/Compensation/management/CompensationComponents.d.ts +7 -1
  166. package/dist/components/Employee/Compensation/management/CompensationComponents.js.map +1 -1
  167. package/dist/components/Employee/Compensation/management/CompensationEditForm/CompensationEditForm.d.ts +27 -15
  168. package/dist/components/Employee/Compensation/management/CompensationEditForm/CompensationEditForm.js +2 -3
  169. package/dist/components/Employee/Compensation/management/CompensationEditForm/CompensationEditForm.js.map +1 -1
  170. package/dist/components/Employee/Compensation/management/CompensationEditJobForm/CompensationEditJobForm.d.ts +12 -0
  171. package/dist/components/Employee/Compensation/management/CompensationEditJobForm/CompensationEditJobForm.js +2 -3
  172. package/dist/components/Employee/Compensation/management/CompensationEditJobForm/CompensationEditJobForm.js.map +1 -1
  173. package/dist/components/Employee/Compensation/management/CompensationEditPendingJobForm/CompensationEditPendingJobForm.d.ts +12 -0
  174. package/dist/components/Employee/Compensation/management/CompensationEditPendingJobForm/CompensationEditPendingJobForm.js +2 -3
  175. package/dist/components/Employee/Compensation/management/CompensationEditPendingJobForm/CompensationEditPendingJobForm.js.map +1 -1
  176. package/dist/components/Employee/Compensation/management/ManagementCompensationFormBody.d.ts +3 -0
  177. package/dist/components/Employee/Compensation/management/ManagementCompensationFormBody.js +3 -2
  178. package/dist/components/Employee/Compensation/management/ManagementCompensationFormBody.js.map +1 -1
  179. package/dist/components/Employee/Compensation/management/compensationStateMachine.d.ts +1 -0
  180. package/dist/components/Employee/Compensation/management/compensationStateMachine.js.map +1 -1
  181. package/dist/components/Employee/Compensation/management/useManagementCompensationDictionary.d.ts +2 -0
  182. package/dist/components/Employee/Compensation/management/useManagementCompensationDictionary.js.map +1 -1
  183. package/dist/components/Employee/Compensation/onboarding/Compensation.d.ts +61 -0
  184. package/dist/components/Employee/Compensation/onboarding/Compensation.js +2 -3
  185. package/dist/components/Employee/Compensation/onboarding/Compensation.js.map +1 -1
  186. package/dist/components/Employee/Compensation/onboarding/CompensationFlowComponents.d.ts +5 -0
  187. package/dist/components/Employee/Compensation/onboarding/CompensationFlowComponents.js.map +1 -1
  188. package/dist/components/Employee/Compensation/onboarding/EditCompensation/EditCompensation.d.ts +32 -9
  189. package/dist/components/Employee/Compensation/onboarding/EditCompensation/EditCompensation.js +2 -3
  190. package/dist/components/Employee/Compensation/onboarding/EditCompensation/EditCompensation.js.map +1 -1
  191. package/dist/components/Employee/Compensation/onboarding/EditCompensation/index.d.ts +1 -2
  192. package/dist/components/Employee/Compensation/onboarding/JobsList/JobsList.d.ts +3 -0
  193. package/dist/components/Employee/Compensation/onboarding/JobsList/JobsList.js.map +1 -1
  194. package/dist/components/Employee/Compensation/onboarding/JobsList/JobsListPresentation.d.ts +9 -0
  195. package/dist/components/Employee/Compensation/onboarding/JobsList/JobsListPresentation.js +7 -7
  196. package/dist/components/Employee/Compensation/onboarding/JobsList/JobsListPresentation.js.map +1 -1
  197. package/dist/components/Employee/Compensation/onboarding/JobsList/index.d.ts +1 -4
  198. package/dist/components/Employee/Compensation/onboarding/compensationStateMachine.d.ts +1 -0
  199. package/dist/components/Employee/Compensation/onboarding/compensationStateMachine.js.map +1 -1
  200. package/dist/components/Employee/Compensation/shared/AddCompensationFormBody.d.ts +5 -0
  201. package/dist/components/Employee/Compensation/shared/AddCompensationFormBody.js +3 -2
  202. package/dist/components/Employee/Compensation/shared/AddCompensationFormBody.js.map +1 -1
  203. package/dist/components/Employee/Compensation/shared/PendingChangesReviewModal.d.ts +2 -0
  204. package/dist/components/Employee/Compensation/shared/PendingChangesReviewModal.js.map +1 -1
  205. package/dist/components/Employee/Compensation/shared/derivePrimaryFlsaStatus.d.ts +2 -0
  206. package/dist/components/Employee/Compensation/shared/derivePrimaryFlsaStatus.js.map +1 -1
  207. package/dist/components/Employee/Compensation/shared/getPendingCompensationChanges.d.ts +4 -0
  208. package/dist/components/Employee/Compensation/shared/getPendingCompensationChanges.js.map +1 -1
  209. package/dist/components/Employee/Compensation/shared/useCompensationForm/compensationSchema.d.ts +98 -0
  210. package/dist/components/Employee/Compensation/shared/useCompensationForm/compensationSchema.js.map +1 -1
  211. package/dist/components/Employee/Compensation/shared/useCompensationForm/fields.d.ts +168 -0
  212. package/dist/components/Employee/Compensation/shared/useCompensationForm/fields.js +4 -4
  213. package/dist/components/Employee/Compensation/shared/useCompensationForm/fields.js.map +1 -1
  214. package/dist/components/Employee/Compensation/shared/useCompensationForm/index.d.ts +1 -0
  215. package/dist/components/Employee/Compensation/shared/useCompensationForm/useCompensationForm.d.ts +153 -6
  216. package/dist/components/Employee/Compensation/shared/useCompensationForm/useCompensationForm.js.map +1 -1
  217. package/dist/components/Employee/Compensation/shared/useCompensationManagement/index.d.ts +1 -1
  218. package/dist/components/Employee/Compensation/shared/useCompensationManagement/useCompensationManagement.d.ts +19 -0
  219. package/dist/components/Employee/Compensation/shared/useCompensationManagement/useCompensationManagement.js.map +1 -1
  220. package/dist/components/Employee/Compensation/shared/useJobForm/fields.d.ts +101 -0
  221. package/dist/components/Employee/Compensation/shared/useJobForm/fields.js +6 -6
  222. package/dist/components/Employee/Compensation/shared/useJobForm/fields.js.map +1 -1
  223. package/dist/components/Employee/Compensation/shared/useJobForm/index.d.ts +1 -0
  224. package/dist/components/Employee/Compensation/shared/useJobForm/jobSchema.d.ts +75 -0
  225. package/dist/components/Employee/Compensation/shared/useJobForm/jobSchema.js.map +1 -1
  226. package/dist/components/Employee/Compensation/shared/useJobForm/useJobForm.d.ts +137 -8
  227. package/dist/components/Employee/Compensation/shared/useJobForm/useJobForm.js.map +1 -1
  228. package/dist/components/Employee/Compensation/shared/usePendingChangeDetailRenderer.d.ts +2 -0
  229. package/dist/components/Employee/Compensation/shared/usePendingChangeDetailRenderer.js.map +1 -1
  230. package/dist/components/Employee/Dashboard/BasicDetailsView.d.ts +18 -4
  231. package/dist/components/Employee/Dashboard/BasicDetailsView.js.map +1 -1
  232. package/dist/components/Employee/Dashboard/Dashboard.d.ts +3 -0
  233. package/dist/components/Employee/Dashboard/Dashboard.js.map +1 -1
  234. package/dist/components/Employee/Dashboard/DashboardComponents.d.ts +21 -1
  235. package/dist/components/Employee/Dashboard/DashboardComponents.js.map +1 -1
  236. package/dist/components/Employee/Dashboard/DashboardFlow.d.ts +116 -0
  237. package/dist/components/Employee/Dashboard/DashboardFlow.js.map +1 -1
  238. package/dist/components/Employee/Dashboard/JobAndPayView.d.ts +20 -0
  239. package/dist/components/Employee/Dashboard/JobAndPayView.js.map +1 -1
  240. package/dist/components/Employee/Dashboard/TaxesView.d.ts +36 -3
  241. package/dist/components/Employee/Dashboard/TaxesView.js.map +1 -1
  242. package/dist/components/Employee/Dashboard/dashboardStateMachine.d.ts +1 -0
  243. package/dist/components/Employee/Dashboard/dashboardStateMachine.js.map +1 -1
  244. package/dist/components/Employee/Dashboard/index.d.ts +0 -6
  245. package/dist/components/Employee/Deductions/management/Deductions.d.ts +30 -0
  246. package/dist/components/Employee/Deductions/management/Deductions.js +2 -3
  247. package/dist/components/Employee/Deductions/management/Deductions.js.map +1 -1
  248. package/dist/components/Employee/Deductions/management/DeductionsCard/DeductionsCard.d.ts +21 -8
  249. package/dist/components/Employee/Deductions/management/DeductionsCard/DeductionsCard.js +15 -15
  250. package/dist/components/Employee/Deductions/management/DeductionsCard/DeductionsCard.js.map +1 -1
  251. package/dist/components/Employee/Deductions/management/DeductionsComponents.d.ts +5 -1
  252. package/dist/components/Employee/Deductions/management/DeductionsComponents.js.map +1 -1
  253. package/dist/components/Employee/Deductions/management/DeductionsEditForm/DeductionsEditForm.d.ts +21 -7
  254. package/dist/components/Employee/Deductions/management/DeductionsEditForm/DeductionsEditForm.js +2 -3
  255. package/dist/components/Employee/Deductions/management/DeductionsEditForm/DeductionsEditForm.js.map +1 -1
  256. package/dist/components/Employee/Deductions/management/DeductionsEditForm/useFormDictionary.d.ts +2 -0
  257. package/dist/components/Employee/Deductions/management/DeductionsEditForm/useFormDictionary.js.map +1 -1
  258. package/dist/components/Employee/Deductions/management/deductionsStateMachine.d.ts +1 -0
  259. package/dist/components/Employee/Deductions/management/deductionsStateMachine.js.map +1 -1
  260. package/dist/components/Employee/Deductions/onboarding/Deductions.d.ts +45 -0
  261. package/dist/components/Employee/Deductions/onboarding/Deductions.js.map +1 -1
  262. package/dist/components/Employee/Deductions/onboarding/DeductionsList/DeductionsList.d.ts +2 -0
  263. package/dist/components/Employee/Deductions/onboarding/DeductionsList/DeductionsList.js +12 -12
  264. package/dist/components/Employee/Deductions/onboarding/DeductionsList/DeductionsList.js.map +1 -1
  265. package/dist/components/Employee/Deductions/onboarding/IncludeDeductions/IncludeDeductions.d.ts +2 -0
  266. package/dist/components/Employee/Deductions/onboarding/IncludeDeductions/IncludeDeductions.js +6 -5
  267. package/dist/components/Employee/Deductions/onboarding/IncludeDeductions/IncludeDeductions.js.map +1 -1
  268. package/dist/components/Employee/Deductions/onboarding/deductionsContextualComponents.d.ts +5 -0
  269. package/dist/components/Employee/Deductions/onboarding/deductionsContextualComponents.js.map +1 -1
  270. package/dist/components/Employee/Deductions/onboarding/stateMachine.d.ts +1 -0
  271. package/dist/components/Employee/Deductions/onboarding/stateMachine.js.map +1 -1
  272. package/dist/components/Employee/Deductions/onboarding/useFormDictionary.d.ts +2 -0
  273. package/dist/components/Employee/Deductions/onboarding/useFormDictionary.js.map +1 -1
  274. package/dist/components/Employee/Deductions/shared/DeductionsForm/ChildSupportFormView.d.ts +1 -0
  275. package/dist/components/Employee/Deductions/shared/DeductionsForm/ChildSupportFormView.js +7 -6
  276. package/dist/components/Employee/Deductions/shared/DeductionsForm/ChildSupportFormView.js.map +1 -1
  277. package/dist/components/Employee/Deductions/shared/DeductionsForm/DeductionsForm.d.ts +7 -0
  278. package/dist/components/Employee/Deductions/shared/DeductionsForm/DeductionsForm.js.map +1 -1
  279. package/dist/components/Employee/Deductions/shared/DeductionsForm/StandardDeductionForm.d.ts +1 -0
  280. package/dist/components/Employee/Deductions/shared/DeductionsForm/StandardDeductionForm.js +15 -14
  281. package/dist/components/Employee/Deductions/shared/DeductionsForm/StandardDeductionForm.js.map +1 -1
  282. package/dist/components/Employee/Deductions/shared/DeductionsForm/index.d.ts +1 -1
  283. package/dist/components/Employee/Deductions/shared/DeleteDeductionDialog.d.ts +2 -0
  284. package/dist/components/Employee/Deductions/shared/DeleteDeductionDialog.js.map +1 -1
  285. package/dist/components/Employee/Deductions/shared/formatDeductionAmount.d.ts +2 -0
  286. package/dist/components/Employee/Deductions/shared/formatDeductionAmount.js.map +1 -1
  287. package/dist/components/Employee/Deductions/shared/useChildSupportGarnishmentForm/childSupportGarnishmentFormSchema.d.ts +38 -5
  288. package/dist/components/Employee/Deductions/shared/useChildSupportGarnishmentForm/childSupportGarnishmentFormSchema.js.map +1 -1
  289. package/dist/components/Employee/Deductions/shared/useChildSupportGarnishmentForm/fields.d.ts +207 -0
  290. package/dist/components/Employee/Deductions/shared/useChildSupportGarnishmentForm/fields.js +8 -8
  291. package/dist/components/Employee/Deductions/shared/useChildSupportGarnishmentForm/fields.js.map +1 -1
  292. package/dist/components/Employee/Deductions/shared/useChildSupportGarnishmentForm/index.d.ts +3 -2
  293. package/dist/components/Employee/Deductions/shared/useChildSupportGarnishmentForm/useChildSupportGarnishmentForm.d.ts +129 -3
  294. package/dist/components/Employee/Deductions/shared/useChildSupportGarnishmentForm/useChildSupportGarnishmentForm.js.map +1 -1
  295. package/dist/components/Employee/Deductions/shared/useDeductionForm/deductionFormSchema.d.ts +29 -1
  296. package/dist/components/Employee/Deductions/shared/useDeductionForm/deductionFormSchema.js.map +1 -1
  297. package/dist/components/Employee/Deductions/shared/useDeductionForm/fields.d.ts +158 -0
  298. package/dist/components/Employee/Deductions/shared/useDeductionForm/fields.js +4 -4
  299. package/dist/components/Employee/Deductions/shared/useDeductionForm/fields.js.map +1 -1
  300. package/dist/components/Employee/Deductions/shared/useDeductionForm/index.d.ts +3 -2
  301. package/dist/components/Employee/Deductions/shared/useDeductionForm/useDeductionForm.d.ts +131 -4
  302. package/dist/components/Employee/Deductions/shared/useDeductionForm/useDeductionForm.js.map +1 -1
  303. package/dist/components/Employee/Deductions/shared/useDeductionsList.d.ts +6 -1
  304. package/dist/components/Employee/Deductions/shared/useDeductionsList.js.map +1 -1
  305. package/dist/components/Employee/Deductions/shared/useDeleteDeduction.d.ts +2 -0
  306. package/dist/components/Employee/Deductions/shared/useDeleteDeduction.js.map +1 -1
  307. package/dist/components/Employee/Documents/management/DocumentManager.d.ts +3 -0
  308. package/dist/components/Employee/Documents/management/DocumentManager.js +7 -6
  309. package/dist/components/Employee/Documents/management/DocumentManager.js.map +1 -1
  310. package/dist/components/Employee/Documents/management/Documents.d.ts +24 -0
  311. package/dist/components/Employee/Documents/management/Documents.js +2 -3
  312. package/dist/components/Employee/Documents/management/Documents.js.map +1 -1
  313. package/dist/components/Employee/Documents/management/DocumentsCard/DocumentsCard.d.ts +17 -7
  314. package/dist/components/Employee/Documents/management/DocumentsCard/DocumentsCard.js +7 -6
  315. package/dist/components/Employee/Documents/management/DocumentsCard/DocumentsCard.js.map +1 -1
  316. package/dist/components/Employee/Documents/management/DocumentsComponents.d.ts +3 -0
  317. package/dist/components/Employee/Documents/management/DocumentsComponents.js.map +1 -1
  318. package/dist/components/Employee/Documents/management/documentsStateMachine.d.ts +1 -0
  319. package/dist/components/Employee/Documents/management/documentsStateMachine.js.map +1 -1
  320. package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/Actions.d.ts +1 -0
  321. package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/Actions.js +5 -4
  322. package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/Actions.js.map +1 -1
  323. package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/DocumentList.d.ts +1 -0
  324. package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/DocumentList.js +13 -10
  325. package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/DocumentList.js.map +1 -1
  326. package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/Head.d.ts +1 -0
  327. package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/Head.js.map +1 -1
  328. package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/List.d.ts +1 -0
  329. package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/List.js +4 -2
  330. package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/List.js.map +1 -1
  331. package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/useDocumentList.js +3 -17
  332. package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  333. package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentSigner.d.ts +29 -0
  334. package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentSigner.js +11 -12
  335. package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentSigner.js.map +1 -1
  336. package/dist/components/Employee/Documents/onboarding/DocumentSigner/EmploymentEligibility/EmploymentEligibility.d.ts +23 -0
  337. package/dist/components/Employee/Documents/onboarding/DocumentSigner/EmploymentEligibility/EmploymentEligibility.js.map +1 -1
  338. package/dist/components/Employee/Documents/onboarding/DocumentSigner/EmploymentEligibility/EmploymentEligibilityPresentation.d.ts +1 -0
  339. package/dist/components/Employee/Documents/onboarding/DocumentSigner/EmploymentEligibility/EmploymentEligibilityPresentation.js +16 -16
  340. package/dist/components/Employee/Documents/onboarding/DocumentSigner/EmploymentEligibility/EmploymentEligibilityPresentation.js.map +1 -1
  341. package/dist/components/Employee/Documents/onboarding/DocumentSigner/EmploymentEligibility/EmploymentEligibilitySchema.d.ts +3 -0
  342. package/dist/components/Employee/Documents/onboarding/DocumentSigner/EmploymentEligibility/EmploymentEligibilitySchema.js.map +1 -1
  343. package/dist/components/Employee/Documents/onboarding/DocumentSigner/EmploymentEligibility/countries.d.ts +1 -0
  344. package/dist/components/Employee/Documents/onboarding/DocumentSigner/EmploymentEligibility/countries.js.map +1 -1
  345. package/dist/components/Employee/Documents/onboarding/DocumentSigner/I9SignatureForm/I9SignatureForm.d.ts +1 -0
  346. package/dist/components/Employee/Documents/onboarding/DocumentSigner/I9SignatureForm/I9SignatureForm.js +7 -4
  347. package/dist/components/Employee/Documents/onboarding/DocumentSigner/I9SignatureForm/I9SignatureForm.js.map +1 -1
  348. package/dist/components/Employee/Documents/onboarding/DocumentSigner/documentSignerStateMachine.d.ts +6 -0
  349. package/dist/components/Employee/Documents/onboarding/DocumentSigner/documentSignerStateMachine.js.map +1 -1
  350. package/dist/components/Employee/Documents/onboarding/DocumentSigner/stateMachine.d.ts +1 -0
  351. package/dist/components/Employee/Documents/onboarding/DocumentSigner/stateMachine.js.map +1 -1
  352. package/dist/components/Employee/Documents/onboarding/EmployeeDocuments/EmployeeDocuments.d.ts +27 -2
  353. package/dist/components/Employee/Documents/onboarding/EmployeeDocuments/EmployeeDocuments.js.map +1 -1
  354. package/dist/components/Employee/Documents/onboarding/EmployeeDocuments/EmployeeDocumentsPresentation.d.ts +3 -0
  355. package/dist/components/Employee/Documents/onboarding/EmployeeDocuments/EmployeeDocumentsPresentation.js +7 -6
  356. package/dist/components/Employee/Documents/onboarding/EmployeeDocuments/EmployeeDocumentsPresentation.js.map +1 -1
  357. package/dist/components/Employee/Documents/onboarding/EmployeeDocuments/index.d.ts +1 -1
  358. package/dist/components/Employee/Documents/shared/SignatureForm/SignatureForm.d.ts +1 -0
  359. package/dist/components/Employee/Documents/shared/SignatureForm/SignatureForm.js +13 -10
  360. package/dist/components/Employee/Documents/shared/SignatureForm/SignatureForm.js.map +1 -1
  361. package/dist/components/Employee/Documents/shared/useDocumentsList/index.d.ts +0 -1
  362. package/dist/components/Employee/Documents/shared/useDocumentsList/useDocumentsList.d.ts +23 -6
  363. package/dist/components/Employee/Documents/shared/useDocumentsList/useDocumentsList.js.map +1 -1
  364. package/dist/components/Employee/Documents/shared/useSignEmployeeForm/fields.d.ts +326 -0
  365. package/dist/components/Employee/Documents/shared/useSignEmployeeForm/fields.js +1 -1
  366. package/dist/components/Employee/Documents/shared/useSignEmployeeForm/fields.js.map +1 -1
  367. package/dist/components/Employee/Documents/shared/useSignEmployeeForm/index.d.ts +2 -1
  368. package/dist/components/Employee/Documents/shared/useSignEmployeeForm/signEmployeeFormSchema.d.ts +62 -0
  369. package/dist/components/Employee/Documents/shared/useSignEmployeeForm/signEmployeeFormSchema.js.map +1 -1
  370. package/dist/components/Employee/Documents/shared/useSignEmployeeForm/useSignEmployeeForm.d.ts +130 -0
  371. package/dist/components/Employee/Documents/shared/useSignEmployeeForm/useSignEmployeeForm.js.map +1 -1
  372. package/dist/components/Employee/EmployeeList/management/ManagementEmployeeList.d.ts +30 -3
  373. package/dist/components/Employee/EmployeeList/management/ManagementEmployeeList.js +17 -21
  374. package/dist/components/Employee/EmployeeList/management/ManagementEmployeeList.js.map +1 -1
  375. package/dist/components/Employee/EmployeeList/management/ManagementEmployeeListView.d.ts +2 -0
  376. package/dist/components/Employee/EmployeeList/management/ManagementEmployeeListView.js +12 -12
  377. package/dist/components/Employee/EmployeeList/management/ManagementEmployeeListView.js.map +1 -1
  378. package/dist/components/Employee/EmployeeList/onboarding/EmployeeList.d.ts +23 -2
  379. package/dist/components/Employee/EmployeeList/onboarding/EmployeeList.js +38 -35
  380. package/dist/components/Employee/EmployeeList/onboarding/EmployeeList.js.map +1 -1
  381. package/dist/components/Employee/EmployeeList/onboarding/EmployeeListView.d.ts +2 -0
  382. package/dist/components/Employee/EmployeeList/onboarding/EmployeeListView.js +10 -10
  383. package/dist/components/Employee/EmployeeList/onboarding/EmployeeListView.js.map +1 -1
  384. package/dist/components/Employee/EmployeeList/shared/index.d.ts +1 -1
  385. package/dist/components/Employee/EmployeeList/shared/useEmployeeList.d.ts +86 -11
  386. package/dist/components/Employee/EmployeeList/shared/useEmployeeList.js +50 -62
  387. package/dist/components/Employee/EmployeeList/shared/useEmployeeList.js.map +1 -1
  388. package/dist/components/Employee/EmployeeListFlow/EmployeeListFlow.d.ts +34 -0
  389. package/dist/components/Employee/EmployeeListFlow/EmployeeListFlow.js.map +1 -1
  390. package/dist/components/Employee/EmployeeListFlow/EmployeeListFlowComponents.d.ts +11 -0
  391. package/dist/components/Employee/EmployeeListFlow/EmployeeListFlowComponents.js.map +1 -1
  392. package/dist/components/Employee/EmployeeListFlow/employeeListStateMachine.d.ts +1 -0
  393. package/dist/components/Employee/EmployeeListFlow/employeeListStateMachine.js.map +1 -1
  394. package/dist/components/Employee/FederalTaxes/index.d.ts +2 -5
  395. package/dist/components/Employee/FederalTaxes/management/FederalTaxes.d.ts +27 -0
  396. package/dist/components/Employee/FederalTaxes/management/FederalTaxes.js +9 -10
  397. package/dist/components/Employee/FederalTaxes/management/FederalTaxes.js.map +1 -1
  398. package/dist/components/Employee/FederalTaxes/management/FederalTaxesCard/FederalTaxesCard.d.ts +9 -0
  399. package/dist/components/Employee/FederalTaxes/management/FederalTaxesCard/FederalTaxesCard.js +16 -15
  400. package/dist/components/Employee/FederalTaxes/management/FederalTaxesCard/FederalTaxesCard.js.map +1 -1
  401. package/dist/components/Employee/FederalTaxes/management/FederalTaxesComponents.d.ts +5 -1
  402. package/dist/components/Employee/FederalTaxes/management/FederalTaxesComponents.js.map +1 -1
  403. package/dist/components/Employee/FederalTaxes/management/FederalTaxesEditForm.d.ts +24 -0
  404. package/dist/components/Employee/FederalTaxes/management/FederalTaxesEditForm.js +5 -5
  405. package/dist/components/Employee/FederalTaxes/management/FederalTaxesEditForm.js.map +1 -1
  406. package/dist/components/Employee/FederalTaxes/management/federalTaxesStateMachine.d.ts +1 -0
  407. package/dist/components/Employee/FederalTaxes/management/federalTaxesStateMachine.js.map +1 -1
  408. package/dist/components/Employee/FederalTaxes/management/useViewDictionary.d.ts +2 -0
  409. package/dist/components/Employee/FederalTaxes/management/useViewDictionary.js.map +1 -1
  410. package/dist/components/Employee/FederalTaxes/onboarding/FederalTaxes.d.ts +24 -0
  411. package/dist/components/Employee/FederalTaxes/onboarding/FederalTaxes.js +5 -5
  412. package/dist/components/Employee/FederalTaxes/onboarding/FederalTaxes.js.map +1 -1
  413. package/dist/components/Employee/FederalTaxes/onboarding/useViewDictionary.d.ts +2 -0
  414. package/dist/components/Employee/FederalTaxes/onboarding/useViewDictionary.js.map +1 -1
  415. package/dist/components/Employee/FederalTaxes/shared/FederalTaxesView.d.ts +4 -0
  416. package/dist/components/Employee/FederalTaxes/shared/FederalTaxesView.js +13 -14
  417. package/dist/components/Employee/FederalTaxes/shared/FederalTaxesView.js.map +1 -1
  418. package/dist/components/Employee/FederalTaxes/shared/index.d.ts +1 -2
  419. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/federalTaxesSchema.d.ts +46 -0
  420. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/federalTaxesSchema.js.map +1 -1
  421. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/fields.d.ts +112 -0
  422. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/fields.js +4 -4
  423. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/fields.js.map +1 -1
  424. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/index.d.ts +1 -0
  425. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/useFederalTaxesForm.d.ts +112 -0
  426. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/useFederalTaxesForm.js.map +1 -1
  427. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesSummary/index.d.ts +0 -1
  428. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesSummary/useFederalTaxesSummary.d.ts +14 -1
  429. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesSummary/useFederalTaxesSummary.js.map +1 -1
  430. package/dist/components/Employee/HomeAddress/management/HomeAddress.d.ts +21 -0
  431. package/dist/components/Employee/HomeAddress/management/HomeAddress.js +2 -3
  432. package/dist/components/Employee/HomeAddress/management/HomeAddress.js.map +1 -1
  433. package/dist/components/Employee/HomeAddress/management/HomeAddressCard/HomeAddressCard.d.ts +17 -5
  434. package/dist/components/Employee/HomeAddress/management/HomeAddressCard/HomeAddressCard.js +8 -7
  435. package/dist/components/Employee/HomeAddress/management/HomeAddressCard/HomeAddressCard.js.map +1 -1
  436. package/dist/components/Employee/HomeAddress/management/HomeAddressComponents.d.ts +3 -0
  437. package/dist/components/Employee/HomeAddress/management/HomeAddressComponents.js.map +1 -1
  438. package/dist/components/Employee/HomeAddress/management/HomeAddressEditForm.d.ts +20 -0
  439. package/dist/components/Employee/HomeAddress/management/HomeAddressEditForm.js.map +1 -1
  440. package/dist/components/Employee/HomeAddress/management/HomeAddressView.d.ts +2 -0
  441. package/dist/components/Employee/HomeAddress/management/HomeAddressView.js +5 -5
  442. package/dist/components/Employee/HomeAddress/management/HomeAddressView.js.map +1 -1
  443. package/dist/components/Employee/HomeAddress/management/getPendingFutureHomeAddress.d.ts +7 -1
  444. package/dist/components/Employee/HomeAddress/management/getPendingFutureHomeAddress.js.map +1 -1
  445. package/dist/components/Employee/HomeAddress/management/homeAddressStateMachine.d.ts +1 -0
  446. package/dist/components/Employee/HomeAddress/management/homeAddressStateMachine.js.map +1 -1
  447. package/dist/components/Employee/HomeAddress/management/useHomeAddressManagement.d.ts +46 -7
  448. package/dist/components/Employee/HomeAddress/management/useHomeAddressManagement.js.map +1 -1
  449. package/dist/components/Employee/HomeAddress/shared/useHomeAddressSummary/index.d.ts +0 -1
  450. package/dist/components/Employee/HomeAddress/shared/useHomeAddressSummary/useHomeAddressSummary.d.ts +21 -6
  451. package/dist/components/Employee/HomeAddress/shared/useHomeAddressSummary/useHomeAddressSummary.js.map +1 -1
  452. package/dist/components/Employee/Landing/Landing.d.ts +6 -0
  453. package/dist/components/Employee/Landing/Landing.js.map +1 -1
  454. package/dist/components/Employee/OnboardingExecutionFlow/OnboardingExecutionFlow.d.ts +43 -0
  455. package/dist/components/Employee/OnboardingExecutionFlow/OnboardingExecutionFlow.js.map +1 -1
  456. package/dist/components/Employee/OnboardingExecutionFlow/OnboardingExecutionFlowComponents.d.ts +17 -0
  457. package/dist/components/Employee/OnboardingExecutionFlow/OnboardingExecutionFlowComponents.js.map +1 -1
  458. package/dist/components/Employee/OnboardingExecutionFlow/index.d.ts +2 -2
  459. package/dist/components/Employee/OnboardingExecutionFlow/onboardingExecutionStateMachine.d.ts +7 -0
  460. package/dist/components/Employee/OnboardingExecutionFlow/onboardingExecutionStateMachine.js.map +1 -1
  461. package/dist/components/Employee/OnboardingFlow/OnboardingFlow.d.ts +59 -0
  462. package/dist/components/Employee/OnboardingFlow/OnboardingFlow.js.map +1 -1
  463. package/dist/components/Employee/OnboardingFlow/OnboardingFlowComponents.d.ts +2 -1
  464. package/dist/components/Employee/OnboardingFlow/OnboardingFlowComponents.js.map +1 -1
  465. package/dist/components/Employee/OnboardingFlow/onboardingStateMachine.d.ts +1 -0
  466. package/dist/components/Employee/OnboardingFlow/onboardingStateMachine.js.map +1 -1
  467. package/dist/components/Employee/OnboardingSummary/OnboardingSummary.d.ts +7 -0
  468. package/dist/components/Employee/OnboardingSummary/OnboardingSummary.js.map +1 -1
  469. package/dist/components/Employee/PaymentMethod/management/PaymentMethod.d.ts +39 -0
  470. package/dist/components/Employee/PaymentMethod/management/PaymentMethod.js +6 -7
  471. package/dist/components/Employee/PaymentMethod/management/PaymentMethod.js.map +1 -1
  472. package/dist/components/Employee/PaymentMethod/management/PaymentMethodBankForm.d.ts +23 -6
  473. package/dist/components/Employee/PaymentMethod/management/PaymentMethodBankForm.js.map +1 -1
  474. package/dist/components/Employee/PaymentMethod/management/PaymentMethodCard.d.ts +24 -7
  475. package/dist/components/Employee/PaymentMethod/management/PaymentMethodCard.js +14 -14
  476. package/dist/components/Employee/PaymentMethod/management/PaymentMethodCard.js.map +1 -1
  477. package/dist/components/Employee/PaymentMethod/management/PaymentMethodComponents.d.ts +5 -0
  478. package/dist/components/Employee/PaymentMethod/management/PaymentMethodComponents.js.map +1 -1
  479. package/dist/components/Employee/PaymentMethod/management/PaymentMethodSplitForm.d.ts +23 -6
  480. package/dist/components/Employee/PaymentMethod/management/PaymentMethodSplitForm.js.map +1 -1
  481. package/dist/components/Employee/PaymentMethod/management/paymentMethodStateMachine.d.ts +1 -0
  482. package/dist/components/Employee/PaymentMethod/management/paymentMethodStateMachine.js.map +1 -1
  483. package/dist/components/Employee/PaymentMethod/management/useFormDictionary.d.ts +4 -0
  484. package/dist/components/Employee/PaymentMethod/management/useFormDictionary.js.map +1 -1
  485. package/dist/components/Employee/PaymentMethod/onboarding/BankForm.d.ts +2 -0
  486. package/dist/components/Employee/PaymentMethod/onboarding/BankForm.js.map +1 -1
  487. package/dist/components/Employee/PaymentMethod/onboarding/ListView.d.ts +1 -0
  488. package/dist/components/Employee/PaymentMethod/onboarding/ListView.js +15 -15
  489. package/dist/components/Employee/PaymentMethod/onboarding/ListView.js.map +1 -1
  490. package/dist/components/Employee/PaymentMethod/onboarding/PaymentMethod.d.ts +43 -0
  491. package/dist/components/Employee/PaymentMethod/onboarding/PaymentMethod.js +6 -7
  492. package/dist/components/Employee/PaymentMethod/onboarding/PaymentMethod.js.map +1 -1
  493. package/dist/components/Employee/PaymentMethod/onboarding/PaymentMethodComponents.d.ts +4 -0
  494. package/dist/components/Employee/PaymentMethod/onboarding/PaymentMethodComponents.js.map +1 -1
  495. package/dist/components/Employee/PaymentMethod/onboarding/SplitView.d.ts +2 -0
  496. package/dist/components/Employee/PaymentMethod/onboarding/SplitView.js.map +1 -1
  497. package/dist/components/Employee/PaymentMethod/onboarding/paymentMethodStateMachine.d.ts +1 -0
  498. package/dist/components/Employee/PaymentMethod/onboarding/paymentMethodStateMachine.js.map +1 -1
  499. package/dist/components/Employee/PaymentMethod/onboarding/useFormDictionary.d.ts +4 -0
  500. package/dist/components/Employee/PaymentMethod/onboarding/useFormDictionary.js.map +1 -1
  501. package/dist/components/Employee/PaymentMethod/shared/BankFormBody/BankFormBody.d.ts +4 -0
  502. package/dist/components/Employee/PaymentMethod/shared/BankFormBody/BankFormBody.js +8 -7
  503. package/dist/components/Employee/PaymentMethod/shared/BankFormBody/BankFormBody.js.map +1 -1
  504. package/dist/components/Employee/PaymentMethod/shared/BankFormBody/index.d.ts +1 -1
  505. package/dist/components/Employee/PaymentMethod/shared/DeleteBankAccountDialog.d.ts +2 -0
  506. package/dist/components/Employee/PaymentMethod/shared/DeleteBankAccountDialog.js.map +1 -1
  507. package/dist/components/Employee/PaymentMethod/shared/SplitPaymentsFormBody/SplitPaymentsFormBody.d.ts +4 -0
  508. package/dist/components/Employee/PaymentMethod/shared/SplitPaymentsFormBody/SplitPaymentsFormBody.js +10 -9
  509. package/dist/components/Employee/PaymentMethod/shared/SplitPaymentsFormBody/SplitPaymentsFormBody.js.map +1 -1
  510. package/dist/components/Employee/PaymentMethod/shared/SplitPaymentsFormBody/index.d.ts +1 -1
  511. package/dist/components/Employee/PaymentMethod/shared/useBankForm/fields.d.ts +80 -0
  512. package/dist/components/Employee/PaymentMethod/shared/useBankForm/fields.js +1 -1
  513. package/dist/components/Employee/PaymentMethod/shared/useBankForm/fields.js.map +1 -1
  514. package/dist/components/Employee/PaymentMethod/shared/useBankForm/index.d.ts +1 -1
  515. package/dist/components/Employee/PaymentMethod/shared/useBankForm/useBankForm.d.ts +84 -1
  516. package/dist/components/Employee/PaymentMethod/shared/useBankForm/useBankForm.js.map +1 -1
  517. package/dist/components/Employee/PaymentMethod/shared/useBankForm/useBankFormSchema.d.ts +45 -0
  518. package/dist/components/Employee/PaymentMethod/shared/useBankForm/useBankFormSchema.js.map +1 -1
  519. package/dist/components/Employee/PaymentMethod/shared/useDeleteBankAccount.d.ts +1 -0
  520. package/dist/components/Employee/PaymentMethod/shared/useDeleteBankAccount.js.map +1 -1
  521. package/dist/components/Employee/PaymentMethod/shared/usePaymentMethodForm/fields.d.ts +22 -0
  522. package/dist/components/Employee/PaymentMethod/shared/usePaymentMethodForm/fields.js.map +1 -1
  523. package/dist/components/Employee/PaymentMethod/shared/usePaymentMethodForm/index.d.ts +2 -2
  524. package/dist/components/Employee/PaymentMethod/shared/usePaymentMethodForm/usePaymentMethodForm.d.ts +84 -1
  525. package/dist/components/Employee/PaymentMethod/shared/usePaymentMethodForm/usePaymentMethodForm.js.map +1 -1
  526. package/dist/components/Employee/PaymentMethod/shared/usePaymentMethodForm/usePaymentMethodFormSchema.d.ts +45 -0
  527. package/dist/components/Employee/PaymentMethod/shared/usePaymentMethodForm/usePaymentMethodFormSchema.js.map +1 -1
  528. package/dist/components/Employee/PaymentMethod/shared/usePaymentMethodList.d.ts +6 -0
  529. package/dist/components/Employee/PaymentMethod/shared/usePaymentMethodList.js.map +1 -1
  530. package/dist/components/Employee/PaymentMethod/shared/useSplitPaymentsForm/fields.d.ts +22 -0
  531. package/dist/components/Employee/PaymentMethod/shared/useSplitPaymentsForm/fields.js.map +1 -1
  532. package/dist/components/Employee/PaymentMethod/shared/useSplitPaymentsForm/index.d.ts +2 -2
  533. package/dist/components/Employee/PaymentMethod/shared/useSplitPaymentsForm/splitFieldFactory.d.ts +25 -0
  534. package/dist/components/Employee/PaymentMethod/shared/useSplitPaymentsForm/splitFieldFactory.js +4 -4
  535. package/dist/components/Employee/PaymentMethod/shared/useSplitPaymentsForm/splitFieldFactory.js.map +1 -1
  536. package/dist/components/Employee/PaymentMethod/shared/useSplitPaymentsForm/useSplitPaymentsForm.d.ts +124 -7
  537. package/dist/components/Employee/PaymentMethod/shared/useSplitPaymentsForm/useSplitPaymentsForm.js.map +1 -1
  538. package/dist/components/Employee/PaymentMethod/shared/useSplitPaymentsForm/useSplitPaymentsFormSchema.d.ts +52 -6
  539. package/dist/components/Employee/PaymentMethod/shared/useSplitPaymentsForm/useSplitPaymentsFormSchema.js +1 -2
  540. package/dist/components/Employee/PaymentMethod/shared/useSplitPaymentsForm/useSplitPaymentsFormSchema.js.map +1 -1
  541. package/dist/components/Employee/Paystubs/management/PaystubsCard/PaystubsCard.d.ts +9 -0
  542. package/dist/components/Employee/Paystubs/management/PaystubsCard/PaystubsCard.js +6 -6
  543. package/dist/components/Employee/Paystubs/management/PaystubsCard/PaystubsCard.js.map +1 -1
  544. package/dist/components/Employee/Paystubs/shared/usePaystubsList/index.d.ts +1 -1
  545. package/dist/components/Employee/Paystubs/shared/usePaystubsList/usePaystubsList.d.ts +25 -0
  546. package/dist/components/Employee/Paystubs/shared/usePaystubsList/usePaystubsList.js.map +1 -1
  547. package/dist/components/Employee/Profile/management/Profile.d.ts +25 -0
  548. package/dist/components/Employee/Profile/management/Profile.js +11 -12
  549. package/dist/components/Employee/Profile/management/Profile.js.map +1 -1
  550. package/dist/components/Employee/Profile/management/ProfileCard/ProfileCard.d.ts +22 -6
  551. package/dist/components/Employee/Profile/management/ProfileCard/ProfileCard.js +8 -7
  552. package/dist/components/Employee/Profile/management/ProfileCard/ProfileCard.js.map +1 -1
  553. package/dist/components/Employee/Profile/management/ProfileComponents.d.ts +5 -1
  554. package/dist/components/Employee/Profile/management/ProfileComponents.js.map +1 -1
  555. package/dist/components/Employee/Profile/management/ProfileEditForm.d.ts +25 -0
  556. package/dist/components/Employee/Profile/management/ProfileEditForm.js +18 -19
  557. package/dist/components/Employee/Profile/management/ProfileEditForm.js.map +1 -1
  558. package/dist/components/Employee/Profile/management/profileStateMachine.d.ts +1 -0
  559. package/dist/components/Employee/Profile/management/profileStateMachine.js.map +1 -1
  560. package/dist/components/Employee/Profile/onboarding/AdminProfile.d.ts +1 -0
  561. package/dist/components/Employee/Profile/onboarding/AdminProfile.js +10 -11
  562. package/dist/components/Employee/Profile/onboarding/AdminProfile.js.map +1 -1
  563. package/dist/components/Employee/Profile/onboarding/EmployeeProfile.d.ts +1 -0
  564. package/dist/components/Employee/Profile/onboarding/EmployeeProfile.js +8 -9
  565. package/dist/components/Employee/Profile/onboarding/EmployeeProfile.js.map +1 -1
  566. package/dist/components/Employee/Profile/onboarding/Profile.d.ts +61 -0
  567. package/dist/components/Employee/Profile/onboarding/Profile.js +11 -12
  568. package/dist/components/Employee/Profile/onboarding/Profile.js.map +1 -1
  569. package/dist/components/Employee/Profile/shared/useEmployeeDetailsForm/employeeDetailsSchema.d.ts +37 -0
  570. package/dist/components/Employee/Profile/shared/useEmployeeDetailsForm/employeeDetailsSchema.js.map +1 -1
  571. package/dist/components/Employee/Profile/shared/useEmployeeDetailsForm/fields.d.ts +170 -0
  572. package/dist/components/Employee/Profile/shared/useEmployeeDetailsForm/fields.js +8 -8
  573. package/dist/components/Employee/Profile/shared/useEmployeeDetailsForm/fields.js.map +1 -1
  574. package/dist/components/Employee/Profile/shared/useEmployeeDetailsForm/index.d.ts +4 -2
  575. package/dist/components/Employee/Profile/shared/useEmployeeDetailsForm/useEmployeeDetailsForm.d.ts +140 -1
  576. package/dist/components/Employee/Profile/shared/useEmployeeDetailsForm/useEmployeeDetailsForm.js.map +1 -1
  577. package/dist/components/Employee/Profile/shared/useEmployeeProfileSummary/index.d.ts +0 -1
  578. package/dist/components/Employee/Profile/shared/useEmployeeProfileSummary/useEmployeeProfileSummary.d.ts +37 -4
  579. package/dist/components/Employee/Profile/shared/useEmployeeProfileSummary/useEmployeeProfileSummary.js.map +1 -1
  580. package/dist/components/Employee/Profile/shared/useHomeAddressForm/fields.d.ts +130 -0
  581. package/dist/components/Employee/Profile/shared/useHomeAddressForm/fields.js +5 -5
  582. package/dist/components/Employee/Profile/shared/useHomeAddressForm/fields.js.map +1 -1
  583. package/dist/components/Employee/Profile/shared/useHomeAddressForm/homeAddressSchema.d.ts +35 -0
  584. package/dist/components/Employee/Profile/shared/useHomeAddressForm/homeAddressSchema.js.map +1 -1
  585. package/dist/components/Employee/Profile/shared/useHomeAddressForm/index.d.ts +2 -1
  586. package/dist/components/Employee/Profile/shared/useHomeAddressForm/useCurrentHomeAddressForm.d.ts +45 -0
  587. package/dist/components/Employee/Profile/shared/useHomeAddressForm/useCurrentHomeAddressForm.js.map +1 -1
  588. package/dist/components/Employee/Profile/shared/useHomeAddressForm/useHomeAddressForm.d.ts +77 -1
  589. package/dist/components/Employee/Profile/shared/useHomeAddressForm/useHomeAddressForm.js.map +1 -1
  590. package/dist/components/Employee/Profile/shared/useWorkAddressForm/fields.d.ts +43 -0
  591. package/dist/components/Employee/Profile/shared/useWorkAddressForm/fields.js +4 -4
  592. package/dist/components/Employee/Profile/shared/useWorkAddressForm/fields.js.map +1 -1
  593. package/dist/components/Employee/Profile/shared/useWorkAddressForm/index.d.ts +2 -1
  594. package/dist/components/Employee/Profile/shared/useWorkAddressForm/useCurrentWorkAddressForm.d.ts +42 -0
  595. package/dist/components/Employee/Profile/shared/useWorkAddressForm/useCurrentWorkAddressForm.js.map +1 -1
  596. package/dist/components/Employee/Profile/shared/useWorkAddressForm/useWorkAddressForm.d.ts +85 -0
  597. package/dist/components/Employee/Profile/shared/useWorkAddressForm/useWorkAddressForm.js.map +1 -1
  598. package/dist/components/Employee/Profile/shared/useWorkAddressForm/workAddressSchema.d.ts +35 -0
  599. package/dist/components/Employee/Profile/shared/useWorkAddressForm/workAddressSchema.js.map +1 -1
  600. package/dist/components/Employee/SelfOnboardingFlow/SelfOnboardingComponents.d.ts +16 -0
  601. package/dist/components/Employee/SelfOnboardingFlow/SelfOnboardingComponents.js.map +1 -1
  602. package/dist/components/Employee/SelfOnboardingFlow/SelfOnboardingFlow.d.ts +31 -0
  603. package/dist/components/Employee/SelfOnboardingFlow/SelfOnboardingFlow.js.map +1 -1
  604. package/dist/components/Employee/SelfOnboardingFlow/selfOnboardingMachine.d.ts +1 -0
  605. package/dist/components/Employee/SelfOnboardingFlow/selfOnboardingMachine.js.map +1 -1
  606. package/dist/components/Employee/StateTaxes/index.d.ts +1 -1
  607. package/dist/components/Employee/StateTaxes/management/StateTaxes.d.ts +24 -0
  608. package/dist/components/Employee/StateTaxes/management/StateTaxes.js +9 -10
  609. package/dist/components/Employee/StateTaxes/management/StateTaxes.js.map +1 -1
  610. package/dist/components/Employee/StateTaxes/management/StateTaxesCard/StateTaxesCard.d.ts +21 -6
  611. package/dist/components/Employee/StateTaxes/management/StateTaxesCard/StateTaxesCard.js +12 -11
  612. package/dist/components/Employee/StateTaxes/management/StateTaxesCard/StateTaxesCard.js.map +1 -1
  613. package/dist/components/Employee/StateTaxes/management/StateTaxesComponents.d.ts +4 -0
  614. package/dist/components/Employee/StateTaxes/management/StateTaxesComponents.js.map +1 -1
  615. package/dist/components/Employee/StateTaxes/management/StateTaxesEditForm.d.ts +20 -8
  616. package/dist/components/Employee/StateTaxes/management/StateTaxesEditForm.js +5 -5
  617. package/dist/components/Employee/StateTaxes/management/StateTaxesEditForm.js.map +1 -1
  618. package/dist/components/Employee/StateTaxes/management/stateTaxesStateMachine.d.ts +1 -0
  619. package/dist/components/Employee/StateTaxes/management/stateTaxesStateMachine.js.map +1 -1
  620. package/dist/components/Employee/StateTaxes/management/useViewDictionary.d.ts +2 -0
  621. package/dist/components/Employee/StateTaxes/management/useViewDictionary.js.map +1 -1
  622. package/dist/components/Employee/StateTaxes/onboarding/StateTaxes.d.ts +22 -0
  623. package/dist/components/Employee/StateTaxes/onboarding/StateTaxes.js +5 -5
  624. package/dist/components/Employee/StateTaxes/onboarding/StateTaxes.js.map +1 -1
  625. package/dist/components/Employee/StateTaxes/onboarding/useViewDictionary.d.ts +2 -0
  626. package/dist/components/Employee/StateTaxes/onboarding/useViewDictionary.js.map +1 -1
  627. package/dist/components/Employee/StateTaxes/shared/EmployeeStateTaxesView.d.ts +4 -0
  628. package/dist/components/Employee/StateTaxes/shared/EmployeeStateTaxesView.js +2 -3
  629. package/dist/components/Employee/StateTaxes/shared/EmployeeStateTaxesView.js.map +1 -1
  630. package/dist/components/Employee/StateTaxes/shared/index.d.ts +1 -2
  631. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/employeeStateTaxesSchema.d.ts +39 -16
  632. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/employeeStateTaxesSchema.js.map +1 -1
  633. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fieldComponents.d.ts +6 -0
  634. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fieldComponents.js +8 -8
  635. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fieldComponents.js.map +1 -1
  636. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fieldMapping.d.ts +4 -9
  637. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fieldMapping.js.map +1 -1
  638. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fieldMeta.d.ts +5 -1
  639. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fieldProps.d.ts +52 -0
  640. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fields.d.ts +26 -5
  641. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fields.js.map +1 -1
  642. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/useEmployeeStateTaxesForm.d.ts +106 -0
  643. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/useEmployeeStateTaxesForm.js.map +1 -1
  644. package/dist/components/Employee/StateTaxes/shared/useStateTaxesSummary/index.d.ts +0 -1
  645. package/dist/components/Employee/StateTaxes/shared/useStateTaxesSummary/useStateTaxesSummary.d.ts +5 -8
  646. package/dist/components/Employee/StateTaxes/shared/useStateTaxesSummary/useStateTaxesSummary.js.map +1 -1
  647. package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployee.d.ts +53 -0
  648. package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployee.js.map +1 -1
  649. package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployeePresentation.d.ts +1 -0
  650. package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployeePresentation.js +11 -10
  651. package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployeePresentation.js.map +1 -1
  652. package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlow.d.ts +47 -0
  653. package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlow.js.map +1 -1
  654. package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlowComponents.d.ts +20 -0
  655. package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlowComponents.js +10 -9
  656. package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlowComponents.js.map +1 -1
  657. package/dist/components/Employee/Terminations/TerminationFlow/terminationStateMachine.d.ts +2 -0
  658. package/dist/components/Employee/Terminations/TerminationFlow/terminationStateMachine.js.map +1 -1
  659. package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummary.d.ts +48 -0
  660. package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummary.js.map +1 -1
  661. package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummaryPresentation.d.ts +1 -0
  662. package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummaryPresentation.js +3 -2
  663. package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummaryPresentation.js.map +1 -1
  664. package/dist/components/Employee/Terminations/types.d.ts +16 -0
  665. package/dist/components/Employee/WorkAddress/management/WorkAddress.d.ts +21 -0
  666. package/dist/components/Employee/WorkAddress/management/WorkAddress.js +6 -7
  667. package/dist/components/Employee/WorkAddress/management/WorkAddress.js.map +1 -1
  668. package/dist/components/Employee/WorkAddress/management/WorkAddressCard/WorkAddressCard.d.ts +17 -6
  669. package/dist/components/Employee/WorkAddress/management/WorkAddressCard/WorkAddressCard.js +17 -16
  670. package/dist/components/Employee/WorkAddress/management/WorkAddressCard/WorkAddressCard.js.map +1 -1
  671. package/dist/components/Employee/WorkAddress/management/WorkAddressComponents.d.ts +3 -0
  672. package/dist/components/Employee/WorkAddress/management/WorkAddressComponents.js.map +1 -1
  673. package/dist/components/Employee/WorkAddress/management/WorkAddressEditForm.d.ts +20 -0
  674. package/dist/components/Employee/WorkAddress/management/WorkAddressEditForm.js.map +1 -1
  675. package/dist/components/Employee/WorkAddress/management/WorkAddressView.d.ts +2 -0
  676. package/dist/components/Employee/WorkAddress/management/WorkAddressView.js +7 -7
  677. package/dist/components/Employee/WorkAddress/management/WorkAddressView.js.map +1 -1
  678. package/dist/components/Employee/WorkAddress/management/getPendingFutureWorkAddress.d.ts +2 -0
  679. package/dist/components/Employee/WorkAddress/management/getPendingFutureWorkAddress.js.map +1 -1
  680. package/dist/components/Employee/WorkAddress/management/useWorkAddressManagement.d.ts +46 -7
  681. package/dist/components/Employee/WorkAddress/management/useWorkAddressManagement.js.map +1 -1
  682. package/dist/components/Employee/WorkAddress/management/workAddressStateMachine.d.ts +1 -0
  683. package/dist/components/Employee/WorkAddress/management/workAddressStateMachine.js.map +1 -1
  684. package/dist/components/Employee/WorkAddress/shared/useEmployeeWorkAddressSummary/index.d.ts +0 -1
  685. package/dist/components/Employee/WorkAddress/shared/useEmployeeWorkAddressSummary/useEmployeeWorkAddressSummary.d.ts +21 -4
  686. package/dist/components/Employee/WorkAddress/shared/useEmployeeWorkAddressSummary/useEmployeeWorkAddressSummary.js.map +1 -1
  687. package/dist/components/Employee/exports/employeeManagement.d.ts +7 -2
  688. package/dist/components/Employee/exports/employeeManagement.js +58 -56
  689. package/dist/components/Employee/exports/employeeManagement.js.map +1 -1
  690. package/dist/components/Employee/exports/employeeOnboarding.d.ts +11 -10
  691. package/dist/components/Employee/exports/employeeOnboarding.js +24 -22
  692. package/dist/components/Employee/exports/employeeOnboarding.js.map +1 -1
  693. package/dist/components/Employee/index.d.ts +0 -1
  694. package/dist/components/Flow/FlowHeader.js +4 -3
  695. package/dist/components/Flow/FlowHeader.js.map +1 -1
  696. package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.js +19 -18
  697. package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.js.map +1 -1
  698. package/dist/components/InformationRequests/InformationRequestList/InformationRequestList.js +1 -1
  699. package/dist/components/InformationRequests/InformationRequests.js +7 -8
  700. package/dist/components/InformationRequests/InformationRequests.js.map +1 -1
  701. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetails.js +16 -17
  702. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetails.js.map +1 -1
  703. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsBanner/ConfirmWireDetailsBanner.js +2 -3
  704. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsBanner/ConfirmWireDetailsBanner.js.map +1 -1
  705. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsForm/ConfirmWireDetailsForm.js +11 -10
  706. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsForm/ConfirmWireDetailsForm.js.map +1 -1
  707. package/dist/components/Payroll/ConfirmWireDetails/WireInstructions/WireInstructions.js +0 -1
  708. package/dist/components/Payroll/ConfirmWireDetails/WireInstructions/WireInstructions.js.map +1 -1
  709. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelectionPresentation.js +9 -8
  710. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelectionPresentation.js.map +1 -1
  711. package/dist/components/Payroll/Dismissal/index.d.ts +2 -0
  712. package/dist/components/Payroll/GrossUpModal/GrossUpModal.js +27 -36
  713. package/dist/components/Payroll/GrossUpModal/GrossUpModal.js.map +1 -1
  714. package/dist/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.js +10 -10
  715. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormPresentation.js +13 -11
  716. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormPresentation.js.map +1 -1
  717. package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelectionPresentation.js +1 -0
  718. package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelectionPresentation.js.map +1 -1
  719. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerAlerts.js +8 -7
  720. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerAlerts.js.map +1 -1
  721. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerList.js +2 -3
  722. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerList.js.map +1 -1
  723. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js +18 -18
  724. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js +295 -289
  725. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js.map +1 -1
  726. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js +18 -18
  727. package/dist/components/Payroll/PayrollList/PayrollListPresentation.js +15 -15
  728. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js +4 -4
  729. package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/FastAchSubmissionBlockerBanner.js +3 -2
  730. package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/FastAchSubmissionBlockerBanner.js.map +1 -1
  731. package/dist/components/Payroll/PayrollReceipts/PayrollReceipts.js +6 -7
  732. package/dist/components/Payroll/PayrollReceipts/PayrollReceipts.js.map +1 -1
  733. package/dist/components/Payroll/RecoveryCases/RecoveryCases.js +6 -7
  734. package/dist/components/Payroll/RecoveryCases/RecoveryCases.js.map +1 -1
  735. package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.js +1 -1
  736. package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.js +2 -1
  737. package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.js.map +1 -1
  738. package/dist/components/Payroll/RecoveryCases/useRecoveryCaseErrorCode.js +3 -2
  739. package/dist/components/Payroll/RecoveryCases/useRecoveryCaseErrorCode.js.map +1 -1
  740. package/dist/components/Payroll/TransitionCreation/TransitionCreationPresentation.js +10 -10
  741. package/dist/components/Payroll/index.d.ts +2 -0
  742. package/dist/components/Payroll/index.js +24 -22
  743. package/dist/components/Payroll/index.js.map +1 -1
  744. package/dist/components/Payroll/usePreparedPayrollData.js +22 -33
  745. package/dist/components/Payroll/usePreparedPayrollData.js.map +1 -1
  746. package/dist/components/TimeOff/AddEmployeesHoliday/AddEmployeesHoliday.js +2 -3
  747. package/dist/components/TimeOff/AddEmployeesHoliday/AddEmployeesHoliday.js.map +1 -1
  748. package/dist/components/TimeOff/AddEmployeesToPolicy/AddEmployeesToPolicy.js +2 -3
  749. package/dist/components/TimeOff/AddEmployeesToPolicy/AddEmployeesToPolicy.js.map +1 -1
  750. package/dist/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetail.js +14 -14
  751. package/dist/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetail.js.map +1 -1
  752. package/dist/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetailPresentation.js +3 -2
  753. package/dist/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetailPresentation.js.map +1 -1
  754. package/dist/components/TimeOff/PolicyList/PolicyList.js +2 -3
  755. package/dist/components/TimeOff/PolicyList/PolicyList.js.map +1 -1
  756. package/dist/components/TimeOff/PolicyList/PolicyListPresentation.js +8 -8
  757. package/dist/components/TimeOff/PolicySettings/PolicySettingsPresentation.js +4 -4
  758. package/dist/components/TimeOff/PolicyTypeSelector/PolicyTypeSelectorPresentation.js +4 -4
  759. package/dist/components/TimeOff/TimeOffFlow/TimeOffFlowComponents.js +36 -34
  760. package/dist/components/TimeOff/TimeOffFlow/TimeOffFlowComponents.js.map +1 -1
  761. package/dist/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormPresentation.js +4 -4
  762. package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetail.js +16 -16
  763. package/dist/components/TimeOff/index.d.ts +6 -2
  764. package/dist/components/TimeOff/index.js +21 -17
  765. package/dist/components/TimeOff/index.js.map +1 -1
  766. package/dist/components/TimeOff/shared/PolicyDetailLayout/PolicyDetailLayout.js +25 -24
  767. package/dist/components/TimeOff/shared/PolicyDetailLayout/PolicyDetailLayout.js.map +1 -1
  768. package/dist/components/index.d.ts +1 -6
  769. package/dist/contexts/GustoProvider/GustoProvider.d.ts +0 -7
  770. package/dist/contexts/GustoProvider/GustoProvider.js +10 -11
  771. package/dist/contexts/GustoProvider/GustoProvider.js.map +1 -1
  772. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js +3 -2
  773. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js.map +1 -1
  774. package/dist/contexts/GustoProvider/index.d.ts +1 -1
  775. package/dist/contexts/index.d.ts +0 -1
  776. package/dist/i18n/I18n.js +0 -1
  777. package/dist/i18n/I18n.js.map +1 -1
  778. package/dist/i18n/en/Payroll.PayrollEditEmployee.json.js +56 -40
  779. package/dist/i18n/en/Payroll.PayrollEditEmployee.json.js.map +1 -1
  780. package/dist/i18n/en/common.json.d.ts +0 -1
  781. package/dist/i18n/en/common.json.js +2 -2
  782. package/dist/index.d.ts +18 -16
  783. package/dist/index.js +229 -163
  784. package/dist/index.js.map +1 -1
  785. package/dist/node_modules/react-dnd/dist/core/DndProvider.js +1 -1
  786. package/dist/node_modules/react-dnd/dist/core/DndProvider.js.map +1 -1
  787. package/dist/partner-hook-utils/composeErrorHandler.js +3 -1
  788. package/dist/partner-hook-utils/composeErrorHandler.js.map +1 -1
  789. package/dist/partner-hook-utils/form/fields/CheckboxHookField.js +15 -12
  790. package/dist/partner-hook-utils/form/fields/CheckboxHookField.js.map +1 -1
  791. package/dist/partner-hook-utils/form/fields/DatePickerHookField.js +1 -1
  792. package/dist/partner-hook-utils/form/fields/NumberInputHookField.js +19 -16
  793. package/dist/partner-hook-utils/form/fields/NumberInputHookField.js.map +1 -1
  794. package/dist/partner-hook-utils/form/fields/RadioGroupHookField.js +16 -13
  795. package/dist/partner-hook-utils/form/fields/RadioGroupHookField.js.map +1 -1
  796. package/dist/partner-hook-utils/form/fields/SelectHookField.js +15 -12
  797. package/dist/partner-hook-utils/form/fields/SelectHookField.js.map +1 -1
  798. package/dist/partner-hook-utils/form/fields/SwitchHookField.js +21 -18
  799. package/dist/partner-hook-utils/form/fields/SwitchHookField.js.map +1 -1
  800. package/dist/partner-hook-utils/form/fields/TextInputHookField.js +12 -9
  801. package/dist/partner-hook-utils/form/fields/TextInputHookField.js.map +1 -1
  802. package/dist/shared/constants.d.ts +5 -3
  803. package/dist/shared/constants.js +0 -1
  804. package/dist/shared/constants.js.map +1 -1
  805. package/dist/style.css +1 -1
  806. package/dist/types/i18next.d.ts +9 -33
  807. package/docs/reference/endpoint-inventory.json +291 -1070
  808. package/package.json +32 -18
  809. package/dist/assets/icons/magnifyingGlass.png.js +0 -5
  810. package/dist/assets/icons/magnifyingGlass.png.js.map +0 -1
  811. package/dist/components/Company/index.js +0 -37
  812. package/dist/components/Company/index.js.map +0 -1
  813. package/dist/components/Contractor/index.js +0 -29
  814. package/dist/components/Contractor/index.js.map +0 -1
  815. package/dist/components/Employee/Compensation/management/CompensationEditJobForm/index.d.ts +0 -3
  816. package/dist/components/Employee/Deductions/shared/index.d.ts +0 -8
  817. package/dist/components/Employee/Documents/shared/index.d.ts +0 -3
  818. package/dist/components/Employee/FederalTaxes/onboarding/index.d.ts +0 -2
  819. package/dist/components/Employee/HomeAddress/shared/index.d.ts +0 -3
  820. package/dist/components/Employee/Paystubs/shared/index.d.ts +0 -3
  821. package/dist/components/Employee/Taxes/Actions.d.ts +0 -1
  822. package/dist/components/Employee/Taxes/Actions.js +0 -13
  823. package/dist/components/Employee/Taxes/Actions.js.map +0 -1
  824. package/dist/components/Employee/Taxes/FederalForm.d.ts +0 -12
  825. package/dist/components/Employee/Taxes/FederalForm.js +0 -109
  826. package/dist/components/Employee/Taxes/FederalForm.js.map +0 -1
  827. package/dist/components/Employee/Taxes/FederalHead.d.ts +0 -1
  828. package/dist/components/Employee/Taxes/FederalHead.js +0 -25
  829. package/dist/components/Employee/Taxes/FederalHead.js.map +0 -1
  830. package/dist/components/Employee/Taxes/StateForm.d.ts +0 -6
  831. package/dist/components/Employee/Taxes/StateForm.js +0 -35
  832. package/dist/components/Employee/Taxes/StateForm.js.map +0 -1
  833. package/dist/components/Employee/Taxes/Taxes.d.ts +0 -13
  834. package/dist/components/Employee/Taxes/Taxes.js +0 -133
  835. package/dist/components/Employee/Taxes/Taxes.js.map +0 -1
  836. package/dist/components/Employee/Taxes/index.d.ts +0 -2
  837. package/dist/components/Employee/Taxes/useTaxes.d.ts +0 -8
  838. package/dist/components/Employee/Taxes/useTaxes.js +0 -21
  839. package/dist/components/Employee/Taxes/useTaxes.js.map +0 -1
  840. package/dist/components/Employee/Terminations/TerminationFlow/index.d.ts +0 -3
  841. package/dist/components/Employee/Terminations/TerminationsData.d.ts +0 -6
  842. package/dist/components/Employee/Terminations/index.d.ts +0 -8
  843. package/dist/components/Employee/WorkAddress/shared/index.d.ts +0 -3
  844. package/dist/components/Employee/index.js +0 -49
  845. package/dist/components/Employee/index.js.map +0 -1
  846. package/dist/contexts/GustoApiProvider/index.d.ts +0 -3
  847. package/dist/i18n/en/Employee.Taxes.json.js +0 -58
  848. package/dist/i18n/en/Employee.Taxes.json.js.map +0 -1
@@ -1,3 +1,5 @@
1
1
  import "./types/i18next.d.ts"
2
2
  export { DismissalFlow } from './DismissalFlow';
3
3
  export type { DismissalFlowProps, DismissalFlowContextInterface } from './DismissalFlowComponents';
4
+ export { DismissalPayPeriodSelection } from './DismissalPayPeriodSelection';
5
+ export type { DismissalPayPeriodSelectionProps } from './DismissalPayPeriodSelection';
@@ -1,38 +1,29 @@
1
- import { jsx as e, jsxs as t, Fragment as I } from "react/jsx-runtime";
2
- import { useRef as R, useState as o, useEffect as S } from "react";
1
+ import { jsx as e, jsxs as a, Fragment as I } from "react/jsx-runtime";
2
+ import { useRef as R, useState as n, useEffect as S } from "react";
3
3
  import { useForm as U, FormProvider as j } from "react-hook-form";
4
4
  import { useTranslation as k } from "react-i18next";
5
5
  import { z as P } from "zod";
6
6
  import { zodResolver as z } from "@hookform/resolvers/zod";
7
- import a from "./GrossUpModal.module.scss.js";
7
+ import l from "./GrossUpModal.module.scss.js";
8
8
  import { Flex as B } from "../../Common/Flex/Flex.js";
9
9
  import { ActionsLayout as D } from "../../Common/ActionsLayout/ActionsLayout.js";
10
- import "react-error-boundary";
11
- import "@tanstack/react-query";
12
- import { useBase as H } from "../../Base/useBase.js";
13
- import "@gusto/embedded-api-v-2025-11-15/models/errors/apierror";
14
- import "@gusto/embedded-api-v-2025-11-15/models/errors/gustoembeddederror";
15
- import "@gusto/embedded-api-v-2025-11-15/models/errors/sdkvalidationerror";
16
- import "@gusto/embedded-api-v-2025-11-15/models/errors/unprocessableentityerror";
17
- import "@gusto/embedded-api-v-2025-11-15/models/errors/httpclienterrors";
18
- import { formatNumberAsCurrency as L } from "../../../helpers/formattedStrings.js";
19
- import "../../../shared/constants.js";
20
- import { useComponentContext as V } from "../../../contexts/ComponentAdapter/useComponentContext.js";
21
- import "../../../contexts/LoadingIndicatorProvider/useLoadingIndicator.js";
22
- import { useI18n as E } from "../../../i18n/I18n.js";
10
+ import { useComponentContext as H } from "../../../contexts/ComponentAdapter/useComponentContext.js";
11
+ import { useBase as L } from "../../Base/useBase.js";
12
+ import { useI18n as V } from "../../../i18n/I18n.js";
13
+ import { formatNumberAsCurrency as E } from "../../../helpers/formattedStrings.js";
23
14
  import { NumberInputField as T } from "../../Common/Fields/NumberInputField/NumberInputField.js";
24
15
  const q = P.object({
25
16
  netPay: P.number().positive()
26
17
  });
27
- function fe({ isOpen: n, onCalculateGrossUp: w, onApply: A, onCancel: d }) {
28
- E("Payroll.GrossUpModal");
29
- const { t: r } = k("Payroll.GrossUpModal"), { Modal: M, Heading: u, Text: p, Button: i, Alert: f } = V(), { baseSubmitHandler: y } = H(), N = R(null), [l, c] = o(null), [h, m] = o(null), [g, b] = o(!1), [x, v] = o(!1), s = U({
18
+ function se({ isOpen: o, onCalculateGrossUp: w, onApply: A, onCancel: d }) {
19
+ V("Payroll.GrossUpModal");
20
+ const { t: r } = k("Payroll.GrossUpModal"), { Modal: M, Heading: u, Text: p, Button: i, Alert: f } = H(), { baseSubmitHandler: y } = L(), N = R(null), [t, c] = n(null), [h, m] = n(null), [g, b] = n(!1), [x, v] = n(!1), s = U({
30
21
  resolver: z(q),
31
22
  defaultValues: { netPay: 0 }
32
23
  });
33
24
  S(() => {
34
- n || (s.reset({ netPay: 0 }), c(null), m(null));
35
- }, [n, s.reset]);
25
+ o || (s.reset({ netPay: 0 }), c(null), m(null));
26
+ }, [o, s.reset]);
36
27
  const F = async (G) => {
37
28
  m(null), c(null), b(!0), await y(null, async () => {
38
29
  try {
@@ -46,19 +37,19 @@ function fe({ isOpen: n, onCalculateGrossUp: w, onApply: A, onCancel: d }) {
46
37
  return /* @__PURE__ */ e(
47
38
  M,
48
39
  {
49
- isOpen: n,
40
+ isOpen: o,
50
41
  onClose: d,
51
42
  containerRef: N,
52
- footer: /* @__PURE__ */ t(D, { children: [
43
+ footer: /* @__PURE__ */ a(D, { children: [
53
44
  /* @__PURE__ */ e(
54
45
  i,
55
46
  {
56
47
  variant: "primary",
57
- isDisabled: !l,
48
+ isDisabled: !t,
58
49
  onClick: async () => {
59
- l && (v(!0), await y(null, async () => {
50
+ t && (v(!0), await y(null, async () => {
60
51
  try {
61
- await A(l);
52
+ await A(t);
62
53
  } finally {
63
54
  v(!1);
64
55
  }
@@ -70,15 +61,15 @@ function fe({ isOpen: n, onCalculateGrossUp: w, onApply: A, onCancel: d }) {
70
61
  ),
71
62
  /* @__PURE__ */ e(i, { variant: "secondary", onClick: d, children: r("cancelCta") })
72
63
  ] }),
73
- children: /* @__PURE__ */ t(j, { ...s, children: [
74
- /* @__PURE__ */ t("div", { className: a.header, children: [
64
+ children: /* @__PURE__ */ a(j, { ...s, children: [
65
+ /* @__PURE__ */ a("div", { className: l.header, children: [
75
66
  /* @__PURE__ */ e(u, { as: "h2", styledAs: "h3", children: r("title") }),
76
67
  /* @__PURE__ */ e(p, { variant: "supporting", as: "p", children: r("description") })
77
68
  ] }),
78
- /* @__PURE__ */ t("div", { className: a.content, children: [
79
- h && /* @__PURE__ */ e("div", { className: a.alert, children: /* @__PURE__ */ e(f, { label: h, status: "error", disableScrollIntoView: !0 }) }),
80
- /* @__PURE__ */ e("div", { className: a.alert, children: /* @__PURE__ */ e(f, { label: r("warning"), status: "warning", disableScrollIntoView: !0 }) }),
81
- /* @__PURE__ */ t(B, { flexDirection: "row", gap: 8, children: [
69
+ /* @__PURE__ */ a("div", { className: l.content, children: [
70
+ h && /* @__PURE__ */ e("div", { className: l.alert, children: /* @__PURE__ */ e(f, { label: h, status: "error", disableScrollIntoView: !0 }) }),
71
+ /* @__PURE__ */ e("div", { className: l.alert, children: /* @__PURE__ */ e(f, { label: r("warning"), status: "warning", disableScrollIntoView: !0 }) }),
72
+ /* @__PURE__ */ a(B, { flexDirection: "row", gap: 8, children: [
82
73
  /* @__PURE__ */ e(
83
74
  T,
84
75
  {
@@ -94,16 +85,16 @@ function fe({ isOpen: n, onCalculateGrossUp: w, onApply: A, onCancel: d }) {
94
85
  i,
95
86
  {
96
87
  variant: "secondary",
97
- className: a.calculateButton,
88
+ className: l.calculateButton,
98
89
  isDisabled: g,
99
90
  onClick: s.handleSubmit(F),
100
91
  children: r(g ? "calculatingCta" : "calculateCta")
101
92
  }
102
93
  )
103
94
  ] }),
104
- l && /* @__PURE__ */ e(I, { children: /* @__PURE__ */ t("div", { className: a.result, children: [
95
+ t && /* @__PURE__ */ e(I, { children: /* @__PURE__ */ a("div", { className: l.result, children: [
105
96
  /* @__PURE__ */ e(p, { size: "sm", variant: "supporting", weight: "semibold", children: r("grossPayResult") }),
106
- /* @__PURE__ */ e(u, { as: "h3", children: L(parseFloat(l)) })
97
+ /* @__PURE__ */ e(u, { as: "h3", children: E(parseFloat(t)) })
107
98
  ] }) })
108
99
  ] })
109
100
  ] })
@@ -111,6 +102,6 @@ function fe({ isOpen: n, onCalculateGrossUp: w, onApply: A, onCancel: d }) {
111
102
  );
112
103
  }
113
104
  export {
114
- fe as GrossUpModal
105
+ se as GrossUpModal
115
106
  };
116
107
  //# sourceMappingURL=GrossUpModal.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"GrossUpModal.js","sources":["../../../../src/components/Payroll/GrossUpModal/GrossUpModal.tsx"],"sourcesContent":["import { useEffect, useRef, useState } from 'react'\nimport { FormProvider, useForm } from 'react-hook-form'\nimport { useTranslation } from 'react-i18next'\nimport { z } from 'zod'\nimport { zodResolver } from '@hookform/resolvers/zod'\nimport type { GrossUpModalProps } from './GrossUpModalTypes'\nimport styles from './GrossUpModal.module.scss'\nimport { ActionsLayout, Flex, NumberInputField } from '@/components/Common'\nimport { useBase } from '@/components/Base'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\nimport { useI18n } from '@/i18n'\nimport { formatNumberAsCurrency } from '@/helpers/formattedStrings'\n\nconst GrossUpFormSchema = z.object({\n netPay: z.number().positive(),\n})\n\ntype GrossUpFormValues = z.infer<typeof GrossUpFormSchema>\n\nexport function GrossUpModal({ isOpen, onCalculateGrossUp, onApply, onCancel }: GrossUpModalProps) {\n useI18n('Payroll.GrossUpModal')\n const { t } = useTranslation('Payroll.GrossUpModal')\n const { Modal, Heading, Text, Button, Alert } = useComponentContext()\n const { baseSubmitHandler } = useBase()\n const modalContainerRef = useRef<HTMLDivElement>(null)\n\n const [calculatedGrossUp, setCalculatedGrossUp] = useState<string | null>(null)\n const [errorMessage, setErrorMessage] = useState<string | null>(null)\n const [isCalculating, setIsCalculating] = useState(false)\n const [isApplying, setIsApplying] = useState(false)\n\n const formHandlers = useForm<GrossUpFormValues>({\n resolver: zodResolver(GrossUpFormSchema),\n defaultValues: { netPay: 0 },\n })\n\n useEffect(() => {\n if (!isOpen) {\n formHandlers.reset({ netPay: 0 })\n setCalculatedGrossUp(null)\n setErrorMessage(null)\n }\n }, [isOpen, formHandlers.reset])\n\n const handleCalculate = async (data: GrossUpFormValues) => {\n setErrorMessage(null)\n setCalculatedGrossUp(null)\n setIsCalculating(true)\n\n await baseSubmitHandler(null, async () => {\n try {\n const result = await onCalculateGrossUp(data.netPay)\n\n if (result) {\n setCalculatedGrossUp(result)\n } else {\n setErrorMessage(t('errorMessage'))\n }\n } finally {\n setIsCalculating(false)\n }\n })\n }\n\n const handleApply = async () => {\n if (calculatedGrossUp) {\n setIsApplying(true)\n await baseSubmitHandler(null, async () => {\n try {\n await onApply(calculatedGrossUp)\n } finally {\n setIsApplying(false)\n }\n })\n }\n }\n\n return (\n <Modal\n isOpen={isOpen}\n onClose={onCancel}\n containerRef={modalContainerRef}\n footer={\n <ActionsLayout>\n <Button\n variant=\"primary\"\n isDisabled={!calculatedGrossUp}\n onClick={handleApply}\n isLoading={isApplying}\n >\n {t('applyCta')}\n </Button>\n <Button variant=\"secondary\" onClick={onCancel}>\n {t('cancelCta')}\n </Button>\n </ActionsLayout>\n }\n >\n <FormProvider {...formHandlers}>\n <div className={styles.header}>\n <Heading as=\"h2\" styledAs=\"h3\">\n {t('title')}\n </Heading>\n <Text variant=\"supporting\" as=\"p\">\n {t('description')}\n </Text>\n </div>\n\n <div className={styles.content}>\n {errorMessage && (\n <div className={styles.alert}>\n <Alert label={errorMessage} status=\"error\" disableScrollIntoView />\n </div>\n )}\n\n <div className={styles.alert}>\n <Alert label={t('warning')} status=\"warning\" disableScrollIntoView />\n </div>\n\n <Flex flexDirection=\"row\" gap={8}>\n <NumberInputField\n name=\"netPay\"\n label={t('netPayLabel')}\n format=\"currency\"\n errorMessage={t('validations.netPay')}\n min={0}\n isRequired\n />\n <Button\n variant=\"secondary\"\n className={styles.calculateButton}\n isDisabled={isCalculating}\n onClick={formHandlers.handleSubmit(handleCalculate)}\n >\n {isCalculating ? t('calculatingCta') : t('calculateCta')}\n </Button>\n </Flex>\n\n {calculatedGrossUp && (\n <>\n <div className={styles.result}>\n <Text size=\"sm\" variant=\"supporting\" weight=\"semibold\">\n {t('grossPayResult')}\n </Text>\n <Heading as=\"h3\">{formatNumberAsCurrency(parseFloat(calculatedGrossUp))}</Heading>\n </div>\n </>\n )}\n </div>\n </FormProvider>\n </Modal>\n )\n}\n"],"names":["GrossUpFormSchema","z","GrossUpModal","isOpen","onCalculateGrossUp","onApply","onCancel","useI18n","t","useTranslation","Modal","Heading","Text","Button","Alert","useComponentContext","baseSubmitHandler","useBase","modalContainerRef","useRef","calculatedGrossUp","setCalculatedGrossUp","useState","errorMessage","setErrorMessage","isCalculating","setIsCalculating","isApplying","setIsApplying","formHandlers","useForm","zodResolver","useEffect","handleCalculate","data","result","jsx","ActionsLayout","jsxs","FormProvider","styles","Flex","NumberInputField","Fragment"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAaA,MAAMA,IAAoBC,EAAE,OAAO;AAAA,EACjC,QAAQA,EAAE,OAAA,EAAS,SAAA;AACrB,CAAC;AAIM,SAASC,GAAa,EAAE,QAAAC,GAAQ,oBAAAC,GAAoB,SAAAC,GAAS,UAAAC,KAA+B;AACjG,EAAAC,EAAQ,sBAAsB;AAC9B,QAAM,EAAE,GAAAC,EAAA,IAAMC,EAAe,sBAAsB,GAC7C,EAAE,OAAAC,GAAO,SAAAC,GAAS,MAAAC,GAAM,QAAAC,GAAQ,OAAAC,EAAA,IAAUC,EAAA,GAC1C,EAAE,mBAAAC,EAAA,IAAsBC,EAAA,GACxBC,IAAoBC,EAAuB,IAAI,GAE/C,CAACC,GAAmBC,CAAoB,IAAIC,EAAwB,IAAI,GACxE,CAACC,GAAcC,CAAe,IAAIF,EAAwB,IAAI,GAC9D,CAACG,GAAeC,CAAgB,IAAIJ,EAAS,EAAK,GAClD,CAACK,GAAYC,CAAa,IAAIN,EAAS,EAAK,GAE5CO,IAAeC,EAA2B;AAAA,IAC9C,UAAUC,EAAY/B,CAAiB;AAAA,IACvC,eAAe,EAAE,QAAQ,EAAA;AAAA,EAAE,CAC5B;AAED,EAAAgC,EAAU,MAAM;AACd,IAAK7B,MACH0B,EAAa,MAAM,EAAE,Q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QAAO,YACzC,UAAAJ,EAAE,gBAAgB,EAAA,CACrB;AAAA,YACA,gBAAA4B,EAACzB,KAAQ,IAAG,MAAM,YAAuB,WAAWS,CAAiB,CAAC,EAAA,CAAE;AAAA,UAAA,EAAA,CAC1E,EAAA,CACF;AAAA,QAAA,EAAA,CAEJ;AAAA,MAAA,EAAA,CACF;AAAA,IAAA;AAAA,EAAA;AAGN;"}
1
+ {"version":3,"file":"GrossUpModal.js","sources":["../../../../src/components/Payroll/GrossUpModal/GrossUpModal.tsx"],"sourcesContent":["import { useEffect, useRef, useState } from 'react'\nimport { FormProvider, useForm } from 'react-hook-form'\nimport { useTranslation } from 'react-i18next'\nimport { z } from 'zod'\nimport { zodResolver } from '@hookform/resolvers/zod'\nimport type { GrossUpModalProps } from './GrossUpModalTypes'\nimport styles from './GrossUpModal.module.scss'\nimport { ActionsLayout, Flex, NumberInputField } from '@/components/Common'\nimport { useBase } from '@/components/Base'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\nimport { useI18n } from '@/i18n'\nimport { formatNumberAsCurrency } from '@/helpers/formattedStrings'\n\nconst GrossUpFormSchema = z.object({\n netPay: z.number().positive(),\n})\n\ntype GrossUpFormValues = z.infer<typeof GrossUpFormSchema>\n\nexport function GrossUpModal({ isOpen, onCalculateGrossUp, onApply, onCancel }: GrossUpModalProps) {\n useI18n('Payroll.GrossUpModal')\n const { t } = useTranslation('Payroll.GrossUpModal')\n const { Modal, Heading, Text, Button, Alert } = useComponentContext()\n const { baseSubmitHandler } = useBase()\n const modalContainerRef = useRef<HTMLDivElement>(null)\n\n const [calculatedGrossUp, setCalculatedGrossUp] = useState<string | null>(null)\n const [errorMessage, setErrorMessage] = useState<string | null>(null)\n const [isCalculating, setIsCalculating] = useState(false)\n const [isApplying, setIsApplying] = useState(false)\n\n const formHandlers = useForm<GrossUpFormValues>({\n resolver: zodResolver(GrossUpFormSchema),\n defaultValues: { netPay: 0 },\n })\n\n useEffect(() => {\n if (!isOpen) {\n formHandlers.reset({ netPay: 0 })\n setCalculatedGrossUp(null)\n setErrorMessage(null)\n }\n }, [isOpen, formHandlers.reset])\n\n const handleCalculate = async (data: GrossUpFormValues) => {\n setErrorMessage(null)\n setCalculatedGrossUp(null)\n setIsCalculating(true)\n\n await baseSubmitHandler(null, async () => {\n try {\n const result = await onCalculateGrossUp(data.netPay)\n\n if (result) {\n setCalculatedGrossUp(result)\n } else {\n setErrorMessage(t('errorMessage'))\n }\n } finally {\n setIsCalculating(false)\n }\n })\n }\n\n const handleApply = async () => {\n if (calculatedGrossUp) {\n setIsApplying(true)\n await baseSubmitHandler(null, async () => {\n try {\n await onApply(calculatedGrossUp)\n } finally {\n setIsApplying(false)\n }\n })\n }\n }\n\n return (\n <Modal\n isOpen={isOpen}\n onClose={onCancel}\n containerRef={modalContainerRef}\n footer={\n <ActionsLayout>\n <Button\n variant=\"primary\"\n isDisabled={!calculatedGrossUp}\n onClick={handleApply}\n isLoading={isApplying}\n >\n {t('applyCta')}\n </Button>\n <Button variant=\"secondary\" onClick={onCancel}>\n {t('cancelCta')}\n </Button>\n </ActionsLayout>\n }\n >\n <FormProvider {...formHandlers}>\n <div className={styles.header}>\n <Heading as=\"h2\" styledAs=\"h3\">\n {t('title')}\n </Heading>\n <Text variant=\"supporting\" as=\"p\">\n {t('description')}\n </Text>\n </div>\n\n <div className={styles.content}>\n {errorMessage && (\n <div className={styles.alert}>\n <Alert label={errorMessage} status=\"error\" disableScrollIntoView />\n </div>\n )}\n\n <div className={styles.alert}>\n <Alert label={t('warning')} status=\"warning\" disableScrollIntoView />\n </div>\n\n <Flex flexDirection=\"row\" gap={8}>\n <NumberInputField\n name=\"netPay\"\n label={t('netPayLabel')}\n format=\"currency\"\n errorMessage={t('validations.netPay')}\n min={0}\n isRequired\n />\n <Button\n variant=\"secondary\"\n className={styles.calculateButton}\n isDisabled={isCalculating}\n onClick={formHandlers.handleSubmit(handleCalculate)}\n >\n {isCalculating ? t('calculatingCta') : t('calculateCta')}\n </Button>\n </Flex>\n\n {calculatedGrossUp && (\n <>\n <div className={styles.result}>\n <Text size=\"sm\" variant=\"supporting\" weight=\"semibold\">\n {t('grossPayResult')}\n </Text>\n <Heading as=\"h3\">{formatNumberAsCurrency(parseFloat(calculatedGrossUp))}</Heading>\n </div>\n </>\n )}\n </div>\n </FormProvider>\n </Modal>\n )\n}\n"],"names":["GrossUpFormSchema","z","GrossUpModal","isOpen","onCalculateGrossUp","onApply","onCancel","useI18n","t","useTranslation","Modal","Heading","Text","Button","Alert","useComponentContext","baseSubmitHandler","useBase","modalContainerRef","useRef","calculatedGrossUp","setCalculatedGrossUp","useState","errorMessage","setErrorMessage","isCalculating","setIsCalculating","isApplying","setIsApplying","formHandlers","useForm","zodResolver","useEffect","handleCalculate","data","result","jsx","ActionsLayout","jsxs","FormProvider","styles","Flex","NumberInputField","Fragment"],"mappings":";;;;;;;;;;;;;;AAaA,MAAMA,IAAoBC,EAAE,OAAO;AAAA,EACjC,QAAQA,EAAE,OAAA,EAAS,SAAA;AACrB,CAAC;AAIM,SAASC,GAAa,EAAE,QAAAC,GAAQ,oBAAAC,GAAoB,SAAAC,GAAS,UAAAC,KAA+B;AACjG,EAAAC,EAAQ,sBAAsB;AAC9B,QAAM,EAAE,GAAAC,EAAA,IAAMC,EAAe,sBAAsB,GAC7C,EAAE,OAAAC,GAAO,SAAAC,GAAS,MAAAC,GAAM,QAAAC,GAAQ,OAAAC,EAAA,IAAUC,EAAA,GAC1C,EAAE,mBAAAC,EAAA,IAAsBC,EAAA,GACxBC,IAAoBC,EAAuB,IAAI,GAE/C,CAACC,GAAmBC,CAAoB,IAAIC,EAAwB,IAAI,GACxE,CAACC,GAAcC,CAAe,IAAIF,EAAwB,IAAI,GAC9D,CAACG,GAAeC,CAAgB,IAAIJ,EAAS,EAAK,GAClD,CAACK,GAAYC,CAAa,IAAIN,EAAS,EAAK,GAE5CO,IAAeC,EAA2B;AAAA,IAC9C,UAAUC,EAAY/B,CAAiB;AAAA,IACvC,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EAAC,OAAA,EAAI,WAAWE,EAAO,QACrB,UAAA;AAAA,YAAA,gBAAAJ,EAACxB,GAAA,EAAK,MAAK,MAAK,SAAQ,cAAa,QAAO,YACzC,UAAAJ,EAAE,gBAAgB,EAAA,CACrB;AAAA,YACA,gBAAA4B,EAACzB,KAAQ,IAAG,MAAM,YAAuB,WAAWS,CAAiB,CAAC,EAAA,CAAE;AAAA,UAAA,EAAA,CAC1E,EAAA,CACF;AAAA,QAAA,EAAA,CAEJ;AAAA,MAAA,EAAA,CACF;AAAA,IAAA;AAAA,EAAA;AAGN;"}
@@ -9,11 +9,11 @@ import { useI18n as c } from "../../../i18n/I18n.js";
9
9
  import { useComponentContext as k } from "../../../contexts/ComponentAdapter/useComponentContext.js";
10
10
  import { Flex as o } from "../../Common/Flex/Flex.js";
11
11
  import { OffCycleReasonSelectionPresentation as N } from "../OffCycleReasonSelection/OffCycleReasonSelectionPresentation.js";
12
- import { MultiSelectComboBoxField as R } from "../../Common/Fields/MultiSelectComboBoxField/MultiSelectComboBoxField.js";
13
- import { RadioGroupField as j } from "../../Common/Fields/RadioGroupField/RadioGroupField.js";
14
- import { OffCycleTaxWithholdingTable as I } from "../OffCycleTaxWithholdingTable/OffCycleTaxWithholdingTable.js";
15
- import { OffCycleTaxWithholdingModal as L } from "../OffCycleTaxWithholdingModal/OffCycleTaxWithholdingModal.js";
16
- import { SwitchField as M } from "../../Common/Fields/SwitchField/SwitchField.js";
12
+ import { SwitchField as R } from "../../Common/Fields/SwitchField/SwitchField.js";
13
+ import { MultiSelectComboBoxField as j } from "../../Common/Fields/MultiSelectComboBoxField/MultiSelectComboBoxField.js";
14
+ import { RadioGroupField as I } from "../../Common/Fields/RadioGroupField/RadioGroupField.js";
15
+ import { OffCycleTaxWithholdingTable as L } from "../OffCycleTaxWithholdingTable/OffCycleTaxWithholdingTable.js";
16
+ import { OffCycleTaxWithholdingModal as M } from "../OffCycleTaxWithholdingModal/OffCycleTaxWithholdingModal.js";
17
17
  function oe({
18
18
  employees: g,
19
19
  isPending: m,
@@ -66,7 +66,7 @@ function oe({
66
66
  /* @__PURE__ */ n(o, { flexDirection: "column", gap: 12, children: [
67
67
  /* @__PURE__ */ e(d, { as: "h3", children: s("sectionTitle") }),
68
68
  /* @__PURE__ */ e(
69
- M,
69
+ R,
70
70
  {
71
71
  name: "includeAllEmployees",
72
72
  label: i("includeAllEmployeesLabel"),
@@ -74,7 +74,7 @@ function oe({
74
74
  }
75
75
  ),
76
76
  !O && /* @__PURE__ */ e(
77
- R,
77
+ j,
78
78
  {
79
79
  name: "selectedEmployeeUuids",
80
80
  label: s("sectionTitle"),
@@ -86,7 +86,7 @@ function oe({
86
86
  ] }),
87
87
  /* @__PURE__ */ e("hr", { className: a.divider }),
88
88
  /* @__PURE__ */ e(o, { flexDirection: "column", gap: 20, children: /* @__PURE__ */ e(
89
- j,
89
+ I,
90
90
  {
91
91
  name: "skipRegularDeductions",
92
92
  label: t("title"),
@@ -97,7 +97,7 @@ function oe({
97
97
  ) }),
98
98
  /* @__PURE__ */ e("hr", { className: a.divider }),
99
99
  /* @__PURE__ */ e(
100
- I,
100
+ L,
101
101
  {
102
102
  wageTypeGroups: P,
103
103
  config: u,
@@ -105,7 +105,7 @@ function oe({
105
105
  }
106
106
  ),
107
107
  C && /* @__PURE__ */ e(
108
- L,
108
+ M,
109
109
  {
110
110
  isOpen: !0,
111
111
  defaultConfig: u,
@@ -1,19 +1,21 @@
1
- import { jsxs as i, jsx as a } from "react/jsx-runtime";
1
+ import { jsxs as i, jsx as r } from "react/jsx-runtime";
2
2
  import { useTranslation as l } from "react-i18next";
3
- import r from "./OffCyclePayPeriodDateFormPresentation.module.scss.js";
3
+ import a from "./OffCyclePayPeriodDateFormPresentation.module.scss.js";
4
4
  import { useI18n as o } from "../../../i18n/I18n.js";
5
- import { CheckboxField as c } from "../../Common/Fields/CheckboxField/CheckboxField.js";
6
5
  import { DatePickerField as t } from "../../Common/Fields/DatePickerField/DatePickerField.js";
7
- function D() {
6
+ import "../../../contexts/ComponentAdapter/useComponentContext.js";
7
+ import "react";
8
+ import { CheckboxField as c } from "../../Common/Fields/CheckboxField/CheckboxField.js";
9
+ function h() {
8
10
  o("Payroll.OffCyclePayPeriodDateForm");
9
11
  const { t: e } = l("Payroll.OffCyclePayPeriodDateForm");
10
- return /* @__PURE__ */ i("div", { className: r.root, children: [
11
- /* @__PURE__ */ i("div", { className: r.dateFields, children: [
12
- /* @__PURE__ */ a(t, { name: "startDate", label: e("startDateLabel"), isRequired: !0 }),
13
- /* @__PURE__ */ a(t, { name: "endDate", label: e("endDateLabel"), isRequired: !0 })
12
+ return /* @__PURE__ */ i("div", { className: a.root, children: [
13
+ /* @__PURE__ */ i("div", { className: a.dateFields, children: [
14
+ /* @__PURE__ */ r(t, { name: "startDate", label: e("startDateLabel"), isRequired: !0 }),
15
+ /* @__PURE__ */ r(t, { name: "endDate", label: e("endDateLabel"), isRequired: !0 })
14
16
  ] }),
15
- /* @__PURE__ */ a("div", { className: r.checkDateField, children: /* @__PURE__ */ a(t, { name: "checkDate", label: e("checkDateLabel"), isRequired: !0 }) }),
16
- /* @__PURE__ */ a(
17
+ /* @__PURE__ */ r("div", { className: a.checkDateField, children: /* @__PURE__ */ r(t, { name: "checkDate", label: e("checkDateLabel"), isRequired: !0 }) }),
18
+ /* @__PURE__ */ r(
17
19
  c,
18
20
  {
19
21
  name: "isCheckOnly",
@@ -24,6 +26,6 @@ function D() {
24
26
  ] });
25
27
  }
26
28
  export {
27
- D as OffCyclePayPeriodDateFormPresentation
29
+ h as OffCyclePayPeriodDateFormPresentation
28
30
  };
29
31
  //# sourceMappingURL=OffCyclePayPeriodDateFormPresentation.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"OffCyclePayPeriodDateFormPresentation.js","sources":["../../../../src/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormPresentation.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport styles from './OffCyclePayPeriodDateFormPresentation.module.scss'\nimport { useI18n } from '@/i18n'\nimport { CheckboxField, DatePickerField } from '@/components/Common'\n\nexport function OffCyclePayPeriodDateFormPresentation() {\n useI18n('Payroll.OffCyclePayPeriodDateForm')\n const { t } = useTranslation('Payroll.OffCyclePayPeriodDateForm')\n\n return (\n <div className={styles.root}>\n <div className={styles.dateFields}>\n <DatePickerField name=\"startDate\" label={t('startDateLabel')} isRequired />\n <DatePickerField name=\"endDate\" label={t('endDateLabel')} isRequired />\n </div>\n\n <div className={styles.checkDateField}>\n <DatePickerField name=\"checkDate\" label={t('checkDateLabel')} isRequired />\n </div>\n\n <CheckboxField\n name=\"isCheckOnly\"\n label={t('checkOnlyLabel')}\n description={t('checkOnlyDescription')}\n />\n </div>\n )\n}\n"],"names":["OffCyclePayPeriodDateFormPresentation","useI18n","t","useTranslation","jsxs","styles","jsx","DatePickerField","CheckboxField"],"mappings":";;;;;;AAKO,SAASA,IAAwC;AACtD,EAAAC,EAAQ,mCAAmC;AAC3C,QAAM,EAAE,GAAAC,EAAA,IAAMC,EAAe,mCAAmC;AAEhE,SACE,gBAAAC,EAAC,OAAA,EAAI,WAAWC,EAAO,MACrB,UAAA;AAAA,IAAA,gBAAAD,EAAC,OAAA,EAAI,WAAWC,EAAO,YACrB,UAAA;AAAA,MAAA,gBAAAC,EAACC,GAAA,EAAgB,MAAK,aAAY,OAAOL,EAAE,gBAAgB,GAAG,YAAU,IAAC;AAAA,MACzE,gBAAAI,EAACC,KAAgB,MAAK,WAAU,OAAOL,EAAE,cAAc,GAAG,YAAU,GAAA,CAAC;AAAA,IAAA,GACvE;AAAA,IAEA,gBAAAI,EAAC,OAAA,EAAI,WAAWD,EAAO,gBACrB,UAAA,gBAAAC,EAACC,GAAA,EAAgB,MAAK,aAAY,OAAOL,EAAE,gBAAgB,GAAG,YAAU,IAAC,GAC3E;AAAA,IAEA,gBAAAI;AAAA,MAACE;AAAA,MAAA;AAAA,QACC,MAAK;AAAA,QACL,OAAON,EAAE,gBAAgB;AAAA,QACzB,aAAaA,EAAE,sBAAsB;AAAA,MAAA;AAAA,IAAA;AAAA,EACvC,GACF;AAEJ;"}
1
+ {"version":3,"file":"OffCyclePayPeriodDateFormPresentation.js","sources":["../../../../src/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormPresentation.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport styles from './OffCyclePayPeriodDateFormPresentation.module.scss'\nimport { useI18n } from '@/i18n'\nimport { CheckboxField, DatePickerField } from '@/components/Common'\n\nexport function OffCyclePayPeriodDateFormPresentation() {\n useI18n('Payroll.OffCyclePayPeriodDateForm')\n const { t } = useTranslation('Payroll.OffCyclePayPeriodDateForm')\n\n return (\n <div className={styles.root}>\n <div className={styles.dateFields}>\n <DatePickerField name=\"startDate\" label={t('startDateLabel')} isRequired />\n <DatePickerField name=\"endDate\" label={t('endDateLabel')} isRequired />\n </div>\n\n <div className={styles.checkDateField}>\n <DatePickerField name=\"checkDate\" label={t('checkDateLabel')} isRequired />\n </div>\n\n <CheckboxField\n name=\"isCheckOnly\"\n label={t('checkOnlyLabel')}\n description={t('checkOnlyDescription')}\n />\n </div>\n )\n}\n"],"names":["OffCyclePayPeriodDateFormPresentation","useI18n","t","useTranslation","jsxs","styles","jsx","DatePickerField","CheckboxField"],"mappings":";;;;;;;;AAKO,SAASA,IAAwC;AACtD,EAAAC,EAAQ,mCAAmC;AAC3C,QAAM,EAAE,GAAAC,EAAA,IAAMC,EAAe,mCAAmC;AAEhE,SACE,gBAAAC,EAAC,OAAA,EAAI,WAAWC,EAAO,MACrB,UAAA;AAAA,IAAA,gBAAAD,EAAC,OAAA,EAAI,WAAWC,EAAO,YACrB,UAAA;AAAA,MAAA,gBAAAC,EAACC,GAAA,EAAgB,MAAK,aAAY,OAAOL,EAAE,gBAAgB,GAAG,YAAU,IAAC;AAAA,MACzE,gBAAAI,EAACC,KAAgB,MAAK,WAAU,OAAOL,EAAE,cAAc,GAAG,YAAU,GAAA,CAAC;AAAA,IAAA,GACvE;AAAA,IAEA,gBAAAI,EAAC,OAAA,EAAI,WAAWD,EAAO,gBACrB,UAAA,gBAAAC,EAACC,GAAA,EAAgB,MAAK,aAAY,OAAOL,EAAE,gBAAgB,GAAG,YAAU,IAAC,GAC3E;AAAA,IAEA,gBAAAI;AAAA,MAACE;AAAA,MAAA;AAAA,QACC,MAAK;AAAA,QACL,OAAON,EAAE,gBAAgB;AAAA,QACzB,aAAaA,EAAE,sBAAsB;AAAA,MAAA;AAAA,IAAA;AAAA,EACvC,GACF;AAEJ;"}
@@ -1,6 +1,7 @@
1
1
  import { jsx as n } from "react/jsx-runtime";
2
2
  import { useMemo as r } from "react";
3
3
  import { useTranslation as s } from "react-i18next";
4
+ import "../../../contexts/ComponentAdapter/useComponentContext.js";
4
5
  import { RadioGroupField as l } from "../../Common/Fields/RadioGroupField/RadioGroupField.js";
5
6
  function f({
6
7
  name: e,
@@ -1 +1 @@
1
- {"version":3,"file":"OffCycleReasonSelectionPresentation.js","sources":["../../../../src/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelectionPresentation.tsx"],"sourcesContent":["import { useMemo } from 'react'\nimport { useTranslation } from 'react-i18next'\nimport type { OffCycleReason } from './types'\nimport { RadioGroupField } from '@/components/Common'\n\ninterface OffCycleReasonSelectionPresentationProps {\n name: string\n onChange?: (value: OffCycleReason) => void\n}\n\nexport function OffCycleReasonSelectionPresentation({\n name,\n onChange,\n}: OffCycleReasonSelectionPresentationProps) {\n const { t } = useTranslation('Payroll.OffCycleReasonSelection')\n\n const options = useMemo(\n () => [\n {\n value: 'correction' as OffCycleReason,\n label: t('options.correction.label'),\n description: t('options.correction.description'),\n },\n {\n value: 'bonus' as OffCycleReason,\n label: t('options.bonus.label'),\n description: t('options.bonus.description'),\n },\n ],\n [t],\n )\n\n return (\n <RadioGroupField<OffCycleReason>\n name={name}\n label={t('title')}\n options={options}\n isRequired\n onChange={onChange}\n />\n )\n}\n"],"names":["OffCycleReasonSelectionPresentation","name","onChange","t","useTranslation","options","useMemo","jsx","RadioGroupField"],"mappings":";;;;AAUO,SAASA,EAAoC;AAAA,EAClD,MAAAC;AAAA,EACA,UAAAC;AACF,GAA6C;AAC3C,QAAM,EAAE,GAAAC,EAAA,IAAMC,EAAe,iCAAiC,GAExDC,IAAUC;AAAA,IACd,MAAM;AAAA,MACJ;AAAA,QACE,OAAO;AAAA,QACP,OAAOH,EAAE,0BAA0B;AAAA,QACnC,aAAaA,EAAE,gCAAgC;AAAA,MAAA;AAAA,MAEjD;AAAA,QACE,OAAO;AAAA,QACP,OAAOA,EAAE,qBAAqB;AAAA,QAC9B,aAAaA,EAAE,2BAA2B;AAAA,MAAA;AAAA,IAC5C;AAAA,IAEF,CAACA,CAAC;AAAA,EAAA;AAGJ,SACE,gBAAAI;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,MAAAP;AAAA,MACA,OAAOE,EAAE,OAAO;AAAA,MAChB,SAAAE;AAAA,MACA,YAAU;AAAA,MACV,UAAAH;AAAA,IAAA;AAAA,EAAA;AAGN;"}
1
+ {"version":3,"file":"OffCycleReasonSelectionPresentation.js","sources":["../../../../src/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelectionPresentation.tsx"],"sourcesContent":["import { useMemo } from 'react'\nimport { useTranslation } from 'react-i18next'\nimport type { OffCycleReason } from './types'\nimport { RadioGroupField } from '@/components/Common'\n\ninterface OffCycleReasonSelectionPresentationProps {\n name: string\n onChange?: (value: OffCycleReason) => void\n}\n\nexport function OffCycleReasonSelectionPresentation({\n name,\n onChange,\n}: OffCycleReasonSelectionPresentationProps) {\n const { t } = useTranslation('Payroll.OffCycleReasonSelection')\n\n const options = useMemo(\n () => [\n {\n value: 'correction' as OffCycleReason,\n label: t('options.correction.label'),\n description: t('options.correction.description'),\n },\n {\n value: 'bonus' as OffCycleReason,\n label: t('options.bonus.label'),\n description: t('options.bonus.description'),\n },\n ],\n [t],\n )\n\n return (\n <RadioGroupField<OffCycleReason>\n name={name}\n label={t('title')}\n options={options}\n isRequired\n onChange={onChange}\n />\n )\n}\n"],"names":["OffCycleReasonSelectionPresentation","name","onChange","t","useTranslation","options","useMemo","jsx","RadioGroupField"],"mappings":";;;;;AAUO,SAASA,EAAoC;AAAA,EAClD,MAAAC;AAAA,EACA,UAAAC;AACF,GAA6C;AAC3C,QAAM,EAAE,GAAAC,EAAA,IAAMC,EAAe,iCAAiC,GAExDC,IAAUC;AAAA,IACd,MAAM;AAAA,MACJ;AAAA,QACE,OAAO;AAAA,QACP,OAAOH,EAAE,0BAA0B;AAAA,QACnC,aAAaA,EAAE,gCAAgC;AAAA,MAAA;AAAA,MAEjD;AAAA,QACE,OAAO;AAAA,QACP,OAAOA,EAAE,qBAAqB;AAAA,QAC9B,aAAaA,EAAE,2BAA2B;AAAA,MAAA;AAAA,IAC5C;AAAA,IAEF,CAACA,CAAC;AAAA,EAAA;AAGJ,SACE,gBAAAI;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,MAAAP;AAAA,MACA,OAAOE,EAAE,OAAO;AAAA,MAChB,SAAAE;AAAA,MACA,YAAU;AAAA,MACV,UAAAH;AAAA,IAAA;AAAA,EAAA;AAGN;"}
@@ -3,15 +3,16 @@ import { useTranslation as A } from "react-i18next";
3
3
  import { hasActionableBlockers as K, getBlockerTranslationKeys as P, isActionableBlocker as D } from "../payrollHelpers.js";
4
4
  import { useComponentContext as C } from "../../../../contexts/ComponentAdapter/useComponentContext.js";
5
5
  import { Flex as B } from "../../../Common/Flex/Flex.js";
6
+ import "react";
6
7
  import { useI18n as I } from "../../../../i18n/I18n.js";
7
- function H({
8
+ function M({
8
9
  blockers: o,
9
10
  onViewBlockersClick: i,
10
11
  viewBlockersLabel: y,
11
12
  className: a
12
13
  }) {
13
14
  I("Payroll.PayrollBlocker");
14
- const { t } = A("Payroll.PayrollBlocker"), { Alert: d, Button: p, Text: u, UnorderedList: x } = C();
15
+ const { t } = A("Payroll.PayrollBlocker"), { Alert: p, Button: d, Text: u, UnorderedList: x } = C();
15
16
  if (o.length === 0)
16
17
  return null;
17
18
  const s = o.length > 1, h = !!i && (s || K(o)), m = o.map((r) => {
@@ -28,26 +29,26 @@ function H({
28
29
  };
29
30
  }), n = y || t(s ? "viewAllBlockers" : "viewBlocker"), l = m[0];
30
31
  if (!s && l)
31
- return /* @__PURE__ */ e(d, { status: "error", label: l.title, className: a, children: /* @__PURE__ */ f(B, { flexDirection: "column", gap: 8, children: [
32
+ return /* @__PURE__ */ e(p, { status: "error", label: l.title, className: a, children: /* @__PURE__ */ f(B, { flexDirection: "column", gap: 8, children: [
32
33
  /* @__PURE__ */ e(u, { children: l.description }),
33
34
  l.helpText && l.helpText !== l.description && /* @__PURE__ */ e(u, { variant: "supporting", size: "sm", children: l.helpText }),
34
- h && /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(p, { variant: "secondary", onClick: i, title: n, children: n }) })
35
+ h && /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(d, { variant: "secondary", onClick: i, title: n, children: n }) })
35
36
  ] }) });
36
37
  const g = m.map((r) => r.title);
37
38
  return /* @__PURE__ */ e(
38
- d,
39
+ p,
39
40
  {
40
41
  status: "error",
41
42
  label: t("multipleIssuesTitle", { count: o.length }),
42
43
  className: a,
43
44
  children: /* @__PURE__ */ f(B, { flexDirection: "column", gap: 16, children: [
44
45
  /* @__PURE__ */ e(x, { items: g }),
45
- h && /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(p, { variant: "secondary", onClick: i, title: n, children: n }) })
46
+ h && /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(d, { variant: "secondary", onClick: i, title: n, children: n }) })
46
47
  ] })
47
48
  }
48
49
  );
49
50
  }
50
51
  export {
51
- H as PayrollBlockerAlerts
52
+ M as PayrollBlockerAlerts
52
53
  };
53
54
  //# sourceMappingURL=PayrollBlockerAlerts.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PayrollBlockerAlerts.js","sources":["../../../../../src/components/Payroll/PayrollBlocker/components/PayrollBlockerAlerts.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport {\n type ApiPayrollBlocker,\n getBlockerTranslationKeys,\n hasActionableBlockers,\n isActionableBlocker,\n} from '../payrollHelpers'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\nimport { Flex } from '@/components/Common'\nimport { useI18n } from '@/i18n'\n\ninterface PayrollBlockerAlertsProps {\n blockers: ApiPayrollBlocker[]\n className?: string\n onViewBlockersClick?: () => void\n viewBlockersLabel?: string\n}\n\nexport function PayrollBlockerAlerts({\n blockers,\n onViewBlockersClick,\n viewBlockersLabel,\n className,\n}: PayrollBlockerAlertsProps) {\n useI18n('Payroll.PayrollBlocker')\n const { t } = useTranslation('Payroll.PayrollBlocker')\n const { Alert, Button, Text, UnorderedList } = useComponentContext()\n\n if (blockers.length === 0) {\n return null\n }\n\n const hasMultipleBlockers = blockers.length > 1\n const showViewBlockersCta =\n Boolean(onViewBlockersClick) && (hasMultipleBlockers || hasActionableBlockers(blockers))\n\n const enrichedBlockers = blockers.map(blocker => {\n const translationKeys = getBlockerTranslationKeys(blocker.key)\n\n const title = t(translationKeys.titleKey, {\n defaultValue: t('defaultBlockerDescription'),\n })\n const description = t(translationKeys.descriptionKey, {\n defaultValue: blocker.message || t('defaultBlockerDescription'),\n })\n const helpText = isActionableBlocker(blocker.key)\n ? undefined\n : t(translationKeys.helpTextKey, { defaultValue: t('defaultBlockerHelp') })\n\n return {\n ...blocker,\n title,\n description,\n helpText,\n }\n })\n\n const ctaLabel = viewBlockersLabel || t(hasMultipleBlockers ? 'viewAllBlockers' : 'viewBlocker')\n\n const singleBlocker = enrichedBlockers[0]\n\n if (!hasMultipleBlockers && singleBlocker) {\n return (\n <Alert status=\"error\" label={singleBlocker.title} className={className}>\n <Flex flexDirection=\"column\" gap={8}>\n <Text>{singleBlocker.description}</Text>\n {singleBlocker.helpText && singleBlocker.helpText !== singleBlocker.description && (\n <Text variant=\"supporting\" size=\"sm\">\n {singleBlocker.helpText}\n </Text>\n )}\n {showViewBlockersCta && (\n <div>\n <Button variant=\"secondary\" onClick={onViewBlockersClick} title={ctaLabel}>\n {ctaLabel}\n </Button>\n </div>\n )}\n </Flex>\n </Alert>\n )\n }\n\n const listItems = enrichedBlockers.map(blocker => blocker.title)\n\n return (\n <Alert\n status=\"error\"\n label={t('multipleIssuesTitle', { count: blockers.length })}\n className={className}\n >\n <Flex flexDirection=\"column\" gap={16}>\n <UnorderedList items={listItems} />\n {showViewBlockersCta && (\n <div>\n <Button variant=\"secondary\" onClick={onViewBlockersClick} title={ctaLabel}>\n {ctaLabel}\n </Button>\n </div>\n )}\n </Flex>\n </Alert>\n )\n}\n"],"names":["PayrollBlockerAlerts","blockers","onViewBlockersClick","viewBlockersLabel","className","useI18n","useTranslation","Alert","Button","Text","UnorderedList","useComponentContext","hasMultipleBlockers","showViewBlockersCta","hasActionableBlockers","enrichedBlockers","blocker","translationKeys","getBlockerTranslationKeys","title","description","helpText","isActionableBlocker","ctaLabel","singleBlocker","jsx","jsxs","Flex","listItems"],"mappings":";;;;;;AAkBO,SAASA,EAAqB;AAAA,EACnC,UAAAC;AAAA,EACA,qBAAAC;AAAA,EACA,mBAAAC;AAAA,EACA,WAAAC;AACF,GAA8B;AAC5B,EAAAC,EAAQ,wBAAwB;AAChC,QAAM,EAAE,EAAA,IAAMC,EAAe,wBAAwB,GAC/C,EAAE,OAAAC,GAAO,QAAAC,GAAQ,MAAAC,GAAM,eAAAC,EAAA,IAAkBC,EAAA;AAE/C,MAAIV,EAAS,WAAW;AACtB,WAAO;AAGT,QAAMW,IAAsBX,EAAS,SAAS,GACxCY,IACJ,EAAQX,MAAyBU,KAAuBE,EAAsBb,CAAQ,IAElFc,IAAmBd,EAAS,IAAI,CAAAe,MAAW;AAC/C,UAAMC,IAAkBC,EAA0BF,EAAQ,GAAG,GAEvDG,IAAQ,EAAEF,EAAgB,UAAU;AAAA,MACxC,cAAc,EAAE,2BAA2B;AAAA,IAAA,CAC5C,GACKG,IAAc,EAAEH,E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AAOkB,EAAA,CAAW;AAAA,QAChCf,KACC,gBAAAY,EAAC,OAAA,EACC,UAAA,gBAAAA,EAACjB,GAAA,EAAO,SAAQ,aAAY,SAASN,GAAqB,OAAOqB,GAC9D,UAAAA,EAAA,CACH,EAAA,CACF;AAAA,MAAA,EAAA,CAEJ;AAAA,IAAA;AAAA,EAAA;AAGN;"}
1
+ {"version":3,"file":"PayrollBlockerAlerts.js","sources":["../../../../../src/components/Payroll/PayrollBlocker/components/PayrollBlockerAlerts.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport {\n type ApiPayrollBlocker,\n getBlockerTranslationKeys,\n hasActionableBlockers,\n isActionableBlocker,\n} from '../payrollHelpers'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\nimport { Flex } from '@/components/Common'\nimport { useI18n } from '@/i18n'\n\ninterface PayrollBlockerAlertsProps {\n blockers: ApiPayrollBlocker[]\n className?: string\n onViewBlockersClick?: () => void\n viewBlockersLabel?: string\n}\n\nexport function PayrollBlockerAlerts({\n blockers,\n onViewBlockersClick,\n viewBlockersLabel,\n className,\n}: PayrollBlockerAlertsProps) {\n useI18n('Payroll.PayrollBlocker')\n const { t } = useTranslation('Payroll.PayrollBlocker')\n const { Alert, Button, Text, UnorderedList } = useComponentContext()\n\n if (blockers.length === 0) {\n return null\n }\n\n const hasMultipleBlockers = blockers.length > 1\n const showViewBlockersCta =\n Boolean(onViewBlockersClick) && (hasMultipleBlockers || hasActionableBlockers(blockers))\n\n const enrichedBlockers = blockers.map(blocker => {\n const translationKeys = getBlockerTranslationKeys(blocker.key)\n\n const title = t(translationKeys.titleKey, {\n defaultValue: t('defaultBlockerDescription'),\n })\n const description = t(translationKeys.descriptionKey, {\n defaultValue: blocker.message || t('defaultBlockerDescription'),\n })\n const helpText = isActionableBlocker(blocker.key)\n ? undefined\n : t(translationKeys.helpTextKey, { defaultValue: t('defaultBlockerHelp') })\n\n return {\n ...blocker,\n title,\n description,\n helpText,\n }\n })\n\n const ctaLabel = viewBlockersLabel || t(hasMultipleBlockers ? 'viewAllBlockers' : 'viewBlocker')\n\n const singleBlocker = enrichedBlockers[0]\n\n if (!hasMultipleBlockers && singleBlocker) {\n return (\n <Alert status=\"error\" label={singleBlocker.title} className={className}>\n <Flex flexDirection=\"column\" gap={8}>\n <Text>{singleBlocker.description}</Text>\n {singleBlocker.helpText && singleBlocker.helpText !== singleBlocker.description && (\n <Text variant=\"supporting\" size=\"sm\">\n {singleBlocker.helpText}\n </Text>\n )}\n {showViewBlockersCta && (\n <div>\n <Button variant=\"secondary\" onClick={onViewBlockersClick} title={ctaLabel}>\n {ctaLabel}\n </Button>\n </div>\n )}\n </Flex>\n </Alert>\n )\n }\n\n const listItems = enrichedBlockers.map(blocker => blocker.title)\n\n return (\n <Alert\n status=\"error\"\n label={t('multipleIssuesTitle', { count: blockers.length })}\n className={className}\n >\n <Flex flexDirection=\"column\" gap={16}>\n <UnorderedList items={listItems} />\n {showViewBlockersCta && (\n <div>\n <Button variant=\"secondary\" onClick={onViewBlockersClick} title={ctaLabel}>\n {ctaLabel}\n </Button>\n </div>\n )}\n </Flex>\n </Alert>\n )\n}\n"],"names":["PayrollBlockerAlerts","blockers","onViewBlockersClick","viewBlockersLabel","className","useI18n","useTranslation","Alert","Button","Text","UnorderedList","useComponentContext","hasMultipleBlockers","showViewBlockersCta","hasActionableBlockers","enrichedBlockers","blocker","translationKeys","getBlockerTranslationKeys","title","description","helpText","isActionableBlocker","ctaLabel","singleBlocker","jsx","jsxs","Flex","listItems"],"mappings":";;;;;;;AAkBO,SAASA,EAAqB;AAAA,EACnC,UAAAC;AAAA,EACA,qBAAAC;AAAA,EACA,mBAAAC;AAAA,EACA,WAAAC;AACF,GAA8B;AAC5B,EAAAC,EAAQ,wBAAwB;AAChC,QAAM,EAAE,EAAA,IAAMC,EAAe,wBAAwB,GAC/C,EAAE,OAAAC,GAAO,QAAAC,GAAQ,MAAAC,GAAM,eAAAC,EAAA,IAAkBC,EAAA;AA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AIJ,QAAMK,IAAYb,EAAiB,IAAI,CAAAC,MAAWA,EAAQ,KAAK;AAE/D,SACE,gBAAAS;AAAA,IAAClB;AAAA,IAAA;AAAA,MACC,QAAO;AAAA,MACP,OAAO,EAAE,uBAAuB,EAAE,OAAON,EAAS,QAAQ;AAAA,MAC1D,WAAAG;AAAA,MAEA,UAAA,gBAAAsB,EAACC,GAAA,EAAK,eAAc,UAAS,KAAK,IAChC,UAAA;AAAA,QAAA,gBAAAF,EAACf,GAAA,EAAc,OAAOkB,EAAA,CAAW;AAAA,QAChCf,KACC,gBAAAY,EAAC,OAAA,EACC,UAAA,gBAAAA,EAACjB,GAAA,EAAO,SAAQ,aAAY,SAASN,GAAqB,OAAOqB,GAC9D,UAAAA,EAAA,CACH,EAAA,CACF;AAAA,MAAA,EAAA,CAEJ;AAAA,IAAA;AAAA,EAAA;AAGN;"}
@@ -15,10 +15,9 @@ import { useDataView as H } from "../../../Common/DataView/useDataView.js";
15
15
  import { useComponentDictionary as Q, useI18n as Y } from "../../../../i18n/I18n.js";
16
16
  import { RecoveryCases as z } from "../../RecoveryCases/RecoveryCases.js";
17
17
  import { BaseComponent as J } from "../../../Base/Base.js";
18
- import "../../../Base/useBase.js";
19
18
  import { recoveryCasesEvents as W, informationRequestEvents as X } from "../../../../shared/constants.js";
20
19
  import { InformationRequestsFlow as Z } from "../../../InformationRequests/InformationRequests.js";
21
- function be(s) {
20
+ function De(s) {
22
21
  return /* @__PURE__ */ o(J, { ...s, children: /* @__PURE__ */ o(ee, { ...s, children: s.children }) });
23
22
  }
24
23
  function ee({ className: s, companyId: n, dictionary: B, onEvent: u }) {
@@ -103,6 +102,6 @@ function ee({ className: s, companyId: n, dictionary: B, onEvent: u }) {
103
102
  ] }) }) : /* @__PURE__ */ o("div", { className: k(v.root, s), children: /* @__PURE__ */ o(i, { children: r("noBlockersMessage") }) });
104
103
  }
105
104
  export {
106
- be as PayrollBlockerList
105
+ De as PayrollBlockerList
107
106
  };
108
107
  //# sourceMappingURL=PayrollBlockerList.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PayrollBlockerList.js","sources":["../../../../../src/components/Payroll/PayrollBlocker/components/PayrollBlockerList.tsx"],"sourcesContent":["import { useState, useCallback } from 'react'\nimport { useTranslation } from 'react-i18next'\nimport classNames from 'classnames'\nimport { usePayrollsGetBlockersSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/payrollsGetBlockers'\nimport { useRecoveryCasesGetSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/recoveryCasesGet'\nimport { useInformationRequestsGetInformationRequestsSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/informationRequestsGetInformationRequests'\nimport { InformationRequestStatus } from '@gusto/embedded-api-v-2025-11-15/models/components/informationrequest'\nimport { getBlockerTranslationKeys } from '../payrollHelpers'\nimport styles from './PayrollBlockerList.module.scss'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\nimport { Flex, FlexItem } from '@/components/Common'\nimport { DataView } from '@/components/Common/DataView/DataView'\nimport { useDataView } from '@/components/Common/DataView/useDataView'\nimport { useComponentDictionary, useI18n } from '@/i18n'\nimport { RecoveryCases } from '@/components/Payroll/RecoveryCases'\nimport { InformationRequestsFlow } from '@/components/InformationRequests'\nimport { BaseComponent, type BaseComponentInterface } from '@/components/Base'\nimport { informationRequestEvents, recoveryCasesEvents, type EventType } from '@/shared/constants'\n\ntype ResponseAlertType = 'recoveryCaseResubmitted' | 'informationRequestResponded'\n\ninterface ResponseAlert {\n id: number\n type: ResponseAlertType\n}\n\ninterface ResponseAlertState {\n id: number\n alerts: ResponseAlert[]\n}\n\ninterface PayrollBlocker {\n id: string\n title: string\n description: string\n action?: {\n label: string\n onClick: () => void\n }\n}\n\ninterface PayrollBlockerListProps extends BaseComponentInterface<'Payroll.PayrollBlocker'> {\n companyId: string\n}\n\n/**\n * PayrollBlockerList - DataView-based component displaying payroll blockers\n * Shows each blocker with individual resolution buttons\n * Also displays recovery cases and information requests sections when applicable\n */\nexport function PayrollBlockerList(props: PayrollBlockerListProps) {\n return (\n <BaseComponent {...props}>\n <Root {...props}>{props.children}</Root>\n </BaseComponent>\n )\n}\n\nfunction Root({ className, companyId, dictionary, onEvent }: PayrollBlockerListProps) {\n useComponentDictionary('Payroll.PayrollBlocker', dictionary)\n useI18n('Payroll.PayrollBlocker')\n const { t } = useTranslation('Payroll.PayrollBlocker')\n const { Button, Text, Heading, Alert } = useComponentContext()\n\n const [alertState, setAlertState] = useState<ResponseAlertState>({\n id: 0,\n alerts: [],\n })\n\n const handleDismissAlert = useCallback((alertId: number) => {\n setAlertState(prev => ({\n ...prev,\n alerts: prev.alerts.filter(alert => alert.id !== alertId),\n }))\n }, [])\n\n const addAlert = useCallback((alertType: ResponseAlertType) => {\n setAlertState(prev => ({\n id: prev.id + 1,\n alerts: [{ id: prev.id, type: alertType }, ...prev.alerts],\n }))\n }, [])\n\n const handleEvent = useCallback(\n (type: EventType, data?: unknown) => {\n if (type === recoveryCasesEvents.RECOVERY_CASE_RESUBMIT_DONE) {\n addAlert('recoveryCaseResubmitted')\n }\n\n if (type === informationRequestEvents.INFORMATION_REQUEST_FORM_DONE) {\n addAlert('informationRequestResponded')\n }\n\n onEvent(type, data)\n },\n [onEvent, addAlert],\n )\n\n const { data: blockersData } = usePayrollsGetBlockersSuspense({\n companyUuid: companyId,\n })\n\n const { data: recoveryCasesData } = useRecoveryCasesGetSuspense({\n companyUuid: companyId,\n })\n\n const { data: informationRequestsData } = useInformationRequestsGetInformationRequestsSuspense({\n companyUuid: companyId,\n })\n\n const payrollBlockerList = blockersData.payrollBlockers ?? []\n const blockers: PayrollBlocker[] = payrollBlockerList.map(blocker => {\n const blockerKey = blocker.key\n const translationKeys = getBlockerTranslationKeys(blockerKey)\n\n const title = t(translationKeys.titleKey, {\n defaultValue: blockerKey\n .replace(/_/g, ' ')\n .replace(/\\b\\w/g, (letter: string) => letter.toUpperCase()),\n })\n\n const description = t(translationKeys.descriptionKey, {\n defaultValue: blocker.message || t('defaultBlockerDescription'),\n })\n\n return {\n id: blockerKey,\n title,\n description,\n }\n })\n\n const recoveryCases = recoveryCasesData.recoveryCases ?? []\n const informationRequests = informationRequestsData.informationRequests ?? []\n\n const hasUnrecoveredCases = recoveryCases.some(\n recoveryCase => recoveryCase.status !== 'recovered',\n )\n\n const hasInformationRequests = informationRequests.some(\n request => request.status !== InformationRequestStatus.Approved,\n )\n\n const dataViewProps = useDataView({\n data: blockers,\n columns: [\n {\n title: t('blockerSectionLabel'),\n render: blocker => (\n <FlexItem flexGrow={1}>\n <Flex flexDirection=\"column\" gap={8}>\n <Text weight=\"semibold\">{blocker.title}</Text>\n <Text variant=\"supporting\">{blocker.description}</Text>\n </Flex>\n </FlexItem>\n ),\n },\n {\n title: '',\n render: blocker => {\n const action = blocker.action\n\n if (!action) {\n return null\n }\n\n return (\n <Flex justifyContent=\"flex-end\" alignItems=\"center\">\n <Button variant=\"secondary\" onClick={action.onClick} title={action.label}>\n {action.label}\n </Button>\n </Flex>\n )\n },\n },\n ],\n })\n\n const hasBlockers = blockers.length > 0\n const hasAnyContent = hasBlockers || hasUnrecoveredCases || hasInformationRequests\n\n if (!hasAnyContent) {\n return (\n <div className={classNames(styles.root, className)}>\n <Text>{t('noBlockersMessage')}</Text>\n </div>\n )\n }\n\n return (\n <div className={classNames(styles.root, className)}>\n <Flex flexDirection=\"column\" gap={32}>\n {alertState.alerts.map(alert => (\n <Alert\n key={alert.id}\n status=\"success\"\n label={t(`alerts.${alert.type}.title`)}\n onDismiss={() => {\n handleDismissAlert(alert.id)\n }}\n >\n <Text>{t(`alerts.${alert.type}.description`)}</Text>\n </Alert>\n ))}\n\n {hasBlockers && (\n <Flex flexDirection=\"column\" gap={20}>\n <Heading as=\"h2\" styledAs=\"h4\">\n {t('blockersListTitle')}\n </Heading>\n <DataView {...dataViewProps} label={t('blockersListTitle')} />\n </Flex>\n )}\n\n {hasUnrecoveredCases && <RecoveryCases companyId={companyId} onEvent={handleEvent} />}\n\n {hasInformationRequests && (\n <InformationRequestsFlow companyId={companyId} withAlert={false} onEvent={handleEvent} />\n )}\n </Flex>\n </div>\n )\n}\n"],"names":["PayrollBlockerList","props","jsx","BaseComponent","Root","className","companyId","dictionary","onEvent","useComponentDictionary","useI18n","t","useTranslation","Button","Text","Heading","Alert","useComponentContext","alertState","setAlertState","useState","handleDismissAlert","useCallback","alertId","prev","alert","addAlert","alertType","handleEvent","type","data","recoveryCasesEvents","informationRequestEvents","blockersData","usePayrollsGetBlockersSuspense","recoveryCasesData","useRecoveryCasesGetSuspense","informationRequestsData","useInformationRequestsGetInformationRequestsSuspense","blockers","blocker","blockerKey","translationKeys","getBlockerTranslationKeys","title","letter","description","recoveryCases","informationRequests","hasUnrecoveredCases","recoveryCase","hasInformationRequests","request","InformationRequestStatus","dataViewProps","useDataView","FlexItem","jsxs","Flex","action","hasBlockers","classNames","styles","DataView","RecoveryCases","InformationRequestsFlow"],"mappings":";;;;;;;;;;;;;;;;;;;;AAkDO,SAASA,GAAmBC,GAAgC;AACjE,SACE,gBAAAC,EAACC,GAAA,EAAe,GAAGF,GACjB,UAAA,gBAAAC,EAACE,MAAM,GAAGH,GAAQ,UAAAA,EAAM,SAAA,CAAS,EAAA,CACnC;AAEJ;AAEA,SAASG,GAAK,EAAE,WAAAC,GAAW,WAAAC,GAAW,YAAAC,GAAY,SAAAC,KAAoC;AACpF,EAAAC,EAAuB,0BAA0BF,CAAU,GAC3DG,EAAQ,wBAAwB;AAChC,QAAM,EAAE,GAAAC,EAAA,IAAMC,EAAe,wBAAwB,GAC/C,EAAE,QAAAC,GAAQ,MAAAC,GAAM,SAAAC,GAAS,OAAAC,EAAA,IAAUC,EAAA,GAEnC,CAACC,GAAYC,CAAa,IAAIC,EAA6B;AAAA,IAC/D,IAAI;AAAA,IACJ,QAAQ,CAAA;AAAA,EAAC,CACV,GAEKC,IAAqBC,EAAY,CAACC,MAAoB;AAC1D,IAAAJ,EAAc,CAAAK,OAAS;AAAA,MACrB,GAAGA;AA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,IAC/B,UAAA;AAAA,IAAAxC,EAAW,OAAO,IAAI,CAAAO,MACrB,gBAAAvB;AAAA,MAACc;AAAA,MAAA;AAAA,QAEC,QAAO;AAAA,QACP,OAAOL,EAAE,UAAUc,EAAM,IAAI,QAAQ;AAAA,QACrC,WAAW,MAAM;AACf,UAAAJ,EAAmBI,EAAM,EAAE;AAAA,QAC7B;AAAA,QAEA,4BAACX,GAAA,EAAM,UAAAH,EAAE,UAAUc,EAAM,IAAI,cAAc,EAAA,CAAE;AAAA,MAAA;AAAA,MAPxCA,EAAM;AAAA,IAAA,CASd;AAAA,IAEAmC,KACC,gBAAAH,EAACC,GAAA,EAAK,eAAc,UAAS,KAAK,IAChC,UAAA;AAAA,MAAA,gBAAAxD,EAACa,KAAQ,IAAG,MAAK,UAAS,MACvB,UAAAJ,EAAE,mBAAmB,GACxB;AAAA,wBACCoD,GAAA,EAAU,GAAGT,GAAe,OAAO3C,EAAE,mBAAmB,EAAA,CAAG;AAAA,IAAA,GAC9D;AAAA,IAGDsC,KAAuB,gBAAA/C,EAAC8D,GAAA,EAAc,WAAA1D,GAAsB,SAASsB,GAAa;AAAA,IAElFuB,KACC,gBAAAjD,EAAC+D,GAAA,EAAwB,WAAA3D,GAAsB,WAAW,IAAO,SAASsB,EAAA,CAAa;AAAA,EAAA,EAAA,CAE3F,EAAA,CACF,IArCE,gBAAA1B,EAAC,OAAA,EAAI,WAAW2D,EAAWC,EAAO,MAAMzD,CAAS,GAC/C,UAAA,gBAAAH,EAACY,GAAA,EAAM,UAAAH,EAAE,mBAAmB,GAAE,GAChC;AAqCN;"}
1
+ {"version":3,"file":"PayrollBlockerList.js","sources":["../../../../../src/components/Payroll/PayrollBlocker/components/PayrollBlockerList.tsx"],"sourcesContent":["import { useState, useCallback } from 'react'\nimport { useTranslation } from 'react-i18next'\nimport classNames from 'classnames'\nimport { usePayrollsGetBlockersSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/payrollsGetBlockers'\nimport { useRecoveryCasesGetSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/recoveryCasesGet'\nimport { useInformationRequestsGetInformationRequestsSuspense } from '@gusto/embedded-api-v-2025-11-15/react-query/informationRequestsGetInformationRequests'\nimport { InformationRequestStatus } from '@gusto/embedded-api-v-2025-11-15/models/components/informationrequest'\nimport { getBlockerTranslationKeys } from '../payrollHelpers'\nimport styles from './PayrollBlockerList.module.scss'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\nimport { Flex, FlexItem } from '@/components/Common'\nimport { DataView } from '@/components/Common/DataView/DataView'\nimport { useDataView } from '@/components/Common/DataView/useDataView'\nimport { useComponentDictionary, useI18n } from '@/i18n'\nimport { RecoveryCases } from '@/components/Payroll/RecoveryCases'\nimport { InformationRequestsFlow } from '@/components/InformationRequests'\nimport { BaseComponent, type BaseComponentInterface } from '@/components/Base'\nimport { informationRequestEvents, recoveryCasesEvents, type EventType } from '@/shared/constants'\n\ntype ResponseAlertType = 'recoveryCaseResubmitted' | 'informationRequestResponded'\n\ninterface ResponseAlert {\n id: number\n type: ResponseAlertType\n}\n\ninterface ResponseAlertState {\n id: number\n alerts: ResponseAlert[]\n}\n\ninterface PayrollBlocker {\n id: string\n title: string\n description: string\n action?: {\n label: string\n onClick: () => void\n }\n}\n\ninterface PayrollBlockerListProps extends BaseComponentInterface<'Payroll.PayrollBlocker'> {\n companyId: string\n}\n\n/**\n * PayrollBlockerList - DataView-based component displaying payroll blockers\n * Shows each blocker with individual resolution buttons\n * Also displays recovery cases and information requests sections when applicable\n */\nexport function PayrollBlockerList(props: PayrollBlockerListProps) {\n return (\n <BaseComponent {...props}>\n <Root {...props}>{props.children}</Root>\n </BaseComponent>\n )\n}\n\nfunction Root({ className, companyId, dictionary, onEvent }: PayrollBlockerListProps) {\n useComponentDictionary('Payroll.PayrollBlocker', dictionary)\n useI18n('Payroll.PayrollBlocker')\n const { t } = useTranslation('Payroll.PayrollBlocker')\n const { Button, Text, Heading, Alert } = useComponentContext()\n\n const [alertState, setAlertState] = useState<ResponseAlertState>({\n id: 0,\n alerts: [],\n })\n\n const handleDismissAlert = useCallback((alertId: number) => {\n setAlertState(prev => ({\n ...prev,\n alerts: prev.alerts.filter(alert => alert.id !== alertId),\n }))\n }, [])\n\n const addAlert = useCallback((alertType: ResponseAlertType) => {\n setAlertState(prev => ({\n id: prev.id + 1,\n alerts: [{ id: prev.id, type: alertType }, ...prev.alerts],\n }))\n }, [])\n\n const handleEvent = useCallback(\n (type: EventType, data?: unknown) => {\n if (type === recoveryCasesEvents.RECOVERY_CASE_RESUBMIT_DONE) {\n addAlert('recoveryCaseResubmitted')\n }\n\n if (type === informationRequestEvents.INFORMATION_REQUEST_FORM_DONE) {\n addAlert('informationRequestResponded')\n }\n\n onEvent(type, data)\n },\n [onEvent, addAlert],\n )\n\n const { data: blockersData } = usePayrollsGetBlockersSuspense({\n companyUuid: companyId,\n })\n\n const { data: recoveryCasesData } = useRecoveryCasesGetSuspense({\n companyUuid: companyId,\n })\n\n const { data: informationRequestsData } = useInformationRequestsGetInformationRequestsSuspense({\n companyUuid: companyId,\n })\n\n const payrollBlockerList = blockersData.payrollBlockers ?? []\n const blockers: PayrollBlocker[] = payrollBlockerList.map(blocker => {\n const blockerKey = blocker.key\n const translationKeys = getBlockerTranslationKeys(blockerKey)\n\n const title = t(translationKeys.titleKey, {\n defaultValue: blockerKey\n .replace(/_/g, ' ')\n .replace(/\\b\\w/g, (letter: string) => letter.toUpperCase()),\n })\n\n const description = t(translationKeys.descriptionKey, {\n defaultValue: blocker.message || t('defaultBlockerDescription'),\n })\n\n return {\n id: blockerKey,\n title,\n description,\n }\n })\n\n const recoveryCases = recoveryCasesData.recoveryCases ?? []\n const informationRequests = informationRequestsData.informationRequests ?? []\n\n const hasUnrecoveredCases = recoveryCases.some(\n recoveryCase => recoveryCase.status !== 'recovered',\n )\n\n const hasInformationRequests = informationRequests.some(\n request => request.status !== InformationRequestStatus.Approved,\n )\n\n const dataViewProps = useDataView({\n data: blockers,\n columns: [\n {\n title: t('blockerSectionLabel'),\n render: blocker => (\n <FlexItem flexGrow={1}>\n <Flex flexDirection=\"column\" gap={8}>\n <Text weight=\"semibold\">{blocker.title}</Text>\n <Text variant=\"supporting\">{blocker.description}</Text>\n </Flex>\n </FlexItem>\n ),\n },\n {\n title: '',\n render: blocker => {\n const action = blocker.action\n\n if (!action) {\n return null\n }\n\n return (\n <Flex justifyContent=\"flex-end\" alignItems=\"center\">\n <Button variant=\"secondary\" onClick={action.onClick} title={action.label}>\n {action.label}\n </Button>\n </Flex>\n )\n },\n },\n ],\n })\n\n const hasBlockers = blockers.length > 0\n const hasAnyContent = hasBlockers || hasUnrecoveredCases || hasInformationRequests\n\n if (!hasAnyContent) {\n return (\n <div className={classNames(styles.root, className)}>\n <Text>{t('noBlockersMessage')}</Text>\n </div>\n )\n }\n\n return (\n <div className={classNames(styles.root, className)}>\n <Flex flexDirection=\"column\" gap={32}>\n {alertState.alerts.map(alert => (\n <Alert\n key={alert.id}\n status=\"success\"\n label={t(`alerts.${alert.type}.title`)}\n onDismiss={() => {\n handleDismissAlert(alert.id)\n }}\n >\n <Text>{t(`alerts.${alert.type}.description`)}</Text>\n </Alert>\n ))}\n\n {hasBlockers && (\n <Flex flexDirection=\"column\" gap={20}>\n <Heading as=\"h2\" styledAs=\"h4\">\n {t('blockersListTitle')}\n </Heading>\n <DataView {...dataViewProps} label={t('blockersListTitle')} />\n </Flex>\n )}\n\n {hasUnrecoveredCases && <RecoveryCases companyId={companyId} onEvent={handleEvent} />}\n\n {hasInformationRequests && (\n <InformationRequestsFlow companyId={companyId} withAlert={false} onEvent={handleEvent} />\n )}\n </Flex>\n </div>\n )\n}\n"],"names":["PayrollBlockerList","props","jsx","BaseComponent","Root","className","companyId","dictionary","onEvent","useComponentDictionary","useI18n","t","useTranslation","Button","Text","Heading","Alert","useComponentContext","alertState","setAlertState","useState","handleDismissAlert","useCallback","alertId","prev","alert","addAlert","alertType","handleEvent","type","data","recoveryCasesEvents","informationRequestEvents","blockersData","usePayrollsGetBlockersSuspense","recoveryCasesData","useRecoveryCasesGetSuspense","informationRequestsData","useInformationRequestsGetInformationRequestsSuspense","blockers","blocker","blockerKey","translationKeys","getBlockerTranslationKeys","title","letter","description","recoveryCases","informationRequests","hasUnrecoveredCases","recoveryCase","hasInformationRequests","request","InformationRequestStatus","dataViewProps","useDataView","FlexItem","jsxs","Flex","action","hasBlockers","classNames","styles","DataView","RecoveryCases","InformationRequestsFlow"],"mappings":";;;;;;;;;;;;;;;;;;;AAkDO,SAASA,GAAmBC,GAAgC;AACjE,SACE,gBAAAC,EAACC,GAAA,EAAe,GAAGF,GACjB,UAAA,gBAAAC,EAACE,MAAM,GAAGH,GAAQ,UAAAA,EAAM,SAAA,CAAS,EAAA,CACnC;AAEJ;AAEA,SAASG,GAAK,EAAE,WAAAC,GAAW,WAAAC,GAAW,YAAAC,GAAY,SAAAC,KAAoC;AACpF,EAAAC,EAAuB,0BAA0BF,CAAU,GAC3DG,EAAQ,wBAAwB;AAChC,QAAM,EAAE,GAAAC,EAAA,IAAMC,EAAe,wBAAwB,GAC/C,EAAE,QAAAC,GAAQ,MAAAC,GAAM,SAAAC,GAAS,OAAAC,EAAA,IAAUC,EAAA,GAEnC,CAACC,GAAYC,CAAa,IAAIC,EAA6B;AAAA,IAC/D,IAAI;AAAA,IACJ,QAAQ,CAAA;AAAA,EAAC,CACV,GAEKC,IAAqBC,EAAY,CAACC,MAAoB;AAC1D,IAAAJ,EAAc,CAAAK,OAAS;AAAA,MACrB,GAAGA;AAAA,MACH,QAAQA,EAAK,OAAO,OAAO,CAAAC,MAASA,EAAM,OAAOF,CAAO;AAAA,IAAA,EACxD;AAAA,EACJ,GAAG,CAAA,CAAE,GAECG,IAAWJ,EAAY,CAACK,MAAiC;AAC7D,IAAAR,EAAc,CAAAK,OAAS;AAAA,MACrB,IAAIA,EAAK,KAAK;AAAA,MACd,QAAQ,CAAC,EAAE,IAAIA,EAAK,IAAI,MAAMG,EAAA,GAAa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AUc,EAAM,IAAI,cAAc,EAAA,CAAE;AAAA,MAAA;AAAA,MAPxCA,EAAM;AAAA,IAAA,CASd;AAAA,IAEAmC,KACC,gBAAAH,EAACC,GAAA,EAAK,eAAc,UAAS,KAAK,IAChC,UAAA;AAAA,MAAA,gBAAAxD,EAACa,KAAQ,IAAG,MAAK,UAAS,MACvB,UAAAJ,EAAE,mBAAmB,GACxB;AAAA,wBACCoD,GAAA,EAAU,GAAGT,GAAe,OAAO3C,EAAE,mBAAmB,EAAA,CAAG;AAAA,IAAA,GAC9D;AAAA,IAGDsC,KAAuB,gBAAA/C,EAAC8D,GAAA,EAAc,WAAA1D,GAAsB,SAASsB,GAAa;AAAA,IAElFuB,KACC,gBAAAjD,EAAC+D,GAAA,EAAwB,WAAA3D,GAAsB,WAAW,IAAO,SAASsB,EAAA,CAAa;AAAA,EAAA,EAAA,CAE3F,EAAA,CACF,IArCE,gBAAA1B,EAAC,OAAA,EAAI,WAAW2D,EAAWC,EAAO,MAAMzD,CAAS,GAC/C,UAAA,gBAAAH,EAACY,GAAA,EAAM,UAAAH,EAAE,mBAAmB,GAAE,GAChC;AAqCN;"}
@@ -8,16 +8,16 @@ import $ from "./PayrollConfigurationPresentation.module.scss.js";
8
8
  import { useI18n as ee } from "../../../i18n/I18n.js";
9
9
  import { Flex as u, FlexItem as h } from "../../Common/Flex/Flex.js";
10
10
  import { Grid as te } from "../../Common/Grid/Grid.js";
11
- import { useComponentContext as re } from "../../../contexts/ComponentAdapter/useComponentContext.js";
12
- import ne from "../../../assets/icons/pencil.svg.js";
13
- import oe from "../../../assets/icons/x-circle.svg.js";
14
- import ie from "../../../assets/icons/plus-circle.svg.js";
15
- import le from "../../../assets/icons/coins-hand.svg.js";
16
- import { formatNumberAsCurrency as b, firstLastName as ae } from "../../../helpers/formattedStrings.js";
17
- import { useDateFormatter as se } from "../../../hooks/useDateFormatter.js";
18
- import me from "../../../hooks/useContainerBreakpoints/useContainerBreakpoints.js";
19
- import { PayrollLoading as ce } from "../../Common/PayrollLoading/PayrollLoading.js";
20
- import { HamburgerMenu as ue } from "../../Common/HamburgerMenu/HamburgerMenu.js";
11
+ import { HamburgerMenu as re } from "../../Common/HamburgerMenu/HamburgerMenu.js";
12
+ import { useComponentContext as ne } from "../../../contexts/ComponentAdapter/useComponentContext.js";
13
+ import oe from "../../../assets/icons/pencil.svg.js";
14
+ import ie from "../../../assets/icons/x-circle.svg.js";
15
+ import le from "../../../assets/icons/plus-circle.svg.js";
16
+ import ae from "../../../assets/icons/coins-hand.svg.js";
17
+ import { formatNumberAsCurrency as b, firstLastName as se } from "../../../helpers/formattedStrings.js";
18
+ import { useDateFormatter as me } from "../../../hooks/useDateFormatter.js";
19
+ import ce from "../../../hooks/useContainerBreakpoints/useContainerBreakpoints.js";
20
+ import { PayrollLoading as ue } from "../../Common/PayrollLoading/PayrollLoading.js";
21
21
  import { DataView as de } from "../../Common/DataView/DataView.js";
22
22
  const pe = (i, p) => i?.startDate && i.endDate ? p.formatPayPeriod(i.startDate, i.endDate) : { startDate: "", endDate: "" }, Ge = ({
23
23
  employeeCompensations: i,
@@ -40,11 +40,11 @@ const pe = (i, p) => i?.startDate && i.endDate ? p.formatPayPeriod(i.startDate,
40
40
  grossUpEnabled: B = !1,
41
41
  onGrossUpSelect: j
42
42
  }) => {
43
- const { Button: k, Heading: T, Text: d, Badge: G, Alert: I } = re();
43
+ const { Button: k, Heading: T, Text: d, Badge: G, Alert: I } = ne();
44
44
  ee("Payroll.PayrollConfiguration");
45
- const { t } = _("Payroll.PayrollConfiguration"), S = se(), L = K(), v = V(null), a = me({ ref: v }).includes("small"), c = new Map(p.map((e) => [e.uuid, e])), A = (e) => {
45
+ const { t } = _("Payroll.PayrollConfiguration"), S = me(), L = K(), v = V(null), a = ce({ ref: v }).includes("small"), c = new Map(p.map((e) => [e.uuid, e])), A = (e) => {
46
46
  const n = c.get(e);
47
- return n ? ae({ first_name: n.firstName, last_name: n.lastName }) : null;
47
+ return n ? se({ first_name: n.firstName, last_name: n.lastName }) : null;
48
48
  };
49
49
  return /* @__PURE__ */ r("div", { ref: v, className: $.container, children: /* @__PURE__ */ o(u, { flexDirection: "column", gap: 32, children: [
50
50
  /* @__PURE__ */ o(
@@ -95,7 +95,7 @@ const pe = (i, p) => i?.startDate && i.endDate ? p.formatPayPeriod(i.startDate,
95
95
  C
96
96
  ] }),
97
97
  y ? /* @__PURE__ */ r(
98
- ce,
98
+ ue,
99
99
  {
100
100
  title: t(l ? "calculatingTitle" : "loadingTitle"),
101
101
  description: t(l ? "calculatingDescription" : "loadingDescription")
@@ -175,12 +175,12 @@ const pe = (i, p) => i?.startDate && i.endDate ? p.formatPayPeriod(i.startDate,
175
175
  ],
176
176
  data: i,
177
177
  itemMenu: (e) => /* @__PURE__ */ r(
178
- ue,
178
+ re,
179
179
  {
180
180
  items: [
181
181
  {
182
182
  label: t("editMenu.edit"),
183
- icon: /* @__PURE__ */ r(ne, { "aria-hidden": !0 }),
183
+ icon: /* @__PURE__ */ r(oe, { "aria-hidden": !0 }),
184
184
  onClick: () => {
185
185
  const n = c.get(e.employeeUuid || "");
186
186
  n && E(n);
@@ -188,7 +188,7 @@ const pe = (i, p) => i?.startDate && i.endDate ? p.formatPayPeriod(i.startDate,
188
188
  },
189
189
  {
190
190
  label: t(e.excluded ? "editMenu.unskip" : "editMenu.skip"),
191
- icon: e.excluded ? /* @__PURE__ */ r(ie, { "aria-hidden": !0 }) : /* @__PURE__ */ r(oe, { "aria-hidden": !0 }),
191
+ icon: e.excluded ? /* @__PURE__ */ r(le, { "aria-hidden": !0 }) : /* @__PURE__ */ r(ie, { "aria-hidden": !0 }),
192
192
  onClick: () => {
193
193
  c.get(e.employeeUuid || "") && R(e);
194
194
  }
@@ -196,7 +196,7 @@ const pe = (i, p) => i?.startDate && i.endDate ? p.formatPayPeriod(i.startDate,
196
196
  ...B ? [
197
197
  {
198
198
  label: t("editMenu.setNetEarnings"),
199
- icon: /* @__PURE__ */ r(le, { "aria-hidden": !0 }),
199
+ icon: /* @__PURE__ */ r(ae, { "aria-hidden": !0 }),
200
200
  onClick: () => {
201
201
  e.employeeUuid && j?.(e.employeeUuid);
202
202
  }