@burdenoff/microfe-subscriberbot 2026.615.1 → 2026.625.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/node_modules/{.bun/clsx@2.1.1/node_modules/clsx → clsx}/dist/clsx.js +1 -1
- package/dist/node_modules/clsx/dist/clsx.js.map +1 -0
- package/dist/node_modules/{.bun/tailwind-merge@3.5.0/node_modules/tailwind-merge → tailwind-merge}/dist/bundle-mjs.js +212 -170
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -0
- package/dist/subscriberbot/components/EmptyState.js +20 -13
- package/dist/subscriberbot/components/EmptyState.js.map +1 -1
- package/dist/subscriberbot/components/InvestmentCard.js +29 -28
- package/dist/subscriberbot/components/InvestmentCard.js.map +1 -1
- package/dist/subscriberbot/components/MetricsCard.js +18 -15
- package/dist/subscriberbot/components/MetricsCard.js.map +1 -1
- package/dist/subscriberbot/components/PageLayout.js +27 -15
- package/dist/subscriberbot/components/PageLayout.js.map +1 -1
- package/dist/subscriberbot/components/RatingDisplay.js +3 -3
- package/dist/subscriberbot/components/RatingDisplay.js.map +1 -1
- package/dist/subscriberbot/components/StatusBadge.js +26 -14
- package/dist/subscriberbot/components/StatusBadge.js.map +1 -1
- package/dist/subscriberbot/context/SubscriberBotContext.js.map +1 -1
- package/dist/subscriberbot/pages/HomePage.js +109 -105
- package/dist/subscriberbot/pages/HomePage.js.map +1 -1
- package/dist/subscriberbot/pages/admin/AdminAnalyticsPage.js +87 -87
- package/dist/subscriberbot/pages/admin/AdminAnalyticsPage.js.map +1 -1
- package/dist/subscriberbot/pages/admin/AdminDashboard.js +102 -101
- package/dist/subscriberbot/pages/admin/AdminDashboard.js.map +1 -1
- package/dist/subscriberbot/pages/admin/AdminFinancialPage.js +48 -48
- package/dist/subscriberbot/pages/admin/AdminFinancialPage.js.map +1 -1
- package/dist/subscriberbot/pages/admin/AdminOrdersPage.js +96 -96
- package/dist/subscriberbot/pages/admin/AdminOrdersPage.js.map +1 -1
- package/dist/subscriberbot/pages/admin/AdminProfilePage.js +34 -34
- package/dist/subscriberbot/pages/admin/AdminProfilePage.js.map +1 -1
- package/dist/subscriberbot/pages/admin/AdminSettingsPage.js +40 -40
- package/dist/subscriberbot/pages/admin/AdminSettingsPage.js.map +1 -1
- package/dist/subscriberbot/pages/admin/CartManagementPage.js +104 -104
- package/dist/subscriberbot/pages/admin/CartManagementPage.js.map +1 -1
- package/dist/subscriberbot/pages/admin/UserManagementPage.js +99 -99
- package/dist/subscriberbot/pages/admin/UserManagementPage.js.map +1 -1
- package/dist/subscriberbot/pages/cart-owner/AnalyticsDashboard.js +117 -117
- package/dist/subscriberbot/pages/cart-owner/AnalyticsDashboard.js.map +1 -1
- package/dist/subscriberbot/pages/cart-owner/BusinessSettingsPage.js +34 -34
- package/dist/subscriberbot/pages/cart-owner/BusinessSettingsPage.js.map +1 -1
- package/dist/subscriberbot/pages/cart-owner/CartOwnerDashboard.js +158 -153
- package/dist/subscriberbot/pages/cart-owner/CartOwnerDashboard.js.map +1 -1
- package/dist/subscriberbot/pages/cart-owner/CartOwnerProfilePage.js +117 -117
- package/dist/subscriberbot/pages/cart-owner/CartOwnerProfilePage.js.map +1 -1
- package/dist/subscriberbot/pages/cart-owner/CartServiceConfigPage.js +89 -89
- package/dist/subscriberbot/pages/cart-owner/CartServiceConfigPage.js.map +1 -1
- package/dist/subscriberbot/pages/cart-owner/InventoryManagementPage.js +109 -109
- package/dist/subscriberbot/pages/cart-owner/InventoryManagementPage.js.map +1 -1
- package/dist/subscriberbot/pages/cart-owner/OrderManagementPage.js +90 -89
- package/dist/subscriberbot/pages/cart-owner/OrderManagementPage.js.map +1 -1
- package/dist/subscriberbot/pages/cart-owner/StaffManagementPage.js +97 -97
- package/dist/subscriberbot/pages/cart-owner/StaffManagementPage.js.map +1 -1
- package/dist/subscriberbot/pages/common/HelpSupportPage.js +138 -138
- package/dist/subscriberbot/pages/common/HelpSupportPage.js.map +1 -1
- package/dist/subscriberbot/pages/common/NotificationCenterPage.js +67 -66
- package/dist/subscriberbot/pages/common/NotificationCenterPage.js.map +1 -1
- package/dist/subscriberbot/pages/common/SettingsPage.js +116 -116
- package/dist/subscriberbot/pages/common/SettingsPage.js.map +1 -1
- package/dist/subscriberbot/pages/customer/BookingDetailsPage.js +73 -72
- package/dist/subscriberbot/pages/customer/BookingDetailsPage.js.map +1 -1
- package/dist/subscriberbot/pages/customer/CartDetailPage.js +89 -88
- package/dist/subscriberbot/pages/customer/CartDetailPage.js.map +1 -1
- package/dist/subscriberbot/pages/customer/CartDiscoveryPage.js +68 -66
- package/dist/subscriberbot/pages/customer/CartDiscoveryPage.js.map +1 -1
- package/dist/subscriberbot/pages/customer/CheckoutPage.js +80 -80
- package/dist/subscriberbot/pages/customer/CheckoutPage.js.map +1 -1
- package/dist/subscriberbot/pages/customer/CustomerDashboard.js +89 -88
- package/dist/subscriberbot/pages/customer/CustomerDashboard.js.map +1 -1
- package/dist/subscriberbot/pages/customer/CustomerProfilePage.js +84 -84
- package/dist/subscriberbot/pages/customer/CustomerProfilePage.js.map +1 -1
- package/dist/subscriberbot/pages/customer/DirectServiceBookingPage.js +92 -91
- package/dist/subscriberbot/pages/customer/DirectServiceBookingPage.js.map +1 -1
- package/dist/subscriberbot/pages/customer/FavoritesPage.js +34 -33
- package/dist/subscriberbot/pages/customer/FavoritesPage.js.map +1 -1
- package/dist/subscriberbot/pages/customer/OrderHistoryPage.js +45 -43
- package/dist/subscriberbot/pages/customer/OrderHistoryPage.js.map +1 -1
- package/dist/subscriberbot/pages/customer/OrderTrackingPage.js +61 -60
- package/dist/subscriberbot/pages/customer/OrderTrackingPage.js.map +1 -1
- package/dist/subscriberbot/pages/customer/PaymentMethodsPage.js +59 -58
- package/dist/subscriberbot/pages/customer/PaymentMethodsPage.js.map +1 -1
- package/dist/subscriberbot/pages/customer/ReviewsPage.js +49 -48
- package/dist/subscriberbot/pages/customer/ReviewsPage.js.map +1 -1
- package/dist/subscriberbot/pages/customer/SavedAddressesPage.js +47 -46
- package/dist/subscriberbot/pages/customer/SavedAddressesPage.js.map +1 -1
- package/dist/subscriberbot/pages/investor/InvestmentDetailsPage.js +129 -129
- package/dist/subscriberbot/pages/investor/InvestmentDetailsPage.js.map +1 -1
- package/dist/subscriberbot/pages/investor/InvestmentOpportunitiesPage.js +90 -88
- package/dist/subscriberbot/pages/investor/InvestmentOpportunitiesPage.js.map +1 -1
- package/dist/subscriberbot/pages/investor/InvestorAnalyticsPage.js +88 -88
- package/dist/subscriberbot/pages/investor/InvestorAnalyticsPage.js.map +1 -1
- package/dist/subscriberbot/pages/investor/InvestorDashboard.js +63 -62
- package/dist/subscriberbot/pages/investor/InvestorDashboard.js.map +1 -1
- package/dist/subscriberbot/pages/investor/InvestorInvestmentsPage.js +39 -38
- package/dist/subscriberbot/pages/investor/InvestorInvestmentsPage.js.map +1 -1
- package/dist/subscriberbot/pages/investor/InvestorPortfolioPage.js +66 -66
- package/dist/subscriberbot/pages/investor/InvestorPortfolioPage.js.map +1 -1
- package/dist/subscriberbot/pages/investor/InvestorProfilePage.js +154 -154
- package/dist/subscriberbot/pages/investor/InvestorProfilePage.js.map +1 -1
- package/dist/subscriberbot/pages/worker/TaskDetailsPage.js +80 -79
- package/dist/subscriberbot/pages/worker/TaskDetailsPage.js.map +1 -1
- package/dist/subscriberbot/pages/worker/WorkerDashboard.js +107 -106
- package/dist/subscriberbot/pages/worker/WorkerDashboard.js.map +1 -1
- package/dist/subscriberbot/pages/worker/WorkerOrdersPage.js +73 -72
- package/dist/subscriberbot/pages/worker/WorkerOrdersPage.js.map +1 -1
- package/dist/subscriberbot/pages/worker/WorkerProfilePage.js +108 -108
- package/dist/subscriberbot/pages/worker/WorkerProfilePage.js.map +1 -1
- package/dist/subscriberbot/pages/worker/WorkerSchedulePage.js +71 -69
- package/dist/subscriberbot/pages/worker/WorkerSchedulePage.js.map +1 -1
- package/dist/subscriberbot/utils/cn.js +2 -2
- package/package.json +3 -3
- package/dist/node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/clsx.js.map +0 -1
- package/dist/node_modules/.bun/tailwind-merge@3.5.0/node_modules/tailwind-merge/dist/bundle-mjs.js.map +0 -1
|
@@ -48,12 +48,12 @@ function E() {
|
|
|
48
48
|
avgRating: 4.5
|
|
49
49
|
}, H = (e) => {
|
|
50
50
|
switch (e) {
|
|
51
|
-
case "delivered": return "bg-
|
|
52
|
-
case "preparing": return "bg-
|
|
53
|
-
case "out_for_delivery": return "bg-
|
|
54
|
-
case "confirmed": return "bg-
|
|
55
|
-
case "cancelled": return "bg-
|
|
56
|
-
default: return "bg-
|
|
51
|
+
case "delivered": return "bg-status-success-bg/20 text-status-success-text";
|
|
52
|
+
case "preparing": return "bg-status-warning-bg/20 text-status-warning-text";
|
|
53
|
+
case "out_for_delivery": return "bg-status-info-bg/20 text-status-info-text";
|
|
54
|
+
case "confirmed": return "bg-status-info-bg/20 text-status-info-text";
|
|
55
|
+
case "cancelled": return "bg-status-error-bg/20 text-status-error-text";
|
|
56
|
+
default: return "bg-bg-sunken text-text-secondary";
|
|
57
57
|
}
|
|
58
58
|
}, U = (e) => {
|
|
59
59
|
switch (e) {
|
|
@@ -64,10 +64,10 @@ function E() {
|
|
|
64
64
|
}
|
|
65
65
|
}, W = (e) => {
|
|
66
66
|
switch (e) {
|
|
67
|
-
case "suggestion": return "bg-
|
|
68
|
-
case "opportunity": return "bg-
|
|
69
|
-
case "trend": return "bg-
|
|
70
|
-
default: return "bg-
|
|
67
|
+
case "suggestion": return "bg-status-info-bg/10 text-status-info-text border-status-info-border/20";
|
|
68
|
+
case "opportunity": return "bg-status-success-bg/10 text-status-success-text border-status-success-border/20";
|
|
69
|
+
case "trend": return "bg-status-warning-bg/10 text-status-warning-text border-status-warning-border/20";
|
|
70
|
+
default: return "bg-bg-sunken text-text-secondary border-border-seam";
|
|
71
71
|
}
|
|
72
72
|
};
|
|
73
73
|
return F ? /* @__PURE__ */ C(n, {
|
|
@@ -77,7 +77,7 @@ function E() {
|
|
|
77
77
|
children: /* @__PURE__ */ w("div", {
|
|
78
78
|
className: "text-center",
|
|
79
79
|
children: [/* @__PURE__ */ C("div", { className: "mx-auto mb-4 h-12 w-12 animate-spin rounded-full border-b-2 border-foreground" }), /* @__PURE__ */ C("p", {
|
|
80
|
-
className: "text-sm text-
|
|
80
|
+
className: "text-sm text-text-secondary",
|
|
81
81
|
children: I("subscriberbot.customerDashboard.loading", "Loading your dashboard...")
|
|
82
82
|
})]
|
|
83
83
|
})
|
|
@@ -85,69 +85,70 @@ function E() {
|
|
|
85
85
|
}) : /* @__PURE__ */ w(n, {
|
|
86
86
|
title: I("subscriberbot.customerDashboard.welcomeBack", "Welcome Back!"),
|
|
87
87
|
description: `${T()}, ${L}`,
|
|
88
|
+
titleGradient: !0,
|
|
88
89
|
children: [V && /* @__PURE__ */ w("div", {
|
|
89
90
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4",
|
|
90
91
|
children: [
|
|
91
92
|
/* @__PURE__ */ C("div", {
|
|
92
|
-
className: "rounded-lg border border-border bg-
|
|
93
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-4",
|
|
93
94
|
children: /* @__PURE__ */ w("div", {
|
|
94
95
|
className: "flex items-center gap-3",
|
|
95
96
|
children: [/* @__PURE__ */ C("div", {
|
|
96
|
-
className: "flex h-10 w-10 items-center justify-center rounded-lg bg-
|
|
97
|
-
children: /* @__PURE__ */ C(g, { className: "h-5 w-5 text-
|
|
97
|
+
className: "flex h-10 w-10 items-center justify-center rounded-lg bg-bg-sunken",
|
|
98
|
+
children: /* @__PURE__ */ C(g, { className: "h-5 w-5 text-text-secondary" })
|
|
98
99
|
}), /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
|
|
99
|
-
className: "text-2xl font-bold text-
|
|
100
|
+
className: "text-2xl font-bold text-text-primary",
|
|
100
101
|
children: V.totalOrders
|
|
101
102
|
}), /* @__PURE__ */ C("p", {
|
|
102
|
-
className: "text-xs text-
|
|
103
|
+
className: "text-xs text-text-secondary",
|
|
103
104
|
children: I("subscriberbot.customerDashboard.totalOrders", "Total Orders")
|
|
104
105
|
})] })]
|
|
105
106
|
})
|
|
106
107
|
}),
|
|
107
108
|
/* @__PURE__ */ C("div", {
|
|
108
|
-
className: "rounded-lg border border-border bg-
|
|
109
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-4",
|
|
109
110
|
children: /* @__PURE__ */ w("div", {
|
|
110
111
|
className: "flex items-center gap-3",
|
|
111
112
|
children: [/* @__PURE__ */ C("div", {
|
|
112
|
-
className: "flex h-10 w-10 items-center justify-center rounded-lg bg-
|
|
113
|
-
children: /* @__PURE__ */ C(d, { className: "h-5 w-5 text-
|
|
113
|
+
className: "flex h-10 w-10 items-center justify-center rounded-lg bg-bg-sunken",
|
|
114
|
+
children: /* @__PURE__ */ C(d, { className: "h-5 w-5 text-text-secondary" })
|
|
114
115
|
}), /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
|
|
115
|
-
className: "text-2xl font-bold text-
|
|
116
|
+
className: "text-2xl font-bold text-text-primary",
|
|
116
117
|
children: o(V.totalSpent, { minimumFractionDigits: 0 })
|
|
117
118
|
}), /* @__PURE__ */ C("p", {
|
|
118
|
-
className: "text-xs text-
|
|
119
|
+
className: "text-xs text-text-secondary",
|
|
119
120
|
children: I("subscriberbot.customerDashboard.totalSpent", "Total Spent")
|
|
120
121
|
})] })]
|
|
121
122
|
})
|
|
122
123
|
}),
|
|
123
124
|
/* @__PURE__ */ C("div", {
|
|
124
|
-
className: "rounded-lg border border-border bg-
|
|
125
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-4",
|
|
125
126
|
children: /* @__PURE__ */ w("div", {
|
|
126
127
|
className: "flex items-center gap-3",
|
|
127
128
|
children: [/* @__PURE__ */ C("div", {
|
|
128
|
-
className: "flex h-10 w-10 items-center justify-center rounded-lg bg-
|
|
129
|
-
children: /* @__PURE__ */ C(f, { className: "h-5 w-5 text-
|
|
129
|
+
className: "flex h-10 w-10 items-center justify-center rounded-lg bg-bg-sunken",
|
|
130
|
+
children: /* @__PURE__ */ C(f, { className: "h-5 w-5 text-text-secondary" })
|
|
130
131
|
}), /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
|
|
131
|
-
className: "text-2xl font-bold text-
|
|
132
|
+
className: "text-2xl font-bold text-text-primary",
|
|
132
133
|
children: V.favoriteCount
|
|
133
134
|
}), /* @__PURE__ */ C("p", {
|
|
134
|
-
className: "text-xs text-
|
|
135
|
+
className: "text-xs text-text-secondary",
|
|
135
136
|
children: I("subscriberbot.customerDashboard.favoriteCarts", "Favorite Carts")
|
|
136
137
|
})] })]
|
|
137
138
|
})
|
|
138
139
|
}),
|
|
139
140
|
/* @__PURE__ */ C("div", {
|
|
140
|
-
className: "rounded-lg border border-border bg-
|
|
141
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-4",
|
|
141
142
|
children: /* @__PURE__ */ w("div", {
|
|
142
143
|
className: "flex items-center gap-3",
|
|
143
144
|
children: [/* @__PURE__ */ C("div", {
|
|
144
|
-
className: "flex h-10 w-10 items-center justify-center rounded-lg bg-
|
|
145
|
-
children: /* @__PURE__ */ C(y, { className: "h-5 w-5 text-
|
|
145
|
+
className: "flex h-10 w-10 items-center justify-center rounded-lg bg-bg-sunken",
|
|
146
|
+
children: /* @__PURE__ */ C(y, { className: "h-5 w-5 text-text-secondary" })
|
|
146
147
|
}), /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
|
|
147
|
-
className: "text-2xl font-bold text-
|
|
148
|
+
className: "text-2xl font-bold text-text-primary",
|
|
148
149
|
children: V.avgRating.toFixed(1)
|
|
149
150
|
}), /* @__PURE__ */ C("p", {
|
|
150
|
-
className: "text-xs text-
|
|
151
|
+
className: "text-xs text-text-secondary",
|
|
151
152
|
children: I("subscriberbot.customerDashboard.avgRatingGiven", "Avg Rating Given")
|
|
152
153
|
})] })]
|
|
153
154
|
})
|
|
@@ -159,7 +160,7 @@ function E() {
|
|
|
159
160
|
className: "lg:col-span-2 space-y-8",
|
|
160
161
|
children: [
|
|
161
162
|
/* @__PURE__ */ w("section", { children: [/* @__PURE__ */ C("h2", {
|
|
162
|
-
className: "text-lg font-semibold text-
|
|
163
|
+
className: "text-lg font-semibold text-text-primary mb-4",
|
|
163
164
|
children: I("subscriberbot.customerDashboard.quickActions", "Quick Actions")
|
|
164
165
|
}), /* @__PURE__ */ w("div", {
|
|
165
166
|
className: "grid grid-cols-1 gap-3 sm:grid-cols-3",
|
|
@@ -167,17 +168,17 @@ function E() {
|
|
|
167
168
|
/* @__PURE__ */ w("button", {
|
|
168
169
|
type: "button",
|
|
169
170
|
onClick: () => E("/customer/carts"),
|
|
170
|
-
className: t("flex items-center gap-3 rounded-lg border border-border bg-
|
|
171
|
+
className: t("flex items-center gap-3 rounded-lg border border-border-seam bg-bg-surface p-4 shadow-sm transition-colors text-left", "hover:bg-accent hover:shadow-md"),
|
|
171
172
|
children: [/* @__PURE__ */ C("div", {
|
|
172
|
-
className: "flex h-10 w-10 shrink-0 items-center justify-center rounded-lg bg-
|
|
173
|
-
children: /* @__PURE__ */ C(_, { className: "h-5 w-5 text-
|
|
173
|
+
className: "flex h-10 w-10 shrink-0 items-center justify-center rounded-lg bg-status-info-bg/10",
|
|
174
|
+
children: /* @__PURE__ */ C(_, { className: "h-5 w-5 text-status-info-text" })
|
|
174
175
|
}), /* @__PURE__ */ w("div", {
|
|
175
176
|
className: "min-w-0",
|
|
176
177
|
children: [/* @__PURE__ */ C("p", {
|
|
177
|
-
className: "text-sm font-semibold text-
|
|
178
|
+
className: "text-sm font-semibold text-text-primary",
|
|
178
179
|
children: I("subscriberbot.customerDashboard.discoverCarts", "Discover Carts")
|
|
179
180
|
}), /* @__PURE__ */ C("p", {
|
|
180
|
-
className: "text-xs text-
|
|
181
|
+
className: "text-xs text-text-secondary",
|
|
181
182
|
children: I("subscriberbot.customerDashboard.findNearbyCarts", "Find nearby carts")
|
|
182
183
|
})]
|
|
183
184
|
})]
|
|
@@ -185,17 +186,17 @@ function E() {
|
|
|
185
186
|
/* @__PURE__ */ w("button", {
|
|
186
187
|
type: "button",
|
|
187
188
|
onClick: () => E("/customer/orders"),
|
|
188
|
-
className: t("flex items-center gap-3 rounded-lg border border-border bg-
|
|
189
|
+
className: t("flex items-center gap-3 rounded-lg border border-border-seam bg-bg-surface p-4 shadow-sm transition-colors text-left", "hover:bg-accent hover:shadow-md"),
|
|
189
190
|
children: [/* @__PURE__ */ C("div", {
|
|
190
|
-
className: "flex h-10 w-10 shrink-0 items-center justify-center rounded-lg bg-
|
|
191
|
-
children: /* @__PURE__ */ C(u, { className: "h-5 w-5 text-
|
|
191
|
+
className: "flex h-10 w-10 shrink-0 items-center justify-center rounded-lg bg-status-success-bg/10",
|
|
192
|
+
children: /* @__PURE__ */ C(u, { className: "h-5 w-5 text-status-success-text" })
|
|
192
193
|
}), /* @__PURE__ */ w("div", {
|
|
193
194
|
className: "min-w-0",
|
|
194
195
|
children: [/* @__PURE__ */ C("p", {
|
|
195
|
-
className: "text-sm font-semibold text-
|
|
196
|
+
className: "text-sm font-semibold text-text-primary",
|
|
196
197
|
children: I("subscriberbot.customerDashboard.orderHistory", "Order History")
|
|
197
198
|
}), /* @__PURE__ */ C("p", {
|
|
198
|
-
className: "text-xs text-
|
|
199
|
+
className: "text-xs text-text-secondary",
|
|
199
200
|
children: I("subscriberbot.customerDashboard.viewPastOrders", "View past orders")
|
|
200
201
|
})]
|
|
201
202
|
})]
|
|
@@ -203,17 +204,17 @@ function E() {
|
|
|
203
204
|
/* @__PURE__ */ w("button", {
|
|
204
205
|
type: "button",
|
|
205
206
|
onClick: () => E("/customer/favorites"),
|
|
206
|
-
className: t("flex items-center gap-3 rounded-lg border border-border bg-
|
|
207
|
+
className: t("flex items-center gap-3 rounded-lg border border-border-seam bg-bg-surface p-4 shadow-sm transition-colors text-left", "hover:bg-accent hover:shadow-md"),
|
|
207
208
|
children: [/* @__PURE__ */ C("div", {
|
|
208
|
-
className: "flex h-10 w-10 shrink-0 items-center justify-center rounded-lg bg-
|
|
209
|
-
children: /* @__PURE__ */ C(f, { className: "h-5 w-5 text-
|
|
209
|
+
className: "flex h-10 w-10 shrink-0 items-center justify-center rounded-lg bg-status-error-bg/10",
|
|
210
|
+
children: /* @__PURE__ */ C(f, { className: "h-5 w-5 text-status-error-text" })
|
|
210
211
|
}), /* @__PURE__ */ w("div", {
|
|
211
212
|
className: "min-w-0",
|
|
212
213
|
children: [/* @__PURE__ */ C("p", {
|
|
213
|
-
className: "text-sm font-semibold text-
|
|
214
|
+
className: "text-sm font-semibold text-text-primary",
|
|
214
215
|
children: I("subscriberbot.customerDashboard.favorites", "Favorites")
|
|
215
216
|
}), /* @__PURE__ */ C("p", {
|
|
216
|
-
className: "text-xs text-
|
|
217
|
+
className: "text-xs text-text-secondary",
|
|
217
218
|
children: I("subscriberbot.customerDashboard.savedCarts", "Saved carts")
|
|
218
219
|
})]
|
|
219
220
|
})]
|
|
@@ -223,18 +224,18 @@ function E() {
|
|
|
223
224
|
/* @__PURE__ */ w("section", { children: [/* @__PURE__ */ w("div", {
|
|
224
225
|
className: "flex items-center justify-between mb-4",
|
|
225
226
|
children: [/* @__PURE__ */ C("h2", {
|
|
226
|
-
className: "text-lg font-semibold text-
|
|
227
|
+
className: "text-lg font-semibold text-text-primary",
|
|
227
228
|
children: I("subscriberbot.customerDashboard.recentOrders", "Recent Orders")
|
|
228
229
|
}), /* @__PURE__ */ w("button", {
|
|
229
230
|
type: "button",
|
|
230
231
|
onClick: () => E("/customer/orders"),
|
|
231
|
-
className: "flex items-center gap-1 text-sm font-medium text-
|
|
232
|
+
className: "flex items-center gap-1 text-sm font-medium text-text-secondary hover:text-text-primary transition-colors",
|
|
232
233
|
children: [I("subscriberbot.common.viewAll", "View All"), /* @__PURE__ */ C(l, { className: "h-4 w-4" })]
|
|
233
234
|
})]
|
|
234
235
|
}), z.length > 0 ? /* @__PURE__ */ C("div", {
|
|
235
236
|
className: "space-y-3",
|
|
236
237
|
children: z.map((e) => /* @__PURE__ */ C("div", {
|
|
237
|
-
className: "rounded-lg border border-border bg-
|
|
238
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-4",
|
|
238
239
|
children: /* @__PURE__ */ w("div", {
|
|
239
240
|
className: "flex flex-col sm:flex-row sm:items-start sm:justify-between gap-3",
|
|
240
241
|
children: [/* @__PURE__ */ w("div", {
|
|
@@ -243,7 +244,7 @@ function E() {
|
|
|
243
244
|
/* @__PURE__ */ w("div", {
|
|
244
245
|
className: "flex flex-wrap items-center gap-2 mb-1",
|
|
245
246
|
children: [/* @__PURE__ */ C("h3", {
|
|
246
|
-
className: "text-sm font-semibold text-
|
|
247
|
+
className: "text-sm font-semibold text-text-primary",
|
|
247
248
|
children: e.cartName
|
|
248
249
|
}), /* @__PURE__ */ C("span", {
|
|
249
250
|
className: t("inline-flex items-center rounded-full px-2 py-0.5 text-xs font-medium capitalize", H(e.status)),
|
|
@@ -251,20 +252,20 @@ function E() {
|
|
|
251
252
|
})]
|
|
252
253
|
}),
|
|
253
254
|
/* @__PURE__ */ C("p", {
|
|
254
|
-
className: "text-xs text-
|
|
255
|
+
className: "text-xs text-text-secondary mb-2 leading-relaxed",
|
|
255
256
|
children: e.items.map((e) => `${e.name} (${e.quantity})`).join(", ")
|
|
256
257
|
}),
|
|
257
258
|
/* @__PURE__ */ w("div", {
|
|
258
|
-
className: "flex flex-wrap items-center gap-3 text-xs text-
|
|
259
|
+
className: "flex flex-wrap items-center gap-3 text-xs text-text-secondary",
|
|
259
260
|
children: [
|
|
260
261
|
/* @__PURE__ */ C("span", {
|
|
261
|
-
className: "font-medium text-
|
|
262
|
+
className: "font-medium text-text-primary",
|
|
262
263
|
children: o(e.total, { minimumFractionDigits: 0 })
|
|
263
264
|
}),
|
|
264
265
|
/* @__PURE__ */ C("span", { children: new Date(e.orderDate).toLocaleDateString() }),
|
|
265
266
|
e.rating && /* @__PURE__ */ w("span", {
|
|
266
267
|
className: "flex items-center gap-1",
|
|
267
|
-
children: [/* @__PURE__ */ C(y, { className: "h-3 w-3 fill-
|
|
268
|
+
children: [/* @__PURE__ */ C(y, { className: "h-3 w-3 fill-status-warning-text text-status-warning-text" }), e.rating]
|
|
268
269
|
})
|
|
269
270
|
]
|
|
270
271
|
})
|
|
@@ -272,25 +273,25 @@ function E() {
|
|
|
272
273
|
}), /* @__PURE__ */ C("button", {
|
|
273
274
|
type: "button",
|
|
274
275
|
onClick: () => E(`/customer/orders/${e.id}`),
|
|
275
|
-
className: "rounded-lg border border-border px-3 py-1.5 text-xs font-medium text-
|
|
276
|
+
className: "rounded-lg border border-border-seam px-3 py-1.5 text-xs font-medium text-text-primary hover:bg-accent transition-colors",
|
|
276
277
|
children: I("subscriberbot.customerDashboard.viewDetails", "View Details")
|
|
277
278
|
})]
|
|
278
279
|
})
|
|
279
280
|
}, e.id))
|
|
280
281
|
}) : /* @__PURE__ */ w("div", {
|
|
281
|
-
className: "rounded-lg border border-border bg-
|
|
282
|
-
children: [/* @__PURE__ */ C(v, { className: "mx-auto h-10 w-10 text-
|
|
283
|
-
className: "mt-3 text-sm text-
|
|
282
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-8 text-center",
|
|
283
|
+
children: [/* @__PURE__ */ C(v, { className: "mx-auto h-10 w-10 text-text-secondary/50" }), /* @__PURE__ */ C("p", {
|
|
284
|
+
className: "mt-3 text-sm text-text-secondary",
|
|
284
285
|
children: I("subscriberbot.customerDashboard.noRecentOrders", "No recent orders")
|
|
285
286
|
})]
|
|
286
287
|
})] }),
|
|
287
288
|
/* @__PURE__ */ w("section", { children: [/* @__PURE__ */ C("h2", {
|
|
288
|
-
className: "text-lg font-semibold text-
|
|
289
|
+
className: "text-lg font-semibold text-text-primary mb-4",
|
|
289
290
|
children: I("subscriberbot.customerDashboard.recommendedForYou", "Recommended for You")
|
|
290
291
|
}), /* @__PURE__ */ C("div", {
|
|
291
292
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
|
|
292
293
|
children: B.map((e) => /* @__PURE__ */ w("div", {
|
|
293
|
-
className: "rounded-lg border border-border bg-
|
|
294
|
+
className: "rounded-lg border border-border-seam bg-bg-surface overflow-hidden shadow-sm hover:shadow-md transition-shadow",
|
|
294
295
|
children: [/* @__PURE__ */ w("div", {
|
|
295
296
|
className: "relative h-40",
|
|
296
297
|
children: [/* @__PURE__ */ C("img", {
|
|
@@ -300,7 +301,7 @@ function E() {
|
|
|
300
301
|
}), /* @__PURE__ */ C("div", {
|
|
301
302
|
className: "absolute top-2 right-2",
|
|
302
303
|
children: /* @__PURE__ */ C("span", {
|
|
303
|
-
className: t("inline-flex items-center rounded-full px-2 py-0.5 text-xs font-medium", e.isOpen ? "bg-
|
|
304
|
+
className: t("inline-flex items-center rounded-full px-2 py-0.5 text-xs font-medium", e.isOpen ? "bg-status-success-bg/20 text-status-success-text" : "bg-status-error-bg/20 text-status-error-text"),
|
|
304
305
|
children: e.isOpen ? I("subscriberbot.customerDashboard.open", "Open") : I("subscriberbot.customerDashboard.closed", "Closed")
|
|
305
306
|
})
|
|
306
307
|
})]
|
|
@@ -312,22 +313,22 @@ function E() {
|
|
|
312
313
|
children: [/* @__PURE__ */ w("div", {
|
|
313
314
|
className: "min-w-0 flex-1",
|
|
314
315
|
children: [/* @__PURE__ */ C("h3", {
|
|
315
|
-
className: "text-sm font-semibold text-
|
|
316
|
+
className: "text-sm font-semibold text-text-primary",
|
|
316
317
|
children: e.name
|
|
317
318
|
}), /* @__PURE__ */ C("p", {
|
|
318
|
-
className: "text-xs text-
|
|
319
|
+
className: "text-xs text-text-secondary",
|
|
319
320
|
children: e.category
|
|
320
321
|
})]
|
|
321
322
|
}), /* @__PURE__ */ w("div", {
|
|
322
323
|
className: "flex items-center gap-1 text-xs",
|
|
323
|
-
children: [/* @__PURE__ */ C(y, { className: "h-3 w-3 fill-
|
|
324
|
-
className: "font-medium text-
|
|
324
|
+
children: [/* @__PURE__ */ C(y, { className: "h-3 w-3 fill-status-warning-text text-status-warning-text" }), /* @__PURE__ */ C("span", {
|
|
325
|
+
className: "font-medium text-text-primary",
|
|
325
326
|
children: e.rating
|
|
326
327
|
})]
|
|
327
328
|
})]
|
|
328
329
|
}),
|
|
329
330
|
/* @__PURE__ */ w("div", {
|
|
330
|
-
className: "flex items-center gap-3 text-xs text-
|
|
331
|
+
className: "flex items-center gap-3 text-xs text-text-secondary mb-3",
|
|
331
332
|
children: [/* @__PURE__ */ w("span", {
|
|
332
333
|
className: "flex items-center gap-1",
|
|
333
334
|
children: [
|
|
@@ -348,7 +349,7 @@ function E() {
|
|
|
348
349
|
type: "button",
|
|
349
350
|
disabled: !e.isOpen,
|
|
350
351
|
onClick: () => e.isOpen && E(`/customer/carts/${e.id}`),
|
|
351
|
-
className: t("w-full rounded-lg py-2 text-sm font-medium transition-opacity", e.isOpen ? "bg-foreground text-background hover:opacity-90" : "bg-
|
|
352
|
+
className: t("w-full rounded-lg py-2 text-sm font-medium transition-opacity", e.isOpen ? "bg-foreground text-background hover:opacity-90" : "bg-bg-sunken text-text-secondary cursor-not-allowed"),
|
|
352
353
|
children: e.isOpen ? I("subscriberbot.customerDashboard.viewMenu", "View Menu") : I("subscriberbot.customerDashboard.currentlyClosed", "Currently Closed")
|
|
353
354
|
})
|
|
354
355
|
]
|
|
@@ -360,9 +361,9 @@ function E() {
|
|
|
360
361
|
className: "space-y-6",
|
|
361
362
|
children: [
|
|
362
363
|
/* @__PURE__ */ w("div", {
|
|
363
|
-
className: "rounded-lg border border-border bg-
|
|
364
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-5",
|
|
364
365
|
children: [/* @__PURE__ */ C("h3", {
|
|
365
|
-
className: "text-base font-semibold text-
|
|
366
|
+
className: "text-base font-semibold text-text-primary mb-4",
|
|
366
367
|
children: I("subscriberbot.customerDashboard.personalizedRecommendations", "Personalized Recommendations")
|
|
367
368
|
}), /* @__PURE__ */ C("div", {
|
|
368
369
|
className: "space-y-3",
|
|
@@ -403,9 +404,9 @@ function E() {
|
|
|
403
404
|
})]
|
|
404
405
|
}),
|
|
405
406
|
/* @__PURE__ */ w("div", {
|
|
406
|
-
className: "rounded-lg border border-border bg-
|
|
407
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-5",
|
|
407
408
|
children: [/* @__PURE__ */ C("h3", {
|
|
408
|
-
className: "text-base font-semibold text-
|
|
409
|
+
className: "text-base font-semibold text-text-primary mb-3",
|
|
409
410
|
children: I("subscriberbot.customerDashboard.quickLinks", "Quick Links")
|
|
410
411
|
}), /* @__PURE__ */ w("div", {
|
|
411
412
|
className: "space-y-2",
|
|
@@ -413,46 +414,46 @@ function E() {
|
|
|
413
414
|
/* @__PURE__ */ w("button", {
|
|
414
415
|
type: "button",
|
|
415
416
|
onClick: () => E("/customer/profile"),
|
|
416
|
-
className: "flex w-full items-center gap-2 rounded-lg border border-border px-3 py-2.5 text-sm text-
|
|
417
|
-
children: [/* @__PURE__ */ C(x, { className: "h-4 w-4 text-
|
|
417
|
+
className: "flex w-full items-center gap-2 rounded-lg border border-border-seam px-3 py-2.5 text-sm text-text-primary hover:bg-accent transition-colors text-left",
|
|
418
|
+
children: [/* @__PURE__ */ C(x, { className: "h-4 w-4 text-text-secondary" }), I("subscriberbot.customerDashboard.profileSettings", "Profile Settings")]
|
|
418
419
|
}),
|
|
419
420
|
/* @__PURE__ */ w("button", {
|
|
420
421
|
type: "button",
|
|
421
422
|
onClick: () => E("/customer/addresses"),
|
|
422
|
-
className: "flex w-full items-center gap-2 rounded-lg border border-border px-3 py-2.5 text-sm text-
|
|
423
|
-
children: [/* @__PURE__ */ C(m, { className: "h-4 w-4 text-
|
|
423
|
+
className: "flex w-full items-center gap-2 rounded-lg border border-border-seam px-3 py-2.5 text-sm text-text-primary hover:bg-accent transition-colors text-left",
|
|
424
|
+
children: [/* @__PURE__ */ C(m, { className: "h-4 w-4 text-text-secondary" }), I("subscriberbot.customerDashboard.savedAddresses", "Saved Addresses")]
|
|
424
425
|
}),
|
|
425
426
|
/* @__PURE__ */ w("button", {
|
|
426
427
|
type: "button",
|
|
427
428
|
onClick: () => E("/customer/payment-methods"),
|
|
428
|
-
className: "flex w-full items-center gap-2 rounded-lg border border-border px-3 py-2.5 text-sm text-
|
|
429
|
-
children: [/* @__PURE__ */ C(d, { className: "h-4 w-4 text-
|
|
429
|
+
className: "flex w-full items-center gap-2 rounded-lg border border-border-seam px-3 py-2.5 text-sm text-text-primary hover:bg-accent transition-colors text-left",
|
|
430
|
+
children: [/* @__PURE__ */ C(d, { className: "h-4 w-4 text-text-secondary" }), I("subscriberbot.customerDashboard.paymentMethods", "Payment Methods")]
|
|
430
431
|
})
|
|
431
432
|
]
|
|
432
433
|
})]
|
|
433
434
|
}),
|
|
434
435
|
/* @__PURE__ */ w("div", {
|
|
435
|
-
className: "rounded-lg border border-border bg-
|
|
436
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-5",
|
|
436
437
|
children: [
|
|
437
438
|
/* @__PURE__ */ C("h3", {
|
|
438
|
-
className: "text-base font-semibold text-
|
|
439
|
+
className: "text-base font-semibold text-text-primary mb-3",
|
|
439
440
|
children: I("subscriberbot.customerDashboard.currentLocation", "Current Location")
|
|
440
441
|
}),
|
|
441
442
|
/* @__PURE__ */ w("div", {
|
|
442
443
|
className: "flex items-start gap-3",
|
|
443
|
-
children: [/* @__PURE__ */ C(h, { className: "h-4 w-4 text-
|
|
444
|
+
children: [/* @__PURE__ */ C(h, { className: "h-4 w-4 text-status-info-text mt-0.5 shrink-0" }), /* @__PURE__ */ w("div", {
|
|
444
445
|
className: "flex-1 min-w-0",
|
|
445
446
|
children: [
|
|
446
447
|
/* @__PURE__ */ C("p", {
|
|
447
|
-
className: "text-sm font-medium text-
|
|
448
|
+
className: "text-sm font-medium text-text-primary",
|
|
448
449
|
children: "Koramangala"
|
|
449
450
|
}),
|
|
450
451
|
/* @__PURE__ */ C("p", {
|
|
451
|
-
className: "text-xs text-
|
|
452
|
+
className: "text-xs text-text-secondary",
|
|
452
453
|
children: "80 Feet Road, 6th Block"
|
|
453
454
|
}),
|
|
454
455
|
/* @__PURE__ */ C("p", {
|
|
455
|
-
className: "text-xs text-
|
|
456
|
+
className: "text-xs text-text-secondary",
|
|
456
457
|
children: "Bangalore, Karnataka"
|
|
457
458
|
})
|
|
458
459
|
]
|
|
@@ -461,20 +462,20 @@ function E() {
|
|
|
461
462
|
/* @__PURE__ */ C("button", {
|
|
462
463
|
type: "button",
|
|
463
464
|
onClick: () => E("/customer/addresses"),
|
|
464
|
-
className: "mt-3 w-full rounded-lg border border-border px-3 py-2 text-xs font-medium text-
|
|
465
|
+
className: "mt-3 w-full rounded-lg border border-border-seam px-3 py-2 text-xs font-medium text-text-primary hover:bg-accent transition-colors",
|
|
465
466
|
children: I("subscriberbot.customerDashboard.updateLocation", "Update Location")
|
|
466
467
|
})
|
|
467
468
|
]
|
|
468
469
|
}),
|
|
469
470
|
/* @__PURE__ */ w("div", {
|
|
470
|
-
className: "rounded-lg bg-gradient-to-r from-
|
|
471
|
+
className: "rounded-lg bg-gradient-to-r from-status-info-text/10 to-accent-purple/10 border border-status-info-border/20 p-5",
|
|
471
472
|
children: [
|
|
472
473
|
/* @__PURE__ */ C("h3", {
|
|
473
|
-
className: "text-base font-semibold text-
|
|
474
|
+
className: "text-base font-semibold text-text-primary mb-2",
|
|
474
475
|
children: I("subscriberbot.customerDashboard.specialOffers", "Special Offers")
|
|
475
476
|
}),
|
|
476
477
|
/* @__PURE__ */ C("p", {
|
|
477
|
-
className: "text-xs text-
|
|
478
|
+
className: "text-xs text-text-secondary mb-3 leading-relaxed",
|
|
478
479
|
children: I("subscriberbot.customerDashboard.specialOffersDescription", "Get 25% off on your next order from featured carts")
|
|
479
480
|
}),
|
|
480
481
|
/* @__PURE__ */ C("button", {
|