@tesouro/embedded-components-react 0.7.37 → 0.7.41
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/README.md +2 -2
- package/dist/fixtures/index.d.ts +1 -1
- package/dist/index.d.ts +21 -14
- package/dist/lib/CounterpartsWidget.d.ts +16 -14
- package/dist/lib/CounterpartsWidgetPublic.d.ts +16 -14
- package/dist/lib/CustomersWidget.d.ts +16 -14
- package/dist/lib/TransfersWidget.d.ts +5 -0
- package/dist/lib/WidgetSuite.d.ts +5 -0
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/fieldInput/formatPhoneNumberInput.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/mocks/bankAccounts.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/CounterpartsWidget.js +30 -29
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/constants.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/useCounterpartsTable.js +143 -95
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/useCounterpartsWidget.js +60 -48
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/mocks/labels.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index2.js +22 -15
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index3.js +137 -135
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/helpers.js +106 -108
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js +50 -50
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +22 -22
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index3.js +6 -7
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index6.js +14 -34
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index7.js +16 -13
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index8.js +4 -10
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/lib/TransfersWidget/TransfersWidgetInner.js +99 -75
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/lib/TransfersWidget/featureLabels.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/lib/TransfersWidget/useTransfersPageState.js +49 -0
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/mocks/labels.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/mocks/transfers.js +103 -85
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransfersWidget/TransfersWidget.js +73 -61
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransfersWidget/labels.js +3 -0
- package/package.json +1 -1
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { formatMoneyExact as e } from "../../../../util/dist/lib/formatMoneyExact.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { EMPTY_ADDRESS_FORM_VALUES as i } from "../../../ui/dist/index6.js";
|
|
2
|
+
import { isValidAchAccountNumber as t } from "../../../../util/dist/lib/isValidAchAccountNumber.js";
|
|
3
|
+
import { COUNTERPART_FORM_SHEET_LABELS_EN as n } from "../../../ui/dist/index2.js";
|
|
4
|
+
import { EMPTY_ADDRESS_FORM_VALUES as r } from "../../../ui/dist/index6.js";
|
|
6
5
|
import "../../../ui/dist/index.js";
|
|
7
|
-
import { COUNTERPART_MESSAGE_LABELS_EN as
|
|
6
|
+
import { COUNTERPART_MESSAGE_LABELS_EN as i } from "./labels.js";
|
|
8
7
|
//#region ../../libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/helpers.js
|
|
9
|
-
function
|
|
8
|
+
function a(e) {
|
|
10
9
|
try {
|
|
11
10
|
return new Intl.NumberFormat("en-US", {
|
|
12
11
|
style: "currency",
|
|
@@ -16,58 +15,57 @@ function o(e) {
|
|
|
16
15
|
return 2;
|
|
17
16
|
}
|
|
18
17
|
}
|
|
19
|
-
function
|
|
20
|
-
return e / 10 **
|
|
18
|
+
function o(e, t) {
|
|
19
|
+
return e / 10 ** a(t);
|
|
21
20
|
}
|
|
22
|
-
function
|
|
23
|
-
return e(
|
|
21
|
+
function s(t, n = "USD") {
|
|
22
|
+
return e(o(t, n), { currencyCode: n });
|
|
24
23
|
}
|
|
25
|
-
var
|
|
24
|
+
var c = new Intl.DateTimeFormat(void 0, {
|
|
26
25
|
year: "numeric",
|
|
27
26
|
month: "short",
|
|
28
27
|
day: "numeric"
|
|
29
28
|
});
|
|
30
|
-
function
|
|
29
|
+
function l(e) {
|
|
31
30
|
if (!e) return "";
|
|
32
31
|
let t = new Date(e);
|
|
33
|
-
return Number.isNaN(t.getTime()) ? "" :
|
|
32
|
+
return Number.isNaN(t.getTime()) ? "" : c.format(t);
|
|
34
33
|
}
|
|
35
|
-
function
|
|
34
|
+
function u(e) {
|
|
36
35
|
if ("organization" in e) return e.organization.legal_name;
|
|
37
36
|
let { first_name: t, last_name: n } = e.individual;
|
|
38
37
|
return [t, n].filter(Boolean).join(" ").trim();
|
|
39
38
|
}
|
|
40
|
-
function
|
|
39
|
+
function d(e) {
|
|
41
40
|
return "organization" in e ? e.organization.email ?? "" : e.individual.email ?? "";
|
|
42
41
|
}
|
|
43
|
-
function
|
|
42
|
+
function f(e) {
|
|
44
43
|
return "organization" in e ? e.organization.phone ?? "" : e.individual.phone ?? "";
|
|
45
44
|
}
|
|
46
|
-
function
|
|
45
|
+
function p(e) {
|
|
47
46
|
let t = /* @__PURE__ */ new Map();
|
|
48
47
|
for (let n of e ?? []) n.dimension_value && t.set(n.dimension_value, Math.round(n.metric_value));
|
|
49
48
|
return t;
|
|
50
49
|
}
|
|
51
|
-
var
|
|
52
|
-
function
|
|
50
|
+
var m = "-";
|
|
51
|
+
function h({ counterparts: e, addresses: t, billedAmounts: n, dueOrOwedAmounts: r, isBilledAmountLoading: i = !1, isDueOrOwedAmountLoading: a = !1, isBilledAmountError: o = !1, isDueOrOwedAmountError: c = !1 }) {
|
|
53
52
|
return e.map((e) => {
|
|
54
|
-
let
|
|
53
|
+
let l = n?.get(e.id) ?? 0, d = r?.get(e.id) ?? 0, f = l - d, p = i || a, h = o || c, g = u(e);
|
|
55
54
|
return {
|
|
56
55
|
id: e.id,
|
|
57
|
-
name:
|
|
58
|
-
initials: t(_),
|
|
56
|
+
name: g,
|
|
59
57
|
entityType: e.type,
|
|
60
|
-
locationLabel:
|
|
61
|
-
billedAmountLabel:
|
|
62
|
-
receivedOrPaidAmountLabel:
|
|
63
|
-
dueOrOwedAmountLabel:
|
|
64
|
-
isBilledAmountLoading:
|
|
65
|
-
isReceivedOrPaidAmountLoading:
|
|
66
|
-
isDueOrOwedAmountLoading:
|
|
58
|
+
locationLabel: _(t?.get(e.id)),
|
|
59
|
+
billedAmountLabel: o ? m : n && !i ? s(l) : "",
|
|
60
|
+
receivedOrPaidAmountLabel: h ? m : n && r && !p ? s(f) : "",
|
|
61
|
+
dueOrOwedAmountLabel: c ? m : r && !a ? s(d) : "",
|
|
62
|
+
isBilledAmountLoading: i && !o,
|
|
63
|
+
isReceivedOrPaidAmountLoading: p && !h,
|
|
64
|
+
isDueOrOwedAmountLoading: a && !c
|
|
67
65
|
};
|
|
68
66
|
});
|
|
69
67
|
}
|
|
70
|
-
function
|
|
68
|
+
function g(e) {
|
|
71
69
|
if (!e) return [];
|
|
72
70
|
let t = [
|
|
73
71
|
e.city,
|
|
@@ -81,27 +79,27 @@ function _(e) {
|
|
|
81
79
|
e.country
|
|
82
80
|
].filter((e) => !!(e && e.trim()));
|
|
83
81
|
}
|
|
84
|
-
function
|
|
85
|
-
return e
|
|
82
|
+
function _(e) {
|
|
83
|
+
return !e?.country || !e.city ? "" : `${e.country} • ${e.city}`;
|
|
86
84
|
}
|
|
87
|
-
function
|
|
85
|
+
function v({ counterpart: e, primaryAddress: t }) {
|
|
88
86
|
return {
|
|
89
|
-
name:
|
|
87
|
+
name: u(e),
|
|
90
88
|
entityType: e.type,
|
|
91
|
-
email:
|
|
92
|
-
phone:
|
|
89
|
+
email: d(e),
|
|
90
|
+
phone: f(e),
|
|
93
91
|
taxId: e.tax_id ?? "",
|
|
94
|
-
addressLines:
|
|
95
|
-
createdAtLabel:
|
|
96
|
-
updatedAtLabel:
|
|
92
|
+
addressLines: g(t),
|
|
93
|
+
createdAtLabel: l(e.created_at),
|
|
94
|
+
updatedAtLabel: l(e.updated_at)
|
|
97
95
|
};
|
|
98
96
|
}
|
|
99
|
-
function
|
|
97
|
+
function y(e) {
|
|
100
98
|
if (e) return `•••• ${e.slice(-4)}`;
|
|
101
99
|
}
|
|
102
|
-
function
|
|
100
|
+
function b(e) {
|
|
103
101
|
return (e ?? []).map((e) => {
|
|
104
|
-
let t =
|
|
102
|
+
let t = y(e.iban || e.account_number || void 0), n = [e.currency, t].filter(Boolean).join(" · ");
|
|
105
103
|
return {
|
|
106
104
|
id: e.id,
|
|
107
105
|
primary: e.name || e.account_holder_name || e.currency,
|
|
@@ -110,17 +108,17 @@ function x(e) {
|
|
|
110
108
|
};
|
|
111
109
|
});
|
|
112
110
|
}
|
|
113
|
-
function
|
|
111
|
+
function x(e) {
|
|
114
112
|
let t = (e ?? []).filter((e) => e.currency === "USD" && (!!e.routing_number || !!e.account_number));
|
|
115
113
|
return t.find((e) => e.is_default_for_currency) ?? t[0];
|
|
116
114
|
}
|
|
117
|
-
function
|
|
118
|
-
let r = n && (e ?? []).find((e) => e.id === n &&
|
|
115
|
+
function S(e, t = "USD", n) {
|
|
116
|
+
let r = n && (e ?? []).find((e) => e.id === n && B(e));
|
|
119
117
|
if (r) return r;
|
|
120
118
|
let i = (e ?? []).filter((e) => e.currency === t && !!e.account_holder_name && !!e.routing_number && !!e.account_number);
|
|
121
119
|
return i.find((e) => e.is_default_for_currency) ?? i[0];
|
|
122
120
|
}
|
|
123
|
-
function
|
|
121
|
+
function C(e) {
|
|
124
122
|
return {
|
|
125
123
|
line1: e.line1.trim(),
|
|
126
124
|
line2: e.line2.trim() || void 0,
|
|
@@ -130,7 +128,7 @@ function w(e) {
|
|
|
130
128
|
country: "US"
|
|
131
129
|
};
|
|
132
130
|
}
|
|
133
|
-
function
|
|
131
|
+
function w(e) {
|
|
134
132
|
return {
|
|
135
133
|
line1: e.line1 ?? "",
|
|
136
134
|
line2: e.line2 ?? "",
|
|
@@ -139,10 +137,10 @@ function T(e) {
|
|
|
139
137
|
postalCode: e.postal_code ?? ""
|
|
140
138
|
};
|
|
141
139
|
}
|
|
142
|
-
function
|
|
143
|
-
return
|
|
140
|
+
function T(e) {
|
|
141
|
+
return C(e);
|
|
144
142
|
}
|
|
145
|
-
function
|
|
143
|
+
function E(e) {
|
|
146
144
|
return {
|
|
147
145
|
line1: e.line1.trim(),
|
|
148
146
|
line2: e.line2.trim(),
|
|
@@ -152,7 +150,7 @@ function D(e) {
|
|
|
152
150
|
country: "US"
|
|
153
151
|
};
|
|
154
152
|
}
|
|
155
|
-
function
|
|
153
|
+
function D(e = "organization", t) {
|
|
156
154
|
return {
|
|
157
155
|
entityType: e,
|
|
158
156
|
legalName: "",
|
|
@@ -163,7 +161,7 @@ function O(e = "organization", t) {
|
|
|
163
161
|
phone: "",
|
|
164
162
|
taxId: "",
|
|
165
163
|
remindersEnabled: t === "customer",
|
|
166
|
-
address: { ...
|
|
164
|
+
address: { ...r },
|
|
167
165
|
bankAccount: {
|
|
168
166
|
accountHolderName: "",
|
|
169
167
|
routingNumber: "",
|
|
@@ -171,11 +169,11 @@ function O(e = "organization", t) {
|
|
|
171
169
|
}
|
|
172
170
|
};
|
|
173
171
|
}
|
|
174
|
-
function
|
|
175
|
-
let n =
|
|
176
|
-
return n.email =
|
|
172
|
+
function O(e, t) {
|
|
173
|
+
let n = D(e.type);
|
|
174
|
+
return n.email = d(e), n.phone = f(e), n.taxId = e.tax_id ?? "", n.remindersEnabled = !!e.reminders_enabled, t && (n.address = w(t)), "organization" in e ? n.legalName = e.organization.legal_name : (n.firstName = e.individual.first_name, n.lastName = e.individual.last_name), n;
|
|
177
175
|
}
|
|
178
|
-
function
|
|
176
|
+
function k(e) {
|
|
179
177
|
return [
|
|
180
178
|
e.line1,
|
|
181
179
|
e.line2,
|
|
@@ -184,11 +182,11 @@ function A(e) {
|
|
|
184
182
|
e.postalCode
|
|
185
183
|
].some((e) => e.trim().length > 0);
|
|
186
184
|
}
|
|
187
|
-
function
|
|
188
|
-
return
|
|
185
|
+
function A(e) {
|
|
186
|
+
return k(e) ? C(e) : void 0;
|
|
189
187
|
}
|
|
190
|
-
function
|
|
191
|
-
let n = t === "customer", r = t === "vendor", i =
|
|
188
|
+
function j(e, t) {
|
|
189
|
+
let n = t === "customer", r = t === "vendor", i = A(e.address), a = e.taxId.trim() || void 0, o = e.email.trim(), s = e.phone.trim() || void 0, c = {
|
|
192
190
|
is_customer: n,
|
|
193
191
|
is_vendor: r,
|
|
194
192
|
language: "en",
|
|
@@ -217,7 +215,7 @@ function M(e, t) {
|
|
|
217
215
|
}
|
|
218
216
|
};
|
|
219
217
|
}
|
|
220
|
-
function
|
|
218
|
+
function M(e, t) {
|
|
221
219
|
let n = e.taxId.trim(), r = e.email.trim(), i = e.phone.trim(), a = {
|
|
222
220
|
reminders_enabled: t === "customer" ? e.remindersEnabled : void 0,
|
|
223
221
|
tax_id: n
|
|
@@ -239,31 +237,31 @@ function N(e, t) {
|
|
|
239
237
|
}
|
|
240
238
|
};
|
|
241
239
|
}
|
|
242
|
-
function
|
|
240
|
+
function N(e, t, r) {
|
|
243
241
|
let i = {
|
|
244
|
-
...
|
|
245
|
-
...
|
|
242
|
+
...n,
|
|
243
|
+
...r
|
|
246
244
|
}, a = e === "individual";
|
|
247
245
|
return {
|
|
248
|
-
label: a ?
|
|
246
|
+
label: a ? r?.taxIdSsnLabel ?? r?.taxIdLabel ?? i.taxIdSsnLabel : r?.taxIdEinLabel ?? r?.taxIdLabel ?? i.taxIdEinLabel,
|
|
249
247
|
placeholder: a ? i.taxIdSsnPlaceholder : i.taxIdEinPlaceholder,
|
|
250
248
|
description: t === "vendor" ? i.vendorTaxIdHelp : i.customerTaxIdHelp
|
|
251
249
|
};
|
|
252
250
|
}
|
|
253
|
-
function
|
|
254
|
-
return
|
|
251
|
+
function P(e) {
|
|
252
|
+
return k(e.address);
|
|
255
253
|
}
|
|
256
|
-
function
|
|
254
|
+
function F(e) {
|
|
257
255
|
return [
|
|
258
256
|
e.accountHolderName,
|
|
259
257
|
e.routingNumber,
|
|
260
258
|
e.accountNumber
|
|
261
259
|
].some((e) => e.trim().length > 0);
|
|
262
260
|
}
|
|
263
|
-
function
|
|
264
|
-
return
|
|
261
|
+
function I(e) {
|
|
262
|
+
return F(e.bankAccount);
|
|
265
263
|
}
|
|
266
|
-
function
|
|
264
|
+
function L(e, t = {}) {
|
|
267
265
|
return {
|
|
268
266
|
account_holder_name: e.accountHolderName.trim() || void 0,
|
|
269
267
|
account_number: e.accountNumber.trim() || void 0,
|
|
@@ -273,7 +271,7 @@ function R(e, t = {}) {
|
|
|
273
271
|
is_default_for_currency: t.isDefaultForCurrency ?? !0
|
|
274
272
|
};
|
|
275
273
|
}
|
|
276
|
-
function
|
|
274
|
+
function R(e, t = {}) {
|
|
277
275
|
return {
|
|
278
276
|
account_holder_name: e.accountHolderName.trim() || void 0,
|
|
279
277
|
account_number: e.accountNumber.trim() || void 0,
|
|
@@ -284,7 +282,7 @@ function z(e, t = {}) {
|
|
|
284
282
|
} : {}
|
|
285
283
|
};
|
|
286
284
|
}
|
|
287
|
-
function
|
|
285
|
+
function z(e) {
|
|
288
286
|
return [
|
|
289
287
|
e.account_number,
|
|
290
288
|
e.iban,
|
|
@@ -293,102 +291,102 @@ function B(e) {
|
|
|
293
291
|
e.bic
|
|
294
292
|
].every((e) => !e);
|
|
295
293
|
}
|
|
296
|
-
function
|
|
297
|
-
return
|
|
294
|
+
function B(e) {
|
|
295
|
+
return z(e) ? !0 : !(e.country !== "US" || e.currency !== "USD" || e.iban || e.sort_code || e.bic || !e.routing_number && !e.account_number);
|
|
298
296
|
}
|
|
299
|
-
function
|
|
297
|
+
function V(e, t) {
|
|
300
298
|
if (t) {
|
|
301
299
|
let n = e?.find((e) => e.id === t);
|
|
302
300
|
return {
|
|
303
301
|
kind: "update",
|
|
304
302
|
bankAccountId: t,
|
|
305
|
-
includeAchDefaults: n ?
|
|
303
|
+
includeAchDefaults: n ? z(n) : !1
|
|
306
304
|
};
|
|
307
305
|
}
|
|
308
|
-
let n = e?.find(
|
|
306
|
+
let n = e?.find(z);
|
|
309
307
|
return n ? {
|
|
310
308
|
kind: "update",
|
|
311
309
|
bankAccountId: n.id,
|
|
312
310
|
includeAchDefaults: !0
|
|
313
311
|
} : {
|
|
314
312
|
kind: "create",
|
|
315
|
-
isDefaultForCurrency: !(e ?? []).some((e) => e.currency === "USD" && e.is_default_for_currency &&
|
|
313
|
+
isDefaultForCurrency: !(e ?? []).some((e) => e.currency === "USD" && e.is_default_for_currency && B(e))
|
|
316
314
|
};
|
|
317
315
|
}
|
|
318
|
-
function
|
|
316
|
+
function H() {
|
|
319
317
|
return {
|
|
320
318
|
accountHolderName: "",
|
|
321
319
|
routingNumber: "",
|
|
322
320
|
accountNumber: ""
|
|
323
321
|
};
|
|
324
322
|
}
|
|
325
|
-
function
|
|
323
|
+
function U(e) {
|
|
326
324
|
return {
|
|
327
325
|
accountHolderName: e.account_holder_name ?? "",
|
|
328
326
|
routingNumber: e.routing_number ?? "",
|
|
329
327
|
accountNumber: e.account_number ?? ""
|
|
330
328
|
};
|
|
331
329
|
}
|
|
332
|
-
function
|
|
330
|
+
function W(e) {
|
|
333
331
|
return /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e);
|
|
334
332
|
}
|
|
335
|
-
function
|
|
333
|
+
function G(e, t) {
|
|
336
334
|
let n = {};
|
|
337
335
|
return e.line1.trim().length === 0 && (n.line1 = t.addressLine1Required), e.city.trim().length === 0 && (n.city = t.cityRequired), e.state.trim().length === 0 && (n.state = t.stateRequired), e.postalCode.trim().length === 0 && (n.postalCode = t.postalCodeRequired), n;
|
|
338
336
|
}
|
|
339
|
-
function
|
|
337
|
+
function K(e) {
|
|
340
338
|
return Object.values(e).some(Boolean);
|
|
341
339
|
}
|
|
342
|
-
function
|
|
340
|
+
function q(e) {
|
|
343
341
|
if (!/^\d{9}$/.test(e)) return !1;
|
|
344
342
|
let t = [...e].map(Number);
|
|
345
343
|
return (3 * (t[0] + t[3] + t[6]) + 7 * (t[1] + t[4] + t[7]) + (t[2] + t[5] + t[8])) % 10 == 0;
|
|
346
344
|
}
|
|
347
|
-
function
|
|
348
|
-
let r = {},
|
|
349
|
-
return
|
|
345
|
+
function J(e, n = i) {
|
|
346
|
+
let r = {}, a = e.accountHolderName.trim(), o = e.routingNumber.trim(), s = e.accountNumber.trim();
|
|
347
|
+
return a.length === 0 && (r.accountHolderName = n.accountHolderNameRequired), (o.length === 0 || !q(o)) && (r.routingNumber = n.routingNumberInvalid), t(s) || (r.accountNumber = n.accountNumberInvalid), r;
|
|
350
348
|
}
|
|
351
|
-
function
|
|
349
|
+
function Y(e) {
|
|
352
350
|
let t = (/^(\+?[\d\s().-]+?)\s*(?:(?:x|ext\.?)\s*\d+)?$/i.exec(e)?.[1])?.replace(/\D/g, "").length ?? 0;
|
|
353
351
|
return t >= 7 && t <= 15;
|
|
354
352
|
}
|
|
355
|
-
function
|
|
353
|
+
function X(e) {
|
|
356
354
|
return /^[\d\s-]+$/.test(e) && e.replace(/\D/g, "").length === 9;
|
|
357
355
|
}
|
|
358
|
-
function
|
|
356
|
+
function Z(e, t, n = i, r = "customer", a = !1) {
|
|
359
357
|
let o = {};
|
|
360
|
-
e.entityType === "organization" ? e.legalName.trim().length === 0 && (o.legalName = n.legalNameRequired) : (e.firstName.trim().length === 0 && (o.firstName = n.firstNameRequired), e.lastName.trim().length === 0 && (o.lastName = n.lastNameRequired)), e.email.trim().length === 0 ? o.email = n.emailRequired :
|
|
358
|
+
e.entityType === "organization" ? e.legalName.trim().length === 0 && (o.legalName = n.legalNameRequired) : (e.firstName.trim().length === 0 && (o.firstName = n.firstNameRequired), e.lastName.trim().length === 0 && (o.lastName = n.lastNameRequired)), e.email.trim().length === 0 ? o.email = n.emailRequired : W(e.email.trim()) || (o.email = n.emailInvalid);
|
|
361
359
|
let s = e.phone.trim();
|
|
362
|
-
s && !
|
|
360
|
+
s && !Y(s) && (o.phone = n.phoneInvalid);
|
|
363
361
|
let c = e.taxId.trim();
|
|
364
|
-
if (c && !
|
|
365
|
-
let t =
|
|
366
|
-
|
|
362
|
+
if (c && !X(c) && (o.taxId = n.taxIdInvalid), t === "create" && r === "vendor" || k(e.address)) {
|
|
363
|
+
let t = G(e.address, n);
|
|
364
|
+
K(t) && (o.address = t);
|
|
367
365
|
}
|
|
368
|
-
if (r === "vendor" && (
|
|
369
|
-
let t =
|
|
370
|
-
|
|
366
|
+
if (r === "vendor" && (a || I(e))) {
|
|
367
|
+
let t = J(e.bankAccount, n);
|
|
368
|
+
K(t) && (o.bankAccount = t);
|
|
371
369
|
}
|
|
372
370
|
return o;
|
|
373
371
|
}
|
|
374
|
-
function
|
|
372
|
+
function Q(e, t, n) {
|
|
375
373
|
if (!n) return e;
|
|
376
374
|
let r = { ...e };
|
|
377
375
|
return t.phone.trim() === n.phone.trim() && delete r.phone, t.taxId.trim() === n.taxId.trim() && delete r.taxId, r;
|
|
378
376
|
}
|
|
379
|
-
function
|
|
377
|
+
function $(e) {
|
|
380
378
|
let { address: t, bankAccount: n, ...r } = e;
|
|
381
|
-
return
|
|
379
|
+
return K(r) || (t ? K(t) : !1) || (n ? K(n) : !1);
|
|
382
380
|
}
|
|
383
|
-
function
|
|
384
|
-
return
|
|
381
|
+
function ee(e) {
|
|
382
|
+
return K(e);
|
|
385
383
|
}
|
|
386
|
-
function
|
|
387
|
-
return
|
|
384
|
+
function te(e, t = i) {
|
|
385
|
+
return G(e, t);
|
|
388
386
|
}
|
|
389
|
-
function
|
|
387
|
+
function ne() {
|
|
390
388
|
let e = globalThis.getSelection?.();
|
|
391
389
|
return !!(e && e.toString().length > 0);
|
|
392
390
|
}
|
|
393
391
|
//#endregion
|
|
394
|
-
export {
|
|
392
|
+
export { T as addressFormToCreatePayload, E as addressFormToUpdatePayload, w as addressResponseToFormValues, U as bankAccountToAchFormValues, p as buildAnalyticsMap, b as buildBankAccountItems, v as buildCounterpartDetailsView, N as buildCounterpartFormTaxIdField, h as buildCounterpartRows, L as counterpartFormBankAccountToCreatePayload, R as counterpartFormBankAccountToUpdatePayload, j as counterpartFormToCreatePayload, M as counterpartFormToUpdatePayload, O as counterpartToFormValues, H as emptyAchFormValues, D as emptyCounterpartFormValues, l as formatCounterpartDate, s as formatMoney, o as fromMinorUnits, x as getAchInstructions, d as getCounterpartEmail, u as getCounterpartName, S as getPayableAchInstructions, ee as hasAchFormErrors, F as hasAchFormValues, P as hasCounterpartFormAddressValues, I as hasCounterpartFormBankAccountValues, $ as hasCounterpartFormErrors, ne as hasSelectedText, B as isAchCompatibleBankAccount, V as resolveCounterpartBankAccountWrite, J as validateAchFormValues, te as validateAddressForm, Z as validateCounterpartForm, Q as withoutUnchangedContactErrors };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./lib/finopsApiVersion.js";
|
|
2
2
|
import "./lib/rest/client.gen.js";
|
|
3
3
|
import { bulkUpdateDepartmentMembers as e, bulkUpdateLocationMembers as t, bulkUpdateRoleMembers as n, createDepartment as r, createLocation as i, createUser as a, deactivateDepartment as o, deactivateLocation as s, deleteCounterpartsId as c, deleteCounterpartsIdBankAccountsId as l, deleteEntitiesIdLogo as u, deleteFilesId as d, deleteMeasureUnitsId as f, deletePayablesId as p, deletePayablesIdFile as m, deleteProductsId as h, deleteReceivablesId as g, downloadBankAccountTransactions as _, getApplicationStatus as v, getApprovalPolicies as y, getApprovalRequests as b, getBankAccountAccess as x, getBankAccountStatement as S, getCounterparts as C, getDepartment as w, getDepositableBankAccounts as T, getExternalBankAccountAccess as E, getLocation as D, getPayables as O, getPayablesId as k, getPayablesIdHistory as A, getPayablesIdLineItems as j, getPaymentRecords as M, getProducts as N, getReceipts as P, getReceivables as F, getReceivablesIdHistory as I, getUsers as L, listDepartments as R, listLocations as z, listRoles as B, manageBankAccountAccess as V, manageDebitCardAccess as H, patchCounterpartsId as U, patchCounterpartsIdAddressesId as W, patchCounterpartsIdBankAccountsId as G, patchEntitiesIdSettings as K, patchMeasureUnitsId as q, patchPayablesId as J, patchProductsId as Y, patchReceivablesId as X, patchRecurrencesId as Z, patchTransactionsId as Q, postApprovalRequestsIdApprove as $, postApprovalRequestsIdReject as ee, postBankDetails as te, postCounterparts as ne, postCounterpartsIdAddresses as re, postCounterpartsIdBankAccounts as ie, postFiles as ae, postMeasureUnits as oe, postOverdueReminders as se, postPayables as ce, postPayablesIdApprovePaymentOperation as le, postPayablesIdAttachFile as ue, postPayablesIdCancel as de, postPayablesIdDuplicatesIdConfirm as fe, postPayablesIdDuplicatesIdDismiss as pe, postPayablesIdMarkAsPaid as me, postPayablesIdReject as he, postPayablesIdReopen as ge, postPayablesIdSchedulePayment as _e, postPayablesIdSubmitForApproval as ve, postPayablesIdValidate as ye, postPayablesUploadFromFile as be, postPaymentIntentsIdCancel as xe, postPaymentLinks as Se, postPaymentRecords as Ce, postPaymentReminders as we, postProducts as Te, postReceivables as Ee, postReceivablesIdAccept as De, postReceivablesIdCancel as Oe, postReceivablesIdClone as ke, postReceivablesIdDecline as Ae, postReceivablesIdIssue as je, postReceivablesIdMarkAsPaid as Me, postReceivablesIdMarkAsUncollectible as Ne, postReceivablesIdSend as Pe, postRecurrences as Fe, postRecurrencesIdCancel as Ie, postRecurrencesIdPause as Le, postRecurrencesIdResume as Re, postTransactionsIdApprove as ze, postTransactionsIdReject as Be, postTransactionsIdReopen as Ve, postTransactionsIdSubmit as He, putEntitiesIdLogo as Ue, putPayablesIdLineItems as We, updateDepartment as Ge, updateLocation as Ke, updateUser as qe } from "./lib/rest/sdk.gen.js";
|
|
4
|
-
import { activateCreditCardMutation as Je, activateDebitCardMutation as Ye, connectExternalBankAccountMutation as Xe, createAchMoneyMovementMutation as Ze, createApplicationMutation as Qe, createBankAccountMutation as $e, createBookTransferMutation as et, createCheckDepositMutation as tt, createDebitCardMutation as nt, createVelocityControlMutation as rt, deleteApprovalPoliciesIdMutation as it, deleteBankAccountApplicationMutation as at, deleteLedgerAccountsIdMutation as ot, deleteReceiptsIdMutation as st, disableUserMutation as ct, getAnalyticsPayablesOptions as lt, getAnalyticsPayablesQueryKey as ut, getAnalyticsReceiptsOptions as dt, getAnalyticsReceiptsQueryKey as ft, getAnalyticsReceivablesOptions as pt, getAnalyticsReceivablesQueryKey as mt, getAnalyticsTransactionsOptions as ht, getAnalyticsTransactionsQueryKey as gt, getApprovalPoliciesOptions as _t, getApprovalPoliciesQueryKey as vt, getApprovalRequestsOptions as yt, getApprovalRequestsQueryKey as bt, getBankAccountAccessQueryKey as xt, getBankAccountApplicationOptions as St, getBankAccountOptions as Ct, getBankAccountQueryKey as wt, getBankAccountStatementsOptions as Tt, getBankAccountTransactionsOptions as Et, getBankAccountTransactionsQueryKey as Dt,
|
|
4
|
+
import { activateCreditCardMutation as Je, activateDebitCardMutation as Ye, connectExternalBankAccountMutation as Xe, createAchMoneyMovementMutation as Ze, createApplicationMutation as Qe, createBankAccountMutation as $e, createBookTransferMutation as et, createCheckDepositMutation as tt, createDebitCardMutation as nt, createVelocityControlMutation as rt, deleteApprovalPoliciesIdMutation as it, deleteBankAccountApplicationMutation as at, deleteLedgerAccountsIdMutation as ot, deleteReceiptsIdMutation as st, disableUserMutation as ct, getAnalyticsPayablesOptions as lt, getAnalyticsPayablesQueryKey as ut, getAnalyticsReceiptsOptions as dt, getAnalyticsReceiptsQueryKey as ft, getAnalyticsReceivablesOptions as pt, getAnalyticsReceivablesQueryKey as mt, getAnalyticsTransactionsOptions as ht, getAnalyticsTransactionsQueryKey as gt, getApprovalPoliciesOptions as _t, getApprovalPoliciesQueryKey as vt, getApprovalRequestsOptions as yt, getApprovalRequestsQueryKey as bt, getBankAccountAccessQueryKey as xt, getBankAccountApplicationOptions as St, getBankAccountOptions as Ct, getBankAccountQueryKey as wt, getBankAccountStatementsOptions as Tt, getBankAccountTransactionsOptions as Et, getBankAccountTransactionsQueryKey as Dt, getBankAccountsQueryKey as Ot, getBankDetailsIdOptions as kt, getBankDetailsOptions as At, getBankDetailsQueryKey as jt, getCounterpartsIdAddressesOptions as Mt, getCounterpartsIdAddressesQueryKey as Nt, getCounterpartsIdBankAccountsOptions as Pt, getCounterpartsIdBankAccountsQueryKey as Ft, getCounterpartsIdOptions as It, getCounterpartsIdQueryKey as Lt, getCounterpartsOptions as Rt, getCounterpartsQueryKey as zt, getCreditCardByIdOptions as Bt, getCreditCardByIdQueryKey as Vt, getCreditCardsOptions as Ht, getCreditCardsQueryKey as Ut, getDebitCardByIdOptions as Wt, getDebitCardByIdQueryKey as Gt, getDebitCardCredentialsOptions as Kt, getDebitCardsOptions as qt, getDebitCardsQueryKey as Jt, getDepartmentOptions as Yt, getDepartmentQueryKey as Xt, getDepositableBankAccountsOptions as Zt, getDocumentsIdNextNumbersOptions as Qt, getDocumentsIdNextNumbersQueryKey as $t, getEntitiesIdPaymentMethodsOptions as en, getEntitiesIdSettingsOptions as tn, getEntitiesIdSettingsQueryKey as nn, getEntityUsersOptions as rn, getExternalBankAccountAccessQueryKey as an, getExternalBankAccountOptions as on, getExternalBankAccountsOptions as sn, getExternalBankAccountsQueryKey as cn, getFilesQueryKey as ln, getLedgerAccountsQueryKey as un, getLocationOptions as dn, getLocationQueryKey as fn, getMeOptions as pn, getMeasureUnitsOptions as mn, getMeasureUnitsQueryKey as hn, getOrganizationOptions as gn, getOrganizationTransfersOptions as _n, getOrganizationTransfersQueryKey as vn, getOverdueRemindersOptions as yn, getOverdueRemindersQueryKey as bn, getPayablesIdHistoryOptions as xn, getPayablesIdHistoryQueryKey as Sn, getPayablesIdLineItemsOptions as Cn, getPayablesIdLineItemsQueryKey as wn, getPayablesIdOptions as Tn, getPayablesIdQueryKey as En, getPayablesIdSuggestionsOptions as Dn, getPayablesOptions as On, getPayablesQueryKey as kn, getPaymentRecordsOptions as An, getPaymentRecordsQueryKey as jn, getPaymentRemindersOptions as Mn, getPaymentRemindersQueryKey as Nn, getProductsIdOptions as Pn, getProductsIdQueryKey as Fn, getProductsOptions as In, getProductsQueryKey as Ln, getReceiptsIdQueryKey as Rn, getReceiptsOptions as zn, getReceiptsQueryKey as Bn, getReceivablesIdHistoryQueryKey as Vn, getReceivablesIdMailsQueryKey as Hn, getReceivablesIdOptions as Un, getReceivablesIdPdfLinkOptions as Wn, getReceivablesIdPdfLinkQueryKey as Gn, getReceivablesIdQueryKey as Kn, getReceivablesOptions as qn, getReceivablesQueryKey as Jn, getReceivablesRequiredFieldsOptions as Yn, getRecurrencesIdOptions as Xn, getRecurrencesIdQueryKey as Zn, getRecurrencesQueryKey as Qn, getTransactionsIdExpenseHistoryOptions as $n, getTransactionsIdExpenseHistoryQueryKey as er, getTransactionsIdOptions as tr, getTransactionsIdQueryKey as nr, getTransactionsOptions as rr, getTransactionsQueryKey as ir, getTransactionsValidationsOptions as ar, getTransactionsValidationsQueryKey as or, getUsersOptions as sr, getUsersQueryKey as cr, getVelocityControlsQueryKey as lr, grantBankAccountAccessMutation as ur, grantExternalBankAccountAccessMutation as dr, linkExternalBankAccountMutation as fr, listDepartmentsOptions as pr, listDepartmentsQueryKey as mr, listLocationsOptions as hr, listLocationsQueryKey as gr, listRolesQueryKey as _r, manageDebitCardAccessMutation as vr, patchApprovalPoliciesIdMutation as yr, patchLedgerAccountsIdMutation as br, patchReceiptsIdMutation as xr, postApprovalPoliciesMutation as Sr, postLedgerAccountsMutation as Cr, postReceiptsUploadFromFileMutation as wr, putTransactionsValidationsMutation as Tr, setDebitCardLockStatusMutation as Er, submitApplicationMutation as Dr, unlinkExternalBankAccountMutation as Or, updateApplicationMutation as kr, updateBankAccountMutation as Ar, updateDebitCardMutation as jr, updateExternalBankAccountMutation as Mr, validateExternalBankAccountMutation as Nr, verifyDebitCardMutation as Pr } from "./lib/rest/@tanstack/react-query.gen.js";
|
|
5
5
|
import { widgetTokenCacheId as Fr } from "./lib/widgetTokenCacheId.js";
|
|
6
6
|
import { OrganizationStatus as Ir, isOrganizationOnItsWay as Lr } from "./lib/organizationStatus.js";
|
|
7
7
|
import { withAuthEpoch as Rr, withAuthEpochInfinite as zr } from "./lib/withAuthEpoch.js";
|
|
@@ -45,4 +45,4 @@ import { useDisclosuresQuery as Ni } from "./lib/disclosures/useDisclosuresQuery
|
|
|
45
45
|
import { OnboardingSuppressionReason as Pi } from "./lib/onboardingSuppressionReason.js";
|
|
46
46
|
import { useOrganizationOnboardingSuppression as Fi } from "./lib/useOrganizationOnboardingSuppression.js";
|
|
47
47
|
import { useOrganizationApplicationStatus as Ii } from "./lib/useOrganizationApplicationStatus.js";
|
|
48
|
-
export { $r as EmbedApiProvider, Pi as OnboardingSuppressionReason, Ir as OrganizationStatus, hi as Scope, Je as activateCreditCardMutation, Ye as activateDebitCardMutation, Br as applicationStatusInvalidationKey, Vr as applicationStatusQueryOptions, Qr as attachTransportInterceptors, e as bulkUpdateDepartmentMembers, t as bulkUpdateLocationMembers, n as bulkUpdateRoleMembers, Ur as cancelAllClients, Xr as cloneEmbeddedClient, Xe as connectExternalBankAccountMutation, Ze as createAchMoneyMovementMutation, Qe as createApplicationMutation, $e as createBankAccountMutation, et as createBookTransferMutation, tt as createCheckDepositMutation, Hr as createClientSecretInstaller, nt as createDebitCardMutation, r as createDepartment, Zr as createEmbeddedClient, i as createLocation, a as createUser, rt as createVelocityControlMutation, o as deactivateDepartment, s as deactivateLocation, it as deleteApprovalPoliciesIdMutation, at as deleteBankAccountApplicationMutation, c as deleteCounterpartsId, l as deleteCounterpartsIdBankAccountsId, u as deleteEntitiesIdLogo, d as deleteFilesId, ot as deleteLedgerAccountsIdMutation, f as deleteMeasureUnitsId, p as deletePayablesId, m as deletePayablesIdFile, h as deleteProductsId, st as deleteReceiptsIdMutation, g as deleteReceivablesId, ct as disableUserMutation, _ as downloadBankAccountTransactions, ri as fetchWidgetInit, _i as getAllPagesNextPageParam, vi as getAllPagesNextPaginationTokenParam, lt as getAnalyticsPayablesOptions, ut as getAnalyticsPayablesQueryKey, dt as getAnalyticsReceiptsOptions, ft as getAnalyticsReceiptsQueryKey, pt as getAnalyticsReceivablesOptions, mt as getAnalyticsReceivablesQueryKey, ht as getAnalyticsTransactionsOptions, gt as getAnalyticsTransactionsQueryKey, v as getApplicationStatus, y as getApprovalPolicies, _t as getApprovalPoliciesOptions, vt as getApprovalPoliciesQueryKey, b as getApprovalRequests, yt as getApprovalRequestsOptions, bt as getApprovalRequestsQueryKey, x as getBankAccountAccess, xt as getBankAccountAccessQueryKey, St as getBankAccountApplicationOptions, Ct as getBankAccountOptions, wt as getBankAccountQueryKey, S as getBankAccountStatement, Tt as getBankAccountStatementsOptions, Et as getBankAccountTransactionsOptions, Dt as getBankAccountTransactionsQueryKey, Ot as
|
|
48
|
+
export { $r as EmbedApiProvider, Pi as OnboardingSuppressionReason, Ir as OrganizationStatus, hi as Scope, Je as activateCreditCardMutation, Ye as activateDebitCardMutation, Br as applicationStatusInvalidationKey, Vr as applicationStatusQueryOptions, Qr as attachTransportInterceptors, e as bulkUpdateDepartmentMembers, t as bulkUpdateLocationMembers, n as bulkUpdateRoleMembers, Ur as cancelAllClients, Xr as cloneEmbeddedClient, Xe as connectExternalBankAccountMutation, Ze as createAchMoneyMovementMutation, Qe as createApplicationMutation, $e as createBankAccountMutation, et as createBookTransferMutation, tt as createCheckDepositMutation, Hr as createClientSecretInstaller, nt as createDebitCardMutation, r as createDepartment, Zr as createEmbeddedClient, i as createLocation, a as createUser, rt as createVelocityControlMutation, o as deactivateDepartment, s as deactivateLocation, it as deleteApprovalPoliciesIdMutation, at as deleteBankAccountApplicationMutation, c as deleteCounterpartsId, l as deleteCounterpartsIdBankAccountsId, u as deleteEntitiesIdLogo, d as deleteFilesId, ot as deleteLedgerAccountsIdMutation, f as deleteMeasureUnitsId, p as deletePayablesId, m as deletePayablesIdFile, h as deleteProductsId, st as deleteReceiptsIdMutation, g as deleteReceivablesId, ct as disableUserMutation, _ as downloadBankAccountTransactions, ri as fetchWidgetInit, _i as getAllPagesNextPageParam, vi as getAllPagesNextPaginationTokenParam, lt as getAnalyticsPayablesOptions, ut as getAnalyticsPayablesQueryKey, dt as getAnalyticsReceiptsOptions, ft as getAnalyticsReceiptsQueryKey, pt as getAnalyticsReceivablesOptions, mt as getAnalyticsReceivablesQueryKey, ht as getAnalyticsTransactionsOptions, gt as getAnalyticsTransactionsQueryKey, v as getApplicationStatus, y as getApprovalPolicies, _t as getApprovalPoliciesOptions, vt as getApprovalPoliciesQueryKey, b as getApprovalRequests, yt as getApprovalRequestsOptions, bt as getApprovalRequestsQueryKey, x as getBankAccountAccess, xt as getBankAccountAccessQueryKey, St as getBankAccountApplicationOptions, Ct as getBankAccountOptions, wt as getBankAccountQueryKey, S as getBankAccountStatement, Tt as getBankAccountStatementsOptions, Et as getBankAccountTransactionsOptions, Dt as getBankAccountTransactionsQueryKey, Ot as getBankAccountsQueryKey, kt as getBankDetailsIdOptions, At as getBankDetailsOptions, jt as getBankDetailsQueryKey, C as getCounterparts, Mt as getCounterpartsIdAddressesOptions, Nt as getCounterpartsIdAddressesQueryKey, Pt as getCounterpartsIdBankAccountsOptions, Ft as getCounterpartsIdBankAccountsQueryKey, It as getCounterpartsIdOptions, Lt as getCounterpartsIdQueryKey, Rt as getCounterpartsOptions, zt as getCounterpartsQueryKey, Bt as getCreditCardByIdOptions, Vt as getCreditCardByIdQueryKey, Ht as getCreditCardsOptions, Ut as getCreditCardsQueryKey, Wt as getDebitCardByIdOptions, Gt as getDebitCardByIdQueryKey, Kt as getDebitCardCredentialsOptions, qt as getDebitCardsOptions, Jt as getDebitCardsQueryKey, w as getDepartment, Yt as getDepartmentOptions, Xt as getDepartmentQueryKey, T as getDepositableBankAccounts, Zt as getDepositableBankAccountsOptions, Qt as getDocumentsIdNextNumbersOptions, $t as getDocumentsIdNextNumbersQueryKey, en as getEntitiesIdPaymentMethodsOptions, tn as getEntitiesIdSettingsOptions, nn as getEntitiesIdSettingsQueryKey, rn as getEntityUsersOptions, E as getExternalBankAccountAccess, an as getExternalBankAccountAccessQueryKey, on as getExternalBankAccountOptions, sn as getExternalBankAccountsOptions, cn as getExternalBankAccountsQueryKey, ln as getFilesQueryKey, un as getLedgerAccountsQueryKey, D as getLocation, dn as getLocationOptions, fn as getLocationQueryKey, pn as getMeOptions, mn as getMeasureUnitsOptions, hn as getMeasureUnitsQueryKey, gn as getOrganizationOptions, _n as getOrganizationTransfersOptions, vn as getOrganizationTransfersQueryKey, yn as getOverdueRemindersOptions, bn as getOverdueRemindersQueryKey, O as getPayables, k as getPayablesId, A as getPayablesIdHistory, xn as getPayablesIdHistoryOptions, Sn as getPayablesIdHistoryQueryKey, j as getPayablesIdLineItems, Cn as getPayablesIdLineItemsOptions, wn as getPayablesIdLineItemsQueryKey, Tn as getPayablesIdOptions, En as getPayablesIdQueryKey, Dn as getPayablesIdSuggestionsOptions, On as getPayablesOptions, kn as getPayablesQueryKey, M as getPaymentRecords, An as getPaymentRecordsOptions, jn as getPaymentRecordsQueryKey, Mn as getPaymentRemindersOptions, Nn as getPaymentRemindersQueryKey, N as getProducts, Pn as getProductsIdOptions, Fn as getProductsIdQueryKey, In as getProductsOptions, Ln as getProductsQueryKey, P as getReceipts, Rn as getReceiptsIdQueryKey, zn as getReceiptsOptions, Bn as getReceiptsQueryKey, F as getReceivables, I as getReceivablesIdHistory, Vn as getReceivablesIdHistoryQueryKey, Hn as getReceivablesIdMailsQueryKey, Un as getReceivablesIdOptions, Wn as getReceivablesIdPdfLinkOptions, Gn as getReceivablesIdPdfLinkQueryKey, Kn as getReceivablesIdQueryKey, qn as getReceivablesOptions, Jn as getReceivablesQueryKey, Yn as getReceivablesRequiredFieldsOptions, Xn as getRecurrencesIdOptions, Zn as getRecurrencesIdQueryKey, Qn as getRecurrencesQueryKey, $n as getTransactionsIdExpenseHistoryOptions, er as getTransactionsIdExpenseHistoryQueryKey, tr as getTransactionsIdOptions, nr as getTransactionsIdQueryKey, rr as getTransactionsOptions, ir as getTransactionsQueryKey, ar as getTransactionsValidationsOptions, or as getTransactionsValidationsQueryKey, L as getUsers, sr as getUsersOptions, cr as getUsersQueryKey, lr as getVelocityControlsQueryKey, ur as grantBankAccountAccessMutation, dr as grantExternalBankAccountAccessMutation, ii as hasAnyScope, Wr as invalidateAllClients, yi as isAllPagesResolving, li as isApiConflictError, ui as isApiForbiddenError, di as isApiNotFoundError, fi as isApiUnprocessableError, Lr as isOrganizationOnItsWay, gi as isScope, fr as linkExternalBankAccountMutation, R as listDepartments, pr as listDepartmentsOptions, mr as listDepartmentsQueryKey, z as listLocations, hr as listLocationsOptions, gr as listLocationsQueryKey, B as listRoles, _r as listRolesQueryKey, V as manageBankAccountAccess, H as manageDebitCardAccess, vr as manageDebitCardAccessMutation, ai as myEntityInvalidationKey, ti as optionalOrganizationHeaders, ni as organizationHeaders, yr as patchApprovalPoliciesIdMutation, U as patchCounterpartsId, W as patchCounterpartsIdAddressesId, G as patchCounterpartsIdBankAccountsId, K as patchEntitiesIdSettings, br as patchLedgerAccountsIdMutation, q as patchMeasureUnitsId, J as patchPayablesId, Y as patchProductsId, xr as patchReceiptsIdMutation, X as patchReceivablesId, Z as patchRecurrencesId, Q as patchTransactionsId, ji as personDisclosure, Sr as postApprovalPoliciesMutation, $ as postApprovalRequestsIdApprove, ee as postApprovalRequestsIdReject, te as postBankDetails, ne as postCounterparts, re as postCounterpartsIdAddresses, ie as postCounterpartsIdBankAccounts, ae as postFiles, Cr as postLedgerAccountsMutation, oe as postMeasureUnits, se as postOverdueReminders, ce as postPayables, le as postPayablesIdApprovePaymentOperation, ue as postPayablesIdAttachFile, de as postPayablesIdCancel, fe as postPayablesIdDuplicatesIdConfirm, pe as postPayablesIdDuplicatesIdDismiss, me as postPayablesIdMarkAsPaid, he as postPayablesIdReject, ge as postPayablesIdReopen, _e as postPayablesIdSchedulePayment, ve as postPayablesIdSubmitForApproval, ye as postPayablesIdValidate, be as postPayablesUploadFromFile, xe as postPaymentIntentsIdCancel, Se as postPaymentLinks, Ce as postPaymentRecords, we as postPaymentReminders, Te as postProducts, wr as postReceiptsUploadFromFileMutation, Ee as postReceivables, De as postReceivablesIdAccept, Oe as postReceivablesIdCancel, ke as postReceivablesIdClone, Ae as postReceivablesIdDecline, je as postReceivablesIdIssue, Me as postReceivablesIdMarkAsPaid, Ne as postReceivablesIdMarkAsUncollectible, Pe as postReceivablesIdSend, Fe as postRecurrences, Ie as postRecurrencesIdCancel, Le as postRecurrencesIdPause, Re as postRecurrencesIdResume, ze as postTransactionsIdApprove, Be as postTransactionsIdReject, Ve as postTransactionsIdReopen, He as postTransactionsIdSubmit, Ue as putEntitiesIdLogo, We as putPayablesIdLineItems, Tr as putTransactionsValidationsMutation, Gr as registerQueryClient, Kr as removeInactiveFromAllClients, qr as resetAllClients, Jr as setAllClientsQueriesData, Er as setDebitCardLockStatusMutation, Dr as submitApplicationMutation, Or as unlinkExternalBankAccountMutation, Yr as unregisterQueryClient, kr as updateApplicationMutation, Ar as updateBankAccountMutation, jr as updateDebitCardMutation, Ge as updateDepartment, Mr as updateExternalBankAccountMutation, Ke as updateLocation, qe as updateUser, Mi as useAcceptWidgetDisclosures, xi as useAllBankAccountsQuery, Si as useAllDebitCardsQuery, Ci as useAllExternalBankAccountsQuery, Ti as useAllLedgerAccountsQuery, wi as useAllMerchantCategoryGroupsQuery, Oi as useAllOrganizationRolesQuery, Ai as useAllOrganizationUsersQuery, bi as useAutoFetchNextPage, oi as useCurrentUserQuery, Ni as useDisclosuresQuery, ei as useEmbedApi, pi as useGetUserDataQuery, Ei as useLedgerAccountsQuery, ci as useMailboxAddress, si as useMyEntityQuery, Ii as useOrganizationApplicationStatus, Fi as useOrganizationOnboardingSuppression, Di as usePaymentTermsQuery, ki as useRolePermissionsQueries, mi as useUpsertUserDataMutation, Nr as validateExternalBankAccountMutation, Pr as verifyDebitCardMutation, Fr as widgetTokenCacheId, Rr as withAuthEpoch, zr as withAuthEpochInfinite };
|