@tesouro/embedded-components-react 0.3.11 → 0.3.13

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 (81) hide show
  1. package/dist/index.d.ts +12 -0
  2. package/dist/index.js +1 -1
  3. package/dist/lib/BillPayWidget.js +1 -1
  4. package/dist/lib/CardsWidget.d.ts +12 -0
  5. package/dist/lib/CreateCardWidget.d.ts +12 -0
  6. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +8 -8
  7. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index14.js +13 -14
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index15.js +7 -46
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index16.js +54 -16
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index17.js +24 -52
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index18.js +61 -113
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index19.js +123 -13
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index20.js +11 -31
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index21.js +40 -50
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index22.js +51 -5
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index23.js +5 -72
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index24.js +71 -48
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js +48 -79
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index26.js +91 -33
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +33 -137
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index28.js +138 -67
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index29.js +63 -200
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index30.js +194 -184
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index31.js +180 -50
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index32.js +64 -12
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index33.js +12 -46
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index34.js +46 -30
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index35.js +26 -158
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index36.js +159 -31
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index37.js +32 -98
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index38.js +102 -13
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index39.js +13 -241
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index40.js +244 -4
  34. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index41.js +4 -29
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js +28 -81
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +77 -130
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js +145 -3
  38. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index45.js +3 -4
  39. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +2 -43
  40. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +45 -1
  41. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +1 -8
  42. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +6 -9
  43. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index50.js +9 -92
  44. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +94 -3
  45. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +3 -9
  46. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +7 -20
  47. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +14 -51
  48. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +59 -3
  49. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +3 -110
  50. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +107 -8
  51. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +8 -40
  52. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +38 -15
  53. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +18 -98
  54. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +92 -173
  55. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js +180 -4
  56. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js +5 -8
  57. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +6 -112
  58. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index65.js +114 -1
  59. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js +0 -24
  60. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index67.js +25 -0
  61. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index16.js +56 -18
  62. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.js +4 -1
  63. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index47.js +75 -46
  64. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index52.js +3 -2
  65. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index53.js +120 -115
  66. package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/index5.js +1 -2
  67. package/dist/libs/tesouro-embedded-components-react/create-card-widget/data-access/dist/index.js +3 -2
  68. package/dist/libs/tesouro-embedded-components-react/create-card-widget/data-access/dist/index5.js +19 -12
  69. package/dist/libs/tesouro-embedded-components-react/create-card-widget/data-access/dist/index6.js +22 -0
  70. package/dist/libs/tesouro-embedded-components-react/create-card-widget/feature/dist/index4.js +4 -1
  71. package/dist/libs/tesouro-embedded-components-react/create-card-widget/feature/dist/index5.js +0 -1
  72. package/dist/libs/tesouro-embedded-components-react/create-card-widget/feature/dist/index6.js +22 -37
  73. package/dist/libs/tesouro-embedded-components-react/create-card-widget/feature/dist/index7.js +167 -110
  74. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +18 -18
  75. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js +111 -104
  76. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +144 -128
  77. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/user/useAllOrganizationUsersQuery.js +20 -18
  78. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  79. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index7.js +1 -1
  80. package/dist/packages/shared-ui-shadcn/dist/index.js +1998 -1935
  81. package/package.json +1 -1
@@ -3,38 +3,41 @@
3
3
  "use client";
4
4
  "use client";
