@mx-cartographer/experiences 9.0.13-alpha.mm1 → 9.0.13-mm0
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.
- package/dist/{UserStore-BnWaTxnV.mjs → UserStore-yNIqIsas.mjs} +0 -9
- package/dist/common/index.es.js +1 -1
- package/dist/core/index.es.js +1 -1
- package/dist/core/stores/GlobalUiStore.d.ts +0 -1
- package/dist/core/stores/UserStore.d.ts +0 -1
- package/dist/core/types/User.d.ts +0 -1
- package/dist/dashboard/index.es.js +151 -161
- package/package.json +1 -1
|
@@ -1573,12 +1573,6 @@ class Re {
|
|
|
1573
1573
|
get isInitialized() {
|
|
1574
1574
|
return this.isCopyLoaded && this.isConfigLoaded && this.areUserFeaturesLoaded;
|
|
1575
1575
|
}
|
|
1576
|
-
get shouldShowWelcomeDialog() {
|
|
1577
|
-
if (!this.isInitialized)
|
|
1578
|
-
return !1;
|
|
1579
|
-
const { config: t } = this.globalStore.appDataStore.appConfig, e = this.globalStore.appDataStore.user;
|
|
1580
|
-
return !!(t.display_terms_and_conditions && !e?.has_accepted_terms);
|
|
1581
|
-
}
|
|
1582
1576
|
populateAccountFilterMap = (t) => {
|
|
1583
1577
|
t && t.forEach((e) => {
|
|
1584
1578
|
this.accountFilterMap.set(e.guid, !e.is_excluded_from_accounts);
|
|
@@ -3027,9 +3021,6 @@ class Ve {
|
|
|
3027
3021
|
console.error(`Error occurred while loading user features: ${t}`);
|
|
3028
3022
|
}
|
|
3029
3023
|
};
|
|
3030
|
-
acceptTerms = async () => {
|
|
3031
|
-
await this.updateUser({ ...this.user, has_accepted_terms: !0 });
|
|
3032
|
-
};
|
|
3033
3024
|
updateUser = async (t) => {
|
|
3034
3025
|
try {
|
|
3035
3026
|
const e = await this.api.updateUser(t);
|
package/dist/common/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as Y } from "../UserStore-
|
|
1
|
+
import { n as Y } from "../UserStore-yNIqIsas.mjs";
|
|
2
2
|
import { b as $, a as H } from "../Localization-DnoVyBNK.mjs";
|
|
3
3
|
import { f as j, b as V, a as K, c as Z, g as J, d as X } from "../NumberFormatting--XMeeBfr.mjs";
|
|
4
4
|
import { C as rr, a as er, b as or } from "../CurrencyDialog-DumQCTPO.mjs";
|
package/dist/core/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as m, a as d, b as C, c as N, d as h, e as f, f as E, B as D, g as I, h as b, i as M, C as R, j as B, k as L, l as G, D as _, F as H, m as P, G as U, n as x, o as O, p as F, q as k, H as v, r as w, s as W, t as Y, M as $, u as q, N as K, v as j, w as z, R as J, x as Q, S as X, y as Z, T as V, z as tt, E as at, U as st, I as et, W as ot } from "../UserStore-
|
|
1
|
+
import { A as m, a as d, b as C, c as N, d as h, e as f, f as E, B as D, g as I, h as b, i as M, C as R, j as B, k as L, l as G, D as _, F as H, m as P, G as U, n as x, o as O, p as F, q as k, H as v, r as w, s as W, t as Y, M as $, u as q, N as K, v as j, w as z, R as J, x as Q, S as X, y as Z, T as V, z as tt, E as at, U as st, I as et, W as ot } from "../UserStore-yNIqIsas.mjs";
|
|
2
2
|
import { b as rt, a as it, d as ct, c as pt, A as At, C as St, e as ut, E as lt, M as Tt, N as gt, P as yt, f as mt, g as dt, S as Ct } from "../Account-DR7Plrqy.mjs";
|
|
3
3
|
import { A as ht, B as ft, I as Et, N as Dt } from "../Notification-DTNYSd8P.mjs";
|
|
4
4
|
import { F as n } from "../GlobalCopyApi-Dh3dZAlu.mjs";
|
|
@@ -16,7 +16,6 @@ export declare class GlobalUiStore {
|
|
|
16
16
|
get isConfigLoaded(): boolean;
|
|
17
17
|
get areUserFeaturesLoaded(): boolean;
|
|
18
18
|
get isInitialized(): boolean;
|
|
19
|
-
get shouldShowWelcomeDialog(): boolean;
|
|
20
19
|
populateAccountFilterMap: (accounts: Account[]) => void;
|
|
21
20
|
resetAccountFilterMap: () => void;
|
|
22
21
|
updateAccountFilterMap: (guid: string, isIncluded: boolean) => void;
|
|
@@ -11,7 +11,6 @@ export declare class UserStore {
|
|
|
11
11
|
get user(): User;
|
|
12
12
|
setUserFeatures: (features: UserFeature[]) => void;
|
|
13
13
|
loadUserFeatures: () => Promise<void>;
|
|
14
|
-
acceptTerms: () => Promise<void>;
|
|
15
14
|
updateUser: (user: User) => Promise<void>;
|
|
16
15
|
updateUserProfile: (userProfile: UserProfile) => Promise<void>;
|
|
17
16
|
}
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import { jsx as e, jsxs as r, Fragment as
|
|
2
|
-
import
|
|
3
|
-
import { observer as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
1
|
+
import { jsx as e, jsxs as r, Fragment as T } from "react/jsx-runtime";
|
|
2
|
+
import d from "react";
|
|
3
|
+
import { observer as g } from "mobx-react-lite";
|
|
4
|
+
import x from "@mui/material/Grid";
|
|
5
|
+
import u from "@mui/material/Skeleton";
|
|
6
6
|
import a from "@mui/material/Stack";
|
|
7
|
-
import { useTheme as
|
|
8
|
-
import { e as
|
|
9
|
-
import
|
|
10
|
-
import { Icon as
|
|
11
|
-
import { useMediaQuery as
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import { G as
|
|
18
|
-
import { u as
|
|
19
|
-
import { C as
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import {
|
|
26
|
-
const
|
|
27
|
-
const
|
|
28
|
-
appDataStore: { banner:
|
|
29
|
-
} =
|
|
30
|
-
return
|
|
31
|
-
|
|
32
|
-
}, [
|
|
7
|
+
import { useTheme as G, alpha as R } from "@mui/material/styles";
|
|
8
|
+
import { e as S, u as C, i as B, o as F, L as $ } from "../Loader-D4P2dFXa.mjs";
|
|
9
|
+
import H from "@mui/material/Paper";
|
|
10
|
+
import { Icon as y, H2 as j, P as w, Text as _ } from "@mxenabled/mxui";
|
|
11
|
+
import { useMediaQuery as Q } from "@mui/system";
|
|
12
|
+
import v from "@mui/material/Box";
|
|
13
|
+
import k from "@mui/material/Button";
|
|
14
|
+
import M from "@mui/material/IconButton";
|
|
15
|
+
import P from "@mui/material/Tooltip";
|
|
16
|
+
import E from "@mui/material/useMediaQuery";
|
|
17
|
+
import { G as N } from "../GlobalAccountFilter-BgFoR-uF.mjs";
|
|
18
|
+
import { u as D } from "../useScreenSize-mWpmnh5w.mjs";
|
|
19
|
+
import { C as Y } from "../ConnectDrawer-CtKFKQ4v.mjs";
|
|
20
|
+
import { u as q } from "../useWidgetLoadTimer-B02UcM5C.mjs";
|
|
21
|
+
import J from "@mui/material/Dialog";
|
|
22
|
+
import K from "@mui/material/DialogContent";
|
|
23
|
+
import L from "@mui/material/Divider";
|
|
24
|
+
import O from "@mui/material/Link";
|
|
25
|
+
import { b as U } from "../Localization-DnoVyBNK.mjs";
|
|
26
|
+
const V = g(() => {
|
|
27
|
+
const i = G(), {
|
|
28
|
+
appDataStore: { banner: o, loadBanner: l, user: c }
|
|
29
|
+
} = S();
|
|
30
|
+
return d.useEffect(() => {
|
|
31
|
+
l().finally();
|
|
32
|
+
}, [c]), o?.image_url ? /* @__PURE__ */ e(
|
|
33
33
|
a,
|
|
34
34
|
{
|
|
35
35
|
sx: {
|
|
@@ -40,7 +40,7 @@ const X = b(() => {
|
|
|
40
40
|
children: /* @__PURE__ */ e(
|
|
41
41
|
"a",
|
|
42
42
|
{
|
|
43
|
-
href:
|
|
43
|
+
href: o?.redirect_url,
|
|
44
44
|
rel: "noreferrer",
|
|
45
45
|
style: {
|
|
46
46
|
width: "100%"
|
|
@@ -50,11 +50,11 @@ const X = b(() => {
|
|
|
50
50
|
"img",
|
|
51
51
|
{
|
|
52
52
|
alt: "",
|
|
53
|
-
src:
|
|
53
|
+
src: o.image_url,
|
|
54
54
|
style: {
|
|
55
55
|
width: "100%",
|
|
56
56
|
height: "auto",
|
|
57
|
-
border: `1px solid ${
|
|
57
|
+
border: `1px solid ${i.palette.grey[300]}`
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
)
|
|
@@ -62,154 +62,189 @@ const X = b(() => {
|
|
|
62
62
|
)
|
|
63
63
|
}
|
|
64
64
|
) : null;
|
|
65
|
-
}),
|
|
66
|
-
const { common:
|
|
67
|
-
return /* @__PURE__ */ e(
|
|
68
|
-
|
|
65
|
+
}), X = ({ handleConnectClick: i }) => {
|
|
66
|
+
const { common: o } = C(), l = E("(max-width: 700px)");
|
|
67
|
+
return /* @__PURE__ */ e(v, { children: l ? /* @__PURE__ */ e(P, { id: "add-accounts", placement: "bottom", title: o.add_accounts, children: /* @__PURE__ */ e(
|
|
68
|
+
M,
|
|
69
69
|
{
|
|
70
70
|
"aria-controls": "add_accounts",
|
|
71
71
|
"aria-describedby": "add-accounts",
|
|
72
72
|
"aria-haspopup": !0,
|
|
73
|
-
"aria-label":
|
|
73
|
+
"aria-label": o.add_accounts,
|
|
74
74
|
color: "primary",
|
|
75
|
-
onClick:
|
|
76
|
-
children: /* @__PURE__ */ e(
|
|
75
|
+
onClick: i,
|
|
76
|
+
children: /* @__PURE__ */ e(y, { name: "add", size: 24 })
|
|
77
77
|
}
|
|
78
78
|
) }) : /* @__PURE__ */ e(
|
|
79
|
-
|
|
79
|
+
k,
|
|
80
80
|
{
|
|
81
81
|
"aria-controls": "add_accounts",
|
|
82
82
|
"aria-haspopup": !0,
|
|
83
|
-
"aria-label":
|
|
84
|
-
onClick:
|
|
85
|
-
startIcon: /* @__PURE__ */ e(
|
|
83
|
+
"aria-label": o.add_accounts,
|
|
84
|
+
onClick: i,
|
|
85
|
+
startIcon: /* @__PURE__ */ e(y, { name: "add", size: 24 }),
|
|
86
86
|
sx: {
|
|
87
87
|
p: 12,
|
|
88
88
|
whiteSpace: "nowrap",
|
|
89
89
|
minWidth: "max-content"
|
|
90
90
|
},
|
|
91
91
|
variant: "text",
|
|
92
|
-
children:
|
|
92
|
+
children: o.add_accounts
|
|
93
93
|
}
|
|
94
94
|
) });
|
|
95
|
-
},
|
|
96
|
-
const [
|
|
97
|
-
const
|
|
98
|
-
return
|
|
95
|
+
}, Z = g(X), ee = () => {
|
|
96
|
+
const [i, o] = d.useState(!1), l = Q("(max-width:320px)"), { common: c, connect: h } = C(), { config: s } = B(), { isMobile: m } = D(), p = () => {
|
|
97
|
+
const n = (/* @__PURE__ */ new Date()).getHours();
|
|
98
|
+
return n > 1 && n < 12 ? c.good_morning : n >= 12 && n < 18 ? c.good_afternoon : c.good_evening;
|
|
99
99
|
};
|
|
100
|
-
return /* @__PURE__ */ r(
|
|
101
|
-
/* @__PURE__ */ e(
|
|
100
|
+
return /* @__PURE__ */ r(d.Fragment, { children: [
|
|
101
|
+
/* @__PURE__ */ e(H, { sx: { gap: 12, mb: m ? 24 : 0, p: 24 }, children: /* @__PURE__ */ r(a, { alignItems: "center", flexDirection: "row", justifyContent: "space-between", children: [
|
|
102
102
|
/* @__PURE__ */ r(a, { children: [
|
|
103
|
-
/* @__PURE__ */ e(
|
|
104
|
-
/* @__PURE__ */ e(
|
|
103
|
+
/* @__PURE__ */ e(j, { variant: l ? "h2" : "h1", children: p() }),
|
|
104
|
+
/* @__PURE__ */ e(w, { color: "text.secondary", children: c.heres_your_spending_overview })
|
|
105
105
|
] }),
|
|
106
106
|
/* @__PURE__ */ r(a, { flexDirection: "row", children: [
|
|
107
|
-
|
|
108
|
-
/* @__PURE__ */ e(
|
|
107
|
+
s.show_connections_widget_in_master && /* @__PURE__ */ e(Z, { handleConnectClick: () => o(!0) }),
|
|
108
|
+
/* @__PURE__ */ e(N, {})
|
|
109
109
|
] })
|
|
110
110
|
] }) }),
|
|
111
|
-
|
|
112
|
-
|
|
111
|
+
i && /* @__PURE__ */ e(
|
|
112
|
+
Y,
|
|
113
113
|
{
|
|
114
|
-
onClose: () =>
|
|
115
|
-
showConnectWidget:
|
|
116
|
-
title:
|
|
114
|
+
onClose: () => o(!1),
|
|
115
|
+
showConnectWidget: i,
|
|
116
|
+
title: h.mini_title
|
|
117
117
|
}
|
|
118
118
|
)
|
|
119
119
|
] });
|
|
120
|
-
},
|
|
121
|
-
|
|
122
|
-
|
|
120
|
+
}, te = g(ee);
|
|
121
|
+
var b = /* @__PURE__ */ ((i) => (i[i.Main = 0] = "Main", i[i.RightSide = 1] = "RightSide", i[i.Disabled = 2] = "Disabled", i))(b || {});
|
|
122
|
+
const ne = ({ widgets: i, isLoading: o }) => {
|
|
123
|
+
const { isDesktop: l, isMobile: c } = D(), { copyStore: h } = S();
|
|
124
|
+
q({
|
|
125
|
+
widgetName: "Dashboard",
|
|
126
|
+
isLoaded: !o
|
|
127
|
+
});
|
|
128
|
+
const s = d.useMemo(
|
|
129
|
+
() => i.filter((t) => t.location !== b.Disabled).sort((t, n) => t.index - n.index),
|
|
130
|
+
[i]
|
|
131
|
+
), m = d.useMemo(
|
|
132
|
+
() => s.filter((t) => t.location === b.Main),
|
|
133
|
+
[s]
|
|
134
|
+
), p = d.useMemo(
|
|
135
|
+
() => s.filter((t) => t.location === b.RightSide),
|
|
136
|
+
[s]
|
|
137
|
+
);
|
|
138
|
+
return /* @__PURE__ */ r(x, { container: !0, spacing: c ? 0 : 24, children: [
|
|
139
|
+
/* @__PURE__ */ e(x, { size: 12, sx: { pt: 16 }, children: h.isInitialized && /* @__PURE__ */ e(te, {}) }),
|
|
140
|
+
/* @__PURE__ */ r(x, { size: { xs: 12, lg: 8 }, children: [
|
|
141
|
+
/* @__PURE__ */ e(V, {}),
|
|
142
|
+
o && /* @__PURE__ */ r(a, { direction: "column", spacing: 24, children: [
|
|
143
|
+
/* @__PURE__ */ e(u, { height: 100, variant: "rounded", width: "100%" }),
|
|
144
|
+
/* @__PURE__ */ e(u, { height: 300, variant: "rounded", width: "100%" }),
|
|
145
|
+
/* @__PURE__ */ e(u, { height: 300, variant: "rounded", width: "100%" })
|
|
146
|
+
] }),
|
|
147
|
+
!o && /* @__PURE__ */ e(a, { direction: "column", spacing: 24, children: l ? m.map((t) => /* @__PURE__ */ e(d.Fragment, { children: t.component }, t.index)) : s.map((t) => /* @__PURE__ */ e(d.Fragment, { children: t.component }, t.index)) })
|
|
148
|
+
] }),
|
|
149
|
+
l && /* @__PURE__ */ e(x, { size: { lg: 4 }, children: o ? /* @__PURE__ */ r(a, { direction: "column", spacing: 24, children: [
|
|
150
|
+
/* @__PURE__ */ e(u, { height: 200, variant: "rounded", width: "100%" }),
|
|
151
|
+
/* @__PURE__ */ e(u, { height: 100, variant: "rounded", width: "100%" }),
|
|
152
|
+
/* @__PURE__ */ e(u, { height: 300, variant: "rounded", width: "100%" })
|
|
153
|
+
] }) : /* @__PURE__ */ e(a, { direction: "column", spacing: 24, children: p.map((t) => /* @__PURE__ */ e(d.Fragment, { children: t.component }, t.index)) }) })
|
|
154
|
+
] });
|
|
155
|
+
}, Ie = g(ne), ie = ({ isOpen: i, onContinue: o, onClose: l }) => {
|
|
156
|
+
const { copyStore: c } = S(), { common: h } = C(), { isSmallMobile: s } = D(), m = F(), [p, t] = d.useState(!1);
|
|
157
|
+
if (!c.isInitialized)
|
|
123
158
|
return null;
|
|
124
|
-
const
|
|
125
|
-
|
|
126
|
-
},
|
|
127
|
-
|
|
128
|
-
},
|
|
159
|
+
const n = h.welcome_dialog, W = () => {
|
|
160
|
+
t(!0), m.isLoaded || m.loadAgreement();
|
|
161
|
+
}, I = () => {
|
|
162
|
+
t(!1), l?.();
|
|
163
|
+
}, z = [
|
|
129
164
|
{
|
|
130
|
-
description:
|
|
165
|
+
description: n.financial_views_description,
|
|
131
166
|
icon: "account_balance",
|
|
132
|
-
title:
|
|
167
|
+
title: n.financial_views_title
|
|
133
168
|
},
|
|
134
169
|
{
|
|
135
|
-
description:
|
|
170
|
+
description: n.smart_spending_description,
|
|
136
171
|
icon: "receipt_long",
|
|
137
|
-
title:
|
|
172
|
+
title: n.smart_spending_title
|
|
138
173
|
},
|
|
139
174
|
{
|
|
140
|
-
description:
|
|
175
|
+
description: n.budgets_description,
|
|
141
176
|
icon: "bubble_chart",
|
|
142
|
-
title:
|
|
177
|
+
title: n.budgets_title
|
|
143
178
|
}
|
|
144
179
|
];
|
|
145
180
|
return /* @__PURE__ */ e(
|
|
146
|
-
|
|
181
|
+
J,
|
|
147
182
|
{
|
|
148
|
-
"aria-label": `${
|
|
149
|
-
fullScreen:
|
|
183
|
+
"aria-label": `${n.title_line_1} ${n.title_line_2}`,
|
|
184
|
+
fullScreen: s,
|
|
150
185
|
maxWidth: "sm",
|
|
151
|
-
onClose:
|
|
152
|
-
open:
|
|
186
|
+
onClose: I,
|
|
187
|
+
open: i,
|
|
153
188
|
role: "dialog",
|
|
154
189
|
sx: {
|
|
155
190
|
"& .MuiDialog-paper": {
|
|
156
|
-
borderRadius:
|
|
191
|
+
borderRadius: s ? 0 : "8px",
|
|
157
192
|
margin: 0,
|
|
158
|
-
padding:
|
|
193
|
+
padding: p ? "24px" : "64px",
|
|
159
194
|
maxWidth: 500,
|
|
160
195
|
width: "100%"
|
|
161
196
|
},
|
|
162
|
-
"& .MuiDialogContent-root": { padding: 0, ...
|
|
197
|
+
"& .MuiDialogContent-root": { padding: 0, ...p && { overflow: "visible" } }
|
|
163
198
|
},
|
|
164
|
-
children: /* @__PURE__ */ e(
|
|
199
|
+
children: /* @__PURE__ */ e(K, { children: p ? /* @__PURE__ */ r(a, { sx: { gap: 16 }, children: [
|
|
165
200
|
/* @__PURE__ */ r(a, { sx: { alignItems: "center", flexDirection: "row", gap: 8 }, children: [
|
|
166
201
|
/* @__PURE__ */ e(
|
|
167
|
-
|
|
202
|
+
M,
|
|
168
203
|
{
|
|
169
|
-
"aria-label":
|
|
170
|
-
onClick: () =>
|
|
204
|
+
"aria-label": h.back ?? "Back",
|
|
205
|
+
onClick: () => t(!1),
|
|
171
206
|
sx: { color: "primary.main", ml: -8 },
|
|
172
|
-
children: /* @__PURE__ */ e(
|
|
207
|
+
children: /* @__PURE__ */ e(y, { name: "chevron_left", size: 24 })
|
|
173
208
|
}
|
|
174
209
|
),
|
|
175
|
-
/* @__PURE__ */ e(
|
|
210
|
+
/* @__PURE__ */ e(_, { bold: !0, component: "h2", variant: "h3", children: m.agreement.title || n.terms_link })
|
|
176
211
|
] }),
|
|
177
|
-
/* @__PURE__ */ e(
|
|
178
|
-
|
|
179
|
-
|
|
212
|
+
/* @__PURE__ */ e(L, { sx: { mx: -24 } }),
|
|
213
|
+
m.isLoaded ? /* @__PURE__ */ e(
|
|
214
|
+
v,
|
|
180
215
|
{
|
|
181
|
-
dangerouslySetInnerHTML: { __html:
|
|
216
|
+
dangerouslySetInnerHTML: { __html: m.agreement.text },
|
|
182
217
|
sx: { maxHeight: 400, overflowY: "auto", "& *": { maxWidth: "100%" } }
|
|
183
218
|
}
|
|
184
|
-
) : /* @__PURE__ */ e(
|
|
185
|
-
] }) : /* @__PURE__ */ r(
|
|
219
|
+
) : /* @__PURE__ */ e($, { height: 400 })
|
|
220
|
+
] }) : /* @__PURE__ */ r(T, { children: [
|
|
186
221
|
/* @__PURE__ */ r(a, { sx: { alignItems: "center", mb: 32, textAlign: "center" }, children: [
|
|
187
|
-
/* @__PURE__ */ e(
|
|
188
|
-
/* @__PURE__ */ e(
|
|
222
|
+
/* @__PURE__ */ e(_, { bold: !0, component: "span", sx: { display: "block" }, variant: "h3", children: n.title_line_1 }),
|
|
223
|
+
/* @__PURE__ */ e(_, { bold: !0, component: "span", sx: { display: "block" }, variant: "h3", children: n.title_line_2 })
|
|
189
224
|
] }),
|
|
190
|
-
/* @__PURE__ */ e(a, { sx: { border: 1, borderColor: "divider", borderRadius: "8px", p: 16, gap: 16 }, children:
|
|
225
|
+
/* @__PURE__ */ e(a, { sx: { border: 1, borderColor: "divider", borderRadius: "8px", p: 16, gap: 16 }, children: z.map((f) => /* @__PURE__ */ r(
|
|
191
226
|
a,
|
|
192
227
|
{
|
|
193
228
|
sx: { alignItems: "center", flexDirection: "row", gap: 16 },
|
|
194
229
|
children: [
|
|
195
230
|
/* @__PURE__ */ e(
|
|
196
|
-
|
|
231
|
+
v,
|
|
197
232
|
{
|
|
198
233
|
sx: {
|
|
199
234
|
alignItems: "center",
|
|
200
|
-
bgcolor: (
|
|
235
|
+
bgcolor: (A) => R(A.palette.primary.main, 0.1),
|
|
201
236
|
borderRadius: 1,
|
|
202
237
|
display: "flex",
|
|
203
238
|
flexShrink: 0,
|
|
204
239
|
justifyContent: "center",
|
|
205
240
|
p: 8
|
|
206
241
|
},
|
|
207
|
-
children: /* @__PURE__ */ e(
|
|
242
|
+
children: /* @__PURE__ */ e(y, { name: f.icon, size: 24, sx: { color: "primary.main" } })
|
|
208
243
|
}
|
|
209
244
|
),
|
|
210
245
|
/* @__PURE__ */ r(a, { sx: { gap: 2 }, children: [
|
|
211
|
-
/* @__PURE__ */ e(
|
|
212
|
-
/* @__PURE__ */ e(
|
|
246
|
+
/* @__PURE__ */ e(_, { bold: !0, variant: "body1", children: f.title }),
|
|
247
|
+
/* @__PURE__ */ e(w, { color: "text.secondary", truncate: !1, variant: "caption", children: f.description })
|
|
213
248
|
] })
|
|
214
249
|
]
|
|
215
250
|
},
|
|
@@ -217,34 +252,34 @@ const X = b(() => {
|
|
|
217
252
|
)) }),
|
|
218
253
|
/* @__PURE__ */ r(a, { children: [
|
|
219
254
|
/* @__PURE__ */ e(
|
|
220
|
-
|
|
255
|
+
k,
|
|
221
256
|
{
|
|
222
257
|
fullWidth: !0,
|
|
223
|
-
onClick:
|
|
258
|
+
onClick: o,
|
|
224
259
|
sx: { maxWidth: 324, mt: 64, mx: "auto" },
|
|
225
260
|
variant: "contained",
|
|
226
|
-
children:
|
|
261
|
+
children: n.continue_button
|
|
227
262
|
}
|
|
228
263
|
),
|
|
229
264
|
/* @__PURE__ */ e(
|
|
230
|
-
|
|
265
|
+
w,
|
|
231
266
|
{
|
|
232
267
|
color: "text.secondary",
|
|
233
268
|
sx: { mt: 16, textAlign: "center" },
|
|
234
269
|
truncate: !1,
|
|
235
270
|
variant: "body2",
|
|
236
|
-
children:
|
|
237
|
-
|
|
271
|
+
children: U(
|
|
272
|
+
n.terms_agreement,
|
|
238
273
|
// TODO: remove Link use, if we end up not needing option to link to external T&C urls
|
|
239
274
|
/* @__PURE__ */ e(
|
|
240
|
-
|
|
275
|
+
O,
|
|
241
276
|
{
|
|
242
277
|
component: "button",
|
|
243
|
-
onClick:
|
|
278
|
+
onClick: W,
|
|
244
279
|
rel: "noopener",
|
|
245
280
|
sx: { display: "block", fontWeight: 600, lineHeight: 2, mx: "auto" },
|
|
246
281
|
type: "button",
|
|
247
|
-
children:
|
|
282
|
+
children: n.terms_link
|
|
248
283
|
}
|
|
249
284
|
)
|
|
250
285
|
)
|
|
@@ -254,54 +289,9 @@ const X = b(() => {
|
|
|
254
289
|
] }) })
|
|
255
290
|
}
|
|
256
291
|
);
|
|
257
|
-
},
|
|
258
|
-
var w = /* @__PURE__ */ ((n) => (n[n.Main = 0] = "Main", n[n.RightSide = 1] = "RightSide", n[n.Disabled = 2] = "Disabled", n))(w || {});
|
|
259
|
-
const re = ({ widgets: n, isLoading: i }) => {
|
|
260
|
-
const { isDesktop: c, isMobile: s } = I(), { copyStore: u, globalUiStore: g, userStore: d } = W(), [m, p] = l.useState(!1), t = g.shouldShowWelcomeDialog && !m, S = () => {
|
|
261
|
-
d.acceptTerms(), p(!0);
|
|
262
|
-
};
|
|
263
|
-
V({
|
|
264
|
-
widgetName: "Dashboard",
|
|
265
|
-
isLoaded: !i
|
|
266
|
-
});
|
|
267
|
-
const h = l.useMemo(
|
|
268
|
-
() => n.filter((o) => o.location !== w.Disabled).sort((o, z) => o.index - z.index),
|
|
269
|
-
[n]
|
|
270
|
-
), C = l.useMemo(
|
|
271
|
-
() => h.filter((o) => o.location === w.Main),
|
|
272
|
-
[h]
|
|
273
|
-
), f = l.useMemo(
|
|
274
|
-
() => h.filter((o) => o.location === w.RightSide),
|
|
275
|
-
[h]
|
|
276
|
-
);
|
|
277
|
-
return /* @__PURE__ */ r(_, { container: !0, spacing: s ? 0 : 24, children: [
|
|
278
|
-
/* @__PURE__ */ e(
|
|
279
|
-
oe,
|
|
280
|
-
{
|
|
281
|
-
isOpen: t,
|
|
282
|
-
onClose: () => p(!0),
|
|
283
|
-
onContinue: S
|
|
284
|
-
}
|
|
285
|
-
),
|
|
286
|
-
/* @__PURE__ */ e(_, { size: 12, sx: { pt: 16 }, children: u.isInitialized && /* @__PURE__ */ e(ne, {}) }),
|
|
287
|
-
/* @__PURE__ */ r(_, { size: { xs: 12, lg: 8 }, children: [
|
|
288
|
-
/* @__PURE__ */ e(X, {}),
|
|
289
|
-
i && /* @__PURE__ */ r(a, { direction: "column", spacing: 24, children: [
|
|
290
|
-
/* @__PURE__ */ e(x, { height: 100, variant: "rounded", width: "100%" }),
|
|
291
|
-
/* @__PURE__ */ e(x, { height: 300, variant: "rounded", width: "100%" }),
|
|
292
|
-
/* @__PURE__ */ e(x, { height: 300, variant: "rounded", width: "100%" })
|
|
293
|
-
] }),
|
|
294
|
-
!i && /* @__PURE__ */ e(a, { direction: "column", spacing: 24, children: c ? C.map((o) => /* @__PURE__ */ e(l.Fragment, { children: o.component }, o.index)) : h.map((o) => /* @__PURE__ */ e(l.Fragment, { children: o.component }, o.index)) })
|
|
295
|
-
] }),
|
|
296
|
-
c && /* @__PURE__ */ e(_, { size: { lg: 4 }, children: i ? /* @__PURE__ */ r(a, { direction: "column", spacing: 24, children: [
|
|
297
|
-
/* @__PURE__ */ e(x, { height: 200, variant: "rounded", width: "100%" }),
|
|
298
|
-
/* @__PURE__ */ e(x, { height: 100, variant: "rounded", width: "100%" }),
|
|
299
|
-
/* @__PURE__ */ e(x, { height: 300, variant: "rounded", width: "100%" })
|
|
300
|
-
] }) : /* @__PURE__ */ e(a, { direction: "column", spacing: 24, children: f.map((o) => /* @__PURE__ */ e(l.Fragment, { children: o.component }, o.index)) }) })
|
|
301
|
-
] });
|
|
302
|
-
}, Ae = b(re);
|
|
292
|
+
}, ze = g(ie);
|
|
303
293
|
export {
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
294
|
+
Ie as Dashboard,
|
|
295
|
+
b as DashboardLocation,
|
|
296
|
+
ze as WelcomeDialog
|
|
307
297
|
};
|