PageSourceSearch

https://bacctrack-7ha7hyw7.manus.space/assets/ContactPage-BP43nXNT.js

js bacctrack-7ha7hyw7.manus.space collected 2026-10-03 05:00:45 UTC 6,523 bytes, 1 lines download raw bytes

1import{u as n,t as i,j as e}from"./index-C3Qps0S4.js";import{H as s}from"./headphones-D6SC7HuD.js";import{M as r}from"./message-circle-BkrB8C2p.js";import{P as d}from"./phone-C7ssNq9Y.js";import{S as x}from"./send-CbRcUDpe.js";import{F as g}from"./facebook-C7EkXq7I.js";const m={line:e.jsx(r,{"data-loc":"client/src/pages/ContactPage.tsx:6",className:"w-6 h-6"}),facebook:e.jsx(g,{"data-loc":"client/src/pages/ContactPage.tsx:7",className:"w-6 h-6"}),telegram:e.jsx(x,{"data-loc":"client/src/pages/ContactPage.tsx:8",className:"w-6 h-6"}),phone:e.jsx(d,{"data-loc":"client/src/pages/ContactPage.tsx:9",className:"w-6 h-6"}),livechat:e.jsx(s,{"data-loc":"client/src/pages/ContactPage.tsx:10",className:"w-6 h-6"})},p={line:"from-green-500 to-green-600",facebook:"from-blue-500 to-blue-600",telegram:"from-sky-400 to-sky-500",phone:"from-emerald-500 to-emerald-600",livechat:"from-orange-500 to-orange-600"},h={line:"border-green-500/30 hover:border-green-500/60",facebook:"border-blue-500/30 hover:border-blue-500/60",telegram:"border-sky-400/30 hover:border-sky-400/60",phone:"border-emerald-500/30 hover:border-emerald-500/60",livechat:"border-orange-500/30 hover:border-orange-500/60"};function v(){const[,c]=n(),{data:a,isLoading:o}=i.contact.list.useQuery(),l=t=>{if(t.channelType==="livechat"){c("/live-chat");return}t.channelType==="phone"&&t.value?window.open(`tel:${t.value}`,"_self"):t.url&&window.open(t.url,"_blank","noopener,noreferrer")};return e.jsxs("div",{"data-loc":"client/src/pages/ContactPage.tsx:46",className:"space-y-6",children:[e.jsxs("div",{"data-loc":"client/src/pages/ContactPage.tsx:48",className:"text-center",children:[e.jsx("div",{"data-loc":"client/src/pages/ContactPage.tsx:49",className:"w-16 h-16 mx-auto rounded-2xl bg-gradient-to-br from-orange-500 to-red-500 flex items-center justify-center mb-3",children:e.jsx(s,{"data-loc":"client/src/pages/ContactPage.tsx:50",className:"w-8 h-8 text-white"})}),e.jsx("h1",{"data-loc":"client/src/pages/ContactPage.tsx:52",className:"text-xl font-bold text-gold-gradient",children:"ติดต่อเรา"}),e.jsx("p",{"data-loc":"client/src/pages/ContactPage.tsx:53",className:"text-sm text-gray-400 mt-1",children:"เลือกช่องทางที่สะดวกสำหรับคุณ"})]}),e.jsxs("button",{"data-loc":"client/src/pages/ContactPage.tsx:57",onClick:()=>c("/live-chat"),className:"w-full flex items-center gap-4 p-4 rounded-xl bg-gradient-to-r from-amber-500/10 to-orange-500/10 border border-amber-500/40 hover:border-amber-500/70 transition-all duration-200 hover:bg-amber-500/15 active:scale-[0.98]",children:[e.jsxs("div",{"data-loc":"client/src/pages/ContactPage.tsx:61",className:"w-14 h-14 rounded-xl bg-gradient-to-br from-amber-500 to-orange-600 flex items-center justify-center text-white shrink-0 relative",children:[e.jsx(s,{"data-loc":"client/src/pages/ContactPage.tsx:62",className:"w-7 h-7"}),e.jsx("div",{"data-loc":"client/src/pages/ContactPage.tsx:63",className:"absolute -top-1 -right-1 h-3.5 w-3.5 rounded-full bg-green-500 border-2 border-background animate-pulse"})]}),e.jsxs("div",{"data-loc":"client/src/pages/ContactPage.tsx:65",className:"flex-1 text-left",children:[e.jsx("p",{"data-loc":"client/src/pages/ContactPage.tsx:66",className:"text-sm font-bold text-amber-400",children:"แชทสดกับเจ้าหน้าที่"}),e.jsx("p",{"data-loc":"client/src/pages/ContactPage.tsx:67",className:"text-xs text-gray-400 mt-0.5",children:"ออนไลน์ • ตอบกลับภายใน 5 นาที"})]}),e.jsx("div",{"data-loc":"client/src/pages/ContactPage.tsx:69",className:"text-amber-500",children:e.jsx("svg",{"data-loc":"client/src/pages/ContactPage.tsx:70",className:"w-5 h-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e.jsx("path",{"data-loc":"client/src/pages/ContactPage.tsx:71",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})})]}),o?e.jsx("div",{"data-loc":"client/src/pages/ContactPage.tsx:78",className:"space-y-3",children:[1,2,3].map(t=>e.jsx("div",{"data-loc":"client/src/pages/ContactPage.tsx:80",className:"h-20 rounded-xl bg-white/5 animate-pulse"},t))}):a&&a.length>0?e.jsx("div",{"data-loc":"client/src/pages/ContactPage.tsx:84",className:"space-y-3",children:a.map(t=>e.jsxs("button",{"data-loc":"client/src/pages/ContactPage.tsx:86",onClick:()=>l(t),className:`w-full flex items-center gap-4 p-4 rounded-xl bg-white/5 border transition-all duration-200 hover:bg-white/10 active:scale-[0.98] ${h[t.channelType]||"border-white/10"}`,children:[e.jsx("div",{"data-loc":"client/src/pages/ContactPage.tsx:93",className:`w-12 h-12 rounded-xl bg-gradient-to-br ${p[t.channelType]||"from-gray-500 to-gray-600"} flex items-center justify-center text-white shrink-0`,children:m[t.channelType]||e.jsx(r,{"data-loc":"client/src/pages/ContactPage.tsx:94",className:"w-6 h-6"})}),e.jsxs("div",{"data-loc":"client/src/pages/ContactPage.tsx:96",className:"flex-1 text-left",children:[e.jsx("p",{"data-loc":"client/src/pages/ContactPage.tsx:97",className:"text-sm font-medium text-white",children:t.label}),t.value&&e.jsx("p",{"data-loc":"client/src/pages/ContactPage.tsx:99",className:"text-xs text-gray-400 mt-0.5",children:t.value})]}),e.jsx("div",{"data-loc":"client/src/pages/ContactPage.tsx:102",className:"text-gray-500",children:e.jsx("svg",{"data-loc":"client/src/pages/ContactPage.tsx:103",className:"w-5 h-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e.jsx("path",{"data-loc":"client/src/pages/ContactPage.tsx:104",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})})]},t.id))}):e.jsx("div",{"data-loc":"client/src/pages/ContactPage.tsx:111",className:"text-center py-8",children:e.jsx("p",{"data-loc":"client/src/pages/ContactPage.tsx:112",className:"text-sm text-gray-500",children:"ยังไม่มีช่องทางติดต่อที่เปิดใช้งาน"})}),e.jsxs("div",{"data-loc":"client/src/pages/ContactPage.tsx:117",className:"rounded-xl p-4 bg-white/5 border border-white/10 text-center",children:[e.jsx("p",{"data-loc":"client/src/pages/ContactPage.tsx:118",className:"text-xs text-gray-400",children:"ทีมงานพร้อมให้บริการ 24 ชั่วโมง"}),e.jsx("p",{"data-loc":"client/src/pages/ContactPage.tsx:121",className:"text-xs text-gray-500 mt-1",children:"ตอบกลับภายใน 5 นาที"})]})]})}export{v as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.