@burdenoff/microfe-labsofscience 2026.625.1 → 2026.626.2
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/labsofscience/pages/HomePage.js +33 -28
- package/dist/labsofscience/pages/HomePage.js.map +1 -1
- package/dist/labsofscience/pages/admin/AdminAnalyticsPage.js +67 -61
- package/dist/labsofscience/pages/admin/AdminAnalyticsPage.js.map +1 -1
- package/dist/labsofscience/pages/admin/AdminDashboard.js +76 -44
- package/dist/labsofscience/pages/admin/AdminDashboard.js.map +1 -1
- package/dist/labsofscience/pages/admin/AdminFinancialPage.js +38 -32
- package/dist/labsofscience/pages/admin/AdminFinancialPage.js.map +1 -1
- package/dist/labsofscience/pages/admin/AdminOrdersPage.js +226 -221
- package/dist/labsofscience/pages/admin/AdminOrdersPage.js.map +1 -1
- package/dist/labsofscience/pages/admin/AdminProfilePage.js +127 -125
- package/dist/labsofscience/pages/admin/AdminProfilePage.js.map +1 -1
- package/dist/labsofscience/pages/admin/AdminSettingsPage.js +489 -487
- package/dist/labsofscience/pages/admin/AdminSettingsPage.js.map +1 -1
- package/dist/labsofscience/pages/admin/CartManagementPage.js +124 -119
- package/dist/labsofscience/pages/admin/CartManagementPage.js.map +1 -1
- package/dist/labsofscience/pages/admin/UserManagementPage.js +267 -262
- package/dist/labsofscience/pages/admin/UserManagementPage.js.map +1 -1
- package/dist/labsofscience/pages/cart-owner/AnalyticsDashboard.js +46 -41
- package/dist/labsofscience/pages/cart-owner/AnalyticsDashboard.js.map +1 -1
- package/dist/labsofscience/pages/cart-owner/BusinessSettingsPage.js +172 -167
- package/dist/labsofscience/pages/cart-owner/BusinessSettingsPage.js.map +1 -1
- package/dist/labsofscience/pages/cart-owner/CartOwnerDashboard.js +79 -48
- package/dist/labsofscience/pages/cart-owner/CartOwnerDashboard.js.map +1 -1
- package/dist/labsofscience/pages/cart-owner/CartOwnerProfilePage.js +98 -93
- package/dist/labsofscience/pages/cart-owner/CartOwnerProfilePage.js.map +1 -1
- package/dist/labsofscience/pages/cart-owner/CartServiceConfigPage.js +112 -107
- package/dist/labsofscience/pages/cart-owner/CartServiceConfigPage.js.map +1 -1
- package/dist/labsofscience/pages/cart-owner/InventoryManagementPage.js +298 -300
- package/dist/labsofscience/pages/cart-owner/InventoryManagementPage.js.map +1 -1
- package/dist/labsofscience/pages/cart-owner/OrderManagementPage.js +221 -223
- package/dist/labsofscience/pages/cart-owner/OrderManagementPage.js.map +1 -1
- package/dist/labsofscience/pages/cart-owner/StaffManagementPage.js +251 -245
- package/dist/labsofscience/pages/cart-owner/StaffManagementPage.js.map +1 -1
- package/dist/labsofscience/pages/common/HelpSupportPage.js +284 -285
- package/dist/labsofscience/pages/common/HelpSupportPage.js.map +1 -1
- package/dist/labsofscience/pages/common/NotificationCenterPage.js +48 -42
- package/dist/labsofscience/pages/common/NotificationCenterPage.js.map +1 -1
- package/dist/labsofscience/pages/common/SettingsPage.js +745 -736
- package/dist/labsofscience/pages/common/SettingsPage.js.map +1 -1
- package/dist/labsofscience/pages/customer/BookingDetailsPage.js +399 -356
- package/dist/labsofscience/pages/customer/BookingDetailsPage.js.map +1 -1
- package/dist/labsofscience/pages/customer/CartDetailPage.js +262 -230
- package/dist/labsofscience/pages/customer/CartDetailPage.js.map +1 -1
- package/dist/labsofscience/pages/customer/CartDiscoveryPage.js +162 -151
- package/dist/labsofscience/pages/customer/CartDiscoveryPage.js.map +1 -1
- package/dist/labsofscience/pages/customer/CheckoutPage.js +213 -215
- package/dist/labsofscience/pages/customer/CheckoutPage.js.map +1 -1
- package/dist/labsofscience/pages/customer/CustomerDashboard.js +416 -381
- package/dist/labsofscience/pages/customer/CustomerDashboard.js.map +1 -1
- package/dist/labsofscience/pages/customer/CustomerProfilePage.js +528 -491
- package/dist/labsofscience/pages/customer/CustomerProfilePage.js.map +1 -1
- package/dist/labsofscience/pages/customer/DirectServiceBookingPage.js +521 -512
- package/dist/labsofscience/pages/customer/DirectServiceBookingPage.js.map +1 -1
- package/dist/labsofscience/pages/customer/FavoritesPage.js +57 -51
- package/dist/labsofscience/pages/customer/FavoritesPage.js.map +1 -1
- package/dist/labsofscience/pages/customer/OrderHistoryPage.js +56 -50
- package/dist/labsofscience/pages/customer/OrderHistoryPage.js.map +1 -1
- package/dist/labsofscience/pages/customer/OrderTrackingPage.js +310 -274
- package/dist/labsofscience/pages/customer/OrderTrackingPage.js.map +1 -1
- package/dist/labsofscience/pages/customer/PaymentMethodsPage.js +81 -75
- package/dist/labsofscience/pages/customer/PaymentMethodsPage.js.map +1 -1
- package/dist/labsofscience/pages/customer/ReviewsPage.js +68 -62
- package/dist/labsofscience/pages/customer/ReviewsPage.js.map +1 -1
- package/dist/labsofscience/pages/customer/SavedAddressesPage.js +61 -55
- package/dist/labsofscience/pages/customer/SavedAddressesPage.js.map +1 -1
- package/dist/labsofscience/pages/investor/InvestmentDetailsPage.js +92 -60
- package/dist/labsofscience/pages/investor/InvestmentDetailsPage.js.map +1 -1
- package/dist/labsofscience/pages/investor/InvestmentOpportunitiesPage.js +237 -231
- package/dist/labsofscience/pages/investor/InvestmentOpportunitiesPage.js.map +1 -1
- package/dist/labsofscience/pages/investor/InvestorAnalyticsPage.js +60 -54
- package/dist/labsofscience/pages/investor/InvestorAnalyticsPage.js.map +1 -1
- package/dist/labsofscience/pages/investor/InvestorDashboard.js +342 -307
- package/dist/labsofscience/pages/investor/InvestorDashboard.js.map +1 -1
- package/dist/labsofscience/pages/investor/InvestorInvestmentsPage.js +106 -100
- package/dist/labsofscience/pages/investor/InvestorInvestmentsPage.js.map +1 -1
- package/dist/labsofscience/pages/investor/InvestorPortfolioPage.js +51 -45
- package/dist/labsofscience/pages/investor/InvestorPortfolioPage.js.map +1 -1
- package/dist/labsofscience/pages/investor/InvestorProfilePage.js +386 -381
- package/dist/labsofscience/pages/investor/InvestorProfilePage.js.map +1 -1
- package/dist/labsofscience/pages/worker/TaskDetailsPage.js +359 -319
- package/dist/labsofscience/pages/worker/TaskDetailsPage.js.map +1 -1
- package/dist/labsofscience/pages/worker/WorkerDashboard.js +90 -59
- package/dist/labsofscience/pages/worker/WorkerDashboard.js.map +1 -1
- package/dist/labsofscience/pages/worker/WorkerOrdersPage.js +76 -71
- package/dist/labsofscience/pages/worker/WorkerOrdersPage.js.map +1 -1
- package/dist/labsofscience/pages/worker/WorkerProfilePage.js +82 -77
- package/dist/labsofscience/pages/worker/WorkerProfilePage.js.map +1 -1
- package/dist/labsofscience/pages/worker/WorkerSchedulePage.js +348 -340
- package/dist/labsofscience/pages/worker/WorkerSchedulePage.js.map +1 -1
- package/package.json +3 -3
|
@@ -7,16 +7,17 @@ import { useCallback as s } from "react";
|
|
|
7
7
|
import { useI18n as c } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
8
8
|
import { ArrowRight as l, Clock as u, CreditCard as d, Heart as f, Lightbulb as p, MapPin as m, Navigation as h, Package as g, Search as _, ShoppingBag as v, Star as y, TrendingUp as b, User as x, Zap as S } from "lucide-react";
|
|
9
9
|
import { jsx as C, jsxs as w } from "react/jsx-runtime";
|
|
10
|
+
import { EmphasisPanel as T, NextSteps as E, PagePurpose as D } from "@burdenoff/fe-libs/ui";
|
|
10
11
|
//#region src/labsofscience/pages/customer/CustomerDashboard.tsx
|
|
11
|
-
function
|
|
12
|
+
function O() {
|
|
12
13
|
let e = (/* @__PURE__ */ new Date()).getHours();
|
|
13
14
|
return e < 12 ? "Good morning" : e < 17 ? "Good afternoon" : "Good evening";
|
|
14
15
|
}
|
|
15
|
-
function
|
|
16
|
-
let { navigateTo:
|
|
17
|
-
let n =
|
|
16
|
+
function k() {
|
|
17
|
+
let { navigateTo: k, currentUser: A } = e(), { t: j } = c(), { data: M = [], isLoading: N } = i({ customerId: A?.id }), { data: P = [], isLoading: F } = a(), { data: I, isLoading: L } = r(), R = N || F || L, z = s((e, t) => {
|
|
18
|
+
let n = j(e);
|
|
18
19
|
return n === e ? t : n;
|
|
19
|
-
}, [
|
|
20
|
+
}, [j]), B = A?.firstName ?? A?.name ?? "Customer", V = [
|
|
20
21
|
{
|
|
21
22
|
id: "1",
|
|
22
23
|
type: "suggestion",
|
|
@@ -41,12 +42,12 @@ function E() {
|
|
|
41
42
|
confidence: 88,
|
|
42
43
|
action: "View Carts"
|
|
43
44
|
}
|
|
44
|
-
],
|
|
45
|
-
totalOrders:
|
|
46
|
-
totalSpent:
|
|
45
|
+
], H = M.slice(0, 3), U = P.slice(0, 3), W = {
|
|
46
|
+
totalOrders: M.length,
|
|
47
|
+
totalSpent: M.reduce((e, t) => e + t.total, 0),
|
|
47
48
|
favoriteCount: 6,
|
|
48
49
|
avgRating: 4.5
|
|
49
|
-
},
|
|
50
|
+
}, G = (e) => {
|
|
50
51
|
switch (e) {
|
|
51
52
|
case "delivered": return "bg-status-success-bg-subtle text-status-success-text";
|
|
52
53
|
case "preparing": return "bg-status-warning-bg-subtle text-status-warning-text";
|
|
@@ -55,14 +56,14 @@ function E() {
|
|
|
55
56
|
case "cancelled": return "bg-status-error-bg-subtle text-status-error-text";
|
|
56
57
|
default: return "bg-bg-sunken text-text-secondary";
|
|
57
58
|
}
|
|
58
|
-
},
|
|
59
|
+
}, K = (e) => {
|
|
59
60
|
switch (e) {
|
|
60
61
|
case "suggestion": return /* @__PURE__ */ C(p, { className: "h-4 w-4" });
|
|
61
62
|
case "opportunity": return /* @__PURE__ */ C(b, { className: "h-4 w-4" });
|
|
62
63
|
case "trend": return /* @__PURE__ */ C(S, { className: "h-4 w-4" });
|
|
63
64
|
default: return /* @__PURE__ */ C(p, { className: "h-4 w-4" });
|
|
64
65
|
}
|
|
65
|
-
},
|
|
66
|
+
}, q = (e) => {
|
|
66
67
|
switch (e) {
|
|
67
68
|
case "suggestion": return "bg-status-info-bg-subtle text-status-info-text border-status-info-border";
|
|
68
69
|
case "opportunity": return "bg-status-success-bg-subtle text-status-success-text border-status-success-border";
|
|
@@ -70,427 +71,461 @@ function E() {
|
|
|
70
71
|
default: return "bg-bg-sunken text-text-secondary border-border-seam";
|
|
71
72
|
}
|
|
72
73
|
};
|
|
73
|
-
return
|
|
74
|
-
title:
|
|
74
|
+
return R ? /* @__PURE__ */ C(n, {
|
|
75
|
+
title: z("labsofscience.customerDashboard.title", "Dashboard"),
|
|
75
76
|
children: /* @__PURE__ */ C("div", {
|
|
76
77
|
className: "flex items-center justify-center py-20",
|
|
77
78
|
children: /* @__PURE__ */ w("div", {
|
|
78
79
|
className: "text-center",
|
|
79
80
|
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
81
|
className: "text-sm text-text-secondary",
|
|
81
|
-
children:
|
|
82
|
+
children: z("labsofscience.customerDashboard.loading", "Loading your dashboard...")
|
|
82
83
|
})]
|
|
83
84
|
})
|
|
84
85
|
})
|
|
85
86
|
}) : /* @__PURE__ */ w(n, {
|
|
86
|
-
title:
|
|
87
|
-
description: `${
|
|
88
|
-
children: [
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
}),
|
|
123
|
-
/* @__PURE__ */ C("div", {
|
|
124
|
-
className: "rounded-lg border border-border-seam bg-bg-surface p-4",
|
|
125
|
-
children: /* @__PURE__ */ w("div", {
|
|
126
|
-
className: "flex items-center gap-3",
|
|
127
|
-
children: [/* @__PURE__ */ C("div", {
|
|
128
|
-
className: "flex h-10 w-10 items-center justify-center rounded-lg bg-bg-sunken",
|
|
129
|
-
children: /* @__PURE__ */ C(f, { className: "h-5 w-5 text-text-secondary" })
|
|
130
|
-
}), /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
|
|
131
|
-
className: "text-2xl font-bold text-text-primary",
|
|
132
|
-
children: V.favoriteCount
|
|
133
|
-
}), /* @__PURE__ */ C("p", {
|
|
134
|
-
className: "text-xs text-text-secondary",
|
|
135
|
-
children: I("labsofscience.customerDashboard.favoriteCarts", "Favorite Carts")
|
|
136
|
-
})] })]
|
|
137
|
-
})
|
|
138
|
-
}),
|
|
139
|
-
/* @__PURE__ */ C("div", {
|
|
140
|
-
className: "rounded-lg border border-border-seam bg-bg-surface p-4",
|
|
141
|
-
children: /* @__PURE__ */ w("div", {
|
|
142
|
-
className: "flex items-center gap-3",
|
|
143
|
-
children: [/* @__PURE__ */ C("div", {
|
|
144
|
-
className: "flex h-10 w-10 items-center justify-center rounded-lg bg-bg-sunken",
|
|
145
|
-
children: /* @__PURE__ */ C(y, { className: "h-5 w-5 text-text-secondary" })
|
|
146
|
-
}), /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
|
|
147
|
-
className: "text-2xl font-bold text-text-primary",
|
|
148
|
-
children: V.avgRating.toFixed(1)
|
|
149
|
-
}), /* @__PURE__ */ C("p", {
|
|
150
|
-
className: "text-xs text-text-secondary",
|
|
151
|
-
children: I("labsofscience.customerDashboard.avgRatingGiven", "Avg Rating Given")
|
|
152
|
-
})] })]
|
|
153
|
-
})
|
|
154
|
-
})
|
|
155
|
-
]
|
|
156
|
-
}), /* @__PURE__ */ w("div", {
|
|
157
|
-
className: "mt-8 grid grid-cols-1 gap-8 lg:grid-cols-3",
|
|
158
|
-
children: [/* @__PURE__ */ w("div", {
|
|
159
|
-
className: "lg:col-span-2 space-y-8",
|
|
87
|
+
title: z("labsofscience.customerDashboard.welcomeBack", "Welcome Back!"),
|
|
88
|
+
description: `${O()}, ${B}`,
|
|
89
|
+
children: [
|
|
90
|
+
/* @__PURE__ */ C(D, {
|
|
91
|
+
icon: /* @__PURE__ */ C(p, { className: "h-4 w-4" }),
|
|
92
|
+
className: "mb-6",
|
|
93
|
+
children: "Your home base on the platform. See your order activity and spend at a glance, then discover nearby carts, book services and track deliveries — everything you need to shop from local carts lives one tap away here."
|
|
94
|
+
}),
|
|
95
|
+
/* @__PURE__ */ C(E, {
|
|
96
|
+
storageKey: "labsofscience-customer-dashboard",
|
|
97
|
+
steps: [
|
|
98
|
+
{
|
|
99
|
+
id: "discover",
|
|
100
|
+
label: "Discover carts near you",
|
|
101
|
+
description: "Browse food, services and goods from local carts.",
|
|
102
|
+
icon: /* @__PURE__ */ C(_, { className: "h-4 w-4" }),
|
|
103
|
+
onClick: () => k("/customer/carts")
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
id: "orders",
|
|
107
|
+
label: "Track your orders",
|
|
108
|
+
description: "Follow active deliveries and review past orders.",
|
|
109
|
+
icon: /* @__PURE__ */ C(g, { className: "h-4 w-4" }),
|
|
110
|
+
onClick: () => k("/customer/orders")
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
id: "favorites",
|
|
114
|
+
label: "Save your favorites",
|
|
115
|
+
description: "Keep your go-to carts handy for faster reordering.",
|
|
116
|
+
icon: /* @__PURE__ */ C(f, { className: "h-4 w-4" }),
|
|
117
|
+
onClick: () => k("/customer/favorites")
|
|
118
|
+
}
|
|
119
|
+
]
|
|
120
|
+
}),
|
|
121
|
+
W && /* @__PURE__ */ w(T, {
|
|
122
|
+
className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4",
|
|
160
123
|
children: [
|
|
161
|
-
/* @__PURE__ */
|
|
162
|
-
className: "
|
|
163
|
-
children:
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
124
|
+
/* @__PURE__ */ C("div", {
|
|
125
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-4",
|
|
126
|
+
children: /* @__PURE__ */ w("div", {
|
|
127
|
+
className: "flex items-center gap-3",
|
|
128
|
+
children: [/* @__PURE__ */ C("div", {
|
|
129
|
+
className: "flex h-10 w-10 items-center justify-center rounded-lg bg-bg-sunken",
|
|
130
|
+
children: /* @__PURE__ */ C(g, { className: "h-5 w-5 text-text-secondary" })
|
|
131
|
+
}), /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
|
|
132
|
+
className: "text-2xl font-bold text-text-primary",
|
|
133
|
+
children: W.totalOrders
|
|
134
|
+
}), /* @__PURE__ */ C("p", {
|
|
135
|
+
className: "text-xs text-text-secondary",
|
|
136
|
+
children: z("labsofscience.customerDashboard.totalOrders", "Total Orders")
|
|
137
|
+
})] })]
|
|
138
|
+
})
|
|
139
|
+
}),
|
|
140
|
+
/* @__PURE__ */ C("div", {
|
|
141
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-4",
|
|
142
|
+
children: /* @__PURE__ */ w("div", {
|
|
143
|
+
className: "flex items-center gap-3",
|
|
144
|
+
children: [/* @__PURE__ */ C("div", {
|
|
145
|
+
className: "flex h-10 w-10 items-center justify-center rounded-lg bg-bg-sunken",
|
|
146
|
+
children: /* @__PURE__ */ C(d, { className: "h-5 w-5 text-text-secondary" })
|
|
147
|
+
}), /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
|
|
148
|
+
className: "text-2xl font-bold text-text-primary",
|
|
149
|
+
children: o(W.totalSpent, { minimumFractionDigits: 0 })
|
|
150
|
+
}), /* @__PURE__ */ C("p", {
|
|
151
|
+
className: "text-xs text-text-secondary",
|
|
152
|
+
children: z("labsofscience.customerDashboard.totalSpent", "Total Spent")
|
|
153
|
+
})] })]
|
|
154
|
+
})
|
|
155
|
+
}),
|
|
156
|
+
/* @__PURE__ */ C("div", {
|
|
157
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-4",
|
|
158
|
+
children: /* @__PURE__ */ w("div", {
|
|
159
|
+
className: "flex items-center gap-3",
|
|
160
|
+
children: [/* @__PURE__ */ C("div", {
|
|
161
|
+
className: "flex h-10 w-10 items-center justify-center rounded-lg bg-bg-sunken",
|
|
162
|
+
children: /* @__PURE__ */ C(f, { className: "h-5 w-5 text-text-secondary" })
|
|
163
|
+
}), /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
|
|
164
|
+
className: "text-2xl font-bold text-text-primary",
|
|
165
|
+
children: W.favoriteCount
|
|
166
|
+
}), /* @__PURE__ */ C("p", {
|
|
167
|
+
className: "text-xs text-text-secondary",
|
|
168
|
+
children: z("labsofscience.customerDashboard.favoriteCarts", "Favorite Carts")
|
|
169
|
+
})] })]
|
|
170
|
+
})
|
|
171
|
+
}),
|
|
172
|
+
/* @__PURE__ */ C("div", {
|
|
173
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-4",
|
|
174
|
+
children: /* @__PURE__ */ w("div", {
|
|
175
|
+
className: "flex items-center gap-3",
|
|
176
|
+
children: [/* @__PURE__ */ C("div", {
|
|
177
|
+
className: "flex h-10 w-10 items-center justify-center rounded-lg bg-bg-sunken",
|
|
178
|
+
children: /* @__PURE__ */ C(y, { className: "h-5 w-5 text-text-secondary" })
|
|
179
|
+
}), /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
|
|
180
|
+
className: "text-2xl font-bold text-text-primary",
|
|
181
|
+
children: W.avgRating.toFixed(1)
|
|
182
|
+
}), /* @__PURE__ */ C("p", {
|
|
183
|
+
className: "text-xs text-text-secondary",
|
|
184
|
+
children: z("labsofscience.customerDashboard.avgRatingGiven", "Avg Rating Given")
|
|
185
|
+
})] })]
|
|
186
|
+
})
|
|
187
|
+
})
|
|
188
|
+
]
|
|
189
|
+
}),
|
|
190
|
+
/* @__PURE__ */ w("div", {
|
|
191
|
+
className: "mt-8 grid grid-cols-1 gap-8 lg:grid-cols-3",
|
|
192
|
+
children: [/* @__PURE__ */ w("div", {
|
|
193
|
+
className: "lg:col-span-2 space-y-8",
|
|
194
|
+
children: [
|
|
195
|
+
/* @__PURE__ */ w("section", { children: [/* @__PURE__ */ C("h2", {
|
|
196
|
+
className: "text-lg font-semibold text-text-primary mb-4",
|
|
197
|
+
children: z("labsofscience.customerDashboard.quickActions", "Quick Actions")
|
|
198
|
+
}), /* @__PURE__ */ w("div", {
|
|
199
|
+
className: "grid grid-cols-1 gap-3 sm:grid-cols-3",
|
|
200
|
+
children: [
|
|
201
|
+
/* @__PURE__ */ w("button", {
|
|
202
|
+
type: "button",
|
|
203
|
+
onClick: () => k("/customer/carts"),
|
|
204
|
+
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"),
|
|
205
|
+
children: [/* @__PURE__ */ C("div", {
|
|
206
|
+
className: "flex h-10 w-10 shrink-0 items-center justify-center rounded-lg bg-status-info-bg-subtle",
|
|
207
|
+
children: /* @__PURE__ */ C(_, { className: "h-5 w-5 text-status-info-text" })
|
|
208
|
+
}), /* @__PURE__ */ w("div", {
|
|
209
|
+
className: "min-w-0",
|
|
210
|
+
children: [/* @__PURE__ */ C("p", {
|
|
211
|
+
className: "text-sm font-semibold text-text-primary",
|
|
212
|
+
children: z("labsofscience.customerDashboard.discoverCarts", "Discover Carts")
|
|
213
|
+
}), /* @__PURE__ */ C("p", {
|
|
214
|
+
className: "text-xs text-text-secondary",
|
|
215
|
+
children: z("labsofscience.customerDashboard.findNearbyCarts", "Find nearby carts")
|
|
216
|
+
})]
|
|
182
217
|
})]
|
|
183
|
-
})
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
218
|
+
}),
|
|
219
|
+
/* @__PURE__ */ w("button", {
|
|
220
|
+
type: "button",
|
|
221
|
+
onClick: () => k("/customer/orders"),
|
|
222
|
+
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"),
|
|
223
|
+
children: [/* @__PURE__ */ C("div", {
|
|
224
|
+
className: "flex h-10 w-10 shrink-0 items-center justify-center rounded-lg bg-status-success-bg-subtle",
|
|
225
|
+
children: /* @__PURE__ */ C(u, { className: "h-5 w-5 text-status-success-text" })
|
|
226
|
+
}), /* @__PURE__ */ w("div", {
|
|
227
|
+
className: "min-w-0",
|
|
228
|
+
children: [/* @__PURE__ */ C("p", {
|
|
229
|
+
className: "text-sm font-semibold text-text-primary",
|
|
230
|
+
children: z("labsofscience.customerDashboard.orderHistory", "Order History")
|
|
231
|
+
}), /* @__PURE__ */ C("p", {
|
|
232
|
+
className: "text-xs text-text-secondary",
|
|
233
|
+
children: z("labsofscience.customerDashboard.viewPastOrders", "View past orders")
|
|
234
|
+
})]
|
|
200
235
|
})]
|
|
201
|
-
})
|
|
202
|
-
|
|
203
|
-
|
|
236
|
+
}),
|
|
237
|
+
/* @__PURE__ */ w("button", {
|
|
238
|
+
type: "button",
|
|
239
|
+
onClick: () => k("/customer/favorites"),
|
|
240
|
+
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"),
|
|
241
|
+
children: [/* @__PURE__ */ C("div", {
|
|
242
|
+
className: "flex h-10 w-10 shrink-0 items-center justify-center rounded-lg bg-status-error-bg-subtle",
|
|
243
|
+
children: /* @__PURE__ */ C(f, { className: "h-5 w-5 text-status-error-text" })
|
|
244
|
+
}), /* @__PURE__ */ w("div", {
|
|
245
|
+
className: "min-w-0",
|
|
246
|
+
children: [/* @__PURE__ */ C("p", {
|
|
247
|
+
className: "text-sm font-semibold text-text-primary",
|
|
248
|
+
children: z("labsofscience.customerDashboard.favorites", "Favorites")
|
|
249
|
+
}), /* @__PURE__ */ C("p", {
|
|
250
|
+
className: "text-xs text-text-secondary",
|
|
251
|
+
children: z("labsofscience.customerDashboard.savedCarts", "Saved carts")
|
|
252
|
+
})]
|
|
253
|
+
})]
|
|
254
|
+
})
|
|
255
|
+
]
|
|
256
|
+
})] }),
|
|
257
|
+
/* @__PURE__ */ w("section", { children: [/* @__PURE__ */ w("div", {
|
|
258
|
+
className: "flex items-center justify-between mb-4",
|
|
259
|
+
children: [/* @__PURE__ */ C("h2", {
|
|
260
|
+
className: "text-lg font-semibold text-text-primary",
|
|
261
|
+
children: z("labsofscience.customerDashboard.recentOrders", "Recent Orders")
|
|
262
|
+
}), /* @__PURE__ */ w("button", {
|
|
204
263
|
type: "button",
|
|
205
|
-
onClick: () =>
|
|
206
|
-
className:
|
|
207
|
-
children: [/* @__PURE__ */ C("
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
className: "
|
|
217
|
-
children:
|
|
264
|
+
onClick: () => k("/customer/orders"),
|
|
265
|
+
className: "flex items-center gap-1 text-sm font-medium text-text-secondary hover:text-text-primary transition-colors",
|
|
266
|
+
children: [z("labsofscience.common.viewAll", "View All"), /* @__PURE__ */ C(l, { className: "h-4 w-4" })]
|
|
267
|
+
})]
|
|
268
|
+
}), H.length > 0 ? /* @__PURE__ */ C("div", {
|
|
269
|
+
className: "space-y-3",
|
|
270
|
+
children: H.map((e) => /* @__PURE__ */ C("div", {
|
|
271
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-4",
|
|
272
|
+
children: /* @__PURE__ */ w("div", {
|
|
273
|
+
className: "flex flex-col sm:flex-row sm:items-start sm:justify-between gap-3",
|
|
274
|
+
children: [/* @__PURE__ */ w("div", {
|
|
275
|
+
className: "flex-1 min-w-0",
|
|
276
|
+
children: [
|
|
277
|
+
/* @__PURE__ */ w("div", {
|
|
278
|
+
className: "flex flex-wrap items-center gap-2 mb-1",
|
|
279
|
+
children: [/* @__PURE__ */ C("h3", {
|
|
280
|
+
className: "text-sm font-semibold text-text-primary",
|
|
281
|
+
children: e.cartName
|
|
282
|
+
}), /* @__PURE__ */ C("span", {
|
|
283
|
+
className: t("inline-flex items-center rounded-full px-2 py-0.5 text-xs font-medium capitalize", G(e.status)),
|
|
284
|
+
children: e.status.replace(/_/g, " ")
|
|
285
|
+
})]
|
|
286
|
+
}),
|
|
287
|
+
/* @__PURE__ */ C("p", {
|
|
288
|
+
className: "text-xs text-text-secondary mb-2 leading-relaxed",
|
|
289
|
+
children: e.items.map((e) => `${e.name} (${e.quantity})`).join(", ")
|
|
290
|
+
}),
|
|
291
|
+
/* @__PURE__ */ w("div", {
|
|
292
|
+
className: "flex flex-wrap items-center gap-3 text-xs text-text-secondary",
|
|
293
|
+
children: [
|
|
294
|
+
/* @__PURE__ */ C("span", {
|
|
295
|
+
className: "font-medium text-text-primary",
|
|
296
|
+
children: o(e.total, { minimumFractionDigits: 0 })
|
|
297
|
+
}),
|
|
298
|
+
/* @__PURE__ */ C("span", { children: new Date(e.orderDate).toLocaleDateString() }),
|
|
299
|
+
e.rating && /* @__PURE__ */ w("span", {
|
|
300
|
+
className: "flex items-center gap-1",
|
|
301
|
+
children: [/* @__PURE__ */ C(y, { className: "h-3 w-3 fill-status-warning-text text-status-warning-text" }), e.rating]
|
|
302
|
+
})
|
|
303
|
+
]
|
|
304
|
+
})
|
|
305
|
+
]
|
|
306
|
+
}), /* @__PURE__ */ C("button", {
|
|
307
|
+
type: "button",
|
|
308
|
+
onClick: () => k(`/customer/orders/${e.id}`),
|
|
309
|
+
className: "rounded-lg border border-border-seam px-3 py-1.5 text-xs font-medium text-text-primary hover:bg-accent transition-colors",
|
|
310
|
+
children: z("labsofscience.customerDashboard.viewDetails", "View Details")
|
|
218
311
|
})]
|
|
219
|
-
})
|
|
220
|
-
})
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
className: "space-y-3",
|
|
236
|
-
children: z.map((e) => /* @__PURE__ */ C("div", {
|
|
237
|
-
className: "rounded-lg border border-border-seam bg-bg-surface p-4",
|
|
238
|
-
children: /* @__PURE__ */ w("div", {
|
|
239
|
-
className: "flex flex-col sm:flex-row sm:items-start sm:justify-between gap-3",
|
|
312
|
+
})
|
|
313
|
+
}, e.id))
|
|
314
|
+
}) : /* @__PURE__ */ w("div", {
|
|
315
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-8 text-center",
|
|
316
|
+
children: [/* @__PURE__ */ C(v, { className: "mx-auto h-10 w-10 text-text-secondary/50" }), /* @__PURE__ */ C("p", {
|
|
317
|
+
className: "mt-3 text-sm text-text-secondary",
|
|
318
|
+
children: z("labsofscience.customerDashboard.noRecentOrders", "No recent orders")
|
|
319
|
+
})]
|
|
320
|
+
})] }),
|
|
321
|
+
/* @__PURE__ */ w("section", { children: [/* @__PURE__ */ C("h2", {
|
|
322
|
+
className: "text-lg font-semibold text-text-primary mb-4",
|
|
323
|
+
children: z("labsofscience.customerDashboard.recommendedForYou", "Recommended for You")
|
|
324
|
+
}), /* @__PURE__ */ C("div", {
|
|
325
|
+
className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
|
|
326
|
+
children: U.map((e) => /* @__PURE__ */ w("div", {
|
|
327
|
+
className: "rounded-lg border border-border-seam bg-bg-surface overflow-hidden shadow-sm hover:shadow-md transition-shadow",
|
|
240
328
|
children: [/* @__PURE__ */ w("div", {
|
|
241
|
-
className: "
|
|
329
|
+
className: "relative h-40",
|
|
330
|
+
children: [/* @__PURE__ */ C("img", {
|
|
331
|
+
src: e.image,
|
|
332
|
+
alt: e.name,
|
|
333
|
+
className: "h-full w-full object-cover"
|
|
334
|
+
}), /* @__PURE__ */ C("div", {
|
|
335
|
+
className: "absolute top-2 right-2",
|
|
336
|
+
children: /* @__PURE__ */ C("span", {
|
|
337
|
+
className: t("inline-flex items-center rounded-full px-2 py-0.5 text-xs font-medium", e.isOpen ? "bg-status-success-bg-subtle text-status-success-text" : "bg-status-error-bg-subtle text-status-error-text"),
|
|
338
|
+
children: e.isOpen ? z("labsofscience.customerDashboard.open", "Open") : z("labsofscience.customerDashboard.closed", "Closed")
|
|
339
|
+
})
|
|
340
|
+
})]
|
|
341
|
+
}), /* @__PURE__ */ w("div", {
|
|
342
|
+
className: "p-4",
|
|
242
343
|
children: [
|
|
243
344
|
/* @__PURE__ */ w("div", {
|
|
244
|
-
className: "flex
|
|
245
|
-
children: [/* @__PURE__ */
|
|
246
|
-
className: "
|
|
247
|
-
children:
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
345
|
+
className: "flex items-start justify-between mb-2",
|
|
346
|
+
children: [/* @__PURE__ */ w("div", {
|
|
347
|
+
className: "min-w-0 flex-1",
|
|
348
|
+
children: [/* @__PURE__ */ C("h3", {
|
|
349
|
+
className: "text-sm font-semibold text-text-primary",
|
|
350
|
+
children: e.name
|
|
351
|
+
}), /* @__PURE__ */ C("p", {
|
|
352
|
+
className: "text-xs text-text-secondary",
|
|
353
|
+
children: e.category
|
|
354
|
+
})]
|
|
355
|
+
}), /* @__PURE__ */ w("div", {
|
|
356
|
+
className: "flex items-center gap-1 text-xs",
|
|
357
|
+
children: [/* @__PURE__ */ C(y, { className: "h-3 w-3 fill-status-warning-text text-status-warning-text" }), /* @__PURE__ */ C("span", {
|
|
358
|
+
className: "font-medium text-text-primary",
|
|
359
|
+
children: e.rating
|
|
360
|
+
})]
|
|
251
361
|
})]
|
|
252
362
|
}),
|
|
253
|
-
/* @__PURE__ */ C("p", {
|
|
254
|
-
className: "text-xs text-text-secondary mb-2 leading-relaxed",
|
|
255
|
-
children: e.items.map((e) => `${e.name} (${e.quantity})`).join(", ")
|
|
256
|
-
}),
|
|
257
363
|
/* @__PURE__ */ w("div", {
|
|
258
|
-
className: "flex
|
|
364
|
+
className: "flex items-center gap-3 text-xs text-text-secondary mb-3",
|
|
365
|
+
children: [/* @__PURE__ */ w("span", {
|
|
366
|
+
className: "flex items-center gap-1",
|
|
367
|
+
children: [
|
|
368
|
+
/* @__PURE__ */ C(m, { className: "h-3 w-3" }),
|
|
369
|
+
e.distance,
|
|
370
|
+
"km away"
|
|
371
|
+
]
|
|
372
|
+
}), /* @__PURE__ */ w("span", {
|
|
373
|
+
className: "flex items-center gap-1",
|
|
374
|
+
children: [
|
|
375
|
+
/* @__PURE__ */ C(u, { className: "h-3 w-3" }),
|
|
376
|
+
e.estimatedTime,
|
|
377
|
+
" mins"
|
|
378
|
+
]
|
|
379
|
+
})]
|
|
380
|
+
}),
|
|
381
|
+
/* @__PURE__ */ C("button", {
|
|
382
|
+
type: "button",
|
|
383
|
+
disabled: !e.isOpen,
|
|
384
|
+
onClick: () => e.isOpen && k(`/customer/carts/${e.id}`),
|
|
385
|
+
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"),
|
|
386
|
+
children: e.isOpen ? z("labsofscience.customerDashboard.viewMenu", "View Menu") : z("labsofscience.customerDashboard.currentlyClosed", "Currently Closed")
|
|
387
|
+
})
|
|
388
|
+
]
|
|
389
|
+
})]
|
|
390
|
+
}, e.id))
|
|
391
|
+
})] })
|
|
392
|
+
]
|
|
393
|
+
}), /* @__PURE__ */ w("div", {
|
|
394
|
+
className: "space-y-6",
|
|
395
|
+
children: [
|
|
396
|
+
/* @__PURE__ */ w("div", {
|
|
397
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-5",
|
|
398
|
+
children: [/* @__PURE__ */ C("h3", {
|
|
399
|
+
className: "text-base font-semibold text-text-primary mb-4",
|
|
400
|
+
children: z("labsofscience.customerDashboard.personalizedRecommendations", "Personalized Recommendations")
|
|
401
|
+
}), /* @__PURE__ */ C("div", {
|
|
402
|
+
className: "space-y-3",
|
|
403
|
+
children: V.map((e) => /* @__PURE__ */ C("div", {
|
|
404
|
+
className: t("rounded-lg border p-3", q(e.type)),
|
|
405
|
+
children: /* @__PURE__ */ w("div", {
|
|
406
|
+
className: "flex items-start gap-2",
|
|
407
|
+
children: [/* @__PURE__ */ C("div", {
|
|
408
|
+
className: "mt-0.5 shrink-0",
|
|
409
|
+
children: K(e.type)
|
|
410
|
+
}), /* @__PURE__ */ w("div", {
|
|
411
|
+
className: "flex-1 min-w-0",
|
|
259
412
|
children: [
|
|
260
|
-
/* @__PURE__ */
|
|
261
|
-
className: "
|
|
262
|
-
children:
|
|
413
|
+
/* @__PURE__ */ w("div", {
|
|
414
|
+
className: "flex items-center justify-between gap-2",
|
|
415
|
+
children: [/* @__PURE__ */ C("p", {
|
|
416
|
+
className: "text-xs font-semibold",
|
|
417
|
+
children: e.title
|
|
418
|
+
}), /* @__PURE__ */ w("span", {
|
|
419
|
+
className: "text-[10px] opacity-70",
|
|
420
|
+
children: [e.confidence, "%"]
|
|
421
|
+
})]
|
|
422
|
+
}),
|
|
423
|
+
/* @__PURE__ */ C("p", {
|
|
424
|
+
className: "mt-1 text-xs opacity-80 leading-relaxed",
|
|
425
|
+
children: e.description
|
|
263
426
|
}),
|
|
264
|
-
/* @__PURE__ */ C("
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
427
|
+
/* @__PURE__ */ C("button", {
|
|
428
|
+
type: "button",
|
|
429
|
+
onClick: () => k("/customer/carts"),
|
|
430
|
+
className: "mt-2 text-[10px] font-semibold underline underline-offset-2",
|
|
431
|
+
children: e.action
|
|
268
432
|
})
|
|
269
433
|
]
|
|
270
|
-
})
|
|
271
|
-
]
|
|
272
|
-
}), /* @__PURE__ */ C("button", {
|
|
273
|
-
type: "button",
|
|
274
|
-
onClick: () => E(`/customer/orders/${e.id}`),
|
|
275
|
-
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
|
-
children: I("labsofscience.customerDashboard.viewDetails", "View Details")
|
|
277
|
-
})]
|
|
278
|
-
})
|
|
279
|
-
}, e.id))
|
|
280
|
-
}) : /* @__PURE__ */ w("div", {
|
|
281
|
-
className: "rounded-lg border border-border-seam bg-bg-surface p-8 text-center",
|
|
282
|
-
children: [/* @__PURE__ */ C(v, { className: "mx-auto h-10 w-10 text-text-secondary/50" }), /* @__PURE__ */ C("p", {
|
|
283
|
-
className: "mt-3 text-sm text-text-secondary",
|
|
284
|
-
children: I("labsofscience.customerDashboard.noRecentOrders", "No recent orders")
|
|
285
|
-
})]
|
|
286
|
-
})] }),
|
|
287
|
-
/* @__PURE__ */ w("section", { children: [/* @__PURE__ */ C("h2", {
|
|
288
|
-
className: "text-lg font-semibold text-text-primary mb-4",
|
|
289
|
-
children: I("labsofscience.customerDashboard.recommendedForYou", "Recommended for You")
|
|
290
|
-
}), /* @__PURE__ */ C("div", {
|
|
291
|
-
className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
|
|
292
|
-
children: B.map((e) => /* @__PURE__ */ w("div", {
|
|
293
|
-
className: "rounded-lg border border-border-seam bg-bg-surface overflow-hidden shadow-sm hover:shadow-md transition-shadow",
|
|
294
|
-
children: [/* @__PURE__ */ w("div", {
|
|
295
|
-
className: "relative h-40",
|
|
296
|
-
children: [/* @__PURE__ */ C("img", {
|
|
297
|
-
src: e.image,
|
|
298
|
-
alt: e.name,
|
|
299
|
-
className: "h-full w-full object-cover"
|
|
300
|
-
}), /* @__PURE__ */ C("div", {
|
|
301
|
-
className: "absolute top-2 right-2",
|
|
302
|
-
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-status-success-bg-subtle text-status-success-text" : "bg-status-error-bg-subtle text-status-error-text"),
|
|
304
|
-
children: e.isOpen ? I("labsofscience.customerDashboard.open", "Open") : I("labsofscience.customerDashboard.closed", "Closed")
|
|
434
|
+
})]
|
|
305
435
|
})
|
|
306
|
-
})
|
|
436
|
+
}, e.id))
|
|
437
|
+
})]
|
|
438
|
+
}),
|
|
439
|
+
/* @__PURE__ */ w("div", {
|
|
440
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-5",
|
|
441
|
+
children: [/* @__PURE__ */ C("h3", {
|
|
442
|
+
className: "text-base font-semibold text-text-primary mb-3",
|
|
443
|
+
children: z("labsofscience.customerDashboard.quickLinks", "Quick Links")
|
|
307
444
|
}), /* @__PURE__ */ w("div", {
|
|
308
|
-
className: "
|
|
445
|
+
className: "space-y-2",
|
|
309
446
|
children: [
|
|
310
|
-
/* @__PURE__ */ w("
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
className: "text-sm font-semibold text-text-primary",
|
|
316
|
-
children: e.name
|
|
317
|
-
}), /* @__PURE__ */ C("p", {
|
|
318
|
-
className: "text-xs text-text-secondary",
|
|
319
|
-
children: e.category
|
|
320
|
-
})]
|
|
321
|
-
}), /* @__PURE__ */ w("div", {
|
|
322
|
-
className: "flex items-center gap-1 text-xs",
|
|
323
|
-
children: [/* @__PURE__ */ C(y, { className: "h-3 w-3 fill-status-warning-text text-status-warning-text" }), /* @__PURE__ */ C("span", {
|
|
324
|
-
className: "font-medium text-text-primary",
|
|
325
|
-
children: e.rating
|
|
326
|
-
})]
|
|
327
|
-
})]
|
|
447
|
+
/* @__PURE__ */ w("button", {
|
|
448
|
+
type: "button",
|
|
449
|
+
onClick: () => k("/customer/profile"),
|
|
450
|
+
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",
|
|
451
|
+
children: [/* @__PURE__ */ C(x, { className: "h-4 w-4 text-text-secondary" }), z("labsofscience.customerDashboard.profileSettings", "Profile Settings")]
|
|
328
452
|
}),
|
|
329
|
-
/* @__PURE__ */ w("
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
/* @__PURE__ */ C(m, { className: "h-3 w-3" }),
|
|
335
|
-
e.distance,
|
|
336
|
-
"km away"
|
|
337
|
-
]
|
|
338
|
-
}), /* @__PURE__ */ w("span", {
|
|
339
|
-
className: "flex items-center gap-1",
|
|
340
|
-
children: [
|
|
341
|
-
/* @__PURE__ */ C(u, { className: "h-3 w-3" }),
|
|
342
|
-
e.estimatedTime,
|
|
343
|
-
" mins"
|
|
344
|
-
]
|
|
345
|
-
})]
|
|
453
|
+
/* @__PURE__ */ w("button", {
|
|
454
|
+
type: "button",
|
|
455
|
+
onClick: () => k("/customer/addresses"),
|
|
456
|
+
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",
|
|
457
|
+
children: [/* @__PURE__ */ C(m, { className: "h-4 w-4 text-text-secondary" }), z("labsofscience.customerDashboard.savedAddresses", "Saved Addresses")]
|
|
346
458
|
}),
|
|
347
|
-
/* @__PURE__ */
|
|
459
|
+
/* @__PURE__ */ w("button", {
|
|
348
460
|
type: "button",
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
children: e.isOpen ? I("labsofscience.customerDashboard.viewMenu", "View Menu") : I("labsofscience.customerDashboard.currentlyClosed", "Currently Closed")
|
|
461
|
+
onClick: () => k("/customer/payment-methods"),
|
|
462
|
+
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",
|
|
463
|
+
children: [/* @__PURE__ */ C(d, { className: "h-4 w-4 text-text-secondary" }), z("labsofscience.customerDashboard.paymentMethods", "Payment Methods")]
|
|
353
464
|
})
|
|
354
465
|
]
|
|
355
466
|
})]
|
|
356
|
-
},
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
}), /* @__PURE__ */ C("div", {
|
|
368
|
-
className: "space-y-3",
|
|
369
|
-
children: R.map((e) => /* @__PURE__ */ C("div", {
|
|
370
|
-
className: t("rounded-lg border p-3", W(e.type)),
|
|
371
|
-
children: /* @__PURE__ */ w("div", {
|
|
372
|
-
className: "flex items-start gap-2",
|
|
373
|
-
children: [/* @__PURE__ */ C("div", {
|
|
374
|
-
className: "mt-0.5 shrink-0",
|
|
375
|
-
children: U(e.type)
|
|
376
|
-
}), /* @__PURE__ */ w("div", {
|
|
467
|
+
}),
|
|
468
|
+
/* @__PURE__ */ w("div", {
|
|
469
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-5",
|
|
470
|
+
children: [
|
|
471
|
+
/* @__PURE__ */ C("h3", {
|
|
472
|
+
className: "text-base font-semibold text-text-primary mb-3",
|
|
473
|
+
children: z("labsofscience.customerDashboard.currentLocation", "Current Location")
|
|
474
|
+
}),
|
|
475
|
+
/* @__PURE__ */ w("div", {
|
|
476
|
+
className: "flex items-start gap-3",
|
|
477
|
+
children: [/* @__PURE__ */ C(h, { className: "h-4 w-4 text-status-info-text mt-0.5 shrink-0" }), /* @__PURE__ */ w("div", {
|
|
377
478
|
className: "flex-1 min-w-0",
|
|
378
479
|
children: [
|
|
379
|
-
/* @__PURE__ */
|
|
380
|
-
className: "
|
|
381
|
-
children:
|
|
382
|
-
className: "text-xs font-semibold",
|
|
383
|
-
children: e.title
|
|
384
|
-
}), /* @__PURE__ */ w("span", {
|
|
385
|
-
className: "text-[10px] opacity-70",
|
|
386
|
-
children: [e.confidence, "%"]
|
|
387
|
-
})]
|
|
480
|
+
/* @__PURE__ */ C("p", {
|
|
481
|
+
className: "text-sm font-medium text-text-primary",
|
|
482
|
+
children: "Koramangala"
|
|
388
483
|
}),
|
|
389
484
|
/* @__PURE__ */ C("p", {
|
|
390
|
-
className: "
|
|
391
|
-
children:
|
|
485
|
+
className: "text-xs text-text-secondary",
|
|
486
|
+
children: "80 Feet Road, 6th Block"
|
|
392
487
|
}),
|
|
393
|
-
/* @__PURE__ */ C("
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
className: "mt-2 text-[10px] font-semibold underline underline-offset-2",
|
|
397
|
-
children: e.action
|
|
488
|
+
/* @__PURE__ */ C("p", {
|
|
489
|
+
className: "text-xs text-text-secondary",
|
|
490
|
+
children: "Bangalore, Karnataka"
|
|
398
491
|
})
|
|
399
492
|
]
|
|
400
493
|
})]
|
|
494
|
+
}),
|
|
495
|
+
/* @__PURE__ */ C("button", {
|
|
496
|
+
type: "button",
|
|
497
|
+
onClick: () => k("/customer/addresses"),
|
|
498
|
+
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",
|
|
499
|
+
children: z("labsofscience.customerDashboard.updateLocation", "Update Location")
|
|
401
500
|
})
|
|
402
|
-
|
|
403
|
-
})
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
className: "rounded-lg border border-border-seam bg-bg-surface p-5",
|
|
407
|
-
children: [/* @__PURE__ */ C("h3", {
|
|
408
|
-
className: "text-base font-semibold text-text-primary mb-3",
|
|
409
|
-
children: I("labsofscience.customerDashboard.quickLinks", "Quick Links")
|
|
410
|
-
}), /* @__PURE__ */ w("div", {
|
|
411
|
-
className: "space-y-2",
|
|
501
|
+
]
|
|
502
|
+
}),
|
|
503
|
+
/* @__PURE__ */ w("div", {
|
|
504
|
+
className: "rounded-lg bg-gradient-to-r from-status-info-bg-subtle from-accent-purple border border-status-info-border p-5",
|
|
412
505
|
children: [
|
|
413
|
-
/* @__PURE__ */
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
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",
|
|
417
|
-
children: [/* @__PURE__ */ C(x, { className: "h-4 w-4 text-text-secondary" }), I("labsofscience.customerDashboard.profileSettings", "Profile Settings")]
|
|
506
|
+
/* @__PURE__ */ C("h3", {
|
|
507
|
+
className: "text-base font-semibold text-text-primary mb-2",
|
|
508
|
+
children: z("labsofscience.customerDashboard.specialOffers", "Special Offers")
|
|
418
509
|
}),
|
|
419
|
-
/* @__PURE__ */
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
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",
|
|
423
|
-
children: [/* @__PURE__ */ C(m, { className: "h-4 w-4 text-text-secondary" }), I("labsofscience.customerDashboard.savedAddresses", "Saved Addresses")]
|
|
510
|
+
/* @__PURE__ */ C("p", {
|
|
511
|
+
className: "text-xs text-text-secondary mb-3 leading-relaxed",
|
|
512
|
+
children: z("labsofscience.customerDashboard.specialOffersDescription", "Get 25% off on your next order from featured carts")
|
|
424
513
|
}),
|
|
425
|
-
/* @__PURE__ */
|
|
514
|
+
/* @__PURE__ */ C("button", {
|
|
426
515
|
type: "button",
|
|
427
|
-
onClick: () =>
|
|
428
|
-
className: "
|
|
429
|
-
children:
|
|
516
|
+
onClick: () => k("/customer/carts"),
|
|
517
|
+
className: "w-full rounded-lg bg-foreground px-3 py-2 text-sm font-medium text-background hover:opacity-90 transition-opacity",
|
|
518
|
+
children: z("labsofscience.customerDashboard.viewOffers", "View Offers")
|
|
430
519
|
})
|
|
431
520
|
]
|
|
432
|
-
})
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
/* @__PURE__ */ C("h3", {
|
|
438
|
-
className: "text-base font-semibold text-text-primary mb-3",
|
|
439
|
-
children: I("labsofscience.customerDashboard.currentLocation", "Current Location")
|
|
440
|
-
}),
|
|
441
|
-
/* @__PURE__ */ w("div", {
|
|
442
|
-
className: "flex items-start gap-3",
|
|
443
|
-
children: [/* @__PURE__ */ C(h, { className: "h-4 w-4 text-status-info-text mt-0.5 shrink-0" }), /* @__PURE__ */ w("div", {
|
|
444
|
-
className: "flex-1 min-w-0",
|
|
445
|
-
children: [
|
|
446
|
-
/* @__PURE__ */ C("p", {
|
|
447
|
-
className: "text-sm font-medium text-text-primary",
|
|
448
|
-
children: "Koramangala"
|
|
449
|
-
}),
|
|
450
|
-
/* @__PURE__ */ C("p", {
|
|
451
|
-
className: "text-xs text-text-secondary",
|
|
452
|
-
children: "80 Feet Road, 6th Block"
|
|
453
|
-
}),
|
|
454
|
-
/* @__PURE__ */ C("p", {
|
|
455
|
-
className: "text-xs text-text-secondary",
|
|
456
|
-
children: "Bangalore, Karnataka"
|
|
457
|
-
})
|
|
458
|
-
]
|
|
459
|
-
})]
|
|
460
|
-
}),
|
|
461
|
-
/* @__PURE__ */ C("button", {
|
|
462
|
-
type: "button",
|
|
463
|
-
onClick: () => E("/customer/addresses"),
|
|
464
|
-
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
|
-
children: I("labsofscience.customerDashboard.updateLocation", "Update Location")
|
|
466
|
-
})
|
|
467
|
-
]
|
|
468
|
-
}),
|
|
469
|
-
/* @__PURE__ */ w("div", {
|
|
470
|
-
className: "rounded-lg bg-gradient-to-r from-status-info-bg-subtle from-accent-purple border border-status-info-border p-5",
|
|
471
|
-
children: [
|
|
472
|
-
/* @__PURE__ */ C("h3", {
|
|
473
|
-
className: "text-base font-semibold text-text-primary mb-2",
|
|
474
|
-
children: I("labsofscience.customerDashboard.specialOffers", "Special Offers")
|
|
475
|
-
}),
|
|
476
|
-
/* @__PURE__ */ C("p", {
|
|
477
|
-
className: "text-xs text-text-secondary mb-3 leading-relaxed",
|
|
478
|
-
children: I("labsofscience.customerDashboard.specialOffersDescription", "Get 25% off on your next order from featured carts")
|
|
479
|
-
}),
|
|
480
|
-
/* @__PURE__ */ C("button", {
|
|
481
|
-
type: "button",
|
|
482
|
-
onClick: () => E("/customer/carts"),
|
|
483
|
-
className: "w-full rounded-lg bg-foreground px-3 py-2 text-sm font-medium text-background hover:opacity-90 transition-opacity",
|
|
484
|
-
children: I("labsofscience.customerDashboard.viewOffers", "View Offers")
|
|
485
|
-
})
|
|
486
|
-
]
|
|
487
|
-
})
|
|
488
|
-
]
|
|
489
|
-
})]
|
|
490
|
-
})]
|
|
521
|
+
})
|
|
522
|
+
]
|
|
523
|
+
})]
|
|
524
|
+
})
|
|
525
|
+
]
|
|
491
526
|
});
|
|
492
527
|
}
|
|
493
528
|
//#endregion
|
|
494
|
-
export {
|
|
529
|
+
export { k as CustomerDashboard };
|
|
495
530
|
|
|
496
531
|
//# sourceMappingURL=CustomerDashboard.js.map
|