@tesouro/embedded-components-react 0.5.115 → 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 (149) hide show
  1. package/dist/index.css +3 -0
  2. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index.js +6 -6
  3. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index10.js +25 -31
  4. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index11.js +41 -0
  5. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index4.js +6 -15
  6. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index5.js +15 -11
  7. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index6.js +7 -7
  8. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index7.js +14 -37
  9. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index8.js +43 -3
  10. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index9.js +3 -31
  11. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index22.js +6 -6
  12. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index17.js +20 -23
  13. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index21.js +20 -23
  14. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index2.js +7 -7
  15. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index3.js +7 -7
  16. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index4.js +8 -8
  17. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index5.js +10 -10
  18. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/data-access/dist/index3.js +8 -8
  19. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/data-access/dist/index4.js +6 -6
  20. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/data-access/dist/index5.js +13 -13
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index10.js +25 -25
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index11.js +12 -12
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index12.js +8 -8
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index13.js +168 -168
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index15.js +7 -7
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index16.js +4 -4
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index17.js +44 -44
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index18.js +7 -7
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index4.js +4 -4
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index5.js +24 -24
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index6.js +81 -81
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index7.js +17 -17
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index8.js +31 -31
  34. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index9.js +7 -7
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js +15 -15
  36. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index10.js +6 -6
  37. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index11.js +6 -6
  38. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index2.js +15 -15
  39. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index4.js +15 -15
  40. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index6.js +7 -7
  41. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index7.js +7 -7
  42. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index8.js +7 -7
  43. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index9.js +6 -6
  44. package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index3.js +10 -10
  45. package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index4.js +8 -8
  46. package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index5.js +8 -8
  47. package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index6.js +8 -8
  48. package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index7.js +5 -5
  49. package/dist/libs/tesouro-embedded-components-react/cards-widget/data-access/dist/index2.js +7 -7
  50. package/dist/libs/tesouro-embedded-components-react/cards-widget/data-access/dist/index3.js +7 -7
  51. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/data-access/dist/index2.js +14 -14
  52. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/data-access/dist/index3.js +14 -14
  53. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index2.js +5 -5
  54. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index3.js +5 -5
  55. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index4.js +15 -15
  56. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index5.js +12 -12
  57. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index6.js +9 -9
  58. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index2.js +22 -22
  59. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index3.js +12 -12
  60. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index4.js +87 -87
  61. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index5.js +44 -44
  62. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index6.js +36 -36
  63. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/data-access/dist/index2.js +6 -6
  64. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/data-access/dist/index4.js +7 -7
  65. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index2.js +21 -21
  66. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index3.js +13 -13
  67. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index4.js +9 -9
  68. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index5.js +9 -9
  69. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index6.js +10 -10
  70. package/dist/libs/tesouro-embedded-components-react/settings-widget/chart-of-accounts/data-access/dist/index2.js +4 -4
  71. package/dist/libs/tesouro-embedded-components-react/settings-widget/chart-of-accounts/data-access/dist/index3.js +22 -22
  72. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index2.js +7 -7
  73. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index3.js +7 -7
  74. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index4.js +7 -7
  75. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index5.js +11 -11
  76. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index6.js +13 -13
  77. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index7.js +11 -11
  78. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index8.js +11 -11
  79. package/dist/libs/tesouro-embedded-components-react/settings-widget/profile/data-access/dist/index2.js +7 -7
  80. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index10.js +7 -7
  81. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index2.js +7 -7
  82. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index3.js +6 -6
  83. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index4.js +11 -11
  84. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index5.js +11 -11
  85. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index6.js +10 -10
  86. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index7.js +5 -5
  87. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index8.js +5 -5
  88. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index9.js +7 -7
  89. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index10.js +16 -16
  90. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index12.js +14 -14
  91. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index13.js +7 -7
  92. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index14.js +9 -9
  93. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index15.js +59 -59
  94. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index17.js +9 -9
  95. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index18.js +9 -9
  96. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index19.js +41 -41
  97. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index2.js +4 -4
  98. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index21.js +9 -9
  99. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index22.js +9 -9
  100. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index23.js +41 -41
  101. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index3.js +8 -8
  102. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index4.js +9 -9
  103. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index5.js +4 -4
  104. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index6.js +4 -4
  105. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index7.js +73 -73
  106. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index8.js +11 -11
  107. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index9.js +20 -20
  108. package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/data-access/dist/lib/approvalPoliciesApi.js +61 -61
  109. package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/data-access/dist/lib/queryKeys.js +4 -4
  110. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index2.js +16 -16
  111. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index3.js +51 -51
  112. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index5.js +63 -63
  113. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index7.js +44 -44
  114. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +35 -34
  115. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/applicationStatusQueryOptions.js +22 -0
  116. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/bank-account/useAllBankAccountsQuery.js +9 -9
  117. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/disclosures/useAcceptWidgetDisclosures.js +8 -8
  118. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/disclosures/useDisclosuresQuery.js +8 -8
  119. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/external-bank-account/useAllExternalBankAccountsQuery.js +7 -7
  120. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/merchant-category-group/useAllMerchantCategoryGroupsQuery.js +11 -11
  121. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/reference-data/useLedgerAccountsQuery.js +15 -15
  122. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/reference-data/usePaymentTermsQuery.js +7 -7
  123. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/role/useAllOrganizationRolesQuery.js +11 -11
  124. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/role/useRolePermissionsQueries.js +7 -7
  125. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useCurrentUserQuery.js +7 -7
  126. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useGetUserDataQuery.js +5 -5
  127. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useOrganizationOnboardingSuppression.js +22 -21
  128. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useUpsertUserDataMutation.js +7 -7
  129. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/user/useAllOrganizationUsersQuery.js +11 -11
  130. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/widgetTokenCacheId.js +11 -0
  131. package/dist/libs/tesouro-embedded-components-react/shared/expense-requirements/data-access/dist/index2.js +4 -4
  132. package/dist/libs/tesouro-embedded-components-react/shared/expense-requirements/data-access/dist/index3.js +14 -14
  133. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  134. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index10.js +11 -11
  135. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index11.js +11 -11
  136. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index12.js +11 -11
  137. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index2.js +7 -7
  138. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index3.js +7 -7
  139. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index4.js +11 -11
  140. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index5.js +11 -11
  141. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index6.js +13 -13
  142. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index7.js +10 -10
  143. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index8.js +7 -7
  144. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index9.js +7 -7
  145. package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index3.js +11 -11
  146. package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index6.js +7 -7
  147. package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index7.js +12 -12
  148. package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index8.js +11 -11
  149. package/package.json +1 -1
