@mx-cartographer/experiences 8.1.10 → 8.2.0-alpha.bb0

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 (246) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/dist/{Account-CMjOp7S2.mjs → Account-BTOmbrEK.mjs} +5 -5
  3. package/dist/{Account-BIKn4XEZ.mjs → Account-DC2d-cjn.mjs} +1 -1
  4. package/dist/{AccountDetailsHeader-CzefHTWU.mjs → AccountDetailsHeader-IDZ6GTT0.mjs} +10 -10
  5. package/dist/{AccountFields-BWmpVsS3.mjs → AccountFields-BRAl-Hro.mjs} +6 -6
  6. package/dist/{AccountListItem-DRDxaRBe.mjs → AccountListItem-B8koowMf.mjs} +7 -7
  7. package/dist/{Accounts-DX3xJE97.mjs → AccountUtils-Bc-SndzX.mjs} +1 -1
  8. package/dist/{Analytics-CxK7O19c.mjs → Analytics-vgPYa2Zt.mjs} +1 -1
  9. package/dist/AnalyticsApi-DwgSyZ6m.mjs +102 -0
  10. package/dist/ApiEndpoints-DXwIYNUV.mjs +49 -0
  11. package/dist/BudgetUtil-CGchXaek.mjs +74 -0
  12. package/dist/{Category-Ccoew_sA.mjs → Category-DEKZGLYe.mjs} +3 -3
  13. package/dist/{CategorySelectorDrawer-hhDdSFHO.mjs → CategorySelectorDrawer-nHEBR24E.mjs} +2 -2
  14. package/dist/{Connect-CBBTL1HJ.mjs → Connect-Dk6GZEsA.mjs} +1 -1
  15. package/dist/ConnectCard-Dix8BoV_.mjs +54 -0
  16. package/dist/{ConnectDrawer-DNnuF80E.mjs → ConnectDrawer-DgfsTpyW.mjs} +2 -2
  17. package/dist/{ConnectionsDrawer-DX6d7uwJ.mjs → ConnectionsDrawer-D7IXAza2.mjs} +2 -2
  18. package/dist/CurrencyDialog-C7r7JqVu.mjs +371 -0
  19. package/dist/{CurrencyInput-BMbUVSvz.mjs → CurrencyInput-BUd8mAcE.mjs} +15 -16
  20. package/dist/{CurrencyText-oqd6cX3M.mjs → CurrencyText-Dd3NxFYY.mjs} +1 -1
  21. package/dist/{DateFormats-CaOj_4eI.mjs → DateFormats-BSktnUw6.mjs} +6 -7
  22. package/dist/{DateUtil-D0TO0DaZ.mjs → DateUtil-Bdm-ZxFw.mjs} +1 -1
  23. package/dist/DebtUtils-DPn1cXKG.mjs +153 -0
  24. package/dist/EmbeddedCard-CAY_HJjE.mjs +856 -0
  25. package/dist/Error-Dogaw2jO.mjs +84 -0
  26. package/dist/ErrorBoundary-CsdOcnJ9.mjs +23 -0
  27. package/dist/{ExportCsvAction-BDFu6YIe.mjs → ExportCsvAction-DzeJOb_g.mjs} +6 -5
  28. package/dist/{GlobalAccountFilter-jkFxqPg6.mjs → GlobalAccountFilter-DrhtwPqh.mjs} +1 -1
  29. package/dist/GlobalCopyApi-C75qVBk6.mjs +30 -0
  30. package/dist/GoalsUtil-B-Z6fq_t.mjs +107 -0
  31. package/dist/{Help-CgpJK03Q.mjs → Help-CkQTjORd.mjs} +6 -27
  32. package/dist/{Help-C_CM4gpK.mjs → Help-HoxJgoVt.mjs} +68 -67
  33. package/dist/InformationTooltip-4su8bn1e.mjs +41 -0
  34. package/dist/{LineChart-CeZnCZ7j.mjs → LineChart-DNynWPGz.mjs} +2 -2
  35. package/dist/{ListItemAction-CNpknVvo.mjs → ListItemAction-DGjHxNDJ.mjs} +1 -1
  36. package/dist/ListItemRow-kH1rn8Xu.mjs +67 -0
  37. package/dist/ListItemWrapper-B5r-YQQ_.mjs +42 -0
  38. package/dist/Localization-Li21_krp.mjs +37 -0
  39. package/dist/{ManageIncome-BX2IqW57.mjs → ManageIncome-C_FjST7B.mjs} +24 -24
  40. package/dist/{MicroWidgetContainer-DAesImQ6.mjs → MicroWidgetContainer-CfKdQfhi.mjs} +1 -1
  41. package/dist/{MiniWidgetContainer-BOv3n4iw.mjs → MiniWidgetContainer-BdPiUU-u.mjs} +1 -1
  42. package/dist/NetWorthUtils-CyVz9bUn.mjs +95 -0
  43. package/dist/{NotificationSettings-DatCL2Ej.mjs → NotificationSettings-B8pH9TOv.mjs} +13 -13
  44. package/dist/NotificationUtils-BRGFTePr.mjs +23 -0
  45. package/dist/{NumberFormatting-CyrvFgfd.mjs → NumberFormatting-Dnk0YyfZ.mjs} +1 -1
  46. package/dist/{OriginalBalanceAction-CWQ0CK-T.mjs → OriginalBalanceAction-BEBuqeS1.mjs} +4 -4
  47. package/dist/{RecurringSettings-DCplGEv_.mjs → RecurringSettings-eQb1AS5x.mjs} +9 -9
  48. package/dist/RecurringTransactionsUtil-DbMNqEu_.mjs +253 -0
  49. package/dist/Select-BZRUpOib.mjs +51 -0
  50. package/dist/SelectionBox-Bx2a5rh4.mjs +48 -0
  51. package/dist/Sizes-DISGrlUg.mjs +6 -0
  52. package/dist/{SpendingData-Dj85XEUp.mjs → SpendingData-CktOElG1.mjs} +6 -6
  53. package/dist/{SpendingLegend-DLElSvH0.mjs → SpendingLegend-CM5L_1Ka.mjs} +4 -4
  54. package/dist/{TransactionDetails-C_skrQk8.mjs → TransactionDetails-BP-sFltN.mjs} +33 -33
  55. package/dist/TransactionUtils-CvJW9wDu.mjs +234 -0
  56. package/dist/TrendsUtil-D9z3kIj_.mjs +69 -0
  57. package/dist/{ViewMoreMicroCard-D1j0w64K.mjs → ViewMoreMicroCard-DWOpU5L8.mjs} +28 -30
  58. package/dist/{WidgetContainer-BPJoDkhL.mjs → WidgetContainer-CAgbD0ZS.mjs} +3 -3
  59. package/dist/accounts/hooks/useUiStore.d.ts +6 -1
  60. package/dist/accounts/index.d.ts +0 -1
  61. package/dist/accounts/index.es.js +52 -54
  62. package/dist/analytics/index.es.js +2 -2
  63. package/dist/budgets/index.es.js +18 -18
  64. package/dist/cashflow/context/hooks.d.ts +15 -1
  65. package/dist/cashflow/index.d.ts +0 -1
  66. package/dist/cashflow/index.es.js +28 -31
  67. package/dist/categories/context/hooks.d.ts +19 -1
  68. package/dist/categories/index.d.ts +0 -1
  69. package/dist/categories/index.es.js +4 -6
  70. package/dist/common/constants/ScheduledPayment.d.ts +1 -1
  71. package/dist/common/constants/index.d.ts +0 -3
  72. package/dist/common/context/GlobalDataProvider.d.ts +1 -1
  73. package/dist/common/context/hooks.d.ts +21 -21
  74. package/dist/common/index.d.ts +0 -1
  75. package/dist/common/index.es.js +203 -961
  76. package/dist/common/utils/AccountFilter.d.ts +1 -1
  77. package/dist/common/utils/index.d.ts +0 -4
  78. package/dist/{common → core}/constants/DefaultConfig.d.ts +1 -1
  79. package/dist/core/constants/Transaction.d.ts +10 -0
  80. package/dist/core/constants/index.d.ts +2 -0
  81. package/dist/core/index.d.ts +1 -1
  82. package/dist/core/index.es.js +3060 -88
  83. package/dist/{accounts → core}/stores/AccountStore.d.ts +14 -4
  84. package/dist/{analytics → core}/stores/AnalyticsStore.d.ts +1 -1
  85. package/dist/{common → core}/stores/AppDataStore.d.ts +4 -5
  86. package/dist/{insights/store → core/stores}/BeatStore.d.ts +3 -3
  87. package/dist/{budgets/store → core/stores}/BudgetsStore.d.ts +3 -4
  88. package/dist/{cashflow/stores/UiStore.d.ts → core/stores/CashflowStore.d.ts} +10 -2
  89. package/dist/{categories → core}/stores/CategoryStore.d.ts +24 -4
  90. package/dist/{common → core}/stores/ConnectStore.d.ts +2 -2
  91. package/dist/core/stores/DebtsStore.d.ts +22 -0
  92. package/dist/{finstrong → core}/stores/FinstrongStore.d.ts +4 -4
  93. package/dist/{common → core}/stores/GlobalCopyStore.d.ts +2 -2
  94. package/dist/{common → core}/stores/GlobalStore.d.ts +2 -25
  95. package/dist/{common → core}/stores/GlobalUiStore.d.ts +3 -3
  96. package/dist/{goals → core}/stores/GoalStore.d.ts +3 -3
  97. package/dist/{help/store → core/stores}/HelpStore.d.ts +4 -6
  98. package/dist/{investments → core}/stores/HoldingStore.d.ts +4 -4
  99. package/dist/{merchants → core}/stores/MerchantStore.d.ts +3 -3
  100. package/dist/{networth → core}/stores/NetWorthStore.d.ts +3 -4
  101. package/dist/{notifications → core}/stores/NotificationStore.d.ts +3 -3
  102. package/dist/{recurringtransactions → core}/stores/RecurringTransactionsStore.d.ts +3 -3
  103. package/dist/{settings → core}/stores/SettingsStore.d.ts +4 -5
  104. package/dist/{transactions → core}/stores/TransactionStore.d.ts +27 -6
  105. package/dist/{trends → core}/stores/TrendsStore.d.ts +11 -5
  106. package/dist/{common → core}/stores/UserStore.d.ts +2 -2
  107. package/dist/core/stores/index.d.ts +24 -0
  108. package/dist/{networth → core}/types/NetWorth.d.ts +1 -10
  109. package/dist/core/types/Offer.d.ts +32 -0
  110. package/dist/core/types/index.d.ts +3 -1
  111. package/dist/{accounts/utils/Accounts.d.ts → core/utils/AccountUtils.d.ts} +1 -1
  112. package/dist/{microinsights/utils/beatUtils.d.ts → core/utils/BeatUtils.d.ts} +1 -1
  113. package/dist/{budgets → core}/utils/BudgetUtil.d.ts +2 -2
  114. package/dist/{categories/util → core/utils}/CategoryUtil.d.ts +6 -1
  115. package/dist/core/utils/DebtUtils.d.ts +31 -0
  116. package/dist/core/utils/FinstrongUtils.d.ts +7 -0
  117. package/dist/{goals/util → core/utils}/GoalsUtil.d.ts +1 -1
  118. package/dist/core/utils/HelpUtil.d.ts +3 -0
  119. package/dist/{investments/util → core/utils}/InvestmentUtil.d.ts +2 -2
  120. package/dist/core/utils/Localization.d.ts +2 -0
  121. package/dist/{networth → core}/utils/NetWorthUtils.d.ts +1 -2
  122. package/dist/{notifications → core}/utils/NotificationUtils.d.ts +1 -1
  123. package/dist/{common → core}/utils/NumberFormatting.d.ts +1 -1
  124. package/dist/{recurringtransactions/util/RecurringTransactions.d.ts → core/utils/RecurringTransactionsUtil.d.ts} +1 -1
  125. package/dist/{settings/util/Notifications.d.ts → core/utils/SettingsUtil.d.ts} +1 -1
  126. package/dist/{transactions/utils/buildDetailedTransactions.d.ts → core/utils/TransactionUtils.d.ts} +12 -2
  127. package/dist/{trends/utils/TrendsData.d.ts → core/utils/TrendsUtil.d.ts} +1 -1
  128. package/dist/{common/utils/User.d.ts → core/utils/UserUtils.d.ts} +1 -1
  129. package/dist/core/utils/index.d.ts +1 -1
  130. package/dist/dashboard/index.es.js +4 -4
  131. package/dist/debts/components/DebtsChart.d.ts +1 -1
  132. package/dist/debts/components/DebtsTable.d.ts +1 -1
  133. package/dist/debts/components/SnowballCard.d.ts +1 -1
  134. package/dist/debts/components/actions/InterestRateAction.d.ts +1 -1
  135. package/dist/debts/components/actions/MonthlyPaymentAction.d.ts +1 -1
  136. package/dist/debts/components/actions/OriginalBalanceAction.d.ts +1 -1
  137. package/dist/debts/hooks/useDebtsUiStore.d.ts +1 -1
  138. package/dist/debts/index.d.ts +0 -1
  139. package/dist/debts/index.es.js +568 -691
  140. package/dist/debts/utils/DebtsTable.d.ts +1 -1
  141. package/dist/debts/utils/SnowballCard.d.ts +2 -2
  142. package/dist/finstrong/index.d.ts +0 -1
  143. package/dist/finstrong/index.es.js +1565 -1342
  144. package/dist/finstrong/util/finstrongUtils.d.ts +1 -7
  145. package/dist/goals/components/addgoal/AddGoalListItem.d.ts +1 -1
  146. package/dist/goals/index.d.ts +0 -1
  147. package/dist/goals/index.es.js +71 -73
  148. package/dist/help/index.es.js +4 -4
  149. package/dist/help/utils/index.d.ts +0 -1
  150. package/dist/{hooks-RzCoiTd0.mjs → hooks-BaO_gOI6.mjs} +17 -17
  151. package/dist/insights/index.d.ts +0 -1
  152. package/dist/insights/index.es.js +52 -54
  153. package/dist/investments/components/AnalysisDetails.d.ts +1 -1
  154. package/dist/investments/index.es.js +6 -6
  155. package/dist/merchants/index.d.ts +0 -1
  156. package/dist/merchants/index.es.js +12 -14
  157. package/dist/microinsights/index.es.js +1 -1
  158. package/dist/microinsights/interfaces.d.ts +1 -33
  159. package/dist/networth/components/AssetsLiabilitiesDetail.d.ts +1 -1
  160. package/dist/networth/components/GainsLossesDetail.d.ts +1 -1
  161. package/dist/networth/components/NetWorthChange.d.ts +1 -1
  162. package/dist/networth/components/NetWorthListItem.d.ts +1 -1
  163. package/dist/networth/components/NetWorthSummary.d.ts +1 -1
  164. package/dist/networth/index.d.ts +0 -4
  165. package/dist/networth/index.es.js +232 -237
  166. package/dist/notifications/index.d.ts +0 -2
  167. package/dist/notifications/index.es.js +23 -26
  168. package/dist/recurringtransactions/index.d.ts +0 -1
  169. package/dist/recurringtransactions/index.es.js +67 -71
  170. package/dist/settings/index.d.ts +0 -1
  171. package/dist/settings/index.es.js +11 -13
  172. package/dist/spending/index.es.js +10 -10
  173. package/dist/transactions/context/hooks.d.ts +1 -1
  174. package/dist/transactions/index.d.ts +0 -4
  175. package/dist/transactions/index.es.js +102 -109
  176. package/dist/trends/index.d.ts +0 -1
  177. package/dist/trends/index.es.js +67 -68
  178. package/dist/trends/utils/shared.d.ts +1 -1
  179. package/dist/{useAccountDisplayName-pliH6hz0.mjs → useAccountDisplayName-CFa_MrS6.mjs} +1 -1
  180. package/dist/{useInsightsEnabled-CzJoG8xi.mjs → useInsightsEnabled-DaNLPmUU.mjs} +1 -1
  181. package/dist/{useWidgetLoadTimer-BZjr-BiE.mjs → useWidgetLoadTimer-CJb-RELP.mjs} +1 -1
  182. package/package.json +1 -1
  183. package/dist/AccountApi-WEM2M9tg.mjs +0 -19
  184. package/dist/AccountStore-CGrjC2Oe.mjs +0 -253
  185. package/dist/ApiEndpoints-C5IA97i7.mjs +0 -118
  186. package/dist/BeatApi-C6pBa0Rb.mjs +0 -21
  187. package/dist/BeatStore-C7-PIhpB.mjs +0 -163
  188. package/dist/BudgetUtil-H9igoNVm.mjs +0 -479
  189. package/dist/CashflowStore-BEi92kJg.mjs +0 -91
  190. package/dist/CategoryApi-CogDFScz.mjs +0 -29
  191. package/dist/CategoryStore-CA4NTaKH.mjs +0 -160
  192. package/dist/CategoryUtil-BJOHgYKS.mjs +0 -80
  193. package/dist/DebtsStore-BJlC2-yO.mjs +0 -63
  194. package/dist/EmbeddedCard-B9JoBaan.mjs +0 -811
  195. package/dist/FinstrongApi-FpmsS_sy.mjs +0 -19
  196. package/dist/FinstrongStore-DYawCv1d.mjs +0 -435
  197. package/dist/GlobalCopyApi-DkS-2Zf_.mjs +0 -41
  198. package/dist/Goal-MFBpoOIC.mjs +0 -29
  199. package/dist/GoalStore-BBAEbf43.mjs +0 -395
  200. package/dist/Localization-C_HZg9tJ.mjs +0 -15
  201. package/dist/Localization-CkQ49EKr.mjs +0 -26
  202. package/dist/MerchantApi-D8ahYxiG.mjs +0 -15
  203. package/dist/MerchantStore-CyZTv-BM.mjs +0 -26
  204. package/dist/NetWorthStore-BY-B_hxy.mjs +0 -168
  205. package/dist/NotificationApi-DF0obHoR.mjs +0 -20
  206. package/dist/NotificationStore-DlAM5Ue0.mjs +0 -69
  207. package/dist/RecurringTransactions-DCt94TN4.mjs +0 -297
  208. package/dist/RecurringTransactionsStore-CFJYC7lI.mjs +0 -264
  209. package/dist/RepeatingTransaction-D2gmBTd0.mjs +0 -7
  210. package/dist/RepeatingTransactionsApi-BNZgZPLs.mjs +0 -17
  211. package/dist/SettingsApi-D9d7SLhB.mjs +0 -22
  212. package/dist/SettingsStore-BcbuKfFO.mjs +0 -250
  213. package/dist/Transaction-Cn5_iFm0.mjs +0 -5
  214. package/dist/TransactionApi-CLG2eSNe.mjs +0 -86
  215. package/dist/TransactionStore-amPYxHnA.mjs +0 -710
  216. package/dist/TrendsStore-bYjIGqyR.mjs +0 -183
  217. package/dist/WidgetApi-C0BA2cFX.mjs +0 -102
  218. package/dist/accounts/stores/UiStore.d.ts +0 -10
  219. package/dist/accounts/utils/index.d.ts +0 -1
  220. package/dist/cashflow/stores/CashflowStore.d.ts +0 -8
  221. package/dist/categories/stores/UiStore.d.ts +0 -20
  222. package/dist/common/stores/index.d.ts +0 -3
  223. package/dist/common/utils/Categories.d.ts +0 -6
  224. package/dist/common/utils/Localization.d.ts +0 -3
  225. package/dist/debts/store/DebtsStore.d.ts +0 -10
  226. package/dist/debts/store/DebtsUiStore.d.ts +0 -13
  227. package/dist/debts/utils/DebtStore.d.ts +0 -4
  228. package/dist/debts/utils/DebtsWidget.d.ts +0 -20
  229. package/dist/debts/utils/shared.d.ts +0 -12
  230. package/dist/exportTransactionsToCSV-CSvbZrvL.mjs +0 -133
  231. package/dist/help/constants/index.d.ts +0 -1
  232. package/dist/help/utils/getAccessibleHelpCategories.d.ts +0 -3
  233. package/dist/transactions/analytics.d.ts +0 -3
  234. package/dist/transactions/constants/Transaction.d.ts +0 -2
  235. package/dist/transactions/constants/TransactionsTable.d.ts +0 -17
  236. package/dist/transactions/stores/UiStore.d.ts +0 -25
  237. package/dist/transactions/utils/exportTransactionsToCSV.d.ts +0 -9
  238. package/dist/transactions/utils/sortAndFilterTransactions.d.ts +0 -3
  239. /package/dist/{common → core}/constants/Category.d.ts +0 -0
  240. /package/dist/{common → core}/constants/DateFormats.d.ts +0 -0
  241. /package/dist/{debts/constants/index.d.ts → core/constants/Debts.d.ts} +0 -0
  242. /package/dist/{help → core}/constants/Help.d.ts +0 -0
  243. /package/dist/{investments/constants/index.d.ts → core/constants/Investments.d.ts} +0 -0
  244. /package/dist/{common → core}/constants/Numbers.d.ts +0 -0
  245. /package/dist/{common → core}/constants/Table.d.ts +0 -0
  246. /package/dist/{common → core}/utils/DateUtil.d.ts +0 -0
