@tesouro/embedded-components-react 0.2.267 → 0.2.270

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 (66) hide show
  1. package/README.md +15 -12
  2. package/dist/experimental/WidgetSuite.d.ts +25 -1
  3. package/dist/experimental/index.d.ts +25 -1
  4. package/dist/index.css +3 -0
  5. package/dist/index.d.ts +46 -22
  6. package/dist/lib/AcceptDisclosuresWidget.d.ts +25 -1
  7. package/dist/lib/BalancesWidget.d.ts +24 -0
  8. package/dist/lib/BankAccountOnboardingWidget.d.ts +25 -1
  9. package/dist/lib/BankAccountsWidget.d.ts +25 -1
  10. package/dist/lib/BillPayWidget.d.ts +24 -0
  11. package/dist/lib/CardDetailsWidget.d.ts +25 -1
  12. package/dist/lib/CardsWidget.d.ts +25 -1
  13. package/dist/lib/ChartOfAccountsWidget.d.ts +25 -1
  14. package/dist/lib/CounterpartsWidget.d.ts +25 -1
  15. package/dist/lib/CreateCardWidget.d.ts +25 -1
  16. package/dist/lib/ExpenseApprovalPoliciesWidget.d.ts +25 -1
  17. package/dist/lib/ExpenseManagementWidget.d.ts +25 -1
  18. package/dist/lib/ExpenseRequirementsWidget.d.ts +25 -1
  19. package/dist/lib/HelpWidget.d.ts +25 -1
  20. package/dist/lib/InsightsWidget.d.ts +24 -0
  21. package/dist/lib/InvoicingWidget.d.ts +25 -1
  22. package/dist/lib/LinkedAccountsWidget.d.ts +25 -1
  23. package/dist/lib/ProductsWidget.d.ts +25 -1
  24. package/dist/lib/ProfileWidget.d.ts +25 -1
  25. package/dist/lib/ReceiptMatchWidget.d.ts +25 -1
  26. package/dist/lib/ReceivablesWidget.d.ts +25 -1
  27. package/dist/lib/SettingsWidget.d.ts +25 -1
  28. package/dist/lib/TagsWidget.d.ts +25 -1
  29. package/dist/lib/TeamWidget.d.ts +25 -1
  30. package/dist/lib/TransfersWidget.d.ts +24 -0
  31. package/dist/lib/WidgetProvider.d.ts +25 -1
  32. package/dist/lib/WidgetProviderPublic.d.ts +24 -0
  33. package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/index4.js +9 -8
  34. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index17.js +122 -121
  35. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/index8.js +9 -8
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index15.js +11 -10
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index28.js +9 -8
  38. package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/index6.js +9 -8
  39. package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/index7.js +1 -1
  40. package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/index8.js +9 -8
  41. package/dist/libs/tesouro-embedded-components-react/cards-widget/ui/dist/lib/CardsList/CardsList.js +1 -1
  42. package/dist/libs/tesouro-embedded-components-react/cards-widget/ui/dist/lib/CardsList/CardsListDetailsSheet.js +1 -1
  43. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/index8.js +9 -8
  44. package/dist/libs/tesouro-embedded-components-react/create-card-widget/feature/dist/index7.js +94 -93
  45. package/dist/libs/tesouro-embedded-components-react/expense-approval-policies-widget/feature/dist/lib/ExpenseApprovalPoliciesWidgetFeature.js +7 -6
  46. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index3.js +9 -8
  47. package/dist/libs/tesouro-embedded-components-react/expense-receipt-match-widget/feature/dist/lib/ReceiptMatchWidget.js +12 -11
  48. package/dist/libs/tesouro-embedded-components-react/expense-requirements-widget/feature/dist/lib/ExpenseRequirementsWidget.js +7 -6
  49. package/dist/libs/tesouro-embedded-components-react/gl-code-table-widget/feature/dist/index8.js +9 -8
  50. package/dist/libs/tesouro-embedded-components-react/help-widget/feature/dist/index3.js +9 -8
  51. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index12.js +9 -8
  52. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index3.js +10 -9
  53. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/index9.js +9 -8
  54. package/dist/libs/tesouro-embedded-components-react/products-widget/feature/dist/index8.js +9 -8
  55. package/dist/libs/tesouro-embedded-components-react/profile-widget/feature/dist/index4.js +9 -8
  56. package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index6.js +10 -9
  57. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +22 -21
  58. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/widgetGatewayHosts.js +14 -0
  59. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/RootWidgetProvider.js +76 -67
  60. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/WidgetProvider.js +107 -101
  61. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  62. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/client.js +12 -4
  63. package/dist/libs/tesouro-embedded-components-react/tags-widget/feature/dist/index11.js +9 -8
  64. package/dist/libs/tesouro-embedded-components-react/team-widget/feature/dist/index17.js +106 -105
  65. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index6.js +9 -8
  66. package/package.json +1 -1
@@ -29,20 +29,21 @@ 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, linkComponent: o, implementation: s, uiFramework: c, errorFallback: d, onError: f, analytics: p, ...m }) {
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, ...h }) {
33
33
  return /* @__PURE__ */ l(n, {
34
34
  widgetName: a,
35
35
  baseUrl: e,
36
36
  widgetToken: t,
37
37
  organizationId: r,
38
38
  configClient: i,
39
- linkComponent: o,
40
- implementation: s,
41
- uiFramework: c,
42
- errorFallback: d,
43
- onError: f,
44
- analytics: p,
45
- children: /* @__PURE__ */ l(u, { ...m })
39
+ gatewayRouting: o,
40
+ linkComponent: s,
41
+ implementation: c,
42
+ uiFramework: d,
43
+ errorFallback: f,
44
+ onError: p,
45
+ analytics: m,
46
+ children: /* @__PURE__ */ l(u, { ...h })
46
47
  });
47
48
  }
48
49
  //#endregion
@@ -212,20 +212,21 @@ function S({ counterpartFormLabels: t, counterpartMessageLabels: a, defaultTab:
212
212
  })
213
213
  ] });
214
214
  }
215
- function C({ baseUrl: e, widgetToken: n, organizationId: r, configClient: i, linkComponent: o, implementation: s, uiFramework: c, errorFallback: l, onError: u, analytics: d, ...f }) {
215
+ function C({ baseUrl: e, widgetToken: n, organizationId: r, configClient: i, gatewayRouting: o, linkComponent: s, implementation: c, uiFramework: l, errorFallback: u, onError: d, analytics: f, ...p }) {
216
216
  return /* @__PURE__ */ b(t, {
217
217
  widgetName: a,
218
218
  baseUrl: e,
219
219
  widgetToken: n,
220
220
  organizationId: r,
221
221
  configClient: i,
222
- linkComponent: o,
223
- implementation: s,
224
- uiFramework: c,
225
- errorFallback: l,
226
- onError: u,
227
- analytics: d,
228
- children: /* @__PURE__ */ b(S, { ...f })
222
+ gatewayRouting: o,
223
+ linkComponent: s,
224
+ implementation: c,
225
+ uiFramework: l,
226
+ errorFallback: u,
227
+ onError: d,
228
+ analytics: f,
229
+ children: /* @__PURE__ */ b(S, { ...p })
229
230
  });
230
231
  }
231
232
  //#endregion
@@ -19,22 +19,23 @@ function c(n) {
19
19
  i(r.Mounted);
20
20
  }, [i]), /* @__PURE__ */ o(t, { ...n });
