@tesouro/embedded-components-react 0.2.280 → 0.2.282

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 (112) hide show
  1. package/README.md +17 -14
  2. package/dist/experimental/WidgetSuite.d.ts +9 -1
  3. package/dist/experimental/index.d.ts +9 -1
  4. package/dist/index.css +20 -6
  5. package/dist/index.d.ts +46 -23
  6. package/dist/index.js +54 -53
  7. package/dist/lib/AcceptDisclosuresWidget.d.ts +9 -1
  8. package/dist/lib/BalancesWidget.d.ts +8 -0
  9. package/dist/lib/BankAccountOnboardingWidget.d.ts +9 -1
  10. package/dist/lib/BankAccountsWidget.d.ts +9 -1
  11. package/dist/lib/BillPayWidget.d.ts +8 -0
  12. package/dist/lib/BillPayWidget.js +1 -1
  13. package/dist/lib/CardDetailsWidget.d.ts +9 -1
  14. package/dist/lib/CardsWidget.d.ts +9 -1
  15. package/dist/lib/ChartOfAccountsWidget.d.ts +9 -1
  16. package/dist/lib/CounterpartsWidget.d.ts +9 -1
  17. package/dist/lib/CreateCardWidget.d.ts +9 -1
  18. package/dist/lib/ExpenseApprovalPoliciesWidget.d.ts +9 -1
  19. package/dist/lib/ExpenseManagementWidget.d.ts +9 -1
  20. package/dist/lib/ExpenseRequirementsWidget.d.ts +9 -1
  21. package/dist/lib/HelpWidget.d.ts +9 -1
  22. package/dist/lib/InsightsWidget.d.ts +8 -0
  23. package/dist/lib/InvoicingWidget.d.ts +9 -1
  24. package/dist/lib/LinkedAccountsWidget.d.ts +9 -1
  25. package/dist/lib/ProductsWidget.d.ts +9 -1
  26. package/dist/lib/ProfileWidget.d.ts +9 -1
  27. package/dist/lib/ReceiptMatchWidget.d.ts +9 -1
  28. package/dist/lib/ReceivablesWidget.d.ts +9 -1
  29. package/dist/lib/SettingsWidget.d.ts +9 -1
  30. package/dist/lib/TagsWidget.d.ts +9 -1
  31. package/dist/lib/TeamWidget.d.ts +9 -1
  32. package/dist/lib/TransfersWidget.d.ts +8 -0
  33. package/dist/lib/WidgetProvider.d.ts +25 -2
  34. package/dist/lib/WidgetProvider.js +8 -7
  35. package/dist/lib/WidgetProviderPublic.d.ts +8 -0
  36. package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/index4.js +3 -2
  37. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index17.js +54 -53
  38. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/index8.js +3 -2
  39. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +9 -5
  40. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index10.js +42 -39
  41. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index12.js +69 -54
  42. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index14.js +21 -2
  43. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index15.js +46 -40
  44. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index16.js +81 -1
  45. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index17.js +46 -47
  46. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index18.js +3 -11
  47. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index19.js +2 -8
  48. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index2.js +5 -3
  49. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index20.js +43 -5
  50. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index21.js +1 -102
  51. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index22.js +11 -3
  52. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index23.js +9 -6
  53. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index24.js +4 -5
  54. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js +127 -76
  55. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +6 -6
  56. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index28.js +7 -111
  57. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index29.js +85 -1
  58. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index3.js +16 -12
  59. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index30.js +2 -24
  60. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index31.js +8 -0
  61. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index32.js +114 -0
  62. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index33.js +1 -0
  63. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index34.js +25 -0
  64. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index5.js +50 -49
  65. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index6.js +1 -1
  66. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index7.js +25 -12
  67. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index8.js +86 -69
  68. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index9.js +2 -1
  69. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +7 -7
  70. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index13.js +17 -16
  71. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index16.js +1 -0
  72. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +1 -1
  73. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +89 -124
  74. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +2 -1
  75. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index25.js +31 -26
  76. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index27.js +1 -1
  77. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index28.js +80 -77
  78. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index36.js +20 -4
  79. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index37.js +228 -6
  80. package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/index6.js +3 -2
  81. package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/index8.js +3 -2
  82. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/index8.js +3 -2
  83. package/dist/libs/tesouro-embedded-components-react/create-card-widget/feature/dist/index7.js +30 -29
  84. package/dist/libs/tesouro-embedded-components-react/expense-approval-policies-widget/feature/dist/lib/ExpenseApprovalPoliciesWidgetFeature.js +2 -1
  85. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index3.js +3 -2
  86. package/dist/libs/tesouro-embedded-components-react/expense-receipt-match-widget/feature/dist/lib/ReceiptMatchWidget.js +7 -6
  87. package/dist/libs/tesouro-embedded-components-react/expense-requirements-widget/feature/dist/lib/ExpenseRequirementsWidget.js +2 -1
  88. package/dist/libs/tesouro-embedded-components-react/gl-code-table-widget/feature/dist/index8.js +5 -4
  89. package/dist/libs/tesouro-embedded-components-react/help-widget/feature/dist/index3.js +3 -2
  90. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index12.js +3 -2
  91. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index3.js +5 -4
  92. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/index9.js +3 -2
  93. package/dist/libs/tesouro-embedded-components-react/products-widget/feature/dist/index8.js +3 -2
  94. package/dist/libs/tesouro-embedded-components-react/profile-widget/feature/dist/index4.js +3 -2
  95. package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index6.js +3 -2
  96. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +6 -6
  97. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/reference-data/useLedgerAccountsQuery.js +53 -11
  98. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/index.js +5 -5
  99. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/RootWidgetProvider.js +69 -67
  100. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/WidgetProvider.js +158 -132
  101. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/hooks.js +7 -4
  102. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/isDisclosuresAcceptanceRequired.js +20 -0
  103. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/labels.js +6 -1
  104. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  105. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/index.js +9 -9
  106. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/ErrorState/ErrorState.js +19 -18
  107. package/dist/libs/tesouro-embedded-components-react/tags-widget/feature/dist/index11.js +3 -2
  108. package/dist/libs/tesouro-embedded-components-react/team-widget/feature/dist/index17.js +3 -2
  109. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index5.js +1 -1
  110. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index6.js +3 -2
  111. package/dist/packages/shared-ui-shadcn/dist/index.js +3445 -3413
  112. package/package.json +1 -1
@@ -16,16 +16,16 @@ import { CREATE_CARD_WIDGET_LABELS_EN as o } from "../../ui/dist/lib/CreateCardW
16
16
  import { CreateCardView as s, MailingOptionValue as c } from "../../ui/dist/lib/CreateCardWidget/types.js";
17
17
  import { CreateCardWidget as te } from "../../ui/dist/lib/CreateCardWidget/CreateCardWidget.js";
18
18
  import "../../ui/dist/index.js";
