@tesouro/embedded-components-react 0.5.116 → 0.5.118

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 (163) hide show
  1. package/README.md +6 -6
  2. package/dist/index.css +13 -6
  3. package/dist/index.d.ts +31 -4
  4. package/dist/index.js +5 -4
  5. package/dist/lib/MarketingWidget.d.ts +31 -4
  6. package/dist/lib/MarketingWidget.js +3 -2
  7. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index.js +6 -6
  8. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index10.js +25 -31
  9. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index11.js +41 -0
  10. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index4.js +6 -15
  11. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index5.js +15 -11
  12. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index6.js +7 -7
  13. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index7.js +14 -37
  14. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index8.js +43 -3
  15. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index9.js +3 -31
  16. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index22.js +6 -6
  17. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index2.js +7 -7
  18. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index3.js +7 -7
  19. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index4.js +8 -8
  20. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index5.js +10 -10
  21. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/data-access/dist/index3.js +8 -8
  22. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/data-access/dist/index4.js +6 -6
  23. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/data-access/dist/index5.js +13 -13
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index10.js +25 -25
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index11.js +12 -12
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index12.js +8 -8
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index13.js +168 -168
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index15.js +7 -7
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index16.js +4 -4
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index17.js +44 -44
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index18.js +7 -7
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index4.js +4 -4
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index5.js +24 -24
  34. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index6.js +81 -81
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index7.js +17 -17
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index8.js +31 -31
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index9.js +7 -7
  38. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js +15 -15
  39. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index10.js +6 -6
  40. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index11.js +6 -6
  41. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index2.js +15 -15
  42. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index4.js +15 -15
  43. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index6.js +7 -7
  44. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index7.js +7 -7
  45. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index8.js +7 -7
  46. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index9.js +6 -6
  47. package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index3.js +10 -10
  48. package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index4.js +8 -8
  49. package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index5.js +8 -8
  50. package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index6.js +8 -8
  51. package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index7.js +5 -5
  52. package/dist/libs/tesouro-embedded-components-react/cards-widget/data-access/dist/index2.js +7 -7
  53. package/dist/libs/tesouro-embedded-components-react/cards-widget/data-access/dist/index3.js +7 -7
  54. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/data-access/dist/index2.js +14 -14
  55. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/data-access/dist/index3.js +14 -14
  56. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index2.js +5 -5
  57. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index3.js +5 -5
  58. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index4.js +15 -15
  59. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index5.js +12 -12
  60. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index6.js +9 -9
  61. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index2.js +22 -22
  62. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index3.js +12 -12
  63. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index4.js +87 -87
  64. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index5.js +44 -44
  65. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index6.js +36 -36
  66. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/data-access/dist/index2.js +6 -6
  67. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/data-access/dist/index4.js +7 -7
  68. package/dist/libs/tesouro-embedded-components-react/marketing-widget/feature/dist/index.js +3 -2
  69. package/dist/libs/tesouro-embedded-components-react/marketing-widget/feature/dist/index3.js +1 -0
  70. package/dist/libs/tesouro-embedded-components-react/marketing-widget/feature/dist/index4.js +27 -23
  71. package/dist/libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index.js +4 -3
  72. package/dist/libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index2.js +3 -1
  73. package/dist/libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index3.js +8 -17
  74. package/dist/libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index4.js +10 -80
  75. package/dist/libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index5.js +16 -72
  76. package/dist/libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index6.js +45 -0
  77. package/dist/libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index7.js +109 -0
  78. package/dist/libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index8.js +88 -0
  79. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index2.js +21 -21
  80. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index3.js +13 -13
  81. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index4.js +9 -9
  82. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index5.js +9 -9
  83. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index6.js +10 -10
  84. package/dist/libs/tesouro-embedded-components-react/settings-widget/chart-of-accounts/data-access/dist/index2.js +4 -4
  85. package/dist/libs/tesouro-embedded-components-react/settings-widget/chart-of-accounts/data-access/dist/index3.js +22 -22
  86. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index2.js +7 -7
  87. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index3.js +7 -7
  88. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index4.js +7 -7
  89. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index5.js +11 -11
  90. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index6.js +13 -13
  91. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index7.js +11 -11
  92. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index8.js +11 -11
  93. package/dist/libs/tesouro-embedded-components-react/settings-widget/profile/data-access/dist/index2.js +7 -7
  94. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index10.js +7 -7
  95. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index2.js +7 -7
  96. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index3.js +6 -6
  97. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index4.js +11 -11
  98. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index5.js +11 -11
  99. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index6.js +10 -10
  100. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index7.js +5 -5
  101. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index8.js +5 -5
  102. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index9.js +7 -7
  103. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index10.js +16 -16
  104. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index12.js +14 -14
  105. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index13.js +7 -7
  106. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index14.js +9 -9
  107. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index15.js +59 -59
  108. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index17.js +9 -9
  109. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index18.js +9 -9
  110. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index19.js +41 -41
  111. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index2.js +4 -4
  112. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index21.js +9 -9
  113. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index22.js +9 -9
  114. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index23.js +41 -41
  115. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index3.js +8 -8
  116. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index4.js +9 -9
  117. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index5.js +4 -4
  118. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index6.js +4 -4
  119. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index7.js +73 -73
  120. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index8.js +11 -11
  121. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index9.js +20 -20
  122. package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/data-access/dist/lib/approvalPoliciesApi.js +61 -61
  123. package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/data-access/dist/lib/queryKeys.js +4 -4
  124. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index2.js +16 -16
  125. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index3.js +51 -51
  126. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index5.js +63 -63
  127. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index7.js +44 -44
  128. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +35 -34
  129. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/applicationStatusQueryOptions.js +22 -0
  130. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/bank-account/useAllBankAccountsQuery.js +9 -9
  131. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/disclosures/useAcceptWidgetDisclosures.js +8 -8
  132. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/disclosures/useDisclosuresQuery.js +8 -8
  133. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/external-bank-account/useAllExternalBankAccountsQuery.js +7 -7
  134. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/merchant-category-group/useAllMerchantCategoryGroupsQuery.js +11 -11
  135. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/reference-data/useLedgerAccountsQuery.js +15 -15
  136. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/reference-data/usePaymentTermsQuery.js +7 -7
  137. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/role/useAllOrganizationRolesQuery.js +11 -11
  138. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/role/useRolePermissionsQueries.js +7 -7
  139. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useCurrentUserQuery.js +7 -7
  140. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useGetUserDataQuery.js +5 -5
  141. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useOrganizationOnboardingSuppression.js +22 -21
  142. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useUpsertUserDataMutation.js +7 -7
  143. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/user/useAllOrganizationUsersQuery.js +11 -11
  144. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/widgetTokenCacheId.js +11 -0
  145. package/dist/libs/tesouro-embedded-components-react/shared/expense-requirements/data-access/dist/index2.js +4 -4
  146. package/dist/libs/tesouro-embedded-components-react/shared/expense-requirements/data-access/dist/index3.js +14 -14
  147. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  148. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index10.js +11 -11
  149. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index11.js +11 -11
  150. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index12.js +11 -11
  151. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index2.js +7 -7
  152. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index3.js +7 -7
  153. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index4.js +11 -11
  154. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index5.js +11 -11
  155. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index6.js +13 -13
  156. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index7.js +10 -10
  157. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index8.js +7 -7
  158. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index9.js +7 -7
  159. package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index3.js +11 -11
  160. package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index6.js +7 -7
  161. package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index7.js +12 -12
  162. package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index8.js +11 -11
  163. package/package.json +1 -1
