@mx-cartographer/experiences 5.3.0 → 5.3.1-alpha.mega2
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/dist/index.es.js +40 -40
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -4498,7 +4498,7 @@ const cf = [
|
|
|
4498
4498
|
[d]: E
|
|
4499
4499
|
};
|
|
4500
4500
|
}, {});
|
|
4501
|
-
return A.map((a) => {
|
|
4501
|
+
return A.filter((a) => !r[a.account_guid]?.is_closed).map((a) => {
|
|
4502
4502
|
const c = r[a.account_guid], d = a.category_guid ? o[a.category_guid] : null, f = I[a.guid] ?? [];
|
|
4503
4503
|
return {
|
|
4504
4504
|
...a,
|
|
@@ -18796,39 +18796,39 @@ const on = ({
|
|
|
18796
18796
|
(n) => n.member_guid === i.guid && i.successfully_aggregated_at && n.guid !== t.guid
|
|
18797
18797
|
);
|
|
18798
18798
|
}, IR = () => {
|
|
18799
|
-
const [A, t] = h.useState(!1), [i, n] = h.useState(!1), [r, o] = h.useState(!1), [I, a] = h.useState({}), {
|
|
18800
|
-
|
|
18801
|
-
...
|
|
18802
|
-
...
|
|
18803
|
-
});
|
|
18804
|
-
},
|
|
18805
|
-
|
|
18799
|
+
const [A, t] = h.useState(!1), [i, n] = h.useState(!1), [r, o] = h.useState(!1), [I, a] = h.useState({}), { mergeAccounts: c, updateAccount: d } = CA(), { selectedAccount: f } = Xe(), { onEvent: E } = K(), l = oR(), { accounts: v } = X(), { loadTransactions: u } = PA(), H = async (p) => {
|
|
18800
|
+
await d({
|
|
18801
|
+
...f,
|
|
18802
|
+
...p
|
|
18803
|
+
}), await u();
|
|
18804
|
+
}, P = () => {
|
|
18805
|
+
c([f.guid, I.guid]).finally(
|
|
18806
18806
|
() => n(!1)
|
|
18807
18807
|
);
|
|
18808
18808
|
};
|
|
18809
18809
|
return /* @__PURE__ */ s(Z, { children: [
|
|
18810
|
-
/* @__PURE__ */ e(me, { sx: { backgroundColor: "transparent", mb: 4, mt: 12, mx: 8 }, children: /* @__PURE__ */ e(R, { bold: !0, component: "h2", variant: "XSmall", children:
|
|
18810
|
+
/* @__PURE__ */ e(me, { sx: { backgroundColor: "transparent", mb: 4, mt: 12, mx: 8 }, children: /* @__PURE__ */ e(R, { bold: !0, component: "h2", variant: "XSmall", children: v.actions }) }),
|
|
18811
18811
|
/* @__PURE__ */ e(
|
|
18812
18812
|
on,
|
|
18813
18813
|
{
|
|
18814
18814
|
onClick: () => {
|
|
18815
|
-
|
|
18815
|
+
H({ is_hidden: !f.is_hidden }), E(V.ACCOUNT_DETAILS_CLICK_HIDE, { account_guid: f.guid });
|
|
18816
18816
|
},
|
|
18817
|
-
primaryText:
|
|
18818
|
-
secondaryText:
|
|
18819
|
-
children: /* @__PURE__ */ e(xi, { checked:
|
|
18817
|
+
primaryText: f.is_hidden ? v.unhide_account : v.hide_Account,
|
|
18818
|
+
secondaryText: f.is_hidden ? v.include_this_account : v.exclude_this_account,
|
|
18819
|
+
children: /* @__PURE__ */ e(xi, { checked: f.is_hidden })
|
|
18820
18820
|
}
|
|
18821
18821
|
),
|
|
18822
18822
|
/* @__PURE__ */ e(
|
|
18823
18823
|
on,
|
|
18824
18824
|
{
|
|
18825
18825
|
onClick: () => {
|
|
18826
|
-
t(!0),
|
|
18827
|
-
account_guid:
|
|
18826
|
+
t(!0), E(V.ACCOUNT_DETAILS_CLICK_MARK_CLOSED, {
|
|
18827
|
+
account_guid: f.guid
|
|
18828
18828
|
});
|
|
18829
18829
|
},
|
|
18830
|
-
primaryText:
|
|
18831
|
-
secondaryText:
|
|
18830
|
+
primaryText: f.is_closed ? v.mark_as_open : v.mark_as_closed,
|
|
18831
|
+
secondaryText: v.this_will_set_the_account_balance_to_0,
|
|
18832
18832
|
children: /* @__PURE__ */ e(q, { name: "chevron_right" })
|
|
18833
18833
|
}
|
|
18834
18834
|
),
|
|
@@ -18837,12 +18837,12 @@ const on = ({
|
|
|
18837
18837
|
{
|
|
18838
18838
|
isLast: !0,
|
|
18839
18839
|
onClick: () => {
|
|
18840
|
-
n(!0),
|
|
18841
|
-
account_guid:
|
|
18840
|
+
n(!0), E(V.ACCOUNT_DETAILS_CLICK_MARK_DUPLICATE, {
|
|
18841
|
+
account_guid: f.guid
|
|
18842
18842
|
});
|
|
18843
18843
|
},
|
|
18844
|
-
primaryText:
|
|
18845
|
-
secondaryText:
|
|
18844
|
+
primaryText: v.mark_as_duplicate,
|
|
18845
|
+
secondaryText: v.if_a_connected_account_is_showing_up_twice,
|
|
18846
18846
|
children: /* @__PURE__ */ e(q, { name: "chevron_right" })
|
|
18847
18847
|
}
|
|
18848
18848
|
),
|
|
@@ -18850,41 +18850,41 @@ const on = ({
|
|
|
18850
18850
|
XA,
|
|
18851
18851
|
{
|
|
18852
18852
|
copy: {
|
|
18853
|
-
close_aria:
|
|
18854
|
-
title:
|
|
18853
|
+
close_aria: v.close_modal,
|
|
18854
|
+
title: f.is_closed ? v.confirm_mark_as_open : v.confirm_mark_closed
|
|
18855
18855
|
},
|
|
18856
18856
|
isOpen: A,
|
|
18857
18857
|
onClose: () => {
|
|
18858
18858
|
t(!1);
|
|
18859
18859
|
},
|
|
18860
|
-
onPrimaryAction: () =>
|
|
18860
|
+
onPrimaryAction: () => H({ is_closed: !f.is_closed }),
|
|
18861
18861
|
children: z(
|
|
18862
|
-
|
|
18863
|
-
|
|
18862
|
+
f.is_closed ? v.this_will_resume_updating_the_balance : v.this_will_set_the_balance_of_your_account,
|
|
18863
|
+
f.name
|
|
18864
18864
|
)
|
|
18865
18865
|
}
|
|
18866
18866
|
),
|
|
18867
18867
|
/* @__PURE__ */ e(
|
|
18868
18868
|
IA,
|
|
18869
18869
|
{
|
|
18870
|
-
ariaLabelClose:
|
|
18870
|
+
ariaLabelClose: v.close_drawer,
|
|
18871
18871
|
isOpen: i,
|
|
18872
18872
|
onClose: () => n(!1),
|
|
18873
|
-
title:
|
|
18874
|
-
children: /* @__PURE__ */ e(rA, { children: l.map((
|
|
18875
|
-
const
|
|
18873
|
+
title: v.mark_as_duplicate,
|
|
18874
|
+
children: /* @__PURE__ */ e(rA, { children: l.map((p) => {
|
|
18875
|
+
const y = l.indexOf(p) === l.length - 1;
|
|
18876
18876
|
return /* @__PURE__ */ s(h.Fragment, { children: [
|
|
18877
18877
|
/* @__PURE__ */ e(
|
|
18878
18878
|
Ui,
|
|
18879
18879
|
{
|
|
18880
|
-
account:
|
|
18880
|
+
account: p,
|
|
18881
18881
|
onRowClick: () => {
|
|
18882
|
-
o(!0), a(
|
|
18882
|
+
o(!0), a(p);
|
|
18883
18883
|
}
|
|
18884
18884
|
}
|
|
18885
18885
|
),
|
|
18886
|
-
/* @__PURE__ */ e(rA, { sx: { ml:
|
|
18887
|
-
] },
|
|
18886
|
+
/* @__PURE__ */ e(rA, { sx: { ml: y ? 0 : 24 } })
|
|
18887
|
+
] }, p.guid);
|
|
18888
18888
|
}) })
|
|
18889
18889
|
}
|
|
18890
18890
|
),
|
|
@@ -18892,19 +18892,19 @@ const on = ({
|
|
|
18892
18892
|
XA,
|
|
18893
18893
|
{
|
|
18894
18894
|
copy: {
|
|
18895
|
-
close_aria:
|
|
18896
|
-
title:
|
|
18895
|
+
close_aria: v.close_modal,
|
|
18896
|
+
title: v.confirm_merge
|
|
18897
18897
|
},
|
|
18898
18898
|
isOpen: r,
|
|
18899
18899
|
onClose: () => o(!1),
|
|
18900
|
-
onPrimaryAction:
|
|
18900
|
+
onPrimaryAction: P,
|
|
18901
18901
|
children: [
|
|
18902
18902
|
z(
|
|
18903
|
-
|
|
18904
|
-
|
|
18903
|
+
v.this_means_accounts_will_be_merged,
|
|
18904
|
+
f.name,
|
|
18905
18905
|
I.name
|
|
18906
18906
|
),
|
|
18907
|
-
/* @__PURE__ */ e(R, { color: "error", sx: { mt: 24 }, children:
|
|
18907
|
+
/* @__PURE__ */ e(R, { color: "error", sx: { mt: 24 }, children: v.this_action_cannot_be_undone })
|
|
18908
18908
|
]
|
|
18909
18909
|
}
|
|
18910
18910
|
)
|