@mx-cartographer/experiences 6.26.2 → 6.26.3-alpha.sms2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js
CHANGED
|
@@ -31,7 +31,7 @@ import re from "@mui/material/ListItemText";
|
|
|
31
31
|
import Ms from "@mui/material/Popover";
|
|
32
32
|
import b from "@mui/material/Stack";
|
|
33
33
|
import ta from "@mui/material/Checkbox";
|
|
34
|
-
import { alpha as jl,
|
|
34
|
+
import { alpha as jl, darken as rr, lighten as sr, Stack as Te, Box as Sn, useTheme as ln, Card as ha, CardContent as $l, Button as Xl } from "@mui/material";
|
|
35
35
|
import Se from "@mui/material/styles/useTheme";
|
|
36
36
|
import dn from "@mui/material/useMediaQuery";
|
|
37
37
|
import { css as mn, keyframes as ql } from "@mxenabled/cssinjs";
|
|
@@ -44,7 +44,7 @@ import { isSameMonth as Jl } from "date-fns/isSameMonth";
|
|
|
44
44
|
import { startOfMonth as Ke } from "date-fns/startOfMonth";
|
|
45
45
|
import { subMonths as Bt } from "date-fns/subMonths";
|
|
46
46
|
import vt from "@mui/material/Paper";
|
|
47
|
-
import { ChevronLeft as ks, ChevronRight as qe, ArrowBack as ed, Icon as pt, AccountBalance as so, ExpandMore as ki, CheckCircle as ga, Edit as td, Delete as Gs,
|
|
47
|
+
import { ChevronLeft as ks, ChevronRight as qe, ArrowBack as ed, Icon as pt, AccountBalance as so, ExpandMore as ki, CheckCircle as ga, Edit as td, Delete as Gs, Cancel as Bs, Schedule as nd, MonetizationOn as id, CurrencyExchange as ad, Check as od, TrendingUp as Hs, TrendingDown as Ps, Payments as co, CalendarMonth as rd, CreditCard as Fs, Savings as sd, ContentCopy as cd, NoteStack as Ws, Person as Us, ExpandLess as Vs, AddBox as Ks, Trophy as ld, Star as dd, Settings as ud, MultilineChart as _d } from "@mxenabled/mx-icons";
|
|
48
48
|
import { isSameDay as wt } from "date-fns/isSameDay";
|
|
49
49
|
import { isWithinInterval as lo } from "date-fns/isWithinInterval";
|
|
50
50
|
import * as Dt from "d3";
|
|
@@ -85,7 +85,7 @@ import Hd, { SurveyQuestionType as dr } from "posthog-js";
|
|
|
85
85
|
import { formatISO as pa } from "date-fns/formatISO";
|
|
86
86
|
import { differenceInDays as Pd } from "date-fns/differenceInDays";
|
|
87
87
|
import { DataGridPro as Qn } from "@mui/x-data-grid-pro";
|
|
88
|
-
import { intervalToDuration as Fd, formatDuration as Wd, getDate as ur, fromUnixTime as ri, startOfMonth as _r, format as js, differenceInMonths as Ud, isSameDay as Vd, subMonths as Kd,
|
|
88
|
+
import { intervalToDuration as Fd, formatDuration as Wd, getDate as ur, fromUnixTime as ri, startOfMonth as _r, format as js, differenceInMonths as Ud, isSameDay as Vd, subMonths as Kd, endOfToday as Yd, subDays as zd, startOfToday as jd } from "date-fns";
|
|
89
89
|
import Ln from "@mui/material/Alert";
|
|
90
90
|
import Bi from "@mui/material/Snackbar";
|
|
91
91
|
import $d from "@mui/material/Stack/Stack";
|
|
@@ -1000,11 +1000,11 @@ const H = (e, n, i) => {
|
|
|
1000
1000
|
const i = e.palette.mode === "dark", a = (s, c) => {
|
|
1001
1001
|
const d = n?.[s];
|
|
1002
1002
|
return {
|
|
1003
|
-
lighter: d ?
|
|
1004
|
-
light: d ?
|
|
1003
|
+
lighter: d ? sr(d, 0.5) : c.lighter,
|
|
1004
|
+
light: d ? sr(d, 0.25) : c.light,
|
|
1005
1005
|
main: d || c.main,
|
|
1006
|
-
dark: d ?
|
|
1007
|
-
darker: d ?
|
|
1006
|
+
dark: d ? rr(d, 0.25) : c.dark,
|
|
1007
|
+
darker: d ? rr(d, 0.5) : c.darker
|
|
1008
1008
|
};
|
|
1009
1009
|
}, o = {
|
|
1010
1010
|
primary: a(i ? "primary_color_dark" : "primary_color", e.palette.primary),
|
|
@@ -5141,35 +5141,23 @@ const lh = [
|
|
|
5141
5141
|
ON_TRANSACTION_UNSPLIT_CANCEL: "onTransactionUnsplitCancel"
|
|
5142
5142
|
}, Sc = {
|
|
5143
5143
|
ASC: "ASC",
|
|
5144
|
-
DESC: "DESC"
|
|
5145
|
-
|
|
5146
|
-
ASC: "ascending",
|
|
5147
|
-
DESC: "descending"
|
|
5148
|
-
},
|
|
5149
|
-
ALIGN: {
|
|
5150
|
-
center: "center",
|
|
5151
|
-
left: "flex-start",
|
|
5152
|
-
right: "flex-end"
|
|
5153
|
-
}
|
|
5154
|
-
}, De = {
|
|
5144
|
+
DESC: "DESC"
|
|
5145
|
+
}, ve = {
|
|
5155
5146
|
ADD: "Add",
|
|
5156
5147
|
ADD_CATEGORY: "Add Category",
|
|
5157
5148
|
CHANGE_CATEGORY: "Change Category",
|
|
5158
|
-
CHANGE_DATE: "Change Date",
|
|
5159
5149
|
CLOSE: "Close",
|
|
5160
5150
|
DELETE: "Delete",
|
|
5161
5151
|
EDIT: "Edit",
|
|
5162
|
-
HIDE: "Hide",
|
|
5163
5152
|
SAVE: "Save",
|
|
5164
5153
|
SPLIT: "Split",
|
|
5165
5154
|
SELECT: "Select",
|
|
5166
|
-
UNHIDE: "Unhide",
|
|
5167
5155
|
UNSPLIT: "Unsplit"
|
|
5168
|
-
},
|
|
5156
|
+
}, De = {
|
|
5169
5157
|
TRANSACTION_DETAILS: "Transaction Details",
|
|
5170
5158
|
TRANSACTIONS_LIST: "Transactions List",
|
|
5171
5159
|
TRANSACTIONS_WIDGET: "Transactions Widget"
|
|
5172
|
-
},
|
|
5160
|
+
}, Ne = {
|
|
5173
5161
|
ADD_TRANSACTION: "Manual Transaction",
|
|
5174
5162
|
CATEGORY: "Category",
|
|
5175
5163
|
DATE: "Date",
|
|
@@ -5186,228 +5174,223 @@ const lh = [
|
|
|
5186
5174
|
TAG_DELETE: "Delete Tag",
|
|
5187
5175
|
TAG_EDIT: "Edit Tag",
|
|
5188
5176
|
TRANSACTION: "Transaction",
|
|
5189
|
-
TRANSACTIONS_LIST: "Transactions List",
|
|
5190
5177
|
UNHIDE_TRANSACTION: "Unhide Transaction"
|
|
5191
5178
|
}, Lr = {
|
|
5192
5179
|
// splits
|
|
5193
5180
|
[q.ON_TRANSACTION_SPLIT_CLICK]: {
|
|
5194
|
-
action:
|
|
5195
|
-
category:
|
|
5196
|
-
label:
|
|
5181
|
+
action: ve.SELECT,
|
|
5182
|
+
category: De.TRANSACTION_DETAILS,
|
|
5183
|
+
label: Ne.SPLITS
|
|
5197
5184
|
},
|
|
5198
5185
|
[q.ON_TRANSACTION_SPLIT_CATEGORY_CLICK]: {
|
|
5199
|
-
action:
|
|
5200
|
-
category:
|
|
5201
|
-
label:
|
|
5186
|
+
action: ve.ADD_CATEGORY,
|
|
5187
|
+
category: De.TRANSACTION_DETAILS,
|
|
5188
|
+
label: Ne.SPLITS
|
|
5202
5189
|
},
|
|
5203
5190
|
[q.ON_TRANSACTION_SPLIT_DELETE_CLICK]: {
|
|
5204
|
-
action:
|
|
5205
|
-
category:
|
|
5206
|
-
label:
|
|
5191
|
+
action: ve.DELETE,
|
|
5192
|
+
category: De.TRANSACTION_DETAILS,
|
|
5193
|
+
label: Ne.SPLITS
|
|
5207
5194
|
},
|
|
5208
5195
|
[q.ON_TRANSACTION_SPLIT_SAVE_CLICK]: {
|
|
5209
|
-
action:
|
|
5210
|
-
category:
|
|
5211
|
-
label:
|
|
5196
|
+
action: ve.SPLIT,
|
|
5197
|
+
category: De.TRANSACTION_DETAILS,
|
|
5198
|
+
label: Ne.SPLITS
|
|
5212
5199
|
},
|
|
5213
5200
|
[q.ON_TRANSACTION_UNSPLIT]: {
|
|
5214
|
-
action:
|
|
5215
|
-
category:
|
|
5216
|
-
label:
|
|
5201
|
+
action: ve.UNSPLIT,
|
|
5202
|
+
category: De.TRANSACTION_DETAILS,
|
|
5203
|
+
label: Ne.SPLITS
|
|
5217
5204
|
},
|
|
5218
5205
|
// category
|
|
5219
5206
|
[q.ON_TRANSACTION_CATEGORY_CLICK]: {
|
|
5220
|
-
action:
|
|
5221
|
-
category:
|
|
5222
|
-
label:
|
|
5207
|
+
action: ve.SELECT,
|
|
5208
|
+
category: De.TRANSACTIONS_LIST,
|
|
5209
|
+
label: Ne.CATEGORY
|
|
5223
5210
|
},
|
|
5224
5211
|
[q.ON_TRANSACTION_CATEGORY_CHANGED]: {
|
|
5225
|
-
action:
|
|
5226
|
-
category:
|
|
5227
|
-
label:
|
|
5212
|
+
action: ve.CHANGE_CATEGORY,
|
|
5213
|
+
category: De.TRANSACTION_DETAILS,
|
|
5214
|
+
label: Ne.CATEGORY
|
|
5228
5215
|
},
|
|
5229
5216
|
// date
|
|
5230
5217
|
[q.ON_TRANSACTION_DATE_CHANGED]: {
|
|
5231
|
-
action:
|
|
5232
|
-
category:
|
|
5233
|
-
label:
|
|
5218
|
+
action: ve.SAVE,
|
|
5219
|
+
category: De.TRANSACTION_DETAILS,
|
|
5220
|
+
label: Ne.DATE
|
|
5234
5221
|
},
|
|
5235
5222
|
[q.ON_TRANSACTION_DATE_CLICK]: {
|
|
5236
|
-
action:
|
|
5237
|
-
category:
|
|
5238
|
-
label:
|
|
5223
|
+
action: ve.SELECT,
|
|
5224
|
+
category: De.TRANSACTION_DETAILS,
|
|
5225
|
+
label: Ne.DATE
|
|
5239
5226
|
},
|
|
5240
5227
|
// merchant logo
|
|
5241
5228
|
[q.ON_TRANSACTION_DELETE_LOGO_CANCEL]: {
|
|
5242
|
-
action:
|
|
5243
|
-
category:
|
|
5244
|
-
label:
|
|
5229
|
+
action: ve.CLOSE,
|
|
5230
|
+
category: De.TRANSACTION_DETAILS,
|
|
5231
|
+
label: Ne.DELETE_MERCHANT_LOGO
|
|
5245
5232
|
},
|
|
5246
5233
|
[q.ON_TRANSACTION_DELETE_LOGO_CLICK]: {
|
|
5247
|
-
action:
|
|
5248
|
-
category:
|
|
5249
|
-
label:
|
|
5234
|
+
action: ve.SELECT,
|
|
5235
|
+
category: De.TRANSACTION_DETAILS,
|
|
5236
|
+
label: Ne.DELETE_MERCHANT_LOGO
|
|
5250
5237
|
},
|
|
5251
5238
|
[q.ON_TRANSACTION_DELETE_LOGO_DELETED]: {
|
|
5252
|
-
action:
|
|
5253
|
-
category:
|
|
5254
|
-
label:
|
|
5239
|
+
action: ve.DELETE,
|
|
5240
|
+
category: De.TRANSACTION_DETAILS,
|
|
5241
|
+
label: Ne.DELETE_MERCHANT_LOGO
|
|
5255
5242
|
},
|
|
5256
5243
|
// description
|
|
5257
5244
|
[q.ON_TRANSACTION_DESCRIPTION_EDIT_CLICK]: {
|
|
5258
|
-
action:
|
|
5259
|
-
category:
|
|
5260
|
-
label:
|
|
5245
|
+
action: ve.EDIT,
|
|
5246
|
+
category: De.TRANSACTION_DETAILS,
|
|
5247
|
+
label: Ne.DESCRIPTION
|
|
5261
5248
|
},
|
|
5262
5249
|
[q.ON_TRANSACTION_DESCRIPTION_SAVE_CLICK]: {
|
|
5263
|
-
action:
|
|
5264
|
-
category:
|
|
5265
|
-
label:
|
|
5250
|
+
action: ve.SAVE,
|
|
5251
|
+
category: De.TRANSACTION_DETAILS,
|
|
5252
|
+
label: Ne.DESCRIPTION
|
|
5266
5253
|
},
|
|
5267
5254
|
// hide transactions
|
|
5268
5255
|
[q.ON_TRANSACTION_HIDDEN]: {
|
|
5269
|
-
action:
|
|
5270
|
-
category:
|
|
5271
|
-
label:
|
|
5256
|
+
action: ve.SAVE,
|
|
5257
|
+
category: De.TRANSACTION_DETAILS,
|
|
5258
|
+
label: Ne.HIDE_TRANSACTION
|
|
5272
5259
|
},
|
|
5273
5260
|
[q.ON_TRANSACTION_HIDE_CLICK]: {
|
|
5274
|
-
action:
|
|
5275
|
-
category:
|
|
5276
|
-
label:
|
|
5261
|
+
action: ve.SELECT,
|
|
5262
|
+
category: De.TRANSACTION_DETAILS,
|
|
5263
|
+
label: Ne.HIDE_TRANSACTION
|
|
5277
5264
|
},
|
|
5278
5265
|
[q.ON_TRANSACTION_HIDE_CANCEL_CLICK]: {
|
|
5279
|
-
action:
|
|
5280
|
-
category:
|
|
5281
|
-
label:
|
|
5266
|
+
action: ve.CLOSE,
|
|
5267
|
+
category: De.TRANSACTION_DETAILS,
|
|
5268
|
+
label: Ne.HIDE_TRANSACTION
|
|
5282
5269
|
},
|
|
5283
5270
|
// transaction list
|
|
5284
5271
|
[q.ON_TRANSACTION_LIST_ITEM_CLICK]: {
|
|
5285
|
-
action:
|
|
5286
|
-
category:
|
|
5287
|
-
label:
|
|
5272
|
+
action: ve.SELECT,
|
|
5273
|
+
category: De.TRANSACTIONS_LIST,
|
|
5274
|
+
label: Ne.TRANSACTION
|
|
5288
5275
|
},
|
|
5289
5276
|
// memo
|
|
5290
5277
|
[q.ON_TRANSACTION_MEMO_CHANGED]: {
|
|
5291
|
-
action:
|
|
5292
|
-
category:
|
|
5293
|
-
label:
|
|
5278
|
+
action: ve.SAVE,
|
|
5279
|
+
category: De.TRANSACTION_DETAILS,
|
|
5280
|
+
label: Ne.MEMO
|
|
5294
5281
|
},
|
|
5295
5282
|
[q.ON_TRANSACTION_MEMO_CLICK]: {
|
|
5296
|
-
action:
|
|
5297
|
-
category:
|
|
5298
|
-
label:
|
|
5283
|
+
action: ve.SELECT,
|
|
5284
|
+
category: De.TRANSACTION_DETAILS,
|
|
5285
|
+
label: Ne.MEMO
|
|
5299
5286
|
},
|
|
5300
5287
|
// tags
|
|
5301
5288
|
[q.ON_TRANSACTION_TAGS_CHANGED]: {
|
|
5302
|
-
action:
|
|
5303
|
-
category:
|
|
5304
|
-
label:
|
|
5289
|
+
action: ve.SAVE,
|
|
5290
|
+
category: De.TRANSACTION_DETAILS,
|
|
5291
|
+
label: Ne.TAGS
|
|
5305
5292
|
},
|
|
5306
5293
|
[q.ON_TRANSACTION_TAGS_CLICK]: {
|
|
5307
|
-
action:
|
|
5308
|
-
category:
|
|
5309
|
-
label:
|
|
5294
|
+
action: ve.SELECT,
|
|
5295
|
+
category: De.TRANSACTION_DETAILS,
|
|
5296
|
+
label: Ne.TAGS
|
|
5310
5297
|
},
|
|
5311
5298
|
[q.ON_TRANSACTION_TAGS_TAG_ADD_CANCEL_CLICK]: {
|
|
5312
|
-
action:
|
|
5313
|
-
category:
|
|
5314
|
-
label:
|
|
5299
|
+
action: ve.CLOSE,
|
|
5300
|
+
category: De.TRANSACTION_DETAILS,
|
|
5301
|
+
label: Ne.TAGS
|
|
5315
5302
|
},
|
|
5316
5303
|
[q.ON_TRANSACTION_TAGS_TAG_ADD_CLICK]: {
|
|
5317
|
-
action:
|
|
5318
|
-
category:
|
|
5319
|
-
label:
|
|
5304
|
+
action: ve.ADD,
|
|
5305
|
+
category: De.TRANSACTION_DETAILS,
|
|
5306
|
+
label: Ne.TAG_ADD
|
|
5320
5307
|
},
|
|
5321
5308
|
[q.ON_TRANSACTION_TAGS_TAG_ADDED]: {
|
|
5322
|
-
action:
|
|
5323
|
-
category:
|
|
5324
|
-
label:
|
|
5309
|
+
action: ve.SAVE,
|
|
5310
|
+
category: De.TRANSACTION_DETAILS,
|
|
5311
|
+
label: Ne.TAG_ADD
|
|
5325
5312
|
},
|
|
5326
5313
|
[q.ON_TRANSACTION_TAGS_TAG_DELETE_CLICK]: {
|
|
5327
|
-
action:
|
|
5328
|
-
category:
|
|
5329
|
-
label:
|
|
5314
|
+
action: ve.SELECT,
|
|
5315
|
+
category: De.TRANSACTION_DETAILS,
|
|
5316
|
+
label: Ne.TAG_DELETE
|
|
5330
5317
|
},
|
|
5331
5318
|
[q.ON_TRANSACTION_TAGS_TAG_DELETE_CANCEL_CLICK]: {
|
|
5332
|
-
action:
|
|
5333
|
-
category:
|
|
5334
|
-
label:
|
|
5319
|
+
action: ve.CLOSE,
|
|
5320
|
+
category: De.TRANSACTION_DETAILS,
|
|
5321
|
+
label: Ne.TAG_DELETE
|
|
5335
5322
|
},
|
|
5336
5323
|
[q.ON_TRANSACTION_TAGS_TAG_DELETED]: {
|
|
5337
|
-
action:
|
|
5338
|
-
category:
|
|
5339
|
-
label:
|
|
5324
|
+
action: ve.SAVE,
|
|
5325
|
+
category: De.TRANSACTION_DETAILS,
|
|
5326
|
+
label: Ne.TAG_DELETE
|
|
5340
5327
|
},
|
|
5341
5328
|
[q.ON_TRANSACTION_TAGS_TAG_EDIT_CLICK]: {
|
|
5342
|
-
action:
|
|
5343
|
-
category:
|
|
5344
|
-
label:
|
|
5329
|
+
action: ve.EDIT,
|
|
5330
|
+
category: De.TRANSACTION_DETAILS,
|
|
5331
|
+
label: Ne.TAG_EDIT
|
|
5345
5332
|
},
|
|
5346
5333
|
[q.ON_TRANSACTION_TAGS_TAG_EDIT_SAVED]: {
|
|
5347
|
-
action:
|
|
5348
|
-
category:
|
|
5349
|
-
label:
|
|
5334
|
+
action: ve.SAVE,
|
|
5335
|
+
category: De.TRANSACTION_DETAILS,
|
|
5336
|
+
label: Ne.TAG_EDIT
|
|
5350
5337
|
},
|
|
5351
5338
|
// flag
|
|
5352
5339
|
[q.ON_TRANSACTION_TOGGLE_FLAG_CLICK]: {
|
|
5353
|
-
action:
|
|
5354
|
-
category:
|
|
5355
|
-
label:
|
|
5340
|
+
action: ve.SELECT,
|
|
5341
|
+
category: De.TRANSACTION_DETAILS,
|
|
5342
|
+
label: Ne.FLAG
|
|
5356
5343
|
},
|
|
5357
5344
|
// hide
|
|
5358
5345
|
[q.ON_TRANSACTION_UNHIDDEN]: {
|
|
5359
|
-
action:
|
|
5360
|
-
category:
|
|
5361
|
-
label:
|
|
5346
|
+
action: ve.SAVE,
|
|
5347
|
+
category: De.TRANSACTION_DETAILS,
|
|
5348
|
+
label: Ne.UNHIDE_TRANSACTION
|
|
5362
5349
|
},
|
|
5363
5350
|
[q.ON_TRANSACTION_UNHIDE_CLICK]: {
|
|
5364
|
-
action:
|
|
5365
|
-
category:
|
|
5366
|
-
label:
|
|
5351
|
+
action: ve.SELECT,
|
|
5352
|
+
category: De.TRANSACTION_DETAILS,
|
|
5353
|
+
label: Ne.UNHIDE_TRANSACTION
|
|
5367
5354
|
},
|
|
5368
5355
|
[q.ON_TRANSACTION_UNHIDE_CANCEL_CLICK]: {
|
|
5369
|
-
action:
|
|
5370
|
-
category:
|
|
5371
|
-
label:
|
|
5356
|
+
action: ve.CLOSE,
|
|
5357
|
+
category: De.TRANSACTION_DETAILS,
|
|
5358
|
+
label: Ne.UNHIDE_TRANSACTION
|
|
5372
5359
|
},
|
|
5373
5360
|
// export CSV
|
|
5374
5361
|
[q.ON_TRANSACTION_EXPORT_CSV_CLICK]: {
|
|
5375
|
-
action:
|
|
5376
|
-
category:
|
|
5377
|
-
label:
|
|
5362
|
+
action: ve.SELECT,
|
|
5363
|
+
category: De.TRANSACTIONS_WIDGET,
|
|
5364
|
+
label: Ne.EXPORT_CSV
|
|
5378
5365
|
},
|
|
5379
5366
|
// add transaction
|
|
5380
5367
|
[q.ON_TRANSACTION_MANUAL_ADD_CLICK]: {
|
|
5381
|
-
action:
|
|
5382
|
-
category:
|
|
5383
|
-
label:
|
|
5368
|
+
action: ve.SELECT,
|
|
5369
|
+
category: De.TRANSACTIONS_WIDGET,
|
|
5370
|
+
label: Ne.ADD_TRANSACTION
|
|
5384
5371
|
},
|
|
5385
5372
|
[q.ON_TRANSACTION_MANUAL_ADD_ADDED]: {
|
|
5386
|
-
action:
|
|
5387
|
-
category:
|
|
5388
|
-
label:
|
|
5373
|
+
action: ve.ADD,
|
|
5374
|
+
category: De.TRANSACTIONS_WIDGET,
|
|
5375
|
+
label: Ne.ADD_TRANSACTION
|
|
5389
5376
|
},
|
|
5390
5377
|
[q.ON_TRANSACTION_DELETE_CLICK]: {
|
|
5391
|
-
action:
|
|
5392
|
-
category:
|
|
5393
|
-
label:
|
|
5378
|
+
action: ve.SELECT,
|
|
5379
|
+
category: De.TRANSACTIONS_WIDGET,
|
|
5380
|
+
label: Ne.DELETE_TRANSACTION
|
|
5394
5381
|
},
|
|
5395
5382
|
[q.ON_TRANSACTION_DELETE_CANCEL]: {
|
|
5396
|
-
action:
|
|
5397
|
-
category:
|
|
5398
|
-
label:
|
|
5383
|
+
action: ve.CLOSE,
|
|
5384
|
+
category: De.TRANSACTIONS_WIDGET,
|
|
5385
|
+
label: Ne.DELETE_TRANSACTION
|
|
5399
5386
|
},
|
|
5400
5387
|
[q.ON_TRANSACTION_DELETE_DELETED]: {
|
|
5401
|
-
action:
|
|
5402
|
-
category:
|
|
5403
|
-
label:
|
|
5388
|
+
action: ve.DELETE,
|
|
5389
|
+
category: De.TRANSACTIONS_WIDGET,
|
|
5390
|
+
label: Ne.DELETE_TRANSACTION
|
|
5404
5391
|
}
|
|
5405
5392
|
}, uh = async (e, n) => !n || !Lr[e] ? null : n.sendAnalyticEvent(Lr[e]), no = {
|
|
5406
|
-
FLAG: "flag",
|
|
5407
5393
|
DATE: "date",
|
|
5408
|
-
PAYEE: "payee",
|
|
5409
|
-
CATEGORY: "category",
|
|
5410
|
-
ACCOUNT: "account",
|
|
5411
5394
|
AMOUNT: "amount"
|
|
5412
5395
|
}, _h = (e, n, i, a = []) => {
|
|
5413
5396
|
const o = n.reduce((c, d) => ({ ...c, [d.guid]: d }), {}), r = i.reduce((c, d) => ({ ...c, [d.guid]: d }), {}), s = a.reduce((c, d) => {
|
|
@@ -5894,52 +5877,54 @@ const Lh = ({ transaction: e, onClick: n }) => {
|
|
|
5894
5877
|
width: c = "100%",
|
|
5895
5878
|
zeroState: d = /* @__PURE__ */ t(kh, {})
|
|
5896
5879
|
}) => {
|
|
5897
|
-
const { isLoading: _, sortedTransactions: u
|
|
5898
|
-
|
|
5899
|
-
|
|
5900
|
-
|
|
5880
|
+
const { isLoading: _, sortedTransactions: u, rawTransactions: h } = Me();
|
|
5881
|
+
console.log("exp allTransactions", u), console.log("exp rawTransactions", h);
|
|
5882
|
+
const m = g.useMemo(() => s ? u : u.filter((w) => !w.is_hidden), [u, _, s]), { clearExpandedSplits: p, setShowInsights: C, toggleSplit: E } = Ot(), { onEvent: y } = X(), S = (w) => {
|
|
5883
|
+
const N = m.find((R) => R.guid === w);
|
|
5884
|
+
if (N?.has_been_split) {
|
|
5885
|
+
E(N.guid);
|
|
5901
5886
|
return;
|
|
5902
5887
|
}
|
|
5903
|
-
|
|
5904
|
-
account_guid:
|
|
5905
|
-
transaction_guid:
|
|
5906
|
-
}), a?.(
|
|
5907
|
-
},
|
|
5908
|
-
count:
|
|
5909
|
-
getScrollElement: () =>
|
|
5910
|
-
estimateSize: (
|
|
5888
|
+
y(F.ACCOUNT_DETAILS_CLICK_TRANSACTION, {
|
|
5889
|
+
account_guid: N?.account_guid,
|
|
5890
|
+
transaction_guid: w
|
|
5891
|
+
}), a?.(w);
|
|
5892
|
+
}, I = g.useRef(null), v = $s({
|
|
5893
|
+
count: m.length,
|
|
5894
|
+
getScrollElement: () => I.current,
|
|
5895
|
+
estimateSize: (w) => kr + (Mr(w, m) ? Gr : 0),
|
|
5911
5896
|
overscan: 5
|
|
5912
5897
|
});
|
|
5913
|
-
return g.useEffect(() =>
|
|
5898
|
+
return g.useEffect(() => v.measure(), [m]), g.useEffect(() => C(o), [o]), g.useEffect(() => () => p(), []), console.log("exp transactions", m), /* @__PURE__ */ t(oe, { children: /* @__PURE__ */ t(O, { height: n, overflow: "auto", ref: I, width: c, children: /* @__PURE__ */ l(
|
|
5914
5899
|
O,
|
|
5915
5900
|
{
|
|
5916
5901
|
height: (
|
|
5917
5902
|
// set the height to auto when there are no transactions so the zero state isn't set to 0
|
|
5918
|
-
|
|
5903
|
+
v.getVirtualItems().length === 0 ? "auto" : v.getTotalSize()
|
|
5919
5904
|
),
|
|
5920
5905
|
position: "relative",
|
|
5921
5906
|
width: "100%",
|
|
5922
5907
|
children: [
|
|
5923
5908
|
(_ || r) && i,
|
|
5924
|
-
!_ && !r &&
|
|
5925
|
-
!_ && !r &&
|
|
5926
|
-
const
|
|
5909
|
+
!_ && !r && v.getVirtualItems().length === 0 && d,
|
|
5910
|
+
!_ && !r && v.getVirtualItems().length > 0 && v.getVirtualItems().map((w) => {
|
|
5911
|
+
const N = m[w.index], R = Mr(w.index, m), M = Gh(w.index, m), k = kr + (R ? Gr : 0);
|
|
5927
5912
|
return /* @__PURE__ */ l(
|
|
5928
5913
|
O,
|
|
5929
5914
|
{
|
|
5930
5915
|
sx: {
|
|
5931
|
-
height:
|
|
5916
|
+
height: k,
|
|
5932
5917
|
position: "absolute",
|
|
5933
|
-
transform: `translateY(${
|
|
5918
|
+
transform: `translateY(${w.start}px)`,
|
|
5934
5919
|
width: "100%"
|
|
5935
5920
|
},
|
|
5936
5921
|
children: [
|
|
5937
|
-
|
|
5938
|
-
/* @__PURE__ */ t(Mo, { onClick:
|
|
5939
|
-
/* @__PURE__ */ t(P, { sx: { ml:
|
|
5922
|
+
R && /* @__PURE__ */ t(Ta, { bgcolor: e, children: ba(N.date) }),
|
|
5923
|
+
/* @__PURE__ */ t(Mo, { onClick: S, transaction: N }),
|
|
5924
|
+
/* @__PURE__ */ t(P, { sx: { ml: M ? 24 : 0 } })
|
|
5940
5925
|
]
|
|
5941
5926
|
},
|
|
5942
|
-
|
|
5927
|
+
N.guid
|
|
5943
5928
|
);
|
|
5944
5929
|
})
|
|
5945
5930
|
]
|
|
@@ -18379,49 +18364,46 @@ const HC = ({
|
|
|
18379
18364
|
/* @__PURE__ */ t(U, { content: c, sx: { py: 1 } }),
|
|
18380
18365
|
i === d ? /* @__PURE__ */ t(s, { ...o === "ol" && { type: "a" }, children: a.map((_, u) => /* @__PURE__ */ t("li", { children: /* @__PURE__ */ t(U, { content: _, sx: { py: 1 } }) }, u)) }) : null
|
|
18381
18366
|
] }, d)) }) });
|
|
18382
|
-
},
|
|
18383
|
-
ACCOUNT_DETAILS: `${
|
|
18384
|
-
ACCOUNT_OVERVIEW: `${
|
|
18385
|
-
|
|
18386
|
-
|
|
18387
|
-
|
|
18388
|
-
|
|
18389
|
-
|
|
18390
|
-
|
|
18391
|
-
|
|
18392
|
-
|
|
18393
|
-
|
|
18394
|
-
|
|
18395
|
-
|
|
18396
|
-
|
|
18397
|
-
|
|
18398
|
-
|
|
18399
|
-
|
|
18400
|
-
|
|
18401
|
-
|
|
18402
|
-
|
|
18403
|
-
|
|
18404
|
-
|
|
18405
|
-
|
|
18406
|
-
|
|
18407
|
-
|
|
18408
|
-
|
|
18409
|
-
|
|
18410
|
-
|
|
18411
|
-
|
|
18412
|
-
|
|
18413
|
-
|
|
18414
|
-
|
|
18415
|
-
|
|
18416
|
-
|
|
18417
|
-
|
|
18418
|
-
|
|
18419
|
-
|
|
18420
|
-
|
|
18421
|
-
|
|
18422
|
-
TRANSACTIONS_OVERVIEW: `${ve}/transactions/Overview.png`,
|
|
18423
|
-
TRANSACTIONS_RULES: `${ve}/transactions/TransactionRules.png`,
|
|
18424
|
-
TRENDS_WIDGET: `${ve}/trends/TrendsWidget.png`
|
|
18367
|
+
}, Re = "https://content.moneydesktop.com/storage/MD_Assets/md/help", Oe = {
|
|
18368
|
+
ACCOUNT_DETAILS: `${Re}/account/AccountDetails.png`,
|
|
18369
|
+
ACCOUNT_OVERVIEW: `${Re}/account/AccountsOverview.png`,
|
|
18370
|
+
ACCOUNT_BROKEN_CONNECTION: `${Re}/account/BrokenConnection.png`,
|
|
18371
|
+
ACCOUNT_MANAGE_CONNECTIONS: `${Re}/account/ManageConnections.png`,
|
|
18372
|
+
BUDGETS_ADD_SUB_BUDGET: `${Re}/budgets/AddSubBudget.png`,
|
|
18373
|
+
BUDGETS_WIDGET: `${Re}/budgets/BudgetWidget.png`,
|
|
18374
|
+
BUDGETS_EDIT_INCOME: `${Re}/budgets/EditIncome.png`,
|
|
18375
|
+
CASHFLOW_WIDGET: `${Re}/cashflow/CashFlowWidget.png`,
|
|
18376
|
+
CASHFLOW_EXPENSE_DETAILS: `${Re}/cashflow/ExpenseDetailsCurrent.png`,
|
|
18377
|
+
CASHFLOW_MANAGE_EXPENSES: `${Re}/cashflow/ManageExpenses.png`,
|
|
18378
|
+
DEBTS_DETAILS: `${Re}/debts/DebtDetails.png`,
|
|
18379
|
+
DEBTS_OVERVIEW: `${Re}/debts/DebtOverview.png`,
|
|
18380
|
+
DEBTS_PRIORITIZATION: `${Re}/debts/DebtPrioritization.png`,
|
|
18381
|
+
DEBTS_SNOWBALL_METHOD: `${Re}/debts/SnowballMethod.png`,
|
|
18382
|
+
GENERAL_CATEGORIZE_TRANSACTIONS: `${Re}/general/CategorizeTransactions.png`,
|
|
18383
|
+
GOALS_CREATE_GOAL: `${Re}/goals/CreateGoal.png`,
|
|
18384
|
+
GOALS_DEBT_GOALS: `${Re}/goals/DebtGoals.png`,
|
|
18385
|
+
GOALS_MANAGE_GOALS: `${Re}/goals/ManageGoals.png`,
|
|
18386
|
+
GOALS_RETIREMENT_GOALS: `${Re}/goals/RetirementGoals.png`,
|
|
18387
|
+
GOALS_SAVINGS_GOALS: `${Re}/goals/SavingsGoals.png`,
|
|
18388
|
+
INSIGHTS_CAROUSEL: `${Re}/insights/InsightsCarousel.png`,
|
|
18389
|
+
INSIGHTS_FEED: `${Re}/insights/InsightsFeed.png`,
|
|
18390
|
+
INVESTMENTS_WIDGET_DETAILS: `${Re}/investments/WidgetDetails.png`,
|
|
18391
|
+
MOBILE_ADD_MOBILE_DEVICE: `${Re}/mobile/AddMobileDevice.png`,
|
|
18392
|
+
NETWORTH_ASSETS_LIABILITIES: `${Re}/networth/AssetsLiabilities.png`,
|
|
18393
|
+
NETWORTH_GAINS_LOSSES: `${Re}/networth/GainsLosses.png`,
|
|
18394
|
+
NETWORTH_WIDGET: `${Re}/networth/NetWorthWidget.png`,
|
|
18395
|
+
NOTIFICATIONS_MANAGING: `${Re}/notifications/ManagingNotifications.png`,
|
|
18396
|
+
NOTIFICATIONS_OVERVIEW: `${Re}/notifications/NotificationOverview.png`,
|
|
18397
|
+
RECURRING_TRANSACTIONS_EXPENSE_DETAILS: `${Re}/recurringtransactions/expenseDetails.png`,
|
|
18398
|
+
RECURRING_TRANSACTIONS_MANAGE_EXPENSES: `${Re}/recurringtransactions/manageExpenses.png`,
|
|
18399
|
+
RECURRING_TRANSACTIONS_OVERVIEW: `${Re}/recurringtransactions/overview.png`,
|
|
18400
|
+
SPENDING_WIDGET: `${Re}/spending/SpendingWidget.png`,
|
|
18401
|
+
TRANSACTIONS_CATEGORIZE: `${Re}/transactions/CategorizeTransactions.png`,
|
|
18402
|
+
TRANSACTIONS_EDIT: `${Re}/transactions/EditTransactions.png`,
|
|
18403
|
+
TRANSACTIONS_EXPORT: `${Re}/transactions/ExportTransactions.png`,
|
|
18404
|
+
TRANSACTIONS_OVERVIEW: `${Re}/transactions/Overview.png`,
|
|
18405
|
+
TRANSACTIONS_RULES: `${Re}/transactions/TransactionRules.png`,
|
|
18406
|
+
TRENDS_WIDGET: `${Re}/trends/TrendsWidget.png`
|
|
18425
18407
|
}, tf = ({ copy: e, topicKey: n }) => ({
|
|
18426
18408
|
"accounts-overview": /* @__PURE__ */ l(g.Fragment, { children: [
|
|
18427
18409
|
/* @__PURE__ */ t(
|
|
@@ -22165,7 +22147,6 @@ const Jo = {
|
|
|
22165
22147
|
}),
|
|
22166
22148
|
{}
|
|
22167
22149
|
), Tn = {
|
|
22168
|
-
CARD: "Card",
|
|
22169
22150
|
CAROUSEL_CONTROL: "Carousel Control",
|
|
22170
22151
|
MICRO_WIDGET: "Micro Widget",
|
|
22171
22152
|
VIEW_MORE: "View More"
|
|
@@ -25184,7 +25165,7 @@ const Va = ({
|
|
|
25184
25165
|
);
|
|
25185
25166
|
return g.useEffect(() => {
|
|
25186
25167
|
r({
|
|
25187
|
-
dateRange: { start:
|
|
25168
|
+
dateRange: { start: zd(jd(), 90), end: Yd() },
|
|
25188
25169
|
accounts: [a.guid]
|
|
25189
25170
|
});
|
|
25190
25171
|
}, [a]), g.useEffect(() => i(F.ACCOUNT_DETAILS_VIEW_TRANSACTIONS), []), /* @__PURE__ */ l(Z, { children: [
|