@gusto/embedded-react-sdk 0.55.7 → 0.56.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 (379) hide show
  1. package/CHANGELOG.md +63 -0
  2. package/dist/components/Common/FadeIn/FadeIn.module.scss.js +4 -4
  3. package/dist/components/Common/FieldCaption/FieldCaption.js +22 -18
  4. package/dist/components/Common/FieldCaption/FieldCaption.js.map +1 -1
  5. package/dist/components/Common/Flex/Flex.js +17 -15
  6. package/dist/components/Common/Flex/Flex.js.map +1 -1
  7. package/dist/components/Common/UI/Breadcrumbs/Breadcrumbs.js +1 -1
  8. package/dist/components/Common/UI/FileInput/FileInput.js +1 -1
  9. package/dist/components/Common/UI/Heading/Heading.module.scss.js +7 -7
  10. package/dist/components/Common/UI/Menu/MenuTypes.js.map +1 -1
  11. package/dist/components/Common/UI/MultiSelectComboBox/MultiSelectComboBox.js +43 -42
  12. package/dist/components/Common/UI/MultiSelectComboBox/MultiSelectComboBox.js.map +1 -1
  13. package/dist/components/Common/UI/ProgressBar/ProgressBar.js +4 -4
  14. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js +5 -3
  15. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js.map +1 -1
  16. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js +5 -3
  17. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js.map +1 -1
  18. package/dist/components/Company/AssignSignatory/useAssignSignatory.js +7 -5
  19. package/dist/components/Company/AssignSignatory/useAssignSignatory.js.map +1 -1
  20. package/dist/components/Company/BankAccount/BankAccountForm/context.js +5 -3
  21. package/dist/components/Company/BankAccount/BankAccountForm/context.js.map +1 -1
  22. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js +5 -3
  23. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  24. package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js +27 -27
  25. package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js.map +1 -1
  26. package/dist/components/Company/FederalTaxes/useFederalTaxes.js +10 -8
  27. package/dist/components/Company/FederalTaxes/useFederalTaxes.js.map +1 -1
  28. package/dist/components/Company/Industry/Context.js +8 -6
  29. package/dist/components/Company/Industry/Context.js.map +1 -1
  30. package/dist/components/Company/Locations/LocationForm/useLocationForm.js +5 -3
  31. package/dist/components/Company/Locations/LocationForm/useLocationForm.js.map +1 -1
  32. package/dist/components/Company/Locations/LocationsList/useLocationsList.js +5 -3
  33. package/dist/components/Company/Locations/LocationsList/useLocationsList.js.map +1 -1
  34. package/dist/components/Company/OnboardingOverview/context.js +5 -3
  35. package/dist/components/Company/OnboardingOverview/context.js.map +1 -1
  36. package/dist/components/Company/PaySchedule/PaySchedule.js +45 -30
  37. package/dist/components/Company/PaySchedule/PaySchedule.js.map +1 -1
  38. package/dist/components/Company/PaySchedule/PayScheduleComponents.js +12 -11
  39. package/dist/components/Company/PaySchedule/PayScheduleComponents.js.map +1 -1
  40. package/dist/components/Company/PaySchedule/PayScheduleForm.js +72 -55
  41. package/dist/components/Company/PaySchedule/PayScheduleForm.js.map +1 -1
  42. package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/fields.js +24 -20
  43. package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/fields.js.map +1 -1
  44. package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/payScheduleSchema.js +33 -29
  45. package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/payScheduleSchema.js.map +1 -1
  46. package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/usePayScheduleForm.js +131 -115
  47. package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/usePayScheduleForm.js.map +1 -1
  48. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js +5 -3
  49. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js.map +1 -1
  50. package/dist/components/Company/StateTaxes/StateTaxesList/context.js +5 -3
  51. package/dist/components/Company/StateTaxes/StateTaxesList/context.js.map +1 -1
  52. package/dist/components/Company/StateTaxes/TaxRateManagement/context.js +5 -3
  53. package/dist/components/Company/StateTaxes/TaxRateManagement/context.js.map +1 -1
  54. package/dist/components/Contractor/ContractorList/management/ManagementContractorList.js +31 -29
  55. package/dist/components/Contractor/ContractorList/management/ManagementContractorList.js.map +1 -1
  56. package/dist/components/Contractor/ContractorList/management/ManagementContractorListView.js +110 -109
  57. package/dist/components/Contractor/ContractorList/management/ManagementContractorListView.js.map +1 -1
  58. package/dist/components/Contractor/ContractorList/onboarding/ContractorList.js +21 -19
  59. package/dist/components/Contractor/ContractorList/onboarding/ContractorList.js.map +1 -1
  60. package/dist/components/Contractor/ContractorList/onboarding/ContractorListView.js +56 -55
  61. package/dist/components/Contractor/ContractorList/onboarding/ContractorListView.js.map +1 -1
  62. package/dist/components/Contractor/Dashboard/Dashboard.js +34 -33
  63. package/dist/components/Contractor/Dashboard/Dashboard.js.map +1 -1
  64. package/dist/components/Contractor/Payments/CreateHistoricalPayment/CreateHistoricalPayment.js +117 -115
  65. package/dist/components/Contractor/Payments/CreateHistoricalPayment/CreateHistoricalPayment.js.map +1 -1
  66. package/dist/components/Contractor/Payments/CreatePayment/CreatePayment.js +77 -75
  67. package/dist/components/Contractor/Payments/CreatePayment/CreatePayment.js.map +1 -1
  68. package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.js +44 -43
  69. package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.js.map +1 -1
  70. package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.js +40 -39
  71. package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.js.map +1 -1
  72. package/dist/components/Contractor/Payments/HistoricalPaymentSummary/HistoricalPaymentSummary.js +35 -29
  73. package/dist/components/Contractor/Payments/HistoricalPaymentSummary/HistoricalPaymentSummary.js.map +1 -1
  74. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistory.js +21 -20
  75. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistory.js.map +1 -1
  76. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.js +41 -40
  77. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.js.map +1 -1
  78. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatement.js +21 -20
  79. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatement.js.map +1 -1
  80. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.js +33 -32
  81. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.js.map +1 -1
  82. package/dist/components/Contractor/Payments/PaymentsList/PaymentsList.js +80 -78
  83. package/dist/components/Contractor/Payments/PaymentsList/PaymentsList.js.map +1 -1
  84. package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.js +44 -43
  85. package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.js.map +1 -1
  86. package/dist/components/Contractor/Submit/Submit.js +113 -105
  87. package/dist/components/Contractor/Submit/Submit.js.map +1 -1
  88. package/dist/components/Contractor/Submit/SubmitDone.js +11 -11
  89. package/dist/components/Contractor/Submit/SubmitDone.js.map +1 -1
  90. package/dist/components/Employee/Compensation/management/CompensationAddJobForm/CompensationAddJobForm.js +20 -18
  91. package/dist/components/Employee/Compensation/management/CompensationAddJobForm/CompensationAddJobForm.js.map +1 -1
  92. package/dist/components/Employee/Compensation/management/CompensationEditForm/CompensationEditForm.js +18 -15
  93. package/dist/components/Employee/Compensation/management/CompensationEditForm/CompensationEditForm.js.map +1 -1
  94. package/dist/components/Employee/Dashboard/Dashboard.js +33 -32
  95. package/dist/components/Employee/Dashboard/Dashboard.js.map +1 -1
  96. package/dist/components/Employee/Deductions/management/DeductionsEditForm/DeductionsEditForm.js +21 -19
  97. package/dist/components/Employee/Deductions/management/DeductionsEditForm/DeductionsEditForm.js.map +1 -1
  98. package/dist/components/Employee/Documents/management/DocumentManager.js +34 -26
  99. package/dist/components/Employee/Documents/management/DocumentManager.js.map +1 -1
  100. package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/useDocumentList.js +5 -3
  101. package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  102. package/dist/components/Employee/Documents/onboarding/DocumentSigner/EmploymentEligibility/EmploymentEligibility.js +30 -29
  103. package/dist/components/Employee/Documents/onboarding/DocumentSigner/EmploymentEligibility/EmploymentEligibility.js.map +1 -1
  104. package/dist/components/Employee/Documents/onboarding/DocumentSigner/EmploymentEligibility/EmploymentEligibilityPresentation.js +54 -53
  105. package/dist/components/Employee/Documents/onboarding/DocumentSigner/EmploymentEligibility/EmploymentEligibilityPresentation.js.map +1 -1
  106. package/dist/components/Employee/Documents/onboarding/EmployeeDocuments/EmployeeDocuments.js +29 -28
  107. package/dist/components/Employee/Documents/onboarding/EmployeeDocuments/EmployeeDocuments.js.map +1 -1
  108. package/dist/components/Employee/Documents/onboarding/EmployeeDocuments/EmployeeDocumentsPresentation.js +16 -15
  109. package/dist/components/Employee/Documents/onboarding/EmployeeDocuments/EmployeeDocumentsPresentation.js.map +1 -1
  110. package/dist/components/Employee/EmployeeList/management/ManagementEmployeeList.js +27 -25
  111. package/dist/components/Employee/EmployeeList/management/ManagementEmployeeList.js.map +1 -1
  112. package/dist/components/Employee/EmployeeList/management/ManagementEmployeeListView.js +121 -111
  113. package/dist/components/Employee/EmployeeList/management/ManagementEmployeeListView.js.map +1 -1
  114. package/dist/components/Employee/EmployeeList/onboarding/EmployeeList.js +22 -20
  115. package/dist/components/Employee/EmployeeList/onboarding/EmployeeList.js.map +1 -1
  116. package/dist/components/Employee/EmployeeList/onboarding/EmployeeListView.js +24 -23
  117. package/dist/components/Employee/EmployeeList/onboarding/EmployeeListView.js.map +1 -1
  118. package/dist/components/Employee/EmployeeList/shared/useEmployeeList.js +52 -43
  119. package/dist/components/Employee/EmployeeList/shared/useEmployeeList.js.map +1 -1
  120. package/dist/components/Employee/EmployeeListFlow/employeeListStateMachine.js +29 -26
  121. package/dist/components/Employee/EmployeeListFlow/employeeListStateMachine.js.map +1 -1
  122. package/dist/components/Employee/FederalTaxes/shared/FederalTaxesView.js +1 -1
  123. package/dist/components/Employee/HomeAddress/management/HomeAddressEditForm.js +19 -17
  124. package/dist/components/Employee/HomeAddress/management/HomeAddressEditForm.js.map +1 -1
  125. package/dist/components/Employee/HomeAddress/management/HomeAddressView.js +79 -78
  126. package/dist/components/Employee/HomeAddress/management/HomeAddressView.js.map +1 -1
  127. package/dist/components/Employee/PaymentMethod/management/PaymentMethodBankForm.js +4 -4
  128. package/dist/components/Employee/PaymentMethod/onboarding/BankForm.js +4 -4
  129. package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployee.js +40 -39
  130. package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployee.js.map +1 -1
  131. package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployeePresentation.js +31 -30
  132. package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployeePresentation.js.map +1 -1
  133. package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummary.js +43 -41
  134. package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummary.js.map +1 -1
  135. package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummaryPresentation.js +20 -19
  136. package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummaryPresentation.js.map +1 -1
  137. package/dist/components/Employee/WorkAddress/management/WorkAddressEditForm.js +19 -17
  138. package/dist/components/Employee/WorkAddress/management/WorkAddressEditForm.js.map +1 -1
  139. package/dist/components/Employee/WorkAddress/management/WorkAddressView.js +49 -48
  140. package/dist/components/Employee/WorkAddress/management/WorkAddressView.js.map +1 -1
  141. package/dist/components/Flow/Flow.js +1 -1
  142. package/dist/components/InformationRequests/InformationRequestList/InformationRequestList.js +28 -28
  143. package/dist/components/InformationRequests/InformationRequestList/InformationRequestList.js.map +1 -1
  144. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetails.js +37 -36
  145. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetails.js.map +1 -1
  146. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsBanner/ConfirmWireDetailsBanner.js +36 -35
  147. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsBanner/ConfirmWireDetailsBanner.js.map +1 -1
  148. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelection.js +35 -28
  149. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelection.js.map +1 -1
  150. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelectionPresentation.js +23 -22
  151. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelectionPresentation.js.map +1 -1
  152. package/dist/components/Payroll/GrossUpModal/GrossUpModal.js +48 -45
  153. package/dist/components/Payroll/GrossUpModal/GrossUpModal.js.map +1 -1
  154. package/dist/components/Payroll/OffCycleCreation/OffCycleCreation.js +85 -77
  155. package/dist/components/Payroll/OffCycleCreation/OffCycleCreation.js.map +1 -1
  156. package/dist/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.js +63 -59
  157. package/dist/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.js.map +1 -1
  158. package/dist/components/Payroll/OffCycleDeductionsSetting/OffCycleDeductionsSetting.js +23 -21
  159. package/dist/components/Payroll/OffCycleDeductionsSetting/OffCycleDeductionsSetting.js.map +1 -1
  160. package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelection.js +26 -19
  161. package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelection.js.map +1 -1
  162. package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelectionPresentation.js +14 -12
  163. package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelectionPresentation.js.map +1 -1
  164. package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js +184 -162
  165. package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js.map +1 -1
  166. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js +67 -65
  167. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js.map +1 -1
  168. package/dist/components/Payroll/PayrollConfiguration/useCalculationPoll.js +48 -34
  169. package/dist/components/Payroll/PayrollConfiguration/useCalculationPoll.js.map +1 -1
  170. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.js +43 -41
  171. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.js.map +1 -1
  172. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js +225 -223
  173. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js.map +1 -1
  174. package/dist/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/fields.js +78 -75
  175. package/dist/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/fields.js.map +1 -1
  176. package/dist/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/payrollEditEmployeeHelpers.js +27 -27
  177. package/dist/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/payrollEditEmployeeHelpers.js.map +1 -1
  178. package/dist/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/payrollEditEmployeeSchema.js +19 -19
  179. package/dist/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/payrollEditEmployeeSchema.js.map +1 -1
  180. package/dist/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/usePayrollEditEmployeeForm.js +51 -48
  181. package/dist/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/usePayrollEditEmployeeForm.js.map +1 -1
  182. package/dist/components/Payroll/PayrollHistory/PayrollHistory.js +58 -48
  183. package/dist/components/Payroll/PayrollHistory/PayrollHistory.js.map +1 -1
  184. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js +58 -57
  185. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js.map +1 -1
  186. package/dist/components/Payroll/PayrollLanding/PayrollLandingFlowComponents.js +83 -69
  187. package/dist/components/Payroll/PayrollLanding/PayrollLandingFlowComponents.js.map +1 -1
  188. package/dist/components/Payroll/PayrollList/PayrollList.js +62 -60
  189. package/dist/components/Payroll/PayrollList/PayrollList.js.map +1 -1
  190. package/dist/components/Payroll/PayrollList/PayrollListPresentation.js +119 -117
  191. package/dist/components/Payroll/PayrollList/PayrollListPresentation.js.map +1 -1
  192. package/dist/components/Payroll/PayrollOverview/PayrollOverview.js +187 -171
  193. package/dist/components/Payroll/PayrollOverview/PayrollOverview.js.map +1 -1
  194. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js +120 -110
  195. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js.map +1 -1
  196. package/dist/components/Payroll/PayrollOverview/useSubmissionPoll.js +45 -34
  197. package/dist/components/Payroll/PayrollOverview/useSubmissionPoll.js.map +1 -1
  198. package/dist/components/Payroll/PayrollReceipts/PayrollReceipts.js +20 -14
  199. package/dist/components/Payroll/PayrollReceipts/PayrollReceipts.js.map +1 -1
  200. package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js +62 -61
  201. package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js.map +1 -1
  202. package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.module.scss.js +14 -14
  203. package/dist/components/Payroll/PrintChecks/PrintChecksBanner/PrintChecksBanner.js +24 -17
  204. package/dist/components/Payroll/PrintChecks/PrintChecksBanner/PrintChecksBanner.js.map +1 -1
  205. package/dist/components/Payroll/PrintChecks/PrintChecksFailure/PrintChecksFailure.js +22 -22
  206. package/dist/components/Payroll/PrintChecks/PrintChecksFailure/PrintChecksFailure.js.map +1 -1
  207. package/dist/components/Payroll/PrintChecks/PrintChecksForm/PrintChecksForm.js +88 -80
  208. package/dist/components/Payroll/PrintChecks/PrintChecksForm/PrintChecksForm.js.map +1 -1
  209. package/dist/components/Payroll/PrintChecks/PrintChecksForm/useGenerationPoll.js +52 -37
  210. package/dist/components/Payroll/PrintChecks/PrintChecksForm/useGenerationPoll.js.map +1 -1
  211. package/dist/components/Payroll/PrintChecks/PrintChecksSummary/PrintChecksSummary.js +26 -26
  212. package/dist/components/Payroll/PrintChecks/PrintChecksSummary/PrintChecksSummary.js.map +1 -1
  213. package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.js +32 -32
  214. package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.js.map +1 -1
  215. package/dist/components/Payroll/TransitionCreation/TransitionCreation.js +50 -48
  216. package/dist/components/Payroll/TransitionCreation/TransitionCreation.js.map +1 -1
  217. package/dist/components/Payroll/TransitionCreation/TransitionCreationPresentation.js +34 -33
  218. package/dist/components/Payroll/TransitionCreation/TransitionCreationPresentation.js.map +1 -1
  219. package/dist/components/Payroll/TransitionCreation/TransitionCreationTypes.js.map +1 -1
  220. package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlert.js +28 -24
  221. package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlert.js.map +1 -1
  222. package/dist/components/Payroll/UNSTABLE_PayrollEditEmployee/UNSTABLE_PayrollEditEmployee.js +255 -228
  223. package/dist/components/Payroll/UNSTABLE_PayrollEditEmployee/UNSTABLE_PayrollEditEmployee.js.map +1 -1
  224. package/dist/components/Payroll/UNSTABLE_PayrollEditEmployee/UNSTABLE_PayrollEditEmployee.module.scss.js +8 -4
  225. package/dist/components/Payroll/UNSTABLE_PayrollEditEmployee/UNSTABLE_PayrollEditEmployee.module.scss.js.map +1 -1
  226. package/dist/components/Payroll/usePreparedPayrollData.js +10 -8
  227. package/dist/components/Payroll/usePreparedPayrollData.js.map +1 -1
  228. package/dist/components/TimeOff/AddEmployeesHoliday/AddEmployeesHoliday.js +5 -5
  229. package/dist/components/TimeOff/AddEmployeesHoliday/AddEmployeesHoliday.js.map +1 -1
  230. package/dist/components/TimeOff/AddEmployeesToPolicy/AddEmployeesToPolicy.js +8 -7
  231. package/dist/components/TimeOff/AddEmployeesToPolicy/AddEmployeesToPolicy.js.map +1 -1
  232. package/dist/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetail.js +51 -50
  233. package/dist/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetail.js.map +1 -1
  234. package/dist/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetailPresentation.js +20 -18
  235. package/dist/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetailPresentation.js.map +1 -1
  236. package/dist/components/TimeOff/HolidaySelectionForm/HolidaySelectionForm.js +51 -49
  237. package/dist/components/TimeOff/HolidaySelectionForm/HolidaySelectionForm.js.map +1 -1
  238. package/dist/components/TimeOff/HolidaySelectionForm/HolidaySelectionFormPresentation.js +20 -20
  239. package/dist/components/TimeOff/HolidaySelectionForm/HolidaySelectionFormPresentation.js.map +1 -1
  240. package/dist/components/TimeOff/PolicyList/PolicyList.js +50 -49
  241. package/dist/components/TimeOff/PolicyList/PolicyList.js.map +1 -1
  242. package/dist/components/TimeOff/PolicyList/PolicyListPresentation.js +34 -33
  243. package/dist/components/TimeOff/PolicyList/PolicyListPresentation.js.map +1 -1
  244. package/dist/components/TimeOff/PolicySettings/PolicySettings.js +46 -45
  245. package/dist/components/TimeOff/PolicySettings/PolicySettings.js.map +1 -1
  246. package/dist/components/TimeOff/PolicySettings/PolicySettingsPresentation.js +152 -143
  247. package/dist/components/TimeOff/PolicySettings/PolicySettingsPresentation.js.map +1 -1
  248. package/dist/components/TimeOff/PolicyTypeSelector/PolicyTypeSelector.js +14 -13
  249. package/dist/components/TimeOff/PolicyTypeSelector/PolicyTypeSelector.js.map +1 -1
  250. package/dist/components/TimeOff/PolicyTypeSelector/PolicyTypeSelectorPresentation.js +44 -35
  251. package/dist/components/TimeOff/PolicyTypeSelector/PolicyTypeSelectorPresentation.js.map +1 -1
  252. package/dist/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.js +88 -71
  253. package/dist/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.js.map +1 -1
  254. package/dist/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormPresentation.js +164 -155
  255. package/dist/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormPresentation.js.map +1 -1
  256. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesHoliday.js +57 -55
  257. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesHoliday.js.map +1 -1
  258. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentation.js +25 -24
  259. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentation.js.map +1 -1
  260. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesTimeOff.js +94 -92
  261. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesTimeOff.js.map +1 -1
  262. package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetail.js +156 -155
  263. package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetail.js.map +1 -1
  264. package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetailPresentation.js +21 -19
  265. package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetailPresentation.js.map +1 -1
  266. package/dist/components/TimeOff/shared/PolicyDetailLayout/PolicyDetailLayout.js +28 -26
  267. package/dist/components/TimeOff/shared/PolicyDetailLayout/PolicyDetailLayout.js.map +1 -1
  268. package/dist/contexts/ApiProvider/ApiProvider.js +29 -28
  269. package/dist/contexts/ApiProvider/ApiProvider.js.map +1 -1
  270. package/dist/contexts/ApiProvider/apiVersionMismatchHook.js +15 -0
  271. package/dist/contexts/ApiProvider/apiVersionMismatchHook.js.map +1 -0
  272. package/dist/contexts/ComponentAdapter/useComponentContext.js.map +1 -1
  273. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js.map +1 -1
  274. package/dist/contexts/ThemeProvider/ThemeProvider.js +32 -26
  275. package/dist/contexts/ThemeProvider/ThemeProvider.js.map +1 -1
  276. package/dist/contexts/UnstableFeaturesProvider/useUnstableFeature.js.map +1 -1
  277. package/dist/hooks/usePollingTask/usePollingTask.js +53 -41
  278. package/dist/hooks/usePollingTask/usePollingTask.js.map +1 -1
  279. package/dist/i18n/en/Company.PaySchedule.json.js +22 -20
  280. package/dist/i18n/en/Company.PaySchedule.json.js.map +1 -1
  281. package/dist/i18n/en/Employee.ManagementEmployeeList.json.js +28 -24
  282. package/dist/i18n/en/Employee.ManagementEmployeeList.json.js.map +1 -1
  283. package/dist/i18n/en/Payroll.GrossUpModal.json.js +12 -10
  284. package/dist/i18n/en/Payroll.GrossUpModal.json.js.map +1 -1
  285. package/dist/i18n/en/Payroll.PayrollConfiguration.json.js +8 -8
  286. package/dist/i18n/en/Payroll.PayrollOverview.json.js +15 -15
  287. package/dist/i18n/en/Payroll.UNSTABLE_PayrollEditEmployee.json.js +62 -58
  288. package/dist/i18n/en/Payroll.UNSTABLE_PayrollEditEmployee.json.js.map +1 -1
  289. package/dist/package.json.js +1 -1
  290. package/dist/src/components/Common/FieldCaption/FieldCaption.d.ts +2 -16
  291. package/dist/src/components/Common/FieldCaption/FieldCaptionTypes.d.ts +22 -0
  292. package/dist/src/components/Common/FieldCaption/index.d.ts +1 -0
  293. package/dist/src/components/Common/Flex/Flex.d.ts +3 -1
  294. package/dist/src/components/Common/UI/ComboBox/ComboBoxTypes.d.ts +1 -1
  295. package/dist/src/components/Common/UI/DatePicker/DatePickerTypes.d.ts +2 -1
  296. package/dist/src/components/Common/UI/Menu/MenuTypes.d.ts +1 -1
  297. package/dist/src/components/Common/UI/MultiSelectComboBox/MultiSelectComboBox.d.ts +1 -1
  298. package/dist/src/components/Common/UI/MultiSelectComboBox/MultiSelectComboBoxTypes.d.ts +5 -0
  299. package/dist/src/components/Common/UI/Select/SelectTypes.d.ts +2 -1
  300. package/dist/src/components/Company/PaySchedule/PaySchedule.d.ts +10 -2
  301. package/dist/src/components/Company/PaySchedule/PayScheduleComponents.d.ts +1 -0
  302. package/dist/src/components/Company/PaySchedule/shared/usePayScheduleForm/fields.d.ts +9 -1
  303. package/dist/src/components/Company/PaySchedule/shared/usePayScheduleForm/index.d.ts +2 -2
  304. package/dist/src/components/Company/PaySchedule/shared/usePayScheduleForm/payScheduleSchema.d.ts +21 -5
  305. package/dist/src/components/Company/PaySchedule/shared/usePayScheduleForm/usePayScheduleForm.d.ts +21 -3
  306. package/dist/src/components/Contractor/ContractorList/management/ManagementContractorListView.d.ts +3 -1
  307. package/dist/src/components/Contractor/ContractorList/onboarding/ContractorListView.d.ts +3 -1
  308. package/dist/src/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.d.ts +3 -1
  309. package/dist/src/components/Contractor/Payments/CreatePayment/PreviewPresentation.d.ts +3 -1
  310. package/dist/src/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.d.ts +3 -1
  311. package/dist/src/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.d.ts +3 -1
  312. package/dist/src/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.d.ts +3 -1
  313. package/dist/src/components/Contractor/Submit/SubmitDone.d.ts +3 -1
  314. package/dist/src/components/Employee/Compensation/management/CompensationEditForm/CompensationEditForm.d.ts +1 -1
  315. package/dist/src/components/Employee/Documents/onboarding/DocumentSigner/EmploymentEligibility/EmploymentEligibilityPresentation.d.ts +3 -1
  316. package/dist/src/components/Employee/Documents/onboarding/EmployeeDocuments/EmployeeDocumentsPresentation.d.ts +3 -1
  317. package/dist/src/components/Employee/EmployeeList/management/ManagementEmployeeListView.d.ts +3 -1
  318. package/dist/src/components/Employee/EmployeeList/onboarding/EmployeeListView.d.ts +3 -1
  319. package/dist/src/components/Employee/EmployeeList/shared/useEmployeeList.d.ts +11 -2
  320. package/dist/src/components/Employee/EmployeeListFlow/employeeListStateMachine.test.d.ts +1 -0
  321. package/dist/src/components/Employee/HomeAddress/management/HomeAddressView.d.ts +3 -1
  322. package/dist/src/components/Employee/Terminations/TerminateEmployee/TerminateEmployeePresentation.d.ts +3 -1
  323. package/dist/src/components/Employee/Terminations/TerminationSummary/TerminationSummaryPresentation.d.ts +3 -1
  324. package/dist/src/components/Employee/WorkAddress/management/WorkAddressView.d.ts +3 -1
  325. package/dist/src/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelectionPresentation.d.ts +3 -1
  326. package/dist/src/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.d.ts +1 -1
  327. package/dist/src/components/Payroll/OffCycleCreation/OffCycleCreationTypes.d.ts +8 -0
  328. package/dist/src/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelectionPresentation.d.ts +3 -1
  329. package/dist/src/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.d.ts +3 -1
  330. package/dist/src/components/Payroll/PayrollConfiguration/useCalculationPoll.d.ts +6 -1
  331. package/dist/src/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.d.ts +3 -1
  332. package/dist/src/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/fields.d.ts +9 -9
  333. package/dist/src/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/payrollEditEmployeeHelpers.d.ts +2 -2
  334. package/dist/src/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/payrollEditEmployeeSchema.d.ts +4 -4
  335. package/dist/src/components/Payroll/PayrollHistory/PayrollHistoryPresentation.d.ts +3 -1
  336. package/dist/src/components/Payroll/PayrollList/PayrollListPresentation.d.ts +3 -1
  337. package/dist/src/components/Payroll/PayrollOverview/PayrollOverviewPresentation.d.ts +2 -1
  338. package/dist/src/components/Payroll/PayrollOverview/useSubmissionPoll.d.ts +10 -1
  339. package/dist/src/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.d.ts +2 -1
  340. package/dist/src/components/Payroll/TransitionCreation/TransitionCreationPresentation.d.ts +1 -1
  341. package/dist/src/components/Payroll/TransitionCreation/TransitionCreationTypes.d.ts +2 -0
  342. package/dist/src/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlert.d.ts +3 -1
  343. package/dist/src/components/Payroll/UNSTABLE_PayrollEditEmployee/UNSTABLE_PayrollEditEmployee.d.ts +1 -1
  344. package/dist/src/components/TimeOff/AddEmployeesHoliday/AddEmployeesHoliday.d.ts +1 -1
  345. package/dist/src/components/TimeOff/AddEmployeesToPolicy/AddEmployeesToPolicy.d.ts +1 -1
  346. package/dist/src/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetailPresentation.d.ts +1 -1
  347. package/dist/src/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetailTypes.d.ts +2 -0
  348. package/dist/src/components/TimeOff/HolidaySelectionForm/HolidaySelectionFormTypes.d.ts +2 -0
  349. package/dist/src/components/TimeOff/PolicyList/PolicyListPresentation.d.ts +1 -1
  350. package/dist/src/components/TimeOff/PolicyList/PolicyListTypes.d.ts +2 -0
  351. package/dist/src/components/TimeOff/PolicySettings/PolicySettingsPresentation.d.ts +1 -1
  352. package/dist/src/components/TimeOff/PolicySettings/PolicySettingsTypes.d.ts +2 -0
  353. package/dist/src/components/TimeOff/PolicyTypeSelector/PolicyTypeSelectorPresentation.d.ts +1 -1
  354. package/dist/src/components/TimeOff/PolicyTypeSelector/PolicyTypeSelectorTypes.d.ts +2 -0
  355. package/dist/src/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormPresentation.d.ts +1 -1
  356. package/dist/src/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormTypes.d.ts +2 -0
  357. package/dist/src/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesHoliday.d.ts +2 -0
  358. package/dist/src/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentation.d.ts +1 -1
  359. package/dist/src/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentationTypes.d.ts +2 -0
  360. package/dist/src/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesTimeOff.d.ts +2 -0
  361. package/dist/src/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetailPresentation.d.ts +1 -1
  362. package/dist/src/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetailTypes.d.ts +3 -0
  363. package/dist/src/components/TimeOff/shared/PolicyDetailLayout/PolicyDetailLayout.d.ts +1 -1
  364. package/dist/src/components/TimeOff/shared/PolicyDetailLayout/PolicyDetailLayoutTypes.d.ts +2 -0
  365. package/dist/src/contexts/ApiProvider/ApiProvider.d.ts +5 -3
  366. package/dist/src/contexts/ApiProvider/apiVersionMismatchHook.d.ts +3 -0
  367. package/dist/src/contexts/ApiProvider/apiVersionMismatchHook.test.d.ts +1 -0
  368. package/dist/src/contexts/ComponentAdapter/componentAdapterTypes.d.ts +1 -0
  369. package/dist/src/contexts/ComponentAdapter/useComponentContext.d.ts +4 -1
  370. package/dist/src/contexts/GustoProvider/GustoProviderCustomUIAdapter.d.ts +9 -1
  371. package/dist/src/contexts/ThemeProvider/ThemeProvider.d.ts +8 -3
  372. package/dist/src/contexts/UnstableFeaturesProvider/useUnstableFeature.d.ts +4 -1
  373. package/dist/src/hooks/usePollingTask/usePollingTask.d.ts +55 -14
  374. package/dist/src/i18n/types.d.ts +42 -2
  375. package/dist/src/index.d.ts +1 -1
  376. package/dist/src/models/external.d.ts +1 -0
  377. package/dist/style.css +1 -1
  378. package/docs/guides/endpoint-inventory.json +5 -0
  379. package/package.json +20 -19
