@burdenoff/microfe-coolandlovely 2026.624.1 → 2026.625.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/coolandlovely/components/EmptyState.js +17 -21
- package/dist/coolandlovely/components/EmptyState.js.map +1 -1
- package/dist/coolandlovely/components/InvestmentCard.js +25 -23
- package/dist/coolandlovely/components/InvestmentCard.js.map +1 -1
- package/dist/coolandlovely/components/MetricsCard.js +18 -12
- package/dist/coolandlovely/components/MetricsCard.js.map +1 -1
- package/dist/coolandlovely/components/PageLayout.js +38 -19
- package/dist/coolandlovely/components/PageLayout.js.map +1 -1
- package/dist/coolandlovely/components/RatingDisplay.js +3 -3
- package/dist/coolandlovely/components/RatingDisplay.js.map +1 -1
- package/dist/coolandlovely/components/StatusBadge.js +36 -16
- package/dist/coolandlovely/components/StatusBadge.js.map +1 -1
- package/dist/coolandlovely/pages/HomePage.js +219 -204
- package/dist/coolandlovely/pages/HomePage.js.map +1 -1
- package/dist/coolandlovely/pages/admin/AdminAnalyticsPage.js +98 -92
- package/dist/coolandlovely/pages/admin/AdminAnalyticsPage.js.map +1 -1
- package/dist/coolandlovely/pages/admin/AdminDashboard.js +111 -77
- package/dist/coolandlovely/pages/admin/AdminDashboard.js.map +1 -1
- package/dist/coolandlovely/pages/admin/AdminFinancialPage.js +49 -43
- package/dist/coolandlovely/pages/admin/AdminFinancialPage.js.map +1 -1
- package/dist/coolandlovely/pages/admin/AdminOrdersPage.js +234 -229
- package/dist/coolandlovely/pages/admin/AdminOrdersPage.js.map +1 -1
- package/dist/coolandlovely/pages/admin/AdminProfilePage.js +67 -62
- package/dist/coolandlovely/pages/admin/AdminProfilePage.js.map +1 -1
- package/dist/coolandlovely/pages/admin/AdminSettingsPage.js +235 -230
- package/dist/coolandlovely/pages/admin/AdminSettingsPage.js.map +1 -1
- package/dist/coolandlovely/pages/admin/CartManagementPage.js +291 -286
- package/dist/coolandlovely/pages/admin/CartManagementPage.js.map +1 -1
- package/dist/coolandlovely/pages/admin/UserManagementPage.js +287 -282
- package/dist/coolandlovely/pages/admin/UserManagementPage.js.map +1 -1
- package/dist/coolandlovely/pages/cart-owner/AnalyticsDashboard.js +108 -100
- package/dist/coolandlovely/pages/cart-owner/AnalyticsDashboard.js.map +1 -1
- package/dist/coolandlovely/pages/cart-owner/BusinessSettingsPage.js +260 -255
- package/dist/coolandlovely/pages/cart-owner/BusinessSettingsPage.js.map +1 -1
- package/dist/coolandlovely/pages/cart-owner/CartOwnerDashboard.js +596 -554
- package/dist/coolandlovely/pages/cart-owner/CartOwnerDashboard.js.map +1 -1
- package/dist/coolandlovely/pages/cart-owner/CartOwnerProfilePage.js +187 -182
- package/dist/coolandlovely/pages/cart-owner/CartOwnerProfilePage.js.map +1 -1
- package/dist/coolandlovely/pages/cart-owner/CartServiceConfigPage.js +229 -221
- package/dist/coolandlovely/pages/cart-owner/CartServiceConfigPage.js.map +1 -1
- package/dist/coolandlovely/pages/cart-owner/InventoryManagementPage.js +675 -674
- package/dist/coolandlovely/pages/cart-owner/InventoryManagementPage.js.map +1 -1
- package/dist/coolandlovely/pages/cart-owner/OrderManagementPage.js +525 -524
- package/dist/coolandlovely/pages/cart-owner/OrderManagementPage.js.map +1 -1
- package/dist/coolandlovely/pages/cart-owner/StaffManagementPage.js +264 -266
- package/dist/coolandlovely/pages/cart-owner/StaffManagementPage.js.map +1 -1
- package/dist/coolandlovely/pages/common/HelpSupportPage.js +137 -137
- package/dist/coolandlovely/pages/common/HelpSupportPage.js.map +1 -1
- package/dist/coolandlovely/pages/common/NotificationCenterPage.js +81 -75
- package/dist/coolandlovely/pages/common/NotificationCenterPage.js.map +1 -1
- package/dist/coolandlovely/pages/common/SettingsPage.js +745 -736
- package/dist/coolandlovely/pages/common/SettingsPage.js.map +1 -1
- package/dist/coolandlovely/pages/customer/BookingDetailsPage.js +394 -357
- package/dist/coolandlovely/pages/customer/BookingDetailsPage.js.map +1 -1
- package/dist/coolandlovely/pages/customer/CartDetailPage.js +189 -186
- package/dist/coolandlovely/pages/customer/CartDetailPage.js.map +1 -1
- package/dist/coolandlovely/pages/customer/CartDiscoveryPage.js +222 -211
- package/dist/coolandlovely/pages/customer/CartDiscoveryPage.js.map +1 -1
- package/dist/coolandlovely/pages/customer/CheckoutPage.js +219 -222
- package/dist/coolandlovely/pages/customer/CheckoutPage.js.map +1 -1
- package/dist/coolandlovely/pages/customer/CustomerDashboard.js +446 -404
- package/dist/coolandlovely/pages/customer/CustomerDashboard.js.map +1 -1
- package/dist/coolandlovely/pages/customer/CustomerProfilePage.js +525 -488
- package/dist/coolandlovely/pages/customer/CustomerProfilePage.js.map +1 -1
- package/dist/coolandlovely/pages/customer/DirectServiceBookingPage.js +522 -513
- package/dist/coolandlovely/pages/customer/DirectServiceBookingPage.js.map +1 -1
- package/dist/coolandlovely/pages/customer/FavoritesPage.js +94 -84
- package/dist/coolandlovely/pages/customer/FavoritesPage.js.map +1 -1
- package/dist/coolandlovely/pages/customer/OrderHistoryPage.js +121 -112
- package/dist/coolandlovely/pages/customer/OrderHistoryPage.js.map +1 -1
- package/dist/coolandlovely/pages/customer/OrderTrackingPage.js +312 -275
- package/dist/coolandlovely/pages/customer/OrderTrackingPage.js.map +1 -1
- package/dist/coolandlovely/pages/customer/PaymentMethodsPage.js +90 -84
- package/dist/coolandlovely/pages/customer/PaymentMethodsPage.js.map +1 -1
- package/dist/coolandlovely/pages/customer/ReviewsPage.js +99 -89
- package/dist/coolandlovely/pages/customer/ReviewsPage.js.map +1 -1
- package/dist/coolandlovely/pages/customer/SavedAddressesPage.js +74 -68
- package/dist/coolandlovely/pages/customer/SavedAddressesPage.js.map +1 -1
- package/dist/coolandlovely/pages/investor/InvestmentDetailsPage.js +317 -279
- package/dist/coolandlovely/pages/investor/InvestmentDetailsPage.js.map +1 -1
- package/dist/coolandlovely/pages/investor/InvestmentOpportunitiesPage.js +249 -243
- package/dist/coolandlovely/pages/investor/InvestmentOpportunitiesPage.js.map +1 -1
- package/dist/coolandlovely/pages/investor/InvestorAnalyticsPage.js +87 -81
- package/dist/coolandlovely/pages/investor/InvestorAnalyticsPage.js.map +1 -1
- package/dist/coolandlovely/pages/investor/InvestorDashboard.js +359 -323
- package/dist/coolandlovely/pages/investor/InvestorDashboard.js.map +1 -1
- package/dist/coolandlovely/pages/investor/InvestorInvestmentsPage.js +115 -109
- package/dist/coolandlovely/pages/investor/InvestorInvestmentsPage.js.map +1 -1
- package/dist/coolandlovely/pages/investor/InvestorPortfolioPage.js +179 -146
- package/dist/coolandlovely/pages/investor/InvestorPortfolioPage.js.map +1 -1
- package/dist/coolandlovely/pages/investor/InvestorProfilePage.js +397 -392
- package/dist/coolandlovely/pages/investor/InvestorProfilePage.js.map +1 -1
- package/dist/coolandlovely/pages/worker/TaskDetailsPage.js +364 -327
- package/dist/coolandlovely/pages/worker/TaskDetailsPage.js.map +1 -1
- package/dist/coolandlovely/pages/worker/WorkerDashboard.js +580 -543
- package/dist/coolandlovely/pages/worker/WorkerDashboard.js.map +1 -1
- package/dist/coolandlovely/pages/worker/WorkerOrdersPage.js +114 -109
- package/dist/coolandlovely/pages/worker/WorkerOrdersPage.js.map +1 -1
- package/dist/coolandlovely/pages/worker/WorkerProfilePage.js +115 -110
- package/dist/coolandlovely/pages/worker/WorkerProfilePage.js.map +1 -1
- package/dist/coolandlovely/pages/worker/WorkerSchedulePage.js +100 -95
- package/dist/coolandlovely/pages/worker/WorkerSchedulePage.js.map +1 -1
- package/package.json +3 -3
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { useCoolAndLovely as e } from "../../context/CoolAndLovelyContext.js";
|
|
2
2
|
import { cn as t } from "../../utils/cn.js";
|
|
3
3
|
import { PageLayout as n } from "../../components/PageLayout.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
4
|
+
import { EmptyState as r } from "../../components/EmptyState.js";
|
|
5
|
+
import { formatDate as i } from "../../utils/formatters.js";
|
|
6
|
+
import { useMemo as a, useState as o } from "react";
|
|
7
|
+
import { AlertCircle as ee, AlertTriangle as s, BookOpen as te, CheckCircle2 as c, ChevronDown as ne, ChevronUp as re, Circle as l, CircleDot as u, Clock as d, CreditCard as f, ExternalLink as ie, FileText as p, HelpCircle as m, Info as ae, Lightbulb as oe, Mail as h, MessageCircle as g, MessageSquare as _, Phone as v, PhoneCall as y, Search as se, Send as ce, Shield as b, ShoppingBag as x, Tag as S, ThumbsUp as C, Ticket as w, TrendingUp as T, Truck as E, User as D, Wrench as O, X as k, XCircle as A } from "lucide-react";
|
|
7
8
|
import { Fragment as j, jsx as M, jsxs as N } from "react/jsx-runtime";
|
|
9
|
+
import { GlassCard as le, PagePurpose as ue } from "@burdenoff/fe-libs/ui";
|
|
8
10
|
//#region src/coolandlovely/pages/common/HelpSupportPage.tsx
|
|
9
11
|
var P = [
|
|
10
12
|
"Account & Profile",
|
|
@@ -15,62 +17,62 @@ var P = [
|
|
|
15
17
|
"Technical Issues",
|
|
16
18
|
"Billing & Refunds",
|
|
17
19
|
"Privacy & Security"
|
|
18
|
-
],
|
|
20
|
+
], de = [
|
|
19
21
|
{
|
|
20
22
|
label: "Getting Started",
|
|
21
|
-
icon:
|
|
23
|
+
icon: te,
|
|
22
24
|
description: "New to CoolAndLovely? Start here",
|
|
23
|
-
color: "bg-blue-
|
|
25
|
+
color: "bg-accent-blue-subtle/10 text-accent-blue"
|
|
24
26
|
},
|
|
25
27
|
{
|
|
26
28
|
label: "Orders & Delivery",
|
|
27
|
-
icon:
|
|
29
|
+
icon: x,
|
|
28
30
|
description: "Placing, tracking, and cancelling orders",
|
|
29
|
-
color: "bg-
|
|
31
|
+
color: "bg-status-success-bg-subtle/10 text-status-success-text"
|
|
30
32
|
},
|
|
31
33
|
{
|
|
32
34
|
label: "Payments & Billing",
|
|
33
|
-
icon:
|
|
35
|
+
icon: f,
|
|
34
36
|
description: "Payment methods, refunds, and invoices",
|
|
35
|
-
color: "bg-purple-
|
|
37
|
+
color: "bg-accent-purple-subtle/10 text-accent-purple"
|
|
36
38
|
},
|
|
37
39
|
{
|
|
38
40
|
label: "Account & Profile",
|
|
39
41
|
icon: D,
|
|
40
42
|
description: "Manage your account and settings",
|
|
41
|
-
color: "bg-orange-
|
|
43
|
+
color: "bg-accent-orange-subtle/10 text-accent-orange"
|
|
42
44
|
},
|
|
43
45
|
{
|
|
44
46
|
label: "Cart Owners",
|
|
45
47
|
icon: O,
|
|
46
48
|
description: "Running your cart business",
|
|
47
|
-
color: "bg-teal-
|
|
49
|
+
color: "bg-accent-teal-subtle/10 text-accent-teal"
|
|
48
50
|
},
|
|
49
51
|
{
|
|
50
52
|
label: "Workers & Delivery",
|
|
51
53
|
icon: E,
|
|
52
54
|
description: "Delivery partner information",
|
|
53
|
-
color: "bg-indigo-
|
|
55
|
+
color: "bg-accent-indigo-subtle/10 text-accent-indigo"
|
|
54
56
|
},
|
|
55
57
|
{
|
|
56
58
|
label: "Investments",
|
|
57
59
|
icon: T,
|
|
58
60
|
description: "Investment opportunities and returns",
|
|
59
|
-
color: "bg-
|
|
61
|
+
color: "bg-status-success-bg-subtle/10 text-status-success-text"
|
|
60
62
|
},
|
|
61
63
|
{
|
|
62
64
|
label: "Security & Privacy",
|
|
63
|
-
icon:
|
|
65
|
+
icon: b,
|
|
64
66
|
description: "Data protection and safety",
|
|
65
|
-
color: "bg-
|
|
67
|
+
color: "bg-status-error-bg-subtle/10 text-status-error-text"
|
|
66
68
|
},
|
|
67
69
|
{
|
|
68
70
|
label: "Technical Issues",
|
|
69
|
-
icon:
|
|
71
|
+
icon: s,
|
|
70
72
|
description: "App issues and troubleshooting",
|
|
71
|
-
color: "bg-
|
|
73
|
+
color: "bg-status-warning-bg-subtle/10 text-status-warning-text"
|
|
72
74
|
}
|
|
73
|
-
],
|
|
75
|
+
], F = [
|
|
74
76
|
{
|
|
75
77
|
type: "email",
|
|
76
78
|
label: "Email Support",
|
|
@@ -103,12 +105,12 @@ var P = [
|
|
|
103
105
|
responseTime: "2-4 hours",
|
|
104
106
|
icon: _
|
|
105
107
|
}
|
|
106
|
-
],
|
|
108
|
+
], fe = [
|
|
107
109
|
{
|
|
108
110
|
id: "faq-001",
|
|
109
111
|
category: "Account & Profile",
|
|
110
112
|
question: "How do I create an account on CoolAndLovely?",
|
|
111
|
-
answer: "You can create an account by clicking the
|
|
113
|
+
answer: "You can create an account by clicking the\"Sign Up\" button on the homepage. You'll need to provide your name, email address, phone number, and choose your role (Customer, Cart Owner, Worker, or Investor). After verification via OTP, your account will be activated immediately.",
|
|
112
114
|
helpful: 142,
|
|
113
115
|
tags: [
|
|
114
116
|
"account",
|
|
@@ -196,7 +198,7 @@ var P = [
|
|
|
196
198
|
id: "faq-008",
|
|
197
199
|
category: "Cart Owners",
|
|
198
200
|
question: "What commission does CoolAndLovely charge?",
|
|
199
|
-
answer: "CoolAndLovely charges a commission of 15-20% on each order, depending on your cart category and monthly order volume. Higher volume cart owners get reduced rates. This includes payment processing, marketing support, customer acquisition, and platform maintenance. You can view the detailed commission structure in your dashboard under
|
|
201
|
+
answer: "CoolAndLovely charges a commission of 15-20% on each order, depending on your cart category and monthly order volume. Higher volume cart owners get reduced rates. This includes payment processing, marketing support, customer acquisition, and platform maintenance. You can view the detailed commission structure in your dashboard under\"Finances\".",
|
|
200
202
|
helpful: 94,
|
|
201
203
|
tags: [
|
|
202
204
|
"commission",
|
|
@@ -222,7 +224,7 @@ var P = [
|
|
|
222
224
|
id: "faq-010",
|
|
223
225
|
category: "Delivery & Workers",
|
|
224
226
|
question: "How do I become a delivery worker?",
|
|
225
|
-
answer: "Apply through the
|
|
227
|
+
answer: "Apply through the\"Join as Worker\" section on the app. You'll need a valid driving license, vehicle registration (bike/scooter), Aadhaar card, PAN card, and a smartphone with GPS. After document verification and background check (3-5 days), you'll receive online training and can start accepting delivery requests.",
|
|
226
228
|
helpful: 78,
|
|
227
229
|
tags: [
|
|
228
230
|
"worker",
|
|
@@ -299,7 +301,7 @@ var P = [
|
|
|
299
301
|
id: "faq-016",
|
|
300
302
|
category: "Billing & Refunds",
|
|
301
303
|
question: "How do I request a refund?",
|
|
302
|
-
answer: "Refunds can be requested within 24 hours of order placement if the order hasn't been prepared. Go to
|
|
304
|
+
answer: "Refunds can be requested within 24 hours of order placement if the order hasn't been prepared. Go to\"My Orders\" > Select the order > \"Request Refund\". You'll need to select a reason. Refunds for quality issues can be raised within 2 hours of delivery. Refunds are processed within 3-5 business days to your original payment method.",
|
|
303
305
|
helpful: 167,
|
|
304
306
|
tags: [
|
|
305
307
|
"refund",
|
|
@@ -360,7 +362,7 @@ var P = [
|
|
|
360
362
|
"data"
|
|
361
363
|
]
|
|
362
364
|
}
|
|
363
|
-
],
|
|
365
|
+
], I = [
|
|
364
366
|
{
|
|
365
367
|
id: "ticket-001",
|
|
366
368
|
subject: "Payment failed but amount deducted",
|
|
@@ -472,55 +474,55 @@ var P = [
|
|
|
472
474
|
views: 4321
|
|
473
475
|
}
|
|
474
476
|
];
|
|
475
|
-
function
|
|
477
|
+
function R(e) {
|
|
476
478
|
switch (e) {
|
|
477
|
-
case "open": return
|
|
478
|
-
case "in-progress": return
|
|
479
|
+
case "open": return l;
|
|
480
|
+
case "in-progress": return u;
|
|
479
481
|
case "resolved": return c;
|
|
480
482
|
case "closed": return A;
|
|
481
483
|
}
|
|
482
484
|
}
|
|
483
|
-
function
|
|
485
|
+
function z(e) {
|
|
484
486
|
switch (e) {
|
|
485
|
-
case "open": return "bg-blue-
|
|
486
|
-
case "in-progress": return "bg-
|
|
487
|
-
case "resolved": return "bg-
|
|
487
|
+
case "open": return "bg-accent-blue-subtle/10 text-accent-blue";
|
|
488
|
+
case "in-progress": return "bg-status-warning-bg-subtle/10 text-status-warning-text";
|
|
489
|
+
case "resolved": return "bg-status-success-bg-subtle/10 text-status-success-text";
|
|
488
490
|
case "closed": return "bg-bg-sunken text-text-secondary";
|
|
489
491
|
}
|
|
490
492
|
}
|
|
491
|
-
function
|
|
493
|
+
function B(e) {
|
|
492
494
|
switch (e) {
|
|
493
|
-
case "urgent": return "bg-
|
|
494
|
-
case "high": return "bg-orange-
|
|
495
|
-
case "medium": return "bg-blue-
|
|
495
|
+
case "urgent": return "bg-status-error-bg-subtle/10 text-status-error-text";
|
|
496
|
+
case "high": return "bg-accent-orange-subtle/10 text-accent-orange";
|
|
497
|
+
case "medium": return "bg-accent-blue-subtle/10 text-accent-blue";
|
|
496
498
|
case "low": return "bg-bg-sunken text-text-secondary";
|
|
497
499
|
}
|
|
498
500
|
}
|
|
499
|
-
function
|
|
501
|
+
function pe(e) {
|
|
500
502
|
return e.replace("-", " ").replace(/\b\w/g, (e) => e.toUpperCase());
|
|
501
503
|
}
|
|
502
504
|
function V() {
|
|
503
|
-
let { currentUser:
|
|
505
|
+
let { currentUser: te } = e(), [l, u] = o("faq"), [f, g] = o(""), [y, b] = o(""), [x, T] = o(null), [E, D] = o(fe), [O, A] = o(I), [V, H] = o(!1), [U, W] = o(!1), [G, K] = o(""), [q, J] = o(""), [Y, X] = o({
|
|
504
506
|
subject: "",
|
|
505
507
|
category: "",
|
|
506
508
|
priority: "medium",
|
|
507
509
|
description: ""
|
|
508
|
-
}), Z =
|
|
509
|
-
let t = !
|
|
510
|
+
}), Z = a(() => E.filter((e) => {
|
|
511
|
+
let t = !f || e.question.toLowerCase().includes(f.toLowerCase()) || e.answer.toLowerCase().includes(f.toLowerCase()) || e.tags.some((e) => e.toLowerCase().includes(f.toLowerCase())), n = !y || e.category === y;
|
|
510
512
|
return t && n;
|
|
511
513
|
}), [
|
|
512
514
|
E,
|
|
513
|
-
|
|
515
|
+
f,
|
|
514
516
|
y
|
|
515
|
-
]), Q =
|
|
517
|
+
]), Q = a(() => ({
|
|
516
518
|
open: O.filter((e) => e.status === "open").length,
|
|
517
519
|
inProgress: O.filter((e) => e.status === "in-progress").length,
|
|
518
520
|
resolved: O.filter((e) => e.status === "resolved").length,
|
|
519
521
|
closed: O.filter((e) => e.status === "closed").length,
|
|
520
522
|
total: O.length
|
|
521
|
-
}), [O]),
|
|
523
|
+
}), [O]), me = (e) => {
|
|
522
524
|
T((t) => t === e ? null : e);
|
|
523
|
-
},
|
|
525
|
+
}, he = (e) => {
|
|
524
526
|
D((t) => t.map((t) => t.id === e ? {
|
|
525
527
|
...t,
|
|
526
528
|
helpful: t.helpful + 1
|
|
@@ -540,7 +542,7 @@ function V() {
|
|
|
540
542
|
alert("Live chat will be available soon!");
|
|
541
543
|
break;
|
|
542
544
|
}
|
|
543
|
-
},
|
|
545
|
+
}, ge = () => {
|
|
544
546
|
if (J(""), K(""), !Y.subject.trim()) {
|
|
545
547
|
J("Please enter a subject for your ticket.");
|
|
546
548
|
return;
|
|
@@ -570,13 +572,13 @@ function V() {
|
|
|
570
572
|
category: "",
|
|
571
573
|
priority: "medium",
|
|
572
574
|
description: ""
|
|
573
|
-
}), W(!1), H(!1), K("Support ticket created successfully! Our team will respond within 24 hours."),
|
|
575
|
+
}), W(!1), H(!1), K("Support ticket created successfully! Our team will respond within 24 hours."), u("tickets"), setTimeout(() => K(""), 5e3);
|
|
574
576
|
}, 1e3);
|
|
575
|
-
},
|
|
577
|
+
}, _e = [
|
|
576
578
|
{
|
|
577
579
|
id: "faq",
|
|
578
580
|
label: "FAQ",
|
|
579
|
-
icon:
|
|
581
|
+
icon: m
|
|
580
582
|
},
|
|
581
583
|
{
|
|
582
584
|
id: "contact",
|
|
@@ -594,7 +596,7 @@ function V() {
|
|
|
594
596
|
description: "Find answers, contact support, or track your requests",
|
|
595
597
|
children: [
|
|
596
598
|
G && /* @__PURE__ */ N("div", {
|
|
597
|
-
className: "mb-4 flex items-center gap-2 rounded-lg border border-
|
|
599
|
+
className: "mb-4 flex items-center gap-2 rounded-lg border border-status-success-border/30 bg-status-success-bg-subtle/10 px-4 py-3 text-sm text-status-success-text",
|
|
598
600
|
children: [
|
|
599
601
|
/* @__PURE__ */ M(c, { className: "h-4 w-4 shrink-0" }),
|
|
600
602
|
G,
|
|
@@ -606,22 +608,29 @@ function V() {
|
|
|
606
608
|
})
|
|
607
609
|
]
|
|
608
610
|
}),
|
|
609
|
-
/* @__PURE__ */ M(
|
|
611
|
+
/* @__PURE__ */ M(ue, {
|
|
610
612
|
className: "mb-6",
|
|
613
|
+
icon: /* @__PURE__ */ M(m, { className: "h-4 w-4" }),
|
|
614
|
+
children: "Stuck or have a question? Start by searching our FAQs and help topics for an instant answer. If you still need a hand, contact support or raise a ticket right here and track its progress — help is always one step away."
|
|
615
|
+
}),
|
|
616
|
+
/* @__PURE__ */ M(le, {
|
|
617
|
+
treatment: "glass",
|
|
618
|
+
glow: !0,
|
|
619
|
+
className: "mb-6 p-4",
|
|
611
620
|
children: /* @__PURE__ */ N("div", {
|
|
612
621
|
className: "relative",
|
|
613
622
|
children: [
|
|
614
|
-
/* @__PURE__ */ M(
|
|
623
|
+
/* @__PURE__ */ M(se, { className: "absolute left-3 top-1/2 h-5 w-5 -translate-y-1/2 text-text-secondary" }),
|
|
615
624
|
/* @__PURE__ */ M("input", {
|
|
616
625
|
type: "text",
|
|
617
|
-
value:
|
|
626
|
+
value: f,
|
|
618
627
|
onChange: (e) => {
|
|
619
|
-
g(e.target.value),
|
|
628
|
+
g(e.target.value), l !== "faq" && u("faq");
|
|
620
629
|
},
|
|
621
630
|
placeholder: "Search help articles, FAQs, and more...",
|
|
622
631
|
className: "w-full rounded-lg border border-border-subtle bg-bg-surface py-3 pl-10 pr-10 text-sm text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
|
|
623
632
|
}),
|
|
624
|
-
|
|
633
|
+
f && /* @__PURE__ */ M("button", {
|
|
625
634
|
type: "button",
|
|
626
635
|
onClick: () => g(""),
|
|
627
636
|
className: "absolute right-3 top-1/2 -translate-y-1/2 text-text-secondary hover:text-text-primary",
|
|
@@ -637,12 +646,12 @@ function V() {
|
|
|
637
646
|
children: "Browse Help Topics"
|
|
638
647
|
}), /* @__PURE__ */ M("div", {
|
|
639
648
|
className: "grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3",
|
|
640
|
-
children:
|
|
649
|
+
children: de.map((e) => {
|
|
641
650
|
let n = e.icon;
|
|
642
651
|
return /* @__PURE__ */ N("button", {
|
|
643
652
|
type: "button",
|
|
644
653
|
onClick: () => {
|
|
645
|
-
|
|
654
|
+
b(e.label === y ? "" : e.label), u("faq");
|
|
646
655
|
},
|
|
647
656
|
className: t("flex items-start gap-3 rounded-lg border bg-bg-surface p-4 text-left transition-all hover:shadow-sm", y === e.label ? "border-primary ring-1 ring-primary" : "border-border-subtle"),
|
|
648
657
|
children: [/* @__PURE__ */ M("div", {
|
|
@@ -663,12 +672,12 @@ function V() {
|
|
|
663
672
|
className: "mb-6",
|
|
664
673
|
children: /* @__PURE__ */ M("div", {
|
|
665
674
|
className: "flex space-x-1 bg-bg-sunken p-1 rounded-lg w-full sm:w-fit",
|
|
666
|
-
children:
|
|
675
|
+
children: _e.map((e) => {
|
|
667
676
|
let n = e.icon;
|
|
668
677
|
return /* @__PURE__ */ N("button", {
|
|
669
678
|
type: "button",
|
|
670
|
-
onClick: () =>
|
|
671
|
-
className: t("flex flex-1 sm:flex-none items-center justify-center gap-2 rounded-md px-4 py-2 text-sm font-medium transition-colors",
|
|
679
|
+
onClick: () => u(e.id),
|
|
680
|
+
className: t("flex flex-1 sm:flex-none items-center justify-center gap-2 rounded-md px-4 py-2 text-sm font-medium transition-colors", l === e.id ? "bg-bg-surface text-text-primary shadow-sm" : "text-text-secondary hover:text-text-primary"),
|
|
672
681
|
children: [
|
|
673
682
|
/* @__PURE__ */ M(n, { className: "h-4 w-4" }),
|
|
674
683
|
/* @__PURE__ */ M("span", { children: e.label }),
|
|
@@ -681,7 +690,7 @@ function V() {
|
|
|
681
690
|
})
|
|
682
691
|
})
|
|
683
692
|
}),
|
|
684
|
-
|
|
693
|
+
l === "faq" && /* @__PURE__ */ N("div", { children: [/* @__PURE__ */ N("div", {
|
|
685
694
|
className: "mb-4 flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",
|
|
686
695
|
children: [/* @__PURE__ */ N("p", {
|
|
687
696
|
className: "text-sm text-text-secondary",
|
|
@@ -699,7 +708,7 @@ function V() {
|
|
|
699
708
|
}),
|
|
700
709
|
/* @__PURE__ */ M("button", {
|
|
701
710
|
type: "button",
|
|
702
|
-
onClick: () =>
|
|
711
|
+
onClick: () => b(""),
|
|
703
712
|
className: "ml-1 text-primary hover:underline",
|
|
704
713
|
children: "(clear)"
|
|
705
714
|
})
|
|
@@ -707,7 +716,7 @@ function V() {
|
|
|
707
716
|
]
|
|
708
717
|
}), /* @__PURE__ */ N("select", {
|
|
709
718
|
value: y,
|
|
710
|
-
onChange: (e) =>
|
|
719
|
+
onChange: (e) => b(e.target.value),
|
|
711
720
|
className: "rounded-lg border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
|
|
712
721
|
children: [/* @__PURE__ */ M("option", {
|
|
713
722
|
value: "",
|
|
@@ -720,12 +729,12 @@ function V() {
|
|
|
720
729
|
}), Z.length > 0 ? /* @__PURE__ */ M("div", {
|
|
721
730
|
className: "space-y-3",
|
|
722
731
|
children: Z.map((e) => {
|
|
723
|
-
let n =
|
|
732
|
+
let n = x === e.id;
|
|
724
733
|
return /* @__PURE__ */ N("div", {
|
|
725
734
|
className: "rounded-lg border border-border-subtle bg-bg-surface overflow-hidden",
|
|
726
735
|
children: [/* @__PURE__ */ N("button", {
|
|
727
736
|
type: "button",
|
|
728
|
-
onClick: () =>
|
|
737
|
+
onClick: () => me(e.id),
|
|
729
738
|
className: "flex w-full items-start justify-between gap-3 px-4 py-4 text-left hover:bg-accent/50 transition-colors",
|
|
730
739
|
children: [/* @__PURE__ */ N("div", {
|
|
731
740
|
className: "flex-1 min-w-0",
|
|
@@ -742,7 +751,7 @@ function V() {
|
|
|
742
751
|
className: t("text-sm", n ? "font-semibold text-text-primary" : "font-medium text-text-primary"),
|
|
743
752
|
children: e.question
|
|
744
753
|
})]
|
|
745
|
-
}), M(n ?
|
|
754
|
+
}), M(n ? re : ne, { className: "h-4 w-4 text-text-secondary shrink-0 mt-1" })]
|
|
746
755
|
}), n && /* @__PURE__ */ N("div", {
|
|
747
756
|
className: "border-t border-border-subtle px-4 pb-4 pt-3",
|
|
748
757
|
children: [/* @__PURE__ */ M("p", {
|
|
@@ -754,12 +763,12 @@ function V() {
|
|
|
754
763
|
className: "flex flex-wrap gap-1.5",
|
|
755
764
|
children: e.tags.map((e) => /* @__PURE__ */ N("span", {
|
|
756
765
|
className: "inline-flex items-center gap-1 rounded-full bg-bg-sunken px-2 py-0.5 text-xs text-text-secondary",
|
|
757
|
-
children: [/* @__PURE__ */ M(
|
|
766
|
+
children: [/* @__PURE__ */ M(S, { className: "h-2.5 w-2.5" }), e]
|
|
758
767
|
}, e))
|
|
759
768
|
}), /* @__PURE__ */ N("button", {
|
|
760
769
|
type: "button",
|
|
761
770
|
onClick: (t) => {
|
|
762
|
-
t.stopPropagation(),
|
|
771
|
+
t.stopPropagation(), he(e.id);
|
|
763
772
|
},
|
|
764
773
|
className: "flex items-center gap-1.5 rounded-lg border border-border-subtle px-3 py-1.5 text-xs font-medium text-text-secondary hover:bg-accent hover:text-text-primary transition-colors",
|
|
765
774
|
children: [
|
|
@@ -773,29 +782,20 @@ function V() {
|
|
|
773
782
|
})]
|
|
774
783
|
}, e.id);
|
|
775
784
|
})
|
|
776
|
-
}) : /* @__PURE__ */
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
/* @__PURE__ */ M("button", {
|
|
789
|
-
type: "button",
|
|
790
|
-
onClick: () => {
|
|
791
|
-
g(""), x("");
|
|
792
|
-
},
|
|
793
|
-
className: "text-sm font-medium text-primary hover:underline",
|
|
794
|
-
children: "Clear all filters"
|
|
795
|
-
})
|
|
796
|
-
]
|
|
785
|
+
}) : /* @__PURE__ */ M(r, {
|
|
786
|
+
illustration: "empty-search",
|
|
787
|
+
title: "No FAQs found",
|
|
788
|
+
description: "Try adjusting your search or browse different categories.",
|
|
789
|
+
action: /* @__PURE__ */ M("button", {
|
|
790
|
+
type: "button",
|
|
791
|
+
onClick: () => {
|
|
792
|
+
g(""), b("");
|
|
793
|
+
},
|
|
794
|
+
className: "text-sm font-medium text-primary hover:underline",
|
|
795
|
+
children: "Clear all filters"
|
|
796
|
+
})
|
|
797
797
|
})] }),
|
|
798
|
-
|
|
798
|
+
l === "contact" && /* @__PURE__ */ N("div", {
|
|
799
799
|
className: "space-y-6",
|
|
800
800
|
children: [
|
|
801
801
|
/* @__PURE__ */ N("div", { children: [/* @__PURE__ */ M("h2", {
|
|
@@ -803,10 +803,10 @@ function V() {
|
|
|
803
803
|
children: "Get in Touch"
|
|
804
804
|
}), /* @__PURE__ */ M("div", {
|
|
805
805
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
|
|
806
|
-
children:
|
|
806
|
+
children: F.map((e) => {
|
|
807
807
|
let n = e.icon;
|
|
808
808
|
return /* @__PURE__ */ M("div", {
|
|
809
|
-
className: "rounded-lg border border-border-
|
|
809
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-5 bg-gloss-card shadow-pop",
|
|
810
810
|
children: /* @__PURE__ */ N("div", {
|
|
811
811
|
className: "flex items-start gap-4",
|
|
812
812
|
children: [/* @__PURE__ */ M("div", {
|
|
@@ -825,14 +825,14 @@ function V() {
|
|
|
825
825
|
}),
|
|
826
826
|
/* @__PURE__ */ N("div", {
|
|
827
827
|
className: "flex items-center gap-1 mt-1 text-xs text-text-secondary",
|
|
828
|
-
children: [/* @__PURE__ */ M(
|
|
828
|
+
children: [/* @__PURE__ */ M(d, { className: "h-3 w-3" }), e.responseTime]
|
|
829
829
|
}),
|
|
830
830
|
/* @__PURE__ */ N("button", {
|
|
831
831
|
type: "button",
|
|
832
832
|
onClick: () => $(e),
|
|
833
833
|
disabled: !e.available,
|
|
834
834
|
className: t("mt-3 flex items-center gap-1.5 rounded-lg px-4 py-2 text-sm font-medium transition-colors", e.available ? "bg-action-primary-bg text-action-primary-text hover:bg-action-primary-bg/90" : "bg-bg-sunken text-text-secondary cursor-not-allowed"),
|
|
835
|
-
children: [e.type === "chat" ? "Start Chat" : e.type === "email" ? "Send Email" : "Contact", /* @__PURE__ */ M(
|
|
835
|
+
children: [e.type === "chat" ? "Start Chat" : e.type === "email" ? "Send Email" : "Contact", /* @__PURE__ */ M(ie, { className: "h-3.5 w-3.5" })]
|
|
836
836
|
})
|
|
837
837
|
]
|
|
838
838
|
})]
|
|
@@ -860,13 +860,13 @@ function V() {
|
|
|
860
860
|
className: "p-5 space-y-4",
|
|
861
861
|
children: [
|
|
862
862
|
q && /* @__PURE__ */ N("div", {
|
|
863
|
-
className: "flex items-center gap-2 rounded-lg border border-
|
|
863
|
+
className: "flex items-center gap-2 rounded-lg border border-status-error-border/30 bg-status-error-bg-subtle/10 px-3 py-2 text-sm text-status-error-text",
|
|
864
864
|
children: [/* @__PURE__ */ M(ee, { className: "h-4 w-4 shrink-0" }), q]
|
|
865
865
|
}),
|
|
866
866
|
/* @__PURE__ */ N("div", { children: [/* @__PURE__ */ N("label", {
|
|
867
867
|
className: "block text-sm font-medium text-text-primary mb-1.5",
|
|
868
868
|
children: ["Subject ", /* @__PURE__ */ M("span", {
|
|
869
|
-
className: "text-
|
|
869
|
+
className: "text-status-error-text",
|
|
870
870
|
children: "*"
|
|
871
871
|
})]
|
|
872
872
|
}), /* @__PURE__ */ M("input", {
|
|
@@ -884,7 +884,7 @@ function V() {
|
|
|
884
884
|
children: [/* @__PURE__ */ N("div", { children: [/* @__PURE__ */ N("label", {
|
|
885
885
|
className: "block text-sm font-medium text-text-primary mb-1.5",
|
|
886
886
|
children: ["Category ", /* @__PURE__ */ M("span", {
|
|
887
|
-
className: "text-
|
|
887
|
+
className: "text-status-error-text",
|
|
888
888
|
children: "*"
|
|
889
889
|
})]
|
|
890
890
|
}), /* @__PURE__ */ N("select", {
|
|
@@ -934,7 +934,7 @@ function V() {
|
|
|
934
934
|
/* @__PURE__ */ N("div", { children: [/* @__PURE__ */ N("label", {
|
|
935
935
|
className: "block text-sm font-medium text-text-primary mb-1.5",
|
|
936
936
|
children: ["Description ", /* @__PURE__ */ M("span", {
|
|
937
|
-
className: "text-
|
|
937
|
+
className: "text-status-error-text",
|
|
938
938
|
children: "*"
|
|
939
939
|
})]
|
|
940
940
|
}), /* @__PURE__ */ M("textarea", {
|
|
@@ -948,15 +948,15 @@ function V() {
|
|
|
948
948
|
className: "w-full rounded-lg border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)] resize-none"
|
|
949
949
|
})] }),
|
|
950
950
|
/* @__PURE__ */ N("div", {
|
|
951
|
-
className: "rounded-lg bg-blue-
|
|
951
|
+
className: "rounded-lg bg-accent-blue-subtle/5 border border-accent-blue-subtle/20 p-4",
|
|
952
952
|
children: [/* @__PURE__ */ N("div", {
|
|
953
953
|
className: "flex items-center gap-2 mb-2",
|
|
954
|
-
children: [/* @__PURE__ */ M(
|
|
955
|
-
className: "text-sm font-medium text-
|
|
954
|
+
children: [/* @__PURE__ */ M(oe, { className: "h-4 w-4 text-accent-blue" }), /* @__PURE__ */ M("h4", {
|
|
955
|
+
className: "text-sm font-medium text-accent-blue",
|
|
956
956
|
children: "Tips for faster resolution"
|
|
957
957
|
})]
|
|
958
958
|
}), /* @__PURE__ */ N("ul", {
|
|
959
|
-
className: "text-xs text-
|
|
959
|
+
className: "text-xs text-accent-blue space-y-1 ml-6 list-disc",
|
|
960
960
|
children: [
|
|
961
961
|
/* @__PURE__ */ M("li", { children: "Be specific about the issue and include steps to reproduce it" }),
|
|
962
962
|
/* @__PURE__ */ M("li", { children: "Include relevant order IDs, transaction IDs, or error messages" }),
|
|
@@ -969,10 +969,10 @@ function V() {
|
|
|
969
969
|
className: "flex items-center gap-3 pt-1",
|
|
970
970
|
children: [/* @__PURE__ */ M("button", {
|
|
971
971
|
type: "button",
|
|
972
|
-
onClick:
|
|
972
|
+
onClick: ge,
|
|
973
973
|
disabled: U,
|
|
974
974
|
className: t("flex items-center gap-2 rounded-lg px-5 py-2.5 text-sm font-medium text-action-primary-text transition-colors", U ? "bg-action-primary-bg/70 cursor-not-allowed" : "bg-action-primary-bg hover:bg-action-primary-bg/90"),
|
|
975
|
-
children: U ? /* @__PURE__ */ N(j, { children: [/* @__PURE__ */ M("span", { className: "h-4 w-4 animate-spin rounded-full border-2 border-primary-foreground/30 border-t-primary-foreground" }), "Submitting..."] }) : /* @__PURE__ */ N(j, { children: [/* @__PURE__ */ M(
|
|
975
|
+
children: U ? /* @__PURE__ */ N(j, { children: [/* @__PURE__ */ M("span", { className: "h-4 w-4 animate-spin rounded-full border-2 border-primary-foreground/30 border-t-primary-foreground" }), "Submitting..."] }) : /* @__PURE__ */ N(j, { children: [/* @__PURE__ */ M(ce, { className: "h-4 w-4" }), "Submit Ticket"] })
|
|
976
976
|
}), /* @__PURE__ */ M("button", {
|
|
977
977
|
type: "button",
|
|
978
978
|
onClick: () => {
|
|
@@ -988,10 +988,10 @@ function V() {
|
|
|
988
988
|
/* @__PURE__ */ N("div", {
|
|
989
989
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
|
|
990
990
|
children: [/* @__PURE__ */ N("div", {
|
|
991
|
-
className: "rounded-lg border border-border-
|
|
991
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-5 bg-gloss-card shadow-pop",
|
|
992
992
|
children: [/* @__PURE__ */ N("div", {
|
|
993
993
|
className: "flex items-center gap-2 mb-3",
|
|
994
|
-
children: [/* @__PURE__ */ M(
|
|
994
|
+
children: [/* @__PURE__ */ M(d, { className: "h-5 w-5 text-text-secondary" }), /* @__PURE__ */ M("h3", {
|
|
995
995
|
className: "text-sm font-semibold text-text-primary",
|
|
996
996
|
children: "Support Hours"
|
|
997
997
|
})]
|
|
@@ -1041,17 +1041,17 @@ function V() {
|
|
|
1041
1041
|
]
|
|
1042
1042
|
})]
|
|
1043
1043
|
}), /* @__PURE__ */ N("div", {
|
|
1044
|
-
className: "rounded-lg border border-
|
|
1044
|
+
className: "rounded-lg border border-status-error-border/20 bg-status-error-bg-subtle/5 p-5",
|
|
1045
1045
|
children: [
|
|
1046
1046
|
/* @__PURE__ */ N("div", {
|
|
1047
1047
|
className: "flex items-center gap-2 mb-3",
|
|
1048
|
-
children: [/* @__PURE__ */ M(
|
|
1049
|
-
className: "text-sm font-semibold text-
|
|
1048
|
+
children: [/* @__PURE__ */ M(s, { className: "h-5 w-5 text-status-error-text" }), /* @__PURE__ */ M("h3", {
|
|
1049
|
+
className: "text-sm font-semibold text-status-error-text",
|
|
1050
1050
|
children: "Emergency Contact"
|
|
1051
1051
|
})]
|
|
1052
1052
|
}),
|
|
1053
1053
|
/* @__PURE__ */ M("p", {
|
|
1054
|
-
className: "text-sm text-
|
|
1054
|
+
className: "text-sm text-status-error-text mb-3",
|
|
1055
1055
|
children: "For urgent issues like safety concerns, fraud, or account compromise:"
|
|
1056
1056
|
}),
|
|
1057
1057
|
/* @__PURE__ */ N("div", {
|
|
@@ -1059,20 +1059,20 @@ function V() {
|
|
|
1059
1059
|
children: [/* @__PURE__ */ N("div", {
|
|
1060
1060
|
className: "flex items-center gap-2 text-sm",
|
|
1061
1061
|
children: [
|
|
1062
|
-
/* @__PURE__ */ M(v, { className: "h-4 w-4 text-
|
|
1062
|
+
/* @__PURE__ */ M(v, { className: "h-4 w-4 text-status-error-text" }),
|
|
1063
1063
|
/* @__PURE__ */ M("span", {
|
|
1064
|
-
className: "font-medium text-
|
|
1064
|
+
className: "font-medium text-status-error-text",
|
|
1065
1065
|
children: "+91 80-4012-9999"
|
|
1066
1066
|
}),
|
|
1067
1067
|
/* @__PURE__ */ M("span", {
|
|
1068
|
-
className: "text-xs text-
|
|
1068
|
+
className: "text-xs text-status-error-text",
|
|
1069
1069
|
children: "(24/7)"
|
|
1070
1070
|
})
|
|
1071
1071
|
]
|
|
1072
1072
|
}), /* @__PURE__ */ N("div", {
|
|
1073
1073
|
className: "flex items-center gap-2 text-sm",
|
|
1074
|
-
children: [/* @__PURE__ */ M(h, { className: "h-4 w-4 text-
|
|
1075
|
-
className: "font-medium text-
|
|
1074
|
+
children: [/* @__PURE__ */ M(h, { className: "h-4 w-4 text-status-error-text" }), /* @__PURE__ */ M("span", {
|
|
1075
|
+
className: "font-medium text-status-error-text",
|
|
1076
1076
|
children: "emergency@coolandlovely.com"
|
|
1077
1077
|
})]
|
|
1078
1078
|
})]
|
|
@@ -1087,8 +1087,8 @@ function V() {
|
|
|
1087
1087
|
className: "grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3",
|
|
1088
1088
|
children: L.map((e) => /* @__PURE__ */ N("button", {
|
|
1089
1089
|
type: "button",
|
|
1090
|
-
className: "flex items-start gap-3 rounded-lg border border-border-
|
|
1091
|
-
children: [/* @__PURE__ */ M(
|
|
1090
|
+
className: "flex items-start gap-3 rounded-lg border border-border-seam bg-bg-surface p-4 text-left hover:bg-accent/50 transition-colors bg-gloss-card shadow-pop",
|
|
1091
|
+
children: [/* @__PURE__ */ M(p, { className: "h-5 w-5 text-text-secondary shrink-0 mt-0.5" }), /* @__PURE__ */ N("div", {
|
|
1092
1092
|
className: "min-w-0",
|
|
1093
1093
|
children: [/* @__PURE__ */ M("p", {
|
|
1094
1094
|
className: "text-sm font-medium text-text-primary truncate",
|
|
@@ -1108,7 +1108,7 @@ function V() {
|
|
|
1108
1108
|
})] })
|
|
1109
1109
|
]
|
|
1110
1110
|
}),
|
|
1111
|
-
|
|
1111
|
+
l === "tickets" && /* @__PURE__ */ N("div", {
|
|
1112
1112
|
className: "space-y-4",
|
|
1113
1113
|
children: [
|
|
1114
1114
|
/* @__PURE__ */ N("div", {
|
|
@@ -1127,7 +1127,7 @@ function V() {
|
|
|
1127
1127
|
/* @__PURE__ */ N("div", {
|
|
1128
1128
|
className: "rounded-lg border border-border-subtle bg-bg-surface p-3 text-center",
|
|
1129
1129
|
children: [/* @__PURE__ */ M("p", {
|
|
1130
|
-
className: "text-2xl font-bold text-
|
|
1130
|
+
className: "text-2xl font-bold text-accent-blue",
|
|
1131
1131
|
children: Q.open
|
|
1132
1132
|
}), /* @__PURE__ */ M("p", {
|
|
1133
1133
|
className: "text-xs text-text-secondary",
|
|
@@ -1137,7 +1137,7 @@ function V() {
|
|
|
1137
1137
|
/* @__PURE__ */ N("div", {
|
|
1138
1138
|
className: "rounded-lg border border-border-subtle bg-bg-surface p-3 text-center",
|
|
1139
1139
|
children: [/* @__PURE__ */ M("p", {
|
|
1140
|
-
className: "text-2xl font-bold text-
|
|
1140
|
+
className: "text-2xl font-bold text-status-warning-text",
|
|
1141
1141
|
children: Q.inProgress
|
|
1142
1142
|
}), /* @__PURE__ */ M("p", {
|
|
1143
1143
|
className: "text-xs text-text-secondary",
|
|
@@ -1147,7 +1147,7 @@ function V() {
|
|
|
1147
1147
|
/* @__PURE__ */ N("div", {
|
|
1148
1148
|
className: "rounded-lg border border-border-subtle bg-bg-surface p-3 text-center",
|
|
1149
1149
|
children: [/* @__PURE__ */ M("p", {
|
|
1150
|
-
className: "text-2xl font-bold text-
|
|
1150
|
+
className: "text-2xl font-bold text-status-success-text",
|
|
1151
1151
|
children: Q.resolved
|
|
1152
1152
|
}), /* @__PURE__ */ M("p", {
|
|
1153
1153
|
className: "text-xs text-text-secondary",
|
|
@@ -1168,7 +1168,7 @@ function V() {
|
|
|
1168
1168
|
}), /* @__PURE__ */ N("button", {
|
|
1169
1169
|
type: "button",
|
|
1170
1170
|
onClick: () => {
|
|
1171
|
-
H(!0),
|
|
1171
|
+
H(!0), u("contact");
|
|
1172
1172
|
},
|
|
1173
1173
|
className: "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",
|
|
1174
1174
|
children: [/* @__PURE__ */ M(w, { className: "h-4 w-4" }), "New Ticket"]
|
|
@@ -1189,7 +1189,7 @@ function V() {
|
|
|
1189
1189
|
/* @__PURE__ */ M("button", {
|
|
1190
1190
|
type: "button",
|
|
1191
1191
|
onClick: () => {
|
|
1192
|
-
H(!0),
|
|
1192
|
+
H(!0), u("contact");
|
|
1193
1193
|
},
|
|
1194
1194
|
className: "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",
|
|
1195
1195
|
children: "Create Your First Ticket"
|
|
@@ -1198,7 +1198,7 @@ function V() {
|
|
|
1198
1198
|
}) : /* @__PURE__ */ M("div", {
|
|
1199
1199
|
className: "space-y-4",
|
|
1200
1200
|
children: O.map((e) => {
|
|
1201
|
-
let n =
|
|
1201
|
+
let n = R(e.status), r = e.responses.length > 0 ? e.responses[e.responses.length - 1] : null;
|
|
1202
1202
|
return /* @__PURE__ */ N("div", {
|
|
1203
1203
|
className: "rounded-lg border border-border-subtle bg-bg-surface overflow-hidden",
|
|
1204
1204
|
children: [/* @__PURE__ */ N("div", {
|
|
@@ -1210,7 +1210,7 @@ function V() {
|
|
|
1210
1210
|
className: "flex-1 min-w-0",
|
|
1211
1211
|
children: [/* @__PURE__ */ N("div", {
|
|
1212
1212
|
className: "flex items-center gap-2 mb-1",
|
|
1213
|
-
children: [/* @__PURE__ */ M(n, { className: t("h-4 w-4",
|
|
1213
|
+
children: [/* @__PURE__ */ M(n, { className: t("h-4 w-4", z(e.status).split(" ").slice(1).join(" ")) }), /* @__PURE__ */ M("h3", {
|
|
1214
1214
|
className: "text-sm font-semibold text-text-primary truncate",
|
|
1215
1215
|
children: e.subject
|
|
1216
1216
|
})]
|
|
@@ -1225,11 +1225,11 @@ function V() {
|
|
|
1225
1225
|
}), /* @__PURE__ */ N("div", {
|
|
1226
1226
|
className: "flex flex-wrap gap-2",
|
|
1227
1227
|
children: [/* @__PURE__ */ M("span", {
|
|
1228
|
-
className: t("inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium",
|
|
1228
|
+
className: t("inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium", B(e.priority)),
|
|
1229
1229
|
children: e.priority.toUpperCase()
|
|
1230
1230
|
}), /* @__PURE__ */ M("span", {
|
|
1231
|
-
className: t("inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium",
|
|
1232
|
-
children:
|
|
1231
|
+
className: t("inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium", z(e.status)),
|
|
1232
|
+
children: pe(e.status)
|
|
1233
1233
|
})]
|
|
1234
1234
|
})]
|
|
1235
1235
|
}),
|
|
@@ -1237,7 +1237,7 @@ function V() {
|
|
|
1237
1237
|
className: "text-sm text-text-secondary mt-2 leading-relaxed",
|
|
1238
1238
|
children: e.description
|
|
1239
1239
|
}),
|
|
1240
|
-
|
|
1240
|
+
r && /* @__PURE__ */ N("div", {
|
|
1241
1241
|
className: "mt-3 rounded-lg bg-bg-sunken/50 border border-border-subtle p-3",
|
|
1242
1242
|
children: [/* @__PURE__ */ N("div", {
|
|
1243
1243
|
className: "flex items-center gap-1.5 mb-1",
|
|
@@ -1245,28 +1245,28 @@ function V() {
|
|
|
1245
1245
|
/* @__PURE__ */ M(_, { className: "h-3.5 w-3.5 text-text-secondary" }),
|
|
1246
1246
|
/* @__PURE__ */ M("span", {
|
|
1247
1247
|
className: "text-xs font-medium text-text-primary",
|
|
1248
|
-
children:
|
|
1248
|
+
children: r.sender === "support" ? "Support Team" : "You"
|
|
1249
1249
|
}),
|
|
1250
1250
|
/* @__PURE__ */ N("span", {
|
|
1251
1251
|
className: "text-xs text-text-secondary",
|
|
1252
|
-
children: ["· ", r
|
|
1252
|
+
children: ["· ", i(r.timestamp)]
|
|
1253
1253
|
})
|
|
1254
1254
|
]
|
|
1255
1255
|
}), /* @__PURE__ */ M("p", {
|
|
1256
1256
|
className: "text-sm text-text-secondary",
|
|
1257
|
-
children:
|
|
1257
|
+
children: r.message
|
|
1258
1258
|
})]
|
|
1259
1259
|
}),
|
|
1260
1260
|
e.responses.length === 0 && e.status === "open" && /* @__PURE__ */ N("div", {
|
|
1261
1261
|
className: "mt-3 flex items-center gap-2 text-xs text-text-secondary",
|
|
1262
|
-
children: [/* @__PURE__ */ M(
|
|
1262
|
+
children: [/* @__PURE__ */ M(ae, { className: "h-3.5 w-3.5" }), "Awaiting response from support team"]
|
|
1263
1263
|
})
|
|
1264
1264
|
]
|
|
1265
1265
|
}), /* @__PURE__ */ N("div", {
|
|
1266
1266
|
className: "flex flex-col gap-1 border-t border-border-subtle bg-bg-sunken/30 px-4 py-2.5 sm:flex-row sm:items-center sm:justify-between text-xs text-text-secondary",
|
|
1267
1267
|
children: [
|
|
1268
|
-
/* @__PURE__ */ N("span", { children: ["Created: ",
|
|
1269
|
-
/* @__PURE__ */ N("span", { children: ["Updated: ",
|
|
1268
|
+
/* @__PURE__ */ N("span", { children: ["Created: ", i(e.createdAt)] }),
|
|
1269
|
+
/* @__PURE__ */ N("span", { children: ["Updated: ", i(e.updatedAt)] }),
|
|
1270
1270
|
/* @__PURE__ */ N("span", { children: [
|
|
1271
1271
|
e.responses.length,
|
|
1272
1272
|
" response",
|
|
@@ -1294,20 +1294,20 @@ function V() {
|
|
|
1294
1294
|
children: [
|
|
1295
1295
|
/* @__PURE__ */ N("button", {
|
|
1296
1296
|
type: "button",
|
|
1297
|
-
onClick: () => $(
|
|
1297
|
+
onClick: () => $(F[0]),
|
|
1298
1298
|
className: "flex items-center gap-1.5 rounded-lg border border-border-subtle bg-bg-surface px-3 py-2 text-xs font-medium text-text-primary hover:bg-accent transition-colors",
|
|
1299
1299
|
children: [/* @__PURE__ */ M(h, { className: "h-3.5 w-3.5" }), "Email Us"]
|
|
1300
1300
|
}),
|
|
1301
1301
|
/* @__PURE__ */ N("button", {
|
|
1302
1302
|
type: "button",
|
|
1303
|
-
onClick: () => $(
|
|
1303
|
+
onClick: () => $(F[1]),
|
|
1304
1304
|
className: "flex items-center gap-1.5 rounded-lg border border-border-subtle bg-bg-surface px-3 py-2 text-xs font-medium text-text-primary hover:bg-accent transition-colors",
|
|
1305
1305
|
children: [/* @__PURE__ */ M(v, { className: "h-3.5 w-3.5" }), "Call Us"]
|
|
1306
1306
|
}),
|
|
1307
1307
|
/* @__PURE__ */ N("button", {
|
|
1308
1308
|
type: "button",
|
|
1309
1309
|
onClick: () => {
|
|
1310
|
-
H(!0),
|
|
1310
|
+
H(!0), u("contact");
|
|
1311
1311
|
},
|
|
1312
1312
|
className: "flex items-center gap-1.5 rounded-lg bg-action-primary-bg px-3 py-2 text-xs font-medium text-action-primary-text hover:bg-action-primary-bg/90 transition-colors",
|
|
1313
1313
|
children: [/* @__PURE__ */ M(w, { className: "h-3.5 w-3.5" }), "Submit Ticket"]
|