@mx-cartographer/experiences 7.13.9 → 7.13.11

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.
@@ -1,31 +1,31 @@
1
- import { jsx as e, jsxs as C, Fragment as x } from "react/jsx-runtime";
1
+ import { jsx as e, jsxs as C, Fragment as R } from "react/jsx-runtime";
2
2
  import h from "react";
3
- import { observer as V } from "mobx-react-lite";
3
+ import { observer as A } from "mobx-react-lite";
4
4
  import e1 from "@mui/material/Stack";
5
- import { Text as g, Icon as F, THEMES as i1 } from "@mxenabled/mxui";
5
+ import { Text as g, Icon as N, THEMES as i1 } from "@mxenabled/mxui";
6
6
  import { S as h1 } from "../SkeletonLoader-BaNboJjD.mjs";
7
7
  import c1 from "@mui/material/Box";
8
- import w from "@mui/material/Divider";
9
- import E from "@mui/material/List";
10
- import U from "@mui/material/ListSubheader";
8
+ import W from "@mui/material/Divider";
9
+ import O from "@mui/material/List";
10
+ import B from "@mui/material/ListSubheader";
11
11
  import P from "@mui/system/Stack";
12
- import { useTheme as M1, alpha as y1 } from "@mui/material/styles";
13
- import { u as S, A as x1 } from "../AccountDetailsHeader-D9gbTbUt.mjs";
14
- import { L as b1 } from "../LineChart-EAr5ox5U.mjs";
12
+ import { useTheme as V1, alpha as M1 } from "@mui/material/styles";
13
+ import { u as w, A as y1 } from "../AccountDetailsHeader-D9gbTbUt.mjs";
14
+ import { L as x1 } from "../LineChart-EAr5ox5U.mjs";
15
15
  import { g as w1, a as R1, b as S1 } from "../SpendingData-Bz1bCWAs.mjs";
16
- import { l as T1, u as y, d as k, g as I, h as m1, b as G, a as E1 } from "../hooks-BxkfR-Ff.mjs";
17
- import { A as N, g as L, N as p1 } from "../Account-BiB1F8lL.mjs";
16
+ import { l as T1, u as M, d as E, g as D, h as m1, b as G, a as E1 } from "../hooks-BxkfR-Ff.mjs";
17
+ import { A as I, g as L, N as p1 } from "../Account-BiB1F8lL.mjs";
18
18
  import { I as _1, P as L1, S as f1 } from "../Account-DuOz1a27.mjs";
19
19
  import { a as D1, b as k1 } from "../AccountFields-CxqONzjY.mjs";
20
20
  import { g as i4 } from "../AccountFields-CxqONzjY.mjs";
21
- import { A as B } from "../AccountListItem-LcJVJysf.mjs";
21
+ import { A as U } from "../AccountListItem-D9WJDbZ1.mjs";
22
22
  import a1 from "@mui/material/Tab";
23
23
  import I1 from "@mui/material/Tabs";
24
24
  import Z1 from "@mui/material/Switch";
25
- import D from "@mui/material/ListItem";
25
+ import T from "@mui/material/ListItem";
26
26
  import $ from "@mui/material/ListItemButton";
27
- import O from "@mui/material/ListItemText";
28
- import { A as R } from "../Analytics-BYItVAe-.mjs";
27
+ import Z from "@mui/material/ListItemText";
28
+ import { A as x } from "../Analytics-BYItVAe-.mjs";
29
29
  import { D as Q } from "../Dialog-Ck34yr-d.mjs";
30
30
  import { b as f } from "../Localization-CPkpIwIx.mjs";
31
31
  import { D as t1 } from "../Drawer-Bbe4AMB1.mjs";
@@ -33,12 +33,12 @@ import Y from "@mui/material/ListItemAvatar";
33
33
  import N1 from "@mui/material/styles/useTheme";
34
34
  import { Error as g1, CheckCircle as O1, Language as F1 } from "@mxenabled/mx-icons";
35
35
  import { C as z } from "../ConnectDrawer-C0wjwcJt.mjs";
36
- import { fromUnixTime as W1 } from "date-fns/fromUnixTime";
37
- import { isToday as P1 } from "date-fns/isToday";
38
- import { isYesterday as U1 } from "date-fns/isYesterday";
36
+ import { fromUnixTime as P1 } from "date-fns/fromUnixTime";
37
+ import { isToday as W1 } from "date-fns/isToday";
38
+ import { isYesterday as B1 } from "date-fns/isYesterday";
39
39
  import { f as s1, D as l1 } from "../DateFormats-BMpMrZpW.mjs";
40
40
  import { I as j } from "../IconBacking-B9oC6uL2.mjs";
41
- import { addMonths as B1 } from "date-fns/addMonths";
41
+ import { addMonths as U1 } from "date-fns/addMonths";
42
42
  import { AdapterDateFns as $1 } from "@mui/x-date-pickers/AdapterDateFnsV3";
43
43
  import { DateCalendar as G1 } from "@mui/x-date-pickers/DateCalendar";
44
44
  import z1 from "@mui/material/FormControl";
@@ -56,15 +56,15 @@ import t3 from "@mui/material/Link";
56
56
  import n3 from "@mui/material/Paper";
57
57
  import { subDays as o3, startOfToday as i3, endOfToday as c3 } from "date-fns";
58
58
  import { T as a3 } from "../StatusIndicator-CIKUOoN_.mjs";
59
- import { T as s3 } from "../TransactionDetails-B-HssZFM.mjs";
59
+ import { T as s3 } from "../TransactionDetails-B-C-7meW.mjs";
60
60
  import { T as r1 } from "../TabContentContainer-j01JYR_7.mjs";
61
61
  import { f as d1 } from "../NumberFormatting-QCaNwbjv.mjs";
62
62
  import { C as l3 } from "../ConnectionsDrawer-IA7vnv1J.mjs";
63
63
  import { u as H1 } from "../useScreenSize-B6JyS_Lj.mjs";
64
64
  import { u as n1 } from "../useWidgetLoadTimer-DgN1bTyu.mjs";
65
65
  import { L as o1 } from "../Loader-D3rjKx72.mjs";
66
- import { W as r3 } from "../WidgetContainer-D_iaToWJ.mjs";
67
- import { M as A1 } from "../MiniWidgetContainer-xLWSV6Wz.mjs";
66
+ import { W as r3 } from "../WidgetContainer-B7xDq2bM.mjs";
67
+ import { M as v1 } from "../MiniWidgetContainer-xLWSV6Wz.mjs";
68
68
  import { A as l4 } from "../AccountApi-ChQr5PAZ.mjs";
69
69
  import { A as d4 } from "../AccountStore-BNlTuxWN.mjs";
