@gusto/embedded-react-sdk 0.41.0 → 0.43.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 (427) hide show
  1. package/CHANGELOG.md +53 -0
  2. package/dist/assets/icons/house.svg.js +10 -0
  3. package/dist/assets/icons/house.svg.js.map +1 -0
  4. package/dist/assets/icons/search-lg.svg.js +10 -0
  5. package/dist/assets/icons/search-lg.svg.js.map +1 -0
  6. package/dist/components/Common/DataView/DataCards/DataCards.d.ts +3 -1
  7. package/dist/components/Common/DataView/DataCards/DataCards.js +55 -45
  8. package/dist/components/Common/DataView/DataCards/DataCards.js.map +1 -1
  9. package/dist/components/Common/DataView/DataCards/DataCards.module.scss.js +16 -10
  10. package/dist/components/Common/DataView/DataCards/DataCards.module.scss.js.map +1 -1
  11. package/dist/components/Common/DateRangeFilter/DateRangeFilter.js +1 -1
  12. package/dist/components/Common/DateRangeFilter/DateRangeFilter.js.map +1 -1
  13. package/dist/components/Common/EmptyData/EmptyData.d.ts +3 -0
  14. package/dist/components/Common/EmptyData/EmptyData.js +11 -11
  15. package/dist/components/Common/EmptyData/EmptyData.js.map +1 -1
  16. package/dist/components/Common/EmptyData/EmptyData.module.scss.js +8 -6
  17. package/dist/components/Common/EmptyData/EmptyData.module.scss.js.map +1 -1
  18. package/dist/components/Common/UI/Box/Box.module.scss.js +4 -4
  19. package/dist/components/Common/UI/ComboBox/ComboBox.d.ts +1 -1
  20. package/dist/components/Common/UI/ComboBox/ComboBox.js +26 -25
  21. package/dist/components/Common/UI/ComboBox/ComboBox.js.map +1 -1
  22. package/dist/components/Common/UI/ComboBox/ComboBoxTypes.d.ts +5 -0
  23. package/dist/components/Common/UI/DatePicker/DatePicker.js +4 -4
  24. package/dist/components/Common/UI/DatePicker/DatePicker.js.map +1 -1
  25. package/dist/components/Common/UI/Input/InputTypes.d.ts +1 -1
  26. package/dist/components/Common/UI/Input/InputTypes.js.map +1 -1
  27. package/dist/components/Common/UI/Menu/Menu.js +18 -17
  28. package/dist/components/Common/UI/Menu/Menu.js.map +1 -1
  29. package/dist/components/Common/UI/Menu/MenuTypes.d.ts +5 -0
  30. package/dist/components/Common/UI/Menu/MenuTypes.js.map +1 -1
  31. package/dist/components/Common/UI/MultiSelectComboBox/MultiSelectComboBox.js +1 -1
  32. package/dist/components/Common/UI/MultiSelectComboBox/MultiSelectComboBox.js.map +1 -1
  33. package/dist/components/Common/UI/Select/Select.js +9 -9
  34. package/dist/components/Common/UI/Select/Select.js.map +1 -1
  35. package/dist/components/Common/UI/TextInput/TextInput.js +37 -35
  36. package/dist/components/Common/UI/TextInput/TextInput.js.map +1 -1
  37. package/dist/components/Common/UI/TextInput/TextInputTypes.d.ts +1 -1
  38. package/dist/components/Common/UI/TextInput/TextInputTypes.js.map +1 -1
  39. package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js +2 -3
  40. package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js.map +1 -1
  41. package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.js +2 -3
  42. package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.js.map +1 -1
  43. package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.js +2 -3
  44. package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.js.map +1 -1
  45. package/dist/components/Company/AssignSignatory/TitleSelect.js +1 -1
  46. package/dist/components/Company/BankAccount/BankAccountForm/Actions.js +6 -6
  47. package/dist/components/Company/BankAccount/BankAccountList/Actions.js +8 -9
  48. package/dist/components/Company/BankAccount/BankAccountList/Actions.js.map +1 -1
  49. package/dist/components/Company/BankAccount/BankAccountVerify/Actions.js +7 -8
  50. package/dist/components/Company/BankAccount/BankAccountVerify/Actions.js.map +1 -1
  51. package/dist/components/Company/DocumentSigner/DocumentList/Actions.js +2 -3
  52. package/dist/components/Company/DocumentSigner/DocumentList/Actions.js.map +1 -1
  53. package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.d.ts +0 -1
  54. package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js +7 -8
  55. package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js.map +1 -1
  56. package/dist/components/Company/FederalTaxes/Actions.js +5 -6
  57. package/dist/components/Company/FederalTaxes/Actions.js.map +1 -1
  58. package/dist/components/Company/Industry/Actions.js +2 -3
  59. package/dist/components/Company/Industry/Actions.js.map +1 -1
  60. package/dist/components/Company/Industry/Edit.js +4 -5
  61. package/dist/components/Company/Industry/Edit.js.map +1 -1
  62. package/dist/components/Company/Locations/LocationForm/Actions.js +6 -7
  63. package/dist/components/Company/Locations/LocationForm/Actions.js.map +1 -1
  64. package/dist/components/Company/Locations/LocationForm/Form.d.ts +6 -1
  65. package/dist/components/Company/Locations/LocationForm/Form.js +29 -27
  66. package/dist/components/Company/Locations/LocationForm/Form.js.map +1 -1
  67. package/dist/components/Company/Locations/LocationForm/LocationForm.js +59 -55
  68. package/dist/components/Company/Locations/LocationForm/LocationForm.js.map +1 -1
  69. package/dist/components/Company/Locations/LocationsList/Actions.js +6 -7
  70. package/dist/components/Company/Locations/LocationsList/Actions.js.map +1 -1
  71. package/dist/components/Company/Locations/LocationsList/List.js +33 -33
  72. package/dist/components/Company/Locations/LocationsList/List.js.map +1 -1
  73. package/dist/components/Company/Locations/LocationsList/List.module.scss.js +8 -0
  74. package/dist/components/Company/Locations/LocationsList/List.module.scss.js.map +1 -0
  75. package/dist/components/Company/OnboardingFlow/OnboardingFlow.js +11 -15
  76. package/dist/components/Company/OnboardingFlow/OnboardingFlow.js.map +1 -1
  77. package/dist/components/Company/OnboardingFlow/onboardingStateMachine.js +37 -35
  78. package/dist/components/Company/OnboardingFlow/onboardingStateMachine.js.map +1 -1
  79. package/dist/components/Company/PaySchedule/PayScheduleForm.js +87 -99
  80. package/dist/components/Company/PaySchedule/PayScheduleForm.js.map +1 -1
  81. package/dist/components/Company/PaySchedule/PayScheduleForm.module.scss.js +8 -10
  82. package/dist/components/Company/PaySchedule/PayScheduleForm.module.scss.js.map +1 -1
  83. package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/usePayScheduleForm.d.ts +11 -1
  84. package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/usePayScheduleForm.js.map +1 -1
  85. package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.js +2 -3
  86. package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.js.map +1 -1
  87. package/dist/components/Company/StateTaxes/StateTaxesList/Actions.js +2 -3
  88. package/dist/components/Company/StateTaxes/StateTaxesList/Actions.js.map +1 -1
  89. package/dist/components/Company/StateTaxes/StateTaxesList/List.js +5 -6
  90. package/dist/components/Company/StateTaxes/StateTaxesList/List.js.map +1 -1
  91. package/dist/components/Contractor/Address/Address.js +6 -6
  92. package/dist/components/Contractor/Address/Address.js.map +1 -1
  93. package/dist/components/Contractor/Address/Form.js +4 -4
  94. package/dist/components/Contractor/Address/Head.js +10 -8
  95. package/dist/components/Contractor/Address/Head.js.map +1 -1
  96. package/dist/components/Contractor/NewHireReport/NewHireReport.js +39 -39
  97. package/dist/components/Contractor/NewHireReport/NewHireReport.js.map +1 -1
  98. package/dist/components/Contractor/OnboardingFlow/OnboardingFlow.js +13 -16
  99. package/dist/components/Contractor/OnboardingFlow/OnboardingFlow.js.map +1 -1
  100. package/dist/components/Contractor/OnboardingFlow/onboardingStateMachine.js +61 -63
  101. package/dist/components/Contractor/OnboardingFlow/onboardingStateMachine.js.map +1 -1
  102. package/dist/components/Contractor/PaymentMethod/BankAccountForm.js +9 -9
  103. package/dist/components/Contractor/PaymentMethod/BankAccountForm.js.map +1 -1
  104. package/dist/components/Contractor/PaymentMethod/PaymentMethod.js +14 -15
  105. package/dist/components/Contractor/PaymentMethod/PaymentMethod.js.map +1 -1
  106. package/dist/components/Contractor/PaymentMethod/PaymentTypeForm.js +1 -1
  107. package/dist/components/Contractor/Payments/PaymentFlow/PaymentFlow.js +11 -11
  108. package/dist/components/Contractor/Payments/PaymentFlow/PaymentFlow.js.map +1 -1
  109. package/dist/components/Contractor/Payments/PaymentFlow/paymentStateMachine.js +88 -111
  110. package/dist/components/Contractor/Payments/PaymentFlow/paymentStateMachine.js.map +1 -1
  111. package/dist/components/Contractor/Profile/ContractorProfileForm.js +48 -49
  112. package/dist/components/Contractor/Profile/ContractorProfileForm.js.map +1 -1
  113. package/dist/components/Contractor/Submit/SubmitDone.js +14 -12
  114. package/dist/components/Contractor/Submit/SubmitDone.js.map +1 -1
  115. package/dist/components/Employee/Compensation/Actions.js +1 -1
  116. package/dist/components/Employee/Compensation/List.js +22 -23
  117. package/dist/components/Employee/Compensation/List.js.map +1 -1
  118. package/dist/components/Employee/Dashboard/DashboardComponents.d.ts +2 -0
  119. package/dist/components/Employee/Dashboard/DashboardComponents.js +18 -6
  120. package/dist/components/Employee/Dashboard/DashboardComponents.js.map +1 -1
  121. package/dist/components/Employee/Dashboard/dashboardStateMachine.d.ts +2 -0
  122. package/dist/components/Employee/Dashboard/dashboardStateMachine.js +55 -4
  123. package/dist/components/Employee/Dashboard/dashboardStateMachine.js.map +1 -1
  124. package/dist/components/Employee/Deductions/DeductionsForm/DeductionsForm.js +26 -26
  125. package/dist/components/Employee/Deductions/DeductionsForm/DeductionsForm.js.map +1 -1
  126. package/dist/components/Employee/DocumentSigner/DocumentList/Actions.js +6 -7
  127. package/dist/components/Employee/DocumentSigner/DocumentList/Actions.js.map +1 -1
  128. package/dist/components/Employee/DocumentSigner/I9SignatureForm/I9SignatureForm.d.ts +0 -33
  129. package/dist/components/Employee/DocumentSigner/I9SignatureForm/I9SignatureForm.js +129 -212
  130. package/dist/components/Employee/DocumentSigner/I9SignatureForm/I9SignatureForm.js.map +1 -1
  131. package/dist/components/Employee/DocumentSigner/SignatureForm/SignatureForm.js +79 -57
  132. package/dist/components/Employee/DocumentSigner/SignatureForm/SignatureForm.js.map +1 -1
  133. package/dist/components/Employee/DocumentSigner/shared/useSignEmployeeForm/fields.d.ts +3 -4
  134. package/dist/components/Employee/DocumentSigner/shared/useSignEmployeeForm/fields.js.map +1 -1
  135. package/dist/components/Employee/DocumentSigner/shared/useSignEmployeeForm/index.d.ts +2 -2
  136. package/dist/components/Employee/DocumentSigner/shared/useSignEmployeeForm/signEmployeeFormSchema.d.ts +0 -1
  137. package/dist/components/Employee/DocumentSigner/shared/useSignEmployeeForm/signEmployeeFormSchema.js +33 -49
  138. package/dist/components/Employee/DocumentSigner/shared/useSignEmployeeForm/signEmployeeFormSchema.js.map +1 -1
  139. package/dist/components/Employee/DocumentSigner/shared/useSignEmployeeForm/useSignEmployeeForm.d.ts +12 -3
  140. package/dist/components/Employee/DocumentSigner/shared/useSignEmployeeForm/useSignEmployeeForm.js +98 -98
  141. package/dist/components/Employee/DocumentSigner/shared/useSignEmployeeForm/useSignEmployeeForm.js.map +1 -1
  142. package/dist/components/Employee/EmployeeList/management/ManagementEmployeeList.js.map +1 -0
  143. package/dist/components/Employee/EmployeeList/management/ManagementEmployeeListView.js.map +1 -0
  144. package/dist/components/Employee/EmployeeList/onboarding/EmployeeList.js.map +1 -0
  145. package/dist/components/Employee/EmployeeList/onboarding/EmployeeListView.js.map +1 -0
  146. package/dist/components/Employee/EmployeeList/shared/useEmployeeList.js.map +1 -0
  147. package/dist/components/Employee/FederalTaxes/Actions.js +6 -7
  148. package/dist/components/Employee/FederalTaxes/Actions.js.map +1 -1
  149. package/dist/components/Employee/FederalTaxes/FederalForm.js +4 -5
  150. package/dist/components/Employee/FederalTaxes/FederalForm.js.map +1 -1
  151. package/dist/components/Employee/HomeAddress/management/HomeAddress.d.ts +6 -0
  152. package/dist/components/Employee/HomeAddress/management/HomeAddress.js +48 -0
  153. package/dist/components/Employee/HomeAddress/management/HomeAddress.js.map +1 -0
  154. package/dist/components/Employee/HomeAddress/management/HomeAddressView.d.ts +18 -0
  155. package/dist/components/Employee/HomeAddress/management/HomeAddressView.js +477 -0
  156. package/dist/components/Employee/HomeAddress/management/HomeAddressView.js.map +1 -0
  157. package/dist/components/Employee/HomeAddress/management/getPendingFutureHomeAddress.d.ts +8 -0
  158. package/dist/components/Employee/HomeAddress/management/getPendingFutureHomeAddress.js +36 -0
  159. package/dist/components/Employee/HomeAddress/management/getPendingFutureHomeAddress.js.map +1 -0
  160. package/dist/components/Employee/HomeAddress/management/getPendingFutureHomeAddress.test.d.ts +1 -0
  161. package/dist/components/Employee/HomeAddress/management/useHomeAddressManagement.d.ts +45 -0
  162. package/dist/components/Employee/HomeAddress/management/useHomeAddressManagement.js +112 -0
  163. package/dist/components/Employee/HomeAddress/management/useHomeAddressManagement.js.map +1 -0
  164. package/dist/components/Employee/OnboardingFlow/OnboardingFlowComponents.js +1 -1
  165. package/dist/components/Employee/OnboardingFlow/OnboardingFlowComponents.js.map +1 -1
  166. package/dist/components/Employee/PaymentMethod/Actions.js +5 -6
  167. package/dist/components/Employee/PaymentMethod/Actions.js.map +1 -1
  168. package/dist/components/Employee/PaymentMethod/BankAccountEdit.js +1 -1
  169. package/dist/components/Employee/PaymentMethod/BankAccountsList.js +4 -4
  170. package/dist/components/Employee/PaymentMethod/PaymentTypeForm.js +1 -1
  171. package/dist/components/Employee/PaymentMethod/Split.js +23 -22
  172. package/dist/components/Employee/PaymentMethod/Split.js.map +1 -1
  173. package/dist/components/Employee/PaymentMethod/usePaymentMethod.js +1 -1
  174. package/dist/components/Employee/PaymentMethod/usePaymentMethod.js.map +1 -1
  175. package/dist/components/Employee/Profile/AdminProfile.js +94 -100
  176. package/dist/components/Employee/Profile/AdminProfile.js.map +1 -1
  177. package/dist/components/Employee/Profile/EmployeeProfile.js +63 -65
  178. package/dist/components/Employee/Profile/EmployeeProfile.js.map +1 -1
  179. package/dist/components/Employee/Profile/shared/useEmployeeDetailsForm/useEmployeeDetailsForm.js +37 -36
  180. package/dist/components/Employee/Profile/shared/useEmployeeDetailsForm/useEmployeeDetailsForm.js.map +1 -1
  181. package/dist/components/Employee/Profile/shared/useHomeAddressForm/fields.d.ts +1 -1
  182. package/dist/components/Employee/Profile/shared/useHomeAddressForm/fields.js.map +1 -1
  183. package/dist/components/Employee/Profile/shared/useHomeAddressForm/index.d.ts +2 -0
  184. package/dist/components/Employee/Profile/shared/useHomeAddressForm/useCurrentHomeAddressForm.d.ts +3 -0
  185. package/dist/components/Employee/Profile/shared/useHomeAddressForm/useCurrentHomeAddressForm.js +24 -0
  186. package/dist/components/Employee/Profile/shared/useHomeAddressForm/useCurrentHomeAddressForm.js.map +1 -0
  187. package/dist/components/Employee/Profile/shared/useHomeAddressForm/useHomeAddressForm.d.ts +9 -3
  188. package/dist/components/Employee/Profile/shared/useHomeAddressForm/useHomeAddressForm.js +105 -105
  189. package/dist/components/Employee/Profile/shared/useHomeAddressForm/useHomeAddressForm.js.map +1 -1
  190. package/dist/components/Employee/Profile/shared/useWorkAddressForm/index.d.ts +2 -0
  191. package/dist/components/Employee/Profile/shared/useWorkAddressForm/useCurrentWorkAddressForm.d.ts +3 -0
  192. package/dist/components/Employee/Profile/shared/useWorkAddressForm/useCurrentWorkAddressForm.js +24 -0
  193. package/dist/components/Employee/Profile/shared/useWorkAddressForm/useCurrentWorkAddressForm.js.map +1 -0
  194. package/dist/components/Employee/Profile/shared/useWorkAddressForm/useWorkAddressForm.d.ts +10 -4
  195. package/dist/components/Employee/Profile/shared/useWorkAddressForm/useWorkAddressForm.js +95 -84
  196. package/dist/components/Employee/Profile/shared/useWorkAddressForm/useWorkAddressForm.js.map +1 -1
  197. package/dist/components/Employee/StateTaxes/Actions.js +7 -8
  198. package/dist/components/Employee/StateTaxes/Actions.js.map +1 -1
  199. package/dist/components/Employee/Taxes/Actions.js +8 -9
  200. package/dist/components/Employee/Taxes/Actions.js.map +1 -1
  201. package/dist/components/Employee/Taxes/FederalForm.js +4 -5
  202. package/dist/components/Employee/Taxes/FederalForm.js.map +1 -1
  203. package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlow.js +11 -9
  204. package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlow.js.map +1 -1
  205. package/dist/components/Employee/Terminations/TerminationFlow/terminationStateMachine.js +71 -89
  206. package/dist/components/Employee/Terminations/TerminationFlow/terminationStateMachine.js.map +1 -1
  207. package/dist/components/Employee/WorkAddress/management/WorkAddress.d.ts +6 -0
  208. package/dist/components/Employee/WorkAddress/management/WorkAddress.js +48 -0
  209. package/dist/components/Employee/WorkAddress/management/WorkAddress.js.map +1 -0
  210. package/dist/components/Employee/WorkAddress/management/WorkAddressView.d.ts +16 -0
  211. package/dist/components/Employee/WorkAddress/management/WorkAddressView.js +368 -0
  212. package/dist/components/Employee/WorkAddress/management/WorkAddressView.js.map +1 -0
  213. package/dist/components/Employee/WorkAddress/management/getPendingFutureWorkAddress.d.ts +4 -0
  214. package/dist/components/Employee/WorkAddress/management/getPendingFutureWorkAddress.js +35 -0
  215. package/dist/components/Employee/WorkAddress/management/getPendingFutureWorkAddress.js.map +1 -0
  216. package/dist/components/Employee/WorkAddress/management/useWorkAddressManagement.d.ts +45 -0
  217. package/dist/components/Employee/WorkAddress/management/useWorkAddressManagement.js +143 -0
  218. package/dist/components/Employee/WorkAddress/management/useWorkAddressManagement.js.map +1 -0
  219. package/dist/components/Employee/exports/employeeManagement.d.ts +3 -1
  220. package/dist/components/Employee/exports/employeeManagement.js +12 -10
  221. package/dist/components/Employee/exports/employeeManagement.js.map +1 -1
  222. package/dist/components/Employee/exports/employeeOnboarding.d.ts +1 -1
  223. package/dist/components/Employee/exports/employeeOnboarding.js +1 -1
  224. package/dist/components/Employee/index.d.ts +5 -1
  225. package/dist/components/Employee/index.js +37 -33
  226. package/dist/components/Employee/index.js.map +1 -1
  227. package/dist/components/Flow/Flow.js +23 -51
  228. package/dist/components/Flow/Flow.js.map +1 -1
  229. package/dist/components/Flow/FlowHeader.d.ts +16 -0
  230. package/dist/components/Flow/FlowHeader.js +90 -0
  231. package/dist/components/Flow/FlowHeader.js.map +1 -0
  232. package/dist/components/Flow/useFlow.d.ts +33 -6
  233. package/dist/components/Flow/useFlow.js.map +1 -1
  234. package/dist/components/Payroll/Dismissal/DismissalFlow.js +20 -18
  235. package/dist/components/Payroll/Dismissal/DismissalFlow.js.map +1 -1
  236. package/dist/components/Payroll/Dismissal/DismissalFlowComponents.js +10 -10
  237. package/dist/components/Payroll/Dismissal/DismissalFlowComponents.js.map +1 -1
  238. package/dist/components/Payroll/Dismissal/dismissalStateMachine.js +17 -19
  239. package/dist/components/Payroll/Dismissal/dismissalStateMachine.js.map +1 -1
  240. package/dist/components/Payroll/OffCycle/OffCycleFlow.js +13 -11
  241. package/dist/components/Payroll/OffCycle/OffCycleFlow.js.map +1 -1
  242. package/dist/components/Payroll/OffCycle/OffCycleFlowComponents.js +9 -9
  243. package/dist/components/Payroll/OffCycle/OffCycleFlowComponents.js.map +1 -1
  244. package/dist/components/Payroll/OffCycle/offCycleStateMachine.js +25 -29
  245. package/dist/components/Payroll/OffCycle/offCycleStateMachine.js.map +1 -1
  246. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormPresentation.js +0 -1
  247. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormPresentation.js.map +1 -1
  248. package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelectionPresentation.js +6 -7
  249. package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelectionPresentation.js.map +1 -1
  250. package/dist/components/Payroll/OffCycleTaxWithholdingModal/OffCycleTaxWithholdingModal.js +2 -3
  251. package/dist/components/Payroll/OffCycleTaxWithholdingModal/OffCycleTaxWithholdingModal.js.map +1 -1
  252. package/dist/components/Payroll/PayrollExecutionFlow/PayrollExecutionFlow.js +43 -42
  253. package/dist/components/Payroll/PayrollExecutionFlow/PayrollExecutionFlow.js.map +1 -1
  254. package/dist/components/Payroll/PayrollExecutionFlow/payrollExecutionMachine.js +38 -42
  255. package/dist/components/Payroll/PayrollExecutionFlow/payrollExecutionMachine.js.map +1 -1
  256. package/dist/components/Payroll/PayrollFlow/PayrollFlow.js +18 -17
  257. package/dist/components/Payroll/PayrollFlow/PayrollFlow.js.map +1 -1
  258. package/dist/components/Payroll/PayrollFlow/payrollStateMachine.js +69 -78
  259. package/dist/components/Payroll/PayrollFlow/payrollStateMachine.js.map +1 -1
  260. package/dist/components/Payroll/PayrollLanding/PayrollLanding.js +13 -12
  261. package/dist/components/Payroll/PayrollLanding/PayrollLanding.js.map +1 -1
  262. package/dist/components/Payroll/PayrollLanding/payrollLandingStateMachine.js +51 -82
  263. package/dist/components/Payroll/PayrollLanding/payrollLandingStateMachine.js.map +1 -1
  264. package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.js +45 -43
  265. package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.js.map +1 -1
  266. package/dist/components/Payroll/Transition/TransitionFlow.js +17 -15
  267. package/dist/components/Payroll/Transition/TransitionFlow.js.map +1 -1
  268. package/dist/components/Payroll/Transition/TransitionFlowComponents.js +24 -24
  269. package/dist/components/Payroll/Transition/TransitionFlowComponents.js.map +1 -1
  270. package/dist/components/Payroll/Transition/transitionStateMachine.js +25 -29
  271. package/dist/components/Payroll/Transition/transitionStateMachine.js.map +1 -1
  272. package/dist/components/UNSTABLE_TimeOff/AddEmployeesHoliday/AddEmployeesHoliday.js +6 -41
  273. package/dist/components/UNSTABLE_TimeOff/AddEmployeesHoliday/AddEmployeesHoliday.js.map +1 -1
  274. package/dist/components/UNSTABLE_TimeOff/AddEmployeesToPolicy/AddEmployeesToPolicy.d.ts +1 -0
  275. package/dist/components/UNSTABLE_TimeOff/AddEmployeesToPolicy/AddEmployeesToPolicy.js +12 -40
  276. package/dist/components/UNSTABLE_TimeOff/AddEmployeesToPolicy/AddEmployeesToPolicy.js.map +1 -1
  277. package/dist/components/UNSTABLE_TimeOff/PolicySettings/PolicySettings.js +61 -41
  278. package/dist/components/UNSTABLE_TimeOff/PolicySettings/PolicySettings.js.map +1 -1
  279. package/dist/components/UNSTABLE_TimeOff/PolicySettings/PolicySettings.module.scss.js +6 -8
  280. package/dist/components/UNSTABLE_TimeOff/PolicySettings/PolicySettings.module.scss.js.map +1 -1
  281. package/dist/components/UNSTABLE_TimeOff/PolicySettings/PolicySettingsPresentation.js +32 -44
  282. package/dist/components/UNSTABLE_TimeOff/PolicySettings/PolicySettingsPresentation.js.map +1 -1
  283. package/dist/components/UNSTABLE_TimeOff/TimeOffFlow/TimeOffFlowComponents.js +36 -29
  284. package/dist/components/UNSTABLE_TimeOff/TimeOffFlow/TimeOffFlowComponents.js.map +1 -1
  285. package/dist/components/UNSTABLE_TimeOff/TimeOffFlow/timeOffStateMachine.js +50 -23
  286. package/dist/components/UNSTABLE_TimeOff/TimeOffFlow/timeOffStateMachine.js.map +1 -1
  287. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.js +26 -25
  288. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.js.map +1 -1
  289. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormPresentation.js +52 -38
  290. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormPresentation.js.map +1 -1
  291. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectEmployees/SelectEmployees.d.ts +2 -0
  292. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesHoliday.d.ts +6 -0
  293. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesHoliday.js +66 -0
  294. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesHoliday.js.map +1 -0
  295. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentation.d.ts +2 -0
  296. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentation.js +82 -0
  297. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentation.js.map +1 -0
  298. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentationTypes.d.ts +24 -0
  299. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesTimeOff.d.ts +7 -0
  300. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesTimeOff.js +70 -0
  301. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesTimeOff.js.map +1 -0
  302. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesTypes.d.ts +24 -0
  303. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectEmployees/useSelectEmployeesData.d.ts +11 -0
  304. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectEmployees/useSelectEmployeesData.js +56 -0
  305. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectEmployees/useSelectEmployeesData.js.map +1 -0
  306. package/dist/components/UNSTABLE_TimeOff/index.d.ts +2 -4
  307. package/dist/components/UNSTABLE_TimeOff/index.js +19 -21
  308. package/dist/components/UNSTABLE_TimeOff/index.js.map +1 -1
  309. package/dist/components/UNSTABLE_TimeOff/shared/EmployeeTable/EmployeeTable.js +90 -0
  310. package/dist/components/UNSTABLE_TimeOff/shared/EmployeeTable/EmployeeTable.js.map +1 -0
  311. package/dist/components/UNSTABLE_TimeOff/shared/EmployeeTable/EmployeeTable.module.scss.js +10 -0
  312. package/dist/components/UNSTABLE_TimeOff/shared/EmployeeTable/EmployeeTable.module.scss.js.map +1 -0
  313. package/dist/components/UNSTABLE_TimeOff/shared/EmployeeTable/EmployeeTableTypes.d.ts +1 -0
  314. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.d.ts +1 -0
  315. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js +31 -31
  316. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js.map +1 -1
  317. package/dist/contexts/ThemeProvider/ThemeProvider.d.ts +8 -0
  318. package/dist/contexts/ThemeProvider/ThemeProvider.js +26 -21
  319. package/dist/contexts/ThemeProvider/ThemeProvider.js.map +1 -1
  320. package/dist/contexts/ThemeProvider/useTheme.d.ts +1 -1
  321. package/dist/contexts/ThemeProvider/useTheme.js.map +1 -1
  322. package/dist/helpers/breadcrumbHelpers.d.ts +35 -22
  323. package/dist/helpers/breadcrumbHelpers.js +45 -35
  324. package/dist/helpers/breadcrumbHelpers.js.map +1 -1
  325. package/dist/helpers/dateFormatting.d.ts +12 -0
  326. package/dist/helpers/dateFormatting.js +72 -65
  327. package/dist/helpers/dateFormatting.js.map +1 -1
  328. package/dist/helpers/formattedStrings.d.ts +2 -0
  329. package/dist/helpers/formattedStrings.js +30 -27
  330. package/dist/helpers/formattedStrings.js.map +1 -1
  331. package/dist/i18n/I18n.js +131 -35
  332. package/dist/i18n/I18n.js.map +1 -1
  333. package/dist/i18n/en/Company.Locations.json.js +43 -39
  334. package/dist/i18n/en/Company.Locations.json.js.map +1 -1
  335. package/dist/i18n/en/Company.TimeOff.CreateTimeOffPolicy.json.js +5 -5
  336. package/dist/i18n/en/Company.TimeOff.SelectEmployees.json.js +22 -0
  337. package/dist/i18n/en/Company.TimeOff.SelectEmployees.json.js.map +1 -0
  338. package/dist/i18n/en/Employee.HomeAddress.Management.json.js +60 -0
  339. package/dist/i18n/en/Employee.HomeAddress.Management.json.js.map +1 -0
  340. package/dist/i18n/en/Employee.HomeAddress.json.js +22 -20
  341. package/dist/i18n/en/Employee.HomeAddress.json.js.map +1 -1
  342. package/dist/i18n/en/Employee.I9SignatureForm.json.js +79 -75
  343. package/dist/i18n/en/Employee.I9SignatureForm.json.js.map +1 -1
  344. package/dist/i18n/en/Employee.PaymentMethod.json.js +13 -13
  345. package/dist/i18n/en/Employee.WorkAddress.Management.json.js +62 -0
  346. package/dist/i18n/en/Employee.WorkAddress.Management.json.js.map +1 -0
  347. package/dist/i18n/en/Payroll.RecoveryCasesList.json.js +14 -10
  348. package/dist/i18n/en/Payroll.RecoveryCasesList.json.js.map +1 -1
  349. package/dist/i18n/en/common.json.d.ts +1 -0
  350. package/dist/i18n/en/common.json.js +28 -26
  351. package/dist/i18n/en/common.json.js.map +1 -1
  352. package/dist/index.d.ts +5 -5
  353. package/dist/index.js +72 -68
  354. package/dist/index.js.map +1 -1
  355. package/dist/partner-hook-utils/form/fields/CheckboxHookField.js +13 -14
  356. package/dist/partner-hook-utils/form/fields/CheckboxHookField.js.map +1 -1
  357. package/dist/partner-hook-utils/form/fields/DatePickerHookField.d.ts +4 -2
  358. package/dist/partner-hook-utils/form/fields/DatePickerHookField.js +19 -13
  359. package/dist/partner-hook-utils/form/fields/DatePickerHookField.js.map +1 -1
  360. package/dist/partner-hook-utils/form/fields/NumberInputHookField.js +16 -17
  361. package/dist/partner-hook-utils/form/fields/NumberInputHookField.js.map +1 -1
  362. package/dist/partner-hook-utils/form/fields/RadioGroupHookField.js +10 -11
  363. package/dist/partner-hook-utils/form/fields/RadioGroupHookField.js.map +1 -1
  364. package/dist/partner-hook-utils/form/fields/SelectHookField.d.ts +5 -2
  365. package/dist/partner-hook-utils/form/fields/SelectHookField.js +21 -18
  366. package/dist/partner-hook-utils/form/fields/SelectHookField.js.map +1 -1
  367. package/dist/partner-hook-utils/form/fields/SwitchHookField.js +12 -13
  368. package/dist/partner-hook-utils/form/fields/SwitchHookField.js.map +1 -1
  369. package/dist/partner-hook-utils/form/fields/TextInputHookField.js +14 -15
  370. package/dist/partner-hook-utils/form/fields/TextInputHookField.js.map +1 -1
  371. package/dist/partner-hook-utils/form/withOptions.d.ts +1 -1
  372. package/dist/partner-hook-utils/form/withOptions.js.map +1 -1
  373. package/dist/partner-hook-utils/types.d.ts +1 -1
  374. package/dist/shared/constants.d.ts +6 -0
  375. package/dist/shared/constants.js +17 -14
  376. package/dist/shared/constants.js.map +1 -1
  377. package/dist/style.css +1 -1
  378. package/dist/types/i18next.d.ts +109 -1
  379. package/docs/reference/endpoint-inventory.json +241 -38
  380. package/package.json +11 -11
  381. package/dist/_virtual/dynamic-import-helper.js +0 -17
  382. package/dist/_virtual/dynamic-import-helper.js.map +0 -1
  383. package/dist/components/Common/SignatureForm/SignatureForm.d.ts +0 -14
  384. package/dist/components/Common/SignatureForm/SignatureForm.js +0 -28
  385. package/dist/components/Common/SignatureForm/SignatureForm.js.map +0 -1
  386. package/dist/components/Common/SignatureForm/SignatureForm.module.scss.js +0 -10
  387. package/dist/components/Common/SignatureForm/SignatureForm.module.scss.js.map +0 -1
  388. package/dist/components/Common/SignatureForm/SignatureFormActions.d.ts +0 -8
  389. package/dist/components/Common/SignatureForm/SignatureFormActions.js +0 -22
  390. package/dist/components/Common/SignatureForm/SignatureFormActions.js.map +0 -1
  391. package/dist/components/Common/SignatureForm/SignatureFormFields.d.ts +0 -9
  392. package/dist/components/Common/SignatureForm/SignatureFormFields.js +0 -39
  393. package/dist/components/Common/SignatureForm/SignatureFormFields.js.map +0 -1
  394. package/dist/components/Common/SignatureForm/index.d.ts +0 -5
  395. package/dist/components/Contractor/Profile/ContractorProfileForm.module.scss.js +0 -8
  396. package/dist/components/Contractor/Profile/ContractorProfileForm.module.scss.js.map +0 -1
  397. package/dist/components/Employee/DocumentSigner/SignatureForm/Actions.d.ts +0 -1
  398. package/dist/components/Employee/DocumentSigner/SignatureForm/Actions.js +0 -20
  399. package/dist/components/Employee/DocumentSigner/SignatureForm/Actions.js.map +0 -1
  400. package/dist/components/Employee/DocumentSigner/SignatureForm/Form.d.ts +0 -1
  401. package/dist/components/Employee/DocumentSigner/SignatureForm/Form.js +0 -20
  402. package/dist/components/Employee/DocumentSigner/SignatureForm/Form.js.map +0 -1
  403. package/dist/components/Employee/DocumentSigner/SignatureForm/Head.d.ts +0 -1
  404. package/dist/components/Employee/DocumentSigner/SignatureForm/Head.js +0 -35
  405. package/dist/components/Employee/DocumentSigner/SignatureForm/Head.js.map +0 -1
  406. package/dist/components/Employee/DocumentSigner/SignatureForm/Preview.d.ts +0 -1
  407. package/dist/components/Employee/DocumentSigner/SignatureForm/Preview.js +0 -20
  408. package/dist/components/Employee/DocumentSigner/SignatureForm/Preview.js.map +0 -1
  409. package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.d.ts +0 -9
  410. package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js +0 -21
  411. package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js.map +0 -1
  412. package/dist/components/Employee/employee-list/management/ManagementEmployeeList.js.map +0 -1
  413. package/dist/components/Employee/employee-list/management/ManagementEmployeeListView.js.map +0 -1
  414. package/dist/components/Employee/employee-list/onboarding/EmployeeList.js.map +0 -1
  415. package/dist/components/Employee/employee-list/onboarding/EmployeeListView.js.map +0 -1
  416. package/dist/components/Employee/employee-list/shared/useEmployeeList.js.map +0 -1
  417. /package/dist/components/Employee/{employee-list → EmployeeList}/management/ManagementEmployeeList.d.ts +0 -0
  418. /package/dist/components/Employee/{employee-list → EmployeeList}/management/ManagementEmployeeList.js +0 -0
  419. /package/dist/components/Employee/{employee-list → EmployeeList}/management/ManagementEmployeeListView.d.ts +0 -0
  420. /package/dist/components/Employee/{employee-list → EmployeeList}/management/ManagementEmployeeListView.js +0 -0
  421. /package/dist/components/Employee/{employee-list → EmployeeList}/onboarding/EmployeeList.d.ts +0 -0
  422. /package/dist/components/Employee/{employee-list → EmployeeList}/onboarding/EmployeeList.js +0 -0
  423. /package/dist/components/Employee/{employee-list → EmployeeList}/onboarding/EmployeeListView.d.ts +0 -0
  424. /package/dist/components/Employee/{employee-list → EmployeeList}/onboarding/EmployeeListView.js +0 -0
  425. /package/dist/components/Employee/{employee-list → EmployeeList}/shared/index.d.ts +0 -0
  426. /package/dist/components/Employee/{employee-list → EmployeeList}/shared/useEmployeeList.d.ts +0 -0
  427. /package/dist/components/Employee/{employee-list → EmployeeList}/shared/useEmployeeList.js +0 -0
