@tesouro/embedded-components-react 0.5.293 → 0.5.295

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 (52) hide show
  1. package/README.md +1 -1
  2. package/dist/index.d.ts +26 -1
  3. package/dist/lib/CounterpartsWidget.d.ts +2 -0
  4. package/dist/lib/CounterpartsWidgetPublic.d.ts +2 -0
  5. package/dist/lib/CustomersWidget.d.ts +2 -0
  6. package/dist/lib/ReceivablesWidget.d.ts +26 -1
  7. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index.js +4 -4
  8. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index11.js +3 -2
  9. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index14.js +5 -88
  10. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index15.js +70 -173
  11. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index16.js +210 -17
  12. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index17.js +29 -0
  13. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivablesWidget.js +6 -7
  14. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/details.js +142 -141
  15. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/helpers.js +84 -54
  16. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/labels.js +21 -3
  17. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/paymentTerms.js +27 -27
  18. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/recurrence.js +2 -1
  19. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/reminders.js +1 -1
  20. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/totals.js +13 -10
  21. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableActions.js +84 -80
  22. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableActionsModal.js +1 -1
  23. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableDetails.js +32 -30
  24. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableForm.js +417 -414
  25. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableIssuePreflight.js +1 -1
  26. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableReminders.js +1 -1
  27. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableStatusCards.js +1 -1
  28. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablesTable.js +83 -66
  29. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablesWidget.js +133 -129
  30. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useSendReceivableWithPaymentLink.js +26 -22
  31. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useUtcDayStart.js +16 -0
  32. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index13.js +0 -1
  33. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index15.js +20 -22
  34. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index23.js +2 -2
  35. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index40.js +1 -1
  36. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index44.js +91 -85
  37. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index45.js +1 -0
  38. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index51.js +119 -88
  39. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index53.js +19 -16
  40. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index57.js +130 -96
  41. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/helpers.js +24 -8
  42. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/labels.js +2 -0
  43. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useCounterpartForm.js +101 -98
  44. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index9.js +34 -20
  45. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +40 -39
  46. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/applicationStatusQueryOptions.js +6 -6
  47. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  48. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/interceptor.js +55 -41
  49. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/ui/dist/index6.js +4 -3
  50. package/dist/libs/tesouro-embedded-components-react/shared/util/dist/lib/widgetTokenManager.js +51 -30
  51. package/dist/packages/shared-ui-shadcn/dist/index.js +15 -10
  52. package/package.json +1 -1
@@ -398,9 +398,20 @@ function Z(e, t = i) {
398
398
  let r = {}, a = e.accountHolderName.trim(), o = e.routingNumber.trim(), s = e.accountNumber.trim();
399
399
  return a.length === 0 && (r.accountHolderName = t.accountHolderNameRequired), (o.length === 0 || !X(o)) && (r.routingNumber = t.routingNumberInvalid), n(s) || (r.accountNumber = t.accountNumberInvalid), r;
400
400
  }
