@mx-cartographer/experiences 6.26.3-alpha.sms1 → 6.26.3-alpha.sms3

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
@@ -5604,11 +5604,11 @@ class Dh {
5604
5604
  this.sortColumn,
5605
5605
  this.sortDirection,
5606
5606
  this.tags,
5607
- this.transactions
5607
+ this.rawTransactions
5608
5608
  );
5609
5609
  }
5610
5610
  get sortedTransactionsWithSplits() {
5611
- return mh(this.sortedTransactions, this.transactions);
5611
+ return mh(this.sortedTransactions, this.rawTransactions);
5612
5612
  }
5613
5613
  get transactions() {
5614
5614
  return this.augmentTransactions(this.rawTransactions);
@@ -5638,7 +5638,7 @@ class Dh {
5638
5638
  };
5639
5639
  addTransaction = async (n) => {
5640
5640
  const i = await this.api.addTransaction(n);
5641
- i && J(() => this.rawTransactions = [i, ...this.transactions]);
5641
+ i && J(() => this.rawTransactions = [i, ...this.rawTransactions]);
5642
5642
  };
5643
5643
  augmentTransactions = (n) => _h(
5644
5644
  n,
@@ -5683,7 +5683,7 @@ class Dh {
5683
5683
  });
5684
5684
  };
5685
5685
  modifyTransactionByAccountGuid = (n, i) => {
5686
- this.rawTransactions = this.transactions.map(
5686
+ this.rawTransactions = this.rawTransactions.map(
5687
5687
  (a) => a.account_guid === n ? { ...a, ...i } : a
5688
5688
  );
5689
5689
  };
@@ -5695,9 +5695,9 @@ class Dh {
5695
5695
  };
5696
5696
  removeTransaction = async (n) => {
5697
5697
  await this.api.removeTransaction(n);
5698
- const i = this.transactions.findIndex((a) => a.guid === n);
5698
+ const i = this.rawTransactions.findIndex((a) => a.guid === n);
5699
5699
  if (i >= 0) {
5700
- const a = [...this.transactions];
5700
+ const a = [...this.rawTransactions];
5701
5701
  a.splice(i, 1), J(() => this.rawTransactions = a);
5702
5702
  }
5703
5703
  };
@@ -5716,20 +5716,20 @@ class Dh {
5716
5716
  const c = await this.api.addTransaction(i[s]);
5717
5717
  o.push(c);
5718
5718
  }
5719
- const r = this.transactions.findIndex((s) => s.guid === n.guid);
5719
+ const r = this.rawTransactions.findIndex((s) => s.guid === n.guid);
5720
5720
  r >= 0 && J(
5721
5721
  () => this.rawTransactions = [
5722
- ...this.transactions.slice(0, r),
5722
+ ...this.rawTransactions.slice(0, r),
5723
5723
  a,
5724
- ...this.transactions.slice(r + 1),
5724
+ ...this.rawTransactions.slice(r + 1),
5725
5725
  ...o
5726
5726
  ]
5727
5727
  );
5728
5728
  };
5729
5729
  unSplitTransaction = async (n) => {
5730
- const i = this.transactions.filter((s) => s.parent_guid === n);
5730
+ const i = this.rawTransactions.filter((s) => s.parent_guid === n);
5731
5731
  await this.api.removeTransactionSplit(n);
5732
- const a = [...this.transactions];
5732
+ const a = [...this.rawTransactions];
5733
5733
  i.forEach((s) => {
5734
5734
  const c = a.findIndex((d) => d.guid === s.guid);
5735
5735
  c >= 0 && a.splice(c, 1);
@@ -5755,12 +5755,12 @@ class Dh {
5755
5755
  await this.api.updateTag(n), await this.loadTags();
5756
5756
  };
5757
5757
  updateTransaction = async (n) => {
5758
- const i = await this.api.updateTransaction(n), a = this.transactions.findIndex((o) => o.guid === n.guid);
5758
+ const i = await this.api.updateTransaction(n), a = this.rawTransactions.findIndex((o) => o.guid === n.guid);
5759
5759
  a >= 0 && J(
5760
5760
  () => this.rawTransactions = [
5761
- ...this.transactions.slice(0, a),
5761
+ ...this.rawTransactions.slice(0, a),
5762
5762
  i,
5763
- ...this.transactions.slice(a + 1)
5763
+ ...this.rawTransactions.slice(a + 1)
5764
5764
  ]
5765
5765
  );
5766
5766
  };
@@ -5877,7 +5877,7 @@ const Lh = ({ transaction: e, onClick: n }) => {
5877
5877
  width: c = "100%",
5878
5878
  zeroState: d = /* @__PURE__ */ t(kh, {})
5879
5879
  }) => {
5880
- const { isLoading: _, sortedTransactions: u } = Me(), h = g.useMemo(() => s ? u : u.filter((v) => !v.is_hidden), [u, _, s]), { clearExpandedSplits: m, setShowInsights: p, toggleSplit: C } = Ot(), { onEvent: E } = X(), y = (v) => {
5880
+ const { isLoading: _, sortedTransactions: u } = Me(), h = g.useMemo(() => s ? u : u.filter((v) => !v.is_hidden), [u, s]), { clearExpandedSplits: m, setShowInsights: p, toggleSplit: C } = Ot(), { onEvent: E } = X(), y = (v) => {
5881
5881
  const w = h.find((N) => N.guid === v);
5882
5882
  if (w?.has_been_split) {
5883
5883
  C(w.guid);