@gusto/embedded-react-sdk 0.46.0 → 0.46.3

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 (284) hide show
  1. package/CHANGELOG.md +117 -0
  2. package/dist/components/Common/DataView/DataCards/DataCards.d.ts +2 -1
  3. package/dist/components/Common/DataView/DataCards/DataCards.js +14 -13
  4. package/dist/components/Common/DataView/DataCards/DataCards.js.map +1 -1
  5. package/dist/components/Common/DataView/DataTable/DataTable.d.ts +2 -1
  6. package/dist/components/Common/DataView/DataTable/DataTable.js +85 -80
  7. package/dist/components/Common/DataView/DataTable/DataTable.js.map +1 -1
  8. package/dist/components/Common/DataView/DataTable/DataTable.module.scss.js +8 -0
  9. package/dist/components/Common/DataView/DataTable/DataTable.module.scss.js.map +1 -0
  10. package/dist/components/Common/DataView/DataView.d.ts +1 -0
  11. package/dist/components/Common/DataView/DataView.js.map +1 -1
  12. package/dist/components/Common/DataView/useDataView.d.ts +10 -1
  13. package/dist/components/Common/DataView/useDataView.js +20 -17
  14. package/dist/components/Common/DataView/useDataView.js.map +1 -1
  15. package/dist/components/Common/DocumentViewer/DocumentViewer.js +10 -10
  16. package/dist/components/Common/DocumentViewer/DocumentViewer.js.map +1 -1
  17. package/dist/components/Common/DocumentViewer/DocumentViewer.module.scss.js +9 -9
  18. package/dist/components/Common/PaginationControl/PaginationControl.js +11 -10
  19. package/dist/components/Common/PaginationControl/PaginationControl.js.map +1 -1
  20. package/dist/components/Common/PaginationControl/PaginationControlTypes.d.ts +1 -1
  21. package/dist/components/Common/UI/DescriptionList/DescriptionList.js +11 -10
  22. package/dist/components/Common/UI/DescriptionList/DescriptionList.js.map +1 -1
  23. package/dist/components/Common/UI/DescriptionList/DescriptionList.module.scss.js +4 -4
  24. package/dist/components/Common/UI/Input/InputTypes.d.ts +1 -1
  25. package/dist/components/Common/UI/Input/InputTypes.js.map +1 -1
  26. package/dist/components/Common/UI/NumberInput/NumberInput.js +51 -48
  27. package/dist/components/Common/UI/NumberInput/NumberInput.js.map +1 -1
  28. package/dist/components/Common/VisuallyHidden/VisuallyHidden.d.ts +1 -1
  29. package/dist/components/Common/VisuallyHidden/VisuallyHidden.js.map +1 -1
  30. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js +3 -4
  31. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js.map +1 -1
  32. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js +3 -4
  33. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js.map +1 -1
  34. package/dist/components/Company/AssignSignatory/useAssignSignatory.js +5 -6
  35. package/dist/components/Company/AssignSignatory/useAssignSignatory.js.map +1 -1
  36. package/dist/components/Company/BankAccount/BankAccountForm/context.js +3 -4
  37. package/dist/components/Company/BankAccount/BankAccountForm/context.js.map +1 -1
  38. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js +3 -4
  39. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  40. package/dist/components/Company/DocumentSigner/shared/useSignCompanyForm/fields.js +4 -4
  41. package/dist/components/Company/FederalTaxes/useFederalTaxes.js +5 -6
  42. package/dist/components/Company/FederalTaxes/useFederalTaxes.js.map +1 -1
  43. package/dist/components/Company/Industry/Context.js +6 -7
  44. package/dist/components/Company/Industry/Context.js.map +1 -1
  45. package/dist/components/Company/Locations/LocationForm/useLocationForm.js +3 -4
  46. package/dist/components/Company/Locations/LocationForm/useLocationForm.js.map +1 -1
  47. package/dist/components/Company/Locations/LocationsList/useLocationsList.js +3 -4
  48. package/dist/components/Company/Locations/LocationsList/useLocationsList.js.map +1 -1
  49. package/dist/components/Company/OnboardingOverview/context.js +3 -4
  50. package/dist/components/Company/OnboardingOverview/context.js.map +1 -1
  51. package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/fields.js +5 -5
  52. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js +3 -4
  53. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js.map +1 -1
  54. package/dist/components/Company/StateTaxes/StateTaxesList/context.js +3 -4
  55. package/dist/components/Company/StateTaxes/StateTaxesList/context.js.map +1 -1
  56. package/dist/components/Contractor/Address/useAddress.js +5 -6
  57. package/dist/components/Contractor/Address/useAddress.js.map +1 -1
  58. package/dist/components/Contractor/Profile/useContractorProfile.js +33 -34
  59. package/dist/components/Contractor/Profile/useContractorProfile.js.map +1 -1
  60. package/dist/components/Employee/Compensation/management/AddAnotherJob/AddAnotherJob.d.ts +9 -0
  61. package/dist/components/Employee/Compensation/management/AddAnotherJob/AddAnotherJob.js +76 -0
  62. package/dist/components/Employee/Compensation/management/AddAnotherJob/AddAnotherJob.js.map +1 -0
  63. package/dist/components/Employee/Compensation/management/AddAnotherJob/AddAnotherJob.module.scss.js +8 -0
  64. package/dist/components/Employee/Compensation/management/AddAnotherJob/AddAnotherJob.module.scss.js.map +1 -0
  65. package/dist/components/Employee/Compensation/management/EditCompensation/EditCompensation.js +60 -202
  66. package/dist/components/Employee/Compensation/management/EditCompensation/EditCompensation.js.map +1 -1
  67. package/dist/components/Employee/Compensation/management/EditPendingCompensation/EditPendingCompensation.d.ts +25 -0
  68. package/dist/components/Employee/Compensation/management/EditPendingCompensation/EditPendingCompensation.js +79 -0
  69. package/dist/components/Employee/Compensation/management/EditPendingCompensation/EditPendingCompensation.js.map +1 -0
  70. package/dist/components/Employee/Compensation/management/EditPendingCompensation/EditPendingCompensation.module.scss.js +8 -0
  71. package/dist/components/Employee/Compensation/management/EditPendingCompensation/EditPendingCompensation.module.scss.js.map +1 -0
  72. package/dist/components/Employee/Compensation/management/ManagementCompensationFormBody.d.ts +18 -0
  73. package/dist/components/Employee/Compensation/management/ManagementCompensationFormBody.js +171 -0
  74. package/dist/components/Employee/Compensation/management/ManagementCompensationFormBody.js.map +1 -0
  75. package/dist/components/Employee/Compensation/management/index.d.ts +3 -0
  76. package/dist/components/Employee/Compensation/onboarding/EditCompensation/EditCompensation.d.ts +6 -1
  77. package/dist/components/Employee/Compensation/onboarding/EditCompensation/EditCompensation.js +67 -209
  78. package/dist/components/Employee/Compensation/onboarding/EditCompensation/EditCompensation.js.map +1 -1
  79. package/dist/components/Employee/Compensation/onboarding/JobsList/JobsListPresentation.js +36 -36
  80. package/dist/components/Employee/Compensation/onboarding/JobsList/JobsListPresentation.js.map +1 -1
  81. package/dist/components/Employee/Compensation/shared/AddCompensationFormBody.d.ts +18 -0
  82. package/dist/components/Employee/Compensation/shared/AddCompensationFormBody.js +169 -0
  83. package/dist/components/Employee/Compensation/shared/AddCompensationFormBody.js.map +1 -0
  84. package/dist/components/Employee/Compensation/shared/useCompensationForm/compensationSchema.d.ts +16 -0
  85. package/dist/components/Employee/Compensation/shared/useCompensationForm/compensationSchema.js +36 -30
  86. package/dist/components/Employee/Compensation/shared/useCompensationForm/compensationSchema.js.map +1 -1
  87. package/dist/components/Employee/Compensation/shared/useCompensationForm/fields.d.ts +1 -1
  88. package/dist/components/Employee/Compensation/shared/useCompensationForm/fields.js +4 -4
  89. package/dist/components/Employee/Compensation/shared/useCompensationForm/fields.js.map +1 -1
  90. package/dist/components/Employee/Compensation/shared/useCompensationForm/useCompensationForm.js +213 -191
  91. package/dist/components/Employee/Compensation/shared/useCompensationForm/useCompensationForm.js.map +1 -1
  92. package/dist/components/Employee/Compensation/shared/useJobForm/fields.js +6 -6
  93. package/dist/components/Employee/Compensation/shared/useJobForm/useJobForm.d.ts +6 -5
  94. package/dist/components/Employee/Compensation/shared/useJobForm/useJobForm.js +162 -131
  95. package/dist/components/Employee/Compensation/shared/useJobForm/useJobForm.js.map +1 -1
  96. package/dist/components/Employee/Dashboard/BasicDetailsView.js +74 -88
  97. package/dist/components/Employee/Dashboard/BasicDetailsView.js.map +1 -1
  98. package/dist/components/Employee/Dashboard/Dashboard.js +86 -72
  99. package/dist/components/Employee/Dashboard/Dashboard.js.map +1 -1
  100. package/dist/components/Employee/Dashboard/DashboardComponents.d.ts +3 -3
  101. package/dist/components/Employee/Dashboard/DashboardComponents.js +138 -101
  102. package/dist/components/Employee/Dashboard/DashboardComponents.js.map +1 -1
  103. package/dist/components/Employee/Dashboard/DocumentsView.js +17 -10
  104. package/dist/components/Employee/Dashboard/DocumentsView.js.map +1 -1
  105. package/dist/components/Employee/Dashboard/JobAndPayView.js +359 -313
  106. package/dist/components/Employee/Dashboard/JobAndPayView.js.map +1 -1
  107. package/dist/components/Employee/Dashboard/JobAndPayView.module.scss.js +5 -3
  108. package/dist/components/Employee/Dashboard/JobAndPayView.module.scss.js.map +1 -1
  109. package/dist/components/Employee/Dashboard/TaxesView.js +114 -101
  110. package/dist/components/Employee/Dashboard/TaxesView.js.map +1 -1
  111. package/dist/components/Employee/Dashboard/dashboardStateMachine.js +147 -148
  112. package/dist/components/Employee/Dashboard/dashboardStateMachine.js.map +1 -1
  113. package/dist/components/Employee/Dashboard/getPendingCompensationChanges.d.ts +6 -0
  114. package/dist/components/Employee/Dashboard/getPendingCompensationChanges.js +37 -36
  115. package/dist/components/Employee/Dashboard/getPendingCompensationChanges.js.map +1 -1
  116. package/dist/components/Employee/Dashboard/hooks/useEmployeeCompensation.d.ts +2 -2
  117. package/dist/components/Employee/Dashboard/hooks/useEmployeeCompensation.js +34 -35
  118. package/dist/components/Employee/Dashboard/hooks/useEmployeeCompensation.js.map +1 -1
  119. package/dist/components/Employee/Deductions/DeductionsForm/StandardDeductionForm.js +57 -57
  120. package/dist/components/Employee/Deductions/DeductionsForm/StandardDeductionForm.js.map +1 -1
  121. package/dist/components/Employee/Deductions/shared/useChildSupportGarnishmentForm/childSupportGarnishmentFormSchema.d.ts +14 -5
  122. package/dist/components/Employee/Deductions/shared/useChildSupportGarnishmentForm/childSupportGarnishmentFormSchema.js +55 -36
  123. package/dist/components/Employee/Deductions/shared/useChildSupportGarnishmentForm/childSupportGarnishmentFormSchema.js.map +1 -1
  124. package/dist/components/Employee/Deductions/shared/useChildSupportGarnishmentForm/fields.js +8 -8
  125. package/dist/components/Employee/Deductions/shared/useChildSupportGarnishmentForm/useChildSupportGarnishmentForm.js +18 -18
  126. package/dist/components/Employee/Deductions/shared/useChildSupportGarnishmentForm/useChildSupportGarnishmentForm.js.map +1 -1
  127. package/dist/components/Employee/Deductions/shared/useDeductionForm/fields.js +4 -4
  128. package/dist/components/Employee/Deductions/shared/useDeductionForm/useDeductionForm.d.ts +3 -3
  129. package/dist/components/Employee/Deductions/shared/useDeductionForm/useDeductionForm.js.map +1 -1
  130. package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/useDocumentList.js +3 -4
  131. package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  132. package/dist/components/Employee/Documents/shared/useSignEmployeeForm/fields.js +1 -1
  133. package/dist/components/Employee/EmployeeList/management/ManagementEmployeeList.js +37 -40
  134. package/dist/components/Employee/EmployeeList/management/ManagementEmployeeList.js.map +1 -1
  135. package/dist/components/Employee/EmployeeList/management/ManagementEmployeeListView.d.ts +1 -2
  136. package/dist/components/Employee/EmployeeList/management/ManagementEmployeeListView.js +64 -71
  137. package/dist/components/Employee/EmployeeList/management/ManagementEmployeeListView.js.map +1 -1
  138. package/dist/components/Employee/EmployeeListFlow/EmployeeListFlow.d.ts +2 -0
  139. package/dist/components/Employee/EmployeeListFlow/EmployeeListFlow.js +25 -0
  140. package/dist/components/Employee/EmployeeListFlow/EmployeeListFlow.js.map +1 -0
  141. package/dist/components/Employee/EmployeeListFlow/EmployeeListFlowComponents.d.ts +13 -0
  142. package/dist/components/Employee/EmployeeListFlow/EmployeeListFlowComponents.js +37 -0
  143. package/dist/components/Employee/EmployeeListFlow/EmployeeListFlowComponents.js.map +1 -0
  144. package/dist/components/Employee/EmployeeListFlow/employeeListStateMachine.d.ts +6 -0
  145. package/dist/components/Employee/EmployeeListFlow/employeeListStateMachine.js +69 -0
  146. package/dist/components/Employee/EmployeeListFlow/employeeListStateMachine.js.map +1 -0
  147. package/dist/components/Employee/EmployeeListFlow/index.d.ts +3 -0
  148. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/fields.js +4 -4
  149. package/dist/components/Employee/HomeAddress/management/HomeAddress.js +15 -12
  150. package/dist/components/Employee/HomeAddress/management/HomeAddress.js.map +1 -1
  151. package/dist/components/Employee/HomeAddress/management/HomeAddressView.d.ts +2 -1
  152. package/dist/components/Employee/HomeAddress/management/HomeAddressView.js +170 -157
  153. package/dist/components/Employee/HomeAddress/management/HomeAddressView.js.map +1 -1
  154. package/dist/components/Employee/HomeAddress/management/useHomeAddressManagement.js +56 -55
  155. package/dist/components/Employee/HomeAddress/management/useHomeAddressManagement.js.map +1 -1
  156. package/dist/components/Employee/PaymentMethod/onboarding/BankForm.js +20 -20
  157. package/dist/components/Employee/PaymentMethod/onboarding/BankForm.js.map +1 -1
  158. package/dist/components/Employee/PaymentMethod/shared/useBankForm/fields.js +1 -1
  159. package/dist/components/Employee/PaymentMethod/shared/useSplitPaymentsForm/splitFieldFactory.d.ts +1 -1
  160. package/dist/components/Employee/PaymentMethod/shared/useSplitPaymentsForm/splitFieldFactory.js +4 -4
  161. package/dist/components/Employee/PaymentMethod/shared/useSplitPaymentsForm/splitFieldFactory.js.map +1 -1
  162. package/dist/components/Employee/Profile/shared/useEmployeeDetailsForm/fields.js +8 -8
  163. package/dist/components/Employee/Profile/shared/useHomeAddressForm/fields.js +5 -5
  164. package/dist/components/Employee/Profile/shared/useHomeAddressForm/homeAddressSchema.d.ts +0 -1
  165. package/dist/components/Employee/Profile/shared/useHomeAddressForm/homeAddressSchema.js +11 -12
  166. package/dist/components/Employee/Profile/shared/useHomeAddressForm/homeAddressSchema.js.map +1 -1
  167. package/dist/components/Employee/Profile/shared/useHomeAddressForm/homeAddressSchema.test.d.ts +1 -0
  168. package/dist/components/Employee/Profile/shared/useHomeAddressForm/useHomeAddressForm.d.ts +6 -1
  169. package/dist/components/Employee/Profile/shared/useHomeAddressForm/useHomeAddressForm.js +95 -94
  170. package/dist/components/Employee/Profile/shared/useHomeAddressForm/useHomeAddressForm.js.map +1 -1
  171. package/dist/components/Employee/Profile/shared/useWorkAddressForm/fields.js +4 -4
  172. package/dist/components/Employee/Profile/shared/useWorkAddressForm/useWorkAddressForm.d.ts +6 -1
  173. package/dist/components/Employee/Profile/shared/useWorkAddressForm/useWorkAddressForm.js +87 -86
  174. package/dist/components/Employee/Profile/shared/useWorkAddressForm/useWorkAddressForm.js.map +1 -1
  175. package/dist/components/Employee/StateTaxes/shared/EmployeeStateTaxesView.js +18 -18
  176. package/dist/components/Employee/StateTaxes/shared/EmployeeStateTaxesView.js.map +1 -1
  177. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fieldComponents.js +8 -8
  178. package/dist/components/Employee/Taxes/useTaxes.js +3 -4
  179. package/dist/components/Employee/Taxes/useTaxes.js.map +1 -1
  180. package/dist/components/Employee/WorkAddress/management/WorkAddress.js +14 -11
  181. package/dist/components/Employee/WorkAddress/management/WorkAddress.js.map +1 -1
  182. package/dist/components/Employee/WorkAddress/management/WorkAddressView.d.ts +2 -1
  183. package/dist/components/Employee/WorkAddress/management/WorkAddressView.js +96 -89
  184. package/dist/components/Employee/WorkAddress/management/WorkAddressView.js.map +1 -1
  185. package/dist/components/Employee/WorkAddress/management/useWorkAddressManagement.js +61 -60
  186. package/dist/components/Employee/WorkAddress/management/useWorkAddressManagement.js.map +1 -1
  187. package/dist/components/Employee/exports/employeeManagement.d.ts +2 -0
  188. package/dist/components/Employee/exports/employeeManagement.js +18 -16
  189. package/dist/components/Employee/exports/employeeManagement.js.map +1 -1
  190. package/dist/components/Employee/index.d.ts +2 -0
  191. package/dist/components/Employee/index.js +32 -30
  192. package/dist/components/Employee/index.js.map +1 -1
  193. package/dist/components/Flow/FlowHeader.js +34 -31
  194. package/dist/components/Flow/FlowHeader.js.map +1 -1
  195. package/dist/components/Flow/useFlow.d.ts +12 -0
  196. package/dist/components/Flow/useFlow.js.map +1 -1
  197. package/dist/components/Payroll/GrossUpModal/GrossUpModal.js +2 -3
  198. package/dist/components/Payroll/GrossUpModal/GrossUpModal.js.map +1 -1
  199. package/dist/components/Payroll/usePreparedPayrollData.js +2 -3
  200. package/dist/components/Payroll/usePreparedPayrollData.js.map +1 -1
  201. package/dist/components/TimeOff/PolicyList/PolicyList.js +92 -69
  202. package/dist/components/TimeOff/PolicyList/PolicyList.js.map +1 -1
  203. package/dist/components/TimeOff/PolicyList/PolicyListPresentation.js +23 -23
  204. package/dist/components/TimeOff/PolicyList/PolicyListPresentation.js.map +1 -1
  205. package/dist/components/TimeOff/TimeOffFlow/TimeOffFlowComponents.d.ts +1 -1
  206. package/dist/components/TimeOff/TimeOffFlow/TimeOffFlowComponents.js.map +1 -1
  207. package/dist/components/TimeOff/TimeOffFlow/timeOffStateMachine.js +73 -56
  208. package/dist/components/TimeOff/TimeOffFlow/timeOffStateMachine.js.map +1 -1
  209. package/dist/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.js +58 -58
  210. package/dist/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.js.map +1 -1
  211. package/dist/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormPresentation.d.ts +1 -1
  212. package/dist/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormPresentation.js +91 -87
  213. package/dist/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormPresentation.js.map +1 -1
  214. package/dist/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormTypes.d.ts +2 -0
  215. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesHoliday.js +91 -125
  216. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesHoliday.js.map +1 -1
  217. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentation.d.ts +1 -1
  218. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentation.js +60 -91
  219. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentation.js.map +1 -1
  220. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentation.module.scss.js +4 -4
  221. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentationTypes.d.ts +0 -16
  222. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesTimeOff.js +139 -225
  223. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesTimeOff.js.map +1 -1
  224. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/useSelectEmployeesData.d.ts +7 -3
  225. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/useSelectEmployeesData.js +78 -54
  226. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/useSelectEmployeesData.js.map +1 -1
  227. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/useSelectEmployeesData.test.d.ts +1 -0
  228. package/dist/components/TimeOff/TimeOffPolicyDetail/EditEmployeeBalanceModal.js +12 -11
  229. package/dist/components/TimeOff/TimeOffPolicyDetail/EditEmployeeBalanceModal.js.map +1 -1
  230. package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetail.js +177 -147
  231. package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetail.js.map +1 -1
  232. package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetailPresentation.js +34 -34
  233. package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetailPresentation.js.map +1 -1
  234. package/dist/components/TimeOff/shared/EmployeeTable/EmployeeTable.d.ts +1 -1
  235. package/dist/components/TimeOff/shared/EmployeeTable/EmployeeTable.js +38 -36
  236. package/dist/components/TimeOff/shared/EmployeeTable/EmployeeTable.js.map +1 -1
  237. package/dist/components/TimeOff/shared/EmployeeTable/EmployeeTableTypes.d.ts +2 -0
  238. package/dist/helpers/breadcrumbHelpers.d.ts +1 -1
  239. package/dist/helpers/breadcrumbHelpers.js.map +1 -1
  240. package/dist/helpers/federalEin.d.ts +1 -0
  241. package/dist/helpers/federalEin.js.map +1 -1
  242. package/dist/helpers/mask.d.ts +8 -4
  243. package/dist/helpers/mask.js.map +1 -1
  244. package/dist/helpers/rem.d.ts +2 -1
  245. package/dist/helpers/rem.js.map +1 -1
  246. package/dist/hooks/useAsyncError.d.ts +1 -0
  247. package/dist/hooks/useAsyncError.js.map +1 -1
  248. package/dist/hooks/useForkRef/useForkRef.d.ts +1 -0
  249. package/dist/hooks/useForkRef/useForkRef.js.map +1 -1
  250. package/dist/i18n/I18n.d.ts +9 -1
  251. package/dist/i18n/I18n.js.map +1 -1
  252. package/dist/i18n/en/Company.TimeOff.EmployeeTable.json.js +14 -14
  253. package/dist/i18n/en/Company.TimeOff.SelectEmployees.json.js +16 -22
  254. package/dist/i18n/en/Company.TimeOff.SelectEmployees.json.js.map +1 -1
  255. package/dist/i18n/en/Company.TimeOff.TimeOffPolicies.json.js +17 -15
  256. package/dist/i18n/en/Company.TimeOff.TimeOffPolicies.json.js.map +1 -1
  257. package/dist/i18n/en/Company.TimeOff.TimeOffPolicyDetails.json.js +9 -9
  258. package/dist/i18n/en/Employee.Compensation.json.js +66 -58
  259. package/dist/i18n/en/Employee.Compensation.json.js.map +1 -1
  260. package/dist/i18n/en/Employee.Dashboard.json.js +28 -24
  261. package/dist/i18n/en/Employee.Dashboard.json.js.map +1 -1
  262. package/dist/i18n/en/Employee.HomeAddress.Management.json.js +12 -10
  263. package/dist/i18n/en/Employee.HomeAddress.Management.json.js.map +1 -1
  264. package/dist/i18n/en/Employee.ManagementEmployeeList.json.js +32 -30
  265. package/dist/i18n/en/Employee.ManagementEmployeeList.json.js.map +1 -1
  266. package/dist/i18n/en/Employee.PaymentMethod.json.js +25 -25
  267. package/dist/i18n/en/Employee.StateTaxes.json.js +12 -10
  268. package/dist/i18n/en/Employee.StateTaxes.json.js.map +1 -1
  269. package/dist/i18n/en/Employee.WorkAddress.Management.json.js +16 -14
  270. package/dist/i18n/en/Employee.WorkAddress.Management.json.js.map +1 -1
  271. package/dist/i18n/en/common.json.d.ts +14 -0
  272. package/dist/partner-hook-utils/form/fields/DatePickerHookField.js +33 -32
  273. package/dist/partner-hook-utils/form/fields/DatePickerHookField.js.map +1 -1
  274. package/dist/partner-hook-utils/types.d.ts +4 -0
  275. package/dist/shared/constants.d.ts +2 -0
  276. package/dist/shared/constants.js +13 -12
  277. package/dist/shared/constants.js.map +1 -1
  278. package/dist/style.css +1 -1
  279. package/dist/types/hooks.d.ts +1 -1
  280. package/dist/types/i18next.d.ts +30 -29
  281. package/dist/types/observability.d.ts +1 -1
  282. package/docs/reference/endpoint-inventory.json +24 -8
  283. package/package.json +30 -27
  284. package/dist/components/Employee/Dashboard/CompensationCard.d.ts +0 -13
