@mx-cartographer/experiences 7.0.16 → 7.0.17-alpha-debts-missing-sorting-option-ram

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.18] - 09-23-2025
2
+
3
+ - **UPDATED** - Added a missing sorting option in the DebtsWidget - Fastest Payoff First
4
+
5
+ ## [7.0.17] - 09-23-2025
6
+
7
+ - **FIXED** - Budgets | Show the `Export CSV` button only in screens above 900px.
8
+
1
9
  ## [7.0.16] - 09-22-2025
2
10
 
3
11
  - **FIXED** - Connect Accounts CTA was showing in goals widget when aggregation disabled
@@ -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
  };