70
70
  const d3 = (t, o) => {
@@ -85,9 +85,9 @@ const d3 = (t, o) => {
85
85
  }
86
86
  return a;
87
87
  }, C3 = () => {
88
- const t = M1(), { selectedAccount: o } = S(), { monthlyCategoryTotals: n } = T1(), { trends: i } = y(), c = [t.palette.chart?.chart1, t.palette.chart?.chart2], l = d3(n, o.account_type), u = u3(l, o.account_type, i), a = [N.LOAN, N.MORTGAGE].includes(o.account_type);
88
+ const t = V1(), { selectedAccount: o } = w(), { monthlyCategoryTotals: n } = T1(), { trends: i } = M(), c = [t.palette.chart?.chart1, t.palette.chart?.chart2], l = d3(n, o.account_type), u = u3(l, o.account_type, i), a = [I.LOAN, I.MORTGAGE].includes(o.account_type);
89
89
  return /* @__PURE__ */ e("div", { "data-testid": "TrendsChart", children: /* @__PURE__ */ e(
90
- b1,
90
+ x1,
91
91
  {
92
92
  colors: c,
93
93
  datasets: l,
@@ -105,60 +105,95 @@ const d3 = (t, o) => {
105
105
  valueFormatterString: "0,0"
106
106
  }
107
107
  ) });
108
- }, h3 = V(C3), J = ({
108
+ }, h3 = A(C3), J = ({
109
109
  ariaPressed: t,
110
110
  children: o,
111
111
  isLast: n = !1,
112
112
  onClick: i,
113
113
  primaryText: c,
114
114
  secondaryText: l
115
- }) => /* @__PURE__ */ C(x, { children: [
116
- /* @__PURE__ */ e(D, { sx: { backgroundColor: "background.paper" }, children: /* @__PURE__ */ C($, { "aria-pressed": t, onClick: i, children: [
117
- /* @__PURE__ */ e(O, { primary: c, secondary: l }),
118
- o
119
- ] }) }),
120
- /* @__PURE__ */ e(w, { sx: { ml: n ? 0 : 24 } })
121
- ] }), m3 = () => {
122
- const { accounts: t } = k(), { selectedAccount: o, selectedMember: n } = S();
115
+ }) => /* @__PURE__ */ e(
116
+ T,
117
+ {
118
+ sx: {
119
+ backgroundColor: "background.paper",
120
+ position: "relative",
121
+ "&::after": {
122
+ content: '""',
123
+ position: "absolute",
124
+ bottom: 0,
125
+ right: 0,
126
+ left: n ? 0 : 24,
127
+ borderBottom: "1px solid",
128
+ borderColor: "divider"
129
+ }
130
+ },
131
+ children: /* @__PURE__ */ C($, { "aria-pressed": t, onClick: i, children: [
132
+ /* @__PURE__ */ e(Z, { primary: c, secondary: l }),
133
+ o
134
+ ] })
135
+ }
136
+ ), m3 = () => {
137
+ const { accounts: t } = E(), { selectedAccount: o, selectedMember: n } = w();
123
138
  return t.filter(
124
139
  (i) => i.member_guid === n.guid && n.successfully_aggregated_at && i.guid !== o.guid
125
140
  );
126
141
  }, p3 = () => {
127
- const [t, o] = h.useState(!1), [n, i] = h.useState(!1), [c, l] = h.useState(!1), [u, a] = h.useState({}), { selectedAccount: r } = S(), { mergeAccounts: m, updateAccount: _ } = k(), { accounts: s } = y(), H = m3(), { onEvent: v } = I(), { modifyTransactionByAccountGuid: M } = m1(), b = async (p) => {
142
+ const [t, o] = h.useState(!1), [n, i] = h.useState(!1), [c, l] = h.useState(!1), [u, a] = h.useState({}), { selectedAccount: r } = w(), { mergeAccounts: p, updateAccount: _ } = E(), { accounts: s } = M(), H = m3(), { onEvent: b } = D(), { modifyTransactionByAccountGuid: V } = m1(), y = async (m) => {
128
143
  await _({
129
144
  ...r,
130
- ...p
131
- }), "is_closed" in p && p.is_closed !== r.is_closed && M(r.guid, { accountIsClosed: p.is_closed });
145
+ ...m
146
+ }), "is_closed" in m && m.is_closed !== r.is_closed && V(r.guid, { accountIsClosed: m.is_closed });
132
147
  }, d = () => {
133
- m([r.guid, u.guid]).finally(
148
+ p([r.guid, u.guid]).finally(
134
149
  () => i(!1)
135
150
  );
136
151
  };
137
- return /* @__PURE__ */ C(x, { children: [
138
- /* @__PURE__ */ e(U, { sx: { backgroundColor: "transparent", mb: 4, mt: 12, mx: 8 }, children: /* @__PURE__ */ e(g, { bold: !0, component: "h2", variant: "caption", children: s.actions }) }),
152
+ return /* @__PURE__ */ C(R, { children: [
153
+ /* @__PURE__ */ e(B, { sx: { backgroundColor: "transparent", mb: 4, mt: 12, mx: 8 }, children: /* @__PURE__ */ e(g, { bold: !0, component: "h2", variant: "caption", children: s.actions }) }),
139
154
  /* @__PURE__ */ e(
140
155
  J,
141
156
  {
142
157
  ariaPressed: r.is_hidden,
143
158
  onClick: () => {
144
- b({ is_hidden: !r.is_hidden }), v(R.ACCOUNT_DETAILS_CLICK_HIDE, { account_guid: r.guid });
159
+ y({ is_hidden: !r.is_hidden }), b(x.ACCOUNT_DETAILS_CLICK_HIDE, { account_guid: r.guid });
145
160
  },
146
161
  primaryText: r.is_hidden ? s.unhide_account : s.hide_Account,
147
162
  secondaryText: r.is_hidden ? s.include_this_account : s.exclude_this_account,
148
163
  children: /* @__PURE__ */ e(Z1, { "aria-hidden": !0, checked: r.is_hidden, tabIndex: -1 })
149
164
  }
150
165
  ),
151
- /* @__PURE__ */ e(
166
+ /* @__PURE__ */ C(
152
167
  J,
153
168
  {
154
169
  onClick: () => {
155
- o(!0), v(R.ACCOUNT_DETAILS_CLICK_MARK_CLOSED, {
170
+ o(!0), b(x.ACCOUNT_DETAILS_CLICK_MARK_CLOSED, {
156
171
  account_guid: r.guid
157
172
  });
158
173
  },
159
174
  primaryText: r.is_closed ? s.mark_as_open : s.mark_as_closed,
160
175
  secondaryText: r.is_closed ? s.this_will_set_the_closed_account : s.this_will_set_the_account_balance_to_0,
161
- children: /* @__PURE__ */ e(F, { name: "chevron_right" })
176
+ children: [
177
+ /* @__PURE__ */ e(N, { name: "chevron_right" }),
178
+ /* @__PURE__ */ e("div", { onClick: (m) => m.stopPropagation(), children: /* @__PURE__ */ e(
179
+ Q,
180
+ {
181
+ copy: {
182
+ close_aria: s.close_modal,
183
+ title: r.is_closed ? s.confirm_mark_as_open : s.confirm_mark_closed
184
+ },
185
+ isOpen: t,
186
+ onClose: () => {
187
+ o(!1);
188
+ },
189
+ onPrimaryAction: () => y({ is_closed: !r.is_closed }),
190
+ children: /* @__PURE__ */ e(g, { truncate: !1, children: f(
191
+ r.is_closed ? s.this_will_resume_updating_the_balance : s.this_will_set_the_balance_of_your_account,
192
+ r.name
193
+ ) })
194
+ }
195
+ ) })
196
+ ]
162
197
  }
163
198
  ),
164
199
  H.length > 0 && /* @__PURE__ */ e(
@@ -166,79 +201,75 @@ const d3 = (t, o) => {
166
201
  {
167
202
  isLast: !0,
168
203
  onClick: () => {
169
- i(!0), v(R.ACCOUNT_DETAILS_CLICK_MARK_DUPLICATE, {
204
+ i(!0), b(x.ACCOUNT_DETAILS_CLICK_MARK_DUPLICATE, {
170
205
  account_guid: r.guid
171
206
  });
172
207
  },
173
208
  primaryText: s.mark_as_duplicate,
174
209
  secondaryText: s.if_a_connected_account_is_showing_up_twice,
175
- children: /* @__PURE__ */ e(F, { name: "chevron_right" })
176
- }
177
- ),
178
- /* @__PURE__ */ e(
179
- Q,
180
- {
181
- copy: {
182
- close_aria: s.close_modal,
183
- title: r.is_closed ? s.confirm_mark_as_open : s.confirm_mark_closed
184
- },
185
- isOpen: t,
186
- onClose: () => {
187
- o(!1);
188
- },
189
- onPrimaryAction: () => b({ is_closed: !r.is_closed }),
190
- children: /* @__PURE__ */ e(g, { truncate: !1, children: f(
191
- r.is_closed ? s.this_will_resume_updating_the_balance : s.this_will_set_the_balance_of_your_account,
192
- r.name
193
- ) })
210
+ children: /* @__PURE__ */ e(N, { name: "chevron_right" })
194
211
  }
195
212
  ),
196
- /* @__PURE__ */ e(
213
+ /* @__PURE__ */ C(
197
214
  t1,
198
215
  {
199
216
  ariaLabelClose: s.close_drawer,
200
217
  isOpen: n,
201
218
  onClose: () => i(!1),
202
219
  title: s.mark_as_duplicate,
203
- children: /* @__PURE__ */ e(E, { children: H.map((p) => {
204
- const Z = H.indexOf(p) === H.length - 1;
205
- return /* @__PURE__ */ C(h.Fragment, { children: [
206
- /* @__PURE__ */ e(
207
- B,
220
+ children: [
221
+ /* @__PURE__ */ e(O, { children: H.map((m) => {
222
+ const k = H.indexOf(m) === H.length - 1;
223
+ return /* @__PURE__ */ e(
224
+ U,
208
225
  {
209
- account: p,
226
+ account: m,
227
+ listItemProps: {
228
+ sx: {
229
+ position: "relative",
230
+ "&::after": {
231
+ content: '""',
232
+ position: "absolute",
233
+ bottom: 0,
234
+ right: 0,
235
+ left: k ? 0 : 24,
236
+ borderBottom: "1px solid",
237
+ borderColor: "divider"
238
+ }
239
+ }
240
+ },
210
241
  onRowClick: () => {
211
- l(!0), a(p);
242
+ l(!0), a(m);
212
243
  }
213
- }
214
- ),
215
- /* @__PURE__ */ e(E, { sx: { ml: Z ? 0 : 24 } })
216
- ] }, p.guid);
217
- }) })
218
- }
219
- ),
220
- c && /* @__PURE__ */ C(
221
- Q,
222
- {
223
- copy: {
224
- close_aria: s.close_modal,
225
- title: s.confirm_merge
226
- },
227
- isOpen: c,
228
- onClose: () => l(!1),
229
- onPrimaryAction: d,
230
- children: [
231
- /* @__PURE__ */ e(g, { truncate: !1, children: f(
232
- s.this_means_accounts_will_be_merged,
233
- r.name,
234
- u.name
235
- ) }),
236
- /* @__PURE__ */ e(g, { color: "error", sx: { mt: 24 }, children: s.this_action_cannot_be_undone })
244
+ },
245
+ m.guid
246
+ );
247
+ }) }),
248
+ c && /* @__PURE__ */ C(
249
+ Q,
250
+ {
251
+ copy: {
252
+ close_aria: s.close_modal,
253
+ title: s.confirm_merge
254
+ },
255
+ isOpen: c,
256
+ onClose: () => l(!1),
257
+ onPrimaryAction: d,
258
+ children: [
259
+ /* @__PURE__ */ e(g, { truncate: !1, children: f(
260
+ s.this_means_accounts_will_be_merged,
261
+ r.name,
262
+ u.name
263
+ ) }),
264
+ /* @__PURE__ */ e(g, { color: "error", sx: { mt: 24 }, children: s.this_action_cannot_be_undone })
265
+ ]
266
+ }
267
+ )
237
268
  ]
238
269
  }
239
270
  )
240
271
  ] });
241
- }, _3 = V(p3), V1 = (t, o) => {
272
+ }, _3 = A(p3), A1 = (t, o) => {
242
273
  const { connection_messages: n } = o;
243
274
  switch (t.connection_status) {
244
275
  case L.CHALLENGED:
@@ -375,9 +406,9 @@ const d3 = (t, o) => {
375
406
  };
376
407
  default: {
377
408
  const i = () => {
378
- const c = t.successfully_aggregated_at ? W1(t.successfully_aggregated_at) : void 0, l = c && s1(c, l1.TIME_STAMP_HOUR_MINUTE);
409
+ const c = t.successfully_aggregated_at ? P1(t.successfully_aggregated_at) : void 0, l = c && s1(c, l1.TIME_STAMP_HOUR_MINUTE);
379
410
  if (l)
380
- return P1(c) ? f(o.last_updated_at, o.today, l) : U1(c) ? f(o.last_updated_at, o.yesterday, l) : f(
411
+ return W1(c) ? f(o.last_updated_at, o.today, l) : B1(c) ? f(o.last_updated_at, o.yesterday, l) : f(
381
412
  o.last_updated_at,
382
413
  s1(c, l1.MONTH_DAY_YEAR),
383
414
  l
@@ -399,7 +430,7 @@ const d3 = (t, o) => {
399
430
  }, L3 = () => {
400
431
  const [t, o] = h.useState(!1), {
401
432
  palette: { mode: n }
402
- } = N1(), { selectedMember: i } = S(), { accounts: c, connect: l } = y(), u = V1(i, l), a = p1.includes(i.connection_status) ? {
433
+ } = N1(), { selectedMember: i } = w(), { accounts: c, connect: l } = M(), u = A1(i, l), a = p1.includes(i.connection_status) ? {
403
434
  color: "error.main",
404
435
  ctaCopy: u.cta ?? "",
405
436
  icon: /* @__PURE__ */ e(g1, { filled: !0, sx: { ...q } }),
@@ -411,53 +442,77 @@ const d3 = (t, o) => {
411
442
  mainMessage: u.statusName,
412
443
  secondaryMessage: u.title
413
444
  };
414
- return /* @__PURE__ */ C(x, { children: [
415
- /* @__PURE__ */ e(U, { sx: { mb: 4, mt: 12, mx: 8 }, children: /* @__PURE__ */ e(g, { bold: !0, component: "h2", variant: "caption", children: c.connection_status }) }),
416
- /* @__PURE__ */ e(D, { sx: { backgroundColor: "background.paper" }, children: i.is_manual || !a.ctaCopy ? /* @__PURE__ */ C(e1, { alignItems: "center", direction: "row", px: 24, py: 12, children: [
417
- /* @__PURE__ */ e(Y, { children: /* @__PURE__ */ e(j, { backingSx: { backgroundColor: a.color, borderRadius: 1 }, size: 32, children: a.icon }) }),
418
- /* @__PURE__ */ e(O, { primary: a.mainMessage, secondary: a.secondaryMessage })
419
- ] }) : /* @__PURE__ */ C($, { onClick: () => o(!0), children: [
420
- /* @__PURE__ */ e(Y, { children: /* @__PURE__ */ e(j, { backingSx: { backgroundColor: a.color, borderRadius: 1 }, size: 32, children: a.icon }) }),
421
- /* @__PURE__ */ e(
422
- O,
423
- {
424
- primary: a.mainMessage,
425
- secondary: a.secondaryMessage && /* @__PURE__ */ C(x, { children: [
426
- a.secondaryMessage,
427
- " ",
428
- /* @__PURE__ */ e(g, { bold: !0, sx: { color: "action.active" }, variant: "caption", children: a.ctaCopy })
429
- ] })
430
- }
431
- ),
432
- /* @__PURE__ */ e(F, { name: "chevron_right" })
433
- ] }) }),
434
- /* @__PURE__ */ e(w, { sx: { ml: i.is_manual || !i.institution_url ? 0 : 24 } }),
435
- !i.is_manual && i.institution_url && /* @__PURE__ */ C(x, { children: [
436
- /* @__PURE__ */ e(D, { sx: { backgroundColor: "background.paper" }, children: /* @__PURE__ */ C($, { component: "a", href: i.institution_url, target: "_blank", children: [
437
- /* @__PURE__ */ e(Y, { children: /* @__PURE__ */ e(
438
- j,
439
- {
440
- backingSx: {
441
- backgroundColor: n === i1.LIGHT ? "grey.300" : "grey.700",
442
- borderRadius: 1
443
- },
444
- size: 32,
445
- children: /* @__PURE__ */ e(
446
- F1,
447
- {
448
- sx: {
449
- ...q,
450
- color: n === i1.LIGHT ? "grey.900" : "common.white"
451
- }
452
- }
453
- )
445
+ return /* @__PURE__ */ C(R, { children: [
446
+ /* @__PURE__ */ e(B, { sx: { mb: 4, mt: 12, mx: 8 }, children: /* @__PURE__ */ e(g, { bold: !0, component: "h2", variant: "caption", children: c.connection_status }) }),
447
+ /* @__PURE__ */ e(
448
+ T,
449
+ {
450
+ sx: {
451
+ backgroundColor: "background.paper",
452
+ position: "relative",
453
+ "&::after": {
454
+ content: '""',
455
+ position: "absolute",
456
+ bottom: 0,
457
+ right: 0,
458
+ left: i.is_manual || !i.institution_url ? 0 : 24,
459
+ borderBottom: "1px solid",
460
+ borderColor: "divider"
454
461
  }
455
- ) }),
456
- /* @__PURE__ */ e(O, { primary: i.name, secondary: i.institution_url }),
457
- /* @__PURE__ */ e(F, { name: "launch" })
458
- ] }) }),
459
- /* @__PURE__ */ e(w, {})
460
- ] }),
462
+ },
463
+ children: i.is_manual || !a.ctaCopy ? /* @__PURE__ */ C(e1, { alignItems: "center", direction: "row", px: 24, py: 12, children: [
464
+ /* @__PURE__ */ e(Y, { children: /* @__PURE__ */ e(j, { backingSx: { backgroundColor: a.color, borderRadius: 1 }, size: 32, children: a.icon }) }),
465
+ /* @__PURE__ */ e(Z, { primary: a.mainMessage, secondary: a.secondaryMessage })
466
+ ] }) : /* @__PURE__ */ C($, { onClick: () => o(!0), children: [
467
+ /* @__PURE__ */ e(Y, { children: /* @__PURE__ */ e(j, { backingSx: { backgroundColor: a.color, borderRadius: 1 }, size: 32, children: a.icon }) }),
468
+ /* @__PURE__ */ e(
469
+ Z,
470
+ {
471
+ primary: a.mainMessage,
472
+ secondary: a.secondaryMessage && /* @__PURE__ */ C(R, { children: [
473
+ a.secondaryMessage,
474
+ " ",
475
+ /* @__PURE__ */ e(g, { bold: !0, sx: { color: "action.active" }, variant: "caption", children: a.ctaCopy })
476
+ ] })
477
+ }
478
+ ),
479
+ /* @__PURE__ */ e(N, { name: "chevron_right" })
480
+ ] })
481
+ }
482
+ ),
483
+ !i.is_manual && i.institution_url && /* @__PURE__ */ e(R, { children: /* @__PURE__ */ e(
484
+ T,
485
+ {
486
+ sx: {
487
+ backgroundColor: "background.paper",
488
+ borderBottom: "1px solid",
489
+ borderColor: "divider"
490
+ },
491
+ children: /* @__PURE__ */ C($, { component: "a", href: i.institution_url, target: "_blank", children: [
492
+ /* @__PURE__ */ e(Y, { children: /* @__PURE__ */ e(
493
+ j,
494
+ {
495
+ backingSx: {
496
+ backgroundColor: n === i1.LIGHT ? "grey.300" : "grey.700",
497
+ borderRadius: 1
498
+ },
499
+ size: 32,
500
+ children: /* @__PURE__ */ e(
501
+ F1,
502
+ {
503
+ sx: {
504
+ ...q,
505
+ color: n === i1.LIGHT ? "grey.900" : "common.white"
506
+ }
507
+ }
508
+ )
509
+ }
510
+ ) }),
511
+ /* @__PURE__ */ e(Z, { primary: i.name, secondary: i.institution_url }),
512
+ /* @__PURE__ */ e(N, { name: "launch" })
513
+ ] })
514
+ }
515
+ ) }),
461
516
  t && /* @__PURE__ */ e(
462
517
  z,
463
518
  {
@@ -468,10 +523,10 @@ const d3 = (t, o) => {
468
523
  }
469
524
  )
470
525
  ] });
471
- }, f3 = V(L3), g3 = ({ field: t, isOpen: o, onClose: n }) => {
472
- const { updateAccount: i } = k(), { selectedAccount: c } = S(), { accounts: l } = y(), [u, a] = h.useState(c[t.name]), [r, m] = h.useState(""), [_, s] = h.useState(!0), H = () => {
473
- a(""), m(""), n();
474
- }, v = () => {
526
+ }, f3 = A(L3), g3 = ({ field: t, isOpen: o, onClose: n }) => {
527
+ const { updateAccount: i } = E(), { selectedAccount: c } = w(), { accounts: l } = M(), [u, a] = h.useState(c[t.name]), [r, p] = h.useState(""), [_, s] = h.useState(!0), H = () => {
528
+ a(""), p(""), n();
529
+ }, b = () => {
475
530
  switch (t.type) {
476
531
  case X.Select:
477
532
  return /* @__PURE__ */ C(z1, { fullWidth: !0, children: [
@@ -511,7 +566,7 @@ const d3 = (t, o) => {
511
566
  return /* @__PURE__ */ e(Y1, { dateAdapter: $1, children: /* @__PURE__ */ e(
512
567
  G1,
513
568
  {
514
- maxDate: B1(/* @__PURE__ */ new Date(), 1),
569
+ maxDate: U1(/* @__PURE__ */ new Date(), 1),
515
570
  minDate: /* @__PURE__ */ new Date(),
516
571
  onChange: (d) => {
517
572
  c[t.name] && Number(c[t.name]) <= 31 ? a(d.getDate()) : a(d);
@@ -523,7 +578,7 @@ const d3 = (t, o) => {
523
578
  "& .MuiPickersArrowSwitcher-button": {
524
579
  color: "primary.lighter",
525
580
  "&:hover": {
526
- backgroundColor: (d) => y1(d.palette.primary.light, 0.1)
581
+ backgroundColor: (d) => M1(d.palette.primary.light, 0.1)
527
582
  }
528
583
  }
529
584
  },
@@ -541,18 +596,18 @@ const d3 = (t, o) => {
541
596
  inputProps: {
542
597
  "aria-label": t.placeholder
543
598
  },
544
- onChange: b,
599
+ onChange: y,
545
600
  placeholder: t.placeholder
546
601
  }
547
602
  );
548
603
  }
549
- }, M = () => {
604
+ }, V = () => {
550
605
  c[t.name] !== u && i({
551
606
  ...c,
552
607
  [t.name]: u
553
608
  }), H();
554
- }, b = (d) => {
555
- a(d.target.value), t.validation && m(t.validation(d.target.value));
609
+ }, y = (d) => {
610
+ a(d.target.value), t.validation && p(t.validation(d.target.value));
556
611
  };
557
612
  return /* @__PURE__ */ e(
558
613
  Q,
@@ -564,7 +619,7 @@ const d3 = (t, o) => {
564
619
  disablePrimaryButton: !!r || !_,
565
620
  isOpen: o,
566
621
  onClose: H,
567
- onPrimaryAction: M,
622
+ onPrimaryAction: V,
568
623
  primaryText: l.save,
569
624
  sx: {
570
625
  "& .MuiButton-root:focus-visible, & .MuiButton-root:focus": {
@@ -573,41 +628,73 @@ const d3 = (t, o) => {
573
628
  outlineOffset: "2px"
574
629
  }
575
630
  },
576
- children: v()
631
+ children: b()
577
632
  }
578
633
  );
579
- }, H3 = V(g3), A3 = () => {
580
- const t = window.app?.config, { onEvent: o } = I(), { selectedAccount: n } = S(), { accounts: i } = y(), c = D1(n, i), l = n.member_is_managed_by_user || !n.member_is_managed_by_user && t.enable_renaming_home_accounts, [u, a] = h.useState(!1), [r, m] = h.useState(c[0]), _ = c.filter(
634
+ }, H3 = A(g3), v3 = () => {
635
+ const t = window.app?.config, { onEvent: o } = D(), { selectedAccount: n } = w(), { accounts: i } = M(), c = D1(n, i), l = n.member_is_managed_by_user || !n.member_is_managed_by_user && t.enable_renaming_home_accounts, [u, a] = h.useState(!1), [r, p] = h.useState(c[0]), _ = c.filter(
581
636
  (s) => l || n[s.name] || n[s.name] === 0
582
637
  );
583
- return /* @__PURE__ */ C(x, { children: [
638
+ return /* @__PURE__ */ C(R, { children: [
584
639
  _.map((s) => {
585
- const H = n[s.name] || n[s.name] === 0, v = _.indexOf(s) === _.length - 1, M = /* @__PURE__ */ e(
586
- O,
640
+ const H = n[s.name] || n[s.name] === 0, b = _.indexOf(s) === _.length - 1, V = /* @__PURE__ */ e(
641
+ Z,
587
642
  {
588
643
  disableTypography: !0,
589
644
  primary: /* @__PURE__ */ e(g, { sx: { fontSize: 11 }, children: s.label }),
590
645
  secondary: /* @__PURE__ */ e(g, { bold: !0, sx: { fontSize: 15 }, children: H ? s.valueFormatter(n[s.name]) : s.placeholder })
591
646
  }
592
647
  );
593
- return /* @__PURE__ */ e(h.Fragment, { children: l ? /* @__PURE__ */ C(x, { children: [
594
- /* @__PURE__ */ e(D, { sx: { backgroundColor: "background.paper", px: 0 }, children: /* @__PURE__ */ C(
595
- $,
596
- {
597
- onClick: () => {
598
- m(s), a(!0), s?.event && o(s.event, { account_guid: n.guid });
599
- },
600
- children: [
601
- M,
602
- /* @__PURE__ */ e(F, { name: "chevron_right" })
603
- ]
604
- }
605
- ) }),
606
- /* @__PURE__ */ e(w, { sx: { ml: v ? 0 : 24 } })
607
- ] }) : H && /* @__PURE__ */ C(x, { children: [
608
- /* @__PURE__ */ e(D, { sx: { backgroundColor: "background.paper", px: 24 }, children: M }),
609
- /* @__PURE__ */ e(w, { sx: { ml: v ? 0 : 24 } })
610
- ] }) }, s.name);
648
+ return /* @__PURE__ */ e(h.Fragment, { children: l ? /* @__PURE__ */ e(
649
+ T,
650
+ {
651
+ sx: {
652
+ backgroundColor: "background.paper",
653
+ px: 0,
654
+ position: "relative",
655
+ "&::after": {
656
+ content: '""',
657
+ position: "absolute",
658
+ bottom: 0,
659
+ right: 0,
660
+ left: b ? 0 : 24,
661
+ borderBottom: "1px solid",
662
+ borderColor: "divider"
663
+ }
664
+ },
665
+ children: /* @__PURE__ */ C(
666
+ $,
667
+ {
668
+ onClick: () => {
669
+ p(s), a(!0), s?.event && o(s.event, { account_guid: n.guid });
670
+ },
671
+ children: [
672
+ V,
673
+ /* @__PURE__ */ e(N, { name: "chevron_right" })
674
+ ]
675
+ }
676
+ )
677
+ }
678
+ ) : H && /* @__PURE__ */ e(
679
+ T,
680
+ {
681
+ sx: {
682
+ backgroundColor: "background.paper",
683
+ px: 24,
684
+ position: "relative",
685
+ "&::after": {
686
+ content: '""',
687
+ position: "absolute",
688
+ bottom: 0,
689
+ right: 0,
690
+ left: b ? 0 : 24,
691
+ borderBottom: "1px solid",
692
+ borderColor: "divider"
693
+ }
694
+ },
695
+ children: V
696
+ }
697
+ ) }, s.name);
611
698
  }),
612
699
  u && r && /* @__PURE__ */ e(
613
700
  H3,
@@ -618,20 +705,20 @@ const d3 = (t, o) => {
618
705
  }
619
706
  )
620
707
  ] });
621
- }, V3 = V(A3), v3 = () => {
622
- const { onEvent: t } = I();
623
- return h.useEffect(() => t(R.ACCOUNT_DETAILS_VIEW), []), /* @__PURE__ */ C(E, { children: [
624
- /* @__PURE__ */ e(V3, {}),
708
+ }, A3 = A(v3), b3 = () => {
709
+ const { onEvent: t } = D();
710
+ return h.useEffect(() => t(x.ACCOUNT_DETAILS_VIEW), []), /* @__PURE__ */ C(O, { children: [
711
+ /* @__PURE__ */ e(A3, {}),
625
712
  /* @__PURE__ */ e(f3, {}),
626
713
  /* @__PURE__ */ e(_3, {})
627
714
  ] });
628
- }, M3 = V(v3), y3 = ({ setTabValue: t }) => {
629
- const [o, n] = h.useState(!1), { selectedMember: i } = S(), { accounts: c, connect: l } = y(), u = i.connection_status && p1.includes(i.connection_status);
715
+ }, V3 = A(b3), M3 = ({ setTabValue: t }) => {
716
+ const [o, n] = h.useState(!1), { selectedMember: i } = w(), { accounts: c, connect: l } = M(), u = i.connection_status && p1.includes(i.connection_status);
630
717
  if (h.useEffect(() => {
631
718
  u && t(1);
632
719
  }, [u]), !u) return;
633
- const a = V1(i, l);
634
- return /* @__PURE__ */ C(x, { children: [
720
+ const a = A1(i, l);
721
+ return /* @__PURE__ */ C(R, { children: [
635
722
  /* @__PURE__ */ e(
636
723
  n3,
637
724
  {
@@ -682,12 +769,12 @@ const d3 = (t, o) => {
682
769
  }
683
770
  )
684
771
  ] });
685
- }, x3 = V(y3), b3 = () => {
686
- const [t, o] = h.useState(""), { onEvent: n } = I(), { selectedAccount: i } = S(), { accounts: c } = y(), { isTransactionDataLoaded: l, loadTransactionData: u, setFilter: a, sortedTransactions: r } = m1();
772
+ }, y3 = A(M3), x3 = () => {
773
+ const [t, o] = h.useState(""), { onEvent: n } = D(), { selectedAccount: i } = w(), { accounts: c } = M(), { isTransactionDataLoaded: l, loadTransactionData: u, setFilter: a, sortedTransactions: r } = m1();
687
774
  h.useEffect(() => {
688
775
  l || u().finally();
689
776
  }, []);
690
- const m = h.useMemo(
777
+ const p = h.useMemo(
691
778
  () => r.find((_) => _.guid === t),
692
779
  [t, r]
693
780
  );
@@ -696,23 +783,23 @@ const d3 = (t, o) => {
696
783
  dateRange: { start: o3(i3(), 90), end: c3() },
697
784
  accounts: [i.guid]
698
785
  });
699
- }, [i]), h.useEffect(() => n(R.ACCOUNT_DETAILS_VIEW_TRANSACTIONS), []), /* @__PURE__ */ C(x, { children: [
786
+ }, [i]), h.useEffect(() => n(x.ACCOUNT_DETAILS_VIEW_TRANSACTIONS), []), /* @__PURE__ */ C(R, { children: [
700
787
  /* @__PURE__ */ e(a3, { onClick: o }),
701
- m && /* @__PURE__ */ e(
788
+ p && /* @__PURE__ */ e(
702
789
  t1,
703
790
  {
704
791
  ariaLabelClose: c.close_drawer,
705
792
  isOpen: !!t,
706
793
  onClose: () => o(""),
707
794
  title: c.transaction_drawer_title,
708
- children: /* @__PURE__ */ e(s3, { transaction: m })
795
+ children: /* @__PURE__ */ e(s3, { transaction: p })
709
796
  }
710
797
  )
711
798
  ] });
712
- }, w3 = V(b3), R3 = () => {
713
- const [t, o] = h.useState(0), { accounts: n } = y();
714
- return /* @__PURE__ */ C(x, { children: [
715
- /* @__PURE__ */ e(x3, { setTabValue: o }),
799
+ }, w3 = A(x3), R3 = () => {
800
+ const [t, o] = h.useState(0), { accounts: n } = M();
801
+ return /* @__PURE__ */ C(R, { children: [
802
+ /* @__PURE__ */ e(y3, { setTabValue: o }),
716
803
  /* @__PURE__ */ C(
717
804
  I1,
718
805
  {
@@ -743,62 +830,62 @@ const d3 = (t, o) => {
743
830
  }
744
831
  ),
745
832
  /* @__PURE__ */ e(r1, { index: 0, name: "transaction-details", value: t, children: /* @__PURE__ */ e(w3, {}) }),
746
- /* @__PURE__ */ e(r1, { index: 1, name: "account-details", value: t, children: /* @__PURE__ */ e(M3, {}) })
833
+ /* @__PURE__ */ e(r1, { index: 1, name: "account-details", value: t, children: /* @__PURE__ */ e(V3, {}) })
747
834
  ] });
748
- }, S3 = V(R3), T3 = () => {
749
- const [t, o] = h.useState(""), { accounts: n } = y(), { allSelectedAccounts: i } = G(), { setSelectedAccount: c, setSelectedMember: l } = S(), { members: u } = k(), { onEvent: a } = I(), r = [...new Set(i.map((d) => d.account_type))], m = i.find((d) => t === d.guid), _ = h.useMemo(
835
+ }, S3 = A(R3), T3 = () => {
836
+ const [t, o] = h.useState(""), { accounts: n } = M(), { allSelectedAccounts: i } = G(), { setSelectedAccount: c, setSelectedMember: l } = w(), { members: u } = E(), { onEvent: a } = D(), r = [...new Set(i.map((d) => d.account_type))], p = i.find((d) => t === d.guid), _ = h.useMemo(
750
837
  () => i.filter((d) => d.is_hidden),
751
838
  [i]
752
839
  ), s = h.useMemo(
753
840
  () => i.filter((d) => d.is_closed),
754
841
  [i]
755
842
  ), H = _.reduce(
756
- (d, p) => (p.available_balance || p.balance || 0) + d,
843
+ (d, m) => (m.available_balance || m.balance || 0) + d,
757
844
  0
758
- ), v = k1(s, n);
845
+ ), b = k1(s, n);
759
846
  h.useEffect(() => {
760
- if (m) {
761
- c(m);
762
- const d = u.find((p) => p.guid === m?.member_guid) || {};
847
+ if (p) {
848
+ c(p);
849
+ const d = u.find((m) => m.guid === p?.member_guid) || {};
763
850
  d && l(d);
764
851
  }
765
- }, [m, t]);
766
- const M = (d) => {
767
- o(d.guid), a(R.ACCOUNTS_CLICK_ACCOUNT, {
852
+ }, [p, t]);
853
+ const V = (d) => {
854
+ o(d.guid), a(x.ACCOUNTS_CLICK_ACCOUNT, {
768
855
  account_guid: d.guid,
769
856
  account_type: d.account_type
770
857
  });
771
- }, b = (d) => {
772
- const p = d === "hidden" ? _ : s, Z = d === "hidden" ? H : v, A = d === "hidden" ? n.account_hidden : n.account_closed;
858
+ }, y = (d) => {
859
+ const m = d === "hidden" ? _ : s, k = d === "hidden" ? H : b, v = d === "hidden" ? n.account_hidden : n.account_closed;
773
860
  return /* @__PURE__ */ e(c1, { children: /* @__PURE__ */ e(
774
- E,
861
+ O,
775
862
  {
776
- "aria-label": A,
777
- subheader: /* @__PURE__ */ e(U, { component: "h2", sx: { backgroundColor: "transparent", px: 24 }, children: /* @__PURE__ */ C(
863
+ "aria-label": v,
864
+ subheader: /* @__PURE__ */ e(B, { component: "h2", sx: { backgroundColor: "transparent", px: 24 }, children: /* @__PURE__ */ C(
778
865
  P,
779
866
  {
780
867
  component: "span",
781
868
  direction: "row",
782
869
  sx: { justifyContent: "space-between", color: "grey.700" },
783
870
  children: [
784
- /* @__PURE__ */ e(g, { bold: !0, variant: "body1", children: A }),
785
- /* @__PURE__ */ e(g, { bold: !0, variant: "body1", children: d1(Z, "0,0.00") })
871
+ /* @__PURE__ */ e(g, { bold: !0, variant: "body1", children: v }),
872
+ /* @__PURE__ */ e(g, { bold: !0, variant: "body1", children: d1(k, "0,0.00") })
786
873
  ]
787
874
  }
788
875
  ) }),
789
- children: /* @__PURE__ */ e(P, { children: p.map((T, W, v1) => {
790
- const K = W === v1.length - 1;
876
+ children: /* @__PURE__ */ e(P, { children: m.map((S, F, b1) => {
877
+ const K = F === b1.length - 1;
791
878
  return /* @__PURE__ */ C(h.Fragment, { children: [
792
879
  /* @__PURE__ */ e(
793
- B,
880
+ U,
794
881
  {
795
- account: T,
796
- onRowClick: () => M(T),
882
+ account: S,
883
+ onRowClick: () => V(S),
797
884
  shouldShowConnectionStatus: !0
798
885
  }
799
886
  ),
800
887
  d === "hidden" ? /* @__PURE__ */ e(
801
- w,
888
+ W,
802
889
  {
803
890
  sx: {
804
891
  mb: K ? 24 : 4,
@@ -806,7 +893,7 @@ const d3 = (t, o) => {
806
893
  }
807
894
  }
808
895
  ) : !K && /* @__PURE__ */ e(
809
- w,
896
+ W,
810
897
  {
811
898
  sx: {
812
899
  mb: 4,
@@ -814,24 +901,24 @@ const d3 = (t, o) => {
814
901
  }
815
902
  }
816
903
  )
817
- ] }, T.guid);
904
+ ] }, S.guid);
818
905
  }) })
819
906
  }
820
907
  ) });
821
908
  };
822
909
  return /* @__PURE__ */ C(c1, { sx: { pt: 24 }, children: [
823
910
  r.map((d) => {
824
- const p = i.filter(
825
- (A) => A.account_type === d && !A.is_closed && !A.is_hidden
826
- ), Z = p.reduce(
827
- (A, T) => (T.balance || 0) + A,
911
+ const m = i.filter(
912
+ (v) => v.account_type === d && !v.is_closed && !v.is_hidden
913
+ ), k = m.reduce(
914
+ (v, S) => (S.balance || 0) + v,
828
915
  0
829
916
  );
830
- return p.length === 0 ? null : /* @__PURE__ */ e(
831
- E,
917
+ return m.length === 0 ? null : /* @__PURE__ */ e(
918
+ O,
832
919
  {
833
- "aria-label": n.account_type_accounts[p[0]?.account_type],
834
- subheader: /* @__PURE__ */ e(U, { component: "h2", sx: { backgroundColor: "transparent", px: 24 }, children: /* @__PURE__ */ C(
920
+ "aria-label": n.account_type_accounts[m[0]?.account_type],
921
+ subheader: /* @__PURE__ */ e(B, { component: "h2", sx: { backgroundColor: "transparent", px: 24 }, children: /* @__PURE__ */ C(
835
922
  P,
836
923
  {
837
924
  component: "span",
@@ -839,38 +926,38 @@ const d3 = (t, o) => {
839
926
  sx: { display: "flex", justifyContent: "space-between" },
840
927
  children: [
841
928
  /* @__PURE__ */ e(g, { bold: !0, variant: "body1", children: n.account_types[d] }),
842
- /* @__PURE__ */ e(g, { bold: !0, variant: "body1", children: d1(Z, "0,0.00") })
929
+ /* @__PURE__ */ e(g, { bold: !0, variant: "body1", children: d1(k, "0,0.00") })
843
930
  ]
844
931
  }
845
932
  ) }),
846
- children: /* @__PURE__ */ e(P, { children: p.map((A) => {
847
- const T = i.indexOf(A) === i.length - 1, W = p.indexOf(A) === p.length - 1;
933
+ children: /* @__PURE__ */ e(P, { children: m.map((v) => {
934
+ const S = i.indexOf(v) === i.length - 1, F = m.indexOf(v) === m.length - 1;
848
935
  return /* @__PURE__ */ C(h.Fragment, { children: [
849
936
  /* @__PURE__ */ e(
850
- B,
937
+ U,
851
938
  {
852
- account: A,
853
- onRowClick: () => M(A),
939
+ account: v,
940
+ onRowClick: () => V(v),
854
941
  shouldShowConnectionStatus: !0
855
942
  }
856
943
  ),
857
- (!T || s.length > 0 || _.length > 0) && /* @__PURE__ */ e(
858
- w,
944
+ (!S || s.length > 0 || _.length > 0) && /* @__PURE__ */ e(
945
+ W,
859
946
  {
860
947
  sx: {
861
- mb: W ? 24 : 4,
862
- ml: W ? 24 : 68
948
+ mb: F ? 24 : 4,
949
+ ml: F ? 24 : 68
863
950
  }
864
951
  }
865
952
  )
866
- ] }, A.guid);
953
+ ] }, v.guid);
867
954
  }) })
868
955
  },
869
956
  d
870
957
  );
871
958
  }),
872
- _.length > 0 && b("hidden"),
873
- s.length > 0 && b("closed"),
959
+ _.length > 0 && y("hidden"),
960
+ s.length > 0 && y("closed"),
874
961
  /* @__PURE__ */ C(
875
962
  t1,
876
963
  {
@@ -879,45 +966,45 @@ const d3 = (t, o) => {
879
966
  onClose: () => o(""),
880
967
  title: n.account_details,
881
968
  children: [
882
- /* @__PURE__ */ e(x1, { ChartComponent: h3 }),
969
+ /* @__PURE__ */ e(y1, { ChartComponent: h3 }),
883
970
  /* @__PURE__ */ e(S3, {})
884
971
  ]
885
972
  }
886
973
  )
887
974
  ] });
888
- }, E3 = V(T3), D3 = ({ onBackClick: t, sx: o = {} }) => {
889
- const [n, i] = h.useState(!1), [c, l] = h.useState(!1), { config: u } = E1(), { isAccountDataLoaded: a, loadAccountData: r } = k(), { accounts: m, connect: _ } = y(), { isInitialized: s, selectedAccountGuids: H } = G(), { isDesktop: v } = H1(), { onEvent: M } = I();
975
+ }, E3 = A(T3), D3 = ({ onBackClick: t, sx: o = {} }) => {
976
+ const [n, i] = h.useState(!1), [c, l] = h.useState(!1), { config: u } = E1(), { isAccountDataLoaded: a, loadAccountData: r } = E(), { accounts: p, connect: _ } = M(), { isInitialized: s, selectedAccountGuids: H } = G(), { isDesktop: b } = H1(), { onEvent: V } = D();
890
977
  n1({
891
978
  widgetName: "AccountsWidget",
892
979
  isLoaded: a
893
980
  }), h.useEffect(() => {
894
981
  a || r().finally();
895
982
  }, []);
896
- const b = () => {
897
- i(!0), M(R.ACCOUNTS_CLICK_CONNECT);
983
+ const y = () => {
984
+ i(!0), V(x.ACCOUNTS_CLICK_CONNECT);
898
985
  }, d = () => {
899
- l(!0), M(R.ACCOUNTS_CLICK_CONNECT);
986
+ l(!0), V(x.ACCOUNTS_CLICK_CONNECT);
900
987
  };
901
988
  return s ? /* @__PURE__ */ C(
902
989
  r3,
903
990
  {
904
991
  actions: u.show_connections_widget_in_master ? [
905
- { iconName: "add", label: m.add, onClick: b },
992
+ { iconName: "add", label: p.add, onClick: y },
906
993
  {
907
994
  iconName: "credit_card_gear",
908
- label: m.manage,
995
+ label: p.manage,
909
996
  onClick: d
910
997
  }
911
998
  ] : [],
912
- onAccountsFilterClick: () => M(R.ACCOUNTS_CLICK_FILTER),
999
+ onAccountsFilterClick: () => V(x.ACCOUNTS_CLICK_FILTER),
913
1000
  onBackClick: t,
914
1001
  sx: o,
915
- title: m.title,
1002
+ title: p.title,
916
1003
  children: [
917
- a ? /* @__PURE__ */ C(e1, { sx: { px: v ? 24 : 12 }, children: [
918
- H.length < 1 && /* @__PURE__ */ e(g, { display: "flex", justifyContent: "center", my: 24, children: m.no_accounts }),
1004
+ a ? /* @__PURE__ */ C(e1, { sx: { px: b ? 24 : 12 }, children: [
1005
+ H.length < 1 && /* @__PURE__ */ e(g, { display: "flex", justifyContent: "center", my: 24, children: p.no_accounts }),
919
1006
  /* @__PURE__ */ e(E3, {})
920
- ] }) : /* @__PURE__ */ e(h1, { sx: { px: v ? 48 : 24, pt: 24 }, variant: "list" }),
1007
+ ] }) : /* @__PURE__ */ e(h1, { sx: { px: b ? 48 : 24, pt: 24 }, variant: "list" }),
921
1008
  /* @__PURE__ */ e(
922
1009
  z,
923
1010
  {
@@ -931,13 +1018,13 @@ const d3 = (t, o) => {
931
1018
  {
932
1019
  onClose: () => l(!1),
933
1020
  showConnectionsWidget: c,
934
- title: m.manage_connections
1021
+ title: p.manage_connections
935
1022
  }
936
1023
  )
937
1024
  ]
938
1025
  }
939
1026
  ) : /* @__PURE__ */ e(o1, {});
940
- }, Q2 = V(D3);
1027
+ }, Q2 = A(D3);
941
1028
  function k3(t) {
942
1029
  const { heldAccounts: o, externalAccounts: n } = t.reduce(
943
1030
  (i, c) => (c.member_is_managed_by_user ? i.externalAccounts.push(c) : i.heldAccounts.push(c), i),
@@ -953,16 +1040,16 @@ function I3(t, o) {
953
1040
  return c.length < o && c.push(...i.slice(0, o - c.length)), c;
954
1041
  }
955
1042
  const Z3 = {
956
- [N.CHECKING]: 1,
957
- [N.SAVINGS]: 2,
958
- [N.CREDIT_CARD]: 3
1043
+ [I.CHECKING]: 1,
1044
+ [I.SAVINGS]: 2,
1045
+ [I.CREDIT_CARD]: 3
959
1046
  }, u1 = (t) => Z3[t] ?? t + 100, C1 = (t) => t.sort((o, n) => {
960
1047
  const i = u1(o.account_type), c = u1(n.account_type), l = i - c;
961
1048
  if (l !== 0) return l;
962
1049
  const u = o.name ?? o.feed_name ?? "", a = n.name ?? n.feed_name ?? "";
963
1050
  return u.localeCompare(a);
964
1051
  }), N3 = ({ onPrimaryCtaClick: t, sx: o }) => {
965
- const { isAccountDataLoaded: n, loadAccountData: i } = k(), { accounts: c } = y(), { isInitialized: l, selectedAccounts: u } = G(), { isDesktop: a } = H1();
1052
+ const { isAccountDataLoaded: n, loadAccountData: i } = E(), { accounts: c } = M(), { isInitialized: l, selectedAccounts: u } = G(), { isDesktop: a } = H1();
966
1053
  n1({
967
1054
  widgetName: "AccountsMiniWidget",
968
1055
  isLoaded: l
@@ -974,33 +1061,33 @@ const Z3 = {
974
1061
  [u, a]
975
1062
  );
976
1063
  return l ? /* @__PURE__ */ e(
977
- A1,
1064
+ v1,
978
1065
  {
979
1066
  className: "mx-exp-accounts-miniwidget",
980
1067
  onPrimaryCtaClick: t,
981
1068
  primaryCtaLabel: c.primary_cta,
982
1069
  sx: o,
983
1070
  title: c.mini_title,
984
- children: n ? /* @__PURE__ */ C(E, { children: [
985
- u.length === 0 && /* @__PURE__ */ e(D, { sx: { justifyContent: "center" }, children: c.no_accounts }),
986
- r.map((m, _) => {
987
- const s = r.indexOf(m) === r.length - 1;
1071
+ children: n ? /* @__PURE__ */ C(O, { children: [
1072
+ u.length === 0 && /* @__PURE__ */ e(T, { sx: { justifyContent: "center" }, children: c.no_accounts }),
1073
+ r.map((p, _) => {
1074
+ const s = r.indexOf(p) === r.length - 1;
988
1075
  return /* @__PURE__ */ C(h.Fragment, { children: [
989
1076
  /* @__PURE__ */ e(
990
- B,
1077
+ U,
991
1078
  {
992
- account: m,
1079
+ account: p,
993
1080
  listItemProps: { sx: { px: 24 } },
994
1081
  shouldShowConnectionStatus: !0
995
1082
  }
996
1083
  ),
997
- !s && /* @__PURE__ */ e(w, { "aria-hidden": "true", variant: "inset" })
1084
+ !s && /* @__PURE__ */ e(W, { "aria-hidden": "true", variant: "inset" })
998
1085
  ] }, `account-item${_}`);
999
1086
  })
1000
1087
  ] }) : /* @__PURE__ */ e(h1, { sx: { px: 12, py: 8 }, variant: "list" })
1001
1088
  }
1002
1089
  ) : /* @__PURE__ */ e(o1, {});
1003
- }, e4 = V(N3), O3 = () => /* @__PURE__ */ C(
1090
+ }, e4 = A(N3), O3 = () => /* @__PURE__ */ C(
1004
1091
  "svg",
1005
1092
  {
1006
1093
  fill: "none",
@@ -1440,7 +1527,7 @@ const Z3 = {
1440
1527
  ]
1441
1528
  }
1442
1529
  ), F3 = () => {
1443
- const { connect: t } = y();
1530
+ const { connect: t } = M();
1444
1531
  return /* @__PURE__ */ C(e1, { alignItems: "center", direction: "column", m: 24, children: [
1445
1532
  /* @__PURE__ */ e(O3, {}),
1446
1533
  /* @__PURE__ */ e(
@@ -1456,19 +1543,19 @@ const Z3 = {
1456
1543
  }
1457
1544
  )
1458
1545
  ] });
1459
- }, W3 = V(F3), P3 = ({
1546
+ }, P3 = A(F3), W3 = ({
1460
1547
  onPrimaryCtaClick: t = () => {
1461
1548
  },
1462
1549
  sx: o
1463
1550
  }) => {
1464
- const { isCopyLoaded: n } = G(), { connect: i } = y(), [c, l] = h.useState(!1), u = () => {
1551
+ const { isCopyLoaded: n } = G(), { connect: i } = M(), [c, l] = h.useState(!1), u = () => {
1465
1552
  l(!0), t();
1466
1553
  };
1467
1554
  return n1({
1468
1555
  widgetName: "ConnectMiniWidget",
1469
1556
  isLoaded: n
1470
1557
  }), n ? /* @__PURE__ */ C(
1471
- A1,
1558
+ v1,
1472
1559
  {
1473
1560
  className: "mx-exp-connect-miniwidget",
1474
1561
  onPrimaryCtaClick: u,
@@ -1476,7 +1563,7 @@ const Z3 = {
1476
1563
  sx: o,
1477
1564
  title: i.mini_title,
1478
1565
  children: [
1479
- /* @__PURE__ */ e(W3, {}),
1566
+ /* @__PURE__ */ e(P3, {}),
1480
1567
  c && /* @__PURE__ */ e(
1481
1568
  z,
1482
1569
  {
@@ -1488,11 +1575,11 @@ const Z3 = {
1488
1575
  ]
1489
1576
  }
1490
1577
  ) : /* @__PURE__ */ e(o1, {});
1491
- }, t4 = V(P3);
1578
+ }, t4 = A(W3);
1492
1579
  export {
1493
1580
  l4 as AccountApi,
1494
1581
  S3 as AccountDetailsContent,
1495
- x1 as AccountDetailsHeader,
1582
+ y1 as AccountDetailsHeader,
1496
1583
  d4 as AccountStore,
1497
1584
  e4 as AccountsMiniWidget,
1498
1585
  Q2 as AccountsWidget,
@@ -1501,6 +1588,6 @@ export {
1501
1588
  a4 as MemberConnectionStatus,
1502
1589
  i4 as getAccountBalanceDetails,
1503
1590
  D1 as getAccountDetailFields,
1504
- S as useAccountUiStore,
1591
+ w as useAccountUiStore,
1505
1592
  m3 as useGetMergeableAccounts
1506
1593
  };