19
- import { CardFormatValue as l, buildCreateDebitCardRequest as u, createDebitCardReference as ne, formatBusinessAddress as re, isBusinessAddressComplete as ie, isManualAddressComplete as ae } from "./index3.js";
20
- import { resolveCreateCardFeatureLabels as oe } from "./index4.js";
21
- import { CreateCardWidgetAnalyticsEvent as se, WIDGET_NAME as d } from "./index2.js";
22
- import { getCreateCardPermissions as ce } from "./index5.js";
23
- import { useCreateCardCardholderOptions as le } from "./index6.js";
24
- import { useCreateCard as ue } from "../../data-access/dist/index2.js";
25
- import { useCreateDebitCardMutation as de } from "../../data-access/dist/index4.js";
26
- import { useCreateCardOrganizationQuery as fe } from "../../data-access/dist/index5.js";
19
+ import { CardFormatValue as l, buildCreateDebitCardRequest as u, createDebitCardReference as d, formatBusinessAddress as ne, isBusinessAddressComplete as re, isManualAddressComplete as ie } from "./index3.js";
20
+ import { resolveCreateCardFeatureLabels as ae } from "./index4.js";
21
+ import { CreateCardWidgetAnalyticsEvent as oe, WIDGET_NAME as f } from "./index2.js";
22
+ import { getCreateCardPermissions as se } from "./index5.js";
23
+ import { useCreateCardCardholderOptions as ce } from "./index6.js";
24
+ import { useCreateCard as le } from "../../data-access/dist/index2.js";
25
+ import { useCreateDebitCardMutation as ue } from "../../data-access/dist/index4.js";
26
+ import { useCreateCardOrganizationQuery as de } from "../../data-access/dist/index5.js";
27
27
  import "../../data-access/dist/index.js";
28
- import { useEffect as f, useMemo as p, useRef as m, useState as h } from "react";
28
+ import { useEffect as p, useMemo as m, useRef as fe, useState as h } from "react";
29
29
  import { Fragment as pe, jsx as g, jsxs as me } from "react/jsx-runtime";
30
30
  //#region ../../libs/tesouro-embedded-components-react/create-card-widget/feature/dist/index7.js
