@mx-cartographer/experiences 7.0.6-alpha.al1 → 7.0.6

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,5 +1,5 @@
1
1
  import { T as i, M as G, C as fe, G as pe } from "../GoalStore-Drf76ell.mjs";
2
- import { a as $n, b as Un } from "../GoalStore-Drf76ell.mjs";
2
+ import { a as Xn, b as $n } from "../GoalStore-Drf76ell.mjs";
3
3
  import { jsxs as s, jsx as e, Fragment as Y } from "react/jsx-runtime";
4
4
  import T from "react";
5
5
  import { observer as M } from "mobx-react-lite";
@@ -16,14 +16,14 @@ import Ae from "@mui/material/CardContent";
16
16
  import he from "@mui/material/Unstable_Grid2";
17
17
  import re from "@mui/material/Avatar";
18
18
  import je from "@mui/material/CardHeader";
19
- import { Payments as Ce, NoteStack as Se, Person as Re, ChevronRight as B, CheckCircle as He, Icon as ge, ExpandLess as Fe, ExpandMore as ze, AddBox as Ee, Trophy as Xe } from "@mxenabled/mx-icons";
19
+ import { Payments as Ce, NoteStack as Se, Person as Re, ChevronRight as B, DragHandle as He, CheckCircle as Fe, Icon as ge, ExpandLess as ze, ExpandMore as Xe, AddBox as Ee, Trophy as $e } from "@mxenabled/mx-icons";
20
20
  import { fromUnixTime as q } from "date-fns/fromUnixTime";
21
21
  import { b as N } from "../Localization-2MODESHW.mjs";
22
- import { a as $e, f as v } from "../NumberFormatting-CtWHhyBX.mjs";
23
- import { f as ee, D as te, a as Ue } from "../Dialog-CWW597AF.mjs";
22
+ import { a as Ue, f as v } from "../NumberFormatting-CtWHhyBX.mjs";
23
+ import { f as ee, D as te, a as Ye } from "../Dialog-CWW597AF.mjs";
24
24
  import { u as A, j as x, c as j, o as ve, e as xe, a as Ie } from "../hooks-02T565vf.mjs";
25
25
  import { u as ue } from "../useScreenSize-B6JyS_Lj.mjs";
26
- import { S as Ye } from "../StatusBar-BK_uYHAB.mjs";
26
+ import { S as Ze } from "../StatusBar-BK_uYHAB.mjs";
27
27
  import R from "@mui/material/Divider";
28
28
  import L from "@mui/material/List";
29
29
  import { L as ne } from "../ListItemAction-BzmbPuNp.mjs";
@@ -31,7 +31,6 @@ import { C as Ge } from "../CurrencyInput-CSZjO22Z.mjs";
31
31
  import w from "@mui/material/ListItem";
32
32
  import D from "@mui/material/ListItemButton";
33
33
  import K from "@mui/material/ListItemText";
34
- import Ze from "@mui/icons-material/DragHandle";
35
34
  import { DataGridPro as qe } from "@mui/x-data-grid-pro";
36
35
  import { D as H } from "../Drawer-kEE73B87.mjs";
37
36
  import P from "@mui/material/ListItemAvatar";
@@ -40,7 +39,7 @@ import Qe from "@mui/material/ListItemIcon";
40
39
  import et from "@mui/material/Checkbox";
41
40
  import { A as be } from "../ConnectDrawer-WfKHsHSF.mjs";
42
41
  import { u as tt, A as nt } from "../AccountDetailsHeader-DnEyQMpX.mjs";
43
- import { A as ot } from "../AccountDetailsContent-Do3z1FnQ.mjs";
42
+ import { A as ot } from "../AccountDetailsContent-OzI5Hs8T.mjs";
44
43
  import Ne from "@mui/material/TextField";
45
44
  import { M as at, I as rt, O as it } from "../OriginalBalanceAction-CSu5brQE.mjs";
46
45
  import { getUnixTime as lt } from "date-fns/getUnixTime";
