1import{a as ga,u as da,t as p,r,b as g,j as e,z as xa,S as pa,A as ma,e as Pa,y as ye}from"./index-C3Qps0S4.js";import{D as O,a as Ie,b as U,c as G,d as W}from"./dialog-BY1FISUw.js";import{S as fe}from"./skeleton-Dte_fR4v.js";import{S as ua,L as ha,p as ya}from"./sounds-DX0lF6iN.js";import{A as fa}from"./arrow-left-AxGNO8ZF.js";import{W as ba}from"./wallet-BgwNklK4.js";import{T as Ta}from"./timer-BUYRTa4S.js";import{P as Da}from"./plus-BLlLQSZn.js";import{B as ja}from"./brain-B6nwQ_cR.js";import{T as Na}from"./trending-up-Dq4_iocl.js";import{F as va}from"./flame-ClgW77Uq.js";import{C as Be}from"./clock-CHw5d3NP.js";import{C as Le}from"./calculator-BESwuf8w.js";import{C as wa}from"./chevron-up-F-ZIdiqt.js";import{U as ka}from"./undo-2-BQMFSJ40.js";import{P as Sa}from"./play-NZNEVHTw.js";import{F as Ca}from"./folder-open-BFhfsFp9.js";import{L as _a}from"./loader-circle-DohmWZz_.js";import"./index-BKUanX19.js";import"./index-Dr02_Kwf.js";const Ra=4,ee=6,Aa=12,ae=3,Me=[10,20,30,30];function at(){const{user:be,loading:$e}=ga(),[,Ee]=da(),h=p.useUtils(),[c,te]=r.useState(null),[Oe,se]=r.useState(!1),[Te,De]=r.useState(""),[re,le]=r.useState(!1),[j,je]=r.useState(null),[N,R]=r.useState(null),[Fa,Ne]=r.useState(null),[Q,F]=r.useState(0),[Ue,H]=r.useState(!1),[Ge,ne]=r.useState(!1),[q,ve]=r.useState(null),[We,z]=r.useState(null),[Qe,we]=r.useState(0),[v,ce]=r.useState(!1),[ie,A]=r.useState(!1),[He,J]=r.useState(!1),[d,V]=r.useState(null),[oe,qe]=r.useState(!0),[C,ze]=r.useState("10000"),[ge,Je]=r.useState(100),[de,Ve]=r.useState("50"),[xe,Xe]=r.useState("10"),[ke,Ke]=r.useState(""),[X,Ye]=r.useState(0),I=r.useRef(null),K=r.useRef(null),{data:_}=p.sessions.list.useQuery({gameType:"dragon_tiger"}),{data:B}=p.sessions.get.useQuery({id:c},{enabled:!!c}),{data:pe}=p.formulas.list.useQuery(),{data:L}=p.credits.balance.useQuery(void 0,{enabled:!!be}),{data:me}=p.bankroll.getByGameSession.useQuery({gameSessionId:c},{enabled:!!c&&!d}),{data:y}=p.bankroll.get.useQuery({id:d},{enabled:!!d,refetchInterval:3e3}),{data:Ia}=p.bankroll.getRounds.useQuery({sessionId:d},{enabled:!!d,refetchInterval:3e3}),w=r.useMemo(()=>pe?pe.filter(a=>{if(a.enabledGames)try{const t=typeof a.enabledGames=="string"?JSON.parse(a.enabledGames):a.enabledGames;return Array.isArray(t)&&t.includes("dragon_tiger")}catch{return!1}return!1}):[],[pe]),Se=p.sessions.create.useMutation({onSuccess:a=>{te(a.id),se(!1),De(""),F(0),h.sessions.list.invalidate(),g.success("สรà¹à¸²à¸à¹à¸à¸ªà¸à¸±à¸à¹à¸ªà¸·à¸à¸¡à¸±à¸à¸à¸£à¸ªà¸³à¹à¸£à¹à¸!")}}),k=p.rounds.add.useMutation({onSuccess:()=>{h.sessions.get.invalidate({id:c}),h.sessions.list.invalidate()}}),Ze=p.rounds.undo.useMutation({onSuccess:()=>{F(a=>a+1),h.sessions.get.invalidate({id:c}),h.sessions.list.invalidate(),g.success("ลà¸à¸à¸±à¸§à¸¥à¹à¸²à¸ªà¸¸à¸à¹à¸¥à¹à¸§")}}),ea=p.predictions.create.useMutation({onSuccess:a=>{a.predictionId&&(ve(a.predictionId),z("pending"))}}),aa=p.predictions.settle.useMutation({onSuccess:()=>{h.credits.balance.invalidate()}}),ta=p.formulas.use.useMutation({onSuccess:(a,t)=>{je(t.id),le(!1),h.formulas.list.invalidate();const s=w?.find(n=>n.id===t.id);g.success(`à¹à¸¥à¸·à¸à¸à¸ªà¸¹à¸à¸£: ${s?.name||"สูà¸à¸£"}`)}}),Pe=p.bankroll.create.useMutation(),sa=p.bankroll.recordResult.useMutation({onSuccess:()=>{h.bankroll.get.invalidate({id:d}),h.bankroll.getRounds.invalidate({sessionId:d})}}),ra=p.bankroll.continueSession.useMutation(),la=p.bankroll.endSession.useMutation(),x=B?.rounds||[];r.useEffect(()=>{if(c&&B?.session){const a=new Date(B.session.createdAt).getTime(),t=()=>{Ye(Math.floor((Date.now()-a)/1e3))};return t(),I.current=setInterval(t,1e3),()=>{I.current&&clearInterval(I.current)}}return()=>{I.current&&clearInterval(I.current)}},[c,B?.session]),r.useEffect(()=>{L&&parseFloat(L.balance)<5?ce(!0):ce(!1)},[L]),r.useEffect(()=>{V(null),F(0)},[c]),r.useEffect(()=>{me&&!d&&V(me.id)},[me]);const T=r.useMemo(()=>{if(!y)return null;const a=parseFloat(y.startingBankroll),t=parseFloat(y.currentBankroll),s=parseFloat(y.profitTargetPercent),n=parseFloat(y.stopLossPercent),P=a*(s/100),i=a+P,o=t-a,m=a>0?o/a*100:0,Y=P-o,_e=o>=0,u=Me[(y.currentStep||1)-1]||10,D=Math.round(t*(u/100)*100)/100,f=a*(1-n/100);return{starting:a,current:t,profitTargetPct:s,stopLossPct:n,targetAmount:P,targetBalance:i,stopLossBalance:f,currentPL:o,plPercent:m,remainingToTarget:Y,isProfit:_e,betPercentage:u,recommendedBet:D}},[y]),l=r.useMemo(()=>{const a=x.length,t=Ra,s=Math.min(a,t),n=a>=t,P=s/t*100;let i=null,o=0,m="à¸à¸³à¸¥à¸±à¸à¸§à¸´à¹à¸à¸£à¸²à¸°à¸«à¹...",Y=!1;if(n&&a>0){const u=x.map(f=>f.result).filter(f=>f!=="tie"),D=u.length;if(D>=3){let f=0,Z=0,$=0,S=1;for(let b=D-2;b>=0&&u[b]===u[D-1];b--)S++;S>=4?(f=35,m=`มัà¸à¸à¸£ ${u[D-1]==="dragon"?"ð":"ð¯"} (${S} à¸à¸²)`):S>=3?(f=25,m=`Streak ${S} à¸à¸²`):S>=2&&(f=15);const E=u.slice(-8);let Re=0;for(let b=1;b<E.length;b++)E[b]!==E[b-1]&&Re++;const Ae=E.length>1?Re/(E.length-1):0;Ae>.75?(Z=30,m="à¸à¸´à¸à¸à¸à¸ (สลัà¸à¸à¸µà¹)"):Ae>
1.6&&(Z=18,m="à¸à¸´à¸à¸à¸à¸");const Fe=u.slice(-10),ue=Fe.filter(b=>b==="dragon").length,he=Fe.filter(b=>b==="tiger").length,oa=Math.abs(ue-he);$=Math.min(oa*5,25),f>=30?(i=u[D-1],o=55+S*5+$,m=`มัà¸à¸à¸£ ${u[D-1]==="dragon"?"ð":"ð¯"} (${S} à¸à¸²)`):Z>=25?(i=u[D-1]==="dragon"?"tiger":"dragon",o=55+Z):f>=15?(i=u[D-1],o=50+f+$):(ue>he?(i="dragon",o=50+$):he>ue?(i="tiger",o=50+$):(i=u[D-1]==="dragon"?"tiger":"dragon",o=50),!m.includes("มัà¸à¸à¸£")&&!m.includes("à¸à¸´à¸à¸à¸à¸")&&(m="Mixed Analysis")),o=Math.max(40,Math.min(o,92)),o<55&&(Y=!0,i=null,m=`à¸à¹à¸²à¸¡à¸à¸²à¸à¸µà¹ (มัà¹à¸à¹à¸ ${Math.round(o)}% < 55%)`)}}return{currentCount:s,roundsNeeded:t,isReady:n,progress:P,prediction:i,confidence:Math.round(o),pattern:m,skipPrediction:Y}},[x,j,w]);r.useEffect(()=>{if(l.isReady&&l.prediction&&l.prediction!=="tie"&&c&&!q&&!v){const a=x.length+1,t=w?.find(s=>s.id===j);ea.mutate({sessionId:c,formulaName:t?.name||"DT Default",formulaId:j??void 0,roundNumber:a,recommendedSide:l.prediction,confidence:l.confidence})}},[l.prediction,l.isReady,c,q,v]);const na=async a=>{if(!c){g.error("à¸à¸£à¸¸à¸à¸²à¸ªà¸£à¹à¸²à¸à¸«à¸£à¸·à¸à¹à¸¥à¸·à¸à¸à¹à¸à¸ªà¸à¸±à¸à¸à¹à¸à¸");return}Ne(x.length),R(null);const t=w?.find(s=>s.id===j);if(k.mutate({sessionId:c,result:a,formulaAlgorithm:t?.algorithm??void 0,formulaName:t?.name??void 0,formulaId:j??void 0}),d&&y?.status==="active"){const s=l.prediction==="dragon"?"player":l.prediction==="tiger"?"banker":"none";let n="tie";a==="tie"?n="tie":l.prediction&&a===l.prediction?n="win":l.prediction&&(n="lose"),sa.mutate({sessionId:d,result:n,formulaSuggestion:s})}if(q&&We==="pending")try{const s=await aa.mutateAsync({predictionId:q,actualResult:a});if(a==="tie")z("skipped"),g.info("à¹à¸ªà¸¡à¸ - à¹à¸¡à¹à¸à¸±à¸à¸à¸¥à¸ªà¸¹à¸à¸£",{duration:2e3});else if(s.isCorrect){const n=Qe+1;we(n),z("correct"),n>=3?(ya(n),g.success(`ð¥ Streak x${n}! ð³ หัภ${s.creditDeducted} | à¹à¸«à¸¥à¸·à¸ ${s.newBalance}`,{duration:2500})):g.success(`â
สูà¸à¸£à¹à¸à¹à¸²! ð³ หัภ${s.creditDeducted} Points | à¸à¸à¹à¸«à¸¥à¸·à¸ ${s.newBalance}`,{duration:2e3}),parseFloat(s.newBalance)<5&&(ce(!0),g.warning("Point à¹à¸¡à¹à¹à¸à¸µà¸¢à¸à¸à¸",{duration:2500}))}else z("incorrect"),we(0),g.error("â สูà¸à¸£à¹à¸¡à¹à¹à¸à¹à¸² ð³ à¹à¸¡à¹à¸«à¸±à¸ Point",{duration:2e3});ve(null)}catch(s){console.error("Settle prediction error:",s)}setTimeout(()=>{K.current&&(K.current.scrollLeft=K.current.scrollWidth)},100)},ca=async()=>{const a=parseFloat(C);if(!a||a<=0){g.error("à¸à¸£à¸¸à¸à¸²à¹à¸ªà¹à¸à¸¸à¸à¹à¸£à¸´à¹à¸¡à¸à¹à¸");return}const t=parseFloat(de);if(!t||t<=0||t>100){g.error("à¸à¸¸à¸à¸à¸±à¸à¸à¸²à¸à¸à¸¸à¸à¹à¸¡à¹à¸à¸¹à¸à¸à¹à¸à¸");return}const s=parseFloat(xe);if(!s||s<=0||s>50){g.error("% à¹à¸à¸´à¸¡à¸à¸±à¸à¹à¸¡à¹à¸à¸¹à¸à¸à¹à¸à¸");return}try{const n=ke.trim()||B?.session?.name||"DT à¹à¸à¸ªà¸à¸±à¸",P=await Pe.mutateAsync({tableName:n,startingBankroll:a,profitTargetPercent:ge,stopLossPercent:t,startingBetPercent:s,gameSessionId:c??void 0});V(P.id),J(!1),h.bankroll.list.invalidate(),g.success("à¹à¸£à¸´à¹à¸¡à¸à¸³à¸à¸§à¸à¹à¸à¸´à¸à¸à¸¸à¸à¹à¸¥à¹à¸§")}catch(n){g.error(n.message||"à¹à¸à¸´à¸à¸à¹à¸à¸à¸´à¸à¸à¸¥à¸²à¸")}},Ce=async()=>{if(d)try{await ra.mutateAsync({sessionId:d}),h.bankroll.get.invalidate({id:d}),g.success("à¸à¸³à¹à¸à¸´à¸à¸à¸²à¸£à¸à¹à¸")}catch(a){g.error(a.message||"à¹à¸à¸´à¸à¸à¹à¸à¸à¸´à¸à¸à¸¥à¸²à¸")}},ia=async()=>{if(d)try{await la.mutateAsync({sessionId:d}),h.bankroll.get.invalidate({id:d}),h.bankroll.list.invalidate(),V(null),g.success("à¸à¸à¹à¸à¸ªà¸à¸±à¸à¹à¸à¸´à¸à¸à¸¸à¸")}catch(a){g.error(a.message||"à¹à¸à¸´à¸à¸à¹à¸à¸à¸´à¸à¸à¸¥à¸²à¸")}};r.useMemo(()=>{const a=Array.from({length:ee},()=>[]);let t=0,s=0,n=null;for(const i of x){const o=i.result;for(o===n?(s++,s>=ee&&(t++,s=0)):(n!==null&&t++,s=0,n=o);a[s].length<=t;)for(let m=0;m<ee;m++)a[m].length<=t&&a[m].push(null);a[s][t]=o}const P=Math.max(Aa,(a[0]?.length||0)+1);for(let i=0;i<ee;i++)for(;a[i].length<P;)a[i].push(null);return{grid:a,gridCols:P}},[x]);const M=r.useMemo(()=>{const a=x.filter(i=>i.result==="dragon").length,t=x.filter(i=>i.result==="tiger").length,s=x.filter(i=>i.result==="tie").length;let n=0,P="";for(let i=x.length-1;i>=0;i--){const o=x[i].result;if(o!=="tie")if(!P)P=o,n=1;else if(o===P)n++;else break}return{dCount:a,tCount:t,tieCount:s,currentStreak:n,streakSide:P}},[x]);return $e?e.jsxs("div",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:531",className:"space-y-4 p-4",children:[e.jsx(fe,{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:532",className:"h-8 w-48"}),e.jsx(fe,{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:533",className:"h-32 w-full"}),e.jsx(fe,{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:534",className:"h-20 w-full"})]}):be?e.jsxs("div",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:555",className:"space-y-3 relative",children:[e.jsxs("div",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:557",className:"flex items-center justify-between",children:[e.jsxs("div",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:558",className:"flex items-center gap-2",children:[e.jsx("button",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:559",onClick:()=>Ee("/game-selection"),className:"p-1.5 rounded-lg bg-white/5 hover:bg-white/10 transition-colors",children:e.jsx(fa,{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:560",className:"w-4 h-4 text-gray-400"})}),e.jsxs("div",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:562",className:"flex items-center gap-1.5",children:[e.jsx("span",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:563",className:"text-lg",children:"ð¯ð"}),e.jsx("h1",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:564",className:"text-lg font-bold bg-gradient-to-r from-orange-400 to-red-500 bg-clip-text text-transparent",children:"à¹à¸ªà¸·à¸à¸¡à¸±à¸à¸à¸£"})]}),L&&e.jsxs("span",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:56
17",className:"flex items-center gap-0.5 px-2 py-0.5 rounded-full bg-orange-500/10 border border-orange-500/30 text-[10px] text-orange-400 font-medium",children:[e.jsx(ba,{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:568",className:"w-2.5 h-2.5"}),L.balance]}),c&&X>0&&e.jsxs("span",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:573",className:`flex items-center gap-0.5 px-2 py-0.5 rounded-full border text-[10px] font-medium ${X>=3600?"bg-red-500/10 border-red-500/30 text-red-400 animate-pulse":"bg-gray-500/10 border-gray-500/30 text-gray-400"}`,children:[e.jsx(Ta,{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:577",className:"w-2.5 h-2.5"}),Math.floor(X/60),":",String(X%60).padStart(2,"0")]})]}),e.jsxs("div",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:582",className:"flex gap-1.5",children:[e.jsxs(O,{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:583",open:Oe,onOpenChange:se,children:[e.jsx(Ie,{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:584",asChild:!0,children:e.jsxs("button",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:585",className:"flex items-center gap-1 px-2.5 py-1.5 rounded-lg bg-orange-500/5 border border-orange-500/20 text-xs text-orange-300 hover:bg-orange-500/10 transition-all",children:[e.jsx(Da,{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:586",className:"h-3 w-3"}),"à¹à¸«à¸¡à¹"]})}),e.jsxs(U,{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:590",className:"bg-[#0A0F1A] border-orange-500/20",children:[e.jsx(G,{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:591",children:e.jsxs(W,{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:592",className:"text-white flex items-center gap-2",children:[e.jsx("span",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:593",children:"ð¯ð"}),"สรà¹à¸²à¸à¹à¸à¸ªà¸à¸±à¸à¹à¸ªà¸·à¸à¸¡à¸±à¸à¸à¸£"]})}),e.jsxs("div",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:597",className:"space-y-4 pt-4",children:[e.jsx("input",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:598",placeholder:"à¸à¸·à¹à¸à¹à¸à¸ªà¸à¸±à¸ à¹à¸à¹à¸ DT à¹à¸à¹à¸° 1",value:Te,onChange:a=>De(a.target.value),className:"w-full px-3 py-2.5 rounded-lg bg-black/60 border border-orange-500/20 text-white text-sm placeholder:text-gray-600 focus:border-orange-500/50 focus:outline-none"}),e.jsxs("button",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:604",onClick:()=>Se.mutate({name:Te||"DT à¹à¸à¸ªà¸à¸±à¸à¹à¸«à¸¡à¹",gameType:"dragon_tiger"}),className:"w-full py-2.5 rounded-lg bg-gradient-to-r from-orange-500 to-red-600 text-white font-medium text-sm shadow-[0_0_20px_rgba(249,115,22,0.2)] hover:shadow-[0_0_30px_rgba(249,115,22,0.3)] transition-all",disabled:Se.isPending,children:[e.jsx(pa,{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:609",className:"w-4 h-4 inline mr-1"}),"สรà¹à¸²à¸"]})]})]})]}),e.jsxs(O,{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:615",open:Ge,onOpenChange:ne,children:[e.jsx(Ie,{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:616",asChild:!0,children:e.jsx("button",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:617",className:"flex items-center gap-1 px-2.5 py-1.5 rounded-lg bg-white/5 border border-white/10 text-xs text-gray-300 hover:bg-white/10 transition-all",children:"ð à¹à¸«à¸¥à¸"})}),e.jsxs(U,{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:621",className:"bg-[#0A0F1A] border-orange-500/20 max-h-[70vh] overflow-y-auto",children:[e.jsx(G,{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:622",children:e.jsx(W,{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:623",className:"text-white",children:"à¹à¸¥à¸·à¸à¸à¹à¸à¸ªà¸à¸±à¸"})}),e.jsx("div",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:625",className:"space-y-2 pt-2",children:!_||_.length===0?e.jsx("p",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:627",className:"text-sm text-gray-500 text-center py-4",children:"ยัà¸à¹à¸¡à¹à¸¡à¸µà¹à¸à¸ªà¸à¸±à¸"}):_.map(a=>e.jsxs("button",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:630",onClick:()=>{te(a.id),ne(!1),F(0)},className:`w-full text-left p-3 rounded-lg border transition-all ${c===a.id?"bg-orange-500/10 border-orange-500/40":"bg-black/30 border-white/10 hover:border-orange-500/30"}`,children:[e.jsx("p",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:639",className:"text-sm text-white font-medium",children:a.name}),e.jsxs("p",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:640",className:"text-[10px] text-gray-500 mt-0.5",children:[a.roundCount||0," à¸à¸² ⢠",new Date(a.createdAt).toLocaleDateString("th-TH")]})]},a.id))})]})]})]})]}),e.jsxs("div",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:651",className:"ai-glass-card rounded-xl p-4",style:{borderColor:"rgba(249, 115, 22, 0.2)"},children:[e.jsxs("div",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:652",className:"flex items-center gap-4",children:[e.jsxs("div",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:654",className:"relative w-24 h-24 shrink-0",children:[e.jsxs("svg",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:655",className:"w-full h-full -rotate-90",viewBox:"0 0 100 100",children:[e.jsx("circle",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:656",cx:"50",cy:"50",r:"42",fill:"none",stroke:"rgba(249,115,22,0.1)",strokeWidth:"8"}),e.jsx("circle",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:657",cx:"50",cy:"50",r:"42",fill:"none",stroke:l.prediction==="dragon"?"#ef4444":l.prediction==="tiger"?"#f97316":"#6b7280",strokeWidth:"8",strokeLinecap:"round",strokeDasharray:`${(l.isReady?l.confidence:l.progress)*2.64} 264`,className:"transition-all duration-700"})]}),e.jsx("div",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:666",className:"absolute inset-0 flex flex-col items-center justify-center",children:l.isReady&&l.prediction?e.jsx("span",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:668",className:`text-2xl font-black ${l.prediction==="dragon"?"text-red-400":"text-orange-400"}`,children:l.prediction==="dragon"?"D":"T"}):e.jsx("span",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:672",className:"text-lg font-bold text-gray-500",children:"?"})})]}),e.jsxs("div",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:678",className:"flex-1 min-w-0",children:[e.jsx("div",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:679",className:"flex items-center gap-2 mb-1",children:l.isReady&&l.prediction?e.jsxs(e.Fragment,{children:[e.jsx("h3",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:682",className:`text-lg font-black ${l.prediction==="dragon"?"text-red-400":"text-orange-400"}`,children:l.prediction==="dragon"?"DRAGON":"TIGER"}),e.jsxs("span",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:685",className:"px-1.5 py-0.5 rounded-full bg-green-500/20 text-[10px] text-green-400 font-bold",children:[l.confidence,"%"]})]}
1):l.skipPrediction?e.jsx("h3",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:690",className:"text-base font-bold text-yellow-400",children:"â à¸à¹à¸²à¸¡à¸à¸²"}):e.jsxs("h3",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:692",className:"text-base font-bold text-gray-400",children:["รà¸à¸à¹à¸à¸¡à¸¹à¸¥ (",l.currentCount,"/",l.roundsNeeded,")"]})}),e.jsxs("p",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:697",className:"text-[11px] text-gray-400 mb-1.5",children:["สูà¸à¸£ ⢠",j?w?.find(a=>a.id===j)?.name||"สูà¸à¸£":l.pattern]}),e.jsxs("div",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:700",className:"flex items-center gap-1.5",children:[e.jsx("div",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:701",className:`w-2 h-2 rounded-full ${c?"bg-green-400 animate-pulse":"bg-gray-600"}`}),e.jsx("span",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:702",className:"text-[10px] text-gray-500",children:c?"Connected":"ยัà¸à¹à¸¡à¹à¸¡à¸µà¹à¸à¸ªà¸à¸±à¸"})]})]})]}),e.jsxs("button",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:708",onClick:()=>le(!re),className:"mt-3 w-full flex items-center justify-between px-3 py-2 rounded-lg bg-black/30 border border-orange-500/10 hover:border-orange-500/25 transition-all",children:[e.jsxs("span",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:712",className:"text-[11px] text-gray-400 flex items-center gap-1.5",children:[e.jsx(ja,{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:713",className:"w-3 h-3 text-orange-400"}),j?w?.find(a=>a.id===j)?.name:"à¹à¸¥à¸·à¸à¸à¸ªà¸¹à¸à¸£ (à¹à¸à¹à¸ªà¸¹à¸à¸£à¸à¸·à¹à¸à¸à¸²à¸)"]}),e.jsx("span",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:716",className:"text-[10px] text-orange-400",children:re?"à¸à¸´à¸":"à¹à¸¥à¸·à¸à¸à¸ªà¸¹à¸à¸£"})]}),re&&e.jsx("div",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:720",className:"mt-2 space-y-1.5 max-h-48 overflow-y-auto",children:w.length===0?e.jsx("p",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:722",className:"text-xs text-gray-500 text-center py-4",children:"ยัà¸à¹à¸¡à¹à¸¡à¸µà¸ªà¸¹à¸à¸£à¹à¸ªà¸·à¸à¸¡à¸±à¸à¸à¸£"}):w.map(a=>e.jsx("div",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:725",onClick:()=>{a.isFree===1?(je(a.id),le(!1),g.success(`à¹à¸¥à¸·à¸à¸à¸ªà¸¹à¸à¸£: ${a.name}`)):ta.mutate({id:a.id})},className:`flex items-center gap-2 p-2 rounded-lg cursor-pointer transition-all active:scale-[0.98] ${j===a.id?"bg-orange-500/15 border border-orange-500/40":"bg-black/30 border border-orange-500/10 hover:border-orange-500/25"}`,children:e.jsxs("div",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:742",className:"flex-1 min-w-0",children:[e.jsxs("div",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:743",className:"flex items-center gap-1.5",children:[e.jsx("p",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:744",className:"text-xs font-medium text-white truncate",children:a.name}),a.isFree===1&&e.jsx("span",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:746",className:"px-1 py-0.5 rounded bg-green-500/20 text-[8px] text-green-400 shrink-0",children:"à¸à¸£à¸µ"})]}),e.jsxs("p",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:749",className:"text-[9px] text-gray-500",children:["Win Rate ",a.winRate,"%"]})]})},a.id))})]}),e.jsxs("div",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:759",className:"ai-glass-card rounded-xl p-3",style:{borderColor:"rgba(249, 115, 22, 0.15)"},children:[e.jsxs("div",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:760",className:"flex items-center justify-between mb-2",children:[e.jsx("span",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:761",className:"text-[11px] text-gray-400 font-medium tracking-wider",children:"ROADMAP"}),e.jsxs("span",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:762",className:"text-[10px] text-gray-500",children:[x.length," à¸à¸²"]})]}),x.length===0?e.jsx("div",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:765",className:"flex items-center justify-center h-8",children:e.jsx("p",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:766",className:"text-[10px] text-gray-600",children:"ยัà¸à¹à¸¡à¹à¸¡à¸µà¸à¹à¸à¸¡à¸¹à¸¥ - à¸à¸à¸à¸¸à¹à¸¡à¸à¹à¸²à¸à¸¥à¹à¸²à¸à¹à¸à¸·à¹à¸à¹à¸£à¸´à¹à¸¡"})}):e.jsx("div",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:769",className:"flex gap-1.5 overflow-x-auto pb-1",ref:K,style:{scrollBehavior:"smooth"},children:x.slice(-20).map((a,t)=>e.jsx("div",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:771",className:`w-7 h-7 rounded-full flex items-center justify-center text-[9px] font-bold text-white shrink-0 ${a.result==="dragon"?"bg-gradient-to-br from-red-500 to-red-700 shadow-[0_0_6px_rgba(220,38,38,0.4)]":a.result==="tiger"?"bg-gradient-to-br from-blue-400 to-blue-600 shadow-[0_0_6px_rgba(59,130,246,0.4)]":"bg-gradient-to-br from-green-400 to-green-600 shadow-[0_0_6px_rgba(34,197,94,0.4)]"}`,children:a.result==="dragon"?"D":a.result==="tiger"?"T":"E"},t))})]}),e.jsxs("div",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:789",className:"grid grid-cols-4 gap-2",children:[e.jsxs("div",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:790",className:"ai-glass-card rounded-lg p-2 text-center",style:{borderColor:"rgba(249, 115, 22, 0.1)"},children:[e.jsxs("div",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:791",className:"flex items-center justify-center gap-0.5 mb-0.5",children:[e.jsx(Na,{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:792",className:"w-3 h-3 text-cyan-400"}),e.jsx("span",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:793",className:"text-[9px] text-gray-500",children:"D/T"})]}),e.jsxs("p",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:795",className:"text-sm font-bold text-white",children:[M.dCount,"/",M.tCount]})]}),e.jsxs("div",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:797",className:"ai-glass-card rounded-lg p-2 text-center",style:{borderColor:"rgba(249, 115, 22, 0.1)"},children:[e.jsxs("div",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:798",className:"flex items-center justify-center gap-0.5 mb-0.5",children:[e.jsx(va,{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:799",className:"w-3 h-3 text-orange-400"}),e.jsx("span",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:800",className:"text-[9px] text-gray-500",children:"Streak"})]}),e.jsx("p",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:802",className:"text-sm font-bold text-white",children:M.currentStreak>0?M.currentStreak:"â"})]}),e.jsxs("div",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:804",className:"ai-glass-card rounded-lg p-2 text-center",style:{borderColor:"rgba(249, 115, 22, 0.1)"},children:[e.jsxs("div",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:805",className:"flex items-center justify-center gap-0.5 mb-0.5",children:[e.jsx(ma,{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:806",className:"w-3 h-3 text-green-400"}),e.jsx("span",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:807",className:"text-[9px] text-gray-500",children:"Total"})]}),e.jsx("p",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:809",className:"text-sm font-bold text-white",children:x.length})]}),e.jsxs("div",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:811",className:"ai-glass-card rounded-lg p-2 text-center",style:{borderColor:"rgba(249, 115, 22, 0.1)"},children:[e.jsxs("div",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:812",className:"flex items-center justify-center gap-0.5 mb-0.5",children:[e.jsx(Be,{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:813",className:"w-3 h-3 text-purple-400"}),e.jsx("span",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:814",className:"text-[9px] text-gray-500",children:"Tie"})]}),e.jsx("p",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:816",className:"text-sm font-bold text-white",children:M.tieCount})]})]}),c&&e.jsxs("div",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:822",className:"ai-glass-card rounded-xl overflow-hidden",style:{borderColor:"rgba(249, 115, 22, 0.15)"},children:[e.jsxs("button",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:823",onClick:()=>d?qe(!oe):J(!0),className:"w-full flex items-center justify-between px-3 py-2.5",children:[e.jsxs("span",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:827",className:"text-[11px] text-orange-300 font-medium flex items-center gap-1.5",children:[e.jsx(Le,{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:828",className:"w-3.5 h-3.5"}),d?"à¹à¸à¸´à¸à¸à¸¸à¸":"à¸à¸±à¹à¸à¸à¹à¸²à¹à¸à¸´à¸à¸à¸¸à¸"]}),d&&T?e.jsxs("div",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:832",className:"flex items-center gap-2",children:[e.jsxs("span",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:833",className:`text-xs font-bold ${T.isProfit?"text-green-400":"text-red-400"}
1`,children:[T.isProfit?"+":"",T.currentPL.toLocaleString()," ฿"]}),oe?e.jsx(wa,{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:836",className:"w-3.5 h-3.5 text-gray-500"}):e.jsx(Pa,{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:836",className:"w-3.5 h-3.5 text-gray-500"})]}):e.jsx("span",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:839",className:"text-[10px] text-orange-400",children:"à¸à¸±à¹à¸à¸à¹à¸²"})]}),d&&T&&oe&&e.jsxs("div",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:844",className:"px-3 pb-3 space-y-2",children:[e.jsx("div",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:846",className:"relative h-2 bg-gray-800 rounded-full overflow-hidden",children:e.jsx("div",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:847",className:`absolute left-0 top-0 h-full rounded-full transition-all duration-500 ${T.isProfit?"bg-gradient-to-r from-green-500 to-emerald-400":"bg-gradient-to-r from-red-500 to-orange-500"}`,style:{width:`${Math.min(Math.abs(T.plPercent),100)}%`}})}),e.jsxs("div",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:854",className:"grid grid-cols-3 gap-2 text-center",children:[e.jsxs("div",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:855",children:[e.jsx("p",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:856",className:"text-[9px] text-gray-500",children:"à¸à¸¸à¸à¸à¸±à¸à¸à¸¸à¸à¸±à¸"}),e.jsx("p",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:857",className:"text-xs font-bold text-white",children:T.current.toLocaleString()})]}),e.jsxs("div",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:859",children:[e.jsx("p",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:860",className:"text-[9px] text-gray-500",children:"à¹à¸à¹à¸²à¸«à¸¡à¸²à¸¢"}),e.jsxs("p",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:861",className:"text-xs font-bold text-green-400",children:["+",T.targetAmount.toLocaleString()]})]}),e.jsxs("div",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:863",children:[e.jsx("p",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:864",className:"text-[9px] text-gray-500",children:"à¹à¸à¸´à¸¡à¸à¸±à¸"}),e.jsx("p",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:865",className:"text-xs font-bold text-amber-400",children:T.recommendedBet.toLocaleString()})]})]}),e.jsxs("div",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:870",className:"flex items-center gap-1.5",children:[e.jsx("span",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:871",className:"text-[9px] text-gray-500",children:"Step:"}),Me.map((a,t)=>e.jsx("div",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:873",className:`w-5 h-5 rounded-full flex items-center justify-center text-[8px] font-bold ${t+1===(y?.currentStep||1)?"bg-orange-500 text-white":t+1<(y?.currentStep||1)?"bg-orange-500/30 text-orange-300":"bg-gray-800 text-gray-600"}`,children:t+1},t)),e.jsxs("span",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:886",className:"text-[9px] text-gray-500 ml-auto",children:[T.betPercentage,"%"]})]}),y?.status==="target_reached"&&e.jsxs("div",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:891",className:"flex items-center justify-between p-2 rounded-lg bg-green-500/10 border border-green-500/30",children:[e.jsx("span",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:892",className:"text-[10px] text-green-400 font-medium",children:"ð¯ à¸à¸¶à¸à¹à¸à¹à¸²à¸«à¸¡à¸²à¸¢à¹à¸¥à¹à¸§!"}),e.jsx("button",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:893",onClick:Ce,className:"text-[10px] text-green-300/70 underline",children:"à¹à¸¥à¹à¸à¸à¹à¸"})]}),y?.status==="stop_loss_hit"&&e.jsxs("div",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:897",className:"flex items-center justify-between p-2 rounded-lg bg-red-500/10 border border-red-500/30",children:[e.jsx("span",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:898",className:"text-[10px] text-red-400 font-medium",children:"â ï¸ à¸à¸¶à¸à¸à¸¸à¸à¸à¸±à¸à¸à¸²à¸à¸à¸¸à¸"}),e.jsx("button",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:899",onClick:Ce,className:"text-[10px] text-red-300/70 underline",children:"à¹à¸¥à¹à¸à¸à¹à¸"})]}),e.jsxs("div",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:904",className:"flex gap-2",children:[e.jsx("button",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:905",onClick:()=>J(!0),className:"flex-1 py-1.5 rounded-lg bg-orange-500/5 border border-orange-500/15 text-[10px] text-orange-300/70 hover:bg-orange-500/10 transition-all",children:"à¸à¸±à¹à¸à¸à¹à¸²à¹à¸«à¸¡à¹"}),e.jsx("button",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:911",onClick:ia,className:"flex-1 py-1.5 rounded-lg bg-red-500/5 border border-red-500/15 text-[10px] text-red-300/70 hover:bg-red-500/10 transition-all",children:"à¸
1à¸à¹à¸à¸ªà¸à¸±à¸"})]})]})]}),e.jsxs("div",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:924",className:"grid grid-cols-3 gap-2.5",children:[e.jsxs("button",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:925",onClick:()=>{if(v){A(!0),setTimeout(()=>A(!1),500);return}"vibrate"in navigator&&navigator.vibrate(10),R("tiger")},disabled:!c||k.isPending,className:`h-[80px] text-lg font-bold text-white rounded-xl disabled:opacity-40 bg-gradient-to-br from-blue-500 to-blue-700 active:scale-[0.93] transition-transform shadow-[0_4px_20px_rgba(59,130,246,0.3)] ${v?"grayscale opacity-50":""} ${ie?"animate-shake":""}`,children:[e.jsx("span",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:934",className:"text-2xl block",children:"T"}),e.jsx("span",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:935",className:"text-xs",children:"Tiger"})]}),e.jsxs("button",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:937",onClick:()=>{if(v){A(!0),setTimeout(()=>A(!1),500);return}"vibrate"in navigator&&navigator.vibrate(10),R("tie")},disabled:!c||k.isPending,className:`h-[80px] text-lg font-bold text-white rounded-xl disabled:opacity-40 bg-gradient-to-br from-green-500 to-green-700 active:scale-[0.93] transition-transform shadow-[0_4px_20px_rgba(34,197,94,0.3)] ${v?"grayscale opacity-50":""} ${ie?"animate-shake":""}`,children:[e.jsx("span",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:946",className:"text-2xl block",children:"T"}),e.jsx("span",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:947",className:"text-xs",children:"Tie"})]}),e.jsxs("button",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:949",onClick:()=>{if(v){A(!0),setTimeout(()=>A(!1),500);return}"vibrate"in navigator&&navigator.vibrate(10),R("dragon")},disabled:!c||k.isPending,className:`h-[80px] text-lg font-bold text-white rounded-xl disabled:opacity-40 bg-gradient-to-br from-red-600 to-red-800 active:scale-[0.93] transition-transform shadow-[0_4px_20px_rgba(220,38,38,0.3)] ${v?"grayscale opacity-50":""} ${ie?"animate-shake":""}`,children:[e.jsx("span",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:958",className:"text-2xl block",children:"D"}),e.jsx("span",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:959",className:"text-xs",children:"Dragon"})]})]}),c&&e.jsxs("div",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:965",className:"flex items-center justify-center gap-3",children:[e.jsxs("button",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:966",onClick:()=>{if(Q>=ae){g.error("ยà¹à¸à¸à¸«à¸¥à¸±à¸à¸à¸£à¸ 3 à¸à¸£à¸±à¹à¸à¹à¸¥à¹à¸§");return}H(!0)},disabled:x.length===0||Q>=ae,className:"h-9 px-4 text-[11px] font-medium rounded-lg border border-red-500/20 bg-red-500/5 text-red-300 disabled:opacity-30 transition-all active:scale-[0.95] flex items-center justify-center gap-1",children:[e.jsx(ka,{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:974",className:"h-3 w-3"}),"ลà¸à¸à¸±à¸§à¸¥à¹à¸²à¸ªà¸¸à¸ (",ae-Q,")"]}),e.jsxs("button",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:977",onClick:()=>{k.mutate({sessionId:c,result:"tie"}),Ne(x.length),g.info("à¸à¹à¸²à¸¡à¸à¸² (Tie)",{duration:1500})},disabled:k.isPending,className:"h-9 px-4 text-[11px] font-medium rounded-lg border border-yellow-500/20 bg-yellow-500/5 text-yellow-300 disabled:opacity-30 transition-all active:scale-[0.95] flex items-center justify-center gap-1",children:[e.jsx(ua,{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:986",className:"h-3 w-3"}),"à¸à¹à¸²à¸¡à¸à¸²"]})]}),!c&&e.jsxs("div",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:994",className:"session-welcome-container session-welcome-container--dt",children:[e.jsxs("div",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:995",className:"text-center mb-4",children:[e.jsxs("div",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:996",className:"inline-flex items-center gap-2 px-3 py-1 rounded-full bg-orange-500/10 border border-orange-500/20 mb-3",children:[e.jsx("span",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:997",className:"text-sm",children:"ðð¯"}),e.jsx("span",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:998",className:"text-[11px] text-orange-300 font-medium",children:"à¸à¸£à¹à¸à¸¡à¹à¸£à¸´à¹à¸¡à¹à¸¥à¹à¸"})]}),e.jsx("h3",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:1000",className:"text-base font-bold text-white mb-1",children:"à¹à¸¥à¸·à¸à¸à¸§à¸´à¸à¸µà¹à¸£à¸´à¹à¸¡à¸à¹à¸"}),e.jsx("p",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:1001",className:"text-[11px] text-gray-500",children:"สรà¹à¸²à¸à¹à¸à¸ªà¸à¸±à¸à¹à¸ªà¸·à¸à¸¡à¸±à¸à¸à¸£à¹à¸«à¸¡à¹à¸«à¸£à¸·à¸à¹à¸¥à¹à¸à¸à¹à¸à¸à¸²à¸à¹à¸à¸´à¸¡"})]}),e.jsxs("div",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:1003",className:"grid grid-cols-2 gap-3 mb-3",children:[e.jsxs("button",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:1004",onClick:()=>se(!0),className:"session-action-card session-action-card--dt-primary group",children:[e.jsx("div",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:1005",className:"session-action-card__icon session-action-card__icon--dt-primary",children:e.jsx(Sa,{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:1006",className:"w-5 h-5 text-orange-300"})}),e.jsx("span",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:1008",className:"text-sm font-bold text-white mt-2",children:"à¹à¸£à¸´à¹à¸¡à¹à¸«à¸¡à¹"}),e.jsx("span",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:1009",className:"text-[10px] text-orange-300/60 mt-0.5",children:"สรà¹à¸²à¸à¸«à¹à¸à¸à¹à¸¥à¹à¸à¹à¸«à¸¡à¹"}),e.jsx("div",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:1010",className:"session-action-card__arrow",children:e.jsx(ye,{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:1011",className:"w-3.5 h-3.5 text-orange-400/50 group-hover:text-orange-300 transition-colors"})})]}),e.jsxs("button",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:1014",onClick:()=>ne(!0),className:"session-action-card session-action-card--dt-secondary group",children:[e.jsx("div",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:1015",className:"session-action-card__icon session-action-card__icon--dt-secondary",children:e.jsx(Ca,{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:1016",className:"w-5 h-5 text-amber-300"})}),e.jsx("span",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:1018",className:"text-sm font-bold text-white mt-2",children:"à¹à¸¥à¹à¸à¸à¹à¸"}),e.jsx("span",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:1019",className:"text-[10px] text-amber-300/60 mt-0.5",children:"à¹à¸«à¸¥à¸à¹à¸à¸ªà¸à¸±à¸à¹à¸à¸´à¸¡"}),e.jsx("div",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:1020",className:"session-action-card__arrow",children:e.jsx(ye,{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:1021",className:"w-3.5 h-3.5 text-amber-400/50 group-hover:text-amber-300 transition-colors"})})]})]}),_&&_.length>0&&e.jsxs("div",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:1026",className:"session-recent-list session-recent-list--dt",children:[e.jsxs("div",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:1027",className:"flex items-center justify-between mb-2",children:[e.jsxs("span",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:1028",className:"text-[11px] text-gray-400 font-medium flex items-center gap-1.5",children:[e.jsx(Be,{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:1029",className:"w-3 h-3"}),"à¹à¸à¸ªà¸à¸±à¸à¸¥à¹à¸²à¸ªà¸¸à¸"]}),e.jsxs("span",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:1032",className:"text-[10px] text-orange-400/60",children:[_.length," รายà¸à¸²à¸£"]})]}),e.jsx("div",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:1034",className:"space-y-1.5",children:_.slice(0,3).map(a=>e.jsxs("button",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:1036",onClick:()=>{te(a.id),F(0)},className:"session-recent-item session-recent-item--dt group",children:[e.jsxs("div",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:1041",className:"flex items-center gap-2.5 flex-1 min-w-0",children:[e.jsx("div",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:1042",className:"w-7 h-7 rounded-lg bg-gradient-to-br from-orange-500/20 to-red-500/20 border border-orange-500/20 flex items-center justify-center shrink-0",children:e.jsx(ha,{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:1043",className:"w-3.5 h-3.5 text-orange-400"})}),e.jsxs("div",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:1045",className:"flex-1 min-w-0 text-left",children:[e.jsx("p",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:1046",className:"text-xs font-medium text-white truncate",children:a.name}),e.jsxs("p",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:1047",className:"text-[10px] text-gray-500",children:[a.roundCount||0," à¸à¸²"]})]})]}),e.jsxs("div",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:1050",className:"flex items-center gap-1",children:[e.jsx("span",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:1051",className:"text-[9px] text-gray-600",children:new Date(a.createdAt).toLocaleDateString("th-TH",{day:"numeric",month:"short"})}),e.jsx(ye,{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:1054",className:"w-3 h-3 text-gray-600 group-hover:text-orange-400 transition-colors"})]})]},a.id))})]})]}),e.jsx(O,{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:1065",open:!!N,onOpenChange:()=>R(null),children:e.jsxs(U,{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:1066",className:"bg-[#0A0F1A] border-orange-500/20 max-w-[280px]",children:[e.jsx(G,{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:1067",children:e.jsx(W,{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:1068",className:"text-white text-center",children:"ยืà¸à¸¢à¸±à¸à¸à¸±à¸à¸à¸¶à¸à¸à¸¥"})}),e.jsxs("div",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:1070",className:"flex flex-col items-center py-3",children:[e.jsx("div",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:1071",className:`w-16 h-16 rounded-full flex items-center justify-center text-2xl font-black text-white mb-2 ${N==="dragon"?"bg-gradient-to-br from-red-500 to-red-700":N==="tiger"?"bg-gradient-to-br from-blue-500 to-blue-700":"bg-gradient-to-br from-green-500 to-green-700"}`,children:N==="dragon"?"D":"T"}),e.jsx("p",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:1078",className:"text-sm text-gray-300",children:N==="dragon"?"มัà¸à¸à¸£ (Dragon)":N==="tiger"?"à¹à¸ªà¸·à¸ (Tiger)":"à¹à¸ªà¸¡à¸ (Tie)"})]}),e.jsxs("div",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:1082",className:"flex gap-3",children:[e.jsx("button",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:1083",onClick:()=>R(null),className:"flex-1 py-2.5 rounded-lg border border-gray-600 text-gray-300 text-sm",children:"ยà¸à¹à¸¥à¸´à¸"}),e.jsx("button",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:1089",onClick:()=>{N&&na(N)},disabled:k.isPending,className:"flex-1 py-2.5 rounded-lg bg-gradient-to-r from-orange-500 to-red-600 text-white font-medium text-sm",children:k.isPending?e.jsx(_a,{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:1094",className:"w-4 h-4 animate-spin mx-auto"}):"ยืà¸à¸¢à¸±à¸"})]})]})}),e.jsx(O,{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:1101",open:Ue,onOpenChange:H,children:e.jsxs(U,{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:1102",className:"bg-[#0A0F1A] border-red-500/20 max-w-[280px]",children:[e.jsx(G,{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:1103",children:e.jsx(W,{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:1104",className:"text-white text-center",children:"ลà¸à¸à¸±à¸§à¸¥à¹à¸²à¸ªà¸¸à¸?"})}),e.jsxs("p",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:1106",className:"text-xs text-gray-400 text-center",children:["à¹à¸«à¸¥à¸·à¸à¹à¸à¸à¸²à¸ªà¸¥à¸à¸à¸µà¸ ",ae-Q," à¸à¸£à¸±à¹à¸"]}),e.jsxs("div",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:1107",className:"flex gap-3 pt-2",children:[e.jsx("button",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:1108",onClick:()=>H(!1),className:"flex-1 py-2.5 rounded-lg border border-gray-600 text-gray-300 text-sm",children:"ยà¸à¹à¸¥à¸´à¸"}),e.jsx("button",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:1111",onClick:()=>{Ze.mutate({sessionId:c}),H(!1)},className:"flex-1 py-2.5 rounded-lg bg-red-600 text-white font-medium text-sm",children:"ลà¸"})]})]})}),e.jsx(O,{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:1122",open:He,onOpenChange:J,children:e.jsxs(U,{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:1123",className:"bg-[#0A0F1A] border-orange-500/20 max-h-[80vh] overflow-y-auto",children:[e.jsx(G,{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:1124",children:e.jsxs(W,{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:1125",className:"text-white flex items-center gap-2",children:[e.jsx(Le,{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:1126",className:"w-5 h-5 text-orange-400"}),"à¸à¸±à¹à¸à¸à¹à¸²à¹à¸à¸´à¸à¸à¸¸à¸ (à¹à¸ªà¸·à¸à¸¡à¸±à¸à¸à¸£)"]})}),e.jsxs("div",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:1130",className:"space-y-4 pt-2",children:[e.jsxs("div",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:1131",children:[e.jsx("label",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:1132",className:"text-xs text-gray-400 mb-1 block",children:"à¸à¸·à¹à¸à¸«à¹à¸à¸/
1à¹à¸à¹à¸°"}),e.jsx("input",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:1133",type:"text",value:ke,onChange:a=>Ke(a.target.value),placeholder:"à¹à¸à¹à¸ DT à¹à¸à¹à¸° VIP 1",className:"w-full px-3 py-2.5 rounded-lg bg-black/60 border border-orange-500/15 text-white text-sm placeholder:text-gray-600 focus:border-orange-500/50 focus:outline-none"})]}),e.jsxs("div",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:1141",children:[e.jsx("label",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:1142",className:"text-xs text-gray-400 mb-1 block",children:"à¸à¸¸à¸à¹à¸£à¸´à¹à¸¡à¸à¹à¸ (à¸à¸²à¸)"}),e.jsx("input",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:1143",type:"number",value:C,onChange:a=>ze(a.target.value),placeholder:"à¹à¸à¹à¸ 10000",className:"w-full px-3 py-2.5 rounded-lg bg-black/60 border border-orange-500/15 text-white text-sm placeholder:text-gray-600 focus:border-orange-500/50 focus:outline-none"})]}),e.jsxs("div",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:1151",children:[e.jsx("label",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:1152",className:"text-xs text-gray-400 mb-1 block",children:"à¹à¸à¹à¸²à¸«à¸¡à¸²à¸¢à¸à¸³à¹à¸£ (%)"}),e.jsx("div",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:1153",className:"grid grid-cols-4 gap-1.5",children:[20,50,100,200].map(a=>e.jsxs("button",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:1155",onClick:()=>Je(a),className:`px-2 py-1.5 rounded-lg text-xs font-medium transition-all ${ge===a?"bg-orange-500 text-black shadow-[0_0_10px_rgba(249,115,22,0.3)]":"bg-black/40 border border-orange-500/15 text-gray-300 hover:border-orange-500/30"}`,children:[a,"%"]},a))})]}),e.jsxs("div",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:1167",children:[e.jsx("label",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:1168",className:"text-xs text-gray-400 mb-1 block",children:"à¸à¸¸à¸à¸à¸±à¸à¸à¸²à¸à¸à¸¸à¸ (%)"}),e.jsx("input",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:1169",type:"number",value:de,onChange:a=>Ve(a.target.value),placeholder:"à¹à¸à¹à¸ 50",className:"w-full px-3 py-2.5 rounded-lg bg-black/60 border border-orange-500/15 text-white text-sm placeholder:text-gray-600 focus:border-orange-500/50 focus:outline-none"})]}),e.jsxs("div",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:1177",children:[e.jsx("label",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:1178",className:"text-xs text-gray-400 mb-1 block",children:"% à¹à¸à¸´à¸¡à¸à¸±à¸à¹à¸£à¸´à¹à¸¡à¸à¹à¸ (Step 1)"}),e.jsx("input",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:1179",type:"number",value:xe,onChange:a=>Xe(a.target.value),placeholder:"10",className:"w-full px-3 py-2.5 rounded-lg bg-black/60 border border-orange-500/15 text-white text-sm placeholder:text-gray-600 focus:border-orange-500/50 focus:outline-none"})]}),parseFloat(C)>0&&e.jsxs("div",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:1190",className:"p-3 rounded-xl bg-black/60 border border-orange-500/20 space-y-1.5",children:[e.jsx("p",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:1191",className:"text-xs text-orange-400 font-medium",children:"สรุà¸"}),e.jsxs("div",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:1192",className:"grid grid-cols-2 gap-2 text-xs",children:[e.jsxs("div",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:1193",children:[e.jsx("span",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:1193",className:"text-gray-500",children:"à¸à¸¸à¸:"})," ",e.jsxs("span",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:1193",className:"text-white",children:[parseFloat(C).toLocaleString()," ฿"]})]}),e.jsxs("div",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:1194",children:[e.jsx("span",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:1194",className:"text-gray-500",children:"à¹à¸à¹à¸²:"})," ",e.jsxs("span",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:1194",className:"text-green-400",children:["+",(parseFloat(C)*ge/100).toLocaleString()," ฿"]})]}),e.jsxs("div",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:1195",children:[e.jsx("span",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:1195",className:"text-gray-500",children:"à¸à¸±à¸à¸à¸²à¸à¸à¸¸à¸:"})," ",e.jsxs("span",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:1195",className:"text-red-400",children:["-",(parseFloat(C)*(parseFloat(de)||0)/100).toLocaleStr
1ing()," ฿"]})]}),e.jsxs("div",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:1196",children:[e.jsx("span",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:1196",className:"text-gray-500",children:"à¹à¸à¸´à¸¡à¸à¸±à¸ Step 1:"})," ",e.jsxs("span",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:1196",className:"text-amber-400",children:[(parseFloat(C)*(parseFloat(xe)||10)/100).toLocaleString()," ฿"]})]})]})]}),e.jsx("button",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:1201",onClick:ca,disabled:Pe.isPending,className:"w-full py-3 rounded-xl bg-gradient-to-r from-orange-500 to-red-600 text-white font-bold text-sm shadow-[0_0_20px_rgba(249,115,22,0.2)] hover:shadow-[0_0_30px_rgba(249,115,22,0.3)] transition-all disabled:opacity-50",children:Pe.isPending?"à¸à¸³à¸¥à¸±à¸à¸ªà¸£à¹à¸²à¸...":"à¹à¸£à¸´à¹à¸¡à¸à¸³à¸à¸§à¸à¹à¸à¸´à¸à¸à¸¸à¸"})]})]})})]}):e.jsxs("div",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:541",className:"flex flex-col items-center justify-center min-h-[60vh] gap-4 p-6",children:[e.jsx("div",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:542",className:"w-16 h-16 rounded-full bg-orange-500/20 flex items-center justify-center",children:e.jsx("span",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:543",className:"text-3xl",children:"ð¯"})}),e.jsx("h2",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:545",className:"text-lg font-bold text-white",children:"Dragon Tiger"}),e.jsx("p",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:546",className:"text-sm text-gray-400 text-center",children:"à¸à¸£à¸¸à¸à¸²à¹à¸à¹à¸²à¸ªà¸¹à¹à¸£à¸°à¸à¸à¹à¸à¸·à¹à¸à¹à¸à¹à¸ªà¸¹à¸à¸£à¹à¸ªà¸·à¸à¸¡à¸±à¸à¸à¸£"}),e.jsx("a",{"data-loc":"client/src/pages/DragonTigerPlayPage.tsx:547",href:xa(),className:"px-6 py-2.5 rounded-lg bg-gradient-to-r from-orange-500 to-red-600 text-white font-medium text-sm",children:"à¹à¸à¹à¸²à¸ªà¸¹à¹à¸£à¸°à¸à¸"})]})}export{at 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.