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

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.
@@ -7,10 +7,10 @@ import E from "@mui/material/List";
7
7
  import T from "@mui/material/ListSubheader";
8
8
  import x from "@mui/system/Stack";
9
9
  import { Text as v } from "@mxenabled/mxui";
10
- import { A as G } from "../AccountDetailsContent-Do3z1FnQ.mjs";
11
- import { u as O1 } from "../AccountDetailsContent-Do3z1FnQ.mjs";
10
+ import { A as G } from "../AccountDetailsContent-OzI5Hs8T.mjs";
11
+ import { u as O1 } from "../AccountDetailsContent-OzI5Hs8T.mjs";
12
12
  import { u as K, A as z } from "../AccountDetailsHeader-DnEyQMpX.mjs";
13
- import { A as W } from "../AccountListItem-C7JzYpqf.mjs";
13
+ import { A as W } from "../AccountListItem-CR6I3Hl8.mjs";
14
14
  import { u as g, a as y, c as O, e as N, k as P } from "../hooks-02T565vf.mjs";
15
15
  import { f as I } from "../NumberFormatting-CtWHhyBX.mjs";
16
16
  import { D as Y } from "../Drawer-kEE73B87.mjs";
@@ -37,7 +37,7 @@ import Ye from "@mui/material/Snackbar";
37
37
  import be from "@mui/material/Tab";
38
38
  import Ze from "@mui/material/Tabs";
39
39
  import { e as qe } from "../exportTransactionsToCSV-BlVifaOG.mjs";
40
- import { T as xe, a as Je } from "../TransactionDetails-D4B9DSWo.mjs";
40
+ import { T as xe, a as Je } from "../TransactionDetails-BSfXqkpH.mjs";
41
41
  import ge from "@mui/material/Card";
42
42
  import pe from "@mui/material/CardContent";
43
43
  import { S as ue } from "../StatusBar-BK_uYHAB.mjs";
@@ -46,7 +46,7 @@ import { u as Qe, b as et } from "../CategorySelectorDrawer-Dyzb3UDU.mjs";
46
46
  import Te from "@mui/material/CardHeader";
47
47
  import { subDays as tt } from "date-fns/subDays";
48
48
  import nt from "@mui/material/IconButton";
