@mx-cartographer/experiences 9.0.15-alpha.al2 → 9.0.15-alpha.al3

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.
@@ -55,18 +55,18 @@ const Q = (n) => n.top_level_category_guid !== ee.INCOME && n.transaction_type =
55
55
  onSearch: i,
56
56
  onSelected: a
57
57
  }) => {
58
- const { recurring: o } = x(), { searchValue: s, setSearchValue: r } = Ce();
58
+ const { recurring: r } = x(), { searchValue: s, setSearchValue: o } = Ce();
59
59
  return /* @__PURE__ */ l(p, { sx: { bgcolor: n, gap: 16, pt: 8 }, children: [
60
60
  t && /* @__PURE__ */ e(H, { sx: { mx: 24 }, children: t }),
61
61
  /* @__PURE__ */ e(
62
62
  it,
63
63
  {
64
- ariaLabel: o.select_transaction_search_aria,
65
- cancelAriaLabel: o.select_transaction_search_cancel_aria,
64
+ ariaLabel: r.select_transaction_search_aria,
65
+ cancelAriaLabel: r.select_transaction_search_cancel_aria,
66
66
  onChange: (d) => {
67
- r(d), i(d);
67
+ o(d), i(d);
68
68
  },
69
- placeholder: o.select_transaction_search_placeholder,
69
+ placeholder: r.select_transaction_search_placeholder,
70
70
  searchValue: s
71
71
  }
72
72
  ),
@@ -88,15 +88,15 @@ const Q = (n) => n.top_level_category_guid !== ee.INCOME && n.transaction_type =
88
88
  return t ? a ? Ae(i, t) : ke(i, t) : a ? $(i) : Q(i);
89
89
  }, At = M(
90
90
  ({ isOpen: n, onClose: t, recurringTransaction: i }) => {
91
- const { recurring: a } = x(), { markRecurrenceAsPaid: o } = Y(), { filter: s, setFilter: r, transactions: d } = re(), { setSearchValue: h } = Ce();
91
+ const { recurring: a } = x(), { markRecurrenceAsPaid: r } = Y(), { filter: s, setFilter: o, transactions: d } = re(), { setSearchValue: h } = Ce();
92
92
  u.useEffect(() => {
93
- n ? r({ ...s, custom: me(i) }) : h("");
93
+ n ? o({ ...s, custom: me(i) }) : h("");
94
94
  }, [n, i]);
95
95
  const f = (m) => {
96
- r({ ...s, custom: me(i, m) });
96
+ o({ ...s, custom: me(i, m) });
97
97
  }, C = async (m) => {
98
98
  const b = d.find((S) => S.guid === m);
99
- b && (await o(i.guid, b), t());
99
+ b && (await r(i.guid, b), t());
100
100
  };
101
101
  return /* @__PURE__ */ e(
102
102
  z,
@@ -162,42 +162,42 @@ const Q = (n) => n.top_level_category_guid !== ee.INCOME && n.transaction_type =
162
162
  firstDay: t,
163
163
  secondDay: i,
164
164
  onFrequencyChange: a,
165
- onFirstDayChange: o,
165
+ onFirstDayChange: r,
166
166
  onSecondDayChange: s
167
167
  }) => {
168
- const { recurring: r } = x(), d = u.useMemo(
168
+ const { recurring: o } = x(), d = u.useMemo(
169
169
  () => [
170
- { id: _.EveryWeek, label: r.frequency_every_week },
171
- { id: _.EveryOtherWeek, label: r.frequency_every_other_week },
172
- { id: _.TwiceAMonth, label: r.frequency_twice_a_month },
173
- { id: _.EveryMonth, label: r.frequency_every_month },
174
- { id: _.EveryOtherMonth, label: r.frequency_every_other_month },
175
- { id: _.EveryQuarter, label: r.frequency_every_quarter },
176
- { id: _.EveryOtherQuarter, label: r.frequency_every_other_quarter },
177
- { id: _.EveryYear, label: r.frequency_every_year }
170
+ { id: _.EveryWeek, label: o.frequency_every_week },
171
+ { id: _.EveryOtherWeek, label: o.frequency_every_other_week },
172
+ { id: _.TwiceAMonth, label: o.frequency_twice_a_month },
173
+ { id: _.EveryMonth, label: o.frequency_every_month },
174
+ { id: _.EveryOtherMonth, label: o.frequency_every_other_month },
175
+ { id: _.EveryQuarter, label: o.frequency_every_quarter },
176
+ { id: _.EveryOtherQuarter, label: o.frequency_every_other_quarter },
177
+ { id: _.EveryYear, label: o.frequency_every_year }
178
178
  ],
179
- [r]
179
+ [o]
180
180
  ), h = [
181
- { id: 0, label: r.weekday_sunday },
182
- { id: 1, label: r.weekday_monday },
183
- { id: 2, label: r.weekday_tuesday },
184
- { id: 3, label: r.weekday_wednesday },
185
- { id: 4, label: r.weekday_thursday },
186
- { id: 5, label: r.weekday_friday },
187
- { id: 6, label: r.weekday_saturday }
181
+ { id: 0, label: o.weekday_sunday },
182
+ { id: 1, label: o.weekday_monday },
183
+ { id: 2, label: o.weekday_tuesday },
184
+ { id: 3, label: o.weekday_wednesday },
185
+ { id: 4, label: o.weekday_thursday },
186
+ { id: 5, label: o.weekday_friday },
187
+ { id: 6, label: o.weekday_saturday }
188
188
  ], f = [...Array(31).keys()].map((k) => ({
189
189
  id: k + 1,
190
190
  label: ze(k + 1)
191
191
  }));
192
- f[30].label += ` (${r.last_day_of_month})`;
192
+ f[30].label += ` (${o.last_day_of_month})`;
193
193
  const C = f.slice(0, 15), m = f.slice(14), b = n === _.EveryWeek || n === _.EveryOtherWeek, S = n === _.TwiceAMonth || n === _.EveryMonth || n === _.EveryOtherMonth || n === _.EveryQuarter || n === _.EveryOtherQuarter, v = ct(U(), t), I = v < U() ? ue(v, 1) : v, L = (k) => {
194
- k && o(st(k));
194
+ k && r(st(k));
195
195
  };
196
196
  return /* @__PURE__ */ l(p, { gap: 24, sx: { m: 24 }, children: [
197
197
  /* @__PURE__ */ e(
198
198
  q,
199
199
  {
200
- label: r.frequency,
200
+ label: o.frequency,
201
201
  onChange: a,
202
202
  options: d,
203
203
  value: n
@@ -206,8 +206,8 @@ const Q = (n) => n.top_level_category_guid !== ee.INCOME && n.transaction_type =
206
206
  b && /* @__PURE__ */ e(
207
207
  q,
208
208
  {
209
- label: r.day_of_the_week,
210
- onChange: o,
209
+ label: o.day_of_the_week,
210
+ onChange: r,
211
211
  options: h,
212
212
  value: t
213
213
  }
@@ -215,8 +215,8 @@ const Q = (n) => n.top_level_category_guid !== ee.INCOME && n.transaction_type =
215
215
  S && /* @__PURE__ */ e(
216
216
  q,
217
217
  {
218
- label: n === _.TwiceAMonth ? r.first_day_of_the_month : r.day_of_the_month,
219
- onChange: o,
218
+ label: n === _.TwiceAMonth ? o.first_day_of_the_month : o.day_of_the_month,
219
+ onChange: r,
220
220
  options: n === _.TwiceAMonth ? C : f,
221
221
  value: t
222
222
  }
@@ -224,7 +224,7 @@ const Q = (n) => n.top_level_category_guid !== ee.INCOME && n.transaction_type =
224
224
  n === _.TwiceAMonth && /* @__PURE__ */ e(
225
225
  q,
226
226
  {
227
- label: r.second_day_of_the_month,
227
+ label: o.second_day_of_the_month,
228
228
  onChange: s,
229
229
  options: m,
230
230
  value: i || 0
@@ -234,7 +234,7 @@ const Q = (n) => n.top_level_category_guid !== ee.INCOME && n.transaction_type =
234
234
  dt,
235
235
  {
236
236
  disablePast: !0,
237
- label: r.next_payment_date,
237
+ label: o.next_payment_date,
238
238
  maxDate: ye(ue(U(), 1), 1),
239
239
  minDate: U(),
240
240
  onChange: L,
@@ -243,10 +243,10 @@ const Q = (n) => n.top_level_category_guid !== ee.INCOME && n.transaction_type =
243
243
  ) })
244
244
  ] });
245
245
  }, It = M(({ repeatingTransaction: n }) => {
246
- const { recurring: t } = x(), { updateRepeatingTransaction: i } = Y(), { onEvent: a } = K(), [o, s] = u.useState(!1), [r, d] = u.useState(n.recurrence_type), [h, f] = u.useState(n.recurrence_day), [C, m] = u.useState(n.second_recurrence_day), b = async () => {
246
+ const { recurring: t } = x(), { updateRepeatingTransaction: i } = Y(), { onEvent: a } = K(), [r, s] = u.useState(!1), [o, d] = u.useState(n.recurrence_type), [h, f] = u.useState(n.recurrence_day), [C, m] = u.useState(n.second_recurrence_day), b = async () => {
247
247
  await i({
248
248
  ...n,
249
- recurrence_type: r,
249
+ recurrence_type: o,
250
250
  recurrence_day: h,
251
251
  second_recurrence_day: C
252
252
  }), s(!1);
@@ -268,7 +268,7 @@ const Q = (n) => n.top_level_category_guid !== ee.INCOME && n.transaction_type =
268
268
  z,
269
269
  {
270
270
  ariaLabelClose: t.close_drawer_aria,
271
- isOpen: o,
271
+ isOpen: r,
272
272
  onClose: () => s(!1),
273
273
  onPrimaryAction: b,
274
274
  title: t.payment_schedule,
@@ -276,7 +276,7 @@ const Q = (n) => n.top_level_category_guid !== ee.INCOME && n.transaction_type =
276
276
  we,
277
277
  {
278
278
  firstDay: h,
279
- frequency: r,
279
+ frequency: o,
280
280
  onFirstDayChange: f,
281
281
  onFrequencyChange: d,
282
282
  onSecondDayChange: m,
@@ -287,40 +287,40 @@ const Q = (n) => n.top_level_category_guid !== ee.INCOME && n.transaction_type =
287
287
  )
288
288
  ] });
289
289
  }), Rt = (n, t) => {
290
- const i = n.map((o) => ({
291
- key: o.guid,
292
- name: o.payee || o.description || o.feed_description,
293
- amount: o.amount,
294
- date: o.date,
295
- merchantGuid: o.merchant_guid || "",
296
- categoryGuid: o.top_level_category_guid || "",
297
- category: o.category || "",
290
+ const i = n.map((r) => ({
291
+ key: r.guid,
292
+ name: r.payee || r.description || r.feed_description,
293
+ amount: r.amount,
294
+ date: r.date,
295
+ merchantGuid: r.merchant_guid || "",
296
+ categoryGuid: r.top_level_category_guid || "",
297
+ category: r.category || "",
298
298
  status: R.Paid,
299
- transactionGuid: o.guid
300
- })), a = t.map((o) => ({
301
- key: `missed-${o.expectedDate.getTime()}`,
302
- name: o.name,
303
- amount: o.amount,
304
- date: mt(o.expectedDate),
305
- merchantGuid: o.merchantGuid,
306
- categoryGuid: o.categoryGuid,
299
+ transactionGuid: r.guid
300
+ })), a = t.map((r) => ({
301
+ key: `missed-${r.expectedDate.getTime()}`,
302
+ name: r.name,
303
+ amount: r.amount,
304
+ date: mt(r.expectedDate),
305
+ merchantGuid: r.merchantGuid,
306
+ categoryGuid: r.categoryGuid,
307
307
  category: "",
308
308
  status: R.Missed
309
309
  }));
310
- return [...i, ...a].sort((o, s) => s.date - o.date);
310
+ return [...i, ...a].sort((r, s) => s.date - r.date);
311
311
  }, Dt = ({
312
312
  isIncome: n = !1,
313
313
  onMarkAsUnpaidClick: t,
314
314
  onMarkAsPaidClick: i,
315
315
  onTransactionClick: a,
316
- recurringTransaction: o,
316
+ recurringTransaction: r,
317
317
  transactions: s
318
318
  }) => {
319
- const { recurring: r } = x(), { onEvent: d } = K(), { recurrences: h } = Y(), [f, C] = u.useState(null), [m, b] = u.useState(null), S = u.useMemo(
319
+ const { recurring: o } = x(), { onEvent: d } = K(), { recurrences: h } = Y(), [f, C] = u.useState(null), [m, b] = u.useState(null), S = u.useMemo(
320
320
  () => h.filter(
321
- (c) => c.repeatingTransactionGuid === o.guid && c.status === R.Missed
321
+ (c) => c.repeatingTransactionGuid === r.guid && c.status === R.Missed
322
322
  ),
323
- [h, o.guid]
323
+ [h, r.guid]
324
324
  ), v = u.useMemo(
325
325
  () => Rt(s, S),
326
326
  [s, S]
@@ -334,8 +334,8 @@ const Q = (n) => n.top_level_category_guid !== ee.INCOME && n.transaction_type =
334
334
  m && (m.status === R.Missed ? i() : m.transactionGuid && t(m.transactionGuid), k());
335
335
  };
336
336
  return /* @__PURE__ */ l(p, { direction: "column", sx: { minHeight: "30dvh" }, children: [
337
- /* @__PURE__ */ e(y, { bold: !0, id: "past-activity", sx: { ml: 24, mt: 16, mb: 8 }, variant: "body1", children: r.past_activity }),
338
- /* @__PURE__ */ e(ne, { "aria-labelledby": "past-activity", sx: { flex: 1, overflow: "auto" }, children: v.map((c, E) => {
337
+ /* @__PURE__ */ e(y, { bold: !0, id: o.past_activity, sx: { ml: 24, mt: 16, mb: 8 }, variant: "body1", children: o.past_activity }),
338
+ /* @__PURE__ */ e(ne, { "aria-labelledby": o.past_activity, sx: { flex: 1, overflow: "auto" }, children: v.map((c, E) => {
339
339
  const T = c.status === R.Paid, N = c.status === R.Missed, g = E === v.length - 1;
340
340
  return /* @__PURE__ */ l(u.Fragment, { children: [
341
341
  /* @__PURE__ */ l(
@@ -361,7 +361,7 @@ const Q = (n) => n.top_level_category_guid !== ee.INCOME && n.transaction_type =
361
361
  children: [
362
362
  T && /* @__PURE__ */ e(Ke, { color: "success", filled: !0, size: 12 }),
363
363
  N && /* @__PURE__ */ e(qe, { color: "error", filled: !0, size: 12 }),
364
- /* @__PURE__ */ e(y, { bold: !0, color: "text.secondary", variant: "caption", children: T ? r.paid?.toLowerCase() : r.missed?.toLowerCase() })
364
+ /* @__PURE__ */ e(y, { bold: !0, color: "text.secondary", variant: "caption", children: T ? o.paid?.toLowerCase() : o.missed?.toLowerCase() })
365
365
  ]
366
366
  }
367
367
  )
@@ -387,7 +387,7 @@ const Q = (n) => n.top_level_category_guid !== ee.INCOME && n.transaction_type =
387
387
  /* @__PURE__ */ e(
388
388
  _t,
389
389
  {
390
- "aria-label": r.more_menu_aria,
390
+ "aria-label": o.more_menu_aria,
391
391
  onClick: (w) => L(w, c),
392
392
  size: "small",
393
393
  sx: { alignSelf: "center", ml: 4 },
@@ -409,7 +409,7 @@ const Q = (n) => n.top_level_category_guid !== ee.INCOME && n.transaction_type =
409
409
  onClose: k,
410
410
  open: !!f,
411
411
  transformOrigin: { horizontal: "right", vertical: "top" },
412
- children: /* @__PURE__ */ e(ht, { onClick: B, sx: { p: 12 }, children: /* @__PURE__ */ e(y, { variant: "body1", children: m?.status === R.Missed ? r.mark_as_paid_cta : r.mark_as_unpaid_cta }) })
412
+ children: /* @__PURE__ */ e(ht, { onClick: B, sx: { p: 12 }, children: /* @__PURE__ */ e(y, { variant: "body1", children: m?.status === R.Missed ? o.mark_as_paid_cta : o.mark_as_unpaid_cta }) })
413
413
  }
414
414
  )
415
415
  ] });
@@ -418,7 +418,7 @@ const Q = (n) => n.top_level_category_guid !== ee.INCOME && n.transaction_type =
418
418
  onMarkAsPaidClick: t,
419
419
  status: i
420
420
  }) => {
421
- const a = Ct(), { recurring: o } = x(), s = i === R.Paid;
421
+ const a = Ct(), { recurring: r } = x(), s = i === R.Paid;
422
422
  return /* @__PURE__ */ e(ft, { variant: "elevation", children: /* @__PURE__ */ e(gt, { onClick: t, children: /* @__PURE__ */ l(
423
423
  p,
424
424
  {
@@ -436,12 +436,12 @@ const Q = (n) => n.top_level_category_guid !== ee.INCOME && n.transaction_type =
436
436
  }
437
437
  ),
438
438
  /* @__PURE__ */ l(p, { direction: "column", children: [
439
- /* @__PURE__ */ e(y, { fontSize: 11, variant: "body1", children: s ? o.paid : o.upcoming }),
439
+ /* @__PURE__ */ e(y, { fontSize: 11, variant: "body1", children: s ? r.paid : r.upcoming }),
440
440
  /* @__PURE__ */ e(y, { bold: !0, variant: "body1", children: Se(n, xe.MONTH_DAY_YEAR) })
441
441
  ] })
442
442
  ] }),
443
443
  /* @__PURE__ */ l(p, { alignItems: "center", direction: "row", gap: 4, children: [
444
- /* @__PURE__ */ e(y, { bold: !0, variant: "body1", children: s ? o.mark_as_unpaid_cta : o.mark_as_paid_cta }),
444
+ /* @__PURE__ */ e(y, { bold: !0, variant: "body1", children: s ? r.mark_as_unpaid_cta : r.mark_as_paid_cta }),
445
445
  /* @__PURE__ */ e(He, { size: 20 })
446
446
  ] })
447
447
  ]
@@ -449,10 +449,10 @@ const Q = (n) => n.top_level_category_guid !== ee.INCOME && n.transaction_type =
449
449
  ) }) });
450
450
  }, Tt = M(
451
451
  ({ onDeleted: n, recurringTransaction: t, selectedRecurrence: i }) => {
452
- const { recurring: a } = x(), { selectedAccountGuids: o } = at(), { onEvent: s } = K(), { deleteRepeatingTransaction: r, markRecurrenceAsUnpaid: d, recurrences: h } = Y(), { detailedTransactions: f, setFilter: C, transactions: m } = re(), { setSelectedAccount: b, setSelectedMember: S } = Ve(), { members: v } = ot(), { amount: I, description: L, merchant_guid: k } = t, [B, c] = u.useState(!1), [E, T] = u.useState(!1), [N, g] = u.useState(!1), [w, X] = u.useState(!1), [Re, Z] = u.useState(""), [De, se] = u.useState(!1), [J, ce] = u.useState("");
452
+ const { recurring: a } = x(), { selectedAccountGuids: r } = at(), { onEvent: s } = K(), { deleteRepeatingTransaction: o, markRecurrenceAsUnpaid: d, recurrences: h } = Y(), { detailedTransactions: f, setFilter: C, transactions: m } = re(), { setSelectedAccount: b, setSelectedMember: S } = Ve(), { members: v } = ot(), { amount: I, description: L, merchant_guid: k } = t, [B, c] = u.useState(!1), [E, T] = u.useState(!1), [N, g] = u.useState(!1), [w, X] = u.useState(!1), [Re, Z] = u.useState(""), [De, se] = u.useState(!1), [J, ce] = u.useState("");
453
453
  u.useEffect(() => {
454
454
  C({
455
- accounts: o,
455
+ accounts: r,
456
456
  dateRange: { start: ye(U(), 90), end: We(U()) },
457
457
  custom: (A) => A.repeating_transaction_guid === t.guid
458
458
  });
@@ -470,7 +470,7 @@ const Q = (n) => n.top_level_category_guid !== ee.INCOME && n.transaction_type =
470
470
  A && S(A), c(!0);
471
471
  }
472
472
  }, Ee = async () => {
473
- await r(t.guid), n();
473
+ await o(t.guid), n();
474
474
  }, Oe = () => {
475
475
  T(!0), s(D.RECURRING_TRANSACTIONS_DETAILS_CLICK_DELETE);
476
476
  }, le = () => {
@@ -619,13 +619,13 @@ const Q = (n) => n.top_level_category_guid !== ee.INCOME && n.transaction_type =
619
619
  ), Lt = M(
620
620
  ({ onClick: n = () => {
621
621
  }, repeatingTransaction: t }) => {
622
- const { recurring: i } = x(), [a, o] = u.useState(!1), s = u.useMemo(
622
+ const { recurring: i } = x(), [a, r] = u.useState(!1), s = u.useMemo(
623
623
  () => t.transactions.length === 0 ? "" : t.transactions[0].category_guid || "",
624
624
  [t]
625
- ), r = t.account?.displayName || "", d = t.repeating_transaction_type === O.Income, h = he(i, t, !0);
625
+ ), o = t.account?.displayName || "", d = t.repeating_transaction_type === O.Income, h = he(i, t, !0);
626
626
  return /* @__PURE__ */ l(Ue, { disableGutters: !0, disablePadding: !0, children: [
627
627
  /* @__PURE__ */ l(Fe, { onClick: () => {
628
- n(t), o(!0);
628
+ n(t), r(!0);
629
629
  }, children: [
630
630
  /* @__PURE__ */ e(_e, { children: /* @__PURE__ */ e(
631
631
  ae,
@@ -641,12 +641,12 @@ const Q = (n) => n.top_level_category_guid !== ee.INCOME && n.transaction_type =
641
641
  t.account?.institution_guid && /* @__PURE__ */ e(
642
642
  Pe,
643
643
  {
644
- alt: r,
644
+ alt: o,
645
645
  institutionGuid: t.account?.institution_guid,
646
646
  size: 12
647
647
  }
648
648
  ),
649
- /* @__PURE__ */ e(y, { variant: "caption", children: r })
649
+ /* @__PURE__ */ e(y, { variant: "caption", children: o })
650
650
  ] })
651
651
  ] }),
652
652
  /* @__PURE__ */ l(p, { alignItems: "flex-end", sx: { width: "50%" }, children: [
@@ -684,12 +684,12 @@ const Q = (n) => n.top_level_category_guid !== ee.INCOME && n.transaction_type =
684
684
  {
685
685
  ariaLabelClose: i.close_drawer_aria,
686
686
  isOpen: a,
687
- onClose: () => o(!1),
687
+ onClose: () => r(!1),
688
688
  title: t.repeating_transaction_type === O.Income ? i.income_details : i.expense_details,
689
689
  children: /* @__PURE__ */ e(
690
690
  Tt,
691
691
  {
692
- onDeleted: () => o(!1),
692
+ onDeleted: () => r(!1),
693
693
  recurringTransaction: t,
694
694
  selectedRecurrence: null
695
695
  }
@@ -704,9 +704,9 @@ const Q = (n) => n.top_level_category_guid !== ee.INCOME && n.transaction_type =
704
704
  firstDay: t,
705
705
  secondDay: i,
706
706
  frequency: a,
707
- onFrequencyChange: o,
707
+ onFrequencyChange: r,
708
708
  onFirstDayChange: s,
709
- onSecondDayChange: r,
709
+ onSecondDayChange: o,
710
710
  transaction: d
711
711
  }) => {
712
712
  const { recurring: h } = x();
@@ -723,8 +723,8 @@ const Q = (n) => n.top_level_category_guid !== ee.INCOME && n.transaction_type =
723
723
  firstDay: t,
724
724
  frequency: a,
725
725
  onFirstDayChange: s,
726
- onFrequencyChange: o,
727
- onSecondDayChange: r,
726
+ onFrequencyChange: r,
727
+ onSecondDayChange: o,
728
728
  secondDay: i
729
729
  }
730
730
  )
@@ -737,11 +737,11 @@ const Q = (n) => n.top_level_category_guid !== ee.INCOME && n.transaction_type =
737
737
  label: t,
738
738
  onAddRecurringTransaction: i = () => null
739
739
  }) => {
740
- const { recurring: a } = x(), { filter: o, setFilter: s, transactions: r } = re(), { addRepeatingTransaction: d } = Y(), { user: h } = rt(), [f, C] = u.useState(!1), [m, b] = u.useState(""), [S, v] = u.useState(_.EveryMonth), [I, L] = u.useState(1), [k, B] = u.useState(15), c = u.useMemo(
741
- () => r.find((g) => g.guid === m),
742
- [m, r]
740
+ const { recurring: a } = x(), { filter: r, setFilter: s, transactions: o } = re(), { addRepeatingTransaction: d } = Y(), { user: h } = rt(), [f, C] = u.useState(!1), [m, b] = u.useState(""), [S, v] = u.useState(_.EveryMonth), [I, L] = u.useState(1), [k, B] = u.useState(15), c = u.useMemo(
741
+ () => o.find((g) => g.guid === m),
742
+ [m, o]
743
743
  ), E = () => {
744
- C(!0), s(n ? { ...o, custom: $ } : { ...o, custom: Q });
744
+ C(!0), s(n ? { ...r, custom: $ } : { ...r, custom: Q });
745
745
  }, T = async () => {
746
746
  if (!c) {
747
747
  N();
@@ -782,7 +782,7 @@ const Q = (n) => n.top_level_category_guid !== ee.INCOME && n.transaction_type =
782
782
  description: n ? a.add_income_description : a.add_expense_description,
783
783
  onSearch: (g) => {
784
784
  s({
785
- ...o,
785
+ ...r,
786
786
  custom: (w) => n ? g ? Ae(w, g) : $(w) : g ? ke(w, g) : Q(w)
787
787
  });
788
788
  },
@@ -817,16 +817,16 @@ const Q = (n) => n.top_level_category_guid !== ee.INCOME && n.transaction_type =
817
817
  }
818
818
  ), Ot = M(
819
819
  ({ zeroStateFor: n }) => {
820
- const { recurring: t } = x(), { onEvent: i } = K(), a = n === "income", o = a ? t.recurring_setting_zero_state_income_title : t.recurring_setting_zero_state_expenses_title, s = a ? t.recurring_setting_zero_state_income_description : t.recurring_setting_zero_state_expenses_description, r = a ? t.add_income : t.add_expense;
820
+ const { recurring: t } = x(), { onEvent: i } = K(), a = n === "income", r = a ? t.recurring_setting_zero_state_income_title : t.recurring_setting_zero_state_expenses_title, s = a ? t.recurring_setting_zero_state_income_description : t.recurring_setting_zero_state_expenses_description, o = a ? t.add_income : t.add_expense;
821
821
  return /* @__PURE__ */ l(p, { sx: { alignItems: "center", p: 24, pt: 48 }, children: [
822
822
  /* @__PURE__ */ e(Xe, { size: 48 }),
823
- /* @__PURE__ */ e(H, { sx: { my: 8, fontWeight: 600 }, variant: "body1", children: o }),
823
+ /* @__PURE__ */ e(H, { sx: { my: 8, fontWeight: 600 }, variant: "body1", children: r }),
824
824
  /* @__PURE__ */ e(H, { color: "text.secondary", sx: { mb: 32 }, variant: "subtitle2", children: s }),
825
825
  /* @__PURE__ */ e(
826
826
  Ie,
827
827
  {
828
828
  isIncome: a,
829
- label: r,
829
+ label: o,
830
830
  onAddRecurringTransaction: () => {
831
831
  i(
832
832
  a ? D.RECURRING_TRANSACTIONS_CLICK_ADD_INCOME : D.RECURRING_ACTIVITY_CLICK_ADD_EXPENSE
@@ -837,16 +837,16 @@ const Q = (n) => n.top_level_category_guid !== ee.INCOME && n.transaction_type =
837
837
  ] });
838
838
  }
839
839
  ), Ln = M(({ forOverview: n = !1 }) => {
840
- const { recurring: t } = x(), { detailedRepeatingTransactions: i } = Y(), { onEvent: a } = K(), o = (d) => {
840
+ const { recurring: t } = x(), { detailedRepeatingTransactions: i } = Y(), { onEvent: a } = K(), r = (d) => {
841
841
  a(D.RECURRING_TRANSACTIONS_CLICK_INCOME, {
842
842
  repeating_transaction_guid: d.guid
843
843
  });
844
844
  }, s = () => {
845
845
  a(D.RECURRING_TRANSACTIONS_CLICK_ADD_INCOME);
846
- }, r = i.filter(
846
+ }, o = i.filter(
847
847
  (d) => d.repeating_transaction_type === O.Income && (d.transactions.length > 0 || d.recurrence_type === _.EveryYear)
848
848
  );
849
- return /* @__PURE__ */ e(W, { children: r.length !== 0 ? /* @__PURE__ */ l(
849
+ return /* @__PURE__ */ e(W, { children: o.length !== 0 ? /* @__PURE__ */ l(
850
850
  p,
851
851
  {
852
852
  sx: {
@@ -855,12 +855,12 @@ const Q = (n) => n.top_level_category_guid !== ee.INCOME && n.transaction_type =
855
855
  },
856
856
  children: [
857
857
  n && /* @__PURE__ */ e(y, { bold: !0, sx: { mb: 4, mt: 12, mx: 24 }, variant: "body2", children: t.income }),
858
- /* @__PURE__ */ e(j, { sx: { flex: 1, overflow: "auto" }, children: /* @__PURE__ */ e(ne, { sx: { bgcolor: "background.paper" }, children: r.map((d, h) => /* @__PURE__ */ l(u.Fragment, { children: [
859
- /* @__PURE__ */ e(Lt, { onClick: o, repeatingTransaction: d }),
858
+ /* @__PURE__ */ e(j, { sx: { flex: 1, overflow: "auto" }, children: /* @__PURE__ */ e(ne, { sx: { bgcolor: "background.paper" }, children: o.map((d, h) => /* @__PURE__ */ l(u.Fragment, { children: [
859
+ /* @__PURE__ */ e(Lt, { onClick: r, repeatingTransaction: d }),
860
860
  /* @__PURE__ */ e(
861
861
  F,
862
862
  {
863
- variant: h < r.length - 1 ? "inset" : "fullWidth"
863
+ variant: h < o.length - 1 ? "inset" : "fullWidth"
864
864
  }
865
865
  )
866
866
  ] }, d.guid)) }) }),
@@ -7,7 +7,7 @@ import R from "@mui/material/Tabs";
7
7
  import d from "@mui/material/Divider";
8
8
  import b from "@mui/material/List";
9
9
  import T from "@mui/material/Stack";
10
- import { R as C, A as S, a as E, M as v } from "./ManageIncome-DucNK5Pr.mjs";
10
+ import { R as C, A as S, a as E, M as v } from "./ManageIncome-KXk_6u6s.mjs";
11
11
  import { u as _, h as A, f } from "./hooks-97sNJ_lf.mjs";
12
12
  import { R as y, F as N } from "./RecurringTransactionsUtil-CHWmqvW5.mjs";
13
13
  import { A as m } from "./Analytics-WeZYytR0.mjs";
@@ -45,7 +45,7 @@ import { u as nt, C as at } from "../CategorySelectorDrawer-NJsFsKP1.mjs";
45
45
  import Pe from "@mui/material/CardHeader";
46
46
  import { subDays as rt } from "date-fns/subDays";
47
47
  import st from "@mui/material/IconButton";
48
- import { M as it } from "../ManageIncome-DucNK5Pr.mjs";
48
+ import { M as it } from "../ManageIncome-KXk_6u6s.mjs";
49
49
  import { u as je } from "../useWidgetLoadTimer-B0tB-yzL.mjs";
50
50
  import { W as ct } from "../WidgetContainer-DJnp6t6c.mjs";
51
51
  import { g as lt, a as dt } from "../BudgetUtil-Bg2AQJpQ.mjs";
@@ -17,7 +17,7 @@ import { I as pe } from "../InformationTooltip-4su8bn1e.mjs";
17
17
  import { u as Oe } from "../useWidgetLoadTimer-B0tB-yzL.mjs";
18
18
  import { M as Ze } from "../MiniWidgetContainer-Bmv_WeUd.mjs";
19
19
  import { E as et } from "../EmptyState-CJUDc3kD.mjs";
20
- import { R as tt } from "../RecurringSettings-D9P4-Yr1.mjs";
20
+ import { R as tt } from "../RecurringSettings-BYJ9KATW.mjs";
21
21
  import nt from "@mui/material/Tabs";
22
22
  import ye from "@mui/material/Tab";
23
23
  import { getUnixTime as le } from "date-fns/getUnixTime";
@@ -34,7 +34,7 @@ import { addDays as _e } from "date-fns/addDays";
34
34
  import { DataGridPro as at } from "@mui/x-data-grid-pro";
35
35
  import { T as Ce } from "../TabContentContainer-B0eYJP5p.mjs";
36
36
  import W from "@mui/material/Button";
37
- import { M as rt, S as st, i as ct, b as we, c as lt } from "../ManageIncome-DucNK5Pr.mjs";
37
+ import { M as rt, S as st, i as ct, b as we, c as lt } from "../ManageIncome-KXk_6u6s.mjs";
38
38
  import { D as He } from "../Drawer-DsnW2o0v.mjs";
39
39
  import { subDays as We } from "date-fns/subDays";
40
40
  import { endOfToday as dt } from "date-fns/endOfToday";
@@ -62,11 +62,11 @@ import { g as Jn, S as eo, b as to } from "../SpendingLegend-CxvNOg3c.mjs";
62
62
  import { formatISO as no } from "date-fns/formatISO";
63
63
  import { fromUnixTime as oo } from "date-fns/fromUnixTime";
64
64
  import { subDays as ro } from "date-fns/subDays";
65
- import { c as ao, b as pt, S as io, i as so } from "../ManageIncome-DucNK5Pr.mjs";
65
+ import { c as ao, b as pt, S as io, i as so } from "../ManageIncome-KXk_6u6s.mjs";
66
66
  import { F as Tt, d as co, R as Ot } from "../RecurringTransactionsUtil-CHWmqvW5.mjs";
67
67
  import { LocalizationProvider as lo, DatePicker as po, StaticDatePicker as uo } from "@mui/x-date-pickers";
68
68
  import { AdapterDateFns as Rt } from "@mui/x-date-pickers/AdapterDateFnsV3";
69
- import { R as _o } from "../RecurringSettings-D9P4-Yr1.mjs";
69
+ import { R as _o } from "../RecurringSettings-BYJ9KATW.mjs";
70
70
  import { LocalizationProvider as mo } from "@mui/x-date-pickers/LocalizationProvider";
71
71
  import ho from "@mui/lab/Timeline";
72
72
  import go, { timelineItemClasses as yo } from "@mui/lab/TimelineItem";
@@ -8,8 +8,8 @@ import { startOfToday as Q } from "date-fns/startOfToday";
8
8
  import { subDays as ee } from "date-fns/subDays";
9
9
  import Be from "@mui/material/Alert";
10
10
  import Fe from "@mui/material/Snackbar";
11
- import { R as De } from "../RecurringSettings-D9P4-Yr1.mjs";
12
- import { M as Jn } from "../RecurringSettings-D9P4-Yr1.mjs";
11
+ import { R as De } from "../RecurringSettings-BYJ9KATW.mjs";
12
+ import { M as Jn } from "../RecurringSettings-BYJ9KATW.mjs";
13
13
  import { addMonths as Ue } from "date-fns/addMonths";
14
14
  import { subMonths as Ye } from "date-fns/subMonths";
15
15
  import { isBefore as je } from "date-fns/isBefore";
@@ -52,8 +52,8 @@ import { f as L } from "../NumberFormatting--XMeeBfr.mjs";
52
52
  import N from "@mui/material/Box";
53
53
  import { u as ve } from "../useScreenSize-mWpmnh5w.mjs";
54
54
  import { S as Le } from "../StatusBar-CPfSXe80.mjs";
55
- import { d as Ct } from "../ManageIncome-DucNK5Pr.mjs";
56
- import { c as er, M as tr, S as nr } from "../ManageIncome-DucNK5Pr.mjs";
55
+ import { d as Ct } from "../ManageIncome-KXk_6u6s.mjs";
56
+ import { c as er, M as tr, S as nr } from "../ManageIncome-KXk_6u6s.mjs";
57
57
  import { D as ie } from "../Drawer-DsnW2o0v.mjs";
58
58
  import { S as Ae } from "../SkeletonLoader-BaNboJjD.mjs";
59
59
  import { u as oe } from "../useWidgetLoadTimer-B0tB-yzL.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mx-cartographer/experiences",
3
- "version": "9.0.15-alpha.al2",
3
+ "version": "9.0.15-alpha.al3",
4
4
  "description": "Library containing experience widgets",
5
5
  "author": "MX",
6
6
  "license": "MIT",