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

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 (90) hide show
  1. package/dist/{Account-B4CDD-zq.mjs → Account-Cp30A3ad.mjs} +1 -1
  2. package/dist/AccountDetailsContent-C1HumFnW.mjs +683 -0
  3. package/dist/{AccountDetailsHeader-DRjFuyJT.mjs → AccountDetailsHeader-NMx79DGs.mjs} +17 -17
  4. package/dist/{AccountFields-Cl4KHoSj.mjs → AccountFields-CW6cIthP.mjs} +8 -8
  5. package/dist/AccountListItem-DxmAs98Z.mjs +90 -0
  6. package/dist/{AccountStore-HbVblv86.mjs → AccountStore-hIs-yA6W.mjs} +3 -3
  7. package/dist/{Accounts-CRUehOiy.mjs → Accounts-DUHkUyK4.mjs} +1 -1
  8. package/dist/{BudgetUtil-Jv8h9H9l.mjs → BudgetUtil-CIDAPPPT.mjs} +30 -30
  9. package/dist/{CashflowStore-CA190BPF.mjs → CashflowStore-naOtJcwo.mjs} +22 -15
  10. package/dist/{CategorySelectorDrawer-Dl006GKy.mjs → CategorySelectorDrawer-DqDAA_5I.mjs} +26 -26
  11. package/dist/{ConnectDrawer-DVp54lUH.mjs → ConnectDrawer-Dn1MlqLz.mjs} +60 -61
  12. package/dist/{ConnectionsDrawer-Dsc04-4Z.mjs → ConnectionsDrawer-CSo6AFkG.mjs} +2 -2
  13. package/dist/CurrencyInput-BrGvhgVK.mjs +85 -0
  14. package/dist/{DebtsStore-pL63fmdT.mjs → DebtsStore-hi1cqrRk.mjs} +3 -3
  15. package/dist/{Drawer-BF40nbsH.mjs → Drawer-Dqe5EqvA.mjs} +6 -6
  16. package/dist/{ExportCsvAction-QhQK4_FU.mjs → ExportCsvAction-CQ1grpwo.mjs} +3 -3
  17. package/dist/{FinstrongStore-BGf36b0z.mjs → FinstrongStore-dKZOZ2hM.mjs} +3 -3
  18. package/dist/{GoalStore-C1-w3Y1E.mjs → GoalStore-CFeAJloA.mjs} +3 -3
  19. package/dist/HeaderCell-DjuifqHJ.mjs +6 -0
  20. package/dist/{Help-DBfsTkAi.mjs → Help-i4OasOO-.mjs} +176 -158
  21. package/dist/{LineChart-C1PxNf7P.mjs → LineChart-bc1D9xBE.mjs} +78 -78
  22. package/dist/Loader-BSWSYqvn.mjs +24 -0
  23. package/dist/{ManageIncome-8EsStyIQ.mjs → ManageIncome-D_qVX5dN.mjs} +44 -44
  24. package/dist/{MiniWidgetContainer-CKzf_Ira.mjs → MiniWidgetContainer-D7MkHG15.mjs} +12 -12
  25. package/dist/{NetWorthStore-Bti6u-d9.mjs → NetWorthStore-8FFC1Bs0.mjs} +2 -2
  26. package/dist/{NotificationSettings-B74rQVYC.mjs → NotificationSettings-BsWiYD94.mjs} +67 -67
  27. package/dist/{OriginalBalanceAction-2Y_3U_mg.mjs → OriginalBalanceAction-62e0mU_3.mjs} +7 -7
  28. package/dist/{RecurringSettings-DAncu--R.mjs → RecurringSettings-RfZ8Wuhh.mjs} +3 -3
  29. package/dist/{RecurringTransactions-CxcSL1dY.mjs → RecurringTransactions-Bhx56aA3.mjs} +76 -76
  30. package/dist/{RecurringTransactionsStore-CNFxyGB6.mjs → RecurringTransactionsStore-D3EOKZ2B.mjs} +1 -1
  31. package/dist/{ResponsiveButton-Cn6-R7ue.mjs → ResponsiveButton-C6KH8JH4.mjs} +1 -1
  32. package/dist/SearchBox-B2_zLv8-.mjs +42 -0
  33. package/dist/{SingleSegmentDonut-7Uy6VEld.mjs → SingleSegmentDonut-PsRQPkmV.mjs} +1 -1
  34. package/dist/{SpendingLegend-6FqtMcBV.mjs → SpendingLegend-CZzDb-7d.mjs} +10 -10
  35. package/dist/TransactionDetails-Duv1X9ec.mjs +1379 -0
  36. package/dist/{TransactionStore-DbwAutwC.mjs → TransactionStore-DgLrYW4C.mjs} +3 -3
  37. package/dist/{User-BklmOUSd.mjs → User-DqNX2GAK.mjs} +107 -107
  38. package/dist/{ViewMoreMicroCard-DAkyNRlD.mjs → ViewMoreMicroCard-CH9E-jOx.mjs} +178 -177
  39. package/dist/{WidgetContainer-CDh9fjpR.mjs → WidgetContainer-B1Jzb4XA.mjs} +6 -6
  40. package/dist/accounts/index.es.js +45 -45
  41. package/dist/analytics/index.es.js +22 -22
  42. package/dist/budgets/index.es.js +266 -265
  43. package/dist/cashflow/index.es.js +155 -154
  44. package/dist/categories/index.es.js +1 -1
  45. package/dist/common/components/Loader.d.ts +2 -1
  46. package/dist/common/components/accountfilter/AccountFilterOptions.d.ts +1 -1
  47. package/dist/common/components/barchart/Bar.d.ts +25 -0
  48. package/dist/common/components/barchart/BarChart.d.ts +34 -0
  49. package/dist/common/components/barchart/BarColumn.d.ts +37 -0
  50. package/dist/common/components/barchart/Legend.d.ts +8 -0
  51. package/dist/common/components/barchart/Util.d.ts +42 -0
  52. package/dist/common/components/barchart/index.d.ts +1 -0
  53. package/dist/common/components/charts/linechart/CustomMark.d.ts +1 -1
  54. package/dist/common/components/index.d.ts +1 -0
  55. package/dist/common/index.es.js +659 -394
  56. package/dist/common/utils/Theme.d.ts +3 -1
  57. package/dist/dashboard/index.es.js +21 -21
  58. package/dist/debts/components/DebtsChart.d.ts +2 -1
  59. package/dist/debts/index.es.js +438 -438
  60. package/dist/{exportTransactionsToCSV-BgV_wTLT.mjs → exportTransactionsToCSV-BFpuIAXW.mjs} +1 -1
  61. package/dist/finstrong/index.es.js +113 -113
  62. package/dist/goals/index.es.js +379 -385
  63. package/dist/help/components/content/BottomImageContent.d.ts +1 -1
  64. package/dist/help/components/content/LeftImageContent.d.ts +1 -1
  65. package/dist/help/components/content/RightImageContent.d.ts +1 -1
  66. package/dist/help/components/content/TopImageContent.d.ts +1 -1
  67. package/dist/help/index.es.js +3 -3
  68. package/dist/investments/index.es.js +279 -278
  69. package/dist/merchants/index.es.js +16 -16
  70. package/dist/microinsights/index.es.js +1 -1
  71. package/dist/networth/components/NetWorthChange.d.ts +1 -3
  72. package/dist/networth/index.es.js +185 -191
  73. package/dist/notifications/index.es.js +29 -29
  74. package/dist/recurringtransactions/index.es.js +82 -82
  75. package/dist/settings/index.es.js +254 -254
  76. package/dist/spending/index.es.js +43 -43
  77. package/dist/transactions/components/shared/transactionlist/DateRow.d.ts +7 -0
  78. package/dist/transactions/index.es.js +150 -149
  79. package/dist/trends/index.es.js +297 -296
  80. package/dist/{useAccountDisplayName-CcIp09Xc.mjs → useAccountDisplayName-usSZCQ7I.mjs} +1 -1
  81. package/dist/{useCombineEvents-kNzLTWCp.mjs → useCombineEvents-CRwX-qWE.mjs} +2 -2
  82. package/dist/{useScreenSize-B5afALev.mjs → useScreenSize-B6JyS_Lj.mjs} +1 -1
  83. package/package.json +30 -30
  84. package/dist/AccountDetailsContent-adZTkM52.mjs +0 -683
  85. package/dist/AccountListItem-wgmlex-_.mjs +0 -90
  86. package/dist/CurrencyInput-D1cjbdCI.mjs +0 -85
  87. package/dist/HeaderCell-P8w6CmfO.mjs +0 -6
  88. package/dist/Loader-Ckqi9Rx6.mjs +0 -21
  89. package/dist/SearchBox-B7km148n.mjs +0 -39
  90. package/dist/TransactionDetails-Bn0qY5Hw.mjs +0 -1336
