@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,45 +2,45 @@
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 { deleteReceivablesId as r, patchReceivablesId as i, postReceivables as a, postReceivablesIdAccept as o, postReceivablesIdCancel as s, postReceivablesIdClone as c, postReceivablesIdDecline as l, postReceivablesIdIssue as u } from "../../../shared/data-access/dist/lib/rest/sdk.gen.js";
5
+ import { deleteReceivablesId as e, patchReceivablesId as t, postReceivables as n, postReceivablesIdAccept as r, postReceivablesIdCancel as i, postReceivablesIdClone as a, postReceivablesIdDecline as o, postReceivablesIdIssue as s } from "../../../shared/data-access/dist/lib/rest/sdk.gen.js";
6
+ import { invalidateAllClients as c } from "../../../shared/data-access/dist/lib/clientRegistry.js";
7
+ import { useEmbedApi as l } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
8
+ import { organizationHeaders as u } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
9
9
  import "../../../shared/data-access/dist/index.js";
10
10
  import { receivableHistoryInvalidationKey as d, receivableInvalidationKey as f, receivablePdfInvalidationKey as p, receivablesInvalidationKey as m } from "./index2.js";
11
11
  import { useMutation as h } from "@tanstack/react-query";
12
12
  //#region ../../libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index4.js
