@mx-cartographer/experiences 3.1.1-alpha.j3 → 3.1.1-alpha.j4

Sign up to get free protection for your applications and to get access to all the features.
@@ -10,6 +10,7 @@ export declare class AccountStore {
10
10
  institutions: Institution[];
11
11
  members: Member[];
12
12
  uiStore: UiStore;
13
+ isInitialized: boolean;
13
14
  constructor(globalStore: GlobalStore);
14
15
  initialize: (endpoint: string, token: string) => void;
15
16
  get cashAccounts(): Account[];
package/dist/index.es.js CHANGED
@@ -10671,11 +10671,12 @@ class e1 {
10671
10671
  institutions = [];
10672
10672
  members = [];
10673
10673
  uiStore;
10674
+ isInitialized = !1;
10674
10675
  constructor(e) {
10675
10676
  this.globalStore = e, this.uiStore = new A1(), wA(this);
10676
10677
  }
10677
10678
  initialize = (e, n) => {
10678
- this.api = new or(e, n), this.widgetApi = new ba(e, n), Promise.all([this.loadAccounts(), this.loadInstitutions()]);
10679
+ this.api = new or(e, n), this.widgetApi = new ba(e, n), Promise.all([this.loadAccounts(), this.loadInstitutions()]).then(() => this.isInitialized = !0);
10679
10680
  };
10680
10681
  get cashAccounts() {
10681
10682
  return this.accounts.filter(
@@ -11048,31 +11049,31 @@ const bt = {
11048
11049
  )
11049
11050
  ] }) });
11050
11051
  }, T1 = O(L1), I1 = ({ widgets: A, isLoading: e }) => {
11051
- const { isDesktop: n, isMobile: a } = re(), { copyStore: r } = jn(), i = C.useMemo(
11052
- () => A.sort((c, l) => c.index - l.index),
11053
- [A]
11054
- ), o = C.useMemo(
11055
- () => i.filter((c) => c.location === xn.Main),
11052
+ const { isDesktop: n, isMobile: a } = re(), { accountStore: r, copyStore: i } = jn(), o = C.useMemo(
11053
+ () => A.sort((l, u) => l.index - u.index),
11056
11054
  [A]
11057
11055
  ), s = C.useMemo(
11058
- () => i.filter((c) => c.location === xn.RightSide),
11056
+ () => o.filter((l) => l.location === xn.Main),
11057
+ [A]
11058
+ ), c = C.useMemo(
11059
+ () => o.filter((l) => l.location === xn.RightSide),
11059
11060
  [A]
11060
11061
  );
11061
11062
  return /* @__PURE__ */ d(Me, { container: !0, spacing: a ? 0 : 24, sx: { overflow: "scroll" }, children: [
11062
- /* @__PURE__ */ t(Me, { xs: 12, children: r.isInitialized && /* @__PURE__ */ t(T1, {}) }),
11063
+ /* @__PURE__ */ t(Me, { xs: 12, children: i.isInitialized && r.isInitialized && /* @__PURE__ */ t(T1, {}) }),
11063
11064
  /* @__PURE__ */ d(Me, { xl: 8, xs: 12, children: [
11064
11065
  e && /* @__PURE__ */ d(w, { direction: "column", spacing: 24, children: [
11065
11066
  /* @__PURE__ */ t(le, { height: 100, variant: "rounded", width: "100%" }),
11066
11067
  /* @__PURE__ */ t(le, { height: 300, variant: "rounded", width: "100%" }),
11067
11068
  /* @__PURE__ */ t(le, { height: 300, variant: "rounded", width: "100%" })
11068
11069
  ] }),
11069
- !e && /* @__PURE__ */ t(w, { direction: "column", spacing: 24, children: n ? o.map((c) => /* @__PURE__ */ t(C.Fragment, { children: c.component }, c.index)) : i.map((c) => /* @__PURE__ */ t(C.Fragment, { children: c.component }, c.index)) })
11070
+ !e && /* @__PURE__ */ t(w, { direction: "column", spacing: 24, children: n ? s.map((l) => /* @__PURE__ */ t(C.Fragment, { children: l.component }, l.index)) : o.map((l) => /* @__PURE__ */ t(C.Fragment, { children: l.component }, l.index)) })
11070
11071
  ] }),
11071
11072
  n && /* @__PURE__ */ t(Me, { xl: 4, children: e ? /* @__PURE__ */ d(w, { direction: "column", spacing: 24, children: [
11072
11073
  /* @__PURE__ */ t(le, { height: 200, variant: "rounded", width: "100%" }),
11073
11074
  /* @__PURE__ */ t(le, { height: 100, variant: "rounded", width: "100%" }),
11074
11075
  /* @__PURE__ */ t(le, { height: 300, variant: "rounded", width: "100%" })
11075
- ] }) : /* @__PURE__ */ t(w, { direction: "column", spacing: 24, children: s.map((c) => /* @__PURE__ */ t(C.Fragment, { children: c.component }, c.index)) }) })
11076
+ ] }) : /* @__PURE__ */ t(w, { direction: "column", spacing: 24, children: c.map((l) => /* @__PURE__ */ t(C.Fragment, { children: l.component }, l.index)) }) })
11076
11077
  ] });
11077
11078
  }, k7 = O(I1), G7 = () => /* @__PURE__ */ t("div", { children: "Goals" });
11078
11079
  function S1(A) {