5
5
  import { toast as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
6
- import { useAllBankAccountsQuery as t } from "../../../shared/data-access/dist/lib/bank-account/useAllBankAccountsQuery.js";
6
+ import { Scope as t } from "../../../shared/data-access/dist/lib/scopes.js";
7
+ import { useAllBankAccountsQuery as n } from "../../../shared/data-access/dist/lib/bank-account/useAllBankAccountsQuery.js";
8
+ import { useAllOrganizationUsersQuery as r } from "../../../shared/data-access/dist/lib/user/useAllOrganizationUsersQuery.js";
7
9
  import "../../../shared/data-access/dist/index.js";
8
- import { EmbeddedToaster as n } from "../../../shared/ui/dist/lib/EmbeddedToaster.js";
10
+ import { EmbeddedToaster as i } from "../../../shared/ui/dist/lib/EmbeddedToaster.js";
9
11
  import "../../../shared/ui/dist/index.js";
10
- import { useAnalyticsTrack as r } from "../../../shared/feature/dist/lib/analytics/hooks.js";
11
- import { WidgetProvider as ee } from "../../../shared/feature/dist/lib/WidgetProvider/WidgetProvider.js";
12
- import { getStateOptions as i } from "../../../shared/util/dist/lib/usStates.js";
13
- import { useWidgetConfig as a } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
12
+ import { useAnalyticsTrack as a } from "../../../shared/feature/dist/lib/analytics/hooks.js";
13
+ import { WidgetProvider as o } from "../../../shared/feature/dist/lib/WidgetProvider/WidgetProvider.js";
14
+ import { getStateOptions as s } from "../../../shared/util/dist/lib/usStates.js";
15
+ import { useWidgetConfig as c } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
14
16
  import "../../../shared/feature/dist/index.js";
15
- import { CREATE_CARD_WIDGET_LABELS_EN as o } from "../../ui/dist/lib/CreateCardWidget/labels.js";
16
- import { CreateCardView as s, MailingOptionValue as c } from "../../ui/dist/lib/CreateCardWidget/types.js";
17
- import { CreateCardWidget as te } from "../../ui/dist/lib/CreateCardWidget/CreateCardWidget.js";
17
+ import { CREATE_CARD_WIDGET_LABELS_EN as l } from "../../ui/dist/lib/CreateCardWidget/labels.js";
18
+ import { CreateCardView as u, MailingOptionValue as d } from "../../ui/dist/lib/CreateCardWidget/types.js";
19
+ import { CreateCardWidget as f } from "../../ui/dist/lib/CreateCardWidget/CreateCardWidget.js";
18
20
  import "../../ui/dist/index.js";
19
- import { CardFormatValue as l, buildCreateDebitCardRequest as u, createDebitCardReference as d, formatBusinessAddress as ne, isBusinessAddressComplete as re, isManualAddressComplete as ie } from "./index3.js";
21
+ import { CardFormatValue as p, buildCreateDebitCardRequest as ee, createDebitCardReference as te, formatBusinessAddress as ne, isBusinessAddressComplete as re, isManualAddressComplete as ie } from "./index3.js";
20
22
  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";
23
+ import { CreateCardWidgetAnalyticsEvent as oe, WIDGET_NAME as se } from "./index2.js";
24
+ import { getCreateCardPermissions as ce } from "./index5.js";
25
+ import { useCreateCardCardholderOptions as le } from "./index6.js";
26
+ import { useCreateCard as ue } from "../../data-access/dist/index2.js";
27
+ import { useCreateDebitCardMutation as de } from "../../data-access/dist/index4.js";
28
+ import { useManageDebitCardAccessMutation as fe } from "../../data-access/dist/index5.js";
29
+ import { useCreateCardOrganizationQuery as pe } from "../../data-access/dist/index6.js";
27
30
  import "../../data-access/dist/index.js";
28
- import { useEffect as p, useMemo as m, useRef as fe, useState as h } from "react";
29
- import { Fragment as pe, jsx as g, jsxs as me } from "react/jsx-runtime";
31
+ import { useEffect as m, useMemo as h, useRef as g, useState as _ } from "react";
32
+ import { Fragment as me, jsx as v, jsxs as he } from "react/jsx-runtime";
30
33
  //#region ../../libs/tesouro-embedded-components-react/create-card-widget/feature/dist/index7.js
31
- var _ = {
34
+ var ge = t.DebitCardIssueOrg, _e = {
32
35
  street: "",
33
36
  city: "",
34
37
  state: "",
35
38
  zip: ""
36
- }, he = 3e3, ge = 5e3;
37
- function _e(e, t) {
39
+ }, ve = 3e3, y = 5e3;
40
+ function ye(e, t) {
38
41
  if (e === "PENDING_ACTIVATION") return {
39
42
  title: t.success.pendingActivationTitle,
40
43
  description: t.success.pendingActivationDescription
@@ -44,159 +47,213 @@ function _e(e, t) {
44
47
  description: t.success.createdDescription
45
48
  };
46
49
  }
47
- function v(e) {
50
+ function b(e) {
48
51
  let t = e?.trim().slice(-4);
49
52
  return t ? `••••${t}` : void 0;
50
53
  }
51
- function y(e, t) {
52
- let n = e.nickname?.trim(), r = v(e.accountNumber);
54
+ function x(e, t) {
55
+ let n = e.nickname?.trim(), r = b(e.accountNumber);
53
56
  return n && r ? `${n} (${r})` : n || r || t;
54
57
  }
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 = {
58
+ function S({ cardArtSrc: t, labels: o, featureLabels: se, className: b, onClose: S, onCancel: C, onViewCard: w }) {
59
+ let T = a(), { isReady: E } = ue(), { initResponse: D, organizationId: O } = c(), k = h(() => ce(D?.scopes), [D?.scopes]), A = ae(se), j = {
60
+ ...l,
57
61
  ...o,
58
- ...f,
59
62
  setup: {
60
- ...o.setup,
61
- ...f?.setup
63
+ ...l.setup,
64
+ ...o?.setup
62
65
  }
63
- }, ye = m(() => [{
64
- value: l.Virtual,
65
- label: k.setup.cardFormatVirtual
66
+ }, be = h(() => [{
67
+ value: p.Virtual,
68
+ label: j.setup.cardFormatVirtual
66
69
  }, {
67
- value: l.Physical,
68
- label: k.setup.cardFormatPhysical
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
- M(null), P(null), F(null), L(null), z(_), V(null), U(null), A(s.Setup);
71
- }, G = fe(E);
72
- E && E !== G.current && (G.current = E, W());
73
- let K = fe(!0);
74
- p(() => (K.current = !0, () => {
75
- K.current = !1;
76
- }), []), p(() => {
77
- C(oe.Mounted);
78
- }, [C]);
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) => ({
70
+ value: p.Physical,
71
+ label: j.setup.cardFormatPhysical
72
+ }], [j.setup.cardFormatPhysical, j.setup.cardFormatVirtual]), xe = h(() => s(), []), [Se, M] = _(u.Setup), [N, P] = _(null), [F, I] = _(null), [Ce, L] = _(null), [R, z] = _(null), [B, V] = _(_e), [H, we] = _(null), [Te, Ee] = _(null), De = () => {
73
+ P(null), I(null), L(null), z(null), V(_e), we(null), Ee(null), M(u.Setup);
74
+ }, Oe = g(O);
75
+ O && O !== Oe.current && (Oe.current = O, De());
76
+ let U = g(!0);
77
+ m(() => (U.current = !0, () => {
78
+ U.current = !1;
79
+ }), []), m(() => {
80
+ T(oe.Mounted);
81
+ }, [T]);
82
+ let { options: ke, isError: W, refetch: Ae } = le({ enabled: E && k.canReadUsers }), G = r({
83
+ enabled: E && k.canReadUsers,
84
+ permissions: [ge]
85
+ }), je = h(() => !E || !k.canReadUsers || G.isResolving || G.isError ? [] : (G.data?.data ?? []).filter((e) => e.organizationId === O).map((e) => e.id), [
86
+ G.data?.data,
87
+ G.isError,
88
+ G.isResolving,
89
+ E,
90
+ O,
91
+ k.canReadUsers
92
+ ]), K = !!G.isError && E && k.canReadUsers, Me = E && k.canReadUsers && G.isResolving, q = g(null);
93
+ m(() => {
94
+ if (!K) {
95
+ q.current !== null && (e.dismiss(q.current), q.current = null);
96
+ return;
97
+ }
98
+ return q.current = e.error(A.toast.debitCardIssuersError, {
99
+ duration: Infinity,
100
+ action: {
101
+ label: A.toast.retry,
102
+ onClick: () => {
103
+ G.refetch();
104
+ }
105
+ }
106
+ }), () => {
107
+ q.current !== null && (e.dismiss(q.current), q.current = null);
108
+ };
109
+ }, [
110
+ G.refetch,
111
+ A.toast.debitCardIssuersError,
112
+ A.toast.retry,
113
+ K
114
+ ]);
115
+ let Ne = pe({ enabled: E && k.canReadOrganization }), J = n({ enabled: E && k.canReadFundingAccounts }), Pe = de(), Fe = fe(), Y = !!J.isError && E && k.canReadFundingAccounts, X = h(() => Y ? [] : (J.data?.data ?? []).map((e) => ({
80
116
  value: e.id,
81
- label: y(e, O.untitledFundingAccount)
117
+ label: x(e, A.untitledFundingAccount)
82
118
  })), [
83
119
  J.data?.data,
84
- O.untitledFundingAccount,
120
+ A.untitledFundingAccount,
85
121
  Y
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
- let e = _e(H, O);
122
+ ]), Z = Ce ?? (X.length === 1 ? X[0].value : null), Q = Ne.data?.address, Ie = ne(Q), Le = re(Q), $ = F === p.Physical, Re = $ && R === d.BusinessAddress && !!Ie, ze = $ && R === d.DifferentAddress, Be = Y || X.length > 0, Ve = !E || !k.canIssue || Pe.isPending || W || Y || K || Me || !N || !F || !Z || F === p.Physical && (!R || R === d.BusinessAddress && !Le || R === d.DifferentAddress && !ie(B)), He = h(() => {
123
+ let e = ye(Te, A);
88
124
  return {
89
- ...f,
125
+ ...o,
90
126
  success: {
91
- ...f?.success,
127
+ ...o?.success,
92
128
  ...e
93
129
  }
94
130
  };
95
131
  }, [
96
- H,
97
- O,
98
- f
99
- ]), Pe = async () => {
100
- if (!w) return;
101
- let t = d(), n = u({
102
- cardholderUserId: j,
103
- format: N,
132
+ Te,
133
+ A,
134
+ o
135
+ ]), Ue = async () => {
136
+ if (!E) return;
137
+ let t = te(), n = ee({
138
+ cardholderUserId: N,
139
+ format: F,
104
140
  bankAccountId: Z,
105
141
  reference: t,
106
- mailingOption: I,
142
+ mailingOption: R,
107
143
  orgAddress: Q,
108
- manualAddress: R
144
+ manualAddress: B
109
145
  });
110
146
  if (!n) return;
111
- A(s.Preparing);
112
- let r = e.loading(O.toast.creating);
147
+ M(u.Preparing);
148
+ let r = e.loading(A.toast.creating);
113
149
  try {
114
- let t = await Ee.mutateAsync({ body: n });
115
- if (!K.current) {
150
+ let t = await Pe.mutateAsync({ body: n });
151
+ if (!U.current) {
152
+ e.dismiss(r);
153
+ return;
154
+ }
155
+ if (we(t.id), Ee(t.cardStatus), je.length > 0) try {
156
+ await Fe.mutateAsync({ body: {
157
+ debitCardIds: [t.id],
158
+ type: "GRANT",
159
+ userIds: je
160
+ } });
161
+ } catch {
162
+ if (!U.current) {
163
+ e.dismiss(r);
164
+ return;
165
+ }
166
+ M(u.Success), e.warning(A.toast.companyAdminAccessWarning, {
167
+ id: r,
168
+ duration: y
169
+ });
170
+ return;
171
+ }
172
+ if (!U.current) {
116
173
  e.dismiss(r);
117
174
  return;
118
175
  }
119
- V(t.id), U(t.cardStatus), A(s.Success), e.success(O.toast.success, {
176
+ M(u.Success), e.success(A.toast.success, {
120
177
  id: r,
121
- duration: he
178
+ duration: ve
122
179
  });
123
180
  } catch {
124
- if (!K.current) {
181
+ if (!U.current) {
125
182
  e.dismiss(r);
126
183
  return;
127
184
  }
128
- A(s.Setup), e.error(O.toast.error, {
185
+ M(u.Setup), e.error(A.toast.error, {
129
186
  id: r,
130
- duration: ge
187
+ duration: y
131
188
  });
132
189
  }
133
190
  };
134
- return /* @__PURE__ */ me(pe, { children: [/* @__PURE__ */ g(n, {}), /* @__PURE__ */ g(te, {
135
- view: xe,
136
- cardArtSrc: ee,
137
- labels: Ne,
191
+ return /* @__PURE__ */ he(me, { children: [/* @__PURE__ */ v(i, {}), /* @__PURE__ */ v(f, {
192
+ view: Se,
193
+ cardArtSrc: t,
194
+ labels: He,
138
195
  className: b,
139
- cardholderOptions: Ce,
140
- selectedCardholder: j,
141
- onCardholderSelect: M,
142
- isCardholderError: q,
143
- onCardholderRetry: q ? we : void 0,
144
- cardFormatOptions: ye,
145
- selectedCardFormat: N,
196
+ cardholderOptions: ke,
197
+ selectedCardholder: N,
198
+ onCardholderSelect: P,
199
+ isCardholderError: W,
200
+ onCardholderRetry: W ? Ae : void 0,
201
+ cardFormatOptions: be,
202
+ selectedCardFormat: F,
146
203
  onCardFormatSelect: (e) => {
147
- P(e), L(null);
204
+ I(e), z(null);
148
205
  },
149
- isFundingAccountVisible: je,
206
+ isFundingAccountVisible: Be,
150
207
  fundingAccountOptions: X,
151
208
  selectedFundingAccount: Z,
152
- onFundingAccountSelect: F,
209
+ onFundingAccountSelect: L,
153
210
  isFundingAccountError: Y,
154
211
  onFundingAccountRetry: Y ? () => {
155
212
  J.refetch();
156
213
  } : void 0,
157
214
  isMailingSectionVisible: $,
158
- selectedMailingOption: I,
159
- onMailingOptionSelect: L,
160
- businessAddress: De,
161
- isBusinessAddressVisible: ke,
162
- isManualAddressVisible: Ae,
163
- manualAddress: R,
164
- onManualAddressChange: (e) => z((t) => ({
215
+ selectedMailingOption: R,
216
+ onMailingOptionSelect: z,
217
+ businessAddress: Ie,
218
+ isBusinessAddressVisible: Re,
219
+ isManualAddressVisible: ze,
220
+ manualAddress: B,
221
+ onManualAddressChange: (e) => V((t) => ({
165
222
  ...t,
166
223
  ...e
167
224
  })),
168
- stateOptions: be,
169
- isCreateDisabled: Me,
225
+ stateOptions: xe,
226
+ isCreateDisabled: Ve,
170
227
  onCreateClick: () => {
171
- Pe();
228
+ Ue();
172
229
  },
173
230
  onCancelClick: () => {
174
- ve?.(), x?.();
231
+ C?.(), S?.();
175
232
  },
176
- onClose: x,
177
- onCreateAnotherClick: W,
178
- onViewCardClick: S && B ? () => {
179
- S(B);
233
+ onClose: S,
234
+ onCreateAnotherClick: De,
235
+ onViewCardClick: w && H ? () => {
236
+ w(H);
180
237
  } : void 0
181
238
  })] });
182
239
  }
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
- return /* @__PURE__ */ g(ee, {
185
- widgetName: f,
240
+ function C({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gatewayRouting: i, linkComponent: a, implementation: s, uiFramework: c, errorFallback: l, onError: u, analytics: d, disclosuresAcceptance: f, ...p }) {
241
+ return /* @__PURE__ */ v(o, {
242
+ widgetName: se,
186
243
  baseUrl: e,
187
244
  widgetToken: t,
188
245
  organizationId: n,
189
246
  configClient: r,
190
247
  gatewayRouting: i,
191
248
  linkComponent: a,
192
- implementation: o,
193
- uiFramework: s,
194
- errorFallback: c,
195
- onError: te,
196
- analytics: l,
197
- disclosuresAcceptance: u,
198
- children: /* @__PURE__ */ g(b, { ...d })
249
+ implementation: s,
250
+ uiFramework: c,
251
+ errorFallback: l,
252
+ onError: u,
253
+ analytics: d,
254
+ disclosuresAcceptance: f,
255
+ children: /* @__PURE__ */ v(S, { ...p })
199
256
  });
200
257
  }
201
258
  //#endregion
202
- export { x as CreateCardWidget, y as formatFundingAccountLabel };
259
+ export { C as CreateCardWidget, x as formatFundingAccountLabel };
@@ -8,24 +8,24 @@ import { optionalOrganizationHeaders as d, organizationHeaders as f } from "./li
8
8
  import { bulkUpdateDepartmentMembers as p, bulkUpdateLocationMembers as m, bulkUpdateRoleMembers as h, createDepartment as g, createLocation as _, createUser as v, deactivateDepartment as y, deactivateLocation as b, deleteCounterpartsId as x, deleteCounterpartsIdBankAccountsId as S, deleteFilesId as C, deleteMeasureUnitsId as w, deletePayablesId as T, deleteProductsId as E, deleteReceivablesId as D, deleteTagsId as O, downloadBankAccountTransactions as k, getApplicationStatus as A, getApprovalPolicies as j, getBankAccountAccess as M, getDepartment as N, getExternalBankAccountAccess as P, getLocation as F, getPayablesId as I, getPayablesIdLineItems as L, getPaymentRecords as R, getUsers as z, listDepartments as B, listLocations as V, listRoles as H, manageBankAccountAccess as U, patchCounterpartsId as W, patchCounterpartsIdAddressesId as G, patchCounterpartsIdBankAccountsId as K, patchMeasureUnitsId as q, patchPayablesId as J, patchProductsId as Y, patchReceivablesId as X, patchTagsId as Z, postApprovalRequestsIdApprove as Q, postApprovalRequestsIdReject as $, postCounterparts as ee, postCounterpartsIdAddresses as te, postCounterpartsIdBankAccounts as ne, postCounterpartsIdBankAccountsIdMakeDefault as re, postMeasureUnits as ie, postPayables as ae, postPayablesIdApprovePaymentOperation as oe, postPayablesIdAttachFile as se, postPayablesIdCancel as ce, postPayablesIdMarkAsPaid as le, postPayablesIdReject as ue, postPayablesIdReopen as de, postPayablesIdSchedulePayment as fe, postPayablesIdSubmitForApproval as pe, postPayablesIdValidate as me, postPayablesUploadFromFile as he, postPaymentRecordsIdCancel as ge, postProducts as _e, postReceivables as ve, postReceivablesIdAccept as ye, postReceivablesIdCancel as be, postReceivablesIdClone as xe, postReceivablesIdDecline as Se, postReceivablesIdIssue as Ce, postReceivablesIdMarkAsPaid as we, postReceivablesIdMarkAsPartiallyPaid as Te, postReceivablesIdMarkAsUncollectible as Ee, postReceivablesIdSend as De, postTags as Oe, putPayablesIdLineItems as ke, putReceivablesIdLineItems as Ae, updateDepartment as je, updateLocation as Me, updateUser as Ne } from "./lib/rest/sdk.gen.js";
9
9
  import { fetchWidgetInit as Pe } from "./lib/fetchWidgetInit.js";
10
10
  import { hasAnyScope as Fe } from "./lib/hasAnyScope.js";
11
- import { connectExternalBankAccountMutation as Ie, createAchMoneyMovementMutation as Le, createApplicationMutation as Re, createBankAccountMutation as ze, createBookTransferMutation as Be, createDebitCardMutation as Ve, deleteApprovalPoliciesIdMutation as He, deleteLedgerAccountsIdMutation as Ue, deleteReceiptsIdMutation as We, disableUserMutation as Ge, getAnalyticsPayablesOptions as Ke, getAnalyticsReceivablesOptions as qe, getApplicationStatusOptions as Je, getApprovalPoliciesOptions as Ye, getApprovalPoliciesQueryKey as Xe, getApprovalRequestsOptions as Ze, getApprovalRequestsQueryKey as Qe, getBankAccountAccessQueryKey as $e, getBankAccountOptions as et, getBankAccountQueryKey as tt, getBankAccountTransactionsOptions as nt, getBankAccountTransfersOptions as rt, getBankAccountTransfersQueryKey as it, getBankAccountsQueryKey as at, getCounterpartsIdAddressesOptions as ot, getCounterpartsIdAddressesQueryKey as st, getCounterpartsIdBankAccountsOptions as ct, getCounterpartsIdBankAccountsQueryKey as lt, getCounterpartsIdOptions as ut, getCounterpartsIdQueryKey as dt, getCounterpartsOptions as ft, getCounterpartsQueryKey as pt, getCreditCardByIdOptions as mt, getCreditCardsOptions as ht, getDebitCardByIdOptions as gt, getDebitCardsOptions as _t, getDebitCardsQueryKey as vt, getDepartmentOptions as yt, getDepartmentQueryKey as bt, getEntitiesIdSettingsOptions as xt, getEntitiesIdSettingsQueryKey as St, getEntitiesMeOptions as Ct, getEntityUsersMyEntityOptions as wt, getEntityUsersOptions as Tt, getExternalBankAccountAccessQueryKey as Et, getExternalBankAccountsOptions as Dt, getExternalBankAccountsQueryKey as Ot, getLedgerAccountsQueryKey as kt, getLocationOptions as At, getLocationQueryKey as jt, getMeasureUnitsOptions as Mt, getMeasureUnitsQueryKey as Nt, getOrganizationOptions as Pt, getPayablesAnalyticsOptions as Ft, getPayablesAnalyticsQueryKey as It, getPayablesIdHistoryOptions as Lt, getPayablesIdHistoryQueryKey as Rt, getPayablesIdLineItemsOptions as zt, getPayablesIdLineItemsQueryKey as Bt, getPayablesIdOptions as Vt, getPayablesIdQueryKey as Ht, getPayablesIdSuggestionsOptions as Ut, getPayablesOptions as Wt, getPayablesQueryKey as Gt, getPaymentRecordsOptions as Kt, getPaymentRecordsQueryKey as qt, getProductsIdOptions as Jt, getProductsIdQueryKey as Yt, getProductsOptions as Xt, getProductsQueryKey as Zt, getReceiptsIdQueryKey as Qt, getReceiptsOptions as $t, getReceiptsQueryKey as en, getReceivablesIdHistoryOptions as tn, getReceivablesIdHistoryQueryKey as nn, getReceivablesIdMailsOptions as rn, getReceivablesIdMailsQueryKey as an, getReceivablesIdOptions as on, getReceivablesIdPdfLinkOptions as sn, getReceivablesIdPdfLinkQueryKey as cn, getReceivablesIdQueryKey as ln, getReceivablesOptions as un, getReceivablesQueryKey as dn, getTagsOptions as fn, getTagsQueryKey as pn, getTransactionsIdQueryKey as mn, getTransactionsOptions as hn, getTransactionsQueryKey as gn, getTransactionsValidationsOptions as _n, getTransactionsValidationsQueryKey as vn, getUsersOptions as yn, getUsersQueryKey as bn, grantBankAccountAccessMutation as xn, grantExternalBankAccountAccessMutation as Sn, linkExternalBankAccountMutation as Cn, listDepartmentsOptions as wn, listDepartmentsQueryKey as Tn, listLocationsOptions as En, listLocationsQueryKey as Dn, listRolesQueryKey as On, patchApprovalPoliciesIdMutation as kn, patchEntitiesIdSettingsMutation as An, patchLedgerAccountsIdMutation as jn, patchReceiptsIdMutation as Mn, postApprovalPoliciesMutation as Nn, postLedgerAccountsMutation as Pn, putTransactionsValidationsMutation as Fn, submitApplicationMutation as In, unlinkExternalBankAccountMutation as Ln, updateApplicationMutation as Rn, updateBankAccountMutation as zn, updateExternalBankAccountMutation as Bn, validateExternalBankAccountMutation as Vn } from "./lib/rest/@tanstack/react-query.gen.js";
11
+ import { connectExternalBankAccountMutation as Ie, createAchMoneyMovementMutation as Le, createApplicationMutation as Re, createBankAccountMutation as ze, createBookTransferMutation as Be, createDebitCardMutation as Ve, deleteApprovalPoliciesIdMutation as He, deleteLedgerAccountsIdMutation as Ue, deleteReceiptsIdMutation as We, disableUserMutation as Ge, getAnalyticsPayablesOptions as Ke, getAnalyticsReceivablesOptions as qe, getApplicationStatusOptions as Je, getApprovalPoliciesOptions as Ye, getApprovalPoliciesQueryKey as Xe, getApprovalRequestsOptions as Ze, getApprovalRequestsQueryKey as Qe, getBankAccountAccessQueryKey as $e, getBankAccountOptions as et, getBankAccountQueryKey as tt, getBankAccountTransactionsOptions as nt, getBankAccountTransfersOptions as rt, getBankAccountTransfersQueryKey as it, getBankAccountsQueryKey as at, getCounterpartsIdAddressesOptions as ot, getCounterpartsIdAddressesQueryKey as st, getCounterpartsIdBankAccountsOptions as ct, getCounterpartsIdBankAccountsQueryKey as lt, getCounterpartsIdOptions as ut, getCounterpartsIdQueryKey as dt, getCounterpartsOptions as ft, getCounterpartsQueryKey as pt, getCreditCardByIdOptions as mt, getCreditCardsOptions as ht, getDebitCardByIdOptions as gt, getDebitCardsOptions as _t, getDebitCardsQueryKey as vt, getDepartmentOptions as yt, getDepartmentQueryKey as bt, getEntitiesIdSettingsOptions as xt, getEntitiesIdSettingsQueryKey as St, getEntitiesMeOptions as Ct, getEntityUsersMyEntityOptions as wt, getEntityUsersOptions as Tt, getExternalBankAccountAccessQueryKey as Et, getExternalBankAccountsOptions as Dt, getExternalBankAccountsQueryKey as Ot, getLedgerAccountsQueryKey as kt, getLocationOptions as At, getLocationQueryKey as jt, getMeasureUnitsOptions as Mt, getMeasureUnitsQueryKey as Nt, getOrganizationOptions as Pt, getPayablesAnalyticsOptions as Ft, getPayablesAnalyticsQueryKey as It, getPayablesIdHistoryOptions as Lt, getPayablesIdHistoryQueryKey as Rt, getPayablesIdLineItemsOptions as zt, getPayablesIdLineItemsQueryKey as Bt, getPayablesIdOptions as Vt, getPayablesIdQueryKey as Ht, getPayablesIdSuggestionsOptions as Ut, getPayablesOptions as Wt, getPayablesQueryKey as Gt, getPaymentRecordsOptions as Kt, getPaymentRecordsQueryKey as qt, getProductsIdOptions as Jt, getProductsIdQueryKey as Yt, getProductsOptions as Xt, getProductsQueryKey as Zt, getReceiptsIdQueryKey as Qt, getReceiptsOptions as $t, getReceiptsQueryKey as en, getReceivablesIdHistoryOptions as tn, getReceivablesIdHistoryQueryKey as nn, getReceivablesIdMailsOptions as rn, getReceivablesIdMailsQueryKey as an, getReceivablesIdOptions as on, getReceivablesIdPdfLinkOptions as sn, getReceivablesIdPdfLinkQueryKey as cn, getReceivablesIdQueryKey as ln, getReceivablesOptions as un, getReceivablesQueryKey as dn, getTagsOptions as fn, getTagsQueryKey as pn, getTransactionsIdQueryKey as mn, getTransactionsOptions as hn, getTransactionsQueryKey as gn, getTransactionsValidationsOptions as _n, getTransactionsValidationsQueryKey as vn, getUsersOptions as yn, getUsersQueryKey as bn, grantBankAccountAccessMutation as xn, grantExternalBankAccountAccessMutation as Sn, linkExternalBankAccountMutation as Cn, listDepartmentsOptions as wn, listDepartmentsQueryKey as Tn, listLocationsOptions as En, listLocationsQueryKey as Dn, listRolesQueryKey as On, manageDebitCardAccessMutation as kn, patchApprovalPoliciesIdMutation as An, patchEntitiesIdSettingsMutation as jn, patchLedgerAccountsIdMutation as Mn, patchReceiptsIdMutation as Nn, postApprovalPoliciesMutation as Pn, postLedgerAccountsMutation as Fn, putTransactionsValidationsMutation as In, submitApplicationMutation as Ln, unlinkExternalBankAccountMutation as Rn, updateApplicationMutation as zn, updateBankAccountMutation as Bn, updateExternalBankAccountMutation as Vn, validateExternalBankAccountMutation as Hn } from "./lib/rest/@tanstack/react-query.gen.js";
12
12
  import "./lib/queryKeys.js";
13
- import { withAuthEpoch as Hn } from "./lib/withAuthEpoch.js";
14
- import { useCurrentUserQuery as Un } from "./lib/useCurrentUserQuery.js";
15
- import { isApiNotFoundError as Wn } from "./lib/isApiNotFoundError.js";
13
+ import { withAuthEpoch as Un } from "./lib/withAuthEpoch.js";
14
+ import { useCurrentUserQuery as Wn } from "./lib/useCurrentUserQuery.js";
15
+ import { isApiNotFoundError as Gn } from "./lib/isApiNotFoundError.js";
16
16
  import "./lib/isUserDataNotFoundError.js";
17
- import { useGetUserDataQuery as Gn } from "./lib/useGetUserDataQuery.js";
18
- import { useUpsertUserDataMutation as Kn } from "./lib/useUpsertUserDataMutation.js";
17
+ import { useGetUserDataQuery as Kn } from "./lib/useGetUserDataQuery.js";
18
+ import { useUpsertUserDataMutation as qn } from "./lib/useUpsertUserDataMutation.js";
19
19
  import "./lib/rest/zod.gen.js";
20
- import { Scope as qn } from "./lib/scopes.js";
21
- import { getAllPagesNextPageParam as Jn, getAllPagesNextPaginationTokenParam as Yn, isAllPagesResolving as Xn, useAutoFetchNextPage as Zn } from "./lib/allPages.js";
22
- import { useAllBankAccountsQuery as Qn } from "./lib/bank-account/useAllBankAccountsQuery.js";
23
- import { useAllExternalBankAccountsQuery as $n } from "./lib/external-bank-account/useAllExternalBankAccountsQuery.js";
24
- import { useAllLedgerAccountsQuery as er, useLedgerAccountsQuery as tr } from "./lib/reference-data/useLedgerAccountsQuery.js";
25
- import { usePaymentTermsQuery as nr } from "./lib/reference-data/usePaymentTermsQuery.js";
26
- import { useAllOrganizationRolesQuery as rr } from "./lib/role/useAllOrganizationRolesQuery.js";
27
- import { useRolePermissionsQueries as ir } from "./lib/role/useRolePermissionsQueries.js";
28
- import { useAllOrganizationUsersQuery as ar } from "./lib/user/useAllOrganizationUsersQuery.js";
29
- import { useAcceptWidgetDisclosures as or } from "./lib/disclosures/useAcceptWidgetDisclosures.js";
30
- import { useDisclosuresQuery as sr } from "./lib/disclosures/useDisclosuresQuery.js";
31
- export { l as EmbedApiProvider, qn as Scope, p as bulkUpdateDepartmentMembers, m as bulkUpdateLocationMembers, h as bulkUpdateRoleMembers, e as cancelAllClients, o as cloneEmbeddedClient, Ie as connectExternalBankAccountMutation, Le as createAchMoneyMovementMutation, Re as createApplicationMutation, ze as createBankAccountMutation, Be as createBookTransferMutation, Ve as createDebitCardMutation, g as createDepartment, s as createEmbeddedClient, _ as createLocation, v as createUser, y as deactivateDepartment, b as deactivateLocation, He as deleteApprovalPoliciesIdMutation, x as deleteCounterpartsId, S as deleteCounterpartsIdBankAccountsId, C as deleteFilesId, Ue as deleteLedgerAccountsIdMutation, w as deleteMeasureUnitsId, T as deletePayablesId, E as deleteProductsId, We as deleteReceiptsIdMutation, D as deleteReceivablesId, O as deleteTagsId, Ge as disableUserMutation, k as downloadBankAccountTransactions, Pe as fetchWidgetInit, Jn as getAllPagesNextPageParam, Yn as getAllPagesNextPaginationTokenParam, Ke as getAnalyticsPayablesOptions, qe as getAnalyticsReceivablesOptions, A as getApplicationStatus, Je as getApplicationStatusOptions, j as getApprovalPolicies, Ye as getApprovalPoliciesOptions, Xe as getApprovalPoliciesQueryKey, Ze as getApprovalRequestsOptions, Qe as getApprovalRequestsQueryKey, M as getBankAccountAccess, $e as getBankAccountAccessQueryKey, et as getBankAccountOptions, tt as getBankAccountQueryKey, nt as getBankAccountTransactionsOptions, rt as getBankAccountTransfersOptions, it as getBankAccountTransfersQueryKey, at as getBankAccountsQueryKey, ot as getCounterpartsIdAddressesOptions, st as getCounterpartsIdAddressesQueryKey, ct as getCounterpartsIdBankAccountsOptions, lt as getCounterpartsIdBankAccountsQueryKey, ut as getCounterpartsIdOptions, dt as getCounterpartsIdQueryKey, ft as getCounterpartsOptions, pt as getCounterpartsQueryKey, mt as getCreditCardByIdOptions, ht as getCreditCardsOptions, gt as getDebitCardByIdOptions, _t as getDebitCardsOptions, vt as getDebitCardsQueryKey, N as getDepartment, yt as getDepartmentOptions, bt as getDepartmentQueryKey, xt as getEntitiesIdSettingsOptions, St as getEntitiesIdSettingsQueryKey, Ct as getEntitiesMeOptions, wt as getEntityUsersMyEntityOptions, Tt as getEntityUsersOptions, P as getExternalBankAccountAccess, Et as getExternalBankAccountAccessQueryKey, Dt as getExternalBankAccountsOptions, Ot as getExternalBankAccountsQueryKey, kt as getLedgerAccountsQueryKey, F as getLocation, At as getLocationOptions, jt as getLocationQueryKey, Mt as getMeasureUnitsOptions, Nt as getMeasureUnitsQueryKey, Pt as getOrganizationOptions, Ft as getPayablesAnalyticsOptions, It as getPayablesAnalyticsQueryKey, I as getPayablesId, Lt as getPayablesIdHistoryOptions, Rt as getPayablesIdHistoryQueryKey, L as getPayablesIdLineItems, zt as getPayablesIdLineItemsOptions, Bt as getPayablesIdLineItemsQueryKey, Vt as getPayablesIdOptions, Ht as getPayablesIdQueryKey, Ut as getPayablesIdSuggestionsOptions, Wt as getPayablesOptions, Gt as getPayablesQueryKey, R as getPaymentRecords, Kt as getPaymentRecordsOptions, qt as getPaymentRecordsQueryKey, Jt as getProductsIdOptions, Yt as getProductsIdQueryKey, Xt as getProductsOptions, Zt as getProductsQueryKey, Qt as getReceiptsIdQueryKey, $t as getReceiptsOptions, en as getReceiptsQueryKey, tn as getReceivablesIdHistoryOptions, nn as getReceivablesIdHistoryQueryKey, rn as getReceivablesIdMailsOptions, an as getReceivablesIdMailsQueryKey, on as getReceivablesIdOptions, sn as getReceivablesIdPdfLinkOptions, cn as getReceivablesIdPdfLinkQueryKey, ln as getReceivablesIdQueryKey, un as getReceivablesOptions, dn as getReceivablesQueryKey, fn as getTagsOptions, pn as getTagsQueryKey, mn as getTransactionsIdQueryKey, hn as getTransactionsOptions, gn as getTransactionsQueryKey, _n as getTransactionsValidationsOptions, vn as getTransactionsValidationsQueryKey, z as getUsers, yn as getUsersOptions, bn as getUsersQueryKey, xn as grantBankAccountAccessMutation, Sn as grantExternalBankAccountAccessMutation, Fe as hasAnyScope, t as invalidateAllClients, Xn as isAllPagesResolving, Wn as isApiNotFoundError, c as isWidgetGatewayHost, Cn as linkExternalBankAccountMutation, B as listDepartments, wn as listDepartmentsOptions, Tn as listDepartmentsQueryKey, V as listLocations, En as listLocationsOptions, Dn as listLocationsQueryKey, H as listRoles, On as listRolesQueryKey, U as manageBankAccountAccess, d as optionalOrganizationHeaders, f as organizationHeaders, kn as patchApprovalPoliciesIdMutation, W as patchCounterpartsId, G as patchCounterpartsIdAddressesId, K as patchCounterpartsIdBankAccountsId, An as patchEntitiesIdSettingsMutation, jn as patchLedgerAccountsIdMutation, q as patchMeasureUnitsId, J as patchPayablesId, Y as patchProductsId, Mn as patchReceiptsIdMutation, X as patchReceivablesId, Z as patchTagsId, Nn as postApprovalPoliciesMutation, Q as postApprovalRequestsIdApprove, $ as postApprovalRequestsIdReject, ee as postCounterparts, te as postCounterpartsIdAddresses, ne as postCounterpartsIdBankAccounts, re as postCounterpartsIdBankAccountsIdMakeDefault, Pn as postLedgerAccountsMutation, ie as postMeasureUnits, ae as postPayables, oe as postPayablesIdApprovePaymentOperation, se as postPayablesIdAttachFile, ce as postPayablesIdCancel, le as postPayablesIdMarkAsPaid, ue as postPayablesIdReject, de as postPayablesIdReopen, fe as postPayablesIdSchedulePayment, pe as postPayablesIdSubmitForApproval, me as postPayablesIdValidate, he as postPayablesUploadFromFile, ge as postPaymentRecordsIdCancel, _e as postProducts, ve as postReceivables, ye as postReceivablesIdAccept, be as postReceivablesIdCancel, xe as postReceivablesIdClone, Se as postReceivablesIdDecline, Ce as postReceivablesIdIssue, we as postReceivablesIdMarkAsPaid, Te as postReceivablesIdMarkAsPartiallyPaid, Ee as postReceivablesIdMarkAsUncollectible, De as postReceivablesIdSend, Oe as postTags, ke as putPayablesIdLineItems, Ae as putReceivablesIdLineItems, Fn as putTransactionsValidationsMutation, n as registerQueryClient, r as removeInactiveFromAllClients, i as setAllClientsQueriesData, In as submitApplicationMutation, Ln as unlinkExternalBankAccountMutation, a as unregisterQueryClient, Rn as updateApplicationMutation, zn as updateBankAccountMutation, je as updateDepartment, Bn as updateExternalBankAccountMutation, Me as updateLocation, Ne as updateUser, or as useAcceptWidgetDisclosures, Qn as useAllBankAccountsQuery, $n as useAllExternalBankAccountsQuery, er as useAllLedgerAccountsQuery, rr as useAllOrganizationRolesQuery, ar as useAllOrganizationUsersQuery, Zn as useAutoFetchNextPage, Un as useCurrentUserQuery, sr as useDisclosuresQuery, u as useEmbedApi, Gn as useGetUserDataQuery, tr as useLedgerAccountsQuery, nr as usePaymentTermsQuery, ir as useRolePermissionsQueries, Kn as useUpsertUserDataMutation, Vn as validateExternalBankAccountMutation, Hn as withAuthEpoch };
20
+ import { Scope as Jn } from "./lib/scopes.js";
21
+ import { getAllPagesNextPageParam as Yn, getAllPagesNextPaginationTokenParam as Xn, isAllPagesResolving as Zn, useAutoFetchNextPage as Qn } from "./lib/allPages.js";
22
+ import { useAllBankAccountsQuery as $n } from "./lib/bank-account/useAllBankAccountsQuery.js";
23
+ import { useAllExternalBankAccountsQuery as er } from "./lib/external-bank-account/useAllExternalBankAccountsQuery.js";
24
+ import { useAllLedgerAccountsQuery as tr, useLedgerAccountsQuery as nr } from "./lib/reference-data/useLedgerAccountsQuery.js";
25
+ import { usePaymentTermsQuery as rr } from "./lib/reference-data/usePaymentTermsQuery.js";
26
+ import { useAllOrganizationRolesQuery as ir } from "./lib/role/useAllOrganizationRolesQuery.js";
27
+ import { useRolePermissionsQueries as ar } from "./lib/role/useRolePermissionsQueries.js";
28
+ import { useAllOrganizationUsersQuery as or } from "./lib/user/useAllOrganizationUsersQuery.js";
29
+ import { useAcceptWidgetDisclosures as sr } from "./lib/disclosures/useAcceptWidgetDisclosures.js";
30
+ import { useDisclosuresQuery as cr } from "./lib/disclosures/useDisclosuresQuery.js";
31
+ export { l as EmbedApiProvider, Jn as Scope, p as bulkUpdateDepartmentMembers, m as bulkUpdateLocationMembers, h as bulkUpdateRoleMembers, e as cancelAllClients, o as cloneEmbeddedClient, Ie as connectExternalBankAccountMutation, Le as createAchMoneyMovementMutation, Re as createApplicationMutation, ze as createBankAccountMutation, Be as createBookTransferMutation, Ve as createDebitCardMutation, g as createDepartment, s as createEmbeddedClient, _ as createLocation, v as createUser, y as deactivateDepartment, b as deactivateLocation, He as deleteApprovalPoliciesIdMutation, x as deleteCounterpartsId, S as deleteCounterpartsIdBankAccountsId, C as deleteFilesId, Ue as deleteLedgerAccountsIdMutation, w as deleteMeasureUnitsId, T as deletePayablesId, E as deleteProductsId, We as deleteReceiptsIdMutation, D as deleteReceivablesId, O as deleteTagsId, Ge as disableUserMutation, k as downloadBankAccountTransactions, Pe as fetchWidgetInit, Yn as getAllPagesNextPageParam, Xn as getAllPagesNextPaginationTokenParam, Ke as getAnalyticsPayablesOptions, qe as getAnalyticsReceivablesOptions, A as getApplicationStatus, Je as getApplicationStatusOptions, j as getApprovalPolicies, Ye as getApprovalPoliciesOptions, Xe as getApprovalPoliciesQueryKey, Ze as getApprovalRequestsOptions, Qe as getApprovalRequestsQueryKey, M as getBankAccountAccess, $e as getBankAccountAccessQueryKey, et as getBankAccountOptions, tt as getBankAccountQueryKey, nt as getBankAccountTransactionsOptions, rt as getBankAccountTransfersOptions, it as getBankAccountTransfersQueryKey, at as getBankAccountsQueryKey, ot as getCounterpartsIdAddressesOptions, st as getCounterpartsIdAddressesQueryKey, ct as getCounterpartsIdBankAccountsOptions, lt as getCounterpartsIdBankAccountsQueryKey, ut as getCounterpartsIdOptions, dt as getCounterpartsIdQueryKey, ft as getCounterpartsOptions, pt as getCounterpartsQueryKey, mt as getCreditCardByIdOptions, ht as getCreditCardsOptions, gt as getDebitCardByIdOptions, _t as getDebitCardsOptions, vt as getDebitCardsQueryKey, N as getDepartment, yt as getDepartmentOptions, bt as getDepartmentQueryKey, xt as getEntitiesIdSettingsOptions, St as getEntitiesIdSettingsQueryKey, Ct as getEntitiesMeOptions, wt as getEntityUsersMyEntityOptions, Tt as getEntityUsersOptions, P as getExternalBankAccountAccess, Et as getExternalBankAccountAccessQueryKey, Dt as getExternalBankAccountsOptions, Ot as getExternalBankAccountsQueryKey, kt as getLedgerAccountsQueryKey, F as getLocation, At as getLocationOptions, jt as getLocationQueryKey, Mt as getMeasureUnitsOptions, Nt as getMeasureUnitsQueryKey, Pt as getOrganizationOptions, Ft as getPayablesAnalyticsOptions, It as getPayablesAnalyticsQueryKey, I as getPayablesId, Lt as getPayablesIdHistoryOptions, Rt as getPayablesIdHistoryQueryKey, L as getPayablesIdLineItems, zt as getPayablesIdLineItemsOptions, Bt as getPayablesIdLineItemsQueryKey, Vt as getPayablesIdOptions, Ht as getPayablesIdQueryKey, Ut as getPayablesIdSuggestionsOptions, Wt as getPayablesOptions, Gt as getPayablesQueryKey, R as getPaymentRecords, Kt as getPaymentRecordsOptions, qt as getPaymentRecordsQueryKey, Jt as getProductsIdOptions, Yt as getProductsIdQueryKey, Xt as getProductsOptions, Zt as getProductsQueryKey, Qt as getReceiptsIdQueryKey, $t as getReceiptsOptions, en as getReceiptsQueryKey, tn as getReceivablesIdHistoryOptions, nn as getReceivablesIdHistoryQueryKey, rn as getReceivablesIdMailsOptions, an as getReceivablesIdMailsQueryKey, on as getReceivablesIdOptions, sn as getReceivablesIdPdfLinkOptions, cn as getReceivablesIdPdfLinkQueryKey, ln as getReceivablesIdQueryKey, un as getReceivablesOptions, dn as getReceivablesQueryKey, fn as getTagsOptions, pn as getTagsQueryKey, mn as getTransactionsIdQueryKey, hn as getTransactionsOptions, gn as getTransactionsQueryKey, _n as getTransactionsValidationsOptions, vn as getTransactionsValidationsQueryKey, z as getUsers, yn as getUsersOptions, bn as getUsersQueryKey, xn as grantBankAccountAccessMutation, Sn as grantExternalBankAccountAccessMutation, Fe as hasAnyScope, t as invalidateAllClients, Zn as isAllPagesResolving, Gn as isApiNotFoundError, c as isWidgetGatewayHost, Cn as linkExternalBankAccountMutation, B as listDepartments, wn as listDepartmentsOptions, Tn as listDepartmentsQueryKey, V as listLocations, En as listLocationsOptions, Dn as listLocationsQueryKey, H as listRoles, On as listRolesQueryKey, U as manageBankAccountAccess, kn as manageDebitCardAccessMutation, d as optionalOrganizationHeaders, f as organizationHeaders, An as patchApprovalPoliciesIdMutation, W as patchCounterpartsId, G as patchCounterpartsIdAddressesId, K as patchCounterpartsIdBankAccountsId, jn as patchEntitiesIdSettingsMutation, Mn as patchLedgerAccountsIdMutation, q as patchMeasureUnitsId, J as patchPayablesId, Y as patchProductsId, Nn as patchReceiptsIdMutation, X as patchReceivablesId, Z as patchTagsId, Pn as postApprovalPoliciesMutation, Q as postApprovalRequestsIdApprove, $ as postApprovalRequestsIdReject, ee as postCounterparts, te as postCounterpartsIdAddresses, ne as postCounterpartsIdBankAccounts, re as postCounterpartsIdBankAccountsIdMakeDefault, Fn as postLedgerAccountsMutation, ie as postMeasureUnits, ae as postPayables, oe as postPayablesIdApprovePaymentOperation, se as postPayablesIdAttachFile, ce as postPayablesIdCancel, le as postPayablesIdMarkAsPaid, ue as postPayablesIdReject, de as postPayablesIdReopen, fe as postPayablesIdSchedulePayment, pe as postPayablesIdSubmitForApproval, me as postPayablesIdValidate, he as postPayablesUploadFromFile, ge as postPaymentRecordsIdCancel, _e as postProducts, ve as postReceivables, ye as postReceivablesIdAccept, be as postReceivablesIdCancel, xe as postReceivablesIdClone, Se as postReceivablesIdDecline, Ce as postReceivablesIdIssue, we as postReceivablesIdMarkAsPaid, Te as postReceivablesIdMarkAsPartiallyPaid, Ee as postReceivablesIdMarkAsUncollectible, De as postReceivablesIdSend, Oe as postTags, ke as putPayablesIdLineItems, Ae as putReceivablesIdLineItems, In as putTransactionsValidationsMutation, n as registerQueryClient, r as removeInactiveFromAllClients, i as setAllClientsQueriesData, Ln as submitApplicationMutation, Rn as unlinkExternalBankAccountMutation, a as unregisterQueryClient, zn as updateApplicationMutation, Bn as updateBankAccountMutation, je as updateDepartment, Vn as updateExternalBankAccountMutation, Me as updateLocation, Ne as updateUser, sr as useAcceptWidgetDisclosures, $n as useAllBankAccountsQuery, er as useAllExternalBankAccountsQuery, tr as useAllLedgerAccountsQuery, ir as useAllOrganizationRolesQuery, or as useAllOrganizationUsersQuery, Qn as useAutoFetchNextPage, Wn as useCurrentUserQuery, cr as useDisclosuresQuery, u as useEmbedApi, Kn as useGetUserDataQuery, nr as useLedgerAccountsQuery, rr as usePaymentTermsQuery, ar as useRolePermissionsQueries, qn as useUpsertUserDataMutation, Hn as validateExternalBankAccountMutation, Un as withAuthEpoch };