@burdenoff/microfe-subscriberbot 2026.626.1 → 2026.628.1
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.js +4 -4
- package/dist/subscriberbot/SubscriberBotRoot.js +61 -133
- package/dist/subscriberbot/SubscriberBotRoot.js.map +1 -1
- package/dist/subscriberbot/SubscriberBotRoutes.js +56 -187
- package/dist/subscriberbot/SubscriberBotRoutes.js.map +1 -1
- package/dist/subscriberbot/components/StateViews.js +49 -0
- package/dist/subscriberbot/components/StateViews.js.map +1 -0
- package/dist/subscriberbot/components/StatusBadge.js +45 -47
- package/dist/subscriberbot/components/StatusBadge.js.map +1 -1
- package/dist/subscriberbot/context/SubscriberBotContext.js +22 -30
- package/dist/subscriberbot/context/SubscriberBotContext.js.map +1 -1
- package/dist/subscriberbot/hooks/useSubscriberBotApi.js +342 -195
- package/dist/subscriberbot/hooks/useSubscriberBotApi.js.map +1 -1
- package/dist/subscriberbot/index.js +1 -1
- package/dist/subscriberbot/pages/DashboardPage.js +269 -0
- package/dist/subscriberbot/pages/DashboardPage.js.map +1 -0
- package/dist/subscriberbot/pages/InboxPage.js +186 -0
- package/dist/subscriberbot/pages/InboxPage.js.map +1 -0
- package/dist/subscriberbot/pages/InvoicesPage.js +211 -0
- package/dist/subscriberbot/pages/InvoicesPage.js.map +1 -0
- package/dist/subscriberbot/pages/WorkflowsPage.js +236 -0
- package/dist/subscriberbot/pages/WorkflowsPage.js.map +1 -0
- package/dist/subscriberbot/pages/agents/AgentDetailPage.js +160 -0
- package/dist/subscriberbot/pages/agents/AgentDetailPage.js.map +1 -0
- package/dist/subscriberbot/pages/agents/AgentNewPage.js +140 -0
- package/dist/subscriberbot/pages/agents/AgentNewPage.js.map +1 -0
- package/dist/subscriberbot/pages/agents/AgentsListPage.js +178 -0
- package/dist/subscriberbot/pages/agents/AgentsListPage.js.map +1 -0
- package/dist/subscriberbot/pages/providers/ProviderDetailPage.js +179 -0
- package/dist/subscriberbot/pages/providers/ProviderDetailPage.js.map +1 -0
- package/dist/subscriberbot/pages/providers/ProviderNewPage.js +185 -0
- package/dist/subscriberbot/pages/providers/ProviderNewPage.js.map +1 -0
- package/dist/subscriberbot/pages/providers/ProvidersListPage.js +254 -0
- package/dist/subscriberbot/pages/providers/ProvidersListPage.js.map +1 -0
- package/dist/subscriberbot/pages/relationships/RelationshipDetailPage.js +306 -0
- package/dist/subscriberbot/pages/relationships/RelationshipDetailPage.js.map +1 -0
- package/dist/subscriberbot/pages/relationships/RelationshipNewPage.js +253 -0
- package/dist/subscriberbot/pages/relationships/RelationshipNewPage.js.map +1 -0
- package/dist/subscriberbot/pages/relationships/RelationshipsListPage.js +248 -0
- package/dist/subscriberbot/pages/relationships/RelationshipsListPage.js.map +1 -0
- package/dist/subscriberbot/utils/formatters.js +50 -32
- package/dist/subscriberbot/utils/formatters.js.map +1 -1
- package/package.json +1 -1
- package/dist/subscriberbot/components/InvestmentCard.js +0 -97
- package/dist/subscriberbot/components/InvestmentCard.js.map +0 -1
- package/dist/subscriberbot/components/RatingDisplay.js +0 -35
- package/dist/subscriberbot/components/RatingDisplay.js.map +0 -1
- package/dist/subscriberbot/mocks/data.js +0 -1517
- package/dist/subscriberbot/mocks/data.js.map +0 -1
- package/dist/subscriberbot/mocks/users.js +0 -34
- package/dist/subscriberbot/mocks/users.js.map +0 -1
- package/dist/subscriberbot/pages/HomePage.js +0 -930
- package/dist/subscriberbot/pages/HomePage.js.map +0 -1
- package/dist/subscriberbot/pages/admin/AdminAnalyticsPage.js +0 -651
- package/dist/subscriberbot/pages/admin/AdminAnalyticsPage.js.map +0 -1
- package/dist/subscriberbot/pages/admin/AdminDashboard.js +0 -679
- package/dist/subscriberbot/pages/admin/AdminDashboard.js.map +0 -1
- package/dist/subscriberbot/pages/admin/AdminFinancialPage.js +0 -427
- package/dist/subscriberbot/pages/admin/AdminFinancialPage.js.map +0 -1
- package/dist/subscriberbot/pages/admin/AdminOrdersPage.js +0 -665
- package/dist/subscriberbot/pages/admin/AdminOrdersPage.js.map +0 -1
- package/dist/subscriberbot/pages/admin/AdminProfilePage.js +0 -261
- package/dist/subscriberbot/pages/admin/AdminProfilePage.js.map +0 -1
- package/dist/subscriberbot/pages/admin/AdminSettingsPage.js +0 -654
- package/dist/subscriberbot/pages/admin/AdminSettingsPage.js.map +0 -1
- package/dist/subscriberbot/pages/admin/CartManagementPage.js +0 -874
- package/dist/subscriberbot/pages/admin/CartManagementPage.js.map +0 -1
- package/dist/subscriberbot/pages/admin/UserManagementPage.js +0 -898
- package/dist/subscriberbot/pages/admin/UserManagementPage.js.map +0 -1
- package/dist/subscriberbot/pages/cart-owner/AnalyticsDashboard.js +0 -839
- package/dist/subscriberbot/pages/cart-owner/AnalyticsDashboard.js.map +0 -1
- package/dist/subscriberbot/pages/cart-owner/BusinessSettingsPage.js +0 -705
- package/dist/subscriberbot/pages/cart-owner/BusinessSettingsPage.js.map +0 -1
- package/dist/subscriberbot/pages/cart-owner/CartOwnerDashboard.js +0 -802
- package/dist/subscriberbot/pages/cart-owner/CartOwnerDashboard.js.map +0 -1
- package/dist/subscriberbot/pages/cart-owner/CartOwnerProfilePage.js +0 -891
- package/dist/subscriberbot/pages/cart-owner/CartOwnerProfilePage.js.map +0 -1
- package/dist/subscriberbot/pages/cart-owner/CartServiceConfigPage.js +0 -633
- package/dist/subscriberbot/pages/cart-owner/CartServiceConfigPage.js.map +0 -1
- package/dist/subscriberbot/pages/cart-owner/InventoryManagementPage.js +0 -910
- package/dist/subscriberbot/pages/cart-owner/InventoryManagementPage.js.map +0 -1
- package/dist/subscriberbot/pages/cart-owner/OrderManagementPage.js +0 -879
- package/dist/subscriberbot/pages/cart-owner/OrderManagementPage.js.map +0 -1
- package/dist/subscriberbot/pages/cart-owner/StaffManagementPage.js +0 -838
- package/dist/subscriberbot/pages/cart-owner/StaffManagementPage.js.map +0 -1
- package/dist/subscriberbot/pages/common/HelpSupportPage.js +0 -1323
- package/dist/subscriberbot/pages/common/HelpSupportPage.js.map +0 -1
- package/dist/subscriberbot/pages/common/NotificationCenterPage.js +0 -672
- package/dist/subscriberbot/pages/common/NotificationCenterPage.js.map +0 -1
- package/dist/subscriberbot/pages/common/SettingsPage.js +0 -973
- package/dist/subscriberbot/pages/common/SettingsPage.js.map +0 -1
- package/dist/subscriberbot/pages/customer/BookingDetailsPage.js +0 -626
- package/dist/subscriberbot/pages/customer/BookingDetailsPage.js.map +0 -1
- package/dist/subscriberbot/pages/customer/CartDetailPage.js +0 -654
- package/dist/subscriberbot/pages/customer/CartDetailPage.js.map +0 -1
- package/dist/subscriberbot/pages/customer/CartDiscoveryPage.js +0 -555
- package/dist/subscriberbot/pages/customer/CartDiscoveryPage.js.map +0 -1
- package/dist/subscriberbot/pages/customer/CheckoutPage.js +0 -529
- package/dist/subscriberbot/pages/customer/CheckoutPage.js.map +0 -1
- package/dist/subscriberbot/pages/customer/CustomerDashboard.js +0 -532
- package/dist/subscriberbot/pages/customer/CustomerDashboard.js.map +0 -1
- package/dist/subscriberbot/pages/customer/CustomerProfilePage.js +0 -630
- package/dist/subscriberbot/pages/customer/CustomerProfilePage.js.map +0 -1
- package/dist/subscriberbot/pages/customer/DirectServiceBookingPage.js +0 -633
- package/dist/subscriberbot/pages/customer/DirectServiceBookingPage.js.map +0 -1
- package/dist/subscriberbot/pages/customer/FavoritesPage.js +0 -484
- package/dist/subscriberbot/pages/customer/FavoritesPage.js.map +0 -1
- package/dist/subscriberbot/pages/customer/OrderHistoryPage.js +0 -446
- package/dist/subscriberbot/pages/customer/OrderHistoryPage.js.map +0 -1
- package/dist/subscriberbot/pages/customer/OrderTrackingPage.js +0 -394
- package/dist/subscriberbot/pages/customer/OrderTrackingPage.js.map +0 -1
- package/dist/subscriberbot/pages/customer/PaymentMethodsPage.js +0 -495
- package/dist/subscriberbot/pages/customer/PaymentMethodsPage.js.map +0 -1
- package/dist/subscriberbot/pages/customer/ReviewsPage.js +0 -613
- package/dist/subscriberbot/pages/customer/ReviewsPage.js.map +0 -1
- package/dist/subscriberbot/pages/customer/SavedAddressesPage.js +0 -450
- package/dist/subscriberbot/pages/customer/SavedAddressesPage.js.map +0 -1
- package/dist/subscriberbot/pages/investor/InvestmentDetailsPage.js +0 -886
- package/dist/subscriberbot/pages/investor/InvestmentDetailsPage.js.map +0 -1
- package/dist/subscriberbot/pages/investor/InvestmentOpportunitiesPage.js +0 -947
- package/dist/subscriberbot/pages/investor/InvestmentOpportunitiesPage.js.map +0 -1
- package/dist/subscriberbot/pages/investor/InvestorAnalyticsPage.js +0 -687
- package/dist/subscriberbot/pages/investor/InvestorAnalyticsPage.js.map +0 -1
- package/dist/subscriberbot/pages/investor/InvestorDashboard.js +0 -451
- package/dist/subscriberbot/pages/investor/InvestorDashboard.js.map +0 -1
- package/dist/subscriberbot/pages/investor/InvestorInvestmentsPage.js +0 -406
- package/dist/subscriberbot/pages/investor/InvestorInvestmentsPage.js.map +0 -1
- package/dist/subscriberbot/pages/investor/InvestorPortfolioPage.js +0 -575
- package/dist/subscriberbot/pages/investor/InvestorPortfolioPage.js.map +0 -1
- package/dist/subscriberbot/pages/investor/InvestorProfilePage.js +0 -1070
- package/dist/subscriberbot/pages/investor/InvestorProfilePage.js.map +0 -1
- package/dist/subscriberbot/pages/worker/TaskDetailsPage.js +0 -535
- package/dist/subscriberbot/pages/worker/TaskDetailsPage.js.map +0 -1
- package/dist/subscriberbot/pages/worker/WorkerDashboard.js +0 -666
- package/dist/subscriberbot/pages/worker/WorkerDashboard.js.map +0 -1
- package/dist/subscriberbot/pages/worker/WorkerOrdersPage.js +0 -681
- package/dist/subscriberbot/pages/worker/WorkerOrdersPage.js.map +0 -1
- package/dist/subscriberbot/pages/worker/WorkerProfilePage.js +0 -692
- package/dist/subscriberbot/pages/worker/WorkerProfilePage.js.map +0 -1
- package/dist/subscriberbot/pages/worker/WorkerSchedulePage.js +0 -588
- package/dist/subscriberbot/pages/worker/WorkerSchedulePage.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SubscriberBotProvider as e, useSubscriberBot as t } from "./subscriberbot/context/SubscriberBotContext.js";
|
|
2
2
|
import { cn as n } from "./subscriberbot/utils/cn.js";
|
|
3
|
-
import { formatCurrency as r, formatDate as i,
|
|
4
|
-
import { SubscriberBotRoot as
|
|
5
|
-
import { useSubscriberBotStore as
|
|
3
|
+
import { formatCurrency as r, formatDate as i, formatDateTime as a, formatEnumLabel as o, formatIntervalSuffix as s, formatNumber as c, formatRelativeTime as l } from "./subscriberbot/utils/formatters.js";
|
|
4
|
+
import { SubscriberBotRoot as u } from "./subscriberbot/SubscriberBotRoot.js";
|
|
5
|
+
import { useSubscriberBotStore as d } from "./subscriberbot/store/subscriberbotStore.js";
|
|
6
6
|
import "./subscriberbot/index.js";
|
|
7
|
-
export { e as SubscriberBotProvider,
|
|
7
|
+
export { e as SubscriberBotProvider, u as SubscriberBotRoot, n as cn, r as formatCurrency, i as formatDate, a as formatDateTime, o as formatEnumLabel, s as formatIntervalSuffix, c as formatNumber, l as formatRelativeTime, t as useSubscriberBot, d as useSubscriberBotStore };
|
|
@@ -3,175 +3,103 @@ import { SubscriberBotRoutes as t } from "./SubscriberBotRoutes.js";
|
|
|
3
3
|
import { useCallback as n, useEffect as r } from "react";
|
|
4
4
|
import { QueryClient as i, QueryClientProvider as a } from "@tanstack/react-query";
|
|
5
5
|
import { useI18n as o } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
6
|
-
import {
|
|
7
|
-
import { jsx as
|
|
8
|
-
import { FeatureFlagProvider as
|
|
6
|
+
import { Bot as s, Building2 as c, Inbox as l, LayoutDashboard as u, Receipt as d, Repeat2 as f, Workflow as p } from "lucide-react";
|
|
7
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
8
|
+
import { FeatureFlagProvider as h } from "@burdenoff/fe-libs/shared/feature-flags";
|
|
9
9
|
//#region src/subscriberbot/SubscriberBotRoot.tsx
|
|
10
|
-
var
|
|
10
|
+
var g = new i({ defaultOptions: { queries: {
|
|
11
11
|
staleTime: 300 * 1e3,
|
|
12
12
|
retry: 1
|
|
13
|
-
} } }),
|
|
14
|
-
let { registerNavItems:
|
|
15
|
-
let n =
|
|
13
|
+
} } }), _ = (i) => {
|
|
14
|
+
let { registerNavItems: _, registerFooterItems: v, basePath: y = "/" } = i, { t: b } = o(), x = n((e, t) => {
|
|
15
|
+
let n = b(e);
|
|
16
16
|
return n === e ? t : n;
|
|
17
|
-
}, [
|
|
17
|
+
}, [b]), S = (e, t) => (e.endsWith("/") ? e.slice(0, -1) : e) + (t.startsWith("/") ? t : `/${t}`);
|
|
18
18
|
return r(() => {
|
|
19
|
-
if (
|
|
19
|
+
if (_) return _([
|
|
20
20
|
{
|
|
21
|
-
id: "subscriberbot-
|
|
22
|
-
label:
|
|
23
|
-
path:
|
|
24
|
-
icon: /* @__PURE__ */
|
|
21
|
+
id: "subscriberbot-overview",
|
|
22
|
+
label: x("subscriberbot.nav.overview", "Overview"),
|
|
23
|
+
path: S(y, ""),
|
|
24
|
+
icon: /* @__PURE__ */ m(u, { size: 20 }),
|
|
25
25
|
order: 1,
|
|
26
|
-
group: "
|
|
26
|
+
group: "subscriberbot"
|
|
27
27
|
},
|
|
28
28
|
{
|
|
29
|
-
id: "subscriberbot-
|
|
30
|
-
label:
|
|
31
|
-
path:
|
|
32
|
-
icon: /* @__PURE__ */
|
|
33
|
-
order:
|
|
34
|
-
group: "
|
|
29
|
+
id: "subscriberbot-relationships",
|
|
30
|
+
label: x("subscriberbot.nav.relationships", "Relationships"),
|
|
31
|
+
path: S(y, "relationships"),
|
|
32
|
+
icon: /* @__PURE__ */ m(f, { size: 20 }),
|
|
33
|
+
order: 2,
|
|
34
|
+
group: "subscriberbot"
|
|
35
35
|
},
|
|
36
36
|
{
|
|
37
|
-
id: "subscriberbot-
|
|
38
|
-
label:
|
|
39
|
-
path:
|
|
40
|
-
icon: /* @__PURE__ */
|
|
41
|
-
order:
|
|
42
|
-
group: "
|
|
37
|
+
id: "subscriberbot-providers",
|
|
38
|
+
label: x("subscriberbot.nav.providers", "Providers"),
|
|
39
|
+
path: S(y, "providers"),
|
|
40
|
+
icon: /* @__PURE__ */ m(c, { size: 20 }),
|
|
41
|
+
order: 3,
|
|
42
|
+
group: "subscriberbot"
|
|
43
43
|
},
|
|
44
44
|
{
|
|
45
|
-
id: "subscriberbot-
|
|
46
|
-
label:
|
|
47
|
-
path:
|
|
48
|
-
icon: /* @__PURE__ */
|
|
49
|
-
order:
|
|
50
|
-
group: "
|
|
45
|
+
id: "subscriberbot-inbox",
|
|
46
|
+
label: x("subscriberbot.nav.inbox", "Universal Inbox"),
|
|
47
|
+
path: S(y, "inbox"),
|
|
48
|
+
icon: /* @__PURE__ */ m(l, { size: 20 }),
|
|
49
|
+
order: 4,
|
|
50
|
+
group: "subscriberbot"
|
|
51
51
|
},
|
|
52
52
|
{
|
|
53
|
-
id: "subscriberbot-
|
|
54
|
-
label:
|
|
55
|
-
path:
|
|
56
|
-
icon: /* @__PURE__ */
|
|
57
|
-
order:
|
|
58
|
-
group: "
|
|
53
|
+
id: "subscriberbot-invoices",
|
|
54
|
+
label: x("subscriberbot.nav.invoices", "Invoices"),
|
|
55
|
+
path: S(y, "invoices"),
|
|
56
|
+
icon: /* @__PURE__ */ m(d, { size: 20 }),
|
|
57
|
+
order: 5,
|
|
58
|
+
group: "subscriberbot"
|
|
59
59
|
},
|
|
60
60
|
{
|
|
61
|
-
id: "subscriberbot-
|
|
62
|
-
label:
|
|
63
|
-
path:
|
|
64
|
-
icon: /* @__PURE__ */
|
|
65
|
-
order:
|
|
66
|
-
group: "
|
|
61
|
+
id: "subscriberbot-agents",
|
|
62
|
+
label: x("subscriberbot.nav.agents", "AI Agents"),
|
|
63
|
+
path: S(y, "agents"),
|
|
64
|
+
icon: /* @__PURE__ */ m(s, { size: 20 }),
|
|
65
|
+
order: 6,
|
|
66
|
+
group: "subscriberbot"
|
|
67
67
|
},
|
|
68
68
|
{
|
|
69
|
-
id: "subscriberbot-
|
|
70
|
-
label:
|
|
71
|
-
path:
|
|
72
|
-
icon: /* @__PURE__ */
|
|
73
|
-
order:
|
|
74
|
-
group: "
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
id: "subscriberbot-tasks",
|
|
78
|
-
label: A("subscriberbot.nav.myTasks", "My Tasks"),
|
|
79
|
-
path: j(O, "worker/dashboard"),
|
|
80
|
-
icon: /* @__PURE__ */ C(c, { size: 20 }),
|
|
81
|
-
order: 30,
|
|
82
|
-
group: "worker"
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
id: "subscriberbot-investments",
|
|
86
|
-
label: A("subscriberbot.nav.investments", "Investments"),
|
|
87
|
-
path: j(O, "investor/dashboard"),
|
|
88
|
-
icon: /* @__PURE__ */ C(b, { size: 20 }),
|
|
89
|
-
order: 40,
|
|
90
|
-
group: "investor"
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
id: "subscriberbot-portfolio",
|
|
94
|
-
label: A("subscriberbot.nav.portfolio", "Portfolio"),
|
|
95
|
-
path: j(O, "investor/portfolio"),
|
|
96
|
-
icon: /* @__PURE__ */ C(m, { size: 20 }),
|
|
97
|
-
order: 41,
|
|
98
|
-
group: "investor"
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
id: "subscriberbot-opportunities",
|
|
102
|
-
label: A("subscriberbot.nav.opportunities", "Opportunities"),
|
|
103
|
-
path: j(O, "investor/opportunities"),
|
|
104
|
-
icon: /* @__PURE__ */ C(f, { size: 20 }),
|
|
105
|
-
order: 42,
|
|
106
|
-
group: "investor"
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
id: "subscriberbot-admin",
|
|
110
|
-
label: A("subscriberbot.nav.adminPanel", "Admin Panel"),
|
|
111
|
-
path: j(O, "admin/dashboard"),
|
|
112
|
-
icon: /* @__PURE__ */ C(g, { size: 20 }),
|
|
113
|
-
order: 50,
|
|
114
|
-
group: "admin"
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
id: "subscriberbot-users",
|
|
118
|
-
label: A("subscriberbot.nav.users", "Users"),
|
|
119
|
-
path: j(O, "admin/users"),
|
|
120
|
-
icon: /* @__PURE__ */ C(x, { size: 20 }),
|
|
121
|
-
order: 51,
|
|
122
|
-
group: "admin"
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
id: "subscriberbot-analytics",
|
|
126
|
-
label: A("subscriberbot.nav.analytics", "Analytics"),
|
|
127
|
-
path: j(O, "admin/analytics"),
|
|
128
|
-
icon: /* @__PURE__ */ C(s, { size: 20 }),
|
|
129
|
-
order: 52,
|
|
130
|
-
group: "admin"
|
|
131
|
-
},
|
|
132
|
-
{
|
|
133
|
-
id: "subscriberbot-financial",
|
|
134
|
-
label: A("subscriberbot.nav.financial", "Financial"),
|
|
135
|
-
path: j(O, "admin/financial"),
|
|
136
|
-
icon: /* @__PURE__ */ C(S, { size: 20 }),
|
|
137
|
-
order: 53,
|
|
138
|
-
group: "admin"
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
id: "subscriberbot-settings",
|
|
142
|
-
label: A("subscriberbot.nav.settings", "Settings"),
|
|
143
|
-
path: j(O, "settings"),
|
|
144
|
-
icon: /* @__PURE__ */ C(l, { size: 20 }),
|
|
145
|
-
order: 100,
|
|
146
|
-
group: "system"
|
|
69
|
+
id: "subscriberbot-workflows",
|
|
70
|
+
label: x("subscriberbot.nav.workflows", "Workflows"),
|
|
71
|
+
path: S(y, "workflows"),
|
|
72
|
+
icon: /* @__PURE__ */ m(p, { size: 20 }),
|
|
73
|
+
order: 7,
|
|
74
|
+
group: "subscriberbot"
|
|
147
75
|
}
|
|
148
76
|
]);
|
|
149
77
|
}, [
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
78
|
+
_,
|
|
79
|
+
y,
|
|
80
|
+
x
|
|
153
81
|
]), r(() => {
|
|
154
|
-
if (
|
|
82
|
+
if (v) return v([{
|
|
155
83
|
id: "subscriberbot-status",
|
|
156
|
-
label:
|
|
84
|
+
label: x("subscriberbot.footer.ready", "SubscriberBot Ready"),
|
|
157
85
|
type: "status",
|
|
158
86
|
order: 10,
|
|
159
87
|
section: "left"
|
|
160
88
|
}]);
|
|
161
|
-
}, [
|
|
162
|
-
client:
|
|
163
|
-
children: /* @__PURE__ */
|
|
89
|
+
}, [v, x]), /* @__PURE__ */ m(a, {
|
|
90
|
+
client: g,
|
|
91
|
+
children: /* @__PURE__ */ m(h, {
|
|
164
92
|
workspaceId: null,
|
|
165
93
|
gateway: "global",
|
|
166
94
|
defaultEnabled: !0,
|
|
167
|
-
children: /* @__PURE__ */
|
|
95
|
+
children: /* @__PURE__ */ m(e, {
|
|
168
96
|
...i,
|
|
169
|
-
children: /* @__PURE__ */
|
|
97
|
+
children: /* @__PURE__ */ m(t, {})
|
|
170
98
|
})
|
|
171
99
|
})
|
|
172
100
|
});
|
|
173
101
|
};
|
|
174
102
|
//#endregion
|
|
175
|
-
export {
|
|
103
|
+
export { _ as SubscriberBotRoot };
|
|
176
104
|
|
|
177
105
|
//# sourceMappingURL=SubscriberBotRoot.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SubscriberBotRoot.js","names":[],"sources":["../../src/subscriberbot/SubscriberBotRoot.tsx"],"sourcesContent":["/**\n * SubscriberBot Root Component\n * @module subscriberbot\n */\n\nimport type { FC } from 'react';\nimport { useCallback, useEffect } from 'react';\nimport { QueryClient, QueryClientProvider } from '@tanstack/react-query';\nimport { useI18n } from '@burdenoff/fe-libs/shared/providers/shell/I18nProvider';\nimport {\n Home,\n Search,\n ShoppingBag,\n Heart,\n Store,\n Package,\n ClipboardList,\n TrendingUp,\n PieChart,\n BarChart3,\n Settings,\n Users,\n ShoppingCart,\n LineChart,\n Wallet,\n FileText,\n} from 'lucide-react';\nimport { SubscriberBotProvider } from './context/SubscriberBotContext';\nimport { FeatureFlagProvider } from '@burdenoff/fe-libs/shared/feature-flags';\nimport { SubscriberBotRoutes } from './SubscriberBotRoutes';\nimport type { SubscriberBotRootProps, NavItem } from './types';\n\n// Create a query client for this microfrontend\nconst queryClient = new QueryClient({\n defaultOptions: {\n queries: {\n staleTime: 5 * 60 * 1000,\n retry: 1,\n },\n },\n});\n\nexport const SubscriberBotRoot: FC<SubscriberBotRootProps> = (props) => {\n const { registerNavItems, registerFooterItems, basePath = '/' } = props;\n const { t: translate } = useI18n();\n const t = useCallback(\n (key: string, fallback: string): string => {\n const value = translate(key);\n return value === key ? fallback : value;\n },\n [translate]\n );\n\n // Helper to join paths correctly\n const joinPath = (base: string, path: string): string => {\n const cleanBase = base.endsWith('/') ? base.slice(0, -1) : base;\n const cleanPath = path.startsWith('/') ? path : `/${path}`;\n return cleanBase + cleanPath;\n };\n\n // Register navigation items with shell on mount\n useEffect(() => {\n if (!registerNavItems) return;\n\n const navItems: NavItem[] = [\n // Main\n {\n id: 'subscriberbot-home',\n label: t('subscriberbot.nav.home', 'Home'),\n path: joinPath(basePath, ''),\n icon: <Home size={20} />,\n order: 1,\n group: 'main',\n },\n\n // Customer Section\n {\n id: 'subscriberbot-discover',\n label: t('subscriberbot.nav.discover', 'Discover'),\n path: joinPath(basePath, 'customer/discover'),\n icon: <Search size={20} />,\n order: 10,\n group: 'customer',\n },\n {\n id: 'subscriberbot-orders',\n label: t('subscriberbot.nav.myOrders', 'My Orders'),\n path: joinPath(basePath, 'customer/orders'),\n icon: <ShoppingBag size={20} />,\n order: 11,\n group: 'customer',\n },\n {\n id: 'subscriberbot-favorites',\n label: t('subscriberbot.nav.favorites', 'Favorites'),\n path: joinPath(basePath, 'customer/favorites'),\n icon: <Heart size={20} />,\n order: 12,\n group: 'customer',\n },\n\n // Cart Owner Section\n {\n id: 'subscriberbot-my-cart',\n label: t('subscriberbot.nav.myCart', 'My Cart'),\n path: joinPath(basePath, 'cart-owner/dashboard'),\n icon: <Store size={20} />,\n order: 20,\n group: 'cart-owner',\n },\n {\n id: 'subscriberbot-inventory',\n label: t('subscriberbot.nav.inventory', 'Inventory'),\n path: joinPath(basePath, 'cart-owner/inventory'),\n icon: <Package size={20} />,\n order: 21,\n group: 'cart-owner',\n },\n {\n id: 'subscriberbot-cart-orders',\n label: t('subscriberbot.nav.cartOrders', 'Cart Orders'),\n path: joinPath(basePath, 'cart-owner/orders'),\n icon: <ShoppingCart size={20} />,\n order: 22,\n group: 'cart-owner',\n },\n\n // Worker Section\n {\n id: 'subscriberbot-tasks',\n label: t('subscriberbot.nav.myTasks', 'My Tasks'),\n path: joinPath(basePath, 'worker/dashboard'),\n icon: <ClipboardList size={20} />,\n order: 30,\n group: 'worker',\n },\n\n // Investor Section\n {\n id: 'subscriberbot-investments',\n label: t('subscriberbot.nav.investments', 'Investments'),\n path: joinPath(basePath, 'investor/dashboard'),\n icon: <TrendingUp size={20} />,\n order: 40,\n group: 'investor',\n },\n {\n id: 'subscriberbot-portfolio',\n label: t('subscriberbot.nav.portfolio', 'Portfolio'),\n path: joinPath(basePath, 'investor/portfolio'),\n icon: <PieChart size={20} />,\n order: 41,\n group: 'investor',\n },\n {\n id: 'subscriberbot-opportunities',\n label: t('subscriberbot.nav.opportunities', 'Opportunities'),\n path: joinPath(basePath, 'investor/opportunities'),\n icon: <LineChart size={20} />,\n order: 42,\n group: 'investor',\n },\n\n // Admin Section\n {\n id: 'subscriberbot-admin',\n label: t('subscriberbot.nav.adminPanel', 'Admin Panel'),\n path: joinPath(basePath, 'admin/dashboard'),\n icon: <Settings size={20} />,\n order: 50,\n group: 'admin',\n },\n {\n id: 'subscriberbot-users',\n label: t('subscriberbot.nav.users', 'Users'),\n path: joinPath(basePath, 'admin/users'),\n icon: <Users size={20} />,\n order: 51,\n group: 'admin',\n },\n {\n id: 'subscriberbot-analytics',\n label: t('subscriberbot.nav.analytics', 'Analytics'),\n path: joinPath(basePath, 'admin/analytics'),\n icon: <BarChart3 size={20} />,\n order: 52,\n group: 'admin',\n },\n {\n id: 'subscriberbot-financial',\n label: t('subscriberbot.nav.financial', 'Financial'),\n path: joinPath(basePath, 'admin/financial'),\n icon: <Wallet size={20} />,\n order: 53,\n group: 'admin',\n },\n\n // System\n {\n id: 'subscriberbot-settings',\n label: t('subscriberbot.nav.settings', 'Settings'),\n path: joinPath(basePath, 'settings'),\n icon: <FileText size={20} />,\n order: 100,\n group: 'system',\n },\n ];\n\n const cleanup = registerNavItems(navItems);\n return cleanup;\n }, [registerNavItems, basePath, t]);\n\n // Register footer items\n useEffect(() => {\n if (!registerFooterItems) return;\n\n const footerItems = [\n {\n id: 'subscriberbot-status',\n label: t('subscriberbot.footer.ready', 'SubscriberBot Ready'),\n type: 'status' as const,\n order: 10,\n section: 'left' as const,\n },\n ];\n\n const cleanup = registerFooterItems(footerItems);\n return cleanup;\n }, [registerFooterItems, t]);\n\n return (\n <QueryClientProvider client={queryClient}>\n <FeatureFlagProvider workspaceId={null} gateway=\"global\" defaultEnabled={true}>\n <SubscriberBotProvider {...props}>\n <SubscriberBotRoutes />\n </SubscriberBotProvider>\n </FeatureFlagProvider>\n </QueryClientProvider>\n );\n};\n"],"mappings":";;;;;;;;;AAiCA,IAAM,IAAc,IAAI,EAAY,EAClC,gBAAgB,EACd,SAAS;CACP,WAAW,MAAS;CACpB,OAAO;CACR,EACF,EACF,CAAC,EAEW,KAAiD,MAAU;CACtE,IAAM,EAAE,qBAAkB,wBAAqB,cAAW,QAAQ,GAC5D,EAAE,GAAG,MAAc,GAAS,EAC5B,IAAI,GACP,GAAa,MAA6B;EACzC,IAAM,IAAQ,EAAU,EAAI;AAC5B,SAAO,MAAU,IAAM,IAAW;IAEpC,CAAC,EAAU,CACZ,EAGK,KAAY,GAAc,OACZ,EAAK,SAAS,IAAI,GAAG,EAAK,MAAM,GAAG,GAAG,GAAG,MACzC,EAAK,WAAW,IAAI,GAAG,IAAO,IAAI;AA8KtD,QAzKA,QAAgB;AACT,QAmJL,QADgB,EAhJY;GAE1B;IACE,IAAI;IACJ,OAAO,EAAE,0BAA0B,OAAO;IAC1C,MAAM,EAAS,G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5B,OAAO;IACP,OAAO;IACR;GACF,CAEyC;IAEzC;EAAC;EAAkB;EAAU;EAAE,CAAC,EAGnC,QAAgB;AACT,QAaL,QADgB,EAVI,CAClB;GACE,IAAI;GACJ,OAAO,EAAE,8BAA8B,sBAAsB;GAC7D,MAAM;GACN,OAAO;GACP,SAAS;GACV,CACF,CAE+C;IAE/C,CAAC,GAAqB,EAAE,CAAC,EAG1B,kBAAC,GAAD;EAAqB,QAAQ;YAC3B,kBAAC,GAAD;GAAqB,aAAa;GAAM,SAAQ;GAAS,gBAAgB;aACvE,kBAAC,GAAD;IAAuB,GAAI;cACzB,kBAAC,GAAD,EAAuB,CAAA;IACD,CAAA;GACJ,CAAA;EACF,CAAA"}
|
|
1
|
+
{"version":3,"file":"SubscriberBotRoot.js","names":[],"sources":["../../src/subscriberbot/SubscriberBotRoot.tsx"],"sourcesContent":["/**\n * SubscriberBot Root Component\n * @module subscriberbot\n */\n\nimport type { FC } from 'react';\nimport { useCallback, useEffect } from 'react';\nimport { QueryClient, QueryClientProvider } from '@tanstack/react-query';\nimport { useI18n } from '@burdenoff/fe-libs/shared/providers/shell/I18nProvider';\nimport {\n LayoutDashboard,\n Repeat2,\n Building2,\n Inbox,\n Receipt,\n Bot,\n Workflow,\n} from 'lucide-react';\nimport { SubscriberBotProvider } from './context/SubscriberBotContext';\nimport { FeatureFlagProvider } from '@burdenoff/fe-libs/shared/feature-flags';\nimport { SubscriberBotRoutes } from './SubscriberBotRoutes';\nimport type { SubscriberBotRootProps, NavItem } from './types';\n\n// Create a query client for this microfrontend\nconst queryClient = new QueryClient({\n defaultOptions: {\n queries: {\n staleTime: 5 * 60 * 1000,\n retry: 1,\n },\n },\n});\n\nexport const SubscriberBotRoot: FC<SubscriberBotRootProps> = (props) => {\n const { registerNavItems, registerFooterItems, basePath = '/' } = props;\n const { t: translate } = useI18n();\n const t = useCallback(\n (key: string, fallback: string): string => {\n const value = translate(key);\n return value === key ? fallback : value;\n },\n [translate]\n );\n\n // Helper to join paths correctly\n const joinPath = (base: string, path: string): string => {\n const cleanBase = base.endsWith('/') ? base.slice(0, -1) : base;\n const cleanPath = path.startsWith('/') ? path : `/${path}`;\n return cleanBase + cleanPath;\n };\n\n // Register navigation items with shell on mount\n useEffect(() => {\n if (!registerNavItems) return;\n\n const navItems: NavItem[] = [\n {\n id: 'subscriberbot-overview',\n label: t('subscriberbot.nav.overview', 'Overview'),\n path: joinPath(basePath, ''),\n icon: <LayoutDashboard size={20} />,\n order: 1,\n group: 'subscriberbot',\n },\n {\n id: 'subscriberbot-relationships',\n label: t('subscriberbot.nav.relationships', 'Relationships'),\n path: joinPath(basePath, 'relationships'),\n icon: <Repeat2 size={20} />,\n order: 2,\n group: 'subscriberbot',\n },\n {\n id: 'subscriberbot-providers',\n label: t('subscriberbot.nav.providers', 'Providers'),\n path: joinPath(basePath, 'providers'),\n icon: <Building2 size={20} />,\n order: 3,\n group: 'subscriberbot',\n },\n {\n id: 'subscriberbot-inbox',\n label: t('subscriberbot.nav.inbox', 'Universal Inbox'),\n path: joinPath(basePath, 'inbox'),\n icon: <Inbox size={20} />,\n order: 4,\n group: 'subscriberbot',\n },\n {\n id: 'subscriberbot-invoices',\n label: t('subscriberbot.nav.invoices', 'Invoices'),\n path: joinPath(basePath, 'invoices'),\n icon: <Receipt size={20} />,\n order: 5,\n group: 'subscriberbot',\n },\n {\n id: 'subscriberbot-agents',\n label: t('subscriberbot.nav.agents', 'AI Agents'),\n path: joinPath(basePath, 'agents'),\n icon: <Bot size={20} />,\n order: 6,\n group: 'subscriberbot',\n },\n {\n id: 'subscriberbot-workflows',\n label: t('subscriberbot.nav.workflows', 'Workflows'),\n path: joinPath(basePath, 'workflows'),\n icon: <Workflow size={20} />,\n order: 7,\n group: 'subscriberbot',\n },\n ];\n\n const cleanup = registerNavItems(navItems);\n return cleanup;\n }, [registerNavItems, basePath, t]);\n\n // Register footer items\n useEffect(() => {\n if (!registerFooterItems) return;\n\n const footerItems = [\n {\n id: 'subscriberbot-status',\n label: t('subscriberbot.footer.ready', 'SubscriberBot Ready'),\n type: 'status' as const,\n order: 10,\n section: 'left' as const,\n },\n ];\n\n const cleanup = registerFooterItems(footerItems);\n return cleanup;\n }, [registerFooterItems, t]);\n\n return (\n <QueryClientProvider client={queryClient}>\n <FeatureFlagProvider workspaceId={null} gateway=\"global\" defaultEnabled={true}>\n <SubscriberBotProvider {...props}>\n <SubscriberBotRoutes />\n </SubscriberBotProvider>\n </FeatureFlagProvider>\n </QueryClientProvider>\n );\n};\n"],"mappings":";;;;;;;;;AAwBA,IAAM,IAAc,IAAI,EAAY,EAClC,gBAAgB,EACd,SAAS;CACP,WAAW,MAAS;CACpB,OAAO;CACR,EACF,EACF,CAAC,EAEW,KAAiD,MAAU;CACtE,IAAM,EAAE,qBAAkB,wBAAqB,cAAW,QAAQ,GAC5D,EAAE,GAAG,MAAc,GAAS,EAC5B,IAAI,GACP,GAAa,MAA6B;EACzC,IAAM,IAAQ,EAAU,EAAI;AAC5B,SAAO,MAAU,IAAM,IAAW;IAEpC,CAAC,EAAU,CACZ,EAGK,KAAY,GAAc,OACZ,EAAK,SAAS,IAAI,GAAG,EAAK,MAAM,GAAG,GAAG,GAAG,MACzC,EAAK,WAAW,IAAI,GAAG,IAAO,IAAI;AAyFtD,QApFA,QAAgB;AACT,QA8DL,QADgB,EA3DY;GAC1B;IACE,IAAI;IACJ,OAAO,EAAE,8BAA8B,WAAW;IAClD,MAAM,EAAS,GAAU,GAAG;IAC5B,MAAM,kBAAC,GAAD,EAAiB,MAAM,IAAM,CAAA;IACnC,OAAO;IACP,OAAO;IACR;GACD;IACE,IAAI;IACJ,OAAO,EAAE,mCAAmC,gBAAgB;IAC5D,MAAM,EAAS,GAAU,gBAAgB;IACzC,MAAM,kBAAC,GAAD,EAAS,MAAM,IAAM,CAAA;IAC3B,OAAO;IACP,OAAO;IACR;GACD;IACE,IAAI;IACJ,OAAO,EAAE,+BAA+B,YAAY;IACpD,MAAM,EAAS,GAAU,YAAY;IACr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ardPage as t } from "./pages/DashboardPage.js";
|
|
3
3
|
import { Suspense as n, lazy as r } from "react";
|
|
4
|
-
import { Navigate as
|
|
5
|
-
import { jsx as
|
|
4
|
+
import { Navigate as i, Route as a, Routes as o, useLocation as s } from "react-router-dom";
|
|
5
|
+
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
6
|
+
import { Spinner as u } from "@burdenoff/fe-libs/ui";
|
|
6
7
|
//#region src/subscriberbot/SubscriberBotRoutes.tsx
|
|
7
|
-
var
|
|
8
|
-
className: "flex items-center justify-center
|
|
9
|
-
children: /* @__PURE__ */
|
|
10
|
-
}),
|
|
11
|
-
let { basePath: r, isStandalone:
|
|
12
|
-
return
|
|
13
|
-
className: "flex
|
|
14
|
-
children: /* @__PURE__ */
|
|
15
|
-
fallback: /* @__PURE__ */
|
|
16
|
-
children: /* @__PURE__ */
|
|
17
|
-
/* @__PURE__ */
|
|
8
|
+
var d = r(() => import("./pages/relationships/RelationshipsListPage.js").then((e) => ({ default: e.RelationshipsListPage }))), f = r(() => import("./pages/relationships/RelationshipNewPage.js").then((e) => ({ default: e.RelationshipNewPage }))), p = r(() => import("./pages/relationships/RelationshipDetailPage.js").then((e) => ({ default: e.RelationshipDetailPage }))), m = r(() => import("./pages/providers/ProvidersListPage.js").then((e) => ({ default: e.ProvidersListPage }))), h = r(() => import("./pages/providers/ProviderNewPage.js").then((e) => ({ default: e.ProviderNewPage }))), g = r(() => import("./pages/providers/ProviderDetailPage.js").then((e) => ({ default: e.ProviderDetailPage }))), _ = r(() => import("./pages/InboxPage.js").then((e) => ({ default: e.InboxPage }))), v = r(() => import("./pages/InvoicesPage.js").then((e) => ({ default: e.InvoicesPage }))), y = r(() => import("./pages/WorkflowsPage.js").then((e) => ({ default: e.WorkflowsPage }))), b = r(() => import("./pages/agents/AgentsListPage.js").then((e) => ({ default: e.AgentsListPage }))), x = r(() => import("./pages/agents/AgentNewPage.js").then((e) => ({ default: e.AgentNewPage }))), S = r(() => import("./pages/agents/AgentDetailPage.js").then((e) => ({ default: e.AgentDetailPage }))), C = () => /* @__PURE__ */ c("div", {
|
|
9
|
+
className: "flex min-h-[400px] items-center justify-center",
|
|
10
|
+
children: /* @__PURE__ */ c(u, { size: "lg" })
|
|
11
|
+
}), w = () => {
|
|
12
|
+
let { basePath: r, isStandalone: u } = e(), w = s(), T = r === "/" ? "" : (r ?? "").replace(/\/$/, "");
|
|
13
|
+
return T && !u && !(w.pathname === T || w.pathname.startsWith(T + "/")) ? null : /* @__PURE__ */ c("div", {
|
|
14
|
+
className: "flex min-h-full flex-col",
|
|
15
|
+
children: /* @__PURE__ */ c(n, {
|
|
16
|
+
fallback: /* @__PURE__ */ c(C, {}),
|
|
17
|
+
children: /* @__PURE__ */ l(o, { children: [
|
|
18
|
+
/* @__PURE__ */ c(a, {
|
|
18
19
|
index: !0,
|
|
19
|
-
element: /* @__PURE__ */
|
|
20
|
+
element: /* @__PURE__ */ c(t, {})
|
|
20
21
|
}),
|
|
21
|
-
/* @__PURE__ */
|
|
22
|
-
path: "
|
|
23
|
-
element: /* @__PURE__ */
|
|
22
|
+
/* @__PURE__ */ c(a, {
|
|
23
|
+
path: "relationships",
|
|
24
|
+
element: /* @__PURE__ */ c(d, {})
|
|
24
25
|
}),
|
|
25
|
-
/* @__PURE__ */
|
|
26
|
-
path: "
|
|
27
|
-
element: /* @__PURE__ */
|
|
26
|
+
/* @__PURE__ */ c(a, {
|
|
27
|
+
path: "relationships/new",
|
|
28
|
+
element: /* @__PURE__ */ c(f, {})
|
|
28
29
|
}),
|
|
29
|
-
/* @__PURE__ */
|
|
30
|
-
path: "
|
|
31
|
-
element: /* @__PURE__ */
|
|
30
|
+
/* @__PURE__ */ c(a, {
|
|
31
|
+
path: "relationships/:id",
|
|
32
|
+
element: /* @__PURE__ */ c(p, {})
|
|
32
33
|
}),
|
|
33
|
-
/* @__PURE__ */
|
|
34
|
-
path: "
|
|
35
|
-
element: /* @__PURE__ */
|
|
34
|
+
/* @__PURE__ */ c(a, {
|
|
35
|
+
path: "providers",
|
|
36
|
+
element: /* @__PURE__ */ c(m, {})
|
|
36
37
|
}),
|
|
37
|
-
/* @__PURE__ */
|
|
38
|
-
path: "
|
|
39
|
-
element: /* @__PURE__ */
|
|
38
|
+
/* @__PURE__ */ c(a, {
|
|
39
|
+
path: "providers/new",
|
|
40
|
+
element: /* @__PURE__ */ c(h, {})
|
|
40
41
|
}),
|
|
41
|
-
/* @__PURE__ */
|
|
42
|
-
path: "
|
|
43
|
-
element: /* @__PURE__ */
|
|
42
|
+
/* @__PURE__ */ c(a, {
|
|
43
|
+
path: "providers/:id",
|
|
44
|
+
element: /* @__PURE__ */ c(g, {})
|
|
44
45
|
}),
|
|
45
|
-
/* @__PURE__ */
|
|
46
|
-
path: "
|
|
47
|
-
element: /* @__PURE__ */
|
|
46
|
+
/* @__PURE__ */ c(a, {
|
|
47
|
+
path: "inbox",
|
|
48
|
+
element: /* @__PURE__ */ c(_, {})
|
|
48
49
|
}),
|
|
49
|
-
/* @__PURE__ */
|
|
50
|
-
path: "
|
|
51
|
-
element: /* @__PURE__ */
|
|
50
|
+
/* @__PURE__ */ c(a, {
|
|
51
|
+
path: "invoices",
|
|
52
|
+
element: /* @__PURE__ */ c(v, {})
|
|
52
53
|
}),
|
|
53
|
-
/* @__PURE__ */
|
|
54
|
-
path: "
|
|
55
|
-
element: /* @__PURE__ */
|
|
54
|
+
/* @__PURE__ */ c(a, {
|
|
55
|
+
path: "agents",
|
|
56
|
+
element: /* @__PURE__ */ c(b, {})
|
|
56
57
|
}),
|
|
57
|
-
/* @__PURE__ */
|
|
58
|
-
path: "
|
|
59
|
-
element: /* @__PURE__ */
|
|
58
|
+
/* @__PURE__ */ c(a, {
|
|
59
|
+
path: "agents/new",
|
|
60
|
+
element: /* @__PURE__ */ c(x, {})
|
|
60
61
|
}),
|
|
61
|
-
/* @__PURE__ */
|
|
62
|
-
path: "
|
|
63
|
-
element: /* @__PURE__ */
|
|
62
|
+
/* @__PURE__ */ c(a, {
|
|
63
|
+
path: "agents/:id",
|
|
64
|
+
element: /* @__PURE__ */ c(S, {})
|
|
64
65
|
}),
|
|
65
|
-
/* @__PURE__ */
|
|
66
|
-
path: "
|
|
67
|
-
element: /* @__PURE__ */
|
|
66
|
+
/* @__PURE__ */ c(a, {
|
|
67
|
+
path: "workflows",
|
|
68
|
+
element: /* @__PURE__ */ c(y, {})
|
|
68
69
|
}),
|
|
69
|
-
/* @__PURE__ */
|
|
70
|
-
path: "customer/booking/:bookingId",
|
|
71
|
-
element: /* @__PURE__ */ o(y, {})
|
|
72
|
-
}),
|
|
73
|
-
/* @__PURE__ */ o(i, {
|
|
74
|
-
path: "cart-owner/dashboard",
|
|
75
|
-
element: /* @__PURE__ */ o(b, {})
|
|
76
|
-
}),
|
|
77
|
-
/* @__PURE__ */ o(i, {
|
|
78
|
-
path: "cart-owner/service-config",
|
|
79
|
-
element: /* @__PURE__ */ o(x, {})
|
|
80
|
-
}),
|
|
81
|
-
/* @__PURE__ */ o(i, {
|
|
82
|
-
path: "cart-owner/inventory",
|
|
83
|
-
element: /* @__PURE__ */ o(S, {})
|
|
84
|
-
}),
|
|
85
|
-
/* @__PURE__ */ o(i, {
|
|
86
|
-
path: "cart-owner/orders",
|
|
87
|
-
element: /* @__PURE__ */ o(C, {})
|
|
88
|
-
}),
|
|
89
|
-
/* @__PURE__ */ o(i, {
|
|
90
|
-
path: "cart-owner/analytics",
|
|
91
|
-
element: /* @__PURE__ */ o(w, {})
|
|
92
|
-
}),
|
|
93
|
-
/* @__PURE__ */ o(i, {
|
|
94
|
-
path: "cart-owner/staff",
|
|
95
|
-
element: /* @__PURE__ */ o(T, {})
|
|
96
|
-
}),
|
|
97
|
-
/* @__PURE__ */ o(i, {
|
|
98
|
-
path: "cart-owner/settings",
|
|
99
|
-
element: /* @__PURE__ */ o(E, {})
|
|
100
|
-
}),
|
|
101
|
-
/* @__PURE__ */ o(i, {
|
|
102
|
-
path: "cart-owner/profile",
|
|
103
|
-
element: /* @__PURE__ */ o(D, {})
|
|
104
|
-
}),
|
|
105
|
-
/* @__PURE__ */ o(i, {
|
|
106
|
-
path: "worker/dashboard",
|
|
107
|
-
element: /* @__PURE__ */ o(O, {})
|
|
108
|
-
}),
|
|
109
|
-
/* @__PURE__ */ o(i, {
|
|
110
|
-
path: "worker/orders",
|
|
111
|
-
element: /* @__PURE__ */ o(k, {})
|
|
112
|
-
}),
|
|
113
|
-
/* @__PURE__ */ o(i, {
|
|
114
|
-
path: "worker/schedule",
|
|
115
|
-
element: /* @__PURE__ */ o(re, {})
|
|
116
|
-
}),
|
|
117
|
-
/* @__PURE__ */ o(i, {
|
|
118
|
-
path: "worker/profile",
|
|
119
|
-
element: /* @__PURE__ */ o(A, {})
|
|
120
|
-
}),
|
|
121
|
-
/* @__PURE__ */ o(i, {
|
|
122
|
-
path: "worker/task/:taskId",
|
|
123
|
-
element: /* @__PURE__ */ o(j, {})
|
|
124
|
-
}),
|
|
125
|
-
/* @__PURE__ */ o(i, {
|
|
126
|
-
path: "investor/dashboard",
|
|
127
|
-
element: /* @__PURE__ */ o(M, {})
|
|
128
|
-
}),
|
|
129
|
-
/* @__PURE__ */ o(i, {
|
|
130
|
-
path: "investor/portfolio",
|
|
131
|
-
element: /* @__PURE__ */ o(N, {})
|
|
132
|
-
}),
|
|
133
|
-
/* @__PURE__ */ o(i, {
|
|
134
|
-
path: "investor/opportunities",
|
|
135
|
-
element: /* @__PURE__ */ o(P, {})
|
|
136
|
-
}),
|
|
137
|
-
/* @__PURE__ */ o(i, {
|
|
138
|
-
path: "investor/opportunity/:id",
|
|
139
|
-
element: /* @__PURE__ */ o(F, {})
|
|
140
|
-
}),
|
|
141
|
-
/* @__PURE__ */ o(i, {
|
|
142
|
-
path: "investor/investments/:id",
|
|
143
|
-
element: /* @__PURE__ */ o(F, {})
|
|
144
|
-
}),
|
|
145
|
-
/* @__PURE__ */ o(i, {
|
|
146
|
-
path: "investor/investments",
|
|
147
|
-
element: /* @__PURE__ */ o(I, {})
|
|
148
|
-
}),
|
|
149
|
-
/* @__PURE__ */ o(i, {
|
|
150
|
-
path: "investor/analytics",
|
|
151
|
-
element: /* @__PURE__ */ o(L, {})
|
|
152
|
-
}),
|
|
153
|
-
/* @__PURE__ */ o(i, {
|
|
154
|
-
path: "investor/profile",
|
|
155
|
-
element: /* @__PURE__ */ o(R, {})
|
|
156
|
-
}),
|
|
157
|
-
/* @__PURE__ */ o(i, {
|
|
158
|
-
path: "admin/dashboard",
|
|
159
|
-
element: /* @__PURE__ */ o(z, {})
|
|
160
|
-
}),
|
|
161
|
-
/* @__PURE__ */ o(i, {
|
|
162
|
-
path: "admin/users",
|
|
163
|
-
element: /* @__PURE__ */ o(B, {})
|
|
164
|
-
}),
|
|
165
|
-
/* @__PURE__ */ o(i, {
|
|
166
|
-
path: "admin/carts",
|
|
167
|
-
element: /* @__PURE__ */ o(V, {})
|
|
168
|
-
}),
|
|
169
|
-
/* @__PURE__ */ o(i, {
|
|
170
|
-
path: "admin/analytics",
|
|
171
|
-
element: /* @__PURE__ */ o(H, {})
|
|
172
|
-
}),
|
|
173
|
-
/* @__PURE__ */ o(i, {
|
|
174
|
-
path: "admin/orders",
|
|
175
|
-
element: /* @__PURE__ */ o(U, {})
|
|
176
|
-
}),
|
|
177
|
-
/* @__PURE__ */ o(i, {
|
|
178
|
-
path: "admin/profile",
|
|
179
|
-
element: /* @__PURE__ */ o(W, {})
|
|
180
|
-
}),
|
|
181
|
-
/* @__PURE__ */ o(i, {
|
|
182
|
-
path: "admin/settings",
|
|
183
|
-
element: /* @__PURE__ */ o(G, {})
|
|
184
|
-
}),
|
|
185
|
-
/* @__PURE__ */ o(i, {
|
|
186
|
-
path: "admin/financial",
|
|
187
|
-
element: /* @__PURE__ */ o(K, {})
|
|
188
|
-
}),
|
|
189
|
-
/* @__PURE__ */ o(i, {
|
|
190
|
-
path: "notifications",
|
|
191
|
-
element: /* @__PURE__ */ o(q, {})
|
|
192
|
-
}),
|
|
193
|
-
/* @__PURE__ */ o(i, {
|
|
194
|
-
path: "settings",
|
|
195
|
-
element: /* @__PURE__ */ o(J, {})
|
|
196
|
-
}),
|
|
197
|
-
/* @__PURE__ */ o(i, {
|
|
198
|
-
path: "help",
|
|
199
|
-
element: /* @__PURE__ */ o(Y, {})
|
|
200
|
-
}),
|
|
201
|
-
/* @__PURE__ */ o(i, {
|
|
70
|
+
/* @__PURE__ */ c(a, {
|
|
202
71
|
path: "*",
|
|
203
|
-
element: /* @__PURE__ */
|
|
204
|
-
to: "
|
|
72
|
+
element: /* @__PURE__ */ c(i, {
|
|
73
|
+
to: "",
|
|
205
74
|
replace: !0
|
|
206
75
|
})
|
|
207
76
|
})
|
|
@@ -210,6 +79,6 @@ var s = r(() => import("./pages/customer/CustomerDashboard.js").then((e) => ({ d
|
|
|
210
79
|
});
|
|
211
80
|
};
|
|
212
81
|
//#endregion
|
|
213
|
-
export {
|
|
82
|
+
export { w as SubscriberBotRoutes };
|
|
214
83
|
|
|
215
84
|
//# sourceMappingURL=SubscriberBotRoutes.js.map
|