@gusto/embedded-react-sdk 0.34.0 → 0.35.0-rc.2

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 (121) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/dist/components/Base/Base.d.ts +6 -2
  3. package/dist/components/Base/Base.js +105 -59
  4. package/dist/components/Base/Base.js.map +1 -1
  5. package/dist/components/Base/useBase.d.ts +1 -0
  6. package/dist/components/Base/useBase.js.map +1 -1
  7. package/dist/components/Base/useBaseSubmit.d.ts +1 -1
  8. package/dist/components/Base/useBaseSubmit.js +60 -33
  9. package/dist/components/Base/useBaseSubmit.js.map +1 -1
  10. package/dist/components/Common/HamburgerMenu/HamburgerMenu.d.ts +1 -1
  11. package/dist/components/Common/HamburgerMenu/HamburgerMenu.js +15 -13
  12. package/dist/components/Common/HamburgerMenu/HamburgerMenu.js.map +1 -1
  13. package/dist/components/Common/HamburgerMenu/HamburgerMenuTypes.d.ts +1 -0
  14. package/dist/components/Common/UI/Breadcrumbs/Breadcrumbs.js +1 -1
  15. package/dist/components/Common/UI/FileInput/FileInput.js +1 -1
  16. package/dist/components/Common/UI/Menu/Menu.js +26 -25
  17. package/dist/components/Common/UI/Menu/Menu.js.map +1 -1
  18. package/dist/components/Common/UI/Menu/Menu.module.scss.js +7 -7
  19. package/dist/components/Common/UI/Menu/MenuTypes.d.ts +5 -0
  20. package/dist/components/Common/UI/Menu/MenuTypes.js +4 -3
  21. package/dist/components/Common/UI/Menu/MenuTypes.js.map +1 -1
  22. package/dist/components/Common/UI/ProgressBar/ProgressBar.js +4 -4
  23. package/dist/components/Common/UI/Table/Table.module.scss.js +1 -1
  24. package/dist/components/Contractor/Payments/CreatePayment/CreatePayment.js +119 -113
  25. package/dist/components/Contractor/Payments/CreatePayment/CreatePayment.js.map +1 -1
  26. package/dist/components/Contractor/Profile/ContractorProfileForm.js +15 -15
  27. package/dist/components/Employee/Compensation/Edit.js +70 -70
  28. package/dist/components/Employee/Compensation/Edit.js.map +1 -1
  29. package/dist/components/Employee/DocumentSigner/SignatureForm/Form.js +5 -5
  30. package/dist/components/Employee/DocumentSigner/SignatureForm/Form.js.map +1 -1
  31. package/dist/components/Employee/DocumentSigner/SignatureForm/Preview.js +8 -8
  32. package/dist/components/Employee/DocumentSigner/SignatureForm/Preview.js.map +1 -1
  33. package/dist/components/Employee/StateTaxes/StateTaxes.js +69 -61
  34. package/dist/components/Employee/StateTaxes/StateTaxes.js.map +1 -1
  35. package/dist/components/Payroll/GrossUpModal/GrossUpModal.d.ts +2 -0
  36. package/dist/components/Payroll/GrossUpModal/GrossUpModal.js +101 -0
  37. package/dist/components/Payroll/GrossUpModal/GrossUpModal.js.map +1 -0
  38. package/dist/components/Payroll/GrossUpModal/GrossUpModal.module.scss.js +16 -0
  39. package/dist/components/Payroll/GrossUpModal/GrossUpModal.module.scss.js.map +1 -0
  40. package/dist/components/Payroll/GrossUpModal/GrossUpModalTypes.d.ts +7 -0
  41. package/dist/components/Payroll/GrossUpModal/index.d.ts +3 -0
  42. package/dist/components/Payroll/OffCycleCreation/OffCycleCreation.js +86 -67
  43. package/dist/components/Payroll/OffCycleCreation/OffCycleCreation.js.map +1 -1
  44. package/dist/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.d.ts +1 -1
  45. package/dist/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.js +83 -49
  46. package/dist/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.js.map +1 -1
  47. package/dist/components/Payroll/OffCycleCreation/OffCycleCreationTypes.d.ts +6 -0
  48. package/dist/components/Payroll/OffCycleTaxWithholdingModal/OffCycleTaxWithholdingModal.js +102 -0
  49. package/dist/components/Payroll/OffCycleTaxWithholdingModal/OffCycleTaxWithholdingModal.js.map +1 -0
  50. package/dist/components/Payroll/OffCycleTaxWithholdingModal/OffCycleTaxWithholdingModal.module.scss.js +14 -0
  51. package/dist/components/Payroll/OffCycleTaxWithholdingModal/OffCycleTaxWithholdingModal.module.scss.js.map +1 -0
  52. package/dist/components/Payroll/OffCycleTaxWithholdingTable/OffCycleTaxWithholdingTable.js +52 -0
  53. package/dist/components/Payroll/OffCycleTaxWithholdingTable/OffCycleTaxWithholdingTable.js.map +1 -0
  54. package/dist/components/Payroll/OffCycleTaxWithholdingTable/OffCycleTaxWithholdingTable.module.scss.js +16 -0
  55. package/dist/components/Payroll/OffCycleTaxWithholdingTable/OffCycleTaxWithholdingTable.module.scss.js.map +1 -0
  56. package/dist/components/Payroll/OffCycleTaxWithholdingTable/OffCycleTaxWithholdingTableTypes.d.ts +12 -2
  57. package/dist/components/Payroll/OffCycleTaxWithholdingTable/OffCycleTaxWithholdingTableTypes.js +15 -0
  58. package/dist/components/Payroll/OffCycleTaxWithholdingTable/OffCycleTaxWithholdingTableTypes.js.map +1 -0
  59. package/dist/components/Payroll/OffCycleTaxWithholdingTable/index.d.ts +2 -1
  60. package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js +212 -120
  61. package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js.map +1 -1
  62. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.d.ts +3 -1
  63. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js +76 -64
  64. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js.map +1 -1
  65. package/dist/components/Payroll/PayrollConfiguration/grossUpHelpers.d.ts +2 -0
  66. package/dist/components/Payroll/PayrollConfiguration/grossUpHelpers.js +11 -0
  67. package/dist/components/Payroll/PayrollConfiguration/grossUpHelpers.js.map +1 -0
  68. package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.js +67 -57
  69. package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.js.map +1 -1
  70. package/dist/components/Payroll/usePreparedPayrollData.js +44 -43
  71. package/dist/components/Payroll/usePreparedPayrollData.js.map +1 -1
  72. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.d.ts +2 -0
  73. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js +58 -38
  74. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js.map +1 -1
  75. package/dist/contexts/ObservabilityProvider/ObservabilityContext.d.ts +5 -0
  76. package/dist/contexts/ObservabilityProvider/ObservabilityContext.js +6 -0
  77. package/dist/contexts/ObservabilityProvider/ObservabilityContext.js.map +1 -0
  78. package/dist/contexts/ObservabilityProvider/ObservabilityProvider.d.ts +7 -0
  79. package/dist/contexts/ObservabilityProvider/ObservabilityProvider.js +11 -0
  80. package/dist/contexts/ObservabilityProvider/ObservabilityProvider.js.map +1 -0
  81. package/dist/contexts/ObservabilityProvider/index.d.ts +5 -0
  82. package/dist/contexts/ObservabilityProvider/observabilityUtils.d.ts +5 -0
  83. package/dist/contexts/ObservabilityProvider/observabilityUtils.js +45 -0
  84. package/dist/contexts/ObservabilityProvider/observabilityUtils.js.map +1 -0
  85. package/dist/contexts/ObservabilityProvider/sanitization.d.ts +19 -0
  86. package/dist/contexts/ObservabilityProvider/sanitization.js +95 -0
  87. package/dist/contexts/ObservabilityProvider/sanitization.js.map +1 -0
  88. package/dist/contexts/ObservabilityProvider/sanitization.test.d.ts +1 -0
  89. package/dist/contexts/ObservabilityProvider/useObservability.d.ts +2 -0
  90. package/dist/contexts/ObservabilityProvider/useObservability.js +11 -0
  91. package/dist/contexts/ObservabilityProvider/useObservability.js.map +1 -0
  92. package/dist/contexts/ObservabilityProvider/useSanitizedObservability.d.ts +8 -0
  93. package/dist/contexts/ObservabilityProvider/useSanitizedObservability.js +28 -0
  94. package/dist/contexts/ObservabilityProvider/useSanitizedObservability.js.map +1 -0
  95. package/dist/contexts/index.d.ts +2 -0
  96. package/dist/helpers/rem.d.ts +7 -3
  97. package/dist/helpers/rem.js +14 -10
  98. package/dist/helpers/rem.js.map +1 -1
  99. package/dist/helpers/rem.test.d.ts +1 -0
  100. package/dist/helpers/retryAsync.d.ts +7 -0
  101. package/dist/helpers/retryAsync.js +18 -0
  102. package/dist/helpers/retryAsync.js.map +1 -0
  103. package/dist/i18n/I18n.js +15 -15
  104. package/dist/i18n/I18n.js.map +1 -1
  105. package/dist/i18n/en/Company.PaySchedule.json.js +1 -1
  106. package/dist/i18n/en/Payroll.GrossUpModal.json.js +24 -0
  107. package/dist/i18n/en/Payroll.GrossUpModal.json.js.map +1 -0
  108. package/dist/i18n/en/Payroll.OffCycleTaxWithholding.json.js +13 -11
  109. package/dist/i18n/en/Payroll.OffCycleTaxWithholding.json.js.map +1 -1
  110. package/dist/i18n/en/Payroll.PayrollConfiguration.json.js +1 -1
  111. package/dist/index.d.ts +2 -0
  112. package/dist/index.js +19 -13
  113. package/dist/index.js.map +1 -1
  114. package/dist/shared/constants.d.ts +5 -0
  115. package/dist/shared/constants.js +11 -8
  116. package/dist/shared/constants.js.map +1 -1
  117. package/dist/style.css +1 -1
  118. package/dist/types/i18next.d.ts +26 -1
  119. package/dist/types/observability.d.ts +145 -0
  120. package/docs/reference/endpoint-inventory.json +10 -1
  121. package/package.json +21 -21
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSanitizedObservability.js","sources":["../../../src/contexts/ObservabilityProvider/useSanitizedObservability.ts"],"sourcesContent":["import { useCallback } from 'react'\nimport { sanitizeError, sanitizeMetric } from './sanitization'\nimport type {\n ObservabilityError,\n ObservabilityMetric,\n ObservabilityHook,\n} from '@/types/observability'\n\n/**\n * Wraps an ObservabilityHook to apply sanitization before calling the callbacks\n */\nexport function useSanitizedObservability(observability?: ObservabilityHook) {\n const sanitizationConfig = observability?.sanitization\n\n const onError = useCallback(\n (error: ObservabilityError) => {\n if (!observability?.onError) return\n\n const sanitized = sanitizeError(error, sanitizationConfig)\n observability.onError(sanitized)\n },\n [observability, sanitizationConfig],\n )\n\n const onMetric = useCallback(\n (metric: ObservabilityMetric) => {\n if (!observability?.onMetric) return\n\n const sanitized = sanitizeMetric(metric, sanitizationConfig)\n observability.onMetric(sanitized)\n },\n [observability, sanitizationConfig],\n )\n\n if (!observability) {\n return undefined\n }\n\n return {\n onError: observability.onError ? onError : undefined,\n onMetric: observability.onMetric ? onMetric : undefined,\n }\n}\n"],"names":["useSanitizedObservability","observability","sanitizationConfig","onError","useCallback","error","sanitized","sanitizeError","onMetric","metric","sanitizeMetric"],"mappings":";;AAWO,SAASA,EAA0BC,GAAmC;AAC3E,QAAMC,IAAqBD,GAAe,cAEpCE,IAAUC;AAAA,IACd,CAACC,MAA8B;AAC7B,UAAI,CAACJ,GAAe,QAAS;AAE7B,YAAMK,IAAYC,EAAcF,GAAOH,CAAkB;AACzD,MAAAD,EAAc,QAAQK,CAAS;AAAA,IACjC;AAAA,IACA,CAACL,GAAeC,CAAkB;AAAA,EAAA,GAG9BM,IAAWJ;AAAA,IACf,CAACK,MAAgC;AAC/B,UAAI,CAACR,GAAe,SAAU;AAE9B,YAAMK,IAAYI,EAAeD,GAAQP,CAAkB;AAC3D,MAAAD,EAAc,SAASK,CAAS;AAAA,IAClC;AAAA,IACA,CAACL,GAAeC,CAAkB;AAAA,EAAA;AAGpC,MAAKD;AAIL,WAAO;AAAA,MACL,SAASA,EAAc,UAAUE,IAAU;AAAA,MAC3C,UAAUF,EAAc,WAAWO,IAAW;AAAA,IAAA;AAElD;"}
@@ -7,3 +7,5 @@ export { ApiProvider } from './ApiProvider/ApiProvider';
7
7
  export type { ApiProviderProps } from './ApiProvider/ApiProvider';
