@mx-cartographer/experiences 6.2.1 → 6.2.2

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
@@ -24,7 +24,7 @@ import { Honeybadger as Pi } from "@honeybadger-io/react";
24
24
  import zr from "numeral";
25
25
  import ee from "@mui/material/Button";
26
26
  import oi from "@mui/material/Tooltip";
27
- import ze from "@mui/material/IconButton";
27
+ import Ye from "@mui/material/IconButton";
28
28
  import Xa from "@mui/material/FormControlLabel";
29
29
  import q from "@mui/material/ListItem";
30
30
  import de from "@mui/material/ListItemButton";
@@ -1447,7 +1447,7 @@ const iu = (e, n) => {
1447
1447
  };
1448
1448
  return /* @__PURE__ */ l(M, { className: "mx-cmn-account-filter", m: 4, sx: { ...s }, children: [
1449
1449
  d ? /* @__PURE__ */ t(oi, { id: "filter-accounts", placement: "bottom", title: n.title, children: /* @__PURE__ */ t(
1450
- ze,
1450
+ Ye,
1451
1451
  {
1452
1452
  "aria-controls": "filter_accounts",
1453
1453
  "aria-describedby": "filter-accounts",
@@ -2253,13 +2253,13 @@ const bu = ({
2253
2253
  if (!n)
2254
2254
  throw new Error(`${e}() must be used within the GlobalDataContext`);
2255
2255
  return n;
2256
- }, Re = () => Ze("useAccountStore").globalStore.accountStore, Ca = () => Ze("useAppConfig").globalStore.appDataStore.appConfig, yr = () => Ze("useAnalyticsStore").globalStore.analyticsStore, lt = () => Ze("useBudgetsStore").globalStore.budgetsStore, Er = () => Ze("useCashflowStore").globalStore.cashflowStore, Ue = () => Ze("useCategoryStore").globalStore.categoryStore, js = () => Ze("useConnectStore").globalStore.connectStore, fa = () => Ze("useDebtsStore").globalStore.debtsStore, ba = () => Ze("useGlobalStore").globalStore, ce = () => Ze("useGlobalUiStore").globalStore.globalUiStore, I = () => Ze("globalCopyStore").globalStore.copyStore.copy, ot = () => Ze("useGoalStore").globalStore.goalStore, Sr = () => Ze("useHelpStore").globalStore.helpStore, Ja = () => Ze("useHoldingStore").globalStore.holdingStore, Nu = () => Ze("useMerchantStore").globalStore.merchantStore, Du = () => Ze("useNetWorthStore").globalStore.netWorthStore, Xs = () => Ze("useNotificationStore").globalStore.notificationStore, tt = () => Ze("useRecurringActivityStore").globalStore.recurringActivityStore, Pt = () => Ze("useRecurringTransactionsStore").globalStore.recurringTransactionsStore, Ht = () => Ze("useSettingsStore").globalStore.settingsStore, Se = () => Ze("useTransactionStore").globalStore.transactionStore, dn = () => Ze("useUserStore").globalStore.userStore, z = () => ({ onEvent: Ze().onEvent }), dE = () => ({ onPageView: Ze().onPageView }), Ru = (e = "useWidgetContainerContext") => {
2256
+ }, Re = () => Ze("useAccountStore").globalStore.accountStore, Ca = () => Ze("useAppConfig").globalStore.appDataStore.appConfig, yr = () => Ze("useAnalyticsStore").globalStore.analyticsStore, lt = () => Ze("useBudgetsStore").globalStore.budgetsStore, Er = () => Ze("useCashflowStore").globalStore.cashflowStore, Ve = () => Ze("useCategoryStore").globalStore.categoryStore, js = () => Ze("useConnectStore").globalStore.connectStore, fa = () => Ze("useDebtsStore").globalStore.debtsStore, ba = () => Ze("useGlobalStore").globalStore, ce = () => Ze("useGlobalUiStore").globalStore.globalUiStore, I = () => Ze("globalCopyStore").globalStore.copyStore.copy, ot = () => Ze("useGoalStore").globalStore.goalStore, Sr = () => Ze("useHelpStore").globalStore.helpStore, Ja = () => Ze("useHoldingStore").globalStore.holdingStore, Nu = () => Ze("useMerchantStore").globalStore.merchantStore, Du = () => Ze("useNetWorthStore").globalStore.netWorthStore, Xs = () => Ze("useNotificationStore").globalStore.notificationStore, tt = () => Ze("useRecurringActivityStore").globalStore.recurringActivityStore, Pt = () => Ze("useRecurringTransactionsStore").globalStore.recurringTransactionsStore, Ht = () => Ze("useSettingsStore").globalStore.settingsStore, Se = () => Ze("useTransactionStore").globalStore.transactionStore, dn = () => Ze("useUserStore").globalStore.userStore, z = () => ({ onEvent: Ze().onEvent }), dE = () => ({ onPageView: Ze().onPageView }), Ru = (e = "useWidgetContainerContext") => {
2257
2257
  const n = g.useContext(zs);
2258
2258
  if (!n)
2259
2259
  throw new Error(`${e}() must be used within the WidgetContainerContext`);
2260
2260
  return n;
2261
2261
  }, $n = () => Ru(), qs = ({ categoryGuid: e, topLevelCategoryGuid: n }) => {
2262
- const { categories: i } = I(), { getCategoryName: a } = Ue(), r = a(e);
2262
+ const { categories: i } = I(), { getCategoryName: a } = Ve(), r = a(e);
2263
2263
  return /* @__PURE__ */ l(b, { alignItems: "center", direction: "column", gap: "8", justifyContent: "center", mb: 4, children: [
2264
2264
  /* @__PURE__ */ t(
2265
2265
  M,
@@ -2272,7 +2272,7 @@ const bu = ({
2272
2272
  ),
2273
2273
  /* @__PURE__ */ t(p, { variant: "Body", children: r })
2274
2274
  ] });
2275
- }, Ke = ({
2275
+ }, ze = ({
2276
2276
  isIncome: e = !1,
2277
2277
  amount: n = 0,
2278
2278
  bold: i,
@@ -2317,7 +2317,7 @@ const bu = ({
2317
2317
  /* @__PURE__ */ l(M, { alignItems: "center", display: "flex", flexDirection: "column", children: [
2318
2318
  /* @__PURE__ */ t(qs, { categoryGuid: e, topLevelCategoryGuid: n }),
2319
2319
  /* @__PURE__ */ t(p, { variant: "Small", children: `${i.length}-month total` }),
2320
- /* @__PURE__ */ t(Ke, { amount: _, bold: !0, formatString: "0,0", variant: "body2" })
2320
+ /* @__PURE__ */ t(ze, { amount: _, bold: !0, formatString: "0,0", variant: "body2" })
2321
2321
  ] }),
2322
2322
  /* @__PURE__ */ t(G, { sx: { my: 16, width: "100%" } }),
2323
2323
  /* @__PURE__ */ t(Je, { container: !0, children: i.map((u, h) => /* @__PURE__ */ l(g.Fragment, { children: [
@@ -2325,7 +2325,7 @@ const bu = ({
2325
2325
  /* @__PURE__ */ t(Je, { item: !0, xs: 4, children: /* @__PURE__ */ l(M, { alignItems: "center", display: "flex", flexDirection: "column", children: [
2326
2326
  /* @__PURE__ */ t(p, { color: o.palette.text.secondary, variant: "XSmall", children: u.x }),
2327
2327
  /* @__PURE__ */ t(
2328
- Ke,
2328
+ ze,
2329
2329
  {
2330
2330
  amount: u.y,
2331
2331
  bold: !0,
@@ -2348,7 +2348,7 @@ const bu = ({
2348
2348
  return s === void 0 || !c ? null : /* @__PURE__ */ t(ia, { sx: { pt: 4, px: 8 }, children: /* @__PURE__ */ t(gl, { children: /* @__PURE__ */ l(nn, { alignItems: "center", display: "flex", flexDirection: "column", children: [
2349
2349
  /* @__PURE__ */ t(qs, { categoryGuid: e, topLevelCategoryGuid: n }),
2350
2350
  /* @__PURE__ */ t(p, { color: o.palette.text.secondary, variant: "Small", children: ie(c, te.MONTH_SHORT_YEAR) }),
2351
- /* @__PURE__ */ t(Ke, { amount: String(s), bold: !0, formatString: "0,0", variant: "Body" })
2351
+ /* @__PURE__ */ t(ze, { amount: String(s), bold: !0, formatString: "0,0", variant: "Body" })
2352
2352
  ] }) }) });
2353
2353
  }, ku = ({
2354
2354
  sx: e,
@@ -2357,7 +2357,7 @@ const bu = ({
2357
2357
  onHoverLegend: a,
2358
2358
  onClickLegend: r
2359
2359
  }) => {
2360
- const { isMobile: o } = De(), { getCategoryName: s } = Ue();
2360
+ const { isMobile: o } = De(), { getCategoryName: s } = Ve();
2361
2361
  return /* @__PURE__ */ t(b, { direction: "row", flexWrap: "wrap", gap: o ? 2 : 6, justifyContent: "start", sx: e, children: n.map(({ guid: c, top_level_guid: d }) => {
2362
2362
  const _ = i === c, u = kn[c], h = kn[d], m = u ?? h ?? kn.default, C = m + "33";
2363
2363
  return /* @__PURE__ */ l(
@@ -2454,9 +2454,9 @@ const bu = ({
2454
2454
  };
2455
2455
  }, he = (se) => {
2456
2456
  m(se), i?.(se ?? "");
2457
- }, Ve = (se) => {
2457
+ }, Ke = (se) => {
2458
2458
  a?.(se ?? "");
2459
- }, Ye = () => {
2459
+ }, je = () => {
2460
2460
  const se = He(String(E)).guid;
2461
2461
  se && a?.(se);
2462
2462
  }, Te = (se) => {
@@ -2530,7 +2530,7 @@ const bu = ({
2530
2530
  {
2531
2531
  height: s || 400,
2532
2532
  margin: { bottom: 50 },
2533
- onAreaClick: Ye,
2533
+ onAreaClick: je,
2534
2534
  onHighlightChange: Te,
2535
2535
  series: ge,
2536
2536
  skipAnimation: !0,
@@ -2576,7 +2576,7 @@ const bu = ({
2576
2576
  {
2577
2577
  categoryGuids: _e,
2578
2578
  hoveredLegend: h,
2579
- onClickLegend: Ve,
2579
+ onClickLegend: Ke,
2580
2580
  onHoverLegend: he,
2581
2581
  sx: { px: _ ? 0 : 24 }
2582
2582
  }
@@ -2706,7 +2706,7 @@ const bu = ({
2706
2706
  padding: "8px 8px 8px 8px"
2707
2707
  },
2708
2708
  children: [
2709
- /* @__PURE__ */ t(ze, { "aria-label": e, color: "primary", onClick: n, children: /* @__PURE__ */ t(Fl, { color: "primary", sx: { fontSize: 22 } }) }),
2709
+ /* @__PURE__ */ t(Ye, { "aria-label": e, color: "primary", onClick: n, children: /* @__PURE__ */ t(Fl, { color: "primary", sx: { fontSize: 22 } }) }),
2710
2710
  /* @__PURE__ */ t(
2711
2711
  M,
2712
2712
  {
@@ -2840,7 +2840,7 @@ const bu = ({
2840
2840
  sx: { display: { xs: r ? "inline-flex" : "none", sm: "none" } },
2841
2841
  title: o,
2842
2842
  children: /* @__PURE__ */ t(
2843
- ze,
2843
+ Ye,
2844
2844
  {
2845
2845
  "aria-describedby": "select-date",
2846
2846
  "aria-label": "Select a date",
@@ -3203,7 +3203,7 @@ const Dn = ({
3203
3203
  /* @__PURE__ */ t(
3204
3204
  wn,
3205
3205
  {
3206
- action: a ? /* @__PURE__ */ t(ze, { "aria-label": n, onClick: a, children: /* @__PURE__ */ t(wt, { name: "close", size: 24 }) }) : r && /* @__PURE__ */ t(
3206
+ action: a ? /* @__PURE__ */ t(Ye, { "aria-label": n, onClick: a, children: /* @__PURE__ */ t(wt, { name: "close", size: 24 }) }) : r && /* @__PURE__ */ t(
3207
3207
  ee,
3208
3208
  {
3209
3209
  endIcon: /* @__PURE__ */ t(wt, { name: "keyboard_arrow_right_rounded" }),
@@ -3334,7 +3334,7 @@ const Dn = ({
3334
3334
  children: he
3335
3335
  },
3336
3336
  _e
3337
- ) : /* @__PURE__ */ t(ze, { "aria-label": he, color: "primary", onClick: He, children: /* @__PURE__ */ t(P, { name: _e }) }, _e) : T || x ? /* @__PURE__ */ t(
3337
+ ) : /* @__PURE__ */ t(Ye, { "aria-label": he, color: "primary", onClick: He, children: /* @__PURE__ */ t(P, { name: _e }) }, _e) : T || x ? /* @__PURE__ */ t(
3338
3338
  ee,
3339
3339
  {
3340
3340
  onClick: He,
@@ -3343,7 +3343,7 @@ const Dn = ({
3343
3343
  children: he
3344
3344
  },
3345
3345
  _e
3346
- ) : /* @__PURE__ */ t(ze, { "aria-label": he, color: "primary", onClick: He, children: /* @__PURE__ */ t(P, { name: _e }) }, _e);
3346
+ ) : /* @__PURE__ */ t(Ye, { "aria-label": he, color: "primary", onClick: He, children: /* @__PURE__ */ t(P, { name: _e }) }, _e);
3347
3347
  })
3348
3348
  ] }),
3349
3349
  sx: {
@@ -3359,7 +3359,7 @@ const Dn = ({
3359
3359
  },
3360
3360
  title: T || x ? /* @__PURE__ */ t(cn, { children: m }) : /* @__PURE__ */ l(b, { alignItems: "center", flexDirection: "row", children: [
3361
3361
  N && d && /* @__PURE__ */ t(
3362
- ze,
3362
+ Ye,
3363
3363
  {
3364
3364
  "aria-label": L.back_to_dashboard,
3365
3365
  onClick: U,
@@ -3562,7 +3562,7 @@ const po = "connect_widget", Co = "connections_widget", Wu = ({
3562
3562
  placement: a,
3563
3563
  sx: { display: { xs: "inline-flex", lg: "none" } },
3564
3564
  title: r,
3565
- children: /* @__PURE__ */ t(ze, { onClick: i, children: e })
3565
+ children: /* @__PURE__ */ t(Ye, { onClick: i, children: e })
3566
3566
  }
3567
3567
  )
3568
3568
  ] });
@@ -3574,7 +3574,7 @@ const po = "connect_widget", Co = "connections_widget", Wu = ({
3574
3574
  searchValue: r
3575
3575
  }) => {
3576
3576
  const o = ft(), s = /* @__PURE__ */ t(
3577
- ze,
3577
+ Ye,
3578
3578
  {
3579
3579
  "aria-label": n,
3580
3580
  className: "mx-cat-cancel-search-button",
@@ -3714,7 +3714,7 @@ const po = "connect_widget", Co = "connections_widget", Wu = ({
3714
3714
  /* @__PURE__ */ t(p, { sx: { whiteSpace: "unset" }, variant: "Small", children: e })
3715
3715
  ] }),
3716
3716
  children: /* @__PURE__ */ t(
3717
- ze,
3717
+ Ye,
3718
3718
  {
3719
3719
  "aria-label": i,
3720
3720
  sx: {
@@ -4331,7 +4331,7 @@ const li = () => {
4331
4331
  }
4332
4332
  ),
4333
4333
  /* @__PURE__ */ t(p, { bold: !0, sx: { flexGrow: 1, fontSize: 12 }, children: n.remaining_cash }),
4334
- /* @__PURE__ */ t(Ke, { amount: e, bold: !0, sx: { fontSize: 12 } })
4334
+ /* @__PURE__ */ t(ze, { amount: e, bold: !0, sx: { fontSize: 12 } })
4335
4335
  ] });
4336
4336
  }, Tr = A(t_), n_ = ({ onAddIncomeClick: e }) => {
4337
4337
  const n = pe(), { availableWidth: i } = $n(), { isMobile: a } = De(), { visibleCashAccounts: r, visibleCashBalance: o } = Re(), { selectedAccountGuids: s } = ce(), { cashflow: c } = I(), { userProfile: d } = dn(), {
@@ -4369,7 +4369,7 @@ const li = () => {
4369
4369
  px: 24,
4370
4370
  children: [
4371
4371
  /* @__PURE__ */ l(b, { pb: 14, pt: 12, children: [
4372
- /* @__PURE__ */ t(Ke, { amount: w, variant: "H2" }),
4372
+ /* @__PURE__ */ t(ze, { amount: w, variant: "H2" }),
4373
4373
  /* @__PURE__ */ t(Le, { variant: "XSmall", whiteSpace: "nowrap", children: S(
4374
4374
  c.total_cash_accounts,
4375
4375
  h.length
@@ -4377,12 +4377,12 @@ const li = () => {
4377
4377
  ] }),
4378
4378
  /* @__PURE__ */ t(b, { pt: 18, children: /* @__PURE__ */ t(P, { name: "remove" }) }),
4379
4379
  /* @__PURE__ */ l(b, { pb: 14, pt: 12, children: [
4380
- /* @__PURE__ */ t(Ke, { amount: N, variant: "H2" }),
4380
+ /* @__PURE__ */ t(ze, { amount: N, variant: "H2" }),
4381
4381
  /* @__PURE__ */ t(Le, { variant: "XSmall", whiteSpace: "nowrap", children: S(c.expenses_due, u.length) })
4382
4382
  ] }),
4383
4383
  /* @__PURE__ */ t(b, { pt: 18, children: /* @__PURE__ */ t(P, { name: "equals" }) }),
4384
4384
  /* @__PURE__ */ l(b, { pb: 14, pr: 24, pt: 12, children: [
4385
- /* @__PURE__ */ t(Ke, { amount: x, variant: "H2" }),
4385
+ /* @__PURE__ */ t(ze, { amount: x, variant: "H2" }),
4386
4386
  /* @__PURE__ */ l(b, { alignItems: "center", direction: "row", gap: 8, children: [
4387
4387
  /* @__PURE__ */ t(Le, { variant: "XSmall", whiteSpace: "nowrap", children: c.available_to_spend }),
4388
4388
  /* @__PURE__ */ t(Qi, { body: c.tooltip_body, title: c.tooltip_title })
@@ -4408,12 +4408,12 @@ const li = () => {
4408
4408
  c.total_cash_accounts,
4409
4409
  h.length
4410
4410
  ) }),
4411
- /* @__PURE__ */ t(Ke, { amount: o, bold: !0, variant: "XSmall" })
4411
+ /* @__PURE__ */ t(ze, { amount: o, bold: !0, variant: "XSmall" })
4412
4412
  ] }),
4413
4413
  /* @__PURE__ */ t(G, {}),
4414
4414
  /* @__PURE__ */ l(b, { direction: "row", justifyContent: "space-between", p: 16, children: [
4415
4415
  /* @__PURE__ */ t(p, { variant: "Small", children: S(c.expenses_due, u.length) }),
4416
- /* @__PURE__ */ t(Ke, { amount: N, bold: !0, symbol: "-", variant: "XSmall" })
4416
+ /* @__PURE__ */ t(ze, { amount: N, bold: !0, symbol: "-", variant: "XSmall" })
4417
4417
  ] }),
4418
4418
  /* @__PURE__ */ t(G, {}),
4419
4419
  /* @__PURE__ */ t(
@@ -4943,7 +4943,7 @@ const r_ = [
4943
4943
  const i = e.toLowerCase().split(" "), a = n?.toString().toLowerCase() ?? "";
4944
4944
  return i.every((r) => a.indexOf(r) > -1);
4945
4945
  };
4946
- var Qe = /* @__PURE__ */ ((e) => (e[e.Expense = 0] = "Expense", e[e.Income = 1] = "Income", e))(Qe || {}), et = /* @__PURE__ */ ((e) => (e[e.Paid = 0] = "Paid", e[e.Missed = 1] = "Missed", e[e.Upcoming = 2] = "Upcoming", e))(et || {}), h_ = /* @__PURE__ */ ((e) => (e[e.UNKNOWN = 0] = "UNKNOWN", e[e.CORRECT = 1] = "CORRECT", e[e.INCORRECT = 2] = "INCORRECT", e))(h_ || {}), g_ = /* @__PURE__ */ ((e) => (e.Missed = "Missed", e.Paid = "Paid", e.Upcoming = "Upcoming expense", e.Income = "Income", e))(g_ || {}), m_ = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.Subscription = 1] = "Subscription", e[e.Bill = 2] = "Bill", e))(m_ || {}), 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 || {}), ir = /* @__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))(ir || {}), xt = /* @__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))(xt || {}), je = /* @__PURE__ */ ((e) => (e[e.BudgetExceeded = 1] = "BudgetExceeded", e[e.BudgetOffTarget = 2] = "BudgetOffTarget", 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))(je || {}), Et = /* @__PURE__ */ ((e) => (e[e.CREDIT = 1] = "CREDIT", e[e.DEBIT = 2] = "DEBIT", e))(Et || {}), Ar = /* @__PURE__ */ ((e) => (e[e.POSTED = 1] = "POSTED", e[e.PENDING = 2] = "PENDING", e))(Ar || {}), p_ = /* @__PURE__ */ ((e) => (e.Desktop = "Desktop", e.Mobile = "Mobile", e))(p_ || {}), we = /* @__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))(we || {}), it = /* @__PURE__ */ ((e) => (e[e.Paid = 0] = "Paid", e[e.Missed = 1] = "Missed", e[e.Upcoming = 2] = "Upcoming", e))(it || {}), Yt = /* @__PURE__ */ ((e) => (e[e.Expense = 0] = "Expense", e[e.Income = 1] = "Income", e))(Yt || {}), on = /* @__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))(on || {});
4946
+ var Qe = /* @__PURE__ */ ((e) => (e[e.Expense = 0] = "Expense", e[e.Income = 1] = "Income", e))(Qe || {}), et = /* @__PURE__ */ ((e) => (e[e.Paid = 0] = "Paid", e[e.Missed = 1] = "Missed", e[e.Upcoming = 2] = "Upcoming", e))(et || {}), h_ = /* @__PURE__ */ ((e) => (e[e.UNKNOWN = 0] = "UNKNOWN", e[e.CORRECT = 1] = "CORRECT", e[e.INCORRECT = 2] = "INCORRECT", e))(h_ || {}), g_ = /* @__PURE__ */ ((e) => (e.Missed = "Missed", e.Paid = "Paid", e.Upcoming = "Upcoming expense", e.Income = "Income", e))(g_ || {}), m_ = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.Subscription = 1] = "Subscription", e[e.Bill = 2] = "Bill", e))(m_ || {}), 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 || {}), ir = /* @__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))(ir || {}), xt = /* @__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))(xt || {}), Ue = /* @__PURE__ */ ((e) => (e[e.BudgetExceeded = 1] = "BudgetExceeded", e[e.BudgetOffTarget = 2] = "BudgetOffTarget", 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))(Ue || {}), Et = /* @__PURE__ */ ((e) => (e[e.CREDIT = 1] = "CREDIT", e[e.DEBIT = 2] = "DEBIT", e))(Et || {}), Ar = /* @__PURE__ */ ((e) => (e[e.POSTED = 1] = "POSTED", e[e.PENDING = 2] = "PENDING", e))(Ar || {}), p_ = /* @__PURE__ */ ((e) => (e.Desktop = "Desktop", e.Mobile = "Mobile", e))(p_ || {}), we = /* @__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))(we || {}), it = /* @__PURE__ */ ((e) => (e[e.Paid = 0] = "Paid", e[e.Missed = 1] = "Missed", e[e.Upcoming = 2] = "Upcoming", e))(it || {}), Yt = /* @__PURE__ */ ((e) => (e[e.Expense = 0] = "Expense", e[e.Income = 1] = "Income", e))(Yt || {}), on = /* @__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))(on || {});
4947
4947
  const tc = {
4948
4948
  account_guid: "",
4949
4949
  amount: 0,
@@ -5523,7 +5523,7 @@ const At = () => {
5523
5523
  }, B_ = A(G_), pn = () => {
5524
5524
  if (!g.useContext(zn))
5525
5525
  throw new Error("useCategoryUiStore() must be used within the GlobalDataContext");
5526
- return Ue().uiStore;
5526
+ return Ve().uiStore;
5527
5527
  }, qt = {
5528
5528
  ON_CATEGORY_EXPANDED: "onCategoryExpanded",
5529
5529
  ON_CATEGORY_COLLAPSED: "onCategoryCollapsed",
@@ -5590,7 +5590,7 @@ const P_ = ({
5590
5590
  }
5591
5591
  );
5592
5592
  }, Ir = A(P_), H_ = ({ parentCategory: e }) => {
5593
- const [n, i] = g.useState(!1), { addCategory: a } = Ue(), { categories: r } = I(), { onEvent: o } = z(), { setShouldDisableDrawerScroll: s } = pn(), c = async (u) => {
5593
+ const [n, i] = g.useState(!1), { addCategory: a } = Ve(), { categories: r } = I(), { onEvent: o } = z(), { setShouldDisableDrawerScroll: s } = pn(), c = async (u) => {
5594
5594
  await a(u.trim(), e.guid), o(qt.ON_SUBCATEGORY_ADDED), i(!1);
5595
5595
  }, d = async () => {
5596
5596
  o(qt.ON_SUBCATEGORY_ADD_CLICK), s(!0), i(!0);
@@ -5620,7 +5620,7 @@ const P_ = ({
5620
5620
  subCategory: n,
5621
5621
  showRename: i
5622
5622
  }) => {
5623
- const { updateCategory: a } = Ue(), { onEvent: r } = z(), o = async (c) => {
5623
+ const { updateCategory: a } = Ve(), { onEvent: r } = z(), o = async (c) => {
5624
5624
  await a({ ...n, name: c }), r(qt.ON_SUBCATEGORY_SAVED), e(!1);
5625
5625
  }, s = () => {
5626
5626
  e(!1), r(qt.ON_SUBCATEGORY_EDIT_CANCEL_CLICK);
@@ -5641,7 +5641,7 @@ const P_ = ({
5641
5641
  setShowDelete: i,
5642
5642
  subCategory: a
5643
5643
  }) => {
5644
- const { onEvent: r } = z(), { removeCategory: o } = Ue(), s = () => {
5644
+ const { onEvent: r } = z(), { removeCategory: o } = Ve(), s = () => {
5645
5645
  i(!1), r(qt.ON_SUBCATEGORY_DELETE_CLICK);
5646
5646
  }, c = async () => {
5647
5647
  r(qt.ON_SUBCATEGORY_DELETED), await o(a.guid), i(!1);
@@ -5698,7 +5698,7 @@ const P_ = ({
5698
5698
  ),
5699
5699
  E && /* @__PURE__ */ l(M, { className: "mx-cat-subcategory-edit-container", sx: { marginRight: 24 }, children: [
5700
5700
  /* @__PURE__ */ t(
5701
- ze,
5701
+ Ye,
5702
5702
  {
5703
5703
  "aria-label": S(_.edit_subcategory_aria, n.name),
5704
5704
  onClick: () => {
@@ -5708,7 +5708,7 @@ const P_ = ({
5708
5708
  }
5709
5709
  ),
5710
5710
  /* @__PURE__ */ t(
5711
- ze,
5711
+ Ye,
5712
5712
  {
5713
5713
  "aria-label": S(_.delete_subcategory_aria, n.name),
5714
5714
  edge: "end",
@@ -5797,7 +5797,7 @@ const P_ = ({
5797
5797
  /* @__PURE__ */ t(j_, { categories: n, parentCategory: e })
5798
5798
  ] });
5799
5799
  }, ic = A(X_), q_ = () => {
5800
- const { categories: e } = Ue(), { searchValue: n } = pn(), { categories: i } = I(), r = ((o, s = "") => o.reduce((c, d) => {
5800
+ const { categories: e } = Ve(), { searchValue: n } = pn(), { categories: i } = I(), r = ((o, s = "") => o.reduce((c, d) => {
5801
5801
  if (d.parent_guid === null) {
5802
5802
  const u = [
5803
5803
  {
@@ -5829,7 +5829,7 @@ const P_ = ({
5829
5829
  unselectable: a = [],
5830
5830
  unselectableText: r = "Unselectable"
5831
5831
  }) => {
5832
- const { categories: o, loadCategories: s } = Ue(), { common: c } = I(), { isCopyLoaded: d } = ce(), {
5832
+ const { categories: o, loadCategories: s } = Ve(), { common: c } = I(), { isCopyLoaded: d } = ce(), {
5833
5833
  searchValue: _,
5834
5834
  setOnSelect: u,
5835
5835
  setSearchValue: h,
@@ -6073,7 +6073,7 @@ class ah {
6073
6073
  getCategoryName = (n) => this.categories.find((a) => a.guid === n)?.name ?? ga[n];
6074
6074
  }
6075
6075
  const rc = ({ transaction: e }) => {
6076
- const { addOrUpdateTransactionRule: n, updateTransaction: i } = Se(), { categories: a } = Ue(), { onEvent: r } = z(), { setShouldDisableDrawerScroll: o, updateManualTransaction: s } = At(), { transactions: c } = I(), [d, _] = g.useState(!1), [u, h] = g.useState(""), m = async (y) => {
6076
+ const { addOrUpdateTransactionRule: n, updateTransaction: i } = Se(), { categories: a } = Ve(), { onEvent: r } = z(), { setShouldDisableDrawerScroll: o, updateManualTransaction: s } = At(), { transactions: c } = I(), [d, _] = g.useState(!1), [u, h] = g.useState(""), m = async (y) => {
6077
6077
  await i({ ...e, category_guid: u }), y && await n(u, e), h(""), r(W.TRANSACTION_DETAILS_CLICK_CATEGORY, {
6078
6078
  transaction_guid: e.guid
6079
6079
  });
@@ -6512,7 +6512,7 @@ const rc = ({ transaction: e }) => {
6512
6512
  }
6513
6513
  ),
6514
6514
  /* @__PURE__ */ t(
6515
- ze,
6515
+ Ye,
6516
6516
  {
6517
6517
  "aria-label": c.split_transaction_delete_split_btn,
6518
6518
  color: "secondary",
@@ -6607,7 +6607,7 @@ const rc = ({ transaction: e }) => {
6607
6607
  ) })
6608
6608
  ] });
6609
6609
  }, mh = A(gh), ph = ({ transaction: e }) => {
6610
- const { onEvent: n } = z(), { splitTransaction: i, unSplitTransaction: a } = Se(), { common: r, transactions: o } = I(), { setShouldDisableDrawerScroll: s } = At(), { categories: c } = Ue(), d = {
6610
+ const { onEvent: n } = z(), { splitTransaction: i, unSplitTransaction: a } = Se(), { common: r, transactions: o } = I(), { setShouldDisableDrawerScroll: s } = At(), { categories: c } = Ve(), d = {
6611
6611
  ...e,
6612
6612
  amount: e.amount - 1,
6613
6613
  guid: "",
@@ -6791,7 +6791,7 @@ const rc = ({ transaction: e }) => {
6791
6791
  ] });
6792
6792
  }, bh = A(fh), yh = ({ onSearchValueChanged: e, searchValue: n }) => {
6793
6793
  const { common: i, transactions: a } = I(), r = ft(), o = /* @__PURE__ */ t(
6794
- ze,
6794
+ Ye,
6795
6795
  {
6796
6796
  "aria-label": a.tags_cancel_search || "Search",
6797
6797
  onClick: () => e(""),
@@ -6835,7 +6835,7 @@ const rc = ({ transaction: e }) => {
6835
6835
  disablePadding: !0,
6836
6836
  secondaryAction: !i.is_default_tag && /* @__PURE__ */ l(b, { direction: "row", children: [
6837
6837
  /* @__PURE__ */ t(
6838
- ze,
6838
+ Ye,
6839
6839
  {
6840
6840
  "aria-label": `Edit ${i.name} tag`,
6841
6841
  color: "secondary",
@@ -6844,7 +6844,7 @@ const rc = ({ transaction: e }) => {
6844
6844
  }
6845
6845
  ),
6846
6846
  /* @__PURE__ */ t(
6847
- ze,
6847
+ Ye,
6848
6848
  {
6849
6849
  "aria-label": `Delete ${i.name} tag`,
6850
6850
  color: "secondary",
@@ -7020,7 +7020,7 @@ const rc = ({ transaction: e }) => {
7020
7020
  ] }) : /* @__PURE__ */ l(b, { alignItems: "center", direction: "row", gap: 4, children: [
7021
7021
  /* @__PURE__ */ t(p, { bold: !0, children: e.description }),
7022
7022
  /* @__PURE__ */ t(
7023
- ze,
7023
+ Ye,
7024
7024
  {
7025
7025
  "aria-label": a.description_edit_transaction_name,
7026
7026
  onClick: () => {
@@ -7232,7 +7232,7 @@ const rc = ({ transaction: e }) => {
7232
7232
  ] })
7233
7233
  ] });
7234
7234
  }, kh = A(Mh), Gh = ({ onClose: e, transaction: n }) => {
7235
- const { addOrUpdateTransactionRule: i, updateTransaction: a } = Se(), { transactions: r } = I(), { categories: o } = Ue(), [s, c] = g.useState(""), d = g.useMemo(
7235
+ const { addOrUpdateTransactionRule: i, updateTransaction: a } = Se(), { transactions: r } = I(), { categories: o } = Ve(), [s, c] = g.useState(""), d = g.useMemo(
7236
7236
  () => o.find((u) => u.guid === s),
7237
7237
  [s]
7238
7238
  ), _ = async (u) => {
@@ -7301,7 +7301,7 @@ const rc = ({ transaction: e }) => {
7301
7301
  selectedAccounts: me,
7302
7302
  setDisplayedDate: V,
7303
7303
  setSelectedAccounts: Ce
7304
- } = ce(), [ge, _e] = g.useState(""), [He, he] = g.useState(""), [Ve, Ye] = g.useState(!1), [Te, _t] = g.useState(!1), [un, se] = g.useState(!1);
7304
+ } = ce(), [ge, _e] = g.useState(""), [He, he] = g.useState(""), [Ke, je] = g.useState(!1), [Te, _t] = g.useState(!1), [un, se] = g.useState(!1);
7305
7305
  g.useEffect(() => {
7306
7306
  Ce(r);
7307
7307
  }, [r]), g.useEffect(() => {
@@ -7340,11 +7340,11 @@ const rc = ({ transaction: e }) => {
7340
7340
  }), _e(
7341
7341
  "addTransaction"
7342
7342
  /* AddTransaction */
7343
- ), O(W.TRANSACTIONS_CLICK_ADD)) : (Ye(!0), O(W.TRANSACTIONS_ADD_MANUAL_ACCOUNT_MODAL));
7343
+ ), O(W.TRANSACTIONS_CLICK_ADD)) : (je(!0), O(W.TRANSACTIONS_ADD_MANUAL_ACCOUNT_MODAL));
7344
7344
  }, ka = async () => {
7345
7345
  _n && await f(d), _e("");
7346
7346
  }, tl = () => {
7347
- Ye(!1), _t(!0);
7347
+ je(!1), _t(!0);
7348
7348
  }, nl = async () => {
7349
7349
  _t(!1), await o();
7350
7350
  }, il = async () => {
@@ -7467,9 +7467,9 @@ const rc = ({ transaction: e }) => {
7467
7467
  Lh,
7468
7468
  {
7469
7469
  copy: { title: D.add_manual_account },
7470
- isOpen: Ve,
7470
+ isOpen: Ke,
7471
7471
  onClose: () => {
7472
- Ye(!1);
7472
+ je(!1);
7473
7473
  },
7474
7474
  onPrimaryAction: tl
7475
7475
  }
@@ -7642,7 +7642,7 @@ const rc = ({ transaction: e }) => {
7642
7642
  )
7643
7643
  ] });
7644
7644
  }, Wh = A(Fh), Uh = ({ activity: e, onDeleted: n }) => {
7645
- const { recurring: i } = I(), { categories: a } = Ue(), { deleteCashflowSequence: r, deleteScheduledPayment: o, paidActivities: s } = tt(), { filter: c, setFilter: d, transactions: _ } = Se(), { selectedAccountGuids: u } = ce(), { onEvent: h } = z(), [m, C] = g.useState(!1), [f, E] = g.useState(""), y = a.find((R) => R.guid === e.categoryGuid), T = e.activityType === Qe.Income, w = g.useMemo(
7645
+ const { recurring: i } = I(), { categories: a } = Ve(), { deleteCashflowSequence: r, deleteScheduledPayment: o, paidActivities: s } = tt(), { filter: c, setFilter: d, transactions: _ } = Se(), { selectedAccountGuids: u } = ce(), { onEvent: h } = z(), [m, C] = g.useState(!1), [f, E] = g.useState(""), y = a.find((R) => R.guid === e.categoryGuid), T = e.activityType === Qe.Income, w = g.useMemo(
7646
7646
  () => _.find((R) => R.guid === f),
7647
7647
  [f]
7648
7648
  );
@@ -9287,7 +9287,7 @@ const Dg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
9287
9287
  ] }),
9288
9288
  /* @__PURE__ */ t(p, { sx: { flexGrow: 1, fontSize: 13 }, children: e.name }),
9289
9289
  /* @__PURE__ */ t(
9290
- Ke,
9290
+ ze,
9291
9291
  {
9292
9292
  amount: e.amount,
9293
9293
  bold: !0,
@@ -9566,7 +9566,7 @@ const Dg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
9566
9566
  ),
9567
9567
  /* @__PURE__ */ t(p, { variant: "Small", children: `${f} ${C ? `*${C}` : ""}` })
9568
9568
  ] }),
9569
- /* @__PURE__ */ t(Ke, { amount: _.balance, bold: !0, variant: "Small" })
9569
+ /* @__PURE__ */ t(ze, { amount: _.balance, bold: !0, variant: "Small" })
9570
9570
  ]
9571
9571
  }
9572
9572
  ),
@@ -9581,7 +9581,7 @@ const Dg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
9581
9581
  py: 12,
9582
9582
  children: [
9583
9583
  /* @__PURE__ */ t(p, { variant: "Small", children: i.projected_income }),
9584
- /* @__PURE__ */ t(Ke, { amount: _.income, bold: !0, symbol: "+", variant: "Small" })
9584
+ /* @__PURE__ */ t(ze, { amount: _.income, bold: !0, symbol: "+", variant: "Small" })
9585
9585
  ]
9586
9586
  }
9587
9587
  ),
@@ -9596,7 +9596,7 @@ const Dg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
9596
9596
  py: 12,
9597
9597
  children: [
9598
9598
  /* @__PURE__ */ t(p, { variant: "Small", children: i.projected_expenses }),
9599
- /* @__PURE__ */ t(Ke, { amount: _.expenses, bold: !0, symbol: "-", variant: "Small" })
9599
+ /* @__PURE__ */ t(ze, { amount: _.expenses, bold: !0, symbol: "-", variant: "Small" })
9600
9600
  ]
9601
9601
  }
9602
9602
  ),
@@ -9680,12 +9680,12 @@ const Dg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
9680
9680
  padding: n ? "14px 16px" : 0,
9681
9681
  sx: { borderBottomLeftRadius: 4, borderBottomRightRadius: 4 },
9682
9682
  children: [
9683
- !n && /* @__PURE__ */ t(Ke, { amount: e, component: "h2", variant: "H2" }),
9683
+ !n && /* @__PURE__ */ t(ze, { amount: e, component: "h2", variant: "H2" }),
9684
9684
  /* @__PURE__ */ l(b, { alignItems: "center", component: "span", direction: "row", gap: 8, mt: 2, children: [
9685
9685
  /* @__PURE__ */ t(p, { bold: i, variant: "Small", children: a }),
9686
9686
  o
9687
9687
  ] }),
9688
- n && /* @__PURE__ */ t(Ke, { amount: e, component: "h2", symbol: r, variant: "Small" })
9688
+ n && /* @__PURE__ */ t(ze, { amount: e, component: "h2", symbol: r, variant: "Small" })
9689
9689
  ]
9690
9690
  }
9691
9691
  ), Go = (e, n) => (i) => i.accountGuid && e.includes(i.accountGuid) && (hr(i.expectedDate) || Zt(i.expectedDate, n.start)) && ve(i.expectedDate, n.end), Pg = () => {
@@ -9909,10 +9909,10 @@ const Dg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
9909
9909
  He,
9910
9910
  He.frequency,
9911
9911
  He.nextDate
9912
- ), Ve = await n(he);
9913
- if (Ve) {
9914
- const Ye = hc(Ve, He);
9915
- await e(Ye);
9912
+ ), Ke = await n(he);
9913
+ if (Ke) {
9914
+ const je = hc(Ke, He);
9915
+ await e(je);
9916
9916
  }
9917
9917
  }
9918
9918
  await o();
@@ -10708,7 +10708,7 @@ const Cn = () => {
10708
10708
  }
10709
10709
  return c;
10710
10710
  }, dm = () => {
10711
- const e = at(), { selectedAccount: n } = $t(), { monthlyCategoryTotals: i } = Ue(), { trends: a } = I(), r = [e.palette.chart?.chart1, e.palette.chart?.chart2], o = cm(i, n.account_type), s = lm(o, n.account_type, a), c = [oe.LOAN, oe.MORTGAGE].includes(n.account_type);
10711
+ const e = at(), { selectedAccount: n } = $t(), { monthlyCategoryTotals: i } = Ve(), { trends: a } = I(), r = [e.palette.chart?.chart1, e.palette.chart?.chart2], o = cm(i, n.account_type), s = lm(o, n.account_type, a), c = [oe.LOAN, oe.MORTGAGE].includes(n.account_type);
10712
10712
  return /* @__PURE__ */ t("div", { "data-testid": "TrendsChart", children: /* @__PURE__ */ t(
10713
10713
  br,
10714
10714
  {
@@ -10721,7 +10721,7 @@ const Cn = () => {
10721
10721
  }
10722
10722
  ) });
10723
10723
  }, um = A(dm), _m = ({ sx: e }) => {
10724
- const { loadMonthlyCategoryTotals: n } = Ue(), { isInitialized: i } = ba(), { selectedAccount: a } = $t(), [r, o] = g.useState(!1);
10724
+ const { loadMonthlyCategoryTotals: n } = Ve(), { isInitialized: i } = ba(), { selectedAccount: a } = $t(), [r, o] = g.useState(!1);
10725
10725
  return g.useEffect(() => {
10726
10726
  i && n([a]).finally(() => {
10727
10727
  o(!0);
@@ -11606,7 +11606,7 @@ const Ut = (e) => /* @__PURE__ */ t(p, { fontWeight: 600, variant: "Small", chil
11606
11606
  children: e
11607
11607
  }
11608
11608
  ) : /* @__PURE__ */ t(
11609
- ze,
11609
+ Ye,
11610
11610
  {
11611
11611
  "aria-controls": "prioritize-debts",
11612
11612
  "aria-describedby": "prioritize-debts",
@@ -13723,7 +13723,7 @@ const Mp = ({
13723
13723
  {
13724
13724
  primary: /* @__PURE__ */ l(b, { direction: "row", justifyContent: "space-between", sx: { fontWeight: 400 }, children: [
13725
13725
  /* @__PURE__ */ t(p, { variant: "Body", children: Fs(e.x) }),
13726
- /* @__PURE__ */ t(Ke, { amount: e.y, sx: { color: "inherit" }, variant: "Body" })
13726
+ /* @__PURE__ */ t(ze, { amount: e.y, sx: { color: "inherit" }, variant: "Body" })
13727
13727
  ] })
13728
13728
  }
13729
13729
  )
@@ -13797,14 +13797,14 @@ const Mp = ({
13797
13797
  }
13798
13798
  }
13799
13799
  ),
13800
- /* @__PURE__ */ t(Ke, { amount: a.change, color: s, variant: n }),
13800
+ /* @__PURE__ */ t(ze, { amount: a.change, color: s, variant: n }),
13801
13801
  /* @__PURE__ */ t(p, { variant: "Small", children: e })
13802
13802
  ] });
13803
13803
  }, kr = A($p), Fp = ({ hoveredData: e, selectedData: n }) => {
13804
13804
  const { net_worth: i } = I(), a = at(), r = e || n, o = On(Si(r.x), "MMMM");
13805
13805
  return /* @__PURE__ */ l(b, { alignItems: "center", direction: "column", m: 24, children: [
13806
13806
  /* @__PURE__ */ t(p, { color: a.palette.secondary.main, variant: "Small", children: `${o} ${i.net_worth}` }),
13807
- /* @__PURE__ */ t(Ke, { amount: r.y, variant: "H2" }),
13807
+ /* @__PURE__ */ t(ze, { amount: r.y, variant: "H2" }),
13808
13808
  /* @__PURE__ */ t(kr, { currencyLabel: i.this_month, netWorth: r, theme: a })
13809
13809
  ] });
13810
13810
  }, Wp = A(Fp), Up = ({
@@ -13867,7 +13867,7 @@ const Mp = ({
13867
13867
  {
13868
13868
  primary: /* @__PURE__ */ l(b, { direction: "row", justifyContent: "space-between", sx: { fontWeight: 400 }, children: [
13869
13869
  /* @__PURE__ */ t(p, { variant: "Body", children: o.accountName }),
13870
- /* @__PURE__ */ t(Ke, { amount: o.balance, variant: "Small" })
13870
+ /* @__PURE__ */ t(ze, { amount: o.balance, variant: "Small" })
13871
13871
  ] }),
13872
13872
  sx: { pl: 72, pr: 16 }
13873
13873
  }
@@ -13897,7 +13897,7 @@ const Mp = ({
13897
13897
  },
13898
13898
  children: [
13899
13899
  /* @__PURE__ */ t(p, { variant: "Body", children: o.current_net_worth }),
13900
- /* @__PURE__ */ t(Ke, { amount: e?.y ?? 0, variant: "H1" }),
13900
+ /* @__PURE__ */ t(ze, { amount: e?.y ?? 0, variant: "H1" }),
13901
13901
  e && /* @__PURE__ */ t(
13902
13902
  kr,
13903
13903
  {
@@ -13916,7 +13916,7 @@ const Mp = ({
13916
13916
  {
13917
13917
  primary: /* @__PURE__ */ l(b, { direction: "row", justifyContent: "space-between", children: [
13918
13918
  /* @__PURE__ */ t(p, { sx: { fontWeight: 700 }, variant: "XSmall", children: o.assets }),
13919
- /* @__PURE__ */ t(Ke, { amount: a, sx: { fontWeight: 400 }, variant: "XSmall" })
13919
+ /* @__PURE__ */ t(ze, { amount: a, sx: { fontWeight: 400 }, variant: "XSmall" })
13920
13920
  ] })
13921
13921
  }
13922
13922
  ) }),
@@ -13926,7 +13926,7 @@ const Mp = ({
13926
13926
  {
13927
13927
  primary: /* @__PURE__ */ l(b, { direction: "row", justifyContent: "space-between", children: [
13928
13928
  /* @__PURE__ */ t(p, { sx: { fontWeight: 700 }, variant: "XSmall", children: o.liabilities }),
13929
- /* @__PURE__ */ t(Ke, { amount: r, sx: { fontWeight: 400 }, variant: "XSmall" })
13929
+ /* @__PURE__ */ t(ze, { amount: r, sx: { fontWeight: 400 }, variant: "XSmall" })
13930
13930
  ] })
13931
13931
  }
13932
13932
  ) }),
@@ -13953,7 +13953,7 @@ const Mp = ({
13953
13953
  {
13954
13954
  primary: /* @__PURE__ */ l(b, { direction: "row", justifyContent: "space-between", children: [
13955
13955
  /* @__PURE__ */ t(p, { sx: { fontWeight: 700 }, variant: "XSmall", children: o.gains }),
13956
- /* @__PURE__ */ t(Ke, { amount: a, sx: { fontWeight: 400 }, variant: "XSmall" })
13956
+ /* @__PURE__ */ t(ze, { amount: a, sx: { fontWeight: 400 }, variant: "XSmall" })
13957
13957
  ] })
13958
13958
  }
13959
13959
  ) }),
@@ -13964,7 +13964,7 @@ const Mp = ({
13964
13964
  primary: /* @__PURE__ */ l(b, { direction: "row", justifyContent: "space-between", sx: { fontWeight: 400 }, children: [
13965
13965
  /* @__PURE__ */ t(p, { variant: "Body", children: c.accountName }),
13966
13966
  /* @__PURE__ */ t(
13967
- Ke,
13967
+ ze,
13968
13968
  {
13969
13969
  amount: c.gain,
13970
13970
  sx: { color: s.palette.success.main, fontWeight: 700 },
@@ -13982,7 +13982,7 @@ const Mp = ({
13982
13982
  {
13983
13983
  primary: /* @__PURE__ */ l(b, { direction: "row", justifyContent: "space-between", children: [
13984
13984
  /* @__PURE__ */ t(p, { sx: { fontWeight: 700 }, variant: "XSmall", children: o.losses }),
13985
- /* @__PURE__ */ t(Ke, { amount: r, sx: { fontWeight: 400 }, variant: "XSmall" })
13985
+ /* @__PURE__ */ t(ze, { amount: r, sx: { fontWeight: 400 }, variant: "XSmall" })
13986
13986
  ] })
13987
13987
  }
13988
13988
  ) }),
@@ -13996,7 +13996,7 @@ const Mp = ({
13996
13996
  {
13997
13997
  primary: /* @__PURE__ */ l(b, { direction: "row", justifyContent: "space-between", sx: { fontWeight: 400 }, children: [
13998
13998
  /* @__PURE__ */ t(p, { variant: "Body", children: c.accountName }),
13999
- /* @__PURE__ */ t(Ke, { amount: c.loss, sx: { fontWeight: 700 }, variant: "Body" })
13999
+ /* @__PURE__ */ t(ze, { amount: c.loss, sx: { fontWeight: 700 }, variant: "Body" })
14000
14000
  ] }),
14001
14001
  sx: { px: 16 }
14002
14002
  }
@@ -14031,16 +14031,16 @@ const Mp = ({
14031
14031
  }, [i, a]), g.useEffect(() => {
14032
14032
  w(W.NET_WORTH_WIDGET_CLICK_TIMEFRAME, { time_period: R + "M" }), h(R).finally();
14033
14033
  }, [R]);
14034
- const V = (Ye, Te) => {
14035
- y(Te), Ye.currentTarget instanceof HTMLDivElement && O(!0);
14036
- }, Ce = (Ye) => {
14037
- E(Ye);
14034
+ const V = (je, Te) => {
14035
+ y(Te), je.currentTarget instanceof HTMLDivElement && O(!0);
14036
+ }, Ce = (je) => {
14037
+ E(je);
14038
14038
  }, ge = () => {
14039
14039
  E(null);
14040
14040
  }, _e = () => {
14041
14041
  w(W.NET_WORTH_WIDGET_CLICK_ASSETS_LIABILITIES), U(!0);
14042
- }, He = async (Ye) => {
14043
- const Te = Ye[0], _t = Ye[1];
14042
+ }, He = async (je) => {
14043
+ const Te = je[0], _t = je[1];
14044
14044
  Te && _t && D(dd(_t, Te));
14045
14045
  }, he = {
14046
14046
  chartData: C,
@@ -14050,7 +14050,7 @@ const Mp = ({
14050
14050
  onMouseEnter: Ce,
14051
14051
  onMouseLeave: ge,
14052
14052
  selectedData: f
14053
- }, Ve = () => {
14053
+ }, Ke = () => {
14054
14054
  j(!0), w(W.ACCOUNTS_CLICK_CONNECT);
14055
14055
  };
14056
14056
  return n ? /* @__PURE__ */ t(
@@ -14098,7 +14098,7 @@ const Mp = ({
14098
14098
  {
14099
14099
  header: s.empty_widget_header,
14100
14100
  icon: "elevation",
14101
- onClick: Ve,
14101
+ onClick: Ke,
14102
14102
  primaryButton: s.empty_widget_button,
14103
14103
  subText: s.empty_widget_description,
14104
14104
  sx: {
@@ -14146,16 +14146,16 @@ const Mp = ({
14146
14146
  ) : /* @__PURE__ */ t(ue, {});
14147
14147
  }), IE = (e) => {
14148
14148
  switch (e) {
14149
- case je.BudgetExceeded:
14150
- case je.BudgetOffTarget:
14149
+ case Ue.BudgetExceeded:
14150
+ case Ue.BudgetOffTarget:
14151
14151
  return k.BUDGETS;
14152
- case je.DebtPaymentReminder:
14153
- case je.AccountBalanceLow:
14154
- case je.AccountDepositLarge:
14152
+ case Ue.DebtPaymentReminder:
14153
+ case Ue.AccountBalanceLow:
14154
+ case Ue.AccountDepositLarge:
14155
14155
  return k.ACCOUNTS;
14156
- case je.TransactionExpenseLarge:
14157
- case je.TransactionFeeCharge:
14158
- case je.InternationalTransaction:
14156
+ case Ue.TransactionExpenseLarge:
14157
+ case Ue.TransactionFeeCharge:
14158
+ case Ue.InternationalTransaction:
14159
14159
  return k.TRANSACTIONS;
14160
14160
  default:
14161
14161
  return null;
@@ -14293,21 +14293,22 @@ class jo {
14293
14293
  }
14294
14294
  const Xo = "PARENT-ENTITY", a1 = (e, n) => {
14295
14295
  switch (e) {
14296
- case je.BudgetExceeded:
14296
+ case Ue.BudgetExceeded:
14297
14297
  return n.notification_budget_exceeded;
14298
- case je.BudgetOffTarget:
14298
+ case Ue.BudgetOffTarget:
14299
14299
  return n.notification_budget_off_target;
14300
- case je.DebtPaymentReminder:
14300
+ case Ue.DebtPaymentReminder:
14301
14301
  return n.notification_debt_payment_reminder;
14302
- case je.AccountBalanceLow:
14302
+ case Ue.AccountBalanceLow:
14303
14303
  return n.notification_low_balance;
14304
- case je.AccountDepositLarge:
14304
+ case Ue.AccountDepositLargePosted:
14305
+ case Ue.AccountDepositLarge:
14305
14306
  return n.notification_large_deposit;
14306
- case je.TransactionExpenseLarge:
14307
+ case Ue.TransactionExpenseLarge:
14307
14308
  return n.notification_large_expense;
14308
- case je.TransactionFeeCharge:
14309
+ case Ue.TransactionFeeCharge:
14309
14310
  return n.notification_transaction_fee;
14310
- case je.InternationalTransaction:
14311
+ case Ue.InternationalTransaction:
14311
14312
  return n.notification_transaction_is_international;
14312
14313
  default:
14313
14314
  return "";
@@ -14353,12 +14354,12 @@ class o1 {
14353
14354
  }
14354
14355
  get accountProfiles() {
14355
14356
  return this.detailedNotificationProfiles.filter(
14356
- (n) => n.notification_type === je.DebtPaymentReminder || n.notification_type === je.AccountBalanceLow || n.notification_type === je.AccountDepositLarge || n.notification_type === je.TransactionExpenseLarge || n.notification_type === je.TransactionFeeCharge || n.notification_type === je.InternationalTransaction
14357
+ (n) => n.notification_type === Ue.DebtPaymentReminder || n.notification_type === Ue.AccountBalanceLow || n.notification_type === Ue.AccountDepositLarge || n.notification_type === Ue.AccountDepositLargePosted || n.notification_type === Ue.TransactionExpenseLarge || n.notification_type === Ue.TransactionFeeCharge || n.notification_type === Ue.InternationalTransaction
14357
14358
  );
14358
14359
  }
14359
14360
  get budgetProfiles() {
14360
14361
  return this.detailedNotificationProfiles.filter(
14361
- (n) => n.notification_type === je.BudgetExceeded || n.notification_type === je.BudgetOffTarget
14362
+ (n) => n.notification_type === Ue.BudgetExceeded || n.notification_type === Ue.BudgetOffTarget
14362
14363
  );
14363
14364
  }
14364
14365
  get clientCommunicationProfile() {
@@ -18040,7 +18041,7 @@ const X1 = ({
18040
18041
  renderCell: (c) => /* @__PURE__ */ l(b, { alignItems: "center", direction: "row", gap: 4, children: [
18041
18042
  /* @__PURE__ */ t(p, { variant: "Small", children: c.value }),
18042
18043
  /* @__PURE__ */ t(
18043
- ze,
18044
+ Ye,
18044
18045
  {
18045
18046
  "aria-label": r.mobile_devices_edit_label,
18046
18047
  color: "secondary",
@@ -18077,7 +18078,7 @@ const X1 = ({
18077
18078
  headerName: "",
18078
18079
  renderHeader: Ut,
18079
18080
  renderCell: (c) => /* @__PURE__ */ t(b, { mr: 4, children: /* @__PURE__ */ t(
18080
- ze,
18081
+ Ye,
18081
18082
  {
18082
18083
  "aria-label": r.mobile_devices_delete_label,
18083
18084
  color: "secondary",
@@ -18194,7 +18195,7 @@ const X1 = ({
18194
18195
  borderColor: a.palette.border.light
18195
18196
  },
18196
18197
  children: [
18197
- /* @__PURE__ */ t(ze, { "aria-label": r.mobile_devices_edit_label, color: "secondary", children: /* @__PURE__ */ t(P, { name: "edit" }) }),
18198
+ /* @__PURE__ */ t(Ye, { "aria-label": r.mobile_devices_edit_label, color: "secondary", children: /* @__PURE__ */ t(P, { name: "edit" }) }),
18198
18199
  /* @__PURE__ */ t(p, { variant: "Body", children: r.mobile_devices_edit_label })
18199
18200
  ]
18200
18201
  }
@@ -18212,7 +18213,7 @@ const X1 = ({
18212
18213
  cursor: "pointer"
18213
18214
  },
18214
18215
  children: [
18215
- /* @__PURE__ */ t(ze, { "aria-label": r.mobile_devices_delete_label, color: "secondary", children: /* @__PURE__ */ t(P, { name: "delete" }) }),
18216
+ /* @__PURE__ */ t(Ye, { "aria-label": r.mobile_devices_delete_label, color: "secondary", children: /* @__PURE__ */ t(P, { name: "delete" }) }),
18216
18217
  /* @__PURE__ */ t(p, { variant: "Body", children: r.mobile_devices_delete_label })
18217
18218
  ]
18218
18219
  }
@@ -18425,7 +18426,7 @@ const X1 = ({
18425
18426
  ] }) });
18426
18427
  }
18427
18428
  ), eC = A(() => {
18428
- const { settings: e } = I(), { categories: n } = Ue(), { selectedRule: i, updateRuleCategory: a } = Ht(), [r, o] = g.useState(!1), s = () => {
18429
+ const { settings: e } = I(), { categories: n } = Ve(), { selectedRule: i, updateRuleCategory: a } = Ht(), [r, o] = g.useState(!1), s = () => {
18429
18430
  o(!1);
18430
18431
  }, c = () => {
18431
18432
  o(!0);
@@ -18553,7 +18554,7 @@ const X1 = ({
18553
18554
  );
18554
18555
  }
18555
18556
  ), aC = A(({ rule: e }) => {
18556
- const { categories: n } = Ue(), { setSelectedGuid: i } = pn(), { deleteTransactionRule: a, setSelectedRule: r } = Ht(), { isDesktop: o, isTablet: s } = De(), [c, d] = g.useState(!1), _ = () => {
18557
+ const { categories: n } = Ve(), { setSelectedGuid: i } = pn(), { deleteTransactionRule: a, setSelectedRule: r } = Ht(), { isDesktop: o, isTablet: s } = De(), [c, d] = g.useState(!1), _ = () => {
18557
18558
  d(!1), i(null), r(void 0);
18558
18559
  }, u = async () => {
18559
18560
  await a(), _();
@@ -18637,7 +18638,7 @@ const X1 = ({
18637
18638
  ] });
18638
18639
  }), sC = A(
18639
18640
  ({ onProfileUpdated: e, profile: n }) => {
18640
- const { common: i, settings: a } = I(), { updateAccount: r } = Re(), o = n.notification_type === je.DebtPaymentReminder, [s, c] = g.useState(!1), [d, _] = g.useState(n.threshold || 0), [u, h] = g.useState(
18641
+ const { common: i, settings: a } = I(), { updateAccount: r } = Re(), o = n.notification_type === Ue.DebtPaymentReminder, [s, c] = g.useState(!1), [d, _] = g.useState(n.threshold || 0), [u, h] = g.useState(
18641
18642
  n.account?.day_payment_is_due || 0
18642
18643
  ), m = n.account?.name || n.account?.feed_name || "", C = n.account?.day_payment_is_due ? S(
18643
18644
  a.notification_debt_payment_date,
@@ -18939,7 +18940,7 @@ const X1 = ({
18939
18940
  title: a.notifications_title,
18940
18941
  children: [
18941
18942
  !o && /* @__PURE__ */ t(
18942
- ze,
18943
+ Ye,
18943
18944
  {
18944
18945
  "aria-label": "Open notification settings",
18945
18946
  onClick: () => s(!0),
@@ -21444,7 +21445,7 @@ const gf = ({
21444
21445
  onConnectAccountsClick: n,
21445
21446
  createBudgetOnClick: i
21446
21447
  }) => {
21447
- const { recalculateBudgets: a } = lt(), { spendCategories: r } = Ue(), { budgets: o } = I(), [s, c] = g.useState(!1), [d, _] = g.useState(!1), [u, h] = g.useState(!1), m = g.useMemo(() => [...r.filter((f) => f.totalAverageAmount > 0)], [r]), C = async () => {
21448
+ const { recalculateBudgets: a } = lt(), { spendCategories: r } = Ve(), { budgets: o } = I(), [s, c] = g.useState(!1), [d, _] = g.useState(!1), [u, h] = g.useState(!1), m = g.useMemo(() => [...r.filter((f) => f.totalAverageAmount > 0)], [r]), C = async () => {
21448
21449
  h(!0);
21449
21450
  const { data: f, isSuccess: E } = await a(m);
21450
21451
  h(!1), E ? (f.length === 0 && c(!0), _(!1)) : _(!0);
@@ -21523,7 +21524,7 @@ const gf = ({
21523
21524
  shouldShowZeroState: r,
21524
21525
  unavailableWidth: o = 24
21525
21526
  }) => {
21526
- const { onEvent: s } = z(), { setSelectedBudget: c } = lt(), { isLoadingCategoryTotals: d } = Ue(), { isInitialized: _ } = ce(), { accounts: u } = I(), { availableWidth: h } = $n(), { isMobile: m } = De(), [C, f] = g.useState(!1), E = g.useMemo(() => h - o, [h]), y = (w) => {
21527
+ const { onEvent: s } = z(), { setSelectedBudget: c } = lt(), { isLoadingCategoryTotals: d } = Ve(), { isInitialized: _ } = ce(), { accounts: u } = I(), { availableWidth: h } = $n(), { isMobile: m } = De(), [C, f] = g.useState(!1), E = g.useMemo(() => h - o, [h]), y = (w) => {
21527
21528
  c(w), s(W.BUDGETS_CLICK_BUDGET_CATEGORY, {
21528
21529
  budget_category: w.category.name,
21529
21530
  click_type: "bubble"
@@ -21559,7 +21560,7 @@ const gf = ({
21559
21560
  ] });
21560
21561
  }
21561
21562
  ), Cf = (e) => {
21562
- const n = pe(), { accounts: i } = Re(), { budgets: a, isDataLoaded: r, loadBudgetData: o, setTheme: s } = lt(), { budgets: c } = I(), { isCopyLoaded: d, isInitialized: _ } = ce(), { reloadCategoryTotals: u } = Ue(), h = Zu(), m = a.length === 0;
21563
+ const n = pe(), { accounts: i } = Re(), { budgets: a, isDataLoaded: r, loadBudgetData: o, setTheme: s } = lt(), { budgets: c } = I(), { isCopyLoaded: d, isInitialized: _ } = ce(), { reloadCategoryTotals: u } = Ve(), h = Zu(), m = a.length === 0;
21563
21564
  return g.useEffect(() => {
21564
21565
  s(n);
21565
21566
  }, [n]), g.useEffect(() => {
@@ -21621,7 +21622,7 @@ const gf = ({
21621
21622
  ] }, e.guid);
21622
21623
  }
21623
21624
  ), yf = ({ onRecalculateBudgets: e }) => {
21624
- const { budgets: n, common: i } = I(), { spendCategories: a } = Ue(), { recalculateBudgets: r, setAlert: o } = lt(), [s, c] = g.useState(!1), d = a.filter((u) => u.totalAverageAmount > 0), _ = async () => {
21625
+ const { budgets: n, common: i } = I(), { spendCategories: a } = Ve(), { recalculateBudgets: r, setAlert: o } = lt(), [s, c] = g.useState(!1), d = a.filter((u) => u.totalAverageAmount > 0), _ = async () => {
21625
21626
  await r(d), c(!1), o(n.alert_recalculated_budgets), e?.();
21626
21627
  };
21627
21628
  return /* @__PURE__ */ l(g.Fragment, { children: [
@@ -22083,7 +22084,7 @@ const gf = ({
22083
22084
  ] }, o.guid)) }) })
22084
22085
  ] });
22085
22086
  }), Rf = A(() => {
22086
- const e = pe(), { onEvent: n } = z(), { visibleAccounts: i } = Re(), { budgets: a, common: r, recurring: o } = I(), { incomeCategories: s, spendCategories: c } = Ue(), { detailedBudgets: d, totalBudgeted: _ } = lt(), { projectedIncome: u } = tt(), { setFilter: h } = Se(), [m, C] = g.useState(!1), [f, E] = g.useMemo(() => {
22087
+ const e = pe(), { onEvent: n } = z(), { visibleAccounts: i } = Re(), { budgets: a, common: r, recurring: o } = I(), { incomeCategories: s, spendCategories: c } = Ve(), { detailedBudgets: d, totalBudgeted: _ } = lt(), { projectedIncome: u } = tt(), { setFilter: h } = Se(), [m, C] = g.useState(!1), [f, E] = g.useMemo(() => {
22087
22088
  const N = c.reduce(($, O) => $ + O.totalAmount, 0);
22088
22089
  let x = N / _;
22089
22090
  x > 1 && (x = 1);
@@ -22134,7 +22135,7 @@ const gf = ({
22134
22135
  /* @__PURE__ */ l(b, { alignItems: "center", direction: "row", gap: 4, mb: -4, children: [
22135
22136
  /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: a.income_title }),
22136
22137
  /* @__PURE__ */ t(
22137
- ze,
22138
+ Ye,
22138
22139
  {
22139
22140
  "aria-label": o.manage_income,
22140
22141
  onClick: w,
@@ -22175,7 +22176,7 @@ const gf = ({
22175
22176
  setAlert: T,
22176
22177
  setTheme: w,
22177
22178
  budgets: N
22178
- } = lt(), { loadActivity: x } = tt(), { isDesktop: R, isTablet: D } = De(), { reloadCategoryTotals: $ } = Ue(), [O, L] = g.useState(!1);
22179
+ } = lt(), { loadActivity: x } = tt(), { isDesktop: R, isTablet: D } = De(), { reloadCategoryTotals: $ } = Ve(), [O, L] = g.useState(!1);
22179
22180
  g.useEffect(() => {
22180
22181
  w(i), h(r), u(C.start, C.end), a(W.BUDGETS_VIEW);
22181
22182
  }, []), g.useEffect(() => {
@@ -22640,19 +22641,19 @@ const kf = ({ widgets: e, isLoading: n }) => {
22640
22641
  const { isCopyLoaded: L } = ce(), [U, H] = yt(null), [j, me] = yt("");
22641
22642
  if (!L || !d)
22642
22643
  return /* @__PURE__ */ t(ue, {});
22643
- const V = (he, Ve) => {
22644
- H(he), me(Ve.toFixed(2));
22644
+ const V = (he, Ke) => {
22645
+ H(he), me(Ke.toFixed(2));
22645
22646
  }, Ce = (he) => {
22646
- const Ve = he.target.value;
22647
- /^\d*\.?\d*$/.test(Ve) && me(Ve);
22648
- }, ge = (he, Ve) => {
22647
+ const Ke = he.target.value;
22648
+ /^\d*\.?\d*$/.test(Ke) && me(Ke);
22649
+ }, ge = (he, Ke) => {
22649
22650
  if (he.key === "Enter") {
22650
- const Ye = s.find(({ guid: Te }) => Te === Ve);
22651
- c({ ...Ye, cost_basis: Number(j) }), H(null);
22651
+ const je = s.find(({ guid: Te }) => Te === Ke);
22652
+ c({ ...je, cost_basis: Number(j) }), H(null);
22652
22653
  } else he.key === "Escape" && H(null);
22653
22654
  }, _e = (he) => {
22654
- const Ve = s.find(({ guid: Ye }) => Ye === he);
22655
- c({ ...Ve, cost_basis: Number(j) }), H(null);
22655
+ const Ke = s.find(({ guid: je }) => je === he);
22656
+ c({ ...Ke, cost_basis: Number(j) }), H(null);
22656
22657
  }, He = [
22657
22658
  {
22658
22659
  field: "qty",
@@ -22678,15 +22679,15 @@ const kf = ({ widgets: e, isLoading: n }) => {
22678
22679
  width: 132,
22679
22680
  renderHeader: Fi,
22680
22681
  renderCell: (he) => {
22681
- const Ve = U === he.row.id;
22682
+ const Ke = U === he.row.id;
22682
22683
  return /* @__PURE__ */ l(Ee, { sx: { alignItems: "center", flexDirection: "row", gap: 4 }, children: [
22683
- Ve ? /* @__PURE__ */ t(
22684
+ Ke ? /* @__PURE__ */ t(
22684
22685
  nt,
22685
22686
  {
22686
22687
  autoFocus: !0,
22687
22688
  onBlur: () => _e(he.row.id),
22688
22689
  onChange: Ce,
22689
- onKeyDown: (Ye) => ge(Ye, he.row.id),
22690
+ onKeyDown: (je) => ge(je, he.row.id),
22690
22691
  size: "small",
22691
22692
  sx: {
22692
22693
  fontSize: 14,
@@ -22710,7 +22711,7 @@ const kf = ({ widgets: e, isLoading: n }) => {
22710
22711
  style: "currency"
22711
22712
  }) }),
22712
22713
  /* @__PURE__ */ t(
22713
- ze,
22714
+ Ye,
22714
22715
  {
22715
22716
  onClick: () => V(he.row.id, he.row.costBasis),
22716
22717
  sx: { minWidth: 12, minHeight: 12 },
@@ -22728,7 +22729,7 @@ const kf = ({ widgets: e, isLoading: n }) => {
22728
22729
  width: 196,
22729
22730
  renderHeader: Fi,
22730
22731
  renderCell: (he) => {
22731
- const Ve = he.row.costBasis, Ye = Ve ? he.row.totalGainLoss / Ve * 100 : 0, Te = he.value <= 0 ? "text.secondary" : "#0AC295";
22732
+ const Ke = he.row.costBasis, je = Ke ? he.row.totalGainLoss / Ke * 100 : 0, Te = he.value <= 0 ? "text.secondary" : "#0AC295";
22732
22733
  return /* @__PURE__ */ l(Ee, { sx: { alignItems: "center", flexDirection: "row", gap: 2 }, children: [
22733
22734
  he.value !== 0 && /* @__PURE__ */ t(
22734
22735
  wt,
@@ -22738,7 +22739,7 @@ const kf = ({ widgets: e, isLoading: n }) => {
22738
22739
  sx: { color: Te, mr: 1, verticalAlign: "middle" }
22739
22740
  }
22740
22741
  ),
22741
- /* @__PURE__ */ t(p, { sx: { color: Te, fontWeight: 700 }, variant: "Small", children: Ve ? `${Ye.toFixed(2)}%` : "0.00%" }),
22742
+ /* @__PURE__ */ t(p, { sx: { color: Te, fontWeight: 700 }, variant: "Small", children: Ke ? `${je.toFixed(2)}%` : "0.00%" }),
22742
22743
  /* @__PURE__ */ t(p, { sx: { color: "text.secondary" }, variant: "XSmall", children: "|" }),
22743
22744
  /* @__PURE__ */ t(p, { sx: { color: Te, fontWeight: 700 }, variant: "Small", children: Math.abs(he.value).toLocaleString("en-US", {
22744
22745
  currency: "USD",
@@ -24561,7 +24562,7 @@ const Gi = g.createContext(null), Yf = ({
24561
24562
  const c = o0(), d = at(), { carouselCopy: _ } = Fn(), u = Math.floor(s) > o || n === 0, h = s < 0 || i - 1 === n, m = d.palette.grey[500], C = e?.primary_300 ?? d.palette.primary.main;
24562
24563
  return /* @__PURE__ */ l(M, { className: c, children: [
24563
24564
  /* @__PURE__ */ t(
24564
- ze,
24565
+ Ye,
24565
24566
  {
24566
24567
  "aria-disabled": u,
24567
24568
  "aria-label": _.previous_insight_cta_aria,
@@ -24588,7 +24589,7 @@ const Gi = g.createContext(null), Yf = ({
24588
24589
  `carousel-button-${E}`
24589
24590
  )),
24590
24591
  /* @__PURE__ */ t(
24591
- ze,
24592
+ Ye,
24592
24593
  {
24593
24594
  "aria-disabled": h,
24594
24595
  "aria-label": _.next_insight_cta_aria,
@@ -24691,11 +24692,11 @@ const Gi = g.createContext(null), Yf = ({
24691
24692
  N.card_position_in_carousel_aria,
24692
24693
  ge.toString(),
24693
24694
  _e.toString()
24694
- ), he = V.micro_title && V.micro_title.length > 0, Ve = V.micro_description && V.micro_description.length > 0, Ye = he ? V.micro_title : V.title, Te = Ve ? V.micro_description : V.description;
24695
+ ), he = V.micro_title && V.micro_title.length > 0, Ke = V.micro_description && V.micro_description.length > 0, je = he ? V.micro_title : V.title, Te = Ke ? V.micro_description : V.description;
24695
24696
  return /* @__PURE__ */ t(
24696
24697
  a0,
24697
24698
  {
24698
- ariaLabel: `${He}: ${Ye}, ${Te}`,
24699
+ ariaLabel: `${He}: ${je}, ${Te}`,
24699
24700
  beat: V,
24700
24701
  index: Ce,
24701
24702
  isActiveCard: Ce === j,
@@ -26325,7 +26326,7 @@ const Gi = g.createContext(null), Yf = ({
26325
26326
  dateRangeCategoryTotals: r,
26326
26327
  dataRangeTotalsLoaded: o,
26327
26328
  loadDateRangeCategoryTotals: s
26328
- } = Ue(), c = g.useMemo(
26329
+ } = Ve(), c = g.useMemo(
26329
26330
  () => [
26330
26331
  e.palette.chartMono.chartMono5,
26331
26332
  e.palette.chartMono.chartMono4,
@@ -26515,7 +26516,7 @@ const Gi = g.createContext(null), Yf = ({
26515
26516
  selectedId: a,
26516
26517
  title: r
26517
26518
  }) => {
26518
- const { isDesktop: o, isMobile: s } = De(), { isLoadingCategoryTotals: c } = Ue(), { spending: d } = I();
26519
+ const { isDesktop: o, isMobile: s } = De(), { isLoadingCategoryTotals: c } = Ve(), { spending: d } = I();
26519
26520
  return /* @__PURE__ */ l(
26520
26521
  b,
26521
26522
  {
@@ -26566,7 +26567,7 @@ const Gi = g.createContext(null), Yf = ({
26566
26567
  e.palette.chartMono.chartMono1,
26567
26568
  e.palette.chartMono.chartMono6
26568
26569
  ], H0 = () => {
26569
- const e = vn(), { categories: n, dateRangeCategoryTotals: i, loadDateRangeCategoryTotals: a } = Ue(), { spending: r } = I(), { displayedDateRange: o, selectedAccounts: s, selectedAccountGuids: c } = ce(), { setFilter: d, sortedTransactions: _ } = Se(), [u, h] = g.useState(""), [m, C] = g.useState(0), [f, E] = g.useState(""), [y, T] = g.useState(!1);
26570
+ const e = vn(), { categories: n, dateRangeCategoryTotals: i, loadDateRangeCategoryTotals: a } = Ve(), { spending: r } = I(), { displayedDateRange: o, selectedAccounts: s, selectedAccountGuids: c } = ce(), { setFilter: d, sortedTransactions: _ } = Se(), [u, h] = g.useState(""), [m, C] = g.useState(0), [f, E] = g.useState(""), [y, T] = g.useState(!1);
26570
26571
  g.useEffect(() => {
26571
26572
  a(
26572
26573
  s,
@@ -26740,7 +26741,7 @@ const K0 = (e) => e.reduce((i, a) => {
26740
26741
  return (i || 0) - (a || 0);
26741
26742
  }, j0 = (e) => {
26742
26743
  const n = e.row[e.field];
26743
- return /* @__PURE__ */ t(b, { alignItems: "flex-end", tabIndex: e.tabIndex, children: /* @__PURE__ */ t(Ke, { amount: n, variant: "Small" }) });
26744
+ return /* @__PURE__ */ t(b, { alignItems: "flex-end", tabIndex: e.tabIndex, children: /* @__PURE__ */ t(ze, { amount: n, variant: "Small" }) });
26744
26745
  }, X0 = ({ categoryGuid: e, topLevelCategoryGuid: n }) => {
26745
26746
  const { categories: i } = I(), a = ga[e];
26746
26747
  return /* @__PURE__ */ l(b, { alignItems: "center", direction: "row", justifyContent: "center", children: [
@@ -26876,7 +26877,7 @@ const K0 = (e) => e.reduce((i, a) => {
26876
26877
  }, tb = A(eb), nb = {
26877
26878
  view_transactions: "View Transactions"
26878
26879
  }, ib = ({ onBackClick: e, sx: n }) => {
26879
- const i = at(), { onEvent: a } = z(), { isDesktop: r, isTablet: o, isMobile: s } = De(), { visibleAccounts: c } = Re(), { loadMonthlyCategoryTotals: d, monthlyCategoryTotals: _, getCategoryName: u } = Ue(), { sortedTransactions: h } = Se(), { isCopyLoaded: m, isInitialized: C, selectedAccounts: f, setSelectedAccounts: E } = ce(), { trends: y } = I(), T = i.palette.mode === "dark", [w, N] = g.useState(!1), [x, R] = g.useState(!1), [D, $] = g.useState("Chart"), [O, L] = g.useState(""), [U, H] = g.useState({
26880
+ const i = at(), { onEvent: a } = z(), { isDesktop: r, isTablet: o, isMobile: s } = De(), { visibleAccounts: c } = Re(), { loadMonthlyCategoryTotals: d, monthlyCategoryTotals: _, getCategoryName: u } = Ve(), { sortedTransactions: h } = Se(), { isCopyLoaded: m, isInitialized: C, selectedAccounts: f, setSelectedAccounts: E } = ce(), { trends: y } = I(), T = i.palette.mode === "dark", [w, N] = g.useState(!1), [x, R] = g.useState(!1), [D, $] = g.useState("Chart"), [O, L] = g.useState(""), [U, H] = g.useState({
26880
26881
  start: no(Xe(jt(/* @__PURE__ */ new Date(), 6)), 1),
26881
26882
  end: Xe(/* @__PURE__ */ new Date())
26882
26883
  });
@@ -26928,9 +26929,9 @@ const K0 = (e) => e.reduce((i, a) => {
26928
26929
  L(Te), a(W.TRENDS_CLICK_LEGEND, { category: u(Te) });
26929
26930
  }, he = (Te) => {
26930
26931
  a(W.TRENDS_HOVER_LEGEND, { category: u(Te) });
26931
- }, Ve = (Te) => {
26932
+ }, Ke = (Te) => {
26932
26933
  a(W.TRENDS_HOVER_AREA, { category: Te });
26933
- }, Ye = (Te) => {
26934
+ }, je = (Te) => {
26934
26935
  a(W.TRENDS_HOVER_POINT, { category: Te });
26935
26936
  };
26936
26937
  return !m || !C || !w ? /* @__PURE__ */ t(ue, {}) : /* @__PURE__ */ l(
@@ -27031,9 +27032,9 @@ const K0 = (e) => e.reduce((i, a) => {
27031
27032
  Gu,
27032
27033
  {
27033
27034
  onClickLegend: He,
27034
- onHoverArea: Ve,
27035
+ onHoverArea: Ke,
27035
27036
  onHoverLegend: he,
27036
- onHoverPoint: Ye,
27037
+ onHoverPoint: je,
27037
27038
  stackedDatasets: j.stackedDatasets,
27038
27039
  unstackedDatasets: j.unstackedDatasets
27039
27040
  }
@@ -27064,7 +27065,7 @@ const K0 = (e) => e.reduce((i, a) => {
27064
27065
  }
27065
27066
  );
27066
27067
  }, VE = A(ib), ab = () => {
27067
- const e = at(), { monthlyCategoryTotals: n } = Ue(), { trends: i } = I(), a = sm(n);
27068
+ const e = at(), { monthlyCategoryTotals: n } = Ve(), { trends: i } = I(), a = sm(n);
27068
27069
  return /* @__PURE__ */ t(
27069
27070
  br,
27070
27071
  {
@@ -27080,7 +27081,7 @@ const K0 = (e) => e.reduce((i, a) => {
27080
27081
  }
27081
27082
  );
27082
27083
  }, rb = A(ab), ob = ({ onPrimaryCtaClick: e, sx: n }) => {
27083
- const { loadMonthlyCategoryTotals: i, monthlyTotalsLoaded: a } = Ue(), { isInitialized: r } = ba(), { trends: o } = I(), { isCopyLoaded: s, selectedAccounts: c } = ce();
27084
+ const { loadMonthlyCategoryTotals: i, monthlyTotalsLoaded: a } = Ve(), { isInitialized: r } = ba(), { trends: o } = I(), { isCopyLoaded: s, selectedAccounts: c } = ce();
27084
27085
  return g.useEffect(() => {
27085
27086
  r && i(c).finally();
27086
27087
  }, [r, c]), s ? /* @__PURE__ */ t(
@@ -27148,7 +27149,7 @@ export {
27148
27149
  ht as ConnectionStatusEnums,
27149
27150
  Xi as CurrencyCodes,
27150
27151
  en as CurrencyInput,
27151
- Ke as CurrencyText,
27152
+ ze as CurrencyText,
27152
27153
  te as DATE_FORMATS_INTL,
27153
27154
  ks as DEFAULT_DONUT_SIZE,
27154
27155
  Gs as DEFAULT_STROKE_WIDTH,
@@ -27218,7 +27219,7 @@ export {
27218
27219
  i1 as NotificationList,
27219
27220
  Mc as NotificationSettings,
27220
27221
  qp as NotificationStore,
27221
- je as NotificationType,
27222
+ Ue as NotificationType,
27222
27223
  Ln as ORDINAL_DATE_FORMAT,
27223
27224
  Z2 as ORDINAL_MONTH_DAY_YEAR_FORMAT,
27224
27225
  pr as PAYMENT_ACCOUNT_TYPES,
@@ -27312,7 +27313,7 @@ export {
27312
27313
  Ca as useAppConfig,
27313
27314
  lt as useBudgetsStore,
27314
27315
  Er as useCashflowStore,
27315
- Ue as useCategoryStore,
27316
+ Ve as useCategoryStore,
27316
27317
  pn as useCategoryUiStore,
27317
27318
  iu as useCombineEvents,
27318
27319
  au as useCombinePageviews,