@gusto/embedded-react-sdk 0.24.0 → 0.25.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 (292) hide show
  1. package/CHANGELOG.md +80 -0
  2. package/dist/assets/icons/slash-circle.svg.js +10 -0
  3. package/dist/assets/icons/slash-circle.svg.js.map +1 -0
  4. package/dist/components/Base/Base.d.ts +1 -1
  5. package/dist/components/Base/Base.js.map +1 -1
  6. package/dist/components/Common/Fields/FileInputField/FileInputField.d.ts +5 -0
  7. package/dist/components/Common/Fields/FileInputField/FileInputField.js +34 -0
  8. package/dist/components/Common/Fields/FileInputField/FileInputField.js.map +1 -0
  9. package/dist/components/Common/Fields/FileInputField/index.d.ts +2 -0
  10. package/dist/components/Common/PaginationControl/PaginationControl.js +41 -40
  11. package/dist/components/Common/PaginationControl/PaginationControl.js.map +1 -1
  12. package/dist/components/Common/PaginationControl/PaginationControlTypes.d.ts +1 -0
  13. package/dist/components/Common/SignatureForm/SignatureFormFields.js +1 -1
  14. package/dist/components/Common/UI/Breadcrumbs/Breadcrumbs.js +1 -1
  15. package/dist/components/Common/UI/FileInput/FileInput.d.ts +2 -0
  16. package/dist/components/Common/UI/FileInput/FileInput.js +151 -0
  17. package/dist/components/Common/UI/FileInput/FileInput.js.map +1 -0
  18. package/dist/components/Common/UI/FileInput/FileInput.module.scss.js +34 -0
  19. package/dist/components/Common/UI/FileInput/FileInput.module.scss.js.map +1 -0
  20. package/dist/components/Common/UI/FileInput/FileInputTypes.d.ts +45 -0
  21. package/dist/components/Common/UI/FileInput/FileInputTypes.js +8 -0
  22. package/dist/components/Common/UI/FileInput/FileInputTypes.js.map +1 -0
  23. package/dist/components/Common/UI/FileInput/index.d.ts +4 -0
  24. package/dist/components/Common/UI/ProgressBar/ProgressBar.js +4 -4
  25. package/dist/components/Common/UI/TextInput/TextInput.js +27 -23
  26. package/dist/components/Common/UI/TextInput/TextInput.js.map +1 -1
  27. package/dist/components/Common/UI/TextInput/TextInputTypes.d.ts +1 -1
  28. package/dist/components/Common/UI/TextInput/TextInputTypes.js.map +1 -1
  29. package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js +1 -1
  30. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.js +12 -12
  31. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js +4 -3
  32. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js.map +1 -1
  33. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatoryForm.js +1 -1
  34. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js +4 -3
  35. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js.map +1 -1
  36. package/dist/components/Company/AssignSignatory/useAssignSignatory.js +6 -5
  37. package/dist/components/Company/AssignSignatory/useAssignSignatory.js.map +1 -1
  38. package/dist/components/Company/BankAccount/BankAccountForm/Form.js +1 -1
  39. package/dist/components/Company/BankAccount/BankAccountForm/context.js +4 -3
  40. package/dist/components/Company/BankAccount/BankAccountForm/context.js.map +1 -1
  41. package/dist/components/Company/BankAccount/BankAccountVerify/Form.js +1 -1
  42. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js +4 -3
  43. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  44. package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js +4 -3
  45. package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js.map +1 -1
  46. package/dist/components/Company/FederalTaxes/Form.js +1 -1
  47. package/dist/components/Company/FederalTaxes/useFederalTaxes.js +9 -8
  48. package/dist/components/Company/FederalTaxes/useFederalTaxes.js.map +1 -1
  49. package/dist/components/Company/Industry/Context.js +7 -6
  50. package/dist/components/Company/Industry/Context.js.map +1 -1
  51. package/dist/components/Company/Locations/LocationForm/Form.js +1 -1
  52. package/dist/components/Company/Locations/LocationForm/useLocationForm.js +4 -3
  53. package/dist/components/Company/Locations/LocationForm/useLocationForm.js.map +1 -1
  54. package/dist/components/Company/Locations/LocationsList/List.js +35 -33
  55. package/dist/components/Company/Locations/LocationsList/List.js.map +1 -1
  56. package/dist/components/Company/Locations/LocationsList/LocationsList.js +29 -28
  57. package/dist/components/Company/Locations/LocationsList/LocationsList.js.map +1 -1
  58. package/dist/components/Company/Locations/LocationsList/useLocationsList.d.ts +1 -0
  59. package/dist/components/Company/Locations/LocationsList/useLocationsList.js +4 -3
  60. package/dist/components/Company/Locations/LocationsList/useLocationsList.js.map +1 -1
  61. package/dist/components/Company/OnboardingOverview/context.js +4 -3
  62. package/dist/components/Company/OnboardingOverview/context.js.map +1 -1
  63. package/dist/components/Company/PaySchedule/_parts/Edit.js +15 -15
  64. package/dist/components/Company/PaySchedule/usePaySchedule.js +6 -5
  65. package/dist/components/Company/PaySchedule/usePaySchedule.js.map +1 -1
  66. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js +4 -3
  67. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js.map +1 -1
  68. package/dist/components/Company/StateTaxes/StateTaxesList/context.js +4 -3
  69. package/dist/components/Company/StateTaxes/StateTaxesList/context.js.map +1 -1
  70. package/dist/components/Contractor/Address/Form.js +1 -1
  71. package/dist/components/Contractor/Address/useAddress.js +6 -5
  72. package/dist/components/Contractor/Address/useAddress.js.map +1 -1
  73. package/dist/components/Contractor/ContractorList/index.js +16 -15
  74. package/dist/components/Contractor/ContractorList/index.js.map +1 -1
  75. package/dist/components/Contractor/PaymentMethod/BankAccountForm.js +2 -2
  76. package/dist/components/Contractor/PaymentMethod/PaymentTypeForm.js +1 -1
  77. package/dist/components/Contractor/Payments/CreatePayment/CreatePayment.js +61 -59
  78. package/dist/components/Contractor/Payments/CreatePayment/CreatePayment.js.map +1 -1
  79. package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.js +24 -22
  80. package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.js.map +1 -1
  81. package/dist/components/Contractor/Payments/CreatePayment/EditContractorPaymentPresentation.js +38 -19
  82. package/dist/components/Contractor/Payments/CreatePayment/EditContractorPaymentPresentation.js.map +1 -1
  83. package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.d.ts +3 -1
  84. package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.js +26 -25
  85. package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.js.map +1 -1
  86. package/dist/components/Contractor/Payments/PaymentFlow/PaymentFlowComponents.d.ts +2 -0
  87. package/dist/components/Contractor/Payments/PaymentFlow/PaymentFlowComponents.js +25 -19
  88. package/dist/components/Contractor/Payments/PaymentFlow/PaymentFlowComponents.js.map +1 -1
  89. package/dist/components/Contractor/Payments/PaymentFlow/paymentStateMachine.d.ts +1 -0
  90. package/dist/components/Contractor/Payments/PaymentFlow/paymentStateMachine.js +86 -56
  91. package/dist/components/Contractor/Payments/PaymentFlow/paymentStateMachine.js.map +1 -1
  92. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistory.d.ts +1 -2
  93. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistory.js +46 -21
  94. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistory.js.map +1 -1
  95. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.d.ts +6 -15
  96. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.js +115 -99
  97. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.js.map +1 -1
  98. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.module.scss.js +8 -0
  99. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.module.scss.js.map +1 -0
  100. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatement.d.ts +8 -0
  101. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatement.js +51 -0
  102. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatement.js.map +1 -0
  103. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.d.ts +11 -0
  104. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.js +157 -0
  105. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.js.map +1 -0
  106. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.module.scss.js +22 -0
  107. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.module.scss.js.map +1 -0
  108. package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.js +40 -43
  109. package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.js.map +1 -1
  110. package/dist/components/Contractor/Profile/ContractorProfileForm.js +15 -15
  111. package/dist/components/Contractor/Profile/useContractorProfile.js +3 -2
  112. package/dist/components/Contractor/Profile/useContractorProfile.js.map +1 -1
  113. package/dist/components/Employee/Compensation/Edit.js +14 -14
  114. package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.js +10 -9
  115. package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.js.map +1 -1
  116. package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.js +11 -10
  117. package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.js.map +1 -1
  118. package/dist/components/Employee/Deductions/DeductionsForm/GarnishmentForm.js +11 -10
  119. package/dist/components/Employee/Deductions/DeductionsForm/GarnishmentForm.js.map +1 -1
  120. package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js +4 -3
  121. package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  122. package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js +4 -3
  123. package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js.map +1 -1
  124. package/dist/components/Employee/EmployeeList/EmployeeList.js +57 -56
  125. package/dist/components/Employee/EmployeeList/EmployeeList.js.map +1 -1
  126. package/dist/components/Employee/EmployeeList/List.js +34 -32
  127. package/dist/components/Employee/EmployeeList/List.js.map +1 -1
  128. package/dist/components/Employee/EmployeeList/useEmployeeList.d.ts +1 -0
  129. package/dist/components/Employee/EmployeeList/useEmployeeList.js +4 -3
  130. package/dist/components/Employee/EmployeeList/useEmployeeList.js.map +1 -1
  131. package/dist/components/Employee/FederalTaxes/FederalForm.js +7 -7
  132. package/dist/components/Employee/FederalTaxes/useFederalTaxes.js +4 -3
  133. package/dist/components/Employee/FederalTaxes/useFederalTaxes.js.map +1 -1
  134. package/dist/components/Employee/PaymentMethod/BankAccountEdit.js +2 -2
  135. package/dist/components/Employee/PaymentMethod/PaymentTypeForm.js +1 -1
  136. package/dist/components/Employee/PaymentMethod/Split.js +8 -8
  137. package/dist/components/Employee/PaymentMethod/usePaymentMethod.js +6 -5
  138. package/dist/components/Employee/PaymentMethod/usePaymentMethod.js.map +1 -1
  139. package/dist/components/Employee/Profile/AdminPersonalDetails.js +1 -1
  140. package/dist/components/Employee/Profile/HomeAddress.js +1 -1
  141. package/dist/components/Employee/Profile/PersonalDetailsInputs.js +2 -2
  142. package/dist/components/Employee/Profile/useProfile.js +4 -3
  143. package/dist/components/Employee/Profile/useProfile.js.map +1 -1
  144. package/dist/components/Employee/StateTaxes/useStateTaxes.js +4 -3
  145. package/dist/components/Employee/StateTaxes/useStateTaxes.js.map +1 -1
  146. package/dist/components/Employee/Taxes/FederalForm.js +7 -7
  147. package/dist/components/Employee/Taxes/useTaxes.js +4 -3
  148. package/dist/components/Employee/Taxes/useTaxes.js.map +1 -1
  149. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsForm/ConfirmWireDetailsForm.js +9 -9
  150. package/dist/components/Payroll/InformationRequests/InformationRequestForm/InformationRequestForm.d.ts +15 -0
  151. package/dist/components/Payroll/InformationRequests/InformationRequestForm/InformationRequestForm.js +142 -0
  152. package/dist/components/Payroll/InformationRequests/InformationRequestForm/InformationRequestForm.js.map +1 -0
  153. package/dist/components/Payroll/InformationRequests/InformationRequestForm/InformationRequestForm.module.scss.js +18 -0
  154. package/dist/components/Payroll/InformationRequests/InformationRequestForm/InformationRequestForm.module.scss.js.map +1 -0
  155. package/dist/components/Payroll/InformationRequests/InformationRequestForm/index.d.ts +2 -0
  156. package/dist/components/Payroll/InformationRequests/InformationRequestList/InformationRequestList.d.ts +7 -0
  157. package/dist/components/Payroll/InformationRequests/InformationRequestList/InformationRequestList.js +88 -0
  158. package/dist/components/Payroll/InformationRequests/InformationRequestList/InformationRequestList.js.map +1 -0
  159. package/dist/components/Payroll/InformationRequests/InformationRequestList/index.d.ts +2 -0
  160. package/dist/components/Payroll/InformationRequests/InformationRequests.d.ts +6 -0
  161. package/dist/components/Payroll/InformationRequests/InformationRequests.js +55 -0
  162. package/dist/components/Payroll/InformationRequests/InformationRequests.js.map +1 -0
  163. package/dist/components/Payroll/InformationRequests/InformationRequestsComponents.d.ts +19 -0
  164. package/dist/components/Payroll/InformationRequests/InformationRequestsComponents.js +20 -0
  165. package/dist/components/Payroll/InformationRequests/InformationRequestsComponents.js.map +1 -0
  166. package/dist/components/Payroll/InformationRequests/index.d.ts +3 -0
  167. package/dist/components/Payroll/InformationRequests/informationRequestsStateMachine.d.ts +13 -0
  168. package/dist/components/Payroll/InformationRequests/informationRequestsStateMachine.js +47 -0
  169. package/dist/components/Payroll/InformationRequests/informationRequestsStateMachine.js.map +1 -0
  170. package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js +116 -130
  171. package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js.map +1 -1
  172. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.d.ts +5 -2
  173. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js +107 -99
  174. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js.map +1 -1
  175. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.module.scss.js +2 -4
  176. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.module.scss.js.map +1 -1
  177. package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.d.ts +21 -0
  178. package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.js +105 -0
  179. package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.js.map +1 -0
  180. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.js +41 -37
  181. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.js.map +1 -1
  182. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.d.ts +5 -4
  183. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js +137 -131
  184. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js.map +1 -1
  185. package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js +16 -15
  186. package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js.map +1 -1
  187. package/dist/components/Payroll/PayrollFlow/payrollStateMachine.d.ts +2 -0
  188. package/dist/components/Payroll/PayrollFlow/payrollStateMachine.js +174 -106
  189. package/dist/components/Payroll/PayrollFlow/payrollStateMachine.js.map +1 -1
  190. package/dist/components/Payroll/PayrollHistory/PayrollHistory.js +28 -28
  191. package/dist/components/Payroll/PayrollHistory/PayrollHistory.js.map +1 -1
  192. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.d.ts +2 -2
  193. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js +85 -104
  194. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js.map +1 -1
  195. package/dist/components/Payroll/PayrollLanding/PayrollLanding.js +24 -20
  196. package/dist/components/Payroll/PayrollLanding/PayrollLanding.js.map +1 -1
  197. package/dist/components/Payroll/PayrollLanding/PayrollLandingFlowComponents.d.ts +2 -0
  198. package/dist/components/Payroll/PayrollLanding/PayrollLandingFlowComponents.js +51 -46
  199. package/dist/components/Payroll/PayrollLanding/PayrollLandingFlowComponents.js.map +1 -1
  200. package/dist/components/Payroll/PayrollLanding/payrollLandingStateMachine.d.ts +2 -0
  201. package/dist/components/Payroll/PayrollLanding/payrollLandingStateMachine.js +111 -45
  202. package/dist/components/Payroll/PayrollLanding/payrollLandingStateMachine.js.map +1 -1
  203. package/dist/components/Payroll/PayrollList/PayrollListPresentation.js +136 -125
  204. package/dist/components/Payroll/PayrollList/PayrollListPresentation.js.map +1 -1
  205. package/dist/components/Payroll/PayrollList/PayrollListPresentation.module.scss.js +8 -4
  206. package/dist/components/Payroll/PayrollList/PayrollListPresentation.module.scss.js.map +1 -1
  207. package/dist/components/Payroll/PayrollOverview/PayrollOverview.js +117 -110
  208. package/dist/components/Payroll/PayrollOverview/PayrollOverview.js.map +1 -1
  209. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.d.ts +4 -2
  210. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js +282 -278
  211. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js.map +1 -1
  212. package/dist/components/Payroll/PayrollOverview/PayrollOverviewTypes.d.ts +6 -0
  213. package/dist/components/Payroll/PayrollOverview/PayrollOverviewTypes.js +5 -0
  214. package/dist/components/Payroll/PayrollOverview/PayrollOverviewTypes.js.map +1 -0
  215. package/dist/components/Payroll/RecoveryCases/RecoveryCases.d.ts +6 -0
  216. package/dist/components/Payroll/RecoveryCases/RecoveryCases.js +55 -0
  217. package/dist/components/Payroll/RecoveryCases/RecoveryCases.js.map +1 -0
  218. package/dist/components/Payroll/RecoveryCases/RecoveryCasesComponents.d.ts +19 -0
  219. package/dist/components/Payroll/RecoveryCases/RecoveryCasesComponents.js +19 -0
  220. package/dist/components/Payroll/RecoveryCases/RecoveryCasesComponents.js.map +1 -0
  221. package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.d.ts +7 -0
  222. package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.js +73 -0
  223. package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.js.map +1 -0
  224. package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.module.scss.js +10 -0
  225. package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.module.scss.js.map +1 -0
  226. package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/index.d.ts +2 -0
  227. package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.d.ts +14 -0
  228. package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.js +46 -0
  229. package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.js.map +1 -0
  230. package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/index.d.ts +2 -0
  231. package/dist/components/Payroll/RecoveryCases/index.d.ts +3 -0
  232. package/dist/components/Payroll/RecoveryCases/recoveryCasesStateMachine.d.ts +13 -0
  233. package/dist/components/Payroll/RecoveryCases/recoveryCasesStateMachine.js +47 -0
  234. package/dist/components/Payroll/RecoveryCases/recoveryCasesStateMachine.js.map +1 -0
  235. package/dist/components/Payroll/helpers.d.ts +12 -0
  236. package/dist/components/Payroll/helpers.js +129 -117
  237. package/dist/components/Payroll/helpers.js.map +1 -1
  238. package/dist/components/Payroll/index.d.ts +2 -0
  239. package/dist/components/Payroll/index.js +18 -14
  240. package/dist/components/Payroll/index.js.map +1 -1
  241. package/dist/components/Payroll/usePreparedPayrollData.d.ts +4 -1
  242. package/dist/components/Payroll/usePreparedPayrollData.js +43 -31
  243. package/dist/components/Payroll/usePreparedPayrollData.js.map +1 -1
  244. package/dist/contexts/ComponentAdapter/adapters/defaultComponentAdapter.js +27 -25
  245. package/dist/contexts/ComponentAdapter/adapters/defaultComponentAdapter.js.map +1 -1
  246. package/dist/contexts/ComponentAdapter/componentAdapterTypes.d.ts +1 -0
  247. package/dist/contexts/ComponentAdapter/createComponentsWithDefaults.d.ts +5 -0
  248. package/dist/contexts/ComponentAdapter/createComponentsWithDefaults.js +17 -15
  249. package/dist/contexts/ComponentAdapter/createComponentsWithDefaults.js.map +1 -1
  250. package/dist/contexts/ComponentAdapter/useComponentContext.d.ts +2 -0
  251. package/dist/contexts/ComponentAdapter/useComponentContext.js +3 -3
  252. package/dist/contexts/ComponentAdapter/useComponentContext.js.map +1 -1
  253. package/dist/helpers/dateFormatting.d.ts +1 -0
  254. package/dist/helpers/dateFormatting.js +1 -0
  255. package/dist/helpers/dateFormatting.js.map +1 -1
  256. package/dist/helpers/formattedStrings.d.ts +1 -0
  257. package/dist/helpers/formattedStrings.js +23 -18
  258. package/dist/helpers/formattedStrings.js.map +1 -1
  259. package/dist/helpers/responsive.js +1 -1
  260. package/dist/helpers/responsive.js.map +1 -1
  261. package/dist/i18n/I18n.js +3 -3
  262. package/dist/i18n/I18n.js.map +1 -1
  263. package/dist/i18n/en/Contractor.Payments.CreatePayment.json.js +36 -32
  264. package/dist/i18n/en/Contractor.Payments.CreatePayment.json.js.map +1 -1
  265. package/dist/i18n/en/Contractor.Payments.PaymentHistory.json.js +11 -11
  266. package/dist/i18n/en/Contractor.Payments.PaymentStatement.json.js +28 -0
  267. package/dist/i18n/en/Contractor.Payments.PaymentStatement.json.js.map +1 -0
  268. package/dist/i18n/en/Contractor.Payments.PaymentsList.json.js +14 -14
  269. package/dist/i18n/en/Payroll.InformationRequestForm.json.js +18 -0
  270. package/dist/i18n/en/Payroll.InformationRequestForm.json.js.map +1 -0
  271. package/dist/i18n/en/Payroll.InformationRequestList.json.js +18 -0
  272. package/dist/i18n/en/Payroll.InformationRequestList.json.js.map +1 -0
  273. package/dist/i18n/en/Payroll.PayrollConfiguration.json.js +27 -21
  274. package/dist/i18n/en/Payroll.PayrollConfiguration.json.js.map +1 -1
  275. package/dist/i18n/en/Payroll.PayrollHistory.json.js +6 -6
  276. package/dist/i18n/en/Payroll.PayrollLanding.json.js +5 -3
  277. package/dist/i18n/en/Payroll.PayrollLanding.json.js.map +1 -1
  278. package/dist/i18n/en/Payroll.PayrollOverview.json.js +32 -28
  279. package/dist/i18n/en/Payroll.PayrollOverview.json.js.map +1 -1
  280. package/dist/i18n/en/Payroll.RecoveryCasesList.json.js +14 -0
  281. package/dist/i18n/en/Payroll.RecoveryCasesList.json.js.map +1 -0
  282. package/dist/i18n/en/Payroll.RecoveryCasesResubmit.json.js +8 -0
  283. package/dist/i18n/en/Payroll.RecoveryCasesResubmit.json.js.map +1 -0
  284. package/dist/i18n/en/common.json.d.ts +6 -0
  285. package/dist/i18n/en/common.json.js +4 -2
  286. package/dist/i18n/en/common.json.js.map +1 -1
  287. package/dist/shared/constants.d.ts +25 -1
  288. package/dist/shared/constants.js +72 -55
  289. package/dist/shared/constants.js.map +1 -1
  290. package/dist/style.css +1 -1
  291. package/dist/types/i18next.d.ts +120 -3
  292. package/package.json +31 -20
