@gusto/embedded-react-sdk 0.54.0 → 0.54.1

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 (168) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/dist/components/Common/Loading/Loading.d.ts +6 -1
  3. package/dist/components/Common/Loading/Loading.js +13 -12
  4. package/dist/components/Common/Loading/Loading.js.map +1 -1
  5. package/dist/components/Common/Loading/Loading.module.scss.js +1 -1
  6. package/dist/components/Common/PayrollLoading/PayrollLoading.js +1 -1
  7. package/dist/components/Common/PayrollLoading/PayrollLoading.js.map +1 -1
  8. package/dist/components/Common/UI/Alert/Alert.js +8 -8
  9. package/dist/components/Common/UI/Alert/Alert.js.map +1 -1
  10. package/dist/components/Common/UI/Alert/Alert.module.scss.js +18 -16
  11. package/dist/components/Common/UI/Alert/Alert.module.scss.js.map +1 -1
  12. package/dist/components/Common/UI/Breadcrumbs/Breadcrumbs.js +1 -1
  13. package/dist/components/Common/UI/FileInput/FileInput.js +1 -1
  14. package/dist/components/Common/UI/Menu/Menu.js +19 -18
  15. package/dist/components/Common/UI/Menu/Menu.js.map +1 -1
  16. package/dist/components/Common/UI/ProgressBar/ProgressBar.js +4 -4
  17. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js +3 -5
  18. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js.map +1 -1
  19. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js +3 -5
  20. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js.map +1 -1
  21. package/dist/components/Company/AssignSignatory/useAssignSignatory.js +5 -7
  22. package/dist/components/Company/AssignSignatory/useAssignSignatory.js.map +1 -1
  23. package/dist/components/Company/BankAccount/BankAccountForm/context.js +3 -5
  24. package/dist/components/Company/BankAccount/BankAccountForm/context.js.map +1 -1
  25. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js +3 -5
  26. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  27. package/dist/components/Company/DocumentSigner/shared/useSignCompanyForm/fields.js +4 -4
  28. package/dist/components/Company/FederalTaxes/useFederalTaxes.js +8 -10
  29. package/dist/components/Company/FederalTaxes/useFederalTaxes.js.map +1 -1
  30. package/dist/components/Company/Industry/Context.js +6 -8
  31. package/dist/components/Company/Industry/Context.js.map +1 -1
  32. package/dist/components/Company/Industry/Industry.js +2 -2
  33. package/dist/components/Company/Industry/Industry.js.map +1 -1
  34. package/dist/components/Company/Locations/LocationForm/useLocationForm.js +3 -5
  35. package/dist/components/Company/Locations/LocationForm/useLocationForm.js.map +1 -1
  36. package/dist/components/Company/Locations/LocationsList/useLocationsList.js +3 -5
  37. package/dist/components/Company/Locations/LocationsList/useLocationsList.js.map +1 -1
  38. package/dist/components/Company/OnboardingOverview/OnboardingOverview.js +20 -19
  39. package/dist/components/Company/OnboardingOverview/OnboardingOverview.js.map +1 -1
  40. package/dist/components/Company/OnboardingOverview/context.js +3 -5
  41. package/dist/components/Company/OnboardingOverview/context.js.map +1 -1
  42. package/dist/components/Company/PaySchedule/PaySchedule.js +20 -19
  43. package/dist/components/Company/PaySchedule/PaySchedule.js.map +1 -1
  44. package/dist/components/Company/PaySchedule/PayScheduleForm.js +29 -28
  45. package/dist/components/Company/PaySchedule/PayScheduleForm.js.map +1 -1
  46. package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/fields.d.ts +1 -1
  47. package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/fields.js +5 -5
  48. package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/fields.js.map +1 -1
  49. package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/payScheduleSchema.js +24 -21
  50. package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/payScheduleSchema.js.map +1 -1
  51. package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/usePayScheduleForm.js +11 -11
  52. package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/usePayScheduleForm.js.map +1 -1
  53. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js +3 -5
  54. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js.map +1 -1
  55. package/dist/components/Company/StateTaxes/StateTaxesList/context.js +3 -5
  56. package/dist/components/Company/StateTaxes/StateTaxesList/context.js.map +1 -1
  57. package/dist/components/Company/StateTaxes/TaxRateManagement/TaxRateHistorySection.js +14 -13
  58. package/dist/components/Company/StateTaxes/TaxRateManagement/TaxRateHistorySection.js.map +1 -1
  59. package/dist/components/Company/StateTaxes/TaxRateManagement/context.js +3 -5
  60. package/dist/components/Company/StateTaxes/TaxRateManagement/context.js.map +1 -1
  61. package/dist/components/Contractor/ContractorList/management/ManagementContractorListView.js +22 -21
  62. package/dist/components/Contractor/ContractorList/management/ManagementContractorListView.js.map +1 -1
  63. package/dist/components/Contractor/Documents/shared/SignatureForm/useContractorSignatureForm/fields.js +8 -8
  64. package/dist/components/Contractor/Landing/Landing.js +30 -29
  65. package/dist/components/Contractor/Landing/Landing.js.map +1 -1
  66. package/dist/components/Contractor/OnboardingSummary/OnboardingSummary.js +18 -17
  67. package/dist/components/Contractor/OnboardingSummary/OnboardingSummary.js.map +1 -1
  68. package/dist/components/Contractor/PaymentMethod/shared/useContractorBankAccountForm/fields.js +1 -1
  69. package/dist/components/Contractor/Payments/CreateHistoricalPayment/CreateHistoricalPayment.d.ts +41 -0
  70. package/dist/components/Contractor/Payments/CreateHistoricalPayment/CreateHistoricalPayment.js +175 -0
  71. package/dist/components/Contractor/Payments/CreateHistoricalPayment/CreateHistoricalPayment.js.map +1 -0
  72. package/dist/components/Contractor/Payments/CreateHistoricalPayment/index.d.ts +1 -0
  73. package/dist/components/Contractor/Payments/CreateHistoricalPayment/useFormDictionary.d.ts +18 -0
  74. package/dist/components/Contractor/Payments/{HistoricalPaymentAmounts → CreateHistoricalPayment}/useFormDictionary.js +37 -7
  75. package/dist/components/Contractor/Payments/CreateHistoricalPayment/useFormDictionary.js.map +1 -0
  76. package/dist/components/Contractor/Payments/HistoricalPaymentSummary/HistoricalPaymentSummary.d.ts +30 -0
  77. package/dist/components/Contractor/Payments/HistoricalPaymentSummary/HistoricalPaymentSummary.js +56 -0
  78. package/dist/components/Contractor/Payments/HistoricalPaymentSummary/HistoricalPaymentSummary.js.map +1 -0
  79. package/dist/components/Contractor/Payments/HistoricalPaymentSummary/index.d.ts +1 -0
  80. package/dist/components/Contractor/Payments/HistoricalPaymentSummary/useFormDictionary.d.ts +9 -0
  81. package/dist/components/Contractor/Payments/HistoricalPaymentSummary/useFormDictionary.js +33 -0
  82. package/dist/components/Contractor/Payments/HistoricalPaymentSummary/useFormDictionary.js.map +1 -0
  83. package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummaryPresentation.js +46 -131
  84. package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummaryPresentation.js.map +1 -1
  85. package/dist/components/Contractor/Payments/PaymentSummary/useFormDictionary.d.ts +9 -0
  86. package/dist/components/Contractor/Payments/PaymentSummary/useFormDictionary.js +36 -0
  87. package/dist/components/Contractor/Payments/PaymentSummary/useFormDictionary.js.map +1 -0
  88. package/dist/components/Contractor/Payments/shared/PaymentSummaryBlock/PaymentSummaryBlock.d.ts +83 -0
  89. package/dist/components/Contractor/Payments/shared/PaymentSummaryBlock/PaymentSummaryBlock.js +124 -0
  90. package/dist/components/Contractor/Payments/shared/PaymentSummaryBlock/PaymentSummaryBlock.js.map +1 -0
  91. package/dist/components/Contractor/Payments/shared/PaymentSummaryBlock/index.d.ts +1 -0
  92. package/dist/components/Contractor/Profile/shared/useContractorDetailsForm/fields.js +16 -16
  93. package/dist/components/Contractor/exports/contractorManagement.d.ts +2 -2
  94. package/dist/components/Contractor/exports/contractorManagement.js +20 -20
  95. package/dist/components/Employee/Compensation/shared/useCompensationForm/fields.js +4 -4
  96. package/dist/components/Employee/Compensation/shared/useJobForm/fields.js +6 -6
  97. package/dist/components/Employee/Deductions/shared/useChildSupportGarnishmentForm/fields.js +8 -8
  98. package/dist/components/Employee/Deductions/shared/useDeductionForm/fields.js +4 -4
  99. package/dist/components/Employee/Documents/management/DocumentManager.js +2 -1
  100. package/dist/components/Employee/Documents/management/DocumentManager.js.map +1 -1
  101. package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/useDocumentList.js +3 -5
  102. package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  103. package/dist/components/Employee/Documents/shared/useSignEmployeeForm/fields.js +1 -1
  104. package/dist/components/Employee/FederalTaxes/shared/FederalTaxesView.js +1 -1
  105. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/fields.js +4 -4
  106. package/dist/components/Employee/Landing/Landing.js +31 -30
  107. package/dist/components/Employee/Landing/Landing.js.map +1 -1
  108. package/dist/components/Employee/OnboardingSummary/OnboardingSummary.js +59 -58
  109. package/dist/components/Employee/OnboardingSummary/OnboardingSummary.js.map +1 -1
  110. package/dist/components/Employee/PaymentMethod/management/PaymentMethodBankForm.js +4 -4
  111. package/dist/components/Employee/PaymentMethod/onboarding/BankForm.js +4 -4
  112. package/dist/components/Employee/PaymentMethod/shared/useBankForm/fields.js +1 -1
  113. package/dist/components/Employee/PaymentMethod/shared/useSplitPaymentsForm/splitFieldFactory.js +4 -4
  114. package/dist/components/Employee/Profile/shared/useEmployeeDetailsForm/fields.js +8 -8
  115. package/dist/components/Employee/Profile/shared/useHomeAddressForm/fields.js +5 -5
  116. package/dist/components/Employee/Profile/shared/useWorkAddressForm/fields.js +4 -4
  117. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fieldComponents.js +8 -8
  118. package/dist/components/Flow/Flow.js +27 -20
  119. package/dist/components/Flow/Flow.js.map +1 -1
  120. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js +44 -44
  121. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js.map +1 -1
  122. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js +108 -108
  123. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js.map +1 -1
  124. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js +1 -1
  125. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js.map +1 -1
  126. package/dist/components/Payroll/usePreparedPayrollData.js +8 -10
  127. package/dist/components/Payroll/usePreparedPayrollData.js.map +1 -1
  128. package/dist/components/TimeOff/shared/EmployeeTable/EmployeeTable.js +23 -23
  129. package/dist/components/TimeOff/shared/EmployeeTable/EmployeeTable.js.map +1 -1
  130. package/dist/contexts/LoadingIndicatorProvider/useLoadingIndicator.d.ts +4 -11
  131. package/dist/contexts/LoadingIndicatorProvider/useLoadingIndicator.js +8 -8
  132. package/dist/contexts/LoadingIndicatorProvider/useLoadingIndicator.js.map +1 -1
  133. package/dist/i18n/I18n.js +7 -7
  134. package/dist/i18n/I18n.js.map +1 -1
  135. package/dist/i18n/en/Company.PaySchedule.json.js +5 -5
  136. package/dist/i18n/en/Company.StateTaxes.json.js +1 -1
  137. package/dist/i18n/en/Company.TimeOff.EmployeeTable.json.js +20 -18
  138. package/dist/i18n/en/Company.TimeOff.EmployeeTable.json.js.map +1 -1
  139. package/dist/i18n/en/Contractor.ManagementContractorList.json.js +46 -44
  140. package/dist/i18n/en/Contractor.ManagementContractorList.json.js.map +1 -1
  141. package/dist/i18n/en/Contractor.Payments.CreateHistoricalPayment.json.js +36 -0
  142. package/dist/i18n/en/Contractor.Payments.CreateHistoricalPayment.json.js.map +1 -0
  143. package/dist/i18n/en/Contractor.Payments.HistoricalPaymentSummary.json.js +48 -0
  144. package/dist/i18n/en/Contractor.Payments.HistoricalPaymentSummary.json.js.map +1 -0
  145. package/dist/i18n/en/Contractor.Payments.PaymentSummary.json.js +7 -7
  146. package/dist/i18n/en/Payroll.PayrollConfiguration.json.js +29 -27
  147. package/dist/i18n/en/Payroll.PayrollConfiguration.json.js.map +1 -1
  148. package/dist/i18n/types.d.ts +219 -105
  149. package/dist/shared/constants.d.ts +12 -4
  150. package/dist/shared/constants.js +23 -19
  151. package/dist/shared/constants.js.map +1 -1
  152. package/dist/style.css +1 -1
  153. package/docs/guides/endpoint-inventory.json +30 -1
  154. package/package.json +17 -16
  155. package/dist/components/Contractor/Payments/HistoricalPaymentAmounts/HistoricalPaymentAmounts.d.ts +0 -33
  156. package/dist/components/Contractor/Payments/HistoricalPaymentAmounts/HistoricalPaymentAmounts.js +0 -62
  157. package/dist/components/Contractor/Payments/HistoricalPaymentAmounts/HistoricalPaymentAmounts.js.map +0 -1
  158. package/dist/components/Contractor/Payments/HistoricalPaymentAmounts/index.d.ts +0 -1
  159. package/dist/components/Contractor/Payments/HistoricalPaymentAmounts/useFormDictionary.d.ts +0 -9
  160. package/dist/components/Contractor/Payments/HistoricalPaymentAmounts/useFormDictionary.js.map +0 -1
  161. package/dist/components/Contractor/Payments/HistoricalPaymentContractors/HistoricalPaymentContractors.d.ts +0 -27
  162. package/dist/components/Contractor/Payments/HistoricalPaymentContractors/HistoricalPaymentContractors.js +0 -56
  163. package/dist/components/Contractor/Payments/HistoricalPaymentContractors/HistoricalPaymentContractors.js.map +0 -1
  164. package/dist/components/Contractor/Payments/HistoricalPaymentContractors/index.d.ts +0 -1
  165. package/dist/i18n/en/Contractor.Payments.HistoricalPaymentAmounts.json.js +0 -36
  166. package/dist/i18n/en/Contractor.Payments.HistoricalPaymentAmounts.json.js.map +0 -1
  167. package/dist/i18n/en/Contractor.Payments.HistoricalPaymentContractors.json.js +0 -18
  168. package/dist/i18n/en/Contractor.Payments.HistoricalPaymentContractors.json.js.map +0 -1