@@ -1,142 +1,146 @@
1
- import { jsxs as d, jsx as t } from "react/jsx-runtime";
2
- import { useCallback as ce, useState as J } from "react";
3
- import { useTranslation as v } from "react-i18next";
4
- import { useGustoEmbeddedContext as ze } from "@gusto/embedded-api/react-query/_context";
5
- import { payrollsGetPayStub as Qe } from "@gusto/embedded-api/funcs/payrollsGetPayStub";
6
- import { useErrorBoundary as Ze } from "react-error-boundary";
7
- import { useJobsAndCompensationsDeleteMutation as et } from "@gusto/embedded-api/react-query/jobsAndCompensationsDelete";
8
- import { usePendingChangeDetailRenderer as tt } from "./usePendingChangeDetailRenderer.js";
9
- import { PendingChangesReviewModal as nt } from "./PendingChangesReviewModal.js";
10
- import ot from "./JobAndPayView.module.scss.js";
11
- import { Flex as c } from "../../Common/Flex/Flex.js";
12
- import { useComponentContext as it } from "../../../contexts/ComponentAdapter/useComponentContext.js";
1
+ import { jsx as t, jsxs as f, Fragment as rn } from "react/jsx-runtime";
2
+ import { useCallback as pe, useState as R, useEffect as dn } from "react";
3
+ import { useTranslation as k } from "react-i18next";
4
+ import { useGustoEmbeddedContext as cn } from "@gusto/embedded-api/react-query/_context";
5
+ import { payrollsGetPayStub as ln } from "@gusto/embedded-api/funcs/payrollsGetPayStub";
6
+ import { useErrorBoundary as un } from "react-error-boundary";
7
+ import { useJobsAndCompensationsDeleteMutation as mn } from "@gusto/embedded-api/react-query/jobsAndCompensationsDelete";
8
+ import { usePendingChangeDetailRenderer as pn } from "./usePendingChangeDetailRenderer.js";
9
+ import { PendingChangesReviewModal as yn } from "./PendingChangesReviewModal.js";
10
+ import ye from "./JobAndPayView.module.scss.js";
11
+ import { Flex as j } from "../../Common/Flex/Flex.js";
12
+ import { useComponentContext as bn } from "../../../contexts/ComponentAdapter/useComponentContext.js";
13
13
  import "classnames";
