@mx-cartographer/experiences 8.0.0-alpha.bb2 → 8.0.0-alpha.bb3

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.
@@ -1,86 +1,117 @@
1
1
  import { jsxs as i, jsx as e } from "react/jsx-runtime";
2
2
  import d from "react";
3
- import { observer as g } from "mobx-react-lite";
4
- import { Text as v } from "@mxenabled/mxui";
3
+ import { observer as x } from "mobx-react-lite";
4
+ import u from "@mui/material/Stack";
5
+ import { Text as g } from "@mxenabled/mxui";
6
+ import s from "@mui/material/Skeleton";
5
7
  import O from "@mui/material/Box";
6
- import y from "@mui/material/Divider";
7
- import W from "@mui/material/List";
8
+ import b from "@mui/material/Divider";
9
+ import B from "@mui/material/List";
8
10
  import I from "@mui/material/ListSubheader";
9
- import A from "@mui/system/Stack";
10
- import { A as z } from "../AccountDetailsContent-CAM9y39M.mjs";
11
+ import S from "@mui/system/Stack";
12
+ import { A as P } from "../AccountDetailsContent-CAM9y39M.mjs";
11
13
  import { u as U1 } from "../AccountDetailsContent-CAM9y39M.mjs";
12
- import { u as P, A as Y } from "../AccountDetailsHeader-JtSX6Uf9.mjs";
13
- import { A as D } from "../AccountListItem-JFMZROh7.mjs";
14
- import { a as q } from "../AccountFields-C9FlatNb.mjs";
14
+ import { u as Y, A as q } from "../AccountDetailsHeader-JtSX6Uf9.mjs";
15
+ import { A as W } from "../AccountListItem-JFMZROh7.mjs";
16
+ import { a as J } from "../AccountFields-C9FlatNb.mjs";
15
17
  import { g as j1, b as G1 } from "../AccountFields-C9FlatNb.mjs";
16
- import { u as R, b as w, d as k, g as U, a as J } from "../hooks-D6XlXHf4.mjs";
18
+ import { u as A, b as F, d as D, g as U, a as Q } from "../hooks-D6XlXHf4.mjs";
17
19
  import { f as N } from "../NumberFormatting-Buh7u8Oi.mjs";
18
- import { D as Q } from "../Drawer-kEE73B87.mjs";
19
- import { A as S, W as X } from "../WidgetContainer-BHWANqT4.mjs";
20
- import T from "@mui/material/Stack";
21
- import _ from "@mui/material/Skeleton";
20
+ import { D as X } from "../Drawer-kEE73B87.mjs";
21
+ import { A as k, W as e1 } from "../WidgetContainer-BHWANqT4.mjs";
22
+ import { C as t1 } from "../ConnectionsDrawer-ByGQE7D5.mjs";
22
23
  import { u as $ } from "../useScreenSize-B6JyS_Lj.mjs";
23
- import { C as e1 } from "../ConnectionsDrawer-ByGQE7D5.mjs";
24
- import { L as b } from "../Loader-DUaFpDGv.mjs";
25
- import { l as j, m as t1 } from "../ConnectDrawer-BQNs-hjk.mjs";
24
+ import { L as T } from "../Loader-DUaFpDGv.mjs";
25
+ import { l as j, m as i1 } from "../ConnectDrawer-BQNs-hjk.mjs";
26
26
  import { F as z1, f as P1 } from "../ConnectDrawer-BQNs-hjk.mjs";
27
27
  import l1 from "@mui/material/ListItem";
28
28
  import { M as G } from "../MiniWidgetContainer-D0gfmbaF.mjs";
29
29
  import { A as q1, a as J1 } from "../AccountStore-BgNOyMdp.mjs";
