@tesouro/embedded-components-react 0.5.116 → 0.5.117

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 (146) hide show
  1. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index.js +6 -6
  2. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index10.js +25 -31
  3. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index11.js +41 -0
  4. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index4.js +6 -15
  5. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index5.js +15 -11
  6. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index6.js +7 -7
  7. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index7.js +14 -37
  8. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index8.js +43 -3
  9. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index9.js +3 -31
  10. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index22.js +6 -6
  11. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index2.js +7 -7
  12. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index3.js +7 -7
  13. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index4.js +8 -8
  14. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index5.js +10 -10
  15. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/data-access/dist/index3.js +8 -8
  16. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/data-access/dist/index4.js +6 -6
  17. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/data-access/dist/index5.js +13 -13
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index10.js +25 -25
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index11.js +12 -12
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index12.js +8 -8
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index13.js +168 -168
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index15.js +7 -7
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index16.js +4 -4
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index17.js +44 -44
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index18.js +7 -7
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index4.js +4 -4
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index5.js +24 -24
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index6.js +81 -81
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index7.js +17 -17
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index8.js +31 -31
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index9.js +7 -7
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js +15 -15
  33. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index10.js +6 -6
  34. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index11.js +6 -6
  35. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index2.js +15 -15
  36. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index4.js +15 -15
  37. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index6.js +7 -7
  38. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index7.js +7 -7
  39. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index8.js +7 -7
  40. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index9.js +6 -6
  41. package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index3.js +10 -10
  42. package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index4.js +8 -8
  43. package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index5.js +8 -8
  44. package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index6.js +8 -8
  45. package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index7.js +5 -5
  46. package/dist/libs/tesouro-embedded-components-react/cards-widget/data-access/dist/index2.js +7 -7
  47. package/dist/libs/tesouro-embedded-components-react/cards-widget/data-access/dist/index3.js +7 -7
  48. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/data-access/dist/index2.js +14 -14
  49. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/data-access/dist/index3.js +14 -14
  50. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index2.js +5 -5
  51. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index3.js +5 -5
  52. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index4.js +15 -15
  53. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index5.js +12 -12
  54. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index6.js +9 -9
  55. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index2.js +22 -22
  56. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index3.js +12 -12
  57. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index4.js +87 -87
  58. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index5.js +44 -44
  59. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index6.js +36 -36
  60. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/data-access/dist/index2.js +6 -6
  61. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/data-access/dist/index4.js +7 -7
  62. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index2.js +21 -21
  63. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index3.js +13 -13
  64. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index4.js +9 -9
  65. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index5.js +9 -9
  66. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index6.js +10 -10
  67. package/dist/libs/tesouro-embedded-components-react/settings-widget/chart-of-accounts/data-access/dist/index2.js +4 -4
  68. package/dist/libs/tesouro-embedded-components-react/settings-widget/chart-of-accounts/data-access/dist/index3.js +22 -22
  69. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index2.js +7 -7
  70. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index3.js +7 -7
  71. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index4.js +7 -7
  72. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index5.js +11 -11
  73. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index6.js +13 -13
  74. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index7.js +11 -11
  75. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index8.js +11 -11
  76. package/dist/libs/tesouro-embedded-components-react/settings-widget/profile/data-access/dist/index2.js +7 -7
  77. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index10.js +7 -7
  78. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index2.js +7 -7
  79. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index3.js +6 -6
  80. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index4.js +11 -11
  81. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index5.js +11 -11
  82. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index6.js +10 -10
  83. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index7.js +5 -5
  84. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index8.js +5 -5
  85. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index9.js +7 -7
  86. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index10.js +16 -16
  87. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index12.js +14 -14
  88. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index13.js +7 -7
  89. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index14.js +9 -9
  90. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index15.js +59 -59
  91. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index17.js +9 -9
  92. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index18.js +9 -9
  93. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index19.js +41 -41
  94. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index2.js +4 -4
  95. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index21.js +9 -9
  96. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index22.js +9 -9
  97. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index23.js +41 -41
  98. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index3.js +8 -8
  99. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index4.js +9 -9
  100. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index5.js +4 -4
  101. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index6.js +4 -4
  102. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index7.js +73 -73
  103. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index8.js +11 -11
  104. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index9.js +20 -20
  105. package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/data-access/dist/lib/approvalPoliciesApi.js +61 -61
  106. package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/data-access/dist/lib/queryKeys.js +4 -4
  107. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index2.js +16 -16
  108. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index3.js +51 -51
  109. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index5.js +63 -63
  110. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index7.js +44 -44
  111. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +35 -34
  112. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/applicationStatusQueryOptions.js +22 -0
  113. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/bank-account/useAllBankAccountsQuery.js +9 -9
  114. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/disclosures/useAcceptWidgetDisclosures.js +8 -8
  115. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/disclosures/useDisclosuresQuery.js +8 -8
  116. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/external-bank-account/useAllExternalBankAccountsQuery.js +7 -7
  117. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/merchant-category-group/useAllMerchantCategoryGroupsQuery.js +11 -11
  118. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/reference-data/useLedgerAccountsQuery.js +15 -15
  119. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/reference-data/usePaymentTermsQuery.js +7 -7
  120. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/role/useAllOrganizationRolesQuery.js +11 -11
  121. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/role/useRolePermissionsQueries.js +7 -7
  122. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useCurrentUserQuery.js +7 -7
  123. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useGetUserDataQuery.js +5 -5
  124. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useOrganizationOnboardingSuppression.js +22 -21
  125. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useUpsertUserDataMutation.js +7 -7
  126. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/user/useAllOrganizationUsersQuery.js +11 -11
  127. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/widgetTokenCacheId.js +11 -0
  128. package/dist/libs/tesouro-embedded-components-react/shared/expense-requirements/data-access/dist/index2.js +4 -4
  129. package/dist/libs/tesouro-embedded-components-react/shared/expense-requirements/data-access/dist/index3.js +14 -14
  130. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  131. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index10.js +11 -11
  132. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index11.js +11 -11
  133. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index12.js +11 -11
  134. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index2.js +7 -7
  135. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index3.js +7 -7
  136. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index4.js +11 -11
  137. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index5.js +11 -11
  138. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index6.js +13 -13
  139. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index7.js +10 -10
  140. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index8.js +7 -7
  141. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index9.js +7 -7
  142. package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index3.js +11 -11
  143. package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index6.js +7 -7
  144. package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index7.js +12 -12
  145. package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index8.js +11 -11
  146. package/package.json +1 -1