@@ -1,177 +1,179 @@
1
- import { jsx as t, jsxs as o } from "react/jsx-runtime";
2
- import { useForm as J, useFieldArray as Te, useWatch as Ae, FormProvider as ee } from "react-hook-form";
3
- import { useRef as Me, useMemo as w, useState as Oe } from "react";
1
+ import { jsx as t, jsxs as a } from "react/jsx-runtime";
2
+ import { useForm as ee, useFieldArray as Ae, useWatch as Me, FormProvider as ne } from "react-hook-form";
3
+ import { useRef as Oe, useMemo as $, useState as ve } from "react";
4
+ import Re from "classnames";
4
5
  import { PayrollEmployeeCompensationsTypePaymentMethod as M } from "@gusto/embedded-api/models/components/payrollemployeecompensationstype";
5
- import { useTranslation as ve } from "react-i18next";
6
+ import { useTranslation as xe } from "react-i18next";
6
7
  import { z as s } from "zod";
7
- import { zodResolver as ne } from "@hookform/resolvers/zod";
8
- import p from "./PayrollEditEmployeePresentation.module.scss.js";
9
- import { TimeOffField as Re, PayoutTimeOffField as xe } from "./TimeOffField.js";
8
+ import { zodResolver as te } from "@hookform/resolvers/zod";
9
+ import c from "./PayrollEditEmployeePresentation.module.scss.js";
10
+ import { TimeOffField as Se, PayoutTimeOffField as Ie } from "./TimeOffField.js";
10
11
  import { Flex as P } from "../../Common/Flex/Flex.js";
