@tesouro/embedded-components-react 0.5.116 → 0.5.117

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (146) hide show
  1. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index.js +6 -6
  2. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index10.js +25 -31
  3. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index11.js +41 -0
  4. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index4.js +6 -15
  5. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index5.js +15 -11
  6. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index6.js +7 -7
  7. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index7.js +14 -37
  8. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index8.js +43 -3
  9. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index9.js +3 -31
  10. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index22.js +6 -6
  11. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index2.js +7 -7
  12. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index3.js +7 -7
  13. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index4.js +8 -8
  14. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index5.js +10 -10
  15. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/data-access/dist/index3.js +8 -8
  16. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/data-access/dist/index4.js +6 -6
  17. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/data-access/dist/index5.js +13 -13
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index10.js +25 -25
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index11.js +12 -12
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index12.js +8 -8
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index13.js +168 -168
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index15.js +7 -7
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index16.js +4 -4
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index17.js +44 -44
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index18.js +7 -7
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index4.js +4 -4
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index5.js +24 -24
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index6.js +81 -81
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index7.js +17 -17
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index8.js +31 -31
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index9.js +7 -7
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js +15 -15
  33. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index10.js +6 -6
  34. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index11.js +6 -6
  35. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index2.js +15 -15
  36. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index4.js +15 -15
  37. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index6.js +7 -7
  38. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index7.js +7 -7
  39. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index8.js +7 -7
  40. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index9.js +6 -6
  41. package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index3.js +10 -10
  42. package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index4.js +8 -8
  43. package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index5.js +8 -8
  44. package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index6.js +8 -8
  45. package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index7.js +5 -5
  46. package/dist/libs/tesouro-embedded-components-react/cards-widget/data-access/dist/index2.js +7 -7
  47. package/dist/libs/tesouro-embedded-components-react/cards-widget/data-access/dist/index3.js +7 -7
  48. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/data-access/dist/index2.js +14 -14
  49. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/data-access/dist/index3.js +14 -14
  50. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index2.js +5 -5
  51. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index3.js +5 -5
  52. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index4.js +15 -15
  53. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index5.js +12 -12
  54. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index6.js +9 -9
  55. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index2.js +22 -22
  56. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index3.js +12 -12
  57. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index4.js +87 -87
  58. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index5.js +44 -44
  59. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index6.js +36 -36
  60. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/data-access/dist/index2.js +6 -6
  61. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/data-access/dist/index4.js +7 -7
  62. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index2.js +21 -21
  63. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index3.js +13 -13
  64. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index4.js +9 -9
  65. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index5.js +9 -9
  66. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index6.js +10 -10
  67. package/dist/libs/tesouro-embedded-components-react/settings-widget/chart-of-accounts/data-access/dist/index2.js +4 -4
  68. package/dist/libs/tesouro-embedded-components-react/settings-widget/chart-of-accounts/data-access/dist/index3.js +22 -22
  69. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index2.js +7 -7
  70. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index3.js +7 -7
  71. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index4.js +7 -7
  72. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index5.js +11 -11
  73. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index6.js +13 -13
  74. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index7.js +11 -11
  75. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index8.js +11 -11
  76. package/dist/libs/tesouro-embedded-components-react/settings-widget/profile/data-access/dist/index2.js +7 -7
  77. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index10.js +7 -7
  78. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index2.js +7 -7
  79. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index3.js +6 -6
  80. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index4.js +11 -11
  81. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index5.js +11 -11
  82. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index6.js +10 -10
  83. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index7.js +5 -5
  84. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index8.js +5 -5
  85. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index9.js +7 -7
  86. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index10.js +16 -16
  87. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index12.js +14 -14
  88. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index13.js +7 -7
  89. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index14.js +9 -9
  90. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index15.js +59 -59
  91. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index17.js +9 -9
  92. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index18.js +9 -9
  93. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index19.js +41 -41
  94. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index2.js +4 -4
  95. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index21.js +9 -9
  96. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index22.js +9 -9
  97. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index23.js +41 -41
  98. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index3.js +8 -8
  99. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index4.js +9 -9
  100. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index5.js +4 -4
  101. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index6.js +4 -4
  102. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index7.js +73 -73
  103. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index8.js +11 -11
  104. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index9.js +20 -20
  105. package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/data-access/dist/lib/approvalPoliciesApi.js +61 -61
  106. package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/data-access/dist/lib/queryKeys.js +4 -4
  107. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index2.js +16 -16
  108. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index3.js +51 -51
  109. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index5.js +63 -63
  110. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index7.js +44 -44
  111. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +35 -34
  112. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/applicationStatusQueryOptions.js +22 -0
  113. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/bank-account/useAllBankAccountsQuery.js +9 -9
  114. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/disclosures/useAcceptWidgetDisclosures.js +8 -8
  115. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/disclosures/useDisclosuresQuery.js +8 -8
  116. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/external-bank-account/useAllExternalBankAccountsQuery.js +7 -7
  117. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/merchant-category-group/useAllMerchantCategoryGroupsQuery.js +11 -11
  118. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/reference-data/useLedgerAccountsQuery.js +15 -15
  119. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/reference-data/usePaymentTermsQuery.js +7 -7
  120. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/role/useAllOrganizationRolesQuery.js +11 -11
  121. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/role/useRolePermissionsQueries.js +7 -7
  122. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useCurrentUserQuery.js +7 -7
  123. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useGetUserDataQuery.js +5 -5
  124. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useOrganizationOnboardingSuppression.js +22 -21
  125. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useUpsertUserDataMutation.js +7 -7
  126. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/user/useAllOrganizationUsersQuery.js +11 -11
  127. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/widgetTokenCacheId.js +11 -0
  128. package/dist/libs/tesouro-embedded-components-react/shared/expense-requirements/data-access/dist/index2.js +4 -4
  129. package/dist/libs/tesouro-embedded-components-react/shared/expense-requirements/data-access/dist/index3.js +14 -14
  130. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  131. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index10.js +11 -11
  132. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index11.js +11 -11
  133. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index12.js +11 -11
  134. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index2.js +7 -7
  135. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index3.js +7 -7
  136. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index4.js +11 -11
  137. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index5.js +11 -11
  138. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index6.js +13 -13
  139. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index7.js +10 -10
  140. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index8.js +7 -7
  141. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index9.js +7 -7
  142. package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index3.js +11 -11
  143. package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index6.js +7 -7
  144. package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index7.js +12 -12
  145. package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index8.js +11 -11
  146. package/package.json +1 -1
