PageSourceSearch

https://bacctrack-7ha7hyw7.manus.space/assets/MobileLayout-6BCWWeYj.js

js bacctrack-7ha7hyw7.manus.space collected 2026-10-03 05:00:12 UTC 23,788 bytes, 16 lines download raw bytes

1import{f,j as e,r as i,aw as G,c as y,a as C,t as p,u as H,Q as M,O as Q,g as k}from"./index-C3Qps0S4.js";import{A as W,a as Z,b as q,c as F,d as V,e as K,f as J,g as X}from"./alert-dialog-BzKLv-3y.js";import{L as O}from"./log-out-BLIkI5i4.js";import{Z as D}from"./zap-Dg3Ucl6s.js";import{G as T}from"./gamepad-2-IE90SSqp.js";import{B as Y}from"./brain-B6nwQ_cR.js";import{T as ee}from"./trending-up-Dq4_iocl.js";import{W as S}from"./wallet-BgwNklK4.js";import{G as te}from"./gift-Dnnb3vap.js";import{g as oe,f as ae}from"./memberDashboard-BmOUcP3O.js";import{U as se}from"./user-K4lTKbuI.js";import{C as ne}from"./coins-Cn4zgY_g.js";import{R as le}from"./radio-j8lhV_9l.js";import{B as ce}from"./bell-BS0Ukiqj.js";import"./index-BKUanX19.js";import"./index-Dr02_Kwf.js";import"./button-xdpkFraK.js";import"./index-Jol-UBUv.js";/**
2 * @license lucide-react v0.453.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */const re=f("Ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);/**
7 * @license lucide-react v0.453.0 - ISC
8 *
9 * This source code is licensed under the ISC license.
10 * See the LICENSE file in the root directory of this source tree.
11 */const ie=f("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
12 * @license lucide-react v0.453.0 - ISC
13 *
14 * This source code is licensed under the ISC license.
15 * See the LICENSE file in the root directory of this source tree.
16 */const de=f("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);function me({open:o,onOpenChange:t,onConfirm:a,loading:l}){return e.jsx(W,{"data-loc":"client/src/components/LogoutConfirmDialog.tsx:27",open:o,onOpenChange:t,children:e.jsxs(Z,{"data-loc":"client/src/components/LogoutConfirmDialog.tsx:28",className:"bg-gray-900 border-gray-700 max-w-sm",children:[e.jsxs(q,{"data-loc":"client/src/components/LogoutConfirmDialog.tsx:29",children:[e.jsxs("div",{"data-loc":"client/src/components/LogoutConfirmDialog.tsx:30",className:"flex items-center gap-3 mb-2",children:[e.jsx("div",{"data-loc":"client/src/components/LogoutConfirmDialog.tsx:31",className:"w-10 h-10 rounded-full bg-red-500/10 flex items-center justify-center",children:e.jsx(O,{"data-loc":"client/src/components/LogoutConfirmDialog.tsx:32",className:"w-5 h-5 text-red-400"})}),e.jsx(F,{"data-loc":"client/src/components/LogoutConfirmDialog.tsx:34",className:"text-white",children:"ออกจากระบบ"})]}),e.jsx(V,{"data-loc":"client/src/components/LogoutConfirmDialog.tsx:36",className:"text-gray-400",children:"คุณต้องการออกจากระบบหรือไม่? คุณจะต้องเข้าสู่ระบบใหม่อีกครั้ง"})]}),e.jsxs(K,{"data-loc":"client/src/components/LogoutConfirmDialog.tsx:40",className:"gap-2",children:[e.jsx(J,{"data-loc":"client/src/components/LogoutConfirmDialog.tsx:41",className:"bg-gray-800 border-gray-600 text-gray-300 hover:bg-gray-700 hover:text-white",children:"ยกเลิก"}),e.jsx(X,{"data-loc":"client/src/components/LogoutConfirmDialog.tsx:44",onClick:a,disabled:l,className:"bg-red-600 hover:bg-red-700 text-white",children:l?"กำลังออก...":"ยืนยันออกจากระบบ"})]})]})})}const g=[{icon:D,color:"from-amber-500 to-orange-500",glow:"bg-amber-500",title:"ยินดีต้อนรับ!",description:"แพลตฟอร์มวิเคราะห์เกมด้วย AI อัจฉริยะ ช่วยให้คุณเล่นอย่างมีระบบ",step:"1/6"},{icon:T,color:"from-red-500 to-orange-500",glow:"bg-red-500",title:"เลือกเกมที่ต้องการ",description:"รองรับทั้ง บาคาร่า (B/P) และ เสือมังกร (D/T) พร้อมสูตรเฉพาะแต่ละเกม",step:"2/6"},{icon:Y,color:"from-blue-500 to-cyan-500",glow:"bg-blue-500",title:"สร้างเซสชัน → บันทึกผล",description:"กดสร้างเซสชันใหม่ แล้วบันทึกผลทีละตา ระบบจะวิเคราะห์แพทเทิร์นให้อัตโนมัติ",step:"3/6"},{icon:ee,color:"from-emerald-500 to-green-500",glow:"bg-emerald-500",title:"สูตรทำนายฟรี",description:"เลือกใช้สูตรวิเคราะห์กว่า 10 สูตร ทั้งบาคาร่าและเสือมังกร ฟรีทั้งหมด",step:"4/6"},{icon:S,color:"from-violet-500 to-purple-500",glow:"bg-violet-500",title:"ระบบจัดการเงินทุน",description:"ตั้งค่าทุนเริ่มต้น เป้าหมายกำไร จุดตัดขาดทุน ระบบคำนวณเดิมพันให้อัตโนมัติ",step:"5/6"},{icon:te,color:"from-purple-500 to-pink-500",glow:"bg-purple-500",title:"Point ฟรี & รางวัล",description:"เช็คอินรายวัน ทำภารกิจ ลุ้นรางวัล รับ Point ฟรีทุกวัน เพื่อใช้กับสูตรพรีเมียม",step:"6/6"}
16];function xe({onComplete:o}){const[t,a]=i.useState(0),l=()=>{t<g.length-1?a(t+1):o()},d=()=>{o()},n=g[t],s=n.icon;return e.jsxs("div",{"data-loc":"client/src/components/Onboarding.tsx:78",className:"fixed inset-0 z-[9999] bg-[#0a1628] flex flex-col items-center justify-between py-12 px-6",children:[e.jsxs("div",{"data-loc":"client/src/components/Onboarding.tsx:80",className:"w-full flex justify-between items-center",children:[e.jsx("span",{"data-loc":"client/src/components/Onboarding.tsx:81",className:"text-xs text-white/30 font-medium",children:n.step}),e.jsx("button",{"data-loc":"client/src/components/Onboarding.tsx:82",onClick:d,className:"text-sm text-white/50 hover:text-white/80 transition-colors px-3 py-1",children:"ข้าม"})]}),e.jsxs("div",{"data-loc":"client/src/components/Onboarding.tsx:91",className:"flex-1 flex flex-col items-center justify-center gap-8 animate-[fadeIn_0.4s_ease-out]",children:[e.jsxs("div",{"data-loc":"client/src/components/Onboarding.tsx:93",className:"relative",children:[e.jsx("div",{"data-loc":"client/src/components/Onboarding.tsx:94",className:`absolute inset-0 ${n.glow} blur-3xl opacity-20 rounded-full scale-[2] animate-pulse`}),e.jsx("div",{"data-loc":"client/src/components/Onboarding.tsx:95",className:`relative w-32 h-32 rounded-3xl bg-gradient-to-br ${n.color} flex items-center justify-center shadow-2xl`,children:e.jsx(s,{"data-loc":"client/src/components/Onboarding.tsx:96",className:"w-16 h-16 text-white",strokeWidth:1.5})})]}),e.jsxs("div",{"data-loc":"client/src/components/Onboarding.tsx:101",className:"text-center space-y-3 max-w-xs",children:[e.jsx("h2",{"data-loc":"client/src/components/Onboarding.tsx:102",className:"text-2xl font-bold text-white",children:n.title}),e.jsx("p",{"data-loc":"client/src/components/Onboarding.tsx:103",className:"text-white/60 text-base leading-relaxed",children:n.description})]})]},t),e.jsxs("div",{"data-loc":"client/src/components/Onboarding.tsx:108",className:"w-full space-y-6",children:[e.jsx("div",{"data-loc":"client/src/components/Onboarding.tsx:110",className:"flex justify-center gap-2",children:g.map((m,x)=>e.jsx("div",{"data-loc":"client/src/components/Onboarding.tsx:112",className:`h-2 rounded-full transition-all duration-300 ${x===t?`w-8 bg-gradient-to-r ${n.color}`:"w-2 bg-white/20"}`},x))}),e.jsx("button",{"data-loc":"client/src/components/Onboarding.tsx:124",onClick:l,className:`w-full py-4 rounded-2xl bg-gradient-to-r ${n.color} text-white font-bold text-lg shadow-lg active:scale-[0.97] transition-transform duration-150`,children:t===g.length-1?"เริ่มใช้งาน":"ถัดไป"})]})]})}function ue(){const{theme:o,toggleTheme:t,switchable:a}=G();return!a||!t?null:e.jsx("button",{"data-loc":"client/src/components/ThemeToggle.tsx:10",onClick:t,className:"relative p-1.5 rounded-lg bg-black/40 dark:bg-black/40 border border-orange-500/20 dark:border-red-500/20 hover:bg-black/60 transition-all","aria-label":o==="dark"?"เปลี่ยนเป็นโหมดสว่าง":"เปลี่ยนเป็นโหมดมืด",title:o==="dark"?"โหมดสว่าง":"โหมดมืด",children:o==="dark"?e.jsx(de,{"data-loc":"client/src/components/ThemeToggle.tsx:17",className:"w-4 h-4 text-amber-400"}):e.jsx(ie,{"data-loc":"client/src/components/ThemeToggle.tsx:19",className:"w-4 h-4 text-indigo-500"})})}const h=[{code:"th",flag:"🇹🇭",label:"TH"},{code:"en",flag:"🇬🇧",label:"EN"},{code:"zh",flag:"🇨🇳",label:"中文"},{code:"vi",flag:"🇻🇳",label:"VN"},{code:"km",flag:"🇰🇭",label:"KH"},{code:"my",flag:"🇲🇲",label:"MM"}];function pe(){const{lang:o,setLang:t}=y(),[a,l]=i.useState(!1),d=i.useRef(null),n=h.find(s=>s.code===o)||h[0];return i.useEffect(()=>{function s(m){d.current&&!d.current.contains(m.target)&&l(!1)}return document.addEventListener("mousedown",s),()=>document.removeEventListener("mousedown",s)},[]),e.jsxs("div",{"data-loc":"client/src/components/LanguageToggle.tsx:31",ref:d,className:"relative",children:[e.jsxs("button",{"data-loc":"client/src/components/LanguageToggle.tsx:32",onClick:()=>l(!a),className:"flex items-center gap-1.5 px-2.5 py-1.5 rounded-lg bg-white/5 hover:bg-white/10 border border-white/10 transition-all duration-200 text-xs font-medium",title:n.label,children:[e.jsx("span",{"data-loc":"client/src/components/LanguageToggle.tsx:37",className:"text-sm",children:n.flag}),e.jsx("span",{"data-loc":"client/src/components/LanguageToggle.tsx:38",className:"text-white/80",children:n.label})]}),a&&e.jsx("div",{"data-loc":"client/src/components/LanguageToggle.tsx:42",className:"absolute top-full right-0 mt-1 w-32 bg-zinc-900 border border-zinc-700 rounded-lg shadow-xl z-50 overflow-hidden animate-in fade-in slide-in-from-top-1 duration-150",children:h.map(s=>e.jsxs("button",{"data-loc":"client/src/components/LanguageToggle.tsx:44",onClick:()=>{t(s.code),l(!1)},className:`w-full flex items-center gap-2 px-3 py-2 text-xs transition-colors ${o===s.code?"bg-cyan-500/10 text-cyan-300":"text-gray-300 hover:bg-white/5 hover:text-white"}`,children:[e.jsx("span",{"data-loc":"client/src/components/LanguageToggle.tsx:56",className:"text-sm",children:s.flag}),e.jsx("span",{"data-loc":"client/src/components/LanguageToggle.tsx:57",className:"font-medium",children:s.label})]},s.code))})]})}const ge=3e4;function be(){const{user:o}=C(),t=p.activity.heartbeat.useMutation(),a=i.useRef(null);i.useEffect(()=>{if(!o)return;const l=()=>{const d=window.location.pathname;t.mutate({currentPage:d})};return l(),a.current=setInterval(l,ge),()=>{a.current&&clearInterval(a.current)}},[o?.id])}function _e({children:o}){const{user:t,isAuthenticated:a,loading:l,logout:d}=C(),[n,s]=H(),[m,x]=i.useState(!1),[A,v]=i.useState(!1);be();const[I,E]=i.useState(!1),{t:c}=y(),{data:u}=p.profile.get.useQuery(void 0,{enabled:a}),[z,j]=i.useState(!1),b=oe(u,t);i.useEffect(()=>{a&&!l&&(localStorage.getItem("batrackai_onboarding_done")||j(!0))},[a,l]);const P=()=>{localStorage.setItem("batrackai_onboarding_done","true"),j(!1)};if(l)return e.jsxs("div",{"data-loc":"client/src/components/MobileLayout.tsx:63",className:"min-h-screen bg-[#0a1628] flex flex-col items-center justify-center gap-6",children:[e.jsxs("div",{"data-loc":"client/src/components/MobileLayout.tsx:65",className:"relative",children:[e.jsx("div",{"data-loc":"client/src/components/MobileLayout.tsx:66",className:"absolute inset-0 blur-3xl op
16acity-30 bg-amber-500 rounded-full scale-150 animate-pulse"}),e.jsx(M,{"data-loc":"client/src/components/MobileLayout.tsx:67",className:"relative z-10 h-48 w-48 rounded-3xl text-4xl animate-[fadeIn_0.5s_ease-out]"})]}),e.jsx("div",{"data-loc":"client/src/components/MobileLayout.tsx:70",className:"w-32 h-1 bg-white/10 rounded-full overflow-hidden",children:e.jsx("div",{"data-loc":"client/src/components/MobileLayout.tsx:71",className:"h-full bg-gradient-to-r from-amber-500 to-orange-500 rounded-full animate-[loading_1.5s_ease-in-out_infinite]"})}),e.jsx("p",{"data-loc":"client/src/components/MobileLayout.tsx:73",className:"text-xs text-amber-400/60 tracking-widest uppercase",children:"Loading..."})]});if(!a)return window.location.href="/login",null;if(t?.forceChangePassword&&n!=="/force-change-password")return window.location.href="/force-change-password",null;if(z)return e.jsx(xe,{"data-loc":"client/src/components/MobileLayout.tsx:90",onComplete:P});const U=[{path:"/dashboard",icon:Q,label:c.nav.home},{path:"/quick-play",icon:D,label:"Quick"},{path:"/game-selection",icon:T,label:c.nav.formula},{path:"/credits",icon:S,label:c.nav.wallet},{path:"/profile",icon:se,label:c.nav.profile}],_=[{path:"/football",label:"ฟุตบอล"},{path:"/history",label:c.more.history},{path:"/smart-limit",label:"Smart Limit"},{path:"/marketplace",label:c.more.promotion},{path:"/referral",label:c.more.referral},{path:"/vip",label:c.more.vip},{path:"/daily-missions",label:c.more.daily},{path:"/achievements",label:c.more.achievements},{path:"/achievement-leaderboard",label:c.more.leaderboard},{path:"/contact",label:c.more.support}];return e.jsxs("div",{"data-loc":"client/src/components/MobileLayout.tsx:115",className:"min-h-screen bg-background flex flex-col",children:[e.jsx("header",{"data-loc":"client/src/components/MobileLayout.tsx:117",className:"sticky top-0 z-50 border-b border-border/50 bg-background/92 shadow-sm backdrop-blur-2xl",style:{paddingTop:"env(safe-area-inset-top)"},children:e.jsxs("div",{"data-loc":"client/src/components/MobileLayout.tsx:118",className:"mx-auto flex min-h-16 max-w-lg items-center justify-between gap-1.5 px-3 max-[340px]:gap-0.5 max-[340px]:px-1.5",children:[e.jsxs("div",{"data-loc":"client/src/components/MobileLayout.tsx:120",className:"flex shrink-0 items-center gap-1.5",children:[e.jsx(M,{"data-loc":"client/src/components/MobileLayout.tsx:122",className:"h-7 w-7 rounded-md text-[8px] max-[340px]:hidden"}),e.jsx("button",{"data-loc":"client/src/components/MobileLayout.tsx:124",type:"button",onClick:()=>s("/profile"),className:"flex min-h-11 min-w-11 items-center justify-center rounded-full transition-colors hover:bg-card/80 active:scale-[0.97]","aria-label":`เปิดโปรไฟล์ของ ${b}`,title:`โปรไฟล์: ${b}`,children:e.jsx("div",{"data-loc":"client/src/components/MobileLayout.tsx:131",className:"w-8 h-8 rounded-full bg-gradient-to-br from-orange-500 to-amber-500 flex items-center justify-center text-white font-bold text-[10px] overflow-hidden ring-2 ring-amber-500/20 shadow-md",children:u?.avatarUrl?e.jsx("img",{"data-loc":"client/src/components/MobileLayout.tsx:133",src:k(u.avatarUrl),alt:"avatar",className:"w-full h-full object-cover"}):b.charAt(0).toUpperCase()})})]}),e.jsxs("button",{"data-loc":"client/src/components/MobileLayout.tsx:142",type:"button",onClick:()=>s("/credits"),className:"flex min-h-11 min-w-0 items-center gap-1.5 rounded-full border border-amber-500/25 bg-gradient-to-r from-amber-500/10 to-orange-500/10 px-2.5 shadow-sm transition-all hover:border-amber-500/50 hover:shadow-amber-500/10 active:scale-[0.97]","aria-label":"เปิดกระเป๋าเงินและดูยอด Point",title:"กระเป๋าเงินและยอด Point",children:[e.jsx(ne,{"data-loc":"client/src/components/MobileLayout.tsx:149",className:"w-3.5 h-3.5 text-amber-400"}),e.jsx(he,{"data-loc":"client/src/components/MobileLayout.tsx:150"})]}),e.jsxs("div",{"data-loc":"client/src/components/MobileLayout.tsx:154",className:"flex shrink-0 items-center gap-0.5",children:[e.jsxs("button",{"data-loc":"client/src/components/MobileLayout.tsx:156",type:"button",onClick:()=>s("/live-signal"),className:"relative flex min-h-11 min-w-9 items-center justify-center rounded-full transition-all hover:bg-card/80 active:scale-[0.97]","aria-label":"เปิดสถานะสัญญาณ",title:"สถานะสัญญาณ",children:[e.jsx(le,{"data-loc":"client/src/components/MobileLayout.tsx:163",className:`w-4 h-4 ${n==="/live-signal"?"text-green-400":"text-muted-foreground"}`}),e.jsx(ye,{"data-loc":"client/src/components/MobileLayout.tsx:164"})]}),e.jsxs("button",{"data-loc":"client/src/components/MobileLayout.tsx:168",type:"button",onClick:()=>s("/notifications"),className:"relative flex min-h-11 min-w-9 items-center justify-center rounded-full transition-all hover:bg-card/80 active:scale-[0.97]","aria-label":"เปิดศูนย์การแจ้งเตือน",title:"การแจ้งเตือน",children:[e.jsx(ce,{"data-loc":"client/src/components/MobileLayout.tsx:175",className:"w-4 h-4 text-muted-foreground"}),e.jsx(fe,{"data-loc":"client/src/components/MobileLayout.tsx:176"})]}),e.jsx(pe,{"data-loc":"client/src/components/MobileLayout.tsx:180"}),e.jsx(ue,{"data-loc":"client/src/components/MobileLayout.tsx:183"}),e.jsxs("div",{"data-loc":"client/src/components/MobileLayout.tsx:186",className:"relative",children:[e.jsx("button",{"data-loc":"client/src/components/MobileLayout.tsx:187",type:"button",onClick:()=>x(!m),className:"flex min-h-11 min-w-9 items-center justify-center rounded-full transition-all hover:bg-card/80 active:scale-[0.97]","aria-label":m?"ปิดเมนูเพิ่มเติม":"เปิดเมนูเพิ่มเติม","aria-expanded":m,title:"เมนูเพิ่มเติม",children:e.jsx(re,{"data-loc":"client/src/components/MobileLayout.tsx:195",className:"w-4 h-4 text-muted-foreground"})}),m&&e.jsxs(e.Fragment,{children:[e.jsx("div",{"data-loc":"client/src/components/MobileLayout.tsx:200",className:"fixed inset-0 z-40",onClick:()=>x(!1)}),e.jsxs("div",{"data-loc":"client/src/components/MobileLayout.tsx:204",className:"absolute right-0 top-full mt-2 w-52 bg-card/95 backdrop-blur-xl border border-border/50 rounded-2xl shadow-2xl z-50 overflow-hidden animate-in fade-in slide-in-from-top-2 duration-200",children:[e.jsx("div",{"data-loc":"client/src/components/MobileLayout.tsx:205",className:"p-2 border-b border-border/30",children:e.jsxs("div",{"data-loc":"client/src/components/MobileLayout.tsx:206",className:"flex items-center gap-2 px-2 py-1.5",children:[e.jsx("div",{"data-loc":"client/src/components/MobileLayout.tsx:207",className:"w-7 h-7 rounded-full bg-gradient-to-br from-orange-500 to-amber-500 flex items-center justify-center text-white font-bold text-[9px] overflow-hidden",children:u?.avatarUrl?e.jsx("img",{"data-loc":"client/src/components/MobileLayout.tsx:209",src:k(u.avatarUrl),alt:"avatar",className:"w-full h-full object-cover"}):t?.name?.charAt(0).toUpperCase()||"U"}),e.jsxs("div",{"data-loc":"client/src/components/MobileLayout.tsx:214",className:"min-w-0",children:[e.jsx("p",{"data-loc":"client/src/components/MobileLayout.tsx:215",className:"text-xs font-semibold text-foreground truncate",children:t?.name||"User"}),e.jsxs("p",{"data-loc":"client/src/components/MobileLayout.tsx:216",className:"text-[10px] text-muted-foreground",children:["@",t?.username||"user"]})]})]})}),e.jsx("div",{"data-loc":"client/src/components/MobileLayout.tsx:220",className:"max-h-80 overflow-y-auto py-1",children:_.map(r=>e.jsx("button",{"data-loc":"client/src/components/MobileLayout.tsx:222",onClick:()=>{s(r.path),x(!1)},className:"w-full px-4 py-2.5 text-left text-sm text-foreground hover:bg-white/5 transition-colors",children:r.label},r.path))}),e.jsx("div",{"data-loc":"client/src/components/MobileLayout.tsx:234",className:"p-2 border-t border-border/30",children:e.jsxs("button",{"data-loc":"client/src/components/MobileLayout.tsx:235",onClick:()=>v(!0),className:"w-full px-3 py-2 text-left text-sm text-red-400 hover:bg-red-500/10 transition-colors flex items-center gap-2 rounded-lg",children:[e.jsx(O,{"data-loc":"client/src/components/MobileLayout.tsx:239",className:"w-4 h-4"}),c.more.logout]})})]})]})]})]})]})}),e.jsx("main",{"data-loc":"client/src/components/MobileLayout.tsx:252",className:"flex-1 overflow-y-auto px-4 py-4",style:{paddingBottom:"calc(7rem + env(safe-area-inset-bottom, 0px))"},children:e.jsx("div",{"data-loc":"client/src/components/MobileLayout.tsx:253",className:"max-w-lg mx-auto",children:o})}),e.jsx("nav",{"data-loc":"client/src/components/MobileLayout.tsx:257","aria-label":"เมนูสมาชิกหลัก",className:"fixed bottom-0 left-0 right-0 z-30 bg-background/90 backdrop-blur-xl border-t border-border",style:{paddingBottom:"max(env(safe-area-inset-bottom), .5rem)"},children:e.jsx("div",{"data-loc":"client/src/components/MobileLayout.tsx:258",className:"max-w-lg mx-auto grid grid-cols-5 items-center px-1 pt-2",children:U.map(r=>{const B=["/game-selection","/game","/roulette","/sic-bo","/slot","/hot-games","/play","/analysis","/roadmap","/live-signal","/signal-settings"],$=["/credits","/crypto-deposit"],w=R=>R.some(N=>n===N||n.startsWith(`${N}/`)),L=r.path==="/game-selection"?w(B):r.path==="/credits"?w($):n===r.path;return e.jsxs("button",{"data-loc":"client/src/components/MobileLayout.tsx:269",onClick:()=>s(r.path),"aria-current":L?"page":void 0,className:`flex min-h-14 flex-col items-center justify-center gap-1 rounded-xl px-1 py-2 transition-all duration-200 ${L?"text-primary bg-primary/[0.07]":"text-muted-foreground hover:text-foreground"}`,children:[e.jsx(r.icon,{"data-loc":"client/src/components/MobileLayout.tsx:279",className:"w-5 h-5"}),e.jsx("span",{"data-loc":"client/src/components/MobileLayout.tsx:280",className:"text-[10px] font-medium",children:r.label})]},r.path)})})}),e.jsx(me,{"data-loc":"client/src/components/MobileLayout.tsx:288",open:A,onOpenChange:v,loading:I,onConfirm:async()=>{E(!0),await d(),window.location.href="/login"}})]})}function he(){const{lang:o}=y(),{data:t,isLoading:a}=p.credits.balance.useQuery(void 0,{refetchInterval:15e3});return a?e.jsx("span",{"data-loc":"client/src/components/MobileLayout.tsx:305",className:"h-3 w-10 rounded bg-amber-400/15 motion-safe:animate-pulse",role:"status","aria-label":o==="en"?"Loading Point":"กำลังโหลดยอด Point"}):e.jsx("span",{"data-loc":"client/src/components/MobileLayout.tsx:307",className:"text-xs font-bold text-amber-400",children:ae(t?.balance,o==="en"?"en":"th")})}function fe(){const{data:o}=p.notifications.unreadCount.useQuery(void 0,{refetchInterval:3e4});return(o??0)<=0?null:e.jsx("span",{"data-loc":"client/src/components/MobileLayout.tsx:317",className:"absolute -top-1 -right-1 min-w-[16px] h-4 flex items-center justify-center rounded-full bg-red-500 text-[9px] text-white font-bold px-0.5",children:(o??0)>9?"9+":o})}function ye(){const{data:o}=p.signals.active.useQuery(void 0,{refetchInterval:1e4,enabled:!0}),t=o?.length??0;return t<=0?null:e.jsx("span",{"data-loc":"client/src/components/MobileLayout.tsx:331",className:"absolute -top-1 -right-1 min-w-[16px] h-4 flex items-center justify-center rounded-full bg-green-500 text-[9px] text-white font-bold px-0.5 animate-pulse",children:t>9?"9+":t})}export{_e 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.