@@ -0,0 +1,84 @@
1
+ import { jsx as e, jsxs as a } from "react/jsx-runtime";
2
+ import c from "react";
3
+ import { observer as g } from "mobx-react-lite";
4
+ import { Stack as i, Box as f, Button as u, useTheme as y } from "@mui/material";
5
+ import { Icon as C, Text as l } from "@mxenabled/mxui";
6
+ import { G as b } from "./hooks-BaO_gOI6.mjs";
7
+ const m = c.forwardRef(
8
+ (r, o) => {
9
+ const n = y();
10
+ return /* @__PURE__ */ e(
11
+ "svg",
12
+ {
13
+ fill: "none",
14
+ height: "60",
15
+ ref: o,
16
+ viewBox: "0 0 72 60",
17
+ width: "72",
18
+ xmlns: "http://www.w3.org/2000/svg",
19
+ ...r,
20
+ children: /* @__PURE__ */ e(
21
+ "path",
22
+ {
23
+ d: "M28.8288 1.43265C34.4433 4.02036 36.9443 13.1615 44.4378 18.7551C53.8387 25.7725 64.7205 8.05287 70.6592 18.2364C80.9926 35.9558 28.2828 74.5237 25.8072 54.2678C25.1894 49.213 34.1353 42.7165 27.308 38.2971C18.7065 32.7294 9.89746 43.1722 4.34888 37.9733C-8.70438 25.7428 10.0261 -7.2333 28.8288 1.43265Z",
24
+ fill: n.palette.primary[100] ?? "#DFE8FD"
25
+ }
26
+ )
27
+ }
28
+ );
29
+ }
30
+ );
31
+ m.displayName = "BlobSVG";
32
+ const w = ({
33
+ heading: r,
34
+ message: o,
35
+ iconName: n = "error",
36
+ buttonText: d,
37
+ onClick: s
38
+ }) => {
39
+ const t = c.useContext(b)?.globalStore.copyStore.copy.common, h = r ?? (t?.error_heading ? `${t.error_heading}!` : "Oops!"), x = o ?? t?.error_message ?? "Something went wrong. Please try again.", p = d ?? t?.refresh_button ?? "Refresh";
40
+ return /* @__PURE__ */ e(i, { alignItems: "center", justifyContent: "center", style: { height: "100dvh" }, children: /* @__PURE__ */ a(
41
+ i,
42
+ {
43
+ sx: {
44
+ display: "flex",
45
+ padding: "48px 16px",
46
+ flexDirection: "column",
47
+ alignItems: "center"
48
+ },
49
+ children: [
50
+ /* @__PURE__ */ a(
51
+ i,
52
+ {
53
+ sx: {
54
+ alignItems: "center",
55
+ justifyContent: "center"
56
+ },
57
+ children: [
58
+ /* @__PURE__ */ e(
59
+ f,
60
+ {
61
+ sx: {
62
+ position: "absolute",
63
+ zIndex: 0
64
+ },
65
+ children: /* @__PURE__ */ e(m, {})
66
+ }
67
+ ),
68
+ /* @__PURE__ */ e(C, { color: "primary", name: n, size: 48, sx: { zIndex: 1 } })
69
+ ]
70
+ }
71
+ ),
72
+ /* @__PURE__ */ e(l, { bold: !0, color: "text.primary", mt: "24px", variant: "h2", children: h }),
73
+ /* @__PURE__ */ e(l, { color: "text.secondary", variant: "subtitle1", children: x }),
74
+ s && /* @__PURE__ */ e(u, { color: "primary", onClick: () => {
75
+ s?.();
76
+ }, sx: { mt: 48 }, variant: "contained", children: p })
77
+ ]
78
+ }
79
+ ) });
80
+ }, G = g(w);
81
+ export {
82
+ m as B,
83
+ G as E
84
+ };
@@ -0,0 +1,23 @@
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import o from "react";
3
+ import { H3 as s } from "@mxenabled/mxui";
4
+ const n = {
5
+ text: "Oops! Something went wrong."
6
+ };
7
+ class h extends o.Component {
8
+ state = {
9
+ hasError: !1
10
+ };
11
+ componentDidCatch(r, t) {
12
+ console.error("Uncaught error:", r, t);
13
+ }
14
+ static getDerivedStateFromError() {
15
+ return { hasError: !0 };
16
+ }
17
+ render() {
18
+ return this.state.hasError ? /* @__PURE__ */ e(s, { sx: { pt: 24 }, children: n.text }) : this.props.children;
19
+ }
20
+ }
21
+ export {
22
+ h as E
23
+ };
@@ -1,12 +1,13 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
2
  import { observer as c } from "mobx-react-lite";
