@mx-cartographer/experiences 6.3.17-alpha.mega1 → 6.3.17-alpha.mm1
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.
package/CHANGELOG.md
CHANGED
@@ -1,7 +1,4 @@
|
|
1
|
-
|
2
|
-
handleConnectClick: () => void;
|
3
|
-
}
|
4
|
-
declare const _default: (({ handleConnectClick }: AddAccountsProps) => import("react/jsx-runtime").JSX.Element) & {
|
1
|
+
declare const _default: (() => import("react/jsx-runtime").JSX.Element) & {
|
5
2
|
displayName: string;
|
6
3
|
};
|
7
4
|
export default _default;
|
package/dist/index.es.js
CHANGED
@@ -892,7 +892,10 @@ const _n = 44, hr = (e, n) => e.find((i) => i.guid === n), Cu = (e, n) => e.find
|
|
892
892
|
[]
|
893
893
|
);
|
894
894
|
return i ? o : o.join("");
|
895
|
-
}, i4 = (e, n, i, ...a) => !e || !n ? "" : S(i === 1 ? e : n, ...a), Bn = () =>
|
895
|
+
}, i4 = (e, n, i, ...a) => !e || !n ? "" : S(i === 1 ? e : n, ...a), Bn = () => {
|
896
|
+
const e = "en-us", n = ["en-us", "en-ca", "fr", "fr-ca", "es"], i = window?.app?.options?.language?.toLowerCase(), a = document.querySelector("html")?.getAttribute("lang")?.toLowerCase();
|
897
|
+
return i === "browser" ? a : n.includes(i) ? i : e;
|
898
|
+
};
|
896
899
|
class st {
|
897
900
|
endpoint = "/";
|
898
901
|
headers;
|
@@ -1499,9 +1502,7 @@ const Iu = (e, n) => {
|
|
1499
1502
|
onCancelClick: () => {
|
1500
1503
|
m(Ua(e, o)), f();
|
1501
1504
|
},
|
1502
|
-
onConnectAccountClick:
|
1503
|
-
f(), a();
|
1504
|
-
},
|
1505
|
+
onConnectAccountClick: a,
|
1505
1506
|
onFilterClick: () => {
|
1506
1507
|
i(Object.keys(h).filter((b) => h[b])), f();
|
1507
1508
|
},
|
@@ -22633,91 +22634,92 @@ const Zf = ({
|
|
22633
22634
|
)
|
22634
22635
|
}
|
22635
22636
|
) : null;
|
22636
|
-
}), p0 = (
|
22637
|
-
const { common: n } = I(), i = fn("(max-width: 700px)")
|
22638
|
-
|
22639
|
-
Ve,
|
22640
|
-
{
|
22641
|
-
"aria-controls": "add_accounts",
|
22642
|
-
"aria-describedby": "add-accounts",
|
22643
|
-
"aria-haspopup": !0,
|
22644
|
-
"aria-label": n.add_accounts,
|
22645
|
-
color: "primary",
|
22646
|
-
onClick: e,
|
22647
|
-
children: /* @__PURE__ */ t(H, { name: "add", size: 24 })
|
22648
|
-
}
|
22649
|
-
) }) : /* @__PURE__ */ t(
|
22650
|
-
Q,
|
22651
|
-
{
|
22652
|
-
"aria-controls": "add_accounts",
|
22653
|
-
"aria-haspopup": !0,
|
22654
|
-
"aria-label": n.add_accounts,
|
22655
|
-
onClick: e,
|
22656
|
-
startIcon: /* @__PURE__ */ t(H, { name: "add", size: 24 }),
|
22657
|
-
sx: {
|
22658
|
-
p: 12,
|
22659
|
-
whiteSpace: "nowrap",
|
22660
|
-
minWidth: "max-content"
|
22661
|
-
},
|
22662
|
-
variant: "text",
|
22663
|
-
children: n.add_accounts
|
22664
|
-
}
|
22665
|
-
) });
|
22666
|
-
}, C0 = A(p0), f0 = () => {
|
22667
|
-
const [e, n] = g.useState(!1), { visibleAccounts: i } = we(), { selectedAccountGuids: a, setSelectedAccountGuids: o } = _e(), { common: r, connect: s } = I(), { config: c } = Ui(), { isMobile: d } = ye(), _ = {
|
22668
|
-
accountFilterOptionsCopy: {
|
22669
|
-
accountTypeAccounts: r.account_filter.account_type_accounts,
|
22670
|
-
cancelButton: r.cancel_button,
|
22671
|
-
filterButton: r.filter_button,
|
22672
|
-
filterButtonAria: r.account_filter.filter_button_generic_aria,
|
22673
|
-
selectAllAccounts: r.account_filter.select_all_accounts,
|
22674
|
-
toggleAccountTypeAccounts: r.account_filter.toggle_account_type_accounts,
|
22675
|
-
unselectAllAccounts: r.account_filter.unselect_all_accounts,
|
22676
|
-
zeroStateButton: r.account_filter.zero_state_button,
|
22677
|
-
zeroStateDescription: r.account_filter.zero_state_description,
|
22678
|
-
zeroStateTitle: r.account_filter.zero_state_title
|
22679
|
-
},
|
22680
|
-
title: r.filter_button
|
22681
|
-
}, u = () => {
|
22682
|
-
const m = (/* @__PURE__ */ new Date()).getHours();
|
22683
|
-
return m > 1 && m < 12 ? r.good_morning : m >= 12 && m < 18 ? r.good_afternoon : r.good_evening;
|
22637
|
+
}), p0 = () => {
|
22638
|
+
const { common: e, connect: n } = I(), i = fn("(max-width: 700px)"), [a, o] = g.useState(!1), r = () => {
|
22639
|
+
o(!0);
|
22684
22640
|
};
|
22685
22641
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
22686
|
-
/* @__PURE__ */ t(
|
22687
|
-
|
22688
|
-
|
22689
|
-
|
22690
|
-
|
22691
|
-
|
22692
|
-
|
22693
|
-
|
22694
|
-
|
22695
|
-
|
22696
|
-
|
22697
|
-
|
22698
|
-
|
22699
|
-
|
22700
|
-
|
22701
|
-
|
22702
|
-
|
22703
|
-
|
22704
|
-
|
22705
|
-
|
22706
|
-
|
22707
|
-
|
22708
|
-
|
22709
|
-
|
22710
|
-
|
22711
|
-
|
22712
|
-
|
22642
|
+
/* @__PURE__ */ t(L, { my: 4, children: i ? /* @__PURE__ */ t(zn, { id: "add-accounts", placement: "bottom", title: e.add_accounts, children: /* @__PURE__ */ t(
|
22643
|
+
Ve,
|
22644
|
+
{
|
22645
|
+
"aria-controls": "add_accounts",
|
22646
|
+
"aria-describedby": "add-accounts",
|
22647
|
+
"aria-haspopup": !0,
|
22648
|
+
"aria-label": e.add_accounts,
|
22649
|
+
color: "primary",
|
22650
|
+
onClick: r,
|
22651
|
+
children: /* @__PURE__ */ t(H, { name: "add", size: 24 })
|
22652
|
+
}
|
22653
|
+
) }) : /* @__PURE__ */ t(
|
22654
|
+
Q,
|
22655
|
+
{
|
22656
|
+
"aria-controls": "add_accounts",
|
22657
|
+
"aria-haspopup": !0,
|
22658
|
+
"aria-label": e.add_accounts,
|
22659
|
+
onClick: r,
|
22660
|
+
startIcon: /* @__PURE__ */ t(H, { name: "add", size: 24 }),
|
22661
|
+
sx: {
|
22662
|
+
p: 12,
|
22663
|
+
whiteSpace: "nowrap",
|
22664
|
+
minWidth: "max-content"
|
22665
|
+
},
|
22666
|
+
variant: "text",
|
22667
|
+
children: e.add_accounts
|
22668
|
+
}
|
22669
|
+
) }),
|
22670
|
+
a && /* @__PURE__ */ t(
|
22713
22671
|
ci,
|
22714
22672
|
{
|
22715
|
-
onClose: () =>
|
22716
|
-
showConnectWidget:
|
22717
|
-
title:
|
22673
|
+
onClose: () => o(!1),
|
22674
|
+
showConnectWidget: a,
|
22675
|
+
title: n.mini_title
|
22718
22676
|
}
|
22719
22677
|
)
|
22720
22678
|
] });
|
22679
|
+
}, C0 = A(p0), f0 = () => {
|
22680
|
+
const { visibleAccounts: e } = we(), { selectedAccountGuids: n, setSelectedAccountGuids: i } = _e(), { common: a } = I(), { config: o } = Ui(), { isMobile: r } = ye(), s = {
|
22681
|
+
accountFilterOptionsCopy: {
|
22682
|
+
accountTypeAccounts: a.account_filter.account_type_accounts,
|
22683
|
+
cancelButton: a.cancel_button,
|
22684
|
+
filterButton: a.filter_button,
|
22685
|
+
filterButtonAria: a.account_filter.filter_button_generic_aria,
|
22686
|
+
selectAllAccounts: a.account_filter.select_all_accounts,
|
22687
|
+
toggleAccountTypeAccounts: a.account_filter.toggle_account_type_accounts,
|
22688
|
+
unselectAllAccounts: a.account_filter.unselect_all_accounts,
|
22689
|
+
zeroStateButton: a.account_filter.zero_state_button,
|
22690
|
+
zeroStateDescription: a.account_filter.zero_state_description,
|
22691
|
+
zeroStateTitle: a.account_filter.zero_state_title
|
22692
|
+
},
|
22693
|
+
title: a.filter_button
|
22694
|
+
};
|
22695
|
+
return /* @__PURE__ */ t(It, { sx: { gap: 12, mb: r ? 24 : 0, p: 24 }, children: /* @__PURE__ */ l(y, { alignItems: "center", flexDirection: "row", justifyContent: "space-between", children: [
|
22696
|
+
/* @__PURE__ */ t(y, { direction: "row", spacing: 2, children: /* @__PURE__ */ l(y, { children: [
|
22697
|
+
/* @__PURE__ */ t(Jt, { children: (() => {
|
22698
|
+
const _ = (/* @__PURE__ */ new Date()).getHours();
|
22699
|
+
return _ > 1 && _ < 12 ? a.good_morning : _ >= 12 && _ < 18 ? a.good_afternoon : a.good_evening;
|
22700
|
+
})() }),
|
22701
|
+
/* @__PURE__ */ t(p, { color: "text.secondary", sx: { fontSize: 15 }, children: a.heres_your_spending_overview })
|
22702
|
+
] }) }),
|
22703
|
+
/* @__PURE__ */ l(y, { flexDirection: "row", children: [
|
22704
|
+
o.show_connections_widget_in_master && /* @__PURE__ */ t(C0, {}),
|
22705
|
+
/* @__PURE__ */ t(
|
22706
|
+
tc,
|
22707
|
+
{
|
22708
|
+
accounts: e,
|
22709
|
+
copy: s,
|
22710
|
+
onFilterClick: (d) => {
|
22711
|
+
i(d);
|
22712
|
+
},
|
22713
|
+
selectedAccountGuids: n,
|
22714
|
+
showAccountNumbers: !1,
|
22715
|
+
sx: {
|
22716
|
+
maxWidth: "100%"
|
22717
|
+
},
|
22718
|
+
variant: "text"
|
22719
|
+
}
|
22720
|
+
)
|
22721
|
+
] })
|
22722
|
+
] }) });
|
22721
22723
|
}, b0 = A(f0);
|
22722
22724
|
var ta = /* @__PURE__ */ ((e) => (e[e.Main = 0] = "Main", e[e.RightSide = 1] = "RightSide", e[e.Disabled = 2] = "Disabled", e))(ta || {});
|
22723
22725
|
const y0 = ({ widgets: e, isLoading: n }) => {
|