@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,192 +2,192 @@
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 { deletePayablesId as n, deletePayablesIdFile as r, patchPayablesId as i, postPayables as a, postPayablesIdApprovePaymentOperation as o, postPayablesIdAttachFile as s, postPayablesIdCancel as c, postPayablesIdMarkAsPaid as l, postPayablesIdReject as u, postPayablesIdReopen as d, postPayablesIdSubmitForApproval as f, postPayablesIdValidate as p, postPayablesUploadFromFile as m, postPaymentIntentsIdCancel as h } from "../../../shared/data-access/dist/lib/rest/sdk.gen.js";
5
+ import { deletePayablesId as e, deletePayablesIdFile as t, patchPayablesId as n, postPayables as r, postPayablesIdApprovePaymentOperation as i, postPayablesIdAttachFile as a, postPayablesIdCancel as o, postPayablesIdMarkAsPaid as s, postPayablesIdReject as c, postPayablesIdReopen as l, postPayablesIdSubmitForApproval as u, postPayablesIdValidate as d, postPayablesUploadFromFile as f, postPaymentIntentsIdCancel as p } from "../../../shared/data-access/dist/lib/rest/sdk.gen.js";
6
+ import { useEmbedApi as m } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
7
+ import { organizationHeaders as h } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
8
8
  import "../../../shared/data-access/dist/index.js";
9
9
  import { beginApprovalRequestWatch as g, invalidateDeletedPayableQueries as _, invalidatePayableQueries as v, reconcileCancelledPaymentQueries as y, reconcileSubmittedForApprovalQueries as b, reconcileUploadedPayableOcr as x } from "./index6.js";
10
10
  import { useMutation as S } from "@tanstack/react-query";
