@mx-cartographer/experiences 7.2.14-alpha.san6 → 7.2.14-alpha.san8

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.
@@ -1,17 +1,17 @@
1
1
  import { makeAutoObservable as D, runInAction as l } from "mobx";
2
- import { format as R } from "date-fns/format";
2
+ import { format as y } from "date-fns/format";
3
3
  import { fromUnixTime as b } from "date-fns/fromUnixTime";
4
4
  import { getUnixTime as I } from "date-fns/getUnixTime";
5
5
  import { subMonths as H } from "date-fns/subMonths";
6
- import { F as x, A as h } from "./Fetch-87LIQbEA.mjs";
6
+ import { F as v, A as h } from "./Fetch-87LIQbEA.mjs";
7
7
  import { jsx as c, jsxs as T } from "react/jsx-runtime";
8
- import { addDays as v } from "date-fns/addDays";
8
+ import { addDays as x } from "date-fns/addDays";
9
9
  import { addMonths as M } from "date-fns/addMonths";
10
10
  import { addYears as G } from "date-fns/addYears";
11
11
  import { differenceInDays as L } from "date-fns/differenceInDays";
12
- import { differenceInMonths as w } from "date-fns/differenceInMonths";
12
+ import { differenceInMonths as N } from "date-fns/differenceInMonths";
13
13
  import { differenceInWeeks as A } from "date-fns/differenceInWeeks";
14
- import { startOfToday as N } from "date-fns/startOfToday";
14
+ import { startOfToday as w } from "date-fns/startOfToday";
15
15
  import { ChevronRight as P, Check as k } from "@mxenabled/mx-icons";
16
16
  import $ from "react";
17
17
  import K from "@mui/material/Avatar";
@@ -91,7 +91,7 @@ const q = ({ list: e, onClickItem: t }) => /* @__PURE__ */ c(B, { sx: { bgcolor:
91
91
  n < e.length - 1 && /* @__PURE__ */ c(Y, { sx: { color: "divider", ml: 68 } })
92
92
  ] }, r.key))
93
93
  }