@@ -12,9 +12,9 @@ import Y from "@mui/material/Stack";
12
12
  import { ChevronLeft as le } from "@mxenabled/mx-icons";
13
13
  import { Icon as T, Text as X, DateRangePicker as J, H1 as Ce, H3 as de } from "@mxenabled/mxui";
14
14
  import { u as Te } from "./useDimensions-27p2evRx.mjs";
15
- import { L as Ie } from "./Loader-Ckqi9Rx6.mjs";
15
+ import { L as Ie } from "./Loader-BSWSYqvn.mjs";
16
16
  import { g as Ee, b as Re, u as ge, a as Ae, W as ue } from "./hooks-C41HAxM5.mjs";
17
- import { u as ie } from "./useScreenSize-B5afALev.mjs";
17
+ import { u as ie } from "./useScreenSize-B6JyS_Lj.mjs";
18
18
  import { addMonths as Q } from "date-fns/addMonths";
19
19
  import { addDays as Se } from "date-fns/addDays";
20
20
  import { addYears as ee } from "date-fns/addYears";
@@ -34,10 +34,10 @@ 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
- import { useTheme as Ge } from "@mui/material/styles";
37
+ import Ge from "@mui/material/styles/useTheme";
38
38
  import { f as K, a as G, D as Me } from "./Dialog-CDV0kKxj.mjs";
