@mx-cartographer/experiences 7.0.18 → 7.0.20-alpha.al0

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,11 @@
1
+ ## [7.0.20] - 09-23-2025
2
+
3
+ - **UPDATED** - Empty states for trends and goals
4
+
5
+ ## [7.0.19] - 09-24-2025
6
+
7
+ - **UPDATED** - Added a missing sorting option in the DebtsWidget - Fastest Payoff First
8
+
1
9
  ## [7.0.18] - 09-23-2025
2
10
 
3
11
  - **FIXED** - Notification Settings Bug Fixed | Delivery Methods Status is not updating for each notification types under notifications
@@ -1,31 +1,32 @@
1
1
  import { makeAutoObservable as l } from "mobx";
2
- import { getDate as o, fromUnixTime as m, startOfMonth as _ } from "date-fns";
3
- import { A as b } from "./ConnectDrawer-phFH6OHt.mjs";
4
- var u = /* @__PURE__ */ ((a) => (a[a.HIGHEST_INTEREST = 1] = "HIGHEST_INTEREST", a[a.LOWEST_BALANCE = 2] = "LOWEST_BALANCE", a[a.HIGHEST_BALANCE = 3] = "HIGHEST_BALANCE", a))(u || {});
5
- const p = {
2
+ import { getDate as r, fromUnixTime as _, startOfMonth as m } from "date-fns";
3
+ import { A as p } from "./ConnectDrawer-phFH6OHt.mjs";
4
+ const E = 12, T = 100;
5
+ var c = /* @__PURE__ */ ((a) => (a[a.FASTEST_PAYOFF_FIRST = 1] = "FASTEST_PAYOFF_FIRST", a[a.HIGHEST_INTEREST = 2] = "HIGHEST_INTEREST", a[a.LOWEST_BALANCE = 3] = "LOWEST_BALANCE", a[a.HIGHEST_BALANCE = 4] = "HIGHEST_BALANCE", a))(c || {});
6
+ const b = {
6
7
  unnamed_label: "Unnamed Debt"
7
8
  };
8
9
  function y(a, e) {
9
- const t = a.filter((n) => n.account_type === b.CHECKING_LINE_OF_CREDIT ? Number(n.balance) <= 0 : n.is_excluded_from_debts !== !0), s = e.filter((n) => t.some((i) => i.guid === n.account_guid)).map(
10
+ const t = a.filter((n) => n.account_type === p.CHECKING_LINE_OF_CREDIT ? Number(n.balance) <= 0 : n.is_excluded_from_debts !== !0), s = e.filter((n) => t.some((i) => i.guid === n.account_guid)).map(
10
11
  (n) => d(t.find((i) => i.guid === n.account_guid), n)
11
- ), r = t.filter((n) => !s.some((i) => i.account.guid === n.guid)).map((n) => d(n));
12
- return [...s, ...r];
12
+ ), o = t.filter((n) => !s.some((i) => i.account.guid === n.guid)).map((n) => d(n));
13
+ return [...s, ...o];
13
14
  }
14
15
  function d(a, e) {
15
16
  const t = { account: a, goal: e, guid: a.guid };
16
17
  if (e) {
17
- const s = e.payment_due_at ? o(m(e.payment_due_at)) : 1, r = _(/* @__PURE__ */ new Date()).setDate(s);
18
- t.balance = Math.abs(e.amount - e.current_amount), t.interest_rate = e.interest_rate, t.is_paid_off = e.is_complete, t.monthly_payment = e.monthly_payment, t.name = e.name, t.original_balance = e.initial_amount, t.payment_due_date = r;
18
+ const s = e.payment_due_at ? r(_(e.payment_due_at)) : 1, o = m(/* @__PURE__ */ new Date()).setDate(s);
19
+ t.balance = Math.abs(e.amount - e.current_amount), t.interest_rate = e.interest_rate, t.is_paid_off = e.is_complete, t.monthly_payment = e.monthly_payment, t.name = e.name, t.original_balance = e.initial_amount, t.payment_due_date = o;
19
20
  } else {
20
- const s = a.payment_due_at ? o(m(a.payment_due_at)) : 1, r = _(/* @__PURE__ */ new Date()).setDate(s), n = a.balance ?? 0, i = a.minimum_payment ?? void 0, c = a.interest_rate ?? a.apr ?? a.apy;
21
- t.balance = Math.max(n, 0), t.interest_rate = c, t.is_paid_off = n === 0, t.monthly_payment = i, t.name = a?.name ?? p.unnamed_label, t.original_balance = a.original_balance, t.payment_due_date = r;
21
+ const s = a.payment_due_at ? r(_(a.payment_due_at)) : 1, o = m(/* @__PURE__ */ new Date()).setDate(s), n = a.balance ?? 0, i = a.minimum_payment ?? void 0, u = a.interest_rate ?? a.apr ?? a.apy;
22
+ t.balance = Math.max(n, 0), t.interest_rate = u, t.is_paid_off = n === 0, t.monthly_payment = i, t.name = a?.name ?? b.unnamed_label, t.original_balance = a.original_balance, t.payment_due_date = o;
22
23
  }
23
24
  return t.is_impossible = !1, t.priority = void 0, t.projected_payoff_date = void 0, t;
24
25
  }
25
26
  class h {
26
27
  isLoading = !1;
27
28
  selectedDebtChartData = {};
28
- selectedDebtPriority = u.LOWEST_BALANCE;
29
+ selectedDebtPriority = c.LOWEST_BALANCE;
29
30
  constructor() {
30
31
  l(this);
31
32
  }
@@ -40,7 +41,7 @@ class h {
40
41
  setSelectedDebtChartData = (e) => this.selectedDebtChartData = e;
41
42
  setSelectedDebtPriority = (e) => this.selectedDebtPriority = e;
42
43
  }
43
- class E {
44
+ class A {
44
45
  globalStore;
45
46
  uiStore;
46
47
  constructor(e) {
@@ -55,6 +56,8 @@ class E {
55
56
  }
56
57
  }
57
58
  export {
58
- u as D,
59
- E as a
59
+ c as D,
60
+ T as I,
61
+ E as M,
62
+ A as a
60
63
  };
@@ -61,7 +61,7 @@ import { startOfMonth as J } from "date-fns/startOfMonth";
61
61
  import { startOfToday as L } from "date-fns/startOfToday";
62
62
  import { f as bt, a as wt, b as O } from "../BudgetUtil-CeSLAcsl.mjs";
63
63
  import { g as Yr, e as zr, c as Xr, d as Kr, i as jr } from "../BudgetUtil-CeSLAcsl.mjs";
64
- import { a as xt } from "../DebtsStore-Dp-CraCD.mjs";
64
+ import { a as xt } from "../DebtsStore-VkyMADzd.mjs";
65
65
  import { a as Ct } from "../FinstrongStore-mkALvztw.mjs";
66
66
  import { A as Dt, m as vt, a as At, b as Et } from "../InvestmentUtil-jOyOgzIB.mjs";
67
67
  import { M as Tt } from "../MerchantStore-DVH-QOf0.mjs";
@@ -23,6 +23,7 @@ export interface DebtsCopy {
23
23
  paydown_drawer_subtitle: string;
24
24
  paydown_drawer_title: string;
25
25
  paydown_drawer_total_payment: string;
26
+ priority_sort_fastest_payoff: string;
26
27
  priority_sort_highest_balance: string;
27
28
  priority_sort_highest_interest: string;
28
29
  priority_sort_lowest_balance: string;
@@ -1,5 +1,8 @@
1
- export declare enum DebtPrioriy {
2
- HIGHEST_INTEREST = 1,
3
- LOWEST_BALANCE = 2,
4
- HIGHEST_BALANCE = 3
1
+ export declare const MONTHS = 12;
2
+ export declare const INTEREST_TO_DECIMAL = 100;
3
+ export declare enum DebtPriority {
4
+ FASTEST_PAYOFF_FIRST = 1,
5
+ HIGHEST_INTEREST = 2,
6
+ LOWEST_BALANCE = 3,
7
+ HIGHEST_BALANCE = 4
5
8
  }