@mx-cartographer/experiences 5.3.1-alpha.mega1 → 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 CHANGED
@@ -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({}), { selectedAccount: c } = Xe(), { mergeAccounts: d, updateAccount: f } = CA(), { accounts: E } = X(), l = oR(), { onEvent: v } = K(), u = (P) => {
18800
- f({
18801
- ...c,
18802
- ...P
18803
- });
18804
- }, H = () => {
18805
- d([c.guid, I.guid]).finally(
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: E.actions }) }),
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
- u({ is_hidden: !c.is_hidden }), v(V.ACCOUNT_DETAILS_CLICK_HIDE, { account_guid: c.guid });
18815
+ H({ is_hidden: !f.is_hidden }), E(V.ACCOUNT_DETAILS_CLICK_HIDE, { account_guid: f.guid });
18816
18816
  },
18817
- primaryText: c.is_hidden ? E.unhide_account : E.hide_Account,
18818
- secondaryText: c.is_hidden ? E.include_this_account : E.exclude_this_account,
18819
- children: /* @__PURE__ */ e(xi, { checked: c.is_hidden })
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), v(V.ACCOUNT_DETAILS_CLICK_MARK_CLOSED, {
18827
- account_guid: c.guid
18826
+ t(!0), E(V.ACCOUNT_DETAILS_CLICK_MARK_CLOSED, {
18827
+ account_guid: f.guid
18828
18828
  });
18829
18829
  },
18830
- primaryText: c.is_closed ? E.mark_as_open : E.mark_as_closed,
18831
- secondaryText: E.this_will_set_the_account_balance_to_0,
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), v(V.ACCOUNT_DETAILS_CLICK_MARK_DUPLICATE, {
18841
- account_guid: c.guid
18840
+ n(!0), E(V.ACCOUNT_DETAILS_CLICK_MARK_DUPLICATE, {
18841
+ account_guid: f.guid
18842
18842
  });
18843
18843
  },
18844
- primaryText: E.mark_as_duplicate,
18845
- secondaryText: E.if_a_connected_account_is_showing_up_twice,
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: E.close_modal,
18854
- title: c.is_closed ? E.confirm_mark_as_open : E.confirm_mark_closed
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: () => u({ is_closed: !c.is_closed }),
18860
+ onPrimaryAction: () => H({ is_closed: !f.is_closed }),
18861
18861
  children: z(
18862
- c.is_closed ? E.this_will_resume_updating_the_balance : E.this_will_set_the_balance_of_your_account,
18863
- c.name
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: E.close_drawer,
18870
+ ariaLabelClose: v.close_drawer,
18871
18871
  isOpen: i,
18872
18872
  onClose: () => n(!1),
18873
- title: E.mark_as_duplicate,
18874
- children: /* @__PURE__ */ e(rA, { children: l.map((P) => {
18875
- const p = l.indexOf(P) === l.length - 1;
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: P,
18880
+ account: p,
18881
18881
  onRowClick: () => {
18882
- o(!0), a(P);
18882
+ o(!0), a(p);
18883
18883
  }
18884
18884
  }
18885
18885
  ),
18886
- /* @__PURE__ */ e(rA, { sx: { ml: p ? 0 : 24 } })
18887
- ] }, P.guid);
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: E.close_modal,
18896
- title: E.confirm_merge
18895
+ close_aria: v.close_modal,
18896
+ title: v.confirm_merge
18897
18897
  },
18898
18898
  isOpen: r,
18899
18899
  onClose: () => o(!1),
18900
- onPrimaryAction: H,
18900
+ onPrimaryAction: P,
18901
18901
  children: [
18902
18902
  z(
18903
- E.this_means_accounts_will_be_merged,
18904
- c.name,
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: E.this_action_cannot_be_undone })
18907
+ /* @__PURE__ */ e(R, { color: "error", sx: { mt: 24 }, children: v.this_action_cannot_be_undone })
18908
18908
  ]
18909
18909
  }
18910
18910
  )