11
12
  import { Grid as x } from "../../Common/Grid/Grid.js";
12
- import { EmptyData as Se } from "../../Common/EmptyData/EmptyData.js";
13
- import { useComponentContext as Fe } from "../../../contexts/ComponentAdapter/useComponentContext.js";
14
- import { useI18n as Ie } from "../../../i18n/I18n.js";
15
- import { Form as De } from "../../Common/Form/Form.js";
16
- import { formatNumberAsCurrency as te, firstLastName as _e } from "../../../helpers/formattedStrings.js";
17
- import { getAdditionalEarningsCompensations as Le, calculateGrossPay as ie } from "../helpers.js";
18
- import { PayrollCategory as D, isOffCyclePayroll as ae } from "../payrollTypes.js";
19
- import { COMPENSATION_NAME_REIMBURSEMENT as S, HOURS_COMPENSATION_NAMES as re, EXCLUDED_ADDITIONAL_EARNINGS as ke, COMPENSATION_NAME_DOUBLE_OVERTIME as Ue, COMPENSATION_NAME_OVERTIME as je, COMPENSATION_NAME_REGULAR_HOURS as Ge, COMPENSATION_NAME_CASH_TIPS as He, COMPENSATION_NAME_COMMISSION as we, COMPENSATION_NAME_CORRECTION_PAYMENT as $e, COMPENSATION_NAME_PAYCHECK_TIPS as Ve, COMPENSATION_NAME_BONUS as Be } from "../../../shared/constants.js";
20
- import qe from "../../../hooks/useContainerBreakpoints/useContainerBreakpoints.js";
21
- import se from "../../../assets/icons/plus-circle.svg.js";
22
- import ze from "../../../assets/icons/trashcan.svg.js";
13
+ import { EmptyData as Fe } from "../../Common/EmptyData/EmptyData.js";
14
+ import { useComponentContext as De } from "../../../contexts/ComponentAdapter/useComponentContext.js";
15
+ import { useI18n as _e } from "../../../i18n/I18n.js";
16
+ import { Form as Le } from "../../Common/Form/Form.js";
17
+ import { formatNumberAsCurrency as ie, firstLastName as ke } from "../../../helpers/formattedStrings.js";
18
+ import { getAdditionalEarningsCompensations as Ue, calculateGrossPay as re } from "../helpers.js";
19
+ import { PayrollCategory as F, isOffCyclePayroll as me } from "../payrollTypes.js";
20
+ import { COMPENSATION_NAME_REIMBURSEMENT as S, HOURS_COMPENSATION_NAMES as se, EXCLUDED_ADDITIONAL_EARNINGS as je, COMPENSATION_NAME_DOUBLE_OVERTIME as Ge, COMPENSATION_NAME_OVERTIME as He, COMPENSATION_NAME_REGULAR_HOURS as we, COMPENSATION_NAME_CASH_TIPS as $e, COMPENSATION_NAME_COMMISSION as Ve, COMPENSATION_NAME_CORRECTION_PAYMENT as Be, COMPENSATION_NAME_PAYCHECK_TIPS as qe, COMPENSATION_NAME_BONUS as ze } from "../../../shared/constants.js";
21
+ import We from "../../../hooks/useContainerBreakpoints/useContainerBreakpoints.js";
22
+ import oe from "../../../assets/icons/plus-circle.svg.js";
23
+ import Ye from "../../../assets/icons/trashcan.svg.js";
23
24
  import { TextInputField as I } from "../../Common/Fields/TextInputField/TextInputField.js";