11
11
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index13.js
12
12
  function C() {
13
- let { client: n, organizationId: r } = e();
13
+ let { client: e, organizationId: t } = m();
14
14
  return S({
15
- mutationFn: async ({ body: e }) => {
16
- let { data: i } = await a({
17
- client: n,
18
- headers: t(r),
19
- body: e,
15
+ mutationFn: async ({ body: n }) => {
16
+ let { data: i } = await r({
17
+ client: e,
18
+ headers: h(t),
19
+ body: n,
20
20
  throwOnError: !0
21
21
  });
22
22
  return i;
23
23
  },
24
24
  onSuccess: async () => {
25
25
  await v({
26
- client: n,
27
- organizationId: r
26
+ client: e,
27
+ organizationId: t
28
28
  });
29
29
  }
30
30
  });
31
31
  }
32
32
  function w() {
33
- let { client: n, organizationId: r } = e();
33
+ let { client: e, organizationId: t } = m();
34
34
  return S({
35
- mutationFn: async ({ path: e, body: a }) => {
36
- let { data: o } = await i({
37
- client: n,
38
- headers: t(r),
39
- path: e,
40
- body: a,
35
+ mutationFn: async ({ path: r, body: i }) => {
36
+ let { data: a } = await n({
37
+ client: e,
38
+ headers: h(t),
39
+ path: r,
40
+ body: i,
41
41
  throwOnError: !0
42
42
  });
43
- return o;
43
+ return a;
44
44
  },
45
- onSuccess: async (e, t) => {
45
+ onSuccess: async (n, r) => {
46
46
  await v({
47
- client: n,
48
- organizationId: r,
49
- payableId: t.path.payable_id
47
+ client: e,
48
+ organizationId: t,
49
+ payableId: r.path.payable_id
50
50
  });
51
51
  }
52
52
  });
53
53
  }
54
54
  function T() {
55
- let { client: r, organizationId: i } = e();
55
+ let { client: t, organizationId: n } = m();
56
56
  return S({
57
- mutationFn: async ({ path: e }) => {
58
- await n({
59
- client: r,
60
- headers: t(i),
61
- path: e,
57
+ mutationFn: async ({ path: r }) => {
58
+ await e({
59
+ client: t,
60
+ headers: h(n),
61
+ path: r,
62
62
  throwOnError: !0
63
63
  });
64
64
  },
65
- onSuccess: async (e, t) => {
65
+ onSuccess: async (e, r) => {
66
66
  await _({
67
- client: r,
68
- organizationId: i,
69
- payableId: t.path.payable_id
67
+ client: t,
68
+ organizationId: n,
69
+ payableId: r.path.payable_id
70
70
  });
71
71
  }
72
72
  });
73
73
  }
74
74
  function E() {
75
- let { client: n, organizationId: r } = e();
75
+ let { client: e, organizationId: t } = m();
76
76
  return S({
77
- mutationFn: async ({ file: e }) => {
78
- let { data: a } = await m({
79
- client: n,
80
- headers: t(r),
81
- body: { file: e },
77
+ mutationFn: async ({ file: r }) => {
78
+ let { data: i } = await f({
79
+ client: e,
80
+ headers: h(t),
81
+ body: { file: r },
82
82
  throwOnError: !0
83
83
  });
84
- if (a?.id && a.currency !== "USD") try {
85
- return await i({
86
- client: n,
87
- headers: t(r),
88
- path: { payable_id: a.id },
84
+ if (i?.id && i.currency !== "USD") try {
85
+ return await n({
86
+ client: e,
87
+ headers: h(t),
88
+ path: { payable_id: i.id },
89
89
  body: { currency: "USD" },
90
90
  throwOnError: !0
91
91
  }), {
92
- ...a,
92
+ ...i,
93
93
  currency: "USD"
94
94
  };
95
95
  } catch {}
96
- return a;
96
+ return i;
97
97
  },
98
- onSuccess: async (e) => {
99
- e?.id && x({
100
- client: n,
101
- organizationId: r,
102
- payableId: e.id
98
+ onSuccess: async (n) => {
99
+ n?.id && x({
100
+ client: e,
101
+ organizationId: t,
102
+ payableId: n.id
103
103
  }).catch(() => {});
104
104
  }
105
105
  });
106
106
  }
107
107
  function D() {
108
- let { client: n, organizationId: r } = e();
108
+ let { client: e, organizationId: t } = m();
109
109
  return S({
110
- mutationFn: async ({ path: e, file: i }) => {
111
- let { data: a } = await s({
112
- client: n,
113
- headers: t(r),
114
- path: e,
115
- body: { file: i },
110
+ mutationFn: async ({ path: n, file: r }) => {
111
+ let { data: i } = await a({
112
+ client: e,
113
+ headers: h(t),
114
+ path: n,
115
+ body: { file: r },
116
116
  throwOnError: !0
117
117
  });
118
- return a;
118
+ return i;
119
119
  },
120
- onSuccess: async (e, t) => {
120
+ onSuccess: async (n, r) => {
121
121
  await v({
122
- client: n,
123
- organizationId: r,
124
- payableId: t.path.payable_id
122
+ client: e,
123
+ organizationId: t,
124
+ payableId: r.path.payable_id
125
125
  });
126
126
  }
127
127
  });
128
128
  }
129
129
  function O() {
130
- let { client: n, organizationId: i } = e();
130
+ let { client: e, organizationId: n } = m();
131
131
  return S({
132
- mutationFn: async ({ path: e }) => {
133
- await r({
134
- client: n,
135
- headers: t(i),
136
- path: e,
132
+ mutationFn: async ({ path: r }) => {
133
+ await t({
134
+ client: e,
135
+ headers: h(n),
136
+ path: r,
137
137
  throwOnError: !0
138
138
  });
139
139
  },
140
- onSuccess: async (e, t) => {
140
+ onSuccess: async (t, r) => {
141
141
  await v({
142
- client: n,
143
- organizationId: i,
144
- payableId: t.path.payable_id
142
+ client: e,
143
+ organizationId: n,
144
+ payableId: r.path.payable_id
145
145
  });
146
146
  }
147
147
  });
148
148
  }
149
149
  function k() {
150
- let { client: n, organizationId: r } = e();
151
- return S({ mutationFn: async ({ path: e }) => {
152
- let { data: i } = await p({
153
- client: n,
154
- headers: t(r),
155
- path: e,
150
+ let { client: e, organizationId: t } = m();
151
+ return S({ mutationFn: async ({ path: n }) => {
152
+ let { data: r } = await d({
153
+ client: e,
154
+ headers: h(t),
155
+ path: n,
156
156
  throwOnError: !0
157
157
  });
158
158
  return {
159
- id: i.id,
160
- validation_errors: i.validation_errors ?? []
159
+ id: r.id,
160
+ validation_errors: r.validation_errors ?? []
161
161
  };
162
162
  } });
163
163
  }
164
164
  function A() {
165
- let { client: n, organizationId: r } = e();
165
+ let { client: e, organizationId: t } = m();
166
166
  return S({
167
- onMutate: async ({ path: e }) => g({
168
- client: n,
169
- organizationId: r,
170
- payableId: e.payable_id
167
+ onMutate: async ({ path: n }) => g({
168
+ client: e,
169
+ organizationId: t,
170
+ payableId: n.payable_id
171
171
  }, { requireRoundMarker: !0 }),
172
- mutationFn: async ({ path: e }) => {
173
- let { data: i } = await f({
174
- client: n,
175
- headers: t(r),
176
- path: e,
172
+ mutationFn: async ({ path: n }) => {
173
+ let { data: r } = await u({
174
+ client: e,
175
+ headers: h(t),
176
+ path: n,
177
177
  throwOnError: !0
178
178
  });
179
- return i;
179
+ return r;
180
180
  },
181
- onSuccess: async (e, t, i) => {
182
- let a = t.path.payable_id, o = e?.status === "approve_in_progress";
181
+ onSuccess: async (n, r, i) => {
182
+ let a = r.path.payable_id, o = n?.status === "approve_in_progress";
183
183
  await v({
184
- client: n,
185
- organizationId: r,
184
+ client: e,
185
+ organizationId: t,
186
186
  payableId: a,
187
187
  includeApprovalRequests: !0
188
188
  }), !(!o || !i) && b({
189
- client: n,
190
- organizationId: r,
189
+ client: e,
190
+ organizationId: t,
191
191
  payableId: a,
192
192
  watch: i
193
193
  }).catch(() => {});
@@ -195,134 +195,134 @@ function A() {
195
195
  });
196
196
  }
197
197
  function j() {
198
- let { client: n, organizationId: r } = e();
198
+ let { client: e, organizationId: t } = m();
199
199
  return S({
200
- mutationFn: async ({ path: e }) => {
201
- let { data: i } = await o({
202
- client: n,
203
- headers: t(r),
204
- path: e,
200
+ mutationFn: async ({ path: n }) => {
201
+ let { data: r } = await i({
202
+ client: e,
203
+ headers: h(t),
204
+ path: n,
205
205
  throwOnError: !0
206
206
  });
207
- return i;
207
+ return r;
208
208
  },
209
- onSuccess: async (e, t) => {
209
+ onSuccess: async (n, r) => {
210
210
  await v({
211
- client: n,
212
- organizationId: r,
213
- payableId: t.path.payable_id,
211
+ client: e,
212
+ organizationId: t,
213
+ payableId: r.path.payable_id,
214
214
  includeApprovalRequests: !0
215
215
  });
216
216
  }
217
217
  });
218
218
  }
219
219
  function M() {
220
- let { client: n, organizationId: r } = e();
220
+ let { client: e, organizationId: t } = m();
221
221
  return S({
222
- mutationFn: async ({ path: e }) => {
223
- let { data: i } = await u({
224
- client: n,
225
- headers: t(r),
226
- path: e,
222
+ mutationFn: async ({ path: n }) => {
223
+ let { data: r } = await c({
224
+ client: e,
225
+ headers: h(t),
226
+ path: n,
227
227
  throwOnError: !0
228
228
  });
229
- return i;
229
+ return r;
230
230
  },
231
- onSuccess: async (e, t) => {
231
+ onSuccess: async (n, r) => {
232
232
  await v({
233
- client: n,
234
- organizationId: r,
235
- payableId: t.path.payable_id,
233
+ client: e,
234
+ organizationId: t,
235
+ payableId: r.path.payable_id,
236
236
  includeApprovalRequests: !0
237
237
  });
238
238
  }
239
239
  });
240
240
  }
241
241
  function N() {
242
- let { client: n, organizationId: r } = e();
242
+ let { client: e, organizationId: t } = m();
243
243
  return S({
244
- mutationFn: async ({ path: e }) => {
245
- let { data: i } = await c({
246
- client: n,
247
- headers: t(r),
248
- path: e,
244
+ mutationFn: async ({ path: n }) => {
245
+ let { data: r } = await o({
246
+ client: e,
247
+ headers: h(t),
248
+ path: n,
249
249
  throwOnError: !0
250
250
  });
251
- return i;
251
+ return r;
252
252
  },
253
- onSuccess: async (e, t) => {
253
+ onSuccess: async (n, r) => {
254
254
  await v({
255
- client: n,
256
- organizationId: r,
257
- payableId: t.path.payable_id
255
+ client: e,
256
+ organizationId: t,
257
+ payableId: r.path.payable_id
258
258
  });
259
259
  }
260
260
  });
261
261
  }
262
262
  function P() {
263
- let { client: n, organizationId: r } = e();
263
+ let { client: e, organizationId: t } = m();
264
264
  return S({
265
- mutationFn: async ({ path: e }) => {
266
- let { data: i } = await h({
267
- client: n,
268
- headers: t(r),
269
- path: e,
265
+ mutationFn: async ({ path: n }) => {
266
+ let { data: r } = await p({
267
+ client: e,
268
+ headers: h(t),
269
+ path: n,
270
270
  throwOnError: !0
271
271
  });
272
- return i;
272
+ return r;
273
273
  },
274
- onSuccess: async (e, t) => {
274
+ onSuccess: async (n, r) => {
275
275
  await v({
276
- client: n,
277
- organizationId: r,
278
- payableId: t.payableId
276
+ client: e,
277
+ organizationId: t,
278
+ payableId: r.payableId
279
279
  }), y({
280
- client: n,
281
- organizationId: r,
282
- payableId: t.payableId
280
+ client: e,
281
+ organizationId: t,
282
+ payableId: r.payableId
283
283
  }).catch(() => {});
284
284
  }
285
285
  });
286
286
  }
287
287
  function F() {
288
- let { client: n, organizationId: r } = e();
288
+ let { client: e, organizationId: t } = m();
289
289
  return S({
290
- mutationFn: async ({ path: e }) => {
291
- let { data: i } = await d({
292
- client: n,
293
- headers: t(r),
294
- path: e,
290
+ mutationFn: async ({ path: n }) => {
291
+ let { data: r } = await l({
292
+ client: e,
293
+ headers: h(t),
294
+ path: n,
295
295
  throwOnError: !0
296
296
  });
297
- return i;
297
+ return r;
298
298
  },
299
- onSuccess: async (e, t) => {
299
+ onSuccess: async (n, r) => {
300
300
  await v({
301
- client: n,
302
- organizationId: r,
303
- payableId: t.path.payable_id
301
+ client: e,
302
+ organizationId: t,
303
+ payableId: r.path.payable_id
304
304
  });
305
305
  }
306
306
  });
307
307
  }
308
308
  function I() {
309
- let { client: n, organizationId: r } = e();
309
+ let { client: e, organizationId: t } = m();
310
310
  return S({
311
- mutationFn: async ({ path: e, body: i }) => {
312
- let { data: a } = await l({
313
- client: n,
314
- headers: t(r),
315
- path: e,
316
- body: i,
311
+ mutationFn: async ({ path: n, body: r }) => {
312
+ let { data: i } = await s({
313
+ client: e,
314
+ headers: h(t),
315
+ path: n,
316
+ body: r,
317
317
  throwOnError: !0
318
318
  });
319
- return a;
319
+ return i;
320
320
  },
321
- onSuccess: async (e, t) => {
321
+ onSuccess: async (n, r) => {
322
322
  await v({
323
- client: n,
324
- organizationId: r,
325
- payableId: t.path.payable_id
323
+ client: e,
324
+ organizationId: t,
325
+ payableId: r.path.payable_id
326
326
  });
327
327
  }
328
328
  });
@@ -2,23 +2,23 @@
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 { withAuthEpoch as t } from "../../../shared/data-access/dist/lib/withAuthEpoch.js";
5
+ import { withAuthEpoch as e } from "../../../shared/data-access/dist/lib/withAuthEpoch.js";
6
+ import { useEmbedApi as t } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
7
7
  import "../../../shared/data-access/dist/index.js";
8
8
  import { payableOcrQueryOptions as n } from "./index4.js";
9
9
  import { suspectedPayableDuplicates as r } from "./index7.js";
10
10
  import { useQueries as i } from "@tanstack/react-query";
11
11
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index15.js
12
12
  function a({ payableIds: a, enabled: o }) {
13
- let { client: s, organizationId: c, widgetToken: l, authEpoch: u } = e(), d = !!(c && l) && (o === !0 || o === void 0);
13
+ let { client: s, organizationId: c, widgetToken: l, authEpoch: u } = t(), d = !!(c && l) && (o === !0 || o === void 0);
14
14
  return i({
15
- queries: a.map((e) => ({
16
- ...t(n({
15
+ queries: a.map((t) => ({
16
+ ...e(n({
17
17
  client: s,
18
18
  organizationId: c,
19
- payableId: e
19
+ payableId: t
20
20
  }), u),
21
- enabled: d && !!e
21
+ enabled: d && !!t
22
22
  })),
23
23
  combine: (e) => e.map((e, t) => ({
24
24
  payableId: a[t],
@@ -1,13 +1,13 @@
1
- import { organizationHeaders as e } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
2
- import { getPayablesIdOptions as t } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
1
+ import { getPayablesIdOptions as e } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
2
+ import { organizationHeaders as t } 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/bill-pay-widget/data-access/dist/index16.js
5
5
  var n = 1e3;
6
6
  function r({ client: r, organizationId: i, payableId: a }) {
7
7
  return {
8
- ...t({
8
+ ...e({
9
9
  client: r,
10
- headers: e(i),
10
+ headers: t(i),
11
11
  path: { payable_id: a }
12
12
  }),
13
13
  refetchInterval: (e) => {