31
31
  var _ = {
@@ -52,53 +52,53 @@ function y(e, t) {
52
52
  let n = e.nickname?.trim(), r = v(e.accountNumber);
53
53
  return n && r ? `${n} (${r})` : n || r || t;
54
54
  }
55
- function b({ cardArtSrc: ee, labels: d, featureLabels: v, className: b, onClose: x, onCancel: ve, onViewCard: S }) {
56
- let C = r(), { isReady: w } = ue(), { initResponse: T, organizationId: E } = a(), D = p(() => ce(T?.scopes), [T?.scopes]), O = oe(v), k = {
55
+ function b({ cardArtSrc: ee, labels: f, featureLabels: v, className: b, onClose: x, onCancel: ve, onViewCard: S }) {
56
+ let C = r(), { isReady: w } = le(), { initResponse: T, organizationId: E } = a(), D = m(() => se(T?.scopes), [T?.scopes]), O = ae(v), k = {
57
57
  ...o,
58
- ...d,
58
+ ...f,
59
59
  setup: {
60
60
  ...o.setup,
61
- ...d?.setup
61
+ ...f?.setup
62
62
  }
63
- }, ye = p(() => [{
63
+ }, ye = m(() => [{
64
64
  value: l.Virtual,
65
65
  label: k.setup.cardFormatVirtual
66
66
  }, {
67
67
  value: l.Physical,
68
68
  label: k.setup.cardFormatPhysical
69
- }], [k.setup.cardFormatPhysical, k.setup.cardFormatVirtual]), be = p(() => i(), []), [xe, A] = h(s.Setup), [j, M] = h(null), [N, P] = h(null), [Se, F] = h(null), [I, L] = h(null), [R, z] = h(_), [B, V] = h(null), [H, U] = h(null), W = () => {
69
+ }], [k.setup.cardFormatPhysical, k.setup.cardFormatVirtual]), be = m(() => i(), []), [xe, A] = h(s.Setup), [j, M] = h(null), [N, P] = h(null), [Se, F] = h(null), [I, L] = h(null), [R, z] = h(_), [B, V] = h(null), [H, U] = h(null), W = () => {
70
70
  M(null), P(null), F(null), L(null), z(_), V(null), U(null), A(s.Setup);
71
- }, G = m(E);
71
+ }, G = fe(E);
72
72
  E && E !== G.current && (G.current = E, W());
73
- let K = m(!0);
74
- f(() => (K.current = !0, () => {
73
+ let K = fe(!0);
74
+ p(() => (K.current = !0, () => {
75
75
  K.current = !1;
76
- }), []), f(() => {
77
- C(se.Mounted);
76
+ }), []), p(() => {
77
+ C(oe.Mounted);
78
78
  }, [C]);
79
- let { options: Ce, isError: q, refetch: we } = le({ enabled: w && D.canReadUsers && D.canReadRoles }), Te = fe({ enabled: w && D.canReadOrganization }), J = t({ enabled: w && D.canReadFundingAccounts }), Ee = de(), Y = !!J.isError && w && D.canReadFundingAccounts, X = p(() => Y ? [] : (J.data?.data ?? []).map((e) => ({
79
+ let { options: Ce, isError: q, refetch: we } = ce({ enabled: w && D.canReadUsers && D.canReadRoles }), Te = de({ enabled: w && D.canReadOrganization }), J = t({ enabled: w && D.canReadFundingAccounts }), Ee = ue(), Y = !!J.isError && w && D.canReadFundingAccounts, X = m(() => Y ? [] : (J.data?.data ?? []).map((e) => ({
80
80
  value: e.id,
81
81
  label: y(e, O.untitledFundingAccount)
82
82
  })), [
83
83
  J.data?.data,
84
84
  O.untitledFundingAccount,
85
85
  Y
86
- ]), Z = Se ?? (X.length === 1 ? X[0].value : null), Q = Te.data?.address, De = re(Q), Oe = ie(Q), $ = N === l.Physical, ke = $ && I === c.BusinessAddress && !!De, Ae = $ && I === c.DifferentAddress, je = Y || X.length > 0, Me = !w || !D.canIssue || Ee.isPending || q || Y || !j || !N || !Z || N === l.Physical && (!I || I === c.BusinessAddress && !Oe || I === c.DifferentAddress && !ae(R)), Ne = p(() => {
86
+ ]), Z = Se ?? (X.length === 1 ? X[0].value : null), Q = Te.data?.address, De = ne(Q), Oe = re(Q), $ = N === l.Physical, ke = $ && I === c.BusinessAddress && !!De, Ae = $ && I === c.DifferentAddress, je = Y || X.length > 0, Me = !w || !D.canIssue || Ee.isPending || q || Y || !j || !N || !Z || N === l.Physical && (!I || I === c.BusinessAddress && !Oe || I === c.DifferentAddress && !ie(R)), Ne = m(() => {
87
87
  let e = _e(H, O);
88
88
  return {
89
- ...d,
89
+ ...f,
90
90
  success: {
91
- ...d?.success,
91
+ ...f?.success,
92
92
  ...e
93
93
  }
94
94
  };
95
95
  }, [
96
96
  H,
97
97
  O,
98
- d
98
+ f
99
99
  ]), Pe = async () => {
100
100
  if (!w) return;
101
- let t = ne(), n = u({
101
+ let t = d(), n = u({
102
102
  cardholderUserId: j,
103
103
  format: N,
104
104
  bankAccountId: Z,
@@ -180,9 +180,9 @@ function b({ cardArtSrc: ee, labels: d, featureLabels: v, className: b, onClose:
180
180
  } : void 0
181
181
  })] });
182
182
  }
183
- function x({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gatewayRouting: i, linkComponent: a, implementation: o, uiFramework: s, errorFallback: c, onError: te, analytics: l, ...u }) {
183
+ function x({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gatewayRouting: i, linkComponent: a, implementation: o, uiFramework: s, errorFallback: c, onError: te, analytics: l, disclosuresAcceptance: u, ...d }) {
184
184
  return /* @__PURE__ */ g(ee, {
185
- widgetName: d,
185
+ widgetName: f,
186
186
  baseUrl: e,
187
187
  widgetToken: t,
188
188
  organizationId: n,
@@ -194,7 +194,8 @@ function x({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gat
194
194
  errorFallback: c,
195
195
  onError: te,
196
196
  analytics: l,
197
- children: /* @__PURE__ */ g(b, { ...u })
197
+ disclosuresAcceptance: u,
198
+ children: /* @__PURE__ */ g(b, { ...d })
198
199
  });
199
200
  }
200
201
  //#endregion
@@ -201,7 +201,7 @@ function R() {
201
201
  onDeleteRule: (e) => void le(e)
202
202
  })] });
203
203
  }
204
- function z({ token: e, orgId: t, widgetToken: n, organizationId: r, baseUrl: i, configClient: a, gatewayRouting: s, linkComponent: c, implementation: l, uiFramework: u, errorFallback: d, onError: p } = {}) {
204
+ function z({ token: e, orgId: t, widgetToken: n, organizationId: r, baseUrl: i, configClient: a, gatewayRouting: s, linkComponent: c, implementation: l, uiFramework: u, errorFallback: d, onError: p, disclosuresAcceptance: m } = {}) {
205
205
  return /* @__PURE__ */ S(o, {
206
206
  widgetName: f,
207
207
  baseUrl: i,
@@ -214,6 +214,7 @@ function z({ token: e, orgId: t, widgetToken: n, organizationId: r, baseUrl: i,
214
214
  uiFramework: u,
215
215
  errorFallback: d,
216
216
  onError: p,
217
+ disclosuresAcceptance: m,
217
218
  children: /* @__PURE__ */ S(R, {})
218
219
  });
219
220
  }
@@ -29,7 +29,7 @@ function u({ labels: t, receiptUpload: r, receiptsContent: u, matchingContent: d
29
29
  requirementsContent: p ?? /* @__PURE__ */ l(o, {})
30
30
  });
31
31
  }
32
- function d({ baseUrl: e, widgetToken: n, organizationId: i, configClient: a, gatewayRouting: o, linkComponent: s, implementation: c, uiFramework: d, errorFallback: f, onError: p, analytics: m, ...h }) {
32
+ function d({ baseUrl: e, widgetToken: n, organizationId: i, configClient: a, gatewayRouting: o, linkComponent: s, implementation: c, uiFramework: d, errorFallback: f, onError: p, analytics: m, disclosuresAcceptance: h, ...g }) {
33
33
  return /* @__PURE__ */ l(t, {
34
34
  widgetName: r,
35
35
  baseUrl: e,
@@ -43,7 +43,8 @@ function d({ baseUrl: e, widgetToken: n, organizationId: i, configClient: a, gat
43
43
  errorFallback: f,
44
44
  onError: p,
45
45
  analytics: m,
46
- children: /* @__PURE__ */ l(u, { ...h })
46
+ disclosuresAcceptance: h,
47
+ children: /* @__PURE__ */ l(u, { ...g })
47
48
  });
48
49
  }
49
50
  //#endregion
@@ -46,7 +46,7 @@ function m({ isOpen: e, onClose: t, ...n }) {
46
46
  ...n
47
47
  }) : null;
48
48
  }
49
- function h({ baseUrl: e, widgetToken: t, organizationId: r, configClient: i, gatewayRouting: a, linkComponent: s, implementation: c, uiFramework: l, errorFallback: u, onError: f, isOpen: p, preSelectedReceiptIds: h, onClose: g, targetTransactionId: _, onSingleTransactionUpdate: v }) {
49
+ function h({ baseUrl: e, widgetToken: t, organizationId: r, configClient: i, gatewayRouting: a, linkComponent: s, implementation: c, uiFramework: l, errorFallback: u, onError: f, disclosuresAcceptance: p, isOpen: h, preSelectedReceiptIds: g, onClose: _, targetTransactionId: v, onSingleTransactionUpdate: y }) {
50
50
  return /* @__PURE__ */ d(n, {
51
51
  widgetName: o,
52
52
  baseUrl: e,
@@ -59,12 +59,13 @@ function h({ baseUrl: e, widgetToken: t, organizationId: r, configClient: i, gat
59
59
  uiFramework: l,
60
60
  errorFallback: u,
61
61
  onError: f,
62
+ disclosuresAcceptance: p,
62
63
  children: /* @__PURE__ */ d(m, {
63
- isOpen: p,
64
- preSelectedReceiptIds: h,
65
- onClose: g,
66
- targetTransactionId: _,
67
- onSingleTransactionUpdate: v
64
+ isOpen: h,
65
+ preSelectedReceiptIds: g,
66
+ onClose: _,
67
+ targetTransactionId: v,
68
+ onSingleTransactionUpdate: y
68
69
  })
69
70
  });
70
71
  }
@@ -63,7 +63,7 @@ function x() {
63
63
  })]
64
64
  })] });
65
65
  }
66
- function S({ token: e, orgId: t, widgetToken: n, organizationId: r, baseUrl: a, configClient: o, gatewayRouting: s, linkComponent: c, implementation: u, uiFramework: d, errorFallback: f, onError: p } = {}) {
66
+ function S({ token: e, orgId: t, widgetToken: n, organizationId: r, baseUrl: a, configClient: o, gatewayRouting: s, linkComponent: c, implementation: u, uiFramework: d, errorFallback: f, onError: p, disclosuresAcceptance: m } = {}) {
67
67
  return /* @__PURE__ */ h(i, {
68
68
  widgetName: l,
69
69
  baseUrl: a,
@@ -76,6 +76,7 @@ function S({ token: e, orgId: t, widgetToken: n, organizationId: r, baseUrl: a,
76
76
  uiFramework: d,
77
77
  errorFallback: f,
78
78
  onError: p,
79
+ disclosuresAcceptance: m,
79
80
  children: /* @__PURE__ */ h(x, {})
80
81
  });
81
82
  }
@@ -111,7 +111,7 @@ function b({ onEdit: r, onDelete: o, onAdd: b, screenLabels: x, formLabels: S, d
111
111
  })
112
112
  ] })] });
113
113
  }
114
- function x({ baseUrl: e, widgetToken: t, organizationId: n, configClient: i, gatewayRouting: a, linkComponent: s, implementation: c, uiFramework: l, analytics: u, errorFallback: d, onError: f, ...p }) {
114
+ function x({ baseUrl: e, widgetToken: t, organizationId: n, configClient: i, gatewayRouting: a, linkComponent: s, implementation: c, uiFramework: l, analytics: u, disclosuresAcceptance: d, errorFallback: f, onError: p, ...m }) {
115
115
  return /* @__PURE__ */ _(r, {
116
116
  widgetName: o,
117
117
  baseUrl: e,
@@ -123,9 +123,10 @@ function x({ baseUrl: e, widgetToken: t, organizationId: n, configClient: i, gat
123
123
  implementation: c,
124
124
  uiFramework: l,
125
125
  analytics: u,
126
- errorFallback: d,
127
- onError: f,
128
- children: /* @__PURE__ */ _(b, { ...p })
126
+ disclosuresAcceptance: d,
127
+ errorFallback: f,
128
+ onError: p,
129
+ children: /* @__PURE__ */ _(b, { ...m })
129
130
  });
130
131
  }
131
132
  //#endregion
@@ -29,7 +29,7 @@ function u({ faq: n = o, bankName: a, ...u }) {
29
29
  ...u
30
30
  });
31
31
  }
32
- function d({ baseUrl: e, widgetToken: t, organizationId: r, configClient: i, gatewayRouting: o, linkComponent: s, implementation: c, uiFramework: d, errorFallback: f, onError: p, analytics: m, ...h }) {
32
+ function d({ baseUrl: e, widgetToken: t, organizationId: r, configClient: i, gatewayRouting: o, linkComponent: s, implementation: c, uiFramework: d, errorFallback: f, onError: p, analytics: m, disclosuresAcceptance: h, ...g }) {
33
33
  return /* @__PURE__ */ l(n, {
34
34
  widgetName: a,
35
35
  baseUrl: e,
@@ -43,7 +43,8 @@ function d({ baseUrl: e, widgetToken: t, organizationId: r, configClient: i, gat
43
43
  errorFallback: f,
44
44
  onError: p,
45
45
  analytics: m,
46
- children: /* @__PURE__ */ l(u, { ...h })
46
+ disclosuresAcceptance: h,
47
+ children: /* @__PURE__ */ l(u, { ...g })
47
48
  });
48
49
  }
49
50
  //#endregion
@@ -212,7 +212,7 @@ function S({ counterpartFormLabels: t, counterpartMessageLabels: a, defaultTab:
212
212
  })
213
213
  ] });
214
214
  }
215
- function C({ baseUrl: e, widgetToken: n, organizationId: r, configClient: i, gatewayRouting: o, linkComponent: s, implementation: c, uiFramework: l, errorFallback: u, onError: d, analytics: f, ...p }) {
215
+ function C({ baseUrl: e, widgetToken: n, organizationId: r, configClient: i, gatewayRouting: o, linkComponent: s, implementation: c, uiFramework: l, errorFallback: u, onError: d, analytics: f, disclosuresAcceptance: p, ...m }) {
216
216
  return /* @__PURE__ */ b(t, {
217
217
  widgetName: a,
218
218
  baseUrl: e,
@@ -226,7 +226,8 @@ function C({ baseUrl: e, widgetToken: n, organizationId: r, configClient: i, gat
226
226
  errorFallback: u,
227
227
  onError: d,
228
228
  analytics: f,
229
- children: /* @__PURE__ */ b(S, { ...p })
229
+ disclosuresAcceptance: p,
230
+ children: /* @__PURE__ */ b(S, { ...m })
230
231
  });
231
232
  }
232
233
  //#endregion
@@ -19,7 +19,7 @@ function c(n) {
19
19
  i(r.Mounted);
20
20
  }, [i]), /* @__PURE__ */ o(t, { ...n });
21
21
  }
22
- function l({ baseUrl: e, widgetToken: t, organizationId: r, configClient: a, gatewayRouting: l, linkComponent: u, errorFallback: d, onError: f, finopsThemeColors: p, analytics: m, pageTitleComponent: h = s, uiFramework: g, ..._ }) {
22
+ function l({ baseUrl: e, widgetToken: t, organizationId: r, configClient: a, gatewayRouting: l, linkComponent: u, errorFallback: d, onError: f, finopsThemeColors: p, analytics: m, disclosuresAcceptance: h, pageTitleComponent: g = s, uiFramework: _, ...v }) {
23
23
  return /* @__PURE__ */ o(n, {
24
24
  widgetName: i,
25
25
  baseUrl: e,
@@ -32,10 +32,11 @@ function l({ baseUrl: e, widgetToken: t, organizationId: r, configClient: a, gat
32
32
  onError: f,
33
33
  finopsThemeColors: p,
34
34
  analytics: m,
35
- uiFramework: g,
35
+ disclosuresAcceptance: h,
36
+ uiFramework: _,
36
37
  children: /* @__PURE__ */ o(c, {
37
- ..._,
38
- pageTitleComponent: h
38
+ ...v,
39
+ pageTitleComponent: g
39
40
  })
40
41
  });
41
42
  }
@@ -22,7 +22,7 @@ function c({ labels: t, featureLabels: n }) {
22
22
  ...c
23
23
  })] });
24
24
  }
