@mx-cartographer/experiences 7.3.0-alpha.sms1 → 8.0.0-alpha.bb1

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.
@@ -0,0 +1,3 @@
1
+ export declare const AccountsWidgetContent: (() => import("react/jsx-runtime").JSX.Element) & {
2
+ displayName: string;
3
+ };
@@ -1,93 +1,94 @@
1
- import { jsxs as n, jsx as e, Fragment as G } from "react/jsx-runtime";
2
- import d from "react";
3
- import { observer as M } from "mobx-react-lite";
4
- import B from "@mui/material/Box";
5
- import A from "@mui/material/Divider";
6
- import E from "@mui/material/List";
7
- import O from "@mui/material/ListSubheader";
8
- import _ from "@mui/system/Stack";
1
+ import { jsxs as i, jsx as e } from "react/jsx-runtime";
2
+ import c from "react";
3
+ import { observer as g } from "mobx-react-lite";
9
4
  import { Text as v } from "@mxenabled/mxui";
10
- import { A as K } from "../AccountDetailsContent-CAM9y39M.mjs";
11
- import { u as D1 } from "../AccountDetailsContent-CAM9y39M.mjs";
12
- import { u as z, A as P } from "../AccountDetailsHeader-JtSX6Uf9.mjs";
13
- import { A as W } from "../AccountListItem-JFMZROh7.mjs";
14
- import { a as Y } from "../AccountFields-C9FlatNb.mjs";
15
- import { g as U1, b as $1 } from "../AccountFields-C9FlatNb.mjs";
16
- import { u as w, b as S, d as T, g as D, a as q } from "../hooks-D6XlXHf4.mjs";
17
- import { f as I } from "../NumberFormatting-Buh7u8Oi.mjs";
18
- import { D as J } from "../Drawer-kEE73B87.mjs";
19
- import { A as y, W as Q } from "../WidgetContainer-BHWANqT4.mjs";
20
- import { C as X } from "../ConnectionsDrawer-ByGQE7D5.mjs";
21
- import { u as N } from "../useScreenSize-B6JyS_Lj.mjs";
22
- import { L as g } from "../Loader-DUaFpDGv.mjs";
23
- import { l as U, m as e1 } from "../ConnectDrawer-BQNs-hjk.mjs";
24
- import { F as G1, f as K1 } from "../ConnectDrawer-BQNs-hjk.mjs";
25
- import t1 from "@mui/material/ListItem";
26
- import { M as $ } from "../MiniWidgetContainer-D0gfmbaF.mjs";
27
- import l1 from "@mui/material/Stack";
28
- import { A as P1, a as Y1 } from "../AccountStore-BgNOyMdp.mjs";
29
- const i1 = () => {
30
- const [c, H] = d.useState(""), { accounts: C } = w(), { selectedAccounts: l } = S(), { setSelectedAccount: h, setSelectedMember: r } = z(), { members: L } = T(), { onEvent: f } = D(), s = [...new Set(l.map((t) => t.account_type))], a = l.find((t) => c === t.guid), u = d.useMemo(
5
+ import O from "@mui/material/Box";
6
+ import y from "@mui/material/Divider";
7
+ import E from "@mui/material/List";
8
+ import I from "@mui/material/ListSubheader";
9
+ import A from "@mui/system/Stack";
10
+ import { A as z } from "../AccountDetailsContent-CAM9y39M.mjs";
11
+ 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";
15
+ 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";
17
+ 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";
22
+ 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";
26
+ import { F as z1, f as P1 } from "../ConnectDrawer-BQNs-hjk.mjs";
27
+ import l1 from "@mui/material/ListItem";
28
+ import { M as G } from "../MiniWidgetContainer-D0gfmbaF.mjs";
29
+ import { A as q1, a as J1 } from "../AccountStore-BgNOyMdp.mjs";
30
+ const n1 = () => {
31
+ const [d, a] = c.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) => d === t.guid), s = c.useMemo(
31
32
  () => l.filter((t) => t.is_hidden),
32
33
  [l]
33
- ), p = d.useMemo(
34
+ ), h = c.useMemo(
34
35
  () => l.filter((t) => t.is_closed),
35
36
  [l]
36
- ), R = u.reduce(
37
- (t, i) => (i.available_balance || i.balance || 0) + t,
37
+ ), M = s.reduce(
38
+ (t, o) => (o.available_balance || o.balance || 0) + t,
38
39
  0
39
- ), b = Y(p, C);
40
- d.useEffect(() => {
41
- if (a) {
42
- h(a);
43
- const t = L.find((i) => i.guid === a?.member_guid) || {};
44
- t && r(t);
40
+ ), F = q(h, n);
41
+ c.useEffect(() => {
42
+ if (r) {
43
+ H(r);
44
+ const t = u.find((o) => o.guid === r?.member_guid) || {};
45
+ t && L(t);
45
46
  }
46
- }, [a, c]);
47
- const Z = (t) => {
48
- H(t.guid), f(y.ACCOUNTS_CLICK_ACCOUNT, {
47
+ }, [r, d]);
48
+ const V = (t) => {
49
+ a(t.guid), p(S.ACCOUNTS_CLICK_ACCOUNT, {
49
50
  account_guid: t.guid,
50
51
  account_type: t.account_type
51
52
  });
52
- }, m = (t) => {
53
- const i = t === "hidden" ? u : p, k = t === "hidden" ? R : b, o = t === "hidden" ? C.account_hidden : C.account_closed;
54
- return /* @__PURE__ */ e(B, { children: /* @__PURE__ */ e(
53
+ }, Z = (t) => {
54
+ const o = t === "hidden" ? s : h, B = t === "hidden" ? M : F, C = t === "hidden" ? n.account_hidden : n.account_closed;
55
+ return /* @__PURE__ */ e(O, { children: /* @__PURE__ */ e(
55
56
  E,
56
57
  {
57
- "aria-label": o,
58
- subheader: /* @__PURE__ */ e(O, { component: "h2", sx: { backgroundColor: "transparent", px: 24 }, children: /* @__PURE__ */ n(
59
- _,
58
+ "aria-label": C,
59
+ subheader: /* @__PURE__ */ e(I, { component: "h2", sx: { backgroundColor: "transparent", px: 24 }, children: /* @__PURE__ */ i(
60
+ A,
60
61
  {
61
62
  component: "span",
62
63
  direction: "row",
63
64
  sx: { justifyContent: "space-between", color: "grey.700" },
64
65
  children: [
65
- /* @__PURE__ */ e(v, { bold: !0, variant: "Body", children: o }),
66
- /* @__PURE__ */ e(v, { bold: !0, variant: "Body", children: I(k, "0,0.00") })
66
+ /* @__PURE__ */ e(v, { bold: !0, variant: "Body", children: C }),
67
+ /* @__PURE__ */ e(v, { bold: !0, variant: "Body", children: N(B, "0,0.00") })
67
68
  ]
68
69
  }
69
70
  ) }),
70
- children: /* @__PURE__ */ e(_, { children: i.map((V, x, j) => {
71
- const F = x === j.length - 1;
72
- return /* @__PURE__ */ n(d.Fragment, { children: [
71
+ children: /* @__PURE__ */ e(A, { children: o.map((f, x, K) => {
72
+ const W = x === K.length - 1;
73
+ return /* @__PURE__ */ i(c.Fragment, { children: [
73
74
  /* @__PURE__ */ e(
74
- W,
75
+ D,
75
76
  {
76
- account: V,
77
- onRowClick: () => Z(V),
77
+ account: f,
78
+ onRowClick: () => V(f),
78
79
  shouldShowConnectionStatus: !0
79
80
  }
80
81
  ),
81
82
  t === "hidden" ? /* @__PURE__ */ e(
82
- A,
83
+ y,
83
84
  {
84
85
  sx: {
85
- mb: F ? 24 : 4,
86
- ml: F ? 24 : 68
86
+ mb: W ? 24 : 4,
87
+ ml: W ? 24 : 68
87
88
  }
88
89
  }
89
- ) : !F && /* @__PURE__ */ e(
90
- A,
90
+ ) : !W && /* @__PURE__ */ e(
91
+ y,
91
92
  {
92
93
  sx: {
93
94
  mb: 4,
@@ -95,48 +96,48 @@ const i1 = () => {
95
96
  }
96
97
  }
97
98
  )
98
- ] }, V.guid);
99
+ ] }, f.guid);
99
100
  }) })
100
101
  }
101
102
  ) });
102
103
  };
103
- return /* @__PURE__ */ n(B, { sx: { pt: 24 }, children: [
104
- s.map((t) => {
105
- const i = l.filter(
106
- (o) => o.account_type === t && !o.is_closed && !o.is_hidden
107
- ), k = i.reduce(
108
- (o, V) => (V.balance || 0) + o,
104
+ return /* @__PURE__ */ i(O, { sx: { pt: 24 }, children: [
105
+ m.map((t) => {
106
+ 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,
109
110
  0
110
111
  );
111
- return i.length === 0 ? null : /* @__PURE__ */ e(
112
+ return o.length === 0 ? null : /* @__PURE__ */ e(
112
113
  E,
113
114
  {
114
- "aria-label": C.account_type_accounts[i[0]?.account_type],
115
- subheader: /* @__PURE__ */ e(O, { component: "h2", sx: { backgroundColor: "transparent", px: 24 }, children: /* @__PURE__ */ n(
116
- _,
115
+ "aria-label": n.account_type_accounts[o[0]?.account_type],
116
+ subheader: /* @__PURE__ */ e(I, { component: "h2", sx: { backgroundColor: "transparent", px: 24 }, children: /* @__PURE__ */ i(
117
+ A,
117
118
  {
118
119
  component: "span",
119
120
  direction: "row",
120
121
  sx: { display: "flex", justifyContent: "space-between" },
121
122
  children: [
122
- /* @__PURE__ */ e(v, { bold: !0, variant: "Body", children: C.account_types[t] }),
123
- /* @__PURE__ */ e(v, { bold: !0, variant: "Body", children: I(k, "0,0.00") })
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") })
124
125
  ]
125
126
  }
126
127
  ) }),
127
- children: /* @__PURE__ */ e(_, { children: i.map((o) => {
128
- const V = l.indexOf(o) === l.length - 1, x = i.indexOf(o) === i.length - 1;
129
- return /* @__PURE__ */ n(d.Fragment, { children: [
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;
130
+ return /* @__PURE__ */ i(c.Fragment, { children: [
130
131
  /* @__PURE__ */ e(
131
- W,
132
+ D,
132
133
  {
133
- account: o,
134
- onRowClick: () => Z(o),
134
+ account: C,
135
+ onRowClick: () => V(C),
135
136
  shouldShowConnectionStatus: !0
136
137
  }
137
138
  ),
138
- (!V || p.length > 0 || u.length > 0) && /* @__PURE__ */ e(
139
- A,
139
+ (!f || h.length > 0 || s.length > 0) && /* @__PURE__ */ e(
140
+ y,
140
141
  {
141
142
  sx: {
142
143
  mb: x ? 24 : 4,
@@ -144,115 +145,126 @@ const i1 = () => {
144
145
  }
145
146
  }
146
147
  )
147
- ] }, o.guid);
148
+ ] }, C.guid);
148
149
  }) })
149
150
  },
150
151
  t
151
152
  );
152
153
  }),
153
- u.length > 0 && m("hidden"),
154
- p.length > 0 && m("closed"),
155
- /* @__PURE__ */ n(
156
- J,
154
+ s.length > 0 && Z("hidden"),
155
+ h.length > 0 && Z("closed"),
156
+ /* @__PURE__ */ i(
157
+ Q,
157
158
  {
158
- ariaLabelClose: C.close_account_details_aria,
159
- isOpen: !!c,
160
- onClose: () => H(""),
161
- title: C.account_details,
159
+ ariaLabelClose: n.close_account_details_aria,
160
+ isOpen: !!d,
161
+ onClose: () => a(""),
162
+ title: n.account_details,
162
163
  children: [
163
- /* @__PURE__ */ e(P, {}),
164
- /* @__PURE__ */ e(K, {})
164
+ /* @__PURE__ */ e(Y, {}),
165
+ /* @__PURE__ */ e(z, {})
165
166
  ]
166
167
  }
167
168
  )
168
169
  ] });
169
- }, n1 = M(i1), C1 = ({ onBackClick: c, sx: H = {} }) => {
170
- const [C, l] = d.useState(!1), [h, r] = d.useState(!1), { config: L } = q(), { accounts: f } = T(), { accounts: s, connect: a } = w(), { isCopyLoaded: u, isInitialized: p, setSelectedAccounts: R, selectedAccountGuids: b } = S(), { isDesktop: Z } = N(), { onEvent: m } = D();
171
- d.useEffect(() => {
172
- R(f);
173
- }, [f]);
174
- const t = () => {
175
- l(!0), m(y.ACCOUNTS_CLICK_CONNECT);
176
- }, i = () => {
177
- r(!0), m(y.ACCOUNTS_CLICK_CONNECT);
170
+ }, i1 = g(n1), o1 = g(() => {
171
+ const { accounts: d } = 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: d.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: d, sx: a = {} }) => {
182
+ const [n, l] = c.useState(!1), [H, L] = c.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();
183
+ m || r().finally(), c.useEffect(() => {
184
+ F(p);
185
+ }, [p]);
186
+ const Z = () => {
187
+ l(!0), V?.(S.ACCOUNTS_CLICK_CONNECT);
188
+ }, t = () => {
189
+ L(!0), V?.(S.ACCOUNTS_CLICK_CONNECT);
178
190
  };
179
- return u ? /* @__PURE__ */ e(
180
- Q,
191
+ if (!M)
192
+ return /* @__PURE__ */ e(b, {});
193
+ const o = u.show_connections_widget_in_master ? [
194
+ { iconName: "add", label: s.add, onClick: Z },
181
195
  {
182
- accountOptions: f,
183
- actions: L.show_connections_widget_in_master ? [
184
- { iconName: "add", label: s.add, onClick: t },
185
- {
186
- iconName: "credit_card_gear",
187
- label: s.manage,
188
- onClick: i
189
- }
190
- ] : [],
191
- onAccountsFilterClick: () => m(y.ACCOUNTS_CLICK_FILTER),
192
- onBackClick: c,
193
- sx: H,
196
+ iconName: "credit_card_gear",
197
+ label: s.manage,
198
+ onClick: t
199
+ }
200
+ ] : [];
201
+ return /* @__PURE__ */ i(
202
+ X,
203
+ {
204
+ accountOptions: p,
205
+ actions: o,
206
+ onAccountsFilterClick: () => V?.(S.ACCOUNTS_CLICK_FILTER),
207
+ onBackClick: d,
208
+ sx: a,
194
209
  title: s.title,
195
- children: p ? /* @__PURE__ */ n(G, { children: [
196
- /* @__PURE__ */ n(B, { sx: { px: Z ? 24 : 12 }, children: [
197
- b.length < 1 && /* @__PURE__ */ e(v, { display: "flex", justifyContent: "center", my: 24, children: s.no_accounts }),
198
- /* @__PURE__ */ e(n1, {})
199
- ] }),
210
+ children: [
211
+ /* @__PURE__ */ e(o1, {}),
200
212
  /* @__PURE__ */ e(
201
- U,
213
+ j,
202
214
  {
203
215
  onClose: () => l(!1),
204
- showConnectWidget: C,
205
- title: a.mini_title
216
+ showConnectWidget: n,
217
+ title: h.mini_title
206
218
  }
207
219
  ),
208
220
  /* @__PURE__ */ e(
209
- X,
221
+ e1,
210
222
  {
211
- onClose: () => r(!1),
212
- showConnectionsWidget: h,
223
+ onClose: () => L(!1),
224
+ showConnectionsWidget: H,
213
225
  title: s.manage_connections
214
226
  }
215
227
  )
216
- ] }) : /* @__PURE__ */ e(g, {})
228
+ ]
217
229
  }
218
- ) : /* @__PURE__ */ e(g, {});
219
- }, E1 = M(C1), o1 = ({ onPrimaryCtaClick: c, sx: H }) => {
220
- const { visibleAccounts: C } = T(), { accounts: l } = w(), { isCopyLoaded: h, isInitialized: r, selectedAccounts: L, setSelectedAccounts: f } = S(), { isDesktop: s } = N();
221
- d.useEffect(() => {
222
- f(C);
223
- }, [C]);
224
- const a = d.useMemo(
225
- () => e1(L, s ? 5 : 3),
226
- [L, s]
227
230
  );
228
- return h ? /* @__PURE__ */ e(
229
- $,
231
+ }, D1 = g(C1), d1 = ({ onPrimaryCtaClick: d, sx: a }) => {
232
+ const { visibleAccounts: n } = k(), { accounts: l } = R(), { isCopyLoaded: H, isInitialized: L, selectedAccounts: u, setSelectedAccounts: p } = w(), { isDesktop: m } = $();
233
+ c.useEffect(() => {
234
+ p(n);
235
+ }, [n]);
236
+ const r = c.useMemo(
237
+ () => t1(u, m ? 5 : 3),
238
+ [u, m]
239
+ );
240
+ return H ? /* @__PURE__ */ e(
241
+ G,
230
242
  {
231
243
  className: "mx-exp-accounts-miniwidget",
232
- onPrimaryCtaClick: c,
244
+ onPrimaryCtaClick: d,
233
245
  primaryCtaLabel: l.primary_cta,
234
- sx: H,
246
+ sx: a,
235
247
  title: l.mini_title,
236
- children: r ? /* @__PURE__ */ n(E, { children: [
237
- L.length === 0 && /* @__PURE__ */ e(t1, { sx: { justifyContent: "center" }, children: l.no_accounts }),
238
- a.map((u, p) => {
239
- const R = a.indexOf(u) === a.length - 1;
240
- return /* @__PURE__ */ n(d.Fragment, { children: [
248
+ children: L ? /* @__PURE__ */ i(E, { children: [
249
+ u.length === 0 && /* @__PURE__ */ e(l1, { sx: { justifyContent: "center" }, children: l.no_accounts }),
250
+ r.map((s, h) => {
251
+ const M = r.indexOf(s) === r.length - 1;
252
+ return /* @__PURE__ */ i(c.Fragment, { children: [
241
253
  /* @__PURE__ */ e(
242
- W,
254
+ D,
243
255
  {
244
- account: u,
256
+ account: s,
245
257
  listItemProps: { sx: { px: 24 } },
246
258
  shouldShowConnectionStatus: !0
247
259
  }
248
260
  ),
249
- !R && /* @__PURE__ */ e(A, { "aria-hidden": "true", variant: "inset" })
250
- ] }, `account-item${p}`);
261
+ !M && /* @__PURE__ */ e(y, { "aria-hidden": "true", variant: "inset" })
262
+ ] }, `account-item${h}`);
251
263
  })
252
- ] }) : /* @__PURE__ */ e(g, {})
264
+ ] }) : /* @__PURE__ */ e(b, {})
253
265
  }
254
- ) : /* @__PURE__ */ e(g, {});
255
- }, W1 = M(o1), d1 = () => /* @__PURE__ */ n(
266
+ ) : /* @__PURE__ */ e(b, {});
267
+ }, T1 = g(d1), c1 = () => /* @__PURE__ */ i(
256
268
  "svg",
257
269
  {
258
270
  fill: "none",
@@ -260,7 +272,7 @@ const i1 = () => {
260
272
  viewBox: "0 0 272 66",
261
273
  xmlns: "http://www.w3.org/2000/svg",
262
274
  children: [
263
- /* @__PURE__ */ n("g", { opacity: "0.35", children: [
275
+ /* @__PURE__ */ i("g", { opacity: "0.35", children: [
264
276
  /* @__PURE__ */ e("rect", { fill: "#CD1141", height: "40.3437", rx: "2.81371", width: "39.6876", x: "19.6553" }),
265
277
  /* @__PURE__ */ e(
266
278
  "path",
@@ -546,7 +558,7 @@ const i1 = () => {
546
558
  children: /* @__PURE__ */ e("rect", { fill: "white", height: "47.5848", rx: "3.31025", width: "46.8064", x: "113.168", y: "18.1035" })
547
559
  }
548
560
  ),
549
- /* @__PURE__ */ n("g", { mask: "url(#mask1_6197_80303)", children: [
561
+ /* @__PURE__ */ i("g", { mask: "url(#mask1_6197_80303)", children: [
550
562
  /* @__PURE__ */ e(
551
563
  "mask",
552
564
  {
@@ -691,10 +703,10 @@ const i1 = () => {
691
703
  )
692
704
  ]
693
705
  }
694
- ), c1 = () => {
695
- const { connect: c } = w();
696
- return /* @__PURE__ */ n(l1, { alignItems: "center", direction: "column", m: 24, children: [
697
- /* @__PURE__ */ e(d1, {}),
706
+ ), s1 = () => {
707
+ const { connect: d } = R();
708
+ return /* @__PURE__ */ i(T, { alignItems: "center", direction: "column", m: 24, children: [
709
+ /* @__PURE__ */ e(c1, {}),
698
710
  /* @__PURE__ */ e(
699
711
  v,
700
712
  {
@@ -704,52 +716,52 @@ const i1 = () => {
704
716
  textAlign: "center"
705
717
  },
706
718
  variant: "Paragraph",
707
- children: c.mini_widget_content
719
+ children: d.mini_widget_content
708
720
  }
709
721
  )
710
722
  ] });
711
- }, s1 = M(c1), a1 = ({
712
- onPrimaryCtaClick: c = () => {
723
+ }, a1 = g(s1), r1 = ({
724
+ onPrimaryCtaClick: d = () => {
713
725
  },
714
- sx: H
726
+ sx: a
715
727
  }) => {
716
- const { isCopyLoaded: C } = S(), { connect: l } = w(), [h, r] = d.useState(!1), L = () => {
717
- r(!0), c();
728
+ const { isCopyLoaded: n } = w(), { connect: l } = R(), [H, L] = c.useState(!1), u = () => {
729
+ L(!0), d();
718
730
  };
719
- return C ? /* @__PURE__ */ n(
720
- $,
731
+ return n ? /* @__PURE__ */ i(
732
+ G,
721
733
  {
722
734
  className: "mx-exp-connect-miniwidget",
723
- onPrimaryCtaClick: L,
735
+ onPrimaryCtaClick: u,
724
736
  primaryCtaLabel: l.primary_cta,
725
- sx: H,
737
+ sx: a,
726
738
  title: l.mini_title,
727
739
  children: [
728
- /* @__PURE__ */ e(s1, {}),
729
- h && /* @__PURE__ */ e(
730
- U,
740
+ /* @__PURE__ */ e(a1, {}),
741
+ H && /* @__PURE__ */ e(
742
+ j,
731
743
  {
732
- onClose: () => r(!1),
733
- showConnectWidget: h,
744
+ onClose: () => L(!1),
745
+ showConnectWidget: H,
734
746
  title: l.mini_title
735
747
  }
736
748
  )
737
749
  ]
738
750
  }
739
- ) : /* @__PURE__ */ e(g, {});
740
- }, T1 = M(a1);
751
+ ) : /* @__PURE__ */ e(b, {});
752
+ }, O1 = g(r1);
741
753
  export {
742
- P1 as AccountApi,
743
- K as AccountDetailsContent,
744
- P as AccountDetailsHeader,
745
- Y1 as AccountStore,
746
- W1 as AccountsMiniWidget,
747
- E1 as AccountsWidget,
748
- T1 as ConnectMiniWidget,
749
- G1 as FieldType,
750
- K1 as MemberConnectionStatus,
751
- U1 as getAccountBalanceDetails,
752
- $1 as getAccountDetailFields,
753
- z as useAccountUiStore,
754
- D1 as useGetMergeableAccounts
754
+ q1 as AccountApi,
755
+ z as AccountDetailsContent,
756
+ Y as AccountDetailsHeader,
757
+ J1 as AccountStore,
758
+ T1 as AccountsMiniWidget,
759
+ D1 as AccountsWidget,
760
+ O1 as ConnectMiniWidget,
761
+ z1 as FieldType,
762
+ P1 as MemberConnectionStatus,
763
+ j1 as getAccountBalanceDetails,
764
+ G1 as getAccountDetailFields,
765
+ P as useAccountUiStore,
766
+ U1 as useGetMergeableAccounts
755
767
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mx-cartographer/experiences",
3
- "version": "7.3.0-alpha.sms1",
3
+ "version": "8.0.0-alpha.bb1",
4
4
  "description": "Library containing experience widgets",
5
5
  "author": "MX",
6
6
  "license": "MIT",