@mx-cartographer/experiences 3.1.1-alpha.j12 → 3.1.1-alpha.j14

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.es.js CHANGED
@@ -2861,7 +2861,7 @@ const De = ({
2861
2861
  b,
2862
2862
  {
2863
2863
  sx: {
2864
- backgroundColor: "success.contrastText",
2864
+ backgroundColor: "common.white",
2865
2865
  borderRadius: "50%",
2866
2866
  height: n,
2867
2867
  width: n,
@@ -4667,7 +4667,7 @@ class ml {
4667
4667
  }
4668
4668
  };
4669
4669
  loadDateRangeCategoryTotals = async (e, n, a) => {
4670
- console.log(e), this.setIsLoadingCategoryTotals(!0), this.dateRangeCategoryTotals = [];
4670
+ this.setIsLoadingCategoryTotals(!0), this.dateRangeCategoryTotals = [];
4671
4671
  try {
4672
4672
  const r = await this.api.getDateRangeCategoryTotals(
4673
4673
  lA(n),
@@ -6382,7 +6382,7 @@ const Ai = ({ transaction: A }) => {
6382
6382
  gridRow: 1,
6383
6383
  gridColumn: 1,
6384
6384
  zIndex: 2
6385
- }, en = (A) => A ? { margin: "0 0 -6px -4px" } : void 0, ea = ({ isOffset: A = !1, size: e = 16 }) => /* @__PURE__ */ t(Le, { size: e, sx: { ...en(A) }, children: /* @__PURE__ */ t(Xo, { color: "primary", sx: { fontSize: e, ...An } }) }), ta = ({ isOffset: A = !1, size: e = 16 }) => /* @__PURE__ */ t(Le, { backingSx: { backgroundColor: "common.white" }, size: e, sx: { ...en(A) }, children: /* @__PURE__ */ t(Uo, { sx: { color: "categories.income", fontSize: e, ...An } }) }), na = ({ isOffset: A = !1, size: e = 16 }) => /* @__PURE__ */ t(Le, { size: e, sx: { ...en(A) }, children: /* @__PURE__ */ t(Nt, { color: "error", sx: { fontSize: e, ...An } }) }), aa = ({ isOffset: A = !1, size: e = 16 }) => /* @__PURE__ */ t(Le, { backingSx: { backgroundColor: "success.contrastText" }, size: e, sx: { ...en(A) }, children: /* @__PURE__ */ t(Dr, { color: "success", sx: { fontSize: e, ...An } }) }), ka = (A, e = null) => {
6385
+ }, en = (A) => A ? { margin: "0 0 -6px -4px" } : void 0, ea = ({ isOffset: A = !1, size: e = 16 }) => /* @__PURE__ */ t(Le, { size: e, sx: { ...en(A) }, children: /* @__PURE__ */ t(Xo, { color: "primary", sx: { fontSize: e, ...An } }) }), ta = ({ isOffset: A = !1, size: e = 16 }) => /* @__PURE__ */ t(Le, { size: e, sx: { ...en(A) }, children: /* @__PURE__ */ t(Uo, { sx: { color: "categories.income", fontSize: e, ...An } }) }), na = ({ isOffset: A = !1, size: e = 16 }) => /* @__PURE__ */ t(Le, { size: e, sx: { ...en(A) }, children: /* @__PURE__ */ t(Nt, { color: "error", sx: { fontSize: e, ...An } }) }), aa = ({ isOffset: A = !1, size: e = 16 }) => /* @__PURE__ */ t(Le, { size: e, sx: { ...en(A) }, children: /* @__PURE__ */ t(Dr, { color: "success", sx: { fontSize: e, ...An } }) }), ka = (A, e = null) => {
6386
6386
  const n = {
6387
6387
  monthly: "monthly",
6388
6388
  monthly_ordinal: "monthly on the _1{day}",
@@ -7099,7 +7099,9 @@ const Ai = ({ transaction: A }) => {
7099
7099
  }, { selectedAccountGuids: r } = hA(), { activities: i, setSelectedDay: o } = RA(), c = C.useMemo(
7100
7100
  () => i.filter((m) => r.includes(m.accountGuid || "")),
7101
7101
  [r, i]
7102
- ).filter((m) => qA(m.occurredOnDate || m.expectedDate, A)), l = c.some(
7102
+ ).filter(
7103
+ (m) => qA(m.occurredOnDate || m.expectedDate, A)
7104
+ ), l = c.some(
7103
7105
  (m) => m.activityType === CA.Expense && m.activityStatus === gA.Upcoming
7104
7106
  ), u = c.some(
7105
7107
  (m) => m.activityType === CA.Expense && m.activityStatus === gA.Missed
@@ -7475,7 +7477,9 @@ const Ai = ({ transaction: A }) => {
7475
7477
  recurring_activity_upcoming_activity: "Upcoming Activity"
7476
7478
  }, md = () => {
7477
7479
  const { selectedAccountGuids: A } = hA(), { selectedDay: e, selectedDayActivities: n, setSelectedDay: a, upcomingActivities: r } = RA(), i = C.useMemo(
7478
- () => r.filter((c) => A.includes(c.accountGuid || "")),
7480
+ () => r.filter(
7481
+ (c) => A.includes(c.accountGuid || "")
7482
+ ),
7479
7483
  [A, r]
7480
7484
  ), { availableWidth: o } = gt(), s = o < 750;
7481
7485
  return /* @__PURE__ */ d(w, { flexDirection: s ? "column" : "row", width: "100%", children: [
@@ -9119,7 +9123,8 @@ class H7 {
9119
9123
  this.accountStore = new e1(this), this.beatStore = new gc(), this.budgetsStore = new fc(this), this.cashflowStore = new $d(this), this.categoryStore = new ml(this), this.copyStore = new Cc(), this.merchantStore = new au(), this.notificationStore = new iu(), this.recurringActivityStore = new yd(this), this.transactionStore = new Mc(this), this.userStore = new hu(), this.globalUiStore = new Au(this), wA(this);
9120
9124
  }
9121
9125
  initialize = async (e, n) => {
9122
- await this.copyStore.initialize(e, n), await this.accountStore.initialize(e, n), Promise.all([
9126
+ await this.copyStore.initialize(e, n), Promise.all([
9127
+ this.accountStore.initialize(e, n),
9123
9128
  this.beatStore.initialize(e, n),
9124
9129
  this.merchantStore.initialize(e, n),
9125
9130
  this.userStore.initialize(e, n),
@@ -9129,7 +9134,7 @@ class H7 {
9129
9134
  this.budgetsStore.initialize(e, n),
9130
9135
  this.notificationStore.initialize(e, n)
9131
9136
  ]).then(() => {
9132
- this.isInitialized = !0, this.globalUiStore.setInitialized(!0);
9137
+ this.isInitialized = !0, this.globalUiStore.setInitialized(!0), this.globalUiStore.setSelectedAccounts(this.accountStore.accounts);
9133
9138
  });
9134
9139
  };
9135
9140
  }
@@ -11008,7 +11013,7 @@ const bt = {
11008
11013
  }, L1 = () => {
11009
11014
  const { accounts: A } = SA(), { selectedAccountGuids: e, setSelectedAccountGuids: n, setSelectedAccounts: a } = hA(), { isMobile: r } = re(), { common: i } = X();
11010
11015
  C.useEffect(() => {
11011
- a(A), n(A.map((c) => c.guid));
11016
+ A && (console.log("hello", A), a(A), n(A.map((c) => c.guid)));
11012
11017
  }, [A]);
11013
11018
  const o = {
11014
11019
  accountFilterOptionsCopy: {