13
- async function g({ client: t, organizationId: n, receivableId: r }) {
14
- let i = [m({
15
- client: t,
16
- organizationId: n
17
- }), ...r ? [
13
+ async function g({ client: e, organizationId: t, receivableId: n }) {
14
+ let r = [m({
15
+ client: e,
16
+ organizationId: t
17
+ }), ...n ? [
18
18
  f({
19
- client: t,
20
- organizationId: n,
21
- receivableId: r
19
+ client: e,
20
+ organizationId: t,
21
+ receivableId: n
22
22
  }),
23
23
  d({
24
- client: t,
25
- organizationId: n,
26
- receivableId: r
24
+ client: e,
25
+ organizationId: t,
26
+ receivableId: n
27
27
  }),
28
28
  p({
29
- client: t,
30
- organizationId: n,
31
- receivableId: r
29
+ client: e,
30
+ organizationId: t,
31
+ receivableId: n
32
32
  })
33
33
  ] : []];
34
- await Promise.all(i.map((t) => e(t)));
34
+ await Promise.all(r.map((e) => c(e)));
35
35
  }
36
36
  function _() {
37
- let { client: e, organizationId: r } = t();
37
+ let { client: e, organizationId: t } = l();
38
38
  return h({
39
- mutationFn: async ({ body: t }) => {
40
- let { data: i } = await a({
39
+ mutationFn: async ({ body: r }) => {
40
+ let { data: i } = await n({
41
41
  client: e,
42
- headers: n(r),
43
- body: t,
42
+ headers: u(t),
43
+ body: r,
44
44
  throwOnError: !0
45
45
  });
46
46
  return i;
@@ -48,154 +48,154 @@ function _() {
48
48
  onSuccess: async () => {
49
49
  await g({
50
50
  client: e,
51
- organizationId: r
51
+ organizationId: t
52
52
  });
53
53
  }
54
54
  });
55
55
  }
56
56
  function v() {
57
- let { client: e, organizationId: r } = t();
57
+ let { client: e, organizationId: n } = l();
58
58
  return h({
59
- mutationFn: async ({ path: t, body: a }) => {
60
- let { data: o } = await i({
59
+ mutationFn: async ({ path: r, body: i }) => {
60
+ let { data: a } = await t({
61
61
  client: e,
62
- headers: n(r),
63
- path: t,
64
- body: a,
62
+ headers: u(n),
63
+ path: r,
64
+ body: i,
65
65
  throwOnError: !0
66
66
  });
67
- return o;
67
+ return a;
68
68
  },
69
- onSuccess: async (t, n) => {
69
+ onSuccess: async (t, r) => {
70
70
  await g({
71
71
  client: e,
72
- organizationId: r,
73
- receivableId: n.path.receivable_id
72
+ organizationId: n,
73
+ receivableId: r.path.receivable_id
74
74
  });
75
75
  }
76
76
  });
77
77
  }
78
78
  function y() {
79
- let { client: e, organizationId: i } = t();
79
+ let { client: t, organizationId: n } = l();
80
80
  return h({
81
- mutationFn: async ({ path: t }) => {
82
- await r({
83
- client: e,
84
- headers: n(i),
85
- path: t,
81
+ mutationFn: async ({ path: r }) => {
82
+ await e({
83
+ client: t,
84
+ headers: u(n),
85
+ path: r,
86
86
  throwOnError: !0
87
87
  });
88
88
  },
89
- onSuccess: async (t, n) => {
89
+ onSuccess: async (e, r) => {
90
90
  await g({
91
- client: e,
92
- organizationId: i,
93
- receivableId: n.path.receivable_id
91
+ client: t,
92
+ organizationId: n,
93
+ receivableId: r.path.receivable_id
94
94
  });
95
95
  }
96
96
  });
97
97
  }
98
98
  function b() {
99
- let { client: e, organizationId: r } = t();
99
+ let { client: e, organizationId: t } = l();
100
100
  return h({
101
- mutationFn: async ({ path: t }) => {
102
- let { data: i } = await u({
101
+ mutationFn: async ({ path: n }) => {
102
+ let { data: r } = await s({
103
103
  client: e,
104
- headers: n(r),
105
- path: t,
104
+ headers: u(t),
105
+ path: n,
106
106
  throwOnError: !0
107
107
  });
108
- return i;
108
+ return r;
109
109
  },
110
- onSuccess: async (t, n) => {
110
+ onSuccess: async (n, r) => {
111
111
  await g({
112
112
  client: e,
113
- organizationId: r,
114
- receivableId: n.path.receivable_id
113
+ organizationId: t,
114
+ receivableId: r.path.receivable_id
115
115
  });
116
116
  }
117
117
  });
118
118
  }
119
119
  function x() {
120
- let { client: e, organizationId: r } = t();
120
+ let { client: e, organizationId: t } = l();
121
121
  return h({
122
- mutationFn: async ({ path: t }) => {
123
- await s({
122
+ mutationFn: async ({ path: n }) => {
123
+ await i({
124
124
  client: e,
125
- headers: n(r),
126
- path: t,
125
+ headers: u(t),
126
+ path: n,
127
127
  throwOnError: !0
128
128
  });
129
129
  },
130
- onSuccess: async (t, n) => {
130
+ onSuccess: async (n, r) => {
131
131
  await g({
132
132
  client: e,
133
- organizationId: r,
134
- receivableId: n.path.receivable_id
133
+ organizationId: t,
134
+ receivableId: r.path.receivable_id
135
135
  });
136
136
  }
137
137
  });
138
138
  }
139
139
  function S() {
140
- let { client: e, organizationId: r } = t();
140
+ let { client: e, organizationId: t } = l();
141
141
  return h({
142
- mutationFn: async ({ path: t }) => {
143
- let { data: i } = await c({
142
+ mutationFn: async ({ path: n }) => {
143
+ let { data: r } = await a({
144
144
  client: e,
145
- headers: n(r),
146
- path: t,
145
+ headers: u(t),
146
+ path: n,
147
147
  throwOnError: !0
148
148
  });
149
- return i;
149
+ return r;
150
150
  },
151
151
  onSuccess: async () => {
152
152
  await g({
153
153
  client: e,
154
- organizationId: r
154
+ organizationId: t
155
155
  });
156
156
  }
157
157
  });
158
158
  }
159
159
  function C() {
160
- let { client: e, organizationId: r } = t();
160
+ let { client: e, organizationId: t } = l();
161
161
  return h({
162
- mutationFn: async ({ path: t, body: i }) => {
163
- let { data: a } = await o({
162
+ mutationFn: async ({ path: n, body: i }) => {
163
+ let { data: a } = await r({
164
164
  client: e,
165
- headers: n(r),
166
- path: t,
165
+ headers: u(t),
166
+ path: n,
167
167
  body: i,
168
168
  throwOnError: !0
169
169
  });
170
170
  return a;
171
171
  },
172
- onSuccess: async (t, n) => {
172
+ onSuccess: async (n, r) => {
173
173
  await g({
174
174
  client: e,
175
- organizationId: r,
176
- receivableId: n.path.receivable_id
175
+ organizationId: t,
176
+ receivableId: r.path.receivable_id
177
177
  });
178
178
  }
179
179
  });
180
180
  }
181
181
  function w() {
182
- let { client: e, organizationId: r } = t();
182
+ let { client: e, organizationId: t } = l();
183
183
  return h({
184
- mutationFn: async ({ path: t, body: i }) => {
185
- let { data: a } = await l({
184
+ mutationFn: async ({ path: n, body: r }) => {
185
+ let { data: i } = await o({
186
186
  client: e,
187
- headers: n(r),
188
- path: t,
189
- body: i,
187
+ headers: u(t),
188
+ path: n,
189
+ body: r,
190
190
  throwOnError: !0
191
191
  });
192
- return a;
192
+ return i;
193
193
  },
194
- onSuccess: async (t, n) => {
194
+ onSuccess: async (n, r) => {
195
195
  await g({
196
196
  client: e,
197
- organizationId: r,
198
- receivableId: n.path.receivable_id
197
+ organizationId: t,
198
+ receivableId: r.path.receivable_id
199
199
  });
200
200
  }
201
201
  });
@@ -2,94 +2,94 @@
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 { postReceivablesIdMarkAsPaid as r, postReceivablesIdMarkAsPartiallyPaid as i, postReceivablesIdMarkAsUncollectible as a } from "../../../shared/data-access/dist/lib/rest/sdk.gen.js";
5
+ import { postReceivablesIdMarkAsPaid as e, postReceivablesIdMarkAsPartiallyPaid as t, postReceivablesIdMarkAsUncollectible as n } from "../../../shared/data-access/dist/lib/rest/sdk.gen.js";
6
+ import { invalidateAllClients as r } from "../../../shared/data-access/dist/lib/clientRegistry.js";
7
+ import { useEmbedApi as i } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
8
+ import { organizationHeaders as a } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
9
9
  import "../../../shared/data-access/dist/index.js";
10
10
  import { receivableHistoryInvalidationKey as o, receivableInvalidationKey as s, receivablesInvalidationKey as c } from "./index2.js";
11
11
  import { useMutation as l } from "@tanstack/react-query";
12
12
  //#region ../../libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index5.js
13
- async function u({ client: t, organizationId: n, receivableId: r }) {
13
+ async function u({ client: e, organizationId: t, receivableId: n }) {
14
14
  await Promise.all([
15
- e(c({
16
- client: t,
17
- organizationId: n
15
+ r(c({
16
+ client: e,
17
+ organizationId: t
18
18
  })),
19
- e(s({
20
- client: t,
21
- organizationId: n,
22
- receivableId: r
19
+ r(s({
20
+ client: e,
21
+ organizationId: t,
22
+ receivableId: n
23
23
  })),
24
- e(o({
25
- client: t,
26
- organizationId: n,
27
- receivableId: r
24
+ r(o({
25
+ client: e,
26
+ organizationId: t,
27
+ receivableId: n
28
28
  }))
29
29
  ]);
30
30
  }
31
31
  function d() {
32
- let { client: e, organizationId: i } = t();
32
+ let { client: t, organizationId: n } = i();
33
33
  return l({
34
- mutationFn: async ({ path: t, body: a }) => {
35
- let { data: o } = await r({
36
- client: e,
37
- headers: n(i),
38
- path: t,
39
- body: a,
34
+ mutationFn: async ({ path: r, body: i }) => {
35
+ let { data: o } = await e({
36
+ client: t,
37
+ headers: a(n),
38
+ path: r,
39
+ body: i,
40
40
  throwOnError: !0
41
41
  });
42
42
  return o;
43
43
  },
44
- onSuccess: async (t, n) => {
44
+ onSuccess: async (e, r) => {
45
45
  await u({
46
- client: e,
47
- organizationId: i,
48
- receivableId: n.path.receivable_id
46
+ client: t,
47
+ organizationId: n,
48
+ receivableId: r.path.receivable_id
49
49
  });
50
50
  }
51
51
  });
52
52
  }
53
53
  function f() {
54
- let { client: e, organizationId: r } = t();
54
+ let { client: e, organizationId: n } = i();
55
55
  return l({
56
- mutationFn: async ({ path: t, body: a }) => {
57
- let { data: o } = await i({
56
+ mutationFn: async ({ path: r, body: i }) => {
57
+ let { data: o } = await t({
58
58
  client: e,
59
- headers: n(r),
60
- path: t,
61
- body: a,
59
+ headers: a(n),
60
+ path: r,
61
+ body: i,
62
62
  throwOnError: !0
63
63
  });
64
64
  return o;
65
65
  },
66
- onSuccess: async (t, n) => {
66
+ onSuccess: async (t, r) => {
67
67
  await u({
68
68
  client: e,
69
- organizationId: r,
70
- receivableId: n.path.receivable_id
69
+ organizationId: n,
70
+ receivableId: r.path.receivable_id
71
71
  });
72
72
  }
73
73
  });
74
74
  }
75
75
  function p() {
76
- let { client: e, organizationId: r } = t();
76
+ let { client: e, organizationId: t } = i();
77
77
  return l({
78
- mutationFn: async ({ path: t, body: i }) => {
79
- let { data: o } = await a({
78
+ mutationFn: async ({ path: r, body: i }) => {
79
+ let { data: o } = await n({
80
80
  client: e,
81
- headers: n(r),
82
- path: t,
81
+ headers: a(t),
82
+ path: r,
83
83
  body: i,
84
84
  throwOnError: !0
85
85
  });
86
86
  return o;
87
87
  },
88
- onSuccess: async (t, n) => {
88
+ onSuccess: async (n, r) => {
89
89
  await u({
90
90
  client: e,
91
- organizationId: r,
92
- receivableId: n.path.receivable_id
91
+ organizationId: t,
92
+ receivableId: r.path.receivable_id
93
93
  });
94
94
  }
95
95
  });
@@ -2,67 +2,67 @@
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 { getReceivablesIdHistoryOptions as n, getReceivablesIdMailsOptions as r, getReceivablesIdOptions as i, getReceivablesIdPdfLinkOptions as a, getReceivablesOptions as o } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
8
- import { withAuthEpoch as s } from "../../../shared/data-access/dist/lib/withAuthEpoch.js";
5
+ import { getReceivablesIdHistoryOptions as e, getReceivablesIdMailsOptions as t, getReceivablesIdOptions as n, getReceivablesIdPdfLinkOptions as r, getReceivablesOptions as i } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
6
+ import { withAuthEpoch as a } from "../../../shared/data-access/dist/lib/withAuthEpoch.js";
7
+ import { useEmbedApi as o } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
8
+ import { organizationHeaders as s } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
9
9
  import "../../../shared/data-access/dist/index.js";
10
10
  import { useQuery as c } from "@tanstack/react-query";
11
11
  //#region ../../libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index6.js
12
- function l({ enabled: n, ...r } = {}) {
13
- let { client: i, organizationId: a, widgetToken: l, authEpoch: u } = e(), d = !!(a && l) && (n === !0 || n === void 0), f = o({
14
- client: i,
15
- headers: t(a),
16
- query: r
12
+ function l({ enabled: e, ...t } = {}) {
13
+ let { client: n, organizationId: r, widgetToken: l, authEpoch: u } = o(), d = !!(r && l) && (e === !0 || e === void 0), f = i({
14
+ client: n,
15
+ headers: s(r),
16
+ query: t
17
17
  });
18
18
  return c({
19
- ...s(f, u),
19
+ ...a(f, u),
20
20
  enabled: d
21
21
  });
22
22
  }
23
- function u(n, { enabled: r = !0 } = {}) {
24
- let { client: a, organizationId: o, widgetToken: l, authEpoch: u } = e(), d = !!(o && l && n) && r, f = i({
25
- client: a,
26
- headers: t(o),
27
- path: { receivable_id: n ?? "" }
23
+ function u(e, { enabled: t = !0 } = {}) {
24
+ let { client: r, organizationId: i, widgetToken: l, authEpoch: u } = o(), d = !!(i && l && e) && t, f = n({
25
+ client: r,
26
+ headers: s(i),
27
+ path: { receivable_id: e ?? "" }
28
28
  });
29
29
  return c({
30
- ...s(f, u),
30
+ ...a(f, u),
31
31
  enabled: d
32
32
  });
33
33
  }
34
- function d(r, { enabled: i, ...a } = {}) {
35
- let { client: o, organizationId: l, widgetToken: u, authEpoch: d } = e(), f = !!(l && u && r) && (i === !0 || i === void 0), p = n({
36
- client: o,
37
- headers: t(l),
38
- path: { receivable_id: r ?? "" },
39
- query: a
34
+ function d(t, { enabled: n, ...r } = {}) {
35
+ let { client: i, organizationId: l, widgetToken: u, authEpoch: d } = o(), f = !!(l && u && t) && (n === !0 || n === void 0), p = e({
36
+ client: i,
37
+ headers: s(l),
38
+ path: { receivable_id: t ?? "" },
39
+ query: r
40
40
  });
41
41
  return c({
42
- ...s(p, d),
42
+ ...a(p, d),
43
43
  enabled: f
44
44
  });
45
45
  }
46
- function f(n, { enabled: i, ...a } = {}) {
47
- let { client: o, organizationId: l, widgetToken: u, authEpoch: d } = e(), f = !!(l && u && n) && (i === !0 || i === void 0), p = r({
48
- client: o,
49
- headers: t(l),
50
- path: { receivable_id: n ?? "" },
51
- query: a
46
+ function f(e, { enabled: n, ...r } = {}) {
47
+ let { client: i, organizationId: l, widgetToken: u, authEpoch: d } = o(), f = !!(l && u && e) && (n === !0 || n === void 0), p = t({
48
+ client: i,
49
+ headers: s(l),
50
+ path: { receivable_id: e ?? "" },
51
+ query: r
52
52
  });
53
53
  return c({
54
- ...s(p, d),
54
+ ...a(p, d),
55
55
  enabled: f
56
56
  });
57
57
  }
58
- function p(n, { enabled: r = !0 } = {}) {
59
- let { client: i, organizationId: o, widgetToken: l, authEpoch: u } = e(), d = !!(o && l && n) && r, f = a({
60
- client: i,
61
- headers: t(o),
62
- path: { receivable_id: n ?? "" }
58
+ function p(e, { enabled: t = !0 } = {}) {
59
+ let { client: n, organizationId: i, widgetToken: l, authEpoch: u } = o(), d = !!(i && l && e) && t, f = r({
60
+ client: n,
61
+ headers: s(i),
62
+ path: { receivable_id: e ?? "" }
63
63
  });
64
64
  return c({
65
- ...s(f, u),
65
+ ...a(f, u),
66
66
  enabled: d
67
67
  });
68
68
  }
@@ -2,18 +2,18 @@
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 { getExternalBankAccountsQueryKey as r } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
5
+ import { getExternalBankAccountsQueryKey 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
  //#region ../../libs/tesouro-embedded-components-react/linked-accounts-widget/data-access/dist/index2.js
11
11
  function i() {
12
- let { client: i, organizationId: a } = t(), o = n(a);
12
+ let { client: i, organizationId: a } = n(), o = r(a);
13
13
  return {
14
14
  client: i,
15
15
  headers: o,
16
- invalidate: () => e(r({
16
+ invalidate: () => t(e({
17
17
  client: i,
18
18
  headers: o
19
19
  }))
@@ -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 { getExternalBankAccountsOptions 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 { getExternalBankAccountsOptions 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/linked-accounts-widget/data-access/dist/index4.js
12
12
  function a({ enabled: a, ...o } = {}) {
13
- let { client: s, organizationId: c, widgetToken: l, authEpoch: u } = e(), d = n({
13
+ let { client: s, organizationId: c, widgetToken: l, authEpoch: u } = n(), d = e({
14
14
  query: o,
15
15
  client: s,
16
- headers: t(c)
16
+ headers: r(c)
17
17
  });
18
18
  return i({
19
- ...r(d, u),
19
+ ...t(d, u),
20
20
  enabled: !!(c && l) && (a === !0 || a === void 0)
21
21
  });
22
22
  }
@@ -1,3 +1,4 @@
1
1
  import { MARKETING_WIDGET_LABELS_EN as e } from "../../ui/dist/index2.js";
2
- import { MarketingWidget as t } from "./index4.js";
3
- export { e as MARKETING_WIDGET_LABELS_EN, t as MarketingWidget };
2
+ import { MarketingBenefitIcon as t } from "../../ui/dist/index3.js";
3
+ import { MarketingWidget as n } from "./index4.js";
4
+ export { e as MARKETING_WIDGET_LABELS_EN, t as MarketingBenefitIcon, n as MarketingWidget };
@@ -2,6 +2,7 @@
2
2
  var e = {
3
3
  root: "marketing-widget",
4
4
  learnMoreButton: "marketing-widget-learn-more-button",
5
+ applyNowButton: "marketing-widget-apply-now-button",
5
6
  modal: "marketing-widget-modal",
6
7
  primaryCtaButton: "marketing-widget-primary-cta-button"
7
8
  };