@tesouro/embedded-components-react 0.7.44 → 0.7.46

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 (108) hide show
  1. package/dist/index.d.ts +30 -39
  2. package/dist/lib/CounterpartsWidget.d.ts +29 -22
  3. package/dist/lib/CounterpartsWidgetPublic.d.ts +29 -22
  4. package/dist/lib/CustomersWidget.d.ts +29 -22
  5. package/dist/lib/LinkedAccountsWidget.d.ts +1 -0
  6. package/dist/lib/ReceivablesWidget.d.ts +1 -0
  7. package/dist/lib/WidgetSuite.d.ts +1 -0
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index24.js +12 -12
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index25.js +15 -15
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index42.js +9 -9
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index5.js +30 -30
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index14.js +3 -2
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index15.js +7 -6
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index33.js +3 -2
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index34.js +9 -8
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index37.js +5 -4
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index48.js +1 -1
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index49.js +1 -1
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index5.js +3 -2
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index16.js +40 -40
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index18.js +3 -2
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index2.js +1 -1
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index20.js +8 -7
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index3.js +1 -1
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index5.js +1 -1
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index6.js +1 -1
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +9 -13
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index12.js +7 -10
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index13.js +76 -11
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index15.js +1 -1
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index16.js +27 -9
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index17.js +2 -76
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index18.js +30 -0
  34. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index19.js +1 -1
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index20.js +5 -27
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +32 -2
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +2 -30
  38. package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index.js +1 -2
  39. package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/feature/dist/index8.js +36 -36
  40. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/viewModels.js +73 -77
  41. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index2.js +8 -25
  42. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index7.js +197 -208
  43. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivablesWidget.js +9 -9
  44. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/auditHistory/labels.js +2 -2
  45. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableDetails.js +1 -1
  46. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablesWidget.js +2 -2
  47. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index.js +22 -23
  48. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index14.js +10 -24
  49. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index25.js +53 -37
  50. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index26.js +21 -53
  51. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index27.js +8 -21
  52. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index28.js +77 -8
  53. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index29.js +31 -69
  54. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index30.js +17 -38
  55. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index31.js +40 -17
  56. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index32.js +26 -38
  57. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index33.js +18 -27
  58. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index34.js +8 -18
  59. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index35.js +35 -9
  60. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index36.js +14 -36
  61. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index37.js +26 -14
  62. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index38.js +84 -23
  63. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index39.js +487 -80
  64. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index40.js +2 -494
  65. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index41.js +48 -2
  66. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index42.js +62 -38
  67. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index43.js +438 -61
  68. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index44.js +207 -431
  69. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index45.js +20 -222
  70. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index46.js +6 -21
  71. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index48.js +265 -0
  72. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index49.js +2 -265
  73. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index50.js +131 -2
  74. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index51.js +22 -125
  75. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index52.js +235 -23
  76. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index53.js +3 -240
  77. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index54.js +249 -3
  78. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index55.js +54 -242
  79. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index56.js +221 -51
  80. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index57.js +38 -222
  81. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/lib/forms.js +2 -1
  82. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/lib/permissions.js +8 -7
  83. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/lib/useLinkedAccountsWidget.js +200 -191
  84. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/mocks/linkedAccounts.js +87 -79
  85. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index15.js +1 -0
  86. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index5.js +10 -0
  87. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +11 -10
  88. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/organization/useOrganizationQuery.js +24 -0
  89. package/dist/libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index.js +8 -0
  90. package/dist/libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index2.js +14 -0
  91. package/dist/libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index3.js +13 -0
  92. package/dist/libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index4.js +18 -0
  93. package/dist/libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index5.js +2 -0
  94. package/dist/libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index6.js +20 -0
  95. package/dist/libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index7.js +32 -0
  96. package/dist/libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index8.js +2 -0
  97. package/dist/libs/tesouro-embedded-components-react/{bill-pay-widget → shared/document-status}/util/dist/lib/derivePayableStatus.js +23 -10
  98. package/dist/libs/tesouro-embedded-components-react/shared/document-status/util/dist/lib/receivableFilledTone.js +22 -0
  99. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  100. package/package.json +1 -1
  101. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index14.js +0 -18
  102. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +0 -2
  103. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +0 -7
  104. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index25.js +0 -34
  105. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index26.js +0 -2
  106. package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index7.js +0 -25
  107. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index47.js +0 -8
  108. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index58.js +0 -45
@@ -1,145 +1,153 @@
1
1
  import { Scope as e } from "../../../../shared/data-access/dist/lib/scopes.js";
