@burdenoff/microfe-subscriberbot 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/subscriberbot/components/EmptyState.js +17 -10
- package/dist/subscriberbot/components/EmptyState.js.map +1 -1
- package/dist/subscriberbot/components/InvestmentCard.js +23 -22
- package/dist/subscriberbot/components/InvestmentCard.js.map +1 -1
- package/dist/subscriberbot/components/MetricsCard.js +15 -12
- package/dist/subscriberbot/components/MetricsCard.js.map +1 -1
- package/dist/subscriberbot/components/PageLayout.js +27 -15
- package/dist/subscriberbot/components/PageLayout.js.map +1 -1
- package/dist/subscriberbot/components/RatingDisplay.js +3 -3
- package/dist/subscriberbot/components/RatingDisplay.js.map +1 -1
- package/dist/subscriberbot/components/StatusBadge.js +25 -13
- package/dist/subscriberbot/components/StatusBadge.js.map +1 -1
- package/dist/subscriberbot/context/SubscriberBotContext.js.map +1 -1
- package/dist/subscriberbot/pages/HomePage.js +72 -63
- package/dist/subscriberbot/pages/HomePage.js.map +1 -1
- package/dist/subscriberbot/pages/admin/AdminAnalyticsPage.js +106 -100
- package/dist/subscriberbot/pages/admin/AdminAnalyticsPage.js.map +1 -1
- package/dist/subscriberbot/pages/admin/AdminDashboard.js +125 -85
- package/dist/subscriberbot/pages/admin/AdminDashboard.js.map +1 -1
- package/dist/subscriberbot/pages/admin/AdminFinancialPage.js +51 -45
- package/dist/subscriberbot/pages/admin/AdminFinancialPage.js.map +1 -1
- package/dist/subscriberbot/pages/admin/AdminOrdersPage.js +246 -241
- package/dist/subscriberbot/pages/admin/AdminOrdersPage.js.map +1 -1
- package/dist/subscriberbot/pages/admin/AdminProfilePage.js +131 -129
- package/dist/subscriberbot/pages/admin/AdminProfilePage.js.map +1 -1
- package/dist/subscriberbot/pages/admin/AdminSettingsPage.js +247 -242
- package/dist/subscriberbot/pages/admin/AdminSettingsPage.js.map +1 -1
- package/dist/subscriberbot/pages/admin/CartManagementPage.js +307 -302
- package/dist/subscriberbot/pages/admin/CartManagementPage.js.map +1 -1
- package/dist/subscriberbot/pages/admin/UserManagementPage.js +308 -303
- package/dist/subscriberbot/pages/admin/UserManagementPage.js.map +1 -1
- package/dist/subscriberbot/pages/cart-owner/AnalyticsDashboard.js +89 -84
- package/dist/subscriberbot/pages/cart-owner/AnalyticsDashboard.js.map +1 -1
- package/dist/subscriberbot/pages/cart-owner/BusinessSettingsPage.js +269 -264
- package/dist/subscriberbot/pages/cart-owner/BusinessSettingsPage.js.map +1 -1
- package/dist/subscriberbot/pages/cart-owner/CartOwnerDashboard.js +269 -227
- package/dist/subscriberbot/pages/cart-owner/CartOwnerDashboard.js.map +1 -1
- package/dist/subscriberbot/pages/cart-owner/CartOwnerProfilePage.js +191 -186
- package/dist/subscriberbot/pages/cart-owner/CartOwnerProfilePage.js.map +1 -1
- package/dist/subscriberbot/pages/cart-owner/CartServiceConfigPage.js +168 -166
- package/dist/subscriberbot/pages/cart-owner/CartServiceConfigPage.js.map +1 -1
- package/dist/subscriberbot/pages/cart-owner/InventoryManagementPage.js +344 -347
- package/dist/subscriberbot/pages/cart-owner/InventoryManagementPage.js.map +1 -1
- package/dist/subscriberbot/pages/cart-owner/OrderManagementPage.js +270 -272
- package/dist/subscriberbot/pages/cart-owner/OrderManagementPage.js.map +1 -1
- package/dist/subscriberbot/pages/cart-owner/StaffManagementPage.js +294 -289
- package/dist/subscriberbot/pages/cart-owner/StaffManagementPage.js.map +1 -1
- package/dist/subscriberbot/pages/common/HelpSupportPage.js +156 -158
- package/dist/subscriberbot/pages/common/HelpSupportPage.js.map +1 -1
- package/dist/subscriberbot/pages/common/NotificationCenterPage.js +94 -87
- package/dist/subscriberbot/pages/common/NotificationCenterPage.js.map +1 -1
- package/dist/subscriberbot/pages/common/SettingsPage.js +749 -740
- package/dist/subscriberbot/pages/common/SettingsPage.js.map +1 -1
- package/dist/subscriberbot/pages/customer/BookingDetailsPage.js +357 -324
- package/dist/subscriberbot/pages/customer/BookingDetailsPage.js.map +1 -1
- package/dist/subscriberbot/pages/customer/CartDetailPage.js +281 -247
- package/dist/subscriberbot/pages/customer/CartDetailPage.js.map +1 -1
- package/dist/subscriberbot/pages/customer/CartDiscoveryPage.js +106 -98
- package/dist/subscriberbot/pages/customer/CartDiscoveryPage.js.map +1 -1
- package/dist/subscriberbot/pages/customer/CheckoutPage.js +235 -238
- package/dist/subscriberbot/pages/customer/CheckoutPage.js.map +1 -1
- package/dist/subscriberbot/pages/customer/CustomerDashboard.js +426 -390
- package/dist/subscriberbot/pages/customer/CustomerDashboard.js.map +1 -1
- package/dist/subscriberbot/pages/customer/CustomerProfilePage.js +488 -479
- package/dist/subscriberbot/pages/customer/CustomerProfilePage.js.map +1 -1
- package/dist/subscriberbot/pages/customer/DirectServiceBookingPage.js +522 -512
- package/dist/subscriberbot/pages/customer/DirectServiceBookingPage.js.map +1 -1
- package/dist/subscriberbot/pages/customer/FavoritesPage.js +73 -66
- package/dist/subscriberbot/pages/customer/FavoritesPage.js.map +1 -1
- package/dist/subscriberbot/pages/customer/OrderHistoryPage.js +75 -67
- package/dist/subscriberbot/pages/customer/OrderHistoryPage.js.map +1 -1
- package/dist/subscriberbot/pages/customer/OrderTrackingPage.js +82 -76
- package/dist/subscriberbot/pages/customer/OrderTrackingPage.js.map +1 -1
- package/dist/subscriberbot/pages/customer/PaymentMethodsPage.js +100 -93
- package/dist/subscriberbot/pages/customer/PaymentMethodsPage.js.map +1 -1
- package/dist/subscriberbot/pages/customer/ReviewsPage.js +97 -90
- package/dist/subscriberbot/pages/customer/ReviewsPage.js.map +1 -1
- package/dist/subscriberbot/pages/customer/SavedAddressesPage.js +86 -79
- package/dist/subscriberbot/pages/customer/SavedAddressesPage.js.map +1 -1
- package/dist/subscriberbot/pages/investor/InvestmentDetailsPage.js +330 -293
- package/dist/subscriberbot/pages/investor/InvestmentDetailsPage.js.map +1 -1
- package/dist/subscriberbot/pages/investor/InvestmentOpportunitiesPage.js +269 -261
- package/dist/subscriberbot/pages/investor/InvestmentOpportunitiesPage.js.map +1 -1
- package/dist/subscriberbot/pages/investor/InvestorAnalyticsPage.js +97 -91
- package/dist/subscriberbot/pages/investor/InvestorAnalyticsPage.js.map +1 -1
- package/dist/subscriberbot/pages/investor/InvestorDashboard.js +354 -322
- package/dist/subscriberbot/pages/investor/InvestorDashboard.js.map +1 -1
- package/dist/subscriberbot/pages/investor/InvestorInvestmentsPage.js +118 -111
- package/dist/subscriberbot/pages/investor/InvestorInvestmentsPage.js.map +1 -1
- package/dist/subscriberbot/pages/investor/InvestorPortfolioPage.js +75 -69
- package/dist/subscriberbot/pages/investor/InvestorPortfolioPage.js.map +1 -1
- package/dist/subscriberbot/pages/investor/InvestorProfilePage.js +435 -430
- package/dist/subscriberbot/pages/investor/InvestorProfilePage.js.map +1 -1
- package/dist/subscriberbot/pages/worker/TaskDetailsPage.js +328 -289
- package/dist/subscriberbot/pages/worker/TaskDetailsPage.js.map +1 -1
- package/dist/subscriberbot/pages/worker/WorkerDashboard.js +135 -103
- package/dist/subscriberbot/pages/worker/WorkerDashboard.js.map +1 -1
- package/dist/subscriberbot/pages/worker/WorkerOrdersPage.js +120 -114
- package/dist/subscriberbot/pages/worker/WorkerOrdersPage.js.map +1 -1
- package/dist/subscriberbot/pages/worker/WorkerProfilePage.js +125 -120
- package/dist/subscriberbot/pages/worker/WorkerProfilePage.js.map +1 -1
- package/dist/subscriberbot/pages/worker/WorkerSchedulePage.js +354 -344
- package/dist/subscriberbot/pages/worker/WorkerSchedulePage.js.map +1 -1
- package/package.json +3 -3
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { useSubscriberBot as e } from "../../context/SubscriberBotContext.js";
|
|
2
2
|
import { cn as t } from "../../utils/cn.js";
|
|
3
3
|
import { PageLayout as n } from "../../components/PageLayout.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
4
|
+
import { EmptyState as r } from "../../components/EmptyState.js";
|
|
5
|
+
import { formatDate as i } from "../../utils/formatters.js";
|
|
6
|
+
import { useMemo as a, useState as o } from "react";
|
|
7
|
+
import { AlertCircle as ee, AlertTriangle as s, BookOpen as te, CheckCircle2 as c, ChevronDown as ne, ChevronUp as re, Circle as l, CircleDot as u, Clock as d, CreditCard as f, ExternalLink as ie, FileText as p, HelpCircle as m, Info as ae, Lightbulb as oe, Mail as h, MessageCircle as g, MessageSquare as _, Phone as v, PhoneCall as y, Search as se, Send as ce, Shield as b, ShoppingBag as x, Tag as S, ThumbsUp as C, Ticket as w, TrendingUp as T, Truck as E, User as D, Wrench as O, X as k, XCircle as A } from "lucide-react";
|
|
7
8
|
import { Fragment as j, jsx as M, jsxs as N } from "react/jsx-runtime";
|
|
9
|
+
import { EmphasisPanel as le, PagePurpose as ue } from "@burdenoff/fe-libs/ui";
|
|
8
10
|
//#region src/subscriberbot/pages/common/HelpSupportPage.tsx
|
|
9
11
|
var P = [
|
|
10
12
|
"Account & Profile",
|
|
@@ -15,62 +17,62 @@ var P = [
|
|
|
15
17
|
"Technical Issues",
|
|
16
18
|
"Billing & Refunds",
|
|
17
19
|
"Privacy & Security"
|
|
18
|
-
],
|
|
20
|
+
], de = [
|
|
19
21
|
{
|
|
20
22
|
label: "Getting Started",
|
|
21
|
-
icon:
|
|
23
|
+
icon: te,
|
|
22
24
|
description: "New to SubscriberBot? Start here",
|
|
23
|
-
color: "bg-
|
|
25
|
+
color: "bg-status-info-bg/10 text-status-info-text"
|
|
24
26
|
},
|
|
25
27
|
{
|
|
26
28
|
label: "Orders & Delivery",
|
|
27
|
-
icon:
|
|
29
|
+
icon: x,
|
|
28
30
|
description: "Placing, tracking, and cancelling orders",
|
|
29
|
-
color: "bg-
|
|
31
|
+
color: "bg-status-success-bg/10 text-status-success-text"
|
|
30
32
|
},
|
|
31
33
|
{
|
|
32
34
|
label: "Payments & Billing",
|
|
33
|
-
icon:
|
|
35
|
+
icon: f,
|
|
34
36
|
description: "Payment methods, refunds, and invoices",
|
|
35
|
-
color: "bg-purple-
|
|
37
|
+
color: "bg-accent-purple-subtle text-accent-purple"
|
|
36
38
|
},
|
|
37
39
|
{
|
|
38
40
|
label: "Account & Profile",
|
|
39
41
|
icon: D,
|
|
40
42
|
description: "Manage your account and settings",
|
|
41
|
-
color: "bg-
|
|
43
|
+
color: "bg-status-warning-bg/10 text-status-warning-text"
|
|
42
44
|
},
|
|
43
45
|
{
|
|
44
46
|
label: "Cart Owners",
|
|
45
47
|
icon: O,
|
|
46
48
|
description: "Running your cart business",
|
|
47
|
-
color: "bg-teal-
|
|
49
|
+
color: "bg-accent-teal-subtle text-accent-teal"
|
|
48
50
|
},
|
|
49
51
|
{
|
|
50
52
|
label: "Workers & Delivery",
|
|
51
53
|
icon: E,
|
|
52
54
|
description: "Delivery partner information",
|
|
53
|
-
color: "bg-indigo-
|
|
55
|
+
color: "bg-accent-indigo-subtle text-accent-indigo"
|
|
54
56
|
},
|
|
55
57
|
{
|
|
56
58
|
label: "Investments",
|
|
57
59
|
icon: T,
|
|
58
60
|
description: "Investment opportunities and returns",
|
|
59
|
-
color: "bg-
|
|
61
|
+
color: "bg-status-success-bg/10 text-status-success-text"
|
|
60
62
|
},
|
|
61
63
|
{
|
|
62
64
|
label: "Security & Privacy",
|
|
63
|
-
icon:
|
|
65
|
+
icon: b,
|
|
64
66
|
description: "Data protection and safety",
|
|
65
|
-
color: "bg-
|
|
67
|
+
color: "bg-status-error-bg/10 text-status-error-text"
|
|
66
68
|
},
|
|
67
69
|
{
|
|
68
70
|
label: "Technical Issues",
|
|
69
|
-
icon:
|
|
71
|
+
icon: s,
|
|
70
72
|
description: "App issues and troubleshooting",
|
|
71
|
-
color: "bg-
|
|
73
|
+
color: "bg-status-warning-bg/10 text-status-warning-text"
|
|
72
74
|
}
|
|
73
|
-
],
|
|
75
|
+
], F = [
|
|
74
76
|
{
|
|
75
77
|
type: "email",
|
|
76
78
|
label: "Email Support",
|
|
@@ -103,7 +105,7 @@ var P = [
|
|
|
103
105
|
responseTime: "2-4 hours",
|
|
104
106
|
icon: _
|
|
105
107
|
}
|
|
106
|
-
],
|
|
108
|
+
], fe = [
|
|
107
109
|
{
|
|
108
110
|
id: "faq-001",
|
|
109
111
|
category: "Account & Profile",
|
|
@@ -360,7 +362,7 @@ var P = [
|
|
|
360
362
|
"data"
|
|
361
363
|
]
|
|
362
364
|
}
|
|
363
|
-
],
|
|
365
|
+
], I = [
|
|
364
366
|
{
|
|
365
367
|
id: "ticket-001",
|
|
366
368
|
subject: "Payment failed but amount deducted",
|
|
@@ -472,55 +474,55 @@ var P = [
|
|
|
472
474
|
views: 4321
|
|
473
475
|
}
|
|
474
476
|
];
|
|
475
|
-
function
|
|
477
|
+
function R(e) {
|
|
476
478
|
switch (e) {
|
|
477
|
-
case "open": return
|
|
478
|
-
case "in-progress": return
|
|
479
|
+
case "open": return l;
|
|
480
|
+
case "in-progress": return u;
|
|
479
481
|
case "resolved": return c;
|
|
480
482
|
case "closed": return A;
|
|
481
483
|
}
|
|
482
484
|
}
|
|
483
|
-
function
|
|
485
|
+
function z(e) {
|
|
484
486
|
switch (e) {
|
|
485
|
-
case "open": return "bg-
|
|
486
|
-
case "in-progress": return "bg-
|
|
487
|
-
case "resolved": return "bg-
|
|
487
|
+
case "open": return "bg-status-info-bg/10 text-status-info-text";
|
|
488
|
+
case "in-progress": return "bg-status-warning-bg/10 text-status-warning-text";
|
|
489
|
+
case "resolved": return "bg-status-success-bg/10 text-status-success-text";
|
|
488
490
|
case "closed": return "bg-bg-sunken text-text-secondary";
|
|
489
491
|
}
|
|
490
492
|
}
|
|
491
|
-
function
|
|
493
|
+
function B(e) {
|
|
492
494
|
switch (e) {
|
|
493
|
-
case "urgent": return "bg-
|
|
494
|
-
case "high": return "bg-
|
|
495
|
-
case "medium": return "bg-
|
|
495
|
+
case "urgent": return "bg-status-error-bg/10 text-status-error-text";
|
|
496
|
+
case "high": return "bg-status-warning-bg/10 text-status-warning-text";
|
|
497
|
+
case "medium": return "bg-status-info-bg/10 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, b] = o(""), [x, T] = o(null), [E, D] = o(fe), [O, A] = o(I), [V, H] = o(!1), [U, W] = o(!1), [G, K] = o(""), [q, J] = o(""), [Y, X] = o({
|
|
504
506
|
subject: "",
|
|
505
507
|
category: "",
|
|
506
508
|
priority: "medium",
|
|
507
509
|
description: ""
|
|
508
|
-
}), Z =
|
|
509
|
-
let t = !
|
|
510
|
+
}), Z = a(() => E.filter((e) => {
|
|
511
|
+
let t = !f || e.question.toLowerCase().includes(f.toLowerCase()) || e.answer.toLowerCase().includes(f.toLowerCase()) || e.tags.some((e) => e.toLowerCase().includes(f.toLowerCase())), n = !y || e.category === y;
|
|
510
512
|
return t && n;
|
|
511
513
|
}), [
|
|
512
514
|
E,
|
|
513
|
-
|
|
515
|
+
f,
|
|
514
516
|
y
|
|
515
|
-
]), Q =
|
|
517
|
+
]), Q = a(() => ({
|
|
516
518
|
open: O.filter((e) => e.status === "open").length,
|
|
517
519
|
inProgress: O.filter((e) => e.status === "in-progress").length,
|
|
518
520
|
resolved: O.filter((e) => e.status === "resolved").length,
|
|
519
521
|
closed: O.filter((e) => e.status === "closed").length,
|
|
520
522
|
total: O.length
|
|
521
|
-
}), [O]),
|
|
523
|
+
}), [O]), me = (e) => {
|
|
522
524
|
T((t) => t === e ? null : e);
|
|
523
|
-
},
|
|
525
|
+
}, he = (e) => {
|
|
524
526
|
D((t) => t.map((t) => t.id === e ? {
|
|
525
527
|
...t,
|
|
526
528
|
helpful: t.helpful + 1
|
|
@@ -540,7 +542,7 @@ function V() {
|
|
|
540
542
|
alert("Live chat will be available soon!");
|
|
541
543
|
break;
|
|
542
544
|
}
|
|
543
|
-
},
|
|
545
|
+
}, ge = () => {
|
|
544
546
|
if (J(""), K(""), !Y.subject.trim()) {
|
|
545
547
|
J("Please enter a subject for your ticket.");
|
|
546
548
|
return;
|
|
@@ -570,13 +572,13 @@ function V() {
|
|
|
570
572
|
category: "",
|
|
571
573
|
priority: "medium",
|
|
572
574
|
description: ""
|
|
573
|
-
}), W(!1), H(!1), K("Support ticket created successfully! Our team will respond within 24 hours."),
|
|
575
|
+
}), W(!1), H(!1), K("Support ticket created successfully! Our team will respond within 24 hours."), u("tickets"), setTimeout(() => K(""), 5e3);
|
|
574
576
|
}, 1e3);
|
|
575
|
-
},
|
|
577
|
+
}, _e = [
|
|
576
578
|
{
|
|
577
579
|
id: "faq",
|
|
578
580
|
label: "FAQ",
|
|
579
|
-
icon:
|
|
581
|
+
icon: m
|
|
580
582
|
},
|
|
581
583
|
{
|
|
582
584
|
id: "contact",
|
|
@@ -593,8 +595,13 @@ function V() {
|
|
|
593
595
|
title: "Help & Support",
|
|
594
596
|
description: "Find answers, contact support, or track your requests",
|
|
595
597
|
children: [
|
|
598
|
+
/* @__PURE__ */ M(ue, {
|
|
599
|
+
icon: /* @__PURE__ */ M(m, { className: "h-4 w-4" }),
|
|
600
|
+
className: "mb-6",
|
|
601
|
+
children: "Stuck on something? Start here. Search the FAQ and help articles for a quick answer, raise a support ticket if you need a hand, and track the status of requests you've already sent. Most questions are answered in seconds without ever needing to wait on a reply."
|
|
602
|
+
}),
|
|
596
603
|
G && /* @__PURE__ */ N("div", {
|
|
597
|
-
className: "mb-4 flex items-center gap-2 rounded-lg border border-
|
|
604
|
+
className: "mb-4 flex items-center gap-2 rounded-lg border border-status-success-border/30 bg-status-success-bg/10 px-4 py-3 text-sm text-status-success-text",
|
|
598
605
|
children: [
|
|
599
606
|
/* @__PURE__ */ M(c, { className: "h-4 w-4 shrink-0" }),
|
|
600
607
|
G,
|
|
@@ -606,22 +613,22 @@ function V() {
|
|
|
606
613
|
})
|
|
607
614
|
]
|
|
608
615
|
}),
|
|
609
|
-
/* @__PURE__ */ M(
|
|
616
|
+
/* @__PURE__ */ M(le, {
|
|
610
617
|
className: "mb-6",
|
|
611
618
|
children: /* @__PURE__ */ N("div", {
|
|
612
619
|
className: "relative",
|
|
613
620
|
children: [
|
|
614
|
-
/* @__PURE__ */ M(
|
|
621
|
+
/* @__PURE__ */ M(se, { className: "absolute left-3 top-1/2 h-5 w-5 -translate-y-1/2 text-text-secondary" }),
|
|
615
622
|
/* @__PURE__ */ M("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__ */ M("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",
|
|
@@ -637,14 +644,14 @@ function V() {
|
|
|
637
644
|
children: "Browse Help Topics"
|
|
638
645
|
}), /* @__PURE__ */ M("div", {
|
|
639
646
|
className: "grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3",
|
|
640
|
-
children:
|
|
647
|
+
children: de.map((e) => {
|
|
641
648
|
let n = e.icon;
|
|
642
649
|
return /* @__PURE__ */ N("button", {
|
|
643
650
|
type: "button",
|
|
644
651
|
onClick: () => {
|
|
645
|
-
|
|
652
|
+
b(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-
|
|
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"),
|
|
648
655
|
children: [/* @__PURE__ */ M("div", {
|
|
649
656
|
className: t("flex h-10 w-10 shrink-0 items-center justify-center rounded-lg", e.color),
|
|
650
657
|
children: /* @__PURE__ */ M(n, { className: "h-5 w-5" })
|
|
@@ -663,12 +670,12 @@ function V() {
|
|
|
663
670
|
className: "mb-6",
|
|
664
671
|
children: /* @__PURE__ */ M("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
675
|
return /* @__PURE__ */ N("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
680
|
/* @__PURE__ */ M(n, { className: "h-4 w-4" }),
|
|
674
681
|
/* @__PURE__ */ M("span", { children: e.label }),
|
|
@@ -681,7 +688,7 @@ function V() {
|
|
|
681
688
|
})
|
|
682
689
|
})
|
|
683
690
|
}),
|
|
684
|
-
|
|
691
|
+
l === "faq" && /* @__PURE__ */ N("div", { children: [/* @__PURE__ */ N("div", {
|
|
685
692
|
className: "mb-4 flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",
|
|
686
693
|
children: [/* @__PURE__ */ N("p", {
|
|
687
694
|
className: "text-sm text-text-secondary",
|
|
@@ -699,7 +706,7 @@ function V() {
|
|
|
699
706
|
}),
|
|
700
707
|
/* @__PURE__ */ M("button", {
|
|
701
708
|
type: "button",
|
|
702
|
-
onClick: () =>
|
|
709
|
+
onClick: () => b(""),
|
|
703
710
|
className: "ml-1 text-primary hover:underline",
|
|
704
711
|
children: "(clear)"
|
|
705
712
|
})
|
|
@@ -707,8 +714,8 @@ function V() {
|
|
|
707
714
|
]
|
|
708
715
|
}), /* @__PURE__ */ N("select", {
|
|
709
716
|
value: y,
|
|
710
|
-
onChange: (e) =>
|
|
711
|
-
className: "rounded-lg border border-border-
|
|
717
|
+
onChange: (e) => b(e.target.value),
|
|
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)]",
|
|
712
719
|
children: [/* @__PURE__ */ M("option", {
|
|
713
720
|
value: "",
|
|
714
721
|
children: "All Categories"
|
|
@@ -720,12 +727,12 @@ function V() {
|
|
|
720
727
|
}), Z.length > 0 ? /* @__PURE__ */ M("div", {
|
|
721
728
|
className: "space-y-3",
|
|
722
729
|
children: Z.map((e) => {
|
|
723
|
-
let n =
|
|
730
|
+
let n = x === e.id;
|
|
724
731
|
return /* @__PURE__ */ N("div", {
|
|
725
|
-
className: "rounded-lg border border-border-
|
|
732
|
+
className: "rounded-lg border border-border-seam bg-bg-surface overflow-hidden",
|
|
726
733
|
children: [/* @__PURE__ */ N("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
737
|
children: [/* @__PURE__ */ N("div", {
|
|
731
738
|
className: "flex-1 min-w-0",
|
|
@@ -742,9 +749,9 @@ function V() {
|
|
|
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
|
-
}), M(n ?
|
|
752
|
+
}), M(n ? re : ne, { className: "h-4 w-4 text-text-secondary shrink-0 mt-1" })]
|
|
746
753
|
}), n && /* @__PURE__ */ N("div", {
|
|
747
|
-
className: "border-t border-border-
|
|
754
|
+
className: "border-t border-border-seam px-4 pb-4 pt-3",
|
|
748
755
|
children: [/* @__PURE__ */ M("p", {
|
|
749
756
|
className: "text-sm text-text-secondary leading-relaxed mb-3",
|
|
750
757
|
children: e.answer
|
|
@@ -754,14 +761,14 @@ function V() {
|
|
|
754
761
|
className: "flex flex-wrap gap-1.5",
|
|
755
762
|
children: e.tags.map((e) => /* @__PURE__ */ N("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__ */ M(
|
|
764
|
+
children: [/* @__PURE__ */ M(S, { className: "h-2.5 w-2.5" }), e]
|
|
758
765
|
}, e))
|
|
759
766
|
}), /* @__PURE__ */ N("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
773
|
/* @__PURE__ */ M(C, { className: "h-3.5 w-3.5" }),
|
|
767
774
|
"Helpful (",
|
|
@@ -773,29 +780,20 @@ function V() {
|
|
|
773
780
|
})]
|
|
774
781
|
}, e.id);
|
|
775
782
|
})
|
|
776
|
-
}) : /* @__PURE__ */
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
/* @__PURE__ */ M("button", {
|
|
789
|
-
type: "button",
|
|
790
|
-
onClick: () => {
|
|
791
|
-
g(""), x("");
|
|
792
|
-
},
|
|
793
|
-
className: "text-sm font-medium text-primary hover:underline",
|
|
794
|
-
children: "Clear all filters"
|
|
795
|
-
})
|
|
796
|
-
]
|
|
783
|
+
}) : /* @__PURE__ */ M(r, {
|
|
784
|
+
illustration: "empty-search",
|
|
785
|
+
title: "No FAQs found",
|
|
786
|
+
description: "Try adjusting your search or browse different categories.",
|
|
787
|
+
action: /* @__PURE__ */ M("button", {
|
|
788
|
+
type: "button",
|
|
789
|
+
onClick: () => {
|
|
790
|
+
g(""), b("");
|
|
791
|
+
},
|
|
792
|
+
className: "text-sm font-medium text-primary hover:underline",
|
|
793
|
+
children: "Clear all filters"
|
|
794
|
+
})
|
|
797
795
|
})] }),
|
|
798
|
-
|
|
796
|
+
l === "contact" && /* @__PURE__ */ N("div", {
|
|
799
797
|
className: "space-y-6",
|
|
800
798
|
children: [
|
|
801
799
|
/* @__PURE__ */ N("div", { children: [/* @__PURE__ */ M("h2", {
|
|
@@ -803,10 +801,10 @@ function V() {
|
|
|
803
801
|
children: "Get in Touch"
|
|
804
802
|
}), /* @__PURE__ */ M("div", {
|
|
805
803
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
|
|
806
|
-
children:
|
|
804
|
+
children: F.map((e) => {
|
|
807
805
|
let n = e.icon;
|
|
808
806
|
return /* @__PURE__ */ M("div", {
|
|
809
|
-
className: "rounded-lg border border-border-
|
|
807
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-5",
|
|
810
808
|
children: /* @__PURE__ */ N("div", {
|
|
811
809
|
className: "flex items-start gap-4",
|
|
812
810
|
children: [/* @__PURE__ */ M("div", {
|
|
@@ -825,14 +823,14 @@ function V() {
|
|
|
825
823
|
}),
|
|
826
824
|
/* @__PURE__ */ N("div", {
|
|
827
825
|
className: "flex items-center gap-1 mt-1 text-xs text-text-secondary",
|
|
828
|
-
children: [/* @__PURE__ */ M(
|
|
826
|
+
children: [/* @__PURE__ */ M(d, { className: "h-3 w-3" }), e.responseTime]
|
|
829
827
|
}),
|
|
830
828
|
/* @__PURE__ */ N("button", {
|
|
831
829
|
type: "button",
|
|
832
830
|
onClick: () => $(e),
|
|
833
831
|
disabled: !e.available,
|
|
834
832
|
className: t("mt-3 flex items-center gap-1.5 rounded-lg px-4 py-2 text-sm font-medium transition-colors", e.available ? "bg-action-primary-bg text-action-primary-text hover:bg-action-primary-bg/90" : "bg-bg-sunken text-text-secondary cursor-not-allowed"),
|
|
835
|
-
children: [e.type === "chat" ? "Start Chat" : e.type === "email" ? "Send Email" : "Contact", /* @__PURE__ */ M(
|
|
833
|
+
children: [e.type === "chat" ? "Start Chat" : e.type === "email" ? "Send Email" : "Contact", /* @__PURE__ */ M(ie, { className: "h-3.5 w-3.5" })]
|
|
836
834
|
})
|
|
837
835
|
]
|
|
838
836
|
})]
|
|
@@ -841,9 +839,9 @@ function V() {
|
|
|
841
839
|
})
|
|
842
840
|
})] }),
|
|
843
841
|
/* @__PURE__ */ N("div", {
|
|
844
|
-
className: "rounded-lg border border-border-
|
|
842
|
+
className: "rounded-lg border border-border-seam bg-bg-surface",
|
|
845
843
|
children: [/* @__PURE__ */ N("div", {
|
|
846
|
-
className: "flex items-center justify-between border-b border-border-
|
|
844
|
+
className: "flex items-center justify-between border-b border-border-seam px-5 py-4",
|
|
847
845
|
children: [/* @__PURE__ */ N("div", { children: [/* @__PURE__ */ M("h2", {
|
|
848
846
|
className: "text-base font-semibold text-text-primary",
|
|
849
847
|
children: "Submit a Support Ticket"
|
|
@@ -860,13 +858,13 @@ function V() {
|
|
|
860
858
|
className: "p-5 space-y-4",
|
|
861
859
|
children: [
|
|
862
860
|
q && /* @__PURE__ */ N("div", {
|
|
863
|
-
className: "flex items-center gap-2 rounded-lg border border-
|
|
861
|
+
className: "flex items-center gap-2 rounded-lg border border-status-error-border/30 bg-status-error-bg/10 px-3 py-2 text-sm text-status-error-text",
|
|
864
862
|
children: [/* @__PURE__ */ M(ee, { className: "h-4 w-4 shrink-0" }), q]
|
|
865
863
|
}),
|
|
866
864
|
/* @__PURE__ */ N("div", { children: [/* @__PURE__ */ N("label", {
|
|
867
865
|
className: "block text-sm font-medium text-text-primary mb-1.5",
|
|
868
866
|
children: ["Subject ", /* @__PURE__ */ M("span", {
|
|
869
|
-
className: "text-
|
|
867
|
+
className: "text-status-error-text",
|
|
870
868
|
children: "*"
|
|
871
869
|
})]
|
|
872
870
|
}), /* @__PURE__ */ M("input", {
|
|
@@ -877,14 +875,14 @@ function V() {
|
|
|
877
875
|
subject: e.target.value
|
|
878
876
|
})),
|
|
879
877
|
placeholder: "Brief description of your issue",
|
|
880
|
-
className: "w-full rounded-lg border border-border-
|
|
878
|
+
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
879
|
})] }),
|
|
882
880
|
/* @__PURE__ */ N("div", {
|
|
883
881
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
|
|
884
882
|
children: [/* @__PURE__ */ N("div", { children: [/* @__PURE__ */ N("label", {
|
|
885
883
|
className: "block text-sm font-medium text-text-primary mb-1.5",
|
|
886
884
|
children: ["Category ", /* @__PURE__ */ M("span", {
|
|
887
|
-
className: "text-
|
|
885
|
+
className: "text-status-error-text",
|
|
888
886
|
children: "*"
|
|
889
887
|
})]
|
|
890
888
|
}), /* @__PURE__ */ N("select", {
|
|
@@ -893,7 +891,7 @@ function V() {
|
|
|
893
891
|
...t,
|
|
894
892
|
category: e.target.value
|
|
895
893
|
})),
|
|
896
|
-
className: "w-full rounded-lg border border-border-
|
|
894
|
+
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)]",
|
|
897
895
|
children: [/* @__PURE__ */ M("option", {
|
|
898
896
|
value: "",
|
|
899
897
|
children: "Select category"
|
|
@@ -910,7 +908,7 @@ function V() {
|
|
|
910
908
|
...t,
|
|
911
909
|
priority: e.target.value
|
|
912
910
|
})),
|
|
913
|
-
className: "w-full rounded-lg border border-border-
|
|
911
|
+
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
912
|
children: [
|
|
915
913
|
/* @__PURE__ */ M("option", {
|
|
916
914
|
value: "low",
|
|
@@ -934,7 +932,7 @@ function V() {
|
|
|
934
932
|
/* @__PURE__ */ N("div", { children: [/* @__PURE__ */ N("label", {
|
|
935
933
|
className: "block text-sm font-medium text-text-primary mb-1.5",
|
|
936
934
|
children: ["Description ", /* @__PURE__ */ M("span", {
|
|
937
|
-
className: "text-
|
|
935
|
+
className: "text-status-error-text",
|
|
938
936
|
children: "*"
|
|
939
937
|
})]
|
|
940
938
|
}), /* @__PURE__ */ M("textarea", {
|
|
@@ -945,18 +943,18 @@ function V() {
|
|
|
945
943
|
description: e.target.value
|
|
946
944
|
})),
|
|
947
945
|
placeholder: "Please describe your issue in detail...",
|
|
948
|
-
className: "w-full rounded-lg border border-border-
|
|
946
|
+
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
947
|
})] }),
|
|
950
948
|
/* @__PURE__ */ N("div", {
|
|
951
|
-
className: "rounded-lg bg-
|
|
949
|
+
className: "rounded-lg bg-status-info-bg/5 border border-status-info-border/20 p-4",
|
|
952
950
|
children: [/* @__PURE__ */ N("div", {
|
|
953
951
|
className: "flex items-center gap-2 mb-2",
|
|
954
|
-
children: [/* @__PURE__ */ M(
|
|
955
|
-
className: "text-sm font-medium text-
|
|
952
|
+
children: [/* @__PURE__ */ M(oe, { className: "h-4 w-4 text-status-info-text" }), /* @__PURE__ */ M("h4", {
|
|
953
|
+
className: "text-sm font-medium text-status-info-text",
|
|
956
954
|
children: "Tips for faster resolution"
|
|
957
955
|
})]
|
|
958
956
|
}), /* @__PURE__ */ N("ul", {
|
|
959
|
-
className: "text-xs text-
|
|
957
|
+
className: "text-xs text-status-info-text space-y-1 ml-6 list-disc",
|
|
960
958
|
children: [
|
|
961
959
|
/* @__PURE__ */ M("li", { children: "Be specific about the issue and include steps to reproduce it" }),
|
|
962
960
|
/* @__PURE__ */ M("li", { children: "Include relevant order IDs, transaction IDs, or error messages" }),
|
|
@@ -969,16 +967,16 @@ function V() {
|
|
|
969
967
|
className: "flex items-center gap-3 pt-1",
|
|
970
968
|
children: [/* @__PURE__ */ M("button", {
|
|
971
969
|
type: "button",
|
|
972
|
-
onClick:
|
|
970
|
+
onClick: ge,
|
|
973
971
|
disabled: U,
|
|
974
972
|
className: t("flex items-center gap-2 rounded-lg px-5 py-2.5 text-sm font-medium text-action-primary-text transition-colors", U ? "bg-action-primary-bg/70 cursor-not-allowed" : "bg-action-primary-bg hover:bg-action-primary-bg/90"),
|
|
975
|
-
children: U ? /* @__PURE__ */ N(j, { children: [/* @__PURE__ */ M("span", { className: "h-4 w-4 animate-spin rounded-full border-2 border-primary-foreground/30 border-t-primary-foreground" }), "Submitting..."] }) : /* @__PURE__ */ N(j, { children: [/* @__PURE__ */ M(
|
|
973
|
+
children: U ? /* @__PURE__ */ N(j, { children: [/* @__PURE__ */ M("span", { className: "h-4 w-4 animate-spin rounded-full border-2 border-primary-foreground/30 border-t-primary-foreground" }), "Submitting..."] }) : /* @__PURE__ */ N(j, { children: [/* @__PURE__ */ M(ce, { className: "h-4 w-4" }), "Submit Ticket"] })
|
|
976
974
|
}), /* @__PURE__ */ M("button", {
|
|
977
975
|
type: "button",
|
|
978
976
|
onClick: () => {
|
|
979
977
|
H(!1), J("");
|
|
980
978
|
},
|
|
981
|
-
className: "rounded-lg border border-border-
|
|
979
|
+
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
980
|
children: "Cancel"
|
|
983
981
|
})]
|
|
984
982
|
})
|
|
@@ -988,10 +986,10 @@ function V() {
|
|
|
988
986
|
/* @__PURE__ */ N("div", {
|
|
989
987
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
|
|
990
988
|
children: [/* @__PURE__ */ N("div", {
|
|
991
|
-
className: "rounded-lg border border-border-
|
|
989
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-5",
|
|
992
990
|
children: [/* @__PURE__ */ N("div", {
|
|
993
991
|
className: "flex items-center gap-2 mb-3",
|
|
994
|
-
children: [/* @__PURE__ */ M(
|
|
992
|
+
children: [/* @__PURE__ */ M(d, { className: "h-5 w-5 text-text-secondary" }), /* @__PURE__ */ M("h3", {
|
|
995
993
|
className: "text-sm font-semibold text-text-primary",
|
|
996
994
|
children: "Support Hours"
|
|
997
995
|
})]
|
|
@@ -1029,7 +1027,7 @@ function V() {
|
|
|
1029
1027
|
})]
|
|
1030
1028
|
}),
|
|
1031
1029
|
/* @__PURE__ */ N("div", {
|
|
1032
|
-
className: "flex justify-between pt-2 border-t border-border-
|
|
1030
|
+
className: "flex justify-between pt-2 border-t border-border-seam",
|
|
1033
1031
|
children: [/* @__PURE__ */ M("span", {
|
|
1034
1032
|
className: "text-text-secondary",
|
|
1035
1033
|
children: "Email Support"
|
|
@@ -1041,17 +1039,17 @@ function V() {
|
|
|
1041
1039
|
]
|
|
1042
1040
|
})]
|
|
1043
1041
|
}), /* @__PURE__ */ N("div", {
|
|
1044
|
-
className: "rounded-lg border border-
|
|
1042
|
+
className: "rounded-lg border border-status-error-border/20 bg-status-error-bg/5 p-5",
|
|
1045
1043
|
children: [
|
|
1046
1044
|
/* @__PURE__ */ N("div", {
|
|
1047
1045
|
className: "flex items-center gap-2 mb-3",
|
|
1048
|
-
children: [/* @__PURE__ */ M(
|
|
1049
|
-
className: "text-sm font-semibold text-
|
|
1046
|
+
children: [/* @__PURE__ */ M(s, { className: "h-5 w-5 text-status-error-text" }), /* @__PURE__ */ M("h3", {
|
|
1047
|
+
className: "text-sm font-semibold text-status-error-text",
|
|
1050
1048
|
children: "Emergency Contact"
|
|
1051
1049
|
})]
|
|
1052
1050
|
}),
|
|
1053
1051
|
/* @__PURE__ */ M("p", {
|
|
1054
|
-
className: "text-sm text-
|
|
1052
|
+
className: "text-sm text-status-error-text mb-3",
|
|
1055
1053
|
children: "For urgent issues like safety concerns, fraud, or account compromise:"
|
|
1056
1054
|
}),
|
|
1057
1055
|
/* @__PURE__ */ N("div", {
|
|
@@ -1059,20 +1057,20 @@ function V() {
|
|
|
1059
1057
|
children: [/* @__PURE__ */ N("div", {
|
|
1060
1058
|
className: "flex items-center gap-2 text-sm",
|
|
1061
1059
|
children: [
|
|
1062
|
-
/* @__PURE__ */ M(v, { className: "h-4 w-4 text-
|
|
1060
|
+
/* @__PURE__ */ M(v, { className: "h-4 w-4 text-status-error-text" }),
|
|
1063
1061
|
/* @__PURE__ */ M("span", {
|
|
1064
|
-
className: "font-medium text-
|
|
1062
|
+
className: "font-medium text-status-error-text",
|
|
1065
1063
|
children: "+91 80-4012-9999"
|
|
1066
1064
|
}),
|
|
1067
1065
|
/* @__PURE__ */ M("span", {
|
|
1068
|
-
className: "text-xs text-
|
|
1066
|
+
className: "text-xs text-status-error-text",
|
|
1069
1067
|
children: "(24/7)"
|
|
1070
1068
|
})
|
|
1071
1069
|
]
|
|
1072
1070
|
}), /* @__PURE__ */ N("div", {
|
|
1073
1071
|
className: "flex items-center gap-2 text-sm",
|
|
1074
|
-
children: [/* @__PURE__ */ M(h, { className: "h-4 w-4 text-
|
|
1075
|
-
className: "font-medium text-
|
|
1072
|
+
children: [/* @__PURE__ */ M(h, { className: "h-4 w-4 text-status-error-text" }), /* @__PURE__ */ M("span", {
|
|
1073
|
+
className: "font-medium text-status-error-text",
|
|
1076
1074
|
children: "emergency@subscriberbot.com"
|
|
1077
1075
|
})]
|
|
1078
1076
|
})]
|
|
@@ -1087,8 +1085,8 @@ function V() {
|
|
|
1087
1085
|
className: "grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3",
|
|
1088
1086
|
children: L.map((e) => /* @__PURE__ */ N("button", {
|
|
1089
1087
|
type: "button",
|
|
1090
|
-
className: "flex items-start gap-3 rounded-lg border border-border-
|
|
1091
|
-
children: [/* @__PURE__ */ M(
|
|
1088
|
+
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",
|
|
1089
|
+
children: [/* @__PURE__ */ M(p, { className: "h-5 w-5 text-text-secondary shrink-0 mt-0.5" }), /* @__PURE__ */ N("div", {
|
|
1092
1090
|
className: "min-w-0",
|
|
1093
1091
|
children: [/* @__PURE__ */ M("p", {
|
|
1094
1092
|
className: "text-sm font-medium text-text-primary truncate",
|
|
@@ -1108,14 +1106,14 @@ function V() {
|
|
|
1108
1106
|
})] })
|
|
1109
1107
|
]
|
|
1110
1108
|
}),
|
|
1111
|
-
|
|
1109
|
+
l === "tickets" && /* @__PURE__ */ N("div", {
|
|
1112
1110
|
className: "space-y-4",
|
|
1113
1111
|
children: [
|
|
1114
1112
|
/* @__PURE__ */ N("div", {
|
|
1115
1113
|
className: "grid grid-cols-2 gap-3 sm:grid-cols-4",
|
|
1116
1114
|
children: [
|
|
1117
1115
|
/* @__PURE__ */ N("div", {
|
|
1118
|
-
className: "rounded-lg border border-border-
|
|
1116
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-3 text-center",
|
|
1119
1117
|
children: [/* @__PURE__ */ M("p", {
|
|
1120
1118
|
className: "text-2xl font-bold text-text-primary",
|
|
1121
1119
|
children: Q.total
|
|
@@ -1125,9 +1123,9 @@ function V() {
|
|
|
1125
1123
|
})]
|
|
1126
1124
|
}),
|
|
1127
1125
|
/* @__PURE__ */ N("div", {
|
|
1128
|
-
className: "rounded-lg border border-border-
|
|
1126
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-3 text-center",
|
|
1129
1127
|
children: [/* @__PURE__ */ M("p", {
|
|
1130
|
-
className: "text-2xl font-bold text-
|
|
1128
|
+
className: "text-2xl font-bold text-status-info-text",
|
|
1131
1129
|
children: Q.open
|
|
1132
1130
|
}), /* @__PURE__ */ M("p", {
|
|
1133
1131
|
className: "text-xs text-text-secondary",
|
|
@@ -1135,9 +1133,9 @@ function V() {
|
|
|
1135
1133
|
})]
|
|
1136
1134
|
}),
|
|
1137
1135
|
/* @__PURE__ */ N("div", {
|
|
1138
|
-
className: "rounded-lg border border-border-
|
|
1136
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-3 text-center",
|
|
1139
1137
|
children: [/* @__PURE__ */ M("p", {
|
|
1140
|
-
className: "text-2xl font-bold text-
|
|
1138
|
+
className: "text-2xl font-bold text-status-warning-text",
|
|
1141
1139
|
children: Q.inProgress
|
|
1142
1140
|
}), /* @__PURE__ */ M("p", {
|
|
1143
1141
|
className: "text-xs text-text-secondary",
|
|
@@ -1145,9 +1143,9 @@ function V() {
|
|
|
1145
1143
|
})]
|
|
1146
1144
|
}),
|
|
1147
1145
|
/* @__PURE__ */ N("div", {
|
|
1148
|
-
className: "rounded-lg border border-border-
|
|
1146
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-3 text-center",
|
|
1149
1147
|
children: [/* @__PURE__ */ M("p", {
|
|
1150
|
-
className: "text-2xl font-bold text-
|
|
1148
|
+
className: "text-2xl font-bold text-status-success-text",
|
|
1151
1149
|
children: Q.resolved
|
|
1152
1150
|
}), /* @__PURE__ */ M("p", {
|
|
1153
1151
|
className: "text-xs text-text-secondary",
|
|
@@ -1168,14 +1166,14 @@ function V() {
|
|
|
1168
1166
|
}), /* @__PURE__ */ N("button", {
|
|
1169
1167
|
type: "button",
|
|
1170
1168
|
onClick: () => {
|
|
1171
|
-
H(!0),
|
|
1169
|
+
H(!0), u("contact");
|
|
1172
1170
|
},
|
|
1173
1171
|
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
1172
|
children: [/* @__PURE__ */ M(w, { className: "h-4 w-4" }), "New Ticket"]
|
|
1175
1173
|
})]
|
|
1176
1174
|
}),
|
|
1177
1175
|
O.length === 0 ? /* @__PURE__ */ N("div", {
|
|
1178
|
-
className: "flex flex-col items-center justify-center rounded-lg border border-border-
|
|
1176
|
+
className: "flex flex-col items-center justify-center rounded-lg border border-border-seam bg-bg-surface py-12",
|
|
1179
1177
|
children: [
|
|
1180
1178
|
/* @__PURE__ */ M(w, { className: "h-12 w-12 text-text-secondary/50 mb-3" }),
|
|
1181
1179
|
/* @__PURE__ */ M("h3", {
|
|
@@ -1189,7 +1187,7 @@ function V() {
|
|
|
1189
1187
|
/* @__PURE__ */ M("button", {
|
|
1190
1188
|
type: "button",
|
|
1191
1189
|
onClick: () => {
|
|
1192
|
-
H(!0),
|
|
1190
|
+
H(!0), u("contact");
|
|
1193
1191
|
},
|
|
1194
1192
|
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
1193
|
children: "Create Your First Ticket"
|
|
@@ -1198,9 +1196,9 @@ function V() {
|
|
|
1198
1196
|
}) : /* @__PURE__ */ M("div", {
|
|
1199
1197
|
className: "space-y-4",
|
|
1200
1198
|
children: O.map((e) => {
|
|
1201
|
-
let n =
|
|
1199
|
+
let n = R(e.status), r = e.responses.length > 0 ? e.responses[e.responses.length - 1] : null;
|
|
1202
1200
|
return /* @__PURE__ */ N("div", {
|
|
1203
|
-
className: "rounded-lg border border-border-
|
|
1201
|
+
className: "rounded-lg border border-border-seam bg-bg-surface overflow-hidden",
|
|
1204
1202
|
children: [/* @__PURE__ */ N("div", {
|
|
1205
1203
|
className: "p-4 sm:p-5",
|
|
1206
1204
|
children: [
|
|
@@ -1210,7 +1208,7 @@ function V() {
|
|
|
1210
1208
|
className: "flex-1 min-w-0",
|
|
1211
1209
|
children: [/* @__PURE__ */ N("div", {
|
|
1212
1210
|
className: "flex items-center gap-2 mb-1",
|
|
1213
|
-
children: [/* @__PURE__ */ M(n, { className: t("h-4 w-4",
|
|
1211
|
+
children: [/* @__PURE__ */ M(n, { className: t("h-4 w-4", z(e.status).split(" ").slice(1).join(" ")) }), /* @__PURE__ */ M("h3", {
|
|
1214
1212
|
className: "text-sm font-semibold text-text-primary truncate",
|
|
1215
1213
|
children: e.subject
|
|
1216
1214
|
})]
|
|
@@ -1225,11 +1223,11 @@ function V() {
|
|
|
1225
1223
|
}), /* @__PURE__ */ N("div", {
|
|
1226
1224
|
className: "flex flex-wrap gap-2",
|
|
1227
1225
|
children: [/* @__PURE__ */ M("span", {
|
|
1228
|
-
className: t("inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium",
|
|
1226
|
+
className: t("inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium", B(e.priority)),
|
|
1229
1227
|
children: e.priority.toUpperCase()
|
|
1230
1228
|
}), /* @__PURE__ */ M("span", {
|
|
1231
|
-
className: t("inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium",
|
|
1232
|
-
children:
|
|
1229
|
+
className: t("inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium", z(e.status)),
|
|
1230
|
+
children: pe(e.status)
|
|
1233
1231
|
})]
|
|
1234
1232
|
})]
|
|
1235
1233
|
}),
|
|
@@ -1237,36 +1235,36 @@ function V() {
|
|
|
1237
1235
|
className: "text-sm text-text-secondary mt-2 leading-relaxed",
|
|
1238
1236
|
children: e.description
|
|
1239
1237
|
}),
|
|
1240
|
-
|
|
1241
|
-
className: "mt-3 rounded-lg bg-bg-sunken/50 border border-border-
|
|
1238
|
+
r && /* @__PURE__ */ N("div", {
|
|
1239
|
+
className: "mt-3 rounded-lg bg-bg-sunken/50 border border-border-seam p-3",
|
|
1242
1240
|
children: [/* @__PURE__ */ N("div", {
|
|
1243
1241
|
className: "flex items-center gap-1.5 mb-1",
|
|
1244
1242
|
children: [
|
|
1245
1243
|
/* @__PURE__ */ M(_, { className: "h-3.5 w-3.5 text-text-secondary" }),
|
|
1246
1244
|
/* @__PURE__ */ M("span", {
|
|
1247
1245
|
className: "text-xs font-medium text-text-primary",
|
|
1248
|
-
children:
|
|
1246
|
+
children: r.sender === "support" ? "Support Team" : "You"
|
|
1249
1247
|
}),
|
|
1250
1248
|
/* @__PURE__ */ N("span", {
|
|
1251
1249
|
className: "text-xs text-text-secondary",
|
|
1252
|
-
children: ["· ", r
|
|
1250
|
+
children: ["· ", i(r.timestamp)]
|
|
1253
1251
|
})
|
|
1254
1252
|
]
|
|
1255
1253
|
}), /* @__PURE__ */ M("p", {
|
|
1256
1254
|
className: "text-sm text-text-secondary",
|
|
1257
|
-
children:
|
|
1255
|
+
children: r.message
|
|
1258
1256
|
})]
|
|
1259
1257
|
}),
|
|
1260
1258
|
e.responses.length === 0 && e.status === "open" && /* @__PURE__ */ N("div", {
|
|
1261
1259
|
className: "mt-3 flex items-center gap-2 text-xs text-text-secondary",
|
|
1262
|
-
children: [/* @__PURE__ */ M(
|
|
1260
|
+
children: [/* @__PURE__ */ M(ae, { className: "h-3.5 w-3.5" }), "Awaiting response from support team"]
|
|
1263
1261
|
})
|
|
1264
1262
|
]
|
|
1265
1263
|
}), /* @__PURE__ */ N("div", {
|
|
1266
|
-
className: "flex flex-col gap-1 border-t border-border-
|
|
1264
|
+
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
1265
|
children: [
|
|
1268
|
-
/* @__PURE__ */ N("span", { children: ["Created: ",
|
|
1269
|
-
/* @__PURE__ */ N("span", { children: ["Updated: ",
|
|
1266
|
+
/* @__PURE__ */ N("span", { children: ["Created: ", i(e.createdAt)] }),
|
|
1267
|
+
/* @__PURE__ */ N("span", { children: ["Updated: ", i(e.updatedAt)] }),
|
|
1270
1268
|
/* @__PURE__ */ N("span", { children: [
|
|
1271
1269
|
e.responses.length,
|
|
1272
1270
|
" response",
|
|
@@ -1280,7 +1278,7 @@ function V() {
|
|
|
1280
1278
|
]
|
|
1281
1279
|
}),
|
|
1282
1280
|
/* @__PURE__ */ M("section", {
|
|
1283
|
-
className: "mt-8 rounded-lg border border-border-
|
|
1281
|
+
className: "mt-8 rounded-lg border border-border-seam bg-bg-sunken/30 p-5",
|
|
1284
1282
|
children: /* @__PURE__ */ N("div", {
|
|
1285
1283
|
className: "flex flex-col gap-4 sm:flex-row sm:items-start sm:justify-between",
|
|
1286
1284
|
children: [/* @__PURE__ */ N("div", { children: [/* @__PURE__ */ M("h3", {
|
|
@@ -1294,20 +1292,20 @@ function V() {
|
|
|
1294
1292
|
children: [
|
|
1295
1293
|
/* @__PURE__ */ N("button", {
|
|
1296
1294
|
type: "button",
|
|
1297
|
-
onClick: () => $(
|
|
1298
|
-
className: "flex items-center gap-1.5 rounded-lg border border-border-
|
|
1295
|
+
onClick: () => $(F[0]),
|
|
1296
|
+
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",
|
|
1299
1297
|
children: [/* @__PURE__ */ M(h, { className: "h-3.5 w-3.5" }), "Email Us"]
|
|
1300
1298
|
}),
|
|
1301
1299
|
/* @__PURE__ */ N("button", {
|
|
1302
1300
|
type: "button",
|
|
1303
|
-
onClick: () => $(
|
|
1304
|
-
className: "flex items-center gap-1.5 rounded-lg border border-border-
|
|
1301
|
+
onClick: () => $(F[1]),
|
|
1302
|
+
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",
|
|
1305
1303
|
children: [/* @__PURE__ */ M(v, { className: "h-3.5 w-3.5" }), "Call Us"]
|
|
1306
1304
|
}),
|
|
1307
1305
|
/* @__PURE__ */ N("button", {
|
|
1308
1306
|
type: "button",
|
|
1309
1307
|
onClick: () => {
|
|
1310
|
-
H(!0),
|
|
1308
|
+
H(!0), u("contact");
|
|
1311
1309
|
},
|
|
1312
1310
|
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
1311
|
children: [/* @__PURE__ */ M(w, { className: "h-3.5 w-3.5" }), "Submit Ticket"]
|