@tesouro/embedded-components-react 0.3.12 → 0.3.14
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.
- package/dist/index.d.ts +42 -30
- package/dist/index.js +1 -1
- package/dist/lib/BillPayWidget.js +1 -1
- package/dist/lib/CardsWidget.d.ts +12 -0
- package/dist/lib/CreateCardWidget.d.ts +12 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index28.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index30.js +23 -205
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index31.js +200 -185
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index32.js +199 -50
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index33.js +105 -13
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index34.js +12 -46
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index35.js +46 -30
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index36.js +26 -158
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index37.js +162 -31
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index38.js +32 -98
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index39.js +102 -13
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index40.js +13 -242
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index41.js +247 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js +4 -30
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +28 -82
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js +76 -137
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index45.js +145 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +3 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +2 -43
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +45 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +1 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index50.js +6 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +9 -92
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +94 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +3 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +7 -20
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +14 -51
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +59 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +3 -110
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +107 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +8 -40
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +38 -15
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +18 -98
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js +92 -173
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js +180 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +5 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index65.js +6 -112
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js +114 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index67.js +0 -24
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index68.js +25 -0
- package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/index5.js +1 -2
- package/dist/libs/tesouro-embedded-components-react/create-card-widget/data-access/dist/index.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/create-card-widget/data-access/dist/index5.js +19 -12
- package/dist/libs/tesouro-embedded-components-react/create-card-widget/data-access/dist/index6.js +22 -0
- package/dist/libs/tesouro-embedded-components-react/create-card-widget/feature/dist/index4.js +4 -1
- package/dist/libs/tesouro-embedded-components-react/create-card-widget/feature/dist/index5.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/create-card-widget/feature/dist/index6.js +22 -37
- package/dist/libs/tesouro-embedded-components-react/create-card-widget/feature/dist/index7.js +167 -110
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/index.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/helpers.js +6 -3
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useCounterpartDetails.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useCounterpartForm.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +18 -18
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js +111 -104
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +144 -128
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/zod.gen.js +1028 -1019
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/user/useAllOrganizationUsersQuery.js +20 -18
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index7.js +1 -1
- package/package.json +1 -1
package/dist/libs/tesouro-embedded-components-react/create-card-widget/feature/dist/index7.js
CHANGED
|
@@ -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 {
|
|
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
|
|
10
|
+
import { EmbeddedToaster as i } from "../../../shared/ui/dist/lib/EmbeddedToaster.js";
|
|
9
11
|
import "../../../shared/ui/dist/index.js";
|
|
10
|
-
import { useAnalyticsTrack as
|
|
11
|
-
import { WidgetProvider as
|
|
12
|
-
import { getStateOptions as
|
|
13
|
-
import { useWidgetConfig as
|
|
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
|
|
16
|
-
import { CreateCardView as
|
|
17
|
-
import { CreateCardWidget as
|
|
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
|
|
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
|
|
22
|
-
import { getCreateCardPermissions as
|
|
23
|
-
import { useCreateCardCardholderOptions as
|
|
24
|
-
import { useCreateCard as
|
|
25
|
-
import { useCreateDebitCardMutation as
|
|
26
|
-
import {
|
|
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
|
|
29
|
-
import { Fragment as
|
|
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
|
-
},
|
|
37
|
-
function
|
|
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
|
|
50
|
+
function b(e) {
|
|
48
51
|
let t = e?.trim().slice(-4);
|
|
49
52
|
return t ? `••••${t}` : void 0;
|
|
50
53
|
}
|
|
51
|
-
function
|
|
52
|
-
let n = e.nickname?.trim(), r =
|
|
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
|
|
56
|
-
let
|
|
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
|
-
...
|
|
61
|
-
...
|
|
63
|
+
...l.setup,
|
|
64
|
+
...o?.setup
|
|
62
65
|
}
|
|
63
|
-
},
|
|
64
|
-
value:
|
|
65
|
-
label:
|
|
66
|
+
}, be = h(() => [{
|
|
67
|
+
value: p.Virtual,
|
|
68
|
+
label: j.setup.cardFormatVirtual
|
|
66
69
|
}, {
|
|
67
|
-
value:
|
|
68
|
-
label:
|
|
69
|
-
}], [
|
|
70
|
-
|
|
71
|
-
},
|
|
72
|
-
|
|
73
|
-
let
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
}), []),
|
|
77
|
-
|
|
78
|
-
}, [
|
|
79
|
-
let { options:
|
|
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:
|
|
117
|
+
label: x(e, A.untitledFundingAccount)
|
|
82
118
|
})), [
|
|
83
119
|
J.data?.data,
|
|
84
|
-
|
|
120
|
+
A.untitledFundingAccount,
|
|
85
121
|
Y
|
|
86
|
-
]), Z =
|
|
87
|
-
let e =
|
|
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
|
-
...
|
|
125
|
+
...o,
|
|
90
126
|
success: {
|
|
91
|
-
...
|
|
127
|
+
...o?.success,
|
|
92
128
|
...e
|
|
93
129
|
}
|
|
94
130
|
};
|
|
95
131
|
}, [
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
]),
|
|
100
|
-
if (!
|
|
101
|
-
let t =
|
|
102
|
-
cardholderUserId:
|
|
103
|
-
format:
|
|
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:
|
|
142
|
+
mailingOption: R,
|
|
107
143
|
orgAddress: Q,
|
|
108
|
-
manualAddress:
|
|
144
|
+
manualAddress: B
|
|
109
145
|
});
|
|
110
146
|
if (!n) return;
|
|
111
|
-
|
|
112
|
-
let r = e.loading(
|
|
147
|
+
M(u.Preparing);
|
|
148
|
+
let r = e.loading(A.toast.creating);
|
|
113
149
|
try {
|
|
114
|
-
let t = await
|
|
115
|
-
if (!
|
|
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
|
-
|
|
176
|
+
M(u.Success), e.success(A.toast.success, {
|
|
120
177
|
id: r,
|
|
121
|
-
duration:
|
|
178
|
+
duration: ve
|
|
122
179
|
});
|
|
123
180
|
} catch {
|
|
124
|
-
if (!
|
|
181
|
+
if (!U.current) {
|
|
125
182
|
e.dismiss(r);
|
|
126
183
|
return;
|
|
127
184
|
}
|
|
128
|
-
|
|
185
|
+
M(u.Setup), e.error(A.toast.error, {
|
|
129
186
|
id: r,
|
|
130
|
-
duration:
|
|
187
|
+
duration: y
|
|
131
188
|
});
|
|
132
189
|
}
|
|
133
190
|
};
|
|
134
|
-
return /* @__PURE__ */ me
|
|
135
|
-
view:
|
|
136
|
-
cardArtSrc:
|
|
137
|
-
labels:
|
|
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:
|
|
140
|
-
selectedCardholder:
|
|
141
|
-
onCardholderSelect:
|
|
142
|
-
isCardholderError:
|
|
143
|
-
onCardholderRetry:
|
|
144
|
-
cardFormatOptions:
|
|
145
|
-
selectedCardFormat:
|
|
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
|
-
|
|
204
|
+
I(e), z(null);
|
|
148
205
|
},
|
|
149
|
-
isFundingAccountVisible:
|
|
206
|
+
isFundingAccountVisible: Be,
|
|
150
207
|
fundingAccountOptions: X,
|
|
151
208
|
selectedFundingAccount: Z,
|
|
152
|
-
onFundingAccountSelect:
|
|
209
|
+
onFundingAccountSelect: L,
|
|
153
210
|
isFundingAccountError: Y,
|
|
154
211
|
onFundingAccountRetry: Y ? () => {
|
|
155
212
|
J.refetch();
|
|
156
213
|
} : void 0,
|
|
157
214
|
isMailingSectionVisible: $,
|
|
158
|
-
selectedMailingOption:
|
|
159
|
-
onMailingOptionSelect:
|
|
160
|
-
businessAddress:
|
|
161
|
-
isBusinessAddressVisible:
|
|
162
|
-
isManualAddressVisible:
|
|
163
|
-
manualAddress:
|
|
164
|
-
onManualAddressChange: (e) =>
|
|
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:
|
|
169
|
-
isCreateDisabled:
|
|
225
|
+
stateOptions: xe,
|
|
226
|
+
isCreateDisabled: Ve,
|
|
170
227
|
onCreateClick: () => {
|
|
171
|
-
|
|
228
|
+
Ue();
|
|
172
229
|
},
|
|
173
230
|
onCancelClick: () => {
|
|
174
|
-
|
|
231
|
+
C?.(), S?.();
|
|
175
232
|
},
|
|
176
|
-
onClose:
|
|
177
|
-
onCreateAnotherClick:
|
|
178
|
-
onViewCardClick:
|
|
179
|
-
|
|
233
|
+
onClose: S,
|
|
234
|
+
onCreateAnotherClick: De,
|
|
235
|
+
onViewCardClick: w && H ? () => {
|
|
236
|
+
w(H);
|
|
180
237
|
} : void 0
|
|
181
238
|
})] });
|
|
182
239
|
}
|
|
183
|
-
function
|
|
184
|
-
return /* @__PURE__ */
|
|
185
|
-
widgetName:
|
|
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:
|
|
193
|
-
uiFramework:
|
|
194
|
-
errorFallback:
|
|
195
|
-
onError:
|
|
196
|
-
analytics:
|
|
197
|
-
disclosuresAcceptance:
|
|
198
|
-
children: /* @__PURE__ */
|
|
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 {
|
|
259
|
+
export { C as CreateCardWidget, x as formatFundingAccountLabel };
|
|
@@ -8,15 +8,15 @@ import "../../ui/dist/index.js";
|
|
|
8
8
|
import { COUNTERPART_MESSAGE_LABELS_EN as s } from "./lib/labels.js";
|
|
9
9
|
import { buildAnalyticsMap as c, buildCounterpartRows as l, counterpartFormBankAccountToCreatePayload as u, counterpartFormBankAccountToUpdatePayload as d, formatCounterpartDate as f, formatMoney as p, getAchInstructions as m, getCounterpartEmail as h, getCounterpartName as g, getPayableAchInstructions as _, hasAchFormValues as v, hasSelectedText as y, resolveCounterpartBankAccountWrite as b, validateAchFormValues as x } from "./lib/helpers.js";
|
|
10
10
|
import { useCounterpartsQuery as S } from "../../data-access/dist/index3.js";
|
|
11
|
-
import {
|
|
12
|
-
import { useCounterpartAddressesForRowsQuery as
|
|
11
|
+
import { useCounterpartBankAccountsQuery as C, useCreateCounterpartBankAccountMutation as w, useUpdateCounterpartBankAccountMutation as T } from "../../data-access/dist/index5.js";
|
|
12
|
+
import { useCounterpartAddressesForRowsQuery as E, useCounterpartAddressesQuery as D } from "../../data-access/dist/index7.js";
|
|
13
13
|
import "../../data-access/dist/index.js";
|
|
14
|
-
import { useAddressForm as
|
|
15
|
-
import { useCounterpartDetails as
|
|
16
|
-
import { useCounterpartForm as
|
|
14
|
+
import { useAddressForm as O } from "./lib/useAddressForm.js";
|
|
15
|
+
import { useCounterpartDetails as k } from "./lib/useCounterpartDetails.js";
|
|
16
|
+
import { useCounterpartForm as A } from "./lib/useCounterpartForm.js";
|
|
17
17
|
import "./lib/useCounterpartSelector.js";
|
|
18
|
-
import { CounterpartSelector as
|
|
19
|
-
import { useDeleteController as
|
|
18
|
+
import { CounterpartSelector as j } from "./lib/CounterpartSelector.js";
|
|
19
|
+
import { useDeleteController as M } from "./lib/useDeleteController.js";
|
|
20
20
|
import "./lib/useSubEntityForm.js";
|
|
21
|
-
import { useBankAccountForm as
|
|
22
|
-
export { e as AchFieldGroup, a as AddressFormSheet, i as BankAccountFormSheet, s as COUNTERPART_MESSAGE_LABELS_EN, o as ConfirmDeleteDialog, t as CounterpartFormFields, n as CounterpartFormSheet,
|
|
21
|
+
import { useBankAccountForm as N } from "./lib/subEntityForms.js";
|
|
22
|
+
export { e as AchFieldGroup, a as AddressFormSheet, i as BankAccountFormSheet, s as COUNTERPART_MESSAGE_LABELS_EN, o as ConfirmDeleteDialog, t as CounterpartFormFields, n as CounterpartFormSheet, j as CounterpartSelector, c as buildAnalyticsMap, l as buildCounterpartRows, u as counterpartFormBankAccountToCreatePayload, d as counterpartFormBankAccountToUpdatePayload, f as formatCounterpartDate, p as formatMoney, m as getAchInstructions, h as getCounterpartEmail, g as getCounterpartName, _ as getPayableAchInstructions, v as hasAchFormValues, y as hasSelectedText, b as resolveCounterpartBankAccountWrite, O as useAddressForm, N as useBankAccountForm, E as useCounterpartAddressesForRowsQuery, D as useCounterpartAddressesQuery, C as useCounterpartBankAccountsQuery, k as useCounterpartDetails, A as useCounterpartForm, S as useCounterpartsQuery, w as useCreateCounterpartBankAccountMutation, M as useDeleteController, r as useFocusFirstInvalidField, T as useUpdateCounterpartBankAccountMutation, x as validateAchFormValues };
|
|
@@ -268,14 +268,14 @@ function N(e) {
|
|
|
268
268
|
function P(e) {
|
|
269
269
|
return N(e.bankAccount);
|
|
270
270
|
}
|
|
271
|
-
function F(e) {
|
|
271
|
+
function F(e, t = {}) {
|
|
272
272
|
return {
|
|
273
273
|
account_holder_name: e.accountHolderName.trim() || void 0,
|
|
274
274
|
account_number: e.accountNumber.trim() || void 0,
|
|
275
275
|
routing_number: e.routingNumber.trim() || void 0,
|
|
276
276
|
country: "US",
|
|
277
277
|
currency: "USD",
|
|
278
|
-
is_default_for_currency: !0
|
|
278
|
+
is_default_for_currency: t.isDefaultForCurrency ?? !0
|
|
279
279
|
};
|
|
280
280
|
}
|
|
281
281
|
function I(e, t = {}) {
|
|
@@ -309,7 +309,10 @@ function R(e, t) {
|
|
|
309
309
|
kind: "update",
|
|
310
310
|
bankAccountId: n.id,
|
|
311
311
|
includeAchDefaults: !0
|
|
312
|
-
} : {
|
|
312
|
+
} : {
|
|
313
|
+
kind: "create",
|
|
314
|
+
isDefaultForCurrency: !(e ?? []).some((e) => e.currency === "USD" && e.is_default_for_currency)
|
|
315
|
+
};
|
|
313
316
|
}
|
|
314
317
|
function z() {
|
|
315
318
|
return {
|
|
@@ -113,7 +113,7 @@ function D({ view: r, setView: D, selectedId: O, setSelectedId: k, messages: A,
|
|
|
113
113
|
body: a(U.bankAccount, { includeAchDefaults: r.includeAchDefaults })
|
|
114
114
|
}) : r?.kind === "create" ? z.mutateAsync({
|
|
115
115
|
path: { counterpart_id: O },
|
|
116
|
-
body: i(U.bankAccount)
|
|
116
|
+
body: i(U.bankAccount, { isDefaultForCurrency: r.isDefaultForCurrency })
|
|
117
117
|
}) : void 0, [c, l] = await Promise.allSettled([e, o]);
|
|
118
118
|
if (r?.kind === "create" && l.status === "fulfilled" && X(l.value?.id), c.status === "rejected") throw c.reason;
|
|
119
119
|
if (l.status === "rejected") throw l.reason;
|
|
@@ -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,
|
|
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
|
|
14
|
-
import { useCurrentUserQuery as
|
|
15
|
-
import { isApiNotFoundError as
|
|
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
|
|
18
|
-
import { useUpsertUserDataMutation as
|
|
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
|
|
21
|
-
import { getAllPagesNextPageParam as
|
|
22
|
-
import { useAllBankAccountsQuery as
|
|
23
|
-
import { useAllExternalBankAccountsQuery as
|
|
24
|
-
import { useAllLedgerAccountsQuery as
|
|
25
|
-
import { usePaymentTermsQuery as
|
|
26
|
-
import { useAllOrganizationRolesQuery as
|
|
27
|
-
import { useRolePermissionsQueries as
|
|
28
|
-
import { useAllOrganizationUsersQuery as
|
|
29
|
-
import { useAcceptWidgetDisclosures as
|
|
30
|
-
import { useDisclosuresQuery as
|
|
31
|
-
export { l as EmbedApiProvider,
|
|
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 };
|