@mx-cartographer/experiences 3.1.1-alpha.j4 → 3.1.1-alpha.j5
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.es.js +19 -19
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
@@ -11005,30 +11005,30 @@ const bt = {
|
|
11005
11005
|
good_morning: "Good morning!",
|
11006
11006
|
heres_your_spending_overview: "Here's your monthly financial overview."
|
11007
11007
|
}, L1 = () => {
|
11008
|
-
const { accounts: A } = PA(), { selectedAccountGuids:
|
11008
|
+
const { accounts: A, isInitialized: e } = PA(), { selectedAccountGuids: n, setSelectedAccountGuids: a, setSelectedAccounts: r } = hA(), { isMobile: i } = re(), { common: o } = X();
|
11009
11009
|
C.useEffect(() => {
|
11010
|
-
|
11011
|
-
}, [A]);
|
11012
|
-
const
|
11010
|
+
r(A), a(A.map((l) => l.guid));
|
11011
|
+
}, [A, e]);
|
11012
|
+
const s = {
|
11013
11013
|
accountFilterOptionsCopy: {
|
11014
11014
|
accountTypeAccounts: "_1{accountType} accounts",
|
11015
|
-
cancelButton:
|
11016
|
-
filterButton:
|
11017
|
-
filterButtonAria:
|
11015
|
+
cancelButton: o.cancel_button,
|
11016
|
+
filterButton: o.filter_button,
|
11017
|
+
filterButtonAria: o.account_filter.filter_button_generic_aria,
|
11018
11018
|
selectAllAccounts: "Select All Accounts",
|
11019
11019
|
toggleAccountTypeAccounts: "Toggle all _1{accountType} accounts",
|
11020
11020
|
unselectAllAccounts: "Unselect All Accounts",
|
11021
|
-
zeroStateButton:
|
11022
|
-
zeroStateDescription:
|
11023
|
-
zeroStateTitle:
|
11021
|
+
zeroStateButton: o.account_filter.zero_state_button,
|
11022
|
+
zeroStateDescription: o.account_filter.zero_state_description,
|
11023
|
+
zeroStateTitle: o.account_filter.zero_state_title
|
11024
11024
|
},
|
11025
|
-
title:
|
11025
|
+
title: o.account_filter.title
|
11026
11026
|
};
|
11027
|
-
return /* @__PURE__ */ t(oe, { sx: { mb:
|
11027
|
+
return /* @__PURE__ */ t(oe, { sx: { mb: i ? 24 : 0, p: 24 }, children: /* @__PURE__ */ d(w, { alignItems: "center", flexDirection: "row", justifyContent: "space-between", children: [
|
11028
11028
|
/* @__PURE__ */ d(w, { children: [
|
11029
11029
|
/* @__PURE__ */ t(fe, { children: (() => {
|
11030
|
-
const
|
11031
|
-
return
|
11030
|
+
const u = (/* @__PURE__ */ new Date()).getHours();
|
11031
|
+
return u > 1 && u < 12 ? bt.good_morning : u >= 12 && u < 18 ? bt.good_afternoon : bt.good_evening;
|
11032
11032
|
})() }),
|
11033
11033
|
/* @__PURE__ */ t(E, { color: "text.secondary", sx: { fontSize: 15 }, children: bt.heres_your_spending_overview })
|
11034
11034
|
] }),
|
@@ -11036,12 +11036,12 @@ const bt = {
|
|
11036
11036
|
Xr,
|
11037
11037
|
{
|
11038
11038
|
accounts: A,
|
11039
|
-
copy:
|
11040
|
-
onFilterClick: (
|
11041
|
-
const
|
11042
|
-
|
11039
|
+
copy: s,
|
11040
|
+
onFilterClick: (l) => {
|
11041
|
+
const u = A.filter((h) => l.includes(h.guid)).map((h) => h.guid);
|
11042
|
+
a(u);
|
11043
11043
|
},
|
11044
|
-
selectedAccountGuids:
|
11044
|
+
selectedAccountGuids: n,
|
11045
11045
|
showAccountNumbers: !1,
|
11046
11046
|
sx: { "& .mx-cmn-account-filter-title": { fontSize: 15 }, mx: 4 },
|
11047
11047
|
variant: "text"
|