@mx-cartographer/experiences 6.10.1-alpha.mega2 → 6.10.1-alpha.mega3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -502,7 +502,7 @@ const $4 = {
502
502
  ie.LINE_OF_CREDIT,
503
503
  ie.PREPAID,
504
504
  ie.SAVINGS
505
- ], w = {
505
+ ], N = {
506
506
  // Top-level categories
507
507
  AUTO_AND_TRANSPORT: "CAT-7829f71c-2e8c-afa5-2f55-fa3634b89874",
508
508
  BILLS_AND_UTILITIES: "CAT-79b02f2f-2adc-88f0-ac2b-4e71ead9cfc8",
@@ -625,175 +625,175 @@ const $4 = {
625
625
  BONUS: "CAT-f52f2a88-2cb6-04e4-e36a-58f7b7c6a798",
626
626
  PET_FOOD_SUPPLIES: "CAT-fbcdb437-2533-2857-1d1a-0624c9d9e1dc"
627
627
  }, Uo = [
628
- w.CREDIT_CARD_PAYMENT,
629
- w.MORTGAGE_PAYMENT,
630
- w.AUTO_PAYMENT
628
+ N.CREDIT_CARD_PAYMENT,
629
+ N.MORTGAGE_PAYMENT,
630
+ N.AUTO_PAYMENT
631
631
  ], ai = {
632
632
  // Top-level categories
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",
633
+ [N.AUTO_AND_TRANSPORT]: "Auto & Transport",
634
+ [N.BILLS_AND_UTILITIES]: "Bills & Utilities",
635
+ [N.BUSINESS_SERVICES]: "Business Services",
636
+ [N.EDUCATION]: "Education",
637
+ [N.ENTERTAINMENT]: "Entertainment",
638
+ [N.FEES_AND_CHARGES]: "Fees & Charges",
639
+ [N.FINANCIAL]: "Financial",
640
+ [N.FOOD_AND_DINING]: "Food & Dining",
641
+ [N.GIFTS_AND_DONATIONS]: "Gifts & Donations",
642
+ [N.HEALTH_AND_FITNESS]: "Health & Fitness",
643
+ [N.HOME]: "Home",
644
+ [N.INCOME]: "Income",
645
+ [N.INVESTMENTS]: "Investments",
646
+ [N.KIDS]: "Kids",
647
+ [N.PERSONAL_CARE]: "Personal Care",
648
+ [N.PETS]: "Pets",
649
+ [N.SHOPPING]: "Shopping",
650
+ [N.TAXES]: "Taxes",
651
+ [N.TRANSFER]: "Transfer",
652
+ [N.TRAVEL]: "Travel",
653
+ [N.UNCATEGORIZED]: "Uncategorized",
654
654
  // Subcategories
655
- [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"
655
+ [N.LOCAL_TAX]: "Local Tax",
656
+ [N.WITHDRAWAL]: "Withdrawal",
657
+ [N.TRADE_COMMISSIONS]: "Trade Commissions",
658
+ [N.BABYSITTER_DAYCARE]: "Babysitter & Daycare",
659
+ [N.CHILD_SUPPORT]: "Child Support",
660
+ [N.CREDIT_CARD_PAYMENT]: "Credit Card Payment",
661
+ [N.STUDENT_LOAN]: "Student Loan",
662
+ [N.LIFE_INSURANCE]: "Life Insurance",
663
+ [N.PRINTING]: "Printing",
664
+ [N.FINANCIAL_ADVISOR]: "Financial Advisor",
665
+ [N.INTEREST_INCOME]: "Interest Income",
666
+ [N.LATE_FEE]: "Late Fee",
667
+ [N.LAWN_GARDEN]: "Lawn & Garden",
668
+ [N.FINANCE_CHARGE]: "Finance Charge",
669
+ [N.FRAUD_PROTECTION]: "Fraud Protection",
670
+ [N.MOVIES_DVDS]: "Movies & DVDs",
671
+ [N.HOME_INSURANCE]: "Home Insurance",
672
+ [N.CASH]: "Cash",
673
+ [N.TUITION]: "Tuition",
674
+ [N.HEALTH_INSURANCE]: "Health Insurance",
675
+ [N.DIVIDEND_CAP_GAINS]: "Dividend & Cap Gains",
676
+ [N.ALCOHOL_BARS]: "Alcohol & Bars",
677
+ [N.LEGAL]: "Legal",
678
+ [N.PUBLIC_TRANSPORTATION]: "Public Transportation",
679
+ [N.MORTGAGE_RENT]: "Mortgage & Rent",
680
+ [N.HOTEL]: "Hotel",
681
+ [N.TRANSFER_FOR_CASH_SPENDING]: "Transfer for Cash Spending",
682
+ [N.UTILITIES]: "Utilities",
683
+ [N.DEPOSIT]: "Deposit",
684
+ [N.HOME_PHONE]: "Home Phone",
685
+ [N.SERVICE_PARTS]: "Service Parts",
686
+ [N.INTERNET]: "Internet",
687
+ [N.BOOKS]: "Books",
688
+ [N.NEWSPAPERS_MAGAZINES]: "Newspapers & Magazines",
689
+ [N.FAST_FOOD]: "Fast Food",
690
+ [N.COFFEE_SHOPS]: "Coffee Shops",
691
+ [N.SELL]: "Sell",
692
+ [N.OFFICE_SUPPLIES]: "Office Supplies",
693
+ [N.PET_GROOMING]: "Pet Grooming",
694
+ [N.AMUSEMENT]: "Amusement",
695
+ [N.BOOKS_SUPPLIES]: "Books & Supplies",
696
+ [N.VACATION]: "Vacation",
697
+ [N.SERVICE_FEE]: "Service Fee",
698
+ [N.GIFT]: "Gift",
699
+ [N.CHARITY]: "Charity",
700
+ [N.PARKING]: "Parking",
701
+ [N.SHIPPING]: "Shipping",
702
+ [N.ARTS]: "Arts",
703
+ [N.PAYCHECK]: "Paycheck",
704
+ [N.FURNISHINGS]: "Furnishings",
705
+ [N.RESTAURANTS]: "Restaurants",
706
+ [N.SPA_MASSAGE]: "Spa & Massage",
707
+ [N.RENTAL_CAR_TAXI]: "Rental Car & Taxi",
708
+ [N.ALLOWANCE]: "Allowance",
709
+ [N.BANKING_FEE]: "Banking Fee",
710
+ [N.BUY]: "Buy",
711
+ [N.STATE_TAX]: "State Tax",
712
+ [N.TOYS]: "Toys",
713
+ [N.KIDS_ACTIVITIES]: "Kids Activities",
714
+ [N.RENTAL_INCOME]: "Rental Income",
715
+ [N.VETERINARY]: "Veterinary",
716
+ [N.SPORTING_GOODS]: "Sporting Goods",
717
+ [N.LAUNDRY]: "Laundry",
718
+ [N.CLOTHING]: "Clothing",
719
+ [N.PHARMACY]: "Pharmacy",
720
+ [N.HOME_SERVICES]: "Home Services",
721
+ [N.ATM_FEE]: "ATM Fee",
722
+ [N.HAIR]: "Hair",
723
+ [N.GROCERIES]: "Groceries",
724
+ [N.GAS]: "Gas",
725
+ [N.FEDERAL_TAX]: "Federal Tax",
726
+ [N.HOSTING]: "Hosting",
727
+ [N.TELEVISION]: "Television",
728
+ [N.MOBILE_PHONE]: "Mobile Phone",
729
+ [N.BABY_SUPPLIES]: "Baby Supplies",
730
+ [N.MUSIC]: "Music",
731
+ [N.MORTGAGE_PAYMENT]: "Mortgage Payment",
732
+ [N.SPORTS]: "Sports",
733
+ [N.AUTO_PAYMENT]: "Auto Payment",
734
+ [N.GYM]: "Gym",
735
+ [N.REIMBURSEMENT]: "Reimbursement",
736
+ [N.AIR_TRAVEL]: "Air Travel",
737
+ [N.EYECARE]: "Eyecare",
738
+ [N.HOBBIES]: "Hobbies",
739
+ [N.SALES_TAX]: "Sales Tax",
740
+ [N.ELECTRONICS_SOFTWARE]: "Electronics & Software",
741
+ [N.DOCTOR]: "Doctor",
742
+ [N.RETURNED_PURCHASE]: "Returned Purchase",
743
+ [N.HOME_IMPROVEMENT]: "Home Improvement",
744
+ [N.AUTO_INSURANCE]: "Auto Insurance",
745
+ [N.PROPERTY_TAX]: "Property Tax",
746
+ [N.DOMAIN_NAMES]: "Domain Names",
747
+ [N.HOME_SUPPLIES]: "Home Supplies",
748
+ [N.ADVERTISING]: "Advertising",
749
+ [N.CHECK]: "Check",
750
+ [N.DENTIST]: "Dentist",
751
+ [N.BONUS]: "Bonus",
752
+ [N.PET_FOOD_SUPPLIES]: "Pet Food & Supplies"
753
753
  }, Sn = {
754
- [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"
754
+ [N.AUTO_AND_TRANSPORT]: "#4B9DBC",
755
+ [N.BILLS_AND_UTILITIES]: "#EF9B2C",
756
+ [N.BUSINESS_SERVICES]: "#B3DE8C",
757
+ [N.EDUCATION]: "#F8AB3A",
758
+ [N.ENTERTAINMENT]: "#AB5B89",
759
+ [N.FEES_AND_CHARGES]: "#FF9696",
760
+ [N.FINANCIAL]: "#6BCDDB",
761
+ [N.FOOD_AND_DINING]: "#58AC7B",
762
+ [N.GIFTS_AND_DONATIONS]: "#347AA5",
763
+ [N.HEALTH_AND_FITNESS]: "#5C446E",
764
+ [N.HOME]: "#FFD84D",
765
+ [N.INCOME]: "#133F49",
766
+ [N.INVESTMENTS]: "#FF7070",
767
+ [N.KIDS]: "#82D196",
768
+ [N.PERSONAL_CARE]: "#338B7A",
769
+ [N.PETS]: "#615BAB",
770
+ [N.SHOPPING]: "#CF5F84",
771
+ [N.TAXES]: "#32588D",
772
+ [N.TRANSFER]: "#959CA6",
773
+ [N.TRAVEL]: "#E37434",
774
+ [N.UNCATEGORIZED]: "#FA5555"
775
775
  }, Md = {
776
- [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",
776
+ [N.AUTO_AND_TRANSPORT]: "directions_car",
777
+ [N.BILLS_AND_UTILITIES]: "electrical_services",
778
+ [N.BUSINESS_SERVICES]: "business_center",
779
+ [N.EDUCATION]: "school",
780
+ [N.ENTERTAINMENT]: "stadium",
781
+ [N.FEES_AND_CHARGES]: "problem",
782
+ [N.FINANCIAL]: "price_check",
783
+ [N.FOOD_AND_DINING]: "grocery",
784
+ [N.GIFTS_AND_DONATIONS]: "featured_seasonal_and_gifts",
785
+ [N.HEALTH_AND_FITNESS]: "ecg_heart",
786
+ [N.HOME]: "cottage",
787
+ [N.INCOME]: "monetization_on",
788
+ [N.INVESTMENTS]: "bid_landscape",
789
+ [N.KIDS]: "face",
790
+ [N.PERSONAL_CARE]: "volunteer_activism",
791
+ [N.PETS]: "pet_supplies",
792
+ [N.SHOPPING]: "shopping_cart",
793
+ [N.TAXES]: "heap_snapshot_large",
794
+ [N.TRANSFER]: "compare_arrows",
795
+ [N.TRAVEL]: "airplane_ticket",
796
+ [N.UNCATEGORIZED]: "category",
797
797
  UNKNOWN: "help"
798
798
  }, Vo = 9999999999e-2;
799
799
  var Va = /* @__PURE__ */ ((e) => (e.CAD = "CAD", e.USD = "USD", e))(Va || {}), kd = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.EveryWeek = 1] = "EveryWeek", e[e.EveryOtherWeek = 2] = "EveryOtherWeek", e[e.EveryMonth = 3] = "EveryMonth", e[e.EveryOtherMonth = 4] = "EveryOtherMonth", e[e.EveryQuarter = 5] = "EveryQuarter", e[e.EveryOtherQuarter = 6] = "EveryOtherQuarter", e[e.EveryYear = 7] = "EveryYear", e))(kd || {});
@@ -841,7 +841,7 @@ const aa = 44, Ko = (e, n) => e.find((a) => a.guid === n), Hd = (e, n) => e.find
841
841
  return a;
842
842
  }, z4 = (e, n) => {
843
843
  const a = e.find((i) => i.guid === n);
844
- return a ? a.guid === w.INCOME || a.parent_guid === w.INCOME : !1;
844
+ return a ? a.guid === N.INCOME || a.parent_guid === N.INCOME : !1;
845
845
  }, to = (e) => {
846
846
  const n = Jc(e);
847
847
  let a = Fa(e, n);
@@ -1373,7 +1373,7 @@ const bi = (e, n) => e.reduce((a, i) => (a[i.guid] = n?.includes(i.guid), a), {}
1373
1373
  ) }),
