@mx-cartographer/experiences 3.8.0-alpha.sms8 → 3.8.0
Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.es.js
CHANGED
@@ -45,7 +45,7 @@ import * as XA from "d3";
|
|
45
45
|
import { selectAll as Wi, interpolateString as Yi, arc as Vi } from "d3";
|
46
46
|
import { useTheme as Ke, keyframes as Ji, ThemeProvider as la } from "@mui/material/styles";
|
47
47
|
import { ResponsiveChartContainer as Zi, AreaPlot as $i, LinePlot as Ao, MarkPlot as eo, BarPlot as to, ChartsXAxis as no, ChartsYAxis as ro, ChartsReferenceLine as ao, ChartsLegend as io, LineChart as oo } from "@mui/x-charts";
|
48
|
-
import { Stack as je, Box as te, useTheme as Je, Card as
|
48
|
+
import { Stack as je, Box as te, useTheme as Je, Card as pn, CardContent as da, Divider as ln, Grid as ir, List as so } from "@mui/material";
|
49
49
|
import { addYears as ct } from "date-fns/addYears";
|
50
50
|
import { differenceInCalendarDays as co } from "date-fns/differenceInCalendarDays";
|
51
51
|
import { endOfToday as ze } from "date-fns/endOfToday";
|
@@ -65,14 +65,14 @@ import { v4 as ho } from "uuid";
|
|
65
65
|
import wn from "@mui/material/CircularProgress";
|
66
66
|
import bt from "@mui/material/InputAdornment";
|
67
67
|
import go from "@mui/material/Radio";
|
68
|
-
import
|
68
|
+
import me from "@mui/material/Avatar";
|
69
69
|
import PA from "@mui/material/ListItemAvatar";
|
70
70
|
import re from "@mui/material/ListItemIcon";
|
71
71
|
import { makeAutoObservable as wA, runInAction as nA, observable as Co } from "mobx";
|
72
72
|
import { differenceInDays as fo } from "date-fns/differenceInDays";
|
73
73
|
import { getMonth as Qe } from "date-fns/getMonth";
|
74
74
|
import { useVirtualizer as ga } from "@tanstack/react-virtual";
|
75
|
-
import { fromUnixTime as lr, isSameDay as vo, subDays as
|
75
|
+
import { fromUnixTime as lr, isSameDay as vo, subDays as mo, startOfToday as po, endOfToday as Eo, differenceInCalendarMonths as yo } from "date-fns";
|
76
76
|
import ee from "@mui/material/Tab";
|
77
77
|
import Ze from "@mui/material/Tabs";
|
78
78
|
import { parseISO as Ca } from "date-fns/parseISO";
|
@@ -111,12 +111,12 @@ import va from "@mui/material/Badge";
|
|
111
111
|
import { PickersDay as Po } from "@mui/x-date-pickers/PickersDay";
|
112
112
|
import No from "@mui/icons-material/AccessTimeFilled";
|
113
113
|
import Mo from "@mui/icons-material/MonetizationOn";
|
114
|
-
import
|
114
|
+
import ma from "@mui/icons-material/CheckCircle";
|
115
115
|
import { getDate as it } from "date-fns/getDate";
|
116
116
|
import { isValid as Ro } from "date-fns/isValid";
|
117
117
|
import Me from "@mui/material/Unstable_Grid2";
|
118
118
|
import { DatePicker as Ho } from "@mui/x-date-pickers";
|
119
|
-
import
|
119
|
+
import pa from "@mui/material/Collapse";
|
120
120
|
import zo from "@mui/material/Chip";
|
121
121
|
import qo from "@mui/icons-material/EditOutlined";
|
122
122
|
import On from "@mui/icons-material/Error";
|
@@ -143,32 +143,32 @@ import Jo from "@mui/icons-material/ChevronLeft";
|
|
143
143
|
import Zo from "@mui/material/CardActions";
|
144
144
|
import hr from "@mui/material/Typography";
|
145
145
|
import $o from "@mui/material/CssBaseline";
|
146
|
-
const As = async (A, e, n = "1.0.0", r = "Experiences"
|
147
|
-
const
|
146
|
+
const As = async (A, e, n = "1.0.0", r = "Experiences") => {
|
147
|
+
const a = new fs(A, e), { analytics_session: i } = await a.initializeAnalyticsSession(
|
148
148
|
n,
|
149
149
|
r
|
150
|
-
),
|
150
|
+
), o = window.location.hostname;
|
151
151
|
return {
|
152
|
-
sendAnalyticEvent: async (
|
152
|
+
sendAnalyticEvent: async (s) => await a.sendAnalyticEvent({
|
153
153
|
analytics_event: {
|
154
|
-
...
|
154
|
+
...s,
|
155
155
|
app_version: "widgets-v2",
|
156
156
|
created_at: gA(/* @__PURE__ */ new Date()).toString(),
|
157
|
-
host:
|
158
|
-
name:
|
159
|
-
session_id:
|
157
|
+
host: o,
|
158
|
+
name: s?.label || "",
|
159
|
+
session_id: i.guid,
|
160
160
|
user_agent: navigator.userAgent || "",
|
161
161
|
version: 2
|
162
162
|
}
|
163
163
|
}),
|
164
|
-
sendAnalyticsPageview: async (
|
164
|
+
sendAnalyticsPageview: async (s) => await a.sendAnalyticsPageview({
|
165
165
|
analytics_pageview: {
|
166
|
-
...
|
166
|
+
...s,
|
167
167
|
app_version: "widgets-v2",
|
168
168
|
created_at: gA(/* @__PURE__ */ new Date()).toString(),
|
169
|
-
host:
|
170
|
-
name:
|
171
|
-
session_id:
|
169
|
+
host: o,
|
170
|
+
name: s.name,
|
171
|
+
session_id: i.guid,
|
172
172
|
user_agent: navigator.userAgent || ""
|
173
173
|
}
|
174
174
|
})
|
@@ -197,14 +197,13 @@ const As = async (A, e, n = "1.0.0", r = "Experiences", a = !1) => {
|
|
197
197
|
class FA {
|
198
198
|
endpoint = "/";
|
199
199
|
headers = {};
|
200
|
-
|
201
|
-
constructor(e, n, r) {
|
200
|
+
constructor(e, n) {
|
202
201
|
this.endpoint = e, this.headers = {
|
203
202
|
Accept: "application/json",
|
204
203
|
"Accept-Language": be(),
|
205
204
|
"Content-Type": "application/json",
|
206
205
|
"MD-Session-Token": n
|
207
|
-
}
|
206
|
+
};
|
208
207
|
}
|
209
208
|
get = async (e) => {
|
210
209
|
const n = {
|
@@ -216,9 +215,7 @@ class FA {
|
|
216
215
|
return r.text();
|
217
216
|
throw r;
|
218
217
|
}).then((r) => r.length ? JSON.parse(r) : {}).then((r) => r).catch((r) => {
|
219
|
-
|
220
|
-
throw r;
|
221
|
-
return r;
|
218
|
+
throw yt.notify(r), r;
|
222
219
|
});
|
223
220
|
};
|
224
221
|
post = async (e, n) => {
|
@@ -232,9 +229,7 @@ class FA {
|
|
232
229
|
throw i;
|
233
230
|
return i.text();
|
234
231
|
}).then((i) => i.length ? JSON.parse(i) : {}).then((i) => i).catch((i) => {
|
235
|
-
|
236
|
-
throw i;
|
237
|
-
return i;
|
232
|
+
throw yt.notify(i), i;
|
238
233
|
});
|
239
234
|
};
|
240
235
|
put = async (e, n) => {
|
@@ -246,9 +241,7 @@ class FA {
|
|
246
241
|
return fetch(`${this.endpoint}${e}`, a).then((i) => i.ok ? i.text() : i.text().then((o) => {
|
247
242
|
throw new Error(o);
|
248
243
|
})).then((i) => i.length ? JSON.parse(i) : {}).then((i) => i).catch((i) => {
|
249
|
-
|
250
|
-
throw i;
|
251
|
-
return i;
|
244
|
+
throw yt.notify(i), i;
|
252
245
|
});
|
253
246
|
};
|
254
247
|
delete = async (e) => {
|
@@ -259,9 +252,7 @@ class FA {
|
|
259
252
|
return fetch(`${this.endpoint}${e}`, n).then((r) => r.ok ? r.text() : r.text().then((a) => {
|
260
253
|
throw new Error(a);
|
261
254
|
})).then((r) => r.length ? JSON.parse(r) : {}).then((r) => r).catch((r) => {
|
262
|
-
|
263
|
-
throw r;
|
264
|
-
return r;
|
255
|
+
throw yt.notify(r), r;
|
265
256
|
});
|
266
257
|
};
|
267
258
|
}
|
@@ -523,7 +514,7 @@ const Hg = {
|
|
523
514
|
j.LINE_OF_CREDIT,
|
524
515
|
j.PREPAID,
|
525
516
|
j.SAVINGS
|
526
|
-
],
|
517
|
+
], m = {
|
527
518
|
// Top-level categories
|
528
519
|
AUTO_AND_TRANSPORT: "CAT-7829f71c-2e8c-afa5-2f55-fa3634b89874",
|
529
520
|
BILLS_AND_UTILITIES: "CAT-79b02f2f-2adc-88f0-ac2b-4e71ead9cfc8",
|
@@ -646,175 +637,175 @@ const Hg = {
|
|
646
637
|
BONUS: "CAT-f52f2a88-2cb6-04e4-e36a-58f7b7c6a798",
|
647
638
|
PET_FOOD_SUPPLIES: "CAT-fbcdb437-2533-2857-1d1a-0624c9d9e1dc"
|
648
639
|
}, gr = [
|
649
|
-
|
650
|
-
|
651
|
-
|
640
|
+
m.CREDIT_CARD_PAYMENT,
|
641
|
+
m.MORTGAGE_PAYMENT,
|
642
|
+
m.AUTO_PAYMENT
|
652
643
|
], Le = {
|
653
644
|
// Top-level categories
|
654
|
-
[
|
655
|
-
[
|
656
|
-
[
|
657
|
-
[
|
658
|
-
[
|
659
|
-
[
|
660
|
-
[
|
661
|
-
[
|
662
|
-
[
|
663
|
-
[
|
664
|
-
[
|
665
|
-
[
|
666
|
-
[
|
667
|
-
[
|
668
|
-
[
|
669
|
-
[
|
670
|
-
[
|
671
|
-
[
|
672
|
-
[
|
673
|
-
[
|
674
|
-
[
|
645
|
+
[m.AUTO_AND_TRANSPORT]: "Auto & Transport",
|
646
|
+
[m.BILLS_AND_UTILITIES]: "Bills & Utilities",
|
647
|
+
[m.BUSINESS_SERVICES]: "Business Services",
|
648
|
+
[m.EDUCATION]: "Education",
|
649
|
+
[m.ENTERTAINMENT]: "Entertainment",
|
650
|
+
[m.FEES_AND_CHARGES]: "Fees & Charges",
|
651
|
+
[m.FINANCIAL]: "Financial",
|
652
|
+
[m.FOOD_AND_DINING]: "Food & Dining",
|
653
|
+
[m.GIFTS_AND_DONATIONS]: "Gifts & Donations",
|
654
|
+
[m.HEALTH_AND_FITNESS]: "Health & Fitness",
|
655
|
+
[m.HOME]: "Home",
|
656
|
+
[m.INCOME]: "Income",
|
657
|
+
[m.INVESTMENTS]: "Investments",
|
658
|
+
[m.KIDS]: "Kids",
|
659
|
+
[m.PERSONAL_CARE]: "Personal Care",
|
660
|
+
[m.PETS]: "Pets",
|
661
|
+
[m.SHOPPING]: "Shopping",
|
662
|
+
[m.TAXES]: "Taxes",
|
663
|
+
[m.TRANSFER]: "Transfer",
|
664
|
+
[m.TRAVEL]: "Travel",
|
665
|
+
[m.UNCATEGORIZED]: "Uncategorized",
|
675
666
|
// Subcategories
|
676
|
-
[
|
677
|
-
[
|
678
|
-
[
|
679
|
-
[
|
680
|
-
[
|
681
|
-
[
|
682
|
-
[
|
683
|
-
[
|
684
|
-
[
|
685
|
-
[
|
686
|
-
[
|
687
|
-
[
|
688
|
-
[
|
689
|
-
[
|
690
|
-
[
|
691
|
-
[
|
692
|
-
[
|
693
|
-
[
|
694
|
-
[
|
695
|
-
[
|
696
|
-
[
|
697
|
-
[
|
698
|
-
[
|
699
|
-
[
|
700
|
-
[
|
701
|
-
[
|
702
|
-
[
|
703
|
-
[
|
704
|
-
[
|
705
|
-
[
|
706
|
-
[
|
707
|
-
[
|
708
|
-
[
|
709
|
-
[
|
710
|
-
[
|
711
|
-
[
|
712
|
-
[
|
713
|
-
[
|
714
|
-
[
|
715
|
-
[
|
716
|
-
[
|
717
|
-
[
|
718
|
-
[
|
719
|
-
[
|
720
|
-
[
|
721
|
-
[
|
722
|
-
[
|
723
|
-
[
|
724
|
-
[
|
725
|
-
[
|
726
|
-
[
|
727
|
-
[
|
728
|
-
[
|
729
|
-
[
|
730
|
-
[
|
731
|
-
[
|
732
|
-
[
|
733
|
-
[
|
734
|
-
[
|
735
|
-
[
|
736
|
-
[
|
737
|
-
[
|
738
|
-
[
|
739
|
-
[
|
740
|
-
[
|
741
|
-
[
|
742
|
-
[
|
743
|
-
[
|
744
|
-
[
|
745
|
-
[
|
746
|
-
[
|
747
|
-
[
|
748
|
-
[
|
749
|
-
[
|
750
|
-
[
|
751
|
-
[
|
752
|
-
[
|
753
|
-
[
|
754
|
-
[
|
755
|
-
[
|
756
|
-
[
|
757
|
-
[
|
758
|
-
[
|
759
|
-
[
|
760
|
-
[
|
761
|
-
[
|
762
|
-
[
|
763
|
-
[
|
764
|
-
[
|
765
|
-
[
|
766
|
-
[
|
767
|
-
[
|
768
|
-
[
|
769
|
-
[
|
770
|
-
[
|
771
|
-
[
|
772
|
-
[
|
773
|
-
[
|
667
|
+
[m.LOCAL_TAX]: "Local Tax",
|
668
|
+
[m.WITHDRAWAL]: "Withdrawal",
|
669
|
+
[m.TRADE_COMMISSIONS]: "Trade Commissions",
|
670
|
+
[m.BABYSITTER_DAYCARE]: "Babysitter & Daycare",
|
671
|
+
[m.CHILD_SUPPORT]: "Child Support",
|
672
|
+
[m.CREDIT_CARD_PAYMENT]: "Credit Card Payment",
|
673
|
+
[m.STUDENT_LOAN]: "Student Loan",
|
674
|
+
[m.LIFE_INSURANCE]: "Life Insurance",
|
675
|
+
[m.PRINTING]: "Printing",
|
676
|
+
[m.FINANCIAL_ADVISOR]: "Financial Advisor",
|
677
|
+
[m.INTEREST_INCOME]: "Interest Income",
|
678
|
+
[m.LATE_FEE]: "Late Fee",
|
679
|
+
[m.LAWN_GARDEN]: "Lawn & Garden",
|
680
|
+
[m.FINANCE_CHARGE]: "Finance Charge",
|
681
|
+
[m.FRAUD_PROTECTION]: "Fraud Protection",
|
682
|
+
[m.MOVIES_DVDS]: "Movies & DVDs",
|
683
|
+
[m.HOME_INSURANCE]: "Home Insurance",
|
684
|
+
[m.CASH]: "Cash",
|
685
|
+
[m.TUITION]: "Tuition",
|
686
|
+
[m.HEALTH_INSURANCE]: "Health Insurance",
|
687
|
+
[m.DIVIDEND_CAP_GAINS]: "Dividend & Cap Gains",
|
688
|
+
[m.ALCOHOL_BARS]: "Alcohol & Bars",
|
689
|
+
[m.LEGAL]: "Legal",
|
690
|
+
[m.PUBLIC_TRANSPORTATION]: "Public Transportation",
|
691
|
+
[m.MORTGAGE_RENT]: "Mortgage & Rent",
|
692
|
+
[m.HOTEL]: "Hotel",
|
693
|
+
[m.TRANSFER_FOR_CASH_SPENDING]: "Transfer for Cash Spending",
|
694
|
+
[m.UTILITIES]: "Utilities",
|
695
|
+
[m.DEPOSIT]: "Deposit",
|
696
|
+
[m.HOME_PHONE]: "Home Phone",
|
697
|
+
[m.SERVICE_PARTS]: "Service Parts",
|
698
|
+
[m.INTERNET]: "Internet",
|
699
|
+
[m.BOOKS]: "Books",
|
700
|
+
[m.NEWSPAPERS_MAGAZINES]: "Newspapers & Magazines",
|
701
|
+
[m.FAST_FOOD]: "Fast Food",
|
702
|
+
[m.COFFEE_SHOPS]: "Coffee Shops",
|
703
|
+
[m.SELL]: "Sell",
|
704
|
+
[m.OFFICE_SUPPLIES]: "Office Supplies",
|
705
|
+
[m.PET_GROOMING]: "Pet Grooming",
|
706
|
+
[m.AMUSEMENT]: "Amusement",
|
707
|
+
[m.BOOKS_SUPPLIES]: "Books & Supplies",
|
708
|
+
[m.VACATION]: "Vacation",
|
709
|
+
[m.SERVICE_FEE]: "Service Fee",
|
710
|
+
[m.GIFT]: "Gift",
|
711
|
+
[m.CHARITY]: "Charity",
|
712
|
+
[m.PARKING]: "Parking",
|
713
|
+
[m.SHIPPING]: "Shipping",
|
714
|
+
[m.ARTS]: "Arts",
|
715
|
+
[m.PAYCHECK]: "Paycheck",
|
716
|
+
[m.FURNISHINGS]: "Furnishings",
|
717
|
+
[m.RESTAURANTS]: "Restaurants",
|
718
|
+
[m.SPA_MASSAGE]: "Spa & Massage",
|
719
|
+
[m.RENTAL_CAR_TAXI]: "Rental Car & Taxi",
|
720
|
+
[m.ALLOWANCE]: "Allowance",
|
721
|
+
[m.BANKING_FEE]: "Banking Fee",
|
722
|
+
[m.BUY]: "Buy",
|
723
|
+
[m.STATE_TAX]: "State Tax",
|
724
|
+
[m.TOYS]: "Toys",
|
725
|
+
[m.KIDS_ACTIVITIES]: "Kids Activities",
|
726
|
+
[m.RENTAL_INCOME]: "Rental Income",
|
727
|
+
[m.VETERINARY]: "Veterinary",
|
728
|
+
[m.SPORTING_GOODS]: "Sporting Goods",
|
729
|
+
[m.LAUNDRY]: "Laundry",
|
730
|
+
[m.CLOTHING]: "Clothing",
|
731
|
+
[m.PHARMACY]: "Pharmacy",
|
732
|
+
[m.HOME_SERVICES]: "Home Services",
|
733
|
+
[m.ATM_FEE]: "ATM Fee",
|
734
|
+
[m.HAIR]: "Hair",
|
735
|
+
[m.GROCERIES]: "Groceries",
|
736
|
+
[m.GAS]: "Gas",
|
737
|
+
[m.FEDERAL_TAX]: "Federal Tax",
|
738
|
+
[m.HOSTING]: "Hosting",
|
739
|
+
[m.TELEVISION]: "Television",
|
740
|
+
[m.MOBILE_PHONE]: "Mobile Phone",
|
741
|
+
[m.BABY_SUPPLIES]: "Baby Supplies",
|
742
|
+
[m.MUSIC]: "Music",
|
743
|
+
[m.MORTGAGE_PAYMENT]: "Mortgage Payment",
|
744
|
+
[m.SPORTS]: "Sports",
|
745
|
+
[m.AUTO_PAYMENT]: "Auto Payment",
|
746
|
+
[m.GYM]: "Gym",
|
747
|
+
[m.REIMBURSEMENT]: "Reimbursement",
|
748
|
+
[m.AIR_TRAVEL]: "Air Travel",
|
749
|
+
[m.EYECARE]: "Eyecare",
|
750
|
+
[m.HOBBIES]: "Hobbies",
|
751
|
+
[m.SALES_TAX]: "Sales Tax",
|
752
|
+
[m.ELECTRONICS_SOFTWARE]: "Electronics & Software",
|
753
|
+
[m.DOCTOR]: "Doctor",
|
754
|
+
[m.RETURNED_PURCHASE]: "Returned Purchase",
|
755
|
+
[m.HOME_IMPROVEMENT]: "Home Improvement",
|
756
|
+
[m.AUTO_INSURANCE]: "Auto Insurance",
|
757
|
+
[m.PROPERTY_TAX]: "Property Tax",
|
758
|
+
[m.DOMAIN_NAMES]: "Domain Names",
|
759
|
+
[m.HOME_SUPPLIES]: "Home Supplies",
|
760
|
+
[m.ADVERTISING]: "Advertising",
|
761
|
+
[m.CHECK]: "Check",
|
762
|
+
[m.DENTIST]: "Dentist",
|
763
|
+
[m.BONUS]: "Bonus",
|
764
|
+
[m.PET_FOOD_SUPPLIES]: "Pet Food & Supplies"
|
774
765
|
}, Ue = {
|
775
|
-
[
|
776
|
-
[
|
777
|
-
[
|
778
|
-
[
|
779
|
-
[
|
780
|
-
[
|
781
|
-
[
|
782
|
-
[
|
783
|
-
[
|
784
|
-
[
|
785
|
-
[
|
786
|
-
[
|
787
|
-
[
|
788
|
-
[
|
789
|
-
[
|
790
|
-
[
|
791
|
-
[
|
792
|
-
[
|
793
|
-
[
|
794
|
-
[
|
795
|
-
[
|
766
|
+
[m.AUTO_AND_TRANSPORT]: "#4B9DBC",
|
767
|
+
[m.BILLS_AND_UTILITIES]: "#EF9B2C",
|
768
|
+
[m.BUSINESS_SERVICES]: "#B3DE8C",
|
769
|
+
[m.EDUCATION]: "#F8AB3A",
|
770
|
+
[m.ENTERTAINMENT]: "#AB5B89",
|
771
|
+
[m.FEES_AND_CHARGES]: "#FF9696",
|
772
|
+
[m.FINANCIAL]: "#6BCDDB",
|
773
|
+
[m.FOOD_AND_DINING]: "#58AC7B",
|
774
|
+
[m.GIFTS_AND_DONATIONS]: "#347AA5",
|
775
|
+
[m.HEALTH_AND_FITNESS]: "#5C446E",
|
776
|
+
[m.HOME]: "#FFD84D",
|
777
|
+
[m.INCOME]: "#133F49",
|
778
|
+
[m.INVESTMENTS]: "#FF7070",
|
779
|
+
[m.KIDS]: "#82D196",
|
780
|
+
[m.PERSONAL_CARE]: "#338B7A",
|
781
|
+
[m.PETS]: "#615BAB",
|
782
|
+
[m.SHOPPING]: "#CF5F84",
|
783
|
+
[m.TAXES]: "#32588D",
|
784
|
+
[m.TRANSFER]: "#959CA6",
|
785
|
+
[m.TRAVEL]: "#E37434",
|
786
|
+
[m.UNCATEGORIZED]: "#FA5555"
|
796
787
|
}, Da = {
|
797
|
-
[
|
798
|
-
[
|
799
|
-
[
|
800
|
-
[
|
801
|
-
[
|
802
|
-
[
|
803
|
-
[
|
804
|
-
[
|
805
|
-
[
|
806
|
-
[
|
807
|
-
[
|
808
|
-
[
|
809
|
-
[
|
810
|
-
[
|
811
|
-
[
|
812
|
-
[
|
813
|
-
[
|
814
|
-
[
|
815
|
-
[
|
816
|
-
[
|
817
|
-
[
|
788
|
+
[m.AUTO_AND_TRANSPORT]: "directions_car",
|
789
|
+
[m.BILLS_AND_UTILITIES]: "electrical_services",
|
790
|
+
[m.BUSINESS_SERVICES]: "business_center",
|
791
|
+
[m.EDUCATION]: "school",
|
792
|
+
[m.ENTERTAINMENT]: "stadium",
|
793
|
+
[m.FEES_AND_CHARGES]: "problem",
|
794
|
+
[m.FINANCIAL]: "price_check",
|
795
|
+
[m.FOOD_AND_DINING]: "grocery",
|
796
|
+
[m.GIFTS_AND_DONATIONS]: "featured_seasonal_and_gifts",
|
797
|
+
[m.HEALTH_AND_FITNESS]: "ecg_heart",
|
798
|
+
[m.HOME]: "cottage",
|
799
|
+
[m.INCOME]: "monetization_on",
|
800
|
+
[m.INVESTMENTS]: "bid_landscape",
|
801
|
+
[m.KIDS]: "face",
|
802
|
+
[m.PERSONAL_CARE]: "volunteer_activism",
|
803
|
+
[m.PETS]: "pet_supplies",
|
804
|
+
[m.SHOPPING]: "shopping_cart",
|
805
|
+
[m.TAXES]: "heap_snapshot_large",
|
806
|
+
[m.TRANSFER]: "compare_arrows",
|
807
|
+
[m.TRAVEL]: "airplane_ticket",
|
808
|
+
[m.UNCATEGORIZED]: "category",
|
818
809
|
UNKNOWN: "help"
|
819
810
|
}, Cr = 9999999999e-2;
|
820
811
|
var Ot = /* @__PURE__ */ ((A) => (A.CAD = "CAD", A.USD = "USD", A))(Ot || {}), q = /* @__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))(q || {});
|
@@ -864,8 +855,8 @@ const et = 44, F = (A, e, n) => {
|
|
864
855
|
};
|
865
856
|
class fs {
|
866
857
|
fetchInstance;
|
867
|
-
constructor(e, n
|
868
|
-
this.fetchInstance = new FA(e, n
|
858
|
+
constructor(e, n) {
|
859
|
+
this.fetchInstance = new FA(e, n);
|
869
860
|
}
|
870
861
|
initializeAnalyticsSession = async (e, n) => {
|
871
862
|
const r = Bi.getParser(window.navigator.userAgent), { analytics_session: a } = await this.fetchInstance.post(H.ANALYTICS_SESSION, {
|
@@ -952,7 +943,7 @@ class vr {
|
|
952
943
|
// A bug ticket has been filed to fix it, but should not require any changes here.
|
953
944
|
markAllAsViewed = (e) => this.fetchInstance.put(`${H.NOTIFICATIONS}/mark_all_as_viewed`, { channel: e }).finally();
|
954
945
|
}
|
955
|
-
class
|
946
|
+
class mr {
|
956
947
|
fetchInstance;
|
957
948
|
constructor(e, n) {
|
958
949
|
this.fetchInstance = new FA(e, n);
|
@@ -966,7 +957,7 @@ class pr {
|
|
966
957
|
updateScheduledPayment = async (e) => this.fetchInstance.put(`${H.SCHEDULED_PAYMENTS}/${e.guid}`, e).then((n) => n.scheduled_payment);
|
967
958
|
deleteScheduledPayment = async (e) => this.fetchInstance.delete(`${H.SCHEDULED_PAYMENTS}/${e}`).then((n) => n);
|
968
959
|
}
|
969
|
-
class
|
960
|
+
class pr {
|
970
961
|
fetchInstance;
|
971
962
|
constructor(e, n) {
|
972
963
|
this.fetchInstance = new FA(e, n);
|
@@ -977,7 +968,7 @@ class mr {
|
|
977
968
|
class Er {
|
978
969
|
fetchInstance;
|
979
970
|
constructor(e, n) {
|
980
|
-
this.fetchInstance = new FA(e, n
|
971
|
+
this.fetchInstance = new FA(e, n);
|
981
972
|
}
|
982
973
|
requestWidgetUrl = async (e) => this.fetchInstance.post(H.WIDGET_URLS, e).then((n) => n.widget_url);
|
983
974
|
}
|
@@ -1002,7 +993,7 @@ const tn = (A, e) => A.reduce((n, r) => (n[r.guid] = e?.includes(r.guid), n), {}
|
|
1002
993
|
handleClose: l,
|
1003
994
|
showAccountNumbers: h
|
1004
995
|
}) => {
|
1005
|
-
const C = Pi(() => vs(A), [A]), f = A.length < 1, v = !!e,
|
996
|
+
const C = Pi(() => vs(A), [A]), f = A.length < 1, v = !!e, p = Object.values(c).every((E) => !!E);
|
1006
997
|
return /* @__PURE__ */ t(
|
1007
998
|
ki,
|
1008
999
|
{
|
@@ -1070,13 +1061,13 @@ const tn = (A, e) => A.reduce((n, r) => (n[r.guid] = e?.includes(r.guid), n), {}
|
|
1070
1061
|
control: /* @__PURE__ */ t(
|
1071
1062
|
It,
|
1072
1063
|
{
|
1073
|
-
checked:
|
1074
|
-
"data-ui-test": `checked-${
|
1064
|
+
checked: p,
|
1065
|
+
"data-ui-test": `checked-${p}`,
|
1075
1066
|
disableRipple: !0,
|
1076
1067
|
onChange: () => {
|
1077
1068
|
const E = {};
|
1078
1069
|
Object.keys(c).forEach((T) => {
|
1079
|
-
E[T] = !
|
1070
|
+
E[T] = !p;
|
1080
1071
|
}), u(E);
|
1081
1072
|
},
|
1082
1073
|
size: "small",
|
@@ -1088,7 +1079,7 @@ const tn = (A, e) => A.reduce((n, r) => (n[r.guid] = e?.includes(r.guid), n), {}
|
|
1088
1079
|
}
|
1089
1080
|
}
|
1090
1081
|
),
|
1091
|
-
label:
|
1082
|
+
label: p ? n.unselectAllAccounts : n.selectAllAccounts
|
1092
1083
|
}
|
1093
1084
|
) }),
|
1094
1085
|
Object.keys(C).map((E) => {
|
@@ -1188,14 +1179,14 @@ const tn = (A, e) => A.reduce((n, r) => (n[r.guid] = e?.includes(r.guid), n), {}
|
|
1188
1179
|
);
|
1189
1180
|
};
|
1190
1181
|
Pa.displayName = "AccountFilterOptions";
|
1191
|
-
const
|
1182
|
+
const ms = (A, e) => {
|
1192
1183
|
const { session: n } = e, r = Object.values(e).reduce((i, o) => n && o?.onAnalyticEvent && typeof o?.onAnalyticEvent == "function" ? [...i, o.onAnalyticEvent] : i, []), a = [...A, ...r];
|
1193
1184
|
return g.useMemo(() => (i) => {
|
1194
1185
|
a.forEach((o) => {
|
1195
1186
|
n ? o(i, n) : o(i);
|
1196
1187
|
});
|
1197
1188
|
}, [A, n]);
|
1198
|
-
},
|
1189
|
+
}, ps = (A, e) => {
|
1199
1190
|
const { session: n } = e, r = Object.values(e).reduce((i, o) => n && o?.onAnalyticPageView && typeof o?.onAnalyticPageView == "function" ? [...i, o.onAnalyticPageView] : i, []), a = [...A, ...r];
|
1200
1191
|
return g.useMemo(() => (i) => {
|
1201
1192
|
a.forEach((o) => {
|
@@ -1233,8 +1224,8 @@ const ps = (A, e) => {
|
|
1233
1224
|
g.useEffect(() => {
|
1234
1225
|
C(tn(A, a));
|
1235
1226
|
}, [A, a]);
|
1236
|
-
const f = (
|
1237
|
-
l(
|
1227
|
+
const f = (p) => {
|
1228
|
+
l(p.currentTarget);
|
1238
1229
|
}, v = () => {
|
1239
1230
|
l(null);
|
1240
1231
|
};
|
@@ -1268,12 +1259,12 @@ const ps = (A, e) => {
|
|
1268
1259
|
accounts: A,
|
1269
1260
|
copy: e.accountFilterOptionsCopy,
|
1270
1261
|
handleClose: v,
|
1271
|
-
onAccountClick: (
|
1272
|
-
C({ ...h, [
|
1262
|
+
onAccountClick: (p) => {
|
1263
|
+
C({ ...h, [p.guid]: !h[p.guid] });
|
1273
1264
|
},
|
1274
|
-
onAccountGroupClick: (
|
1265
|
+
onAccountGroupClick: (p, E, T) => {
|
1275
1266
|
const S = { ...h };
|
1276
|
-
E[
|
1267
|
+
E[p].forEach((L) => {
|
1277
1268
|
S[L.guid] = !T;
|
1278
1269
|
}), C(S);
|
1279
1270
|
},
|
@@ -1282,7 +1273,7 @@ const ps = (A, e) => {
|
|
1282
1273
|
},
|
1283
1274
|
onConnectAccountClick: r,
|
1284
1275
|
onFilterClick: () => {
|
1285
|
-
n(Object.keys(h).filter((
|
1276
|
+
n(Object.keys(h).filter((p) => h[p])), v();
|
1286
1277
|
},
|
1287
1278
|
selectedOptions: h,
|
1288
1279
|
setSelectedOptions: C,
|
@@ -1415,14 +1406,14 @@ const ps = (A, e) => {
|
|
1415
1406
|
width: h,
|
1416
1407
|
xAxisLabel: C = ""
|
1417
1408
|
}) => {
|
1418
|
-
const f = yA(), v = Ls(f, h),
|
1409
|
+
const f = yA(), v = Ls(f, h), p = u / o * c, E = Math.abs(u) / o * n, T = s === void 0 || s === a ? "primary" : "secondary";
|
1419
1410
|
return /* @__PURE__ */ d("div", { className: `mx-cmn-barchart-bar-column ${v}`, children: [
|
1420
1411
|
/* @__PURE__ */ t("div", { style: { height: c }, children: u >= 0 && /* @__PURE__ */ t(
|
1421
1412
|
yr,
|
1422
1413
|
{
|
1423
1414
|
ariaLabel: A,
|
1424
1415
|
color: r,
|
1425
|
-
height:
|
1416
|
+
height: p,
|
1426
1417
|
index: a,
|
1427
1418
|
label: l,
|
1428
1419
|
onClick: i,
|
@@ -1493,7 +1484,7 @@ const ps = (A, e) => {
|
|
1493
1484
|
selectedIndex: c,
|
1494
1485
|
valueFormatter: u = (l) => `${l}`
|
1495
1486
|
}) => {
|
1496
|
-
const l = yA(), h = Ds(l), C = r.reduce(Is, []), f = A !== void 0 ? A : C.reduce(Ts, 0) / C.length, v = Math.max(...C),
|
1487
|
+
const l = yA(), h = Ds(l), C = r.reduce(Is, []), f = A !== void 0 ? A : C.reduce(Ts, 0) / C.length, v = Math.max(...C), p = Math.min(...C), E = C.reduce(Ss, 0), T = v >= 0, S = p < 0, L = Lr(T, S, a), O = Lr(S, T, a), M = bs(f, v, p, L || O), x = (B) => c === void 0 || B === c ? n : `${n}80`, K = () => /* @__PURE__ */ t(
|
1497
1488
|
wr,
|
1498
1489
|
{
|
1499
1490
|
averageLineHeight: M,
|
@@ -1668,7 +1659,7 @@ const Rs = ({
|
|
1668
1659
|
O.push(B);
|
1669
1660
|
}
|
1670
1661
|
return O;
|
1671
|
-
}, [c]),
|
1662
|
+
}, [c]), p = (L) => {
|
1672
1663
|
if (i !== "None") {
|
1673
1664
|
if (i === "Single") {
|
1674
1665
|
h(L), r?.(L);
|
@@ -1702,7 +1693,7 @@ const Rs = ({
|
|
1702
1693
|
date: M,
|
1703
1694
|
endDate: C,
|
1704
1695
|
isInMonth: Fi(M, c),
|
1705
|
-
onClick:
|
1696
|
+
onClick: p
|
1706
1697
|
},
|
1707
1698
|
x
|
1708
1699
|
)) }, `w-${O}`)),
|
@@ -1881,7 +1872,7 @@ const Rs = ({
|
|
1881
1872
|
showMarkLabel: s = !1,
|
1882
1873
|
width: c
|
1883
1874
|
}) => {
|
1884
|
-
const u = Ke(), l = e.flat().map((S) => S.x), h = e.flat().map((S) => S.y), C = Math.round(h.reduce((S, L) => L + S, 0) / h.length), f = Math.floor(Math.min(...h) / 100) * 100, v = Math.ceil(Math.max(...h) / 100) * 100,
|
1875
|
+
const u = Ke(), l = e.flat().map((S) => S.x), h = e.flat().map((S) => S.y), C = Math.round(h.reduce((S, L) => L + S, 0) / h.length), f = Math.floor(Math.min(...h) / 100) * 100, v = Math.ceil(Math.max(...h) / 100) * 100, p = f * 0.95, E = v * 2, T = e.map((S, L) => ({
|
1885
1876
|
type: a ? "bar" : "line",
|
1886
1877
|
curve: "linear",
|
1887
1878
|
color: a ? u.palette.chart?.chart6 : A[L] ?? u.palette.primary.main,
|
@@ -1912,7 +1903,7 @@ const Rs = ({
|
|
1912
1903
|
max: v || 100,
|
1913
1904
|
colorMap: i ? {
|
1914
1905
|
type: "continuous",
|
1915
|
-
min:
|
1906
|
+
min: p,
|
1916
1907
|
max: E,
|
1917
1908
|
color: [u.palette.background.paper, A[0] ?? u.palette.primary.main]
|
1918
1909
|
} : void 0,
|
@@ -2050,13 +2041,13 @@ const Rs = ({
|
|
2050
2041
|
const h = o.current, C = r.current;
|
2051
2042
|
if (!h || !C) return;
|
2052
2043
|
const f = h.getBoundingClientRect(), v = C.getBoundingClientRect();
|
2053
|
-
let
|
2054
|
-
|
2044
|
+
let p = n.x, E = n.y;
|
2045
|
+
p + f.width * 2 > v.right ? p = n.x - f.width : p - f.width < v.left && (p = n.x), E + f.height * 2 > v.bottom && (E = n.y - f.height), c({ x: p, y: E });
|
2055
2046
|
})();
|
2056
2047
|
}, [n, r]), !e) return null;
|
2057
2048
|
const u = e.reduce((l, h) => l + h.y, 0);
|
2058
2049
|
return /* @__PURE__ */ t(
|
2059
|
-
|
2050
|
+
pn,
|
2060
2051
|
{
|
2061
2052
|
ref: o,
|
2062
2053
|
sx: {
|
@@ -2097,7 +2088,7 @@ const Rs = ({
|
|
2097
2088
|
series: { data: n }
|
2098
2089
|
}) => {
|
2099
2090
|
const r = Je(), a = n?.[e];
|
2100
|
-
return a === void 0 ? null : /* @__PURE__ */ t(
|
2091
|
+
return a === void 0 ? null : /* @__PURE__ */ t(pn, { sx: { pt: 4, px: 8 }, children: /* @__PURE__ */ t(da, { children: /* @__PURE__ */ d(te, { alignItems: "center", display: "flex", flexDirection: "column", children: [
|
2101
2092
|
/* @__PURE__ */ t(_a, { categoryGuid: A }),
|
2102
2093
|
/* @__PURE__ */ t(y, { color: r.palette.text.secondary, variant: "Small", children: J(String(e), U.MONTH_SHORT_YEAR) }),
|
2103
2094
|
/* @__PURE__ */ t(zA, { amount: a ?? "", bold: !0, formatString: "0,0", variant: "Body" })
|
@@ -2169,7 +2160,7 @@ const Rs = ({
|
|
2169
2160
|
height: u,
|
2170
2161
|
width: l
|
2171
2162
|
}) => {
|
2172
|
-
const h = Je(), { isMobile: C } = jA(), f = g.useRef(null), [v,
|
2163
|
+
const h = Je(), { isMobile: C } = jA(), f = g.useRef(null), [v, p] = g.useState(null), [E, T] = g.useState({
|
2173
2164
|
hoveredSeriesId: null,
|
2174
2165
|
hoveredAreaData: null,
|
2175
2166
|
isAreaHovered: !1,
|
@@ -2198,7 +2189,7 @@ const Rs = ({
|
|
2198
2189
|
type: "line",
|
2199
2190
|
valueFormatter: (TA) => F(TA, "0,0")
|
2200
2191
|
})), bA = [...rA, ...sA], xe = [...W, ...IA], le = (Y) => Y.startsWith("stacked-") ? i[parseInt(Y.split("-")[1])] : c[parseInt(Y.split("-")[1])], Ge = (Y) => {
|
2201
|
-
|
2192
|
+
p(Y), n?.(Y ?? "");
|
2202
2193
|
};
|
2203
2194
|
return /* @__PURE__ */ t(
|
2204
2195
|
te,
|
@@ -2504,7 +2495,7 @@ const Rs = ({
|
|
2504
2495
|
toolTipContent: i = "",
|
2505
2496
|
variant: o = "outlined"
|
2506
2497
|
}) => {
|
2507
|
-
const s = CA(), c = s.palette.mode === "dark", { isDesktop: u, isMobile: l } = jA(), [h, C] = g.useState(r), [f, v] = g.useState(n.dateRangePickerCopy.dateRangeThisMonth), [
|
2498
|
+
const s = CA(), c = s.palette.mode === "dark", { isDesktop: u, isMobile: l } = jA(), [h, C] = g.useState(r), [f, v] = g.useState(n.dateRangePickerCopy.dateRangeThisMonth), [p, E] = g.useState(h), [T, S] = g.useState(!1), [L, O] = g.useState(!0), [M, x] = g.useState(6), K = [
|
2508
2499
|
{ label: "3M", value: 3 },
|
2509
2500
|
{ label: "6M", value: 6 },
|
2510
2501
|
{ label: "9M", value: 9 },
|
@@ -2530,9 +2521,9 @@ const Rs = ({
|
|
2530
2521
|
}
|
2531
2522
|
C(W), A.onRangeChanged(W);
|
2532
2523
|
}, G = () => {
|
2533
|
-
C(
|
2524
|
+
C(p), O(
|
2534
2525
|
f === n.dateRangePickerCopy.dateRangeThisMonth || f === n.dateRangePickerCopy.dateRangeLastMonth
|
2535
|
-
), A.onRangeChanged(
|
2526
|
+
), A.onRangeChanged(p);
|
2536
2527
|
}, k = (P) => {
|
2537
2528
|
x(P);
|
2538
2529
|
};
|
@@ -2568,9 +2559,9 @@ const Rs = ({
|
|
2568
2559
|
children: [
|
2569
2560
|
o === "readonly" && /* @__PURE__ */ d(w, { alignItems: "center", direction: "row", gap: 8, children: [
|
2570
2561
|
/* @__PURE__ */ t(N, { name: "calendar_month", size: 24 }),
|
2571
|
-
/* @__PURE__ */ t(y, { bold: !0, children: J(
|
2562
|
+
/* @__PURE__ */ t(y, { bold: !0, children: J(p[0], U.MONTH_DAY) }),
|
2572
2563
|
/* @__PURE__ */ t(N, { name: "remove" }),
|
2573
|
-
/* @__PURE__ */ t(y, { bold: !0, children: J(
|
2564
|
+
/* @__PURE__ */ t(y, { bold: !0, children: J(p[1], U.MONTH_DAY_YEAR) })
|
2574
2565
|
] }),
|
2575
2566
|
o !== "readonly" && o !== "timeframebuttons" && /* @__PURE__ */ d(
|
2576
2567
|
lo,
|
@@ -2685,7 +2676,7 @@ const Rs = ({
|
|
2685
2676
|
nr,
|
2686
2677
|
{
|
2687
2678
|
copy: n.dateRangePickerCopy,
|
2688
|
-
dateRange:
|
2679
|
+
dateRange: p,
|
2689
2680
|
onRangeChanged: (P, W) => {
|
2690
2681
|
E(P), v(W);
|
2691
2682
|
},
|
@@ -2712,7 +2703,7 @@ const Rs = ({
|
|
2712
2703
|
nr,
|
2713
2704
|
{
|
2714
2705
|
copy: n.dateRangePickerCopy,
|
2715
|
-
dateRange:
|
2706
|
+
dateRange: p,
|
2716
2707
|
onRangeChanged: (P, W) => {
|
2717
2708
|
E(P), v(W);
|
2718
2709
|
},
|
@@ -2906,8 +2897,8 @@ const Be = ({
|
|
2906
2897
|
sx: l = {},
|
2907
2898
|
title: h = ""
|
2908
2899
|
}) => {
|
2909
|
-
const [C, { height: f, width: v }] = ka(), { onEvent:
|
2910
|
-
c && (c(),
|
2900
|
+
const [C, { height: f, width: v }] = ka(), { onEvent: p } = V(), { isDesktop: E, isMobile: T, isTablet: S } = jA(), { displayedDateRange: L, selectedAccountGuids: O, setSelectedAccountGuids: M } = vA(), { common: x } = b(), K = () => {
|
2901
|
+
c && (c(), p(Q.WIDGET_BACK_CLICK));
|
2911
2902
|
}, B = {
|
2912
2903
|
accountFilterOptionsCopy: {
|
2913
2904
|
accountTypeAccounts: x.account_filter.account_type_accounts,
|
@@ -3064,7 +3055,7 @@ const Be = ({
|
|
3064
3055
|
setHasValidInput: l,
|
3065
3056
|
...h
|
3066
3057
|
}) => {
|
3067
|
-
const [C, f] = g.useState(""), { common: v } = b(),
|
3058
|
+
const [C, f] = g.useState(""), { common: v } = b(), p = a || v.currency_input, E = yA(), T = nc(E), S = /^[0-9]*$/, L = /^(\d)*(\,)?([0-9]{1,2})?$/, O = /^(\d)*(\.)?([0-9]{1,2})?$/;
|
3068
3059
|
let M;
|
3069
3060
|
const x = g.useRef(ho());
|
3070
3061
|
if (A)
|
@@ -3084,15 +3075,15 @@ const Be = ({
|
|
3084
3075
|
const K = (B) => {
|
3085
3076
|
!r && (B === "" || B === "." || B === ",") ? (f(""), l?.(!1)) : Number(B) < c ? (f(
|
3086
3077
|
z(
|
3087
|
-
|
3078
|
+
p.error_amount_must_be_equal_to,
|
3088
3079
|
F(c, "0")
|
3089
3080
|
)
|
3090
3081
|
), l?.(!1)) : Number(B) > Cr ? (f(
|
3091
3082
|
z(
|
3092
|
-
|
3083
|
+
p.error_amount_must_be_less_than_or_equal_to,
|
3093
3084
|
F(Cr, A ? "0,0.00" : "0,0", Math.floor)
|
3094
3085
|
)
|
3095
|
-
), l?.(!1)) : B.toString().match(M) ? i() ? (f(""), l?.(!0)) : (f(o), l?.(!1)) : (f(
|
3086
|
+
), l?.(!1)) : B.toString().match(M) ? i() ? (f(""), l?.(!0)) : (f(o), l?.(!1)) : (f(p.error_amount_is_invalid), l?.(!1)), u(B.toString());
|
3096
3087
|
};
|
3097
3088
|
return /* @__PURE__ */ t(
|
3098
3089
|
Ie,
|
@@ -3101,7 +3092,7 @@ const Be = ({
|
|
3101
3092
|
endAdornment: be().includes("fr-ca") ? /* @__PURE__ */ t(fA, { children: "$" }) : void 0,
|
3102
3093
|
startAdornment: be().includes("fr-ca") ? void 0 : /* @__PURE__ */ t(fA, { children: "$" })
|
3103
3094
|
},
|
3104
|
-
"aria-label": e ||
|
3095
|
+
"aria-label": e || p.enter_amount,
|
3105
3096
|
className: `mx-cmn-currency-input ${T}`,
|
3106
3097
|
error: !!C,
|
3107
3098
|
helperText: C,
|
@@ -3121,7 +3112,7 @@ const Be = ({
|
|
3121
3112
|
"& .MuiInputBase-adornedStart > .p": {
|
3122
3113
|
marginRight: A.Spacing.Tiny
|
3123
3114
|
}
|
3124
|
-
}),
|
3115
|
+
}), pe = ({ label: A = "", size: e = 32 }) => {
|
3125
3116
|
const n = yA();
|
3126
3117
|
return /* @__PURE__ */ d(w, { alignItems: "center", gap: n.Spacing.XLarge, height: 450, justifyContent: "center", children: [
|
3127
3118
|
/* @__PURE__ */ t(wn, { size: e }),
|
@@ -3281,7 +3272,7 @@ const Be = ({
|
|
3281
3272
|
}
|
3282
3273
|
), Nt = ({ iconName: A, label: e, onClick: n, value: r }) => {
|
3283
3274
|
const a = /* @__PURE__ */ d(aA, { children: [
|
3284
|
-
/* @__PURE__ */ t(PA, { children: /* @__PURE__ */ t(
|
3275
|
+
/* @__PURE__ */ t(PA, { children: /* @__PURE__ */ t(me, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(N, { name: A, sx: { color: "text.primary" }, weight: qA.Dark }) }) }),
|
3285
3276
|
/* @__PURE__ */ t(
|
3286
3277
|
lA,
|
3287
3278
|
{
|
@@ -3405,7 +3396,7 @@ class sc {
|
|
3405
3396
|
const e = await this.api.getBudgets();
|
3406
3397
|
nA(() => {
|
3407
3398
|
this.budgets = e.filter(
|
3408
|
-
(n) => n.category_guid !==
|
3399
|
+
(n) => n.category_guid !== m.INCOME && n.category_guid !== m.TRANSFER
|
3409
3400
|
);
|
3410
3401
|
});
|
3411
3402
|
} catch (e) {
|
@@ -3442,17 +3433,17 @@ const At = () => {
|
|
3442
3433
|
setNextIncome: h,
|
3443
3434
|
setSelectedCashAccounts: C,
|
3444
3435
|
setUpcomingExpenses: f
|
3445
|
-
} = At(), { nextIncomeActivity: v, upcomingExpenses:
|
3436
|
+
} = At(), { nextIncomeActivity: v, upcomingExpenses: p } = KA();
|
3446
3437
|
g.useEffect(() => {
|
3447
3438
|
C(
|
3448
3439
|
r.filter((O) => i.includes(O.guid))
|
3449
3440
|
);
|
3450
3441
|
}, [r, i]), g.useEffect(() => {
|
3451
|
-
v && h(v), f(
|
3452
|
-
}, [v,
|
3442
|
+
v && h(v), f(p);
|
3443
|
+
}, [v, p]);
|
3453
3444
|
const E = g.useMemo(
|
3454
3445
|
() => r.filter((O) => i.includes(O.guid)).reduce((O, M) => O + (M?.balance || 0), 0),
|
3455
|
-
[i,
|
3446
|
+
[i, p]
|
3456
3447
|
), T = g.useMemo(
|
3457
3448
|
() => u.filter((O) => i.includes(O.accountGuid || "")).reduce((O, M) => O + M.amount, 0),
|
3458
3449
|
[i, u]
|
@@ -3745,7 +3736,7 @@ const hc = [
|
|
3745
3736
|
accountIsClosed: c?.is_closed,
|
3746
3737
|
accountIsHidden: c?.is_hidden,
|
3747
3738
|
category: u?.name || "Uncategorized",
|
3748
|
-
isIncome: s.top_level_category_guid ===
|
3739
|
+
isIncome: s.top_level_category_guid === m.INCOME,
|
3749
3740
|
isPending: s.feed_status === Bn.PENDING,
|
3750
3741
|
number: c?.account_number || "",
|
3751
3742
|
payee: s.description,
|
@@ -4010,13 +4001,13 @@ const hc = [
|
|
4010
4001
|
CATEGORY: "category",
|
4011
4002
|
ACCOUNT: "account",
|
4012
4003
|
AMOUNT: "amount"
|
4013
|
-
}, vc = "uncategorized",
|
4014
|
-
const o =
|
4004
|
+
}, vc = "uncategorized", mc = (A, e, n, r, a, i) => {
|
4005
|
+
const o = pc(A, a, i), s = Ec(o, n, r);
|
4015
4006
|
return e.forEach((c) => {
|
4016
4007
|
const u = s.findIndex((h) => h.guid === c), l = i.filter((h) => h.parent_guid === c);
|
4017
4008
|
s.splice(u + 1, 0, ...l);
|
4018
4009
|
}), s;
|
4019
|
-
},
|
4010
|
+
}, pc = (A, e, n) => {
|
4020
4011
|
const {
|
4021
4012
|
accounts: r = [],
|
4022
4013
|
dateRange: a = { start: ne($(), 90), end: ze() },
|
@@ -4041,7 +4032,7 @@ const hc = [
|
|
4041
4032
|
const n = A.toLowerCase().split(" "), r = e?.toString().toLowerCase() ?? "";
|
4042
4033
|
return n.every((a) => r.indexOf(a) > -1);
|
4043
4034
|
};
|
4044
|
-
var
|
4035
|
+
var mA = /* @__PURE__ */ ((A) => (A[A.Expense = 0] = "Expense", A[A.Income = 1] = "Income", A))(mA || {}), pA = /* @__PURE__ */ ((A) => (A[A.Paid = 0] = "Paid", A[A.Missed = 1] = "Missed", A[A.Upcoming = 2] = "Upcoming", A))(pA || {}), yc = /* @__PURE__ */ ((A) => (A[A.UNKNOWN = 0] = "UNKNOWN", A[A.CORRECT = 1] = "CORRECT", A[A.INCORRECT = 2] = "INCORRECT", A))(yc || {}), wc = /* @__PURE__ */ ((A) => (A.Missed = "Missed", A.Paid = "Paid", A.Upcoming = "Upcoming expense", A.Income = "Income", A))(wc || {}), Lc = /* @__PURE__ */ ((A) => (A[A.Unknown = 0] = "Unknown", A[A.Subscription = 1] = "Subscription", A[A.Bill = 2] = "Bill", A))(Lc || {}), QA = /* @__PURE__ */ ((A) => (A[A.CREDIT = 1] = "CREDIT", A[A.DEBIT = 2] = "DEBIT", A))(QA || {}), Bn = /* @__PURE__ */ ((A) => (A[A.POSTED = 1] = "POSTED", A[A.PENDING = 2] = "PENDING", A))(Bn || {}), Tc = /* @__PURE__ */ ((A) => (A.Desktop = "Desktop", A.Mobile = "Mobile", A))(Tc || {});
|
4045
4036
|
const Xa = {
|
4046
4037
|
account_guid: "",
|
4047
4038
|
amount: 0,
|
@@ -4139,7 +4130,7 @@ class Ic {
|
|
4139
4130
|
]).then(() => this.uiStore.setIsInitialized(!0));
|
4140
4131
|
};
|
4141
4132
|
get sortedTransactions() {
|
4142
|
-
return
|
4133
|
+
return mc(
|
4143
4134
|
this.filter,
|
4144
4135
|
this.uiStore.expandedSplits,
|
4145
4136
|
this.sortColumn,
|
@@ -4396,7 +4387,7 @@ const UA = () => {
|
|
4396
4387
|
}, jt = (A) => J(NA(A), U.DAY_OF_WEEK_MONTH_DAY), Pr = 65, Nr = 34, Hc = ({
|
4397
4388
|
bgcolor: A,
|
4398
4389
|
height: e = "calc(100dvh - 36px)",
|
4399
|
-
loader: n = /* @__PURE__ */ t(
|
4390
|
+
loader: n = /* @__PURE__ */ t(pe, { label: "Loading", size: 40 }),
|
4400
4391
|
onClick: r,
|
4401
4392
|
showInsights: a = !1,
|
4402
4393
|
showLoader: i = !1,
|
@@ -4413,25 +4404,25 @@ const UA = () => {
|
|
4413
4404
|
account_guid: T?.account_guid,
|
4414
4405
|
transaction_guid: E
|
4415
4406
|
}), r?.(E);
|
4416
|
-
}, v = g.useRef(null),
|
4407
|
+
}, v = g.useRef(null), p = ga({
|
4417
4408
|
count: u.length,
|
4418
4409
|
getScrollElement: () => v.current,
|
4419
4410
|
estimateSize: (E) => Pr + (Or(E, u) ? Nr : 0),
|
4420
4411
|
overscan: 5
|
4421
4412
|
});
|
4422
|
-
return g.useEffect(() =>
|
4413
|
+
return g.useEffect(() => p.measure(), [u]), g.useEffect(() => l(a), [a]), /* @__PURE__ */ t(oA, { children: /* @__PURE__ */ t(D, { height: e, overflow: "auto", ref: v, width: o, children: /* @__PURE__ */ d(
|
4423
4414
|
D,
|
4424
4415
|
{
|
4425
4416
|
height: (
|
4426
4417
|
// set the height to auto when there are no transactions so the zero state isn't set to 0
|
4427
|
-
|
4418
|
+
p.getVirtualItems().length === 0 ? "auto" : p.getTotalSize()
|
4428
4419
|
),
|
4429
4420
|
position: "relative",
|
4430
4421
|
width: "100%",
|
4431
4422
|
children: [
|
4432
4423
|
(c || i) && n,
|
4433
|
-
!c && !i &&
|
4434
|
-
!c && !i &&
|
4424
|
+
!c && !i && p.getVirtualItems().length === 0 && s,
|
4425
|
+
!c && !i && p.getVirtualItems().length > 0 && p.getVirtualItems().map((E) => {
|
4435
4426
|
const T = u[E.index], S = Or(E.index, u), L = xc(E.index, u), O = Pr + (S ? Nr : 0);
|
4436
4427
|
return /* @__PURE__ */ d(
|
4437
4428
|
D,
|
@@ -4454,7 +4445,7 @@ const UA = () => {
|
|
4454
4445
|
]
|
4455
4446
|
}
|
4456
4447
|
) }) });
|
4457
|
-
},
|
4448
|
+
}, mt = I(Hc), zc = (A) => /* @__PURE__ */ d(y, { tabIndex: A.tabIndex, variant: "Small", children: [
|
4458
4449
|
`${A.row.account}`,
|
4459
4450
|
A.row.number && ` | ${A.row.number}`
|
4460
4451
|
] }), qc = (A) => {
|
@@ -4749,7 +4740,7 @@ const jc = ({
|
|
4749
4740
|
showSelected: o,
|
4750
4741
|
unselectable: s,
|
4751
4742
|
unselectableText: c
|
4752
|
-
} = _e(), { categories: u } = b(), { onEvent: l } = V(), [h, C] = g.useState(!1), [f, v] = g.useState(!1),
|
4743
|
+
} = _e(), { categories: u } = b(), { onEvent: l } = V(), [h, C] = g.useState(!1), [f, v] = g.useState(!1), p = !!e.revision, E = e.guid === r, T = !s.some((L) => L === e.guid);
|
4753
4744
|
return /* @__PURE__ */ d(
|
4754
4745
|
Z,
|
4755
4746
|
{
|
@@ -4775,12 +4766,12 @@ const jc = ({
|
|
4775
4766
|
primaryTypographyProps: { fontWeight: "normal", variant: "Body" }
|
4776
4767
|
}
|
4777
4768
|
),
|
4778
|
-
o && E && /* @__PURE__ */ t(
|
4769
|
+
o && E && /* @__PURE__ */ t(ma, { fontSize: "small" }),
|
4779
4770
|
!T && /* @__PURE__ */ t(zo, { label: c })
|
4780
4771
|
]
|
4781
4772
|
}
|
4782
4773
|
),
|
4783
|
-
|
4774
|
+
p && /* @__PURE__ */ d(D, { className: "mx-cat-subcategory-edit-container", sx: { marginRight: 24 }, children: [
|
4784
4775
|
/* @__PURE__ */ t(
|
4785
4776
|
RA,
|
4786
4777
|
{
|
@@ -4826,7 +4817,7 @@ const jc = ({
|
|
4826
4817
|
}, Al = I($c), el = ({ categories: A, parentCategory: e }) => {
|
4827
4818
|
const { expandedGuid: n, searchValue: r } = _e(), a = e.guid === n, i = !!r;
|
4828
4819
|
return /* @__PURE__ */ t(
|
4829
|
-
|
4820
|
+
pa,
|
4830
4821
|
{
|
4831
4822
|
in: a || i,
|
4832
4823
|
sx: { backgroundColor: "background.default" },
|
@@ -4920,14 +4911,14 @@ const jc = ({
|
|
4920
4911
|
setSelectedGuid: C,
|
4921
4912
|
setShowSelected: f,
|
4922
4913
|
setUnselectable: v,
|
4923
|
-
setUnselectableText:
|
4914
|
+
setUnselectableText: p
|
4924
4915
|
} = _e();
|
4925
4916
|
return g.useEffect(() => {
|
4926
4917
|
e && l(e);
|
4927
4918
|
}), g.useEffect(() => {
|
4928
4919
|
o.length || s();
|
4929
4920
|
}, []), g.useEffect(() => {
|
4930
|
-
A && C(A), f(n), v(r),
|
4921
|
+
A && C(A), f(n), v(r), p(a);
|
4931
4922
|
}, [A, n, r, a]), /* @__PURE__ */ d("div", { className: `mx-cat-category-selector ${i}`, children: [
|
4932
4923
|
/* @__PURE__ */ t(
|
4933
4924
|
Ft,
|
@@ -5030,7 +5021,7 @@ class ul {
|
|
5030
5021
|
generalHistory: s,
|
5031
5022
|
history: o,
|
5032
5023
|
icon: Da[e.parent_guid || e.guid],
|
5033
|
-
isTransfer: e.guid ===
|
5024
|
+
isTransfer: e.guid === m.TRANSFER || e.parent_guid === m.TRANSFER,
|
5034
5025
|
monthlyTotals: a,
|
5035
5026
|
total: r,
|
5036
5027
|
value: e.is_income ? Math.abs(r) : r
|
@@ -5128,7 +5119,7 @@ const Fa = ({ transaction: A }) => {
|
|
5128
5119
|
v();
|
5129
5120
|
}, v = () => {
|
5130
5121
|
u(!1), i(!1);
|
5131
|
-
},
|
5122
|
+
}, p = g.useMemo(
|
5132
5123
|
() => r.find((E) => E.guid === l),
|
5133
5124
|
[l]
|
5134
5125
|
);
|
@@ -5140,7 +5131,7 @@ const Fa = ({ transaction: A }) => {
|
|
5140
5131
|
a(R.ON_TRANSACTION_CATEGORY_CLICK), u(!0);
|
5141
5132
|
},
|
5142
5133
|
children: [
|
5143
|
-
/* @__PURE__ */ t(PA, { children: /* @__PURE__ */ t(
|
5134
|
+
/* @__PURE__ */ t(PA, { children: /* @__PURE__ */ t(me, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(
|
5144
5135
|
De,
|
5145
5136
|
{
|
5146
5137
|
categoryGuid: A.top_level_category_guid,
|
@@ -5189,7 +5180,7 @@ const Fa = ({ transaction: A }) => {
|
|
5189
5180
|
children: /* @__PURE__ */ t(y, { children: z(
|
5190
5181
|
s.actions_all_past_and_future,
|
5191
5182
|
A.description,
|
5192
|
-
|
5183
|
+
p?.name
|
5193
5184
|
) })
|
5194
5185
|
}
|
5195
5186
|
)
|
@@ -5212,7 +5203,7 @@ const Fa = ({ transaction: A }) => {
|
|
5212
5203
|
n(R.ON_TRANSACTION_DATE_CLICK), c(!0);
|
5213
5204
|
},
|
5214
5205
|
children: [
|
5215
|
-
/* @__PURE__ */ t(PA, { children: /* @__PURE__ */ t(
|
5206
|
+
/* @__PURE__ */ t(PA, { children: /* @__PURE__ */ t(me, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(N, { name: "calendar_month", sx: { color: "text.primary" }, weight: qA.Dark }) }) }),
|
5216
5207
|
/* @__PURE__ */ t(
|
5217
5208
|
lA,
|
5218
5209
|
{
|
@@ -5263,7 +5254,7 @@ const Fa = ({ transaction: A }) => {
|
|
5263
5254
|
e(R.ON_TRANSACTION_DELETE_CLICK), r(!0), s(!0);
|
5264
5255
|
},
|
5265
5256
|
children: [
|
5266
|
-
/* @__PURE__ */ t(PA, { children: /* @__PURE__ */ t(
|
5257
|
+
/* @__PURE__ */ t(PA, { children: /* @__PURE__ */ t(me, { variant: "rounded", children: /* @__PURE__ */ t(ut, { color: "secondary", fontSize: "small" }) }) }),
|
5267
5258
|
/* @__PURE__ */ t(
|
5268
5259
|
lA,
|
5269
5260
|
{
|
@@ -5305,7 +5296,7 @@ const Fa = ({ transaction: A }) => {
|
|
5305
5296
|
e(R.ON_TRANSACTION_DELETE_LOGO_CLICK), s(!0);
|
5306
5297
|
},
|
5307
5298
|
children: [
|
5308
|
-
/* @__PURE__ */ t(PA, { children: /* @__PURE__ */ t(
|
5299
|
+
/* @__PURE__ */ t(PA, { children: /* @__PURE__ */ t(me, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(N, { name: "delete", sx: { color: "text.primary" }, weight: qA.Dark }) }) }),
|
5309
5300
|
/* @__PURE__ */ t(lA, { primary: i.merchant_logo_title, secondary: i.merchant_logo_desc }),
|
5310
5301
|
/* @__PURE__ */ t(re, { children: /* @__PURE__ */ t(N, { name: "chevron_right", weight: qA.Dark }) })
|
5311
5302
|
]
|
@@ -5354,7 +5345,7 @@ const Fa = ({ transaction: A }) => {
|
|
5354
5345
|
},
|
5355
5346
|
role: "switch",
|
5356
5347
|
children: [
|
5357
|
-
/* @__PURE__ */ t(PA, { children: /* @__PURE__ */ t(
|
5348
|
+
/* @__PURE__ */ t(PA, { children: /* @__PURE__ */ t(me, { sx: { bgcolor: "border.light" }, variant: "rounded", children: c ? /* @__PURE__ */ t(
|
5358
5349
|
N,
|
5359
5350
|
{
|
5360
5351
|
name: "visibilityOff",
|
@@ -5401,7 +5392,7 @@ const Fa = ({ transaction: A }) => {
|
|
5401
5392
|
}
|
5402
5393
|
)
|
5403
5394
|
] });
|
5404
|
-
},
|
5395
|
+
}, ml = I(vl), Ua = ({ transaction: A }) => {
|
5405
5396
|
const { amount: e, description: n, isIncome: r, merchant_guid: a, payee: i, top_level_category_guid: o } = A;
|
5406
5397
|
return /* @__PURE__ */ d(w, { className: "mx-txn-amount-header", direction: "row", gap: 12, px: 16, py: 24, children: [
|
5407
5398
|
/* @__PURE__ */ t(
|
@@ -5420,7 +5411,7 @@ const Fa = ({ transaction: A }) => {
|
|
5420
5411
|
] })
|
5421
5412
|
] })
|
5422
5413
|
] });
|
5423
|
-
},
|
5414
|
+
}, pl = ({ transaction: A }) => {
|
5424
5415
|
const { onEvent: e } = V(), { updateTransaction: n } = cA(), { updateManualTransaction: r } = UA(), { common: a, transactions: i } = b(), [o, s] = g.useState(!1), [c, u] = g.useState("");
|
5425
5416
|
g.useEffect(() => {
|
5426
5417
|
o && u(A.memo ? A.memo : "");
|
@@ -5440,7 +5431,7 @@ const Fa = ({ transaction: A }) => {
|
|
5440
5431
|
e(R.ON_TRANSACTION_MEMO_CLICK), s(!0);
|
5441
5432
|
},
|
5442
5433
|
children: [
|
5443
|
-
/* @__PURE__ */ t(PA, { children: /* @__PURE__ */ t(
|
5434
|
+
/* @__PURE__ */ t(PA, { children: /* @__PURE__ */ t(me, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(N, { name: "article", sx: { color: "text.primary" }, weight: qA.Dark }) }) }),
|
5444
5435
|
/* @__PURE__ */ t(
|
5445
5436
|
lA,
|
5446
5437
|
{
|
@@ -5481,7 +5472,7 @@ const Fa = ({ transaction: A }) => {
|
|
5481
5472
|
}
|
5482
5473
|
)
|
5483
5474
|
] });
|
5484
|
-
}, Wa = I(
|
5475
|
+
}, Wa = I(pl), El = ({
|
5485
5476
|
index: A,
|
5486
5477
|
onDeleteRow: e,
|
5487
5478
|
onCategoryChanged: n,
|
@@ -5650,20 +5641,20 @@ const Fa = ({ transaction: A }) => {
|
|
5650
5641
|
has_been_split: !1,
|
5651
5642
|
parent_guid: A.guid,
|
5652
5643
|
top_level_category_guid: void 0
|
5653
|
-
}, [l, h] = g.useState(!1), [C, f] = g.useState(!1), [v,
|
5644
|
+
}, [l, h] = g.useState(!1), [C, f] = g.useState(!1), [v, p] = g.useState([]), E = () => {
|
5654
5645
|
const _ = [...v];
|
5655
|
-
_.push({ ...u }), _[0].amount -= 1,
|
5646
|
+
_.push({ ...u }), _[0].amount -= 1, p(_);
|
5656
5647
|
}, T = (_) => {
|
5657
5648
|
if (_ > 0) {
|
5658
5649
|
const G = v[_], k = [...v];
|
5659
|
-
k.splice(_, 1), k[0].amount += G.amount,
|
5650
|
+
k.splice(_, 1), k[0].amount += G.amount, p(k);
|
5660
5651
|
}
|
5661
5652
|
}, S = (_, G) => {
|
5662
5653
|
const k = [...v];
|
5663
5654
|
k[_].amount = G, k[0].amount = A.amount - k.reduce(
|
5664
5655
|
(P, W, rA) => P + (rA !== 0 ? W.amount : 0),
|
5665
5656
|
0
|
5666
|
-
),
|
5657
|
+
), p(k);
|
5667
5658
|
}, L = (_, G) => {
|
5668
5659
|
const k = [...v], P = s.find((W) => W.guid === G);
|
5669
5660
|
P && (k[_] = {
|
@@ -5671,19 +5662,19 @@ const Fa = ({ transaction: A }) => {
|
|
5671
5662
|
category_guid: G,
|
5672
5663
|
category: P.name,
|
5673
5664
|
top_level_category_guid: P.parent_guid || G
|
5674
|
-
},
|
5665
|
+
}, p(k));
|
5675
5666
|
}, O = () => {
|
5676
5667
|
if (A.parent_guid || A.has_been_split) {
|
5677
5668
|
f(!0);
|
5678
5669
|
return;
|
5679
5670
|
}
|
5680
|
-
|
5671
|
+
p([{ ...c }, { ...u }]), e(Q.TRANSACTION_DETAILS_CLICK_SPLIT, {
|
5681
5672
|
transaction_guid: A.guid
|
5682
5673
|
}), h(!0);
|
5683
5674
|
}, M = async () => {
|
5684
5675
|
e(R.ON_TRANSACTION_SPLIT_SAVE_CLICK), await n({ ...A, has_been_split: !0 }, v), h(!1);
|
5685
5676
|
}, x = async () => {
|
5686
|
-
e(R.ON_TRANSACTION_SPLIT_CANCEL_CLICK),
|
5677
|
+
e(R.ON_TRANSACTION_SPLIT_CANCEL_CLICK), p([{ ...c }, { ...u }]), h(!1);
|
5687
5678
|
}, K = async () => {
|
5688
5679
|
e(Q.TRANSACTION_DETAILS_CLICK_UNSPLIT, {
|
5689
5680
|
transaction_guid: A.guid
|
@@ -5696,7 +5687,7 @@ const Fa = ({ transaction: A }) => {
|
|
5696
5687
|
}, [v]);
|
5697
5688
|
return /* @__PURE__ */ d(g.Fragment, { children: [
|
5698
5689
|
A && /* @__PURE__ */ t(Z, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ d(dA, { onClick: O, children: [
|
5699
|
-
/* @__PURE__ */ t(PA, { children: /* @__PURE__ */ t(
|
5690
|
+
/* @__PURE__ */ t(PA, { children: /* @__PURE__ */ t(me, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(N, { name: "call_split", sx: { color: "text.primary" }, weight: qA.Dark }) }) }),
|
5700
5691
|
/* @__PURE__ */ t(
|
5701
5692
|
lA,
|
5702
5693
|
{
|
@@ -5842,13 +5833,13 @@ const Fa = ({ transaction: A }) => {
|
|
5842
5833
|
}
|
5843
5834
|
) });
|
5844
5835
|
}, Ol = I(Dl), xl = ({ onTagChecked: A, selectedTags: e, tag: n }) => {
|
5845
|
-
const { onEvent: r } = V(), { removeTag: a, updateTag: i } = cA(), { common: o, transactions: s } = b(), [c, u] = g.useState(!1), [l, h] = g.useState(!1), [C, f] = g.useState(""), [v,
|
5836
|
+
const { onEvent: r } = V(), { removeTag: a, updateTag: i } = cA(), { common: o, transactions: s } = b(), [c, u] = g.useState(!1), [l, h] = g.useState(!1), [C, f] = g.useState(""), [v, p] = g.useState(""), E = async () => {
|
5846
5837
|
r(R.ON_TRANSACTION_TAGS_TAG_EDIT_SAVED), n && await i({ ...n, name: C }), u(!1);
|
5847
5838
|
}, T = async () => {
|
5848
5839
|
r(R.ON_TRANSACTION_TAGS_TAG_DELETED), await a(n.guid), h(!1);
|
5849
5840
|
};
|
5850
5841
|
g.useEffect(() => {
|
5851
|
-
|
5842
|
+
p(C.length > 40 ? s.tags_error_name_must_be_40_chars : "");
|
5852
5843
|
}, [C]);
|
5853
5844
|
const S = () => {
|
5854
5845
|
r(R.ON_TRANSACTION_TAGS_TAG_EDIT_CLICK), f(n.name), u(!0);
|
@@ -5958,9 +5949,9 @@ const Fa = ({ transaction: A }) => {
|
|
5958
5949
|
g.useEffect(() => {
|
5959
5950
|
h(A.tags);
|
5960
5951
|
}, [c, A]);
|
5961
|
-
const C = (
|
5962
|
-
const E = [...l], T = l.indexOf(
|
5963
|
-
T >= 0 ? E.splice(T, 1) : E.push(
|
5952
|
+
const C = (p) => {
|
5953
|
+
const E = [...l], T = l.indexOf(p);
|
5954
|
+
T >= 0 ? E.splice(T, 1) : E.push(p), h(E);
|
5964
5955
|
}, f = async () => {
|
5965
5956
|
if (A.is_manual && !A.guid) {
|
5966
5957
|
s({ ...A, tags: l }), u(!1);
|
@@ -5969,7 +5960,7 @@ const Fa = ({ transaction: A }) => {
|
|
5969
5960
|
await r(l, A.guid), await a({ ...A }), e(Q.TRANSACTION_DETAILS_CLICK_TAGS, { transaction_guid: A.guid }), u(!1);
|
5970
5961
|
}, v = g.useMemo(
|
5971
5962
|
() => A.tags.map(
|
5972
|
-
(
|
5963
|
+
(p, E, T) => `${n.find((S) => S.guid === p)?.name}${E < T.length - 1 ? " / " : ""}`
|
5973
5964
|
),
|
5974
5965
|
[n, A]
|
5975
5966
|
);
|
@@ -5981,7 +5972,7 @@ const Fa = ({ transaction: A }) => {
|
|
5981
5972
|
e(R.ON_TRANSACTION_TAGS_CLICK), u(!0);
|
5982
5973
|
},
|
5983
5974
|
children: [
|
5984
|
-
/* @__PURE__ */ t(PA, { children: /* @__PURE__ */ t(
|
5975
|
+
/* @__PURE__ */ t(PA, { children: /* @__PURE__ */ t(me, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(N, { name: "local_offer", sx: { color: "text.primary" }, weight: qA.Dark }) }) }),
|
5985
5976
|
/* @__PURE__ */ t(
|
5986
5977
|
lA,
|
5987
5978
|
{
|
@@ -6144,7 +6135,7 @@ const Fa = ({ transaction: A }) => {
|
|
6144
6135
|
/* @__PURE__ */ t(oe, { square: !0, sx: { boxShadow: "none" }, children: /* @__PURE__ */ d(oA, { children: [
|
6145
6136
|
A.map((o, s) => /* @__PURE__ */ d(g.Fragment, { children: [
|
6146
6137
|
o === St.SplitTransaction && /* @__PURE__ */ t(Sl, { transaction: n }),
|
6147
|
-
o === St.HideTransaction && /* @__PURE__ */ t(
|
6138
|
+
o === St.HideTransaction && /* @__PURE__ */ t(ml, { transaction: n }),
|
6148
6139
|
o === St.MerchantLogo && /* @__PURE__ */ t(fl, { transaction: n }),
|
6149
6140
|
/* @__PURE__ */ t(X, { variant: s < A.length - 1 ? "inset" : "fullWidth" })
|
6150
6141
|
] }, o)),
|
@@ -6281,7 +6272,7 @@ const Mr = "connect_widget", Rr = "connections_widget", Wl = ({
|
|
6281
6272
|
i({ ...r, transaction_type: Number(T) });
|
6282
6273
|
}, v = (E) => {
|
6283
6274
|
u(E), i({ ...r, payee: E, description: E });
|
6284
|
-
},
|
6275
|
+
}, p = (E) => {
|
6285
6276
|
i({ ...r, account_guid: E });
|
6286
6277
|
};
|
6287
6278
|
return /* @__PURE__ */ d(D, { className: "mx-txn-manual-transaction-details", children: [
|
@@ -6345,7 +6336,7 @@ const Mr = "connect_widget", Rr = "connections_widget", Wl = ({
|
|
6345
6336
|
InputLabelProps: { shrink: !0 },
|
6346
6337
|
SelectProps: { defaultValue: -1, IconComponent: fa },
|
6347
6338
|
label: n.manual_transaction_select_an_account,
|
6348
|
-
onChange: (E) =>
|
6339
|
+
onChange: (E) => p(E.target.value),
|
6349
6340
|
placeholder: n.manual_transaction_select,
|
6350
6341
|
select: !0,
|
6351
6342
|
sx: { bgcolor: "background.paper" },
|
@@ -6415,7 +6406,7 @@ const Mr = "connect_widget", Rr = "connections_widget", Wl = ({
|
|
6415
6406
|
setSearchValue: l,
|
6416
6407
|
setShowInsights: h,
|
6417
6408
|
updateManualTransaction: C
|
6418
|
-
} = UA(), { addTransaction: f, filter: v, setFilter:
|
6409
|
+
} = UA(), { addTransaction: f, filter: v, setFilter: p, tags: E, transactions: T, updateTransaction: S } = cA(), { common: L, transactions: O } = b(), { userProfile: M } = Qt(), { onEvent: x } = V(), {
|
6419
6410
|
displayedDateRange: K,
|
6420
6411
|
isInitialized: B,
|
6421
6412
|
selectedAccountGuids: _,
|
@@ -6427,12 +6418,12 @@ const Mr = "connect_widget", Rr = "connections_widget", Wl = ({
|
|
6427
6418
|
P(a);
|
6428
6419
|
}, [a]), g.useEffect(() => {
|
6429
6420
|
const SA = EA($()), er = DA($());
|
6430
|
-
k(SA, er),
|
6421
|
+
k(SA, er), p({
|
6431
6422
|
dateRange: { start: SA, end: er },
|
6432
6423
|
accounts: G.map((xi) => xi.guid)
|
6433
6424
|
}), LA(!0), x(Q.TRANSACTIONS_VIEW);
|
6434
6425
|
}, []), g.useEffect(() => {
|
6435
|
-
Y &&
|
6426
|
+
Y && p({
|
6436
6427
|
...v,
|
6437
6428
|
dateRange: { start: K.start, end: K.end },
|
6438
6429
|
accounts: _
|
@@ -6446,7 +6437,7 @@ const Mr = "connect_widget", Rr = "connections_widget", Wl = ({
|
|
6446
6437
|
), WA = IA ? T.find((SA) => SA.guid === IA) : void 0, Ee = c && !!s.payee && !!s.account_guid && !!s.category_guid, $t = (SA) => {
|
6447
6438
|
k(SA[0], SA[1]);
|
6448
6439
|
}, An = (SA) => {
|
6449
|
-
l(SA),
|
6440
|
+
l(SA), p({
|
6450
6441
|
...v,
|
6451
6442
|
searchTerm: SA
|
6452
6443
|
}), x(Q.TRANSACTIONS_CLICK_SEARCH, { search_term: SA });
|
@@ -6468,7 +6459,7 @@ const Mr = "connect_widget", Rr = "connections_widget", Wl = ({
|
|
6468
6459
|
}, Oi = () => {
|
6469
6460
|
Ge(!1), i();
|
6470
6461
|
};
|
6471
|
-
return !B || !Y ? /* @__PURE__ */ t(
|
6462
|
+
return !B || !Y ? /* @__PURE__ */ t(pe, {}) : /* @__PURE__ */ d(
|
6472
6463
|
qe,
|
6473
6464
|
{
|
6474
6465
|
accountOptions: a,
|
@@ -6535,7 +6526,7 @@ const Mr = "connect_widget", Rr = "connections_widget", Wl = ({
|
|
6535
6526
|
[o.breakpoints.up("md")]: { display: "none" }
|
6536
6527
|
},
|
6537
6528
|
children: /* @__PURE__ */ t(
|
6538
|
-
|
6529
|
+
mt,
|
6539
6530
|
{
|
6540
6531
|
height: `calc(${e} - ${Hr}px)`,
|
6541
6532
|
onClick: (SA) => {
|
@@ -6635,7 +6626,7 @@ const Mr = "connect_widget", Rr = "connections_widget", Wl = ({
|
|
6635
6626
|
occurs_on: Ln(A.expectedDate, { representation: "date" }),
|
6636
6627
|
recurrence_type: A.recurrenceType
|
6637
6628
|
}), Ad = ({ activity: A }) => {
|
6638
|
-
const { recurring: e } = b(), { cashflowSequences: n, scheduledPayments: r, updateCashflowSequence: a, updateScheduledPayment: i } = KA(), { onEvent: o } = V(), [s, c] = g.useState(!1), u = A.activityType ===
|
6629
|
+
const { recurring: e } = b(), { cashflowSequences: n, scheduledPayments: r, updateCashflowSequence: a, updateScheduledPayment: i } = KA(), { onEvent: o } = V(), [s, c] = g.useState(!1), u = A.activityType === mA.Income, l = [
|
6639
6630
|
{ id: q.EveryWeek, label: e.frequency_every_week },
|
6640
6631
|
{ id: q.EveryOtherWeek, label: e.frequency_every_other_week },
|
6641
6632
|
{ id: q.EveryMonth, label: e.frequency_every_month },
|
@@ -6644,13 +6635,13 @@ const Mr = "connect_widget", Rr = "connections_widget", Wl = ({
|
|
6644
6635
|
{ id: q.EveryOtherQuarter, label: e.frequency_every_other_quarter },
|
6645
6636
|
{ id: q.EveryYear, label: e.frequency_every_year }
|
6646
6637
|
], h = async (v) => {
|
6647
|
-
const
|
6648
|
-
if (A.activityType ===
|
6638
|
+
const p = { ...A, recurrenceType: v };
|
6639
|
+
if (A.activityType === mA.Expense) {
|
6649
6640
|
const E = r.find((T) => T.guid === A.scheduledPaymentGuid);
|
6650
|
-
E && await i(Ja(
|
6641
|
+
E && await i(Ja(p, E));
|
6651
6642
|
} else {
|
6652
6643
|
const E = n.find((T) => T.guid === A.sequenceGuid);
|
6653
|
-
E && await a(Va(
|
6644
|
+
E && await a(Va(p, E));
|
6654
6645
|
}
|
6655
6646
|
c(!1);
|
6656
6647
|
}, C = () => {
|
@@ -6682,7 +6673,7 @@ const Mr = "connect_widget", Rr = "connections_widget", Wl = ({
|
|
6682
6673
|
(v) => (
|
6683
6674
|
// Filter out every other month and every other quarter when income since cashflow
|
6684
6675
|
// sequence doesn't support them
|
6685
|
-
A.activityType ===
|
6676
|
+
A.activityType === mA.Expense || v.id !== q.EveryOtherMonth && v.id !== q.EveryOtherQuarter
|
6686
6677
|
)
|
6687
6678
|
).map((v) => /* @__PURE__ */ d(g.Fragment, { children: [
|
6688
6679
|
/* @__PURE__ */ t(Z, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ d(dA, { onClick: () => h(v.id), children: [
|
@@ -6701,7 +6692,7 @@ const Mr = "connect_widget", Rr = "connections_widget", Wl = ({
|
|
6701
6692
|
)
|
6702
6693
|
] });
|
6703
6694
|
}, ed = I(Ad), td = ({ activity: A }) => {
|
6704
|
-
const { recurring: e } = b(), { cashflowSequences: n, scheduledPayments: r, updateCashflowSequence: a, updateScheduledPayment: i } = KA(), { onEvent: o } = V(), [s, c] = g.useState(!1), [u, l] = g.useState(A.expectedDate), h = A.activityType ===
|
6695
|
+
const { recurring: e } = b(), { cashflowSequences: n, scheduledPayments: r, updateCashflowSequence: a, updateScheduledPayment: i } = KA(), { onEvent: o } = V(), [s, c] = g.useState(!1), [u, l] = g.useState(A.expectedDate), h = A.activityType === mA.Income, C = () => {
|
6705
6696
|
l(A.expectedDate), c(!0), o(
|
6706
6697
|
h ? "recurring_transactions_widget_income_details_click_next_payment_due" : "recurring_transactions_widget_expense_details_click_next_payment_due",
|
6707
6698
|
{
|
@@ -6710,12 +6701,12 @@ const Mr = "connect_widget", Rr = "connections_widget", Wl = ({
|
|
6710
6701
|
);
|
6711
6702
|
}, f = async () => {
|
6712
6703
|
const v = { ...A, expectedDate: u };
|
6713
|
-
if (A.activityType ===
|
6714
|
-
const
|
6715
|
-
|
6704
|
+
if (A.activityType === mA.Expense) {
|
6705
|
+
const p = r.find((E) => E.guid === A.scheduledPaymentGuid);
|
6706
|
+
p && await i(Ja(v, p));
|
6716
6707
|
} else {
|
6717
|
-
const
|
6718
|
-
|
6708
|
+
const p = n.find((E) => E.guid === A.sequenceGuid);
|
6709
|
+
p && await a(Va(v, p));
|
6719
6710
|
}
|
6720
6711
|
c(!1);
|
6721
6712
|
};
|
@@ -6749,7 +6740,7 @@ const Mr = "connect_widget", Rr = "connections_widget", Wl = ({
|
|
6749
6740
|
)
|
6750
6741
|
] });
|
6751
6742
|
}, nd = I(td), rd = ({ activity: A, onDeleted: e }) => {
|
6752
|
-
const { recurring: n } = b(), { categories: r } = xA(), { deleteCashflowSequence: a, deleteScheduledPayment: i, paidActivities: o } = KA(), { filter: s, setFilter: c, transactions: u } = cA(), { selectedAccountGuids: l } = vA(), { onEvent: h } = V(), [C, f] = g.useState(!1), [v,
|
6743
|
+
const { recurring: n } = b(), { categories: r } = xA(), { deleteCashflowSequence: a, deleteScheduledPayment: i, paidActivities: o } = KA(), { filter: s, setFilter: c, transactions: u } = cA(), { selectedAccountGuids: l } = vA(), { onEvent: h } = V(), [C, f] = g.useState(!1), [v, p] = g.useState(""), E = r.find((M) => M.guid === A.categoryGuid), T = A.activityType === mA.Income, S = g.useMemo(
|
6753
6744
|
() => u.find((M) => M.guid === v),
|
6754
6745
|
[v]
|
6755
6746
|
);
|
@@ -6836,13 +6827,13 @@ const Mr = "connect_widget", Rr = "connections_widget", Wl = ({
|
|
6836
6827
|
}
|
6837
6828
|
),
|
6838
6829
|
/* @__PURE__ */ t(y, { bold: !0, sx: { ml: 24, mt: 16 }, variant: "Body", children: n.paid_transactions }),
|
6839
|
-
/* @__PURE__ */ t(
|
6830
|
+
/* @__PURE__ */ t(mt, { height: "30dvh", onClick: p }),
|
6840
6831
|
/* @__PURE__ */ t(
|
6841
6832
|
uA,
|
6842
6833
|
{
|
6843
6834
|
ariaLabelClose: n.close_drawer_aria,
|
6844
6835
|
isOpen: !!v,
|
6845
|
-
onClose: () =>
|
6836
|
+
onClose: () => p(""),
|
6846
6837
|
title: n.transaction_details_drawer_title,
|
6847
6838
|
children: S && /* @__PURE__ */ t(Wt, { transaction: S })
|
6848
6839
|
}
|
@@ -6865,7 +6856,7 @@ const Mr = "connect_widget", Rr = "connections_widget", Wl = ({
|
|
6865
6856
|
gridRow: 1,
|
6866
6857
|
gridColumn: 1,
|
6867
6858
|
zIndex: 2
|
6868
|
-
}, Vt = (A) => A ? { margin: "0 0 -6px -4px" } : void 0, jn = ({ isOffset: A = !1, size: e = 16 }) => /* @__PURE__ */ t(Te, { size: e, sx: { ...Vt(A) }, children: /* @__PURE__ */ t(No, { color: "primary", sx: { fontSize: e, ...Yt } }) }), Un = ({ isOffset: A = !1, size: e = 16 }) => /* @__PURE__ */ t(Te, { size: e, sx: { ...Vt(A) }, children: /* @__PURE__ */ t(Mo, { sx: { color: "categories.income", fontSize: e, ...Yt } }) }), Wn = ({ isOffset: A = !1, size: e = 16 }) => /* @__PURE__ */ t(Te, { size: e, sx: { ...Vt(A) }, children: /* @__PURE__ */ t(Dt, { color: "error", sx: { fontSize: e, ...Yt } }) }), Yn = ({ isOffset: A = !1, size: e = 16 }) => /* @__PURE__ */ t(Te, { size: e, sx: { ...Vt(A) }, children: /* @__PURE__ */ t(
|
6859
|
+
}, Vt = (A) => A ? { margin: "0 0 -6px -4px" } : void 0, jn = ({ isOffset: A = !1, size: e = 16 }) => /* @__PURE__ */ t(Te, { size: e, sx: { ...Vt(A) }, children: /* @__PURE__ */ t(No, { color: "primary", sx: { fontSize: e, ...Yt } }) }), Un = ({ isOffset: A = !1, size: e = 16 }) => /* @__PURE__ */ t(Te, { size: e, sx: { ...Vt(A) }, children: /* @__PURE__ */ t(Mo, { sx: { color: "categories.income", fontSize: e, ...Yt } }) }), Wn = ({ isOffset: A = !1, size: e = 16 }) => /* @__PURE__ */ t(Te, { size: e, sx: { ...Vt(A) }, children: /* @__PURE__ */ t(Dt, { color: "error", sx: { fontSize: e, ...Yt } }) }), Yn = ({ isOffset: A = !1, size: e = 16 }) => /* @__PURE__ */ t(Te, { size: e, sx: { ...Vt(A) }, children: /* @__PURE__ */ t(ma, { color: "success", sx: { fontSize: e, ...Yt } }) }), zr = ({ copy: A, date: e, type: n }) => {
|
6869
6860
|
let r = e && Ro(e) ? z(A.monthly_ordinal, JA(e, "do")) : A.monthly;
|
6870
6861
|
switch (n) {
|
6871
6862
|
case q.EveryQuarter:
|
@@ -6890,17 +6881,17 @@ const Mr = "connect_widget", Rr = "connections_widget", Wl = ({
|
|
6890
6881
|
return r;
|
6891
6882
|
}, id = (A, e) => {
|
6892
6883
|
switch (A.activityStatus) {
|
6893
|
-
case
|
6884
|
+
case pA.Paid:
|
6894
6885
|
return A.occurredOnDate ? z(
|
6895
6886
|
e.paid_on,
|
6896
6887
|
J(A.occurredOnDate, U.MONTH_DAY)
|
6897
6888
|
) : e.paid;
|
6898
|
-
case
|
6889
|
+
case pA.Missed:
|
6899
6890
|
return z(
|
6900
6891
|
e.missed_on,
|
6901
6892
|
J(A.expectedDate, U.MONTH_DAY)
|
6902
6893
|
);
|
6903
|
-
case
|
6894
|
+
case pA.Upcoming:
|
6904
6895
|
return z(
|
6905
6896
|
e.upcoming_on,
|
6906
6897
|
J(A.expectedDate, U.MONTH_DAY)
|
@@ -6909,12 +6900,12 @@ const Mr = "connect_widget", Rr = "connections_widget", Wl = ({
|
|
6909
6900
|
return e.unknown;
|
6910
6901
|
}
|
6911
6902
|
}, od = (A) => {
|
6912
|
-
if (A.activityType ===
|
6903
|
+
if (A.activityType === mA.Income)
|
6913
6904
|
return /* @__PURE__ */ t(Un, {});
|
6914
6905
|
switch (A.activityStatus) {
|
6915
|
-
case
|
6906
|
+
case pA.Missed:
|
6916
6907
|
return /* @__PURE__ */ t(Wn, {});
|
6917
|
-
case
|
6908
|
+
case pA.Paid:
|
6918
6909
|
return /* @__PURE__ */ t(Yn, {});
|
6919
6910
|
default:
|
6920
6911
|
return /* @__PURE__ */ t(jn, {});
|
@@ -6926,7 +6917,7 @@ const Mr = "connect_widget", Rr = "connections_widget", Wl = ({
|
|
6926
6917
|
},
|
6927
6918
|
showOrdinal: r = !1
|
6928
6919
|
}) => {
|
6929
|
-
const { recurring: a } = b(), [i, o] = g.useState(""), s = A.activityType ===
|
6920
|
+
const { recurring: a } = b(), [i, o] = g.useState(""), s = A.activityType === mA.Income, c = A.activityStatus === pA.Paid, u = A.activityStatus === pA.Missed, l = A.activityStatus === pA.Upcoming;
|
6930
6921
|
let h = a.paid?.toLowerCase();
|
6931
6922
|
return u ? h = a.missed?.toLowerCase() : l && (h = zr(r ? {
|
6932
6923
|
copy: a,
|
@@ -6990,7 +6981,7 @@ const Mr = "connect_widget", Rr = "connections_widget", Wl = ({
|
|
6990
6981
|
ariaLabelClose: a.close_drawer_aria,
|
6991
6982
|
isOpen: i === A.sequenceGuid || i === A.scheduledPaymentGuid,
|
6992
6983
|
onClose: () => o(""),
|
6993
|
-
title: A.activityType !==
|
6984
|
+
title: A.activityType !== mA.Income ? a.expense_details : a.income_details,
|
6994
6985
|
children: /* @__PURE__ */ t(ad, { activity: A, onDeleted: () => o("") })
|
6995
6986
|
}
|
6996
6987
|
)
|
@@ -7084,7 +7075,7 @@ const Mr = "connect_widget", Rr = "connections_widget", Wl = ({
|
|
7084
7075
|
searchValue: i
|
7085
7076
|
}
|
7086
7077
|
),
|
7087
|
-
/* @__PURE__ */ t(
|
7078
|
+
/* @__PURE__ */ t(mt, { bgcolor: A, height: "auto", onClick: r, showLoader: !1 })
|
7088
7079
|
] });
|
7089
7080
|
}, Ai = I(ld), dd = ({
|
7090
7081
|
bgcolor: A = "background.default",
|
@@ -7169,12 +7160,12 @@ const Mr = "connect_widget", Rr = "connections_widget", Wl = ({
|
|
7169
7160
|
}
|
7170
7161
|
) })
|
7171
7162
|
] });
|
7172
|
-
}, ei = I(dd), Cn = (A) => A.top_level_category_guid !==
|
7163
|
+
}, ei = I(dd), Cn = (A) => A.top_level_category_guid !== m.INCOME && A.transaction_type === QA.DEBIT, ud = (A, e) => Cn(A) ? A.payee?.toLowerCase().includes(e.toLowerCase()) || A.description.toLowerCase().includes(e.toLowerCase()) || A.feed_description.toLowerCase().includes(e.toLowerCase()) : !1, ht = (A) => A.top_level_category_guid === m.INCOME || A.top_level_category_guid === m.TRANSFER && A.transaction_type === QA.CREDIT, ti = (A, e) => ht(A) ? A.payee?.toLowerCase().includes(e.toLowerCase()) || A.description?.toLowerCase().includes(e.toLowerCase()) || A.feed_description?.toLowerCase().includes(e.toLowerCase()) : !1, hd = ({
|
7173
7164
|
isIncome: A = !1,
|
7174
7165
|
label: e,
|
7175
7166
|
onAddActivity: n = () => null
|
7176
7167
|
}) => {
|
7177
|
-
const { recurring: r } = b(), { addCashflowEvent: a, addCashflowSequence: i, addScheduledPayment: o } = KA(), { filter: s, setFilter: c, transactions: u } = cA(), [l, h] = g.useState(!1), [C, f] = g.useState(""), [v,
|
7168
|
+
const { recurring: r } = b(), { addCashflowEvent: a, addCashflowSequence: i, addScheduledPayment: o } = KA(), { filter: s, setFilter: c, transactions: u } = cA(), [l, h] = g.useState(!1), [C, f] = g.useState(""), [v, p] = g.useState(q.EveryMonth), [E, T] = g.useState(null), S = g.useMemo(
|
7178
7169
|
() => u.find((x) => x.guid === C),
|
7179
7170
|
[C]
|
7180
7171
|
), L = () => {
|
@@ -7243,7 +7234,7 @@ const Mr = "connect_widget", Rr = "connections_widget", Wl = ({
|
|
7243
7234
|
frequency: v,
|
7244
7235
|
isIncome: A,
|
7245
7236
|
nextDate: E,
|
7246
|
-
onFrequencyChange:
|
7237
|
+
onFrequencyChange: p,
|
7247
7238
|
onNextDateChange: T,
|
7248
7239
|
transaction: S
|
7249
7240
|
}
|
@@ -7254,8 +7245,8 @@ const Mr = "connect_widget", Rr = "connections_widget", Wl = ({
|
|
7254
7245
|
}, ni = I(hd), gd = (A, e, n) => e.map((r) => {
|
7255
7246
|
const a = n.find((o) => o.scheduled_payment_guid === r.guid), i = A.find((o) => o.guid === a?.account_guid);
|
7256
7247
|
return {
|
7257
|
-
activityStatus:
|
7258
|
-
activityType:
|
7248
|
+
activityStatus: pA.Upcoming,
|
7249
|
+
activityType: mA.Expense,
|
7259
7250
|
amount: r.amount,
|
7260
7251
|
categoryGuid: a?.category_guid,
|
7261
7252
|
expectedDate: Ca(r.occurs_on),
|
@@ -7293,8 +7284,8 @@ const Mr = "connect_widget", Rr = "connections_widget", Wl = ({
|
|
7293
7284
|
const h = a.find((v) => v.guid === l.cashflow_sequence_guid), C = i.find((v) => v.guid === l.transaction_guid), f = A.find((v) => v.guid === C?.account_guid);
|
7294
7285
|
return {
|
7295
7286
|
accountGuid: h?.account_guid || f?.guid,
|
7296
|
-
activityStatus:
|
7297
|
-
activityType:
|
7287
|
+
activityStatus: pA.Paid,
|
7288
|
+
activityType: mA.Income,
|
7298
7289
|
amount: l.amount,
|
7299
7290
|
categoryGuid: l.category_guid,
|
7300
7291
|
expectedDate: st(l.expected_date),
|
@@ -7319,13 +7310,13 @@ const Mr = "connect_widget", Rr = "connections_widget", Wl = ({
|
|
7319
7310
|
);
|
7320
7311
|
return h?.end_date === null && !C;
|
7321
7312
|
}).map((l) => {
|
7322
|
-
const h = a.find((
|
7323
|
-
(
|
7324
|
-
), f = i.find((
|
7313
|
+
const h = a.find((p) => p.guid === l.cashflow_sequence_guid), C = e.find(
|
7314
|
+
(p) => p.cashflow_sequence_guid === l.cashflow_sequence_guid && !!p.transaction_guid
|
7315
|
+
), f = i.find((p) => p.guid === C?.transaction_guid), v = A.find((p) => p.guid === f?.account_guid);
|
7325
7316
|
return {
|
7326
7317
|
accountGuid: h?.account_guid || v?.guid,
|
7327
|
-
activityStatus:
|
7328
|
-
activityType:
|
7318
|
+
activityStatus: pA.Upcoming,
|
7319
|
+
activityType: mA.Income,
|
7329
7320
|
amount: l.amount,
|
7330
7321
|
categoryGuid: l.category_guid,
|
7331
7322
|
expectedDate: st(l.expected_date),
|
@@ -7339,16 +7330,16 @@ const Mr = "connect_widget", Rr = "connections_widget", Wl = ({
|
|
7339
7330
|
transactionGuid: void 0
|
7340
7331
|
};
|
7341
7332
|
}), c = [];
|
7342
|
-
return n && n.forEach((l) => c.push(...
|
7333
|
+
return n && n.forEach((l) => c.push(...md(A, l, i))), [...o, ...s, ...c].sort(
|
7343
7334
|
(l, h) => gA(l.occurredOnDate || l.expectedDate) - gA(h.occurredOnDate || h.expectedDate)
|
7344
7335
|
);
|
7345
|
-
},
|
7336
|
+
}, md = (A, e, n) => {
|
7346
7337
|
const r = [], a = n.find((f) => f.scheduled_payment_guid === e.guid);
|
7347
7338
|
if (!a) return [];
|
7348
7339
|
const i = A.find((f) => f.guid === a?.account_guid), o = Ca(e.occurs_on), s = {
|
7349
7340
|
accountGuid: i?.guid,
|
7350
|
-
activityStatus:
|
7351
|
-
activityType:
|
7341
|
+
activityStatus: pA.Upcoming,
|
7342
|
+
activityType: mA.Expense,
|
7352
7343
|
amount: e.amount,
|
7353
7344
|
categoryGuid: a?.category_guid,
|
7354
7345
|
expectedDate: o,
|
@@ -7441,16 +7432,16 @@ const Mr = "connect_widget", Rr = "connections_widget", Wl = ({
|
|
7441
7432
|
}
|
7442
7433
|
return r.forEach((f) => {
|
7443
7434
|
const v = n.find(
|
7444
|
-
(
|
7435
|
+
(p) => p.scheduled_payment_guid === f.scheduledPaymentGuid && p.date > gA(ne(f.expectedDate, 3)) && p.date < gA(ce(f.expectedDate, 3))
|
7445
7436
|
);
|
7446
|
-
v ? (f.transactionGuid = v.guid, f.occurredOnDate = NA(v.date), f.activityStatus =
|
7437
|
+
v ? (f.transactionGuid = v.guid, f.occurredOnDate = NA(v.date), f.activityStatus = pA.Paid) : hA(f.expectedDate, ne(u, 3)) && (f.activityStatus = pA.Missed);
|
7447
7438
|
}), r;
|
7448
|
-
},
|
7439
|
+
}, pd = (A, e, n, r, a) => r.map((i) => {
|
7449
7440
|
const o = e.find((h) => h.cashflow_sequence_guid === i.guid), s = n.find((h) => h.cashflow_sequence_guid === i.guid), c = a.find((h) => h.guid === o?.transaction_guid), u = A.find((h) => h.guid === c?.account_guid);
|
7450
7441
|
let l = /* @__PURE__ */ new Date();
|
7451
7442
|
return o ? l = st(o.expected_date) : s && (l = st(s.expected_date)), {
|
7452
|
-
activityStatus:
|
7453
|
-
activityType:
|
7443
|
+
activityStatus: pA.Upcoming,
|
7444
|
+
activityType: mA.Income,
|
7454
7445
|
amount: i.amount,
|
7455
7446
|
categoryGuid: o?.category_guid,
|
7456
7447
|
expectedDate: l,
|
@@ -7463,7 +7454,7 @@ const Mr = "connect_widget", Rr = "connections_widget", Wl = ({
|
|
7463
7454
|
sequenceGuid: i.guid
|
7464
7455
|
};
|
7465
7456
|
}), Ed = () => {
|
7466
|
-
const { recurring: A } = b(), { selectedAccounts: e } = vA(), { cashflowEvents: n, cashflowSequences: r, projectedEvents: a } = KA(), { transactions: i } = cA(), { onEvent: o } = V(), s =
|
7457
|
+
const { recurring: A } = b(), { selectedAccounts: e } = vA(), { cashflowEvents: n, cashflowSequences: r, projectedEvents: a } = KA(), { transactions: i } = cA(), { onEvent: o } = V(), s = pd(
|
7467
7458
|
e,
|
7468
7459
|
n,
|
7469
7460
|
a,
|
@@ -7506,10 +7497,10 @@ const Mr = "connect_widget", Rr = "connections_widget", Wl = ({
|
|
7506
7497
|
A === 0 && /* @__PURE__ */ t(fd, {}),
|
7507
7498
|
A === 1 && /* @__PURE__ */ t(ri, {})
|
7508
7499
|
] });
|
7509
|
-
}, ai = I(yd), nt = (A, e) => A + e.amount, nn = (A) => A.activityType ===
|
7500
|
+
}, ai = I(yd), nt = (A, e) => A + e.amount, nn = (A) => A.activityType === mA.Income && We(A.expectedDate, {
|
7510
7501
|
start: EA($()),
|
7511
7502
|
end: DA($())
|
7512
|
-
}), Lt = (A) => A.activityType ===
|
7503
|
+
}), Lt = (A) => A.activityType === mA.Expense && We(A.expectedDate, {
|
7513
7504
|
start: EA($()),
|
7514
7505
|
end: DA($())
|
7515
7506
|
}), rn = (A) => A.occurredOnDate && We(A.occurredOnDate, {
|
@@ -7525,12 +7516,12 @@ const Mr = "connect_widget", Rr = "connections_widget", Wl = ({
|
|
7525
7516
|
).filter(
|
7526
7517
|
(v) => GA(v.occurredOnDate || v.expectedDate, A)
|
7527
7518
|
), u = c.some(
|
7528
|
-
(v) => v.activityType ===
|
7519
|
+
(v) => v.activityType === mA.Expense && v.activityStatus === pA.Upcoming
|
7529
7520
|
), l = c.some(
|
7530
|
-
(v) => v.activityType ===
|
7521
|
+
(v) => v.activityType === mA.Expense && v.activityStatus === pA.Missed
|
7531
7522
|
), h = c.some(
|
7532
|
-
(v) => v.activityType ===
|
7533
|
-
), C = c.some((v) => v.activityType ===
|
7523
|
+
(v) => v.activityType === mA.Expense && v.activityStatus === pA.Paid
|
7524
|
+
), C = c.some((v) => v.activityType === mA.Income), f = (u ? 1 : 0) + (l ? 1 : 0) + (h ? 1 : 0) + (C ? 1 : 0);
|
7534
7525
|
return /* @__PURE__ */ t(
|
7535
7526
|
va,
|
7536
7527
|
{
|
@@ -7751,7 +7742,7 @@ const Mr = "connect_widget", Rr = "connections_widget", Wl = ({
|
|
7751
7742
|
selectedDayActivities: o,
|
7752
7743
|
setSelectedDay: s,
|
7753
7744
|
upcomingActivities: c
|
7754
|
-
} = KA(), [u, l] = g.useState(0), { onEvent: h } = V(), C = n.filter(rn), f = a.filter(rn), v = r.filter(rn),
|
7745
|
+
} = KA(), [u, l] = g.useState(0), { onEvent: h } = V(), C = n.filter(rn), f = a.filter(rn), v = r.filter(rn), p = C.filter(Lt).reduce(nt, 0), E = f.filter(Lt).reduce(nt, 0), T = v.filter(Lt).reduce(nt, 0), S = C.filter(Lt).length, L = C.filter(nn).reduce(nt, 0), O = f.filter(nn).reduce(nt, 0), M = C.filter(nn).length, x = (_, G) => {
|
7755
7746
|
l(G);
|
7756
7747
|
}, K = (_) => {
|
7757
7748
|
h(Q.RECURRING_ACTIVITY_CLICK_UPCOMING, {
|
@@ -7767,7 +7758,7 @@ const Mr = "connect_widget", Rr = "connections_widget", Wl = ({
|
|
7767
7758
|
/* @__PURE__ */ t(
|
7768
7759
|
Kr,
|
7769
7760
|
{
|
7770
|
-
expected:
|
7761
|
+
expected: p,
|
7771
7762
|
missed: T,
|
7772
7763
|
paid: E,
|
7773
7764
|
title: A.expenses,
|
@@ -7926,7 +7917,7 @@ const Mr = "connect_widget", Rr = "connections_widget", Wl = ({
|
|
7926
7917
|
}, Jg = I(Hd);
|
7927
7918
|
class zd {
|
7928
7919
|
globalStore;
|
7929
|
-
api = new
|
7920
|
+
api = new mr("/", "");
|
7930
7921
|
cashflowApi = new Xr("/", "");
|
7931
7922
|
cashflowSequences = [];
|
7932
7923
|
cashflowEvents = [];
|
@@ -7939,7 +7930,7 @@ class zd {
|
|
7939
7930
|
this.globalStore = e, wA(this);
|
7940
7931
|
}
|
7941
7932
|
initialize = async (e, n) => {
|
7942
|
-
this.api = new
|
7933
|
+
this.api = new mr(e, n), this.cashflowApi = new Xr(e, n), this.loadActivity();
|
7943
7934
|
};
|
7944
7935
|
get activities() {
|
7945
7936
|
return this.isLoading ? [] : vd(
|
@@ -7952,19 +7943,19 @@ class zd {
|
|
7952
7943
|
);
|
7953
7944
|
}
|
7954
7945
|
get paidActivities() {
|
7955
|
-
return this.activities.filter((e) => e.activityStatus ===
|
7946
|
+
return this.activities.filter((e) => e.activityStatus === pA.Paid);
|
7956
7947
|
}
|
7957
7948
|
get upcomingActivities() {
|
7958
|
-
return this.activities.filter((e) => e.activityStatus ===
|
7949
|
+
return this.activities.filter((e) => e.activityStatus === pA.Upcoming);
|
7959
7950
|
}
|
7960
7951
|
get missedActivities() {
|
7961
|
-
return this.activities.filter((e) => e.activityStatus ===
|
7952
|
+
return this.activities.filter((e) => e.activityStatus === pA.Missed);
|
7962
7953
|
}
|
7963
7954
|
get upcomingExpenses() {
|
7964
|
-
return this.upcomingActivities.filter((e) => e.activityType ===
|
7955
|
+
return this.upcomingActivities.filter((e) => e.activityType === mA.Expense);
|
7965
7956
|
}
|
7966
7957
|
get upcomingIncome() {
|
7967
|
-
return this.upcomingActivities.filter((e) => e.activityType ===
|
7958
|
+
return this.upcomingActivities.filter((e) => e.activityType === mA.Income);
|
7968
7959
|
}
|
7969
7960
|
get nextIncomeActivity() {
|
7970
7961
|
return this.upcomingIncome.find((e) => lt(e.expectedDate, $()));
|
@@ -8707,7 +8698,7 @@ const Ud = ({ activity: A }) => /* @__PURE__ */ d(aA, { children: [
|
|
8707
8698
|
), C = g.useMemo(
|
8708
8699
|
() => c.reduce((S, L) => S + (L?.balance || 0), 0),
|
8709
8700
|
[c]
|
8710
|
-
), f = l.reduce((S, L) => S + L.amount, 0), v = h.reduce((S, L) => S + L.amount, 0),
|
8701
|
+
), f = l.reduce((S, L) => S + L.amount, 0), v = h.reduce((S, L) => S + L.amount, 0), p = C - f + v, E = i.length > 0 && u?.has_completed_cash_flow_onboarding, T = n < 725;
|
8711
8702
|
return /* @__PURE__ */ d(w, { flexDirection: "row", gap: 24, justifyContent: "center", my: T ? 24 : 42, children: [
|
8712
8703
|
T ? /* @__PURE__ */ d(w, { border: "1px solid", borderColor: "border.light", borderRadius: 1, mx: 16, width: "100%", children: [
|
8713
8704
|
/* @__PURE__ */ t(
|
@@ -8750,7 +8741,7 @@ const Ud = ({ activity: A }) => /* @__PURE__ */ d(aA, { children: [
|
|
8750
8741
|
/* @__PURE__ */ t(
|
8751
8742
|
ye,
|
8752
8743
|
{
|
8753
|
-
amount:
|
8744
|
+
amount: p,
|
8754
8745
|
isMobile: !0,
|
8755
8746
|
isTotal: !0,
|
8756
8747
|
label: r.remaining_cash,
|
@@ -8789,7 +8780,7 @@ const Ud = ({ activity: A }) => /* @__PURE__ */ d(aA, { children: [
|
|
8789
8780
|
/* @__PURE__ */ t(
|
8790
8781
|
ye,
|
8791
8782
|
{
|
8792
|
-
amount:
|
8783
|
+
amount: p,
|
8793
8784
|
label: r.remaining_cash,
|
8794
8785
|
tooltip: /* @__PURE__ */ t(
|
8795
8786
|
Mt,
|
@@ -8898,7 +8889,7 @@ const Ud = ({ activity: A }) => /* @__PURE__ */ d(aA, { children: [
|
|
8898
8889
|
transform: rotate(360deg);
|
8899
8890
|
}
|
8900
8891
|
`, lu = () => {
|
8901
|
-
const { addCashflowEvent: A, addCashflowSequence: e, cashflowSequences: n } = KA(), { cashflow: r, common: a } = b(), { completeOnboarding: i } = Hn(), { isDirty: o } = At(), { isMobile: s } = jA(), { setDisplayedDate: c } = vA(), { filter: u, setFilter: l, transactions: h } = cA(), C = CA(), [f, v] = ie(!0), [
|
8892
|
+
const { addCashflowEvent: A, addCashflowSequence: e, cashflowSequences: n } = KA(), { cashflow: r, common: a } = b(), { completeOnboarding: i } = Hn(), { isDirty: o } = At(), { isMobile: s } = jA(), { setDisplayedDate: c } = vA(), { filter: u, setFilter: l, transactions: h } = cA(), C = CA(), [f, v] = ie(!0), [p, E] = g.useState(q.EveryMonth), [T, S] = ie(!1), [L, O] = g.useState(null), [M, x] = ie(1), [K, B] = ie([]), [_, G] = ie(""), k = g.useMemo(
|
8902
8893
|
() => h.find((sA) => sA.guid === _),
|
8903
8894
|
[_]
|
8904
8895
|
), P = !!n.length, W = async () => {
|
@@ -9004,7 +8995,7 @@ const Ud = ({ activity: A }) => /* @__PURE__ */ d(aA, { children: [
|
|
9004
8995
|
ei,
|
9005
8996
|
{
|
9006
8997
|
bgcolor: "background.paper",
|
9007
|
-
frequency:
|
8998
|
+
frequency: p,
|
9008
8999
|
isIncome: !0,
|
9009
9000
|
nextDate: L,
|
9010
9001
|
onFrequencyChange: E,
|
@@ -9019,7 +9010,7 @@ const Ud = ({ activity: A }) => /* @__PURE__ */ d(aA, { children: [
|
|
9019
9010
|
"aria-disabled": !k || !L,
|
9020
9011
|
onClick: () => {
|
9021
9012
|
const sA = [...K];
|
9022
|
-
sA.push({ ...k, nextDate: L, frequency:
|
9013
|
+
sA.push({ ...k, nextDate: L, frequency: p }), B(sA), G("");
|
9023
9014
|
},
|
9024
9015
|
variant: "contained",
|
9025
9016
|
children: a.confirm_button
|
@@ -9071,7 +9062,7 @@ const Ud = ({ activity: A }) => /* @__PURE__ */ d(aA, { children: [
|
|
9071
9062
|
setSelectedAccounts: a,
|
9072
9063
|
shouldDisableNextDate: i,
|
9073
9064
|
shouldDisablePrevDate: o
|
9074
|
-
} = vA(), { onEvent: s } = V(), { cashAccounts: c } = OA(), { setFilter: u } = cA(), { userProfile: l } = Qt(), { dateRange: h, setSelectedCashAccounts: C } = At(), { cashflow: f } = b(), [v,
|
9065
|
+
} = vA(), { onEvent: s } = V(), { cashAccounts: c } = OA(), { setFilter: u } = cA(), { userProfile: l } = Qt(), { dateRange: h, setSelectedCashAccounts: C } = At(), { cashflow: f } = b(), [v, p] = g.useState(!1);
|
9075
9066
|
return g.useEffect(() => {
|
9076
9067
|
a(c);
|
9077
9068
|
}, [c]), g.useEffect(() => {
|
@@ -9088,7 +9079,7 @@ const Ud = ({ activity: A }) => /* @__PURE__ */ d(aA, { children: [
|
|
9088
9079
|
label: f.cashflow_settings,
|
9089
9080
|
iconName: "settings",
|
9090
9081
|
onClick: () => {
|
9091
|
-
|
9082
|
+
p(!0), s(Q.CASH_FLOW_CLICK_SETTINGS);
|
9092
9083
|
}
|
9093
9084
|
}
|
9094
9085
|
],
|
@@ -9113,7 +9104,7 @@ const Ud = ({ activity: A }) => /* @__PURE__ */ d(aA, { children: [
|
|
9113
9104
|
{
|
9114
9105
|
ariaLabelClose: f.close_settings_aria,
|
9115
9106
|
isOpen: v,
|
9116
|
-
onClose: () =>
|
9107
|
+
onClose: () => p(!1),
|
9117
9108
|
shouldShowHeaderBorders: !1,
|
9118
9109
|
title: f.cashflow_settings,
|
9119
9110
|
children: /* @__PURE__ */ t(ai, {})
|
@@ -9246,7 +9237,7 @@ class fu {
|
|
9246
9237
|
return e === n;
|
9247
9238
|
}
|
9248
9239
|
}
|
9249
|
-
const vu = /^[ a-zA-ZÀ-ÿ0-9]+$/,
|
9240
|
+
const vu = /^[ a-zA-ZÀ-ÿ0-9]+$/, mu = 50, Qr = 65, pu = ({
|
9250
9241
|
height: A = "calc(100dvh - 120px)",
|
9251
9242
|
onSelect: e
|
9252
9243
|
}) => {
|
@@ -9257,7 +9248,7 @@ const vu = /^[ a-zA-ZÀ-ÿ0-9]+$/, pu = 50, Qr = 65, mu = ({
|
|
9257
9248
|
const c = (C) => {
|
9258
9249
|
e(C);
|
9259
9250
|
}, u = async (C) => {
|
9260
|
-
(!C || vu.test(C)) && C.length <=
|
9251
|
+
(!C || vu.test(C)) && C.length <= mu && (s(C), await a(C));
|
9261
9252
|
}, l = g.useRef(null), h = ga({
|
9262
9253
|
count: r.length,
|
9263
9254
|
getScrollElement: () => l.current,
|
@@ -9277,7 +9268,7 @@ const vu = /^[ a-zA-ZÀ-ÿ0-9]+$/, pu = 50, Qr = 65, mu = ({
|
|
9277
9268
|
),
|
9278
9269
|
/* @__PURE__ */ t(oe, { sx: { boxShadow: "none" }, children: /* @__PURE__ */ t(oA, { children: /* @__PURE__ */ d(D, { height: A, overflow: "auto", ref: l, children: [
|
9279
9270
|
/* @__PURE__ */ d(D, { height: h.getTotalSize(), position: "relative", children: [
|
9280
|
-
n && /* @__PURE__ */ t(
|
9271
|
+
n && /* @__PURE__ */ t(pe, { label: "Loading...", size: 32 }),
|
9281
9272
|
!n && h.getVirtualItems().length > 0 && h.getVirtualItems().map((C) => {
|
9282
9273
|
const f = r[C.index];
|
9283
9274
|
return /* @__PURE__ */ d(
|
@@ -9302,7 +9293,7 @@ const vu = /^[ a-zA-ZÀ-ÿ0-9]+$/, pu = 50, Qr = 65, mu = ({
|
|
9302
9293
|
!r.length && /* @__PURE__ */ t(w, { alignItems: "center", my: 24, children: /* @__PURE__ */ t(y, { bold: !0, color: "secondary", variant: "Small", children: i.search_zero_state }) })
|
9303
9294
|
] }) }) })
|
9304
9295
|
] });
|
9305
|
-
}, AC = I(
|
9296
|
+
}, AC = I(pu);
|
9306
9297
|
class Fr {
|
9307
9298
|
fetchInstance;
|
9308
9299
|
constructor(e, n) {
|
@@ -9443,7 +9434,7 @@ const Lu = (A, e) => {
|
|
9443
9434
|
width: 8
|
9444
9435
|
}
|
9445
9436
|
};
|
9446
|
-
return /* @__PURE__ */ d(
|
9437
|
+
return /* @__PURE__ */ d(pn, { onClick: () => {
|
9447
9438
|
e(A), n({ ...A, has_been_viewed: !0 }).finally();
|
9448
9439
|
}, sx: a.card, children: [
|
9449
9440
|
A.has_been_viewed ? null : /* @__PURE__ */ t("div", { "data-testid": "new-message-dot", style: a.dot }),
|
@@ -9457,7 +9448,7 @@ const Lu = (A, e) => {
|
|
9457
9448
|
return se(() => () => {
|
9458
9449
|
r().finally();
|
9459
9450
|
}, []), /* @__PURE__ */ d(so, { sx: { p: 16 }, children: [
|
9460
|
-
e && /* @__PURE__ */ t(
|
9451
|
+
e && /* @__PURE__ */ t(pe, { label: a.loading, size: 40 }),
|
9461
9452
|
!e && n.length === 0 && /* @__PURE__ */ t(te, { sx: { p: 16 }, children: /* @__PURE__ */ t(y, { fontStyle: "italic", sx: { textAlign: "center" }, children: a.no_notifications }) }),
|
9462
9453
|
!e && n.sort((o, s) => s.delivered_at - o.delivered_at).map((o, s) => {
|
9463
9454
|
const c = Lu(s, n);
|
@@ -9472,13 +9463,13 @@ const Lu = (A, e) => {
|
|
9472
9463
|
] });
|
9473
9464
|
}, tC = I(Du);
|
9474
9465
|
class Ou {
|
9475
|
-
api = new
|
9466
|
+
api = new pr("/", "");
|
9476
9467
|
userProfile = null;
|
9477
9468
|
constructor() {
|
9478
9469
|
wA(this);
|
9479
9470
|
}
|
9480
9471
|
initialize = async (e, n) => {
|
9481
|
-
this.api = new
|
9472
|
+
this.api = new pr(e, n), await this.loadUserProfile();
|
9482
9473
|
};
|
9483
9474
|
loadUserProfile = async () => {
|
9484
9475
|
try {
|
@@ -9563,7 +9554,7 @@ const an = ({
|
|
9563
9554
|
...c,
|
9564
9555
|
...E
|
9565
9556
|
});
|
9566
|
-
},
|
9557
|
+
}, p = () => {
|
9567
9558
|
u([c.guid, o.guid]).finally(
|
9568
9559
|
() => r(!1)
|
9569
9560
|
);
|
@@ -9659,7 +9650,7 @@ const an = ({
|
|
9659
9650
|
},
|
9660
9651
|
isOpen: a,
|
9661
9652
|
onClose: () => i(!1),
|
9662
|
-
onPrimaryAction:
|
9653
|
+
onPrimaryAction: p,
|
9663
9654
|
children: [
|
9664
9655
|
z(
|
9665
9656
|
h.this_means_accounts_will_be_merged,
|
@@ -9959,7 +9950,7 @@ const an = ({
|
|
9959
9950
|
error: !!c,
|
9960
9951
|
fullWidth: !0,
|
9961
9952
|
helperText: c,
|
9962
|
-
onChange:
|
9953
|
+
onChange: p,
|
9963
9954
|
placeholder: A.placeholder
|
9964
9955
|
}
|
9965
9956
|
);
|
@@ -9969,7 +9960,7 @@ const an = ({
|
|
9969
9960
|
...a,
|
9970
9961
|
[A.name]: o
|
9971
9962
|
}), C();
|
9972
|
-
},
|
9963
|
+
}, p = (E) => {
|
9973
9964
|
s(E.target.value), A.validation && u(A.validation(E.target.value));
|
9974
9965
|
};
|
9975
9966
|
return /* @__PURE__ */ t(
|
@@ -10096,11 +10087,11 @@ const an = ({
|
|
10096
10087
|
const [A, e] = g.useState(""), { onEvent: n } = V(), { selectedAccount: r } = ae(), { accounts: a } = b(), { setFilter: i, sortedTransactions: o } = cA(), s = g.useMemo(() => o.find((c) => c.guid === A), [A]);
|
10097
10088
|
return g.useEffect(() => {
|
10098
10089
|
i({
|
10099
|
-
dateRange: { start: po(
|
10090
|
+
dateRange: { start: mo(po(), 90), end: Eo() },
|
10100
10091
|
accounts: [r.guid]
|
10101
10092
|
});
|
10102
10093
|
}, [r]), g.useEffect(() => n(Q.ACCOUNT_DETAILS_VIEW_TRANSACTIONS), []), /* @__PURE__ */ d(aA, { children: [
|
10103
|
-
/* @__PURE__ */ t(
|
10094
|
+
/* @__PURE__ */ t(mt, { onClick: e }),
|
10104
10095
|
s && /* @__PURE__ */ t(
|
10105
10096
|
uA,
|
10106
10097
|
{
|
@@ -10147,7 +10138,7 @@ const an = ({
|
|
10147
10138
|
/* @__PURE__ */ t(Pt, { index: 0, name: "transaction-details", value: A, children: /* @__PURE__ */ t(Qu, {}) }),
|
10148
10139
|
/* @__PURE__ */ t(Pt, { index: 1, name: "account-details", value: A, children: /* @__PURE__ */ t(_u, {}) })
|
10149
10140
|
] });
|
10150
|
-
}, ju = I(Fu), Vn = (A) => A.top_level_category_guid ===
|
10141
|
+
}, ju = I(Fu), Vn = (A) => A.top_level_category_guid === m.INCOME || A.category_guid === m.INCOME, ci = (A) => gr.includes(A.top_level_category_guid) || gr.includes(A.category_guid), Uu = (A) => A.top_level_category_guid === m.TRANSFER || A.category_guid === m.TRANSFER, li = (A) => !Vn(A) && !ci(A) && !Uu(A), jr = (A) => [...new Set(A.map((n) => n.category_guid))].map((n) => A.filter((r) => r.category_guid === n).map((r) => ({
|
10151
10142
|
x: J(new Date(r.year, r.month), U.MONTH_SHORT_YEAR),
|
10152
10143
|
y: r.total
|
10153
10144
|
}))), Jn = (A, e) => {
|
@@ -10208,7 +10199,7 @@ const an = ({
|
|
10208
10199
|
n && e([r]).finally(() => {
|
10209
10200
|
i(!0);
|
10210
10201
|
});
|
10211
|
-
}, [n, r]), !n || !a ? /* @__PURE__ */ t(
|
10202
|
+
}, [n, r]), !n || !a ? /* @__PURE__ */ t(pe, {}) : /* @__PURE__ */ d(
|
10212
10203
|
He,
|
10213
10204
|
{
|
10214
10205
|
sx: {
|
@@ -10274,7 +10265,7 @@ const an = ({
|
|
10274
10265
|
}, [u, A]), /* @__PURE__ */ d(D, { sx: { pt: 24 }, children: [
|
10275
10266
|
c.map((l) => {
|
10276
10267
|
const h = r.filter((v) => v.account_type === l), C = h.reduce(
|
10277
|
-
(v,
|
10268
|
+
(v, p) => (p.available_balance || p.balance || 0) + v,
|
10278
10269
|
0
|
10279
10270
|
), f = (v) => {
|
10280
10271
|
e(v.guid), s(Q.ACCOUNTS_CLICK_ACCOUNT, {
|
@@ -10299,7 +10290,7 @@ const an = ({
|
|
10299
10290
|
}
|
10300
10291
|
) }),
|
10301
10292
|
children: /* @__PURE__ */ t(tr, { children: h.map((v) => {
|
10302
|
-
const
|
10293
|
+
const p = r.indexOf(v) === r.length - 1, E = h.indexOf(v) === h.length - 1;
|
10303
10294
|
return /* @__PURE__ */ d(g.Fragment, { children: [
|
10304
10295
|
/* @__PURE__ */ t(
|
10305
10296
|
Jt,
|
@@ -10309,7 +10300,7 @@ const an = ({
|
|
10309
10300
|
shouldShowConnectionStatus: !0
|
10310
10301
|
}
|
10311
10302
|
),
|
10312
|
-
!
|
10303
|
+
!p && /* @__PURE__ */ t(
|
10313
10304
|
X,
|
10314
10305
|
{
|
10315
10306
|
sx: {
|
@@ -10410,7 +10401,7 @@ const an = ({
|
|
10410
10401
|
onBackClick: A,
|
10411
10402
|
sx: e,
|
10412
10403
|
title: c.title,
|
10413
|
-
children: a ? /* @__PURE__ */ t(
|
10404
|
+
children: a ? /* @__PURE__ */ t(pe, {}) : /* @__PURE__ */ d(aA, { children: [
|
10414
10405
|
/* @__PURE__ */ d(D, { sx: { px: h ? 24 : 12 }, children: [
|
10415
10406
|
l.length < 1 && /* @__PURE__ */ t(y, { display: "flex", justifyContent: "center", my: 24, children: c.no_accounts }),
|
10416
10407
|
/* @__PURE__ */ t(s1, {})
|
@@ -11076,8 +11067,8 @@ class v1 {
|
|
11076
11067
|
}
|
11077
11068
|
};
|
11078
11069
|
}
|
11079
|
-
const
|
11080
|
-
const r =
|
11070
|
+
const m1 = (A, e) => !A && !e ? 0 : !A && e ? 101 : e / A * 100, p1 = (A, e, n) => {
|
11071
|
+
const r = m1(A, e);
|
11081
11072
|
let a = {};
|
11082
11073
|
return r > 100 ? a = {
|
11083
11074
|
bubble: n.palette.error.main,
|
@@ -11099,7 +11090,7 @@ const p1 = (A, e) => !A && !e ? 0 : !A && e ? 101 : e / A * 100, m1 = (A, e, n)
|
|
11099
11090
|
return n.amount - r;
|
11100
11091
|
}).reduce((n, r) => n + r, 0);
|
11101
11092
|
}, y1 = (A, e, n, r) => A.map((a) => {
|
11102
|
-
const i =
|
11093
|
+
const i = p1(a.amount, a.transaction_total, n), o = e.find((c) => c.guid === a.category_guid), s = a.amount - a.transaction_total;
|
11103
11094
|
return {
|
11104
11095
|
backgroundColor: i.bubble,
|
11105
11096
|
budgetGuid: a.guid,
|
@@ -11283,7 +11274,7 @@ const p1 = (A, e) => !A && !e ? 0 : !A && e ? 101 : e / A * 100, m1 = (A, e, n)
|
|
11283
11274
|
const i = CA(), { budgets: o } = Xt(), { categories: s } = xA(), { budgets: c } = b(), { isInitialized: u } = vA(), { availableHeight: l, availableWidth: h } = vt(), [C, f] = g.useState(!1), v = g.useMemo(
|
11284
11275
|
() => y1(o, s, i, c),
|
11285
11276
|
[o, l, h]
|
11286
|
-
), [
|
11277
|
+
), [p, E] = g.useMemo(() => [l - r, h - a], [l, h]);
|
11287
11278
|
return g.useEffect(() => {
|
11288
11279
|
document.fonts.ready.then(() => {
|
11289
11280
|
f(!0);
|
@@ -11292,7 +11283,7 @@ const p1 = (A, e) => !A && !e ? 0 : !A && e ? 101 : e / A * 100, m1 = (A, e, n)
|
|
11292
11283
|
P1,
|
11293
11284
|
{
|
11294
11285
|
data: v,
|
11295
|
-
height:
|
11286
|
+
height: p,
|
11296
11287
|
isDraggable: A,
|
11297
11288
|
onClick: e,
|
11298
11289
|
width: E
|
@@ -11316,7 +11307,7 @@ const p1 = (A, e) => !A && !e ? 0 : !A && e ? 101 : e / A * 100, m1 = (A, e, n)
|
|
11316
11307
|
}
|
11317
11308
|
);
|
11318
11309
|
}, oC = I(H1);
|
11319
|
-
var
|
11310
|
+
var mn = /* @__PURE__ */ ((A) => (A[A.Main = 0] = "Main", A[A.RightSide = 1] = "RightSide", A))(mn || {});
|
11320
11311
|
const z1 = () => {
|
11321
11312
|
const { accounts: A } = OA(), { selectedAccountGuids: e, setSelectedAccountGuids: n } = vA(), { isMobile: r } = jA(), { common: a } = b(), i = {
|
11322
11313
|
accountFilterOptionsCopy: {
|
@@ -11365,10 +11356,10 @@ const z1 = () => {
|
|
11365
11356
|
() => A.sort((l, h) => l.index - h.index),
|
11366
11357
|
[A]
|
11367
11358
|
), c = g.useMemo(
|
11368
|
-
() => s.filter((l) => l.location ===
|
11359
|
+
() => s.filter((l) => l.location === mn.Main),
|
11369
11360
|
[A]
|
11370
11361
|
), u = g.useMemo(
|
11371
|
-
() => s.filter((l) => l.location ===
|
11362
|
+
() => s.filter((l) => l.location === mn.RightSide),
|
11372
11363
|
[A]
|
11373
11364
|
);
|
11374
11365
|
return /* @__PURE__ */ d(Me, { container: !0, spacing: r ? 0 : 24, sx: { overflow: "scroll" }, children: [
|
@@ -11686,19 +11677,19 @@ const gi = ({
|
|
11686
11677
|
...x,
|
11687
11678
|
[O]: M
|
11688
11679
|
}));
|
11689
|
-
},
|
11680
|
+
}, p = Object.values(u).filter(Boolean).length, E = () => {
|
11690
11681
|
l(c), i();
|
11691
11682
|
}, T = () => {
|
11692
11683
|
const L = e.reduce(
|
11693
11684
|
(O, M) => ({
|
11694
11685
|
...O,
|
11695
|
-
[M.name]:
|
11686
|
+
[M.name]: p !== e.length
|
11696
11687
|
}),
|
11697
11688
|
{}
|
11698
11689
|
);
|
11699
11690
|
l(L);
|
11700
11691
|
}, S = () => {
|
11701
|
-
const L =
|
11692
|
+
const L = p === e.length;
|
11702
11693
|
n(
|
11703
11694
|
Object.keys(u).filter((O) => u[O]),
|
11704
11695
|
L
|
@@ -11761,7 +11752,7 @@ const gi = ({
|
|
11761
11752
|
fontSize: 13,
|
11762
11753
|
minWidth: 0
|
11763
11754
|
},
|
11764
|
-
children:
|
11755
|
+
children: p === e.length ? A.unselect_all : A.select_all
|
11765
11756
|
}
|
11766
11757
|
)
|
11767
11758
|
]
|
@@ -11832,12 +11823,12 @@ const gi = ({
|
|
11832
11823
|
wa,
|
11833
11824
|
{
|
11834
11825
|
color: "primary",
|
11835
|
-
disabled:
|
11826
|
+
disabled: p === 0,
|
11836
11827
|
fullWidth: !0,
|
11837
11828
|
loading: a,
|
11838
11829
|
onClick: S,
|
11839
11830
|
variant: "contained",
|
11840
|
-
children:
|
11831
|
+
children: p > 0 ? `${A.show} ${p} ${p > 1 ? A.hidden_insights : A.hidden_insight}` : A.show_insights
|
11841
11832
|
}
|
11842
11833
|
)
|
11843
11834
|
]
|
@@ -11922,7 +11913,7 @@ const gi = ({
|
|
11922
11913
|
update: r,
|
11923
11914
|
isUpdateError: a,
|
11924
11915
|
isUpdateLoading: i
|
11925
|
-
} = e, [o, s, c] = U1(n), { toastState: u, showToast: l, hideToast: h, setMessage: C } = hi(), [f, v] = g.useState(!1), [
|
11916
|
+
} = e, [o, s, c] = U1(n), { toastState: u, showToast: l, hideToast: h, setMessage: C } = hi(), [f, v] = g.useState(!1), [p, E] = g.useState(!1), [T, S] = g.useState(""), [L, O] = g.useState(""), M = Na(i);
|
11926
11917
|
se(() => {
|
11927
11918
|
M && !i && (a ? l(A.something_went_wrong, "error") : l(void 0, "success"));
|
11928
11919
|
}, [M, a]);
|
@@ -12032,7 +12023,7 @@ const gi = ({
|
|
12032
12023
|
content: A,
|
12033
12024
|
disabledBeatTemplates: L !== "" ? o.filter((G) => G.key === T)[0].subcategories.filter((G) => G.key === L)[0].beats : [],
|
12034
12025
|
handleEnableBeatTemplates: _,
|
12035
|
-
isOpen:
|
12026
|
+
isOpen: p,
|
12036
12027
|
isUpdateLoading: i,
|
12037
12028
|
onClose: B,
|
12038
12029
|
translatedSubCatetgory: c[L]
|
@@ -12130,14 +12121,14 @@ const gi = ({
|
|
12130
12121
|
position: "relative",
|
12131
12122
|
width: "-webkit-calc(100% - 64px)"
|
12132
12123
|
},
|
12133
|
-
children: /* @__PURE__ */ t(Vo, { children: ({ height: v, width:
|
12124
|
+
children: /* @__PURE__ */ t(Vo, { children: ({ height: v, width: p }) => /* @__PURE__ */ d(g.Fragment, { children: [
|
12134
12125
|
/* @__PURE__ */ t(
|
12135
12126
|
Yo,
|
12136
12127
|
{
|
12137
12128
|
"aria-hidden": !0,
|
12138
12129
|
colors: ["#3F9FEB", "#C331B6", "#30C434", "#F1CE31", "#EE3B7C"],
|
12139
12130
|
confettiSource: {
|
12140
|
-
x:
|
12131
|
+
x: p / 2,
|
12141
12132
|
y: v / 2,
|
12142
12133
|
w: 20,
|
12143
12134
|
h: 20
|
@@ -12149,7 +12140,7 @@ const gi = ({
|
|
12149
12140
|
numberOfPieces: 200,
|
12150
12141
|
recycle: !1,
|
12151
12142
|
run: e.shouldRun,
|
12152
|
-
width:
|
12143
|
+
width: p
|
12153
12144
|
}
|
12154
12145
|
),
|
12155
12146
|
!o && /* @__PURE__ */ t(
|
@@ -12161,7 +12152,7 @@ const gi = ({
|
|
12161
12152
|
position: "absolute",
|
12162
12153
|
right: 0,
|
12163
12154
|
top: 0,
|
12164
|
-
width:
|
12155
|
+
width: p,
|
12165
12156
|
zIndex: 10
|
12166
12157
|
},
|
12167
12158
|
children: /* @__PURE__ */ t(
|
@@ -12191,7 +12182,7 @@ const gi = ({
|
|
12191
12182
|
left: 16,
|
12192
12183
|
padding: h.padding,
|
12193
12184
|
top: 24,
|
12194
|
-
width:
|
12185
|
+
width: p
|
12195
12186
|
},
|
12196
12187
|
children: [
|
12197
12188
|
o ? f : C,
|
@@ -12371,7 +12362,7 @@ const $n = {
|
|
12371
12362
|
ON_CAROUSEL_FORWARD_SWIPE: "onCarouselForwardSwipe",
|
12372
12363
|
ON_NO_RELEVANT_INSIGHTS_CLICKED: "onNoRelevantInsightsClicked",
|
12373
12364
|
ON_VIEW_MORE_CLICKED: "onViewMoreClicked"
|
12374
|
-
},
|
12365
|
+
}, mi = {
|
12375
12366
|
ON_VIEW_MORE_VIEWED: "onViewMoreCardView"
|
12376
12367
|
}, ge = {
|
12377
12368
|
CONTROL_BACKWARD: "Control Backward",
|
@@ -12439,7 +12430,7 @@ const $n = {
|
|
12439
12430
|
label: ue.VIEW_MORE,
|
12440
12431
|
value: ZA
|
12441
12432
|
},
|
12442
|
-
[
|
12433
|
+
[mi.ON_VIEW_MORE_VIEWED]: {
|
12443
12434
|
action: ge.MICRO_BEAT_DISPLAYED,
|
12444
12435
|
category: he.BEAT_INTERACTION,
|
12445
12436
|
label: ue.VIEW_MORE,
|
@@ -12486,18 +12477,18 @@ class eh {
|
|
12486
12477
|
this.copyStore = new V1(), this.insightsMicroWidgetStore = new Ah(), wA(this);
|
12487
12478
|
}
|
12488
12479
|
initialize = async (e, n, r) => {
|
12489
|
-
await this.copyStore.initialize(e, n), await this.insightsMicroWidgetStore.initialize(e, n, r), this.session = await As(e, n, "1.0.0", "Micro Insights Carousel"
|
12480
|
+
await this.copyStore.initialize(e, n), await this.insightsMicroWidgetStore.initialize(e, n, r), this.session = await As(e, n, "1.0.0", "Micro Insights Carousel"), nA(() => {
|
12490
12481
|
this.isInitialized = !0;
|
12491
12482
|
});
|
12492
12483
|
};
|
12493
12484
|
}
|
12494
|
-
const
|
12485
|
+
const pt = g.createContext(null), th = ({
|
12495
12486
|
onEvent: A,
|
12496
12487
|
onPageview: e,
|
12497
12488
|
store: n,
|
12498
12489
|
children: r
|
12499
|
-
}) => /* @__PURE__ */ t(
|
12500
|
-
const [e, n] = ie(
|
12490
|
+
}) => /* @__PURE__ */ t(pt.Provider, { value: { onEvent: A, onPageview: e, store: n, children: r }, children: r }), nh = ({ beat: A }) => {
|
12491
|
+
const [e, n] = ie(m.UNCATEGORIZED);
|
12501
12492
|
return se(() => {
|
12502
12493
|
A.primary_category_guid ? n(A.primary_category_guid) : A.category_guids?.length && n(A.category_guids[0]);
|
12503
12494
|
}, []), /* @__PURE__ */ t(De, { categoryGuid: e, size: 16, style: { minWidth: 16 } });
|
@@ -12554,7 +12545,7 @@ const mt = g.createContext(null), th = ({
|
|
12554
12545
|
}, lh = ({ beat: A }) => {
|
12555
12546
|
const e = yA(), n = ch(A.data_series, e);
|
12556
12547
|
return /* @__PURE__ */ t(N, { name: "bar_chart", sx: { color: n } });
|
12557
|
-
},
|
12548
|
+
}, pi = () => /* @__PURE__ */ d("svg", { fill: "none", height: "36", viewBox: "0 0 40 36", width: "40", xmlns: "http://www.w3.org/2000/svg", children: [
|
12558
12549
|
/* @__PURE__ */ t(
|
12559
12550
|
"path",
|
12560
12551
|
{
|
@@ -13353,24 +13344,24 @@ const mt = g.createContext(null), th = ({
|
|
13353
13344
|
XLARGE: 200,
|
13354
13345
|
XXLARGE: 248
|
13355
13346
|
}, dh = 50, yi = 1, ke = () => {
|
13356
|
-
const A = g.useContext(
|
13347
|
+
const A = g.useContext(pt);
|
13357
13348
|
if (!A)
|
13358
13349
|
throw new Error("useCopyStore() must be used within the InsightsMicroWidgetDataProvider");
|
13359
13350
|
return A.store.copyStore;
|
13360
13351
|
}, uh = () => {
|
13361
|
-
const A = g.useContext(
|
13352
|
+
const A = g.useContext(pt);
|
13362
13353
|
if (!A?.store?.insightsMicroWidgetStore)
|
13363
13354
|
throw new Error(
|
13364
13355
|
"useInsightsMicroWidgetStore() must be used within the InsightsMicroWidgetDataProvider"
|
13365
13356
|
);
|
13366
13357
|
return A.store.insightsMicroWidgetStore;
|
13367
13358
|
}, Et = () => {
|
13368
|
-
const A = g.useContext(
|
13359
|
+
const A = g.useContext(pt);
|
13369
13360
|
if (!A)
|
13370
13361
|
throw new Error("useEvent() must be used within the InsightsMicroWidgetDataProvider");
|
13371
13362
|
return { onEvent: A.onEvent };
|
13372
13363
|
}, wi = () => {
|
13373
|
-
const A = g.useContext(
|
13364
|
+
const A = g.useContext(pt);
|
13374
13365
|
if (!A)
|
13375
13366
|
throw new Error("usePageview() must be used within the InsightsMicroWidgetDataProvider");
|
13376
13367
|
return { onPageview: A.onPageview };
|
@@ -13389,22 +13380,22 @@ const mt = g.createContext(null), th = ({
|
|
13389
13380
|
variant: h,
|
13390
13381
|
widthOverrides: C
|
13391
13382
|
}) => {
|
13392
|
-
const f = window.app?.config.client_guid, { ref: v, inView:
|
13383
|
+
const f = window.app?.config.client_guid, { ref: v, inView: p } = La({
|
13393
13384
|
threshold: yi
|
13394
13385
|
}), { cardsCopy: E } = ke(), { onEvent: T } = Et(), { updateBeat: S } = uh();
|
13395
13386
|
se(() => {
|
13396
|
-
|
13387
|
+
p && (n.has_been_displayed ? T(fi(n.template)) : (S({
|
13397
13388
|
...n,
|
13398
13389
|
has_been_displayed: !0
|
13399
13390
|
}), T(vi(n.template))));
|
13400
|
-
}, [
|
13401
|
-
u?.capture &&
|
13391
|
+
}, [p]), se(() => {
|
13392
|
+
u?.capture && p && n && f && u.capture("micro_widget_viewed_insight", {
|
13402
13393
|
beat_guid: n.guid,
|
13403
13394
|
insight_template: n.template,
|
13404
13395
|
position: o,
|
13405
13396
|
$groups: { client: f }
|
13406
13397
|
});
|
13407
|
-
}, [n, f, u, o,
|
13398
|
+
}, [n, f, u, o, p]);
|
13408
13399
|
const L = () => {
|
13409
13400
|
c && c(n), T(Ci(n.template)), u?.capture && f && u.capture("micro_widget_clicked_insight", {
|
13410
13401
|
beat_guid: n.guid,
|
@@ -13525,7 +13516,7 @@ const mt = g.createContext(null), th = ({
|
|
13525
13516
|
variant: u,
|
13526
13517
|
widthOverrides: l
|
13527
13518
|
}) => {
|
13528
|
-
const h =
|
13519
|
+
const h = mh(r, c, l), C = g.useRef(null), [f, v] = g.useState(0), [p, E] = g.useState(null), [T, S] = g.useState(null), { carouselCopy: L } = ke(), { onEvent: O } = Et(), M = () => {
|
13529
13520
|
O($A.ON_CAROUSEL_FORWARD_CLICK), C.current && C.current.scrollTo({
|
13530
13521
|
left: (
|
13531
13522
|
// Adds the flex gap to the carousel ulRef's width
|
@@ -13543,8 +13534,8 @@ const mt = g.createContext(null), th = ({
|
|
13543
13534
|
}, K = () => {
|
13544
13535
|
C.current && v(C.current.scrollLeft);
|
13545
13536
|
}, B = () => {
|
13546
|
-
if (!T || !
|
13547
|
-
T -
|
13537
|
+
if (!T || !p) return;
|
13538
|
+
T - p > dh ? O($A.ON_CAROUSEL_FORWARD_SWIPE) : O($A.ON_CAROUSEL_BACK_SWIPE);
|
13548
13539
|
}, _ = (rA) => {
|
13549
13540
|
E(rA.targetTouches[0].clientX);
|
13550
13541
|
}, G = (rA) => {
|
@@ -13609,7 +13600,7 @@ const mt = g.createContext(null), th = ({
|
|
13609
13600
|
}
|
13610
13601
|
)
|
13611
13602
|
] });
|
13612
|
-
}, vh = I(fh),
|
13603
|
+
}, vh = I(fh), mh = (A, e = !0, n) => BA({
|
13613
13604
|
alignItems: "center",
|
13614
13605
|
boxSizing: "border-box",
|
13615
13606
|
display: "flex",
|
@@ -13651,13 +13642,13 @@ const mt = g.createContext(null), th = ({
|
|
13651
13642
|
fontColors: C = {},
|
13652
13643
|
title: f,
|
13653
13644
|
variant: v,
|
13654
|
-
widthOverrides:
|
13645
|
+
widthOverrides: p
|
13655
13646
|
}, E) {
|
13656
13647
|
const [T, S] = g.useState(1);
|
13657
13648
|
g.useEffect(() => {
|
13658
|
-
|
13659
|
-
}, [
|
13660
|
-
const { cardStyle: L, linkTextStyle: O } = h, M = v ? L : { border: "none", boxShadow: "none", ...L }, x =
|
13649
|
+
p && p <= 325 && S(3), p && p > 325 && S(2);
|
13650
|
+
}, [p]);
|
13651
|
+
const { cardStyle: L, linkTextStyle: O } = h, M = v ? L : { border: "none", boxShadow: "none", ...L }, x = ph(
|
13661
13652
|
M,
|
13662
13653
|
a,
|
13663
13654
|
C,
|
@@ -13698,7 +13689,7 @@ const mt = g.createContext(null), th = ({
|
|
13698
13689
|
}
|
13699
13690
|
);
|
13700
13691
|
}
|
13701
|
-
),
|
13692
|
+
), ph = (A, e, n, r, a, i) => BA({
|
13702
13693
|
height: "100%",
|
13703
13694
|
listStyleType: "none",
|
13704
13695
|
userSelect: "none",
|
@@ -13860,14 +13851,14 @@ const mt = g.createContext(null), th = ({
|
|
13860
13851
|
showCarouselControls: C,
|
13861
13852
|
showHeader: f,
|
13862
13853
|
showIcon: v,
|
13863
|
-
showWithMargin:
|
13854
|
+
showWithMargin: p = !0,
|
13864
13855
|
token: E = "",
|
13865
13856
|
useDarkMode: T,
|
13866
13857
|
userHasFullInsightFeedBeats: S,
|
13867
13858
|
variant: L,
|
13868
13859
|
widthOverrides: O
|
13869
13860
|
}) => {
|
13870
|
-
const [M, x] = ie("STANDARD"), [K, B] = ie(!1), _ =
|
13861
|
+
const [M, x] = ie("STANDARD"), [K, B] = ie(!1), _ = ms([c], Pe), G = ps([u], Pe);
|
13871
13862
|
g.useEffect(() => {
|
13872
13863
|
Pe.initialize(a, E, o);
|
13873
13864
|
}, [a, E, o]), g.useEffect(() => {
|
@@ -13881,7 +13872,7 @@ const mt = g.createContext(null), th = ({
|
|
13881
13872
|
heightOverrides: i,
|
13882
13873
|
onCardClick: s,
|
13883
13874
|
showIcon: v,
|
13884
|
-
showWithMargin:
|
13875
|
+
showWithMargin: p,
|
13885
13876
|
useDarkMode: T,
|
13886
13877
|
widthOverrides: O
|
13887
13878
|
}, P = {
|
@@ -13961,7 +13952,7 @@ const mt = g.createContext(null), th = ({
|
|
13961
13952
|
description: l.no_relevant_insights_card_description,
|
13962
13953
|
fontColors: { buttonColor: n?.primary_300 },
|
13963
13954
|
heightOverrides: r,
|
13964
|
-
icon: /* @__PURE__ */ t(
|
13955
|
+
icon: /* @__PURE__ */ t(pi, {}),
|
13965
13956
|
onCardClick: v,
|
13966
13957
|
showIcon: o,
|
13967
13958
|
style: {
|
@@ -13999,14 +13990,14 @@ const mt = g.createContext(null), th = ({
|
|
13999
13990
|
threshold: yi
|
14000
13991
|
}), { cardsCopy: f } = ke(), { onEvent: v } = Et();
|
14001
13992
|
se(() => {
|
14002
|
-
C && v(
|
13993
|
+
C && v(mi.ON_VIEW_MORE_VIEWED);
|
14003
13994
|
}, [C]), se(() => {
|
14004
13995
|
i?.capture && C && l && i.capture("micro_widget_viewed_insight", {
|
14005
13996
|
insight_template: "read_more_card",
|
14006
13997
|
$groups: { client: l }
|
14007
13998
|
});
|
14008
13999
|
}, [l, i, C]);
|
14009
|
-
const
|
14000
|
+
const p = () => {
|
14010
14001
|
a && a(), v($A.ON_VIEW_MORE_CLICKED), i?.capture && l && i.capture("micro_widget_clicked_insight", {
|
14011
14002
|
insight_template: "read_more_card",
|
14012
14003
|
$groups: { client: l }
|
@@ -14027,7 +14018,7 @@ const mt = g.createContext(null), th = ({
|
|
14027
14018
|
}
|
14028
14019
|
),
|
14029
14020
|
isActiveCard: A,
|
14030
|
-
onCardClick:
|
14021
|
+
onCardClick: p,
|
14031
14022
|
ref: h,
|
14032
14023
|
showIcon: o,
|
14033
14024
|
title: f.view_more_card_title,
|
@@ -14054,7 +14045,7 @@ const mt = g.createContext(null), th = ({
|
|
14054
14045
|
ariaLabel: A,
|
14055
14046
|
description: u.carousel_zero_state_description,
|
14056
14047
|
heightOverrides: n,
|
14057
|
-
icon: /* @__PURE__ */ t(
|
14048
|
+
icon: /* @__PURE__ */ t(pi, {}),
|
14058
14049
|
onCardClick: r,
|
14059
14050
|
showIcon: a,
|
14060
14051
|
style: {
|
@@ -14096,7 +14087,7 @@ const mt = g.createContext(null), th = ({
|
|
14096
14087
|
}
|
14097
14088
|
return n;
|
14098
14089
|
}, []), Li = (A, e) => {
|
14099
|
-
const n = xh(A, e), r = n.filter((c) => c.guid !==
|
14090
|
+
const n = xh(A, e), r = n.filter((c) => c.guid !== m.INCOME && c.guid !== m.TRANSFER).sort((c, u) => u.amount - c.amount), a = r.reduce(
|
14100
14091
|
(c, u) => c + u.amount,
|
14101
14092
|
0
|
14102
14093
|
), i = r.length > sn ? sn : r.length, o = r.slice(0, i), s = o.map((c) => ({
|
@@ -14134,7 +14125,7 @@ const mt = g.createContext(null), th = ({
|
|
14134
14125
|
};
|
14135
14126
|
}, Ti = (A, e, n) => {
|
14136
14127
|
const r = A.filter(
|
14137
|
-
(s) => s.parent_guid ===
|
14128
|
+
(s) => s.parent_guid === m.INCOME
|
14138
14129
|
), a = e.filter((s) => r.some((c) => c.guid === s.category_guid)).sort((s, c) => s.total - c.total).map((s, c) => ({
|
14139
14130
|
guid: s.category_guid,
|
14140
14131
|
name: A.find((u) => u.guid === s.category_guid)?.name,
|
@@ -14169,7 +14160,7 @@ const mt = g.createContext(null), th = ({
|
|
14169
14160
|
variant: s = "mini"
|
14170
14161
|
}) => {
|
14171
14162
|
const { spending: c } = b(), u = Je(), { isTablet: l } = jA(), h = g.useMemo(
|
14172
|
-
() => a ? A.categoryData.find((
|
14163
|
+
() => a ? A.categoryData.find((p) => p.guid === a) : void 0,
|
14173
14164
|
[a]
|
14174
14165
|
), C = g.useMemo(() => A.donutData.length > 0 ? A.donutData : [{ id: "0", color: u.palette.border.light, value: 100 }], [A, u]), f = () => {
|
14175
14166
|
r?.(a);
|
@@ -14187,7 +14178,7 @@ const mt = g.createContext(null), th = ({
|
|
14187
14178
|
/* @__PURE__ */ t(
|
14188
14179
|
De,
|
14189
14180
|
{
|
14190
|
-
categoryGuid: e ?
|
14181
|
+
categoryGuid: e ? m.INCOME : h.guid,
|
14191
14182
|
color: h.color,
|
14192
14183
|
size: s === "mini" ? 24 : v,
|
14193
14184
|
variant: ca.Transparent
|
@@ -14254,10 +14245,10 @@ const mt = g.createContext(null), th = ({
|
|
14254
14245
|
), C = g.useMemo(
|
14255
14246
|
() => Ti(a, i, r),
|
14256
14247
|
[a, i, r]
|
14257
|
-
), f = (
|
14248
|
+
), f = (p, E) => {
|
14258
14249
|
l(E), c("");
|
14259
|
-
}, v = (
|
14260
|
-
c(s ===
|
14250
|
+
}, v = (p) => {
|
14251
|
+
c(s === p ? "" : p);
|
14261
14252
|
};
|
14262
14253
|
return /* @__PURE__ */ d(D, { width: "100%", children: [
|
14263
14254
|
/* @__PURE__ */ d(Ze, { onChange: f, value: u, variant: "fullWidth", children: [
|
@@ -14387,7 +14378,7 @@ const mt = g.createContext(null), th = ({
|
|
14387
14378
|
}
|
14388
14379
|
),
|
14389
14380
|
/* @__PURE__ */ t(X, {}),
|
14390
|
-
o.categoryTotals && o.categoryTotals.length > 0 && /* @__PURE__ */ t(
|
14381
|
+
o.categoryTotals && o.categoryTotals.length > 0 && /* @__PURE__ */ t(pa, { in: i?.guid === o.guid, unmountOnExit: !0, children: /* @__PURE__ */ d(oA, { children: [
|
14391
14382
|
i?.categoryTotals?.map((s) => /* @__PURE__ */ t(
|
14392
14383
|
Z,
|
14393
14384
|
{
|
@@ -14469,7 +14460,7 @@ const mt = g.createContext(null), th = ({
|
|
14469
14460
|
A.palette.chartMono.chartMono1,
|
14470
14461
|
A.palette.chartMono.chartMono6
|
14471
14462
|
], Bh = () => {
|
14472
|
-
const A = Je(), { categories: e, dateRangeCategoryTotals: n, loadDateRangeCategoryTotals: r } = xA(), { spending: a } = b(), { displayedDateRange: i, selectedAccounts: o, selectedAccountGuids: s } = vA(), { setFilter: c, sortedTransactions: u } = cA(), [l, h] = g.useState(""), [C, f] = g.useState(0), [v,
|
14463
|
+
const A = Je(), { categories: e, dateRangeCategoryTotals: n, loadDateRangeCategoryTotals: r } = xA(), { spending: a } = b(), { displayedDateRange: i, selectedAccounts: o, selectedAccountGuids: s } = vA(), { setFilter: c, sortedTransactions: u } = cA(), [l, h] = g.useState(""), [C, f] = g.useState(0), [v, p] = g.useState(""), [E, T] = g.useState(!1);
|
14473
14464
|
g.useEffect(() => {
|
14474
14465
|
r(
|
14475
14466
|
o,
|
@@ -14505,12 +14496,12 @@ const mt = g.createContext(null), th = ({
|
|
14505
14496
|
} else
|
14506
14497
|
c({
|
14507
14498
|
..._,
|
14508
|
-
custom: (G) => B ? G.top_level_category_guid === B : G.top_level_category_guid !==
|
14499
|
+
custom: (G) => B ? G.top_level_category_guid === B : G.top_level_category_guid !== m.INCOME
|
14509
14500
|
});
|
14510
14501
|
else
|
14511
14502
|
c({
|
14512
14503
|
..._,
|
14513
|
-
custom: (G) => B ? G.category_guid === B : G.top_level_category_guid ===
|
14504
|
+
custom: (G) => B ? G.category_guid === B : G.top_level_category_guid === m.INCOME
|
14514
14505
|
});
|
14515
14506
|
T(!0);
|
14516
14507
|
};
|
@@ -14568,7 +14559,7 @@ const mt = g.createContext(null), th = ({
|
|
14568
14559
|
isOpen: E,
|
14569
14560
|
onClose: () => T(!1),
|
14570
14561
|
title: a.transactions_drawer_title,
|
14571
|
-
children: /* @__PURE__ */ t(
|
14562
|
+
children: /* @__PURE__ */ t(mt, { onClick: p })
|
14572
14563
|
}
|
14573
14564
|
),
|
14574
14565
|
/* @__PURE__ */ t(
|
@@ -14576,7 +14567,7 @@ const mt = g.createContext(null), th = ({
|
|
14576
14567
|
{
|
14577
14568
|
ariaLabelClose: a.close_drawer_aria,
|
14578
14569
|
isOpen: !!O,
|
14579
|
-
onClose: () =>
|
14570
|
+
onClose: () => p(""),
|
14580
14571
|
title: a.transaction_details_drawer_title,
|
14581
14572
|
children: O && /* @__PURE__ */ t(Wt, { transaction: O })
|
14582
14573
|
}
|
@@ -14592,7 +14583,7 @@ const mt = g.createContext(null), th = ({
|
|
14592
14583
|
const l = (h) => {
|
14593
14584
|
i(h[0], h[1]);
|
14594
14585
|
};
|
14595
|
-
return !a || !c ? /* @__PURE__ */ t(
|
14586
|
+
return !a || !c ? /* @__PURE__ */ t(pe, {}) : /* @__PURE__ */ t(
|
14596
14587
|
qe,
|
14597
14588
|
{
|
14598
14589
|
accountOptions: n,
|
@@ -14658,10 +14649,10 @@ const mt = g.createContext(null), th = ({
|
|
14658
14649
|
], u = g.useMemo(() => {
|
14659
14650
|
const l = A.reduce(
|
14660
14651
|
(h, C) => {
|
14661
|
-
const { category_guid: f, top_level_category_guid: v, month:
|
14652
|
+
const { category_guid: f, top_level_category_guid: v, month: p, total: E, year: T } = C;
|
14662
14653
|
if (f === v) {
|
14663
14654
|
h[f] || (h[f] = { id: f, category: f });
|
14664
|
-
const S = J(new Date(T,
|
14655
|
+
const S = J(new Date(T, p, 1), U.MONTH_SHORT);
|
14665
14656
|
h[f][S] = E;
|
14666
14657
|
}
|
14667
14658
|
return h;
|
@@ -14689,7 +14680,7 @@ const mt = g.createContext(null), th = ({
|
|
14689
14680
|
}
|
14690
14681
|
) });
|
14691
14682
|
}, jh = ({ onBackClick: A, sx: e }) => {
|
14692
|
-
const n = Ke(), { onEvent: r } = V(), { isDesktop: a, isTablet: i, isMobile: o } = jA(), { accounts: s } = OA(), { categories: c, loadMonthlyCategoryTotals: u, monthlyCategoryTotals: l } = xA(), { isInitialized: h, selectedAccounts: C, setSelectedAccounts: f } = vA(), { trends: v } = b(),
|
14683
|
+
const n = Ke(), { onEvent: r } = V(), { isDesktop: a, isTablet: i, isMobile: o } = jA(), { accounts: s } = OA(), { categories: c, loadMonthlyCategoryTotals: u, monthlyCategoryTotals: l } = xA(), { isInitialized: h, selectedAccounts: C, setSelectedAccounts: f } = vA(), { trends: v } = b(), p = n.palette.mode === "dark", [E, T] = g.useState(!1), [S, L] = g.useState("Chart"), [O, M] = g.useState({
|
14693
14684
|
start: EA(Ce(/* @__PURE__ */ new Date(), 5)),
|
14694
14685
|
end: DA(/* @__PURE__ */ new Date())
|
14695
14686
|
}), x = (P, W) => {
|
@@ -14722,7 +14713,7 @@ const mt = g.createContext(null), th = ({
|
|
14722
14713
|
() => jr(K.filter(Vn)),
|
14723
14714
|
[c, l]
|
14724
14715
|
);
|
14725
|
-
return !h || !E ? /* @__PURE__ */ t(
|
14716
|
+
return !h || !E ? /* @__PURE__ */ t(pe, {}) : /* @__PURE__ */ t(
|
14726
14717
|
qe,
|
14727
14718
|
{
|
14728
14719
|
accountOptions: s,
|
@@ -14805,20 +14796,20 @@ const mt = g.createContext(null), th = ({
|
|
14805
14796
|
fontWeight: 600,
|
14806
14797
|
height: 44,
|
14807
14798
|
width: 56,
|
14808
|
-
color:
|
14809
|
-
borderColor:
|
14799
|
+
color: p ? n.palette.grey[200] : n.palette.grey[600],
|
14800
|
+
borderColor: p ? n.palette.grey[600] : n.palette.grey[400],
|
14810
14801
|
"&:hover": {
|
14811
|
-
backgroundColor:
|
14812
|
-
borderColor:
|
14813
|
-
color:
|
14802
|
+
backgroundColor: p ? `${n.palette.primary.darker}25` : "inherit",
|
14803
|
+
borderColor: p ? n.palette.grey[500] : n.palette.primary.main,
|
14804
|
+
color: p ? n.palette.primary.light : n.palette.primary.dark
|
14814
14805
|
},
|
14815
14806
|
"&.Mui-selected": {
|
14816
|
-
backgroundColor:
|
14817
|
-
borderColor:
|
14818
|
-
color:
|
14807
|
+
backgroundColor: p ? n.palette.primary.darker : n.palette.primary.lighter,
|
14808
|
+
borderColor: p ? n.palette.primary.light : n.palette.primary.main,
|
14809
|
+
color: p ? n.palette.common.white : n.palette.primary.dark
|
14819
14810
|
},
|
14820
14811
|
"&.Mui-disabled": {
|
14821
|
-
borderColor:
|
14812
|
+
borderColor: p ? n.palette.grey[700] : n.palette.grey[400],
|
14822
14813
|
color: n.palette.grey[500]
|
14823
14814
|
}
|
14824
14815
|
},
|
@@ -14848,8 +14839,8 @@ const mt = g.createContext(null), th = ({
|
|
14848
14839
|
stackedCategoryGuids: G,
|
14849
14840
|
stackedColors: _,
|
14850
14841
|
stackedDatasets: B,
|
14851
|
-
unstackedCategoryGuids: [
|
14852
|
-
unstackedColors: [Ue[
|
14842
|
+
unstackedCategoryGuids: [m.INCOME],
|
14843
|
+
unstackedColors: [Ue[m.INCOME]],
|
14853
14844
|
unstackedDatasets: k
|
14854
14845
|
}
|
14855
14846
|
),
|
@@ -14862,7 +14853,7 @@ const mt = g.createContext(null), th = ({
|
|
14862
14853
|
);
|
14863
14854
|
}, vC = I(jh), Uh = (A) => {
|
14864
14855
|
const e = [], n = A.filter(
|
14865
|
-
(i) => i.top_level_category_guid !==
|
14856
|
+
(i) => i.top_level_category_guid !== m.INCOME && i.top_level_category_guid !== m.TRANSFER && i.total > 0
|
14866
14857
|
);
|
14867
14858
|
let r = EA(Ce(/* @__PURE__ */ new Date(), 5));
|
14868
14859
|
const a = DA(/* @__PURE__ */ new Date());
|
@@ -14892,7 +14883,7 @@ const mt = g.createContext(null), th = ({
|
|
14892
14883
|
r && n(i).finally(() => {
|
14893
14884
|
s(!0);
|
14894
14885
|
});
|
14895
|
-
}, [r, i]), !r || !o ? /* @__PURE__ */ t(
|
14886
|
+
}, [r, i]), !r || !o ? /* @__PURE__ */ t(pe, {}) : /* @__PURE__ */ t(
|
14896
14887
|
Be,
|
14897
14888
|
{
|
14898
14889
|
onPrimaryCtaClick: A,
|
@@ -14903,7 +14894,7 @@ const mt = g.createContext(null), th = ({
|
|
14903
14894
|
children: /* @__PURE__ */ t(Yh, {})
|
14904
14895
|
}
|
14905
14896
|
);
|
14906
|
-
},
|
14897
|
+
}, mC = I(Vh);
|
14907
14898
|
export {
|
14908
14899
|
Q as ANALYTICS_EVENTS,
|
14909
14900
|
Ur as AccountApi,
|
@@ -14916,8 +14907,8 @@ export {
|
|
14916
14907
|
aC as AccountsMiniWidget,
|
14917
14908
|
rC as AccountsWidget,
|
14918
14909
|
ai as ActivitySettings,
|
14919
|
-
|
14920
|
-
|
14910
|
+
pA as ActivityStatus,
|
14911
|
+
mA as ActivityType,
|
14921
14912
|
kl as AddAccountModal,
|
14922
14913
|
fs as AnalyticsApi,
|
14923
14914
|
H as ApiEndpoints,
|
@@ -14938,7 +14929,7 @@ export {
|
|
14938
14929
|
fr as CategoryApi,
|
14939
14930
|
Ue as CategoryColors,
|
14940
14931
|
Le as CategoryGuidToName,
|
14941
|
-
|
14932
|
+
m as CategoryGuids,
|
14942
14933
|
Da as CategoryIcon,
|
14943
14934
|
cl as CategorySelector,
|
14944
14935
|
Qn as CategorySelectorDrawer,
|
@@ -14953,7 +14944,7 @@ export {
|
|
14953
14944
|
Oa as DEFAULT_DONUT_SIZE,
|
14954
14945
|
xa as DEFAULT_STROKE_WIDTH,
|
14955
14946
|
sC as Dashboard,
|
14956
|
-
|
14947
|
+
mn as DashboardLocation,
|
14957
14948
|
Nt as DataRow,
|
14958
14949
|
Tr as DateRangeSelector,
|
14959
14950
|
HA as Dialog,
|
@@ -14979,7 +14970,7 @@ export {
|
|
14979
14970
|
Kg as LOADING_STATUS,
|
14980
14971
|
Ha as LineChart,
|
14981
14972
|
ac as ListItemWrapper,
|
14982
|
-
|
14973
|
+
pe as Loader,
|
14983
14974
|
Bg as LocalizedCopyApi,
|
14984
14975
|
lC as ManageAccountsDrawer,
|
14985
14976
|
ri as ManageIncome,
|
@@ -15012,7 +15003,7 @@ export {
|
|
15012
15003
|
Fg as ResponsiveButton,
|
15013
15004
|
Rn as SPENDING_ACCOUNT_TYPES,
|
15014
15005
|
Lc as ScheduledPaymentTypes,
|
15015
|
-
|
15006
|
+
mr as ScheduledPaymentsApi,
|
15016
15007
|
Tc as ScreenSize,
|
15017
15008
|
Ft as SearchBox,
|
15018
15009
|
Sr as SelectionBox,
|
@@ -15031,7 +15022,7 @@ export {
|
|
15031
15022
|
rt as TopActions,
|
15032
15023
|
br as TransactionApi,
|
15033
15024
|
Wt as TransactionDetails,
|
15034
|
-
|
15025
|
+
mt as TransactionList,
|
15035
15026
|
_n as TransactionRow,
|
15036
15027
|
Bn as TransactionStatus,
|
15037
15028
|
Ic as TransactionStore,
|
@@ -15039,8 +15030,8 @@ export {
|
|
15039
15030
|
QA as TransactionType,
|
15040
15031
|
Yg as TransactionWidget,
|
15041
15032
|
vC as TrendsFullWidget,
|
15042
|
-
|
15043
|
-
|
15033
|
+
mC as TrendsMiniWidget,
|
15034
|
+
pr as UserApi,
|
15044
15035
|
Ou as UserStore,
|
15045
15036
|
yc as UserVerification,
|
15046
15037
|
bh as ViewMoreMicroCard,
|
@@ -15049,7 +15040,7 @@ export {
|
|
15049
15040
|
za as WidgetContainerContext,
|
15050
15041
|
qa as WidgetContainerProvider,
|
15051
15042
|
Oh as ZeroStateCard,
|
15052
|
-
|
15043
|
+
pi as ZeroStateIcon,
|
15053
15044
|
As as analyticsSession,
|
15054
15045
|
z as buildDynamicCopy,
|
15055
15046
|
Mg as buildPluralCopy,
|
@@ -15068,8 +15059,8 @@ export {
|
|
15068
15059
|
Hn as useCashflowStore,
|
15069
15060
|
xA as useCategoryStore,
|
15070
15061
|
_e as useCategoryUiStore,
|
15071
|
-
|
15072
|
-
|
15062
|
+
ms as useCombineEvents,
|
15063
|
+
ps as useCombinePageviews,
|
15073
15064
|
V as useEvent,
|
15074
15065
|
xu as useGetMergeableAccounts,
|
15075
15066
|
b as useGlobalCopyStore,
|