@tesouro/embedded-components-react 0.5.225 → 0.5.227

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 (142) hide show
  1. package/README.md +21 -21
  2. package/dist/index.d.ts +23 -2
  3. package/dist/index.js +1 -1
  4. package/dist/lib/ReceivablesWidget.d.ts +23 -2
  5. package/dist/lib/ReceivablesWidget.js +1 -1
  6. package/dist/libs/tesouro-embedded-components-react/balances-widget/feature/dist/index3.js +41 -39
  7. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index12.js +2 -2
  8. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index2.js +2 -2
  9. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index3.js +2 -2
  10. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index4.js +2 -2
  11. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/feature/dist/index9.js +150 -147
  12. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/data-access/dist/index5.js +46 -51
  13. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/index7.js +130 -128
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index18.js +31 -32
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index19.js +2 -2
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index2.js +2 -2
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index21.js +2 -2
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index22.js +2 -2
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index3.js +2 -2
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index4.js +36 -37
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/data-access/dist/index2.js +2 -2
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/feature/dist/index4.js +2 -2
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index2.js +6 -10
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index3.js +2 -2
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index4.js +2 -2
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index5.js +2 -2
  27. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index6.js +2 -2
  28. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index7.js +2 -2
  29. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index8.js +2 -2
  30. package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/index13.js +154 -150
  31. package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index7.js +2 -2
  32. package/dist/libs/tesouro-embedded-components-react/cards-widget/data-access/dist/index2.js +2 -2
  33. package/dist/libs/tesouro-embedded-components-react/cards-widget/data-access/dist/index3.js +2 -2
  34. package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/index9.js +151 -149
  35. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/data-access/dist/index2.js +4 -4
  36. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/data-access/dist/index3.js +4 -4
  37. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index15.js +2 -2
  38. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index17.js +2 -2
  39. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index18.js +2 -2
  40. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index19.js +2 -2
  41. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index2.js +2 -2
  42. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index3.js +2 -2
  43. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index4.js +2 -2
  44. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index5.js +2 -2
  45. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index6.js +2 -2
  46. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index8.js +2 -2
  47. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index9.js +2 -2
  48. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index24.js +1 -0
  49. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index27.js +89 -87
  50. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index5.js +133 -130
  51. package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index8.js +36 -34
  52. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index.js +4 -4
  53. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index10.js +50 -36
  54. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index11.js +6 -6
  55. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index12.js +2 -2
  56. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index3.js +40 -39
  57. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index.js +1 -1
  58. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index12.js +51 -32
  59. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index13.js +20 -1
  60. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index15.js +17 -202
  61. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index16.js +220 -31
  62. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index17.js +32 -145
  63. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index18.js +126 -44
  64. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index19.js +145 -117
  65. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index20.js +46 -58
  66. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index21.js +113 -87
  67. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index22.js +58 -116
  68. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index23.js +98 -225
  69. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index24.js +111 -27
  70. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index25.js +225 -462
  71. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index26.js +34 -41
  72. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index27.js +627 -34
  73. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index28.js +39 -77
  74. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index29.js +34 -112
  75. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index30.js +75 -310
  76. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index31.js +124 -0
  77. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index32.js +324 -0
  78. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index6.js +20 -15
  79. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index8.js +56 -53
  80. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index9.js +33 -29
  81. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index25.js +184 -162
  82. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index4.js +1 -3
  83. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index6.js +78 -69
  84. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/data-access/dist/index4.js +2 -2
  85. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/index9.js +209 -207
  86. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index4.js +10 -5
  87. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index5.js +10 -5
  88. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index6.js +11 -6
  89. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index2.js +2 -2
  90. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index3.js +2 -2
  91. package/dist/libs/tesouro-embedded-components-react/settings-widget/profile/data-access/dist/index2.js +2 -2
  92. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index12.js +2 -2
  93. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index13.js +2 -2
  94. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index14.js +30 -28
  95. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index17.js +28 -26
  96. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index18.js +37 -34
  97. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index21.js +28 -26
  98. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index22.js +37 -34
  99. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index17.js +294 -292
  100. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index5.js +58 -58
  101. package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/data-access/dist/lib/approvalPoliciesApi.js +47 -48
  102. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index3.js +4 -4
  103. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index5.js +2 -2
  104. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index7.js +4 -4
  105. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/CounterpartSelector.js +7 -6
  106. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index15.js +20 -19
  107. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +40 -39
  108. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/EmbedApiContext.js +14 -13
  109. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/allPages.js +1 -1
  110. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/applicationStatusQueryOptions.js +16 -15
  111. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/bank-account/useAllBankAccountsQuery.js +7 -5
  112. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/debit-card/useAllDebitCardsQuery.js +7 -5
  113. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/disclosures/useDisclosuresQuery.js +2 -2
  114. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/external-bank-account/useAllExternalBankAccountsQuery.js +7 -5
  115. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/merchant-category-group/useAllMerchantCategoryGroupsQuery.js +28 -29
  116. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/organizationStatus.js +10 -0
  117. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/reference-data/useLedgerAccountsQuery.js +26 -27
  118. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/reference-data/usePaymentTermsQuery.js +2 -2
  119. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js +210 -199
  120. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +60 -52
  121. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/role/useAllOrganizationRolesQuery.js +31 -32
  122. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/role/useRolePermissionsQueries.js +2 -2
  123. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useCurrentUserQuery.js +2 -2
  124. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useGetUserDataQuery.js +2 -2
  125. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useMailboxAddress.js +2 -2
  126. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useMyEntityQuery.js +2 -2
  127. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/user/useAllOrganizationUsersQuery.js +33 -34
  128. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/withAuthEpoch.js +33 -22
  129. package/dist/libs/tesouro-embedded-components-react/shared/expense-requirements/data-access/dist/index3.js +2 -2
  130. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/RootWidgetProvider.js +43 -32
  131. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/WidgetProvider.js +138 -127
  132. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/deriveOrganizationStatus.js +6 -0
  133. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/useWidgetFetch.js +1 -1
  134. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  135. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index10.js +2 -2
  136. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index2.js +2 -2
  137. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index3.js +2 -2
  138. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index4.js +2 -2
  139. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index9.js +2 -2
  140. package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index6.js +2 -2
  141. package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/index6.js +60 -58
  142. package/package.json +1 -1