1374
1374
  Object.keys(m).map((b) => {
1375
1375
  const S = m[b], A = S.every(
1376
- (N) => d[N.guid]
1376
+ (v) => d[v.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((N) => {
1411
- const v = d[N.guid], R = `${N.name}${g && N.accountNumber ? ` *${N.accountNumber.slice(-4)}` : ""}`;
1410
+ children: S.map((v) => {
1411
+ const w = d[v.guid], R = `${v.name}${g && v.accountNumber ? ` *${v.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: v,
1425
- "data-ui-test": `checked-${v}`,
1424
+ checked: w,
1425
+ "data-ui-test": `checked-${w}`,
1426
1426
  disableRipple: !0,
1427
- id: N.guid,
1427
+ id: v.guid,
1428
1428
  onChange: () => {
1429
- i(N);
1429
+ i(v);
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
- N.guid
1444
+ v.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((N) => {
1580
- A[N.guid] = !S;
1579
+ b[E].forEach((v) => {
1580
+ A[v.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, 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(
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, v = Qo(S, A, o), w = Qo(A, S, o), R = s_(C, f, E, v || w), L = (D) => d === void 0 || D === d ? a : `${a}80`, B = () => /* @__PURE__ */ t(
1802
1802
  qo,
1803
1803
  {
1804
1804
  averageLineHeight: R,
1805
- bottomHeight: v,
1805
+ bottomHeight: w,
1806
1806
  color: "",
1807
1807
  range: b,
1808
- topHeight: N,
1808
+ topHeight: v,
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: v,
1822
+ bottomHeight: w,
1823
1823
  color: L(G),
1824
1824
  index: G,
1825
1825
  onClick: c,
1826
1826
  range: b,
1827
1827
  selectedIndex: d,
1828
- topHeight: N,
1828
+ topHeight: v,
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 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 = [];
1968
+ const v = ol({ start: et(d), end: Qe(d) }), w = [];
1969
+ for (let R = 0; R < v.length; R++) {
1970
+ const L = v[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
- v.push(D);
1973
+ w.push(D);
1974
1974
  }
1975
- return v;
1976
- }, [d]), E = (N) => {
1975
+ return w;
1976
+ }, [d]), E = (v) => {
1977
1977
  if (r !== "None") {
1978
1978
  if (r === "Single") {
1979
- g(N), i?.(N);
1979
+ g(v), i?.(v);
1980
1980
  return;
1981
1981
  }
1982
- !u || m ? (g(N), C(void 0)) : je(N, u) ? (C(u), g(N), o?.(N, u)) : (C(N), o?.(u, N));
1982
+ !u || m ? (g(v), C(void 0)) : je(v, u) ? (C(u), g(v), o?.(v, u)) : (C(v), o?.(u, v));
1983
1983
  }
1984
1984
  }, b = () => {
1985
- const N = ue();
1986
- _(N), r !== "None" && (g(N), r === "Single" ? i?.(N) : (C(N), o?.(N, N)));
1985
+ const v = ue();
1986
+ _(v), r !== "None" && (g(v), r === "Single" ? i?.(v) : (C(v), o?.(v, v)));
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((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(
2002
+ /* @__PURE__ */ t("div", { className: "mx-cmn-calendar-header-row", children: f[0].map((v, w) => /* @__PURE__ */ t("div", { className: "mx-cmn-calendar-header-cell", children: /* @__PURE__ */ t(p, { bold: !0, variant: "Small", children: kn(v, "EEEEE") }) }, w)) }),
2003
+ f.map((v, w) => /* @__PURE__ */ t("div", { className: "mx-cmn-calendar-week", children: v.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-${v}`)),
2013
+ )) }, `w-${w}`)),
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), N = Math.floor(Math.min(...S) / 100) * 100, v = Math.ceil(Math.max(...S) / 100) * 100, R = a.map((D, G) => ({
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), v = Math.floor(Math.min(...S) / 100) * 100, w = 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: N,
2253
- max: v || 100,
2252
+ min: v,
2253
+ max: w || 100,
2254
2254
  colorMap: _ ? {
2255
2255
  type: "continuous",
2256
- min: N,
2257
- max: v,
2256
+ min: v,
2257
+ max: w,
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, 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(
2524
+ }), { hoveredSeriesId: E, hoveredAreaData: b, isAreaHovered: S, cursorPos: A } = C, v = S && E && b, w = !v, 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) => v && E ? /* @__PURE__ */ t(
2653
+ itemContent: (V) => w && 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: v ? "item" : "none"
2664
+ trigger: w ? "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
- N && /* @__PURE__ */ t(
2694
+ v && /* @__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), [N, v] = h.useState(6), R = {
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), [v, w] = 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
- }, [N]);
2922
+ }, [v]);
2923
2923
  const L = () => {
2924
2924
  const k = Qe(xn());
2925
- return [Qe(Vt(k, N)), k];
2925
+ return [Qe(Vt(k, v)), 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
- v(k);
2942
+ w(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: N,
3024
+ value: v,
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: N,
3065
+ value: v,
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: N } = Ce(E), { displayedDateRange: v, isCopyLoaded: R, selectedAccountGuids: L, setSelectedAccountGuids: B } = le(), { common: D } = I(), G = () => {
3380
+ const [C, { height: f, width: E }] = Ms(), { onEvent: b } = j(), { isDesktop: S, isMobile: A, isTablet: v } = Ce(E), { displayedDateRange: w, 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 : v.start, me = o ? o.end : v.end, te = n?.length > 1;
3417
+ }, oe = o ? o.start : w.start, me = o ? o.end : w.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 || N) && { textAlign: "center" }
3425
+ ...(A || v) && { 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 || N ? /* @__PURE__ */ t(
3469
+ ) : /* @__PURE__ */ t($e, { "aria-label": Se, onClick: Oe, children: /* @__PURE__ */ t($, { name: Re, size: 24 }) }, Re) : S || v ? /* @__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 || N) && { alignSelf: "center" },
3484
+ ...(A || v) && { alignSelf: "center" },
3485
3485
  mr: 0
3486
3486
  },
3487
3487
  p: S ? 48 : 24,
3488
3488
  pb: 0
3489
3489
  },
3490
- title: S || N ? /* @__PURE__ */ t(zt, { children: m }) : /* @__PURE__ */ l(y, { alignItems: "center", flexDirection: "row", children: [
3490
+ title: S || v ? /* @__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 || N) && /* @__PURE__ */ l(y, { gap: 24, justifyContent: "center", sx: { mt: A ? 0 : 16 }, children: [
3505
+ a && (A || v) && /* @__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]*$/, N = /^(\d)*(\,)?([0-9]{1,2})?$/, v = /^(\d)*(\.)?([0-9]{1,2})?$/;
3607
+ const [m, C] = h.useState(""), { common: f } = I(), E = o || f.currency_input, b = pt(), S = H_(b), A = /^[0-9]*$/, v = /^(\d)*(\,)?([0-9]{1,2})?$/, w = /^(\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 = N;
3613
+ R = v;
3614
3614
  break;
3615
3615
  default:
3616
- R = v;
3616
+ R = w;
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 !== w.INCOME && n.category_guid !== w.TRANSFER && n.category_guid !== w.INVESTMENTS
4366
+ (n) => n.category_guid !== N.INCOME && n.category_guid !== N.TRANSFER && n.category_guid !== N.INVESTMENTS
4367
4367
  ),
4368
4368
  this.globalStore.categoryStore.detailedCategories,
4369
4369
  this.globalStore.copyStore.copy.budgets,
@@ -4488,12 +4488,12 @@ const Jn = () => {
4488
4488
  const A = h.useMemo(
4489
4489
  () => o.filter((L) => s.includes(L.guid)).reduce((L, B) => L + (B?.balance || 0), 0),
4490
4490
  [s, S]
4491
- ), N = h.useMemo(
4491
+ ), v = h.useMemo(
4492
4492
  () => u.filter((L) => s.includes(L.accountGuid || "")).reduce((L, B) => L + B.amount, 0),
4493
4493
  [s, u]
4494
- ), v = h.useMemo(
4495
- () => A - N,
4496
- [A, N]
4494
+ ), w = h.useMemo(
4495
+ () => A - v,
4496
+ [A, v]
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: N, variant: "H2" }),
4516
+ /* @__PURE__ */ t(Ue, { amount: v, 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: v, variant: "H2" }),
4521
+ /* @__PURE__ */ t(Ue, { amount: w, 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: N, bold: !0, symbol: "-", variant: "XSmall" })
4552
+ /* @__PURE__ */ t(Ue, { amount: v, 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: v })
4566
+ children: /* @__PURE__ */ t(so, { remaining: w })
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 === w.INCOME,
4984
+ isIncome: c.top_level_category_guid === N.INCOME,
4985
4985
  isPending: c.feed_status === co.PENDING,
4986
4986
  number: d?.account_number || "",
4987
4987
  payee: c.description,
@@ -5677,13 +5677,13 @@ const Mu = ({ transaction: e, onClick: n }) => {
5677
5677
  zeroState: d = /* @__PURE__ */ t(Gu, {})
5678
5678
  }) => {
5679
5679
  const { isLoading: _, sortedTransactions: u } = De(), g = h.useMemo(() => s ? u : u.filter((A) => !A.is_hidden), [u, s]), { setShowInsights: m, toggleSplit: C } = Ot(), { onEvent: f } = j(), E = (A) => {
5680
- const N = g.find((v) => v.guid === A);
5681
- if (N?.has_been_split) {
5682
- C(N.guid);
5680
+ const v = g.find((w) => w.guid === A);
5681
+ if (v?.has_been_split) {
5682
+ C(v.guid);
5683
5683
  return;
5684
5684
  }
5685
5685
  f(W.ACCOUNT_DETAILS_CLICK_TRANSACTION, {
5686
- account_guid: N?.account_guid,
5686
+ account_guid: v?.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 N = g[A.index], v = sr(A.index, g), R = Bu(A.index, g), L = cr + (v ? lr : 0);
5708
+ const v = g[A.index], w = sr(A.index, g), R = Bu(A.index, g), L = cr + (w ? lr : 0);
5709
5709
  return /* @__PURE__ */ l(
5710
5710
  O,
5711
5711
  {
@@ -5716,12 +5716,12 @@ const Mu = ({ transaction: e, onClick: n }) => {
5716
5716
  width: "100%"
5717
5717
  },
5718
5718
  children: [
5719
- v && /* @__PURE__ */ t(_o, { bgcolor: e, children: ii(N.date) }),
5720
- /* @__PURE__ */ t(lo, { onClick: E, transaction: N }),
5719
+ w && /* @__PURE__ */ t(_o, { bgcolor: e, children: ii(v.date) }),
5720
+ /* @__PURE__ */ t(lo, { onClick: E, transaction: v }),
5721
5721
  /* @__PURE__ */ t(P, { sx: { ml: R ? 24 : 0 } })
5722
5722
  ]
5723
5723
  },
5724
- N.guid
5724
+ v.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((N) => N === n.guid);
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((v) => v === 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 === w.TRANSFER,
6266
+ isTransfer: r === N.TRANSFER,
6267
6267
  monthlyAmounts: d,
6268
6268
  subCategories: u,
6269
6269
  totalAmount: s ? g : 0,
@@ -6340,7 +6340,7 @@ class mh {
6340
6340
  }
6341
6341
  get spendCategories() {
6342
6342
  return this.detailedCategories.filter(
6343
- (n) => !n.is_income && !n.isTransfer && n.guid !== w.INVESTMENTS
6343
+ (n) => !n.is_income && !n.isTransfer && n.guid !== N.INVESTMENTS
6344
6344
  );
6345
6345
  }
6346
6346
  get transferCategories() {
@@ -6996,7 +6996,7 @@ const $s = ({ transaction: e }) => {
6996
6996
  (oe, me, te) => oe + (te !== 0 ? me.amount : 0),
6997
6997
  0
6998
6998
  ), E(U);
6999
- }, N = (G, k) => {
6999
+ }, v = (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
- }, v = () => {
7007
+ }, w = () => {
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: v, children: [
7030
+ e && /* @__PURE__ */ t(Y, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(_e, { onClick: w, 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: N,
7058
+ onCategoryChanged: v,
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
- }, N = () => {
7187
+ }, v = () => {
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: N,
7211
+ onClick: v,
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: (v) => C(v.target.value),
7244
+ onChange: (w) => C(w.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: N,
7655
- updateTransaction: v
7654
+ transactions: v,
7655
+ updateTransaction: w
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 ? N.find((rt) => rt.guid === Se) : void 0, Bt = _ && !!d.payee && !!d.account_guid && !!d.category_guid, ut = (rt) => {
7686
+ ), Ge = Se ? v.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(N, A), D(W.TRANSACTIONS_CLICK_EXPORT);
7694
+ Ps(v, 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 v({ ...Ge, has_been_viewed: !0 }), Oe("");
7711
+ Ge && !Ge.has_been_viewed && await w({ ...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 !== 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(
8222
+ ), Hi = (e) => e.top_level_category_guid !== N.INCOME && e.transaction_type === Wt.DEBIT, qh = (e, n) => Hi(e) ? e.payee?.toLowerCase().includes(n.toLowerCase()) || e.description.toLowerCase().includes(n.toLowerCase()) || e.feed_description.toLowerCase().includes(n.toLowerCase()) : !1, Ca = (e) => e.top_level_category_guid === N.INCOME || e.top_level_category_guid === N.TRANSFER && e.transaction_type === Wt.CREDIT, qs = (e, n) => Ca(e) ? e.payee?.toLowerCase().includes(n.toLowerCase()) || e.description?.toLowerCase().includes(n.toLowerCase()) || e.feed_description?.toLowerCase().includes(n.toLowerCase()) : !1, Qs = x(
8223
8223
  ({
8224
8224
  isIncome: e = !1,
8225
8225
  label: n,
8226
8226
  onAddRecurringTransaction: a = () => null
8227
8227
  }) => {
8228
- const { recurring: i } = I(), { filter: o, setFilter: r, transactions: s } = De(), { addRepeatingTransaction: c } = Ze(), { user: d } = kt(), [_, u] = h.useState(!1), [g, m] = h.useState(""), [C, f] = h.useState(pe.EveryMonth), [E, b] = h.useState(1), [S, A] = h.useState(15), N = h.useMemo(
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), v = h.useMemo(
8229
8229
  () => s.find((B) => B.guid === g),
8230
8230
  [g]
8231
- ), v = () => {
8231
+ ), w = () => {
8232
8232
  u(!0), r(e ? { ...o, custom: Ca } : { ...o, custom: Hi });
8233
8233
  }, R = async () => {
8234
- if (!N) {
8234
+ if (!v) {
8235
8235
  L();
8236
8236
  return;
8237
8237
  }
8238
8238
  a();
8239
- const B = Gi(C, We(N.date)), D = {
8240
- account_guid: N.account_guid,
8241
- amount: N.amount,
8239
+ const B = Gi(C, We(v.date)), D = {
8240
+ account_guid: v.account_guid,
8241
+ amount: v.amount,
8242
8242
  created_by: 0,
8243
8243
  // User
8244
- merchant_guid: N.merchant_guid,
8245
- description: N.payee || N.description || N.feed_description,
8244
+ merchant_guid: v.merchant_guid,
8245
+ description: v.payee || v.description || v.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: N.transaction_type,
8251
+ transaction_type: v.transaction_type,
8252
8252
  user_guid: d.guid
8253
8253
  };
8254
- await c(D, N), L();
8254
+ await c(D, v), 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: v, children: /* @__PURE__ */ t(se, { children: /* @__PURE__ */ l(y, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
8259
+ /* @__PURE__ */ t(Y, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ t(_e, { onClick: w, 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: N && /* @__PURE__ */ t(
8297
+ children: v && /* @__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: N
8306
+ transaction: v
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 = (v, R) => {
8738
+ } = Ze(), [E, b] = h.useState(0), S = (w, R) => {
8739
8739
  b(R);
8740
- }, A = (v) => {
8740
+ }, A = (w) => {
8741
8741
  i(W.RECURRING_TRANSACTIONS_CLICK_UPCOMING, {
8742
- transaction_guid: v.transaction?.guid
8742
+ transaction_guid: w.transaction?.guid
8743
8743
  });
8744
- }, N = (v) => {
8744
+ }, v = (w) => {
8745
8745
  i(W.RECURRING_TRANSACTIONS_CLICK_PAID, {
8746
- transaction_guid: v.transaction?.guid
8746
+ transaction_guid: w.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: N,
8803
+ onRecurrenceClick: v,
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: N,
8814
+ onRecurrenceClick: v,
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), [N, v] = h.useState(15), [R, L] = St(!1), [B, D] = St(1), [G, k] = St([]), [U, oe] = St(""), me = h.useMemo(
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), [v, w] = 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: v,
10075
- secondDay: N,
10074
+ onSecondDayChange: w,
10075
+ secondDay: v,
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 N = d.map((R) => R.guid), v = a.filter(
10149
- (R) => i.includes(R.guid) && N.includes(R.guid)
10148
+ const v = d.map((R) => R.guid), w = a.filter(
10149
+ (R) => i.includes(R.guid) && v.includes(R.guid)
10150
10150
  );
10151
- m(v), _({
10151
+ m(w), _({
10152
10152
  dateRange: { start: wt(ue(), 90), end: xn() },
10153
- accounts: v.map((R) => R.guid)
10153
+ accounts: w.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 === 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) => {
10739
+ }, ui = (e) => e.top_level_category_guid === N.INCOME || e.category_guid === N.INCOME, Fg = (e) => !ui(e) && !oc(e), ic = (e) => Uo.includes(e.top_level_category_guid) || Uo.includes(e.category_guid), oc = (e) => e.top_level_category_guid === N.TRANSFER || e.category_guid === N.TRANSFER, $g = (e) => !ui(e) && !ic(e) && !oc(e), Wg = (e) => e.filter((n) => n.category_guid === n.top_level_category_guid), bo = (e, n) => {
10740
10740
  const a = [];
10741
10741
  let i = et(Vt(/* @__PURE__ */ new Date(), 5));
10742
10742
  const o = /* @__PURE__ */ new Date();
@@ -10757,7 +10757,7 @@ const dn = () => {
10757
10757
  return bo(a);
10758
10758
  }, zg = (e) => {
10759
10759
  const n = [], a = e.filter(
10760
- (r) => r.top_level_category_guid !== w.INCOME && r.top_level_category_guid !== w.TRANSFER && r.total > 0
10760
+ (r) => r.top_level_category_guid !== N.INCOME && r.top_level_category_guid !== N.TRANSFER && r.total > 0
10761
10761
  );
10762
10762
  let i = et(Vt(/* @__PURE__ */ new Date(), 5));
10763
10763
  const o = Qe(/* @__PURE__ */ new Date());
@@ -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((v) => !v.is_impossible), u = [
10878
+ const c = at(), { onEvent: d } = j(), _ = i.filter((w) => !w.is_impossible), u = [
10879
10879
  ...new Set(
10880
- _.flatMap((v) => v.dataset.map((R) => new Date(R.x).getTime()))
10880
+ _.flatMap((w) => w.dataset.map((R) => new Date(R.x).getTime()))
10881
10881
  )
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]));
10882
+ ].sort((w, R) => w - R).map((w) => new Date(w)), g = _.map((w) => {
10883
+ const R = new Map(w.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 { ...v, dataset: B };
10889
+ return { ...w, dataset: B };
10890
10890
  }), m = g.reduce(
10891
- (v, R) => v + (R.dataset[0]?.y ?? 0),
10891
+ (w, R) => w + (R.dataset[0]?.y ?? 0),
10892
10892
  0
10893
- ), C = u.map((v, R) => {
10893
+ ), C = u.map((w, R) => {
10894
10894
  const L = R / (u.length - 1), B = m * (1 - L);
10895
- return { x: v, y: B };
10896
- }), f = Math.ceil(m / 100) * 100, E = u, b = g.map((v, R) => {
10895
+ return { x: w, y: B };
10896
+ }), f = Math.ceil(m / 100) * 100, E = u, b = g.map((w, 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: v.guid,
10901
- label: v.name,
10902
- data: v.dataset.map((D) => D.y),
10900
+ guid: w.guid,
10901
+ label: w.name,
10902
+ data: w.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((v) => v.y),
10914
+ data: C.map((w) => w.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 = (v) => b.findIndex((R) => R?.guid === v);
10922
+ const S = (w) => b.findIndex((R) => R?.guid === w);
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: (v, R) => {
10929
+ onAreaClick: (w, 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: (v) => {
10935
- const R = b.find((L) => L.id === v?.seriesId)?.guid;
10934
+ onHighlightChange: (w) => {
10935
+ const R = b.find((L) => L.id === w?.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: (v) => re(v, ne.MONTH_SHORT_YEAR)
10978
+ valueFormatter: (w) => re(w, 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: (v) => H(v, "0a")
10986
+ valueFormatter: (w) => H(w, "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 N = b.target.closest("[data-id]")?.getAttribute("data-id"), v = n[Number(N)];
11621
- i?.(v?.guid ?? "");
11620
+ const v = b.target.closest("[data-id]")?.getAttribute("data-id"), w = n[Number(v)];
11621
+ i?.(w?.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: N } = dn(), { visibleDebtAccounts: v } = ve(), { goalsLoaded: R, loadGoals: L, monthlyCashFlowProfile: B } = ot(), { debts: D } = oi(), G = h.useMemo(() => {
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: v } = dn(), { visibleDebtAccounts: w } = 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(v), C(W.DEBTS_VIEW);
11823
+ b(w), C(W.DEBTS_VIEW);
11824
11824
  }, []), h.useEffect(() => {
11825
- b(v);
11826
- }, [v]), h.useEffect(() => {
11825
+ b(w);
11826
+ }, [w]), h.useEffect(() => {
11827
11827
  E && L().finally();
11828
11828
  }, [E]);
11829
11829
  const k = (he) => _(he), U = () => {
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);
11830
+ const he = w.find((Oe) => Oe.guid === d), Re = G.find((Oe) => Oe.guid === d);
11831
+ he && S(he), Re && v(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: v,
11840
+ accountOptions: w,
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 = () => N(), S = a.save_button) : E && (A = () => R(), S = n.mark_as_complete_button);
12865
- const N = async () => {
12864
+ f ? (A = () => v(), S = a.save_button) : E && (A = () => R(), S = n.mark_as_complete_button);
12865
+ const v = 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
- }, v = async () => {
12870
+ }, w = 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: v,
12903
+ onPrimaryAction: w,
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), [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(
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), [v, w] = 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
- v(!0), a(W.GOALS_CLICK_ADD);
12929
+ w(!0), a(W.GOALS_CLICK_ADD);
12930
12930
  }, me = (he) => {
12931
- v(!1), he === K.SAVINGS_TRACK ? A(0) : he === K.DEBT_TRACK ? A(1) : he === K.RETIREMENT_TRACK && A(2);
12931
+ w(!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: N,
13013
- onClose: () => v(!1),
13012
+ isOpen: v,
13013
+ onClose: () => w(!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(), [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);
14386
+ } = Ds(), { isMobile: S } = Ce(), { onEvent: A } = j(), [v, w] = 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), w(!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: N ? /* @__PURE__ */ l(Z, { children: [
14445
+ children: v ? /* @__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), N = m.email && !g.email_is_verified && !f, v = m.phone && !g.phone_is_verified && !f;
15137
+ }), [f, E] = h.useState(!1), [b, S] = h.useState(!1), A = h.useRef(null), v = m.email && !g.email_is_verified && !f, w = 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: N ? 20 : 44, mr: s ? 0 : 24 }, children: [
15210
+ _.display_email_edit_field_in_settings && /* @__PURE__ */ l(y, { sx: { mb: v ? 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
- N && /* @__PURE__ */ t(l1, {})
15219
+ v && /* @__PURE__ */ t(l1, {})
15220
15220
  ] }),
15221
- _.display_sms_edit_field_in_settings && /* @__PURE__ */ l(y, { sx: { mb: v ? 20 : 44 }, children: [
15221
+ _.display_sms_edit_field_in_settings && /* @__PURE__ */ l(y, { sx: { mb: w ? 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
- v && /* @__PURE__ */ t(_1, {})
15231
+ w && /* @__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,30 +16060,25 @@ const l1 = x(() => {
16060
16060
  const { settings: e, connect: n } = I(), {
16061
16061
  insightsNotificationTypes: a,
16062
16062
  userCommunicationsProfile: i,
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]
16063
+ updateInsightsNotificationProfile: o
16064
+ } = Rt(), [r, s] = h.useState(null), c = h.useCallback(
16065
+ (d, _) => () => {
16066
+ o({
16067
+ ...d,
16068
+ [_]: !d[_]
16074
16069
  });
16075
16070
  },
16076
- [r]
16071
+ [o]
16077
16072
  );
16078
16073
  return /* @__PURE__ */ l(y, { children: [
16079
16074
  /* @__PURE__ */ t(dt, { mb: 14, children: e.notification_types_title }),
16080
- a.map((_, u) => /* @__PURE__ */ l(
16075
+ a.map((d, _) => /* @__PURE__ */ l(
16081
16076
  Xn,
16082
16077
  {
16083
16078
  disableGutters: !0,
16084
- expanded: u === s,
16085
- sx: (g) => ({
16086
- borderBottom: `1px solid ${g.palette.border?.light}`,
16079
+ expanded: _ === r,
16080
+ sx: (u) => ({
16081
+ borderBottom: `1px solid ${u.palette.border?.light}`,
16087
16082
  my: 0,
16088
16083
  boxShadow: "none",
16089
16084
  "&:before": { opacity: 0 },
@@ -16095,15 +16090,15 @@ const l1 = x(() => {
16095
16090
  /* @__PURE__ */ t(
16096
16091
  qn,
16097
16092
  {
16098
- expandIcon: /* @__PURE__ */ t(O, { onClick: () => c(u === s ? null : u), children: /* @__PURE__ */ t(Ui, { sx: { color: "text.primary" } }) }),
16099
- sx: { height: 64, pr: 14, ".MuiSwitch-root": { mr: 24 } },
16093
+ expandIcon: /* @__PURE__ */ t(O, { onClick: () => s(_ === r ? null : _), children: /* @__PURE__ */ t(Ui, { sx: { color: "text.primary" } }) }),
16094
+ sx: { height: 64, pr: 14 },
16100
16095
  children: /* @__PURE__ */ t(
16101
16096
  on,
16102
16097
  {
16103
- isChecked: _.is_enabled,
16104
- onToggle: d(_, "is_enabled"),
16105
- primaryText: _.label,
16106
- secondaryText: _.is_enabled ? _.deliveryMethodsLabel : n.connection_statuses[16]
16098
+ isChecked: d.is_enabled,
16099
+ onToggle: c(d, "is_enabled"),
16100
+ primaryText: d.label,
16101
+ secondaryText: d.is_enabled ? d.deliveryMethodsLabel : n.connection_statuses[16]
16107
16102
  }
16108
16103
  )
16109
16104
  }
@@ -16112,15 +16107,15 @@ const l1 = x(() => {
16112
16107
  Zn,
16113
16108
  {
16114
16109
  sx: {
16115
- borderTop: (g) => `1px solid ${g.palette.border?.light}`
16110
+ borderTop: (u) => `1px solid ${u.palette.border?.light}`
16116
16111
  },
16117
16112
  children: /* @__PURE__ */ l(ae, { sx: { py: 10, bgcolor: "background.paper" }, children: [
16118
16113
  /* @__PURE__ */ t(
16119
16114
  on,
16120
16115
  {
16121
- isChecked: !i.opted_out_of_email_notifications && _.is_enabled && _.email_channel,
16116
+ isChecked: !i.opted_out_of_email_notifications && d.is_enabled && d.email_channel,
16122
16117
  isDisabled: i.opted_out_of_email_notifications,
16123
- onToggle: d(_, "email_channel"),
16118
+ onToggle: c(d, "email_channel"),
16124
16119
  primaryText: e.delivery_method_email_label
16125
16120
  }
16126
16121
  ),
@@ -16128,9 +16123,9 @@ const l1 = x(() => {
16128
16123
  /* @__PURE__ */ t(
16129
16124
  on,
16130
16125
  {
16131
- isChecked: !i.opted_out_of_sms_notifications && _.is_enabled && _.sms_channel,
16126
+ isChecked: !i.opted_out_of_sms_notifications && d.is_enabled && d.sms_channel,
16132
16127
  isDisabled: i.opted_out_of_sms_notifications,
16133
- onToggle: d(_, "sms_channel"),
16128
+ onToggle: c(d, "sms_channel"),
16134
16129
  primaryText: e.delivery_method_sms_label
16135
16130
  }
16136
16131
  ),
@@ -16138,9 +16133,9 @@ const l1 = x(() => {
16138
16133
  /* @__PURE__ */ t(
16139
16134
  on,
16140
16135
  {
16141
- isChecked: !i.opted_out_of_push_notifications && _.is_enabled && _.push_channel,
16136
+ isChecked: !i.opted_out_of_push_notifications && d.is_enabled && d.push_channel,
16142
16137
  isDisabled: !0,
16143
- onToggle: d(_, "push_channel"),
16138
+ onToggle: c(d, "push_channel"),
16144
16139
  primaryText: e.delivery_method_push_label
16145
16140
  }
16146
16141
  )
@@ -16149,7 +16144,7 @@ const l1 = x(() => {
16149
16144
  )
16150
16145
  ]
16151
16146
  },
16152
- _.guid
16147
+ d.guid
16153
16148
  ))
16154
16149
  ] });
16155
16150
  }), xo = x(
@@ -16164,41 +16159,43 @@ const l1 = x(() => {
16164
16159
  budgetProfiles: s,
16165
16160
  clientCommunicationProfile: c,
16166
16161
  detailedNotificationProfiles: d,
16167
- loadNotificationProfiles: _,
16168
- updateNotificationProfile: u
16169
- } = Rt(), [g, m] = h.useState(void 0);
16162
+ insightsNotificationTypes: _,
16163
+ loadInsightsNotificationProfiles: u,
16164
+ loadNotificationProfiles: g,
16165
+ updateNotificationProfile: m
16166
+ } = Rt(), [C, f] = h.useState(void 0);
16170
16167
  h.useEffect(() => {
16171
- _().finally();
16168
+ g().finally(), u().finally();
16172
16169
  }, []), h.useEffect(() => {
16173
- g && m(d.find((b) => b.guid === g.guid));
16170
+ C && f(d.find((S) => S.guid === C.guid));
16174
16171
  }, [r]);
16175
- const C = async (b) => {
16176
- await u(b);
16177
- }, f = (b) => {
16178
- const S = {
16179
- ...b,
16180
- is_enabled: !b.is_enabled
16172
+ const E = async (S) => {
16173
+ await m(S);
16174
+ }, b = (S) => {
16175
+ const A = {
16176
+ ...S,
16177
+ is_enabled: !S.is_enabled
16181
16178
  };
16182
16179
  if (n) {
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
16180
+ const v = He[S.notification_type] || "Unknown";
16181
+ A.is_enabled ? n("opt_in_notification_insight", { notificationType: v }) : n("opt_out_notification_insight", {
16182
+ notificationType: v
16186
16183
  });
16187
16184
  }
16188
- C(S);
16189
- }, E = c.email_notifications_enabled || c.sms_notifications_enabled || c.push_notifications_enabled;
16185
+ E(A);
16186
+ };
16190
16187
  return /* @__PURE__ */ l(y, { sx: { px: o ? 24 : 0 }, children: [
16191
16188
  e.includes(
16192
16189
  "delivery"
16193
16190
  /* Delivery */
16194
- ) && E && /* @__PURE__ */ l(Z, { children: [
16191
+ ) && (c.email_notifications_enabled || c.sms_notifications_enabled || c.push_notifications_enabled) && /* @__PURE__ */ l(Z, { children: [
16195
16192
  /* @__PURE__ */ t(A1, {}),
16196
16193
  /* @__PURE__ */ t(P, { sx: { my: 24 } })
16197
16194
  ] }),
16198
16195
  e.includes(
16199
16196
  "insights"
16200
16197
  /* Insights */
16201
- ) && E && /* @__PURE__ */ l(Z, { children: [
16198
+ ) && _.length > 0 && /* @__PURE__ */ l(Z, { children: [
16202
16199
  /* @__PURE__ */ t(v1, {}),
16203
16200
  /* @__PURE__ */ t(P, { sx: { mb: 24, mt: 0 } })
16204
16201
  ] }),
@@ -16207,17 +16204,17 @@ const l1 = x(() => {
16207
16204
  /* Accounts */
16208
16205
  ) && /* @__PURE__ */ l(Z, { children: [
16209
16206
  /* @__PURE__ */ t(dt, { mb: 24, children: i.accounts_title }),
16210
- r.map((b) => /* @__PURE__ */ t(
16207
+ r.map((S) => /* @__PURE__ */ t(
16211
16208
  Mi,
16212
16209
  {
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
16210
+ isChecked: S.is_enabled,
16211
+ isDisabled: !S.is_enabled,
16212
+ onClick: () => f(S),
16213
+ onToggle: () => b(S),
16214
+ primaryText: S.label,
16215
+ secondaryText: S.is_enabled ? S.deliveryMethodsLabel : void 0
16219
16216
  },
16220
- b.guid
16217
+ S.guid
16221
16218
  )),
16222
16219
  /* @__PURE__ */ t(P, { sx: { my: 24 } })
16223
16220
  ] }),
@@ -16226,27 +16223,27 @@ const l1 = x(() => {
16226
16223
  /* Budgets */
16227
16224
  ) && /* @__PURE__ */ l(Z, { children: [
16228
16225
  /* @__PURE__ */ t(dt, { mb: 24, children: i.budgets_title }),
16229
- s.map((b) => /* @__PURE__ */ t(
16226
+ s.map((S) => /* @__PURE__ */ t(
16230
16227
  Mi,
16231
16228
  {
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
16229
+ isChecked: S.is_enabled,
16230
+ isDisabled: !S.is_enabled,
16231
+ onClick: () => f(S),
16232
+ onToggle: () => b(S),
16233
+ primaryText: S.label,
16234
+ secondaryText: S.is_enabled ? S.deliveryMethodsLabel : void 0
16238
16235
  },
16239
- b.guid
16236
+ S.guid
16240
16237
  ))
16241
16238
  ] }),
16242
16239
  /* @__PURE__ */ t(
16243
16240
  ce,
16244
16241
  {
16245
- isOpen: !!g,
16246
- onClose: () => m(void 0),
16242
+ isOpen: !!C,
16243
+ onClose: () => f(void 0),
16247
16244
  primaryText: a.save_button,
16248
- title: g?.label || "",
16249
- children: g && /* @__PURE__ */ t(x1, { onUpdateProfile: C, profile: g })
16245
+ title: C?.label || "",
16246
+ children: C && /* @__PURE__ */ t(x1, { onUpdateProfile: E, profile: C })
16250
16247
  }
16251
16248
  )
16252
16249
  ] });
@@ -16286,15 +16283,15 @@ const l1 = x(() => {
16286
16283
  /* @__PURE__ */ t(y, { sx: { flexDirection: { xs: "column", md: "row" }, gap: 12 }, children: [0, 1].map((u) => {
16287
16284
  const g = u === 0 ? 0 : _, m = u === 0 ? _ : a.length, C = a.slice(g, m);
16288
16285
  return /* @__PURE__ */ t(y, { sx: { flex: 1, gap: 12, maxWidth: { md: "calc(50% - 6px)" } }, children: C.map(({ guid: f, icon: E, topics: b, title: S }, A) => {
16289
- const N = A + g;
16286
+ const v = A + g;
16290
16287
  return /* @__PURE__ */ l(
16291
16288
  Xn,
16292
16289
  {
16293
16290
  disableGutters: !0,
16294
- expanded: N === c,
16295
- onChange: (v, R) => d(R ? N : null),
16296
- sx: (v) => ({
16297
- border: `1px solid ${v.palette.border?.light}`,
16291
+ expanded: v === c,
16292
+ onChange: (w, R) => d(R ? v : null),
16293
+ sx: (w) => ({
16294
+ border: `1px solid ${w.palette.border?.light}`,
16298
16295
  borderRadius: "8px !important",
16299
16296
  "&:before": {
16300
16297
  opacity: 0
@@ -16325,12 +16322,12 @@ const l1 = x(() => {
16325
16322
  ml: 56,
16326
16323
  p: 0
16327
16324
  },
16328
- children: /* @__PURE__ */ t(ae, { disablePadding: !0, children: b.map(({ label: v, topicKey: R }) => /* @__PURE__ */ t(
16325
+ children: /* @__PURE__ */ t(ae, { disablePadding: !0, children: b.map(({ label: w, topicKey: R }) => /* @__PURE__ */ t(
16329
16326
  _e,
16330
16327
  {
16331
- "aria-label": v,
16328
+ "aria-label": w,
16332
16329
  divider: !0,
16333
- onClick: () => s({ guid: f, category: S, pageTitle: v, topicKey: R }),
16330
+ onClick: () => s({ guid: f, category: S, pageTitle: w, topicKey: R }),
16334
16331
  sx: {
16335
16332
  pl: "6px !important",
16336
16333
  borderColor: "border.light",
@@ -16339,7 +16336,7 @@ const l1 = x(() => {
16339
16336
  borderBottomRightRadius: 7
16340
16337
  }
16341
16338
  },
16342
- children: /* @__PURE__ */ t(p, { color: "secondary", variant: "Small", children: v })
16339
+ children: /* @__PURE__ */ t(p, { color: "secondary", variant: "Small", children: w })
16343
16340
  },
16344
16341
  R
16345
16342
  )) })
@@ -18979,9 +18976,9 @@ const l1 = x(() => {
18979
18976
  onPrimaryAction: () => {
18980
18977
  const E = {};
18981
18978
  let b = !0;
18982
- g.forEach(({ label: S, name: A, required: 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);
18979
+ g.forEach(({ label: S, name: A, required: v }) => {
18980
+ const w = _[A];
18981
+ v && !w && (E[A] = `${S} ${e.request_support_required_message}`, b = !1), (A === "institutionWebsite" || A === "institutionLoginPage") && w && !/(.+)\.(.{2,})/g.test(w) && (E[A] = e.request_support_valid_url_message, b = !1);
18985
18982
  }), d(E), b && (i(_), u(Ti));
18986
18983
  },
18987
18984
  secondaryColor: "primary",
@@ -19206,9 +19203,9 @@ const l1 = x(() => {
19206
19203
  })), A = Object.keys(e.popular_topics_list).map((D, G) => ({
19207
19204
  name: e.popular_topics_list[D],
19208
19205
  type: ip[G].type
19209
- })), N = () => {
19206
+ })), v = () => {
19210
19207
  u(""), b({ isOpen: !1, topic: "", type: void 0 });
19211
- }, v = (D) => {
19208
+ }, w = (D) => {
19212
19209
  c.email && o({
19213
19210
  email: c.email,
19214
19211
  message: _ ? `Institution: ${_}, ${D}` : D,
@@ -19217,7 +19214,7 @@ const l1 = x(() => {
19217
19214
  }, R = (D, G) => {
19218
19215
  G === "other" ? f(!0) : b({ isOpen: !0, topic: D, type: G });
19219
19216
  }, L = () => {
19220
- s(""), m(!1), f(!1), N();
19217
+ s(""), m(!1), f(!1), v();
19221
19218
  }, B = (D) => {
19222
19219
  if (!c.email) {
19223
19220
  s(e.request_support_email_not_exists_message, "error");
@@ -19295,7 +19292,7 @@ const l1 = x(() => {
19295
19292
  onClose: () => {
19296
19293
  m(!1), u("");
19297
19294
  },
19298
- onSubmit: v,
19295
+ onSubmit: w,
19299
19296
  setAlert: s,
19300
19297
  topic: E.topic || e.contact_support
19301
19298
  }
@@ -19317,7 +19314,7 @@ const l1 = x(() => {
19317
19314
  onClick: (D) => {
19318
19315
  u(D), E.type === "internal" && m(!0);
19319
19316
  },
19320
- onClose: N,
19317
+ onClose: v,
19321
19318
  topic: E.topic
19322
19319
  }
19323
19320
  ),
@@ -19340,7 +19337,7 @@ const l1 = x(() => {
19340
19337
  institution: _,
19341
19338
  isOpen: !!_ && E.type === "external",
19342
19339
  onClose: () => u(""),
19343
- popularTopicsDrawerOnClose: N,
19340
+ popularTopicsDrawerOnClose: v,
19344
19341
  title: E.topic
19345
19342
  }
19346
19343
  )
@@ -20443,11 +20440,11 @@ const Ai = ({
20443
20440
  account_type: b.account_type
20444
20441
  });
20445
20442
  }, E = (b) => {
20446
- const S = b === "hidden" ? u : g, A = b === "hidden" ? m : C, N = b === "hidden" ? a.account_hidden : a.account_closed;
20443
+ const S = b === "hidden" ? u : g, A = b === "hidden" ? m : C, v = b === "hidden" ? a.account_hidden : a.account_closed;
20447
20444
  return /* @__PURE__ */ t(O, { children: /* @__PURE__ */ t(
20448
20445
  ae,
20449
20446
  {
20450
- "aria-label": N,
20447
+ "aria-label": v,
20451
20448
  subheader: /* @__PURE__ */ t(Lt, { component: "h2", sx: { backgroundColor: "transparent", px: 24 }, children: /* @__PURE__ */ l(
20452
20449
  we,
20453
20450
  {
@@ -20455,19 +20452,19 @@ const Ai = ({
20455
20452
  direction: "row",
20456
20453
  sx: { justifyContent: "space-between", color: "grey.700" },
20457
20454
  children: [
20458
- /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: N }),
20455
+ /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: v }),
20459
20456
  /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: H(A, "0,0.00") })
20460
20457
  ]
20461
20458
  }
20462
20459
  ) }),
20463
- children: /* @__PURE__ */ t(we, { children: S.map((v, R, L) => {
20460
+ children: /* @__PURE__ */ t(we, { children: S.map((w, R, L) => {
20464
20461
  const B = R === L.length - 1;
20465
20462
  return /* @__PURE__ */ l(h.Fragment, { children: [
20466
20463
  /* @__PURE__ */ t(
20467
20464
  fa,
20468
20465
  {
20469
- account: v,
20470
- onRowClick: () => f(v),
20466
+ account: w,
20467
+ onRowClick: () => f(w),
20471
20468
  shouldShowConnectionStatus: !0
20472
20469
  }
20473
20470
  ),
@@ -20488,7 +20485,7 @@ const Ai = ({
20488
20485
  }
20489
20486
  }
20490
20487
  )
20491
- ] }, v.guid);
20488
+ ] }, w.guid);
20492
20489
  }) })
20493
20490
  }
20494
20491
  ) });
@@ -20496,9 +20493,9 @@ const Ai = ({
20496
20493
  return /* @__PURE__ */ l(O, { sx: { pt: 24 }, children: [
20497
20494
  d.map((b) => {
20498
20495
  const S = i.filter(
20499
- (N) => N.account_type === b && !N.is_closed && !N.is_hidden
20496
+ (v) => v.account_type === b && !v.is_closed && !v.is_hidden
20500
20497
  ), A = S.reduce(
20501
- (N, v) => (v.available_balance || v.balance || 0) + N,
20498
+ (v, w) => (w.available_balance || w.balance || 0) + v,
20502
20499
  0
20503
20500
  );
20504
20501
  return /* @__PURE__ */ t(
@@ -20517,18 +20514,18 @@ const Ai = ({
20517
20514
  ]
20518
20515
  }
20519
20516
  ) }),
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;
20517
+ children: /* @__PURE__ */ t(we, { children: S.map((v) => {
20518
+ const w = i.indexOf(v) === i.length - 1, R = S.indexOf(v) === S.length - 1;
20522
20519
  return /* @__PURE__ */ l(h.Fragment, { children: [
20523
20520
  /* @__PURE__ */ t(
20524
20521
  fa,
20525
20522
  {
20526
- account: N,
20527
- onRowClick: () => f(N),
20523
+ account: v,
20524
+ onRowClick: () => f(v),
20528
20525
  shouldShowConnectionStatus: !0
20529
20526
  }
20530
20527
  ),
20531
- (!v || g.length > 0 || u.length > 0) && /* @__PURE__ */ t(
20528
+ (!w || g.length > 0 || u.length > 0) && /* @__PURE__ */ t(
20532
20529
  P,
20533
20530
  {
20534
20531
  sx: {
@@ -20537,7 +20534,7 @@ const Ai = ({
20537
20534
  }
20538
20535
  }
20539
20536
  )
20540
- ] }, N.guid);
20537
+ ] }, v.guid);
20541
20538
  }) })
20542
20539
  },
20543
20540
  b
@@ -21426,9 +21423,9 @@ const kC = () => {
21426
21423
  e("survey dismissed", {
21427
21424
  $survey_id: a
21428
21425
  }), u(), S(!1);
21429
- }, N = () => {
21430
- r();
21431
21426
  }, v = () => {
21427
+ r();
21428
+ }, w = () => {
21432
21429
  e("survey sent", _), u(), S(!0);
21433
21430
  };
21434
21431
  return f ? !i && !b ? null : /* @__PURE__ */ l(
@@ -21464,7 +21461,7 @@ const kC = () => {
21464
21461
  J,
21465
21462
  {
21466
21463
  disabled: !o && !d,
21467
- onClick: o ? v : N,
21464
+ onClick: o ? w : v,
21468
21465
  sx: {
21469
21466
  borderColor: n.palette.border.light,
21470
21467
  "&:hover": {
@@ -22025,7 +22022,7 @@ const JC = ({
22025
22022
  const { budgets: a, common: i } = I(), { setExpandedGuid: o, setOnSelect: r } = ln(), { addBudget: s } = _t(), [c, d] = h.useState(!1), [_, u] = h.useState(!1), [g, m] = h.useState(""), [C, f] = h.useState(void 0);
22026
22023
  h.useEffect(() => {
22027
22024
  r((S) => {
22028
- const A = e.subCategories.find((N) => N.guid === S);
22025
+ const A = e.subCategories.find((v) => v.guid === S);
22029
22026
  A && (f(A), m(`${A.currentAmount === 0 ? "" : A.currentAmount}`), u(!0));
22030
22027
  });
22031
22028
  }, []);
@@ -22078,7 +22075,7 @@ const JC = ({
22078
22075
  h.useEffect(() => {
22079
22076
  s && (b(`${s.amount}`), u({
22080
22077
  ..._,
22081
- custom: (v) => v.category_guid === s.category_guid
22078
+ custom: (w) => w.category_guid === s.category_guid
22082
22079
  }));
22083
22080
  }, [s]);
22084
22081
  const S = async () => {
@@ -22087,19 +22084,19 @@ const JC = ({
22087
22084
  amount: Number(E)
22088
22085
  });
22089
22086
  }, A = async () => {
22090
- s && await r(s.guid), f(!1), N();
22091
- }, N = () => {
22087
+ s && await r(s.guid), f(!1), v();
22088
+ }, v = () => {
22092
22089
  u({
22093
22090
  ..._,
22094
- custom: (v) => v.category_guid === e.category_guid || v.top_level_category_guid === e.category_guid
22091
+ custom: (w) => w.category_guid === e.category_guid || w.top_level_category_guid === e.category_guid
22095
22092
  }), c(void 0);
22096
22093
  };
22097
22094
  return /* @__PURE__ */ l(h.Fragment, { children: [
22098
22095
  /* @__PURE__ */ l(ae, { sx: { bgcolor: "background.paper" }, children: [
22099
- a.length === 0 ? /* @__PURE__ */ t(c0, {}) : a.map((v) => /* @__PURE__ */ l(h.Fragment, { children: [
22100
- /* @__PURE__ */ t(l0, { budget: v }),
22096
+ a.length === 0 ? /* @__PURE__ */ t(c0, {}) : a.map((w) => /* @__PURE__ */ l(h.Fragment, { children: [
22097
+ /* @__PURE__ */ t(l0, { budget: w }),
22101
22098
  /* @__PURE__ */ t(P, {})
22102
- ] }, v.guid)),
22099
+ ] }, w.guid)),
22103
22100
  /* @__PURE__ */ t(d0, { category: n, parentBudget: e })
22104
22101
  ] }),
22105
22102
  /* @__PURE__ */ t(
@@ -22107,7 +22104,7 @@ const JC = ({
22107
22104
  {
22108
22105
  ariaLabelClose: o.close_aria,
22109
22106
  isOpen: !!s,
22110
- onClose: N,
22107
+ onClose: v,
22111
22108
  onPrimaryAction: () => m(!0),
22112
22109
  onSecondaryAction: () => f(!0),
22113
22110
  primaryText: i.details_edit_button,
@@ -22222,13 +22219,13 @@ const JC = ({
22222
22219
  custom: (L) => L.category_guid === r.category_guid || L.top_level_category_guid === r.category_guid
22223
22220
  }));
22224
22221
  }, [r]);
22225
- const N = async () => {
22222
+ const v = async () => {
22226
22223
  r && (await _({
22227
22224
  ...r,
22228
22225
  amount: Number(S),
22229
22226
  percentage: r.category.totalAmount / Number(S) * 100
22230
22227
  }), c(T(n.alert_budget_updated, r.category.name)));
22231
- }, v = async () => {
22228
+ }, w = async () => {
22232
22229
  r && (await o(r.guid), c(T(n.alert_budget_deleted, r.category.name))), b(!1), R();
22233
22230
  }, R = () => {
22234
22231
  m(!1), setTimeout(() => {
@@ -22259,7 +22256,7 @@ const JC = ({
22259
22256
  disablePrimaryButton: Number(S) <= 0,
22260
22257
  isOpen: C,
22261
22258
  onClose: () => f(!1),
22262
- onPrimaryAction: N,
22259
+ onPrimaryAction: v,
22263
22260
  primaryText: n.edit_save_button,
22264
22261
  children: /* @__PURE__ */ t(
22265
22262
  hi,
@@ -22277,7 +22274,7 @@ const JC = ({
22277
22274
  copy: { close_aria: a.close_aria, title: n.delete_title },
22278
22275
  isOpen: E,
22279
22276
  onClose: () => b(!1),
22280
- onPrimaryAction: v,
22277
+ onPrimaryAction: w,
22281
22278
  primaryColor: "error",
22282
22279
  primaryText: n.details_delete_button,
22283
22280
  secondaryColor: "secondary",
@@ -22330,34 +22327,34 @@ const JC = ({
22330
22327
  ] });
22331
22328
  }), p0 = x(() => {
22332
22329
  const e = fe(), { onEvent: n } = j(), { visibleAccounts: a } = ve(), { budgets: i, common: o, recurring: r } = I(), { incomeCategories: s, spendCategories: c } = Ve(), { detailedBudgets: d, totalBudgeted: _ } = _t(), { projectedIncome: u } = Ze(), { setFilter: g } = De(), [m, C] = h.useState(!1), [f, E] = h.useMemo(() => {
22333
- const N = c.reduce((B, D) => B + D.totalAmount, 0);
22334
- let v = N / _;
22335
- v > 1 && (v = 1);
22330
+ const v = c.reduce((B, D) => B + D.totalAmount, 0);
22331
+ let w = v / _;
22332
+ w > 1 && (w = 1);
22336
22333
  let R = e.palette.success.main;
22337
- v > 0.8 && v < 1 ? R = e.palette.warning.main : v >= 1 && (R = e.palette.error.main);
22334
+ w > 0.8 && w < 1 ? R = e.palette.warning.main : w >= 1 && (R = e.palette.error.main);
22338
22335
  const L = [
22339
22336
  {
22340
22337
  color: R,
22341
- percentage: `${v}`
22338
+ percentage: `${w}`
22342
22339
  }
22343
22340
  ];
22344
- return [N, L];
22341
+ return [v, L];
22345
22342
  }, [d, c]), [b, S] = h.useMemo(() => {
22346
- const N = Math.abs(
22343
+ const v = Math.abs(
22347
22344
  s.reduce((L, B) => L + B.totalAmount, 0)
22348
22345
  );
22349
- let v = N / u;
22350
- v > 1 && (v = 1);
22346
+ let w = v / u;
22347
+ w > 1 && (w = 1);
22351
22348
  const R = [
22352
22349
  {
22353
22350
  color: e.palette.secondary.main,
22354
- percentage: `${v}`
22351
+ percentage: `${w}`
22355
22352
  }
22356
22353
  ];
22357
- return [N, R];
22354
+ return [v, R];
22358
22355
  }, [s, u]), A = () => {
22359
22356
  g({
22360
- accounts: a.map((N) => N.guid),
22357
+ accounts: a.map((v) => v.guid),
22361
22358
  dateRange: {
22362
22359
  start: wt(/* @__PURE__ */ new Date(), 90),
22363
22360
  end: /* @__PURE__ */ new Date()
@@ -22420,14 +22417,14 @@ const JC = ({
22420
22417
  setDateRange: b,
22421
22418
  setAlert: S,
22422
22419
  setTheme: A,
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);
22420
+ budgets: v
22421
+ } = _t(), { loadRepeatingTransactions: w } = Ze(), { reloadCategoryTotals: R } = Ve(), { isSmallTablet: L, isMobile: B, isSmallMobile: D } = Ce(), G = L || B || D, [k, U] = h.useState(!1);
22425
22422
  h.useEffect(() => {
22426
22423
  A(a), g(o), u(C.start, C.end), i(W.BUDGETS_VIEW);
22427
22424
  }, []), h.useEffect(() => {
22428
22425
  g(o);
22429
22426
  }, [o]), h.useEffect(() => {
22430
- d && (R(_, C.start, C.end).finally(), f || (v().finally(), E().finally()));
22427
+ d && (R(_, C.start, C.end).finally(), f || (w().finally(), E().finally()));
22431
22428
  }, [d, _, C]);
22432
22429
  const oe = (Oe) => {
22433
22430
  b({ start: Oe[0] || /* @__PURE__ */ new Date(), end: Oe[1] || /* @__PURE__ */ new Date() });
@@ -22470,11 +22467,11 @@ const JC = ({
22470
22467
  createBudgetOnClick: te,
22471
22468
  height: G ? 450 : 800,
22472
22469
  isDraggable: !0,
22473
- shouldShowZeroState: N.length === 0,
22470
+ shouldShowZeroState: v.length === 0,
22474
22471
  unavailableWidth: G ? 0 : Ur
22475
22472
  }
22476
22473
  ) }),
22477
- N.length !== 0 && /* @__PURE__ */ l(
22474
+ v.length !== 0 && /* @__PURE__ */ l(
22478
22475
  y,
22479
22476
  {
22480
22477
  gap: 24,
@@ -22806,10 +22803,10 @@ const S0 = ({ widgets: e, isLoading: n }) => {
22806
22803
  ), m = u + d;
22807
22804
  A0.forEach((f, E) => {
22808
22805
  const b = c.filter(
22809
- (N) => !!N[f.name]
22806
+ (v) => !!v[f.name]
22810
22807
  );
22811
22808
  let S = b.reduce(
22812
- (N, v) => N + Pa(v) * v[f.name] / 100,
22809
+ (v, w) => v + Pa(w) * w[f.name] / 100,
22813
22810
  0
22814
22811
  );
22815
22812
  const A = x0(
@@ -22819,13 +22816,13 @@ const S0 = ({ widgets: e, isLoading: n }) => {
22819
22816
  );
22820
22817
  if (f.name === "allocations_cash" && d > 0) {
22821
22818
  S += d;
22822
- const N = {
22819
+ const v = {
22823
22820
  displayName: n.cash_balance_display_name,
22824
22821
  name: "allocations_name",
22825
22822
  value: d,
22826
22823
  percentage: d / m
22827
22824
  };
22828
- A.push(N);
22825
+ A.push(v);
22829
22826
  }
22830
22827
  S > 0 && (o.push({
22831
22828
  name: f.name,
@@ -23284,16 +23281,16 @@ const S0 = ({ widgets: e, isLoading: n }) => {
23284
23281
  }
23285
23282
  ),
23286
23283
  n.map((C, f, E) => /* @__PURE__ */ t(y, { sx: { flexDirection: "row", gap: 4 }, children: C.map((b, S) => {
23287
- const A = f === 0, N = f === E.length - 1, v = S === 0, R = S === C.length - 1, L = Number(b.replace("%", "")) >= 25;
23284
+ const A = f === 0, v = f === E.length - 1, w = S === 0, R = S === C.length - 1, L = Number(b.replace("%", "")) >= 25;
23288
23285
  let B = "grey.200", D = "grey.900";
23289
23286
  return d ? (B = L ? "grey.200" : "grey.700", D = L ? "grey.900" : "common.white") : (B = L ? "grey.700" : "grey.200", D = L ? "common.white" : "grey.900"), /* @__PURE__ */ t(
23290
23287
  y,
23291
23288
  {
23292
23289
  sx: {
23293
23290
  ...{
23294
- borderBottomLeftRadius: N && v ? 4 : 0,
23295
- borderBottomRightRadius: N && R ? 4 : 0,
23296
- borderTopLeftRadius: A && v ? 4 : 0,
23291
+ borderBottomLeftRadius: v && w ? 4 : 0,
23292
+ borderBottomRightRadius: v && R ? 4 : 0,
23293
+ borderTopLeftRadius: A && w ? 4 : 0,
23297
23294
  borderTopRightRadius: A && R ? 4 : 0
23298
23295
  },
23299
23296
  alignItems: "center",
@@ -23827,7 +23824,7 @@ const S0 = ({ widgets: e, isLoading: n }) => {
23827
23824
  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({
23828
23825
  accounts: [],
23829
23826
  holdings: []
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) => {
23827
+ }), { accounts: m, investments: C } = I(), { isCopyLoaded: f } = le(), [E, b] = St(null), [S, A] = St(""), w = fe().palette.mode === "dark", R = w ? "#0AC295" : "#09A57F", L = w ? "grey.300" : "grey.700", B = (Q, ee = "lesserThan") => ee === "greaterThan" ? Q >= 0 ? R : L : Q <= 0 ? L : R, D = (Q, ee) => {
23831
23828
  b(Q), A(ee.toFixed(2));
23832
23829
  }, G = (Q) => {
23833
23830
  const ee = Q.target.value;
@@ -24078,7 +24075,7 @@ const S0 = ({ widgets: e, isLoading: n }) => {
24078
24075
  },
24079
24076
  Q.guid
24080
24077
  );
24081
- const Ge = v ? "grey.700" : "grey.400", Bt = ee.length ? "text.primary" : Ge;
24078
+ const Ge = w ? "grey.700" : "grey.400", Bt = ee.length ? "text.primary" : Ge;
24082
24079
  return /* @__PURE__ */ l(
24083
24080
  Xn,
24084
24081
  {
@@ -24261,7 +24258,7 @@ const S0 = ({ widgets: e, isLoading: n }) => {
24261
24258
  W.INVESTMENT_WIDGET_DETAILS_CLICK,
24262
24259
  W.INVESTMENT_WIDGET_ALLOCATION_CLICK,
24263
24260
  W.INVESTMENT_WIDGET_ANALYSIS_CLICK
24264
- ], A = o.length === 0 && r.length === 0, N = [
24261
+ ], A = o.length === 0 && r.length === 0, v = [
24265
24262
  d.tab_overview_title,
24266
24263
  d.tab_allocation_title,
24267
24264
  d.tab_analysis_title
@@ -24279,14 +24276,14 @@ const S0 = ({ widgets: e, isLoading: n }) => {
24279
24276
  /* @__PURE__ */ t(
24280
24277
  jt,
24281
24278
  {
24282
- onChange: (v, R) => {
24279
+ onChange: (w, R) => {
24283
24280
  f(R), a(S[R]);
24284
24281
  },
24285
24282
  sx: { bgcolor: "background.paper" },
24286
24283
  textColor: "primary",
24287
24284
  value: A ? -1 : C,
24288
24285
  variant: "fullWidth",
24289
- children: N.map((v) => /* @__PURE__ */ t(Je, { disabled: A, label: /* @__PURE__ */ t(W0, { title: v }) }, v))
24286
+ children: v.map((w) => /* @__PURE__ */ t(Je, { disabled: A, label: /* @__PURE__ */ t(W0, { title: w }) }, w))
24290
24287
  }
24291
24288
  ),
24292
24289
  A ? /* @__PURE__ */ t(
@@ -24572,7 +24569,7 @@ const va = h.createContext(null), X0 = ({
24572
24569
  variant: f,
24573
24570
  widthOverrides: E
24574
24571
  }, b) {
24575
- const [S, A] = h.useState(2), [N, v] = h.useState(!1);
24572
+ const [S, A] = h.useState(2), [v, w] = h.useState(!1);
24576
24573
  h.useEffect(() => {
24577
24574
  E && E <= 325 && A(3);
24578
24575
  }, [E]);
@@ -24615,13 +24612,13 @@ const va = h.createContext(null), X0 = ({
24615
24612
  "aria-label": a,
24616
24613
  id: "divButton",
24617
24614
  onClick: () => _(),
24618
- onKeyDown: () => v(!1),
24619
- onKeyUp: () => v(!0),
24615
+ onKeyDown: () => w(!1),
24616
+ onKeyUp: () => w(!0),
24620
24617
  ref: b,
24621
24618
  role: "button",
24622
24619
  style: {
24623
24620
  borderRadius: "8px",
24624
- border: N ? "1px solid rgba(82, 138, 224, 0.8)" : void 0
24621
+ border: v ? "1px solid rgba(82, 138, 224, 0.8)" : void 0
24625
24622
  },
24626
24623
  tabIndex: c ? 0 : -1,
24627
24624
  children: /* @__PURE__ */ t(
@@ -24686,7 +24683,7 @@ const va = h.createContext(null), X0 = ({
24686
24683
  );
24687
24684
  }
24688
24685
  ), Z0 = ({ beat: e }) => {
24689
- const [n, a] = St(w.UNCATEGORIZED);
24686
+ const [n, a] = St(N.UNCATEGORIZED);
24690
24687
  return Mn(() => {
24691
24688
  e.primary_category_guid ? a(e.primary_category_guid) : e.category_guids?.length && a(e.category_guids[0]);
24692
24689
  }, []), /* @__PURE__ */ t(Mt, { categoryGuid: n, size: 16, sx: { minWidth: 16 } });
@@ -25592,11 +25589,11 @@ const va = h.createContext(null), X0 = ({
25592
25589
  }, [f]), Mn(() => {
25593
25590
  if (f && a)
25594
25591
  if (a.template === "MarketingOffer") {
25595
- const v = a;
25592
+ const w = a;
25596
25593
  _?.capture("viewed_messaging_insight", {
25597
25594
  template: a.template,
25598
- campaign_guid: v.campaign_guid,
25599
- campaign_name: v.pulse_campaign_name
25595
+ campaign_guid: w.campaign_guid,
25596
+ campaign_name: w.pulse_campaign_name
25600
25597
  });
25601
25598
  } else
25602
25599
  _?.capture("viewed_insight", {
@@ -25605,13 +25602,13 @@ const va = h.createContext(null), X0 = ({
25605
25602
  position: s
25606
25603
  });
25607
25604
  }, [a, s, f]);
25608
- const N = () => {
25605
+ const v = () => {
25609
25606
  if (d && d(a), b(Nc(a.template)), a.template === "MarketingOffer") {
25610
- const v = a;
25607
+ const w = a;
25611
25608
  _?.capture("clicked_messaging_insight", {
25612
25609
  template: a.template,
25613
- campaign_guid: v.campaign_guid,
25614
- campaign_name: v.pulse_campaign_name
25610
+ campaign_guid: w.campaign_guid,
25611
+ campaign_name: w.pulse_campaign_name
25615
25612
  });
25616
25613
  } else
25617
25614
  _?.capture("clicked_insight", {
@@ -25639,7 +25636,7 @@ const va = h.createContext(null), X0 = ({
25639
25636
  }
25640
25637
  ),
25641
25638
  isActiveCard: c,
25642
- onCardClick: N,
25639
+ onCardClick: v,
25643
25640
  posthog: _,
25644
25641
  ref: C,
25645
25642
  showCTAColocatedWithText: o,
@@ -25735,8 +25732,8 @@ const va = h.createContext(null), X0 = ({
25735
25732
  variant: _,
25736
25733
  widthOverrides: u
25737
25734
  }) => {
25738
- const g = uf(i, d, u), m = h.useRef(null), [C, f] = h.useState(0), [E, b] = h.useState(null), [S, A] = h.useState(null), { carouselCopy: N } = Rn(), { onEvent: v } = wa(), R = () => {
25739
- v($t.ON_CAROUSEL_FORWARD_CLICK), m.current && m.current.scrollTo({
25735
+ const g = uf(i, d, u), m = h.useRef(null), [C, f] = h.useState(0), [E, b] = h.useState(null), [S, A] = h.useState(null), { carouselCopy: v } = Rn(), { onEvent: w } = wa(), R = () => {
25736
+ w($t.ON_CAROUSEL_FORWARD_CLICK), m.current && m.current.scrollTo({
25740
25737
  left: (
25741
25738
  // Adds the flex gap to the carousel ref's width
25742
25739
  (m.current.offsetWidth + 8) * (Math.floor(C / (m.current.offsetWidth + 8)) + 1)
@@ -25745,7 +25742,7 @@ const va = h.createContext(null), X0 = ({
25745
25742
  behavior: "smooth"
25746
25743
  });
25747
25744
  }, L = () => {
25748
- v($t.ON_CAROUSEL_BACK_CLICK), m.current && m.current.scrollTo({
25745
+ w($t.ON_CAROUSEL_BACK_CLICK), m.current && m.current.scrollTo({
25749
25746
  left: (m.current.offsetWidth + 8) * (Math.floor(C / (m.current.offsetWidth + 8)) - 1),
25750
25747
  top: 0,
25751
25748
  behavior: "smooth"
@@ -25754,7 +25751,7 @@ const va = h.createContext(null), X0 = ({
25754
25751
  m.current && f(m.current.scrollLeft);
25755
25752
  }, D = () => {
25756
25753
  if (!S || !E) return;
25757
- S - E > rf ? v($t.ON_CAROUSEL_FORWARD_SWIPE) : v($t.ON_CAROUSEL_BACK_SWIPE);
25754
+ S - E > rf ? w($t.ON_CAROUSEL_FORWARD_SWIPE) : w($t.ON_CAROUSEL_BACK_SWIPE);
25758
25755
  }, G = (te) => {
25759
25756
  b(te.targetTouches[0].clientX);
25760
25757
  }, k = (te) => {
@@ -25771,7 +25768,7 @@ const va = h.createContext(null), X0 = ({
25771
25768
  return /* @__PURE__ */ l(
25772
25769
  "div",
25773
25770
  {
25774
- "aria-label": N.carousel_title,
25771
+ "aria-label": v.carousel_title,
25775
25772
  "aria-roledescription": "carousel",
25776
25773
  className: g,
25777
25774
  role: "group/region",
@@ -25788,7 +25785,7 @@ const va = h.createContext(null), X0 = ({
25788
25785
  children: [
25789
25786
  e.map((te, he) => {
25790
25787
  const Re = he + 1, Oe = e.length + 1, Se = T(
25791
- N.card_position_in_carousel_aria,
25788
+ v.card_position_in_carousel_aria,
25792
25789
  Re.toString(),
25793
25790
  Oe.toString()
25794
25791
  ), Le = te.micro_title && te.micro_title.length > 0, At = te.micro_description && te.micro_description.length > 0, Q = Le ? te.micro_title : te.title, ee = At ? te.micro_description : te.description;
@@ -26079,8 +26076,8 @@ const va = h.createContext(null), X0 = ({
26079
26076
  token: b = "",
26080
26077
  useDarkMode: S,
26081
26078
  userHasFullInsightFeedBeats: A,
26082
- variant: N,
26083
- widthOverrides: v
26079
+ variant: v,
26080
+ widthOverrides: w
26084
26081
  }) => {
26085
26082
  const R = at(), [L, B] = St("STANDARD"), [D, G] = St(!1), k = Qd([d], _n), U = Jd([_], _n);
26086
26083
  h.useEffect(() => {
@@ -26099,17 +26096,17 @@ const va = h.createContext(null), X0 = ({
26099
26096
  showIcon: f,
26100
26097
  showWithMargin: E,
26101
26098
  useDarkMode: S,
26102
- widthOverrides: v
26099
+ widthOverrides: w
26103
26100
  }, me = {
26104
26101
  carouselSize: L,
26105
- variant: N,
26102
+ variant: v,
26106
26103
  ...oe
26107
26104
  };
26108
26105
  return (
26109
26106
  // The Theme provider must wrap the component so that the styles don't break when imported into other applications.
26110
26107
  /* @__PURE__ */ l(hl, { theme: R, children: [
26111
26108
  /* @__PURE__ */ t(xd, {}),
26112
- /* @__PURE__ */ t(X0, { onEvent: k, onPageview: U, store: _n, children: /* @__PURE__ */ l(mf, { heightOverrides: r, widthOverrides: v, children: [
26109
+ /* @__PURE__ */ t(X0, { onEvent: k, onPageview: U, store: _n, children: /* @__PURE__ */ l(mf, { heightOverrides: r, widthOverrides: w, children: [
26113
26110
  (e || !_n.isInitialized) && /* @__PURE__ */ t(pf, {}),
26114
26111
  D && C && /* @__PURE__ */ t(
26115
26112
  gf,
@@ -26117,7 +26114,7 @@ const va = h.createContext(null), X0 = ({
26117
26114
  clientColorScheme: a,
26118
26115
  onCardClick: c,
26119
26116
  posthog: u,
26120
- widthOverrides: v
26117
+ widthOverrides: w
26121
26118
  }
26122
26119
  ),
26123
26120
  D && !!n.length && /* @__PURE__ */ t(
@@ -26126,7 +26123,7 @@ const va = h.createContext(null), X0 = ({
26126
26123
  beats: n,
26127
26124
  clientColorScheme: a,
26128
26125
  showCarouselControls: m,
26129
- variant: g ? N : void 0,
26126
+ variant: g ? v : void 0,
26130
26127
  ...oe
26131
26128
  }
26132
26129
  ),
@@ -26200,7 +26197,7 @@ const va = h.createContext(null), X0 = ({
26200
26197
  }
26201
26198
  return a;
26202
26199
  }, []), Hc = (e, n) => {
26203
- const a = yf(e, n), i = a.filter((d) => d.guid !== w.INCOME && d.guid !== w.TRANSFER).sort((d, _) => _.amount - d.amount), o = i.reduce(
26200
+ const a = yf(e, n), i = a.filter((d) => d.guid !== N.INCOME && d.guid !== N.TRANSFER).sort((d, _) => _.amount - d.amount), o = i.reduce(
26204
26201
  (d, _) => d + _.amount,
26205
26202
  0
26206
26203
  ), r = i.length > xi ? xi : i.length, s = i.slice(0, r), c = s.map((d) => ({
@@ -26238,7 +26235,7 @@ const va = h.createContext(null), X0 = ({
26238
26235
  };
26239
26236
  }, Fc = (e, n, a) => {
26240
26237
  const i = e.filter(
26241
- (c) => c.parent_guid === w.INCOME
26238
+ (c) => c.parent_guid === N.INCOME
26242
26239
  ), o = n.filter((c) => i.some((d) => d.guid === c.category_guid)).sort((c, d) => c.total - d.total).map((c, d) => ({
26243
26240
  guid: c.category_guid,
26244
26241
  name: e.find((_) => _.guid === c.category_guid)?.name,
@@ -26291,7 +26288,7 @@ const va = h.createContext(null), X0 = ({
26291
26288
  /* @__PURE__ */ t(
26292
26289
  Mt,
26293
26290
  {
26294
- categoryGuid: n ? w.INCOME : g.guid,
26291
+ categoryGuid: n ? N.INCOME : g.guid,
26295
26292
  size: c === "mini" ? 24 : f,
26296
26293
  variant: Jr.Transparent
26297
26294
  }
@@ -26588,10 +26585,10 @@ const va = h.createContext(null), X0 = ({
26588
26585
  const A = h.useMemo(
26589
26586
  () => Hc(n, a),
26590
26587
  [n, a]
26591
- ), N = h.useMemo(
26588
+ ), v = h.useMemo(
26592
26589
  () => Fc(n, a, wf(e)),
26593
26590
  [n, a]
26594
- ), v = h.useMemo(
26591
+ ), w = h.useMemo(
26595
26592
  () => _.find((D) => D.guid === f),
26596
26593
  [f]
26597
26594
  ), R = (D, G) => {
@@ -26613,12 +26610,12 @@ const va = h.createContext(null), X0 = ({
26613
26610
  } else
26614
26611
  d({
26615
26612
  ...G,
26616
- custom: (k) => D ? k.top_level_category_guid === D : k.top_level_category_guid !== w.INCOME
26613
+ custom: (k) => D ? k.top_level_category_guid === D : k.top_level_category_guid !== N.INCOME
26617
26614
  });
26618
26615
  else
26619
26616
  d({
26620
26617
  ...G,
26621
- custom: (k) => D ? k.category_guid === D : k.top_level_category_guid === w.INCOME
26618
+ custom: (k) => D ? k.category_guid === D : k.top_level_category_guid === N.INCOME
26622
26619
  });
26623
26620
  S(!0);
26624
26621
  };
@@ -26642,7 +26639,7 @@ const va = h.createContext(null), X0 = ({
26642
26639
  label: /* @__PURE__ */ t(
26643
26640
  Xa,
26644
26641
  {
26645
- amount: N.totalAmount,
26642
+ amount: v.totalAmount,
26646
26643
  label: o.income_tab_title
26647
26644
  }
26648
26645
  )
@@ -26662,7 +26659,7 @@ const va = h.createContext(null), X0 = ({
26662
26659
  m === 1 && /* @__PURE__ */ t(
26663
26660
  qr,
26664
26661
  {
26665
- data: N,
26662
+ data: v,
26666
26663
  onSelected: L,
26667
26664
  onViewTransactions: B,
26668
26665
  selectedId: u,
@@ -26683,10 +26680,10 @@ const va = h.createContext(null), X0 = ({
26683
26680
  ce,
26684
26681
  {
26685
26682
  ariaLabelClose: o.close_drawer_aria,
26686
- isOpen: !!v,
26683
+ isOpen: !!w,
26687
26684
  onClose: () => E(""),
26688
26685
  title: o.transaction_details_drawer_title,
26689
- children: v && /* @__PURE__ */ t(ea, { transaction: v })
26686
+ children: w && /* @__PURE__ */ t(ea, { transaction: w })
26690
26687
  }
26691
26688
  )
26692
26689
  ] });
@@ -26816,15 +26813,15 @@ const kf = (e) => e.reduce((a, i) => {
26816
26813
  (E) => E.category_guid === a || E.top_level_category_guid === a
26817
26814
  ) : e).reduce(
26818
26815
  (E, b) => {
26819
- const { category_guid: S, top_level_category_guid: A, month: N, total: v, year: R } = b, L = a ? S : A;
26816
+ const { category_guid: S, top_level_category_guid: A, month: v, total: w, year: R } = b, L = a ? S : A;
26820
26817
  E[L] || (E[L] = {
26821
26818
  id: L,
26822
26819
  category: L,
26823
26820
  category_guid: S,
26824
26821
  top_level_category_guid: A
26825
26822
  });
26826
- const B = re(new Date(R, N - 1), ne.MONTH_SHORT);
26827
- return E[L][B] || (E[L][B] = 0), E[L][B] = E[L][B] + v, E;
26823
+ const B = re(new Date(R, v - 1), ne.MONTH_SHORT);
26824
+ return E[L][B] || (E[L][B] = 0), E[L][B] = E[L][B] + w, E;
26828
26825
  },
26829
26826
  {}
26830
26827
  );
@@ -26885,7 +26882,7 @@ const kf = (e) => e.reduce((a, i) => {
26885
26882
  }, Kf = x(Vf), zf = {
26886
26883
  view_transactions: "View Transactions"
26887
26884
  }, Yf = ({ onBackClick: e, sx: n }) => {
26888
- const a = at(), { onEvent: i } = j(), { isDesktop: o, isTablet: r, isMobile: s } = Ce(), { visibleAccounts: c } = ve(), { loadMonthlyCategoryTotals: d, monthlyCategoryTotals: _, getCategoryName: u } = Ve(), { sortedTransactions: g } = De(), { isCopyLoaded: m, isInitialized: C, selectedAccounts: f, setSelectedAccounts: E } = le(), { trends: b } = I(), S = a.palette.mode === "dark", [A, N] = h.useState(!1), [v, R] = h.useState(!1), [L, B] = h.useState("Chart"), [D, G] = h.useState(""), [k, U] = h.useState({
26885
+ const a = at(), { onEvent: i } = j(), { isDesktop: o, isTablet: r, isMobile: s } = Ce(), { visibleAccounts: c } = ve(), { loadMonthlyCategoryTotals: d, monthlyCategoryTotals: _, getCategoryName: u } = Ve(), { sortedTransactions: g } = De(), { isCopyLoaded: m, isInitialized: C, selectedAccounts: f, setSelectedAccounts: E } = le(), { trends: b } = I(), S = a.palette.mode === "dark", [A, v] = h.useState(!1), [w, R] = h.useState(!1), [L, B] = h.useState("Chart"), [D, G] = h.useState(""), [k, U] = h.useState({
26889
26886
  start: Wo(Qe(Vt(/* @__PURE__ */ new Date(), 6)), 1),
26890
26887
  end: Qe(/* @__PURE__ */ new Date())
26891
26888
  });
@@ -26897,7 +26894,7 @@ const kf = (e) => e.reduce((a, i) => {
26897
26894
  k.start,
26898
26895
  k.end
26899
26896
  ).finally(() => {
26900
- N(!0);
26897
+ v(!0);
26901
26898
  });
26902
26899
  }, [C, f, k]);
26903
26900
  const oe = h.useMemo(() => {
@@ -27065,7 +27062,7 @@ const kf = (e) => e.reduce((a, i) => {
27065
27062
  {
27066
27063
  categoryGuid: D,
27067
27064
  dateRange: k,
27068
- isOpen: v,
27065
+ isOpen: w,
27069
27066
  onClose: () => R(!1)
27070
27067
  }
27071
27068
  )
@@ -27141,7 +27138,7 @@ export {
27141
27138
  Yo as CategoryApi,
27142
27139
  Sn as CategoryColors,
27143
27140
  ai as CategoryGuidToName,
27144
- w as CategoryGuids,
27141
+ N as CategoryGuids,
27145
27142
  Md as CategoryIcon,
27146
27143
  Hs as CategoryRow,
27147
27144
  dh as CategorySelector,