2
2
  import "../../../../shared/data-access/dist/index.js";
3
- import { AN_EXTERNAL_BANK_ACCOUNT as t, AN_ORGANIZATION_ROLE as n, AN_ORGANIZATION_USER as r } from "../../../../shared/data-access-mocks/dist/lib/fixtures.js";
4
- import { SCENARIO_LABELS as i } from "../../../../shared/data-access-mocks/dist/mocks/scenarios/labels.js";
5
- import { IDENTITY as a, LOADING_DELAY_MS as o, PROXY as s, answer as c, bodyOf as l, endpoint as u, initRoute as d, json as f, noContent as p, problem as m, wait as h } from "../../../../shared/data-access-mocks/dist/mocks/scenarios/scenario.js";
6
- import { MintKind as g, minter as _ } from "../../../../shared/data-access-mocks/dist/mocks/scenarios/worlds.js";
7
- import { LINKED_ACCOUNTS_LABELS as v } from "./labels.js";
3
+ import { AN_EXTERNAL_BANK_ACCOUNT as t, AN_ORGANIZATION as n, AN_ORGANIZATION_ROLE as r, AN_ORGANIZATION_USER as i } from "../../../../shared/data-access-mocks/dist/lib/fixtures.js";
4
+ import { SCENARIO_LABELS as a } from "../../../../shared/data-access-mocks/dist/mocks/scenarios/labels.js";
5
+ import { IDENTITY as o, LOADING_DELAY_MS as s, PROXY as c, answer as l, bodyOf as u, endpoint as d, initRoute as f, json as p, noContent as m, problem as h, wait as g } from "../../../../shared/data-access-mocks/dist/mocks/scenarios/scenario.js";
6
+ import { MintKind as _, minter as v } from "../../../../shared/data-access-mocks/dist/mocks/scenarios/worlds.js";
7
+ import { LINKED_ACCOUNTS_LABELS as y } from "./labels.js";
8
8
  //#region ../../libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/mocks/linkedAccounts.js