49
- import { M as ot } from "../ManageIncome-DT62iZim.mjs";
49
+ import { M as ot } from "../ManageIncome-CzTV55Bh.mjs";
50
50
  const ye = 5, at = 100, rt = 25, st = (t) => {
51
51
  const o = (a) => {
52
52
  a.active || t.alphaTarget(0.3).restart(), a.subject.fx = a.subject.x, a.subject.fy = a.subject.y;
@@ -17,13 +17,13 @@ import { I as ue } from "../CashflowStore-D9Dpuz7X.mjs";
17
17
  import { C as Wn } from "../CashflowStore-D9Dpuz7X.mjs";
18
18
  import { b as q } from "../Localization-2MODESHW.mjs";
19
19
  import { M as Qe } from "../MiniWidgetContainer-DqKQNubH.mjs";
20
- import { R as Ve } from "../RecurringSettings-D8XKxI2O.mjs";
20
+ import { R as Ve } from "../RecurringSettings-BQDQvmSY.mjs";
21
21
  import Ke from "@mui/material/Tabs";
22
22
  import Ce from "@mui/material/Tab";
23
23
  import { getUnixTime as B } from "date-fns/getUnixTime";
24
24
  import Z from "@mui/material/List";
25
25
  import ee from "@mui/material/ListItem";
26
- import { A as Je } from "../AccountListItem-C7JzYpqf.mjs";
26
+ import { A as Je } from "../AccountListItem-CR6I3Hl8.mjs";
27
27
  import { f as Y, D as Q } from "../Dialog-CWW597AF.mjs";
28
28
  import Ze from "@mui/material/ListSubheader";
29
29
  import { f as J } from "../NumberFormatting-CtWHhyBX.mjs";
@@ -34,13 +34,13 @@ import { addDays as _e } from "date-fns/addDays";
34
34
  import { alpha as et, keyframes as tt } from "@mui/material/styles";
35
35
  import { DataGridPro as nt } from "@mui/x-data-grid-pro";
36
36
  import { T as we } from "../TabContentContainer-j01JYR_7.mjs";
37
- import { M as ot, S as it, i as at, d as Se, c as rt } from "../ManageIncome-DT62iZim.mjs";
37
+ import { M as ot, S as it, i as at, d as Se, c as rt } from "../ManageIncome-CzTV55Bh.mjs";
38
38
  import { D as $e } from "../Drawer-kEE73B87.mjs";
39
39
  import { formatISO as st } from "date-fns/formatISO";
40
40
  import { fromUnixTime as ye } from "date-fns/fromUnixTime";
41
41
  import { startOfMonth as ct } from "date-fns/startOfMonth";
42
42
  import { subDays as Me } from "date-fns/subDays";
43
- import { S as lt, b as dt } from "../TransactionDetails-D4B9DSWo.mjs";
43
+ import { S as lt, b as dt } from "../TransactionDetails-BSfXqkpH.mjs";
44
44
  import { F as mt, R as Ie, e as De } from "../RepeatingTransaction-BW4J-jeJ.mjs";
45
45
  import { h as ut } from "../DateUtil-BcuH7ErC.mjs";
46
46
  import { endOfToday as ht } from "date-fns/endOfToday";
@@ -1,12 +1,12 @@
1
- import { jsx as e, jsxs as s, Fragment as $ } from "react/jsx-runtime";
1
+ import { jsx as e, jsxs as s, Fragment as L } from "react/jsx-runtime";
2
2
  import y from "react";
3
3
  import { observer as D } from "mobx-react-lite";
4
4
  import f from "@mui/material/Stack";
5
5
  import { useTheme as j, Card as pe, Stack as _, Box as O } from "@mui/material";
6
6
  import { Text as i, H3 as we, InstitutionLogo as Ce, Icon as ee } from "@mxenabled/mxui";
7
7
  import { intervalToDuration as De, formatDuration as Se } from "date-fns";
8
- import { D as L } from "../DebtsStore-D9holN8L.mjs";
9
- import { a as Sr } from "../DebtsStore-D9holN8L.mjs";
8
+ import { D as $ } from "../DebtsStore-D9holN8L.mjs";
9
+ import { a as Dr } from "../DebtsStore-D9holN8L.mjs";
10
10
  import { f as B, a as ve } from "../NumberFormatting-CtWHhyBX.mjs";
11
11
  import { f as K, D as U } from "../Dialog-CWW597AF.mjs";
12
12
  import { G as Te, x as q, u as C, j as z, e as M, c as Z, a as Ae } from "../hooks-02T565vf.mjs";
@@ -21,18 +21,17 @@ import { LineChart as Pe } from "@mui/x-charts";
21
21
  import { useTheme as Ne } from "@mui/material/styles";
22
22
  import { A as v, W as Re } from "../WidgetContainer-BG-fdDOf.mjs";
23
23
  import ie from "@mui/material/Tab";
24
- import Le from "@mui/material/Tabs";
24
+ import $e from "@mui/material/Tabs";
25
25
  import me from "@mui/material/List";
26
26
  import W from "@mui/material/Divider";
27
- import { M as $e, I as He, O as Fe } from "../OriginalBalanceAction-CSu5brQE.mjs";
27
+ import { M as Le, I as He, O as Fe } from "../OriginalBalanceAction-CSu5brQE.mjs";
28
28
  import Oe from "@mui/material/TextField";
29
29
  import { L as J } from "../ListItemAction-BzmbPuNp.mjs";
30
30
  import { C as re } from "../CurrencyInput-CSZjO22Z.mjs";
31
31
  import le from "@mui/material/Alert";
32
32
  import se from "@mui/material/AlertTitle";
33
- import he from "@mui/icons-material/CheckCircle";
34
- import We from "@mui/icons-material/Error";
35
33
  import ce from "@mui/material/Paper";
34
+ import { Error as We, CheckCircle as he } from "@mxenabled/mx-icons";
36
35
  import { T as de } from "../TabContentContainer-j01JYR_7.mjs";
37
36
  import { DataGridPro as Ge } from "@mui/x-data-grid-pro";
38
37
  import ue from "@mui/material/Box";
@@ -46,13 +45,13 @@ import { L as Ye } from "../Loader-Dp1P2gNw.mjs";
46
45
  const _e = (a, o) => {
47
46
  const n = a.filter((t) => !t.is_paid_off && !t.is_impossible), r = a.filter((t) => t.is_paid_off || t.is_impossible);
48
47
  switch (o) {
49
- case L.HIGHEST_INTEREST:
48
+ case $.HIGHEST_INTEREST:
50
49
  n.sort((t, l) => (l.interest_rate ?? 0) - (t.interest_rate ?? 0));
51
50
  break;
52
- case L.LOWEST_BALANCE:
51
+ case $.LOWEST_BALANCE:
53
52
  n.sort((t, l) => t.balance - l.balance);
54
53
  break;
55
- case L.HIGHEST_BALANCE:
54
+ case $.HIGHEST_BALANCE:
56
55
  n.sort((t, l) => l.balance - t.balance);
57
56
  break;
58
57
  default:
@@ -641,7 +640,7 @@ const ye = ({
641
640
  );
642
641
  }, tt = () => {
643
642
  const a = j(), { debts: o } = C(), { selectedDebtChartData: n } = R();
644
- return /* @__PURE__ */ s($, { children: [
643
+ return /* @__PURE__ */ s(L, { children: [
645
644
  /* @__PURE__ */ s(
646
645
  Be,
647
646
  {
@@ -677,7 +676,7 @@ const ye = ({
677
676
  variant: "Small",
678
677
  children: l ? n.schedule_error_message : n.schedule_complete_message
679
678
  }
680
- ) : /* @__PURE__ */ s($, { children: [
679
+ ) : /* @__PURE__ */ s(L, { children: [
681
680
  /* @__PURE__ */ s(f, { flexDirection: "row", justifyContent: "space-between", sx: { pt: 12, px: 24, pb: 8 }, children: [
682
681
  /* @__PURE__ */ e(i, { bold: !0, variant: "XSmall", children: n.schedule_month_heading }),
683
682
  /* @__PURE__ */ e(i, { bold: !0, variant: "XSmall", children: n.schedule_amount_heading })
@@ -827,15 +826,15 @@ const ye = ({
827
826
  }), st = () => {
828
827
  const { onEvent: a } = M(), { selectedDebtChartData: o } = R();
829
828
  return y.useEffect(() => a(v.DEBT_DETAILS_VIEW), []), /* @__PURE__ */ s(f, { bgcolor: "background.paper", children: [
830
- o?.goal && /* @__PURE__ */ s($, { children: [
831
- /* @__PURE__ */ e($e, { goal: o.goal }),
829
+ o?.goal && /* @__PURE__ */ s(L, { children: [
830
+ /* @__PURE__ */ e(Le, { goal: o.goal }),
832
831
  /* @__PURE__ */ e(W, {}),
833
832
  /* @__PURE__ */ e(He, { goal: o.goal }),
834
833
  /* @__PURE__ */ e(W, {}),
835
834
  /* @__PURE__ */ e(Fe, { goal: o.goal }),
836
835
  /* @__PURE__ */ e(W, {})
837
836
  ] }),
838
- !o?.goal && o?.account && /* @__PURE__ */ s($, { children: [
837
+ !o?.goal && o?.account && /* @__PURE__ */ s(L, { children: [
839
838
  /* @__PURE__ */ e(it, { debt: o }),
840
839
  /* @__PURE__ */ e(W, {}),
841
840
  /* @__PURE__ */ e(nt, { debt: o }),
@@ -848,7 +847,7 @@ const ye = ({
848
847
  const { debts: n } = C(), { showError: r, showCompleted: t } = R();
849
848
  return y.useEffect(() => {
850
849
  r && a(1);
851
- }, [r]), !r && !t ? /* @__PURE__ */ e($, {}) : /* @__PURE__ */ s(_, { gap: 16, children: [
850
+ }, [r]), !r && !t ? /* @__PURE__ */ e(L, {}) : /* @__PURE__ */ s(f, { gap: 16, children: [
852
851
  /* @__PURE__ */ e(ce, { sx: { my: 16, mx: 24, ...o }, children: /* @__PURE__ */ s(
853
852
  le,
854
853
  {
@@ -873,7 +872,7 @@ const ye = ({
873
872
  r && /* @__PURE__ */ e(ce, { sx: { mb: 16, mt: 100, mx: 24, ...o }, children: /* @__PURE__ */ s(
874
873
  le,
875
874
  {
876
- icon: /* @__PURE__ */ e($, {}),
875
+ icon: /* @__PURE__ */ e(L, {}),
877
876
  severity: "error",
878
877
  sx: {
879
878
  borderRadius: 2,
@@ -891,10 +890,10 @@ const ye = ({
891
890
  ] });
892
891
  }, pt = D(dt), mt = () => {
893
892
  const { debts: a } = C(), { showError: o, showCompleted: n } = R(), [r, t] = y.useState(0);
894
- return /* @__PURE__ */ s($, { children: [
893
+ return /* @__PURE__ */ s(L, { children: [
895
894
  (o || n) && /* @__PURE__ */ e(pt, { setTabValue: t, sx: { mt: -24 } }),
896
895
  /* @__PURE__ */ s(
897
- Le,
896
+ $e,
898
897
  {
899
898
  "aria-label": a.details_tabs_aria_label,
900
899
  centered: !0,
@@ -926,7 +925,7 @@ const ye = ({
926
925
  /* @__PURE__ */ e(de, { index: 1, name: "debt-details", value: r, children: /* @__PURE__ */ e(ct, {}) })
927
926
  ] });
928
927
  }, ht = D(mt), ut = ({ isOpen: a, onClose: o, sx: n }) => {
929
- const { debts: r } = C(), { showError: t, showCompleted: l } = R(), d = t || l ? /* @__PURE__ */ e($, {}) : /* @__PURE__ */ e(rt, {});
928
+ const { debts: r } = C(), { showError: t, showCompleted: l } = R(), d = t || l ? /* @__PURE__ */ e(L, {}) : /* @__PURE__ */ e(rt, {});
930
929
  return /* @__PURE__ */ e(
931
930
  te,
932
931
  {
@@ -1243,15 +1242,15 @@ const wt = (a) => {
1243
1242
  }, Tt = D(({ buttonEl: a, onClose: o }) => {
1244
1243
  const { onEvent: n } = M(), { debts: r } = C(), { selectedDebtPriority: t, setSelectedDebtPriority: l } = R(), d = !!a, m = [
1245
1244
  {
1246
- priority: L.HIGHEST_INTEREST,
1245
+ priority: $.HIGHEST_INTEREST,
1247
1246
  text: r.priority_sort_highest_interest
1248
1247
  },
1249
1248
  {
1250
- priority: L.LOWEST_BALANCE,
1249
+ priority: $.LOWEST_BALANCE,
1251
1250
  text: r.priority_sort_lowest_balance
1252
1251
  },
1253
1252
  {
1254
- priority: L.HIGHEST_BALANCE,
1253
+ priority: $.HIGHEST_BALANCE,
1255
1254
  text: r.priority_sort_highest_balance
1256
1255
  }
1257
1256
  ], c = (h) => {
@@ -1305,9 +1304,9 @@ const wt = (a) => {
1305
1304
  }, d = () => {
1306
1305
  t(null);
1307
1306
  }, m = !!r, c = y.useMemo(() => ({
1308
- [L.HIGHEST_INTEREST]: o.priority_sort_highest_interest,
1309
- [L.HIGHEST_BALANCE]: o.priority_sort_highest_balance,
1310
- [L.LOWEST_BALANCE]: o.priority_sort_lowest_balance
1307
+ [$.HIGHEST_INTEREST]: o.priority_sort_highest_interest,
1308
+ [$.HIGHEST_BALANCE]: o.priority_sort_highest_balance,
1309
+ [$.LOWEST_BALANCE]: o.priority_sort_lowest_balance
1311
1310
  })[n] ?? o.priority_sort_lowest_balance, [n]);
1312
1311
  return /* @__PURE__ */ s(_, { children: [
1313
1312
  /* @__PURE__ */ e(vt, { buttonText: c, isOpen: m, onClick: l }),
@@ -1451,10 +1450,10 @@ const wt = (a) => {
1451
1450
  ]
1452
1451
  }
1453
1452
  );
1454
- }, wr = D(Bt);
1453
+ }, gr = D(Bt);
1455
1454
  export {
1456
1455
  ye as DebtsChart,
1457
- Sr as DebtsStore,
1456
+ Dr as DebtsStore,
1458
1457
  St as DebtsTable,
1459
- wr as DebtsWidget
1458
+ gr as DebtsWidget
1460
1459
  };