39
- import { D as We } from "./Drawer-BF40nbsH.mjs";
40
- import { k as ye, l as xe } from "./ConnectDrawer-DVp54lUH.mjs";
39
+ import { D as We } from "./Drawer-Dqe5EqvA.mjs";
40
+ import { k as ye, l as xe } from "./ConnectDrawer-Dn1MlqLz.mjs";
41
41
  const ve = {
42
42
  ACCOUNTS_CLICK_ACCOUNT: "accounts_widget_click_account",
43
43
  ACCOUNTS_CLICK_CONNECT: "accounts_widget_click_connect_accounts",
@@ -322,7 +322,7 @@ const ve = {
322
322
  children: C.tabs.map((e) => /* @__PURE__ */ t(
323
323
  fe,
324
324
  {
325
- label: /* @__PURE__ */ t(X, { bold: !0, variant: "body1", children: e.label }),
325
+ label: /* @__PURE__ */ t(X, { bold: !0, variant: "Body", children: e.label }),
326
326
  sx: { minWidth: 80 },
327
327
  value: e.value
328
328
  },
@@ -1,36 +1,36 @@
1
1
  import { jsx as e, jsxs as r } from "react/jsx-runtime";
2
2
  import s from "react";
3
3
  import { observer as g } from "mobx-react-lite";
4
- import B from "@mui/material/Stack";
4
+ import I from "@mui/material/Stack";
5
5
  import { Text as V } from "@mxenabled/mxui";
6
6
  import { S as U } from "../SkeletonLoader-BaNboJjD.mjs";
7
- import N from "@mui/material/Box";
7
+ import D from "@mui/material/Box";
8
8
  import y from "@mui/material/Divider";
9
9
  import E from "@mui/material/List";
10
- import O from "@mui/material/ListSubheader";
10
+ import N from "@mui/material/ListSubheader";
11
11
  import x from "@mui/system/Stack";
12
12
  import { useTheme as Q } from "@mui/material/styles";
13
- import { u as P, A as X } from "../AccountDetailsHeader-DRjFuyJT.mjs";
14
- import { L as e1 } from "../LineChart-C1PxNf7P.mjs";
13
+ import { u as P, A as X } from "../AccountDetailsHeader-NMx79DGs.mjs";
14
+ import { L as e1 } from "../LineChart-bc1D9xBE.mjs";
15
15
  import { g as t1, a as l1, b as n1 } from "../SpendingData-DPQ96k3x.mjs";
16
- import { m as i1, u as v, b as S, d as F, g as G, a as o1, n as C1 } from "../hooks-C41HAxM5.mjs";
17
- import { A as W, l as j, m as d1 } from "../ConnectDrawer-DVp54lUH.mjs";
18
- import { F as C3, f as d3 } from "../ConnectDrawer-DVp54lUH.mjs";
19
- import { I as Y, P as $, S as K } from "../Account-B4CDD-zq.mjs";
20
- import { a as c1 } from "../AccountFields-Cl4KHoSj.mjs";
21
- import { g as s3, b as a3 } from "../AccountFields-Cl4KHoSj.mjs";
22
- import { A as T } from "../AccountListItem-wgmlex-_.mjs";
23
- import { A as s1 } from "../AccountDetailsContent-adZTkM52.mjs";
24
- import { u as u3 } from "../AccountDetailsContent-adZTkM52.mjs";
25
- import { D as a1 } from "../Drawer-BF40nbsH.mjs";
26
- import { f as I } from "../NumberFormatting-DjTD0t3W.mjs";
27
- import { A as b, W as r1 } from "../WidgetContainer-CDh9fjpR.mjs";
28
- import { C as u1 } from "../ConnectionsDrawer-Dsc04-4Z.mjs";
29
- import { L as D } from "../Loader-Ckqi9Rx6.mjs";
30
- import { u as z } from "../useScreenSize-B5afALev.mjs";
16
+ import { m as i1, u as v, b, d as F, g as G, a as o1, n as C1 } from "../hooks-C41HAxM5.mjs";
17
+ import { A as O, l as j, m as d1 } from "../ConnectDrawer-Dn1MlqLz.mjs";
18
+ import { F as C3, f as d3 } from "../ConnectDrawer-Dn1MlqLz.mjs";
19
+ import { I as Y, P as $, S as K } from "../Account-Cp30A3ad.mjs";
20
+ import { a as c1 } from "../AccountFields-CW6cIthP.mjs";
21
+ import { g as s3, b as a3 } from "../AccountFields-CW6cIthP.mjs";
22
+ import { A as T } from "../AccountListItem-DxmAs98Z.mjs";
23
+ import { A as s1 } from "../AccountDetailsContent-C1HumFnW.mjs";
24
+ import { u as u3 } from "../AccountDetailsContent-C1HumFnW.mjs";
25
+ import { D as a1 } from "../Drawer-Dqe5EqvA.mjs";
26
+ import { f as W } from "../NumberFormatting-DjTD0t3W.mjs";
27
+ import { A as S, W as r1 } from "../WidgetContainer-B1Jzb4XA.mjs";
28
+ import { C as u1 } from "../ConnectionsDrawer-CSo6AFkG.mjs";
29
+ import { L as B } from "../Loader-BSWSYqvn.mjs";
30
+ import { u as z } from "../useScreenSize-B6JyS_Lj.mjs";
31
31
  import L1 from "@mui/material/ListItem";
32
- import { M as q } from "../MiniWidgetContainer-CKzf_Ira.mjs";
33
- import { A as h3, a as H3 } from "../AccountStore-HbVblv86.mjs";
32
+ import { M as q } from "../MiniWidgetContainer-D7MkHG15.mjs";
33
+ import { A as h3, a as H3 } from "../AccountStore-hIs-yA6W.mjs";
34
34
  const h1 = (o, C) => {
35
35
  const n = Y.includes(C) ? t1(o) : [], l = $.includes(C) ? l1(o) : [], u = K.includes(C) ? n1(o) : [];
36
36
  return [n, l, u].filter((i) => i.length > 0);
@@ -49,7 +49,7 @@ const h1 = (o, C) => {
49
49
  }
50
50
  return d;
51
51
  }, p1 = () => {
52
- const o = Q(), { selectedAccount: C } = P(), { monthlyCategoryTotals: n } = i1(), { trends: l } = v(), u = [o.palette.chart?.chart1, o.palette.chart?.chart2], i = h1(n, C.account_type), L = H1(i, C.account_type, l), d = [W.LOAN, W.MORTGAGE].includes(C.account_type);
52
+ const o = Q(), { selectedAccount: C } = P(), { monthlyCategoryTotals: n } = i1(), { trends: l } = v(), u = [o.palette.chart?.chart1, o.palette.chart?.chart2], i = h1(n, C.account_type), L = H1(i, C.account_type, l), d = [O.LOAN, O.MORTGAGE].includes(C.account_type);
53
53
  return /* @__PURE__ */ e("div", { "data-testid": "TrendsChart", children: /* @__PURE__ */ e(
54
54
  e1,
55
55
  {
@@ -64,7 +64,7 @@ const h1 = (o, C) => {
64
64
  }
65
65
  ) });
66
66
  }, f1 = g(p1), m1 = () => {
67
- const [o, C] = s.useState(""), { accounts: n } = v(), { selectedAccounts: l } = S(), { setSelectedAccount: u, setSelectedMember: i } = P(), { members: L } = F(), { onEvent: d } = G(), h = [...new Set(l.map((t) => t.account_type))], p = l.find((t) => o === t.guid), H = s.useMemo(
67
+ const [o, C] = s.useState(""), { accounts: n } = v(), { selectedAccounts: l } = b(), { setSelectedAccount: u, setSelectedMember: i } = P(), { members: L } = F(), { onEvent: d } = G(), h = [...new Set(l.map((t) => t.account_type))], p = l.find((t) => o === t.guid), H = s.useMemo(
68
68
  () => l.filter((t) => t.is_hidden),
69
69
  [l]
70
70
  ), f = s.useMemo(
@@ -82,25 +82,25 @@ const h1 = (o, C) => {
82
82
  }
83
83
  }, [p, o]);
84
84
  const _ = (t) => {
85
- C(t.guid), d(b.ACCOUNTS_CLICK_ACCOUNT, {
85
+ C(t.guid), d(S.ACCOUNTS_CLICK_ACCOUNT, {
86
86
  account_guid: t.guid,
87
87
  account_type: t.account_type
88
88
  });
89
89
  }, w = (t) => {
90
90
  const a = t === "hidden" ? H : f, A = t === "hidden" ? M : R, c = t === "hidden" ? n.account_hidden : n.account_closed;
91
- return /* @__PURE__ */ e(N, { children: /* @__PURE__ */ e(
91
+ return /* @__PURE__ */ e(D, { children: /* @__PURE__ */ e(
92
92
  E,
93
93
  {
94
94
  "aria-label": c,
95
- subheader: /* @__PURE__ */ e(O, { component: "h2", sx: { backgroundColor: "transparent", px: 24 }, children: /* @__PURE__ */ r(
95
+ subheader: /* @__PURE__ */ e(N, { component: "h2", sx: { backgroundColor: "transparent", px: 24 }, children: /* @__PURE__ */ r(
96
96
  x,
97
97
  {
98
98
  component: "span",
99
99
  direction: "row",
100
100
  sx: { justifyContent: "space-between", color: "grey.700" },
101
101
  children: [
102
- /* @__PURE__ */ e(V, { bold: !0, variant: "body1", children: c }),
103
- /* @__PURE__ */ e(V, { bold: !0, variant: "body1", children: I(A, "0,0.00") })
102
+ /* @__PURE__ */ e(V, { bold: !0, variant: "Body", children: c }),
103
+ /* @__PURE__ */ e(V, { bold: !0, variant: "Body", children: W(A, "0,0.00") })
104
104
  ]
105
105
  }
106
106
  ) }),
@@ -137,7 +137,7 @@ const h1 = (o, C) => {
137
137
  }
138
138
  ) });
139
139
  };
140
- return /* @__PURE__ */ r(N, { sx: { pt: 24 }, children: [
140
+ return /* @__PURE__ */ r(D, { sx: { pt: 24 }, children: [
141
141
  h.map((t) => {
142
142
  const a = l.filter(
143
143
  (c) => c.account_type === t && !c.is_closed && !c.is_hidden
@@ -149,15 +149,15 @@ const h1 = (o, C) => {
149
149
  E,
150
150
  {
151
151
  "aria-label": n.account_type_accounts[a[0]?.account_type],
152
- subheader: /* @__PURE__ */ e(O, { component: "h2", sx: { backgroundColor: "transparent", px: 24 }, children: /* @__PURE__ */ r(
152
+ subheader: /* @__PURE__ */ e(N, { component: "h2", sx: { backgroundColor: "transparent", px: 24 }, children: /* @__PURE__ */ r(
153
153
  x,
154
154
  {
155
155
  component: "span",
156
156
  direction: "row",
157
157
  sx: { display: "flex", justifyContent: "space-between" },
158
158
  children: [
159
- /* @__PURE__ */ e(V, { bold: !0, variant: "body1", children: n.account_types[t] }),
160
- /* @__PURE__ */ e(V, { bold: !0, variant: "body1", children: I(A, "0,0.00") })
159
+ /* @__PURE__ */ e(V, { bold: !0, variant: "Body", children: n.account_types[t] }),
160
+ /* @__PURE__ */ e(V, { bold: !0, variant: "Body", children: W(A, "0,0.00") })
161
161
  ]
162
162
  }
163
163
  ) }),
@@ -204,7 +204,7 @@ const h1 = (o, C) => {
204
204
  )
205
205
  ] });
206
206
  }, V1 = g(m1), g1 = ({ onBackClick: o, sx: C = {} }) => {
207
- const [n, l] = s.useState(!1), [u, i] = s.useState(!1), { config: L } = o1(), { detailedAccounts: d, isAccountDataLoaded: h, loadAccountData: p } = F(), { accounts: H, connect: f } = v(), { isInitialized: M, selectedAccountGuids: R, setSelectedAccounts: _ } = S(), { isDesktop: w } = z(), { onEvent: t } = G(), { onLoad: a } = C1();
207
+ const [n, l] = s.useState(!1), [u, i] = s.useState(!1), { config: L } = o1(), { detailedAccounts: d, isAccountDataLoaded: h, loadAccountData: p } = F(), { accounts: H, connect: f } = v(), { isInitialized: M, selectedAccountGuids: R, setSelectedAccounts: _ } = b(), { isDesktop: w } = z(), { onEvent: t } = G(), { onLoad: a } = C1();
208
208
  s.useEffect(() => {
209
209
  h || p().finally();
210
210
  }, []), s.useEffect(() => {
@@ -213,9 +213,9 @@ const h1 = (o, C) => {
213
213
  h && a?.("AccountsWidget");
214
214
  }, [h]);
215
215
  const A = () => {
216
- l(!0), t(b.ACCOUNTS_CLICK_CONNECT);
216
+ l(!0), t(S.ACCOUNTS_CLICK_CONNECT);
217
217
  }, c = () => {
218
- i(!0), t(b.ACCOUNTS_CLICK_CONNECT);
218
+ i(!0), t(S.ACCOUNTS_CLICK_CONNECT);
219
219
  };
220
220
  return M ? /* @__PURE__ */ r(
221
221
  r1,
@@ -229,12 +229,12 @@ const h1 = (o, C) => {
229
229
  onClick: c
230
230
  }
231
231
  ] : [],
232
- onAccountsFilterClick: () => t(b.ACCOUNTS_CLICK_FILTER),
232
+ onAccountsFilterClick: () => t(S.ACCOUNTS_CLICK_FILTER),
233
233
  onBackClick: o,
234
234
  sx: C,
235
235
  title: H.title,
236
236
  children: [
237
- h ? /* @__PURE__ */ r(B, { sx: { px: w ? 24 : 12 }, children: [
237
+ h ? /* @__PURE__ */ r(I, { sx: { px: w ? 24 : 12 }, children: [
238
238
  R.length < 1 && /* @__PURE__ */ e(V, { display: "flex", justifyContent: "center", my: 24, children: H.no_accounts }),
239
239
  /* @__PURE__ */ e(V1, {})
240
240
  ] }) : /* @__PURE__ */ e(U, { sx: { px: w ? 48 : 24, pt: 24 }, variant: "list" }),
@@ -256,9 +256,9 @@ const h1 = (o, C) => {
256
256
  )
257
257
  ]
258
258
  }
259
- ) : /* @__PURE__ */ e(D, {});
259
+ ) : /* @__PURE__ */ e(B, {});
260
260
  }, t3 = g(g1), v1 = ({ onPrimaryCtaClick: o, sx: C }) => {
261
- const { visibleAccounts: n, isAccountDataLoaded: l, loadAccountData: u } = F(), { accounts: i } = v(), { isInitialized: L, selectedAccounts: d, setSelectedAccounts: h } = S(), { isDesktop: p } = z();
261
+ const { visibleAccounts: n, isAccountDataLoaded: l, loadAccountData: u } = F(), { accounts: i } = v(), { isInitialized: L, selectedAccounts: d, setSelectedAccounts: h } = b(), { isDesktop: p } = z();
262
262
  s.useEffect(() => {
263
263
  l || u().finally();
264
264
  }, []), s.useEffect(() => {
@@ -294,7 +294,7 @@ const h1 = (o, C) => {
294
294
  })
295
295
  ] }) : /* @__PURE__ */ e(U, { sx: { px: 12, py: 8 }, variant: "list" })
296
296
  }
297
- ) : /* @__PURE__ */ e(D, {});
297
+ ) : /* @__PURE__ */ e(B, {});
298
298
  }, l3 = g(v1), M1 = () => /* @__PURE__ */ r(
299
299
  "svg",
300
300
  {
@@ -736,7 +736,7 @@ const h1 = (o, C) => {
736
736
  }
737
737
  ), R1 = () => {
738
738
  const { connect: o } = v();
739
- return /* @__PURE__ */ r(B, { alignItems: "center", direction: "column", m: 24, children: [
739
+ return /* @__PURE__ */ r(I, { alignItems: "center", direction: "column", m: 24, children: [
740
740
  /* @__PURE__ */ e(M1, {}),
741
741
  /* @__PURE__ */ e(
742
742
  V,
@@ -746,7 +746,7 @@ const h1 = (o, C) => {
746
746
  mt: 16,
747
747
  textAlign: "center"
748
748
  },
749
- variant: "subtitle1",
749
+ variant: "Paragraph",
750
750
  children: o.mini_widget_content
751
751
  }
752
752
  )
@@ -756,7 +756,7 @@ const h1 = (o, C) => {
756
756
  },
757
757
  sx: C
758
758
  }) => {
759
- const { isCopyLoaded: n } = S(), { connect: l } = v(), [u, i] = s.useState(!1), L = () => {
759
+ const { isCopyLoaded: n } = b(), { connect: l } = v(), [u, i] = s.useState(!1), L = () => {
760
760
  i(!0), o();
761
761
  };
762
762
  return n ? /* @__PURE__ */ r(
@@ -779,7 +779,7 @@ const h1 = (o, C) => {
779
779
  )
780
780
  ]
781
781
  }
782
- ) : /* @__PURE__ */ e(D, {});
782
+ ) : /* @__PURE__ */ e(B, {});
783
783
  }, n3 = g(A1);
784
784
  export {
785
785
  h3 as AccountApi,
@@ -5,15 +5,15 @@ import { SurveyQuestionType as S } from "posthog-js";
5
5
  import A from "@mui/material/Alert";
6
6
  import B from "@mui/material/Button";
7
7
  import a from "@mui/material/Stack";
8
- import { useTheme as _ } from "@mui/material/styles";
8
+ import _ from "@mui/material/styles/useTheme";
9
9
  import { Text as u, TextField as L } from "@mxenabled/mxui";
10
- import { L as W } from "../Loader-Ckqi9Rx6.mjs";
11
- import { M as j } from "../MiniWidgetContainer-CKzf_Ira.mjs";
12
- import { k as f, u as g, g as q, b as E } from "../hooks-C41HAxM5.mjs";
10
+ import { L as W } from "../Loader-BSWSYqvn.mjs";
11
+ import { M as j } from "../MiniWidgetContainer-D7MkHG15.mjs";
12
+ import { k as f, u as b, g as q, b as E } from "../hooks-C41HAxM5.mjs";
13
13
  import Q from "@mui/material/ToggleButton";
14
14
  import G from "@mui/material/ToggleButtonGroup";
15
15
  const O = () => {
16
- const { question: s, response: o, setResponse: i } = f(), { analytics: r } = g(), t = _(), p = s, m = (h, n) => {
16
+ const { question: s, response: o, setResponse: i } = f(), { analytics: r } = b(), t = _(), p = s, m = (h, n) => {
17
17
  i(n);
18
18
  };
19
19
  return /* @__PURE__ */ l(d.Fragment, { children: [
@@ -33,14 +33,14 @@ const O = () => {
33
33
  Q,
34
34
  {
35
35
  sx: {
36
- borderColor: t.palette.neutral.light,
36
+ borderColor: t.palette.border.light,
37
37
  fontWeight: "bold",
38
38
  width: `${100 / p.scale}%`,
39
39
  "&:hover": {
40
40
  backgroundColor: t.palette.background.paper
41
41
  },
42
42
  "&.Mui-selected, &.Mui-selected:hover": {
43
- backgroundColor: t.palette.mode === "dark" ? "#0749B240" : t.palette.primary.light,
43
+ backgroundColor: t.palette.mode === "dark" ? "#0749B240" : t.palette.primary.lighter,
44
44
  border: `1px solid ${t.palette.primary.main}`,
45
45
  color: t.palette.primary.main
46
46
  }
@@ -61,14 +61,14 @@ const O = () => {
61
61
  justifyContent: "space-between"
62
62
  },
63
63
  children: [
64
- /* @__PURE__ */ e(u, { bold: !0, variant: "caption", children: r.strongly_disagree }),
65
- /* @__PURE__ */ e(u, { bold: !0, variant: "caption", children: r.strongly_agree })
64
+ /* @__PURE__ */ e(u, { bold: !0, variant: "XSmall", children: r.strongly_disagree }),
65
+ /* @__PURE__ */ e(u, { bold: !0, variant: "XSmall", children: r.strongly_agree })
66
66
  ]
67
67
  }
68
68
  )
69
69
  ] });
70
- }, z = y(O), H = () => {
71
- const { response: s, setResponse: o } = f(), { analytics: i } = g();
70
+ }, X = y(O), z = () => {
71
+ const { response: s, setResponse: o } = f(), { analytics: i } = b();
72
72
  return /* @__PURE__ */ e(
73
73
  L,
74
74
  {
@@ -82,7 +82,7 @@ const O = () => {
82
82
  value: s
83
83
  }
84
84
  );
85
- }, I = y(H), D = () => {
85
+ }, H = y(z), I = () => {
86
86
  const { onEvent: s } = q(), o = _(), {
87
87
  surveyId: i,
88
88
  question: r,
@@ -92,9 +92,9 @@ const O = () => {
92
92
  questionCount: h,
93
93
  response: n,
94
94
  responsePayload: k,
95
- resetStore: b,
95
+ resetStore: g,
96
96
  survey: w
97
- } = f(), { analytics: c, common: M } = g(), { isCopyLoaded: T, isInitialized: v } = E(), [x, C] = d.useState(!1);
97
+ } = f(), { analytics: c, common: M } = b(), { isCopyLoaded: T, isInitialized: v } = E(), [x, C] = d.useState(!1);
98
98
  d.useEffect(() => {
99
99
  v && m();
100
100
  }, [v]), d.useEffect(() => {
@@ -105,11 +105,11 @@ const O = () => {
105
105
  const F = () => {
106
106
  s("survey dismissed", {
107
107
  $survey_id: i
108
- }), b(), C(!1);
108
+ }), g(), C(!1);
109
109
  }, R = () => {
110
110
  p();
111
111
  }, $ = () => {
112
- s("survey sent", k), b(), C(!0);
112
+ s("survey sent", k), g(), C(!0);
113
113
  };
114
114
  return T ? !r && !x ? null : /* @__PURE__ */ l(
115
115
  j,
@@ -134,11 +134,11 @@ const O = () => {
134
134
  r && /* @__PURE__ */ l(d.Fragment, { children: [
135
135
  /* @__PURE__ */ l(a, { sx: { gap: 4, px: 24, py: 16 }, children: [
136
136
  /* @__PURE__ */ e(u, { bold: !0, truncate: !1, children: r.question }),
137
- /* @__PURE__ */ e(u, { variant: "caption", children: h })
137
+ /* @__PURE__ */ e(u, { variant: "XSmall", children: h })
138
138
  ] }),
139
139
  /* @__PURE__ */ l(a, { sx: { gap: 6, px: 24, pb: 8 }, children: [
140
- r.type === S.Rating && /* @__PURE__ */ e(z, {}),
141
- r.type === S.Open && /* @__PURE__ */ e(I, {})
140
+ r.type === S.Rating && /* @__PURE__ */ e(X, {}),
141
+ r.type === S.Open && /* @__PURE__ */ e(H, {})
142
142
  ] }),
143
143
  /* @__PURE__ */ e(a, { sx: { px: 24, py: 16 }, children: /* @__PURE__ */ e(
144
144
  B,
@@ -146,10 +146,10 @@ const O = () => {
146
146
  disabled: !t && !n,
147
147
  onClick: t ? $ : R,
148
148
  sx: {
149
- borderColor: o.palette.neutral.light,
149
+ borderColor: o.palette.border.light,
150
150
  "&:hover": {
151
151
  // temp hardcoded dark mode color until design team decision
152
- backgroundColor: o.palette.mode === "dark" ? "#0749B240" : o.palette.primary.light,
152
+ backgroundColor: o.palette.mode === "dark" ? "#0749B240" : o.palette.primary.lighter,
153
153
  borderColor: o.palette.primary.main
154
154
  }
155
155
  },
@@ -165,7 +165,7 @@ const O = () => {
165
165
  ]
166
166
  }
167
167
  ) : /* @__PURE__ */ e(W, {});
168
- }, ie = y(D);
168
+ }, ie = y(I);
169
169
  export {
170
170
  ie as SurveyMiniWidget
171
171
  };