@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.
@@ -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);
@@ -1,4 +1,4 @@
1
- import { n as Y } from "../UserStore-BnWaTxnV.mjs";
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";
@@ -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-BnWaTxnV.mjs";
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
  }
@@ -7,7 +7,6 @@ export interface User {
7
7
  email_is_verified: boolean;
8
8
  external_guid?: string | null;
9
9
  first_name?: string | null;
10
- has_accepted_terms?: boolean;
11
10
  last_name?: string | null;
12
11
  phone?: string | null;
13
12
  phone_is_verified: boolean;
@@ -1,35 +1,35 @@
1
- import { jsx as e, jsxs as r, Fragment as G } from "react/jsx-runtime";
2
- import l from "react";
3
- import { observer as b } from "mobx-react-lite";
4
- import _ from "@mui/material/Grid";
5
- import x from "@mui/material/Skeleton";
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 R, alpha as $ } from "@mui/material/styles";
8
- import { e as W, u as M, i as B, o as F, L as H } from "../Loader-D4P2dFXa.mjs";
9
- import j from "@mui/material/Paper";
10
- import { Icon as v, H2 as Q, P as D, Text as y } from "@mxenabled/mxui";
11
- import { useMediaQuery as P } from "@mui/system";
12
- import k from "@mui/material/Box";
13
- import T from "@mui/material/Button";
14
- import A from "@mui/material/IconButton";
15
- import E from "@mui/material/Tooltip";
16
- import N from "@mui/material/useMediaQuery";
17
- import { G as O } from "../GlobalAccountFilter-BgFoR-uF.mjs";
18
- import { u as I } from "../useScreenSize-mWpmnh5w.mjs";
19
- import { C as U } from "../ConnectDrawer-CtKFKQ4v.mjs";
20
- import Y from "@mui/material/Dialog";
21
- import q from "@mui/material/DialogContent";
22
- import J from "@mui/material/Divider";
23
- import K from "@mui/material/Link";
24
- import { b as L } from "../Localization-DnoVyBNK.mjs";
25
- import { u as V } from "../useWidgetLoadTimer-B02UcM5C.mjs";
26
- const X = b(() => {
27
- const n = R(), {
28
- appDataStore: { banner: i, loadBanner: c, user: s }
29
- } = W();
30
- return l.useEffect(() => {
31
- c().finally();
32
- }, [s]), i?.image_url ? /* @__PURE__ */ e(
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: i?.redirect_url,
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: i.image_url,
53
+ src: o.image_url,
54
54
  style: {
55
55
  width: "100%",
56
56
  height: "auto",
57
- border: `1px solid ${n.palette.grey[300]}`
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
- }), Z = ({ handleConnectClick: n }) => {
66
- const { common: i } = M(), c = N("(max-width: 700px)");
67
- return /* @__PURE__ */ e(k, { children: c ? /* @__PURE__ */ e(E, { id: "add-accounts", placement: "bottom", title: i.add_accounts, children: /* @__PURE__ */ e(
68
- A,
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": i.add_accounts,
73
+ "aria-label": o.add_accounts,
74
74
  color: "primary",
75
- onClick: n,
76
- children: /* @__PURE__ */ e(v, { name: "add", size: 24 })
75
+ onClick: i,
76
+ children: /* @__PURE__ */ e(y, { name: "add", size: 24 })
77
77
  }
78
78
  ) }) : /* @__PURE__ */ e(
79
- T,
79
+ k,
80
80
  {
81
81
  "aria-controls": "add_accounts",
82
82
  "aria-haspopup": !0,
83
- "aria-label": i.add_accounts,
84
- onClick: n,
85
- startIcon: /* @__PURE__ */ e(v, { name: "add", size: 24 }),
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: i.add_accounts
92
+ children: o.add_accounts
93
93
  }
94
94
  ) });
95
- }, ee = b(Z), te = () => {
96
- const [n, i] = l.useState(!1), c = P("(max-width:320px)"), { common: s, connect: u } = M(), { config: g } = B(), { isMobile: d } = I(), m = () => {
97
- const t = (/* @__PURE__ */ new Date()).getHours();
98
- return t > 1 && t < 12 ? s.good_morning : t >= 12 && t < 18 ? s.good_afternoon : s.good_evening;
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(l.Fragment, { children: [
101
- /* @__PURE__ */ e(j, { sx: { gap: 12, mb: d ? 24 : 0, p: 24 }, children: /* @__PURE__ */ r(a, { alignItems: "center", flexDirection: "row", justifyContent: "space-between", children: [
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(Q, { variant: c ? "h2" : "h1", children: m() }),
104
- /* @__PURE__ */ e(D, { color: "text.secondary", children: s.heres_your_spending_overview })
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
- g.show_connections_widget_in_master && /* @__PURE__ */ e(ee, { handleConnectClick: () => i(!0) }),
108
- /* @__PURE__ */ e(O, {})
107
+ s.show_connections_widget_in_master && /* @__PURE__ */ e(Z, { handleConnectClick: () => o(!0) }),
108
+ /* @__PURE__ */ e(N, {})
109
109
  ] })
110
110
  ] }) }),
111
- n && /* @__PURE__ */ e(
112
- U,
111
+ i && /* @__PURE__ */ e(
112
+ Y,
113
113
  {
114
- onClose: () => i(!1),
115
- showConnectWidget: n,
116
- title: u.mini_title
114
+ onClose: () => o(!1),
115
+ showConnectWidget: i,
116
+ title: h.mini_title
117
117
  }
118
118
  )
119
119
  ] });
120
- }, ne = b(te), ie = ({ isOpen: n, onContinue: i, onClose: c }) => {
121
- const { copyStore: s } = W(), { common: u } = M(), { isSmallMobile: g } = I(), d = F(), [m, p] = l.useState(!1);
122
- if (!s.isInitialized)
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 t = u.welcome_dialog, S = () => {
125
- p(!0), d.isLoaded || d.loadAgreement();
126
- }, h = () => {
127
- p(!1), c?.();
128
- }, C = [
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: t.financial_views_description,
165
+ description: n.financial_views_description,
131
166
  icon: "account_balance",
132
- title: t.financial_views_title
167
+ title: n.financial_views_title
133
168
  },
134
169
  {
135
- description: t.smart_spending_description,
170
+ description: n.smart_spending_description,
136
171
  icon: "receipt_long",
137
- title: t.smart_spending_title
172
+ title: n.smart_spending_title
138
173
  },
139
174
  {
140
- description: t.budgets_description,
175
+ description: n.budgets_description,
141
176
  icon: "bubble_chart",
142
- title: t.budgets_title
177
+ title: n.budgets_title
143
178
  }
144
179
  ];
