PageSourceSearch

https://bacctrack-7ha7hyw7.manus.space/assets/VipPage-r6VYzYcB.js

js bacctrack-7ha7hyw7.manus.space collected 2026-10-03 05:00:56 UTC 8,734 bytes, 1 lines download raw bytes

1import{c as m,t as n,j as e,y as l}from"./index-C3Qps0S4.js";import{L as h}from"./loader-circle-DohmWZz_.js";import{C as r}from"./crown-BPkd65ql.js";import{S as u}from"./star-B909tHoY.js";function f(){const{t:i,lang:t}=m(),{data:s,isLoading:d}=n.vip.myStatus.useQuery(),{data:x,isLoading:p}=n.vip.levels.useQuery();if(d||p)return e.jsx("div",{"data-loc":"client/src/pages/VipPage.tsx:12",className:"flex items-center justify-center py-20",children:e.jsx(h,{"data-loc":"client/src/pages/VipPage.tsx:13",className:"w-6 h-6 text-orange-400 animate-spin"})});const o=s?.nextLevel?Math.min(100,(s.points-(s.currentLevel?.minPoints??0))/(s.nextLevel.minPoints-(s.currentLevel?.minPoints??0))*100):100;return e.jsxs("div",{"data-loc":"client/src/pages/VipPage.tsx:23",className:"space-y-4",children:[e.jsxs("div",{"data-loc":"client/src/pages/VipPage.tsx:25",className:"flex items-center gap-2",children:[e.jsx(r,{"data-loc":"client/src/pages/VipPage.tsx:26",className:"w-5 h-5 text-amber-400"}),e.jsx("h1",{"data-loc":"client/src/pages/VipPage.tsx:27",className:"text-xl font-bold text-gold-gradient",children:i.vip.title})]}),e.jsxs("div",{"data-loc":"client/src/pages/VipPage.tsx:31",className:"glass-card rounded-xl p-4",children:[e.jsxs("div",{"data-loc":"client/src/pages/VipPage.tsx:32",className:"flex items-center gap-3 mb-3",children:[e.jsx("div",{"data-loc":"client/src/pages/VipPage.tsx:33",className:"w-12 h-12 rounded-full flex items-center justify-center",style:{backgroundColor:`${s?.currentLevel?.color}20`,border:`2px solid ${s?.currentLevel?.color}`},children:e.jsx(r,{"data-loc":"client/src/pages/VipPage.tsx:37",className:"w-6 h-6",style:{color:s?.currentLevel?.color}})}),e.jsxs("div",{"data-loc":"client/src/pages/VipPage.tsx:39",children:[e.jsx("p",{"data-loc":"client/src/pages/VipPage.tsx:40",className:"text-sm font-bold text-foreground",children:s?.currentLevel?.name||"Bronze"}),e.jsxs("p",{"data-loc":"client/src/pages/VipPage.tsx:41",className:"text-[11px] text-muted-foreground",children:[s?.points??0," ",t==="th"?"คะแนน VIP":"VIP Points"]})]})]}),s?.nextLevel&&e.jsxs("div",{"data-loc":"client/src/pages/VipPage.tsx:47",children:[e.jsxs("div",{"data-loc":"client/src/pages/VipPage.tsx:48",className:"flex justify-between text-[10px] text-muted-foreground mb-1",children:[e.jsx("span",{"data-loc":"client/src/pages/VipPage.tsx:49",children:s.currentLevel?.name}),e.jsx("span",{"data-loc":"client/src/pages/VipPage.tsx:50",children:s.nextLevel.name})]}),e.jsx("div",{"data-loc":"client/src/pages/VipPage.tsx:52",className:"h-2 rounded-full bg-muted/50 overflow-hidden",children:e.jsx("div",{"data-loc":"client/src/pages/VipPage.tsx:53",className:"h-full rounded-full bg-gradient-to-r from-amber-500 to-orange-500 transition-all duration-500",style:{width:`${o}%`}})}),e.jsx("p",{"data-loc":"client/src/pages/VipPage.tsx:58",className:"text-[10px] text-muted-foreground mt-1 text-center",children:t==="th"?e.jsxs(e.Fragment,{children:["อีก ",e.jsx("span",{"data-loc":"client/src/pages/VipPage.tsx:60",className:"text-amber-400 font-bold",children:s.pointsToNext})," คะแนน ถึงระดับถัดไป"]}):e.jsxs(e.Fragment,{children:[e.jsx("span",{"data-loc":"client/src/pages/VipPage.tsx:61",className:"text-amber-400 font-bold",children:s.pointsToNext})," points to next level"]})})]}),!s?.nextLevel&&e.jsx("p",{"data-loc":"client/src/pages/VipPage.tsx:66",className:"text-[11px] text-amber-400 text-center mt-2",children:t==="th"?"คุณอยู่ระดับสูงสุดแล้ว!":"You are at the highest level!"})]}),s?.currentLevel?.perks&&e.jsxs("div",{"data-loc":"client/src/pages/VipPage.tsx:72",className:"glass-card rounded-xl p-4",children:[e.jsx("p",{"data-loc":"client/src/pages/VipPage.tsx:73",className:"text-xs font-medium text-foreground mb-2",children:i.vip.perks}),e.jsx("div",{"data-loc":"client/src/pages/VipPage.tsx:74",className:"space-y-1.5",children:s.currentLevel.perks.split(", ").map((a,c)=>e.jsxs("div",{"data-loc":"client/src/pages/VipPage.tsx:76",className:"flex items-center gap-2",children:[e.jsx(u,{"data-loc":"client/src/pages/VipPage.tsx:77",className:"w-3 h-3 text-amber-400 shrink-0"}),e.jsx("p",{"data-loc":"client/src/pages/VipPage.tsx:78",className:"text-[11px] text-muted-foreground",children:a})]},c))})]}),e.jsxs("div",{"data-loc":"client/src/pages/VipPage.tsx:86",className:"glass-card rounded-xl p-4",children:[e.jsx("p",{"data-loc":"client/src/pages/VipPage.tsx:87",className:"text-xs font-medium text-foreground mb-3",children:t==="th"?"ระดับ VIP ทั้งหมด":"All VIP Levels"}),e.jsx("div",{"data-loc":"client/src/pages/VipPage.tsx:88",className:"space-y-2",children:x?.map(a=>{const c=s?.currentLevel?.id===a.id,g=(s?.points??0)<a.minPoints;return e.jsxs("div",{"data-loc":"client/src/pages/VipPage.tsx:93",className:`flex items-center gap-3 p-2.5 rounded-lg border transition-all ${c?"border-amber-500/50 bg-amber-500/10":g?"border-border bg-muted/20 opacity-60":"border-border bg-muted/30"}`,children:[e.jsx("div",{"data-loc":"client/src/pages/VipPage.tsx:103",className:"w-8 h-8 rounded-full flex items-center justify-center shrink-0",style:{backgroundColor:`${a.color}20`,border:`1.5px solid ${a.color}`}
1,children:e.jsx(r,{"data-loc":"client/src/pages/VipPage.tsx:107",className:"w-4 h-4",style:{color:a.color}})}),e.jsxs("div",{"data-loc":"client/src/pages/VipPage.tsx:109",className:"flex-1 min-w-0",children:[e.jsxs("div",{"data-loc":"client/src/pages/VipPage.tsx:110",className:"flex items-center gap-1.5",children:[e.jsx("p",{"data-loc":"client/src/pages/VipPage.tsx:111",className:"text-xs font-bold text-foreground",children:a.name}),c&&e.jsx("span",{"data-loc":"client/src/pages/VipPage.tsx:113",className:"px-1.5 py-0.5 rounded text-[8px] bg-amber-500/20 text-amber-400 font-bold",children:t==="th"?"ปัจจุบัน":"Current"})]}),e.jsx("p",{"data-loc":"client/src/pages/VipPage.tsx:116",className:"text-[10px] text-muted-foreground truncate",children:a.perks})]}),e.jsxs("div",{"data-loc":"client/src/pages/VipPage.tsx:118",className:"text-right shrink-0",children:[e.jsxs("p",{"data-loc":"client/src/pages/VipPage.tsx:119",className:"text-[10px] text-muted-foreground",children:[a.minPoints," ",t==="th"?"คะแนน":"pts"]}),Number(a.creditBonus)>0&&e.jsxs("p",{"data-loc":"client/src/pages/VipPage.tsx:121",className:"text-[10px] text-amber-400",children:["+",a.creditBonus,"% ",t==="th"?"โบนัส":"bonus"]})]})]},a.id)})})]}),e.jsxs("div",{"data-loc":"client/src/pages/VipPage.tsx:131",className:"glass-card rounded-xl p-4",children:[e.jsx("p",{"data-loc":"client/src/pages/VipPage.tsx:132",className:"text-xs font-medium text-foreground mb-2",children:"วิธีสะสมคะแนน VIP"}),e.jsxs("div",{"data-loc":"client/src/pages/VipPage.tsx:133",className:"space-y-1.5 text-[11px] text-muted-foreground",children:[e.jsxs("div",{"data-loc":"client/src/pages/VipPage.tsx:134",className:"flex items-center gap-2",children:[e.jsx(l,{"data-loc":"client/src/pages/VipPage.tsx:135",className:"w-3 h-3 text-orange-400"}),e.jsxs("span",{"data-loc":"client/src/pages/VipPage.tsx:136",children:["เล่นเกมบาคาร่า: ",e.jsx("span",{"data-loc":"client/src/pages/VipPage.tsx:136",className:"text-amber-400",children:"+1 คะแนน/เกม"})]})]}),e.jsxs("div",{"data-loc":"client/src/pages/VipPage.tsx:138",className:"flex items-center gap-2",children:[e.jsx(l,{"data-loc":"client/src/pages/VipPage.tsx:139",className:"w-3 h-3 text-orange-400"}),e.jsxs("span",{"data-loc":"client/src/pages/VipPage.tsx:140",children:["แนะนำเพื่อน: ",e.jsx("span",{"data-loc":"client/src/pages/VipPage.tsx:140",className:"text-amber-400",children:"+10 คะแนน/คน"})]})]}),e.jsxs("div",{"data-loc":"client/src/pages/VipPage.tsx:142",className:"flex items-center gap-2",children:[e.jsx(l,{"data-loc":"client/src/pages/VipPage.tsx:143",className:"w-3 h-3 text-orange-400"}),e.jsxs("span",{"data-loc":"client/src/pages/VipPage.tsx:144",children:["เติม Point: ",e.jsx("span",{"data-loc":"client/src/pages/VipPage.tsx:144",className:"text-amber-400",children:"+5 คะแนน/ครั้ง"})]})]}),e.jsxs("div",{"data-loc":"client/src/pages/VipPage.tsx:146",className:"flex items-center gap-2",children:[e.jsx(l,{"data-loc":"client/src/pages/VipPage.tsx:147",className:"w-3 h-3 text-orange-400"}),e.jsxs("span",{"data-loc":"client/src/pages/VipPage.tsx:148",children:["ใช้ AI วิเคราะห์: ",e.jsx("span",{"data-loc":"client/src/pages/VipPage.tsx:148",className:"text-amber-400",children:"+2 คะแนน/ครั้ง"})]})]})]})]})]})}export{f 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.