@@ -1 +1 @@
1
- {"version":3,"file":"dateFormatting.js","sources":["../../src/helpers/dateFormatting.ts"],"sourcesContent":["/**\n * Normalizes any date input (string, Date, or undefined) to a Date object.\n * Handles YYYY-MM-DD strings by parsing them in local timezone to avoid timezone issues.\n * Also handles ISO timestamp strings for compatibility.\n * Returns null for invalid inputs.\n */\nexport const normalizeToDate = (dateInput?: string | Date | null): Date | null => {\n if (!dateInput) return null\n\n if (typeof dateInput === 'string') {\n if (/^\\d{4}-\\d{2}-\\d{2}$/.test(dateInput)) {\n const parts = dateInput.split('-')\n if (parts.length !== 3) return null\n\n const numbers = parts.map(Number)\n const year = numbers[0]\n const month = numbers[1]\n const day = numbers[2]\n if (year === undefined || month === undefined || day === undefined) {\n return null\n }\n\n if (\n isNaN(year) ||\n isNaN(month) ||\n isNaN(day) ||\n month < 1 ||\n month > 12 ||\n day < 1 ||\n day > 31\n ) {\n return null\n }\n\n return new Date(year, month - 1, day)\n }\n\n const parsedDate = new Date(dateInput)\n return isNaN(parsedDate.getTime()) ? null : parsedDate\n }\n\n if (dateInput instanceof Date) {\n return isNaN(dateInput.getTime()) ? null : dateInput\n }\n\n return null\n}\n\n/**\n * Creates a date formatter function that handles both string and Date inputs.\n */\nconst createDateFormatter =\n (options: Intl.DateTimeFormatOptions) =>\n (dateInput?: string | Date | null, locale?: string): string => {\n const date = normalizeToDate(dateInput)\n if (!date) return ''\n return date.toLocaleDateString(locale, options)\n }\n\nexport const formatDateShortWithWeekday = createDateFormatter({\n weekday: 'short',\n month: 'short',\n day: 'numeric',\n})\n\nexport const formatDateShortWithWeekdayAndYear = createDateFormatter({\n weekday: 'short',\n month: 'short',\n day: 'numeric',\n year: 'numeric',\n})\n\nexport const formatDateShort = createDateFormatter({\n month: 'short',\n day: 'numeric',\n})\n\nexport const formatDateShortWithYear = createDateFormatter({\n month: 'short',\n day: 'numeric',\n year: 'numeric',\n})\n\nexport const formatDateLong = createDateFormatter({\n month: 'long',\n day: 'numeric',\n})\n\nexport const formatDateLongWithYear = createDateFormatter({\n month: 'long',\n day: 'numeric',\n year: 'numeric',\n})\n\nexport const formatDateWithTime = (\n dateInput?: string | Date | null,\n locale?: string,\n): { time: string; date: string } => {\n const date = normalizeToDate(dateInput)\n if (!date) return { time: '', date: '' }\n\n const time = date.toLocaleTimeString(locale, {\n hour: 'numeric',\n minute: '2-digit',\n hour12: true,\n timeZoneName: 'short',\n })\n\n const dateString = date.toLocaleDateString(locale, {\n weekday: 'short',\n month: 'short',\n day: 'numeric',\n })\n\n return { time, date: dateString }\n}\n\nexport const formatPayPeriod = (\n startDateInput?: string | Date | null,\n endDateInput?: string | Date | null,\n locale?: string,\n): { startDate: string; endDate: string } => {\n const startDate = normalizeToDate(startDateInput)\n const endDate = normalizeToDate(endDateInput)\n\n if (!startDate || !endDate) {\n return { startDate: '', endDate: '' }\n }\n\n const startFormatted = startDate.toLocaleDateString(locale, {\n month: 'long',\n day: 'numeric',\n })\n\n const endFormatted = endDate.toLocaleDateString(locale, {\n month: 'short',\n day: 'numeric',\n year: 'numeric',\n })\n\n return { startDate: startFormatted, endDate: endFormatted }\n}\n\nexport const formatPayPeriodRange = (\n startDateInput?: string | Date | null,\n endDateInput?: string | Date | null,\n locale?: string,\n options?: { useShortMonth?: boolean },\n): string => {\n const startDate = normalizeToDate(startDateInput)\n const endDate = normalizeToDate(endDateInput)\n\n if (!startDate || !endDate) return ''\n\n const monthFormat = options?.useShortMonth ? 'short' : 'long'\n\n const startFormatted = startDate.toLocaleDateString(locale, {\n month: monthFormat,\n day: 'numeric',\n })\n\n const endFormatted = endDate.toLocaleDateString(locale, {\n month: monthFormat,\n day: 'numeric',\n year: 'numeric',\n })\n\n return `${startFormatted}–${endFormatted}`\n}\n\nexport const formatDateToStringDate = (date: Date): string | null => {\n if (isNaN(date.getTime())) {\n return null\n }\n return date.toISOString().split('T')[0] || null\n}\n\n/**\n * Normalizes Date to local midnight, handling timezone issues from any adapter.\n */\nexport const normalizeDateToLocal = (date: Date | null): Date | null => {\n if (!date || isNaN(date.getTime())) {\n return null\n }\n\n const isoString = date.toISOString()\n const [datePart] = isoString.split('T')\n if (!datePart) return null\n\n const parts = datePart.split('-')\n if (parts.length !== 3) return null\n const numbers = parts.map(Number)\n const year = numbers[0]!\n const month = numbers[1]!\n const day = numbers[2]!\n if (isNaN(year) || isNaN(month) || isNaN(day) || month < 1 || month > 12 || day < 1 || day > 31) {\n return null\n }\n\n return new Date(year, month - 1, day)\n}\n\nconst MS_PER_HOUR = 1000 * 60 * 60\nconst MS_PER_DAY = MS_PER_HOUR * 24\n\nexport const getHoursUntil = (deadline?: Date | string | null): number | null => {\n const deadlineDate = normalizeToDate(deadline)\n if (!deadlineDate) return null\n\n const now = new Date()\n const timeDiffMs = deadlineDate.getTime() - now.getTime()\n return timeDiffMs / MS_PER_HOUR\n}\n\nexport const getDaysUntil = (deadline?: Date | string | null): number | null => {\n const deadlineDate = normalizeToDate(deadline)\n if (!deadlineDate) return null\n\n const now = new Date()\n const timeDiffMs = deadlineDate.getTime() - now.getTime()\n return timeDiffMs / MS_PER_DAY\n}\n"],"names":["normalizeToDate","dateInput","parts","numbers","year","month","day","parsedDate","createDateFormatter","options","locale","date","formatDateShortWithWeekday","formatDateShortWithWeekdayAndYear","formatDateShort","formatDateShortWithYear","formatDateLong","formatDateLongWithYear","formatDateWithTime","time","dateString","formatPayPeriod","startDateInput","endDateInput","startDate","endDate","startFormatted","endFormatted","formatPayPeriodRange","monthFormat","formatDateToStringDate","normalizeDateToLocal","isoString","datePart","MS_PER_HOUR","MS_PER_DAY","getHoursUntil","deadline","deadlineDate","now","getDaysUntil"],"mappings":"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"}
1
+ {"version":3,"file":"dateFormatting.js","sources":["../../src/helpers/dateFormatting.ts"],"sourcesContent":["/**\n * Normalizes any date input (string, Date, or undefined) to a Date object.\n * Handles YYYY-MM-DD strings by parsing them in local timezone to avoid timezone issues.\n * Also handles ISO timestamp strings for compatibility.\n * Returns null for invalid inputs.\n */\nexport const normalizeToDate = (dateInput?: string | Date | null): Date | null => {\n if (!dateInput) return null\n\n if (typeof dateInput === 'string') {\n if (/^\\d{4}-\\d{2}-\\d{2}$/.test(dateInput)) {\n const parts = dateInput.split('-')\n if (parts.length !== 3) return null\n\n const numbers = parts.map(Number)\n const year = numbers[0]\n const month = numbers[1]\n const day = numbers[2]\n if (year === undefined || month === undefined || day === undefined) {\n return null\n }\n\n if (\n isNaN(year) ||\n isNaN(month) ||\n isNaN(day) ||\n month < 1 ||\n month > 12 ||\n day < 1 ||\n day > 31\n ) {\n return null\n }\n\n return new Date(year, month - 1, day)\n }\n\n const parsedDate = new Date(dateInput)\n return isNaN(parsedDate.getTime()) ? null : parsedDate\n }\n\n if (dateInput instanceof Date) {\n return isNaN(dateInput.getTime()) ? null : dateInput\n }\n\n return null\n}\n\n/**\n * Creates a date formatter function that handles both string and Date inputs.\n */\nconst createDateFormatter =\n (options: Intl.DateTimeFormatOptions) =>\n (dateInput?: string | Date | null, locale?: string): string => {\n const date = normalizeToDate(dateInput)\n if (!date) return ''\n return date.toLocaleDateString(locale, options)\n }\n\nexport const formatDateShortWithWeekday = createDateFormatter({\n weekday: 'short',\n month: 'short',\n day: 'numeric',\n})\n\nexport const formatDateShortWithWeekdayAndYear = createDateFormatter({\n weekday: 'short',\n month: 'short',\n day: 'numeric',\n year: 'numeric',\n})\n\nexport const formatDateShort = createDateFormatter({\n month: 'short',\n day: 'numeric',\n})\n\nexport const formatDateShortWithYear = createDateFormatter({\n month: 'short',\n day: 'numeric',\n year: 'numeric',\n})\n\nexport const formatDateLong = createDateFormatter({\n month: 'long',\n day: 'numeric',\n})\n\nexport const formatDateLongWithYear = createDateFormatter({\n month: 'long',\n day: 'numeric',\n year: 'numeric',\n})\n\nexport const formatDateWithTime = (\n dateInput?: string | Date | null,\n locale?: string,\n): { time: string; date: string } => {\n const date = normalizeToDate(dateInput)\n if (!date) return { time: '', date: '' }\n\n const time = date.toLocaleTimeString(locale, {\n hour: 'numeric',\n minute: '2-digit',\n hour12: true,\n timeZoneName: 'short',\n })\n\n const dateString = date.toLocaleDateString(locale, {\n weekday: 'short',\n month: 'short',\n day: 'numeric',\n })\n\n return { time, date: dateString }\n}\n\nexport const formatPayPeriod = (\n startDateInput?: string | Date | null,\n endDateInput?: string | Date | null,\n locale?: string,\n): { startDate: string; endDate: string } => {\n const startDate = normalizeToDate(startDateInput)\n const endDate = normalizeToDate(endDateInput)\n\n if (!startDate || !endDate) {\n return { startDate: '', endDate: '' }\n }\n\n const startFormatted = startDate.toLocaleDateString(locale, {\n month: 'long',\n day: 'numeric',\n })\n\n const endFormatted = endDate.toLocaleDateString(locale, {\n month: 'short',\n day: 'numeric',\n year: 'numeric',\n })\n\n return { startDate: startFormatted, endDate: endFormatted }\n}\n\nexport const formatPayPeriodRange = (\n startDateInput?: string | Date | null,\n endDateInput?: string | Date | null,\n locale?: string,\n options?: { useShortMonth?: boolean },\n): string => {\n const startDate = normalizeToDate(startDateInput)\n const endDate = normalizeToDate(endDateInput)\n\n if (!startDate || !endDate) return ''\n\n const monthFormat = options?.useShortMonth ? 'short' : 'long'\n\n const startFormatted = startDate.toLocaleDateString(locale, {\n month: monthFormat,\n day: 'numeric',\n })\n\n const endFormatted = endDate.toLocaleDateString(locale, {\n month: monthFormat,\n day: 'numeric',\n year: 'numeric',\n })\n\n return `${startFormatted}–${endFormatted}`\n}\n\nexport const formatDateToStringDate = (date: Date): string | null => {\n if (isNaN(date.getTime())) {\n return null\n }\n return date.toISOString().split('T')[0] || null\n}\n\n/**\n * Normalizes Date to local midnight, handling timezone issues from any adapter.\n */\nexport const normalizeDateToLocal = (date: Date | null): Date | null => {\n if (!date || isNaN(date.getTime())) {\n return null\n }\n\n const isoString = date.toISOString()\n const [datePart] = isoString.split('T')\n if (!datePart) return null\n\n const parts = datePart.split('-')\n if (parts.length !== 3) return null\n const numbers = parts.map(Number)\n const year = numbers[0]!\n const month = numbers[1]!\n const day = numbers[2]!\n if (isNaN(year) || isNaN(month) || isNaN(day) || month < 1 || month > 12 || day < 1 || day > 31) {\n return null\n }\n\n return new Date(year, month - 1, day)\n}\n\nexport const MS_PER_HOUR = 1000 * 60 * 60\nconst MS_PER_DAY = MS_PER_HOUR * 24\n\nexport const getHoursUntil = (deadline?: Date | string | null): number | null => {\n const deadlineDate = normalizeToDate(deadline)\n if (!deadlineDate) return null\n\n const now = new Date()\n const timeDiffMs = deadlineDate.getTime() - now.getTime()\n return timeDiffMs / MS_PER_HOUR\n}\n\nexport const getDaysUntil = (deadline?: Date | string | null): number | null => {\n const deadlineDate = normalizeToDate(deadline)\n if (!deadlineDate) return null\n\n const now = new Date()\n const timeDiffMs = deadlineDate.getTime() - now.getTime()\n return timeDiffMs / MS_PER_DAY\n}\n"],"names":["normalizeToDate","dateInput","parts","numbers","year","month","day","parsedDate","createDateFormatter","options","locale","date","formatDateShortWithWeekday","formatDateShortWithWeekdayAndYear","formatDateShort","formatDateShortWithYear","formatDateLong","formatDateLongWithYear","formatDateWithTime","time","dateString","formatPayPeriod","startDateInput","endDateInput","startDate","endDate","startFormatted","endFormatted","formatPayPeriodRange","monthFormat","formatDateToStringDate","normalizeDateToLocal","isoString","datePart","MS_PER_HOUR","MS_PER_DAY","getHoursUntil","deadline","deadlineDate","now","getDaysUntil"],"mappings":"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"}
@@ -26,3 +26,4 @@ export declare function createMarkup(dirty: string): {
26
26
  export declare const removeNonDigits: (value: string) => string;
27
27
  export declare const snakeCaseToCamelCase: (s: string) => string;
28
28
  export declare const camelCaseToSnakeCase: (s: string) => string;
29
+ export declare const formatPhoneNumber: (phoneNumber: string | number | null | undefined) => string;
@@ -1,13 +1,13 @@
1
- import m from "dompurify";
1
+ import i from "dompurify";
2
2
  import "react-i18next";
3
3
  import "react";
4
- const c = (t) => t.charAt(0).toLocaleUpperCase() + t.slice(1), l = ({
4
+ const c = (t) => t.charAt(0).toLocaleUpperCase() + t.slice(1), h = ({
5
5
  first_name: t,
6
6
  last_name: e
7
- }) => `${t ? c(t) : ""}${e ? n(c(e)) : ""}`, n = (t) => t ? ` ${t}` : "", i = (t) => {
7
+ }) => `${t ? c(t) : ""}${e ? n(c(e)) : ""}`, n = (t) => t ? ` ${t}` : "", m = (t) => {
8
8
  const e = n(t.street1), r = n(t.street2);
9
9
  return `${e},${r}`;
10
- }, u = (t) => `${n(t.city)}, ${n(t.state)} ${n(t.zip)}`, h = (t) => `${i(t)} ${u(t)}`, p = (t, e) => e ? `${t}%` : `$${t}`, s = (t, e = "en-US") => {
10
+ }, u = (t) => `${n(t.city)}, ${n(t.state)} ${n(t.zip)}`, S = (t) => `${m(t)} ${u(t)}`, p = (t, e) => e ? `${t}%` : `$${t}`, a = (t, e = "en-US") => {
11
11
  const r = t.toLocaleString(e, {
12
12
  minimumFractionDigits: 2,
13
13
  maximumFractionDigits: 2
@@ -17,20 +17,20 @@ const c = (t) => t.charAt(0).toLocaleUpperCase() + t.slice(1), l = ({
17
17
  rate: t,
18
18
  paymentUnit: e,
19
19
  t: r,
20
- locale: a = "en-US"
20
+ locale: s = "en-US"
21
21
  }) => {
22
- const o = s(t, a);
22
+ const o = a(t, s);
23
23
  switch (e) {
24
24
  case "Hour":
25
25
  return r("payRateFormats.hourly", { amount: o, ns: "common" });
26
26
  case "Week":
27
27
  return r("payRateFormats.weekly", {
28
- amount: s(t * 52, a),
28
+ amount: a(t * 52, s),
29
29
  ns: "common"
30
30
  });
31
31
  case "Month":
32
32
  return r("payRateFormats.monthly", {
33
- amount: s(t * 12, a),
33
+ amount: a(t * 12, s),
34
34
  ns: "common"
35
35
  });
36
36
  case "Year":
@@ -40,21 +40,26 @@ const c = (t) => t.charAt(0).toLocaleUpperCase() + t.slice(1), l = ({
40
40
  default:
41
41
  return o;
42
42
  }
43
- }, y = { ALLOWED_TAGS: ["a", "b", "strong"], ALLOWED_ATTR: ["href", "target"] };
44
- function S(t) {
45
- return t ? { __html: m.sanitize(t, y) } : { __html: "" };
43
+ }, l = { ALLOWED_TAGS: ["a", "b", "strong"], ALLOWED_ATTR: ["href", "target"] };
44
+ function D(t) {
45
+ return t ? { __html: i.sanitize(t, l) } : { __html: "" };
46
46
  }
47
- const D = (t) => t.replace(/\D/g, ""), F = (t) => t.replace(/_([a-z])/g, (e, r) => r.toUpperCase());
47
+ const $ = (t) => t.replace(/\D/g, ""), F = (t) => t.replace(/_([a-z])/g, (e, r) => r.toUpperCase()), L = (t) => {
48
+ if (!t) return "";
49
+ const e = $(String(t));
50
+ return e.length === 10 ? `${e.slice(0, 3)}-${e.slice(3, 6)}-${e.slice(6)}` : e.length === 11 && e.startsWith("1") ? `${e.slice(1, 4)}-${e.slice(4, 7)}-${e.slice(7)}` : e || "";
51
+ };
48
52
  export {
49
- h as addressInline,
53
+ S as addressInline,
50
54
  p as amountStr,
51
- S as createMarkup,
52
- l as firstLastName,
53
- s as formatNumberAsCurrency,
55
+ D as createMarkup,
56
+ h as firstLastName,
57
+ a as formatNumberAsCurrency,
54
58
  C as formatPayRate,
59
+ L as formatPhoneNumber,
55
60
  u as getCityStateZip,
56
- i as getStreet,
57
- D as removeNonDigits,
61
+ m as getStreet,
62
+ $ as removeNonDigits,
58
63
  F as snakeCaseToCamelCase
59
64
  };
60
65
  //# sourceMappingURL=formattedStrings.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"formattedStrings.js","sources":["../../src/helpers/formattedStrings.ts"],"sourcesContent":["import DOMPurify from 'dompurify'\nimport { type Location } from '@gusto/embedded-api/models/components/location'\nimport { type EmployeeAddress } from '@gusto/embedded-api/models/components/employeeaddress'\nimport { type TFunction } from 'i18next'\nimport { useTranslation } from 'react-i18next'\nimport { useCallback } from 'react'\nimport { useLocale } from '@/contexts/LocaleProvider/useLocale'\n\nconst capitalize = (word: string) => word.charAt(0).toLocaleUpperCase() + word.slice(1)\n\nexport const firstLastName = ({\n first_name,\n last_name,\n}: {\n first_name?: string | null\n last_name?: string | null\n}) =>\n `${first_name ? capitalize(first_name) : ''}${last_name ? maybeString(capitalize(last_name)) : ''}`\n\nconst maybeString = (str: string | null | undefined) => {\n return str ? ` ${str}` : ''\n}\n\nexport const getStreet = (address: EmployeeAddress | Location) => {\n const street1 = maybeString(address.street1)\n const street2 = maybeString(address.street2)\n\n return `${street1},${street2}`\n}\n\nexport const getCityStateZip = (address: EmployeeAddress | Location) =>\n `${maybeString(address.city)}, ${maybeString(address.state)} ${maybeString(address.zip)}`\n\nexport const addressInline = (address: EmployeeAddress | Location) =>\n `${getStreet(address)} ${getCityStateZip(address)}`\n\nexport const currentDateString = () => {\n const d = new Date()\n const dateString = `${String(d.getFullYear())}-${('0' + String(d.getMonth() + 1)).slice(-2)}-${('0' + String(d.getDate())).slice(-2)}`\n return dateString\n}\n\nexport function isNumberKey({ which, keyCode }: KeyboardEvent) {\n const charCode = which ? which : keyCode\n if (charCode > 31 && charCode != 46 && (charCode < 48 || charCode > 57)) return false\n return true\n}\n\nexport const booleanToString = (value: boolean) => (value ? 'true' : 'false')\n\nexport const amountStr = (amount: string, isPercentage: boolean) =>\n isPercentage ? `${amount}%` : `$${amount}`\n\nexport const formatNumberAsCurrency = (amount: number, locale: string = 'en-US') => {\n const formattedNumber = amount.toLocaleString(locale, {\n minimumFractionDigits: 2,\n maximumFractionDigits: 2,\n })\n return amountStr(formattedNumber, false)\n}\n\nexport const formatPayRate = ({\n rate,\n paymentUnit,\n t,\n locale = 'en-US',\n}: {\n rate: number\n paymentUnit: string\n t: TFunction\n locale?: string\n}) => {\n const amount = formatNumberAsCurrency(rate, locale)\n\n switch (paymentUnit) {\n case 'Hour':\n return t('payRateFormats.hourly', { amount, ns: 'common' })\n case 'Week':\n return t('payRateFormats.weekly', {\n amount: formatNumberAsCurrency(rate * 52, locale),\n ns: 'common',\n })\n case 'Month':\n return t('payRateFormats.monthly', {\n amount: formatNumberAsCurrency(rate * 12, locale),\n ns: 'common',\n })\n case 'Year':\n return t('payRateFormats.yearly', { amount, ns: 'common' })\n case 'Paycheck':\n return t('payRateFormats.paycheck', { amount, ns: 'common' })\n default:\n return amount\n }\n}\n\nexport const useFormatPayRate = () => {\n const { t } = useTranslation('common')\n const { locale } = useLocale()\n\n return useCallback(\n (rate: number, paymentUnit: string) => {\n return formatPayRate({ rate, paymentUnit, t, locale })\n },\n [t, locale],\n )\n}\n\nconst dompurifyConfig = { ALLOWED_TAGS: ['a', 'b', 'strong'], ALLOWED_ATTR: ['href', 'target'] }\nexport function createMarkup(dirty: string) {\n if (!dirty) return { __html: '' }\n return { __html: DOMPurify.sanitize(dirty, dompurifyConfig) }\n}\n\nexport const removeNonDigits = (value: string): string => {\n return value.replace(/\\D/g, '')\n}\n\nexport const snakeCaseToCamelCase = (s: string) => {\n return s.replace(/_([a-z])/g, (_: string, char: string) => char.toUpperCase())\n}\n\nexport const camelCaseToSnakeCase = (s: string) => {\n return s\n .replace(\n /([a-z0-9])([A-Z])/g,\n (_: string, group1: string, group2: string) => `${group1}_${group2.toLowerCase()}`,\n )\n .replace(\n /([A-Z])([A-Z])(?=[a-z])/g,\n (_: string, group1: string, group2: string) =>\n `${group1.toLowerCase()}_${group2.toLowerCase()}`,\n )\n .toLowerCase()\n}\n"],"names":["capitalize","word","firstLastName","first_name","last_name","maybeString","str","getStreet","address","street1","street2","getCityStateZip","addressInline","amountStr","amount","isPercentage","formatNumberAsCurrency","locale","formattedNumber","formatPayRate","rate","paymentUnit","t","dompurifyConfig","createMarkup","dirty","DOMPurify","removeNonDigits","value","snakeCaseToCamelCase","s","_","char"],"mappings":";;;AAQA,MAAMA,IAAa,CAACC,MAAiBA,EAAK,OAAO,CAAC,EAAE,sBAAsBA,EAAK,MAAM,CAAC,GAEzEC,IAAgB,CAAC;AAAA,EAC5B,YAAAC;AAAA,EACA,WAAAC;AACF,MAIE,GAAGD,IAAaH,EAAWG,CAAU,IAAI,EAAE,GAAGC,IAAYC,EAAYL,EAAWI,CAAS,CAAC,IAAI,EAAE,IAE7FC,IAAc,CAACC,MACZA,IAAM,IAAIA,CAAG,KAAK,IAGdC,IAAY,CAACC,MAAwC;AAChE,QAAMC,IAAUJ,EAAYG,EAAQ,OAAO,GACrCE,IAAUL,EAAYG,EAAQ,OAAO;AAE3C,SAAO,GAAGC,CAAO,IAAIC,CAAO;AAC9B,GAEaC,IAAkB,CAACH,MAC9B,GAAGH,EAAYG,EAAQ,IAAI,CAAC,KAAKH,EAAYG,EAAQ,KAAK,CAAC,IAAIH,EAAYG,EAAQ,GAAG,CAAC,IAE5EI,IAAgB,CAACJ,MAC5B,GAAGD,EAAUC,CAAO,CAAC,IAAIG,EAAgBH,CAAO,CAAC,IAgBtCK,IAAY,CAACC,GAAgBC,MACxCA,IAAe,GAAGD,CAAM,MAAM,IAAIA,CAAM,IAE7BE,IAAyB,CAACF,GAAgBG,IAAiB,YAAY;AAClF,QAAMC,IAAkBJ,EAAO,eAAeG,GAAQ;AAAA,IACpD,uBAAuB;AAAA,IACvB,uBAAuB;AAAA,EAAA,CACxB;AACD,SAAOJ,EAAUK,GAAiB,EAAK;AACzC,GAEaC,IAAgB,CAAC;AAAA,EAC5B,MAAAC;AAAA,EACA,aAAAC;AAAA,EACA,GAAAC;AAAA,EACA,QAAAL,IAAS;AACX,MAKM;AACJ,QAAMH,IAASE,EAAuBI,GAAMH,CAAM;AAElD,UAAQI,GAAA;AAAA,IACN,KAAK;AACH,aAAOC,EAAE,yBAAyB,EAAE,QAAAR,GAAQ,IAAI,UAAU;AAAA,IAC5D,KAAK;AACH,aAAOQ,EAAE,yBAAyB;AAAA,QAChC,QAAQN,EAAuBI,IAAO,IAAIH,CAAM;AAAA,QAChD,IAAI;AAAA,MAAA,CACL;AAAA,IACH,KAAK;AACH,aAAOK,EAAE,0BAA0B;AAAA,QACjC,QAAQN,EAAuBI,IAAO,IAAIH,CAAM;AAAA,QAChD,IAAI;AAAA,MAAA,CACL;AAAA,IACH,KAAK;AACH,aAAOK,EAAE,yBAAyB,EAAE,QAAAR,GAAQ,IAAI,UAAU;AAAA,IAC5D,KAAK;AACH,aAAOQ,EAAE,2BAA2B,EAAE,QAAAR,GAAQ,IAAI,UAAU;AAAA,IAC9D;AACE,aAAOA;AAAA,EAAA;AAEb,GAcMS,IAAkB,EAAE,cAAc,CAAC,KAAK,KAAK,QAAQ,GAAG,cAAc,CAAC,QAAQ,QAAQ,EAAA;AACtF,SAASC,EAAaC,GAAe;AAC1C,SAAKA,IACE,EAAE,QAAQC,EAAU,SAASD,GAAOF,CAAe,EAAA,IADvC,EAAE,QAAQ,GAAA;AAE/B;AAEO,MAAMI,IAAkB,CAACC,MACvBA,EAAM,QAAQ,OAAO,EAAE,GAGnBC,IAAuB,CAACC,MAC5BA,EAAE,QAAQ,aAAa,CAACC,GAAWC,MAAiBA,EAAK,aAAa;"}
1
+ {"version":3,"file":"formattedStrings.js","sources":["../../src/helpers/formattedStrings.ts"],"sourcesContent":["import DOMPurify from 'dompurify'\nimport { type Location } from '@gusto/embedded-api/models/components/location'\nimport { type EmployeeAddress } from '@gusto/embedded-api/models/components/employeeaddress'\nimport { type TFunction } from 'i18next'\nimport { useTranslation } from 'react-i18next'\nimport { useCallback } from 'react'\nimport { useLocale } from '@/contexts/LocaleProvider/useLocale'\n\nconst capitalize = (word: string) => word.charAt(0).toLocaleUpperCase() + word.slice(1)\n\nexport const firstLastName = ({\n first_name,\n last_name,\n}: {\n first_name?: string | null\n last_name?: string | null\n}) =>\n `${first_name ? capitalize(first_name) : ''}${last_name ? maybeString(capitalize(last_name)) : ''}`\n\nconst maybeString = (str: string | null | undefined) => {\n return str ? ` ${str}` : ''\n}\n\nexport const getStreet = (address: EmployeeAddress | Location) => {\n const street1 = maybeString(address.street1)\n const street2 = maybeString(address.street2)\n\n return `${street1},${street2}`\n}\n\nexport const getCityStateZip = (address: EmployeeAddress | Location) =>\n `${maybeString(address.city)}, ${maybeString(address.state)} ${maybeString(address.zip)}`\n\nexport const addressInline = (address: EmployeeAddress | Location) =>\n `${getStreet(address)} ${getCityStateZip(address)}`\n\nexport const currentDateString = () => {\n const d = new Date()\n const dateString = `${String(d.getFullYear())}-${('0' + String(d.getMonth() + 1)).slice(-2)}-${('0' + String(d.getDate())).slice(-2)}`\n return dateString\n}\n\nexport function isNumberKey({ which, keyCode }: KeyboardEvent) {\n const charCode = which ? which : keyCode\n if (charCode > 31 && charCode != 46 && (charCode < 48 || charCode > 57)) return false\n return true\n}\n\nexport const booleanToString = (value: boolean) => (value ? 'true' : 'false')\n\nexport const amountStr = (amount: string, isPercentage: boolean) =>\n isPercentage ? `${amount}%` : `$${amount}`\n\nexport const formatNumberAsCurrency = (amount: number, locale: string = 'en-US') => {\n const formattedNumber = amount.toLocaleString(locale, {\n minimumFractionDigits: 2,\n maximumFractionDigits: 2,\n })\n return amountStr(formattedNumber, false)\n}\n\nexport const formatPayRate = ({\n rate,\n paymentUnit,\n t,\n locale = 'en-US',\n}: {\n rate: number\n paymentUnit: string\n t: TFunction\n locale?: string\n}) => {\n const amount = formatNumberAsCurrency(rate, locale)\n\n switch (paymentUnit) {\n case 'Hour':\n return t('payRateFormats.hourly', { amount, ns: 'common' })\n case 'Week':\n return t('payRateFormats.weekly', {\n amount: formatNumberAsCurrency(rate * 52, locale),\n ns: 'common',\n })\n case 'Month':\n return t('payRateFormats.monthly', {\n amount: formatNumberAsCurrency(rate * 12, locale),\n ns: 'common',\n })\n case 'Year':\n return t('payRateFormats.yearly', { amount, ns: 'common' })\n case 'Paycheck':\n return t('payRateFormats.paycheck', { amount, ns: 'common' })\n default:\n return amount\n }\n}\n\nexport const useFormatPayRate = () => {\n const { t } = useTranslation('common')\n const { locale } = useLocale()\n\n return useCallback(\n (rate: number, paymentUnit: string) => {\n return formatPayRate({ rate, paymentUnit, t, locale })\n },\n [t, locale],\n )\n}\n\nconst dompurifyConfig = { ALLOWED_TAGS: ['a', 'b', 'strong'], ALLOWED_ATTR: ['href', 'target'] }\nexport function createMarkup(dirty: string) {\n if (!dirty) return { __html: '' }\n return { __html: DOMPurify.sanitize(dirty, dompurifyConfig) }\n}\n\nexport const removeNonDigits = (value: string): string => {\n return value.replace(/\\D/g, '')\n}\n\nexport const snakeCaseToCamelCase = (s: string) => {\n return s.replace(/_([a-z])/g, (_: string, char: string) => char.toUpperCase())\n}\n\nexport const camelCaseToSnakeCase = (s: string) => {\n return s\n .replace(\n /([a-z0-9])([A-Z])/g,\n (_: string, group1: string, group2: string) => `${group1}_${group2.toLowerCase()}`,\n )\n .replace(\n /([A-Z])([A-Z])(?=[a-z])/g,\n (_: string, group1: string, group2: string) =>\n `${group1.toLowerCase()}_${group2.toLowerCase()}`,\n )\n .toLowerCase()\n}\n\nexport const formatPhoneNumber = (phoneNumber: string | number | null | undefined): string => {\n if (!phoneNumber) return ''\n\n const digits = removeNonDigits(String(phoneNumber))\n\n if (digits.length === 10) {\n return `${digits.slice(0, 3)}-${digits.slice(3, 6)}-${digits.slice(6)}`\n }\n\n if (digits.length === 11 && digits.startsWith('1')) {\n return `${digits.slice(1, 4)}-${digits.slice(4, 7)}-${digits.slice(7)}`\n }\n\n return digits || ''\n}\n"],"names":["capitalize","word","firstLastName","first_name","last_name","maybeString","str","getStreet","address","street1","street2","getCityStateZip","addressInline","amountStr","amount","isPercentage","formatNumberAsCurrency","locale","formattedNumber","formatPayRate","rate","paymentUnit","t","dompurifyConfig","createMarkup","dirty","DOMPurify","removeNonDigits","value","snakeCaseToCamelCase","s","_","char","formatPhoneNumber","phoneNumber","digits"],"mappings":"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"}
@@ -7,7 +7,7 @@ function m(e) {
7
7
  }
8
8
  const n = (e) => typeof e == "number" ? f(e) : e;
9
9
  function u(e, t) {
10
- if (!t) return {};
10
+ if (!t && t !== 0) return {};
11
11
  const o = m(t) ? t : { base: t }, r = {};
12
12
  return Object.entries(o).forEach(([i, s]) => {
13
13
  const c = Array.isArray(s) ? s.map(n).join(" ") : n(s);
@@ -1 +1 @@
1
- {"version":3,"file":"responsive.js","sources":["../../src/helpers/responsive.ts"],"sourcesContent":["import { toRem } from '@/helpers/rem'\nimport { BREAKPOINTS } from '@/shared/constants'\n\ntype BreakpointKey = (typeof BREAKPOINTS)[keyof typeof BREAKPOINTS]\n\nexport type Responsive<T> =\n | T\n | Partial<{\n [K in BreakpointKey]: T\n }>\n\nexport type CustomPropertyValue = string | number\n\nexport function isResponsiveValue(value: Responsive<CustomPropertyValue | CustomPropertyValue[]>) {\n return Object.values(BREAKPOINTS).some(\n breakpoint => typeof value === 'object' && breakpoint in value,\n )\n}\n\nexport function transformResponsiveValue(\n value: Responsive<CustomPropertyValue | CustomPropertyValue[]>,\n transformValue: (value: CustomPropertyValue | CustomPropertyValue[]) => string,\n) {\n const responsiveValue = isResponsiveValue(value) ? value : { base: value }\n\n const transformedResponsiveValue: Record<string, string> = {}\n\n Object.entries(responsiveValue).forEach(([key, value]) => {\n transformedResponsiveValue[key] = transformValue(value)\n })\n\n return transformedResponsiveValue\n}\n\nexport const toRemIfNumeric = (value: string | number) => {\n return typeof value === 'number' ? toRem(value) : value\n}\n\nexport function createResponsiveCustomProperties(\n property: string,\n value?: Responsive<CustomPropertyValue | CustomPropertyValue[]>,\n) {\n if (!value) return {}\n\n const responsiveValues = isResponsiveValue(value) ? value : { base: value }\n const properties: Record<string, string> = {}\n\n Object.entries(responsiveValues).forEach(([key, customPropertyValue]) => {\n const customPropertyValueResult = Array.isArray(customPropertyValue)\n ? customPropertyValue.map(toRemIfNumeric).join(' ')\n : toRemIfNumeric(customPropertyValue)\n\n properties[`--g-${property}-${key}`] = customPropertyValueResult\n })\n\n return properties\n}\n\nexport function setResponsiveCustomProperties(\n properties?: Record<string, Responsive<CustomPropertyValue | CustomPropertyValue[]> | undefined>,\n) {\n const allProperties: Record<string, string> = {}\n\n if (!properties) return allProperties\n\n Object.entries(properties).forEach(([property, value]) => {\n Object.assign(allProperties, createResponsiveCustomProperties(property, value))\n })\n\n return allProperties\n}\n"],"names":["isResponsiveValue","value","BREAKPOINTS","breakpoint","toRemIfNumeric","toRem","createResponsiveCustomProperties","property","responsiveValues","properties","key","customPropertyValue","customPropertyValueResult","setResponsiveCustomProperties","allProperties"],"mappings":";;AAaO,SAASA,EAAkBC,GAAgE;AAChG,SAAO,OAAO,OAAOC,CAAW,EAAE;AAAA,IAChC,CAAAC,MAAc,OAAOF,KAAU,YAAYE,KAAcF;AAAA,EAAA;AAE7D;AAiBO,MAAMG,IAAiB,CAACH,MACtB,OAAOA,KAAU,WAAWI,EAAMJ,CAAK,IAAIA;AAG7C,SAASK,EACdC,GACAN,GACA;AACA,MAAI,CAACA,EAAO,QAAO,CAAA;AAEnB,QAAMO,IAAmBR,EAAkBC,CAAK,IAAIA,IAAQ,EAAE,MAAMA,EAAA,GAC9DQ,IAAqC,CAAA;AAE3C,gBAAO,QAAQD,CAAgB,EAAE,QAAQ,CAAC,CAACE,GAAKC,CAAmB,MAAM;AACvE,UAAMC,IAA4B,MAAM,QAAQD,CAAmB,IAC/DA,EAAoB,IAAIP,CAAc,EAAE,KAAK,GAAG,IAChDA,EAAeO,CAAmB;AAEtC,IAAAF,EAAW,OAAOF,CAAQ,IAAIG,CAAG,EAAE,IAAIE;AAAA,EACzC,CAAC,GAEMH;AACT;AAEO,SAASI,EACdJ,GACA;AACA,QAAMK,IAAwC,CAAA;AAE9C,SAAKL,KAEL,OAAO,QAAQA,CAAU,EAAE,QAAQ,CAAC,CAACF,GAAUN,CAAK,MAAM;AACxD,WAAO,OAAOa,GAAeR,EAAiCC,GAAUN,CAAK,CAAC;AAAA,EAChF,CAAC,GAEMa;AACT;"}
1
+ {"version":3,"file":"responsive.js","sources":["../../src/helpers/responsive.ts"],"sourcesContent":["import { toRem } from '@/helpers/rem'\nimport { BREAKPOINTS } from '@/shared/constants'\n\ntype BreakpointKey = (typeof BREAKPOINTS)[keyof typeof BREAKPOINTS]\n\nexport type Responsive<T> =\n | T\n | Partial<{\n [K in BreakpointKey]: T\n }>\n\nexport type CustomPropertyValue = string | number\n\nexport function isResponsiveValue(value: Responsive<CustomPropertyValue | CustomPropertyValue[]>) {\n return Object.values(BREAKPOINTS).some(\n breakpoint => typeof value === 'object' && breakpoint in value,\n )\n}\n\nexport function transformResponsiveValue(\n value: Responsive<CustomPropertyValue | CustomPropertyValue[]>,\n transformValue: (value: CustomPropertyValue | CustomPropertyValue[]) => string,\n) {\n const responsiveValue = isResponsiveValue(value) ? value : { base: value }\n\n const transformedResponsiveValue: Record<string, string> = {}\n\n Object.entries(responsiveValue).forEach(([key, value]) => {\n transformedResponsiveValue[key] = transformValue(value)\n })\n\n return transformedResponsiveValue\n}\n\nexport const toRemIfNumeric = (value: string | number) => {\n return typeof value === 'number' ? toRem(value) : value\n}\n\nexport function createResponsiveCustomProperties(\n property: string,\n value?: Responsive<CustomPropertyValue | CustomPropertyValue[]>,\n) {\n if (!value && value !== 0) return {}\n\n const responsiveValues = isResponsiveValue(value) ? value : { base: value }\n const properties: Record<string, string> = {}\n\n Object.entries(responsiveValues).forEach(([key, customPropertyValue]) => {\n const customPropertyValueResult = Array.isArray(customPropertyValue)\n ? customPropertyValue.map(toRemIfNumeric).join(' ')\n : toRemIfNumeric(customPropertyValue)\n\n properties[`--g-${property}-${key}`] = customPropertyValueResult\n })\n\n return properties\n}\n\nexport function setResponsiveCustomProperties(\n properties?: Record<string, Responsive<CustomPropertyValue | CustomPropertyValue[]> | undefined>,\n) {\n const allProperties: Record<string, string> = {}\n\n if (!properties) return allProperties\n\n Object.entries(properties).forEach(([property, value]) => {\n Object.assign(allProperties, createResponsiveCustomProperties(property, value))\n })\n\n return allProperties\n}\n"],"names":["isResponsiveValue","value","BREAKPOINTS","breakpoint","toRemIfNumeric","toRem","createResponsiveCustomProperties","property","responsiveValues","properties","key","customPropertyValue","customPropertyValueResult","setResponsiveCustomProperties","allProperties"],"mappings":";;AAaO,SAASA,EAAkBC,GAAgE;AAChG,SAAO,OAAO,OAAOC,CAAW,EAAE;AAAA,IAChC,CAAAC,MAAc,OAAOF,KAAU,YAAYE,KAAcF;AAAA,EAAA;AAE7D;AAiBO,MAAMG,IAAiB,CAACH,MACtB,OAAOA,KAAU,WAAWI,EAAMJ,CAAK,IAAIA;AAG7C,SAASK,EACdC,GACAN,GACA;AACA,MAAI,CAACA,KAASA,MAAU,UAAU,CAAA;AAElC,QAAMO,IAAmBR,EAAkBC,CAAK,IAAIA,IAAQ,EAAE,MAAMA,EAAA,GAC9DQ,IAAqC,CAAA;AAE3C,gBAAO,QAAQD,CAAgB,EAAE,QAAQ,CAAC,CAACE,GAAKC,CAAmB,MAAM;AACvE,UAAMC,IAA4B,MAAM,QAAQD,CAAmB,IAC/DA,EAAoB,IAAIP,CAAc,EAAE,KAAK,GAAG,IAChDA,EAAeO,CAAmB;AAEtC,IAAAF,EAAW,OAAOF,CAAQ,IAAIG,CAAG,EAAE,IAAIE;AAAA,EACzC,CAAC,GAEMH;AACT;AAEO,SAASI,EACdJ,GACA;AACA,QAAMK,IAAwC,CAAA;AAE9C,SAAKL,KAEL,OAAO,QAAQA,CAAU,EAAE,QAAQ,CAAC,CAACF,GAAUN,CAAK,MAAM;AACxD,WAAO,OAAOa,GAAeR,EAAiCC,GAAUN,CAAK,CAAC;AAAA,EAChF,CAAC,GAEMa;AACT;"}
package/dist/i18n/I18n.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import p from "../_virtual/dynamic-import-helper.js";
2
2
  import { useTranslation as a } from "react-i18next";
3
3
  import { LRUCache as y } from "../helpers/LRUCache.js";
4
- const P = "common", m = new y(50), c = ({ lng: e = "en", ns: o }) => {
4
+ const d = "common", m = new y(50), c = ({ lng: e = "en", ns: o }) => {
5
5
  let r = !0, n = !1, t;
6
6
  const i = (async () => {
7
7
  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/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.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.Deductions.json": () => import("./en/Employee.Deductions.json.js"), "./en/Employee.DocumentSigner.json": () => import("./en/Employee.DocumentSigner.json.js"), "./en/Employee.EmployeeList.json": () => import("./en/Employee.EmployeeList.json.js"), "./en/Employee.FederalTaxes.json": () => import("./en/Employee.FederalTaxes.json.js"), "./en/Employee.HomeAddress.json": () => import("./en/Employee.HomeAddress.json.js"), "./en/Employee.Landing.json": () => import("./en/Employee.Landing.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/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.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.WireInstructions.json": () => import("./en/Payroll.WireInstructions.json.js"), "./en/common.json": () => import("./en/common.json.js") }), `./${e}/${o}.json`, 3)).default, r = !1;
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/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.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.Deductions.json": () => import("./en/Employee.Deductions.json.js"), "./en/Employee.DocumentSigner.json": () => import("./en/Employee.DocumentSigner.json.js"), "./en/Employee.EmployeeList.json": () => import("./en/Employee.EmployeeList.json.js"), "./en/Employee.FederalTaxes.json": () => import("./en/Employee.FederalTaxes.json.js"), "./en/Employee.HomeAddress.json": () => import("./en/Employee.HomeAddress.json.js"), "./en/Employee.Landing.json": () => import("./en/Employee.Landing.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/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.InformationRequestForm.json": () => import("./en/Payroll.InformationRequestForm.json.js"), "./en/Payroll.InformationRequestList.json": () => import("./en/Payroll.InformationRequestList.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.WireInstructions.json": () => import("./en/Payroll.WireInstructions.json.js"), "./en/common.json": () => import("./en/common.json.js") }), `./${e}/${o}.json`, 3)).default, r = !1;
9
9
  } catch {
10
10
  n = !0, r = !1;
11
11
  }
@@ -43,7 +43,7 @@ const P = "common", m = new y(50), c = ({ lng: e = "en", ns: o }) => {
43
43
  r.addResourceBundle(n, e, o[n], !0, !0);
44
44
  };
45
45
  export {
46
- P as defaultNS,
46
+ d as defaultNS,
47
47
  f as useComponentDictionary,
48
48
  C as useI18n
49
49
  };
@@ -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,4vIAAA,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":["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,ywJAAA,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,40 +1,44 @@
1
- const t = "Pay contractors", e = "Pay contractors", a = "Direct deposit payments submitted before 4pm PT on a business day will take 2 business days to complete", o = "Payment date", n = "Hours and payments", r = { contractor: "Contractor", wageType: "Wage type", paymentMethod: "Payment method", hours: "Hours", wage: "Wage", bonus: "Bonus", reimbursement: "Reimbursement", total: "Total" }, s = "N/A", c = "Totals", i = "Back", m = "Continue", d = "Edit contractor", u = "/hr", y = { fixed: "Fixed", hourly: "Hourly" }, l = { directDeposit: "Direct Deposit", check: "Check", historicalPayment: "Historical Payment" }, b = { contractorPaymentUpdated: "Pay updated for {{contractorName}}", noContractorPayments: "Please add at least one contractor payment to continue." }, p = { title: "Edit contractor pay", subtitle: `Edit contractor's hours, additional earnings, and reimbursements. Inputs not applicable to this contractor are disabled. Please click "OK" to apply the change.`, hoursSection: "Hours", hoursLabel: "Hours", hoursAdornment: "hrs", fixedPaySection: "Fixed pay", wageLabel: "Wage", additionalEarningsSection: "Additional earnings", bonusLabel: "Bonus", reimbursementLabel: "Reimbursement", paymentMethodLabel: "Payment Method", totalPay: "Total pay", cancelCta: "Cancel", saveCta: "Done", paymentMethods: { check: "Check", directDeposit: "Direct deposit", historicalPayment: "Historical payment" } }, h = { breadcrumbLabel: "Submit", reviewAndSubmitTitle: "Review and submit", reviewSubtitle: "We'll debit funds on {{debitDate}}", summaryTableHeaders: { totalAmount: "Total amount", debitAmount: "Debit amount", debitAccount: "Debit account", debitDate: "Debit date", contractorPayDate: "Contractor pay date" }, paymentSummaryTitle: "Payment summary", whatYourCompanyPays: "What your company pays", contractorTableHeaders: { contractor: "Contractor", wageType: "Wage type", paymentMethod: "Payment method", hours: "Hours", wage: "Wage", bonus: "Bonus", reimbursement: "Reimbursement", total: "Total" }, totalsLabel: "Totals", editButton: "Edit", submitButton: "Submit", perHour: "/hr", wageTypes: { fixed: "Fixed", hourly: "Hourly" }, paymentMethods: { directDeposit: "Direct Deposit", check: "Check", historicalPayment: "Historical Payment" }, alerts: { submitPaymentsDeadline: "To pay your contractors by {{checkDate}}, submit payments by {{debitDate}}." } }, P = {
1
+ const t = "Pay contractors", e = "No contractors available for payment", a = "There are no active contractors with completed onboarding. Add and onboard contractors before creating payments.", o = "Pay contractors", n = "Direct deposit payments submitted before 4pm PT on a business day will take 2 business days to complete", r = "Payment date", s = "Hours and payments", c = { contractor: "Contractor", wageType: "Wage type", paymentMethod: "Payment method", hours: "Hours", wage: "Wage", bonus: "Bonus", reimbursement: "Reimbursement", total: "Total" }, i = "N/A", m = "Totals", d = "Back", l = "Continue", y = "Edit contractor", u = "/hr", b = { fixed: "Fixed", hourly: "Hourly" }, p = { directDeposit: "Direct Deposit", check: "Check", historicalPayment: "Historical Payment" }, h = { contractorPaymentUpdated: "Pay updated for {{contractorName}}", noContractorPayments: "Please add at least one contractor payment to continue." }, P = { title: "Edit contractor pay", subtitle: `Edit contractor's hours, additional earnings, and reimbursements. Inputs not applicable to this contractor are disabled. Please click "OK" to apply the change.`, hoursSection: "Hours", hoursLabel: "Hours", hoursAdornment: "hrs", fixedPaySection: "Fixed pay", wageLabel: "Wage", additionalEarningsSection: "Additional earnings", bonusLabel: "Bonus", reimbursementLabel: "Reimbursement", paymentMethodLabel: "Payment Method", totalPay: "Total pay", cancelCta: "Cancel", saveCta: "Done", paymentMethods: { check: "Check", directDeposit: "Direct deposit", historicalPayment: "Historical payment" } }, D = { breadcrumbLabel: "Submit", reviewAndSubmitTitle: "Review and submit", reviewSubtitle: "We'll debit funds on {{debitDate}}", summaryTableHeaders: { totalAmount: "Total amount", debitAmount: "Debit amount", debitAccount: "Debit account", debitDate: "Debit date", contractorPayDate: "Contractor pay date" }, paymentSummaryTitle: "Payment summary", whatYourCompanyPays: "What your company pays", contractorTableHeaders: { contractor: "Contractor", wageType: "Wage type", paymentMethod: "Payment method", hours: "Hours", wage: "Wage", bonus: "Bonus", reimbursement: "Reimbursement", total: "Total" }, totalsLabel: "Totals", editButton: "Edit", submitButton: "Submit", perHour: "/hr", wageTypes: { fixed: "Fixed", hourly: "Hourly" }, paymentMethods: { directDeposit: "Direct Deposit", check: "Check", historicalPayment: "Historical Payment" }, alerts: { submitPaymentsDeadline: "To pay your contractors by {{checkDate}}, submit payments by {{debitDate}}." }, naDebitAccount: "N/A" }, T = {
2
2
  title: t,
3
- breadcrumbLabel: e,
4
- paymentSpeedNotice: a,
5
- dateLabel: o,
6
- hoursAndPaymentsLabel: n,
7
- contractorTableHeaders: r,
8
- na: s,
9
- totalsLabel: c,
10
- backButton: i,
11
- continueCta: m,
12
- editContractor: d,
3
+ emptyTableTitle: e,
4
+ emptyTableDescription: a,
5
+ breadcrumbLabel: o,
6
+ paymentSpeedNotice: n,
7
+ dateLabel: r,
8
+ hoursAndPaymentsLabel: s,
9
+ contractorTableHeaders: c,
10
+ na: i,
11
+ totalsLabel: m,
12
+ backButton: d,
13
+ continueCta: l,
14
+ editContractor: y,
13
15
  perHour: u,
14
- wageTypes: y,
15
- paymentMethods: l,
16
- alerts: b,
17
- editContractorPayment: p,
18
- previewPresentation: h
16
+ wageTypes: b,
17
+ paymentMethods: p,
18
+ alerts: h,
19
+ editContractorPayment: P,
20
+ previewPresentation: D
19
21
  };
20
22
  export {
21
- b as alerts,
22
- i as backButton,
23
- e as breadcrumbLabel,
24
- m as continueCta,
25
- r as contractorTableHeaders,
26
- o as dateLabel,
27
- P as default,
28
- d as editContractor,
29
- p as editContractorPayment,
30
- n as hoursAndPaymentsLabel,
31
- s as na,
32
- l as paymentMethods,
33
- a as paymentSpeedNotice,
23
+ h as alerts,
24
+ d as backButton,
25
+ o as breadcrumbLabel,
26
+ l as continueCta,
27
+ c as contractorTableHeaders,
28
+ r as dateLabel,
29
+ T as default,
30
+ y as editContractor,
31
+ P as editContractorPayment,
32
+ a as emptyTableDescription,
33
+ e as emptyTableTitle,
34
+ s as hoursAndPaymentsLabel,
35
+ i as na,
36
+ p as paymentMethods,
37
+ n as paymentSpeedNotice,
34
38
  u as perHour,
35
- h as previewPresentation,
39
+ D as previewPresentation,
36
40
  t as title,
37
- c as totalsLabel,
38
- y as wageTypes
41
+ m as totalsLabel,
42
+ b as wageTypes
39
43
  };
40
44
  //# sourceMappingURL=Contractor.Payments.CreatePayment.json.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Contractor.Payments.CreatePayment.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"Contractor.Payments.CreatePayment.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;"}
@@ -1,23 +1,23 @@
1
- const t = "Contractor payment history", e = "Payments created on {{date}}", n = "Payments", o = "Payment history", a = "No payments found", s = "There are no payments for this date.", c = "Back", r = { contractor: "Contractor", wageType: "Wage type", paymentMethod: "Payment method", hours: "Hours", wage: "Wage", bonus: "Bonus", reimbursements: "Reimbursements", total: "Total", action: "Action" }, m = { view: "View", cancel: "Cancel" }, y = {
1
+ const t = "Contractor payment history", o = "Payments debited on <strong>{{date}}</strong>", e = "Payments", n = "Payment history", a = "No payments found", s = "There are no payments for this date.", r = { contractor: "Contractor", wageType: "Wage type", paymentMethod: "Payment method", hours: "Hours", wage: "Wage", bonus: "Bonus", reimbursements: "Reimbursements", total: "Total", action: "Action" }, c = { view: "View", cancel: "Cancel payment" }, m = { paymentGroupNotFound: "Contractor payment group not found" }, y = {
2
2
  title: t,
3
- subtitle: e,
4
- paymentsSection: n,
5
- breadcrumbLabel: o,
3
+ subtitle: o,
4
+ paymentsSection: e,
5
+ breadcrumbLabel: n,
6
6
  noPaymentsFound: a,
7
7
  noPaymentsDescription: s,
8
- backButton: c,
9
8
  tableHeaders: r,
10
- actions: m
9
+ actions: c,
10
+ errors: m
11
11
  };
12
12
  export {
13
- m as actions,
14
- c as backButton,
15
- o as breadcrumbLabel,
13
+ c as actions,
14
+ n as breadcrumbLabel,
16
15
  y as default,
16
+ m as errors,
17
17
  s as noPaymentsDescription,
18
18
  a as noPaymentsFound,
19
- n as paymentsSection,
20
- e as subtitle,
19
+ e as paymentsSection,
20
+ o as subtitle,
21
21
  r as tableHeaders,
22
22
  t as title
23
23
  };
@@ -0,0 +1,28 @@
1
+ const t = "Payment statement for {{contractorName}}", e = "Payment statement for {{contractorName}}", o = "Debited", n = "Amount", r = "Hours", s = "{{hours}} hours at {{rate}}/hr", a = "Wage", c = "Bonus", i = "Reimbursement", u = { totalLabel: "Total", detailsLabel: "Receipt Details", from: "From", to: "To", debitDate: "Debit date", disclaimer: "This receipt confirms funds have been electronically transferred to the recipient's bank account. Money transmission services are provided by Gusto, Inc. pursuant to its <licensesLink>licenses</licensesLink>." }, m = { paymentGroupNotFound: "Contractor payment group not found", paymentNotFound: "Payment not found", contractorNotFound: "Contractor not found" }, l = {
2
+ title: t,
3
+ breadcrumbLabel: e,
4
+ debitedColumn: o,
5
+ amountColumn: n,
6
+ hoursLabel: r,
7
+ hoursAmount: s,
8
+ wageLabel: a,
9
+ bonus: c,
10
+ reimbursement: i,
11
+ receipt: u,
12
+ errors: m
13
+ };
14
+ export {
15
+ n as amountColumn,
16
+ c as bonus,
17
+ e as breadcrumbLabel,
18
+ o as debitedColumn,
19
+ l as default,
20
+ m as errors,
21
+ s as hoursAmount,
22
+ r as hoursLabel,
23
+ u as receipt,
24
+ i as reimbursement,
25
+ t as title,
26
+ a as wageLabel
27
+ };
28
+ //# sourceMappingURL=Contractor.Payments.PaymentStatement.json.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Contractor.Payments.PaymentStatement.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;"}
@@ -1,36 +1,36 @@
1
- const t = "Contractor payments", e = "Upcoming and past payments", a = "Contractor payments", n = "New payment", o = "Start date", s = "Apply date", c = "Payment date", m = "Reimbursement total", r = "Wage total", l = "Actions", y = "View payment", u = "No payments found", p = "No contractor payments have been created yet. Create your first payment to get started.", d = { paymentCreatedSuccessfully_one: "Successfully created {{count}} contractor payment.", paymentCreatedSuccessfully_other: "Successfully created {{count}} contractor payments." }, i = { last3Months: "Last 3 months", last6Months: "Last 6 months", last12Months: "Last 12 months" }, C = {
1
+ const t = "Contractor payments", e = "Upcoming and past payments", a = "Contractor payments", n = "New payment", s = "Start date", o = "Apply date", c = "Payment date", l = "Reimbursement total", m = "Wage total", r = "Actions", y = "View payment", u = "No payments found", p = "No contractor payments have been created yet. Create your first payment to get started.", d = { paymentCreatedSuccessfully_one: "Successfully created {{count}} contractor payment.", paymentCreatedSuccessfully_other: "Successfully created {{count}} contractor payments.", paymentCancelledSuccessfully: "Contractor payment cancelled successfully" }, C = { last3Months: "Last 3 months", last6Months: "Last 6 months", last12Months: "Last 12 months" }, i = {
2
2
  title: t,
3
3
  subtitle: e,
4
4
  breadcrumbLabel: a,
5
5
  createPaymentCta: n,
6
- startDate: o,
7
- applyDate: s,
6
+ startDate: s,
7
+ applyDate: o,
8
8
  paymentDateColumnLabel: c,
9
- reimbursementTotalColumnLabel: m,
10
- wageTotalColumnLabel: r,
11
- actionColumnLabel: l,
9
+ reimbursementTotalColumnLabel: l,
10
+ wageTotalColumnLabel: m,
11
+ actionColumnLabel: r,
12
12
  viewPaymentCta: y,
13
13
  noPaymentsFound: u,
14
14
  noPaymentsDescription: p,
15
15
  alerts: d,
16
- dateRanges: i
16
+ dateRanges: C
17
17
  };
18
18
  export {
19
- l as actionColumnLabel,
19
+ r as actionColumnLabel,
20
20
  d as alerts,
21
- s as applyDate,
21
+ o as applyDate,
22
22
  a as breadcrumbLabel,
23
23
  n as createPaymentCta,
24
- i as dateRanges,
25
- C as default,
24
+ C as dateRanges,
25
+ i as default,
26
26
  p as noPaymentsDescription,
27
27
  u as noPaymentsFound,
28
28
  c as paymentDateColumnLabel,
29
- m as reimbursementTotalColumnLabel,
30
- o as startDate,
29
+ l as reimbursementTotalColumnLabel,
30
+ s as startDate,
31
31
  e as subtitle,
32
32
  t as title,
33
33
  y as viewPaymentCta,
34
- r as wageTotalColumnLabel
34
+ m as wageTotalColumnLabel
35
35
  };
36
36
  //# sourceMappingURL=Contractor.Payments.PaymentsList.json.js.map
@@ -0,0 +1,18 @@
1
+ const e = "Request for information", o = { title: "This is a payroll blocking request", description: "You will not be able to run payroll until we receive the information requested below." }, t = { document: "Document required", answer: "Answer required" }, l = { textAnswer: { label: "Answer the above question", placeholder: "Your answer" }, fileUpload: { label: "Upload document" } }, i = { required: "This field is required", fileRequired: "Please upload a file" }, n = { cancel: "Cancel", submit: "Submit response" }, r = {
2
+ title: e,
3
+ blockingAlert: o,
4
+ questionTypes: t,
5
+ fields: l,
6
+ validation: i,
7
+ cta: n
8
+ };
9
+ export {
10
+ o as blockingAlert,
11
+ n as cta,
12
+ r as default,
13
+ l as fields,
14
+ t as questionTypes,
15
+ e as title,
16
+ i as validation
17
+ };
18
+ //# sourceMappingURL=Payroll.InformationRequestForm.json.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Payroll.InformationRequestForm.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
@@ -0,0 +1,18 @@
1
+ const e = "Information requests", o = "We need you to share some more information about your business. This info will be used to keep your business secure and ensure that our data about your company is correct. Please make sure to do this soon since it may otherwise impact your ability to run payroll.", t = { type: "Type", status: "Status" }, n = { companyOnboarding: "Company Onboarding", accountProtection: "Account Protection", paymentRequest: "Payment Request", paymentError: "Payment Error", unknown: "Information Request" }, s = { incomplete: "Incomplete", underReview: "Under review" }, r = { respond: "Respond" }, a = {
2
+ title: e,
3
+ description: o,
4
+ columns: t,
5
+ types: n,
6
+ status: s,
7
+ cta: r
8
+ };
9
+ export {
10
+ t as columns,
11
+ r as cta,
12
+ a as default,
13
+ o as description,
14
+ s as status,
15
+ e as title,
16
+ n as types
17
+ };
18
+ //# sourceMappingURL=Payroll.InformationRequestList.json.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Payroll.InformationRequestList.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}