@gusto/embedded-react-sdk 0.57.3 → 0.58.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (264) hide show
  1. package/CHANGELOG.md +88 -0
  2. package/dist/components/Common/DataView/DataCards/DataCards.js +98 -66
  3. package/dist/components/Common/DataView/DataCards/DataCards.js.map +1 -1
  4. package/dist/components/Common/DataView/DataCards/DataCards.module.scss.js +11 -9
  5. package/dist/components/Common/DataView/DataCards/DataCards.module.scss.js.map +1 -1
  6. package/dist/components/Common/DataView/DataTable/DataTable.js +86 -75
  7. package/dist/components/Common/DataView/DataTable/DataTable.js.map +1 -1
  8. package/dist/components/Common/DataView/DataView.js.map +1 -1
  9. package/dist/components/Common/DataView/getSortControls.js +22 -0
  10. package/dist/components/Common/DataView/getSortControls.js.map +1 -0
  11. package/dist/components/Common/DataView/useDataView.js +30 -24
  12. package/dist/components/Common/DataView/useDataView.js.map +1 -1
  13. package/dist/components/Common/UI/Table/Table.js +65 -25
  14. package/dist/components/Common/UI/Table/Table.js.map +1 -1
  15. package/dist/components/Common/UI/Table/Table.module.scss.js +8 -4
  16. package/dist/components/Common/UI/Table/Table.module.scss.js.map +1 -1
  17. package/dist/components/Common/UI/Table/TableTypes.js.map +1 -1
  18. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js +3 -4
  19. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js.map +1 -1
  20. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js +3 -4
  21. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js.map +1 -1
  22. package/dist/components/Company/AssignSignatory/useAssignSignatory.js +5 -6
  23. package/dist/components/Company/AssignSignatory/useAssignSignatory.js.map +1 -1
  24. package/dist/components/Company/BankAccount/BankAccountForm/context.js +3 -4
  25. package/dist/components/Company/BankAccount/BankAccountForm/context.js.map +1 -1
  26. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js +3 -4
  27. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  28. package/dist/components/Company/FederalTaxes/useFederalTaxes.js +5 -6
  29. package/dist/components/Company/FederalTaxes/useFederalTaxes.js.map +1 -1
  30. package/dist/components/Company/Industry/Context.js +6 -7
  31. package/dist/components/Company/Industry/Context.js.map +1 -1
  32. package/dist/components/Company/Locations/LocationForm/useLocationForm.js +3 -4
  33. package/dist/components/Company/Locations/LocationForm/useLocationForm.js.map +1 -1
  34. package/dist/components/Company/Locations/LocationsList/useLocationsList.js +3 -4
  35. package/dist/components/Company/Locations/LocationsList/useLocationsList.js.map +1 -1
  36. package/dist/components/Company/OnboardingOverview/context.js +3 -4
  37. package/dist/components/Company/OnboardingOverview/context.js.map +1 -1
  38. package/dist/components/Company/PaySchedule/PaySchedule.js +30 -45
  39. package/dist/components/Company/PaySchedule/PaySchedule.js.map +1 -1
  40. package/dist/components/Company/PaySchedule/PayScheduleComponents.js +11 -12
  41. package/dist/components/Company/PaySchedule/PayScheduleComponents.js.map +1 -1
  42. package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/fields.js.map +1 -1
  43. package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/payScheduleSchema.js.map +1 -1
  44. package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/usePayScheduleForm.js +78 -83
  45. package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/usePayScheduleForm.js.map +1 -1
  46. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js +3 -4
  47. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js.map +1 -1
  48. package/dist/components/Company/StateTaxes/StateTaxesList/context.js +3 -4
  49. package/dist/components/Company/StateTaxes/StateTaxesList/context.js.map +1 -1
  50. package/dist/components/Company/StateTaxes/TaxRateManagement/context.js +3 -4
  51. package/dist/components/Company/StateTaxes/TaxRateManagement/context.js.map +1 -1
  52. package/dist/components/Contractor/Compensation/management/CompensationEditForm.js +45 -54
  53. package/dist/components/Contractor/Compensation/management/CompensationEditForm.js.map +1 -1
  54. package/dist/components/Contractor/Compensation/shared/useContractorPayForm/contractorPaySchema.js +17 -22
  55. package/dist/components/Contractor/Compensation/shared/useContractorPayForm/contractorPaySchema.js.map +1 -1
  56. package/dist/components/Contractor/ContractorList/management/ManagementContractorList.js +1 -0
  57. package/dist/components/Contractor/ContractorList/management/ManagementContractorList.js.map +1 -1
  58. package/dist/components/Contractor/ContractorList/management/ManagementContractorListView.js +122 -113
  59. package/dist/components/Contractor/ContractorList/management/ManagementContractorListView.js.map +1 -1
  60. package/dist/components/Contractor/ContractorList/shared/useContractorList.js +63 -54
  61. package/dist/components/Contractor/ContractorList/shared/useContractorList.js.map +1 -1
  62. package/dist/components/Contractor/PaymentMethod/onboarding/PaymentMethod.js +39 -48
  63. package/dist/components/Contractor/PaymentMethod/onboarding/PaymentMethod.js.map +1 -1
  64. package/dist/components/Contractor/Profile/onboarding/ContractorProfile.js +76 -69
  65. package/dist/components/Contractor/Profile/onboarding/ContractorProfile.js.map +1 -1
  66. package/dist/components/Contractor/Profile/shared/useContractorDetailsForm/contractorDetailsSchema.js +27 -29
  67. package/dist/components/Contractor/Profile/shared/useContractorDetailsForm/contractorDetailsSchema.js.map +1 -1
  68. package/dist/components/Contractor/Profile/shared/useContractorDetailsForm/useContractorDetailsForm.js +14 -12
  69. package/dist/components/Contractor/Profile/shared/useContractorDetailsForm/useContractorDetailsForm.js.map +1 -1
  70. package/dist/components/Contractor/shared/hourlyRate.js +14 -0
  71. package/dist/components/Contractor/shared/hourlyRate.js.map +1 -0
  72. package/dist/components/Employee/Compensation/management/CompensationCard/CompensationCard.js +63 -63
  73. package/dist/components/Employee/Compensation/management/CompensationCard/CompensationCard.js.map +1 -1
  74. package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/useDocumentList.js +3 -4
  75. package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  76. package/dist/components/Employee/PaymentMethod/onboarding/ListView.js +65 -74
  77. package/dist/components/Employee/PaymentMethod/onboarding/ListView.js.map +1 -1
  78. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelection.js +16 -16
  79. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelection.js.map +1 -1
  80. package/dist/components/Payroll/GrossUpModal/GrossUpModal.js +2 -3
  81. package/dist/components/Payroll/GrossUpModal/GrossUpModal.js.map +1 -1
  82. package/dist/components/Payroll/OffCycleCreation/OffCycleCreation.js +84 -82
  83. package/dist/components/Payroll/OffCycleCreation/OffCycleCreation.js.map +1 -1
  84. package/dist/components/Payroll/OffCycleTaxWithholdingTable/getDefaultWithholdingPayPeriod.js +8 -0
  85. package/dist/components/Payroll/OffCycleTaxWithholdingTable/getDefaultWithholdingPayPeriod.js.map +1 -0
  86. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js +91 -88
  87. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js.map +1 -1
  88. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.js +16 -16
  89. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.js.map +1 -1
  90. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js +146 -134
  91. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js.map +1 -1
  92. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.module.scss.js +14 -12
  93. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.module.scss.js.map +1 -1
  94. package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js +34 -33
  95. package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js.map +1 -1
  96. package/dist/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/fields.js +49 -48
  97. package/dist/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/fields.js.map +1 -1
  98. package/dist/components/Payroll/PayrollExecutionFlow/PayrollExecutionFlow.js.map +1 -1
  99. package/dist/components/Payroll/PayrollExecutionFlow/payrollExecutionMachine.js +0 -4
  100. package/dist/components/Payroll/PayrollExecutionFlow/payrollExecutionMachine.js.map +1 -1
  101. package/dist/components/Payroll/PayrollFlow/PayrollFlow.js.map +1 -1
  102. package/dist/components/Payroll/PayrollFlow/PayrollFlowComponents.js +51 -38
  103. package/dist/components/Payroll/PayrollFlow/PayrollFlowComponents.js.map +1 -1
  104. package/dist/components/Payroll/PayrollFlow/payrollStateMachine.js +121 -102
  105. package/dist/components/Payroll/PayrollFlow/payrollStateMachine.js.map +1 -1
  106. package/dist/components/Payroll/PayrollLanding/PayrollLanding.js.map +1 -1
  107. package/dist/components/Payroll/PayrollList/PayrollList.js +79 -74
  108. package/dist/components/Payroll/PayrollList/PayrollList.js.map +1 -1
  109. package/dist/components/Payroll/PayrollOverview/PayrollOverview.js +92 -83
  110. package/dist/components/Payroll/PayrollOverview/PayrollOverview.js.map +1 -1
  111. package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js +23 -27
  112. package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js.map +1 -1
  113. package/dist/components/Payroll/PrintChecks/PrintChecksForm/PrintChecksForm.js +82 -75
  114. package/dist/components/Payroll/PrintChecks/PrintChecksForm/PrintChecksForm.js.map +1 -1
  115. package/dist/components/Payroll/RropPayrollEditEmployee/RropPayrollEditEmployee.js +416 -0
  116. package/dist/components/Payroll/RropPayrollEditEmployee/RropPayrollEditEmployee.js.map +1 -0
  117. package/dist/components/Payroll/{UNSTABLE_PayrollEditEmployee/UNSTABLE_PayrollEditEmployee.module.scss.js → RropPayrollEditEmployee/RropPayrollEditEmployee.module.scss.js} +1 -1
  118. package/dist/components/Payroll/RropPayrollEditEmployee/RropPayrollEditEmployee.module.scss.js.map +1 -0
  119. package/dist/components/Payroll/TransitionConfiguration/TransitionConfiguration.js +97 -0
  120. package/dist/components/Payroll/TransitionConfiguration/TransitionConfiguration.js.map +1 -0
  121. package/dist/components/Payroll/TransitionConfiguration/TransitionConfigurationPresentation.js +106 -0
  122. package/dist/components/Payroll/TransitionConfiguration/TransitionConfigurationPresentation.js.map +1 -0
  123. package/dist/components/Payroll/{TransitionCreation/TransitionCreationPresentation.module.scss.js → TransitionConfiguration/TransitionConfigurationPresentation.module.scss.js} +1 -1
  124. package/dist/components/Payroll/TransitionConfiguration/TransitionConfigurationPresentation.module.scss.js.map +1 -0
  125. package/dist/components/Payroll/TransitionConfiguration/TransitionConfigurationTypes.js +10 -0
  126. package/dist/components/Payroll/TransitionConfiguration/TransitionConfigurationTypes.js.map +1 -0
  127. package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlert.js +86 -64
  128. package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlert.js.map +1 -1
  129. package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlertPresentation.js +126 -77
  130. package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlertPresentation.js.map +1 -1
  131. package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlertPresentation.module.scss.js +8 -0
  132. package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlertPresentation.module.scss.js.map +1 -0
  133. package/dist/components/Payroll/index.js +16 -20
  134. package/dist/components/Payroll/index.js.map +1 -1
  135. package/dist/components/Payroll/usePreparedPayrollData.js +2 -3
  136. package/dist/components/Payroll/usePreparedPayrollData.js.map +1 -1
  137. package/dist/components/Payroll/useUnprocessedTransitionPayPeriods.js +11 -14
  138. package/dist/components/Payroll/useUnprocessedTransitionPayPeriods.js.map +1 -1
  139. package/dist/contexts/ApiProvider/ApiProvider.js +18 -17
  140. package/dist/contexts/ApiProvider/ApiProvider.js.map +1 -1
  141. package/dist/contexts/ApiProvider/payScheduleCustomNameHook.js +31 -0
  142. package/dist/contexts/ApiProvider/payScheduleCustomNameHook.js.map +1 -0
  143. package/dist/contexts/FeaturesProvider/FeaturesProvider.js +14 -0
  144. package/dist/contexts/FeaturesProvider/FeaturesProvider.js.map +1 -0
  145. package/dist/contexts/FeaturesProvider/useFeature.js +7 -0
  146. package/dist/contexts/FeaturesProvider/useFeature.js.map +1 -0
  147. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js +32 -30
  148. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js.map +1 -1
  149. package/dist/contexts/UnstableFeaturesProvider/useUnstableFeature.js.map +1 -1
  150. package/dist/i18n/I18n.js +2 -3
  151. package/dist/i18n/I18n.js.map +1 -1
  152. package/dist/i18n/en/Contractor.Profile.json.js +1 -1
  153. package/dist/i18n/en/Payroll.PayrollEditEmployee.json.js +29 -23
  154. package/dist/i18n/en/Payroll.PayrollEditEmployee.json.js.map +1 -1
  155. package/dist/i18n/en/Payroll.PayrollLanding.json.js +1 -1
  156. package/dist/i18n/en/{Payroll.UNSTABLE_PayrollEditEmployee.json.js → Payroll.RropPayrollEditEmployee.json.js} +42 -38
  157. package/dist/i18n/en/Payroll.RropPayrollEditEmployee.json.js.map +1 -0
  158. package/dist/i18n/en/Payroll.TransitionConfiguration.json.js +28 -0
  159. package/dist/i18n/en/Payroll.TransitionConfiguration.json.js.map +1 -0
  160. package/dist/i18n/en/Payroll.TransitionPayrollAlert.json.js +16 -12
  161. package/dist/i18n/en/Payroll.TransitionPayrollAlert.json.js.map +1 -1
  162. package/dist/i18n/en/common.json.js +1 -1
  163. package/dist/package.json.js +1 -1
  164. package/dist/partner-hook-utils/form/composeSubmitHandler.js +55 -48
  165. package/dist/partner-hook-utils/form/composeSubmitHandler.js.map +1 -1
  166. package/dist/partner-hook-utils/form/fields/RadioGroupHookField.js +31 -29
  167. package/dist/partner-hook-utils/form/fields/RadioGroupHookField.js.map +1 -1
  168. package/dist/shared/constants.js +2 -1
  169. package/dist/shared/constants.js.map +1 -1
  170. package/dist/src/components/Common/DataView/DataCards/DataCards.d.ts +3 -1
  171. package/dist/src/components/Common/DataView/DataTable/DataTable.d.ts +3 -1
  172. package/dist/src/components/Common/DataView/DataView.d.ts +2 -0
  173. package/dist/src/components/Common/DataView/getSortControls.d.ts +24 -0
  174. package/dist/src/components/Common/DataView/useDataView.d.ts +22 -1
  175. package/dist/src/components/Common/UI/Table/TableTypes.d.ts +71 -2
  176. package/dist/src/components/Company/PaySchedule/PaySchedule.d.ts +1 -9
  177. package/dist/src/components/Company/PaySchedule/PayScheduleComponents.d.ts +0 -1
  178. package/dist/src/components/Company/PaySchedule/shared/usePayScheduleForm/fields.d.ts +1 -1
  179. package/dist/src/components/Company/PaySchedule/shared/usePayScheduleForm/payScheduleSchema.d.ts +1 -1
  180. package/dist/src/components/Company/PaySchedule/shared/usePayScheduleForm/usePayScheduleForm.d.ts +3 -14
  181. package/dist/src/components/Contractor/ContractorList/management/ManagementContractorListView.d.ts +2 -2
  182. package/dist/src/components/Contractor/ContractorList/shared/index.d.ts +1 -1
  183. package/dist/src/components/Contractor/ContractorList/shared/useContractorList.d.ts +38 -0
  184. package/dist/src/components/Contractor/shared/hourlyRate.d.ts +23 -0
  185. package/dist/src/components/Payroll/OffCycleTaxWithholdingTable/getDefaultWithholdingPayPeriod.d.ts +9 -0
  186. package/dist/src/components/Payroll/PayrollEditEmployee/TimeOffField.d.ts +3 -1
  187. package/dist/src/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/fields.d.ts +2 -0
  188. package/dist/src/components/Payroll/PayrollExecutionFlow/PayrollExecutionFlow.d.ts +8 -6
  189. package/dist/src/components/Payroll/PayrollExecutionFlow/payrollExecutionMachine.d.ts +0 -8
  190. package/dist/src/components/Payroll/PayrollFlow/PayrollFlow.d.ts +5 -3
  191. package/dist/src/components/Payroll/PayrollFlow/PayrollFlowComponents.d.ts +2 -3
  192. package/dist/src/components/Payroll/PayrollFlow/payrollStateMachine.d.ts +1 -1
  193. package/dist/src/components/Payroll/PayrollLanding/PayrollLanding.d.ts +18 -5
  194. package/dist/src/components/Payroll/PayrollList/PayrollList.d.ts +11 -5
  195. package/dist/src/components/Payroll/{UNSTABLE_PayrollEditEmployee/UNSTABLE_PayrollEditEmployee.d.ts → RropPayrollEditEmployee/RropPayrollEditEmployee.d.ts} +9 -5
  196. package/dist/src/components/Payroll/TransitionConfiguration/TransitionConfiguration.d.ts +55 -0
  197. package/dist/src/components/Payroll/TransitionConfiguration/TransitionConfigurationPresentation.d.ts +9 -0
  198. package/dist/src/components/Payroll/TransitionConfiguration/TransitionConfigurationTypes.d.ts +52 -0
  199. package/dist/src/components/Payroll/TransitionConfiguration/index.d.ts +2 -0
  200. package/dist/src/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlertPresentation.d.ts +5 -2
  201. package/dist/src/components/Payroll/index.d.ts +2 -6
  202. package/dist/src/contexts/ApiProvider/payScheduleCustomNameHook.d.ts +14 -0
  203. package/dist/src/contexts/ApiProvider/payScheduleCustomNameHook.test.d.ts +1 -0
  204. package/dist/src/contexts/ComponentAdapter/componentAdapterTypes.d.ts +1 -1
  205. package/dist/src/contexts/FeaturesProvider/FeaturesProvider.d.ts +21 -0
  206. package/dist/src/contexts/FeaturesProvider/useFeature.d.ts +53 -0
  207. package/dist/src/contexts/GustoProvider/GustoProviderCustomUIAdapter.d.ts +3 -0
  208. package/dist/src/contexts/UnstableFeaturesProvider/useUnstableFeature.d.ts +38 -10
  209. package/dist/src/contexts/index.d.ts +1 -0
  210. package/dist/src/i18n/en/common.json.d.ts +5 -1
  211. package/dist/src/i18n/types.d.ts +113 -66
  212. package/dist/src/partner-hook-utils/form/fields/RadioGroupHookField.d.ts +9 -7
  213. package/dist/src/shared/constants.d.ts +4 -2
  214. package/dist/src/test-utils/renderWithProviders.d.ts +2 -0
  215. package/dist/style.css +1 -1
  216. package/docs/guides/endpoint-inventory.json +24 -27
  217. package/package.json +15 -14
  218. package/dist/components/Payroll/PayrollFlow/TransitionFlowContextual.js +0 -29
  219. package/dist/components/Payroll/PayrollFlow/TransitionFlowContextual.js.map +0 -1
  220. package/dist/components/Payroll/Transition/TransitionFlow.js +0 -60
  221. package/dist/components/Payroll/Transition/TransitionFlow.js.map +0 -1
  222. package/dist/components/Payroll/Transition/TransitionFlowComponents.js +0 -31
  223. package/dist/components/Payroll/Transition/TransitionFlowComponents.js.map +0 -1
  224. package/dist/components/Payroll/Transition/transitionStateMachine.js +0 -49
  225. package/dist/components/Payroll/Transition/transitionStateMachine.js.map +0 -1
  226. package/dist/components/Payroll/TransitionCreation/TransitionCreation.js +0 -100
  227. package/dist/components/Payroll/TransitionCreation/TransitionCreation.js.map +0 -1
  228. package/dist/components/Payroll/TransitionCreation/TransitionCreationPresentation.js +0 -110
  229. package/dist/components/Payroll/TransitionCreation/TransitionCreationPresentation.js.map +0 -1
  230. package/dist/components/Payroll/TransitionCreation/TransitionCreationPresentation.module.scss.js.map +0 -1
  231. package/dist/components/Payroll/TransitionCreation/TransitionCreationTypes.js +0 -21
  232. package/dist/components/Payroll/TransitionCreation/TransitionCreationTypes.js.map +0 -1
  233. package/dist/components/Payroll/TransitionPayroll/TransitionPayroll.js +0 -48
  234. package/dist/components/Payroll/TransitionPayroll/TransitionPayroll.js.map +0 -1
  235. package/dist/components/Payroll/TransitionPayroll/TransitionPayrollComponents.js +0 -35
  236. package/dist/components/Payroll/TransitionPayroll/TransitionPayrollComponents.js.map +0 -1
  237. package/dist/components/Payroll/TransitionPayroll/transitionPayrollStateMachine.js +0 -23
  238. package/dist/components/Payroll/TransitionPayroll/transitionPayrollStateMachine.js.map +0 -1
  239. package/dist/components/Payroll/TransitionPayroll/useResolveTransitionPayroll.js +0 -29
  240. package/dist/components/Payroll/TransitionPayroll/useResolveTransitionPayroll.js.map +0 -1
  241. package/dist/components/Payroll/UNSTABLE_PayrollEditEmployee/UNSTABLE_PayrollEditEmployee.js +0 -411
  242. package/dist/components/Payroll/UNSTABLE_PayrollEditEmployee/UNSTABLE_PayrollEditEmployee.js.map +0 -1
  243. package/dist/components/Payroll/UNSTABLE_PayrollEditEmployee/UNSTABLE_PayrollEditEmployee.module.scss.js.map +0 -1
  244. package/dist/i18n/en/Payroll.Transition.json.js +0 -8
  245. package/dist/i18n/en/Payroll.Transition.json.js.map +0 -1
  246. package/dist/i18n/en/Payroll.TransitionCreation.json.js +0 -26
  247. package/dist/i18n/en/Payroll.TransitionCreation.json.js.map +0 -1
  248. package/dist/i18n/en/Payroll.UNSTABLE_PayrollEditEmployee.json.js.map +0 -1
  249. package/dist/src/components/Payroll/PayrollFlow/TransitionFlowContextual.d.ts +0 -7
  250. package/dist/src/components/Payroll/Transition/TransitionFlow.d.ts +0 -55
  251. package/dist/src/components/Payroll/Transition/TransitionFlowComponents.d.ts +0 -52
  252. package/dist/src/components/Payroll/Transition/index.d.ts +0 -2
  253. package/dist/src/components/Payroll/Transition/transitionStateMachine.d.ts +0 -29
  254. package/dist/src/components/Payroll/TransitionCreation/TransitionCreation.d.ts +0 -22
  255. package/dist/src/components/Payroll/TransitionCreation/TransitionCreationPresentation.d.ts +0 -9
  256. package/dist/src/components/Payroll/TransitionCreation/TransitionCreationTypes.d.ts +0 -57
  257. package/dist/src/components/Payroll/TransitionCreation/index.d.ts +0 -2
  258. package/dist/src/components/Payroll/TransitionPayroll/TransitionPayroll.d.ts +0 -55
  259. package/dist/src/components/Payroll/TransitionPayroll/TransitionPayrollComponents.d.ts +0 -24
  260. package/dist/src/components/Payroll/TransitionPayroll/TransitionPayrollTypes.d.ts +0 -23
  261. package/dist/src/components/Payroll/TransitionPayroll/index.d.ts +0 -2
  262. package/dist/src/components/Payroll/TransitionPayroll/transitionPayrollStateMachine.d.ts +0 -15
  263. package/dist/src/components/Payroll/TransitionPayroll/useResolveTransitionPayroll.d.ts +0 -28
  264. /package/dist/src/components/{Payroll/Transition/transitionStateMachine.test.d.ts → Common/DataView/getSortControls.test.d.ts} +0 -0