8
8
  export type { ComponentsContextType } from './ComponentAdapter/useComponentContext';
9
9
  export * from './ComponentAdapter/componentAdapterTypes';
10
+ export { ObservabilityProvider, useObservability } from './ObservabilityProvider';
11
+ export type { ObservabilityProviderProps } from './ObservabilityProvider';
@@ -1,7 +1,11 @@
1
1
  /**
2
- * Detects font-size on the document root element with fallback to 16px wich is the default browser setting
3
- * @returns number
2
+ * Detects font-size on the document root element with fallback to 16px which is the default browser setting.
3
+ * The value is cached after the first call to avoid repeated expensive getComputedStyle() calls.
4
+ * @param options.forceRefresh - Force a fresh detection instead of using the cached value
5
+ * @returns The root font size in pixels as a string
4
6
  */
5
- export declare function getRootFontSize(): string;
7
+ export declare function getRootFontSize(options?: {
8
+ forceRefresh?: boolean;
9
+ }): string;
6
10
  export declare function toRem(pxValue: number): string;
7
11
  export declare const remToPx: (rem: string | number) => number;
@@ -1,16 +1,20 @@
1
- function t() {
1
+ let t = null;
2
+ function o(e) {
3
+ if (t)
4
+ return t;
5
+ const n = "16";
2
6
  if (typeof window > "u")
3
- return "16";
4
- const n = window.getComputedStyle(document.documentElement).getPropertyValue("font-size").match(/\d+/);
5
- return typeof n == "string" ? n : "16";
7
+ return t = n, n;
8
+ const r = window.getComputedStyle(document.documentElement).getPropertyValue("font-size").match(/\d+/);
9
+ return t = r ? r[0] : n, t;
6
10
  }
7
- function o(e) {
8
- return String(e / Number(t())) + "rem";
11
+ function u(e) {
12
+ return String(e / Number(o())) + "rem";
9
13
  }
10
- const r = (e) => typeof e == "number" ? Number(t()) * e : Number(t()) * Number(e.replace("rem", ""));
14
+ const i = (e) => typeof e == "number" ? Number(o()) * e : Number(o()) * Number(e.replace("rem", ""));
11
15
  export {
12
- t as getRootFontSize,
13
- r as remToPx,
14
- o as toRem
16
+ o as getRootFontSize,
17
+ i as remToPx,
18
+ u as toRem
15
19
  };
16
20
  //# sourceMappingURL=rem.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"rem.js","sources":["../../src/helpers/rem.ts"],"sourcesContent":["/**\n * Detects font-size on the document root element with fallback to 16px wich is the default browser setting\n * @returns number\n */\nexport function getRootFontSize() {\n const defaultFontSize = '16'\n\n if (typeof window === 'undefined') {\n return defaultFontSize\n }\n\n const match = window\n .getComputedStyle(document.documentElement)\n .getPropertyValue('font-size')\n .match(/\\d+/)\n return typeof match === 'string' ? match : defaultFontSize\n}\n\nexport function toRem(pxValue: number) {\n return String(pxValue / Number(getRootFontSize())) + 'rem'\n}\n\nexport const remToPx = (rem: string | number) =>\n typeof rem === 'number'\n ? Number(getRootFontSize()) * rem\n : Number(getRootFontSize()) * Number(rem.replace('rem', ''))\n"],"names":["getRootFontSize","match","toRem","pxValue","remToPx","rem"],"mappings":"AAIO,SAASA,IAAkB;AAGhC,MAAI,OAAO,SAAW;AACpB,WAAO;AAGT,QAAMC,IAAQ,OACX,iBAAiB,SAAS,eAAe,EACzC,iBAAiB,WAAW,EAC5B,MAAM,KAAK;AACd,SAAO,OAAOA,KAAU,WAAWA,IAAQ;AAC7C;AAEO,SAASC,EAAMC,GAAiB;AACrC,SAAO,OAAOA,IAAU,OAAOH,EAAA,CAAiB,CAAC,IAAI;AACvD;AAEO,MAAMI,IAAU,CAACC,MACtB,OAAOA,KAAQ,WACX,OAAOL,GAAiB,IAAIK,IAC5B,OAAOL,EAAA,CAAiB,IAAI,OAAOK,EAAI,QAAQ,OAAO,EAAE,CAAC;"}
1
+ {"version":3,"file":"rem.js","sources":["../../src/helpers/rem.ts"],"sourcesContent":["let cachedRootFontSize: string | null = null\n\n/**\n * Detects font-size on the document root element with fallback to 16px which is the default browser setting.\n * The value is cached after the first call to avoid repeated expensive getComputedStyle() calls.\n * @param options.forceRefresh - Force a fresh detection instead of using the cached value\n * @returns The root font size in pixels as a string\n */\nexport function getRootFontSize(options?: { forceRefresh?: boolean }) {\n if (cachedRootFontSize && !options?.forceRefresh) {\n return cachedRootFontSize\n }\n\n const defaultFontSize = '16'\n\n if (typeof window === 'undefined') {\n cachedRootFontSize = defaultFontSize\n return defaultFontSize\n }\n\n const match = window\n .getComputedStyle(document.documentElement)\n .getPropertyValue('font-size')\n .match(/\\d+/)\n\n cachedRootFontSize = match ? match[0] : defaultFontSize\n return cachedRootFontSize\n}\n\nexport function toRem(pxValue: number) {\n return String(pxValue / Number(getRootFontSize())) + 'rem'\n}\n\nexport const remToPx = (rem: string | number) =>\n typeof rem === 'number'\n ? Number(getRootFontSize()) * rem\n : Number(getRootFontSize()) * Number(rem.replace('rem', ''))\n"],"names":["cachedRootFontSize","getRootFontSize","options","defaultFontSize","match","toRem","pxValue","remToPx","rem"],"mappings":"AAAA,IAAIA,IAAoC;AAQjC,SAASC,EAAgBC,GAAsC;AACpE,MAAIF;AACF,WAAOA;AAGT,QAAMG,IAAkB;AAExB,MAAI,OAAO,SAAW;AACpB,WAAAH,IAAqBG,GACdA;AAGT,QAAMC,IAAQ,OACX,iBAAiB,SAAS,eAAe,EACzC,iBAAiB,WAAW,EAC5B,MAAM,KAAK;AAEd,SAAAJ,IAAqBI,IAAQA,EAAM,CAAC,IAAID,GACjCH;AACT;AAEO,SAASK,EAAMC,GAAiB;AACrC,SAAO,OAAOA,IAAU,OAAOL,EAAA,CAAiB,CAAC,IAAI;AACvD;AAEO,MAAMM,IAAU,CAACC,MACtB,OAAOA,KAAQ,WACX,OAAOP,GAAiB,IAAIO,IAC5B,OAAOP,EAAA,CAAiB,IAAI,OAAOO,EAAI,QAAQ,OAAO,EAAE,CAAC;"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,7 @@
1
+ interface RetryAsyncOptions {
2
+ maxAttempts: number;
3
+ delayMs: number;
4
+ shouldRetry: (error: unknown) => boolean;
5
+ }
6
+ export declare function retryAsync<T>(fn: () => Promise<T>, { maxAttempts, delayMs, shouldRetry }: RetryAsyncOptions): Promise<T>;
7
+ export {};
@@ -0,0 +1,18 @@
1
+ async function c(o, { maxAttempts: r, delayMs: n, shouldRetry: a }) {
2
+ for (let t = 0; t < r; t++)
3
+ try {
4
+ return await o();
5
+ } catch (e) {
6
+ const i = t === r - 1;
7
+ if (a(e) && !i) {
8
+ await new Promise((s) => setTimeout(s, n));
9
+ continue;
10
+ }
11
+ throw e;
12
+ }
13
+ throw new Error("retryAsync: exhausted all attempts without resolving");
14
+ }
15
+ export {
16
+ c as retryAsync
17
+ };
18
+ //# sourceMappingURL=retryAsync.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"retryAsync.js","sources":["../../src/helpers/retryAsync.ts"],"sourcesContent":["interface RetryAsyncOptions {\n maxAttempts: number\n delayMs: number\n shouldRetry: (error: unknown) => boolean\n}\n\nexport async function retryAsync<T>(\n fn: () => Promise<T>,\n { maxAttempts, delayMs, shouldRetry }: RetryAsyncOptions,\n): Promise<T> {\n for (let attempt = 0; attempt < maxAttempts; attempt++) {\n try {\n return await fn()\n } catch (error) {\n const isLastAttempt = attempt === maxAttempts - 1\n if (shouldRetry(error) && !isLastAttempt) {\n await new Promise(resolve => setTimeout(resolve, delayMs))\n continue\n }\n throw error\n }\n }\n\n throw new Error('retryAsync: exhausted all attempts without resolving')\n}\n"],"names":["retryAsync","fn","maxAttempts","delayMs","shouldRetry","attempt","error","isLastAttempt","resolve"],"mappings":"AAMA,eAAsBA,EACpBC,GACA,EAAE,aAAAC,GAAa,SAAAC,GAAS,aAAAC,KACZ;AACZ,WAASC,IAAU,GAAGA,IAAUH,GAAaG;AAC3C,QAAI;AACF,aAAO,MAAMJ,EAAA;AAAA,IACf,SAASK,GAAO;AACd,YAAMC,IAAgBF,MAAYH,IAAc;AAChD,UAAIE,EAAYE,CAAK,KAAK,CAACC,GAAe;AACxC,cAAM,IAAI,QAAQ,CAAAC,MAAW,WAAWA,GAASL,CAAO,CAAC;AACzD;AAAA,MACF;AACA,YAAMG;AAAA,IACR;AAGF,QAAM,IAAI,MAAM,sDAAsD;AACxE;"}
package/dist/i18n/I18n.js CHANGED
@@ -1,46 +1,46 @@
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 f = "common", i = new y(50), c = ({ lng: n = "en", ns: o }) => {
5
- let r = !0, e = !1, t;
4
+ const f = "common", i = new y(50), c = ({ lng: e = "en", ns: o }) => {
5
+ let r = !0, n = !1, t;
6
6
  const m = (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.PaymentStatement.json": () => import("./en/Contractor.Payments.PaymentStatement.json.js"), "./en/Contractor.Payments.PaymentSummary.json": () => import("./en/Contractor.Payments.PaymentSummary.json.js"), "./en/Contractor.Payments.PaymentsList.json": () => import("./en/Contractor.Payments.PaymentsList.json.js"), "./en/Contractor.Profile.json": () => import("./en/Contractor.Profile.json.js"), "./en/Contractor.Submit.json": () => import("./en/Contractor.Submit.json.js"), "./en/Employee.BankAccount.json": () => import("./en/Employee.BankAccount.json.js"), "./en/Employee.Compensation.json": () => import("./en/Employee.Compensation.json.js"), "./en/Employee.Deductions.json": () => import("./en/Employee.Deductions.json.js"), "./en/Employee.DocumentSigner.json": () => import("./en/Employee.DocumentSigner.json.js"), "./en/Employee.EmployeeDocuments.json": () => import("./en/Employee.EmployeeDocuments.json.js"), "./en/Employee.EmployeeList.json": () => import("./en/Employee.EmployeeList.json.js"), "./en/Employee.EmploymentEligibility.json": () => import("./en/Employee.EmploymentEligibility.json.js"), "./en/Employee.FederalTaxes.json": () => import("./en/Employee.FederalTaxes.json.js"), "./en/Employee.HomeAddress.json": () => import("./en/Employee.HomeAddress.json.js"), "./en/Employee.I9SignatureForm.json": () => import("./en/Employee.I9SignatureForm.json.js"), "./en/Employee.Landing.json": () => import("./en/Employee.Landing.json.js"), "./en/Employee.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/InformationRequests.InformationRequestForm.json": () => import("./en/InformationRequests.InformationRequestForm.json.js"), "./en/InformationRequests.InformationRequestList.json": () => import("./en/InformationRequests.InformationRequestList.json.js"), "./en/InformationRequests.json": () => import("./en/InformationRequests.json.js"), "./en/Payroll.Common.json": () => import("./en/Payroll.Common.json.js"), "./en/Payroll.ConfirmWireDetailsBanner.json": () => import("./en/Payroll.ConfirmWireDetailsBanner.json.js"), "./en/Payroll.ConfirmWireDetailsForm.json": () => import("./en/Payroll.ConfirmWireDetailsForm.json.js"), "./en/Payroll.EmployeeSelection.json": () => import("./en/Payroll.EmployeeSelection.json.js"), "./en/Payroll.OffCycle.json": () => import("./en/Payroll.OffCycle.json.js"), "./en/Payroll.OffCycleCreation.json": () => import("./en/Payroll.OffCycleCreation.json.js"), "./en/Payroll.OffCycleDeductionsSetting.json": () => import("./en/Payroll.OffCycleDeductionsSetting.json.js"), "./en/Payroll.OffCyclePayPeriodDateForm.json": () => import("./en/Payroll.OffCyclePayPeriodDateForm.json.js"), "./en/Payroll.OffCycleReasonSelection.json": () => import("./en/Payroll.OffCycleReasonSelection.json.js"), "./en/Payroll.OffCycleTaxWithholding.json": () => import("./en/Payroll.OffCycleTaxWithholding.json.js"), "./en/Payroll.PayrollBlocker.json": () => import("./en/Payroll.PayrollBlocker.json.js"), "./en/Payroll.PayrollConfiguration.json": () => import("./en/Payroll.PayrollConfiguration.json.js"), "./en/Payroll.PayrollEditEmployee.json": () => import("./en/Payroll.PayrollEditEmployee.json.js"), "./en/Payroll.PayrollFlow.json": () => import("./en/Payroll.PayrollFlow.json.js"), "./en/Payroll.PayrollHistory.json": () => import("./en/Payroll.PayrollHistory.json.js"), "./en/Payroll.PayrollLanding.json": () => import("./en/Payroll.PayrollLanding.json.js"), "./en/Payroll.PayrollList.json": () => import("./en/Payroll.PayrollList.json.js"), "./en/Payroll.PayrollOverview.json": () => import("./en/Payroll.PayrollOverview.json.js"), "./en/Payroll.PayrollReceipts.json": () => import("./en/Payroll.PayrollReceipts.json.js"), "./en/Payroll.RecoveryCasesList.json": () => import("./en/Payroll.RecoveryCasesList.json.js"), "./en/Payroll.RecoveryCasesResubmit.json": () => import("./en/Payroll.RecoveryCasesResubmit.json.js"), "./en/Payroll.WireInstructions.json": () => import("./en/Payroll.WireInstructions.json.js"), "./en/common.json": () => import("./en/common.json.js") }), `./${n}/${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.PaymentSummary.json": () => import("./en/Contractor.Payments.PaymentSummary.json.js"), "./en/Contractor.Payments.PaymentsList.json": () => import("./en/Contractor.Payments.PaymentsList.json.js"), "./en/Contractor.Profile.json": () => import("./en/Contractor.Profile.json.js"), "./en/Contractor.Submit.json": () => import("./en/Contractor.Submit.json.js"), "./en/Employee.BankAccount.json": () => import("./en/Employee.BankAccount.json.js"), "./en/Employee.Compensation.json": () => import("./en/Employee.Compensation.json.js"), "./en/Employee.Deductions.json": () => import("./en/Employee.Deductions.json.js"), "./en/Employee.DocumentSigner.json": () => import("./en/Employee.DocumentSigner.json.js"), "./en/Employee.EmployeeDocuments.json": () => import("./en/Employee.EmployeeDocuments.json.js"), "./en/Employee.EmployeeList.json": () => import("./en/Employee.EmployeeList.json.js"), "./en/Employee.EmploymentEligibility.json": () => import("./en/Employee.EmploymentEligibility.json.js"), "./en/Employee.FederalTaxes.json": () => import("./en/Employee.FederalTaxes.json.js"), "./en/Employee.HomeAddress.json": () => import("./en/Employee.HomeAddress.json.js"), "./en/Employee.I9SignatureForm.json": () => import("./en/Employee.I9SignatureForm.json.js"), "./en/Employee.Landing.json": () => import("./en/Employee.Landing.json.js"), "./en/Employee.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/InformationRequests.InformationRequestForm.json": () => import("./en/InformationRequests.InformationRequestForm.json.js"), "./en/InformationRequests.InformationRequestList.json": () => import("./en/InformationRequests.InformationRequestList.json.js"), "./en/InformationRequests.json": () => import("./en/InformationRequests.json.js"), "./en/Payroll.Common.json": () => import("./en/Payroll.Common.json.js"), "./en/Payroll.ConfirmWireDetailsBanner.json": () => import("./en/Payroll.ConfirmWireDetailsBanner.json.js"), "./en/Payroll.ConfirmWireDetailsForm.json": () => import("./en/Payroll.ConfirmWireDetailsForm.json.js"), "./en/Payroll.EmployeeSelection.json": () => import("./en/Payroll.EmployeeSelection.json.js"), "./en/Payroll.GrossUpModal.json": () => import("./en/Payroll.GrossUpModal.json.js"), "./en/Payroll.OffCycle.json": () => import("./en/Payroll.OffCycle.json.js"), "./en/Payroll.OffCycleCreation.json": () => import("./en/Payroll.OffCycleCreation.json.js"), "./en/Payroll.OffCycleDeductionsSetting.json": () => import("./en/Payroll.OffCycleDeductionsSetting.json.js"), "./en/Payroll.OffCyclePayPeriodDateForm.json": () => import("./en/Payroll.OffCyclePayPeriodDateForm.json.js"), "./en/Payroll.OffCycleReasonSelection.json": () => import("./en/Payroll.OffCycleReasonSelection.json.js"), "./en/Payroll.OffCycleTaxWithholding.json": () => import("./en/Payroll.OffCycleTaxWithholding.json.js"), "./en/Payroll.PayrollBlocker.json": () => import("./en/Payroll.PayrollBlocker.json.js"), "./en/Payroll.PayrollConfiguration.json": () => import("./en/Payroll.PayrollConfiguration.json.js"), "./en/Payroll.PayrollEditEmployee.json": () => import("./en/Payroll.PayrollEditEmployee.json.js"), "./en/Payroll.PayrollFlow.json": () => import("./en/Payroll.PayrollFlow.json.js"), "./en/Payroll.PayrollHistory.json": () => import("./en/Payroll.PayrollHistory.json.js"), "./en/Payroll.PayrollLanding.json": () => import("./en/Payroll.PayrollLanding.json.js"), "./en/Payroll.PayrollList.json": () => import("./en/Payroll.PayrollList.json.js"), "./en/Payroll.PayrollOverview.json": () => import("./en/Payroll.PayrollOverview.json.js"), "./en/Payroll.PayrollReceipts.json": () => import("./en/Payroll.PayrollReceipts.json.js"), "./en/Payroll.RecoveryCasesList.json": () => import("./en/Payroll.RecoveryCasesList.json.js"), "./en/Payroll.RecoveryCasesResubmit.json": () => import("./en/Payroll.RecoveryCasesResubmit.json.js"), "./en/Payroll.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
- e = !0, r = !1;
10
+ n = !0, r = !1;
11
11
  }
12
12
  })();
13
13
  return () => {
14
14
  if (r)
15
15
  throw m;
16
- if (e)
16
+ if (n)
17
17
  throw new Error(`Error loading translation for component: ${o}`);
18
18
  return t;
19
19
  };
20
- }, C = (n) => {
20
+ }, C = (e) => {
21
21
  const { i18n: o } = a();
22
- if (!n) return;
23
- const r = Array.isArray(n) ? n : [n];
24
- for (const e of r) {
25
- const t = `${o.resolvedLanguage}:${e}`;
26
- i.get(t) === null && i.put(t, c({ lng: o.resolvedLanguage, ns: e }));
22
+ if (!e) return;
23
+ const r = Array.isArray(e) ? e : [e];
24
+ for (const n of r) {
25
+ const t = `${o.resolvedLanguage}:${n}`;
26
+ i.get(t) === null && i.put(t, c({ lng: o.resolvedLanguage, ns: n }));
27
27
  const s = i.get(t);
28
28
  if (s) {
29
29
  const m = s();
30
30
  o.addResourceBundle(
31
31
  o.resolvedLanguage ?? "en",
32
- e,
32
+ n,
33
33
  m,
34
34
  !0,
35
35
  !1
36
36
  );
37
37
  }
38
38
  }
39
- }, d = (n, o) => {
39
+ }, d = (e, o) => {
40
40
  const { i18n: r } = a();
41
41
  if (o)
42
- for (const e in o)
43
- r.addResourceBundle(e, n, o[e], !0, !0);
42
+ for (const n in o)
43
+ r.addResourceBundle(n, e, o[n], !0, !0);
44
44
  };
45
45
  export {
46
46
  f as defaultNS,
@@ -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,+9LAAA,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,ojMAAA,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,4 +1,4 @@
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 = { addPaySchedule: "Add pay schedule", editPaySchedule: "Edit pay schedule", pageTitle: "Set up pay schedule" }, y = { name: "Name", payfrequency: "Pay frequency", frequency: "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" }, c = "Loading...", l = { frequencyOptionsDescription: "Select the pay days for the month.", anchorPayDateDescription: "Please account for the 2 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." }, d = { payPeriod: "Pay period", payday: "Payday", payrollDeadline: "Run payroll by 1:00PM (PDT) on " }, h = { cancel: "Cancel", save: "Save" }, p = { everyWeek: "Every week", everyOtherWeek: "Every other week", twicePerMonth: "Twice per month", monthly: "Monthly" }, u = { "15thAndLast": "15th and Last day of the month", custom: "Custom" }, f = { title: "Pay Schedule Preview", description: "Complete all the required fields to see a preview of your pay schedule." }, m = {
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 = { addPaySchedule: "Add pay schedule", editPaySchedule: "Edit pay schedule", pageTitle: "Set up pay schedule" }, y = { name: "Name", payfrequency: "Pay frequency", frequency: "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" }, c = "Loading...", l = { frequencyOptionsDescription: "Select the pay days for the month.", anchorPayDateDescription: "Please account for the 2 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." }, d = { payPeriod: "Pay period", payday: "Payday", payrollDeadline: "Run payroll by 4:00PM (PDT) on " }, h = { cancel: "Cancel", save: "Save" }, p = { everyWeek: "Every week", everyOtherWeek: "Every other week", twicePerMonth: "Twice per month", monthly: "Monthly" }, u = { "15thAndLast": "15th and Last day of the month", custom: "Custom" }, f = { title: "Pay Schedule Preview", description: "Complete all the required fields to see a preview of your pay schedule." }, m = {
2
2
  listDescription: e,
3
3
  listDescription2: t,
4
4
  addAnotherPayScheduleCta: a,
@@ -0,0 +1,24 @@
1
+ const t = "Enter a net amount", e = "Please enter the net amount you want this employee to receive. We'll then automatically calculate the gross amount you need to pay, including taxes and deductions.", a = "This will override any previously entered amounts.", o = "Net amount", n = "Calculate Gross from Net", s = "Apply", l = "Cancel", c = "Calculated gross pay", r = "Unable to calculate gross up. Please try again.", u = {
2
+ title: t,
3
+ description: e,
4
+ warning: a,
5
+ netPayLabel: o,
6
+ calculateCta: n,
7
+ applyCta: s,
8
+ cancelCta: l,
9
+ grossPayResult: c,
10
+ errorMessage: r
11
+ };
12
+ export {
13
+ s as applyCta,
14
+ n as calculateCta,
15
+ l as cancelCta,
16
+ u as default,
17
+ e as description,
18
+ r as errorMessage,
19
+ c as grossPayResult,
20
+ o as netPayLabel,
21
+ t as title,
22
+ a as warning
23
+ };
24
+ //# sourceMappingURL=Payroll.GrossUpModal.json.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Payroll.GrossUpModal.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
@@ -1,18 +1,20 @@
1
- const e = "Tax withholding rates", t = "We've set the recommended withholding rate for each earning type below. Regular wages should be taxed at a rate that matches your employees' normal pay schedule", a = "Edit", l = { headers: { wageTypes: "Wage types", taxedAs: "Taxed as" }, taxedAsRegular: "Regular wages, paid {{frequency}}", taxedAsSupplemental: "Supplemental 22% for federal income taxes and at the state's supplemental tax rate for state income taxes.", taxedAsNotTaxed: "Not taxed" }, r = { title: "Tax withholding rates", regularSection: { title: "Rate for regular wages and earnings", subtitle: "For regular hours, regular wages, tips", rateLabel: "Rate is based on payment schedule of", rateDescription: "Regular wages should be taxed at a rate matching your employees' regular pay schedule. Select the most accurate pay schedule." }, supplementalSection: { title: "Rate for supplemental wages and earnings", useSupplementalRate: "Use supplemental tax rate", useSupplementalRateDescription: "Taxes will be withheld at the IRS's required rate of 22% for federal income taxes. State income taxes will be taxed at the state's supplemental tax rate", useRegularRate: "Use rate for regular wages (based on payment schedule of {{frequency}})", useRegularRateDescription: "We'll sum the entirety of the employee's wages and withhold taxes on the entire amount at the rate for regular wages" }, cancelButton: "Cancel", doneButton: "Done" }, s = { everyWeek: "Every week", everyOtherWeek: "Every other week", twicePerMonth: "Twice per month", monthly: "Monthly", quarterly: "Quarterly", semiannually: "Semiannually", annually: "Annually" }, n = {
1
+ const e = "Tax withholding rates", a = "We've set the recommended withholding rate for each earning type below. Regular wages should be taxed at a rate that matches your employees' normal pay schedule", t = "Edit", l = { headers: { wageTypes: "Wage types", taxedAs: "Taxed as" }, taxedAsRegular: "Regular wages, paid {{frequency}}", taxedAsSupplemental: "Supplemental 22% for federal income taxes and at the state's supplemental tax rate for state income taxes.", taxedAsNotTaxed: "Not taxed" }, r = { regular: { label: "Regular hours, regular wages, tips", description: "These earnings should be taxed at a rate that matches your employees' regular pay schedule." }, supplemental: { label: "Supplemental wages, bonus wages, commission", description: "These are typically taxed at the rate required by the IRS for federal income taxes and by the state for state income taxes." }, reimbursement: { label: "Reimbursements" } }, s = { title: "Tax withholding rates", regularSection: { title: "Rate for regular wages and earnings", subtitle: "For regular hours, regular wages, tips", rateLabel: "Rate is based on payment schedule of", rateDescription: "Regular wages should be taxed at a rate matching your employees' regular pay schedule. Select the most accurate pay schedule." }, supplementalSection: { title: "Rate for supplemental wages and earnings", useSupplementalRate: "Use supplemental tax rate", useSupplementalRateDescription: "Taxes will be withheld at the IRS's required rate of 22% for federal income taxes. State income taxes will be taxed at the state's supplemental tax rate", useRegularRate: "Use rate for regular wages (based on payment schedule of {{frequency}})", useRegularRateDescription: "We'll sum the entirety of the employee's wages and withhold taxes on the entire amount at the rate for regular wages" }, cancelButton: "Cancel", doneButton: "Done" }, n = { everyWeek: "Every week", everyOtherWeek: "Every other week", twicePerMonth: "Twice per month", monthly: "Monthly", quarterly: "Quarterly", semiannually: "Semiannually", annually: "Annually" }, o = {
2
2
  title: e,
3
- description: t,
4
- editButton: a,
3
+ description: a,
4
+ editButton: t,
5
5
  table: l,
6
- modal: r,
7
- payPeriodFrequency: s
6
+ wageTypeGroups: r,
7
+ modal: s,
8
+ payPeriodFrequency: n
8
9
  };
9
10
  export {
10
- n as default,
11
- t as description,
12
- a as editButton,
13
- r as modal,
14
- s as payPeriodFrequency,
11
+ o as default,
12
+ a as description,
13
+ t as editButton,
14
+ s as modal,
15
+ n as payPeriodFrequency,
15
16
  l as table,
16
- e as title
17
+ e as title,
18
+ r as wageTypeGroups
17
19
  };
18
20
  //# sourceMappingURL=Payroll.OffCycleTaxWithholding.json.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Payroll.OffCycleTaxWithholding.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
1
+ {"version":3,"file":"Payroll.OffCycleTaxWithholding.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}
@@ -1,4 +1,4 @@
1
- const e = "Edit Payroll", a = "{{payrollType}} payroll for <dateWrapper>{{startDate}} - {{endDate}}</dateWrapper>", t = "Edit Payroll for {{startDate}} - {{endDate}}", o = "Save and exit", l = "Calculate and review", i = "Calculate and review", n = "Hours and additional earnings", s = "Review and update your employee's hours, reimbursements, and additional earnings below.", r = "Employee compensations", p = { employees: "Employees", hours: "Hours", timeOff: "Time off", additionalEarnings: "Additional earnings", reimbursements: "Reimbursements", totalPay: "Total pay" }, d = "Skipped", y = { edit: "Edit", skip: "Skip employee", unskip: "Unskip employee" }, c = { progressSaved: "Your progress has been saved", directDepositDeadline: "To pay your employees with direct deposit by {{payDate}}, you'll need to run payroll by {{time}} on {{date}}.", directDepositDeadlineText: "Make sure to submit before the deadline to ensure timely payments.", payrollLate: "Your original pay date was {{initialCheckDate}}", payrollLateText: "Run payroll before {{time}} on {{date}} to pay your employees on {{newCheckDate}}.", payrollDeadline: { label: "Payroll Deadline", message: "To pay your employees with direct deposit by the check date, you'll need to run payroll by the deadline." }, skippedEmployees: { label: "Skipped Employees", employeeAddressNotVerified: "Employee address not verified" }, employeeUpdated: { label: "{{employeeName}} updated successfully" } }, u = "Preparing payroll...", m = "This may take a minute or two. You can navigate away while this happens.", g = "Calculating payroll...", h = "This may take a minute or two. You can navigate away while this happens.", b = "Calculating payroll...", D = {
1
+ const e = "Edit Payroll", a = "{{payrollType}} payroll for <dateWrapper>{{startDate}} - {{endDate}}</dateWrapper>", t = "Edit Payroll for {{startDate}} - {{endDate}}", o = "Save and exit", l = "Calculate and review", i = "Calculate and review", n = "Hours and additional earnings", s = "Review and update your employee's hours, reimbursements, and additional earnings below.", r = "Employee compensations", p = { employees: "Employees", hours: "Hours", timeOff: "Time off", additionalEarnings: "Additional earnings", reimbursements: "Reimbursements", totalPay: "Total pay" }, d = "Skipped", y = { edit: "Edit", skip: "Skip employee", unskip: "Unskip employee", setNetEarnings: "Set employee net earnings" }, c = { progressSaved: "Your progress has been saved", directDepositDeadline: "To pay your employees with direct deposit by {{payDate}}, you'll need to run payroll by {{time}} on {{date}}.", directDepositDeadlineText: "Make sure to submit before the deadline to ensure timely payments.", payrollLate: "Your original pay date was {{initialCheckDate}}", payrollLateText: "Run payroll before {{time}} on {{date}} to pay your employees on {{newCheckDate}}.", payrollDeadline: { label: "Payroll Deadline", message: "To pay your employees with direct deposit by the check date, you'll need to run payroll by the deadline." }, skippedEmployees: { label: "Skipped Employees", employeeAddressNotVerified: "Employee address not verified" }, employeeUpdated: { label: "{{employeeName}} updated successfully" } }, u = "Preparing payroll...", m = "This may take a minute or two. You can navigate away while this happens.", g = "Calculating payroll...", h = "This may take a minute or two. You can navigate away while this happens.", b = "Calculating payroll...", D = {
2
2
  pageTitle: e,
3
3
  description: a,
4
4
  breadcrumbLabel: t,
package/dist/index.d.ts CHANGED
@@ -3,4 +3,6 @@ export * from './components';
3
3
  export * from './contexts';
4
4
  export { componentEvents } from './shared/constants';
5
5
  export type { BeforeCreateRequestHook, BeforeRequestHook, AfterSuccessHook, AfterErrorHook, BeforeCreateRequestContext, BeforeRequestContext, AfterSuccessContext, AfterErrorContext, SDKHooks, } from './types/hooks';
6
+ export type { ObservabilityHook, ObservabilityError, ObservabilityErrorType, ObservabilityErrorContext, ObservabilityMetric, ObservabilityMetricUnit, SanitizationConfig, } from './types/observability';
7
+ export { createObservabilityError } from './contexts/ObservabilityProvider';
6
8
  export type { ConfirmWireDetailsProps, ConfirmWireDetailsComponentType, } from './components/Payroll/ConfirmWireDetails';
package/dist/index.js CHANGED
@@ -1,22 +1,28 @@
1
- import * as o from "./components/Company/index.js";
2
- import * as r from "./components/Contractor/index.js";
1
+ import * as r from "./components/Company/index.js";
2
+ import * as o from "./components/Contractor/index.js";
3
3
  import * as e from "./components/Employee/index.js";
4
4
  import * as t from "./components/InformationRequests/index.js";
5
- import * as p from "./components/Payroll/index.js";
5
+ import * as i from "./components/Payroll/index.js";
6
6
  import { ApiProvider as s } from "./contexts/ApiProvider/ApiProvider.js";
7
- import { componentEvents as x } from "./shared/constants.js";
8
- import { GustoApiProvider as d, GustoProvider as f } from "./contexts/GustoProvider/GustoProvider.js";
9
- import { GustoProviderCustomUIAdapter as v } from "./contexts/GustoProvider/GustoProviderCustomUIAdapter.js";
7
+ import { ObservabilityProvider as x } from "./contexts/ObservabilityProvider/ObservabilityProvider.js";
8
+ import { useObservability as n } from "./contexts/ObservabilityProvider/useObservability.js";
9
+ import { createObservabilityError as v } from "./contexts/ObservabilityProvider/observabilityUtils.js";
10
+ import { componentEvents as l } from "./shared/constants.js";
11
+ import { GustoApiProvider as y, GustoProvider as P } from "./contexts/GustoProvider/GustoProvider.js";
12
+ import { GustoProviderCustomUIAdapter as c } from "./contexts/GustoProvider/GustoProviderCustomUIAdapter.js";
10
13
  export {
11
14
  s as ApiProvider,
12
- o as Company,
13
- r as Contractor,
15
+ r as Company,
16
+ o as Contractor,
14
17
  e as Employee,
15
- d as GustoApiProvider,
16
- f as GustoProvider,
17
- v as GustoProviderCustomUIAdapter,
18
+ y as GustoApiProvider,
19
+ P as GustoProvider,
20
+ c as GustoProviderCustomUIAdapter,
18
21
  t as InformationRequests,
19
- p as Payroll,
20
- x as componentEvents
22
+ x as ObservabilityProvider,
23
+ i as Payroll,
24
+ l as componentEvents,
25
+ v as createObservabilityError,
26
+ n as useObservability
21
27
  };
22
28
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}
@@ -158,6 +158,8 @@ export declare const runPayrollEvents: {
158
158
  readonly REVIEW_PAYROLL: "payroll/review";
159
159
  readonly PAYROLL_SKIPPED: "payroll/skipped";
160
160
  readonly PAYROLL_EXIT_FLOW: "payroll/saveAndExit";
161
+ readonly RUN_PAYROLL_GROSS_UP_SELECTED: "runPayroll/grossUp/selected";
162
+ readonly RUN_PAYROLL_GROSS_UP_CALCULATED: "runPayroll/grossUp/calculated";
161
163
  };
162
164
  export declare const payrollWireEvents: {
163
165
  readonly PAYROLL_WIRE_START_TRANSFER: "payroll/wire/startTransfer";
@@ -236,6 +238,8 @@ export declare const componentEvents: {
236
238
  readonly REVIEW_PAYROLL: "payroll/review";
237
239
  readonly PAYROLL_SKIPPED: "payroll/skipped";
238
240
  readonly PAYROLL_EXIT_FLOW: "payroll/saveAndExit";
241
+ readonly RUN_PAYROLL_GROSS_UP_SELECTED: "runPayroll/grossUp/selected";
242
+ readonly RUN_PAYROLL_GROSS_UP_CALCULATED: "runPayroll/grossUp/calculated";
239
243
  readonly CONTRACTOR_ADDRESS_UPDATED: "contractor/address/updated";
240
244
  readonly CONTRACTOR_ADDRESS_DONE: "contractor/address/done";
241
245
  readonly CONTRACTOR_PAYMENT_METHOD_UPDATED: "contractor/paymentMethod/updated";
@@ -465,3 +469,4 @@ export declare const PAYROLL_PROCESSING_STATUS: {
465
469
  readonly processing_failed: "processing_failed";
466
470
  };
467
471
  export declare const PAYROLL_RESOLVABLE_SUBMISSION_BLOCKER_TYPES: string[];
472
+ export declare const TIP_CREDITS_UNSUPPORTED_STATES: string[];
@@ -154,7 +154,9 @@ const n = {
154
154
  RUN_PAYROLL_DATES_CONFIGURED: "runPayroll/dates/configured",
155
155
  REVIEW_PAYROLL: "payroll/review",
156
156
  PAYROLL_SKIPPED: "payroll/skipped",
157
- PAYROLL_EXIT_FLOW: "payroll/saveAndExit"
157
+ PAYROLL_EXIT_FLOW: "payroll/saveAndExit",
158
+ RUN_PAYROLL_GROSS_UP_SELECTED: "runPayroll/grossUp/selected",
159
+ RUN_PAYROLL_GROSS_UP_CALCULATED: "runPayroll/grossUp/calculated"
158
160
  }, a = {
159
161
  PAYROLL_WIRE_START_TRANSFER: "payroll/wire/startTransfer",
160
162
  PAYROLL_WIRE_INSTRUCTIONS_DONE: "payroll/wire/instructions/done",
@@ -229,7 +231,7 @@ const n = {
229
231
  REGULAR_HOURS_NAME: "regular hours",
230
232
  OVERTIME_NAME: "overtime",
231
233
  DOUBLE_OVERTIME_NAME: "double overtime"
232
- }, y = 35568, u = 40, U = 173.333333, B = 2080, b = "US_I-9", g = [
234
+ }, y = 35568, U = 40, u = 173.333333, B = 2080, b = "US_I-9", g = [
233
235
  "AL",
234
236
  "AK",
235
237
  "AZ",
@@ -317,7 +319,7 @@ const n = {
317
319
  D,
318
320
  P,
319
321
  s
320
- ], w = "Bonus", K = "Paycheck Tips", h = "Correction Payment", k = "Commission", x = "Cash Tips", d = "Reimbursement", I = "Owner's Draw", S = "Minimum Wage Adjustment", X = [
322
+ ], K = "Bonus", w = "Paycheck Tips", h = "Correction Payment", k = "Commission", x = "Cash Tips", d = "Reimbursement", I = "Owner's Draw", S = "Minimum Wage Adjustment", X = [
321
323
  I,
322
324
  S,
323
325
  d
@@ -328,17 +330,17 @@ const n = {
328
330
  }, J = [
329
331
  "fast_ach_threshold_exceeded",
330
332
  "needs_earned_access_for_fast_ach"
331
- ];
333
+ ], j = ["AK", "CA", "MN", "NV", "OR", "WA"];
332
334
  export {
333
335
  O as BREAKPOINTS,
334
336
  f as BREAKPOINTS_VALUES,
335
- w as COMPENSATION_NAME_BONUS,
337
+ K as COMPENSATION_NAME_BONUS,
336
338
  x as COMPENSATION_NAME_CASH_TIPS,
337
339
  k as COMPENSATION_NAME_COMMISSION,
338
340
  h as COMPENSATION_NAME_CORRECTION_PAYMENT,
339
341
  s as COMPENSATION_NAME_DOUBLE_OVERTIME,
340
342
  P as COMPENSATION_NAME_OVERTIME,
341
- K as COMPENSATION_NAME_PAYCHECK_TIPS,
343
+ w as COMPENSATION_NAME_PAYCHECK_TIPS,
342
344
  D as COMPENSATION_NAME_REGULAR_HOURS,
343
345
  d as COMPENSATION_NAME_REIMBURSEMENT,
344
346
  W as CONTRACTOR_TYPE,
@@ -351,8 +353,8 @@ export {
351
353
  p as FlsaStatus,
352
354
  H as HOURS_COMPENSATION_NAMES,
353
355
  B as HOURS_PER_PAY_PERIOD_ANNUALLY,
354
- U as HOURS_PER_PAY_PERIOD_MONTHLY,
355
- u as HOURS_PER_PAY_PERIOD_WEEKLY,
356
+ u as HOURS_PER_PAY_PERIOD_MONTHLY,
357
+ U as HOURS_PER_PAY_PERIOD_WEEKLY,
356
358
  b as I9_FORM_NAME,
357
359
  S as MIN_WAGE_ADJUST,
358
360
  I as OWNERS_DRAW,
@@ -363,6 +365,7 @@ export {
363
365
  G as SIGNATORY_TITLES,
364
366
  v as SPLIT_BY,
365
367
  g as STATES_ABBR,
368
+ j as TIP_CREDITS_UNSUPPORTED_STATES,
366
369
  A as companyEvents,
367
370
  Y as compensationTypeLabels,
368
371
  l as componentEvents,