@mx-cartographer/experiences 7.0.27-alpha.sms5 → 7.0.27-alpha.sms6

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.
Files changed (54) hide show
  1. package/dist/{Account-BW3-oYEs.mjs → Account-CK-DrCEa.mjs} +1 -1
  2. package/dist/{AccountDetailsContent-UxSEMBo_.mjs → AccountDetailsContent-BZAbCT6q.mjs} +8 -8
  3. package/dist/{AccountDetailsHeader-Eb3WvBGm.mjs → AccountDetailsHeader-DXTi1p0V.mjs} +11 -11
  4. package/dist/{AccountFields-CIz-r3gP.mjs → AccountFields-Bxvi1C4Z.mjs} +2 -2
  5. package/dist/{AccountListItem-B-ZjJ4Gp.mjs → AccountListItem-CnE3rCVZ.mjs} +3 -3
  6. package/dist/{AccountStore-BaMynkQT.mjs → AccountStore-DiGbJBUT.mjs} +2 -2
  7. package/dist/{Accounts-CA-nqAjT.mjs → Accounts-BBkQjUmS.mjs} +1 -1
  8. package/dist/{BudgetUtil-CeSLAcsl.mjs → BudgetUtil-D5jO0box.mjs} +1 -1
  9. package/dist/{CategorySelectorDrawer-BJ9jlCyt.mjs → CategorySelectorDrawer-joMax4Fb.mjs} +1 -1
  10. package/dist/{ConnectDrawer-phFH6OHt.mjs → ConnectDrawer-D86nRDxQ.mjs} +1 -1
  11. package/dist/{ConnectionsDrawer-ihxkAi1P.mjs → ConnectionsDrawer-BkNr5Up0.mjs} +2 -2
  12. package/dist/{CurrencyInput-bEx2Mbd0.mjs → CurrencyInput-BkflFU_-.mjs} +1 -1
  13. package/dist/{DebtsStore-VkyMADzd.mjs → DebtsStore-qrqY9Abz.mjs} +1 -1
  14. package/dist/{ExportCsvAction-CbdFfDV5.mjs → ExportCsvAction-DRfdZis1.mjs} +3 -3
  15. package/dist/{GoalStore-eSOkI6uE.mjs → GoalStore-BQRcowCN.mjs} +2 -2
  16. package/dist/{Help-KAAMEubC.mjs → Help-B3dFeYi2.mjs} +1 -1
  17. package/dist/{LineChart-BWWmmJxV.mjs → LineChart-Dyps2sOy.mjs} +1 -1
  18. package/dist/{ListItemAction-DNZZ5fSa.mjs → ListItemAction-BgKx_n6d.mjs} +1 -1
  19. package/dist/{ManageIncome-DbsiKUoO.mjs → ManageIncome-CFh-N0KK.mjs} +4 -4
  20. package/dist/{MicroWidgetContainer-Dxz8uBN9.mjs → MicroWidgetContainer-DPDsZIiS.mjs} +1 -1
  21. package/dist/{MiniWidgetContainer-CTyjmE1h.mjs → MiniWidgetContainer-BzW7V_04.mjs} +1 -1
  22. package/dist/{NetWorthStore-B6xF9eGH.mjs → NetWorthStore-DWG9Mkuu.mjs} +2 -2
  23. package/dist/{NotificationSettings-D9eiZJk9.mjs → NotificationSettings-BaG4tpPe.mjs} +219 -214
  24. package/dist/{OriginalBalanceAction-DepsKiJz.mjs → OriginalBalanceAction-B--pIAF0.mjs} +3 -3
  25. package/dist/{RecurringSettings-Dj29piAQ.mjs → RecurringSettings-C9TjSuS_.mjs} +3 -3
  26. package/dist/{TransactionDetails-C-z3HGTT.mjs → TransactionDetails-C2gYzV0z.mjs} +37 -37
  27. package/dist/{TransactionStore-Cep_Eeql.mjs → TransactionStore-CZOvxcSw.mjs} +2 -2
  28. package/dist/{TrendsStore-WrHxzdbQ.mjs → TrendsStore-pvzHAX6B.mjs} +225 -231
  29. package/dist/{User-Dq9Qj764.mjs → User-D-O9EHMb.mjs} +1 -1
  30. package/dist/{WidgetContainer-CdBs9WOZ.mjs → WidgetContainer-Bn6JPnY3.mjs} +2 -2
  31. package/dist/accounts/index.es.js +12 -12
  32. package/dist/analytics/index.es.js +11 -11
  33. package/dist/budgets/index.es.js +10 -10
  34. package/dist/cashflow/index.es.js +7 -7
  35. package/dist/categories/index.es.js +1 -1
  36. package/dist/common/index.es.js +105 -104
  37. package/dist/dashboard/index.es.js +2 -2
  38. package/dist/debts/index.es.js +9 -9
  39. package/dist/{exportTransactionsToCSV-B5qAKd6C.mjs → exportTransactionsToCSV-zyHeWfQo.mjs} +1 -1
  40. package/dist/finstrong/index.es.js +6 -6
  41. package/dist/goals/index.es.js +11 -11
  42. package/dist/help/index.es.js +3 -3
  43. package/dist/{hooks-DkUqN6JE.mjs → hooks-DlI63qSB.mjs} +8 -8
  44. package/dist/investments/index.es.js +3 -3
  45. package/dist/merchants/index.es.js +1 -1
  46. package/dist/networth/index.es.js +7 -7
  47. package/dist/notifications/index.es.js +2 -2
  48. package/dist/recurringtransactions/index.es.js +8 -8
  49. package/dist/settings/index.es.js +6 -6
  50. package/dist/spending/index.es.js +14 -14
  51. package/dist/transactions/index.es.js +13 -13
  52. package/dist/trends/index.es.js +70 -69
  53. package/dist/useInsightsEnabled-fGr6xrSj.mjs +11 -0
  54. package/package.json +1 -1
