@mx-cartographer/experiences 7.5.0 → 7.5.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.
@@ -1,43 +1,43 @@
1
- import { jsxs as d, jsx as t } from "react/jsx-runtime";
2
- import o from "react";
1
+ import { jsx as e, jsxs as l } from "react/jsx-runtime";
2
+ import c from "react";
3
3
  import { observer as ce } from "mobx-react-lite";
4
- import $ from "@mui/material/Box";
5
- import M from "@mui/material/Button";
4
+ import z from "@mui/material/Box";
5
+ import W from "@mui/material/Button";
6
6
  import re from "@mui/material/Card";
7
7
  import oe from "@mui/material/CardContent";
8
8
  import se from "@mui/material/CardHeader";
9
- import q from "@mui/material/Divider";
10
- import z from "@mui/material/IconButton";
11
- import Y from "@mui/material/Stack";
9
+ import J from "@mui/material/Divider";
10
+ import $ from "@mui/material/IconButton";
11
+ import F from "@mui/material/Stack";
12
12
  import { ChevronLeft as le } from "@mxenabled/mx-icons";
13
- import { Icon as T, Text as X, DateRangePicker as J, H1 as Ce, H3 as de } from "@mxenabled/mxui";
13
+ import { Icon as A, Text as Z, DateRangePicker as Q, H1 as Ce, H3 as de } from "@mxenabled/mxui";
14
14
  import { u as Te } from "./useDimensions-27p2evRx.mjs";
15
15
  import { L as Ie } from "./Loader-DUaFpDGv.mjs";
16
- import { g as Ee, b as Re, u as ge, a as Ae, W as Se } from "./hooks-ZMp65DFz.mjs";
17
- import { u as ie } from "./useScreenSize-B6JyS_Lj.mjs";
18
- import { addMonths as Q } from "date-fns/addMonths";
19
- import { addDays as ue } from "date-fns/addDays";
20
- import { addYears as ee } from "date-fns/addYears";
16
+ import { g as Ee, b as Re, u as ge, a as Ae, W as ue } from "./hooks-ZMp65DFz.mjs";
17
+ import { u as ne } from "./useScreenSize-B6JyS_Lj.mjs";
18
+ import { addMonths as ee } from "date-fns/addMonths";
19
+ import { addDays as Se } from "date-fns/addDays";
20
+ import { addYears as te } from "date-fns/addYears";
21
21
  import { differenceInCalendarDays as Ne } from "date-fns/differenceInCalendarDays";
22
22
  import { endOfDay as me } from "date-fns/endOfDay";
23
- import { endOfMonth as V } from "date-fns/endOfMonth";
24
- import { endOfToday as te } from "date-fns/endOfToday";
23
+ import { endOfMonth as H } from "date-fns/endOfMonth";
24
+ import { endOfToday as _e } from "date-fns/endOfToday";
25
25
  import { endOfYear as Le } from "date-fns/endOfYear";
26
26
  import { startOfMonth as De } from "date-fns/startOfMonth";
27
27
  import { startOfToday as pe } from "date-fns/startOfToday";
28
28
  import { startOfYear as ke } from "date-fns/startOfYear";
29
- import { subMonths as j } from "date-fns/subMonths";
29
+ import { subMonths as q } from "date-fns/subMonths";
30
30
  import { subDays as he } from "date-fns/subDays";
31
- import { subYears as _e } from "date-fns/subYears";
31
+ import { subYears as ae } from "date-fns/subYears";
32
32
  import Oe from "@mui/material/ButtonGroup";
33
33
  import fe from "@mui/material/Tab";
34
34
  import be from "@mui/material/Tabs";
35
35
  import we from "@mui/material/ToggleButton";
36
36
  import Ke from "@mui/material/ToggleButtonGroup";
37
37
  import Ge from "@mui/material/styles/useTheme";
38
- import { f as K, a as G, D as Me } from "./Dialog-BPTr3qHE.mjs";
38
+ import { f as O, a as f, D as Me } from "./Dialog-BPTr3qHE.mjs";
39
39
  import { D as We } from "./Drawer-By9V-B5L.mjs";