@@ -2,28 +2,28 @@
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 { postApprovalRequestsIdApprove as n, postApprovalRequestsIdReject as r } from "../../../shared/data-access/dist/lib/rest/sdk.gen.js";
8
- import { getApprovalRequestsOptions as i } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
9
- import { withAuthEpoch as a } from "../../../shared/data-access/dist/lib/withAuthEpoch.js";
5
+ import { postApprovalRequestsIdApprove as e, postApprovalRequestsIdReject as t } from "../../../shared/data-access/dist/lib/rest/sdk.gen.js";
6
+ import { getApprovalRequestsOptions as n } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
7
+ import { withAuthEpoch as r } from "../../../shared/data-access/dist/lib/withAuthEpoch.js";
8
+ import { useEmbedApi as i } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
9
+ import { organizationHeaders as a } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
10
10
  import "../../../shared/data-access/dist/index.js";
11
11
  import { NEWEST_REQUEST_FIRST as o, PAYABLE_OBJECT_TYPE as s } from "./index5.js";
12
12
  import { beginApprovalRequestWatch as c, invalidateApprovalDecisionQueries as l, reconcileApprovalDecisionQueries as u } from "./index6.js";
13
13
  import { useMutation as d, useQuery as f } from "@tanstack/react-query";
14
14
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index8.js
15
- function p(n, { enabled: r } = {}) {
16
- let { client: c, organizationId: l, widgetToken: u, authEpoch: d } = e(), p = !!(l && u && n) && r !== !1, m = i({
15
+ function p(e, { enabled: t } = {}) {
16
+ let { client: c, organizationId: l, widgetToken: u, authEpoch: d } = i(), p = !!(l && u && e) && t !== !1, m = n({
17
17
  client: c,
18
- headers: t(l),
18
+ headers: a(l),
19
19
  query: {
20
- object_id: n ?? "",
20
+ object_id: e ?? "",
21
21
  object_type: s,
22
22
  order: o
23
23
  }
24
24
  });
25
25
  return f({
26
- ...a(m, d),
26
+ ...r(m, d),
27
27
  enabled: p
28
28
  });
29
29
  }
@@ -45,21 +45,21 @@ async function m({ client: e, organizationId: t, payableId: n, requestStatus: r
45
45
  }).catch(() => {});
46
46
  }
47
47
  function h() {
48
- let { client: r, organizationId: i } = e();
48
+ let { client: t, organizationId: n } = i();
49
49
  return d({
50
- mutationFn: async ({ path: e }) => {
51
- let { data: a } = await n({
52
- client: r,
53
- headers: t(i),
54
- path: e,
50
+ mutationFn: async ({ path: r }) => {
51
+ let { data: i } = await e({
52
+ client: t,
53
+ headers: a(n),
54
+ path: r,
55
55
  throwOnError: !0
56
56
  });
57
- return a;
57
+ return i;
58
58
  },
59
59
  onSuccess: async (e) => {
60
60
  await m({
61
- client: r,
62
- organizationId: i,
61
+ client: t,
62
+ organizationId: n,
63
63
  payableId: e?.object_id,
64
64
  requestStatus: e?.status
65
65
  });
@@ -67,24 +67,24 @@ function h() {
67
67
  });
68
68
  }
69
69
  function g() {
70
- let { client: n, organizationId: i } = e();
70
+ let { client: e, organizationId: n } = i();
71
71
  return d({
72
- mutationFn: async ({ path: e, body: a }) => {
73
- let { data: o } = await r({
74
- client: n,
75
- headers: t(i),
76
- path: e,
77
- body: a?.reject_reason ? a : void 0,
72
+ mutationFn: async ({ path: r, body: i }) => {
73
+ let { data: o } = await t({
74
+ client: e,
75
+ headers: a(n),
76
+ path: r,
77
+ body: i?.reject_reason ? i : void 0,
78
78
  throwOnError: !0
79
79
  });
80
80
  return o;
81
81
  },
82
- onSuccess: async (e) => {
82
+ onSuccess: async (t) => {
83
83
  await m({
84
- client: n,
85
- organizationId: i,
86
- payableId: e?.object_id,
87
- requestStatus: e?.status
84
+ client: e,
85
+ organizationId: n,
86
+ payableId: t?.object_id,
87
+ requestStatus: t?.status
88
88
  });
89
89
  }
90
90
  });
@@ -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 { organizationHeaders as t } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
7
- import { getPayablesIdHistoryOptions 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 { getPayablesIdHistoryOptions 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/bill-pay-widget/data-access/dist/index9.js
12
12
  var a = 100;
13
13
  function o(o, { enabled: s } = {}) {
14
- let { client: c, organizationId: l, widgetToken: u, authEpoch: d } = e(), f = !!(l && u && o) && s !== !1, p = n({
14
+ let { client: c, organizationId: l, widgetToken: u, authEpoch: d } = n(), f = !!(l && u && o) && s !== !1, p = e({
15
15
  client: c,
16
- headers: t(l),
16
+ headers: r(l),
17
17
  path: { payable_id: o ?? "" },
18
18
  query: {
19
19
  sort: "timestamp",
@@ -22,7 +22,7 @@ function o(o, { enabled: s } = {}) {
22
22
  }
23
23
  });
24
24
  return i({
25
- ...r(p, d),
25
+ ...t(p, d),
26
26
  enabled: f
27
27
  });
28
28
  }
@@ -3,10 +3,10 @@
3
3
  "use client";
4
4
  "use client";
5
5
  import { toast as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
6
- import { useEmbedApi as t } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
7
- import { organizationHeaders as n } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
8
- import { getPayablesIdOptions as r } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
9
- import { withAuthEpoch as i } from "../../../shared/data-access/dist/lib/withAuthEpoch.js";
6
+ import { getPayablesIdOptions 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 { useEmbedApi as r } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
9
+ import { organizationHeaders as i } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
10
10
  import { isApiNotFoundError as a } from "../../../shared/data-access/dist/lib/isApiNotFoundError.js";
11
11
  import "../../../shared/data-access/dist/index.js";
12
12
  import "../../../shared/ui/dist/index.js";
@@ -22,7 +22,7 @@ function g({ onOpenBill: g, labels: _ } = {}) {
22
22
  let v = {
23
23
  ...l,
24
24
  ..._
25
- }, y = _?.tooManyFilesError ?? l.tooManyFilesError, b = _?.remainingCapacityError ?? l.remainingCapacityError, { client: x, organizationId: S, authEpoch: C } = t(), w = h(), T = f(() => c(S), [S]), E = o(), [D, O] = p(!1), { data: k = [] } = m({
25
+ }, y = _?.tooManyFilesError ?? l.tooManyFilesError, b = _?.remainingCapacityError ?? l.remainingCapacityError, { client: x, organizationId: S, authEpoch: C } = r(), w = h(), T = f(() => c(S), [S]), E = o(), [D, O] = p(!1), { data: k = [] } = m({
26
26
  queryKey: T,
27
27
  queryFn: () => w.getQueryData(T) ?? [],
28
28
  staleTime: Infinity,
@@ -74,23 +74,23 @@ function g({ onOpenBill: g, labels: _ } = {}) {
74
74
  N,
75
75
  A
76
76
  ]);
77
- let P = k.filter((e) => e.status === "uploading"), F = k.filter((e) => e.status === "ready"), I = k.filter((e) => e.status === "duplicate"), L = k.filter((e) => e.status === "failed"), R = (t) => ({
78
- id: t.localId,
79
- fileName: t.fileName,
80
- status: t.status,
81
- onOpen: (t.status === "ready" || t.status === "duplicate") && t.payableId && g ? () => {
82
- let o = t.payableId;
77
+ let P = k.filter((e) => e.status === "uploading"), F = k.filter((e) => e.status === "ready"), I = k.filter((e) => e.status === "duplicate"), L = k.filter((e) => e.status === "failed"), R = (r) => ({
78
+ id: r.localId,
79
+ fileName: r.fileName,
80
+ status: r.status,
81
+ onOpen: (r.status === "ready" || r.status === "duplicate") && r.payableId && g ? () => {
82
+ let o = r.payableId;
83
83
  w.fetchQuery({
84
- ...i(r({
84
+ ...n(t({
85
85
  client: x,
86
- headers: n(S),
86
+ headers: i(S),
87
87
  path: { payable_id: o }
88
88
  }), C),
89
89
  retry: !1
90
90
  }).catch((e) => {
91
91
  if (a(e)) return "deleted";
92
- }).then((n) => {
93
- n === "deleted" ? e.error(v.billDeletedError) : g(o), j(t.localId);
92
+ }).then((t) => {
93
+ t === "deleted" ? e.error(v.billDeletedError) : g(o), j(r.localId);
94
94
  });
95
95
  } : void 0
96
96
  }), z = P.length ? [{
@@ -2,19 +2,19 @@
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 { updateDebitCardMutation as n } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
5
+ import { updateDebitCardMutation 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 { organizationHeaders as n } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
8
8
  import "../../../shared/data-access/dist/index.js";
9
9
  import { resyncCardViews as r, resyncOnConflict as i } from "./index3.js";
10
10
  import { useMutation as a } from "@tanstack/react-query";
11
11
  //#region ../../libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index10.js
12
12
  function o() {
13
- let { client: o, organizationId: s } = e();
13
+ let { client: o, organizationId: s } = t();
14
14
  return a({
15
- ...n({
15
+ ...e({
16
16
  client: o,
17
- headers: t(s)
17
+ headers: n(s)
18
18
  }),
19
19
  onSuccess: r({
20
20
  client: o,
@@ -2,19 +2,19 @@
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 { verifyDebitCardMutation as n } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
5
+ import { verifyDebitCardMutation 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 { organizationHeaders as n } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
8
8
  import "../../../shared/data-access/dist/index.js";
9
9
  import { resyncOnConflict as r } from "./index3.js";
10
10
  import { useMutation as i } from "@tanstack/react-query";
11
11
  //#region ../../libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index11.js
12
12
  function a() {
13
- let { client: a, organizationId: o } = e();
13
+ let { client: a, organizationId: o } = t();
14
14
  return i({
15
- ...n({
15
+ ...e({
16
16
  client: a,
17
- headers: t(o)
17
+ headers: n(o)
18
18
  }),
19
19
  onError: r({
20
20
  client: a,
@@ -1,21 +1,21 @@
1
- import { organizationHeaders as e } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
2
- import { getCreditCardByIdQueryKey as t, getCreditCardsQueryKey as n, getDebitCardByIdQueryKey as r, getDebitCardsQueryKey as i } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
1
+ import { getCreditCardByIdQueryKey as e, getCreditCardsQueryKey as t, getDebitCardByIdQueryKey as n, getDebitCardsQueryKey as r } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
2
+ import { organizationHeaders as i } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
3
3
  import "../../../shared/data-access/dist/index.js";
4
4
  //#region ../../libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index2.js
5
- var a = ({ client: n, organizationId: r, cardId: i }) => t({
6
- client: n,
7
- headers: e(r),
8
- path: { cardId: i }
9
- }), o = ({ client: t, organizationId: n, cardId: i }) => r({
5
+ var a = ({ client: t, organizationId: n, cardId: r }) => e({
10
6
  client: t,
11
- headers: e(n),
12
- path: { id: i }
13
- }), s = ({ client: t, organizationId: r }) => n({
14
- client: t,
15
- headers: e(r)
16
- }), c = ({ client: t, organizationId: n }) => i({
17
- client: t,
18
- headers: e(n)
7
+ headers: i(n),
8
+ path: { cardId: r }
9
+ }), o = ({ client: e, organizationId: t, cardId: r }) => n({
10
+ client: e,
11
+ headers: i(t),
12
+ path: { id: r }
13
+ }), s = ({ client: e, organizationId: n }) => t({
14
+ client: e,
15
+ headers: i(n)
16
+ }), c = ({ client: e, organizationId: t }) => r({
17
+ client: e,
18
+ headers: i(t)
19
19
  });
20
20
  //#endregion
21
21
  export { a as creditCardDetailsInvalidationKey, s as creditCardsListInvalidationKey, o as debitCardDetailsInvalidationKey, c as debitCardsListInvalidationKey };
@@ -2,46 +2,46 @@
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 { activateCreditCardMutation as n, activateDebitCardMutation as r } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
5
+ import { activateCreditCardMutation as e, activateDebitCardMutation as t } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
6
+ import { useEmbedApi as n } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
7
+ import { organizationHeaders as r } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
8
8
  import "../../../shared/data-access/dist/index.js";
9
9
  import { resyncCardViews as i, resyncOnConflict as a } from "./index3.js";
10
10
  import { useMutation as o } from "@tanstack/react-query";
11
11
  //#region ../../libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index4.js
12
12
  function s() {
13
- let { client: r, organizationId: s } = e();
13
+ let { client: t, organizationId: s } = n();
14
14
  return o({
15
- ...n({
16
- client: r,
17
- headers: t(s)
15
+ ...e({
16
+ client: t,
17
+ headers: r(s)
18
18
  }),
19
19
  onSuccess: i({
20
- client: r,
20
+ client: t,
21
21
  organizationId: s,
22
22
  program: "credit"
23
23
  }),
24
24
  onError: a({
25
- client: r,
25
+ client: t,
26
26
  organizationId: s,
27
27
  program: "credit"
28
28
  })
29
29
  });
30
30
  }
31
31
  function c() {
32
- let { client: n, organizationId: s } = e();
32
+ let { client: e, organizationId: s } = n();
33
33
  return o({
34
- ...r({
35
- client: n,
36
- headers: t(s)
34
+ ...t({
35
+ client: e,
36
+ headers: r(s)
37
37
  }),
38
38
  onSuccess: i({
39
- client: n,
39
+ client: e,
40
40
  organizationId: s,
41
41
  program: "debit"
42
42
  }),
43
43
  onError: a({
44
- client: n,
44
+ client: e,
45
45
  organizationId: s,
46
46
  program: "debit"
47
47
  })
@@ -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 { getCreditCardByIdOptions 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 { getCreditCardByIdOptions 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 { 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 } = e(), f = n({
14
+ let { client: c, organizationId: l, widgetToken: u, authEpoch: d } = n(), f = e({
15
15
  client: c,
16
- headers: t(l),
16
+ headers: r(l),
17
17
  path: { cardId: o ?? "" }
18
18
  }), p = a({
19
- ...r(f, d),
19
+ ...t(f, d),
20
20
  enabled: !!(o && l && u) && s !== !1
21
21
  });
22
22
  return i(p);
@@ -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 { getDebitCardCredentialsOptions 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 { getDebitCardCredentialsOptions 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 { isApiForbiddenError as i } from "../../../shared/data-access/dist/lib/isApiForbiddenError.js";
10
10
  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 } = e(), f = !!(o && l && u) && s, p = f ? o ?? "" : "", m = n({
14
+ let { client: c, organizationId: l, widgetToken: u, authEpoch: d } = n(), f = !!(o && l && u) && s, p = f ? o ?? "" : "", m = e({
15
15
  client: c,
16
- headers: t(l),
16
+ headers: r(l),
17
17
  path: { id: p }
18
18
  }), h = a({
19
- ...r(m, d),
19
+ ...t(m, d),
20
20
  enabled: f,
21
21
  staleTime: 0,
22
22
  gcTime: 0,
@@ -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 { getDebitCardByIdOptions 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 { getDebitCardByIdOptions 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 { 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 } = e(), f = n({
14
+ let { client: c, organizationId: l, widgetToken: u, authEpoch: d } = n(), f = e({
15
15
  client: c,
16
- headers: t(l),
16
+ headers: r(l),
17
17
  path: { id: o ?? "" }
18
18
  }), p = a({
19
- ...r(f, d),
19
+ ...t(f, d),
20
20
  enabled: !!(o && l && u) && s !== !1
21
21
  });
22
22
  return i(p);
@@ -2,19 +2,19 @@
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 { setDebitCardLockStatusMutation as n } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
5
+ import { setDebitCardLockStatusMutation 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 { organizationHeaders as n } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
8
8
  import "../../../shared/data-access/dist/index.js";
9
9
  import { resyncCardViews as r, resyncOnConflict as i } from "./index3.js";
10
10
  import { useMutation as a } from "@tanstack/react-query";
11
11
  //#region ../../libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index9.js
12
12
  function o() {
13
- let { client: o, organizationId: s } = e();
13
+ let { client: o, organizationId: s } = t();
14
14
  return a({
15
- ...n({
15
+ ...e({
16
16
  client: o,
17
- headers: t(s)
17
+ headers: n(s)
18
18
  }),
19
19
  onSuccess: r({
20
20
  client: o,
@@ -1,17 +1,17 @@
1
- import { organizationHeaders as e } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
2
- import { getDebitCardsQueryKey as t, getVelocityControlsQueryKey as n } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
1
+ import { getDebitCardsQueryKey as e, getVelocityControlsQueryKey as t } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
2
+ import { organizationHeaders as n } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
3
3
  import "../../../../shared/data-access/dist/index.js";
4
4
  //#region ../../libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index3.js
5
- function r({ client: n, organizationId: r }) {
6
- return t({
7
- client: n,
8
- headers: e(r)
5
+ function r({ client: t, organizationId: r }) {
6
+ return e({
7
+ client: t,
8
+ headers: n(r)
9
9
  });
10
10
  }
11
- function i({ client: t, organizationId: r }) {
12
- return n({
13
- client: t,
14
- headers: e(r)
11
+ function i({ client: e, organizationId: r }) {
12
+ return t({
13
+ client: e,
14
+ headers: n(r)
15
15
  });
16
16
  }
17
17
  //#endregion
@@ -2,26 +2,26 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { invalidateAllClients as e } from "../../../../shared/data-access/dist/lib/clientRegistry.js";
6
- import { useEmbedApi as t } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
7
- import { organizationHeaders as n } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
8
- import { createDebitCardMutation as r } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
5
+ import { createDebitCardMutation as e } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
6
+ import { invalidateAllClients as t } from "../../../../shared/data-access/dist/lib/clientRegistry.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 { debitCardsInvalidationKey as i } from "./index3.js";
11
11
  import { useMutation as a } from "@tanstack/react-query";
12
12
  //#region ../../libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index4.js
13
13
  function o() {
14
- let { client: o, organizationId: s } = t(), c = n(s), l = r({
14
+ let { client: o, organizationId: s } = n(), c = r(s), l = e({
15
15
  client: o,
16
16
  headers: c
17
17
  });
18
18
  return a({
19
19
  ...l,
20
- onSuccess: async (...t) => {
21
- await e(i({
20
+ onSuccess: async (...e) => {
21
+ await t(i({
22
22
  client: o,
23
23
  organizationId: s
24
- })), await l.onSuccess?.(...t);
24
+ })), await l.onSuccess?.(...e);
25
25
  }
26
26
  });
27
27
  }
@@ -2,26 +2,26 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { invalidateAllClients as e } from "../../../../shared/data-access/dist/lib/clientRegistry.js";
6
- import { useEmbedApi as t } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
7
- import { organizationHeaders as n } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
8
- import { createVelocityControlMutation as r } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
5
+ import { createVelocityControlMutation as e } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
6
+ import { invalidateAllClients as t } from "../../../../shared/data-access/dist/lib/clientRegistry.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 { velocityControlsInvalidationKey as i } from "./index3.js";
11
11
  import { useMutation as a } from "@tanstack/react-query";
12
12
  //#region ../../libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index5.js
13
13
  function o() {
14
- let { client: o, organizationId: s } = t(), c = n(s), l = r({
14
+ let { client: o, organizationId: s } = n(), c = r(s), l = e({
15
15
  client: o,
16
16
  headers: c
17
17
  });
18
18
  return a({
19
19
  ...l,
20
- onSuccess: async (...t) => {
21
- await e(i({
20
+ onSuccess: async (...e) => {
21
+ await t(i({
22
22
  client: o,
23
23
  organizationId: s
24
- })), await l.onSuccess?.(...t);
24
+ })), await l.onSuccess?.(...e);
25
25
  }
26
26
  });
27
27
  }
@@ -2,26 +2,26 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { invalidateAllClients as e } from "../../../../shared/data-access/dist/lib/clientRegistry.js";
6
- import { useEmbedApi as t } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
7
- import { organizationHeaders as n } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
8
- import { manageDebitCardAccessMutation as r } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
5
+ import { manageDebitCardAccessMutation as e } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
6
+ import { invalidateAllClients as t } from "../../../../shared/data-access/dist/lib/clientRegistry.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 { debitCardsInvalidationKey as i } from "./index3.js";
11
11
  import { useMutation as a } from "@tanstack/react-query";
12
12
  //#region ../../libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index6.js
13
13
  function o() {
14
- let { client: o, organizationId: s } = t(), c = n(s), l = r({
14
+ let { client: o, organizationId: s } = n(), c = r(s), l = e({
15
15
  client: o,
16
16
  headers: c
17
17
  });
18
18
  return a({
19
19
  ...l,
20
- onSuccess: async (...t) => {
21
- await e(i({
20
+ onSuccess: async (...e) => {
21
+ await t(i({
22
22
  client: o,
23
23
  organizationId: s
24
- })), await l.onSuccess?.(...t);
24
+ })), await l.onSuccess?.(...e);
25
25
  }
26
26
  });
27
27
  }