@@ -1,11 +1,11 @@
1
1
  import { jsx as r, jsxs as V } from "react/jsx-runtime";
2
2
  import { useMemo as s } from "react";
3
- import { useTranslation as I } from "react-i18next";
3
+ import { useTranslation as F } from "react-i18next";
4
4
  import h from "./EmployeeTable.module.scss.js";
5
- import { EmptyData as O } from "../../../Common/EmptyData/EmptyData.js";
6
- import { useComponentContext as P } from "../../../../contexts/ComponentAdapter/useComponentContext.js";
7
- import { useI18n as _ } from "../../../../i18n/I18n.js";
8
- import { firstLastName as F } from "../../../../helpers/formattedStrings.js";
5
+ import { EmptyData as I } from "../../../Common/EmptyData/EmptyData.js";
6
+ import { useComponentContext as O } from "../../../../contexts/ComponentAdapter/useComponentContext.js";
7
+ import { useI18n as P } from "../../../../i18n/I18n.js";
8
+ import { firstLastName as _ } from "../../../../helpers/formattedStrings.js";
9
9
  import H from "../../../../assets/icons/search-lg.svg.js";
10
10
  import { useDataView as W } from "../../../Common/DataView/useDataView.js";
11
11
  import { DataView as $ } from "../../../Common/DataView/DataView.js";
