@mx-cartographer/experiences 8.1.0 → 8.1.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.
Files changed (91) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/dist/{Account-DuOz1a27.mjs → Account-BIKn4XEZ.mjs} +1 -1
  3. package/dist/{Account-BiB1F8lL.mjs → Account-CMjOp7S2.mjs} +2 -2
  4. package/dist/{AccountDetailsHeader-IPRH6Wja.mjs → AccountDetailsHeader-D_a0XUkL.mjs} +6 -6
  5. package/dist/{AccountFields-BbPSfzru.mjs → AccountFields-nrrEXd46.mjs} +30 -29
  6. package/dist/{AccountListItem-qpACFl6i.mjs → AccountListItem-D80egD01.mjs} +5 -5
  7. package/dist/{AccountStore-BeEiLNhW.mjs → AccountStore-B3S_p5Qa.mjs} +3 -3
  8. package/dist/{Accounts-o7ohkngR.mjs → Accounts-DX3xJE97.mjs} +1 -1
  9. package/dist/{Analytics-CjZ0emfs.mjs → Analytics-CxK7O19c.mjs} +2 -2
  10. package/dist/{BudgetUtil-CLh4xtj4.mjs → BudgetUtil-DalEN9--.mjs} +47 -47
  11. package/dist/{CashflowStore-CeAzChyD.mjs → CashflowStore-BEi92kJg.mjs} +10 -10
  12. package/dist/{Category-CevNQ03n.mjs → Category-Ccoew_sA.mjs} +2 -2
  13. package/dist/{CategorySelectorDrawer-BG04ByUx.mjs → CategorySelectorDrawer-DjeHNx71.mjs} +7 -7
  14. package/dist/{CategoryStore-Bp1kO9Z-.mjs → CategoryStore-CA4NTaKH.mjs} +2 -2
  15. package/dist/{CategoryUtil-DKRCegQv.mjs → CategoryUtil-BJOHgYKS.mjs} +3 -3
  16. package/dist/{Connect-eYIWqCEr.mjs → Connect-BRLh-69J.mjs} +1 -1
  17. package/dist/{ConnectDrawer-C0wjwcJt.mjs → ConnectDrawer-5BpU4IQU.mjs} +3 -3
  18. package/dist/{ConnectionsDrawer-IA7vnv1J.mjs → ConnectionsDrawer-DxpSlJN7.mjs} +3 -3
  19. package/dist/{CurrencyInput-BkNVHxSV.mjs → CurrencyInput-CSJ3zMgE.mjs} +18 -18
  20. package/dist/DateUtil-D0TO0DaZ.mjs +58 -0
  21. package/dist/{DebtsStore-BZqNLaqd.mjs → DebtsStore-BJlC2-yO.mjs} +1 -1
  22. package/dist/{Dialog-Ck34yr-d.mjs → Dialog-iLlBR8TG.mjs} +6 -6
  23. package/dist/{Donut-CpxJlVvJ.mjs → Donut-D7ekbgf5.mjs} +12 -12
  24. package/dist/{Drawer-Bbe4AMB1.mjs → Drawer-XPaLYjiO.mjs} +11 -11
  25. package/dist/{EmbeddedCard-j7IGx3s1.mjs → EmbeddedCard-BCcn_fK2.mjs} +193 -193
  26. package/dist/{ExportCsvAction-7sjz7AXQ.mjs → ExportCsvAction-BPjdEUXx.mjs} +5 -5
  27. package/dist/{FinstrongStore-DgyDJTEP.mjs → FinstrongStore-DYawCv1d.mjs} +54 -54
  28. package/dist/{GlobalAccountFilter-CmnaZDS6.mjs → GlobalAccountFilter-CZbiDwBH.mjs} +1 -1
  29. package/dist/{GoalStore-DcaT4fM6.mjs → GoalStore-DmqM1ZfW.mjs} +1 -1
  30. package/dist/{Help-B8mD4aLJ.mjs → Help-CgpJK03Q.mjs} +6 -6
  31. package/dist/{Help-cTsMzSQh.mjs → Help-DuhUdMTZ.mjs} +95 -98
  32. package/dist/{IconBacking-B9oC6uL2.mjs → IconBacking-DgT8DCeh.mjs} +11 -11
  33. package/dist/{LineChart-DkD_s9NN.mjs → LineChart-jJVBE8V8.mjs} +1 -1
  34. package/dist/{ListItemAction-4KB7P75M.mjs → ListItemAction-Buv7tPLp.mjs} +4 -4
  35. package/dist/{Loader-D3rjKx72.mjs → Loader-CxeBwuPG.mjs} +5 -5
  36. package/dist/{ManageIncome-DwSE_a8L.mjs → ManageIncome-CrHDAku7.mjs} +8 -8
  37. package/dist/MicroWidgetContainer-CEcwdfti.mjs +45 -0
  38. package/dist/MiniWidgetContainer-CmTGSUL5.mjs +66 -0
  39. package/dist/{NetWorthStore-Ba3q3VcH.mjs → NetWorthStore-BY-B_hxy.mjs} +4 -4
  40. package/dist/{NotificationSettings-DB-eNgSv.mjs → NotificationSettings-DOgnTxzv.mjs} +9 -9
  41. package/dist/{OriginalBalanceAction-AB1TGb5P.mjs → OriginalBalanceAction-C8VJZUat.mjs} +9 -9
  42. package/dist/{RecurringSettings-CZKeZC4m.mjs → RecurringSettings-CIpZL4CX.mjs} +2 -2
  43. package/dist/{RecurringTransactions-kzlU8OFY.mjs → RecurringTransactions-DCt94TN4.mjs} +47 -47
  44. package/dist/{RecurringTransactionsStore-D62Dt2BF.mjs → RecurringTransactionsStore-CFJYC7lI.mjs} +1 -1
  45. package/dist/{ResponsiveButton-DZFp78fJ.mjs → ResponsiveButton-BNsV08Ud.mjs} +12 -12
  46. package/dist/{SettingsStore-Dsz1mvd3.mjs → SettingsStore-BcbuKfFO.mjs} +1 -1
  47. package/dist/{SingleSegmentDonut-BgbLgwHi.mjs → SingleSegmentDonut-PsRQPkmV.mjs} +5 -5
  48. package/dist/{SpendingData-CoZOmlZD.mjs → SpendingData-Dj85XEUp.mjs} +3 -3
  49. package/dist/{SpendingLegend-DljKEG69.mjs → SpendingLegend-DIWHSsKw.mjs} +5 -5
  50. package/dist/{StatusBar-BK_uYHAB.mjs → StatusBar-CPfSXe80.mjs} +6 -6
  51. package/dist/{TabContentContainer-j01JYR_7.mjs → TabContentContainer-CnMXkVqr.mjs} +8 -8
  52. package/dist/{TransactionDetails-CN-yZkin.mjs → TransactionDetails-Db8dwHoM.mjs} +21 -21
  53. package/dist/{TransactionStore-6ovFO8P1.mjs → TransactionStore-BUsP-unK.mjs} +40 -57
  54. package/dist/{TrendsStore-DZa6cyQC.mjs → TrendsStore-bYjIGqyR.mjs} +1 -1
  55. package/dist/{ViewMoreMicroCard-BsEitNRJ.mjs → ViewMoreMicroCard-C7dC9lDT.mjs} +93 -94
  56. package/dist/WidgetContainer-CCR7I0gu.mjs +470 -0
  57. package/dist/accounts/index.es.js +29 -29
  58. package/dist/analytics/index.es.js +10 -10
  59. package/dist/budgets/index.es.js +19 -19
  60. package/dist/cashflow/index.es.js +110 -110
  61. package/dist/categories/index.es.js +2 -2
  62. package/dist/common/hooks/useWidgetHeaderStyles.d.ts +1 -0
  63. package/dist/common/index.es.js +250 -250
  64. package/dist/core/index.es.js +64 -64
  65. package/dist/dashboard/index.es.js +22 -22
  66. package/dist/debts/index.es.js +22 -22
  67. package/dist/{exportTransactionsToCSV-Dnd5lVq7.mjs → exportTransactionsToCSV-B2Lp7AMl.mjs} +7 -7
  68. package/dist/finstrong/index.es.js +22 -22
  69. package/dist/goals/index.es.js +17 -17
  70. package/dist/help/index.es.js +5 -5
  71. package/dist/{hooks-BxkfR-Ff.mjs → hooks-HwStH7q_.mjs} +9 -9
  72. package/dist/insights/index.es.js +328 -328
  73. package/dist/investments/index.es.js +10 -10
  74. package/dist/merchants/index.es.js +9 -9
  75. package/dist/microinsights/index.es.js +1 -1
  76. package/dist/networth/index.es.js +25 -25
  77. package/dist/notifications/index.es.js +5 -5
  78. package/dist/recurringtransactions/index.es.js +23 -23
  79. package/dist/settings/index.es.js +96 -96
  80. package/dist/spending/index.es.js +65 -65
  81. package/dist/transactions/index.es.js +74 -74
  82. package/dist/trends/index.es.js +55 -55
  83. package/dist/{useAccountDisplayName-DKwT1mWv.mjs → useAccountDisplayName-SrQA7K_6.mjs} +1 -1
  84. package/dist/{useInsightsEnabled-DL_oNyI0.mjs → useInsightsEnabled-DzvRm5Bo.mjs} +1 -1
  85. package/dist/{useScreenSize-CUcpY7aJ.mjs → useScreenSize-CeFhWTt_.mjs} +1 -1
  86. package/dist/{useWidgetLoadTimer-DgN1bTyu.mjs → useWidgetLoadTimer-wkBTL5xx.mjs} +1 -1
  87. package/package.json +20 -20
  88. package/dist/DateUtil-C57sqxn4.mjs +0 -54
  89. package/dist/MicroWidgetContainer-B_EnfvCq.mjs +0 -45
  90. package/dist/MiniWidgetContainer-Bhkv-hpz.mjs +0 -66
  91. package/dist/WidgetContainer-Bc75FqK7.mjs +0 -468
