@mx-cartographer/experiences 4.0.12 → 4.0.13
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 +4 -0
- package/dist/index.es.js +264 -264
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -749,7 +749,7 @@ const Jf = {
|
|
|
749
749
|
[b.UNCATEGORIZED]: "category",
|
|
750
750
|
UNKNOWN: "help"
|
|
751
751
|
}, Kr = 9999999999e-2;
|
|
752
|
-
var jt = /* @__PURE__ */ ((A) => (A.CAD = "CAD", A.USD = "USD", A))(jt || {}),
|
|
752
|
+
var jt = /* @__PURE__ */ ((A) => (A.CAD = "CAD", A.USD = "USD", A))(jt || {}), X = /* @__PURE__ */ ((A) => (A[A.Unknown = 0] = "Unknown", A[A.EveryWeek = 1] = "EveryWeek", A[A.EveryOtherWeek = 2] = "EveryOtherWeek", A[A.EveryMonth = 3] = "EveryMonth", A[A.EveryOtherMonth = 4] = "EveryOtherMonth", A[A.EveryQuarter = 5] = "EveryQuarter", A[A.EveryOtherQuarter = 6] = "EveryOtherQuarter", A[A.EveryYear = 7] = "EveryYear", A))(X || {});
|
|
753
753
|
const $f = [
|
|
754
754
|
{ id: 0, copy: "frequency_unknown" },
|
|
755
755
|
{ id: 1, copy: "frequency_every_week" },
|
|
@@ -1579,15 +1579,15 @@ const vc = (A, e) => {
|
|
|
1579
1579
|
return /* @__PURE__ */ l("div", { className: `mx-cmn-bar-chart ${u}`, children: [
|
|
1580
1580
|
/* @__PURE__ */ l("div", { className: "mx-cmn-chart-container", children: [
|
|
1581
1581
|
/* @__PURE__ */ t(x, {}),
|
|
1582
|
-
r.map((B,
|
|
1582
|
+
r.map((B, q) => /* @__PURE__ */ l(g.Fragment, { children: [
|
|
1583
1583
|
/* @__PURE__ */ t(
|
|
1584
1584
|
Ur,
|
|
1585
1585
|
{
|
|
1586
1586
|
ariaLabel: B.ariaLabel,
|
|
1587
1587
|
averageLineHeight: O,
|
|
1588
1588
|
bottomHeight: I,
|
|
1589
|
-
color: N(
|
|
1590
|
-
index:
|
|
1589
|
+
color: N(q),
|
|
1590
|
+
index: q,
|
|
1591
1591
|
onClick: s,
|
|
1592
1592
|
range: p,
|
|
1593
1593
|
selectedIndex: c,
|
|
@@ -1599,7 +1599,7 @@ const vc = (A, e) => {
|
|
|
1599
1599
|
}
|
|
1600
1600
|
),
|
|
1601
1601
|
/* @__PURE__ */ t(x, {})
|
|
1602
|
-
] }, `column-${
|
|
1602
|
+
] }, `column-${q}`))
|
|
1603
1603
|
] }),
|
|
1604
1604
|
/* @__PURE__ */ t(Ec, { color: n, labelAverage: i, labelMain: o })
|
|
1605
1605
|
] });
|
|
@@ -1734,8 +1734,8 @@ const Rc = ({
|
|
|
1734
1734
|
const S = So({ start: bA(c), end: NA(c) }), I = [];
|
|
1735
1735
|
for (let O = 0; O < S.length; O++) {
|
|
1736
1736
|
const N = S[O], x = wo({ start: N, end: ve(N, 6) }), B = [];
|
|
1737
|
-
for (let
|
|
1738
|
-
B.push(x[
|
|
1737
|
+
for (let q = 0; q < x.length; q++)
|
|
1738
|
+
B.push(x[q]);
|
|
1739
1739
|
I.push(B);
|
|
1740
1740
|
}
|
|
1741
1741
|
return I;
|
|
@@ -2272,11 +2272,11 @@ const Rc = ({
|
|
|
2272
2272
|
hoveredAreaData: null,
|
|
2273
2273
|
isAreaHovered: !1,
|
|
2274
2274
|
cursorPos: { x: 0, y: 0 }
|
|
2275
|
-
}), { hoveredSeriesId: y, hoveredAreaData: p, isAreaHovered: w, cursorPos: L } = f, S = w && y && p, I = !S, O = [...a, ...i], N = O[0]?.dataset.length ?? 0, x = O.flatMap((Q) => Q.dataset.map((fA) => fA.x)), B = O.flatMap((Q) => Q.dataset.map((fA) => fA.y)),
|
|
2275
|
+
}), { hoveredSeriesId: y, hoveredAreaData: p, isAreaHovered: w, cursorPos: L } = f, S = w && y && p, I = !S, O = [...a, ...i], N = O[0]?.dataset.length ?? 0, x = O.flatMap((Q) => Q.dataset.map((fA) => fA.x)), B = O.flatMap((Q) => Q.dataset.map((fA) => fA.y)), q = a[0]?.dataset?.map(
|
|
2276
2276
|
(Q, fA) => a.reduce((PA, we) => PA + we.dataset[fA]?.y || 0, 0)
|
|
2277
|
-
) ?? [0],
|
|
2277
|
+
) ?? [0], G = Math.max(...q), F = Math.max(
|
|
2278
2278
|
...i.flatMap((Q) => Q.dataset.map((fA) => fA.y))
|
|
2279
|
-
), U = Math.floor(Math.min(...B) / 100) * 100, W = Math.ceil(Math.max(
|
|
2279
|
+
), U = Math.floor(Math.min(...B) / 100) * 100, W = Math.ceil(Math.max(G, F) / 100) * 100, cA = a.map((Q, fA) => ({
|
|
2280
2280
|
id: `stacked-${fA}`,
|
|
2281
2281
|
guid: Q.category_guid,
|
|
2282
2282
|
top_level_guid: Q.top_level_category_guid,
|
|
@@ -2672,7 +2672,7 @@ const Rc = ({
|
|
|
2672
2672
|
const B = () => {
|
|
2673
2673
|
const U = NA(Ve());
|
|
2674
2674
|
return [NA(le(U, O)), U];
|
|
2675
|
-
},
|
|
2675
|
+
}, q = (U) => {
|
|
2676
2676
|
const W = [...u], cA = u[0], hA = u[1], dA = U === "previous";
|
|
2677
2677
|
if (f === n.dateRangePickerCopy.dateRangeThisMonth)
|
|
2678
2678
|
W[0] = dA ? le(cA, 1) : te(cA, 1), W[1] = NA(dA ? le(hA, 1) : te(hA, 1));
|
|
@@ -2683,7 +2683,7 @@ const Rc = ({
|
|
|
2683
2683
|
W[0] = U === "previous" ? ue(cA, pA) : ve(cA, pA), W[1] = U === "previous" ? ue(hA, pA) : ve(hA, pA);
|
|
2684
2684
|
}
|
|
2685
2685
|
C(W), A.onRangeChanged(W);
|
|
2686
|
-
},
|
|
2686
|
+
}, G = () => {
|
|
2687
2687
|
C(y), I(
|
|
2688
2688
|
f === n.dateRangePickerCopy.dateRangeThisMonth || f === n.dateRangePickerCopy.dateRangeLastMonth
|
|
2689
2689
|
), A.onRangeChanged(y);
|
|
@@ -2744,7 +2744,7 @@ const Rc = ({
|
|
|
2744
2744
|
"aria-disabled": A.shouldDisablePrevious,
|
|
2745
2745
|
"aria-label": n.dateRangePreviousAria,
|
|
2746
2746
|
color: A.shouldDisablePrevious ? "secondary" : "primary",
|
|
2747
|
-
onClick: () => A.shouldDisablePrevious ? null :
|
|
2747
|
+
onClick: () => A.shouldDisablePrevious ? null : q("previous"),
|
|
2748
2748
|
children: /* @__PURE__ */ t(M, { name: "chevron_left", size: 28 })
|
|
2749
2749
|
}
|
|
2750
2750
|
),
|
|
@@ -2773,7 +2773,7 @@ const Rc = ({
|
|
|
2773
2773
|
"aria-disabled": A.shouldDisableNext,
|
|
2774
2774
|
"aria-label": n.dateRangeNextAria,
|
|
2775
2775
|
color: A.shouldDisableNext ? "secondary" : "primary",
|
|
2776
|
-
onClick: () => A.shouldDisableNext ? null :
|
|
2776
|
+
onClick: () => A.shouldDisableNext ? null : q("next"),
|
|
2777
2777
|
children: /* @__PURE__ */ t(M, { name: "chevron_right", size: 28 })
|
|
2778
2778
|
}
|
|
2779
2779
|
)
|
|
@@ -2850,7 +2850,7 @@ const Rc = ({
|
|
|
2850
2850
|
isOpen: w,
|
|
2851
2851
|
onClose: () => L(!1),
|
|
2852
2852
|
onPrimaryAction: () => {
|
|
2853
|
-
|
|
2853
|
+
G(), L(!1);
|
|
2854
2854
|
},
|
|
2855
2855
|
primaryText: n.dateRangeEditApply,
|
|
2856
2856
|
title: n.dateRangeEditTitle,
|
|
@@ -2874,7 +2874,7 @@ const Rc = ({
|
|
|
2874
2874
|
copy: { title: n.dateRangeEditTitle },
|
|
2875
2875
|
isOpen: !0,
|
|
2876
2876
|
onClose: () => L(!1),
|
|
2877
|
-
onPrimaryAction: () =>
|
|
2877
|
+
onPrimaryAction: () => G(),
|
|
2878
2878
|
primaryText: n.dateRangeEditApply,
|
|
2879
2879
|
sx: {
|
|
2880
2880
|
"& .MuiDialogContent-root": {
|
|
@@ -3091,7 +3091,7 @@ const $e = ({
|
|
|
3091
3091
|
}) => {
|
|
3092
3092
|
const [f, { height: m, width: y }] = vi(), { onEvent: p } = J(), { isDesktop: w, isMobile: L, isTablet: S } = _A(), { displayedDateRange: I, selectedAccountGuids: O, setSelectedAccountGuids: N } = CA(), { common: x } = D(), B = () => {
|
|
3093
3093
|
c && (c(), p(k.WIDGET_BACK_CLICK));
|
|
3094
|
-
},
|
|
3094
|
+
}, q = {
|
|
3095
3095
|
accountFilterOptionsCopy: {
|
|
3096
3096
|
accountTypeAccounts: x.account_filter.account_type_accounts,
|
|
3097
3097
|
cancelButton: x.cancel_button,
|
|
@@ -3105,7 +3105,7 @@ const $e = ({
|
|
|
3105
3105
|
zeroStateTitle: x.account_filter.zero_state_title
|
|
3106
3106
|
},
|
|
3107
3107
|
title: x.account_filter.title
|
|
3108
|
-
},
|
|
3108
|
+
}, G = {
|
|
3109
3109
|
dateRangePickerCopy: {
|
|
3110
3110
|
dateRangeFrom: x.date_range_picker.from,
|
|
3111
3111
|
dateRangeTo: x.date_range_picker.to,
|
|
@@ -3149,7 +3149,7 @@ const $e = ({
|
|
|
3149
3149
|
Yr,
|
|
3150
3150
|
{
|
|
3151
3151
|
calendarActions: n,
|
|
3152
|
-
copy:
|
|
3152
|
+
copy: G,
|
|
3153
3153
|
range: [F, U],
|
|
3154
3154
|
shouldShrinkToIcon: !1,
|
|
3155
3155
|
variant: i
|
|
@@ -3159,7 +3159,7 @@ const $e = ({
|
|
|
3159
3159
|
li,
|
|
3160
3160
|
{
|
|
3161
3161
|
accounts: A,
|
|
3162
|
-
copy:
|
|
3162
|
+
copy: q,
|
|
3163
3163
|
onFilterClick: (W) => {
|
|
3164
3164
|
const cA = A.filter((hA) => W.includes(hA.guid)).map((hA) => hA.guid);
|
|
3165
3165
|
N(cA), h?.();
|
|
@@ -3222,7 +3222,7 @@ const $e = ({
|
|
|
3222
3222
|
Yr,
|
|
3223
3223
|
{
|
|
3224
3224
|
calendarActions: n,
|
|
3225
|
-
copy:
|
|
3225
|
+
copy: G,
|
|
3226
3226
|
range: [F, U],
|
|
3227
3227
|
shouldShrinkToIcon: !1,
|
|
3228
3228
|
variant: i
|
|
@@ -4086,7 +4086,7 @@ const pl = [
|
|
|
4086
4086
|
1,
|
|
4087
4087
|
2
|
|
4088
4088
|
/* MerchantLogo */
|
|
4089
|
-
],
|
|
4089
|
+
], K = {
|
|
4090
4090
|
ON_TRANSACTION_CATEGORY_CLICK: "onTransactionCategoryClick",
|
|
4091
4091
|
ON_TRANSACTION_CATEGORY_CHANGED: "onTransactionCategoryChanged",
|
|
4092
4092
|
ON_TRANSACTION_MANUAL_ADD_CLICK: "onTransactionManualAddClick",
|
|
@@ -4210,214 +4210,214 @@ const pl = [
|
|
|
4210
4210
|
UNHIDE_TRANSACTION: "Unhide Transaction"
|
|
4211
4211
|
}, na = {
|
|
4212
4212
|
// splits
|
|
4213
|
-
[
|
|
4213
|
+
[K.ON_TRANSACTION_SPLIT_CLICK]: {
|
|
4214
4214
|
action: iA.SELECT,
|
|
4215
4215
|
category: oA.TRANSACTION_DETAILS,
|
|
4216
4216
|
label: sA.SPLITS
|
|
4217
4217
|
},
|
|
4218
|
-
[
|
|
4218
|
+
[K.ON_TRANSACTION_SPLIT_CATEGORY_CLICK]: {
|
|
4219
4219
|
action: iA.ADD_CATEGORY,
|
|
4220
4220
|
category: oA.TRANSACTION_DETAILS,
|
|
4221
4221
|
label: sA.SPLITS
|
|
4222
4222
|
},
|
|
4223
|
-
[
|
|
4223
|
+
[K.ON_TRANSACTION_SPLIT_DELETE_CLICK]: {
|
|
4224
4224
|
action: iA.DELETE,
|
|
4225
4225
|
category: oA.TRANSACTION_DETAILS,
|
|
4226
4226
|
label: sA.SPLITS
|
|
4227
4227
|
},
|
|
4228
|
-
[
|
|
4228
|
+
[K.ON_TRANSACTION_SPLIT_SAVE_CLICK]: {
|
|
4229
4229
|
action: iA.SPLIT,
|
|
4230
4230
|
category: oA.TRANSACTION_DETAILS,
|
|
4231
4231
|
label: sA.SPLITS
|
|
4232
4232
|
},
|
|
4233
|
-
[
|
|
4233
|
+
[K.ON_TRANSACTION_UNSPLIT]: {
|
|
4234
4234
|
action: iA.UNSPLIT,
|
|
4235
4235
|
category: oA.TRANSACTION_DETAILS,
|
|
4236
4236
|
label: sA.SPLITS
|
|
4237
4237
|
},
|
|
4238
4238
|
// category
|
|
4239
|
-
[
|
|
4239
|
+
[K.ON_TRANSACTION_CATEGORY_CLICK]: {
|
|
4240
4240
|
action: iA.SELECT,
|
|
4241
4241
|
category: oA.TRANSACTIONS_LIST,
|
|
4242
4242
|
label: sA.CATEGORY
|
|
4243
4243
|
},
|
|
4244
|
-
[
|
|
4244
|
+
[K.ON_TRANSACTION_CATEGORY_CHANGED]: {
|
|
4245
4245
|
action: iA.CHANGE_CATEGORY,
|
|
4246
4246
|
category: oA.TRANSACTION_DETAILS,
|
|
4247
4247
|
label: sA.CATEGORY
|
|
4248
4248
|
},
|
|
4249
4249
|
// date
|
|
4250
|
-
[
|
|
4250
|
+
[K.ON_TRANSACTION_DATE_CHANGED]: {
|
|
4251
4251
|
action: iA.SAVE,
|
|
4252
4252
|
category: oA.TRANSACTION_DETAILS,
|
|
4253
4253
|
label: sA.DATE
|
|
4254
4254
|
},
|
|
4255
|
-
[
|
|
4255
|
+
[K.ON_TRANSACTION_DATE_CLICK]: {
|
|
4256
4256
|
action: iA.SELECT,
|
|
4257
4257
|
category: oA.TRANSACTION_DETAILS,
|
|
4258
4258
|
label: sA.DATE
|
|
4259
4259
|
},
|
|
4260
4260
|
// merchant logo
|
|
4261
|
-
[
|
|
4261
|
+
[K.ON_TRANSACTION_DELETE_LOGO_CANCEL]: {
|
|
4262
4262
|
action: iA.CLOSE,
|
|
4263
4263
|
category: oA.TRANSACTION_DETAILS,
|
|
4264
4264
|
label: sA.DELETE_MERCHANT_LOGO
|
|
4265
4265
|
},
|
|
4266
|
-
[
|
|
4266
|
+
[K.ON_TRANSACTION_DELETE_LOGO_CLICK]: {
|
|
4267
4267
|
action: iA.SELECT,
|
|
4268
4268
|
category: oA.TRANSACTION_DETAILS,
|
|
4269
4269
|
label: sA.DELETE_MERCHANT_LOGO
|
|
4270
4270
|
},
|
|
4271
|
-
[
|
|
4271
|
+
[K.ON_TRANSACTION_DELETE_LOGO_DELETED]: {
|
|
4272
4272
|
action: iA.DELETE,
|
|
4273
4273
|
category: oA.TRANSACTION_DETAILS,
|
|
4274
4274
|
label: sA.DELETE_MERCHANT_LOGO
|
|
4275
4275
|
},
|
|
4276
4276
|
// description
|
|
4277
|
-
[
|
|
4277
|
+
[K.ON_TRANSACTION_DESCRIPTION_EDIT_CLICK]: {
|
|
4278
4278
|
action: iA.EDIT,
|
|
4279
4279
|
category: oA.TRANSACTION_DETAILS,
|
|
4280
4280
|
label: sA.DESCRIPTION
|
|
4281
4281
|
},
|
|
4282
|
-
[
|
|
4282
|
+
[K.ON_TRANSACTION_DESCRIPTION_SAVE_CLICK]: {
|
|
4283
4283
|
action: iA.SAVE,
|
|
4284
4284
|
category: oA.TRANSACTION_DETAILS,
|
|
4285
4285
|
label: sA.DESCRIPTION
|
|
4286
4286
|
},
|
|
4287
4287
|
// hide transactions
|
|
4288
|
-
[
|
|
4288
|
+
[K.ON_TRANSACTION_HIDDEN]: {
|
|
4289
4289
|
action: iA.SAVE,
|
|
4290
4290
|
category: oA.TRANSACTION_DETAILS,
|
|
4291
4291
|
label: sA.HIDE_TRANSACTION
|
|
4292
4292
|
},
|
|
4293
|
-
[
|
|
4293
|
+
[K.ON_TRANSACTION_HIDE_CLICK]: {
|
|
4294
4294
|
action: iA.SELECT,
|
|
4295
4295
|
category: oA.TRANSACTION_DETAILS,
|
|
4296
4296
|
label: sA.HIDE_TRANSACTION
|
|
4297
4297
|
},
|
|
4298
|
-
[
|
|
4298
|
+
[K.ON_TRANSACTION_HIDE_CANCEL_CLICK]: {
|
|
4299
4299
|
action: iA.CLOSE,
|
|
4300
4300
|
category: oA.TRANSACTION_DETAILS,
|
|
4301
4301
|
label: sA.HIDE_TRANSACTION
|
|
4302
4302
|
},
|
|
4303
4303
|
// transaction list
|
|
4304
|
-
[
|
|
4304
|
+
[K.ON_TRANSACTION_LIST_ITEM_CLICK]: {
|
|
4305
4305
|
action: iA.SELECT,
|
|
4306
4306
|
category: oA.TRANSACTIONS_LIST,
|
|
4307
4307
|
label: sA.TRANSACTION
|
|
4308
4308
|
},
|
|
4309
4309
|
// memo
|
|
4310
|
-
[
|
|
4310
|
+
[K.ON_TRANSACTION_MEMO_CHANGED]: {
|
|
4311
4311
|
action: iA.SAVE,
|
|
4312
4312
|
category: oA.TRANSACTION_DETAILS,
|
|
4313
4313
|
label: sA.MEMO
|
|
4314
4314
|
},
|
|
4315
|
-
[
|
|
4315
|
+
[K.ON_TRANSACTION_MEMO_CLICK]: {
|
|
4316
4316
|
action: iA.SELECT,
|
|
4317
4317
|
category: oA.TRANSACTION_DETAILS,
|
|
4318
4318
|
label: sA.MEMO
|
|
4319
4319
|
},
|
|
4320
4320
|
// tags
|
|
4321
|
-
[
|
|
4321
|
+
[K.ON_TRANSACTION_TAGS_CHANGED]: {
|
|
4322
4322
|
action: iA.SAVE,
|
|
4323
4323
|
category: oA.TRANSACTION_DETAILS,
|
|
4324
4324
|
label: sA.TAGS
|
|
4325
4325
|
},
|
|
4326
|
-
[
|
|
4326
|
+
[K.ON_TRANSACTION_TAGS_CLICK]: {
|
|
4327
4327
|
action: iA.SELECT,
|
|
4328
4328
|
category: oA.TRANSACTION_DETAILS,
|
|
4329
4329
|
label: sA.TAGS
|
|
4330
4330
|
},
|
|
4331
|
-
[
|
|
4331
|
+
[K.ON_TRANSACTION_TAGS_TAG_ADD_CANCEL_CLICK]: {
|
|
4332
4332
|
action: iA.CLOSE,
|
|
4333
4333
|
category: oA.TRANSACTION_DETAILS,
|
|
4334
4334
|
label: sA.TAGS
|
|
4335
4335
|
},
|
|
4336
|
-
[
|
|
4336
|
+
[K.ON_TRANSACTION_TAGS_TAG_ADD_CLICK]: {
|
|
4337
4337
|
action: iA.ADD,
|
|
4338
4338
|
category: oA.TRANSACTION_DETAILS,
|
|
4339
4339
|
label: sA.TAG_ADD
|
|
4340
4340
|
},
|
|
4341
|
-
[
|
|
4341
|
+
[K.ON_TRANSACTION_TAGS_TAG_ADDED]: {
|
|
4342
4342
|
action: iA.SAVE,
|
|
4343
4343
|
category: oA.TRANSACTION_DETAILS,
|
|
4344
4344
|
label: sA.TAG_ADD
|
|
4345
4345
|
},
|
|
4346
|
-
[
|
|
4346
|
+
[K.ON_TRANSACTION_TAGS_TAG_DELETE_CLICK]: {
|
|
4347
4347
|
action: iA.SELECT,
|
|
4348
4348
|
category: oA.TRANSACTION_DETAILS,
|
|
4349
4349
|
label: sA.TAG_DELETE
|
|
4350
4350
|
},
|
|
4351
|
-
[
|
|
4351
|
+
[K.ON_TRANSACTION_TAGS_TAG_DELETE_CANCEL_CLICK]: {
|
|
4352
4352
|
action: iA.CLOSE,
|
|
4353
4353
|
category: oA.TRANSACTION_DETAILS,
|
|
4354
4354
|
label: sA.TAG_DELETE
|
|
4355
4355
|
},
|
|
4356
|
-
[
|
|
4356
|
+
[K.ON_TRANSACTION_TAGS_TAG_DELETED]: {
|
|
4357
4357
|
action: iA.SAVE,
|
|
4358
4358
|
category: oA.TRANSACTION_DETAILS,
|
|
4359
4359
|
label: sA.TAG_DELETE
|
|
4360
4360
|
},
|
|
4361
|
-
[
|
|
4361
|
+
[K.ON_TRANSACTION_TAGS_TAG_EDIT_CLICK]: {
|
|
4362
4362
|
action: iA.EDIT,
|
|
4363
4363
|
category: oA.TRANSACTION_DETAILS,
|
|
4364
4364
|
label: sA.TAG_EDIT
|
|
4365
4365
|
},
|
|
4366
|
-
[
|
|
4366
|
+
[K.ON_TRANSACTION_TAGS_TAG_EDIT_SAVED]: {
|
|
4367
4367
|
action: iA.SAVE,
|
|
4368
4368
|
category: oA.TRANSACTION_DETAILS,
|
|
4369
4369
|
label: sA.TAG_EDIT
|
|
4370
4370
|
},
|
|
4371
4371
|
// flag
|
|
4372
|
-
[
|
|
4372
|
+
[K.ON_TRANSACTION_TOGGLE_FLAG_CLICK]: {
|
|
4373
4373
|
action: iA.SELECT,
|
|
4374
4374
|
category: oA.TRANSACTION_DETAILS,
|
|
4375
4375
|
label: sA.FLAG
|
|
4376
4376
|
},
|
|
4377
4377
|
// hide
|
|
4378
|
-
[
|
|
4378
|
+
[K.ON_TRANSACTION_UNHIDDEN]: {
|
|
4379
4379
|
action: iA.SAVE,
|
|
4380
4380
|
category: oA.TRANSACTION_DETAILS,
|
|
4381
4381
|
label: sA.UNHIDE_TRANSACTION
|
|
4382
4382
|
},
|
|
4383
|
-
[
|
|
4383
|
+
[K.ON_TRANSACTION_UNHIDE_CLICK]: {
|
|
4384
4384
|
action: iA.SELECT,
|
|
4385
4385
|
category: oA.TRANSACTION_DETAILS,
|
|
4386
4386
|
label: sA.UNHIDE_TRANSACTION
|
|
4387
4387
|
},
|
|
4388
|
-
[
|
|
4388
|
+
[K.ON_TRANSACTION_UNHIDE_CANCEL_CLICK]: {
|
|
4389
4389
|
action: iA.CLOSE,
|
|
4390
4390
|
category: oA.TRANSACTION_DETAILS,
|
|
4391
4391
|
label: sA.UNHIDE_TRANSACTION
|
|
4392
4392
|
},
|
|
4393
4393
|
// export CSV
|
|
4394
|
-
[
|
|
4394
|
+
[K.ON_TRANSACTION_EXPORT_CSV_CLICK]: {
|
|
4395
4395
|
action: iA.SELECT,
|
|
4396
4396
|
category: oA.TRANSACTIONS_WIDGET,
|
|
4397
4397
|
label: sA.EXPORT_CSV
|
|
4398
4398
|
},
|
|
4399
4399
|
// add transaction
|
|
4400
|
-
[
|
|
4400
|
+
[K.ON_TRANSACTION_MANUAL_ADD_CLICK]: {
|
|
4401
4401
|
action: iA.SELECT,
|
|
4402
4402
|
category: oA.TRANSACTIONS_WIDGET,
|
|
4403
4403
|
label: sA.ADD_TRANSACTION
|
|
4404
4404
|
},
|
|
4405
|
-
[
|
|
4405
|
+
[K.ON_TRANSACTION_MANUAL_ADD_ADDED]: {
|
|
4406
4406
|
action: iA.ADD,
|
|
4407
4407
|
category: oA.TRANSACTIONS_WIDGET,
|
|
4408
4408
|
label: sA.ADD_TRANSACTION
|
|
4409
4409
|
},
|
|
4410
|
-
[
|
|
4410
|
+
[K.ON_TRANSACTION_DELETE_CLICK]: {
|
|
4411
4411
|
action: iA.SELECT,
|
|
4412
4412
|
category: oA.TRANSACTIONS_WIDGET,
|
|
4413
4413
|
label: sA.DELETE_TRANSACTION
|
|
4414
4414
|
},
|
|
4415
|
-
[
|
|
4415
|
+
[K.ON_TRANSACTION_DELETE_CANCEL]: {
|
|
4416
4416
|
action: iA.CLOSE,
|
|
4417
4417
|
category: oA.TRANSACTIONS_WIDGET,
|
|
4418
4418
|
label: sA.DELETE_TRANSACTION
|
|
4419
4419
|
},
|
|
4420
|
-
[
|
|
4420
|
+
[K.ON_TRANSACTION_DELETE_DELETED]: {
|
|
4421
4421
|
action: iA.DELETE,
|
|
4422
4422
|
category: oA.TRANSACTIONS_WIDGET,
|
|
4423
4423
|
label: sA.DELETE_TRANSACTION
|
|
@@ -4752,7 +4752,7 @@ const Ae = () => {
|
|
|
4752
4752
|
return /* @__PURE__ */ l(
|
|
4753
4753
|
ol,
|
|
4754
4754
|
{
|
|
4755
|
-
clickEventName:
|
|
4755
|
+
clickEventName: K.ON_TRANSACTION_LIST_ITEM_CLICK,
|
|
4756
4756
|
onClick: e ? () => e(A.guid) : void 0,
|
|
4757
4757
|
children: [
|
|
4758
4758
|
/* @__PURE__ */ t(DA, { children: A.parent_guid ? /* @__PURE__ */ t(g.Fragment, {}) : /* @__PURE__ */ t(
|
|
@@ -5602,7 +5602,7 @@ const Ti = ({ transaction: A }) => {
|
|
|
5602
5602
|
tA,
|
|
5603
5603
|
{
|
|
5604
5604
|
onClick: () => {
|
|
5605
|
-
a(
|
|
5605
|
+
a(K.ON_TRANSACTION_CATEGORY_CLICK), h(!0);
|
|
5606
5606
|
},
|
|
5607
5607
|
children: [
|
|
5608
5608
|
/* @__PURE__ */ t(DA, { children: /* @__PURE__ */ t(Ee, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(
|
|
@@ -5674,7 +5674,7 @@ const Ti = ({ transaction: A }) => {
|
|
|
5674
5674
|
tA,
|
|
5675
5675
|
{
|
|
5676
5676
|
onClick: () => {
|
|
5677
|
-
n(
|
|
5677
|
+
n(K.ON_TRANSACTION_DATE_CLICK), c(!0);
|
|
5678
5678
|
},
|
|
5679
5679
|
children: [
|
|
5680
5680
|
/* @__PURE__ */ t(DA, { children: /* @__PURE__ */ t(Ee, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(M, { name: "calendar_month", sx: { color: "text.primary" }, weight: XA.Dark }) }) }),
|
|
@@ -5718,14 +5718,14 @@ const Ti = ({ transaction: A }) => {
|
|
|
5718
5718
|
] });
|
|
5719
5719
|
}, vd = ({ transaction: A }) => {
|
|
5720
5720
|
const { onEvent: e } = J(), { removeTransaction: n } = uA(), { setShouldDisableDrawerScroll: r } = Ae(), { common: a, transactions: i } = D(), [o, s] = g.useState(!1), c = async () => {
|
|
5721
|
-
await n(A.guid), e(
|
|
5721
|
+
await n(A.guid), e(K.ON_TRANSACTION_DELETE_DELETED);
|
|
5722
5722
|
};
|
|
5723
5723
|
return /* @__PURE__ */ l(P, { className: "mx-txn-delete", children: [
|
|
5724
5724
|
A && /* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(
|
|
5725
5725
|
tA,
|
|
5726
5726
|
{
|
|
5727
5727
|
onClick: () => {
|
|
5728
|
-
e(
|
|
5728
|
+
e(K.ON_TRANSACTION_DELETE_CLICK), r(!0), s(!0);
|
|
5729
5729
|
},
|
|
5730
5730
|
children: [
|
|
5731
5731
|
/* @__PURE__ */ t(DA, { children: /* @__PURE__ */ t(Ee, { variant: "rounded", children: /* @__PURE__ */ t(It, { color: "secondary", fontSize: "small" }) }) }),
|
|
@@ -5749,7 +5749,7 @@ const Ti = ({ transaction: A }) => {
|
|
|
5749
5749
|
r(!1), s(!1);
|
|
5750
5750
|
},
|
|
5751
5751
|
onPrimaryAction: c,
|
|
5752
|
-
onSecondaryAction: () => e(
|
|
5752
|
+
onSecondaryAction: () => e(K.ON_TRANSACTION_DELETE_CANCEL),
|
|
5753
5753
|
primaryText: a.delete_button,
|
|
5754
5754
|
secondaryText: a.cancel_button,
|
|
5755
5755
|
children: /* @__PURE__ */ t(v, { sx: { whiteSpace: "normal" }, variant: "Paragraph", children: i.manual_transaction_delete_description })
|
|
@@ -5767,7 +5767,7 @@ const Ti = ({ transaction: A }) => {
|
|
|
5767
5767
|
tA,
|
|
5768
5768
|
{
|
|
5769
5769
|
onClick: () => {
|
|
5770
|
-
e(
|
|
5770
|
+
e(K.ON_TRANSACTION_DELETE_LOGO_CLICK), s(!0);
|
|
5771
5771
|
},
|
|
5772
5772
|
children: [
|
|
5773
5773
|
/* @__PURE__ */ t(DA, { children: /* @__PURE__ */ t(Ee, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(M, { name: "delete", sx: { color: "text.primary" }, weight: XA.Dark }) }) }),
|
|
@@ -5785,7 +5785,7 @@ const Ti = ({ transaction: A }) => {
|
|
|
5785
5785
|
r(!1), s(!1);
|
|
5786
5786
|
},
|
|
5787
5787
|
onPrimaryAction: c,
|
|
5788
|
-
onSecondaryAction: () => e(
|
|
5788
|
+
onSecondaryAction: () => e(K.ON_TRANSACTION_DELETE_LOGO_CANCEL),
|
|
5789
5789
|
primaryText: a.delete_button,
|
|
5790
5790
|
secondaryText: a.cancel_button,
|
|
5791
5791
|
title: i.merchant_logo_modal_title,
|
|
@@ -5799,7 +5799,7 @@ const Ti = ({ transaction: A }) => {
|
|
|
5799
5799
|
}, bd = T(Ed), wd = ({ transaction: A }) => {
|
|
5800
5800
|
const { onEvent: e } = J(), { updateTransaction: n } = uA(), { setShouldDisableDrawerScroll: r } = Ae(), { common: a, transactions: i } = D(), [o, s] = g.useState(!1), c = A.is_hidden, h = async () => {
|
|
5801
5801
|
await n({ ...A, is_hidden: !A.is_hidden }), e(
|
|
5802
|
-
c ?
|
|
5802
|
+
c ? K.ON_TRANSACTION_UNHIDDEN : K.ON_TRANSACTION_HIDDEN
|
|
5803
5803
|
);
|
|
5804
5804
|
};
|
|
5805
5805
|
return /* @__PURE__ */ l(P, { className: "mx-txn-hide-transaction", children: [
|
|
@@ -5809,7 +5809,7 @@ const Ti = ({ transaction: A }) => {
|
|
|
5809
5809
|
"aria-checked": c,
|
|
5810
5810
|
onClick: () => {
|
|
5811
5811
|
e(
|
|
5812
|
-
c ?
|
|
5812
|
+
c ? K.ON_TRANSACTION_UNHIDE_CLICK : K.ON_TRANSACTION_HIDE_CLICK
|
|
5813
5813
|
), e(
|
|
5814
5814
|
c ? "transaction_details_click_unhide_transaction" : "transaction_details_click_hide_transaction",
|
|
5815
5815
|
{
|
|
@@ -5858,7 +5858,7 @@ const Ti = ({ transaction: A }) => {
|
|
|
5858
5858
|
},
|
|
5859
5859
|
onPrimaryAction: h,
|
|
5860
5860
|
onSecondaryAction: () => e(
|
|
5861
|
-
c ?
|
|
5861
|
+
c ? K.ON_TRANSACTION_UNHIDE_CANCEL_CLICK : K.ON_TRANSACTION_HIDE_CANCEL_CLICK
|
|
5862
5862
|
),
|
|
5863
5863
|
primaryText: c ? a.unhide_button : a.hide_button,
|
|
5864
5864
|
secondaryText: a.cancel_button,
|
|
@@ -5902,7 +5902,7 @@ const Ti = ({ transaction: A }) => {
|
|
|
5902
5902
|
tA,
|
|
5903
5903
|
{
|
|
5904
5904
|
onClick: () => {
|
|
5905
|
-
e(
|
|
5905
|
+
e(K.ON_TRANSACTION_MEMO_CLICK), s(!0);
|
|
5906
5906
|
},
|
|
5907
5907
|
children: [
|
|
5908
5908
|
/* @__PURE__ */ t(DA, { children: /* @__PURE__ */ t(Ee, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(M, { name: "article", sx: { color: "text.primary" }, weight: XA.Dark }) }) }),
|
|
@@ -6018,7 +6018,7 @@ const Ti = ({ transaction: A }) => {
|
|
|
6018
6018
|
"aria-label": s.split_transaction_delete_split_btn,
|
|
6019
6019
|
color: "secondary",
|
|
6020
6020
|
onClick: () => {
|
|
6021
|
-
o(
|
|
6021
|
+
o(K.ON_TRANSACTION_SPLIT_DELETE_CLICK), e(A);
|
|
6022
6022
|
},
|
|
6023
6023
|
sx: { w: 44, h: 44 },
|
|
6024
6024
|
children: /* @__PURE__ */ t(It, {})
|
|
@@ -6101,7 +6101,7 @@ const Ti = ({ transaction: A }) => {
|
|
|
6101
6101
|
{
|
|
6102
6102
|
"aria-label": s.split_transaction_add_split_btn,
|
|
6103
6103
|
onClick: () => {
|
|
6104
|
-
c(
|
|
6104
|
+
c(K.ON_TRANSACTION_SPLIT_ADD_CLICK), A();
|
|
6105
6105
|
},
|
|
6106
6106
|
children: s.split_transaction_add_split_btn
|
|
6107
6107
|
}
|
|
@@ -6124,26 +6124,26 @@ const Ti = ({ transaction: A }) => {
|
|
|
6124
6124
|
parent_guid: A.guid,
|
|
6125
6125
|
top_level_category_guid: void 0
|
|
6126
6126
|
}, [d, u] = g.useState(!1), [C, f] = g.useState(!1), [m, y] = g.useState([]), p = () => {
|
|
6127
|
-
const
|
|
6128
|
-
|
|
6129
|
-
}, w = (
|
|
6130
|
-
if (
|
|
6131
|
-
const
|
|
6132
|
-
F.splice(
|
|
6127
|
+
const q = [...m];
|
|
6128
|
+
q.push({ ...h }), q[0].amount -= 1, y(q);
|
|
6129
|
+
}, w = (q) => {
|
|
6130
|
+
if (q > 0) {
|
|
6131
|
+
const G = m[q], F = [...m];
|
|
6132
|
+
F.splice(q, 1), F[0].amount += G.amount, y(F);
|
|
6133
6133
|
}
|
|
6134
|
-
}, L = (
|
|
6134
|
+
}, L = (q, G) => {
|
|
6135
6135
|
const F = [...m];
|
|
6136
|
-
F[
|
|
6136
|
+
F[q].amount = G, F[0].amount = A.amount - F.reduce(
|
|
6137
6137
|
(U, W, cA) => U + (cA !== 0 ? W.amount : 0),
|
|
6138
6138
|
0
|
|
6139
6139
|
), y(F);
|
|
6140
|
-
}, S = (
|
|
6141
|
-
const F = [...m], U = s.find((W) => W.guid ===
|
|
6142
|
-
U && (F[
|
|
6143
|
-
...F[
|
|
6144
|
-
category_guid:
|
|
6140
|
+
}, S = (q, G) => {
|
|
6141
|
+
const F = [...m], U = s.find((W) => W.guid === G);
|
|
6142
|
+
U && (F[q] = {
|
|
6143
|
+
...F[q],
|
|
6144
|
+
category_guid: G,
|
|
6145
6145
|
category: U.name,
|
|
6146
|
-
top_level_category_guid: U.parent_guid ||
|
|
6146
|
+
top_level_category_guid: U.parent_guid || G
|
|
6147
6147
|
}, y(F));
|
|
6148
6148
|
}, I = () => {
|
|
6149
6149
|
if (A.parent_guid || A.has_been_split) {
|
|
@@ -6154,18 +6154,18 @@ const Ti = ({ transaction: A }) => {
|
|
|
6154
6154
|
transaction_guid: A.guid
|
|
6155
6155
|
}), u(!0);
|
|
6156
6156
|
}, O = async () => {
|
|
6157
|
-
e(
|
|
6157
|
+
e(K.ON_TRANSACTION_SPLIT_SAVE_CLICK), await n({ ...A, has_been_split: !0 }, m), u(!1);
|
|
6158
6158
|
}, N = async () => {
|
|
6159
|
-
e(
|
|
6159
|
+
e(K.ON_TRANSACTION_SPLIT_CANCEL_CLICK), y([{ ...c }, { ...h }]), u(!1);
|
|
6160
6160
|
}, x = async () => {
|
|
6161
6161
|
e(k.TRANSACTION_DETAILS_CLICK_UNSPLIT, {
|
|
6162
6162
|
transaction_guid: A.guid
|
|
6163
6163
|
});
|
|
6164
|
-
const
|
|
6165
|
-
await r(
|
|
6164
|
+
const q = A.parent_guid ?? A.guid;
|
|
6165
|
+
await r(q);
|
|
6166
6166
|
}, B = g.useMemo(() => {
|
|
6167
|
-
const
|
|
6168
|
-
return
|
|
6167
|
+
const q = m.some((F) => !F.category_guid), G = m.some((F) => F.amount <= 0);
|
|
6168
|
+
return q || G;
|
|
6169
6169
|
}, [m]);
|
|
6170
6170
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
|
6171
6171
|
A && /* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(tA, { onClick: I, children: [
|
|
@@ -6216,7 +6216,7 @@ const Ti = ({ transaction: A }) => {
|
|
|
6216
6216
|
},
|
|
6217
6217
|
onPrimaryAction: x,
|
|
6218
6218
|
onSecondaryAction: () => {
|
|
6219
|
-
e(
|
|
6219
|
+
e(K.ON_TRANSACTION_UNSPLIT_CANCEL);
|
|
6220
6220
|
},
|
|
6221
6221
|
primaryText: a.delete_button,
|
|
6222
6222
|
secondaryText: a.cancel_button,
|
|
@@ -6234,10 +6234,10 @@ const Ti = ({ transaction: A }) => {
|
|
|
6234
6234
|
}, [a]);
|
|
6235
6235
|
const u = () => {
|
|
6236
6236
|
e(
|
|
6237
|
-
a ?
|
|
6237
|
+
a ? K.ON_TRANSACTION_TAGS_TAG_ADD_CANCEL_CLICK : K.ON_TRANSACTION_TAGS_TAG_ADD_CLICK
|
|
6238
6238
|
), a || s(""), i(!a);
|
|
6239
6239
|
}, C = async () => {
|
|
6240
|
-
e(
|
|
6240
|
+
e(K.ON_TRANSACTION_TAGS_TAG_ADDED), await n(o), i(!1);
|
|
6241
6241
|
};
|
|
6242
6242
|
return g.useEffect(() => {
|
|
6243
6243
|
h(o.length > 40 ? r.tags_error_name_must_be_40_chars : "");
|
|
@@ -6316,17 +6316,17 @@ const Ti = ({ transaction: A }) => {
|
|
|
6316
6316
|
) });
|
|
6317
6317
|
}, Rd = T(_d), Hd = ({ onTagChecked: A, selectedTags: e, tag: n }) => {
|
|
6318
6318
|
const { onEvent: r } = J(), { removeTag: a, updateTag: i } = uA(), { common: o, transactions: s } = D(), [c, h] = g.useState(!1), [d, u] = g.useState(!1), [C, f] = g.useState(""), [m, y] = g.useState(""), p = async () => {
|
|
6319
|
-
r(
|
|
6319
|
+
r(K.ON_TRANSACTION_TAGS_TAG_EDIT_SAVED), n && await i({ ...n, name: C }), h(!1);
|
|
6320
6320
|
}, w = async () => {
|
|
6321
|
-
r(
|
|
6321
|
+
r(K.ON_TRANSACTION_TAGS_TAG_DELETED), await a(n.guid), u(!1);
|
|
6322
6322
|
};
|
|
6323
6323
|
g.useEffect(() => {
|
|
6324
6324
|
y(C.length > 40 ? s.tags_error_name_must_be_40_chars : "");
|
|
6325
6325
|
}, [C]);
|
|
6326
6326
|
const L = () => {
|
|
6327
|
-
r(
|
|
6327
|
+
r(K.ON_TRANSACTION_TAGS_TAG_EDIT_CLICK), f(n.name), h(!0);
|
|
6328
6328
|
}, S = () => {
|
|
6329
|
-
r(
|
|
6329
|
+
r(K.ON_TRANSACTION_TAGS_TAG_DELETE_CLICK), u(!0);
|
|
6330
6330
|
};
|
|
6331
6331
|
return /* @__PURE__ */ l(
|
|
6332
6332
|
j,
|
|
@@ -6399,7 +6399,7 @@ const Ti = ({ transaction: A }) => {
|
|
|
6399
6399
|
isOpen: d,
|
|
6400
6400
|
onClose: () => u(!1),
|
|
6401
6401
|
onPrimaryAction: w,
|
|
6402
|
-
onSecondaryAction: () => r(
|
|
6402
|
+
onSecondaryAction: () => r(K.ON_TRANSACTION_TAGS_TAG_DELETE_CANCEL_CLICK),
|
|
6403
6403
|
primaryText: o.delete_button,
|
|
6404
6404
|
secondaryText: o.cancel_button,
|
|
6405
6405
|
children: /* @__PURE__ */ t(v, { truncate: !1, children: s.tags_deleting_this_tag_will_remove_it })
|
|
@@ -6451,7 +6451,7 @@ const Ti = ({ transaction: A }) => {
|
|
|
6451
6451
|
tA,
|
|
6452
6452
|
{
|
|
6453
6453
|
onClick: () => {
|
|
6454
|
-
e(
|
|
6454
|
+
e(K.ON_TRANSACTION_TAGS_CLICK), h(!0);
|
|
6455
6455
|
},
|
|
6456
6456
|
children: [
|
|
6457
6457
|
/* @__PURE__ */ t(DA, { children: /* @__PURE__ */ t(Ee, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(M, { name: "local_offer", sx: { color: "text.primary" }, weight: XA.Dark }) }) }),
|
|
@@ -6525,7 +6525,7 @@ const Ti = ({ transaction: A }) => {
|
|
|
6525
6525
|
{
|
|
6526
6526
|
"aria-label": r.description_edit_transaction_name,
|
|
6527
6527
|
onClick: () => {
|
|
6528
|
-
o(!0), a(
|
|
6528
|
+
o(!0), a(K.ON_TRANSACTION_DESCRIPTION_EDIT_CLICK);
|
|
6529
6529
|
},
|
|
6530
6530
|
sx: { color: "action.active" },
|
|
6531
6531
|
children: /* @__PURE__ */ t(M, { name: "create", size: 22 })
|
|
@@ -6805,8 +6805,8 @@ const Ti = ({ transaction: A }) => {
|
|
|
6805
6805
|
updateTransaction: S
|
|
6806
6806
|
} = uA(), { common: I, transactions: O } = D(), { userProfile: N } = sn(), { onEvent: x } = J(), {
|
|
6807
6807
|
displayedDateRange: B,
|
|
6808
|
-
isInitialized:
|
|
6809
|
-
selectedAccountGuids:
|
|
6808
|
+
isInitialized: q,
|
|
6809
|
+
selectedAccountGuids: G,
|
|
6810
6810
|
selectedAccounts: F,
|
|
6811
6811
|
setDisplayedDate: U,
|
|
6812
6812
|
setSelectedAccounts: W
|
|
@@ -6823,9 +6823,9 @@ const Ti = ({ transaction: A }) => {
|
|
|
6823
6823
|
YA && (p({
|
|
6824
6824
|
...m,
|
|
6825
6825
|
dateRange: { start: B.start, end: B.end },
|
|
6826
|
-
accounts:
|
|
6826
|
+
accounts: G
|
|
6827
6827
|
}), y(B.start));
|
|
6828
|
-
}, [B,
|
|
6828
|
+
}, [B, G]), g.useEffect(() => {
|
|
6829
6829
|
u(n);
|
|
6830
6830
|
}, [n]);
|
|
6831
6831
|
const ut = g.useMemo(
|
|
@@ -6856,7 +6856,7 @@ const Ti = ({ transaction: A }) => {
|
|
|
6856
6856
|
}, bn = () => {
|
|
6857
6857
|
vA(!1), i();
|
|
6858
6858
|
};
|
|
6859
|
-
return !
|
|
6859
|
+
return !q || !YA ? /* @__PURE__ */ t(UA, {}) : /* @__PURE__ */ l(
|
|
6860
6860
|
he,
|
|
6861
6861
|
{
|
|
6862
6862
|
accountOptions: a,
|
|
@@ -7002,19 +7002,19 @@ const Ti = ({ transaction: A }) => {
|
|
|
7002
7002
|
start_date: mA(A.expectedDate)
|
|
7003
7003
|
}, r = `${bt(A.expectedDate)}`, a = `${nt(A.expectedDate)}`, i = `${Lt(A.expectedDate)}`;
|
|
7004
7004
|
switch (A.recurrenceType) {
|
|
7005
|
-
case
|
|
7005
|
+
case X.EveryWeek:
|
|
7006
7006
|
n.repeat_interval = "1", n.repeat_weekday = i;
|
|
7007
7007
|
break;
|
|
7008
|
-
case
|
|
7008
|
+
case X.EveryOtherWeek:
|
|
7009
7009
|
n.repeat_interval = "2", n.repeat_weekday = i;
|
|
7010
7010
|
break;
|
|
7011
|
-
case
|
|
7011
|
+
case X.EveryMonth:
|
|
7012
7012
|
n.repeat_day = r;
|
|
7013
7013
|
break;
|
|
7014
|
-
case
|
|
7014
|
+
case X.EveryQuarter:
|
|
7015
7015
|
n.repeat_day = r, n.repeat_interval = "3";
|
|
7016
7016
|
break;
|
|
7017
|
-
case
|
|
7017
|
+
case X.EveryYear:
|
|
7018
7018
|
n.repeat_day = r, n.repeat_month = a;
|
|
7019
7019
|
break;
|
|
7020
7020
|
}
|
|
@@ -7025,13 +7025,13 @@ const Ti = ({ transaction: A }) => {
|
|
|
7025
7025
|
recurrence_type: A.recurrenceType
|
|
7026
7026
|
}), $d = ({ activity: A }) => {
|
|
7027
7027
|
const { recurring: e } = D(), { cashflowSequences: n, scheduledPayments: r, updateCashflowSequence: a, updateScheduledPayment: i } = zA(), { onEvent: o } = J(), [s, c] = g.useState(!1), h = A.activityType === IA.Income, d = [
|
|
7028
|
-
{ id:
|
|
7029
|
-
{ id:
|
|
7030
|
-
{ id:
|
|
7031
|
-
{ id:
|
|
7032
|
-
{ id:
|
|
7033
|
-
{ id:
|
|
7034
|
-
{ id:
|
|
7028
|
+
{ id: X.EveryWeek, label: e.frequency_every_week },
|
|
7029
|
+
{ id: X.EveryOtherWeek, label: e.frequency_every_other_week },
|
|
7030
|
+
{ id: X.EveryMonth, label: e.frequency_every_month },
|
|
7031
|
+
{ id: X.EveryOtherMonth, label: e.frequency_every_other_month },
|
|
7032
|
+
{ id: X.EveryQuarter, label: e.frequency_every_quarter },
|
|
7033
|
+
{ id: X.EveryOtherQuarter, label: e.frequency_every_other_quarter },
|
|
7034
|
+
{ id: X.EveryYear, label: e.frequency_every_year }
|
|
7035
7035
|
], u = async (m) => {
|
|
7036
7036
|
const y = { ...A, recurrenceType: m };
|
|
7037
7037
|
if (A.activityType === IA.Expense) {
|
|
@@ -7071,7 +7071,7 @@ const Ti = ({ transaction: A }) => {
|
|
|
7071
7071
|
(m) => (
|
|
7072
7072
|
// Filter out every other month and every other quarter when income since cashflow
|
|
7073
7073
|
// sequence doesn't support them
|
|
7074
|
-
A.activityType === IA.Expense || m.id !==
|
|
7074
|
+
A.activityType === IA.Expense || m.id !== X.EveryOtherMonth && m.id !== X.EveryOtherQuarter
|
|
7075
7075
|
)
|
|
7076
7076
|
).map((m) => /* @__PURE__ */ l(g.Fragment, { children: [
|
|
7077
7077
|
/* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(tA, { onClick: () => u(m.id), children: [
|
|
@@ -7257,22 +7257,22 @@ const Ti = ({ transaction: A }) => {
|
|
|
7257
7257
|
}, gn = (A) => A ? { margin: "0 0 -6px -4px" } : void 0, Cr = ({ isOffset: A = !1, size: e = 16 }) => /* @__PURE__ */ t(ke, { size: e, sx: { ...gn(A) }, children: /* @__PURE__ */ t(bs, { color: "primary", sx: { fontSize: e, ...hn } }) }), fr = ({ isOffset: A = !1, size: e = 16 }) => /* @__PURE__ */ t(ke, { size: e, sx: { ...gn(A) }, children: /* @__PURE__ */ t(ws, { sx: { color: "categories.income", fontSize: e, ...hn } }) }), mr = ({ isOffset: A = !1, size: e = 16 }) => /* @__PURE__ */ t(ke, { size: e, sx: { ...gn(A) }, children: /* @__PURE__ */ t(Xt, { color: "error", sx: { fontSize: e, ...hn } }) }), pr = ({ isOffset: A = !1, size: e = 16 }) => /* @__PURE__ */ t(ke, { size: e, sx: { ...gn(A) }, children: /* @__PURE__ */ t(Wa, { color: "success", sx: { fontSize: e, ...hn } }) }), da = ({ copy: A, date: e, type: n }) => {
|
|
7258
7258
|
let r = e && Ss(e) ? _(A.monthly_ordinal, jA(e, "do")) : A.monthly;
|
|
7259
7259
|
switch (n) {
|
|
7260
|
-
case
|
|
7260
|
+
case X.EveryQuarter:
|
|
7261
7261
|
r = e ? _(A.quarterly_ordinal, jA(e, "do")) : A.quarterly;
|
|
7262
7262
|
break;
|
|
7263
|
-
case
|
|
7263
|
+
case X.EveryWeek:
|
|
7264
7264
|
r = e ? _(A.weekly_ordinal, jA(e, "do")) : A.weekly;
|
|
7265
7265
|
break;
|
|
7266
|
-
case
|
|
7266
|
+
case X.EveryYear:
|
|
7267
7267
|
r = e ? _(A.anually_ordinal, jA(e, "do")) : A.anually;
|
|
7268
7268
|
break;
|
|
7269
|
-
case
|
|
7269
|
+
case X.EveryOtherWeek:
|
|
7270
7270
|
r = e ? _(A.every_other_week_ordinal, jA(e, "do")) : A.every_other_week;
|
|
7271
7271
|
break;
|
|
7272
|
-
case
|
|
7272
|
+
case X.EveryOtherMonth:
|
|
7273
7273
|
r = e ? _(A.every_other_month_ordinal, jA(e, "do")) : A.every_other_month;
|
|
7274
7274
|
break;
|
|
7275
|
-
case
|
|
7275
|
+
case X.EveryOtherQuarter:
|
|
7276
7276
|
r = e ? _(A.every_other_quarter_ordinal, jA(e, "do")) : A.every_other_quarter;
|
|
7277
7277
|
break;
|
|
7278
7278
|
}
|
|
@@ -7401,19 +7401,19 @@ const Ti = ({ transaction: A }) => {
|
|
|
7401
7401
|
transaction_type: A.transaction_type
|
|
7402
7402
|
};
|
|
7403
7403
|
switch (e) {
|
|
7404
|
-
case
|
|
7404
|
+
case X.EveryWeek:
|
|
7405
7405
|
r.repeat_interval = "1", r.repeat_weekday = `${Lt(n)}`;
|
|
7406
7406
|
break;
|
|
7407
|
-
case
|
|
7407
|
+
case X.EveryOtherWeek:
|
|
7408
7408
|
r.repeat_interval = "2", r.repeat_weekday = `${Lt(n)}`;
|
|
7409
7409
|
break;
|
|
7410
|
-
case
|
|
7410
|
+
case X.EveryMonth:
|
|
7411
7411
|
r.repeat_day = `${bt(n)}`;
|
|
7412
7412
|
break;
|
|
7413
|
-
case
|
|
7413
|
+
case X.EveryQuarter:
|
|
7414
7414
|
r.repeat_interval = "3", r.repeat_day = `${bt(n)}`;
|
|
7415
7415
|
break;
|
|
7416
|
-
case
|
|
7416
|
+
case X.EveryYear:
|
|
7417
7417
|
r.repeat_day = `${bt(n)}`, r.repeat_month = `${nt(n)}`;
|
|
7418
7418
|
break;
|
|
7419
7419
|
}
|
|
@@ -7436,18 +7436,18 @@ const Ti = ({ transaction: A }) => {
|
|
|
7436
7436
|
merchant_guid: A.merchant_guid,
|
|
7437
7437
|
occurs_on: Xn(n, { representation: "date" }),
|
|
7438
7438
|
recurrence_day: 0,
|
|
7439
|
-
recurrence_type:
|
|
7439
|
+
recurrence_type: X.EveryMonth
|
|
7440
7440
|
};
|
|
7441
7441
|
switch (e) {
|
|
7442
|
-
case
|
|
7443
|
-
case
|
|
7442
|
+
case X.EveryWeek:
|
|
7443
|
+
case X.EveryOtherWeek:
|
|
7444
7444
|
r.recurrence_day = Lt(n);
|
|
7445
7445
|
break;
|
|
7446
|
-
case
|
|
7447
|
-
case
|
|
7448
|
-
case
|
|
7449
|
-
case
|
|
7450
|
-
case
|
|
7446
|
+
case X.EveryMonth:
|
|
7447
|
+
case X.EveryOtherMonth:
|
|
7448
|
+
case X.EveryQuarter:
|
|
7449
|
+
case X.EveryOtherQuarter:
|
|
7450
|
+
case X.EveryYear:
|
|
7451
7451
|
r.recurrence_day = bt(n);
|
|
7452
7452
|
break;
|
|
7453
7453
|
}
|
|
@@ -7485,40 +7485,40 @@ const Ti = ({ transaction: A }) => {
|
|
|
7485
7485
|
transaction: o
|
|
7486
7486
|
}) => {
|
|
7487
7487
|
const { recurring: s } = D(), c = [
|
|
7488
|
-
{ id:
|
|
7489
|
-
{ id:
|
|
7490
|
-
{ id:
|
|
7491
|
-
{ id:
|
|
7492
|
-
{ id:
|
|
7493
|
-
{ id:
|
|
7494
|
-
{ id:
|
|
7488
|
+
{ id: X.EveryWeek, label: s.frequency_every_week },
|
|
7489
|
+
{ id: X.EveryOtherWeek, label: s.frequency_every_other_week },
|
|
7490
|
+
{ id: X.EveryMonth, label: s.frequency_every_month },
|
|
7491
|
+
{ id: X.EveryOtherMonth, label: s.frequency_every_other_month },
|
|
7492
|
+
{ id: X.EveryQuarter, label: s.frequency_every_quarter },
|
|
7493
|
+
{ id: X.EveryOtherQuarter, label: s.frequency_every_other_quarter },
|
|
7494
|
+
{ id: X.EveryYear, label: s.frequency_every_year }
|
|
7495
7495
|
];
|
|
7496
7496
|
g.useEffect(() => {
|
|
7497
7497
|
const d = xA(o.date);
|
|
7498
|
-
i(kr(d)), a(
|
|
7498
|
+
i(kr(d)), a(X.EveryMonth);
|
|
7499
7499
|
}, [o]);
|
|
7500
7500
|
const h = (d) => {
|
|
7501
7501
|
const u = xA(o.date);
|
|
7502
7502
|
switch (Number(d.target.value)) {
|
|
7503
|
-
case
|
|
7503
|
+
case X.EveryWeek:
|
|
7504
7504
|
i(rr(u));
|
|
7505
7505
|
break;
|
|
7506
|
-
case
|
|
7506
|
+
case X.EveryOtherWeek:
|
|
7507
7507
|
i(hc(u));
|
|
7508
7508
|
break;
|
|
7509
|
-
case
|
|
7509
|
+
case X.EveryMonth:
|
|
7510
7510
|
i(kr(u));
|
|
7511
7511
|
break;
|
|
7512
|
-
case
|
|
7512
|
+
case X.EveryOtherMonth:
|
|
7513
7513
|
i(gc(u));
|
|
7514
7514
|
break;
|
|
7515
|
-
case
|
|
7515
|
+
case X.EveryQuarter:
|
|
7516
7516
|
i(ii(u));
|
|
7517
7517
|
break;
|
|
7518
|
-
case
|
|
7518
|
+
case X.EveryOtherQuarter:
|
|
7519
7519
|
i(Cc(u));
|
|
7520
7520
|
break;
|
|
7521
|
-
case
|
|
7521
|
+
case X.EveryYear:
|
|
7522
7522
|
i(fc(u));
|
|
7523
7523
|
break;
|
|
7524
7524
|
}
|
|
@@ -7563,7 +7563,7 @@ const Ti = ({ transaction: A }) => {
|
|
|
7563
7563
|
label: e,
|
|
7564
7564
|
onAddActivity: n = () => null
|
|
7565
7565
|
}) => {
|
|
7566
|
-
const { recurring: r } = D(), { addCashflowEvent: a, addCashflowSequence: i, addScheduledPayment: o } = zA(), { filter: s, setFilter: c, transactions: h } = uA(), [d, u] = g.useState(!1), [C, f] = g.useState(""), [m, y] = g.useState(
|
|
7566
|
+
const { recurring: r } = D(), { addCashflowEvent: a, addCashflowSequence: i, addScheduledPayment: o } = zA(), { filter: s, setFilter: c, transactions: h } = uA(), [d, u] = g.useState(!1), [C, f] = g.useState(""), [m, y] = g.useState(X.EveryMonth), [p, w] = g.useState(null), L = g.useMemo(
|
|
7567
7567
|
() => h.find((N) => N.guid === C),
|
|
7568
7568
|
[C]
|
|
7569
7569
|
), S = () => {
|
|
@@ -7674,7 +7674,7 @@ const Ti = ({ transaction: A }) => {
|
|
|
7674
7674
|
}, Cu = T(gu), Bn = (A) => {
|
|
7675
7675
|
let e = A.user_name || A.feed_name || "";
|
|
7676
7676
|
return A.account_number && (e = `${e} *${A.account_number}`), e;
|
|
7677
|
-
}, Kn = (A) => A ? A.repeat_interval === "1" ?
|
|
7677
|
+
}, Kn = (A) => A ? A.repeat_interval === "1" ? X.EveryWeek : A.repeat_interval === "2" ? X.EveryOtherWeek : A.repeat_day && !A.repeat_month && !A.repeat_interval ? X.EveryMonth : A.repeat_day && A.repeat_interval === "3" ? X.EveryQuarter : A.repeat_day && A.repeat_month ? X.EveryYear : X.Unknown : X.Unknown, fu = (A, e, n, r, a, i) => {
|
|
7678
7678
|
const o = e.filter((d) => {
|
|
7679
7679
|
const u = a.find((f) => f.guid === d.cashflow_sequence_guid), C = i.find((f) => f.guid === d.transaction_guid);
|
|
7680
7680
|
return u?.end_date === null && C;
|
|
@@ -7752,14 +7752,14 @@ const Ti = ({ transaction: A }) => {
|
|
|
7752
7752
|
}, c = e.recurrence_day, h = nA(), d = bA(nA()), u = ve(nA(), 30);
|
|
7753
7753
|
let C = d;
|
|
7754
7754
|
switch (e.recurrence_type) {
|
|
7755
|
-
case
|
|
7755
|
+
case X.EveryWeek:
|
|
7756
7756
|
for (C = Nn(C, c); yA(C, u); )
|
|
7757
7757
|
r.push({
|
|
7758
7758
|
...s,
|
|
7759
7759
|
expectedDate: C
|
|
7760
7760
|
}), C = Nn(C, c);
|
|
7761
7761
|
break;
|
|
7762
|
-
case
|
|
7762
|
+
case X.EveryOtherWeek:
|
|
7763
7763
|
if (yA(o, d))
|
|
7764
7764
|
for (C = tt(o, 2); yA(C, u); )
|
|
7765
7765
|
at(C, d) && r.push({
|
|
@@ -7782,7 +7782,7 @@ const Ti = ({ transaction: A }) => {
|
|
|
7782
7782
|
}), C = tt(C, 2);
|
|
7783
7783
|
}
|
|
7784
7784
|
break;
|
|
7785
|
-
case
|
|
7785
|
+
case X.EveryMonth:
|
|
7786
7786
|
r.push({
|
|
7787
7787
|
...s,
|
|
7788
7788
|
expectedDate: Mn(C, c)
|
|
@@ -7791,7 +7791,7 @@ const Ti = ({ transaction: A }) => {
|
|
|
7791
7791
|
expectedDate: te(Mn(C, c), 1)
|
|
7792
7792
|
});
|
|
7793
7793
|
break;
|
|
7794
|
-
case
|
|
7794
|
+
case X.EveryOtherMonth:
|
|
7795
7795
|
yA(o, d) ? yA(te(o, 2), u) && r.push({
|
|
7796
7796
|
...s,
|
|
7797
7797
|
expectedDate: te(o, 2)
|
|
@@ -7800,7 +7800,7 @@ const Ti = ({ transaction: A }) => {
|
|
|
7800
7800
|
expectedDate: o
|
|
7801
7801
|
});
|
|
7802
7802
|
break;
|
|
7803
|
-
case
|
|
7803
|
+
case X.EveryQuarter:
|
|
7804
7804
|
yA(o, d) ? yA(We(o, 1), u) && r.push({
|
|
7805
7805
|
...s,
|
|
7806
7806
|
expectedDate: We(o, 1)
|
|
@@ -7809,7 +7809,7 @@ const Ti = ({ transaction: A }) => {
|
|
|
7809
7809
|
expectedDate: o
|
|
7810
7810
|
});
|
|
7811
7811
|
break;
|
|
7812
|
-
case
|
|
7812
|
+
case X.EveryOtherQuarter:
|
|
7813
7813
|
yA(o, d) ? yA(We(o, 2), u) && r.push({
|
|
7814
7814
|
...s,
|
|
7815
7815
|
expectedDate: We(o, 2)
|
|
@@ -7818,7 +7818,7 @@ const Ti = ({ transaction: A }) => {
|
|
|
7818
7818
|
expectedDate: o
|
|
7819
7819
|
});
|
|
7820
7820
|
break;
|
|
7821
|
-
case
|
|
7821
|
+
case X.EveryYear:
|
|
7822
7822
|
yA(o, d) ? yA(Tt(o, 1), u) && r.push({
|
|
7823
7823
|
...s,
|
|
7824
7824
|
expectedDate: Tt(o, 1)
|
|
@@ -8132,23 +8132,23 @@ const Ti = ({ transaction: A }) => {
|
|
|
8132
8132
|
/* @__PURE__ */ t(Dt, { data: c })
|
|
8133
8133
|
] });
|
|
8134
8134
|
}, ha = T(Du), xu = () => {
|
|
8135
|
-
const { recurring: A } = D(), {
|
|
8136
|
-
activities:
|
|
8137
|
-
missedActivities:
|
|
8138
|
-
paidActivities:
|
|
8139
|
-
selectedDay:
|
|
8140
|
-
selectedDayActivities:
|
|
8141
|
-
setSelectedDay:
|
|
8142
|
-
upcomingActivities:
|
|
8143
|
-
} = zA(), [
|
|
8144
|
-
|
|
8145
|
-
},
|
|
8146
|
-
|
|
8147
|
-
transaction_guid:
|
|
8135
|
+
const { recurring: A } = D(), { isMobile: e, isSmallTablet: n } = _A(), {
|
|
8136
|
+
activities: r,
|
|
8137
|
+
missedActivities: a,
|
|
8138
|
+
paidActivities: i,
|
|
8139
|
+
selectedDay: o,
|
|
8140
|
+
selectedDayActivities: s,
|
|
8141
|
+
setSelectedDay: c,
|
|
8142
|
+
upcomingActivities: h
|
|
8143
|
+
} = zA(), [d, u] = g.useState(0), { onEvent: C } = J(), f = r.filter(Tn), m = i.filter(Tn), y = a.filter(Tn), p = f.filter(zt).reduce(ft, 0), w = m.filter(zt).reduce(ft, 0), L = y.filter(zt).reduce(ft, 0), S = f.filter(zt).length, I = f.filter(Sn).reduce(ft, 0), O = m.filter(Sn).reduce(ft, 0), N = f.filter(Sn).length, x = (G, F) => {
|
|
8144
|
+
u(F);
|
|
8145
|
+
}, B = (G) => {
|
|
8146
|
+
C(k.RECURRING_ACTIVITY_CLICK_UPCOMING, {
|
|
8147
|
+
transaction_guid: G.transactionGuid
|
|
8148
8148
|
});
|
|
8149
|
-
},
|
|
8150
|
-
|
|
8151
|
-
transaction_guid:
|
|
8149
|
+
}, q = (G) => {
|
|
8150
|
+
C(k.RECURRING_ACTIVITY_CLICK_PAID, {
|
|
8151
|
+
transaction_guid: G.transactionGuid
|
|
8152
8152
|
});
|
|
8153
8153
|
};
|
|
8154
8154
|
return /* @__PURE__ */ l(Oe, { container: !0, pt: 16, px: 24, spacing: 24, children: [
|
|
@@ -8156,32 +8156,32 @@ const Ti = ({ transaction: A }) => {
|
|
|
8156
8156
|
/* @__PURE__ */ t(
|
|
8157
8157
|
ha,
|
|
8158
8158
|
{
|
|
8159
|
-
expected:
|
|
8160
|
-
missed:
|
|
8161
|
-
paid:
|
|
8159
|
+
expected: p,
|
|
8160
|
+
missed: L,
|
|
8161
|
+
paid: w,
|
|
8162
8162
|
title: A.expenses,
|
|
8163
|
-
total:
|
|
8163
|
+
total: S
|
|
8164
8164
|
}
|
|
8165
8165
|
),
|
|
8166
8166
|
/* @__PURE__ */ t(
|
|
8167
8167
|
ha,
|
|
8168
8168
|
{
|
|
8169
|
-
expected:
|
|
8170
|
-
paid:
|
|
8169
|
+
expected: I,
|
|
8170
|
+
paid: O,
|
|
8171
8171
|
title: A.deposits,
|
|
8172
|
-
total:
|
|
8172
|
+
total: N
|
|
8173
8173
|
}
|
|
8174
8174
|
),
|
|
8175
|
-
!e && /* @__PURE__ */ t(
|
|
8175
|
+
!n && !e && /* @__PURE__ */ t(
|
|
8176
8176
|
vt,
|
|
8177
8177
|
{
|
|
8178
|
-
activities:
|
|
8179
|
-
onActivityClick:
|
|
8178
|
+
activities: h,
|
|
8179
|
+
onActivityClick: B,
|
|
8180
8180
|
title: A.upcoming_activity
|
|
8181
8181
|
}
|
|
8182
8182
|
),
|
|
8183
|
-
e && /* @__PURE__ */ l(P, { children: [
|
|
8184
|
-
/* @__PURE__ */ l(_e, { onChange:
|
|
8183
|
+
(n || e) && /* @__PURE__ */ l(P, { children: [
|
|
8184
|
+
/* @__PURE__ */ l(_e, { onChange: x, value: d, variant: "fullWidth", children: [
|
|
8185
8185
|
/* @__PURE__ */ t(
|
|
8186
8186
|
KA,
|
|
8187
8187
|
{
|
|
@@ -8195,27 +8195,27 @@ const Ti = ({ transaction: A }) => {
|
|
|
8195
8195
|
}
|
|
8196
8196
|
)
|
|
8197
8197
|
] }),
|
|
8198
|
-
|
|
8198
|
+
d === 0 && /* @__PURE__ */ t(
|
|
8199
8199
|
vt,
|
|
8200
8200
|
{
|
|
8201
|
-
activities:
|
|
8202
|
-
onActivityClick:
|
|
8201
|
+
activities: h,
|
|
8202
|
+
onActivityClick: B
|
|
8203
8203
|
}
|
|
8204
8204
|
),
|
|
8205
|
-
|
|
8205
|
+
d === 1 && /* @__PURE__ */ t(vt, { activities: m, onActivityClick: q })
|
|
8206
8206
|
] })
|
|
8207
8207
|
] }) }),
|
|
8208
|
-
!e && /* @__PURE__ */ t(Oe, { sx: { minWidth: 450 }, xs: "auto", children: /* @__PURE__ */ l(E, { gap: 35, children: [
|
|
8208
|
+
!n && !e && /* @__PURE__ */ t(Oe, { sx: { minWidth: 450 }, xs: "auto", children: /* @__PURE__ */ l(E, { gap: 35, children: [
|
|
8209
8209
|
/* @__PURE__ */ t(Ki, {}),
|
|
8210
8210
|
/* @__PURE__ */ t(
|
|
8211
8211
|
vt,
|
|
8212
8212
|
{
|
|
8213
|
-
activities:
|
|
8214
|
-
onActivityClick:
|
|
8215
|
-
onResetClick:
|
|
8216
|
-
title:
|
|
8213
|
+
activities: s || m,
|
|
8214
|
+
onActivityClick: q,
|
|
8215
|
+
onResetClick: o ? () => c(o) : void 0,
|
|
8216
|
+
title: o ? _(
|
|
8217
8217
|
A.day_transactions,
|
|
8218
|
-
eA(
|
|
8218
|
+
eA(o, AA.MONTH_DAY)
|
|
8219
8219
|
) : A.paid_activity
|
|
8220
8220
|
}
|
|
8221
8221
|
)
|
|
@@ -9309,9 +9309,9 @@ const ju = ({ activity: A }) => /* @__PURE__ */ l(Z, { children: [
|
|
|
9309
9309
|
transform: rotate(360deg);
|
|
9310
9310
|
}
|
|
9311
9311
|
`, sh = () => {
|
|
9312
|
-
const { addCashflowEvent: A, addCashflowSequence: e, cashflowSequences: n } = zA(), { cashflow: r, common: a } = D(), { completeOnboarding: i } = ir(), { isDirty: o } = lt(), { isMobile: s } = _A(), { setDisplayedDate: c } = CA(), { filter: h, setFilter: d, transactions: u } = uA(), C = gA(), [f, m] = fe(!0), [y, p] = g.useState(
|
|
9313
|
-
() => u.find((dA) => dA.guid ===
|
|
9314
|
-
[
|
|
9312
|
+
const { addCashflowEvent: A, addCashflowSequence: e, cashflowSequences: n } = zA(), { cashflow: r, common: a } = D(), { completeOnboarding: i } = ir(), { isDirty: o } = lt(), { isMobile: s } = _A(), { setDisplayedDate: c } = CA(), { filter: h, setFilter: d, transactions: u } = uA(), C = gA(), [f, m] = fe(!0), [y, p] = g.useState(X.EveryMonth), [w, L] = fe(!1), [S, I] = g.useState(null), [O, N] = fe(1), [x, B] = fe([]), [q, G] = fe(""), F = g.useMemo(
|
|
9313
|
+
() => u.find((dA) => dA.guid === q),
|
|
9314
|
+
[q]
|
|
9315
9315
|
), U = !!n.length, W = async () => {
|
|
9316
9316
|
N(2), c(
|
|
9317
9317
|
// Beginning of the month, 90 days before today
|
|
@@ -9405,7 +9405,7 @@ const ju = ({ activity: A }) => /* @__PURE__ */ l(Z, { children: [
|
|
|
9405
9405
|
custom: (pA) => dA ? Hi(pA, dA) : xt(pA)
|
|
9406
9406
|
}),
|
|
9407
9407
|
onSelected: (dA) => {
|
|
9408
|
-
|
|
9408
|
+
G(dA), m(!1);
|
|
9409
9409
|
}
|
|
9410
9410
|
}
|
|
9411
9411
|
),
|
|
@@ -9430,7 +9430,7 @@ const ju = ({ activity: A }) => /* @__PURE__ */ l(Z, { children: [
|
|
|
9430
9430
|
"aria-disabled": !F || !S,
|
|
9431
9431
|
onClick: () => {
|
|
9432
9432
|
const dA = [...x];
|
|
9433
|
-
dA.push({ ...F, nextDate: S, frequency: y }), B(dA),
|
|
9433
|
+
dA.push({ ...F, nextDate: S, frequency: y }), B(dA), G("");
|
|
9434
9434
|
},
|
|
9435
9435
|
variant: "contained",
|
|
9436
9436
|
children: a.confirm_button
|
|
@@ -9440,7 +9440,7 @@ const ju = ({ activity: A }) => /* @__PURE__ */ l(Z, { children: [
|
|
|
9440
9440
|
aA,
|
|
9441
9441
|
{
|
|
9442
9442
|
onClick: () => {
|
|
9443
|
-
|
|
9443
|
+
G(""), m(!0), W();
|
|
9444
9444
|
},
|
|
9445
9445
|
variant: "outlined",
|
|
9446
9446
|
children: a.cancel_button
|
|
@@ -11073,17 +11073,17 @@ const Wh = ({
|
|
|
11073
11073
|
selectedData: C,
|
|
11074
11074
|
setHoveredData: f,
|
|
11075
11075
|
setSelectedData: m
|
|
11076
|
-
} = Qc(), { isMobile: y } = _A(), { onEvent: p } = J(), [w, L] = g.useState(!1), [S, I] = g.useState(6), [O, N] = g.useState(!1), [x, B] = g.useState(!1),
|
|
11076
|
+
} = Qc(), { isMobile: y } = _A(), { onEvent: p } = J(), [w, L] = g.useState(!1), [S, I] = g.useState(6), [O, N] = g.useState(!1), [x, B] = g.useState(!1), q = async () => {
|
|
11077
11077
|
await d(n), await h(S), L(!0);
|
|
11078
11078
|
};
|
|
11079
11079
|
g.useEffect(() => {
|
|
11080
11080
|
p(k.NET_WORTH_VIEW), r(i);
|
|
11081
11081
|
}, []), g.useEffect(() => {
|
|
11082
|
-
e &&
|
|
11082
|
+
e && q();
|
|
11083
11083
|
}, [e, n]), g.useEffect(() => {
|
|
11084
11084
|
p(k.NET_WORTH_WIDGET_CLICK_TIMEFRAME, { time_period: S + "M" }), h(S);
|
|
11085
11085
|
}, [S]);
|
|
11086
|
-
const
|
|
11086
|
+
const G = (dA, pA) => {
|
|
11087
11087
|
m(pA), dA.currentTarget instanceof HTMLDivElement && N(!0);
|
|
11088
11088
|
}, F = (dA) => {
|
|
11089
11089
|
f(dA);
|
|
@@ -11098,7 +11098,7 @@ const Wh = ({
|
|
|
11098
11098
|
chartData: u,
|
|
11099
11099
|
hoveredData: c,
|
|
11100
11100
|
onButtonClick: W,
|
|
11101
|
-
onDataClick:
|
|
11101
|
+
onDataClick: G,
|
|
11102
11102
|
onMouseEnter: F,
|
|
11103
11103
|
onMouseLeave: U,
|
|
11104
11104
|
selectedData: C
|
|
@@ -13722,9 +13722,9 @@ const v1 = ({
|
|
|
13722
13722
|
}, []), g.useEffect(() => {
|
|
13723
13723
|
s && (I(c, C.start, C.end).finally(), O || (w().finally(), f().finally(() => N(!0))));
|
|
13724
13724
|
}, [s, c, C]);
|
|
13725
|
-
const
|
|
13725
|
+
const q = (cA) => {
|
|
13726
13726
|
m({ start: cA[0] || /* @__PURE__ */ new Date(), end: cA[1] || /* @__PURE__ */ new Date() });
|
|
13727
|
-
},
|
|
13727
|
+
}, G = () => {
|
|
13728
13728
|
r(k.BUDGETS_CLICK_FILTER);
|
|
13729
13729
|
}, F = () => {
|
|
13730
13730
|
B(!0), r(k.BUDGETS_CLICK_ADD);
|
|
@@ -13742,8 +13742,8 @@ const v1 = ({
|
|
|
13742
13742
|
onClick: F
|
|
13743
13743
|
}
|
|
13744
13744
|
],
|
|
13745
|
-
calendarActions: { onRangeChanged:
|
|
13746
|
-
onAccountsFilterClick:
|
|
13745
|
+
calendarActions: { onRangeChanged: q, shouldDisableNext: W },
|
|
13746
|
+
onAccountsFilterClick: G,
|
|
13747
13747
|
onBackClick: A,
|
|
13748
13748
|
sx: e,
|
|
13749
13749
|
title: i.budgets_title,
|
|
@@ -14409,13 +14409,13 @@ const Ji = ({
|
|
|
14409
14409
|
const N = () => {
|
|
14410
14410
|
C(
|
|
14411
14411
|
n.length > 1 ? A.insights_unhidden : A.insight_unhidden
|
|
14412
|
-
), r(n.map((
|
|
14413
|
-
}, x = (
|
|
14414
|
-
p(!0), L(
|
|
14412
|
+
), r(n.map((G) => G.name));
|
|
14413
|
+
}, x = (G, F) => {
|
|
14414
|
+
p(!0), L(G), I(F);
|
|
14415
14415
|
}, B = () => {
|
|
14416
14416
|
p(!1), I(""), L("");
|
|
14417
|
-
},
|
|
14418
|
-
r(
|
|
14417
|
+
}, q = (G, F) => {
|
|
14418
|
+
r(G), F && p(!1), C(G.length > 1 ? A.insights_unhidden : A.insight_unhidden);
|
|
14419
14419
|
};
|
|
14420
14420
|
return /* @__PURE__ */ l(Z, { children: [
|
|
14421
14421
|
/* @__PURE__ */ t(
|
|
@@ -14444,16 +14444,16 @@ const Ji = ({
|
|
|
14444
14444
|
/* @__PURE__ */ t(z, {}),
|
|
14445
14445
|
/* @__PURE__ */ l(E, { height: "calc(100vh - 61px)", children: [
|
|
14446
14446
|
n.length > 0 ? /* @__PURE__ */ t(rA, { sx: { height: "100%" }, children: o.map(
|
|
14447
|
-
(
|
|
14447
|
+
(G) => s[G.key] !== "" && /* @__PURE__ */ t(
|
|
14448
14448
|
rA,
|
|
14449
14449
|
{
|
|
14450
|
-
subheader: /* @__PURE__ */ t(wr, { children: s[
|
|
14451
|
-
children:
|
|
14450
|
+
subheader: /* @__PURE__ */ t(wr, { children: s[G.key] }),
|
|
14451
|
+
children: G.subcategories.map(
|
|
14452
14452
|
(F, U) => F.beats.length > 0 && /* @__PURE__ */ l(P, { children: [
|
|
14453
14453
|
/* @__PURE__ */ t(j, { disablePadding: !0, children: /* @__PURE__ */ l(
|
|
14454
14454
|
tA,
|
|
14455
14455
|
{
|
|
14456
|
-
onClick: () => x(
|
|
14456
|
+
onClick: () => x(G.key, F.key),
|
|
14457
14457
|
children: [
|
|
14458
14458
|
/* @__PURE__ */ t(
|
|
14459
14459
|
V,
|
|
@@ -14476,13 +14476,13 @@ const Ji = ({
|
|
|
14476
14476
|
/* @__PURE__ */ t(
|
|
14477
14477
|
z,
|
|
14478
14478
|
{
|
|
14479
|
-
sx: { ml: U <
|
|
14479
|
+
sx: { ml: U < G.subcategories.length - 1 ? 24 : 0 }
|
|
14480
14480
|
}
|
|
14481
14481
|
)
|
|
14482
14482
|
] }, F.key)
|
|
14483
14483
|
)
|
|
14484
14484
|
},
|
|
14485
|
-
|
|
14485
|
+
G.key
|
|
14486
14486
|
)
|
|
14487
14487
|
) }) : /* @__PURE__ */ t(X1, { content: A }),
|
|
14488
14488
|
/* @__PURE__ */ l(P, { boxSizing: "border-box", pb: 32, pt: 24, px: 24, children: [
|
|
@@ -14517,8 +14517,8 @@ const Ji = ({
|
|
|
14517
14517
|
j1,
|
|
14518
14518
|
{
|
|
14519
14519
|
content: A,
|
|
14520
|
-
disabledBeatTemplates: S !== "" ? o.filter((
|
|
14521
|
-
handleEnableBeatTemplates:
|
|
14520
|
+
disabledBeatTemplates: S !== "" ? o.filter((G) => G.key === w)[0].subcategories.filter((G) => G.key === S)[0].beats : [],
|
|
14521
|
+
handleEnableBeatTemplates: q,
|
|
14522
14522
|
isOpen: y,
|
|
14523
14523
|
isUpdateLoading: i,
|
|
14524
14524
|
onClose: B,
|
|
@@ -15826,9 +15826,9 @@ const Mt = g.createContext(null), tC = ({
|
|
|
15826
15826
|
}, B = () => {
|
|
15827
15827
|
if (!w || !y) return;
|
|
15828
15828
|
w - y > dC ? I(se.ON_CAROUSEL_FORWARD_SWIPE) : I(se.ON_CAROUSEL_BACK_SWIPE);
|
|
15829
|
-
},
|
|
15829
|
+
}, q = (cA) => {
|
|
15830
15830
|
p(cA.targetTouches[0].clientX);
|
|
15831
|
-
},
|
|
15831
|
+
}, G = (cA) => {
|
|
15832
15832
|
p(null), L(cA.targetTouches[0].clientX);
|
|
15833
15833
|
}, F = {
|
|
15834
15834
|
clientColorScheme: e,
|
|
@@ -15845,8 +15845,8 @@ const Mt = g.createContext(null), tC = ({
|
|
|
15845
15845
|
className: "mx-insights-micro-carousel-container",
|
|
15846
15846
|
onScroll: x,
|
|
15847
15847
|
onTouchEnd: B,
|
|
15848
|
-
onTouchMove:
|
|
15849
|
-
onTouchStart:
|
|
15848
|
+
onTouchMove: q,
|
|
15849
|
+
onTouchStart: G,
|
|
15850
15850
|
ref: C,
|
|
15851
15851
|
children: [
|
|
15852
15852
|
A.map((cA, hA) => /* @__PURE__ */ t(
|
|
@@ -16148,7 +16148,7 @@ const Mt = g.createContext(null), tC = ({
|
|
|
16148
16148
|
variant: S,
|
|
16149
16149
|
widthOverrides: I
|
|
16150
16150
|
}) => {
|
|
16151
|
-
const [O, N] = fe("STANDARD"), [x, B] = fe(!1),
|
|
16151
|
+
const [O, N] = fe("STANDARD"), [x, B] = fe(!1), q = vc([c], Te), G = yc([h], Te);
|
|
16152
16152
|
g.useEffect(() => {
|
|
16153
16153
|
Te.isInitialized || Te.initialize(a, p, o);
|
|
16154
16154
|
}, [a, p, o, Te.isInitialized]), g.useEffect(() => {
|
|
@@ -16175,7 +16175,7 @@ const Mt = g.createContext(null), tC = ({
|
|
|
16175
16175
|
// The Theme provider must wrap the component so that the styles don't break when imported into other applications.
|
|
16176
16176
|
/* @__PURE__ */ l(No, { theme: po(w ? "dark" : "light"), children: [
|
|
16177
16177
|
/* @__PURE__ */ t(Us, {}),
|
|
16178
|
-
/* @__PURE__ */ t(tC, { onEvent:
|
|
16178
|
+
/* @__PURE__ */ t(tC, { onEvent: q, onPageview: G, store: Te, children: /* @__PURE__ */ l(
|
|
16179
16179
|
P,
|
|
16180
16180
|
{
|
|
16181
16181
|
sx: {
|
|
@@ -16766,31 +16766,31 @@ const Mt = g.createContext(null), tC = ({
|
|
|
16766
16766
|
), I = g.useMemo(
|
|
16767
16767
|
() => h.find((B) => B.guid === m),
|
|
16768
16768
|
[m]
|
|
16769
|
-
), O = (B,
|
|
16770
|
-
f(
|
|
16769
|
+
), O = (B, q) => {
|
|
16770
|
+
f(q), u("");
|
|
16771
16771
|
}, N = (B) => {
|
|
16772
16772
|
u(d === B || B === "0" ? "" : B);
|
|
16773
16773
|
}, x = (B) => {
|
|
16774
|
-
const
|
|
16774
|
+
const q = {
|
|
16775
16775
|
accounts: s,
|
|
16776
16776
|
dateRange: i
|
|
16777
16777
|
};
|
|
16778
16778
|
if (C === 0)
|
|
16779
16779
|
if (B === "other") {
|
|
16780
|
-
const
|
|
16780
|
+
const G = L.categoryData.find((F) => F.guid === "other");
|
|
16781
16781
|
c({
|
|
16782
|
-
...
|
|
16783
|
-
custom: (F) => !!
|
|
16782
|
+
...q,
|
|
16783
|
+
custom: (F) => !!G?.categoryTotals?.find((U) => U.guid === F.top_level_category_guid)
|
|
16784
16784
|
});
|
|
16785
16785
|
} else
|
|
16786
16786
|
c({
|
|
16787
|
-
...
|
|
16788
|
-
custom: (
|
|
16787
|
+
...q,
|
|
16788
|
+
custom: (G) => B ? G.top_level_category_guid === B : G.top_level_category_guid !== b.INCOME
|
|
16789
16789
|
});
|
|
16790
16790
|
else
|
|
16791
16791
|
c({
|
|
16792
|
-
...
|
|
16793
|
-
custom: (
|
|
16792
|
+
...q,
|
|
16793
|
+
custom: (G) => B ? G.category_guid === B : G.top_level_category_guid === b.INCOME
|
|
16794
16794
|
});
|
|
16795
16795
|
w(!0);
|
|
16796
16796
|
};
|
|
@@ -17057,7 +17057,7 @@ const jC = (A) => A.reduce((n, r) => {
|
|
|
17057
17057
|
}, e3 = T(A3), t3 = {
|
|
17058
17058
|
view_transactions: "View Transactions"
|
|
17059
17059
|
}, n3 = ({ onBackClick: A, sx: e }) => {
|
|
17060
|
-
const n = ae(), { onEvent: r } = J(), { isDesktop: a, isTablet: i, isMobile: o } = _A(), { accounts: s } = wA(), { loadMonthlyCategoryTotals: c, monthlyCategoryTotals: h, getCategoryName: d } = TA(), { sortedTransactions: u } = uA(), { isInitialized: C, selectedAccounts: f, setSelectedAccounts: m } = CA(), { trends: y } = D(), p = n.palette.mode === "dark", [w, L] = g.useState(!1), [S, I] = g.useState(!1), [O, N] = g.useState("Chart"), [x, B] = g.useState(""), [
|
|
17060
|
+
const n = ae(), { onEvent: r } = J(), { isDesktop: a, isTablet: i, isMobile: o } = _A(), { accounts: s } = wA(), { loadMonthlyCategoryTotals: c, monthlyCategoryTotals: h, getCategoryName: d } = TA(), { sortedTransactions: u } = uA(), { isInitialized: C, selectedAccounts: f, setSelectedAccounts: m } = CA(), { trends: y } = D(), p = n.palette.mode === "dark", [w, L] = g.useState(!1), [S, I] = g.useState(!1), [O, N] = g.useState("Chart"), [x, B] = g.useState(""), [q, G] = g.useState({
|
|
17061
17061
|
start: zr(NA(le(/* @__PURE__ */ new Date(), 6)), 1),
|
|
17062
17062
|
end: NA(/* @__PURE__ */ new Date())
|
|
17063
17063
|
});
|
|
@@ -17066,18 +17066,18 @@ const jC = (A) => A.reduce((n, r) => {
|
|
|
17066
17066
|
}, [s]), g.useEffect(() => {
|
|
17067
17067
|
C && c(
|
|
17068
17068
|
f,
|
|
17069
|
-
|
|
17070
|
-
|
|
17069
|
+
q.start,
|
|
17070
|
+
q.end
|
|
17071
17071
|
).finally(() => {
|
|
17072
17072
|
L(!0);
|
|
17073
17073
|
});
|
|
17074
|
-
}, [C, f,
|
|
17074
|
+
}, [C, f, q]);
|
|
17075
17075
|
const F = g.useMemo(() => {
|
|
17076
17076
|
if (!w) return { stackedDatasets: [], unstackedDatasets: [] };
|
|
17077
17077
|
const vA = QC(
|
|
17078
17078
|
h,
|
|
17079
|
-
|
|
17080
|
-
|
|
17079
|
+
q.start,
|
|
17080
|
+
q.end
|
|
17081
17081
|
), YA = x.length ? vA.filter(
|
|
17082
17082
|
(be) => be.top_level_category_guid === x || be.category_guid === x
|
|
17083
17083
|
) : Hg(vA);
|
|
@@ -17085,20 +17085,20 @@ const jC = (A) => A.reduce((n, r) => {
|
|
|
17085
17085
|
stackedDatasets: YA.filter(_g),
|
|
17086
17086
|
unstackedDatasets: YA.filter(fn)
|
|
17087
17087
|
};
|
|
17088
|
-
}, [h, x,
|
|
17088
|
+
}, [h, x, q]), U = g.useMemo(() => {
|
|
17089
17089
|
const vA = eA(
|
|
17090
|
-
|
|
17090
|
+
q.start,
|
|
17091
17091
|
o ? AA.MONTH_SHORT_YEAR : AA.MONTH_YEAR
|
|
17092
17092
|
), YA = eA(
|
|
17093
|
-
|
|
17093
|
+
q.end,
|
|
17094
17094
|
o ? AA.MONTH_SHORT_YEAR : AA.MONTH_YEAR
|
|
17095
17095
|
);
|
|
17096
17096
|
return `${vA} - ${YA}`;
|
|
17097
|
-
}, [
|
|
17097
|
+
}, [q, o]), W = (vA, YA) => {
|
|
17098
17098
|
N(YA ?? O), r(k.TRENDS_CLICK_TOGGLE);
|
|
17099
17099
|
}, cA = (vA) => {
|
|
17100
17100
|
const YA = zr(vA?.[0], 1), be = vA?.[1], ut = Ws(be, YA);
|
|
17101
|
-
|
|
17101
|
+
G({ start: YA, end: be }), r(k.TRENDS_CLICK_DATE, {
|
|
17102
17102
|
time_period: ut + "M"
|
|
17103
17103
|
});
|
|
17104
17104
|
}, hA = () => {
|
|
@@ -17119,7 +17119,7 @@ const jC = (A) => A.reduce((n, r) => {
|
|
|
17119
17119
|
{
|
|
17120
17120
|
accountOptions: s,
|
|
17121
17121
|
calendarActions: { onRangeChanged: cA },
|
|
17122
|
-
dateRange:
|
|
17122
|
+
dateRange: q,
|
|
17123
17123
|
dateRangeVariant: "timeframebuttons",
|
|
17124
17124
|
onAccountsFilterClick: hA,
|
|
17125
17125
|
onBackClick: A,
|
|
@@ -17225,7 +17225,7 @@ const jC = (A) => A.reduce((n, r) => {
|
|
|
17225
17225
|
monthlyCategoryTotals: h,
|
|
17226
17226
|
onClickRow: dA,
|
|
17227
17227
|
selectedCategory: x,
|
|
17228
|
-
selectedDateRange:
|
|
17228
|
+
selectedDateRange: q
|
|
17229
17229
|
}
|
|
17230
17230
|
)
|
|
17231
17231
|
] })
|
|
@@ -17236,7 +17236,7 @@ const jC = (A) => A.reduce((n, r) => {
|
|
|
17236
17236
|
e3,
|
|
17237
17237
|
{
|
|
17238
17238
|
categoryGuid: x,
|
|
17239
|
-
dateRange:
|
|
17239
|
+
dateRange: q,
|
|
17240
17240
|
isOpen: S,
|
|
17241
17241
|
onClose: () => I(!1)
|
|
17242
17242
|
}
|
|
@@ -17395,7 +17395,7 @@ export {
|
|
|
17395
17395
|
$a as PropertyType,
|
|
17396
17396
|
Zf as PropertyTypeName,
|
|
17397
17397
|
$f as RECURRENCE_COPY,
|
|
17398
|
-
|
|
17398
|
+
X as RecurrenceTypes,
|
|
17399
17399
|
g7 as RecurringActivityMiniWidget,
|
|
17400
17400
|
Ru as RecurringActivityStore,
|
|
17401
17401
|
h7 as RecurringActivityWidget,
|
|
@@ -17415,7 +17415,7 @@ export {
|
|
|
17415
17415
|
Dt as StatusBar,
|
|
17416
17416
|
Jf as StatusName,
|
|
17417
17417
|
gt as TOUCH_TARGET,
|
|
17418
|
-
|
|
17418
|
+
K as TRANSACTION_EVENTS,
|
|
17419
17419
|
Yt as TabContentContainer,
|
|
17420
17420
|
pt as TopActions,
|
|
17421
17421
|
LA as TrackType,
|