@tesouro/embedded-components-react 0.5.226 → 0.5.227

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 (105) hide show
  1. package/dist/libs/tesouro-embedded-components-react/balances-widget/feature/dist/index3.js +41 -39
  2. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index12.js +2 -2
  3. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index2.js +2 -2
  4. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index3.js +2 -2
  5. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index4.js +2 -2
  6. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/feature/dist/index9.js +150 -147
  7. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/data-access/dist/index5.js +46 -51
  8. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/index7.js +130 -128
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index18.js +31 -32
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index19.js +2 -2
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index2.js +2 -2
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index21.js +2 -2
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index22.js +2 -2
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index3.js +2 -2
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index4.js +36 -37
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/data-access/dist/index2.js +2 -2
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/feature/dist/index4.js +2 -2
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index2.js +6 -10
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index3.js +2 -2
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index4.js +2 -2
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index5.js +2 -2
  22. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index6.js +2 -2
  23. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index7.js +2 -2
  24. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index8.js +2 -2
  25. package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/index13.js +154 -150
  26. package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index7.js +2 -2
  27. package/dist/libs/tesouro-embedded-components-react/cards-widget/data-access/dist/index2.js +2 -2
  28. package/dist/libs/tesouro-embedded-components-react/cards-widget/data-access/dist/index3.js +2 -2
  29. package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/index9.js +151 -149
  30. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/data-access/dist/index2.js +4 -4
  31. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/data-access/dist/index3.js +4 -4
  32. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index15.js +2 -2
  33. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index17.js +2 -2
  34. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index18.js +2 -2
  35. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index19.js +2 -2
  36. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index2.js +2 -2
  37. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index3.js +2 -2
  38. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index4.js +2 -2
  39. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index5.js +2 -2
  40. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index6.js +2 -2
  41. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index8.js +2 -2
  42. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index9.js +2 -2
  43. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index24.js +1 -0
  44. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index27.js +89 -87
  45. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index5.js +133 -130
  46. package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index8.js +36 -34
  47. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index10.js +12 -12
  48. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index11.js +6 -6
  49. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index12.js +2 -2
  50. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index3.js +40 -39
  51. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/data-access/dist/index4.js +2 -2
  52. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/index9.js +209 -207
  53. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index4.js +10 -5
  54. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index5.js +10 -5
  55. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index6.js +11 -6
  56. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index2.js +2 -2
  57. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index3.js +2 -2
  58. package/dist/libs/tesouro-embedded-components-react/settings-widget/profile/data-access/dist/index2.js +2 -2
  59. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index12.js +2 -2
  60. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index13.js +2 -2
  61. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index14.js +30 -28
  62. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index17.js +28 -26
  63. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index18.js +37 -34
  64. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index21.js +28 -26
  65. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index22.js +37 -34
  66. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index17.js +294 -292
  67. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index5.js +58 -58
  68. package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/data-access/dist/lib/approvalPoliciesApi.js +47 -48
  69. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index3.js +4 -4
  70. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index5.js +2 -2
  71. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index7.js +4 -4
  72. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +39 -38
  73. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/EmbedApiContext.js +14 -13
  74. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/allPages.js +1 -1
  75. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/applicationStatusQueryOptions.js +16 -15
  76. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/bank-account/useAllBankAccountsQuery.js +7 -5
  77. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/debit-card/useAllDebitCardsQuery.js +7 -5
  78. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/disclosures/useDisclosuresQuery.js +2 -2
  79. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/external-bank-account/useAllExternalBankAccountsQuery.js +7 -5
  80. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/merchant-category-group/useAllMerchantCategoryGroupsQuery.js +28 -29
  81. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/organizationStatus.js +10 -0
  82. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/reference-data/useLedgerAccountsQuery.js +26 -27
  83. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/reference-data/usePaymentTermsQuery.js +2 -2
  84. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/role/useAllOrganizationRolesQuery.js +31 -32
  85. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/role/useRolePermissionsQueries.js +2 -2
  86. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useCurrentUserQuery.js +2 -2
  87. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useGetUserDataQuery.js +2 -2
  88. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useMailboxAddress.js +2 -2
  89. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useMyEntityQuery.js +2 -2
  90. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/user/useAllOrganizationUsersQuery.js +33 -34
  91. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/withAuthEpoch.js +33 -22
  92. package/dist/libs/tesouro-embedded-components-react/shared/expense-requirements/data-access/dist/index3.js +2 -2
  93. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/RootWidgetProvider.js +43 -32
  94. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/WidgetProvider.js +138 -127
  95. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/deriveOrganizationStatus.js +6 -0
  96. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/useWidgetFetch.js +1 -1
  97. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  98. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index10.js +2 -2
  99. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index2.js +2 -2
  100. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index3.js +2 -2
  101. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index4.js +2 -2
  102. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index9.js +2 -2
  103. package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index6.js +2 -2
  104. package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/index6.js +60 -58
  105. package/package.json +1 -1
@@ -1,34 +1,45 @@
1
+ import { OrganizationStatus as e } from "./organizationStatus.js";
1
2
  //#region ../../libs/tesouro-embedded-components-react/shared/data-access/dist/lib/withAuthEpoch.js
