@mx-cartographer/experiences 7.2.12-alpha.san1 → 7.2.13-alpha-ram1-finstrongtesting-wec-947

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.
@@ -37,7 +37,7 @@ import { jsxs as y, jsx as n } from "react/jsx-runtime";
37
37
  import dt, { useRef as lt, useEffect as ut } from "react";
38
38
  import { css as x, keyframes as ht } from "@mxenabled/cssinjs";
39
39
  import { useTokens as C, Text as B } from "@mxenabled/mxui";
40
- import { D as Rr } from "../Donut-1UMNcG67.mjs";
40
+ import { D as Rr } from "../Donut-oaQFlbit.mjs";
41
41
  import { L as Or } from "../LineChart-Ct9DNmhS.mjs";
42
42
  import { S as Lr } from "../StatusBar-BK_uYHAB.mjs";
43
43
  import { a as Hr, D as Fr, O as Wr, b as qr, f as Yr } from "../Dialog-BPTr3qHE.mjs";
@@ -51,7 +51,7 @@ import { ResponsiveChartContainer as Kn } from "@mui/x-charts/ResponsiveChartCon
51
51
  import { useSpring as jn, animated as ot } from "@react-spring/web";
52
52
  import { startOfMonth as It } from "date-fns/startOfMonth";
53
53
  import { endOfMonth as Tt } from "date-fns/endOfMonth";
54
- import { g as Vn, S as Yn, b as Xn } from "../SpendingLegend-squvjEhu.mjs";
54
+ import { g as Vn, S as Yn, b as Xn } from "../SpendingLegend-CW8mIzqd.mjs";
55
55
  import { startOfToday as rt } from "date-fns/startOfToday";
56
56
  import { subDays as Un } from "date-fns/subDays";
57
57
  import { c as qn, d as at, S as Zn, i as Qn } from "../ManageIncome-CqNstpx_.mjs";
@@ -22,7 +22,7 @@ import { a as ze, f as oe } from "../NumberFormatting-Buh7u8Oi.mjs";
22
22
  import { u as U } from "../useScreenSize-B6JyS_Lj.mjs";
23
23
  import le from "@mui/material/styles/useTheme";
24
24
  import { Icon as k } from "@mxenabled/mx-icons";
25
- import { D as Oe } from "../Donut-1UMNcG67.mjs";
25
+ import { D as Oe } from "../Donut-oaQFlbit.mjs";
26
26
  import { useTheme as Ve } from "@mui/material/styles";
27
27
  import { f as Re, A as V } from "../InvestmentUtil-jOyOgzIB.mjs";
28
28
  import Pe from "@mui/material/ListItemText";
@@ -4,35 +4,35 @@ import { observer as D } from "mobx-react-lite";
4
4
  import { startOfMonth as tt } from "date-fns/startOfMonth";
5
5
  import { endOfMonth as et } from "date-fns/endOfMonth";
6
6
  import T from "@mui/material/Box";
7
- import b from "@mui/material/Stack";
7
+ import S from "@mui/material/Stack";
8
8
  import W from "@mui/material/Tab";
9
9
  import nt from "@mui/material/Tabs";
10
10
  import dt from "@mui/material/styles/useTheme";
11
- import { g as ot, a as at, S as N, b as U } from "../SpendingLegend-squvjEhu.mjs";
11
+ import { g as ot, a as at, S as N, b as U } from "../SpendingLegend-CW8mIzqd.mjs";
12
12
  import { Text as y } from "@mxenabled/mxui";
13
13
  import { f as E } from "../NumberFormatting-Buh7u8Oi.mjs";
14
- import { u as w, b as O, m as j, d as it, a as st, h as gt, g as pt } from "../hooks-C41HAxM5.mjs";
14
+ import { u as w, b as O, m as j, d as it, a as rt, h as gt, g as pt } from "../hooks-C41HAxM5.mjs";
15
15
  import { L as z } from "../Loader-DUaFpDGv.mjs";
