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