2
- var e = "x-organization-id", t = (e) => typeof e == "object" && !!e && !Array.isArray(e), n = (n) => t(n.headers) ? n.headers[e] : void 0, r = ([n, ...r]) => {
3
- if (!t(n) || !t(n.headers)) return [n, ...r];
4
- let i = { ...n.headers };
5
- return delete i[e], [{
6
- ...n,
3
+ var t = "x-organization-id", n = (e) => typeof e == "object" && !!e && !Array.isArray(e), r = (e) => n(e.headers) ? e.headers[t] : void 0, i = ([e, ...r]) => {
4
+ if (!n(e) || !n(e.headers)) return [e, ...r];
5
+ let i = { ...e.headers };
6
+ return delete i[t], [{
7
+ ...e,
7
8
  headers: i
8
9
  }, ...r];
9
- }, i = (e) => JSON.stringify(e, (e, n) => t(n) ? Object.fromEntries(Object.keys(n).sort().map((e) => [e, n[e]])) : n);
10
- function a(e, a, o) {
11
- let s = o ? r(e) : e, [c] = s;
12
- return i(a && t(c) ? [c.baseUrl, n(c)] : s);
10
+ }, a = (e) => JSON.stringify(e, (e, t) => n(t) ? Object.fromEntries(Object.keys(t).sort().map((e) => [e, t[e]])) : t);
11
+ function o(e, t, o) {
12
+ let s = o ? i(e) : e, [c] = s;
13
+ return a(t && n(c) ? [c.baseUrl, r(c)] : s);
13
14
  }
14
- function o(n, r) {
15
- let [i] = n;
16
- return r && t(i) && t(i.headers) && e in i.headers && !i.headers[e];
15
+ function s(r, i) {
16
+ let [a] = r;
17
+ return i === e.Rotating && n(a) && n(a.headers) && t in a.headers && !a.headers[t];
17
18
  }
18
- var s = /* @__PURE__ */ new Map(), c = 500;
19
- function l(e, t, n) {
20
- let r = o(e, n), i = a(e, t, r), l = `${t}:${r}:${e.length}:${i}`, u = s.get(l);
21
- if (u) return s.delete(l), s.set(l, u), u;
22
- let d = (n, o) => o && a(o.queryKey.slice(0, e.length), t, r) === i ? n : void 0;
23
- return s.size >= c && s.delete(s.keys().next().value), s.set(l, d), d;
19
+ var c = /* @__PURE__ */ new Map(), l = 500;
20
+ function u(e, t, n) {
21
+ let r = o(e, t, n), i = `${t}:${n}:${e.length}:${r}`, a = c.get(i);
22
+ if (a) return c.delete(i), c.set(i, a), a;
23
+ let s = (i, a) => a && o(a.queryKey.slice(0, e.length), t, n) === r ? i : void 0;
24
+ return c.size >= l && c.delete(c.keys().next().value), c.set(i, s), s;
24
25
  }
25
- var u = (e, t) => l(e, !1, t);
26
- function d(e, { authEpoch: t, organizationPending: n }, { carryWithinOrg: r = !1 } = {}) {
26
+ function d(e, { authEpoch: t, organizationStatus: n }, { carryWithinOrg: r = !1 } = {}) {
27
27
  return {
28
- placeholderData: l(e.queryKey, r, n),
28
+ placeholderData: u(e.queryKey, r, s(e.queryKey, n)),
29
29
  ...e,
30
30
  queryKey: [...e.queryKey, { authEpoch: t }]
31
31
  };
32
32
  }
33
+ function f(e, { authEpoch: t, organizationStatus: n }, { suffix: r = [], carryWhileRotating: i = !0 } = {}) {
34
+ let a = [
35
+ ...e,
36
+ ...r,
37
+ "infinite"
38
+ ];
39
+ return {
40
+ queryKey: [...a, { authEpoch: t }],
41
+ placeholderData: u(a, !1, i && s(a, n))
42
+ };
43
+ }
33
44
  //#endregion
34
- export { u as authEpochPlaceholder, d as withAuthEpoch };
45
+ export { d as withAuthEpoch, f as withAuthEpochInfinite };
@@ -11,14 +11,14 @@ import { transactionsValidationsInvalidationKey as a } from "./index2.js";
11
11
  import { useMutation as o, useQuery as s } from "@tanstack/react-query";
12
12
  //#region ../../libs/tesouro-embedded-components-react/shared/expense-requirements/data-access/dist/index3.js
13
13
  function c() {
14
- let { client: t, organizationId: r, widgetToken: a, authEpoch: o, organizationPending: c } = i(), l = !!(r && a), u = e({
14
+ let { client: t, organizationId: r, widgetToken: a, authEpoch: o, organizationStatus: c } = i(), l = !!(r && a), u = e({
15
15
  client: t,
16
16
  headers: { "x-organization-id": r ?? "" }
17
17
  });
18
18
  return s({
19
19
  ...n(u, {
20
20
  authEpoch: o,
21
- organizationPending: c
21
+ organizationStatus: c
22
22
  }),
23
23
  enabled: l
24
24
  });
@@ -3,9 +3,9 @@
3
3
  "use client";
4
4
  "use client";
5
5
  import { createClientSecretInstaller as e } from "../../../../data-access/dist/lib/scopedClientSecret.js";
6
- import { registerQueryClient as t, unregisterQueryClient as n } from "../../../../data-access/dist/lib/clientRegistry.js";
7
- import { createEmbeddedClient as ee } from "../../../../data-access/dist/lib/createEmbeddedClient.js";
8
- import { EmbedApiProvider as te } from "../../../../data-access/dist/lib/EmbedApiContext.js";
6
+ import { registerQueryClient as t, unregisterQueryClient as ee } from "../../../../data-access/dist/lib/clientRegistry.js";
7
+ import { createEmbeddedClient as te } from "../../../../data-access/dist/lib/createEmbeddedClient.js";
8
+ import { EmbedApiProvider as n } from "../../../../data-access/dist/lib/EmbedApiContext.js";
9
9
  import "../../../../data-access/dist/index.js";
10
10
  import { resolveUIFramework as r } from "../../../../ui/dist/lib/UIContext/UIContext.js";
11
11
  import { UIProvider as ne } from "../../../../ui/dist/lib/UIContext/UIProvider.js";
@@ -14,31 +14,32 @@ import "../../../../ui/dist/index.js";
14
14
  import { getGlobalSnapshot as i, subscribeToGlobal as ie } from "./globalStore.js";
15
15
  import { configureEmbeddedClient as ae } from "../analytics/client.js";
16
16
  import { generateCorrelationId as oe } from "../analytics/ids.js";
17
- import { WidgetContext as se } from "./WidgetContext.js";
18
- import { resolveOrgId as ce, useAuthEpoch as le } from "./utils.js";
19
- import { useWidgetFetch as ue } from "./useWidgetFetch.js";
20
- import { deriveWidgetInitState as a, useWidgetInitPublisher as o } from "./useWidgetInitPublisher.js";
21
- import { useEffect as s, useMemo as c, useRef as l, useState as u, useSyncExternalStore as de } from "react";
22
- import { jsx as d } from "react/jsx-runtime";
23
- import { QueryClient as f, QueryClientProvider as p } from "@tanstack/react-query";
17
+ import { WidgetContext as a } from "./WidgetContext.js";
18
+ import { resolveOrgId as o, useAuthEpoch as s } from "./utils.js";
19
+ import { useWidgetFetch as se } from "./useWidgetFetch.js";
20
+ import { deriveOrganizationStatus as ce } from "./deriveOrganizationStatus.js";
21
+ import { deriveWidgetInitState as le, useWidgetInitPublisher as ue } from "./useWidgetInitPublisher.js";
22
+ import { useEffect as c, useMemo as l, useRef as u, useState as d, useSyncExternalStore as de } from "react";
23
+ import { jsx as f } from "react/jsx-runtime";
24
+ import { QueryClient as p, QueryClientProvider as fe } from "@tanstack/react-query";
24
25
  //#region ../../libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/RootWidgetProvider.js
25
26
  function m({ children: m, baseUrl: h, widgetToken: g, organizationId: _, configClient: v, gatewayRouting: y, linkComponent: b, uiFramework: x, implementation: S, analytics: C, unstable_initResponseOverride: w, disclosuresAcceptance: T, providerLabels: E }) {
26
- let D = de(ie, i, i), O = h ?? D.baseUrl, k = g === void 0 ? D.widgetToken : g, A = _ === void 0 ? D.organizationId : _, j = v ?? D.configClient, M = y ?? D.gatewayRouting, N = b ?? D.linkComponent, P = x ?? D.uiFramework, F = S ?? D.implementation, I = C !== !1, [L] = u(oe), R = l({
27
+ let D = de(ie, i, i), O = h ?? D.baseUrl, k = g === void 0 ? D.widgetToken : g, A = _ === void 0 ? D.organizationId : _, j = v ?? D.configClient, M = y ?? D.gatewayRouting, N = b ?? D.linkComponent, P = x ?? D.uiFramework, F = S ?? D.implementation, I = C !== !1, [L] = d(oe), R = u({
27
28
  enabled: I,
28
29
  organizationId: A,
29
30
  rootCorrelationId: L
30
- }), [z] = u(() => new f({ defaultOptions: {
31
+ }), [z] = d(() => new p({ defaultOptions: {
31
32
  queries: {
32
33
  retry: !1,
33
34
  refetchOnWindowFocus: !1
34
35
  },
35
36
  mutations: { retry: !1 }
36
37
  } }));
37
- s(() => (t(z), () => n(z)), [z]);
38
- let B = l(k);
38
+ c(() => (t(z), () => ee(z)), [z]);
39
+ let B = u(k);
39
40
  B.current = k;
40
- let V = l(null), fe = c(() => e(V), []), pe = le(k), H = c(() => {
41
- let e = ae(ee(O), {
41
+ let V = u(null), pe = l(() => e(V), []), me = s(k), H = l(() => {
42
+ let e = ae(te(O), {
42
43
  tokenRef: B,
43
44
  analyticsContextRef: R,
44
45
  clientSecretRef: V,
@@ -50,7 +51,7 @@ function m({ children: m, baseUrl: h, widgetToken: g, organizationId: _, configC
50
51
  j,
51
52
  M
52
53
  ]);
53
- s(() => {
54
+ c(() => {
54
55
  if (!I || !("window" in globalThis)) return;
55
56
  let e = !1;
56
57
  return import("../analytics/install.js").then(({ ensureAnalyticsAdapterInstalled: t }) => {
@@ -60,10 +61,20 @@ function m({ children: m, baseUrl: h, widgetToken: g, organizationId: _, configC
60
61
  };
61
62
  }, [I]);
62
63
  let U = re(r(P));
63
- s(() => {
64
+ c(() => {
64
65
  U && U().catch(() => {});
65
66
  }, [U]);
66
- let { result: me, loading: W, error: G, initStaleForToken: he, initReplacementPending: K, refetch: q } = ue(w ? null : H, k, R), J = k ? w ?? me ?? void 0 : void 0, Y = !w && he, X = ce(A, Y ? void 0 : J?.organizationId), ge = A === void 0 && K, _e = c(() => a({
67
+ let { result: he, loading: W, error: G, initStaleForToken: K, initReplacementPending: ge, refetch: q } = se(w ? null : H, k, R), J = k ? w ?? he ?? void 0 : void 0, Y = !w && K, X = o(A, Y ? void 0 : J?.organizationId), _e = ce({
68
+ organizationId: X,
69
+ cascadeOrgId: A,
70
+ ownsFetch: !0,
71
+ parentStatus: "none",
72
+ hasToken: !!k,
73
+ loading: W,
74
+ error: G,
75
+ hasResult: !!J,
76
+ initReplacementPending: ge
77
+ }), ve = l(() => le({
67
78
  hasToken: !!k,
68
79
  loading: W,
69
80
  error: G,
@@ -76,8 +87,8 @@ function m({ children: m, baseUrl: h, widgetToken: g, organizationId: _, configC
76
87
  J,
77
88
  Y
78
89
  ]);
79
- o(_e, k);
80
- let Z = c(() => ({
90
+ ue(ve, k);
91
+ let Z = l(() => ({
81
92
  enabled: I,
82
93
  organizationId: X,
83
94
  rootCorrelationId: L
@@ -87,7 +98,7 @@ function m({ children: m, baseUrl: h, widgetToken: g, organizationId: _, configC
87
98
  L
88
99
  ]);
89
100
  R.current = Z;
90
- let Q = c(() => ({
101
+ let Q = l(() => ({
91
102
  baseUrl: h,
92
103
  widgetToken: g,
93
104
  organizationId: _,
@@ -105,7 +116,7 @@ function m({ children: m, baseUrl: h, widgetToken: g, organizationId: _, configC
105
116
  b,
106
117
  x,
107
118
  S
108
- ]), $ = c(() => ({
119
+ ]), $ = l(() => ({
109
120
  baseUrl: O,
110
121
  widgetToken: k,
111
122
  organizationId: X,
@@ -125,7 +136,7 @@ function m({ children: m, baseUrl: h, widgetToken: g, organizationId: _, configC
125
136
  P,
126
137
  F,
127
138
  J
128
- ]), ve = c(() => ({
139
+ ]), ye = l(() => ({
129
140
  resolved: $,
130
141
  own: Q,
131
142
  refetch: q,
@@ -148,18 +159,18 @@ function m({ children: m, baseUrl: h, widgetToken: g, organizationId: _, configC
148
159
  T,
149
160
  E
150
161
  ]);
151
- return /* @__PURE__ */ d(p, {
162
+ return /* @__PURE__ */ f(fe, {
152
163
  client: z,
153
- children: /* @__PURE__ */ d(te, {
164
+ children: /* @__PURE__ */ f(n, {
154
165
  client: H,
155
166
  organizationId: X,
156
167
  widgetToken: k,
157
- installClientSecret: fe,
158
- authEpoch: pe,
159
- organizationPending: ge,
160
- children: /* @__PURE__ */ d(se.Provider, {
161
- value: ve,
162
- children: /* @__PURE__ */ d(ne, {
168
+ installClientSecret: pe,
169
+ authEpoch: me,
170
+ organizationStatus: _e,
171
+ children: /* @__PURE__ */ f(a.Provider, {
172
+ value: ye,
173
+ children: /* @__PURE__ */ f(ne, {
163
174
  linkComponent: N,
164
175
  uiFramework: P,
165
176
  children: m
@@ -13,214 +13,225 @@ import { useDesignSystemEnsurer as te, useFrameworkRenderer as ne } from "../../
13
13
  import { HostIsolationScope as re } from "../../../../ui/dist/lib/HostIsolationScope/HostIsolationScope.js";
14
14
  import { ErrorState as s } from "../../../../ui/dist/lib/ErrorState/ErrorState.js";
15
15
  import "../../../../ui/dist/index.js";
16
- import { getGlobalSnapshot as c, subscribeToGlobal as ie } from "./globalStore.js";
17
- import { EmbeddedAnalyticsEvent as l } from "../analytics/events.js";
18
- import { configureEmbeddedClient as ae } from "../analytics/client.js";
19
- import { generateCorrelationId as oe } from "../analytics/ids.js";
20
- import { WidgetContext as se } from "./WidgetContext.js";
21
- import { noop as ce, resolveOrgId as le, useAuthEpoch as ue } from "./utils.js";
22
- import { useWidgetFetch as de } from "./useWidgetFetch.js";
23
- import { deriveWidgetInitState as fe, useWidgetInitPublisher as pe } from "./useWidgetInitPublisher.js";
24
- import { useAnalyticsTrack as u } from "../analytics/hooks.js";
25
- import { resolveProviderLabels as me } from "./labels.js";
26
- import { WidgetErrorBoundary as he } from "./WidgetErrorBoundary.js";
27
- import { DISCLOSURES_REQUIRED_TEST_ID as d, hasRenderableAcceptanceSurface as f, resolveDisclosuresBlockedReason as p, shouldGateOnDisclosuresAcceptance as ge } from "./isDisclosuresAcceptanceRequired.js";
28
- import { useContext as _e, useEffect as m, useMemo as h, useRef as g, useState as _, useSyncExternalStore as ve } from "react";
29
- import { jsx as v } from "react/jsx-runtime";
30
- import { QueryClient as ye, QueryClientProvider as be } from "@tanstack/react-query";
16
+ import { getGlobalSnapshot as ie, subscribeToGlobal as ae } from "./globalStore.js";
17
+ import { EmbeddedAnalyticsEvent as c } from "../analytics/events.js";
18
+ import { configureEmbeddedClient as oe } from "../analytics/client.js";
19
+ import { generateCorrelationId as se } from "../analytics/ids.js";
20
+ import { WidgetContext as ce } from "./WidgetContext.js";
21
+ import { noop as le, resolveOrgId as ue, useAuthEpoch as de } from "./utils.js";
22
+ import { useWidgetFetch as fe } from "./useWidgetFetch.js";
23
+ import { deriveOrganizationStatus as pe } from "./deriveOrganizationStatus.js";
24
+ import { deriveWidgetInitState as me, useWidgetInitPublisher as he } from "./useWidgetInitPublisher.js";
25
+ import { useAnalyticsTrack as l } from "../analytics/hooks.js";
26
+ import { resolveProviderLabels as ge } from "./labels.js";
27
+ import { WidgetErrorBoundary as _e } from "./WidgetErrorBoundary.js";
28
+ import { DISCLOSURES_REQUIRED_TEST_ID as u, hasRenderableAcceptanceSurface as d, resolveDisclosuresBlockedReason as f, shouldGateOnDisclosuresAcceptance as ve } from "./isDisclosuresAcceptanceRequired.js";
29
+ import { useContext as ye, useEffect as p, useMemo as m, useRef as h, useState as g, useSyncExternalStore as be } from "react";
30
+ import { jsx as _ } from "react/jsx-runtime";
31
+ import { QueryClient as xe, QueryClientProvider as Se } from "@tanstack/react-query";
31
32
  //#region ../../libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/WidgetProvider.js
32
- function y({ children: ne, baseUrl: s, widgetToken: l, organizationId: u, configClient: d, gatewayRouting: f, linkComponent: p, uiFramework: y, implementation: b, errorFallback: Se, onError: Ce, analytics: x, disclosuresAcceptance: we, providerLabels: Te, widgetName: S }) {
33
- let C = _e(se), Ee = ve(ie, c, c), w = C?.resolved ?? Ee, De = C?.refetch ?? ce, Oe = C?.loading ?? !1, ke = C?.error ?? null, T = s ?? w.baseUrl, E = l === void 0 ? w.widgetToken : l, Ae = C ? C.cascadeOrgId : Ee.organizationId, D = u === void 0 ? Ae : u, O = d ?? w.configClient, k = f ?? w.gatewayRouting, A = p ?? w.linkComponent, j = y ?? w.uiFramework, M = b ?? w.implementation, N = we ?? C?.disclosuresAcceptance, P = Te ?? C?.providerLabels, je = h(() => me(P), [P]), F = C === null, I = F ? x !== !1 : C.analytics.enabled, [Me] = _(oe), L = F ? Me : C.analytics.rootCorrelationId, [Ne] = _(oe), R = S === void 0 ? C?.analytics.widgetName : S, z = S === void 0 ? C?.analytics.widgetInstanceId : Ne, B = g({
34
- enabled: I,
35
- organizationId: D,
36
- rootCorrelationId: L,
37
- widgetName: R,
38
- widgetInstanceId: z
39
- }), Pe = g(!1);
40
- m(() => {
41
- F || x === void 0 || Pe.current || (Pe.current = !0, console.warn("[tesouro-embedded] `analytics` on a nested WidgetProvider is ignored in v1. Set it on the outermost RootWidgetProvider or standalone WidgetProvider instead."));
42
- }, [x, F]), m(() => {
43
- if (!F || !I || !("window" in globalThis)) return;
33
+ function v({ children: ne, baseUrl: s, widgetToken: c, organizationId: l, configClient: u, gatewayRouting: d, linkComponent: f, uiFramework: v, implementation: y, errorFallback: we, onError: Te, analytics: b, disclosuresAcceptance: Ee, providerLabels: De, widgetName: x }) {
34
+ let S = ye(ce), Oe = be(ae, ie, ie), C = S?.resolved ?? Oe, ke = S?.refetch ?? le, Ae = S?.loading ?? !1, je = S?.error ?? null, w = s ?? C.baseUrl, T = c === void 0 ? C.widgetToken : c, Me = S ? S.cascadeOrgId : Oe.organizationId, E = l === void 0 ? Me : l, D = u ?? C.configClient, O = d ?? C.gatewayRouting, k = f ?? C.linkComponent, A = v ?? C.uiFramework, j = y ?? C.implementation, M = Ee ?? S?.disclosuresAcceptance, N = De ?? S?.providerLabels, Ne = m(() => ge(N), [N]), P = S === null, F = P ? b !== !1 : S.analytics.enabled, [Pe] = g(se), I = P ? Pe : S.analytics.rootCorrelationId, [Fe] = g(se), L = x === void 0 ? S?.analytics.widgetName : x, R = x === void 0 ? S?.analytics.widgetInstanceId : Fe, z = h({
35
+ enabled: F,
36
+ organizationId: E,
37
+ rootCorrelationId: I,
38
+ widgetName: L,
39
+ widgetInstanceId: R
40
+ }), B = h(!1);
41
+ p(() => {
42
+ P || b === void 0 || B.current || (B.current = !0, console.warn("[tesouro-embedded] `analytics` on a nested WidgetProvider is ignored in v1. Set it on the outermost RootWidgetProvider or standalone WidgetProvider instead."));
43
+ }, [b, P]), p(() => {
44
+ if (!P || !F || !("window" in globalThis)) return;
44
45
  let e = !1;
45
46
  return import("../analytics/install.js").then(({ ensureAnalyticsAdapterInstalled: t }) => {
46
47
  e || t();
47
48
  }), () => {
48
49
  e = !0;
49
50
  };
50
- }, [F, I]);
51
- let V = te(o(j));
52
- m(() => {
51
+ }, [P, F]);
52
+ let V = te(o(A));
53
+ p(() => {
53
54
  V && V().catch(() => {});
54
55
  }, [V]);
55
- let Fe = C === null || s !== void 0 || l !== void 0 || u !== void 0 || d != null || f !== void 0 || S !== void 0, Ie = g(E);
56
- Ie.current = E;
57
- let Le = g(null), Re = h(() => e(Le), []), ze = a(), Be = ue(E), H = h(() => {
58
- if (!Fe) return null;
59
- let e = ae(r(T), {
60
- tokenRef: Ie,
61
- analyticsContextRef: B,
62
- clientSecretRef: Le,
63
- gatewayRouting: k
56
+ let Ie = S === null || s !== void 0 || c !== void 0 || l !== void 0 || u != null || d !== void 0 || x !== void 0, Le = h(T);
57
+ Le.current = T;
58
+ let Re = h(null), ze = m(() => e(Re), []), Be = a(), Ve = de(T), H = m(() => {
59
+ if (!Ie) return null;
60
+ let e = oe(r(w), {
61
+ tokenRef: Le,
62
+ analyticsContextRef: z,
63
+ clientSecretRef: Re,
64
+ gatewayRouting: O
64
65
  });
65
- return O ? O(e) : e;
66
+ return D ? D(e) : e;
66
67
  }, [
67
- Fe,
68
- T,
69
- O,
70
- k
71
- ]), U = C === null || s !== void 0 || l !== void 0, Ve = U ? Be : ze.authEpoch, { result: W, loading: G, error: K, clearedForAuthChange: He, initStaleForToken: q, initReplacementPending: Ue, refetch: We } = de(U ? H : null, U ? E : void 0, B), Ge = U ? We : De, Ke = U ? G : Oe, qe = U ? K : ke, Je = C?.resolved.initResponse, Ye = !U || !He && !K && !W && !!E && !G, J = Ye ? Je : W ?? void 0, Y = Ye ? U || (C?.initResponseStaleForToken ?? !1) : q, Xe = C === null, Ze = h(() => Xe ? fe({
72
- hasToken: !!E,
68
+ Ie,
69
+ w,
70
+ D,
71
+ O
72
+ ]), U = S === null || s !== void 0 || c !== void 0, He = U ? Ve : Be.authEpoch, { result: W, loading: G, error: K, clearedForAuthChange: Ue, initStaleForToken: q, initReplacementPending: We, refetch: Ge } = fe(U ? H : null, U ? T : void 0, z), Ke = U ? Ge : ke, qe = U ? G : Ae, Je = U ? K : je, Ye = S?.resolved.initResponse, Xe = !U || !Ue && !K && !W && !!T && !G, J = Xe ? Ye : W ?? void 0, Y = Xe ? U || (S?.initResponseStaleForToken ?? !1) : q, Ze = S === null, Qe = m(() => Ze ? me({
73
+ hasToken: !!T,
73
74
  loading: G,
74
75
  error: K,
75
76
  initResponse: W ?? void 0,
76
77
  initStaleForToken: q
77
78
  }) : null, [
78
- Xe,
79
- E,
79
+ Ze,
80
+ T,
80
81
  G,
81
82
  K,
82
83
  W,
83
84
  q
84
85
  ]);
85
- pe(Ze, E);
86
- let X = le(D, Y ? void 0 : J?.organizationId), Qe = D === void 0 && (U ? Ue : ze.organizationPending), Z = h(() => ({
87
- enabled: I,
86
+ he(Qe, T);
87
+ let X = ue(E, Y ? void 0 : J?.organizationId), $e = pe({
88
+ organizationId: X,
89
+ cascadeOrgId: E,
90
+ ownsFetch: U,
91
+ parentStatus: Be.organizationStatus,
92
+ hasToken: !!T,
93
+ loading: G,
94
+ error: K,
95
+ hasResult: !!W,
96
+ initReplacementPending: We
97
+ }), Z = m(() => ({
98
+ enabled: F,
88
99
  organizationId: X,
89
- rootCorrelationId: L,
90
- widgetName: R,
91
- widgetInstanceId: z
100
+ rootCorrelationId: I,
101
+ widgetName: L,
102
+ widgetInstanceId: R
92
103
  }), [
93
- I,
104
+ F,
94
105
  X,
106
+ I,
95
107
  L,
96
- R,
97
- z
108
+ R
98
109
  ]);
99
- B.current = Z;
100
- let [Q] = _(() => C === null ? new ye({ defaultOptions: {
110
+ z.current = Z;
111
+ let [Q] = g(() => S === null ? new xe({ defaultOptions: {
101
112
  queries: {
102
113
  retry: !1,
103
114
  refetchOnWindowFocus: !1
104
115
  },
105
116
  mutations: { retry: !1 }
106
117
  } }) : null);
107
- m(() => {
118
+ p(() => {
108
119
  if (!Q) return;
109
120
  let e = Q;
110
121
  return t(e), () => n(e);
111
122
  }, [Q]);
112
- let $e = h(() => ({
123
+ let et = m(() => ({
113
124
  baseUrl: s,
114
- widgetToken: l,
115
- organizationId: u,
116
- configClient: d,
117
- gatewayRouting: f,
118
- linkComponent: p,
119
- uiFramework: y,
120
- implementation: b
125
+ widgetToken: c,
126
+ organizationId: l,
127
+ configClient: u,
128
+ gatewayRouting: d,
129
+ linkComponent: f,
130
+ uiFramework: v,
131
+ implementation: y
121
132
  }), [
122
133
  s,
134
+ c,
123
135
  l,
124
136
  u,
125
137
  d,
126
138
  f,
127
- p,
128
- y,
129
- b
130
- ]), et = h(() => ({
131
- baseUrl: T,
132
- widgetToken: E,
139
+ v,
140
+ y
141
+ ]), tt = m(() => ({
142
+ baseUrl: w,
143
+ widgetToken: T,
133
144
  organizationId: X,
134
- configClient: O,
135
- gatewayRouting: k,
136
- linkComponent: A,
137
- uiFramework: j,
138
- implementation: M,
145
+ configClient: D,
146
+ gatewayRouting: O,
147
+ linkComponent: k,
148
+ uiFramework: A,
149
+ implementation: j,
139
150
  initResponse: J
140
151
  }), [
152
+ w,
141
153
  T,
142
- E,
143
154
  X,
155
+ D,
144
156
  O,
145
157
  k,
146
158
  A,
147
159
  j,
148
- M,
149
160
  J
150
- ]), tt = h(() => ({
151
- resolved: et,
152
- own: $e,
153
- refetch: Ge,
154
- loading: Ke,
155
- error: qe,
161
+ ]), nt = m(() => ({
162
+ resolved: tt,
163
+ own: et,
164
+ refetch: Ke,
165
+ loading: qe,
166
+ error: Je,
156
167
  analytics: Z,
157
- cascadeOrgId: D,
168
+ cascadeOrgId: E,
158
169
  initResponseStaleForToken: Y,
159
- disclosuresAcceptance: N,
160
- providerLabels: P
170
+ disclosuresAcceptance: M,
171
+ providerLabels: N
161
172
  }), [
173
+ tt,
162
174
  et,
163
- $e,
164
- Ge,
165
175
  Ke,
166
176
  qe,
177
+ Je,
167
178
  Z,
168
- D,
179
+ E,
169
180
  Y,
170
- N,
171
- P
172
- ]), nt = /* @__PURE__ */ v(se.Provider, {
173
- value: tt,
174
- children: /* @__PURE__ */ v(ee, {
175
- linkComponent: A,
176
- uiFramework: j,
177
- children: /* @__PURE__ */ v(re, { children: /* @__PURE__ */ v(he, {
178
- resetKeys: [E],
179
- errorFallback: Se,
180
- onError: Ce,
181
- labels: je,
182
- children: ge(J, S) ? /* @__PURE__ */ v(xe, {
183
- disclosuresAcceptance: N,
181
+ M,
182
+ N
183
+ ]), rt = /* @__PURE__ */ _(ce.Provider, {
184
+ value: nt,
185
+ children: /* @__PURE__ */ _(ee, {
186
+ linkComponent: k,
187
+ uiFramework: A,
188
+ children: /* @__PURE__ */ _(re, { children: /* @__PURE__ */ _(_e, {
189
+ resetKeys: [T],
190
+ errorFallback: we,
191
+ onError: Te,
192
+ labels: Ne,
193
+ children: ve(J, x) ? /* @__PURE__ */ _(Ce, {
194
+ disclosuresAcceptance: M,
184
195
  initStaleForToken: Y,
185
- labels: je
196
+ labels: Ne
186
197
  }) : ne
187
198
  }) })
188
199
  })
189
- }), $ = H ? /* @__PURE__ */ v(i, {
200
+ }), $ = H ? /* @__PURE__ */ _(i, {
190
201
  client: H,
191
202
  organizationId: X,
192
- widgetToken: E,
193
- installClientSecret: Re,
194
- authEpoch: Ve,
195
- organizationPending: Qe,
196
- children: nt
197
- }) : nt;
198
- return Q ? /* @__PURE__ */ v(be, {
203
+ widgetToken: T,
204
+ installClientSecret: ze,
205
+ authEpoch: He,
206
+ organizationStatus: $e,
207
+ children: rt
208
+ }) : rt;
209
+ return Q ? /* @__PURE__ */ _(Se, {
199
210
  client: Q,
200
211
  children: $
201
212
  }) : $;
202
213
  }
203
- function xe({ disclosuresAcceptance: e, initStaleForToken: t, labels: n }) {
204
- let r = ne("error-state") ?? s, i = u(), a = f(e), o = p({
214
+ function Ce({ disclosuresAcceptance: e, initStaleForToken: t, labels: n }) {
215
+ let r = ne("error-state") ?? s, i = l(), a = d(e), o = f({
205
216
  initStaleForToken: t,
206
217
  hasAcceptanceSurface: a
207
218
  });
208
- return m(() => {
209
- i(l.WidgetDisclosuresBlocked, { reason: o }), console.info(`[disclosures] widget blocked: ${o}`);
210
- }, [o, i]), t ? /* @__PURE__ */ v(r, {
219
+ return p(() => {
220
+ i(c.WidgetDisclosuresBlocked, { reason: o }), console.info(`[disclosures] widget blocked: ${o}`);
221
+ }, [o, i]), t ? /* @__PURE__ */ _(r, {
211
222
  title: n.disclosuresRefreshingTitle,
212
223
  description: n.disclosuresRefreshingDescription,
213
- testId: d,
224
+ testId: u,
214
225
  className: "ttw:w-full ttw:rounded-xl ttw:border ttw:border-border ttw:bg-card ttw:py-7 ttw:text-card-foreground ttw:shadow-sm"
215
- }) : a ? /* @__PURE__ */ v("div", {
216
- "data-testid": d,
226
+ }) : a ? /* @__PURE__ */ _("div", {
227
+ "data-testid": u,
217
228
  className: "ttw:w-full",
218
229
  children: e
219
- }) : /* @__PURE__ */ v(r, {
230
+ }) : /* @__PURE__ */ _(r, {
220
231
  title: n.disclosuresRequiredTitle,
221
- testId: d,
232
+ testId: u,
222
233
  className: "ttw:w-full ttw:rounded-xl ttw:border ttw:border-border ttw:bg-card ttw:py-7 ttw:text-card-foreground ttw:shadow-sm"
223
234
  });
224
235
  }
225
236
  //#endregion
226
- export { y as WidgetProvider, y as default };
237
+ export { v as WidgetProvider, v as default };
@@ -0,0 +1,6 @@
1
+ //#region ../../libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/deriveOrganizationStatus.js
2
+ function e({ organizationId: e, cascadeOrgId: t, ownsFetch: n, parentStatus: r, hasToken: i, loading: a, error: o, hasResult: s, initReplacementPending: c }) {
3
+ return i ? e ? "known" : t === void 0 ? n ? c ? "rotating" : a || !s && !o ? "pending" : o ? "failed" : "none" : r : "none" : "pending";
4
+ }
5
+ //#endregion
6
+ export { e as deriveOrganizationStatus };
@@ -54,7 +54,7 @@ function c(c, l, u) {
54
54
  error: g,
55
55
  clearedForAuthChange: v,
56
56
  initStaleForToken: k,
57
- initReplacementPending: k && !S,
57
+ initReplacementPending: k && D.current === c && !S,
58
58
  refetch: O
59
59
  };
60
60
  }
@@ -1,5 +1,5 @@
1
1
  //#region ../../libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
2
- var e = "@tesouro/embedded-components-react", t = "0.5.226", n = "3ee9f3410d47fae82423f572bb37e329dc798f87", r = Object.freeze({
2
+ var e = "@tesouro/embedded-components-react", t = "0.5.227", n = "5d413a6fc2962d365de306d5d524882f6212437a", r = Object.freeze({
3
3
  library_name: e,
4
4
  library_version: t,
5
5
  library_sha: n
@@ -10,7 +10,7 @@ import "../../../data-access/dist/index.js";
10
10
  import { useQuery as i } from "@tanstack/react-query";
11
11
  //#region ../../libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index10.js
12
12
  function a(a, { enabled: o = !0 } = {}) {
13
- let { client: s, organizationId: c, widgetToken: l, authEpoch: u, organizationPending: d } = n(), f = !!(c && l && a) && o, p = e({
13
+ let { client: s, organizationId: c, widgetToken: l, authEpoch: u, organizationStatus: d } = n(), f = !!(c && l && a) && o, p = e({
14
14
  query: { measure_unit_id: a ?? "" },
15
15
  client: s,
16
16
  headers: r(c)
@@ -18,7 +18,7 @@ function a(a, { enabled: o = !0 } = {}) {
18
18
  return i({
19
19
  ...t(p, {
20
20
  authEpoch: u,
21
- organizationPending: d
21
+ organizationStatus: d
22
22
  }),
23
23
  enabled: f
24
24
  });