@@ -17,8 +17,8 @@ function ee({
17
17
  searchValue: i,
18
18
  onSearchChange: y,
19
19
  onSearchClear: b,
20
- searchPlaceholder: T,
21
- hideSearch: E,
20
+ searchPlaceholder: E,
21
+ hideSearch: T,
22
22
  selectionMode: g,
23
23
  onSelect: c,
24
24
  onSelectAll: C,
@@ -26,28 +26,28 @@ function ee({
26
26
  hideSelectAll: N,
27
27
  itemMenu: p,
28
28
  pagination: j,
29
- isFetching: v,
29
+ isFetching: k,
30
30
  emptyState: u,
31
31
  emptySearchState: a,
32
- footer: x
32
+ footer: v
33
33
  }) {
34
- _("Company.TimeOff.EmployeeTable");
35
- const { t } = I("Company.TimeOff.EmployeeTable"), L = P(), n = i.length > 0 && o.length === 0, D = (e) => {
34
+ P("Company.TimeOff.EmployeeTable");
35
+ const { t } = F("Company.TimeOff.EmployeeTable"), x = O(), n = i.length > 0 && o.length === 0, L = (e) => {
36
36
  y(e), e || b();
37
37
  }, f = s(() => {
38
38
  const e = t("noSearchResults");
39
39
  return function() {
40
40
  return /* @__PURE__ */ r(q, { message: e });
41
41
  };
42
- }, [t]), k = s(() => n && a ? a : n ? f : u, [n, a, u, f]), w = s(
42
+ }, [t]), w = s(() => n && a ? a : n ? f : u, [n, a, u, f]), D = s(
43
43
  () => [
44
44
  {
45
45
  key: "name",
46
46
  title: t("name"),
47
- render: (e) => /* @__PURE__ */ r("span", { id: `employee-name-${e.uuid}`, children: F({
47
+ render: (e) => /* @__PURE__ */ r("span", { id: `employee-name-${e.uuid}`, children: _({
48
48
  first_name: e.firstName,
49
49
  last_name: e.lastName
50
- }) })
50
+ }) || t("unknownEmployeeFallback") })
51
51
  },
52
52
  ...l ? [] : [
53
53
  {
@@ -61,25 +61,25 @@ function ee({
61
61
  [t, m, l]
62
62
  ), R = W({
63
63
  data: o,
64
- columns: w,
64
+ columns: D,
65
65
  itemMenu: p,
66
66
  pagination: j,
67
- isFetching: v,
68
- emptyState: k,
69
- footer: x,
67
+ isFetching: k,
68
+ emptyState: w,
69
+ footer: v,
70
70
  ...c && { selectionMode: g, onSelect: c, onSelectAll: C, getIsItemSelected: S, hideSelectAll: N }
71
71
  });
72
72
  return /* @__PURE__ */ V("div", { className: h.root, "data-has-menu": p ? !0 : void 0, children: [
73
- !E && /* @__PURE__ */ r("div", { className: h.searchContainer, children: /* @__PURE__ */ r(
74
- L.TextInput,
73
+ !T && /* @__PURE__ */ r("div", { className: h.searchContainer, children: /* @__PURE__ */ r(
74
+ x.TextInput,
75
75
  {
76
76
  name: "employee-search",
77
77
  type: "search",
78
78
  label: t("searchLabel"),
79
79
  shouldVisuallyHideLabel: !0,
80
- placeholder: T ?? t("searchPlaceholder"),
80
+ placeholder: E ?? t("searchPlaceholder"),
81
81
  value: i,
82
- onChange: D,
82
+ onChange: L,
83
83
  adornmentStart: /* @__PURE__ */ r(H, { "aria-hidden": !0 })
84
84
  }
85
85
  ) }),
@@ -87,7 +87,7 @@ function ee({
87
87
  ] });
88
88
  }
89
89
  function q({ message: o }) {
90
- return /* @__PURE__ */ r(O, { title: o });
90
+ return /* @__PURE__ */ r(I, { title: o });
91
91
  }
92
92
  export {
93
93
  ee as EmployeeTable
@@ -1 +1 @@
1
- {"version":3,"file":"EmployeeTable.js","sources":["../../../../../src/components/TimeOff/shared/EmployeeTable/EmployeeTable.tsx"],"sourcesContent":["import { useMemo } from 'react'\nimport { useTranslation } from 'react-i18next'\nimport type { EmployeeTableItem, EmployeeTableProps } from './EmployeeTableTypes'\nimport styles from './EmployeeTable.module.scss'\nimport { DataView, EmptyData, useDataView } from '@/components/Common'\nimport type { useDataViewProp } from '@/components/Common/DataView/useDataView'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\nimport { useI18n } from '@/i18n/I18n'\nimport { firstLastName } from '@/helpers/formattedStrings'\nimport SearchIcon from '@/assets/icons/search-lg.svg?react'\n\n/** @internal */\nexport function EmployeeTable<T extends EmployeeTableItem>({\n data,\n label,\n additionalColumns = [],\n hideJobTitle,\n searchValue,\n onSearchChange,\n onSearchClear,\n searchPlaceholder,\n hideSearch,\n selectionMode,\n onSelect,\n onSelectAll,\n getIsItemSelected,\n hideSelectAll,\n itemMenu,\n pagination,\n isFetching,\n emptyState,\n emptySearchState,\n footer,\n}: EmployeeTableProps<T>) {\n useI18n('Company.TimeOff.EmployeeTable')\n const { t } = useTranslation('Company.TimeOff.EmployeeTable')\n const Components = useComponentContext()\n\n const isSearchWithNoResults = searchValue.length > 0 && data.length === 0\n\n const handleSearchChange = (value: string) => {\n onSearchChange(value)\n if (!value) onSearchClear()\n }\n\n const defaultEmptySearch = useMemo(() => {\n const noSearchResults = t('noSearchResults')\n return function EmptySearchFallback() {\n return <DefaultEmptySearchState message={noSearchResults} />\n }\n }, [t])\n\n const resolvedEmptyState = useMemo(() => {\n if (isSearchWithNoResults && emptySearchState) {\n return emptySearchState\n }\n if (isSearchWithNoResults) {\n return defaultEmptySearch\n }\n return emptyState\n }, [isSearchWithNoResults, emptySearchState, emptyState, defaultEmptySearch])\n\n const columns = useMemo(\n () => [\n {\n key: 'name',\n title: t('name'),\n render: (item: T) => (\n <span id={`employee-name-${item.uuid}`}>\n {firstLastName({\n first_name: item.firstName,\n last_name: item.lastName,\n })}\n </span>\n ),\n },\n ...(hideJobTitle\n ? []\n : [\n {\n key: 'jobTitle' as keyof T,\n title: t('jobTitle'),\n render: (item: T) => item.jobTitle ?? '',\n },\n ]),\n ...additionalColumns,\n ],\n [t, additionalColumns, hideJobTitle],\n )\n\n const dataViewProps = useDataView<T>({\n data,\n columns,\n itemMenu,\n pagination,\n isFetching,\n emptyState: resolvedEmptyState,\n footer,\n ...(onSelect && { selectionMode, onSelect, onSelectAll, getIsItemSelected, hideSelectAll }),\n } as useDataViewProp<T>)\n\n return (\n <div className={styles.root} data-has-menu={itemMenu ? true : undefined}>\n {!hideSearch && (\n <div className={styles.searchContainer}>\n <Components.TextInput\n name=\"employee-search\"\n type=\"search\"\n label={t('searchLabel')}\n shouldVisuallyHideLabel\n placeholder={searchPlaceholder ?? t('searchPlaceholder')}\n value={searchValue}\n onChange={handleSearchChange}\n adornmentStart={<SearchIcon aria-hidden />}\n />\n </div>\n )}\n <DataView label={label ?? t('tableLabel')} {...dataViewProps} />\n </div>\n )\n}\n\nfunction DefaultEmptySearchState({ message }: { message: string }) {\n return <EmptyData title={message} />\n}\n"],"names":["EmployeeTable","data","label","additionalColumns","hideJobTitle","searchValue","onSearchChange","onSearchClear","searchPlaceholder","hideSearch","selectionMode","onSelect","onSelectAll","getIsItemSelected","hideSelectAll","itemMenu","pagination","isFetching","emptyState","emptySearchState","footer","useI18n","useTranslation","Components","useComponentContext","isSearchWithNoResults","handleSearchChange","value","defaultEmptySearch","useMemo","noSearchResults","jsx","DefaultEmptySearchState","resolvedEmptyState","columns","item","firstLastName","dataViewProps","useDataView","jsxs","styles","SearchIcon","DataView","message","EmptyData"],"mappings":";;;;;;;;;;;AAYO,SAASA,GAA2C;AAAA,EACzD,MAAAC;AAAA,EACA,OAAAC;AAAA,EACA,mBAAAC,IAAoB,CAAA;AAAA,EACpB,cAAAC;AAAA,EACA,aAAAC;AAAA,EACA,gBAAAC;AAAA,EACA,eAAAC;AAAA,EACA,mBAAAC;AAAA,EACA,YAAAC;AAAA,EACA,eAAAC;AAAA,EACA,UAAAC;AAAA,EACA,aAAAC;AAAA,EACA,mBAAAC;AAAA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e;AAAA,IACnC,MAAArC;AAAA,IACA,SAAAiC;AAAA,IACA,UAAAnB;AAAA,IACA,YAAAC;AAAA,IACA,YAAAC;AAAA,IACA,YAAYgB;AAAA,IACZ,QAAAb;AAAA,IACA,GAAIT,KAAY,EAAE,eAAAD,GAAe,UAAAC,GAAU,aAAAC,GAAa,mBAAAC,GAAmB,eAAAC,EAAA;AAAA,EAAc,CACpE;AAEvB,SACE,gBAAAyB,EAAC,SAAI,WAAWC,EAAO,MAAM,iBAAezB,IAAW,KAAO,QAC3D,UAAA;AAAA,IAAA,CAACN,KACA,gBAAAsB,EAAC,OAAA,EAAI,WAAWS,EAAO,iBACrB,UAAA,gBAAAT;AAAA,MAACR,EAAW;AAAA,MAAX;AAAA,QACC,MAAK;AAAA,QACL,MAAK;AAAA,QACL,OAAO,EAAE,aAAa;AAAA,QACtB,yBAAuB;AAAA,QACvB,aAAaf,KAAqB,EAAE,mBAAmB;AAAA,QACvD,OAAOH;AAAA,QACP,UAAUqB;AAAA,QACV,gBAAgB,gBAAAK,EAACU,GAAA,EAAW,eAAW,GAAA,CAAC;AAAA,MAAA;AAAA,IAAA,GAE5C;AAAA,IAEF,gBAAAV,EAACW,KAAS,OAAOxC,KAAS,EAAE,YAAY,GAAI,GAAGmC,EAAA,CAAe;AAAA,EAAA,GAChE;AAEJ;AAEA,SAASL,EAAwB,EAAE,SAAAW,KAAgC;AACjE,SAAO,gBAAAZ,EAACa,GAAA,EAAU,OAAOD,EAAA,CAAS;AACpC;"}
1
+ {"version":3,"file":"EmployeeTable.js","sources":["../../../../../src/components/TimeOff/shared/EmployeeTable/EmployeeTable.tsx"],"sourcesContent":["import { useMemo } from 'react'\nimport { useTranslation } from 'react-i18next'\nimport type { EmployeeTableItem, EmployeeTableProps } from './EmployeeTableTypes'\nimport styles from './EmployeeTable.module.scss'\nimport { DataView, EmptyData, useDataView } from '@/components/Common'\nimport type { useDataViewProp } from '@/components/Common/DataView/useDataView'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\nimport { useI18n } from '@/i18n/I18n'\nimport { firstLastName } from '@/helpers/formattedStrings'\nimport SearchIcon from '@/assets/icons/search-lg.svg?react'\n\n/** @internal */\nexport function EmployeeTable<T extends EmployeeTableItem>({\n data,\n label,\n additionalColumns = [],\n hideJobTitle,\n searchValue,\n onSearchChange,\n onSearchClear,\n searchPlaceholder,\n hideSearch,\n selectionMode,\n onSelect,\n onSelectAll,\n getIsItemSelected,\n hideSelectAll,\n itemMenu,\n pagination,\n isFetching,\n emptyState,\n emptySearchState,\n footer,\n}: EmployeeTableProps<T>) {\n useI18n('Company.TimeOff.EmployeeTable')\n const { t } = useTranslation('Company.TimeOff.EmployeeTable')\n const Components = useComponentContext()\n\n const isSearchWithNoResults = searchValue.length > 0 && data.length === 0\n\n const handleSearchChange = (value: string) => {\n onSearchChange(value)\n if (!value) onSearchClear()\n }\n\n const defaultEmptySearch = useMemo(() => {\n const noSearchResults = t('noSearchResults')\n return function EmptySearchFallback() {\n return <DefaultEmptySearchState message={noSearchResults} />\n }\n }, [t])\n\n const resolvedEmptyState = useMemo(() => {\n if (isSearchWithNoResults && emptySearchState) {\n return emptySearchState\n }\n if (isSearchWithNoResults) {\n return defaultEmptySearch\n }\n return emptyState\n }, [isSearchWithNoResults, emptySearchState, emptyState, defaultEmptySearch])\n\n const columns = useMemo(\n () => [\n {\n key: 'name',\n title: t('name'),\n render: (item: T) => (\n <span id={`employee-name-${item.uuid}`}>\n {firstLastName({\n first_name: item.firstName,\n last_name: item.lastName,\n }) || t('unknownEmployeeFallback')}\n </span>\n ),\n },\n ...(hideJobTitle\n ? []\n : [\n {\n key: 'jobTitle' as keyof T,\n title: t('jobTitle'),\n render: (item: T) => item.jobTitle ?? '',\n },\n ]),\n ...additionalColumns,\n ],\n [t, additionalColumns, hideJobTitle],\n )\n\n const dataViewProps = useDataView<T>({\n data,\n columns,\n itemMenu,\n pagination,\n isFetching,\n emptyState: resolvedEmptyState,\n footer,\n ...(onSelect && { selectionMode, onSelect, onSelectAll, getIsItemSelected, hideSelectAll }),\n } as useDataViewProp<T>)\n\n return (\n <div className={styles.root} data-has-menu={itemMenu ? true : undefined}>\n {!hideSearch && (\n <div className={styles.searchContainer}>\n <Components.TextInput\n name=\"employee-search\"\n type=\"search\"\n label={t('searchLabel')}\n shouldVisuallyHideLabel\n placeholder={searchPlaceholder ?? t('searchPlaceholder')}\n value={searchValue}\n onChange={handleSearchChange}\n adornmentStart={<SearchIcon aria-hidden />}\n />\n </div>\n )}\n <DataView label={label ?? t('tableLabel')} {...dataViewProps} />\n </div>\n )\n}\n\nfunction DefaultEmptySearchState({ message }: { message: string }) {\n return <EmptyData title={message} />\n}\n"],"names":["EmployeeTable","data","label","additionalColumns","hideJobTitle","searchValue","onSearchChange","onSearchClear","searchPlaceholder","hideSearch","selectionMode","onSelect","onSelectAll","getIsItemSelected","hideSelectAll","itemMenu","pagination","isFetching","emptyState","emptySearchState","footer","useI18n","useTranslation","Components","useComponentContext","isSearchWithNoResults","handleSearchChange","value","defaultEmptySearch","useMemo","noSearchResults","jsx","DefaultEmptySearchState","resolvedEmptyState","columns","item","firstLastName","dataViewProps","useDataView","jsxs","styles","SearchIcon","DataView","message","EmptyData"],"mappings":";;;;;;;;;;;AAYO,SAASA,GAA2C;AAAA,EACzD,MAAAC;AAAA,EACA,OAAAC;AAAA,EACA,mBAAAC,IAAoB,CAAA;AAAA,EACpB,cAAAC;AAAA,EACA,aAAAC;AAAA,EACA,gBAAAC;AAAA,EACA,eAAAC;AAAA,EACA,mBAAAC;AAAA,EACA,YAAAC;AAAA,EACA,eAAAC;AAAA,EACA,UAAAC;AAAA,EACA,aAAAC;AAAA,EACA,mBAAAC;AAAA,EACA,eAAAC;AAAA,EACA,UAAAC;AAAA,EACA,YAAAC;AAAA,EACA,YAAAC;AAAA,EACA,YAAAC;AAAA,EACA,kBAAAC;AAAA,EACA,QAAAC;AACF,GAA0B;AACxB,EAAAC,EAAQ,+BAA+B;AACvC,QAAM,EAA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,EAAE,eAAAD,GAAe,UAAAC,GAAU,aAAAC,GAAa,mBAAAC,GAAmB,eAAAC,EAAA;AAAA,EAAc,CACpE;AAEvB,SACE,gBAAAyB,EAAC,SAAI,WAAWC,EAAO,MAAM,iBAAezB,IAAW,KAAO,QAC3D,UAAA;AAAA,IAAA,CAACN,KACA,gBAAAsB,EAAC,OAAA,EAAI,WAAWS,EAAO,iBACrB,UAAA,gBAAAT;AAAA,MAACR,EAAW;AAAA,MAAX;AAAA,QACC,MAAK;AAAA,QACL,MAAK;AAAA,QACL,OAAO,EAAE,aAAa;AAAA,QACtB,yBAAuB;AAAA,QACvB,aAAaf,KAAqB,EAAE,mBAAmB;AAAA,QACvD,OAAOH;AAAA,QACP,UAAUqB;AAAA,QACV,gBAAgB,gBAAAK,EAACU,GAAA,EAAW,eAAW,GAAA,CAAC;AAAA,MAAA;AAAA,IAAA,GAE5C;AAAA,IAEF,gBAAAV,EAACW,KAAS,OAAOxC,KAAS,EAAE,YAAY,GAAI,GAAGmC,EAAA,CAAe;AAAA,EAAA,GAChE;AAEJ;AAEA,SAASL,EAAwB,EAAE,SAAAW,KAAgC;AACjE,SAAO,gBAAAZ,EAACa,GAAA,EAAU,OAAOD,EAAA,CAAS;AACpC;"}
@@ -5,8 +5,9 @@ import { JSX } from 'react';
5
5
  * @internal
6
6
  */
7
7
  export interface LoadingIndicatorContextProps {
8
- LoadingIndicator: ({ children }: {
8
+ LoadingIndicator: ({ children, height, }: {
9
9
  children?: React.ReactNode;
10
+ height?: number;
10
11
  }) => JSX.Element;
11
12
  }
12
13
  /**
@@ -14,19 +15,11 @@ export interface LoadingIndicatorContextProps {
14
15
  *
15
16
  * @internal
16
17
  */
17
- export declare const LoadingIndicatorContext: import('react').Context<{
18
- LoadingIndicator: ({ children }: {
19
- children?: React.ReactNode;
20
- }) => JSX.Element;
21
- }>;
18
+ export declare const LoadingIndicatorContext: import('react').Context<LoadingIndicatorContextProps>;
22
19
  /**
23
20
  * Reads the loading-indicator component from {@link LoadingIndicatorContext}.
24
21
  *
25
22
  * @returns The current {@link LoadingIndicatorContextProps} value, falling back to the SDK default `Loading` component.
26
23
  * @internal
27
24
  */
28
- export declare const useLoadingIndicator: () => {
29
- LoadingIndicator: ({ children }: {
30
- children?: React.ReactNode;
31
- }) => JSX.Element;
32
- };
25
+ export declare const useLoadingIndicator: () => LoadingIndicatorContextProps;
@@ -1,11 +1,11 @@
1
- import { jsx as t } from "react/jsx-runtime";
2
- import { useContext as n, createContext as r } from "react";
3
- import { Loading as i } from "../../components/Common/Loading/Loading.js";
4
- const a = r({
5
- LoadingIndicator: ({ children: o }) => /* @__PURE__ */ t(i, { children: o })
6
- }), m = () => n(a);
1
+ import { jsx as n } from "react/jsx-runtime";
2
+ import { useContext as r, createContext as i } from "react";
3
+ import { Loading as a } from "../../components/Common/Loading/Loading.js";
4
+ const e = i({
5
+ LoadingIndicator: ({ children: o, height: t }) => /* @__PURE__ */ n(a, { height: t, children: o })
6
+ }), s = () => r(e);
7
7
  export {
8
- a as LoadingIndicatorContext,
9
- m as useLoadingIndicator
8
+ e as LoadingIndicatorContext,
9
+ s as useLoadingIndicator
10
10
  };
11
11
  //# sourceMappingURL=useLoadingIndicator.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useLoadingIndicator.js","sources":["../../../src/contexts/LoadingIndicatorProvider/useLoadingIndicator.tsx"],"sourcesContent":["import type { JSX } from 'react'\nimport { createContext, useContext } from 'react'\nimport { Loading } from '@/components/Common/Loading/Loading'\n\n/**\n * Shape of the value stored in {@link LoadingIndicatorContext}.\n *\n * @internal\n */\nexport interface LoadingIndicatorContextProps {\n LoadingIndicator: ({ children }: { children?: React.ReactNode }) => JSX.Element\n}\n/**\n * React context holding the loading-indicator component used by SDK base components.\n *\n * @internal\n */\nexport const LoadingIndicatorContext = createContext({\n LoadingIndicator: ({ children }: { children?: React.ReactNode }) => <Loading>{children}</Loading>,\n})\n\n/**\n * Reads the loading-indicator component from {@link LoadingIndicatorContext}.\n *\n * @returns The current {@link LoadingIndicatorContextProps} value, falling back to the SDK default `Loading` component.\n * @internal\n */\nexport const useLoadingIndicator = () => useContext(LoadingIndicatorContext)\n"],"names":["LoadingIndicatorContext","createContext","children","jsx","Loading","useLoadingIndicator","useContext"],"mappings":";;;AAiBO,MAAMA,IAA0BC,EAAc;AAAA,EACnD,kBAAkB,CAAC,EAAE,UAAAC,QAA+C,gBAAAC,EAACC,KAAS,UAAAF,EAAA,CAAS;AACzF,CAAC,GAQYG,IAAsB,MAAMC,EAAWN,CAAuB;"}
1
+ {"version":3,"file":"useLoadingIndicator.js","sources":["../../../src/contexts/LoadingIndicatorProvider/useLoadingIndicator.tsx"],"sourcesContent":["import type { JSX } from 'react'\nimport { createContext, useContext } from 'react'\nimport { Loading } from '@/components/Common/Loading/Loading'\n\n/**\n * Shape of the value stored in {@link LoadingIndicatorContext}.\n *\n * @internal\n */\nexport interface LoadingIndicatorContextProps {\n LoadingIndicator: ({\n children,\n height,\n }: {\n children?: React.ReactNode\n height?: number\n }) => JSX.Element\n}\n/**\n * React context holding the loading-indicator component used by SDK base components.\n *\n * @internal\n */\nexport const LoadingIndicatorContext = createContext<LoadingIndicatorContextProps>({\n LoadingIndicator: ({ children, height }: { children?: React.ReactNode; height?: number }) => (\n <Loading height={height}>{children}</Loading>\n ),\n})\n\n/**\n * Reads the loading-indicator component from {@link LoadingIndicatorContext}.\n *\n * @returns The current {@link LoadingIndicatorContextProps} value, falling back to the SDK default `Loading` component.\n * @internal\n */\nexport const useLoadingIndicator = () => useContext(LoadingIndicatorContext)\n"],"names":["LoadingIndicatorContext","createContext","children","height","jsx","Loading","useLoadingIndicator","useContext"],"mappings":";;;AAuBO,MAAMA,IAA0BC,EAA4C;AAAA,EACjF,kBAAkB,CAAC,EAAE,UAAAC,GAAU,QAAAC,QAC7B,gBAAAC,EAACC,GAAA,EAAQ,QAAAF,GAAiB,UAAAD,EAAA,CAAS;AAEvC,CAAC,GAQYI,IAAsB,MAAMC,EAAWP,CAAuB;"}
package/dist/i18n/I18n.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { useTranslation as p } from "react-i18next";
2
2
  import { LRUCache as f } from "../helpers/LRUCache.js";
3
- const j = "common", i = /* @__PURE__ */ Object.assign({
3
+ const j = "common", s = /* @__PURE__ */ Object.assign({
4
4
  "./en/Company.Addresses.json": () => import("./en/Company.Addresses.json.js").then((e) => e.default),
5
5
  "./en/Company.AssignSignatory.json": () => import("./en/Company.AssignSignatory.json.js").then((e) => e.default),
6
6
  "./en/Company.BankAccount.json": () => import("./en/Company.BankAccount.json.js").then((e) => e.default),
@@ -36,9 +36,9 @@ const j = "common", i = /* @__PURE__ */ Object.assign({
36
36
  "./en/Contractor.NewHireReport.json": () => import("./en/Contractor.NewHireReport.json.js").then((e) => e.default),
37
37
  "./en/Contractor.OnboardingSummary.json": () => import("./en/Contractor.OnboardingSummary.json.js").then((e) => e.default),
38
38
  "./en/Contractor.PaymentMethod.json": () => import("./en/Contractor.PaymentMethod.json.js").then((e) => e.default),
39
+ "./en/Contractor.Payments.CreateHistoricalPayment.json": () => import("./en/Contractor.Payments.CreateHistoricalPayment.json.js").then((e) => e.default),
39
40
  "./en/Contractor.Payments.CreatePayment.json": () => import("./en/Contractor.Payments.CreatePayment.json.js").then((e) => e.default),
40
- "./en/Contractor.Payments.HistoricalPaymentAmounts.json": () => import("./en/Contractor.Payments.HistoricalPaymentAmounts.json.js").then((e) => e.default),
41
- "./en/Contractor.Payments.HistoricalPaymentContractors.json": () => import("./en/Contractor.Payments.HistoricalPaymentContractors.json.js").then((e) => e.default),
41
+ "./en/Contractor.Payments.HistoricalPaymentSummary.json": () => import("./en/Contractor.Payments.HistoricalPaymentSummary.json.js").then((e) => e.default),
42
42
  "./en/Contractor.Payments.PaymentHistory.json": () => import("./en/Contractor.Payments.PaymentHistory.json.js").then((e) => e.default),
43
43
  "./en/Contractor.Payments.PaymentStatement.json": () => import("./en/Contractor.Payments.PaymentStatement.json.js").then((e) => e.default),
44
44
  "./en/Contractor.Payments.PaymentSummary.json": () => import("./en/Contractor.Payments.PaymentSummary.json.js").then((e) => e.default),
@@ -121,18 +121,18 @@ const j = "common", i = /* @__PURE__ */ Object.assign({
121
121
  });
122
122
  function u(e, n) {
123
123
  const t = `./${e ?? "en"}/${n}.json`;
124
- return i[t] ?? i[`./en/${n}.json`];
124
+ return s[t] ?? s[`./en/${n}.json`];
125
125
  }
126
126
  const m = new f(50), d = ({ lng: e = "en", ns: n }) => {
127
127
  let o = !0, t = !1, a;
128
128
  const l = (async () => {
129
129
  try {
130
- const s = u(e, n);
131
- if (!s) {
130
+ const i = u(e, n);
131
+ if (!i) {
132
132
  t = !0, o = !1;
133
133
  return;
134
134
  }
135
- a = await s(), o = !1;
135
+ a = await i(), o = !1;
136
136
  } catch {
137
137
  t = !0, o = !1;
138
138
  }
@@ -1 +1 @@
1
- {"version":3,"file":"I18n.js","sources":["../../src/i18n/I18n.ts"],"sourcesContent":["/// <reference types=\"vite/client\" />\nimport { useTranslation } from 'react-i18next'\nimport type { CustomTypeOptions } from 'i18next'\nimport type { Resources } from './types'\nimport { LRUCache } from '@/helpers/LRUCache'\nimport type { ResourceDictionary } from '@/types/Helpers'\n\n/** @internal */\nexport const defaultNS = 'common'\n\nconst translationLoaders = import.meta.glob<Record<string, string>>('./*/*.json', {\n import: 'default',\n})\n\nfunction resolveTranslationLoader(lng: string | undefined, ns: string) {\n const language = lng ?? 'en'\n const primaryPath = `./${language}/${ns}.json`\n const load =\n translationLoaders[primaryPath as keyof typeof translationLoaders] ??\n translationLoaders[`./en/${ns}.json` as keyof typeof translationLoaders]\n return load\n}\n\n//LRU cache holding requested resources\nconst resourceCache = new LRUCache(50)\n/**\n * Dynamic loading of translation resources - works with Suspence to prevent early access to loadable strings\n *\n * @param lng - resource language\n * @param ns - Namespace/name of the component/resource\n * @returns translation resource\n */\nconst loadResource = ({ lng = 'en', ns }: { ns: string; lng?: string }) => {\n let isLoading = true\n let isError = false\n let resource: Record<string, string>\n\n const importResources = async () => {\n try {\n const load = resolveTranslationLoader(lng, ns)\n if (!load) {\n isError = true\n isLoading = false\n return\n }\n resource = await load()\n isLoading = false\n } catch {\n isError = true\n isLoading = false\n }\n }\n const promise = importResources()\n return () => {\n if (isLoading) {\n // eslint-disable-next-line @typescript-eslint/only-throw-error\n throw promise // Throw the promise to indicate Suspense should suspend.\n } else if (isError) {\n throw new Error(`Error loading translation for component: ${ns}`) // Handle error\n } else {\n return resource // Return the resource when loading is complete\n }\n }\n}\n\n/**\n * Hook that allows component to load custom dictionary\n *\n * @param ns - Namespace - should match component name exactly - not exposed to consumers\n * @internal\n */\nexport const useI18n = (\n namespaces:\n keyof CustomTypeOptions['resources'] | Array<keyof CustomTypeOptions['resources']> | null,\n) => {\n //Getting our instance of i18n -> supplied by the provider set in GustoProvider\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 GustoProvider level through dictionary prop\n }\n }\n}\n\n/**\n * Used by individual components to override their dictionaries with partner provided resources\n *\n * @internal\n */\nexport const useComponentDictionary = <K extends keyof Resources>(\n ns: K,\n resource?: ResourceDictionary<K> | null,\n) => {\n const { i18n: i18nInstance } = useTranslation()\n if (resource) {\n for (const lang in resource) {\n i18nInstance.addResourceBundle(lang, ns, resource[lang], true, true)\n }\n }\n}\n"],"names":["defaultNS","translationLoaders","m","resolveTranslationLoader","lng","ns","primaryPath","resourceCache","LRUCache","loadResource","isLoading","isError","resource","promise","load","useI18n","namespaces","i18nInstance","useTranslation","nsMap","key","resourceGetter","useComponentDictionary","lang"],"mappings":";;AAQO,MAAMA,IAAY,UAEnBC,IAAqB,uBAAA,OAAA;AAAA,EAAA,+BAAA,MAAA,OAAA,gCAAA,EAAA,KAAA,CAAAC,MAAAA,EAAA,OAAA;AAAA,EAAA,qCAAA,MAAA,OAAA,sCAAA,EAAA,KAAA,CAAAA,MAAAA,EAAA,OAAA;AAAA,EAAA,iCAAA,MAAA,OAAA,kCAAA,EAAA,KAAA,CAAAA,MAAAA,EAAA,OAAA;AAAA,EAAA,kCAAA,MAAA,OAAA,mCAAA,EAAA,KAAA,CAAAA,MAAAA,EAAA,OAAA;AAAA,EAAA,kCAAA,MAAA,OAAA,mCAAA,EAAA,KAAA,CAAAA,MAAAA,EAAA,OAAA;AAAA,EAAA,8BAAA,MAAA,OAAA,+BAAA,EAAA,KAAA,CAAAA,MAAAA,EAAA,OAAA;AAAA,EAAA,+BAAA,MAAA,OAAA,gCAAA,EAAA,KAAA,CAAAA,MAAAA,EAAA,OAAA;AAAA,EAAA,wCAAA,MAAA,OAAA,yCAAA,EAAA,KAAA,CAAAA,MAAAA,EAAA,OAAA;AAAA,EAAA,iCAAA,MAAA,OAAA,kCAAA,EAAA,KAAA,CAAAA,MAAAA,EAAA,OAAA;AAAA,EAAA,mCAAA,MAAA,OAAA,oCAAA,EAAA,KAAA,CAAAA,MAAAA,EAAA,OAAA;AAAA,EAAA,gCAAA,MAAA,OAAA,iCAAA,EAAA,KAAA,CAAAA,MAAAA,EAAA,OAAA;AAAA,EAAA,iDAAA,MAAA,OAAA,kDAAA,EAAA,KAAA,CAAAA,MAAAA,EAAA,OAAA;AAAA,EAAA,2CAAA,MAAA,OAAA,4CAAA,EAAA,KAAA,CAAAA,MAAAA,EAAA,OAAA;AAAA,EAAA,2CAAA,MAAA,OAAA,4CAAA,EAAA,KAAA,CAAA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AAE;AAEhE,WAAOO;AAAA,EAEX;AACF,GAQaG,IAAU,CACrBC,MAEG;AAEH,QAAM,EAAE,MAAMC,EAAA,IAAiBC,EAAA;AAE/B,MAAI,CAACF,EAAY;AACjB,QAAMG,IAAQ,MAAM,QAAQH,CAAU,IAAIA,IAAa,CAACA,CAAU;AAClE,aAAWX,KAAMc,GAAO;AACtB,UAAMC,IAAM,GAAGH,EAAa,gBAAgB,IAAIZ,CAAE;AAElD,IAAIE,EAAc,IAAIa,CAAG,MAAM,QAE7Bb,EAAc,IAAIa,GAAKX,EAAa,EAAE,KAAKQ,EAAa,kBAAkB,IAAAZ,EAAA,CAAQ,CAAC;AAGrF,UAAMgB,IAAiBd,EAAc,IAAIa,CAAG;AAC5C,QAAIC,GAAgB;AAClB,YAAMT,IAAWS,EAAA;AACjB,MAAAJ,EAAa;AAAA,QACXA,EAAa,oBAAoB;AAAA,QACjCZ;AAAA,QACAO;AAAA,QACA;AAAA,QACA;AAAA,MAAA;AAAA,IAEJ;AAAA,EACF;AACF,GAOaU,IAAyB,CACpCjB,GACAO,MACG;AACH,QAAM,EAAE,MAAMK,EAAA,IAAiBC,EAAA;AAC/B,MAAIN;AACF,eAAWW,KAAQX;AACjB,MAAAK,EAAa,kBAAkBM,GAAMlB,GAAIO,EAASW,CAAI,GAAG,IAAM,EAAI;AAGzE;"}
1
+ {"version":3,"file":"I18n.js","sources":["../../src/i18n/I18n.ts"],"sourcesContent":["/// <reference types=\"vite/client\" />\nimport { useTranslation } from 'react-i18next'\nimport type { CustomTypeOptions } from 'i18next'\nimport type { Resources } from './types'\nimport { LRUCache } from '@/helpers/LRUCache'\nimport type { ResourceDictionary } from '@/types/Helpers'\n\n/** @internal */\nexport const defaultNS = 'common'\n\nconst translationLoaders = import.meta.glob<Record<string, string>>('./*/*.json', {\n import: 'default',\n})\n\nfunction resolveTranslationLoader(lng: string | undefined, ns: string) {\n const language = lng ?? 'en'\n const primaryPath = `./${language}/${ns}.json`\n const load =\n translationLoaders[primaryPath as keyof typeof translationLoaders] ??\n translationLoaders[`./en/${ns}.json` as keyof typeof translationLoaders]\n return load\n}\n\n//LRU cache holding requested resources\nconst resourceCache = new LRUCache(50)\n/**\n * Dynamic loading of translation resources - works with Suspence to prevent early access to loadable strings\n *\n * @param lng - resource language\n * @param ns - Namespace/name of the component/resource\n * @returns translation resource\n */\nconst loadResource = ({ lng = 'en', ns }: { ns: string; lng?: string }) => {\n let isLoading = true\n let isError = false\n let resource: Record<string, string>\n\n const importResources = async () => {\n try {\n const load = resolveTranslationLoader(lng, ns)\n if (!load) {\n isError = true\n isLoading = false\n return\n }\n resource = await load()\n isLoading = false\n } catch {\n isError = true\n isLoading = false\n }\n }\n const promise = importResources()\n return () => {\n if (isLoading) {\n // eslint-disable-next-line @typescript-eslint/only-throw-error\n throw promise // Throw the promise to indicate Suspense should suspend.\n } else if (isError) {\n throw new Error(`Error loading translation for component: ${ns}`) // Handle error\n } else {\n return resource // Return the resource when loading is complete\n }\n }\n}\n\n/**\n * Hook that allows component to load custom dictionary\n *\n * @param ns - Namespace - should match component name exactly - not exposed to consumers\n * @internal\n */\nexport const useI18n = (\n namespaces:\n keyof CustomTypeOptions['resources'] | Array<keyof CustomTypeOptions['resources']> | null,\n) => {\n //Getting our instance of i18n -> supplied by the provider set in GustoProvider\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 GustoProvider level through dictionary prop\n }\n }\n}\n\n/**\n * Used by individual components to override their dictionaries with partner provided resources\n *\n * @internal\n */\nexport const useComponentDictionary = <K extends keyof Resources>(\n ns: K,\n resource?: ResourceDictionary<K> | null,\n) => {\n const { i18n: i18nInstance } = useTranslation()\n if (resource) {\n for (const lang in resource) {\n i18nInstance.addResourceBundle(lang, ns, resource[lang], true, true)\n }\n }\n}\n"],"names":["defaultNS","translationLoaders","m","resolveTranslationLoader","lng","ns","primaryPath","resourceCache","LRUCache","loadResource","isLoading","isError","resource","promise","load","useI18n","namespaces","i18nInstance","useTranslation","nsMap","key","resourceGetter","useComponentDictionary","lang"],"mappings":";;AAQO,MAAMA,IAAY,UAEnBC,IAAqB,uBAAA,OAAA;AAAA,EAAA,+BAAA,MAAA,OAAA,gCAAA,EAAA,KAAA,CAAAC,MAAAA,EAAA,OAAA;AAAA,EAAA,qCAAA,MAAA,OAAA,sCAAA,EAAA,KAAA,CAAAA,MAAAA,EAAA,OAAA;AAAA,EAAA,iCAAA,MAAA,OAAA,kCAAA,EAAA,KAAA,CAAAA,MAAAA,EAAA,OAAA;AAAA,EAAA,kCAAA,MAAA,OAAA,mCAAA,EAAA,KAAA,CAAAA,MAAAA,EAAA,OAAA;AAAA,EAAA,kCAAA,MAAA,OAAA,mCAAA,EAAA,KAAA,CAAAA,MAAAA,EAAA,OAAA;AAAA,EAAA,8BAAA,MAAA,OAAA,+BAAA,EAAA,KAAA,CAAAA,MAAAA,EAAA,OAAA;AAAA,EAAA,+BAAA,MAAA,OAAA,gCAAA,EAAA,KAAA,CAAAA,MAAAA,EAAA,OAAA;AAAA,EAAA,wCAAA,MAAA,OAAA,yCAAA,EAAA,KAAA,CAAAA,MAAAA,EAAA,OAAA;AAAA,EAAA,iCAAA,MAAA,OAAA,kCAAA,EAAA,KAAA,CAAAA,MAAAA,EAAA,OAAA;AAAA,EAAA,mCAAA,MAAA,OAAA,oCAAA,EAAA,KAAA,CA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IAAOX,EAAyBC,GAAKC,CAAE;AAC7C,UAAI,CAACS,GAAM;AACT,QAAAH,IAAU,IACVD,IAAY;AACZ;AAAA,MACF;AACA,MAAAE,IAAW,MAAME,EAAA,GACjBJ,IAAY;AAAA,IACd,QAAQ;AACN,MAAAC,IAAU,IACVD,IAAY;AAAA,IACd;AAAA,EACF,GACgB;AAChB,SAAO,MAAM;AACX,QAAIA;AAEF,YAAMG;QACGF;AACT,YAAM,IAAI,MAAM,4CAA4CN,CAAE,EAAE;AAEhE,WAAOO;AAAA,EAEX;AACF,GAQaG,IAAU,CACrBC,MAEG;AAEH,QAAM,EAAE,MAAMC,EAAA,IAAiBC,EAAA;AAE/B,MAAI,CAACF,EAAY;AACjB,QAAMG,IAAQ,MAAM,QAAQH,CAAU,IAAIA,IAAa,CAACA,CAAU;AAClE,aAAWX,KAAMc,GAAO;AACtB,UAAMC,IAAM,GAAGH,EAAa,gBAAgB,IAAIZ,CAAE;AAElD,IAAIE,EAAc,IAAIa,CAAG,MAAM,QAE7Bb,EAAc,IAAIa,GAAKX,EAAa,EAAE,KAAKQ,EAAa,kBAAkB,IAAAZ,EAAA,CAAQ,CAAC;AAGrF,UAAMgB,IAAiBd,EAAc,IAAIa,CAAG;AAC5C,QAAIC,GAAgB;AAClB,YAAMT,IAAWS,EAAA;AACjB,MAAAJ,EAAa;AAAA,QACXA,EAAa,oBAAoB;AAAA,QACjCZ;AAAA,QACAO;AAAA,QACA;AAAA,QACA;AAAA,MAAA;AAAA,IAEJ;AAAA,EACF;AACF,GAOaU,IAAyB,CACpCjB,GACAO,MACG;AACH,QAAM,EAAE,MAAMK,EAAA,IAAiBC,EAAA;AAC/B,MAAIN;AACF,eAAWW,KAAQX;AACjB,MAAAK,EAAa,kBAAkBM,GAAMlB,GAAIO,EAASW,CAAI,GAAG,IAAM,EAAI;AAGzE;"}
@@ -1,12 +1,12 @@
1
- const e = `Pick what frequency you'd like to run payroll. If you need help, you can read more about <ScheduleLink href="https://gusto.com/resources/articles/payroll/best-payroll-schedule-small-business" target="_blank">how to choose a pay schedule.</ScheduleLink>`, t = 'Why do we need to ask for this? We need to know when to pay your employees. Some states have <PaymentLawLink href="https://www.dol.gov/agencies/whd/state/payday" target="_blank">laws around when you must pay your employees.</PaymentLawLink> Please choose pay schedules that are legal for your employees.', a = "+ Add another pay schedule", o = "Save & continue", n = "Continue", s = "Please make sure to verify this information is accurate. If this information isn't correct, it can delay when your team will be paid.", i = { name: "Name", actions: "Actions", active: "Active", inactive: "Inactive", edit: "Edit" }, r = "Pay schedules", y = { addPaySchedule: "Add pay schedule", editPaySchedule: "Edit pay schedule", pageTitle: "Set up pay schedule" }, c = { name: "Name", payfrequency: "Pay frequency", frequency: "Frequency", frequencyPlaceholder: "Select frequency...", deadline: "Deadline to run payroll", frequencyOptions: "Frequency Options", firstPayDate: "First pay date", firstPayPeriodEndDate: "First pay period end date", firstPayDayOfTheMonth: "First pay day of the month", lastPayDayOfTheMonth: "Last pay day of the month", preview: "Preview", legend: "Legend" }, d = "Loading...", l = { frequencyOptionsDescription: "Select the pay days for the month.", anchorPayDateDescription_one: "Please account for the {{count}} day it will take to process payroll.", anchorPayDateDescription_other: "Please account for the {{count}} days it will take to process payroll.", anchorEndOfPayPeriodDescription: "The last date of the first pay period to help calculate future pay periods. This can be the same date as the first pay date." }, h = { payPeriod: "Pay period", payday: "Payday", payrollDeadline: "Run payroll by 4:00PM (PDT) on " }, u = { cancel: "Cancel", save: "Save" }, p = { everyWeek: "Every week", everyOtherWeek: "Every other week", twicePerMonth: "Twice per month", monthly: "Monthly" }, f = { "15thAndLast": "15th and Last day of the month", custom: "Custom" }, P = { name: "Pay schedule name is required", frequency: "Pay frequency is required", firstPayDate: "First pay date is required", firstPayPeriodEndDate: "First pay period end date is required", firstPayDayOfTheMonth: "First pay day of the month is required", lastPayDayOfTheMonth: "Last pay day of the month is required", dayRange: "Must be between 1 and 31" }, m = { title: "Pay Schedule Preview", description: "Complete all the required fields to see a preview of your pay schedule." }, w = {
1
+ const e = `Pick what frequency you'd like to run payroll. If you need help, you can read more about <ScheduleLink href="https://gusto.com/resources/articles/payroll/best-payroll-schedule-small-business" target="_blank">how to choose a pay schedule.</ScheduleLink>`, t = 'Why do we need to ask for this? We need to know when to pay your employees. Some states have <PaymentLawLink href="https://www.dol.gov/agencies/whd/state/payday" target="_blank">laws around when you must pay your employees.</PaymentLawLink> Please choose pay schedules that are legal for your employees.', a = "+ Add another pay schedule", o = "Save & continue", n = "Continue", s = "Please make sure to verify this information is accurate. If this information isn't correct, it can delay when your team will be paid.", r = { name: "Name", actions: "Actions", active: "Active", inactive: "Inactive", edit: "Edit" }, i = "Pay schedules", y = { addPaySchedule: "Add pay schedule", editPaySchedule: "Edit pay schedule", pageTitle: "Set up pay schedule" }, c = { name: "Name", payfrequency: "Pay frequency", frequency: "Frequency", frequencyPlaceholder: "Select frequency...", deadline: "Deadline to run payroll", frequencyOptions: "Frequency Options", firstPayDate: "First pay date", firstPayPeriodEndDate: "First pay period end date", firstPayDayOfTheMonth: "First pay day of the month", lastPayDayOfTheMonth: "Last pay day of the month", preview: "Preview", legend: "Legend" }, d = "Loading...", l = { frequencyOptionsDescription: "Select the pay days for the month.", anchorPayDateDescription_one: "Please account for the {{count}} day it will take to process payroll.", anchorPayDateDescription_other: "Please account for the {{count}} days it will take to process payroll.", anchorEndOfPayPeriodDescription: "The last date of the first pay period to help calculate future pay periods. This can be the same date as the first pay date." }, h = { payPeriod: "Pay period", payday: "Payday", payrollDeadline: "Run payroll by 4:00PM (PDT) on " }, u = { cancel: "Cancel", save: "Save" }, p = { everyWeek: "Every week", everyOtherWeek: "Every other week", twicePerMonth: "Twice per month", monthly: "Monthly" }, f = { "15thAndLast": "15th and Last day of the month", custom: "Custom" }, P = { name: "Pay schedule name is required", frequency: "Pay frequency is required", frequencyOptions: "Please select the pay days for the month", firstPayDate: "First pay date is required", firstPayPeriodEndDate: "First pay period end date is required", firstPayDayOfTheMonth: "First pay day of the month is required", lastPayDayOfTheMonth: "Last pay day of the month is required", dayRange: "Must be between 1 and 31" }, m = { title: "Pay Schedule Preview", description: "Complete all the required fields to see a preview of your pay schedule." }, w = {
2
2
  listDescription: e,
3
3
  listDescription2: t,
4
4
  addAnotherPayScheduleCta: a,
5
5
  saveAndContinueCta: o,
6
6
  continueCta: n,
7
7
  pleaseVerify: s,
8
- payScheduleList: i,
9
- payScheduleListLabel: r,
8
+ payScheduleList: r,
9
+ payScheduleListLabel: i,
10
10
  headings: y,
11
11
  labels: c,
12
12
  loading: d,
@@ -32,8 +32,8 @@ export {
32
32
  t as listDescription2,
33
33
  d as loading,
34
34
  h as payPreview,
35
- i as payScheduleList,
36
- r as payScheduleListLabel,
35
+ r as payScheduleList,
36
+ i as payScheduleListLabel,
37
37
  s as pleaseVerify,
38
38
  m as previewAlert,
39
39
  o as saveAndContinueCta,
@@ -1,4 +1,4 @@
1
- const e = { selfOnboardingWarningLabel: "Self-onboarding employees can change your company tax requirements", selfOnboardingWarningDescription: "If your employees are self-onboarding and enter details that change your company's state tax requirements (such as a home address in a new state), you may need to complete state tax setup again.", continueCta: "Continue", editStateTaxCta: "Edit tax settings", continueStateTaxSetupCta: "Continue setup", manageRatesCta: "Manage tax rates", hamburgerTitle: "Actions for {{state}}", requirementsListCol1: "State", requirementsListCol2: "Status", completeBadge: "Complete", incompleteBadge: "Missing information", notStartedBadge: "Not started", inProgressBadge: "In progress", startStateTaxSetupCta: "Start setup", defaultRatesAppliedText: "Default tax rates applied", readyToRunPayrollBadge: "Ready to run payroll", requirementsListLabel: "State tax requirements", emptyTableTitle: "No state tax requirements", emptyTableDescription: "Add company location or an employee to get started." }, t = { saveCta: "Save", cancelCta: "Cancel", title: "{{state}} tax requirements", effectiveFromLabel: "Effective: {{date}}", validations: { minValue: "Minimum value is {{min}}%", maxValue: "Maximum value is {{max}}%", oneOf: "Value must be one of: {{values}}", required: "This field is required" } }, a = { title: "Tax rates for {{state}}", subtitle: "Effective-dated tax rate history and scheduled future rates.", backCta: "Back to states", addRateCta: "Add tax rate", effectiveDateLabel: "Effective date", effectiveDatePlaceholder: "Select an effective date", effectiveDateColumnLabel: "Effective date", currentBadge: "Current", scheduledBadge: "Scheduled", historicalBadge: "Historical", emptyHistoryTitle: "No effective-dated rates yet", emptyHistoryDescription: "Add a tax rate to schedule a future-dated configuration.", addRateDialogTitle: "Add tax rate for {{state}}", addRateDialogDescription: "Schedule a new tax configuration to take effect on a future date.", saveRateCta: "Save tax rate", cancelCta: "Cancel", noEditableFieldsTitle: "No editable fields", noEditableFieldsDescription: "This state does not expose editable effective-dated tax requirements.", rateScheduledSuccess: "Tax rate scheduled to take effect on {{date}}." }, i = {
1
+ const e = { selfOnboardingWarningLabel: "Self-onboarding employees can change your company tax requirements", selfOnboardingWarningDescription: "If your employees are self-onboarding and enter details that change your company's state tax requirements (such as a home address in a new state), you may need to complete state tax setup again.", continueCta: "Continue", editStateTaxCta: "Edit tax settings", continueStateTaxSetupCta: "Continue setup", manageRatesCta: "Manage tax rates", hamburgerTitle: "Actions for {{state}}", requirementsListCol1: "State", requirementsListCol2: "Status", completeBadge: "Complete", incompleteBadge: "Missing information", notStartedBadge: "Not started", inProgressBadge: "In progress", startStateTaxSetupCta: "Start setup", defaultRatesAppliedText: "Default tax rates applied", readyToRunPayrollBadge: "Ready to run payroll", requirementsListLabel: "State tax requirements", emptyTableTitle: "No state tax requirements", emptyTableDescription: "Add company location or an employee to get started." }, t = { saveCta: "Save", cancelCta: "Cancel", title: "{{state}} tax requirements", effectiveFromLabel: "Effective: {{date}}", validations: { minValue: "Minimum value is {{min}}%", maxValue: "Maximum value is {{max}}%", oneOf: "Value must be one of: {{values}}", required: "This field is required" } }, a = { title: "Tax rates for {{state}}", subtitle: "Effective-dated tax rate history and scheduled future rates.", backCta: "Back to states", addRateCta: "Add tax rate", effectiveDateLabel: "Effective date", effectiveDatePlaceholder: "Select an effective date", effectiveDateColumnLabel: "Effective date", statusColumnLabel: "Status", currentBadge: "Current", scheduledBadge: "Scheduled", historicalBadge: "Historical", emptyHistoryTitle: "No effective-dated rates yet", emptyHistoryDescription: "Add a tax rate to schedule a future-dated configuration.", addRateDialogTitle: "Add tax rate for {{state}}", addRateDialogDescription: "Schedule a new tax configuration to take effect on a future date.", saveRateCta: "Save tax rate", cancelCta: "Cancel", noEditableFieldsTitle: "No editable fields", noEditableFieldsDescription: "This state does not expose editable effective-dated tax requirements.", rateScheduledSuccess: "Tax rate scheduled to take effect on {{date}}." }, i = {
2
2
  list: e,
3
3
  form: t,
4
4
  manageRates: a
@@ -1,32 +1,34 @@
1
- const e = "Name", l = "Job title", t = "Department", a = "of {{numAll}} employees selected", c = "Select all employees", o = "Select all", s = "Clear selected employees", n = "Clear", r = "Search by name or department", m = "Search by name or department", p = "Employees", y = "No employees found", b = "Clear search", d = {
1
+ const e = "Name", l = "Unknown employee", o = "Job title", t = "Department", a = "of {{numAll}} employees selected", c = "Select all employees", n = "Select all", s = "Clear selected employees", r = "Clear", m = "Search by name or department", p = "Search by name or department", y = "Employees", b = "No employees found", d = "Clear search", h = {
2
2
  name: e,
3
- jobTitle: l,
3
+ unknownEmployeeFallback: l,
4
+ jobTitle: o,
4
5
  department: t,
5
6
  selected: a,
6
7
  selectAllEmployees: c,
7
- selectAll: o,
8
+ selectAll: n,
8
9
  clearAriaLabel: s,
9
- clear: n,
10
- searchPlaceholder: r,
11
- searchLabel: m,
12
- tableLabel: p,
13
- noSearchResults: y,
14
- clearSearch: b
10
+ clear: r,
11
+ searchPlaceholder: m,
12
+ searchLabel: p,
13
+ tableLabel: y,
14
+ noSearchResults: b,
15
+ clearSearch: d
15
16
  };
16
17
  export {
17
- n as clear,
18
+ r as clear,
18
19
  s as clearAriaLabel,
19
- b as clearSearch,
20
- d as default,
20
+ d as clearSearch,
21
+ h as default,
21
22
  t as department,
22
- l as jobTitle,
23
+ o as jobTitle,
23
24
  e as name,
24
- y as noSearchResults,
25
- m as searchLabel,
26
- r as searchPlaceholder,
27
- o as selectAll,
25
+ b as noSearchResults,
26
+ p as searchLabel,
27
+ m as searchPlaceholder,
28
+ n as selectAll,
28
29
  c as selectAllEmployees,
29
30
  a as selected,
30
- p as tableLabel
31
+ y as tableLabel,
32
+ l as unknownEmployeeFallback
31
33
  };
32
34
  //# sourceMappingURL=Company.TimeOff.EmployeeTable.json.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Company.TimeOff.EmployeeTable.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"Company.TimeOff.EmployeeTable.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;"}
@@ -1,60 +1,62 @@
1
- const t = "Contractors", e = "Add contractor", a = "Contractor status tabs", o = { active: "Active", onboarding: "Onboarding", dismissed: "Dismissed" }, n = "Contractor name", s = "Rate", c = "Onboarding status", r = "Dismissal date", i = "Hourly — {{rate}}/hr", l = "Starts {{date}}", d = "Last day {{date}}", m = "Edit", C = "Review", b = "Continue", h = "View details", g = "Remove", p = "Dismiss contractor", u = "Rehire contractor", v = "Cancel self-onboarding", w = "Cancel dismissal", D = "Cancel rehire", L = "Contractor actions menu", y = "List of contractors", f = { active: { title: "There are no active contractors", description: "Contractors who have completed onboarding will appear here" }, onboarding: { title: "There are no contractors onboarding", description: "Contractors currently being onboarded will appear here" }, dismissed: { title: "There are no dismissed contractors", description: "Dismissed contractors will appear here" } }, R = { title: "Remove contractor?", description: "This will permanently delete this contractor from your account. This action cannot be undone.", confirmCta: "Remove contractor", cancelCta: "Cancel" }, T = { title: "Cancel dismissal?", description: "This contractor's scheduled dismissal will be removed and they will remain active.", confirmCta: "Yes, cancel dismissal", cancelCta: "No, go back" }, S = { title: "Cancel rehire?", description: "This contractor's scheduled rehire will be removed.", confirmCta: "Yes, cancel rehire", cancelCta: "No, go back" }, O = {
1
+ const t = "Contractors", e = "Add contractor", a = "Contractor status tabs", o = { active: "Active", onboarding: "Onboarding", dismissed: "Dismissed" }, s = "Contractor name", n = "Rate", c = "Onboarding status", r = "Status", i = "Dismissal date", l = "Hourly — {{rate}}/hr", d = "Starts {{date}}", m = "Last day {{date}}", C = "Edit", b = "Review", h = "Continue", g = "View details", u = "Remove", p = "Dismiss contractor", v = "Rehire contractor", w = "Cancel self-onboarding", D = "Cancel dismissal", L = "Cancel rehire", y = "Contractor actions menu", f = "List of contractors", R = { active: { title: "There are no active contractors", description: "Contractors who have completed onboarding will appear here" }, onboarding: { title: "There are no contractors onboarding", description: "Contractors currently being onboarded will appear here" }, dismissed: { title: "There are no dismissed contractors", description: "Dismissed contractors will appear here" } }, T = { title: "Remove contractor?", description: "This will permanently delete this contractor from your account. This action cannot be undone.", confirmCta: "Remove contractor", cancelCta: "Cancel" }, S = { title: "Cancel dismissal?", description: "This contractor's scheduled dismissal will be removed and they will remain active.", confirmCta: "Yes, cancel dismissal", cancelCta: "No, go back" }, O = { title: "Cancel rehire?", description: "This contractor's scheduled rehire will be removed.", confirmCta: "Yes, cancel rehire", cancelCta: "No, go back" }, k = {
2
2
  title: t,
3
3
  addContractorCta: e,
4
4
  tabsLabel: a,
5
5
  tabs: o,
6
- nameLabel: n,
7
- rateLabel: s,
6
+ nameLabel: s,
7
+ rateLabel: n,
8
8
  onboardingStatusLabel: c,
9
- dismissalDateLabel: r,
10
- rateHourly: i,
11
- startsBadge: l,
12
- lastDayBadge: d,
13
- editCta: m,
14
- reviewCta: C,
15
- continueCta: b,
16
- viewDetailsCta: h,
17
- removeCta: g,
9
+ statusColumnLabel: r,
10
+ dismissalDateLabel: i,
11
+ rateHourly: l,
12
+ startsBadge: d,
13
+ lastDayBadge: m,
14
+ editCta: C,
15
+ reviewCta: b,
16
+ continueCta: h,
17
+ viewDetailsCta: g,
18
+ removeCta: u,
18
19
  dismissCta: p,
19
- rehireCta: u,
20
- cancelSelfOnboardingCta: v,
21
- cancelDismissalCta: w,
22
- cancelRehireCta: D,
23
- hamburgerTitle: L,
24
- contractorListLabel: y,
25
- emptyState: f,
26
- removeDialog: R,
27
- cancelDismissalDialog: T,
28
- cancelRehireDialog: S
20
+ rehireCta: v,
21
+ cancelSelfOnboardingCta: w,
22
+ cancelDismissalCta: D,
23
+ cancelRehireCta: L,
24
+ hamburgerTitle: y,
25
+ contractorListLabel: f,
26
+ emptyState: R,
27
+ removeDialog: T,
28
+ cancelDismissalDialog: S,
29
+ cancelRehireDialog: O
29
30
  };
30
31
  export {
31
32
  e as addContractorCta,
32
- w as cancelDismissalCta,
33
- T as cancelDismissalDialog,
34
- D as cancelRehireCta,
35
- S as cancelRehireDialog,
36
- v as cancelSelfOnboardingCta,
37
- b as continueCta,
38
- y as contractorListLabel,
39
- O as default,
33
+ D as cancelDismissalCta,
34
+ S as cancelDismissalDialog,
35
+ L as cancelRehireCta,
36
+ O as cancelRehireDialog,
37
+ w as cancelSelfOnboardingCta,
38
+ h as continueCta,
39
+ f as contractorListLabel,
40
+ k as default,
40
41
  p as dismissCta,
41
- r as dismissalDateLabel,
42
- m as editCta,
43
- f as emptyState,
44
- L as hamburgerTitle,
45
- d as lastDayBadge,
46
- n as nameLabel,
42
+ i as dismissalDateLabel,
43
+ C as editCta,
44
+ R as emptyState,
45
+ y as hamburgerTitle,
46
+ m as lastDayBadge,
47
+ s as nameLabel,
47
48
  c as onboardingStatusLabel,
48
- i as rateHourly,
49
- s as rateLabel,
50
- u as rehireCta,
51
- g as removeCta,
52
- R as removeDialog,
53
- C as reviewCta,
54
- l as startsBadge,
49
+ l as rateHourly,
50
+ n as rateLabel,
51
+ v as rehireCta,
52
+ u as removeCta,
53
+ T as removeDialog,
54
+ b as reviewCta,
55
+ d as startsBadge,
56
+ r as statusColumnLabel,
55
57
  o as tabs,
56
58
  a as tabsLabel,
57
59
  t as title,
58
- h as viewDetailsCta
60
+ g as viewDetailsCta
59
61
  };
60
62
  //# sourceMappingURL=Contractor.ManagementContractorList.json.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Contractor.ManagementContractorList.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"Contractor.ManagementContractorList.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,36 @@
1
+ const t = { heading: "Record a historical payment", subtitle: "Log a contractor payment that already happened outside Gusto. Pick a paid date and the contractors you paid.", dateLabel: "Payment date", dateInFutureError: "You cannot issue historical payments for the future. Please choose a date in the past.", dateTooEarlyError: "You cannot create a payment in {{year}}. Please select a {{allowedYear}} date.", continueButton: "Continue" }, e = { heading: "Enter payment amounts", subtitle: "Enter the hours or wage paid to each contractor along with any bonuses and reimbursements.", continueButton: "Continue" }, a = "Hours and payments", o = { contractor: "Contractor", wageType: "Wage", paymentMethod: "Payment method", hours: "Hours", wage: "Fixed amount", bonus: "Bonus", reimbursement: "Reimbursement", total: "Total" }, n = "No contractors selected", r = "Select at least one contractor to record a payment.", s = "N/A", c = "Totals", i = "Edit contractor payment", l = "/hr", m = { fixed: "Fixed", hourly: "Hourly" }, u = { directDeposit: "Direct Deposit", check: "Check", historicalPayment: "Historical Payment" }, d = { contractorPaymentUpdated: "Pay updated for {{contractorName}}" }, y = { title: "Edit contractor pay", subtitle: `Edit contractor's hours, additional earnings, and reimbursements. Inputs not applicable to this contractor are disabled. Please click "Done" to apply the change.`, hoursLabel: "Hours", hoursAdornment: "hrs", hoursPayDescription: "{{rate}}/hr × hours = {{total}}", wageLabel: "Fixed amount", bonusLabel: "Bonus", reimbursementLabel: "Reimbursement", paymentMethodLabel: "Payment Method", cancelCta: "Cancel", saveCta: "Done", paymentMethods: { check: "Check", directDeposit: "Direct deposit", historicalPayment: "Historical payment" }, errors: { directDepositNotAvailable: "Direct Deposit is not available for contractors set up for Check payments", unsupportedPaymentMethod: "This payment method is not supported. Please select Check or Direct Deposit." } }, p = { title: "Review and submit", subtitle: "Historical payment for {{checkDate}}", editButton: "Edit", submitButton: "Submit historical payment", successTitle: "Historical payment recorded successfully", successMessage: "This payment has been recorded. View it from the payments list to see its full details.", paymentSummaryTitle: "Payment Summary", totalAmount: "Total Amount", contractorPayDate: "Contractor Pay Date", contractorPaymentsTitle: "Contractor Payments", contractor: "Contractor", wageType: "Wage Type", paymentMethod: "Payment Method", paymentMethods: { directDeposit: "Direct Deposit", check: "Check", historicalPayment: "Historical Payment" }, hours: "Hours", wage: "Wage", bonus: "Bonus", reimbursement: "Reimbursement", total: "Total", totalsLabel: "Totals", notAvailable: "N/A" }, h = {
2
+ select: t,
3
+ amounts: e,
4
+ hoursAndPaymentsLabel: a,
5
+ contractorTableHeaders: o,
6
+ emptyTableTitle: n,
7
+ emptyTableDescription: r,
8
+ na: s,
9
+ totalsLabel: c,
10
+ editContractor: i,
11
+ perHour: l,
12
+ wageTypes: m,
13
+ paymentMethods: u,
14
+ alerts: d,
15
+ editContractorPayment: y,
16
+ review: p
17
+ };
18
+ export {
19
+ d as alerts,
20
+ e as amounts,
21
+ o as contractorTableHeaders,
22
+ h as default,
23
+ i as editContractor,
24
+ y as editContractorPayment,
25
+ r as emptyTableDescription,
26
+ n as emptyTableTitle,
27
+ a as hoursAndPaymentsLabel,
28
+ s as na,
29
+ u as paymentMethods,
30
+ l as perHour,
31
+ p as review,
32
+ t as select,
33
+ c as totalsLabel,
34
+ m as wageTypes
35
+ };
36
+ //# sourceMappingURL=Contractor.Payments.CreateHistoricalPayment.json.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Contractor.Payments.CreateHistoricalPayment.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;"}