@@ -2,10 +2,10 @@ import { OnboardingSuppressionReason as e } from "../../../shared/data-access/di
2
2
  import { useOrganizationOnboardingSuppression as t } from "../../../shared/data-access/dist/lib/useOrganizationOnboardingSuppression.js";
3
3
  import "../../../shared/data-access/dist/index.js";
4
4
  import { ApplicationClientSecretProvider as n, useApplicationClientSecret as r } from "./index3.js";
5
- import { useCreateApplication as i } from "./index4.js";
6
- import { useUpdateApplication as a } from "./index5.js";
7
- import { useSubmitApplication as o } from "./index6.js";
8
- import { usePollApplicationCompletion as s } from "./index7.js";
9
- import { useResumableBankAccountApplication as c } from "./index9.js";
10
- import { useStartedBankAccountApplication as l } from "./index10.js";
5
+ import { useCreateApplication as i } from "./index5.js";
6
+ import { useUpdateApplication as a } from "./index6.js";
7
+ import { useSubmitApplication as o } from "./index7.js";
8
+ import { usePollApplicationCompletion as s } from "./index8.js";
9
+ import { useResumableBankAccountApplication as c } from "./index10.js";
10
+ import { useStartedBankAccountApplication as l } from "./index11.js";
11
11
  export { n as ApplicationClientSecretProvider, e as OnboardingSuppressionReason, r as useApplicationClientSecret, i as useCreateApplication, t as useOrganizationOnboardingSuppression, s as usePollApplicationCompletion, c as useResumableBankAccountApplication, l as useStartedBankAccountApplication, o as useSubmitApplication, a as useUpdateApplication };