3
3
  import { Icon as i } from "@mxenabled/mxui";
4
- import { O as p, e as m } from "./exportTransactionsToCSV-CSvbZrvL.mjs";
5
- import { g as x, h as _, u as C } from "./hooks-RzCoiTd0.mjs";
4
+ import { e as p } from "./TransactionUtils-CvJW9wDu.mjs";
5
+ import { O as m } from "./EmbeddedCard-CAY_HJjE.mjs";
6
+ import { g as x, h as _, u as C } from "./hooks-BaO_gOI6.mjs";
6
7
  import { R as l } from "./ResponsiveButton-BNsV08Ud.mjs";
7
8
  const v = ({ filter: t }) => {
8
9
  const { onEvent: r } = x(), { tags: e, sortedTransactions: s } = _(), { transactions: n } = C(), a = () => {
9
- r(p.ON_TRANSACTION_EXPORT_CSV_CLICK), m(t ? s.filter(t) : s, e);
10
+ r(m.ON_TRANSACTION_EXPORT_CSV_CLICK), p(t ? s.filter(t) : s, e);
10
11
  };
11
12
  return /* @__PURE__ */ o("div", { className: "mx-txn-export-csv-action", children: /* @__PURE__ */ o(
12
13
  l,
@@ -17,7 +18,7 @@ const v = ({ filter: t }) => {
17
18
  tooltipText: n.export_csv_title
18
19
  }
19
20
  ) });
20
- }, O = c(v);
21
+ }, b = c(v);
21
22
  export {
22
- O as E
23
+ b as E
23
24
  };