401
- function Q(e, t, n = i, r = "customer", a = !1) {
401
+ function Q(e) {
402
+ let t = (/^(\+?[\d\s().-]+?)\s*(?:(?:x|ext\.?)\s*\d+)?$/i.exec(e)?.[1])?.replace(/\D/g, "").length ?? 0;
403
+ return t >= 7 && t <= 15;
404
+ }
405
+ function $(e) {
406
+ return /^[\d\s-]+$/.test(e) && e.replace(/\D/g, "").length === 9;
407
+ }
408
+ function ee(e, t, n = i, r = "customer", a = !1) {
402
409
  let o = {};
403
- if (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 : q(e.email.trim()) || (o.email = n.emailInvalid), t === "create" && r === "vendor" || j(e.address)) {
410
+ 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 : q(e.email.trim()) || (o.email = n.emailInvalid);
411
+ let s = e.phone.trim();
412
+ s && !Q(s) && (o.phone = n.phoneInvalid);
413
+ let c = e.taxId.trim();
414
+ if (c && !$(c) && (o.taxId = n.taxIdInvalid), t === "create" && r === "vendor" || j(e.address)) {
404
415
  let t = J(e.address, n);
405
416
  Y(t) && (o.address = t);
406
417
  }
@@ -410,23 +421,28 @@ function Q(e, t, n = i, r = "customer", a = !1) {
410
421
  }
411
422
  return o;
412
423
  }
413
- function $(e) {
424
+ function te(e, t, n) {
425
+ if (!n) return e;
426
+ let r = { ...e };
427
+ return t.phone.trim() === n.phone.trim() && delete r.phone, t.taxId.trim() === n.taxId.trim() && delete r.taxId, r;
428
+ }
429
+ function ne(e) {
414
430
  let { address: t, bankAccount: n, ...r } = e;
415
431
  return Y(r) || (t ? Y(t) : !1) || (n ? Y(n) : !1);
416
432
  }
417
- function ee(e, t = i) {
433
+ function re(e, t = i) {
418
434
  let n = {};
419
435
  return e.accountNumber.trim().length === 0 && e.iban.trim().length === 0 && (n.accountNumber = t.bankAccountIdentifierRequired), e.currency.trim().length === 0 && (n.currency = t.bankAccountCurrencyRequired), n;
420
436
  }
421
- function te(e) {
437
+ function ie(e) {
422
438
  return Y(e);
423
439
  }
424
- function ne(e, t = i) {
440
+ function ae(e, t = i) {
425
441
  return J(e, t);
426
442
  }
427
- function re() {
443
+ function oe() {
428
444
  let e = globalThis.getSelection?.();
429
445
  return !!(e && e.toString().length > 0);
430
446
  }
431
447
  //#endregion
432
- export { D as addressFormToCreatePayload, O as addressFormToUpdatePayload, E as addressResponseToFormValues, G as bankAccountFormToCreatePayload, K as bankAccountFormToUpdatePayload, W as bankAccountToFormValues, h as buildAnalyticsMap, S as buildBankAccountItems, b as buildCounterpartDetailsView, _ as buildCounterpartRows, R as counterpartFormBankAccountToCreatePayload, z as counterpartFormBankAccountToUpdatePayload, N as counterpartFormToCreatePayload, P as counterpartFormToUpdatePayload, A as counterpartToFormValues, U as emptyBankAccountFormValues, k as emptyCounterpartFormValues, d as formatCounterpartDate, l as formatMoney, c as fromMinorUnits, C as getAchInstructions, p as getCounterpartEmail, f as getCounterpartName, o as getCurrencyOptions, w as getPayableAchInstructions, I as hasAchFormValues, te as hasBankAccountFormErrors, F as hasCounterpartFormAddressValues, L as hasCounterpartFormBankAccountValues, $ as hasCounterpartFormErrors, re as hasSelectedText, V as isAchCompatibleBankAccount, H as resolveCounterpartBankAccountWrite, Z as validateAchFormValues, ne as validateAddressForm, ee as validateBankAccountForm, Q as validateCounterpartForm };
448
+ export { D as addressFormToCreatePayload, O as addressFormToUpdatePayload, E as addressResponseToFormValues, G as bankAccountFormToCreatePayload, K as bankAccountFormToUpdatePayload, W as bankAccountToFormValues, h as buildAnalyticsMap, S as buildBankAccountItems, b as buildCounterpartDetailsView, _ as buildCounterpartRows, R as counterpartFormBankAccountToCreatePayload, z as counterpartFormBankAccountToUpdatePayload, N as counterpartFormToCreatePayload, P as counterpartFormToUpdatePayload, A as counterpartToFormValues, U as emptyBankAccountFormValues, k as emptyCounterpartFormValues, d as formatCounterpartDate, l as formatMoney, c as fromMinorUnits, C as getAchInstructions, p as getCounterpartEmail, f as getCounterpartName, o as getCurrencyOptions, w as getPayableAchInstructions, I as hasAchFormValues, ie as hasBankAccountFormErrors, F as hasCounterpartFormAddressValues, L as hasCounterpartFormBankAccountValues, ne as hasCounterpartFormErrors, oe as hasSelectedText, V as isAchCompatibleBankAccount, H as resolveCounterpartBankAccountWrite, Z as validateAchFormValues, ae as validateAddressForm, re as validateBankAccountForm, ee as validateCounterpartForm, te as withoutUnchangedContactErrors };
@@ -5,6 +5,8 @@ var e = {
5
5
  lastNameRequired: "Last name is required",
6
6
  emailRequired: "Email is required",
7
7
  emailInvalid: "Enter a valid email address",
8
+ phoneInvalid: "Enter a valid phone number",
9
+ taxIdInvalid: "Enter a valid 9-digit tax ID",
8
10
  addressLine1Required: "Address line 1 is required",
9
11
  cityRequired: "City is required",
10
12
  stateRequired: "State is required",
@@ -3,37 +3,39 @@
3
3
  "use client";
4
4
  "use client";
5
5
  import { extractApiErrorMessage as e } from "../../../../util/dist/lib/apiErrors.js";
6
- import { addressFormToCreatePayload as t, addressFormToUpdatePayload as n, addressResponseToFormValues as r, counterpartFormBankAccountToCreatePayload as i, counterpartFormBankAccountToUpdatePayload as a, counterpartFormToCreatePayload as o, counterpartFormToUpdatePayload as s, counterpartToFormValues as c, emptyCounterpartFormValues as l, getAchInstructions as u, hasCounterpartFormAddressValues as d, hasCounterpartFormBankAccountValues as f, hasCounterpartFormErrors as p, resolveCounterpartBankAccountWrite as m, validateCounterpartForm as h } from "./helpers.js";
7
- import { useCreateCounterpartMutation as g, useUpdateCounterpartMutation as ee } from "../../../data-access/dist/index3.js";
8
- import { useCreateCounterpartBankAccountMutation as te, useUpdateCounterpartBankAccountMutation as _ } from "../../../data-access/dist/index5.js";
9
- import { useCreateCounterpartAddressMutation as v, useUpdateCounterpartAddressMutation as y } from "../../../data-access/dist/index7.js";
6
+ import { addressFormToCreatePayload as t, addressFormToUpdatePayload as n, addressResponseToFormValues as r, counterpartFormBankAccountToCreatePayload as i, counterpartFormBankAccountToUpdatePayload as ee, counterpartFormToCreatePayload as a, counterpartFormToUpdatePayload as o, counterpartToFormValues as s, emptyCounterpartFormValues as c, getAchInstructions as l, hasCounterpartFormAddressValues as u, hasCounterpartFormBankAccountValues as d, hasCounterpartFormErrors as f, resolveCounterpartBankAccountWrite as p, validateCounterpartForm as m, withoutUnchangedContactErrors as te } from "./helpers.js";
7
+ import { useCreateCounterpartMutation as h, useUpdateCounterpartMutation as g } from "../../../data-access/dist/index3.js";
8
+ import { useCreateCounterpartBankAccountMutation as _, useUpdateCounterpartBankAccountMutation as v } from "../../../data-access/dist/index5.js";
9
+ import { useCreateCounterpartAddressMutation as y, useUpdateCounterpartAddressMutation as b } from "../../../data-access/dist/index7.js";
10
10
  import "../../../data-access/dist/index.js";
11
- import { useCallback as b, useState as x } from "react";
11
+ import { useCallback as x, useState as S } from "react";
12
12
  //#region ../../libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useCounterpartForm.js
13
- function S(e, t) {
14
- if (!t) return d(e);
13
+ function C(e, t) {
14
+ if (!t) return u(e);
15
15
  let n = r(t);
16
16
  return e.address.line1.trim() !== n.line1.trim() || e.address.line2.trim() !== n.line2.trim() || e.address.city.trim() !== n.city.trim() || e.address.state.trim() !== n.state.trim() || e.address.postalCode.trim() !== n.postalCode.trim();
17
17
  }
18
- function C(e) {
18
+ function w(e) {
19
19
  return {
20
20
  accountHolderName: e.account_holder_name ?? "",
21
21
  routingNumber: e.routing_number ?? "",
22
22
  accountNumber: e.account_number ?? ""
23
23
  };
24
24
  }
25
- function w(e, t) {
26
- if (!t) return f(e);
27
- let n = C(t);
25
+ function T(e, t) {
26
+ if (!t) return d(e);
27
+ let n = w(t);
28
28
  return e.bankAccount.accountHolderName.trim() !== n.accountHolderName.trim() || e.bankAccount.routingNumber.trim() !== n.routingNumber.trim() || e.bankAccount.accountNumber.trim() !== n.accountNumber.trim();
29
29
  }
30
- function T(e, t) {
30
+ function E(e, t) {
31
31
  let n = { ...e };
32
32
  if ([
33
33
  "legalName",
34
34
  "firstName",
35
35
  "lastName",
36
- "email"
36
+ "email",
37
+ "phone",
38
+ "taxId"
37
39
  ].forEach((e) => {
38
40
  n[e] && !t[e] && delete n[e];
39
41
  }), e.address) {
@@ -50,147 +52,148 @@ function T(e, t) {
50
52
  }
51
53
  return JSON.stringify(n) === JSON.stringify(e) ? e : n;
52
54
  }
53
- function E({ view: r, setView: E, selectedId: D, setSelectedId: O, messages: k, counterpartType: A, counterpart: j, primaryAddress: M, bankAccounts: N, isBankAccountsLoading: P, isBankAccountsError: F, includeBankAccount: I = !0 }) {
54
- let L = A === "vendor" && I, R = g(), z = v(), B = te(), V = ee(), H = y(), U = _(), [W, G] = x(() => l()), [K, q] = x({}), [J, Y] = x({
55
+ function D({ view: r, setView: D, selectedId: O, setSelectedId: k, messages: A, counterpartType: j, counterpart: M, primaryAddress: N, bankAccounts: P, isBankAccountsLoading: F, isBankAccountsError: I, includeBankAccount: L = !0 }) {
56
+ let R = j === "vendor" && L, z = h(), B = y(), V = _(), H = g(), U = b(), W = v(), [G, K] = S(() => c()), [q, J] = S({}), [ne, Y] = S({
55
57
  address: !1,
56
58
  bankAccount: !1
57
- }), [X, Z] = x(), [Q, $] = x(), ne = R.isPending || z.isPending || B.isPending || U.isPending || V.isPending || H.isPending, re = b(() => {
58
- O(void 0), $(void 0), Z(void 0), Y({
59
- address: A === "vendor",
59
+ }), [X, Z] = S(), [Q, $] = S(), re = z.isPending || B.isPending || V.isPending || W.isPending || H.isPending || U.isPending, ie = x(() => {
60
+ k(void 0), $(void 0), Z(void 0), Y({
61
+ address: j === "vendor",
60
62
  bankAccount: !1
61
- }), G(l("organization", A)), q({}), E("create");
63
+ }), K(c("organization", j)), J({}), D("create");
62
64
  }, [
63
- A,
64
- O,
65
- E
66
- ]), ie = b(() => {
67
- if (!j || L && (P || F)) return;
68
- let e = L ? u(N) : void 0, t = c(j, M);
65
+ j,
66
+ k,
67
+ D
68
+ ]), ae = x(() => {
69
+ if (!M || R && (F || I)) return;
70
+ let e = R ? l(P) : void 0, t = s(M, N);
69
71
  $(void 0), Z(e?.id), Y({
70
- address: d(t),
72
+ address: u(t),
71
73
  bankAccount: !1
72
- }), G({
74
+ }), K({
73
75
  ...t,
74
- ...e ? { bankAccount: C(e) } : {}
75
- }), q({}), E("edit");
76
+ ...e ? { bankAccount: w(e) } : {}
77
+ }), J({}), D("edit");
76
78
  }, [
77
- N,
78
- j,
79
- F,
80
79
  P,
81
80
  M,
82
- E,
83
- L
84
- ]), ae = b(() => {
85
- E("none");
86
- }, [E]), oe = b(() => {
81
+ I,
82
+ F,
83
+ N,
84
+ D,
85
+ R
86
+ ]), oe = x(() => {
87
+ D("none");
88
+ }, [D]), se = x(() => {
87
89
  Y((e) => ({
88
90
  ...e,
89
91
  address: !0
90
92
  }));
91
- }, []), se = b((e) => {
92
- G((t) => {
93
+ }, []), ce = x((e) => {
94
+ K((t) => {
93
95
  let n = typeof e == "function" ? e(t) : e;
94
- return q((e) => p(e) ? T(e, h(n, r === "edit" ? "edit" : "create", k, A, r === "edit" && L && !!X)) : e), n;
96
+ return J((e) => f(e) ? E(e, m(n, r === "edit" ? "edit" : "create", A, j, r === "edit" && R && !!X)) : e), n;
95
97
  });
96
98
  }, [
97
99
  X,
100
+ j,
98
101
  A,
99
- k,
100
102
  r,
101
- L
102
- ]), ce = b(() => {
103
- G((e) => (q(h(e, r === "edit" ? "edit" : "create", k, A)), e));
103
+ R
104
+ ]), le = x(() => {
105
+ K((e) => (J(m(e, r === "edit" ? "edit" : "create", A, j)), e));
104
106
  }, [
107
+ j,
105
108
  A,
106
- k,
107
109
  r
108
110
  ]);
109
111
  return {
110
- values: W,
111
- errors: K,
112
- setValues: se,
113
- isSubmitting: ne,
114
- sectionsToExpand: J,
115
- expandAddress: oe,
116
- openCreate: re,
117
- openEdit: ie,
118
- close: ae,
119
- submit: b(async () => {
120
- let c = r === "edit" ? "edit" : "create", l = h(W, c, k, A, c === "edit" && L && !!X);
121
- if (p(l)) return q(l), Y((e) => ({
122
- address: e.address || !!l.address,
123
- bankAccount: e.bankAccount || !!l.bankAccount
112
+ values: G,
113
+ errors: q,
114
+ setValues: ce,
115
+ isSubmitting: re,
116
+ sectionsToExpand: ne,
117
+ expandAddress: se,
118
+ openCreate: ie,
119
+ openEdit: ae,
120
+ close: oe,
121
+ submit: x(async () => {
122
+ let c = r === "edit" ? "edit" : "create", h = te(m(G, c, A, j, c === "edit" && R && !!X), G, c === "edit" && M ? s(M, N) : void 0);
123
+ if (f(h)) return J(h), Y((e) => ({
124
+ address: e.address || !!h.address,
125
+ bankAccount: e.bankAccount || !!h.bankAccount
124
126
  })), { ok: !1 };
125
- q({}), Y({
127
+ J({}), Y({
126
128
  address: !1,
127
129
  bankAccount: !1
128
130
  });
129
131
  let g = Q;
130
132
  try {
131
- if (r === "edit" && D) {
132
- $(void 0), await V.mutateAsync({
133
- path: { counterpart_id: D },
134
- body: s(W, A)
133
+ if (r === "edit" && O) {
134
+ $(void 0), await H.mutateAsync({
135
+ path: { counterpart_id: O },
136
+ body: o(G, j)
135
137
  });
136
- let e = M ? S(W, M) ? H.mutateAsync({
138
+ let e = N ? C(G, N) ? U.mutateAsync({
137
139
  path: {
138
- counterpart_id: D,
139
- address_id: M.id
140
+ counterpart_id: O,
141
+ address_id: N.id
140
142
  },
141
- body: n(W.address)
142
- }) : void 0 : d(W) ? z.mutateAsync({
143
- path: { counterpart_id: D },
144
- body: t(W.address)
145
- }) : void 0, r = L && w(W, u(N)) ? m(N, X) : void 0, o = r?.kind === "update" ? U.mutateAsync({
143
+ body: n(G.address)
144
+ }) : void 0 : u(G) ? B.mutateAsync({
145
+ path: { counterpart_id: O },
146
+ body: t(G.address)
147
+ }) : void 0, r = R && T(G, l(P)) ? p(P, X) : void 0, a = r?.kind === "update" ? W.mutateAsync({
146
148
  path: {
147
- counterpart_id: D,
149
+ counterpart_id: O,
148
150
  bank_account_id: r.bankAccountId
149
151
  },
150
- body: a(W.bankAccount, { includeAchDefaults: r.includeAchDefaults })
151
- }) : r?.kind === "create" ? B.mutateAsync({
152
- path: { counterpart_id: D },
153
- body: i(W.bankAccount, { isDefaultForCurrency: r.isDefaultForCurrency })
154
- }) : void 0, [c, l] = await Promise.allSettled([e, o]);
155
- if (r?.kind === "create" && l.status === "fulfilled" && Z(l.value?.id), c.status === "rejected") throw c.reason;
156
- if (l.status === "rejected") throw l.reason;
157
- return E("none"), {
152
+ body: ee(G.bankAccount, { includeAchDefaults: r.includeAchDefaults })
153
+ }) : r?.kind === "create" ? V.mutateAsync({
154
+ path: { counterpart_id: O },
155
+ body: i(G.bankAccount, { isDefaultForCurrency: r.isDefaultForCurrency })
156
+ }) : void 0, [s, c] = await Promise.allSettled([e, a]);
157
+ if (r?.kind === "create" && c.status === "fulfilled" && Z(c.value?.id), s.status === "rejected") throw s.reason;
158
+ if (c.status === "rejected") throw c.reason;
159
+ return D("none"), {
158
160
  ok: !0,
159
- counterpartId: D
161
+ counterpartId: O
160
162
  };
161
163
  }
162
- return g ||= (await R.mutateAsync({ body: o(W, A) }))?.id, g && L && f(W) && ($(g), await B.mutateAsync({
164
+ return g ||= (await z.mutateAsync({ body: a(G, j) }))?.id, g && R && d(G) && ($(g), await V.mutateAsync({
163
165
  path: { counterpart_id: g },
164
- body: i(W.bankAccount)
165
- })), $(void 0), E("none"), g && O(g), {
166
+ body: i(G.bankAccount)
167
+ })), $(void 0), D("none"), g && k(g), {
166
168
  ok: !0,
167
169
  counterpartId: g
168
170
  };
169
171
  } catch (t) {
170
- return g && ($(g), O(g)), q({ form: e(t) ?? k.genericError }), { ok: !1 };
172
+ return g && ($(g), k(g)), J({ form: e(t) ?? A.genericError }), { ok: !1 };
171
173
  }
172
174
  }, [
173
175
  r,
174
- W,
175
- D,
176
+ G,
177
+ O,
176
178
  Q,
177
- k,
178
179
  A,
180
+ j,
179
181
  M,
180
182
  N,
183
+ P,
181
184
  X,
182
- z,
183
185
  B,
184
- R,
185
- H,
186
- U,
187
186
  V,
188
- E,
189
- O,
190
- L
187
+ z,
188
+ U,
189
+ W,
190
+ H,
191
+ D,
192
+ k,
193
+ R
191
194
  ]),
192
- revealErrors: ce
195
+ revealErrors: le
193
196
  };
194
197
  }
195
198
  //#endregion
196
- export { E as useCounterpartForm };
199
+ export { D as useCounterpartForm };
@@ -204,16 +204,21 @@ function D({ open: c, onOpenChange: l, mode: h, counterpartMode: _ = "customer",
204
204
  ]
205
205
  }), /* @__PURE__ */ b("div", {
206
206
  className: "ttw:flex ttw:flex-col ttw:gap-1.5",
207
- children: [/* @__PURE__ */ y(i, {
208
- htmlFor: `${H}-phone`,
209
- requirement: n.Optional,
210
- labels: B.fieldMarkers,
211
- children: B.phoneLabel
212
- }), /* @__PURE__ */ y(r, {
213
- id: `${H}-phone`,
214
- value: w.phone,
215
- onChange: (e) => j({ phone: e.target.value })
216
- })]
207
+ children: [
208
+ /* @__PURE__ */ y(i, {
209
+ htmlFor: `${H}-phone`,
210
+ requirement: n.Optional,
211
+ labels: B.fieldMarkers,
212
+ children: B.phoneLabel
213
+ }),
214
+ /* @__PURE__ */ y(r, {
215
+ id: `${H}-phone`,
216
+ value: w.phone,
217
+ "aria-invalid": !!D?.phone,
218
+ onChange: (e) => j({ phone: e.target.value })
219
+ }),
220
+ /* @__PURE__ */ y(u, { message: D?.phone })
221
+ ]
217
222
  })]
218
223
  }),
219
224
  V.taxId && /* @__PURE__ */ b("div", {
@@ -228,8 +233,10 @@ function D({ open: c, onOpenChange: l, mode: h, counterpartMode: _ = "customer",
228
233
  /* @__PURE__ */ y(r, {
229
234
  id: `${H}-tax-id`,
230
235
  value: w.taxId,
236
+ "aria-invalid": !!D?.taxId,
231
237
  onChange: (e) => j({ taxId: e.target.value })
232
238
  }),
239
+ /* @__PURE__ */ y(u, { message: D?.taxId }),
233
240
  /* @__PURE__ */ y(s, {
234
241
  variant: "caption",
235
242
  className: "ttw:text-muted-foreground",
@@ -431,16 +438,21 @@ function O({ mode: a, counterpartMode: c = "customer", values: l, errors: m, sta
431
438
  ]
432
439
  }), /* @__PURE__ */ b("div", {
433
440
  className: "ttw:flex ttw:flex-col ttw:gap-1.5",
434
- children: [/* @__PURE__ */ y(i, {
435
- htmlFor: `${P}-phone`,
436
- requirement: n.Optional,
437
- labels: M.fieldMarkers,
438
- children: M.phoneLabel
439
- }), /* @__PURE__ */ y(r, {
440
- id: `${P}-phone`,
441
- value: l.phone,
442
- onChange: (e) => _({ phone: e.target.value })
443
- })]
441
+ children: [
442
+ /* @__PURE__ */ y(i, {
443
+ htmlFor: `${P}-phone`,
444
+ requirement: n.Optional,
445
+ labels: M.fieldMarkers,
446
+ children: M.phoneLabel
447
+ }),
448
+ /* @__PURE__ */ y(r, {
449
+ id: `${P}-phone`,
450
+ value: l.phone,
451
+ "aria-invalid": !!m?.phone,
452
+ onChange: (e) => _({ phone: e.target.value })
453
+ }),
454
+ /* @__PURE__ */ y(u, { message: m?.phone })
455
+ ]
444
456
  })]
445
457
  }),
446
458
  N.taxId && /* @__PURE__ */ b("div", {
@@ -455,8 +467,10 @@ function O({ mode: a, counterpartMode: c = "customer", values: l, errors: m, sta
455
467
  /* @__PURE__ */ y(r, {
456
468
  id: `${P}-tax-id`,
457
469
  value: l.taxId,
470
+ "aria-invalid": !!m?.taxId,
458
471
  onChange: (e) => _({ taxId: e.target.value })
459
472
  }),
473
+ /* @__PURE__ */ y(u, { message: m?.taxId }),
460
474
  /* @__PURE__ */ y(s, {
461
475
  variant: "caption",
462
476
  className: "ttw:text-muted-foreground",
@@ -2,46 +2,47 @@ 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, postCounterpartsIdBankAccountsIdMakeDefault as ae, postFiles as oe, postMeasureUnits as se, postOverdueReminders as ce, postPayables as le, postPayablesIdApprovePaymentOperation as ue, postPayablesIdAttachFile as de, postPayablesIdCancel as fe, postPayablesIdDuplicatesIdConfirm as pe, postPayablesIdDuplicatesIdDismiss as me, postPayablesIdMarkAsPaid as he, postPayablesIdReject as ge, postPayablesIdReopen as _e, postPayablesIdSchedulePayment as ve, postPayablesIdSubmitForApproval as ye, postPayablesIdValidate as be, postPayablesUploadFromFile as xe, postPaymentIntentsIdCancel as Se, postPaymentLinks as Ce, postPaymentRecords as we, postPaymentReminders as Te, postProducts as Ee, postReceivables as De, postReceivablesIdAccept as Oe, postReceivablesIdCancel as ke, postReceivablesIdClone as Ae, postReceivablesIdDecline as je, postReceivablesIdIssue as Me, postReceivablesIdMarkAsPaid as Ne, postReceivablesIdMarkAsUncollectible as Pe, postReceivablesIdSend as Fe, postRecurrences as Ie, postRecurrencesIdCancel as Le, postRecurrencesIdPause as Re, postRecurrencesIdResume as ze, postTransactionsIdApprove as Be, postTransactionsIdReject as Ve, postTransactionsIdReopen as He, postTransactionsIdSubmit as Ue, putEntitiesIdLogo as We, putPayablesIdLineItems as Ge, updateDepartment as Ke, updateLocation as qe, updateUser as Je } from "./lib/rest/sdk.gen.js";
4
4
  import { activateCreditCardMutation as Ye, activateDebitCardMutation as Xe, connectExternalBankAccountMutation as Ze, createAchMoneyMovementMutation as Qe, createApplicationMutation as $e, createBankAccountMutation as et, createBookTransferMutation as tt, createCheckDepositMutation as nt, createDebitCardMutation as rt, createVelocityControlMutation as it, deleteApprovalPoliciesIdMutation as at, deleteBankAccountApplicationMutation as ot, deleteLedgerAccountsIdMutation as st, deleteReceiptsIdMutation as ct, disableUserMutation as lt, getAnalyticsPayablesOptions as ut, getAnalyticsPayablesQueryKey as dt, getAnalyticsReceiptsOptions as ft, getAnalyticsReceiptsQueryKey as pt, getAnalyticsReceivablesOptions as mt, getAnalyticsReceivablesQueryKey as ht, getAnalyticsTransactionsOptions as gt, getAnalyticsTransactionsQueryKey as _t, getApprovalPoliciesOptions as vt, getApprovalPoliciesQueryKey as yt, getApprovalRequestsOptions as bt, getApprovalRequestsQueryKey as xt, getBankAccountAccessQueryKey as St, getBankAccountApplicationOptions as Ct, getBankAccountOptions as wt, getBankAccountQueryKey as Tt, getBankAccountStatementsOptions as Et, getBankAccountTransactionsOptions as Dt, getBankAccountTransactionsQueryKey as Ot, getBankAccountTransfersOptions as kt, getBankAccountTransfersQueryKey as At, getBankAccountsQueryKey as jt, getBankDetailsIdOptions as Mt, getBankDetailsOptions as Nt, getBankDetailsQueryKey as Pt, getCounterpartsIdAddressesOptions as Ft, getCounterpartsIdAddressesQueryKey as It, getCounterpartsIdBankAccountsOptions as Lt, getCounterpartsIdBankAccountsQueryKey as Rt, getCounterpartsIdOptions as zt, getCounterpartsIdQueryKey as Bt, getCounterpartsOptions as Vt, getCounterpartsQueryKey as Ht, getCreditCardByIdOptions as Ut, getCreditCardByIdQueryKey as Wt, getCreditCardsOptions as Gt, getCreditCardsQueryKey as Kt, getDebitCardByIdOptions as qt, getDebitCardByIdQueryKey as Jt, getDebitCardCredentialsOptions as Yt, getDebitCardsOptions as Xt, getDebitCardsQueryKey as Zt, getDepartmentOptions as Qt, getDepartmentQueryKey as $t, getDepositableBankAccountsOptions as en, getDocumentsIdNextNumbersOptions as tn, getDocumentsIdNextNumbersQueryKey as nn, getEntitiesIdPaymentMethodsOptions as rn, getEntitiesIdSettingsOptions as an, getEntitiesIdSettingsQueryKey as on, getEntityUsersOptions as sn, getExternalBankAccountAccessQueryKey as cn, getExternalBankAccountOptions as ln, getExternalBankAccountsOptions as un, getExternalBankAccountsQueryKey as dn, getFilesQueryKey as fn, getLedgerAccountsQueryKey as pn, getLocationOptions as mn, getLocationQueryKey as hn, getMeOptions as gn, getMeasureUnitsOptions as _n, getMeasureUnitsQueryKey as vn, getOrganizationOptions as yn, getOverdueRemindersOptions as bn, getOverdueRemindersQueryKey as xn, getPayablesIdHistoryOptions as Sn, getPayablesIdHistoryQueryKey as Cn, getPayablesIdLineItemsOptions as wn, getPayablesIdLineItemsQueryKey as Tn, getPayablesIdOptions as En, getPayablesIdQueryKey as Dn, getPayablesIdSuggestionsOptions as On, getPayablesOptions as kn, getPayablesQueryKey as An, getPaymentRecordsOptions as jn, getPaymentRecordsQueryKey as Mn, getPaymentRemindersOptions as Nn, getPaymentRemindersQueryKey as Pn, getProductsIdOptions as Fn, getProductsIdQueryKey as In, getProductsOptions as Ln, getProductsQueryKey as Rn, getReceiptsIdQueryKey as zn, getReceiptsOptions as Bn, getReceiptsQueryKey as Vn, getReceivablesIdHistoryQueryKey as Hn, getReceivablesIdMailsQueryKey as Un, getReceivablesIdOptions as Wn, getReceivablesIdPdfLinkOptions as Gn, getReceivablesIdPdfLinkQueryKey as Kn, getReceivablesIdQueryKey as qn, getReceivablesOptions as Jn, getReceivablesQueryKey as Yn, getReceivablesRequiredFieldsOptions as Xn, getRecurrencesIdOptions as Zn, getRecurrencesIdQueryKey as Qn, getRecurrencesQueryKey as $n, getTransactionsIdExpenseHistoryOptions as er, getTransactionsIdExpenseHistoryQueryKey as tr, getTransactionsIdOptions as nr, getTransactionsIdQueryKey as rr, getTransactionsOptions as ir, getTransactionsQueryKey as ar, getTransactionsValidationsOptions as or, getTransactionsValidationsQueryKey as sr, getUsersOptions as cr, getUsersQueryKey as lr, getVelocityControlsQueryKey as ur, grantBankAccountAccessMutation as dr, grantExternalBankAccountAccessMutation as fr, linkExternalBankAccountMutation as pr, listDepartmentsOptions as mr, listDepartmentsQueryKey as hr, listLocationsOptions as gr, listLocationsQueryKey as _r, listRolesQueryKey as vr, manageDebitCardAccessMutation as yr, patchApprovalPoliciesIdMutation as br, patchLedgerAccountsIdMutation as xr, patchReceiptsIdMutation as Sr, postApprovalPoliciesMutation as Cr, postLedgerAccountsMutation as wr, postReceiptsUploadFromFileMutation as Tr, putTransactionsValidationsMutation as Er, setDebitCardLockStatusMutation as Dr, submitApplicationMutation as Or, unlinkExternalBankAccountMutation as kr, updateApplicationMutation as Ar, updateBankAccountMutation as jr, updateDebitCardMutation as Mr, updateExternalBankAccountMutation as Nr, validateExternalBankAccountMutation as Pr, verifyDebitCardMutation as Fr } from "./lib/rest/@tanstack/react-query.gen.js";
5
- import { OrganizationStatus as Ir, isOrganizationOnItsWay as Lr } from "./lib/organizationStatus.js";
6
- import { withAuthEpoch as Rr, withAuthEpochInfinite as zr } from "./lib/withAuthEpoch.js";
7
- import { applicationStatusInvalidationKey as Br, applicationStatusQueryOptions as Vr } from "./lib/applicationStatusQueryOptions.js";
8
- import { createClientSecretInstaller as Hr } from "./lib/scopedClientSecret.js";
9
- import { cancelAllClients as Ur, invalidateAllClients as Wr, registerQueryClient as Gr, removeInactiveFromAllClients as Kr, resetAllClients as qr, setAllClientsQueriesData as Jr, unregisterQueryClient as Yr } from "./lib/clientRegistry.js";
10
- import { cloneEmbeddedClient as Xr, createEmbeddedClient as Zr } from "./lib/createEmbeddedClient.js";
5
+ import { widgetTokenCacheId as Ir } from "./lib/widgetTokenCacheId.js";
6
+ import { OrganizationStatus as Lr, isOrganizationOnItsWay as Rr } from "./lib/organizationStatus.js";
7
+ import { withAuthEpoch as zr, withAuthEpochInfinite as Br } from "./lib/withAuthEpoch.js";
8
+ import { applicationStatusInvalidationKey as Vr, applicationStatusQueryOptions as Hr } from "./lib/applicationStatusQueryOptions.js";
9
+ import { createClientSecretInstaller as Ur } from "./lib/scopedClientSecret.js";
10
+ import { cancelAllClients as Wr, invalidateAllClients as Gr, registerQueryClient as Kr, removeInactiveFromAllClients as qr, resetAllClients as Jr, setAllClientsQueriesData as Yr, unregisterQueryClient as Xr } from "./lib/clientRegistry.js";
11
+ import { cloneEmbeddedClient as Zr, createEmbeddedClient as Qr } from "./lib/createEmbeddedClient.js";
11
12
  import "./lib/widgetGatewayHosts.js";
12
- import { attachTransportInterceptors as Qr } from "./lib/transportInterceptors.js";
13
- import { EmbedApiProvider as $r, useEmbedApi as ei } from "./lib/EmbedApiContext.js";
14
- import { optionalOrganizationHeaders as ti, organizationHeaders as ni } from "./lib/organizationHeaders.js";
15
- import { fetchWidgetInit as ri } from "./lib/fetchWidgetInit.js";
16
- import { hasAnyScope as ii } from "./lib/hasAnyScope.js";
17
- import { myEntityInvalidationKey as ai } from "./lib/queryKeys.js";
18
- import { useCurrentUserQuery as oi } from "./lib/useCurrentUserQuery.js";
19
- import { useMyEntityQuery as si } from "./lib/useMyEntityQuery.js";
20
- import { useMailboxAddress as ci } from "./lib/useMailboxAddress.js";
13
+ import { attachTransportInterceptors as $r } from "./lib/transportInterceptors.js";
14
+ import { EmbedApiProvider as ei, useEmbedApi as ti } from "./lib/EmbedApiContext.js";
15
+ import { optionalOrganizationHeaders as ni, organizationHeaders as ri } from "./lib/organizationHeaders.js";
16
+ import { fetchWidgetInit as ii } from "./lib/fetchWidgetInit.js";
17
+ import { hasAnyScope as ai } from "./lib/hasAnyScope.js";
18
+ import { myEntityInvalidationKey as oi } from "./lib/queryKeys.js";
19
+ import { useCurrentUserQuery as si } from "./lib/useCurrentUserQuery.js";
20
+ import { useMyEntityQuery as ci } from "./lib/useMyEntityQuery.js";
21
+ import { useMailboxAddress as li } from "./lib/useMailboxAddress.js";
21
22
  import "./lib/apiErrorStatus.js";
22
- import { isApiConflictError as li } from "./lib/isApiConflictError.js";
23
- import { isApiForbiddenError as ui } from "./lib/isApiForbiddenError.js";
24
- import { isApiNotFoundError as di } from "./lib/isApiNotFoundError.js";
25
- import { isApiUnprocessableError as fi } from "./lib/isApiUnprocessableError.js";
23
+ import { isApiConflictError as ui } from "./lib/isApiConflictError.js";
24
+ import { isApiForbiddenError as di } from "./lib/isApiForbiddenError.js";
25
+ import { isApiNotFoundError as fi } from "./lib/isApiNotFoundError.js";
26
+ import { isApiUnprocessableError as pi } from "./lib/isApiUnprocessableError.js";
26
27
  import "./lib/isUserDataNotFoundError.js";
27
- import { useGetUserDataQuery as pi } from "./lib/useGetUserDataQuery.js";
28
- import { useUpsertUserDataMutation as mi } from "./lib/useUpsertUserDataMutation.js";
28
+ import { useGetUserDataQuery as mi } from "./lib/useGetUserDataQuery.js";
29
+ import { useUpsertUserDataMutation as hi } from "./lib/useUpsertUserDataMutation.js";
29
30
  import "./lib/rest/zod.gen.js";
30
- import { Scope as hi, isScope as gi } from "./lib/scopes.js";
31
- import { getAllPagesNextPageParam as _i, getAllPagesNextPaginationTokenParam as vi, isAllPagesResolving as yi, useAutoFetchNextPage as bi } from "./lib/allPages.js";
32
- import { useAllBankAccountsQuery as xi } from "./lib/bank-account/useAllBankAccountsQuery.js";
33
- import { useAllDebitCardsQuery as Si } from "./lib/debit-card/useAllDebitCardsQuery.js";
34
- import { useAllExternalBankAccountsQuery as Ci } from "./lib/external-bank-account/useAllExternalBankAccountsQuery.js";
35
- import { useAllMerchantCategoryGroupsQuery as wi } from "./lib/merchant-category-group/useAllMerchantCategoryGroupsQuery.js";
36
- import { useAllLedgerAccountsQuery as Ti, useLedgerAccountsQuery as Ei } from "./lib/reference-data/useLedgerAccountsQuery.js";
37
- import { usePaymentTermsQuery as Di } from "./lib/reference-data/usePaymentTermsQuery.js";
38
- import { useAllOrganizationRolesQuery as Oi } from "./lib/role/useAllOrganizationRolesQuery.js";
39
- import { useRolePermissionsQueries as ki } from "./lib/role/useRolePermissionsQueries.js";
40
- import { useAllOrganizationUsersQuery as Ai } from "./lib/user/useAllOrganizationUsersQuery.js";
41
- import { personDisclosure as ji } from "./lib/disclosures/personDisclosure.js";
42
- import { useAcceptWidgetDisclosures as Mi } from "./lib/disclosures/useAcceptWidgetDisclosures.js";
43
- import { useDisclosuresQuery as Ni } from "./lib/disclosures/useDisclosuresQuery.js";
44
- import { OnboardingSuppressionReason as Pi } from "./lib/onboardingSuppressionReason.js";
45
- import { useOrganizationOnboardingSuppression as Fi } from "./lib/useOrganizationOnboardingSuppression.js";
46
- import { useOrganizationApplicationStatus as Ii } from "./lib/useOrganizationApplicationStatus.js";
47
- export { $r as EmbedApiProvider, Pi as OnboardingSuppressionReason, Ir as OrganizationStatus, hi as Scope, Ye as activateCreditCardMutation, Xe 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, Ze as connectExternalBankAccountMutation, Qe as createAchMoneyMovementMutation, $e as createApplicationMutation, et as createBankAccountMutation, tt as createBookTransferMutation, nt as createCheckDepositMutation, Hr as createClientSecretInstaller, rt as createDebitCardMutation, r as createDepartment, Zr as createEmbeddedClient, i as createLocation, a as createUser, it as createVelocityControlMutation, o as deactivateDepartment, s as deactivateLocation, at as deleteApprovalPoliciesIdMutation, ot as deleteBankAccountApplicationMutation, c as deleteCounterpartsId, l as deleteCounterpartsIdBankAccountsId, u as deleteEntitiesIdLogo, d as deleteFilesId, st as deleteLedgerAccountsIdMutation, f as deleteMeasureUnitsId, p as deletePayablesId, m as deletePayablesIdFile, h as deleteProductsId, ct as deleteReceiptsIdMutation, g as deleteReceivablesId, lt as disableUserMutation, _ as downloadBankAccountTransactions, ri as fetchWidgetInit, _i as getAllPagesNextPageParam, vi as getAllPagesNextPaginationTokenParam, ut as getAnalyticsPayablesOptions, dt as getAnalyticsPayablesQueryKey, ft as getAnalyticsReceiptsOptions, pt as getAnalyticsReceiptsQueryKey, mt as getAnalyticsReceivablesOptions, ht as getAnalyticsReceivablesQueryKey, gt as getAnalyticsTransactionsOptions, _t as getAnalyticsTransactionsQueryKey, v as getApplicationStatus, y as getApprovalPolicies, vt as getApprovalPoliciesOptions, yt as getApprovalPoliciesQueryKey, b as getApprovalRequests, bt as getApprovalRequestsOptions, xt as getApprovalRequestsQueryKey, x as getBankAccountAccess, St as getBankAccountAccessQueryKey, Ct as getBankAccountApplicationOptions, wt as getBankAccountOptions, Tt as getBankAccountQueryKey, S as getBankAccountStatement, Et as getBankAccountStatementsOptions, Dt as getBankAccountTransactionsOptions, Ot as getBankAccountTransactionsQueryKey, kt as getBankAccountTransfersOptions, At as getBankAccountTransfersQueryKey, jt as getBankAccountsQueryKey, Mt as getBankDetailsIdOptions, Nt as getBankDetailsOptions, Pt as getBankDetailsQueryKey, C as getCounterparts, Ft as getCounterpartsIdAddressesOptions, It as getCounterpartsIdAddressesQueryKey, Lt as getCounterpartsIdBankAccountsOptions, Rt as getCounterpartsIdBankAccountsQueryKey, zt as getCounterpartsIdOptions, Bt as getCounterpartsIdQueryKey, Vt as getCounterpartsOptions, Ht as getCounterpartsQueryKey, Ut as getCreditCardByIdOptions, Wt as getCreditCardByIdQueryKey, Gt as getCreditCardsOptions, Kt as getCreditCardsQueryKey, qt as getDebitCardByIdOptions, Jt as getDebitCardByIdQueryKey, Yt as getDebitCardCredentialsOptions, Xt as getDebitCardsOptions, Zt as getDebitCardsQueryKey, w as getDepartment, Qt as getDepartmentOptions, $t as getDepartmentQueryKey, T as getDepositableBankAccounts, en as getDepositableBankAccountsOptions, tn as getDocumentsIdNextNumbersOptions, nn as getDocumentsIdNextNumbersQueryKey, rn as getEntitiesIdPaymentMethodsOptions, an as getEntitiesIdSettingsOptions, on as getEntitiesIdSettingsQueryKey, sn as getEntityUsersOptions, E as getExternalBankAccountAccess, cn as getExternalBankAccountAccessQueryKey, ln as getExternalBankAccountOptions, un as getExternalBankAccountsOptions, dn as getExternalBankAccountsQueryKey, fn as getFilesQueryKey, pn as getLedgerAccountsQueryKey, D as getLocation, mn as getLocationOptions, hn as getLocationQueryKey, gn as getMeOptions, _n as getMeasureUnitsOptions, vn as getMeasureUnitsQueryKey, yn as getOrganizationOptions, bn as getOverdueRemindersOptions, xn as getOverdueRemindersQueryKey, O as getPayables, k as getPayablesId, A as getPayablesIdHistory, Sn as getPayablesIdHistoryOptions, Cn as getPayablesIdHistoryQueryKey, j as getPayablesIdLineItems, wn as getPayablesIdLineItemsOptions, Tn as getPayablesIdLineItemsQueryKey, En as getPayablesIdOptions, Dn as getPayablesIdQueryKey, On as getPayablesIdSuggestionsOptions, kn as getPayablesOptions, An as getPayablesQueryKey, M as getPaymentRecords, jn as getPaymentRecordsOptions, Mn as getPaymentRecordsQueryKey, Nn as getPaymentRemindersOptions, Pn as getPaymentRemindersQueryKey, N as getProducts, Fn as getProductsIdOptions, In as getProductsIdQueryKey, Ln as getProductsOptions, Rn as getProductsQueryKey, P as getReceipts, zn as getReceiptsIdQueryKey, Bn as getReceiptsOptions, Vn as getReceiptsQueryKey, F as getReceivables, I as getReceivablesIdHistory, Hn as getReceivablesIdHistoryQueryKey, Un as getReceivablesIdMailsQueryKey, Wn as getReceivablesIdOptions, Gn as getReceivablesIdPdfLinkOptions, Kn as getReceivablesIdPdfLinkQueryKey, qn as getReceivablesIdQueryKey, Jn as getReceivablesOptions, Yn as getReceivablesQueryKey, Xn as getReceivablesRequiredFieldsOptions, Zn as getRecurrencesIdOptions, Qn as getRecurrencesIdQueryKey, $n as getRecurrencesQueryKey, er as getTransactionsIdExpenseHistoryOptions, tr as getTransactionsIdExpenseHistoryQueryKey, nr as getTransactionsIdOptions, rr as getTransactionsIdQueryKey, ir as getTransactionsOptions, ar as getTransactionsQueryKey, or as getTransactionsValidationsOptions, sr as getTransactionsValidationsQueryKey, L as getUsers, cr as getUsersOptions, lr as getUsersQueryKey, ur as getVelocityControlsQueryKey, dr as grantBankAccountAccessMutation, fr 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, pr as linkExternalBankAccountMutation, R as listDepartments, mr as listDepartmentsOptions, hr as listDepartmentsQueryKey, z as listLocations, gr as listLocationsOptions, _r as listLocationsQueryKey, B as listRoles, vr as listRolesQueryKey, V as manageBankAccountAccess, H as manageDebitCardAccess, yr as manageDebitCardAccessMutation, ai as myEntityInvalidationKey, ti as optionalOrganizationHeaders, ni as organizationHeaders, br as patchApprovalPoliciesIdMutation, U as patchCounterpartsId, W as patchCounterpartsIdAddressesId, G as patchCounterpartsIdBankAccountsId, K as patchEntitiesIdSettings, xr as patchLedgerAccountsIdMutation, q as patchMeasureUnitsId, J as patchPayablesId, Y as patchProductsId, Sr as patchReceiptsIdMutation, X as patchReceivablesId, Z as patchRecurrencesId, Q as patchTransactionsId, ji as personDisclosure, Cr as postApprovalPoliciesMutation, $ as postApprovalRequestsIdApprove, ee as postApprovalRequestsIdReject, te as postBankDetails, ne as postCounterparts, re as postCounterpartsIdAddresses, ie as postCounterpartsIdBankAccounts, ae as postCounterpartsIdBankAccountsIdMakeDefault, oe as postFiles, wr as postLedgerAccountsMutation, se as postMeasureUnits, ce as postOverdueReminders, le as postPayables, ue as postPayablesIdApprovePaymentOperation, de as postPayablesIdAttachFile, fe as postPayablesIdCancel, pe as postPayablesIdDuplicatesIdConfirm, me as postPayablesIdDuplicatesIdDismiss, he as postPayablesIdMarkAsPaid, ge as postPayablesIdReject, _e as postPayablesIdReopen, ve as postPayablesIdSchedulePayment, ye as postPayablesIdSubmitForApproval, be as postPayablesIdValidate, xe as postPayablesUploadFromFile, Se as postPaymentIntentsIdCancel, Ce as postPaymentLinks, we as postPaymentRecords, Te as postPaymentReminders, Ee as postProducts, Tr as postReceiptsUploadFromFileMutation, De as postReceivables, Oe as postReceivablesIdAccept, ke as postReceivablesIdCancel, Ae as postReceivablesIdClone, je as postReceivablesIdDecline, Me as postReceivablesIdIssue, Ne as postReceivablesIdMarkAsPaid, Pe as postReceivablesIdMarkAsUncollectible, Fe as postReceivablesIdSend, Ie as postRecurrences, Le as postRecurrencesIdCancel, Re as postRecurrencesIdPause, ze as postRecurrencesIdResume, Be as postTransactionsIdApprove, Ve as postTransactionsIdReject, He as postTransactionsIdReopen, Ue as postTransactionsIdSubmit, We as putEntitiesIdLogo, Ge as putPayablesIdLineItems, Er as putTransactionsValidationsMutation, Gr as registerQueryClient, Kr as removeInactiveFromAllClients, qr as resetAllClients, Jr as setAllClientsQueriesData, Dr as setDebitCardLockStatusMutation, Or as submitApplicationMutation, kr as unlinkExternalBankAccountMutation, Yr as unregisterQueryClient, Ar as updateApplicationMutation, jr as updateBankAccountMutation, Mr as updateDebitCardMutation, Ke as updateDepartment, Nr as updateExternalBankAccountMutation, qe as updateLocation, Je 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, Pr as validateExternalBankAccountMutation, Fr as verifyDebitCardMutation, Rr as withAuthEpoch, zr as withAuthEpochInfinite };
31
+ import { Scope as gi, isScope as _i } from "./lib/scopes.js";
32
+ import { getAllPagesNextPageParam as vi, getAllPagesNextPaginationTokenParam as yi, isAllPagesResolving as bi, useAutoFetchNextPage as xi } from "./lib/allPages.js";
33
+ import { useAllBankAccountsQuery as Si } from "./lib/bank-account/useAllBankAccountsQuery.js";
34
+ import { useAllDebitCardsQuery as Ci } from "./lib/debit-card/useAllDebitCardsQuery.js";
35
+ import { useAllExternalBankAccountsQuery as wi } from "./lib/external-bank-account/useAllExternalBankAccountsQuery.js";
36
+ import { useAllMerchantCategoryGroupsQuery as Ti } from "./lib/merchant-category-group/useAllMerchantCategoryGroupsQuery.js";
37
+ import { useAllLedgerAccountsQuery as Ei, useLedgerAccountsQuery as Di } from "./lib/reference-data/useLedgerAccountsQuery.js";
38
+ import { usePaymentTermsQuery as Oi } from "./lib/reference-data/usePaymentTermsQuery.js";
39
+ import { useAllOrganizationRolesQuery as ki } from "./lib/role/useAllOrganizationRolesQuery.js";
40
+ import { useRolePermissionsQueries as Ai } from "./lib/role/useRolePermissionsQueries.js";
41
+ import { useAllOrganizationUsersQuery as ji } from "./lib/user/useAllOrganizationUsersQuery.js";
42
+ import { personDisclosure as Mi } from "./lib/disclosures/personDisclosure.js";
43
+ import { useAcceptWidgetDisclosures as Ni } from "./lib/disclosures/useAcceptWidgetDisclosures.js";
44
+ import { useDisclosuresQuery as Pi } from "./lib/disclosures/useDisclosuresQuery.js";
45
+ import { OnboardingSuppressionReason as Fi } from "./lib/onboardingSuppressionReason.js";
46
+ import { useOrganizationOnboardingSuppression as Ii } from "./lib/useOrganizationOnboardingSuppression.js";
47
+ import { useOrganizationApplicationStatus as Li } from "./lib/useOrganizationApplicationStatus.js";
48
+ export { ei as EmbedApiProvider, Fi as OnboardingSuppressionReason, Lr as OrganizationStatus, gi as Scope, Ye as activateCreditCardMutation, Xe as activateDebitCardMutation, Vr as applicationStatusInvalidationKey, Hr as applicationStatusQueryOptions, $r as attachTransportInterceptors, e as bulkUpdateDepartmentMembers, t as bulkUpdateLocationMembers, n as bulkUpdateRoleMembers, Wr as cancelAllClients, Zr as cloneEmbeddedClient, Ze as connectExternalBankAccountMutation, Qe as createAchMoneyMovementMutation, $e as createApplicationMutation, et as createBankAccountMutation, tt as createBookTransferMutation, nt as createCheckDepositMutation, Ur as createClientSecretInstaller, rt as createDebitCardMutation, r as createDepartment, Qr as createEmbeddedClient, i as createLocation, a as createUser, it as createVelocityControlMutation, o as deactivateDepartment, s as deactivateLocation, at as deleteApprovalPoliciesIdMutation, ot as deleteBankAccountApplicationMutation, c as deleteCounterpartsId, l as deleteCounterpartsIdBankAccountsId, u as deleteEntitiesIdLogo, d as deleteFilesId, st as deleteLedgerAccountsIdMutation, f as deleteMeasureUnitsId, p as deletePayablesId, m as deletePayablesIdFile, h as deleteProductsId, ct as deleteReceiptsIdMutation, g as deleteReceivablesId, lt as disableUserMutation, _ as downloadBankAccountTransactions, ii as fetchWidgetInit, vi as getAllPagesNextPageParam, yi as getAllPagesNextPaginationTokenParam, ut as getAnalyticsPayablesOptions, dt as getAnalyticsPayablesQueryKey, ft as getAnalyticsReceiptsOptions, pt as getAnalyticsReceiptsQueryKey, mt as getAnalyticsReceivablesOptions, ht as getAnalyticsReceivablesQueryKey, gt as getAnalyticsTransactionsOptions, _t as getAnalyticsTransactionsQueryKey, v as getApplicationStatus, y as getApprovalPolicies, vt as getApprovalPoliciesOptions, yt as getApprovalPoliciesQueryKey, b as getApprovalRequests, bt as getApprovalRequestsOptions, xt as getApprovalRequestsQueryKey, x as getBankAccountAccess, St as getBankAccountAccessQueryKey, Ct as getBankAccountApplicationOptions, wt as getBankAccountOptions, Tt as getBankAccountQueryKey, S as getBankAccountStatement, Et as getBankAccountStatementsOptions, Dt as getBankAccountTransactionsOptions, Ot as getBankAccountTransactionsQueryKey, kt as getBankAccountTransfersOptions, At as getBankAccountTransfersQueryKey, jt as getBankAccountsQueryKey, Mt as getBankDetailsIdOptions, Nt as getBankDetailsOptions, Pt as getBankDetailsQueryKey, C as getCounterparts, Ft as getCounterpartsIdAddressesOptions, It as getCounterpartsIdAddressesQueryKey, Lt as getCounterpartsIdBankAccountsOptions, Rt as getCounterpartsIdBankAccountsQueryKey, zt as getCounterpartsIdOptions, Bt as getCounterpartsIdQueryKey, Vt as getCounterpartsOptions, Ht as getCounterpartsQueryKey, Ut as getCreditCardByIdOptions, Wt as getCreditCardByIdQueryKey, Gt as getCreditCardsOptions, Kt as getCreditCardsQueryKey, qt as getDebitCardByIdOptions, Jt as getDebitCardByIdQueryKey, Yt as getDebitCardCredentialsOptions, Xt as getDebitCardsOptions, Zt as getDebitCardsQueryKey, w as getDepartment, Qt as getDepartmentOptions, $t as getDepartmentQueryKey, T as getDepositableBankAccounts, en as getDepositableBankAccountsOptions, tn as getDocumentsIdNextNumbersOptions, nn as getDocumentsIdNextNumbersQueryKey, rn as getEntitiesIdPaymentMethodsOptions, an as getEntitiesIdSettingsOptions, on as getEntitiesIdSettingsQueryKey, sn as getEntityUsersOptions, E as getExternalBankAccountAccess, cn as getExternalBankAccountAccessQueryKey, ln as getExternalBankAccountOptions, un as getExternalBankAccountsOptions, dn as getExternalBankAccountsQueryKey, fn as getFilesQueryKey, pn as getLedgerAccountsQueryKey, D as getLocation, mn as getLocationOptions, hn as getLocationQueryKey, gn as getMeOptions, _n as getMeasureUnitsOptions, vn as getMeasureUnitsQueryKey, yn as getOrganizationOptions, bn as getOverdueRemindersOptions, xn as getOverdueRemindersQueryKey, O as getPayables, k as getPayablesId, A as getPayablesIdHistory, Sn as getPayablesIdHistoryOptions, Cn as getPayablesIdHistoryQueryKey, j as getPayablesIdLineItems, wn as getPayablesIdLineItemsOptions, Tn as getPayablesIdLineItemsQueryKey, En as getPayablesIdOptions, Dn as getPayablesIdQueryKey, On as getPayablesIdSuggestionsOptions, kn as getPayablesOptions, An as getPayablesQueryKey, M as getPaymentRecords, jn as getPaymentRecordsOptions, Mn as getPaymentRecordsQueryKey, Nn as getPaymentRemindersOptions, Pn as getPaymentRemindersQueryKey, N as getProducts, Fn as getProductsIdOptions, In as getProductsIdQueryKey, Ln as getProductsOptions, Rn as getProductsQueryKey, P as getReceipts, zn as getReceiptsIdQueryKey, Bn as getReceiptsOptions, Vn as getReceiptsQueryKey, F as getReceivables, I as getReceivablesIdHistory, Hn as getReceivablesIdHistoryQueryKey, Un as getReceivablesIdMailsQueryKey, Wn as getReceivablesIdOptions, Gn as getReceivablesIdPdfLinkOptions, Kn as getReceivablesIdPdfLinkQueryKey, qn as getReceivablesIdQueryKey, Jn as getReceivablesOptions, Yn as getReceivablesQueryKey, Xn as getReceivablesRequiredFieldsOptions, Zn as getRecurrencesIdOptions, Qn as getRecurrencesIdQueryKey, $n as getRecurrencesQueryKey, er as getTransactionsIdExpenseHistoryOptions, tr as getTransactionsIdExpenseHistoryQueryKey, nr as getTransactionsIdOptions, rr as getTransactionsIdQueryKey, ir as getTransactionsOptions, ar as getTransactionsQueryKey, or as getTransactionsValidationsOptions, sr as getTransactionsValidationsQueryKey, L as getUsers, cr as getUsersOptions, lr as getUsersQueryKey, ur as getVelocityControlsQueryKey, dr as grantBankAccountAccessMutation, fr as grantExternalBankAccountAccessMutation, ai as hasAnyScope, Gr as invalidateAllClients, bi as isAllPagesResolving, ui as isApiConflictError, di as isApiForbiddenError, fi as isApiNotFoundError, pi as isApiUnprocessableError, Rr as isOrganizationOnItsWay, _i as isScope, pr as linkExternalBankAccountMutation, R as listDepartments, mr as listDepartmentsOptions, hr as listDepartmentsQueryKey, z as listLocations, gr as listLocationsOptions, _r as listLocationsQueryKey, B as listRoles, vr as listRolesQueryKey, V as manageBankAccountAccess, H as manageDebitCardAccess, yr as manageDebitCardAccessMutation, oi as myEntityInvalidationKey, ni as optionalOrganizationHeaders, ri as organizationHeaders, br as patchApprovalPoliciesIdMutation, U as patchCounterpartsId, W as patchCounterpartsIdAddressesId, G as patchCounterpartsIdBankAccountsId, K as patchEntitiesIdSettings, xr as patchLedgerAccountsIdMutation, q as patchMeasureUnitsId, J as patchPayablesId, Y as patchProductsId, Sr as patchReceiptsIdMutation, X as patchReceivablesId, Z as patchRecurrencesId, Q as patchTransactionsId, Mi as personDisclosure, Cr as postApprovalPoliciesMutation, $ as postApprovalRequestsIdApprove, ee as postApprovalRequestsIdReject, te as postBankDetails, ne as postCounterparts, re as postCounterpartsIdAddresses, ie as postCounterpartsIdBankAccounts, ae as postCounterpartsIdBankAccountsIdMakeDefault, oe as postFiles, wr as postLedgerAccountsMutation, se as postMeasureUnits, ce as postOverdueReminders, le as postPayables, ue as postPayablesIdApprovePaymentOperation, de as postPayablesIdAttachFile, fe as postPayablesIdCancel, pe as postPayablesIdDuplicatesIdConfirm, me as postPayablesIdDuplicatesIdDismiss, he as postPayablesIdMarkAsPaid, ge as postPayablesIdReject, _e as postPayablesIdReopen, ve as postPayablesIdSchedulePayment, ye as postPayablesIdSubmitForApproval, be as postPayablesIdValidate, xe as postPayablesUploadFromFile, Se as postPaymentIntentsIdCancel, Ce as postPaymentLinks, we as postPaymentRecords, Te as postPaymentReminders, Ee as postProducts, Tr as postReceiptsUploadFromFileMutation, De as postReceivables, Oe as postReceivablesIdAccept, ke as postReceivablesIdCancel, Ae as postReceivablesIdClone, je as postReceivablesIdDecline, Me as postReceivablesIdIssue, Ne as postReceivablesIdMarkAsPaid, Pe as postReceivablesIdMarkAsUncollectible, Fe as postReceivablesIdSend, Ie as postRecurrences, Le as postRecurrencesIdCancel, Re as postRecurrencesIdPause, ze as postRecurrencesIdResume, Be as postTransactionsIdApprove, Ve as postTransactionsIdReject, He as postTransactionsIdReopen, Ue as postTransactionsIdSubmit, We as putEntitiesIdLogo, Ge as putPayablesIdLineItems, Er as putTransactionsValidationsMutation, Kr as registerQueryClient, qr as removeInactiveFromAllClients, Jr as resetAllClients, Yr as setAllClientsQueriesData, Dr as setDebitCardLockStatusMutation, Or as submitApplicationMutation, kr as unlinkExternalBankAccountMutation, Xr as unregisterQueryClient, Ar as updateApplicationMutation, jr as updateBankAccountMutation, Mr as updateDebitCardMutation, Ke as updateDepartment, Nr as updateExternalBankAccountMutation, qe as updateLocation, Je as updateUser, Ni as useAcceptWidgetDisclosures, Si as useAllBankAccountsQuery, Ci as useAllDebitCardsQuery, wi as useAllExternalBankAccountsQuery, Ei as useAllLedgerAccountsQuery, Ti as useAllMerchantCategoryGroupsQuery, ki as useAllOrganizationRolesQuery, ji as useAllOrganizationUsersQuery, xi as useAutoFetchNextPage, si as useCurrentUserQuery, Pi as useDisclosuresQuery, ti as useEmbedApi, mi as useGetUserDataQuery, Di as useLedgerAccountsQuery, li as useMailboxAddress, ci as useMyEntityQuery, Li as useOrganizationApplicationStatus, Ii as useOrganizationOnboardingSuppression, Oi as usePaymentTermsQuery, Ai as useRolePermissionsQueries, hi as useUpsertUserDataMutation, Pr as validateExternalBankAccountMutation, Fr as verifyDebitCardMutation, Ir as widgetTokenCacheId, zr as withAuthEpoch, Br as withAuthEpochInfinite };
@@ -1,22 +1,22 @@
1
1
  import { getApplicationStatusOptions as e } from "./rest/@tanstack/react-query.gen.js";
2
- import { OrganizationStatus as t } from "./organizationStatus.js";
3
- import { withAuthEpoch as n } from "./withAuthEpoch.js";
4
- import { widgetTokenCacheId as r } from "./widgetTokenCacheId.js";
2
+ import { widgetTokenCacheId as t } from "./widgetTokenCacheId.js";
3
+ import { OrganizationStatus as n } from "./organizationStatus.js";
4
+ import { withAuthEpoch as r } from "./withAuthEpoch.js";
5
5
  //#region ../../libs/tesouro-embedded-components-react/shared/data-access/dist/lib/applicationStatusQueryOptions.js
6
6
  var i = 1e4;
7
7
  function a({ client: t }) {
8
8
  return e({ client: t }).queryKey;
9
9
  }
10
10
  function o({ client: a, widgetToken: o, authEpoch: s }) {
11
- let { queryFn: c, queryKey: l } = e({ client: a }), { placeholderData: u } = n({ queryKey: l }, {
11
+ let { queryFn: c, queryKey: l } = e({ client: a }), { placeholderData: u } = r({ queryKey: l }, {
12
12
  authEpoch: s,
13
- organizationStatus: t.Known
13
+ organizationStatus: n.Known
14
14
  });
15
15
  return {
16
16
  queryKey: [
17
17
  l[0],
18
18
  { authEpoch: s },
19
- { widgetTokenId: r(o) }
19
+ { widgetTokenId: t(o) }
20
20
  ],
21
21
  queryFn: c,
22
22
  placeholderData: u,