@@ -11,7 +11,7 @@ import "../../../data-access/dist/invalidation.js";
11
11
  import { useQueries as i } from "@tanstack/react-query";
12
12
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/data-access/dist/index2.js
13
13
  function a({ payableIds: a, enabled: o }) {
14
- let { client: s, organizationId: c, widgetToken: l, authEpoch: u, organizationPending: d } = t(), f = !!(c && l) && (o === !0 || o === void 0);
14
+ let { client: s, organizationId: c, widgetToken: l, authEpoch: u, organizationStatus: d } = t(), f = !!(c && l) && (o === !0 || o === void 0);
15
15
  return i({
16
16
  queries: a.map((t) => ({
17
17
  ...e(r({
@@ -20,7 +20,7 @@ function a({ payableIds: a, enabled: o }) {
20
20
  payableId: t
21
21
  }), {
22
22
  authEpoch: u,
23
- organizationPending: d
23
+ organizationStatus: d
24
24
  }),
25
25
  enabled: f && !!t
26
26
  })),
@@ -23,7 +23,7 @@ function g({ onOpenBill: g, labels: _ } = {}) {
23
23
  let v = {
24
24
  ...s,
25
25
  ..._
26
- }, y = _?.tooManyFilesError ?? s.tooManyFilesError, b = _?.remainingCapacityError ?? s.remainingCapacityError, { client: x, organizationId: S, authEpoch: C, organizationPending: w } = r(), T = h(), E = f(() => o(S), [S]), D = l(), [O, k] = p(!1), { data: A = [] } = m({
26
+ }, y = _?.tooManyFilesError ?? s.tooManyFilesError, b = _?.remainingCapacityError ?? s.remainingCapacityError, { client: x, organizationId: S, authEpoch: C, organizationStatus: w } = r(), T = h(), E = f(() => o(S), [S]), D = l(), [O, k] = p(!1), { data: A = [] } = m({
27
27
  queryKey: E,
28
28
  queryFn: () => T.getQueryData(E) ?? [],
29
29
  staleTime: Infinity,
@@ -88,7 +88,7 @@ function g({ onOpenBill: g, labels: _ } = {}) {
88
88
  path: { payable_id: o }
89
89
  }), {
90
90
  authEpoch: C,
91
- organizationPending: w
91
+ organizationStatus: w
92
92
  }),
93
93
  retry: !1
94
94
  }).catch((e) => {
@@ -4,7 +4,7 @@
4
4
  "use client";
5
5
  import { getPayables as e } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
6
6
  import { getPayablesOptions 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";
7
+ import { withAuthEpochInfinite as n } from "../../../../shared/data-access/dist/lib/withAuthEpoch.js";
8
8
  import { useEmbedApi as r } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
9
9
  import { organizationHeaders as i } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
10
10
  import { getAllPagesNextPaginationTokenParam as a, isAllPagesResolving as o, useAutoFetchNextPage as s } from "../../../../shared/data-access/dist/lib/allPages.js";
@@ -13,19 +13,15 @@ import { useMemo as c } from "react";
13
13
  import { useInfiniteQuery as l } from "@tanstack/react-query";
14
14
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index2.js
15
15
  function u({ enabled: u, maxPages: d = 3, ...f } = {}) {
16
- let { client: p, organizationId: m, widgetToken: h, authEpoch: g, organizationPending: _ } = r(), v = i(m), y = !!(m && h) && (u === !0 || u === void 0), b = t({
16
+ let { client: p, organizationId: m, widgetToken: h, authEpoch: g, organizationStatus: _ } = r(), v = i(m), y = !!(m && h) && (u === !0 || u === void 0), b = t({
17
17
  client: p,
18
18
  headers: v,
19
19
  query: f
20
20
  }), x = l({
21
- queryKey: [
22
- ...n(b, {
23
- authEpoch: g,
24
- organizationPending: _
25
- }).queryKey,
26
- "first-pages",
27
- d
28
- ],
21
+ ...n(b.queryKey, {
22
+ authEpoch: g,
23
+ organizationStatus: _
24
+ }, { suffix: ["first-pages", d] }),
29
25
  enabled: y,
30
26
  initialPageParam: void 0,
31
27
  queryFn: async ({ signal: t, pageParam: n }) => {
@@ -13,7 +13,7 @@ import { useMemo as a } from "react";
13
13
  import { useQueries as o } from "@tanstack/react-query";
14
14
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index3.js
15
15
  function s({ filters: s, enabled: c }) {
16
- let { client: l, organizationId: u, widgetToken: d, authEpoch: f, organizationPending: p } = n(), m = r(u), h = !!(u && d) && (c === !0 || c === void 0), g = o({ queries: s.map((n) => ({
16
+ let { client: l, organizationId: u, widgetToken: d, authEpoch: f, organizationStatus: p } = n(), m = r(u), h = !!(u && d) && (c === !0 || c === void 0), g = o({ queries: s.map((n) => ({
17
17
  ...t(e({
18
18
  client: l,
19
19
  headers: m,
@@ -23,7 +23,7 @@ function s({ filters: s, enabled: c }) {
23
23
  }
24
24
  }), {
25
25
  authEpoch: f,
26
- organizationPending: p
26
+ organizationStatus: p
27
27
  }),
28
28
  enabled: h
29
29
  })) });
@@ -12,7 +12,7 @@ import "../../../data-access/dist/invalidation.js";
12
12
  import { useQuery as a } from "@tanstack/react-query";
13
13
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index4.js
14
14
  function o({ enabled: o, pollWhileOcrProcessing: s = !1, ...c } = {}) {
15
- let { client: l, organizationId: u, widgetToken: d, authEpoch: f, organizationPending: p } = n(), m = !!(u && d) && (o === !0 || o === void 0), h = e({
15
+ let { client: l, organizationId: u, widgetToken: d, authEpoch: f, organizationStatus: p } = n(), m = !!(u && d) && (o === !0 || o === void 0), h = e({
16
16
  client: l,
17
17
  headers: r(u),
18
18
  query: c
@@ -20,7 +20,7 @@ function o({ enabled: o, pollWhileOcrProcessing: s = !1, ...c } = {}) {
20
20
  return a({
21
21
  ...t(h, {
22
22
  authEpoch: f,
23
- organizationPending: p
23
+ organizationStatus: p
24
24
  }),
25
25
  enabled: m,
26
26
  ...s ? { refetchInterval: (e) => (e.state.data?.data ?? []).some((e) => e.ocr_status === "processing") ? i : !1 } : {}
@@ -12,7 +12,7 @@ import "../../../data-access/dist/index.js";
12
12
  import { useQuery as a } from "@tanstack/react-query";
13
13
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index5.js
14
14
  function o({ enabled: o } = {}) {
15
- let { client: s, organizationId: c, widgetToken: l, authEpoch: u, organizationPending: d } = n(), f = !!(c && l) && (o === !0 || o === void 0), p = e({
15
+ let { client: s, organizationId: c, widgetToken: l, authEpoch: u, organizationStatus: d } = n(), f = !!(c && l) && (o === !0 || o === void 0), p = e({
16
16
  client: s,
17
17
  headers: r(c),
18
18
  query: i
@@ -20,7 +20,7 @@ function o({ enabled: o } = {}) {
20
20
  return a({
21
21
  ...t(p, {
22
22
  authEpoch: u,
23
- organizationPending: d
23
+ organizationStatus: d
24
24
  }),
25
25
  enabled: f,
26
26
  select: (e) => ({ count: e.data[0]?.metric_value ?? 0 })
@@ -11,14 +11,14 @@ import { withNotFoundOutcome as i } from "./index5.js";
11
11
  import { useQuery as a } from "@tanstack/react-query";
12
12
  //#region ../../libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index6.js
13
13
  function o({ cardId: o, enabled: s }) {
14
- let { client: c, organizationId: l, widgetToken: u, authEpoch: d, organizationPending: f } = n(), p = e({
14
+ let { client: c, organizationId: l, widgetToken: u, authEpoch: d, organizationStatus: f } = n(), p = e({
15
15
  client: c,
16
16
  headers: r(l),
17
17
  path: { cardId: o ?? "" }
18
18
  }), m = a({
19
19
  ...t(p, {
20
20
  authEpoch: d,
21
- organizationPending: f
21
+ organizationStatus: f
22
22
  }),
23
23
  enabled: !!(o && l && u) && s !== !1
24
24
  });
@@ -11,14 +11,14 @@ import "../../../shared/data-access/dist/index.js";
11
11
  import { useQuery as a } from "@tanstack/react-query";
12
12
  //#region ../../libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index7.js
13
13
  function o({ cardId: o, enabled: s }) {
14
- let { client: c, organizationId: l, widgetToken: u, authEpoch: d, organizationPending: f } = n(), p = !!(o && l && u) && s, m = p ? o ?? "" : "", h = e({
14
+ let { client: c, organizationId: l, widgetToken: u, authEpoch: d, organizationStatus: f } = n(), p = !!(o && l && u) && s, m = p ? o ?? "" : "", h = e({
15
15
  client: c,
16
16
  headers: r(l),
17
17
  path: { id: m }
18
18
  }), g = a({
19
19
  ...t(h, {
20
20
  authEpoch: d,
21
- organizationPending: f
21
+ organizationStatus: f
22
22
  }),
23
23
  enabled: p,
24
24
  staleTime: 0,
@@ -11,14 +11,14 @@ import { withNotFoundOutcome as i } from "./index5.js";
11
11
  import { useQuery as a } from "@tanstack/react-query";
12
12
  //#region ../../libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index8.js
13
13
  function o({ cardId: o, enabled: s }) {
14
- let { client: c, organizationId: l, widgetToken: u, authEpoch: d, organizationPending: f } = n(), p = e({
14
+ let { client: c, organizationId: l, widgetToken: u, authEpoch: d, organizationStatus: f } = n(), p = e({
15
15
  client: c,
16
16
  headers: r(l),
17
17
  path: { id: o ?? "" }
18
18
  }), m = a({
19
19
  ...t(p, {
20
20
  authEpoch: d,
21
- organizationPending: f
21
+ organizationStatus: f
22
22
  }),
23
23
  enabled: !!(o && l && u) && s !== !1
24
24
  });
@@ -3,222 +3,226 @@
3
3
  "use client";
4
4
  "use client";
5
5
  import { toast as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
6
- import { EmbeddedToaster as t } from "../../../shared/ui/dist/lib/EmbeddedToaster.js";
6
+ import { OrganizationStatus as t } from "../../../shared/data-access/dist/lib/organizationStatus.js";
7
+ import { useEmbedApi as n } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
8
+ import "../../../shared/data-access/dist/index.js";
9
+ import { EmbeddedToaster as r } from "../../../shared/ui/dist/lib/EmbeddedToaster.js";
7
10
  import "../../../shared/ui/dist/index.js";
8
- import { useAnalyticsTrack as n } from "../../../shared/feature/dist/lib/analytics/hooks.js";
9
- import { WidgetProvider as r } from "../../../shared/feature/dist/lib/WidgetProvider/WidgetProvider.js";
10
- import { useRefetchWidget as i, useWidgetConfig as a, useWidgetError as o, useWidgetInitStaleForToken as s } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
11
- import { CardProgram as c } from "../../../shared/feature/dist/lib/card/cardProgram.js";
11
+ import { useAnalyticsTrack as i } from "../../../shared/feature/dist/lib/analytics/hooks.js";
12
+ import { WidgetProvider as a } from "../../../shared/feature/dist/lib/WidgetProvider/WidgetProvider.js";
13
+ import { useRefetchWidget as o, useWidgetConfig as s, useWidgetError as c, useWidgetInitStaleForToken as l } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
14
+ import { CardProgram as u } from "../../../shared/feature/dist/lib/card/cardProgram.js";
12
15
  import "../../../shared/feature/dist/index.js";
13
- import { resolveCardDetailsFeatureLabels as l } from "./index5.js";
14
- import { CardDetailsWidgetAnalyticsEvent as u, WIDGET_NAME as d } from "./index2.js";
15
- import { copyTextToClipboard as f, formatCardNumber as p, formatExpirationDate as m } from "./index3.js";
16
- import { CardProgramValidity as h, resolveCanRevealCredentials as ee, resolveCardDetailsPanelState as te, resolveCardDetailsPresentation as g, resolveCardDetailsRevealState as ne, resolveCardProgramValidity as re } from "./index4.js";
17
- import { activateCardPanelTestIds as ie, cardDetailsPanelTestIds as ae } from "./index6.js";
18
- import { useCreditCardDetailsQuery as oe } from "../../data-access/dist/index6.js";
19
- import { useDebitCardCredentialsQuery as se } from "../../data-access/dist/index7.js";
20
- import { useDebitCardDetailsQuery as ce } from "../../data-access/dist/index8.js";
16
+ import { resolveCardDetailsFeatureLabels as d } from "./index5.js";
17
+ import { CardDetailsWidgetAnalyticsEvent as f, WIDGET_NAME as p } from "./index2.js";
18
+ import { copyTextToClipboard as m, formatCardNumber as h, formatExpirationDate as ee } from "./index3.js";
19
+ import { CardProgramValidity as g, resolveCanRevealCredentials as te, resolveCardDetailsPanelState as ne, resolveCardDetailsPresentation as re, resolveCardDetailsRevealState as ie, resolveCardProgramValidity as ae } from "./index4.js";
20
+ import { activateCardPanelTestIds as oe, cardDetailsPanelTestIds as se } from "./index6.js";
21
+ import { useCreditCardDetailsQuery as ce } from "../../data-access/dist/index6.js";
22
+ import { useDebitCardCredentialsQuery as le } from "../../data-access/dist/index7.js";
23
+ import { useDebitCardDetailsQuery as ue } from "../../data-access/dist/index8.js";
21
24
  import "../../data-access/dist/index.js";
22
- import { CardDetailsPanel as le } from "../../ui/dist/lib/CardDetailsPanel/CardDetailsPanel.js";
23
- import { ActivateCardPanel as ue } from "../../ui/dist/lib/ActivateCardPanel/ActivateCardPanel.js";
25
+ import { CardDetailsPanel as de } from "../../ui/dist/lib/CardDetailsPanel/CardDetailsPanel.js";
26
+ import { ActivateCardPanel as _ } from "../../ui/dist/lib/ActivateCardPanel/ActivateCardPanel.js";
24
27
  import "../../ui/dist/index.js";
25
- import { useActivateCard as de } from "./index9.js";
26
- import { useCardLock as fe } from "./index11.js";
27
- import { useEditCardNickname as pe } from "./index12.js";
28
- import { useCallback as _, useEffect as v, useMemo as y, useState as b } from "react";
29
- import { Fragment as me, jsx as x, jsxs as S } from "react/jsx-runtime";
28
+ import { useActivateCard as fe } from "./index9.js";
29
+ import { useCardLock as pe } from "./index11.js";
30
+ import { useEditCardNickname as me } from "./index12.js";
31
+ import { useCallback as v, useEffect as y, useMemo as b, useState as x } from "react";
32
+ import { Fragment as he, jsx as S, jsxs as ge } from "react/jsx-runtime";
30
33
  //#region ../../libs/tesouro-embedded-components-react/card-details-widget/feature/dist/index13.js
31
- function C({ cardId: r, cardProgram: d, onClose: C, labels: w, activateLabels: he, featureLabels: T, cardArtSrc: E, bankLogoSrc: D, bankLogoAlt: O }) {
32
- let k = n(), A = o(), j = i(), { initResponse: M } = a(), ge = s();
33
- v(() => {
34
- k(u.Mounted);
34
+ function C({ cardId: a, cardProgram: p, onClose: C, labels: w, activateLabels: _e, featureLabels: T, cardArtSrc: E, bankLogoSrc: D, bankLogoAlt: O }) {
35
+ let k = i(), A = c(), j = o(), { initResponse: M } = s(), { organizationStatus: ve } = n(), ye = l();
36
+ y(() => {
37
+ k(f.Mounted);
35
38
  }, [k]);
36
- let N = y(() => l(T), [T]), P = re(d), F = d === c.Credit, I = d === c.Debit, _e = oe({
37
- cardId: r,
39
+ let N = b(() => d(T), [T]), P = ae(p), F = p === u.Credit, be = p === u.Debit, xe = ce({
40
+ cardId: a,
38
41
  enabled: F
39
- }), ve = ce({
40
- cardId: r,
41
- enabled: I
42
- }), { data: L, isError: ye, isNotFound: be, refetch: R } = F ? _e : ve, z = te({
42
+ }), I = ue({
43
+ cardId: a,
44
+ enabled: be
45
+ }), { data: L, isError: Se, isNotFound: Ce, refetch: R } = F ? xe : I, z = ve === t.None, B = ne({
43
46
  programValidity: P,
44
- isNotFound: be,
45
- isError: !!A || ye,
47
+ isNotFound: Ce,
48
+ isError: !!A || Se || z,
46
49
  hasCard: !!L
47
50
  });
48
- v(() => {
49
- if (P === h.Supported) return;
50
- let e = `"${c.Credit}" or "${c.Debit}"`;
51
- console.error(P === h.Missing ? `[CardDetailsWidget] cardProgram is required and was not set. Pass ${e} — it selects which card program to read, so there is no default. No card was fetched.` : `[CardDetailsWidget] cardProgram must be ${e}, received ${JSON.stringify(d)}. No card was fetched.`);
52
- }, [d, P]);
53
- let [xe, B] = b(), V = xe === r;
54
- v(() => {
55
- B(void 0);
56
- }, [r]);
57
- let H = ee({
58
- panelState: z,
59
- cardProgram: d,
51
+ y(() => {
52
+ if (P === g.Supported) return;
53
+ let e = `"${u.Credit}" or "${u.Debit}"`;
54
+ console.error(P === g.Missing ? `[CardDetailsWidget] cardProgram is required and was not set. Pass ${e} — it selects which card program to read, so there is no default. No card was fetched.` : `[CardDetailsWidget] cardProgram must be ${e}, received ${JSON.stringify(p)}. No card was fetched.`);
55
+ }, [p, P]);
56
+ let [we, V] = x(), H = we === a;
57
+ y(() => {
58
+ V(void 0);
59
+ }, [a]);
60
+ let U = te({
61
+ panelState: B,
62
+ cardProgram: p,
60
63
  cardStatus: L?.cardStatus
61
64
  });
62
- v(() => {
63
- V && !H && B(void 0);
64
- }, [V, H]);
65
- let U = se({
66
- cardId: r,
67
- enabled: H && V
68
- }), W = ne({
69
- isRevealRequested: V,
70
- isError: U.isError,
71
- hasCredentials: !!U.data
72
- }), G = y(() => z === "loaded" && L ? g({
65
+ y(() => {
66
+ H && !U && V(void 0);
67
+ }, [H, U]);
68
+ let W = le({
69
+ cardId: a,
70
+ enabled: U && H
71
+ }), G = ie({
72
+ isRevealRequested: H,
73
+ isError: W.isError,
74
+ hasCredentials: !!W.data
75
+ }), K = b(() => B === "loaded" && L ? re({
73
76
  card: L,
74
- cardProgram: d,
77
+ cardProgram: p,
75
78
  labels: N
76
79
  }) : void 0, [
77
80
  L,
78
- d,
81
+ p,
79
82
  N,
80
- z
81
- ]), Se = _(async (t) => {
82
- await f(t) && (e.success(N.copySuccessToast), k(u.ValueCopied));
83
- }, [N.copySuccessToast, k]), K = z === "loaded" ? L : void 0, q = de({
84
- cardId: r,
85
- cardProgram: d,
86
- card: K,
83
+ B
84
+ ]), Te = v(async (t) => {
85
+ await m(t) && (e.success(N.copySuccessToast), k(f.ValueCopied));
86
+ }, [N.copySuccessToast, k]), q = B === "loaded" ? L : void 0, J = fe({
87
+ cardId: a,
88
+ cardProgram: p,
89
+ card: q,
87
90
  scopes: M?.scopes,
88
- currentUserId: ge ? void 0 : M?.userId ?? void 0,
91
+ currentUserId: ye ? void 0 : M?.userId ?? void 0,
89
92
  conflictToast: N.activationConflictToast
90
- }), J = fe({
91
- cardId: r,
92
- cardProgram: d,
93
- card: K,
93
+ }), Y = pe({
94
+ cardId: a,
95
+ cardProgram: p,
96
+ card: q,
94
97
  scopes: M?.scopes,
95
98
  conflictToast: N.lockConflictToast
96
- }), Y = pe({
97
- cardId: r,
98
- cardProgram: d,
99
- card: K,
100
- nickname: G?.nickname,
99
+ }), X = me({
100
+ cardId: a,
101
+ cardProgram: p,
102
+ card: q,
103
+ nickname: K?.nickname,
101
104
  scopes: M?.scopes,
102
105
  conflictToast: N.nicknameConflictToast,
103
106
  successToast: N.nicknameUpdatedToast
104
- }), { refetch: X } = U, Ce = _(() => {
105
- if (V) {
106
- X();
107
+ }), { refetch: Z } = W, Ee = v(() => {
108
+ if (H) {
109
+ Z();
107
110
  return;
108
111
  }
109
- B(r);
112
+ V(a);
110
113
  }, [
111
- r,
112
- V,
113
- X
114
- ]), Z = _(() => {
115
- B(void 0);
116
- }, []), Q = _(() => {
117
- B(void 0), C?.();
118
- }, [C]), we = _(() => {
119
- q.finish(), Q();
120
- }, [q.finish, Q]), Te = y(() => U.isForbidden ? {
114
+ a,
115
+ H,
116
+ Z
117
+ ]), De = v(() => {
118
+ V(void 0);
119
+ }, []), Q = v(() => {
120
+ V(void 0), C?.();
121
+ }, [C]), Oe = v(() => {
122
+ J.finish(), Q();
123
+ }, [J.finish, Q]), ke = b(() => W.isForbidden ? {
121
124
  ...w,
122
125
  credentials: {
123
126
  ...w?.credentials,
124
127
  errorDescription: N.revealNotPermittedDescription
125
128
  }
126
129
  } : w, [
127
- U.isForbidden,
130
+ W.isForbidden,
128
131
  w,
129
132
  N.revealNotPermittedDescription
130
- ]), $ = y(() => {
131
- if (W === "revealed" && U.data) return {
132
- cardNumber: p(U.data.pan),
133
- expirationDate: m(U.data.expirationDate),
134
- securityCode: U.data.cvv
133
+ ]), $ = b(() => {
134
+ if (G === "revealed" && W.data) return {
135
+ cardNumber: h(W.data.pan),
136
+ expirationDate: ee(W.data.expirationDate),
137
+ securityCode: W.data.cvv
135
138
  };
136
- }, [U.data, W]), Ee = _(() => {
137
- if (A) {
139
+ }, [W.data, G]), Ae = v(() => {
140
+ if (A || z) {
138
141
  j();
139
142
  return;
140
143
  }
141
144
  R();
142
145
  }, [
146
+ z,
143
147
  R,
144
148
  j,
145
149
  A
146
150
  ]);
147
- return /* @__PURE__ */ S(me, { children: [/* @__PURE__ */ x(t, {}), q.isOpen ? /* @__PURE__ */ x(ue, {
148
- testIds: ie,
149
- labels: he,
150
- state: q.state,
151
- values: q.values,
152
- errors: q.errors,
153
- isSubmitDisabled: q.isSubmitDisabled,
154
- onValuesChange: q.onValuesChange,
155
- onSubmit: q.onSubmit,
156
- onClose: q.close,
157
- onDone: C ? we : void 0,
151
+ return /* @__PURE__ */ ge(he, { children: [/* @__PURE__ */ S(r, {}), J.isOpen ? /* @__PURE__ */ S(_, {
152
+ testIds: oe,
153
+ labels: _e,
154
+ state: J.state,
155
+ values: J.values,
156
+ errors: J.errors,
157
+ isSubmitDisabled: J.isSubmitDisabled,
158
+ onValuesChange: J.onValuesChange,
159
+ onSubmit: J.onSubmit,
160
+ onClose: J.close,
161
+ onDone: C ? Oe : void 0,
158
162
  cardArtSrc: E,
159
163
  bankLogoSrc: D,
160
164
  bankLogoAlt: O,
161
- cardholderName: G?.cardholderName,
162
- maskedCardNumber: G?.maskedCardNumber,
163
- programLabel: G?.programLabel
164
- }) : /* @__PURE__ */ x(le, {
165
- testIds: ae,
166
- labels: Te,
167
- state: z,
168
- nickname: G?.nickname,
169
- statusLabel: G?.statusLabel,
170
- statusTone: G?.statusTone,
171
- formFactorLabel: G?.formFactorLabel,
165
+ cardholderName: K?.cardholderName,
166
+ maskedCardNumber: K?.maskedCardNumber,
167
+ programLabel: K?.programLabel
168
+ }) : /* @__PURE__ */ S(de, {
169
+ testIds: se,
170
+ labels: ke,
171
+ state: B,
172
+ nickname: K?.nickname,
173
+ statusLabel: K?.statusLabel,
174
+ statusTone: K?.statusTone,
175
+ formFactorLabel: K?.formFactorLabel,
172
176
  onClose: C ? Q : void 0,
173
177
  cardArtSrc: E,
174
178
  bankLogoSrc: D,
175
179
  bankLogoAlt: O,
176
- cardholderName: G?.cardholderName,
177
- maskedCardNumber: G?.maskedCardNumber,
178
- programLabel: G?.programLabel,
179
- billingAddress: G?.billingAddress,
180
- allowedCategories: G?.allowedCategories,
181
- spendLimitLabels: G?.spendLimitLabels,
182
- perTransactionMaxLabel: G?.perTransactionMaxLabel,
183
- onCopy: Se,
184
- onEditNickname: Y.onEditNickname,
185
- nicknameEditState: Y.editState,
186
- nicknameDraft: Y.draft,
187
- onNicknameDraftChange: Y.onDraftChange,
188
- onSaveNickname: Y.onSave,
189
- onCancelNicknameEdit: Y.onCancel,
190
- isNicknameSaveDisabled: Y.isSaveDisabled,
191
- onActivate: q.canActivate ? q.open : void 0,
192
- onViewCard: H ? Ce : void 0,
193
- onHideCard: H ? Z : void 0,
194
- revealState: W,
180
+ cardholderName: K?.cardholderName,
181
+ maskedCardNumber: K?.maskedCardNumber,
182
+ programLabel: K?.programLabel,
183
+ billingAddress: K?.billingAddress,
184
+ allowedCategories: K?.allowedCategories,
185
+ spendLimitLabels: K?.spendLimitLabels,
186
+ perTransactionMaxLabel: K?.perTransactionMaxLabel,
187
+ onCopy: Te,
188
+ onEditNickname: X.onEditNickname,
189
+ nicknameEditState: X.editState,
190
+ nicknameDraft: X.draft,
191
+ onNicknameDraftChange: X.onDraftChange,
192
+ onSaveNickname: X.onSave,
193
+ onCancelNicknameEdit: X.onCancel,
194
+ isNicknameSaveDisabled: X.isSaveDisabled,
195
+ onActivate: J.canActivate ? J.open : void 0,
196
+ onViewCard: U ? Ee : void 0,
197
+ onHideCard: U ? De : void 0,
198
+ revealState: G,
195
199
  revealedCardNumber: $?.cardNumber,
196
200
  revealedExpirationDate: $?.expirationDate,
197
201
  revealedSecurityCode: $?.securityCode,
198
- isLocked: J.isLocked,
199
- lockState: J.lockState,
200
- onLockCard: J.onLockCard,
201
- onUnlockCard: J.onUnlockCard,
202
- onRetry: P === h.Supported ? Ee : void 0
202
+ isLocked: Y.isLocked,
203
+ lockState: Y.lockState,
204
+ onLockCard: Y.onLockCard,
205
+ onUnlockCard: Y.onUnlockCard,
206
+ onRetry: P === g.Supported ? Ae : void 0
203
207
  })] });
204
208
  }
205
- function w({ baseUrl: e, widgetToken: t, organizationId: n, configClient: i, gatewayRouting: a, linkComponent: o, implementation: s, uiFramework: c, errorFallback: l, onError: u, analytics: f, disclosuresAcceptance: p, providerLabels: m, ...h }) {
206
- return /* @__PURE__ */ x(r, {
207
- widgetName: d,
209
+ function w({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gatewayRouting: i, linkComponent: o, implementation: s, uiFramework: c, errorFallback: l, onError: u, analytics: d, disclosuresAcceptance: f, providerLabels: m, ...h }) {
210
+ return /* @__PURE__ */ S(a, {
211
+ widgetName: p,
208
212
  baseUrl: e,
209
213
  widgetToken: t,
210
214
  organizationId: n,
211
- configClient: i,
212
- gatewayRouting: a,
215
+ configClient: r,
216
+ gatewayRouting: i,
213
217
  linkComponent: o,
214
218
  implementation: s,
215
219
  uiFramework: c,
216
220
  errorFallback: l,
217
221
  onError: u,
218
- analytics: f,
219
- disclosuresAcceptance: p,
222
+ analytics: d,
223
+ disclosuresAcceptance: f,
220
224
  providerLabels: m,
221
- children: /* @__PURE__ */ x(C, { ...h })
225
+ children: /* @__PURE__ */ S(C, { ...h })
222
226
  });
223
227
  }
224
228
  //#endregion
@@ -9,14 +9,14 @@ import "../../../../shared/data-access/dist/index.js";
9
9
  import { useQuery as r } from "@tanstack/react-query";
10
10
  //#region ../../libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index7.js
11
11
  function i({ enabled: i } = {}) {
12
- let { client: a, organizationId: o, widgetToken: s, authEpoch: c, organizationPending: l } = n(), u = e({
12
+ let { client: a, organizationId: o, widgetToken: s, authEpoch: c, organizationStatus: l } = n(), u = e({
13
13
  client: a,
14
14
  path: { organizationId: o ?? "" }
15
15
  });
16
16
  return r({
17
17
  ...t(u, {
18
18
  authEpoch: c,
19
- organizationPending: l
19
+ organizationStatus: l
20
20
  }),
21
21
  enabled: !!(o && s) && (i === !0 || i === void 0)
22
22
  });
@@ -10,7 +10,7 @@ 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/cards-widget/data-access/dist/index2.js
12
12
  function a({ enabled: a, ...o } = {}) {
13
- let { client: s, organizationId: c, widgetToken: l, authEpoch: u, organizationPending: d } = n(), f = e({
13
+ let { client: s, organizationId: c, widgetToken: l, authEpoch: u, organizationStatus: d } = n(), f = e({
14
14
  query: o,
15
15
  client: s,
16
16
  headers: r(c)
@@ -18,7 +18,7 @@ function a({ enabled: a, ...o } = {}) {
18
18
  return i({
19
19
  ...t(f, {
20
20
  authEpoch: u,
21
- organizationPending: d
21
+ organizationStatus: d
22
22
  }, { carryWithinOrg: !0 }),
23
23
  enabled: !!(c && l) && (a === !0 || a === void 0)
24
24
  });
@@ -10,7 +10,7 @@ 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/cards-widget/data-access/dist/index3.js
12
12
  function a({ enabled: a, ...o } = {}) {
13
- let { client: s, organizationId: c, widgetToken: l, authEpoch: u, organizationPending: d } = n(), f = e({
13
+ let { client: s, organizationId: c, widgetToken: l, authEpoch: u, organizationStatus: d } = n(), f = e({
14
14
  query: o,
15
15
  client: s,
16
16
  headers: r(c)
@@ -18,7 +18,7 @@ function a({ enabled: a, ...o } = {}) {
18
18
  return i({
19
19
  ...t(f, {
20
20
  authEpoch: u,
21
- organizationPending: d
21
+ organizationStatus: d
22
22
  }, { carryWithinOrg: !0 }),
23
23
  enabled: !!(c && l) && (a === !0 || a === void 0)
24
24
  });