@@ -1,36 +1,36 @@
1
1
  import { jsx as t, jsxs as m } from "react/jsx-runtime";
2
- import { useForm as ne, useFieldArray as Oe, useWatch as Re, FormProvider as te } from "react-hook-form";
3
- import { useRef as xe, useMemo as B, useState as Se } from "react";
2
+ import { useForm as ne, useFieldArray as Re, useWatch as xe, FormProvider as te } from "react-hook-form";
3
+ import { useRef as Se, useMemo as V, useState as Ie } from "react";
4
4
  import Fe from "classnames";
5
- import { PayrollEmployeeCompensationsTypePaymentMethod as P } from "@gusto/embedded-api/models/components/payrollemployeecompensationstype";
6
- import { useTranslation as Ie } from "react-i18next";
5
+ import { PayrollEmployeeCompensationsTypePaymentMethod as v } from "@gusto/embedded-api/models/components/payrollemployeecompensationstype";
6
+ import { useTranslation as _e } from "react-i18next";
7
7
  import { z as s } from "zod";
8
8
  import { zodResolver as ie } from "@hookform/resolvers/zod";
9
9
  import c from "./PayrollEditEmployeePresentation.module.scss.js";
10
- import { TimeOffField as _e, PayoutTimeOffField as De } from "./TimeOffField.js";
10
+ import { TimeOffField as De, PayoutTimeOffField as Le } from "./TimeOffField.js";
11
11
  import { Flex as E } from "../../Common/Flex/Flex.js";