21
21
  }
22
- function l({ baseUrl: e, widgetToken: t, organizationId: r, configClient: a, linkComponent: l, errorFallback: u, onError: d, finopsThemeColors: f, analytics: p, pageTitleComponent: m = s, uiFramework: h, ...g }) {
22
+ function l({ baseUrl: e, widgetToken: t, organizationId: r, configClient: a, gatewayRouting: l, linkComponent: u, errorFallback: d, onError: f, finopsThemeColors: p, analytics: m, pageTitleComponent: h = s, uiFramework: g, ..._ }) {
23
23
  return /* @__PURE__ */ o(n, {
24
24
  widgetName: i,
25
25
  baseUrl: e,
26
26
  widgetToken: t,
27
27
  organizationId: r,
28
28
  configClient: a,
29
- linkComponent: l,
30
- errorFallback: u,
31
- onError: d,
32
- finopsThemeColors: f,
33
- analytics: p,
34
- uiFramework: h,
29
+ gatewayRouting: l,
30
+ linkComponent: u,
31
+ errorFallback: d,
32
+ onError: f,
33
+ finopsThemeColors: p,
34
+ analytics: m,
35
+ uiFramework: g,
35
36
  children: /* @__PURE__ */ o(c, {
36
- ...g,
37
- pageTitleComponent: m
37
+ ..._,
38
+ pageTitleComponent: h
38
39
  })
39
40
  });
40
41
  }
@@ -22,20 +22,21 @@ function c({ labels: t, featureLabels: n }) {
22
22
  ...c
23
23
  })] });
24
24
  }
25
- function l({ baseUrl: e, widgetToken: r, organizationId: i, configClient: a, linkComponent: s, implementation: l, uiFramework: u, errorFallback: d, onError: f, analytics: p, ...m }) {
25
+ function l({ baseUrl: e, widgetToken: r, organizationId: i, configClient: a, gatewayRouting: s, linkComponent: l, implementation: u, uiFramework: d, errorFallback: f, onError: p, analytics: m, ...h }) {
26
26
  return /* @__PURE__ */ o(t, {
27
27
  widgetName: n,
28
28
  baseUrl: e,
29
29
  widgetToken: r,
30
30
  organizationId: i,
31
31
  configClient: a,
32
- linkComponent: s,
33
- implementation: l,
34
- uiFramework: u,
35
- errorFallback: d,
36
- onError: f,
37
- analytics: p,
38
- children: /* @__PURE__ */ o(c, { ...m })
32
+ gatewayRouting: s,
33
+ linkComponent: l,
34
+ implementation: u,
35
+ uiFramework: d,
36
+ errorFallback: f,
37
+ onError: p,
38
+ analytics: m,
39
+ children: /* @__PURE__ */ o(c, { ...h })
39
40
  });
40
41
  }
41
42
  //#endregion
@@ -103,20 +103,21 @@ function h({ pageSizeOptions: t = o, screenLabels: a, formLabels: h, detailsLabe
103
103
  })
104
104
  ] });
105
105
  }
106
- function g({ baseUrl: e, widgetToken: n, organizationId: r, configClient: i, linkComponent: o, implementation: s, uiFramework: c, errorFallback: l, onError: u, analytics: d, ...f }) {
106
+ function g({ baseUrl: e, widgetToken: n, organizationId: r, configClient: i, gatewayRouting: o, linkComponent: s, implementation: c, uiFramework: l, errorFallback: u, onError: d, analytics: f, ...m }) {
107
107
  return /* @__PURE__ */ p(t, {
108
108
  widgetName: a,
109
109
  baseUrl: e,
110
110
  widgetToken: n,
111
111
  organizationId: r,
112
112
  configClient: i,
113
- linkComponent: o,
114
- implementation: s,
115
- uiFramework: c,
116
- errorFallback: l,
117
- onError: u,
118
- analytics: d,
119
- children: /* @__PURE__ */ p(h, { ...f })
113
+ gatewayRouting: o,
114
+ linkComponent: s,
115
+ implementation: c,
116
+ uiFramework: l,
117
+ errorFallback: u,
118
+ onError: d,
119
+ analytics: f,
120
+ children: /* @__PURE__ */ p(h, { ...m })
120
121
  });
121
122
  }
122
123
  //#endregion
@@ -100,20 +100,21 @@ function v({ labels: t, featureLabels: o, contactUrl: v }) {
100
100
  isError: k
101
101
  });
102
102
  }
103
- function y({ baseUrl: e, widgetToken: n, organizationId: r, configClient: i, linkComponent: a, implementation: s, uiFramework: c, errorFallback: l, onError: u, analytics: d, ...p }) {
103
+ function y({ baseUrl: e, widgetToken: n, organizationId: r, configClient: i, gatewayRouting: a, linkComponent: s, implementation: c, uiFramework: l, errorFallback: u, onError: d, analytics: p, ...m }) {
104
104
  return /* @__PURE__ */ f(t, {
105
105
  widgetName: o,
106
106
  baseUrl: e,
107
107
  widgetToken: n,
108
108
  organizationId: r,
109
109
  configClient: i,
110
- linkComponent: a,
111
- implementation: s,
112
- uiFramework: c,
113
- errorFallback: l,
114
- onError: u,
115
- analytics: d,
116
- children: /* @__PURE__ */ f(v, { ...p })
110
+ gatewayRouting: a,
111
+ linkComponent: s,
112
+ implementation: c,
113
+ uiFramework: l,
114
+ errorFallback: u,
115
+ onError: d,
116
+ analytics: p,
117
+ children: /* @__PURE__ */ f(v, { ...m })
117
118
  });
118
119
  }
119
120
  //#endregion
@@ -112,21 +112,22 @@ function C({ labels: t, featureLabels: o, acceptInviteRedirectUri: m, helpContac
112
112
  onSectionChange: W
113
113
  });
114
114
  }
