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