@@ -2,17 +2,17 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { useEmbedApi as e } from "../EmbedApiContext.js";
6
- import { organizationHeaders as t } from "../organizationHeaders.js";
7
- import { getBankAccounts as n } from "../rest/sdk.gen.js";
8
- import { getBankAccountsOptions as r } from "../rest/@tanstack/react-query.gen.js";
5
+ import { getBankAccounts as e } from "../rest/sdk.gen.js";
6
+ import { getBankAccountsOptions as t } from "../rest/@tanstack/react-query.gen.js";
7
+ import { useEmbedApi as n } from "../EmbedApiContext.js";
8
+ import { organizationHeaders as r } from "../organizationHeaders.js";
9
9
  import { getAllPagesNextPageParam as i, useAutoFetchNextPage as a } from "../allPages.js";
10
10
  import { useMemo as o } from "react";
11
11
  import { useInfiniteQuery as s } from "@tanstack/react-query";
12
12
  //#region ../../libs/tesouro-embedded-components-react/shared/data-access/dist/lib/bank-account/useAllBankAccountsQuery.js
13
13
  var c = 100;
14
14
  function l({ enabled: l } = {}) {
15
- let { client: u, organizationId: d, widgetToken: f, authEpoch: p } = e(), m = t(d), h = !!(d && f) && (l === !0 || l === void 0), g = r({
15
+ let { client: u, organizationId: d, widgetToken: f, authEpoch: p } = n(), m = r(d), h = !!(d && f) && (l === !0 || l === void 0), g = t({
16
16
  client: u,
17
17
  headers: m,
18
18
  query: { limit: c }
@@ -24,15 +24,15 @@ function l({ enabled: l } = {}) {
24
24
  ],
25
25
  enabled: h,
26
26
  initialPageParam: void 0,
27
- queryFn: async ({ signal: e, pageParam: t }) => {
28
- let { data: r } = await n({
27
+ queryFn: async ({ signal: t, pageParam: n }) => {
28
+ let { data: r } = await e({
29
29
  client: u,
30
30
  headers: m,
31
31
  query: {
32
32
  limit: c,
33
- ...t ? { pagination_token: t } : {}
33
+ ...n ? { pagination_token: n } : {}
34
34
  },
35
- signal: e,
35
+ signal: t,
36
36
  throwOnError: !0
37
37
  });
38
38
  return r;
@@ -2,8 +2,8 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { useEmbedApi as e } from "../EmbedApiContext.js";
6
- import { getDisclosures as t, postApiWidgetGatewayDisclosureAcceptance as n } from "../rest/sdk.gen.js";
5
+ import { getDisclosures as e, postApiWidgetGatewayDisclosureAcceptance as t } from "../rest/sdk.gen.js";
6
+ import { useEmbedApi as n } from "../EmbedApiContext.js";
7
7
  import { useMutation as r } from "@tanstack/react-query";
8
8
  //#region ../../libs/tesouro-embedded-components-react/shared/data-access/dist/lib/disclosures/useAcceptWidgetDisclosures.js
9
9
  var i = class extends Error {
@@ -12,21 +12,21 @@ var i = class extends Error {
12
12
  }
13
13
  };
14
14
  function a() {
15
- let { client: a, widgetToken: o } = e();
16
- return r({ mutationFn: async ({ invitationToken: e, userId: r, displayedVersion: s }) => {
15
+ let { client: a, widgetToken: o } = n();
16
+ return r({ mutationFn: async ({ invitationToken: n, userId: r, displayedVersion: s }) => {
17
17
  if (!o) throw Error("Widget token is required to accept disclosures");
18
- let { data: c } = await t({
18
+ let { data: c } = await e({
19
19
  client: a,
20
20
  headers: { "X-Widget-Token": o },
21
- ...e && r ? { query: {
22
- invitationToken: e,
21
+ ...n && r ? { query: {
22
+ invitationToken: n,
23
23
  userId: r
24
24
  } } : {},
25
25
  throwOnError: !0
26
26
  });
27
27
  if (!c) throw Error("Unexpected disclosures response from widget gateway");
28
28
  if (c.version !== s) throw new i();
29
- let { data: l } = await n({
29
+ let { data: l } = await t({
30
30
  client: a,
31
31
  headers: { "X-Widget-Token": o },
32
32
  body: { version: s },
@@ -2,9 +2,9 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { useEmbedApi as e } from "../EmbedApiContext.js";
6
- import { getDisclosures as t } from "../rest/sdk.gen.js";
7
- import { withAuthEpoch as n } from "../withAuthEpoch.js";
5
+ import { getDisclosures as e } from "../rest/sdk.gen.js";
6
+ import { withAuthEpoch as t } from "../withAuthEpoch.js";
7
+ import { useEmbedApi as n } from "../EmbedApiContext.js";
8
8
  import { useQuery as r } from "@tanstack/react-query";
9
9
  //#region ../../libs/tesouro-embedded-components-react/shared/data-access/dist/lib/disclosures/useDisclosuresQuery.js
10
10
  function i(e) {
@@ -20,15 +20,15 @@ function s(e, t) {
20
20
  if (e !== void 0 && t !== void 0 && a(t.queryKey, o)) return e;
21
21
  }
22
22
  function c({ invitationToken: a, userId: c, enabled: l } = {}) {
23
- let { client: u, widgetToken: d, authEpoch: f } = e(), p = a && c ? {
23
+ let { client: u, widgetToken: d, authEpoch: f } = n(), p = a && c ? {
24
24
  invitationToken: a,
25
25
  userId: c
26
- } : void 0, m = async ({ signal: e }) => {
27
- let { data: n } = await t({
26
+ } : void 0, m = async ({ signal: t }) => {
27
+ let { data: n } = await e({
28
28
  client: u,
29
29
  headers: { "X-Widget-Token": d ?? "" },
30
30
  ...p ? { query: p } : {},
31
- signal: e,
31
+ signal: t,
32
32
  throwOnError: !0
33
33
  });
34
34
  if (!n) throw Error("Unexpected disclosures response from widget gateway");
@@ -39,7 +39,7 @@ function c({ invitationToken: a, userId: c, enabled: l } = {}) {
39
39
  ...p ? { invitationTokenFingerprint: i(p.invitationToken) } : {}
40
40
  }];
41
41
  o = h;
42
- let { queryKey: g } = n({
42
+ let { queryKey: g } = t({
43
43
  queryKey: h,
44
44
  queryFn: m,
45
45
  placeholderData: void 0
@@ -2,16 +2,16 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { useEmbedApi as e } from "../EmbedApiContext.js";
6
- import { getExternalBankAccounts as t } from "../rest/sdk.gen.js";
7
- import { getExternalBankAccountsOptions as n } from "../rest/@tanstack/react-query.gen.js";
5
+ import { getExternalBankAccounts as e } from "../rest/sdk.gen.js";
6
+ import { getExternalBankAccountsOptions as t } from "../rest/@tanstack/react-query.gen.js";
7
+ import { useEmbedApi as n } from "../EmbedApiContext.js";
8
8
  import { getAllPagesNextPageParam as r, useAutoFetchNextPage as i } from "../allPages.js";
9
9
  import { useMemo as a } from "react";
10
10
  import { useInfiniteQuery as o } from "@tanstack/react-query";
11
11
  //#region ../../libs/tesouro-embedded-components-react/shared/data-access/dist/lib/external-bank-account/useAllExternalBankAccountsQuery.js
12
12
  var s = 100;
13
13
  function c({ enabled: c } = {}) {
14
- let { client: l, organizationId: u, widgetToken: d, authEpoch: f } = e(), p = { "x-organization-id": u ?? "" }, m = !!(u && d) && (c === !0 || c === void 0), h = n({
14
+ let { client: l, organizationId: u, widgetToken: d, authEpoch: f } = n(), p = { "x-organization-id": u ?? "" }, m = !!(u && d) && (c === !0 || c === void 0), h = t({
15
15
  client: l,
16
16
  headers: p,
17
17
  query: { limit: s }
@@ -23,15 +23,15 @@ function c({ enabled: c } = {}) {
23
23
  ],
24
24
  enabled: m,
25
25
  initialPageParam: void 0,
26
- queryFn: async ({ signal: e, pageParam: n }) => {
27
- let { data: r } = await t({
26
+ queryFn: async ({ signal: t, pageParam: n }) => {
27
+ let { data: r } = await e({
28
28
  client: l,
29
29
  headers: p,
30
30
  query: {
31
31
  limit: s,
32
32
  ...n ? { pagination_token: n } : {}
33
33
  },
34
- signal: e,
34
+ signal: t,
35
35
  throwOnError: !0
36
36
  });
37
37
  return r;
@@ -2,33 +2,33 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { useEmbedApi as e } from "../EmbedApiContext.js";
6
- import { organizationHeaders as t } from "../organizationHeaders.js";
7
- import { getMerchantCategoryGroups as n } from "../rest/sdk.gen.js";
8
- import { getMerchantCategoryGroupsOptions as r } from "../rest/@tanstack/react-query.gen.js";
9
- import { withAuthEpoch as i } from "../withAuthEpoch.js";
5
+ import { getMerchantCategoryGroups as e } from "../rest/sdk.gen.js";
6
+ import { getMerchantCategoryGroupsOptions as t } from "../rest/@tanstack/react-query.gen.js";
7
+ import { withAuthEpoch as n } from "../withAuthEpoch.js";
8
+ import { useEmbedApi as r } from "../EmbedApiContext.js";
9
+ import { organizationHeaders as i } from "../organizationHeaders.js";
10
10
  import { getAllPagesNextPageParam as a, isAllPagesResolving as o, useAutoFetchNextPage as s } from "../allPages.js";
11
11
  import { useMemo as c } from "react";
12
12
  import { useInfiniteQuery as l } from "@tanstack/react-query";
13
13
  //#region ../../libs/tesouro-embedded-components-react/shared/data-access/dist/lib/merchant-category-group/useAllMerchantCategoryGroupsQuery.js
14
14
  function u({ enabled: u } = {}) {
15
- let { client: d, organizationId: f, widgetToken: p, authEpoch: m } = e(), h = t(f), g = !!(f && p) && (u === !0 || u === void 0), _ = r({
15
+ let { client: d, organizationId: f, widgetToken: p, authEpoch: m } = r(), h = i(f), g = !!(f && p) && (u === !0 || u === void 0), _ = t({
16
16
  client: d,
17
17
  headers: h,
18
18
  query: { active: !0 }
19
19
  }), v = l({
20
- queryKey: [...i(_, m).queryKey, "all"],
20
+ queryKey: [...n(_, m).queryKey, "all"],
21
21
  enabled: g,
22
22
  initialPageParam: void 0,
23
- queryFn: async ({ signal: e, pageParam: t }) => {
24
- let { data: r } = await n({
23
+ queryFn: async ({ signal: t, pageParam: n }) => {
24
+ let { data: r } = await e({
25
25
  client: d,
26
26
  headers: h,
27
27
  query: {
28
28
  active: !0,
29
- ...t ? { pagination_token: t } : {}
29
+ ...n ? { pagination_token: n } : {}
30
30
  },
31
- signal: e,
31
+ signal: t,
32
32
  throwOnError: !0
33
33
  });
34
34
  return r;
@@ -2,45 +2,45 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { useEmbedApi as e } from "../EmbedApiContext.js";
6
- import { organizationHeaders as t } from "../organizationHeaders.js";
7
- import { getLedgerAccounts as n } from "../rest/sdk.gen.js";
8
- import { getLedgerAccountsOptions as r } from "../rest/@tanstack/react-query.gen.js";
9
- import { withAuthEpoch as i } from "../withAuthEpoch.js";
5
+ import { getLedgerAccounts as e } from "../rest/sdk.gen.js";
6
+ import { getLedgerAccountsOptions as t } from "../rest/@tanstack/react-query.gen.js";
7
+ import { withAuthEpoch as n } from "../withAuthEpoch.js";
8
+ import { useEmbedApi as r } from "../EmbedApiContext.js";
9
+ import { organizationHeaders as i } from "../organizationHeaders.js";
10
10
  import { getAllPagesNextPaginationTokenParam as a, isAllPagesResolving as o, useAutoFetchNextPage as s } from "../allPages.js";
11
11
  import { useMemo as c } from "react";
12
12
  import { useInfiniteQuery as l, useQuery as u } from "@tanstack/react-query";
13
13
  //#region ../../libs/tesouro-embedded-components-react/shared/data-access/dist/lib/reference-data/useLedgerAccountsQuery.js
14
14
  var d = 250;
15
- function f({ enabled: n, ...a } = {}) {
16
- let { client: o, organizationId: s, widgetToken: c, authEpoch: l } = e(), d = !!(s && c) && (n === !0 || n === void 0), f = r({
15
+ function f({ enabled: e, ...a } = {}) {
16
+ let { client: o, organizationId: s, widgetToken: c, authEpoch: l } = r(), d = !!(s && c) && (e === !0 || e === void 0), f = t({
17
17
  client: o,
18
- headers: t(s),
18
+ headers: i(s),
19
19
  query: a
20
20
  });
21
21
  return u({
22
- ...i(f, l),
22
+ ...n(f, l),
23
23
  enabled: d
24
24
  });
25
25
  }
26
26
  function p({ enabled: u } = {}) {
27
- let { client: f, organizationId: p, widgetToken: m, authEpoch: h } = e(), g = t(p), _ = !!(p && m) && (u === !0 || u === void 0), v = r({
27
+ let { client: f, organizationId: p, widgetToken: m, authEpoch: h } = r(), g = i(p), _ = !!(p && m) && (u === !0 || u === void 0), v = t({
28
28
  client: f,
29
29
  headers: g,
30
30
  query: { limit: d }
31
31
  }), y = l({
32
- queryKey: [...i(v, h).queryKey, "all"],
32
+ queryKey: [...n(v, h).queryKey, "all"],
33
33
  enabled: _,
34
34
  initialPageParam: void 0,
35
- queryFn: async ({ signal: e, pageParam: t }) => {
36
- let { data: r } = await n({
35
+ queryFn: async ({ signal: t, pageParam: n }) => {
36
+ let { data: r } = await e({
37
37
  client: f,
38
38
  headers: g,
39
39
  query: {
40
40
  limit: d,
41
- ...t ? { pagination_token: t } : {}
41
+ ...n ? { pagination_token: n } : {}
42
42
  },
43
- signal: e,
43
+ signal: t,
44
44
  throwOnError: !0
45
45
  });
46
46
  return r;
@@ -2,19 +2,19 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { useEmbedApi as e } from "../EmbedApiContext.js";
6
- import { organizationHeaders as t } from "../organizationHeaders.js";
7
- import { getPaymentTermsOptions as n } from "../rest/@tanstack/react-query.gen.js";
8
- import { withAuthEpoch as r } from "../withAuthEpoch.js";
5
+ import { getPaymentTermsOptions as e } from "../rest/@tanstack/react-query.gen.js";
6
+ import { withAuthEpoch as t } from "../withAuthEpoch.js";
7
+ import { useEmbedApi as n } from "../EmbedApiContext.js";
8
+ import { organizationHeaders as r } from "../organizationHeaders.js";
9
9
  import { useQuery as i } from "@tanstack/react-query";
10
10
  //#region ../../libs/tesouro-embedded-components-react/shared/data-access/dist/lib/reference-data/usePaymentTermsQuery.js
11
11
  function a({ enabled: a } = {}) {
12
- let { client: o, organizationId: s, widgetToken: c, authEpoch: l } = e(), u = !!(s && c) && (a === !0 || a === void 0), d = n({
12
+ let { client: o, organizationId: s, widgetToken: c, authEpoch: l } = n(), u = !!(s && c) && (a === !0 || a === void 0), d = e({
13
13
  client: o,
14
- headers: t(s)
14
+ headers: r(s)
15
15
  });
16
16
  return i({
17
- ...r(d, l),
17
+ ...t(d, l),
18
18
  enabled: u
19
19
  });
20
20
  }
@@ -2,34 +2,34 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { useEmbedApi as e } from "../EmbedApiContext.js";
6
- import { organizationHeaders as t } from "../organizationHeaders.js";
7
- import { listRoles as n } from "../rest/sdk.gen.js";
8
- import { listRolesOptions as r } from "../rest/@tanstack/react-query.gen.js";
9
- import { withAuthEpoch as i } from "../withAuthEpoch.js";
5
+ import { listRoles as e } from "../rest/sdk.gen.js";
6
+ import { listRolesOptions as t } from "../rest/@tanstack/react-query.gen.js";
7
+ import { withAuthEpoch as n } from "../withAuthEpoch.js";
8
+ import { useEmbedApi as r } from "../EmbedApiContext.js";
9
+ import { organizationHeaders as i } from "../organizationHeaders.js";
10
10
  import { getAllPagesNextPageParam as a, isAllPagesResolving as o, useAutoFetchNextPage as s } from "../allPages.js";
11
11
  import { useMemo as c } from "react";
12
12
  import { useInfiniteQuery as l } from "@tanstack/react-query";
13
13
  //#region ../../libs/tesouro-embedded-components-react/shared/data-access/dist/lib/role/useAllOrganizationRolesQuery.js
14
14
  var u = 100;
15
15
  function d({ enabled: d } = {}) {
16
- let { client: f, organizationId: p, widgetToken: m, authEpoch: h } = e(), g = t(p), _ = !!(p && m) && (d === !0 || d === void 0), v = r({
16
+ let { client: f, organizationId: p, widgetToken: m, authEpoch: h } = r(), g = i(p), _ = !!(p && m) && (d === !0 || d === void 0), v = t({
17
17
  client: f,
18
18
  headers: g,
19
19
  query: { limit: u }
20
20
  }), y = l({
21
- queryKey: [...i(v, h).queryKey, "all"],
21
+ queryKey: [...n(v, h).queryKey, "all"],
22
22
  enabled: _,
23
23
  initialPageParam: void 0,
24
- queryFn: async ({ signal: e, pageParam: t }) => {
25
- let { data: r } = await n({
24
+ queryFn: async ({ signal: t, pageParam: n }) => {
25
+ let { data: r } = await e({
26
26
  client: f,
27
27
  headers: g,
28
28
  query: {
29
29
  limit: u,
30
- ...t ? { paginationToken: t } : {}
30
+ ...n ? { paginationToken: n } : {}
31
31
  },
32
- signal: e,
32
+ signal: t,
33
33
  throwOnError: !0
34
34
  });
35
35
  return r;
@@ -2,19 +2,19 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { useEmbedApi as e } from "../EmbedApiContext.js";
6
- import { organizationHeaders as t } from "../organizationHeaders.js";
7
- import { listRolePermissionsOptions as n } from "../rest/@tanstack/react-query.gen.js";
8
- import { withAuthEpoch as r } from "../withAuthEpoch.js";
5
+ import { listRolePermissionsOptions as e } from "../rest/@tanstack/react-query.gen.js";
6
+ import { withAuthEpoch as t } from "../withAuthEpoch.js";
7
+ import { useEmbedApi as n } from "../EmbedApiContext.js";
8
+ import { organizationHeaders as r } from "../organizationHeaders.js";
9
9
  import { useCallback as i, useMemo as a, useRef as o } from "react";
10
10
  import { useQueries as s } from "@tanstack/react-query";
11
11
  //#region ../../libs/tesouro-embedded-components-react/shared/data-access/dist/lib/role/useRolePermissionsQueries.js
12
12
  function c({ roleIds: c, enabled: l }) {
13
- let { client: u, organizationId: d, widgetToken: f, authEpoch: p } = e(), m = t(d), h = !!(d && f) && (l === !0 || l === void 0), g = a(() => [...new Set(c)].sort(), [c]), _ = s({ queries: g.map((e) => ({
14
- ...r(n({
13
+ let { client: u, organizationId: d, widgetToken: f, authEpoch: p } = n(), m = r(d), h = !!(d && f) && (l === !0 || l === void 0), g = a(() => [...new Set(c)].sort(), [c]), _ = s({ queries: g.map((n) => ({
14
+ ...t(e({
15
15
  client: u,
16
16
  headers: m,
17
- path: { roleId: e }
17
+ path: { roleId: n }
18
18
  }), p),
19
19
  enabled: h
20
20
  })) }), v = o(_);
@@ -2,18 +2,18 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { useEmbedApi as e } from "./EmbedApiContext.js";
6
- import { organizationHeaders as t } from "./organizationHeaders.js";
7
- import { getEntityUsersMeOptions as n } from "./rest/@tanstack/react-query.gen.js";
8
- import { withAuthEpoch as r } from "./withAuthEpoch.js";
5
+ import { getEntityUsersMeOptions as e } from "./rest/@tanstack/react-query.gen.js";
6
+ import { withAuthEpoch as t } from "./withAuthEpoch.js";
7
+ import { useEmbedApi as n } from "./EmbedApiContext.js";
8
+ import { organizationHeaders as r } from "./organizationHeaders.js";
9
9
  import { useQuery as i } from "@tanstack/react-query";
10
10
  //#region ../../libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useCurrentUserQuery.js
11
11
  function a({ enabled: a } = {}) {
12
- let { client: o, organizationId: s, widgetToken: c, authEpoch: l } = e(), u = !!(s && c) && (a === !0 || a === void 0);
12
+ let { client: o, organizationId: s, widgetToken: c, authEpoch: l } = n(), u = !!(s && c) && (a === !0 || a === void 0);
13
13
  return i({
14
- ...r(n({
14
+ ...t(e({
15
15
  client: o,
16
- headers: t(s)
16
+ headers: r(s)
17
17
  }), l),
18
18
  enabled: u,
19
19
  staleTime: Infinity,
@@ -2,17 +2,17 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { useEmbedApi as e } from "./EmbedApiContext.js";
6
- import { getUserDataOptions as t } from "./rest/@tanstack/react-query.gen.js";
7
- import { withAuthEpoch as n } from "./withAuthEpoch.js";
5
+ import { getUserDataOptions as e } from "./rest/@tanstack/react-query.gen.js";
6
+ import { withAuthEpoch as t } from "./withAuthEpoch.js";
7
+ import { useEmbedApi as n } from "./EmbedApiContext.js";
8
8
  import { isUserDataNotFoundError as r } from "./isUserDataNotFoundError.js";
9
9
  import { useQuery as i } from "@tanstack/react-query";
10
10
  //#region ../../libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useGetUserDataQuery.js
11
11
  function a({ key: a, enabled: o, defaultWhenNotFound: s }) {
12
- let { client: c, widgetToken: l, authEpoch: u } = e(), d = !!(l && a) && o !== !1, f = t({
12
+ let { client: c, widgetToken: l, authEpoch: u } = n(), d = !!(l && a) && o !== !1, f = e({
13
13
  client: c,
14
14
  path: { key: a }
15
- }), p = f.queryFn, m = n(f, u);
15
+ }), p = f.queryFn, m = t(f, u);
16
16
  return i(s !== void 0 && p ? {
17
17
  ...m,
18
18
  enabled: d,
@@ -2,32 +2,33 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { useEmbedApi as e } from "./EmbedApiContext.js";
6
- import { getApplicationStatusOptions as t } from "./rest/@tanstack/react-query.gen.js";
7
- import { withAuthEpoch as n } from "./withAuthEpoch.js";
8
- import { OnboardingSuppressionReason as r } from "./onboardingSuppressionReason.js";
9
- import { useQuery as i } from "@tanstack/react-query";
5
+ import { applicationStatusQueryOptions as e } from "./applicationStatusQueryOptions.js";
6
+ import { useEmbedApi as t } from "./EmbedApiContext.js";
7
+ import { OnboardingSuppressionReason as n } from "./onboardingSuppressionReason.js";
8
+ import { useQuery as r } from "@tanstack/react-query";
10
9
  //#region ../../libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useOrganizationOnboardingSuppression.js
11
- var a = "COMPLETE", o = "BANK_ACCOUNT", s = "STARTED_BY_OTHER";
12
- function c(e) {
13
- let t = e.filter((e) => e.product === o);
14
- return t.some((e) => e.status === a) ? r.OrganizationApplicationComplete : t.some((e) => e.ownership === s) ? r.OrganizationApplicationStartedByOther : null;
10
+ var i = "COMPLETE", a = "BANK_ACCOUNT", o = "STARTED_BY_OTHER";
11
+ function s(e) {
12
+ let t = e.filter((e) => e.product === a);
13
+ return t.some((e) => e.status === i) ? n.OrganizationApplicationComplete : t.some((e) => e.ownership === o) ? n.OrganizationApplicationStartedByOther : null;
15
14
  }
16
- function l() {
17
- let { client: r, widgetToken: a, authEpoch: o } = e(), s = !!a, l = i({
18
- ...n(t({ client: r }), o),
19
- enabled: s,
20
- retry: 2,
21
- retryDelay: 300
22
- }), u = l.data ? c(l.data.applications) : null;
15
+ function c() {
16
+ let { client: n, widgetToken: i, authEpoch: a } = t(), o = !!i, c = r({
17
+ ...e({
18
+ client: n,
19
+ widgetToken: i,
20
+ authEpoch: a
21
+ }),
22
+ enabled: o
23
+ }), l = c.data ? s(c.data.applications) : null;
23
24
  return {
24
- isSuppressed: u !== null,
25
- reason: u,
26
- isResolved: !s || l.isSuccess || l.isError,
25
+ isSuppressed: l !== null,
26
+ reason: l,
27
+ isResolved: !o || c.isSuccess || c.isError,
27
28
  refetch: () => {
28
- l.refetch();
29
+ c.refetch();
29
30
  }
30
31
  };
31
32
  }
32
33
  //#endregion
33
- export { l as useOrganizationOnboardingSuppression };
34
+ export { c as useOrganizationOnboardingSuppression };
@@ -2,18 +2,18 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { invalidateAllClients as e } from "./clientRegistry.js";
6
- import { useEmbedApi as t } from "./EmbedApiContext.js";
7
- import { upsertUserDataMutation as n } from "./rest/@tanstack/react-query.gen.js";
5
+ import { upsertUserDataMutation as e } from "./rest/@tanstack/react-query.gen.js";
6
+ import { invalidateAllClients as t } from "./clientRegistry.js";
7
+ import { useEmbedApi as n } from "./EmbedApiContext.js";
8
8
  import { userDataInvalidationKey as r } from "./queryKeys.js";
9
9
  import { useMutation as i } from "@tanstack/react-query";
10
10
  //#region ../../libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useUpsertUserDataMutation.js
11
11
  function a() {
12
- let { client: a } = t();
12
+ let { client: a } = n();
13
13
  return i({
14
- ...n({ client: a }),
15
- onSuccess: async (t, n) => {
16
- await e(r({
14
+ ...e({ client: a }),
15
+ onSuccess: async (e, n) => {
16
+ await t(r({
17
17
  client: a,
18
18
  key: n.path.key
19
19
  }));
@@ -2,18 +2,18 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { useEmbedApi as e } from "../EmbedApiContext.js";
6
- import { organizationHeaders as t } from "../organizationHeaders.js";
7
- import { getUsers as n } from "../rest/sdk.gen.js";
8
- import { getUsersOptions as r } from "../rest/@tanstack/react-query.gen.js";
9
- import { withAuthEpoch as i } from "../withAuthEpoch.js";
5
+ import { getUsers as e } from "../rest/sdk.gen.js";
6
+ import { getUsersOptions as t } from "../rest/@tanstack/react-query.gen.js";
7
+ import { withAuthEpoch as n } from "../withAuthEpoch.js";
8
+ import { useEmbedApi as r } from "../EmbedApiContext.js";
9
+ import { organizationHeaders as i } from "../organizationHeaders.js";
10
10
  import { getAllPagesNextPageParam as a, isAllPagesResolving as o, useAutoFetchNextPage as s } from "../allPages.js";
11
11
  import { useMemo as c } from "react";
12
12
  import { useInfiniteQuery as l } from "@tanstack/react-query";
13
13
  //#region ../../libs/tesouro-embedded-components-react/shared/data-access/dist/lib/user/useAllOrganizationUsersQuery.js
14
14
  var u = 100;
15
15
  function d({ enabled: d, permissions: f } = {}) {
16
- let { client: p, organizationId: m, widgetToken: h, authEpoch: g } = e(), _ = t(m), v = !!(m && h) && (d === !0 || d === void 0), y = f?.length ? { Permissions: f } : {}, b = r({
16
+ let { client: p, organizationId: m, widgetToken: h, authEpoch: g } = r(), _ = i(m), v = !!(m && h) && (d === !0 || d === void 0), y = f?.length ? { Permissions: f } : {}, b = t({
17
17
  client: p,
18
18
  headers: _,
19
19
  query: {
@@ -22,20 +22,20 @@ function d({ enabled: d, permissions: f } = {}) {
22
22
  ...y
23
23
  }
24
24
  }), x = l({
25
- queryKey: [...i(b, g).queryKey, "all"],
25
+ queryKey: [...n(b, g).queryKey, "all"],
26
26
  enabled: v,
27
27
  initialPageParam: void 0,
28
- queryFn: async ({ signal: e, pageParam: t }) => {
29
- let { data: r } = await n({
28
+ queryFn: async ({ signal: t, pageParam: n }) => {
29
+ let { data: r } = await e({
30
30
  client: p,
31
31
  headers: _,
32
32
  query: {
33
33
  Status: "ACTIVE",
34
34
  Limit: u,
35
35
  ...y,
36
- ...t ? { PaginationToken: t } : {}
36
+ ...n ? { PaginationToken: n } : {}
37
37
  },
38
- signal: e,
38
+ signal: t,
39
39
  throwOnError: !0
40
40
  });
41
41
  return r;
@@ -0,0 +1,11 @@
1
+ //#region ../../libs/tesouro-embedded-components-react/shared/data-access/dist/lib/widgetTokenCacheId.js
2
+ function e(e, t, n) {
3
+ let r = t;
4
+ for (let t = 0; t < e.length; t += 1) r ^= e.charCodeAt(t), r = Math.imul(r, n);
5
+ return (r >>> 0) % 67108864;
6
+ }
7
+ function t(t) {
8
+ return t ? e(t, 2166136261, 16777619) * 67108864 + e(t, 16777619, 2246822507) + 1 : 0;
9
+ }
10
+ //#endregion
11
+ export { t as widgetTokenCacheId };
@@ -1,10 +1,10 @@
1
- import { organizationHeaders as e } from "../../../data-access/dist/lib/organizationHeaders.js";
2
- import { getTransactionsValidationsQueryKey as t } from "../../../data-access/dist/lib/rest/@tanstack/react-query.gen.js";
1
+ import { getTransactionsValidationsQueryKey as e } from "../../../data-access/dist/lib/rest/@tanstack/react-query.gen.js";
2
+ import { organizationHeaders as t } from "../../../data-access/dist/lib/organizationHeaders.js";
3
3
  import "../../../data-access/dist/index.js";
4
4
  //#region ../../libs/tesouro-embedded-components-react/shared/expense-requirements/data-access/dist/index2.js
5
- var n = ({ client: n, organizationId: r }) => t({
5
+ var n = ({ client: n, organizationId: r }) => e({
6
6
  client: n,
7
- headers: e(r)
7
+ headers: t(r)
8
8
  });
9
9
  //#endregion
10
10
  export { n as transactionsValidationsInvalidationKey };