@@ -1,9 +1,9 @@
1
- import { jsx as a } from "react/jsx-runtime";
1
+ import { jsx as c } from "react/jsx-runtime";
2
2
  import i from "@mui/material/Box";
3
3
  import p from "@mui/material/Stack";
4
- const s = ({ data: c, height: r = 8 }) => {
4
+ const s = ({ data: a, height: r = 8 }) => {
5
5
  const o = `${r / 4}px`;
6
- return /* @__PURE__ */ a(
6
+ return /* @__PURE__ */ c(
7
7
  p,
8
8
  {
9
9
  bgcolor: "divider",
@@ -12,7 +12,7 @@ const s = ({ data: c, height: r = 8 }) => {
12
12
  gap: 2,
13
13
  height: r,
14
14
  width: "100%",
15
- children: c.map((t, d) => /* @__PURE__ */ a(
15
+ children: a.map((t, d) => /* @__PURE__ */ c(
16
16
  i,
17
17
  {
18
18
  bgcolor: t.color,
@@ -24,7 +24,7 @@ const s = ({ data: c, height: r = 8 }) => {
24
24
  ))
25
25
  }
26
26
  );
27
- }, l = s;
27
+ };
28
28
  export {
29
- l as S
29
+ s as S
30
30
  };
@@ -1,21 +1,21 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
- const b = ({
2
+ const n = ({
3
3
  children: o,
4
4
  index: t,
5
5
  name: a,
6
- value: n,
7
- ...r
6
+ value: r,
7
+ ...b
8
8
  }) => /* @__PURE__ */ e(
9
9
  "div",
10
10
  {
11
11
  "aria-labelledby": `${a}-tab-${t}`,
12
- hidden: n !== t,
12
+ hidden: r !== t,
13
13
  id: `${a}-tabpanel-${t}`,
14
14
  role: "tabpanel",
15
- ...r,
16
- children: n === t && o
15
+ ...b,
16
+ children: r === t && o
17
17
  }
18
- ), i = b;
18
+ );
19
19
  export {
20
- i as T
20
+ n as T
21
21
  };
@@ -12,14 +12,14 @@ import { endOfMonth as Pe } from "date-fns/endOfMonth";
12
12
  import { getUnixTime as Ae } from "date-fns/getUnixTime";
13
13
  import { isBefore as ze } from "date-fns/isBefore";
14
14
  import { startOfMonth as Ne } from "date-fns/startOfMonth";
15
- import { l as Ve, C as We, c as Ye, d as je, i as qe } from "./BudgetUtil-CLh4xtj4.mjs";
15
+ import { l as Ve, d as We, C as Ye, c as je, i as qe } from "./BudgetUtil-DalEN9--.mjs";
16
16
  import ue from "@mui/material/Button";
17
17
  import Qe from "@mui/material/FormGroup";
18
18
  import de from "@mui/material/IconButton";
19
19
  import Ge from "@mui/material/TextField";
20
20
  import { u as fe } from "./useAriaLive-MkYebyUR.mjs";
21
- import { O as C } from "./exportTransactionsToCSV-Dnd5lVq7.mjs";
22
- import { u as v, h as M, m as Xe, d as Ze, l as Oe, g as k, b as Je, o as et } from "./hooks-BxkfR-Ff.mjs";
21
+ import { O as C } from "./exportTransactionsToCSV-B2Lp7AMl.mjs";
22
+ import { u as v, h as M, m as Xe, d as Ze, l as Oe, g as k, b as Je, o as et } from "./hooks-HwStH7q_.mjs";
23
23
  import { A as j } from "./Analytics-0Xm_BjHU.mjs";
24
24
  import tt from "@mui/material/ToggleButton";
25
25
  import { ChevronRight as Be, Icon as R, Delete as be, Cancel as Ce, Search as at, Edit as rt, Flag as nt } from "@mxenabled/mx-icons";
@@ -30,22 +30,22 @@ import Q from "@mui/material/ListItemAvatar";
30
30
  import z from "@mui/material/ListItemText";
31
31
  import { f as Le, D as we } from "./DateFormats-CaOj_4eI.mjs";
32
32
  import { BarChart as ot } from "@mui/x-charts";
33
- import { b as it, T as st, u as oe, c as lt, d as ct, E as dt, C as ut } from "./EmbeddedCard-j7IGx3s1.mjs";
33
+ import { b as it, T as st, u as oe, c as lt, d as ct, E as dt, C as ut } from "./EmbeddedCard-BCcn_fK2.mjs";
34
+ import { L as mt } from "./Loader-CxeBwuPG.mjs";
35
+ import { f as W } from "./NumberFormatting-CyrvFgfd.mjs";
36
+ import { b as D } from "./Localization-CkQ49EKr.mjs";
34
37
  import X from "@mui/material/ListItemButton";
35
38
  import Z from "@mui/material/ListItemIcon";
36
- import { a as $e } from "./CategorySelectorDrawer-BG04ByUx.mjs";
37
- import { D as ne } from "./Dialog-Ck34yr-d.mjs";
38
- import { b as D } from "./Localization-CkQ49EKr.mjs";
39
- import { D as me } from "./Drawer-Bbe4AMB1.mjs";
40
- import { f as W } from "./NumberFormatting-CyrvFgfd.mjs";
41
- import mt from "@mui/material/styles/useTheme";
39
+ import { b as $e } from "./CategorySelectorDrawer-DjeHNx71.mjs";
40
+ import { D as ne } from "./Dialog-iLlBR8TG.mjs";
41
+ import { D as me } from "./Drawer-XPaLYjiO.mjs";
42
+ import _t from "@mui/material/styles/useTheme";
42
43
  import Re from "@mui/material/InputAdornment";
43
- import _t from "@mui/material/Checkbox";
44
- import { i as pt } from "./DateUtil-C57sqxn4.mjs";
44
+ import pt from "@mui/material/Checkbox";
45
+ import { j as gt } from "./DateUtil-D0TO0DaZ.mjs";
45
46
  import xe from "@mui/material/Grid";
46
- import { C as gt } from "./CurrencyInput-BkNVHxSV.mjs";
47
- import ht from "@mui/material/Switch";
48
- import { L as yt } from "./Loader-D3rjKx72.mjs";
47
+ import { C as ht } from "./CurrencyInput-CSJ3zMgE.mjs";
48
+ import yt from "@mui/material/Switch";
49
49
  var ce = /* @__PURE__ */ ((t) => (t[t.Category = 0] = "Category", t[t.Date = 1] = "Date", t[t.Memo = 2] = "Memo", t[t.Tags = 3] = "Tags", t))(ce || {}), se = /* @__PURE__ */ ((t) => (t[t.MerchantBudget = 0] = "MerchantBudget", t[t.SplitTransaction = 1] = "SplitTransaction", t[t.HideTransaction = 2] = "HideTransaction", t[t.MerchantLogo = 3] = "MerchantLogo", t))(se || {});
50
50
  const Tt = [
51
51
  0,
@@ -91,7 +91,7 @@ const Tt = [
91
91
  px: 24
92
92
  },
93
93
  children: [
94
- /* @__PURE__ */ e(ae, { bold: !0, variant: "subtitle1", children: pt(t) }),
94
+ /* @__PURE__ */ e(ae, { bold: !0, variant: "subtitle1", children: gt(t) }),
95
95
  r && /* @__PURE__ */ e(ue, { endIcon: /* @__PURE__ */ e(Be, {}), onClick: r, sx: { height: 28 }, children: /* @__PURE__ */ e(x, { bold: !0, variant: "body2", children: c.spending_history }) })
96
96
  ]
97
97
  }
@@ -601,7 +601,7 @@ const xt = O(({ transaction: t }) => {
601
601
  }
602
602
  ),
603
603
  /* @__PURE__ */ e(Z, { "aria-hidden": "true", children: /* @__PURE__ */ e(
604
- ht,
604
+ yt,
605
605
  {
606
606
  checked: i,
607
607
  inputProps: { tabIndex: -1 },
@@ -751,7 +751,7 @@ const xt = O(({ transaction: t }) => {
751
751
  /* @__PURE__ */ e(xe, { item: !0, xs: 5, children: p ? /* @__PURE__ */ e("div", { className: "mx-txn-split-manager-row-top-container", children: /* @__PURE__ */ e(x, { children: W(o.amount, "0,0.00") }) }) : /* @__PURE__ */ u(E, { alignItems: "start", children: [
752
752
  /* @__PURE__ */ u(E, { alignItems: "start", direction: "row", gap: 8, children: [
753
753
  /* @__PURE__ */ e(
754
- gt,
754
+ ht,
755
755
  {
756
756
  amount: m,
757
757
  ariaLabel: l.split_transaction_edit_split_amount,
@@ -987,7 +987,7 @@ const xt = O(({ transaction: t }) => {
987
987
  )
988
988
  ] }) });
989
989
  }, $t = O(Bt), Kt = () => {
990
- const t = mt(), { onEvent: r } = k(), { addTag: s } = M(), { transactions: a } = v(), [o, n] = d.useState(!1), [l, m] = d.useState(""), [c, i] = d.useState(""), _ = d.useRef(null);
990
+ const t = _t(), { onEvent: r } = k(), { addTag: s } = M(), { transactions: a } = v(), [o, n] = d.useState(!1), [l, m] = d.useState(""), [c, i] = d.useState(""), _ = d.useRef(null);
991
991
  d.useEffect(() => {
992
992
  o && _?.current?.focus();
993
993
  }, [o]);
@@ -1122,7 +1122,7 @@ const xt = O(({ transaction: t }) => {
1122
1122
  role: "checkbox",
1123
1123
  children: [
1124
1124
  /* @__PURE__ */ e(Z, { sx: { ml: 0 }, children: /* @__PURE__ */ e(
1125
- _t,
1125
+ pt,
1126
1126
  {
1127
1127
  "aria-hidden": !0,
1128
1128
  checked: r.includes(s.guid),
@@ -1549,7 +1549,7 @@ const xt = O(({ transaction: t }) => {
1549
1549
  return y.filter((V) => V.date >= Ae(B) && V.date <= Ae(F) && V.guid === g);
1550
1550
  }, [K, S, y, w]);
1551
1551
  if (!n)
1552
- return /* @__PURE__ */ e(yt, {});
1552
+ return /* @__PURE__ */ e(mt, {});
1553
1553
  const re = qe(l, "MX_TXN_DETAILS_VIEW_ONLY"), N = J.palette.mode === "dark" ? "grey.800" : "grey.100";
1554
1554
  return /* @__PURE__ */ u(Y, { className: "mx-txn-transaction-details", width: "100%", children: [
1555
1555
  a && /* @__PURE__ */ u(E, { children: [
@@ -1,28 +1,28 @@
1
1
  import { jsx as I } from "react/jsx-runtime";
2
- import M from "@mui/material/Box";
3
- import H from "@mui/material/FormControlLabel";
4
- import P from "@mui/material/Radio";
2
+ import x from "@mui/material/Box";
3
+ import P from "@mui/material/FormControlLabel";
4
+ import H from "@mui/material/Radio";
5
5
  import B from "@mui/material/styles/useTheme";
6
- import U from "@mui/material/Tooltip";
6
+ import K from "@mui/material/Tooltip";
7
7
  import { makeAutoObservable as f } from "mobx";
8
8
  import { endOfToday as h } from "date-fns/endOfToday";
9
- import { formatISO as K } from "date-fns/formatISO";
9
+ import { formatISO as U } from "date-fns/formatISO";
10
10
  import { getUnixTime as E } from "date-fns/getUnixTime";
11
11
  import { isBefore as V } from "date-fns/isBefore";
12
- import { startOfMonth as u } from "date-fns/startOfMonth";
12
+ import { startOfMonth as L } from "date-fns/startOfMonth";
13
13
  import { startOfToday as m } from "date-fns/startOfToday";
14
14
  import { subDays as v } from "date-fns/subDays";
15
15
  import { B as D } from "./BeatApi-C6pBa0Rb.mjs";
16
- import { O as n, f as Y } from "./exportTransactionsToCSV-Dnd5lVq7.mjs";
16
+ import { O as n, f as Y } from "./exportTransactionsToCSV-B2Lp7AMl.mjs";
17
17
  import { T as R } from "./TransactionApi-CLG2eSNe.mjs";
18
- import { b as F } from "./Category-CevNQ03n.mjs";
19
18
  import { a as y, T as b } from "./Transaction-Cn5_iFm0.mjs";
19
+ import { b as F } from "./Category-Ccoew_sA.mjs";
20
20
  import { format as W } from "date-fns/format";
21
21
  import { fromUnixTime as $ } from "date-fns/fromUnixTime";
22
22
  import { f as C, D as O, O as k } from "./DateFormats-CaOj_4eI.mjs";
23
23
  import { f as z } from "./NumberFormatting-CyrvFgfd.mjs";
24
24
  import { endOfMonth as X } from "date-fns/endOfMonth";
25
- const j = ({
25
+ const ft = ({
26
26
  checked: l = !1,
27
27
  label: t,
28
28
  sx: a = {},
@@ -31,7 +31,7 @@ const j = ({
31
31
  }) => {
32
32
  const d = B(), e = d.palette.mode === "light" ? d.palette.grey[400] : d.palette.grey[700], c = l ? d.palette.action.active : e;
33
33
  return /* @__PURE__ */ I(
34
- M,
34
+ x,
35
35
  {
36
36
  bgcolor: "background.paper",
37
37
  border: `${l ? 3 : 1}px solid`,
@@ -42,11 +42,11 @@ const j = ({
42
42
  pr: 8,
43
43
  py: 4,
44
44
  sx: { "&:hover": { borderColor: d.palette.action.active }, ...a },
45
- children: /* @__PURE__ */ I(U, { title: s, children: /* @__PURE__ */ I(
46
- H,
45
+ children: /* @__PURE__ */ I(K, { title: s, children: /* @__PURE__ */ I(
46
+ P,
47
47
  {
48
48
  control: /* @__PURE__ */ I(
49
- P,
49
+ H,
50
50
  {
51
51
  disableRipple: !0,
52
52
  sx: { "&.Mui-checked": { color: d.palette.action.active } }
@@ -60,31 +60,19 @@ const j = ({
60
60
  ) })
61
61
  }
62
62
  );
63
- }, mt = j, G = {
63
+ }, G = {
64
64
  ASC: "ASC",
65
- DESC: "DESC",
66
- DIRECTION: {
67
- ASC: "ascending",
68
- DESC: "descending"
69
- },
70
- ALIGN: {
71
- center: "center",
72
- left: "flex-start",
73
- right: "flex-end"
74
- }
65
+ DESC: "DESC"
75
66
  }, o = {
76
67
  ADD: "Add",
77
68
  ADD_CATEGORY: "Add Category",
78
69
  CHANGE_CATEGORY: "Change Category",
79
- CHANGE_DATE: "Change Date",
80
70
  CLOSE: "Close",
81
71
  DELETE: "Delete",
82
72
  EDIT: "Edit",
83
- HIDE: "Hide",
84
73
  SAVE: "Save",
85
74
  SPLIT: "Split",
86
75
  SELECT: "Select",
87
- UNHIDE: "Unhide",
88
76
  UNSPLIT: "Unsplit"
89
77
  }, T = {
90
78
  TRANSACTION_DETAILS: "Transaction Details",
@@ -107,7 +95,6 @@ const j = ({
107
95
  TAG_DELETE: "Delete Tag",
108
96
  TAG_EDIT: "Edit Tag",
109
97
  TRANSACTION: "Transaction",
110
- TRANSACTIONS_LIST: "Transactions List",
111
98
  UNHIDE_TRANSACTION: "Unhide Transaction"
112
99
  }, p = {
113
100
  // splits
@@ -323,14 +310,10 @@ const j = ({
323
310
  category: T.TRANSACTIONS_WIDGET,
324
311
  label: r.DELETE_TRANSACTION
325
312
  }
326
- }, Z = async (l, t) => !t || !p[l] ? null : t.sendAnalyticEvent(p[l]), L = {
327
- FLAG: "flag",
313
+ }, j = async (l, t) => !t || !p[l] ? null : t.sendAnalyticEvent(p[l]), u = {
328
314
  DATE: "date",
329
- PAYEE: "payee",
330
- CATEGORY: "category",
331
- ACCOUNT: "account",
332
315
  AMOUNT: "amount"
333
- }, q = (l, t, a, s = []) => {
316
+ }, Z = (l, t, a, s = []) => {
334
317
  const A = t.reduce((c, i) => ({ ...c, [i.guid]: i }), {}), d = a.reduce((c, i) => ({ ...c, [i.guid]: i }), {}), e = s.reduce((c, i) => {
335
318
  const { transaction_guid: S, tag_guid: N } = i;
336
319
  if (!c[S])
@@ -359,38 +342,38 @@ const j = ({
359
342
  tags: N
360
343
  };
361
344
  });
362
- }, J = "uncategorized", Q = (l, t, a, s, A, d) => {
363
- const e = tt(l, A, d), c = at(e, a, s);
345
+ }, q = "uncategorized", J = (l, t, a, s, A, d) => {
346
+ const e = Q(l, A, d), c = tt(e, a, s);
364
347
  return t.forEach((i) => {
365
348
  const S = c.findIndex((g) => g.guid === i), N = d.filter((g) => g.parent_guid === i);
366
349
  c.splice(S + 1, 0, ...N);
367
350
  }), c;
368
- }, tt = (l, t, a) => {
351
+ }, Q = (l, t, a) => {
369
352
  const {
370
353
  accounts: s = [],
371
- dateRange: A = { start: u(m()), end: h() },
354
+ dateRange: A = { start: L(m()), end: h() },
372
355
  custom: d = () => !0,
373
356
  searchTerm: e = "",
374
357
  showSplits: c = !1
375
358
  } = l;
376
359
  return a.filter((i) => c ? !i.has_been_split : !i.parent_guid).filter((i) => !!s.find((S) => S === i.account_guid)).filter((i) => i.date >= E(A.start) && i.date <= E(A.end)).filter(d).filter((i) => {
377
- if (e === J && i.has_been_split)
360
+ if (e === q && i.has_been_split)
378
361
  return !1;
379
362
  if (/^spl/i.test(e) && (i.has_been_split || i.parent_guid))
380
363
  return !0;
381
364
  const N = i.tags.some(
382
- (w) => _(e, t.find((x) => x.guid === w)?.name)
365
+ (w) => _(e, t.find((M) => M.guid === w)?.name)
383
366
  ), g = $(i.date);
384
367
  return _(e, i.payee) || _(e, i.feed_description) || _(e, i.category) || _(e, C(g, O.MONTH)) || _(e, C(g, O.DAY)) || _(e, C(g, O.FULL_MONTH_DAY)) || _(e, C(g, O.MONTH_DAY_YEAR)) || _(e, W(g, k)) || _(e, i.account) || _(e, z(i.amount, "0,0.00")) || _(e, i.memo) || N;
385
368
  });
386
- }, at = (l, t, a) => [...l].sort((s, A) => {
369
+ }, tt = (l, t, a) => [...l].sort((s, A) => {
387
370
  const d = t, e = (s[d] || "") > (A[d] || "");
388
371
  let c = e ? -1 : 1, i = e ? 1 : -1;
389
- return (t === L.DATE || t === L.AMOUNT) && (c = e ? 1 : -1, i = e ? -1 : 1), a === G.ASC ? c : i;
372
+ return (t === u.DATE || t === u.AMOUNT) && (c = e ? 1 : -1, i = e ? -1 : 1), a === G.ASC ? c : i;
390
373
  }), _ = (l, t) => {
391
374
  const a = l.toLowerCase().split(" "), s = t?.toString().toLowerCase() ?? "";
392
375
  return a.every((A) => s.indexOf(A) > -1);
393
- }, et = {
376
+ }, at = {
394
377
  account_guid: "",
395
378
  amount: 0,
396
379
  currency_code: "",
@@ -419,8 +402,8 @@ const j = ({
419
402
  memo: void 0,
420
403
  tags: []
421
404
  };
422
- class st {
423
- beginDate = u(/* @__PURE__ */ new Date());
405
+ class et {
406
+ beginDate = L(/* @__PURE__ */ new Date());
424
407
  endDate = X(/* @__PURE__ */ new Date());
425
408
  expandedSplits = [];
426
409
  height = 550;
@@ -428,7 +411,7 @@ class st {
428
411
  shouldDisableDrawerScroll = !1;
429
412
  searchValue = "";
430
413
  selectedAccountGuids = [];
431
- manualTransaction = et;
414
+ manualTransaction = at;
432
415
  isAmountValid = !1;
433
416
  showInsights = !1;
434
417
  constructor() {
@@ -458,7 +441,7 @@ class st {
458
441
  this.manualTransaction = t;
459
442
  };
460
443
  }
461
- class yt {
444
+ class mt {
462
445
  globalStore;
463
446
  uiStore;
464
447
  api = new R("/", "");
@@ -481,11 +464,11 @@ class yt {
481
464
  cachedStartDate = v(m(), 90);
482
465
  filter = {};
483
466
  isLoading = !0;
484
- sortColumn = L.DATE;
467
+ sortColumn = u.DATE;
485
468
  sortDirection = G.DESC;
486
- onAnalyticEvent = Z;
469
+ onAnalyticEvent = j;
487
470
  constructor(t) {
488
- this.globalStore = t, this.uiStore = new st(), this.api = new R(
471
+ this.globalStore = t, this.uiStore = new et(), this.api = new R(
489
472
  t.endpoint,
490
473
  t.sessionToken,
491
474
  t.onError
@@ -493,7 +476,7 @@ class yt {
493
476
  }
494
477
  loadTransactionData = async () => {
495
478
  this.globalStore.accountStore.isAccountDataLoaded || await this.globalStore.accountStore.loadAccountData(), this.globalStore.categoryStore.categoriesLoaded || await this.globalStore.categoryStore.loadCategories(), await Promise.all([
496
- this.loadAssociatedBeats(u(/* @__PURE__ */ new Date())),
479
+ this.loadAssociatedBeats(L(/* @__PURE__ */ new Date())),
497
480
  this.loadTags(),
498
481
  this.loadTaggings(),
499
482
  this.loadTransactionRules(),
@@ -505,7 +488,7 @@ class yt {
505
488
  return this.associatedBeatsLoaded && this.tagsLoaded && this.taggingsLoaded && this.transactionRulesLoaded && this.transactionsLoaded;
506
489
  }
507
490
  get detailedTransactions() {
508
- return this.isTransactionDataLoaded ? q(
491
+ return this.isTransactionDataLoaded ? Z(
509
492
  this.transactions,
510
493
  this.globalStore.accountStore.visibleAccounts,
511
494
  this.globalStore.categoryStore.categories,
@@ -513,7 +496,7 @@ class yt {
513
496
  ) : [];
514
497
  }
515
498
  get sortedTransactions() {
516
- return Q(
499
+ return J(
517
500
  this.filter,
518
501
  this.uiStore.expandedSplits,
519
502
  this.sortColumn,
@@ -574,7 +557,7 @@ class yt {
574
557
  loadAssociatedBeats = async (t) => {
575
558
  if (this.associatedBeatsLoading) return;
576
559
  this.associatedBeatsLoading = !0;
577
- const a = t ? K(t, { representation: "date" }) : void 0;
560
+ const a = t ? U(t, { representation: "date" }) : void 0;
578
561
  try {
579
562
  const s = await this.beatApi.getBeatsWithAssociatedTransaction(a);
580
563
  this.setAssociatedBeats(s);
@@ -717,7 +700,7 @@ class yt {
717
700
  };
718
701
  }
719
702
  export {
720
- et as D,
721
- mt as S,
722
- yt as T
703
+ at as D,
704
+ ft as S,
705
+ mt as T
723
706
  };
@@ -11,7 +11,7 @@ import { addSeconds as N } from "date-fns/addSeconds";
11
11
  import { differenceInCalendarMonths as v } from "date-fns/differenceInCalendarMonths";
12
12
  import { endOfMonth as D } from "date-fns/endOfMonth";
13
13
  import { subMonths as w } from "date-fns/subMonths";
14
- import { b as I, C as _, c as O } from "./Category-CevNQ03n.mjs";
14
+ import { b as I, a as _, c as O } from "./Category-Ccoew_sA.mjs";
15
15
  import { f as C, D as L } from "./DateFormats-CaOj_4eI.mjs";
16
16
  const rt = ({
17
17
  onClick: e,