@mx-cartographer/experiences 7.11.9 → 7.11.10

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/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## [7.11.10] - 03-05-2026
2
+
3
+ - **FIXED** - Account Actions | toggle a11y
4
+
1
5
  ## [7.11.9] - 03-04-2026
2
6
 
3
7
  - **FIXED** - `Debts` return to the top of the page when scrolling quickly
@@ -1,4 +1,5 @@
1
1
  interface AccountActionsRowProps {
2
+ ariaPressed?: boolean;
2
3
  onClick: () => void;
3
4
  isLast?: boolean;
4
5
  primaryText: string;
@@ -13,15 +13,15 @@ import { useTheme as M1, alpha as y1 } from "@mui/material/styles";
13
13
  import { u as R, A as x1 } from "../AccountDetailsHeader-BCi1WwkM.mjs";
14
14
  import { L as w1 } from "../LineChart-Pu3pKqtQ.mjs";
15
15
  import { g as b1, a as S1, b as R1 } from "../SpendingData-C3bN-37j.mjs";
16
- import { m as T1, u as y, d as k, g as Z, h as m1, b as G, a as E1 } from "../hooks-zu7yblbi.mjs";
16
+ import { m as T1, u as y, d as k, g as I, h as m1, b as G, a as E1 } from "../hooks-zu7yblbi.mjs";
17
17
  import { A as N, 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-C-sby5mF.mjs";
20
20
  import { g as i2 } from "../AccountFields-C-sby5mF.mjs";
21
21
  import { A as U } from "../AccountListItem-Ceuh5WKe.mjs";
22
22
  import a1 from "@mui/material/Tab";
23
- import Z1 from "@mui/material/Tabs";
24
- import I1 from "@mui/material/Switch";
23
+ import I1 from "@mui/material/Tabs";
24
+ import Z1 from "@mui/material/Switch";
25
25
  import D from "@mui/material/ListItem";
26
26
  import $ from "@mui/material/ListItemButton";
27
27
  import O from "@mui/material/ListItemText";
@@ -73,15 +73,15 @@ const d3 = (t, o) => {
73
73
  }, u3 = (t, o, n) => {
74
74
  const [i, c] = t, l = i, u = c ?? i, a = [];
75
75
  if (l && u && _1.includes(o)) {
76
- const d = l[l.length - 1].y;
77
- a.push({ label: n.income_label, amount: d });
76
+ const r = l[l.length - 1].y;
77
+ a.push({ label: n.income_label, amount: r });
78
78
  } else if (L1.includes(o)) {
79
- const d = l[l.length - 1].y;
80
- a.push({ label: n.payments_label, amount: d });
79
+ const r = l[l.length - 1].y;
80
+ a.push({ label: n.payments_label, amount: r });
81
81
  }
82
82
  if (u && f1.includes(o)) {
83
- const d = u[u.length - 1].y;
84
- a.push({ label: n.spending_label, amount: d });
83
+ const r = u[u.length - 1].y;
84
+ a.push({ label: n.spending_label, amount: r });
85
85
  }
86
86
  return a;
87
87
  }, C3 = () => {
@@ -106,30 +106,31 @@ const d3 = (t, o) => {
106
106
  }
107
107
  ) });