40
- import { k as ye, l as xe } from "./ConnectDrawer-BkvlItWx.mjs";
40
+ import { k as xe, l as ye } from "./ConnectDrawer-BkvlItWx.mjs";
41
41
  const ve = {
42
42
  ACCOUNTS_CLICK_ACCOUNT: "accounts_widget_click_account",
43
43
  ACCOUNTS_CLICK_CONNECT: "accounts_widget_click_connect_accounts",
@@ -158,15 +158,43 @@ const ve = {
158
158
  TRENDS_HOVER_LEGEND: "trends_hover_ChartLegend",
159
159
  TRENDS_LOAD_WIDGET: "trends_load_widget",
160
160
  TRENDS_VIEW_TRANSACTIONS: "trends_view_transactions"
161
+ }, Pe = (i = "polite") => {
162
+ const [E, a] = c.useState(""), [C, u] = c.useState(i), n = c.useCallback((S, N) => {
163
+ N && u(N), a(S);
164
+ }, []), b = c.useMemo(
165
+ () => /* @__PURE__ */ e(
166
+ z,
167
+ {
168
+ "aria-atomic": "true",
169
+ "aria-live": C,
170
+ role: C === "assertive" ? "alert" : "status",
171
+ sx: {
172
+ position: "absolute",
173
+ width: "1px",
174
+ height: "1px",
175
+ padding: 0,
176
+ margin: "-1px",
177
+ overflow: "hidden",
178
+ clip: "rect(0 0 0 0)",
179
+ clipPath: "inset(50%)",
180
+ whiteSpace: "nowrap",
181
+ border: 0
182
+ },
183
+ children: E
184
+ }
185
+ ),
186
+ [E, C]
187
+ );
188
+ return { announce: n, ariaLive: b };
161
189
  }, Ue = ({
162
- calendarActions: a,
163
- color: N = "primary",
164
- copy: _,
165
- range: m = [De(pe()), V(te())],
166
- shouldShrinkToIcon: L = !0,
190
+ calendarActions: i,
191
+ color: E = "primary",
192
+ copy: a,
193
+ range: C = [De(pe()), H(_e())],
194
+ shouldShrinkToIcon: u = !0,
167
195
  variant: n = "outlined"
168
196
  }) => {
169
- const W = Ge(), { isMobile: D } = ie(), [s, f] = o.useState(m), [c, H] = o.useState(_.dateRangePickerCopy.dateRangeThisMonth), [r, b] = o.useState(s), [p, k] = o.useState(!1), [F, y] = o.useState(!0), [h, l] = o.useState(6), C = {
197
+ const b = Ge(), { isMobile: S } = ne(), { announce: N, ariaLive: x } = Pe(), [p, K] = c.useState(C), [o, y] = c.useState(a.dateRangePickerCopy.dateRangeThisMonth), [R, v] = c.useState(p), [G, k] = c.useState(!1), [X, g] = c.useState(!0), [s, m] = c.useState(6), M = {
170
198
  buttons: [
171
199
  { label: "3M", value: 3 },
172
200
  { label: "6M", value: 6 },
@@ -180,69 +208,69 @@ const ve = {
180
208
  { label: "1 Year", value: 12 }
181
209
  ]
182
210
  };
183
- o.useEffect(() => {
184
- f(m), b(m);
185
- }, [m]), o.useEffect(() => {
186
- (n === "timeframebuttons" || n === "timeframetabs") && a.onRangeChanged(I());
187
- }, [h]);
188
- const I = () => {
189
- const e = V(te());
190
- return [V(j(e, h)), e];
191
- }, w = (e) => {
192
- const [i, E] = s, S = e === "previous";
193
- let u;
194
- if (c === _.dateRangePickerCopy.dateRangeThisMonth || c === _.dateRangePickerCopy.dateRangeLastMonth)
195
- u = [
196
- S ? j(i, 1) : Q(i, 1),
197
- V(S ? j(E, 1) : Q(E, 1))
211
+ c.useEffect(() => {
212
+ K(C), v(C);
213
+ }, [C]), c.useEffect(() => {
214
+ (n === "timeframebuttons" || n === "timeframetabs") && i.onRangeChanged(j());
215
+ }, [s]);
216
+ const j = () => {
217
+ const _ = H(_e());
218
+ return [H(q(_, s)), _];
219
+ }, P = (_) => {
220
+ const [r, d] = p, T = _ === "previous";
221
+ let I;
222
+ if (o === a.dateRangePickerCopy.dateRangeThisMonth || o === a.dateRangePickerCopy.dateRangeLastMonth)
223
+ I = [
224
+ T ? q(r, 1) : ee(r, 1),
225
+ H(T ? q(d, 1) : ee(d, 1))
198
226
  ];
199
- else if (c === _.dateRangePickerCopy.dateRangeYTD || c === _.dateRangePickerCopy.dateRangeLastYear) {
200
- const R = ke(i), g = Le(i);
201
- u = [
202
- S ? _e(R, 1) : ee(R, 1),
203
- S ? _e(g, 1) : ee(g, 1)
227
+ else if (o === a.dateRangePickerCopy.dateRangeYTD || o === a.dateRangePickerCopy.dateRangeLastYear) {
228
+ const L = ke(r), h = Le(r);
229
+ I = [
230
+ T ? ae(L, 1) : te(L, 1),
231
+ T ? ae(h, 1) : te(h, 1)
204
232
  ];
205
233
  } else {
206
- const R = Ne(E, i), g = S ? he : ue;
207
- u = [g(i, R), g(E, R)];
234
+ const L = Ne(d, r), h = T ? he : Se;
235
+ I = [h(r, L), h(d, L)];
208
236
  }
209
- f(u), a.onRangeChanged(u);
210
- }, x = () => {
211
- f(r), y(
212
- c === _.dateRangePickerCopy.dateRangeThisMonth || c === _.dateRangePickerCopy.dateRangeLastMonth
213
- ), a.onRangeChanged(r);
214
- }, v = (e, i) => {
215
- e[1] = e[1] ?? e[0];
216
- const E = [e[0], e[1] ? me(e[1]) : e[1]];
217
- b(E), H(i);
218
- }, U = (e) => {
219
- l(e);
237
+ K(I), i.onRangeChanged(I);
238
+ }, U = () => {
239
+ K(R), g(
240
+ o === a.dateRangePickerCopy.dateRangeThisMonth || o === a.dateRangePickerCopy.dateRangeLastMonth
241
+ ), i.onRangeChanged(R);
242
+ }, t = (_, r) => {
243
+ _[1] = _[1] ?? _[0];
244
+ const d = [_[0], _[1] ? me(_[1]) : _[1]], T = O(d[0], f.MONTH_DAY_YEAR), I = O(d[1], f.MONTH_DAY_YEAR);
245
+ v(d), y(r), N(`${a.dateRangePickerCopy}: ${T} - ${I}`);
246
+ }, B = (_) => {
247
+ m(_);
220
248
  };
221
- return /* @__PURE__ */ d($, { className: "mx-cmn-date-range-selector", m: 4, children: [
222
- /* @__PURE__ */ d(
223
- $,
249
+ return /* @__PURE__ */ l(z, { className: "mx-cmn-date-range-selector", m: 4, children: [
250
+ /* @__PURE__ */ l(
251
+ z,
224
252
  {
225
253
  sx: {
226
- [W.breakpoints.down("sm")]: {
227
- display: L ? "none" : "flex",
254
+ [b.breakpoints.down("sm")]: {
255
+ display: u ? "none" : "flex",
228
256
  justifyContent: "center"
229
257
  },
230
- [W.breakpoints.up("sm")]: { display: "inline-flex" }
258
+ [b.breakpoints.up("sm")]: { display: "inline-flex" }
231
259
  },
232
260
  children: [
233
- n === "readonly" && /* @__PURE__ */ d(Y, { alignItems: "center", direction: "row", gap: 8, children: [
234
- /* @__PURE__ */ t(T, { name: "calendar_month", size: 24 }),
235
- /* @__PURE__ */ t(X, { bold: !0, children: K(r[0], G.MONTH_DAY) }),
236
- /* @__PURE__ */ t(T, { name: "remove" }),
237
- /* @__PURE__ */ t(X, { bold: !0, children: K(r[1], G.MONTH_DAY_YEAR) })
261
+ n === "readonly" && /* @__PURE__ */ l(F, { alignItems: "center", direction: "row", gap: 8, children: [
262
+ /* @__PURE__ */ e(A, { name: "calendar_month", size: 24 }),
263
+ /* @__PURE__ */ e(Z, { bold: !0, children: O(R[0], f.MONTH_DAY) }),
264
+ /* @__PURE__ */ e(A, { name: "remove" }),
265
+ /* @__PURE__ */ e(Z, { bold: !0, children: O(R[1], f.MONTH_DAY_YEAR) })
238
266
  ] }),
239
- n !== "readonly" && n !== "timeframebuttons" && n !== "timeframetabs" && /* @__PURE__ */ d(
267
+ n !== "readonly" && n !== "timeframebuttons" && n !== "timeframetabs" && /* @__PURE__ */ l(
240
268
  Oe,
241
269
  {
242
- color: N,
270
+ color: E,
243
271
  sx: {
244
272
  "& .MuiButtonGroup-grouped": {
245
- padding: D ? 0 : 12
273
+ padding: S ? 0 : 12
246
274
  },
247
275
  "& .MuiButtonGroup-middleButton": {
248
276
  px: 24
@@ -251,315 +279,322 @@ const ve = {
251
279
  },
252
280
  variant: n,
253
281
  children: [
254
- /* @__PURE__ */ t(
255
- M,
282
+ /* @__PURE__ */ e(
283
+ W,
256
284
  {
257
- "aria-disabled": a.shouldDisablePrevious,
258
- "aria-label": _.dateRangePreviousAria,
259
- color: a.shouldDisablePrevious ? "secondary" : "primary",
260
- onClick: () => a.shouldDisablePrevious ? null : w("previous"),
261
- children: /* @__PURE__ */ t(T, { name: "chevron_left", size: 20 })
285
+ "aria-disabled": i.shouldDisablePrevious,
286
+ "aria-label": a.dateRangePreviousAria,
287
+ color: i.shouldDisablePrevious ? "secondary" : "primary",
288
+ onClick: () => i.shouldDisablePrevious ? null : P("previous"),
289
+ children: /* @__PURE__ */ e(A, { name: "chevron_left", size: 20 })
262
290
  }
263
291
  ),
264
- /* @__PURE__ */ t(
265
- M,
292
+ /* @__PURE__ */ e(
293
+ W,
266
294
  {
267
- "aria-disabled": a.shouldDisablePicker,
268
- color: N,
269
- onClick: () => a.shouldDisablePicker ? null : k(!0),
270
- startIcon: /* @__PURE__ */ t(T, { name: "calendar_month", size: 20 }),
295
+ "aria-disabled": i.shouldDisablePicker,
296
+ color: E,
297
+ onClick: () => i.shouldDisablePicker ? null : k(!0),
298
+ startIcon: /* @__PURE__ */ e(A, { name: "calendar_month", size: 20 }),
271
299
  sx: {
272
- p: D ? 0 : 8
300
+ p: S ? 0 : 8
273
301
  },
274
- children: F ? K(s[0], G.MONTH_YEAR) : /* @__PURE__ */ d("span", { children: [
275
- K(s[0], G.MONTH_DAY_YEAR),
302
+ children: X ? O(p[0], f.MONTH_YEAR) : /* @__PURE__ */ l("span", { children: [
303
+ O(p[0], f.MONTH_DAY_YEAR),
276
304
  " -",
277
305
  " ",
278
- K(s[1], G.MONTH_DAY_YEAR)
306
+ O(p[1], f.MONTH_DAY_YEAR)
279
307
  ] })
280
308
  }
281
309
  ),
282
- /* @__PURE__ */ t(
283
- M,
310
+ /* @__PURE__ */ e(
311
+ W,
284
312
  {
285
- "aria-disabled": a.shouldDisableNext,
286
- "aria-label": _.dateRangeNextAria,
287
- color: a.shouldDisableNext ? "secondary" : "primary",
288
- onClick: () => a.shouldDisableNext ? null : w("next"),
289
- children: /* @__PURE__ */ t(T, { name: "chevron_right", size: 20 })
313
+ "aria-disabled": i.shouldDisableNext,
314
+ "aria-label": a.dateRangeNextAria,
315
+ color: i.shouldDisableNext ? "secondary" : "primary",
316
+ onClick: () => i.shouldDisableNext ? null : P("next"),
317
+ children: /* @__PURE__ */ e(A, { name: "chevron_right", size: 20 })
290
318
  }
291
319
  )
292
320
  ]
293
321
  }
294
322
  ),
295
- n === "timeframebuttons" && /* @__PURE__ */ t(
323
+ n === "timeframebuttons" && /* @__PURE__ */ e(
296
324
  Ke,
297
325
  {
298
- color: N,
326
+ color: E,
299
327
  exclusive: !0,
300
328
  orientation: "horizontal",
301
- value: h,
302
- children: C.buttons.map((e) => /* @__PURE__ */ t(
329
+ value: s,
330
+ children: M.buttons.map((_) => /* @__PURE__ */ e(
303
331
  we,
304
332
  {
305
- onClick: () => U(e.value),
333
+ onClick: () => B(_.value),
306
334
  sx: { width: 56 },
307
- value: e.value,
308
- children: e.label
335
+ value: _.value,
336
+ children: _.label
309
337
  },
310
- e.label
338
+ _.label
311
339
  ))
312
340
  }
313
341
  ),
314
- n === "timeframetabs" && /* @__PURE__ */ t(
342
+ n === "timeframetabs" && /* @__PURE__ */ e(
315
343
  be,
316
344
  {
317
345
  indicatorColor: "primary",
318
- onChange: (e, i) => U(i),
346
+ onChange: (_, r) => B(r),
319
347
  textColor: "primary",
320
- value: h,
348
+ value: s,
321
349
  variant: "fullWidth",
322
- children: C.tabs.map((e) => /* @__PURE__ */ t(
350
+ children: M.tabs.map((_) => /* @__PURE__ */ e(
323
351
  fe,
324
352
  {
325
- label: /* @__PURE__ */ t(X, { bold: !0, variant: "Body", children: e.label }),
353
+ label: /* @__PURE__ */ e(Z, { bold: !0, variant: "Body", children: _.label }),
326
354
  sx: { minWidth: 80 },
327
- value: e.value
355
+ value: _.value
328
356
  },
329
- e.label
357
+ _.label
330
358
  ))
331
359
  }
332
360
  )
333
361
  ]
334
362
  }
335
363
  ),
336
- p && D && /* @__PURE__ */ t(
364
+ G && S && /* @__PURE__ */ l(
337
365
  We,
338
366
  {
339
- ariaLabelClose: _.dateRangeCloseAria,
340
- isOpen: p,
367
+ ariaLabelClose: a.dateRangeCloseAria,
368
+ isOpen: G,
341
369
  onClose: () => k(!1),
342
370
  onPrimaryAction: () => {
343
- x(), k(!1);
371
+ U(), k(!1);
344
372
  },
345
- primaryText: _.dateRangeEditApply,
346
- title: _.dateRangeEditTitle,
347
- children: /* @__PURE__ */ t(
348
- J,
349
- {
350
- copy: _.dateRangePickerCopy,
351
- dateRange: r,
352
- onRangeChanged: v,
353
- selectedShortcut: c,
354
- sx: { p: 16 }
355
- }
356
- )
373
+ primaryText: a.dateRangeEditApply,
374
+ title: a.dateRangeEditTitle,
375
+ children: [
376
+ x,
377
+ /* @__PURE__ */ e(
378
+ Q,
379
+ {
380
+ copy: a.dateRangePickerCopy,
381
+ dateRange: R,
382
+ onRangeChanged: t,
383
+ selectedShortcut: o,
384
+ sx: { p: 16 }
385
+ }
386
+ )
387
+ ]
357
388
  }
358
389
  ),
359
- p && !D && /* @__PURE__ */ t(
390
+ G && !S && /* @__PURE__ */ l(
360
391
  Me,
361
392
  {
362
- copy: { title: _.dateRangeEditTitle },
393
+ copy: { title: a.dateRangeEditTitle },
363
394
  isOpen: !0,
364
395
  onClose: () => k(!1),
365
- onPrimaryAction: () => x(),
366
- primaryText: _.dateRangeEditApply,
396
+ onPrimaryAction: () => U(),
397
+ primaryText: a.dateRangeEditApply,
367
398
  sx: {
368
399
  "& .MuiDialogContent-root": {
369
400
  padding: 0
370
401
  }
371
402
  },
372
- children: /* @__PURE__ */ t(
373
- J,
374
- {
375
- copy: _.dateRangePickerCopy,
376
- dateRange: r,
377
- onRangeChanged: v,
378
- selectedShortcut: c,
379
- sx: {
380
- pt: 0,
381
- "& .MuiPickersLayout-toolbar": {
382
- gridColumn: "1/4"
403
+ children: [
404
+ x,
405
+ /* @__PURE__ */ e(
406
+ Q,
407
+ {
408
+ copy: a.dateRangePickerCopy,
409
+ dateRange: R,
410
+ onRangeChanged: t,
411
+ selectedShortcut: o,
412
+ sx: {
413
+ pt: 0,
414
+ "& .MuiPickersLayout-toolbar": {
415
+ gridColumn: "1/4"
416
+ }
383
417
  }
384
418
  }
385
- }
386
- )
419
+ )
420
+ ]
387
421
  }
388
422
  )
389
423
  ] });
390
- }, ae = Ue, Pe = ({
391
- accountOptions: a,
392
- actions: N = [],
393
- calendarActions: _,
394
- children: m,
395
- dateRange: L,
424
+ }, ie = Ue, Be = ({
425
+ accountOptions: i,
426
+ actions: E = [],
427
+ calendarActions: a,
428
+ children: C,
429
+ dateRange: u,
396
430
  dateRangeVariant: n,
397
- className: W = "mx-cmn-widget",
398
- hasDivider: D = !1,
399
- onBackClick: s,
400
- onAccountsFilterClick: f,
401
- showDividerAboveDateSelector: c = !0,
402
- sx: H = {},
403
- title: r = ""
431
+ className: b = "mx-cmn-widget",
432
+ hasDivider: S = !1,
433
+ onBackClick: N,
434
+ onAccountsFilterClick: x,
435
+ showDividerAboveDateSelector: p = !0,
436
+ sx: K = {},
437
+ title: o = ""
404
438
  }) => {
405
- const [b, p] = o.useState(!1), [k, { height: F, width: y }] = Te(), { onEvent: h } = Ee(), { isDesktop: l, isMobile: C, isTablet: I } = ie(y), { displayedDateRange: w, isCopyLoaded: x, selectedAccountGuids: v, setSelectedAccountGuids: U } = Re(), { common: e, connect: i } = ge(), { config: E } = Ae(), S = () => {
406
- s && (s(), h(ve.WIDGET_BACK_CLICK));
439
+ const [y, R] = c.useState(!1), [v, { height: G, width: k }] = Te(), { onEvent: X } = Ee(), { isDesktop: g, isMobile: s, isTablet: m } = ne(k), { displayedDateRange: M, isCopyLoaded: j, selectedAccountGuids: P, setSelectedAccountGuids: U } = Re(), { common: t, connect: B } = ge(), { config: _ } = Ae(), r = () => {
440
+ N && (N(), X(ve.WIDGET_BACK_CLICK));
407
441
  };
408
- if (!x)
409
- return /* @__PURE__ */ t(Ie, {});
410
- const u = {
442
+ if (!j)
443
+ return /* @__PURE__ */ e(Ie, {});
444
+ const d = {
411
445
  accountFilterOptionsCopy: {
412
- accountTypeAccounts: e.account_filter.account_type_accounts,
413
- cancelButton: e.cancel_button,
414
- filterButton: e.filter_button,
415
- filterButtonAria: e.account_filter.filter_button_generic_aria,
416
- selectAllAccounts: e.account_filter.select_all_accounts,
417
- toggleAccountTypeAccounts: e.account_filter.toggle_account_type_accounts,
418
- unselectAllAccounts: e.account_filter.unselect_all_accounts,
419
- zeroStateButton: e.account_filter.zero_state_button,
420
- zeroStateDescription: e.account_filter.zero_state_description,
421
- zeroStateTitle: e.account_filter.zero_state_title
446
+ accountTypeAccounts: t.account_filter.account_type_accounts,
447
+ cancelButton: t.cancel_button,
448
+ filterButton: t.filter_button,
449
+ filterButtonAria: t.account_filter.filter_button_generic_aria,
450
+ selectAllAccounts: t.account_filter.select_all_accounts,
451
+ toggleAccountTypeAccounts: t.account_filter.toggle_account_type_accounts,
452
+ unselectAllAccounts: t.account_filter.unselect_all_accounts,
453
+ zeroStateButton: t.account_filter.zero_state_button,
454
+ zeroStateDescription: t.account_filter.zero_state_description,
455
+ zeroStateTitle: t.account_filter.zero_state_title
422
456
  },
423
- title: e.account_filter.title
424
- }, R = {
457
+ title: t.account_filter.title
458
+ }, T = {
425
459
  dateRangePickerCopy: {
426
- dateRangeFrom: e.date_range_picker.from,
427
- dateRangeTo: e.date_range_picker.to,
428
- dateRangeCustom: e.date_range_picker.custom,
429
- dateRangeSelectARange: e.date_range_picker.select_range,
430
- dateRangeThisMonth: e.date_range_picker.this_month,
431
- dateRangeLastMonth: e.date_range_picker.last_month,
432
- dateRangeLast30Days: e.date_range_picker.last_30_days,
433
- dateRangeLast90Days: e.date_range_picker.last_90_days,
434
- dateRangeYTD: e.date_range_picker.ytd,
435
- dateRangeLastYear: e.date_range_picker.last_year,
436
- dateRangeSelect: e.date_range_picker.select
460
+ dateRangeFrom: t.date_range_picker.from,
461
+ dateRangeTo: t.date_range_picker.to,
462
+ dateRangeCustom: t.date_range_picker.custom,
463
+ dateRangeSelectARange: t.date_range_picker.select_range,
464
+ dateRangeThisMonth: t.date_range_picker.this_month,
465
+ dateRangeLastMonth: t.date_range_picker.last_month,
466
+ dateRangeLast30Days: t.date_range_picker.last_30_days,
467
+ dateRangeLast90Days: t.date_range_picker.last_90_days,
468
+ dateRangeYTD: t.date_range_picker.ytd,
469
+ dateRangeLastYear: t.date_range_picker.last_year,
470
+ dateRangeSelect: t.date_range_picker.select
437
471
  },
438
- dateRangeEditApply: e.date_range_picker.edit_apply,
439
- dateRangeEditTitle: e.date_range_picker.edit_title,
440
- dateRangeNextAria: e.date_range_picker.next_aria,
441
- dateRangePreviousAria: e.date_range_picker.previous_aria
442
- }, g = L ? L.start : w.start, Z = L ? L.end : w.end, ne = N?.length > 1;
443
- return /* @__PURE__ */ d(
472
+ dateRangeEditApply: t.date_range_picker.edit_apply,
473
+ dateRangeEditTitle: t.date_range_picker.edit_title,
474
+ dateRangeNextAria: t.date_range_picker.next_aria,
475
+ dateRangePreviousAria: t.date_range_picker.previous_aria
476
+ }, I = u ? u.start : M.start, L = u ? u.end : M.end, h = E?.length > 1;
477
+ return /* @__PURE__ */ l(
444
478
  re,
445
479
  {
446
- className: W,
480
+ className: b,
447
481
  sx: {
448
- ...C && { px: 4 },
482
+ ...s && { px: 4 },
449
483
  "& .mx-cmn-date-range-selector": {
450
- ...(C || I) && { textAlign: "center" }
484
+ ...(s || m) && { textAlign: "center" }
451
485
  },
452
- ...H
486
+ ...K
453
487
  },
454
488
  children: [
455
- r && /* @__PURE__ */ t(
489
+ o && /* @__PURE__ */ e(
456
490
  se,
457
491
  {
458
- action: /* @__PURE__ */ d(Y, { alignItems: "center", flexDirection: "row", children: [
459
- l && _ && /* @__PURE__ */ t($, { sx: { flexGrow: 1 }, children: /* @__PURE__ */ t(
460
- ae,
492
+ action: /* @__PURE__ */ l(F, { alignItems: "center", flexDirection: "row", children: [
493
+ g && a && /* @__PURE__ */ e(z, { sx: { flexGrow: 1 }, children: /* @__PURE__ */ e(
494
+ ie,
461
495
  {
462
- calendarActions: _,
463
- copy: R,
464
- range: [g, Z],
496
+ calendarActions: a,
497
+ copy: T,
498
+ range: [I, L],
465
499
  shouldShrinkToIcon: !1,
466
500
  variant: n
467
501
  }
468
502
  ) }),
469
- a && /* @__PURE__ */ t(
470
- ye,
503
+ i && /* @__PURE__ */ e(
504
+ xe,
471
505
  {
472
- accounts: a,
473
- copy: u,
474
- onConnectAccountClick: E.show_connections_widget_in_master ? () => p(!0) : void 0,
475
- onFilterClick: (O) => {
476
- U(O), f?.(O);
506
+ accounts: i,
507
+ copy: d,
508
+ onConnectAccountClick: _.show_connections_widget_in_master ? () => R(!0) : void 0,
509
+ onFilterClick: (w) => {
510
+ U(w), x?.(w);
477
511
  },
478
- selectedAccountGuids: v,
512
+ selectedAccountGuids: P,
479
513
  showAccountNumbers: !1,
480
514
  variant: "text"
481
515
  }
482
516
  ),
483
- N?.map((O) => {
484
- if (o.isValidElement(O)) return O;
485
- const { iconName: A, onClick: P, label: B } = O;
486
- return ne ? l || I ? /* @__PURE__ */ t(
487
- M,
517
+ E?.map((w) => {
518
+ if (c.isValidElement(w)) return w;
519
+ const { iconName: D, onClick: V, label: Y } = w;
520
+ return h ? g || m ? /* @__PURE__ */ e(
521
+ W,
488
522
  {
489
- onClick: P,
490
- startIcon: /* @__PURE__ */ t(T, { name: A, size: 24 }),
523
+ onClick: V,
524
+ startIcon: /* @__PURE__ */ e(A, { name: D, size: 24 }),
491
525
  sx: { my: 4 },
492
- children: B
526
+ children: Y
493
527
  },
494
- A
495
- ) : /* @__PURE__ */ t(z, { "aria-label": B, color: "primary", onClick: P, children: /* @__PURE__ */ t(T, { name: A, size: 24 }) }, A) : l || I ? /* @__PURE__ */ t(
496
- M,
528
+ D
529
+ ) : /* @__PURE__ */ e($, { "aria-label": Y, color: "primary", onClick: V, children: /* @__PURE__ */ e(A, { name: D, size: 24 }) }, D) : g || m ? /* @__PURE__ */ e(
530
+ W,
497
531
  {
498
- onClick: P,
499
- startIcon: /* @__PURE__ */ t(T, { name: A, size: 24 }),
532
+ onClick: V,
533
+ startIcon: /* @__PURE__ */ e(A, { name: D, size: 24 }),
500
534
  sx: { my: 4 },
501
- children: B
535
+ children: Y
502
536
  },
503
- A
504
- ) : /* @__PURE__ */ t(z, { "aria-label": B, color: "primary", onClick: P, children: /* @__PURE__ */ t(T, { name: A, size: 24 }) }, A);
537
+ D
538
+ ) : /* @__PURE__ */ e($, { "aria-label": Y, color: "primary", onClick: V, children: /* @__PURE__ */ e(A, { name: D, size: 24 }) }, D);
505
539
  })
506
540
  ] }),
507
541
  sx: {
508
- p: l ? 48 : 24,
542
+ p: g ? 48 : 24,
509
543
  pb: 0,
510
544
  "& .MuiCardHeader-action": {
511
545
  mr: 0,
512
- ..._ && l && { flexGrow: 1 },
513
- ...(C || I) && { alignSelf: "center" }
546
+ ...a && g && { flexGrow: 1 },
547
+ ...(s || m) && { alignSelf: "center" }
514
548
  },
515
549
  "& .MuiCardHeader-content": {
516
550
  overflow: "hidden"
517
551
  }
518
552
  },
519
- title: l || I ? /* @__PURE__ */ t(Ce, { children: r }) : /* @__PURE__ */ d(Y, { alignItems: "center", flexDirection: "row", sx: { overflow: "hidden" }, children: [
520
- C && s && /* @__PURE__ */ t(
521
- z,
553
+ title: g || m ? /* @__PURE__ */ e(Ce, { children: o }) : /* @__PURE__ */ l(F, { alignItems: "center", flexDirection: "row", sx: { overflow: "hidden" }, children: [
554
+ s && N && /* @__PURE__ */ e(
555
+ $,
522
556
  {
523
- "aria-label": e.back_to_dashboard,
557
+ "aria-label": t.back_to_dashboard,
524
558
  color: "primary",
525
- onClick: S,
559
+ onClick: r,
526
560
  sx: { p: 12, mr: 4 },
527
- children: /* @__PURE__ */ t(le, { size: 24 })
561
+ children: /* @__PURE__ */ e(le, { size: 24 })
528
562
  }
529
563
  ),
530
- /* @__PURE__ */ t(de, { children: r })
564
+ /* @__PURE__ */ e(de, { children: o })
531
565
  ] })
532
566
  }
533
567
  ),
534
- D && /* @__PURE__ */ t(q, { sx: { mt: l ? 48 : 24 } }),
535
- _ && (C || I) && /* @__PURE__ */ d(Y, { gap: 24, justifyContent: "center", sx: { mt: C ? 0 : 16 }, children: [
536
- c && /* @__PURE__ */ t(q, {}),
537
- /* @__PURE__ */ t(
538
- ae,
568
+ S && /* @__PURE__ */ e(J, { sx: { mt: g ? 48 : 24 } }),
569
+ a && (s || m) && /* @__PURE__ */ l(F, { gap: 24, justifyContent: "center", sx: { mt: s ? 0 : 16 }, children: [
570
+ p && /* @__PURE__ */ e(J, {}),
571
+ /* @__PURE__ */ e(
572
+ ie,
539
573
  {
540
- calendarActions: _,
541
- copy: R,
542
- range: [g, Z],
574
+ calendarActions: a,
575
+ copy: T,
576
+ range: [I, L],
543
577
  shouldShrinkToIcon: !1,
544
578
  variant: n
545
579
  }
546
580
  )
547
581
  ] }),
548
- b && /* @__PURE__ */ t(
549
- xe,
582
+ y && /* @__PURE__ */ e(
583
+ ye,
550
584
  {
551
- onClose: () => p(!1),
552
- showConnectWidget: b,
553
- title: i.mini_title
585
+ onClose: () => R(!1),
586
+ showConnectWidget: y,
587
+ title: B.mini_title
554
588
  }
555
589
  ),
556
- /* @__PURE__ */ t(oe, { ref: k, sx: { p: 0 }, children: /* @__PURE__ */ t(Se, { availableHeight: F, availableWidth: y, children: m }) })
590
+ /* @__PURE__ */ e(oe, { ref: v, sx: { p: 0 }, children: /* @__PURE__ */ e(ue, { availableHeight: G, availableWidth: k, children: C }) })
557
591
  ]
558
592
  }
559
593
  );
560
- }, ht = ce(Pe);
594
+ }, Ot = ce(Be);
561
595
  export {
562
596
  ve as A,
563
- ae as D,
564
- ht as W
597
+ ie as D,
598
+ Ot as W,
599
+ Pe as u
565
600
  };