@mx-cartographer/experiences 8.0.0-alpha.bb3 → 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.
- package/CHANGELOG.md +128 -1
- package/dist/{Account-Bxw0_4FU.mjs → Account-BDXA6PWh.mjs} +1 -1
- package/dist/{AccountDetailsContent-CAM9y39M.mjs → AccountDetailsContent-CUztd3-b.mjs} +87 -83
- package/dist/AccountDetailsHeader-i3KFhNuo.mjs +87 -0
- package/dist/{AccountFields-C9FlatNb.mjs → AccountFields-QZspYAji.mjs} +6 -6
- package/dist/{AccountListItem-JFMZROh7.mjs → AccountListItem-DX5upmCS.mjs} +5 -5
- package/dist/{AccountStore-BgNOyMdp.mjs → AccountStore-BcnDpyLL.mjs} +19 -8
- package/dist/{Accounts-BRf_YeTf.mjs → Accounts-DXfZotRC.mjs} +1 -1
- package/dist/{BeatApi-DhJpgCLz.mjs → BeatApi-De2IaqH2.mjs} +1 -1
- package/dist/{BeatStore-IBnXd4YK.mjs → BeatStore-D_NYuBSz.mjs} +1 -1
- package/dist/{BudgetUtil-B2ZXyw-g.mjs → BudgetUtil-Df2nII9u.mjs} +2 -2
- package/dist/{CategorySelectorDrawer-DUe4lH5-.mjs → CategorySelectorDrawer-DqJK_rrL.mjs} +23 -21
- package/dist/{CategoryStore-yHI0hWmK.mjs → CategoryStore-DTgyAMM7.mjs} +12 -10
- package/dist/{CategoryUtil-pZRIYOgN.mjs → CategoryUtil-C5cR-nfQ.mjs} +1 -1
- package/dist/{ConnectDrawer-BQNs-hjk.mjs → ConnectDrawer-BIbTqYOH.mjs} +2 -2
- package/dist/{ConnectionsDrawer-ByGQE7D5.mjs → ConnectionsDrawer-BFfY3_zB.mjs} +3 -3
- package/dist/{CurrencyInput-DUsQbkXb.mjs → CurrencyInput-BFKcs-_K.mjs} +2 -2
- package/dist/{CurrencyText-kyC1aseI.mjs → CurrencyText-Dr0EZ7bp.mjs} +1 -1
- package/dist/{DateUtil-BcuH7ErC.mjs → DateUtil-CBdcsyuk.mjs} +3 -3
- package/dist/{DebtsStore-C9bblOgW.mjs → DebtsStore-BbJB0nmu.mjs} +1 -1
- package/dist/{Dialog-CWW597AF.mjs → Dialog-BPTr3qHE.mjs} +2 -2
- package/dist/{Donut-oaQFlbit.mjs → Donut-Dmy3JTWd.mjs} +12 -12
- package/dist/Drawer-BEtCk82g.mjs +163 -0
- package/dist/{EmptyState-DA_lfRBv.mjs → EmptyState-DoxNUae-.mjs} +24 -22
- package/dist/{ExportCsvAction-sX8Rg4Ov.mjs → ExportCsvAction-DzTrtPzk.mjs} +3 -3
- package/dist/{Fetch-87LIQbEA.mjs → Fetch-DecPFeGU.mjs} +24 -22
- package/dist/FinstrongStore-BIrX0Xg2.mjs +451 -0
- package/dist/{GoalStore-D-aB35SY.mjs → GoalStore-DpWY3gVb.mjs} +5 -5
- package/dist/{Help-B6dIcujh.mjs → Help-BnPXM_N2.mjs} +2 -2
- package/dist/LineChart-bc1D9xBE.mjs +581 -0
- package/dist/{ListItemAction-DHa3KJPs.mjs → ListItemAction-uobBrm_a.mjs} +10 -10
- package/dist/{ManageIncome-1s_q5W4X.mjs → ManageIncome-NpXHhO1n.mjs} +177 -174
- package/dist/{MerchantStore-DrFvsUyy.mjs → MerchantStore-WvZ4gnQe.mjs} +1 -1
- package/dist/{MicroWidgetContainer-DpeqN9n3.mjs → MicroWidgetContainer-DEiRnYVa.mjs} +1 -1
- package/dist/{MiniWidgetContainer-D0gfmbaF.mjs → MiniWidgetContainer-CmXpTylX.mjs} +1 -1
- package/dist/{NetWorthStore-DCsTZpuS.mjs → NetWorthStore-lsuhEpn6.mjs} +2 -2
- package/dist/{NotificationSettings-DqrkNMod.mjs → NotificationSettings-CNmJWVeI.mjs} +241 -238
- package/dist/{NotificationStore-BxP_P2dA.mjs → NotificationStore-Ck2KdNmT.mjs} +10 -10
- package/dist/{NumberFormatting-Buh7u8Oi.mjs → NumberFormatting-DjTD0t3W.mjs} +9 -9
- package/dist/{OriginalBalanceAction-CWuVvRq9.mjs → OriginalBalanceAction-DK8_LkPz.mjs} +4 -4
- package/dist/{RecurringSettings-A_rAGCTP.mjs → RecurringSettings-CqZh1SQa.mjs} +17 -17
- package/dist/{RecurringTransactions-DK8dWldr.mjs → RecurringTransactions-BKcYmpv3.mjs} +46 -45
- package/dist/{RecurringTransactionsStore-C4YOD7_D.mjs → RecurringTransactionsStore-Ni5tSQIO.mjs} +80 -73
- package/dist/{SettingsStore-BcgS_Ohv.mjs → SettingsStore-krIRNwHK.mjs} +3 -3
- package/dist/SkeletonLoader-BaNboJjD.mjs +38 -0
- package/dist/{SpendingData-D5vsfYKo.mjs → SpendingData-BuJ03S9d.mjs} +16 -16
- package/dist/SpendingLegend-CjX-hX2O.mjs +193 -0
- package/dist/{ToggleListItem-r0Kx56wF.mjs → ToggleListItem-ciFTiqRS.mjs} +19 -14
- package/dist/TransactionApi-CjBoLleL.mjs +86 -0
- package/dist/TransactionDetails-5M2vfr59.mjs +1379 -0
- package/dist/{TransactionStore-ai3uII_r.mjs → TransactionStore-D-Q3BU9Z.mjs} +119 -121
- package/dist/TrendsStore-BW9FGQeE.mjs +182 -0
- package/dist/{User-BQUxBeZV.mjs → User-wXzDI4M8.mjs} +2 -2
- package/dist/{ViewMoreMicroCard-SCn2wt4i.mjs → ViewMoreMicroCard-C0832BMe.mjs} +702 -723
- package/dist/{WidgetContainer-BHWANqT4.mjs → WidgetContainer-BhQ1Kx2z.mjs} +4 -4
- package/dist/accounts/components/AccountsListCompact.d.ts +10 -0
- package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsChart.d.ts +4 -1
- package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsHeader.d.ts +2 -1
- package/dist/accounts/index.es.js +229 -222
- package/dist/accounts/stores/AccountStore.d.ts +2 -0
- package/dist/analytics/index.es.js +2 -2
- package/dist/budgets/index.es.js +380 -382
- package/dist/cashflow/index.es.js +405 -413
- package/dist/categories/index.es.js +2 -2
- package/dist/categories/stores/CategoryStore.d.ts +1 -1
- package/dist/common/components/ErrorBoundary.d.ts +1 -1
- package/dist/common/components/Select.d.ts +4 -2
- package/dist/common/components/charts/LineChart.d.ts +12 -2
- package/dist/common/components/charts/index.d.ts +0 -3
- package/dist/common/components/charts/linechart/CustomLegend.d.ts +3 -1
- package/dist/common/components/charts/linechart/CustomMark.d.ts +4 -0
- package/dist/common/components/drawer/Drawer.d.ts +3 -0
- package/dist/common/components/drawer/Footer.d.ts +17 -0
- package/dist/common/hooks/index.d.ts +0 -1
- package/dist/common/hooks/useAriaLive.d.ts +1 -1
- package/dist/common/index.es.js +320 -321
- package/dist/common/stores/GlobalStore.d.ts +7 -1
- package/dist/common/types/Finstrong.d.ts +54 -0
- package/dist/common/types/Global.d.ts +1 -0
- package/dist/common/types/Widgets.d.ts +1 -0
- package/dist/common/types/index.d.ts +1 -1
- package/dist/common/types/localization/FinstrongCopy.d.ts +105 -2
- package/dist/common/types/localization/GoalsCopy.d.ts +1 -0
- package/dist/dashboard/index.es.js +2 -2
- package/dist/debts/index.es.js +506 -498
- package/dist/exportTransactionsToCSV-Cz2t0lmA.mjs +48 -0
- package/dist/finstrong/FinstrongWidget.d.ts +1 -1
- package/dist/finstrong/api/FinstrongApi.d.ts +5 -0
- package/dist/finstrong/components/ConnectMoreAccountsCard.d.ts +3 -1
- package/dist/finstrong/components/CreditScore/CreditScoreContent.d.ts +4 -0
- package/dist/finstrong/components/CreditScore/CreditScoreHeader.d.ts +4 -0
- package/dist/finstrong/components/FinancialStrengthGraph.d.ts +7 -1
- package/dist/finstrong/components/HaveManageableDebt/DebtPaymentTabContent.d.ts +3 -0
- package/dist/finstrong/components/HaveManageableDebt/HaveManageableDebtComponent.d.ts +3 -0
- package/dist/finstrong/components/HaveManageableDebt/HaveManageableDebtProgressBar.d.ts +4 -0
- package/dist/finstrong/components/HaveManageableDebt/IncomeTabContent.d.ts +3 -0
- package/dist/finstrong/components/KeyIndicatorsBorrowTab.d.ts +2 -2
- package/dist/finstrong/components/KeyIndicatorsDrawer.d.ts +4 -1
- package/dist/finstrong/components/KeyIndicatorsSaveTab.d.ts +2 -2
- package/dist/finstrong/components/KeyIndicatorsSpendTab.d.ts +2 -2
- package/dist/finstrong/components/KeyIndicatorsTabItem.d.ts +4 -3
- package/dist/finstrong/components/KeyIndicatorsTabItemDrawer.d.ts +10 -0
- package/dist/finstrong/components/KeyIndicatorsTabsWidget.d.ts +2 -2
- package/dist/finstrong/components/MaintainingEmergencySavings/EstimatedContributionCalculator.d.ts +6 -0
- package/dist/finstrong/components/MaintainingEmergencySavings/MaintainingEmergencySavingsContent.d.ts +4 -0
- package/dist/finstrong/components/MaintainingEmergencySavings/MaintainingEmergencySavingsSticky.d.ts +4 -0
- package/dist/finstrong/components/ProgressBar.d.ts +15 -0
- package/dist/finstrong/components/SaveEnoughToLiveOn/AvailableTabContent.d.ts +3 -0
- package/dist/finstrong/components/SaveEnoughToLiveOn/SaveEnoughToLiveOnDrawerContent.d.ts +3 -0
- package/dist/finstrong/components/SaveEnoughToLiveOn/SaveEnoughToLiveOnProgressBar.d.ts +4 -0
- package/dist/finstrong/components/SaveEnoughToLiveOn/SpendingTabContent.d.ts +3 -0
- package/dist/finstrong/components/SpendLessThanYouMake/SpendLessThanYouMakeComponent.d.ts +3 -0
- package/dist/finstrong/components/SpendLessThanYouMake/SpendLessThanYouMakeProgressBar.d.ts +4 -0
- package/dist/finstrong/components/StatusChip.d.ts +5 -0
- package/dist/finstrong/components/onboarding/Onboarding.d.ts +2 -0
- package/dist/finstrong/components/onboarding/OnboardingAddMonthlyIncome.d.ts +17 -0
- package/dist/finstrong/components/onboarding/OnboardingBirthday.d.ts +8 -0
- package/dist/finstrong/components/onboarding/OnboardingCreditScore.d.ts +8 -0
- package/dist/finstrong/components/onboarding/OnboardingStepsDrawer.d.ts +14 -0
- package/dist/finstrong/components/onboarding/OnboardingStepsHeader.d.ts +8 -0
- package/dist/finstrong/components/paybillsontime/PayBillsOnTimeDrawerComponent.d.ts +4 -0
- package/dist/finstrong/components/paybillsontime/PayBillsOnTimeStickyComponent.d.ts +4 -0
- package/dist/finstrong/components/shared/Accounts.d.ts +8 -0
- package/dist/finstrong/components/shared/CustomDoubleBarPlot.d.ts +25 -0
- package/dist/finstrong/components/shared/DialScoreCard.d.ts +7 -1
- package/dist/finstrong/components/shared/DoubleBarChart.d.ts +28 -0
- package/dist/finstrong/components/shared/LineGraph.d.ts +7 -0
- package/dist/finstrong/components/shared/TotalCard.d.ts +8 -0
- package/dist/finstrong/components/shared/Transactions.d.ts +11 -0
- package/dist/finstrong/constants/index.d.ts +9 -0
- package/dist/finstrong/index.es.js +3171 -1063
- package/dist/finstrong/stores/FinstrongStore.d.ts +25 -2
- package/dist/finstrong/util/finstrongUtils.d.ts +58 -1
- package/dist/goals/index.es.js +566 -562
- package/dist/help/index.es.js +3 -3
- package/dist/{hooks-D6XlXHf4.mjs → hooks-C41HAxM5.mjs} +3 -3
- package/dist/insights/index.es.js +1 -1
- package/dist/investments/index.es.js +437 -435
- package/dist/merchants/index.es.js +2 -2
- package/dist/microinsights/beaticons/BeatIcon.d.ts +2 -9
- package/dist/microinsights/beaticons/BeatMerchantLogo.d.ts +3 -2
- package/dist/microinsights/beaticons/MonthlySpendComparisonIcon.d.ts +2 -1
- package/dist/microinsights/cards/{MicroInsightCard.d.ts → BaseCard.d.ts} +1 -8
- package/dist/microinsights/cards/{BeatCard.d.ts → InsightCard.d.ts} +2 -2
- package/dist/microinsights/cards/NoRelevantInsightsCard.d.ts +2 -5
- package/dist/microinsights/cards/ZeroStateCard.d.ts +2 -5
- package/dist/microinsights/carousel/BeatList.d.ts +10 -0
- package/dist/microinsights/carousel/CarouselControls.d.ts +1 -3
- package/dist/microinsights/carousel/CarouselHeader.d.ts +1 -2
- package/dist/microinsights/constants/App.d.ts +0 -1
- package/dist/microinsights/index.d.ts +3 -3
- package/dist/microinsights/index.es.js +7 -7
- package/dist/microinsights/interfaces.d.ts +0 -6
- package/dist/networth/index.es.js +188 -186
- package/dist/notifications/index.es.js +95 -96
- package/dist/recurringtransactions/components/MicroWidgetContent.d.ts +3 -0
- package/dist/recurringtransactions/index.es.js +584 -560
- package/dist/recurringtransactions/stores/RecurringTransactionsStore.d.ts +1 -0
- package/dist/settings/index.es.js +286 -280
- package/dist/spending/index.es.js +269 -421
- package/dist/spending/utils/SpendingData.d.ts +2 -1
- package/dist/transactions/components/shared/TransactionDetails.d.ts +1 -0
- package/dist/transactions/components/shared/TransactionList.d.ts +1 -0
- package/dist/transactions/index.es.js +226 -220
- package/dist/transactions/stores/TransactionStore.d.ts +1 -1
- package/dist/transactions/stores/UiStore.d.ts +0 -2
- package/dist/trends/index.es.js +963 -586
- package/dist/{useAccountDisplayName-BUAApBIb.mjs → useAccountDisplayName-CFNF8766.mjs} +2 -2
- package/dist/{useCombineEvents-BUDIR1ba.mjs → useCombineEvents-CRwX-qWE.mjs} +1 -1
- package/dist/{useInsightsEnabled-DBpwEq10.mjs → useInsightsEnabled-CNjP5cfR.mjs} +1 -1
- package/package.json +7 -7
- package/dist/AccountDetailsHeader-JtSX6Uf9.mjs +0 -120
- package/dist/Drawer-kEE73B87.mjs +0 -113
- package/dist/FinstrongStore-F2c607dj.mjs +0 -101
- package/dist/LineChart-D4GI7nVh.mjs +0 -541
- package/dist/TransactionApi-B3Tksf7L.mjs +0 -86
- package/dist/TransactionDetails-oP1eSuiS.mjs +0 -1334
- package/dist/TrendsStore-DCYbpXPO.mjs +0 -559
- package/dist/common/hooks/usePrevious.d.ts +0 -2
- package/dist/exportTransactionsToCSV-7bVS7KXf.mjs +0 -47
- package/dist/finstrong/utils/Finstrong.d.ts +0 -6
- package/dist/useAriaLive-B3_pRUio.mjs +0 -35
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
import { jsxs as h, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import u from "@mui/material/Box";
|
|
3
|
+
import s from "@mui/material/Stack";
|
|
4
|
+
import { H2 as y, Drawer as B } from "@mxenabled/mxui";
|
|
5
|
+
import x from "@mui/material/Button";
|
|
6
|
+
import v from "@mui/material/IconButton";
|
|
7
|
+
import { ArrowBack as j } from "@mxenabled/mx-icons";
|
|
8
|
+
const F = ({
|
|
9
|
+
footerStyles: e = {},
|
|
10
|
+
hasSecondaryAction: a = !0,
|
|
11
|
+
isPrimaryDisabled: t,
|
|
12
|
+
onPrimaryAction: o,
|
|
13
|
+
onSecondaryAction: n,
|
|
14
|
+
primaryButtonProps: l = {},
|
|
15
|
+
primaryColor: c = "primary",
|
|
16
|
+
primaryText: i = "Save",
|
|
17
|
+
secondaryColor: d = "primary",
|
|
18
|
+
secondaryText: p = "Cancel"
|
|
19
|
+
}) => /* @__PURE__ */ h(
|
|
20
|
+
s,
|
|
21
|
+
{
|
|
22
|
+
sx: {
|
|
23
|
+
bgcolor: "background.paper",
|
|
24
|
+
flexDirection: "row",
|
|
25
|
+
gap: 16,
|
|
26
|
+
justifyContent: "flex-end",
|
|
27
|
+
p: 24,
|
|
28
|
+
...e
|
|
29
|
+
},
|
|
30
|
+
children: [
|
|
31
|
+
a && /* @__PURE__ */ r(
|
|
32
|
+
x,
|
|
33
|
+
{
|
|
34
|
+
color: d,
|
|
35
|
+
onClick: n,
|
|
36
|
+
variant: o ? "outlined" : "contained",
|
|
37
|
+
children: p
|
|
38
|
+
}
|
|
39
|
+
),
|
|
40
|
+
o && /* @__PURE__ */ r(
|
|
41
|
+
x,
|
|
42
|
+
{
|
|
43
|
+
...l,
|
|
44
|
+
color: c,
|
|
45
|
+
disabled: t,
|
|
46
|
+
onClick: o,
|
|
47
|
+
variant: "contained",
|
|
48
|
+
children: i
|
|
49
|
+
}
|
|
50
|
+
)
|
|
51
|
+
]
|
|
52
|
+
}
|
|
53
|
+
), H = ({
|
|
54
|
+
ariaLabelClose: e,
|
|
55
|
+
onClose: a,
|
|
56
|
+
shouldShowBorders: t,
|
|
57
|
+
shouldShowShadow: o,
|
|
58
|
+
title: n
|
|
59
|
+
}) => /* @__PURE__ */ h(
|
|
60
|
+
s,
|
|
61
|
+
{
|
|
62
|
+
"aria-level": 1,
|
|
63
|
+
direction: "row",
|
|
64
|
+
role: "heading",
|
|
65
|
+
sx: {
|
|
66
|
+
alignItems: "center",
|
|
67
|
+
backgroundColor: "background.paper",
|
|
68
|
+
...t && {
|
|
69
|
+
borderBottom: 1,
|
|
70
|
+
borderTop: 1,
|
|
71
|
+
borderColor: "border.light"
|
|
72
|
+
},
|
|
73
|
+
...o && {
|
|
74
|
+
boxShadow: "0px 2px 8px 0px #6A73811F"
|
|
75
|
+
},
|
|
76
|
+
padding: "8px 8px 8px 8px"
|
|
77
|
+
},
|
|
78
|
+
children: [
|
|
79
|
+
/* @__PURE__ */ r(v, { "aria-label": e, color: "primary", onClick: a, children: /* @__PURE__ */ r(j, { color: "primary", sx: { fontSize: 22 } }) }),
|
|
80
|
+
/* @__PURE__ */ r(
|
|
81
|
+
u,
|
|
82
|
+
{
|
|
83
|
+
sx: {
|
|
84
|
+
flexGrow: 1,
|
|
85
|
+
margin: "auto",
|
|
86
|
+
textAlign: "center"
|
|
87
|
+
},
|
|
88
|
+
children: /* @__PURE__ */ r(y, { bold: !0, variant: "Body", children: n })
|
|
89
|
+
}
|
|
90
|
+
),
|
|
91
|
+
/* @__PURE__ */ r(u, { width: "44px" })
|
|
92
|
+
]
|
|
93
|
+
}
|
|
94
|
+
), I = ({
|
|
95
|
+
ariaLabelClose: e = "Close",
|
|
96
|
+
children: a,
|
|
97
|
+
footerStyles: t = {},
|
|
98
|
+
hasSecondaryAction: o = !0,
|
|
99
|
+
id: n,
|
|
100
|
+
isOpen: l,
|
|
101
|
+
isPrimaryDisabled: c,
|
|
102
|
+
onClose: i,
|
|
103
|
+
onPrimaryAction: d,
|
|
104
|
+
onSecondaryAction: p,
|
|
105
|
+
primaryButtonProps: b,
|
|
106
|
+
primaryColor: m = "primary",
|
|
107
|
+
primaryText: g,
|
|
108
|
+
secondaryColor: w = "secondary",
|
|
109
|
+
secondaryText: f,
|
|
110
|
+
shouldShowHeaderBorders: k = !0,
|
|
111
|
+
shouldShowHeaderShadow: C = !1,
|
|
112
|
+
title: D,
|
|
113
|
+
...S
|
|
114
|
+
}) => /* @__PURE__ */ r(
|
|
115
|
+
B,
|
|
116
|
+
{
|
|
117
|
+
id: n,
|
|
118
|
+
isOpen: l,
|
|
119
|
+
onClose: i,
|
|
120
|
+
sx: {
|
|
121
|
+
"& .MuiDrawer-paper": {
|
|
122
|
+
backgroundColor: "background.default",
|
|
123
|
+
borderRadius: 0
|
|
124
|
+
},
|
|
125
|
+
height: "100%",
|
|
126
|
+
"& .MuiToolbar-root": {
|
|
127
|
+
backgroundColor: "background.paper"
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
...S,
|
|
131
|
+
children: /* @__PURE__ */ h(s, { height: "100%", justifyContent: "space-between", children: [
|
|
132
|
+
/* @__PURE__ */ r(
|
|
133
|
+
H,
|
|
134
|
+
{
|
|
135
|
+
ariaLabelClose: e,
|
|
136
|
+
onClose: i,
|
|
137
|
+
shouldShowBorders: k,
|
|
138
|
+
shouldShowShadow: C,
|
|
139
|
+
title: D
|
|
140
|
+
}
|
|
141
|
+
),
|
|
142
|
+
/* @__PURE__ */ r(u, { height: "100%", overflow: "auto", children: a }),
|
|
143
|
+
d && /* @__PURE__ */ r(
|
|
144
|
+
F,
|
|
145
|
+
{
|
|
146
|
+
footerStyles: t,
|
|
147
|
+
hasSecondaryAction: o,
|
|
148
|
+
isPrimaryDisabled: c,
|
|
149
|
+
onPrimaryAction: d,
|
|
150
|
+
onSecondaryAction: p ?? i,
|
|
151
|
+
primaryButtonProps: b,
|
|
152
|
+
primaryColor: m,
|
|
153
|
+
primaryText: g,
|
|
154
|
+
secondaryColor: w,
|
|
155
|
+
secondaryText: f
|
|
156
|
+
}
|
|
157
|
+
)
|
|
158
|
+
] })
|
|
159
|
+
}
|
|
160
|
+
), q = I;
|
|
161
|
+
export {
|
|
162
|
+
q as D
|
|
163
|
+
};
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { jsxs as o, jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { Icon as
|
|
5
|
-
import { Text as
|
|
6
|
-
const
|
|
7
|
-
icon:
|
|
8
|
-
iconColor:
|
|
9
|
-
header:
|
|
10
|
-
onClick:
|
|
2
|
+
import s from "@mui/material/Button";
|
|
3
|
+
import i from "@mui/material/Stack";
|
|
4
|
+
import { Icon as x } from "@mxenabled/mx-icons";
|
|
5
|
+
import { Text as c } from "@mxenabled/mxui";
|
|
6
|
+
const y = ({
|
|
7
|
+
icon: p,
|
|
8
|
+
iconColor: m,
|
|
9
|
+
header: l,
|
|
10
|
+
onClick: a,
|
|
11
11
|
primaryButton: e,
|
|
12
|
-
primaryButtonStartIcon:
|
|
12
|
+
primaryButtonStartIcon: n,
|
|
13
13
|
secondaryButton: r,
|
|
14
14
|
subText: d,
|
|
15
15
|
sx: h,
|
|
16
16
|
variant: f = "buttons"
|
|
17
17
|
}) => /* @__PURE__ */ o(
|
|
18
|
-
|
|
18
|
+
i,
|
|
19
19
|
{
|
|
20
20
|
sx: {
|
|
21
21
|
alignItems: "center",
|
|
@@ -25,19 +25,21 @@ const j = ({
|
|
|
25
25
|
...h
|
|
26
26
|
},
|
|
27
27
|
children: [
|
|
28
|
-
/* @__PURE__ */ t(
|
|
28
|
+
/* @__PURE__ */ t(x, { name: p, size: 48, sx: { color: m } }),
|
|
29
29
|
/* @__PURE__ */ t(
|
|
30
|
-
|
|
30
|
+
c,
|
|
31
31
|
{
|
|
32
|
+
className: "empty-state-header",
|
|
32
33
|
color: "text.primary",
|
|
33
34
|
sx: { fontWeight: 600, mt: 16, textAlign: "center", textWrap: "wrap" },
|
|
34
35
|
variant: "body1",
|
|
35
|
-
children:
|
|
36
|
+
children: l
|
|
36
37
|
}
|
|
37
38
|
),
|
|
38
39
|
/* @__PURE__ */ t(
|
|
39
|
-
|
|
40
|
+
c,
|
|
40
41
|
{
|
|
42
|
+
className: "empty-state-subtext",
|
|
41
43
|
color: "text.secondary",
|
|
42
44
|
sx: { fontWeight: 400, textAlign: "center", textWrap: "wrap", width: "calc(100% - 8px)" },
|
|
43
45
|
variant: "subtitle2",
|
|
@@ -45,7 +47,7 @@ const j = ({
|
|
|
45
47
|
}
|
|
46
48
|
),
|
|
47
49
|
f === "buttons" && (e || r) && /* @__PURE__ */ o(
|
|
48
|
-
|
|
50
|
+
i,
|
|
49
51
|
{
|
|
50
52
|
className: "buttons-footer",
|
|
51
53
|
sx: {
|
|
@@ -54,19 +56,19 @@ const j = ({
|
|
|
54
56
|
},
|
|
55
57
|
children: [
|
|
56
58
|
e && /* @__PURE__ */ t(
|
|
57
|
-
|
|
59
|
+
s,
|
|
58
60
|
{
|
|
59
|
-
onClick: () =>
|
|
60
|
-
startIcon:
|
|
61
|
+
onClick: () => a?.("primary"),
|
|
62
|
+
startIcon: n ? /* @__PURE__ */ t(x, { name: n }) : void 0,
|
|
61
63
|
sx: { textWrap: "nowrap" },
|
|
62
64
|
variant: "contained",
|
|
63
65
|
children: e
|
|
64
66
|
}
|
|
65
67
|
),
|
|
66
68
|
r && /* @__PURE__ */ t(
|
|
67
|
-
|
|
69
|
+
s,
|
|
68
70
|
{
|
|
69
|
-
onClick: () =>
|
|
71
|
+
onClick: () => a?.("secondary"),
|
|
70
72
|
sx: { textWrap: "nowrap" },
|
|
71
73
|
variant: "text",
|
|
72
74
|
children: r
|
|
@@ -79,5 +81,5 @@ const j = ({
|
|
|
79
81
|
}
|
|
80
82
|
);
|
|
81
83
|
export {
|
|
82
|
-
|
|
84
|
+
y as E
|
|
83
85
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
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 { e as p } from "./exportTransactionsToCSV-
|
|
5
|
-
import { O as m } from "./User-
|
|
4
|
+
import { e as p } from "./exportTransactionsToCSV-Cz2t0lmA.mjs";
|
|
5
|
+
import { O as m } from "./User-wXzDI4M8.mjs";
|
|
6
6
|
import { R as x } from "./ResponsiveButton-DZFp78fJ.mjs";
|
|
7
|
-
import { g as _, h as C, u as l } from "./hooks-
|
|
7
|
+
import { g as _, h as C, u as l } from "./hooks-C41HAxM5.mjs";
|
|
8
8
|
const v = ({ filter: t }) => {
|
|
9
9
|
const { onEvent: r } = _(), { tags: e, sortedTransactions: s } = C(), { transactions: n } = l(), a = () => {
|
|
10
10
|
r(m.ON_TRANSACTION_EXPORT_CSV_CLICK), p(t ? s.filter(t) : s, e);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as
|
|
1
|
+
import { g as i } from "./Localization-2MODESHW.mjs";
|
|
2
2
|
const E = {
|
|
3
3
|
ACCOUNTS: "accounts",
|
|
4
4
|
ANALYTICS_EVENTS: "analytics_events",
|
|
@@ -46,26 +46,26 @@ const E = {
|
|
|
46
46
|
USER_PROFILES: "user_profiles",
|
|
47
47
|
WIDGET_URLS: "widget_urls"
|
|
48
48
|
};
|
|
49
|
-
class
|
|
49
|
+
class _ {
|
|
50
50
|
endpoint = "/";
|
|
51
51
|
headers;
|
|
52
52
|
onError;
|
|
53
|
-
constructor(
|
|
54
|
-
this.endpoint =
|
|
53
|
+
constructor(n, s, t, o) {
|
|
54
|
+
this.endpoint = n;
|
|
55
55
|
const e = {
|
|
56
56
|
Accept: "application/json",
|
|
57
|
-
"Accept-Language":
|
|
57
|
+
"Accept-Language": i(),
|
|
58
58
|
"Content-Type": "application/json",
|
|
59
|
-
"MD-Session-Token":
|
|
59
|
+
"MD-Session-Token": s
|
|
60
60
|
};
|
|
61
61
|
this.headers = t || e, this.onError = o;
|
|
62
62
|
}
|
|
63
|
-
get = async (
|
|
64
|
-
const
|
|
63
|
+
get = async (n) => {
|
|
64
|
+
const s = {
|
|
65
65
|
method: "GET",
|
|
66
66
|
headers: this.headers
|
|
67
67
|
};
|
|
68
|
-
return fetch(`${this.endpoint}${
|
|
68
|
+
return fetch(`${this.endpoint}${n}`, s).then((t) => {
|
|
69
69
|
if (t.ok)
|
|
70
70
|
return t.text();
|
|
71
71
|
throw t;
|
|
@@ -73,13 +73,13 @@ class S {
|
|
|
73
73
|
throw this.onError?.(t, void 0, "ApiGetRequestError"), t;
|
|
74
74
|
});
|
|
75
75
|
};
|
|
76
|
-
post = async (
|
|
77
|
-
const t =
|
|
76
|
+
post = async (n, s) => {
|
|
77
|
+
const t = s ? JSON.stringify(s) : void 0, o = {
|
|
78
78
|
method: "POST",
|
|
79
79
|
headers: this.headers,
|
|
80
80
|
body: t
|
|
81
81
|
};
|
|
82
|
-
return fetch(`${this.endpoint}${
|
|
82
|
+
return fetch(`${this.endpoint}${n}`, o).then((e) => {
|
|
83
83
|
if (!e.ok)
|
|
84
84
|
throw e;
|
|
85
85
|
return e.text();
|
|
@@ -87,24 +87,26 @@ class S {
|
|
|
87
87
|
throw e;
|
|
88
88
|
});
|
|
89
89
|
};
|
|
90
|
-
put = async (
|
|
91
|
-
const t = JSON.stringify(
|
|
90
|
+
put = async (n, s) => {
|
|
91
|
+
const t = JSON.stringify(s), o = {
|
|
92
92
|
method: "PUT",
|
|
93
93
|
headers: this.headers,
|
|
94
94
|
body: t
|
|
95
95
|
};
|
|
96
|
-
return fetch(`${this.endpoint}${
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
throw e;
|
|
96
|
+
return fetch(`${this.endpoint}${n}`, o).then((e) => {
|
|
97
|
+
if (e.ok)
|
|
98
|
+
return e.text();
|
|
99
|
+
throw new Error(`${e.status}`);
|
|
100
|
+
}).then((e) => e.length ? JSON.parse(e) : {}).then((e) => e).catch((e) => {
|
|
101
|
+
throw window?.app?.config?.type === "pulse" && this.onError?.(e.message), e.message;
|
|
100
102
|
});
|
|
101
103
|
};
|
|
102
|
-
delete = async (
|
|
103
|
-
const
|
|
104
|
+
delete = async (n) => {
|
|
105
|
+
const s = {
|
|
104
106
|
method: "DELETE",
|
|
105
107
|
headers: this.headers
|
|
106
108
|
};
|
|
107
|
-
return fetch(`${this.endpoint}${
|
|
109
|
+
return fetch(`${this.endpoint}${n}`, s).then((t) => t.ok ? t.text() : t.text().then((o) => {
|
|
108
110
|
throw new Error(o);
|
|
109
111
|
})).then((t) => t.length ? JSON.parse(t) : {}).then((t) => t).catch((t) => {
|
|
110
112
|
throw t;
|
|
@@ -113,5 +115,5 @@ class S {
|
|
|
113
115
|
}
|
|
114
116
|
export {
|
|
115
117
|
E as A,
|
|
116
|
-
|
|
118
|
+
_ as F
|
|
117
119
|
};
|