14
- import { componentEvents as P, FlsaStatus as le, PAYMENT_METHODS as at } from "../../../shared/constants.js";
15
- import { Loading as x } from "../../Common/Loading/Loading.js";
16
- import { EmptyData as O } from "../../Common/EmptyData/EmptyData.js";
17
- import { BaseLayout as rt } from "../../Base/Base.js";
18
- import { composeErrorHandler as st } from "../../../partner-hook-utils/composeErrorHandler.js";
19
- import { readableStreamToBlob as dt } from "../../../helpers/readableStreamToBlob.js";
20
- import { formatDateToStringDate as ct, formatDateLongWithYear as j } from "../../../helpers/dateFormatting.js";
21
- import { useFormatCompensationRate as lt } from "../../../helpers/formattedStrings.js";
22
- import me from "../../../hooks/useNumberFormatter.js";
23
- import { useI18n as _ } from "../../../i18n/I18n.js";
24
- import { useDeleteBankAccount as mt } from "../PaymentMethod/shared/useDeleteBankAccount.js";
25
- import { DeleteBankAccountDialog as ut } from "../PaymentMethod/shared/DeleteBankAccountDialog.js";
26
- import { usePaymentMethodList as pt } from "../PaymentMethod/shared/usePaymentMethodList.js";
27
- import { useDeductionsList as yt } from "../Deductions/shared/useDeductionsList.js";
28
- import { useDeleteDeduction as bt } from "../Deductions/shared/useDeleteDeduction.js";
29
- import { DeleteDeductionDialog as gt } from "../Deductions/shared/DeleteDeductionDialog.js";
30
- import { formatDeductionAmount as ht } from "../Deductions/shared/formatDeductionAmount.js";
31
- import k from "../../../assets/icons/plus-circle.svg.js";
32
- import ft from "../../../assets/icons/percent-circle.svg.js";
33
- import Pt from "../../../assets/icons/download-cloud.svg.js";
34
- import R from "../../../assets/icons/trashcan.svg.js";
35
- import ue from "../../../assets/icons/pencil.svg.js";
36
- import { useEmployeeCompensation as Ct } from "./hooks/useEmployeeCompensation.js";
37
- import { HamburgerMenu as H } from "../../Common/HamburgerMenu/HamburgerMenu.js";
38
- import { useDataView as w } from "../../Common/DataView/useDataView.js";
39
- import { DataView as T } from "../../Common/DataView/DataView.js";
40
- function pe(s) {
41
- if (s === void 0) return null;
42
- const m = parseFloat(s);
43
- return Number.isFinite(m) ? m : null;
14
+ import { componentEvents as P, FlsaStatus as be, PAYMENT_METHODS as gn } from "../../../shared/constants.js";
15
+ import { Loading as v } from "../../Common/Loading/Loading.js";
16
+ import { EmptyData as _ } from "../../Common/EmptyData/EmptyData.js";
17
+ import { BaseLayout as hn } from "../../Base/Base.js";
18
+ import { composeErrorHandler as fn } from "../../../partner-hook-utils/composeErrorHandler.js";
19
+ import { readableStreamToBlob as Pn } from "../../../helpers/readableStreamToBlob.js";
20
+ import { formatDateToStringDate as Cn, formatDateLongWithYear as L } from "../../../helpers/dateFormatting.js";
21
+ import { useFormatCompensationRate as An } from "../../../helpers/formattedStrings.js";
22
+ import ge from "../../../hooks/useNumberFormatter.js";
23
+ import { useI18n as F } from "../../../i18n/I18n.js";
24
+ import { useDeleteBankAccount as Dn } from "../PaymentMethod/shared/useDeleteBankAccount.js";
25
+ import { DeleteBankAccountDialog as jn } from "../PaymentMethod/shared/DeleteBankAccountDialog.js";
26
+ import { usePaymentMethodList as Ln } from "../PaymentMethod/shared/usePaymentMethodList.js";
27
+ import { useDeductionsList as wn } from "../Deductions/shared/useDeductionsList.js";
28
+ import { useDeleteDeduction as En } from "../Deductions/shared/useDeleteDeduction.js";
29
+ import { DeleteDeductionDialog as kn } from "../Deductions/shared/DeleteDeductionDialog.js";
30
+ import { formatDeductionAmount as vn } from "../Deductions/shared/formatDeductionAmount.js";
31
+ import U from "../../../assets/icons/plus-circle.svg.js";
32
+ import Un from "../../../assets/icons/percent-circle.svg.js";
33
+ import Sn from "../../../assets/icons/download-cloud.svg.js";
34
+ import V from "../../../assets/icons/trashcan.svg.js";
35
+ import he from "../../../assets/icons/pencil.svg.js";
36
+ import { useEmployeeCompensation as Bn } from "./hooks/useEmployeeCompensation.js";
37
+ import { VisuallyHidden as Jn } from "../../Common/VisuallyHidden/VisuallyHidden.js";
38
+ import { HamburgerMenu as Y } from "../../Common/HamburgerMenu/HamburgerMenu.js";
39
+ import { useDataView as S } from "../../Common/DataView/useDataView.js";
40
+ import { DataView as B } from "../../Common/DataView/DataView.js";
41
+ function fe(r) {
42
+ if (r === void 0) return null;
43
+ const u = parseFloat(r);
44
+ return Number.isFinite(u) ? u : null;
44
45
  }
45
- function dn({
46
- employeeId: s,
47
- onEvent: m,
48
- onEditCompensation: F,
49
- onAddJob: ye,
50
- onAddAnotherJob: be,
51
- onAddDeduction: ge,
52
- onEditDeduction: he
46
+ function Ct({
47
+ employeeId: r,
48
+ onEvent: u,
49
+ onEditCompensation: W,
50
+ onAddJob: Pe,
51
+ onAddAnotherJob: Ce,
52
+ onAddDeduction: Ae,
53
+ onEditDeduction: De
53
54
  }) {
54
- _("Employee.PaymentMethod"), _("Employee.Compensation"), _("Employee.Deductions");
55
- const { t: n } = v("Employee.Dashboard"), { t: C } = v("Employee.PaymentMethod"), { t: fe } = v("Employee.Compensation"), { t: S } = v("Employee.Deductions"), o = it(), Y = lt(), B = me("currency"), Pe = me("percent"), V = ze(), { showBoundary: W } = Ze(), y = Ct({ employeeId: s }), {
55
+ F("Employee.PaymentMethod"), F("Employee.Compensation"), F("Employee.Deductions");
56
+ const { t: n } = k("Employee.Dashboard"), { t: C } = k("Employee.PaymentMethod"), { t: je } = k("Employee.Compensation"), { t: J } = k("Employee.Deductions"), i = bn(), I = An(), N = ge("currency"), Le = ge("percent"), G = cn(), { showBoundary: q } = un(), p = Bn({ employeeId: r }), {
56
57
  jobs: A,
57
- primaryFlsaStatus: Ce,
58
- pendingChanges: L,
59
- hasMultipleJobs: Ae,
60
- payStubs: De,
61
- employeeFirstName: M
62
- } = y.data, je = y.pagination.payStubs, G = y.status.cancellingCompensationUuid, { cancelPendingChange: I } = y.actions, U = y.status.isEmployeeLoading, Le = y.status.isPayStubsLoading, q = ce(
58
+ primaryFlsaStatus: we,
59
+ pendingChanges: K,
60
+ hasMultipleJobs: Ee,
61
+ payStubs: ke,
62
+ employeeFirstName: x
63
+ } = p.data, ve = p.pagination.payStubs, z = p.status.cancellingCompensationUuid, { cancelPendingChange: X } = p.actions, T = p.status.isCompensationLoading, Ue = p.status.isPayStubsLoading, $ = pe(
63
64
  async (e) => {
64
- await I(e) && m(P.EMPLOYEE_COMPENSATION_CHANGE_CANCELLED, {
65
- employeeId: s,
65
+ await X(e) && u(P.EMPLOYEE_COMPENSATION_CHANGE_CANCELLED, {
66
+ employeeId: r,
66
67
  compensationId: e.compensationUuid
67
68
  });
68
69
  },
69
- [I, m, s]
70
- ), [Ee, K] = J(
70
+ [X, u, r]
71
+ ), [Se, Q] = R(
71
72
  () => /* @__PURE__ */ new Set()
72
- ), ve = ce(
73
+ ), Be = pe(
73
74
  async (e) => {
74
- const i = window.open("", "_blank", "noopener,noreferrer"), h = n("jobAndPay.paystubs.downloadLoadingMessage");
75
- if (i) {
76
- const a = i.document;
77
- a.title = h;
78
- const u = a.createElement("style");
79
- u.textContent = "body{font-family:system-ui,-apple-system,sans-serif;display:flex;align-items:center;justify-content:center;height:100vh;margin:0;color:#444;gap:12px}.spinner{width:20px;height:20px;border:2px solid #ccc;border-top-color:#444;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}", a.head.appendChild(u);
80
- const f = a.createElement("div");
81
- f.className = "spinner", f.setAttribute("aria-hidden", "true");
82
- const de = a.createElement("span");
83
- de.textContent = h, a.body.replaceChildren(f, de);
75
+ const o = window.open("", "_blank"), d = n("jobAndPay.paystubs.downloadLoadingMessage");
76
+ if (o) {
77
+ const a = o.document;
78
+ a.title = d;
79
+ const c = a.createElement("style");
80
+ c.textContent = "body{font-family:system-ui,-apple-system,sans-serif;display:flex;align-items:center;justify-content:center;height:100vh;margin:0;color:#444;gap:12px}.spinner{width:20px;height:20px;border:2px solid #ccc;border-top-color:#444;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}", a.head.appendChild(c);
81
+ const g = a.createElement("div");
82
+ g.className = "spinner", g.setAttribute("aria-hidden", "true");
83
+ const me = a.createElement("span");
84
+ me.textContent = d, a.body.replaceChildren(g, me);
84
85
  }
85
- K((a) => {
86
- const u = new Set(a);
87
- return u.add(e), u;
86
+ Q((a) => {
87
+ const c = new Set(a);
88
+ return c.add(e), c;
88
89
  });
89
90
  try {
90
- const a = await Qe(V, {
91
+ const a = await ln(G, {
91
92
  payrollId: e,
92
- employeeId: s
93
+ employeeId: r
93
94
  });
94
95
  if (!a.value?.responseStream)
95
96
  throw new Error(n("jobAndPay.paystubs.downloadError"));
96
- const u = await dt(a.value.responseStream, "application/pdf"), f = URL.createObjectURL(u);
97
- i && (i.location.href = f), URL.revokeObjectURL(f);
97
+ const c = await Pn(a.value.responseStream, "application/pdf"), g = URL.createObjectURL(c);
98
+ o ? (o.addEventListener("load", () => {
99
+ URL.revokeObjectURL(g);
100
+ }), o.location.href = g) : URL.revokeObjectURL(g);
98
101
  } catch (a) {
99
- i && i.close(), W(a instanceof Error ? a : new Error(String(a)));
102
+ o && o.close(), q(a instanceof Error ? a : new Error(String(a)));
100
103
  } finally {
101
- K((a) => {
102
- const u = new Set(a);
103
- return u.delete(e), u;
104
+ Q((a) => {
105
+ const c = new Set(a);
106
+ return c.delete(e), c;
104
107
  });
105
108
  }
106
109
  },
107
- [V, s, n, W]
108
- ), [D, N] = J(null), { mutateAsync: xe, isPending: X } = et(), ke = async () => {
110
+ [G, r, n, q]
111
+ ), [D, M] = R(null), { mutateAsync: Je, isPending: Z } = mn(), Ne = async () => {
109
112
  if (!D) return;
110
113
  const e = D.uuid;
111
- await xe({ request: { jobId: e } }), m(P.EMPLOYEE_JOB_DELETED, { employeeId: s, jobId: e }), N(null);
112
- }, r = A.length === 1 ? A[0] : void 0, g = Ae, we = ct(/* @__PURE__ */ new Date()) ?? "", Te = A.find((e) => e.primary)?.compensations?.some(
113
- (e) => e.effectiveDate !== void 0 && e.effectiveDate > we && e.flsaStatus !== le.NONEXEMPT
114
- ) ?? !1, Se = A.length >= 1 && Ce === le.NONEXEMPT && !Te, $ = r ? pe(r.rate) : null, z = r?.compensations?.find(
115
- (e) => e.uuid === r.currentCompensationUuid
116
- ), Be = z?.effectiveDate ? /* @__PURE__ */ d(c, { flexDirection: "column", gap: 0, children: [
117
- /* @__PURE__ */ t(o.Text, { variant: "supporting", children: n("jobAndPay.compensation.effectiveDate") }),
118
- /* @__PURE__ */ t(o.Text, { children: j(z.effectiveDate) })
119
- ] }) : null, [Me, Q] = J(!1), Ue = tt(M), Z = L.length > 0, ee = g && L.length > 1, Ne = Z && !ee, b = L[0], l = pt({ employeeId: s }), te = l.isLoading ? void 0 : l.data.paymentMethod, E = l.isLoading ? [] : l.data.bankAccounts, Je = l.isLoading ? void 0 : l.status.deletePendingBankAccountUuid, { pendingDeleteAccount: ne, setPendingDeleteAccount: oe, handleConfirmDelete: Oe } = mt(async (e) => {
114
+ await Je({ request: { jobId: e } }), u(P.EMPLOYEE_JOB_DELETED, { employeeId: r, jobId: e }), M(null);
115
+ }, s = A.length === 1 ? A[0] : void 0, h = Ee, xe = Cn(/* @__PURE__ */ new Date()) ?? "", Te = A.find((e) => e.primary)?.compensations?.some(
116
+ (e) => e.effectiveDate !== void 0 && e.effectiveDate > xe && e.flsaStatus !== be.NONEXEMPT
117
+ ) ?? !1, Me = A.length >= 1 && we === be.NONEXEMPT && !Te, ee = s ? fe(s.rate) : null, ne = s?.compensations?.find(
118
+ (e) => e.uuid === s.currentCompensationUuid
119
+ ), w = /* @__PURE__ */ t("span", { "aria-label": n("listEmptyPlaceholder"), children: "–" }), Oe = s?.paymentUnit ? s.paymentUnit === "Hour" ? n("jobAndPay.compensation.types.hourly") : s.paymentUnit === "Salary" || s.paymentUnit === "Year" ? n("jobAndPay.compensation.types.salary") : s.paymentUnit : null, [He, O] = R(!1), Re = pn(x), _e = K.filter((e) => e.isNewJob), y = K.filter((e) => !e.isNewJob);
120
+ dn(() => {
121
+ y.length === 0 && O(!1);
122
+ }, [y.length]);
123
+ const H = new Set(_e.map((e) => e.jobUuid)), Fe = s ? H.has(s.uuid) : !1, Ve = H.size > 0, te = new Set(y.map((e) => e.jobUuid)), Ye = s ? te.has(s.uuid) : !1, oe = y.length > 0, ie = h && y.length > 1, We = oe && !ie, b = y[0], l = Ln({ employeeId: r }), ae = l.isLoading ? void 0 : l.data.paymentMethod, E = l.isLoading ? [] : l.data.bankAccounts, Ie = l.isLoading ? void 0 : l.status.deletePendingBankAccountUuid, { pendingDeleteAccount: se, setPendingDeleteAccount: re, handleConfirmDelete: Ge } = Dn(async (e) => {
120
124
  if (l.isLoading) return;
121
- const i = await l.actions.onDelete(e);
122
- i && m(P.EMPLOYEE_BANK_ACCOUNT_DELETED, i.data);
123
- }), p = yt({ employeeId: s }), _e = p.isLoading ? [] : p.data.deductions, ie = p.isLoading ? void 0 : p.status.deletingGarnishmentUuid, {
124
- pendingDeleteDeduction: ae,
125
- setPendingDeleteDeduction: re,
126
- handleConfirmDelete: Re
127
- } = bt(async (e) => {
128
- if (p.isLoading) return;
129
- const i = await p.actions.onDelete(e);
130
- i && m(P.EMPLOYEE_DEDUCTION_DELETED, i.data.garnishment);
131
- }), He = st([y, l, p]), Fe = [
125
+ const o = await l.actions.onDelete(e);
126
+ o && u(P.EMPLOYEE_BANK_ACCOUNT_DELETED, o.data);
127
+ }), m = wn({ employeeId: r }), qe = m.isLoading ? [] : m.data.deductions, de = m.isLoading ? void 0 : m.status.deletingGarnishmentUuid, {
128
+ pendingDeleteDeduction: ce,
129
+ setPendingDeleteDeduction: le,
130
+ handleConfirmDelete: Ke
131
+ } = En(async (e) => {
132
+ if (m.isLoading) return;
133
+ const o = await m.actions.onDelete(e);
134
+ o && u(P.EMPLOYEE_DEDUCTION_DELETED, o.data.garnishment);
135
+ }), ze = fn([p, l, m]), Xe = [
132
136
  {
133
137
  key: "jobTitle",
134
138
  title: n("jobAndPay.compensation.columns.jobTitle"),
135
139
  render: (e) => {
136
- const i = pe(e.rate);
137
- return /* @__PURE__ */ d(c, { flexDirection: "column", gap: 0, children: [
138
- /* @__PURE__ */ t(o.Text, { children: e.title || "-" }),
139
- i !== null && e.paymentUnit ? /* @__PURE__ */ t(o.Text, { variant: "supporting", children: Y(i, e.paymentUnit) }) : null
140
+ const o = e.compensations?.find((a) => a.uuid === e.currentCompensationUuid), d = fe(e.rate);
141
+ return /* @__PURE__ */ f(rn, { children: [
142
+ o?.title || "-",
143
+ d !== null && e.paymentUnit ? /* @__PURE__ */ t(i.Text, { variant: "supporting", size: "sm", children: I(d, e.paymentUnit) }) : null
140
144
  ] });
141
145
  }
142
146
  },
@@ -144,49 +148,64 @@ function dn({
144
148
  key: "payType",
145
149
  title: n("jobAndPay.compensation.columns.payType"),
146
150
  render: (e) => {
147
- const i = e.compensations?.find(
148
- (h) => h.uuid === e.currentCompensationUuid
151
+ const o = e.compensations?.find(
152
+ (d) => d.uuid === e.currentCompensationUuid
149
153
  )?.flsaStatus;
150
- return i !== void 0 ? fe(`flsaStatusLabels.${i}`) : "-";
154
+ return o !== void 0 ? je(`flsaStatusLabels.${o}`) : "-";
151
155
  }
152
156
  },
153
157
  {
154
158
  key: "effectiveDate",
155
159
  title: n("jobAndPay.compensation.columns.effectiveDate"),
156
160
  render: (e) => {
157
- const i = e.compensations?.find((h) => h.uuid === e.currentCompensationUuid);
158
- return i?.effectiveDate ? j(i.effectiveDate) : "-";
161
+ const o = e.compensations?.find((d) => d.uuid === e.currentCompensationUuid);
162
+ return o?.effectiveDate ? L(o.effectiveDate) : "-";
159
163
  }
160
- }
161
- ], Ye = w({
162
- data: A,
163
- columns: Fe,
164
- itemMenu: (e) => /* @__PURE__ */ t(
165
- H,
164
+ },
165
+ ...Ve ? [
166
166
  {
167
- triggerLabel: n("jobAndPay.compensation.hamburgerTitle"),
168
- isLoading: X,
169
- items: [
167
+ key: "status",
168
+ title: /* @__PURE__ */ t(Jn, { children: n("jobAndPay.compensation.columns.status") }),
169
+ render: (e) => H.has(e.uuid) ? /* @__PURE__ */ t(i.Badge, { status: "warning", children: n("jobAndPay.compensation.pendingStatus") }) : null
170
+ }
171
+ ] : []
172
+ ], $e = S({
173
+ data: A,
174
+ columns: Xe,
175
+ itemMenu: (e) => {
176
+ const d = [
177
+ ...te.has(e.uuid) ? [] : [
170
178
  {
171
179
  label: n("jobAndPay.compensation.editJobCta"),
172
- icon: /* @__PURE__ */ t(ue, { "aria-hidden": !0 }),
180
+ icon: /* @__PURE__ */ t(he, { "aria-hidden": !0 }),
173
181
  onClick: () => {
174
- F?.(e);
182
+ W?.(e);
175
183
  }
176
- },
177
- ...e.primary ? [] : [
178
- {
179
- label: n("jobAndPay.compensation.deleteJobCta"),
180
- icon: /* @__PURE__ */ t(R, { "aria-hidden": !0 }),
181
- onClick: () => {
182
- N({ uuid: e.uuid, title: e.title ?? "" });
183
- }
184
+ }
185
+ ],
186
+ ...e.primary ? [] : [
187
+ {
188
+ label: n("jobAndPay.compensation.deleteJobCta"),
189
+ icon: /* @__PURE__ */ t(V, { "aria-hidden": !0 }),
190
+ onClick: () => {
191
+ const a = e.compensations?.find(
192
+ (c) => c.uuid === e.currentCompensationUuid
193
+ );
194
+ M({ uuid: e.uuid, title: a?.title ?? "" });
184
195
  }
185
- ]
196
+ }
186
197
  ]
187
- }
188
- )
189
- }), Ve = [
198
+ ];
199
+ return d.length === 0 ? null : /* @__PURE__ */ t(
200
+ Y,
201
+ {
202
+ triggerLabel: n("jobAndPay.compensation.hamburgerTitle"),
203
+ isLoading: Z,
204
+ items: d
205
+ }
206
+ );
207
+ }
208
+ }), Qe = [
190
209
  {
191
210
  key: "nickname",
192
211
  title: n("jobAndPay.payment.nickname"),
@@ -202,7 +221,7 @@ function dn({
202
221
  title: n("jobAndPay.payment.accountType"),
203
222
  render: (e) => e.accountType || "-"
204
223
  }
205
- ], We = [
224
+ ], Ze = [
206
225
  {
207
226
  key: "description",
208
227
  title: n("jobAndPay.deductions.deduction"),
@@ -216,25 +235,25 @@ function dn({
216
235
  {
217
236
  key: "amount",
218
237
  title: n("jobAndPay.deductions.withhold"),
219
- render: (e) => ht(e, {
220
- formatCurrency: B,
221
- formatPercent: Pe,
222
- formatPerPaycheck: (i) => n("jobAndPay.deductions.amountPerPaycheck", { value: i })
238
+ render: (e) => vn(e, {
239
+ formatCurrency: N,
240
+ formatPercent: Le,
241
+ formatPerPaycheck: (o) => n("jobAndPay.deductions.amountPerPaycheck", { value: o })
223
242
  })
224
243
  }
225
- ], Ge = [
244
+ ], en = [
226
245
  {
227
246
  key: "payday",
228
247
  title: n("jobAndPay.paystubs.payday"),
229
- render: (e) => j(e.checkDate) || "-"
248
+ render: (e) => L(e.checkDate) || "-"
230
249
  },
231
250
  {
232
251
  key: "checkAmount",
233
252
  title: n("jobAndPay.paystubs.checkAmount"),
234
253
  render: (e) => {
235
254
  if (!e.netPay) return "-";
236
- const i = parseFloat(e.netPay);
237
- return isNaN(i) ? "-" : B(i);
255
+ const o = parseFloat(e.netPay);
256
+ return isNaN(o) ? "-" : N(o);
238
257
  }
239
258
  },
240
259
  {
@@ -242,102 +261,102 @@ function dn({
242
261
  title: n("jobAndPay.paystubs.grossPay"),
243
262
  render: (e) => {
244
263
  if (!e.grossPay) return "-";
245
- const i = parseFloat(e.grossPay);
246
- return isNaN(i) ? "-" : B(i);
264
+ const o = parseFloat(e.grossPay);
265
+ return isNaN(o) ? "-" : N(o);
247
266
  }
248
267
  },
249
268
  {
250
269
  key: "paymentMethod",
251
270
  title: n("jobAndPay.paystubs.paymentMethod"),
252
- render: () => te?.type || n("jobAndPay.paystubs.noPaymentMethod")
271
+ render: () => ae?.type || n("jobAndPay.paystubs.noPaymentMethod")
253
272
  }
254
- ], Ie = w({
273
+ ], nn = S({
255
274
  data: E,
256
- columns: Ve,
275
+ columns: Qe,
257
276
  itemMenu: (e) => /* @__PURE__ */ t(
258
- H,
277
+ Y,
259
278
  {
260
279
  items: [
261
280
  {
262
281
  label: C("deleteBankAccountCta"),
263
282
  onClick: () => {
264
- oe({
283
+ re({
265
284
  uuid: e.uuid,
266
285
  hiddenAccountNumber: e.hiddenAccountNumber
267
286
  });
268
287
  },
269
- icon: /* @__PURE__ */ t(R, { "aria-hidden": !0 })
288
+ icon: /* @__PURE__ */ t(V, { "aria-hidden": !0 })
270
289
  }
271
290
  ],
272
291
  triggerLabel: C("hamburgerTitle")
273
292
  }
274
293
  )
275
- }), qe = w({
276
- data: _e,
277
- columns: We,
294
+ }), tn = S({
295
+ data: qe,
296
+ columns: Ze,
278
297
  itemMenu: (e) => /* @__PURE__ */ t(
279
- H,
298
+ Y,
280
299
  {
281
- isLoading: ie === e.uuid,
300
+ isLoading: de === e.uuid,
282
301
  items: [
283
302
  {
284
- label: S("editCta"),
285
- onClick: () => he?.(e),
286
- icon: /* @__PURE__ */ t(ue, { "aria-hidden": !0 })
303
+ label: J("editCta"),
304
+ onClick: () => De?.(e),
305
+ icon: /* @__PURE__ */ t(he, { "aria-hidden": !0 })
287
306
  },
288
307
  {
289
- label: S("deleteCta"),
308
+ label: J("deleteCta"),
290
309
  onClick: () => {
291
- re(e);
310
+ le(e);
292
311
  },
293
- icon: /* @__PURE__ */ t(R, { "aria-hidden": !0 })
312
+ icon: /* @__PURE__ */ t(V, { "aria-hidden": !0 })
294
313
  }
295
314
  ],
296
- triggerLabel: S("hamburgerTitle")
315
+ triggerLabel: J("hamburgerTitle")
297
316
  }
298
317
  ),
299
318
  emptyState: () => /* @__PURE__ */ t(
300
- O,
319
+ _,
301
320
  {
302
321
  title: n("jobAndPay.deductions.emptyState.title"),
303
322
  description: n("jobAndPay.deductions.emptyState.description")
304
323
  }
305
324
  )
306
- }), Ke = w({
307
- data: De,
308
- columns: Ge,
309
- pagination: je,
325
+ }), on = S({
326
+ data: ke,
327
+ columns: en,
328
+ pagination: ve,
310
329
  itemMenu: (e) => {
311
- const i = !!e.payrollUuid && Ee.has(e.payrollUuid);
330
+ const o = !!e.payrollUuid && Se.has(e.payrollUuid);
312
331
  return /* @__PURE__ */ t(
313
- o.ButtonIcon,
332
+ i.ButtonIcon,
314
333
  {
315
334
  variant: "tertiary",
316
335
  "aria-label": n("jobAndPay.paystubs.downloadCta"),
317
336
  isDisabled: !e.payrollUuid,
318
- isLoading: i,
337
+ isLoading: o,
319
338
  onClick: () => {
320
- e.payrollUuid && ve(e.payrollUuid);
339
+ e.payrollUuid && Be(e.payrollUuid);
321
340
  },
322
- children: /* @__PURE__ */ t(Pt, { "aria-hidden": !0 })
341
+ children: /* @__PURE__ */ t(Sn, { "aria-hidden": !0 })
323
342
  }
324
343
  );
325
344
  },
326
345
  emptyState: () => /* @__PURE__ */ t(
327
- O,
346
+ _,
328
347
  {
329
348
  title: n("jobAndPay.paystubs.emptyState.title"),
330
349
  description: n("jobAndPay.paystubs.emptyState.description")
331
350
  }
332
351
  )
333
- }), Xe = l.isLoading && l.errorHandling.errors.length === 0, $e = p.isLoading && p.errorHandling.errors.length === 0, se = te?.type === at.directDeposit;
334
- return /* @__PURE__ */ t(rt, { error: He.errors, children: /* @__PURE__ */ d(c, { flexDirection: "column", gap: 24, children: [
352
+ }), an = l.isLoading && l.errorHandling.errors.length === 0, sn = m.isLoading && m.errorHandling.errors.length === 0, ue = ae?.type === gn.directDeposit;
353
+ return /* @__PURE__ */ t(hn, { error: ze.errors, children: /* @__PURE__ */ f(j, { flexDirection: "column", gap: 24, children: [
335
354
  /* @__PURE__ */ t(
336
- o.Box,
355
+ i.Box,
337
356
  {
338
- withPadding: !g,
357
+ withPadding: !h,
339
358
  header: /* @__PURE__ */ t(
340
- o.BoxHeader,
359
+ i.BoxHeader,
341
360
  {
342
361
  title: n("jobAndPay.compensation.title"),
343
362
  action: (
@@ -345,114 +364,134 @@ function dn({
345
364
  // know if the employee has jobs — suppress the action
346
365
  // so we don't surface an "Add job" CTA against an
347
366
  // employee who already has one.
348
- U || g ? null : r ? /* @__PURE__ */ t(
349
- o.Button,
367
+ T || h ? null : s ? Ye ? null : /* @__PURE__ */ t(
368
+ i.Button,
350
369
  {
351
370
  variant: "secondary",
352
371
  onClick: () => {
353
- F?.(r);
372
+ W?.(s);
354
373
  },
355
374
  children: n("jobAndPay.compensation.editCta")
356
375
  }
357
376
  ) : /* @__PURE__ */ t(
358
- o.Button,
377
+ i.Button,
359
378
  {
360
379
  variant: "secondary",
361
- onClick: ye,
362
- icon: /* @__PURE__ */ t(k, {}),
380
+ onClick: Pe,
381
+ icon: /* @__PURE__ */ t(U, {}),
363
382
  children: n("jobAndPay.compensation.addJobCta")
364
383
  }
365
384
  )
366
385
  )
367
386
  }
368
387
  ),
369
- footer: !U && Se ? /* @__PURE__ */ t(
370
- o.Button,
388
+ footer: !T && Me ? /* @__PURE__ */ t(
389
+ i.Button,
371
390
  {
372
391
  variant: "secondary",
373
- onClick: be,
374
- icon: /* @__PURE__ */ t(k, {}),
392
+ onClick: Ce,
393
+ icon: /* @__PURE__ */ t(U, {}),
375
394
  children: n("jobAndPay.compensation.addAnotherJobCta")
376
395
  }
377
396
  ) : void 0,
378
- children: U ? /* @__PURE__ */ t(x, {}) : /* @__PURE__ */ d(c, { flexDirection: "column", gap: 16, children: [
379
- Z && /* @__PURE__ */ t("div", { className: g ? ot.alertWrapper : void 0, children: /* @__PURE__ */ d(c, { flexDirection: "column", gap: 16, children: [
380
- Ne && b && /* @__PURE__ */ t(
381
- o.Alert,
382
- {
383
- status: "warning",
384
- disableScrollIntoView: !0,
385
- label: g ? n("jobAndPay.compensation.pendingChange.alertLabelWithJob", {
386
- jobTitle: b.jobTitle,
387
- date: j(b.effectiveDate)
388
- }) : n("jobAndPay.compensation.pendingChange.alertLabel", {
389
- date: j(b.effectiveDate)
390
- }),
391
- children: /* @__PURE__ */ d(c, { flexDirection: "column", gap: 12, children: [
392
- /* @__PURE__ */ t(
393
- o.UnorderedList,
394
- {
395
- items: b.details.map((e) => Ue(e))
396
- }
397
- ),
398
- /* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(
399
- o.Button,
400
- {
401
- variant: "secondary",
402
- isLoading: G === b.compensationUuid,
403
- onClick: () => {
404
- q(b);
405
- },
406
- children: n("jobAndPay.compensation.pendingChange.cancelCta")
407
- }
408
- ) })
409
- ] })
410
- }
411
- ),
412
- ee && /* @__PURE__ */ t(
413
- o.Alert,
414
- {
415
- status: "warning",
416
- disableScrollIntoView: !0,
417
- label: n("jobAndPay.compensation.pendingChange.summaryLabel", {
418
- name: M ?? ""
419
- }),
420
- action: /* @__PURE__ */ t(
421
- o.Button,
397
+ children: T ? /* @__PURE__ */ t(v, {}) : /* @__PURE__ */ f(j, { flexDirection: "column", gap: 16, children: [
398
+ oe && /* @__PURE__ */ t(
399
+ "div",
400
+ {
401
+ className: [ye.alertWrapper, h && ye.alertWrapperPadded].filter(Boolean).join(" "),
402
+ children: /* @__PURE__ */ f(j, { flexDirection: "column", gap: 16, children: [
403
+ We && b && /* @__PURE__ */ t(
404
+ i.Alert,
422
405
  {
423
- variant: "secondary",
424
- onClick: () => {
425
- Q(!0);
426
- },
427
- children: n("jobAndPay.compensation.pendingChange.reviewCta")
406
+ status: "warning",
407
+ disableScrollIntoView: !0,
408
+ label: h ? n("jobAndPay.compensation.pendingChange.alertLabelWithJob", {
409
+ jobTitle: b.jobTitle,
410
+ date: L(b.effectiveDate)
411
+ }) : n("jobAndPay.compensation.pendingChange.alertLabel", {
412
+ date: L(b.effectiveDate)
413
+ }),
414
+ children: /* @__PURE__ */ f(j, { flexDirection: "column", gap: 12, children: [
415
+ /* @__PURE__ */ t(
416
+ i.UnorderedList,
417
+ {
418
+ items: b.details.map((e) => Re(e))
419
+ }
420
+ ),
421
+ /* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(
422
+ i.Button,
423
+ {
424
+ variant: "secondary",
425
+ isLoading: z === b.compensationUuid,
426
+ onClick: () => {
427
+ $(b);
428
+ },
429
+ children: n("jobAndPay.compensation.pendingChange.cancelCta")
430
+ }
431
+ ) })
432
+ ] })
433
+ }
434
+ ),
435
+ ie && /* @__PURE__ */ t(
436
+ i.Alert,
437
+ {
438
+ status: "warning",
439
+ disableScrollIntoView: !0,
440
+ label: n("jobAndPay.compensation.pendingChange.summaryLabel", {
441
+ name: x ?? ""
442
+ }),
443
+ action: /* @__PURE__ */ t(
444
+ i.Button,
445
+ {
446
+ variant: "secondary",
447
+ onClick: () => {
448
+ O(!0);
449
+ },
450
+ children: n("jobAndPay.compensation.pendingChange.reviewCta")
451
+ }
452
+ )
428
453
  }
429
454
  )
430
- }
431
- )
432
- ] }) }),
433
- g ? /* @__PURE__ */ t(
434
- T,
455
+ ] })
456
+ }
457
+ ),
458
+ h ? /* @__PURE__ */ t(
459
+ B,
435
460
  {
436
461
  label: n("jobAndPay.compensation.tableLabel"),
437
462
  isWithinBox: !0,
438
- ...Ye
463
+ ...$e
464
+ }
465
+ ) : s ? /* @__PURE__ */ t(
466
+ i.DescriptionList,
467
+ {
468
+ items: [
469
+ {
470
+ term: n("jobAndPay.compensation.jobTitle"),
471
+ description: s.title || w
472
+ },
473
+ {
474
+ term: n("jobAndPay.compensation.type"),
475
+ description: Oe || w
476
+ },
477
+ {
478
+ term: n("jobAndPay.compensation.wage"),
479
+ description: ee !== null && s.paymentUnit ? I(ee, s.paymentUnit) : w
480
+ },
481
+ {
482
+ term: n("jobAndPay.compensation.effectiveDate"),
483
+ description: ne?.effectiveDate ? L(ne.effectiveDate) : w
484
+ },
485
+ ...Fe ? [
486
+ {
487
+ term: n("jobAndPay.compensation.columns.status"),
488
+ description: /* @__PURE__ */ t(i.Badge, { status: "warning", children: n("jobAndPay.compensation.pendingStatus") })
489
+ }
490
+ ] : []
491
+ ]
439
492
  }
440
- ) : r ? /* @__PURE__ */ d(c, { flexDirection: "column", gap: 12, children: [
441
- r.title && /* @__PURE__ */ d(c, { flexDirection: "column", gap: 0, children: [
442
- /* @__PURE__ */ t(o.Text, { variant: "supporting", children: n("jobAndPay.compensation.jobTitle") }),
443
- /* @__PURE__ */ t(o.Text, { children: r.title })
444
- ] }),
445
- r.paymentUnit && /* @__PURE__ */ d(c, { flexDirection: "column", gap: 0, children: [
446
- /* @__PURE__ */ t(o.Text, { variant: "supporting", children: n("jobAndPay.compensation.type") }),
447
- /* @__PURE__ */ t(o.Text, { children: r.paymentUnit === "Hour" ? n("jobAndPay.compensation.types.hourly") : r.paymentUnit === "Salary" || r.paymentUnit === "Year" ? n("jobAndPay.compensation.types.salary") : r.paymentUnit })
448
- ] }),
449
- $ !== null && r.paymentUnit && /* @__PURE__ */ d(c, { flexDirection: "column", gap: 0, children: [
450
- /* @__PURE__ */ t(o.Text, { variant: "supporting", children: n("jobAndPay.compensation.wage") }),
451
- /* @__PURE__ */ t(o.Text, { children: Y($, r.paymentUnit) })
452
- ] }),
453
- Be
454
- ] }) : /* @__PURE__ */ t(
455
- O,
493
+ ) : /* @__PURE__ */ t(
494
+ _,
456
495
  {
457
496
  title: n("jobAndPay.compensation.emptyState.title"),
458
497
  description: n("jobAndPay.compensation.emptyState.description")
@@ -462,141 +501,148 @@ function dn({
462
501
  }
463
502
  ),
464
503
  /* @__PURE__ */ t(
465
- o.Box,
504
+ i.Box,
466
505
  {
467
506
  withPadding: E.length === 0,
468
507
  header: /* @__PURE__ */ t(
469
- o.BoxHeader,
508
+ i.BoxHeader,
470
509
  {
471
510
  title: n("jobAndPay.payment.title"),
472
- action: /* @__PURE__ */ d(c, { gap: 8, alignItems: "center", justifyContent: "flex-end", children: [
473
- se && E.length > 1 && /* @__PURE__ */ t(
474
- o.Button,
511
+ action: /* @__PURE__ */ f(j, { gap: 8, alignItems: "center", justifyContent: "flex-end", children: [
512
+ ue && E.length > 1 && /* @__PURE__ */ t(
513
+ i.Button,
475
514
  {
476
515
  variant: "secondary",
477
516
  onClick: () => {
478
- m(P.EMPLOYEE_SPLIT_PAYCHECK, { employeeId: s });
517
+ u(P.EMPLOYEE_SPLIT_PAYCHECK, { employeeId: r });
479
518
  },
480
- icon: /* @__PURE__ */ t(ft, {}),
519
+ icon: /* @__PURE__ */ t(Un, {}),
481
520
  children: n("jobAndPay.payment.splitPaycheckCta")
482
521
  }
483
522
  ),
484
523
  /* @__PURE__ */ t(
485
- o.Button,
524
+ i.Button,
486
525
  {
487
526
  variant: "secondary",
488
527
  onClick: () => {
489
- m(P.EMPLOYEE_BANK_ACCOUNT_CREATE, { employeeId: s });
528
+ u(P.EMPLOYEE_BANK_ACCOUNT_CREATE, { employeeId: r });
490
529
  },
491
- icon: /* @__PURE__ */ t(k, {}),
530
+ icon: /* @__PURE__ */ t(U, {}),
492
531
  children: n("jobAndPay.payment.addBankAccountCta")
493
532
  }
494
533
  )
495
534
  ] })
496
535
  }
497
536
  ),
498
- children: Xe ? /* @__PURE__ */ t(x, {}) : E.length === 0 ? /* @__PURE__ */ d(c, { flexDirection: "column", gap: 0, children: [
499
- /* @__PURE__ */ t(o.Text, { variant: "supporting", children: C("paymentMethodLabel") }),
500
- /* @__PURE__ */ t(o.Text, { children: C(se ? "directDepositLabel" : "checkLabel") })
501
- ] }) : /* @__PURE__ */ t(
502
- T,
537
+ children: an ? /* @__PURE__ */ t(v, {}) : E.length === 0 ? /* @__PURE__ */ t(
538
+ i.DescriptionList,
539
+ {
540
+ items: [
541
+ {
542
+ term: C("paymentMethodLabel"),
543
+ description: C(ue ? "directDepositLabel" : "checkLabel")
544
+ }
545
+ ]
546
+ }
547
+ ) : /* @__PURE__ */ t(
548
+ B,
503
549
  {
504
550
  label: n("jobAndPay.payment.listLabel"),
505
551
  isWithinBox: !0,
506
- ...Ie
552
+ ...nn
507
553
  }
508
554
  )
509
555
  }
510
556
  ),
511
557
  /* @__PURE__ */ t(
512
- o.Box,
558
+ i.Box,
513
559
  {
514
560
  withPadding: !1,
515
561
  header: /* @__PURE__ */ t(
516
- o.BoxHeader,
562
+ i.BoxHeader,
517
563
  {
518
564
  title: n("jobAndPay.deductions.title"),
519
565
  action: /* @__PURE__ */ t(
520
- o.Button,
566
+ i.Button,
521
567
  {
522
568
  variant: "secondary",
523
- onClick: ge,
524
- icon: /* @__PURE__ */ t(k, {}),
569
+ onClick: Ae,
570
+ icon: /* @__PURE__ */ t(U, {}),
525
571
  children: n("jobAndPay.deductions.addDeductionCta")
526
572
  }
527
573
  )
528
574
  }
529
575
  ),
530
- children: $e ? /* @__PURE__ */ t(x, {}) : /* @__PURE__ */ t(
531
- T,
576
+ children: sn ? /* @__PURE__ */ t(v, {}) : /* @__PURE__ */ t(
577
+ B,
532
578
  {
533
579
  label: n("jobAndPay.deductions.listLabel"),
534
580
  isWithinBox: !0,
535
- ...qe
581
+ ...tn
536
582
  }
537
583
  )
538
584
  }
539
585
  ),
540
586
  /* @__PURE__ */ t(
541
- o.Box,
587
+ i.Box,
542
588
  {
543
589
  withPadding: !1,
544
- header: /* @__PURE__ */ t(o.BoxHeader, { title: n("jobAndPay.paystubs.title") }),
545
- children: Le ? /* @__PURE__ */ t(x, {}) : /* @__PURE__ */ t(T, { label: n("jobAndPay.paystubs.listLabel"), isWithinBox: !0, ...Ke })
590
+ header: /* @__PURE__ */ t(i.BoxHeader, { title: n("jobAndPay.paystubs.title") }),
591
+ children: Ue ? /* @__PURE__ */ t(v, {}) : /* @__PURE__ */ t(B, { label: n("jobAndPay.paystubs.listLabel"), isWithinBox: !0, ...on })
546
592
  }
547
593
  ),
548
594
  /* @__PURE__ */ t(
549
- nt,
595
+ yn,
550
596
  {
551
- isOpen: Me,
552
- pendingChanges: L,
553
- employeeFirstName: M,
554
- cancellingCompensationUuid: G,
597
+ isOpen: He,
598
+ pendingChanges: y,
599
+ employeeFirstName: x,
600
+ cancellingCompensationUuid: z,
555
601
  onClose: () => {
556
- Q(!1);
602
+ O(!1);
557
603
  },
558
604
  onCancelChange: (e) => {
559
- q(e);
605
+ $(e);
560
606
  }
561
607
  }
562
608
  ),
563
609
  /* @__PURE__ */ t(
564
- ut,
610
+ jn,
565
611
  {
566
- pendingDeleteAccount: ne,
567
- isPrimaryActionLoading: Je === ne?.uuid,
612
+ pendingDeleteAccount: se,
613
+ isPrimaryActionLoading: Ie === se?.uuid,
568
614
  onClose: () => {
569
- oe(null);
615
+ re(null);
570
616
  },
571
617
  onConfirm: () => {
572
- Oe();
618
+ Ge();
573
619
  }
574
620
  }
575
621
  ),
576
622
  /* @__PURE__ */ t(
577
- gt,
623
+ kn,
578
624
  {
579
- pendingDeleteDeduction: ae,
580
- isPrimaryActionLoading: ie === ae?.uuid,
625
+ pendingDeleteDeduction: ce,
626
+ isPrimaryActionLoading: de === ce?.uuid,
581
627
  onClose: () => {
582
- re(null);
628
+ le(null);
583
629
  },
584
630
  onConfirm: () => {
585
- Re();
631
+ Ke();
586
632
  }
587
633
  }
588
634
  ),
589
635
  /* @__PURE__ */ t(
590
- o.Dialog,
636
+ i.Dialog,
591
637
  {
592
638
  isOpen: D !== null,
593
639
  onClose: () => {
594
- N(null);
640
+ M(null);
595
641
  },
596
642
  onPrimaryActionClick: () => {
597
- ke();
643
+ Ne();
598
644
  },
599
- isPrimaryActionLoading: X,
645
+ isPrimaryActionLoading: Z,
600
646
  isDestructive: !0,
601
647
  title: n("jobAndPay.compensation.deleteJobDialog.title"),
602
648
  primaryActionLabel: n("jobAndPay.compensation.deleteJobDialog.confirmCta"),
@@ -609,6 +655,6 @@ function dn({
609
655
  ] }) });
610
656
  }
611
657
  export {
612
- dn as JobAndPayView
658
+ Ct as JobAndPayView
613
659
  };
614
660
  //# sourceMappingURL=JobAndPayView.js.map