108
108
  }, h3 = V(C3), J = ({
109
- children: t,
110
- isLast: o = !1,
111
- onClick: n,
112
- primaryText: i,
113
- secondaryText: c
109
+ ariaPressed: t,
110
+ children: o,
111
+ isLast: n = !1,
112
+ onClick: i,
113
+ primaryText: c,
114
+ secondaryText: l
114
115
  }) => /* @__PURE__ */ C(x, { children: [
115
- /* @__PURE__ */ e(D, { sx: { backgroundColor: "background.paper" }, children: /* @__PURE__ */ C($, { onClick: n, children: [
116
- /* @__PURE__ */ e(O, { primary: i, secondary: c }),
117
- t
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
118
119
  ] }) }),
119
- /* @__PURE__ */ e(b, { sx: { ml: o ? 0 : 24 } })
120
+ /* @__PURE__ */ e(b, { sx: { ml: n ? 0 : 24 } })
120
121
  ] }), m3 = () => {
121
122
  const { accounts: t } = k(), { selectedAccount: o, selectedMember: n } = R();
122
123
  return t.filter(
123
124
  (i) => i.member_guid === n.guid && n.successfully_aggregated_at && i.guid !== o.guid
124
125
  );
125
126
  }, p3 = () => {
126
- const [t, o] = h.useState(!1), [n, i] = h.useState(!1), [c, l] = h.useState(!1), [u, a] = h.useState({}), { selectedAccount: d } = R(), { mergeAccounts: m, updateAccount: _ } = k(), { accounts: s } = y(), H = m3(), { onEvent: v } = Z(), { modifyTransactionByAccountGuid: M } = m1(), w = async (p) => {
127
+ const [t, o] = h.useState(!1), [n, i] = h.useState(!1), [c, l] = h.useState(!1), [u, a] = h.useState({}), { selectedAccount: r } = R(), { mergeAccounts: m, updateAccount: _ } = k(), { accounts: s } = y(), H = m3(), { onEvent: v } = I(), { modifyTransactionByAccountGuid: M } = m1(), w = async (p) => {
127
128
  await _({
128
- ...d,
129
+ ...r,
129
130
  ...p
130
- }), "is_closed" in p && p.is_closed !== d.is_closed && M(d.guid, { accountIsClosed: p.is_closed });
131
- }, r = () => {
132
- m([d.guid, u.guid]).finally(
131
+ }), "is_closed" in p && p.is_closed !== r.is_closed && M(r.guid, { accountIsClosed: p.is_closed });
132
+ }, d = () => {
133
+ m([r.guid, u.guid]).finally(
133
134
  () => i(!1)
134
135
  );
135
136
  };
@@ -138,12 +139,13 @@ const d3 = (t, o) => {
138
139
  /* @__PURE__ */ e(
139
140
  J,
140
141
  {
142
+ ariaPressed: r.is_hidden,
141
143
  onClick: () => {
142
- w({ is_hidden: !d.is_hidden }), v(S.ACCOUNT_DETAILS_CLICK_HIDE, { account_guid: d.guid });
144
+ w({ is_hidden: !r.is_hidden }), v(S.ACCOUNT_DETAILS_CLICK_HIDE, { account_guid: r.guid });
143
145
  },
144
- primaryText: d.is_hidden ? s.unhide_account : s.hide_Account,
145
- secondaryText: d.is_hidden ? s.include_this_account : s.exclude_this_account,
146
- children: /* @__PURE__ */ e(I1, { checked: d.is_hidden })
146
+ primaryText: r.is_hidden ? s.unhide_account : s.hide_Account,
147
+ secondaryText: r.is_hidden ? s.include_this_account : s.exclude_this_account,
148
+ children: /* @__PURE__ */ e(Z1, { "aria-hidden": !0, checked: r.is_hidden, tabIndex: -1 })
147
149
  }
148
150
  ),
149
151
  /* @__PURE__ */ e(
@@ -151,11 +153,11 @@ const d3 = (t, o) => {
151
153
  {
152
154
  onClick: () => {
153
155
  o(!0), v(S.ACCOUNT_DETAILS_CLICK_MARK_CLOSED, {
154
- account_guid: d.guid
156
+ account_guid: r.guid
155
157
  });
156
158
  },
157
- primaryText: d.is_closed ? s.mark_as_open : s.mark_as_closed,
158
- secondaryText: d.is_closed ? s.this_will_set_the_closed_account : s.this_will_set_the_account_balance_to_0,
159
+ primaryText: r.is_closed ? s.mark_as_open : s.mark_as_closed,
160
+ secondaryText: r.is_closed ? s.this_will_set_the_closed_account : s.this_will_set_the_account_balance_to_0,
159
161
  children: /* @__PURE__ */ e(F, { name: "chevron_right" })
160
162
  }
161
163
  ),
@@ -165,7 +167,7 @@ const d3 = (t, o) => {
165
167
  isLast: !0,
166
168
  onClick: () => {
167
169
  i(!0), v(S.ACCOUNT_DETAILS_CLICK_MARK_DUPLICATE, {
168
- account_guid: d.guid
170
+ account_guid: r.guid
169
171
  });
170
172
  },
171
173
  primaryText: s.mark_as_duplicate,
@@ -178,16 +180,16 @@ const d3 = (t, o) => {
178
180
  {
179
181
  copy: {
180
182
  close_aria: s.close_modal,
181
- title: d.is_closed ? s.confirm_mark_as_open : s.confirm_mark_closed
183
+ title: r.is_closed ? s.confirm_mark_as_open : s.confirm_mark_closed
182
184
  },
183
185
  isOpen: t,
184
186
  onClose: () => {
185
187
  o(!1);
186
188
  },
187
- onPrimaryAction: () => w({ is_closed: !d.is_closed }),
189
+ onPrimaryAction: () => w({ is_closed: !r.is_closed }),
188
190
  children: /* @__PURE__ */ e(g, { truncate: !1, children: f(
189
- d.is_closed ? s.this_will_resume_updating_the_balance : s.this_will_set_the_balance_of_your_account,
190
- d.name
191
+ r.is_closed ? s.this_will_resume_updating_the_balance : s.this_will_set_the_balance_of_your_account,
192
+ r.name
191
193
  ) })
192
194
  }
193
195
  ),
@@ -199,7 +201,7 @@ const d3 = (t, o) => {
199
201
  onClose: () => i(!1),
200
202
  title: s.mark_as_duplicate,
201
203
  children: /* @__PURE__ */ e(E, { children: H.map((p) => {
202
- const I = H.indexOf(p) === H.length - 1;
204
+ const Z = H.indexOf(p) === H.length - 1;
203
205
  return /* @__PURE__ */ C(h.Fragment, { children: [
204
206
  /* @__PURE__ */ e(
205
207
  U,
@@ -210,7 +212,7 @@ const d3 = (t, o) => {
210
212
  }
211
213
  }
212
214
  ),
213
- /* @__PURE__ */ e(E, { sx: { ml: I ? 0 : 24 } })
215
+ /* @__PURE__ */ e(E, { sx: { ml: Z ? 0 : 24 } })
214
216
  ] }, p.guid);
215
217
  }) })
216
218
  }
@@ -224,11 +226,11 @@ const d3 = (t, o) => {
224
226
  },
225
227
  isOpen: c,
226
228
  onClose: () => l(!1),
227
- onPrimaryAction: r,
229
+ onPrimaryAction: d,
228
230
  children: [
229
231
  /* @__PURE__ */ e(g, { truncate: !1, children: f(
230
232
  s.this_means_accounts_will_be_merged,
231
- d.name,
233
+ r.name,
232
234
  u.name
233
235
  ) }),
234
236
  /* @__PURE__ */ e(g, { color: "error", sx: { mt: 24 }, children: s.this_action_cannot_be_undone })
@@ -467,7 +469,7 @@ const d3 = (t, o) => {
467
469
  )
468
470
  ] });
469
471
  }, f3 = V(L3), g3 = ({ field: t, isOpen: o, onClose: n }) => {
470
- const { updateAccount: i } = k(), { selectedAccount: c } = R(), { accounts: l } = y(), [u, a] = h.useState(c[t.name]), [d, m] = h.useState(""), [_, s] = h.useState(!0), H = () => {
472
+ const { updateAccount: i } = k(), { selectedAccount: c } = R(), { accounts: l } = y(), [u, a] = h.useState(c[t.name]), [r, m] = h.useState(""), [_, s] = h.useState(!0), H = () => {
471
473
  a(""), m(""), n();
472
474
  }, v = () => {
473
475
  switch (t.type) {
@@ -485,10 +487,10 @@ const d3 = (t, o) => {
485
487
  },
486
488
  label: t.label,
487
489
  labelId: `${t.label}-select-label`,
488
- onChange: (r) => a(r.target.value),
490
+ onChange: (d) => a(d.target.value),
489
491
  placeholder: t.placeholder,
490
492
  value: u,
491
- children: t.options?.map((r) => /* @__PURE__ */ e(j1, { value: r.value, children: r.label }, r.value))
493
+ children: t.options?.map((d) => /* @__PURE__ */ e(j1, { value: d.value, children: d.label }, d.value))
492
494
  }
493
495
  )
494
496
  ] });