@@ -2,10 +2,10 @@ import { jsx as o } from "react/jsx-runtime";
2
2
  import _ from "react";
3
3
  import { observer as p } from "mobx-react-lite";
4
4
  import v from "@mui/material/TextField";
5
- import { L as y } from "./ListItemAction-DNZZ5fSa.mjs";
6
- import { u as h, j as b } from "./hooks-DkUqN6JE.mjs";
5
+ import { L as y } from "./ListItemAction-BgKx_n6d.mjs";
6
+ import { u as h, k as b } from "./hooks-DlI63qSB.mjs";
7
7
  import { a as T, f as S } from "./NumberFormatting-CtWHhyBX.mjs";
8
- import { C as f } from "./CurrencyInput-bEx2Mbd0.mjs";
8
+ import { C as f } from "./CurrencyInput-BkflFU_-.mjs";
9
9
  const F = p(({ goal: e }) => {
10
10
  const { goals: a } = h(), { setAlert: r, setSelectedGoal: l, updateGoal: m } = b(), [t, s] = _.useState(e.interest_rate ?? 0), c = !e.guid, i = t < 0, d = async () => {
11
11
  const n = { ...e, interest_rate: t };
@@ -7,10 +7,10 @@ import R from "@mui/material/Tabs";
7
7
  import l from "@mui/material/Divider";
8
8
  import T from "@mui/material/List";
9
9
  import C from "@mui/material/Stack";
10
- import { R as x, A as S, a as E, M as A } from "./ManageIncome-DbsiKUoO.mjs";
11
- import { u as h, h as y, e as _ } from "./hooks-DkUqN6JE.mjs";
10
+ import { R as x, A as S, a as E, M as A } from "./ManageIncome-CFh-N0KK.mjs";
11
+ import { u as h, i as y, f as _ } from "./hooks-DlI63qSB.mjs";
12
12
  import { R as v, F as N } from "./RepeatingTransaction-BW4J-jeJ.mjs";
13
- import { A as d } from "./WidgetContainer-CdBs9WOZ.mjs";
13
+ import { A as d } from "./WidgetContainer-Bn6JPnY3.mjs";
14
14
  const I = u(() => {
15
15
  const { recurring: r } = h(), { repeatingTransactions: s } = y(), { onEvent: o } = _(), a = (n) => {
16
16
  o(d.RECURRING_TRANSACTIONS_CLICK_EXPENSE, {
@@ -1,7 +1,7 @@
1
1
  import { jsxs as l, jsx as e } from "react/jsx-runtime";
2
2
  import _ from "react";
3
3
  import { observer as b } from "mobx-react-lite";
4
- import { useVirtualizer as Re } from "@tanstack/react-virtual";
4
+ import { useVirtualizer as ke } from "@tanstack/react-virtual";
5
5
  import w from "@mui/material/Box";
6
6
  import Z from "@mui/material/Divider";
7
7
  import J from "@mui/material/List";
@@ -9,15 +9,15 @@ import { MerchantLogo as pe, Icon as S, Text as T, useTokens as ee, CategoryIcon
9
9
  import B from "@mui/material/ListItemAvatar";
10
10
  import M from "@mui/material/ListItemText";
11
11
  import f from "@mui/material/Stack";
12
- import { T as Pe, L as Ge, O as h, C as Me, b as Ke, i as $e } from "./User-Dq9Qj764.mjs";
13
- import { G as Be, f as v, u as A, e as L, k as xe, a as Fe, o as He } from "./hooks-DkUqN6JE.mjs";
12
+ import { T as Pe, L as Ge, O as h, C as Me, b as Ke, i as $e } from "./User-D-O9EHMb.mjs";
13
+ import { G as Be, g as v, u as A, f as L, l as xe, a as Fe, o as He } from "./hooks-DlI63qSB.mjs";
14
14
  import { f as te } from "./NumberFormatting-CtWHhyBX.mjs";
15
15
  import { Receipt as ze, Delete as oe, ChevronRight as Ue, Cancel as ie, Search as Xe, Edit as Ve, Flag as We } from "@mxenabled/mx-icons";
16
16
  import { fromUnixTime as W } from "date-fns/fromUnixTime";
17
17
  import { isSameDay as Ne } from "date-fns/isSameDay";
18
18
  import { h as Ye } from "./DateUtil-BcuH7ErC.mjs";
19
19
  import { L as Ie } from "./Loader-DUaFpDGv.mjs";
20
- import { A as P } from "./WidgetContainer-CdBs9WOZ.mjs";
20
+ import { A as P } from "./WidgetContainer-Bn6JPnY3.mjs";
21
21
  import ne from "@mui/material/Paper";
22
22
  import ce from "@mui/material/Button";
23
23
  import je from "@mui/material/FormGroup";
@@ -30,14 +30,14 @@ import F from "@mui/material/ListItem";
30
30
  import { a as V, f as Ee, D as Oe } from "./Dialog-CWW597AF.mjs";
31
31
  import U from "@mui/material/ListItemButton";
32
32
  import X from "@mui/material/ListItemIcon";
33
- import { a as we } from "./CategorySelectorDrawer-BJ9jlCyt.mjs";
33
+ import { a as we } from "./CategorySelectorDrawer-joMax4Fb.mjs";
34
34
  import { b as se } from "./Localization-2MODESHW.mjs";
35
35
  import { getUnixTime as Ze } from "date-fns/getUnixTime";
36
36
  import { D as de } from "./Drawer-kEE73B87.mjs";
37
37
  import ye from "@mui/material/InputAdornment";
38
38
  import Je from "@mui/material/Checkbox";
39
39
  import ge from "@mui/material/Grid";
40
- import { C as Qe } from "./CurrencyInput-bEx2Mbd0.mjs";
40
+ import { C as Qe } from "./CurrencyInput-BkflFU_-.mjs";
41
41
  import et from "@mui/material/Switch";
42
42
  var q = /* @__PURE__ */ ((t) => (t[t.Category = 0] = "Category", t[t.Date = 1] = "Date", t[t.Memo = 2] = "Memo", t[t.Tags = 3] = "Tags", t))(q || {}), re = /* @__PURE__ */ ((t) => (t[t.SplitTransaction = 0] = "SplitTransaction", t[t.HideTransaction = 1] = "HideTransaction", t[t.MerchantLogo = 2] = "MerchantLogo", t))(re || {});
43
43
  const tt = [
@@ -166,18 +166,18 @@ const it = ({ transaction: t, onClick: r }) => {
166
166
  }) => {
167
167
  const { isLoading: m, sortedTransactions: g } = v(), p = _.useMemo(() => {
168
168
  const I = r ? g.filter(r) : g;
169
- return d ? I : I.filter((R) => !R.is_hidden);
170
- }, [g, d]), { clearExpandedSplits: x, setShowInsights: y, toggleSplit: N } = G(), { onEvent: C } = L(), k = (I) => {
171
- const R = p.find((Y) => Y.guid === I);
172
- if (R?.has_been_split) {
173
- N(R.guid);
169
+ return d ? I : I.filter((k) => !k.is_hidden);
170
+ }, [g, d]), { clearExpandedSplits: x, setShowInsights: y, toggleSplit: N } = G(), { onEvent: C } = L(), R = (I) => {
171
+ const k = p.find((Y) => Y.guid === I);
172
+ if (k?.has_been_split) {
173
+ N(k.guid);
174
174
  return;
175
175
  }
176
176
  C(P.ACCOUNT_DETAILS_CLICK_TRANSACTION, {
177
- account_guid: R?.account_guid,
177
+ account_guid: k?.account_guid,
178
178
  transaction_guid: I
179
179
  }), o?.(I);
180
- }, K = _.useRef(null), $ = Re({
180
+ }, K = _.useRef(null), $ = ke({
181
181
  count: p.length,
182
182
  getScrollElement: () => K.current,
183
183
  estimateSize: (I) => Ce + (Se(I, p) ? fe : 0),
@@ -196,7 +196,7 @@ const it = ({ transaction: t, onClick: r }) => {
196
196
  (m || c) && s,
197
197
  !m && !c && $.getVirtualItems().length === 0 && u,
198
198
  !m && !c && $.getVirtualItems().length > 0 && $.getVirtualItems().map((I) => {
199
- const R = p[I.index], Y = Se(I.index, p), _e = _t(I.index, p), ue = Ce + (Y ? fe : 0);
199
+ const k = p[I.index], Y = Se(I.index, p), _e = _t(I.index, p), ue = Ce + (Y ? fe : 0);
200
200
  return /* @__PURE__ */ l(
201
201
  w,
202
202
  {
@@ -207,30 +207,30 @@ const it = ({ transaction: t, onClick: r }) => {
207
207
  width: "100%"
208
208
  },
209
209
  children: [
210
- Y && /* @__PURE__ */ e(lt, { bgcolor: t, children: Ye(R.date) }),
211
- /* @__PURE__ */ e(st, { onClick: k, transaction: R }),
210
+ Y && /* @__PURE__ */ e(lt, { bgcolor: t, children: Ye(k.date) }),
211
+ /* @__PURE__ */ e(st, { onClick: R, transaction: k }),
212
212
  /* @__PURE__ */ e(Z, { sx: { ml: _e ? 24 : 0 } })
213
213
  ]
214
214
  },
215
- R.guid
215
+ k.guid
216
216
  );
217
217
  })
218
218
  ]
219
219
  }
220
220
  ) }) });
221
- }, ka = b(ut), mt = ({ transaction: t }) => {
221
+ }, Ra = b(ut), mt = ({ transaction: t }) => {
222
222
  const { addOrUpdateTransactionRule: r, updateTransaction: a } = v(), { categories: s } = xe(), { onEvent: o } = L(), { setShouldDisableDrawerScroll: n, updateManualTransaction: c } = G(), { transactions: d } = A(), [i, u] = _.useState(!1), [m, g] = _.useState(""), p = async (C) => {
223
223
  await a({ ...t, category_guid: m }), C && await r(m, t), g(""), o(P.TRANSACTION_DETAILS_CLICK_CATEGORY, {
224
224
  transaction_guid: t.guid
225
225
  });
226
226
  }, x = (C) => {
227
227
  if (t.is_manual && !t.guid) {
228
- const k = s.find((K) => K.guid === C);
228
+ const R = s.find((K) => K.guid === C);
229
229
  c({
230
230
  ...t,
231
- category: k?.name,
231
+ category: R?.name,
232
232
  category_guid: C,
233
- top_level_category_guid: k?.parent_guid || C
233
+ top_level_category_guid: R?.parent_guid || C
234
234
  });
235
235
  } else
236
236
  g(C);
@@ -775,7 +775,7 @@ const it = ({ transaction: t, onClick: r }) => {
775
775
  }, [m, g] = _.useState(!1), [p, x] = _.useState(!1), [y, N] = _.useState([]), C = () => {
776
776
  const E = [...y];
777
777
  E.push({ ...u }), E[0].amount -= 1, N(E);
778
- }, k = (E) => {
778
+ }, R = (E) => {
779
779
  if (E > 0) {
780
780
  const H = y[E], O = [...y];
781
781
  O.splice(E, 1), O[0].amount += H.amount, N(O);
@@ -783,7 +783,7 @@ const it = ({ transaction: t, onClick: r }) => {
783
783
  }, K = (E, H) => {
784
784
  const O = [...y];
785
785
  O[E].amount = H, O[0].amount = t.amount - O.reduce(
786
- (j, me, ke) => j + (ke !== 0 ? me.amount : 0),
786
+ (j, me, Re) => j + (Re !== 0 ? me.amount : 0),
787
787
  0
788
788
  ), N(O);
789
789
  }, $ = (E, H) => {
@@ -802,7 +802,7 @@ const it = ({ transaction: t, onClick: r }) => {
802
802
  N([{ ...i }, { ...u }]), r(P.TRANSACTION_DETAILS_CLICK_SPLIT, {
803
803
  transaction_guid: t.guid
804
804
  }), g(!0);
805
- }, R = async () => {
805
+ }, k = async () => {
806
806
  r(h.ON_TRANSACTION_SPLIT_SAVE_CLICK), await a({ ...t, has_been_split: !0 }, y), g(!1);
807
807
  }, Y = async () => {
808
808
  r(h.ON_TRANSACTION_SPLIT_CANCEL_CLICK), N([{ ...i }, { ...u }]), g(!1);
@@ -835,7 +835,7 @@ const it = ({ transaction: t, onClick: r }) => {
835
835
  isOpen: m,
836
836
  isPrimaryDisabled: ue,
837
837
  onClose: Y,
838
- onPrimaryAction: R,
838
+ onPrimaryAction: k,
839
839
  primaryText: o.save_button,
840
840
  secondaryText: o.cancel_button,
841
841
  title: n.split_transaction_title,
@@ -846,7 +846,7 @@ const it = ({ transaction: t, onClick: r }) => {
846
846
  {
847
847
  onAddSplit: C,
848
848
  onCategoryChanged: $,
849
- onDeleteSplit: k,
849
+ onDeleteSplit: R,
850
850
  onUpdateAmount: K,
851
851
  splits: y,
852
852
  transaction: t
@@ -963,10 +963,10 @@ const it = ({ transaction: t, onClick: r }) => {
963
963
  value: r
964
964
  }
965
965
  ) });
966
- }, Lt = b(wt), kt = ({ onTagChecked: t, selectedTags: r, tag: a }) => {
966
+ }, Lt = b(wt), Rt = ({ onTagChecked: t, selectedTags: r, tag: a }) => {
967
967
  const { onEvent: s } = L(), { removeTag: o, updateTag: n } = v(), { common: c, transactions: d } = A(), [i, u] = _.useState(!1), [m, g] = _.useState(!1), [p, x] = _.useState(""), [y, N] = _.useState(""), C = async () => {
968
968
  s(h.ON_TRANSACTION_TAGS_TAG_EDIT_SAVED), a && await n({ ...a, name: p }), u(!1);
969
- }, k = async () => {
969
+ }, R = async () => {
970
970
  s(h.ON_TRANSACTION_TAGS_TAG_DELETED), await o(a.guid), g(!1);
971
971
  };
972
972
  _.useEffect(() => {
@@ -1047,7 +1047,7 @@ const it = ({ transaction: t, onClick: r }) => {
1047
1047
  copy: { title: d.tags_delete_title },
1048
1048
  isOpen: m,
1049
1049
  onClose: () => g(!1),
1050
- onPrimaryAction: k,
1050
+ onPrimaryAction: R,
1051
1051
  onSecondaryAction: () => s(h.ON_TRANSACTION_TAGS_TAG_DELETE_CANCEL_CLICK),
1052
1052
  primaryText: c.delete_button,
1053
1053
  secondaryText: c.cancel_button,
@@ -1057,7 +1057,7 @@ const it = ({ transaction: t, onClick: r }) => {
1057
1057
  ]
1058
1058
  }
1059
1059
  );
1060
- }, Rt = b(kt), Pt = ({ selectedTags: t, onTagChecked: r }) => {
1060
+ }, kt = b(Rt), Pt = ({ selectedTags: t, onTagChecked: r }) => {
1061
1061
  const { tags: a } = v(), [s, o] = _.useState(""), n = a.filter(
1062
1062
  (c) => c.name.toLowerCase().includes(s.toLowerCase())
1063
1063
  );
@@ -1071,7 +1071,7 @@ const it = ({ transaction: t, onClick: r }) => {
1071
1071
  ),
1072
1072
  /* @__PURE__ */ e(Ot, {}),
1073
1073
  /* @__PURE__ */ e(ne, { sx: { boxShadow: "none" }, children: /* @__PURE__ */ e(J, { children: n.map((c) => /* @__PURE__ */ l(_.Fragment, { children: [
1074
- /* @__PURE__ */ e(Rt, { onTagChecked: r, selectedTags: t, tag: c }),
1074
+ /* @__PURE__ */ e(kt, { onTagChecked: r, selectedTags: t, tag: c }),
1075
1075
  /* @__PURE__ */ e(Z, { sx: { ml: 24 } })
1076
1076
  ] }, c.guid)) }) })
1077
1077
  ] });
@@ -1081,8 +1081,8 @@ const it = ({ transaction: t, onClick: r }) => {
1081
1081
  g(t.tags);
1082
1082
  }, [i, t]);
1083
1083
  const p = (N) => {
1084
- const C = [...m], k = m.indexOf(N);
1085
- k >= 0 ? C.splice(k, 1) : C.push(N), g(C);
1084
+ const C = [...m], R = m.indexOf(N);
1085
+ R >= 0 ? C.splice(R, 1) : C.push(N), g(C);
1086
1086
  }, x = async () => {
1087
1087
  if (t.is_manual && !t.guid) {
1088
1088
  d({ ...t, tags: m }), u(!1);
@@ -1091,7 +1091,7 @@ const it = ({ transaction: t, onClick: r }) => {
1091
1091
  await s(m, t.guid), await o({ ...t, tags: m }), r(P.TRANSACTION_DETAILS_CLICK_TAGS, { transaction_guid: t.guid }), u(!1);
1092
1092
  }, y = _.useMemo(
1093
1093
  () => t.tags.map(
1094
- (N, C, k) => `${a.find((K) => K.guid === N)?.name}${C < k.length - 1 ? " / " : ""}`
1094
+ (N, C, R) => `${a.find((K) => K.guid === N)?.name}${C < R.length - 1 ? " / " : ""}`
1095
1095
  ),
1096
1096
  [a, t]
1097
1097
  );
@@ -1321,15 +1321,15 @@ const it = ({ transaction: t, onClick: r }) => {
1321
1321
  ] }) })
1322
1322
  ] })
1323
1323
  ] }) });
