@mx-cartographer/experiences 7.2.22-alpha.sms1 → 7.2.22

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.
@@ -36,13 +36,11 @@ interface LoadDataProps {
36
36
  transactions?: Transaction[];
37
37
  userFeatures?: UserFeature[];
38
38
  }
39
- type OnStoreUpdate = (update: any) => void;
40
39
  export declare class GlobalStore {
41
40
  appConfig: AppConfig;
42
41
  endpoint: string;
43
42
  sessionToken: string;
44
43
  onError?: GlobalErrorHandler;
45
- onStoreUpdate?: OnStoreUpdate;
46
44
  accountStore: AccountStore;
47
45
  appDataStore: AppDataStore;
48
46
  analyticsStore: AnalyticsStore;
@@ -66,9 +64,8 @@ export declare class GlobalStore {
66
64
  trendsStore: TrendsStore;
67
65
  userStore: UserStore;
68
66
  globalUiStore: GlobalUiStore;
69
- constructor(appConfig?: AppConfig, endpoint?: string, onError?: GlobalErrorHandler, onStoreUpdate?: OnStoreUpdate);
67
+ constructor(appConfig?: AppConfig, endpoint?: string, onError?: GlobalErrorHandler);
70
68
  get isInitialized(): boolean;
71
- emitUpdate: (change: any) => void;
72
69
  loadData: ({ accounts, appData, associatedBeats, categories, institutions, transactionRules, transactions, userFeatures, }?: LoadDataProps) => Promise<void>;
73
70
  }
74
71
  export {};
@@ -30,7 +30,7 @@ import Ve from "@mui/material/AccordionSummary";
30
30
  import Ye from "@mui/material/CardHeader";
31
31
  import { u as qe } from "../useDimensions-27p2evRx.mjs";
32
32
  import { C as Je } from "../ConnectionsDrawer-BDvVuJQf.mjs";
33
- import { R as Qe } from "../RecurringSettings-CHb3oLBa.mjs";
33
+ import { R as Qe } from "../RecurringSettings-CaQJvUPQ.mjs";
34
34
  import Ze from "@mui/material/TextField";
35
35
  import { u as Se } from "../useScreenSize-B6JyS_Lj.mjs";
36
36
  import { a as et } from "../Dialog-CWW597AF.mjs";
@@ -39,7 +39,7 @@ import ot from "@mui/material/Collapse";
39
39
  import at from "@mui/material/ListItemIcon";
40
40
  import rt from "@mui/material/Checkbox";
41
41
  import { u as it, A as st } from "../AccountDetailsHeader-vPzGb1RZ.mjs";
42
- import { A as lt } from "../AccountDetailsContent-DCaVZwAx.mjs";
42
+ import { A as lt } from "../AccountDetailsContent-DIGzsjAD.mjs";
43
43
  import { u as ct } from "../useAccountDisplayName-jS05A6-6.mjs";
44
44
  import Ke from "@mui/material/TextField";
45
45
  import { M as dt, I as mt, O as ut } from "../OriginalBalanceAction-CWuVvRq9.mjs";
@@ -8,8 +8,8 @@ import { startOfToday as ue } from "date-fns/startOfToday";
8
8
  import { subDays as me } from "date-fns/subDays";
9
9
  import ae from "@mui/material/Skeleton";
10
10
  import c from "@mui/material/Stack";
11
- import { R as Ee } from "../RecurringSettings-CHb3oLBa.mjs";
12
- import { M as Gn } from "../RecurringSettings-CHb3oLBa.mjs";
11
+ import { R as Ee } from "../RecurringSettings-CaQJvUPQ.mjs";
12
+ import { M as Gn } from "../RecurringSettings-CaQJvUPQ.mjs";
13
13
  import { addMonths as ze } from "date-fns/addMonths";
14
14
  import { subMonths as Fe } from "date-fns/subMonths";
15
15
  import { isBefore as Ue } from "date-fns/isBefore";
@@ -41,8 +41,8 @@ import lt from "@mui/material/ListSubheader";
41
41
  import dt from "@mui/material/ListItemAvatar";
42
42
  import ut from "@mui/material/ListItemButton";
43
43
  import mt from "@mui/material/ListItemText";
44
- import { b as pt } from "../ManageIncome-IN7NjYgu.mjs";
45
- import { c as Wn, M as $n, S as Pn } from "../ManageIncome-IN7NjYgu.mjs";
44
+ import { b as pt } from "../ManageIncome-B7RqkNz5.mjs";
45
+ import { c as Wn, M as $n, S as Pn } from "../ManageIncome-B7RqkNz5.mjs";
46
46
  import { f as A } from "../NumberFormatting-Buh7u8Oi.mjs";
47
47
  import { D as xe } from "../Drawer-kEE73B87.mjs";
48
48
  import { b as O } from "../Localization-2MODESHW.mjs";
@@ -35,7 +35,7 @@ import { L as re } from "../Loader-DUaFpDGv.mjs";
35
35
  import Ae from "@mui/material/List";
36
36
  import j from "@mui/material/Divider";
37
37
  import Ee from "@mui/material/ListSubheader";
38
- import { a as Re, u as Pe } from "../CategorySelectorDrawer-DUe4lH5-.mjs";
38
+ import { a as Re, u as Pe } from "../CategorySelectorDrawer-BXnLseqP.mjs";
39
39
  import Be from "@mui/material/ListItem";
40
40
  import Me from "@mui/material/ListItemButton";
41
41
  import Ne from "@mui/material/ListItemIcon";
@@ -12,16 +12,15 @@ import { b as V } from "../CategoryUtil-BR3H5i6n.mjs";
12
12
  import { b as _ } from "../Category-CevNQ03n.mjs";
13
13
  import { Text as y, CategoryIcon as yt, CategoryIconVariants as bt } from "@mxenabled/mxui";
14
14
  import { f as v } from "../NumberFormatting-Buh7u8Oi.mjs";
15
- import { u as Ct } from "../useAriaLive-B3_pRUio.mjs";
16
- import _t from "@mui/material/Button";
15
+ import { c as Ct, T as _t, a as St } from "../TransactionDetails-gdzlKeDG.mjs";
16
+ import Tt from "@mui/material/Button";
17
17
  import { useTheme as rt } from "@mui/material";
18
- import { u as E, b as O, m as z, d as st, n as St, a as lt, h as Tt, g as Mt } from "../hooks-D6XlXHf4.mjs";
18
+ import { u as E, b as O, m as z, d as st, n as Mt, a as lt, h as Dt, g as xt } from "../hooks-D6XlXHf4.mjs";
19
19
  import { u as ct } from "../useScreenSize-B6JyS_Lj.mjs";
20
- import { D as Dt } from "../Donut-oaQFlbit.mjs";
20
+ import { D as wt } from "../Donut-oaQFlbit.mjs";
21
21
  import { L as F } from "../Loader-DUaFpDGv.mjs";
22
- import { M as xt } from "../MiniWidgetContainer-D0gfmbaF.mjs";
22
+ import { M as vt } from "../MiniWidgetContainer-D0gfmbaF.mjs";
23
23
  import { startOfToday as q } from "date-fns/startOfToday";
24
- import { T as wt, a as vt } from "../TransactionDetails-KZTpxcV0.mjs";
25
24
  import It from "@mui/material/Collapse";
26
25
  import B from "@mui/material/Divider";
27
26
  import J from "@mui/material/List";
@@ -136,7 +135,7 @@ const j = 5, Lt = (o, d, r) => r.reduce((l, n) => {
136
135
  }, D = s ? 32 : 48;
137
136
  return /* @__PURE__ */ h(ht, { children: [
138
137
  S,
139
- /* @__PURE__ */ t(Dt, { data: T, onClick: r, selectedId: n, size: a, children: /* @__PURE__ */ t(C, { alignItems: "center", height: "100%", justifyContent: "center", width: "100%", children: /* @__PURE__ */ h(C, { alignItems: "center", justifyContent: "center", minHeight: a, minWidth: a, children: [
138
+ /* @__PURE__ */ t(wt, { data: T, onClick: r, selectedId: n, size: a, children: /* @__PURE__ */ t(C, { alignItems: "center", height: "100%", justifyContent: "center", width: "100%", children: /* @__PURE__ */ h(C, { alignItems: "center", justifyContent: "center", minHeight: a, minWidth: a, children: [
140
139
  g && /* @__PURE__ */ h(
141
140
  C,
142
141
  {
@@ -170,7 +169,7 @@ const j = 5, Lt = (o, d, r) => r.reduce((l, n) => {
170
169
  /* @__PURE__ */ t(y, { variant: e === "mini" ? "H2" : "H1", children: g ? v(g.amount, "0,0") : v(o.totalAmount, "0,0") }),
171
170
  !g && e === "mini" && /* @__PURE__ */ t(y, { color: "secondary", noWrap: !0, variant: "Tiny", children: i }),
172
171
  e === "full" && /* @__PURE__ */ t(
173
- _t,
172
+ Tt,
174
173
  {
175
174
  "aria-label": `View ${g?.name || ""} Transactions`,
176
175
  disabled: o.categoryData.length === 0,
@@ -332,7 +331,7 @@ const j = 5, Lt = (o, d, r) => r.reduce((l, n) => {
332
331
  return p.useEffect(() => {
333
332
  i(r);
334
333
  }, [r]), !n || !a ? /* @__PURE__ */ t(F, {}) : /* @__PURE__ */ t(
335
- xt,
334
+ vt,
336
335
  {
337
336
  className: "mx-exp-spending-miniwidget",
338
337
  onPrimaryCtaClick: o,
@@ -342,7 +341,7 @@ const j = 5, Lt = (o, d, r) => r.reduce((l, n) => {
342
341
  children: /* @__PURE__ */ t(Ot, {})
343
342
  }
344
343
  );
345
- }, _e = I(Rt), kt = ({
344
+ }, Ce = I(Rt), kt = ({
346
345
  data: o,
347
346
  onSelected: d,
348
347
  selectedId: r = "",
@@ -479,7 +478,7 @@ const j = 5, Lt = (o, d, r) => r.reduce((l, n) => {
479
478
  o.palette.chartMono.chartMono1,
480
479
  o.palette.chartMono.chartMono6
481
480
  ], jt = () => {
482
- const o = rt(), { onLoad: d } = St(), { clientConfig: r } = lt(), { categories: l, dateRangeCategoryTotals: n, loadDateRangeCategoryTotals: a } = z(), { goals: i, spending: e } = E(), { displayedDateRange: c, selectedAccounts: u, selectedAccountGuids: s } = O(), { setFilter: m, sortedTransactions: S } = Tt(), g = r?.master?.deep_link_params?.account_guids, T = r?.master?.deep_link_params?.view, [x, D] = p.useState(""), [b, R] = p.useState(T === "income" ? 1 : 0), [H, P] = p.useState(""), [ut, K] = p.useState(!1);
481
+ const o = rt(), { onLoad: d } = Mt(), { clientConfig: r } = lt(), { categories: l, dateRangeCategoryTotals: n, loadDateRangeCategoryTotals: a } = z(), { goals: i, spending: e } = E(), { displayedDateRange: c, selectedAccounts: u, selectedAccountGuids: s } = O(), { setFilter: m, sortedTransactions: S } = Dt(), g = r?.master?.deep_link_params?.account_guids, T = r?.master?.deep_link_params?.view, [x, D] = p.useState(""), [b, R] = p.useState(T === "income" ? 1 : 0), [H, P] = p.useState(""), [ut, K] = p.useState(!1);
483
482
  p.useEffect(() => {
484
483
  a(
485
484
  u,
@@ -581,7 +580,7 @@ const j = 5, Lt = (o, d, r) => r.reduce((l, n) => {
581
580
  isOpen: ut,
582
581
  onClose: () => K(!1),
583
582
  title: e.transactions_drawer_title,
584
- children: /* @__PURE__ */ t(wt, { onClick: P })
583
+ children: /* @__PURE__ */ t(_t, { onClick: P })
585
584
  }
586
585
  ),
587
586
  /* @__PURE__ */ t(
@@ -591,12 +590,12 @@ const j = 5, Lt = (o, d, r) => r.reduce((l, n) => {
591
590
  isOpen: !!$,
592
591
  onClose: () => P(""),
593
592
  title: e.transaction_details_drawer_title,
594
- children: $ && /* @__PURE__ */ t(vt, { transaction: $ })
593
+ children: $ && /* @__PURE__ */ t(St, { transaction: $ })
595
594
  }
596
595
  )
597
596
  ] });
598
597
  }, Vt = I(jt), zt = ({ onBackClick: o, sx: d = {} }) => {
599
- const { visibleAccounts: r } = st(), { spending: l } = E(), { isCopyLoaded: n, isInitialized: a, setDisplayedDate: i, setSelectedAccounts: e } = O(), { onEvent: c } = Mt(), { clientConfig: u } = lt(), s = u?.master?.deep_link_params?.date_range, [m, S] = p.useState(!1);
598
+ const { visibleAccounts: r } = st(), { spending: l } = E(), { isCopyLoaded: n, isInitialized: a, setDisplayedDate: i, setSelectedAccounts: e } = O(), { onEvent: c } = xt(), { clientConfig: u } = lt(), s = u?.master?.deep_link_params?.date_range, [m, S] = p.useState(!1);
600
599
  p.useEffect(() => {
601
600
  e(r);
602
601
  }, [r]), p.useEffect(() => {
@@ -617,8 +616,8 @@ const j = 5, Lt = (o, d, r) => r.reduce((l, n) => {
617
616
  children: /* @__PURE__ */ t(w, { height: "calc(100dvh - 150px)", overflow: "scroll", width: "100%", children: /* @__PURE__ */ t(Vt, {}) })
618
617
  }
619
618
  );
620
- }, Se = I(zt);
619
+ }, _e = I(zt);
621
620
  export {
622
- _e as SpendingMiniWidget,
623
- Se as SpendingWidget
621
+ Ce as SpendingMiniWidget,
622
+ _e as SpendingWidget
624
623
  };
@@ -1,40 +1,39 @@
1
- import { T as Aa } from "../TransactionApi-B3Tksf7L.mjs";
2
- import { u as P, C as Pe, D as $e, M as Ve, c as We, T as Ge, a as Ue } from "../TransactionDetails-KZTpxcV0.mjs";
3
- import { B as xa, d as wa, b as Ia } from "../TransactionDetails-KZTpxcV0.mjs";
1
+ import { T as Ta } from "../TransactionApi-B3Tksf7L.mjs";
2
+ import { u as P, C as Pe, D as $e, M as Ve, d as We, c as Ge, T as Ue, a as Fe } from "../TransactionDetails-gdzlKeDG.mjs";
3
+ import { B as Sa, e as xa, b as wa } from "../TransactionDetails-gdzlKeDG.mjs";
4
4
  import { T as M } from "../User-BQUxBeZV.mjs";
5
- import { O as Da } from "../User-BQUxBeZV.mjs";
6
- import { S as ae, D as Fe } from "../TransactionStore-hfOsBbDt.mjs";
7
- import { T as Ea } from "../TransactionStore-hfOsBbDt.mjs";
8
- import { e as ze } from "../exportTransactionsToCSV-BwwmL4pM.mjs";
9
- import { E as Ma } from "../ExportCsvAction-DTO_UotC.mjs";
5
+ import { O as va } from "../User-BQUxBeZV.mjs";
6
+ import { S as ae, D as ze } from "../TransactionStore-hfOsBbDt.mjs";
7
+ import { T as Na } from "../TransactionStore-hfOsBbDt.mjs";
8
+ import { e as Ke } from "../exportTransactionsToCSV-BwwmL4pM.mjs";
9
+ import { E as Oa } from "../ExportCsvAction-DTO_UotC.mjs";
10
10
  import { jsxs as _, jsx as e } from "react/jsx-runtime";
11
11
  import u from "react";
12
12
  import { observer as x } from "mobx-react-lite";
13
- import Ke from "@mui/material/Paper";
14
- import { DataGridPro as qe } from "@mui/x-data-grid-pro";
13
+ import qe from "@mui/material/Paper";
14
+ import { DataGridPro as je } from "@mui/x-data-grid-pro";
15
15
  import S from "@mui/material/Box";
16
- import { useTheme as je } from "@mui/material/styles";
17
- import { Text as C, Icon as B, MerchantLogo as Xe, TextField as ne, P as Ye } from "@mxenabled/mxui";
18
- import { h as $, u as w, b as j, d as se, m as Je, a as Qe, g as Ze, p as et } from "../hooks-D6XlXHf4.mjs";
19
- import { fromUnixTime as tt } from "date-fns/fromUnixTime";
20
- import { f as at, D as nt, a as ie } from "../Dialog-CWW597AF.mjs";
16
+ import { useTheme as Xe } from "@mui/material/styles";
17
+ import { Text as C, Icon as B, MerchantLogo as Ye, TextField as ne, P as Je } from "@mxenabled/mxui";
18
+ import { h as $, u as w, b as j, d as se, m as Qe, a as Ze, g as et, p as tt } from "../hooks-D6XlXHf4.mjs";
19
+ import { fromUnixTime as at } from "date-fns/fromUnixTime";
20
+ import { f as nt, D as ot, a as ie } from "../Dialog-CWW597AF.mjs";
21
21
  import N from "@mui/material/Stack";
22
22
  import { f as ce } from "../NumberFormatting-Buh7u8Oi.mjs";
23
23
  import { L as X } from "../Loader-DUaFpDGv.mjs";
24
- import { endOfMonth as ot } from "date-fns/endOfMonth";
25
- import { getUnixTime as rt } from "date-fns/getUnixTime";
26
- import { startOfMonth as st } from "date-fns/startOfMonth";
24
+ import { endOfMonth as rt } from "date-fns/endOfMonth";
25
+ import { getUnixTime as st } from "date-fns/getUnixTime";
26
+ import { startOfMonth as it } from "date-fns/startOfMonth";
27
27
  import { startOfToday as K } from "date-fns/startOfToday";
28
- import it from "@mui/material/styles/useTheme";
29
- import { l as ct } from "../ConnectDrawer-Bw5s6Dw1.mjs";
30
- import lt from "@mui/material/Divider";
31
- import dt from "@mui/material/MenuItem";
32
- import ut from "@mui/material/RadioGroup";
33
- import { ExpandMore as mt } from "@mxenabled/mx-icons";
34
- import { C as _t } from "../CurrencyInput-DUsQbkXb.mjs";
35
- import { a as pt, u as gt } from "../CategorySelectorDrawer-DUe4lH5-.mjs";
28
+ import ct from "@mui/material/styles/useTheme";
29
+ import { l as lt } from "../ConnectDrawer-Bw5s6Dw1.mjs";
30
+ import dt from "@mui/material/Divider";
31
+ import ut from "@mui/material/MenuItem";
32
+ import mt from "@mui/material/RadioGroup";
33
+ import { ExpandMore as _t } from "@mxenabled/mx-icons";
34
+ import { C as pt } from "../CurrencyInput-DUsQbkXb.mjs";
35
+ import { a as gt, u as ht } from "../CategorySelectorDrawer-BXnLseqP.mjs";
36
36
  import { b as q } from "../Localization-2MODESHW.mjs";
37
- import { u as ht } from "../useAriaLive-B3_pRUio.mjs";
38
37
  import { A, W as ft } from "../WidgetContainer-EbrN1oIo.mjs";
39
38
  import { u as Ct } from "../useScreenSize-B6JyS_Lj.mjs";
40
39
  import { S as yt } from "../SearchBox-B2_zLv8-.mjs";
@@ -70,8 +69,8 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
70
69
  ]
71
70
  }
72
71
  );
73
- }, St = x(At), xt = (t) => /* @__PURE__ */ e(C, { tabIndex: t.tabIndex, variant: "Small", children: at(tt(t.row.date), nt.MONTH_DAY) }), wt = (t) => {
74
- const s = je(), { transactions: r } = w(), { is_flagged: a, is_hidden: i, has_been_viewed: l, parent_guid: d } = t.row, h = !l && !!!d;
72
+ }, St = x(At), xt = (t) => /* @__PURE__ */ e(C, { tabIndex: t.tabIndex, variant: "Small", children: nt(at(t.row.date), ot.MONTH_DAY) }), wt = (t) => {
73
+ const s = Xe(), { transactions: r } = w(), { is_flagged: a, is_hidden: i, has_been_viewed: l, parent_guid: d } = t.row, h = !l && !!!d;
75
74
  return /* @__PURE__ */ _(
76
75
  S,
77
76
  {
@@ -100,7 +99,7 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
100
99
  );
101
100
  }, It = x(wt), O = (t) => /* @__PURE__ */ e(C, { fontWeight: 600, variant: "Small", children: t.colDef.headerName }), vt = (t) => /* @__PURE__ */ _(N, { alignItems: "center", direction: "row", gap: 8, children: [
102
101
  /* @__PURE__ */ e(
103
- Xe,
102
+ Ye,
104
103
  {
105
104
  categoryGuid: t.row.top_level_category_guid || "",
106
105
  merchantGuid: t.row.merchant_guid || ""
@@ -178,8 +177,8 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
178
177
  sortingOrder: ["asc", "desc"]
179
178
  }
180
179
  ];
181
- return /* @__PURE__ */ e(Ke, { sx: { height: t, px: 24, width: "100%", boxShadow: "none" }, children: /* @__PURE__ */ e(
182
- qe,
180
+ return /* @__PURE__ */ e(qe, { sx: { height: t, px: 24, width: "100%", boxShadow: "none" }, children: /* @__PURE__ */ e(
181
+ je,
183
182
  {
184
183
  columns: I,
185
184
  disableColumnFilter: !0,
@@ -247,7 +246,7 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
247
246
  sx: { flexDirection: { xs: "column", sm: "row" }, gap: { xs: 40, sm: 8 } },
248
247
  children: [
249
248
  /* @__PURE__ */ e(
250
- _t,
249
+ pt,
251
250
  {
252
251
  allowDecimals: !0,
253
252
  amount: d,
@@ -263,7 +262,7 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
263
262
  type: "number"
264
263
  }
265
264
  ),
266
- /* @__PURE__ */ e(ut, { name: "TransactionType", onChange: g, row: !0, children: /* @__PURE__ */ _(N, { alignItems: "center", direction: "row", children: [
265
+ /* @__PURE__ */ e(mt, { name: "TransactionType", onChange: g, row: !0, children: /* @__PURE__ */ _(N, { alignItems: "center", direction: "row", children: [
267
266
  /* @__PURE__ */ e(
268
267
  ae,
269
268
  {
@@ -301,17 +300,17 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
301
300
  ne,
302
301
  {
303
302
  InputLabelProps: { shrink: !0 },
304
- SelectProps: { defaultValue: -1, IconComponent: mt },
303
+ SelectProps: { defaultValue: -1, IconComponent: _t },
305
304
  label: r.manual_transaction_select_an_account,
306
305
  onChange: (o) => E(o.target.value),
307
306
  placeholder: r.manual_transaction_select,
308
307
  select: !0,
309
308
  sx: { bgcolor: "background.paper" },
310
- children: m.map((o) => /* @__PURE__ */ e(dt, { value: o.value, children: o.label }, o.value))
309
+ children: m.map((o) => /* @__PURE__ */ e(ut, { value: o.value, children: o.label }, o.value))
311
310
  }
312
311
  )
313
312
  ] }),
314
- /* @__PURE__ */ e(lt, { light: !0 }),
313
+ /* @__PURE__ */ e(dt, { light: !0 }),
315
314
  /* @__PURE__ */ _(S, { bgcolor: "background.paper", children: [
316
315
  /* @__PURE__ */ e(Pe, { transaction: a }),
317
316
  /* @__PURE__ */ e($e, { transaction: a }),
@@ -320,7 +319,7 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
320
319
  ] })
321
320
  ] });
322
321
  }, kt = x(Mt), Lt = ({ onClose: t, transaction: s }) => {
323
- const { addOrUpdateTransactionRule: r, updateTransaction: a } = $(), { transactions: i } = w(), { categories: l } = Je(), [d, p] = u.useState(""), h = u.useMemo(
322
+ const { addOrUpdateTransactionRule: r, updateTransaction: a } = $(), { transactions: i } = w(), { categories: l } = Qe(), [d, p] = u.useState(""), h = u.useMemo(
324
323
  () => l.find((m) => m.guid === d),
325
324
  [d]
326
325
  ), f = async (m) => {
@@ -328,7 +327,7 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
328
327
  };
329
328
  return /* @__PURE__ */ _(S, { className: "mx-txn-edit-category-action", children: [
330
329
  /* @__PURE__ */ e(
331
- pt,
330
+ gt,
332
331
  {
333
332
  initialSelected: s.category_guid,
334
333
  onClose: t,
@@ -352,7 +351,7 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
352
351
  onSecondaryAction: () => f(!1),
353
352
  primaryText: i.actions_apply_to_all,
354
353
  secondaryText: i.actions_this_time_only,
355
- children: /* @__PURE__ */ e(Ye, { variant: "Paragraph", children: q(
354
+ children: /* @__PURE__ */ e(Je, { variant: "Paragraph", children: q(
356
355
  i.actions_all_past_and_future,
357
356
  s.description,
358
357
  h?.name
@@ -366,14 +365,14 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
366
365
  showInsights: r = !1,
367
366
  sx: a = {}
368
367
  }) => {
369
- const { visibleAccounts: i, refreshAccounts: l } = se(), { is_mobile_webview: d, clientConfig: p, config: h } = Qe(), { setSearchValue: f } = gt(), { onEvent: m } = Ze(), { common: I, transactions: n } = w(), {
368
+ const { visibleAccounts: i, refreshAccounts: l } = se(), { is_mobile_webview: d, clientConfig: p, config: h } = Ze(), { setSearchValue: f } = ht(), { onEvent: m } = et(), { common: I, transactions: n } = w(), {
370
369
  displayedDateRange: g,
371
370
  isCopyLoaded: T,
372
371
  isInitialized: E,
373
372
  selectedAccountGuids: o,
374
373
  setDisplayedDate: k,
375
374
  setSelectedAccounts: le
376
- } = j(), { isDesktop: de, isTablet: ue } = Ct(), L = it(), {
375
+ } = j(), { isDesktop: de, isTablet: ue } = Ct(), L = ct(), {
377
376
  addTransaction: me,
378
377
  filter: Y,
379
378
  loadAssociatedBeats: _e,
@@ -390,9 +389,9 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
390
389
  setSearchValue: be,
391
390
  setShowInsights: Te,
392
391
  updateManualTransaction: Ae
393
- } = P(), { userProfile: Se } = et(), [G, y] = u.useState(""), [J, H] = u.useState(""), [xe, U] = u.useState(!1), [we, Q] = u.useState(!1), [F, Ie] = u.useState(!1), { announce: ve, ariaLive: De } = ht(), v = p?.transactions?.selected_account_guid;
392
+ } = P(), { userProfile: Se } = tt(), [G, y] = u.useState(""), [J, H] = u.useState(""), [xe, U] = u.useState(!1), [we, Q] = u.useState(!1), [F, Ie] = u.useState(!1), { announce: ve, ariaLive: De } = Ge(), v = p?.transactions?.selected_account_guid;
394
393
  u.useEffect(() => {
395
- const c = v ? [{ guid: v }] : i.filter((D) => !D.is_hidden), ee = st(K()), te = ot(K());
394
+ const c = v ? [{ guid: v }] : i.filter((D) => !D.is_hidden), ee = it(K()), te = rt(K());
396
395
  v || le(c), k(ee, te), V({
397
396
  accounts: c.map((D) => D.guid),
398
397
  custom: (D) => !D.accountIsClosed && !D.accountIsHidden,
@@ -425,11 +424,11 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
425
424
  searchTerm: c
426
425
  }), m(A.TRANSACTIONS_CLICK_SEARCH, { search_term: c });
427
426
  }, Me = () => {
428
- ze(W, pe), m(A.TRANSACTIONS_CLICK_EXPORT);
427
+ Ke(W, pe), m(A.TRANSACTIONS_CLICK_EXPORT);
429
428
  }, ke = () => {
430
429
  Ne.length > 0 ? (Ae({
431
- ...Fe,
432
- date: rt(K()),
430
+ ...ze,
431
+ date: st(K()),
433
432
  user_guid: Se?.user_guid || ""
434
433
  }), y(
435
434
  "addTransaction"
@@ -512,7 +511,7 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
512
511
  [L.breakpoints.up("md")]: { display: "none" }
513
512
  },
514
513
  children: /* @__PURE__ */ e(
515
- Ge,
514
+ Ue,
516
515
  {
517
516
  height: `calc(${s} - ${re}px)`,
518
517
  onClick: (c) => {
@@ -534,7 +533,7 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
534
533
  isOpen: G === "transaction" && !!b,
535
534
  onClose: Be,
536
535
  title: n.details_title,
537
- children: b && /* @__PURE__ */ e(Ue, { transaction: b })
536
+ children: b && /* @__PURE__ */ e(Fe, { transaction: b })
538
537
  }
539
538
  ),
540
539
  b && G === "category" && /* @__PURE__ */ e(
@@ -570,7 +569,7 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
570
569
  }
571
570
  ),
572
571
  /* @__PURE__ */ e(
573
- ct,
572
+ lt,
574
573
  {
575
574
  onClose: He,
576
575
  showConnectWidget: we,
@@ -580,20 +579,20 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
580
579
  ]
581
580
  }
582
581
  );
583
- }, ya = x(Ht);
582
+ }, Ca = x(Ht);
584
583
  export {
585
584
  Ot as AddAccountModal,
586
- xa as BottomActions,
587
- Ma as ExportCsvAction,
588
- Da as TRANSACTION_EVENTS,
589
- wa as TopActions,
590
- Aa as TransactionApi,
591
- Ue as TransactionDetails,
592
- Ge as TransactionList,
593
- Ia as TransactionRow,
594
- Ea as TransactionStore,
585
+ Sa as BottomActions,
586
+ Oa as ExportCsvAction,
587
+ va as TRANSACTION_EVENTS,
588
+ xa as TopActions,
589
+ Ta as TransactionApi,
590
+ Fe as TransactionDetails,
591
+ Ue as TransactionList,
592
+ wa as TransactionRow,
593
+ Na as TransactionStore,
595
594
  Nt as TransactionTable,
596
- ya as TransactionWidget,
597
- ze as exportTransactionsToCSV,
595
+ Ca as TransactionWidget,
596
+ Ke as exportTransactionsToCSV,
598
597
  P as useTransactionsUiStore
599
598
  };
@@ -22,7 +22,7 @@ import { H as Ie } from "../HeaderCell-DjuifqHJ.mjs";
22
22
  import { T as M, b as ft } from "../ViewMoreMicroCard-SCn2wt4i.mjs";
23
23
  import { A as _, W as ke } from "../WidgetContainer-EbrN1oIo.mjs";
24
24
  import { c as Tt } from "../Category-CevNQ03n.mjs";
25
- import { a as Ne, T as He } from "../TransactionDetails-KZTpxcV0.mjs";
25
+ import { a as Ne, T as He } from "../TransactionDetails-gdzlKeDG.mjs";
26
26
  import { D as Ce } from "../Drawer-kEE73B87.mjs";
27
27
  import { L as Q } from "../Loader-DUaFpDGv.mjs";
28
28
  import { useTheme as We } from "@mui/material/styles";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mx-cartographer/experiences",
3
- "version": "7.2.22-alpha.sms1",
3
+ "version": "7.2.22",
4
4
  "description": "Library containing experience widgets",
5
5
  "author": "MX",
6
6
  "license": "MIT",
@@ -1,35 +0,0 @@
1
- import { jsx as l } from "react/jsx-runtime";
2
- import e from "react";
3
- import u from "@mui/material/Box";
4
- const x = (a = "polite") => {
5
- const [s, o] = e.useState(""), [t, r] = e.useState(a), n = e.useCallback((c, i) => {
6
- i && r(i), o(c);
7
- }, []), p = e.useMemo(
8
- () => /* @__PURE__ */ l(
9
- u,
10
- {
11
- "aria-atomic": "true",
12
- "aria-live": t,
13
- role: t === "assertive" ? "alert" : "status",
14
- sx: {
15
- position: "absolute",
16
- width: "1px",
17
- height: "1px",
18
- padding: 0,
19
- margin: "-1px",
20
- overflow: "hidden",
21
- clip: "rect(0 0 0 0)",
22
- clipPath: "inset(50%)",
23
- whiteSpace: "nowrap",
24
- border: 0
25
- },
26
- children: s
27
- }
28
- ),
29
- [s, t]
30
- );
31
- return { announce: n, ariaLive: p };
32
- };
33
- export {
34
- x as u
35
- };