12
- import { Grid as x } from "../../Common/Grid/Grid.js";
13
- import { EmptyData as Le } from "../../Common/EmptyData/EmptyData.js";
14
- import { useComponentContext as Ue } from "../../../contexts/ComponentAdapter/useComponentContext.js";
12
+ import { Grid as I } from "../../Common/Grid/Grid.js";
13
+ import { EmptyData as Ue } from "../../Common/EmptyData/EmptyData.js";
14
+ import { useComponentContext as je } from "../../../contexts/ComponentAdapter/useComponentContext.js";
15
15
  import { useI18n as ke } from "../../../i18n/I18n.js";
16
- import { Form as je } from "../../Common/Form/Form.js";
17
- import { formatNumberAsCurrency as re, firstLastName as He, stripLeadingZeros as k } from "../../../helpers/formattedStrings.js";
18
- import { getAdditionalEarningsCompensations as Ge, calculateGrossPay as se } from "../helpers.js";
19
- import { PayrollCategory as I, isOffCyclePayroll as ue } from "../payrollTypes.js";
20
- import { COMPENSATION_NAME_REIMBURSEMENT as S, HOURS_COMPENSATION_NAMES as ae, EXCLUDED_ADDITIONAL_EARNINGS as we, COMPENSATION_NAME_DOUBLE_OVERTIME as $e, COMPENSATION_NAME_OVERTIME as Be, COMPENSATION_NAME_REGULAR_HOURS as Ve, COMPENSATION_NAME_CASH_TIPS as ze, COMPENSATION_NAME_COMMISSION as We, COMPENSATION_NAME_CORRECTION_PAYMENT as Xe, COMPENSATION_NAME_PAYCHECK_TIPS as qe, COMPENSATION_NAME_BONUS as Ye } from "../../../shared/constants.js";
21
- import Ke from "../../../hooks/useContainerBreakpoints/useContainerBreakpoints.js";
16
+ import { Form as He } from "../../Common/Form/Form.js";
17
+ import { formatNumberAsCurrency as re, firstLastName as Ge, stripLeadingZeros as j } from "../../../helpers/formattedStrings.js";
18
+ import { getAdditionalEarningsCompensations as we, calculateGrossPay as se } from "../helpers.js";
19
+ import { PayrollCategory as S, isOffCyclePayroll as le } from "../payrollTypes.js";
20
+ import { COMPENSATION_NAME_REIMBURSEMENT as x, HOURS_COMPENSATION_NAMES as ae, EXCLUDED_ADDITIONAL_EARNINGS as $e, COMPENSATION_NAME_DOUBLE_OVERTIME as Ve, COMPENSATION_NAME_OVERTIME as Be, COMPENSATION_NAME_REGULAR_HOURS as qe, COMPENSATION_NAME_CASH_TIPS as ze, COMPENSATION_NAME_COMMISSION as We, COMPENSATION_NAME_CORRECTION_PAYMENT as Xe, COMPENSATION_NAME_PAYCHECK_TIPS as Ye, COMPENSATION_NAME_BONUS as Ke } from "../../../shared/constants.js";
21
+ import Ze from "../../../hooks/useContainerBreakpoints/useContainerBreakpoints.js";
22
22
  import oe from "../../../assets/icons/plus-circle.svg.js";
