@mx-cartographer/experiences 6.18.4 → 6.18.5-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/dist/index.es.js CHANGED
@@ -42,7 +42,7 @@ import { eachWeekOfInterval as wl } from "date-fns/eachWeekOfInterval";
42
42
  import { endOfMonth as ze } from "date-fns/endOfMonth";
43
43
  import { format as Pn } from "date-fns/format";
44
44
  import { isSameMonth as Nl } from "date-fns/isSameMonth";
45
- import { startOfMonth as Je } from "date-fns/startOfMonth";
45
+ import { startOfMonth as nt } from "date-fns/startOfMonth";
46
46
  import { subMonths as Bt } from "date-fns/subMonths";
47
47
  import At from "@mui/material/Paper";
48
48
  import Dl from "@mui/icons-material/KeyboardArrowLeftRounded";
@@ -63,7 +63,7 @@ import { startOfYear as Uo } from "date-fns/startOfYear";
63
63
  import { subDays as It } from "date-fns/subDays";
64
64
  import { subYears as Ma } from "date-fns/subYears";
65
65
  import Yl from "@mui/material/ButtonGroup";
66
- import nt from "@mui/material/Tab";
66
+ import tt from "@mui/material/Tab";
67
67
  import qt from "@mui/material/Tabs";
68
68
  import $n from "@mui/material/ToggleButton";
69
69
  import Jn from "@mui/material/ToggleButtonGroup";
@@ -2008,7 +2008,7 @@ const V_ = ({
2008
2008
  h(n), p(i), n && _(n);
2009
2009
  }, [n, i]);
