@mx-cartographer/experiences 4.1.2-alpha.mega23 → 4.1.2-alpha.mega25

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,3 +1,4 @@
1
+ import { ClientCommunicationProfile, ClientProfile } from './Client';
1
2
  export interface HelpCategory {
2
3
  flags?: string[];
3
4
  guid: string;
@@ -6,9 +7,9 @@ export interface HelpCategory {
6
7
  topics: HelpTopic[];
7
8
  }
8
9
  export interface HelpListProps {
9
- helpTitle: string;
10
10
  helpCategories: HelpCategory[];
11
11
  helpContent: string;
12
+ helpTitle: string;
12
13
  buttonText: string;
13
14
  onRequestHelp: () => void;
14
15
  onTopicSelect: (topicKey: string) => void;
@@ -17,3 +18,5 @@ export interface HelpTopic {
17
18
  label: string;
18
19
  topicKey: string;
19
20
  }
21
+ export interface Profile extends ClientCommunicationProfile, ClientProfile {
22
+ }
@@ -1,5 +1,7 @@
1
1
  import { default as React } from 'react';
2
+ import { SxProps } from '@mui/material/styles';
2
3
  interface HelpProps {
4
+ sx: SxProps;
3
5
  }
4
6
  declare const _default: React.FunctionComponent<HelpProps>;
5
7
  export default _default;
@@ -1,2 +1,2 @@
1
- export { default as Help } from './Help';
1
+ export { default as HelpWidget } from './HelpWidget';
2
2
  export { HelpList } from './HelpList';
@@ -4,6 +4,6 @@ export declare class HelpStore {
4
4
  appConfig: Config | undefined;
5
5
  globalStore: GlobalStore;
6
6
  constructor(globalStore: GlobalStore);
7
- setAppConfig: (config: Config) => Config;
7
+ loadAppConfig: (config: Config) => Config;
8
8
  get helpCategories(): import('../../common/types/Help').HelpCategory[];
9
9
  }
@@ -1,6 +1,2 @@
1
- import { ClientCommunicationProfile, ClientProfile } from '../../common/types/Client';
2
- import { HelpCategory } from '../../common/types/Help';
3
- interface Profile extends ClientCommunicationProfile, ClientProfile {
4
- }
1
+ import { HelpCategory, Profile } from '../../common/types/Help';
5
2
  export declare const getAccessibleHelpCategories: (profile: Profile) => HelpCategory[];
6
- export {};
package/dist/index.es.js CHANGED
@@ -39,7 +39,7 @@ import { addDays as OA } from "date-fns/addDays";
39
39
  import { eachDayOfInterval as Jo } from "date-fns/eachDayOfInterval";
40
40
  import { eachWeekOfInterval as Zo } from "date-fns/eachWeekOfInterval";
41
41
  import { endOfMonth as Re } from "date-fns/endOfMonth";
42
- import { format as Ye } from "date-fns/format";
42
+ import { format as Ve } from "date-fns/format";
43
43
  import { isSameMonth as $o } from "date-fns/isSameMonth";
44
44
  import { startOfMonth as xe } from "date-fns/startOfMonth";
45
45
  import { subMonths as bA } from "date-fns/subMonths";
@@ -826,7 +826,7 @@ const xt = 44, nr = (e, A) => e.find((n) => n.guid === A), Rc = (e, A) => e.find
826
826
  );
827
827
  return n ? r : r.join("");
828
828
  }, v8 = (e, A, n, ...a) => !e || !A ? "" : P(n === 1 ? e : A, ...a), ZA = () => (window?.app?.options?.language || document.querySelector("html")?.getAttribute("lang") || "en-US").toLowerCase();
