@tesouro/embedded-components-react 0.7.53 → 0.7.57

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 (76) hide show
  1. package/README.md +13 -3
  2. package/dist/experimental/RemoteCheckCapture.d.ts +1 -32
  3. package/dist/experimental/index.d.ts +1 -32
  4. package/dist/index.css +12 -0
  5. package/dist/index.d.ts +58 -47
  6. package/dist/index.js +47 -46
  7. package/dist/lib/AcceptDisclosuresWidget.d.ts +1 -32
  8. package/dist/lib/BalancesWidget.d.ts +0 -31
  9. package/dist/lib/BankAccountOnboardingWidget.d.ts +1 -32
  10. package/dist/lib/BankAccountsWidget.d.ts +1 -32
  11. package/dist/lib/BankingComplianceBannerWidget.d.ts +643 -0
  12. package/dist/lib/BankingComplianceBannerWidget.js +5 -0
  13. package/dist/lib/BillPayWidget.d.ts +0 -31
  14. package/dist/lib/CardDetailsWidget.d.ts +1 -32
  15. package/dist/lib/CounterpartsWidget.d.ts +0 -31
  16. package/dist/lib/CounterpartsWidgetPublic.d.ts +0 -31
  17. package/dist/lib/CreditCardsWidget.d.ts +0 -31
  18. package/dist/lib/CustomersWidget.d.ts +1 -33
  19. package/dist/lib/DebitCardsWidget.d.ts +0 -31
  20. package/dist/lib/ExpenseManagementWidget.d.ts +0 -31
  21. package/dist/lib/InsightsWidget.d.ts +0 -31
  22. package/dist/lib/LinkedAccountsWidget.d.ts +1 -32
  23. package/dist/lib/OfferWidget.d.ts +1 -32
  24. package/dist/lib/ProductsWidget.d.ts +1 -32
  25. package/dist/lib/ReceivablesWidget.d.ts +1 -32
  26. package/dist/lib/SettingsWidget.d.ts +0 -31
  27. package/dist/lib/TransfersWidget.d.ts +0 -31
  28. package/dist/lib/WidgetProvider.d.ts +2 -33
  29. package/dist/lib/WidgetProvider.js +9 -10
  30. package/dist/lib/WidgetProviderPublic.d.ts +0 -31
  31. package/dist/lib/WidgetSuite.d.ts +1 -32
  32. package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/lib/AcceptDisclosuresWidget/AcceptDisclosuresWidget.js +8 -9
  33. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/BankAccountOnboardingWidget.js +395 -396
  34. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/lib/BankAccountsWidget/BankAccountsWidget.js +8 -9
  35. package/dist/libs/tesouro-embedded-components-react/banking-compliance-banner-widget/data-access/dist/index.js +3 -0
  36. package/dist/libs/tesouro-embedded-components-react/banking-compliance-banner-widget/data-access/dist/index2.js +7 -0
  37. package/dist/libs/tesouro-embedded-components-react/banking-compliance-banner-widget/data-access/dist/index3.js +42 -0
  38. package/dist/libs/tesouro-embedded-components-react/banking-compliance-banner-widget/feature/dist/index.js +4 -0
  39. package/dist/libs/tesouro-embedded-components-react/banking-compliance-banner-widget/feature/dist/lib/BankingComplianceBannerWidget/BankingComplianceBannerWidget.js +52 -0
  40. package/dist/libs/tesouro-embedded-components-react/banking-compliance-banner-widget/feature/dist/lib/BankingComplianceBannerWidget/isFdicBacked.js +8 -0
  41. package/dist/libs/tesouro-embedded-components-react/banking-compliance-banner-widget/feature/dist/lib/analytics/events.js +4 -0
  42. package/dist/libs/tesouro-embedded-components-react/banking-compliance-banner-widget/feature/dist/lib/testIds.js +10 -0
  43. package/dist/libs/tesouro-embedded-components-react/banking-compliance-banner-widget/ui/dist/index.js +3 -0
  44. package/dist/libs/tesouro-embedded-components-react/banking-compliance-banner-widget/ui/dist/index2.js +40 -0
  45. package/dist/libs/tesouro-embedded-components-react/banking-compliance-banner-widget/ui/dist/index3.js +10 -0
  46. package/dist/libs/tesouro-embedded-components-react/banking-compliance-banner-widget/ui/dist/index4.js +60 -0
  47. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index48.js +16 -18
  48. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/feature/dist/index8.js +8 -9
  49. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index20.js +8 -9
  50. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget/BillPayWidget.js +8 -9
  51. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index14.js +8 -9
  52. package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/lib/CardDetailsWidget.js +83 -84
  53. package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/feature/dist/index8.js +15 -16
  54. package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/lib/CardsWidget.js +8 -9
  55. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/CounterpartsWidget.js +9 -10
  56. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivablesWidget.js +25 -26
  57. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/lib/LinkedAccountsWidget.js +8 -9
  58. package/dist/libs/tesouro-embedded-components-react/offer-widget/feature/dist/lib/OfferWidget/OfferWidget.js +8 -9
  59. package/dist/libs/tesouro-embedded-components-react/products-widget/feature/dist/lib/ProductsWidget/ProductsWidget.js +8 -9
  60. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/feature/dist/lib/RemoteCheckCaptureWidget/RemoteCheckCaptureWidget.js +9 -10
  61. package/dist/libs/tesouro-embedded-components-react/settings-widget/chart-of-accounts/feature/dist/index8.js +8 -9
  62. package/dist/libs/tesouro-embedded-components-react/settings-widget/help/feature/dist/index3.js +8 -9
  63. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/feature/dist/index10.js +9 -10
  64. package/dist/libs/tesouro-embedded-components-react/settings-widget/profile/feature/dist/index4.js +8 -9
  65. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index17.js +8 -9
  66. package/dist/libs/tesouro-embedded-components-react/shared/bank-disclosures/feature/dist/lib/BankDisclosuresWidget/BankDisclosuresWidget.js +8 -9
  67. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/index.js +16 -17
  68. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/RootWidgetProvider.js +45 -49
  69. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/WidgetProvider.js +91 -95
  70. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/hooks.js +0 -1
  71. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/index.js +0 -1
  72. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/isDisclosuresAcceptanceRequired.js +2 -1
  73. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  74. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/lib/WidgetSuite/WidgetSuite.js +120 -121
  75. package/package.json +1 -1
  76. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/types.js +0 -8