@@ -2,40 +2,34 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { useEmbedApi as e } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
6
- import { optionalOrganizationHeaders as t } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
7
- import { getBankAccountApplicationOptions as n } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
8
- import { withAuthEpoch as r } from "../../../shared/data-access/dist/lib/withAuthEpoch.js";
5
+ import { applicationStatusQueryOptions as e } from "../../../shared/data-access/dist/lib/applicationStatusQueryOptions.js";
6
+ import { useEmbedApi as t } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
9
7
  import "../../../shared/data-access/dist/index.js";
10
- import { useInstallApplicationClientSecret as i } from "./index3.js";
11
- import { hasFreshAnswer as a } from "./index8.js";
12
- import { useMemo as o } from "react";
13
- import { useQuery as s } from "@tanstack/react-query";
8
+ import { hasFreshAnswer as n } from "./index9.js";
9
+ import { useQuery as r } from "@tanstack/react-query";
14
10
  //#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index10.js
15
- var c = (e, t) => (n, r) => {
16
- if (n === void 0 || r === void 0) return;
17
- let [i] = r.queryKey;
18
- if (i !== void 0 && i.baseUrl === e && i.path?.id === t) return n;
19
- };
20
- function l(l, u) {
21
- let { client: d, organizationId: f, widgetToken: p, authEpoch: m } = e();
22
- i(l, u);
23
- let h = !!(p && l && u), g = d.getConfig().baseUrl, _ = o(() => c(g, l), [g, l]), v = s({
24
- ...r(n({
25
- client: d,
26
- path: { id: l ?? "" },
27
- headers: t(f)
28
- }), m),
29
- placeholderData: _,
30
- enabled: h,
31
- retry: 2,
32
- retryDelay: 300
33
- });
11
+ var i = "DRAFT", a = "BANK_ACCOUNT", o = "STARTED_BY_YOU";
12
+ function s(e) {
13
+ return e.find((e) => e.product === a && e.ownership === o && e.status === i && !!e.applicationId && !!e.clientSecret);
14
+ }
15
+ function c(e) {
16
+ return e.filter((e) => e.product === a && e.ownership === o).map((e) => e.applicationId).filter((e) => !!e);
17
+ }
18
+ function l() {
19
+ let { client: i, widgetToken: a, authEpoch: o } = t(), l = !!a, u = r({
20
+ ...e({
21
+ client: i,
22
+ widgetToken: a,
23
+ authEpoch: o
24
+ }),
25
+ enabled: l
26
+ }), d = l && n(u), f = d && !u.isError ? u.data?.applications ?? null : null, p = f ? s(f) : void 0;
34
27
  return {
35
- application: v.data ?? null,
36
- isResolved: !h || a(v),
37
- isUnavailable: h && v.isError
28
+ applicationId: p?.applicationId ?? null,
29
+ clientSecret: p?.clientSecret ?? null,
30
+ isResolved: d,
31
+ ownApplicationIds: f ? c(f) : null
38
32
  };
39
33
  }
40
34
  //#endregion
41
- export { l as useStartedBankAccountApplication };
35
+ export { l as useResumableBankAccountApplication };
@@ -0,0 +1,41 @@
1
+ "use client";
2
+ "use client";
3
+ "use client";
4
+ "use client";
5
+ import { getBankAccountApplicationOptions as e } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
6
+ import { withAuthEpoch as t } from "../../../shared/data-access/dist/lib/withAuthEpoch.js";
7
+ import { useEmbedApi as n } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
8
+ import { optionalOrganizationHeaders as r } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
9
+ import "../../../shared/data-access/dist/index.js";
10
+ import { useInstallApplicationClientSecret as i } from "./index3.js";
11
+ import { hasFreshAnswer as a } from "./index9.js";
12
+ import { useMemo as o } from "react";
13
+ import { useQuery as s } from "@tanstack/react-query";
14
+ //#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index11.js
15
+ var c = (e, t) => (n, r) => {
16
+ if (n === void 0 || r === void 0) return;
17
+ let [i] = r.queryKey;
18
+ if (i !== void 0 && i.baseUrl === e && i.path?.id === t) return n;
19
+ };
20
+ function l(l, u) {
21
+ let { client: d, organizationId: f, widgetToken: p, authEpoch: m } = n();
22
+ i(l, u);
23
+ let h = !!(p && l && u), g = d.getConfig().baseUrl, _ = o(() => c(g, l), [g, l]), v = s({
24
+ ...t(e({
25
+ client: d,
26
+ path: { id: l ?? "" },
27
+ headers: r(f)
28
+ }), m),
29
+ placeholderData: _,
30
+ enabled: h,
31
+ retry: 2,
32
+ retryDelay: 300
33
+ });
34
+ return {
35
+ application: v.data ?? null,
36
+ isResolved: !h || a(v),
37
+ isUnavailable: h && v.isError
38
+ };
39
+ }
40
+ //#endregion
41
+ export { l as useStartedBankAccountApplication };
@@ -1,19 +1,10 @@
1
- "use client";
2
- "use client";
3
- "use client";
4
- "use client";
5
- import { useEmbedApi as e } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
6
- import { optionalOrganizationHeaders as t } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
7
- import { createApplicationMutation as n } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
1
+ import { applicationStatusInvalidationKey as e } from "../../../shared/data-access/dist/lib/applicationStatusQueryOptions.js";
2
+ import { cancelAllClients as t, invalidateAllClients as n } from "../../../shared/data-access/dist/lib/clientRegistry.js";
8
3
  import "../../../shared/data-access/dist/index.js";
9
- import { useMutation as r } from "@tanstack/react-query";
10
4
  //#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index4.js
11
- function i() {
12
- let { client: i, organizationId: a } = e();
13
- return r(n({
14
- client: i,
15
- headers: t(a)
16
- }));
5
+ async function r(r) {
6
+ let i = e({ client: r });
7
+ await t(i), await n(i);
17
8
  }
18
9
  //#endregion
19
- export { i as useCreateApplication };
10
+ export { r as refreshApplicationStatus };
@@ -2,18 +2,22 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { useEmbedApi as e } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
6
- import { optionalOrganizationHeaders as t } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
7
- import { updateApplicationMutation as n } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
5
+ import { createApplicationMutation as e } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
6
+ import { useEmbedApi as t } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
7
+ import { optionalOrganizationHeaders as n } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
8
8
  import "../../../shared/data-access/dist/index.js";
9
- import { useMutation as r } from "@tanstack/react-query";
9
+ import { refreshApplicationStatus as r } from "./index4.js";
10
+ import { useMutation as i } from "@tanstack/react-query";
10
11
  //#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index5.js
11
- function i() {
12
- let { client: i, organizationId: a } = e();
13
- return r(n({
14
- client: i,
15
- headers: t(a)
16
- }));
12
+ function a() {
13
+ let { client: a, organizationId: o } = t();
14
+ return i({
15
+ ...e({
16
+ client: a,
17
+ headers: n(o)
18
+ }),
19
+ onSuccess: () => r(a)
20
+ });
17
21
  }
18
22
  //#endregion
19
- export { i as useUpdateApplication };
23
+ export { a as useCreateApplication };
@@ -2,18 +2,18 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { useEmbedApi as e } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
6
- import { optionalOrganizationHeaders as t } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
7
- import { submitApplicationMutation as n } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
5
+ import { updateApplicationMutation as e } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
6
+ import { useEmbedApi as t } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
7
+ import { optionalOrganizationHeaders as n } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
8
8
  import "../../../shared/data-access/dist/index.js";
9
9
  import { useMutation as r } from "@tanstack/react-query";
10
10
  //#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index6.js
11
11
  function i() {
12
- let { client: i, organizationId: a } = e();
13
- return r(n({
12
+ let { client: i, organizationId: a } = t();
13
+ return r(e({
14
14
  client: i,
15
- headers: t(a)
15
+ headers: n(a)
16
16
  }));
17
17
  }
18
18
  //#endregion
19
- export { i as useSubmitApplication };
19
+ export { i as useUpdateApplication };
@@ -2,45 +2,22 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { useEmbedApi as e } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
6
- import { getApplicationStatus as t } from "../../../shared/data-access/dist/lib/rest/sdk.gen.js";
5
+ import { submitApplicationMutation as e } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
6
+ import { useEmbedApi as t } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
7
+ import { optionalOrganizationHeaders as n } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
7
8
  import "../../../shared/data-access/dist/index.js";
8
- import { useCallback as n } from "react";
9
+ import { refreshApplicationStatus as r } from "./index4.js";
10
+ import { useMutation as i } from "@tanstack/react-query";
9
11
  //#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index7.js
10
- var r = 1e3, i = 6, a = "COMPLETE", o = "BANK_ACCOUNT";
11
- function s(e, t) {
12
- return new Promise((n, r) => {
13
- if (t?.aborted) {
14
- r(new DOMException("Aborted", "AbortError"));
15
- return;
16
- }
17
- let i = () => {
18
- clearTimeout(a), r(new DOMException("Aborted", "AbortError"));
19
- }, a = setTimeout(() => {
20
- t?.removeEventListener("abort", i), n();
21
- }, e);
22
- t?.addEventListener("abort", i, { once: !0 });
12
+ function a() {
13
+ let { client: a, organizationId: o } = t();
14
+ return i({
15
+ ...e({
16
+ client: a,
17
+ headers: n(o)
18
+ }),
19
+ onSuccess: () => r(a)
23
20
  });
24
21
  }
25
- function c() {
26
- let { client: c } = e();
27
- return n(async (e, n = {}) => {
28
- let { signal: l } = n, u = !1;
29
- for (let n = 0; n < i; n++) {
30
- if (l?.aborted) throw new DOMException("Aborted", "AbortError");
31
- try {
32
- let n = await t({
33
- client: c,
34
- signal: l
35
- });
36
- if (u = !0, n.data?.applications.some((t) => t.product === o && t.applicationId === e && t.status === a)) return { status: "complete" };
37
- } catch (e) {
38
- if (e instanceof DOMException && e.name === "AbortError") throw e;
39
- }
40
- n < 5 && await s(r, l);
41
- }
42
- return u ? { status: "timeout" } : { status: "error" };
43
- }, [c]);
44
- }
45
22
  //#endregion
46
- export { c as usePollApplicationCompletion };
23
+ export { a as useSubmitApplication };
@@ -1,6 +1,46 @@
1
+ "use client";
2
+ "use client";
3
+ "use client";
4
+ "use client";
5
+ import { getApplicationStatus as e } from "../../../shared/data-access/dist/lib/rest/sdk.gen.js";
6
+ import { useEmbedApi as t } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
7
+ import "../../../shared/data-access/dist/index.js";
8
+ import { useCallback as n } from "react";
1
9
  //#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index8.js
2
- function e(e) {
3
- return (e.isSuccess || e.isError) && !e.isFetching;
10
+ var r = 1e3, i = 6, a = "COMPLETE", o = "BANK_ACCOUNT";
11
+ function s(e, t) {
12
+ return new Promise((n, r) => {
13
+ if (t?.aborted) {
14
+ r(new DOMException("Aborted", "AbortError"));
15
+ return;
16
+ }
17
+ let i = () => {
18
+ clearTimeout(a), r(new DOMException("Aborted", "AbortError"));
19
+ }, a = setTimeout(() => {
20
+ t?.removeEventListener("abort", i), n();
21
+ }, e);
22
+ t?.addEventListener("abort", i, { once: !0 });
23
+ });
24
+ }
25
+ function c() {
26
+ let { client: c } = t();
27
+ return n(async (t, n = {}) => {
28
+ let { signal: l } = n, u = !1;
29
+ for (let n = 0; n < i; n++) {
30
+ if (l?.aborted) throw new DOMException("Aborted", "AbortError");
31
+ try {
32
+ let n = await e({
33
+ client: c,
34
+ signal: l
35
+ });
36
+ if (u = !0, n.data?.applications.some((e) => e.product === o && e.applicationId === t && e.status === a)) return { status: "complete" };
37
+ } catch (e) {
38
+ if (e instanceof DOMException && e.name === "AbortError") throw e;
39
+ }
40
+ n < 5 && await s(r, l);
41
+ }
42
+ return u ? { status: "timeout" } : { status: "error" };
43
+ }, [c]);
4
44
  }
5
45
  //#endregion
6
- export { e as hasFreshAnswer };
46
+ export { c as usePollApplicationCompletion };
@@ -1,34 +1,6 @@
1
- "use client";
2
- "use client";
3
- "use client";
4
- "use client";
5
- import { useEmbedApi as e } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
6
- import { getApplicationStatusOptions as t } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
7
- import { withAuthEpoch as n } from "../../../shared/data-access/dist/lib/withAuthEpoch.js";
8
- import "../../../shared/data-access/dist/index.js";
9
- import { hasFreshAnswer as r } from "./index8.js";
10
- import { useQuery as i } from "@tanstack/react-query";
11
1
  //#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index9.js
12
- var a = "DRAFT", o = "BANK_ACCOUNT", s = "STARTED_BY_YOU";
13
- function c(e) {
14
- return e.find((e) => e.product === o && e.ownership === s && e.status === a && !!e.applicationId && !!e.clientSecret);
15
- }
16
- function l(e) {
17
- return e.filter((e) => e.product === o && e.ownership === s).map((e) => e.applicationId).filter((e) => !!e);
18
- }
19
- function u() {
20
- let { client: a, widgetToken: o, authEpoch: s } = e(), u = !!o, d = i({
21
- ...n(t({ client: a }), s),
22
- enabled: u,
23
- retry: 2,
24
- retryDelay: 300
25
- }), f = u && r(d), p = f && !d.isError ? d.data?.applications ?? null : null, m = p ? c(p) : void 0;
26
- return {
27
- applicationId: m?.applicationId ?? null,
28
- clientSecret: m?.clientSecret ?? null,
29
- isResolved: f,
30
- ownApplicationIds: p ? l(p) : null
31
- };
2
+ function e(e) {
3
+ return (e.isSuccess || e.isError) && !e.isFetching;
32
4
  }
33
5
  //#endregion
34
- export { u as useResumableBankAccountApplication };
6
+ export { e as hasFreshAnswer };
@@ -33,12 +33,12 @@ import { OnboardingAnalyticsEvent as se, WIDGET_NAME as ce } from "./index19.js"
33
33
  import { DEFAULT_LABELS as b } from "./index20.js";
34
34
  import { withoutResumeOnlyOwnerFields as le, withoutStoredIdentifierMarkers as ue } from "./index21.js";
35
35
  import { ApplicationClientSecretProvider as de, useApplicationClientSecret as fe } from "../../data-access/dist/index3.js";
36
- import { useCreateApplication as pe } from "../../data-access/dist/index4.js";
37
- import { useUpdateApplication as me } from "../../data-access/dist/index5.js";
38
- import { useSubmitApplication as he } from "../../data-access/dist/index6.js";
39
- import { usePollApplicationCompletion as ge } from "../../data-access/dist/index7.js";
40
- import { useResumableBankAccountApplication as x } from "../../data-access/dist/index9.js";
41
- import { useStartedBankAccountApplication as _e } from "../../data-access/dist/index10.js";
36
+ import { useCreateApplication as pe } from "../../data-access/dist/index5.js";
37
+ import { useUpdateApplication as me } from "../../data-access/dist/index6.js";
38
+ import { useSubmitApplication as he } from "../../data-access/dist/index7.js";
39
+ import { usePollApplicationCompletion as ge } from "../../data-access/dist/index8.js";
40
+ import { useResumableBankAccountApplication as x } from "../../data-access/dist/index10.js";
41
+ import { useStartedBankAccountApplication as _e } from "../../data-access/dist/index11.js";
42
42
  import "../../data-access/dist/index.js";
43
43
  import { useCallback as ve, useEffect as S, useMemo as C, useRef as ye, useState as w } from "react";
44
44
  import { Fragment as be, jsx as T, jsxs as xe } from "react/jsx-runtime";
@@ -2,21 +2,21 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { useEmbedApi as e } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
6
- import { organizationHeaders as t } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
7
- import { getBankAccountOptions as n } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
8
- import { withAuthEpoch as r } from "../../../../shared/data-access/dist/lib/withAuthEpoch.js";
5
+ import { getBankAccountOptions as e } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
6
+ import { withAuthEpoch as t } from "../../../../shared/data-access/dist/lib/withAuthEpoch.js";
7
+ import { useEmbedApi as n } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
8
+ import { organizationHeaders as r } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
9
9
  import "../../../../shared/data-access/dist/index.js";
10
10
  import { useQuery as i } from "@tanstack/react-query";
11
11
  //#region ../../libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index2.js
12
12
  function a({ id: a, enabled: o }) {
13
- let { client: s, organizationId: c, widgetToken: l, authEpoch: u } = e(), d = n({
13
+ let { client: s, organizationId: c, widgetToken: l, authEpoch: u } = n(), d = e({
14
14
  client: s,
15
- headers: t(c),
15
+ headers: r(c),
16
16
  path: { id: a ?? "" }
17
17
  });
18
18
  return i({
19
- ...r(d, u),
19
+ ...t(d, u),
20
20
  enabled: !!(a && c && l) && (o === !0 || o === void 0)
21
21
  });
22
22
  }
@@ -2,22 +2,22 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { useEmbedApi as e } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
6
- import { organizationHeaders as t } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
7
- import { getBankAccountTransactionsOptions as n } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
8
- import { withAuthEpoch as r } from "../../../../shared/data-access/dist/lib/withAuthEpoch.js";
5
+ import { getBankAccountTransactionsOptions as e } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
6
+ import { withAuthEpoch as t } from "../../../../shared/data-access/dist/lib/withAuthEpoch.js";
7
+ import { useEmbedApi as n } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
8
+ import { organizationHeaders as r } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
9
9
  import "../../../../shared/data-access/dist/index.js";
10
10
  import { useQuery as i } from "@tanstack/react-query";
11
11
  //#region ../../libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index3.js
12
12
  function a({ id: a, enabled: o, ...s }) {
13
- let { client: c, organizationId: l, widgetToken: u, authEpoch: d } = e(), f = n({
13
+ let { client: c, organizationId: l, widgetToken: u, authEpoch: d } = n(), f = e({
14
14
  client: c,
15
- headers: t(l),
15
+ headers: r(l),
16
16
  path: { id: a ?? "" },
17
17
  query: s
18
18
  });
19
19
  return i({
20
- ...r(f, d),
20
+ ...t(f, d),
21
21
  enabled: !!(a && l && u) && (o === !0 || o === void 0)
22
22
  });
23
23
  }
@@ -2,9 +2,9 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { useEmbedApi as e } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
6
- import { organizationHeaders as t } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
7
- import { downloadBankAccountTransactions as n } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
5
+ import { downloadBankAccountTransactions as e } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
6
+ import { useEmbedApi as t } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
7
+ import { organizationHeaders as n } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
8
8
  import "../../../../shared/data-access/dist/index.js";
9
9
  import { useMutation as r } from "@tanstack/react-query";
10
10
  //#region ../../libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index4.js
@@ -20,12 +20,12 @@ function i(e) {
20
20
  if (n?.[1]) return n[1].replace(/['"]/g, "").trim() || void 0;
21
21
  }
22
22
  function a() {
23
- let { client: a, organizationId: o } = e();
24
- return r({ mutationFn: async ({ id: e, startDate: r, endDate: s }) => {
25
- let { data: c, response: l } = await n({
23
+ let { client: a, organizationId: o } = t();
24
+ return r({ mutationFn: async ({ id: t, startDate: r, endDate: s }) => {
25
+ let { data: c, response: l } = await e({
26
26
  client: a,
27
- headers: t(o),
28
- path: { id: e },
27
+ headers: n(o),
28
+ path: { id: t },
29
29
  query: {
30
30
  startDate: r,
31
31
  endDate: s
@@ -2,29 +2,29 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { invalidateAllClients as e } from "../../../../shared/data-access/dist/lib/clientRegistry.js";
6
- import { useEmbedApi as t } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
7
- import { organizationHeaders as n } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
8
- import { getBankAccountQueryKey as r, getBankAccountsQueryKey as i, updateBankAccountMutation as a } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
5
+ import { getBankAccountQueryKey as e, getBankAccountsQueryKey as t, updateBankAccountMutation as n } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
6
+ import { invalidateAllClients as r } from "../../../../shared/data-access/dist/lib/clientRegistry.js";
7
+ import { useEmbedApi as i } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
8
+ import { organizationHeaders as a } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
9
9
  import "../../../../shared/data-access/dist/index.js";
10
10
  import { useMutation as o } from "@tanstack/react-query";
11
11
  //#region ../../libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index5.js
12
12
  function s() {
13
- let { client: s, organizationId: c } = t(), l = n(c), u = a({
13
+ let { client: s, organizationId: c } = i(), l = a(c), u = n({
14
14
  client: s,
15
15
  headers: l
16
16
  });
17
17
  return o({
18
18
  ...u,
19
- onSuccess: async (t, n, ...a) => {
20
- await Promise.all([e(i({
19
+ onSuccess: async (n, i, ...a) => {
20
+ await Promise.all([r(t({
21
21
  client: s,
22
22
  headers: l
23
- })), e(r({
23
+ })), r(e({
24
24
  client: s,
25
25
  headers: l,
26
- path: n.path
27
- }))]), await u.onSuccess?.(t, n, ...a);
26
+ path: i.path
27
+ }))]), await u.onSuccess?.(n, i, ...a);
28
28
  }
29
29
  });
30
30
  }
@@ -2,25 +2,25 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { invalidateAllClients as e } from "../../../shared/data-access/dist/lib/clientRegistry.js";
6
- import { useEmbedApi as t } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
7
- import { organizationHeaders as n } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
8
- import { createBankAccountMutation as r, getBankAccountsQueryKey as i } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
5
+ import { createBankAccountMutation as e, getBankAccountsQueryKey as t } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
6
+ import { invalidateAllClients as n } from "../../../shared/data-access/dist/lib/clientRegistry.js";
7
+ import { useEmbedApi as r } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
8
+ import { organizationHeaders as i } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
9
9
  import "../../../shared/data-access/dist/index.js";
10
10
  import { useMutation as a } from "@tanstack/react-query";
11
11
  //#region ../../libs/tesouro-embedded-components-react/bank-accounts-widget/data-access/dist/index3.js
12
12
  function o() {
13
- let { client: o, organizationId: s } = t(), c = n(s), l = r({
13
+ let { client: o, organizationId: s } = r(), c = i(s), l = e({
14
14
  client: o,
15
15
  headers: c
16
16
  });
17
17
  return a({
18
18
  ...l,
19
- onSuccess: async (...t) => {
20
- await e(i({
19
+ onSuccess: async (...e) => {
20
+ await n(t({
21
21
  client: o,
22
22
  headers: c
23
- })), await l.onSuccess?.(...t);
23
+ })), await l.onSuccess?.(...e);
24
24
  }
25
25
  });
26
26
  }
@@ -2,22 +2,22 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { invalidateAllClients as e } from "../../../shared/data-access/dist/lib/clientRegistry.js";
6
- import { useEmbedApi as t } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
7
- import { organizationHeaders as n } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
8
- import { getBankAccountsQueryKey as r, grantBankAccountAccessMutation as i } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
5
+ import { getBankAccountsQueryKey as e, grantBankAccountAccessMutation as t } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
6
+ import { invalidateAllClients as n } from "../../../shared/data-access/dist/lib/clientRegistry.js";
7
+ import { useEmbedApi as r } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
8
+ import { organizationHeaders as i } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
9
9
  import "../../../shared/data-access/dist/index.js";
10
10
  import { useMutation as a } from "@tanstack/react-query";
11
11
  //#region ../../libs/tesouro-embedded-components-react/bank-accounts-widget/data-access/dist/index4.js
12
12
  function o() {
13
- let { client: o, organizationId: s } = t(), c = n(s), l = i({
13
+ let { client: o, organizationId: s } = r(), c = i(s), l = t({
14
14
  client: o,
15
15
  headers: c
16
16
  });
17
17
  return a({
18
18
  ...l,
19
19
  onSuccess: async (...t) => {
20
- await e(r({
20
+ await n(e({
21
21
  client: o,
22
22
  headers: c
23
23
  })), await l.onSuccess?.(...t);