@@ -511,8 +513,8 @@ const d3 = (t, o) => {
511
513
  {
512
514
  maxDate: U1(/* @__PURE__ */ new Date(), 1),
513
515
  minDate: /* @__PURE__ */ new Date(),
514
- onChange: (r) => {
515
- c[t.name] && Number(c[t.name]) <= 31 ? a(r.getDate()) : a(r);
516
+ onChange: (d) => {
517
+ c[t.name] && Number(c[t.name]) <= 31 ? a(d.getDate()) : a(d);
516
518
  },
517
519
  sx: {
518
520
  "& .MuiPickersDay-today": {
@@ -521,7 +523,7 @@ const d3 = (t, o) => {
521
523
  "& .MuiPickersArrowSwitcher-button": {
522
524
  color: "primary.lighter",
523
525
  "&:hover": {
524
- backgroundColor: (r) => y1(r.palette.primary.light, 0.1)
526
+ backgroundColor: (d) => y1(d.palette.primary.light, 0.1)
525
527
  }
526
528
  }
527
529
  },
@@ -533,9 +535,9 @@ const d3 = (t, o) => {
533
535
  J1,
534
536
  {
535
537
  defaultValue: c[t.name],
536
- error: !!d,
538
+ error: !!r,
537
539
  fullWidth: !0,
538
- helperText: d,
540
+ helperText: r,
539
541
  inputProps: {
540
542
  "aria-label": t.placeholder
541
543
  },
@@ -549,8 +551,8 @@ const d3 = (t, o) => {
549
551
  ...c,
550
552
  [t.name]: u
551
553
  }), H();
552
- }, w = (r) => {
553
- a(r.target.value), t.validation && m(t.validation(r.target.value));
554
+ }, w = (d) => {
555
+ a(d.target.value), t.validation && m(t.validation(d.target.value));
554
556
  };
555
557
  return /* @__PURE__ */ e(
556
558
  Q,
@@ -559,7 +561,7 @@ const d3 = (t, o) => {
559
561
  close_aria: l.close_aria,
560
562
  title: f(l.edit_field, t.label)
561
563
  },
562
- disablePrimaryButton: !!d || !_,
564
+ disablePrimaryButton: !!r || !_,
563
565
  isOpen: o,
564
566
  onClose: H,
565
567
  onPrimaryAction: M,
@@ -575,7 +577,7 @@ const d3 = (t, o) => {
575
577
  }
576
578
  );
577
579
  }, H3 = V(g3), A3 = () => {
578
- const t = window.app?.config, { onEvent: o } = Z(), { selectedAccount: n } = R(), { 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), [d, m] = h.useState(c[0]), _ = c.filter(
580
+ const t = window.app?.config, { onEvent: o } = I(), { selectedAccount: n } = R(), { 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(
579
581
  (s) => l || n[s.name] || n[s.name] === 0
580
582
  );
581
583
  return /* @__PURE__ */ C(x, { children: [
@@ -607,17 +609,17 @@ const d3 = (t, o) => {
607
609
  /* @__PURE__ */ e(b, { sx: { ml: v ? 0 : 24 } })
608
610
  ] }) }, s.name);
609
611
  }),
610
- u && d && /* @__PURE__ */ e(
612
+ u && r && /* @__PURE__ */ e(
611
613
  H3,
612
614
  {
613
- field: d,
615
+ field: r,
614
616
  isOpen: u,
615
617
  onClose: () => a(!1)
616
618
  }
617
619
  )
618
620
  ] });
619
621
  }, V3 = V(A3), v3 = () => {
620
- const { onEvent: t } = Z();
622
+ const { onEvent: t } = I();
621
623
  return h.useEffect(() => t(S.ACCOUNT_DETAILS_VIEW), []), /* @__PURE__ */ C(E, { children: [
622
624
  /* @__PURE__ */ e(V3, {}),
623
625
  /* @__PURE__ */ e(f3, {}),
@@ -681,13 +683,13 @@ const d3 = (t, o) => {
681
683
  )
682
684
  ] });
683
685
  }, x3 = V(y3), w3 = () => {
684
- const [t, o] = h.useState(""), { onEvent: n } = Z(), { selectedAccount: i } = R(), { accounts: c } = y(), { isTransactionDataLoaded: l, loadTransactionData: u, setFilter: a, sortedTransactions: d } = m1();
686
+ const [t, o] = h.useState(""), { onEvent: n } = I(), { selectedAccount: i } = R(), { accounts: c } = y(), { isTransactionDataLoaded: l, loadTransactionData: u, setFilter: a, sortedTransactions: r } = m1();
685
687
  h.useEffect(() => {
686
688
  l || u().finally();
687
689
  }, []);
688
690
  const m = h.useMemo(
689
- () => d.find((_) => _.guid === t),
690
- [t, d]
691
+ () => r.find((_) => _.guid === t),
692
+ [t, r]
691
693
  );
692
694
  return h.useEffect(() => {
693
695
  a({
@@ -712,7 +714,7 @@ const d3 = (t, o) => {
712
714
  return /* @__PURE__ */ C(x, { children: [
713
715
  /* @__PURE__ */ e(x3, { setTabValue: o }),
714
716
  /* @__PURE__ */ C(
715
- Z1,
717
+ I1,
716
718
  {
717
719
  "aria-label": n.transactions_and_details_aria,
718
720
  centered: !0,
@@ -744,30 +746,30 @@ const d3 = (t, o) => {
744
746
  /* @__PURE__ */ e(r1, { index: 1, name: "account-details", value: t, children: /* @__PURE__ */ e(M3, {}) })
745
747
  ] });
746
748
  }, R3 = V(S3), T3 = () => {
747
- const [t, o] = h.useState(""), { accounts: n } = y(), { allSelectedAccounts: i } = G(), { setSelectedAccount: c, setSelectedMember: l } = R(), { members: u } = k(), { onEvent: a } = Z(), d = [...new Set(i.map((r) => r.account_type))], m = i.find((r) => t === r.guid), _ = h.useMemo(
748
- () => i.filter((r) => r.is_hidden),
749
+ const [t, o] = h.useState(""), { accounts: n } = y(), { allSelectedAccounts: i } = G(), { setSelectedAccount: c, setSelectedMember: l } = R(), { members: u } = k(), { onEvent: a } = I(), r = [...new Set(i.map((d) => d.account_type))], m = i.find((d) => t === d.guid), _ = h.useMemo(
750
+ () => i.filter((d) => d.is_hidden),
749
751
  [i]
750
752
  ), s = h.useMemo(
751
- () => i.filter((r) => r.is_closed),
753
+ () => i.filter((d) => d.is_closed),
752
754
  [i]
753
755
  ), H = _.reduce(
754
- (r, p) => (p.available_balance || p.balance || 0) + r,
756
+ (d, p) => (p.available_balance || p.balance || 0) + d,
755
757
  0
756
758
  ), v = k1(s, n);
757
759
  h.useEffect(() => {
758
760
  if (m) {
759
761
  c(m);
760
- const r = u.find((p) => p.guid === m?.member_guid) || {};
761
- r && l(r);
762
+ const d = u.find((p) => p.guid === m?.member_guid) || {};
763
+ d && l(d);
762
764
  }
763
765
  }, [m, t]);
764
- const M = (r) => {
765
- o(r.guid), a(S.ACCOUNTS_CLICK_ACCOUNT, {
766
- account_guid: r.guid,
767
- account_type: r.account_type
766
+ const M = (d) => {
767
+ o(d.guid), a(S.ACCOUNTS_CLICK_ACCOUNT, {
768
+ account_guid: d.guid,
769
+ account_type: d.account_type
768
770
  });
769
- }, w = (r) => {
770
- const p = r === "hidden" ? _ : s, I = r === "hidden" ? H : v, A = r === "hidden" ? n.account_hidden : n.account_closed;
771
+ }, w = (d) => {
772
+ const p = d === "hidden" ? _ : s, Z = d === "hidden" ? H : v, A = d === "hidden" ? n.account_hidden : n.account_closed;
771
773
  return /* @__PURE__ */ e(c1, { children: /* @__PURE__ */ e(
772
774
  E,
773
775
  {
@@ -780,7 +782,7 @@ const d3 = (t, o) => {
780
782
  sx: { justifyContent: "space-between", color: "grey.700" },
781
783
  children: [
782
784
  /* @__PURE__ */ e(g, { bold: !0, variant: "Body", children: A }),
783
- /* @__PURE__ */ e(g, { bold: !0, variant: "Body", children: d1(I, "0,0.00") })
785
+ /* @__PURE__ */ e(g, { bold: !0, variant: "Body", children: d1(Z, "0,0.00") })
784
786
  ]
785
787
  }
786
788
  ) }),
@@ -795,7 +797,7 @@ const d3 = (t, o) => {
795
797
  shouldShowConnectionStatus: !0
796
798
  }
797
799
  ),
798
- r === "hidden" ? /* @__PURE__ */ e(
800
+ d === "hidden" ? /* @__PURE__ */ e(
799
801
  b,
800
802
  {
801
803
  sx: {
@@ -818,10 +820,10 @@ const d3 = (t, o) => {
818
820
  ) });
819
821
  };
820
822
  return /* @__PURE__ */ C(c1, { sx: { pt: 24 }, children: [
821
- d.map((r) => {
823
+ r.map((d) => {
822
824
  const p = i.filter(
823
- (A) => A.account_type === r && !A.is_closed && !A.is_hidden
824
- ), I = p.reduce(
825
+ (A) => A.account_type === d && !A.is_closed && !A.is_hidden
826
+ ), Z = p.reduce(
825
827
  (A, T) => (T.balance || 0) + A,
826
828
  0
827
829
  );
@@ -836,8 +838,8 @@ const d3 = (t, o) => {
836
838
  direction: "row",
837
839
  sx: { display: "flex", justifyContent: "space-between" },
838
840
  children: [
839
- /* @__PURE__ */ e(g, { bold: !0, variant: "Body", children: n.account_types[r] }),
840
- /* @__PURE__ */ e(g, { bold: !0, variant: "Body", children: d1(I, "0,0.00") })
841
+ /* @__PURE__ */ e(g, { bold: !0, variant: "Body", children: n.account_types[d] }),
842
+ /* @__PURE__ */ e(g, { bold: !0, variant: "Body", children: d1(Z, "0,0.00") })
841
843
  ]
842
844
  }
843
845
  ) }),
@@ -864,7 +866,7 @@ const d3 = (t, o) => {
864
866
  ] }, A.guid);
865
867
  }) })
866
868
  },
867
- r
869
+ d
868
870
  );
869
871
  }),
870
872
  _.length > 0 && w("hidden"),
@@ -884,16 +886,16 @@ const d3 = (t, o) => {
884
886
  )
885
887
  ] });
886
888
  }, E3 = V(T3), D3 = ({ onBackClick: t, sx: o = {} }) => {
887
- const [n, i] = h.useState(!1), [c, l] = h.useState(!1), { config: u } = E1(), { isAccountDataLoaded: a, loadAccountData: d } = k(), { accounts: m, connect: _ } = y(), { isInitialized: s, selectedAccountGuids: H } = G(), { isDesktop: v } = H1(), { onEvent: M } = Z();
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();
888
890
  n1({
889
891
  widgetName: "AccountsWidget",
890
892
  isLoaded: a
891
893
  }), h.useEffect(() => {
892
- a || d().finally();
894
+ a || r().finally();
893
895
  }, []);
894
896
  const w = () => {
895
897
  i(!0), M(S.ACCOUNTS_CLICK_CONNECT);
896
- }, r = () => {
898
+ }, d = () => {
897
899
  l(!0), M(S.ACCOUNTS_CLICK_CONNECT);
898
900
  };
899
901
  return s ? /* @__PURE__ */ C(
@@ -904,7 +906,7 @@ const d3 = (t, o) => {
904
906
  {
905
907
  iconName: "credit_card_gear",
906
908
  label: m.manage,
907
- onClick: r
909
+ onClick: d
908
910
  }
909
911
  ] : [],
910
912
  onAccountsFilterClick: () => M(S.ACCOUNTS_CLICK_FILTER),
@@ -946,15 +948,15 @@ function k3(t) {
946
948
  externalAccounts: C1(n)
947
949
  };
948
950
  }
949
- function Z3(t, o) {
951
+ function I3(t, o) {
950
952
  const { heldAccounts: n, externalAccounts: i } = k3(t), c = n.slice(0, o);
951
953
  return c.length < o && c.push(...i.slice(0, o - c.length)), c;
952
954
  }
953
- const I3 = {
955
+ const Z3 = {
954
956
  [N.CHECKING]: 1,
955
957
  [N.SAVINGS]: 2,
956
958
  [N.CREDIT_CARD]: 3
957
- }, u1 = (t) => I3[t] ?? t + 100, C1 = (t) => t.sort((o, n) => {
959
+ }, u1 = (t) => Z3[t] ?? t + 100, C1 = (t) => t.sort((o, n) => {
958
960
  const i = u1(o.account_type), c = u1(n.account_type), l = i - c;
959
961
  if (l !== 0) return l;
960
962
  const u = o.name ?? o.feed_name ?? "", a = n.name ?? n.feed_name ?? "";
@@ -967,8 +969,8 @@ const I3 = {
967
969
  }), h.useEffect(() => {
968
970
  n || i().finally();
969
971
  }, []);
970
- const d = h.useMemo(
971
- () => Z3(u, a ? 5 : 3),
972
+ const r = h.useMemo(
973
+ () => I3(u, a ? 5 : 3),
972
974
  [u, a]
973
975
  );
974
976
  return l ? /* @__PURE__ */ e(
@@ -981,8 +983,8 @@ const I3 = {
981
983
  title: c.mini_title,
982
984
  children: n ? /* @__PURE__ */ C(E, { children: [
983
985
  u.length === 0 && /* @__PURE__ */ e(D, { sx: { justifyContent: "center" }, children: c.no_accounts }),
984
- d.map((m, _) => {
985
- const s = d.indexOf(m) === d.length - 1;
986
+ r.map((m, _) => {
987
+ const s = r.indexOf(m) === r.length - 1;
986
988
  return /* @__PURE__ */ C(h.Fragment, { children: [
987
989
  /* @__PURE__ */ e(
988
990
  U,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mx-cartographer/experiences",
3
- "version": "7.11.9",
3
+ "version": "7.11.10",
4
4
  "description": "Library containing experience widgets",
5
5
  "author": "MX",
6
6
  "license": "MIT",