@@ -74,7 +73,7 @@ function we(t, n) {
74
73
  maximumFractionDigits: 0
75
74
  }, p = n.is_complete ? n.completed_at : n.projected_to_complete_at, c = p ? q(p) : /* @__PURE__ */ new Date(), h = N(
76
75
  t.goal_percentage,
77
- $e(r, _)
76
+ Ue(r, _)
78
77
  ), o = N(
79
78
  n.is_complete ? t.completed_label : t.goal_projection,
80
79
  ee(c, te.MONTH_SHORT_YEAR)
@@ -180,7 +179,7 @@ const yt = (t, n) => {
180
179
  }
181
180
  ),
182
181
  /* @__PURE__ */ e(Ae, { sx: { pt: 0 }, children: /* @__PURE__ */ s(b, { gap: 6, children: [
183
- /* @__PURE__ */ e(Ye, { data: m, height: 24 }),
182
+ /* @__PURE__ */ e(Ze, { data: m, height: 24 }),
184
183
  /* @__PURE__ */ s(b, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
185
184
  /* @__PURE__ */ e(y, { color: "text.secondary", variant: "XSmall", children: o }),
186
185
  t.projected_to_complete_at && /* @__PURE__ */ e(y, { color: "text.secondary", variant: "XSmall", children: g })
@@ -305,7 +304,7 @@ const yt = (t, n) => {
305
304
  rowReordering: !0,
306
305
  rows: o,
307
306
  slots: {
308
- rowReorderIcon: () => /* @__PURE__ */ e(Ze, { sx: { ml: 12 } })
307
+ rowReorderIcon: () => /* @__PURE__ */ e(He, { sx: { ml: 12 } })
309
308
  //TODO: Add to mx-icons
310
309
  },
311
310
  sx: {
@@ -351,7 +350,7 @@ const yt = (t, n) => {
351
350
  }, Et = ({ goal: t }) => {
352
351
  const { goals: n } = A();
353
352
  return /* @__PURE__ */ e(w, { children: /* @__PURE__ */ s(D, { children: [
354
- /* @__PURE__ */ e(P, { sx: { alignItems: "center", display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ e(He, { color: "success", filled: !0, size: 20 }) }),
353
+ /* @__PURE__ */ e(P, { sx: { alignItems: "center", display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ e(Fe, { color: "success", filled: !0, size: 20 }) }),
355
354
  /* @__PURE__ */ e(K, { primaryTypographyProps: { variant: "Body" }, children: /* @__PURE__ */ s(b, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
356
355
  /* @__PURE__ */ s(b, { children: [
357
356
  /* @__PURE__ */ e(y, { bold: !0, variant: "Body", children: t.name }),
@@ -503,7 +502,7 @@ const yt = (t, n) => {
503
502
  /* @__PURE__ */ e(P, { children: /* @__PURE__ */ e(re, { sx: { bgcolor: r }, variant: "rounded", children: /* @__PURE__ */ e(ge, { name: u, sx: { color: "grey.900" } }) }) }),
504
503
  /* @__PURE__ */ e(K, { primary: a, secondary: _, sx: { mr: 24 } }),
505
504
  !g && /* @__PURE__ */ e(B, {}),
506
- g && (h ? /* @__PURE__ */ e(Fe, {}) : /* @__PURE__ */ e(ze, {}))
505
+ g && (h ? /* @__PURE__ */ e(ze, {}) : /* @__PURE__ */ e(Xe, {}))
507
506
  ]
508
507
  }
509
508
  ) }),
@@ -990,7 +989,7 @@ const yt = (t, n) => {
990
989
  }
991
990
  ),
992
991
  /* @__PURE__ */ e(
993
- Ue,
992
+ Ye,
994
993
  {
995
994
  copy: { close_aria: r.close_aria, title: d.delete_goal },
996
995
  isOpen: E,
@@ -1003,7 +1002,7 @@ const yt = (t, n) => {
1003
1002
  }
1004
1003
  )
1005
1004
  ] });
1006
- }), Hn = M(({ onBackClick: t, sx: n }) => {
1005
+ }), jn = M(({ onBackClick: t, sx: n }) => {
1007
1006
  const { onEvent: d } = xe(), { isMobile: r } = ue(), { visibleAccounts: u } = j(), { isCopyLoaded: a, isInitialized: _, setSelectedAccounts: p } = Ie(), { goals: c, common: h } = A(), { alert: o, goals: g, goalsLoaded: l, loadGoals: m, monthlyCashFlowProfile: f, setAlert: E, retirmentGoals: C } = x(), [S, I] = T.useState(0), [F, J] = T.useState(!1), z = f?.amount_allocated_for_savings_goals || 0, X = f?.amount_allocated_for_debt_goals || 0, oe = f?.amount_allocated_for_retirement_goals || 0, ie = a ? N(
1008
1007
  r ? c.tab_subtitle_mobile : c.tab_subtitle,
1009
1008
  v(z, "0,0")
@@ -1151,7 +1150,7 @@ const yt = (t, n) => {
1151
1150
  ...d
1152
1151
  },
1153
1152
  children: [
1154
- /* @__PURE__ */ e(Xe, { size: 32 }),
1153
+ /* @__PURE__ */ e($e, { size: 32 }),
1155
1154
  /* @__PURE__ */ e(me, { fontSize: 15, fontWeight: 600, children: t }),
1156
1155
  /* @__PURE__ */ e(
1157
1156
  V,
@@ -1164,7 +1163,7 @@ const yt = (t, n) => {
1164
1163
  )
1165
1164
  ]
1166
1165
  }
1167
- ), Fn = M(({ onCTAClick: t }) => {
1166
+ ), Hn = M(({ onCTAClick: t }) => {
1168
1167
  const { visibleAccounts: n } = j(), { onEvent: d } = xe(), { goals: r } = A(), { isInitialized: u, setSelectedAccounts: a, isCopyLoaded: _ } = Ie(), { ongoingGoalsForMicroWidget: p, loadGoals: c, goalsLoaded: h } = x();
1169
1168
  T.useEffect(() => {
1170
1169
  a(n);
@@ -1202,8 +1201,8 @@ const yt = (t, n) => {
1202
1201
  );
1203
1202
  });
1204
1203
  export {
1205
- $n as GoalApi,
1206
- Un as GoalStore,
1207
- Fn as GoalsMicroWidget,
1208
- Hn as GoalsWidget
1204
+ Xn as GoalApi,
1205
+ $n as GoalStore,
1206
+ Hn as GoalsMicroWidget,
1207
+ jn as GoalsWidget
1209
1208
  };
@@ -1,6 +1,6 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
2
  import { observer as t } from "mobx-react-lite";
3
- import { H as m } from "../Help-DRUwVDvo.mjs";
3
+ import { H as m } from "../Help-BazrEpv7.mjs";
4
4
  import { a as s } from "../hooks-02T565vf.mjs";
5
5
  import { L as p } from "../Loader-Dp1P2gNw.mjs";
6
6
  import { W as a } from "../WidgetContainer-BG-fdDOf.mjs";
@@ -8,8 +8,8 @@ import { startOfToday as le } from "date-fns/startOfToday";
8
8
  import { subDays as de } from "date-fns/subDays";
9
9
  import re from "@mui/material/Skeleton";
10
10
  import c from "@mui/material/Stack";
11
- import { R as He } from "../RecurringSettings-D8XKxI2O.mjs";
12
- import { M as An } from "../RecurringSettings-D8XKxI2O.mjs";
11
+ import { R as He } from "../RecurringSettings-BQDQvmSY.mjs";
12
+ import { M as An } from "../RecurringSettings-BQDQvmSY.mjs";
13
13
  import { addMonths as ze } from "date-fns/addMonths";
14
14
  import { subMonths as Be } from "date-fns/subMonths";
15
15
  import { isBefore as Ue } from "date-fns/isBefore";
@@ -41,8 +41,8 @@ import ct from "@mui/material/ListSubheader";
41
41
  import lt from "@mui/material/ListItemAvatar";
42
42
  import dt from "@mui/material/ListItemButton";
43
43
  import ut from "@mui/material/ListItemText";
44
- import { b as mt } from "../ManageIncome-DT62iZim.mjs";
45
- import { c as On, M as kn, S as Wn } from "../ManageIncome-DT62iZim.mjs";
44
+ import { b as mt } from "../ManageIncome-CzTV55Bh.mjs";
45
+ import { c as On, M as kn, S as Wn } from "../ManageIncome-CzTV55Bh.mjs";
46
46
  import { f as L } from "../NumberFormatting-CtWHhyBX.mjs";
47
47
  import { D as Ae } from "../Drawer-kEE73B87.mjs";
48
48
  import { b as N } from "../Localization-2MODESHW.mjs";
@@ -41,7 +41,7 @@ import Be from "@mui/material/ListItemButton";
41
41
  import Me from "@mui/material/ListItemIcon";
42
42
  import Ne from "@mui/material/ListItemText";
43
43
  import { D as He } from "../Drawer-kEE73B87.mjs";
44
- import { H as Le } from "../Help-DRUwVDvo.mjs";
44
+ import { H as Le } from "../Help-BazrEpv7.mjs";
45
45
  import { W as K } from "../WidgetContainer-BG-fdDOf.mjs";
46
46
  const Oe = ({ availableWidth: t, handleOnLeavClick: a }) => {
47
47
  const o = ye(), { common: n, settings: r } = k(), { isDesktop: m, isMobile: l, isSmallMobile: i, isTablet: s } = L(t), { config: g } = $(), { updateUser: _ } = A(), { user: d } = De(), [u, S] = h.useState({
@@ -20,7 +20,7 @@ import { D as bt } from "../Donut-1UMNcG67.mjs";
20
20
  import { L as F } from "../Loader-Dp1P2gNw.mjs";
21
21
  import { M as St } from "../MiniWidgetContainer-DqKQNubH.mjs";
22
22
  import { startOfToday as U } from "date-fns/startOfToday";
23
- import { T as Tt, a as Mt } from "../TransactionDetails-D4B9DSWo.mjs";
23
+ import { T as Tt, a as Mt } from "../TransactionDetails-BSfXqkpH.mjs";
24
24
  import Dt from "@mui/material/Collapse";
25
25
  import B from "@mui/material/Divider";
26
26
  import q from "@mui/material/List";
@@ -1,6 +1,6 @@
1
1
  import { T as ha } from "../TransactionApi-DbbcjI2L.mjs";
2
- import { u as B, C as Le, D as Re, M as He, c as Be, T as Pe, a as $e } from "../TransactionDetails-D4B9DSWo.mjs";
3
- import { B as Ca, d as ya, b as ba } from "../TransactionDetails-D4B9DSWo.mjs";
2
+ import { u as B, C as Le, D as Re, M as He, c as Be, T as Pe, a as $e } from "../TransactionDetails-BSfXqkpH.mjs";
3
+ import { B as Ca, d as ya, b as ba } from "../TransactionDetails-BSfXqkpH.mjs";
4
4
  import { T as M } from "../Transaction-CyqrHmAA.mjs";
5
5
  import { O as Aa } from "../Transaction-CyqrHmAA.mjs";
6
6
  import { S as ee, D as Ve } from "../TransactionStore-DSyXtPek.mjs";
@@ -30,7 +30,7 @@ import { j as ot } from "../ConnectDrawer-WfKHsHSF.mjs";
30
30
  import rt from "@mui/material/Divider";
31
31
  import st from "@mui/material/MenuItem";
32
32
  import it from "@mui/material/RadioGroup";
33
- import ct from "@mui/icons-material/ExpandMore";
33
+ import { ExpandMore as ct } from "@mxenabled/mx-icons";
34
34
  import { C as lt } from "../CurrencyInput-CSZjO22Z.mjs";
35
35
  import { a as dt, u as ut } from "../CategorySelectorDrawer-Dyzb3UDU.mjs";
36
36
  import { b as ae } from "../Localization-2MODESHW.mjs";