@burdenoff/microfe-coolandlovely 2026.625.2 → 2026.628.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/coolandlovely/CoolAndLovelyRoot.js +66 -122
- package/dist/coolandlovely/CoolAndLovelyRoot.js.map +1 -1
- package/dist/coolandlovely/CoolAndLovelyRoutes.js +87 -175
- package/dist/coolandlovely/CoolAndLovelyRoutes.js.map +1 -1
- package/dist/coolandlovely/components/Field.js +81 -0
- package/dist/coolandlovely/components/Field.js.map +1 -0
- package/dist/coolandlovely/components/StateViews.js +34 -0
- package/dist/coolandlovely/components/StateViews.js.map +1 -0
- package/dist/coolandlovely/components/StatusBadge.js +25 -22
- package/dist/coolandlovely/components/StatusBadge.js.map +1 -1
- package/dist/coolandlovely/components/TagList.js +21 -0
- package/dist/coolandlovely/components/TagList.js.map +1 -0
- package/dist/coolandlovely/components/Thumbnail.js +29 -0
- package/dist/coolandlovely/components/Thumbnail.js.map +1 -0
- package/dist/coolandlovely/context/CoolAndLovelyContext.js +10 -10
- package/dist/coolandlovely/context/CoolAndLovelyContext.js.map +1 -1
- package/dist/coolandlovely/hooks/index.js +1 -0
- package/dist/coolandlovely/hooks/useCoolAndLovelyApi.js +462 -169
- package/dist/coolandlovely/hooks/useCoolAndLovelyApi.js.map +1 -1
- package/dist/coolandlovely/pages/HomePage.js +251 -845
- package/dist/coolandlovely/pages/HomePage.js.map +1 -1
- package/dist/coolandlovely/pages/brands/BrandDetailPage.js +319 -0
- package/dist/coolandlovely/pages/brands/BrandDetailPage.js.map +1 -0
- package/dist/coolandlovely/pages/brands/BrandFormPage.js +190 -0
- package/dist/coolandlovely/pages/brands/BrandFormPage.js.map +1 -0
- package/dist/coolandlovely/pages/brands/BrandsListPage.js +158 -0
- package/dist/coolandlovely/pages/brands/BrandsListPage.js.map +1 -0
- package/dist/coolandlovely/pages/collaborations/CollaborationDetailPage.js +253 -0
- package/dist/coolandlovely/pages/collaborations/CollaborationDetailPage.js.map +1 -0
- package/dist/coolandlovely/pages/collaborations/CollaborationFormPage.js +206 -0
- package/dist/coolandlovely/pages/collaborations/CollaborationFormPage.js.map +1 -0
- package/dist/coolandlovely/pages/collaborations/CollaborationsListPage.js +129 -0
- package/dist/coolandlovely/pages/collaborations/CollaborationsListPage.js.map +1 -0
- package/dist/coolandlovely/pages/collections/CollectionDetailPage.js +217 -0
- package/dist/coolandlovely/pages/collections/CollectionDetailPage.js.map +1 -0
- package/dist/coolandlovely/pages/collections/CollectionFormPage.js +217 -0
- package/dist/coolandlovely/pages/collections/CollectionFormPage.js.map +1 -0
- package/dist/coolandlovely/pages/collections/CollectionsListPage.js +122 -0
- package/dist/coolandlovely/pages/collections/CollectionsListPage.js.map +1 -0
- package/dist/coolandlovely/pages/items/StyleItemDetailPage.js +230 -0
- package/dist/coolandlovely/pages/items/StyleItemDetailPage.js.map +1 -0
- package/dist/coolandlovely/pages/items/StyleItemFormPage.js +276 -0
- package/dist/coolandlovely/pages/items/StyleItemFormPage.js.map +1 -0
- package/dist/coolandlovely/pages/items/StyleItemsListPage.js +170 -0
- package/dist/coolandlovely/pages/items/StyleItemsListPage.js.map +1 -0
- package/dist/coolandlovely/pages/lookbooks/LookbookDetailPage.js +124 -0
- package/dist/coolandlovely/pages/lookbooks/LookbookDetailPage.js.map +1 -0
- package/dist/coolandlovely/pages/lookbooks/LookbooksListPage.js +156 -0
- package/dist/coolandlovely/pages/lookbooks/LookbooksListPage.js.map +1 -0
- package/dist/coolandlovely/pages/looks/LookDetailPage.js +238 -0
- package/dist/coolandlovely/pages/looks/LookDetailPage.js.map +1 -0
- package/dist/coolandlovely/pages/looks/LookFormPage.js +209 -0
- package/dist/coolandlovely/pages/looks/LookFormPage.js.map +1 -0
- package/dist/coolandlovely/pages/looks/LooksListPage.js +181 -0
- package/dist/coolandlovely/pages/looks/LooksListPage.js.map +1 -0
- package/dist/coolandlovely/pages/profile/StyleProfilePage.js +224 -0
- package/dist/coolandlovely/pages/profile/StyleProfilePage.js.map +1 -0
- package/dist/coolandlovely/pages/wardrobe/WardrobeFormPage.js +173 -0
- package/dist/coolandlovely/pages/wardrobe/WardrobeFormPage.js.map +1 -0
- package/dist/coolandlovely/pages/wardrobe/WardrobeListPage.js +172 -0
- package/dist/coolandlovely/pages/wardrobe/WardrobeListPage.js.map +1 -0
- package/dist/coolandlovely/store/coolandlovelyStore.js +2 -6
- package/dist/coolandlovely/store/coolandlovelyStore.js.map +1 -1
- package/dist/coolandlovely/utils/formatters.js +31 -23
- package/dist/coolandlovely/utils/formatters.js.map +1 -1
- package/dist/coolandlovely/utils/icons.js +34 -0
- package/dist/coolandlovely/utils/icons.js.map +1 -0
- package/dist/index.js +4 -4
- package/package.json +1 -1
- package/dist/coolandlovely/components/InvestmentCard.js +0 -98
- package/dist/coolandlovely/components/InvestmentCard.js.map +0 -1
- package/dist/coolandlovely/components/RatingDisplay.js +0 -35
- package/dist/coolandlovely/components/RatingDisplay.js.map +0 -1
- package/dist/coolandlovely/mocks/data.js +0 -1517
- package/dist/coolandlovely/mocks/data.js.map +0 -1
- package/dist/coolandlovely/mocks/users.js +0 -34
- package/dist/coolandlovely/mocks/users.js.map +0 -1
- package/dist/coolandlovely/pages/admin/AdminAnalyticsPage.js +0 -651
- package/dist/coolandlovely/pages/admin/AdminAnalyticsPage.js.map +0 -1
- package/dist/coolandlovely/pages/admin/AdminDashboard.js +0 -673
- package/dist/coolandlovely/pages/admin/AdminDashboard.js.map +0 -1
- package/dist/coolandlovely/pages/admin/AdminFinancialPage.js +0 -427
- package/dist/coolandlovely/pages/admin/AdminFinancialPage.js.map +0 -1
- package/dist/coolandlovely/pages/admin/AdminOrdersPage.js +0 -665
- package/dist/coolandlovely/pages/admin/AdminOrdersPage.js.map +0 -1
- package/dist/coolandlovely/pages/admin/AdminProfilePage.js +0 -264
- package/dist/coolandlovely/pages/admin/AdminProfilePage.js.map +0 -1
- package/dist/coolandlovely/pages/admin/AdminSettingsPage.js +0 -654
- package/dist/coolandlovely/pages/admin/AdminSettingsPage.js.map +0 -1
- package/dist/coolandlovely/pages/admin/CartManagementPage.js +0 -874
- package/dist/coolandlovely/pages/admin/CartManagementPage.js.map +0 -1
- package/dist/coolandlovely/pages/admin/UserManagementPage.js +0 -898
- package/dist/coolandlovely/pages/admin/UserManagementPage.js.map +0 -1
- package/dist/coolandlovely/pages/cart-owner/AnalyticsDashboard.js +0 -842
- package/dist/coolandlovely/pages/cart-owner/AnalyticsDashboard.js.map +0 -1
- package/dist/coolandlovely/pages/cart-owner/BusinessSettingsPage.js +0 -705
- package/dist/coolandlovely/pages/cart-owner/BusinessSettingsPage.js.map +0 -1
- package/dist/coolandlovely/pages/cart-owner/CartOwnerDashboard.js +0 -802
- package/dist/coolandlovely/pages/cart-owner/CartOwnerDashboard.js.map +0 -1
- package/dist/coolandlovely/pages/cart-owner/CartOwnerProfilePage.js +0 -891
- package/dist/coolandlovely/pages/cart-owner/CartOwnerProfilePage.js.map +0 -1
- package/dist/coolandlovely/pages/cart-owner/CartServiceConfigPage.js +0 -639
- package/dist/coolandlovely/pages/cart-owner/CartServiceConfigPage.js.map +0 -1
- package/dist/coolandlovely/pages/cart-owner/InventoryManagementPage.js +0 -914
- package/dist/coolandlovely/pages/cart-owner/InventoryManagementPage.js.map +0 -1
- package/dist/coolandlovely/pages/cart-owner/OrderManagementPage.js +0 -882
- package/dist/coolandlovely/pages/cart-owner/OrderManagementPage.js.map +0 -1
- package/dist/coolandlovely/pages/cart-owner/StaffManagementPage.js +0 -831
- package/dist/coolandlovely/pages/cart-owner/StaffManagementPage.js.map +0 -1
- package/dist/coolandlovely/pages/common/HelpSupportPage.js +0 -1325
- package/dist/coolandlovely/pages/common/HelpSupportPage.js.map +0 -1
- package/dist/coolandlovely/pages/common/NotificationCenterPage.js +0 -671
- package/dist/coolandlovely/pages/common/NotificationCenterPage.js.map +0 -1
- package/dist/coolandlovely/pages/common/SettingsPage.js +0 -973
- package/dist/coolandlovely/pages/common/SettingsPage.js.map +0 -1
- package/dist/coolandlovely/pages/customer/BookingDetailsPage.js +0 -630
- package/dist/coolandlovely/pages/customer/BookingDetailsPage.js.map +0 -1
- package/dist/coolandlovely/pages/customer/CartDetailPage.js +0 -623
- package/dist/coolandlovely/pages/customer/CartDetailPage.js.map +0 -1
- package/dist/coolandlovely/pages/customer/CartDiscoveryPage.js +0 -558
- package/dist/coolandlovely/pages/customer/CartDiscoveryPage.js.map +0 -1
- package/dist/coolandlovely/pages/customer/CheckoutPage.js +0 -529
- package/dist/coolandlovely/pages/customer/CheckoutPage.js.map +0 -1
- package/dist/coolandlovely/pages/customer/CustomerDashboard.js +0 -538
- package/dist/coolandlovely/pages/customer/CustomerDashboard.js.map +0 -1
- package/dist/coolandlovely/pages/customer/CustomerProfilePage.js +0 -658
- package/dist/coolandlovely/pages/customer/CustomerProfilePage.js.map +0 -1
- package/dist/coolandlovely/pages/customer/DirectServiceBookingPage.js +0 -632
- package/dist/coolandlovely/pages/customer/DirectServiceBookingPage.js.map +0 -1
- package/dist/coolandlovely/pages/customer/FavoritesPage.js +0 -487
- package/dist/coolandlovely/pages/customer/FavoritesPage.js.map +0 -1
- package/dist/coolandlovely/pages/customer/OrderHistoryPage.js +0 -447
- package/dist/coolandlovely/pages/customer/OrderHistoryPage.js.map +0 -1
- package/dist/coolandlovely/pages/customer/OrderTrackingPage.js +0 -425
- package/dist/coolandlovely/pages/customer/OrderTrackingPage.js.map +0 -1
- package/dist/coolandlovely/pages/customer/PaymentMethodsPage.js +0 -494
- package/dist/coolandlovely/pages/customer/PaymentMethodsPage.js.map +0 -1
- package/dist/coolandlovely/pages/customer/ReviewsPage.js +0 -616
- package/dist/coolandlovely/pages/customer/ReviewsPage.js.map +0 -1
- package/dist/coolandlovely/pages/customer/SavedAddressesPage.js +0 -449
- package/dist/coolandlovely/pages/customer/SavedAddressesPage.js.map +0 -1
- package/dist/coolandlovely/pages/investor/InvestmentDetailsPage.js +0 -887
- package/dist/coolandlovely/pages/investor/InvestmentDetailsPage.js.map +0 -1
- package/dist/coolandlovely/pages/investor/InvestmentOpportunitiesPage.js +0 -945
- package/dist/coolandlovely/pages/investor/InvestmentOpportunitiesPage.js.map +0 -1
- package/dist/coolandlovely/pages/investor/InvestorAnalyticsPage.js +0 -687
- package/dist/coolandlovely/pages/investor/InvestorAnalyticsPage.js.map +0 -1
- package/dist/coolandlovely/pages/investor/InvestorDashboard.js +0 -455
- package/dist/coolandlovely/pages/investor/InvestorDashboard.js.map +0 -1
- package/dist/coolandlovely/pages/investor/InvestorInvestmentsPage.js +0 -405
- package/dist/coolandlovely/pages/investor/InvestorInvestmentsPage.js.map +0 -1
- package/dist/coolandlovely/pages/investor/InvestorPortfolioPage.js +0 -602
- package/dist/coolandlovely/pages/investor/InvestorPortfolioPage.js.map +0 -1
- package/dist/coolandlovely/pages/investor/InvestorProfilePage.js +0 -1070
- package/dist/coolandlovely/pages/investor/InvestorProfilePage.js.map +0 -1
- package/dist/coolandlovely/pages/worker/TaskDetailsPage.js +0 -533
- package/dist/coolandlovely/pages/worker/TaskDetailsPage.js.map +0 -1
- package/dist/coolandlovely/pages/worker/WorkerDashboard.js +0 -671
- package/dist/coolandlovely/pages/worker/WorkerDashboard.js.map +0 -1
- package/dist/coolandlovely/pages/worker/WorkerOrdersPage.js +0 -680
- package/dist/coolandlovely/pages/worker/WorkerOrdersPage.js.map +0 -1
- package/dist/coolandlovely/pages/worker/WorkerProfilePage.js +0 -692
- package/dist/coolandlovely/pages/worker/WorkerProfilePage.js.map +0 -1
- package/dist/coolandlovely/pages/worker/WorkerSchedulePage.js +0 -583
- package/dist/coolandlovely/pages/worker/WorkerSchedulePage.js.map +0 -1
|
@@ -1,538 +0,0 @@
|
|
|
1
|
-
import { useCoolAndLovely as e } from "../../context/CoolAndLovelyContext.js";
|
|
2
|
-
import { cn as t } from "../../utils/cn.js";
|
|
3
|
-
import { PageLayout as n } from "../../components/PageLayout.js";
|
|
4
|
-
import { EmptyState as r } from "../../components/EmptyState.js";
|
|
5
|
-
import { useDashboardStats as i, useOrders as a, useProviders as o } from "../../hooks/useCoolAndLovelyApi.js";
|
|
6
|
-
import { formatCurrency as s } from "../../utils/formatters.js";
|
|
7
|
-
import { useCallback as c } from "react";
|
|
8
|
-
import { useI18n as l } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
9
|
-
import { ArrowRight as u, Clock as d, CreditCard as f, Heart as p, Lightbulb as m, MapPin as h, Navigation as g, Package as _, Search as v, ShoppingBag as y, Star as b, TrendingUp as x, User as S, Zap as C } from "lucide-react";
|
|
10
|
-
import { jsx as w, jsxs as T } from "react/jsx-runtime";
|
|
11
|
-
import { EmphasisPanel as E, NextSteps as D, PagePurpose as O } from "@burdenoff/fe-libs/ui";
|
|
12
|
-
//#region src/coolandlovely/pages/customer/CustomerDashboard.tsx
|
|
13
|
-
function k() {
|
|
14
|
-
let e = (/* @__PURE__ */ new Date()).getHours();
|
|
15
|
-
return e < 12 ? "Good morning" : e < 17 ? "Good afternoon" : "Good evening";
|
|
16
|
-
}
|
|
17
|
-
function A() {
|
|
18
|
-
let { navigateTo: A, currentUser: j } = e(), { t: M } = l(), { data: N = [], isLoading: P } = a({ customerId: j?.id }), { data: F = [], isLoading: I } = o(), { data: L, isLoading: R } = i(), z = P || I || R, B = c((e, t) => {
|
|
19
|
-
let n = M(e);
|
|
20
|
-
return n === e ? t : n;
|
|
21
|
-
}, [M]), V = j?.firstName ?? j?.name ?? "Customer", H = [
|
|
22
|
-
{
|
|
23
|
-
id: "1",
|
|
24
|
-
type: "suggestion",
|
|
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
|
-
], U = N.slice(0, 3), W = F.slice(0, 3), G = {
|
|
47
|
-
totalOrders: N.length,
|
|
48
|
-
totalSpent: N.reduce((e, t) => e + t.total, 0),
|
|
49
|
-
favoriteCount: 6,
|
|
50
|
-
avgRating: 4.5
|
|
51
|
-
}, K = (e) => {
|
|
52
|
-
switch (e) {
|
|
53
|
-
case "delivered": return "bg-status-success-bg-subtle/20 text-status-success-text";
|
|
54
|
-
case "preparing": return "bg-status-warning-bg-subtle/20 text-status-warning-text";
|
|
55
|
-
case "out_for_delivery": return "bg-accent-blue-subtle/20 text-accent-blue";
|
|
56
|
-
case "confirmed": return "bg-accent-blue-subtle/20 text-accent-blue";
|
|
57
|
-
case "cancelled": return "bg-status-error-bg-subtle/20 text-status-error-text";
|
|
58
|
-
default: return "bg-bg-sunken text-text-secondary";
|
|
59
|
-
}
|
|
60
|
-
}, q = (e) => {
|
|
61
|
-
switch (e) {
|
|
62
|
-
case "suggestion": return /* @__PURE__ */ w(m, { className: "h-4 w-4" });
|
|
63
|
-
case "opportunity": return /* @__PURE__ */ w(x, { className: "h-4 w-4" });
|
|
64
|
-
case "trend": return /* @__PURE__ */ w(C, { className: "h-4 w-4" });
|
|
65
|
-
default: return /* @__PURE__ */ w(m, { className: "h-4 w-4" });
|
|
66
|
-
}
|
|
67
|
-
}, J = (e) => {
|
|
68
|
-
switch (e) {
|
|
69
|
-
case "suggestion": return "bg-accent-blue-subtle/10 text-accent-blue border-accent-blue-subtle/20";
|
|
70
|
-
case "opportunity": return "bg-status-success-bg-subtle/10 text-status-success-text border-status-success-border/20";
|
|
71
|
-
case "trend": return "bg-status-warning-bg-subtle/10 text-status-warning-text border-status-warning-border/20";
|
|
72
|
-
default: return "bg-bg-sunken text-text-secondary border-border-subtle";
|
|
73
|
-
}
|
|
74
|
-
};
|
|
75
|
-
return z ? /* @__PURE__ */ w(n, {
|
|
76
|
-
title: B("coolandlovely.customerDashboard.title", "Dashboard"),
|
|
77
|
-
children: /* @__PURE__ */ w("div", {
|
|
78
|
-
className: "flex items-center justify-center py-20",
|
|
79
|
-
children: /* @__PURE__ */ T("div", {
|
|
80
|
-
className: "text-center",
|
|
81
|
-
children: [/* @__PURE__ */ w("div", { className: "mx-auto mb-4 h-12 w-12 animate-spin rounded-full border-b-2 border-foreground" }), /* @__PURE__ */ w("p", {
|
|
82
|
-
className: "text-sm text-text-secondary",
|
|
83
|
-
children: B("coolandlovely.customerDashboard.loading", "Loading your dashboard...")
|
|
84
|
-
})]
|
|
85
|
-
})
|
|
86
|
-
})
|
|
87
|
-
}) : /* @__PURE__ */ T(n, {
|
|
88
|
-
title: B("coolandlovely.customerDashboard.welcomeBack", "Welcome Back!"),
|
|
89
|
-
description: `${k()}, ${V}`,
|
|
90
|
-
children: [
|
|
91
|
-
/* @__PURE__ */ w(O, {
|
|
92
|
-
className: "mb-6",
|
|
93
|
-
icon: /* @__PURE__ */ w(y, { className: "h-4 w-4" }),
|
|
94
|
-
children: B("coolandlovely.customerDashboard.purpose", "Your home base as a customer: see what you have spent and ordered, pick up where you left off, and discover nearby carts. Use it to track recent orders, jump back into favourites, and act on personalised recommendations before they expire.")
|
|
95
|
-
}),
|
|
96
|
-
/* @__PURE__ */ w(D, {
|
|
97
|
-
className: "mb-6",
|
|
98
|
-
storageKey: "coolandlovely-customer-dashboard",
|
|
99
|
-
steps: [
|
|
100
|
-
{
|
|
101
|
-
id: "discover",
|
|
102
|
-
label: B("coolandlovely.customerDashboard.next.discover", "Discover carts near you"),
|
|
103
|
-
description: B("coolandlovely.customerDashboard.next.discoverDesc", "Browse open carts and services around your location."),
|
|
104
|
-
icon: /* @__PURE__ */ w(v, { className: "h-4 w-4" }),
|
|
105
|
-
onClick: () => A("/customer/carts")
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
id: "orders",
|
|
109
|
-
label: B("coolandlovely.customerDashboard.next.orders", "Review your orders"),
|
|
110
|
-
description: B("coolandlovely.customerDashboard.next.ordersDesc", "Track current orders or reorder from your history."),
|
|
111
|
-
icon: /* @__PURE__ */ w(d, { className: "h-4 w-4" }),
|
|
112
|
-
onClick: () => A("/customer/orders"),
|
|
113
|
-
done: G.totalOrders > 0
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
id: "addresses",
|
|
117
|
-
label: B("coolandlovely.customerDashboard.next.addresses", "Save a delivery address"),
|
|
118
|
-
description: B("coolandlovely.customerDashboard.next.addressesDesc", "Add addresses so checkout is faster next time."),
|
|
119
|
-
icon: /* @__PURE__ */ w(h, { className: "h-4 w-4" }),
|
|
120
|
-
onClick: () => A("/customer/addresses")
|
|
121
|
-
}
|
|
122
|
-
]
|
|
123
|
-
}),
|
|
124
|
-
G && /* @__PURE__ */ T("div", {
|
|
125
|
-
className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4",
|
|
126
|
-
children: [
|
|
127
|
-
/* @__PURE__ */ w("div", {
|
|
128
|
-
className: "rounded-lg border border-border-seam bg-bg-surface p-4 bg-gloss-card shadow-pop",
|
|
129
|
-
children: /* @__PURE__ */ T("div", {
|
|
130
|
-
className: "flex items-center gap-3",
|
|
131
|
-
children: [/* @__PURE__ */ w("div", {
|
|
132
|
-
className: "flex h-10 w-10 items-center justify-center rounded-lg bg-bg-sunken",
|
|
133
|
-
children: /* @__PURE__ */ w(_, { className: "h-5 w-5 text-text-secondary" })
|
|
134
|
-
}), /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("p", {
|
|
135
|
-
className: "text-2xl font-bold text-text-primary",
|
|
136
|
-
children: G.totalOrders
|
|
137
|
-
}), /* @__PURE__ */ w("p", {
|
|
138
|
-
className: "text-xs text-text-secondary",
|
|
139
|
-
children: B("coolandlovely.customerDashboard.totalOrders", "Total Orders")
|
|
140
|
-
})] })]
|
|
141
|
-
})
|
|
142
|
-
}),
|
|
143
|
-
/* @__PURE__ */ w("div", {
|
|
144
|
-
className: "rounded-lg border border-border-seam bg-bg-surface p-4 bg-gloss-card shadow-pop",
|
|
145
|
-
children: /* @__PURE__ */ T("div", {
|
|
146
|
-
className: "flex items-center gap-3",
|
|
147
|
-
children: [/* @__PURE__ */ w("div", {
|
|
148
|
-
className: "flex h-10 w-10 items-center justify-center rounded-lg bg-bg-sunken",
|
|
149
|
-
children: /* @__PURE__ */ w(f, { className: "h-5 w-5 text-text-secondary" })
|
|
150
|
-
}), /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("p", {
|
|
151
|
-
className: "text-2xl font-bold text-text-primary",
|
|
152
|
-
children: s(G.totalSpent, { minimumFractionDigits: 0 })
|
|
153
|
-
}), /* @__PURE__ */ w("p", {
|
|
154
|
-
className: "text-xs text-text-secondary",
|
|
155
|
-
children: B("coolandlovely.customerDashboard.totalSpent", "Total Spent")
|
|
156
|
-
})] })]
|
|
157
|
-
})
|
|
158
|
-
}),
|
|
159
|
-
/* @__PURE__ */ w("div", {
|
|
160
|
-
className: "rounded-lg border border-border-seam bg-bg-surface p-4 bg-gloss-card shadow-pop",
|
|
161
|
-
children: /* @__PURE__ */ T("div", {
|
|
162
|
-
className: "flex items-center gap-3",
|
|
163
|
-
children: [/* @__PURE__ */ w("div", {
|
|
164
|
-
className: "flex h-10 w-10 items-center justify-center rounded-lg bg-bg-sunken",
|
|
165
|
-
children: /* @__PURE__ */ w(p, { className: "h-5 w-5 text-text-secondary" })
|
|
166
|
-
}), /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("p", {
|
|
167
|
-
className: "text-2xl font-bold text-text-primary",
|
|
168
|
-
children: G.favoriteCount
|
|
169
|
-
}), /* @__PURE__ */ w("p", {
|
|
170
|
-
className: "text-xs text-text-secondary",
|
|
171
|
-
children: B("coolandlovely.customerDashboard.favoriteCarts", "Favorite Carts")
|
|
172
|
-
})] })]
|
|
173
|
-
})
|
|
174
|
-
}),
|
|
175
|
-
/* @__PURE__ */ w("div", {
|
|
176
|
-
className: "rounded-lg border border-border-seam bg-bg-surface p-4 bg-gloss-card shadow-pop",
|
|
177
|
-
children: /* @__PURE__ */ T("div", {
|
|
178
|
-
className: "flex items-center gap-3",
|
|
179
|
-
children: [/* @__PURE__ */ w("div", {
|
|
180
|
-
className: "flex h-10 w-10 items-center justify-center rounded-lg bg-bg-sunken",
|
|
181
|
-
children: /* @__PURE__ */ w(b, { className: "h-5 w-5 text-text-secondary" })
|
|
182
|
-
}), /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("p", {
|
|
183
|
-
className: "text-2xl font-bold text-text-primary",
|
|
184
|
-
children: G.avgRating.toFixed(1)
|
|
185
|
-
}), /* @__PURE__ */ w("p", {
|
|
186
|
-
className: "text-xs text-text-secondary",
|
|
187
|
-
children: B("coolandlovely.customerDashboard.avgRatingGiven", "Avg Rating Given")
|
|
188
|
-
})] })]
|
|
189
|
-
})
|
|
190
|
-
})
|
|
191
|
-
]
|
|
192
|
-
}),
|
|
193
|
-
/* @__PURE__ */ T("div", {
|
|
194
|
-
className: "mt-8 grid grid-cols-1 gap-8 lg:grid-cols-3",
|
|
195
|
-
children: [/* @__PURE__ */ T("div", {
|
|
196
|
-
className: "lg:col-span-2 space-y-8",
|
|
197
|
-
children: [
|
|
198
|
-
/* @__PURE__ */ T("section", { children: [/* @__PURE__ */ w("h2", {
|
|
199
|
-
className: "text-lg font-semibold text-text-primary mb-4",
|
|
200
|
-
children: B("coolandlovely.customerDashboard.quickActions", "Quick Actions")
|
|
201
|
-
}), /* @__PURE__ */ T("div", {
|
|
202
|
-
className: "grid grid-cols-1 gap-3 sm:grid-cols-3",
|
|
203
|
-
children: [
|
|
204
|
-
/* @__PURE__ */ T("button", {
|
|
205
|
-
type: "button",
|
|
206
|
-
onClick: () => A("/customer/carts"),
|
|
207
|
-
className: t("flex items-center gap-3 rounded-lg border border-border-seam bg-bg-surface p-4 transition-colors text-left bg-gloss-card shadow-pop", "hover:bg-accent hover:shadow-md"),
|
|
208
|
-
children: [/* @__PURE__ */ w("div", {
|
|
209
|
-
className: "flex h-10 w-10 shrink-0 items-center justify-center rounded-lg bg-accent-blue-subtle/10",
|
|
210
|
-
children: /* @__PURE__ */ w(v, { className: "h-5 w-5 text-accent-blue" })
|
|
211
|
-
}), /* @__PURE__ */ T("div", {
|
|
212
|
-
className: "min-w-0",
|
|
213
|
-
children: [/* @__PURE__ */ w("p", {
|
|
214
|
-
className: "text-sm font-semibold text-text-primary",
|
|
215
|
-
children: B("coolandlovely.customerDashboard.discoverCarts", "Discover Carts")
|
|
216
|
-
}), /* @__PURE__ */ w("p", {
|
|
217
|
-
className: "text-xs text-text-secondary",
|
|
218
|
-
children: B("coolandlovely.customerDashboard.findNearbyCarts", "Find nearby carts")
|
|
219
|
-
})]
|
|
220
|
-
})]
|
|
221
|
-
}),
|
|
222
|
-
/* @__PURE__ */ T("button", {
|
|
223
|
-
type: "button",
|
|
224
|
-
onClick: () => A("/customer/orders"),
|
|
225
|
-
className: t("flex items-center gap-3 rounded-lg border border-border-seam bg-bg-surface p-4 transition-colors text-left bg-gloss-card shadow-pop", "hover:bg-accent hover:shadow-md"),
|
|
226
|
-
children: [/* @__PURE__ */ w("div", {
|
|
227
|
-
className: "flex h-10 w-10 shrink-0 items-center justify-center rounded-lg bg-status-success-bg-subtle/10",
|
|
228
|
-
children: /* @__PURE__ */ w(d, { className: "h-5 w-5 text-status-success-text" })
|
|
229
|
-
}), /* @__PURE__ */ T("div", {
|
|
230
|
-
className: "min-w-0",
|
|
231
|
-
children: [/* @__PURE__ */ w("p", {
|
|
232
|
-
className: "text-sm font-semibold text-text-primary",
|
|
233
|
-
children: B("coolandlovely.customerDashboard.orderHistory", "Order History")
|
|
234
|
-
}), /* @__PURE__ */ w("p", {
|
|
235
|
-
className: "text-xs text-text-secondary",
|
|
236
|
-
children: B("coolandlovely.customerDashboard.viewPastOrders", "View past orders")
|
|
237
|
-
})]
|
|
238
|
-
})]
|
|
239
|
-
}),
|
|
240
|
-
/* @__PURE__ */ T("button", {
|
|
241
|
-
type: "button",
|
|
242
|
-
onClick: () => A("/customer/favorites"),
|
|
243
|
-
className: t("flex items-center gap-3 rounded-lg border border-border-seam bg-bg-surface p-4 transition-colors text-left bg-gloss-card shadow-pop", "hover:bg-accent hover:shadow-md"),
|
|
244
|
-
children: [/* @__PURE__ */ w("div", {
|
|
245
|
-
className: "flex h-10 w-10 shrink-0 items-center justify-center rounded-lg bg-status-error-bg-subtle/10",
|
|
246
|
-
children: /* @__PURE__ */ w(p, { className: "h-5 w-5 text-status-error-text" })
|
|
247
|
-
}), /* @__PURE__ */ T("div", {
|
|
248
|
-
className: "min-w-0",
|
|
249
|
-
children: [/* @__PURE__ */ w("p", {
|
|
250
|
-
className: "text-sm font-semibold text-text-primary",
|
|
251
|
-
children: B("coolandlovely.customerDashboard.favorites", "Favorites")
|
|
252
|
-
}), /* @__PURE__ */ w("p", {
|
|
253
|
-
className: "text-xs text-text-secondary",
|
|
254
|
-
children: B("coolandlovely.customerDashboard.savedCarts", "Saved carts")
|
|
255
|
-
})]
|
|
256
|
-
})]
|
|
257
|
-
})
|
|
258
|
-
]
|
|
259
|
-
})] }),
|
|
260
|
-
/* @__PURE__ */ T("section", { children: [/* @__PURE__ */ T("div", {
|
|
261
|
-
className: "flex items-center justify-between mb-4",
|
|
262
|
-
children: [/* @__PURE__ */ w("h2", {
|
|
263
|
-
className: "text-lg font-semibold text-text-primary",
|
|
264
|
-
children: B("coolandlovely.customerDashboard.recentOrders", "Recent Orders")
|
|
265
|
-
}), /* @__PURE__ */ T("button", {
|
|
266
|
-
type: "button",
|
|
267
|
-
onClick: () => A("/customer/orders"),
|
|
268
|
-
className: "flex items-center gap-1 text-sm font-medium text-text-secondary hover:text-text-primary transition-colors",
|
|
269
|
-
children: [B("coolandlovely.common.viewAll", "View All"), /* @__PURE__ */ w(u, { className: "h-4 w-4" })]
|
|
270
|
-
})]
|
|
271
|
-
}), U.length > 0 ? /* @__PURE__ */ w("div", {
|
|
272
|
-
className: "space-y-3",
|
|
273
|
-
children: U.map((e) => /* @__PURE__ */ w("div", {
|
|
274
|
-
className: "rounded-lg border border-border-seam bg-bg-surface p-4 bg-gloss-card shadow-pop",
|
|
275
|
-
children: /* @__PURE__ */ T("div", {
|
|
276
|
-
className: "flex flex-col sm:flex-row sm:items-start sm:justify-between gap-3",
|
|
277
|
-
children: [/* @__PURE__ */ T("div", {
|
|
278
|
-
className: "flex-1 min-w-0",
|
|
279
|
-
children: [
|
|
280
|
-
/* @__PURE__ */ T("div", {
|
|
281
|
-
className: "flex flex-wrap items-center gap-2 mb-1",
|
|
282
|
-
children: [/* @__PURE__ */ w("h3", {
|
|
283
|
-
className: "text-sm font-semibold text-text-primary",
|
|
284
|
-
children: e.cartName
|
|
285
|
-
}), /* @__PURE__ */ w("span", {
|
|
286
|
-
className: t("inline-flex items-center rounded-full px-2 py-0.5 text-xs font-medium capitalize", K(e.status)),
|
|
287
|
-
children: e.status.replace(/_/g, " ")
|
|
288
|
-
})]
|
|
289
|
-
}),
|
|
290
|
-
/* @__PURE__ */ w("p", {
|
|
291
|
-
className: "text-xs text-text-secondary mb-2 leading-relaxed",
|
|
292
|
-
children: e.items.map((e) => `${e.name} (${e.quantity})`).join(", ")
|
|
293
|
-
}),
|
|
294
|
-
/* @__PURE__ */ T("div", {
|
|
295
|
-
className: "flex flex-wrap items-center gap-3 text-xs text-text-secondary",
|
|
296
|
-
children: [
|
|
297
|
-
/* @__PURE__ */ w("span", {
|
|
298
|
-
className: "font-medium text-text-primary",
|
|
299
|
-
children: s(e.total, { minimumFractionDigits: 0 })
|
|
300
|
-
}),
|
|
301
|
-
/* @__PURE__ */ w("span", { children: new Date(e.orderDate).toLocaleDateString() }),
|
|
302
|
-
e.rating && /* @__PURE__ */ T("span", {
|
|
303
|
-
className: "flex items-center gap-1",
|
|
304
|
-
children: [/* @__PURE__ */ w(b, { className: "h-3 w-3 fill-status-warning-text text-status-warning-text" }), e.rating]
|
|
305
|
-
})
|
|
306
|
-
]
|
|
307
|
-
})
|
|
308
|
-
]
|
|
309
|
-
}), /* @__PURE__ */ w("button", {
|
|
310
|
-
type: "button",
|
|
311
|
-
onClick: () => A(`/customer/orders/${e.id}`),
|
|
312
|
-
className: "rounded-lg border border-border-subtle px-3 py-1.5 text-xs font-medium text-text-primary hover:bg-accent transition-colors",
|
|
313
|
-
children: B("coolandlovely.customerDashboard.viewDetails", "View Details")
|
|
314
|
-
})]
|
|
315
|
-
})
|
|
316
|
-
}, e.id))
|
|
317
|
-
}) : /* @__PURE__ */ w(r, {
|
|
318
|
-
illustration: "empty-data",
|
|
319
|
-
title: B("coolandlovely.customerDashboard.noRecentOrders", "No recent orders"),
|
|
320
|
-
description: B("coolandlovely.customerDashboard.noRecentOrdersDesc", "Once you place an order it will show up here so you can track and reorder it."),
|
|
321
|
-
action: /* @__PURE__ */ T("button", {
|
|
322
|
-
type: "button",
|
|
323
|
-
onClick: () => A("/customer/carts"),
|
|
324
|
-
className: "inline-flex items-center gap-1.5 rounded-lg bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-text hover:bg-action-primary-bg/90 transition-colors",
|
|
325
|
-
children: [/* @__PURE__ */ w(v, { className: "h-4 w-4" }), B("coolandlovely.customerDashboard.discoverCarts", "Discover Carts")]
|
|
326
|
-
})
|
|
327
|
-
})] }),
|
|
328
|
-
/* @__PURE__ */ T("section", { children: [/* @__PURE__ */ w("h2", {
|
|
329
|
-
className: "text-lg font-semibold text-text-primary mb-4",
|
|
330
|
-
children: B("coolandlovely.customerDashboard.recommendedForYou", "Recommended for You")
|
|
331
|
-
}), /* @__PURE__ */ w("div", {
|
|
332
|
-
className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
|
|
333
|
-
children: W.map((e) => /* @__PURE__ */ T("div", {
|
|
334
|
-
className: "rounded-lg border border-border-subtle bg-bg-surface overflow-hidden shadow-sm hover:shadow-md transition-shadow",
|
|
335
|
-
children: [/* @__PURE__ */ T("div", {
|
|
336
|
-
className: "relative h-40",
|
|
337
|
-
children: [/* @__PURE__ */ w("img", {
|
|
338
|
-
src: e.image,
|
|
339
|
-
alt: e.name,
|
|
340
|
-
className: "h-full w-full object-cover"
|
|
341
|
-
}), /* @__PURE__ */ w("div", {
|
|
342
|
-
className: "absolute top-2 right-2",
|
|
343
|
-
children: /* @__PURE__ */ w("span", {
|
|
344
|
-
className: t("inline-flex items-center rounded-full px-2 py-0.5 text-xs font-medium", e.isOpen ? "bg-status-success-bg-subtle/20 text-status-success-text" : "bg-status-error-bg-subtle/20 text-status-error-text"),
|
|
345
|
-
children: e.isOpen ? B("coolandlovely.customerDashboard.open", "Open") : B("coolandlovely.customerDashboard.closed", "Closed")
|
|
346
|
-
})
|
|
347
|
-
})]
|
|
348
|
-
}), /* @__PURE__ */ T("div", {
|
|
349
|
-
className: "p-4",
|
|
350
|
-
children: [
|
|
351
|
-
/* @__PURE__ */ T("div", {
|
|
352
|
-
className: "flex items-start justify-between mb-2",
|
|
353
|
-
children: [/* @__PURE__ */ T("div", {
|
|
354
|
-
className: "min-w-0 flex-1",
|
|
355
|
-
children: [/* @__PURE__ */ w("h3", {
|
|
356
|
-
className: "text-sm font-semibold text-text-primary",
|
|
357
|
-
children: e.name
|
|
358
|
-
}), /* @__PURE__ */ w("p", {
|
|
359
|
-
className: "text-xs text-text-secondary",
|
|
360
|
-
children: e.category
|
|
361
|
-
})]
|
|
362
|
-
}), /* @__PURE__ */ T("div", {
|
|
363
|
-
className: "flex items-center gap-1 text-xs",
|
|
364
|
-
children: [/* @__PURE__ */ w(b, { className: "h-3 w-3 fill-status-warning-text text-status-warning-text" }), /* @__PURE__ */ w("span", {
|
|
365
|
-
className: "font-medium text-text-primary",
|
|
366
|
-
children: e.rating
|
|
367
|
-
})]
|
|
368
|
-
})]
|
|
369
|
-
}),
|
|
370
|
-
/* @__PURE__ */ T("div", {
|
|
371
|
-
className: "flex items-center gap-3 text-xs text-text-secondary mb-3",
|
|
372
|
-
children: [/* @__PURE__ */ T("span", {
|
|
373
|
-
className: "flex items-center gap-1",
|
|
374
|
-
children: [
|
|
375
|
-
/* @__PURE__ */ w(h, { className: "h-3 w-3" }),
|
|
376
|
-
e.distance,
|
|
377
|
-
"km away"
|
|
378
|
-
]
|
|
379
|
-
}), /* @__PURE__ */ T("span", {
|
|
380
|
-
className: "flex items-center gap-1",
|
|
381
|
-
children: [
|
|
382
|
-
/* @__PURE__ */ w(d, { className: "h-3 w-3" }),
|
|
383
|
-
e.estimatedTime,
|
|
384
|
-
" mins"
|
|
385
|
-
]
|
|
386
|
-
})]
|
|
387
|
-
}),
|
|
388
|
-
/* @__PURE__ */ w("button", {
|
|
389
|
-
type: "button",
|
|
390
|
-
disabled: !e.isOpen,
|
|
391
|
-
onClick: () => e.isOpen && A(`/customer/carts/${e.id}`),
|
|
392
|
-
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"),
|
|
393
|
-
children: e.isOpen ? B("coolandlovely.customerDashboard.viewMenu", "View Menu") : B("coolandlovely.customerDashboard.currentlyClosed", "Currently Closed")
|
|
394
|
-
})
|
|
395
|
-
]
|
|
396
|
-
})]
|
|
397
|
-
}, e.id))
|
|
398
|
-
})] })
|
|
399
|
-
]
|
|
400
|
-
}), /* @__PURE__ */ T("div", {
|
|
401
|
-
className: "space-y-6",
|
|
402
|
-
children: [
|
|
403
|
-
/* @__PURE__ */ T(E, {
|
|
404
|
-
className: "p-5",
|
|
405
|
-
children: [/* @__PURE__ */ w("h3", {
|
|
406
|
-
className: "text-base font-semibold text-text-primary mb-4",
|
|
407
|
-
children: B("coolandlovely.customerDashboard.personalizedRecommendations", "Personalized Recommendations")
|
|
408
|
-
}), /* @__PURE__ */ w("div", {
|
|
409
|
-
className: "space-y-3",
|
|
410
|
-
children: H.map((e) => /* @__PURE__ */ w("div", {
|
|
411
|
-
className: t("rounded-lg border p-3", J(e.type)),
|
|
412
|
-
children: /* @__PURE__ */ T("div", {
|
|
413
|
-
className: "flex items-start gap-2",
|
|
414
|
-
children: [/* @__PURE__ */ w("div", {
|
|
415
|
-
className: "mt-0.5 shrink-0",
|
|
416
|
-
children: q(e.type)
|
|
417
|
-
}), /* @__PURE__ */ T("div", {
|
|
418
|
-
className: "flex-1 min-w-0",
|
|
419
|
-
children: [
|
|
420
|
-
/* @__PURE__ */ T("div", {
|
|
421
|
-
className: "flex items-center justify-between gap-2",
|
|
422
|
-
children: [/* @__PURE__ */ w("p", {
|
|
423
|
-
className: "text-xs font-semibold",
|
|
424
|
-
children: e.title
|
|
425
|
-
}), /* @__PURE__ */ T("span", {
|
|
426
|
-
className: "text-[10px] opacity-70",
|
|
427
|
-
children: [e.confidence, "%"]
|
|
428
|
-
})]
|
|
429
|
-
}),
|
|
430
|
-
/* @__PURE__ */ w("p", {
|
|
431
|
-
className: "mt-1 text-xs opacity-80 leading-relaxed",
|
|
432
|
-
children: e.description
|
|
433
|
-
}),
|
|
434
|
-
/* @__PURE__ */ w("button", {
|
|
435
|
-
type: "button",
|
|
436
|
-
onClick: () => A("/customer/carts"),
|
|
437
|
-
className: "mt-2 text-[10px] font-semibold underline underline-offset-2",
|
|
438
|
-
children: e.action
|
|
439
|
-
})
|
|
440
|
-
]
|
|
441
|
-
})]
|
|
442
|
-
})
|
|
443
|
-
}, e.id))
|
|
444
|
-
})]
|
|
445
|
-
}),
|
|
446
|
-
/* @__PURE__ */ T("div", {
|
|
447
|
-
className: "rounded-lg border border-border-seam bg-bg-surface p-5 bg-gloss-card shadow-pop",
|
|
448
|
-
children: [/* @__PURE__ */ w("h3", {
|
|
449
|
-
className: "text-base font-semibold text-text-primary mb-3",
|
|
450
|
-
children: B("coolandlovely.customerDashboard.quickLinks", "Quick Links")
|
|
451
|
-
}), /* @__PURE__ */ T("div", {
|
|
452
|
-
className: "space-y-2",
|
|
453
|
-
children: [
|
|
454
|
-
/* @__PURE__ */ T("button", {
|
|
455
|
-
type: "button",
|
|
456
|
-
onClick: () => A("/customer/profile"),
|
|
457
|
-
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",
|
|
458
|
-
children: [/* @__PURE__ */ w(S, { className: "h-4 w-4 text-text-secondary" }), B("coolandlovely.customerDashboard.profileSettings", "Profile Settings")]
|
|
459
|
-
}),
|
|
460
|
-
/* @__PURE__ */ T("button", {
|
|
461
|
-
type: "button",
|
|
462
|
-
onClick: () => A("/customer/addresses"),
|
|
463
|
-
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",
|
|
464
|
-
children: [/* @__PURE__ */ w(h, { className: "h-4 w-4 text-text-secondary" }), B("coolandlovely.customerDashboard.savedAddresses", "Saved Addresses")]
|
|
465
|
-
}),
|
|
466
|
-
/* @__PURE__ */ T("button", {
|
|
467
|
-
type: "button",
|
|
468
|
-
onClick: () => A("/customer/payment-methods"),
|
|
469
|
-
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",
|
|
470
|
-
children: [/* @__PURE__ */ w(f, { className: "h-4 w-4 text-text-secondary" }), B("coolandlovely.customerDashboard.paymentMethods", "Payment Methods")]
|
|
471
|
-
})
|
|
472
|
-
]
|
|
473
|
-
})]
|
|
474
|
-
}),
|
|
475
|
-
/* @__PURE__ */ T("div", {
|
|
476
|
-
className: "rounded-lg border border-border-seam bg-bg-surface p-5 bg-gloss-card shadow-pop",
|
|
477
|
-
children: [
|
|
478
|
-
/* @__PURE__ */ w("h3", {
|
|
479
|
-
className: "text-base font-semibold text-text-primary mb-3",
|
|
480
|
-
children: B("coolandlovely.customerDashboard.currentLocation", "Current Location")
|
|
481
|
-
}),
|
|
482
|
-
/* @__PURE__ */ T("div", {
|
|
483
|
-
className: "flex items-start gap-3",
|
|
484
|
-
children: [/* @__PURE__ */ w(g, { className: "h-4 w-4 text-accent-blue mt-0.5 shrink-0" }), /* @__PURE__ */ T("div", {
|
|
485
|
-
className: "flex-1 min-w-0",
|
|
486
|
-
children: [
|
|
487
|
-
/* @__PURE__ */ w("p", {
|
|
488
|
-
className: "text-sm font-medium text-text-primary",
|
|
489
|
-
children: "Koramangala"
|
|
490
|
-
}),
|
|
491
|
-
/* @__PURE__ */ w("p", {
|
|
492
|
-
className: "text-xs text-text-secondary",
|
|
493
|
-
children: "80 Feet Road, 6th Block"
|
|
494
|
-
}),
|
|
495
|
-
/* @__PURE__ */ w("p", {
|
|
496
|
-
className: "text-xs text-text-secondary",
|
|
497
|
-
children: "Bangalore, Karnataka"
|
|
498
|
-
})
|
|
499
|
-
]
|
|
500
|
-
})]
|
|
501
|
-
}),
|
|
502
|
-
/* @__PURE__ */ w("button", {
|
|
503
|
-
type: "button",
|
|
504
|
-
onClick: () => A("/customer/addresses"),
|
|
505
|
-
className: "mt-3 w-full rounded-lg border border-border-subtle px-3 py-2 text-xs font-medium text-text-primary hover:bg-accent transition-colors",
|
|
506
|
-
children: B("coolandlovely.customerDashboard.updateLocation", "Update Location")
|
|
507
|
-
})
|
|
508
|
-
]
|
|
509
|
-
}),
|
|
510
|
-
/* @__PURE__ */ T("div", {
|
|
511
|
-
className: "rounded-lg bg-gradient-to-r from-accent-blue/10 to-accent-purple/10 border border-accent-blue-subtle/20 p-5",
|
|
512
|
-
children: [
|
|
513
|
-
/* @__PURE__ */ w("h3", {
|
|
514
|
-
className: "text-base font-semibold text-text-primary mb-2",
|
|
515
|
-
children: B("coolandlovely.customerDashboard.specialOffers", "Special Offers")
|
|
516
|
-
}),
|
|
517
|
-
/* @__PURE__ */ w("p", {
|
|
518
|
-
className: "text-xs text-text-secondary mb-3 leading-relaxed",
|
|
519
|
-
children: B("coolandlovely.customerDashboard.specialOffersDescription", "Get 25% off on your next order from featured carts")
|
|
520
|
-
}),
|
|
521
|
-
/* @__PURE__ */ w("button", {
|
|
522
|
-
type: "button",
|
|
523
|
-
onClick: () => A("/customer/carts"),
|
|
524
|
-
className: "w-full rounded-lg bg-foreground px-3 py-2 text-sm font-medium text-background hover:opacity-90 transition-opacity",
|
|
525
|
-
children: B("coolandlovely.customerDashboard.viewOffers", "View Offers")
|
|
526
|
-
})
|
|
527
|
-
]
|
|
528
|
-
})
|
|
529
|
-
]
|
|
530
|
-
})]
|
|
531
|
-
})
|
|
532
|
-
]
|
|
533
|
-
});
|
|
534
|
-
}
|
|
535
|
-
//#endregion
|
|
536
|
-
export { A as CustomerDashboard };
|
|
537
|
-
|
|
538
|
-
//# sourceMappingURL=CustomerDashboard.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CustomerDashboard.js","names":[],"sources":["../../../../src/coolandlovely/pages/customer/CustomerDashboard.tsx"],"sourcesContent":["/**\n * Customer Dashboard Page\n * @module coolandlovely/pages/customer\n *\n * Welcome dashboard with time-of-day greeting, AI insights panel,\n * stats grid, recent orders with per-item display, recommended carts,\n * quick links sidebar, current location card, and special offers.\n */\n\nimport { useState, useEffect, useCallback } from'react';\nimport { useI18n } from'@burdenoff/fe-libs/shared/providers/shell/I18nProvider';\nimport {\n ShoppingBag,\n Heart,\n Star,\n CreditCard,\n ArrowRight,\n Search,\n Clock,\n MapPin,\n Package,\n User,\n Navigation,\n Lightbulb,\n TrendingUp,\n Zap,\n} from'lucide-react';\nimport { EmphasisPanel, PagePurpose, NextSteps } from'@burdenoff/fe-libs/ui';\nimport { PageLayout } from'../../components/PageLayout';\nimport { EmptyState } from'../../components/EmptyState';\nimport { useCoolAndLovely } from'../../context/CoolAndLovelyContext';\nimport { useOrders, useProviders, useDashboardStats } from'../../hooks/useCoolAndLovelyApi';\nimport { cn } from'../../utils/cn';\nimport { formatCurrency } from'../../utils/formatters';\n\ninterface RecommendedCart {\n id: string;\n name: string;\n category: string;\n rating: number;\n distance: number;\n estimatedTime: number;\n image: string;\n isOpen: boolean;\n}\n\ninterface CustomerStats {\n totalOrders: number;\n totalSpent: number;\n favoriteCount: number;\n avgRating: number;\n}\n\ninterface AIInsight {\n id: string;\n type: 'suggestion' | 'opportunity' | 'trend';\n title: string;\n description: string;\n confidence: number;\n action: string;\n}\n\nfunction getTimeOfDayGreeting(): string {\n const hour = new Date().getHours();\n if (hour < 12) return'Good morning';\n if (hour < 17) return'Good afternoon';\n return'Good evening';\n}\n\nexport function CustomerDashboard() {\n const { navigateTo, currentUser } = useCoolAndLovely();\n const { t: translate } = useI18n();\n\n const { data: orders = [], isLoading: isLoadingOrders } = useOrders({\n customerId: currentUser?.id,\n });\n const { data: providers = [], isLoading: isLoadingProviders } = useProviders();\n const { data: statsData, isLoading: isLoadingStats } = useDashboardStats();\n\n const isLoading = isLoadingOrders || isLoadingProviders || isLoadingStats;\n\n const t = useCallback(\n (key: string, fallback: string): string => {\n const value = translate(key);\n return value === key ? fallback : value;\n },\n [translate]\n );\n\n const firstName = currentUser?.firstName ?? currentUser?.name ?? 'Customer';\n\n const aiInsights: AIInsight[] = [\n {\n id: '1',\n type: 'suggestion',\n title: 'New Cart Nearby',\n description:\n 'Healthy Bowls cart just opened 0.2km from your location. They specialize in acai bowls and smoothies.',\n confidence: 92,\n action: 'Explore Cart',\n },\n {\n id: '2',\n type: 'opportunity',\n title: 'Special Offer Available',\n description:\n 'Your favorite Dosa Express is offering 20% off on orders above ₹300. Valid until tonight.',\n confidence: 95,\n action: 'Order Now',\n },\n {\n id: '3',\n type: 'trend',\n title: 'Peak Hours Alert',\n description:\n 'Order now to avoid lunch rush. Delivery times typically increase by 15-20 minutes after 12 PM.',\n confidence: 88,\n action: 'View Carts',\n },\n ];\n\n const recentOrders = orders.slice(0, 3);\n const recommendedCarts = providers.slice(0, 3);\n\n const stats: CustomerStats = {\n totalOrders: orders.length,\n totalSpent: orders.reduce((acc, order) => acc + order.total, 0),\n favoriteCount: 6, // Still mock as we don't have favorite hooks yet\n avgRating: 4.5, // Still mock\n };\n\n const getStatusColor = (status: string) => {\n switch (status) {\n case'delivered':\n return'bg-status-success-bg-subtle/20 text-status-success-text';\n case'preparing':\n return'bg-status-warning-bg-subtle/20 text-status-warning-text';\n case'out_for_delivery':\n return'bg-accent-blue-subtle/20 text-accent-blue';\n case'confirmed':\n return'bg-accent-blue-subtle/20 text-accent-blue';\n case'cancelled':\n return'bg-status-error-bg-subtle/20 text-status-error-text';\n default:\n return'bg-bg-sunken text-text-secondary';\n }\n };\n\n const getInsightIcon = (type: string) => {\n switch (type) {\n case'suggestion':\n return <Lightbulb className=\"h-4 w-4\" />;\n case'opportunity':\n return <TrendingUp className=\"h-4 w-4\" />;\n case'trend':\n return <Zap className=\"h-4 w-4\" />;\n default:\n return <Lightbulb className=\"h-4 w-4\" />;\n }\n };\n\n const getInsightColor = (type: string) => {\n switch (type) {\n case'suggestion':\n return'bg-accent-blue-subtle/10 text-accent-blue border-accent-blue-subtle/20';\n case'opportunity':\n return'bg-status-success-bg-subtle/10 text-status-success-text border-status-success-border/20';\n case'trend':\n return'bg-status-warning-bg-subtle/10 text-status-warning-text border-status-warning-border/20';\n default:\n return'bg-bg-sunken text-text-secondary border-border-subtle';\n }\n };\n\n if (isLoading) {\n return (\n <PageLayout title={t('coolandlovely.customerDashboard.title', 'Dashboard')}>\n <div className=\"flex items-center justify-center py-20\">\n <div className=\"text-center\">\n <div className=\"mx-auto mb-4 h-12 w-12 animate-spin rounded-full border-b-2 border-foreground\" />\n <p className=\"text-sm text-text-secondary\">\n {t('coolandlovely.customerDashboard.loading', 'Loading your dashboard...')}\n </p>\n </div>\n </div>\n </PageLayout>\n );\n }\n\n return (\n <PageLayout\n title={t('coolandlovely.customerDashboard.welcomeBack', 'Welcome Back!')}\n description={`${getTimeOfDayGreeting()}, ${firstName}`}\n >\n <PagePurpose className=\"mb-6\" icon={<ShoppingBag className=\"h-4 w-4\" />}>\n {t(\n 'coolandlovely.customerDashboard.purpose',\n 'Your home base as a customer: see what you have spent and ordered, pick up where you left off, and discover nearby carts. Use it to track recent orders, jump back into favourites, and act on personalised recommendations before they expire.'\n )}\n </PagePurpose>\n\n <NextSteps\n className=\"mb-6\"\n storageKey=\"coolandlovely-customer-dashboard\"\n steps={[\n {\n id: 'discover',\n label: t('coolandlovely.customerDashboard.next.discover', 'Discover carts near you'),\n description: t(\n 'coolandlovely.customerDashboard.next.discoverDesc',\n 'Browse open carts and services around your location.'\n ),\n icon: <Search className=\"h-4 w-4\" />,\n onClick: () => navigateTo('/customer/carts'),\n },\n {\n id: 'orders',\n label: t('coolandlovely.customerDashboard.next.orders', 'Review your orders'),\n description: t(\n 'coolandlovely.customerDashboard.next.ordersDesc',\n 'Track current orders or reorder from your history.'\n ),\n icon: <Clock className=\"h-4 w-4\" />,\n onClick: () => navigateTo('/customer/orders'),\n done: stats.totalOrders > 0,\n },\n {\n id: 'addresses',\n label: t('coolandlovely.customerDashboard.next.addresses', 'Save a delivery address'),\n description: t(\n 'coolandlovely.customerDashboard.next.addressesDesc',\n 'Add addresses so checkout is faster next time.'\n ),\n icon: <MapPin className=\"h-4 w-4\" />,\n onClick: () => navigateTo('/customer/addresses'),\n },\n ]}\n />\n\n {/* Stats Overview */}\n {stats && (\n <div className=\"grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4\">\n <div className=\"rounded-lg border border-border-seam bg-bg-surface p-4 bg-gloss-card shadow-pop\">\n <div className=\"flex items-center gap-3\">\n <div className=\"flex h-10 w-10 items-center justify-center rounded-lg bg-bg-sunken\">\n <Package className=\"h-5 w-5 text-text-secondary\" />\n </div>\n <div>\n <p className=\"text-2xl font-bold text-text-primary\">{stats.totalOrders}</p>\n <p className=\"text-xs text-text-secondary\">\n {t('coolandlovely.customerDashboard.totalOrders', 'Total Orders')}\n </p>\n </div>\n </div>\n </div>\n <div className=\"rounded-lg border border-border-seam bg-bg-surface p-4 bg-gloss-card shadow-pop\">\n <div className=\"flex items-center gap-3\">\n <div className=\"flex h-10 w-10 items-center justify-center rounded-lg bg-bg-sunken\">\n <CreditCard className=\"h-5 w-5 text-text-secondary\" />\n </div>\n <div>\n <p className=\"text-2xl font-bold text-text-primary\">\n {formatCurrency(stats.totalSpent, { minimumFractionDigits: 0 })}\n </p>\n <p className=\"text-xs text-text-secondary\">\n {t('coolandlovely.customerDashboard.totalSpent', 'Total Spent')}\n </p>\n </div>\n </div>\n </div>\n <div className=\"rounded-lg border border-border-seam bg-bg-surface p-4 bg-gloss-card shadow-pop\">\n <div className=\"flex items-center gap-3\">\n <div className=\"flex h-10 w-10 items-center justify-center rounded-lg bg-bg-sunken\">\n <Heart className=\"h-5 w-5 text-text-secondary\" />\n </div>\n <div>\n <p className=\"text-2xl font-bold text-text-primary\">{stats.favoriteCount}</p>\n <p className=\"text-xs text-text-secondary\">\n {t('coolandlovely.customerDashboard.favoriteCarts', 'Favorite Carts')}\n </p>\n </div>\n </div>\n </div>\n <div className=\"rounded-lg border border-border-seam bg-bg-surface p-4 bg-gloss-card shadow-pop\">\n <div className=\"flex items-center gap-3\">\n <div className=\"flex h-10 w-10 items-center justify-center rounded-lg bg-bg-sunken\">\n <Star className=\"h-5 w-5 text-text-secondary\" />\n </div>\n <div>\n <p className=\"text-2xl font-bold text-text-primary\">{stats.avgRating.toFixed(1)}</p>\n <p className=\"text-xs text-text-secondary\">\n {t('coolandlovely.customerDashboard.avgRatingGiven', 'Avg Rating Given')}\n </p>\n </div>\n </div>\n </div>\n </div>\n )}\n\n <div className=\"mt-8 grid grid-cols-1 gap-8 lg:grid-cols-3\">\n {/* Main Content */}\n <div className=\"lg:col-span-2 space-y-8\">\n {/* Quick Actions */}\n <section>\n <h2 className=\"text-lg font-semibold text-text-primary mb-4\">\n {t('coolandlovely.customerDashboard.quickActions', 'Quick Actions')}\n </h2>\n <div className=\"grid grid-cols-1 gap-3 sm:grid-cols-3\">\n <button\n type=\"button\"\n onClick={() => navigateTo('/customer/carts')}\n className={cn(\n 'flex items-center gap-3 rounded-lg border border-border-seam bg-bg-surface p-4 transition-colors text-left bg-gloss-card shadow-pop',\n 'hover:bg-accent hover:shadow-md'\n )}\n >\n <div className=\"flex h-10 w-10 shrink-0 items-center justify-center rounded-lg bg-accent-blue-subtle/10\">\n <Search className=\"h-5 w-5 text-accent-blue\" />\n </div>\n <div className=\"min-w-0\">\n <p className=\"text-sm font-semibold text-text-primary\">\n {t('coolandlovely.customerDashboard.discoverCarts', 'Discover Carts')}\n </p>\n <p className=\"text-xs text-text-secondary\">\n {t('coolandlovely.customerDashboard.findNearbyCarts', 'Find nearby carts')}\n </p>\n </div>\n </button>\n\n <button\n type=\"button\"\n onClick={() => navigateTo('/customer/orders')}\n className={cn(\n 'flex items-center gap-3 rounded-lg border border-border-seam bg-bg-surface p-4 transition-colors text-left bg-gloss-card shadow-pop',\n 'hover:bg-accent hover:shadow-md'\n )}\n >\n <div className=\"flex h-10 w-10 shrink-0 items-center justify-center rounded-lg bg-status-success-bg-subtle/10\">\n <Clock className=\"h-5 w-5 text-status-success-text\" />\n </div>\n <div className=\"min-w-0\">\n <p className=\"text-sm font-semibold text-text-primary\">\n {t('coolandlovely.customerDashboard.orderHistory', 'Order History')}\n </p>\n <p className=\"text-xs text-text-secondary\">\n {t('coolandlovely.customerDashboard.viewPastOrders', 'View past orders')}\n </p>\n </div>\n </button>\n\n <button\n type=\"button\"\n onClick={() => navigateTo('/customer/favorites')}\n className={cn(\n 'flex items-center gap-3 rounded-lg border border-border-seam bg-bg-surface p-4 transition-colors text-left bg-gloss-card shadow-pop',\n 'hover:bg-accent hover:shadow-md'\n )}\n >\n <div className=\"flex h-10 w-10 shrink-0 items-center justify-center rounded-lg bg-status-error-bg-subtle/10\">\n <Heart className=\"h-5 w-5 text-status-error-text\" />\n </div>\n <div className=\"min-w-0\">\n <p className=\"text-sm font-semibold text-text-primary\">\n {t('coolandlovely.customerDashboard.favorites', 'Favorites')}\n </p>\n <p className=\"text-xs text-text-secondary\">\n {t('coolandlovely.customerDashboard.savedCarts', 'Saved carts')}\n </p>\n </div>\n </button>\n </div>\n </section>\n\n {/* Recent Orders */}\n <section>\n <div className=\"flex items-center justify-between mb-4\">\n <h2 className=\"text-lg font-semibold text-text-primary\">\n {t('coolandlovely.customerDashboard.recentOrders', 'Recent Orders')}\n </h2>\n <button\n type=\"button\"\n onClick={() => navigateTo('/customer/orders')}\n className=\"flex items-center gap-1 text-sm font-medium text-text-secondary hover:text-text-primary transition-colors\"\n >\n {t('coolandlovely.common.viewAll', 'View All')}\n <ArrowRight className=\"h-4 w-4\" />\n </button>\n </div>\n\n {recentOrders.length > 0 ? (\n <div className=\"space-y-3\">\n {recentOrders.map((order) => (\n <div key={order.id} className=\"rounded-lg border border-border-seam bg-bg-surface p-4 bg-gloss-card shadow-pop\">\n <div className=\"flex flex-col sm:flex-row sm:items-start sm:justify-between gap-3\">\n <div className=\"flex-1 min-w-0\">\n <div className=\"flex flex-wrap items-center gap-2 mb-1\">\n <h3 className=\"text-sm font-semibold text-text-primary\">\n {order.cartName}\n </h3>\n <span\n className={cn(\n 'inline-flex items-center rounded-full px-2 py-0.5 text-xs font-medium capitalize',\n getStatusColor(order.status)\n )}\n >\n {order.status.replace(/_/g, ' ')}\n </span>\n </div>\n <p className=\"text-xs text-text-secondary mb-2 leading-relaxed\">\n {order.items.map((item) => `${item.name} (${item.quantity})`).join(', ')}\n </p>\n <div className=\"flex flex-wrap items-center gap-3 text-xs text-text-secondary\">\n <span className=\"font-medium text-text-primary\">\n {formatCurrency(order.total, { minimumFractionDigits: 0 })}\n </span>\n <span>{new Date(order.orderDate).toLocaleDateString()}</span>\n {order.rating && (\n <span className=\"flex items-center gap-1\">\n <Star className=\"h-3 w-3 fill-status-warning-text text-status-warning-text\" />\n {order.rating}\n </span>\n )}\n </div>\n </div>\n <button\n type=\"button\"\n onClick={() => navigateTo(`/customer/orders/${order.id}`)}\n className=\"rounded-lg border border-border-subtle px-3 py-1.5 text-xs font-medium text-text-primary hover:bg-accent transition-colors\"\n >\n {t('coolandlovely.customerDashboard.viewDetails', 'View Details')}\n </button>\n </div>\n </div>\n ))}\n </div>\n ) : (\n <EmptyState\n illustration=\"empty-data\"\n title={t('coolandlovely.customerDashboard.noRecentOrders', 'No recent orders')}\n description={t(\n 'coolandlovely.customerDashboard.noRecentOrdersDesc',\n 'Once you place an order it will show up here so you can track and reorder it.'\n )}\n action={\n <button\n type=\"button\"\n onClick={() => navigateTo('/customer/carts')}\n className=\"inline-flex items-center gap-1.5 rounded-lg bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-text hover:bg-action-primary-bg/90 transition-colors\"\n >\n <Search className=\"h-4 w-4\" />\n {t('coolandlovely.customerDashboard.discoverCarts', 'Discover Carts')}\n </button>\n }\n />\n )}\n </section>\n\n {/* Recommended Carts */}\n <section>\n <h2 className=\"text-lg font-semibold text-text-primary mb-4\">\n {t('coolandlovely.customerDashboard.recommendedForYou', 'Recommended for You')}\n </h2>\n <div className=\"grid grid-cols-1 gap-4 sm:grid-cols-2\">\n {recommendedCarts.map((cart) => (\n <div\n key={cart.id}\n className=\"rounded-lg border border-border-subtle bg-bg-surface overflow-hidden shadow-sm hover:shadow-md transition-shadow\"\n >\n <div className=\"relative h-40\">\n <img src={cart.image} alt={cart.name} className=\"h-full w-full object-cover\" />\n <div className=\"absolute top-2 right-2\">\n <span\n className={cn(\n 'inline-flex items-center rounded-full px-2 py-0.5 text-xs font-medium',\n cart.isOpen\n ? 'bg-status-success-bg-subtle/20 text-status-success-text'\n : 'bg-status-error-bg-subtle/20 text-status-error-text'\n )}\n >\n {cart.isOpen\n ? t('coolandlovely.customerDashboard.open', 'Open')\n : t('coolandlovely.customerDashboard.closed', 'Closed')}\n </span>\n </div>\n </div>\n <div className=\"p-4\">\n <div className=\"flex items-start justify-between mb-2\">\n <div className=\"min-w-0 flex-1\">\n <h3 className=\"text-sm font-semibold text-text-primary\">{cart.name}</h3>\n <p className=\"text-xs text-text-secondary\">{cart.category}</p>\n </div>\n <div className=\"flex items-center gap-1 text-xs\">\n <Star className=\"h-3 w-3 fill-status-warning-text text-status-warning-text\" />\n <span className=\"font-medium text-text-primary\">{cart.rating}</span>\n </div>\n </div>\n <div className=\"flex items-center gap-3 text-xs text-text-secondary mb-3\">\n <span className=\"flex items-center gap-1\">\n <MapPin className=\"h-3 w-3\" />\n {cart.distance}km away\n </span>\n <span className=\"flex items-center gap-1\">\n <Clock className=\"h-3 w-3\" />\n {cart.estimatedTime} mins\n </span>\n </div>\n <button\n type=\"button\"\n disabled={!cart.isOpen}\n onClick={() => cart.isOpen && navigateTo(`/customer/carts/${cart.id}`)}\n className={cn(\n 'w-full rounded-lg py-2 text-sm font-medium transition-opacity',\n cart.isOpen\n ? 'bg-foreground text-background hover:opacity-90'\n : 'bg-bg-sunken text-text-secondary cursor-not-allowed'\n )}\n >\n {cart.isOpen\n ? t('coolandlovely.customerDashboard.viewMenu', 'View Menu')\n : t('coolandlovely.customerDashboard.currentlyClosed', 'Currently Closed')}\n </button>\n </div>\n </div>\n ))}\n </div>\n </section>\n </div>\n\n {/* Sidebar */}\n <div className=\"space-y-6\">\n {/* AI Insights Panel — primary emphasis zone */}\n <EmphasisPanel className=\"p-5\">\n <h3 className=\"text-base font-semibold text-text-primary mb-4\">\n {t(\n 'coolandlovely.customerDashboard.personalizedRecommendations',\n 'Personalized Recommendations'\n )}\n </h3>\n <div className=\"space-y-3\">\n {aiInsights.map((insight) => (\n <div\n key={insight.id}\n className={cn('rounded-lg border p-3', getInsightColor(insight.type))}\n >\n <div className=\"flex items-start gap-2\">\n <div className=\"mt-0.5 shrink-0\">{getInsightIcon(insight.type)}</div>\n <div className=\"flex-1 min-w-0\">\n <div className=\"flex items-center justify-between gap-2\">\n <p className=\"text-xs font-semibold\">{insight.title}</p>\n <span className=\"text-[10px] opacity-70\">{insight.confidence}%</span>\n </div>\n <p className=\"mt-1 text-xs opacity-80 leading-relaxed\">\n {insight.description}\n </p>\n <button\n type=\"button\"\n onClick={() => navigateTo('/customer/carts')}\n className=\"mt-2 text-[10px] font-semibold underline underline-offset-2\"\n >\n {insight.action}\n </button>\n </div>\n </div>\n </div>\n ))}\n </div>\n </EmphasisPanel>\n\n {/* Quick Links */}\n <div className=\"rounded-lg border border-border-seam bg-bg-surface p-5 bg-gloss-card shadow-pop\">\n <h3 className=\"text-base font-semibold text-text-primary mb-3\">\n {t('coolandlovely.customerDashboard.quickLinks', 'Quick Links')}\n </h3>\n <div className=\"space-y-2\">\n <button\n type=\"button\"\n onClick={() => navigateTo('/customer/profile')}\n 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\"\n >\n <User className=\"h-4 w-4 text-text-secondary\" />\n {t('coolandlovely.customerDashboard.profileSettings', 'Profile Settings')}\n </button>\n <button\n type=\"button\"\n onClick={() => navigateTo('/customer/addresses')}\n 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\"\n >\n <MapPin className=\"h-4 w-4 text-text-secondary\" />\n {t('coolandlovely.customerDashboard.savedAddresses', 'Saved Addresses')}\n </button>\n <button\n type=\"button\"\n onClick={() => navigateTo('/customer/payment-methods')}\n 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\"\n >\n <CreditCard className=\"h-4 w-4 text-text-secondary\" />\n {t('coolandlovely.customerDashboard.paymentMethods', 'Payment Methods')}\n </button>\n </div>\n </div>\n\n {/* Current Location */}\n <div className=\"rounded-lg border border-border-seam bg-bg-surface p-5 bg-gloss-card shadow-pop\">\n <h3 className=\"text-base font-semibold text-text-primary mb-3\">\n {t('coolandlovely.customerDashboard.currentLocation', 'Current Location')}\n </h3>\n <div className=\"flex items-start gap-3\">\n <Navigation className=\"h-4 w-4 text-accent-blue mt-0.5 shrink-0\" />\n <div className=\"flex-1 min-w-0\">\n <p className=\"text-sm font-medium text-text-primary\">Koramangala</p>\n <p className=\"text-xs text-text-secondary\">80 Feet Road, 6th Block</p>\n <p className=\"text-xs text-text-secondary\">Bangalore, Karnataka</p>\n </div>\n </div>\n <button\n type=\"button\"\n onClick={() => navigateTo('/customer/addresses')}\n className=\"mt-3 w-full rounded-lg border border-border-subtle px-3 py-2 text-xs font-medium text-text-primary hover:bg-accent transition-colors\"\n >\n {t('coolandlovely.customerDashboard.updateLocation', 'Update Location')}\n </button>\n </div>\n\n {/* Special Offers */}\n <div className=\"rounded-lg bg-gradient-to-r from-accent-blue/10 to-accent-purple/10 border border-accent-blue-subtle/20 p-5\">\n <h3 className=\"text-base font-semibold text-text-primary mb-2\">\n {t('coolandlovely.customerDashboard.specialOffers', 'Special Offers')}\n </h3>\n <p className=\"text-xs text-text-secondary mb-3 leading-relaxed\">\n {t(\n 'coolandlovely.customerDashboard.specialOffersDescription',\n 'Get 25% off on your next order from featured carts'\n )}\n </p>\n <button\n type=\"button\"\n onClick={() => navigateTo('/customer/carts')}\n className=\"w-full rounded-lg bg-foreground px-3 py-2 text-sm font-medium text-background hover:opacity-90 transition-opacity\"\n >\n {t('coolandlovely.customerDashboard.viewOffers', 'View Offers')}\n </button>\n </div>\n </div>\n </div>\n </PageLayout>\n );\n}\n"],"mappings":";;;;;;;;;;;;AA8DA,SAAS,IAA+B;CACtC,IAAM,qBAAO,IAAI,MAAM,EAAC,UAAU;AAGlC,QAFI,IAAO,KAAU,iBACjB,IAAO,KAAU,mBACf;;AAGR,SAAgB,IAAoB;CAClC,IAAM,EAAE,eAAY,mBAAgB,GAAkB,EAChD,EAAE,GAAG,MAAc,GAAS,EAE5B,EAAE,MAAM,IAAS,EAAE,EAAE,WAAW,MAAoB,EAAU,EAClE,YAAY,GAAa,IAC1B,CAAC,EACI,EAAE,MAAM,IAAY,EAAE,EAAE,WAAW,MAAuB,GAAc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