@mx-cartographer/experiences 8.0.0-alpha.bb4 → 8.0.0-alpha.sms1

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 (106) hide show
  1. package/dist/{Account-B4CDD-zq.mjs → Account-BDXA6PWh.mjs} +1 -1
  2. package/dist/AccountDetailsContent-CUztd3-b.mjs +683 -0
  3. package/dist/{AccountDetailsHeader-DRjFuyJT.mjs → AccountDetailsHeader-i3KFhNuo.mjs} +18 -18
  4. package/dist/{AccountFields-Cl4KHoSj.mjs → AccountFields-QZspYAji.mjs} +10 -12
  5. package/dist/AccountListItem-DX5upmCS.mjs +90 -0
  6. package/dist/{AccountStore-HbVblv86.mjs → AccountStore-BcnDpyLL.mjs} +3 -3
  7. package/dist/{Accounts-CRUehOiy.mjs → Accounts-DXfZotRC.mjs} +1 -1
  8. package/dist/{BudgetUtil-Jv8h9H9l.mjs → BudgetUtil-Df2nII9u.mjs} +31 -31
  9. package/dist/{CashflowStore-CA190BPF.mjs → CashflowStore-D9Dpuz7X.mjs} +25 -18
  10. package/dist/{Category-Ccoew_sA.mjs → Category-CevNQ03n.mjs} +2 -2
  11. package/dist/{CategorySelectorDrawer-Dl006GKy.mjs → CategorySelectorDrawer-DqJK_rrL.mjs} +27 -27
  12. package/dist/{CategoryStore-MUwRWH9e.mjs → CategoryStore-DTgyAMM7.mjs} +2 -2
  13. package/dist/{CategoryUtil-DfVKKkRf.mjs → CategoryUtil-C5cR-nfQ.mjs} +4 -4
  14. package/dist/{ConnectDrawer-DVp54lUH.mjs → ConnectDrawer-BIbTqYOH.mjs} +47 -48
  15. package/dist/{ConnectionsDrawer-Dsc04-4Z.mjs → ConnectionsDrawer-BFfY3_zB.mjs} +2 -2
  16. package/dist/CurrencyInput-BFKcs-_K.mjs +85 -0
  17. package/dist/{DateUtil-CDPZw_-m.mjs → DateUtil-CBdcsyuk.mjs} +1 -1
  18. package/dist/{DebtsStore-pL63fmdT.mjs → DebtsStore-BbJB0nmu.mjs} +3 -3
  19. package/dist/{Dialog-CDV0kKxj.mjs → Dialog-BPTr3qHE.mjs} +24 -24
  20. package/dist/{Drawer-BF40nbsH.mjs → Drawer-BEtCk82g.mjs} +17 -17
  21. package/dist/{ExportCsvAction-QhQK4_FU.mjs → ExportCsvAction-DzTrtPzk.mjs} +3 -3
  22. package/dist/{FinstrongStore-BGf36b0z.mjs → FinstrongStore-BIrX0Xg2.mjs} +56 -56
  23. package/dist/{GoalStore-C1-w3Y1E.mjs → GoalStore-DpWY3gVb.mjs} +4 -4
  24. package/dist/HeaderCell-DjuifqHJ.mjs +6 -0
  25. package/dist/{Help-DBfsTkAi.mjs → Help-BnPXM_N2.mjs} +145 -124
  26. package/dist/{Help-c-zHlDbv.mjs → Help-DhcC-C05.mjs} +8 -8
  27. package/dist/{IconBacking-DgT8DCeh.mjs → IconBacking-B9oC6uL2.mjs} +11 -11
  28. package/dist/{LineChart-C1PxNf7P.mjs → LineChart-bc1D9xBE.mjs} +78 -78
  29. package/dist/{ListItemAction-BNCWQAN_.mjs → ListItemAction-uobBrm_a.mjs} +1 -1
  30. package/dist/Loader-DUaFpDGv.mjs +24 -0
  31. package/dist/{ManageIncome-8EsStyIQ.mjs → ManageIncome-NpXHhO1n.mjs} +46 -46
  32. package/dist/MicroWidgetContainer-DEiRnYVa.mjs +45 -0
  33. package/dist/MiniWidgetContainer-CmXpTylX.mjs +56 -0
  34. package/dist/{NetWorthStore-Bti6u-d9.mjs → NetWorthStore-lsuhEpn6.mjs} +4 -4
  35. package/dist/{NotificationSettings-B74rQVYC.mjs → NotificationSettings-CNmJWVeI.mjs} +77 -77
  36. package/dist/{OriginalBalanceAction-2Y_3U_mg.mjs → OriginalBalanceAction-DK8_LkPz.mjs} +8 -8
  37. package/dist/{RecurringSettings-DAncu--R.mjs → RecurringSettings-CqZh1SQa.mjs} +3 -3
  38. package/dist/{RecurringTransactions-CxcSL1dY.mjs → RecurringTransactions-BKcYmpv3.mjs} +77 -77
  39. package/dist/{RecurringTransactionsStore-CNFxyGB6.mjs → RecurringTransactionsStore-Ni5tSQIO.mjs} +1 -1
  40. package/dist/{ResponsiveButton-Cn6-R7ue.mjs → ResponsiveButton-DZFp78fJ.mjs} +10 -10
  41. package/dist/SearchBox-B2_zLv8-.mjs +42 -0
  42. package/dist/{SettingsStore-BASMQSIp.mjs → SettingsStore-krIRNwHK.mjs} +1 -1
  43. package/dist/{SingleSegmentDonut-7Uy6VEld.mjs → SingleSegmentDonut-BgbLgwHi.mjs} +6 -6
  44. package/dist/{SpendingData-DPQ96k3x.mjs → SpendingData-BuJ03S9d.mjs} +4 -4
  45. package/dist/{SpendingLegend-6FqtMcBV.mjs → SpendingLegend-CjX-hX2O.mjs} +12 -12
  46. package/dist/{StatusBar-CPfSXe80.mjs → StatusBar-BK_uYHAB.mjs} +6 -6
  47. package/dist/{TabContentContainer-CnMXkVqr.mjs → TabContentContainer-j01JYR_7.mjs} +8 -8
  48. package/dist/TransactionDetails-5M2vfr59.mjs +1379 -0
  49. package/dist/{TransactionStore-DbwAutwC.mjs → TransactionStore-D-Q3BU9Z.mjs} +58 -41
  50. package/dist/{TrendsStore-_mRaFUdf.mjs → TrendsStore-BW9FGQeE.mjs} +37 -37
  51. package/dist/{User-BklmOUSd.mjs → User-wXzDI4M8.mjs} +107 -107
  52. package/dist/{ViewMoreMicroCard-DAkyNRlD.mjs → ViewMoreMicroCard-C0832BMe.mjs} +233 -231
  53. package/dist/{WidgetContainer-CDh9fjpR.mjs → WidgetContainer-BhQ1Kx2z.mjs} +36 -36
  54. package/dist/accounts/index.es.js +94 -94
  55. package/dist/analytics/index.es.js +27 -27
  56. package/dist/budgets/index.es.js +251 -250
  57. package/dist/cashflow/index.es.js +158 -157
  58. package/dist/categories/index.es.js +2 -2
  59. package/dist/common/components/Loader.d.ts +2 -1
  60. package/dist/common/components/accountfilter/AccountFilterOptions.d.ts +1 -1
  61. package/dist/common/components/barchart/Bar.d.ts +25 -0
  62. package/dist/common/components/barchart/BarChart.d.ts +34 -0
  63. package/dist/common/components/barchart/BarColumn.d.ts +37 -0
  64. package/dist/common/components/barchart/Legend.d.ts +8 -0
  65. package/dist/common/components/barchart/Util.d.ts +42 -0
  66. package/dist/common/components/barchart/index.d.ts +1 -0
  67. package/dist/common/components/charts/linechart/CustomMark.d.ts +1 -1
  68. package/dist/common/components/index.d.ts +1 -0
  69. package/dist/common/index.es.js +660 -395
  70. package/dist/common/utils/Theme.d.ts +3 -1
  71. package/dist/dashboard/index.es.js +21 -21
  72. package/dist/debts/components/DebtsChart.d.ts +2 -1
  73. package/dist/debts/index.es.js +440 -440
  74. package/dist/{exportTransactionsToCSV-BgV_wTLT.mjs → exportTransactionsToCSV-Cz2t0lmA.mjs} +3 -3
  75. package/dist/finstrong/index.es.js +118 -118
  76. package/dist/goals/index.es.js +380 -386
  77. package/dist/help/components/content/BottomImageContent.d.ts +1 -1
  78. package/dist/help/components/content/LeftImageContent.d.ts +1 -1
  79. package/dist/help/components/content/RightImageContent.d.ts +1 -1
  80. package/dist/help/components/content/TopImageContent.d.ts +1 -1
  81. package/dist/help/index.es.js +6 -6
  82. package/dist/investments/index.es.js +279 -278
  83. package/dist/merchants/index.es.js +7 -7
  84. package/dist/microinsights/index.es.js +1 -1
  85. package/dist/networth/components/NetWorthChange.d.ts +1 -3
  86. package/dist/networth/index.es.js +185 -191
  87. package/dist/notifications/index.es.js +30 -30
  88. package/dist/recurringtransactions/index.es.js +85 -85
  89. package/dist/settings/index.es.js +270 -270
  90. package/dist/spending/index.es.js +44 -44
  91. package/dist/transactions/components/shared/transactionlist/DateRow.d.ts +7 -0
  92. package/dist/transactions/index.es.js +169 -168
  93. package/dist/trends/index.es.js +318 -317
  94. package/dist/{useAccountDisplayName-CcIp09Xc.mjs → useAccountDisplayName-CFNF8766.mjs} +1 -1
  95. package/dist/{useCombineEvents-kNzLTWCp.mjs → useCombineEvents-CRwX-qWE.mjs} +2 -2
  96. package/dist/{useScreenSize-B5afALev.mjs → useScreenSize-B6JyS_Lj.mjs} +1 -1
  97. package/package.json +50 -45
  98. package/dist/AccountDetailsContent-adZTkM52.mjs +0 -683
  99. package/dist/AccountListItem-wgmlex-_.mjs +0 -90
  100. package/dist/CurrencyInput-D1cjbdCI.mjs +0 -85
  101. package/dist/HeaderCell-P8w6CmfO.mjs +0 -6
  102. package/dist/Loader-Ckqi9Rx6.mjs +0 -21
  103. package/dist/MicroWidgetContainer-BGpNl5ZS.mjs +0 -45
  104. package/dist/MiniWidgetContainer-CKzf_Ira.mjs +0 -56
  105. package/dist/SearchBox-B7km148n.mjs +0 -39
  106. package/dist/TransactionDetails-Bn0qY5Hw.mjs +0 -1336