94
- ) }), vt = q, Mt = (e) => e * (180 / Math.PI), Gt = (e, t) => [
94
+ ) }), xt = q, Mt = (e) => e * (180 / Math.PI), Gt = (e, t) => [
95
95
  {
96
96
  description: t.vulnerable_description,
97
97
  max: 25,
@@ -143,7 +143,7 @@ const q = ({ list: e, onClickItem: t }) => /* @__PURE__ */ c(B, { sx: { bgcolor:
143
143
  } : e >= 800 && e <= 850 ? {
144
144
  status: r.exceptional,
145
145
  color: t ? u.EXCEPTIONAL : g.EXCEPTIONAL
146
- } : { status: r.missing_data }, wt = (e, t, r, n) => {
146
+ } : { status: r.missing_data }, Nt = (e, t, r, n) => {
147
147
  const o = e.reduce((i, d) => i + d.value, 0);
148
148
  let a = 0;
149
149
  const s = e.map((i) => {
@@ -155,7 +155,7 @@ const q = ({ list: e, onClickItem: t }) => /* @__PURE__ */ c(B, { sx: { bgcolor:
155
155
  };
156
156
  });
157
157
  return [s[n].startAngle, s[n].endAngle];
158
- }, Nt = (e, t, r, n, o) => {
158
+ }, wt = (e, t, r, n, o) => {
159
159
  let a = 0, s = 0;
160
160
  const i = Math.floor(n), d = n - i;
161
161
  return i > r ? (a = e, s = t) : i === r && d > 0 && (a = e, s = o), [a, s];
@@ -179,7 +179,7 @@ const q = ({ list: e, onClickItem: t }) => /* @__PURE__ */ c(B, { sx: { bgcolor:
179
179
  secondaryText: i
180
180
  };
181
181
  }, J = (e, t) => ({
182
- [O.DateOfBirth]: (n) => R(new Date(Number(n) * 1e3), "MMM d, yyyy"),
182
+ [O.DateOfBirth]: (n) => y(new Date(Number(n) * 1e3), "MMM d, yyyy"),
183
183
  [O.MonthlyIncome]: (n) => `$${n}`
184
184
  })[e]?.(t) ?? String(t), $t = (e) => e !== null ? Math.round(e * 100) : null, Kt = (e) => {
185
185
  const t = new Date((/* @__PURE__ */ new Date()).getFullYear(), e - 1, 1);
@@ -218,9 +218,9 @@ const q = ({ list: e, onClickItem: t }) => /* @__PURE__ */ c(B, { sx: { bgcolor:
218
218
  })[e], Z = 1, tt = 1, et = {
219
219
  1: M,
220
220
  2: G,
221
- 3: v
221
+ 3: x
222
222
  }, rt = {
223
- 1: w,
223
+ 1: N,
224
224
  2: (e, t) => A(e, t) / 2,
225
225
  3: A,
226
226
  4: L
@@ -237,7 +237,7 @@ const q = ({ list: e, onClickItem: t }) => /* @__PURE__ */ c(B, { sx: { bgcolor:
237
237
  }) => {
238
238
  const a = t - o;
239
239
  if (a <= 0) return 0;
240
- const s = N(), i = et[n], d = rt[e];
240
+ const s = w(), i = et[n], d = rt[e];
241
241
  if (!i || !d) return a;
242
242
  const p = i(s, r), f = d(p, s);
243
243
  return Math.max(a / (f || 1), 1);
@@ -253,10 +253,10 @@ const q = ({ list: e, onClickItem: t }) => /* @__PURE__ */ c(B, { sx: { bgcolor:
253
253
  })), ot = (e) => e.sort((r, n) => n.transaction.date - r.transaction.date).map(({ transaction: r }) => ({
254
254
  ...r
255
255
  }));
256
- class y {
256
+ class R {
257
257
  fetchInstance;
258
258
  constructor(t, r, n) {
259
- this.fetchInstance = new x(t, r, void 0, n);
259
+ this.fetchInstance = new v(t, r, void 0, n);
260
260
  }
261
261
  calculateHealthScore = async () => this.fetchInstance.post(`${h.HEALTH_SCORES}/calculate`).then((t) => t.health_score);
262
262
  getAverageHealthScores = async () => this.fetchInstance.get(`${h.HEALTH_SCORES}/monthly_averages`).then((t) => t);
@@ -269,7 +269,7 @@ class y {
269
269
  getStandardSpend = async () => this.fetchInstance.get(`${h.HEALTH_SCORES}/transactions/standard_spend`).then((t) => t);
270
270
  }
271
271
  class te {
272
- api = new y("/", "");
272
+ api = new R("/", "");
273
273
  augmentedChartData = [];
274
274
  averageHealthScores = [];
275
275
  monthlySummaries = [];
@@ -285,7 +285,7 @@ class te {
285
285
  healthScoreChangeReports = [];
286
286
  peerScore = null;
287
287
  constructor(t) {
288
- this.globalStore = t, this.api = new y(t.endpoint, t.sessionToken, t.onError), D(this);
288
+ this.globalStore = t, this.api = new R(t.endpoint, t.sessionToken, t.onError), D(this);
289
289
  }
290
290
  calculateHealthScore = async () => {
291
291
  try {
@@ -355,7 +355,7 @@ class te {
355
355
  }
356
356
  };
357
357
  loadPeerScore = async () => {
358
- const t = R(b(this.globalStore.appDataStore.user.birthday), "yyyy");
358
+ const t = y(b(this.globalStore.appDataStore.user.birthday), "yyyy");
359
359
  try {
360
360
  const r = await this.api.getPeerScore(t);
361
361
  l(() => {
@@ -399,21 +399,20 @@ class te {
399
399
  return [...this.allTransactions.spend, ...this.allTransactions.debtSpend];
400
400
  }
401
401
  handleFinstrongWidgetPrimaryCtaClick = (t) => () => {
402
- console.log("Finstrong widget primary CTA clicked:", t);
403
402
  };
404
403
  }
405
404
  export {
406
405
  O as A,
407
406
  u as C,
408
407
  te as F,
409
- vt as P,
410
- Nt as a,
408
+ xt as P,
409
+ wt as a,
411
410
  Pt as b,
412
411
  Gt as c,
413
412
  Lt as d,
414
413
  g as e,
415
414
  Zt as f,
416
- wt as g,
415
+ Nt as g,
417
416
  jt as h,
418
417
  S as i,
419
418
  Vt as j,
@@ -431,5 +430,5 @@ export {
431
430
  Ut as v,
432
431
  Xt as w,
433
432
  kt as x,
434
- y
433
+ R as y
435
434
  };
@@ -64,7 +64,7 @@ import { startOfToday as U } from "date-fns/startOfToday";
64
64
  import { f as bt, a as wt, b as L } from "../BudgetUtil-wjoNuj7B.mjs";
65
65
  import { g as ta, e as ea, c as sa, d as ra, i as oa } from "../BudgetUtil-wjoNuj7B.mjs";
66
66
  import { a as xt } from "../DebtsStore-Bu8rRRSL.mjs";
67
- import { F as Ct } from "../FinstrongStore-1MFI6RcM.mjs";
67
+ import { F as Ct } from "../FinstrongStore-BbnA6Crl.mjs";
68
68
  import { A as vt, m as Dt, a as At, b as Et } from "../InvestmentUtil-jOyOgzIB.mjs";
69
69
  import { M as Tt } from "../MerchantStore-DrFvsUyy.mjs";
70
70
  import { N as Bt } from "../NetWorthStore-CpL_kqvx.mjs";
@@ -1,6 +1,3 @@
1
1
  import { default as React } from 'react';
2
- interface KeyIndicatorsSpendTabProps {
3
- onPrimaryCtaClick?: (value: string) => () => void;
4
- }
5
- declare const _default: React.FunctionComponent<KeyIndicatorsSpendTabProps>;
2
+ declare const _default: React.FunctionComponent<{}>;
6
3
  export default _default;
@@ -6,7 +6,6 @@ interface KeyIndicatorsTabsItemProps {
6
6
  title: string;
7
7
  description: string;
8
8
  cardState: keyof typeof CardStatus;
9
- onPrimaryCtaClick?: (value: string) => () => void;
10
9
  }
11
10
  declare const KeyIndicatorsTabsItem: React.FC<KeyIndicatorsTabsItemProps>;
12
11
  export default KeyIndicatorsTabsItem;
@@ -3,7 +3,6 @@ interface KeyIndicatorsTabItemDrawerProps {
3
3
  drawerFor: KeyIndicatorsTabItemType;
4
4
  isOpen: boolean;
5
5
  onClose: () => void;
6
- onPrimaryCtaClick?: (value: string) => () => void;
7
6
  }
8
7
  declare const _default: (({ drawerFor, isOpen, onClose, }: KeyIndicatorsTabItemDrawerProps) => import("react/jsx-runtime").JSX.Element) & {
9
8
  displayName: string;
@@ -1,6 +1,3 @@
1
1
  import { default as React } from 'react';
2
- interface KeyIndicatorsTabsWidgetProps {
3
- onPrimaryCtaClick?: (value: string) => () => void;
4
- }
5
- declare const _default: React.FunctionComponent<KeyIndicatorsTabsWidgetProps>;
2
+ declare const _default: React.FunctionComponent<{}>;
6
3
  export default _default;