2010
2010
  const f = g.useMemo(() => {
2011
- const w = wl({ start: Je(d), end: ze(d) }), v = [];
2011
+ const w = wl({ start: nt(d), end: ze(d) }), v = [];
2012
2012
  for (let D = 0; D < w.length; D++) {
2013
2013
  const G = w[D], k = vl({ start: G, end: cn(G, 6) }), O = [];
2014
2014
  for (let M = 0; M < k.length; M++)
@@ -2571,7 +2571,7 @@ const V_ = ({
2571
2571
  };
2572
2572
  }, Ee = (V) => {
2573
2573
  m(V), i?.(V ?? "");
2574
- }, et = (V) => {
2574
+ }, Je = (V) => {
2575
2575
  a?.(V ?? "");
2576
2576
  }, Y = () => {
2577
2577
  const V = Ce(String(E)).guid;
@@ -2693,7 +2693,7 @@ const V_ = ({
2693
2693
  {
2694
2694
  categoryGuids: pe,
2695
2695
  hoveredLegend: h,
2696
- onClickLegend: et,
2696
+ onClickLegend: Je,
2697
2697
  onHoverLegend: Ee,
2698
2698
  sx: { px: _ ? 0 : 24 }
2699
2699
  }
@@ -2904,7 +2904,7 @@ const V_ = ({
2904
2904
  calendarActions: e,
2905
2905
  color: n = "primary",
2906
2906
  copy: i,
2907
- range: a = [Je(me()), ze(Sn())],
2907
+ range: a = [nt(me()), ze(Sn())],
2908
2908
  shouldShrinkToIcon: o = !0,
2909
2909
  variant: r = "outlined"
2910
2910
  }) => {
@@ -3072,7 +3072,7 @@ const V_ = ({
3072
3072
  value: w,
3073
3073
  variant: "fullWidth",
3074
3074
  children: D.tabs.map((R) => /* @__PURE__ */ t(
3075
- nt,
3075
+ tt,
3076
3076
  {
3077
3077
  label: /* @__PURE__ */ t(C, { bold: !0, variant: "Body", children: R.label }),
3078
3078
  sx: { minWidth: 80 },
@@ -3469,26 +3469,26 @@ const ha = ({
3469
3469
  ),
3470
3470
  n?.map((Ce) => {
3471
3471
  if (g.isValidElement(Ce)) return Ce;
3472
- const { iconName: Ee, onClick: et, label: Y } = Ce;
3472
+ const { iconName: Ee, onClick: Je, label: Y } = Ce;
3473
3473
  return pe ? w || D ? /* @__PURE__ */ t(
3474
3474
  q,
3475
3475
  {
3476
- onClick: et,
3476
+ onClick: Je,
3477
3477
  startIcon: /* @__PURE__ */ t($, { name: Ee, size: 24 }),
3478
3478
  sx: { my: 4 },
3479
3479
  children: Y
3480
3480
  },
3481
3481
  Ee
3482
- ) : /* @__PURE__ */ t(Fe, { "aria-label": Y, onClick: et, children: /* @__PURE__ */ t($, { name: Ee, size: 24 }) }, Ee) : w || D ? /* @__PURE__ */ t(
3482
+ ) : /* @__PURE__ */ t(Fe, { "aria-label": Y, onClick: Je, children: /* @__PURE__ */ t($, { name: Ee, size: 24 }) }, Ee) : w || D ? /* @__PURE__ */ t(
3483
3483
  q,
3484
3484
  {
3485
- onClick: et,
3485
+ onClick: Je,
3486
3486
  startIcon: /* @__PURE__ */ t($, { name: Ee, size: 24 }),
3487
3487
  sx: { my: 4 },
3488
3488
  children: Y
3489
3489
  },
3490
3490
  Ee
3491
- ) : /* @__PURE__ */ t(Fe, { "aria-label": Y, onClick: et, children: /* @__PURE__ */ t($, { name: Ee, size: 24 }) }, Ee);
3491
+ ) : /* @__PURE__ */ t(Fe, { "aria-label": Y, onClick: Je, children: /* @__PURE__ */ t($, { name: Ee, size: 24 }) }, Ee);
3492
3492
  })
3493
3493
  ] }),
3494
3494
  sx: {
@@ -4348,7 +4348,7 @@ class Su {
4348
4348
  api = new lr("/", "");
4349
4349
  globalStore;
4350
4350
  alert = "";
4351
- dateRange = { start: Je(me()), end: ze(me()) };
4351
+ dateRange = { start: nt(me()), end: ze(me()) };
4352
4352
  budgets = [];
4353
4353
  selectedBudget;
4354
4354
  selectedSubBudget;
@@ -4646,10 +4646,10 @@ const ii = () => {
4646
4646
  recurrenceDay: e.recurrence_day,
4647
4647
  repeatingTransactionGuid: e.guid,
4648
4648
  secondRecurrenceDay: e.second_recurrence_day,
4649
- status: tt.Upcoming,
4649
+ status: et.Upcoming,
4650
4650
  type: e.repeating_transaction_type === an.Income ? Yt.Income : Yt.Expense,
4651
4651
  transaction: void 0
4652
- }, r = Je(me()), s = ze(xt(me(), 1));
4652
+ }, r = nt(me()), s = ze(xt(me(), 1));
4653
4653
  switch (e.recurrence_type) {
4654
4654
  case Se.EveryWeek:
4655
4655
  n.push(...Nu(o, r, s));
@@ -4680,7 +4680,7 @@ const ii = () => {
4680
4680
  const d = e.transactions.find(
4681
4681
  (_) => _.repeating_transaction_guid === e.guid && _.date > Pe(It(c.expectedDate, 5)) && _.date < Pe(cn(c.expectedDate, 5))
4682
4682
  );
4683
- d ? (c.transaction = d, c.status = tt.Paid, c.occurredOnDate = Ue(d.date)) : Qe(c.expectedDate, It(me(), 3)) && (c.status = tt.Missed);
4683
+ d ? (c.transaction = d, c.status = et.Paid, c.occurredOnDate = Ue(d.date)) : Qe(c.expectedDate, It(me(), 3)) && (c.status = et.Missed);
4684
4684
  }
4685
4685
  return n;
4686
4686
  }, Nu = (e, n, i) => {
@@ -5308,7 +5308,7 @@ const Zs = (e, n) => {
5308
5308
  }, Qu = (e, n, i) => {
5309
5309
  const {
5310
5310
  accounts: a = [],
5311
- dateRange: o = { start: Je(me()), end: Sn() },
5311
+ dateRange: o = { start: nt(me()), end: Sn() },
5312
5312
  custom: r = () => !0,
5313
5313
  searchTerm: s = ""
5314
5314
  } = e;
@@ -5330,7 +5330,7 @@ const Zs = (e, n) => {
5330
5330
  const i = e.toLowerCase().split(" "), a = n?.toString().toLowerCase() ?? "";
5331
5331
  return i.every((o) => a.indexOf(o) > -1);
5332
5332
  };
5333
- var eh = /* @__PURE__ */ ((e) => (e[e.UNKNOWN = 0] = "UNKNOWN", e[e.CORRECT = 1] = "CORRECT", e[e.INCORRECT = 2] = "INCORRECT", e))(eh || {}), th = /* @__PURE__ */ ((e) => (e.Missed = "Missed", e.Paid = "Paid", e.Upcoming = "Upcoming expense", e.Income = "Income", e))(th || {}), nh = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.Subscription = 1] = "Subscription", e[e.Bill = 2] = "Bill", e))(nh || {}), K = /* @__PURE__ */ ((e) => (e[e.DEBT_TRACK = 1] = "DEBT_TRACK", e[e.SAVINGS_TRACK = 2] = "SAVINGS_TRACK", e[e.RETIREMENT_TRACK = 3] = "RETIREMENT_TRACK", e[e.EMERGENCY_FUND_TRACK = 4] = "EMERGENCY_FUND_TRACK", e))(K || {}), $a = /* @__PURE__ */ ((e) => (e[e.SAVE_AMOUNT = 1] = "SAVE_AMOUNT", e[e.KEEP_BALANCE_BELOW = 2] = "KEEP_BALANCE_BELOW", e[e.KEEP_BALANCE_ABOVE = 3] = "KEEP_BALANCE_ABOVE", e[e.ACTION = 4] = "ACTION", e))($a || {}), Dt = /* @__PURE__ */ ((e) => (e[e.AUTOMOBILE = 1] = "AUTOMOBILE", e[e.COLLEGE = 2] = "COLLEGE", e[e.HOUSE = 3] = "HOUSE", e[e.RECREATIONAL_VEHICLE = 4] = "RECREATIONAL_VEHICLE", e[e.VACATION = 5] = "VACATION", e[e.ELECTRONIC = 6] = "ELECTRONIC", e[e.OTHER = 7] = "OTHER", e[e.RETIREMENT = 8] = "RETIREMENT", e[e.EMERGENCY_FUND = 9] = "EMERGENCY_FUND", e[e.SETUP_BUDGETS = 10] = "SETUP_BUDGETS", e[e.START_MONEY_MANAGEMENT = 11] = "START_MONEY_MANAGEMENT", e[e.CREDIT_CARD = 12] = "CREDIT_CARD", e[e.LINE_OF_CREDIT = 13] = "LINE_OF_CREDIT", e[e.LOANS = 14] = "LOANS", e))(Dt || {}), bt = /* @__PURE__ */ ((e) => (e.Accounts = "accounts", e.Budgets = "budgets", e.Insights = "insights", e.Personal = "personal", e))(bt || {}), yt = /* @__PURE__ */ ((e) => (e[e.DebtPaymentReminder = 3] = "DebtPaymentReminder", e[e.AccountBalanceLow = 6] = "AccountBalanceLow", e[e.AccountDepositLarge = 7] = "AccountDepositLarge", e[e.TransactionExpenseLarge = 8] = "TransactionExpenseLarge", e[e.TransactionFeeCharge = 9] = "TransactionFeeCharge", e[e.InternationalTransaction = 23] = "InternationalTransaction", e[e.AccountDepositLargePosted = 48] = "AccountDepositLargePosted", e))(yt || {}), Qn = /* @__PURE__ */ ((e) => (e[e.BudgetExceeded = 1] = "BudgetExceeded", e[e.BudgetOffTarget = 2] = "BudgetOffTarget", e))(Qn || {}), Ke = /* @__PURE__ */ ((e) => (e[e.AccountBalanceLow = 33] = "AccountBalanceLow", e[e.BillAmountNotStandard = 49] = "BillAmountNotStandard", e[e.CategorySpending = 50] = "CategorySpending", e[e.CreditCardCloseToLimit = 51] = "CreditCardCloseToLimit", e[e.DebtPaymentReminder = 37] = "DebtPaymentReminder", e[e.DuplicatePayment = 42] = "DuplicatePayment", e[e.MonthlySpendComparison = 53] = "MonthlySpendComparison", e[e.MonthlySpendToIncomeComparison = 54] = "MonthlySpendToIncomeComparison", e[e.MonthlySubscriptionAggregate = 55] = "MonthlySubscriptionAggregate", e[e.MonthlyTopMerchantSpending = 56] = "MonthlyTopMerchantSpending", e[e.SaveAnExtra100Dollars = 57] = "SaveAnExtra100Dollars", e[e.SavingsOpportunity = 58] = "SavingsOpportunity", e[e.SetUpDirectDeposit = 59] = "SetUpDirectDeposit", e[e.SwitchDirectDeposit = 60] = "SwitchDirectDeposit", e[e.UncategorizedTransactions = 61] = "UncategorizedTransactions", e[e.UnifiedDeposit = 62] = "UnifiedDeposit", e[e.UpcomingBill = 63] = "UpcomingBill", e[e.WeekendSpendingSummary = 64] = "WeekendSpendingSummary", e[e.WeeklyNewMerchants = 65] = "WeeklyNewMerchants", e[e.DiscoveredAccounts = 52] = "DiscoveredAccounts", e[e.TransactionExpenseLarge = 39] = "TransactionExpenseLarge", e[e.PromotionalCampaignMessages = 67] = "PromotionalCampaignMessages", e[e.TransparentOverdraft = 68] = "TransparentOverdraft", e))(Ke || {}), zt = /* @__PURE__ */ ((e) => (e[e.CREDIT = 1] = "CREDIT", e[e.DEBIT = 2] = "DEBIT", e))(zt || {}), po = /* @__PURE__ */ ((e) => (e[e.POSTED = 1] = "POSTED", e[e.PENDING = 2] = "PENDING", e))(po || {}), ih = /* @__PURE__ */ ((e) => (e.Desktop = "Desktop", e.Mobile = "Mobile", e))(ih || {}), Se = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.EveryWeek = 1] = "EveryWeek", e[e.EveryOtherWeek = 2] = "EveryOtherWeek", e[e.EveryMonth = 3] = "EveryMonth", e[e.EveryOtherMonth = 4] = "EveryOtherMonth", e[e.EveryQuarter = 5] = "EveryQuarter", e[e.EveryOtherQuarter = 6] = "EveryOtherQuarter", e[e.EveryYear = 7] = "EveryYear", e[e.TwiceAMonth = 8] = "TwiceAMonth", e))(Se || {}), tt = /* @__PURE__ */ ((e) => (e[e.Paid = 0] = "Paid", e[e.Missed = 1] = "Missed", e[e.Upcoming = 2] = "Upcoming", e))(tt || {}), Yt = /* @__PURE__ */ ((e) => (e[e.Expense = 0] = "Expense", e[e.Income = 1] = "Income", e))(Yt || {}), an = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.Subscription = 1] = "Subscription", e[e.Bill = 2] = "Bill", e[e.Income = 3] = "Income", e[e.Transfer = 4] = "Transfer", e))(an || {});
5333
+ var eh = /* @__PURE__ */ ((e) => (e[e.UNKNOWN = 0] = "UNKNOWN", e[e.CORRECT = 1] = "CORRECT", e[e.INCORRECT = 2] = "INCORRECT", e))(eh || {}), th = /* @__PURE__ */ ((e) => (e.Missed = "Missed", e.Paid = "Paid", e.Upcoming = "Upcoming expense", e.Income = "Income", e))(th || {}), nh = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.Subscription = 1] = "Subscription", e[e.Bill = 2] = "Bill", e))(nh || {}), K = /* @__PURE__ */ ((e) => (e[e.DEBT_TRACK = 1] = "DEBT_TRACK", e[e.SAVINGS_TRACK = 2] = "SAVINGS_TRACK", e[e.RETIREMENT_TRACK = 3] = "RETIREMENT_TRACK", e[e.EMERGENCY_FUND_TRACK = 4] = "EMERGENCY_FUND_TRACK", e))(K || {}), $a = /* @__PURE__ */ ((e) => (e[e.SAVE_AMOUNT = 1] = "SAVE_AMOUNT", e[e.KEEP_BALANCE_BELOW = 2] = "KEEP_BALANCE_BELOW", e[e.KEEP_BALANCE_ABOVE = 3] = "KEEP_BALANCE_ABOVE", e[e.ACTION = 4] = "ACTION", e))($a || {}), Dt = /* @__PURE__ */ ((e) => (e[e.AUTOMOBILE = 1] = "AUTOMOBILE", e[e.COLLEGE = 2] = "COLLEGE", e[e.HOUSE = 3] = "HOUSE", e[e.RECREATIONAL_VEHICLE = 4] = "RECREATIONAL_VEHICLE", e[e.VACATION = 5] = "VACATION", e[e.ELECTRONIC = 6] = "ELECTRONIC", e[e.OTHER = 7] = "OTHER", e[e.RETIREMENT = 8] = "RETIREMENT", e[e.EMERGENCY_FUND = 9] = "EMERGENCY_FUND", e[e.SETUP_BUDGETS = 10] = "SETUP_BUDGETS", e[e.START_MONEY_MANAGEMENT = 11] = "START_MONEY_MANAGEMENT", e[e.CREDIT_CARD = 12] = "CREDIT_CARD", e[e.LINE_OF_CREDIT = 13] = "LINE_OF_CREDIT", e[e.LOANS = 14] = "LOANS", e))(Dt || {}), bt = /* @__PURE__ */ ((e) => (e.Accounts = "accounts", e.Budgets = "budgets", e.Insights = "insights", e.Personal = "personal", e))(bt || {}), yt = /* @__PURE__ */ ((e) => (e[e.DebtPaymentReminder = 3] = "DebtPaymentReminder", e[e.AccountBalanceLow = 6] = "AccountBalanceLow", e[e.AccountDepositLarge = 7] = "AccountDepositLarge", e[e.TransactionExpenseLarge = 8] = "TransactionExpenseLarge", e[e.TransactionFeeCharge = 9] = "TransactionFeeCharge", e[e.InternationalTransaction = 23] = "InternationalTransaction", e[e.AccountDepositLargePosted = 48] = "AccountDepositLargePosted", e))(yt || {}), Qn = /* @__PURE__ */ ((e) => (e[e.BudgetExceeded = 1] = "BudgetExceeded", e[e.BudgetOffTarget = 2] = "BudgetOffTarget", e))(Qn || {}), Ke = /* @__PURE__ */ ((e) => (e[e.AccountBalanceLow = 33] = "AccountBalanceLow", e[e.BillAmountNotStandard = 49] = "BillAmountNotStandard", e[e.CategorySpending = 50] = "CategorySpending", e[e.CreditCardCloseToLimit = 51] = "CreditCardCloseToLimit", e[e.DebtPaymentReminder = 37] = "DebtPaymentReminder", e[e.DuplicatePayment = 42] = "DuplicatePayment", e[e.MonthlySpendComparison = 53] = "MonthlySpendComparison", e[e.MonthlySpendToIncomeComparison = 54] = "MonthlySpendToIncomeComparison", e[e.MonthlySubscriptionAggregate = 55] = "MonthlySubscriptionAggregate", e[e.MonthlyTopMerchantSpending = 56] = "MonthlyTopMerchantSpending", e[e.SaveAnExtra100Dollars = 57] = "SaveAnExtra100Dollars", e[e.SavingsOpportunity = 58] = "SavingsOpportunity", e[e.SetUpDirectDeposit = 59] = "SetUpDirectDeposit", e[e.SwitchDirectDeposit = 60] = "SwitchDirectDeposit", e[e.UncategorizedTransactions = 61] = "UncategorizedTransactions", e[e.UnifiedDeposit = 62] = "UnifiedDeposit", e[e.UpcomingBill = 63] = "UpcomingBill", e[e.WeekendSpendingSummary = 64] = "WeekendSpendingSummary", e[e.WeeklyNewMerchants = 65] = "WeeklyNewMerchants", e[e.DiscoveredAccounts = 52] = "DiscoveredAccounts", e[e.TransactionExpenseLarge = 39] = "TransactionExpenseLarge", e[e.PromotionalCampaignMessages = 67] = "PromotionalCampaignMessages", e[e.TransparentOverdraft = 68] = "TransparentOverdraft", e))(Ke || {}), zt = /* @__PURE__ */ ((e) => (e[e.CREDIT = 1] = "CREDIT", e[e.DEBIT = 2] = "DEBIT", e))(zt || {}), po = /* @__PURE__ */ ((e) => (e[e.POSTED = 1] = "POSTED", e[e.PENDING = 2] = "PENDING", e))(po || {}), ih = /* @__PURE__ */ ((e) => (e.Desktop = "Desktop", e.Mobile = "Mobile", e))(ih || {}), Se = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.EveryWeek = 1] = "EveryWeek", e[e.EveryOtherWeek = 2] = "EveryOtherWeek", e[e.EveryMonth = 3] = "EveryMonth", e[e.EveryOtherMonth = 4] = "EveryOtherMonth", e[e.EveryQuarter = 5] = "EveryQuarter", e[e.EveryOtherQuarter = 6] = "EveryOtherQuarter", e[e.EveryYear = 7] = "EveryYear", e[e.TwiceAMonth = 8] = "TwiceAMonth", e))(Se || {}), et = /* @__PURE__ */ ((e) => (e[e.Paid = 0] = "Paid", e[e.Missed = 1] = "Missed", e[e.Upcoming = 2] = "Upcoming", e))(et || {}), Yt = /* @__PURE__ */ ((e) => (e[e.Expense = 0] = "Expense", e[e.Income = 1] = "Income", e))(Yt || {}), an = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.Subscription = 1] = "Subscription", e[e.Bill = 2] = "Bill", e[e.Income = 3] = "Income", e[e.Transfer = 4] = "Transfer", e))(an || {});
5334
5334
  const qs = {
5335
5335
  account_guid: "",
5336
5336
  amount: 0,
@@ -5361,7 +5361,7 @@ const qs = {
5361
5361
  tags: []
5362
5362
  };
5363
5363
  let ah = class {
5364
- beginDate = Je(/* @__PURE__ */ new Date());
5364
+ beginDate = nt(/* @__PURE__ */ new Date());
5365
5365
  endDate = ze(/* @__PURE__ */ new Date());
5366
5366
  expandedSplits = [];
5367
5367
  isInitialized = !1;
@@ -5422,7 +5422,7 @@ class oh {
5422
5422
  }
5423
5423
  loadTransactionData = async () => {
5424
5424
  await Promise.all([
5425
- this.loadAssociatedBeats(Je(/* @__PURE__ */ new Date())),
5425
+ this.loadAssociatedBeats(nt(/* @__PURE__ */ new Date())),
5426
5426
  this.loadTags(),
5427
5427
  this.loadTaggings(),
5428
5428
  this.loadTransactionRules(),
@@ -6322,7 +6322,7 @@ const Ah = ({
6322
6322
  }, fr = (e) => {
6323
6323
  const n = [], i = me();
6324
6324
  for (let a = 0; a <= pr; a++) {
6325
- const o = Je(Bt(i, pr - a)), s = e.filter(
6325
+ const o = nt(Bt(i, pr - a)), s = e.filter(
6326
6326
  (c) => c.year_month === Number(Pn(o, "yyyyMM"))
6327
6327
  ).reduce((c, d) => c + d.total, 0);
6328
6328
  n.push({
@@ -6424,7 +6424,7 @@ class Vh {
6424
6424
  }
6425
6425
  };
6426
6426
  loadMonthlyCategoryTotals = async (n = this.globalStore.globalUiStore.selectedAccounts, i, a) => {
6427
- const o = Pe(Je(i ?? Bt(/* @__PURE__ */ new Date(), 11))), r = Pe(ze(a ?? /* @__PURE__ */ new Date()));
6427
+ const o = Pe(nt(i ?? Bt(/* @__PURE__ */ new Date(), 11))), r = Pe(ze(a ?? /* @__PURE__ */ new Date()));
6428
6428
  try {
6429
6429
  const s = await this.api.getMonthlyCategoryTotals(o, r, n);
6430
6430
  J(() => {
@@ -6442,7 +6442,7 @@ class Vh {
6442
6442
  Pe(a),
6443
6443
  n
6444
6444
  ), r = await this.api.getMonthlyCategoryTotals(
6445
- Pe(Je(Bt(a, 11))),
6445
+ Pe(nt(Bt(a, 11))),
6446
6446
  Pe(ze(a)),
6447
6447
  n
6448
6448
  );
@@ -7706,9 +7706,9 @@ const ec = ({ transaction: e }) => {
7706
7706
  selectedAccountGuids: ae,
7707
7707
  setDisplayedDate: fe,
7708
7708
  setSelectedAccounts: ue
7709
- } = ce(), [$e, pe] = g.useState(""), [Ce, Ee] = g.useState(""), [et, Y] = g.useState(!1), [ee, he] = g.useState(!1), [Le, V] = g.useState(!1);
7709
+ } = ce(), [$e, pe] = g.useState(""), [Ce, Ee] = g.useState(""), [Je, Y] = g.useState(!1), [ee, he] = g.useState(!1), [Le, V] = g.useState(!1);
7710
7710
  g.useEffect(() => {
7711
- const st = o.filter((Kn) => !Kn.is_hidden), Go = Je(me()), Bo = ze(me());
7711
+ const st = o.filter((Kn) => !Kn.is_hidden), Go = nt(me()), Bo = ze(me());
7712
7712
  ue(st), fe(Go, Bo), S({
7713
7713
  accounts: st.map((Kn) => Kn.guid),
7714
7714
  custom: (Kn) => !Kn.accountIsClosed && !Kn.accountIsHidden,
@@ -7870,7 +7870,7 @@ const ec = ({ transaction: e }) => {
7870
7870
  bg,
7871
7871
  {
7872
7872
  copy: { title: k.add_manual_account },
7873
- isOpen: et,
7873
+ isOpen: Je,
7874
7874
  onClose: () => {
7875
7875
  Y(!1);
7876
7876
  },
@@ -8409,8 +8409,8 @@ const ec = ({ transaction: e }) => {
8409
8409
  value: e,
8410
8410
  variant: "fullWidth",
8411
8411
  children: [
8412
- /* @__PURE__ */ t(nt, { label: a.manage_expenses }),
8413
- /* @__PURE__ */ t(nt, { label: a.manage_income })
8412
+ /* @__PURE__ */ t(tt, { label: a.manage_expenses }),
8413
+ /* @__PURE__ */ t(tt, { label: a.manage_income })
8414
8414
  ]
8415
8415
  }
8416
8416
  ),
@@ -8435,11 +8435,11 @@ const ec = ({ transaction: e }) => {
8435
8435
  ).filter(
8436
8436
  (f) => St(f.occurredOnDate || f.expectedDate, e)
8437
8437
  ), _ = d.some(
8438
- (f) => f.type !== Yt.Income && f.status === tt.Upcoming
8438
+ (f) => f.type !== Yt.Income && f.status === et.Upcoming
8439
8439
  ), u = d.some(
8440
- (f) => f.type !== Yt.Income && f.status === tt.Missed
8440
+ (f) => f.type !== Yt.Income && f.status === et.Missed
8441
8441
  ), h = d.some(
8442
- (f) => f.type !== Yt.Income && f.status === tt.Paid
8442
+ (f) => f.type !== Yt.Income && f.status === et.Paid
8443
8443
  ), m = d.some((f) => f.type === Yt.Income), p = (_ ? 1 : 0) + (u ? 1 : 0) + (h ? 1 : 0) + (m ? 1 : 0);
8444
8444
  return /* @__PURE__ */ t(
8445
8445
  Is,
@@ -8513,7 +8513,7 @@ const ec = ({ transaction: e }) => {
8513
8513
  Qa,
8514
8514
  {
8515
8515
  maxDate: ze(xt(/* @__PURE__ */ new Date(), 1)),
8516
- minDate: Je(/* @__PURE__ */ new Date()),
8516
+ minDate: nt(/* @__PURE__ */ new Date()),
8517
8517
  onMonthChange: r,
8518
8518
  showDaysOutsideCurrentMonth: !0,
8519
8519
  slots: {
@@ -8564,16 +8564,16 @@ const ec = ({ transaction: e }) => {
8564
8564
  if (e.type === Yt.Income)
8565
8565
  return /* @__PURE__ */ t(So, {});
8566
8566
  switch (e.status) {
8567
- case tt.Missed:
8567
+ case et.Missed:
8568
8568
  return /* @__PURE__ */ t(To, {});
8569
- case tt.Paid:
8569
+ case et.Paid:
8570
8570
  return /* @__PURE__ */ t(Ao, {});
8571
8571
  default:
8572
8572
  return /* @__PURE__ */ t(Eo, {});
8573
8573
  }
8574
8574
  }, Rg = (e, n) => {
8575
8575
  switch (e.status) {
8576
- case tt.Paid:
8576
+ case et.Paid:
8577
8577
  return e.expectedDate ? T(
8578
8578
  n.paid_on,
8579
8579
  re(
@@ -8581,12 +8581,12 @@ const ec = ({ transaction: e }) => {
8581
8581
  te.MONTH_DAY
8582
8582
  )
8583
8583
  ) : n.paid;
8584
- case tt.Missed:
8584
+ case et.Missed:
8585
8585
  return T(
8586
8586
  n.missed_on,
8587
8587
  re(e.expectedDate, te.MONTH_DAY)
8588
8588
  );
8589
- case tt.Upcoming:
8589
+ case et.Upcoming:
8590
8590
  return T(
8591
8591
  n.upcoming_on,
8592
8592
  re(e.expectedDate, te.MONTH_DAY)
@@ -8604,7 +8604,7 @@ const ec = ({ transaction: e }) => {
8604
8604
  const { recurring: o } = I(), { repeatingTransactions: r } = Xe(), [s, c] = g.useState(!1), d = g.useMemo(
8605
8605
  () => r.find((E) => E.guid === e.repeatingTransactionGuid),
8606
8606
  [e, r]
8607
- ), _ = e.type === Yt.Income, u = e.status === tt.Paid, h = e.status === tt.Missed, m = e.status === tt.Upcoming;
8607
+ ), _ = e.type === Yt.Income, u = e.status === et.Paid, h = e.status === et.Missed, m = e.status === et.Upcoming;
8608
8608
  let p = o.paid?.toLowerCase();
8609
8609
  return h ? p = o.missed?.toLowerCase() : m && (p = a ? qi(o, d || {}, !0) : qi(o, d || {}, !1)), /* @__PURE__ */ l(z, { disableGutters: !0, disablePadding: !0, children: [
8610
8610
  /* @__PURE__ */ l(_e, { onClick: () => {
@@ -8821,13 +8821,13 @@ const ec = ({ transaction: e }) => {
8821
8821
  (i || n) && /* @__PURE__ */ l(b, { children: [
8822
8822
  /* @__PURE__ */ l(qt, { onChange: S, value: E, variant: "fullWidth", children: [
8823
8823
  /* @__PURE__ */ t(
8824
- nt,
8824
+ tt,
8825
8825
  {
8826
8826
  label: /* @__PURE__ */ t(C, { bold: !0, sx: { textTransform: "none" }, variant: "body1", children: e.upcoming })
8827
8827
  }
8828
8828
  ),
8829
8829
  /* @__PURE__ */ t(
8830
- nt,
8830
+ tt,
8831
8831
  {
8832
8832
  label: /* @__PURE__ */ t(C, { bold: !0, sx: { textTransform: "none" }, variant: "body1", children: e.paid })
8833
8833
  }
@@ -9191,7 +9191,7 @@ class Tr {
9191
9191
  deleteRepeatingTransaction = async (n) => this.fetchInstance.delete(`${B.REPEATING_TRANSACTIONS}/${n}`).then((i) => i);
9192
9192
  }
9193
9193
  const Ar = (e) => za(e.expectedDate, {
9194
- start: Je(me()),
9194
+ start: nt(me()),
9195
9195
  end: ze(me())
9196
9196
  }), li = (e, n) => e + n.amount;
9197
9197
  class Hg {
@@ -9218,7 +9218,7 @@ class Hg {
9218
9218
  */
9219
9219
  get paidRecurrences() {
9220
9220
  return this.recurrences.filter(
9221
- (n) => n.status === tt.Paid
9221
+ (n) => n.status === et.Paid
9222
9222
  );
9223
9223
  }
9224
9224
  /**
@@ -9227,7 +9227,7 @@ class Hg {
9227
9227
  */
9228
9228
  get upcomingRecurrences() {
9229
9229
  return this.recurrences.filter(
9230
- (n) => nn(n.expectedDate, It(me(), 3)) && Qe(n.expectedDate, cn(me(), 30)) && n.status === tt.Upcoming
9230
+ (n) => nn(n.expectedDate, It(me(), 3)) && Qe(n.expectedDate, cn(me(), 30)) && n.status === et.Upcoming
9231
9231
  );
9232
9232
  }
9233
9233
  /**
@@ -9243,7 +9243,7 @@ class Hg {
9243
9243
  */
9244
9244
  get upcomingExpenses() {
9245
9245
  return this.expenses.filter(
9246
- (n) => n.status === tt.Upcoming
9246
+ (n) => n.status === et.Upcoming
9247
9247
  );
9248
9248
  }
9249
9249
  /**
@@ -9259,7 +9259,7 @@ class Hg {
9259
9259
  */
9260
9260
  get upcomingIncome() {
9261
9261
  return this.income.filter(
9262
- (n) => n.status === tt.Upcoming
9262
+ (n) => n.status === et.Upcoming
9263
9263
  );
9264
9264
  }
9265
9265
  /**
@@ -9298,13 +9298,13 @@ class Hg {
9298
9298
  * Calculates the total amount of all paid expenses for the current month.
9299
9299
  */
9300
9300
  get paidExpenseTotal() {
9301
- return this.currentMonthExpenses.filter((n) => n.status === tt.Paid).reduce(li, 0);
9301
+ return this.currentMonthExpenses.filter((n) => n.status === et.Paid).reduce(li, 0);
9302
9302
  }
9303
9303
  /**
9304
9304
  * Calculates the total amount of all missed expenses for the current month.
9305
9305
  */
9306
9306
  get missedExpenseTotal() {
9307
- return this.currentMonthExpenses.filter((n) => n.status === tt.Missed).reduce(li, 0);
9307
+ return this.currentMonthExpenses.filter((n) => n.status === et.Missed).reduce(li, 0);
9308
9308
  }
9309
9309
  /**
9310
9310
  * Calculates the total amount of all income for the current month.
@@ -9316,7 +9316,7 @@ class Hg {
9316
9316
  * Calculates the total amount of all paid income for the current month.
9317
9317
  */
9318
9318
  get paidIncomeTotal() {
9319
- return this.currentMonthIncome.filter((n) => n.status === tt.Paid).reduce(li, 0);
9319
+ return this.currentMonthIncome.filter((n) => n.status === et.Paid).reduce(li, 0);
9320
9320
  }
9321
9321
  /**
9322
9322
  * Get the recurrences for the currently selected day.
@@ -9990,7 +9990,7 @@ const jg = ({ recurrence: e }) => /* @__PURE__ */ l(Z, { children: [
9990
9990
  variant: "fullWidth",
9991
9991
  children: [
9992
9992
  /* @__PURE__ */ t(
9993
- nt,
9993
+ tt,
9994
9994
  {
9995
9995
  "aria-controls": "cashflow-tabpanel-0",
9996
9996
  id: "cashflow-tab-0",
@@ -10001,7 +10001,7 @@ const jg = ({ recurrence: e }) => /* @__PURE__ */ l(Z, { children: [
10001
10001
  }
10002
10002
  ),
10003
10003
  /* @__PURE__ */ t(
10004
- nt,
10004
+ tt,
10005
10005
  {
10006
10006
  "aria-controls": "cashflow-tabpanel-1",
10007
10007
  id: "cashflow-tab-1",
@@ -10231,20 +10231,20 @@ const jg = ({ recurrence: e }) => /* @__PURE__ */ l(Z, { children: [
10231
10231
  ).length, ue = async () => {
10232
10232
  O(2), d(
10233
10233
  // Beginning of the month, 90 days before today
10234
- Je(It(me(), 90)),
10234
+ nt(It(me(), 90)),
10235
10235
  me()
10236
10236
  ), u({ ..._, custom: yi }), O(3);
10237
10237
  }, $e = async () => {
10238
10238
  if (!(M.length < 1)) {
10239
10239
  G(!0);
10240
10240
  for (let Ce = 0; Ce < M.length; Ce++) {
10241
- const Ee = M[Ce], et = Fa(E, Ue(Ee.date)), Y = {
10241
+ const Ee = M[Ce], Je = Fa(E, Ue(Ee.date)), Y = {
10242
10242
  account_guid: Ee.account_guid,
10243
10243
  amount: Ee.amount,
10244
10244
  merchant_guid: Ee.merchant_guid,
10245
10245
  description: Ee.feed_description || Ee.description,
10246
- predicted_occurs_on: oa(et, { representation: "date" }),
10247
- recurrence_day: et.getDay(),
10246
+ predicted_occurs_on: oa(Je, { representation: "date" }),
10247
+ recurrence_day: Je.getDay(),
10248
10248
  recurrence_type: E,
10249
10249
  repeating_transaction_type: an.Income,
10250
10250
  transaction_type: Ee.transaction_type
@@ -11009,7 +11009,7 @@ const hn = () => {
11009
11009
  return isNaN(i) ? 0 : i;
11010
11010
  }, Io = (e, n) => {
11011
11011
  const i = [];
11012
- let a = Je(n?.start ?? Bt(/* @__PURE__ */ new Date(), 5));
11012
+ let a = nt(n?.start ?? Bt(/* @__PURE__ */ new Date(), 5));
11013
11013
  const o = n?.end ?? /* @__PURE__ */ new Date();
11014
11014
  for (; Qe(a, o); )
11015
11015
  i.push({
@@ -11030,7 +11030,7 @@ const hn = () => {
11030
11030
  const n = [], i = e.filter(
11031
11031
  (r) => r.top_level_category_guid !== N.INCOME && r.top_level_category_guid !== N.TRANSFER && r.total > 0
11032
11032
  );
11033
- let a = Je(Bt(/* @__PURE__ */ new Date(), 5));
11033
+ let a = nt(Bt(/* @__PURE__ */ new Date(), 5));
11034
11034
  const o = ze(/* @__PURE__ */ new Date());
11035
11035
  for (; Qe(a, o); )
11036
11036
  n.push({
@@ -11625,7 +11625,7 @@ const Tc = ({
11625
11625
  variant: "fullWidth",
11626
11626
  children: [
11627
11627
  /* @__PURE__ */ t(
11628
- nt,
11628
+ tt,
11629
11629
  {
11630
11630
  "aria-controls": "debt-schedule-tabpanel-0",
11631
11631
  id: "debt-schedule-tab-0",
@@ -11633,7 +11633,7 @@ const Tc = ({
11633
11633
  }
11634
11634
  ),
11635
11635
  /* @__PURE__ */ t(
11636
- nt,
11636
+ tt,
11637
11637
  {
11638
11638
  "aria-controls": "debt-details-tabpanel-1",
11639
11639
  id: "debt-details-tab-1",
@@ -13245,21 +13245,21 @@ const up = (e, n) => {
13245
13245
  variant: "fullWidth",
13246
13246
  children: [
13247
13247
  /* @__PURE__ */ t(
13248
- nt,
13248
+ tt,
13249
13249
  {
13250
13250
  disabled: fe,
13251
13251
  label: /* @__PURE__ */ t(Ia, { subtitle: O, title: d.tab_saving_title })
13252
13252
  }
13253
13253
  ),
13254
13254
  /* @__PURE__ */ t(
13255
- nt,
13255
+ tt,
13256
13256
  {
13257
13257
  disabled: fe,
13258
13258
  label: /* @__PURE__ */ t(Ia, { subtitle: M, title: d.tab_debt_title })
13259
13259
  }
13260
13260
  ),
13261
13261
  /* @__PURE__ */ t(
13262
- nt,
13262
+ tt,
13263
13263
  {
13264
13264
  disabled: fe,
13265
13265
  label: /* @__PURE__ */ t(Ia, { subtitle: R, title: d.tab_retirement_title })
@@ -14372,7 +14372,7 @@ const e1 = ({
14372
14372
  }), d1 = (e, n) => [...e, ...n], Br = (e) => {
14373
14373
  if (e && e.length > 0)
14374
14374
  return e[e.length - 1];
14375
- }, _1 = (e, n) => e.year_month - n.year_month, u1 = () => Array.from({ length: Hc }, (e, n) => Math.floor(Je(Bt(/* @__PURE__ */ new Date(), n)).getTime() / 1e3)).sort(), h1 = (e, n, i) => !e.length || !n.length ? [] : u1().reduceRight((o, r) => {
14375
+ }, _1 = (e, n) => e.year_month - n.year_month, u1 = () => Array.from({ length: Hc }, (e, n) => Math.floor(nt(Bt(/* @__PURE__ */ new Date(), n)).getTime() / 1e3)).sort(), h1 = (e, n, i) => !e.length || !n.length ? [] : u1().reduceRight((o, r) => {
14376
14376
  const s = n.filter(
14377
14377
  ({ year_month: u }) => u === parseInt(Pn(Ue(r), "yyyyMM"))
14378
14378
  ), c = e.map((u) => {
@@ -14794,7 +14794,7 @@ const C1 = ({ amount: e, copy: n, trendValue: i }) => {
14794
14794
  onMouseEnter: ue,
14795
14795
  onMouseLeave: $e,
14796
14796
  selectedData: f
14797
- }, et = () => {
14797
+ }, Je = () => {
14798
14798
  ne(!0), A(F.ACCOUNTS_CLICK_CONNECT);
14799
14799
  };
14800
14800
  return n ? /* @__PURE__ */ t(
@@ -14842,7 +14842,7 @@ const C1 = ({ amount: e, copy: n, trendValue: i }) => {
14842
14842
  {
14843
14843
  header: s.empty_widget_header,
14844
14844
  icon: "elevation",
14845
- onClick: et,
14845
+ onClick: Je,
14846
14846
  primaryButton: s.empty_widget_button,
14847
14847
  subText: s.empty_widget_description,
14848
14848
  sx: {
@@ -16224,7 +16224,7 @@ const W1 = ({
16224
16224
  Qa,
16225
16225
  {
16226
16226
  maxDate: ze(/* @__PURE__ */ new Date()),
16227
- minDate: Je(/* @__PURE__ */ new Date()),
16227
+ minDate: nt(/* @__PURE__ */ new Date()),
16228
16228
  onChange: (S) => {
16229
16229
  m(S.getDate());
16230
16230
  },
@@ -19858,7 +19858,7 @@ const t2 = x(({ onBackClick: e, sx: n }) => {
19858
19858
  value: f,
19859
19859
  variant: "scrollable",
19860
19860
  children: m.map(
19861
- (y) => y.enabled && /* @__PURE__ */ t(nt, { label: y.label, value: y.index }, y.index)
19861
+ (y) => y.enabled && /* @__PURE__ */ t(tt, { label: y.label, value: y.index }, y.index)
19862
19862
  )
19863
19863
  }
19864
19864
  ),
@@ -20239,7 +20239,7 @@ const GC = (e) => e.reduce((i, a) => {
20239
20239
  M(ee), a(F.TRENDS_CLICK_LEGEND, { category: u(ee) });
20240
20240
  }, Ee = (ee) => {
20241
20241
  a(F.TRENDS_HOVER_LEGEND, { category: u(ee) });
20242
- }, et = (ee) => {
20242
+ }, Je = (ee) => {
20243
20243
  a(F.TRENDS_HOVER_AREA, { category: ee });
20244
20244
  }, Y = (ee) => {
20245
20245
  a(F.TRENDS_HOVER_POINT, { category: ee });
@@ -20342,7 +20342,7 @@ const GC = (e) => e.reduce((i, a) => {
20342
20342
  Ys,
20343
20343
  {
20344
20344
  onClickLegend: Ce,
20345
- onHoverArea: et,
20345
+ onHoverArea: Je,
20346
20346
  onHoverLegend: Ee,
20347
20347
  onHoverPoint: Y,
20348
20348
  stackedDatasets: ne.stackedDatasets,
@@ -22099,10 +22099,10 @@ const Oi = g.createContext(null), rf = ({
22099
22099
  ref: p,
22100
22100
  children: [
22101
22101
  e.map((pe, Ce) => {
22102
- const Ee = Ce + 1, et = e.length + 1, Y = T(
22102
+ const Ee = Ce + 1, Je = e.length + 1, Y = T(
22103
22103
  G.card_position_in_carousel_aria,
22104
22104
  Ee.toString(),
22105
- et.toString()
22105
+ Je.toString()
22106
22106
  ), ee = pe.micro_title && pe.micro_title.length > 0, he = pe.micro_description && pe.micro_description.length > 0, Le = ee ? pe.micro_title : pe.title, V = he ? pe.micro_description : pe.description;
22107
22107
  return /* @__PURE__ */ t(
22108
22108
  Cf,
@@ -22585,7 +22585,7 @@ const Oi = g.createContext(null), rf = ({
22585
22585
  R(he);
22586
22586
  }, Ee = (he) => {
22587
22587
  R(he), a(F.TRENDS_CLICK_LEGEND, { category: u(he) });
22588
- }, et = (he) => {
22588
+ }, Je = (he) => {
22589
22589
  a(F.TRENDS_HOVER_LEGEND, { category: u(he) });
22590
22590
  }, Y = (he) => {
22591
22591
  a(F.TRENDS_HOVER_AREA, { category: he });
@@ -22702,7 +22702,7 @@ const Oi = g.createContext(null), rf = ({
22702
22702
  height: A ? 500 : void 0,
22703
22703
  onClickLegend: Ee,
22704
22704
  onHoverArea: Y,
22705
- onHoverLegend: et,
22705
+ onHoverLegend: Je,
22706
22706
  onHoverPoint: ee,
22707
22707
  stackedDatasets: ae.stackedDatasets,
22708
22708
  unstackedDatasets: ae.unstackedDatasets
@@ -22841,7 +22841,7 @@ class Hf {
22841
22841
  selectedAccountGuids = this.selectedAccounts.map((n) => n.guid);
22842
22842
  displayedDate = /* @__PURE__ */ new Date();
22843
22843
  displayedDateRange = {
22844
- start: Je(this.displayedDate),
22844
+ start: nt(this.displayedDate),
22845
22845
  end: ze(this.displayedDate)
22846
22846
  };
22847
22847
  constructor(n) {
@@ -23574,7 +23574,7 @@ const Na = ({
23574
23574
  variant: "fullWidth",
23575
23575
  children: [
23576
23576
  /* @__PURE__ */ t(
23577
- nt,
23577
+ tt,
23578
23578
  {
23579
23579
  "aria-controls": "transaction-details-tabpanel-0",
23580
23580
  id: "transaction-details-tab-0",
@@ -23582,7 +23582,7 @@ const Na = ({
23582
23582
  }
23583
23583
  ),
23584
23584
  /* @__PURE__ */ t(
23585
- nt,
23585
+ tt,
23586
23586
  {
23587
23587
  "aria-controls": "account-details-tabpanel-1",
23588
23588
  id: "account-details-tab-1",
@@ -25100,7 +25100,7 @@ const w0 = ({
25100
25100
  return g.useEffect(() => {
25101
25101
  c(n);
25102
25102
  }, [n]), g.useEffect(() => {
25103
- h && !r && m(a, Je(/* @__PURE__ */ new Date()), ze(/* @__PURE__ */ new Date())).then(() => {
25103
+ h && !r && m(a, nt(/* @__PURE__ */ new Date()), ze(/* @__PURE__ */ new Date())).then(() => {
25104
25104
  s().finally();
25105
25105
  });
25106
25106
  }, [h, a]), u ? /* @__PURE__ */ l(
@@ -25344,8 +25344,8 @@ const w0 = ({
25344
25344
  value: d,
25345
25345
  variant: "fullWidth",
25346
25346
  children: [
25347
- /* @__PURE__ */ t(nt, { label: n.details_transactions_tab }),
25348
- /* @__PURE__ */ t(nt, { label: n.details_subbudgets_tab })
25347
+ /* @__PURE__ */ t(tt, { label: n.details_transactions_tab }),
25348
+ /* @__PURE__ */ t(tt, { label: n.details_subbudgets_tab })
25349
25349
  ]
25350
25350
  }
25351
25351
  ),
@@ -25606,7 +25606,7 @@ const w0 = ({
25606
25606
  U(!0), a(F.BUDGETS_CLICK_ADD);
25607
25607
  }, ue = () => {
25608
25608
  U(!1);
25609
- }, $e = nn(p.end, Je(/* @__PURE__ */ new Date()));
25609
+ }, $e = nn(p.end, nt(/* @__PURE__ */ new Date()));
25610
25610
  return !c || !d || !f ? /* @__PURE__ */ t(de, {}) : /* @__PURE__ */ l(
25611
25611
  Ct,
25612
25612
  {
@@ -27029,7 +27029,7 @@ const Z0 = ({ widgets: e, isLoading: n }) => {
27029
27029
  ).reduce((Y, ee) => {
27030
27030
  const he = ee.market_value ? ee.market_value - (ee.cost_basis || 0) : 0;
27031
27031
  return Y + he;
27032
- }, 0), et = () => {
27032
+ }, 0), Je = () => {
27033
27033
  o(!1);
27034
27034
  };
27035
27035
  return f ? /* @__PURE__ */ l(Re, { sx: { alignItems: "center", gap: 48, pt: 48, width: "100%" }, children: [
@@ -27399,7 +27399,7 @@ const Z0 = ({ widgets: e, isLoading: n }) => {
27399
27399
  handleCostBasisClick: O,
27400
27400
  handleCostBasisKeyDown: R,
27401
27401
  isOpen: a,
27402
- onClose: et
27402
+ onClose: Je
27403
27403
  }
27404
27404
  ),
27405
27405
  /* @__PURE__ */ t(
@@ -27455,7 +27455,7 @@ const Z0 = ({ widgets: e, isLoading: n }) => {
27455
27455
  textColor: "primary",
27456
27456
  value: A ? -1 : p,
27457
27457
  variant: "fullWidth",
27458
- children: w.map((v) => /* @__PURE__ */ t(nt, { disabled: A, label: /* @__PURE__ */ t(pb, { title: v }) }, v))
27458
+ children: w.map((v) => /* @__PURE__ */ t(tt, { disabled: A, label: /* @__PURE__ */ t(pb, { title: v }) }, v))
27459
27459
  }
27460
27460
  ),
27461
27461
  A ? /* @__PURE__ */ t(
@@ -27652,12 +27652,12 @@ const Z0 = ({ widgets: e, isLoading: n }) => {
27652
27652
  },
27653
27653
  a.guid
27654
27654
  )) }), bb = () => {
27655
- const e = ye(), { spending: n } = I(), { selectedAccounts: i } = ce(), {
27656
- categories: a,
27657
- dateRangeCategoryTotals: o,
27658
- dataRangeTotalsLoaded: r,
27659
- loadDateRangeCategoryTotals: s
27660
- } = We(), c = g.useMemo(
27655
+ const e = ye(), { spending: n } = I(), { displayedDateRange: i, selectedAccounts: a } = ce(), {
27656
+ categories: o,
27657
+ dateRangeCategoryTotals: r,
27658
+ dataRangeTotalsLoaded: s,
27659
+ loadDateRangeCategoryTotals: c
27660
+ } = We(), d = g.useMemo(
27661
27661
  () => [
27662
27662
  e.palette.chartMono.chartMono5,
27663
27663
  e.palette.chartMono.chartMono4,
@@ -27669,81 +27669,81 @@ const Z0 = ({ widgets: e, isLoading: n }) => {
27669
27669
  [e]
27670
27670
  );
27671
27671
  g.useEffect(() => {
27672
- s(
27673
- i,
27674
- Je(/* @__PURE__ */ new Date()),
27675
- ze(/* @__PURE__ */ new Date())
27672
+ c(
27673
+ a,
27674
+ i.start,
27675
+ i.end
27676
27676
  ).finally();
27677
- }, [i]);
27678
- const [d, _] = g.useState(""), [u, h] = g.useState(0), m = g.useMemo(
27679
- () => ll(a, o),
27680
- [a, o]
27681
- ), p = g.useMemo(
27682
- () => dl(a, o, c),
27683
- [a, o, c]
27684
- ), f = (y, S) => {
27685
- h(S), _("");
27686
- }, E = (y) => {
27687
- _(d === y ? "" : y);
27688
- };
27689
- return r ? /* @__PURE__ */ l(L, { width: "100%", children: [
27690
- /* @__PURE__ */ l(qt, { onChange: f, value: u, variant: "fullWidth", children: [
27677
+ }, [a, i]);
27678
+ const [_, u] = g.useState(""), [h, m] = g.useState(0), p = g.useMemo(
27679
+ () => ll(o, r),
27680
+ [o, r]
27681
+ ), f = g.useMemo(
27682
+ () => dl(o, r, d),
27683
+ [o, r, d]
27684
+ ), E = (S, A) => {
27685
+ m(A), u("");
27686
+ }, y = (S) => {
27687
+ u(_ === S ? "" : S);
27688
+ };
27689
+ return s ? /* @__PURE__ */ l(L, { width: "100%", children: [
27690
+ /* @__PURE__ */ l(qt, { onChange: E, value: h, variant: "fullWidth", children: [
27691
27691
  /* @__PURE__ */ t(
27692
- nt,
27692
+ tt,
27693
27693
  {
27694
27694
  label: /* @__PURE__ */ t(
27695
27695
  ta,
27696
27696
  {
27697
- amount: m.totalAmount,
27697
+ amount: p.totalAmount,
27698
27698
  label: n.spend_tab_title
27699
27699
  }
27700
27700
  )
27701
27701
  }
27702
27702
  ),
27703
27703
  /* @__PURE__ */ t(
27704
- nt,
27704
+ tt,
27705
27705
  {
27706
27706
  label: /* @__PURE__ */ t(
27707
27707
  ta,
27708
27708
  {
27709
- amount: p.totalAmount,
27709
+ amount: f.totalAmount,
27710
27710
  label: n.income_tab_title
27711
27711
  }
27712
27712
  )
27713
27713
  }
27714
27714
  )
27715
27715
  ] }),
27716
- u === 0 && /* @__PURE__ */ t(L, { children: /* @__PURE__ */ l(b, { direction: "row", gap: 16, justifyContent: "center", p: 24, children: [
27716
+ h === 0 && /* @__PURE__ */ t(L, { children: /* @__PURE__ */ l(b, { direction: "row", gap: 16, justifyContent: "center", p: 24, children: [
27717
27717
  /* @__PURE__ */ t(
27718
27718
  na,
27719
27719
  {
27720
- data: m,
27721
- onSelected: E,
27722
- selectedId: d,
27720
+ data: p,
27721
+ onSelected: y,
27722
+ selectedId: _,
27723
27723
  totalLabel: n.total_spending
27724
27724
  }
27725
27725
  ),
27726
27726
  /* @__PURE__ */ t(
27727
27727
  rs,
27728
27728
  {
27729
- data: m,
27730
- onSelected: E,
27731
- selectedId: d
27729
+ data: p,
27730
+ onSelected: y,
27731
+ selectedId: _
27732
27732
  }
27733
27733
  )
27734
27734
  ] }) }),
27735
- u === 1 && /* @__PURE__ */ t(L, { children: /* @__PURE__ */ l(b, { direction: "row", gap: 16, justifyContent: "center", p: 24, children: [
27735
+ h === 1 && /* @__PURE__ */ t(L, { children: /* @__PURE__ */ l(b, { direction: "row", gap: 16, justifyContent: "center", p: 24, children: [
27736
27736
  /* @__PURE__ */ t(
27737
27737
  na,
27738
27738
  {
27739
- data: p,
27739
+ data: f,
27740
27740
  isIncome: !0,
27741
- onSelected: E,
27742
- selectedId: d,
27741
+ onSelected: y,
27742
+ selectedId: _,
27743
27743
  totalLabel: n.total_income
27744
27744
  }
27745
27745
  ),
27746
- /* @__PURE__ */ t(rs, { data: p, onSelected: E, selectedId: d })
27746
+ /* @__PURE__ */ t(rs, { data: f, onSelected: y, selectedId: _ })
27747
27747
  ] }) })
27748
27748
  ] }) : /* @__PURE__ */ t(de, { height: 250 });
27749
27749
  }, yb = x(bb), Eb = ({ onPrimaryCtaClick: e, sx: n = {} }) => {
@@ -27944,7 +27944,7 @@ const Z0 = ({ widgets: e, isLoading: n }) => {
27944
27944
  return /* @__PURE__ */ l(L, { children: [
27945
27945
  /* @__PURE__ */ l(qt, { onChange: D, value: m, variant: "fullWidth", children: [
27946
27946
  /* @__PURE__ */ t(
27947
- nt,
27947
+ tt,
27948
27948
  {
27949
27949
  label: /* @__PURE__ */ t(
27950
27950
  ta,
@@ -27956,7 +27956,7 @@ const Z0 = ({ widgets: e, isLoading: n }) => {
27956
27956
  }
27957
27957
  ),
27958
27958
  /* @__PURE__ */ t(
27959
- nt,
27959
+ tt,
27960
27960
  {
27961
27961
  label: /* @__PURE__ */ t(
27962
27962
  ta,
@@ -28014,7 +28014,7 @@ const Z0 = ({ widgets: e, isLoading: n }) => {
28014
28014
  g.useEffect(() => {
28015
28015
  c(i);
28016
28016
  }, [i]), g.useEffect(() => {
28017
- s(Je(me()), ze(me())), u(!0), d(F.SPENDING_VIEW);
28017
+ s(nt(me()), ze(me())), u(!0), d(F.SPENDING_VIEW);
28018
28018
  }, []);
28019
28019
  const h = (m) => {
28020
28020
  s(m[0], m[1]);
@@ -28175,7 +28175,7 @@ export {
28175
28175
  Ns as PropertyType,
28176
28176
  S4 as PropertyTypeName,
28177
28177
  T4 as RECURRENCE_COPY,
28178
- tt as RecurrenceStatus,
28178
+ et as RecurrenceStatus,
28179
28179
  Yt as RecurrenceType,
28180
28180
  c_ as RecurrenceTypes,
28181
28181
  uc as RecurringSettings,