package/dist/i18n/I18n.js CHANGED
@@ -1,50 +1,146 @@
1
- import p from "../_virtual/dynamic-import-helper.js";
2
- import { useTranslation as a } from "react-i18next";
3
- import { LRUCache as y } from "../helpers/LRUCache.js";
4
- const u = "common", s = new y(50), j = ({ lng: n = "en", ns: o }) => {
5
- let r = !0, e = !1, t;
6
- const m = (async () => {
1
+ import { useTranslation as p } from "react-i18next";
2
+ import { LRUCache as f } from "../helpers/LRUCache.js";
3
+ const j = "common", m = /* @__PURE__ */ Object.assign({
4
+ "./en/Company.Addresses.json": () => import("./en/Company.Addresses.json.js").then((e) => e.default),
5
+ "./en/Company.AssignSignatory.json": () => import("./en/Company.AssignSignatory.json.js").then((e) => e.default),
6
+ "./en/Company.BankAccount.json": () => import("./en/Company.BankAccount.json.js").then((e) => e.default),
7
+ "./en/Company.DocumentList.json": () => import("./en/Company.DocumentList.json.js").then((e) => e.default),
8
+ "./en/Company.FederalTaxes.json": () => import("./en/Company.FederalTaxes.json.js").then((e) => e.default),
9
+ "./en/Company.Industry.json": () => import("./en/Company.Industry.json.js").then((e) => e.default),
10
+ "./en/Company.Locations.json": () => import("./en/Company.Locations.json.js").then((e) => e.default),
11
+ "./en/Company.OnboardingOverview.json": () => import("./en/Company.OnboardingOverview.json.js").then((e) => e.default),
12
+ "./en/Company.PaySchedule.json": () => import("./en/Company.PaySchedule.json.js").then((e) => e.default),
13
+ "./en/Company.SignatureForm.json": () => import("./en/Company.SignatureForm.json.js").then((e) => e.default),
14
+ "./en/Company.StateTaxes.json": () => import("./en/Company.StateTaxes.json.js").then((e) => e.default),
15
+ "./en/Company.TimeOff.CreateTimeOffPolicy.json": () => import("./en/Company.TimeOff.CreateTimeOffPolicy.json.js").then((e) => e.default),
16
+ "./en/Company.TimeOff.EmployeeTable.json": () => import("./en/Company.TimeOff.EmployeeTable.json.js").then((e) => e.default),
17
+ "./en/Company.TimeOff.HolidayPolicy.json": () => import("./en/Company.TimeOff.HolidayPolicy.json.js").then((e) => e.default),
18
+ "./en/Company.TimeOff.SelectEmployees.json": () => import("./en/Company.TimeOff.SelectEmployees.json.js").then((e) => e.default),
19
+ "./en/Company.TimeOff.SelectPolicyType.json": () => import("./en/Company.TimeOff.SelectPolicyType.json.js").then((e) => e.default),
20
+ "./en/Company.TimeOff.TimeOffPolicies.json": () => import("./en/Company.TimeOff.TimeOffPolicies.json.js").then((e) => e.default),
21
+ "./en/Company.TimeOff.TimeOffPolicyDetails.json": () => import("./en/Company.TimeOff.TimeOffPolicyDetails.json.js").then((e) => e.default),
22
+ "./en/Company.TimeOff.TimeOffRequests.json": () => import("./en/Company.TimeOff.TimeOffRequests.json.js").then((e) => e.default),
23
+ "./en/Contractor.Address.json": () => import("./en/Contractor.Address.json.js").then((e) => e.default),
24
+ "./en/Contractor.ContractorList.json": () => import("./en/Contractor.ContractorList.json.js").then((e) => e.default),
25
+ "./en/Contractor.NewHireReport.json": () => import("./en/Contractor.NewHireReport.json.js").then((e) => e.default),
26
+ "./en/Contractor.PaymentMethod.json": () => import("./en/Contractor.PaymentMethod.json.js").then((e) => e.default),
27
+ "./en/Contractor.Payments.CreatePayment.json": () => import("./en/Contractor.Payments.CreatePayment.json.js").then((e) => e.default),
28
+ "./en/Contractor.Payments.PaymentHistory.json": () => import("./en/Contractor.Payments.PaymentHistory.json.js").then((e) => e.default),
29
+ "./en/Contractor.Payments.PaymentStatement.json": () => import("./en/Contractor.Payments.PaymentStatement.json.js").then((e) => e.default),
30
+ "./en/Contractor.Payments.PaymentSummary.json": () => import("./en/Contractor.Payments.PaymentSummary.json.js").then((e) => e.default),
31
+ "./en/Contractor.Payments.PaymentsList.json": () => import("./en/Contractor.Payments.PaymentsList.json.js").then((e) => e.default),
32
+ "./en/Contractor.Profile.json": () => import("./en/Contractor.Profile.json.js").then((e) => e.default),
33
+ "./en/Contractor.Submit.json": () => import("./en/Contractor.Submit.json.js").then((e) => e.default),
34
+ "./en/Employee.BankAccount.json": () => import("./en/Employee.BankAccount.json.js").then((e) => e.default),
35
+ "./en/Employee.Compensation.json": () => import("./en/Employee.Compensation.json.js").then((e) => e.default),
36
+ "./en/Employee.Dashboard.json": () => import("./en/Employee.Dashboard.json.js").then((e) => e.default),
37
+ "./en/Employee.Deductions.json": () => import("./en/Employee.Deductions.json.js").then((e) => e.default),
38
+ "./en/Employee.DocumentSigner.json": () => import("./en/Employee.DocumentSigner.json.js").then((e) => e.default),
39
+ "./en/Employee.EmployeeDocuments.json": () => import("./en/Employee.EmployeeDocuments.json.js").then((e) => e.default),
40
+ "./en/Employee.EmployeeList.json": () => import("./en/Employee.EmployeeList.json.js").then((e) => e.default),
41
+ "./en/Employee.EmploymentEligibility.json": () => import("./en/Employee.EmploymentEligibility.json.js").then((e) => e.default),
42
+ "./en/Employee.FederalTaxes.json": () => import("./en/Employee.FederalTaxes.json.js").then((e) => e.default),
43
+ "./en/Employee.HomeAddress.Management.json": () => import("./en/Employee.HomeAddress.Management.json.js").then((e) => e.default),
44
+ "./en/Employee.HomeAddress.json": () => import("./en/Employee.HomeAddress.json.js").then((e) => e.default),
45
+ "./en/Employee.I9SignatureForm.json": () => import("./en/Employee.I9SignatureForm.json.js").then((e) => e.default),
46
+ "./en/Employee.Landing.json": () => import("./en/Employee.Landing.json.js").then((e) => e.default),
47
+ "./en/Employee.ManagementEmployeeList.json": () => import("./en/Employee.ManagementEmployeeList.json.js").then((e) => e.default),
48
+ "./en/Employee.OnboardingSummary.json": () => import("./en/Employee.OnboardingSummary.json.js").then((e) => e.default),
49
+ "./en/Employee.PaySchedules.json": () => import("./en/Employee.PaySchedules.json.js").then((e) => e.default),
50
+ "./en/Employee.PaymentMethod.json": () => import("./en/Employee.PaymentMethod.json.js").then((e) => e.default),
51
+ "./en/Employee.Profile.json": () => import("./en/Employee.Profile.json.js").then((e) => e.default),
52
+ "./en/Employee.SplitPaycheck.json": () => import("./en/Employee.SplitPaycheck.json.js").then((e) => e.default),
53
+ "./en/Employee.StateTaxes.json": () => import("./en/Employee.StateTaxes.json.js").then((e) => e.default),
54
+ "./en/Employee.Taxes.json": () => import("./en/Employee.Taxes.json.js").then((e) => e.default),
55
+ "./en/Employee.Terminations.TerminateEmployee.json": () => import("./en/Employee.Terminations.TerminateEmployee.json.js").then((e) => e.default),
56
+ "./en/Employee.Terminations.TerminationFlow.json": () => import("./en/Employee.Terminations.TerminationFlow.json.js").then((e) => e.default),
57
+ "./en/Employee.Terminations.TerminationSummary.json": () => import("./en/Employee.Terminations.TerminationSummary.json.js").then((e) => e.default),
58
+ "./en/Employee.WorkAddress.Management.json": () => import("./en/Employee.WorkAddress.Management.json.js").then((e) => e.default),
59
+ "./en/InformationRequests.InformationRequestForm.json": () => import("./en/InformationRequests.InformationRequestForm.json.js").then((e) => e.default),
60
+ "./en/InformationRequests.InformationRequestList.json": () => import("./en/InformationRequests.InformationRequestList.json.js").then((e) => e.default),
61
+ "./en/InformationRequests.json": () => import("./en/InformationRequests.json.js").then((e) => e.default),
62
+ "./en/Payroll.Common.json": () => import("./en/Payroll.Common.json.js").then((e) => e.default),
63
+ "./en/Payroll.ConfirmWireDetailsBanner.json": () => import("./en/Payroll.ConfirmWireDetailsBanner.json.js").then((e) => e.default),
64
+ "./en/Payroll.ConfirmWireDetailsForm.json": () => import("./en/Payroll.ConfirmWireDetailsForm.json.js").then((e) => e.default),
65
+ "./en/Payroll.Dismissal.json": () => import("./en/Payroll.Dismissal.json.js").then((e) => e.default),
66
+ "./en/Payroll.EmployeeSelection.json": () => import("./en/Payroll.EmployeeSelection.json.js").then((e) => e.default),
67
+ "./en/Payroll.GrossUpModal.json": () => import("./en/Payroll.GrossUpModal.json.js").then((e) => e.default),
68
+ "./en/Payroll.OffCycle.json": () => import("./en/Payroll.OffCycle.json.js").then((e) => e.default),
69
+ "./en/Payroll.OffCycleCreation.json": () => import("./en/Payroll.OffCycleCreation.json.js").then((e) => e.default),
70
+ "./en/Payroll.OffCycleDeductionsSetting.json": () => import("./en/Payroll.OffCycleDeductionsSetting.json.js").then((e) => e.default),
71
+ "./en/Payroll.OffCyclePayPeriodDateForm.json": () => import("./en/Payroll.OffCyclePayPeriodDateForm.json.js").then((e) => e.default),
72
+ "./en/Payroll.OffCycleReasonSelection.json": () => import("./en/Payroll.OffCycleReasonSelection.json.js").then((e) => e.default),
73
+ "./en/Payroll.OffCycleTaxWithholding.json": () => import("./en/Payroll.OffCycleTaxWithholding.json.js").then((e) => e.default),
74
+ "./en/Payroll.PayrollBlocker.json": () => import("./en/Payroll.PayrollBlocker.json.js").then((e) => e.default),
75
+ "./en/Payroll.PayrollConfiguration.json": () => import("./en/Payroll.PayrollConfiguration.json.js").then((e) => e.default),
76
+ "./en/Payroll.PayrollEditEmployee.json": () => import("./en/Payroll.PayrollEditEmployee.json.js").then((e) => e.default),
77
+ "./en/Payroll.PayrollFlow.json": () => import("./en/Payroll.PayrollFlow.json.js").then((e) => e.default),
78
+ "./en/Payroll.PayrollHistory.json": () => import("./en/Payroll.PayrollHistory.json.js").then((e) => e.default),
79
+ "./en/Payroll.PayrollLanding.json": () => import("./en/Payroll.PayrollLanding.json.js").then((e) => e.default),
80
+ "./en/Payroll.PayrollList.json": () => import("./en/Payroll.PayrollList.json.js").then((e) => e.default),
81
+ "./en/Payroll.PayrollOverview.json": () => import("./en/Payroll.PayrollOverview.json.js").then((e) => e.default),
82
+ "./en/Payroll.PayrollReceipts.json": () => import("./en/Payroll.PayrollReceipts.json.js").then((e) => e.default),
83
+ "./en/Payroll.RecoveryCasesList.json": () => import("./en/Payroll.RecoveryCasesList.json.js").then((e) => e.default),
84
+ "./en/Payroll.RecoveryCasesResubmit.json": () => import("./en/Payroll.RecoveryCasesResubmit.json.js").then((e) => e.default),
85
+ "./en/Payroll.Transition.json": () => import("./en/Payroll.Transition.json.js").then((e) => e.default),
86
+ "./en/Payroll.TransitionCreation.json": () => import("./en/Payroll.TransitionCreation.json.js").then((e) => e.default),
87
+ "./en/Payroll.TransitionPayrollAlert.json": () => import("./en/Payroll.TransitionPayrollAlert.json.js").then((e) => e.default),
88
+ "./en/Payroll.WireInstructions.json": () => import("./en/Payroll.WireInstructions.json.js").then((e) => e.default),
89
+ "./en/common.json": () => import("./en/common.json.js").then((e) => e.default)
90
+ });
91
+ function u(e, n) {
92
+ const t = `./${e ?? "en"}/${n}.json`;
93
+ return m[t] ?? m[`./en/${n}.json`];
94
+ }
95
+ const i = new f(50), y = ({ lng: e = "en", ns: n }) => {
96
+ let o = !0, t = !1, a;
97
+ const l = (async () => {
7
98
  try {
8
- t = (await p(/* @__PURE__ */ Object.assign({ "./en/Company.Addresses.json": () => import("./en/Company.Addresses.json.js"), "./en/Company.AssignSignatory.json": () => import("./en/Company.AssignSignatory.json.js"), "./en/Company.BankAccount.json": () => import("./en/Company.BankAccount.json.js"), "./en/Company.DocumentList.json": () => import("./en/Company.DocumentList.json.js"), "./en/Company.FederalTaxes.json": () => import("./en/Company.FederalTaxes.json.js"), "./en/Company.Industry.json": () => import("./en/Company.Industry.json.js"), "./en/Company.Locations.json": () => import("./en/Company.Locations.json.js"), "./en/Company.OnboardingOverview.json": () => import("./en/Company.OnboardingOverview.json.js"), "./en/Company.PaySchedule.json": () => import("./en/Company.PaySchedule.json.js"), "./en/Company.SignatureForm.json": () => import("./en/Company.SignatureForm.json.js"), "./en/Company.StateTaxes.json": () => import("./en/Company.StateTaxes.json.js"), "./en/Company.TimeOff.CreateTimeOffPolicy.json": () => import("./en/Company.TimeOff.CreateTimeOffPolicy.json.js"), "./en/Company.TimeOff.EmployeeTable.json": () => import("./en/Company.TimeOff.EmployeeTable.json.js"), "./en/Company.TimeOff.HolidayPolicy.json": () => import("./en/Company.TimeOff.HolidayPolicy.json.js"), "./en/Company.TimeOff.SelectPolicyType.json": () => import("./en/Company.TimeOff.SelectPolicyType.json.js"), "./en/Company.TimeOff.TimeOffPolicies.json": () => import("./en/Company.TimeOff.TimeOffPolicies.json.js"), "./en/Company.TimeOff.TimeOffPolicyDetails.json": () => import("./en/Company.TimeOff.TimeOffPolicyDetails.json.js"), "./en/Company.TimeOff.TimeOffRequests.json": () => import("./en/Company.TimeOff.TimeOffRequests.json.js"), "./en/Contractor.Address.json": () => import("./en/Contractor.Address.json.js"), "./en/Contractor.ContractorList.json": () => import("./en/Contractor.ContractorList.json.js"), "./en/Contractor.NewHireReport.json": () => import("./en/Contractor.NewHireReport.json.js"), "./en/Contractor.PaymentMethod.json": () => import("./en/Contractor.PaymentMethod.json.js"), "./en/Contractor.Payments.CreatePayment.json": () => import("./en/Contractor.Payments.CreatePayment.json.js"), "./en/Contractor.Payments.PaymentHistory.json": () => import("./en/Contractor.Payments.PaymentHistory.json.js"), "./en/Contractor.Payments.PaymentStatement.json": () => import("./en/Contractor.Payments.PaymentStatement.json.js"), "./en/Contractor.Payments.PaymentSummary.json": () => import("./en/Contractor.Payments.PaymentSummary.json.js"), "./en/Contractor.Payments.PaymentsList.json": () => import("./en/Contractor.Payments.PaymentsList.json.js"), "./en/Contractor.Profile.json": () => import("./en/Contractor.Profile.json.js"), "./en/Contractor.Submit.json": () => import("./en/Contractor.Submit.json.js"), "./en/Employee.BankAccount.json": () => import("./en/Employee.BankAccount.json.js"), "./en/Employee.Compensation.json": () => import("./en/Employee.Compensation.json.js"), "./en/Employee.Dashboard.json": () => import("./en/Employee.Dashboard.json.js"), "./en/Employee.Deductions.json": () => import("./en/Employee.Deductions.json.js"), "./en/Employee.DocumentSigner.json": () => import("./en/Employee.DocumentSigner.json.js"), "./en/Employee.EmployeeDocuments.json": () => import("./en/Employee.EmployeeDocuments.json.js"), "./en/Employee.EmployeeList.json": () => import("./en/Employee.EmployeeList.json.js"), "./en/Employee.EmploymentEligibility.json": () => import("./en/Employee.EmploymentEligibility.json.js"), "./en/Employee.FederalTaxes.json": () => import("./en/Employee.FederalTaxes.json.js"), "./en/Employee.HomeAddress.json": () => import("./en/Employee.HomeAddress.json.js"), "./en/Employee.I9SignatureForm.json": () => import("./en/Employee.I9SignatureForm.json.js"), "./en/Employee.Landing.json": () => import("./en/Employee.Landing.json.js"), "./en/Employee.ManagementEmployeeList.json": () => import("./en/Employee.ManagementEmployeeList.json.js"), "./en/Employee.OnboardingSummary.json": () => import("./en/Employee.OnboardingSummary.json.js"), "./en/Employee.PaySchedules.json": () => import("./en/Employee.PaySchedules.json.js"), "./en/Employee.PaymentMethod.json": () => import("./en/Employee.PaymentMethod.json.js"), "./en/Employee.Profile.json": () => import("./en/Employee.Profile.json.js"), "./en/Employee.SplitPaycheck.json": () => import("./en/Employee.SplitPaycheck.json.js"), "./en/Employee.StateTaxes.json": () => import("./en/Employee.StateTaxes.json.js"), "./en/Employee.Taxes.json": () => import("./en/Employee.Taxes.json.js"), "./en/Employee.Terminations.TerminateEmployee.json": () => import("./en/Employee.Terminations.TerminateEmployee.json.js"), "./en/Employee.Terminations.TerminationFlow.json": () => import("./en/Employee.Terminations.TerminationFlow.json.js"), "./en/Employee.Terminations.TerminationSummary.json": () => import("./en/Employee.Terminations.TerminationSummary.json.js"), "./en/InformationRequests.InformationRequestForm.json": () => import("./en/InformationRequests.InformationRequestForm.json.js"), "./en/InformationRequests.InformationRequestList.json": () => import("./en/InformationRequests.InformationRequestList.json.js"), "./en/InformationRequests.json": () => import("./en/InformationRequests.json.js"), "./en/Payroll.Common.json": () => import("./en/Payroll.Common.json.js"), "./en/Payroll.ConfirmWireDetailsBanner.json": () => import("./en/Payroll.ConfirmWireDetailsBanner.json.js"), "./en/Payroll.ConfirmWireDetailsForm.json": () => import("./en/Payroll.ConfirmWireDetailsForm.json.js"), "./en/Payroll.Dismissal.json": () => import("./en/Payroll.Dismissal.json.js"), "./en/Payroll.EmployeeSelection.json": () => import("./en/Payroll.EmployeeSelection.json.js"), "./en/Payroll.GrossUpModal.json": () => import("./en/Payroll.GrossUpModal.json.js"), "./en/Payroll.OffCycle.json": () => import("./en/Payroll.OffCycle.json.js"), "./en/Payroll.OffCycleCreation.json": () => import("./en/Payroll.OffCycleCreation.json.js"), "./en/Payroll.OffCycleDeductionsSetting.json": () => import("./en/Payroll.OffCycleDeductionsSetting.json.js"), "./en/Payroll.OffCyclePayPeriodDateForm.json": () => import("./en/Payroll.OffCyclePayPeriodDateForm.json.js"), "./en/Payroll.OffCycleReasonSelection.json": () => import("./en/Payroll.OffCycleReasonSelection.json.js"), "./en/Payroll.OffCycleTaxWithholding.json": () => import("./en/Payroll.OffCycleTaxWithholding.json.js"), "./en/Payroll.PayrollBlocker.json": () => import("./en/Payroll.PayrollBlocker.json.js"), "./en/Payroll.PayrollConfiguration.json": () => import("./en/Payroll.PayrollConfiguration.json.js"), "./en/Payroll.PayrollEditEmployee.json": () => import("./en/Payroll.PayrollEditEmployee.json.js"), "./en/Payroll.PayrollFlow.json": () => import("./en/Payroll.PayrollFlow.json.js"), "./en/Payroll.PayrollHistory.json": () => import("./en/Payroll.PayrollHistory.json.js"), "./en/Payroll.PayrollLanding.json": () => import("./en/Payroll.PayrollLanding.json.js"), "./en/Payroll.PayrollList.json": () => import("./en/Payroll.PayrollList.json.js"), "./en/Payroll.PayrollOverview.json": () => import("./en/Payroll.PayrollOverview.json.js"), "./en/Payroll.PayrollReceipts.json": () => import("./en/Payroll.PayrollReceipts.json.js"), "./en/Payroll.RecoveryCasesList.json": () => import("./en/Payroll.RecoveryCasesList.json.js"), "./en/Payroll.RecoveryCasesResubmit.json": () => import("./en/Payroll.RecoveryCasesResubmit.json.js"), "./en/Payroll.Transition.json": () => import("./en/Payroll.Transition.json.js"), "./en/Payroll.TransitionCreation.json": () => import("./en/Payroll.TransitionCreation.json.js"), "./en/Payroll.TransitionPayrollAlert.json": () => import("./en/Payroll.TransitionPayrollAlert.json.js"), "./en/Payroll.WireInstructions.json": () => import("./en/Payroll.WireInstructions.json.js"), "./en/common.json": () => import("./en/common.json.js") }), `./${n}/${o}.json`, 3)).default, r = !1;
99
+ const s = u(e, n);
100
+ if (!s) {
101
+ t = !0, o = !1;
102
+ return;
103
+ }
104
+ a = await s(), o = !1;
9
105
  } catch {
10
- e = !0, r = !1;
106
+ t = !0, o = !1;
11
107
  }
12
108
  })();
13
109
  return () => {
14
- if (r)
15
- throw m;
16
- if (e)
17
- throw new Error(`Error loading translation for component: ${o}`);
18
- return t;
110
+ if (o)
111
+ throw l;
112
+ if (t)
113
+ throw new Error(`Error loading translation for component: ${n}`);
114
+ return a;
19
115
  };
20
- }, C = (n) => {
21
- const { i18n: o } = a();
22
- if (!n) return;
23
- const r = Array.isArray(n) ? n : [n];
24
- for (const e of r) {
25
- const t = `${o.resolvedLanguage}:${e}`;
26
- s.get(t) === null && s.put(t, j({ lng: o.resolvedLanguage, ns: e }));
27
- const i = s.get(t);
28
- if (i) {
29
- const m = i();
30
- o.addResourceBundle(
31
- o.resolvedLanguage ?? "en",
32
- e,
33
- m,
116
+ }, c = (e) => {
117
+ const { i18n: n } = p();
118
+ if (!e) return;
119
+ const o = Array.isArray(e) ? e : [e];
120
+ for (const t of o) {
121
+ const a = `${n.resolvedLanguage}:${t}`;
122
+ i.get(a) === null && i.put(a, y({ lng: n.resolvedLanguage, ns: t }));
123
+ const r = i.get(a);
124
+ if (r) {
125
+ const l = r();
126
+ n.addResourceBundle(
127
+ n.resolvedLanguage ?? "en",
128
+ t,
129
+ l,
34
130
  !0,
35
131
  !1
36
132
  );
37
133
  }
38
134
  }
39
- }, d = (n, o) => {
40
- const { i18n: r } = a();
41
- if (o)
42
- for (const e in o)
43
- r.addResourceBundle(e, n, o[e], !0, !0);
135
+ }, P = (e, n) => {
136
+ const { i18n: o } = p();
137
+ if (n)
138
+ for (const t in n)
139
+ o.addResourceBundle(t, e, n[t], !0, !0);
44
140
  };
45
141
  export {
46
- u as defaultNS,
47
- d as useComponentDictionary,
48
- C as useI18n
142
+ j as defaultNS,
143
+ P as useComponentDictionary,
144
+ c as useI18n
49
145
  };
50
146
  //# sourceMappingURL=I18n.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"I18n.js","sources":["../../src/i18n/I18n.ts"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport type { CustomTypeOptions } from 'i18next'\nimport { LRUCache } from '@/helpers/LRUCache'\nimport type { ResourceDictionary, Resources } from '@/types/Helpers'\n\nexport const defaultNS = 'common'\n\n//LRU cache holding requested resources\nconst resourceCache = new LRUCache(50)\n/**\n * Dynamic loading of translation resources - works with Suspence to prevent early access to loadable strings\n * @param lng(string): resource language\n * @param ns(string): Namespace/name of the component/resource\n * @returns Promise<Translation resource>\n */\nconst loadResource = ({ lng = 'en', ns }: { ns: string; lng?: string }) => {\n let isLoading = true\n let isError = false\n let resource: Record<string, string>\n\n const importResources = async () => {\n try {\n const module = await import(`@/i18n/${lng}/${ns}.json`)\n\n resource = module.default\n isLoading = false\n } catch (err) {\n isError = true\n isLoading = false\n }\n }\n const promise = importResources()\n return () => {\n if (isLoading) {\n // eslint-disable-next-line @typescript-eslint/only-throw-error\n throw promise // Throw the promise to indicate Suspense should suspend.\n } else if (isError) {\n throw new Error(`Error loading translation for component: ${ns}`) // Handle error\n } else {\n return resource // Return the resource when loading is complete\n }\n }\n}\n\n/**\n * Hook that allows component to load custom dictionary\n * @param @private {string} ns - Namespace - should match component name exactly - not exposed to consumers\n */\nexport const useI18n = (\n namespaces:\n | keyof CustomTypeOptions['resources']\n | Array<keyof CustomTypeOptions['resources']>\n | null,\n) => {\n //Getting our instance of i18n -> supplied by the provider set in GustoApiProvider\n const { i18n: i18nInstance } = useTranslation()\n //Abort when namespace is not provided\n if (!namespaces) return\n const nsMap = Array.isArray(namespaces) ? namespaces : [namespaces]\n for (const ns of nsMap) {\n const key = `${i18nInstance.resolvedLanguage}:${ns}`\n //Skip loading default resource if it is already in cache\n if (resourceCache.get(key) === null) {\n //If resource not in cache, initiate loading and add getter to cache\n resourceCache.put(key, loadResource({ lng: i18nInstance.resolvedLanguage, ns: ns }))\n }\n //Get resourceGetter from cache\n const resourceGetter = resourceCache.get(key)\n if (resourceGetter) {\n const resource = resourceGetter()\n i18nInstance.addResourceBundle(\n i18nInstance.resolvedLanguage ?? 'en',\n ns,\n resource,\n true,\n false,\n ) //Last argument is set to false to prevent override of keys provided by partners on GustoApiProvider level through dictionary prop\n }\n }\n}\n\n//Used by individual components to override their dictionaries with partner provided resources\nexport const useComponentDictionary = <K extends keyof Resources>(\n ns: keyof CustomTypeOptions['resources'],\n resource?: ResourceDictionary<K> | null,\n) => {\n const { i18n: i18nInstance } = useTranslation()\n if (resource) {\n for (const lang in resource) {\n i18nInstance.addResourceBundle(lang, ns, resource[lang], true, true)\n }\n }\n}\n"],"names":["defaultNS","resourceCache","LRUCache","loadResource","lng","ns","isLoading","isError","resource","promise","__variableDynamicImportRuntimeHelper","useI18n","namespaces","i18nInstance","useTranslation","nsMap","key","resourceGetter","useComponentDictionary","lang"],"mappings":";;;AAKO,MAAMA,IAAY,UAGnBC,IAAgB,IAAIC,EAAS,EAAE,GAO/BC,IAAe,CAAC,EAAE,KAAAC,IAAM,MAAM,IAAAC,QAAuC;AACzE,MAAIC,IAAY,IACZC,IAAU,IACVC;AAaJ,QAAMC,KAXkB,YAAY;AAClC,QAAI;AAGF,MAAAD,KAFe,MAAME,ksPAAA,KAAAN,CAAA,IAAAC,CAAA,SAAA,CAAA,GAEH,SAClBC,IAAY;AAAA,IACd,QAAc;AACZ,MAAAC,IAAU,IACVD,IAAY;AAAA,IACd;AAAA,EACF,GACgB;AAChB,SAAO,MAAM;AACX,QAAIA;AAEF,YAAMG;QACGF;AACT,YAAM,IAAI,MAAM,4CAA4CF,CAAE,EAAE;AAEhE,WAAOG;AAAA,EAEX;AACF,GAMaG,IAAU,CACrBC,MAIG;AAEH,QAAM,EAAE,MAAMC,EAAA,IAAiBC,EAAA;AAE/B,MAAI,CAACF,EAAY;AACjB,QAAMG,IAAQ,MAAM,QAAQH,CAAU,IAAIA,IAAa,CAACA,CAAU;AAClE,aAAWP,KAAMU,GAAO;AACtB,UAAMC,IAAM,GAAGH,EAAa,gBAAgB,IAAIR,CAAE;AAElD,IAAIJ,EAAc,IAAIe,CAAG,MAAM,QAE7Bf,EAAc,IAAIe,GAAKb,EAAa,EAAE,KAAKU,EAAa,kBAAkB,IAAAR,EAAA,CAAQ,CAAC;AAGrF,UAAMY,IAAiBhB,EAAc,IAAIe,CAAG;AAC5C,QAAIC,GAAgB;AAClB,YAAMT,IAAWS,EAAA;AACjB,MAAAJ,EAAa;AAAA,QACXA,EAAa,oBAAoB;AAAA,QACjCR;AAAA,QACAG;AAAA,QACA;AAAA,QACA;AAAA,MAAA;AAAA,IAEJ;AAAA,EACF;AACF,GAGaU,IAAyB,CACpCb,GACAG,MACG;AACH,QAAM,EAAE,MAAMK,EAAA,IAAiBC,EAAA;AAC/B,MAAIN;AACF,eAAWW,KAAQX;AACjB,MAAAK,EAAa,kBAAkBM,GAAMd,GAAIG,EAASW,CAAI,GAAG,IAAM,EAAI;AAGzE;"}
1
+ {"version":3,"file":"I18n.js","sources":["../../src/i18n/I18n.ts"],"sourcesContent":["/// <reference types=\"vite/client\" />\nimport { useTranslation } from 'react-i18next'\nimport type { CustomTypeOptions } from 'i18next'\nimport { LRUCache } from '@/helpers/LRUCache'\nimport type { ResourceDictionary, Resources } from '@/types/Helpers'\n\nexport const defaultNS = 'common'\n\nconst translationLoaders = import.meta.glob<Record<string, string>>('./*/*.json', {\n import: 'default',\n})\n\nfunction resolveTranslationLoader(lng: string | undefined, ns: string) {\n const language = lng ?? 'en'\n const primaryPath = `./${language}/${ns}.json`\n const load =\n translationLoaders[primaryPath as keyof typeof translationLoaders] ??\n translationLoaders[`./en/${ns}.json` as keyof typeof translationLoaders]\n return load\n}\n\n//LRU cache holding requested resources\nconst resourceCache = new LRUCache(50)\n/**\n * Dynamic loading of translation resources - works with Suspence to prevent early access to loadable strings\n * @param lng(string): resource language\n * @param ns(string): Namespace/name of the component/resource\n * @returns Promise<Translation resource>\n */\nconst loadResource = ({ lng = 'en', ns }: { ns: string; lng?: string }) => {\n let isLoading = true\n let isError = false\n let resource: Record<string, string>\n\n const importResources = async () => {\n try {\n const load = resolveTranslationLoader(lng, ns)\n if (!load) {\n isError = true\n isLoading = false\n return\n }\n resource = await load()\n isLoading = false\n } catch {\n isError = true\n isLoading = false\n }\n }\n const promise = importResources()\n return () => {\n if (isLoading) {\n // eslint-disable-next-line @typescript-eslint/only-throw-error\n throw promise // Throw the promise to indicate Suspense should suspend.\n } else if (isError) {\n throw new Error(`Error loading translation for component: ${ns}`) // Handle error\n } else {\n return resource // Return the resource when loading is complete\n }\n }\n}\n\n/**\n * Hook that allows component to load custom dictionary\n * @param @private {string} ns - Namespace - should match component name exactly - not exposed to consumers\n */\nexport const useI18n = (\n namespaces:\n | keyof CustomTypeOptions['resources']\n | Array<keyof CustomTypeOptions['resources']>\n | null,\n) => {\n //Getting our instance of i18n -> supplied by the provider set in GustoApiProvider\n const { i18n: i18nInstance } = useTranslation()\n //Abort when namespace is not provided\n if (!namespaces) return\n const nsMap = Array.isArray(namespaces) ? namespaces : [namespaces]\n for (const ns of nsMap) {\n const key = `${i18nInstance.resolvedLanguage}:${ns}`\n //Skip loading default resource if it is already in cache\n if (resourceCache.get(key) === null) {\n //If resource not in cache, initiate loading and add getter to cache\n resourceCache.put(key, loadResource({ lng: i18nInstance.resolvedLanguage, ns: ns }))\n }\n //Get resourceGetter from cache\n const resourceGetter = resourceCache.get(key)\n if (resourceGetter) {\n const resource = resourceGetter()\n i18nInstance.addResourceBundle(\n i18nInstance.resolvedLanguage ?? 'en',\n ns,\n resource,\n true,\n false,\n ) //Last argument is set to false to prevent override of keys provided by partners on GustoApiProvider level through dictionary prop\n }\n }\n}\n\n//Used by individual components to override their dictionaries with partner provided resources\nexport const useComponentDictionary = <K extends keyof Resources>(\n ns: keyof CustomTypeOptions['resources'],\n resource?: ResourceDictionary<K> | null,\n) => {\n const { i18n: i18nInstance } = useTranslation()\n if (resource) {\n for (const lang in resource) {\n i18nInstance.addResourceBundle(lang, ns, resource[lang], true, true)\n }\n }\n}\n"],"names":["defaultNS","translationLoaders","m","resolveTranslationLoader","lng","ns","primaryPath","resourceCache","LRUCache","loadResource","isLoading","isError","resource","promise","load","useI18n","namespaces","i18nInstance","useTranslation","nsMap","key","resourceGetter","useComponentDictionary","lang"],"mappings":";;AAMO,MAAMA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AEH,QAAM,EAAE,MAAMC,EAAA,IAAiBC,EAAA;AAE/B,MAAI,CAACF,EAAY;AACjB,QAAMG,IAAQ,MAAM,QAAQH,CAAU,IAAIA,IAAa,CAACA,CAAU;AAClE,aAAWX,KAAMc,GAAO;AACtB,UAAMC,IAAM,GAAGH,EAAa,gBAAgB,IAAIZ,CAAE;AAElD,IAAIE,EAAc,IAAIa,CAAG,MAAM,QAE7Bb,EAAc,IAAIa,GAAKX,EAAa,EAAE,KAAKQ,EAAa,kBAAkB,IAAAZ,EAAA,CAAQ,CAAC;AAGrF,UAAMgB,IAAiBd,EAAc,IAAIa,CAAG;AAC5C,QAAIC,GAAgB;AAClB,YAAMT,IAAWS,EAAA;AACjB,MAAAJ,EAAa;AAAA,QACXA,EAAa,oBAAoB;AAAA,QACjCZ;AAAA,QACAO;AAAA,QACA;AAAA,QACA;AAAA,MAAA;AAAA,IAEJ;AAAA,EACF;AACF,GAGaU,IAAyB,CACpCjB,GACAO,MACG;AACH,QAAM,EAAE,MAAMK,EAAA,IAAiBC,EAAA;AAC/B,MAAIN;AACF,eAAWW,KAAQX;AACjB,MAAAK,EAAa,kBAAkBM,GAAMlB,GAAIO,EAASW,CAAI,GAAG,IAAM,EAAI;AAGzE;"}
@@ -1,10 +1,10 @@
1
- const e = "Company addresses", s = "To automate your payroll filings, we need to have your company's accurate addresses. Please enter your mailing and filing addresses and all addresses where you have employees physically working in the United States.", t = "List of company addresses", a = "Addresses", o = "Address status", i = "Filing Address", n = "Mailing Address", d = "Location actions", l = "Edit", r = "No addresses", c = "Once you’ve added addresses they will appear here", p = "+ Add another address", y = "+ Add an address", m = "Add company address", h = "We will need to collect and add any employee’s physical working address in the US including remote employees and employees who work from home", u = "Street 1", g = "Street 2", L = "City", b = "State", f = "Select state...", z = "Zip", v = "Phone number", A = "Address types", C = "Mailing address", w = "This is where you'd like to receive mail. It's usually the same as your filing address.", T = "Filing address", P = "This is your primary physical place of business. It can't be a P.O. Box. The filing address should match the address you have on file with the IRS, which you can find on your federal EIN assignment form (Form CP575). We'll use it for all local, state, and federal filings.", S = "Save", F = "Cancel", D = "Continue", k = { street1: "Street address is required", city: "Please provide valid city name", state: "Please select a state", zip: "Please provide valid zip code", phone: "Please provide valid phone number" }, I = {
1
+ const e = "Company addresses", s = "To automate your payroll filings, we need to have your company's accurate addresses. Please enter your mailing and filing addresses and all addresses where you have employees physically working in the United States.", t = "List of company addresses", a = "Addresses", i = "Address status", o = "Filing Address", n = "Mailing Address", d = "Location actions", l = "Edit", r = "No addresses", c = "Once you’ve added addresses they will appear here", p = "+ Add another address", y = "+ Add an address", h = "Add company address", m = "We will need to collect and add any employee’s physical working address in the US including remote employees and employees who work from home", g = "Street 1", u = "Street 2", f = "City", L = "State", b = "Select state...", N = "Zip", A = "Phone number", T = "Address types", v = "Mailing address", C = "This is where you'd like to receive mail. It's usually the same as your filing address.", w = "This is your company's mailing address. To change it, designate a different location as the mailing address.", P = "Filing address", S = "This is your primary physical place of business. It can't be a P.O. Box. The filing address should match the address you have on file with the IRS, which you can find on your federal EIN assignment form (Form CP575). We'll use it for all local, state, and federal filings.", D = "This is your company's filing address. To change it, designate a different location as the filing address.", k = "Save", F = "Cancel", z = "Continue", I = { street1: "Street address is required", city: "Please provide valid city name", state: "Please select a state", zip: "Please provide valid zip code", phone: "Please provide valid phone number" }, x = {
2
2
  locationsListTitle: e,
3
3
  locationsListDescription: s,
4
4
  locationListLabel: t,
5
5
  locationListCol1: a,
6
- locationListCol2: o,
7
- filingAddress: i,
6
+ locationListCol2: i,
7
+ filingAddress: o,
8
8
  mailingAddress: n,
9
9
  hamburgerTitle: d,
10
10
  editCta: l,
@@ -12,57 +12,61 @@ const e = "Company addresses", s = "To automate your payroll filings, we need to
12
12
  emptyTableDescription: c,
13
13
  addLocationCta: p,
14
14
  addFirstLocationCta: y,
15
- locationFormTitle: m,
16
- locationFormDescription: h,
17
- street1Label: u,
18
- street2Label: g,
19
- cityLabel: L,
20
- stateLabel: b,
21
- statePlaceholder: f,
15
+ locationFormTitle: h,
16
+ locationFormDescription: m,
17
+ street1Label: g,
18
+ street2Label: u,
19
+ cityLabel: f,
20
+ stateLabel: L,
21
+ statePlaceholder: b,
22
22
  zipLabel: "Zip",
23
- phoneNumberLabel: v,
24
- addressTypeLabel: A,
25
- mailingAddressLabel: C,
26
- mailingAddressDescription: w,
27
- filingAddressLabel: T,
28
- filingAddressDescription: P,
29
- saveCta: S,
23
+ phoneNumberLabel: A,
24
+ addressTypeLabel: T,
25
+ mailingAddressLabel: v,
26
+ mailingAddressDescription: C,
27
+ mailingAddressDescriptionLocked: w,
28
+ filingAddressLabel: P,
29
+ filingAddressDescription: S,
30
+ filingAddressDescriptionLocked: D,
31
+ saveCta: k,
30
32
  cancelCta: F,
31
- continueCta: D,
32
- validations: k
33
+ continueCta: z,
34
+ validations: I
33
35
  };
34
36
  export {
35
37
  y as addFirstLocationCta,
36
38
  p as addLocationCta,
37
- A as addressTypeLabel,
39
+ T as addressTypeLabel,
38
40
  F as cancelCta,
39
- L as cityLabel,
40
- D as continueCta,
41
- I as default,
41
+ f as cityLabel,
42
+ z as continueCta,
43
+ x as default,
42
44
  l as editCta,
43
45
  c as emptyTableDescription,
44
46
  r as emptyTableTitle,
45
- i as filingAddress,
46
- P as filingAddressDescription,
47
- T as filingAddressLabel,
47
+ o as filingAddress,
48
+ S as filingAddressDescription,
49
+ D as filingAddressDescriptionLocked,
50
+ P as filingAddressLabel,
48
51
  d as hamburgerTitle,
49
- h as locationFormDescription,
50
- m as locationFormTitle,
52
+ m as locationFormDescription,
53
+ h as locationFormTitle,
51
54
  a as locationListCol1,
52
- o as locationListCol2,
55
+ i as locationListCol2,
53
56
  t as locationListLabel,
54
57
  s as locationsListDescription,
55
58
  e as locationsListTitle,
56
59
  n as mailingAddress,
57
- w as mailingAddressDescription,
58
- C as mailingAddressLabel,
59
- v as phoneNumberLabel,
60
- S as saveCta,
61
- b as stateLabel,
62
- f as statePlaceholder,
63
- u as street1Label,
64
- g as street2Label,
65
- k as validations,
66
- z as zipLabel
60
+ C as mailingAddressDescription,
61
+ w as mailingAddressDescriptionLocked,
62
+ v as mailingAddressLabel,
63
+ A as phoneNumberLabel,
64
+ k as saveCta,
65
+ L as stateLabel,
66
+ b as statePlaceholder,
67
+ g as street1Label,
68
+ u as street2Label,
69
+ I as validations,
70
+ N as zipLabel
67
71
  };
68
72
  //# sourceMappingURL=Company.Locations.json.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Company.Locations.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"Company.Locations.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,4 +1,4 @@
1
- const e = { title: "Policy details", policyNameLabel: "Policy name", accrualMethodLabel: "Accrual method", accrualMethodHint: "The rate at which employees will accrue time paid time off.", perHourPaidLabel: "Based on hours worked", perHourPaidHint: "Employees earn time off based on hours worked (e.g., 1 hour for every 40 hours worked).", perYearLabel: "Fixed amount per year", perYearHint: "Employees earn a set amount of time off each year. (e.g., 120 hours per year).", unlimitedLabel: "Unlimited", unlimitedHint: "Employees can take flexible time off with no set limit.", accrualRateAndUnitError: "You must provide a valid base rate.", employeesWillAccrueLabel: "Employees will accrue", forEveryLabel: "For every", hoursUnit: "hours", hoursWorkedUnit: "hours worked", additionalOptionsLabel: "Additional options", includeOvertimeLabel: "Include overtime hours", allPaidHoursLabel: "Include all paid hours", fixedAccrualRateLabel: "Total hours per year", fixedAccrualRateHint: "The total number of hours employees earn.", accrualMethodFixed: "Accrual rate", accrualMethodFixedHint: "The rate at which employees will accrue paid time off.", perPayPeriodLabel: "Each pay period", perPayPeriodHint: "Employees earn time off gradually with each paycheck.", allAtOnceLabel: "All at once", allAtOnceHint: "Employees receive their full annual time off balance upfront.", policyResetDateType: "Reset date", policyResetDateTypeHint: "The accrual period will reset on this date each year.", perAnniversaryYearLabel: "Each employee's start date", perCalendarYearLabel: "Custom date", monthLabel: "Month", dayLabel: "Day" }, a = { title: "Policy settings", hoursUnit: "hours", daysUnit: "days", accrualMaximumLabel: "Accrual maximum", accrualMaximumHint: "The maximum balance an employee can accrue per period. Accrual will stop when this limit is reached.", balanceMaximumLabel: "Balance maximum", balanceMaximumHint: "The maximum balance an employee can hold at once. Accrual stops when this limit is reached.", carryOverLimitLabel: "Carry over limit", carryOverLimitHint: "The maximum hours allowed to carryover from one accrual period to the next.", waitingPeriodLabel: "Waiting period", waitingPeriodHint: "The number of days employees must work before they begin accruing time off.", paidOutOnTerminationLabel: "Payout on dismissal", paidOutOnTerminationHint: "Choose if unused time off is paid out when an employee leaves. Some states require it by law.", numberOfHoursPlaceholder: "Number of hours", numberOfDaysPlaceholder: "Number of days", continueCta: "Save" }, o = { title: "Add employees to your policy", employeesMovedWarning: "Any employees currently assigned to another {{policyType}} policy will be moved to this policy.", createPolicyCta: "Create policy", policyType: { vacation: "paid time off", sick: "sick leave" } }, t = { title: "Starting balances", description: "If your employees have an existing balance, please enter those hours here. Employees moving to this policy from another will carry over their accrued hours.", noEmployees: "You haven't added any employees to this policy yet, so there aren't any starting balances to add.", alertHeader: "The following employees' balances need review", createPolicyCta: "Create policy" }, i = { balance: "Balance (hrs)", employeeCount_one: "{{count}} employee", employeeCount_other: "{{count}} employees" }, l = "Save & continue", r = "Back", n = "Cancel", c = { policyUpdated: "Details for this policy have been updated.", policyActive: "Your time off policy is active.", employeesAdded_one: "{{count}} employee has been added to this policy.", employeesAdded_other: "{{count}} employees have been added to this policy.", balanceUpdated: "{{name}}'s time off balance has been updated.", settingsUpdated: "Details for this policy have been updated." }, s = {
1
+ const e = { title: "Policy details", policyNameLabel: "Policy name", accrualMethodLabel: "Accrual method", accrualMethodHint: "The rate at which employees will accrue time paid time off.", perHourPaidLabel: "Based on hours worked", perHourPaidHint: "Employees earn time off based on hours worked (e.g., 1 hour for every 40 hours worked).", perYearLabel: "Fixed amount per year", perYearHint: "Employees earn a set amount of time off each year. (e.g., 120 hours per year).", unlimitedLabel: "Unlimited", unlimitedHint: "Employees can take flexible time off with no set limit.", accrualRateAndUnitError: "You must provide a valid base rate.", employeesWillAccrueLabel: "Employees will accrue", forEveryLabel: "For every", hoursUnit: "hours", hoursWorkedUnit: "hours worked", additionalOptionsLabel: "Additional options", includeOvertimeLabel: "Include overtime hours", allPaidHoursLabel: "Include all paid hours", fixedAccrualRateLabel: "Total hours per year", fixedAccrualRateHint: "The total number of hours employees earn.", accrualMethodFixed: "Accrual rate", accrualMethodFixedHint: "The rate at which employees will accrue paid time off.", perPayPeriodLabel: "Each pay period", perPayPeriodHint: "Employees earn time off gradually with each paycheck.", allAtOnceLabel: "All at once", allAtOnceHint: "Employees receive their full annual time off balance upfront.", policyResetDateType: "Reset date", policyResetDateTypeHint: "The accrual period will reset on this date each year.", perAnniversaryYearLabel: "Each employee's start date", perCalendarYearLabel: "Custom date", monthLabel: "Month", dayLabel: "Day", validations: { policyName: "Policy name is required.", accrualMethod: "Please select an accrual method.", accrualRate: "Accrual rate is required.", accrualRateUnit: "Hours worked is required.", accrualMethodFixed: "Please select an accrual rate.", resetDateType: "Please select a reset date." } }, a = { title: "Policy settings", hoursUnit: "hours", daysUnit: "days", accrualMaximumLabel: "Accrual maximum", accrualMaximumHint: "The maximum balance an employee can accrue per period. Accrual will stop when this limit is reached.", balanceMaximumLabel: "Balance maximum", balanceMaximumHint: "The maximum balance an employee can hold at once. Accrual stops when this limit is reached.", carryOverLimitLabel: "Carry over limit", carryOverLimitHint: "The maximum hours allowed to carryover from one accrual period to the next.", waitingPeriodLabel: "Waiting period", waitingPeriodHint: "The number of days employees must work before they begin accruing time off.", paidOutOnTerminationLabel: "Payout on dismissal", paidOutOnTerminationHint: "Choose if unused time off is paid out when an employee leaves. Some states require it by law.", numberOfHoursPlaceholder: "Number of hours", numberOfDaysPlaceholder: "Number of days", continueCta: "Save" }, o = { title: "Add employees to your policy", employeesMovedWarning: "Any employees currently assigned to another {{policyType}} policy will be moved to this policy.", createPolicyCta: "Create policy", policyType: { vacation: "paid time off", sick: "sick leave" } }, t = { title: "Starting balances", description: "If your employees have an existing balance, please enter those hours here. Employees moving to this policy from another will carry over their accrued hours.", noEmployees: "You haven't added any employees to this policy yet, so there aren't any starting balances to add.", alertHeader: "The following employees' balances need review", createPolicyCta: "Create policy" }, i = { balance: "Balance (hrs)", employeeCount_one: "{{count}} employee", employeeCount_other: "{{count}} employees" }, l = "Save & continue", r = "Back", c = "Cancel", n = { policyUpdated: "Details for this policy have been updated.", policyActive: "Your time off policy is active.", employeesAdded_one: "{{count}} employee has been added to this policy.", employeesAdded_other: "{{count}} employees have been added to this policy.", balanceUpdated: "{{name}}'s time off balance has been updated.", settingsUpdated: "Details for this policy have been updated." }, s = {
2
2
  policyDetails: e,
3
3
  policySettings: a,
4
4
  addEmployees: o,
@@ -6,17 +6,17 @@ const e = { title: "Policy details", policyNameLabel: "Policy name", accrualMeth
6
6
  balanceTable: i,
7
7
  continueCta: l,
8
8
  backCta: r,
9
- cancelCta: n,
10
- flash: c
9
+ cancelCta: c,
10
+ flash: n
11
11
  };
12
12
  export {
13
13
  o as addEmployees,
14
14
  r as backCta,
15
15
  i as balanceTable,
16
- n as cancelCta,
16
+ c as cancelCta,
17
17
  l as continueCta,
18
18
  s as default,
19
- c as flash,
19
+ n as flash,
20
20
  e as policyDetails,
21
21
  a as policySettings,
22
22
  t as startingBalances
@@ -0,0 +1,22 @@
1
+ const e = "Add employees to policy", t = "Select the employees you want to add to this policy.", o = "Select the employees you want to add to this holiday pay policy.", n = "Employees can only be enrolled in one time-off policy. Adding them here will remove them from their current policy.", c = "Department", i = "Starting balance (hrs)", l = "Back", a = "Continue", s = {
2
+ title: e,
3
+ description: t,
4
+ holidayDescription: o,
5
+ reassignmentWarning: n,
6
+ departmentColumn: c,
7
+ startingBalanceColumn: i,
8
+ backCta: l,
9
+ continueCta: a
10
+ };
11
+ export {
12
+ l as backCta,
13
+ a as continueCta,
14
+ s as default,
15
+ c as departmentColumn,
16
+ t as description,
17
+ o as holidayDescription,
18
+ n as reassignmentWarning,
19
+ i as startingBalanceColumn,
20
+ e as title
21
+ };
22
+ //# sourceMappingURL=Company.TimeOff.SelectEmployees.json.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Company.TimeOff.SelectEmployees.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;"}
@@ -0,0 +1,60 @@
1
+ const e = "Manage home address", t = "An employee's home address is used to calculate their taxes and determine eligibility for certain benefits. Make sure to keep it up-to-date.", s = "Open address row actions", a = "Edit", n = "Delete", o = "Current home address", d = "Since {{date}}", i = "Edit", r = "Change address", c = "Change pending", l = "This employee's", h = "{{possessiveLabel}} home address will change to {{newAddress}} on {{effectiveDate}}.", m = "Home address history", p = "No address history yet", u = "Once this employee has had more than one home address, their previous addresses will appear in this list.", g = { address: "Address", startDate: "Start date", endDate: "End date" }, y = "Edit home address", f = "Update this employee's current home address. This information is used for payroll, benefits, and HR, so please make sure it's accurate.", D = "Add a new home address", w = "Enter the new address and when it takes effect. This information is used for payroll, benefits, and HR, so please make sure it's accurate.", T = "The date the employee started living at this address.", M = "Save", b = "Cancel", C = "Delete address?", E = "Deleting an address can't be undone. <strong>{{address}}</strong> will be deleted. This can have implications on your tax calculations & withholdings.", v = "Delete address", S = { startDateRequired: "Start date is required" }, k = {
2
+ title: e,
3
+ description: t,
4
+ rowMenuAriaLabel: s,
5
+ rowEdit: a,
6
+ rowDelete: n,
7
+ currentSectionTitle: o,
8
+ currentSince: d,
9
+ editCta: i,
10
+ changeCta: r,
11
+ changePendingTitle: c,
12
+ changePendingPossessiveFallback: l,
13
+ changePendingDescription: h,
14
+ historySectionTitle: m,
15
+ historyEmptyTitle: p,
16
+ historyEmptyDescription: u,
17
+ columns: g,
18
+ editModalTitle: y,
19
+ editModalDescription: f,
20
+ createModalTitle: D,
21
+ createModalDescription: w,
22
+ startDateHelper: T,
23
+ submitCta: M,
24
+ cancelCta: b,
25
+ deleteModalTitle: C,
26
+ deleteModalDescription: E,
27
+ deleteModalConfirmCta: v,
28
+ form: S
29
+ };
30
+ export {
31
+ b as cancelCta,
32
+ r as changeCta,
33
+ h as changePendingDescription,
34
+ l as changePendingPossessiveFallback,
35
+ c as changePendingTitle,
36
+ g as columns,
37
+ w as createModalDescription,
38
+ D as createModalTitle,
39
+ o as currentSectionTitle,
40
+ d as currentSince,
41
+ k as default,
42
+ v as deleteModalConfirmCta,
43
+ E as deleteModalDescription,
44
+ C as deleteModalTitle,
45
+ t as description,
46
+ i as editCta,
47
+ f as editModalDescription,
48
+ y as editModalTitle,
49
+ S as form,
50
+ u as historyEmptyDescription,
51
+ p as historyEmptyTitle,
52
+ m as historySectionTitle,
53
+ n as rowDelete,
54
+ a as rowEdit,
55
+ s as rowMenuAriaLabel,
56
+ T as startDateHelper,
57
+ M as submitCta,
58
+ e as title
59
+ };
60
+ //# sourceMappingURL=Employee.HomeAddress.Management.json.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Employee.HomeAddress.Management.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,4 +1,4 @@
1
- const e = "Home address", t = "Employee’s home mailing address, within the United States.", o = "Street 1", s = "Street 2", i = "City", n = "State", a = "Select state...", g = "Zip", r = "Include courtesy withholding", c = "Withhold and pay local income taxes for employees who live and work in different states. ", l = '<LearnMoreLink href="https://support.gusto.com/article/101365481100000/Reciprocal-agreements-and-courtesy-withholding" target="_blank">Learn more about courtesy withholdings.</LearnMoreLink>', d = "Courtesy withholding", h = "<p>Withholding on an employee's behalf will require your company to register with any corresponding agencies.</p><p>Also, if this employee's home address will change your company's state tax requirements, you may need to complete your company's state tax setup again.</p>", p = "Edit Address", y = "Cancel", m = "Submit", u = { street1: "Street address is required", city: "Please provide valid city name", state: "Please select a state", zip: "Please provide valid zip code" }, w = {
1
+ const e = "Home address", t = "Employee’s home mailing address, within the United States.", o = "Street 1", s = "Street 2", i = "City", n = "State", a = "Select state...", f = "Zip", r = "Effective date", c = "Include courtesy withholding", l = "Withhold and pay local income taxes for employees who live and work in different states. ", d = '<LearnMoreLink href="https://support.gusto.com/article/101365481100000/Reciprocal-agreements-and-courtesy-withholding" target="_blank">Learn more about courtesy withholdings.</LearnMoreLink>', h = "Courtesy withholding", p = "<p>Withholding on an employee's behalf will require your company to register with any corresponding agencies.</p><p>Also, if this employee's home address will change your company's state tax requirements, you may need to complete your company's state tax setup again.</p>", y = "Edit Address", m = "Cancel", u = "Submit", g = { street1: "Street address is required", city: "Please provide valid city name", state: "Please select a state", zip: "Please provide valid zip code" }, w = {
2
2
  formTitle: e,
3
3
  desc: t,
4
4
  street1: o,
@@ -7,34 +7,36 @@ const e = "Home address", t = "Employee’s home mailing address, within the Uni
7
7
  state: n,
8
8
  statePlaceholder: a,
9
9
  zip: "Zip",
10
- courtesyWithholdingLabel: r,
11
- courtesyWithholdingDescription: c,
12
- learnMoreCta: l,
13
- withholdingTitle: d,
14
- withholdingNote: h,
15
- editAddress: p,
16
- cancel: y,
17
- submit: m,
18
- validations: u
10
+ effectiveDate: r,
11
+ courtesyWithholdingLabel: c,
12
+ courtesyWithholdingDescription: l,
13
+ learnMoreCta: d,
14
+ withholdingTitle: h,
15
+ withholdingNote: p,
16
+ editAddress: y,
17
+ cancel: m,
18
+ submit: u,
19
+ validations: g
19
20
  };
20
21
  export {
21
- y as cancel,
22
+ m as cancel,
22
23
  i as city,
23
- c as courtesyWithholdingDescription,
24
- r as courtesyWithholdingLabel,
24
+ l as courtesyWithholdingDescription,
25
+ c as courtesyWithholdingLabel,
25
26
  w as default,
26
27
  t as desc,
27
- p as editAddress,
28
+ y as editAddress,
29
+ r as effectiveDate,
28
30
  e as formTitle,
29
- l as learnMoreCta,
31
+ d as learnMoreCta,
30
32
  n as state,
31
33
  a as statePlaceholder,
32
34
  o as street1,
33
35
  s as street2,
34
- m as submit,
35
- u as validations,
36
- h as withholdingNote,
37
- d as withholdingTitle,
38
- g as zip
36
+ u as submit,
37
+ g as validations,
38
+ p as withholdingNote,
39
+ h as withholdingTitle,
40
+ f as zip
39
41
  };
40
42
  //# sourceMappingURL=Employee.HomeAddress.json.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Employee.HomeAddress.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"Employee.HomeAddress.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;"}