@mx-cartographer/experiences 6.10.1-alpha.mega2 → 6.10.1-alpha.mega4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/dist/index.es.js +398 -401
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -502,7 +502,7 @@ const $4 = {
|
|
|
502
502
|
ie.LINE_OF_CREDIT,
|
|
503
503
|
ie.PREPAID,
|
|
504
504
|
ie.SAVINGS
|
|
505
|
-
],
|
|
505
|
+
], N = {
|
|
506
506
|
// Top-level categories
|
|
507
507
|
AUTO_AND_TRANSPORT: "CAT-7829f71c-2e8c-afa5-2f55-fa3634b89874",
|
|
508
508
|
BILLS_AND_UTILITIES: "CAT-79b02f2f-2adc-88f0-ac2b-4e71ead9cfc8",
|
|
@@ -625,175 +625,175 @@ const $4 = {
|
|
|
625
625
|
BONUS: "CAT-f52f2a88-2cb6-04e4-e36a-58f7b7c6a798",
|
|
626
626
|
PET_FOOD_SUPPLIES: "CAT-fbcdb437-2533-2857-1d1a-0624c9d9e1dc"
|
|
627
627
|
}, Uo = [
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
628
|
+
N.CREDIT_CARD_PAYMENT,
|
|
629
|
+
N.MORTGAGE_PAYMENT,
|
|
630
|
+
N.AUTO_PAYMENT
|
|
631
631
|
], ai = {
|
|
632
632
|
// Top-level categories
|
|
633
|
-
[
|
|
634
|
-
[
|
|
635
|
-
[
|
|
636
|
-
[
|
|
637
|
-
[
|
|
638
|
-
[
|
|
639
|
-
[
|
|
640
|
-
[
|
|
641
|
-
[
|
|
642
|
-
[
|
|
643
|
-
[
|
|
644
|
-
[
|
|
645
|
-
[
|
|
646
|
-
[
|
|
647
|
-
[
|
|
648
|
-
[
|
|
649
|
-
[
|
|
650
|
-
[
|
|
651
|
-
[
|
|
652
|
-
[
|
|
653
|
-
[
|
|
633
|
+
[N.AUTO_AND_TRANSPORT]: "Auto & Transport",
|
|
634
|
+
[N.BILLS_AND_UTILITIES]: "Bills & Utilities",
|
|
635
|
+
[N.BUSINESS_SERVICES]: "Business Services",
|
|
636
|
+
[N.EDUCATION]: "Education",
|
|
637
|
+
[N.ENTERTAINMENT]: "Entertainment",
|
|
638
|
+
[N.FEES_AND_CHARGES]: "Fees & Charges",
|
|
639
|
+
[N.FINANCIAL]: "Financial",
|
|
640
|
+
[N.FOOD_AND_DINING]: "Food & Dining",
|
|
641
|
+
[N.GIFTS_AND_DONATIONS]: "Gifts & Donations",
|
|
642
|
+
[N.HEALTH_AND_FITNESS]: "Health & Fitness",
|
|
643
|
+
[N.HOME]: "Home",
|
|
644
|
+
[N.INCOME]: "Income",
|
|
645
|
+
[N.INVESTMENTS]: "Investments",
|
|
646
|
+
[N.KIDS]: "Kids",
|
|
647
|
+
[N.PERSONAL_CARE]: "Personal Care",
|
|
648
|
+
[N.PETS]: "Pets",
|
|
649
|
+
[N.SHOPPING]: "Shopping",
|
|
650
|
+
[N.TAXES]: "Taxes",
|
|
651
|
+
[N.TRANSFER]: "Transfer",
|
|
652
|
+
[N.TRAVEL]: "Travel",
|
|
653
|
+
[N.UNCATEGORIZED]: "Uncategorized",
|
|
654
654
|
// Subcategories
|
|
655
|
-
[
|
|
656
|
-
[
|
|
657
|
-
[
|
|
658
|
-
[
|
|
659
|
-
[
|
|
660
|
-
[
|
|
661
|
-
[
|
|
662
|
-
[
|
|
663
|
-
[
|
|
664
|
-
[
|
|
665
|
-
[
|
|
666
|
-
[
|
|
667
|
-
[
|
|
668
|
-
[
|
|
669
|
-
[
|
|
670
|
-
[
|
|
671
|
-
[
|
|
672
|
-
[
|
|
673
|
-
[
|
|
674
|
-
[
|
|
675
|
-
[
|
|
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
|
-
[
|
|
655
|
+
[N.LOCAL_TAX]: "Local Tax",
|
|
656
|
+
[N.WITHDRAWAL]: "Withdrawal",
|
|
657
|
+
[N.TRADE_COMMISSIONS]: "Trade Commissions",
|
|
658
|
+
[N.BABYSITTER_DAYCARE]: "Babysitter & Daycare",
|
|
659
|
+
[N.CHILD_SUPPORT]: "Child Support",
|
|
660
|
+
[N.CREDIT_CARD_PAYMENT]: "Credit Card Payment",
|
|
661
|
+
[N.STUDENT_LOAN]: "Student Loan",
|
|
662
|
+
[N.LIFE_INSURANCE]: "Life Insurance",
|
|
663
|
+
[N.PRINTING]: "Printing",
|
|
664
|
+
[N.FINANCIAL_ADVISOR]: "Financial Advisor",
|
|
665
|
+
[N.INTEREST_INCOME]: "Interest Income",
|
|
666
|
+
[N.LATE_FEE]: "Late Fee",
|
|
667
|
+
[N.LAWN_GARDEN]: "Lawn & Garden",
|
|
668
|
+
[N.FINANCE_CHARGE]: "Finance Charge",
|
|
669
|
+
[N.FRAUD_PROTECTION]: "Fraud Protection",
|
|
670
|
+
[N.MOVIES_DVDS]: "Movies & DVDs",
|
|
671
|
+
[N.HOME_INSURANCE]: "Home Insurance",
|
|
672
|
+
[N.CASH]: "Cash",
|
|
673
|
+
[N.TUITION]: "Tuition",
|
|
674
|
+
[N.HEALTH_INSURANCE]: "Health Insurance",
|
|
675
|
+
[N.DIVIDEND_CAP_GAINS]: "Dividend & Cap Gains",
|
|
676
|
+
[N.ALCOHOL_BARS]: "Alcohol & Bars",
|
|
677
|
+
[N.LEGAL]: "Legal",
|
|
678
|
+
[N.PUBLIC_TRANSPORTATION]: "Public Transportation",
|
|
679
|
+
[N.MORTGAGE_RENT]: "Mortgage & Rent",
|
|
680
|
+
[N.HOTEL]: "Hotel",
|
|
681
|
+
[N.TRANSFER_FOR_CASH_SPENDING]: "Transfer for Cash Spending",
|
|
682
|
+
[N.UTILITIES]: "Utilities",
|
|
683
|
+
[N.DEPOSIT]: "Deposit",
|
|
684
|
+
[N.HOME_PHONE]: "Home Phone",
|
|
685
|
+
[N.SERVICE_PARTS]: "Service Parts",
|
|
686
|
+
[N.INTERNET]: "Internet",
|
|
687
|
+
[N.BOOKS]: "Books",
|
|
688
|
+
[N.NEWSPAPERS_MAGAZINES]: "Newspapers & Magazines",
|
|
689
|
+
[N.FAST_FOOD]: "Fast Food",
|
|
690
|
+
[N.COFFEE_SHOPS]: "Coffee Shops",
|
|
691
|
+
[N.SELL]: "Sell",
|
|
692
|
+
[N.OFFICE_SUPPLIES]: "Office Supplies",
|
|
693
|
+
[N.PET_GROOMING]: "Pet Grooming",
|
|
694
|
+
[N.AMUSEMENT]: "Amusement",
|
|
695
|
+
[N.BOOKS_SUPPLIES]: "Books & Supplies",
|
|
696
|
+
[N.VACATION]: "Vacation",
|
|
697
|
+
[N.SERVICE_FEE]: "Service Fee",
|
|
698
|
+
[N.GIFT]: "Gift",
|
|
699
|
+
[N.CHARITY]: "Charity",
|
|
700
|
+
[N.PARKING]: "Parking",
|
|
701
|
+
[N.SHIPPING]: "Shipping",
|
|
702
|
+
[N.ARTS]: "Arts",
|
|
703
|
+
[N.PAYCHECK]: "Paycheck",
|
|
704
|
+
[N.FURNISHINGS]: "Furnishings",
|
|
705
|
+
[N.RESTAURANTS]: "Restaurants",
|
|
706
|
+
[N.SPA_MASSAGE]: "Spa & Massage",
|
|
707
|
+
[N.RENTAL_CAR_TAXI]: "Rental Car & Taxi",
|
|
708
|
+
[N.ALLOWANCE]: "Allowance",
|
|
709
|
+
[N.BANKING_FEE]: "Banking Fee",
|
|
710
|
+
[N.BUY]: "Buy",
|
|
711
|
+
[N.STATE_TAX]: "State Tax",
|
|
712
|
+
[N.TOYS]: "Toys",
|
|
713
|
+
[N.KIDS_ACTIVITIES]: "Kids Activities",
|
|
714
|
+
[N.RENTAL_INCOME]: "Rental Income",
|
|
715
|
+
[N.VETERINARY]: "Veterinary",
|
|
716
|
+
[N.SPORTING_GOODS]: "Sporting Goods",
|
|
717
|
+
[N.LAUNDRY]: "Laundry",
|
|
718
|
+
[N.CLOTHING]: "Clothing",
|
|
719
|
+
[N.PHARMACY]: "Pharmacy",
|
|
720
|
+
[N.HOME_SERVICES]: "Home Services",
|
|
721
|
+
[N.ATM_FEE]: "ATM Fee",
|
|
722
|
+
[N.HAIR]: "Hair",
|
|
723
|
+
[N.GROCERIES]: "Groceries",
|
|
724
|
+
[N.GAS]: "Gas",
|
|
725
|
+
[N.FEDERAL_TAX]: "Federal Tax",
|
|
726
|
+
[N.HOSTING]: "Hosting",
|
|
727
|
+
[N.TELEVISION]: "Television",
|
|
728
|
+
[N.MOBILE_PHONE]: "Mobile Phone",
|
|
729
|
+
[N.BABY_SUPPLIES]: "Baby Supplies",
|
|
730
|
+
[N.MUSIC]: "Music",
|
|
731
|
+
[N.MORTGAGE_PAYMENT]: "Mortgage Payment",
|
|
732
|
+
[N.SPORTS]: "Sports",
|
|
733
|
+
[N.AUTO_PAYMENT]: "Auto Payment",
|
|
734
|
+
[N.GYM]: "Gym",
|
|
735
|
+
[N.REIMBURSEMENT]: "Reimbursement",
|
|
736
|
+
[N.AIR_TRAVEL]: "Air Travel",
|
|
737
|
+
[N.EYECARE]: "Eyecare",
|
|
738
|
+
[N.HOBBIES]: "Hobbies",
|
|
739
|
+
[N.SALES_TAX]: "Sales Tax",
|
|
740
|
+
[N.ELECTRONICS_SOFTWARE]: "Electronics & Software",
|
|
741
|
+
[N.DOCTOR]: "Doctor",
|
|
742
|
+
[N.RETURNED_PURCHASE]: "Returned Purchase",
|
|
743
|
+
[N.HOME_IMPROVEMENT]: "Home Improvement",
|
|
744
|
+
[N.AUTO_INSURANCE]: "Auto Insurance",
|
|
745
|
+
[N.PROPERTY_TAX]: "Property Tax",
|
|
746
|
+
[N.DOMAIN_NAMES]: "Domain Names",
|
|
747
|
+
[N.HOME_SUPPLIES]: "Home Supplies",
|
|
748
|
+
[N.ADVERTISING]: "Advertising",
|
|
749
|
+
[N.CHECK]: "Check",
|
|
750
|
+
[N.DENTIST]: "Dentist",
|
|
751
|
+
[N.BONUS]: "Bonus",
|
|
752
|
+
[N.PET_FOOD_SUPPLIES]: "Pet Food & Supplies"
|
|
753
753
|
}, Sn = {
|
|
754
|
-
[
|
|
755
|
-
[
|
|
756
|
-
[
|
|
757
|
-
[
|
|
758
|
-
[
|
|
759
|
-
[
|
|
760
|
-
[
|
|
761
|
-
[
|
|
762
|
-
[
|
|
763
|
-
[
|
|
764
|
-
[
|
|
765
|
-
[
|
|
766
|
-
[
|
|
767
|
-
[
|
|
768
|
-
[
|
|
769
|
-
[
|
|
770
|
-
[
|
|
771
|
-
[
|
|
772
|
-
[
|
|
773
|
-
[
|
|
774
|
-
[
|
|
754
|
+
[N.AUTO_AND_TRANSPORT]: "#4B9DBC",
|
|
755
|
+
[N.BILLS_AND_UTILITIES]: "#EF9B2C",
|
|
756
|
+
[N.BUSINESS_SERVICES]: "#B3DE8C",
|
|
757
|
+
[N.EDUCATION]: "#F8AB3A",
|
|
758
|
+
[N.ENTERTAINMENT]: "#AB5B89",
|
|
759
|
+
[N.FEES_AND_CHARGES]: "#FF9696",
|
|
760
|
+
[N.FINANCIAL]: "#6BCDDB",
|
|
761
|
+
[N.FOOD_AND_DINING]: "#58AC7B",
|
|
762
|
+
[N.GIFTS_AND_DONATIONS]: "#347AA5",
|
|
763
|
+
[N.HEALTH_AND_FITNESS]: "#5C446E",
|
|
764
|
+
[N.HOME]: "#FFD84D",
|
|
765
|
+
[N.INCOME]: "#133F49",
|
|
766
|
+
[N.INVESTMENTS]: "#FF7070",
|
|
767
|
+
[N.KIDS]: "#82D196",
|
|
768
|
+
[N.PERSONAL_CARE]: "#338B7A",
|
|
769
|
+
[N.PETS]: "#615BAB",
|
|
770
|
+
[N.SHOPPING]: "#CF5F84",
|
|
771
|
+
[N.TAXES]: "#32588D",
|
|
772
|
+
[N.TRANSFER]: "#959CA6",
|
|
773
|
+
[N.TRAVEL]: "#E37434",
|
|
774
|
+
[N.UNCATEGORIZED]: "#FA5555"
|
|
775
775
|
}, Md = {
|
|
776
|
-
[
|
|
777
|
-
[
|
|
778
|
-
[
|
|
779
|
-
[
|
|
780
|
-
[
|
|
781
|
-
[
|
|
782
|
-
[
|
|
783
|
-
[
|
|
784
|
-
[
|
|
785
|
-
[
|
|
786
|
-
[
|
|
787
|
-
[
|
|
788
|
-
[
|
|
789
|
-
[
|
|
790
|
-
[
|
|
791
|
-
[
|
|
792
|
-
[
|
|
793
|
-
[
|
|
794
|
-
[
|
|
795
|
-
[
|
|
796
|
-
[
|
|
776
|
+
[N.AUTO_AND_TRANSPORT]: "directions_car",
|
|
777
|
+
[N.BILLS_AND_UTILITIES]: "electrical_services",
|
|
778
|
+
[N.BUSINESS_SERVICES]: "business_center",
|
|
779
|
+
[N.EDUCATION]: "school",
|
|
780
|
+
[N.ENTERTAINMENT]: "stadium",
|
|
781
|
+
[N.FEES_AND_CHARGES]: "problem",
|
|
782
|
+
[N.FINANCIAL]: "price_check",
|
|
783
|
+
[N.FOOD_AND_DINING]: "grocery",
|
|
784
|
+
[N.GIFTS_AND_DONATIONS]: "featured_seasonal_and_gifts",
|
|
785
|
+
[N.HEALTH_AND_FITNESS]: "ecg_heart",
|
|
786
|
+
[N.HOME]: "cottage",
|
|
787
|
+
[N.INCOME]: "monetization_on",
|
|
788
|
+
[N.INVESTMENTS]: "bid_landscape",
|
|
789
|
+
[N.KIDS]: "face",
|
|
790
|
+
[N.PERSONAL_CARE]: "volunteer_activism",
|
|
791
|
+
[N.PETS]: "pet_supplies",
|
|
792
|
+
[N.SHOPPING]: "shopping_cart",
|
|
793
|
+
[N.TAXES]: "heap_snapshot_large",
|
|
794
|
+
[N.TRANSFER]: "compare_arrows",
|
|
795
|
+
[N.TRAVEL]: "airplane_ticket",
|
|
796
|
+
[N.UNCATEGORIZED]: "category",
|
|
797
797
|
UNKNOWN: "help"
|
|
798
798
|
}, Vo = 9999999999e-2;
|
|
799
799
|
var Va = /* @__PURE__ */ ((e) => (e.CAD = "CAD", e.USD = "USD", e))(Va || {}), kd = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.EveryWeek = 1] = "EveryWeek", e[e.EveryOtherWeek = 2] = "EveryOtherWeek", e[e.EveryMonth = 3] = "EveryMonth", e[e.EveryOtherMonth = 4] = "EveryOtherMonth", e[e.EveryQuarter = 5] = "EveryQuarter", e[e.EveryOtherQuarter = 6] = "EveryOtherQuarter", e[e.EveryYear = 7] = "EveryYear", e))(kd || {});
|
|
@@ -841,7 +841,7 @@ const aa = 44, Ko = (e, n) => e.find((a) => a.guid === n), Hd = (e, n) => e.find
|
|
|
841
841
|
return a;
|
|
842
842
|
}, z4 = (e, n) => {
|
|
843
843
|
const a = e.find((i) => i.guid === n);
|
|
844
|
-
return a ? a.guid ===
|
|
844
|
+
return a ? a.guid === N.INCOME || a.parent_guid === N.INCOME : !1;
|
|
845
845
|
}, to = (e) => {
|
|
846
846
|
const n = Jc(e);
|
|
847
847
|
let a = Fa(e, n);
|
|
@@ -1373,7 +1373,7 @@ const bi = (e, n) => e.reduce((a, i) => (a[i.guid] = n?.includes(i.guid), a), {}
|
|
|
1373
1373
|
) }),
|
|
1374
1374
|
Object.keys(m).map((b) => {
|
|
1375
1375
|
const S = m[b], A = S.every(
|
|
1376
|
-
(
|
|
1376
|
+
(w) => d[w.guid]
|
|
1377
1377
|
);
|
|
1378
1378
|
return /* @__PURE__ */ t(Y, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ t(
|
|
1379
1379
|
ae,
|
|
@@ -1407,8 +1407,8 @@ const bi = (e, n) => e.reduce((a, i) => (a[i.guid] = n?.includes(i.guid), a), {}
|
|
|
1407
1407
|
}
|
|
1408
1408
|
) }),
|
|
1409
1409
|
sx: { overflow: "auto", width: "100%" },
|
|
1410
|
-
children: S.map((
|
|
1411
|
-
const v = d[
|
|
1410
|
+
children: S.map((w) => {
|
|
1411
|
+
const v = d[w.guid], R = `${w.name}${g && w.accountNumber ? ` *${w.accountNumber.slice(-4)}` : ""}`;
|
|
1412
1412
|
return /* @__PURE__ */ t(
|
|
1413
1413
|
Y,
|
|
1414
1414
|
{
|
|
@@ -1424,9 +1424,9 @@ const bi = (e, n) => e.reduce((a, i) => (a[i.guid] = n?.includes(i.guid), a), {}
|
|
|
1424
1424
|
checked: v,
|
|
1425
1425
|
"data-ui-test": `checked-${v}`,
|
|
1426
1426
|
disableRipple: !0,
|
|
1427
|
-
id:
|
|
1427
|
+
id: w.guid,
|
|
1428
1428
|
onChange: () => {
|
|
1429
|
-
i(
|
|
1429
|
+
i(w);
|
|
1430
1430
|
},
|
|
1431
1431
|
size: "small",
|
|
1432
1432
|
sx: {
|
|
@@ -1441,7 +1441,7 @@ const bi = (e, n) => e.reduce((a, i) => (a[i.guid] = n?.includes(i.guid), a), {}
|
|
|
1441
1441
|
}
|
|
1442
1442
|
)
|
|
1443
1443
|
},
|
|
1444
|
-
|
|
1444
|
+
w.guid
|
|
1445
1445
|
);
|
|
1446
1446
|
})
|
|
1447
1447
|
}
|
|
@@ -1576,8 +1576,8 @@ const Qd = (e, n) => {
|
|
|
1576
1576
|
},
|
|
1577
1577
|
onAccountGroupClick: (E, b, S) => {
|
|
1578
1578
|
const A = { ...g };
|
|
1579
|
-
b[E].forEach((
|
|
1580
|
-
A[
|
|
1579
|
+
b[E].forEach((w) => {
|
|
1580
|
+
A[w.guid] = !S;
|
|
1581
1581
|
}), m(A);
|
|
1582
1582
|
},
|
|
1583
1583
|
onCancelClick: () => {
|
|
@@ -1798,14 +1798,14 @@ const Qd = (e, n) => {
|
|
|
1798
1798
|
selectedIndex: d,
|
|
1799
1799
|
valueFormatter: _ = (u) => `${u}`
|
|
1800
1800
|
}) => {
|
|
1801
|
-
const u = pt(), g = c_(u), m = i.reduce(r_, []), C = e !== void 0 ? e : m.reduce(i_, 0) / m.length, f = Math.max(...m), E = Math.min(...m), b = m.reduce(o_, 0), S = f >= 0, A = E < 0,
|
|
1801
|
+
const u = pt(), g = c_(u), m = i.reduce(r_, []), C = e !== void 0 ? e : m.reduce(i_, 0) / m.length, f = Math.max(...m), E = Math.min(...m), b = m.reduce(o_, 0), S = f >= 0, A = E < 0, w = Qo(S, A, o), v = Qo(A, S, o), R = s_(C, f, E, w || v), L = (D) => d === void 0 || D === d ? a : `${a}80`, B = () => /* @__PURE__ */ t(
|
|
1802
1802
|
qo,
|
|
1803
1803
|
{
|
|
1804
1804
|
averageLineHeight: R,
|
|
1805
1805
|
bottomHeight: v,
|
|
1806
1806
|
color: "",
|
|
1807
1807
|
range: b,
|
|
1808
|
-
topHeight:
|
|
1808
|
+
topHeight: w,
|
|
1809
1809
|
value: 0,
|
|
1810
1810
|
width: void 0
|
|
1811
1811
|
}
|
|
@@ -1825,7 +1825,7 @@ const Qd = (e, n) => {
|
|
|
1825
1825
|
onClick: c,
|
|
1826
1826
|
range: b,
|
|
1827
1827
|
selectedIndex: d,
|
|
1828
|
-
topHeight:
|
|
1828
|
+
topHeight: w,
|
|
1829
1829
|
value: D.value,
|
|
1830
1830
|
valueLabel: _(D.value),
|
|
1831
1831
|
width: n,
|
|
@@ -1965,25 +1965,25 @@ const g_ = ({
|
|
|
1965
1965
|
g(n), C(a), n && _(n);
|
|
1966
1966
|
}, [n, a]);
|
|
1967
1967
|
const f = h.useMemo(() => {
|
|
1968
|
-
const
|
|
1969
|
-
for (let R = 0; R <
|
|
1970
|
-
const L =
|
|
1968
|
+
const w = ol({ start: et(d), end: Qe(d) }), v = [];
|
|
1969
|
+
for (let R = 0; R < w.length; R++) {
|
|
1970
|
+
const L = w[R], B = il({ start: L, end: rn(L, 6) }), D = [];
|
|
1971
1971
|
for (let G = 0; G < B.length; G++)
|
|
1972
1972
|
D.push(B[G]);
|
|
1973
1973
|
v.push(D);
|
|
1974
1974
|
}
|
|
1975
1975
|
return v;
|
|
1976
|
-
}, [d]), E = (
|
|
1976
|
+
}, [d]), E = (w) => {
|
|
1977
1977
|
if (r !== "None") {
|
|
1978
1978
|
if (r === "Single") {
|
|
1979
|
-
g(
|
|
1979
|
+
g(w), i?.(w);
|
|
1980
1980
|
return;
|
|
1981
1981
|
}
|
|
1982
|
-
!u || m ? (g(
|
|
1982
|
+
!u || m ? (g(w), C(void 0)) : je(w, u) ? (C(u), g(w), o?.(w, u)) : (C(w), o?.(u, w));
|
|
1983
1983
|
}
|
|
1984
1984
|
}, b = () => {
|
|
1985
|
-
const
|
|
1986
|
-
_(
|
|
1985
|
+
const w = ue();
|
|
1986
|
+
_(w), r !== "None" && (g(w), r === "Single" ? i?.(w) : (C(w), o?.(w, w)));
|
|
1987
1987
|
}, S = () => {
|
|
1988
1988
|
_(bt(d, 1));
|
|
1989
1989
|
}, A = () => {
|
|
@@ -1999,8 +1999,8 @@ const g_ = ({
|
|
|
1999
1999
|
onPreviousClick: A
|
|
2000
2000
|
}
|
|
2001
2001
|
),
|
|
2002
|
-
/* @__PURE__ */ t("div", { className: "mx-cmn-calendar-header-row", children: f[0].map((
|
|
2003
|
-
f.map((
|
|
2002
|
+
/* @__PURE__ */ t("div", { className: "mx-cmn-calendar-header-row", children: f[0].map((w, v) => /* @__PURE__ */ t("div", { className: "mx-cmn-calendar-header-cell", children: /* @__PURE__ */ t(p, { bold: !0, variant: "Small", children: kn(w, "EEEEE") }) }, v)) }),
|
|
2003
|
+
f.map((w, v) => /* @__PURE__ */ t("div", { className: "mx-cmn-calendar-week", children: w.map((R, L) => /* @__PURE__ */ t(
|
|
2004
2004
|
__,
|
|
2005
2005
|
{
|
|
2006
2006
|
beginDate: u,
|
|
@@ -2209,7 +2209,7 @@ const g_ = ({
|
|
|
2209
2209
|
valueFormatterString: C = "0,0",
|
|
2210
2210
|
width: f
|
|
2211
2211
|
}) => {
|
|
2212
|
-
const E = at(), b = a.flat().map((D) => D.x), S = a.flat().map((D) => D.y), A = Math.round(S.reduce((D, G) => G + D, 0) / S.length),
|
|
2212
|
+
const E = at(), b = a.flat().map((D) => D.x), S = a.flat().map((D) => D.y), A = Math.round(S.reduce((D, G) => G + D, 0) / S.length), w = Math.floor(Math.min(...S) / 100) * 100, v = Math.ceil(Math.max(...S) / 100) * 100, R = a.map((D, G) => ({
|
|
2213
2213
|
type: d ? "bar" : "line",
|
|
2214
2214
|
curve: "linear",
|
|
2215
2215
|
color: d ? E.palette.chart?.chart6 : n[G] ?? E.palette.primary.main,
|
|
@@ -2249,11 +2249,11 @@ const g_ = ({
|
|
|
2249
2249
|
xAxis: [{ data: b, scaleType: d ? "band" : "point" }],
|
|
2250
2250
|
yAxis: [
|
|
2251
2251
|
{
|
|
2252
|
-
min:
|
|
2252
|
+
min: w,
|
|
2253
2253
|
max: v || 100,
|
|
2254
2254
|
colorMap: _ ? {
|
|
2255
2255
|
type: "continuous",
|
|
2256
|
-
min:
|
|
2256
|
+
min: w,
|
|
2257
2257
|
max: v,
|
|
2258
2258
|
color: [E.palette.background.paper, n[0] ?? E.palette.primary.main]
|
|
2259
2259
|
} : void 0,
|
|
@@ -2521,7 +2521,7 @@ const g_ = ({
|
|
|
2521
2521
|
hoveredAreaData: null,
|
|
2522
2522
|
isAreaHovered: !1,
|
|
2523
2523
|
cursorPos: { x: 0, y: 0 }
|
|
2524
|
-
}), { hoveredSeriesId: E, hoveredAreaData: b, isAreaHovered: S, cursorPos: A } = C,
|
|
2524
|
+
}), { hoveredSeriesId: E, hoveredAreaData: b, isAreaHovered: S, cursorPos: A } = C, w = S && E && b, v = !w, R = [...o, ...r], L = R[0]?.dataset.length ?? 0, B = R.flatMap((V) => V.dataset.map((Me) => Me.x)), D = R.flatMap((V) => V.dataset.map((Me) => Me.y)), G = o[0]?.dataset?.map(
|
|
2525
2525
|
(V, Me) => o.reduce((Ge, Bt) => Ge + Bt.dataset[Me]?.y || 0, 0)
|
|
2526
2526
|
) ?? [0], k = Math.max(...G), U = Math.max(
|
|
2527
2527
|
...r.flatMap((V) => V.dataset.map((Me) => Me.y))
|
|
@@ -2691,7 +2691,7 @@ const g_ = ({
|
|
|
2691
2691
|
sx: { px: _ ? 0 : 24 }
|
|
2692
2692
|
}
|
|
2693
2693
|
),
|
|
2694
|
-
|
|
2694
|
+
w && /* @__PURE__ */ t(
|
|
2695
2695
|
x_,
|
|
2696
2696
|
{
|
|
2697
2697
|
categoryGuids: Se(E),
|
|
@@ -2901,7 +2901,7 @@ const g_ = ({
|
|
|
2901
2901
|
shouldShrinkToIcon: o = !0,
|
|
2902
2902
|
variant: r = "outlined"
|
|
2903
2903
|
}) => {
|
|
2904
|
-
const s = fe(), c = s.palette.mode === "dark", { isMobile: d } = Ce(), [_, u] = h.useState(i), [g, m] = h.useState(a.dateRangePickerCopy.dateRangeThisMonth), [C, f] = h.useState(_), [E, b] = h.useState(!1), [S, A] = h.useState(!0), [
|
|
2904
|
+
const s = fe(), c = s.palette.mode === "dark", { isMobile: d } = Ce(), [_, u] = h.useState(i), [g, m] = h.useState(a.dateRangePickerCopy.dateRangeThisMonth), [C, f] = h.useState(_), [E, b] = h.useState(!1), [S, A] = h.useState(!0), [w, v] = h.useState(6), R = {
|
|
2905
2905
|
buttons: [
|
|
2906
2906
|
{ label: "3M", value: 3 },
|
|
2907
2907
|
{ label: "6M", value: 6 },
|
|
@@ -2919,10 +2919,10 @@ const g_ = ({
|
|
|
2919
2919
|
f(i);
|
|
2920
2920
|
}, [i]), h.useEffect(() => {
|
|
2921
2921
|
(r === "timeframebuttons" || r === "timeframetabs") && e.onRangeChanged(L());
|
|
2922
|
-
}, [
|
|
2922
|
+
}, [w]);
|
|
2923
2923
|
const L = () => {
|
|
2924
2924
|
const k = Qe(xn());
|
|
2925
|
-
return [Qe(Vt(k,
|
|
2925
|
+
return [Qe(Vt(k, w)), k];
|
|
2926
2926
|
}, B = (k) => {
|
|
2927
2927
|
const U = [..._], oe = _[0], me = _[1], te = k === "previous";
|
|
2928
2928
|
if (g === a.dateRangePickerCopy.dateRangeThisMonth)
|
|
@@ -3021,7 +3021,7 @@ const g_ = ({
|
|
|
3021
3021
|
color: n,
|
|
3022
3022
|
exclusive: !0,
|
|
3023
3023
|
orientation: "horizontal",
|
|
3024
|
-
value:
|
|
3024
|
+
value: w,
|
|
3025
3025
|
children: R.buttons.map((k) => /* @__PURE__ */ t(
|
|
3026
3026
|
Yn,
|
|
3027
3027
|
{
|
|
@@ -3062,7 +3062,7 @@ const g_ = ({
|
|
|
3062
3062
|
indicatorColor: "primary",
|
|
3063
3063
|
onChange: (k, U) => G(U),
|
|
3064
3064
|
textColor: "primary",
|
|
3065
|
-
value:
|
|
3065
|
+
value: w,
|
|
3066
3066
|
variant: "fullWidth",
|
|
3067
3067
|
children: R.tabs.map((k) => /* @__PURE__ */ t(
|
|
3068
3068
|
Je,
|
|
@@ -3377,7 +3377,7 @@ const Nn = ({
|
|
|
3377
3377
|
sx: g = {},
|
|
3378
3378
|
title: m = ""
|
|
3379
3379
|
}) => {
|
|
3380
|
-
const [C, { height: f, width: E }] = Ms(), { onEvent: b } = j(), { isDesktop: S, isMobile: A, isTablet:
|
|
3380
|
+
const [C, { height: f, width: E }] = Ms(), { onEvent: b } = j(), { isDesktop: S, isMobile: A, isTablet: w } = Ce(E), { displayedDateRange: v, isCopyLoaded: R, selectedAccountGuids: L, setSelectedAccountGuids: B } = le(), { common: D } = I(), G = () => {
|
|
3381
3381
|
d && (d(), b(W.WIDGET_BACK_CLICK));
|
|
3382
3382
|
};
|
|
3383
3383
|
if (!R)
|
|
@@ -3422,7 +3422,7 @@ const Nn = ({
|
|
|
3422
3422
|
sx: {
|
|
3423
3423
|
...A && { px: 4 },
|
|
3424
3424
|
"& .mx-cmn-date-range-selector": {
|
|
3425
|
-
...(A ||
|
|
3425
|
+
...(A || w) && { textAlign: "center" }
|
|
3426
3426
|
},
|
|
3427
3427
|
...g
|
|
3428
3428
|
},
|
|
@@ -3466,7 +3466,7 @@ const Nn = ({
|
|
|
3466
3466
|
children: Se
|
|
3467
3467
|
},
|
|
3468
3468
|
Re
|
|
3469
|
-
) : /* @__PURE__ */ t($e, { "aria-label": Se, onClick: Oe, children: /* @__PURE__ */ t($, { name: Re, size: 24 }) }, Re) : S ||
|
|
3469
|
+
) : /* @__PURE__ */ t($e, { "aria-label": Se, onClick: Oe, children: /* @__PURE__ */ t($, { name: Re, size: 24 }) }, Re) : S || w ? /* @__PURE__ */ t(
|
|
3470
3470
|
J,
|
|
3471
3471
|
{
|
|
3472
3472
|
onClick: Oe,
|
|
@@ -3481,13 +3481,13 @@ const Nn = ({
|
|
|
3481
3481
|
sx: {
|
|
3482
3482
|
"& .MuiCardHeader-action": {
|
|
3483
3483
|
...a && S && { flexGrow: 1 },
|
|
3484
|
-
...(A ||
|
|
3484
|
+
...(A || w) && { alignSelf: "center" },
|
|
3485
3485
|
mr: 0
|
|
3486
3486
|
},
|
|
3487
3487
|
p: S ? 48 : 24,
|
|
3488
3488
|
pb: 0
|
|
3489
3489
|
},
|
|
3490
|
-
title: S ||
|
|
3490
|
+
title: S || w ? /* @__PURE__ */ t(zt, { children: m }) : /* @__PURE__ */ l(y, { alignItems: "center", flexDirection: "row", children: [
|
|
3491
3491
|
A && d && /* @__PURE__ */ t(
|
|
3492
3492
|
$e,
|
|
3493
3493
|
{
|
|
@@ -3502,7 +3502,7 @@ const Nn = ({
|
|
|
3502
3502
|
}
|
|
3503
3503
|
),
|
|
3504
3504
|
c && /* @__PURE__ */ t(P, { sx: { mt: S ? 48 : 24 } }),
|
|
3505
|
-
a && (A ||
|
|
3505
|
+
a && (A || w) && /* @__PURE__ */ l(y, { gap: 24, justifyContent: "center", sx: { mt: A ? 0 : 16 }, children: [
|
|
3506
3506
|
u && /* @__PURE__ */ t(P, {}),
|
|
3507
3507
|
/* @__PURE__ */ t(
|
|
3508
3508
|
Jo,
|
|
@@ -3604,13 +3604,13 @@ const er = "connect_widget", tr = "connections_widget", P_ = ({
|
|
|
3604
3604
|
setHasValidInput: u,
|
|
3605
3605
|
...g
|
|
3606
3606
|
}) => {
|
|
3607
|
-
const [m, C] = h.useState(""), { common: f } = I(), E = o || f.currency_input, b = pt(), S = H_(b), A = /^[0-9]*$/,
|
|
3607
|
+
const [m, C] = h.useState(""), { common: f } = I(), E = o || f.currency_input, b = pt(), S = H_(b), A = /^[0-9]*$/, w = /^(\d)*(\,)?([0-9]{1,2})?$/, v = /^(\d)*(\.)?([0-9]{1,2})?$/;
|
|
3608
3608
|
let R;
|
|
3609
3609
|
const L = h.useRef(Fl());
|
|
3610
3610
|
if (e)
|
|
3611
3611
|
switch (Yd()) {
|
|
3612
3612
|
case Va.CAD:
|
|
3613
|
-
R =
|
|
3613
|
+
R = w;
|
|
3614
3614
|
break;
|
|
3615
3615
|
default:
|
|
3616
3616
|
R = v;
|
|
@@ -4363,7 +4363,7 @@ class Z_ {
|
|
|
4363
4363
|
get detailedBudgets() {
|
|
4364
4364
|
return j_(
|
|
4365
4365
|
this.budgets.filter(
|
|
4366
|
-
(n) => n.category_guid !==
|
|
4366
|
+
(n) => n.category_guid !== N.INCOME && n.category_guid !== N.TRANSFER && n.category_guid !== N.INVESTMENTS
|
|
4367
4367
|
),
|
|
4368
4368
|
this.globalStore.categoryStore.detailedCategories,
|
|
4369
4369
|
this.globalStore.copyStore.copy.budgets,
|
|
@@ -4488,12 +4488,12 @@ const Jn = () => {
|
|
|
4488
4488
|
const A = h.useMemo(
|
|
4489
4489
|
() => o.filter((L) => s.includes(L.guid)).reduce((L, B) => L + (B?.balance || 0), 0),
|
|
4490
4490
|
[s, S]
|
|
4491
|
-
),
|
|
4491
|
+
), w = h.useMemo(
|
|
4492
4492
|
() => u.filter((L) => s.includes(L.accountGuid || "")).reduce((L, B) => L + B.amount, 0),
|
|
4493
4493
|
[s, u]
|
|
4494
4494
|
), v = h.useMemo(
|
|
4495
|
-
() => A -
|
|
4496
|
-
[A,
|
|
4495
|
+
() => A - w,
|
|
4496
|
+
[A, w]
|
|
4497
4497
|
), R = d?.has_completed_cash_flow_onboarding && !!e;
|
|
4498
4498
|
return E ? /* @__PURE__ */ t(O, { className: "mx-cashflow", pl: 16, pr: 16, pt: 16, children: a > 610 ? /* @__PURE__ */ l(
|
|
4499
4499
|
y,
|
|
@@ -4513,7 +4513,7 @@ const Jn = () => {
|
|
|
4513
4513
|
] }),
|
|
4514
4514
|
/* @__PURE__ */ t(y, { pt: 18, children: /* @__PURE__ */ t($, { name: "remove" }) }),
|
|
4515
4515
|
/* @__PURE__ */ l(y, { pb: 14, pt: 12, children: [
|
|
4516
|
-
/* @__PURE__ */ t(Ue, { amount:
|
|
4516
|
+
/* @__PURE__ */ t(Ue, { amount: w, variant: "H2" }),
|
|
4517
4517
|
/* @__PURE__ */ t(Ne, { variant: "XSmall", whiteSpace: "nowrap", children: T(c.expenses_due, u.length) })
|
|
4518
4518
|
] }),
|
|
4519
4519
|
/* @__PURE__ */ t(y, { pt: 18, children: /* @__PURE__ */ t($, { name: "equals" }) }),
|
|
@@ -4549,7 +4549,7 @@ const Jn = () => {
|
|
|
4549
4549
|
/* @__PURE__ */ t(P, {}),
|
|
4550
4550
|
/* @__PURE__ */ l(y, { direction: "row", justifyContent: "space-between", p: 16, children: [
|
|
4551
4551
|
/* @__PURE__ */ t(p, { variant: "Small", children: T(c.expenses_due, u.length) }),
|
|
4552
|
-
/* @__PURE__ */ t(Ue, { amount:
|
|
4552
|
+
/* @__PURE__ */ t(Ue, { amount: w, bold: !0, symbol: "-", variant: "XSmall" })
|
|
4553
4553
|
] }),
|
|
4554
4554
|
/* @__PURE__ */ t(P, {}),
|
|
4555
4555
|
/* @__PURE__ */ t(
|
|
@@ -4981,7 +4981,7 @@ const hu = [
|
|
|
4981
4981
|
accountIsClosed: d?.is_closed,
|
|
4982
4982
|
accountIsHidden: d?.is_hidden,
|
|
4983
4983
|
category: _?.name || "Uncategorized",
|
|
4984
|
-
isIncome: c.top_level_category_guid ===
|
|
4984
|
+
isIncome: c.top_level_category_guid === N.INCOME,
|
|
4985
4985
|
isPending: c.feed_status === co.PENDING,
|
|
4986
4986
|
number: d?.account_number || "",
|
|
4987
4987
|
payee: c.description,
|
|
@@ -5677,13 +5677,13 @@ const Mu = ({ transaction: e, onClick: n }) => {
|
|
|
5677
5677
|
zeroState: d = /* @__PURE__ */ t(Gu, {})
|
|
5678
5678
|
}) => {
|
|
5679
5679
|
const { isLoading: _, sortedTransactions: u } = De(), g = h.useMemo(() => s ? u : u.filter((A) => !A.is_hidden), [u, s]), { setShowInsights: m, toggleSplit: C } = Ot(), { onEvent: f } = j(), E = (A) => {
|
|
5680
|
-
const
|
|
5681
|
-
if (
|
|
5682
|
-
C(
|
|
5680
|
+
const w = g.find((v) => v.guid === A);
|
|
5681
|
+
if (w?.has_been_split) {
|
|
5682
|
+
C(w.guid);
|
|
5683
5683
|
return;
|
|
5684
5684
|
}
|
|
5685
5685
|
f(W.ACCOUNT_DETAILS_CLICK_TRANSACTION, {
|
|
5686
|
-
account_guid:
|
|
5686
|
+
account_guid: w?.account_guid,
|
|
5687
5687
|
transaction_guid: A
|
|
5688
5688
|
}), i?.(A);
|
|
5689
5689
|
}, b = h.useRef(null), S = rs({
|
|
@@ -5705,7 +5705,7 @@ const Mu = ({ transaction: e, onClick: n }) => {
|
|
|
5705
5705
|
(_ || r) && a,
|
|
5706
5706
|
!_ && !r && S.getVirtualItems().length === 0 && d,
|
|
5707
5707
|
!_ && !r && S.getVirtualItems().length > 0 && S.getVirtualItems().map((A) => {
|
|
5708
|
-
const
|
|
5708
|
+
const w = g[A.index], v = sr(A.index, g), R = Bu(A.index, g), L = cr + (v ? lr : 0);
|
|
5709
5709
|
return /* @__PURE__ */ l(
|
|
5710
5710
|
O,
|
|
5711
5711
|
{
|
|
@@ -5716,12 +5716,12 @@ const Mu = ({ transaction: e, onClick: n }) => {
|
|
|
5716
5716
|
width: "100%"
|
|
5717
5717
|
},
|
|
5718
5718
|
children: [
|
|
5719
|
-
v && /* @__PURE__ */ t(_o, { bgcolor: e, children: ii(
|
|
5720
|
-
/* @__PURE__ */ t(lo, { onClick: E, transaction:
|
|
5719
|
+
v && /* @__PURE__ */ t(_o, { bgcolor: e, children: ii(w.date) }),
|
|
5720
|
+
/* @__PURE__ */ t(lo, { onClick: E, transaction: w }),
|
|
5721
5721
|
/* @__PURE__ */ t(P, { sx: { ml: R ? 24 : 0 } })
|
|
5722
5722
|
]
|
|
5723
5723
|
},
|
|
5724
|
-
|
|
5724
|
+
w.guid
|
|
5725
5725
|
);
|
|
5726
5726
|
})
|
|
5727
5727
|
]
|
|
@@ -6025,7 +6025,7 @@ const Xu = ({
|
|
|
6025
6025
|
showSelected: s,
|
|
6026
6026
|
unselectable: c,
|
|
6027
6027
|
unselectableText: d
|
|
6028
|
-
} = ln(), { categories: _ } = I(), { onEvent: u } = j(), [g, m] = h.useState(!1), [C, f] = h.useState(!1), E = !!n.revision, b = n.guid === i, S = !c.some((
|
|
6028
|
+
} = ln(), { categories: _ } = I(), { onEvent: u } = j(), [g, m] = h.useState(!1), [C, f] = h.useState(!1), E = !!n.revision, b = n.guid === i, S = !c.some((w) => w === n.guid);
|
|
6029
6029
|
return /* @__PURE__ */ l(
|
|
6030
6030
|
Y,
|
|
6031
6031
|
{
|
|
@@ -6263,7 +6263,7 @@ const Xu = ({
|
|
|
6263
6263
|
averageAmount: _r(d),
|
|
6264
6264
|
color: Sn[r],
|
|
6265
6265
|
icon: Md[r],
|
|
6266
|
-
isTransfer: r ===
|
|
6266
|
+
isTransfer: r === N.TRANSFER,
|
|
6267
6267
|
monthlyAmounts: d,
|
|
6268
6268
|
subCategories: u,
|
|
6269
6269
|
totalAmount: s ? g : 0,
|
|
@@ -6340,7 +6340,7 @@ class mh {
|
|
|
6340
6340
|
}
|
|
6341
6341
|
get spendCategories() {
|
|
6342
6342
|
return this.detailedCategories.filter(
|
|
6343
|
-
(n) => !n.is_income && !n.isTransfer && n.guid !==
|
|
6343
|
+
(n) => !n.is_income && !n.isTransfer && n.guid !== N.INVESTMENTS
|
|
6344
6344
|
);
|
|
6345
6345
|
}
|
|
6346
6346
|
get transferCategories() {
|
|
@@ -6996,7 +6996,7 @@ const $s = ({ transaction: e }) => {
|
|
|
6996
6996
|
(oe, me, te) => oe + (te !== 0 ? me.amount : 0),
|
|
6997
6997
|
0
|
|
6998
6998
|
), E(U);
|
|
6999
|
-
},
|
|
6999
|
+
}, w = (G, k) => {
|
|
7000
7000
|
const U = [...f], oe = c.find((me) => me.guid === k);
|
|
7001
7001
|
oe && (U[G] = {
|
|
7002
7002
|
...U[G],
|
|
@@ -7055,7 +7055,7 @@ const $s = ({ transaction: e }) => {
|
|
|
7055
7055
|
xh,
|
|
7056
7056
|
{
|
|
7057
7057
|
onAddSplit: b,
|
|
7058
|
-
onCategoryChanged:
|
|
7058
|
+
onCategoryChanged: w,
|
|
7059
7059
|
onDeleteSplit: S,
|
|
7060
7060
|
onUpdateAmount: A,
|
|
7061
7061
|
splits: f,
|
|
@@ -7184,7 +7184,7 @@ const $s = ({ transaction: e }) => {
|
|
|
7184
7184
|
}, [m]);
|
|
7185
7185
|
const A = () => {
|
|
7186
7186
|
i(z.ON_TRANSACTION_TAGS_TAG_EDIT_CLICK), C(a.name), _(!0);
|
|
7187
|
-
},
|
|
7187
|
+
}, w = () => {
|
|
7188
7188
|
i(z.ON_TRANSACTION_TAGS_TAG_DELETE_CLICK), g(!0);
|
|
7189
7189
|
};
|
|
7190
7190
|
return /* @__PURE__ */ l(
|
|
@@ -7208,7 +7208,7 @@ const $s = ({ transaction: e }) => {
|
|
|
7208
7208
|
{
|
|
7209
7209
|
"aria-label": `Delete ${a.name} tag`,
|
|
7210
7210
|
color: "secondary",
|
|
7211
|
-
onClick:
|
|
7211
|
+
onClick: w,
|
|
7212
7212
|
children: /* @__PURE__ */ t(ga, { color: "secondary" })
|
|
7213
7213
|
}
|
|
7214
7214
|
)
|
|
@@ -7651,7 +7651,7 @@ const $s = ({ transaction: e }) => {
|
|
|
7651
7651
|
loadAssociatedBeats: b,
|
|
7652
7652
|
setFilter: S,
|
|
7653
7653
|
tags: A,
|
|
7654
|
-
transactions:
|
|
7654
|
+
transactions: w,
|
|
7655
7655
|
updateTransaction: v
|
|
7656
7656
|
} = De(), { common: R, transactions: L } = I(), { userProfile: B } = kt(), { onEvent: D } = j(), {
|
|
7657
7657
|
displayedDateRange: G,
|
|
@@ -7683,7 +7683,7 @@ const $s = ({ transaction: e }) => {
|
|
|
7683
7683
|
const Me = h.useMemo(
|
|
7684
7684
|
() => o.filter((rt) => rt.is_manual),
|
|
7685
7685
|
[o]
|
|
7686
|
-
), Ge = Se ?
|
|
7686
|
+
), Ge = Se ? w.find((rt) => rt.guid === Se) : void 0, Bt = _ && !!d.payee && !!d.account_guid && !!d.category_guid, ut = (rt) => {
|
|
7687
7687
|
te(rt[0], rt[1]);
|
|
7688
7688
|
}, ta = (rt) => {
|
|
7689
7689
|
g(rt), S({
|
|
@@ -7691,7 +7691,7 @@ const $s = ({ transaction: e }) => {
|
|
|
7691
7691
|
searchTerm: rt
|
|
7692
7692
|
}), D(W.TRANSACTIONS_CLICK_SEARCH, { search_term: rt });
|
|
7693
7693
|
}, na = () => {
|
|
7694
|
-
Ps(
|
|
7694
|
+
Ps(w, A), D(W.TRANSACTIONS_CLICK_EXPORT);
|
|
7695
7695
|
}, mi = () => {
|
|
7696
7696
|
Me.length > 0 ? (C({
|
|
7697
7697
|
...Bs,
|
|
@@ -8219,39 +8219,39 @@ const $s = ({ transaction: e }) => {
|
|
|
8219
8219
|
)
|
|
8220
8220
|
] });
|
|
8221
8221
|
}
|
|
8222
|
-
), Hi = (e) => e.top_level_category_guid !==
|
|
8222
|
+
), Hi = (e) => e.top_level_category_guid !== N.INCOME && e.transaction_type === Wt.DEBIT, qh = (e, n) => Hi(e) ? e.payee?.toLowerCase().includes(n.toLowerCase()) || e.description.toLowerCase().includes(n.toLowerCase()) || e.feed_description.toLowerCase().includes(n.toLowerCase()) : !1, Ca = (e) => e.top_level_category_guid === N.INCOME || e.top_level_category_guid === N.TRANSFER && e.transaction_type === Wt.CREDIT, qs = (e, n) => Ca(e) ? e.payee?.toLowerCase().includes(n.toLowerCase()) || e.description?.toLowerCase().includes(n.toLowerCase()) || e.feed_description?.toLowerCase().includes(n.toLowerCase()) : !1, Qs = x(
|
|
8223
8223
|
({
|
|
8224
8224
|
isIncome: e = !1,
|
|
8225
8225
|
label: n,
|
|
8226
8226
|
onAddRecurringTransaction: a = () => null
|
|
8227
8227
|
}) => {
|
|
8228
|
-
const { recurring: i } = I(), { filter: o, setFilter: r, transactions: s } = De(), { addRepeatingTransaction: c } = Ze(), { user: d } = kt(), [_, u] = h.useState(!1), [g, m] = h.useState(""), [C, f] = h.useState(pe.EveryMonth), [E, b] = h.useState(1), [S, A] = h.useState(15),
|
|
8228
|
+
const { recurring: i } = I(), { filter: o, setFilter: r, transactions: s } = De(), { addRepeatingTransaction: c } = Ze(), { user: d } = kt(), [_, u] = h.useState(!1), [g, m] = h.useState(""), [C, f] = h.useState(pe.EveryMonth), [E, b] = h.useState(1), [S, A] = h.useState(15), w = h.useMemo(
|
|
8229
8229
|
() => s.find((B) => B.guid === g),
|
|
8230
8230
|
[g]
|
|
8231
8231
|
), v = () => {
|
|
8232
8232
|
u(!0), r(e ? { ...o, custom: Ca } : { ...o, custom: Hi });
|
|
8233
8233
|
}, R = async () => {
|
|
8234
|
-
if (!
|
|
8234
|
+
if (!w) {
|
|
8235
8235
|
L();
|
|
8236
8236
|
return;
|
|
8237
8237
|
}
|
|
8238
8238
|
a();
|
|
8239
|
-
const B = Gi(C, We(
|
|
8240
|
-
account_guid:
|
|
8241
|
-
amount:
|
|
8239
|
+
const B = Gi(C, We(w.date)), D = {
|
|
8240
|
+
account_guid: w.account_guid,
|
|
8241
|
+
amount: w.amount,
|
|
8242
8242
|
created_by: 0,
|
|
8243
8243
|
// User
|
|
8244
|
-
merchant_guid:
|
|
8245
|
-
description:
|
|
8244
|
+
merchant_guid: w.merchant_guid,
|
|
8245
|
+
description: w.payee || w.description || w.feed_description,
|
|
8246
8246
|
predicted_occurs_on: Ja(B, { representation: "date" }),
|
|
8247
8247
|
recurrence_day: E,
|
|
8248
8248
|
recurrence_type: C,
|
|
8249
8249
|
repeating_transaction_type: e ? tn.Income : tn.Bill,
|
|
8250
8250
|
second_recurrence_day: S,
|
|
8251
|
-
transaction_type:
|
|
8251
|
+
transaction_type: w.transaction_type,
|
|
8252
8252
|
user_guid: d.guid
|
|
8253
8253
|
};
|
|
8254
|
-
await c(D,
|
|
8254
|
+
await c(D, w), L();
|
|
8255
8255
|
}, L = () => {
|
|
8256
8256
|
m(""), u(!1);
|
|
8257
8257
|
};
|
|
@@ -8294,7 +8294,7 @@ const $s = ({ transaction: e }) => {
|
|
|
8294
8294
|
onClose: () => m(""),
|
|
8295
8295
|
onPrimaryAction: R,
|
|
8296
8296
|
title: e ? i.income_details : i.expense_details,
|
|
8297
|
-
children:
|
|
8297
|
+
children: w && /* @__PURE__ */ t(
|
|
8298
8298
|
Zs,
|
|
8299
8299
|
{
|
|
8300
8300
|
firstDay: E,
|
|
@@ -8303,7 +8303,7 @@ const $s = ({ transaction: e }) => {
|
|
|
8303
8303
|
onFrequencyChange: f,
|
|
8304
8304
|
onSecondDayChange: A,
|
|
8305
8305
|
secondDay: S,
|
|
8306
|
-
transaction:
|
|
8306
|
+
transaction: w
|
|
8307
8307
|
}
|
|
8308
8308
|
)
|
|
8309
8309
|
}
|
|
@@ -8741,7 +8741,7 @@ const $s = ({ transaction: e }) => {
|
|
|
8741
8741
|
i(W.RECURRING_TRANSACTIONS_CLICK_UPCOMING, {
|
|
8742
8742
|
transaction_guid: v.transaction?.guid
|
|
8743
8743
|
});
|
|
8744
|
-
},
|
|
8744
|
+
}, w = (v) => {
|
|
8745
8745
|
i(W.RECURRING_TRANSACTIONS_CLICK_PAID, {
|
|
8746
8746
|
transaction_guid: v.transaction?.guid
|
|
8747
8747
|
});
|
|
@@ -8800,7 +8800,7 @@ const $s = ({ transaction: e }) => {
|
|
|
8800
8800
|
E === 1 && /* @__PURE__ */ t(
|
|
8801
8801
|
ca,
|
|
8802
8802
|
{
|
|
8803
|
-
onRecurrenceClick:
|
|
8803
|
+
onRecurrenceClick: w,
|
|
8804
8804
|
recurrences: _
|
|
8805
8805
|
}
|
|
8806
8806
|
)
|
|
@@ -8811,7 +8811,7 @@ const $s = ({ transaction: e }) => {
|
|
|
8811
8811
|
/* @__PURE__ */ t(
|
|
8812
8812
|
ca,
|
|
8813
8813
|
{
|
|
8814
|
-
onRecurrenceClick:
|
|
8814
|
+
onRecurrenceClick: w,
|
|
8815
8815
|
recurrences: C || _,
|
|
8816
8816
|
title: m ? T(
|
|
8817
8817
|
e.day_transactions,
|
|
@@ -9956,7 +9956,7 @@ const mg = ({ recurrence: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
|
9956
9956
|
transform: rotate(360deg);
|
|
9957
9957
|
}
|
|
9958
9958
|
`, Dg = () => {
|
|
9959
|
-
const { addRepeatingTransaction: e, repeatingTransactions: n } = Ze(), { cashflow: a, common: i } = I(), { completeOnboarding: o } = io(), { isDirty: r } = Jn(), { isMobile: s } = Ce(), { isCopyLoaded: c, setDisplayedDate: d } = le(), { filter: _, setFilter: u, transactions: g } = De(), m = fe(), [C, f] = St(!0), [E, b] = h.useState(pe.EveryMonth), [S, A] = h.useState(1), [
|
|
9959
|
+
const { addRepeatingTransaction: e, repeatingTransactions: n } = Ze(), { cashflow: a, common: i } = I(), { completeOnboarding: o } = io(), { isDirty: r } = Jn(), { isMobile: s } = Ce(), { isCopyLoaded: c, setDisplayedDate: d } = le(), { filter: _, setFilter: u, transactions: g } = De(), m = fe(), [C, f] = St(!0), [E, b] = h.useState(pe.EveryMonth), [S, A] = h.useState(1), [w, v] = h.useState(15), [R, L] = St(!1), [B, D] = St(1), [G, k] = St([]), [U, oe] = St(""), me = h.useMemo(
|
|
9960
9960
|
() => g.find((Se) => Se.guid === U),
|
|
9961
9961
|
[U]
|
|
9962
9962
|
), te = !!n.filter(
|
|
@@ -10072,7 +10072,7 @@ const mg = ({ recurrence: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
|
10072
10072
|
onFirstDayChange: A,
|
|
10073
10073
|
onFrequencyChange: b,
|
|
10074
10074
|
onSecondDayChange: v,
|
|
10075
|
-
secondDay:
|
|
10075
|
+
secondDay: w,
|
|
10076
10076
|
transaction: me
|
|
10077
10077
|
}
|
|
10078
10078
|
),
|
|
@@ -10145,8 +10145,8 @@ const mg = ({ recurrence: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
|
10145
10145
|
}, [b]), h.useEffect(() => {
|
|
10146
10146
|
o(d);
|
|
10147
10147
|
}, [d]), h.useEffect(() => {
|
|
10148
|
-
const
|
|
10149
|
-
(R) => i.includes(R.guid) &&
|
|
10148
|
+
const w = d.map((R) => R.guid), v = a.filter(
|
|
10149
|
+
(R) => i.includes(R.guid) && w.includes(R.guid)
|
|
10150
10150
|
);
|
|
10151
10151
|
m(v), _({
|
|
10152
10152
|
dateRange: { start: wt(ue(), 90), end: xn() },
|
|
@@ -10736,7 +10736,7 @@ const dn = () => {
|
|
|
10736
10736
|
if (!h.useContext(Hn))
|
|
10737
10737
|
throw new Error("useCategoryUiStore() must be used within the GlobalDataContext");
|
|
10738
10738
|
return ve().uiStore;
|
|
10739
|
-
}, ui = (e) => e.top_level_category_guid ===
|
|
10739
|
+
}, ui = (e) => e.top_level_category_guid === N.INCOME || e.category_guid === N.INCOME, Fg = (e) => !ui(e) && !oc(e), ic = (e) => Uo.includes(e.top_level_category_guid) || Uo.includes(e.category_guid), oc = (e) => e.top_level_category_guid === N.TRANSFER || e.category_guid === N.TRANSFER, $g = (e) => !ui(e) && !ic(e) && !oc(e), Wg = (e) => e.filter((n) => n.category_guid === n.top_level_category_guid), bo = (e, n) => {
|
|
10740
10740
|
const a = [];
|
|
10741
10741
|
let i = et(Vt(/* @__PURE__ */ new Date(), 5));
|
|
10742
10742
|
const o = /* @__PURE__ */ new Date();
|
|
@@ -10757,7 +10757,7 @@ const dn = () => {
|
|
|
10757
10757
|
return bo(a);
|
|
10758
10758
|
}, zg = (e) => {
|
|
10759
10759
|
const n = [], a = e.filter(
|
|
10760
|
-
(r) => r.top_level_category_guid !==
|
|
10760
|
+
(r) => r.top_level_category_guid !== N.INCOME && r.top_level_category_guid !== N.TRANSFER && r.total > 0
|
|
10761
10761
|
);
|
|
10762
10762
|
let i = et(Vt(/* @__PURE__ */ new Date(), 5));
|
|
10763
10763
|
const o = Qe(/* @__PURE__ */ new Date());
|
|
@@ -11617,7 +11617,7 @@ const Ht = (e) => /* @__PURE__ */ t(p, { fontWeight: 600, variant: "Small", chil
|
|
|
11617
11617
|
id: S,
|
|
11618
11618
|
priority: Em(b)
|
|
11619
11619
|
})), [n]), f = (b) => {
|
|
11620
|
-
const
|
|
11620
|
+
const w = b.target.closest("[data-id]")?.getAttribute("data-id"), v = n[Number(w)];
|
|
11621
11621
|
i?.(v?.guid ?? "");
|
|
11622
11622
|
}, E = (b) => C.find((S) => S.guid === b)?.id;
|
|
11623
11623
|
return /* @__PURE__ */ t(
|
|
@@ -11815,7 +11815,7 @@ const Ht = (e) => /* @__PURE__ */ t(p, { fontWeight: 600, variant: "Small", chil
|
|
|
11815
11815
|
}
|
|
11816
11816
|
);
|
|
11817
11817
|
}), Rm = ({ onBackClick: e, sx: n }) => {
|
|
11818
|
-
const [a, i] = h.useState(!1), [o, r] = h.useState(!1), [s, c] = h.useState(!1), [d, _] = h.useState(""), { isDesktop: u, isMobile: g } = Ce(), { debts: m } = I(), { onEvent: C } = j(), { isCopyLoaded: f, isInitialized: E, setSelectedAccounts: b } = le(), { setSelectedAccount: S } = Gt(), { selectedDebtPriority: A, setSelectedDebtChartData:
|
|
11818
|
+
const [a, i] = h.useState(!1), [o, r] = h.useState(!1), [s, c] = h.useState(!1), [d, _] = h.useState(""), { isDesktop: u, isMobile: g } = Ce(), { debts: m } = I(), { onEvent: C } = j(), { isCopyLoaded: f, isInitialized: E, setSelectedAccounts: b } = le(), { setSelectedAccount: S } = Gt(), { selectedDebtPriority: A, setSelectedDebtChartData: w } = dn(), { visibleDebtAccounts: v } = ve(), { goalsLoaded: R, loadGoals: L, monthlyCashFlowProfile: B } = ot(), { debts: D } = oi(), G = h.useMemo(() => {
|
|
11819
11819
|
const he = B?.extra_payment ?? 0;
|
|
11820
11820
|
return Nm(D, A, he);
|
|
11821
11821
|
}, [D, A, B]);
|
|
@@ -11828,7 +11828,7 @@ const Ht = (e) => /* @__PURE__ */ t(p, { fontWeight: 600, variant: "Small", chil
|
|
|
11828
11828
|
}, [E]);
|
|
11829
11829
|
const k = (he) => _(he), U = () => {
|
|
11830
11830
|
const he = v.find((Oe) => Oe.guid === d), Re = G.find((Oe) => Oe.guid === d);
|
|
11831
|
-
he && S(he), Re &&
|
|
11831
|
+
he && S(he), Re && w(Re), i(!0);
|
|
11832
11832
|
}, oe = () => C(W.DEBTS_CLICK_FILTER), me = () => {
|
|
11833
11833
|
c(!0), C(W.DEBTS_CLICK_SNOWBALL_CTA);
|
|
11834
11834
|
}, te = () => {
|
|
@@ -12861,8 +12861,8 @@ const Pm = (e, n) => {
|
|
|
12861
12861
|
updateGoal: u
|
|
12862
12862
|
} = ot(), { user: g } = kt(), [m, C] = h.useState(!1), f = !c?.guid, E = c?.track_type === K.SAVINGS_TRACK && c.is_complete && !c.has_been_spent, b = h.useMemo(() => !c || !c.account_guid ? !1 : c.track_type === K.SAVINGS_TRACK ? !!c.name && !!c.amount : c.track_type === K.DEBT_TRACK ? !0 : c.track_type === K.RETIREMENT_TRACK ? !!c.name && !!c.amount && !!c.retirement_age && !!g.birthday : !0, [c]);
|
|
12863
12863
|
let S = a.delete_button, A = () => C(!0);
|
|
12864
|
-
f ? (A = () =>
|
|
12865
|
-
const
|
|
12864
|
+
f ? (A = () => w(), S = a.save_button) : E && (A = () => R(), S = n.mark_as_complete_button);
|
|
12865
|
+
const w = async () => {
|
|
12866
12866
|
if (c) {
|
|
12867
12867
|
const L = c.track_type;
|
|
12868
12868
|
L !== K.RETIREMENT_TRACK ? await i(c) : L === K.RETIREMENT_TRACK && await o({ ...c, target_amount: c.amount }), d(n.alert_goal_added), _(void 0), L && e?.(L);
|
|
@@ -12908,7 +12908,7 @@ const Pm = (e, n) => {
|
|
|
12908
12908
|
)
|
|
12909
12909
|
] });
|
|
12910
12910
|
}), hE = x(({ onBackClick: e, sx: n }) => {
|
|
12911
|
-
const { onEvent: a } = j(), { isMobile: i } = Ce(), { visibleAccounts: o } = ve(), { isCopyLoaded: r, isInitialized: s, setSelectedAccounts: c } = le(), { goals: d, common: _ } = I(), { alert: u, goals: g, goalsLoaded: m, loadGoals: C, monthlyCashFlowProfile: f, setAlert: E, retirmentGoals: b } = ot(), [S, A] = h.useState(0), [
|
|
12911
|
+
const { onEvent: a } = j(), { isMobile: i } = Ce(), { visibleAccounts: o } = ve(), { isCopyLoaded: r, isInitialized: s, setSelectedAccounts: c } = le(), { goals: d, common: _ } = I(), { alert: u, goals: g, goalsLoaded: m, loadGoals: C, monthlyCashFlowProfile: f, setAlert: E, retirmentGoals: b } = ot(), [S, A] = h.useState(0), [w, v] = h.useState(!1), R = f?.amount_allocated_for_savings_goals || 0, L = f?.amount_allocated_for_debt_goals || 0, B = f?.amount_allocated_for_retirement_goals || 0, D = r ? T(
|
|
12912
12912
|
i ? d.tab_subtitle_mobile : d.tab_subtitle,
|
|
12913
12913
|
H(R, "0,0")
|
|
12914
12914
|
) : "", G = r ? T(
|
|
@@ -13009,7 +13009,7 @@ const Pm = (e, n) => {
|
|
|
13009
13009
|
ce,
|
|
13010
13010
|
{
|
|
13011
13011
|
ariaLabelClose: _.close_aria,
|
|
13012
|
-
isOpen:
|
|
13012
|
+
isOpen: w,
|
|
13013
13013
|
onClose: () => v(!1),
|
|
13014
13014
|
title: d.add_goal_title,
|
|
13015
13015
|
children: /* @__PURE__ */ t(zm, { onClose: me })
|
|
@@ -14383,7 +14383,7 @@ const $p = ({ amount: e, copy: n, trendValue: a }) => {
|
|
|
14383
14383
|
selectedData: f,
|
|
14384
14384
|
setHoveredData: E,
|
|
14385
14385
|
setSelectedData: b
|
|
14386
|
-
} = Ds(), { isMobile: S } = Ce(), { onEvent: A } = j(), [
|
|
14386
|
+
} = Ds(), { isMobile: S } = Ce(), { onEvent: A } = j(), [w, v] = h.useState(!1), [R, L] = h.useState(6), [B, D] = h.useState(!1), [G, k] = h.useState(!1), [U, oe] = h.useState(!1), me = async () => {
|
|
14387
14387
|
await m(i), await g(R), v(!0);
|
|
14388
14388
|
};
|
|
14389
14389
|
h.useEffect(() => {
|
|
@@ -14442,7 +14442,7 @@ const $p = ({ amount: e, copy: n, trendValue: a }) => {
|
|
|
14442
14442
|
}
|
|
14443
14443
|
},
|
|
14444
14444
|
title: s.net_worth,
|
|
14445
|
-
children:
|
|
14445
|
+
children: w ? /* @__PURE__ */ l(Z, { children: [
|
|
14446
14446
|
C.length ? /* @__PURE__ */ l(Z, { children: [
|
|
14447
14447
|
f && /* @__PURE__ */ t(Op, { hoveredData: u, selectedData: f }),
|
|
14448
14448
|
/* @__PURE__ */ l(
|
|
@@ -15134,7 +15134,7 @@ const l1 = x(() => {
|
|
|
15134
15134
|
birthday: g.birthday,
|
|
15135
15135
|
postal_code: g.postal_code,
|
|
15136
15136
|
credit_score: g.credit_score
|
|
15137
|
-
}), [f, E] = h.useState(!1), [b, S] = h.useState(!1), A = h.useRef(null),
|
|
15137
|
+
}), [f, E] = h.useState(!1), [b, S] = h.useState(!1), A = h.useRef(null), w = m.email && !g.email_is_verified && !f, v = m.phone && !g.phone_is_verified && !f;
|
|
15138
15138
|
h.useEffect(() => {
|
|
15139
15139
|
if (n) {
|
|
15140
15140
|
const k = (U) => {
|
|
@@ -15207,7 +15207,7 @@ const l1 = x(() => {
|
|
|
15207
15207
|
}
|
|
15208
15208
|
),
|
|
15209
15209
|
/* @__PURE__ */ l(y, { direction: s ? "column" : "row", children: [
|
|
15210
|
-
_.display_email_edit_field_in_settings && /* @__PURE__ */ l(y, { sx: { mb:
|
|
15210
|
+
_.display_email_edit_field_in_settings && /* @__PURE__ */ l(y, { sx: { mb: w ? 20 : 44, mr: s ? 0 : 24 }, children: [
|
|
15211
15211
|
/* @__PURE__ */ t(
|
|
15212
15212
|
nt,
|
|
15213
15213
|
{
|
|
@@ -15216,7 +15216,7 @@ const l1 = x(() => {
|
|
|
15216
15216
|
onChange: (k) => G({ email: k.target.value })
|
|
15217
15217
|
}
|
|
15218
15218
|
),
|
|
15219
|
-
|
|
15219
|
+
w && /* @__PURE__ */ t(l1, {})
|
|
15220
15220
|
] }),
|
|
15221
15221
|
_.display_sms_edit_field_in_settings && /* @__PURE__ */ l(y, { sx: { mb: v ? 20 : 44 }, children: [
|
|
15222
15222
|
/* @__PURE__ */ t(
|
|
@@ -16060,30 +16060,25 @@ const l1 = x(() => {
|
|
|
16060
16060
|
const { settings: e, connect: n } = I(), {
|
|
16061
16061
|
insightsNotificationTypes: a,
|
|
16062
16062
|
userCommunicationsProfile: i,
|
|
16063
|
-
|
|
16064
|
-
|
|
16065
|
-
|
|
16066
|
-
|
|
16067
|
-
|
|
16068
|
-
|
|
16069
|
-
const d = h.useCallback(
|
|
16070
|
-
(_, u) => () => {
|
|
16071
|
-
r({
|
|
16072
|
-
..._,
|
|
16073
|
-
[u]: !_[u]
|
|
16063
|
+
updateInsightsNotificationProfile: o
|
|
16064
|
+
} = Rt(), [r, s] = h.useState(null), c = h.useCallback(
|
|
16065
|
+
(d, _) => () => {
|
|
16066
|
+
o({
|
|
16067
|
+
...d,
|
|
16068
|
+
[_]: !d[_]
|
|
16074
16069
|
});
|
|
16075
16070
|
},
|
|
16076
|
-
[
|
|
16071
|
+
[o]
|
|
16077
16072
|
);
|
|
16078
16073
|
return /* @__PURE__ */ l(y, { children: [
|
|
16079
16074
|
/* @__PURE__ */ t(dt, { mb: 14, children: e.notification_types_title }),
|
|
16080
|
-
a.map((
|
|
16075
|
+
a.map((d, _) => /* @__PURE__ */ l(
|
|
16081
16076
|
Xn,
|
|
16082
16077
|
{
|
|
16083
16078
|
disableGutters: !0,
|
|
16084
|
-
expanded:
|
|
16085
|
-
sx: (
|
|
16086
|
-
borderBottom: `1px solid ${
|
|
16079
|
+
expanded: _ === r,
|
|
16080
|
+
sx: (u) => ({
|
|
16081
|
+
borderBottom: `1px solid ${u.palette.border?.light}`,
|
|
16087
16082
|
my: 0,
|
|
16088
16083
|
boxShadow: "none",
|
|
16089
16084
|
"&:before": { opacity: 0 },
|
|
@@ -16095,15 +16090,15 @@ const l1 = x(() => {
|
|
|
16095
16090
|
/* @__PURE__ */ t(
|
|
16096
16091
|
qn,
|
|
16097
16092
|
{
|
|
16098
|
-
expandIcon: /* @__PURE__ */ t(O, { onClick: () =>
|
|
16099
|
-
sx: { height: 64, pr: 14
|
|
16093
|
+
expandIcon: /* @__PURE__ */ t(O, { onClick: () => s(_ === r ? null : _), children: /* @__PURE__ */ t(Ui, { sx: { color: "text.primary" } }) }),
|
|
16094
|
+
sx: { height: 64, pr: 14 },
|
|
16100
16095
|
children: /* @__PURE__ */ t(
|
|
16101
16096
|
on,
|
|
16102
16097
|
{
|
|
16103
|
-
isChecked:
|
|
16104
|
-
onToggle: d
|
|
16105
|
-
primaryText:
|
|
16106
|
-
secondaryText:
|
|
16098
|
+
isChecked: d.is_enabled,
|
|
16099
|
+
onToggle: c(d, "is_enabled"),
|
|
16100
|
+
primaryText: d.label,
|
|
16101
|
+
secondaryText: d.is_enabled ? d.deliveryMethodsLabel : n.connection_statuses[16]
|
|
16107
16102
|
}
|
|
16108
16103
|
)
|
|
16109
16104
|
}
|
|
@@ -16112,15 +16107,15 @@ const l1 = x(() => {
|
|
|
16112
16107
|
Zn,
|
|
16113
16108
|
{
|
|
16114
16109
|
sx: {
|
|
16115
|
-
borderTop: (
|
|
16110
|
+
borderTop: (u) => `1px solid ${u.palette.border?.light}`
|
|
16116
16111
|
},
|
|
16117
16112
|
children: /* @__PURE__ */ l(ae, { sx: { py: 10, bgcolor: "background.paper" }, children: [
|
|
16118
16113
|
/* @__PURE__ */ t(
|
|
16119
16114
|
on,
|
|
16120
16115
|
{
|
|
16121
|
-
isChecked: !i.opted_out_of_email_notifications &&
|
|
16116
|
+
isChecked: !i.opted_out_of_email_notifications && d.is_enabled && d.email_channel,
|
|
16122
16117
|
isDisabled: i.opted_out_of_email_notifications,
|
|
16123
|
-
onToggle: d
|
|
16118
|
+
onToggle: c(d, "email_channel"),
|
|
16124
16119
|
primaryText: e.delivery_method_email_label
|
|
16125
16120
|
}
|
|
16126
16121
|
),
|
|
@@ -16128,9 +16123,9 @@ const l1 = x(() => {
|
|
|
16128
16123
|
/* @__PURE__ */ t(
|
|
16129
16124
|
on,
|
|
16130
16125
|
{
|
|
16131
|
-
isChecked: !i.opted_out_of_sms_notifications &&
|
|
16126
|
+
isChecked: !i.opted_out_of_sms_notifications && d.is_enabled && d.sms_channel,
|
|
16132
16127
|
isDisabled: i.opted_out_of_sms_notifications,
|
|
16133
|
-
onToggle: d
|
|
16128
|
+
onToggle: c(d, "sms_channel"),
|
|
16134
16129
|
primaryText: e.delivery_method_sms_label
|
|
16135
16130
|
}
|
|
16136
16131
|
),
|
|
@@ -16138,9 +16133,9 @@ const l1 = x(() => {
|
|
|
16138
16133
|
/* @__PURE__ */ t(
|
|
16139
16134
|
on,
|
|
16140
16135
|
{
|
|
16141
|
-
isChecked: !i.opted_out_of_push_notifications &&
|
|
16136
|
+
isChecked: !i.opted_out_of_push_notifications && d.is_enabled && d.push_channel,
|
|
16142
16137
|
isDisabled: !0,
|
|
16143
|
-
onToggle: d
|
|
16138
|
+
onToggle: c(d, "push_channel"),
|
|
16144
16139
|
primaryText: e.delivery_method_push_label
|
|
16145
16140
|
}
|
|
16146
16141
|
)
|
|
@@ -16149,7 +16144,7 @@ const l1 = x(() => {
|
|
|
16149
16144
|
)
|
|
16150
16145
|
]
|
|
16151
16146
|
},
|
|
16152
|
-
|
|
16147
|
+
d.guid
|
|
16153
16148
|
))
|
|
16154
16149
|
] });
|
|
16155
16150
|
}), xo = x(
|
|
@@ -16164,41 +16159,43 @@ const l1 = x(() => {
|
|
|
16164
16159
|
budgetProfiles: s,
|
|
16165
16160
|
clientCommunicationProfile: c,
|
|
16166
16161
|
detailedNotificationProfiles: d,
|
|
16167
|
-
|
|
16168
|
-
|
|
16169
|
-
|
|
16162
|
+
insightsNotificationTypes: _,
|
|
16163
|
+
loadInsightsNotificationProfiles: u,
|
|
16164
|
+
loadNotificationProfiles: g,
|
|
16165
|
+
updateNotificationProfile: m
|
|
16166
|
+
} = Rt(), [C, f] = h.useState(void 0);
|
|
16170
16167
|
h.useEffect(() => {
|
|
16171
|
-
|
|
16168
|
+
g().finally(), u().finally();
|
|
16172
16169
|
}, []), h.useEffect(() => {
|
|
16173
|
-
|
|
16170
|
+
C && f(d.find((A) => A.guid === C.guid));
|
|
16174
16171
|
}, [r]);
|
|
16175
|
-
const
|
|
16176
|
-
await
|
|
16177
|
-
},
|
|
16178
|
-
const
|
|
16179
|
-
...
|
|
16180
|
-
is_enabled: !
|
|
16172
|
+
const E = async (A) => {
|
|
16173
|
+
await m(A);
|
|
16174
|
+
}, b = (A) => {
|
|
16175
|
+
const w = {
|
|
16176
|
+
...A,
|
|
16177
|
+
is_enabled: !A.is_enabled
|
|
16181
16178
|
};
|
|
16182
16179
|
if (n) {
|
|
16183
|
-
const
|
|
16184
|
-
|
|
16185
|
-
notificationType:
|
|
16180
|
+
const v = He[A.notification_type] || "Unknown";
|
|
16181
|
+
w.is_enabled ? n("opt_in_notification_insight", { notificationType: v }) : n("opt_out_notification_insight", {
|
|
16182
|
+
notificationType: v
|
|
16186
16183
|
});
|
|
16187
16184
|
}
|
|
16188
|
-
|
|
16189
|
-
},
|
|
16185
|
+
E(w);
|
|
16186
|
+
}, S = c.email_notifications_enabled || c.sms_notifications_enabled || c.push_notifications_enabled;
|
|
16190
16187
|
return /* @__PURE__ */ l(y, { sx: { px: o ? 24 : 0 }, children: [
|
|
16191
16188
|
e.includes(
|
|
16192
16189
|
"delivery"
|
|
16193
16190
|
/* Delivery */
|
|
16194
|
-
) &&
|
|
16191
|
+
) && S && /* @__PURE__ */ l(Z, { children: [
|
|
16195
16192
|
/* @__PURE__ */ t(A1, {}),
|
|
16196
16193
|
/* @__PURE__ */ t(P, { sx: { my: 24 } })
|
|
16197
16194
|
] }),
|
|
16198
16195
|
e.includes(
|
|
16199
16196
|
"insights"
|
|
16200
16197
|
/* Insights */
|
|
16201
|
-
) &&
|
|
16198
|
+
) && _.length > 0 && /* @__PURE__ */ l(y, { sx: { mt: S ? 0 : 24 }, children: [
|
|
16202
16199
|
/* @__PURE__ */ t(v1, {}),
|
|
16203
16200
|
/* @__PURE__ */ t(P, { sx: { mb: 24, mt: 0 } })
|
|
16204
16201
|
] }),
|
|
@@ -16207,17 +16204,17 @@ const l1 = x(() => {
|
|
|
16207
16204
|
/* Accounts */
|
|
16208
16205
|
) && /* @__PURE__ */ l(Z, { children: [
|
|
16209
16206
|
/* @__PURE__ */ t(dt, { mb: 24, children: i.accounts_title }),
|
|
16210
|
-
r.map((
|
|
16207
|
+
r.map((A) => /* @__PURE__ */ t(
|
|
16211
16208
|
Mi,
|
|
16212
16209
|
{
|
|
16213
|
-
isChecked:
|
|
16214
|
-
isDisabled: !
|
|
16215
|
-
onClick: () =>
|
|
16216
|
-
onToggle: () =>
|
|
16217
|
-
primaryText:
|
|
16218
|
-
secondaryText:
|
|
16210
|
+
isChecked: A.is_enabled,
|
|
16211
|
+
isDisabled: !A.is_enabled,
|
|
16212
|
+
onClick: () => f(A),
|
|
16213
|
+
onToggle: () => b(A),
|
|
16214
|
+
primaryText: A.label,
|
|
16215
|
+
secondaryText: A.is_enabled ? A.deliveryMethodsLabel : void 0
|
|
16219
16216
|
},
|
|
16220
|
-
|
|
16217
|
+
A.guid
|
|
16221
16218
|
)),
|
|
16222
16219
|
/* @__PURE__ */ t(P, { sx: { my: 24 } })
|
|
16223
16220
|
] }),
|
|
@@ -16226,27 +16223,27 @@ const l1 = x(() => {
|
|
|
16226
16223
|
/* Budgets */
|
|
16227
16224
|
) && /* @__PURE__ */ l(Z, { children: [
|
|
16228
16225
|
/* @__PURE__ */ t(dt, { mb: 24, children: i.budgets_title }),
|
|
16229
|
-
s.map((
|
|
16226
|
+
s.map((A) => /* @__PURE__ */ t(
|
|
16230
16227
|
Mi,
|
|
16231
16228
|
{
|
|
16232
|
-
isChecked:
|
|
16233
|
-
isDisabled: !
|
|
16234
|
-
onClick: () =>
|
|
16235
|
-
onToggle: () =>
|
|
16236
|
-
primaryText:
|
|
16237
|
-
secondaryText:
|
|
16229
|
+
isChecked: A.is_enabled,
|
|
16230
|
+
isDisabled: !A.is_enabled,
|
|
16231
|
+
onClick: () => f(A),
|
|
16232
|
+
onToggle: () => b(A),
|
|
16233
|
+
primaryText: A.label,
|
|
16234
|
+
secondaryText: A.is_enabled ? A.deliveryMethodsLabel : void 0
|
|
16238
16235
|
},
|
|
16239
|
-
|
|
16236
|
+
A.guid
|
|
16240
16237
|
))
|
|
16241
16238
|
] }),
|
|
16242
16239
|
/* @__PURE__ */ t(
|
|
16243
16240
|
ce,
|
|
16244
16241
|
{
|
|
16245
|
-
isOpen: !!
|
|
16246
|
-
onClose: () =>
|
|
16242
|
+
isOpen: !!C,
|
|
16243
|
+
onClose: () => f(void 0),
|
|
16247
16244
|
primaryText: a.save_button,
|
|
16248
|
-
title:
|
|
16249
|
-
children:
|
|
16245
|
+
title: C?.label || "",
|
|
16246
|
+
children: C && /* @__PURE__ */ t(x1, { onUpdateProfile: E, profile: C })
|
|
16250
16247
|
}
|
|
16251
16248
|
)
|
|
16252
16249
|
] });
|
|
@@ -16286,13 +16283,13 @@ const l1 = x(() => {
|
|
|
16286
16283
|
/* @__PURE__ */ t(y, { sx: { flexDirection: { xs: "column", md: "row" }, gap: 12 }, children: [0, 1].map((u) => {
|
|
16287
16284
|
const g = u === 0 ? 0 : _, m = u === 0 ? _ : a.length, C = a.slice(g, m);
|
|
16288
16285
|
return /* @__PURE__ */ t(y, { sx: { flex: 1, gap: 12, maxWidth: { md: "calc(50% - 6px)" } }, children: C.map(({ guid: f, icon: E, topics: b, title: S }, A) => {
|
|
16289
|
-
const
|
|
16286
|
+
const w = A + g;
|
|
16290
16287
|
return /* @__PURE__ */ l(
|
|
16291
16288
|
Xn,
|
|
16292
16289
|
{
|
|
16293
16290
|
disableGutters: !0,
|
|
16294
|
-
expanded:
|
|
16295
|
-
onChange: (v, R) => d(R ?
|
|
16291
|
+
expanded: w === c,
|
|
16292
|
+
onChange: (v, R) => d(R ? w : null),
|
|
16296
16293
|
sx: (v) => ({
|
|
16297
16294
|
border: `1px solid ${v.palette.border?.light}`,
|
|
16298
16295
|
borderRadius: "8px !important",
|
|
@@ -18979,9 +18976,9 @@ const l1 = x(() => {
|
|
|
18979
18976
|
onPrimaryAction: () => {
|
|
18980
18977
|
const E = {};
|
|
18981
18978
|
let b = !0;
|
|
18982
|
-
g.forEach(({ label: S, name: A, required:
|
|
18979
|
+
g.forEach(({ label: S, name: A, required: w }) => {
|
|
18983
18980
|
const v = _[A];
|
|
18984
|
-
|
|
18981
|
+
w && !v && (E[A] = `${S} ${e.request_support_required_message}`, b = !1), (A === "institutionWebsite" || A === "institutionLoginPage") && v && !/(.+)\.(.{2,})/g.test(v) && (E[A] = e.request_support_valid_url_message, b = !1);
|
|
18985
18982
|
}), d(E), b && (i(_), u(Ti));
|
|
18986
18983
|
},
|
|
18987
18984
|
secondaryColor: "primary",
|
|
@@ -19206,7 +19203,7 @@ const l1 = x(() => {
|
|
|
19206
19203
|
})), A = Object.keys(e.popular_topics_list).map((D, G) => ({
|
|
19207
19204
|
name: e.popular_topics_list[D],
|
|
19208
19205
|
type: ip[G].type
|
|
19209
|
-
})),
|
|
19206
|
+
})), w = () => {
|
|
19210
19207
|
u(""), b({ isOpen: !1, topic: "", type: void 0 });
|
|
19211
19208
|
}, v = (D) => {
|
|
19212
19209
|
c.email && o({
|
|
@@ -19217,7 +19214,7 @@ const l1 = x(() => {
|
|
|
19217
19214
|
}, R = (D, G) => {
|
|
19218
19215
|
G === "other" ? f(!0) : b({ isOpen: !0, topic: D, type: G });
|
|
19219
19216
|
}, L = () => {
|
|
19220
|
-
s(""), m(!1), f(!1),
|
|
19217
|
+
s(""), m(!1), f(!1), w();
|
|
19221
19218
|
}, B = (D) => {
|
|
19222
19219
|
if (!c.email) {
|
|
19223
19220
|
s(e.request_support_email_not_exists_message, "error");
|
|
@@ -19317,7 +19314,7 @@ const l1 = x(() => {
|
|
|
19317
19314
|
onClick: (D) => {
|
|
19318
19315
|
u(D), E.type === "internal" && m(!0);
|
|
19319
19316
|
},
|
|
19320
|
-
onClose:
|
|
19317
|
+
onClose: w,
|
|
19321
19318
|
topic: E.topic
|
|
19322
19319
|
}
|
|
19323
19320
|
),
|
|
@@ -19340,7 +19337,7 @@ const l1 = x(() => {
|
|
|
19340
19337
|
institution: _,
|
|
19341
19338
|
isOpen: !!_ && E.type === "external",
|
|
19342
19339
|
onClose: () => u(""),
|
|
19343
|
-
popularTopicsDrawerOnClose:
|
|
19340
|
+
popularTopicsDrawerOnClose: w,
|
|
19344
19341
|
title: E.topic
|
|
19345
19342
|
}
|
|
19346
19343
|
)
|
|
@@ -20443,11 +20440,11 @@ const Ai = ({
|
|
|
20443
20440
|
account_type: b.account_type
|
|
20444
20441
|
});
|
|
20445
20442
|
}, E = (b) => {
|
|
20446
|
-
const S = b === "hidden" ? u : g, A = b === "hidden" ? m : C,
|
|
20443
|
+
const S = b === "hidden" ? u : g, A = b === "hidden" ? m : C, w = b === "hidden" ? a.account_hidden : a.account_closed;
|
|
20447
20444
|
return /* @__PURE__ */ t(O, { children: /* @__PURE__ */ t(
|
|
20448
20445
|
ae,
|
|
20449
20446
|
{
|
|
20450
|
-
"aria-label":
|
|
20447
|
+
"aria-label": w,
|
|
20451
20448
|
subheader: /* @__PURE__ */ t(Lt, { component: "h2", sx: { backgroundColor: "transparent", px: 24 }, children: /* @__PURE__ */ l(
|
|
20452
20449
|
we,
|
|
20453
20450
|
{
|
|
@@ -20455,7 +20452,7 @@ const Ai = ({
|
|
|
20455
20452
|
direction: "row",
|
|
20456
20453
|
sx: { justifyContent: "space-between", color: "grey.700" },
|
|
20457
20454
|
children: [
|
|
20458
|
-
/* @__PURE__ */ t(p, { bold: !0, variant: "Body", children:
|
|
20455
|
+
/* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: w }),
|
|
20459
20456
|
/* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: H(A, "0,0.00") })
|
|
20460
20457
|
]
|
|
20461
20458
|
}
|
|
@@ -20496,9 +20493,9 @@ const Ai = ({
|
|
|
20496
20493
|
return /* @__PURE__ */ l(O, { sx: { pt: 24 }, children: [
|
|
20497
20494
|
d.map((b) => {
|
|
20498
20495
|
const S = i.filter(
|
|
20499
|
-
(
|
|
20496
|
+
(w) => w.account_type === b && !w.is_closed && !w.is_hidden
|
|
20500
20497
|
), A = S.reduce(
|
|
20501
|
-
(
|
|
20498
|
+
(w, v) => (v.available_balance || v.balance || 0) + w,
|
|
20502
20499
|
0
|
|
20503
20500
|
);
|
|
20504
20501
|
return /* @__PURE__ */ t(
|
|
@@ -20517,14 +20514,14 @@ const Ai = ({
|
|
|
20517
20514
|
]
|
|
20518
20515
|
}
|
|
20519
20516
|
) }),
|
|
20520
|
-
children: /* @__PURE__ */ t(we, { children: S.map((
|
|
20521
|
-
const v = i.indexOf(
|
|
20517
|
+
children: /* @__PURE__ */ t(we, { children: S.map((w) => {
|
|
20518
|
+
const v = i.indexOf(w) === i.length - 1, R = S.indexOf(w) === S.length - 1;
|
|
20522
20519
|
return /* @__PURE__ */ l(h.Fragment, { children: [
|
|
20523
20520
|
/* @__PURE__ */ t(
|
|
20524
20521
|
fa,
|
|
20525
20522
|
{
|
|
20526
|
-
account:
|
|
20527
|
-
onRowClick: () => f(
|
|
20523
|
+
account: w,
|
|
20524
|
+
onRowClick: () => f(w),
|
|
20528
20525
|
shouldShowConnectionStatus: !0
|
|
20529
20526
|
}
|
|
20530
20527
|
),
|
|
@@ -20537,7 +20534,7 @@ const Ai = ({
|
|
|
20537
20534
|
}
|
|
20538
20535
|
}
|
|
20539
20536
|
)
|
|
20540
|
-
] },
|
|
20537
|
+
] }, w.guid);
|
|
20541
20538
|
}) })
|
|
20542
20539
|
},
|
|
20543
20540
|
b
|
|
@@ -21426,7 +21423,7 @@ const kC = () => {
|
|
|
21426
21423
|
e("survey dismissed", {
|
|
21427
21424
|
$survey_id: a
|
|
21428
21425
|
}), u(), S(!1);
|
|
21429
|
-
},
|
|
21426
|
+
}, w = () => {
|
|
21430
21427
|
r();
|
|
21431
21428
|
}, v = () => {
|
|
21432
21429
|
e("survey sent", _), u(), S(!0);
|
|
@@ -21464,7 +21461,7 @@ const kC = () => {
|
|
|
21464
21461
|
J,
|
|
21465
21462
|
{
|
|
21466
21463
|
disabled: !o && !d,
|
|
21467
|
-
onClick: o ? v :
|
|
21464
|
+
onClick: o ? v : w,
|
|
21468
21465
|
sx: {
|
|
21469
21466
|
borderColor: n.palette.border.light,
|
|
21470
21467
|
"&:hover": {
|
|
@@ -22025,7 +22022,7 @@ const JC = ({
|
|
|
22025
22022
|
const { budgets: a, common: i } = I(), { setExpandedGuid: o, setOnSelect: r } = ln(), { addBudget: s } = _t(), [c, d] = h.useState(!1), [_, u] = h.useState(!1), [g, m] = h.useState(""), [C, f] = h.useState(void 0);
|
|
22026
22023
|
h.useEffect(() => {
|
|
22027
22024
|
r((S) => {
|
|
22028
|
-
const A = e.subCategories.find((
|
|
22025
|
+
const A = e.subCategories.find((w) => w.guid === S);
|
|
22029
22026
|
A && (f(A), m(`${A.currentAmount === 0 ? "" : A.currentAmount}`), u(!0));
|
|
22030
22027
|
});
|
|
22031
22028
|
}, []);
|
|
@@ -22087,8 +22084,8 @@ const JC = ({
|
|
|
22087
22084
|
amount: Number(E)
|
|
22088
22085
|
});
|
|
22089
22086
|
}, A = async () => {
|
|
22090
|
-
s && await r(s.guid), f(!1),
|
|
22091
|
-
},
|
|
22087
|
+
s && await r(s.guid), f(!1), w();
|
|
22088
|
+
}, w = () => {
|
|
22092
22089
|
u({
|
|
22093
22090
|
..._,
|
|
22094
22091
|
custom: (v) => v.category_guid === e.category_guid || v.top_level_category_guid === e.category_guid
|
|
@@ -22107,7 +22104,7 @@ const JC = ({
|
|
|
22107
22104
|
{
|
|
22108
22105
|
ariaLabelClose: o.close_aria,
|
|
22109
22106
|
isOpen: !!s,
|
|
22110
|
-
onClose:
|
|
22107
|
+
onClose: w,
|
|
22111
22108
|
onPrimaryAction: () => m(!0),
|
|
22112
22109
|
onSecondaryAction: () => f(!0),
|
|
22113
22110
|
primaryText: i.details_edit_button,
|
|
@@ -22222,7 +22219,7 @@ const JC = ({
|
|
|
22222
22219
|
custom: (L) => L.category_guid === r.category_guid || L.top_level_category_guid === r.category_guid
|
|
22223
22220
|
}));
|
|
22224
22221
|
}, [r]);
|
|
22225
|
-
const
|
|
22222
|
+
const w = async () => {
|
|
22226
22223
|
r && (await _({
|
|
22227
22224
|
...r,
|
|
22228
22225
|
amount: Number(S),
|
|
@@ -22259,7 +22256,7 @@ const JC = ({
|
|
|
22259
22256
|
disablePrimaryButton: Number(S) <= 0,
|
|
22260
22257
|
isOpen: C,
|
|
22261
22258
|
onClose: () => f(!1),
|
|
22262
|
-
onPrimaryAction:
|
|
22259
|
+
onPrimaryAction: w,
|
|
22263
22260
|
primaryText: n.edit_save_button,
|
|
22264
22261
|
children: /* @__PURE__ */ t(
|
|
22265
22262
|
hi,
|
|
@@ -22330,8 +22327,8 @@ const JC = ({
|
|
|
22330
22327
|
] });
|
|
22331
22328
|
}), p0 = x(() => {
|
|
22332
22329
|
const e = fe(), { onEvent: n } = j(), { visibleAccounts: a } = ve(), { budgets: i, common: o, recurring: r } = I(), { incomeCategories: s, spendCategories: c } = Ve(), { detailedBudgets: d, totalBudgeted: _ } = _t(), { projectedIncome: u } = Ze(), { setFilter: g } = De(), [m, C] = h.useState(!1), [f, E] = h.useMemo(() => {
|
|
22333
|
-
const
|
|
22334
|
-
let v =
|
|
22330
|
+
const w = c.reduce((B, D) => B + D.totalAmount, 0);
|
|
22331
|
+
let v = w / _;
|
|
22335
22332
|
v > 1 && (v = 1);
|
|
22336
22333
|
let R = e.palette.success.main;
|
|
22337
22334
|
v > 0.8 && v < 1 ? R = e.palette.warning.main : v >= 1 && (R = e.palette.error.main);
|
|
@@ -22341,12 +22338,12 @@ const JC = ({
|
|
|
22341
22338
|
percentage: `${v}`
|
|
22342
22339
|
}
|
|
22343
22340
|
];
|
|
22344
|
-
return [
|
|
22341
|
+
return [w, L];
|
|
22345
22342
|
}, [d, c]), [b, S] = h.useMemo(() => {
|
|
22346
|
-
const
|
|
22343
|
+
const w = Math.abs(
|
|
22347
22344
|
s.reduce((L, B) => L + B.totalAmount, 0)
|
|
22348
22345
|
);
|
|
22349
|
-
let v =
|
|
22346
|
+
let v = w / u;
|
|
22350
22347
|
v > 1 && (v = 1);
|
|
22351
22348
|
const R = [
|
|
22352
22349
|
{
|
|
@@ -22354,10 +22351,10 @@ const JC = ({
|
|
|
22354
22351
|
percentage: `${v}`
|
|
22355
22352
|
}
|
|
22356
22353
|
];
|
|
22357
|
-
return [
|
|
22354
|
+
return [w, R];
|
|
22358
22355
|
}, [s, u]), A = () => {
|
|
22359
22356
|
g({
|
|
22360
|
-
accounts: a.map((
|
|
22357
|
+
accounts: a.map((w) => w.guid),
|
|
22361
22358
|
dateRange: {
|
|
22362
22359
|
start: wt(/* @__PURE__ */ new Date(), 90),
|
|
22363
22360
|
end: /* @__PURE__ */ new Date()
|
|
@@ -22420,7 +22417,7 @@ const JC = ({
|
|
|
22420
22417
|
setDateRange: b,
|
|
22421
22418
|
setAlert: S,
|
|
22422
22419
|
setTheme: A,
|
|
22423
|
-
budgets:
|
|
22420
|
+
budgets: w
|
|
22424
22421
|
} = _t(), { loadRepeatingTransactions: v } = Ze(), { reloadCategoryTotals: R } = Ve(), { isSmallTablet: L, isMobile: B, isSmallMobile: D } = Ce(), G = L || B || D, [k, U] = h.useState(!1);
|
|
22425
22422
|
h.useEffect(() => {
|
|
22426
22423
|
A(a), g(o), u(C.start, C.end), i(W.BUDGETS_VIEW);
|
|
@@ -22470,11 +22467,11 @@ const JC = ({
|
|
|
22470
22467
|
createBudgetOnClick: te,
|
|
22471
22468
|
height: G ? 450 : 800,
|
|
22472
22469
|
isDraggable: !0,
|
|
22473
|
-
shouldShowZeroState:
|
|
22470
|
+
shouldShowZeroState: w.length === 0,
|
|
22474
22471
|
unavailableWidth: G ? 0 : Ur
|
|
22475
22472
|
}
|
|
22476
22473
|
) }),
|
|
22477
|
-
|
|
22474
|
+
w.length !== 0 && /* @__PURE__ */ l(
|
|
22478
22475
|
y,
|
|
22479
22476
|
{
|
|
22480
22477
|
gap: 24,
|
|
@@ -22806,10 +22803,10 @@ const S0 = ({ widgets: e, isLoading: n }) => {
|
|
|
22806
22803
|
), m = u + d;
|
|
22807
22804
|
A0.forEach((f, E) => {
|
|
22808
22805
|
const b = c.filter(
|
|
22809
|
-
(
|
|
22806
|
+
(w) => !!w[f.name]
|
|
22810
22807
|
);
|
|
22811
22808
|
let S = b.reduce(
|
|
22812
|
-
(
|
|
22809
|
+
(w, v) => w + Pa(v) * v[f.name] / 100,
|
|
22813
22810
|
0
|
|
22814
22811
|
);
|
|
22815
22812
|
const A = x0(
|
|
@@ -22819,13 +22816,13 @@ const S0 = ({ widgets: e, isLoading: n }) => {
|
|
|
22819
22816
|
);
|
|
22820
22817
|
if (f.name === "allocations_cash" && d > 0) {
|
|
22821
22818
|
S += d;
|
|
22822
|
-
const
|
|
22819
|
+
const w = {
|
|
22823
22820
|
displayName: n.cash_balance_display_name,
|
|
22824
22821
|
name: "allocations_name",
|
|
22825
22822
|
value: d,
|
|
22826
22823
|
percentage: d / m
|
|
22827
22824
|
};
|
|
22828
|
-
A.push(
|
|
22825
|
+
A.push(w);
|
|
22829
22826
|
}
|
|
22830
22827
|
S > 0 && (o.push({
|
|
22831
22828
|
name: f.name,
|
|
@@ -23284,15 +23281,15 @@ const S0 = ({ widgets: e, isLoading: n }) => {
|
|
|
23284
23281
|
}
|
|
23285
23282
|
),
|
|
23286
23283
|
n.map((C, f, E) => /* @__PURE__ */ t(y, { sx: { flexDirection: "row", gap: 4 }, children: C.map((b, S) => {
|
|
23287
|
-
const A = f === 0,
|
|
23284
|
+
const A = f === 0, w = f === E.length - 1, v = S === 0, R = S === C.length - 1, L = Number(b.replace("%", "")) >= 25;
|
|
23288
23285
|
let B = "grey.200", D = "grey.900";
|
|
23289
23286
|
return d ? (B = L ? "grey.200" : "grey.700", D = L ? "grey.900" : "common.white") : (B = L ? "grey.700" : "grey.200", D = L ? "common.white" : "grey.900"), /* @__PURE__ */ t(
|
|
23290
23287
|
y,
|
|
23291
23288
|
{
|
|
23292
23289
|
sx: {
|
|
23293
23290
|
...{
|
|
23294
|
-
borderBottomLeftRadius:
|
|
23295
|
-
borderBottomRightRadius:
|
|
23291
|
+
borderBottomLeftRadius: w && v ? 4 : 0,
|
|
23292
|
+
borderBottomRightRadius: w && R ? 4 : 0,
|
|
23296
23293
|
borderTopLeftRadius: A && v ? 4 : 0,
|
|
23297
23294
|
borderTopRightRadius: A && R ? 4 : 0
|
|
23298
23295
|
},
|
|
@@ -24261,7 +24258,7 @@ const S0 = ({ widgets: e, isLoading: n }) => {
|
|
|
24261
24258
|
W.INVESTMENT_WIDGET_DETAILS_CLICK,
|
|
24262
24259
|
W.INVESTMENT_WIDGET_ALLOCATION_CLICK,
|
|
24263
24260
|
W.INVESTMENT_WIDGET_ANALYSIS_CLICK
|
|
24264
|
-
], A = o.length === 0 && r.length === 0,
|
|
24261
|
+
], A = o.length === 0 && r.length === 0, w = [
|
|
24265
24262
|
d.tab_overview_title,
|
|
24266
24263
|
d.tab_allocation_title,
|
|
24267
24264
|
d.tab_analysis_title
|
|
@@ -24286,7 +24283,7 @@ const S0 = ({ widgets: e, isLoading: n }) => {
|
|
|
24286
24283
|
textColor: "primary",
|
|
24287
24284
|
value: A ? -1 : C,
|
|
24288
24285
|
variant: "fullWidth",
|
|
24289
|
-
children:
|
|
24286
|
+
children: w.map((v) => /* @__PURE__ */ t(Je, { disabled: A, label: /* @__PURE__ */ t(W0, { title: v }) }, v))
|
|
24290
24287
|
}
|
|
24291
24288
|
),
|
|
24292
24289
|
A ? /* @__PURE__ */ t(
|
|
@@ -24572,7 +24569,7 @@ const va = h.createContext(null), X0 = ({
|
|
|
24572
24569
|
variant: f,
|
|
24573
24570
|
widthOverrides: E
|
|
24574
24571
|
}, b) {
|
|
24575
|
-
const [S, A] = h.useState(2), [
|
|
24572
|
+
const [S, A] = h.useState(2), [w, v] = h.useState(!1);
|
|
24576
24573
|
h.useEffect(() => {
|
|
24577
24574
|
E && E <= 325 && A(3);
|
|
24578
24575
|
}, [E]);
|
|
@@ -24621,7 +24618,7 @@ const va = h.createContext(null), X0 = ({
|
|
|
24621
24618
|
role: "button",
|
|
24622
24619
|
style: {
|
|
24623
24620
|
borderRadius: "8px",
|
|
24624
|
-
border:
|
|
24621
|
+
border: w ? "1px solid rgba(82, 138, 224, 0.8)" : void 0
|
|
24625
24622
|
},
|
|
24626
24623
|
tabIndex: c ? 0 : -1,
|
|
24627
24624
|
children: /* @__PURE__ */ t(
|
|
@@ -24686,7 +24683,7 @@ const va = h.createContext(null), X0 = ({
|
|
|
24686
24683
|
);
|
|
24687
24684
|
}
|
|
24688
24685
|
), Z0 = ({ beat: e }) => {
|
|
24689
|
-
const [n, a] = St(
|
|
24686
|
+
const [n, a] = St(N.UNCATEGORIZED);
|
|
24690
24687
|
return Mn(() => {
|
|
24691
24688
|
e.primary_category_guid ? a(e.primary_category_guid) : e.category_guids?.length && a(e.category_guids[0]);
|
|
24692
24689
|
}, []), /* @__PURE__ */ t(Mt, { categoryGuid: n, size: 16, sx: { minWidth: 16 } });
|
|
@@ -25605,7 +25602,7 @@ const va = h.createContext(null), X0 = ({
|
|
|
25605
25602
|
position: s
|
|
25606
25603
|
});
|
|
25607
25604
|
}, [a, s, f]);
|
|
25608
|
-
const
|
|
25605
|
+
const w = () => {
|
|
25609
25606
|
if (d && d(a), b(Nc(a.template)), a.template === "MarketingOffer") {
|
|
25610
25607
|
const v = a;
|
|
25611
25608
|
_?.capture("clicked_messaging_insight", {
|
|
@@ -25639,7 +25636,7 @@ const va = h.createContext(null), X0 = ({
|
|
|
25639
25636
|
}
|
|
25640
25637
|
),
|
|
25641
25638
|
isActiveCard: c,
|
|
25642
|
-
onCardClick:
|
|
25639
|
+
onCardClick: w,
|
|
25643
25640
|
posthog: _,
|
|
25644
25641
|
ref: C,
|
|
25645
25642
|
showCTAColocatedWithText: o,
|
|
@@ -25735,7 +25732,7 @@ const va = h.createContext(null), X0 = ({
|
|
|
25735
25732
|
variant: _,
|
|
25736
25733
|
widthOverrides: u
|
|
25737
25734
|
}) => {
|
|
25738
|
-
const g = uf(i, d, u), m = h.useRef(null), [C, f] = h.useState(0), [E, b] = h.useState(null), [S, A] = h.useState(null), { carouselCopy:
|
|
25735
|
+
const g = uf(i, d, u), m = h.useRef(null), [C, f] = h.useState(0), [E, b] = h.useState(null), [S, A] = h.useState(null), { carouselCopy: w } = Rn(), { onEvent: v } = wa(), R = () => {
|
|
25739
25736
|
v($t.ON_CAROUSEL_FORWARD_CLICK), m.current && m.current.scrollTo({
|
|
25740
25737
|
left: (
|
|
25741
25738
|
// Adds the flex gap to the carousel ref's width
|
|
@@ -25771,7 +25768,7 @@ const va = h.createContext(null), X0 = ({
|
|
|
25771
25768
|
return /* @__PURE__ */ l(
|
|
25772
25769
|
"div",
|
|
25773
25770
|
{
|
|
25774
|
-
"aria-label":
|
|
25771
|
+
"aria-label": w.carousel_title,
|
|
25775
25772
|
"aria-roledescription": "carousel",
|
|
25776
25773
|
className: g,
|
|
25777
25774
|
role: "group/region",
|
|
@@ -25788,7 +25785,7 @@ const va = h.createContext(null), X0 = ({
|
|
|
25788
25785
|
children: [
|
|
25789
25786
|
e.map((te, he) => {
|
|
25790
25787
|
const Re = he + 1, Oe = e.length + 1, Se = T(
|
|
25791
|
-
|
|
25788
|
+
w.card_position_in_carousel_aria,
|
|
25792
25789
|
Re.toString(),
|
|
25793
25790
|
Oe.toString()
|
|
25794
25791
|
), Le = te.micro_title && te.micro_title.length > 0, At = te.micro_description && te.micro_description.length > 0, Q = Le ? te.micro_title : te.title, ee = At ? te.micro_description : te.description;
|
|
@@ -26079,7 +26076,7 @@ const va = h.createContext(null), X0 = ({
|
|
|
26079
26076
|
token: b = "",
|
|
26080
26077
|
useDarkMode: S,
|
|
26081
26078
|
userHasFullInsightFeedBeats: A,
|
|
26082
|
-
variant:
|
|
26079
|
+
variant: w,
|
|
26083
26080
|
widthOverrides: v
|
|
26084
26081
|
}) => {
|
|
26085
26082
|
const R = at(), [L, B] = St("STANDARD"), [D, G] = St(!1), k = Qd([d], _n), U = Jd([_], _n);
|
|
@@ -26102,7 +26099,7 @@ const va = h.createContext(null), X0 = ({
|
|
|
26102
26099
|
widthOverrides: v
|
|
26103
26100
|
}, me = {
|
|
26104
26101
|
carouselSize: L,
|
|
26105
|
-
variant:
|
|
26102
|
+
variant: w,
|
|
26106
26103
|
...oe
|
|
26107
26104
|
};
|
|
26108
26105
|
return (
|
|
@@ -26126,7 +26123,7 @@ const va = h.createContext(null), X0 = ({
|
|
|
26126
26123
|
beats: n,
|
|
26127
26124
|
clientColorScheme: a,
|
|
26128
26125
|
showCarouselControls: m,
|
|
26129
|
-
variant: g ?
|
|
26126
|
+
variant: g ? w : void 0,
|
|
26130
26127
|
...oe
|
|
26131
26128
|
}
|
|
26132
26129
|
),
|
|
@@ -26200,7 +26197,7 @@ const va = h.createContext(null), X0 = ({
|
|
|
26200
26197
|
}
|
|
26201
26198
|
return a;
|
|
26202
26199
|
}, []), Hc = (e, n) => {
|
|
26203
|
-
const a = yf(e, n), i = a.filter((d) => d.guid !==
|
|
26200
|
+
const a = yf(e, n), i = a.filter((d) => d.guid !== N.INCOME && d.guid !== N.TRANSFER).sort((d, _) => _.amount - d.amount), o = i.reduce(
|
|
26204
26201
|
(d, _) => d + _.amount,
|
|
26205
26202
|
0
|
|
26206
26203
|
), r = i.length > xi ? xi : i.length, s = i.slice(0, r), c = s.map((d) => ({
|
|
@@ -26238,7 +26235,7 @@ const va = h.createContext(null), X0 = ({
|
|
|
26238
26235
|
};
|
|
26239
26236
|
}, Fc = (e, n, a) => {
|
|
26240
26237
|
const i = e.filter(
|
|
26241
|
-
(c) => c.parent_guid ===
|
|
26238
|
+
(c) => c.parent_guid === N.INCOME
|
|
26242
26239
|
), o = n.filter((c) => i.some((d) => d.guid === c.category_guid)).sort((c, d) => c.total - d.total).map((c, d) => ({
|
|
26243
26240
|
guid: c.category_guid,
|
|
26244
26241
|
name: e.find((_) => _.guid === c.category_guid)?.name,
|
|
@@ -26291,7 +26288,7 @@ const va = h.createContext(null), X0 = ({
|
|
|
26291
26288
|
/* @__PURE__ */ t(
|
|
26292
26289
|
Mt,
|
|
26293
26290
|
{
|
|
26294
|
-
categoryGuid: n ?
|
|
26291
|
+
categoryGuid: n ? N.INCOME : g.guid,
|
|
26295
26292
|
size: c === "mini" ? 24 : f,
|
|
26296
26293
|
variant: Jr.Transparent
|
|
26297
26294
|
}
|
|
@@ -26588,7 +26585,7 @@ const va = h.createContext(null), X0 = ({
|
|
|
26588
26585
|
const A = h.useMemo(
|
|
26589
26586
|
() => Hc(n, a),
|
|
26590
26587
|
[n, a]
|
|
26591
|
-
),
|
|
26588
|
+
), w = h.useMemo(
|
|
26592
26589
|
() => Fc(n, a, wf(e)),
|
|
26593
26590
|
[n, a]
|
|
26594
26591
|
), v = h.useMemo(
|
|
@@ -26613,12 +26610,12 @@ const va = h.createContext(null), X0 = ({
|
|
|
26613
26610
|
} else
|
|
26614
26611
|
d({
|
|
26615
26612
|
...G,
|
|
26616
|
-
custom: (k) => D ? k.top_level_category_guid === D : k.top_level_category_guid !==
|
|
26613
|
+
custom: (k) => D ? k.top_level_category_guid === D : k.top_level_category_guid !== N.INCOME
|
|
26617
26614
|
});
|
|
26618
26615
|
else
|
|
26619
26616
|
d({
|
|
26620
26617
|
...G,
|
|
26621
|
-
custom: (k) => D ? k.category_guid === D : k.top_level_category_guid ===
|
|
26618
|
+
custom: (k) => D ? k.category_guid === D : k.top_level_category_guid === N.INCOME
|
|
26622
26619
|
});
|
|
26623
26620
|
S(!0);
|
|
26624
26621
|
};
|
|
@@ -26642,7 +26639,7 @@ const va = h.createContext(null), X0 = ({
|
|
|
26642
26639
|
label: /* @__PURE__ */ t(
|
|
26643
26640
|
Xa,
|
|
26644
26641
|
{
|
|
26645
|
-
amount:
|
|
26642
|
+
amount: w.totalAmount,
|
|
26646
26643
|
label: o.income_tab_title
|
|
26647
26644
|
}
|
|
26648
26645
|
)
|
|
@@ -26662,7 +26659,7 @@ const va = h.createContext(null), X0 = ({
|
|
|
26662
26659
|
m === 1 && /* @__PURE__ */ t(
|
|
26663
26660
|
qr,
|
|
26664
26661
|
{
|
|
26665
|
-
data:
|
|
26662
|
+
data: w,
|
|
26666
26663
|
onSelected: L,
|
|
26667
26664
|
onViewTransactions: B,
|
|
26668
26665
|
selectedId: u,
|
|
@@ -26816,14 +26813,14 @@ const kf = (e) => e.reduce((a, i) => {
|
|
|
26816
26813
|
(E) => E.category_guid === a || E.top_level_category_guid === a
|
|
26817
26814
|
) : e).reduce(
|
|
26818
26815
|
(E, b) => {
|
|
26819
|
-
const { category_guid: S, top_level_category_guid: A, month:
|
|
26816
|
+
const { category_guid: S, top_level_category_guid: A, month: w, total: v, year: R } = b, L = a ? S : A;
|
|
26820
26817
|
E[L] || (E[L] = {
|
|
26821
26818
|
id: L,
|
|
26822
26819
|
category: L,
|
|
26823
26820
|
category_guid: S,
|
|
26824
26821
|
top_level_category_guid: A
|
|
26825
26822
|
});
|
|
26826
|
-
const B = re(new Date(R,
|
|
26823
|
+
const B = re(new Date(R, w - 1), ne.MONTH_SHORT);
|
|
26827
26824
|
return E[L][B] || (E[L][B] = 0), E[L][B] = E[L][B] + v, E;
|
|
26828
26825
|
},
|
|
26829
26826
|
{}
|
|
@@ -26885,7 +26882,7 @@ const kf = (e) => e.reduce((a, i) => {
|
|
|
26885
26882
|
}, Kf = x(Vf), zf = {
|
|
26886
26883
|
view_transactions: "View Transactions"
|
|
26887
26884
|
}, Yf = ({ onBackClick: e, sx: n }) => {
|
|
26888
|
-
const a = at(), { onEvent: i } = j(), { isDesktop: o, isTablet: r, isMobile: s } = Ce(), { visibleAccounts: c } = ve(), { loadMonthlyCategoryTotals: d, monthlyCategoryTotals: _, getCategoryName: u } = Ve(), { sortedTransactions: g } = De(), { isCopyLoaded: m, isInitialized: C, selectedAccounts: f, setSelectedAccounts: E } = le(), { trends: b } = I(), S = a.palette.mode === "dark", [A,
|
|
26885
|
+
const a = at(), { onEvent: i } = j(), { isDesktop: o, isTablet: r, isMobile: s } = Ce(), { visibleAccounts: c } = ve(), { loadMonthlyCategoryTotals: d, monthlyCategoryTotals: _, getCategoryName: u } = Ve(), { sortedTransactions: g } = De(), { isCopyLoaded: m, isInitialized: C, selectedAccounts: f, setSelectedAccounts: E } = le(), { trends: b } = I(), S = a.palette.mode === "dark", [A, w] = h.useState(!1), [v, R] = h.useState(!1), [L, B] = h.useState("Chart"), [D, G] = h.useState(""), [k, U] = h.useState({
|
|
26889
26886
|
start: Wo(Qe(Vt(/* @__PURE__ */ new Date(), 6)), 1),
|
|
26890
26887
|
end: Qe(/* @__PURE__ */ new Date())
|
|
26891
26888
|
});
|
|
@@ -26897,7 +26894,7 @@ const kf = (e) => e.reduce((a, i) => {
|
|
|
26897
26894
|
k.start,
|
|
26898
26895
|
k.end
|
|
26899
26896
|
).finally(() => {
|
|
26900
|
-
|
|
26897
|
+
w(!0);
|
|
26901
26898
|
});
|
|
26902
26899
|
}, [C, f, k]);
|
|
26903
26900
|
const oe = h.useMemo(() => {
|
|
@@ -27141,7 +27138,7 @@ export {
|
|
|
27141
27138
|
Yo as CategoryApi,
|
|
27142
27139
|
Sn as CategoryColors,
|
|
27143
27140
|
ai as CategoryGuidToName,
|
|
27144
|
-
|
|
27141
|
+
N as CategoryGuids,
|
|
27145
27142
|
Md as CategoryIcon,
|
|
27146
27143
|
Hs as CategoryRow,
|
|
27147
27144
|
dh as CategorySelector,
|