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