@mx-cartographer/experiences 9.0.2 → 9.1.0-alpha.bb1
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/dist/Analytics-BKzTPees.mjs +61 -0
- package/dist/GlobalCopyApi-BeXzaDH9.mjs +487 -0
- package/dist/HeaderCell-EhCUSjvj.mjs +10 -0
- package/dist/Loader-BlVzRtUd.mjs +73 -0
- package/dist/MiniWidgetContainer-COwnjfy7.mjs +110 -0
- package/dist/OriginalBalanceAction-sbiqaxok.mjs +110 -0
- package/dist/SpendingLegend-D15ixlQ1.mjs +222 -0
- package/dist/accounts/index.es.js +12 -1598
- package/dist/accounts-DkyAiLpg.mjs +15632 -0
- package/dist/analytics/index.es.js +155 -139
- package/dist/budgets/index.es.js +1317 -1266
- package/dist/cashflow/index.es.js +1047 -942
- package/dist/categories/index.es.js +4 -4
- package/dist/common/index.es.js +101 -310
- package/dist/core/index.es.js +80 -104
- package/dist/core-BexP5oiV.mjs +4047 -0
- package/dist/dashboard/index.es.js +185 -141
- package/dist/debts/index.es.js +1384 -1272
- package/dist/finstrong/index.es.js +3366 -3471
- package/dist/goals/index.es.js +1103 -984
- package/dist/help/index.es.js +3 -25
- package/dist/help-CctDYrAH.mjs +2308 -0
- package/dist/insights/index.es.js +93 -4843
- package/dist/investments/index.es.js +1533 -1522
- package/dist/merchants/index.es.js +75 -64
- package/dist/microinsights/index.es.js +15 -824
- package/dist/microinsights-CRf3ChsJ.mjs +1814 -0
- package/dist/networth/index.es.js +550 -503
- package/dist/notifications/index.es.js +169 -161
- package/dist/recurringtransactions/index.es.js +10 -962
- package/dist/recurringtransactions-gbJ_NA8u.mjs +1564 -0
- package/dist/settings/index.es.js +13 -880
- package/dist/settings-ZMHe439l.mjs +1526 -0
- package/dist/spending/index.es.js +400 -456
- package/dist/transactions/index.es.js +10 -603
- package/dist/trends/index.es.js +1268 -1407
- package/package.json +28 -28
- package/dist/Account-BaJmiJAG.mjs +0 -118
- package/dist/Account-BxHMlV9R.mjs +0 -30
- package/dist/AccountDetailsHeader-DIysk_4w.mjs +0 -95
- package/dist/AccountDisplayName-CO7z3v99.mjs +0 -11
- package/dist/AccountFields-mwJ8NXsX.mjs +0 -141
- package/dist/AccountListItem-BDXHs4tV.mjs +0 -94
- package/dist/AccountUtils-T5_Odvos.mjs +0 -27
- package/dist/Accounts-CseLC3lL.mjs +0 -5
- package/dist/Analytics-CkYXKvco.mjs +0 -53
- package/dist/Analytics-CzGzz_sE.mjs +0 -136
- package/dist/ApiEndpoints-DXwIYNUV.mjs +0 -49
- package/dist/BudgetUtil-Bg2AQJpQ.mjs +0 -74
- package/dist/Category-DEKZGLYe.mjs +0 -301
- package/dist/CategorySelectorDrawer-8soGrhB8.mjs +0 -430
- package/dist/Connect-Dk6GZEsA.mjs +0 -39
- package/dist/ConnectCard-CCep7Zqe.mjs +0 -54
- package/dist/ConnectDrawer-Cnjr3Ddg.mjs +0 -58
- package/dist/ConnectionsDrawer-CtfPXk0M.mjs +0 -54
- package/dist/CurrencyDialog-DumQCTPO.mjs +0 -373
- package/dist/CurrencyInput-adTIRtL3.mjs +0 -87
- package/dist/CurrencyText-CCbE6MmF.mjs +0 -20
- package/dist/DateFormats-HudZ3Bjs.mjs +0 -64
- package/dist/DateUtil-Bhq59ZVg.mjs +0 -58
- package/dist/DebtUtils-DD3186U-.mjs +0 -153
- package/dist/Dialog-Bvd2n8hz.mjs +0 -66
- package/dist/Donut-SzzfZDHF.mjs +0 -88
- package/dist/Drawer-BXqqBMxg.mjs +0 -174
- package/dist/EmbeddedCard-DPwJjqMH.mjs +0 -856
- package/dist/EmptyState-CJUDc3kD.mjs +0 -84
- package/dist/Error-Dogaw2jO.mjs +0 -84
- package/dist/ErrorBoundary-CsdOcnJ9.mjs +0 -23
- package/dist/ExportCsvAction-Bw02ZJEj.mjs +0 -24
- package/dist/GlobalAccountFilter-7Cg2-9A5.mjs +0 -237
- package/dist/GlobalCopyApi-wcnDUzMV.mjs +0 -128
- package/dist/GoalsUtil-C9EnLWvC.mjs +0 -107
- package/dist/HeaderCell-P8w6CmfO.mjs +0 -6
- package/dist/Help-CkQTjORd.mjs +0 -299
- package/dist/Help-DJ8PrVHX.mjs +0 -3209
- package/dist/IconBacking-DgT8DCeh.mjs +0 -39
- package/dist/InformationTooltip-4su8bn1e.mjs +0 -41
- package/dist/InvestmentUtil-BItV7uEs.mjs +0 -134
- package/dist/LineChart-CejWS_rh.mjs +0 -612
- package/dist/ListItemAction-CzZ8s39Z.mjs +0 -69
- package/dist/ListItemRow-kH1rn8Xu.mjs +0 -67
- package/dist/ListItemWrapper-B5r-YQQ_.mjs +0 -42
- package/dist/Loader-CxeBwuPG.mjs +0 -21
- package/dist/Localization-DnoVyBNK.mjs +0 -38
- package/dist/ManageIncome-D1yBODQi.mjs +0 -595
- package/dist/MicroWidgetContainer-CfKdQfhi.mjs +0 -45
- package/dist/MiniWidgetContainer-BdPiUU-u.mjs +0 -66
- package/dist/NetWorthUtils-DilGN1nW.mjs +0 -95
- package/dist/Notification-DTNYSd8P.mjs +0 -7
- package/dist/NotificationSettings-B4JA5IKE.mjs +0 -677
- package/dist/NotificationUtils-BRGFTePr.mjs +0 -23
- package/dist/NumberFormatting--XMeeBfr.mjs +0 -49
- package/dist/OriginalBalanceAction-BybTXDtO.mjs +0 -114
- package/dist/RecurringSettings-D2xbNb67.mjs +0 -88
- package/dist/RecurringTransactionsUtil-B3rLEx_g.mjs +0 -253
- package/dist/ResponsiveButton-CC9F_Ezk.mjs +0 -45
- package/dist/SearchBox-Cpgu_gdO.mjs +0 -50
- package/dist/Select-BFt-HD-L.mjs +0 -55
- package/dist/SelectionBox-B4xELRgp.mjs +0 -48
- package/dist/SingleSegmentDonut-7Uy6VEld.mjs +0 -69
- package/dist/Sizes-DISGrlUg.mjs +0 -6
- package/dist/SkeletonLoader-BaNboJjD.mjs +0 -38
- package/dist/SpendingData-PKlh8caU.mjs +0 -53
- package/dist/SpendingLegend-5Ct_FZ8o.mjs +0 -193
- package/dist/StatusBar-CPfSXe80.mjs +0 -30
- package/dist/TabContentContainer-CnMXkVqr.mjs +0 -21
- package/dist/ToggleListItem-Dl1lXNwj.mjs +0 -91
- package/dist/TransactionDetails-DctXr07p.mjs +0 -1714
- package/dist/TransactionUtils-BphBJBbU.mjs +0 -234
- package/dist/TrendsUtil-D9z3kIj_.mjs +0 -69
- package/dist/UserStore-CRpKQjpP.mjs +0 -3002
- package/dist/ViewMoreMicroCard-BD_MNc2z.mjs +0 -1295
- package/dist/WidgetContainer-CmbU4CBH.mjs +0 -482
- package/dist/hooks-BaO_gOI6.mjs +0 -77
- package/dist/useAccountDisplayName-CFa_MrS6.mjs +0 -15
- package/dist/useAriaLive-MkYebyUR.mjs +0 -35
- package/dist/useDimensions-CeDR9V8N.mjs +0 -36
- package/dist/useInsightsEnabled-DaNLPmUU.mjs +0 -11
- package/dist/useScreenSize-mWpmnh5w.mjs +0 -36
- package/dist/useWidgetLoadTimer-CJb-RELP.mjs +0 -19
|
@@ -1,430 +0,0 @@
|
|
|
1
|
-
import { jsx as t, jsxs as g } from "react/jsx-runtime";
|
|
2
|
-
import { observer as p } from "mobx-react-lite";
|
|
3
|
-
import E from "react";
|
|
4
|
-
import $ from "@mui/material/Stack";
|
|
5
|
-
import { G as K, l as f, u as S, g as A, b as B } from "./hooks-BaO_gOI6.mjs";
|
|
6
|
-
import U from "@mui/material/List";
|
|
7
|
-
import V from "@mui/material/Paper";
|
|
8
|
-
import { b as _ } from "./Localization-DnoVyBNK.mjs";
|
|
9
|
-
import Y from "@mui/material/Divider";
|
|
10
|
-
import T from "@mui/material/ListItem";
|
|
11
|
-
import W from "@mui/material/ListItemAvatar";
|
|
12
|
-
import N from "@mui/material/ListItemButton";
|
|
13
|
-
import F from "@mui/material/ListItemIcon";
|
|
14
|
-
import G from "@mui/material/ListItemText";
|
|
15
|
-
import { CheckCircle as M, Edit as j, Delete as X, ExpandMore as z } from "@mxenabled/mx-icons";
|
|
16
|
-
import { Text as q, TextField as H, CategoryIcon as J } from "@mxenabled/mxui";
|
|
17
|
-
import Q from "@mui/material/Collapse";
|
|
18
|
-
import Z from "@mui/material/DialogContent";
|
|
19
|
-
import { D as ee } from "./Dialog-Bvd2n8hz.mjs";
|
|
20
|
-
import te from "@mui/material/Box";
|
|
21
|
-
import oe from "@mui/material/Chip";
|
|
22
|
-
import v from "@mui/material/IconButton";
|
|
23
|
-
import { u as ae } from "./useAriaLive-MkYebyUR.mjs";
|
|
24
|
-
import { L as k } from "./Loader-CxeBwuPG.mjs";
|
|
25
|
-
import { S as re } from "./SearchBox-Cpgu_gdO.mjs";
|
|
26
|
-
import { D as ne } from "./Drawer-BXqqBMxg.mjs";
|
|
27
|
-
const y = () => {
|
|
28
|
-
if (!E.useContext(K))
|
|
29
|
-
throw new Error("useCategoryUiStore() must be used within the GlobalDataContext");
|
|
30
|
-
return f().uiStore;
|
|
31
|
-
}, C = {
|
|
32
|
-
ON_CATEGORY_EXPANDED: "onCategoryExpanded",
|
|
33
|
-
ON_CATEGORY_COLLAPSED: "onCategoryCollapsed",
|
|
34
|
-
ON_CATEGORY_SELECTED: "onCategorySelected",
|
|
35
|
-
ON_SUBCATEGORY_ADD_CLICK: "onSubcategoryAddClick",
|
|
36
|
-
ON_SUBCATEGORY_ADD_CANCEL_CLICK: "onSubcategoryAddCancelClick",
|
|
37
|
-
ON_SUBCATEGORY_ADDED: "onSubcategoryAdded",
|
|
38
|
-
ON_SUBCATEGORY_EDIT_CLICK: "onSubcategoryEditClick",
|
|
39
|
-
ON_SUBCATEGORY_EDIT_CANCEL_CLICK: "onSubcategoryEditCancelClick",
|
|
40
|
-
ON_SUBCATEGORY_DELETE_CLICK: "onSubcategoryDeleteClick",
|
|
41
|
-
ON_SUBCATEGORY_DELETED: "onSubcategoryDeleted",
|
|
42
|
-
ON_SUBCATEGORY_SAVED: "onSubcategorySaved"
|
|
43
|
-
};
|
|
44
|
-
var L = /* @__PURE__ */ ((e) => (e.ADD = "add", e.EDIT = "edit", e.DELETE = "delete", e))(L || {});
|
|
45
|
-
const se = ({
|
|
46
|
-
categoryName: e = "",
|
|
47
|
-
onClose: s,
|
|
48
|
-
onSave: o,
|
|
49
|
-
isOpen: l,
|
|
50
|
-
type: i
|
|
51
|
-
}) => {
|
|
52
|
-
const [a, c] = E.useState(e), { categories: r } = S(), { setShouldDisableDrawerScroll: n } = y();
|
|
53
|
-
let d = "", m = [];
|
|
54
|
-
const u = i === "delete", h = e.length > 50 ? `${e.slice(0, 50)}...` : e, b = i === "edit" ? _(r.edit_subcategory_aria, h) : r.add_subcategory_aria;
|
|
55
|
-
switch (i) {
|
|
56
|
-
case "add":
|
|
57
|
-
d = r.add_subcategory_title;
|
|
58
|
-
break;
|
|
59
|
-
case "edit":
|
|
60
|
-
d = _(r.edit_subcategory_title, h);
|
|
61
|
-
break;
|
|
62
|
-
case "delete":
|
|
63
|
-
d = r.delete_subcategory_heading, m = _(
|
|
64
|
-
r.all_transactions_in_this_subcategory,
|
|
65
|
-
/* @__PURE__ */ t(q, { bold: !0, component: "span", children: _(r.all_parent_category, h) })
|
|
66
|
-
);
|
|
67
|
-
break;
|
|
68
|
-
}
|
|
69
|
-
return /* @__PURE__ */ t(
|
|
70
|
-
ee,
|
|
71
|
-
{
|
|
72
|
-
copy: {
|
|
73
|
-
title: d
|
|
74
|
-
},
|
|
75
|
-
disablePrimaryButton: !a,
|
|
76
|
-
isOpen: l,
|
|
77
|
-
onClose: () => {
|
|
78
|
-
n(!1), s();
|
|
79
|
-
},
|
|
80
|
-
onPrimaryAction: () => {
|
|
81
|
-
n(!1), o(a);
|
|
82
|
-
},
|
|
83
|
-
children: /* @__PURE__ */ t(Z, { children: u ? m : /* @__PURE__ */ t(
|
|
84
|
-
H,
|
|
85
|
-
{
|
|
86
|
-
label: b,
|
|
87
|
-
name: "modify-subcategory",
|
|
88
|
-
onChange: (D) => c(D.target.value),
|
|
89
|
-
placeholder: r.input_placeholder,
|
|
90
|
-
slotProps: {
|
|
91
|
-
htmlInput: {
|
|
92
|
-
"aria-label": b,
|
|
93
|
-
maxLength: 50
|
|
94
|
-
}
|
|
95
|
-
},
|
|
96
|
-
sx: { width: "100%" },
|
|
97
|
-
truncate: !0,
|
|
98
|
-
value: a
|
|
99
|
-
}
|
|
100
|
-
) })
|
|
101
|
-
}
|
|
102
|
-
);
|
|
103
|
-
}, R = p(se), ie = ({ announce: e, parentCategory: s }) => {
|
|
104
|
-
const [o, l] = E.useState(!1), { addCategory: i } = f(), { categories: a } = S(), { onEvent: c } = A(), { setShouldDisableDrawerScroll: r } = y(), n = async (u) => {
|
|
105
|
-
await i(u.trim(), s.guid), e(_(a.add_subcategory_announcement, u)), c(C.ON_SUBCATEGORY_ADDED), l(!1);
|
|
106
|
-
}, d = async () => {
|
|
107
|
-
c(C.ON_SUBCATEGORY_ADD_CLICK), r(!0), l(!0);
|
|
108
|
-
}, m = () => {
|
|
109
|
-
l(!1), c(C.ON_SUBCATEGORY_ADD_CANCEL_CLICK);
|
|
110
|
-
};
|
|
111
|
-
return /* @__PURE__ */ g(T, { disableGutters: !0, disablePadding: !0, children: [
|
|
112
|
-
/* @__PURE__ */ t(N, { onClick: d, sx: { ml: 60 }, children: /* @__PURE__ */ t(
|
|
113
|
-
G,
|
|
114
|
-
{
|
|
115
|
-
primary: a.add_subcategory_button,
|
|
116
|
-
slotProps: { primary: { color: "primary", fontWeight: "normal", variant: "body1" } }
|
|
117
|
-
}
|
|
118
|
-
) }),
|
|
119
|
-
o && /* @__PURE__ */ t(
|
|
120
|
-
R,
|
|
121
|
-
{
|
|
122
|
-
isOpen: o,
|
|
123
|
-
onClose: m,
|
|
124
|
-
onSave: n,
|
|
125
|
-
type: L.ADD
|
|
126
|
-
}
|
|
127
|
-
)
|
|
128
|
-
] });
|
|
129
|
-
}, ce = p(ie), le = ({
|
|
130
|
-
announce: e,
|
|
131
|
-
setShowRename: s,
|
|
132
|
-
subCategory: o,
|
|
133
|
-
showRename: l
|
|
134
|
-
}) => {
|
|
135
|
-
const { onEvent: i } = A(), { updateCategory: a } = f(), { categories: c } = S(), r = async (d) => {
|
|
136
|
-
await a({ ...o, name: d }), e(_(c.edit_subcategory_announcement, o.name, d)), i(C.ON_SUBCATEGORY_SAVED), s(!1);
|
|
137
|
-
}, n = () => {
|
|
138
|
-
s(!1), i(C.ON_SUBCATEGORY_EDIT_CANCEL_CLICK);
|
|
139
|
-
};
|
|
140
|
-
return /* @__PURE__ */ t(
|
|
141
|
-
R,
|
|
142
|
-
{
|
|
143
|
-
categoryName: o.name,
|
|
144
|
-
isOpen: l,
|
|
145
|
-
onClose: n,
|
|
146
|
-
onSave: r,
|
|
147
|
-
type: L.EDIT
|
|
148
|
-
}
|
|
149
|
-
);
|
|
150
|
-
}, de = p(le), ue = ({
|
|
151
|
-
announce: e,
|
|
152
|
-
parentCategory: s,
|
|
153
|
-
showDelete: o,
|
|
154
|
-
setShowDelete: l,
|
|
155
|
-
subCategory: i
|
|
156
|
-
}) => {
|
|
157
|
-
const { onEvent: a } = A(), { removeCategory: c } = f(), { categories: r } = S(), n = () => {
|
|
158
|
-
l(!1), a(C.ON_SUBCATEGORY_DELETE_CLICK);
|
|
159
|
-
}, d = async () => {
|
|
160
|
-
await c(i.guid), e(_(r.delete_subcategory_announcement, i.name)), a(C.ON_SUBCATEGORY_DELETED), l(!1);
|
|
161
|
-
};
|
|
162
|
-
return /* @__PURE__ */ t(
|
|
163
|
-
R,
|
|
164
|
-
{
|
|
165
|
-
categoryName: s.name,
|
|
166
|
-
isOpen: o,
|
|
167
|
-
onClose: n,
|
|
168
|
-
onSave: d,
|
|
169
|
-
type: L.DELETE
|
|
170
|
-
}
|
|
171
|
-
);
|
|
172
|
-
}, me = p(ue), Ce = ({
|
|
173
|
-
announce: e,
|
|
174
|
-
parentCategory: s,
|
|
175
|
-
subCategory: o
|
|
176
|
-
}) => {
|
|
177
|
-
const {
|
|
178
|
-
onSelect: l,
|
|
179
|
-
selectedGuid: i,
|
|
180
|
-
setSelectedGuid: a,
|
|
181
|
-
setShouldDisableDrawerScroll: c,
|
|
182
|
-
showSelected: r,
|
|
183
|
-
unselectable: n,
|
|
184
|
-
unselectableText: d
|
|
185
|
-
} = y(), { categories: m } = S(), { onEvent: u } = A(), [h, b] = E.useState(!1), [D, O] = E.useState(!1), x = !!o.revision, w = o.guid === i, I = !n.some((P) => P === o.guid);
|
|
186
|
-
return /* @__PURE__ */ g(
|
|
187
|
-
T,
|
|
188
|
-
{
|
|
189
|
-
className: "mx-cat-subcategory-row",
|
|
190
|
-
disableGutters: !0,
|
|
191
|
-
disablePadding: !0,
|
|
192
|
-
sx: { pl: 58 },
|
|
193
|
-
children: [
|
|
194
|
-
/* @__PURE__ */ g(
|
|
195
|
-
N,
|
|
196
|
-
{
|
|
197
|
-
"aria-pressed": w,
|
|
198
|
-
color: "secondary",
|
|
199
|
-
onClick: () => {
|
|
200
|
-
I && (a(o.guid), l(o.guid), u(C.ON_CATEGORY_SELECTED));
|
|
201
|
-
},
|
|
202
|
-
sx: { height: 44, minWidth: 0, overflow: "hidden" },
|
|
203
|
-
children: [
|
|
204
|
-
/* @__PURE__ */ t(
|
|
205
|
-
G,
|
|
206
|
-
{
|
|
207
|
-
primary: o.name,
|
|
208
|
-
slotProps: { primary: { fontWeight: "normal", variant: "body1", noWrap: !0 } }
|
|
209
|
-
}
|
|
210
|
-
),
|
|
211
|
-
r && w && /* @__PURE__ */ t(M, { fontSize: "small" }),
|
|
212
|
-
!I && /* @__PURE__ */ t(oe, { label: d })
|
|
213
|
-
]
|
|
214
|
-
}
|
|
215
|
-
),
|
|
216
|
-
x && /* @__PURE__ */ g(
|
|
217
|
-
te,
|
|
218
|
-
{
|
|
219
|
-
className: "mx-cat-subcategory-edit-container",
|
|
220
|
-
sx: { marginRight: 24, flexShrink: 0 },
|
|
221
|
-
children: [
|
|
222
|
-
/* @__PURE__ */ t(
|
|
223
|
-
v,
|
|
224
|
-
{
|
|
225
|
-
"aria-label": _(m.edit_subcategory_title, o.name),
|
|
226
|
-
onClick: () => {
|
|
227
|
-
b(!0), c(!0), u(C.ON_SUBCATEGORY_EDIT_CLICK);
|
|
228
|
-
},
|
|
229
|
-
children: /* @__PURE__ */ t(j, { color: "secondary" })
|
|
230
|
-
}
|
|
231
|
-
),
|
|
232
|
-
/* @__PURE__ */ t(
|
|
233
|
-
v,
|
|
234
|
-
{
|
|
235
|
-
"aria-label": _(m.delete_subcategory_aria, o.name),
|
|
236
|
-
edge: "end",
|
|
237
|
-
onClick: () => {
|
|
238
|
-
O(!0), c(!0), u(C.ON_SUBCATEGORY_DELETE_CLICK);
|
|
239
|
-
},
|
|
240
|
-
children: /* @__PURE__ */ t(X, { color: "secondary" })
|
|
241
|
-
}
|
|
242
|
-
)
|
|
243
|
-
]
|
|
244
|
-
}
|
|
245
|
-
),
|
|
246
|
-
D && /* @__PURE__ */ t(
|
|
247
|
-
me,
|
|
248
|
-
{
|
|
249
|
-
announce: e,
|
|
250
|
-
parentCategory: s,
|
|
251
|
-
setShowDelete: O,
|
|
252
|
-
showDelete: D,
|
|
253
|
-
subCategory: o
|
|
254
|
-
}
|
|
255
|
-
),
|
|
256
|
-
h && /* @__PURE__ */ t(
|
|
257
|
-
de,
|
|
258
|
-
{
|
|
259
|
-
announce: e,
|
|
260
|
-
setShowRename: b,
|
|
261
|
-
showRename: h,
|
|
262
|
-
subCategory: o
|
|
263
|
-
}
|
|
264
|
-
)
|
|
265
|
-
]
|
|
266
|
-
}
|
|
267
|
-
);
|
|
268
|
-
}, _e = p(Ce), ge = ({ categories: e, parentCategory: s }) => {
|
|
269
|
-
const { expandedGuid: o, searchValue: l } = y(), { announce: i, ariaLive: a } = ae(), c = s.guid === o, r = !!l;
|
|
270
|
-
return /* @__PURE__ */ g(
|
|
271
|
-
Q,
|
|
272
|
-
{
|
|
273
|
-
in: c || r,
|
|
274
|
-
sx: { backgroundColor: "background.default" },
|
|
275
|
-
timeout: "auto",
|
|
276
|
-
unmountOnExit: !0,
|
|
277
|
-
children: [
|
|
278
|
-
a,
|
|
279
|
-
/* @__PURE__ */ g(
|
|
280
|
-
U,
|
|
281
|
-
{
|
|
282
|
-
"aria-labelledby": `category-${s.guid}`,
|
|
283
|
-
className: "mx-cat-subcategory-list",
|
|
284
|
-
id: `subcategories-${s.guid}`,
|
|
285
|
-
children: [
|
|
286
|
-
e.map((n) => /* @__PURE__ */ g(E.Fragment, { children: [
|
|
287
|
-
/* @__PURE__ */ t(
|
|
288
|
-
_e,
|
|
289
|
-
{
|
|
290
|
-
announce: i,
|
|
291
|
-
parentCategory: s,
|
|
292
|
-
subCategory: n
|
|
293
|
-
}
|
|
294
|
-
),
|
|
295
|
-
/* @__PURE__ */ t(Y, { "aria-hidden": "true", component: "li", sx: { ml: 58 } })
|
|
296
|
-
] }, n.guid)),
|
|
297
|
-
!r && /* @__PURE__ */ t(ce, { announce: i, parentCategory: s })
|
|
298
|
-
]
|
|
299
|
-
}
|
|
300
|
-
)
|
|
301
|
-
]
|
|
302
|
-
}
|
|
303
|
-
);
|
|
304
|
-
}, Ee = p(ge), pe = ({ category: e, subCategories: s }) => {
|
|
305
|
-
const { expandedGuid: o, searchValue: l, setExpandedGuid: i } = y(), { onEvent: a } = A(), c = e.guid === o, r = () => {
|
|
306
|
-
const n = e.guid !== o ? e.guid : null;
|
|
307
|
-
i(n), a(n ? C.ON_CATEGORY_EXPANDED : C.ON_CATEGORY_COLLAPSED);
|
|
308
|
-
};
|
|
309
|
-
return /* @__PURE__ */ g(E.Fragment, { children: [
|
|
310
|
-
/* @__PURE__ */ t(T, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ g(
|
|
311
|
-
N,
|
|
312
|
-
{
|
|
313
|
-
"aria-controls": `subcategories-${e.guid}`,
|
|
314
|
-
"aria-expanded": e.guid === o,
|
|
315
|
-
"aria-label": e.name,
|
|
316
|
-
id: `category-${e.guid}`,
|
|
317
|
-
onClick: r,
|
|
318
|
-
children: [
|
|
319
|
-
/* @__PURE__ */ t(W, { children: /* @__PURE__ */ t(J, { categoryGuid: e.guid }) }),
|
|
320
|
-
/* @__PURE__ */ t(
|
|
321
|
-
G,
|
|
322
|
-
{
|
|
323
|
-
primary: e.name,
|
|
324
|
-
slotProps: { primary: { fontWeight: "normal", variant: "body1" } }
|
|
325
|
-
}
|
|
326
|
-
),
|
|
327
|
-
/* @__PURE__ */ t(F, { children: /* @__PURE__ */ t(
|
|
328
|
-
z,
|
|
329
|
-
{
|
|
330
|
-
sx: {
|
|
331
|
-
transition: "transform 0.3s ease-in-out",
|
|
332
|
-
transform: c || l ? "rotate(180deg)" : "rotate(0deg)"
|
|
333
|
-
}
|
|
334
|
-
}
|
|
335
|
-
) })
|
|
336
|
-
]
|
|
337
|
-
},
|
|
338
|
-
e.guid
|
|
339
|
-
) }),
|
|
340
|
-
/* @__PURE__ */ t(Y, { "aria-hidden": "true", component: "li", sx: { ml: 58 } }),
|
|
341
|
-
/* @__PURE__ */ t("li", { style: { listStyle: "none" }, children: /* @__PURE__ */ t(Ee, { categories: s, parentCategory: e }) })
|
|
342
|
-
] });
|
|
343
|
-
}, he = p(pe), Se = () => {
|
|
344
|
-
const { categories: e } = f(), { searchValue: s } = y(), { categories: o } = S(), i = ((a, c = "") => a.reduce((r, n) => {
|
|
345
|
-
if (n.parent_guid === null) {
|
|
346
|
-
const m = [
|
|
347
|
-
{
|
|
348
|
-
...n,
|
|
349
|
-
name: _(o.all_parent_category, n.name),
|
|
350
|
-
parent_guid: n.guid
|
|
351
|
-
},
|
|
352
|
-
...a
|
|
353
|
-
].filter(
|
|
354
|
-
(u) => u.parent_guid === n.guid && u.name.toLowerCase().includes(c.toLowerCase())
|
|
355
|
-
);
|
|
356
|
-
if (n.name.toLowerCase().includes(c.toLowerCase()) || m.length > 0)
|
|
357
|
-
return [...r, { category: { ...n }, children: m }];
|
|
358
|
-
}
|
|
359
|
-
return r;
|
|
360
|
-
}, []))(e, s);
|
|
361
|
-
return /* @__PURE__ */ t(V, { className: "mx-cat-category-list", sx: { boxShadow: "none" }, children: /* @__PURE__ */ t(U, { children: i.map((a) => /* @__PURE__ */ t(
|
|
362
|
-
he,
|
|
363
|
-
{
|
|
364
|
-
category: a.category,
|
|
365
|
-
subCategories: a.children
|
|
366
|
-
},
|
|
367
|
-
a.category.guid
|
|
368
|
-
)) }) });
|
|
369
|
-
}, be = p(Se), ye = ({
|
|
370
|
-
initialSelected: e,
|
|
371
|
-
onSelect: s = void 0,
|
|
372
|
-
showSelected: o = !0,
|
|
373
|
-
unselectable: l = [],
|
|
374
|
-
unselectableText: i = "Unselectable"
|
|
375
|
-
}) => {
|
|
376
|
-
const { categories: a, loadCategories: c } = f(), { common: r } = S(), { isCopyLoaded: n } = B(), {
|
|
377
|
-
searchValue: d,
|
|
378
|
-
setOnSelect: m,
|
|
379
|
-
setSearchValue: u,
|
|
380
|
-
setSelectedGuid: h,
|
|
381
|
-
setShowSelected: b,
|
|
382
|
-
setUnselectable: D,
|
|
383
|
-
setUnselectableText: O
|
|
384
|
-
} = y();
|
|
385
|
-
return E.useEffect(() => {
|
|
386
|
-
s && m(s);
|
|
387
|
-
}), E.useEffect(() => {
|
|
388
|
-
a.length || c();
|
|
389
|
-
}, []), E.useEffect(() => {
|
|
390
|
-
e && h(e), b(o), D(l), O(i);
|
|
391
|
-
}, [e, o, l, i]), n ? /* @__PURE__ */ g($, { className: "mx-cat-category-selector", sx: { width: "100%" }, children: [
|
|
392
|
-
/* @__PURE__ */ t(
|
|
393
|
-
re,
|
|
394
|
-
{
|
|
395
|
-
ariaLabel: r.search_aria,
|
|
396
|
-
cancelAriaLabel: r.cancel_search_aria,
|
|
397
|
-
onChange: (x) => u(x),
|
|
398
|
-
placeholder: r.search_placeholder,
|
|
399
|
-
searchValue: d
|
|
400
|
-
}
|
|
401
|
-
),
|
|
402
|
-
/* @__PURE__ */ t(be, {})
|
|
403
|
-
] }) : /* @__PURE__ */ t(k, {});
|
|
404
|
-
}, De = p(ye), fe = ({
|
|
405
|
-
id: e,
|
|
406
|
-
onClose: s,
|
|
407
|
-
title: o,
|
|
408
|
-
showDrawer: l,
|
|
409
|
-
...i
|
|
410
|
-
}) => {
|
|
411
|
-
const { common: a } = S(), { isCopyLoaded: c } = B();
|
|
412
|
-
return c ? /* @__PURE__ */ t(
|
|
413
|
-
ne,
|
|
414
|
-
{
|
|
415
|
-
ariaLabelClose: a.close_aria,
|
|
416
|
-
className: "mx-cat-category-selector-drawer",
|
|
417
|
-
id: e,
|
|
418
|
-
isOpen: l,
|
|
419
|
-
onClose: s,
|
|
420
|
-
title: o,
|
|
421
|
-
children: /* @__PURE__ */ t(De, { ...i })
|
|
422
|
-
}
|
|
423
|
-
) : /* @__PURE__ */ t(k, {});
|
|
424
|
-
}, Je = p(fe);
|
|
425
|
-
export {
|
|
426
|
-
he as C,
|
|
427
|
-
De as a,
|
|
428
|
-
Je as b,
|
|
429
|
-
y as u
|
|
430
|
-
};
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { jsx as o, jsxs as e } from "react/jsx-runtime";
|
|
2
|
-
import { observer as i } from "mobx-react-lite";
|
|
3
|
-
import c from "@mui/material/Box";
|
|
4
|
-
import s from "@mui/material/CircularProgress";
|
|
5
|
-
import m from "@mui/material/Stack";
|
|
6
|
-
import { Text as a } from "@mxenabled/mxui";
|
|
7
|
-
import { M as t } from "./Accounts-CseLC3lL.mjs";
|
|
8
|
-
import { u as p } from "./hooks-BaO_gOI6.mjs";
|
|
9
|
-
const l = ({ status: r = t.Loading }) => {
|
|
10
|
-
const { connect: n } = p();
|
|
11
|
-
return /* @__PURE__ */ o(
|
|
12
|
-
c,
|
|
13
|
-
{
|
|
14
|
-
sx: {
|
|
15
|
-
height: "calc(100% - 62px)",
|
|
16
|
-
position: "absolute",
|
|
17
|
-
width: "100%"
|
|
18
|
-
},
|
|
19
|
-
children: /* @__PURE__ */ e(m, { alignItems: "center", direction: "column", justifyContent: "center", sx: { height: "100%" }, children: [
|
|
20
|
-
r === t.Loading && /* @__PURE__ */ o(s, { color: "primary", size: 48 }),
|
|
21
|
-
/* @__PURE__ */ o(
|
|
22
|
-
a,
|
|
23
|
-
{
|
|
24
|
-
sx: {
|
|
25
|
-
color: "grey.600",
|
|
26
|
-
marginTop: "16px"
|
|
27
|
-
},
|
|
28
|
-
children: r === t.Error ? n.oops : n.loading
|
|
29
|
-
}
|
|
30
|
-
)
|
|
31
|
-
] })
|
|
32
|
-
}
|
|
33
|
-
);
|
|
34
|
-
}, S = i(l), T = "connect_widget", _ = "connections_widget";
|
|
35
|
-
export {
|
|
36
|
-
_ as C,
|
|
37
|
-
S as a,
|
|
38
|
-
T as b
|
|
39
|
-
};
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { jsxs as r, jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import n from "react";
|
|
3
|
-
import m from "@mui/material/Button";
|
|
4
|
-
import l from "@mui/material/Card";
|
|
5
|
-
import d from "@mui/material/CardContent";
|
|
6
|
-
import p from "@mui/material/CardHeader";
|
|
7
|
-
import C from "@mui/material/Stack";
|
|
8
|
-
import { AccountBalance as f, ChevronRight as h } from "@mxenabled/mx-icons";
|
|
9
|
-
import { Text as a } from "@mxenabled/mxui";
|
|
10
|
-
import { C as x } from "./ConnectDrawer-Cnjr3Ddg.mjs";
|
|
11
|
-
const H = ({ description: i, label: e, title: c }) => {
|
|
12
|
-
const [s, o] = n.useState(!1);
|
|
13
|
-
return /* @__PURE__ */ r(n.Fragment, { children: [
|
|
14
|
-
/* @__PURE__ */ r(l, { sx: { m: 24 }, children: [
|
|
15
|
-
/* @__PURE__ */ t(
|
|
16
|
-
p,
|
|
17
|
-
{
|
|
18
|
-
avatar: /* @__PURE__ */ t(f, {}),
|
|
19
|
-
sx: { ".MuiCardHeader-avatar": { mr: 8 } },
|
|
20
|
-
title: /* @__PURE__ */ t(a, { bold: !0, variant: "body1", children: c })
|
|
21
|
-
}
|
|
22
|
-
),
|
|
23
|
-
/* @__PURE__ */ t(d, { sx: { ":last-child": { pb: 4 }, ml: 28, py: 0 }, children: /* @__PURE__ */ r(C, { alignItems: "flex-start", spacing: 2, children: [
|
|
24
|
-
/* @__PURE__ */ t(a, { color: "text.secondary", variant: "subtitle2", children: i }),
|
|
25
|
-
/* @__PURE__ */ t(
|
|
26
|
-
m,
|
|
27
|
-
{
|
|
28
|
-
endIcon: /* @__PURE__ */ t(h, {}),
|
|
29
|
-
onClick: () => o(!0),
|
|
30
|
-
sx: {
|
|
31
|
-
pl: 0,
|
|
32
|
-
":hover": {
|
|
33
|
-
bgcolor: "unset"
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
variant: "text",
|
|
37
|
-
children: e
|
|
38
|
-
}
|
|
39
|
-
)
|
|
40
|
-
] }) })
|
|
41
|
-
] }),
|
|
42
|
-
/* @__PURE__ */ t(
|
|
43
|
-
x,
|
|
44
|
-
{
|
|
45
|
-
onClose: () => o(!1),
|
|
46
|
-
showConnectWidget: s,
|
|
47
|
-
title: e
|
|
48
|
-
}
|
|
49
|
-
)
|
|
50
|
-
] });
|
|
51
|
-
};
|
|
52
|
-
export {
|
|
53
|
-
H as C
|
|
54
|
-
};
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { jsx as r, jsxs as E } from "react/jsx-runtime";
|
|
2
|
-
import s from "react";
|
|
3
|
-
import { observer as _ } from "mobx-react-lite";
|
|
4
|
-
import { useTheme as g } from "@mui/material/styles";
|
|
5
|
-
import { ConnectWidget as x } from "@mxenabled/web-widget-sdk";
|
|
6
|
-
import { b as a, a as c } from "./Connect-Dk6GZEsA.mjs";
|
|
7
|
-
import { M as i } from "./Accounts-CseLC3lL.mjs";
|
|
8
|
-
import { d as D, e as L, u as w } from "./hooks-BaO_gOI6.mjs";
|
|
9
|
-
import { D as y } from "./Drawer-BXqqBMxg.mjs";
|
|
10
|
-
const I = ({
|
|
11
|
-
loadWidgetProps: l,
|
|
12
|
-
onClose: m,
|
|
13
|
-
showConnectWidget: o,
|
|
14
|
-
title: u
|
|
15
|
-
}) => {
|
|
16
|
-
let n;
|
|
17
|
-
const { refreshAccounts: f } = D(), { loadWidget: d } = L(), { connect: p } = w(), [C, e] = s.useState(!1), [h, t] = s.useState(!1), {
|
|
18
|
-
palette: { mode: S }
|
|
19
|
-
} = g();
|
|
20
|
-
return s.useEffect(() => (o ? (e(!0), d({ mode: S, ...l }).then((b) => {
|
|
21
|
-
n = new x({
|
|
22
|
-
container: `#${a}`,
|
|
23
|
-
style: {
|
|
24
|
-
border: "none",
|
|
25
|
-
height: "calc(100% - 62px)",
|
|
26
|
-
maxWidth: "450px",
|
|
27
|
-
position: "absolute",
|
|
28
|
-
width: "100%"
|
|
29
|
-
},
|
|
30
|
-
url: b.url,
|
|
31
|
-
onSsoUrlLoadError: () => {
|
|
32
|
-
e(!1), t(!0);
|
|
33
|
-
},
|
|
34
|
-
onLoad: () => {
|
|
35
|
-
e(!1), t(!1);
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
})) : (e(!1), t(!1)), () => {
|
|
39
|
-
n?.unmount();
|
|
40
|
-
}), [o]), /* @__PURE__ */ r(
|
|
41
|
-
y,
|
|
42
|
-
{
|
|
43
|
-
ariaLabelClose: p.close_manage_connection_aria,
|
|
44
|
-
isOpen: o,
|
|
45
|
-
onClose: () => {
|
|
46
|
-
m(), f();
|
|
47
|
-
},
|
|
48
|
-
title: u,
|
|
49
|
-
children: /* @__PURE__ */ E("div", { id: a, children: [
|
|
50
|
-
h && /* @__PURE__ */ r(c, { status: i.Error }),
|
|
51
|
-
C && /* @__PURE__ */ r(c, { status: i.Loading })
|
|
52
|
-
] })
|
|
53
|
-
}
|
|
54
|
-
);
|
|
55
|
-
}, $ = _(I);
|
|
56
|
-
export {
|
|
57
|
-
$ as C
|
|
58
|
-
};
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { jsx as r, jsxs as g } from "react/jsx-runtime";
|
|
2
|
-
import s from "react";
|
|
3
|
-
import { observer as E } from "mobx-react-lite";
|
|
4
|
-
import { useTheme as _ } from "@mui/material/styles";
|
|
5
|
-
import { ConnectionsWidget as b } from "@mxenabled/web-widget-sdk";
|
|
6
|
-
import { C as a, a as c } from "./Connect-Dk6GZEsA.mjs";
|
|
7
|
-
import { M as i } from "./Accounts-CseLC3lL.mjs";
|
|
8
|
-
import { d as D, e as L, u as w } from "./hooks-BaO_gOI6.mjs";
|
|
9
|
-
import { D as x } from "./Drawer-BXqqBMxg.mjs";
|
|
10
|
-
const I = ({
|
|
11
|
-
onClose: l,
|
|
12
|
-
showConnectionsWidget: o,
|
|
13
|
-
title: m
|
|
14
|
-
}) => {
|
|
15
|
-
let n;
|
|
16
|
-
const { refreshAccounts: u } = D(), { loadWidget: f } = L(), { connect: d } = w(), p = _(), [C, e] = s.useState(!1), [S, t] = s.useState(!1);
|
|
17
|
-
return s.useEffect(() => (o ? (e(!0), f({ widget: "connections_widget", mode: p.palette.mode }).then((h) => {
|
|
18
|
-
n = new b({
|
|
19
|
-
container: `#${a}`,
|
|
20
|
-
style: {
|
|
21
|
-
border: "none",
|
|
22
|
-
height: "calc(100% - 62px)",
|
|
23
|
-
width: "100%",
|
|
24
|
-
position: "absolute"
|
|
25
|
-
},
|
|
26
|
-
url: h.url,
|
|
27
|
-
onSsoUrlLoadError: () => {
|
|
28
|
-
e(!1), t(!0);
|
|
29
|
-
},
|
|
30
|
-
onLoad: () => {
|
|
31
|
-
e(!1), t(!1);
|
|
32
|
-
}
|
|
33
|
-
});
|
|
34
|
-
})) : (e(!1), t(!1)), () => {
|
|
35
|
-
n?.unmount();
|
|
36
|
-
}), [o]), /* @__PURE__ */ r(
|
|
37
|
-
x,
|
|
38
|
-
{
|
|
39
|
-
ariaLabelClose: d.close_connections_aria,
|
|
40
|
-
isOpen: o,
|
|
41
|
-
onClose: () => {
|
|
42
|
-
l(), u();
|
|
43
|
-
},
|
|
44
|
-
title: m,
|
|
45
|
-
children: /* @__PURE__ */ g("div", { id: a, children: [
|
|
46
|
-
S && /* @__PURE__ */ r(c, { status: i.Error }),
|
|
47
|
-
C && /* @__PURE__ */ r(c, { status: i.Loading })
|
|
48
|
-
] })
|
|
49
|
-
}
|
|
50
|
-
);
|
|
51
|
-
}, W = E(I);
|
|
52
|
-
export {
|
|
53
|
-
W as C
|
|
54
|
-
};
|