9
- var y = [e.ExternalBankAccountReadOrg], b = [...y, e.ExternalBankAccountWriteOrg], x = [...b, e.ExternalBankAccountMicroDepositOrg], S = (e) => `00000000-0000-4000-8000-0000000002${String(e).padStart(2, "0")}`, C = (e) => `••••••••${e.slice(-4)}`, w = (e) => [
9
+ var b = [e.ExternalBankAccountReadOrg], x = [
10
+ ...b,
11
+ e.ExternalBankAccountWriteOrg,
12
+ e.OrganizationReadOrg
13
+ ], S = [...x, e.ExternalBankAccountMicroDepositOrg], C = (e) => `00000000-0000-4000-8000-0000000002${String(e).padStart(2, "0")}`, w = (e) => `••••••••${e.slice(-4)}`, T = (e) => [
10
14
  t,
11
15
  {
12
16
  ...t,
13
- id: S(e),
14
- accountNumber: C("4321"),
17
+ id: C(e),
18
+ accountNumber: w("4321"),
15
19
  nickname: "Supplier payouts",
16
20
  type: "SAVINGS",
17
21
  verificationStatus: "UNVERIFIED"
18
22
  },
19
23
  {
20
24
  ...t,
21
- id: S(e + 1),
22
- accountNumber: C("5678"),
25
+ id: C(e + 1),
26
+ accountNumber: w("5678"),
23
27
  nickname: "Payroll funding",
24
28
  verificationStatus: "VERIFICATION_SENT"
25
29
  },
26
30
  {
27
31
  ...t,
28
- id: S(e + 2),
29
- accountNumber: C("8765"),
32
+ id: C(e + 2),
33
+ accountNumber: w("8765"),
30
34
  nickname: "Old savings",
31
35
  type: "SAVINGS",
32
36
  verificationStatus: "FAILED"
33
37
  },
34
38
  {
35
39
  ...t,
36
- id: S(e + 3),
37
- accountNumber: C("2468"),
40
+ id: C(e + 3),
41
+ accountNumber: w("2468"),
38
42
  nickname: "Closed checking",
39
43
  accountStatus: "INACTIVE"
40
44
  }
41
- ], T = {
42
- ...n,
43
- id: S(9),
45
+ ], E = {
46
+ ...r,
47
+ id: C(9),
44
48
  key: "embedded:employee",
45
49
  name: "Employee",
46
50
  description: "Can see their own cards and expenses."
47
- }, E = {
48
- ...r,
49
- id: S(10),
51
+ }, D = {
52
+ ...i,
53
+ id: C(10),
50
54
  name: "Grace Example",
51
55
  email: "grace@example.com",
52
- role: T.key
53
- }, D = (e) => ({
56
+ role: E.key
57
+ }, O = (e) => ({
54
58
  data: e,
55
59
  nextPaginationToken: null,
56
60
  prevPaginationToken: null
57
- }), O = () => [c((e) => e === `${a}/users`, ({ query: e }) => e.get("Status") === "INVITED" ? f(D([])) : f(D(e.has("Permissions") ? [r] : [r, E]))), c((e) => e === `${a}/roles`, () => f(D([n, T])))], k = `${s}/external-bank-accounts`, A = "tesouro.linkedAccounts.locallySentMicroDepositAccountIds.v1", j = () => {
61
+ }), k = () => [
62
+ l((e) => e === `${o}/users`, ({ query: e }) => e.get("Status") === "INVITED" ? p(O([])) : p(O(e.has("Permissions") ? [i] : [i, D]))),
63
+ l((e) => e === `${o}/roles`, () => p(O([r, E]))),
64
+ d("GET", `${o}/organizations/:id`, () => p(n))
65
+ ], A = `${c}/external-bank-accounts`, j = "tesouro.linkedAccounts.locallySentMicroDepositAccountIds.v1", M = () => {
58
66
  try {
59
- globalThis.sessionStorage?.removeItem(A);
67
+ globalThis.sessionStorage?.removeItem(j);
60
68
  } catch {}
61
- }, M = (e) => {
62
- j();
63
- let n = [...e], r = _(), i = () => m(404, "Not Found", "No such external bank account."), a = (e, t) => {
64
- let r = n.findIndex((t) => t.id === e), i = n[r];
69
+ }, N = (e) => {
70
+ M();
71
+ let r = [...e], i = v(), a = () => h(404, "Not Found", "No such external bank account."), o = (e, t) => {
72
+ let n = r.findIndex((t) => t.id === e), i = r[n];
65
73
  if (!i) return;
66
74
  let a = {
67
75
  ...i,
68
76
  ...t
69
77
  };
70
- return n[r] = a, a;
78
+ return r[n] = a, a;
71
79
  };
72
80
  return [
73
- ...O(),
74
- c((e) => e === k, () => f(D(n))),
75
- u("POST", k, async (e) => {
76
- await h(400);
77
- let i = l(e), a = (e, t) => typeof e == "string" && e ? e : t, o = {
81
+ ...k(),
82
+ l((e) => e === A, () => p(O(r))),
83
+ d("POST", A, async (e) => {
84
+ await g(400);
85
+ let a = u(e), o = (e, t) => typeof e == "string" && e ? e : t, s = {
78
86
  ...t,
79
- id: r(g.ExternalAccount),
80
- nickname: a(i.nickname, "New account"),
81
- nameOnAccount: a(i.nameOnAccount, "Example Organization"),
82
- accountNumber: C(a(i.accountNumber, "0000")),
83
- routingNumber: a(i.routingNumber, "123456780"),
84
- type: i.type === "SAVINGS" ? "SAVINGS" : "CHECKING",
85
- accountHolderType: i.accountHolderType === "BUSINESS" ? "BUSINESS" : "INDIVIDUAL",
87
+ id: i(_.ExternalAccount),
88
+ nickname: o(a.nickname, "New account"),
89
+ nameOnAccount: o(a.nameOnAccount, n.legalName),
90
+ accountNumber: w(o(a.accountNumber, "0000")),
91
+ routingNumber: o(a.routingNumber, "123456780"),
92
+ type: a.type === "SAVINGS" ? "SAVINGS" : "CHECKING",
93
+ accountHolderType: a.accountHolderType === "BUSINESS" ? "BUSINESS" : "INDIVIDUAL",
86
94
  verificationStatus: "UNVERIFIED"
87
95
  };
88
- return n.push(o), f(o, 201);
96
+ return r.push(s), p(s, 201);
89
97
  }),
90
- u("POST", `${k}/:id/access`, () => p()),
91
- u("POST", `${k}/:id/link`, async (e, { id: t }) => {
92
- await h(400);
93
- let n = a(t, { verificationStatus: "VERIFICATION_SENT" });
94
- return n ? f(n) : i();
98
+ d("POST", `${A}/:id/access`, () => m()),
99
+ d("POST", `${A}/:id/link`, async (e, { id: t }) => {
100
+ await g(400);
101
+ let n = o(t, { verificationStatus: "VERIFICATION_SENT" });
102
+ return n ? p(n) : a();
95
103
  }),
96
- u("POST", `${k}/:id/validate`, async (e, { id: t }) => {
97
- await h(400);
98
- let n = a(t, { verificationStatus: "VERIFIED" });
99
- return n ? f(n) : i();
104
+ d("POST", `${A}/:id/validate`, async (e, { id: t }) => {
105
+ await g(400);
106
+ let n = o(t, { verificationStatus: "VERIFIED" });
107
+ return n ? p(n) : a();
100
108
  }),
101
- u("PATCH", `${k}/:id`, (e, { id: t }) => {
102
- let { nickname: n } = l(e), r = a(t, typeof n == "string" ? { nickname: n } : {});
103
- return r ? f(r) : i();
109
+ d("PATCH", `${A}/:id`, (e, { id: t }) => {
110
+ let { nickname: n } = u(e), r = o(t, typeof n == "string" ? { nickname: n } : {});
111
+ return r ? p(r) : a();
104
112
  }),
105
- u("DELETE", `${k}/:id`, (e, { id: t }) => {
106
- let r = n.findIndex((e) => e.id === t);
107
- return r < 0 ? i() : (n.splice(r, 1), p());
113
+ d("DELETE", `${A}/:id`, (e, { id: t }) => {
114
+ let n = r.findIndex((e) => e.id === t);
115
+ return n < 0 ? a() : (r.splice(n, 1), m());
108
116
  })
109
117
  ];
110
- }, N = (e, t, n, r) => ({
118
+ }, P = (e, t, n, r) => ({
111
119
  key: e,
112
120
  ...t,
113
- routes: () => [d(n), ...M(r.empty ? [] : w(r.base))]
114
- }), P = v.blurbs, F = (e) => ({
115
- label: i[e].label,
116
- blurb: P[e] ?? i[e].blurb
117
- }), I = (e) => e === k, L = {
121
+ routes: () => [f(n), ...N(r.empty ? [] : T(r.base))]
122
+ }), F = y.blurbs, I = (e) => ({
123
+ label: a[e].label,
124
+ blurb: F[e] ?? a[e].blurb
125
+ }), L = (e) => e === A, R = {
118
126
  key: "loading",
119
- ...F("loading"),
127
+ ...I("loading"),
120
128
  routes: () => [
121
- d(x),
122
- c(I, async () => (await h(o), f(D(w(16))))),
123
- ...M(w(16))
129
+ f(S),
130
+ l(L, async () => (await g(s), p(O(T(16))))),
131
+ ...N(T(16))
124
132
  ]
125
- }, R = {
133
+ }, z = {
126
134
  key: "error",
127
- ...F("error"),
135
+ ...I("error"),
128
136
  routes: () => [
129
- d(x),
130
- c(I, () => m(500, "Internal Server Error", "Something went wrong.")),
131
- ...M(w(16))
137
+ f(S),
138
+ l(L, () => h(500, "Internal Server Error", "Something went wrong.")),
139
+ ...N(T(16))
132
140
  ]
133
- }, z = [
134
- N("populated", F("populated"), x, { base: 16 }),
135
- N("empty", F("empty"), x, {
141
+ }, B = [
142
+ P("populated", I("populated"), S, { base: 16 }),
143
+ P("empty", I("empty"), S, {
136
144
  base: 16,
137
145
  empty: !0
138
146
  }),
139
- L,
140
147
  R,
141
- N("control-hidden", F("control-hidden"), [...y, e.ExternalBankAccountMicroDepositOrg], { base: 22 }),
142
- N("no-micro-deposits", v.scenarios["no-micro-deposits"], b, { base: 27 })
148
+ z,
149
+ P("control-hidden", I("control-hidden"), [...b, e.ExternalBankAccountMicroDepositOrg], { base: 22 }),
150
+ P("no-micro-deposits", y.scenarios["no-micro-deposits"], x, { base: 27 })
143
151
  ];
144
152
  //#endregion
145
- export { z as linkedAccountsScenarios };
153
+ export { B as linkedAccountsScenarios };
@@ -6,6 +6,7 @@ var e = {
6
6
  learnMoreButton: "Learn more about linked accounts",
7
7
  connectTitle: "Link Account",
8
8
  nicknameLabel: "Account nickname",
9
+ nameOnAccountLabel: "Legal name on account",
9
10
  accountNumberLabel: "Account number",
10
11
  routingNumberLabel: "Routing number",
11
12
  routingNumberError: "Routing number must be a valid 9-digit ABA routing number.",
@@ -129,6 +129,16 @@ function u({ labels: e, connectForm: t, disabled: n, routingNumberError: r = !1,
129
129
  type: e
130
130
  })
131
131
  }),
132
+ /* @__PURE__ */ a(l, {
133
+ id: "linked-account-name-on-account",
134
+ label: e.nameOnAccountLabel,
135
+ value: t.nameOnAccount,
136
+ disabled: n,
137
+ onChange: (e) => i({
138
+ ...t,
139
+ nameOnAccount: e
140
+ })
141
+ }),
132
142
  /* @__PURE__ */ a(l, {
133
143
  id: "linked-account-nickname",
134
144
  label: e.nicknameLabel,
@@ -36,13 +36,14 @@ import { useAllExternalBankAccountsQuery as Ci } from "./lib/external-bank-accou
36
36
  import { useAllMerchantCategoryGroupsQuery as wi } from "./lib/merchant-category-group/useAllMerchantCategoryGroupsQuery.js";
37
37
  import { useAllLedgerAccountsQuery as Ti, useLedgerAccountsQuery as Ei } from "./lib/reference-data/useLedgerAccountsQuery.js";
38
38
  import { usePaymentTermsQuery as Di } from "./lib/reference-data/usePaymentTermsQuery.js";
39
- import { useAllOrganizationRolesQuery as Oi } from "./lib/role/useAllOrganizationRolesQuery.js";
40
- import { useRolePermissionsQueries as ki } from "./lib/role/useRolePermissionsQueries.js";
41
- import { useAllOrganizationUsersQuery as Ai } from "./lib/user/useAllOrganizationUsersQuery.js";
42
- import { personDisclosure as ji } from "./lib/disclosures/personDisclosure.js";
43
- import { useAcceptWidgetDisclosures as Mi } from "./lib/disclosures/useAcceptWidgetDisclosures.js";
44
- import { useDisclosuresQuery as Ni } from "./lib/disclosures/useDisclosuresQuery.js";
45
- import { OnboardingSuppressionReason as Pi } from "./lib/onboardingSuppressionReason.js";
46
- import { useOrganizationOnboardingSuppression as Fi } from "./lib/useOrganizationOnboardingSuppression.js";
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 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 };
39
+ import { useOrganizationQuery as Oi } from "./lib/organization/useOrganizationQuery.js";
40
+ import { useAllOrganizationRolesQuery as ki } from "./lib/role/useAllOrganizationRolesQuery.js";
41
+ import { useRolePermissionsQueries as Ai } from "./lib/role/useRolePermissionsQueries.js";
42
+ import { useAllOrganizationUsersQuery as ji } from "./lib/user/useAllOrganizationUsersQuery.js";
43
+ import { personDisclosure as Mi } from "./lib/disclosures/personDisclosure.js";
44
+ import { useAcceptWidgetDisclosures as Ni } from "./lib/disclosures/useAcceptWidgetDisclosures.js";
45
+ import { useDisclosuresQuery as Pi } from "./lib/disclosures/useDisclosuresQuery.js";
46
+ import { OnboardingSuppressionReason as Fi } from "./lib/onboardingSuppressionReason.js";
47
+ import { useOrganizationOnboardingSuppression as Ii } from "./lib/useOrganizationOnboardingSuppression.js";
48
+ import { useOrganizationApplicationStatus as Li } from "./lib/useOrganizationApplicationStatus.js";
49
+ export { $r as EmbedApiProvider, Fi 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, Mi 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, Ni as useAcceptWidgetDisclosures, xi as useAllBankAccountsQuery, Si as useAllDebitCardsQuery, Ci as useAllExternalBankAccountsQuery, Ti as useAllLedgerAccountsQuery, wi as useAllMerchantCategoryGroupsQuery, ki as useAllOrganizationRolesQuery, ji as useAllOrganizationUsersQuery, bi as useAutoFetchNextPage, oi as useCurrentUserQuery, Pi as useDisclosuresQuery, ei as useEmbedApi, pi as useGetUserDataQuery, Ei as useLedgerAccountsQuery, ci as useMailboxAddress, si as useMyEntityQuery, Li as useOrganizationApplicationStatus, Ii as useOrganizationOnboardingSuppression, Oi as useOrganizationQuery, Di as usePaymentTermsQuery, Ai as useRolePermissionsQueries, mi as useUpsertUserDataMutation, Nr as validateExternalBankAccountMutation, Pr as verifyDebitCardMutation, Fr as widgetTokenCacheId, Rr as withAuthEpoch, zr as withAuthEpochInfinite };
@@ -0,0 +1,24 @@
1
+ "use client";
2
+ "use client";
3
+ "use client";
4
+ "use client";
5
+ import { getOrganizationOptions as e } from "../rest/@tanstack/react-query.gen.js";
6
+ import { withAuthEpoch as t } from "../withAuthEpoch.js";
7
+ import { useEmbedApi as n } from "../EmbedApiContext.js";
8
+ import { useQuery as r } from "@tanstack/react-query";
9
+ //#region ../../libs/tesouro-embedded-components-react/shared/data-access/dist/lib/organization/useOrganizationQuery.js
10
+ function i({ enabled: i } = {}) {
11
+ let { client: a, organizationId: o, widgetToken: s, authEpoch: c, organizationStatus: l } = n(), u = e({
12
+ client: a,
13
+ path: { organizationId: o ?? "" }
14
+ });
15
+ return r({
16
+ ...t(u, {
17
+ authEpoch: c,
18
+ organizationStatus: l
19
+ }),
20
+ enabled: !!(o && s) && (i === !0 || i === void 0)
21
+ });
22
+ }
23
+ //#endregion
24
+ export { i as useOrganizationQuery };
@@ -0,0 +1,8 @@
1
+ import { BILL_STATUS_BADGE_LABELS_EN as e } from "./index2.js";
2
+ import { BILL_STATUS_TONE_CLASS_NAME as t } from "./index3.js";
3
+ import { BillStatusBadge as n } from "./index4.js";
4
+ import "./index5.js";
5
+ import { RECEIVABLE_STATUS_BADGE_LABELS_EN as r } from "./index6.js";
6
+ import { ReceivableStatusBadge as i } from "./index7.js";
7
+ import "./index8.js";
8
+ export { e as BILL_STATUS_BADGE_LABELS_EN, t as BILL_STATUS_TONE_CLASS_NAME, n as BillStatusBadge, r as RECEIVABLE_STATUS_BADGE_LABELS_EN, i as ReceivableStatusBadge };
@@ -0,0 +1,14 @@
1
+ //#region ../../libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index2.js
2
+ var e = {
3
+ draft: "Draft",
4
+ ready_to_submit: "Ready to submit",
5
+ pending_approval: "Pending review",
6
+ ready_to_pay: "Ready to pay",
7
+ scheduled: "Scheduled",
8
+ paid: "Paid",
9
+ canceled: "Cancelled",
10
+ rejected: "Rejected",
11
+ unknown: "Unknown"
12
+ };
13
+ //#endregion
14
+ export { e as BILL_STATUS_BADGE_LABELS_EN };
@@ -0,0 +1,13 @@
1
+ //#region ../../libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index3.js
2
+ var e = {
3
+ accent: "ttw:border-violet-100 ttw:bg-violet-100 ttw:text-violet-700 ttw:hover:bg-violet-100",
4
+ committed: "ttw:border-cyan-200 ttw:bg-cyan-50 ttw:text-cyan-700 ttw:hover:bg-cyan-50",
5
+ danger: "ttw:border-destructive/20 ttw:bg-destructive/20 ttw:text-destructive ttw:hover:bg-destructive/20",
6
+ info: "ttw:border-blue-100 ttw:bg-blue-100 ttw:text-blue-700 ttw:hover:bg-blue-100",
7
+ neutral: "ttw:border-border ttw:bg-muted ttw:text-foreground ttw:hover:bg-muted",
8
+ settled: "ttw:border-border ttw:bg-background ttw:text-green-900 ttw:hover:bg-background",
9
+ success: "ttw:border-green-100 ttw:bg-green-100 ttw:text-green-700 ttw:hover:bg-green-100",
10
+ warning: "ttw:border-amber-100 ttw:bg-amber-100 ttw:text-amber-700 ttw:hover:bg-amber-100"
11
+ };
12
+ //#endregion
13
+ export { e as BILL_STATUS_TONE_CLASS_NAME };
@@ -0,0 +1,18 @@
1
+ import { Badge as e, cn as t } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { BILL_STATUS_BADGE_LABELS_EN as n } from "./index2.js";
3
+ import { BILL_STATUS_TONE_CLASS_NAME as r } from "./index3.js";
4
+ import { jsxs as i } from "react/jsx-runtime";
5
+ //#region ../../libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index4.js
6
+ function a({ status: a, label: o, tone: s, labels: c, icon: l }) {
7
+ let u = {
8
+ ...n,
9
+ ...c
10
+ }, d = o ?? (a ? u[a] : u.unknown);
11
+ return /* @__PURE__ */ i(e, {
12
+ variant: "outline",
13
+ className: t(l && "ttw:gap-1", r[s]),
14
+ children: [l, d]
15
+ });
16
+ }
17
+ //#endregion
18
+ export { a as BillStatusBadge, a as default };
@@ -0,0 +1,2 @@
1
+ import "./index2.js";
2
+ import "./index4.js";
@@ -0,0 +1,20 @@
1
+ //#region ../../libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index6.js
2
+ var e = {
3
+ draft: "Draft",
4
+ issuing: "Issuing",
5
+ issued: "Issued",
6
+ failed: "Failed",
7
+ accepted: "Accepted",
8
+ expired: "Expired",
9
+ declined: "Declined",
10
+ recurring: "Recurring",
11
+ partially_paid: "Partially paid",
12
+ paid: "Paid",
13
+ overdue: "Overdue",
14
+ uncollectible: "Uncollectible",
15
+ canceled: "Canceled",
16
+ deleted: "Deleted",
17
+ unknown: "Unknown"
18
+ };
19
+ //#endregion
20
+ export { e as RECEIVABLE_STATUS_BADGE_LABELS_EN };
@@ -0,0 +1,32 @@
1
+ import { Badge as e, cn as t } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { receivableFilledTone as n } from "../../util/dist/lib/receivableFilledTone.js";
3
+ import { RECEIVABLE_STATUS_BADGE_LABELS_EN as r } from "./index6.js";
4
+ import { jsxs as i } from "react/jsx-runtime";
5
+ //#region ../../libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index7.js
6
+ var a = {
7
+ danger: "ttw:border-red-200 ttw:bg-red-50 ttw:text-red-700 ttw:hover:bg-red-50",
8
+ info: "ttw:border-blue-200 ttw:bg-blue-50 ttw:text-blue-700 ttw:hover:bg-blue-50",
9
+ neutral: "ttw:border-border ttw:bg-muted ttw:text-foreground ttw:hover:bg-muted",
10
+ success: "ttw:border-emerald-200 ttw:bg-emerald-50 ttw:text-emerald-700 ttw:hover:bg-emerald-50",
11
+ warning: "ttw:border-amber-200 ttw:bg-amber-50 ttw:text-amber-800 ttw:hover:bg-amber-50"
12
+ }, o = {
13
+ neutral: "ttw:bg-muted ttw:text-muted-foreground",
14
+ cyan: "ttw:bg-cyan-100 ttw:text-cyan-700",
15
+ success: "ttw:bg-green-100 ttw:text-green-700",
16
+ purple: "ttw:bg-purple-100 ttw:text-purple-700",
17
+ orange: "ttw:bg-orange-100 ttw:text-orange-700",
18
+ danger: "ttw:bg-destructive/10 ttw:text-destructive"
19
+ };
20
+ function s({ status: s, label: c, tone: l = "neutral", variant: u = "outline", filledTone: d, labels: f, icon: p }) {
21
+ let m = {
22
+ ...r,
23
+ ...f
24
+ }, h = c ?? (s && Object.hasOwn(m, s) ? m[s] : void 0) ?? m.unknown;
25
+ return /* @__PURE__ */ i(e, {
26
+ variant: "outline",
27
+ className: t(p && "ttw:gap-1", u === "filled" ? ["ttw:border-transparent", o[d ?? n(s)]] : a[l]),
28
+ children: [p, h]
29
+ });
30
+ }
31
+ //#endregion
32
+ export { s as ReceivableStatusBadge, s as default };
@@ -0,0 +1,2 @@
1
+ import "./index6.js";
2
+ import "./index7.js";
@@ -1,25 +1,38 @@
1
- //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/lib/derivePayableStatus.js
2
- var e = /* @__PURE__ */ new Set([
1
+ //#region ../../libs/tesouro-embedded-components-react/shared/document-status/util/dist/lib/derivePayableStatus.js
2
+ var e = [
3
+ "draft",
4
+ "new",
5
+ "approve_in_progress",
6
+ "waiting_to_be_paid",
7
+ "partially_paid",
8
+ "paid",
9
+ "canceled",
10
+ "rejected"
11
+ ];
12
+ function t(t) {
13
+ return e.includes(t);
14
+ }
15
+ var n = /* @__PURE__ */ new Set([
3
16
  "new",
4
17
  "approve_in_progress",
5
18
  "waiting_to_be_paid",
6
19
  "partially_paid"
7
20
  ]);
8
- function t(t) {
9
- return !!(t && e.has(t));
21
+ function r(e) {
22
+ return !!(e && n.has(e));
10
23
  }
11
- function n(e, t) {
24
+ function i(e, t) {
12
25
  let n = /* @__PURE__ */ new Date(`${e.slice(0, 10)}T00:00:00Z`), r = Date.UTC(t.getUTCFullYear(), t.getUTCMonth(), t.getUTCDate());
13
26
  return n.getTime() < r;
14
27
  }
15
- function r({ apiStatus: t, dueDate: r, scheduledPaymentDate: i, hasScheduledPayment: a = !!i, now: o = /* @__PURE__ */ new Date() }) {
16
- if (e.has(t) && a) return {
28
+ function a({ apiStatus: e, dueDate: t, scheduledPaymentDate: r, hasScheduledPayment: a = !!r, now: o = /* @__PURE__ */ new Date() }) {
29
+ if (n.has(e) && a) return {
17
30
  status: "scheduled",
18
31
  tone: "committed",
19
32
  isOverdue: !1
20
33
  };
21
- let s = !!(e.has(t) && r && n(r, o));
22
- switch (t) {
34
+ let s = !!(n.has(e) && t && i(t, o));
35
+ switch (e) {
23
36
  case "draft": return {
24
37
  status: "draft",
25
38
  tone: "neutral",
@@ -59,4 +72,4 @@ function r({ apiStatus: t, dueDate: r, scheduledPaymentDate: i, hasScheduledPaym
59
72
  }
60
73
  }
61
74
  //#endregion
62
- export { r as derivePayableStatus, t as hasUnpaidBalance };
75
+ export { a as derivePayableStatus, r as hasUnpaidBalance, t as isPayableApiStatus };
@@ -0,0 +1,22 @@
1
+ //#region ../../libs/tesouro-embedded-components-react/shared/document-status/util/dist/lib/receivableFilledTone.js
2
+ var e = {
3
+ draft: "neutral",
4
+ recurring: "neutral",
5
+ issuing: "cyan",
6
+ issued: "cyan",
7
+ accepted: "success",
8
+ paid: "success",
9
+ partially_paid: "purple",
10
+ overdue: "orange",
11
+ failed: "danger",
12
+ expired: "danger",
13
+ uncollectible: "danger",
14
+ canceled: "danger",
15
+ declined: "danger",
16
+ deleted: "danger"
17
+ };
18
+ function t(t) {
19
+ return t && Object.hasOwn(e, t) ? e[t] : "neutral";
20
+ }
21
+ //#endregion
22
+ export { t as receivableFilledTone };
@@ -1,5 +1,5 @@
1
1
  //#region ../../libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
2
- var e = "@tesouro/embedded-components-react", t = "0.7.44", n = "234ce1938135d29ed4c73ed506a604e107db4a3e", r = Object.freeze({
2
+ var e = "@tesouro/embedded-components-react", t = "0.7.46", n = "b4a4a65fbe32d7d41db7344aaa0ff10a312a4d7b", r = Object.freeze({
3
3
  library_name: e,
4
4
  library_version: t,
5
5
  library_sha: n
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tesouro/embedded-components-react",
3
- "version": "0.7.44",
3
+ "version": "0.7.46",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "sideEffects": [
@@ -1,18 +0,0 @@
1
- import { Badge as e, cn as t } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { BILL_STATUS_BADGE_LABELS_EN as n } from "./index12.js";
3
- import { BADGE_TONE_CLASS_NAME as r } from "./index13.js";
4
- import { jsxs as i } from "react/jsx-runtime";
5
- //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index14.js
6
- function a({ status: a, tone: o, labels: s, icon: c }) {
7
- let l = {
8
- ...n,
9
- ...s
10
- }, u = l[a] ?? l.unknown;
11
- return /* @__PURE__ */ i(e, {
12
- variant: "outline",
13
- className: t(c && "ttw:gap-1", r[o]),
14
- children: [c, u]
15
- });
16
- }
17
- //#endregion
18
- export { a as BillStatusBadge, a as default };
@@ -1,2 +0,0 @@
1
- import "./index21.js";
2
- import "./index22.js";
@@ -1,7 +0,0 @@
1
- //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js
2
- var e = {
3
- revealValue: "Show value",
4
- hideValue: "Hide value"
5
- };
6
- //#endregion
7
- export { e as REVEALABLE_FIELD_LABELS_EN };