@mx-cartographer/experiences 9.1.3 → 9.1.4-alpha.al0

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.
Files changed (128) hide show
  1. package/CHANGELOG.md +0 -6
  2. package/dist/{AccountDetailsDrawer-Cq4kiiKD.mjs → AccountDetailsDrawer-Dae8eUXt.mjs} +10 -10
  3. package/dist/{AccountDetailsDrawer-Cq4kiiKD.mjs.map → AccountDetailsDrawer-Dae8eUXt.mjs.map} +1 -1
  4. package/dist/{AccountDetailsHeader-BliEZhz7.mjs → AccountDetailsHeader-D_UjMD99.mjs} +4 -4
  5. package/dist/{AccountDetailsHeader-BliEZhz7.mjs.map → AccountDetailsHeader-D_UjMD99.mjs.map} +1 -1
  6. package/dist/{Analytics-CkYXKvco.mjs → Analytics-BJDUP2qI.mjs} +2 -2
  7. package/dist/{Analytics-CkYXKvco.mjs.map → Analytics-BJDUP2qI.mjs.map} +1 -1
  8. package/dist/{CategorySelectorDrawer-NJsFsKP1.mjs → CategorySelectorDrawer-k8AZYC8I.mjs} +2 -2
  9. package/dist/{CategorySelectorDrawer-NJsFsKP1.mjs.map → CategorySelectorDrawer-k8AZYC8I.mjs.map} +1 -1
  10. package/dist/{Connect-BH0Pt6zc.mjs → Connect-tID_S_5e.mjs} +2 -2
  11. package/dist/{Connect-BH0Pt6zc.mjs.map → Connect-tID_S_5e.mjs.map} +1 -1
  12. package/dist/{ConnectCard-D7uxoH5Y.mjs → ConnectCard-DcM6tUOX.mjs} +2 -2
  13. package/dist/{ConnectCard-D7uxoH5Y.mjs.map → ConnectCard-DcM6tUOX.mjs.map} +1 -1
  14. package/dist/{ConnectDrawer-CW4LA3H3.mjs → ConnectDrawer-BQy4YYuc.mjs} +3 -3
  15. package/dist/{ConnectDrawer-CW4LA3H3.mjs.map → ConnectDrawer-BQy4YYuc.mjs.map} +1 -1
  16. package/dist/{ConnectionsDrawer-CZU9ku-k.mjs → ConnectionsDrawer-C73ASLMj.mjs} +3 -3
  17. package/dist/{ConnectionsDrawer-CZU9ku-k.mjs.map → ConnectionsDrawer-C73ASLMj.mjs.map} +1 -1
  18. package/dist/{CurrencyInput-DaGEQaLW.mjs → CurrencyInput-CABYmqBh.mjs} +2 -2
  19. package/dist/{CurrencyInput-DaGEQaLW.mjs.map → CurrencyInput-CABYmqBh.mjs.map} +1 -1
  20. package/dist/{EmbeddedCard-DCOQnTz-.mjs → EmbeddedCard-BwfkCsUN.mjs} +3 -3
  21. package/dist/{EmbeddedCard-DCOQnTz-.mjs.map → EmbeddedCard-BwfkCsUN.mjs.map} +1 -1
  22. package/dist/{Error-Dtw6yxkf.mjs → Error-BFJ3BnfS.mjs} +2 -2
  23. package/dist/{Error-Dtw6yxkf.mjs.map → Error-BFJ3BnfS.mjs.map} +1 -1
  24. package/dist/ErrorBoundary-C7BlHx04.mjs +27 -0
  25. package/dist/ErrorBoundary-C7BlHx04.mjs.map +1 -0
  26. package/dist/{ExportCsvAction-C-IisDcv.mjs → ExportCsvAction-B1257a3M.mjs} +3 -3
  27. package/dist/{ExportCsvAction-C-IisDcv.mjs.map → ExportCsvAction-B1257a3M.mjs.map} +1 -1
  28. package/dist/{GlobalAccountFilter-BhzR5Vb1.mjs → GlobalAccountFilter-DEEc3Bc5.mjs} +2 -2
  29. package/dist/{GlobalAccountFilter-BhzR5Vb1.mjs.map → GlobalAccountFilter-DEEc3Bc5.mjs.map} +1 -1
  30. package/dist/GlobalCopyApi-Tz10hezK.mjs +130 -0
  31. package/dist/GlobalCopyApi-Tz10hezK.mjs.map +1 -0
  32. package/dist/{Help-zVZdcmlk.mjs → Help-BAj_yo3q.mjs} +145 -145
  33. package/dist/Help-BAj_yo3q.mjs.map +1 -0
  34. package/dist/{LineChart-CUfiH86G.mjs → LineChart-BxEIZHht.mjs} +2 -2
  35. package/dist/{LineChart-CUfiH86G.mjs.map → LineChart-BxEIZHht.mjs.map} +1 -1
  36. package/dist/{ListItemAction-BqUCLj_w.mjs → ListItemAction-GDU5z4BN.mjs} +2 -2
  37. package/dist/{ListItemAction-BqUCLj_w.mjs.map → ListItemAction-GDU5z4BN.mjs.map} +1 -1
  38. package/dist/{ListItemWrapper-DRse79Iu.mjs → ListItemWrapper-D6b-6m4t.mjs} +2 -2
  39. package/dist/{ListItemWrapper-DRse79Iu.mjs.map → ListItemWrapper-D6b-6m4t.mjs.map} +1 -1
  40. package/dist/{ManageIncome-B_8i71mE.mjs → ManageIncome-BJWVPAly.mjs} +32 -32
  41. package/dist/{ManageIncome-B_8i71mE.mjs.map → ManageIncome-BJWVPAly.mjs.map} +1 -1
  42. package/dist/{MicroWidgetContainer-B2NnKBgW.mjs → MicroWidgetContainer-IUZQlml1.mjs} +2 -2
  43. package/dist/{MicroWidgetContainer-B2NnKBgW.mjs.map → MicroWidgetContainer-IUZQlml1.mjs.map} +1 -1
  44. package/dist/{MiniWidgetContainer-Bmv_WeUd.mjs → MiniWidgetContainer-CIswJui8.mjs} +2 -2
  45. package/dist/{MiniWidgetContainer-Bmv_WeUd.mjs.map → MiniWidgetContainer-CIswJui8.mjs.map} +1 -1
  46. package/dist/{NotificationSettings-CW7okUrk.mjs → NotificationSettings-DltXMrnb.mjs} +33 -33
  47. package/dist/{NotificationSettings-CW7okUrk.mjs.map → NotificationSettings-DltXMrnb.mjs.map} +1 -1
  48. package/dist/{OriginalBalanceAction-YrvxBYAl.mjs → OriginalBalanceAction-KuJSsZCA.mjs} +4 -4
  49. package/dist/{OriginalBalanceAction-YrvxBYAl.mjs.map → OriginalBalanceAction-KuJSsZCA.mjs.map} +1 -1
  50. package/dist/{RecurringSettings-hs0YUp83.mjs → RecurringSettings-D2Aaqz7d.mjs} +3 -3
  51. package/dist/{RecurringSettings-hs0YUp83.mjs.map → RecurringSettings-D2Aaqz7d.mjs.map} +1 -1
  52. package/dist/{SpendingLegend-CxvNOg3c.mjs → SpendingLegend-C_dMdqbe.mjs} +2 -2
  53. package/dist/{SpendingLegend-CxvNOg3c.mjs.map → SpendingLegend-C_dMdqbe.mjs.map} +1 -1
  54. package/dist/{TransactionDetails-DT-MQqOB.mjs → TransactionDetails-CDZNsKv7.mjs} +5 -5
  55. package/dist/{TransactionDetails-DT-MQqOB.mjs.map → TransactionDetails-CDZNsKv7.mjs.map} +1 -1
  56. package/dist/{UserStore-E5WvBXaY.mjs → UserStore-DzGgxsKk.mjs} +302 -317
  57. package/dist/UserStore-DzGgxsKk.mjs.map +1 -0
  58. package/dist/{ViewMoreMicroCard-fnwE0hqd.mjs → ViewMoreMicroCard-DXaJ-56q.mjs} +4 -4
  59. package/dist/{ViewMoreMicroCard-fnwE0hqd.mjs.map → ViewMoreMicroCard-DXaJ-56q.mjs.map} +1 -1
  60. package/dist/{WidgetContainer-CjdCY4sj.mjs → WidgetContainer-5O6N88mr.mjs} +3 -3
  61. package/dist/{WidgetContainer-CjdCY4sj.mjs.map → WidgetContainer-5O6N88mr.mjs.map} +1 -1
  62. package/dist/accounts/index.es.js +11 -11
  63. package/dist/analytics/index.es.js +2 -2
  64. package/dist/budgets/index.es.js +10 -10
  65. package/dist/cashflow/index.es.js +70 -70
  66. package/dist/categories/index.es.js +1 -1
  67. package/dist/common/components/ErrorBoundary.d.ts +2 -0
  68. package/dist/common/context/GlobalDataProvider.d.ts +2 -1
  69. package/dist/common/context/hooks.d.ts +3 -0
  70. package/dist/common/context/index.d.ts +1 -1
  71. package/dist/common/index.es.js +66 -65
  72. package/dist/core/api/AccountApi.d.ts +2 -2
  73. package/dist/core/api/AnalyticsApi.d.ts +2 -2
  74. package/dist/core/api/AppDataApi.d.ts +2 -2
  75. package/dist/core/api/BeatApi.d.ts +2 -2
  76. package/dist/core/api/BudgetsApi.d.ts +2 -2
  77. package/dist/core/api/CategoryApi.d.ts +2 -2
  78. package/dist/core/api/FinstrongApi.d.ts +2 -2
  79. package/dist/core/api/GlobalCopyApi.d.ts +2 -2
  80. package/dist/core/api/GoalApi.d.ts +2 -2
  81. package/dist/core/api/HelpApi.d.ts +2 -2
  82. package/dist/core/api/HoldingApi.d.ts +2 -2
  83. package/dist/core/api/MerchantApi.d.ts +2 -2
  84. package/dist/core/api/NotificationApi.d.ts +2 -2
  85. package/dist/core/api/RepeatingTransactionsApi.d.ts +2 -2
  86. package/dist/core/api/ScheduledPaymentsApi.d.ts +2 -2
  87. package/dist/core/api/SettingsApi.d.ts +2 -2
  88. package/dist/core/api/TransactionApi.d.ts +2 -2
  89. package/dist/core/api/UserApi.d.ts +2 -2
  90. package/dist/core/index.es.js +95 -95
  91. package/dist/core/index.es.js.map +1 -1
  92. package/dist/core/stores/GlobalStore.d.ts +4 -2
  93. package/dist/core/types/Handlers.d.ts +1 -0
  94. package/dist/core/types/index.d.ts +1 -1
  95. package/dist/core/utils/Fetch.d.ts +3 -2
  96. package/dist/dashboard/index.es.js +4 -4
  97. package/dist/debts/index.es.js +8 -8
  98. package/dist/finstrong/index.es.js +12 -12
  99. package/dist/goals/index.es.js +9 -9
  100. package/dist/help/index.es.js +4 -4
  101. package/dist/hooks-DWOrMnfZ.mjs +83 -0
  102. package/dist/hooks-DWOrMnfZ.mjs.map +1 -0
  103. package/dist/insights/index.es.js +4 -4
  104. package/dist/investments/index.es.js +4 -4
  105. package/dist/merchants/index.es.js +1 -1
  106. package/dist/microinsights/index.es.js +1 -1
  107. package/dist/networth/index.es.js +6 -6
  108. package/dist/notifications/index.es.js +8 -8
  109. package/dist/recurringtransactions/index.es.js +38 -38
  110. package/dist/settings/index.es.js +27 -27
  111. package/dist/spending/index.es.js +7 -7
  112. package/dist/transactions/index.es.js +11 -11
  113. package/dist/trends/index.es.js +12 -12
  114. package/dist/{useAccountDisplayName-BsiXA0qf.mjs → useAccountDisplayName-DHXXCFYZ.mjs} +2 -2
  115. package/dist/{useAccountDisplayName-BsiXA0qf.mjs.map → useAccountDisplayName-DHXXCFYZ.mjs.map} +1 -1
  116. package/dist/{useInsightsEnabled-D5Sdm0TJ.mjs → useInsightsEnabled-B_UpjpE6.mjs} +2 -2
  117. package/dist/{useInsightsEnabled-D5Sdm0TJ.mjs.map → useInsightsEnabled-B_UpjpE6.mjs.map} +1 -1
  118. package/dist/{useWidgetLoadTimer-B0tB-yzL.mjs → useWidgetLoadTimer-C0Mr0eRf.mjs} +2 -2
  119. package/dist/{useWidgetLoadTimer-B0tB-yzL.mjs.map → useWidgetLoadTimer-C0Mr0eRf.mjs.map} +1 -1
  120. package/package.json +1 -1
  121. package/dist/ErrorBoundary-CsdOcnJ9.mjs +0 -24
  122. package/dist/ErrorBoundary-CsdOcnJ9.mjs.map +0 -1
  123. package/dist/GlobalCopyApi-wcnDUzMV.mjs +0 -129
  124. package/dist/GlobalCopyApi-wcnDUzMV.mjs.map +0 -1
  125. package/dist/Help-zVZdcmlk.mjs.map +0 -1
  126. package/dist/UserStore-E5WvBXaY.mjs.map +0 -1
  127. package/dist/hooks-97sNJ_lf.mjs +0 -78
  128. package/dist/hooks-97sNJ_lf.mjs.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index.es.js","sources":["../../src/core/api/ScheduledPaymentsApi.ts","../../src/core/types/Beat.ts","../../src/core/types/Expense.ts","../../src/core/types/ScreenSize.tsx"],"sourcesContent":["import { Fetch } from '../utils'\nimport { ApiEndpoints } from '../constants'\nimport { TransactionType } from '..'\nimport type { ScheduledPayment, GlobalErrorHandler } from '..'\n\nexport class ScheduledPaymentsApi {\n fetchInstance: Fetch\n\n constructor(endpoint: string, token: string, onError?: GlobalErrorHandler) {\n this.fetchInstance = new Fetch(endpoint, token, undefined, onError)\n }\n\n addScheduledPayment = async (scheduledPayment: ScheduledPayment) => {\n return this.fetchInstance\n .post(ApiEndpoints.SCHEDULED_PAYMENTS, {\n ...scheduledPayment,\n is_recurring: 'true',\n transaction_type: TransactionType.DEBIT,\n })\n .then((data) => data.scheduled_payment)\n }\n\n getScheduledPayments = async () => {\n return this.fetchInstance\n .get(ApiEndpoints.SCHEDULED_PAYMENTS)\n .then((data) => data.scheduled_payments)\n }\n\n updateScheduledPayment = async (scheduledPayment: ScheduledPayment) => {\n return this.fetchInstance\n .put(`${ApiEndpoints.SCHEDULED_PAYMENTS}/${scheduledPayment.guid}`, scheduledPayment)\n .then((data) => data.scheduled_payment)\n }\n\n deleteScheduledPayment = async (guid: string) => {\n return this.fetchInstance\n .delete(`${ApiEndpoints.SCHEDULED_PAYMENTS}/${guid}`)\n .then((data) => data)\n }\n}\n","import { Account } from './Account'\nimport { Transaction } from './Transaction'\n\nexport interface Beat {\n account_guids: string[] | []\n active_at?: string | number\n associated_transaction_guid?: string | null\n call_to_action?: string | null\n category_guids?: string[] | []\n created_at?: string | number\n cta_clicked_at?: number | null\n data_series: DataSeries\n description?: string\n digest?: string\n dismissed_at?: number | null\n displayed_at?: string | null\n errors?: any\n guid: string\n has_been_displayed: boolean\n html_description?: string\n html_in_description_cta?: string\n html_micro_call_to_action?: string\n html_micro_description?: string\n html_micro_title?: string\n html_short_title?: string\n html_title: string\n icon_color?: string | null\n icon_type?: number | null\n in_description_cta?: string | null\n is_dismissed: boolean\n is_obsolete: boolean\n is_refreshable: boolean\n is_sampled: boolean\n merchant_guids: string[] | []\n metadata?: string | null\n micro_call_to_action?: string | null\n micro_description?: string | null\n micro_title?: string | null\n payload: any\n primary_account?: Account\n primary_account_guid?: string | null\n primary_category_guid?: string | null\n primary_goal_guid?: string | null\n primary_merchant_guid?: string | null\n primary_scheduled_payment_guid?: string | null\n primary_transaction?: Transaction\n primary_transaction_guid?: string | null\n power_action_completed_at?: string | null\n power_action_has_been_completed?: boolean\n scheduled_payment_guids: string[] | []\n short_title?: string | null\n supporting_action?: string | null\n template: string\n title: string\n transaction_guids: string[] | []\n transactions?: Transaction[]\n user_guid: string\n user_verification: UserVerification\n\n // Added for UI: optional institution info for displaying logos\n institutionGuid?: string | null\n institutionName?: string | null\n}\n\nexport interface DataSeries {\n names?: string[]\n types?: string[]\n data?: any[]\n}\n\nexport enum UserVerification {\n UNKNOWN = 0,\n CORRECT = 1,\n INCORRECT = 2,\n}\n","import type { ScheduledPayment } from './ScheduledPayment'\nimport type { Transaction } from './Transaction'\n\nexport enum ExpenseStatus {\n Missed = 'Missed',\n Paid = 'Paid',\n Upcoming = 'Upcoming expense',\n Income = 'Income',\n}\n\nexport interface Expense extends ScheduledPayment {\n status: ExpenseStatus\n payments: Transaction[]\n transactions: Transaction[]\n}\n\nexport enum ScheduledPaymentTypes {\n Unknown = 0,\n Subscription = 1,\n Bill = 2,\n}\n","export enum ScreenSize {\n Desktop = 'Desktop',\n Mobile = 'Mobile',\n}\n"],"names":["ScheduledPaymentsApi","endpoint","token","onError","Fetch","scheduledPayment","ApiEndpoints","TransactionType","data","guid","UserVerification","ExpenseStatus","ScheduledPaymentTypes","ScreenSize"],"mappings":";;;;;;;;;;;AAKO,MAAMA,EAAqB;AAAA,EAChC;AAAA,EAEA,YAAYC,GAAkBC,GAAeC,GAA8B;AACzE,SAAK,gBAAgB,IAAIC,EAAMH,GAAUC,GAAO,QAAWC,CAAO;AAAA,EACpE;AAAA,EAEA,sBAAsB,OAAOE,MACpB,KAAK,cACT,KAAKC,EAAa,oBAAoB;AAAA,IACrC,GAAGD;AAAA,IACH,cAAc;AAAA,IACd,kBAAkBE,EAAgB;AAAA,EAAA,CACnC,EACA,KAAK,CAACC,MAASA,EAAK,iBAAiB;AAAA,EAG1C,uBAAuB,YACd,KAAK,cACT,IAAIF,EAAa,kBAAkB,EACnC,KAAK,CAACE,MAASA,EAAK,kBAAkB;AAAA,EAG3C,yBAAyB,OAAOH,MACvB,KAAK,cACT,IAAI,GAAGC,EAAa,kBAAkB,IAAID,EAAiB,IAAI,IAAIA,CAAgB,EACnF,KAAK,CAACG,MAASA,EAAK,iBAAiB;AAAA,EAG1C,yBAAyB,OAAOC,MACvB,KAAK,cACT,OAAO,GAAGH,EAAa,kBAAkB,IAAIG,CAAI,EAAE,EACnD,KAAK,CAACD,MAASA,CAAI;AAE1B;AC+BO,IAAKE,sBAAAA,OACVA,EAAAA,EAAA,UAAU,CAAA,IAAV,WACAA,EAAAA,EAAA,UAAU,CAAA,IAAV,WACAA,EAAAA,EAAA,YAAY,CAAA,IAAZ,aAHUA,IAAAA,KAAA,CAAA,CAAA,GCnEAC,sBAAAA,OACVA,EAAA,SAAS,UACTA,EAAA,OAAO,QACPA,EAAA,WAAW,oBACXA,EAAA,SAAS,UAJCA,IAAAA,KAAA,CAAA,CAAA,GAaAC,sBAAAA,OACVA,EAAAA,EAAA,UAAU,CAAA,IAAV,WACAA,EAAAA,EAAA,eAAe,CAAA,IAAf,gBACAA,EAAAA,EAAA,OAAO,CAAA,IAAP,QAHUA,IAAAA,KAAA,CAAA,CAAA,GChBAC,sBAAAA,OACVA,EAAA,UAAU,WACVA,EAAA,SAAS,UAFCA,IAAAA,KAAA,CAAA,CAAA;"}
1
+ {"version":3,"file":"index.es.js","sources":["../../src/core/api/ScheduledPaymentsApi.ts","../../src/core/types/Beat.ts","../../src/core/types/Expense.ts","../../src/core/types/ScreenSize.tsx"],"sourcesContent":["import { Fetch } from '../utils'\nimport { ApiEndpoints } from '../constants'\nimport { TransactionType } from '..'\nimport type { ScheduledPayment, GlobalCaptureException, GlobalErrorHandler } from '..'\n\nexport class ScheduledPaymentsApi {\n fetchInstance: Fetch\n\n constructor(endpoint: string, token: string, onError?: GlobalErrorHandler, onCaptureException?: GlobalCaptureException) {\n this.fetchInstance = new Fetch(endpoint, token, undefined, onError, onCaptureException)\n }\n\n addScheduledPayment = async (scheduledPayment: ScheduledPayment) => {\n return this.fetchInstance\n .post(ApiEndpoints.SCHEDULED_PAYMENTS, {\n ...scheduledPayment,\n is_recurring: 'true',\n transaction_type: TransactionType.DEBIT,\n })\n .then((data) => data.scheduled_payment)\n }\n\n getScheduledPayments = async () => {\n return this.fetchInstance\n .get(ApiEndpoints.SCHEDULED_PAYMENTS)\n .then((data) => data.scheduled_payments)\n }\n\n updateScheduledPayment = async (scheduledPayment: ScheduledPayment) => {\n return this.fetchInstance\n .put(`${ApiEndpoints.SCHEDULED_PAYMENTS}/${scheduledPayment.guid}`, scheduledPayment)\n .then((data) => data.scheduled_payment)\n }\n\n deleteScheduledPayment = async (guid: string) => {\n return this.fetchInstance\n .delete(`${ApiEndpoints.SCHEDULED_PAYMENTS}/${guid}`)\n .then((data) => data)\n }\n}\n","import { Account } from './Account'\nimport { Transaction } from './Transaction'\n\nexport interface Beat {\n account_guids: string[] | []\n active_at?: string | number\n associated_transaction_guid?: string | null\n call_to_action?: string | null\n category_guids?: string[] | []\n created_at?: string | number\n cta_clicked_at?: number | null\n data_series: DataSeries\n description?: string\n digest?: string\n dismissed_at?: number | null\n displayed_at?: string | null\n errors?: any\n guid: string\n has_been_displayed: boolean\n html_description?: string\n html_in_description_cta?: string\n html_micro_call_to_action?: string\n html_micro_description?: string\n html_micro_title?: string\n html_short_title?: string\n html_title: string\n icon_color?: string | null\n icon_type?: number | null\n in_description_cta?: string | null\n is_dismissed: boolean\n is_obsolete: boolean\n is_refreshable: boolean\n is_sampled: boolean\n merchant_guids: string[] | []\n metadata?: string | null\n micro_call_to_action?: string | null\n micro_description?: string | null\n micro_title?: string | null\n payload: any\n primary_account?: Account\n primary_account_guid?: string | null\n primary_category_guid?: string | null\n primary_goal_guid?: string | null\n primary_merchant_guid?: string | null\n primary_scheduled_payment_guid?: string | null\n primary_transaction?: Transaction\n primary_transaction_guid?: string | null\n power_action_completed_at?: string | null\n power_action_has_been_completed?: boolean\n scheduled_payment_guids: string[] | []\n short_title?: string | null\n supporting_action?: string | null\n template: string\n title: string\n transaction_guids: string[] | []\n transactions?: Transaction[]\n user_guid: string\n user_verification: UserVerification\n\n // Added for UI: optional institution info for displaying logos\n institutionGuid?: string | null\n institutionName?: string | null\n}\n\nexport interface DataSeries {\n names?: string[]\n types?: string[]\n data?: any[]\n}\n\nexport enum UserVerification {\n UNKNOWN = 0,\n CORRECT = 1,\n INCORRECT = 2,\n}\n","import type { ScheduledPayment } from './ScheduledPayment'\nimport type { Transaction } from './Transaction'\n\nexport enum ExpenseStatus {\n Missed = 'Missed',\n Paid = 'Paid',\n Upcoming = 'Upcoming expense',\n Income = 'Income',\n}\n\nexport interface Expense extends ScheduledPayment {\n status: ExpenseStatus\n payments: Transaction[]\n transactions: Transaction[]\n}\n\nexport enum ScheduledPaymentTypes {\n Unknown = 0,\n Subscription = 1,\n Bill = 2,\n}\n","export enum ScreenSize {\n Desktop = 'Desktop',\n Mobile = 'Mobile',\n}\n"],"names":["ScheduledPaymentsApi","endpoint","token","onError","onCaptureException","Fetch","scheduledPayment","ApiEndpoints","TransactionType","data","guid","UserVerification","ExpenseStatus","ScheduledPaymentTypes","ScreenSize"],"mappings":";;;;;;;;;;;AAKO,MAAMA,EAAqB;AAAA,EAChC;AAAA,EAEA,YAAYC,GAAkBC,GAAeC,GAA8BC,GAA6C;AACtH,SAAK,gBAAgB,IAAIC,EAAMJ,GAAUC,GAAO,QAAWC,GAASC,CAAkB;AAAA,EACxF;AAAA,EAEA,sBAAsB,OAAOE,MACpB,KAAK,cACT,KAAKC,EAAa,oBAAoB;AAAA,IACrC,GAAGD;AAAA,IACH,cAAc;AAAA,IACd,kBAAkBE,EAAgB;AAAA,EAAA,CACnC,EACA,KAAK,CAACC,MAASA,EAAK,iBAAiB;AAAA,EAG1C,uBAAuB,YACd,KAAK,cACT,IAAIF,EAAa,kBAAkB,EACnC,KAAK,CAACE,MAASA,EAAK,kBAAkB;AAAA,EAG3C,yBAAyB,OAAOH,MACvB,KAAK,cACT,IAAI,GAAGC,EAAa,kBAAkB,IAAID,EAAiB,IAAI,IAAIA,CAAgB,EACnF,KAAK,CAACG,MAASA,EAAK,iBAAiB;AAAA,EAG1C,yBAAyB,OAAOC,MACvB,KAAK,cACT,OAAO,GAAGH,EAAa,kBAAkB,IAAIG,CAAI,EAAE,EACnD,KAAK,CAACD,MAASA,CAAI;AAE1B;AC+BO,IAAKE,sBAAAA,OACVA,EAAAA,EAAA,UAAU,CAAA,IAAV,WACAA,EAAAA,EAAA,UAAU,CAAA,IAAV,WACAA,EAAAA,EAAA,YAAY,CAAA,IAAZ,aAHUA,IAAAA,KAAA,CAAA,CAAA,GCnEAC,sBAAAA,OACVA,EAAA,SAAS,UACTA,EAAA,OAAO,QACPA,EAAA,WAAW,oBACXA,EAAA,SAAS,UAJCA,IAAAA,KAAA,CAAA,CAAA,GAaAC,sBAAAA,OACVA,EAAAA,EAAA,UAAU,CAAA,IAAV,WACAA,EAAAA,EAAA,eAAe,CAAA,IAAf,gBACAA,EAAAA,EAAA,OAAO,CAAA,IAAP,QAHUA,IAAAA,KAAA,CAAA,CAAA,GChBAC,sBAAAA,OACVA,EAAA,UAAU,WACVA,EAAA,SAAS,UAFCA,IAAAA,KAAA,CAAA,CAAA;"}
@@ -1,5 +1,5 @@
1
1
  import { AccountStore, AnalyticsStore, AppDataStore, BeatStore, BudgetsStore, CashflowStore, CategoryStore, ConnectStore, DebtsStore, FinstrongStore, GlobalCopyStore, GlobalUiStore, GoalStore, HelpStore, HoldingStore, MerchantStore, NetWorthStore, NotificationStore, RecurringTransactionsStore, SettingsStore, TransactionStore, TrendsStore, UserStore } from '../stores';
2
- import { Account, Category, Institution, Member, AppConfig, AppData, Beat, GlobalErrorHandler, MerchantBudget, Tag, Tagging, Transaction, TransactionRule, UserFeature } from '../types';
2
+ import { Account, Category, Institution, Member, AppConfig, AppData, Beat, GlobalCaptureException, GlobalErrorHandler, MerchantBudget, Tag, Tagging, Transaction, TransactionRule, UserFeature } from '../types';
3
3
  interface LoadDataProps {
4
4
  accounts?: Account[];
5
5
  appData?: AppData;
@@ -22,6 +22,7 @@ export declare class GlobalStore {
22
22
  appConfig: AppConfig;
23
23
  endpoint: string;
24
24
  sessionToken: string;
25
+ onCaptureException?: GlobalCaptureException;
25
26
  onError?: GlobalErrorHandler;
26
27
  onStoreUpdate?: OnStoreUpdate;
27
28
  accountStore: AccountStore;
@@ -47,8 +48,9 @@ export declare class GlobalStore {
47
48
  trendsStore: TrendsStore;
48
49
  userStore: UserStore;
49
50
  globalUiStore: GlobalUiStore;
50
- constructor(appConfig?: AppConfig, endpoint?: string, onError?: GlobalErrorHandler, onStoreUpdate?: OnStoreUpdate);
51
+ constructor(appConfig?: AppConfig, endpoint?: string, onError?: GlobalErrorHandler, onStoreUpdate?: OnStoreUpdate, onCaptureException?: GlobalCaptureException);
51
52
  get isInitialized(): boolean;
53
+ captureException: (error: unknown, context?: Record<string, string>) => void;
52
54
  emitUpdate: (change: ObservedUpdate) => void;
53
55
  loadConfigData: () => Promise<void>;
54
56
  loadData: ({ accounts, appData, associatedBeats, categories, institutions, transactionRules, transactions, userFeatures, merchantBudgets, }?: LoadDataProps) => Promise<void>;
@@ -1,2 +1,3 @@
1
+ export type GlobalCaptureException = (error: unknown, context?: Record<string, string>) => void;
1
2
  export type GlobalErrorHandler = (error: Error, props?: object, errorActionType?: string) => void;
2
3
  export type GlobalEventHandler = (event: string, props?: object) => void;
@@ -15,7 +15,7 @@ export type { DynamicCopyElement, GlobalCopy } from './GlobalCopy';
15
15
  export { GoalType, MetaType, TrackType } from './Goal';
16
16
  export type { Goal, MonthlyCashFlowProfile, RetirementGoalAccount } from './Goal';
17
17
  export type { Debt } from './Debt';
18
- export type { GlobalErrorHandler, GlobalEventHandler } from './Handlers';
18
+ export type { GlobalCaptureException, GlobalErrorHandler, GlobalEventHandler } from './Handlers';
19
19
  export type { HealthScore, HealthScoreReport, MonthlyHealthScore, MonthlySummaries, SpendingFeeTransaction, AllTransactions, } from './Finstrong';
20
20
  export type { HelpAlertProps, HelpCategory, HelpContentProps, HelpTopic, HelpType, ImageContentProps, InstitutionData, NoImageContentProps, SectionProps, SelectedTopic, Ticket, } from './Help';
21
21
  export type { Institution } from './Institution';
@@ -1,9 +1,10 @@
1
- import { GlobalErrorHandler } from '../types';
1
+ import { GlobalCaptureException, GlobalErrorHandler } from '../types';
2
2
  export declare class Fetch {
3
3
  endpoint: string;
4
4
  headers: Record<string, string>;
5
+ onCaptureException?: GlobalCaptureException;
5
6
  onError?: GlobalErrorHandler;
6
- constructor(endpoint: string, token: string, headers?: Record<string, string>, onError?: GlobalErrorHandler);
7
+ constructor(endpoint: string, token: string, headers?: Record<string, string>, onError?: GlobalErrorHandler, onCaptureException?: GlobalCaptureException);
7
8
  get: (url: string) => Promise<any>;
8
9
  post: (url: string, data?: any) => Promise<any>;
9
10
  put: (url: string, data: any) => Promise<any>;
@@ -5,7 +5,7 @@ import u from "@mui/material/Grid";
5
5
  import m from "@mui/material/Skeleton";
6
6
  import s from "@mui/material/Stack";
7
7
  import { useTheme as S } from "@mui/material/styles";
8
- import { e as w, u as b, i as v } from "../hooks-97sNJ_lf.mjs";
8
+ import { e as w, u as b, i as v } from "../hooks-DWOrMnfZ.mjs";
9
9
  import C from "@mui/material/Paper";
10
10
  import { Icon as _, H2 as M, P as D } from "@mxenabled/mxui";
11
11
  import { useMediaQuery as G } from "@mui/system";
@@ -14,10 +14,10 @@ import W from "@mui/material/Button";
14
14
  import k from "@mui/material/IconButton";
15
15
  import A from "@mui/material/Tooltip";
16
16
  import I from "@mui/material/useMediaQuery";
17
- import { G as B } from "../GlobalAccountFilter-BhzR5Vb1.mjs";
17
+ import { G as B } from "../GlobalAccountFilter-DEEc3Bc5.mjs";
18
18
  import { u as y } from "../useScreenSize-mWpmnh5w.mjs";
19
- import { C as F } from "../ConnectDrawer-CW4LA3H3.mjs";
20
- import { u as R } from "../useWidgetLoadTimer-B0tB-yzL.mjs";
19
+ import { C as F } from "../ConnectDrawer-BQy4YYuc.mjs";
20
+ import { u as R } from "../useWidgetLoadTimer-C0Mr0eRf.mjs";
21
21
  const T = p(() => {
22
22
  const t = S(), {
23
23
  appDataStore: { banner: r, loadBanner: i, user: a }
@@ -8,11 +8,11 @@ import { intervalToDuration as Re, formatDuration as Le } from "date-fns";
8
8
  import { s as Fe, D as $, t as $e, b as Oe } from "../DebtUtils-i4pI2Uoe.mjs";
9
9
  import { f as I, a as We } from "../NumberFormatting--XMeeBfr.mjs";
10
10
  import { f as J, D as Q } from "../DateFormats-HudZ3Bjs.mjs";
11
- import { G as Ge, q as ee, u as w, k as V, f as k, c as te, i as He, a as ze } from "../hooks-97sNJ_lf.mjs";
11
+ import { G as Ge, r as ee, u as w, k as V, f as k, c as te, i as He, a as ze } from "../hooks-DWOrMnfZ.mjs";
12
12
  import { u as ae } from "../useScreenSize-mWpmnh5w.mjs";
13
13
  import { b as T } from "../Localization-DnoVyBNK.mjs";
14
14
  import { D as ie } from "../Drawer-DsnW2o0v.mjs";
15
- import { A as je, u as Ve } from "../AccountDetailsHeader-BliEZhz7.mjs";
15
+ import { A as je, u as Ve } from "../AccountDetailsHeader-D_UjMD99.mjs";
16
16
  import Ye from "@mui/material/Card";
17
17
  import Ke from "@mui/material/CardContent";
18
18
  import Ue from "@mui/material/CardHeader";
@@ -24,10 +24,10 @@ import be from "@mui/material/Tab";
24
24
  import Ze from "@mui/material/Tabs";
25
25
  import we from "@mui/material/List";
26
26
  import G from "@mui/material/Divider";
27
- import { M as Je, I as Qe, O as et } from "../OriginalBalanceAction-YrvxBYAl.mjs";
27
+ import { M as Je, I as Qe, O as et } from "../OriginalBalanceAction-KuJSsZCA.mjs";
28
28
  import tt from "@mui/material/TextField";
29
- import { L as re } from "../ListItemAction-BqUCLj_w.mjs";
30
- import { C as se } from "../CurrencyInput-DaGEQaLW.mjs";
29
+ import { L as re } from "../ListItemAction-GDU5z4BN.mjs";
30
+ import { C as se } from "../CurrencyInput-CABYmqBh.mjs";
31
31
  import me from "@mui/material/Alert";
32
32
  import _e from "@mui/material/AlertTitle";
33
33
  import ye from "@mui/material/Paper";
@@ -40,11 +40,11 @@ import ve from "@mui/material/Button";
40
40
  import at from "@mui/material/IconButton";
41
41
  import it from "@mui/material/ListItem";
42
42
  import lt from "@mui/material/Popover";
43
- import { u as st } from "../useWidgetLoadTimer-B0tB-yzL.mjs";
43
+ import { u as st } from "../useWidgetLoadTimer-C0Mr0eRf.mjs";
44
44
  import { L as ct } from "../Loader-CxeBwuPG.mjs";
45
- import { W as dt } from "../WidgetContainer-CjdCY4sj.mjs";
45
+ import { W as dt } from "../WidgetContainer-5O6N88mr.mjs";
46
46
  import { E as pt } from "../EmptyState-CJUDc3kD.mjs";
47
- import { C as ut } from "../ConnectDrawer-CW4LA3H3.mjs";
47
+ import { C as ut } from "../ConnectDrawer-BQy4YYuc.mjs";
48
48
  function ht(r, n, o = 0) {
49
49
  const t = r.map((b) => ({ ...b })).filter(
50
50
  (b) => b.interest_rate !== void 0 && b.monthly_payment !== void 0 && !b.is_paid_off
@@ -26,13 +26,13 @@ import { b as z } from "../Localization-DnoVyBNK.mjs";
26
26
  import { f as Xe, D as Ue } from "../DateFormats-HudZ3Bjs.mjs";
27
27
  import * as lt from "d3";
28
28
  import { observer as w } from "mobx-react-lite";
29
- import { u as S, a as ne, i as qe, C as oe, s as L, D as Pn, c as ke, l as Qe, e as Bn, h as Ze, g as En, o as Gn } from "../hooks-97sNJ_lf.mjs";
29
+ import { u as S, a as ne, i as qe, D as oe, t as L, E as Pn, c as ke, l as Qe, e as Bn, h as Ze, g as En, o as Gn } from "../hooks-DWOrMnfZ.mjs";
30
30
  import { L as ee } from "../Loader-CxeBwuPG.mjs";
31
31
  import E from "@mui/material/Button";
32
32
  import Y from "@mui/material/Card";
33
- import { L as Je } from "../LineChart-CUfiH86G.mjs";
34
- import { C as vt } from "../ConnectionsDrawer-CZU9ku-k.mjs";
35
- import { C as se } from "../ConnectDrawer-CW4LA3H3.mjs";
33
+ import { L as Je } from "../LineChart-BxEIZHht.mjs";
34
+ import { C as vt } from "../ConnectionsDrawer-C73ASLMj.mjs";
35
+ import { C as se } from "../ConnectDrawer-BQy4YYuc.mjs";
36
36
  import he from "@mui/material/Tab";
37
37
  import et from "@mui/material/Tabs";
38
38
  import Pe from "@mui/material/TextField";
@@ -42,14 +42,14 @@ import { u as wt } from "../useDimensions-CeDR9V8N.mjs";
42
42
  import { E as Be } from "../EmptyState-CJUDc3kD.mjs";
43
43
  import $n from "@mui/material/Chip";
44
44
  import { D as ie } from "../Drawer-DsnW2o0v.mjs";
45
- import { g as kt } from "../useAccountDisplayName-BsiXA0qf.mjs";
46
- import { a as Mt } from "../AccountDetailsHeader-BliEZhz7.mjs";
45
+ import { g as kt } from "../useAccountDisplayName-DHXXCFYZ.mjs";
46
+ import { a as Mt } from "../AccountDetailsHeader-D_UjMD99.mjs";
47
47
  import Nn from "@mui/material/ListSubheader";
48
48
  import { S as dt } from "../Select-CSpkK5cR.mjs";
49
49
  import { c as je } from "../Account-DR7Plrqy.mjs";
50
50
  import { S as zn } from "../StatusBar-CPfSXe80.mjs";
51
51
  import { k as Dt } from "../DateUtil-CzBmbjmA.mjs";
52
- import { T as Hn, s as Kn, h as Vn, S as jn, a as Yn } from "../EmbeddedCard-DCOQnTz-.mjs";
52
+ import { T as Hn, s as Kn, h as Vn, S as jn, a as Yn } from "../EmbeddedCard-BwfkCsUN.mjs";
53
53
  import { T as ge } from "../TabContentContainer-B0eYJP5p.mjs";
54
54
  import Xn from "@mui/material/useMediaQuery";
55
55
  import { BarPlot as Un } from "@mui/x-charts/BarChart";
@@ -58,15 +58,15 @@ import { ChartsXAxis as Qn } from "@mui/x-charts/ChartsXAxis";
58
58
  import { ChartsYAxis as Zn } from "@mui/x-charts/ChartsYAxis";
59
59
  import { startOfMonth as It } from "date-fns/startOfMonth";
60
60
  import { endOfMonth as At } from "date-fns/endOfMonth";
61
- import { g as Jn, S as eo, b as to } from "../SpendingLegend-CxvNOg3c.mjs";
61
+ import { g as Jn, S as eo, b as to } from "../SpendingLegend-C_dMdqbe.mjs";
62
62
  import { formatISO as no } from "date-fns/formatISO";
63
63
  import { fromUnixTime as oo } from "date-fns/fromUnixTime";
64
64
  import { subDays as ro } from "date-fns/subDays";
65
- import { c as ao, b as pt, S as io, i as so } from "../ManageIncome-B_8i71mE.mjs";
65
+ import { c as ao, b as pt, S as io, i as so } from "../ManageIncome-BJWVPAly.mjs";
66
66
  import { F as Tt, d as co, R as Ot } from "../RecurringTransactionsUtil-CHWmqvW5.mjs";
67
67
  import { LocalizationProvider as lo, DatePicker as po, StaticDatePicker as uo } from "@mui/x-date-pickers";
68
68
  import { AdapterDateFns as Rt } from "@mui/x-date-pickers/AdapterDateFnsV3";
69
- import { R as _o } from "../RecurringSettings-hs0YUp83.mjs";
69
+ import { R as _o } from "../RecurringSettings-D2Aaqz7d.mjs";
70
70
  import { LocalizationProvider as mo } from "@mui/x-date-pickers/LocalizationProvider";
71
71
  import ho from "@mui/lab/Timeline";
72
72
  import go, { timelineItemClasses as yo } from "@mui/lab/TimelineItem";
@@ -77,8 +77,8 @@ import Co from "@mui/lab/TimelineSeparator";
77
77
  import So from "@mui/material/Accordion";
78
78
  import vo from "@mui/material/AccordionDetails";
79
79
  import wo from "@mui/material/AccordionSummary";
80
- import { u as ko } from "../useWidgetLoadTimer-B0tB-yzL.mjs";
81
- import { W as Mo } from "../WidgetContainer-CjdCY4sj.mjs";
80
+ import { u as ko } from "../useWidgetLoadTimer-C0Mr0eRf.mjs";
81
+ import { W as Mo } from "../WidgetContainer-5O6N88mr.mjs";
82
82
  const Ae = {
83
83
  creditScore: {
84
84
  poor: 600,
@@ -18,13 +18,13 @@ import te from "@mui/material/Avatar";
18
18
  import He from "@mui/material/CardHeader";
19
19
  import { Payments as Ee, NoteStack as Se, Person as ve, ArrowUpwardAlt as Ue, CheckCircle as Ye, ChevronRight as z, Icon as ye, ExpandLess as Ze, ExpandMore as qe, AddBox as Ie, Trophy as Je } from "@mxenabled/mx-icons";
20
20
  import { g as ue, T as r, G as de, a as Qe, M as U, b as Xe } from "../GoalsUtil-C9EnLWvC.mjs";
21
- import { u as x, k as N, a as _e, i as pe, c as j, C as Ge, f as Ne } from "../hooks-97sNJ_lf.mjs";
21
+ import { u as x, k as N, a as _e, i as pe, c as j, D as Ge, f as Ne } from "../hooks-DWOrMnfZ.mjs";
22
22
  import { u as he } from "../useScreenSize-mWpmnh5w.mjs";
23
23
  import { S as et } from "../StatusBar-CPfSXe80.mjs";
24
24
  import v from "@mui/material/Divider";
25
25
  import O from "@mui/material/List";
26
- import { L as Z } from "../ListItemAction-BqUCLj_w.mjs";
27
- import { C as ke } from "../CurrencyInput-DaGEQaLW.mjs";
26
+ import { L as Z } from "../ListItemAction-GDU5z4BN.mjs";
27
+ import { C as ke } from "../CurrencyInput-CABYmqBh.mjs";
28
28
  import { fromUnixTime as ee } from "date-fns/fromUnixTime";
29
29
  import tt from "@mui/material/IconButton";
30
30
  import k from "@mui/material/ListItem";
@@ -33,29 +33,29 @@ import L from "@mui/material/ListItemButton";
33
33
  import w from "@mui/material/ListItemText";
34
34
  import { f as be, D as fe } from "../DateFormats-HudZ3Bjs.mjs";
35
35
  import { D as q } from "../Drawer-DsnW2o0v.mjs";
36
- import { g as we, u as nt } from "../useAccountDisplayName-BsiXA0qf.mjs";
36
+ import { g as we, u as nt } from "../useAccountDisplayName-DHXXCFYZ.mjs";
37
37
  import ot from "@mui/material/Collapse";
38
38
  import at from "@mui/material/ListItemIcon";
39
39
  import it from "@mui/material/Checkbox";
40
- import { C as De } from "../ConnectCard-D7uxoH5Y.mjs";
40
+ import { C as De } from "../ConnectCard-DcM6tUOX.mjs";
41
41
  import { c as Ae } from "../Account-DR7Plrqy.mjs";
42
42
  import Ke from "@mui/material/TextField";
43
- import { M as rt, I as st, O as ct } from "../OriginalBalanceAction-YrvxBYAl.mjs";
43
+ import { M as rt, I as st, O as ct } from "../OriginalBalanceAction-KuJSsZCA.mjs";
44
44
  import { getUnixTime as lt } from "date-fns/getUnixTime";
45
45
  import { isValid as dt } from "date-fns/isValid";
46
46
  import { AdapterDateFns as mt } from "@mui/x-date-pickers/AdapterDateFnsV3";
47
47
  import { DatePicker as ut } from "@mui/x-date-pickers";
48
48
  import { LocalizationProvider as _t } from "@mui/x-date-pickers/LocalizationProvider";
49
49
  import { D as pt } from "../Dialog-Bvd2n8hz.mjs";
50
- import { u as Me } from "../useWidgetLoadTimer-B0tB-yzL.mjs";
50
+ import { u as Me } from "../useWidgetLoadTimer-C0Mr0eRf.mjs";
51
51
  import { A as $ } from "../Analytics-D-jdcL72.mjs";
52
52
  import { L as Le } from "../Loader-CxeBwuPG.mjs";
53
- import { W as ht } from "../WidgetContainer-CjdCY4sj.mjs";
53
+ import { W as ht } from "../WidgetContainer-5O6N88mr.mjs";
54
54
  import { E as bt } from "../EmptyState-CJUDc3kD.mjs";
55
55
  import ft from "@mui/material/Box";
56
56
  import { useTheme as gt } from "@mui/material/styles";
57
57
  import { S as yt } from "../SingleSegmentDonut-7Uy6VEld.mjs";
58
- import { M as At } from "../MicroWidgetContainer-B2NnKBgW.mjs";
58
+ import { M as At } from "../MicroWidgetContainer-IUZQlml1.mjs";
59
59
  function se({ title: t, subtitle: n }) {
60
60
  return /* @__PURE__ */ c(f, { children: [
61
61
  /* @__PURE__ */ e(C, { bold: !0, variant: "body1", children: t }),
@@ -1,10 +1,10 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
2
  import { observer as m } from "mobx-react-lite";
3
- import { H as s } from "../Help-zVZdcmlk.mjs";
4
- import { a } from "../hooks-97sNJ_lf.mjs";
5
- import { u as p } from "../useWidgetLoadTimer-B0tB-yzL.mjs";
3
+ import { H as s } from "../Help-BAj_yo3q.mjs";
4
+ import { a } from "../hooks-DWOrMnfZ.mjs";
5
+ import { u as p } from "../useWidgetLoadTimer-C0Mr0eRf.mjs";
6
6
  import { L as d } from "../Loader-CxeBwuPG.mjs";
7
- import { W as f } from "../WidgetContainer-CjdCY4sj.mjs";
7
+ import { W as f } from "../WidgetContainer-5O6N88mr.mjs";
8
8
  const L = m(({ onBackClick: e, onMenuClick: i, sx: t }) => {
9
9
  const { isInitialized: o } = a();
10
10
  return p({
@@ -0,0 +1,83 @@
1
+ import r from "react";
2
+ import { jsx as n } from "react/jsx-runtime";
3
+ const a = r.createContext(null), d = ({
4
+ children: t,
5
+ globalStore: e,
6
+ onCaptureException: s,
7
+ onError: l,
8
+ onEvent: u,
9
+ onLoad: c,
10
+ onPageView: i
11
+ }) => /* @__PURE__ */ n(
12
+ a.Provider,
13
+ {
14
+ value: {
15
+ globalStore: e,
16
+ onCaptureException: s,
17
+ onError: l,
18
+ onEvent: u,
19
+ onLoad: c,
20
+ onPageView: i,
21
+ children: t
22
+ },
23
+ children: t
24
+ }
25
+ ), S = r.createContext(null), p = ({ children: t, availableHeight: e, availableWidth: s }) => /* @__PURE__ */ n(
26
+ S.Provider,
27
+ {
28
+ value: {
29
+ availableHeight: e,
30
+ availableWidth: s,
31
+ children: t
32
+ },
33
+ children: t
34
+ }
35
+ ), o = (t = "useGlobalStore") => {
36
+ const e = r.useContext(a);
37
+ if (!e)
38
+ throw new Error(`${t}() must be used within the GlobalDataContext`);
39
+ return e;
40
+ }, x = () => o("useAccountStore").globalStore.accountStore, f = () => o("useAppConfig").globalStore.appDataStore.appConfig, h = () => o("useAnalyticsStore").globalStore.analyticsStore, w = () => o("useBudgetsStore").globalStore.budgetsStore, G = () => o("useCashflowStore").globalStore.cashflowStore, E = () => o("useCategoryStore").globalStore.categoryStore, v = () => o("useConnectStore").globalStore.connectStore, y = () => o("useDebtsStore").globalStore.debtsStore, W = () => o("useFinstrongStore").globalStore.finstrongStore, m = () => o("useGlobalStore").globalStore, D = () => o("useGlobalUiStore").globalStore.globalUiStore, P = () => o("globalCopyStore").globalStore.copyStore.copy, A = () => o("useGoalStore").globalStore.goalStore, T = () => o("useHelpStore").globalStore.helpStore, U = () => o("useHoldingStore").globalStore.holdingStore, H = () => o("useMerchantStore").globalStore.merchantStore, N = () => o("useNetWorthStore").globalStore.netWorthStore, B = () => o("useNotificationStore").globalStore.notificationStore, L = () => o("useRecurringTransactionsStore").globalStore.recurringTransactionsStore, R = () => o("useSettingsStore").globalStore.settingsStore, V = () => o("useTransactionStore").globalStore.transactionStore, j = () => o("useTrendsStore").globalStore.trendsStore, F = () => o("useUserStore").globalStore.userStore, M = () => ({
41
+ onCaptureException: o().onCaptureException
42
+ }), _ = () => ({ onError: o().onError }), $ = () => ({ onEvent: o().onEvent }), k = () => ({ onLoad: o().onLoad }), q = () => ({ onPageView: o().onPageView }), g = (t = "useWidgetContainerContext") => {
43
+ const e = r.useContext(S);
44
+ if (!e)
45
+ throw new Error(`${t}() must be used within the WidgetContainerContext`);
46
+ return e;
47
+ }, z = () => g();
48
+ export {
49
+ q as A,
50
+ R as B,
51
+ j as C,
52
+ F as D,
53
+ z as E,
54
+ a as G,
55
+ p as W,
56
+ D as a,
57
+ H as b,
58
+ x as c,
59
+ v as d,
60
+ m as e,
61
+ $ as f,
62
+ V as g,
63
+ L as h,
64
+ f as i,
65
+ h as j,
66
+ A as k,
67
+ E as l,
68
+ d as m,
69
+ S as n,
70
+ w as o,
71
+ M as p,
72
+ G as q,
73
+ y as r,
74
+ _ as s,
75
+ W as t,
76
+ P as u,
77
+ T as v,
78
+ U as w,
79
+ k as x,
80
+ N as y,
81
+ B as z
82
+ };
83
+ //# sourceMappingURL=hooks-DWOrMnfZ.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hooks-DWOrMnfZ.mjs","sources":["../src/common/context/GlobalDataProvider.tsx","../src/common/context/WidgetContainerProvider.tsx","../src/common/context/hooks.tsx"],"sourcesContent":["import React from 'react'\n\nimport type { GlobalCaptureException, GlobalErrorHandler, GlobalEventHandler } from '../../core'\nimport { GlobalStore } from '../../core/stores'\n\nexport interface GlobalStoreContextTypes {\n children: React.ReactNode\n onCaptureException?: GlobalCaptureException\n onError: GlobalErrorHandler\n onEvent: GlobalEventHandler\n onLoad?: (widgetName: string) => void\n onPageView: (pageViewEvent: string) => void\n globalStore: GlobalStore\n}\nexport const GlobalDataContext = React.createContext<GlobalStoreContextTypes | null>(null)\n\nexport const GlobalDataProvider: React.FC<React.PropsWithChildren<GlobalStoreContextTypes>> = ({\n children,\n globalStore,\n onCaptureException,\n onError,\n onEvent,\n onLoad,\n onPageView,\n}) => {\n return (\n <GlobalDataContext.Provider\n value={{\n globalStore,\n onCaptureException,\n onError,\n onEvent,\n onLoad,\n onPageView,\n children,\n }}\n >\n {children}\n </GlobalDataContext.Provider>\n )\n}\n","import React from 'react'\n\nexport interface WidgetContainerContextTypes {\n children: React.ReactNode\n availableHeight: number\n availableWidth: number\n}\nexport const WidgetContainerContext = React.createContext<WidgetContainerContextTypes | null>(null)\n\nexport const WidgetContainerProvider: React.FC<\n React.PropsWithChildren<WidgetContainerContextTypes>\n> = ({ children, availableHeight, availableWidth }) => {\n return (\n <WidgetContainerContext.Provider\n value={{\n availableHeight,\n availableWidth,\n children,\n }}\n >\n {children}\n </WidgetContainerContext.Provider>\n )\n}\n","import React from 'react'\nimport { GlobalDataContext } from './GlobalDataProvider'\nimport { WidgetContainerContext } from './WidgetContainerProvider'\n\nexport const useGlobalDataContext = (providerName = 'useGlobalStore') => {\n const context = React.useContext(GlobalDataContext)\n\n if (!context) {\n throw new Error(`${providerName}() must be used within the GlobalDataContext`)\n }\n return context\n}\n\nexport const useAccountStore = () =>\n useGlobalDataContext('useAccountStore').globalStore.accountStore\nexport const useAppConfig = () =>\n useGlobalDataContext('useAppConfig').globalStore.appDataStore.appConfig\nexport const useAnalyticsStore = () =>\n useGlobalDataContext('useAnalyticsStore').globalStore.analyticsStore\nexport const useBudgetsStore = () =>\n useGlobalDataContext('useBudgetsStore').globalStore.budgetsStore\nexport const useCashflowStore = () =>\n useGlobalDataContext('useCashflowStore').globalStore.cashflowStore\nexport const useCategoryStore = () =>\n useGlobalDataContext('useCategoryStore').globalStore.categoryStore\nexport const useConnectStore = () =>\n useGlobalDataContext('useConnectStore').globalStore.connectStore\nexport const useDebtStore = () => useGlobalDataContext('useDebtsStore').globalStore.debtsStore\nexport const useFinstrongStore = () =>\n useGlobalDataContext('useFinstrongStore').globalStore.finstrongStore\nexport const useGlobalStore = () => useGlobalDataContext('useGlobalStore').globalStore\nexport const useGlobalUiStore = () =>\n useGlobalDataContext('useGlobalUiStore').globalStore.globalUiStore\nexport const useGlobalCopyStore = () =>\n useGlobalDataContext('globalCopyStore').globalStore.copyStore.copy\nexport const useGoalStore = () => useGlobalDataContext('useGoalStore').globalStore.goalStore\nexport const useHelpStore = () => useGlobalDataContext('useHelpStore').globalStore.helpStore\nexport const useHoldingStore = () =>\n useGlobalDataContext('useHoldingStore').globalStore.holdingStore\nexport const useMerchantStore = () =>\n useGlobalDataContext('useMerchantStore').globalStore.merchantStore\nexport const useNetWorthStore = () =>\n useGlobalDataContext('useNetWorthStore').globalStore.netWorthStore\nexport const useNotificationStore = () =>\n useGlobalDataContext('useNotificationStore').globalStore.notificationStore\nexport const useRecurringTransactionsStore = () =>\n useGlobalDataContext('useRecurringTransactionsStore').globalStore.recurringTransactionsStore\nexport const useSettingsStore = () =>\n useGlobalDataContext('useSettingsStore').globalStore.settingsStore\nexport const useTransactionStore = () =>\n useGlobalDataContext('useTransactionStore').globalStore.transactionStore\nexport const useTrendsStore = () => useGlobalDataContext('useTrendsStore').globalStore.trendsStore\nexport const useUserStore = () => useGlobalDataContext('useUserStore').globalStore.userStore\n\nexport const useCaptureException = () => ({\n onCaptureException: useGlobalDataContext().onCaptureException,\n})\nexport const useError = () => ({ onError: useGlobalDataContext().onError })\nexport const useEvent = () => ({ onEvent: useGlobalDataContext().onEvent })\nexport const useLoad = () => ({ onLoad: useGlobalDataContext().onLoad })\nexport const usePageView = () => ({ onPageView: useGlobalDataContext().onPageView })\n\nexport const useWidgetContainerContext = (providerName = 'useWidgetContainerContext') => {\n const context = React.useContext(WidgetContainerContext)\n\n if (!context) {\n throw new Error(`${providerName}() must be used within the WidgetContainerContext`)\n }\n\n return context\n}\n\nexport const useWidgetContainerProvider = () => useWidgetContainerContext()\n"],"names":["GlobalDataContext","React","GlobalDataProvider","children","globalStore","onCaptureException","onError","onEvent","onLoad","onPageView","jsx","WidgetContainerContext","WidgetContainerProvider","availableHeight","availableWidth","useGlobalDataContext","providerName","context","useAccountStore","useAppConfig","useAnalyticsStore","useBudgetsStore","useCashflowStore","useCategoryStore","useConnectStore","useDebtStore","useFinstrongStore","useGlobalStore","useGlobalUiStore","useGlobalCopyStore","useGoalStore","useHelpStore","useHoldingStore","useMerchantStore","useNetWorthStore","useNotificationStore","useRecurringTransactionsStore","useSettingsStore","useTransactionStore","useTrendsStore","useUserStore","useCaptureException","useError","useEvent","useLoad","usePageView","useWidgetContainerContext","useWidgetContainerProvider"],"mappings":";;AAcO,MAAMA,IAAoBC,EAAM,cAA8C,IAAI,GAE5EC,IAAiF,CAAC;AAAA,EAC7F,UAAAC;AAAA,EACA,aAAAC;AAAA,EACA,oBAAAC;AAAA,EACA,SAAAC;AAAA,EACA,SAAAC;AAAA,EACA,QAAAC;AAAA,EACA,YAAAC;AACF,MAEI,gBAAAC;AAAA,EAACV,EAAkB;AAAA,EAAlB;AAAA,IACC,OAAO;AAAA,MACL,aAAAI;AAAA,MACA,oBAAAC;AAAA,MACA,SAAAC;AAAA,MACA,SAAAC;AAAA,MACA,QAAAC;AAAA,MACA,YAAAC;AAAA,MACA,UAAAN;AAAA,IAAA;AAAA,IAGD,UAAAA;AAAA,EAAA;AAAA,GC9BMQ,IAAyBV,EAAM,cAAkD,IAAI,GAErFW,IAET,CAAC,EAAE,UAAAT,GAAU,iBAAAU,GAAiB,gBAAAC,QAE9B,gBAAAJ;AAAA,EAACC,EAAuB;AAAA,EAAvB;AAAA,IACC,OAAO;AAAA,MACL,iBAAAE;AAAA,MACA,gBAAAC;AAAA,MACA,UAAAX;AAAA,IAAA;AAAA,IAGD,UAAAA;AAAA,EAAA;AAAA,GChBMY,IAAuB,CAACC,IAAe,qBAAqB;AACvE,QAAMC,IAAUhB,EAAM,WAAWD,CAAiB;AAElD,MAAI,CAACiB;AACH,UAAM,IAAI,MAAM,GAAGD,CAAY,8CAA8C;AAE/E,SAAOC;AACT,GAEaC,IAAkB,MAC7BH,EAAqB,iBAAiB,EAAE,YAAY,cACzCI,IAAe,MAC1BJ,EAAqB,cAAc,EAAE,YAAY,aAAa,WACnDK,IAAoB,MAC/BL,EAAqB,mBAAmB,EAAE,YAAY,gBAC3CM,IAAkB,MAC7BN,EAAqB,iBAAiB,EAAE,YAAY,cACzCO,IAAmB,MAC9BP,EAAqB,kBAAkB,EAAE,YAAY,eAC1CQ,IAAmB,MAC9BR,EAAqB,kBAAkB,EAAE,YAAY,eAC1CS,IAAkB,MAC7BT,EAAqB,iBAAiB,EAAE,YAAY,cACzCU,IAAe,MAAMV,EAAqB,eAAe,EAAE,YAAY,YACvEW,IAAoB,MAC/BX,EAAqB,mBAAmB,EAAE,YAAY,gBAC3CY,IAAiB,MAAMZ,EAAqB,gBAAgB,EAAE,aAC9Da,IAAmB,MAC9Bb,EAAqB,kBAAkB,EAAE,YAAY,eAC1Cc,IAAqB,MAChCd,EAAqB,iBAAiB,EAAE,YAAY,UAAU,MACnDe,IAAe,MAAMf,EAAqB,cAAc,EAAE,YAAY,WACtEgB,IAAe,MAAMhB,EAAqB,cAAc,EAAE,YAAY,WACtEiB,IAAkB,MAC7BjB,EAAqB,iBAAiB,EAAE,YAAY,cACzCkB,IAAmB,MAC9BlB,EAAqB,kBAAkB,EAAE,YAAY,eAC1CmB,IAAmB,MAC9BnB,EAAqB,kBAAkB,EAAE,YAAY,eAC1CoB,IAAuB,MAClCpB,EAAqB,sBAAsB,EAAE,YAAY,mBAC9CqB,IAAgC,MAC3CrB,EAAqB,+BAA+B,EAAE,YAAY,4BACvDsB,IAAmB,MAC9BtB,EAAqB,kBAAkB,EAAE,YAAY,eAC1CuB,IAAsB,MACjCvB,EAAqB,qBAAqB,EAAE,YAAY,kBAC7CwB,IAAiB,MAAMxB,EAAqB,gBAAgB,EAAE,YAAY,aAC1EyB,IAAe,MAAMzB,EAAqB,cAAc,EAAE,YAAY,WAEtE0B,IAAsB,OAAO;AAAA,EACxC,oBAAoB1B,IAAuB;AAC7C,IACa2B,IAAW,OAAO,EAAE,SAAS3B,EAAA,EAAuB,QAAA,IACpD4B,IAAW,OAAO,EAAE,SAAS5B,EAAA,EAAuB,QAAA,IACpD6B,IAAU,OAAO,EAAE,QAAQ7B,EAAA,EAAuB,OAAA,IAClD8B,IAAc,OAAO,EAAE,YAAY9B,EAAA,EAAuB,WAAA,IAE1D+B,IAA4B,CAAC9B,IAAe,gCAAgC;AACvF,QAAMC,IAAUhB,EAAM,WAAWU,CAAsB;AAEvD,MAAI,CAACM;AACH,UAAM,IAAI,MAAM,GAAGD,CAAY,mDAAmD;AAGpF,SAAOC;AACT,GAEa8B,IAA6B,MAAMD,EAAA;"}
@@ -1,8 +1,8 @@
1
1
  import { jsx as t, jsxs as c, Fragment as N } from "react/jsx-runtime";
2
2
  import { BottomSheetTransition as r2, Text as E, MerchantLogo as Q, InstitutionLogo as F, P as J, H3 as h1, H2 as c1, Icon as k1, CategoryIcon as g1, createMXTheme as i2 } from "@mxenabled/mxui";
3
3
  import C from "@mui/material/Stack";
4
- import { e as K, p as n2, B as z1, b as l2 } from "../EmbeddedCard-DCOQnTz-.mjs";
5
- import { f as d5, C as C5, E as m5 } from "../EmbeddedCard-DCOQnTz-.mjs";
4
+ import { e as K, p as n2, B as z1, b as l2 } from "../EmbeddedCard-BwfkCsUN.mjs";
5
+ import { f as d5, C as C5, E as m5 } from "../EmbeddedCard-BwfkCsUN.mjs";
6
6
  import { CardHeader as a2, Stack as v, Button as A1, Card as j1, Box as L1, ToggleButtonGroup as o2, TextField as s2, Grow as c2, Alert as h2, useTheme as d2, useMediaQuery as H1, AppBar as C2, Toolbar as m2, IconButton as u1, List as p2, ListItem as E2, Divider as u2 } from "@mui/material";
7
7
  import { useTheme as f2, styled as x2, Stack as f1 } from "@mui/system";
8
8
  import { Link as y2, Icon as S, CheckCircle as W1, ChevronRight as M2 } from "@mxenabled/mx-icons";
@@ -31,13 +31,13 @@ import M1 from "@mui/material/ListItemText";
31
31
  import { b as L2 } from "../Localization-DnoVyBNK.mjs";
32
32
  import { f as T } from "../NumberFormatting--XMeeBfr.mjs";
33
33
  import { D as H2 } from "../Drawer-DsnW2o0v.mjs";
34
- import { B as G2 } from "../Error-Dtw6yxkf.mjs";
34
+ import { B as G2 } from "../Error-BFJ3BnfS.mjs";
35
35
  import P1 from "@mui/material/FormControl";
36
36
  import U1 from "@mui/material/FormControlLabel";
37
37
  import B1 from "@mui/material/Radio";
38
38
  import Q1 from "@mui/material/RadioGroup";
39
39
  import R2 from "@mui/material/TextField";
40
- import { u as I2 } from "../hooks-97sNJ_lf.mjs";
40
+ import { u as I2 } from "../hooks-DWOrMnfZ.mjs";
41
41
  import Y2 from "@mui/material/Menu";
42
42
  import D2 from "@mui/material/MenuItem";
43
43
  import { useInView as N2 } from "react-intersection-observer";
@@ -4,7 +4,7 @@ import { observer as $ } from "mobx-react-lite";
4
4
  import _ from "@mui/material/Stack";
5
5
  import Fe from "@mui/material/Tab";
6
6
  import Ee from "@mui/material/Tabs";
7
- import { C as pe } from "../ConnectionsDrawer-CZU9ku-k.mjs";
7
+ import { C as pe } from "../ConnectionsDrawer-C73ASLMj.mjs";
8
8
  import xe from "@mui/material/useMediaQuery";
9
9
  import Ne from "@mui/material/Box";
10
10
  import Me from "@mui/material/Collapse";
@@ -16,7 +16,7 @@ import ye from "@mui/material/ToggleButton";
16
16
  import fe from "@mui/material/ToggleButtonGroup";
17
17
  import { Text as o, P as X, InstitutionLogo as oe } from "@mxenabled/mxui";
18
18
  import Ue from "@mui/material/Button";
19
- import { u as N, f as ve, v as U, a as J, c as ce } from "../hooks-97sNJ_lf.mjs";
19
+ import { u as N, f as ve, w as U, a as J, c as ce } from "../hooks-DWOrMnfZ.mjs";
20
20
  import { A as z } from "../Analytics-D-jdcL72.mjs";
21
21
  import { f as re, a as je } from "../NumberFormatting--XMeeBfr.mjs";
22
22
  import { u as j } from "../useScreenSize-mWpmnh5w.mjs";
@@ -37,8 +37,8 @@ import { D as Re } from "../Drawer-DsnW2o0v.mjs";
37
37
  import { DataGridPro as $e } from "@mui/x-data-grid-pro";
38
38
  import { Stack as Pe } from "@mui/material";
39
39
  import { L as De } from "../Loader-CxeBwuPG.mjs";
40
- import { u as qe } from "../useWidgetLoadTimer-B0tB-yzL.mjs";
41
- import { W as Ke } from "../WidgetContainer-CjdCY4sj.mjs";
40
+ import { u as qe } from "../useWidgetLoadTimer-C0Mr0eRf.mjs";
41
+ import { W as Ke } from "../WidgetContainer-5O6N88mr.mjs";
42
42
  import { c as Ye } from "../Account-DR7Plrqy.mjs";
43
43
  import { E as Qe } from "../EmptyState-CJUDc3kD.mjs";
44
44
  const me = ({ sx: t = {} }) => {
@@ -12,7 +12,7 @@ import k from "@mui/material/ListItemText";
12
12
  import A from "@mui/material/Paper";
13
13
  import d from "@mui/material/Stack";
14
14
  import { MerchantLogo as V, Text as R } from "@mxenabled/mxui";
15
- import { b as v, u as w, a as C } from "../hooks-97sNJ_lf.mjs";
15
+ import { b as v, u as w, a as C } from "../hooks-DWOrMnfZ.mjs";
16
16
  import { L as u } from "../Loader-CxeBwuPG.mjs";
17
17
  import { S as N } from "../SearchBox-Cpgu_gdO.mjs";
18
18
  const B = /^[ a-zA-ZÀ-ÿ0-9]+$/, H = 50, p = 65, P = ({
@@ -1,4 +1,4 @@
1
- import { A as u, C as s, I as c, a as v, b as C, M as R, c as H, d as M, N as F, V, Z as x } from "../ViewMoreMicroCard-fnwE0hqd.mjs";
1
+ import { A as u, C as s, I as c, a as v, b as C, M as R, c as H, d as M, N as F, V, Z as x } from "../ViewMoreMicroCard-DXaJ-56q.mjs";
2
2
  import { B as Z } from "../BeatMaterialIcon-1KOfRZrA.mjs";
3
3
  import { jsx as e, jsxs as l } from "react/jsx-runtime";
4
4
  const a = ({
@@ -5,17 +5,17 @@ import m from "@mui/material/Stack";
5
5
  import { P as Y, Text as d, Icon as R } from "@mxenabled/mxui";
6
6
  import { Icon as Z } from "@mxenabled/mx-icons";
7
7
  import { f as F } from "../NumberFormatting--XMeeBfr.mjs";
8
- import { c as oe, f as $, u as E, a as q, x as j, D as re } from "../hooks-97sNJ_lf.mjs";
9
- import { u as J } from "../useWidgetLoadTimer-B0tB-yzL.mjs";
8
+ import { c as oe, f as $, u as E, a as q, y as j, E as re } from "../hooks-DWOrMnfZ.mjs";
9
+ import { u as J } from "../useWidgetLoadTimer-C0Mr0eRf.mjs";
10
10
  import { A as v } from "../Analytics-D-jdcL72.mjs";
11
11
  import { L as Q } from "../Loader-CxeBwuPG.mjs";
12
- import { M as ie } from "../MicroWidgetContainer-B2NnKBgW.mjs";
12
+ import { M as ie } from "../MicroWidgetContainer-IUZQlml1.mjs";
13
13
  import { format as ae, fromUnixTime as se, differenceInMonths as ce } from "date-fns";
14
14
  import P from "@mui/material/Box";
15
- import { C as le } from "../ConnectionsDrawer-CZU9ku-k.mjs";
15
+ import { C as le } from "../ConnectionsDrawer-C73ASLMj.mjs";
16
16
  import { fromUnixTime as de } from "date-fns/fromUnixTime";
17
17
  import { useTheme as H } from "@mui/material/styles";
18
- import { L as me } from "../LineChart-CUfiH86G.mjs";
18
+ import { L as me } from "../LineChart-BxEIZHht.mjs";
19
19
  import { u as ee } from "../useScreenSize-mWpmnh5w.mjs";
20
20
  import { f as he, D as pe } from "../DateFormats-HudZ3Bjs.mjs";
21
21
  import ue from "@mui/material/Button";
@@ -32,7 +32,7 @@ import xe from "@mui/material/Collapse";
32
32
  import K from "@mui/material/ListItemIcon";
33
33
  import { g as U } from "../NetWorthUtils-Dj7CgAg2.mjs";
34
34
  import { D as V } from "../Drawer-DsnW2o0v.mjs";
35
- import { W as ge } from "../WidgetContainer-CjdCY4sj.mjs";
35
+ import { W as ge } from "../WidgetContainer-5O6N88mr.mjs";
36
36
  import { E as ye } from "../EmptyState-CJUDc3kD.mjs";
37
37
  const Ce = ({ amount: t, copy: s, trendValue: i }) => {
38
38
  const n = i > 0, o = i === 0 ? "trending_flat" : n ? "trending_up" : "trending_down";
@@ -7,16 +7,16 @@ import b from "@mui/material/Box";
7
7
  import B from "@mui/material/Divider";
8
8
  import I from "@mui/material/List";
9
9
  import { g as R, s as O } from "../NotificationUtils-BRGFTePr.mjs";
10
- import { Text as m, InstitutionLogo as G, CategoryIcon as E } from "@mxenabled/mxui";
11
- import { k as j } from "../DateUtil-CzBmbjmA.mjs";
12
- import { useTheme as z, Card as U } from "@mui/material";
13
- import { c as F, o as P, u as C, y as k, a as v, i as V } from "../hooks-97sNJ_lf.mjs";
10
+ import { Text as m, InstitutionLogo as G, CategoryIcon as z } from "@mxenabled/mxui";
11
+ import { k as E } from "../DateUtil-CzBmbjmA.mjs";
12
+ import { useTheme as j, Card as U } from "@mui/material";
13
+ import { c as F, o as P, u as C, z as k, a as v, i as V } from "../hooks-DWOrMnfZ.mjs";
14
14
  import { Icon as W, Settings as $ } from "@mxenabled/mx-icons";
15
15
  import M from "@mui/material/Button";
16
16
  import X from "@mui/material/Stack";
17
17
  import { L as w } from "../Loader-CxeBwuPG.mjs";
18
18
  import Y from "@mui/material/IconButton";
19
- import { N as q } from "../NotificationSettings-CW7okUrk.mjs";
19
+ import { N as q } from "../NotificationSettings-DltXMrnb.mjs";
20
20
  import { D as x } from "../Drawer-DsnW2o0v.mjs";
21
21
  const xt = (i) => {
22
22
  switch (i) {
@@ -34,7 +34,7 @@ const xt = (i) => {
34
34
  default:
35
35
  return null;
36
36
  }
37
- }, H = ({ date: i }) => /* @__PURE__ */ t(b, { sx: { display: "flex", justifyContent: "center", mt: 12, py: 8 }, children: /* @__PURE__ */ t(m, { bold: !0, variant: "body2", children: j(i) }) }), J = ({ notification: i }) => {
37
+ }, H = ({ date: i }) => /* @__PURE__ */ t(b, { sx: { display: "flex", justifyContent: "center", mt: 12, py: 8 }, children: /* @__PURE__ */ t(m, { bold: !0, variant: "body2", children: E(i) }) }), J = ({ notification: i }) => {
38
38
  const { accounts: e } = F(), { budgets: r } = P(), { accounts: n } = C(), o = e.find((c) => c.guid === i.entity_guid), a = r.find((c) => c.guid === i.entity_guid), d = i.entity_guid.includes("GOL"), u = {
39
39
  badge: {
40
40
  display: "flex",
@@ -51,9 +51,9 @@ const xt = (i) => {
51
51
  institutionGuid: o?.institution_guid ?? "",
52
52
  size: 33
53
53
  }
54
- ) }) : /* @__PURE__ */ t("div", { style: u.badge, children: /* @__PURE__ */ t(E, { categoryGuid: a?.category_guid, size: 36 }) });
54
+ ) }) : /* @__PURE__ */ t("div", { style: u.badge, children: /* @__PURE__ */ t(z, { categoryGuid: a?.category_guid, size: 36 }) });
55
55
  }, K = p(J), Q = ({ notification: i, onClick: e }) => {
56
- const { updateNotification: r } = k(), n = z(), o = {
56
+ const { updateNotification: r } = k(), n = j(), o = {
57
57
  card: {
58
58
  alignItems: "center",
59
59
  cursor: "pointer",