16
16
  import { M as ut } from "../MiniWidgetContainer-CmXpTylX.mjs";
17
17
  import { startOfToday as X } from "date-fns/startOfToday";
18
18
  import { useTheme as mt } from "@mui/material";
19
19
  import { T as ht, a as ft } from "../TransactionDetails-CabNHK_I.mjs";
20
- import _t from "@mui/material/Collapse";
20
+ import bt from "@mui/material/Collapse";
21
21
  import B from "@mui/material/Divider";
22
22
  import Y from "@mui/material/List";
23
23
  import q from "@mui/material/ListItem";
24
- import Ct from "@mui/material/ListItemButton";
24
+ import _t from "@mui/material/ListItemButton";
25
25
  import { u as yt } from "../useScreenSize-B6JyS_Lj.mjs";
26
26
  import { D as J } from "../Drawer-BEtCk82g.mjs";
27
27
  import { b as L } from "../Category-CevNQ03n.mjs";
28
- import { A as Q, W as St } from "../WidgetContainer-GoNq8wwm.mjs";
29
- const R = ({ amount: n, label: r }) => /* @__PURE__ */ d(b, { direction: "column", children: [
30
- /* @__PURE__ */ t(y, { bold: !0, sx: { textTransform: "none" }, variant: "Body", children: r }),
28
+ import { A as Q, W as Ct } from "../WidgetContainer-GoNq8wwm.mjs";
29
+ const R = ({ amount: n, label: s }) => /* @__PURE__ */ d(S, { direction: "column", children: [
30
+ /* @__PURE__ */ t(y, { bold: !0, sx: { textTransform: "none" }, variant: "Body", children: s }),
31
31
  /* @__PURE__ */ t(y, { variant: "XSmall", children: E(n, "0,0") })
32
- ] }), bt = () => {
33
- const n = dt(), { goals: r, spending: o } = w(), { selectedAccounts: i } = O(), {
32
+ ] }), St = () => {
33
+ const n = dt(), { goals: s, spending: o } = w(), { selectedAccounts: i } = O(), {
34
34
  categories: c,
35
- dateRangeCategoryTotals: s,
35
+ dateRangeCategoryTotals: r,
36
36
  dataRangeTotalsLoaded: e,
37
37
  loadDateRangeCategoryTotals: l
38
38
  } = j(), u = a.useMemo(
@@ -53,100 +53,126 @@ const R = ({ amount: n, label: r }) => /* @__PURE__ */ d(b, { direction: "column
53
53
  et(/* @__PURE__ */ new Date())
54
54
  ).finally();
55
55
  }, [i]);
56
- const [m, p] = a.useState(""), [C, M] = a.useState(0), S = a.useMemo(
57
- () => ot(c, r, n, s),
58
- [c, s]
59
- ), h = a.useMemo(
60
- () => at(c, s, u),
61
- [c, s, u]
62
- ), A = (v, I) => {
56
+ const [m, p] = a.useState(""), [h, M] = a.useState(0), C = a.useMemo(
57
+ () => ot(c, s, n, r),
58
+ [c, r]
59
+ ), f = a.useMemo(
60
+ () => at(c, r, u),
61
+ [c, r, u]
62
+ ), A = (x, I) => {
63
63
  M(I), p("");
64
- }, _ = (v) => {
65
- p(m === v ? "" : v);
64
+ }, _ = (x) => {
65
+ p(m === x ? "" : x);
66
66
  };
67
67
  return e ? /* @__PURE__ */ d(T, { width: "100%", children: [
68
- /* @__PURE__ */ d(nt, { onChange: A, value: C, variant: "fullWidth", children: [
69
- /* @__PURE__ */ t(
70
- W,
71
- {
72
- label: /* @__PURE__ */ t(
73
- R,
68
+ /* @__PURE__ */ d(
69
+ nt,
70
+ {
71
+ "aria-label": o.mini_title,
72
+ onChange: A,
73
+ value: h,
74
+ variant: "fullWidth",
75
+ children: [
76
+ /* @__PURE__ */ t(
77
+ W,
74
78
  {
75
- amount: S.totalAmount,
76
- label: o.spend_tab_title
79
+ "aria-controls": "spending-tabpanel",
80
+ id: "spending-tab",
81
+ label: /* @__PURE__ */ t(
82
+ R,
83
+ {
84
+ amount: C.totalAmount,
85
+ label: o.spend_tab_title
86
+ }
87
+ ),
88
+ tabIndex: h === 0 ? 0 : -1
77
89
  }
78
- )
79
- }
80
- ),
81
- /* @__PURE__ */ t(
82
- W,
83
- {
84
- label: /* @__PURE__ */ t(
85
- R,
90
+ ),
91
+ /* @__PURE__ */ t(
92
+ W,
86
93
  {
87
- amount: h.totalAmount,
88
- label: o.income_tab_title
94
+ "aria-controls": "income-tabpanel",
95
+ id: "income-tab",
96
+ label: /* @__PURE__ */ t(
97
+ R,
98
+ {
99
+ amount: f.totalAmount,
100
+ label: o.income_tab_title
101
+ }
102
+ ),
103
+ tabIndex: h === 1 ? 0 : -1
89
104
  }
90
105
  )
91
- }
92
- )
93
- ] }),
94
- C === 0 && /* @__PURE__ */ t(T, { children: /* @__PURE__ */ d(b, { direction: "row", gap: 16, justifyContent: "center", p: 24, children: [
95
- /* @__PURE__ */ t(
96
- N,
97
- {
98
- data: S,
99
- onSelected: _,
100
- selectedId: m,
101
- totalLabel: o.total_spending
102
- }
103
- ),
104
- /* @__PURE__ */ t(
105
- U,
106
- {
107
- data: S,
108
- onSelected: _,
109
- selectedId: m
110
- }
111
- )
112
- ] }) }),
113
- C === 1 && /* @__PURE__ */ t(T, { children: /* @__PURE__ */ d(b, { direction: "row", gap: 16, justifyContent: "center", p: 24, children: [
114
- /* @__PURE__ */ t(
115
- N,
116
- {
117
- data: h,
118
- isIncome: !0,
119
- onSelected: _,
120
- selectedId: m,
121
- totalLabel: o.total_income
122
- }
123
- ),
124
- /* @__PURE__ */ t(U, { data: h, onSelected: _, selectedId: m })
125
- ] }) })
106
+ ]
107
+ }
108
+ ),
109
+ /* @__PURE__ */ t(
110
+ T,
111
+ {
112
+ "aria-labelledby": "spending-tab",
113
+ hidden: h !== 0,
114
+ id: "spending-tabpanel",
115
+ role: "tabpanel",
116
+ children: /* @__PURE__ */ d(S, { direction: "row", gap: 16, justifyContent: "center", p: 24, children: [
117
+ /* @__PURE__ */ t(
118
+ N,
119
+ {
120
+ data: C,
121
+ onSelected: _,
122
+ selectedId: m,
123
+ totalLabel: o.total_spending
124
+ }
125
+ ),
126
+ /* @__PURE__ */ t(U, { data: C, onSelected: _, selectedId: m })
127
+ ] })
128
+ }
129
+ ),
130
+ /* @__PURE__ */ t(
131
+ T,
132
+ {
133
+ "aria-labelledby": "income-tab",
134
+ hidden: h !== 1,
135
+ id: "income-tabpanel",
136
+ role: "tabpanel",
137
+ children: /* @__PURE__ */ d(S, { direction: "row", gap: 16, justifyContent: "center", p: 24, children: [
138
+ /* @__PURE__ */ t(
139
+ N,
140
+ {
141
+ data: f,
142
+ isIncome: !0,
143
+ onSelected: _,
144
+ selectedId: m,
145
+ totalLabel: o.total_income
146
+ }
147
+ ),
148
+ /* @__PURE__ */ t(U, { data: f, onSelected: _, selectedId: m })
149
+ ] })
150
+ }
151
+ )
126
152
  ] }) : /* @__PURE__ */ t(z, { height: 250 });
127
- }, Mt = D(bt), Tt = ({ onPrimaryCtaClick: n, sx: r = {} }) => {
128
- const { visibleAccounts: o } = it(), { spending: i } = w(), { isCopyLoaded: c, isInitialized: s, setSelectedAccounts: e } = O();
153
+ }, Mt = D(St), Tt = ({ onPrimaryCtaClick: n, sx: s = {} }) => {
154
+ const { visibleAccounts: o } = it(), { spending: i } = w(), { isCopyLoaded: c, isInitialized: r, setSelectedAccounts: e } = O();
129
155
  return a.useEffect(() => {
130
156
  e(o);
131
- }, [o]), !c || !s ? /* @__PURE__ */ t(z, {}) : /* @__PURE__ */ t(
157
+ }, [o]), !c || !r ? /* @__PURE__ */ t(z, {}) : /* @__PURE__ */ t(
132
158
  ut,
133
159
  {
134
160
  className: "mx-exp-spending-miniwidget",
135
161
  onPrimaryCtaClick: n,
136
162
  primaryCtaLabel: i.primary_cta,
137
- sx: r,
163
+ sx: s,
138
164
  title: i.mini_title,
139
165
  children: /* @__PURE__ */ t(Mt, {})
140
166
  }
141
167
  );
142
168
  }, ie = D(Tt), Dt = ({
143
169
  data: n,
144
- onSelected: r,
170
+ onSelected: s,
145
171
  selectedId: o = "",
146
172
  title: i
147
173
  }) => {
148
- const { spending: c } = w(), s = n.categoryData.find((e) => e.guid === o);
149
- return /* @__PURE__ */ d(b, { direction: "column", justifyContent: "center", maxWidth: 400, minWidth: 275, width: "100%", children: [
174
+ const { spending: c } = w(), r = n.categoryData.find((e) => e.guid === o);
175
+ return /* @__PURE__ */ d(S, { direction: "column", justifyContent: "center", maxWidth: 400, minWidth: 275, width: "100%", children: [
150
176
  /* @__PURE__ */ t(y, { bold: !0, sx: { py: 12 }, children: `${i} ${c.by_category}` }),
151
177
  /* @__PURE__ */ t(B, { "aria-hidden": "true" }),
152
178
  /* @__PURE__ */ t(Y, { children: n.categoryData.map((e) => /* @__PURE__ */ d(a.Fragment, { children: [
@@ -159,10 +185,10 @@ const R = ({ amount: n, label: r }) => /* @__PURE__ */ d(b, { direction: "column
159
185
  minHeight: 44
160
186
  },
161
187
  children: /* @__PURE__ */ d(
162
- Ct,
188
+ _t,
163
189
  {
164
- "aria-expanded": s?.guid === e.guid,
165
- onClick: () => r(e.guid),
190
+ "aria-expanded": r?.guid === e.guid,
191
+ onClick: () => s(e.guid),
166
192
  sx: { minHeight: 44, px: 8, py: 0 },
167
193
  children: [
168
194
  /* @__PURE__ */ t(
@@ -176,7 +202,7 @@ const R = ({ amount: n, label: r }) => /* @__PURE__ */ d(b, { direction: "column
176
202
  }
177
203
  ),
178
204
  /* @__PURE__ */ d(
179
- b,
205
+ S,
180
206
  {
181
207
  alignItems: "center",
182
208
  direction: "row",
@@ -194,8 +220,8 @@ const R = ({ amount: n, label: r }) => /* @__PURE__ */ d(b, { direction: "column
194
220
  }
195
221
  ),
196
222
  /* @__PURE__ */ t(B, {}),
197
- e.categoryTotals && e.categoryTotals.length > 0 && /* @__PURE__ */ t(_t, { in: s?.guid === e.guid, unmountOnExit: !0, children: /* @__PURE__ */ d(Y, { children: [
198
- s?.categoryTotals?.map((l) => /* @__PURE__ */ t(
223
+ e.categoryTotals && e.categoryTotals.length > 0 && /* @__PURE__ */ t(bt, { in: r?.guid === e.guid, unmountOnExit: !0, children: /* @__PURE__ */ d(Y, { children: [
224
+ r?.categoryTotals?.map((l) => /* @__PURE__ */ t(
199
225
  q,
200
226
  {
201
227
  sx: {
@@ -203,7 +229,7 @@ const R = ({ amount: n, label: r }) => /* @__PURE__ */ d(b, { direction: "column
203
229
  pr: 8,
204
230
  py: 0
205
231
  },
206
- children: /* @__PURE__ */ d(b, { direction: "row", justifyContent: "space-between", width: "100%", children: [
232
+ children: /* @__PURE__ */ d(S, { direction: "row", justifyContent: "space-between", width: "100%", children: [
207
233
  /* @__PURE__ */ d(y, { children: [
208
234
  l.name,
209
235
  " "
@@ -218,16 +244,16 @@ const R = ({ amount: n, label: r }) => /* @__PURE__ */ d(b, { direction: "column
218
244
  ] }, e.guid)) }),
219
245
  /* @__PURE__ */ t(y, { bold: !0, sx: { mt: 12, pr: 8, textAlign: "right" }, children: `${c.total}: ${E(n.totalAmount, "0,0")}` })
220
246
  ] });
221
- }, wt = D(Dt), vt = ({
247
+ }, wt = D(Dt), xt = ({
222
248
  data: n,
223
- onSelected: r,
249
+ onSelected: s,
224
250
  onViewTransactions: o,
225
251
  selectedId: i,
226
252
  title: c
227
253
  }) => {
228
- const { isDesktop: s, isMobile: e } = yt(), { isLoadingCategoryTotals: l } = j(), { spending: u } = w();
254
+ const { isDesktop: r, isMobile: e } = yt(), { isLoadingCategoryTotals: l } = j(), { spending: u } = w();
229
255
  return /* @__PURE__ */ d(
230
- b,
256
+ S,
231
257
  {
232
258
  alignItems: e ? "center" : "flex-start",
233
259
  direction: e ? "column" : "row",
@@ -247,7 +273,7 @@ const R = ({ amount: n, label: r }) => /* @__PURE__ */ d(b, { direction: "column
247
273
  onSelected: () => {
248
274
  },
249
275
  selectedId: "",
250
- size: s ? 400 : 300,
276
+ size: r ? 400 : 300,
251
277
  totalLabel: "Loading ...",
252
278
  variant: "full"
253
279
  }
@@ -256,19 +282,19 @@ const R = ({ amount: n, label: r }) => /* @__PURE__ */ d(b, { direction: "column
256
282
  N,
257
283
  {
258
284
  data: n,
259
- onSelected: r,
285
+ onSelected: s,
260
286
  onViewTransactions: o,
261
287
  selectedId: i,
262
- size: s ? 400 : 300,
288
+ size: r ? 400 : 300,
263
289
  totalLabel: u.total_amount,
264
290
  variant: "full"
265
291
  }
266
292
  ),
267
- /* @__PURE__ */ t(wt, { data: n, onSelected: r, selectedId: i, title: c })
293
+ /* @__PURE__ */ t(wt, { data: n, onSelected: s, selectedId: i, title: c })
268
294
  ]
269
295
  }
270
296
  );
271
- }, Z = D(vt), xt = (n) => [
297
+ }, Z = D(xt), vt = (n) => [
272
298
  n.palette.chartMono.chartMono5,
273
299
  n.palette.chartMono.chartMono4,
274
300
  n.palette.chartMono.chartMono3,
@@ -276,7 +302,7 @@ const R = ({ amount: n, label: r }) => /* @__PURE__ */ d(b, { direction: "column
276
302
  n.palette.chartMono.chartMono1,
277
303
  n.palette.chartMono.chartMono6
278
304
  ], Lt = () => {
279
- const n = mt(), { clientConfig: r } = st(), { categories: o, dateRangeCategoryTotals: i, loadDateRangeCategoryTotals: c } = j(), { goals: s, spending: e } = w(), { displayedDateRange: l, selectedAccounts: u, selectedAccountGuids: m } = O(), { setFilter: p, sortedTransactions: C } = gt(), M = r?.master?.deep_link_params?.account_guids, S = r?.master?.deep_link_params?.view, [h, A] = a.useState(""), [_, v] = a.useState(S === "income" ? 1 : 0), [I, F] = a.useState(""), [rt, V] = a.useState(!1);
305
+ const n = mt(), { clientConfig: s } = rt(), { categories: o, dateRangeCategoryTotals: i, loadDateRangeCategoryTotals: c } = j(), { goals: r, spending: e } = w(), { displayedDateRange: l, selectedAccounts: u, selectedAccountGuids: m } = O(), { setFilter: p, sortedTransactions: h } = gt(), M = s?.master?.deep_link_params?.account_guids, C = s?.master?.deep_link_params?.view, [f, A] = a.useState(""), [_, x] = a.useState(C === "income" ? 1 : 0), [I, F] = a.useState(""), [st, V] = a.useState(!1);
280
306
  a.useEffect(() => {
281
307
  c(
282
308
  u,
@@ -285,40 +311,40 @@ const R = ({ amount: n, label: r }) => /* @__PURE__ */ d(b, { direction: "column
285
311
  ).finally();
286
312
  }, [u, l]);
287
313
  const $ = a.useMemo(
288
- () => ot(o, s, n, i),
314
+ () => ot(o, r, n, i),
289
315
  [o, i]
290
316
  ), P = a.useMemo(
291
- () => at(o, i, xt(n)),
317
+ () => at(o, i, vt(n)),
292
318
  [o, i]
293
319
  ), k = a.useMemo(
294
- () => C.find((g) => g.guid === I),
295
- [I, C]
296
- ), ct = (g, x) => {
297
- v(x), A("");
320
+ () => h.find((g) => g.guid === I),
321
+ [I, h]
322
+ ), ct = (g, v) => {
323
+ x(v), A("");
298
324
  }, H = (g) => {
299
- A(h === g || g === "0" ? "" : g);
325
+ A(f === g || g === "0" ? "" : g);
300
326
  }, K = (g) => {
301
- const x = {
327
+ const v = {
302
328
  accounts: M || m,
303
329
  dateRange: l
304
330
  };
305
331
  if (_ === 0)
306
332
  if (g === "other") {
307
- const f = $.categoryData.find((G) => G.guid === "other");
333
+ const b = $.categoryData.find((G) => G.guid === "other");
308
334
  p({
309
- ...x,
310
- custom: (G) => !!f?.categoryTotals?.find((lt) => lt.guid === G.top_level_category_guid)
335
+ ...v,
336
+ custom: (G) => !!b?.categoryTotals?.find((lt) => lt.guid === G.top_level_category_guid)
311
337
  });
312
338
  } else
313
339
  p({
314
- ...x,
315
- custom: (f) => g ? f.top_level_category_guid === g : f.top_level_category_guid !== L.INCOME && f.top_level_category_guid !== L.INVESTMENTS && f.top_level_category_guid !== L.TRANSFER,
340
+ ...v,
341
+ custom: (b) => g ? b.top_level_category_guid === g : b.top_level_category_guid !== L.INCOME && b.top_level_category_guid !== L.INVESTMENTS && b.top_level_category_guid !== L.TRANSFER,
316
342
  showSplits: !!g
317
343
  });
318
344
  else
319
345
  p({
320
- ...x,
321
- custom: (f) => g ? f.category_guid === g : f.category_guid === L.INCOME || f.top_level_category_guid === L.INCOME
346
+ ...v,
347
+ custom: (b) => g ? b.category_guid === g : b.category_guid === L.INCOME || b.top_level_category_guid === L.INCOME
322
348
  });
323
349
  V(!0);
324
350
  };
@@ -355,7 +381,7 @@ const R = ({ amount: n, label: r }) => /* @__PURE__ */ d(b, { direction: "column
355
381
  data: $,
356
382
  onSelected: H,
357
383
  onViewTransactions: K,
358
- selectedId: h,
384
+ selectedId: f,
359
385
  title: e.spend_tab_title
360
386
  }
361
387
  ),
@@ -365,7 +391,7 @@ const R = ({ amount: n, label: r }) => /* @__PURE__ */ d(b, { direction: "column
365
391
  data: P,
366
392
  onSelected: H,
367
393
  onViewTransactions: K,
368
- selectedId: h,
394
+ selectedId: f,
369
395
  title: e.income_tab_title
370
396
  }
371
397
  ),
@@ -373,7 +399,7 @@ const R = ({ amount: n, label: r }) => /* @__PURE__ */ d(b, { direction: "column
373
399
  J,
374
400
  {
375
401
  ariaLabelClose: e.close_drawer_aria,
376
- isOpen: rt,
402
+ isOpen: st,
377
403
  onClose: () => V(!1),
378
404
  title: e.transactions_drawer_title,
379
405
  children: /* @__PURE__ */ t(ht, { onClick: F })
@@ -390,30 +416,30 @@ const R = ({ amount: n, label: r }) => /* @__PURE__ */ d(b, { direction: "column
390
416
  }
391
417
  )
392
418
  ] });
393
- }, At = D(Lt), It = ({ onBackClick: n, sx: r = {} }) => {
394
- const { visibleAccounts: o } = it(), { spending: i } = w(), { isCopyLoaded: c, isInitialized: s, setDisplayedDate: e, setSelectedAccounts: l } = O(), { onEvent: u } = pt(), { clientConfig: m } = st(), p = m?.master?.deep_link_params?.date_range, [C, M] = a.useState(!1);
419
+ }, At = D(Lt), It = ({ onBackClick: n, sx: s = {} }) => {
420
+ const { visibleAccounts: o } = it(), { spending: i } = w(), { isCopyLoaded: c, isInitialized: r, setDisplayedDate: e, setSelectedAccounts: l } = O(), { onEvent: u } = pt(), { clientConfig: m } = rt(), p = m?.master?.deep_link_params?.date_range, [h, M] = a.useState(!1);
395
421
  a.useEffect(() => {
396
422
  l(o);
397
423
  }, [o]), a.useEffect(() => {
398
424
  p && Array.isArray(p) && p.length === 2 ? e(p[0], p[1]) : e(tt(X()), et(X())), M(!0), u(Q.SPENDING_VIEW);
399
425
  }, []);
400
- const S = (h) => {
401
- e(h[0], h[1]);
426
+ const C = (f) => {
427
+ e(f[0], f[1]);
402
428
  };
403
- return !c || !s || !C ? /* @__PURE__ */ t(z, {}) : /* @__PURE__ */ t(
404
- St,
429
+ return !c || !r || !h ? /* @__PURE__ */ t(z, {}) : /* @__PURE__ */ t(
430
+ Ct,
405
431
  {
406
432
  accountOptions: o,
407
- calendarActions: { onRangeChanged: S },
433
+ calendarActions: { onRangeChanged: C },
408
434
  onAccountsFilterClick: () => u(Q.SPENDING_CLICK_FILTER),
409
435
  onBackClick: n,
410
- sx: r,
436
+ sx: s,
411
437
  title: i.title,
412
438
  children: /* @__PURE__ */ t(T, { height: "calc(100dvh - 150px)", overflow: "scroll", width: "100%", children: /* @__PURE__ */ t(At, {}) })
413
439
  }
414
440
  );
415
- }, se = D(It);
441
+ }, re = D(It);
416
442
  export {
417
443
  ie as SpendingMiniWidget,
418
- se as SpendingWidget
444
+ re as SpendingWidget
419
445
  };