@@ -2,7 +2,7 @@ import { jsx as t, jsxs as E } from "react/jsx-runtime";
2
2
  import { observer as g } from "mobx-react-lite";
3
3
  import C from "react";
4
4
  import $ from "@mui/material/Stack";
5
- import { G as K, m as b, u as y, g as D, b as U } from "./hooks-C41HAxM5.mjs";
5
+ import { G as K, m as y, u as b, g as D, b as U } from "./hooks-C41HAxM5.mjs";
6
6
  import Y from "@mui/material/List";
7
7
  import V from "@mui/material/Paper";
8
8
  import v from "@mui/material/Divider";
@@ -12,21 +12,21 @@ import N from "@mui/material/ListItemButton";
12
12
  import F from "@mui/material/ListItemIcon";
13
13
  import G from "@mui/material/ListItemText";
14
14
  import { CheckCircle as M, Edit as j, Delete as X, ExpandMore as z } from "@mxenabled/mx-icons";
15
- import { Text as I, TextField as q, CategoryIcon as H } from "@mxenabled/mxui";
15
+ import { Text as B, TextField as q, CategoryIcon as H } from "@mxenabled/mxui";
16
16
  import J from "@mui/material/Collapse";
17
17
  import Q from "@mui/material/DialogContent";
18
18
  import { b as S } from "./Localization-2MODESHW.mjs";
19
- import { D as Z } from "./Dialog-CDV0kKxj.mjs";
19
+ import { D as Z } from "./Dialog-BPTr3qHE.mjs";
20
20
  import ee from "@mui/material/Box";
21
21
  import te from "@mui/material/Chip";