package/dist/index.css CHANGED
@@ -1740,6 +1740,9 @@
1740
1740
  .ttw\:grid-cols-\[180px_1fr\] {
1741
1741
  grid-template-columns: 180px 1fr;
1742
1742
  }
1743
+ .ttw\:grid-cols-\[max-content_1fr\] {
1744
+ grid-template-columns: max-content 1fr;
1745
+ }
1743
1746
  .ttw\:grid-cols-\[minmax\(0\,1fr\)_auto\] {
1744
1747
  grid-template-columns: minmax(0,1fr) auto;
1745
1748
  }
@@ -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";
@@ -1,28 +1,25 @@
1
1
  import { Typography as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { jsx as t, jsxs as n } from "react/jsx-runtime";
2
+ import { Fragment as t, jsx as n, jsxs as r } from "react/jsx-runtime";
3
3
  //#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index17.js
4
- function r({ label: r, value: i, testId: a }) {
5
- return i ? /* @__PURE__ */ n("div", {
6
- className: "ttw:grid ttw:min-w-0 ttw:grid-cols-2 ttw:gap-4",
7
- "data-testid": a,
8
- children: [/* @__PURE__ */ t(e, {
9
- component: "span",
10
- variant: "body2",
11
- className: "ttw:min-w-0 ttw:text-muted-foreground",
12
- children: r
13
- }), /* @__PURE__ */ t(e, {
14
- component: "span",
15
- variant: "body2",
16
- className: "ttw:min-w-0 ttw:wrap-break-word ttw:whitespace-pre-line ttw:text-left ttw:font-medium ttw:text-foreground",
17
- children: i
18
- })]
19
- }) : null;
4
+ function i({ label: i, value: a, testId: o }) {
5
+ return a ? /* @__PURE__ */ r(t, { children: [/* @__PURE__ */ n(e, {
6
+ component: "span",
7
+ variant: "body2",
8
+ className: "ttw:text-muted-foreground",
9
+ children: i
10
+ }), /* @__PURE__ */ n(e, {
11
+ component: "span",
12
+ variant: "body2",
13
+ "data-testid": o,
14
+ className: "ttw:min-w-0 ttw:wrap-break-word ttw:whitespace-pre-line ttw:text-left ttw:font-medium ttw:text-foreground",
15
+ children: a
16
+ })] }) : null;
20
17
  }
21
- function i({ rows: e, testIds: n }) {
22
- return /* @__PURE__ */ t("div", {
23
- className: "ttw:flex ttw:flex-col ttw:gap-2",
24
- "data-testid": n?.root,
25
- children: e.map((e) => /* @__PURE__ */ t(r, {
18
+ function a({ rows: e, testIds: t }) {
19
+ return /* @__PURE__ */ n("div", {
20
+ className: "ttw:grid ttw:grid-cols-[max-content_1fr] ttw:gap-x-4 ttw:gap-y-2",
21
+ "data-testid": t?.root,
22
+ children: e.map((e) => /* @__PURE__ */ n(i, {
26
23
  label: e.label,
27
24
  value: e.value,
28
25
  testId: e.testId
@@ -30,4 +27,4 @@ function i({ rows: e, testIds: n }) {
30
27
  });
31
28
  }
32
29
  //#endregion
33
- export { i as BusinessDetailsSummary };
30
+ export { a as BusinessDetailsSummary };
@@ -1,28 +1,25 @@
1
1
  import { Typography as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { jsx as t, jsxs as n } from "react/jsx-runtime";
2
+ import { Fragment as t, jsx as n, jsxs as r } from "react/jsx-runtime";
3
3
  //#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index21.js
4
- function r({ label: r, value: i, testId: a, valueMonospace: o }) {
5
- return i ? /* @__PURE__ */ n("div", {
6
- className: "ttw:grid ttw:min-w-0 ttw:grid-cols-2 ttw:gap-4",
7
- "data-testid": a,
8
- children: [/* @__PURE__ */ t(e, {
9
- component: "span",
10
- variant: "body2",
11
- className: "ttw:min-w-0 ttw:text-muted-foreground",
12
- children: r
13
- }), /* @__PURE__ */ t(e, {
14
- component: "span",
15
- variant: "body2",
16
- className: `ttw:min-w-0 ttw:wrap-break-word ttw:whitespace-pre-line ttw:text-left ttw:font-medium ttw:text-foreground ${o ? "ttw:font-mono ttw:tracking-wider" : ""}`,
17
- children: i
18
- })]
19
- }) : null;
4
+ function i({ label: i, value: a, testId: o, valueMonospace: s }) {
5
+ return a ? /* @__PURE__ */ r(t, { children: [/* @__PURE__ */ n(e, {
6
+ component: "span",
7
+ variant: "body2",
8
+ className: "ttw:text-muted-foreground",
9
+ children: i
10
+ }), /* @__PURE__ */ n(e, {
11
+ component: "span",
12
+ variant: "body2",
13
+ "data-testid": o,
14
+ className: `ttw:min-w-0 ttw:wrap-break-word ttw:whitespace-pre-line ttw:text-left ttw:font-medium ttw:text-foreground ${s ? "ttw:font-mono ttw:tracking-wider" : ""}`,
15
+ children: a
16
+ })] }) : null;
20
17
  }
21
- function i({ rows: e, testIds: n }) {
22
- return /* @__PURE__ */ t("div", {
23
- className: "ttw:flex ttw:flex-col ttw:gap-2",
24
- "data-testid": n?.root,
25
- children: e.map((e) => /* @__PURE__ */ t(r, {
18
+ function a({ rows: e, testIds: t }) {
19
+ return /* @__PURE__ */ n("div", {
20
+ className: "ttw:grid ttw:grid-cols-[max-content_1fr] ttw:gap-x-4 ttw:gap-y-2",
21
+ "data-testid": t?.root,
22
+ children: e.map((e) => /* @__PURE__ */ n(i, {
26
23
  label: e.label,
27
24
  value: e.value,
28
25
  testId: e.testId,
@@ -31,4 +28,4 @@ function i({ rows: e, testIds: n }) {
31
28
  });
32
29
  }
33
30
  //#endregion
34
- export { i as AboutYouSummary };
31
+ export { a as AboutYouSummary };
@@ -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