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