24
- import { RadioGroupField as We } from "../../Common/Fields/RadioGroupField/RadioGroupField.js";
25
- import { useDataView as Ye } from "../../Common/DataView/useDataView.js";
26
- import { DataView as Ke } from "../../Common/DataView/DataView.js";
27
- const Xe = s.object({
25
+ import { RadioGroupField as Ke } from "../../Common/Fields/RadioGroupField/RadioGroupField.js";
26
+ import { useDataView as Xe } from "../../Common/DataView/useDataView.js";
27
+ import { DataView as Qe } from "../../Common/DataView/DataView.js";
28
+ const Ze = s.object({
28
29
  uuid: s.string().nullable().optional(),
29
30
  description: s.string(),
30
31
  amount: s.string(),
31
32
  recurring: s.boolean().optional()
32
- }), Qe = s.object({
33
+ }), Je = s.object({
33
34
  description: s.string(),
34
35
  amount: s.string().refine(
35
- (m) => {
36
- const g = parseFloat(m);
37
- return !Number.isNaN(g) && g > 0;
36
+ (l) => {
37
+ const C = parseFloat(l);
38
+ return !Number.isNaN(C) && C > 0;
38
39
  },
39
40
  { message: "validations.reimbursementAmount" }
40
41
  )
41
- }), Ze = s.string().optional().refine((m) => !m || parseFloat(m) >= 0, { message: "validations.negativeAmount" }), Je = s.object({
42
+ }), en = s.string().optional().refine((l) => !l || parseFloat(l) >= 0, { message: "validations.negativeAmount" }), nn = s.object({
42
43
  hourlyCompensations: s.record(s.string(), s.record(s.string(), s.string().optional())),
43
44
  timeOffCompensations: s.record(s.string(), s.string().optional()),
44
45
  finalPayoutCompensations: s.record(s.string(), s.string().optional()),
45
- fixedCompensations: s.record(s.string(), Ze),
46
- reimbursements: s.array(Xe),
46
+ fixedCompensations: s.record(s.string(), en),
47
+ reimbursements: s.array(Ze),
47
48
  paymentMethod: s.enum(M).optional()
48
- }), oe = (m, g, f, a, _ = D.Regular) => {
49
+ }), ae = (l, C, k, p, o = F.Regular) => {
49
50
  const y = {
50
- ...g,
51
- paymentMethod: m.paymentMethod
51
+ ...C,
52
+ paymentMethod: l.paymentMethod
52
53
  };
53
- y.hourlyCompensations = g?.hourlyCompensations?.map(
54
+ y.hourlyCompensations = C?.hourlyCompensations?.map(
54
55
  (r) => {
55
- const c = r.jobUuid && r.name ? m.hourlyCompensations[r.jobUuid]?.[r.name] : void 0;
56
- return c ? {
56
+ const m = r.jobUuid && r.name ? l.hourlyCompensations[r.jobUuid]?.[r.name] : void 0;
57
+ return m ? {
57
58
  ...r,
58
- hours: c
59
+ hours: m
59
60
  } : r;
60
61
  }
61
- ), y.paidTimeOff = f.map((r) => {
62
- const c = _ === D.Dismissal, { finalPayoutUnusedHoursInput: F, ...u } = r;
63
- if (c) {
64
- const h = m.finalPayoutCompensations[r.name] ?? r.finalPayoutUnusedHoursInput;
62
+ ), y.paidTimeOff = k.map((r) => {
63
+ const m = o === F.Dismissal, { finalPayoutUnusedHoursInput: O, ...h } = r;
64
+ if (m) {
65
+ const u = l.finalPayoutCompensations[r.name] ?? r.finalPayoutUnusedHoursInput;
65
66
  return {
66
67
  ...r,
67
- hours: m.timeOffCompensations[r.name] || "0",
68
- ...h != null ? { finalPayoutUnusedHoursInput: h || "0" } : {}
68
+ hours: l.timeOffCompensations[r.name] || "0",
69
+ ...u != null ? { finalPayoutUnusedHoursInput: u || "0" } : {}
69
70
  };
70
71
  }
71
72
  return {
72
- ...u,
73
- hours: m.timeOffCompensations[r.name] || "0"
73
+ ...h,
74
+ hours: l.timeOffCompensations[r.name] || "0"
74
75
  };
75
76
  });
76
- const O = !ae(_), T = [];
77
- return Object.entries(m.fixedCompensations).forEach(([r, c]) => {
78
- if (r.toLowerCase() === S.toLowerCase() && O)
77
+ const D = !me(o), T = [];
78
+ return Object.entries(l.fixedCompensations).forEach(([r, m]) => {
79
+ if (r.toLowerCase() === S.toLowerCase() && D)
79
80
  return;
80
- const u = g?.fixedCompensations?.find(
81
- (l) => l.name?.toLowerCase() === r.toLowerCase()
82
- ), h = c === "" && u ? "0" : c;
83
- h !== void 0 && h !== "" && (u ? T.push({
84
- name: u.name,
85
- jobUuid: u.jobUuid,
86
- amount: h
87
- }) : parseFloat(h) !== 0 && T.push({
81
+ const h = C?.fixedCompensations?.find(
82
+ (U) => U.name?.toLowerCase() === r.toLowerCase()
83
+ ), u = m === "" && h ? "0" : m;
84
+ u !== void 0 && u !== "" && (h ? T.push({
85
+ name: h.name,
86
+ jobUuid: h.jobUuid,
87
+ amount: u
88
+ }) : parseFloat(u) !== 0 && T.push({
88
89
  name: r,
89
- jobUuid: a,
90
- amount: h
90
+ jobUuid: p,
91
+ amount: u
91
92
  }));
92
- }), y.fixedCompensations = T, O ? y.reimbursements = m.reimbursements.map((r) => ({
93
+ }), y.fixedCompensations = T, D ? y.reimbursements = l.reimbursements.map((r) => ({
93
94
  amount: r.amount,
94
95
  description: r.description.trim() === "" ? null : r.description.trim(),
95
96
  uuid: r.uuid ?? null,
96
97
  recurring: r.recurring
97
98
  })) : y.reimbursements = [], y;
98
- }, Rn = ({
99
- onSave: m,
100
- onCancel: g,
101
- employee: f,
102
- employeeCompensation: a,
103
- isPending: _ = !1,
104
- fixedCompensationTypes: y,
105
- payPeriodStartDate: O,
106
- paySchedule: T,
107
- payrollCategory: r = D.Regular,
108
- withReimbursements: c = !0,
109
- hasDirectDepositSetup: F = !0
99
+ }, In = ({
100
+ className: l,
101
+ onSave: C,
102
+ onCancel: k,
103
+ employee: p,
104
+ employeeCompensation: o,
105
+ isPending: y = !1,
106
+ fixedCompensationTypes: D,
107
+ payPeriodStartDate: T,
108
+ paySchedule: r,
109
+ payrollCategory: m = F.Regular,
110
+ withReimbursements: O = !0,
111
+ hasDirectDepositSetup: h = !0
110
112
  }) => {
111
- const { Button: u, ButtonIcon: h, Heading: l, Text: $ } = Fe(), { t: n } = ve("Payroll.PayrollEditEmployee");
112
- Ie("Payroll.PayrollEditEmployee");
113
- const b = f.jobs?.find((e) => e.primary), me = a?.hourlyCompensations?.some(
113
+ const { Button: u, ButtonIcon: U, Heading: f, Text: V } = De(), { t: n } = xe("Payroll.PayrollEditEmployee");
114
+ _e("Payroll.PayrollEditEmployee");
115
+ const b = p.jobs?.find((e) => e.primary), ue = o?.hourlyCompensations?.some(
114
116
  (e) => e.jobUuid === b?.uuid
115
- ), v = b && me ? [b] : [], V = Me(null), C = qe({
116
- ref: V
117
+ ), v = b && ue ? [b] : [], B = Oe(null), g = We({
118
+ ref: B
117
119
  }).includes("small");
118
- a?.hourlyCompensations?.forEach((e) => {
119
- const i = f.jobs?.find((d) => d.uuid === e.jobUuid);
120
+ o?.hourlyCompensations?.forEach((e) => {
121
+ const i = p.jobs?.find((d) => d.uuid === e.jobUuid);
120
122
  i && !v.find((d) => d.uuid === i.uuid) && v.push(i);
121
123
  });
122
- const A = (a?.paidTimeOff || []).filter((e) => e.name), U = Le({
124
+ const A = (o?.paidTimeOff || []).filter((e) => e.name), j = Ue({
123
125
  flsaStatus: b?.compensations?.[0]?.flsaStatus,
124
- existingFixedCompensations: a?.fixedCompensations || [],
126
+ existingFixedCompensations: o?.fixedCompensations || [],
125
127
  primaryJobUuid: b?.uuid,
126
- fixedCompensationTypes: y,
127
- excludedTypes: ke
128
- }), L = !ae(r), ue = w(
129
- () => c && L ? a?.reimbursements ?? [] : [],
130
- [c, L, a?.reimbursements]
131
- ), le = w(
132
- () => a?.fixedCompensations?.find(
128
+ fixedCompensationTypes: D,
129
+ excludedTypes: je
130
+ }), _ = !me(m), le = $(
131
+ () => O && _ ? o?.reimbursements ?? [] : [],
132
+ [O, _, o?.reimbursements]
133
+ ), de = $(
134
+ () => o?.fixedCompensations?.find(
133
135
  (e) => e.name?.toLowerCase() === S.toLowerCase()
134
136
  ),
135
- [a?.fixedCompensations]
136
- ), B = c && !L && !!b?.uuid, q = (e, i) => a?.hourlyCompensations?.find(
137
+ [o?.fixedCompensations]
138
+ ), q = O && !_ && !!b?.uuid, z = (e, i) => o?.hourlyCompensations?.find(
137
139
  (d) => d.jobUuid === e && d.name?.toLowerCase() === i.toLowerCase()
138
- ), de = (e) => {
140
+ ), ce = (e) => {
139
141
  switch (e) {
140
- case Ge:
142
+ case we:
141
143
  return n("compensationNames.regularHours");
142
- case je:
144
+ case He:
143
145
  return n("compensationNames.overtime");
144
- case Ue:
146
+ case Ge:
145
147
  return n("compensationNames.doubleOvertime");
146
148
  default:
147
149
  return e;
148
150
  }
149
- }, z = (e) => {
151
+ }, W = (e) => {
150
152
  switch (e) {
151
- case Be:
153
+ case ze:
152
154
  return n("fixedCompensationNames.bonus");
153
- case Ve:
155
+ case qe:
154
156
  return n("fixedCompensationNames.paycheckTips");
155
- case $e:
157
+ case Be:
156
158
  return n("fixedCompensationNames.correctionPayment");
157
- case we:
159
+ case Ve:
158
160
  return n("fixedCompensationNames.commission");
159
- case He:
161
+ case $e:
160
162
  return n("fixedCompensationNames.cashTips");
161
163
  case S:
162
164
  return n("fixedCompensationNames.reimbursement");
163
165
  default:
164
166
  return e;
165
167
  }
166
- }, ce = () => {
167
- const e = a?.paymentMethod;
168
- return e ? !F && e === M.DirectDeposit ? M.Check : e : F ? M.DirectDeposit : M.Check;
169
- }, pe = {
168
+ }, pe = () => {
169
+ const e = o?.paymentMethod;
170
+ return e ? !h && e === M.DirectDeposit ? M.Check : e : h ? M.DirectDeposit : M.Check;
171
+ }, fe = {
170
172
  hourlyCompensations: (() => {
171
173
  const e = {};
172
174
  return v.forEach((i) => {
173
- re.forEach((d) => {
174
- const R = q(i.uuid, d);
175
+ se.forEach((d) => {
176
+ const R = z(i.uuid, d);
175
177
  R && (e[i.uuid] || (e[i.uuid] = {}), e[i.uuid][R.name] = R.hours ? parseFloat(R.hours).toString() : "");
176
178
  });
177
179
  }), e;
@@ -190,46 +192,46 @@ const Xe = s.object({
190
192
  })(),
191
193
  fixedCompensations: (() => {
192
194
  const e = {};
193
- return U.forEach((i) => {
195
+ return j.forEach((i) => {
194
196
  e[i.name] = i.amount ?? "";
195
- }), B && (e[S] = le?.amount ?? "0.00"), e;
197
+ }), q && (e[S] = de?.amount ?? "0.00"), e;
196
198
  })(),
197
- reimbursements: ue.map((e) => ({
199
+ reimbursements: le.map((e) => ({
198
200
  uuid: e.uuid ?? null,
199
201
  description: e.description ?? "",
200
202
  amount: e.amount,
201
203
  recurring: e.recurring ?? !1
202
204
  })),
203
- paymentMethod: ce()
204
- }, k = J({
205
- resolver: ne(Je),
206
- defaultValues: pe
205
+ paymentMethod: pe()
206
+ }, L = ee({
207
+ resolver: te(nn),
208
+ defaultValues: fe
207
209
  }), {
208
- fields: W,
209
- append: fe,
210
- remove: he,
211
- update: be
212
- } = Te({
213
- control: k.control,
210
+ fields: Y,
211
+ append: he,
212
+ remove: be,
213
+ update: ge
214
+ } = Ae({
215
+ control: L.control,
214
216
  name: "reimbursements"
215
217
  }), Ce = (e) => {
216
- const i = W[e];
217
- i && (i.uuid ? be(e, { ...i, amount: "0" }) : he(e));
218
- }, j = W.map((e, i) => ({ ...e, originalIndex: i })).filter((e) => parseFloat(e.amount || "0") !== 0), [Y, G] = Oe(!1), H = J({
219
- resolver: ne(Qe),
218
+ const i = Y[e];
219
+ i && (i.uuid ? ge(e, { ...i, amount: "0" }) : be(e));
220
+ }, G = Y.map((e, i) => ({ ...e, originalIndex: i })).filter((e) => parseFloat(e.amount || "0") !== 0), [K, H] = ve(!1), w = ee({
221
+ resolver: te(Je),
220
222
  defaultValues: { description: "", amount: "" }
221
- }), K = () => {
222
- G(!1), H.reset();
223
- }, ge = (e) => {
223
+ }), X = () => {
224
+ H(!1), w.reset();
225
+ }, ye = (e) => {
224
226
  const i = parseFloat(e.amount);
225
- fe({
227
+ he({
226
228
  uuid: null,
227
229
  description: e.description.trim(),
228
230
  amount: i.toFixed(2),
229
231
  recurring: !1
230
- }), K();
231
- }, ye = Ye({
232
- data: j,
232
+ }), X();
233
+ }, Ne = Xe({
234
+ data: G,
233
235
  columns: [
234
236
  {
235
237
  key: "description",
@@ -240,7 +242,7 @@ const Xe = s.object({
240
242
  key: "amount",
241
243
  title: n("reimbursementAmountColumn"),
242
244
  justify: "end",
243
- render: (e) => te(parseFloat(e.amount || "0"))
245
+ render: (e) => ie(parseFloat(e.amount || "0"))
244
246
  },
245
247
  {
246
248
  key: "recurring",
@@ -252,35 +254,35 @@ const Xe = s.object({
252
254
  if (e.recurring) return null;
253
255
  const i = e.description.trim() || n("reimbursementUnnamedFallback");
254
256
  return /* @__PURE__ */ t(
255
- h,
257
+ U,
256
258
  {
257
259
  variant: "tertiary",
258
260
  onClick: () => {
259
261
  Ce(e.originalIndex);
260
262
  },
261
263
  "aria-label": n("removeReimbursementLabel", { description: i }),
262
- children: /* @__PURE__ */ t(ze, { "aria-hidden": !0 })
264
+ children: /* @__PURE__ */ t(Ye, { "aria-hidden": !0 })
263
265
  }
264
266
  );
265
267
  },
266
- emptyState: () => /* @__PURE__ */ t(Se, { title: n("reimbursementEmptyTitle"), children: /* @__PURE__ */ t(
268
+ emptyState: () => /* @__PURE__ */ t(Fe, { title: n("reimbursementEmptyTitle"), children: /* @__PURE__ */ t(
267
269
  u,
268
270
  {
269
271
  variant: "secondary",
270
272
  onClick: () => {
271
- G(!0);
273
+ H(!0);
272
274
  },
273
- icon: /* @__PURE__ */ t(se, { "aria-hidden": !0 }),
275
+ icon: /* @__PURE__ */ t(oe, { "aria-hidden": !0 }),
274
276
  children: n("addReimbursementCta")
275
277
  }
276
278
  ) })
277
- }), N = Ae({
278
- control: k.control
279
- }), Ne = w(() => {
279
+ }), N = Me({
280
+ control: L.control
281
+ }), Ee = $(() => {
280
282
  try {
281
283
  const e = {};
282
- N.hourlyCompensations && Object.entries(N.hourlyCompensations).forEach(([E, Z]) => {
283
- Z && (e[E] = Z);
284
+ N.hourlyCompensations && Object.entries(N.hourlyCompensations).forEach(([E, J]) => {
285
+ J && (e[E] = J);
284
286
  });
285
287
  const i = (N.reimbursements ?? []).map((E) => ({
286
288
  uuid: E.uuid ?? null,
@@ -294,95 +296,95 @@ const Xe = s.object({
294
296
  fixedCompensations: N.fixedCompensations || {},
295
297
  reimbursements: i,
296
298
  paymentMethod: N.paymentMethod
297
- }, R = oe(
299
+ }, R = ae(
298
300
  d,
299
- a,
300
- (a?.paidTimeOff || []).filter((E) => E.name),
301
+ o,
302
+ (o?.paidTimeOff || []).filter((E) => E.name),
301
303
  b?.uuid,
302
- r
304
+ m
303
305
  );
304
- return ie(
306
+ return re(
305
307
  R,
306
- f,
307
- O,
308
+ p,
308
309
  T,
309
- r
310
+ r,
311
+ m
310
312
  );
311
313
  } catch {
312
- return a ? ie(
313
- a,
314
- f,
315
- O,
314
+ return o ? re(
315
+ o,
316
+ p,
316
317
  T,
317
- r
318
+ r,
319
+ m
318
320
  ) : 0;
319
321
  }
320
322
  }, [
321
323
  N,
322
- a,
324
+ o,
323
325
  b?.uuid,
324
- f,
325
- O,
326
+ p,
326
327
  T,
327
- r
328
- ]), Ee = _e({
329
- first_name: f.firstName,
330
- last_name: f.lastName
331
- }), Pe = (e) => {
332
- const i = oe(
328
+ r,
329
+ m
330
+ ]), Pe = ke({
331
+ first_name: p.firstName,
332
+ last_name: p.lastName
333
+ }), Te = (e) => {
334
+ const i = ae(
333
335
  e,
334
- a,
336
+ o,
335
337
  A,
336
338
  b?.uuid,
337
- r
339
+ m
338
340
  );
339
- m(i);
340
- }, X = te(Ne || 0), Q = /* @__PURE__ */ o(
341
+ C(i);
342
+ }, Q = ie(Ee || 0), Z = /* @__PURE__ */ a(
341
343
  P,
342
344
  {
343
- flexDirection: C ? "row" : "column",
344
- justifyContent: C ? "flex-end" : "normal",
345
- alignItems: C ? "flex-start" : "stretch",
345
+ flexDirection: g ? "row" : "column",
346
+ justifyContent: g ? "flex-end" : "normal",
347
+ alignItems: g ? "flex-start" : "stretch",
346
348
  gap: 12,
347
349
  children: [
348
- /* @__PURE__ */ t(u, { variant: "secondary", onClick: g, title: n("cancelCta"), children: n("cancelCta") }),
350
+ /* @__PURE__ */ t(u, { variant: "secondary", onClick: k, title: n("cancelCta"), children: n("cancelCta") }),
349
351
  /* @__PURE__ */ t(
350
352
  u,
351
353
  {
352
- onClick: k.handleSubmit(Pe),
354
+ onClick: L.handleSubmit(Te),
353
355
  title: n("saveCta"),
354
- isLoading: _,
356
+ isLoading: y,
355
357
  children: n("saveCta")
356
358
  }
357
359
  )
358
360
  ]
359
361
  }
360
362
  );
361
- return /* @__PURE__ */ o("div", { ref: V, className: p.container, children: [
363
+ return /* @__PURE__ */ a("div", { ref: B, className: Re(c.container, l), children: [
362
364
  /* @__PURE__ */ t(
363
365
  "div",
364
366
  {
365
- className: `${p.headerSection} ${C ? "" : p.headerSectionSticky}`,
366
- children: /* @__PURE__ */ o(P, { justifyContent: "space-between", children: [
367
- /* @__PURE__ */ o(P, { flexDirection: "column", gap: C ? 8 : 2, children: [
368
- /* @__PURE__ */ t(l, { as: "h1", styledAs: C ? "h2" : "h4", children: n("pageTitle", { employeeName: Ee }) }),
369
- C ? /* @__PURE__ */ o(P, { flexDirection: "column", gap: 6, children: [
370
- /* @__PURE__ */ t(l, { as: "h2", styledAs: "h3", children: X }),
371
- /* @__PURE__ */ t($, { className: p.grossPayLabel, children: n("grossPayLabel") })
372
- ] }) : /* @__PURE__ */ t(l, { as: "h2", styledAs: "h6", className: p.grossPayLabel, children: n("grossPayLabelMobile", { grossPay: X }) })
367
+ className: `${c.headerSection} ${g ? "" : c.headerSectionSticky}`,
368
+ children: /* @__PURE__ */ a(P, { justifyContent: "space-between", children: [
369
+ /* @__PURE__ */ a(P, { flexDirection: "column", alignItems: "stretch", gap: g ? 8 : 2, children: [
370
+ /* @__PURE__ */ t(f, { as: "h1", styledAs: g ? "h2" : "h4", children: n("pageTitle", { employeeName: Pe }) }),
371
+ g ? /* @__PURE__ */ a(P, { flexDirection: "column", gap: 6, children: [
372
+ /* @__PURE__ */ t(f, { as: "h2", styledAs: "h3", children: Q }),
373
+ /* @__PURE__ */ t(V, { className: c.grossPayLabel, children: n("grossPayLabel") })
374
+ ] }) : /* @__PURE__ */ t(f, { as: "h2", styledAs: "h6", className: c.grossPayLabel, children: n("grossPayLabelMobile", { grossPay: Q }) })
373
375
  ] }),
374
- C && Q
376
+ g && Z
375
377
  ] })
376
378
  }
377
379
  ),
378
- /* @__PURE__ */ o(ee, { ...k, children: [
379
- /* @__PURE__ */ o(De, { children: [
380
- v.length > 0 && /* @__PURE__ */ o("div", { className: p.fieldGroup, children: [
381
- /* @__PURE__ */ t(l, { as: "h3", children: n("regularHoursTitle") }),
382
- v.map((e) => /* @__PURE__ */ o(P, { flexDirection: "column", gap: 8, children: [
383
- v.length > 1 && /* @__PURE__ */ t(l, { as: "h4", children: e.title }),
384
- /* @__PURE__ */ t(x, { gridTemplateColumns: { base: "1fr", small: [320, 320] }, gap: 20, children: re.map((i) => {
385
- const d = q(
380
+ /* @__PURE__ */ a(ne, { ...L, children: [
381
+ /* @__PURE__ */ a(Le, { children: [
382
+ v.length > 0 && /* @__PURE__ */ a("div", { className: c.fieldGroup, children: [
383
+ /* @__PURE__ */ t(f, { as: "h3", children: n("regularHoursTitle") }),
384
+ v.map((e) => /* @__PURE__ */ a(P, { flexDirection: "column", gap: 8, children: [
385
+ v.length > 1 && /* @__PURE__ */ t(f, { as: "h4", children: e.title }),
386
+ /* @__PURE__ */ t(x, { gridTemplateColumns: { base: "1fr", small: [320, 320] }, gap: 20, children: se.map((i) => {
387
+ const d = z(
386
388
  e.uuid,
387
389
  i
388
390
  );
@@ -394,7 +396,7 @@ const Xe = s.object({
394
396
  min: 0,
395
397
  adornmentEnd: n("hoursUnit"),
396
398
  isRequired: !0,
397
- label: de(i),
399
+ label: ce(i),
398
400
  name: `hourlyCompensations.${e.uuid}.${d.name}`
399
401
  },
400
402
  i
@@ -402,46 +404,46 @@ const Xe = s.object({
402
404
  }) })
403
405
  ] }, e.uuid))
404
406
  ] }),
405
- A.length > 0 && /* @__PURE__ */ o("div", { className: p.fieldGroup, children: [
406
- /* @__PURE__ */ t(l, { as: "h3", styledAs: "h4", children: r === D.Dismissal ? n("timeOffTitleDismissal") : n("timeOffTitle") }),
407
+ A.length > 0 && /* @__PURE__ */ a("div", { className: c.fieldGroup, children: [
408
+ /* @__PURE__ */ t(f, { as: "h3", styledAs: "h4", children: m === F.Dismissal ? n("timeOffTitleDismissal") : n("timeOffTitle") }),
407
409
  /* @__PURE__ */ t(x, { gridTemplateColumns: { base: "1fr", small: [320, 320] }, gap: 20, children: A.map((e) => /* @__PURE__ */ t(
408
- Re,
410
+ Se,
409
411
  {
410
412
  timeOff: e,
411
- employee: f
413
+ employee: p
412
414
  },
413
415
  e.name
414
416
  )) })
415
417
  ] }),
416
- r === D.Dismissal && A.length > 0 && /* @__PURE__ */ o("div", { className: p.fieldGroup, children: [
417
- /* @__PURE__ */ o(P, { flexDirection: "column", gap: 4, children: [
418
- /* @__PURE__ */ t(l, { as: "h3", styledAs: "h4", children: n("finalPayoutTitle") }),
419
- /* @__PURE__ */ t($, { variant: "supporting", children: n("finalPayoutDescription") })
418
+ m === F.Dismissal && A.length > 0 && /* @__PURE__ */ a("div", { className: c.fieldGroup, children: [
419
+ /* @__PURE__ */ a(P, { flexDirection: "column", gap: 4, children: [
420
+ /* @__PURE__ */ t(f, { as: "h3", styledAs: "h4", children: n("finalPayoutTitle") }),
421
+ /* @__PURE__ */ t(V, { variant: "supporting", children: n("finalPayoutDescription") })
420
422
  ] }),
421
423
  /* @__PURE__ */ t(x, { gridTemplateColumns: { base: "1fr", small: [320, 320] }, gap: 20, children: A.map((e) => /* @__PURE__ */ t(
422
- xe,
424
+ Ie,
423
425
  {
424
426
  timeOff: e,
425
- employee: f
427
+ employee: p
426
428
  },
427
429
  `payout-${e.name}`
428
430
  )) })
429
431
  ] }),
430
- U.length > 0 && /* @__PURE__ */ o("div", { className: p.fieldGroup, children: [
431
- /* @__PURE__ */ t(l, { as: "h3", styledAs: "h4", children: n("additionalEarningsTitle") }),
432
+ j.length > 0 && /* @__PURE__ */ a("div", { className: c.fieldGroup, children: [
433
+ /* @__PURE__ */ t(f, { as: "h3", styledAs: "h4", children: n("additionalEarningsTitle") }),
432
434
  /* @__PURE__ */ t(
433
435
  x,
434
436
  {
435
437
  gridTemplateColumns: { base: "1fr", small: [320, 320], large: [320, 320, 320] },
436
438
  gap: 20,
437
- children: U.map((e) => /* @__PURE__ */ t(
439
+ children: j.map((e) => /* @__PURE__ */ t(
438
440
  I,
439
441
  {
440
442
  type: "number",
441
443
  min: 0,
442
444
  adornmentStart: "$",
443
445
  isRequired: !0,
444
- label: z(e.name),
446
+ label: W(e.name),
445
447
  name: `fixedCompensations.${e.name}`,
446
448
  errorMessage: n("validations.negativeAmount")
447
449
  },
@@ -450,8 +452,8 @@ const Xe = s.object({
450
452
  }
451
453
  )
452
454
  ] }),
453
- B && /* @__PURE__ */ o("div", { className: p.fieldGroup, children: [
454
- /* @__PURE__ */ t(l, { as: "h3", styledAs: "h4", children: n("reimbursementTitle") }),
455
+ q && /* @__PURE__ */ a("div", { className: c.fieldGroup, children: [
456
+ /* @__PURE__ */ t(f, { as: "h3", styledAs: "h4", children: n("reimbursementTitle") }),
455
457
  /* @__PURE__ */ t(x, { gridTemplateColumns: { base: "1fr", small: [320, 320] }, gap: 20, children: /* @__PURE__ */ t(
456
458
  I,
457
459
  {
@@ -459,17 +461,17 @@ const Xe = s.object({
459
461
  min: 0,
460
462
  adornmentStart: "$",
461
463
  isRequired: !0,
462
- label: z(S),
464
+ label: W(S),
463
465
  name: `fixedCompensations.${S}`,
464
466
  errorMessage: n("validations.negativeAmount")
465
467
  }
466
468
  ) })
467
469
  ] }),
468
- c && L && /* @__PURE__ */ o("div", { className: p.fieldGroup, children: [
469
- /* @__PURE__ */ t(l, { as: "h3", styledAs: "h4", children: n("reimbursementTitle") }),
470
- !(j.length === 0 && Y) && /* @__PURE__ */ t(Ke, { label: n("reimbursementsTableLabel"), ...ye }),
471
- Y ? /* @__PURE__ */ t(ee, { ...H, children: /* @__PURE__ */ o(P, { flexDirection: "column", gap: 12, children: [
472
- /* @__PURE__ */ o(x, { gridTemplateColumns: { base: "1fr", small: [320, 320] }, gap: 20, children: [
470
+ O && _ && /* @__PURE__ */ a("div", { className: c.fieldGroup, children: [
471
+ /* @__PURE__ */ t(f, { as: "h3", styledAs: "h4", children: n("reimbursementTitle") }),
472
+ !(G.length === 0 && K) && /* @__PURE__ */ t(Qe, { label: n("reimbursementsTableLabel"), ...Ne }),
473
+ K ? /* @__PURE__ */ t(ne, { ...w, children: /* @__PURE__ */ a(P, { flexDirection: "column", gap: 12, children: [
474
+ /* @__PURE__ */ a(x, { gridTemplateColumns: { base: "1fr", small: [320, 320] }, gap: 20, children: [
473
475
  /* @__PURE__ */ t(
474
476
  I,
475
477
  {
@@ -491,27 +493,27 @@ const Xe = s.object({
491
493
  }
492
494
  )
493
495
  ] }),
494
- /* @__PURE__ */ o(P, { gap: 12, children: [
495
- /* @__PURE__ */ t(u, { onClick: H.handleSubmit(ge), children: n("saveReimbursementCta") }),
496
- /* @__PURE__ */ t(u, { variant: "secondary", onClick: K, children: n("cancelReimbursementCta") })
496
+ /* @__PURE__ */ a(P, { gap: 12, children: [
497
+ /* @__PURE__ */ t(u, { onClick: w.handleSubmit(ye), children: n("saveReimbursementCta") }),
498
+ /* @__PURE__ */ t(u, { variant: "secondary", onClick: X, children: n("cancelReimbursementCta") })
497
499
  ] })
498
- ] }) }) : j.length > 0 && /* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(
500
+ ] }) }) : G.length > 0 && /* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(
499
501
  u,
500
502
  {
501
503
  variant: "secondary",
502
504
  onClick: () => {
503
- G(!0);
505
+ H(!0);
504
506
  },
505
507
  title: n("addReimbursementLink"),
506
- icon: /* @__PURE__ */ t(se, { "aria-hidden": !0 }),
508
+ icon: /* @__PURE__ */ t(oe, { "aria-hidden": !0 }),
507
509
  children: n("addReimbursementLink")
508
510
  }
509
511
  ) })
510
512
  ] }),
511
- F && /* @__PURE__ */ o("div", { className: p.fieldGroup, children: [
512
- /* @__PURE__ */ t(l, { as: "h3", styledAs: "h4", children: n("paymentMethodTitle") }),
513
+ h && /* @__PURE__ */ a("div", { className: c.fieldGroup, children: [
514
+ /* @__PURE__ */ t(f, { as: "h3", styledAs: "h4", children: n("paymentMethodTitle") }),
513
515
  /* @__PURE__ */ t(
514
- We,
516
+ Ke,
515
517
  {
516
518
  name: "paymentMethod",
517
519
  isRequired: !0,
@@ -531,11 +533,11 @@ const Xe = s.object({
531
533
  )
532
534
  ] })
533
535
  ] }),
534
- !C && Q
536
+ !g && Z
535
537
  ] })
536
538
  ] });
537
539
  };
538
540
  export {
539
- Rn as PayrollEditEmployeePresentation
541
+ In as PayrollEditEmployeePresentation
540
542
  };
541
543
  //# sourceMappingURL=PayrollEditEmployeePresentation.js.map