@@ -55,7 +55,7 @@ function v({ labels: a, onDepositComplete: o }) {
55
55
  ]
56
56
  });
57
57
  }
58
- function y({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gatewayRouting: i, linkComponent: s, implementation: c, uiFramework: l, errorFallback: u, onError: d, analytics: f, disclosuresAcceptance: p, providerLabels: h, labels: g, onDepositComplete: _ }) {
58
+ function y({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gatewayRouting: i, linkComponent: s, uiFramework: c, errorFallback: l, onError: u, analytics: d, disclosuresAcceptance: f, providerLabels: p, labels: h, onDepositComplete: g }) {
59
59
  return /* @__PURE__ */ m(a, {
60
60
  widgetName: o,
61
61
  baseUrl: e,
@@ -64,16 +64,15 @@ function y({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gat
64
64
  configClient: r,
65
65
  gatewayRouting: i,
66
66
  linkComponent: s,
67
- implementation: c,
68
- uiFramework: l,
69
- errorFallback: u,
70
- onError: d,
71
- analytics: f,
72
- disclosuresAcceptance: p,
73
- providerLabels: h,
67
+ uiFramework: c,
68
+ errorFallback: l,
69
+ onError: u,
70
+ analytics: d,
71
+ disclosuresAcceptance: f,
72
+ providerLabels: p,
74
73
  children: /* @__PURE__ */ m(v, {
75
- labels: g,
76
- onDepositComplete: _
74
+ labels: h,
75
+ onDepositComplete: g
77
76
  })
78
77
  });
79
78
  }
@@ -111,7 +111,7 @@ function b({ onEdit: r, onDelete: o, onAdd: b, screenLabels: x, formLabels: S, d
111
111
  })
112
112
  ] })] });
