@mx-cartographer/experiences 6.10.1-alpha.al1 → 6.10.1-alpha.mega2
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 +0 -8
- package/dist/common/stores/AppDataStore.d.ts +0 -1
- package/dist/common/types/AppData.d.ts +1 -2
- package/dist/common/types/Client.d.ts +0 -14
- package/dist/common/types/index.d.ts +1 -1
- package/dist/index.es.js +519 -518
- 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
|
+
], w = {
|
|
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
|
+
w.CREDIT_CARD_PAYMENT,
|
|
629
|
+
w.MORTGAGE_PAYMENT,
|
|
630
|
+
w.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
|
+
[w.AUTO_AND_TRANSPORT]: "Auto & Transport",
|
|
634
|
+
[w.BILLS_AND_UTILITIES]: "Bills & Utilities",
|
|
635
|
+
[w.BUSINESS_SERVICES]: "Business Services",
|
|
636
|
+
[w.EDUCATION]: "Education",
|
|
637
|
+
[w.ENTERTAINMENT]: "Entertainment",
|
|
638
|
+
[w.FEES_AND_CHARGES]: "Fees & Charges",
|
|
639
|
+
[w.FINANCIAL]: "Financial",
|
|
640
|
+
[w.FOOD_AND_DINING]: "Food & Dining",
|
|
641
|
+
[w.GIFTS_AND_DONATIONS]: "Gifts & Donations",
|
|
642
|
+
[w.HEALTH_AND_FITNESS]: "Health & Fitness",
|
|
643
|
+
[w.HOME]: "Home",
|
|
644
|
+
[w.INCOME]: "Income",
|
|
645
|
+
[w.INVESTMENTS]: "Investments",
|
|
646
|
+
[w.KIDS]: "Kids",
|
|
647
|
+
[w.PERSONAL_CARE]: "Personal Care",
|
|
648
|
+
[w.PETS]: "Pets",
|
|
649
|
+
[w.SHOPPING]: "Shopping",
|
|
650
|
+
[w.TAXES]: "Taxes",
|
|
651
|
+
[w.TRANSFER]: "Transfer",
|
|
652
|
+
[w.TRAVEL]: "Travel",
|
|
653
|
+
[w.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
|
+
[w.LOCAL_TAX]: "Local Tax",
|
|
656
|
+
[w.WITHDRAWAL]: "Withdrawal",
|
|
657
|
+
[w.TRADE_COMMISSIONS]: "Trade Commissions",
|
|
658
|
+
[w.BABYSITTER_DAYCARE]: "Babysitter & Daycare",
|
|
659
|
+
[w.CHILD_SUPPORT]: "Child Support",
|
|
660
|
+
[w.CREDIT_CARD_PAYMENT]: "Credit Card Payment",
|
|
661
|
+
[w.STUDENT_LOAN]: "Student Loan",
|
|
662
|
+
[w.LIFE_INSURANCE]: "Life Insurance",
|
|
663
|
+
[w.PRINTING]: "Printing",
|
|
664
|
+
[w.FINANCIAL_ADVISOR]: "Financial Advisor",
|
|
665
|
+
[w.INTEREST_INCOME]: "Interest Income",
|
|
666
|
+
[w.LATE_FEE]: "Late Fee",
|
|
667
|
+
[w.LAWN_GARDEN]: "Lawn & Garden",
|
|
668
|
+
[w.FINANCE_CHARGE]: "Finance Charge",
|
|
669
|
+
[w.FRAUD_PROTECTION]: "Fraud Protection",
|
|
670
|
+
[w.MOVIES_DVDS]: "Movies & DVDs",
|
|
671
|
+
[w.HOME_INSURANCE]: "Home Insurance",
|
|
672
|
+
[w.CASH]: "Cash",
|
|
673
|
+
[w.TUITION]: "Tuition",
|
|
674
|
+
[w.HEALTH_INSURANCE]: "Health Insurance",
|
|
675
|
+
[w.DIVIDEND_CAP_GAINS]: "Dividend & Cap Gains",
|
|
676
|
+
[w.ALCOHOL_BARS]: "Alcohol & Bars",
|
|
677
|
+
[w.LEGAL]: "Legal",
|
|
678
|
+
[w.PUBLIC_TRANSPORTATION]: "Public Transportation",
|
|
679
|
+
[w.MORTGAGE_RENT]: "Mortgage & Rent",
|
|
680
|
+
[w.HOTEL]: "Hotel",
|
|
681
|
+
[w.TRANSFER_FOR_CASH_SPENDING]: "Transfer for Cash Spending",
|
|
682
|
+
[w.UTILITIES]: "Utilities",
|
|
683
|
+
[w.DEPOSIT]: "Deposit",
|
|
684
|
+
[w.HOME_PHONE]: "Home Phone",
|
|
685
|
+
[w.SERVICE_PARTS]: "Service Parts",
|
|
686
|
+
[w.INTERNET]: "Internet",
|
|
687
|
+
[w.BOOKS]: "Books",
|
|
688
|
+
[w.NEWSPAPERS_MAGAZINES]: "Newspapers & Magazines",
|
|
689
|
+
[w.FAST_FOOD]: "Fast Food",
|
|
690
|
+
[w.COFFEE_SHOPS]: "Coffee Shops",
|
|
691
|
+
[w.SELL]: "Sell",
|
|
692
|
+
[w.OFFICE_SUPPLIES]: "Office Supplies",
|
|
693
|
+
[w.PET_GROOMING]: "Pet Grooming",
|
|
694
|
+
[w.AMUSEMENT]: "Amusement",
|
|
695
|
+
[w.BOOKS_SUPPLIES]: "Books & Supplies",
|
|
696
|
+
[w.VACATION]: "Vacation",
|
|
697
|
+
[w.SERVICE_FEE]: "Service Fee",
|
|
698
|
+
[w.GIFT]: "Gift",
|
|
699
|
+
[w.CHARITY]: "Charity",
|
|
700
|
+
[w.PARKING]: "Parking",
|
|
701
|
+
[w.SHIPPING]: "Shipping",
|
|
702
|
+
[w.ARTS]: "Arts",
|
|
703
|
+
[w.PAYCHECK]: "Paycheck",
|
|
704
|
+
[w.FURNISHINGS]: "Furnishings",
|
|
705
|
+
[w.RESTAURANTS]: "Restaurants",
|
|
706
|
+
[w.SPA_MASSAGE]: "Spa & Massage",
|
|
707
|
+
[w.RENTAL_CAR_TAXI]: "Rental Car & Taxi",
|
|
708
|
+
[w.ALLOWANCE]: "Allowance",
|
|
709
|
+
[w.BANKING_FEE]: "Banking Fee",
|
|
710
|
+
[w.BUY]: "Buy",
|
|
711
|
+
[w.STATE_TAX]: "State Tax",
|
|
712
|
+
[w.TOYS]: "Toys",
|
|
713
|
+
[w.KIDS_ACTIVITIES]: "Kids Activities",
|
|
714
|
+
[w.RENTAL_INCOME]: "Rental Income",
|
|
715
|
+
[w.VETERINARY]: "Veterinary",
|
|
716
|
+
[w.SPORTING_GOODS]: "Sporting Goods",
|
|
717
|
+
[w.LAUNDRY]: "Laundry",
|
|
718
|
+
[w.CLOTHING]: "Clothing",
|
|
719
|
+
[w.PHARMACY]: "Pharmacy",
|
|
720
|
+
[w.HOME_SERVICES]: "Home Services",
|
|
721
|
+
[w.ATM_FEE]: "ATM Fee",
|
|
722
|
+
[w.HAIR]: "Hair",
|
|
723
|
+
[w.GROCERIES]: "Groceries",
|
|
724
|
+
[w.GAS]: "Gas",
|
|
725
|
+
[w.FEDERAL_TAX]: "Federal Tax",
|
|
726
|
+
[w.HOSTING]: "Hosting",
|
|
727
|
+
[w.TELEVISION]: "Television",
|
|
728
|
+
[w.MOBILE_PHONE]: "Mobile Phone",
|
|
729
|
+
[w.BABY_SUPPLIES]: "Baby Supplies",
|
|
730
|
+
[w.MUSIC]: "Music",
|
|
731
|
+
[w.MORTGAGE_PAYMENT]: "Mortgage Payment",
|
|
732
|
+
[w.SPORTS]: "Sports",
|
|
733
|
+
[w.AUTO_PAYMENT]: "Auto Payment",
|
|
734
|
+
[w.GYM]: "Gym",
|
|
735
|
+
[w.REIMBURSEMENT]: "Reimbursement",
|
|
736
|
+
[w.AIR_TRAVEL]: "Air Travel",
|
|
737
|
+
[w.EYECARE]: "Eyecare",
|
|
738
|
+
[w.HOBBIES]: "Hobbies",
|
|
739
|
+
[w.SALES_TAX]: "Sales Tax",
|
|
740
|
+
[w.ELECTRONICS_SOFTWARE]: "Electronics & Software",
|
|
741
|
+
[w.DOCTOR]: "Doctor",
|
|
742
|
+
[w.RETURNED_PURCHASE]: "Returned Purchase",
|
|
743
|
+
[w.HOME_IMPROVEMENT]: "Home Improvement",
|
|
744
|
+
[w.AUTO_INSURANCE]: "Auto Insurance",
|
|
745
|
+
[w.PROPERTY_TAX]: "Property Tax",
|
|
746
|
+
[w.DOMAIN_NAMES]: "Domain Names",
|
|
747
|
+
[w.HOME_SUPPLIES]: "Home Supplies",
|
|
748
|
+
[w.ADVERTISING]: "Advertising",
|
|
749
|
+
[w.CHECK]: "Check",
|
|
750
|
+
[w.DENTIST]: "Dentist",
|
|
751
|
+
[w.BONUS]: "Bonus",
|
|
752
|
+
[w.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
|
+
[w.AUTO_AND_TRANSPORT]: "#4B9DBC",
|
|
755
|
+
[w.BILLS_AND_UTILITIES]: "#EF9B2C",
|
|
756
|
+
[w.BUSINESS_SERVICES]: "#B3DE8C",
|
|
757
|
+
[w.EDUCATION]: "#F8AB3A",
|
|
758
|
+
[w.ENTERTAINMENT]: "#AB5B89",
|
|
759
|
+
[w.FEES_AND_CHARGES]: "#FF9696",
|
|
760
|
+
[w.FINANCIAL]: "#6BCDDB",
|
|
761
|
+
[w.FOOD_AND_DINING]: "#58AC7B",
|
|
762
|
+
[w.GIFTS_AND_DONATIONS]: "#347AA5",
|
|
763
|
+
[w.HEALTH_AND_FITNESS]: "#5C446E",
|
|
764
|
+
[w.HOME]: "#FFD84D",
|
|
765
|
+
[w.INCOME]: "#133F49",
|
|
766
|
+
[w.INVESTMENTS]: "#FF7070",
|
|
767
|
+
[w.KIDS]: "#82D196",
|
|
768
|
+
[w.PERSONAL_CARE]: "#338B7A",
|
|
769
|
+
[w.PETS]: "#615BAB",
|
|
770
|
+
[w.SHOPPING]: "#CF5F84",
|
|
771
|
+
[w.TAXES]: "#32588D",
|
|
772
|
+
[w.TRANSFER]: "#959CA6",
|
|
773
|
+
[w.TRAVEL]: "#E37434",
|
|
774
|
+
[w.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
|
+
[w.AUTO_AND_TRANSPORT]: "directions_car",
|
|
777
|
+
[w.BILLS_AND_UTILITIES]: "electrical_services",
|
|
778
|
+
[w.BUSINESS_SERVICES]: "business_center",
|
|
779
|
+
[w.EDUCATION]: "school",
|
|
780
|
+
[w.ENTERTAINMENT]: "stadium",
|
|
781
|
+
[w.FEES_AND_CHARGES]: "problem",
|
|
782
|
+
[w.FINANCIAL]: "price_check",
|
|
783
|
+
[w.FOOD_AND_DINING]: "grocery",
|
|
784
|
+
[w.GIFTS_AND_DONATIONS]: "featured_seasonal_and_gifts",
|
|
785
|
+
[w.HEALTH_AND_FITNESS]: "ecg_heart",
|
|
786
|
+
[w.HOME]: "cottage",
|
|
787
|
+
[w.INCOME]: "monetization_on",
|
|
788
|
+
[w.INVESTMENTS]: "bid_landscape",
|
|
789
|
+
[w.KIDS]: "face",
|
|
790
|
+
[w.PERSONAL_CARE]: "volunteer_activism",
|
|
791
|
+
[w.PETS]: "pet_supplies",
|
|
792
|
+
[w.SHOPPING]: "shopping_cart",
|
|
793
|
+
[w.TAXES]: "heap_snapshot_large",
|
|
794
|
+
[w.TRANSFER]: "compare_arrows",
|
|
795
|
+
[w.TRAVEL]: "airplane_ticket",
|
|
796
|
+
[w.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 === w.INCOME || a.parent_guid === w.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
|
+
(N) => d[N.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
|
|
1410
|
+
children: S.map((N) => {
|
|
1411
|
+
const v = d[N.guid], R = `${N.name}${g && N.accountNumber ? ` *${N.accountNumber.slice(-4)}` : ""}`;
|
|
1412
1412
|
return /* @__PURE__ */ t(
|
|
1413
1413
|
Y,
|
|
1414
1414
|
{
|
|
@@ -1421,12 +1421,12 @@ const bi = (e, n) => e.reduce((a, i) => (a[i.guid] = n?.includes(i.guid), a), {}
|
|
|
1421
1421
|
control: /* @__PURE__ */ t(
|
|
1422
1422
|
Wa,
|
|
1423
1423
|
{
|
|
1424
|
-
checked:
|
|
1425
|
-
"data-ui-test": `checked-${
|
|
1424
|
+
checked: v,
|
|
1425
|
+
"data-ui-test": `checked-${v}`,
|
|
1426
1426
|
disableRipple: !0,
|
|
1427
|
-
id:
|
|
1427
|
+
id: N.guid,
|
|
1428
1428
|
onChange: () => {
|
|
1429
|
-
i(
|
|
1429
|
+
i(N);
|
|
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
|
+
N.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((N) => {
|
|
1580
|
+
A[N.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, N = Qo(S, A, o), v = Qo(A, S, o), R = s_(C, f, E, N || v), L = (D) => d === void 0 || D === d ? a : `${a}80`, B = () => /* @__PURE__ */ t(
|
|
1802
1802
|
qo,
|
|
1803
1803
|
{
|
|
1804
1804
|
averageLineHeight: R,
|
|
1805
|
-
bottomHeight:
|
|
1805
|
+
bottomHeight: v,
|
|
1806
1806
|
color: "",
|
|
1807
1807
|
range: b,
|
|
1808
|
-
topHeight:
|
|
1808
|
+
topHeight: N,
|
|
1809
1809
|
value: 0,
|
|
1810
1810
|
width: void 0
|
|
1811
1811
|
}
|
|
@@ -1819,13 +1819,13 @@ const Qd = (e, n) => {
|
|
|
1819
1819
|
{
|
|
1820
1820
|
ariaLabel: D.ariaLabel,
|
|
1821
1821
|
averageLineHeight: R,
|
|
1822
|
-
bottomHeight:
|
|
1822
|
+
bottomHeight: v,
|
|
1823
1823
|
color: L(G),
|
|
1824
1824
|
index: G,
|
|
1825
1825
|
onClick: c,
|
|
1826
1826
|
range: b,
|
|
1827
1827
|
selectedIndex: d,
|
|
1828
|
-
topHeight:
|
|
1828
|
+
topHeight: N,
|
|
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 N = ol({ start: et(d), end: Qe(d) }), v = [];
|
|
1969
|
+
for (let R = 0; R < N.length; R++) {
|
|
1970
|
+
const L = N[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
|
-
return
|
|
1976
|
-
}, [d]), E = (
|
|
1975
|
+
return v;
|
|
1976
|
+
}, [d]), E = (N) => {
|
|
1977
1977
|
if (r !== "None") {
|
|
1978
1978
|
if (r === "Single") {
|
|
1979
|
-
g(
|
|
1979
|
+
g(N), i?.(N);
|
|
1980
1980
|
return;
|
|
1981
1981
|
}
|
|
1982
|
-
!u || m ? (g(
|
|
1982
|
+
!u || m ? (g(N), C(void 0)) : je(N, u) ? (C(u), g(N), o?.(N, u)) : (C(N), o?.(u, N));
|
|
1983
1983
|
}
|
|
1984
1984
|
}, b = () => {
|
|
1985
|
-
const
|
|
1986
|
-
_(
|
|
1985
|
+
const N = ue();
|
|
1986
|
+
_(N), r !== "None" && (g(N), r === "Single" ? i?.(N) : (C(N), o?.(N, N)));
|
|
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((N, v) => /* @__PURE__ */ t("div", { className: "mx-cmn-calendar-header-cell", children: /* @__PURE__ */ t(p, { bold: !0, variant: "Small", children: kn(N, "EEEEE") }) }, v)) }),
|
|
2003
|
+
f.map((N, v) => /* @__PURE__ */ t("div", { className: "mx-cmn-calendar-week", children: N.map((R, L) => /* @__PURE__ */ t(
|
|
2004
2004
|
__,
|
|
2005
2005
|
{
|
|
2006
2006
|
beginDate: u,
|
|
@@ -2010,7 +2010,7 @@ const g_ = ({
|
|
|
2010
2010
|
onClick: E
|
|
2011
2011
|
},
|
|
2012
2012
|
L
|
|
2013
|
-
)) }, `w-${
|
|
2013
|
+
)) }, `w-${v}`)),
|
|
2014
2014
|
/* @__PURE__ */ t("div", { className: "mx-cmn-calendar-today-container", children: /* @__PURE__ */ t(J, { onClick: b, size: "small", variant: "text", children: e.today }) })
|
|
2015
2015
|
] }) });
|
|
2016
2016
|
}, m_ = (e) => Yt({
|
|
@@ -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), N = 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,12 +2249,12 @@ const g_ = ({
|
|
|
2249
2249
|
xAxis: [{ data: b, scaleType: d ? "band" : "point" }],
|
|
2250
2250
|
yAxis: [
|
|
2251
2251
|
{
|
|
2252
|
-
min:
|
|
2253
|
-
max:
|
|
2252
|
+
min: N,
|
|
2253
|
+
max: v || 100,
|
|
2254
2254
|
colorMap: _ ? {
|
|
2255
2255
|
type: "continuous",
|
|
2256
|
-
min:
|
|
2257
|
-
max:
|
|
2256
|
+
min: N,
|
|
2257
|
+
max: v,
|
|
2258
2258
|
color: [E.palette.background.paper, n[0] ?? E.palette.primary.main]
|
|
2259
2259
|
} : void 0,
|
|
2260
2260
|
valueFormatter: (D) => H(D, C)
|
|
@@ -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, N = S && E && b, v = !N, 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))
|
|
@@ -2650,7 +2650,7 @@ const g_ = ({
|
|
|
2650
2650
|
}
|
|
2651
2651
|
},
|
|
2652
2652
|
slots: {
|
|
2653
|
-
itemContent: (V) =>
|
|
2653
|
+
itemContent: (V) => v && E ? /* @__PURE__ */ t(
|
|
2654
2654
|
v_,
|
|
2655
2655
|
{
|
|
2656
2656
|
categoryGuids: Se(E),
|
|
@@ -2661,7 +2661,7 @@ const g_ = ({
|
|
|
2661
2661
|
},
|
|
2662
2662
|
sx: tt,
|
|
2663
2663
|
tooltip: {
|
|
2664
|
-
trigger:
|
|
2664
|
+
trigger: v ? "item" : "none"
|
|
2665
2665
|
},
|
|
2666
2666
|
width: c,
|
|
2667
2667
|
xAxis: [
|
|
@@ -2691,7 +2691,7 @@ const g_ = ({
|
|
|
2691
2691
|
sx: { px: _ ? 0 : 24 }
|
|
2692
2692
|
}
|
|
2693
2693
|
),
|
|
2694
|
-
|
|
2694
|
+
N && /* @__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), [N, 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
|
+
}, [N]);
|
|
2923
2923
|
const L = () => {
|
|
2924
2924
|
const k = Qe(xn());
|
|
2925
|
-
return [Qe(Vt(k,
|
|
2925
|
+
return [Qe(Vt(k, N)), k];
|
|
2926
2926
|
}, B = (k) => {
|
|
2927
2927
|
const U = [..._], oe = _[0], me = _[1], te = k === "previous";
|
|
2928
2928
|
if (g === a.dateRangePickerCopy.dateRangeThisMonth)
|
|
@@ -2939,7 +2939,7 @@ const g_ = ({
|
|
|
2939
2939
|
g === a.dateRangePickerCopy.dateRangeThisMonth || g === a.dateRangePickerCopy.dateRangeLastMonth
|
|
2940
2940
|
), e.onRangeChanged(C);
|
|
2941
2941
|
}, G = (k) => {
|
|
2942
|
-
|
|
2942
|
+
v(k);
|
|
2943
2943
|
};
|
|
2944
2944
|
return /* @__PURE__ */ l(O, { className: "mx-cmn-date-range-selector", m: 4, children: [
|
|
2945
2945
|
/* @__PURE__ */ l(
|
|
@@ -3021,7 +3021,7 @@ const g_ = ({
|
|
|
3021
3021
|
color: n,
|
|
3022
3022
|
exclusive: !0,
|
|
3023
3023
|
orientation: "horizontal",
|
|
3024
|
-
value:
|
|
3024
|
+
value: N,
|
|
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: N,
|
|
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: N } = 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)
|
|
@@ -3414,7 +3414,7 @@ const Nn = ({
|
|
|
3414
3414
|
dateRangeEditTitle: D.date_range_picker.edit_title,
|
|
3415
3415
|
dateRangeNextAria: D.date_range_picker.next_aria,
|
|
3416
3416
|
dateRangePreviousAria: D.date_range_picker.previous_aria
|
|
3417
|
-
}, oe = o ? o.start :
|
|
3417
|
+
}, oe = o ? o.start : v.start, me = o ? o.end : v.end, te = n?.length > 1;
|
|
3418
3418
|
return /* @__PURE__ */ l(
|
|
3419
3419
|
Nt,
|
|
3420
3420
|
{
|
|
@@ -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 || N) && { 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 || N ? /* @__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 || N) && { 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 || N ? /* @__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 || N) && /* @__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,16 +3604,16 @@ 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]*$/, N = /^(\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 = N;
|
|
3614
3614
|
break;
|
|
3615
3615
|
default:
|
|
3616
|
-
R =
|
|
3616
|
+
R = v;
|
|
3617
3617
|
break;
|
|
3618
3618
|
}
|
|
3619
3619
|
else
|
|
@@ -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 !== w.INCOME && n.category_guid !== w.TRANSFER && n.category_guid !== w.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
|
+
), N = h.useMemo(
|
|
4492
4492
|
() => u.filter((L) => s.includes(L.accountGuid || "")).reduce((L, B) => L + B.amount, 0),
|
|
4493
4493
|
[s, u]
|
|
4494
|
-
),
|
|
4495
|
-
() => A -
|
|
4496
|
-
[A,
|
|
4494
|
+
), v = h.useMemo(
|
|
4495
|
+
() => A - N,
|
|
4496
|
+
[A, N]
|
|
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,12 +4513,12 @@ 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: N, 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" }) }),
|
|
4520
4520
|
/* @__PURE__ */ l(y, { pb: 14, pr: 24, pt: 12, children: [
|
|
4521
|
-
/* @__PURE__ */ t(Ue, { amount:
|
|
4521
|
+
/* @__PURE__ */ t(Ue, { amount: v, variant: "H2" }),
|
|
4522
4522
|
/* @__PURE__ */ l(y, { alignItems: "center", direction: "row", gap: 8, children: [
|
|
4523
4523
|
/* @__PURE__ */ t(Ne, { variant: "XSmall", whiteSpace: "nowrap", children: c.available_to_spend }),
|
|
4524
4524
|
/* @__PURE__ */ t(ro, { body: c.tooltip_body, title: c.tooltip_title })
|
|
@@ -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: N, bold: !0, symbol: "-", variant: "XSmall" })
|
|
4553
4553
|
] }),
|
|
4554
4554
|
/* @__PURE__ */ t(P, {}),
|
|
4555
4555
|
/* @__PURE__ */ t(
|
|
@@ -4563,7 +4563,7 @@ const Jn = () => {
|
|
|
4563
4563
|
justifyContent: "space-between",
|
|
4564
4564
|
px: 16,
|
|
4565
4565
|
sx: { borderBottomLeftRadius: 4, borderBottomRightRadius: 4 },
|
|
4566
|
-
children: /* @__PURE__ */ t(so, { remaining:
|
|
4566
|
+
children: /* @__PURE__ */ t(so, { remaining: v })
|
|
4567
4567
|
}
|
|
4568
4568
|
),
|
|
4569
4569
|
/* @__PURE__ */ t(P, {}),
|
|
@@ -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 === w.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 N = g.find((v) => v.guid === A);
|
|
5681
|
+
if (N?.has_been_split) {
|
|
5682
|
+
C(N.guid);
|
|
5683
5683
|
return;
|
|
5684
5684
|
}
|
|
5685
5685
|
f(W.ACCOUNT_DETAILS_CLICK_TRANSACTION, {
|
|
5686
|
-
account_guid:
|
|
5686
|
+
account_guid: N?.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 N = 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
|
-
|
|
5720
|
-
/* @__PURE__ */ t(lo, { onClick: E, transaction:
|
|
5719
|
+
v && /* @__PURE__ */ t(_o, { bgcolor: e, children: ii(N.date) }),
|
|
5720
|
+
/* @__PURE__ */ t(lo, { onClick: E, transaction: N }),
|
|
5721
5721
|
/* @__PURE__ */ t(P, { sx: { ml: R ? 24 : 0 } })
|
|
5722
5722
|
]
|
|
5723
5723
|
},
|
|
5724
|
-
|
|
5724
|
+
N.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((N) => N === 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 === w.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 !== w.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
|
+
}, N = (G, k) => {
|
|
7000
7000
|
const U = [...f], oe = c.find((me) => me.guid === k);
|
|
7001
7001
|
oe && (U[G] = {
|
|
7002
7002
|
...U[G],
|
|
@@ -7004,7 +7004,7 @@ const $s = ({ transaction: e }) => {
|
|
|
7004
7004
|
category: oe.name,
|
|
7005
7005
|
top_level_category_guid: oe.parent_guid || k
|
|
7006
7006
|
}, E(U));
|
|
7007
|
-
},
|
|
7007
|
+
}, v = () => {
|
|
7008
7008
|
if (e.parent_guid || e.has_been_split) {
|
|
7009
7009
|
C(!0);
|
|
7010
7010
|
return;
|
|
@@ -7027,7 +7027,7 @@ const $s = ({ transaction: e }) => {
|
|
|
7027
7027
|
return G || k;
|
|
7028
7028
|
}, [f]);
|
|
7029
7029
|
return /* @__PURE__ */ l(h.Fragment, { children: [
|
|
7030
|
-
e && /* @__PURE__ */ t(Y, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(_e, { onClick:
|
|
7030
|
+
e && /* @__PURE__ */ t(Y, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(_e, { onClick: v, children: [
|
|
7031
7031
|
/* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(Xt, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t($, { name: "call_split", sx: { color: "text.primary" }, weight: Ct.Dark }) }) }),
|
|
7032
7032
|
/* @__PURE__ */ t(
|
|
7033
7033
|
se,
|
|
@@ -7055,7 +7055,7 @@ const $s = ({ transaction: e }) => {
|
|
|
7055
7055
|
xh,
|
|
7056
7056
|
{
|
|
7057
7057
|
onAddSplit: b,
|
|
7058
|
-
onCategoryChanged:
|
|
7058
|
+
onCategoryChanged: N,
|
|
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
|
+
}, N = () => {
|
|
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: N,
|
|
7212
7212
|
children: /* @__PURE__ */ t(ga, { color: "secondary" })
|
|
7213
7213
|
}
|
|
7214
7214
|
)
|
|
@@ -7241,7 +7241,7 @@ const $s = ({ transaction: e }) => {
|
|
|
7241
7241
|
"aria-describedby": f ? "update-tag-error" : void 0,
|
|
7242
7242
|
"aria-label": c.tags_update_the_tag_name,
|
|
7243
7243
|
name: "update-tag",
|
|
7244
|
-
onChange: (
|
|
7244
|
+
onChange: (v) => C(v.target.value),
|
|
7245
7245
|
placeholder: "Tag name",
|
|
7246
7246
|
sx: { width: "100%" },
|
|
7247
7247
|
value: m
|
|
@@ -7651,8 +7651,8 @@ const $s = ({ transaction: e }) => {
|
|
|
7651
7651
|
loadAssociatedBeats: b,
|
|
7652
7652
|
setFilter: S,
|
|
7653
7653
|
tags: A,
|
|
7654
|
-
transactions:
|
|
7655
|
-
updateTransaction:
|
|
7654
|
+
transactions: N,
|
|
7655
|
+
updateTransaction: v
|
|
7656
7656
|
} = De(), { common: R, transactions: L } = I(), { userProfile: B } = kt(), { onEvent: D } = j(), {
|
|
7657
7657
|
displayedDateRange: G,
|
|
7658
7658
|
isCopyLoaded: k,
|
|
@@ -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 ? N.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(N, A), D(W.TRANSACTIONS_CLICK_EXPORT);
|
|
7695
7695
|
}, mi = () => {
|
|
7696
7696
|
Me.length > 0 ? (C({
|
|
7697
7697
|
...Bs,
|
|
@@ -7708,7 +7708,7 @@ const $s = ({ transaction: e }) => {
|
|
|
7708
7708
|
}, Wc = async () => {
|
|
7709
7709
|
Ke(!1), await r();
|
|
7710
7710
|
}, Uc = async () => {
|
|
7711
|
-
Ge && !Ge.has_been_viewed && await
|
|
7711
|
+
Ge && !Ge.has_been_viewed && await v({ ...Ge, has_been_viewed: !0 }), Oe("");
|
|
7712
7712
|
};
|
|
7713
7713
|
return !k || !U || !tt ? /* @__PURE__ */ t(de, {}) : /* @__PURE__ */ l(
|
|
7714
7714
|
yt,
|
|
@@ -8219,44 +8219,44 @@ 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 !== w.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 === w.INCOME || e.top_level_category_guid === w.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), N = 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 (!N) {
|
|
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(N.date)), D = {
|
|
8240
|
+
account_guid: N.account_guid,
|
|
8241
|
+
amount: N.amount,
|
|
8242
8242
|
created_by: 0,
|
|
8243
8243
|
// User
|
|
8244
|
-
merchant_guid:
|
|
8245
|
-
description:
|
|
8244
|
+
merchant_guid: N.merchant_guid,
|
|
8245
|
+
description: N.payee || N.description || N.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: N.transaction_type,
|
|
8252
8252
|
user_guid: d.guid
|
|
8253
8253
|
};
|
|
8254
|
-
await c(D,
|
|
8254
|
+
await c(D, N), L();
|
|
8255
8255
|
}, L = () => {
|
|
8256
8256
|
m(""), u(!1);
|
|
8257
8257
|
};
|
|
8258
8258
|
return /* @__PURE__ */ l(O, { children: [
|
|
8259
|
-
/* @__PURE__ */ t(Y, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ t(_e, { onClick:
|
|
8259
|
+
/* @__PURE__ */ t(Y, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ t(_e, { onClick: v, children: /* @__PURE__ */ t(se, { children: /* @__PURE__ */ l(y, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
|
8260
8260
|
/* @__PURE__ */ l(y, { alignItems: "center", direction: "row", gap: 8, children: [
|
|
8261
8261
|
/* @__PURE__ */ t($, { fill: !0, name: "add_box", size: 24, sx: { color: "primary.light" } }),
|
|
8262
8262
|
/* @__PURE__ */ t(p, { bold: !0, sx: { color: "primary.light" }, variant: "Body", children: n })
|
|
@@ -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: N && /* @__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: N
|
|
8307
8307
|
}
|
|
8308
8308
|
)
|
|
8309
8309
|
}
|
|
@@ -8735,15 +8735,15 @@ const $s = ({ transaction: e }) => {
|
|
|
8735
8735
|
selectedDay: m,
|
|
8736
8736
|
selectedDayRecurrences: C,
|
|
8737
8737
|
upcomingRecurrences: f
|
|
8738
|
-
} = Ze(), [E, b] = h.useState(0), S = (
|
|
8738
|
+
} = Ze(), [E, b] = h.useState(0), S = (v, R) => {
|
|
8739
8739
|
b(R);
|
|
8740
|
-
}, A = (
|
|
8740
|
+
}, A = (v) => {
|
|
8741
8741
|
i(W.RECURRING_TRANSACTIONS_CLICK_UPCOMING, {
|
|
8742
|
-
transaction_guid:
|
|
8742
|
+
transaction_guid: v.transaction?.guid
|
|
8743
8743
|
});
|
|
8744
|
-
},
|
|
8744
|
+
}, N = (v) => {
|
|
8745
8745
|
i(W.RECURRING_TRANSACTIONS_CLICK_PAID, {
|
|
8746
|
-
transaction_guid:
|
|
8746
|
+
transaction_guid: v.transaction?.guid
|
|
8747
8747
|
});
|
|
8748
8748
|
};
|
|
8749
8749
|
return /* @__PURE__ */ l(pn, { container: !0, sx: { pt: 16, px: 24, spacing: 24 }, children: [
|
|
@@ -8800,7 +8800,7 @@ const $s = ({ transaction: e }) => {
|
|
|
8800
8800
|
E === 1 && /* @__PURE__ */ t(
|
|
8801
8801
|
ca,
|
|
8802
8802
|
{
|
|
8803
|
-
onRecurrenceClick:
|
|
8803
|
+
onRecurrenceClick: N,
|
|
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: N,
|
|
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), [N, 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(
|
|
@@ -10071,8 +10071,8 @@ const mg = ({ recurrence: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
|
10071
10071
|
frequency: E,
|
|
10072
10072
|
onFirstDayChange: A,
|
|
10073
10073
|
onFrequencyChange: b,
|
|
10074
|
-
onSecondDayChange:
|
|
10075
|
-
secondDay:
|
|
10074
|
+
onSecondDayChange: v,
|
|
10075
|
+
secondDay: N,
|
|
10076
10076
|
transaction: me
|
|
10077
10077
|
}
|
|
10078
10078
|
),
|
|
@@ -10145,12 +10145,12 @@ 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 N = d.map((R) => R.guid), v = a.filter(
|
|
10149
|
+
(R) => i.includes(R.guid) && N.includes(R.guid)
|
|
10150
10150
|
);
|
|
10151
|
-
m(
|
|
10151
|
+
m(v), _({
|
|
10152
10152
|
dateRange: { start: wt(ue(), 90), end: xn() },
|
|
10153
|
-
accounts:
|
|
10153
|
+
accounts: v.map((R) => R.guid)
|
|
10154
10154
|
});
|
|
10155
10155
|
}, [d, a]), !E || !b ? /* @__PURE__ */ t(de, {}) : u?.has_completed_cash_flow_onboarding ? /* @__PURE__ */ l(
|
|
10156
10156
|
yt,
|
|
@@ -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 === w.INCOME || e.category_guid === w.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 === w.TRANSFER || e.category_guid === w.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 !== w.INCOME && r.top_level_category_guid !== w.TRANSFER && r.total > 0
|
|
10761
10761
|
);
|
|
10762
10762
|
let i = et(Vt(/* @__PURE__ */ new Date(), 5));
|
|
10763
10763
|
const o = Qe(/* @__PURE__ */ new Date());
|
|
@@ -10875,31 +10875,31 @@ const rc = ({
|
|
|
10875
10875
|
onClickArea: r,
|
|
10876
10876
|
onHoverArea: s
|
|
10877
10877
|
}) => {
|
|
10878
|
-
const c = at(), { onEvent: d } = j(), _ = i.filter((
|
|
10878
|
+
const c = at(), { onEvent: d } = j(), _ = i.filter((v) => !v.is_impossible), u = [
|
|
10879
10879
|
...new Set(
|
|
10880
|
-
_.flatMap((
|
|
10880
|
+
_.flatMap((v) => v.dataset.map((R) => new Date(R.x).getTime()))
|
|
10881
10881
|
)
|
|
10882
|
-
].sort((
|
|
10883
|
-
const R = new Map(
|
|
10882
|
+
].sort((v, R) => v - R).map((v) => new Date(v)), g = _.map((v) => {
|
|
10883
|
+
const R = new Map(v.dataset.map((D) => [new Date(D.x).getTime(), D.y]));
|
|
10884
10884
|
let L = R.get(u[0].getTime()) ?? 0;
|
|
10885
10885
|
const B = u.map((D) => {
|
|
10886
10886
|
const G = R.get(D.getTime()) ?? L;
|
|
10887
10887
|
return L = G, { x: D, y: G };
|
|
10888
10888
|
});
|
|
10889
|
-
return { ...
|
|
10889
|
+
return { ...v, dataset: B };
|
|
10890
10890
|
}), m = g.reduce(
|
|
10891
|
-
(
|
|
10891
|
+
(v, R) => v + (R.dataset[0]?.y ?? 0),
|
|
10892
10892
|
0
|
|
10893
|
-
), C = u.map((
|
|
10893
|
+
), C = u.map((v, R) => {
|
|
10894
10894
|
const L = R / (u.length - 1), B = m * (1 - L);
|
|
10895
|
-
return { x:
|
|
10896
|
-
}), f = Math.ceil(m / 100) * 100, E = u, b = g.map((
|
|
10895
|
+
return { x: v, y: B };
|
|
10896
|
+
}), f = Math.ceil(m / 100) * 100, E = u, b = g.map((v, R) => {
|
|
10897
10897
|
const L = 1 - R / g.length * 0.5, B = tm(em, L);
|
|
10898
10898
|
return {
|
|
10899
10899
|
id: `debt-${R}`,
|
|
10900
|
-
guid:
|
|
10901
|
-
label:
|
|
10902
|
-
data:
|
|
10900
|
+
guid: v.guid,
|
|
10901
|
+
label: v.name,
|
|
10902
|
+
data: v.dataset.map((D) => D.y),
|
|
10903
10903
|
color: B,
|
|
10904
10904
|
curve: "linear",
|
|
10905
10905
|
type: "line",
|
|
@@ -10911,7 +10911,7 @@ const rc = ({
|
|
|
10911
10911
|
b.push({
|
|
10912
10912
|
id: "payoff-line",
|
|
10913
10913
|
label: "Payoff Line",
|
|
10914
|
-
data: C.map((
|
|
10914
|
+
data: C.map((v) => v.y),
|
|
10915
10915
|
color: c.palette.grey[700],
|
|
10916
10916
|
curve: "linear",
|
|
10917
10917
|
type: "line",
|
|
@@ -10919,20 +10919,20 @@ const rc = ({
|
|
|
10919
10919
|
showMark: !1,
|
|
10920
10920
|
disableHighlight: !0
|
|
10921
10921
|
});
|
|
10922
|
-
const S = (
|
|
10922
|
+
const S = (v) => b.findIndex((R) => R?.guid === v);
|
|
10923
10923
|
return /* @__PURE__ */ t(
|
|
10924
10924
|
ns,
|
|
10925
10925
|
{
|
|
10926
10926
|
axisHighlight: { x: "none" },
|
|
10927
10927
|
disableLineItemHighlight: !0,
|
|
10928
10928
|
height: n,
|
|
10929
|
-
onAreaClick: (
|
|
10929
|
+
onAreaClick: (v, R) => {
|
|
10930
10930
|
r?.();
|
|
10931
10931
|
const L = b.find((B) => B.id === R.seriesId);
|
|
10932
10932
|
d(W.DEBTS_CLICK_CHART_AREA, { account_guid: L?.guid });
|
|
10933
10933
|
},
|
|
10934
|
-
onHighlightChange: (
|
|
10935
|
-
const R = b.find((L) => L.id ===
|
|
10934
|
+
onHighlightChange: (v) => {
|
|
10935
|
+
const R = b.find((L) => L.id === v?.seriesId)?.guid;
|
|
10936
10936
|
s?.(R ?? "");
|
|
10937
10937
|
},
|
|
10938
10938
|
series: b,
|
|
@@ -10975,7 +10975,7 @@ const rc = ({
|
|
|
10975
10975
|
scaleType: "time",
|
|
10976
10976
|
min: u[0],
|
|
10977
10977
|
disableTicks: !0,
|
|
10978
|
-
valueFormatter: (
|
|
10978
|
+
valueFormatter: (v) => re(v, ne.MONTH_SHORT_YEAR)
|
|
10979
10979
|
}
|
|
10980
10980
|
],
|
|
10981
10981
|
yAxis: [
|
|
@@ -10983,7 +10983,7 @@ const rc = ({
|
|
|
10983
10983
|
min: 0,
|
|
10984
10984
|
max: f,
|
|
10985
10985
|
disableTicks: !0,
|
|
10986
|
-
valueFormatter: (
|
|
10986
|
+
valueFormatter: (v) => H(v, "0a")
|
|
10987
10987
|
}
|
|
10988
10988
|
]
|
|
10989
10989
|
}
|
|
@@ -11617,8 +11617,8 @@ 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
|
|
11621
|
-
i?.(
|
|
11620
|
+
const N = b.target.closest("[data-id]")?.getAttribute("data-id"), v = n[Number(N)];
|
|
11621
|
+
i?.(v?.guid ?? "");
|
|
11622
11622
|
}, E = (b) => C.find((S) => S.guid === b)?.id;
|
|
11623
11623
|
return /* @__PURE__ */ t(
|
|
11624
11624
|
O,
|
|
@@ -11815,20 +11815,20 @@ 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: N } = 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]);
|
|
11822
11822
|
h.useEffect(() => {
|
|
11823
|
-
b(
|
|
11823
|
+
b(v), C(W.DEBTS_VIEW);
|
|
11824
11824
|
}, []), h.useEffect(() => {
|
|
11825
|
-
b(
|
|
11826
|
-
}, [
|
|
11825
|
+
b(v);
|
|
11826
|
+
}, [v]), h.useEffect(() => {
|
|
11827
11827
|
E && L().finally();
|
|
11828
11828
|
}, [E]);
|
|
11829
11829
|
const k = (he) => _(he), U = () => {
|
|
11830
|
-
const he =
|
|
11831
|
-
he && S(he), Re &&
|
|
11830
|
+
const he = v.find((Oe) => Oe.guid === d), Re = G.find((Oe) => Oe.guid === d);
|
|
11831
|
+
he && S(he), Re && N(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 = () => {
|
|
@@ -11837,7 +11837,7 @@ const Ht = (e) => /* @__PURE__ */ t(p, { fontWeight: 600, variant: "Small", chil
|
|
|
11837
11837
|
return !R || !f || !E ? /* @__PURE__ */ t(de, {}) : /* @__PURE__ */ l(
|
|
11838
11838
|
yt,
|
|
11839
11839
|
{
|
|
11840
|
-
accountOptions:
|
|
11840
|
+
accountOptions: v,
|
|
11841
11841
|
actions: [
|
|
11842
11842
|
/* @__PURE__ */ t(wm, {}, "prioritize-debts"),
|
|
11843
11843
|
/* @__PURE__ */ t(Dm, { onClick: te }, "extra-paydown")
|
|
@@ -12861,13 +12861,13 @@ 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 = () => N(), S = a.save_button) : E && (A = () => R(), S = n.mark_as_complete_button);
|
|
12865
|
+
const N = 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);
|
|
12869
12869
|
}
|
|
12870
|
-
},
|
|
12870
|
+
}, v = async () => {
|
|
12871
12871
|
c && (c.track_type !== K.RETIREMENT_TRACK ? await r(c.guid) : c.track_type === K.RETIREMENT_TRACK && await s(c), d(n.alert_goal_deleted), _(void 0));
|
|
12872
12872
|
}, R = async () => {
|
|
12873
12873
|
const L = {
|
|
@@ -12900,7 +12900,7 @@ const Pm = (e, n) => {
|
|
|
12900
12900
|
isOpen: m,
|
|
12901
12901
|
maxWidth: "xs",
|
|
12902
12902
|
onClose: () => C(!1),
|
|
12903
|
-
onPrimaryAction:
|
|
12903
|
+
onPrimaryAction: v,
|
|
12904
12904
|
primaryColor: "error",
|
|
12905
12905
|
primaryText: a.delete_button,
|
|
12906
12906
|
children: /* @__PURE__ */ t(p, { sx: { textWrap: "wrap" }, variant: "Paragraph", children: T(n.delete_description, c?.name || "") })
|
|
@@ -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), [N, 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(
|
|
@@ -12926,9 +12926,9 @@ const Pm = (e, n) => {
|
|
|
12926
12926
|
const U = () => {
|
|
12927
12927
|
a(W.GOALS_CLICK_FILTER);
|
|
12928
12928
|
}, oe = () => {
|
|
12929
|
-
|
|
12929
|
+
v(!0), a(W.GOALS_CLICK_ADD);
|
|
12930
12930
|
}, me = (he) => {
|
|
12931
|
-
|
|
12931
|
+
v(!1), he === K.SAVINGS_TRACK ? A(0) : he === K.DEBT_TRACK ? A(1) : he === K.RETIREMENT_TRACK && A(2);
|
|
12932
12932
|
}, te = h.useMemo(
|
|
12933
12933
|
() => m && (g.length === 0 || g.every(({ track_type: he }) => !he) && b.length === 0),
|
|
12934
12934
|
[g, m, b]
|
|
@@ -13009,8 +13009,8 @@ const Pm = (e, n) => {
|
|
|
13009
13009
|
ce,
|
|
13010
13010
|
{
|
|
13011
13011
|
ariaLabelClose: _.close_aria,
|
|
13012
|
-
isOpen:
|
|
13013
|
-
onClose: () =>
|
|
13012
|
+
isOpen: N,
|
|
13013
|
+
onClose: () => v(!1),
|
|
13014
13014
|
title: d.add_goal_title,
|
|
13015
13015
|
children: /* @__PURE__ */ t(zm, { onClose: me })
|
|
13016
13016
|
}
|
|
@@ -14383,8 +14383,8 @@ 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(), [
|
|
14387
|
-
await m(i), await g(R),
|
|
14386
|
+
} = Ds(), { isMobile: S } = Ce(), { onEvent: A } = j(), [N, 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
|
+
await m(i), await g(R), v(!0);
|
|
14388
14388
|
};
|
|
14389
14389
|
h.useEffect(() => {
|
|
14390
14390
|
A(W.NET_WORTH_VIEW);
|
|
@@ -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: N ? /* @__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), N = 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: N ? 20 : 44, mr: s ? 0 : 24 }, children: [
|
|
15211
15211
|
/* @__PURE__ */ t(
|
|
15212
15212
|
nt,
|
|
15213
15213
|
{
|
|
@@ -15216,9 +15216,9 @@ const l1 = x(() => {
|
|
|
15216
15216
|
onChange: (k) => G({ email: k.target.value })
|
|
15217
15217
|
}
|
|
15218
15218
|
),
|
|
15219
|
-
|
|
15219
|
+
N && /* @__PURE__ */ t(l1, {})
|
|
15220
15220
|
] }),
|
|
15221
|
-
_.display_sms_edit_field_in_settings && /* @__PURE__ */ l(y, { sx: { mb:
|
|
15221
|
+
_.display_sms_edit_field_in_settings && /* @__PURE__ */ l(y, { sx: { mb: v ? 20 : 44 }, children: [
|
|
15222
15222
|
/* @__PURE__ */ t(
|
|
15223
15223
|
nt,
|
|
15224
15224
|
{
|
|
@@ -15228,7 +15228,7 @@ const l1 = x(() => {
|
|
|
15228
15228
|
type: "tel"
|
|
15229
15229
|
}
|
|
15230
15230
|
),
|
|
15231
|
-
|
|
15231
|
+
v && /* @__PURE__ */ t(_1, {})
|
|
15232
15232
|
] })
|
|
15233
15233
|
] }),
|
|
15234
15234
|
/* @__PURE__ */ l(y, { direction: s ? "column" : "row", spacing: s ? 44 : 24, sx: { mb: 44 }, children: [
|
|
@@ -16060,25 +16060,30 @@ 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
|
-
|
|
16063
|
+
loadInsightsNotificationProfiles: o,
|
|
16064
|
+
updateInsightsNotificationProfile: r
|
|
16065
|
+
} = Rt(), [s, c] = h.useState(null);
|
|
16066
|
+
h.useEffect(() => {
|
|
16067
|
+
o().finally();
|
|
16068
|
+
}, [o]);
|
|
16069
|
+
const d = h.useCallback(
|
|
16070
|
+
(_, u) => () => {
|
|
16071
|
+
r({
|
|
16072
|
+
..._,
|
|
16073
|
+
[u]: !_[u]
|
|
16069
16074
|
});
|
|
16070
16075
|
},
|
|
16071
|
-
[
|
|
16076
|
+
[r]
|
|
16072
16077
|
);
|
|
16073
16078
|
return /* @__PURE__ */ l(y, { children: [
|
|
16074
16079
|
/* @__PURE__ */ t(dt, { mb: 14, children: e.notification_types_title }),
|
|
16075
|
-
a.map((
|
|
16080
|
+
a.map((_, u) => /* @__PURE__ */ l(
|
|
16076
16081
|
Xn,
|
|
16077
16082
|
{
|
|
16078
16083
|
disableGutters: !0,
|
|
16079
|
-
expanded:
|
|
16080
|
-
sx: (
|
|
16081
|
-
borderBottom: `1px solid ${
|
|
16084
|
+
expanded: u === s,
|
|
16085
|
+
sx: (g) => ({
|
|
16086
|
+
borderBottom: `1px solid ${g.palette.border?.light}`,
|
|
16082
16087
|
my: 0,
|
|
16083
16088
|
boxShadow: "none",
|
|
16084
16089
|
"&:before": { opacity: 0 },
|
|
@@ -16090,15 +16095,15 @@ const l1 = x(() => {
|
|
|
16090
16095
|
/* @__PURE__ */ t(
|
|
16091
16096
|
qn,
|
|
16092
16097
|
{
|
|
16093
|
-
expandIcon: /* @__PURE__ */ t(O, { onClick: () =>
|
|
16094
|
-
sx: { height: 64, pr: 14 },
|
|
16098
|
+
expandIcon: /* @__PURE__ */ t(O, { onClick: () => c(u === s ? null : u), children: /* @__PURE__ */ t(Ui, { sx: { color: "text.primary" } }) }),
|
|
16099
|
+
sx: { height: 64, pr: 14, ".MuiSwitch-root": { mr: 24 } },
|
|
16095
16100
|
children: /* @__PURE__ */ t(
|
|
16096
16101
|
on,
|
|
16097
16102
|
{
|
|
16098
|
-
isChecked:
|
|
16099
|
-
onToggle:
|
|
16100
|
-
primaryText:
|
|
16101
|
-
secondaryText:
|
|
16103
|
+
isChecked: _.is_enabled,
|
|
16104
|
+
onToggle: d(_, "is_enabled"),
|
|
16105
|
+
primaryText: _.label,
|
|
16106
|
+
secondaryText: _.is_enabled ? _.deliveryMethodsLabel : n.connection_statuses[16]
|
|
16102
16107
|
}
|
|
16103
16108
|
)
|
|
16104
16109
|
}
|
|
@@ -16107,15 +16112,15 @@ const l1 = x(() => {
|
|
|
16107
16112
|
Zn,
|
|
16108
16113
|
{
|
|
16109
16114
|
sx: {
|
|
16110
|
-
borderTop: (
|
|
16115
|
+
borderTop: (g) => `1px solid ${g.palette.border?.light}`
|
|
16111
16116
|
},
|
|
16112
16117
|
children: /* @__PURE__ */ l(ae, { sx: { py: 10, bgcolor: "background.paper" }, children: [
|
|
16113
16118
|
/* @__PURE__ */ t(
|
|
16114
16119
|
on,
|
|
16115
16120
|
{
|
|
16116
|
-
isChecked: !i.opted_out_of_email_notifications &&
|
|
16121
|
+
isChecked: !i.opted_out_of_email_notifications && _.is_enabled && _.email_channel,
|
|
16117
16122
|
isDisabled: i.opted_out_of_email_notifications,
|
|
16118
|
-
onToggle:
|
|
16123
|
+
onToggle: d(_, "email_channel"),
|
|
16119
16124
|
primaryText: e.delivery_method_email_label
|
|
16120
16125
|
}
|
|
16121
16126
|
),
|
|
@@ -16123,9 +16128,9 @@ const l1 = x(() => {
|
|
|
16123
16128
|
/* @__PURE__ */ t(
|
|
16124
16129
|
on,
|
|
16125
16130
|
{
|
|
16126
|
-
isChecked: !i.opted_out_of_sms_notifications &&
|
|
16131
|
+
isChecked: !i.opted_out_of_sms_notifications && _.is_enabled && _.sms_channel,
|
|
16127
16132
|
isDisabled: i.opted_out_of_sms_notifications,
|
|
16128
|
-
onToggle:
|
|
16133
|
+
onToggle: d(_, "sms_channel"),
|
|
16129
16134
|
primaryText: e.delivery_method_sms_label
|
|
16130
16135
|
}
|
|
16131
16136
|
),
|
|
@@ -16133,9 +16138,9 @@ const l1 = x(() => {
|
|
|
16133
16138
|
/* @__PURE__ */ t(
|
|
16134
16139
|
on,
|
|
16135
16140
|
{
|
|
16136
|
-
isChecked: !i.opted_out_of_push_notifications &&
|
|
16141
|
+
isChecked: !i.opted_out_of_push_notifications && _.is_enabled && _.push_channel,
|
|
16137
16142
|
isDisabled: !0,
|
|
16138
|
-
onToggle:
|
|
16143
|
+
onToggle: d(_, "push_channel"),
|
|
16139
16144
|
primaryText: e.delivery_method_push_label
|
|
16140
16145
|
}
|
|
16141
16146
|
)
|
|
@@ -16144,7 +16149,7 @@ const l1 = x(() => {
|
|
|
16144
16149
|
)
|
|
16145
16150
|
]
|
|
16146
16151
|
},
|
|
16147
|
-
|
|
16152
|
+
_.guid
|
|
16148
16153
|
))
|
|
16149
16154
|
] });
|
|
16150
16155
|
}), xo = x(
|
|
@@ -16159,43 +16164,41 @@ const l1 = x(() => {
|
|
|
16159
16164
|
budgetProfiles: s,
|
|
16160
16165
|
clientCommunicationProfile: c,
|
|
16161
16166
|
detailedNotificationProfiles: d,
|
|
16162
|
-
|
|
16163
|
-
|
|
16164
|
-
|
|
16165
|
-
updateNotificationProfile: m
|
|
16166
|
-
} = Rt(), [C, f] = h.useState(void 0);
|
|
16167
|
+
loadNotificationProfiles: _,
|
|
16168
|
+
updateNotificationProfile: u
|
|
16169
|
+
} = Rt(), [g, m] = h.useState(void 0);
|
|
16167
16170
|
h.useEffect(() => {
|
|
16168
|
-
|
|
16171
|
+
_().finally();
|
|
16169
16172
|
}, []), h.useEffect(() => {
|
|
16170
|
-
|
|
16173
|
+
g && m(d.find((b) => b.guid === g.guid));
|
|
16171
16174
|
}, [r]);
|
|
16172
|
-
const
|
|
16173
|
-
await
|
|
16174
|
-
},
|
|
16175
|
-
const
|
|
16176
|
-
...
|
|
16177
|
-
is_enabled: !
|
|
16175
|
+
const C = async (b) => {
|
|
16176
|
+
await u(b);
|
|
16177
|
+
}, f = (b) => {
|
|
16178
|
+
const S = {
|
|
16179
|
+
...b,
|
|
16180
|
+
is_enabled: !b.is_enabled
|
|
16178
16181
|
};
|
|
16179
16182
|
if (n) {
|
|
16180
|
-
const
|
|
16181
|
-
|
|
16182
|
-
notificationType:
|
|
16183
|
+
const A = He[b.notification_type] || "Unknown";
|
|
16184
|
+
S.is_enabled ? n("opt_in_notification_insight", { notificationType: A }) : n("opt_out_notification_insight", {
|
|
16185
|
+
notificationType: A
|
|
16183
16186
|
});
|
|
16184
16187
|
}
|
|
16185
|
-
|
|
16186
|
-
};
|
|
16188
|
+
C(S);
|
|
16189
|
+
}, E = c.email_notifications_enabled || c.sms_notifications_enabled || c.push_notifications_enabled;
|
|
16187
16190
|
return /* @__PURE__ */ l(y, { sx: { px: o ? 24 : 0 }, children: [
|
|
16188
16191
|
e.includes(
|
|
16189
16192
|
"delivery"
|
|
16190
16193
|
/* Delivery */
|
|
16191
|
-
) &&
|
|
16194
|
+
) && E && /* @__PURE__ */ l(Z, { children: [
|
|
16192
16195
|
/* @__PURE__ */ t(A1, {}),
|
|
16193
16196
|
/* @__PURE__ */ t(P, { sx: { my: 24 } })
|
|
16194
16197
|
] }),
|
|
16195
16198
|
e.includes(
|
|
16196
16199
|
"insights"
|
|
16197
16200
|
/* Insights */
|
|
16198
|
-
) &&
|
|
16201
|
+
) && E && /* @__PURE__ */ l(Z, { children: [
|
|
16199
16202
|
/* @__PURE__ */ t(v1, {}),
|
|
16200
16203
|
/* @__PURE__ */ t(P, { sx: { mb: 24, mt: 0 } })
|
|
16201
16204
|
] }),
|
|
@@ -16204,17 +16207,17 @@ const l1 = x(() => {
|
|
|
16204
16207
|
/* Accounts */
|
|
16205
16208
|
) && /* @__PURE__ */ l(Z, { children: [
|
|
16206
16209
|
/* @__PURE__ */ t(dt, { mb: 24, children: i.accounts_title }),
|
|
16207
|
-
r.map((
|
|
16210
|
+
r.map((b) => /* @__PURE__ */ t(
|
|
16208
16211
|
Mi,
|
|
16209
16212
|
{
|
|
16210
|
-
isChecked:
|
|
16211
|
-
isDisabled: !
|
|
16212
|
-
onClick: () =>
|
|
16213
|
-
onToggle: () => b
|
|
16214
|
-
primaryText:
|
|
16215
|
-
secondaryText:
|
|
16213
|
+
isChecked: b.is_enabled,
|
|
16214
|
+
isDisabled: !b.is_enabled,
|
|
16215
|
+
onClick: () => m(b),
|
|
16216
|
+
onToggle: () => f(b),
|
|
16217
|
+
primaryText: b.label,
|
|
16218
|
+
secondaryText: b.is_enabled ? b.deliveryMethodsLabel : void 0
|
|
16216
16219
|
},
|
|
16217
|
-
|
|
16220
|
+
b.guid
|
|
16218
16221
|
)),
|
|
16219
16222
|
/* @__PURE__ */ t(P, { sx: { my: 24 } })
|
|
16220
16223
|
] }),
|
|
@@ -16223,27 +16226,27 @@ const l1 = x(() => {
|
|
|
16223
16226
|
/* Budgets */
|
|
16224
16227
|
) && /* @__PURE__ */ l(Z, { children: [
|
|
16225
16228
|
/* @__PURE__ */ t(dt, { mb: 24, children: i.budgets_title }),
|
|
16226
|
-
s.map((
|
|
16229
|
+
s.map((b) => /* @__PURE__ */ t(
|
|
16227
16230
|
Mi,
|
|
16228
16231
|
{
|
|
16229
|
-
isChecked:
|
|
16230
|
-
isDisabled: !
|
|
16231
|
-
onClick: () =>
|
|
16232
|
-
onToggle: () => b
|
|
16233
|
-
primaryText:
|
|
16234
|
-
secondaryText:
|
|
16232
|
+
isChecked: b.is_enabled,
|
|
16233
|
+
isDisabled: !b.is_enabled,
|
|
16234
|
+
onClick: () => m(b),
|
|
16235
|
+
onToggle: () => f(b),
|
|
16236
|
+
primaryText: b.label,
|
|
16237
|
+
secondaryText: b.is_enabled ? b.deliveryMethodsLabel : void 0
|
|
16235
16238
|
},
|
|
16236
|
-
|
|
16239
|
+
b.guid
|
|
16237
16240
|
))
|
|
16238
16241
|
] }),
|
|
16239
16242
|
/* @__PURE__ */ t(
|
|
16240
16243
|
ce,
|
|
16241
16244
|
{
|
|
16242
|
-
isOpen: !!
|
|
16243
|
-
onClose: () =>
|
|
16245
|
+
isOpen: !!g,
|
|
16246
|
+
onClose: () => m(void 0),
|
|
16244
16247
|
primaryText: a.save_button,
|
|
16245
|
-
title:
|
|
16246
|
-
children:
|
|
16248
|
+
title: g?.label || "",
|
|
16249
|
+
children: g && /* @__PURE__ */ t(x1, { onUpdateProfile: C, profile: g })
|
|
16247
16250
|
}
|
|
16248
16251
|
)
|
|
16249
16252
|
] });
|
|
@@ -16283,15 +16286,15 @@ const l1 = x(() => {
|
|
|
16283
16286
|
/* @__PURE__ */ t(y, { sx: { flexDirection: { xs: "column", md: "row" }, gap: 12 }, children: [0, 1].map((u) => {
|
|
16284
16287
|
const g = u === 0 ? 0 : _, m = u === 0 ? _ : a.length, C = a.slice(g, m);
|
|
16285
16288
|
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) => {
|
|
16286
|
-
const
|
|
16289
|
+
const N = A + g;
|
|
16287
16290
|
return /* @__PURE__ */ l(
|
|
16288
16291
|
Xn,
|
|
16289
16292
|
{
|
|
16290
16293
|
disableGutters: !0,
|
|
16291
|
-
expanded:
|
|
16292
|
-
onChange: (
|
|
16293
|
-
sx: (
|
|
16294
|
-
border: `1px solid ${
|
|
16294
|
+
expanded: N === c,
|
|
16295
|
+
onChange: (v, R) => d(R ? N : null),
|
|
16296
|
+
sx: (v) => ({
|
|
16297
|
+
border: `1px solid ${v.palette.border?.light}`,
|
|
16295
16298
|
borderRadius: "8px !important",
|
|
16296
16299
|
"&:before": {
|
|
16297
16300
|
opacity: 0
|
|
@@ -16322,12 +16325,12 @@ const l1 = x(() => {
|
|
|
16322
16325
|
ml: 56,
|
|
16323
16326
|
p: 0
|
|
16324
16327
|
},
|
|
16325
|
-
children: /* @__PURE__ */ t(ae, { disablePadding: !0, children: b.map(({ label:
|
|
16328
|
+
children: /* @__PURE__ */ t(ae, { disablePadding: !0, children: b.map(({ label: v, topicKey: R }) => /* @__PURE__ */ t(
|
|
16326
16329
|
_e,
|
|
16327
16330
|
{
|
|
16328
|
-
"aria-label":
|
|
16331
|
+
"aria-label": v,
|
|
16329
16332
|
divider: !0,
|
|
16330
|
-
onClick: () => s({ guid: f, category: S, pageTitle:
|
|
16333
|
+
onClick: () => s({ guid: f, category: S, pageTitle: v, topicKey: R }),
|
|
16331
16334
|
sx: {
|
|
16332
16335
|
pl: "6px !important",
|
|
16333
16336
|
borderColor: "border.light",
|
|
@@ -16336,7 +16339,7 @@ const l1 = x(() => {
|
|
|
16336
16339
|
borderBottomRightRadius: 7
|
|
16337
16340
|
}
|
|
16338
16341
|
},
|
|
16339
|
-
children: /* @__PURE__ */ t(p, { color: "secondary", variant: "Small", children:
|
|
16342
|
+
children: /* @__PURE__ */ t(p, { color: "secondary", variant: "Small", children: v })
|
|
16340
16343
|
},
|
|
16341
16344
|
R
|
|
16342
16345
|
)) })
|
|
@@ -18976,9 +18979,9 @@ const l1 = x(() => {
|
|
|
18976
18979
|
onPrimaryAction: () => {
|
|
18977
18980
|
const E = {};
|
|
18978
18981
|
let b = !0;
|
|
18979
|
-
g.forEach(({ label: S, name: A, required:
|
|
18980
|
-
const
|
|
18981
|
-
|
|
18982
|
+
g.forEach(({ label: S, name: A, required: N }) => {
|
|
18983
|
+
const v = _[A];
|
|
18984
|
+
N && !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);
|
|
18982
18985
|
}), d(E), b && (i(_), u(Ti));
|
|
18983
18986
|
},
|
|
18984
18987
|
secondaryColor: "primary",
|
|
@@ -19203,9 +19206,9 @@ const l1 = x(() => {
|
|
|
19203
19206
|
})), A = Object.keys(e.popular_topics_list).map((D, G) => ({
|
|
19204
19207
|
name: e.popular_topics_list[D],
|
|
19205
19208
|
type: ip[G].type
|
|
19206
|
-
})),
|
|
19209
|
+
})), N = () => {
|
|
19207
19210
|
u(""), b({ isOpen: !1, topic: "", type: void 0 });
|
|
19208
|
-
},
|
|
19211
|
+
}, v = (D) => {
|
|
19209
19212
|
c.email && o({
|
|
19210
19213
|
email: c.email,
|
|
19211
19214
|
message: _ ? `Institution: ${_}, ${D}` : D,
|
|
@@ -19214,7 +19217,7 @@ const l1 = x(() => {
|
|
|
19214
19217
|
}, R = (D, G) => {
|
|
19215
19218
|
G === "other" ? f(!0) : b({ isOpen: !0, topic: D, type: G });
|
|
19216
19219
|
}, L = () => {
|
|
19217
|
-
s(""), m(!1), f(!1),
|
|
19220
|
+
s(""), m(!1), f(!1), N();
|
|
19218
19221
|
}, B = (D) => {
|
|
19219
19222
|
if (!c.email) {
|
|
19220
19223
|
s(e.request_support_email_not_exists_message, "error");
|
|
@@ -19292,7 +19295,7 @@ const l1 = x(() => {
|
|
|
19292
19295
|
onClose: () => {
|
|
19293
19296
|
m(!1), u("");
|
|
19294
19297
|
},
|
|
19295
|
-
onSubmit:
|
|
19298
|
+
onSubmit: v,
|
|
19296
19299
|
setAlert: s,
|
|
19297
19300
|
topic: E.topic || e.contact_support
|
|
19298
19301
|
}
|
|
@@ -19314,7 +19317,7 @@ const l1 = x(() => {
|
|
|
19314
19317
|
onClick: (D) => {
|
|
19315
19318
|
u(D), E.type === "internal" && m(!0);
|
|
19316
19319
|
},
|
|
19317
|
-
onClose:
|
|
19320
|
+
onClose: N,
|
|
19318
19321
|
topic: E.topic
|
|
19319
19322
|
}
|
|
19320
19323
|
),
|
|
@@ -19337,7 +19340,7 @@ const l1 = x(() => {
|
|
|
19337
19340
|
institution: _,
|
|
19338
19341
|
isOpen: !!_ && E.type === "external",
|
|
19339
19342
|
onClose: () => u(""),
|
|
19340
|
-
popularTopicsDrawerOnClose:
|
|
19343
|
+
popularTopicsDrawerOnClose: N,
|
|
19341
19344
|
title: E.topic
|
|
19342
19345
|
}
|
|
19343
19346
|
)
|
|
@@ -19613,9 +19616,6 @@ class oC {
|
|
|
19613
19616
|
get clientCommunicationProfile() {
|
|
19614
19617
|
return this.appData.client_communication_profile;
|
|
19615
19618
|
}
|
|
19616
|
-
get clientInsightsEnabled() {
|
|
19617
|
-
return this.appData.client_insight_profile.is_enabled;
|
|
19618
|
-
}
|
|
19619
19619
|
get user() {
|
|
19620
19620
|
return this.appData.user;
|
|
19621
19621
|
}
|
|
@@ -20443,11 +20443,11 @@ const Ai = ({
|
|
|
20443
20443
|
account_type: b.account_type
|
|
20444
20444
|
});
|
|
20445
20445
|
}, E = (b) => {
|
|
20446
|
-
const S = b === "hidden" ? u : g, A = b === "hidden" ? m : C,
|
|
20446
|
+
const S = b === "hidden" ? u : g, A = b === "hidden" ? m : C, N = b === "hidden" ? a.account_hidden : a.account_closed;
|
|
20447
20447
|
return /* @__PURE__ */ t(O, { children: /* @__PURE__ */ t(
|
|
20448
20448
|
ae,
|
|
20449
20449
|
{
|
|
20450
|
-
"aria-label":
|
|
20450
|
+
"aria-label": N,
|
|
20451
20451
|
subheader: /* @__PURE__ */ t(Lt, { component: "h2", sx: { backgroundColor: "transparent", px: 24 }, children: /* @__PURE__ */ l(
|
|
20452
20452
|
we,
|
|
20453
20453
|
{
|
|
@@ -20455,19 +20455,19 @@ const Ai = ({
|
|
|
20455
20455
|
direction: "row",
|
|
20456
20456
|
sx: { justifyContent: "space-between", color: "grey.700" },
|
|
20457
20457
|
children: [
|
|
20458
|
-
/* @__PURE__ */ t(p, { bold: !0, variant: "Body", children:
|
|
20458
|
+
/* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: N }),
|
|
20459
20459
|
/* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: H(A, "0,0.00") })
|
|
20460
20460
|
]
|
|
20461
20461
|
}
|
|
20462
20462
|
) }),
|
|
20463
|
-
children: /* @__PURE__ */ t(we, { children: S.map((
|
|
20463
|
+
children: /* @__PURE__ */ t(we, { children: S.map((v, R, L) => {
|
|
20464
20464
|
const B = R === L.length - 1;
|
|
20465
20465
|
return /* @__PURE__ */ l(h.Fragment, { children: [
|
|
20466
20466
|
/* @__PURE__ */ t(
|
|
20467
20467
|
fa,
|
|
20468
20468
|
{
|
|
20469
|
-
account:
|
|
20470
|
-
onRowClick: () => f(
|
|
20469
|
+
account: v,
|
|
20470
|
+
onRowClick: () => f(v),
|
|
20471
20471
|
shouldShowConnectionStatus: !0
|
|
20472
20472
|
}
|
|
20473
20473
|
),
|
|
@@ -20488,7 +20488,7 @@ const Ai = ({
|
|
|
20488
20488
|
}
|
|
20489
20489
|
}
|
|
20490
20490
|
)
|
|
20491
|
-
] },
|
|
20491
|
+
] }, v.guid);
|
|
20492
20492
|
}) })
|
|
20493
20493
|
}
|
|
20494
20494
|
) });
|
|
@@ -20496,9 +20496,9 @@ const Ai = ({
|
|
|
20496
20496
|
return /* @__PURE__ */ l(O, { sx: { pt: 24 }, children: [
|
|
20497
20497
|
d.map((b) => {
|
|
20498
20498
|
const S = i.filter(
|
|
20499
|
-
(
|
|
20499
|
+
(N) => N.account_type === b && !N.is_closed && !N.is_hidden
|
|
20500
20500
|
), A = S.reduce(
|
|
20501
|
-
(
|
|
20501
|
+
(N, v) => (v.available_balance || v.balance || 0) + N,
|
|
20502
20502
|
0
|
|
20503
20503
|
);
|
|
20504
20504
|
return /* @__PURE__ */ t(
|
|
@@ -20517,18 +20517,18 @@ const Ai = ({
|
|
|
20517
20517
|
]
|
|
20518
20518
|
}
|
|
20519
20519
|
) }),
|
|
20520
|
-
children: /* @__PURE__ */ t(we, { children: S.map((
|
|
20521
|
-
const
|
|
20520
|
+
children: /* @__PURE__ */ t(we, { children: S.map((N) => {
|
|
20521
|
+
const v = i.indexOf(N) === i.length - 1, R = S.indexOf(N) === S.length - 1;
|
|
20522
20522
|
return /* @__PURE__ */ l(h.Fragment, { children: [
|
|
20523
20523
|
/* @__PURE__ */ t(
|
|
20524
20524
|
fa,
|
|
20525
20525
|
{
|
|
20526
|
-
account:
|
|
20527
|
-
onRowClick: () => f(
|
|
20526
|
+
account: N,
|
|
20527
|
+
onRowClick: () => f(N),
|
|
20528
20528
|
shouldShowConnectionStatus: !0
|
|
20529
20529
|
}
|
|
20530
20530
|
),
|
|
20531
|
-
(!
|
|
20531
|
+
(!v || g.length > 0 || u.length > 0) && /* @__PURE__ */ t(
|
|
20532
20532
|
P,
|
|
20533
20533
|
{
|
|
20534
20534
|
sx: {
|
|
@@ -20537,7 +20537,7 @@ const Ai = ({
|
|
|
20537
20537
|
}
|
|
20538
20538
|
}
|
|
20539
20539
|
)
|
|
20540
|
-
] },
|
|
20540
|
+
] }, N.guid);
|
|
20541
20541
|
}) })
|
|
20542
20542
|
},
|
|
20543
20543
|
b
|
|
@@ -21426,9 +21426,9 @@ const kC = () => {
|
|
|
21426
21426
|
e("survey dismissed", {
|
|
21427
21427
|
$survey_id: a
|
|
21428
21428
|
}), u(), S(!1);
|
|
21429
|
-
},
|
|
21429
|
+
}, N = () => {
|
|
21430
21430
|
r();
|
|
21431
|
-
},
|
|
21431
|
+
}, v = () => {
|
|
21432
21432
|
e("survey sent", _), u(), S(!0);
|
|
21433
21433
|
};
|
|
21434
21434
|
return f ? !i && !b ? null : /* @__PURE__ */ l(
|
|
@@ -21464,11 +21464,12 @@ const kC = () => {
|
|
|
21464
21464
|
J,
|
|
21465
21465
|
{
|
|
21466
21466
|
disabled: !o && !d,
|
|
21467
|
-
onClick: o ?
|
|
21467
|
+
onClick: o ? v : N,
|
|
21468
21468
|
sx: {
|
|
21469
21469
|
borderColor: n.palette.border.light,
|
|
21470
21470
|
"&:hover": {
|
|
21471
21471
|
// temp hardcoded dark mode color until design team decision
|
|
21472
|
+
// eslint-disable-next-line no-nested-ternary
|
|
21472
21473
|
backgroundColor: n.palette.mode === "dark" ? "#0749B240" : n.palette.primary.lighter,
|
|
21473
21474
|
borderColor: n.palette.primary.main
|
|
21474
21475
|
}
|
|
@@ -22024,7 +22025,7 @@ const JC = ({
|
|
|
22024
22025
|
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);
|
|
22025
22026
|
h.useEffect(() => {
|
|
22026
22027
|
r((S) => {
|
|
22027
|
-
const A = e.subCategories.find((
|
|
22028
|
+
const A = e.subCategories.find((N) => N.guid === S);
|
|
22028
22029
|
A && (f(A), m(`${A.currentAmount === 0 ? "" : A.currentAmount}`), u(!0));
|
|
22029
22030
|
});
|
|
22030
22031
|
}, []);
|
|
@@ -22077,7 +22078,7 @@ const JC = ({
|
|
|
22077
22078
|
h.useEffect(() => {
|
|
22078
22079
|
s && (b(`${s.amount}`), u({
|
|
22079
22080
|
..._,
|
|
22080
|
-
custom: (
|
|
22081
|
+
custom: (v) => v.category_guid === s.category_guid
|
|
22081
22082
|
}));
|
|
22082
22083
|
}, [s]);
|
|
22083
22084
|
const S = async () => {
|
|
@@ -22086,19 +22087,19 @@ const JC = ({
|
|
|
22086
22087
|
amount: Number(E)
|
|
22087
22088
|
});
|
|
22088
22089
|
}, A = async () => {
|
|
22089
|
-
s && await r(s.guid), f(!1),
|
|
22090
|
-
},
|
|
22090
|
+
s && await r(s.guid), f(!1), N();
|
|
22091
|
+
}, N = () => {
|
|
22091
22092
|
u({
|
|
22092
22093
|
..._,
|
|
22093
|
-
custom: (
|
|
22094
|
+
custom: (v) => v.category_guid === e.category_guid || v.top_level_category_guid === e.category_guid
|
|
22094
22095
|
}), c(void 0);
|
|
22095
22096
|
};
|
|
22096
22097
|
return /* @__PURE__ */ l(h.Fragment, { children: [
|
|
22097
22098
|
/* @__PURE__ */ l(ae, { sx: { bgcolor: "background.paper" }, children: [
|
|
22098
|
-
a.length === 0 ? /* @__PURE__ */ t(c0, {}) : a.map((
|
|
22099
|
-
/* @__PURE__ */ t(l0, { budget:
|
|
22099
|
+
a.length === 0 ? /* @__PURE__ */ t(c0, {}) : a.map((v) => /* @__PURE__ */ l(h.Fragment, { children: [
|
|
22100
|
+
/* @__PURE__ */ t(l0, { budget: v }),
|
|
22100
22101
|
/* @__PURE__ */ t(P, {})
|
|
22101
|
-
] },
|
|
22102
|
+
] }, v.guid)),
|
|
22102
22103
|
/* @__PURE__ */ t(d0, { category: n, parentBudget: e })
|
|
22103
22104
|
] }),
|
|
22104
22105
|
/* @__PURE__ */ t(
|
|
@@ -22106,7 +22107,7 @@ const JC = ({
|
|
|
22106
22107
|
{
|
|
22107
22108
|
ariaLabelClose: o.close_aria,
|
|
22108
22109
|
isOpen: !!s,
|
|
22109
|
-
onClose:
|
|
22110
|
+
onClose: N,
|
|
22110
22111
|
onPrimaryAction: () => m(!0),
|
|
22111
22112
|
onSecondaryAction: () => f(!0),
|
|
22112
22113
|
primaryText: i.details_edit_button,
|
|
@@ -22221,13 +22222,13 @@ const JC = ({
|
|
|
22221
22222
|
custom: (L) => L.category_guid === r.category_guid || L.top_level_category_guid === r.category_guid
|
|
22222
22223
|
}));
|
|
22223
22224
|
}, [r]);
|
|
22224
|
-
const
|
|
22225
|
+
const N = async () => {
|
|
22225
22226
|
r && (await _({
|
|
22226
22227
|
...r,
|
|
22227
22228
|
amount: Number(S),
|
|
22228
22229
|
percentage: r.category.totalAmount / Number(S) * 100
|
|
22229
22230
|
}), c(T(n.alert_budget_updated, r.category.name)));
|
|
22230
|
-
},
|
|
22231
|
+
}, v = async () => {
|
|
22231
22232
|
r && (await o(r.guid), c(T(n.alert_budget_deleted, r.category.name))), b(!1), R();
|
|
22232
22233
|
}, R = () => {
|
|
22233
22234
|
m(!1), setTimeout(() => {
|
|
@@ -22258,7 +22259,7 @@ const JC = ({
|
|
|
22258
22259
|
disablePrimaryButton: Number(S) <= 0,
|
|
22259
22260
|
isOpen: C,
|
|
22260
22261
|
onClose: () => f(!1),
|
|
22261
|
-
onPrimaryAction:
|
|
22262
|
+
onPrimaryAction: N,
|
|
22262
22263
|
primaryText: n.edit_save_button,
|
|
22263
22264
|
children: /* @__PURE__ */ t(
|
|
22264
22265
|
hi,
|
|
@@ -22276,7 +22277,7 @@ const JC = ({
|
|
|
22276
22277
|
copy: { close_aria: a.close_aria, title: n.delete_title },
|
|
22277
22278
|
isOpen: E,
|
|
22278
22279
|
onClose: () => b(!1),
|
|
22279
|
-
onPrimaryAction:
|
|
22280
|
+
onPrimaryAction: v,
|
|
22280
22281
|
primaryColor: "error",
|
|
22281
22282
|
primaryText: n.details_delete_button,
|
|
22282
22283
|
secondaryColor: "secondary",
|
|
@@ -22329,34 +22330,34 @@ const JC = ({
|
|
|
22329
22330
|
] });
|
|
22330
22331
|
}), p0 = x(() => {
|
|
22331
22332
|
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(() => {
|
|
22332
|
-
const
|
|
22333
|
-
let
|
|
22334
|
-
|
|
22333
|
+
const N = c.reduce((B, D) => B + D.totalAmount, 0);
|
|
22334
|
+
let v = N / _;
|
|
22335
|
+
v > 1 && (v = 1);
|
|
22335
22336
|
let R = e.palette.success.main;
|
|
22336
|
-
|
|
22337
|
+
v > 0.8 && v < 1 ? R = e.palette.warning.main : v >= 1 && (R = e.palette.error.main);
|
|
22337
22338
|
const L = [
|
|
22338
22339
|
{
|
|
22339
22340
|
color: R,
|
|
22340
|
-
percentage: `${
|
|
22341
|
+
percentage: `${v}`
|
|
22341
22342
|
}
|
|
22342
22343
|
];
|
|
22343
|
-
return [
|
|
22344
|
+
return [N, L];
|
|
22344
22345
|
}, [d, c]), [b, S] = h.useMemo(() => {
|
|
22345
|
-
const
|
|
22346
|
+
const N = Math.abs(
|
|
22346
22347
|
s.reduce((L, B) => L + B.totalAmount, 0)
|
|
22347
22348
|
);
|
|
22348
|
-
let
|
|
22349
|
-
|
|
22349
|
+
let v = N / u;
|
|
22350
|
+
v > 1 && (v = 1);
|
|
22350
22351
|
const R = [
|
|
22351
22352
|
{
|
|
22352
22353
|
color: e.palette.secondary.main,
|
|
22353
|
-
percentage: `${
|
|
22354
|
+
percentage: `${v}`
|
|
22354
22355
|
}
|
|
22355
22356
|
];
|
|
22356
|
-
return [
|
|
22357
|
+
return [N, R];
|
|
22357
22358
|
}, [s, u]), A = () => {
|
|
22358
22359
|
g({
|
|
22359
|
-
accounts: a.map((
|
|
22360
|
+
accounts: a.map((N) => N.guid),
|
|
22360
22361
|
dateRange: {
|
|
22361
22362
|
start: wt(/* @__PURE__ */ new Date(), 90),
|
|
22362
22363
|
end: /* @__PURE__ */ new Date()
|
|
@@ -22419,14 +22420,14 @@ const JC = ({
|
|
|
22419
22420
|
setDateRange: b,
|
|
22420
22421
|
setAlert: S,
|
|
22421
22422
|
setTheme: A,
|
|
22422
|
-
budgets:
|
|
22423
|
-
} = _t(), { loadRepeatingTransactions:
|
|
22423
|
+
budgets: N
|
|
22424
|
+
} = _t(), { loadRepeatingTransactions: v } = Ze(), { reloadCategoryTotals: R } = Ve(), { isSmallTablet: L, isMobile: B, isSmallMobile: D } = Ce(), G = L || B || D, [k, U] = h.useState(!1);
|
|
22424
22425
|
h.useEffect(() => {
|
|
22425
22426
|
A(a), g(o), u(C.start, C.end), i(W.BUDGETS_VIEW);
|
|
22426
22427
|
}, []), h.useEffect(() => {
|
|
22427
22428
|
g(o);
|
|
22428
22429
|
}, [o]), h.useEffect(() => {
|
|
22429
|
-
d && (R(_, C.start, C.end).finally(), f || (
|
|
22430
|
+
d && (R(_, C.start, C.end).finally(), f || (v().finally(), E().finally()));
|
|
22430
22431
|
}, [d, _, C]);
|
|
22431
22432
|
const oe = (Oe) => {
|
|
22432
22433
|
b({ start: Oe[0] || /* @__PURE__ */ new Date(), end: Oe[1] || /* @__PURE__ */ new Date() });
|
|
@@ -22469,11 +22470,11 @@ const JC = ({
|
|
|
22469
22470
|
createBudgetOnClick: te,
|
|
22470
22471
|
height: G ? 450 : 800,
|
|
22471
22472
|
isDraggable: !0,
|
|
22472
|
-
shouldShowZeroState:
|
|
22473
|
+
shouldShowZeroState: N.length === 0,
|
|
22473
22474
|
unavailableWidth: G ? 0 : Ur
|
|
22474
22475
|
}
|
|
22475
22476
|
) }),
|
|
22476
|
-
|
|
22477
|
+
N.length !== 0 && /* @__PURE__ */ l(
|
|
22477
22478
|
y,
|
|
22478
22479
|
{
|
|
22479
22480
|
gap: 24,
|
|
@@ -22805,10 +22806,10 @@ const S0 = ({ widgets: e, isLoading: n }) => {
|
|
|
22805
22806
|
), m = u + d;
|
|
22806
22807
|
A0.forEach((f, E) => {
|
|
22807
22808
|
const b = c.filter(
|
|
22808
|
-
(
|
|
22809
|
+
(N) => !!N[f.name]
|
|
22809
22810
|
);
|
|
22810
22811
|
let S = b.reduce(
|
|
22811
|
-
(
|
|
22812
|
+
(N, v) => N + Pa(v) * v[f.name] / 100,
|
|
22812
22813
|
0
|
|
22813
22814
|
);
|
|
22814
22815
|
const A = x0(
|
|
@@ -22818,13 +22819,13 @@ const S0 = ({ widgets: e, isLoading: n }) => {
|
|
|
22818
22819
|
);
|
|
22819
22820
|
if (f.name === "allocations_cash" && d > 0) {
|
|
22820
22821
|
S += d;
|
|
22821
|
-
const
|
|
22822
|
+
const N = {
|
|
22822
22823
|
displayName: n.cash_balance_display_name,
|
|
22823
22824
|
name: "allocations_name",
|
|
22824
22825
|
value: d,
|
|
22825
22826
|
percentage: d / m
|
|
22826
22827
|
};
|
|
22827
|
-
A.push(
|
|
22828
|
+
A.push(N);
|
|
22828
22829
|
}
|
|
22829
22830
|
S > 0 && (o.push({
|
|
22830
22831
|
name: f.name,
|
|
@@ -23283,16 +23284,16 @@ const S0 = ({ widgets: e, isLoading: n }) => {
|
|
|
23283
23284
|
}
|
|
23284
23285
|
),
|
|
23285
23286
|
n.map((C, f, E) => /* @__PURE__ */ t(y, { sx: { flexDirection: "row", gap: 4 }, children: C.map((b, S) => {
|
|
23286
|
-
const A = f === 0,
|
|
23287
|
+
const A = f === 0, N = f === E.length - 1, v = S === 0, R = S === C.length - 1, L = Number(b.replace("%", "")) >= 25;
|
|
23287
23288
|
let B = "grey.200", D = "grey.900";
|
|
23288
23289
|
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(
|
|
23289
23290
|
y,
|
|
23290
23291
|
{
|
|
23291
23292
|
sx: {
|
|
23292
23293
|
...{
|
|
23293
|
-
borderBottomLeftRadius:
|
|
23294
|
-
borderBottomRightRadius:
|
|
23295
|
-
borderTopLeftRadius: A &&
|
|
23294
|
+
borderBottomLeftRadius: N && v ? 4 : 0,
|
|
23295
|
+
borderBottomRightRadius: N && R ? 4 : 0,
|
|
23296
|
+
borderTopLeftRadius: A && v ? 4 : 0,
|
|
23296
23297
|
borderTopRightRadius: A && R ? 4 : 0
|
|
23297
23298
|
},
|
|
23298
23299
|
alignItems: "center",
|
|
@@ -23826,7 +23827,7 @@ const S0 = ({ widgets: e, isLoading: n }) => {
|
|
|
23826
23827
|
const { isMobile: e } = Ce(), [n, a] = St({}), [i, o] = St(!1), { selectedAccountGuids: r } = le(), { visibleHoldings: s, updateHoldings: c } = Gn(), [d, _] = h.useState(!1), [u, g] = St({
|
|
23827
23828
|
accounts: [],
|
|
23828
23829
|
holdings: []
|
|
23829
|
-
}), { accounts: m, investments: C } = I(), { isCopyLoaded: f } = le(), [E, b] = St(null), [S, A] = St(""),
|
|
23830
|
+
}), { accounts: m, investments: C } = I(), { isCopyLoaded: f } = le(), [E, b] = St(null), [S, A] = St(""), v = fe().palette.mode === "dark", R = v ? "#0AC295" : "#09A57F", L = v ? "grey.300" : "grey.700", B = (Q, ee = "lesserThan") => ee === "greaterThan" ? Q >= 0 ? R : L : Q <= 0 ? L : R, D = (Q, ee) => {
|
|
23830
23831
|
b(Q), A(ee.toFixed(2));
|
|
23831
23832
|
}, G = (Q) => {
|
|
23832
23833
|
const ee = Q.target.value;
|
|
@@ -24077,7 +24078,7 @@ const S0 = ({ widgets: e, isLoading: n }) => {
|
|
|
24077
24078
|
},
|
|
24078
24079
|
Q.guid
|
|
24079
24080
|
);
|
|
24080
|
-
const Ge =
|
|
24081
|
+
const Ge = v ? "grey.700" : "grey.400", Bt = ee.length ? "text.primary" : Ge;
|
|
24081
24082
|
return /* @__PURE__ */ l(
|
|
24082
24083
|
Xn,
|
|
24083
24084
|
{
|
|
@@ -24260,7 +24261,7 @@ const S0 = ({ widgets: e, isLoading: n }) => {
|
|
|
24260
24261
|
W.INVESTMENT_WIDGET_DETAILS_CLICK,
|
|
24261
24262
|
W.INVESTMENT_WIDGET_ALLOCATION_CLICK,
|
|
24262
24263
|
W.INVESTMENT_WIDGET_ANALYSIS_CLICK
|
|
24263
|
-
], A = o.length === 0 && r.length === 0,
|
|
24264
|
+
], A = o.length === 0 && r.length === 0, N = [
|
|
24264
24265
|
d.tab_overview_title,
|
|
24265
24266
|
d.tab_allocation_title,
|
|
24266
24267
|
d.tab_analysis_title
|
|
@@ -24278,14 +24279,14 @@ const S0 = ({ widgets: e, isLoading: n }) => {
|
|
|
24278
24279
|
/* @__PURE__ */ t(
|
|
24279
24280
|
jt,
|
|
24280
24281
|
{
|
|
24281
|
-
onChange: (
|
|
24282
|
+
onChange: (v, R) => {
|
|
24282
24283
|
f(R), a(S[R]);
|
|
24283
24284
|
},
|
|
24284
24285
|
sx: { bgcolor: "background.paper" },
|
|
24285
24286
|
textColor: "primary",
|
|
24286
24287
|
value: A ? -1 : C,
|
|
24287
24288
|
variant: "fullWidth",
|
|
24288
|
-
children:
|
|
24289
|
+
children: N.map((v) => /* @__PURE__ */ t(Je, { disabled: A, label: /* @__PURE__ */ t(W0, { title: v }) }, v))
|
|
24289
24290
|
}
|
|
24290
24291
|
),
|
|
24291
24292
|
A ? /* @__PURE__ */ t(
|
|
@@ -24571,7 +24572,7 @@ const va = h.createContext(null), X0 = ({
|
|
|
24571
24572
|
variant: f,
|
|
24572
24573
|
widthOverrides: E
|
|
24573
24574
|
}, b) {
|
|
24574
|
-
const [S, A] = h.useState(2), [
|
|
24575
|
+
const [S, A] = h.useState(2), [N, v] = h.useState(!1);
|
|
24575
24576
|
h.useEffect(() => {
|
|
24576
24577
|
E && E <= 325 && A(3);
|
|
24577
24578
|
}, [E]);
|
|
@@ -24614,13 +24615,13 @@ const va = h.createContext(null), X0 = ({
|
|
|
24614
24615
|
"aria-label": a,
|
|
24615
24616
|
id: "divButton",
|
|
24616
24617
|
onClick: () => _(),
|
|
24617
|
-
onKeyDown: () =>
|
|
24618
|
-
onKeyUp: () =>
|
|
24618
|
+
onKeyDown: () => v(!1),
|
|
24619
|
+
onKeyUp: () => v(!0),
|
|
24619
24620
|
ref: b,
|
|
24620
24621
|
role: "button",
|
|
24621
24622
|
style: {
|
|
24622
24623
|
borderRadius: "8px",
|
|
24623
|
-
border:
|
|
24624
|
+
border: N ? "1px solid rgba(82, 138, 224, 0.8)" : void 0
|
|
24624
24625
|
},
|
|
24625
24626
|
tabIndex: c ? 0 : -1,
|
|
24626
24627
|
children: /* @__PURE__ */ t(
|
|
@@ -24685,7 +24686,7 @@ const va = h.createContext(null), X0 = ({
|
|
|
24685
24686
|
);
|
|
24686
24687
|
}
|
|
24687
24688
|
), Z0 = ({ beat: e }) => {
|
|
24688
|
-
const [n, a] = St(
|
|
24689
|
+
const [n, a] = St(w.UNCATEGORIZED);
|
|
24689
24690
|
return Mn(() => {
|
|
24690
24691
|
e.primary_category_guid ? a(e.primary_category_guid) : e.category_guids?.length && a(e.category_guids[0]);
|
|
24691
24692
|
}, []), /* @__PURE__ */ t(Mt, { categoryGuid: n, size: 16, sx: { minWidth: 16 } });
|
|
@@ -25591,11 +25592,11 @@ const va = h.createContext(null), X0 = ({
|
|
|
25591
25592
|
}, [f]), Mn(() => {
|
|
25592
25593
|
if (f && a)
|
|
25593
25594
|
if (a.template === "MarketingOffer") {
|
|
25594
|
-
const
|
|
25595
|
+
const v = a;
|
|
25595
25596
|
_?.capture("viewed_messaging_insight", {
|
|
25596
25597
|
template: a.template,
|
|
25597
|
-
campaign_guid:
|
|
25598
|
-
campaign_name:
|
|
25598
|
+
campaign_guid: v.campaign_guid,
|
|
25599
|
+
campaign_name: v.pulse_campaign_name
|
|
25599
25600
|
});
|
|
25600
25601
|
} else
|
|
25601
25602
|
_?.capture("viewed_insight", {
|
|
@@ -25604,13 +25605,13 @@ const va = h.createContext(null), X0 = ({
|
|
|
25604
25605
|
position: s
|
|
25605
25606
|
});
|
|
25606
25607
|
}, [a, s, f]);
|
|
25607
|
-
const
|
|
25608
|
+
const N = () => {
|
|
25608
25609
|
if (d && d(a), b(Nc(a.template)), a.template === "MarketingOffer") {
|
|
25609
|
-
const
|
|
25610
|
+
const v = a;
|
|
25610
25611
|
_?.capture("clicked_messaging_insight", {
|
|
25611
25612
|
template: a.template,
|
|
25612
|
-
campaign_guid:
|
|
25613
|
-
campaign_name:
|
|
25613
|
+
campaign_guid: v.campaign_guid,
|
|
25614
|
+
campaign_name: v.pulse_campaign_name
|
|
25614
25615
|
});
|
|
25615
25616
|
} else
|
|
25616
25617
|
_?.capture("clicked_insight", {
|
|
@@ -25638,7 +25639,7 @@ const va = h.createContext(null), X0 = ({
|
|
|
25638
25639
|
}
|
|
25639
25640
|
),
|
|
25640
25641
|
isActiveCard: c,
|
|
25641
|
-
onCardClick:
|
|
25642
|
+
onCardClick: N,
|
|
25642
25643
|
posthog: _,
|
|
25643
25644
|
ref: C,
|
|
25644
25645
|
showCTAColocatedWithText: o,
|
|
@@ -25734,8 +25735,8 @@ const va = h.createContext(null), X0 = ({
|
|
|
25734
25735
|
variant: _,
|
|
25735
25736
|
widthOverrides: u
|
|
25736
25737
|
}) => {
|
|
25737
|
-
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:
|
|
25738
|
-
|
|
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: N } = Rn(), { onEvent: v } = wa(), R = () => {
|
|
25739
|
+
v($t.ON_CAROUSEL_FORWARD_CLICK), m.current && m.current.scrollTo({
|
|
25739
25740
|
left: (
|
|
25740
25741
|
// Adds the flex gap to the carousel ref's width
|
|
25741
25742
|
(m.current.offsetWidth + 8) * (Math.floor(C / (m.current.offsetWidth + 8)) + 1)
|
|
@@ -25744,7 +25745,7 @@ const va = h.createContext(null), X0 = ({
|
|
|
25744
25745
|
behavior: "smooth"
|
|
25745
25746
|
});
|
|
25746
25747
|
}, L = () => {
|
|
25747
|
-
|
|
25748
|
+
v($t.ON_CAROUSEL_BACK_CLICK), m.current && m.current.scrollTo({
|
|
25748
25749
|
left: (m.current.offsetWidth + 8) * (Math.floor(C / (m.current.offsetWidth + 8)) - 1),
|
|
25749
25750
|
top: 0,
|
|
25750
25751
|
behavior: "smooth"
|
|
@@ -25753,7 +25754,7 @@ const va = h.createContext(null), X0 = ({
|
|
|
25753
25754
|
m.current && f(m.current.scrollLeft);
|
|
25754
25755
|
}, D = () => {
|
|
25755
25756
|
if (!S || !E) return;
|
|
25756
|
-
S - E > rf ?
|
|
25757
|
+
S - E > rf ? v($t.ON_CAROUSEL_FORWARD_SWIPE) : v($t.ON_CAROUSEL_BACK_SWIPE);
|
|
25757
25758
|
}, G = (te) => {
|
|
25758
25759
|
b(te.targetTouches[0].clientX);
|
|
25759
25760
|
}, k = (te) => {
|
|
@@ -25770,7 +25771,7 @@ const va = h.createContext(null), X0 = ({
|
|
|
25770
25771
|
return /* @__PURE__ */ l(
|
|
25771
25772
|
"div",
|
|
25772
25773
|
{
|
|
25773
|
-
"aria-label":
|
|
25774
|
+
"aria-label": N.carousel_title,
|
|
25774
25775
|
"aria-roledescription": "carousel",
|
|
25775
25776
|
className: g,
|
|
25776
25777
|
role: "group/region",
|
|
@@ -25787,7 +25788,7 @@ const va = h.createContext(null), X0 = ({
|
|
|
25787
25788
|
children: [
|
|
25788
25789
|
e.map((te, he) => {
|
|
25789
25790
|
const Re = he + 1, Oe = e.length + 1, Se = T(
|
|
25790
|
-
|
|
25791
|
+
N.card_position_in_carousel_aria,
|
|
25791
25792
|
Re.toString(),
|
|
25792
25793
|
Oe.toString()
|
|
25793
25794
|
), 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;
|
|
@@ -26078,8 +26079,8 @@ const va = h.createContext(null), X0 = ({
|
|
|
26078
26079
|
token: b = "",
|
|
26079
26080
|
useDarkMode: S,
|
|
26080
26081
|
userHasFullInsightFeedBeats: A,
|
|
26081
|
-
variant:
|
|
26082
|
-
widthOverrides:
|
|
26082
|
+
variant: N,
|
|
26083
|
+
widthOverrides: v
|
|
26083
26084
|
}) => {
|
|
26084
26085
|
const R = at(), [L, B] = St("STANDARD"), [D, G] = St(!1), k = Qd([d], _n), U = Jd([_], _n);
|
|
26085
26086
|
h.useEffect(() => {
|
|
@@ -26098,17 +26099,17 @@ const va = h.createContext(null), X0 = ({
|
|
|
26098
26099
|
showIcon: f,
|
|
26099
26100
|
showWithMargin: E,
|
|
26100
26101
|
useDarkMode: S,
|
|
26101
|
-
widthOverrides:
|
|
26102
|
+
widthOverrides: v
|
|
26102
26103
|
}, me = {
|
|
26103
26104
|
carouselSize: L,
|
|
26104
|
-
variant:
|
|
26105
|
+
variant: N,
|
|
26105
26106
|
...oe
|
|
26106
26107
|
};
|
|
26107
26108
|
return (
|
|
26108
26109
|
// The Theme provider must wrap the component so that the styles don't break when imported into other applications.
|
|
26109
26110
|
/* @__PURE__ */ l(hl, { theme: R, children: [
|
|
26110
26111
|
/* @__PURE__ */ t(xd, {}),
|
|
26111
|
-
/* @__PURE__ */ t(X0, { onEvent: k, onPageview: U, store: _n, children: /* @__PURE__ */ l(mf, { heightOverrides: r, widthOverrides:
|
|
26112
|
+
/* @__PURE__ */ t(X0, { onEvent: k, onPageview: U, store: _n, children: /* @__PURE__ */ l(mf, { heightOverrides: r, widthOverrides: v, children: [
|
|
26112
26113
|
(e || !_n.isInitialized) && /* @__PURE__ */ t(pf, {}),
|
|
26113
26114
|
D && C && /* @__PURE__ */ t(
|
|
26114
26115
|
gf,
|
|
@@ -26116,7 +26117,7 @@ const va = h.createContext(null), X0 = ({
|
|
|
26116
26117
|
clientColorScheme: a,
|
|
26117
26118
|
onCardClick: c,
|
|
26118
26119
|
posthog: u,
|
|
26119
|
-
widthOverrides:
|
|
26120
|
+
widthOverrides: v
|
|
26120
26121
|
}
|
|
26121
26122
|
),
|
|
26122
26123
|
D && !!n.length && /* @__PURE__ */ t(
|
|
@@ -26125,7 +26126,7 @@ const va = h.createContext(null), X0 = ({
|
|
|
26125
26126
|
beats: n,
|
|
26126
26127
|
clientColorScheme: a,
|
|
26127
26128
|
showCarouselControls: m,
|
|
26128
|
-
variant: g ?
|
|
26129
|
+
variant: g ? N : void 0,
|
|
26129
26130
|
...oe
|
|
26130
26131
|
}
|
|
26131
26132
|
),
|
|
@@ -26199,7 +26200,7 @@ const va = h.createContext(null), X0 = ({
|
|
|
26199
26200
|
}
|
|
26200
26201
|
return a;
|
|
26201
26202
|
}, []), Hc = (e, n) => {
|
|
26202
|
-
const a = yf(e, n), i = a.filter((d) => d.guid !==
|
|
26203
|
+
const a = yf(e, n), i = a.filter((d) => d.guid !== w.INCOME && d.guid !== w.TRANSFER).sort((d, _) => _.amount - d.amount), o = i.reduce(
|
|
26203
26204
|
(d, _) => d + _.amount,
|
|
26204
26205
|
0
|
|
26205
26206
|
), r = i.length > xi ? xi : i.length, s = i.slice(0, r), c = s.map((d) => ({
|
|
@@ -26237,7 +26238,7 @@ const va = h.createContext(null), X0 = ({
|
|
|
26237
26238
|
};
|
|
26238
26239
|
}, Fc = (e, n, a) => {
|
|
26239
26240
|
const i = e.filter(
|
|
26240
|
-
(c) => c.parent_guid ===
|
|
26241
|
+
(c) => c.parent_guid === w.INCOME
|
|
26241
26242
|
), o = n.filter((c) => i.some((d) => d.guid === c.category_guid)).sort((c, d) => c.total - d.total).map((c, d) => ({
|
|
26242
26243
|
guid: c.category_guid,
|
|
26243
26244
|
name: e.find((_) => _.guid === c.category_guid)?.name,
|
|
@@ -26290,7 +26291,7 @@ const va = h.createContext(null), X0 = ({
|
|
|
26290
26291
|
/* @__PURE__ */ t(
|
|
26291
26292
|
Mt,
|
|
26292
26293
|
{
|
|
26293
|
-
categoryGuid: n ?
|
|
26294
|
+
categoryGuid: n ? w.INCOME : g.guid,
|
|
26294
26295
|
size: c === "mini" ? 24 : f,
|
|
26295
26296
|
variant: Jr.Transparent
|
|
26296
26297
|
}
|
|
@@ -26587,10 +26588,10 @@ const va = h.createContext(null), X0 = ({
|
|
|
26587
26588
|
const A = h.useMemo(
|
|
26588
26589
|
() => Hc(n, a),
|
|
26589
26590
|
[n, a]
|
|
26590
|
-
),
|
|
26591
|
+
), N = h.useMemo(
|
|
26591
26592
|
() => Fc(n, a, wf(e)),
|
|
26592
26593
|
[n, a]
|
|
26593
|
-
),
|
|
26594
|
+
), v = h.useMemo(
|
|
26594
26595
|
() => _.find((D) => D.guid === f),
|
|
26595
26596
|
[f]
|
|
26596
26597
|
), R = (D, G) => {
|
|
@@ -26612,12 +26613,12 @@ const va = h.createContext(null), X0 = ({
|
|
|
26612
26613
|
} else
|
|
26613
26614
|
d({
|
|
26614
26615
|
...G,
|
|
26615
|
-
custom: (k) => D ? k.top_level_category_guid === D : k.top_level_category_guid !==
|
|
26616
|
+
custom: (k) => D ? k.top_level_category_guid === D : k.top_level_category_guid !== w.INCOME
|
|
26616
26617
|
});
|
|
26617
26618
|
else
|
|
26618
26619
|
d({
|
|
26619
26620
|
...G,
|
|
26620
|
-
custom: (k) => D ? k.category_guid === D : k.top_level_category_guid ===
|
|
26621
|
+
custom: (k) => D ? k.category_guid === D : k.top_level_category_guid === w.INCOME
|
|
26621
26622
|
});
|
|
26622
26623
|
S(!0);
|
|
26623
26624
|
};
|
|
@@ -26641,7 +26642,7 @@ const va = h.createContext(null), X0 = ({
|
|
|
26641
26642
|
label: /* @__PURE__ */ t(
|
|
26642
26643
|
Xa,
|
|
26643
26644
|
{
|
|
26644
|
-
amount:
|
|
26645
|
+
amount: N.totalAmount,
|
|
26645
26646
|
label: o.income_tab_title
|
|
26646
26647
|
}
|
|
26647
26648
|
)
|
|
@@ -26661,7 +26662,7 @@ const va = h.createContext(null), X0 = ({
|
|
|
26661
26662
|
m === 1 && /* @__PURE__ */ t(
|
|
26662
26663
|
qr,
|
|
26663
26664
|
{
|
|
26664
|
-
data:
|
|
26665
|
+
data: N,
|
|
26665
26666
|
onSelected: L,
|
|
26666
26667
|
onViewTransactions: B,
|
|
26667
26668
|
selectedId: u,
|
|
@@ -26682,10 +26683,10 @@ const va = h.createContext(null), X0 = ({
|
|
|
26682
26683
|
ce,
|
|
26683
26684
|
{
|
|
26684
26685
|
ariaLabelClose: o.close_drawer_aria,
|
|
26685
|
-
isOpen: !!
|
|
26686
|
+
isOpen: !!v,
|
|
26686
26687
|
onClose: () => E(""),
|
|
26687
26688
|
title: o.transaction_details_drawer_title,
|
|
26688
|
-
children:
|
|
26689
|
+
children: v && /* @__PURE__ */ t(ea, { transaction: v })
|
|
26689
26690
|
}
|
|
26690
26691
|
)
|
|
26691
26692
|
] });
|
|
@@ -26815,15 +26816,15 @@ const kf = (e) => e.reduce((a, i) => {
|
|
|
26815
26816
|
(E) => E.category_guid === a || E.top_level_category_guid === a
|
|
26816
26817
|
) : e).reduce(
|
|
26817
26818
|
(E, b) => {
|
|
26818
|
-
const { category_guid: S, top_level_category_guid: A, month:
|
|
26819
|
+
const { category_guid: S, top_level_category_guid: A, month: N, total: v, year: R } = b, L = a ? S : A;
|
|
26819
26820
|
E[L] || (E[L] = {
|
|
26820
26821
|
id: L,
|
|
26821
26822
|
category: L,
|
|
26822
26823
|
category_guid: S,
|
|
26823
26824
|
top_level_category_guid: A
|
|
26824
26825
|
});
|
|
26825
|
-
const B = re(new Date(R,
|
|
26826
|
-
return E[L][B] || (E[L][B] = 0), E[L][B] = E[L][B] +
|
|
26826
|
+
const B = re(new Date(R, N - 1), ne.MONTH_SHORT);
|
|
26827
|
+
return E[L][B] || (E[L][B] = 0), E[L][B] = E[L][B] + v, E;
|
|
26827
26828
|
},
|
|
26828
26829
|
{}
|
|
26829
26830
|
);
|
|
@@ -26884,7 +26885,7 @@ const kf = (e) => e.reduce((a, i) => {
|
|
|
26884
26885
|
}, Kf = x(Vf), zf = {
|
|
26885
26886
|
view_transactions: "View Transactions"
|
|
26886
26887
|
}, Yf = ({ onBackClick: e, sx: n }) => {
|
|
26887
|
-
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,
|
|
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, N] = h.useState(!1), [v, R] = h.useState(!1), [L, B] = h.useState("Chart"), [D, G] = h.useState(""), [k, U] = h.useState({
|
|
26888
26889
|
start: Wo(Qe(Vt(/* @__PURE__ */ new Date(), 6)), 1),
|
|
26889
26890
|
end: Qe(/* @__PURE__ */ new Date())
|
|
26890
26891
|
});
|
|
@@ -26896,7 +26897,7 @@ const kf = (e) => e.reduce((a, i) => {
|
|
|
26896
26897
|
k.start,
|
|
26897
26898
|
k.end
|
|
26898
26899
|
).finally(() => {
|
|
26899
|
-
|
|
26900
|
+
N(!0);
|
|
26900
26901
|
});
|
|
26901
26902
|
}, [C, f, k]);
|
|
26902
26903
|
const oe = h.useMemo(() => {
|
|
@@ -27064,7 +27065,7 @@ const kf = (e) => e.reduce((a, i) => {
|
|
|
27064
27065
|
{
|
|
27065
27066
|
categoryGuid: D,
|
|
27066
27067
|
dateRange: k,
|
|
27067
|
-
isOpen:
|
|
27068
|
+
isOpen: v,
|
|
27068
27069
|
onClose: () => R(!1)
|
|
27069
27070
|
}
|
|
27070
27071
|
)
|
|
@@ -27140,7 +27141,7 @@ export {
|
|
|
27140
27141
|
Yo as CategoryApi,
|
|
27141
27142
|
Sn as CategoryColors,
|
|
27142
27143
|
ai as CategoryGuidToName,
|
|
27143
|
-
|
|
27144
|
+
w as CategoryGuids,
|
|
27144
27145
|
Md as CategoryIcon,
|
|
27145
27146
|
Hs as CategoryRow,
|
|
27146
27147
|
dh as CategorySelector,
|