115
- function w({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, linkComponent: i, implementation: a, uiFramework: s, errorFallback: c, onError: l, finopsThemeColors: u, analytics: d, ...f }) {
115
+ function w({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gatewayRouting: i, linkComponent: a, implementation: s, uiFramework: c, errorFallback: l, onError: u, finopsThemeColors: d, analytics: f, ...p }) {
116
116
  return /* @__PURE__ */ b(o, {
117
117
  widgetName: m,
118
118
  baseUrl: e,
119
119
  widgetToken: t,
120
120
  organizationId: n,
121
121
  configClient: r,
122
- linkComponent: i,
123
- implementation: a,
124
- uiFramework: s,
125
- errorFallback: c,
126
- onError: l,
127
- finopsThemeColors: u,
128
- analytics: d,
129
- children: /* @__PURE__ */ b(C, { ...f })
122
+ gatewayRouting: i,
123
+ linkComponent: a,
124
+ implementation: s,
125
+ uiFramework: c,
126
+ errorFallback: l,
127
+ onError: u,
128
+ finopsThemeColors: d,
129
+ analytics: f,
130
+ children: /* @__PURE__ */ b(C, { ...p })
130
131
  });
131
132
  }
132
133
  //#endregion
@@ -1,28 +1,29 @@
1
1
  import "./lib/api-version.js";
2
2
  import { invalidateAllClients as e, registerQueryClient as t, setAllClientsQueriesData as n, unregisterQueryClient as r } from "./lib/clientRegistry.js";
3
3
  import { cloneEmbeddedClient as i, createEmbeddedClient as a } from "./lib/createEmbeddedClient.js";
4
+ import { isWidgetGatewayHost as o } from "./lib/widgetGatewayHosts.js";
4
5
  import "./lib/rest/client.gen.js";
5
- import { EmbedApiProvider as o, useEmbedApi as s } from "./lib/EmbedApiContext.js";
6
- import { optionalOrganizationHeaders as c, organizationHeaders as l } from "./lib/organizationHeaders.js";
7
- import { bulkUpdateDepartmentMembers as u, bulkUpdateLocationMembers as d, bulkUpdateRoleMembers as f, createDepartment as p, createLocation as m, createUser as h, deactivateDepartment as g, deactivateLocation as _, deleteCounterpartsId as v, deleteCounterpartsIdBankAccountsId as y, deleteFilesId as b, deleteMeasureUnitsId as x, deleteProductsId as S, deleteReceivablesId as C, deleteTagsId as w, downloadBankAccountTransactions as T, getApplicationStatus as E, getApprovalPolicies as D, getBankAccountAccess as O, getDepartment as k, getDisclosures as A, getExternalBankAccountAccess as j, getLocation as M, getPayablesIdLineItems as N, getUsers as P, listDepartments as F, listLocations as I, listRoles as L, manageBankAccountAccess as R, patchCounterpartsId as z, patchCounterpartsIdAddressesId as B, patchCounterpartsIdBankAccountsId as V, patchMeasureUnitsId as H, patchPayablesId as U, patchProductsId as W, patchReceivablesId as G, patchTagsId as K, postApiWidgetGatewayDisclosureAcceptance as q, postCounterparts as J, postCounterpartsIdAddresses as Y, postCounterpartsIdBankAccounts as X, postCounterpartsIdBankAccountsIdMakeDefault as Z, postMeasureUnits as Q, postPayables as $, postPayablesIdAttachFile as ee, postPayablesIdSubmitForApproval as te, postPayablesIdValidate as ne, postPayablesUploadFromFile as re, postProducts as ie, postReceivables as ae, postReceivablesIdAccept as oe, postReceivablesIdCancel as se, postReceivablesIdClone as ce, postReceivablesIdDecline as le, postReceivablesIdIssue as ue, postReceivablesIdMarkAsPaid as de, postReceivablesIdMarkAsPartiallyPaid as fe, postReceivablesIdMarkAsUncollectible as pe, postReceivablesIdSend as me, postTags as he, putPayablesIdLineItems as ge, putReceivablesIdLineItems as _e, updateDepartment as ve, updateLocation as ye, updateUser as be } from "./lib/rest/sdk.gen.js";
8
- import { fetchWidgetInit as xe } from "./lib/fetchWidgetInit.js";
9
- import { hasAnyScope as Se } from "./lib/hasAnyScope.js";
10
- import { connectExternalBankAccountMutation as Ce, createAchMoneyMovementMutation as we, createApplicationMutation as Te, createBankAccountMutation as Ee, createBookTransferMutation as De, createDebitCardMutation as Oe, deleteApprovalPoliciesIdMutation as ke, deleteLedgerAccountsIdMutation as Ae, deleteReceiptsIdMutation as je, disableUserMutation as Me, getAnalyticsPayablesOptions as Ne, getAnalyticsReceivablesOptions as Pe, getApplicationStatusOptions as Fe, getApprovalPoliciesOptions as Ie, getApprovalPoliciesQueryKey as Le, getApprovalRequestsQueryKey as Re, getBankAccountAccessQueryKey as ze, getBankAccountOptions as Be, getBankAccountQueryKey as Ve, getBankAccountTransactionsOptions as He, getBankAccountTransfersOptions as Ue, getBankAccountTransfersQueryKey as We, getBankAccountsQueryKey as Ge, getCounterpartsIdAddressesOptions as Ke, getCounterpartsIdAddressesQueryKey as qe, getCounterpartsIdBankAccountsOptions as Je, getCounterpartsIdBankAccountsQueryKey as Ye, getCounterpartsIdOptions as Xe, getCounterpartsIdQueryKey as Ze, getCounterpartsOptions as Qe, getCounterpartsQueryKey as $e, getCreditCardByIdOptions as et, getCreditCardsOptions as tt, getDebitCardByIdOptions as nt, getDebitCardsOptions as rt, getDebitCardsQueryKey as it, getDepartmentOptions as at, getDepartmentQueryKey as ot, getEntitiesIdSettingsOptions as st, getEntitiesIdSettingsQueryKey as ct, getEntitiesMeOptions as lt, getEntityUsersMyEntityOptions as ut, getEntityUsersOptions as dt, getExternalBankAccountAccessQueryKey as ft, getExternalBankAccountsOptions as pt, getExternalBankAccountsQueryKey as mt, getLedgerAccountsQueryKey as ht, getLocationOptions as gt, getLocationQueryKey as _t, getMeasureUnitsOptions as vt, getMeasureUnitsQueryKey as yt, getOrganizationOptions as bt, getPayablesAnalyticsQueryKey as xt, getPayablesIdHistoryQueryKey as St, getPayablesIdLineItemsOptions as Ct, getPayablesIdLineItemsQueryKey as wt, getPayablesIdOptions as Tt, getPayablesIdQueryKey as Et, getPayablesIdSuggestionsOptions as Dt, getPayablesOptions as Ot, getPayablesQueryKey as kt, getProductsIdOptions as At, getProductsIdQueryKey as jt, getProductsOptions as Mt, getProductsQueryKey as Nt, getReceiptsIdQueryKey as Pt, getReceiptsOptions as Ft, getReceiptsQueryKey as It, getReceivablesIdHistoryOptions as Lt, getReceivablesIdHistoryQueryKey as Rt, getReceivablesIdMailsOptions as zt, getReceivablesIdMailsQueryKey as Bt, getReceivablesIdOptions as Vt, getReceivablesIdPdfLinkOptions as Ht, getReceivablesIdPdfLinkQueryKey as Ut, getReceivablesIdQueryKey as Wt, getReceivablesOptions as Gt, getReceivablesQueryKey as Kt, getTagsOptions as qt, getTagsQueryKey as Jt, getTransactionsIdQueryKey as Yt, getTransactionsOptions as Xt, getTransactionsQueryKey as Zt, getTransactionsValidationsOptions as Qt, getTransactionsValidationsQueryKey as $t, getUsersOptions as en, getUsersQueryKey as tn, grantBankAccountAccessMutation as nn, grantExternalBankAccountAccessMutation as rn, linkExternalBankAccountMutation as an, listDepartmentsOptions as on, listDepartmentsQueryKey as sn, listLocationsOptions as cn, listLocationsQueryKey as ln, listRolesQueryKey as un, patchApprovalPoliciesIdMutation as dn, patchEntitiesIdSettingsMutation as fn, patchLedgerAccountsIdMutation as pn, patchReceiptsIdMutation as mn, postApprovalPoliciesMutation as hn, postLedgerAccountsMutation as gn, putTransactionsValidationsMutation as _n, submitApplicationMutation as vn, unlinkExternalBankAccountMutation as yn, updateApplicationMutation as bn, updateBankAccountMutation as xn, updateExternalBankAccountMutation as Sn, validateExternalBankAccountMutation as Cn } from "./lib/rest/@tanstack/react-query.gen.js";
6
+ import { EmbedApiProvider as s, useEmbedApi as c } from "./lib/EmbedApiContext.js";
7
+ import { optionalOrganizationHeaders as l, organizationHeaders as u } from "./lib/organizationHeaders.js";
8
+ import { bulkUpdateDepartmentMembers as d, bulkUpdateLocationMembers as f, bulkUpdateRoleMembers as p, createDepartment as m, createLocation as h, createUser as g, deactivateDepartment as _, deactivateLocation as v, deleteCounterpartsId as y, deleteCounterpartsIdBankAccountsId as b, deleteFilesId as x, deleteMeasureUnitsId as S, deleteProductsId as C, deleteReceivablesId as w, deleteTagsId as T, downloadBankAccountTransactions as E, getApplicationStatus as D, getApprovalPolicies as O, getBankAccountAccess as k, getDepartment as A, getDisclosures as j, getExternalBankAccountAccess as M, getLocation as N, getPayablesIdLineItems as P, getUsers as F, listDepartments as I, listLocations as L, listRoles as R, manageBankAccountAccess as z, patchCounterpartsId as B, patchCounterpartsIdAddressesId as V, patchCounterpartsIdBankAccountsId as H, patchMeasureUnitsId as U, patchPayablesId as W, patchProductsId as G, patchReceivablesId as K, patchTagsId as q, postApiWidgetGatewayDisclosureAcceptance as J, postCounterparts as Y, postCounterpartsIdAddresses as X, postCounterpartsIdBankAccounts as Z, postCounterpartsIdBankAccountsIdMakeDefault as Q, postMeasureUnits as $, postPayables as ee, postPayablesIdAttachFile as te, postPayablesIdSubmitForApproval as ne, postPayablesIdValidate as re, postPayablesUploadFromFile as ie, postProducts as ae, postReceivables as oe, postReceivablesIdAccept as se, postReceivablesIdCancel as ce, postReceivablesIdClone as le, postReceivablesIdDecline as ue, postReceivablesIdIssue as de, postReceivablesIdMarkAsPaid as fe, postReceivablesIdMarkAsPartiallyPaid as pe, postReceivablesIdMarkAsUncollectible as me, postReceivablesIdSend as he, postTags as ge, putPayablesIdLineItems as _e, putReceivablesIdLineItems as ve, updateDepartment as ye, updateLocation as be, updateUser as xe } from "./lib/rest/sdk.gen.js";
9
+ import { fetchWidgetInit as Se } from "./lib/fetchWidgetInit.js";
10
+ import { hasAnyScope as Ce } from "./lib/hasAnyScope.js";
11
+ import { connectExternalBankAccountMutation as we, createAchMoneyMovementMutation as Te, createApplicationMutation as Ee, createBankAccountMutation as De, createBookTransferMutation as Oe, createDebitCardMutation as ke, deleteApprovalPoliciesIdMutation as Ae, deleteLedgerAccountsIdMutation as je, deleteReceiptsIdMutation as Me, disableUserMutation as Ne, getAnalyticsPayablesOptions as Pe, getAnalyticsReceivablesOptions as Fe, getApplicationStatusOptions as Ie, getApprovalPoliciesOptions as Le, getApprovalPoliciesQueryKey as Re, getApprovalRequestsQueryKey as ze, getBankAccountAccessQueryKey as Be, getBankAccountOptions as Ve, getBankAccountQueryKey as He, getBankAccountTransactionsOptions as Ue, getBankAccountTransfersOptions as We, getBankAccountTransfersQueryKey as Ge, getBankAccountsQueryKey as Ke, getCounterpartsIdAddressesOptions as qe, getCounterpartsIdAddressesQueryKey as Je, getCounterpartsIdBankAccountsOptions as Ye, getCounterpartsIdBankAccountsQueryKey as Xe, getCounterpartsIdOptions as Ze, getCounterpartsIdQueryKey as Qe, getCounterpartsOptions as $e, getCounterpartsQueryKey as et, getCreditCardByIdOptions as tt, getCreditCardsOptions as nt, getDebitCardByIdOptions as rt, getDebitCardsOptions as it, getDebitCardsQueryKey as at, getDepartmentOptions as ot, getDepartmentQueryKey as st, getEntitiesIdSettingsOptions as ct, getEntitiesIdSettingsQueryKey as lt, getEntitiesMeOptions as ut, getEntityUsersMyEntityOptions as dt, getEntityUsersOptions as ft, getExternalBankAccountAccessQueryKey as pt, getExternalBankAccountsOptions as mt, getExternalBankAccountsQueryKey as ht, getLedgerAccountsQueryKey as gt, getLocationOptions as _t, getLocationQueryKey as vt, getMeasureUnitsOptions as yt, getMeasureUnitsQueryKey as bt, getOrganizationOptions as xt, getPayablesAnalyticsQueryKey as St, getPayablesIdHistoryQueryKey as Ct, getPayablesIdLineItemsOptions as wt, getPayablesIdLineItemsQueryKey as Tt, getPayablesIdOptions as Et, getPayablesIdQueryKey as Dt, getPayablesIdSuggestionsOptions as Ot, getPayablesOptions as kt, getPayablesQueryKey as At, getProductsIdOptions as jt, getProductsIdQueryKey as Mt, getProductsOptions as Nt, getProductsQueryKey as Pt, getReceiptsIdQueryKey as Ft, getReceiptsOptions as It, getReceiptsQueryKey as Lt, getReceivablesIdHistoryOptions as Rt, getReceivablesIdHistoryQueryKey as zt, getReceivablesIdMailsOptions as Bt, getReceivablesIdMailsQueryKey as Vt, getReceivablesIdOptions as Ht, getReceivablesIdPdfLinkOptions as Ut, getReceivablesIdPdfLinkQueryKey as Wt, getReceivablesIdQueryKey as Gt, getReceivablesOptions as Kt, getReceivablesQueryKey as qt, getTagsOptions as Jt, getTagsQueryKey as Yt, getTransactionsIdQueryKey as Xt, getTransactionsOptions as Zt, getTransactionsQueryKey as Qt, getTransactionsValidationsOptions as $t, getTransactionsValidationsQueryKey as en, getUsersOptions as tn, getUsersQueryKey as nn, grantBankAccountAccessMutation as rn, grantExternalBankAccountAccessMutation as an, linkExternalBankAccountMutation as on, listDepartmentsOptions as sn, listDepartmentsQueryKey as cn, listLocationsOptions as ln, listLocationsQueryKey as un, listRolesQueryKey as dn, patchApprovalPoliciesIdMutation as fn, patchEntitiesIdSettingsMutation as pn, patchLedgerAccountsIdMutation as mn, patchReceiptsIdMutation as hn, postApprovalPoliciesMutation as gn, postLedgerAccountsMutation as _n, putTransactionsValidationsMutation as vn, submitApplicationMutation as yn, unlinkExternalBankAccountMutation as bn, updateApplicationMutation as xn, updateBankAccountMutation as Sn, updateExternalBankAccountMutation as Cn, validateExternalBankAccountMutation as wn } from "./lib/rest/@tanstack/react-query.gen.js";
11
12
  import "./lib/queryKeys.js";
12
- import { withAuthEpoch as wn } from "./lib/withAuthEpoch.js";
13
- import { useCurrentUserQuery as Tn } from "./lib/useCurrentUserQuery.js";
14
- import { isApiNotFoundError as En } from "./lib/isApiNotFoundError.js";
13
+ import { withAuthEpoch as Tn } from "./lib/withAuthEpoch.js";
14
+ import { useCurrentUserQuery as En } from "./lib/useCurrentUserQuery.js";
15
+ import { isApiNotFoundError as Dn } from "./lib/isApiNotFoundError.js";
15
16
  import "./lib/isUserDataNotFoundError.js";
16
- import { useGetUserDataQuery as Dn } from "./lib/useGetUserDataQuery.js";
17
- import { useUpsertUserDataMutation as On } from "./lib/useUpsertUserDataMutation.js";
17
+ import { useGetUserDataQuery as On } from "./lib/useGetUserDataQuery.js";
18
+ import { useUpsertUserDataMutation as kn } from "./lib/useUpsertUserDataMutation.js";
18
19
  import "./lib/rest/zod.gen.js";
19
- import { Scope as kn } from "./lib/scopes.js";
20
- import { getAllPagesNextPageParam as An, getAllPagesNextPaginationTokenParam as jn, isAllPagesResolving as Mn, useAutoFetchNextPage as Nn } from "./lib/allPages.js";
21
- import { useAllBankAccountsQuery as Pn } from "./lib/bank-account/useAllBankAccountsQuery.js";
22
- import { useAllExternalBankAccountsQuery as Fn } from "./lib/external-bank-account/useAllExternalBankAccountsQuery.js";
23
- import { useLedgerAccountsQuery as In } from "./lib/reference-data/useLedgerAccountsQuery.js";
24
- import { usePaymentTermsQuery as Ln } from "./lib/reference-data/usePaymentTermsQuery.js";
25
- import { useAllOrganizationRolesQuery as Rn } from "./lib/role/useAllOrganizationRolesQuery.js";
26
- import { useRolePermissionsQueries as zn } from "./lib/role/useRolePermissionsQueries.js";
27
- import { useAllOrganizationUsersQuery as Bn } from "./lib/user/useAllOrganizationUsersQuery.js";
28
- export { o as EmbedApiProvider, kn as Scope, u as bulkUpdateDepartmentMembers, d as bulkUpdateLocationMembers, f as bulkUpdateRoleMembers, i as cloneEmbeddedClient, Ce as connectExternalBankAccountMutation, we as createAchMoneyMovementMutation, Te as createApplicationMutation, Ee as createBankAccountMutation, De as createBookTransferMutation, Oe as createDebitCardMutation, p as createDepartment, a as createEmbeddedClient, m as createLocation, h as createUser, g as deactivateDepartment, _ as deactivateLocation, ke as deleteApprovalPoliciesIdMutation, v as deleteCounterpartsId, y as deleteCounterpartsIdBankAccountsId, b as deleteFilesId, Ae as deleteLedgerAccountsIdMutation, x as deleteMeasureUnitsId, S as deleteProductsId, je as deleteReceiptsIdMutation, C as deleteReceivablesId, w as deleteTagsId, Me as disableUserMutation, T as downloadBankAccountTransactions, xe as fetchWidgetInit, An as getAllPagesNextPageParam, jn as getAllPagesNextPaginationTokenParam, Ne as getAnalyticsPayablesOptions, Pe as getAnalyticsReceivablesOptions, E as getApplicationStatus, Fe as getApplicationStatusOptions, D as getApprovalPolicies, Ie as getApprovalPoliciesOptions, Le as getApprovalPoliciesQueryKey, Re as getApprovalRequestsQueryKey, O as getBankAccountAccess, ze as getBankAccountAccessQueryKey, Be as getBankAccountOptions, Ve as getBankAccountQueryKey, He as getBankAccountTransactionsOptions, Ue as getBankAccountTransfersOptions, We as getBankAccountTransfersQueryKey, Ge as getBankAccountsQueryKey, Ke as getCounterpartsIdAddressesOptions, qe as getCounterpartsIdAddressesQueryKey, Je as getCounterpartsIdBankAccountsOptions, Ye as getCounterpartsIdBankAccountsQueryKey, Xe as getCounterpartsIdOptions, Ze as getCounterpartsIdQueryKey, Qe as getCounterpartsOptions, $e as getCounterpartsQueryKey, et as getCreditCardByIdOptions, tt as getCreditCardsOptions, nt as getDebitCardByIdOptions, rt as getDebitCardsOptions, it as getDebitCardsQueryKey, k as getDepartment, at as getDepartmentOptions, ot as getDepartmentQueryKey, A as getDisclosures, st as getEntitiesIdSettingsOptions, ct as getEntitiesIdSettingsQueryKey, lt as getEntitiesMeOptions, ut as getEntityUsersMyEntityOptions, dt as getEntityUsersOptions, j as getExternalBankAccountAccess, ft as getExternalBankAccountAccessQueryKey, pt as getExternalBankAccountsOptions, mt as getExternalBankAccountsQueryKey, ht as getLedgerAccountsQueryKey, M as getLocation, gt as getLocationOptions, _t as getLocationQueryKey, vt as getMeasureUnitsOptions, yt as getMeasureUnitsQueryKey, bt as getOrganizationOptions, xt as getPayablesAnalyticsQueryKey, St as getPayablesIdHistoryQueryKey, N as getPayablesIdLineItems, Ct as getPayablesIdLineItemsOptions, wt as getPayablesIdLineItemsQueryKey, Tt as getPayablesIdOptions, Et as getPayablesIdQueryKey, Dt as getPayablesIdSuggestionsOptions, Ot as getPayablesOptions, kt as getPayablesQueryKey, At as getProductsIdOptions, jt as getProductsIdQueryKey, Mt as getProductsOptions, Nt as getProductsQueryKey, Pt as getReceiptsIdQueryKey, Ft as getReceiptsOptions, It as getReceiptsQueryKey, Lt as getReceivablesIdHistoryOptions, Rt as getReceivablesIdHistoryQueryKey, zt as getReceivablesIdMailsOptions, Bt as getReceivablesIdMailsQueryKey, Vt as getReceivablesIdOptions, Ht as getReceivablesIdPdfLinkOptions, Ut as getReceivablesIdPdfLinkQueryKey, Wt as getReceivablesIdQueryKey, Gt as getReceivablesOptions, Kt as getReceivablesQueryKey, qt as getTagsOptions, Jt as getTagsQueryKey, Yt as getTransactionsIdQueryKey, Xt as getTransactionsOptions, Zt as getTransactionsQueryKey, Qt as getTransactionsValidationsOptions, $t as getTransactionsValidationsQueryKey, P as getUsers, en as getUsersOptions, tn as getUsersQueryKey, nn as grantBankAccountAccessMutation, rn as grantExternalBankAccountAccessMutation, Se as hasAnyScope, e as invalidateAllClients, Mn as isAllPagesResolving, En as isApiNotFoundError, an as linkExternalBankAccountMutation, F as listDepartments, on as listDepartmentsOptions, sn as listDepartmentsQueryKey, I as listLocations, cn as listLocationsOptions, ln as listLocationsQueryKey, L as listRoles, un as listRolesQueryKey, R as manageBankAccountAccess, c as optionalOrganizationHeaders, l as organizationHeaders, dn as patchApprovalPoliciesIdMutation, z as patchCounterpartsId, B as patchCounterpartsIdAddressesId, V as patchCounterpartsIdBankAccountsId, fn as patchEntitiesIdSettingsMutation, pn as patchLedgerAccountsIdMutation, H as patchMeasureUnitsId, U as patchPayablesId, W as patchProductsId, mn as patchReceiptsIdMutation, G as patchReceivablesId, K as patchTagsId, q as postApiWidgetGatewayDisclosureAcceptance, hn as postApprovalPoliciesMutation, J as postCounterparts, Y as postCounterpartsIdAddresses, X as postCounterpartsIdBankAccounts, Z as postCounterpartsIdBankAccountsIdMakeDefault, gn as postLedgerAccountsMutation, Q as postMeasureUnits, $ as postPayables, ee as postPayablesIdAttachFile, te as postPayablesIdSubmitForApproval, ne as postPayablesIdValidate, re as postPayablesUploadFromFile, ie as postProducts, ae as postReceivables, oe as postReceivablesIdAccept, se as postReceivablesIdCancel, ce as postReceivablesIdClone, le as postReceivablesIdDecline, ue as postReceivablesIdIssue, de as postReceivablesIdMarkAsPaid, fe as postReceivablesIdMarkAsPartiallyPaid, pe as postReceivablesIdMarkAsUncollectible, me as postReceivablesIdSend, he as postTags, ge as putPayablesIdLineItems, _e as putReceivablesIdLineItems, _n as putTransactionsValidationsMutation, t as registerQueryClient, n as setAllClientsQueriesData, vn as submitApplicationMutation, yn as unlinkExternalBankAccountMutation, r as unregisterQueryClient, bn as updateApplicationMutation, xn as updateBankAccountMutation, ve as updateDepartment, Sn as updateExternalBankAccountMutation, ye as updateLocation, be as updateUser, Pn as useAllBankAccountsQuery, Fn as useAllExternalBankAccountsQuery, Rn as useAllOrganizationRolesQuery, Bn as useAllOrganizationUsersQuery, Nn as useAutoFetchNextPage, Tn as useCurrentUserQuery, s as useEmbedApi, Dn as useGetUserDataQuery, In as useLedgerAccountsQuery, Ln as usePaymentTermsQuery, zn as useRolePermissionsQueries, On as useUpsertUserDataMutation, Cn as validateExternalBankAccountMutation, wn as withAuthEpoch };
20
+ import { Scope as An } from "./lib/scopes.js";
21
+ import { getAllPagesNextPageParam as jn, getAllPagesNextPaginationTokenParam as Mn, isAllPagesResolving as Nn, useAutoFetchNextPage as Pn } from "./lib/allPages.js";
22
+ import { useAllBankAccountsQuery as Fn } from "./lib/bank-account/useAllBankAccountsQuery.js";
23
+ import { useAllExternalBankAccountsQuery as In } from "./lib/external-bank-account/useAllExternalBankAccountsQuery.js";
24
+ import { useLedgerAccountsQuery as Ln } from "./lib/reference-data/useLedgerAccountsQuery.js";
25
+ import { usePaymentTermsQuery as Rn } from "./lib/reference-data/usePaymentTermsQuery.js";
26
+ import { useAllOrganizationRolesQuery as zn } from "./lib/role/useAllOrganizationRolesQuery.js";
27
+ import { useRolePermissionsQueries as Bn } from "./lib/role/useRolePermissionsQueries.js";
28
+ import { useAllOrganizationUsersQuery as Vn } from "./lib/user/useAllOrganizationUsersQuery.js";
29
+ export { s as EmbedApiProvider, An as Scope, d as bulkUpdateDepartmentMembers, f as bulkUpdateLocationMembers, p as bulkUpdateRoleMembers, i as cloneEmbeddedClient, we as connectExternalBankAccountMutation, Te as createAchMoneyMovementMutation, Ee as createApplicationMutation, De as createBankAccountMutation, Oe as createBookTransferMutation, ke as createDebitCardMutation, m as createDepartment, a as createEmbeddedClient, h as createLocation, g as createUser, _ as deactivateDepartment, v as deactivateLocation, Ae as deleteApprovalPoliciesIdMutation, y as deleteCounterpartsId, b as deleteCounterpartsIdBankAccountsId, x as deleteFilesId, je as deleteLedgerAccountsIdMutation, S as deleteMeasureUnitsId, C as deleteProductsId, Me as deleteReceiptsIdMutation, w as deleteReceivablesId, T as deleteTagsId, Ne as disableUserMutation, E as downloadBankAccountTransactions, Se as fetchWidgetInit, jn as getAllPagesNextPageParam, Mn as getAllPagesNextPaginationTokenParam, Pe as getAnalyticsPayablesOptions, Fe as getAnalyticsReceivablesOptions, D as getApplicationStatus, Ie as getApplicationStatusOptions, O as getApprovalPolicies, Le as getApprovalPoliciesOptions, Re as getApprovalPoliciesQueryKey, ze as getApprovalRequestsQueryKey, k as getBankAccountAccess, Be as getBankAccountAccessQueryKey, Ve as getBankAccountOptions, He as getBankAccountQueryKey, Ue as getBankAccountTransactionsOptions, We as getBankAccountTransfersOptions, Ge as getBankAccountTransfersQueryKey, Ke as getBankAccountsQueryKey, qe as getCounterpartsIdAddressesOptions, Je as getCounterpartsIdAddressesQueryKey, Ye as getCounterpartsIdBankAccountsOptions, Xe as getCounterpartsIdBankAccountsQueryKey, Ze as getCounterpartsIdOptions, Qe as getCounterpartsIdQueryKey, $e as getCounterpartsOptions, et as getCounterpartsQueryKey, tt as getCreditCardByIdOptions, nt as getCreditCardsOptions, rt as getDebitCardByIdOptions, it as getDebitCardsOptions, at as getDebitCardsQueryKey, A as getDepartment, ot as getDepartmentOptions, st as getDepartmentQueryKey, j as getDisclosures, ct as getEntitiesIdSettingsOptions, lt as getEntitiesIdSettingsQueryKey, ut as getEntitiesMeOptions, dt as getEntityUsersMyEntityOptions, ft as getEntityUsersOptions, M as getExternalBankAccountAccess, pt as getExternalBankAccountAccessQueryKey, mt as getExternalBankAccountsOptions, ht as getExternalBankAccountsQueryKey, gt as getLedgerAccountsQueryKey, N as getLocation, _t as getLocationOptions, vt as getLocationQueryKey, yt as getMeasureUnitsOptions, bt as getMeasureUnitsQueryKey, xt as getOrganizationOptions, St as getPayablesAnalyticsQueryKey, Ct as getPayablesIdHistoryQueryKey, P as getPayablesIdLineItems, wt as getPayablesIdLineItemsOptions, Tt as getPayablesIdLineItemsQueryKey, Et as getPayablesIdOptions, Dt as getPayablesIdQueryKey, Ot as getPayablesIdSuggestionsOptions, kt as getPayablesOptions, At as getPayablesQueryKey, jt as getProductsIdOptions, Mt as getProductsIdQueryKey, Nt as getProductsOptions, Pt as getProductsQueryKey, Ft as getReceiptsIdQueryKey, It as getReceiptsOptions, Lt as getReceiptsQueryKey, Rt as getReceivablesIdHistoryOptions, zt as getReceivablesIdHistoryQueryKey, Bt as getReceivablesIdMailsOptions, Vt as getReceivablesIdMailsQueryKey, Ht as getReceivablesIdOptions, Ut as getReceivablesIdPdfLinkOptions, Wt as getReceivablesIdPdfLinkQueryKey, Gt as getReceivablesIdQueryKey, Kt as getReceivablesOptions, qt as getReceivablesQueryKey, Jt as getTagsOptions, Yt as getTagsQueryKey, Xt as getTransactionsIdQueryKey, Zt as getTransactionsOptions, Qt as getTransactionsQueryKey, $t as getTransactionsValidationsOptions, en as getTransactionsValidationsQueryKey, F as getUsers, tn as getUsersOptions, nn as getUsersQueryKey, rn as grantBankAccountAccessMutation, an as grantExternalBankAccountAccessMutation, Ce as hasAnyScope, e as invalidateAllClients, Nn as isAllPagesResolving, Dn as isApiNotFoundError, o as isWidgetGatewayHost, on as linkExternalBankAccountMutation, I as listDepartments, sn as listDepartmentsOptions, cn as listDepartmentsQueryKey, L as listLocations, ln as listLocationsOptions, un as listLocationsQueryKey, R as listRoles, dn as listRolesQueryKey, z as manageBankAccountAccess, l as optionalOrganizationHeaders, u as organizationHeaders, fn as patchApprovalPoliciesIdMutation, B as patchCounterpartsId, V as patchCounterpartsIdAddressesId, H as patchCounterpartsIdBankAccountsId, pn as patchEntitiesIdSettingsMutation, mn as patchLedgerAccountsIdMutation, U as patchMeasureUnitsId, W as patchPayablesId, G as patchProductsId, hn as patchReceiptsIdMutation, K as patchReceivablesId, q as patchTagsId, J as postApiWidgetGatewayDisclosureAcceptance, gn as postApprovalPoliciesMutation, Y as postCounterparts, X as postCounterpartsIdAddresses, Z as postCounterpartsIdBankAccounts, Q as postCounterpartsIdBankAccountsIdMakeDefault, _n as postLedgerAccountsMutation, $ as postMeasureUnits, ee as postPayables, te as postPayablesIdAttachFile, ne as postPayablesIdSubmitForApproval, re as postPayablesIdValidate, ie as postPayablesUploadFromFile, ae as postProducts, oe as postReceivables, se as postReceivablesIdAccept, ce as postReceivablesIdCancel, le as postReceivablesIdClone, ue as postReceivablesIdDecline, de as postReceivablesIdIssue, fe as postReceivablesIdMarkAsPaid, pe as postReceivablesIdMarkAsPartiallyPaid, me as postReceivablesIdMarkAsUncollectible, he as postReceivablesIdSend, ge as postTags, _e as putPayablesIdLineItems, ve as putReceivablesIdLineItems, vn as putTransactionsValidationsMutation, t as registerQueryClient, n as setAllClientsQueriesData, yn as submitApplicationMutation, bn as unlinkExternalBankAccountMutation, r as unregisterQueryClient, xn as updateApplicationMutation, Sn as updateBankAccountMutation, ye as updateDepartment, Cn as updateExternalBankAccountMutation, be as updateLocation, xe as updateUser, Fn as useAllBankAccountsQuery, In as useAllExternalBankAccountsQuery, zn as useAllOrganizationRolesQuery, Vn as useAllOrganizationUsersQuery, Pn as useAutoFetchNextPage, En as useCurrentUserQuery, c as useEmbedApi, On as useGetUserDataQuery, Ln as useLedgerAccountsQuery, Rn as usePaymentTermsQuery, Bn as useRolePermissionsQueries, kn as useUpsertUserDataMutation, wn as validateExternalBankAccountMutation, Tn as withAuthEpoch };
@@ -0,0 +1,14 @@
1
+ //#region ../../libs/tesouro-embedded-components-react/shared/data-access/dist/lib/widgetGatewayHosts.js
2
+ var e = [
3
+ "https://api.stage.tesouro.com",
4
+ "https://api.sandbox.stage.tesouro.com",
5
+ "https://api.stage.business-banking.app",
6
+ "https://api.tesouro.com",
7
+ "https://api.sandbox.tesouro.com",
8
+ "https://api.business-banking.app"
9
+ ];
10
+ function t(t) {
11
+ return e.includes(t);
12
+ }
13
+ //#endregion
14
+ export { e as WIDGET_GATEWAY_HOSTS, t as isWidgetGatewayHost };
@@ -3,92 +3,99 @@
3
3
  "use client";
4
4
  "use client";
5
5
  import { registerQueryClient as e, unregisterQueryClient as t } from "../../../../data-access/dist/lib/clientRegistry.js";
6
- import { createEmbeddedClient as ee } from "../../../../data-access/dist/lib/createEmbeddedClient.js";
7
- import { EmbedApiProvider as n } from "../../../../data-access/dist/lib/EmbedApiContext.js";
6
+ import { createEmbeddedClient as n } from "../../../../data-access/dist/lib/createEmbeddedClient.js";
7
+ import { EmbedApiProvider as r } from "../../../../data-access/dist/lib/EmbedApiContext.js";
8
8
  import "../../../../data-access/dist/index.js";
9
- import { getGlobalSnapshot as r, subscribeToGlobal as i } from "./globalStore.js";
10
- import { configureEmbeddedClient as a } from "../analytics/client.js";
9
+ import { getGlobalSnapshot as i, subscribeToGlobal as a } from "./globalStore.js";
10
+ import { configureEmbeddedClient as ee } from "../analytics/client.js";
11
11
  import { generateCorrelationId as te } from "../analytics/ids.js";
12
12
  import { WidgetContext as ne } from "./WidgetContext.js";
13
13
  import { resolveOrgId as re, useAuthEpoch as ie } from "./utils.js";
14
14
  import { useWidgetFetch as ae } from "./useWidgetFetch.js";
15
- import { deriveWidgetInitState as o, useWidgetInitPublisher as s } from "./useWidgetInitPublisher.js";
16
- import { resolveUIFramework as c } from "../../../../ui/dist/lib/UIContext/UIContext.js";
17
- import { UIProvider as l } from "../../../../ui/dist/lib/UIContext/UIProvider.js";
18
- import { useDesignSystemEnsurer as oe } from "../../../../ui/dist/lib/UIContext/uiRendererRegistry.js";
15
+ import { deriveWidgetInitState as oe, useWidgetInitPublisher as o } from "./useWidgetInitPublisher.js";
16
+ import { resolveUIFramework as se } from "../../../../ui/dist/lib/UIContext/UIContext.js";
17
+ import { UIProvider as s } from "../../../../ui/dist/lib/UIContext/UIProvider.js";
18
+ import { useDesignSystemEnsurer as c } from "../../../../ui/dist/lib/UIContext/uiRendererRegistry.js";
19
19
  import "../../../../ui/dist/index.js";
20
- import { useEffect as u, useMemo as d, useRef as f, useState as p, useSyncExternalStore as m } from "react";
21
- import { jsx as h } from "react/jsx-runtime";
22
- import { QueryClient as g, QueryClientProvider as se } from "@tanstack/react-query";
20
+ import { useEffect as l, useMemo as u, useRef as d, useState as f, useSyncExternalStore as ce } from "react";
21
+ import { jsx as p } from "react/jsx-runtime";
22
+ import { QueryClient as m, QueryClientProvider as h } from "@tanstack/react-query";
23
23
  //#region ../../libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/RootWidgetProvider.js
24
- function _({ children: _, baseUrl: v, widgetToken: y, organizationId: b, configClient: x, linkComponent: S, uiFramework: C, implementation: w, analytics: T, unstable_initResponseOverride: E }) {
25
- let D = m(i, r, r), O = v ?? D.baseUrl, k = y === void 0 ? D.widgetToken : y, A = b === void 0 ? D.organizationId : b, j = x ?? D.configClient, M = S ?? D.linkComponent, N = C ?? D.uiFramework, P = w ?? D.implementation, F = T !== !1, [I] = p(te), L = f({
26
- enabled: F,
24
+ function g({ children: g, baseUrl: _, widgetToken: v, organizationId: y, configClient: b, gatewayRouting: x, linkComponent: S, uiFramework: C, implementation: w, analytics: T, unstable_initResponseOverride: E }) {
25
+ let D = ce(a, i, i), O = _ ?? D.baseUrl, k = v === void 0 ? D.widgetToken : v, A = y === void 0 ? D.organizationId : y, j = b ?? D.configClient, M = x ?? D.gatewayRouting, N = S ?? D.linkComponent, P = C ?? D.uiFramework, F = w ?? D.implementation, I = T !== !1, [L] = f(te), R = d({
26
+ enabled: I,
27
27
  organizationId: A,
28
- rootCorrelationId: I
29
- }), [R] = p(() => new g({ defaultOptions: {
28
+ rootCorrelationId: L
29
+ }), [z] = f(() => new m({ defaultOptions: {
30
30
  queries: {
31
31
  retry: !1,
32
32
  refetchOnWindowFocus: !1
33
33
  },
34
34
  mutations: { retry: !1 }
35
35
  } }));
36
- u(() => (e(R), () => t(R)), [R]);
37
- let z = f(k);
38
- z.current = k;
39
- let B = ie(k), V = d(() => {
40
- let e = a(ee(O), {
41
- tokenRef: z,
42
- analyticsContextRef: L
36
+ l(() => (e(z), () => t(z)), [z]);
37
+ let B = d(k);
38
+ B.current = k;
39
+ let V = ie(k), H = u(() => {
40
+ let e = ee(n(O), {
41
+ tokenRef: B,
42
+ analyticsContextRef: R,
43
+ gatewayRouting: M
43
44
  });
44
45
  return j ? j(e) : e;
45
- }, [O, j]);
46
- u(() => {
47
- if (!F || !("window" in globalThis)) return;
46
+ }, [
47
+ O,
48
+ j,
49
+ M
50
+ ]);
51
+ l(() => {
52
+ if (!I || !("window" in globalThis)) return;
48
53
  let e = !1;
49
54
  return import("../analytics/install.js").then(({ ensureAnalyticsAdapterInstalled: t }) => {
50
55
  e || t();
51
56
  }), () => {
52
57
  e = !0;
53
58
  };
54
- }, [F]);
55
- let H = oe(c(N));
56
- u(() => {
57
- H && H().catch(() => {});
58
- }, [H]);
59
- let { result: U, loading: W, error: G, initStaleForToken: K, refetch: q } = ae(E ? null : V, k, L), J = k ? E ?? U ?? void 0 : void 0, Y = !E && K, X = re(A, Y ? void 0 : J?.organizationId), ce = d(() => o({
59
+ }, [I]);
60
+ let U = c(se(P));
61
+ l(() => {
62
+ U && U().catch(() => {});
63
+ }, [U]);
64
+ let { result: W, loading: G, error: K, initStaleForToken: le, refetch: q } = ae(E ? null : H, k, R), J = k ? E ?? W ?? void 0 : void 0, Y = !E && le, X = re(A, Y ? void 0 : J?.organizationId), ue = u(() => oe({
60
65
  hasToken: !!k,
61
- loading: W,
62
- error: G,
66
+ loading: G,
67
+ error: K,
63
68
  initResponse: J,
64
69
  initStaleForToken: Y
65
70
  }), [
66
71
  k,
67
- W,
68
72
  G,
73
+ K,
69
74
  J,
70
75
  Y
71
76
  ]);
72
- s(ce, k);
73
- let Z = d(() => ({
74
- enabled: F,
77
+ o(ue, k);
78
+ let Z = u(() => ({
79
+ enabled: I,
75
80
  organizationId: X,
76
- rootCorrelationId: I
81
+ rootCorrelationId: L
77
82
  }), [
78
- F,
83
+ I,
79
84
  X,
80
- I
85
+ L
81
86
  ]);
82
- L.current = Z;
83
- let Q = d(() => ({
84
- baseUrl: v,
85
- widgetToken: y,
86
- organizationId: b,
87
- configClient: x,
87
+ R.current = Z;
88
+ let Q = u(() => ({
89
+ baseUrl: _,
90
+ widgetToken: v,
91
+ organizationId: y,
92
+ configClient: b,
93
+ gatewayRouting: x,
88
94
  linkComponent: S,
89
95
  uiFramework: C,
90
96
  implementation: w
91
97
  }), [
98
+ _,
92
99
  v,
93
100
  y,
94
101
  b,
@@ -96,14 +103,15 @@ function _({ children: _, baseUrl: v, widgetToken: y, organizationId: b, configC
96
103
  S,
97
104
  C,
98
105
  w
99
- ]), $ = d(() => ({
106
+ ]), $ = u(() => ({
100
107
  baseUrl: O,
101
108
  widgetToken: k,
102
109
  organizationId: X,
103
110
  configClient: j,
104
- linkComponent: M,
105
- uiFramework: N,
106
- implementation: P,
111
+ gatewayRouting: M,
112
+ linkComponent: N,
113
+ uiFramework: P,
114
+ implementation: F,
107
115
  initResponse: J
108
116
  }), [
109
117
  O,
@@ -113,13 +121,14 @@ function _({ children: _, baseUrl: v, widgetToken: y, organizationId: b, configC
113
121
  M,
114
122
  N,
115
123
  P,
124
+ F,
116
125
  J
117
- ]), le = d(() => ({
126
+ ]), de = u(() => ({
118
127
  resolved: $,
119
128
  own: Q,
120
129
  refetch: q,
121
- loading: W,
122
- error: G,
130
+ loading: G,
131
+ error: K,
123
132
  analytics: Z,
124
133
  cascadeOrgId: A,
125
134
  initResponseStaleForToken: Y
@@ -127,29 +136,29 @@ function _({ children: _, baseUrl: v, widgetToken: y, organizationId: b, configC
127
136
  $,
128
137
  Q,
129
138
  q,
130
- W,
131
139
  G,
140
+ K,
132
141
  Z,
133
142
  A,
134
143
  Y
135
144
  ]);
136
- return /* @__PURE__ */ h(se, {
137
- client: R,
138
- children: /* @__PURE__ */ h(n, {
139
- client: V,
145
+ return /* @__PURE__ */ p(h, {
146
+ client: z,
147
+ children: /* @__PURE__ */ p(r, {
148
+ client: H,
140
149
  organizationId: X,
141
150
  widgetToken: k,
142
- authEpoch: B,
143
- children: /* @__PURE__ */ h(ne.Provider, {
144
- value: le,
145
- children: /* @__PURE__ */ h(l, {
146
- linkComponent: M,
147
- uiFramework: N,
148
- children: _
151
+ authEpoch: V,
152
+ children: /* @__PURE__ */ p(ne.Provider, {
153
+ value: de,
154
+ children: /* @__PURE__ */ p(s, {
155
+ linkComponent: N,
156
+ uiFramework: P,
157
+ children: g
149
158
  })
150
159
  })
151
160
  })
152
161
  });
153
162
  }
154
163
  //#endregion
155
- export { _ as RootWidgetProvider };
164
+ export { g as RootWidgetProvider };