@burdenoff/microfe-atheletebridge 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/atheletebridge/components/EmptyState.js +18 -11
- package/dist/atheletebridge/components/EmptyState.js.map +1 -1
- package/dist/atheletebridge/components/InvestmentCard.js +7 -7
- package/dist/atheletebridge/components/InvestmentCard.js.map +1 -1
- package/dist/atheletebridge/components/MetricsCard.js +20 -14
- package/dist/atheletebridge/components/MetricsCard.js.map +1 -1
- package/dist/atheletebridge/components/PageLayout.js +30 -19
- package/dist/atheletebridge/components/PageLayout.js.map +1 -1
- package/dist/atheletebridge/pages/HomePage.js +210 -195
- package/dist/atheletebridge/pages/HomePage.js.map +1 -1
- package/dist/atheletebridge/pages/admin/AdminAnalyticsPage.js +90 -82
- package/dist/atheletebridge/pages/admin/AdminAnalyticsPage.js.map +1 -1
- package/dist/atheletebridge/pages/admin/AdminDashboard.js +76 -44
- package/dist/atheletebridge/pages/admin/AdminDashboard.js.map +1 -1
- package/dist/atheletebridge/pages/admin/AdminFinancialPage.js +63 -55
- package/dist/atheletebridge/pages/admin/AdminFinancialPage.js.map +1 -1
- package/dist/atheletebridge/pages/admin/AdminOrdersPage.js +244 -237
- package/dist/atheletebridge/pages/admin/AdminOrdersPage.js.map +1 -1
- package/dist/atheletebridge/pages/admin/AdminProfilePage.js +59 -57
- package/dist/atheletebridge/pages/admin/AdminProfilePage.js.map +1 -1
- package/dist/atheletebridge/pages/admin/AdminSettingsPage.js +110 -106
- package/dist/atheletebridge/pages/admin/AdminSettingsPage.js.map +1 -1
- package/dist/atheletebridge/pages/admin/CartManagementPage.js +166 -159
- package/dist/atheletebridge/pages/admin/CartManagementPage.js.map +1 -1
- package/dist/atheletebridge/pages/admin/UserManagementPage.js +310 -303
- package/dist/atheletebridge/pages/admin/UserManagementPage.js.map +1 -1
- package/dist/atheletebridge/pages/cart-owner/AnalyticsDashboard.js +86 -81
- package/dist/atheletebridge/pages/cart-owner/AnalyticsDashboard.js.map +1 -1
- package/dist/atheletebridge/pages/cart-owner/BusinessSettingsPage.js +170 -166
- package/dist/atheletebridge/pages/cart-owner/BusinessSettingsPage.js.map +1 -1
- package/dist/atheletebridge/pages/cart-owner/CartOwnerDashboard.js +141 -109
- package/dist/atheletebridge/pages/cart-owner/CartOwnerDashboard.js.map +1 -1
- package/dist/atheletebridge/pages/cart-owner/CartOwnerProfilePage.js +139 -134
- package/dist/atheletebridge/pages/cart-owner/CartOwnerProfilePage.js.map +1 -1
- package/dist/atheletebridge/pages/cart-owner/CartServiceConfigPage.js +109 -107
- package/dist/atheletebridge/pages/cart-owner/CartServiceConfigPage.js.map +1 -1
- package/dist/atheletebridge/pages/cart-owner/InventoryManagementPage.js +318 -318
- package/dist/atheletebridge/pages/cart-owner/InventoryManagementPage.js.map +1 -1
- package/dist/atheletebridge/pages/cart-owner/OrderManagementPage.js +262 -262
- package/dist/atheletebridge/pages/cart-owner/OrderManagementPage.js.map +1 -1
- package/dist/atheletebridge/pages/cart-owner/StaffManagementPage.js +170 -162
- package/dist/atheletebridge/pages/cart-owner/StaffManagementPage.js.map +1 -1
- package/dist/atheletebridge/pages/common/HelpSupportPage.js +292 -298
- package/dist/atheletebridge/pages/common/HelpSupportPage.js.map +1 -1
- package/dist/atheletebridge/pages/common/NotificationCenterPage.js +100 -91
- package/dist/atheletebridge/pages/common/NotificationCenterPage.js.map +1 -1
- package/dist/atheletebridge/pages/common/SettingsPage.js +742 -734
- package/dist/atheletebridge/pages/common/SettingsPage.js.map +1 -1
- package/dist/atheletebridge/pages/customer/BookingDetailsPage.js +365 -356
- package/dist/atheletebridge/pages/customer/BookingDetailsPage.js.map +1 -1
- package/dist/atheletebridge/pages/customer/CartDetailPage.js +277 -241
- package/dist/atheletebridge/pages/customer/CartDetailPage.js.map +1 -1
- package/dist/atheletebridge/pages/customer/CartDiscoveryPage.js +261 -250
- package/dist/atheletebridge/pages/customer/CartDiscoveryPage.js.map +1 -1
- package/dist/atheletebridge/pages/customer/CheckoutPage.js +93 -89
- package/dist/atheletebridge/pages/customer/CheckoutPage.js.map +1 -1
- package/dist/atheletebridge/pages/customer/CustomerDashboard.js +430 -387
- package/dist/atheletebridge/pages/customer/CustomerDashboard.js.map +1 -1
- package/dist/atheletebridge/pages/customer/CustomerProfilePage.js +526 -490
- package/dist/atheletebridge/pages/customer/CustomerProfilePage.js.map +1 -1
- package/dist/atheletebridge/pages/customer/DirectServiceBookingPage.js +524 -512
- package/dist/atheletebridge/pages/customer/DirectServiceBookingPage.js.map +1 -1
- package/dist/atheletebridge/pages/customer/FavoritesPage.js +84 -75
- package/dist/atheletebridge/pages/customer/FavoritesPage.js.map +1 -1
- package/dist/atheletebridge/pages/customer/OrderHistoryPage.js +117 -108
- package/dist/atheletebridge/pages/customer/OrderHistoryPage.js.map +1 -1
- package/dist/atheletebridge/pages/customer/OrderTrackingPage.js +66 -61
- package/dist/atheletebridge/pages/customer/OrderTrackingPage.js.map +1 -1
- package/dist/atheletebridge/pages/customer/PaymentMethodsPage.js +81 -75
- package/dist/atheletebridge/pages/customer/PaymentMethodsPage.js.map +1 -1
- package/dist/atheletebridge/pages/customer/ReviewsPage.js +81 -72
- package/dist/atheletebridge/pages/customer/ReviewsPage.js.map +1 -1
- package/dist/atheletebridge/pages/customer/SavedAddressesPage.js +63 -55
- package/dist/atheletebridge/pages/customer/SavedAddressesPage.js.map +1 -1
- package/dist/atheletebridge/pages/investor/InvestmentDetailsPage.js +93 -61
- package/dist/atheletebridge/pages/investor/InvestmentDetailsPage.js.map +1 -1
- package/dist/atheletebridge/pages/investor/InvestmentOpportunitiesPage.js +90 -84
- package/dist/atheletebridge/pages/investor/InvestmentOpportunitiesPage.js.map +1 -1
- package/dist/atheletebridge/pages/investor/InvestorAnalyticsPage.js +60 -55
- package/dist/atheletebridge/pages/investor/InvestorAnalyticsPage.js.map +1 -1
- package/dist/atheletebridge/pages/investor/InvestorDashboard.js +345 -311
- package/dist/atheletebridge/pages/investor/InvestorDashboard.js.map +1 -1
- package/dist/atheletebridge/pages/investor/InvestorInvestmentsPage.js +38 -32
- package/dist/atheletebridge/pages/investor/InvestorInvestmentsPage.js.map +1 -1
- package/dist/atheletebridge/pages/investor/InvestorPortfolioPage.js +75 -67
- package/dist/atheletebridge/pages/investor/InvestorPortfolioPage.js.map +1 -1
- package/dist/atheletebridge/pages/investor/InvestorProfilePage.js +385 -381
- package/dist/atheletebridge/pages/investor/InvestorProfilePage.js.map +1 -1
- package/dist/atheletebridge/pages/worker/TaskDetailsPage.js +353 -319
- package/dist/atheletebridge/pages/worker/TaskDetailsPage.js.map +1 -1
- package/dist/atheletebridge/pages/worker/WorkerDashboard.js +353 -318
- package/dist/atheletebridge/pages/worker/WorkerDashboard.js.map +1 -1
- package/dist/atheletebridge/pages/worker/WorkerOrdersPage.js +134 -128
- package/dist/atheletebridge/pages/worker/WorkerOrdersPage.js.map +1 -1
- package/dist/atheletebridge/pages/worker/WorkerProfilePage.js +81 -77
- package/dist/atheletebridge/pages/worker/WorkerProfilePage.js.map +1 -1
- package/dist/atheletebridge/pages/worker/WorkerSchedulePage.js +352 -342
- package/dist/atheletebridge/pages/worker/WorkerSchedulePage.js.map +1 -1
- package/package.json +3 -3
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { useAthleteBridge as e } from "../../context/AthleteBridgeContext.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 {
|
|
7
|
-
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 s, AlertTriangle as c, BookOpen as ee, CheckCircle2 as l, ChevronDown as te, ChevronUp as ne, Circle as u, CircleDot as d, Clock as f, CreditCard as p, ExternalLink as re, FileText as ie, HelpCircle as ae, Info as oe, Lightbulb as se, Mail as m, MessageCircle as h, MessageSquare as g, Phone as _, PhoneCall as v, Search as ce, Send as le, Shield as y, ShoppingBag as b, Tag as x, ThumbsUp as S, Ticket as C, TrendingUp as w, Truck as T, User as E, Wrench as D, X as O, XCircle as k } from "lucide-react";
|
|
8
|
+
import { Fragment as A, jsx as j, jsxs as M } from "react/jsx-runtime";
|
|
9
|
+
import { EmphasisPanel as ue, PagePurpose as de } from "@burdenoff/fe-libs/ui";
|
|
8
10
|
//#region src/atheletebridge/pages/common/HelpSupportPage.tsx
|
|
9
|
-
var
|
|
11
|
+
var N = [
|
|
10
12
|
"Account & Profile",
|
|
11
13
|
"Orders & Payments",
|
|
12
14
|
"Cart Owners",
|
|
@@ -15,16 +17,16 @@ var P = [
|
|
|
15
17
|
"Technical Issues",
|
|
16
18
|
"Billing & Refunds",
|
|
17
19
|
"Privacy & Security"
|
|
18
|
-
],
|
|
20
|
+
], fe = [
|
|
19
21
|
{
|
|
20
22
|
label: "Getting Started",
|
|
21
|
-
icon:
|
|
23
|
+
icon: ee,
|
|
22
24
|
description: "New to AthleteBridge? Start here",
|
|
23
25
|
color: "bg-blue-500/10 text-blue-600 dark:text-blue-400"
|
|
24
26
|
},
|
|
25
27
|
{
|
|
26
28
|
label: "Orders & Delivery",
|
|
27
|
-
icon:
|
|
29
|
+
icon: b,
|
|
28
30
|
description: "Placing, tracking, and cancelling orders",
|
|
29
31
|
color: "bg-green-500/10 text-green-600 dark:text-green-400"
|
|
30
32
|
},
|
|
@@ -36,48 +38,48 @@ var P = [
|
|
|
36
38
|
},
|
|
37
39
|
{
|
|
38
40
|
label: "Account & Profile",
|
|
39
|
-
icon:
|
|
41
|
+
icon: E,
|
|
40
42
|
description: "Manage your account and settings",
|
|
41
43
|
color: "bg-orange-500/10 text-orange-600 dark:text-orange-400"
|
|
42
44
|
},
|
|
43
45
|
{
|
|
44
46
|
label: "Cart Owners",
|
|
45
|
-
icon:
|
|
47
|
+
icon: D,
|
|
46
48
|
description: "Running your cart business",
|
|
47
49
|
color: "bg-teal-500/10 text-teal-600 dark:text-teal-400"
|
|
48
50
|
},
|
|
49
51
|
{
|
|
50
52
|
label: "Workers & Delivery",
|
|
51
|
-
icon:
|
|
53
|
+
icon: T,
|
|
52
54
|
description: "Delivery partner information",
|
|
53
55
|
color: "bg-indigo-500/10 text-indigo-600 dark:text-indigo-400"
|
|
54
56
|
},
|
|
55
57
|
{
|
|
56
58
|
label: "Investments",
|
|
57
|
-
icon:
|
|
59
|
+
icon: w,
|
|
58
60
|
description: "Investment opportunities and returns",
|
|
59
61
|
color: "bg-emerald-500/10 text-emerald-600 dark:text-emerald-400"
|
|
60
62
|
},
|
|
61
63
|
{
|
|
62
64
|
label: "Security & Privacy",
|
|
63
|
-
icon:
|
|
65
|
+
icon: y,
|
|
64
66
|
description: "Data protection and safety",
|
|
65
67
|
color: "bg-red-500/10 text-red-600 dark:text-red-400"
|
|
66
68
|
},
|
|
67
69
|
{
|
|
68
70
|
label: "Technical Issues",
|
|
69
|
-
icon:
|
|
71
|
+
icon: c,
|
|
70
72
|
description: "App issues and troubleshooting",
|
|
71
73
|
color: "bg-amber-500/10 text-amber-600 dark:text-amber-400"
|
|
72
74
|
}
|
|
73
|
-
],
|
|
75
|
+
], P = [
|
|
74
76
|
{
|
|
75
77
|
type: "email",
|
|
76
78
|
label: "Email Support",
|
|
77
79
|
value: "support@atheletebridge.com",
|
|
78
80
|
available: !0,
|
|
79
81
|
responseTime: "Within 24 hours",
|
|
80
|
-
icon:
|
|
82
|
+
icon: m
|
|
81
83
|
},
|
|
82
84
|
{
|
|
83
85
|
type: "phone",
|
|
@@ -85,7 +87,7 @@ var P = [
|
|
|
85
87
|
value: "+91 80-4012-3456",
|
|
86
88
|
available: !0,
|
|
87
89
|
responseTime: "9 AM - 9 PM IST",
|
|
88
|
-
icon:
|
|
90
|
+
icon: v
|
|
89
91
|
},
|
|
90
92
|
{
|
|
91
93
|
type: "chat",
|
|
@@ -93,7 +95,7 @@ var P = [
|
|
|
93
95
|
value: "Start a conversation",
|
|
94
96
|
available: !0,
|
|
95
97
|
responseTime: "Instant response",
|
|
96
|
-
icon:
|
|
98
|
+
icon: h
|
|
97
99
|
},
|
|
98
100
|
{
|
|
99
101
|
type: "whatsapp",
|
|
@@ -101,9 +103,9 @@ var P = [
|
|
|
101
103
|
value: "+91 98765-43210",
|
|
102
104
|
available: !0,
|
|
103
105
|
responseTime: "2-4 hours",
|
|
104
|
-
icon:
|
|
106
|
+
icon: g
|
|
105
107
|
}
|
|
106
|
-
],
|
|
108
|
+
], F = [
|
|
107
109
|
{
|
|
108
110
|
id: "faq-001",
|
|
109
111
|
category: "Account & Profile",
|
|
@@ -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,15 +474,15 @@ var P = [
|
|
|
472
474
|
views: 4321
|
|
473
475
|
}
|
|
474
476
|
];
|
|
475
|
-
function
|
|
477
|
+
function R(e) {
|
|
476
478
|
switch (e) {
|
|
477
479
|
case "open": return u;
|
|
478
480
|
case "in-progress": return d;
|
|
479
|
-
case "resolved": return
|
|
480
|
-
case "closed": return
|
|
481
|
+
case "resolved": return l;
|
|
482
|
+
case "closed": return k;
|
|
481
483
|
}
|
|
482
484
|
}
|
|
483
|
-
function
|
|
485
|
+
function z(e) {
|
|
484
486
|
switch (e) {
|
|
485
487
|
case "open": return "bg-blue-500/10 text-blue-600 dark:text-blue-400";
|
|
486
488
|
case "in-progress": return "bg-amber-500/10 text-amber-600 dark:text-amber-400";
|
|
@@ -488,7 +490,7 @@ function R(e) {
|
|
|
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
495
|
case "urgent": return "bg-red-500/10 text-red-600 dark:text-red-400";
|
|
494
496
|
case "high": return "bg-orange-500/10 text-orange-600 dark:text-orange-400";
|
|
@@ -496,32 +498,32 @@ function z(e) {
|
|
|
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: ee } = e(), [u, d] = o("faq"), [p, h] = o(""), [v, y] = o(""), [b, w] = o(null), [T, E] = o(F), [D, k] = 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 = !p || e.question.toLowerCase().includes(p.toLowerCase()) || e.answer.toLowerCase().includes(p.toLowerCase()) || e.tags.some((e) => e.toLowerCase().includes(p.toLowerCase())), n = !
|
|
510
|
+
}), Z = a(() => T.filter((e) => {
|
|
511
|
+
let t = !p || e.question.toLowerCase().includes(p.toLowerCase()) || e.answer.toLowerCase().includes(p.toLowerCase()) || e.tags.some((e) => e.toLowerCase().includes(p.toLowerCase())), n = !v || e.category === v;
|
|
510
512
|
return t && n;
|
|
511
513
|
}), [
|
|
512
|
-
|
|
514
|
+
T,
|
|
513
515
|
p,
|
|
514
|
-
|
|
515
|
-
]), Q =
|
|
516
|
-
open:
|
|
517
|
-
inProgress:
|
|
518
|
-
resolved:
|
|
519
|
-
closed:
|
|
520
|
-
total:
|
|
521
|
-
}), [
|
|
522
|
-
|
|
523
|
-
},
|
|
524
|
-
|
|
516
|
+
v
|
|
517
|
+
]), Q = a(() => ({
|
|
518
|
+
open: D.filter((e) => e.status === "open").length,
|
|
519
|
+
inProgress: D.filter((e) => e.status === "in-progress").length,
|
|
520
|
+
resolved: D.filter((e) => e.status === "resolved").length,
|
|
521
|
+
closed: D.filter((e) => e.status === "closed").length,
|
|
522
|
+
total: D.length
|
|
523
|
+
}), [D]), me = (e) => {
|
|
524
|
+
w((t) => t === e ? null : e);
|
|
525
|
+
}, he = (e) => {
|
|
526
|
+
E((t) => t.map((t) => t.id === e ? {
|
|
525
527
|
...t,
|
|
526
528
|
helpful: t.helpful + 1
|
|
527
529
|
} : t));
|
|
@@ -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;
|
|
@@ -565,93 +567,97 @@ function V() {
|
|
|
565
567
|
updatedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
566
568
|
responses: []
|
|
567
569
|
};
|
|
568
|
-
|
|
570
|
+
k((t) => [e, ...t]), X({
|
|
569
571
|
subject: "",
|
|
570
572
|
category: "",
|
|
571
573
|
priority: "medium",
|
|
572
574
|
description: ""
|
|
573
575
|
}), W(!1), H(!1), K("Support ticket created successfully! Our team will respond within 24 hours."), d("tickets"), setTimeout(() => K(""), 5e3);
|
|
574
576
|
}, 1e3);
|
|
575
|
-
},
|
|
577
|
+
}, _e = [
|
|
576
578
|
{
|
|
577
579
|
id: "faq",
|
|
578
580
|
label: "FAQ",
|
|
579
|
-
icon:
|
|
581
|
+
icon: ae
|
|
580
582
|
},
|
|
581
583
|
{
|
|
582
584
|
id: "contact",
|
|
583
585
|
label: "Contact Us",
|
|
584
|
-
icon:
|
|
586
|
+
icon: _
|
|
585
587
|
},
|
|
586
588
|
{
|
|
587
589
|
id: "tickets",
|
|
588
590
|
label: "My Tickets",
|
|
589
|
-
icon:
|
|
591
|
+
icon: C
|
|
590
592
|
}
|
|
591
593
|
];
|
|
592
|
-
return /* @__PURE__ */
|
|
594
|
+
return /* @__PURE__ */ M(n, {
|
|
593
595
|
title: "Help & Support",
|
|
594
596
|
description: "Find answers, contact support, or track your requests",
|
|
595
597
|
children: [
|
|
596
|
-
G && /* @__PURE__ */
|
|
598
|
+
G && /* @__PURE__ */ M("div", {
|
|
597
599
|
className: "mb-4 flex items-center gap-2 rounded-lg border border-green-500/30 bg-green-500/10 px-4 py-3 text-sm text-green-700 dark:text-green-300",
|
|
598
600
|
children: [
|
|
599
|
-
/* @__PURE__ */
|
|
601
|
+
/* @__PURE__ */ j(l, { className: "h-4 w-4 shrink-0" }),
|
|
600
602
|
G,
|
|
601
|
-
/* @__PURE__ */
|
|
603
|
+
/* @__PURE__ */ j("button", {
|
|
602
604
|
type: "button",
|
|
603
605
|
onClick: () => K(""),
|
|
604
606
|
className: "ml-auto",
|
|
605
|
-
children: /* @__PURE__ */
|
|
607
|
+
children: /* @__PURE__ */ j(O, { className: "h-4 w-4" })
|
|
606
608
|
})
|
|
607
609
|
]
|
|
608
610
|
}),
|
|
609
|
-
/* @__PURE__ */
|
|
611
|
+
/* @__PURE__ */ j(de, {
|
|
610
612
|
className: "mb-6",
|
|
611
|
-
children:
|
|
613
|
+
children: "Get unstuck fast. Search our help articles and FAQs for an instant answer, browse topics by category, or raise a support ticket and track its status if you need a human. Start with search — most questions are answered there."
|
|
614
|
+
}),
|
|
615
|
+
/* @__PURE__ */ j(ue, {
|
|
616
|
+
className: "mb-6 p-4",
|
|
617
|
+
children: /* @__PURE__ */ M("div", {
|
|
612
618
|
className: "relative",
|
|
613
619
|
children: [
|
|
614
|
-
/* @__PURE__ */
|
|
615
|
-
/* @__PURE__ */
|
|
620
|
+
/* @__PURE__ */ j(ce, { className: "absolute left-3 top-1/2 h-5 w-5 -translate-y-1/2 text-text-secondary" }),
|
|
621
|
+
/* @__PURE__ */ j("input", {
|
|
616
622
|
type: "text",
|
|
617
623
|
value: p,
|
|
618
624
|
onChange: (e) => {
|
|
619
|
-
|
|
625
|
+
h(e.target.value), u !== "faq" && d("faq");
|
|
620
626
|
},
|
|
621
627
|
placeholder: "Search help articles, FAQs, and more...",
|
|
622
628
|
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
629
|
}),
|
|
624
|
-
p && /* @__PURE__ */
|
|
630
|
+
p && /* @__PURE__ */ j("button", {
|
|
625
631
|
type: "button",
|
|
626
|
-
onClick: () =>
|
|
632
|
+
onClick: () => h(""),
|
|
627
633
|
className: "absolute right-3 top-1/2 -translate-y-1/2 text-text-secondary hover:text-text-primary",
|
|
628
|
-
children: /* @__PURE__ */
|
|
634
|
+
children: /* @__PURE__ */ j(O, { className: "h-4 w-4" })
|
|
629
635
|
})
|
|
630
636
|
]
|
|
631
637
|
})
|
|
632
638
|
}),
|
|
633
|
-
/* @__PURE__ */
|
|
639
|
+
/* @__PURE__ */ M("section", {
|
|
634
640
|
className: "mb-6",
|
|
635
|
-
children: [/* @__PURE__ */
|
|
641
|
+
children: [/* @__PURE__ */ j("h2", {
|
|
636
642
|
className: "text-lg font-semibold text-text-primary mb-3",
|
|
637
643
|
children: "Browse Help Topics"
|
|
638
|
-
}), /* @__PURE__ */
|
|
644
|
+
}), /* @__PURE__ */ j("div", {
|
|
639
645
|
className: "grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3",
|
|
640
|
-
children:
|
|
646
|
+
children: fe.map((e) => {
|
|
641
647
|
let n = e.icon;
|
|
642
|
-
return /* @__PURE__ */
|
|
648
|
+
return /* @__PURE__ */ M("button", {
|
|
643
649
|
type: "button",
|
|
644
650
|
onClick: () => {
|
|
645
|
-
|
|
651
|
+
y(e.label === v ? "" : e.label), d("faq");
|
|
646
652
|
},
|
|
647
|
-
className: t("flex items-start gap-3 rounded-lg border bg-bg-surface p-4 text-left transition-all hover:shadow-sm",
|
|
648
|
-
children: [/* @__PURE__ */
|
|
653
|
+
className: t("flex items-start gap-3 rounded-lg border bg-bg-surface p-4 text-left transition-all hover:shadow-sm", v === e.label ? "border-primary ring-1 ring-primary" : "border-border-subtle"),
|
|
654
|
+
children: [/* @__PURE__ */ j("div", {
|
|
649
655
|
className: t("flex h-10 w-10 shrink-0 items-center justify-center rounded-lg", e.color),
|
|
650
|
-
children: /* @__PURE__ */
|
|
651
|
-
}), /* @__PURE__ */
|
|
656
|
+
children: /* @__PURE__ */ j(n, { className: "h-5 w-5" })
|
|
657
|
+
}), /* @__PURE__ */ M("div", { children: [/* @__PURE__ */ j("p", {
|
|
652
658
|
className: "text-sm font-semibold text-text-primary",
|
|
653
659
|
children: e.label
|
|
654
|
-
}), /* @__PURE__ */
|
|
660
|
+
}), /* @__PURE__ */ j("p", {
|
|
655
661
|
className: "text-xs text-text-secondary",
|
|
656
662
|
children: e.description
|
|
657
663
|
})] })]
|
|
@@ -659,20 +665,20 @@ function V() {
|
|
|
659
665
|
})
|
|
660
666
|
})]
|
|
661
667
|
}),
|
|
662
|
-
/* @__PURE__ */
|
|
668
|
+
/* @__PURE__ */ j("section", {
|
|
663
669
|
className: "mb-6",
|
|
664
|
-
children: /* @__PURE__ */
|
|
670
|
+
children: /* @__PURE__ */ j("div", {
|
|
665
671
|
className: "flex space-x-1 bg-bg-sunken p-1 rounded-lg w-full sm:w-fit",
|
|
666
|
-
children:
|
|
672
|
+
children: _e.map((e) => {
|
|
667
673
|
let n = e.icon;
|
|
668
|
-
return /* @__PURE__ */
|
|
674
|
+
return /* @__PURE__ */ M("button", {
|
|
669
675
|
type: "button",
|
|
670
676
|
onClick: () => d(e.id),
|
|
671
677
|
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", u === e.id ? "bg-bg-surface text-text-primary shadow-sm" : "text-text-secondary hover:text-text-primary"),
|
|
672
678
|
children: [
|
|
673
|
-
/* @__PURE__ */
|
|
674
|
-
/* @__PURE__ */
|
|
675
|
-
e.id === "tickets" && Q.open > 0 && /* @__PURE__ */
|
|
679
|
+
/* @__PURE__ */ j(n, { className: "h-4 w-4" }),
|
|
680
|
+
/* @__PURE__ */ j("span", { children: e.label }),
|
|
681
|
+
e.id === "tickets" && Q.open > 0 && /* @__PURE__ */ j("span", {
|
|
676
682
|
className: "flex h-5 min-w-[20px] items-center justify-center rounded-full bg-action-primary-bg px-1.5 text-xs font-medium text-action-primary-text",
|
|
677
683
|
children: Q.open
|
|
678
684
|
})
|
|
@@ -681,89 +687,89 @@ function V() {
|
|
|
681
687
|
})
|
|
682
688
|
})
|
|
683
689
|
}),
|
|
684
|
-
u === "faq" && /* @__PURE__ */
|
|
690
|
+
u === "faq" && /* @__PURE__ */ M("div", { children: [/* @__PURE__ */ M("div", {
|
|
685
691
|
className: "mb-4 flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",
|
|
686
|
-
children: [/* @__PURE__ */
|
|
692
|
+
children: [/* @__PURE__ */ M("p", {
|
|
687
693
|
className: "text-sm text-text-secondary",
|
|
688
694
|
children: [
|
|
689
695
|
Z.length,
|
|
690
696
|
" question",
|
|
691
697
|
Z.length === 1 ? "" : "s",
|
|
692
698
|
" found",
|
|
693
|
-
|
|
699
|
+
v && /* @__PURE__ */ M("span", { children: [
|
|
694
700
|
" ",
|
|
695
701
|
"in ",
|
|
696
|
-
/* @__PURE__ */
|
|
702
|
+
/* @__PURE__ */ j("span", {
|
|
697
703
|
className: "font-medium text-text-primary",
|
|
698
|
-
children:
|
|
704
|
+
children: v
|
|
699
705
|
}),
|
|
700
|
-
/* @__PURE__ */
|
|
706
|
+
/* @__PURE__ */ j("button", {
|
|
701
707
|
type: "button",
|
|
702
|
-
onClick: () =>
|
|
708
|
+
onClick: () => y(""),
|
|
703
709
|
className: "ml-1 text-primary hover:underline",
|
|
704
710
|
children: "(clear)"
|
|
705
711
|
})
|
|
706
712
|
] })
|
|
707
713
|
]
|
|
708
|
-
}), /* @__PURE__ */
|
|
709
|
-
value:
|
|
710
|
-
onChange: (e) =>
|
|
714
|
+
}), /* @__PURE__ */ M("select", {
|
|
715
|
+
value: v,
|
|
716
|
+
onChange: (e) => y(e.target.value),
|
|
711
717
|
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
|
-
children: [/* @__PURE__ */
|
|
718
|
+
children: [/* @__PURE__ */ j("option", {
|
|
713
719
|
value: "",
|
|
714
720
|
children: "All Categories"
|
|
715
|
-
}),
|
|
721
|
+
}), N.map((e) => /* @__PURE__ */ j("option", {
|
|
716
722
|
value: e,
|
|
717
723
|
children: e
|
|
718
724
|
}, e))]
|
|
719
725
|
})]
|
|
720
|
-
}), Z.length > 0 ? /* @__PURE__ */
|
|
726
|
+
}), Z.length > 0 ? /* @__PURE__ */ j("div", {
|
|
721
727
|
className: "space-y-3",
|
|
722
728
|
children: Z.map((e) => {
|
|
723
|
-
let n =
|
|
724
|
-
return /* @__PURE__ */
|
|
729
|
+
let n = b === e.id;
|
|
730
|
+
return /* @__PURE__ */ M("div", {
|
|
725
731
|
className: "rounded-lg border border-border-subtle bg-bg-surface overflow-hidden",
|
|
726
|
-
children: [/* @__PURE__ */
|
|
732
|
+
children: [/* @__PURE__ */ M("button", {
|
|
727
733
|
type: "button",
|
|
728
|
-
onClick: () =>
|
|
734
|
+
onClick: () => me(e.id),
|
|
729
735
|
className: "flex w-full items-start justify-between gap-3 px-4 py-4 text-left hover:bg-accent/50 transition-colors",
|
|
730
|
-
children: [/* @__PURE__ */
|
|
736
|
+
children: [/* @__PURE__ */ M("div", {
|
|
731
737
|
className: "flex-1 min-w-0",
|
|
732
|
-
children: [/* @__PURE__ */
|
|
738
|
+
children: [/* @__PURE__ */ M("div", {
|
|
733
739
|
className: "flex flex-wrap items-center gap-2 mb-1",
|
|
734
|
-
children: [/* @__PURE__ */
|
|
740
|
+
children: [/* @__PURE__ */ j("span", {
|
|
735
741
|
className: "inline-flex items-center rounded-full bg-bg-sunken px-2 py-0.5 text-xs font-medium text-text-secondary",
|
|
736
742
|
children: e.category
|
|
737
|
-
}), /* @__PURE__ */
|
|
743
|
+
}), /* @__PURE__ */ M("span", {
|
|
738
744
|
className: "inline-flex items-center gap-1 text-xs text-text-secondary",
|
|
739
|
-
children: [/* @__PURE__ */
|
|
745
|
+
children: [/* @__PURE__ */ j(S, { className: "h-3 w-3" }), e.helpful]
|
|
740
746
|
})]
|
|
741
|
-
}), /* @__PURE__ */
|
|
747
|
+
}), /* @__PURE__ */ j("span", {
|
|
742
748
|
className: t("text-sm", n ? "font-semibold text-text-primary" : "font-medium text-text-primary"),
|
|
743
749
|
children: e.question
|
|
744
750
|
})]
|
|
745
|
-
}),
|
|
746
|
-
}), n && /* @__PURE__ */
|
|
751
|
+
}), j(n ? ne : te, { className: "h-4 w-4 text-text-secondary shrink-0 mt-1" })]
|
|
752
|
+
}), n && /* @__PURE__ */ M("div", {
|
|
747
753
|
className: "border-t border-border-subtle px-4 pb-4 pt-3",
|
|
748
|
-
children: [/* @__PURE__ */
|
|
754
|
+
children: [/* @__PURE__ */ j("p", {
|
|
749
755
|
className: "text-sm text-text-secondary leading-relaxed mb-3",
|
|
750
756
|
children: e.answer
|
|
751
|
-
}), /* @__PURE__ */
|
|
757
|
+
}), /* @__PURE__ */ M("div", {
|
|
752
758
|
className: "flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",
|
|
753
|
-
children: [/* @__PURE__ */
|
|
759
|
+
children: [/* @__PURE__ */ j("div", {
|
|
754
760
|
className: "flex flex-wrap gap-1.5",
|
|
755
|
-
children: e.tags.map((e) => /* @__PURE__ */
|
|
761
|
+
children: e.tags.map((e) => /* @__PURE__ */ M("span", {
|
|
756
762
|
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__ */
|
|
763
|
+
children: [/* @__PURE__ */ j(x, { className: "h-2.5 w-2.5" }), e]
|
|
758
764
|
}, e))
|
|
759
|
-
}), /* @__PURE__ */
|
|
765
|
+
}), /* @__PURE__ */ M("button", {
|
|
760
766
|
type: "button",
|
|
761
767
|
onClick: (t) => {
|
|
762
|
-
t.stopPropagation(),
|
|
768
|
+
t.stopPropagation(), he(e.id);
|
|
763
769
|
},
|
|
764
770
|
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
771
|
children: [
|
|
766
|
-
/* @__PURE__ */
|
|
772
|
+
/* @__PURE__ */ j(S, { className: "h-3.5 w-3.5" }),
|
|
767
773
|
"Helpful (",
|
|
768
774
|
e.helpful,
|
|
769
775
|
")"
|
|
@@ -773,66 +779,60 @@ function V() {
|
|
|
773
779
|
})]
|
|
774
780
|
}, e.id);
|
|
775
781
|
})
|
|
776
|
-
}) : /* @__PURE__ */
|
|
777
|
-
className: "
|
|
778
|
-
children:
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
}),
|
|
784
|
-
/* @__PURE__ */ M("p", {
|
|
785
|
-
className: "text-sm text-text-secondary mb-3",
|
|
786
|
-
children: "Try adjusting your search or browse different categories"
|
|
787
|
-
}),
|
|
788
|
-
/* @__PURE__ */ M("button", {
|
|
782
|
+
}) : /* @__PURE__ */ j("div", {
|
|
783
|
+
className: "rounded-lg border border-border-subtle bg-bg-surface",
|
|
784
|
+
children: /* @__PURE__ */ j(r, {
|
|
785
|
+
illustration: "empty-search",
|
|
786
|
+
title: "No FAQs found",
|
|
787
|
+
description: "Try adjusting your search or browse different categories. If you still can't find an answer, raise a support ticket.",
|
|
788
|
+
action: /* @__PURE__ */ j("button", {
|
|
789
789
|
type: "button",
|
|
790
790
|
onClick: () => {
|
|
791
|
-
|
|
791
|
+
h(""), y("");
|
|
792
792
|
},
|
|
793
793
|
className: "text-sm font-medium text-primary hover:underline",
|
|
794
794
|
children: "Clear all filters"
|
|
795
795
|
})
|
|
796
|
-
|
|
796
|
+
})
|
|
797
797
|
})] }),
|
|
798
|
-
u === "contact" && /* @__PURE__ */
|
|
798
|
+
u === "contact" && /* @__PURE__ */ M("div", {
|
|
799
799
|
className: "space-y-6",
|
|
800
800
|
children: [
|
|
801
|
-
/* @__PURE__ */
|
|
801
|
+
/* @__PURE__ */ M("div", { children: [/* @__PURE__ */ j("h2", {
|
|
802
802
|
className: "text-base font-semibold text-text-primary mb-3",
|
|
803
803
|
children: "Get in Touch"
|
|
804
|
-
}), /* @__PURE__ */
|
|
804
|
+
}), /* @__PURE__ */ j("div", {
|
|
805
805
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
|
|
806
|
-
children:
|
|
806
|
+
children: P.map((e) => {
|
|
807
807
|
let n = e.icon;
|
|
808
|
-
return /* @__PURE__ */
|
|
808
|
+
return /* @__PURE__ */ j("div", {
|
|
809
809
|
className: "rounded-lg border border-border-subtle bg-bg-surface p-5",
|
|
810
|
-
children: /* @__PURE__ */
|
|
810
|
+
children: /* @__PURE__ */ M("div", {
|
|
811
811
|
className: "flex items-start gap-4",
|
|
812
|
-
children: [/* @__PURE__ */
|
|
812
|
+
children: [/* @__PURE__ */ j("div", {
|
|
813
813
|
className: "flex h-12 w-12 shrink-0 items-center justify-center rounded-lg bg-bg-sunken",
|
|
814
|
-
children: /* @__PURE__ */
|
|
815
|
-
}), /* @__PURE__ */
|
|
814
|
+
children: /* @__PURE__ */ j(n, { className: "h-6 w-6 text-text-secondary" })
|
|
815
|
+
}), /* @__PURE__ */ M("div", {
|
|
816
816
|
className: "flex-1 min-w-0",
|
|
817
817
|
children: [
|
|
818
|
-
/* @__PURE__ */
|
|
818
|
+
/* @__PURE__ */ j("h3", {
|
|
819
819
|
className: "text-sm font-semibold text-text-primary",
|
|
820
820
|
children: e.label
|
|
821
821
|
}),
|
|
822
|
-
/* @__PURE__ */
|
|
822
|
+
/* @__PURE__ */ j("p", {
|
|
823
823
|
className: "text-sm text-text-primary mt-0.5 break-words",
|
|
824
824
|
children: e.value
|
|
825
825
|
}),
|
|
826
|
-
/* @__PURE__ */
|
|
826
|
+
/* @__PURE__ */ M("div", {
|
|
827
827
|
className: "flex items-center gap-1 mt-1 text-xs text-text-secondary",
|
|
828
|
-
children: [/* @__PURE__ */
|
|
828
|
+
children: [/* @__PURE__ */ j(f, { className: "h-3 w-3" }), e.responseTime]
|
|
829
829
|
}),
|
|
830
|
-
/* @__PURE__ */
|
|
830
|
+
/* @__PURE__ */ M("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__ */
|
|
835
|
+
children: [e.type === "chat" ? "Start Chat" : e.type === "email" ? "Send Email" : "Contact", /* @__PURE__ */ j(re, { className: "h-3.5 w-3.5" })]
|
|
836
836
|
})
|
|
837
837
|
]
|
|
838
838
|
})]
|
|
@@ -840,36 +840,36 @@ function V() {
|
|
|
840
840
|
}, e.type);
|
|
841
841
|
})
|
|
842
842
|
})] }),
|
|
843
|
-
/* @__PURE__ */
|
|
843
|
+
/* @__PURE__ */ M("div", {
|
|
844
844
|
className: "rounded-lg border border-border-subtle bg-bg-surface",
|
|
845
|
-
children: [/* @__PURE__ */
|
|
845
|
+
children: [/* @__PURE__ */ M("div", {
|
|
846
846
|
className: "flex items-center justify-between border-b border-border-subtle px-5 py-4",
|
|
847
|
-
children: [/* @__PURE__ */
|
|
847
|
+
children: [/* @__PURE__ */ M("div", { children: [/* @__PURE__ */ j("h2", {
|
|
848
848
|
className: "text-base font-semibold text-text-primary",
|
|
849
849
|
children: "Submit a Support Ticket"
|
|
850
|
-
}), /* @__PURE__ */
|
|
850
|
+
}), /* @__PURE__ */ j("p", {
|
|
851
851
|
className: "text-xs text-text-secondary mt-0.5",
|
|
852
852
|
children: "Can't find your answer? Create a ticket and our team will help."
|
|
853
|
-
})] }), /* @__PURE__ */
|
|
853
|
+
})] }), /* @__PURE__ */ M("button", {
|
|
854
854
|
type: "button",
|
|
855
855
|
onClick: () => H(!V),
|
|
856
856
|
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",
|
|
857
|
-
children: [/* @__PURE__ */
|
|
857
|
+
children: [/* @__PURE__ */ j(C, { className: "h-4 w-4" }), V ? "Close" : "New Ticket"]
|
|
858
858
|
})]
|
|
859
|
-
}), V && /* @__PURE__ */
|
|
859
|
+
}), V && /* @__PURE__ */ M("div", {
|
|
860
860
|
className: "p-5 space-y-4",
|
|
861
861
|
children: [
|
|
862
|
-
q && /* @__PURE__ */
|
|
862
|
+
q && /* @__PURE__ */ M("div", {
|
|
863
863
|
className: "flex items-center gap-2 rounded-lg border border-red-500/30 bg-red-500/10 px-3 py-2 text-sm text-red-700 dark:text-red-300",
|
|
864
|
-
children: [/* @__PURE__ */
|
|
864
|
+
children: [/* @__PURE__ */ j(s, { className: "h-4 w-4 shrink-0" }), q]
|
|
865
865
|
}),
|
|
866
|
-
/* @__PURE__ */
|
|
866
|
+
/* @__PURE__ */ M("div", { children: [/* @__PURE__ */ M("label", {
|
|
867
867
|
className: "block text-sm font-medium text-text-primary mb-1.5",
|
|
868
|
-
children: ["Subject ", /* @__PURE__ */
|
|
868
|
+
children: ["Subject ", /* @__PURE__ */ j("span", {
|
|
869
869
|
className: "text-red-500",
|
|
870
870
|
children: "*"
|
|
871
871
|
})]
|
|
872
|
-
}), /* @__PURE__ */
|
|
872
|
+
}), /* @__PURE__ */ j("input", {
|
|
873
873
|
type: "text",
|
|
874
874
|
value: Y.subject,
|
|
875
875
|
onChange: (e) => X((t) => ({
|
|
@@ -879,32 +879,32 @@ function V() {
|
|
|
879
879
|
placeholder: "Brief description of your issue",
|
|
880
880
|
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)]"
|
|
881
881
|
})] }),
|
|
882
|
-
/* @__PURE__ */
|
|
882
|
+
/* @__PURE__ */ M("div", {
|
|
883
883
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
|
|
884
|
-
children: [/* @__PURE__ */
|
|
884
|
+
children: [/* @__PURE__ */ M("div", { children: [/* @__PURE__ */ M("label", {
|
|
885
885
|
className: "block text-sm font-medium text-text-primary mb-1.5",
|
|
886
|
-
children: ["Category ", /* @__PURE__ */
|
|
886
|
+
children: ["Category ", /* @__PURE__ */ j("span", {
|
|
887
887
|
className: "text-red-500",
|
|
888
888
|
children: "*"
|
|
889
889
|
})]
|
|
890
|
-
}), /* @__PURE__ */
|
|
890
|
+
}), /* @__PURE__ */ M("select", {
|
|
891
891
|
value: Y.category,
|
|
892
892
|
onChange: (e) => X((t) => ({
|
|
893
893
|
...t,
|
|
894
894
|
category: e.target.value
|
|
895
895
|
})),
|
|
896
896
|
className: "w-full 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)]",
|
|
897
|
-
children: [/* @__PURE__ */
|
|
897
|
+
children: [/* @__PURE__ */ j("option", {
|
|
898
898
|
value: "",
|
|
899
899
|
children: "Select category"
|
|
900
|
-
}),
|
|
900
|
+
}), N.map((e) => /* @__PURE__ */ j("option", {
|
|
901
901
|
value: e,
|
|
902
902
|
children: e
|
|
903
903
|
}, e))]
|
|
904
|
-
})] }), /* @__PURE__ */
|
|
904
|
+
})] }), /* @__PURE__ */ M("div", { children: [/* @__PURE__ */ j("label", {
|
|
905
905
|
className: "block text-sm font-medium text-text-primary mb-1.5",
|
|
906
906
|
children: "Priority"
|
|
907
|
-
}), /* @__PURE__ */
|
|
907
|
+
}), /* @__PURE__ */ M("select", {
|
|
908
908
|
value: Y.priority,
|
|
909
909
|
onChange: (e) => X((t) => ({
|
|
910
910
|
...t,
|
|
@@ -912,32 +912,32 @@ function V() {
|
|
|
912
912
|
})),
|
|
913
913
|
className: "w-full 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)]",
|
|
914
914
|
children: [
|
|
915
|
-
/* @__PURE__ */
|
|
915
|
+
/* @__PURE__ */ j("option", {
|
|
916
916
|
value: "low",
|
|
917
917
|
children: "Low"
|
|
918
918
|
}),
|
|
919
|
-
/* @__PURE__ */
|
|
919
|
+
/* @__PURE__ */ j("option", {
|
|
920
920
|
value: "medium",
|
|
921
921
|
children: "Medium"
|
|
922
922
|
}),
|
|
923
|
-
/* @__PURE__ */
|
|
923
|
+
/* @__PURE__ */ j("option", {
|
|
924
924
|
value: "high",
|
|
925
925
|
children: "High"
|
|
926
926
|
}),
|
|
927
|
-
/* @__PURE__ */
|
|
927
|
+
/* @__PURE__ */ j("option", {
|
|
928
928
|
value: "urgent",
|
|
929
929
|
children: "Urgent"
|
|
930
930
|
})
|
|
931
931
|
]
|
|
932
932
|
})] })]
|
|
933
933
|
}),
|
|
934
|
-
/* @__PURE__ */
|
|
934
|
+
/* @__PURE__ */ M("div", { children: [/* @__PURE__ */ M("label", {
|
|
935
935
|
className: "block text-sm font-medium text-text-primary mb-1.5",
|
|
936
|
-
children: ["Description ", /* @__PURE__ */
|
|
936
|
+
children: ["Description ", /* @__PURE__ */ j("span", {
|
|
937
937
|
className: "text-red-500",
|
|
938
938
|
children: "*"
|
|
939
939
|
})]
|
|
940
|
-
}), /* @__PURE__ */
|
|
940
|
+
}), /* @__PURE__ */ j("textarea", {
|
|
941
941
|
rows: 5,
|
|
942
942
|
value: Y.description,
|
|
943
943
|
onChange: (e) => X((t) => ({
|
|
@@ -947,33 +947,33 @@ function V() {
|
|
|
947
947
|
placeholder: "Please describe your issue in detail...",
|
|
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
|
-
/* @__PURE__ */
|
|
950
|
+
/* @__PURE__ */ M("div", {
|
|
951
951
|
className: "rounded-lg bg-blue-500/5 border border-blue-500/20 p-4",
|
|
952
|
-
children: [/* @__PURE__ */
|
|
952
|
+
children: [/* @__PURE__ */ M("div", {
|
|
953
953
|
className: "flex items-center gap-2 mb-2",
|
|
954
|
-
children: [/* @__PURE__ */
|
|
954
|
+
children: [/* @__PURE__ */ j(se, { className: "h-4 w-4 text-blue-600 dark:text-blue-400" }), /* @__PURE__ */ j("h4", {
|
|
955
955
|
className: "text-sm font-medium text-blue-700 dark:text-blue-300",
|
|
956
956
|
children: "Tips for faster resolution"
|
|
957
957
|
})]
|
|
958
|
-
}), /* @__PURE__ */
|
|
958
|
+
}), /* @__PURE__ */ M("ul", {
|
|
959
959
|
className: "text-xs text-blue-600 dark:text-blue-400 space-y-1 ml-6 list-disc",
|
|
960
960
|
children: [
|
|
961
|
-
/* @__PURE__ */
|
|
962
|
-
/* @__PURE__ */
|
|
963
|
-
/* @__PURE__ */
|
|
964
|
-
/* @__PURE__ */
|
|
961
|
+
/* @__PURE__ */ j("li", { children: "Be specific about the issue and include steps to reproduce it" }),
|
|
962
|
+
/* @__PURE__ */ j("li", { children: "Include relevant order IDs, transaction IDs, or error messages" }),
|
|
963
|
+
/* @__PURE__ */ j("li", { children: "Mention your device type and app version for technical issues" }),
|
|
964
|
+
/* @__PURE__ */ j("li", { children: "Attach screenshots if they help illustrate the problem" })
|
|
965
965
|
]
|
|
966
966
|
})]
|
|
967
967
|
}),
|
|
968
|
-
/* @__PURE__ */
|
|
968
|
+
/* @__PURE__ */ M("div", {
|
|
969
969
|
className: "flex items-center gap-3 pt-1",
|
|
970
|
-
children: [/* @__PURE__ */
|
|
970
|
+
children: [/* @__PURE__ */ j("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__ */
|
|
976
|
-
}), /* @__PURE__ */
|
|
975
|
+
children: U ? /* @__PURE__ */ M(A, { children: [/* @__PURE__ */ j("span", { className: "h-4 w-4 animate-spin rounded-full border-2 border-primary-foreground/30 border-t-primary-foreground" }), "Submitting..."] }) : /* @__PURE__ */ M(A, { children: [/* @__PURE__ */ j(le, { className: "h-4 w-4" }), "Submit Ticket"] })
|
|
976
|
+
}), /* @__PURE__ */ j("button", {
|
|
977
977
|
type: "button",
|
|
978
978
|
onClick: () => {
|
|
979
979
|
H(!1), J("");
|
|
@@ -985,93 +985,93 @@ function V() {
|
|
|
985
985
|
]
|
|
986
986
|
})]
|
|
987
987
|
}),
|
|
988
|
-
/* @__PURE__ */
|
|
988
|
+
/* @__PURE__ */ M("div", {
|
|
989
989
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
|
|
990
|
-
children: [/* @__PURE__ */
|
|
990
|
+
children: [/* @__PURE__ */ M("div", {
|
|
991
991
|
className: "rounded-lg border border-border-subtle bg-bg-surface p-5",
|
|
992
|
-
children: [/* @__PURE__ */
|
|
992
|
+
children: [/* @__PURE__ */ M("div", {
|
|
993
993
|
className: "flex items-center gap-2 mb-3",
|
|
994
|
-
children: [/* @__PURE__ */
|
|
994
|
+
children: [/* @__PURE__ */ j(f, { className: "h-5 w-5 text-text-secondary" }), /* @__PURE__ */ j("h3", {
|
|
995
995
|
className: "text-sm font-semibold text-text-primary",
|
|
996
996
|
children: "Support Hours"
|
|
997
997
|
})]
|
|
998
|
-
}), /* @__PURE__ */
|
|
998
|
+
}), /* @__PURE__ */ M("div", {
|
|
999
999
|
className: "space-y-2 text-sm",
|
|
1000
1000
|
children: [
|
|
1001
|
-
/* @__PURE__ */
|
|
1001
|
+
/* @__PURE__ */ M("div", {
|
|
1002
1002
|
className: "flex justify-between",
|
|
1003
|
-
children: [/* @__PURE__ */
|
|
1003
|
+
children: [/* @__PURE__ */ j("span", {
|
|
1004
1004
|
className: "text-text-secondary",
|
|
1005
1005
|
children: "Monday - Friday"
|
|
1006
|
-
}), /* @__PURE__ */
|
|
1006
|
+
}), /* @__PURE__ */ j("span", {
|
|
1007
1007
|
className: "font-medium text-text-primary",
|
|
1008
1008
|
children: "9:00 AM - 9:00 PM IST"
|
|
1009
1009
|
})]
|
|
1010
1010
|
}),
|
|
1011
|
-
/* @__PURE__ */
|
|
1011
|
+
/* @__PURE__ */ M("div", {
|
|
1012
1012
|
className: "flex justify-between",
|
|
1013
|
-
children: [/* @__PURE__ */
|
|
1013
|
+
children: [/* @__PURE__ */ j("span", {
|
|
1014
1014
|
className: "text-text-secondary",
|
|
1015
1015
|
children: "Saturday"
|
|
1016
|
-
}), /* @__PURE__ */
|
|
1016
|
+
}), /* @__PURE__ */ j("span", {
|
|
1017
1017
|
className: "font-medium text-text-primary",
|
|
1018
1018
|
children: "10:00 AM - 6:00 PM IST"
|
|
1019
1019
|
})]
|
|
1020
1020
|
}),
|
|
1021
|
-
/* @__PURE__ */
|
|
1021
|
+
/* @__PURE__ */ M("div", {
|
|
1022
1022
|
className: "flex justify-between",
|
|
1023
|
-
children: [/* @__PURE__ */
|
|
1023
|
+
children: [/* @__PURE__ */ j("span", {
|
|
1024
1024
|
className: "text-text-secondary",
|
|
1025
1025
|
children: "Sunday"
|
|
1026
|
-
}), /* @__PURE__ */
|
|
1026
|
+
}), /* @__PURE__ */ j("span", {
|
|
1027
1027
|
className: "font-medium text-text-primary",
|
|
1028
1028
|
children: "Closed"
|
|
1029
1029
|
})]
|
|
1030
1030
|
}),
|
|
1031
|
-
/* @__PURE__ */
|
|
1031
|
+
/* @__PURE__ */ M("div", {
|
|
1032
1032
|
className: "flex justify-between pt-2 border-t border-border-subtle",
|
|
1033
|
-
children: [/* @__PURE__ */
|
|
1033
|
+
children: [/* @__PURE__ */ j("span", {
|
|
1034
1034
|
className: "text-text-secondary",
|
|
1035
1035
|
children: "Email Support"
|
|
1036
|
-
}), /* @__PURE__ */
|
|
1036
|
+
}), /* @__PURE__ */ j("span", {
|
|
1037
1037
|
className: "font-medium text-text-primary",
|
|
1038
1038
|
children: "24/7"
|
|
1039
1039
|
})]
|
|
1040
1040
|
})
|
|
1041
1041
|
]
|
|
1042
1042
|
})]
|
|
1043
|
-
}), /* @__PURE__ */
|
|
1043
|
+
}), /* @__PURE__ */ M("div", {
|
|
1044
1044
|
className: "rounded-lg border border-red-500/20 bg-red-500/5 p-5",
|
|
1045
1045
|
children: [
|
|
1046
|
-
/* @__PURE__ */
|
|
1046
|
+
/* @__PURE__ */ M("div", {
|
|
1047
1047
|
className: "flex items-center gap-2 mb-3",
|
|
1048
|
-
children: [/* @__PURE__ */
|
|
1048
|
+
children: [/* @__PURE__ */ j(c, { className: "h-5 w-5 text-red-600 dark:text-red-400" }), /* @__PURE__ */ j("h3", {
|
|
1049
1049
|
className: "text-sm font-semibold text-red-700 dark:text-red-300",
|
|
1050
1050
|
children: "Emergency Contact"
|
|
1051
1051
|
})]
|
|
1052
1052
|
}),
|
|
1053
|
-
/* @__PURE__ */
|
|
1053
|
+
/* @__PURE__ */ j("p", {
|
|
1054
1054
|
className: "text-sm text-red-600 dark:text-red-400 mb-3",
|
|
1055
1055
|
children: "For urgent issues like safety concerns, fraud, or account compromise:"
|
|
1056
1056
|
}),
|
|
1057
|
-
/* @__PURE__ */
|
|
1057
|
+
/* @__PURE__ */ M("div", {
|
|
1058
1058
|
className: "space-y-2",
|
|
1059
|
-
children: [/* @__PURE__ */
|
|
1059
|
+
children: [/* @__PURE__ */ M("div", {
|
|
1060
1060
|
className: "flex items-center gap-2 text-sm",
|
|
1061
1061
|
children: [
|
|
1062
|
-
/* @__PURE__ */
|
|
1063
|
-
/* @__PURE__ */
|
|
1062
|
+
/* @__PURE__ */ j(_, { className: "h-4 w-4 text-red-600 dark:text-red-400" }),
|
|
1063
|
+
/* @__PURE__ */ j("span", {
|
|
1064
1064
|
className: "font-medium text-red-700 dark:text-red-300",
|
|
1065
1065
|
children: "+91 80-4012-9999"
|
|
1066
1066
|
}),
|
|
1067
|
-
/* @__PURE__ */
|
|
1067
|
+
/* @__PURE__ */ j("span", {
|
|
1068
1068
|
className: "text-xs text-red-500",
|
|
1069
1069
|
children: "(24/7)"
|
|
1070
1070
|
})
|
|
1071
1071
|
]
|
|
1072
|
-
}), /* @__PURE__ */
|
|
1072
|
+
}), /* @__PURE__ */ M("div", {
|
|
1073
1073
|
className: "flex items-center gap-2 text-sm",
|
|
1074
|
-
children: [/* @__PURE__ */
|
|
1074
|
+
children: [/* @__PURE__ */ j(m, { className: "h-4 w-4 text-red-600 dark:text-red-400" }), /* @__PURE__ */ j("span", {
|
|
1075
1075
|
className: "font-medium text-red-700 dark:text-red-300",
|
|
1076
1076
|
children: "emergency@atheletebridge.com"
|
|
1077
1077
|
})]
|
|
@@ -1080,25 +1080,25 @@ function V() {
|
|
|
1080
1080
|
]
|
|
1081
1081
|
})]
|
|
1082
1082
|
}),
|
|
1083
|
-
/* @__PURE__ */
|
|
1083
|
+
/* @__PURE__ */ M("div", { children: [/* @__PURE__ */ j("h2", {
|
|
1084
1084
|
className: "text-base font-semibold text-text-primary mb-3",
|
|
1085
1085
|
children: "Popular Articles"
|
|
1086
|
-
}), /* @__PURE__ */
|
|
1086
|
+
}), /* @__PURE__ */ j("div", {
|
|
1087
1087
|
className: "grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3",
|
|
1088
|
-
children: L.map((e) => /* @__PURE__ */
|
|
1088
|
+
children: L.map((e) => /* @__PURE__ */ M("button", {
|
|
1089
1089
|
type: "button",
|
|
1090
1090
|
className: "flex items-start gap-3 rounded-lg border border-border-subtle bg-bg-surface p-4 text-left hover:bg-accent/50 transition-colors",
|
|
1091
|
-
children: [/* @__PURE__ */
|
|
1091
|
+
children: [/* @__PURE__ */ j(ie, { className: "h-5 w-5 text-text-secondary shrink-0 mt-0.5" }), /* @__PURE__ */ M("div", {
|
|
1092
1092
|
className: "min-w-0",
|
|
1093
|
-
children: [/* @__PURE__ */
|
|
1093
|
+
children: [/* @__PURE__ */ j("p", {
|
|
1094
1094
|
className: "text-sm font-medium text-text-primary truncate",
|
|
1095
1095
|
children: e.title
|
|
1096
|
-
}), /* @__PURE__ */
|
|
1096
|
+
}), /* @__PURE__ */ M("div", {
|
|
1097
1097
|
className: "flex items-center gap-2 mt-1",
|
|
1098
|
-
children: [/* @__PURE__ */
|
|
1098
|
+
children: [/* @__PURE__ */ j("span", {
|
|
1099
1099
|
className: "text-xs text-text-secondary",
|
|
1100
1100
|
children: e.category
|
|
1101
|
-
}), /* @__PURE__ */
|
|
1101
|
+
}), /* @__PURE__ */ M("span", {
|
|
1102
1102
|
className: "text-xs text-text-secondary",
|
|
1103
1103
|
children: [e.views.toLocaleString("en-IN"), " views"]
|
|
1104
1104
|
})]
|
|
@@ -1108,113 +1108,107 @@ function V() {
|
|
|
1108
1108
|
})] })
|
|
1109
1109
|
]
|
|
1110
1110
|
}),
|
|
1111
|
-
u === "tickets" && /* @__PURE__ */
|
|
1111
|
+
u === "tickets" && /* @__PURE__ */ M("div", {
|
|
1112
1112
|
className: "space-y-4",
|
|
1113
1113
|
children: [
|
|
1114
|
-
/* @__PURE__ */
|
|
1114
|
+
/* @__PURE__ */ M("div", {
|
|
1115
1115
|
className: "grid grid-cols-2 gap-3 sm:grid-cols-4",
|
|
1116
1116
|
children: [
|
|
1117
|
-
/* @__PURE__ */
|
|
1117
|
+
/* @__PURE__ */ M("div", {
|
|
1118
1118
|
className: "rounded-lg border border-border-subtle bg-bg-surface p-3 text-center",
|
|
1119
|
-
children: [/* @__PURE__ */
|
|
1119
|
+
children: [/* @__PURE__ */ j("p", {
|
|
1120
1120
|
className: "text-2xl font-bold text-text-primary",
|
|
1121
1121
|
children: Q.total
|
|
1122
|
-
}), /* @__PURE__ */
|
|
1122
|
+
}), /* @__PURE__ */ j("p", {
|
|
1123
1123
|
className: "text-xs text-text-secondary",
|
|
1124
1124
|
children: "Total"
|
|
1125
1125
|
})]
|
|
1126
1126
|
}),
|
|
1127
|
-
/* @__PURE__ */
|
|
1127
|
+
/* @__PURE__ */ M("div", {
|
|
1128
1128
|
className: "rounded-lg border border-border-subtle bg-bg-surface p-3 text-center",
|
|
1129
|
-
children: [/* @__PURE__ */
|
|
1129
|
+
children: [/* @__PURE__ */ j("p", {
|
|
1130
1130
|
className: "text-2xl font-bold text-blue-600 dark:text-blue-400",
|
|
1131
1131
|
children: Q.open
|
|
1132
|
-
}), /* @__PURE__ */
|
|
1132
|
+
}), /* @__PURE__ */ j("p", {
|
|
1133
1133
|
className: "text-xs text-text-secondary",
|
|
1134
1134
|
children: "Open"
|
|
1135
1135
|
})]
|
|
1136
1136
|
}),
|
|
1137
|
-
/* @__PURE__ */
|
|
1137
|
+
/* @__PURE__ */ M("div", {
|
|
1138
1138
|
className: "rounded-lg border border-border-subtle bg-bg-surface p-3 text-center",
|
|
1139
|
-
children: [/* @__PURE__ */
|
|
1139
|
+
children: [/* @__PURE__ */ j("p", {
|
|
1140
1140
|
className: "text-2xl font-bold text-amber-600 dark:text-amber-400",
|
|
1141
1141
|
children: Q.inProgress
|
|
1142
|
-
}), /* @__PURE__ */
|
|
1142
|
+
}), /* @__PURE__ */ j("p", {
|
|
1143
1143
|
className: "text-xs text-text-secondary",
|
|
1144
1144
|
children: "In Progress"
|
|
1145
1145
|
})]
|
|
1146
1146
|
}),
|
|
1147
|
-
/* @__PURE__ */
|
|
1147
|
+
/* @__PURE__ */ M("div", {
|
|
1148
1148
|
className: "rounded-lg border border-border-subtle bg-bg-surface p-3 text-center",
|
|
1149
|
-
children: [/* @__PURE__ */
|
|
1149
|
+
children: [/* @__PURE__ */ j("p", {
|
|
1150
1150
|
className: "text-2xl font-bold text-green-600 dark:text-green-400",
|
|
1151
1151
|
children: Q.resolved
|
|
1152
|
-
}), /* @__PURE__ */
|
|
1152
|
+
}), /* @__PURE__ */ j("p", {
|
|
1153
1153
|
className: "text-xs text-text-secondary",
|
|
1154
1154
|
children: "Resolved"
|
|
1155
1155
|
})]
|
|
1156
1156
|
})
|
|
1157
1157
|
]
|
|
1158
1158
|
}),
|
|
1159
|
-
/* @__PURE__ */
|
|
1159
|
+
/* @__PURE__ */ M("div", {
|
|
1160
1160
|
className: "flex items-center justify-between",
|
|
1161
|
-
children: [/* @__PURE__ */
|
|
1161
|
+
children: [/* @__PURE__ */ M("p", {
|
|
1162
1162
|
className: "text-sm text-text-secondary",
|
|
1163
1163
|
children: [
|
|
1164
|
-
|
|
1164
|
+
D.length,
|
|
1165
1165
|
" ticket",
|
|
1166
|
-
|
|
1166
|
+
D.length === 1 ? "" : "s"
|
|
1167
1167
|
]
|
|
1168
|
-
}), /* @__PURE__ */
|
|
1168
|
+
}), /* @__PURE__ */ M("button", {
|
|
1169
1169
|
type: "button",
|
|
1170
1170
|
onClick: () => {
|
|
1171
1171
|
H(!0), d("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
|
-
children: [/* @__PURE__ */
|
|
1174
|
+
children: [/* @__PURE__ */ j(C, { className: "h-4 w-4" }), "New Ticket"]
|
|
1175
1175
|
})]
|
|
1176
1176
|
}),
|
|
1177
|
-
|
|
1178
|
-
className: "
|
|
1179
|
-
children:
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
}),
|
|
1185
|
-
/* @__PURE__ */ M("p", {
|
|
1186
|
-
className: "text-sm text-text-secondary mb-3",
|
|
1187
|
-
children: "You haven't created any support tickets yet"
|
|
1188
|
-
}),
|
|
1189
|
-
/* @__PURE__ */ M("button", {
|
|
1177
|
+
D.length === 0 ? /* @__PURE__ */ j("div", {
|
|
1178
|
+
className: "rounded-lg border border-border-subtle bg-bg-surface",
|
|
1179
|
+
children: /* @__PURE__ */ j(r, {
|
|
1180
|
+
illustration: "empty-notifications",
|
|
1181
|
+
title: "No support tickets",
|
|
1182
|
+
description: "You haven't created any support tickets yet. If something needs a human, raise one and we'll help.",
|
|
1183
|
+
action: /* @__PURE__ */ j("button", {
|
|
1190
1184
|
type: "button",
|
|
1191
1185
|
onClick: () => {
|
|
1192
1186
|
H(!0), d("contact");
|
|
1193
1187
|
},
|
|
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",
|
|
1188
|
+
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",
|
|
1195
1189
|
children: "Create Your First Ticket"
|
|
1196
1190
|
})
|
|
1197
|
-
|
|
1198
|
-
}) : /* @__PURE__ */
|
|
1191
|
+
})
|
|
1192
|
+
}) : /* @__PURE__ */ j("div", {
|
|
1199
1193
|
className: "space-y-4",
|
|
1200
|
-
children:
|
|
1201
|
-
let n =
|
|
1202
|
-
return /* @__PURE__ */
|
|
1194
|
+
children: D.map((e) => {
|
|
1195
|
+
let n = R(e.status), r = e.responses.length > 0 ? e.responses[e.responses.length - 1] : null;
|
|
1196
|
+
return /* @__PURE__ */ M("div", {
|
|
1203
1197
|
className: "rounded-lg border border-border-subtle bg-bg-surface overflow-hidden",
|
|
1204
|
-
children: [/* @__PURE__ */
|
|
1198
|
+
children: [/* @__PURE__ */ M("div", {
|
|
1205
1199
|
className: "p-4 sm:p-5",
|
|
1206
1200
|
children: [
|
|
1207
|
-
/* @__PURE__ */
|
|
1201
|
+
/* @__PURE__ */ M("div", {
|
|
1208
1202
|
className: "flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between",
|
|
1209
|
-
children: [/* @__PURE__ */
|
|
1203
|
+
children: [/* @__PURE__ */ M("div", {
|
|
1210
1204
|
className: "flex-1 min-w-0",
|
|
1211
|
-
children: [/* @__PURE__ */
|
|
1205
|
+
children: [/* @__PURE__ */ M("div", {
|
|
1212
1206
|
className: "flex items-center gap-2 mb-1",
|
|
1213
|
-
children: [/* @__PURE__ */
|
|
1207
|
+
children: [/* @__PURE__ */ j(n, { className: t("h-4 w-4", z(e.status).split(" ").slice(1).join(" ")) }), /* @__PURE__ */ j("h3", {
|
|
1214
1208
|
className: "text-sm font-semibold text-text-primary truncate",
|
|
1215
1209
|
children: e.subject
|
|
1216
1210
|
})]
|
|
1217
|
-
}), /* @__PURE__ */
|
|
1211
|
+
}), /* @__PURE__ */ M("p", {
|
|
1218
1212
|
className: "text-xs text-text-secondary",
|
|
1219
1213
|
children: [
|
|
1220
1214
|
e.category,
|
|
@@ -1222,52 +1216,52 @@ function V() {
|
|
|
1222
1216
|
e.id
|
|
1223
1217
|
]
|
|
1224
1218
|
})]
|
|
1225
|
-
}), /* @__PURE__ */
|
|
1219
|
+
}), /* @__PURE__ */ M("div", {
|
|
1226
1220
|
className: "flex flex-wrap gap-2",
|
|
1227
|
-
children: [/* @__PURE__ */
|
|
1228
|
-
className: t("inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium",
|
|
1221
|
+
children: [/* @__PURE__ */ j("span", {
|
|
1222
|
+
className: t("inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium", B(e.priority)),
|
|
1229
1223
|
children: e.priority.toUpperCase()
|
|
1230
|
-
}), /* @__PURE__ */
|
|
1231
|
-
className: t("inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium",
|
|
1232
|
-
children:
|
|
1224
|
+
}), /* @__PURE__ */ j("span", {
|
|
1225
|
+
className: t("inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium", z(e.status)),
|
|
1226
|
+
children: pe(e.status)
|
|
1233
1227
|
})]
|
|
1234
1228
|
})]
|
|
1235
1229
|
}),
|
|
1236
|
-
/* @__PURE__ */
|
|
1230
|
+
/* @__PURE__ */ j("p", {
|
|
1237
1231
|
className: "text-sm text-text-secondary mt-2 leading-relaxed",
|
|
1238
1232
|
children: e.description
|
|
1239
1233
|
}),
|
|
1240
|
-
|
|
1234
|
+
r && /* @__PURE__ */ M("div", {
|
|
1241
1235
|
className: "mt-3 rounded-lg bg-bg-sunken/50 border border-border-subtle p-3",
|
|
1242
|
-
children: [/* @__PURE__ */
|
|
1236
|
+
children: [/* @__PURE__ */ M("div", {
|
|
1243
1237
|
className: "flex items-center gap-1.5 mb-1",
|
|
1244
1238
|
children: [
|
|
1245
|
-
/* @__PURE__ */
|
|
1246
|
-
/* @__PURE__ */
|
|
1239
|
+
/* @__PURE__ */ j(g, { className: "h-3.5 w-3.5 text-text-secondary" }),
|
|
1240
|
+
/* @__PURE__ */ j("span", {
|
|
1247
1241
|
className: "text-xs font-medium text-text-primary",
|
|
1248
|
-
children:
|
|
1242
|
+
children: r.sender === "support" ? "Support Team" : "You"
|
|
1249
1243
|
}),
|
|
1250
|
-
/* @__PURE__ */
|
|
1244
|
+
/* @__PURE__ */ M("span", {
|
|
1251
1245
|
className: "text-xs text-text-secondary",
|
|
1252
|
-
children: ["· ", r
|
|
1246
|
+
children: ["· ", i(r.timestamp)]
|
|
1253
1247
|
})
|
|
1254
1248
|
]
|
|
1255
|
-
}), /* @__PURE__ */
|
|
1249
|
+
}), /* @__PURE__ */ j("p", {
|
|
1256
1250
|
className: "text-sm text-text-secondary",
|
|
1257
|
-
children:
|
|
1251
|
+
children: r.message
|
|
1258
1252
|
})]
|
|
1259
1253
|
}),
|
|
1260
|
-
e.responses.length === 0 && e.status === "open" && /* @__PURE__ */
|
|
1254
|
+
e.responses.length === 0 && e.status === "open" && /* @__PURE__ */ M("div", {
|
|
1261
1255
|
className: "mt-3 flex items-center gap-2 text-xs text-text-secondary",
|
|
1262
|
-
children: [/* @__PURE__ */
|
|
1256
|
+
children: [/* @__PURE__ */ j(oe, { className: "h-3.5 w-3.5" }), "Awaiting response from support team"]
|
|
1263
1257
|
})
|
|
1264
1258
|
]
|
|
1265
|
-
}), /* @__PURE__ */
|
|
1259
|
+
}), /* @__PURE__ */ M("div", {
|
|
1266
1260
|
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
1261
|
children: [
|
|
1268
|
-
/* @__PURE__ */
|
|
1269
|
-
/* @__PURE__ */
|
|
1270
|
-
/* @__PURE__ */
|
|
1262
|
+
/* @__PURE__ */ M("span", { children: ["Created: ", i(e.createdAt)] }),
|
|
1263
|
+
/* @__PURE__ */ M("span", { children: ["Updated: ", i(e.updatedAt)] }),
|
|
1264
|
+
/* @__PURE__ */ M("span", { children: [
|
|
1271
1265
|
e.responses.length,
|
|
1272
1266
|
" response",
|
|
1273
1267
|
e.responses.length === 1 ? "" : "s"
|
|
@@ -1279,38 +1273,38 @@ function V() {
|
|
|
1279
1273
|
})
|
|
1280
1274
|
]
|
|
1281
1275
|
}),
|
|
1282
|
-
/* @__PURE__ */
|
|
1276
|
+
/* @__PURE__ */ j("section", {
|
|
1283
1277
|
className: "mt-8 rounded-lg border border-border-subtle bg-bg-sunken/30 p-5",
|
|
1284
|
-
children: /* @__PURE__ */
|
|
1278
|
+
children: /* @__PURE__ */ M("div", {
|
|
1285
1279
|
className: "flex flex-col gap-4 sm:flex-row sm:items-start sm:justify-between",
|
|
1286
|
-
children: [/* @__PURE__ */
|
|
1280
|
+
children: [/* @__PURE__ */ M("div", { children: [/* @__PURE__ */ j("h3", {
|
|
1287
1281
|
className: "text-sm font-semibold text-text-primary mb-1",
|
|
1288
1282
|
children: "Still need help?"
|
|
1289
|
-
}), /* @__PURE__ */
|
|
1283
|
+
}), /* @__PURE__ */ j("p", {
|
|
1290
1284
|
className: "text-xs text-text-secondary",
|
|
1291
1285
|
children: "Our support team is available Monday to Saturday. Average response time is under 4 hours."
|
|
1292
|
-
})] }), /* @__PURE__ */
|
|
1286
|
+
})] }), /* @__PURE__ */ M("div", {
|
|
1293
1287
|
className: "flex flex-wrap gap-2",
|
|
1294
1288
|
children: [
|
|
1295
|
-
/* @__PURE__ */
|
|
1289
|
+
/* @__PURE__ */ M("button", {
|
|
1296
1290
|
type: "button",
|
|
1297
|
-
onClick: () => $(
|
|
1291
|
+
onClick: () => $(P[0]),
|
|
1298
1292
|
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
|
-
children: [/* @__PURE__ */
|
|
1293
|
+
children: [/* @__PURE__ */ j(m, { className: "h-3.5 w-3.5" }), "Email Us"]
|
|
1300
1294
|
}),
|
|
1301
|
-
/* @__PURE__ */
|
|
1295
|
+
/* @__PURE__ */ M("button", {
|
|
1302
1296
|
type: "button",
|
|
1303
|
-
onClick: () => $(
|
|
1297
|
+
onClick: () => $(P[1]),
|
|
1304
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",
|
|
1305
|
-
children: [/* @__PURE__ */
|
|
1299
|
+
children: [/* @__PURE__ */ j(_, { className: "h-3.5 w-3.5" }), "Call Us"]
|
|
1306
1300
|
}),
|
|
1307
|
-
/* @__PURE__ */
|
|
1301
|
+
/* @__PURE__ */ M("button", {
|
|
1308
1302
|
type: "button",
|
|
1309
1303
|
onClick: () => {
|
|
1310
1304
|
H(!0), d("contact");
|
|
1311
1305
|
},
|
|
1312
1306
|
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
|
-
children: [/* @__PURE__ */
|
|
1307
|
+
children: [/* @__PURE__ */ j(C, { className: "h-3.5 w-3.5" }), "Submit Ticket"]
|
|
1314
1308
|
})
|
|
1315
1309
|
]
|
|
1316
1310
|
})]
|