829
- class We {
829
+ class Ye {
830
830
  endpoint = "/";
831
831
  headers = {};
832
832
  constructor(A, n) {
@@ -946,7 +946,7 @@ const R = (e, A, n) => {
946
946
  class Uc {
947
947
  fetchInstance;
948
948
  constructor(A, n) {
949
- this.fetchInstance = new We(A, n);
949
+ this.fetchInstance = new Ye(A, n);
950
950
  }
951
951
  initializeAnalyticsSession = async (A, n) => {
952
952
  const a = Qo.getParser(window.navigator.userAgent), { analytics_session: r } = await this.fetchInstance.post(M.ANALYTICS_SESSION, {
@@ -974,7 +974,7 @@ class Uc {
974
974
  class Et {
975
975
  fetchInstance;
976
976
  constructor(A, n) {
977
- this.fetchInstance = new We(A, n);
977
+ this.fetchInstance = new Ye(A, n);
978
978
  }
979
979
  getBeats = async (A, n) => {
980
980
  const a = `page=${A || 1}&per_page=${n || 5}`;
@@ -989,7 +989,7 @@ class Et {
989
989
  class sn {
990
990
  fetchInstance;
991
991
  constructor(A, n) {
992
- this.fetchInstance = new We(A, n);
992
+ this.fetchInstance = new Ye(A, n);
993
993
  }
994
994
  addCategory = async (A) => this.fetchInstance.post(M.CATEGORIES, A).then((n) => n.category);
995
995
  getCategories = async () => this.fetchInstance.get(M.CATEGORIES).then((A) => A.categories);
@@ -1005,14 +1005,14 @@ class sn {
1005
1005
  class cn {
1006
1006
  fetchInstance;
1007
1007
  constructor(A, n) {
1008
- this.fetchInstance = new We(A, n);
1008
+ this.fetchInstance = new Ye(A, n);
1009
1009
  }
1010
1010
  getGlobalCopy = async (A, n) => this.fetchInstance.post(`${M.LOCALIZED_CONTENT}/${A}`, { translation_key: n }).then((a) => a);
1011
1011
  }
1012
1012
  class y8 {
1013
1013
  fetchInstance;
1014
1014
  constructor(A, n) {
1015
- this.fetchInstance = new We(A, n);
1015
+ this.fetchInstance = new Ye(A, n);
1016
1016
  }
1017
1017
  getLocalizedCopy = async (A) => this.fetchInstance.post(M.LOCALIZED_COPY, A).then((n) => n);
1018
1018
  getLocalizedContent = async (A) => this.fetchInstance.post(`${M.LOCALIZED_CONTENT}/${A}`).then((n) => n);
@@ -1020,7 +1020,7 @@ class y8 {
1020
1020
  class rr {
1021
1021
  fetchInstance;
1022
1022
  constructor(A, n) {
1023
- this.fetchInstance = new We(A, n);
1023
+ this.fetchInstance = new Ye(A, n);
1024
1024
  }
1025
1025
  getNotifications = () => this.fetchInstance.get(M.NOTIFICATIONS).then(
1026
1026
  (A) => A.notifications.map((n) => n.notification)
@@ -1036,7 +1036,7 @@ class rr {
1036
1036
  class ir {
1037
1037
  fetchInstance;
1038
1038
  constructor(A, n) {
1039
- this.fetchInstance = new We(A, n);
1039
+ this.fetchInstance = new Ye(A, n);
1040
1040
  }
1041
1041
  addScheduledPayment = async (A) => this.fetchInstance.post(M.SCHEDULED_PAYMENTS, {
1042
1042
  ...A,
@@ -1050,7 +1050,7 @@ class ir {
1050
1050
  class or {
1051
1051
  fetchInstance;
1052
1052
  constructor(A, n) {
1053
- this.fetchInstance = new We(A, n);
1053
+ this.fetchInstance = new Ye(A, n);
1054
1054
  }
1055
1055
  updateUser = async (A) => this.fetchInstance.put(M.USER, A).then((n) => n.user);
1056
1056
  updateUserProfile = async (A) => this.fetchInstance.put(`${M.USER_PROFILES}/${A.guid}`, A).then((n) => n.user_profile);
@@ -1058,7 +1058,7 @@ class or {
1058
1058
  class sr {
1059
1059
  fetchInstance;
1060
1060
  constructor(A, n) {
1061
- this.fetchInstance = new We(A, n);
1061
+ this.fetchInstance = new Ye(A, n);
1062
1062
  }
1063
1063
  requestWidgetUrl = async (A) => this.fetchInstance.post(M.WIDGET_URLS, A).then((n) => n.widget_url);
1064
1064
  }
@@ -1673,7 +1673,7 @@ const Wc = (e, A) => {
1673
1673
  ${h ? "mx-cmn-day-selected" : ""}
1674
1674
  ${m ? "mx-cmn-today" : ""}`,
1675
1675
  variant: "Small",
1676
- children: Ye(A, "d")
1676
+ children: Ve(A, "d")
1677
1677
  }
1678
1678
  )
1679
1679
  }
@@ -1775,7 +1775,7 @@ const ll = ({
1775
1775
  onPreviousClick: S
1776
1776
  }
1777
1777
  ),
1778
- /* @__PURE__ */ t("div", { className: "mx-cmn-calendar-header-row", children: f[0].map((w, D) => /* @__PURE__ */ t("div", { className: "mx-cmn-calendar-header-cell", children: /* @__PURE__ */ t(p, { bold: !0, variant: "Small", children: Ye(w, "EEEEE") }) }, D)) }),
1778
+ /* @__PURE__ */ t("div", { className: "mx-cmn-calendar-header-row", children: f[0].map((w, D) => /* @__PURE__ */ t("div", { className: "mx-cmn-calendar-header-cell", children: /* @__PURE__ */ t(p, { bold: !0, variant: "Small", children: Ve(w, "EEEEE") }) }, D)) }),
1779
1779
  f.map((w, D) => /* @__PURE__ */ t("div", { className: "mx-cmn-calendar-week", children: w.map((_, O) => /* @__PURE__ */ t(
1780
1780
  ol,
1781
1781
  {
@@ -3385,7 +3385,7 @@ const hr = "connect_widget", gr = "connections_widget", Ml = ({
3385
3385
  "& .MuiInputBase-adornedStart > .p": {
3386
3386
  marginRight: e.Spacing.Tiny
3387
3387
  }
3388
- }), Ve = ({ label: e = "", size: A = 32 }) => {
3388
+ }), We = ({ label: e = "", size: A = 32 }) => {
3389
3389
  const n = qe();
3390
3390
  return /* @__PURE__ */ l(y, { alignItems: "center", gap: n.Spacing.XLarge, height: 450, justifyContent: "center", children: [
3391
3391
  /* @__PURE__ */ t(ia, { size: A }),
@@ -3698,7 +3698,7 @@ class zl {
3698
3698
  class Cr {
3699
3699
  fetchInstance;
3700
3700
  constructor(A, n) {
3701
- this.fetchInstance = new We(A, n);
3701
+ this.fetchInstance = new Ye(A, n);
3702
3702
  }
3703
3703
  getAppData = async () => this.fetchInstance.get(M.APP_DATA).then((A) => A);
3704
3704
  }
@@ -3749,7 +3749,7 @@ class ql {
3749
3749
  class pr {
3750
3750
  fetchInstance;
3751
3751
  constructor(A, n) {
3752
- this.fetchInstance = new We(A, n);
3752
+ this.fetchInstance = new Ye(A, n);
3753
3753
  }
3754
3754
  addBudget = async (A, n, a = null) => this.fetchInstance.post(M.BUDGETS, {
3755
3755
  amount: n,
@@ -4095,7 +4095,7 @@ const Tt = () => {
4095
4095
  class yr {
4096
4096
  fetchInstance;
4097
4097
  constructor(A, n) {
4098
- this.fetchInstance = new We(A, n);
4098
+ this.fetchInstance = new Ye(A, n);
4099
4099
  }
4100
4100
  addTag = async (A) => this.fetchInstance.post(M.TAGS, A).then((n) => n.tag);
4101
4101
  addTagging = async (A) => this.fetchInstance.post(M.TAGGINGS, A).then((n) => n.tagging);
@@ -4549,7 +4549,7 @@ const Yl = [
4549
4549
  const d = s.tags.some(
4550
4550
  (h) => dA(o, A.find((m) => m.guid === h)?.name)
4551
4551
  ), u = Le(s.date);
4552
- return dA(o, s.payee) || dA(o, s.feed_description) || dA(o, s.category) || dA(o, ne(u, Z.MONTH)) || dA(o, ne(u, Z.DAY)) || dA(o, ne(u, Z.FULL_MONTH_DAY)) || dA(o, ne(u, Z.MONTH_DAY_YEAR)) || dA(o, Ye(u, Ic)) || dA(o, s.account) || dA(o, `${s.amount}`) || dA(o, s.memo) || d;
4552
+ return dA(o, s.payee) || dA(o, s.feed_description) || dA(o, s.category) || dA(o, ne(u, Z.MONTH)) || dA(o, ne(u, Z.DAY)) || dA(o, ne(u, Z.FULL_MONTH_DAY)) || dA(o, ne(u, Z.MONTH_DAY_YEAR)) || dA(o, Ve(u, Ic)) || dA(o, s.account) || dA(o, `${s.amount}`) || dA(o, s.memo) || d;
4553
4553
  });
4554
4554
  }, td = (e, A, n) => [...e].sort((a, r) => {
4555
4555
  const i = A, o = (a[i] || "") > (r[i] || "");
@@ -4829,7 +4829,7 @@ const rA = () => {
4829
4829
  r.href = `data:attachment/csv;charset=utf-8,${a}`, r.download = "transactions.csv", document.body.appendChild(r), r.click(), document.body.removeChild(r);
4830
4830
  }, cd = (e, A) => e.map((n) => ({
4831
4831
  // TODO: Data format should be localized
4832
- Date: Ye(Le(n.date), "MM/dd/yy"),
4832
+ Date: Ve(Le(n.date), "MM/dd/yy"),
4833
4833
  Description: dd(n),
4834
4834
  "Original Description": n.feed_description,
4835
4835
  Amount: `${n.amount}`,
@@ -4908,7 +4908,7 @@ const rA = () => {
4908
4908
  }, wr = 65, Sr = 34, pd = ({
4909
4909
  bgcolor: e,
4910
4910
  height: A = "calc(100dvh - 36px)",
4911
- loader: n = /* @__PURE__ */ t(Ve, { label: "Loading", size: 40 }),
4911
+ loader: n = /* @__PURE__ */ t(We, { label: "Loading", size: 40 }),
4912
4912
  onClick: a,
4913
4913
  showInsights: r = !1,
4914
4914
  showLoader: i = !1,
@@ -5522,11 +5522,11 @@ const Dd = ({
5522
5522
  const A = [], n = ie();
5523
5523
  for (let a = 0; a <= Tr; a++) {
5524
5524
  const r = xe(bA(n, Tr - a)), o = e.filter(
5525
- (s) => s.year_month === Number(Ye(r, "yyyyMM"))
5525
+ (s) => s.year_month === Number(Ve(r, "yyyyMM"))
5526
5526
  ).reduce((s, c) => s + c.total, 0);
5527
5527
  A.push({
5528
5528
  amount: o,
5529
- isoDate: Ye(r, "yyyy-MM-dd"),
5529
+ isoDate: Ve(r, "yyyy-MM-dd"),
5530
5530
  label: ne(r, Z.MONTH_YEAR)
5531
5531
  });
5532
5532
  }
@@ -6955,7 +6955,7 @@ const Ui = ({ transaction: e }) => {
6955
6955
  }, Hn = () => {
6956
6956
  Se(!1), i();
6957
6957
  };
6958
- return !K || !Je ? /* @__PURE__ */ t(Ve, {}) : /* @__PURE__ */ l(
6958
+ return !K || !Je ? /* @__PURE__ */ t(We, {}) : /* @__PURE__ */ l(
6959
6959
  pA,
6960
6960
  {
6961
6961
  accountOptions: r,
@@ -7354,25 +7354,25 @@ const Ui = ({ transaction: e }) => {
7354
7354
  gridColumn: 1,
7355
7355
  zIndex: 2
7356
7356
  }, Dn = (e) => e ? { margin: "0 0 -6px -4px" } : void 0, Da = ({ isOffset: e = !1, size: A = 16 }) => /* @__PURE__ */ t(VA, { size: A, sx: { ...Dn(e) }, children: /* @__PURE__ */ t(ec, { color: "primary", sx: { fontSize: A, ...Ln } }) }), xa = ({ isOffset: e = !1, size: A = 16 }) => /* @__PURE__ */ t(VA, { size: A, sx: { ...Dn(e) }, children: /* @__PURE__ */ t(Ac, { sx: { color: "categories.income", fontSize: A, ...Ln } }) }), Oa = ({ isOffset: e = !1, size: A = 16 }) => /* @__PURE__ */ t(VA, { size: A, sx: { ...Dn(e) }, children: /* @__PURE__ */ t(rn, { color: "error", sx: { fontSize: A, ...Ln } }) }), _a = ({ isOffset: e = !1, size: A = 16 }) => /* @__PURE__ */ t(VA, { size: A, sx: { ...Dn(e) }, children: /* @__PURE__ */ t(ha, { color: "success", sx: { fontSize: A, ...Ln } }) }), xr = ({ copy: e, date: A, type: n }) => {
7357
- let a = A && gi(A) ? P(e.monthly_ordinal, Ye(A, "do")) : e.monthly;
7357
+ let a = A && gi(A) ? P(e.monthly_ordinal, Ve(A, "do")) : e.monthly;
7358
7358
  switch (n) {
7359
7359
  case X.EveryQuarter:
7360
- a = A ? P(e.quarterly_ordinal, Ye(A, "do")) : e.quarterly;
7360
+ a = A ? P(e.quarterly_ordinal, Ve(A, "do")) : e.quarterly;
7361
7361
  break;
7362
7362
  case X.EveryWeek:
7363
- a = A ? P(e.weekly_ordinal, Ye(A, "do")) : e.weekly;
7363
+ a = A ? P(e.weekly_ordinal, Ve(A, "do")) : e.weekly;
7364
7364
  break;
7365
7365
  case X.EveryYear:
7366
- a = A ? P(e.anually_ordinal, Ye(A, "do")) : e.anually;
7366
+ a = A ? P(e.anually_ordinal, Ve(A, "do")) : e.anually;
7367
7367
  break;
7368
7368
  case X.EveryOtherWeek:
7369
- a = A ? P(e.every_other_week_ordinal, Ye(A, "do")) : e.every_other_week;
7369
+ a = A ? P(e.every_other_week_ordinal, Ve(A, "do")) : e.every_other_week;
7370
7370
  break;
7371
7371
  case X.EveryOtherMonth:
7372
- a = A ? P(e.every_other_month_ordinal, Ye(A, "do")) : e.every_other_month;
7372
+ a = A ? P(e.every_other_month_ordinal, Ve(A, "do")) : e.every_other_month;
7373
7373
  break;
7374
7374
  case X.EveryOtherQuarter:
7375
- a = A ? P(e.every_other_quarter_ordinal, Ye(A, "do")) : e.every_other_quarter;
7375
+ a = A ? P(e.every_other_quarter_ordinal, Ve(A, "do")) : e.every_other_quarter;
7376
7376
  break;
7377
7377
  }
7378
7378
  return a;
@@ -9643,7 +9643,7 @@ const bh = ({ activity: e }) => /* @__PURE__ */ l(Q, { children: [
9643
9643
  class Hr {
9644
9644
  fetchInstance;
9645
9645
  constructor(A, n) {
9646
- this.fetchInstance = new We(A, n);
9646
+ this.fetchInstance = new Ye(A, n);
9647
9647
  }
9648
9648
  addCashflowEvent = async (A) => this.fetchInstance.post(M.CASHFLOW_EVENTS, { ...A }).then((n) => n);
9649
9649
  addCashflowSequence = async (A) => this.fetchInstance.post(M.CASHFLOW_SEQUENCES, { ...A }).then((n) => n.cashflow_sequence);
@@ -10218,7 +10218,7 @@ const tn = {
10218
10218
  n && A([a]).finally(() => {
10219
10219
  i(!0);
10220
10220
  });
10221
- }, [n, a]), !n || !r ? /* @__PURE__ */ t(Ve, {}) : /* @__PURE__ */ l(
10221
+ }, [n, a]), !n || !r ? /* @__PURE__ */ t(We, {}) : /* @__PURE__ */ l(
10222
10222
  fA,
10223
10223
  {
10224
10224
  sx: {
@@ -11068,7 +11068,7 @@ const _g = ({
11068
11068
  x && C(x), z && m(z), i(!0);
11069
11069
  }, O = () => {
11070
11070
  };
11071
- return !u || !n ? /* @__PURE__ */ t(Ve, {}) : /* @__PURE__ */ l(
11071
+ return !u || !n ? /* @__PURE__ */ t(We, {}) : /* @__PURE__ */ l(
11072
11072
  pA,
11073
11073
  {
11074
11074
  accountOptions: I,
@@ -11216,7 +11216,7 @@ class Kg {
11216
11216
  class qr {
11217
11217
  fetchInstance;
11218
11218
  constructor(A, n) {
11219
- this.fetchInstance = new We(A, n);
11219
+ this.fetchInstance = new Ye(A, n);
11220
11220
  }
11221
11221
  addGoal = async (A) => this.fetchInstance.post(M.GOALS, A).then((n) => n.goal);
11222
11222
  addRetirementGoal = async (A) => this.fetchInstance.post(M.RETIREMENT_GOALS, A).then((n) => n.retirement_goal);
@@ -12143,7 +12143,7 @@ const mo = T(
12143
12143
  sx: A,
12144
12144
  title: s.title,
12145
12145
  children: [
12146
- !i && /* @__PURE__ */ t(Ve, {}),
12146
+ !i && /* @__PURE__ */ t(We, {}),
12147
12147
  i && /* @__PURE__ */ l(y, { mx: a ? 0 : 48, my: 24, children: [
12148
12148
  /* @__PURE__ */ l(
12149
12149
  _A,
@@ -12597,11 +12597,9 @@ class o1 {
12597
12597
  constructor(A) {
12598
12598
  this.globalStore = A, De(this);
12599
12599
  }
12600
- setAppConfig = (A) => this.appConfig = A;
12600
+ loadAppConfig = (A) => this.appConfig = A;
12601
12601
  get helpCategories() {
12602
- const {
12603
- appData: { client_communication_profile: A, client_profile: n }
12604
- } = this.globalStore.appDataStore;
12602
+ const { client_communication_profile: A, client_profile: n } = this.globalStore.appDataStore.appData;
12605
12603
  return i1({
12606
12604
  ...A,
12607
12605
  ...n,
@@ -12640,7 +12638,7 @@ const s1 = /^[ a-zA-ZÀ-ÿ0-9]+$/, c1 = 50, kr = 65, l1 = ({
12640
12638
  ),
12641
12639
  /* @__PURE__ */ t(gA, { sx: { boxShadow: "none" }, children: /* @__PURE__ */ t(Ae, { children: /* @__PURE__ */ l(N, { height: e, overflow: "auto", ref: u, children: [
12642
12640
  /* @__PURE__ */ l(N, { height: h.getTotalSize(), position: "relative", children: [
12643
- n && /* @__PURE__ */ t(Ve, { label: "Loading...", size: 32 }),
12641
+ n && /* @__PURE__ */ t(We, { label: "Loading...", size: 32 }),
12644
12642
  !n && h.getVirtualItems().length > 0 && h.getVirtualItems().map((m) => {
12645
12643
  const C = a[m.index];
12646
12644
  return /* @__PURE__ */ l(
@@ -12669,7 +12667,7 @@ const s1 = /^[ a-zA-ZÀ-ÿ0-9]+$/, c1 = 50, kr = 65, l1 = ({
12669
12667
  class Gr {
12670
12668
  fetchInstance;
12671
12669
  constructor(A, n) {
12672
- this.fetchInstance = new We(A, n);
12670
+ this.fetchInstance = new Ye(A, n);
12673
12671
  }
12674
12672
  getMerchants = async (A = [], n = [], a = 1, r = 25) => {
12675
12673
  let i = M.MERCHANTS;
@@ -12708,7 +12706,7 @@ const fo = 13, u1 = (e, A) => e.filter((n) => {
12708
12706
  return e[e.length - 1];
12709
12707
  }, g1 = (e, A) => e.year_month - A.year_month, m1 = () => Array.from({ length: fo }, (e, A) => Math.floor(xe(bA(/* @__PURE__ */ new Date(), A)).getTime() / 1e3)).sort(), C1 = (e, A, n) => !e.length || !A.length ? [] : m1().reduceRight((r, i) => {
12710
12708
  const o = A.filter(
12711
- ({ year_month: u }) => u === parseInt(Ye(Le(i), "yyyyMM"))
12709
+ ({ year_month: u }) => u === parseInt(Ve(Le(i), "yyyyMM"))
12712
12710
  ), s = e.map((u) => {
12713
12711
  const h = o.find((C) => C.account_guid === u.guid), m = {
12714
12712
  change: 0,
@@ -12848,7 +12846,7 @@ const y1 = ({
12848
12846
  selectedData: i
12849
12847
  }) => {
12850
12848
  const { isMobile: o } = Be(), { availableWidth: s } = ct(), c = cA(), d = s - 320, u = e.map((f) => ({
12851
- x: Ye(Le(f.x), "MMM"),
12849
+ x: Ve(Le(f.x), "MMM"),
12852
12850
  y: f.y
12853
12851
  })), h = i ? { index: e.findIndex((f) => f.x === i.x) } : void 0, m = A ? { index: e.findIndex((f) => f.x === A.x) } : void 0, C = (f) => ({
12854
12852
  fill: f === h?.index ? c.palette.success.main : "",
@@ -13247,7 +13245,7 @@ const y1 = ({
13247
13245
  )
13248
13246
  ] })
13249
13247
  }
13250
- ) : /* @__PURE__ */ t(Ve, {});
13248
+ ) : /* @__PURE__ */ t(We, {});
13251
13249
  }), z8 = (e) => {
13252
13250
  switch (e) {
13253
13251
  case 1:
@@ -13368,7 +13366,7 @@ const H1 = (e, A) => {
13368
13366
  return xA(() => () => {
13369
13367
  a().finally();
13370
13368
  }, []), /* @__PURE__ */ l(fs, { sx: { p: 16 }, children: [
13371
- A && /* @__PURE__ */ t(Ve, { label: r?.loading, size: 40 }),
13369
+ A && /* @__PURE__ */ t(We, { label: r?.loading, size: 40 }),
13372
13370
  !A && n.length === 0 && /* @__PURE__ */ t(yA, { sx: { p: 16 }, children: /* @__PURE__ */ t(p, { fontStyle: "italic", sx: { textAlign: "center" }, children: r.no_notifications }) }),
13373
13371
  !A && n.slice().sort((o, s) => s.delivered_at - o.delivered_at).map((o, s) => {
13374
13372
  const c = H1(s, n);
@@ -14209,7 +14207,7 @@ const Fn = ({
14209
14207
  onBackClick: e,
14210
14208
  sx: A,
14211
14209
  title: c.title,
14212
- children: r ? /* @__PURE__ */ t(Ve, {}) : /* @__PURE__ */ l(Q, { children: [
14210
+ children: r ? /* @__PURE__ */ t(We, {}) : /* @__PURE__ */ l(Q, { children: [
14213
14211
  /* @__PURE__ */ l(N, { sx: { px: h ? 24 : 12 }, children: [
14214
14212
  u.length < 1 && /* @__PURE__ */ t(p, { display: "flex", justifyContent: "center", my: 24, children: c.no_accounts }),
14215
14213
  /* @__PURE__ */ t(im, {})
@@ -14742,7 +14740,7 @@ const Fn = ({
14742
14740
  class Ur {
14743
14741
  fetchInstance;
14744
14742
  constructor(A, n) {
14745
- this.fetchInstance = new We(A, n);
14743
+ this.fetchInstance = new Ye(A, n);
14746
14744
  }
14747
14745
  createAccount = async (A) => this.fetchInstance.post(M.ACCOUNTS, A).then((n) => n.account).catch((n) => n);
14748
14746
  deleteAccount = async (A) => this.fetchInstance.delete(`${M.ACCOUNTS}/${A}`).catch((n) => n);
@@ -15101,7 +15099,7 @@ const xm = ({
15101
15099
  click_type: "bubble"
15102
15100
  });
15103
15101
  };
15104
- return o ? /* @__PURE__ */ t(y, { alignItems: "center", height: e, justifyContent: "center", width: Math.abs(u), children: /* @__PURE__ */ t(Ve, {}) }) : /* @__PURE__ */ t(N, { ml: n || d ? 0 : 24, children: n || !s ? /* @__PURE__ */ t(_m, {}) : /* @__PURE__ */ t(
15102
+ return o ? /* @__PURE__ */ t(y, { alignItems: "center", height: e, justifyContent: "center", width: Math.abs(u), children: /* @__PURE__ */ t(We, {}) }) : /* @__PURE__ */ t(N, { ml: n || d ? 0 : 24, children: n || !s ? /* @__PURE__ */ t(_m, {}) : /* @__PURE__ */ t(
15105
15103
  Om,
15106
15104
  {
15107
15105
  height: e,
@@ -15711,7 +15709,7 @@ const xm = ({
15711
15709
  }, V = () => {
15712
15710
  z(!1);
15713
15711
  }, te = yt(m.end, xe(/* @__PURE__ */ new Date()));
15714
- return !s || !_ ? /* @__PURE__ */ t(Ve, {}) : /* @__PURE__ */ l(
15712
+ return !s || !_ ? /* @__PURE__ */ t(We, {}) : /* @__PURE__ */ l(
15715
15713
  pA,
15716
15714
  {
15717
15715
  accountOptions: r,
@@ -15728,7 +15726,7 @@ const xm = ({
15728
15726
  sx: A,
15729
15727
  title: i.budgets_title,
15730
15728
  children: [
15731
- (!s || !_) && /* @__PURE__ */ t(Ve, {}),
15729
+ (!s || !_) && /* @__PURE__ */ t(We, {}),
15732
15730
  s && _ && /* @__PURE__ */ l(y, { direction: S || w ? "row" : "column", height: "100%", width: "100%", children: [
15733
15731
  /* @__PURE__ */ t(y, { height: S || w ? "calc(100dvh - 150px)" : 450, children: /* @__PURE__ */ t(
15734
15732
  Eo,
@@ -15952,25 +15950,25 @@ const Qm = () => {
15952
15950
  button_text: "Request Help",
15953
15951
  help_content: "Find answers, get support, and learn how to make the most of your experience.",
15954
15952
  help_title: "Help Tool"
15955
- }, Jm = () => {
15956
- const { isInitialized: e } = Sn(), { helpCategories: A, setAppConfig: n } = yl(), a = window.app?.config;
15953
+ }, Jm = ({ sx: e }) => {
15954
+ const { isInitialized: A } = Sn(), { appConfig: n, helpCategories: a, loadAppConfig: r } = yl(), i = window.app?.config;
15957
15955
  g.useEffect(() => {
15958
- !e || !a || n(a);
15959
- }, [e, a, n]);
15960
- const r = () => {
15961
- }, i = () => {
15956
+ !A || !i || r(i);
15957
+ }, [A, i]);
15958
+ const o = () => {
15959
+ }, s = () => {
15962
15960
  };
15963
- return /* @__PURE__ */ t(pA, { children: /* @__PURE__ */ t(N, { children: /* @__PURE__ */ t(
15961
+ return !A || !n ? /* @__PURE__ */ t(We, {}) : /* @__PURE__ */ t(pA, { sx: e, children: /* @__PURE__ */ t(
15964
15962
  Vm,
15965
15963
  {
15966
15964
  buttonText: jn.button_text,
15967
- helpCategories: A,
15965
+ helpCategories: a,
15968
15966
  helpContent: jn.help_content,
15969
15967
  helpTitle: jn.help_title,
15970
- onRequestHelp: r,
15971
- onTopicSelect: i
15968
+ onRequestHelp: o,
15969
+ onTopicSelect: s
15972
15970
  }
15973
- ) }) });
15971
+ ) });
15974
15972
  }, Q8 = T(Jm), Ba = ({
15975
15973
  bgcolor: e = "background.default",
15976
15974
  children: A
@@ -18974,7 +18972,7 @@ const Vt = g.createContext(null), gC = ({
18974
18972
  const u = (h) => {
18975
18973
  i(h[0], h[1]);
18976
18974
  };
18977
- return !r || !c ? /* @__PURE__ */ t(Ve, {}) : /* @__PURE__ */ t(
18975
+ return !r || !c ? /* @__PURE__ */ t(We, {}) : /* @__PURE__ */ t(
18978
18976
  pA,
18979
18977
  {
18980
18978
  accountOptions: n,
@@ -19216,7 +19214,7 @@ const np = (e) => e.reduce((n, a) => {
19216
19214
  }, at = (Se) => {
19217
19215
  a(G.TRENDS_HOVER_POINT, { category: Se });
19218
19216
  };
19219
- return !m || !I ? /* @__PURE__ */ t(Ve, {}) : /* @__PURE__ */ l(
19217
+ return !m || !I ? /* @__PURE__ */ t(We, {}) : /* @__PURE__ */ l(
19220
19218
  pA,
19221
19219
  {
19222
19220
  accountOptions: s,
@@ -19368,7 +19366,7 @@ const np = (e) => e.reduce((n, a) => {
19368
19366
  a && n(i).finally(() => {
19369
19367
  s(!0);
19370
19368
  });
19371
- }, [a, i]), !a || !o ? /* @__PURE__ */ t(Ve, {}) : /* @__PURE__ */ t(
19369
+ }, [a, i]), !a || !o ? /* @__PURE__ */ t(We, {}) : /* @__PURE__ */ t(
19372
19370
  lt,
19373
19371
  {
19374
19372
  onPrimaryCtaClick: e,
@@ -19448,7 +19446,7 @@ export {
19448
19446
  re as Drawer,
19449
19447
  bi as ErrorStatuses,
19450
19448
  ad as ExpenseStatus,
19451
- We as Fetch,
19449
+ Ye as Fetch,
19452
19450
  Ze as FieldType,
19453
19451
  cn as GlobalCopyApi,
19454
19452
  zl as GlobalCopyStore,
@@ -19459,8 +19457,8 @@ export {
19459
19457
  n1 as GoalStore,
19460
19458
  ea as GoalType,
19461
19459
  R8 as GoalsWidget,
19462
- Q8 as Help,
19463
19460
  Vm as HelpList,
19461
+ Q8 as HelpWidget,
19464
19462
  Y8 as HiddenInsightsDrawer,
19465
19463
  Ca as INCOME_ACCOUNT_TYPES,
19466
19464
  VA as IconBacking,
@@ -19472,7 +19470,7 @@ export {
19472
19470
  ya as LineChart,
19473
19471
  LA as ListItemAction,
19474
19472
  Bl as ListItemWrapper,
19475
- Ve as Loader,
19473
+ We as Loader,
19476
19474
  y8 as LocalizedCopyApi,
19477
19475
  W8 as ManageAccountsDrawer,
19478
19476
  Na as ManageIncome,