22
- import B from "@mui/material/IconButton";
23
- import { L as k } from "./Loader-Ckqi9Rx6.mjs";
24
- import { S as oe } from "./SearchBox-B7km148n.mjs";
25
- import { D as ae } from "./Drawer-BF40nbsH.mjs";
22
+ import I from "@mui/material/IconButton";
23
+ import { S as oe } from "./SearchBox-B2_zLv8-.mjs";
24
+ import { L as k } from "./Loader-DUaFpDGv.mjs";
25
+ import { D as ae } from "./Drawer-BEtCk82g.mjs";
26
26
  const p = () => {
27
27
  if (!C.useContext(K))
28
28
  throw new Error("useCategoryUiStore() must be used within the GlobalDataContext");
29
- return b().uiStore;
29
+ return y().uiStore;
30
30
  }, m = {
31
31
  ON_CATEGORY_EXPANDED: "onCategoryExpanded",
32
32
  ON_CATEGORY_COLLAPSED: "onCategoryCollapsed",
@@ -48,7 +48,7 @@ const re = ({
48
48
  isOpen: c,
49
49
  type: s
50
50
  }) => {
51
- const [a, i] = C.useState(e), { categories: n } = y(), { setShouldDisableDrawerScroll: l } = p();
51
+ const [a, i] = C.useState(e), { categories: n } = b(), { setShouldDisableDrawerScroll: l } = p();
52
52
  let u = "", d = [];
53
53
  const _ = s === "delete";
54
54
  switch (s) {
@@ -61,7 +61,7 @@ const re = ({
61
61
  case "delete":
62
62
  u = n.delete_subcategory_heading, d = S(
63
63
  n.all_transactions_in_this_subcategory,
64
- /* @__PURE__ */ t(I, { bold: !0, children: S(n.all_parent_category, e) })
64
+ /* @__PURE__ */ t(B, { bold: !0, children: S(n.all_parent_category, e) })
65
65
  );
66
66
  break;
67
67
  }
@@ -79,7 +79,7 @@ const re = ({
79
79
  onPrimaryAction: () => {
80
80
  l(!1), r(a);
81
81
  },
82
- children: /* @__PURE__ */ t(Q, { children: _ ? /* @__PURE__ */ t(I, { children: d }) : /* @__PURE__ */ t(
82
+ children: /* @__PURE__ */ t(Q, { children: _ ? /* @__PURE__ */ t(B, { children: d }) : /* @__PURE__ */ t(
83
83
  q,
84
84
  {
85
85
  inputProps: {
@@ -95,7 +95,7 @@ const re = ({
95
95
  }
96
96
  );
97
97
  }, R = g(re), ne = ({ parentCategory: e }) => {
98
- const [o, r] = C.useState(!1), { addCategory: c } = b(), { categories: s } = y(), { onEvent: a } = D(), { setShouldDisableDrawerScroll: i } = p(), n = async (d) => {
98
+ const [o, r] = C.useState(!1), { addCategory: c } = y(), { categories: s } = b(), { onEvent: a } = D(), { setShouldDisableDrawerScroll: i } = p(), n = async (d) => {
99
99
  await c(d.trim(), e.guid), a(m.ON_SUBCATEGORY_ADDED), r(!1);
100
100
  }, l = async () => {
101
101
  a(m.ON_SUBCATEGORY_ADD_CLICK), i(!0), r(!0);
@@ -107,7 +107,7 @@ const re = ({
107
107
  G,
108
108
  {
109
109
  primary: s.add_subcategory_button,
110
- primaryTypographyProps: { color: "primary", fontWeight: "normal", variant: "body1" }
110
+ primaryTypographyProps: { color: "primary", fontWeight: "normal", variant: "Body" }
111
111
  }
112
112
  ) }),
113
113
  o && /* @__PURE__ */ t(
@@ -125,7 +125,7 @@ const re = ({
125
125
  subCategory: o,
126
126
  showRename: r
127
127
  }) => {
128
- const { updateCategory: c } = b(), { onEvent: s } = D(), a = async (n) => {
128
+ const { updateCategory: c } = y(), { onEvent: s } = D(), a = async (n) => {
129
129
  await c({ ...o, name: n }), s(m.ON_SUBCATEGORY_SAVED), e(!1);
130
130
  }, i = () => {
131
131
  e(!1), s(m.ON_SUBCATEGORY_EDIT_CANCEL_CLICK);
@@ -146,7 +146,7 @@ const re = ({
146
146
  setShowDelete: r,
147
147
  subCategory: c
148
148
  }) => {
149
- const { onEvent: s } = D(), { removeCategory: a } = b(), i = () => {
149
+ const { onEvent: s } = D(), { removeCategory: a } = y(), i = () => {
150
150
  r(!1), s(m.ON_SUBCATEGORY_DELETE_CLICK);
151
151
  }, n = async () => {
152
152
  s(m.ON_SUBCATEGORY_DELETED), await a(c.guid), r(!1);
@@ -170,7 +170,7 @@ const re = ({
170
170
  showSelected: i,
171
171
  unselectable: n,
172
172
  unselectableText: l
173
- } = p(), { categories: u } = y(), { onEvent: d } = D(), [_, h] = C.useState(!1), [f, O] = C.useState(!1), T = !!o.revision, A = o.guid === c, w = !n.some((P) => P === o.guid);
173
+ } = p(), { categories: u } = b(), { onEvent: d } = D(), [_, h] = C.useState(!1), [f, O] = C.useState(!1), T = !!o.revision, A = o.guid === c, w = !n.some((P) => P === o.guid);
174
174
  return /* @__PURE__ */ E(
175
175
  x,
176
176
  {
@@ -193,7 +193,7 @@ const re = ({
193
193
  G,
194
194
  {
195
195
  primary: o.name,
196
- primaryTypographyProps: { fontWeight: "normal", variant: "body1" }
196
+ primaryTypographyProps: { fontWeight: "normal", variant: "Body" }
197
197
  }
198
198
  ),
199
199
  i && A && /* @__PURE__ */ t(M, { fontSize: "small" }),
@@ -203,7 +203,7 @@ const re = ({
203
203
  ),
204
204
  T && /* @__PURE__ */ E(ee, { className: "mx-cat-subcategory-edit-container", sx: { marginRight: 24 }, children: [
205
205
  /* @__PURE__ */ t(
206
- B,
206
+ I,
207
207
  {
208
208
  "aria-label": S(u.edit_subcategory_aria, o.name),
209
209
  onClick: () => {
@@ -213,7 +213,7 @@ const re = ({
213
213
  }
214
214
  ),
215
215
  /* @__PURE__ */ t(
216
- B,
216
+ I,
217
217
  {
218
218
  "aria-label": S(u.delete_subcategory_aria, o.name),
219
219
  edge: "end",
@@ -290,7 +290,7 @@ const re = ({
290
290
  G,
291
291
  {
292
292
  primary: e.name,
293
- primaryTypographyProps: { fontWeight: "normal", variant: "body1" }
293
+ primaryTypographyProps: { fontWeight: "normal", variant: "Body" }
294
294
  }
295
295
  ),
296
296
  /* @__PURE__ */ t(F, { children: /* @__PURE__ */ t(
@@ -310,7 +310,7 @@ const re = ({
310
310
  /* @__PURE__ */ t(ge, { categories: o, parentCategory: e })
311
311
  ] });
312
312
  }, Ee = g(_e), pe = () => {
313
- const { categories: e } = b(), { searchValue: o } = p(), { categories: r } = y(), s = ((a, i = "") => a.reduce((n, l) => {
313
+ const { categories: e } = y(), { searchValue: o } = p(), { categories: r } = b(), s = ((a, i = "") => a.reduce((n, l) => {
314
314
  if (l.parent_guid === null) {
315
315
  const d = [
316
316
  {
@@ -342,7 +342,7 @@ const re = ({
342
342
  unselectable: c = [],
343
343
  unselectableText: s = "Unselectable"
344
344
  }) => {
345
- const { categories: a, loadCategories: i } = b(), { common: n } = y(), { isCopyLoaded: l } = U(), {
345
+ const { categories: a, loadCategories: i } = y(), { common: n } = b(), { isCopyLoaded: l } = U(), {
346
346
  searchValue: u,
347
347
  setOnSelect: d,
348
348
  setSearchValue: _,
@@ -370,14 +370,14 @@ const re = ({
370
370
  ),
371
371
  /* @__PURE__ */ t(he, {})
372
372
  ] }) : /* @__PURE__ */ t(k, {});
373
- }, be = g(Se), ye = ({
373
+ }, ye = g(Se), be = ({
374
374
  id: e,
375
375
  onClose: o,
376
376
  title: r,
377
377
  showDrawer: c,
378
378
  ...s
379
379
  }) => {
380
- const { common: a } = y(), { isCopyLoaded: i } = U();
380
+ const { common: a } = b(), { isCopyLoaded: i } = U();
381
381
  return i ? /* @__PURE__ */ t(
382
382
  ae,
383
383
  {
@@ -387,12 +387,12 @@ const re = ({
387
387
  isOpen: c,
388
388
  onClose: o,
389
389
  title: r,
390
- children: /* @__PURE__ */ t(be, { ...s })
390
+ children: /* @__PURE__ */ t(ye, { ...s })
391
391
  }
392
392
  ) : /* @__PURE__ */ t(k, {});
393
- }, ze = g(ye);
393
+ }, ze = g(be);
394
394
  export {
395
- be as C,
395
+ ye as C,
396
396
  ze as a,
397
397
  Ee as b,
398
398
  p as u
@@ -3,9 +3,9 @@ import { getUnixTime as n } from "date-fns/getUnixTime";
3
3
  import { subMonths as d } from "date-fns/subMonths";
4
4
  import { startOfMonth as y } from "date-fns/startOfMonth";
5
5
  import { endOfMonth as u } from "date-fns/endOfMonth";
6
- import { a as C, g as T } from "./CategoryUtil-DfVKKkRf.mjs";
6
+ import { a as C, g as T } from "./CategoryUtil-C5cR-nfQ.mjs";
7
7
  import { F as m, A as r } from "./Fetch-DecPFeGU.mjs";
8
- import { b as p, c as f } from "./Category-Ccoew_sA.mjs";
8
+ import { b as p, c as f } from "./Category-CevNQ03n.mjs";
9
9
  class c {
10
10
  fetchInstance;
11
11
  constructor(t, e, a) {
@@ -3,8 +3,8 @@ import { startOfMonth as T } from "date-fns/startOfMonth";
3
3
  import { startOfToday as C } from "date-fns/startOfToday";
4
4
  import { subMonths as N } from "date-fns/subMonths";
5
5
  import { CategoryIconList as O } from "@mxenabled/mxui";
6
- import { C as b, a as D, b as E } from "./Category-Ccoew_sA.mjs";
7
- import { f as R, a as v } from "./Dialog-CDV0kKxj.mjs";
6
+ import { C as b, a as D, b as E } from "./Category-CevNQ03n.mjs";
7
+ import { f as R, a as v } from "./Dialog-BPTr3qHE.mjs";
8
8
  const H = 3, f = 12, k = (t, o, e, r) => t.filter((n) => !n.parent_guid).map(
9
9
  (n) => p(
10
10
  n,
@@ -33,8 +33,8 @@ const H = 3, f = 12, k = (t, o, e, r) => t.filter((n) => !n.parent_guid).map(
33
33
  ...t,
34
34
  currentAmount: c,
35
35
  averageAmount: _(m),
36
- color: D[i],
37
- icon: b[i],
36
+ color: b[i],
37
+ icon: D[i],
38
38
  isTransfer: i === E.TRANSFER,
39
39
  monthlyAmounts: m,
40
40
  name: h,
@@ -1,28 +1,27 @@
1
- import { jsx as _, jsxs as m } from "react/jsx-runtime";
1
+ import { jsx as _, jsxs as M } from "react/jsx-runtime";
2
2
  import f, { useMemo as S } from "react";
3
3
  import H from "@mui/material/Button";
4
- import { P as x, Icon as k, Text as n } from "@mxenabled/mxui";
5
- import b from "@mui/material/Tooltip";
4
+ import { AccountsIcon as n, P as x, Icon as k, Text as b } from "@mxenabled/mxui";
5
+ import p from "@mui/material/Tooltip";
6
6
  import $ from "@mui/material/Box";
7
- import p from "@mui/material/IconButton";
7
+ import c from "@mui/material/IconButton";
8
8
  import K from "@mui/material/FormControlLabel";
9
9
  import v from "@mui/material/List";
10
10
  import g from "@mui/material/ListItem";
11
- import c from "@mui/material/ListItemButton";
12
- import y from "@mui/material/ListSubheader";
13
- import u from "@mui/material/ListItemText";
14
- import EE from "@mui/material/Popover";
11
+ import y from "@mui/material/ListItemButton";
12
+ import u from "@mui/material/ListSubheader";
13
+ import EE from "@mui/material/ListItemText";
14
+ import IE from "@mui/material/Popover";
15
15
  import F from "@mui/material/Stack";
16
16
  import w from "@mui/material/Checkbox";
17
- import { AccountBalance as IE } from "@mxenabled/mx-icons";
18
17
  import { u as o, f as _E, d as NE, e as rE } from "./hooks-C41HAxM5.mjs";
19
18
  import { b as W } from "./Localization-2MODESHW.mjs";
20
- import { u as RE } from "./useScreenSize-B5afALev.mjs";
19
+ import { u as RE } from "./useScreenSize-B6JyS_Lj.mjs";
21
20
  import { observer as Q } from "mobx-react-lite";
22
- import { useTheme as iE } from "@mui/material/styles";
21
+ import iE from "@mui/material/styles/useTheme";
23
22
  import { ConnectWidget as aE } from "@mxenabled/web-widget-sdk";
24
23
  import lE from "@mui/material/CircularProgress";
25
- import { D as OE } from "./Drawer-BF40nbsH.mjs";
24
+ import { D as OE } from "./Drawer-BEtCk82g.mjs";
26
25
  var T = /* @__PURE__ */ ((E) => (E[E.ANY = 0] = "ANY", E[E.CHECKING = 1] = "CHECKING", E[E.SAVINGS = 2] = "SAVINGS", E[E.LOAN = 3] = "LOAN", E[E.CREDIT_CARD = 4] = "CREDIT_CARD", E[E.INVESTMENT = 5] = "INVESTMENT", E[E.LINE_OF_CREDIT = 6] = "LINE_OF_CREDIT", E[E.MORTGAGE = 7] = "MORTGAGE", E[E.PROPERTY = 8] = "PROPERTY", E[E.CASH = 9] = "CASH", E[E.INSURANCE = 10] = "INSURANCE", E[E.PREPAID = 11] = "PREPAID", E[E.CHECKING_LINE_OF_CREDIT = 12] = "CHECKING_LINE_OF_CREDIT", E[E.DIGITAL_WALLET = 13] = "DIGITAL_WALLET", E))(T || {}), sE = /* @__PURE__ */ ((E) => (E[E.NONE = 0] = "NONE", E[E.MONEY_MARKET = 1] = "MONEY_MARKET", E[E.CERTIFICATE_OF_DEPOSIT = 2] = "CERTIFICATE_OF_DEPOSIT", E[E.AUTO = 3] = "AUTO", E[E.STUDENT = 4] = "STUDENT", E[E.SMALL_BUSINESS = 5] = "SMALL_BUSINESS", E[E.PERSONAL = 6] = "PERSONAL", E[E.PERSONAL_WITH_COLLATERAL = 7] = "PERSONAL_WITH_COLLATERAL", E[E.HOME_EQUITY = 8] = "HOME_EQUITY", E[E.PLAN_401_K = 9] = "PLAN_401_K", E[E.PLAN_403_B = 10] = "PLAN_403_B", E[E.PLAN_529 = 11] = "PLAN_529", E[E.IRA = 12] = "IRA", E[E.ROLLOVER_IRA = 13] = "ROLLOVER_IRA", E[E.ROTH_IRA = 14] = "ROTH_IRA", E[E.TAXABLE = 15] = "TAXABLE", E[E.NON_TAXABLE = 16] = "NON_TAXABLE", E[E.BROKERAGE = 17] = "BROKERAGE", E[E.TRUST = 18] = "TRUST", E[E.UNIFORM_GIFTS_TO_MINORS_ACT = 19] = "UNIFORM_GIFTS_TO_MINORS_ACT", E[E.PLAN_457 = 20] = "PLAN_457", E[E.PENSION = 21] = "PENSION", E[E.EMPLOYEE_STOCK_OWNERSHIP_PLAN = 22] = "EMPLOYEE_STOCK_OWNERSHIP_PLAN", E[E.SIMPLIFIED_EMPLOYEE_PENSION = 23] = "SIMPLIFIED_EMPLOYEE_PENSION", E[E.SIMPLE_IRA = 24] = "SIMPLE_IRA", E[E.BOAT = 25] = "BOAT", E[E.POWERSPORTS = 26] = "POWERSPORTS", E[E.RV = 27] = "RV", E[E.HELOC = 28] = "HELOC", E[E.PLAN_ROTH_401_K = 29] = "PLAN_ROTH_401_K", E[E.FIXED_ANNUITY = 30] = "FIXED_ANNUITY", E[E.VARIABLE_ANNUITY = 31] = "VARIABLE_ANNUITY", E[E.VEHICLE_INSURANCE = 32] = "VEHICLE_INSURANCE", E[E.DISABILITY = 33] = "DISABILITY", E[E.HEALTH = 34] = "HEALTH", E[E.LONG_TERM_CARE = 35] = "LONG_TERM_CARE", E[E.PROPERTY_AND_CASUALTY = 36] = "PROPERTY_AND_CASUALTY", E[E.UNIVERSAL_LIFE = 37] = "UNIVERSAL_LIFE", E[E.TERM_LIFE = 38] = "TERM_LIFE", E[E.WHOLE_LIFE = 39] = "WHOLE_LIFE", E[E.ACCIDENTAL_DEATH_AND_DISMEMBERMENT = 40] = "ACCIDENTAL_DEATH_AND_DISMEMBERMENT", E[E.VARIABLE_UNIVERSAL_LIFE = 41] = "VARIABLE_UNIVERSAL_LIFE", E[E.HSA = 42] = "HSA", E[E.TAX_FREE_SAVINGS_ACCOUNT = 43] = "TAX_FREE_SAVINGS_ACCOUNT", E[E.INDIVIDUAL = 44] = "INDIVIDUAL", E[E.REGISTERED_RETIREMENT_INCOME_FUND = 45] = "REGISTERED_RETIREMENT_INCOME_FUND", E[E.CASH_MANAGEMENT_ACCOUNT = 46] = "CASH_MANAGEMENT_ACCOUNT", E[E.EMPLOYEE_STOCK_PURCHASE_PLAN = 47] = "EMPLOYEE_STOCK_PURCHASE_PLAN", E[E.REGISTERED_EDUCATION_SAVINGS_PLAN = 48] = "REGISTERED_EDUCATION_SAVINGS_PLAN", E[E.PROFIT_SHARING_PLAN = 49] = "PROFIT_SHARING_PLAN", E[E.UNIFORM_TRANSFER_TO_MINORS_ACT = 50] = "UNIFORM_TRANSFER_TO_MINORS_ACT", E[E.PLAN_401_A = 51] = "PLAN_401_A", E[E.SARSEP_IRA = 52] = "SARSEP_IRA", E[E.FIXED_ANNUITY_TRADITIONAL_IRA = 53] = "FIXED_ANNUITY_TRADITIONAL_IRA", E[E.VARIABLE_ANNUITY_TRADITIONAL_IRA = 54] = "VARIABLE_ANNUITY_TRADITIONAL_IRA", E[E.SEPP_IRA = 55] = "SEPP_IRA", E[E.INHERITED_TRADITIONAL_IRA = 56] = "INHERITED_TRADITIONAL_IRA", E[E.FIXED_ANNUITY_ROTH_IRA = 57] = "FIXED_ANNUITY_ROTH_IRA", E[E.VARIABLE_ANNUITY_ROTH_IRA = 58] = "VARIABLE_ANNUITY_ROTH_IRA", E[E.INHERITED_ROTH_IRA = 59] = "INHERITED_ROTH_IRA", E[E.COVERDELL = 60] = "COVERDELL", E[E.ADVISORY_ACCOUNT = 61] = "ADVISORY_ACCOUNT", E[E.BROKERAGE_MARGIN = 62] = "BROKERAGE_MARGIN", E[E.CHARITABLE_GIFT_ACCOUNT = 63] = "CHARITABLE_GIFT_ACCOUNT", E[E.CHURCH_ACCOUNT = 64] = "CHURCH_ACCOUNT", E[E.CONSERVATORSHIP = 65] = "CONSERVATORSHIP", E[E.CUSTODIAL = 66] = "CUSTODIAL", E[E.DEFINED_BENEFIT_PLAN = 67] = "DEFINED_BENEFIT_PLAN", E[E.DEFINED_CONTRIBUTION_PLAN = 68] = "DEFINED_CONTRIBUTION_PLAN", E[E.EDUCATIONAL = 69] = "EDUCATIONAL", E[E.ESTATE = 70] = "ESTATE", E[E.EXECUTOR = 71] = "EXECUTOR", E[E.GROUP_RETIREMENT_SAVINGS_PLAN = 72] = "GROUP_RETIREMENT_SAVINGS_PLAN", E[E.GUARANTEED_INVESTMENT_CERTIFICATE = 73] = "GUARANTEED_INVESTMENT_CERTIFICATE", E[E.HRA = 74] = "HRA", E[E.INDEXED_ANNUITY = 75] = "INDEXED_ANNUITY", E[E.INVESTMENT_CLUB = 76] = "INVESTMENT_CLUB", E[E.IRREVOCABLE_TRUST = 77] = "IRREVOCABLE_TRUST", E[E.JOINT_TENANTS_BY_ENTIRITY = 78] = "JOINT_TENANTS_BY_ENTIRITY", E[E.JOINT_TENANTS_COMMUNITY_PROPERTY = 79] = "JOINT_TENANTS_COMMUNITY_PROPERTY", E[E.JOINT_TENANTS_IN_COMMON = 80] = "JOINT_TENANTS_IN_COMMON", E[E.JOINT_TENANTS_WITH_RIGHTS_OF_SURVIVORSHIP = 81] = "JOINT_TENANTS_WITH_RIGHTS_OF_SURVIVORSHIP", E[E.KEOUGH_PLAN = 82] = "KEOUGH_PLAN", E[E.LIFE_INCOME_FUND = 83] = "LIFE_INCOME_FUND", E[E.LIVING_TRUST = 84] = "LIVING_TRUST", E[E.LOCKED_IN_RETIREMENT_ACCOUNT = 85] = "LOCKED_IN_RETIREMENT_ACCOUNT", E[E.LOCKED_IN_RETIREMENT_INVESTMENT_FUND = 86] = "LOCKED_IN_RETIREMENT_INVESTMENT_FUND", E[E.LOCKED_IN_RETIREMENT_SAVINGS_ACCOUNT = 87] = "LOCKED_IN_RETIREMENT_SAVINGS_ACCOUNT", E[E.MONEY_PURCHASE_PLAN = 88] = "MONEY_PURCHASE_PLAN", E[E.PARTNERSHIP = 89] = "PARTNERSHIP", E[E.PLAN_409_A = 90] = "PLAN_409_A", E[E.PLAN_ROTH_403_B = 91] = "PLAN_ROTH_403_B", E[E.REGISTERED_DISABILITY_SAVINGS_PLAN = 92] = "REGISTERED_DISABILITY_SAVINGS_PLAN", E[E.REGISTERED_LOCKED_IN_SAVINGS_PLAN = 93] = "REGISTERED_LOCKED_IN_SAVINGS_PLAN", E[E.REGISTERED_PENSION_PLAN = 94] = "REGISTERED_PENSION_PLAN", E[E.REGISTERED_RETIREMENT_SAVINGS_PLAN = 95] = "REGISTERED_RETIREMENT_SAVINGS_PLAN", E[E.REVOCABLE_TRUST = 96] = "REVOCABLE_TRUST", E[E.ROTH_CONVERSION = 97] = "ROTH_CONVERSION", E[E.SOLE_PROPRIETORSHIP = 98] = "SOLE_PROPRIETORSHIP", E[E.SPOUSAL_IRA = 99] = "SPOUSAL_IRA", E[E.SPOUSAL_ROTH_IRA = 100] = "SPOUSAL_ROTH_IRA", E[E.TESTAMENTARY_TRUST = 101] = "TESTAMENTARY_TRUST", E[E.THRIFT_SAVINGS_PLAN = 102] = "THRIFT_SAVINGS_PLAN", E[E.INHERITED_ANNUITY = 103] = "INHERITED_ANNUITY", E[E.CORPORATE_ACCOUNT = 104] = "CORPORATE_ACCOUNT", E[E.LIMITED_LIABILITY_ACCOUNT = 105] = "LIMITED_LIABILITY_ACCOUNT", E[E.HSA_SAVINGS = 106] = "HSA_SAVINGS", E[E.HSA_CHECKING = 107] = "HSA_CHECKING", E))(sE || {}), LE = /* @__PURE__ */ ((E) => (E[E.REAL_ESTATE = 0] = "REAL_ESTATE", E[E.VEHICLE = 1] = "VEHICLE", E[E.ART = 2] = "ART", E[E.JEWELRY = 3] = "JEWELRY", E[E.FURNITURE = 4] = "FURNITURE", E[E.APPLIANCES = 5] = "APPLIANCES", E[E.COMPUTER = 6] = "COMPUTER", E[E.ELECTRONICS = 7] = "ELECTRONICS", E[E.SPORTS_EQUIPMENT = 8] = "SPORTS_EQUIPMENT", E[E.MISCELLANEOUS = 9] = "MISCELLANEOUS", E))(LE || {}), eE = /* @__PURE__ */ ((E) => (E[E.CREATED = 0] = "CREATED", E[E.PREVENTED = 1] = "PREVENTED", E[E.DENIED = 2] = "DENIED", E[E.CHALLENGED = 3] = "CHALLENGED", E[E.REJECTED = 4] = "REJECTED", E[E.LOCKED = 5] = "LOCKED", E[E.CONNECTED = 6] = "CONNECTED", E[E.IMPEDED = 7] = "IMPEDED", E[E.RECONNECTED = 8] = "RECONNECTED", E[E.DEGRADED = 9] = "DEGRADED", E[E.DISCONNECTED = 10] = "DISCONNECTED", E[E.DISCONTINUED = 11] = "DISCONTINUED", E[E.CLOSED = 12] = "CLOSED", E[E.DELAYED = 13] = "DELAYED", E[E.FAILED = 14] = "FAILED", E[E.UPDATED = 15] = "UPDATED", E[E.DISABLED = 16] = "DISABLED", E[E.IMPORTED = 17] = "IMPORTED", E[E.RESUMED = 18] = "RESUMED", E[E.EXPIRED = 19] = "EXPIRED", E[E.IMPAIRED = 20] = "IMPAIRED", E[E.PENDING = 21] = "PENDING", E))(eE || {});
27
26
  const bE = [
28
27
  0,
@@ -142,7 +141,7 @@ const V = (E, N) => E.reduce((I, R) => (I[R.guid] = N?.includes(R.guid), I), {})
142
141
  };
143
142
  return Object.prototype.hasOwnProperty.call(R, a) ? R[a] = R[a].concat(L) : R[a] = [L], R;
144
143
  }, {});
145
- function mE(E) {
144
+ function ME(E) {
146
145
  const { heldAccounts: N, externalAccounts: I } = E.reduce(
147
146
  (R, r) => (r.member_is_managed_by_user ? R.externalAccounts.push(r) : R.heldAccounts.push(r), R),
148
147
  { heldAccounts: [], externalAccounts: [] }
@@ -153,14 +152,14 @@ function mE(E) {
153
152
  };
154
153
  }
155
154
  function _I(E, N) {
156
- const { heldAccounts: I, externalAccounts: R } = mE(E), r = I.slice(0, N);
155
+ const { heldAccounts: I, externalAccounts: R } = ME(E), r = I.slice(0, N);
157
156
  return r.length < N && r.push(...R.slice(0, N - r.length)), r;
158
157
  }
159
- const ME = {
158
+ const mE = {
160
159
  [T.CHECKING]: 1,
161
160
  [T.SAVINGS]: 2,
162
161
  [T.CREDIT_CARD]: 3
163
- }, X = (E) => ME[E] ?? E + 100, z = (E) => E.sort((N, I) => {
162
+ }, X = (E) => mE[E] ?? E + 100, z = (E) => E.sort((N, I) => {
164
163
  const R = X(N.account_type), r = X(I.account_type), a = R - r;
165
164
  if (a !== 0) return a;
166
165
  const s = N.name ?? N.feed_name ?? "", L = I.name ?? I.feed_name ?? "";
@@ -182,9 +181,9 @@ const ME = {
182
181
  const { connect: e } = o(), U = _E(), P = S(
183
182
  () => UE(E, e.connection_statuses[12], U),
184
183
  [E, U]
185
- ), O = E.length < 1, G = !!N, M = Object.values(C).every((i) => !!i);
184
+ ), O = E.length < 1, G = !!N, m = Object.values(C).every((i) => !!i);
186
185
  return /* @__PURE__ */ _(
187
- EE,
186
+ IE,
188
187
  {
189
188
  anchorEl: N,
190
189
  anchorOrigin: {
@@ -198,7 +197,7 @@ const ME = {
198
197
  vertical: "top",
199
198
  horizontal: "left"
200
199
  },
201
- children: O ? /* @__PURE__ */ m(
200
+ children: O ? /* @__PURE__ */ M(
202
201
  F,
203
202
  {
204
203
  sx: {
@@ -210,14 +209,14 @@ const ME = {
210
209
  maxWidth: "100%"
211
210
  },
212
211
  children: [
213
- /* @__PURE__ */ _(IE, { size: 32 }),
212
+ /* @__PURE__ */ _(n, { size: 32 }),
214
213
  /* @__PURE__ */ _(x, { bold: !0, mt: 12, children: I.zeroStateTitle }),
215
214
  /* @__PURE__ */ _(x, { mt: 12, children: I.zeroStateDescription }),
216
215
  s && /* @__PURE__ */ _(H, { onClick: s, children: I.zeroStateButton })
217
216
  ]
218
217
  }
219
- ) : /* @__PURE__ */ m("form", { onSubmit: A, children: [
220
- /* @__PURE__ */ m(
218
+ ) : /* @__PURE__ */ M("form", { onSubmit: A, children: [
219
+ /* @__PURE__ */ M(
221
220
  v,
222
221
  {
223
222
  className: "mx-cmn-account-options",
@@ -250,13 +249,13 @@ const ME = {
250
249
  control: /* @__PURE__ */ _(
251
250
  w,
252
251
  {
253
- checked: M,
254
- "data-ui-test": `checked-${M}`,
252
+ checked: m,
253
+ "data-ui-test": `checked-${m}`,
255
254
  disableRipple: !0,
256
255
  onChange: () => {
257
256
  const i = {};
258
257
  Object.keys(C).forEach((h) => {
259
- i[h] = !M;
258
+ i[h] = !m;
260
259
  }), d(i);
261
260
  },
262
261
  size: "small",
@@ -268,7 +267,7 @@ const ME = {
268
267
  }
269
268
  }
270
269
  ),
271
- label: M ? I.unselectAllAccounts : I.selectAllAccounts
270
+ label: m ? I.unselectAllAccounts : I.selectAllAccounts
272
271
  }
273
272
  ) }),
274
273
  Object.keys(P).map((i) => {
@@ -281,8 +280,8 @@ const ME = {
281
280
  "aria-label": W(I.accountTypeAccounts, i),
282
281
  className: "mx-cmn-account-options-group",
283
282
  dense: !0,
284
- subheader: /* @__PURE__ */ _(y, { disableGutters: !0, children: /* @__PURE__ */ _(
285
- c,
283
+ subheader: /* @__PURE__ */ _(u, { disableGutters: !0, children: /* @__PURE__ */ _(
284
+ y,
286
285
  {
287
286
  "aria-label": W(I.toggleAccountTypeAccounts, i),
288
287
  "aria-pressed": B,
@@ -298,10 +297,10 @@ const ME = {
298
297
  justifyContent: "left"
299
298
  },
300
299
  children: /* @__PURE__ */ _(
301
- u,
300
+ EE,
302
301
  {
303
302
  primary: i,
304
- primaryTypographyProps: { variant: "caption", fontWeight: "bold" }
303
+ primaryTypographyProps: { variant: "XSmall", fontWeight: "bold" }
305
304
  }
306
305
  )
307
306
  }
@@ -350,7 +349,7 @@ const ME = {
350
349
  ]
351
350
  }
352
351
  ),
353
- /* @__PURE__ */ m(F, { direction: "row", justifyContent: "flex-end", padding: 12, spacing: 16, children: [
352
+ /* @__PURE__ */ M(F, { direction: "row", justifyContent: "flex-end", padding: 12, spacing: 16, children: [
354
353
  /* @__PURE__ */ _(H, { onClick: a, variant: "outlined", children: I.cancelButton }),
355
354
  /* @__PURE__ */ _(
356
355
  H,
@@ -368,7 +367,7 @@ const ME = {
368
367
  );
369
368
  };
370
369
  q.displayName = "AccountFilterOptions";
371
- const NI = ({
370
+ const hE = ({
372
371
  accounts: E,
373
372
  copy: N,
374
373
  onFilterClick: I,
@@ -389,7 +388,7 @@ const NI = ({
389
388
  }, P = () => {
390
389
  A(null);
391
390
  };
392
- return /* @__PURE__ */ m($, { className: "mx-cmn-account-filter", m: 4, sx: { ...s }, children: [
391
+ return /* @__PURE__ */ M($, { className: "mx-cmn-account-filter", m: 4, sx: { ...s }, children: [
393
392
  C ? /* @__PURE__ */ _(
394
393
  H,
395
394
  {
@@ -402,8 +401,8 @@ const NI = ({
402
401
  variant: L,
403
402
  children: N.accountFilterOptionsCopy.filterButton
404
403
  }
405
- ) : /* @__PURE__ */ _(b, { id: "filter-accounts", placement: "bottom", title: N.title, children: /* @__PURE__ */ _(
406
- p,
404
+ ) : /* @__PURE__ */ _(p, { id: "filter-accounts", placement: "bottom", title: N.title, children: /* @__PURE__ */ _(
405
+ c,
407
406
  {
408
407
  "aria-controls": "filter_accounts",
409
408
  "aria-describedby": "filter-accounts",
@@ -425,10 +424,10 @@ const NI = ({
425
424
  onAccountClick: (O) => {
426
425
  e({ ...l, [O.guid]: !l[O.guid] });
427
426
  },
428
- onAccountGroupClick: (O, G, M) => {
427
+ onAccountGroupClick: (O, G, m) => {
429
428
  const i = { ...l };
430
429
  G[O].forEach((h) => {
431
- i[h.guid] = !M;
430
+ i[h.guid] = !m;
432
431
  }), e(i);
433
432
  },
434
433
  onCancelClick: () => {
@@ -446,7 +445,7 @@ const NI = ({
446
445
  }
447
446
  )
448
447
  ] });
449
- }, hE = ({ status: E = t.Loading }) => {
448
+ }, NI = hE, fE = ({ status: E = t.Loading }) => {
450
449
  const { connect: N } = o();
451
450
  return /* @__PURE__ */ _(
452
451
  $,
@@ -456,10 +455,10 @@ const NI = ({
456
455
  position: "absolute",
457
456
  width: "100%"
458
457
  },
459
- children: /* @__PURE__ */ m(F, { alignItems: "center", direction: "column", justifyContent: "center", sx: { height: "100%" }, children: [
458
+ children: /* @__PURE__ */ M(F, { alignItems: "center", direction: "column", justifyContent: "center", sx: { height: "100%" }, children: [
460
459
  E === t.Loading && /* @__PURE__ */ _(lE, { color: "primary", size: 48 }),
461
460
  /* @__PURE__ */ _(
462
- n,
461
+ b,
463
462
  {
464
463
  sx: {
465
464
  color: "grey.600",
@@ -471,9 +470,9 @@ const NI = ({
471
470
  ] })
472
471
  }
473
472
  );
474
- }, J = Q(hE);
475
- var t = /* @__PURE__ */ ((E) => (E.Loading = "loading", E.Error = "error", E))(t || {}), fE = /* @__PURE__ */ ((E) => (E.Currency = "currency", E.Date = "date", E.Input = "input", E.Select = "select", E))(fE || {});
476
- const j = "connect_widget", rI = "connections_widget", tE = ({
473
+ }, J = Q(fE);
474
+ var t = /* @__PURE__ */ ((E) => (E.Loading = "loading", E.Error = "error", E))(t || {}), tE = /* @__PURE__ */ ((E) => (E.Currency = "currency", E.Date = "date", E.Input = "input", E.Select = "select", E))(tE || {});
475
+ const j = "connect_widget", rI = "connections_widget", HE = ({
477
476
  loadWidgetProps: E,
478
477
  onClose: N,
479
478
  showConnectWidget: I,
@@ -512,18 +511,18 @@ const j = "connect_widget", rI = "connections_widget", tE = ({
512
511
  N(), a();
513
512
  },
514
513
  title: R,
515
- children: /* @__PURE__ */ m("div", { id: j, children: [
514
+ children: /* @__PURE__ */ M("div", { id: j, children: [
516
515
  A && /* @__PURE__ */ _(J, { status: t.Error }),
517
516
  C && /* @__PURE__ */ _(J, { status: t.Loading })
518
517
  ] })
519
518
  }
520
519
  );
521
- }, RI = Q(tE);
520
+ }, RI = Q(HE);
522
521
  export {
523
522
  T as A,
524
523
  dE as C,
525
524
  CE as E,
526
- fE as F,
525
+ tE as F,
527
526
  DE as M,
528
527
  pE as N,
529
528
  LE as P,
@@ -535,8 +534,8 @@ export {
535
534
  J as e,
536
535
  t as f,
537
536
  AE as g,
538
- PE as h,
539
- uE as i,
537
+ uE as h,
538
+ PE as i,
540
539
  sE as j,
541
540
  NI as k,
542
541
  RI as l,
@@ -3,9 +3,9 @@ import s from "react";
3
3
  import { observer as E } from "mobx-react-lite";
4
4
  import { useTheme as b } from "@mui/material/styles";
5
5
  import { ConnectionsWidget as D } from "@mxenabled/web-widget-sdk";
6
- import { d as a, e as c, f as i } from "./ConnectDrawer-DVp54lUH.mjs";
6
+ import { d as a, e as c, f as i } from "./ConnectDrawer-BIbTqYOH.mjs";
7
7
  import { d as L, e as w, u as _ } from "./hooks-C41HAxM5.mjs";
8
- import { D as x } from "./Drawer-BF40nbsH.mjs";
8
+ import { D as x } from "./Drawer-BEtCk82g.mjs";
9
9
  const I = ({
10
10
  onClose: l,
11
11
  showConnectionsWidget: o,
@@ -0,0 +1,85 @@
1
+ import { jsx as i } from "react/jsx-runtime";
2
+ import m from "react";
3
+ import { css as q } from "@mxenabled/cssinjs";
4
+ import { v4 as B } from "uuid";
5
+ import { useTokens as L, TextField as O, P as _ } from "@mxenabled/mxui";
6
+ import { b as y, g as C } from "./Localization-2MODESHW.mjs";
7
+ import { g as W, C as j, f as g, M as b } from "./NumberFormatting-DjTD0t3W.mjs";
8
+ import { u as D } from "./hooks-C41HAxM5.mjs";
9
+ const F = ({
10
+ allowDecimals: o = !0,
11
+ ariaLabel: h,
12
+ amount: c,
13
+ amountIsRequired: $ = !0,
14
+ copy: a,
15
+ customValidate: M = () => !0,
16
+ errorText: S = "",
17
+ label: u,
18
+ minAmount: f = 1,
19
+ setAmount: x,
20
+ setHasValidInput: r,
21
+ ...N
22
+ }) => {
23
+ const [l, t] = m.useState(""), { common: T } = D(), n = a || T.currency_input, k = L(), P = G(k), R = /^[0-9]*$/, A = /^(\d)*(\,)?([0-9]{1,2})?$/, E = /^(\d)*(\.)?([0-9]{1,2})?$/;
24
+ let s;
25
+ const p = m.useRef(B());
26
+ if (o)
27
+ switch (W()) {
28
+ case j.CAD:
29
+ s = A;
30
+ break;
31
+ default:
32
+ s = E;
33
+ break;
34
+ }
35
+ else
36
+ s = R;
37
+ m.useEffect(() => {
38
+ d(c);
39
+ }, [c]);
40
+ const d = (e) => {
41
+ !$ && (e === "" || e === "." || e === ",") ? (t(""), r?.(!1)) : Number(e) < f ? (t(
42
+ y(
43
+ n.error_amount_must_be_equal_to,
44
+ g(f, "0")
45
+ )
46
+ ), r?.(!1)) : Number(e) > b ? (t(
47
+ y(
48
+ n.error_amount_must_be_less_than_or_equal_to,
49
+ g(b, o ? "0,0.00" : "0,0", Math.floor)
50
+ )
51
+ ), r?.(!1)) : e.toString().match(s) ? M() ? (t(""), r?.(!0)) : (t(S), r?.(!1)) : (t(n.error_amount_is_invalid), r?.(!1)), x(e.toString());
52
+ };
53
+ return /* @__PURE__ */ i(
54
+ O,
55
+ {
56
+ InputProps: {
57
+ endAdornment: C().includes("fr-ca") ? /* @__PURE__ */ i(_, { children: "$" }) : void 0,
58
+ startAdornment: C().includes("fr-ca") ? void 0 : /* @__PURE__ */ i(_, { children: "$" })
59
+ },
60
+ className: `mx-cmn-currency-input ${P}`,
61
+ error: !!l,
62
+ helperText: l,
63
+ hiddenLabel: !u,
64
+ id: `currency-input-${p.current}`,
65
+ inputMode: o ? "decimal" : "numeric",
66
+ inputProps: {
67
+ "aria-label": h || n.enter_amount,
68
+ noValidate: !0,
69
+ pattern: "[0-9]*"
70
+ },
71
+ label: u,
72
+ name: `currency-input-${p.current}`,
73
+ onChange: (e) => d(e.target.value),
74
+ value: c,
75
+ ...N
76
+ }
77
+ );
78
+ }, G = (o) => q({
79
+ "& .MuiInputBase-adornedStart > .p": {
80
+ marginRight: o.Spacing.Tiny
81
+ }
82
+ }), Q = F;
83
+ export {
84
+ Q as C
85
+ };
@@ -8,7 +8,7 @@ import { nextDay as c } from "date-fns/nextDay";
8
8
  import { setDate as d } from "date-fns/setDate";
9
9
  import { startOfToday as o } from "date-fns/startOfToday";
10
10
  import { fromUnixTime as i } from "date-fns/fromUnixTime";
11
- import { f as D, a as f } from "./Dialog-CDV0kKxj.mjs";
11
+ import { f as D, a as f } from "./Dialog-BPTr3qHE.mjs";
12
12
  const x = (t) => {
13
13
  const e = y(t);
14
14
  let r = c(t, e);
@@ -1,6 +1,6 @@
1
1
  import { makeAutoObservable as l } from "mobx";
2
2
  import { getDate as r, fromUnixTime as _, startOfMonth as m } from "date-fns";
3
- import { A as p } from "./ConnectDrawer-DVp54lUH.mjs";
3
+ import { A as p } from "./ConnectDrawer-BIbTqYOH.mjs";
4
4
  const E = 12, T = 100;
5
5
  var c = /* @__PURE__ */ ((a) => (a[a.FASTEST_PAYOFF_FIRST = 1] = "FASTEST_PAYOFF_FIRST", a[a.HIGHEST_INTEREST = 2] = "HIGHEST_INTEREST", a[a.LOWEST_BALANCE = 3] = "LOWEST_BALANCE", a[a.HIGHEST_BALANCE = 4] = "HIGHEST_BALANCE", a))(c || {});
6
6
  const b = {
@@ -56,8 +56,8 @@ class A {
56
56
  }
57
57
  }
58
58
  export {
59
- A as D,
59
+ c as D,
60
60
  T as I,
61
61
  E as M,
62
- c as a
62
+ A as a
63
63
  };