113
113
  }
114
- function x({ baseUrl: e, widgetToken: t, organizationId: n, configClient: i, gatewayRouting: a, linkComponent: s, implementation: c, uiFramework: l, analytics: u, disclosuresAcceptance: d, providerLabels: f, errorFallback: p, onError: m, ...h }) {
114
+ function x({ baseUrl: e, widgetToken: t, organizationId: n, configClient: i, gatewayRouting: a, linkComponent: s, uiFramework: c, analytics: l, disclosuresAcceptance: u, providerLabels: d, errorFallback: f, onError: p, ...m }) {
115
115
  return /* @__PURE__ */ _(r, {
116
116
  widgetName: o,
117
117
  baseUrl: e,
@@ -120,14 +120,13 @@ function x({ baseUrl: e, widgetToken: t, organizationId: n, configClient: i, gat
120
120
  configClient: i,
121
121
  gatewayRouting: a,
122
122
  linkComponent: s,
123
- implementation: c,
124
- uiFramework: l,
125
- analytics: u,
126
- disclosuresAcceptance: d,
127
- providerLabels: f,
128
- errorFallback: p,
129
- onError: m,
130
- children: /* @__PURE__ */ _(b, { ...h })
123
+ uiFramework: c,
124
+ analytics: l,
125
+ disclosuresAcceptance: u,
126
+ providerLabels: d,
127
+ errorFallback: f,
128
+ onError: p,
129
+ children: /* @__PURE__ */ _(b, { ...m })
131
130
  });
132
131
  }
133
132
  //#endregion
@@ -29,7 +29,7 @@ function u({ faq: n = o, bankName: a, ...u }) {
29
29
  ...u
30
30
  });
31
31
  }
32
- function d({ baseUrl: e, widgetToken: t, organizationId: r, configClient: i, gatewayRouting: o, linkComponent: s, implementation: c, uiFramework: d, errorFallback: f, onError: p, analytics: m, disclosuresAcceptance: h, providerLabels: g, ..._ }) {
32
+ function d({ baseUrl: e, widgetToken: t, organizationId: r, configClient: i, gatewayRouting: o, linkComponent: s, uiFramework: c, errorFallback: d, onError: f, analytics: p, disclosuresAcceptance: m, providerLabels: h, ...g }) {
33
33
  return /* @__PURE__ */ l(n, {
34
34
  widgetName: a,
35
35
  baseUrl: e,
@@ -38,14 +38,13 @@ function d({ baseUrl: e, widgetToken: t, organizationId: r, configClient: i, gat
38
38
  configClient: i,
39
39
  gatewayRouting: o,
40
40
  linkComponent: s,
41
- implementation: c,
42
- uiFramework: d,
43
- errorFallback: f,
44
- onError: p,
45
- analytics: m,
46
- disclosuresAcceptance: h,
47
- providerLabels: g,
48
- children: /* @__PURE__ */ l(u, { ..._ })
41
+ uiFramework: c,
42
+ errorFallback: d,
43
+ onError: f,
44
+ analytics: p,
45
+ disclosuresAcceptance: m,
46
+ providerLabels: h,
47
+ children: /* @__PURE__ */ l(u, { ...g })
49
48
  });
50
49
  }
51
50
  //#endregion
@@ -120,7 +120,7 @@ function T({ handleRef: r, panelLabels: o, logoLabels: u, dropzoneLabels: f, mes
120
120
  ...m
121
121
  }, N);
122
122
  }
123
- function E({ baseUrl: e, widgetToken: t, organizationId: n, configClient: i, gatewayRouting: a, linkComponent: s, implementation: c, uiFramework: l, analytics: u, disclosuresAcceptance: d, providerLabels: f, errorFallback: p, onError: m, ref: h, ...g }) {
123
+ function E({ baseUrl: e, widgetToken: t, organizationId: n, configClient: i, gatewayRouting: a, linkComponent: s, uiFramework: c, analytics: l, disclosuresAcceptance: u, providerLabels: d, errorFallback: f, onError: p, ref: m, ...h }) {
124
124
  return /* @__PURE__ */ S(r, {
125
125
  widgetName: o,
126
126
  baseUrl: e,
@@ -129,16 +129,15 @@ function E({ baseUrl: e, widgetToken: t, organizationId: n, configClient: i, gat
129
129
  configClient: i,
130
130
  gatewayRouting: a,
131
131
  linkComponent: s,
132
- implementation: c,
133
- uiFramework: l,
134
- analytics: u,
135
- disclosuresAcceptance: d,
136
- providerLabels: f,
137
- errorFallback: p,
138
- onError: m,
132
+ uiFramework: c,
133
+ analytics: l,
134
+ disclosuresAcceptance: u,
135
+ providerLabels: d,
136
+ errorFallback: f,
137
+ onError: p,
139
138
  children: /* @__PURE__ */ S(T, {
140
- handleRef: h,
141
- ...g
139
+ handleRef: m,
140
+ ...h
142
141
  })
143
142
  });
144
143
  }
@@ -93,7 +93,7 @@ function v({ labels: i, featureLabels: c, contactUrl: v }) {
93
93
  isError: P
94
94
  });
95
95
  }
96
- function y({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gatewayRouting: a, linkComponent: o, implementation: s, uiFramework: l, errorFallback: u, onError: d, analytics: f, disclosuresAcceptance: p, providerLabels: h, ...g }) {
96
+ function y({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gatewayRouting: a, linkComponent: o, uiFramework: s, errorFallback: l, onError: u, analytics: d, disclosuresAcceptance: f, providerLabels: p, ...h }) {
97
97
  return /* @__PURE__ */ m(i, {
98
98
  widgetName: c,
99
99
  baseUrl: e,
@@ -102,14 +102,13 @@ function y({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gat
102
102
  configClient: r,
103
103
  gatewayRouting: a,
104
104
  linkComponent: o,
105
- implementation: s,
106
- uiFramework: l,
107
- errorFallback: u,
108
- onError: d,
109
- analytics: f,
110
- disclosuresAcceptance: p,
111
- providerLabels: h,
112
- children: /* @__PURE__ */ m(v, { ...g })
105
+ uiFramework: s,
106
+ errorFallback: l,
107
+ onError: u,
108
+ analytics: d,
109
+ disclosuresAcceptance: f,
110
+ providerLabels: p,
111
+ children: /* @__PURE__ */ m(v, { ...h })
113
112
  });
114
113
  }
115
114
  //#endregion
@@ -356,7 +356,7 @@ function h({ labels: i, featureLabels: o, acceptInviteRedirectUri: h }) {
356
356
  })
357
357
  ] });
358
358
  }
359
- function g({ baseUrl: e, widgetToken: ee, organizationId: te, configClient: t, gatewayRouting: n, linkComponent: r, implementation: ne, uiFramework: re, errorFallback: ie, onError: ae, analytics: oe, disclosuresAcceptance: se, providerLabels: a, ...ce }) {
359
+ function g({ baseUrl: e, widgetToken: ee, organizationId: te, configClient: t, gatewayRouting: n, linkComponent: r, uiFramework: ne, errorFallback: re, onError: ie, analytics: ae, disclosuresAcceptance: oe, providerLabels: se, ...a }) {
360
360
  return /* @__PURE__ */ f(i, {
361
361
  widgetName: o,
362
362
  baseUrl: e,
@@ -365,14 +365,13 @@ function g({ baseUrl: e, widgetToken: ee, organizationId: te, configClient: t, g
365
365
  configClient: t,
366
366
  gatewayRouting: n,
367
367
  linkComponent: r,
368
- implementation: ne,
369
- uiFramework: re,
370
- errorFallback: ie,
371
- onError: ae,
372
- analytics: oe,
373
- disclosuresAcceptance: se,
374
- providerLabels: a,
375
- children: /* @__PURE__ */ f(h, { ...ce })
368
+ uiFramework: ne,
369
+ errorFallback: re,
370
+ onError: ie,
371
+ analytics: ae,
372
+ disclosuresAcceptance: oe,
373
+ providerLabels: se,
374
+ children: /* @__PURE__ */ f(h, { ...a })
376
375
  });
377
376
  }
378
377
  //#endregion
@@ -40,7 +40,7 @@ function p({ labels: n }) {
40
40
  testIds: c
41
41
  });
42
42
  }
43
- function m({ baseUrl: e, widgetToken: t, organizationId: r, configClient: i, gatewayRouting: a, linkComponent: s, implementation: c, uiFramework: l, errorFallback: u, onError: d, analytics: m, disclosuresAcceptance: h, providerLabels: g, ..._ }) {
43
+ function m({ baseUrl: e, widgetToken: t, organizationId: r, configClient: i, gatewayRouting: a, linkComponent: s, uiFramework: c, errorFallback: l, onError: u, analytics: d, disclosuresAcceptance: m, providerLabels: h, ...g }) {
44
44
  return /* @__PURE__ */ f(n, {
45
45
  widgetName: o,
46
46
  baseUrl: e,
@@ -49,14 +49,13 @@ function m({ baseUrl: e, widgetToken: t, organizationId: r, configClient: i, gat
49
49
  configClient: i,
50
50
  gatewayRouting: a,
51
51
  linkComponent: s,
52
- implementation: c,
53
- uiFramework: l,
54
- errorFallback: u,
55
- onError: d,
56
- analytics: m,
57
- disclosuresAcceptance: h,
58
- providerLabels: g,
59
- children: /* @__PURE__ */ f(p, { ..._ })
52
+ uiFramework: c,
53
+ errorFallback: l,
54
+ onError: u,
55
+ analytics: d,
56
+ disclosuresAcceptance: m,
57
+ providerLabels: h,
58
+ children: /* @__PURE__ */ f(p, { ...g })
60
59
  });
61
60
  }
62
61
  //#endregion
@@ -1,23 +1,22 @@
1
1
  import { cloneEmbeddedClient as e } from "../../data-access/dist/lib/createEmbeddedClient.js";
2
2
  import "../../data-access/dist/index.js";
3
- import { Implementation as t } from "./lib/WidgetProvider/types.js";
4
- import { getGlobalWidgetConfig as n, setGlobalWidgetConfig as r, updateGlobalWidgetConfig as i } from "./lib/WidgetProvider/globalStore.js";
5
- import { getGlobalWidgetInitState as a, subscribeToGlobalWidgetInitState as o } from "./lib/WidgetProvider/widgetInitChannel.js";
3
+ import { getGlobalWidgetConfig as t, setGlobalWidgetConfig as n, updateGlobalWidgetConfig as r } from "./lib/WidgetProvider/globalStore.js";
4
+ import { getGlobalWidgetInitState as i, subscribeToGlobalWidgetInitState as a } from "./lib/WidgetProvider/widgetInitChannel.js";
6
5
  import "./lib/analytics/events.js";
7
6
  import "./lib/analytics/runtime.js";
8
- import { RootWidgetProvider as s } from "./lib/WidgetProvider/RootWidgetProvider.js";
9
- import { useAnalyticsCaptureException as c, useAnalyticsTrack as l } from "./lib/analytics/hooks.js";
10
- import { WidgetProvider as u } from "./lib/WidgetProvider/WidgetProvider.js";
11
- import { WidgetTokenRefreshProvider as d } from "./lib/WidgetProvider/WidgetTokenRefreshProvider.js";
12
- import { useOptionalWidgetToken as f, useWidgetToken as p } from "./lib/WidgetProvider/useWidgetToken.js";
13
- import { RefreshingRootWidgetProvider as m } from "./lib/WidgetProvider/RefreshingRootWidgetProvider.js";
14
- import { useDisclosuresAcceptanceSurface as h, useOwnWidgetConfig as g, useRefetchWidget as _, useWidgetConfig as v, useWidgetError as y, useWidgetInitStaleForToken as b, useWidgetLoading as x } from "./lib/WidgetProvider/hooks.js";
7
+ import { RootWidgetProvider as o } from "./lib/WidgetProvider/RootWidgetProvider.js";
8
+ import { useAnalyticsCaptureException as s, useAnalyticsTrack as c } from "./lib/analytics/hooks.js";
9
+ import { WidgetProvider as l } from "./lib/WidgetProvider/WidgetProvider.js";
10
+ import { WidgetTokenRefreshProvider as u } from "./lib/WidgetProvider/WidgetTokenRefreshProvider.js";
11
+ import { useOptionalWidgetToken as d, useWidgetToken as f } from "./lib/WidgetProvider/useWidgetToken.js";
12
+ import { RefreshingRootWidgetProvider as p } from "./lib/WidgetProvider/RefreshingRootWidgetProvider.js";
13
+ import { useDisclosuresAcceptanceSurface as m, useOwnWidgetConfig as h, useRefetchWidget as g, useWidgetConfig as _, useWidgetError as v, useWidgetInitStaleForToken as y, useWidgetLoading as b } from "./lib/WidgetProvider/hooks.js";
15
14
  import "./lib/WidgetProvider/index.js";
16
- import { getNaicsOptions as S } from "./lib/naicsCodeMap.js";
17
- import { useOrganizationUserNames as C } from "./lib/user/useOrganizationUserNames.js";
18
- import { useLocalCalendarDay as w } from "./lib/calendar/useLocalCalendarDay.js";
19
- import { CardProgram as T } from "./lib/card/cardProgram.js";
20
- import { CARD_STATUS_LABELS_EN as E, CARD_STATUS_TONE as D, CARD_TYPE_LABELS_EN as O } from "./lib/card/cardPresentation.js";
21
- import { deniedNoticeExpiresAt as k, selectBankAccountApplication as A } from "./lib/application/bankAccountApplication.js";
15
+ import { getNaicsOptions as x } from "./lib/naicsCodeMap.js";
16
+ import { useOrganizationUserNames as S } from "./lib/user/useOrganizationUserNames.js";
17
+ import { useLocalCalendarDay as C } from "./lib/calendar/useLocalCalendarDay.js";
18
+ import { CardProgram as w } from "./lib/card/cardProgram.js";
19
+ import { CARD_STATUS_LABELS_EN as T, CARD_STATUS_TONE as E, CARD_TYPE_LABELS_EN as D } from "./lib/card/cardPresentation.js";
20
+ import { deniedNoticeExpiresAt as O, selectBankAccountApplication as k } from "./lib/application/bankAccountApplication.js";
22
21
  import "./lib/analytics/index.js";
23
- export { E as CARD_STATUS_LABELS_EN, D as CARD_STATUS_TONE, O as CARD_TYPE_LABELS_EN, T as CardProgram, t as Implementation, m as RefreshingRootWidgetProvider, s as RootWidgetProvider, u as WidgetProvider, d as WidgetTokenRefreshProvider, e as cloneEmbeddedClient, k as deniedNoticeExpiresAt, n as getGlobalWidgetConfig, a as getGlobalWidgetInitState, S as getNaicsOptions, A as selectBankAccountApplication, r as setGlobalWidgetConfig, o as subscribeToGlobalWidgetInitState, i as updateGlobalWidgetConfig, c as useAnalyticsCaptureException, l as useAnalyticsTrack, h as useDisclosuresAcceptanceSurface, w as useLocalCalendarDay, f as useOptionalWidgetToken, C as useOrganizationUserNames, g as useOwnWidgetConfig, _ as useRefetchWidget, v as useWidgetConfig, y as useWidgetError, b as useWidgetInitStaleForToken, x as useWidgetLoading, p as useWidgetToken };
22
+ export { T as CARD_STATUS_LABELS_EN, E as CARD_STATUS_TONE, D as CARD_TYPE_LABELS_EN, w as CardProgram, p as RefreshingRootWidgetProvider, o as RootWidgetProvider, l as WidgetProvider, u as WidgetTokenRefreshProvider, e as cloneEmbeddedClient, O as deniedNoticeExpiresAt, t as getGlobalWidgetConfig, i as getGlobalWidgetInitState, x as getNaicsOptions, k as selectBankAccountApplication, n as setGlobalWidgetConfig, a as subscribeToGlobalWidgetInitState, r as updateGlobalWidgetConfig, s as useAnalyticsCaptureException, c as useAnalyticsTrack, m as useDisclosuresAcceptanceSurface, C as useLocalCalendarDay, d as useOptionalWidgetToken, S as useOrganizationUserNames, h as useOwnWidgetConfig, g as useRefetchWidget, _ as useWidgetConfig, v as useWidgetError, y as useWidgetInitStaleForToken, b as useWidgetLoading, f as useWidgetToken };
@@ -19,30 +19,30 @@ import { resolveOrgId as o, useAuthEpoch as s } from "./utils.js";
19
19
  import { useWidgetFetch as se } from "./useWidgetFetch.js";
20
20
  import { deriveOrganizationStatus as ce } from "./deriveOrganizationStatus.js";
21
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";
22
+ import { useEffect as c, useMemo as l, useRef as u, useState as d, useSyncExternalStore as f } from "react";
23
+ import { jsx as p } from "react/jsx-runtime";
24
+ import { QueryClient as m, QueryClientProvider as de } from "@tanstack/react-query";
25
25
  //#region ../../libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/RootWidgetProvider.js
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 }) {
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({
28
- enabled: I,
26
+ function h({ children: h, baseUrl: g, widgetToken: _, organizationId: v, configClient: y, gatewayRouting: b, linkComponent: x, uiFramework: S, analytics: C, unstable_initResponseOverride: w, disclosuresAcceptance: T, providerLabels: E }) {
27
+ let D = f(ie, i, i), O = g ?? D.baseUrl, k = _ === void 0 ? D.widgetToken : _, A = v === void 0 ? D.organizationId : v, j = y ?? D.configClient, M = b ?? D.gatewayRouting, N = x ?? D.linkComponent, P = S ?? D.uiFramework, F = C !== !1, [I] = d(oe), L = u({
28
+ enabled: F,
29
29
  organizationId: A,
30
- rootCorrelationId: L
31
- }), [z] = d(() => new p({ defaultOptions: {
30
+ rootCorrelationId: I
31
+ }), [R] = d(() => new m({ defaultOptions: {
32
32
  queries: {
33
33
  retry: !1,
34
34
  refetchOnWindowFocus: !1
35
35
  },
36
36
  mutations: { retry: !1 }
37
37
  } }));
38
- c(() => (t(z), () => ee(z)), [z]);
39
- let B = u(k);
40
- B.current = k;
41
- let V = u(null), pe = l(() => e(V), []), me = s(k), H = l(() => {
38
+ c(() => (t(R), () => ee(R)), [R]);
39
+ let z = u(k);
40
+ z.current = k;
41
+ let B = u(null), V = l(() => e(B), []), fe = s(k), H = l(() => {
42
42
  let e = ae(te(O), {
43
- tokenRef: B,
44
- analyticsContextRef: R,
45
- clientSecretRef: V,
43
+ tokenRef: z,
44
+ analyticsContextRef: L,
45
+ clientSecretRef: B,
46
46
  gatewayRouting: M
47
47
  });
48
48
  return j ? j(e) : e;
@@ -52,19 +52,19 @@ function m({ children: m, baseUrl: h, widgetToken: g, organizationId: _, configC
52
52
  M
53
53
  ]);
54
54
  c(() => {
55
- if (!I || !("window" in globalThis)) return;
55
+ if (!F || !("window" in globalThis)) return;
56
56
  let e = !1;
57
57
  return import("../analytics/install.js").then(({ ensureAnalyticsAdapterInstalled: t }) => {
58
58
  e || t();
59
59
  }), () => {
60
60
  e = !0;
61
61
  };
62
- }, [I]);
62
+ }, [F]);
63
63
  let U = re(r(P));
64
64
  c(() => {
65
65
  U && U().catch(() => {});
66
66
  }, [U]);
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({
67
+ let { result: pe, loading: W, error: G, initStaleForToken: me, initReplacementPending: K, refetch: q } = se(w ? null : H, k, L), J = k ? w ?? pe ?? void 0 : void 0, Y = !w && me, X = o(A, Y ? void 0 : J?.organizationId), he = ce({
68
68
  organizationId: X,
69
69
  cascadeOrgId: A,
70
70
  ownsFetch: !0,
@@ -73,8 +73,8 @@ function m({ children: m, baseUrl: h, widgetToken: g, organizationId: _, configC
73
73
  loading: W,
74
74
  error: G,
75
75
  hasResult: !!J,
76
- initReplacementPending: ge
77
- }), ve = l(() => le({
76
+ initReplacementPending: K
77
+ }), ge = l(() => le({
78
78
  hasToken: !!k,
79
79
  loading: W,
80
80
  error: G,
@@ -87,28 +87,26 @@ function m({ children: m, baseUrl: h, widgetToken: g, organizationId: _, configC
87
87
  J,
88
88
  Y
89
89
  ]);
90
- ue(ve, k);
90
+ ue(ge, k);
91
91
  let Z = l(() => ({
92
- enabled: I,
92
+ enabled: F,
93
93
  organizationId: X,
94
- rootCorrelationId: L
94
+ rootCorrelationId: I
95
95
  }), [
96
- I,
96
+ F,
97
97
  X,
98
- L
98
+ I
99
99
  ]);
100
- R.current = Z;
100
+ L.current = Z;
101
101
  let Q = l(() => ({
102
- baseUrl: h,
103
- widgetToken: g,
104
- organizationId: _,
105
- configClient: v,
106
- gatewayRouting: y,
107
- linkComponent: b,
108
- uiFramework: x,
109
- implementation: S
102
+ baseUrl: g,
103
+ widgetToken: _,
104
+ organizationId: v,
105
+ configClient: y,
106
+ gatewayRouting: b,
107
+ linkComponent: x,
108
+ uiFramework: S
110
109
  }), [
111
- h,
112
110
  g,
113
111
  _,
114
112
  v,
@@ -124,7 +122,6 @@ function m({ children: m, baseUrl: h, widgetToken: g, organizationId: _, configC
124
122
  gatewayRouting: M,
125
123
  linkComponent: N,
126
124
  uiFramework: P,
127
- implementation: F,
128
125
  initResponse: J
129
126
  }), [
130
127
  O,
@@ -134,9 +131,8 @@ function m({ children: m, baseUrl: h, widgetToken: g, organizationId: _, configC
134
131
  M,
135
132
  N,
136
133
  P,
137
- F,
138
134
  J
139
- ]), ye = l(() => ({
135
+ ]), _e = l(() => ({
140
136
  resolved: $,
141
137
  own: Q,
142
138
  refetch: q,
@@ -159,25 +155,25 @@ function m({ children: m, baseUrl: h, widgetToken: g, organizationId: _, configC
159
155
  T,
160
156
  E
161
157
  ]);
162
- return /* @__PURE__ */ f(fe, {
163
- client: z,
164
- children: /* @__PURE__ */ f(n, {
158
+ return /* @__PURE__ */ p(de, {
159
+ client: R,
160
+ children: /* @__PURE__ */ p(n, {
165
161
  client: H,
166
162
  organizationId: X,
167
163
  widgetToken: k,
168
- installClientSecret: pe,
169
- authEpoch: me,
170
- organizationStatus: _e,
171
- children: /* @__PURE__ */ f(a.Provider, {
172
- value: ye,
173
- children: /* @__PURE__ */ f(ne, {
164
+ installClientSecret: V,
165
+ authEpoch: fe,
166
+ organizationStatus: he,
167
+ children: /* @__PURE__ */ p(a.Provider, {
168
+ value: _e,
169
+ children: /* @__PURE__ */ p(ne, {
174
170
  linkComponent: N,
175
171
  uiFramework: P,
176
- children: m
172
+ children: h
177
173
  })
178
174
  })
179
175
  })
180
176
  });
181
177
  }
182
178
  //#endregion
183
- export { m as RootWidgetProvider };
179
+ export { h as RootWidgetProvider };