@mx-cartographer/experiences 3.1.1-alpha.j5 → 3.1.1-alpha.j6

Sign up to get free protection for your applications and to get access to all the features.
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, isInitialized: e } = PA(), { selectedAccountGuids: n, setSelectedAccountGuids: a, setSelectedAccounts: r } = hA(), { isMobile: i } = re(), { common: o } = X();
11008
+ const { accounts: A } = PA(), { selectedAccountGuids: e, setSelectedAccountGuids: n, setSelectedAccounts: a } = hA(), { isMobile: r } = re(), { common: i } = X();
11009
11009
  C.useEffect(() => {
11010
- r(A), a(A.map((l) => l.guid));
11011
- }, [A, e]);
11012
- const s = {
11010
+ a(A), n(A.map((c) => c.guid));
11011
+ }, [A]);
11012
+ const o = {
11013
11013
  accountFilterOptionsCopy: {
11014
11014
  accountTypeAccounts: "_1{accountType} accounts",
11015
- cancelButton: o.cancel_button,
11016
- filterButton: o.filter_button,
11017
- filterButtonAria: o.account_filter.filter_button_generic_aria,
11015
+ cancelButton: i.cancel_button,
11016
+ filterButton: i.filter_button,
11017
+ filterButtonAria: i.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: o.account_filter.zero_state_button,
11022
- zeroStateDescription: o.account_filter.zero_state_description,
11023
- zeroStateTitle: o.account_filter.zero_state_title
11021
+ zeroStateButton: i.account_filter.zero_state_button,
11022
+ zeroStateDescription: i.account_filter.zero_state_description,
11023
+ zeroStateTitle: i.account_filter.zero_state_title
11024
11024
  },
11025
- title: o.account_filter.title
11025
+ title: i.account_filter.title
11026
11026
  };
11027
- return /* @__PURE__ */ t(oe, { sx: { mb: i ? 24 : 0, p: 24 }, children: /* @__PURE__ */ d(w, { alignItems: "center", flexDirection: "row", justifyContent: "space-between", children: [
11027
+ return /* @__PURE__ */ t(oe, { sx: { mb: r ? 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 u = (/* @__PURE__ */ new Date()).getHours();
11031
- return u > 1 && u < 12 ? bt.good_morning : u >= 12 && u < 18 ? bt.good_afternoon : bt.good_evening;
11030
+ const l = (/* @__PURE__ */ new Date()).getHours();
11031
+ return l > 1 && l < 12 ? bt.good_morning : l >= 12 && l < 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: s,
11040
- onFilterClick: (l) => {
11041
- const u = A.filter((h) => l.includes(h.guid)).map((h) => h.guid);
11042
- a(u);
11039
+ copy: o,
11040
+ onFilterClick: (c) => {
11041
+ const l = A.filter((u) => c.includes(u.guid)).map((u) => u.guid);
11042
+ n(l);
11043
11043
  },
11044
- selectedAccountGuids: n,
11044
+ selectedAccountGuids: e,
11045
11045
  showAccountNumbers: !1,
11046
11046
  sx: { "& .mx-cmn-account-filter-title": { fontSize: 15 }, mx: 4 },
11047
11047
  variant: "text"
@@ -11060,7 +11060,7 @@ const bt = {
11060
11060
  [A]
11061
11061
  );
11062
11062
  return /* @__PURE__ */ d(Me, { container: !0, spacing: a ? 0 : 24, sx: { overflow: "scroll" }, children: [
11063
- /* @__PURE__ */ t(Me, { xs: 12, children: i.isInitialized && r.isInitialized && /* @__PURE__ */ t(T1, {}) }),
11063
+ /* @__PURE__ */ t(Me, { xs: 12, children: i.isInitialized && r.accounts.length && /* @__PURE__ */ t(T1, {}) }),
11064
11064
  /* @__PURE__ */ d(Me, { xl: 8, xs: 12, children: [
11065
11065
  e && /* @__PURE__ */ d(w, { direction: "column", spacing: 24, children: [
11066
11066
  /* @__PURE__ */ t(le, { height: 100, variant: "rounded", width: "100%" }),