@@ -15,7 +15,7 @@ import y from "@mui/material/ListItem";
15
15
  import _ from "@mui/material/ListItemButton";
16
16
  import H from "@mui/material/ListItemIcon";
17
17
  import v from "@mui/material/ListItemText";
18
- import { b as M, u as z, d as L } from "./hooks-RzCoiTd0.mjs";
18
+ import { b as M, u as z, d as L } from "./hooks-BaO_gOI6.mjs";
19
19
  const N = I(
20
20
  ({ allowedAccountTypes: a }) => {
21
21
  const { accountFilterMap: s, updateAccountFilterMap: u } = M(), { accounts: g, common: x } = z(), { account_filter: c } = x, { accountsByTypeMap: n } = L(), k = B.useMemo(
@@ -0,0 +1,30 @@
1
+ import { F as a } from "./AnalyticsApi-DwgSyZ6m.mjs";
2
+ import { A as n } from "./ApiEndpoints-DXwIYNUV.mjs";
3
+ class o {
4
+ fetchInstance;
5
+ constructor(t, e, s) {
6
+ this.fetchInstance = new a(t, e, void 0, s);
7
+ }
8
+ getBeats = async (t, e) => {
9
+ const s = `page=${t || 1}&per_page=${e || 5}`;
10
+ return this.fetchInstance.get(`${n.BEATS}?${s}`).then((r) => r.beats);
11
+ };
12
+ getBeatsWithAssociatedTransaction = async (t) => {
13
+ let e = "has_associated_transaction_guid=true";
14
+ return e += t ? `&from_date=${t}` : "", this.fetchInstance.get(`${n.BEATS}?${e}`).then((s) => s.beats);
15
+ };
16
+ getOffers = async () => this.fetchInstance.get(`${n.OFFERS}/${n.PULSE_COMMUNICATIONS}`).then((t) => t.pulse_communications);
17
+ updateBeat = async (t) => this.fetchInstance.put(`${n.BEATS}/${t.guid}`, t).then((e) => e.beat);
18
+ updateOffer = async (t) => this.fetchInstance.put(`${n.OFFERS}/${t.guid}`, t).then((e) => e.beat);
19
+ }
20
+ class u {
21
+ fetchInstance;
22
+ constructor(t, e, s) {
23
+ this.fetchInstance = new a(t, e, void 0, s);
24
+ }
25
+ getGlobalCopy = async (t, e) => this.fetchInstance.post(`${n.LOCALIZED_CONTENT}/${t}`, { translation_key: e }).then((s) => s);
26
+ }
27
+ export {
28
+ o as B,
29
+ u as G
30
+ };
@@ -0,0 +1,107 @@
1
+ import { fromUnixTime as s } from "date-fns/fromUnixTime";
2
+ import { addYears as C } from "date-fns/addYears";
3
+ import { getUnixTime as N } from "date-fns/getUnixTime";
4
+ import { a as g } from "./NumberFormatting-Dnk0YyfZ.mjs";
5
+ import { b as r } from "./Localization-Li21_krp.mjs";
6
+ import { f as T, D as O } from "./DateFormats-BSktnUw6.mjs";
7
+ var e = /* @__PURE__ */ ((t) => (t[t.DEBT_TRACK = 1] = "DEBT_TRACK", t[t.SAVINGS_TRACK = 2] = "SAVINGS_TRACK", t[t.RETIREMENT_TRACK = 3] = "RETIREMENT_TRACK", t[t.EMERGENCY_FUND_TRACK = 4] = "EMERGENCY_FUND_TRACK", t))(e || {}), I = /* @__PURE__ */ ((t) => (t[t.SAVE_AMOUNT = 1] = "SAVE_AMOUNT", t[t.KEEP_BALANCE_BELOW = 2] = "KEEP_BALANCE_BELOW", t[t.KEEP_BALANCE_ABOVE = 3] = "KEEP_BALANCE_ABOVE", t[t.ACTION = 4] = "ACTION", t))(I || {}), n = /* @__PURE__ */ ((t) => (t[t.AUTOMOBILE = 1] = "AUTOMOBILE", t[t.COLLEGE = 2] = "COLLEGE", t[t.HOUSE = 3] = "HOUSE", t[t.RECREATIONAL_VEHICLE = 4] = "RECREATIONAL_VEHICLE", t[t.VACATION = 5] = "VACATION", t[t.ELECTRONIC = 6] = "ELECTRONIC", t[t.OTHER = 7] = "OTHER", t[t.RETIREMENT = 8] = "RETIREMENT", t[t.EMERGENCY_FUND = 9] = "EMERGENCY_FUND", t[t.SETUP_BUDGETS = 10] = "SETUP_BUDGETS", t[t.START_MONEY_MANAGEMENT = 11] = "START_MONEY_MANAGEMENT", t[t.CREDIT_CARD = 12] = "CREDIT_CARD", t[t.LINE_OF_CREDIT = 13] = "LINE_OF_CREDIT", t[t.LOANS = 14] = "LOANS", t))(n || {});
8
+ function h(t, E) {
9
+ const o = E.track_type === e.DEBT_TRACK ? E.initial_amount : E.amount;
10
+ let _ = E.current_amount / o;
11
+ _ > 1 && (_ = 1), _ = E.track_type === e.DEBT_TRACK ? 1 - _ : _, isNaN(_) && (_ = 1);
12
+ let i = "chart.chart1", a = "common.black";
13
+ E.track_type === e.DEBT_TRACK ? (a = "common.white", i = "chart.chart5") : E.track_type === e.RETIREMENT_TRACK && (i = "chart.chart6");
14
+ const A = {
15
+ style: "percent",
16
+ minimumFractionDigits: 0,
17
+ maximumFractionDigits: 0
18
+ }, c = E.is_complete ? E.completed_at : E.projected_to_complete_at, l = c ? s(c) : /* @__PURE__ */ new Date(), m = r(
19
+ t.goal_percentage,
20
+ g(_, A)
21
+ ), R = r(
22
+ E.is_complete ? t.completed_label : t.goal_projection,
23
+ T(l, O.MONTH_SHORT_YEAR)
24
+ );
25
+ return {
26
+ backgroundColor: i,
27
+ color: a,
28
+ percentage: _,
29
+ percentageText: m,
30
+ projectedText: R
31
+ };
32
+ }
33
+ function K(t) {
34
+ return [
35
+ {
36
+ bgcolor: "chart.chart1",
37
+ icon: "attach_money",
38
+ label: t.saving_goal_label,
39
+ description: t.saving_goal_description,
40
+ subTypes: [
41
+ {
42
+ icon: "ecg_heart",
43
+ label: t.saving_goal_emergency_fund,
44
+ metaType: n.EMERGENCY_FUND
45
+ },
46
+ {
47
+ icon: "directions_car",
48
+ label: t.saving_gaol_automobile,
49
+ metaType: n.AUTOMOBILE
50
+ },
51
+ { icon: "school", label: t.saving_goal_college, metaType: n.COLLEGE },
52
+ { icon: "home", label: t.saving_goal_home, metaType: n.HOUSE },
53
+ {
54
+ icon: "mountain_flag",
55
+ label: t.saving_goal_recreational,
56
+ metaType: n.RECREATIONAL_VEHICLE
57
+ },
58
+ { icon: "airplane_ticket", label: t.saving_goal_vacation, metaType: n.VACATION },
59
+ {
60
+ icon: "desktop_windows",
61
+ label: t.saving_goal_electronic,
62
+ metaType: n.ELECTRONIC
63
+ },
64
+ { icon: "payments", label: t.saving_goal_other, metaType: n.OTHER }
65
+ ],
66
+ type: e.SAVINGS_TRACK
67
+ },
68
+ {
69
+ bgcolor: "chart.chart5",
70
+ icon: "note_stack",
71
+ label: t.debt_goal_label,
72
+ description: t.debt_goal_description,
73
+ subTypes: [],
74
+ type: e.DEBT_TRACK
75
+ },
76
+ {
77
+ bgcolor: "chart.chart6",
78
+ icon: "person",
79
+ label: t.retirement_goal_label,
80
+ description: t.retirement_goal_description,
81
+ subTypes: [],
82
+ type: e.RETIREMENT_TRACK
83
+ }
84
+ ];
85
+ }
86
+ const B = (t, E) => {
87
+ switch (t) {
88
+ case e.DEBT_TRACK:
89
+ return r(E.zero_state_ongoing, "debt");
90
+ case e.SAVINGS_TRACK:
91
+ return r(E.zero_state_ongoing, "saving");
92
+ default:
93
+ return r(E.zero_state_ongoing, "retirement");
94
+ }
95
+ }, U = (t, E) => {
96
+ const o = s(E), _ = C(o, t);
97
+ return N(_);
98
+ };
99
+ export {
100
+ I as G,
101
+ n as M,
102
+ e as T,
103
+ B as a,
104
+ K as b,
105
+ U as c,
106
+ h as g
107
+ };
@@ -1,24 +1,4 @@
1
- import { jsx as i } from "react/jsx-runtime";
2
- import o from "react";
3
- import { H3 as n } from "@mxenabled/mxui";
4
- const s = {
5
- text: "Oops! Something went wrong."
6
- };
7
- class l extends o.Component {
8
- state = {
9
- hasError: !1
10
- };
11
- componentDidCatch(e, t) {
12
- console.error("Uncaught error:", e, t);
13
- }
14
- static getDerivedStateFromError() {
15
- return { hasError: !0 };
16
- }
17
- render() {
18
- return this.state.hasError ? /* @__PURE__ */ i(n, { sx: { pt: 24 }, children: s.text }) : this.props.children;
19
- }
20
- }
21
- const g = [
1
+ const e = [
22
2
  {
23
3
  flags: ["show_accounts_widget_in_master"],
24
4
  guid: "accounts",
@@ -222,7 +202,7 @@ const g = [
222
202
  }
223
203
  ]
224
204
  }
225
- ], _ = [
205
+ ], t = [
226
206
  {
227
207
  guid: "personal_information",
228
208
  icon: "person",
@@ -292,7 +272,7 @@ const g = [
292
272
  }
293
273
  ]
294
274
  }
295
- ], d = [
275
+ ], i = [
296
276
  {
297
277
  type: "external"
298
278
  },
@@ -313,8 +293,7 @@ const g = [
313
293
  }
314
294
  ];
315
295
  export {
316
- l as E,
317
- g as H,
318
- d as P,
319
- _ as a
296
+ t as H,
297
+ i as P,
298
+ e as a
320
299
  };