25
- function l({ baseUrl: e, widgetToken: r, organizationId: i, configClient: a, gatewayRouting: s, linkComponent: l, implementation: u, uiFramework: d, errorFallback: f, onError: p, analytics: m, ...h }) {
25
+ function l({ baseUrl: e, widgetToken: r, organizationId: i, configClient: a, gatewayRouting: s, linkComponent: l, implementation: u, uiFramework: d, errorFallback: f, onError: p, analytics: m, disclosuresAcceptance: h, ...g }) {
26
26
  return /* @__PURE__ */ o(t, {
27
27
  widgetName: n,
28
28
  baseUrl: e,
@@ -36,7 +36,8 @@ function l({ baseUrl: e, widgetToken: r, organizationId: i, configClient: a, gat
36
36
  errorFallback: f,
37
37
  onError: p,
38
38
  analytics: m,
39
- children: /* @__PURE__ */ o(c, { ...h })
39
+ disclosuresAcceptance: h,
40
+ children: /* @__PURE__ */ o(c, { ...g })
40
41
  });
41
42
  }
42
43
  //#endregion
@@ -103,7 +103,7 @@ function h({ pageSizeOptions: t = o, screenLabels: a, formLabels: h, detailsLabe
103
103
  })
104
104
  ] });
105
105
  }