30
- const n1 = () => {
31
- const [c, a] = d.useState(""), { accounts: n } = R(), { selectedAccounts: l } = w(), { setSelectedAccount: H, setSelectedMember: L } = P(), { members: u } = k(), { onEvent: p } = U(), m = [...new Set(l.map((t) => t.account_type))], r = l.find((t) => c === t.guid), s = d.useMemo(
30
+ const K = ({ sx: n = {}, variant: r = "list" }) => /* @__PURE__ */ i(u, { sx: [...Array.isArray(n) ? n : [n]], children: [
31
+ r === "list" && /* @__PURE__ */ i(u, { gap: 24, children: [
32
+ /* @__PURE__ */ e(s, { height: 25, variant: "rounded", width: 150 }),
33
+ /* @__PURE__ */ e(s, { height: 50, variant: "rounded" }),
34
+ /* @__PURE__ */ e(s, { height: 50, variant: "rounded" }),
35
+ /* @__PURE__ */ e(s, { height: 50, variant: "rounded" })
36
+ ] }),
37
+ r === "card" && /* @__PURE__ */ i(u, { gap: 24, children: [
38
+ /* @__PURE__ */ e(s, { height: 50, variant: "rounded" }),
39
+ /* @__PURE__ */ i(u, { direction: "row", gap: 24, children: [
40
+ /* @__PURE__ */ e(s, { height: 300, variant: "rounded", width: "20%" }),
41
+ /* @__PURE__ */ e(s, { height: 300, variant: "rounded", width: "80%" })
42
+ ] })
43
+ ] }),
44
+ r === "dashboard" && /* @__PURE__ */ i(u, { gap: 24, children: [
45
+ /* @__PURE__ */ e(s, { height: 75, variant: "rounded" }),
46
+ /* @__PURE__ */ i(u, { gap: 24, children: [
47
+ /* @__PURE__ */ i(u, { direction: "row", gap: 24, children: [
48
+ /* @__PURE__ */ e(s, { height: 250, variant: "rounded", width: "75%" }),
49
+ /* @__PURE__ */ e(s, { height: 250, variant: "rounded", width: "25%" })
50
+ ] }),
51
+ /* @__PURE__ */ i(u, { direction: "row", gap: 24, children: [
52
+ /* @__PURE__ */ e(s, { height: 250, variant: "rounded", width: "75%" }),
53
+ /* @__PURE__ */ e(s, { height: 250, variant: "rounded", width: "25%" })
54
+ ] }),
55
+ /* @__PURE__ */ i(u, { direction: "row", gap: 24, children: [
56
+ /* @__PURE__ */ e(s, { height: 250, variant: "rounded", width: "75%" }),
57
+ /* @__PURE__ */ e(s, { height: 250, variant: "rounded", width: "25%" })
58
+ ] })
59
+ ] })
60
+ ] })
61
+ ] }), n1 = () => {
62
+ const [n, r] = d.useState(""), { accounts: C } = A(), { selectedAccounts: l } = F(), { setSelectedAccount: f, setSelectedMember: L } = Y(), { members: V } = D(), { onEvent: h } = U(), v = [...new Set(l.map((t) => t.account_type))], H = l.find((t) => n === t.guid), c = d.useMemo(
32
63
  () => l.filter((t) => t.is_hidden),
33
64
  [l]
34
- ), h = d.useMemo(
65
+ ), p = d.useMemo(
35
66
  () => l.filter((t) => t.is_closed),
36
67
  [l]
37
- ), M = s.reduce(
68
+ ), R = c.reduce(
38
69
  (t, o) => (o.available_balance || o.balance || 0) + t,
39
70
  0
40
- ), F = q(h, n);
71
+ ), M = J(p, C);
41
72
  d.useEffect(() => {
42
- if (r) {
43
- H(r);
44
- const t = u.find((o) => o.guid === r?.member_guid) || {};
73
+ if (H) {
74
+ f(H);
75
+ const t = V.find((o) => o.guid === H?.member_guid) || {};
45
76
  t && L(t);
46
77
  }
47
- }, [r, c]);
48
- const V = (t) => {
49
- a(t.guid), p(S.ACCOUNTS_CLICK_ACCOUNT, {
78
+ }, [H, n]);
79
+ const _ = (t) => {
80
+ r(t.guid), h(k.ACCOUNTS_CLICK_ACCOUNT, {
50
81
  account_guid: t.guid,
51
82
  account_type: t.account_type
52
83
  });
53
- }, Z = (t) => {
54
- const o = t === "hidden" ? s : h, B = t === "hidden" ? M : F, C = t === "hidden" ? n.account_hidden : n.account_closed;
84
+ }, w = (t) => {
85
+ const o = t === "hidden" ? c : p, Z = t === "hidden" ? R : M, a = t === "hidden" ? C.account_hidden : C.account_closed;
55
86
  return /* @__PURE__ */ e(O, { children: /* @__PURE__ */ e(
56
- W,
87
+ B,
57
88
  {
58
- "aria-label": C,
89
+ "aria-label": a,
59
90
  subheader: /* @__PURE__ */ e(I, { component: "h2", sx: { backgroundColor: "transparent", px: 24 }, children: /* @__PURE__ */ i(
60
- A,
91
+ S,
61
92
  {
62
93
  component: "span",
63
94
  direction: "row",
64
95
  sx: { justifyContent: "space-between", color: "grey.700" },
65
96
  children: [
66
- /* @__PURE__ */ e(v, { bold: !0, variant: "Body", children: C }),
67
- /* @__PURE__ */ e(v, { bold: !0, variant: "Body", children: N(B, "0,0.00") })
97
+ /* @__PURE__ */ e(g, { bold: !0, variant: "Body", children: a }),
98
+ /* @__PURE__ */ e(g, { bold: !0, variant: "Body", children: N(Z, "0,0.00") })
68
99
  ]
69
100
  }
70
101
  ) }),
71
- children: /* @__PURE__ */ e(A, { children: o.map((f, x, K) => {
72
- const E = x === K.length - 1;
102
+ children: /* @__PURE__ */ e(S, { children: o.map((m, y, z) => {
103
+ const E = y === z.length - 1;
73
104
  return /* @__PURE__ */ i(d.Fragment, { children: [
74
105
  /* @__PURE__ */ e(
75
- D,
106
+ W,
76
107
  {
77
- account: f,
78
- onRowClick: () => V(f),
108
+ account: m,
109
+ onRowClick: () => _(m),
79
110
  shouldShowConnectionStatus: !0
80
111
  }
81
112
  ),
82
113
  t === "hidden" ? /* @__PURE__ */ e(
83
- y,
114
+ b,
84
115
  {
85
116
  sx: {
86
117
  mb: E ? 24 : 4,
@@ -88,7 +119,7 @@ const n1 = () => {
88
119
  }
89
120
  }
90
121
  ) : !E && /* @__PURE__ */ e(
91
- y,
122
+ b,
92
123
  {
93
124
  sx: {
94
125
  mb: 4,
@@ -96,177 +127,168 @@ const n1 = () => {
96
127
  }
97
128
  }
98
129
  )
99
- ] }, f.guid);
130
+ ] }, m.guid);
100
131
  }) })
101
132
  }
102
133
  ) });
103
134
  };
104
135
  return /* @__PURE__ */ i(O, { sx: { pt: 24 }, children: [
105
- m.map((t) => {
136
+ v.map((t) => {
106
137
  const o = l.filter(
107
- (C) => C.account_type === t && !C.is_closed && !C.is_hidden
108
- ), B = o.reduce(
109
- (C, f) => (f.balance || 0) + C,
138
+ (a) => a.account_type === t && !a.is_closed && !a.is_hidden
139
+ ), Z = o.reduce(
140
+ (a, m) => (m.balance || 0) + a,
110
141
  0
111
142
  );
112
143
  return o.length === 0 ? null : /* @__PURE__ */ e(
113
- W,
144
+ B,
114
145
  {
115
- "aria-label": n.account_type_accounts[o[0]?.account_type],
146
+ "aria-label": C.account_type_accounts[o[0]?.account_type],
116
147
  subheader: /* @__PURE__ */ e(I, { component: "h2", sx: { backgroundColor: "transparent", px: 24 }, children: /* @__PURE__ */ i(
117
- A,
148
+ S,
118
149
  {
119
150
  component: "span",
120
151
  direction: "row",
121
152
  sx: { display: "flex", justifyContent: "space-between" },
122
153
  children: [
123
- /* @__PURE__ */ e(v, { bold: !0, variant: "Body", children: n.account_types[t] }),
124
- /* @__PURE__ */ e(v, { bold: !0, variant: "Body", children: N(B, "0,0.00") })
154
+ /* @__PURE__ */ e(g, { bold: !0, variant: "Body", children: C.account_types[t] }),
155
+ /* @__PURE__ */ e(g, { bold: !0, variant: "Body", children: N(Z, "0,0.00") })
125
156
  ]
126
157
  }
127
158
  ) }),
128
- children: /* @__PURE__ */ e(A, { children: o.map((C) => {
129
- const f = l.indexOf(C) === l.length - 1, x = o.indexOf(C) === o.length - 1;
159
+ children: /* @__PURE__ */ e(S, { children: o.map((a) => {
160
+ const m = l.indexOf(a) === l.length - 1, y = o.indexOf(a) === o.length - 1;
130
161
  return /* @__PURE__ */ i(d.Fragment, { children: [
131
162
  /* @__PURE__ */ e(
132
- D,
163
+ W,
133
164
  {
134
- account: C,
135
- onRowClick: () => V(C),
165
+ account: a,
166
+ onRowClick: () => _(a),
136
167
  shouldShowConnectionStatus: !0
137
168
  }
138
169
  ),
139
- (!f || h.length > 0 || s.length > 0) && /* @__PURE__ */ e(
140
- y,
170
+ (!m || p.length > 0 || c.length > 0) && /* @__PURE__ */ e(
171
+ b,
141
172
  {
142
173
  sx: {
143
- mb: x ? 24 : 4,
144
- ml: x ? 24 : 68
174
+ mb: y ? 24 : 4,
175
+ ml: y ? 24 : 68
145
176
  }
146
177
  }
147
178
  )
148
- ] }, C.guid);
179
+ ] }, a.guid);
149
180
  }) })
150
181
  },
151
182
  t
152
183
  );
153
184
  }),
154
- s.length > 0 && Z("hidden"),
155
- h.length > 0 && Z("closed"),
185
+ c.length > 0 && w("hidden"),
186
+ p.length > 0 && w("closed"),
156
187
  /* @__PURE__ */ i(
157
- Q,
188
+ X,
158
189
  {
159
- ariaLabelClose: n.close_account_details_aria,
160
- isOpen: !!c,
161
- onClose: () => a(""),
162
- title: n.account_details,
190
+ ariaLabelClose: C.close_account_details_aria,
191
+ isOpen: !!n,
192
+ onClose: () => r(""),
193
+ title: C.account_details,
163
194
  children: [
164
- /* @__PURE__ */ e(Y, {}),
165
- /* @__PURE__ */ e(z, {})
195
+ /* @__PURE__ */ e(q, {}),
196
+ /* @__PURE__ */ e(P, {})
166
197
  ]
167
198
  }
168
199
  )
169
200
  ] });
170
- }, i1 = g(n1), o1 = g(() => {
171
- const { accounts: c } = R(), { isDesktop: a } = $(), { selectedAccountGuids: n } = w(), { isAccountDataLoaded: l } = k();
172
- return l ? /* @__PURE__ */ i(T, { sx: { px: a ? 24 : 12 }, children: [
173
- n.length < 1 && /* @__PURE__ */ e(v, { display: "flex", justifyContent: "center", my: 24, children: c.no_accounts }),
174
- /* @__PURE__ */ e(i1, {})
175
- ] }) : /* @__PURE__ */ i(T, { gap: 24, children: [
176
- /* @__PURE__ */ e(_, { height: 150, sx: { m: 24 }, variant: "rounded" }),
177
- /* @__PURE__ */ e(_, { height: 150, sx: { m: 24 }, variant: "rounded" }),
178
- /* @__PURE__ */ e(_, { height: 150, sx: { m: 24 }, variant: "rounded" }),
179
- /* @__PURE__ */ e(_, { height: 150, sx: { m: 24 }, variant: "rounded" })
180
- ] });
181
- }), C1 = ({ onBackClick: c, sx: a = {} }) => {
182
- const [n, l] = d.useState(!1), [H, L] = d.useState(!1), { config: u } = J(), { detailedAccounts: p, isAccountDataLoaded: m, loadAccountData: r } = k(), { accounts: s, connect: h } = R(), { isInitialized: M, setSelectedAccounts: F } = w(), { onEvent: V } = U();
201
+ }, o1 = x(n1), d1 = ({ onBackClick: n, sx: r = {} }) => {
202
+ const [C, l] = d.useState(!1), [f, L] = d.useState(!1), { config: V } = Q(), { detailedAccounts: h, isAccountDataLoaded: v, loadAccountData: H } = D(), { accounts: c, connect: p } = A(), { isInitialized: R, selectedAccountGuids: M, setSelectedAccounts: _ } = F(), { isDesktop: w } = $(), { onEvent: t } = U();
183
203
  d.useEffect(() => {
184
- m || r().finally();
204
+ v || H().finally();
185
205
  }, []), d.useEffect(() => {
186
- F(p);
187
- }, [p]);
188
- const Z = () => {
189
- l(!0), V?.(S.ACCOUNTS_CLICK_CONNECT);
190
- }, t = () => {
191
- L(!0), V?.(S.ACCOUNTS_CLICK_CONNECT);
206
+ _(h);
207
+ }, [h]);
208
+ const o = () => {
209
+ l(!0), t(k.ACCOUNTS_CLICK_CONNECT);
210
+ }, Z = () => {
211
+ L(!0), t(k.ACCOUNTS_CLICK_CONNECT);
192
212
  };
193
- if (!M)
194
- return /* @__PURE__ */ e(b, {});
195
- const o = u.show_connections_widget_in_master ? [
196
- { iconName: "add", label: s.add, onClick: Z },
213
+ return R ? /* @__PURE__ */ i(
214
+ e1,
197
215
  {
198
- iconName: "credit_card_gear",
199
- label: s.manage,
200
- onClick: t
201
- }
202
- ] : [];
203
- return /* @__PURE__ */ i(
204
- X,
205
- {
206
- accountOptions: p,
207
- actions: o,
208
- onAccountsFilterClick: () => V?.(S.ACCOUNTS_CLICK_FILTER),
209
- onBackClick: c,
210
- sx: a,
211
- title: s.title,
216
+ accountOptions: h,
217
+ actions: V.show_connections_widget_in_master ? [
218
+ { iconName: "add", label: c.add, onClick: o },
219
+ {
220
+ iconName: "credit_card_gear",
221
+ label: c.manage,
222
+ onClick: Z
223
+ }
224
+ ] : [],
225
+ onAccountsFilterClick: () => t(k.ACCOUNTS_CLICK_FILTER),
226
+ onBackClick: n,
227
+ sx: r,
228
+ title: c.title,
212
229
  children: [
213
- /* @__PURE__ */ e(o1, {}),
230
+ v ? /* @__PURE__ */ i(u, { sx: { px: w ? 24 : 12 }, children: [
231
+ M.length < 1 && /* @__PURE__ */ e(g, { display: "flex", justifyContent: "center", my: 24, children: c.no_accounts }),
232
+ /* @__PURE__ */ e(o1, {})
233
+ ] }) : /* @__PURE__ */ e(K, { sx: { px: w ? 48 : 24, pt: 24 }, variant: "list" }),
214
234
  /* @__PURE__ */ e(
215
235
  j,
216
236
  {
217
237
  onClose: () => l(!1),
218
- showConnectWidget: n,
219
- title: h.mini_title
238
+ showConnectWidget: C,
239
+ title: p.mini_title
220
240
  }
221
241
  ),
222
242
  /* @__PURE__ */ e(
223
- e1,
243
+ t1,
224
244
  {
225
245
  onClose: () => L(!1),
226
- showConnectionsWidget: H,
227
- title: s.manage_connections
246
+ showConnectionsWidget: f,
247
+ title: c.manage_connections
228
248
  }
229
249
  )
230
250
  ]
231
251
  }
232
- );
233
- }, D1 = g(C1), d1 = ({ onPrimaryCtaClick: c, sx: a }) => {
234
- const { visibleAccounts: n } = k(), { accounts: l } = R(), { isCopyLoaded: H, isInitialized: L, selectedAccounts: u, setSelectedAccounts: p } = w(), { isDesktop: m } = $();
252
+ ) : /* @__PURE__ */ e(T, {});
253
+ }, D1 = x(d1), C1 = ({ onPrimaryCtaClick: n, sx: r }) => {
254
+ const { visibleAccounts: C, isAccountDataLoaded: l, loadAccountData: f } = D(), { accounts: L } = A(), { isInitialized: V, selectedAccounts: h, setSelectedAccounts: v } = F(), { isDesktop: H } = $();
235
255
  d.useEffect(() => {
236
- p(n);
237
- }, [n]);
238
- const r = d.useMemo(
239
- () => t1(u, m ? 5 : 3),
240
- [u, m]
256
+ l || f().finally();
257
+ }, []), d.useEffect(() => {
258
+ v(C);
259
+ }, [C]);
260
+ const c = d.useMemo(
261
+ () => i1(h, H ? 5 : 3),
262
+ [h, H]
241
263
  );
242
- return H ? /* @__PURE__ */ e(
264
+ return V ? /* @__PURE__ */ e(
243
265
  G,
244
266
  {
245
267
  className: "mx-exp-accounts-miniwidget",
246
- onPrimaryCtaClick: c,
247
- primaryCtaLabel: l.primary_cta,
248
- sx: a,
249
- title: l.mini_title,
250
- children: L ? /* @__PURE__ */ i(W, { children: [
251
- u.length === 0 && /* @__PURE__ */ e(l1, { sx: { justifyContent: "center" }, children: l.no_accounts }),
252
- r.map((s, h) => {
253
- const M = r.indexOf(s) === r.length - 1;
268
+ onPrimaryCtaClick: n,
269
+ primaryCtaLabel: L.primary_cta,
270
+ sx: r,
271
+ title: L.mini_title,
272
+ children: l ? /* @__PURE__ */ i(B, { children: [
273
+ h.length === 0 && /* @__PURE__ */ e(l1, { sx: { justifyContent: "center" }, children: L.no_accounts }),
274
+ c.map((p, R) => {
275
+ const M = c.indexOf(p) === c.length - 1;
254
276
  return /* @__PURE__ */ i(d.Fragment, { children: [
255
277
  /* @__PURE__ */ e(
256
- D,
278
+ W,
257
279
  {
258
- account: s,
280
+ account: p,
259
281
  listItemProps: { sx: { px: 24 } },
260
282
  shouldShowConnectionStatus: !0
261
283
  }
262
284
  ),
263
- !M && /* @__PURE__ */ e(y, { "aria-hidden": "true", variant: "inset" })
264
- ] }, `account-item${h}`);
285
+ !M && /* @__PURE__ */ e(b, { "aria-hidden": "true", variant: "inset" })
286
+ ] }, `account-item${R}`);
265
287
  })
266
- ] }) : /* @__PURE__ */ e(b, {})
288
+ ] }) : /* @__PURE__ */ e(K, { sx: { px: 12, py: 8 }, variant: "list" })
267
289
  }
268
- ) : /* @__PURE__ */ e(b, {});
269
- }, T1 = g(d1), c1 = () => /* @__PURE__ */ i(
290
+ ) : /* @__PURE__ */ e(T, {});
291
+ }, T1 = x(C1), c1 = () => /* @__PURE__ */ i(
270
292
  "svg",
271
293
  {
272
294
  fill: "none",
@@ -705,12 +727,12 @@ const n1 = () => {
705
727
  )
706
728
  ]
707
729
  }
708
- ), s1 = () => {
709
- const { connect: c } = R();
710
- return /* @__PURE__ */ i(T, { alignItems: "center", direction: "column", m: 24, children: [
730
+ ), a1 = () => {
731
+ const { connect: n } = A();
732
+ return /* @__PURE__ */ i(u, { alignItems: "center", direction: "column", m: 24, children: [
711
733
  /* @__PURE__ */ e(c1, {}),
712
734
  /* @__PURE__ */ e(
713
- v,
735
+ g,
714
736
  {
715
737
  sx: {
716
738
  whiteSpace: "wrap",
@@ -718,44 +740,44 @@ const n1 = () => {
718
740
  textAlign: "center"
719
741
  },
720
742
  variant: "Paragraph",
721
- children: c.mini_widget_content
743
+ children: n.mini_widget_content
722
744
  }
723
745
  )
724
746
  ] });
725
- }, a1 = g(s1), r1 = ({
726
- onPrimaryCtaClick: c = () => {
747
+ }, s1 = x(a1), r1 = ({
748
+ onPrimaryCtaClick: n = () => {
727
749
  },
728
- sx: a
750
+ sx: r
729
751
  }) => {
730
- const { isCopyLoaded: n } = w(), { connect: l } = R(), [H, L] = d.useState(!1), u = () => {
731
- L(!0), c();
752
+ const { isCopyLoaded: C } = F(), { connect: l } = A(), [f, L] = d.useState(!1), V = () => {
753
+ L(!0), n();
732
754
  };
733
- return n ? /* @__PURE__ */ i(
755
+ return C ? /* @__PURE__ */ i(
734
756
  G,
735
757
  {
736
758
  className: "mx-exp-connect-miniwidget",
737
- onPrimaryCtaClick: u,
759
+ onPrimaryCtaClick: V,
738
760
  primaryCtaLabel: l.primary_cta,
739
- sx: a,
761
+ sx: r,
740
762
  title: l.mini_title,
741
763
  children: [
742
- /* @__PURE__ */ e(a1, {}),
743
- H && /* @__PURE__ */ e(
764
+ /* @__PURE__ */ e(s1, {}),
765
+ f && /* @__PURE__ */ e(
744
766
  j,
745
767
  {
746
768
  onClose: () => L(!1),
747
- showConnectWidget: H,
769
+ showConnectWidget: f,
748
770
  title: l.mini_title
749
771
  }
750
772
  )
751
773
  ]
752
774
  }
753
- ) : /* @__PURE__ */ e(b, {});
754
- }, O1 = g(r1);
775
+ ) : /* @__PURE__ */ e(T, {});
776
+ }, O1 = x(r1);
755
777
  export {
756
778
  q1 as AccountApi,
757
- z as AccountDetailsContent,
758
- Y as AccountDetailsHeader,
779
+ P as AccountDetailsContent,
780
+ q as AccountDetailsHeader,
759
781
  J1 as AccountStore,
760
782
  T1 as AccountsMiniWidget,
761
783
  D1 as AccountsWidget,
@@ -764,6 +786,6 @@ export {
764
786
  P1 as MemberConnectionStatus,
765
787
  j1 as getAccountBalanceDetails,
766
788
  G1 as getAccountDetailFields,
767
- P as useAccountUiStore,
789
+ Y as useAccountUiStore,
768
790
  U1 as useGetMergeableAccounts
769
791
  };
@@ -0,0 +1,7 @@
1
+ import { SxProps } from '@mui/material/styles';
2
+ interface SkeletonLoaderProps {
3
+ sx?: SxProps;
4
+ variant?: 'card' | 'list' | 'dashboard';
5
+ }
6
+ export declare const SkeletonLoader: ({ sx, variant }: SkeletonLoaderProps) => import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -1,4 +1,4 @@
1
- import { G as L } from "../useCombineEvents-BUDIR1ba.mjs";
1
+ import { G as R } from "../useCombineEvents-BUDIR1ba.mjs";
2
2
  import { A as ss, a as rs, u as os, b as as } from "../useCombineEvents-BUDIR1ba.mjs";
3
3
  import { F as y, A as h } from "../Fetch-87LIQbEA.mjs";
4
4
  import { B as is } from "../BeatApi-DhJpgCLz.mjs";
@@ -12,11 +12,11 @@ import { H as ot } from "../Help-DhcC-C05.mjs";
12
12
  import { E as ys } from "../Help-DhcC-C05.mjs";
13
13
  import { M as bs } from "../MicroWidgetContainer-DpeqN9n3.mjs";
14
14
  import { M as xs } from "../MiniWidgetContainer-D0gfmbaF.mjs";
15
- import { A as Ds, D as vs, W as As } from "../WidgetContainer-BHWANqT4.mjs";
16
- import { k as Ts, a as Bs, h as Is, j as Ns, A as Ms, i as ks, l as $s, C as Rs, n as Ls, E as Os, M as Ps, N as Us, c as Hs, P as Gs, o as Fs, S as Ws } from "../ConnectDrawer-BQNs-hjk.mjs";
15
+ import { A as Ds, D as As, W as vs } from "../WidgetContainer-BHWANqT4.mjs";
16
+ import { k as Ts, a as Bs, h as Is, j as Ns, A as Ms, i as Ls, l as ks, C as $s, n as Rs, E as Os, M as Ps, N as Us, c as Hs, P as Gs, o as Fs, S as Ws } from "../ConnectDrawer-BQNs-hjk.mjs";
17
17
  import { C as Ys } from "../CurrencyInput-DUsQbkXb.mjs";
18
18
  import { L as Xs } from "../Loader-DUaFpDGv.mjs";
19
- import { R as js } from "../ResponsiveButton-DZFp78fJ.mjs";
19
+ import { R as Ks } from "../ResponsiveButton-DZFp78fJ.mjs";
20
20
  import { S as Vs } from "../SearchBox-B2_zLv8-.mjs";
21
21
  import { T as at } from "../TransactionStore-ai3uII_r.mjs";
22
22
  import { S as Js } from "../TransactionStore-ai3uII_r.mjs";
@@ -31,28 +31,28 @@ import { C as Sr } from "../CurrencyText-kyC1aseI.mjs";
31
31
  import { E as wr } from "../EmptyState-DA_lfRBv.mjs";
32
32
  import { L as Cr } from "../ListItemAction-DHa3KJPs.mjs";
33
33
  import { T as ct } from "../TrendsStore-DCYbpXPO.mjs";
34
- import { L as vr, S as Ar } from "../TrendsStore-DCYbpXPO.mjs";
35
- import { A as Tr, B as Br, I as Ir, N as Nr, T as Mr, a as kr } from "../ToggleListItem-r0Kx56wF.mjs";
34
+ import { L as Ar, S as vr } from "../TrendsStore-DCYbpXPO.mjs";
35
+ import { A as Tr, B as Br, I as Ir, N as Nr, T as Mr, a as Lr } from "../ToggleListItem-r0Kx56wF.mjs";
36
36
  import { jsxs as f, jsx as n } from "react/jsx-runtime";
37
37
  import dt, { useRef as lt, useEffect as ut } from "react";
38
38
  import { css as x, keyframes as ht } from "@mxenabled/cssinjs";
39
39
  import { useTokens as C, Text as B } from "@mxenabled/mxui";
40
- import { D as Rr } from "../Donut-oaQFlbit.mjs";
40
+ import { D as $r } from "../Donut-oaQFlbit.mjs";
41
41
  import { L as Or } from "../LineChart-D4GI7nVh.mjs";
42
42
  import { S as Ur } from "../StatusBar-BK_uYHAB.mjs";
43
43
  import { D as Gr, a as Fr, O as Wr, b as qr, f as Yr } from "../Dialog-CWW597AF.mjs";
44
44
  import { D as gt, a as pt } from "../SingleSegmentDonut-BgbLgwHi.mjs";
45
45
  import { S as Xr } from "../SingleSegmentDonut-BgbLgwHi.mjs";
46
- import { D as jr } from "../Drawer-kEE73B87.mjs";
46
+ import { D as Kr } from "../Drawer-kEE73B87.mjs";
47
47
  import { I as Vr, P as Zr, S as Jr } from "../Account-Bxw0_4FU.mjs";
48
48
  import { b as E } from "../Category-CevNQ03n.mjs";
49
49
  import { C as eo, c as so, a as ro, P as oo } from "../Category-CevNQ03n.mjs";
50
50
  import { C as no, f as io, b as co, a as lo, g as uo, i as ho } from "../NumberFormatting-Buh7u8Oi.mjs";
51
51
  import { R as mt } from "../RecurringTransactionsStore-C4YOD7_D.mjs";
52
52
  import { S as po, T as mo } from "../RecurringTransactionsStore-C4YOD7_D.mjs";
53
- import { G as fo, C as yo, D as So, W as bo, d as wo, a as xo, i as Co, v as Do, m as vo, y as Ao, z as Eo, g as To, x as Bo, u as Io, f as No, b as Mo, l as ko, A as $o, t as Ro, n as Lo, c as Oo, r as Po, o as Uo, B as Ho, j as Go, s as Fo, h as Wo, w as qo, p as Yo, q as Qo } from "../hooks-D6XlXHf4.mjs";
54
- import { u as zo } from "../useAccountDisplayName-BUAApBIb.mjs";
55
- import { u as Ko } from "../useInsightsEnabled-DBpwEq10.mjs";
53
+ import { G as fo, C as yo, D as So, W as bo, d as wo, a as xo, i as Co, v as Do, m as Ao, y as vo, z as Eo, g as To, x as Bo, u as Io, f as No, b as Mo, l as Lo, A as ko, t as $o, n as Ro, c as Oo, r as Po, o as Uo, B as Ho, j as Go, s as Fo, h as Wo, w as qo, p as Yo, q as Qo } from "../hooks-D6XlXHf4.mjs";
54
+ import { u as jo } from "../useAccountDisplayName-BUAApBIb.mjs";
55
+ import { u as zo } from "../useInsightsEnabled-DBpwEq10.mjs";
56
56
  import { u as Zo } from "../useScreenSize-B6JyS_Lj.mjs";
57
57
  import { makeAutoObservable as _, runInAction as S, reaction as _t } from "mobx";
58
58
  import { a as ft } from "../AccountStore-BgNOyMdp.mjs";
@@ -65,7 +65,7 @@ import { f as bt, a as wt, b as P } from "../BudgetUtil-B2ZXyw-g.mjs";
65
65
  import { g as ta, e as ea, c as sa, d as ra, i as oa } from "../BudgetUtil-B2ZXyw-g.mjs";
66
66
  import { a as xt } from "../DebtsStore-C9bblOgW.mjs";
67
67
  import { a as Ct } from "../FinstrongStore-F2c607dj.mjs";
68
- import { A as Dt, m as vt, a as At, b as Et } from "../InvestmentUtil-jOyOgzIB.mjs";
68
+ import { A as Dt, m as At, a as vt, b as Et } from "../InvestmentUtil-jOyOgzIB.mjs";
69
69
  import { M as Tt } from "../MerchantStore-DrFvsUyy.mjs";
70
70
  import { N as Bt } from "../NetWorthStore-DCsTZpuS.mjs";
71
71
  import { a as It } from "../SettingsStore-BcgS_Ohv.mjs";
@@ -74,7 +74,7 @@ import { getMonth as T } from "date-fns/getMonth";
74
74
  import { i as na } from "../DateUtil-BcuH7ErC.mjs";
75
75
  import { b as ca, a as da, g as la } from "../Localization-2MODESHW.mjs";
76
76
  import { alpha as Mt, lighten as U, darken as H } from "@mui/material";
77
- var kt = /* @__PURE__ */ ((s) => (s[s.Unknown = 0] = "Unknown", s[s.EveryWeek = 1] = "EveryWeek", s[s.EveryOtherWeek = 2] = "EveryOtherWeek", s[s.EveryMonth = 3] = "EveryMonth", s[s.EveryOtherMonth = 4] = "EveryOtherMonth", s[s.EveryQuarter = 5] = "EveryQuarter", s[s.EveryOtherQuarter = 6] = "EveryOtherQuarter", s[s.EveryYear = 7] = "EveryYear", s))(kt || {});
77
+ var Lt = /* @__PURE__ */ ((s) => (s[s.Unknown = 0] = "Unknown", s[s.EveryWeek = 1] = "EveryWeek", s[s.EveryOtherWeek = 2] = "EveryOtherWeek", s[s.EveryMonth = 3] = "EveryMonth", s[s.EveryOtherMonth = 4] = "EveryOtherMonth", s[s.EveryQuarter = 5] = "EveryQuarter", s[s.EveryOtherQuarter = 6] = "EveryOtherQuarter", s[s.EveryYear = 7] = "EveryYear", s))(Lt || {});
78
78
  const Ye = [
79
79
  { id: 0, copy: "frequency_unknown" },
80
80
  { id: 1, copy: "frequency_every_week" },
@@ -89,8 +89,8 @@ const Ye = [
89
89
  LOADING: "LOADING",
90
90
  SUCCESS: "SUCCESS"
91
91
  };
92
- var $t = /* @__PURE__ */ ((s) => (s[s.SpendingPlan = 0] = "SpendingPlan", s[s.Budgets = 1] = "Budgets", s))($t || {}), Rt = /* @__PURE__ */ ((s) => (s[s.RecurringExpense = 0] = "RecurringExpense", s[s.PlannedExpense = 1] = "PlannedExpense", s[s.Other = 2] = "Other", s[s.Income = 3] = "Income", s))(Rt || {});
93
- const Lt = [
92
+ var kt = /* @__PURE__ */ ((s) => (s[s.SpendingPlan = 0] = "SpendingPlan", s[s.Budgets = 1] = "Budgets", s))(kt || {}), $t = /* @__PURE__ */ ((s) => (s[s.RecurringExpense = 0] = "RecurringExpense", s[s.PlannedExpense = 1] = "PlannedExpense", s[s.Other = 2] = "Other", s[s.Income = 3] = "Income", s))($t || {});
93
+ const Rt = [
94
94
  "fontFamily",
95
95
  "H1",
96
96
  "h1",
@@ -135,7 +135,7 @@ const Lt = [
135
135
  )
136
136
  ])
137
137
  ), d = Object.fromEntries(
138
- Lt.map((i) => [
138
+ Rt.map((i) => [
139
139
  i,
140
140
  i === "fontFamily" ? o : { fontFamily: o }
141
141
  ])
@@ -204,7 +204,7 @@ class G {
204
204
  }
205
205
  };
206
206
  }
207
- class ze {
207
+ class je {
208
208
  fetchInstance;
209
209
  constructor(t, e, r) {
210
210
  this.fetchInstance = new y(t, e, void 0, r);
@@ -212,7 +212,7 @@ class ze {
212
212
  getLocalizedCopy = async (t) => this.fetchInstance.post(h.LOCALIZED_COPY, t).then((e) => e);
213
213
  getLocalizedContent = async (t) => this.fetchInstance.post(`${h.LOCALIZED_CONTENT}/${t}`).then((e) => e);
214
214
  }
215
- class je {
215
+ class Ke {
216
216
  fetchInstance;
217
217
  constructor(t, e, r) {
218
218
  this.fetchInstance = new y(t, e, void 0, r);
@@ -243,7 +243,7 @@ class W {
243
243
  requestWidgetUrl = async (t) => this.fetchInstance.post(h.WIDGET_URLS, t).then((e) => e.widget_url);
244
244
  }
245
245
  var Pt = /* @__PURE__ */ ((s) => (s[s.UNKNOWN = 0] = "UNKNOWN", s[s.CORRECT = 1] = "CORRECT", s[s.INCORRECT = 2] = "INCORRECT", s))(Pt || {}), Ut = /* @__PURE__ */ ((s) => (s.Missed = "Missed", s.Paid = "Paid", s.Upcoming = "Upcoming expense", s.Income = "Income", s))(Ut || {}), Ht = /* @__PURE__ */ ((s) => (s[s.Unknown = 0] = "Unknown", s[s.Subscription = 1] = "Subscription", s[s.Bill = 2] = "Bill", s))(Ht || {}), Gt = /* @__PURE__ */ ((s) => (s.Desktop = "Desktop", s.Mobile = "Mobile", s))(Gt || {});
246
- const Ke = (s) => {
246
+ const ze = (s) => {
247
247
  const t = lt();
248
248
  return ut(() => {
249
249
  t.current = s;
@@ -373,7 +373,7 @@ const Ke = (s) => {
373
373
  width: p,
374
374
  xAxisLabel: i = ""
375
375
  }) => {
376
- const m = C(), b = Yt(m, p), D = u / c * l, v = Math.abs(u) / c * e, A = d === void 0 || d === o ? "primary" : "secondary";
376
+ const m = C(), b = Yt(m, p), D = u / c * l, A = Math.abs(u) / c * e, v = d === void 0 || d === o ? "primary" : "secondary";
377
377
  return /* @__PURE__ */ f("div", { className: `mx-cmn-barchart-bar-column ${b}`, children: [
378
378
  /* @__PURE__ */ n("div", { style: { height: l }, children: u >= 0 && /* @__PURE__ */ n(
379
379
  q,
@@ -395,7 +395,7 @@ const Ke = (s) => {
395
395
  {
396
396
  ariaLabel: s,
397
397
  color: r,
398
- height: v,
398
+ height: A,
399
399
  index: o,
400
400
  label: g,
401
401
  onClick: a,
@@ -407,7 +407,7 @@ const Ke = (s) => {
407
407
  {
408
408
  className: `mx-cmn-bar-label ${a ? "mx-cmn-clickable" : ""}`,
409
409
  onClick: a ? () => a(o) : void 0,
410
- children: /* @__PURE__ */ n(B, { bold: d === o, color: A, variant: "Small", children: i })
410
+ children: /* @__PURE__ */ n(B, { bold: d === o, color: v, variant: "Small", children: i })
411
411
  }
412
412
  )
413
413
  ] });
@@ -436,10 +436,10 @@ const Ke = (s) => {
436
436
  "& .mx-cmn-clickable": {
437
437
  cursor: "pointer"
438
438
  }
439
- }), Qt = (s, t) => s + t, Xt = (s, t) => Math.abs(t) > s ? Math.abs(t) : s, zt = (s, t) => [...s, t.value], Q = (s, t, e) => {
439
+ }), Qt = (s, t) => s + t, Xt = (s, t) => Math.abs(t) > s ? Math.abs(t) : s, jt = (s, t) => [...s, t.value], Q = (s, t, e) => {
440
440
  const r = s && t ? e / 2 : e;
441
441
  return s ? r : 0;
442
- }, jt = (s, t, e, r) => s / (t < 0 ? -e : t) * r || 0, Kt = ({
442
+ }, Kt = (s, t, e, r) => s / (t < 0 ? -e : t) * r || 0, zt = ({
443
443
  average: s,
444
444
  barWidth: t = "8%",
445
445
  color: e,
@@ -451,13 +451,13 @@ const Ke = (s) => {
451
451
  selectedIndex: l,
452
452
  valueFormatter: u = (g) => `${g}`
453
453
  }) => {
454
- const g = C(), p = Vt(g), i = r.reduce(zt, []), m = s !== void 0 ? s : i.reduce(Qt, 0) / i.length, b = Math.max(...i), D = Math.min(...i), v = i.reduce(Xt, 0), A = b >= 0, k = D < 0, I = Q(A, k, o), N = Q(k, A, o), $ = jt(m, b, D, I || N), tt = (w) => l === void 0 || w === l ? e : `${e}80`, R = () => /* @__PURE__ */ n(
454
+ const g = C(), p = Vt(g), i = r.reduce(jt, []), m = s !== void 0 ? s : i.reduce(Qt, 0) / i.length, b = Math.max(...i), D = Math.min(...i), A = i.reduce(Xt, 0), v = b >= 0, L = D < 0, I = Q(v, L, o), N = Q(L, v, o), k = Kt(m, b, D, I || N), tt = (w) => l === void 0 || w === l ? e : `${e}80`, $ = () => /* @__PURE__ */ n(
455
455
  Y,
456
456
  {
457
- averageLineHeight: $,
457
+ averageLineHeight: k,
458
458
  bottomHeight: N,
459
459
  color: "",
460
- range: v,
460
+ range: A,
461
461
  topHeight: I,
462
462
  value: 0,
463
463
  width: void 0
@@ -465,18 +465,18 @@ const Ke = (s) => {
465
465
  );
466
466
  return /* @__PURE__ */ f("div", { className: `mx-cmn-bar-chart ${p}`, children: [
467
467
  /* @__PURE__ */ f("div", { className: "mx-cmn-chart-container", children: [
468
- /* @__PURE__ */ n(R, {}),
468
+ /* @__PURE__ */ n($, {}),
469
469
  r.map((w, M) => /* @__PURE__ */ f(dt.Fragment, { children: [
470
470
  /* @__PURE__ */ n(
471
471
  Y,
472
472
  {
473
473
  ariaLabel: w.ariaLabel,
474
- averageLineHeight: $,
474
+ averageLineHeight: k,
475
475
  bottomHeight: N,
476
476
  color: tt(M),
477
477
  index: M,
478
478
  onClick: d,
479
- range: v,
479
+ range: A,
480
480
  selectedIndex: l,
481
481
  topHeight: I,
482
482
  value: w.value,
@@ -485,7 +485,7 @@ const Ke = (s) => {
485
485
  xAxisLabel: w.label
486
486
  }
487
487
  ),
488
- /* @__PURE__ */ n(R, {})
488
+ /* @__PURE__ */ n($, {})
489
489
  ] }, `column-${M}`))
490
490
  ] }),
491
491
  /* @__PURE__ */ n(Ft, { color: e, labelAverage: a, labelMain: c })
@@ -498,7 +498,7 @@ const Ke = (s) => {
498
498
  marginTop: s.Spacing.Large,
499
499
  marginBottom: s.Spacing.Medium
500
500
  }
501
- }), Ve = Kt, Zt = ({
501
+ }), Ve = zt, Zt = ({
502
502
  hasGap: s = !1,
503
503
  segments: t,
504
504
  size: e = gt,
@@ -553,12 +553,12 @@ const Ke = (s) => {
553
553
  }), Ze = Zt;
554
554
  class te {
555
555
  globalStore;
556
- api = new L("/", "");
556
+ api = new R("/", "");
557
557
  copy = {};
558
558
  featureNamespace = "experiences";
559
559
  isInitialized = !1;
560
560
  constructor(t) {
561
- this.globalStore = t, this.api = new L(
561
+ this.globalStore = t, this.api = new R(
562
562
  t.endpoint,
563
563
  t.sessionToken,
564
564
  t.onError
@@ -781,7 +781,7 @@ class se {
781
781
  }
782
782
  };
783
783
  }
784
- class z {
784
+ class j {
785
785
  fetchInstance;
786
786
  constructor(t, e, r) {
787
787
  this.fetchInstance = new y(t, e, void 0, r);
@@ -807,12 +807,12 @@ const re = (s, t) => s.guid === "general" || s.guid === "insights" ? !0 : s.flag
807
807
  };
808
808
  class ae {
809
809
  alert = { message: "", severity: void 0 };
810
- api = new z("/", "");
810
+ api = new j("/", "");
811
811
  appConfig;
812
812
  globalStore;
813
813
  isLoading = !1;
814
814
  constructor(t) {
815
- this.globalStore = t, this.api = new z(t.endpoint, t.sessionToken, t.onError), _(this);
815
+ this.globalStore = t, this.api = new j(t.endpoint, t.sessionToken, t.onError), _(this);
816
816
  }
817
817
  createSupportTicket = async (t) => {
818
818
  try {
@@ -841,7 +841,7 @@ class ae {
841
841
  );
842
842
  }
843
843
  }
844
- class j {
844
+ class K {
845
845
  fetchInstance;
846
846
  constructor(t, e, r) {
847
847
  this.fetchInstance = new y(t, e, void 0, r);
@@ -851,16 +851,16 @@ class j {
851
851
  }
852
852
  class ne {
853
853
  analysisType = Dt.Stocks;
854
- api = new j("/", "");
854
+ api = new K("/", "");
855
855
  holdings = [];
856
856
  holdingsLoaded = !1;
857
857
  globalStore;
858
858
  showConnectionsWidget = !1;
859
859
  constructor(t) {
860
- this.globalStore = t, this.api = new j(t.endpoint, t.sessionToken, t.onError), _(this);
860
+ this.globalStore = t, this.api = new K(t.endpoint, t.sessionToken, t.onError), _(this);
861
861
  }
862
862
  get analysisChartData() {
863
- return vt(At(this.visibleHoldings), this.analysisType);
863
+ return At(vt(this.visibleHoldings), this.analysisType);
864
864
  }
865
865
  get analysisDetails() {
866
866
  return Et(this.visibleHoldings)[this.analysisType] || {};
@@ -902,7 +902,7 @@ class ne {
902
902
  }
903
903
  };
904
904
  }
905
- const K = {
905
+ const z = {
906
906
  clientConfig: {},
907
907
  clientStyleProfile: {},
908
908
  config: {
@@ -1078,7 +1078,6 @@ class ce {
1078
1078
  }
1079
1079
  class de {
1080
1080
  globalStore;
1081
- isInitialized = !1;
1082
1081
  selectedAccounts = [];
1083
1082
  selectedAccountGuids = this.selectedAccounts.map((t) => t.guid);
1084
1083
  displayedDate = /* @__PURE__ */ new Date();
@@ -1092,9 +1091,15 @@ class de {
1092
1091
  get isCopyLoaded() {
1093
1092
  return this.globalStore.copyStore.isInitialized;
1094
1093
  }
1095
- setInitialized = (t) => {
1096
- this.isInitialized = t;
1097
- };
1094
+ get isConfigLoaded() {
1095
+ return this.globalStore.appDataStore.isAppDataLoaded;
1096
+ }
1097
+ get areUserFeaturesLoaded() {
1098
+ return this.globalStore.userStore.userFeaturesLoaded;
1099
+ }
1100
+ get isInitialized() {
1101
+ return this.isCopyLoaded && this.isConfigLoaded && this.areUserFeaturesLoaded;
1102
+ }
1098
1103
  // for the global account filter
1099
1104
  // if excluded from 1 widget, excluded from all
1100
1105
  setSelectedAccounts = (t) => {
@@ -1166,7 +1171,7 @@ class le {
1166
1171
  }
1167
1172
  class Je {
1168
1173
  // Global properties
1169
- appConfig = K;
1174
+ appConfig = z;
1170
1175
  endpoint = "/";
1171
1176
  sessionToken = "";
1172
1177
  onError;
@@ -1195,7 +1200,7 @@ class Je {
1195
1200
  userStore;
1196
1201
  // UI Stores
1197
1202
  globalUiStore;
1198
- constructor(t = K, e = "/", r) {
1203
+ constructor(t = z, e = "/", r) {
1199
1204
  this.appConfig = t, this.endpoint = e, this.sessionToken = t.options.session_token ?? "", this.onError = r, this.accountStore = new ft(this), this.appDataStore = new ie(this), this.analyticsStore = new ee(this), this.beatStore = new St(this), this.budgetsStore = new se(this), this.cashflowStore = new nt(this), this.categoryStore = new et(this), this.connectStore = new ce(this), this.copyStore = new te(this), this.debtsStore = new xt(this), this.finstrongStore = new Ct(this), this.goalStore = new it(this), this.helpStore = new ae(this), this.holdingStore = new ne(this), this.merchantStore = new Tt(this), this.netWorthStore = new Bt(this), this.notificationStore = new st(this), this.recurringTransactionsStore = new mt(this), this.settingsStore = new It(this), this.transactionStore = new at(this), this.trendsStore = new ct(this), this.userStore = new le(this), this.globalUiStore = new de(this), _(this);
1200
1205
  }
1201
1206
  get isInitialized() {
@@ -1203,11 +1208,11 @@ class Je {
1203
1208
  }
1204
1209
  loadConfigData = async () => {
1205
1210
  await Promise.all([
1206
- // Load copy, config and quser data
1211
+ // Load copy, config and user data
1207
1212
  this.copyStore.loadCopy(),
1208
1213
  this.appDataStore.loadAppData(),
1209
1214
  this.userStore.loadUserFeatures()
1210
- ]), this.globalUiStore.setInitialized(!0);
1215
+ ]);
1211
1216
  };
1212
1217
  loadData = async ({
1213
1218
  accounts: t,
@@ -1219,7 +1224,7 @@ class Je {
1219
1224
  transactions: d,
1220
1225
  userFeatures: l
1221
1226
  } = {}) => {
1222
- await this.loadConfigData(), e && this.appDataStore.setAppData(e), l && this.userStore.setUserFeatures(l), t && a && (await this.accountStore.loadMembers(), this.accountStore.setInstitutions(a), this.accountStore.setAccounts(t)), r && this.transactionStore.setAssociatedBeats(r), o && this.categoryStore.setCategories(o), d && this.transactionStore.setTransactions(d), c && this.transactionStore.setTransactionRules(c);
1227
+ (!e || !l) && await this.loadConfigData(), e && this.appDataStore.setAppData(e), l && this.userStore.setUserFeatures(l), t && a && (await this.accountStore.loadMembers(), this.accountStore.setInstitutions(a), this.accountStore.setAccounts(t)), r && this.transactionStore.setAssociatedBeats(r), o && this.categoryStore.setCategories(o), d && this.transactionStore.setTransactions(d), c && this.transactionStore.setTransactionRules(c);
1223
1228
  };
1224
1229
  }
1225
1230
  export {
@@ -1230,7 +1235,7 @@ export {
1230
1235
  Tr as AccountNotificationTypes,
1231
1236
  Ns as AccountSubType,
1232
1237
  Ms as AccountType,
1233
- ks as AccountTypeName,
1238
+ Ls as AccountTypeName,
1234
1239
  ss as AnalyticsApi,
1235
1240
  h as ApiEndpoints,
1236
1241
  G as BannerApi,
@@ -1245,9 +1250,9 @@ export {
1245
1250
  E as CategoryGuids,
1246
1251
  ro as CategoryIcon,
1247
1252
  pr as ConnectCard,
1248
- $s as ConnectDrawer,
1249
- Rs as ConnectionStatus,
1250
- Ls as ConnectionStatusEnums,
1253
+ ks as ConnectDrawer,
1254
+ $s as ConnectionStatus,
1255
+ Rs as ConnectionStatusEnums,
1251
1256
  no as CurrencyCodes,
1252
1257
  Ys as CurrencyInput,
1253
1258
  Sr as CurrencyText,
@@ -1255,17 +1260,17 @@ export {
1255
1260
  gt as DEFAULT_DONUT_SIZE,
1256
1261
  pt as DEFAULT_STROKE_WIDTH,
1257
1262
  ar as DataRow,
1258
- vs as DateRangeSelector,
1263
+ As as DateRangeSelector,
1259
1264
  Fr as Dialog,
1260
- Rr as Donut,
1261
- jr as Drawer,
1265
+ $r as Donut,
1266
+ Kr as Drawer,
1262
1267
  wr as EmptyState,
1263
1268
  ys as ErrorBoundary,
1264
1269
  Os as ErrorStatuses,
1265
1270
  Ut as ExpenseStatus,
1266
1271
  y as Fetch,
1267
1272
  nr as Frequency,
1268
- L as GlobalCopyApi,
1273
+ R as GlobalCopyApi,
1269
1274
  te as GlobalCopyStore,
1270
1275
  fo as GlobalDataContext,
1271
1276
  yo as GlobalDataProvider,
@@ -1275,14 +1280,14 @@ export {
1275
1280
  rr as IconBacking,
1276
1281
  hr as InformationTooltip,
1277
1282
  Ir as InsightNotificationTypes,
1278
- Rt as IterationItemTypes,
1283
+ $t as IterationItemTypes,
1279
1284
  Qe as LOADING_STATUS,
1280
1285
  Or as LineChart,
1281
1286
  Cr as ListItemAction,
1282
- vr as ListItemRow,
1287
+ Ar as ListItemRow,
1283
1288
  ms as ListItemWrapper,
1284
1289
  Xs as Loader,
1285
- ze as LocalizedCopyApi,
1290
+ je as LocalizedCopyApi,
1286
1291
  _r as MetaType,
1287
1292
  Ps as MfaStatuses,
1288
1293
  bs as MicroWidgetContainer,
@@ -1295,32 +1300,32 @@ export {
1295
1300
  qr as ORDINAL_MONTH_DAY_YEAR_FORMAT,
1296
1301
  Zr as PAYMENT_ACCOUNT_TYPES,
1297
1302
  oo as PaymentCategories,
1298
- $t as PlanTypes,
1303
+ kt as PlanTypes,
1299
1304
  Hs as ProcessingStatuses,
1300
1305
  Gs as PropertyType,
1301
1306
  Fs as PropertyTypeName,
1302
1307
  Ye as RECURRENCE_COPY,
1303
1308
  ir as RecurrenceStatus,
1304
1309
  cr as RecurrenceType,
1305
- kt as RecurrenceTypes,
1310
+ Lt as RecurrenceTypes,
1306
1311
  dr as RepeatingType,
1307
- js as ResponsiveButton,
1312
+ Ks as ResponsiveButton,
1308
1313
  Jr as SPENDING_ACCOUNT_TYPES,
1309
1314
  Ht as ScheduledPaymentTypes,
1310
- je as ScheduledPaymentsApi,
1315
+ Ke as ScheduledPaymentsApi,
1311
1316
  Gt as ScreenSize,
1312
1317
  Vs as SearchBox,
1313
1318
  lr as Select,
1314
1319
  Js as SelectionBox,
1315
1320
  Xr as SingleSegmentDonut,
1316
1321
  po as Sizes,
1317
- Ar as StackedLineChart,
1322
+ vr as StackedLineChart,
1318
1323
  Ur as StatusBar,
1319
1324
  Ws as StatusName,
1320
1325
  mo as TOUCH_TARGET,
1321
1326
  er as TabContentContainer,
1322
1327
  Mr as ToggleButtonListItem,
1323
- kr as ToggleListItem,
1328
+ Lr as ToggleListItem,
1324
1329
  fr as TrackType,
1325
1330
  _s as TransactionStatus,
1326
1331
  rt as TransactionType,
@@ -1328,7 +1333,7 @@ export {
1328
1333
  le as UserStore,
1329
1334
  Pt as UserVerification,
1330
1335
  W as WidgetApi,
1331
- As as WidgetContainer,
1336
+ vs as WidgetContainer,
1332
1337
  So as WidgetContainerContext,
1333
1338
  bo as WidgetContainerProvider,
1334
1339
  rs as analyticsSession,
@@ -1348,31 +1353,31 @@ export {
1348
1353
  la as getLocale,
1349
1354
  oa as isIncome,
1350
1355
  ho as isValidNumber,
1351
- zo as useAccountDisplayName,
1356
+ jo as useAccountDisplayName,
1352
1357
  wo as useAccountStore,
1353
1358
  xo as useAppConfig,
1354
1359
  Co as useBudgetsStore,
1355
1360
  Do as useCashflowStore,
1356
- vo as useCategoryStore,
1361
+ Ao as useCategoryStore,
1357
1362
  os as useCombineEvents,
1358
1363
  as as useCombinePageviews,
1359
- Ao as useDebtStore,
1364
+ vo as useDebtStore,
1360
1365
  Eo as useError,
1361
1366
  To as useEvent,
1362
1367
  Bo as useFinstrongStore,
1363
1368
  Io as useGlobalCopyStore,
1364
1369
  No as useGlobalStore,
1365
1370
  Mo as useGlobalUiStore,
1366
- ko as useGoalStore,
1367
- $o as useHelpStore,
1368
- Ro as useHoldingStore,
1369
- Ko as useInsightsEnabled,
1370
- Lo as useLoad,
1371
+ Lo as useGoalStore,
1372
+ ko as useHelpStore,
1373
+ $o as useHoldingStore,
1374
+ zo as useInsightsEnabled,
1375
+ Ro as useLoad,
1371
1376
  Oo as useMerchantStore,
1372
1377
  Po as useNetWorthStore,
1373
1378
  Uo as useNotificationStore,
1374
1379
  Ho as usePageView,
1375
- Ke as usePrevious,
1380
+ ze as usePrevious,
1376
1381
  Go as useRecurringTransactionsStore,
1377
1382
  Zo as useScreenSize,
1378
1383
  Fo as useSettingsStore,
@@ -2,7 +2,6 @@ import { Account } from '../types';
2
2
  import { GlobalStore } from './GlobalStore';
3
3
  export declare class GlobalUiStore {
4
4
  globalStore: GlobalStore;
5
- isInitialized: boolean;
6
5
  selectedAccounts: Account[];
7
6
  selectedAccountGuids: string[];
8
7
  displayedDate: Date;
@@ -12,7 +11,9 @@ export declare class GlobalUiStore {
12
11
  };
13
12
  constructor(globalStore: GlobalStore);
14
13
  get isCopyLoaded(): boolean;
15
- setInitialized: (isInitialized: boolean) => void;
14
+ get isConfigLoaded(): boolean;
15
+ get areUserFeaturesLoaded(): boolean;
16
+ get isInitialized(): boolean;
16
17
  setSelectedAccounts: (accounts: Account[]) => void;
17
18
  setSelectedAccountGuids: (guids: string[]) => Promise<void>;
18
19
  setDisplayedDate: (startDate: Date, endDate: Date) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mx-cartographer/experiences",
3
- "version": "8.0.0-alpha.bb2",
3
+ "version": "8.0.0-alpha.bb3",
4
4
  "description": "Library containing experience widgets",
5
5
  "author": "MX",
6
6
  "license": "MIT",
@@ -1,3 +0,0 @@
1
- export declare const AccountsWidgetContent: (() => import("react/jsx-runtime").JSX.Element) & {
2
- displayName: string;
3
- };