23
- import Ze from "../../../assets/icons/trashcan.svg.js";
23
+ import Qe from "../../../assets/icons/trashcan.svg.js";
24
24
  import { TextInputField as F } from "../../Common/Fields/TextInputField/TextInputField.js";
25
- import { RadioGroupField as Qe } from "../../Common/Fields/RadioGroupField/RadioGroupField.js";
26
- import { useDataView as Je } from "../../Common/DataView/useDataView.js";
27
- import { DataView as en } from "../../Common/DataView/DataView.js";
25
+ import { RadioGroupField as Je } from "../../Common/Fields/RadioGroupField/RadioGroupField.js";
26
+ import { useDataView as en } from "../../Common/DataView/useDataView.js";
27
+ import { DataView as me } from "../../Common/DataView/DataView.js";
28
28
  const nn = s.object({
29
29
  uuid: s.string().nullable().optional(),
30
30
  description: s.string(),
31
31
  amount: s.string(),
32
32
  recurring: s.boolean().optional()
33
- }), le = 1e6, tn = s.object({
33
+ }), de = 1e6, tn = s.object({
34
34
  description: s.string(),
35
35
  amount: s.string().refine(
36
36
  (a) => {
@@ -38,22 +38,22 @@ const nn = s.object({
38
38
  return !Number.isNaN(C) && C > 0;
39
39
  },
40
40
  { message: "validations.reimbursementAmount" }
41
- ).refine((a) => parseFloat(a) <= le, {
41
+ ).refine((a) => parseFloat(a) <= de, {
42
42
  message: "validations.maxReimbursementAmount"
43
43
  })
44
- }), rn = s.string().optional().refine((a) => !a || parseFloat(a) >= 0, { message: "validations.negativeAmount" }), de = 99999, sn = s.string().optional().refine((a) => !a || parseFloat(a) <= de, { message: "validations.maxHours" }), an = s.object({
44
+ }), rn = s.string().optional().refine((a) => !a || parseFloat(a) >= 0, { message: "validations.negativeAmount" }), ce = 99999, sn = s.string().optional().refine((a) => !a || parseFloat(a) <= ce, { message: "validations.maxHours" }), an = s.object({
45
45
  hourlyCompensations: s.record(s.string(), s.record(s.string(), sn)),
46
46
  timeOffCompensations: s.record(s.string(), s.string().optional()),
47
47
  finalPayoutCompensations: s.record(s.string(), s.string().optional()),
48
48
  fixedCompensations: s.record(s.string(), rn),
49
49
  reimbursements: s.array(nn),
50
- paymentMethod: s.enum(P).optional()
51
- }), me = (a, C, j, p, o = I.Regular) => {
52
- const y = {
50
+ paymentMethod: s.enum(v).optional()
51
+ }), ue = (a, C, k, p, o = S.Regular) => {
52
+ const N = {
53
53
  ...C,
54
54
  paymentMethod: a.paymentMethod
55
55
  };
56
- y.hourlyCompensations = C?.hourlyCompensations?.map(
56
+ N.hourlyCompensations = C?.hourlyCompensations?.map(
57
57
  (r) => {
58
58
  const u = r.jobUuid && r.name ? a.hourlyCompensations[r.jobUuid]?.[r.name] : void 0;
59
59
  return u ? {
@@ -61,8 +61,8 @@ const nn = s.object({
61
61
  hours: u
62
62
  } : r;
63
63
  }
64
- ), y.paidTimeOff = j.map((r) => {
65
- const u = o === I.Dismissal, { finalPayoutUnusedHoursInput: v, ...h } = r;
64
+ ), N.paidTimeOff = k.map((r) => {
65
+ const u = o === S.Dismissal, { finalPayoutUnusedHoursInput: O, ...h } = r;
66
66
  if (u) {
67
67
  const l = a.finalPayoutCompensations[r.name] ?? r.finalPayoutUnusedHoursInput;
68
68
  return {
@@ -76,9 +76,9 @@ const nn = s.object({
76
76
  hours: a.timeOffCompensations[r.name] || "0"
77
77
  };
78
78
  });
79
- const _ = !ue(o), M = [];
79
+ const _ = !le(o), M = [];
80
80
  return Object.entries(a.fixedCompensations).forEach(([r, u]) => {
81
- if (r.toLowerCase() === S.toLowerCase() && _)
81
+ if (r.toLowerCase() === x.toLowerCase() && _)
82
82
  return;
83
83
  const h = C?.fixedCompensations?.find(
84
84
  (H) => H.name?.toLowerCase() === r.toLowerCase()
@@ -92,69 +92,69 @@ const nn = s.object({
92
92
  jobUuid: p,
93
93
  amount: l
94
94
  }));
95
- }), y.fixedCompensations = M, _ ? y.reimbursements = a.reimbursements.map((r) => ({
95
+ }), N.fixedCompensations = M, _ ? N.reimbursements = a.reimbursements.map((r) => ({
96
96
  amount: r.amount,
97
97
  description: r.description.trim() === "" ? null : r.description.trim(),
98
98
  uuid: r.uuid ?? null,
99
99
  recurring: r.recurring
100
- })) : y.reimbursements = [], y;
100
+ })) : N.reimbursements = [], N;
101
101
  }, Ln = ({
102
102
  className: a,
103
103
  onSave: C,
104
- onCancel: j,
104
+ onCancel: k,
105
105
  employee: p,
106
106
  employeeCompensation: o,
107
- isPending: y = !1,
107
+ isPending: N = !1,
108
108
  fixedCompensationTypes: _,
109
109
  payPeriodStartDate: M,
110
110
  paySchedule: r,
111
- payrollCategory: u = I.Regular,
112
- withReimbursements: v = !0,
111
+ payrollCategory: u = S.Regular,
112
+ withReimbursements: O = !0,
113
113
  hasDirectDepositSetup: h = !0
114
114
  }) => {
115
- const { Button: l, ButtonIcon: H, Heading: f, Text: V } = Ue(), { t: n } = Ie("Payroll.PayrollEditEmployee");
115
+ const { Button: l, ButtonIcon: H, Heading: f, Text: B } = je(), { t: n } = _e("Payroll.PayrollEditEmployee");
116
116
  ke("Payroll.PayrollEditEmployee");
117
- const b = p.jobs?.find((e) => e.primary), ce = o?.hourlyCompensations?.some(
117
+ const b = p.jobs?.find((e) => e.primary), pe = o?.hourlyCompensations?.some(
118
118
  (e) => e.jobUuid === b?.uuid
119
- ), O = b && ce ? [b] : [], z = xe(null), g = Ke({
120
- ref: z
119
+ ), P = b && pe ? [b] : [], q = Se(null), g = Ze({
120
+ ref: q
121
121
  }).includes("small");
122
122
  o?.hourlyCompensations?.forEach((e) => {
123
123
  const i = p.jobs?.find((d) => d.uuid === e.jobUuid);
124
- i && !O.find((d) => d.uuid === i.uuid) && O.push(i);
124
+ i && !P.find((d) => d.uuid === i.uuid) && P.push(i);
125
125
  });
126
- const T = (o?.paidTimeOff || []).filter((e) => e.name), G = Ge({
126
+ const T = (o?.paidTimeOff || []).filter((e) => e.name), G = we({
127
127
  flsaStatus: b?.compensations?.[0]?.flsaStatus,
128
128
  existingFixedCompensations: o?.fixedCompensations || [],
129
129
  primaryJobUuid: b?.uuid,
130
130
  fixedCompensationTypes: _,
131
- excludedTypes: we
132
- }), D = !ue(u), pe = B(
133
- () => v && D ? o?.reimbursements ?? [] : [],
134
- [v, D, o?.reimbursements]
135
- ), fe = B(
131
+ excludedTypes: $e
132
+ }), D = !le(u), fe = V(
133
+ () => O && D ? o?.reimbursements ?? [] : [],
134
+ [O, D, o?.reimbursements]
135
+ ), he = V(
136
136
  () => o?.fixedCompensations?.find(
137
- (e) => e.name?.toLowerCase() === S.toLowerCase()
137
+ (e) => e.name?.toLowerCase() === x.toLowerCase()
138
138
  ),
139
139
  [o?.fixedCompensations]
140
- ), W = v && !D && !!b?.uuid, X = (e, i) => o?.hourlyCompensations?.find(
140
+ ), z = O && !D && !!b?.uuid, W = (e, i) => o?.hourlyCompensations?.find(
141
141
  (d) => d.jobUuid === e && d.name?.toLowerCase() === i.toLowerCase()
142
- ), he = (e) => {
142
+ ), be = (e) => {
143
143
  switch (e) {
144
- case Ve:
144
+ case qe:
145
145
  return n("compensationNames.regularHours");
146
146
  case Be:
147
147
  return n("compensationNames.overtime");
148
- case $e:
148
+ case Ve:
149
149
  return n("compensationNames.doubleOvertime");
150
150
  default:
151
151
  return e;
152
152
  }
153
- }, q = (e) => {
153
+ }, X = (e) => {
154
154
  switch (e) {
155
- case Ye:
155
+ case Ke:
156
156
  return n("fixedCompensationNames.bonus");
157
- case qe:
157
+ case Ye:
158
158
  return n("fixedCompensationNames.paycheckTips");
159
159
  case Xe:
160
160
  return n("fixedCompensationNames.correctionPayment");
@@ -162,20 +162,20 @@ const nn = s.object({
162
162
  return n("fixedCompensationNames.commission");
163
163
  case ze:
164
164
  return n("fixedCompensationNames.cashTips");
165
- case S:
165
+ case x:
166
166
  return n("fixedCompensationNames.reimbursement");
167
167
  default:
168
168
  return e;
169
169
  }
170
- }, be = () => {
170
+ }, ge = () => {
171
171
  const e = o?.paymentMethod;
172
- return e ? !h && e === P.DirectDeposit ? P.Check : e : h ? P.DirectDeposit : P.Check;
173
- }, ge = {
172
+ return e ? !h && e === v.DirectDeposit ? v.Check : e : h ? v.DirectDeposit : v.Check;
173
+ }, Ce = {
174
174
  hourlyCompensations: (() => {
175
175
  const e = {};
176
- return O.forEach((i) => {
176
+ return P.forEach((i) => {
177
177
  ae.forEach((d) => {
178
- const R = X(i.uuid, d);
178
+ const R = W(i.uuid, d);
179
179
  R && (e[i.uuid] || (e[i.uuid] = {}), e[i.uuid][R.name] = R.hours ? parseFloat(R.hours).toString() : "");
180
180
  });
181
181
  }), e;
@@ -196,43 +196,43 @@ const nn = s.object({
196
196
  const e = {};
197
197
  return G.forEach((i) => {
198
198
  e[i.name] = i.amount ?? "";
199
- }), W && (e[S] = fe?.amount ?? "0.00"), e;
199
+ }), z && (e[x] = he?.amount ?? "0.00"), e;
200
200
  })(),
201
- reimbursements: pe.map((e) => ({
201
+ reimbursements: fe.map((e) => ({
202
202
  uuid: e.uuid ?? null,
203
203
  description: e.description ?? "",
204
204
  amount: e.amount,
205
205
  recurring: e.recurring ?? !1
206
206
  })),
207
- paymentMethod: be()
207
+ paymentMethod: ge()
208
208
  }, L = ne({
209
209
  resolver: ie(an),
210
- defaultValues: ge
210
+ defaultValues: Ce
211
211
  }), {
212
212
  fields: Y,
213
- append: Ce,
213
+ append: Ne,
214
214
  remove: ye,
215
- update: Ne
216
- } = Oe({
215
+ update: Ae
216
+ } = Re({
217
217
  control: L.control,
218
218
  name: "reimbursements"
219
- }), Ae = (e) => {
219
+ }), Ee = (e) => {
220
220
  const i = Y[e];
221
- i && (i.uuid ? Ne(e, { ...i, amount: "0" }) : ye(e));
222
- }, w = Y.map((e, i) => ({ ...e, originalIndex: i })).filter((e) => parseFloat(e.amount || "0") !== 0), [K, $] = Se(!1), U = ne({
221
+ i && (i.uuid ? Ae(e, { ...i, amount: "0" }) : ye(e));
222
+ }, w = Y.map((e, i) => ({ ...e, originalIndex: i })).filter((e) => parseFloat(e.amount || "0") !== 0), [K, $] = Ie(!1), U = ne({
223
223
  resolver: ie(tn),
224
224
  defaultValues: { description: "", amount: "" }
225
225
  }), Z = () => {
226
226
  $(!1), U.reset();
227
- }, Ee = (e) => {
227
+ }, Me = (e) => {
228
228
  const i = parseFloat(e.amount);
229
- Ce({
229
+ Ne({
230
230
  uuid: null,
231
231
  description: e.description.trim(),
232
232
  amount: i.toFixed(2),
233
233
  recurring: !1
234
234
  }), Z();
235
- }, Me = Je({
235
+ }, Te = en({
236
236
  data: w,
237
237
  columns: [
238
238
  {
@@ -260,14 +260,14 @@ const nn = s.object({
260
260
  {
261
261
  variant: "tertiary",
262
262
  onClick: () => {
263
- Ae(e.originalIndex);
263
+ Ee(e.originalIndex);
264
264
  },
265
265
  "aria-label": n("removeReimbursementLabel", { description: i }),
266
- children: /* @__PURE__ */ t(Ze, { "aria-hidden": !0 })
266
+ children: /* @__PURE__ */ t(Qe, { "aria-hidden": !0 })
267
267
  }
268
268
  );
269
269
  },
270
- emptyState: () => /* @__PURE__ */ t(Le, { title: n("reimbursementEmptyTitle"), children: /* @__PURE__ */ t(
270
+ emptyState: () => /* @__PURE__ */ t(Ue, { title: n("reimbursementEmptyTitle"), children: /* @__PURE__ */ t(
271
271
  l,
272
272
  {
273
273
  variant: "secondary",
@@ -278,27 +278,27 @@ const nn = s.object({
278
278
  children: n("addReimbursementCta")
279
279
  }
280
280
  ) })
281
- }), N = Re({
281
+ }), y = xe({
282
282
  control: L.control
283
- }), Te = B(() => {
283
+ }), ve = V(() => {
284
284
  try {
285
285
  const e = {};
286
- N.hourlyCompensations && Object.entries(N.hourlyCompensations).forEach(([A, ee]) => {
286
+ y.hourlyCompensations && Object.entries(y.hourlyCompensations).forEach(([A, ee]) => {
287
287
  ee && (e[A] = ee);
288
288
  });
289
- const i = (N.reimbursements ?? []).map((A) => ({
289
+ const i = (y.reimbursements ?? []).map((A) => ({
290
290
  uuid: A.uuid ?? null,
291
291
  description: A.description ?? "",
292
292
  amount: A.amount ?? "0",
293
293
  recurring: A.recurring
294
294
  })), d = {
295
295
  hourlyCompensations: e,
296
- timeOffCompensations: N.timeOffCompensations || {},
297
- finalPayoutCompensations: N.finalPayoutCompensations || {},
298
- fixedCompensations: N.fixedCompensations || {},
296
+ timeOffCompensations: y.timeOffCompensations || {},
297
+ finalPayoutCompensations: y.finalPayoutCompensations || {},
298
+ fixedCompensations: y.fixedCompensations || {},
299
299
  reimbursements: i,
300
- paymentMethod: N.paymentMethod
301
- }, R = me(
300
+ paymentMethod: y.paymentMethod
301
+ }, R = ue(
302
302
  d,
303
303
  o,
304
304
  (o?.paidTimeOff || []).filter((A) => A.name),
@@ -322,18 +322,18 @@ const nn = s.object({
322
322
  ) : 0;
323
323
  }
324
324
  }, [
325
- N,
325
+ y,
326
326
  o,
327
327
  b?.uuid,
328
328
  p,
329
329
  M,
330
330
  r,
331
331
  u
332
- ]), Pe = He({
332
+ ]), Oe = Ge({
333
333
  first_name: p.firstName,
334
334
  last_name: p.lastName
335
- }), ve = (e) => {
336
- const i = me(
335
+ }), Pe = (e) => {
336
+ const i = ue(
337
337
  e,
338
338
  o,
339
339
  T,
@@ -341,7 +341,7 @@ const nn = s.object({
341
341
  u
342
342
  );
343
343
  C(i);
344
- }, Q = re(Te || 0), J = /* @__PURE__ */ m(
344
+ }, Q = re(ve || 0), J = /* @__PURE__ */ m(
345
345
  E,
346
346
  {
347
347
  flexDirection: g ? "row" : "column",
@@ -349,30 +349,30 @@ const nn = s.object({
349
349
  alignItems: g ? "flex-start" : "stretch",
350
350
  gap: 12,
351
351
  children: [
352
- /* @__PURE__ */ t(l, { variant: "secondary", onClick: j, title: n("cancelCta"), children: n("cancelCta") }),
352
+ /* @__PURE__ */ t(l, { variant: "secondary", onClick: k, title: n("cancelCta"), children: n("cancelCta") }),
353
353
  /* @__PURE__ */ t(
354
354
  l,
355
355
  {
356
- onClick: L.handleSubmit(ve),
356
+ onClick: L.handleSubmit(Pe),
357
357
  title: n("saveCta"),
358
- isLoading: y,
358
+ isLoading: N,
359
359
  children: n("saveCta")
360
360
  }
361
361
  )
362
362
  ]
363
363
  }
364
364
  );
365
- return /* @__PURE__ */ m("div", { ref: z, className: Fe(c.container, a), children: [
365
+ return /* @__PURE__ */ m("div", { ref: q, className: Fe(c.container, a), children: [
366
366
  /* @__PURE__ */ t(
367
367
  "div",
368
368
  {
369
369
  className: `${c.headerSection} ${g ? "" : c.headerSectionSticky}`,
370
370
  children: /* @__PURE__ */ m(E, { justifyContent: "space-between", children: [
371
371
  /* @__PURE__ */ m(E, { flexDirection: "column", alignItems: "stretch", gap: g ? 8 : 2, children: [
372
- /* @__PURE__ */ t(f, { as: "h1", styledAs: g ? "h2" : "h4", children: n("pageTitle", { employeeName: Pe }) }),
372
+ /* @__PURE__ */ t(f, { as: "h1", styledAs: g ? "h2" : "h4", children: n("pageTitle", { employeeName: Oe }) }),
373
373
  g ? /* @__PURE__ */ m(E, { flexDirection: "column", gap: 6, children: [
374
374
  /* @__PURE__ */ t(f, { as: "h2", styledAs: "h3", children: Q }),
375
- /* @__PURE__ */ t(V, { className: c.grossPayLabel, children: n("grossPayLabel") })
375
+ /* @__PURE__ */ t(B, { className: c.grossPayLabel, children: n("grossPayLabel") })
376
376
  ] }) : /* @__PURE__ */ t(f, { as: "h2", styledAs: "h6", className: c.grossPayLabel, children: n("grossPayLabelMobile", { grossPay: Q }) })
377
377
  ] }),
378
378
  g && J
@@ -380,13 +380,13 @@ const nn = s.object({
380
380
  }
381
381
  ),
382
382
  /* @__PURE__ */ m(te, { ...L, children: [
383
- /* @__PURE__ */ m(je, { children: [
384
- O.length > 0 && /* @__PURE__ */ m("div", { className: c.fieldGroup, children: [
383
+ /* @__PURE__ */ m(He, { children: [
384
+ P.length > 0 && /* @__PURE__ */ m("div", { className: c.fieldGroup, children: [
385
385
  /* @__PURE__ */ t(f, { as: "h3", children: n("regularHoursTitle") }),
386
- O.map((e) => /* @__PURE__ */ m(E, { flexDirection: "column", gap: 8, children: [
387
- O.length > 1 && /* @__PURE__ */ t(f, { as: "h4", children: e.title }),
388
- /* @__PURE__ */ t(x, { gridTemplateColumns: { base: "1fr", small: [320, 320] }, gap: 20, children: ae.map((i) => {
389
- const d = X(
386
+ P.map((e) => /* @__PURE__ */ m(E, { flexDirection: "column", gap: 8, children: [
387
+ P.length > 1 && /* @__PURE__ */ t(f, { as: "h4", children: e.title }),
388
+ /* @__PURE__ */ t(I, { gridTemplateColumns: { base: "1fr", small: [320, 320] }, gap: 20, children: ae.map((i) => {
389
+ const d = W(
390
390
  e.uuid,
391
391
  i
392
392
  );
@@ -396,10 +396,10 @@ const nn = s.object({
396
396
  {
397
397
  type: "number",
398
398
  min: 0,
399
- max: de,
400
- transform: k,
399
+ max: ce,
400
+ transform: j,
401
401
  adornmentEnd: n("hoursUnit"),
402
- label: he(i),
402
+ label: be(i),
403
403
  name: `hourlyCompensations.${e.uuid}.${d.name}`,
404
404
  errorMessage: n("validations.maxHours")
405
405
  },
@@ -409,23 +409,35 @@ const nn = s.object({
409
409
  ] }, e.uuid))
410
410
  ] }),
411
411
  T.length > 0 && /* @__PURE__ */ m("div", { className: c.fieldGroup, children: [
412
- /* @__PURE__ */ t(f, { as: "h3", styledAs: "h4", children: u === I.Dismissal ? n("timeOffTitleDismissal") : n("timeOffTitle") }),
413
- /* @__PURE__ */ t(x, { gridTemplateColumns: { base: "1fr", small: [320, 320] }, gap: 20, children: T.map((e) => /* @__PURE__ */ t(
414
- _e,
412
+ /* @__PURE__ */ t(f, { as: "h3", styledAs: "h4", children: u === S.Dismissal ? n("timeOffTitleDismissal") : n("timeOffTitle") }),
413
+ /* @__PURE__ */ t(
414
+ me,
415
415
  {
416
- timeOff: e,
417
- employee: p
418
- },
419
- e.name
420
- )) })
416
+ label: u === S.Dismissal ? n("timeOffTitleDismissal") : n("timeOffTitle"),
417
+ data: T,
418
+ columns: [
419
+ { title: n("timeOffTypeColumn"), render: (e) => e.name },
420
+ {
421
+ title: n("preapprovedHoursColumn"),
422
+ justify: "end",
423
+ render: (e) => Number(e.approvedRequestHours) > 0 ? Number(e.approvedRequestHours) : null
424
+ },
425
+ {
426
+ title: n("additionalHoursColumn"),
427
+ justify: "end",
428
+ render: (e) => /* @__PURE__ */ t("div", { className: c.timeOffInputContainer, children: /* @__PURE__ */ t(De, { timeOff: e, employee: p, shouldVisuallyHideLabel: !0 }) })
429
+ }
430
+ ]
431
+ }
432
+ )
421
433
  ] }),
422
- u === I.Dismissal && T.length > 0 && /* @__PURE__ */ m("div", { className: c.fieldGroup, children: [
434
+ u === S.Dismissal && T.length > 0 && /* @__PURE__ */ m("div", { className: c.fieldGroup, children: [
423
435
  /* @__PURE__ */ m(E, { flexDirection: "column", gap: 4, children: [
424
436
  /* @__PURE__ */ t(f, { as: "h3", styledAs: "h4", children: n("finalPayoutTitle") }),
425
- /* @__PURE__ */ t(V, { variant: "supporting", children: n("finalPayoutDescription") })
437
+ /* @__PURE__ */ t(B, { variant: "supporting", children: n("finalPayoutDescription") })
426
438
  ] }),
427
- /* @__PURE__ */ t(x, { gridTemplateColumns: { base: "1fr", small: [320, 320] }, gap: 20, children: T.map((e) => /* @__PURE__ */ t(
428
- De,
439
+ /* @__PURE__ */ t(I, { gridTemplateColumns: { base: "1fr", small: [320, 320] }, gap: 20, children: T.map((e) => /* @__PURE__ */ t(
440
+ Le,
429
441
  {
430
442
  timeOff: e,
431
443
  employee: p
@@ -436,7 +448,7 @@ const nn = s.object({
436
448
  G.length > 0 && /* @__PURE__ */ m("div", { className: c.fieldGroup, children: [
437
449
  /* @__PURE__ */ t(f, { as: "h3", styledAs: "h4", children: n("additionalEarningsTitle") }),
438
450
  /* @__PURE__ */ t(
439
- x,
451
+ I,
440
452
  {
441
453
  gridTemplateColumns: { base: "1fr", small: [320, 320], large: [320, 320, 320] },
442
454
  gap: 20,
@@ -445,9 +457,9 @@ const nn = s.object({
445
457
  {
446
458
  type: "number",
447
459
  min: 0,
448
- transform: k,
460
+ transform: j,
449
461
  adornmentStart: "$",
450
- label: q(e.name),
462
+ label: X(e.name),
451
463
  name: `fixedCompensations.${e.name}`,
452
464
  errorMessage: n("validations.negativeAmount")
453
465
  },
@@ -456,26 +468,26 @@ const nn = s.object({
456
468
  }
457
469
  )
458
470
  ] }),
459
- W && /* @__PURE__ */ m("div", { className: c.fieldGroup, children: [
471
+ z && /* @__PURE__ */ m("div", { className: c.fieldGroup, children: [
460
472
  /* @__PURE__ */ t(f, { as: "h3", styledAs: "h4", children: n("reimbursementTitle") }),
461
- /* @__PURE__ */ t(x, { gridTemplateColumns: { base: "1fr", small: [320, 320] }, gap: 20, children: /* @__PURE__ */ t(
473
+ /* @__PURE__ */ t(I, { gridTemplateColumns: { base: "1fr", small: [320, 320] }, gap: 20, children: /* @__PURE__ */ t(
462
474
  F,
463
475
  {
464
476
  type: "number",
465
477
  min: 0,
466
- transform: k,
478
+ transform: j,
467
479
  adornmentStart: "$",
468
- label: q(S),
469
- name: `fixedCompensations.${S}`,
480
+ label: X(x),
481
+ name: `fixedCompensations.${x}`,
470
482
  errorMessage: n("validations.negativeAmount")
471
483
  }
472
484
  ) })
473
485
  ] }),
474
- v && D && /* @__PURE__ */ m("div", { className: c.fieldGroup, children: [
486
+ O && D && /* @__PURE__ */ m("div", { className: c.fieldGroup, children: [
475
487
  /* @__PURE__ */ t(f, { as: "h3", styledAs: "h4", children: n("reimbursementTitle") }),
476
- !(w.length === 0 && K) && /* @__PURE__ */ t(en, { label: n("reimbursementsTableLabel"), ...Me }),
488
+ !(w.length === 0 && K) && /* @__PURE__ */ t(me, { label: n("reimbursementsTableLabel"), ...Te }),
477
489
  K ? /* @__PURE__ */ t(te, { ...U, children: /* @__PURE__ */ m(E, { flexDirection: "column", gap: 12, children: [
478
- /* @__PURE__ */ m(x, { gridTemplateColumns: { base: "1fr", small: [320, 320] }, gap: 20, children: [
490
+ /* @__PURE__ */ m(I, { gridTemplateColumns: { base: "1fr", small: [320, 320] }, gap: 20, children: [
479
491
  /* @__PURE__ */ t(
480
492
  F,
481
493
  {
@@ -490,8 +502,8 @@ const nn = s.object({
490
502
  name: "amount",
491
503
  type: "number",
492
504
  min: 0,
493
- max: le,
494
- transform: k,
505
+ max: de,
506
+ transform: j,
495
507
  adornmentStart: "$",
496
508
  isRequired: !0,
497
509
  label: n("reimbursementAmountLabel"),
@@ -500,7 +512,7 @@ const nn = s.object({
500
512
  )
501
513
  ] }),
502
514
  /* @__PURE__ */ m(E, { gap: 12, children: [
503
- /* @__PURE__ */ t(l, { onClick: U.handleSubmit(Ee), children: n("saveReimbursementCta") }),
515
+ /* @__PURE__ */ t(l, { onClick: U.handleSubmit(Me), children: n("saveReimbursementCta") }),
504
516
  /* @__PURE__ */ t(l, { variant: "secondary", onClick: Z, children: n("cancelReimbursementCta") })
505
517
  ] })
506
518
  ] }) }) : w.length > 0 && /* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(
@@ -519,7 +531,7 @@ const nn = s.object({
519
531
  h && /* @__PURE__ */ m("div", { className: c.fieldGroup, children: [
520
532
  /* @__PURE__ */ t(f, { as: "h3", styledAs: "h4", children: n("paymentMethodTitle") }),
521
533
  /* @__PURE__ */ t(
522
- Qe,
534
+ Je,
523
535
  {
524
536
  name: "paymentMethod",
525
537
  isRequired: !0,
@@ -527,11 +539,11 @@ const nn = s.object({
527
539
  description: n("paymentMethodDescription"),
528
540
  options: [
529
541
  {
530
- value: P.DirectDeposit,
542
+ value: v.DirectDeposit,
531
543
  label: n("paymentMethodOptions.directDeposit")
532
544
  },
533
545
  {
534
- value: P.Check,
546
+ value: v.Check,
535
547
  label: n("paymentMethodOptions.check")
536
548
  }
537
549
  ]