106
- function g({ baseUrl: e, widgetToken: n, organizationId: r, configClient: i, gatewayRouting: o, linkComponent: s, implementation: c, uiFramework: l, errorFallback: u, onError: d, analytics: f, ...m }) {
106
+ function g({ baseUrl: e, widgetToken: n, organizationId: r, configClient: i, gatewayRouting: o, linkComponent: s, implementation: c, uiFramework: l, errorFallback: u, onError: d, analytics: f, disclosuresAcceptance: m, ...g }) {
107
107
  return /* @__PURE__ */ p(t, {
108
108
  widgetName: a,
109
109
  baseUrl: e,
@@ -117,7 +117,8 @@ function g({ baseUrl: e, widgetToken: n, organizationId: r, configClient: i, gat
117
117
  errorFallback: u,
118
118
  onError: d,
119
119
  analytics: f,
120
- children: /* @__PURE__ */ p(h, { ...m })
120
+ disclosuresAcceptance: m,
121
+ children: /* @__PURE__ */ p(h, { ...g })
121
122
  });
122
123
  }
123
124
  //#endregion
@@ -100,7 +100,7 @@ function v({ labels: t, featureLabels: o, contactUrl: v }) {
100
100
  isError: k
101
101
  });
102
102
  }
103
- function y({ baseUrl: e, widgetToken: n, organizationId: r, configClient: i, gatewayRouting: a, linkComponent: s, implementation: c, uiFramework: l, errorFallback: u, onError: d, analytics: p, ...m }) {
103
+ function y({ baseUrl: e, widgetToken: n, organizationId: r, configClient: i, gatewayRouting: a, linkComponent: s, implementation: c, uiFramework: l, errorFallback: u, onError: d, analytics: p, disclosuresAcceptance: m, ...h }) {
104
104
  return /* @__PURE__ */ f(t, {
105
105
  widgetName: o,
106
106
  baseUrl: e,
@@ -114,7 +114,8 @@ function y({ baseUrl: e, widgetToken: n, organizationId: r, configClient: i, gat
114
114
  errorFallback: u,
115
115
  onError: d,
116
116
  analytics: p,
117
- children: /* @__PURE__ */ f(v, { ...m })
117
+ disclosuresAcceptance: m,
118
+ children: /* @__PURE__ */ f(v, { ...h })
118
119
  });
119
120
  }
120
121
  //#endregion
@@ -112,7 +112,7 @@ function C({ labels: t, featureLabels: o, acceptInviteRedirectUri: m, helpContac
112
112
  onSectionChange: W
113
113
  });
114
114
  }
115
- function w({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gatewayRouting: i, linkComponent: a, implementation: s, uiFramework: c, errorFallback: l, onError: u, finopsThemeColors: d, analytics: f, ...p }) {
115
+ function w({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gatewayRouting: i, linkComponent: a, implementation: s, uiFramework: c, errorFallback: l, onError: u, finopsThemeColors: d, analytics: f, disclosuresAcceptance: p, ...h }) {
116
116
  return /* @__PURE__ */ b(o, {
117
117
  widgetName: m,
118
118
  baseUrl: e,
@@ -127,7 +127,8 @@ function w({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gat
127
127
  onError: u,
128
128
  finopsThemeColors: d,
129
129
  analytics: f,
130
- children: /* @__PURE__ */ b(C, { ...p })
130
+ disclosuresAcceptance: p,
131
+ children: /* @__PURE__ */ b(C, { ...h })
131
132
  });
132
133
  }
133
134
  //#endregion
@@ -21,9 +21,9 @@ import { Scope as An } from "./lib/scopes.js";
21
21
  import { getAllPagesNextPageParam as jn, getAllPagesNextPaginationTokenParam as Mn, isAllPagesResolving as Nn, useAutoFetchNextPage as Pn } from "./lib/allPages.js";
22
22
  import { useAllBankAccountsQuery as Fn } from "./lib/bank-account/useAllBankAccountsQuery.js";
23
23
  import { useAllExternalBankAccountsQuery as In } from "./lib/external-bank-account/useAllExternalBankAccountsQuery.js";
24
- import { useLedgerAccountsQuery as Ln } from "./lib/reference-data/useLedgerAccountsQuery.js";
25
- import { usePaymentTermsQuery as Rn } from "./lib/reference-data/usePaymentTermsQuery.js";
26
- import { useAllOrganizationRolesQuery as zn } from "./lib/role/useAllOrganizationRolesQuery.js";
27
- import { useRolePermissionsQueries as Bn } from "./lib/role/useRolePermissionsQueries.js";
28
- import { useAllOrganizationUsersQuery as Vn } from "./lib/user/useAllOrganizationUsersQuery.js";
29
- export { s as EmbedApiProvider, An as Scope, d as bulkUpdateDepartmentMembers, f as bulkUpdateLocationMembers, p as bulkUpdateRoleMembers, i as cloneEmbeddedClient, we as connectExternalBankAccountMutation, Te as createAchMoneyMovementMutation, Ee as createApplicationMutation, De as createBankAccountMutation, Oe as createBookTransferMutation, ke as createDebitCardMutation, m as createDepartment, a as createEmbeddedClient, h as createLocation, g as createUser, _ as deactivateDepartment, v as deactivateLocation, Ae as deleteApprovalPoliciesIdMutation, y as deleteCounterpartsId, b as deleteCounterpartsIdBankAccountsId, x as deleteFilesId, je as deleteLedgerAccountsIdMutation, S as deleteMeasureUnitsId, C as deleteProductsId, Me as deleteReceiptsIdMutation, w as deleteReceivablesId, T as deleteTagsId, Ne as disableUserMutation, E as downloadBankAccountTransactions, Se as fetchWidgetInit, jn as getAllPagesNextPageParam, Mn as getAllPagesNextPaginationTokenParam, Pe as getAnalyticsPayablesOptions, Fe as getAnalyticsReceivablesOptions, D as getApplicationStatus, Ie as getApplicationStatusOptions, O as getApprovalPolicies, Le as getApprovalPoliciesOptions, Re as getApprovalPoliciesQueryKey, ze as getApprovalRequestsQueryKey, k as getBankAccountAccess, Be as getBankAccountAccessQueryKey, Ve as getBankAccountOptions, He as getBankAccountQueryKey, Ue as getBankAccountTransactionsOptions, We as getBankAccountTransfersOptions, Ge as getBankAccountTransfersQueryKey, Ke as getBankAccountsQueryKey, qe as getCounterpartsIdAddressesOptions, Je as getCounterpartsIdAddressesQueryKey, Ye as getCounterpartsIdBankAccountsOptions, Xe as getCounterpartsIdBankAccountsQueryKey, Ze as getCounterpartsIdOptions, Qe as getCounterpartsIdQueryKey, $e as getCounterpartsOptions, et as getCounterpartsQueryKey, tt as getCreditCardByIdOptions, nt as getCreditCardsOptions, rt as getDebitCardByIdOptions, it as getDebitCardsOptions, at as getDebitCardsQueryKey, A as getDepartment, ot as getDepartmentOptions, st as getDepartmentQueryKey, j as getDisclosures, ct as getEntitiesIdSettingsOptions, lt as getEntitiesIdSettingsQueryKey, ut as getEntitiesMeOptions, dt as getEntityUsersMyEntityOptions, ft as getEntityUsersOptions, M as getExternalBankAccountAccess, pt as getExternalBankAccountAccessQueryKey, mt as getExternalBankAccountsOptions, ht as getExternalBankAccountsQueryKey, gt as getLedgerAccountsQueryKey, N as getLocation, _t as getLocationOptions, vt as getLocationQueryKey, yt as getMeasureUnitsOptions, bt as getMeasureUnitsQueryKey, xt as getOrganizationOptions, St as getPayablesAnalyticsQueryKey, Ct as getPayablesIdHistoryQueryKey, P as getPayablesIdLineItems, wt as getPayablesIdLineItemsOptions, Tt as getPayablesIdLineItemsQueryKey, Et as getPayablesIdOptions, Dt as getPayablesIdQueryKey, Ot as getPayablesIdSuggestionsOptions, kt as getPayablesOptions, At as getPayablesQueryKey, jt as getProductsIdOptions, Mt as getProductsIdQueryKey, Nt as getProductsOptions, Pt as getProductsQueryKey, Ft as getReceiptsIdQueryKey, It as getReceiptsOptions, Lt as getReceiptsQueryKey, Rt as getReceivablesIdHistoryOptions, zt as getReceivablesIdHistoryQueryKey, Bt as getReceivablesIdMailsOptions, Vt as getReceivablesIdMailsQueryKey, Ht as getReceivablesIdOptions, Ut as getReceivablesIdPdfLinkOptions, Wt as getReceivablesIdPdfLinkQueryKey, Gt as getReceivablesIdQueryKey, Kt as getReceivablesOptions, qt as getReceivablesQueryKey, Jt as getTagsOptions, Yt as getTagsQueryKey, Xt as getTransactionsIdQueryKey, Zt as getTransactionsOptions, Qt as getTransactionsQueryKey, $t as getTransactionsValidationsOptions, en as getTransactionsValidationsQueryKey, F as getUsers, tn as getUsersOptions, nn as getUsersQueryKey, rn as grantBankAccountAccessMutation, an as grantExternalBankAccountAccessMutation, Ce as hasAnyScope, e as invalidateAllClients, Nn as isAllPagesResolving, Dn as isApiNotFoundError, o as isWidgetGatewayHost, on as linkExternalBankAccountMutation, I as listDepartments, sn as listDepartmentsOptions, cn as listDepartmentsQueryKey, L as listLocations, ln as listLocationsOptions, un as listLocationsQueryKey, R as listRoles, dn as listRolesQueryKey, z as manageBankAccountAccess, l as optionalOrganizationHeaders, u as organizationHeaders, fn as patchApprovalPoliciesIdMutation, B as patchCounterpartsId, V as patchCounterpartsIdAddressesId, H as patchCounterpartsIdBankAccountsId, pn as patchEntitiesIdSettingsMutation, mn as patchLedgerAccountsIdMutation, U as patchMeasureUnitsId, W as patchPayablesId, G as patchProductsId, hn as patchReceiptsIdMutation, K as patchReceivablesId, q as patchTagsId, J as postApiWidgetGatewayDisclosureAcceptance, gn as postApprovalPoliciesMutation, Y as postCounterparts, X as postCounterpartsIdAddresses, Z as postCounterpartsIdBankAccounts, Q as postCounterpartsIdBankAccountsIdMakeDefault, _n as postLedgerAccountsMutation, $ as postMeasureUnits, ee as postPayables, te as postPayablesIdAttachFile, ne as postPayablesIdSubmitForApproval, re as postPayablesIdValidate, ie as postPayablesUploadFromFile, ae as postProducts, oe as postReceivables, se as postReceivablesIdAccept, ce as postReceivablesIdCancel, le as postReceivablesIdClone, ue as postReceivablesIdDecline, de as postReceivablesIdIssue, fe as postReceivablesIdMarkAsPaid, pe as postReceivablesIdMarkAsPartiallyPaid, me as postReceivablesIdMarkAsUncollectible, he as postReceivablesIdSend, ge as postTags, _e as putPayablesIdLineItems, ve as putReceivablesIdLineItems, vn as putTransactionsValidationsMutation, t as registerQueryClient, n as setAllClientsQueriesData, yn as submitApplicationMutation, bn as unlinkExternalBankAccountMutation, r as unregisterQueryClient, xn as updateApplicationMutation, Sn as updateBankAccountMutation, ye as updateDepartment, Cn as updateExternalBankAccountMutation, be as updateLocation, xe as updateUser, Fn as useAllBankAccountsQuery, In as useAllExternalBankAccountsQuery, zn as useAllOrganizationRolesQuery, Vn as useAllOrganizationUsersQuery, Pn as useAutoFetchNextPage, En as useCurrentUserQuery, c as useEmbedApi, On as useGetUserDataQuery, Ln as useLedgerAccountsQuery, Rn as usePaymentTermsQuery, Bn as useRolePermissionsQueries, kn as useUpsertUserDataMutation, wn as validateExternalBankAccountMutation, Tn as withAuthEpoch };
24
+ import { useAllLedgerAccountsQuery as Ln, useLedgerAccountsQuery as Rn } from "./lib/reference-data/useLedgerAccountsQuery.js";
25
+ import { usePaymentTermsQuery as zn } from "./lib/reference-data/usePaymentTermsQuery.js";
26
+ import { useAllOrganizationRolesQuery as Bn } from "./lib/role/useAllOrganizationRolesQuery.js";
27
+ import { useRolePermissionsQueries as Vn } from "./lib/role/useRolePermissionsQueries.js";
28
+ import { useAllOrganizationUsersQuery as Hn } from "./lib/user/useAllOrganizationUsersQuery.js";
29
+ export { s as EmbedApiProvider, An as Scope, d as bulkUpdateDepartmentMembers, f as bulkUpdateLocationMembers, p as bulkUpdateRoleMembers, i as cloneEmbeddedClient, we as connectExternalBankAccountMutation, Te as createAchMoneyMovementMutation, Ee as createApplicationMutation, De as createBankAccountMutation, Oe as createBookTransferMutation, ke as createDebitCardMutation, m as createDepartment, a as createEmbeddedClient, h as createLocation, g as createUser, _ as deactivateDepartment, v as deactivateLocation, Ae as deleteApprovalPoliciesIdMutation, y as deleteCounterpartsId, b as deleteCounterpartsIdBankAccountsId, x as deleteFilesId, je as deleteLedgerAccountsIdMutation, S as deleteMeasureUnitsId, C as deleteProductsId, Me as deleteReceiptsIdMutation, w as deleteReceivablesId, T as deleteTagsId, Ne as disableUserMutation, E as downloadBankAccountTransactions, Se as fetchWidgetInit, jn as getAllPagesNextPageParam, Mn as getAllPagesNextPaginationTokenParam, Pe as getAnalyticsPayablesOptions, Fe as getAnalyticsReceivablesOptions, D as getApplicationStatus, Ie as getApplicationStatusOptions, O as getApprovalPolicies, Le as getApprovalPoliciesOptions, Re as getApprovalPoliciesQueryKey, ze as getApprovalRequestsQueryKey, k as getBankAccountAccess, Be as getBankAccountAccessQueryKey, Ve as getBankAccountOptions, He as getBankAccountQueryKey, Ue as getBankAccountTransactionsOptions, We as getBankAccountTransfersOptions, Ge as getBankAccountTransfersQueryKey, Ke as getBankAccountsQueryKey, qe as getCounterpartsIdAddressesOptions, Je as getCounterpartsIdAddressesQueryKey, Ye as getCounterpartsIdBankAccountsOptions, Xe as getCounterpartsIdBankAccountsQueryKey, Ze as getCounterpartsIdOptions, Qe as getCounterpartsIdQueryKey, $e as getCounterpartsOptions, et as getCounterpartsQueryKey, tt as getCreditCardByIdOptions, nt as getCreditCardsOptions, rt as getDebitCardByIdOptions, it as getDebitCardsOptions, at as getDebitCardsQueryKey, A as getDepartment, ot as getDepartmentOptions, st as getDepartmentQueryKey, j as getDisclosures, ct as getEntitiesIdSettingsOptions, lt as getEntitiesIdSettingsQueryKey, ut as getEntitiesMeOptions, dt as getEntityUsersMyEntityOptions, ft as getEntityUsersOptions, M as getExternalBankAccountAccess, pt as getExternalBankAccountAccessQueryKey, mt as getExternalBankAccountsOptions, ht as getExternalBankAccountsQueryKey, gt as getLedgerAccountsQueryKey, N as getLocation, _t as getLocationOptions, vt as getLocationQueryKey, yt as getMeasureUnitsOptions, bt as getMeasureUnitsQueryKey, xt as getOrganizationOptions, St as getPayablesAnalyticsQueryKey, Ct as getPayablesIdHistoryQueryKey, P as getPayablesIdLineItems, wt as getPayablesIdLineItemsOptions, Tt as getPayablesIdLineItemsQueryKey, Et as getPayablesIdOptions, Dt as getPayablesIdQueryKey, Ot as getPayablesIdSuggestionsOptions, kt as getPayablesOptions, At as getPayablesQueryKey, jt as getProductsIdOptions, Mt as getProductsIdQueryKey, Nt as getProductsOptions, Pt as getProductsQueryKey, Ft as getReceiptsIdQueryKey, It as getReceiptsOptions, Lt as getReceiptsQueryKey, Rt as getReceivablesIdHistoryOptions, zt as getReceivablesIdHistoryQueryKey, Bt as getReceivablesIdMailsOptions, Vt as getReceivablesIdMailsQueryKey, Ht as getReceivablesIdOptions, Ut as getReceivablesIdPdfLinkOptions, Wt as getReceivablesIdPdfLinkQueryKey, Gt as getReceivablesIdQueryKey, Kt as getReceivablesOptions, qt as getReceivablesQueryKey, Jt as getTagsOptions, Yt as getTagsQueryKey, Xt as getTransactionsIdQueryKey, Zt as getTransactionsOptions, Qt as getTransactionsQueryKey, $t as getTransactionsValidationsOptions, en as getTransactionsValidationsQueryKey, F as getUsers, tn as getUsersOptions, nn as getUsersQueryKey, rn as grantBankAccountAccessMutation, an as grantExternalBankAccountAccessMutation, Ce as hasAnyScope, e as invalidateAllClients, Nn as isAllPagesResolving, Dn as isApiNotFoundError, o as isWidgetGatewayHost, on as linkExternalBankAccountMutation, I as listDepartments, sn as listDepartmentsOptions, cn as listDepartmentsQueryKey, L as listLocations, ln as listLocationsOptions, un as listLocationsQueryKey, R as listRoles, dn as listRolesQueryKey, z as manageBankAccountAccess, l as optionalOrganizationHeaders, u as organizationHeaders, fn as patchApprovalPoliciesIdMutation, B as patchCounterpartsId, V as patchCounterpartsIdAddressesId, H as patchCounterpartsIdBankAccountsId, pn as patchEntitiesIdSettingsMutation, mn as patchLedgerAccountsIdMutation, U as patchMeasureUnitsId, W as patchPayablesId, G as patchProductsId, hn as patchReceiptsIdMutation, K as patchReceivablesId, q as patchTagsId, J as postApiWidgetGatewayDisclosureAcceptance, gn as postApprovalPoliciesMutation, Y as postCounterparts, X as postCounterpartsIdAddresses, Z as postCounterpartsIdBankAccounts, Q as postCounterpartsIdBankAccountsIdMakeDefault, _n as postLedgerAccountsMutation, $ as postMeasureUnits, ee as postPayables, te as postPayablesIdAttachFile, ne as postPayablesIdSubmitForApproval, re as postPayablesIdValidate, ie as postPayablesUploadFromFile, ae as postProducts, oe as postReceivables, se as postReceivablesIdAccept, ce as postReceivablesIdCancel, le as postReceivablesIdClone, ue as postReceivablesIdDecline, de as postReceivablesIdIssue, fe as postReceivablesIdMarkAsPaid, pe as postReceivablesIdMarkAsPartiallyPaid, me as postReceivablesIdMarkAsUncollectible, he as postReceivablesIdSend, ge as postTags, _e as putPayablesIdLineItems, ve as putReceivablesIdLineItems, vn as putTransactionsValidationsMutation, t as registerQueryClient, n as setAllClientsQueriesData, yn as submitApplicationMutation, bn as unlinkExternalBankAccountMutation, r as unregisterQueryClient, xn as updateApplicationMutation, Sn as updateBankAccountMutation, ye as updateDepartment, Cn as updateExternalBankAccountMutation, be as updateLocation, xe as updateUser, Fn as useAllBankAccountsQuery, In as useAllExternalBankAccountsQuery, Ln as useAllLedgerAccountsQuery, Bn as useAllOrganizationRolesQuery, Hn as useAllOrganizationUsersQuery, Pn as useAutoFetchNextPage, En as useCurrentUserQuery, c as useEmbedApi, On as useGetUserDataQuery, Rn as useLedgerAccountsQuery, zn as usePaymentTermsQuery, Vn as useRolePermissionsQueries, kn as useUpsertUserDataMutation, wn as validateExternalBankAccountMutation, Tn as withAuthEpoch };
@@ -4,20 +4,62 @@
4
4
  "use client";
5
5
  import { useEmbedApi as e } from "../EmbedApiContext.js";
6
6
  import { organizationHeaders as t } from "../organizationHeaders.js";
7
- import { getLedgerAccountsOptions as n } from "../rest/@tanstack/react-query.gen.js";
8
- import { withAuthEpoch as r } from "../withAuthEpoch.js";
9
- import { useQuery as i } from "@tanstack/react-query";
7
+ import { getLedgerAccounts as n } from "../rest/sdk.gen.js";
8
+ import { getLedgerAccountsOptions as r } from "../rest/@tanstack/react-query.gen.js";
9
+ import { withAuthEpoch as i } from "../withAuthEpoch.js";
10
+ import { getAllPagesNextPaginationTokenParam as a, isAllPagesResolving as o, useAutoFetchNextPage as s } from "../allPages.js";
11
+ import { useMemo as c } from "react";
12
+ import { useInfiniteQuery as l, useQuery as u } from "@tanstack/react-query";
10
13
  //#region ../../libs/tesouro-embedded-components-react/shared/data-access/dist/lib/reference-data/useLedgerAccountsQuery.js
11
- function a({ enabled: a, ...o } = {}) {
12
- let { client: s, organizationId: c, widgetToken: l, authEpoch: u } = e(), d = !!(c && l) && (a === !0 || a === void 0), f = n({
13
- client: s,
14
- headers: t(c),
15
- query: o
14
+ var d = 250;
15
+ function f({ enabled: n, ...a } = {}) {
16
+ let { client: o, organizationId: s, widgetToken: c, authEpoch: l } = e(), d = !!(s && c) && (n === !0 || n === void 0), f = r({
17
+ client: o,
18
+ headers: t(s),
19
+ query: a
16
20
  });
17
- return i({
18
- ...r(f, u),
21
+ return u({
22
+ ...i(f, l),
19
23
  enabled: d
20
24
  });
21
25
  }
26
+ function p({ enabled: u } = {}) {
27
+ let { client: f, organizationId: p, widgetToken: m, authEpoch: h } = e(), g = t(p), _ = !!(p && m) && (u === !0 || u === void 0), v = r({
28
+ client: f,
29
+ headers: g,
30
+ query: { limit: d }
31
+ }), y = l({
32
+ queryKey: [...i(v, h).queryKey, "all"],
33
+ enabled: _,
34
+ initialPageParam: void 0,
35
+ queryFn: async ({ signal: e, pageParam: t }) => {
36
+ let { data: r } = await n({
37
+ client: f,
38
+ headers: g,
39
+ query: {
40
+ limit: d,
41
+ ...t ? { pagination_token: t } : {}
42
+ },
43
+ signal: e,
44
+ throwOnError: !0
45
+ });
46
+ return r;
47
+ },
48
+ getNextPageParam: a
49
+ });
50
+ s(y, _);
51
+ let b = c(() => {
52
+ if (y.data) return {
53
+ data: y.data.pages.flatMap((e) => e.data ?? []),
54
+ next_pagination_token: void 0,
55
+ prev_pagination_token: void 0
56
+ };
57
+ }, [y.data]);
58
+ return {
59
+ ...y,
60
+ data: b,
61
+ isResolving: o(y)
62
+ };
63
+ }
22
64
  //#endregion
23
- export { a as useLedgerAccountsQuery };
65
+ export { p as useAllLedgerAccountsQuery, f as useLedgerAccountsQuery };
@@ -11,10 +11,10 @@ import { WidgetProvider as l } from "./lib/WidgetProvider/WidgetProvider.js";
11
11
  import { WidgetTokenRefreshProvider as u } from "./lib/WidgetProvider/WidgetTokenRefreshProvider.js";
12
12
  import { useOptionalWidgetToken as d, useWidgetToken as f } from "./lib/WidgetProvider/useWidgetToken.js";
13
13
  import { RefreshingRootWidgetProvider as p } from "./lib/WidgetProvider/RefreshingRootWidgetProvider.js";
14
- import { useOwnWidgetConfig as m, useRefetchWidget as h, useWidgetConfig as g, useWidgetError as _, useWidgetInitStaleForToken as v, useWidgetLoading as y } from "./lib/WidgetProvider/hooks.js";
14
+ import { useDisclosuresAcceptanceSurface as m, useOwnWidgetConfig as h, useRefetchWidget as g, useWidgetConfig as _, useWidgetError as v, useWidgetInitStaleForToken as y, useWidgetLoading as b } from "./lib/WidgetProvider/hooks.js";
15
15
  import "./lib/WidgetProvider/index.js";
16
- import { getNaicsOptions as b } from "./lib/naicsCodeMap.js";
17
- import { CardProgram as x } from "./lib/card/cardProgram.js";
18
- import { CARD_STATUS_LABELS_EN as S, CARD_STATUS_TONE as C, CARD_TYPE_LABELS_EN as w } from "./lib/card/cardPresentation.js";
16
+ import { getNaicsOptions as x } from "./lib/naicsCodeMap.js";
17
+ import { CardProgram as S } from "./lib/card/cardProgram.js";
18
+ import { CARD_STATUS_LABELS_EN as C, CARD_STATUS_TONE as w, CARD_TYPE_LABELS_EN as T } from "./lib/card/cardPresentation.js";
19
19
  import "./lib/analytics/index.js";
20
- export { S as CARD_STATUS_LABELS_EN, C as CARD_STATUS_TONE, w as CARD_TYPE_LABELS_EN, x as CardProgram, t as Implementation, p as RefreshingRootWidgetProvider, s as RootWidgetProvider, l as WidgetProvider, u as WidgetTokenRefreshProvider, e as cloneEmbeddedClient, n as getGlobalWidgetConfig, a as getGlobalWidgetInitState, b as getNaicsOptions, r as setGlobalWidgetConfig, o as subscribeToGlobalWidgetInitState, i as updateGlobalWidgetConfig, c as useAnalyticsTrack, d as useOptionalWidgetToken, m as useOwnWidgetConfig, h as useRefetchWidget, g as useWidgetConfig, _ as useWidgetError, v as useWidgetInitStaleForToken, y as useWidgetLoading, f as useWidgetToken };
20
+ export { C as CARD_STATUS_LABELS_EN, w as CARD_STATUS_TONE, T as CARD_TYPE_LABELS_EN, S as CardProgram, t as Implementation, p as RefreshingRootWidgetProvider, s as RootWidgetProvider, l as WidgetProvider, u as WidgetTokenRefreshProvider, e as cloneEmbeddedClient, n as getGlobalWidgetConfig, a as getGlobalWidgetInitState, x as getNaicsOptions, r as setGlobalWidgetConfig, o as subscribeToGlobalWidgetInitState, i as updateGlobalWidgetConfig, c as useAnalyticsTrack, m as useDisclosuresAcceptanceSurface, d as useOptionalWidgetToken, h as useOwnWidgetConfig, g as useRefetchWidget, _ as useWidgetConfig, v as useWidgetError, y as useWidgetInitStaleForToken, b as useWidgetLoading, f as useWidgetToken };