1324
- }, Ra = b(Xt);
1324
+ }, ka = b(Xt);
1325
1325
  export {
1326
1326
  re as B,
1327
1327
  mt as C,
1328
1328
  gt as D,
1329
1329
  bt as M,
1330
1330
  lt as S,
1331
- ka as T,
1332
- Ra as a,
1331
+ Ra as T,
1332
+ ka as a,
1333
1333
  st as b,
1334
1334
  Kt as c,
1335
1335
  q as d,
@@ -13,10 +13,10 @@ import { isBefore as B } from "date-fns/isBefore";
13
13
  import { startOfMonth as R } from "date-fns/startOfMonth";
14
14
  import { startOfToday as b } from "date-fns/startOfToday";
15
15
  import { subDays as Y } from "date-fns/subDays";
16
- import { O as n, a as G, T as F } from "./User-Dq9Qj764.mjs";
16
+ import { O as n, a as G, T as F } from "./User-D-O9EHMb.mjs";
17
17
  import { T as p } from "./TransactionApi-DbbcjI2L.mjs";
18
18
  import { b as W } from "./Category-CevNQ03n.mjs";
19
- import { f as z } from "./exportTransactionsToCSV-B5qAKd6C.mjs";
19
+ import { f as z } from "./exportTransactionsToCSV-zyHeWfQo.mjs";
20
20
  import { format as k } from "date-fns/format";
21
21
  import { f as g, D as O, O as $ } from "./Dialog-CWW597AF.mjs";
22
22
  import { endOfMonth as X } from "date-fns/endOfMonth";