145
180
  return /* @__PURE__ */ e(
146
- Y,
181
+ J,
147
182
  {
148
- "aria-label": `${t.title_line_1} ${t.title_line_2}`,
149
- fullScreen: g,
183
+ "aria-label": `${n.title_line_1} ${n.title_line_2}`,
184
+ fullScreen: s,
150
185
  maxWidth: "sm",
151
- onClose: h,
152
- open: n,
186
+ onClose: I,
187
+ open: i,
153
188
  role: "dialog",
154
189
  sx: {
155
190
  "& .MuiDialog-paper": {
156
- borderRadius: g ? 0 : "8px",
191
+ borderRadius: s ? 0 : "8px",
157
192
  margin: 0,
158
- padding: m ? "24px" : "64px",
193
+ padding: p ? "24px" : "64px",
159
194
  maxWidth: 500,
160
195
  width: "100%"
161
196
  },
162
- "& .MuiDialogContent-root": { padding: 0, ...m && { overflow: "visible" } }
197
+ "& .MuiDialogContent-root": { padding: 0, ...p && { overflow: "visible" } }
163
198
  },
164
- children: /* @__PURE__ */ e(q, { children: m ? /* @__PURE__ */ r(a, { sx: { gap: 16 }, children: [
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
- A,
202
+ M,
168
203
  {
169
- "aria-label": u.back ?? "Back",
170
- onClick: () => p(!1),
204
+ "aria-label": h.back ?? "Back",
205
+ onClick: () => t(!1),
171
206
  sx: { color: "primary.main", ml: -8 },
172
- children: /* @__PURE__ */ e(v, { name: "chevron_left", size: 24 })
207
+ children: /* @__PURE__ */ e(y, { name: "chevron_left", size: 24 })
173
208
  }
174
209
  ),
175
- /* @__PURE__ */ e(y, { bold: !0, component: "h2", variant: "h3", children: d.agreement.title || t.terms_link })
210
+ /* @__PURE__ */ e(_, { bold: !0, component: "h2", variant: "h3", children: m.agreement.title || n.terms_link })
176
211
  ] }),
177
- /* @__PURE__ */ e(J, { sx: { mx: -24 } }),
178
- d.isLoaded ? /* @__PURE__ */ e(
179
- k,
212
+ /* @__PURE__ */ e(L, { sx: { mx: -24 } }),
213
+ m.isLoaded ? /* @__PURE__ */ e(
214
+ v,
180
215
  {
181
- dangerouslySetInnerHTML: { __html: d.agreement.text },
216
+ dangerouslySetInnerHTML: { __html: m.agreement.text },
182
217
  sx: { maxHeight: 400, overflowY: "auto", "& *": { maxWidth: "100%" } }
183
218
  }
184
- ) : /* @__PURE__ */ e(H, { height: 400 })
185
- ] }) : /* @__PURE__ */ r(G, { children: [
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(y, { bold: !0, component: "span", sx: { display: "block" }, variant: "h3", children: t.title_line_1 }),
188
- /* @__PURE__ */ e(y, { bold: !0, component: "span", sx: { display: "block" }, variant: "h3", children: t.title_line_2 })
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: C.map((f) => /* @__PURE__ */ r(
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
- k,
231
+ v,
197
232
  {
198
233
  sx: {
199
234
  alignItems: "center",
200
- bgcolor: (o) => $(o.palette.primary.main, 0.1),
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(v, { name: f.icon, size: 24, sx: { color: "primary.main" } })
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(y, { bold: !0, variant: "body1", children: f.title }),
212
- /* @__PURE__ */ e(D, { color: "text.secondary", truncate: !1, variant: "caption", children: f.description })
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
- T,
255
+ k,
221
256
  {
222
257
  fullWidth: !0,
223
- onClick: i,
258
+ onClick: o,
224
259
  sx: { maxWidth: 324, mt: 64, mx: "auto" },
225
260
  variant: "contained",
226
- children: t.continue_button
261
+ children: n.continue_button
227
262
  }
228
263
  ),
229
264
  /* @__PURE__ */ e(
230
- D,
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: L(
237
- t.terms_agreement,
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
- K,
275
+ O,
241
276
  {
242
277
  component: "button",
243
- onClick: S,
278
+ onClick: W,
244
279
  rel: "noopener",
245
280
  sx: { display: "block", fontWeight: 600, lineHeight: 2, mx: "auto" },
246
281
  type: "button",
247
- children: t.terms_link
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
- }, oe = b(ie);
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
- Ae as Dashboard,
305
- w as DashboardLocation,
306
- oe as WelcomeDialog
294
+ Ie as Dashboard,
295
+ b as DashboardLocation,
296
+ ze as WelcomeDialog
307
297
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mx-cartographer/experiences",
3
- "version": "9.0.13-alpha.mm1",
3
+ "version": "9.0.13-mm0",
4
4
  "description": "Library containing experience widgets",
5
5
  "author": "MX",
6
6
  "license": "MIT",