PageSourceSearch

https://bacctrack-7ha7hyw7.manus.space/assets/RiskManagementPage-FkIYxsk2.js

js bacctrack-7ha7hyw7.manus.space collected 2026-10-03 05:02:59 UTC 29,532 bytes, 6 lines download raw bytes

1import{f as K,a as G,u as $,r as l,ae as W,j as e,af as Y,d as L,K as h,ag as U,ah as V,ai as J,aj as Q,ak as z,al as X,L as Z,H as y,I as _,V as M,J as ee,M as se}from"./index-C3Qps0S4.js";import{B as I}from"./button-xdpkFraK.js";import{I as f}from"./input-Dj8udylZ.js";import{c as C,a as ae,f as te,g as ne,h as ie,H as A,j as ce,l as le}from"./riskControl-CfbaOeSM.js";import{I as re}from"./info-DmEqpz6r.js";import{G as ge}from"./gauge-C7AQYjdr.js";import{C as de}from"./circle-check-DmGdFs0e.js";import"./index-Jol-UBUv.js";import"./dialog-BY1FISUw.js";import"./index-BKUanX19.js";import"./index-Dr02_Kwf.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 oe=K("CirclePause",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"10",x2:"10",y1:"15",y2:"9",key:"c1nkhi"}],["line",{x1:"14",x2:"14",y1:"15",y2:"9",key:"h65svq"}]]),u={title:"Risk Management & Smart Limit | ควบคุมงบ เวลา และความเสี่ยง | MAWIN SIAM",description:"ตั้ง Budget Limit, Session Time, Loss Limit และ Break Reminder พร้อม AI ช่วยตรวจจับพฤติกรรมเสี่ยง เช่น Tilt และการไล่ทุน เพื่อช่วยให้เล่นอย่างมีสติ",path:"/risk-management"},xe={baccarat:X,hilo:z,roulette:Q,slot:J,football:V,"dragon-tiger":U},B=[{id:"baccarat",th:"บาคาร่า",en:"Baccarat"},{id:"hilo",th:"ไฮโล",en:"Hi-Lo / Sic Bo"},{id:"roulette",th:"รูเล็ต",en:"Roulette"},{id:"slot",th:"สล็อต",en:"Slot"},{id:"football",th:"ฟุตบอล",en:"Football"},{id:"dragon-tiger",th:"เสือมังกร",en:"Dragon Tiger"}],T=[{question:"Smart Limit รับประกันว่าจะไม่เสียเกินกำหนดหรือไม่?",answer:"ไม่ ระบบเตือนจากค่าที่ผู้ใช้กรอกและไม่สามารถควบคุมเว็บภายนอกได้ ผู้ใช้ยังต้องหยุดเองเมื่อถึงขีดจำกัด"},{question:"AI Risk Score คือโอกาสชนะหรือไม่?",answer:"ไม่ใช่ คะแนนนี้รวมสัญญาณงบ เวลา เงินต่อรอบ การพัก และอารมณ์ พร้อมเปิดเผยเหตุผล ไม่เกี่ยวกับผลเกมถัดไป"},{question:"ทำไมล็อกแผนแล้วแก้ Limit ไม่ได้?",answer:"เพื่อไม่ให้ขยายขีดจำกัดระหว่าง Session ตามอารมณ์ การเริ่มแผนใหม่ควรทำเมื่อ Session เดิมสิ้นสุดและผู้ใช้พร้อมทบทวน"},{question:"ตรวจจับการไล่ทุนอย่างไร?",answer:"ระบบมองหาการเพิ่มเงินต่อรอบหลังผลขาดทุนต่อเนื่องร่วมกับสัญญาณอื่น ไม่เรียกสิ่งนี้ว่ากลยุทธ์และไม่แนะนำเดิมพันใหม่"},{question:"เมื่อไรระบบควรเข้าสู่ Cool-down?",answer:"เมื่อถึง Loss Limit, Risk เป็น CRITICAL, ตรวจพบการไล่ทุนรุนแรง หรือผู้ใช้ระบุว่าอยากเอาคืน/ไม่พร้อมตัดสินใจ"},{question:"ข้อมูลเก็บที่ไหน?",answer:"หน้า Public นี้เป็นตัวอย่างบนหน้าจอ ส่วน Smart Limit สมาชิกเก็บเฉพาะในอุปกรณ์และแยกตามบัญชี ไม่เปลี่ยน Point หรือฐานข้อมูล"}],me={dailyBudget:3e3,sessionBudget:1500,lossLimit:1e3,sessionMinutes:60,breakMinutes:30,maxStake:100},E={low:"LOW",moderate:"MODERATE",high:"HIGH",critical:"CRITICAL"};function Ne(){const{user:b}=G(),[,O]=$(),[d,q]=l.useState("baccarat"),[a,w]=l.useState(me),[r,D]=l.useState(!1),[R,S]=l.useState("normal"),[x,v]=l.useState(!1),[n,N]=l.useState({spent:720,loss:320,stake:100,minutes:28}),m=l.useMemo(()=>({...C(),settings:{dailyBudget:a.dailyBudget,sessionBudget:a.sessionBudget,lossLimit:a.lossLimit,sessionMinutes:a.sessionMinutes,breakMinutes:a.breakMinutes}
6,activity:{...C().activity,dailySpent:n.spent,sessionSpent:n.spent,sessionLoss:n.loss,elapsedSeconds:n.minutes*60}}),[a,n]),p=l.useMemo(()=>({...ae(),gameId:d,maxStake:a.maxStake,planLocked:r,emotion:R,impaired:x,currentStake:n.stake,rounds:18,breaksTaken:1,emotionChecks:1}),[R,d,x,r,a.maxStake,n.stake]),c=l.useMemo(()=>te(m,p),[p,m]),H=l.useMemo(()=>ne(m,p),[p,m]),k=c.cooldownRequired,o=ie[d];W({title:u.title,description:u.description,path:u.path,kind:"article",faqs:T});const P=(s,t)=>{r||w(i=>({...i,[s]:Number.isFinite(t)?Math.max(s.includes("Minutes")?1:0,Math.min(1e7,t)):0}))},F=(s,t)=>N(i=>({...i,[s]:Number.isFinite(t)?Math.max(0,Math.min(1e7,t)):0}));return e.jsx(Y,{"data-loc":"client/src/pages/RiskManagementPage.tsx:64",currentSection:"knowledge",children:e.jsxs("main",{"data-loc":"client/src/pages/RiskManagementPage.tsx:64",id:"main-content",className:"risk-center",children:[e.jsx("section",{"data-loc":"client/src/pages/RiskManagementPage.tsx:65",className:"risk-hero",children:e.jsxs("div",{"data-loc":"client/src/pages/RiskManagementPage.tsx:65",className:"risk-shell risk-hero-grid",children:[e.jsxs("div",{"data-loc":"client/src/pages/RiskManagementPage.tsx:65",children:[e.jsxs("span",{"data-loc":"client/src/pages/RiskManagementPage.tsx:65",className:"risk-eyebrow",children:[e.jsx(L,{"data-loc":"client/src/pages/RiskManagementPage.tsx:65","aria-hidden":"true"})," AI RISK CONTROL & SMART LIMIT"]}),e.jsx("h1",{"data-loc":"client/src/pages/RiskManagementPage.tsx:65",children:"วางแผนก่อนเล่น ควบคุมระหว่างเล่น และรู้ว่าเมื่อไรควรหยุด"}),e.jsx("p",{"data-loc":"client/src/pages/RiskManagementPage.tsx:65",children:"ระบบช่วยตั้ง Budget Limit, Session Time, Loss Limit และ Break Reminder พร้อม AI ช่วยตรวจจับพฤติกรรมเสี่ยง เช่น การไล่ทุน การเพิ่มเงินเดิมพัน และการเล่นเกินแผน"}),e.jsxs("span",{"data-loc":"client/src/pages/RiskManagementPage.tsx:65",className:"risk-disclaimer",children:[e.jsx(re,{"data-loc":"client/src/pages/RiskManagementPage.tsx:65","aria-hidden":"true"}),"ระบบนี้ช่วยเตือนและควบคุมพฤติกรรม ไม่สามารถรับประกันผลลัพธ์หรือป้องกันความเสียหายทั้งหมดได้"]}),e.jsxs("div",{"data-loc":"client/src/pages/RiskManagementPage.tsx:65",className:"risk-hero-actions",children:[e.jsxs("a",{"data-loc":"client/src/pages/RiskManagementPage.tsx:65",href:"#session-planner",children:["เริ่มวางแผน Session",e.jsx(h,{"data-loc":"client/src/pages/RiskManagementPage.tsx:65","aria-hidden":"true"})]}),e.jsxs("a",{"data-loc":"client/src/pages/RiskManagementPage.tsx:65",href:"#live-risk",children:["ดูวิธีควบคุมการเล่น",e.jsx(ge,{"data-loc":"client/src/pages/RiskManagementPage.tsx:65","aria-hidden":"true"})]})]})]}),e.jsxs("aside",{"data-loc":"client/src/pages/RiskManagementPage.tsx:65",children:[e.jsx("span",{"data-loc":"client/src/pages/RiskManagementPage.tsx:65",children:"SMART DECISION"}),e.jsx("strong",{"data-loc":"client/src/pages/RiskManagementPage.tsx:65",children:"Control before prediction"}),e.jsxs("div",{"data-loc":"client/src/pages/RiskManagementPage.tsx:65",children:[e.jsx("small",{"data-loc":"client/src/pages/RiskManagementPage.tsx:65",children:"PLAN"}),e.jsx(h,{"data-loc":"client/src/pages/RiskManagementPage.tsx:65"}),e.jsx("small",{"data-loc":"client/src/pages/RiskManagementPage.tsx:65",children:"MONITOR"}),e.jsx(h,{"data-loc":"client/src/pages/RiskManagementPage.tsx:65"}),e.jsx("small",{"data-loc":"client/src/pages/RiskManagementPage.tsx:65",children:"PAUSE"})]}),e.jsx("p",{"data-loc":"client/src/pages/RiskManagementPage.tsx:65",children:"ตั้งแผน → ติดตาม → เตือน → พัก → ทบทวน"})]})]})}),e.jsx("section",{"data-loc":"client/src/pages/RiskManagementPage.tsx:67",className:"risk-game-selector","aria-labelledby":"risk-game-title",children:e.jsxs("div",{"data-loc":"client/src/pages/RiskManagementPage.tsx:67",className:"risk-shell",children:[e.jsxs("div",{"data-loc":"client/src/pages/RiskManagementPage.tsx:67",children:[e.jsx("span",{"data-loc":"client/src/pages/RiskManagementPage.tsx:67",children:"GAME RISK MODEL"}),e.jsx("h2",{"data-loc":"client/src/pages/RiskManagementPage.tsx:67",id:"risk-game-title",children:"เลือกเกมและใช้ตัวชี้วัดที่เหมาะสม"})]}),e.jsx("div",{"data-loc":"client/src/pages/RiskManagementPage.tsx:67",role:"tablist","aria-label":"เลือกเกมสำหรับ Risk Control",children:B.map(s=>{const t=xe[s.id];return e.jsxs("button",{"data-loc":"client/src/pages/RiskManagementPage.tsx:67",type:"button",role:"tab","aria-selected":s.id===d,onClick:()=>q(s.id),children:[e.jsx(t,{"data-loc":"client/src/pages/RiskManagementPage.tsx:67","aria-hidden":"true"}),e.jsxs("span",{"data-loc":"client/src/pages/RiskManagementPage.tsx:67",children:[s.th,e.jsx("small",{"data-loc":"client/src/pages/RiskManagementPage.tsx:67",children:s.en})]})]},s.id)})}),e.jsxs("p",{"data-loc":"client/src/pages/RiskManagementPage.tsx:67","aria-live":"polite",children:[o.unit," · ",o.stake," · Session Budget · Loss Limit · Time · Break"]})]})}),e.jsxs("div",{"data-loc":"client/src/pages/RiskManagementPage.tsx:69",className:"risk-shell risk-body",children:[e.jsxs("section",{"data-loc":"client/src/pages/RiskManagementPage.tsx:70",id:"session-planner",className:"risk-section","aria-labelledby":"risk-planner-title",children:[e.jsxs("div",{"data-loc":"client/src/pages/RiskManagementPage.tsx:70",className:"risk-section-heading",children:[e.jsx("span",{"data-loc":"client/src/pages/RiskManagementPage.tsx:70",children:"SMART SESSION PLANNER"}),e.jsx("h2",{"data-loc":"client/src/pages/RiskManagementPage.tsx:70",id:"risk-planner-title",children:"ตั้งขีดจำกัดก่อนเริ่ม"}),e.jsx("p",{"data-loc":"client/src/pages/RiskManagementPage.tsx:70",children:"เมื่อกดล็อกแผน ช่องจะถูกปิดเพื่อไม่ให้เพิ่ม Limit ระหว่าง Session"})]}),e.jsxs("div",{"data-loc":"client/src/pages/RiskManagementPage.tsx:70",className:"risk-planner-grid",children:[e.jsxs("div",{"data-loc":"client/src/pages/RiskManagementPage.tsx:70",className:"risk-plan-fields",children:[[["dailyBudget","งบรายวัน","Daily Budget","บาท"],["sessionBudget","งบสำหรับรอบนี้","Session Budget","บาท"],["maxStake",o.stake,"Maximum Stake","บาท"],["lossLimit","ขาดทุนสูงสุดที่ยอมรับได้","Loss Limit","บาท"]].map(([s,t,i,g])=>e.jsxs("label",{"data-loc":"client/src/pages/RiskManagementPage.tsx:72",children:[e.jsxs("span",{"data-loc":"client/src/pages/RiskManagementPage.tsx:72",children:[t,e.jsx("small",{"data-loc":"client/src/pages/RiskManagementPage.tsx:72",children:i})]}),e.jsxs("div",{"data-loc":"client/src/pages/RiskManagementPage.tsx:72",children:[e.jsx(f,{"data-loc":"client/src/pages/RiskManagementPage.tsx:72",type:"number",min:0,disabled:r,value:a[s],onChange:j=>P(s,j.target.valueAsNumber)}),e.jsx("small",{"data-loc":"client/src/pages/RiskManagementPage.tsx:72",children:g})]})]},s)),e.jsxs("label",{"data-loc":"client/src/pages/RiskManagementPage.tsx:72",children:[e.jsxs("span",{"data-loc":"client/src/pages/RiskManagementPage.tsx:72",children:["เวลาสำหรับ Session",e.jsx("small",{"data-loc":"client/src/pages/RiskManagementPage.tsx:72",children:"Session Time"})]}),e.jsxs("select",{"data-loc":"client/src/pages/RiskManagementPage.tsx:72",disabled:r,value:a.sessionMinutes,onChange:s=>P("sessionMinutes",Number(s.target.value)),children:[e.jsx("option",{"data-loc":"client/src/pages/RiskManagementPage.tsx:72",value:"30",children:"30 นาที"}),e.jsx("option",{"data-loc":"client/src/pages/RiskManagementPage.tsx:72",value:"60",children:"60 นาที"}),e.jsx("option",{"data-loc":"client/src/pages/RiskManagementPage.tsx:72",value:"90",children:"90 นาที"}),e.jsx("option",{"data-loc":"client/src/pages/RiskManagementPage.tsx:72",value:"120",children:"กำหนดเอง: 120 นาที"})]})]}),e.jsxs("label",{"data-loc":"client/src/pages/RiskManagementPage.tsx:72",children:[e.jsxs("span",{"data-loc":"client/src/pages/RiskManagementPage.tsx:72",children:["เตือนให้พักทุก",e.jsx("small",{"data-loc":"client/src/pages/RiskManagementPage.tsx:72",children:"Break Reminder"})]}),e.jsxs("select",{"data-loc":"client/src/pages/RiskManagementPage.tsx:72",disabled:r,value:a.breakMinutes,onChange:s=>P("breakMinutes",Number(s.target.value)),children:[e.jsx("option",{"data-loc":"client/src/pages/RiskManagementPage.tsx:72",value:"15",children:"15 นาที"}),e.jsx("option",{"data-loc":"client/src/pages/RiskManagementPage.tsx:72",value:"30",children:"30 นาที"}),e.jsx("option",{"data-loc":"client/src/pages/RiskManagementPage.tsx:72",value:"45",children:"45 นาที"}),e.jsx("option",{"data-loc":"client/src/pages/RiskManagementPage.tsx:72",value:"60",children:"60 นาที"})]})]}),e.jsxs(I,{"data-loc":"client/src/pages/RiskManagementPage.tsx:72",type:"button",disabled:r,onClick:()=>D(!0),className:"risk-lock-button",children:[e.jsx(Z,{"data-loc":"client/src/pages/RiskManagementPage.tsx:72","aria-hidden":"true"}),r?"ล็อกแผนแล้ว":"ล็อกแผนก่อนเริ่ม"]})]}),e.jsxs("aside",{"data-loc":"client/src/pages/RiskManagementPage.tsx:72",className:"risk-plan-summary",children:[e.jsx("span",{"data-loc":"client/src/pages/RiskManagementPage.tsx:72",children:"YOUR PLAN"}),e.jsx("h3",{"data-loc":"client/src/pages/RiskManagementPage.tsx:72",children:B.find(s=>s.id===d)?.th}),[["งบวันนี้",a.dailyBudget,"บาท"],["งบรอบ",a.sessionBudget,"บาท"],["หยุดเมื่อขาดทุน",a.lossLimit,"บาท"],["เวลาสูงสุด",a.sessionMinutes,"นาที"],["พักทุก",a.breakMinutes,"นาที"]].map(([s,t,i])=>e.jsxs("div",{"data-loc":"client/src/pages/RiskManagementPage.tsx:72",children:[e.jsx("span",{"data-loc":"client/src/pages/RiskManagementPage.tsx:72",children:s}),e.jsxs("strong",{"data-loc":"client/src/pages/RiskManagementPage.tsx:72",children:[Number(t).toLocaleStr
6ing("th-TH")," ",i]})]},String(s))),e.jsxs("p",{"data-loc":"client/src/pages/RiskManagementPage.tsx:72",children:[e.jsx(L,{"data-loc":"client/src/pages/RiskManagementPage.tsx:72","aria-hidden":"true"}),"แผนนี้ไม่เปลี่ยน Probability, RTP หรือ House Edge"]})]})]})]}),e.jsxs("section",{"data-loc":"client/src/pages/RiskManagementPage.tsx:74",className:"risk-section","aria-labelledby":"risk-safety-title",children:[e.jsxs("div",{"data-loc":"client/src/pages/RiskManagementPage.tsx:74",className:"risk-section-heading",children:[e.jsx("span",{"data-loc":"client/src/pages/RiskManagementPage.tsx:74",children:"PRE-SESSION SAFETY CHECK"}),e.jsx("h2",{"data-loc":"client/src/pages/RiskManagementPage.tsx:74",id:"risk-safety-title",children:"ตรวจความพร้อมก่อนเริ่ม"})]}),e.jsxs("div",{"data-loc":"client/src/pages/RiskManagementPage.tsx:74",className:"risk-safety-card",children:[e.jsxs("div",{"data-loc":"client/src/pages/RiskManagementPage.tsx:74",className:"risk-emotions",children:[e.jsxs("p",{"data-loc":"client/src/pages/RiskManagementPage.tsx:74",children:[e.jsx(A,{"data-loc":"client/src/pages/RiskManagementPage.tsx:74","aria-hidden":"true"}),"ตอนนี้คุณรู้สึกอย่างไร?"]}),e.jsx("div",{"data-loc":"client/src/pages/RiskManagementPage.tsx:74",role:"group","aria-label":"เลือกอารมณ์ก่อนเริ่ม",children:ce.map(s=>e.jsxs("button",{"data-loc":"client/src/pages/RiskManagementPage.tsx:74",type:"button","aria-pressed":R===s.id,onClick:()=>S(s.id),children:[e.jsx("span",{"data-loc":"client/src/pages/RiskManagementPage.tsx:74","aria-hidden":"true",children:s.icon}),s.label]},s.id))})]}),e.jsxs("div",{"data-loc":"client/src/pages/RiskManagementPage.tsx:74",className:"risk-impaired",children:[e.jsx("p",{"data-loc":"client/src/pages/RiskManagementPage.tsx:74",children:"คุณดื่มแอลกอฮอล์หรือไม่พร้อมตัดสินใจหรือไม่?"}),e.jsx("button",{"data-loc":"client/src/pages/RiskManagementPage.tsx:74",type:"button","aria-pressed":!x,onClick:()=>v(!1),children:"ไม่"}),e.jsx("button",{"data-loc":"client/src/pages/RiskManagementPage.tsx:74",type:"button","aria-pressed":x,onClick:()=>v(!0),children:"ใช่"})]}),e.jsx("div",{"data-loc":"client/src/pages/RiskManagementPage.tsx:74",className:`risk-safety-result ${k?"is-blocked":""}`,"aria-live":"polite",children:k?e.jsxs(e.Fragment,{children:[e.jsx(y,{"data-loc":"client/src/pages/RiskManagementPage.tsx:74","aria-hidden":"true"}),e.jsxs("div",{"data-loc":"client/src/pages/RiskManagementPage.tsx:74",children:[e.jsx("strong",{"data-loc":"client/src/pages/RiskManagementPage.tsx:74",children:"ไม่แนะนำให้เริ่ม Session"}),e.jsx("p",{"data-loc":"client/src/pages/RiskManagementPage.tsx:74",children:"สถานะปัจจุบันอาจทำให้การตัดสินใจใช้อารมณ์ ระบบจะแสดงเฉพาะพัก จบ Session และ Responsible Play"})]})]}):e.jsxs(e.Fragment,{children:[e.jsx(de,{"data-loc":"client/src/pages/RiskManagementPage.tsx:74","aria-hidden":"true"}),e.jsxs("div",{"data-loc":"client/src/pages/RiskManagementPage.tsx:74",children:[e.jsx("strong",{"data-loc":"client/src/pages/RiskManagementPage.tsx:74",children:"พร้อมตรวจแผนต่อ"}),e.jsx("p",{"data-loc":"client/src/pages/RiskManagementPage.tsx:74",children:"ล็อก Budget, Loss Limit, Time และ Break ก่อนเริ่ม—สถานะนี้ไม่ใช่การรับรองว่าปลอดภัย"})]})]})})]})]}),e.jsxs("section",{"data-loc":"client/src/pages/RiskManagementPage.tsx:76",id:"live-risk",className:"risk-section risk-live","aria-labelledby":"risk-live-title",children:[e.jsxs("div",{"data-loc":"client/src/pages/RiskManagementPage.tsx:76",className:"risk-section-heading",children:[e.jsx("span",{"data-loc":"client/src/pages/RiskManagementPage.tsx:76",children:"LIVE SESSION RISK MODEL"}),e.jsx("h2",{"data-loc":"client/src/pages/RiskManagementPage.tsx:76",id:"risk-live-title",children:"ดูงบ เวลา และพฤติกรรมในมุมเดียว"}),e.jsx("p",{"data-loc":"client/src/pages/RiskManagementPage.tsx:76",children:"ลองปรับค่าตัวอย่างเพื่อดูว่า AI Risk Score เปลี่ยนจากปัจจัยใด"})]}),e.jsxs("div",{"data-loc":"client/src/pages/RiskManagementPage.tsx:76",className:"risk-live-grid",children:[e.jsx("div",{"data-loc":"client/src/pages/RiskManagementPage.tsx:76",className:"risk-progress-inputs",children:[["spent","ใช้ในรอบ","บาท"],["loss","ขาดทุนในรอบ","บาท"],["stake",o.stake,"บาท"],["minutes","เวลาที่เล่น","นาที"]].map(([s,t,i])=>e.jsxs("label",{"data-loc":"client/src/pages/RiskManagementPage.tsx:76",children:[e.jsx("span",{"data-loc":"client/src/pages/RiskManagementPage.tsx:76",children:t}),e.jsxs("div",{"data-loc":"client/src/pages/RiskManagementPage.tsx:76",children:[e.jsx(f,{"data-loc":"client/src/pages/RiskManagementPage.tsx:76","aria-label":t,type:"number",min:0,value:n[s],onChange:g=>F(s,g.target.valueAsNumber)}),e.jsx("small",{"data-loc":"client/src/pages/RiskManagementPage.tsx:76",children:i})]})]},s))}),e.jsxs("div",{"data-loc":"client/src/pages/RiskManagementPage.tsx:76",className:"risk-score-card",children:[e.jsx("div",{"data-loc":"client/src/pages/RiskManagementPage.tsx:76",className:`risk-score-ring is-${
6c.level}`,style:{"--score":c.score},children:e.jsxs("span",{"data-loc":"client/src/pages/RiskManagementPage.tsx:76",children:[e.jsx("strong",{"data-loc":"client/src/pages/RiskManagementPage.tsx:76",children:c.score}),e.jsx("small",{"data-loc":"client/src/pages/RiskManagementPage.tsx:76",children:"AI RISK SCORE"})]})}),e.jsxs("div",{"data-loc":"client/src/pages/RiskManagementPage.tsx:76",children:[e.jsx("span",{"data-loc":"client/src/pages/RiskManagementPage.tsx:76",className:`risk-level is-${c.level}`,children:E[c.level]}),e.jsx("h3",{"data-loc":"client/src/pages/RiskManagementPage.tsx:76",children:"ความเสี่ยง Session ปัจจุบัน"}),e.jsx("p",{"data-loc":"client/src/pages/RiskManagementPage.tsx:76",children:"คะแนนมาจาก Limit, เวลา, เงินต่อรอบ, การพัก และอารมณ์ ไม่ใช่ผลเกม"}),e.jsxs("small",{"data-loc":"client/src/pages/RiskManagementPage.tsx:76",children:["Discipline ",H,"/100"]})]})]})]}),e.jsx("div",{"data-loc":"client/src/pages/RiskManagementPage.tsx:77",className:"risk-status-grid",children:[["งบรอบ",n.spent,a.sessionBudget],["ขาดทุน",n.loss,a.lossLimit],["เวลา",n.minutes,a.sessionMinutes],[o.stake,n.stake,a.maxStake]].map(([s,t,i])=>{const g=Number(i)>0?Number(t)/Number(i):0,j=le(g);return e.jsxs("article",{"data-loc":"client/src/pages/RiskManagementPage.tsx:77",className:`is-${j}`,children:[e.jsxs("div",{"data-loc":"client/src/pages/RiskManagementPage.tsx:77",children:[e.jsx("span",{"data-loc":"client/src/pages/RiskManagementPage.tsx:77",children:s}),e.jsxs("strong",{"data-loc":"client/src/pages/RiskManagementPage.tsx:77",children:[Math.round(g*100),"%"]})]}),e.jsx("span",{"data-loc":"client/src/pages/RiskManagementPage.tsx:77",className:"risk-progress",children:e.jsx("span",{"data-loc":"client/src/pages/RiskManagementPage.tsx:77",style:{width:`${Math.min(100,g*100)}%`}})}),e.jsxs("p",{"data-loc":"client/src/pages/RiskManagementPage.tsx:77",children:[Number(t).toLocaleString("th-TH")," / ",Number(i).toLocaleString("th-TH")]})]},String(s))})}),e.jsxs("div",{"data-loc":"client/src/pages/RiskManagementPage.tsx:78",className:"risk-explain",children:[e.jsxs("div",{"data-loc":"client/src/pages/RiskManagementPage.tsx:78",children:[e.jsx(_,{"data-loc":"client/src/pages/RiskManagementPage.tsx:78","aria-hidden":"true"}),e.jsxs("span",{"data-loc":"client/src/pages/RiskManagementPage.tsx:78",children:[e.jsx("strong",{"data-loc":"client/src/pages/RiskManagementPage.tsx:78",children:"ทำไม AI จึงแสดงระดับนี้?"}),e.jsx("small",{"data-loc":"client/src/pages/RiskManagementPage.tsx:78",children:"Input → Rule → Calculation → Limitation"})]})]}),c.factors.length?e.jsx("div",{"data-loc":"client/src/pages/RiskManagementPage.tsx:78",children:c.factors.map(s=>e.jsxs("article",{"data-loc":"client/src/pages/RiskManagementPage.tsx:78",children:[e.jsxs("strong",{"data-loc":"client/src/pages/RiskManagementPage.tsx:78",children:["+",s.points," · ",s.label]}),e.jsx("p",{"data-loc":"client/src/pages/RiskManagementPage.tsx:78",children:s.detail})]},s.id))}):e.jsx("p",{"data-loc":"client/src/pages/RiskManagementPage.tsx:78",children:"ยังไม่พบปัจจัยเตือนจากค่าตัวอย่าง แต่ควรติดตามต่อเนื่องและหยุดเมื่อถึงแผน"})]}),e.jsx("div",{"data-loc":"client/src/pages/RiskManagementPage.tsx:79",className:"risk-actions",children:k?e.jsxs(e.Fragment,{children:[e.jsxs("button",{"data-loc":"client/src/pages/RiskManagementPage.tsx:79",type:"button",children:[e.jsx(oe,{"data-loc":"client/src/pages/RiskManagementPage.tsx:79","aria-hidden":"true"}),"พัก 10 นาที"]}),e.jsxs(M,{"data-loc":"client/src/pages/RiskManagementPage.tsx:79",href:"/responsible-play",children:[e.jsx(y,{"data-loc":"client/src/pages/RiskManagementPage.tsx:79","aria-hidden":"true"}),"ดู Responsible Play"]})]}):e.jsxs(e.Fragment,{children:[e.jsxs("button",{"data-loc":"client/src/pages/RiskManagementPage.tsx:79",type:"button",onClick:()=>N(s=>({...s,minutes:s.minutes+10})),children:[e.jsx(ee,{"data-loc":"client/src/pages/RiskManagementPage.tsx:79","aria-hidden":"true"}),"เพิ่มเวลาตัวอย่าง 10 นาที"]}),e.jsxs("button",{"data-loc":"client/src/pages/RiskManagementPage.tsx:79",type:"button",onClick:()=>S("normal"),children:[e.jsx(A,{"data-loc":"client/src/pages/RiskManagementPage.tsx:79","aria-hidden":"true"}),"เช็กอารมณ์อีกครั้ง"]})]})})]}),e.jsxs("section",{"data-loc":"client/src/pages/RiskManagementPage.tsx:82",className:"risk-philosophy","aria-labelledby":"risk-philosophy-title",children:[e.jsx(se,{"data-loc":"client/src/pages/RiskManagementPage.tsx:82","aria-hidden":"true"}),e.jsxs("div",{"data-loc":"client/src/pages/RiskManagementPage.tsx:82",children:[e.jsx("span",{"data-loc":"client/src/pages/RiskManagementPage.tsx:82",children:"MAWIN SIAM RISK PHILOSOPHY"}),e.jsx("h2",{"data-loc":"client/src/pages/RiskManagementPage.tsx:82",id:"risk-philosophy-title",children:"AI ไม่ได้มีหน้าที่บอกให้คุณเล่นต่อ"}),e.jsx("p",{"data-loc":"client/src/pages/RiskManagementPage.tsx:82",children:"AI มีหน้าที่บอกด้วยว่าเมื่อไรคุณควรหยุด วิเคราะห์เกมได้ แต่ต้องวิเคราะห์ตัวเองเป็นด้วย"}),e.jsxs("nav",{"data-loc":"client/src/pages/RiskManagementPage.tsx:82","aria-label":"เนื้อหาเสริม",children:[e.jsx(M,{"data-loc":"client/src/pages/RiskManagementPage.tsx:82",href:"/statistics",children:"Statistics"}),e.jsx(M,{"data-loc":"client/src/pages/RiskManagementPage.tsx:82",href:"/probability",children:"Probability"}),e.jsx(M,{"data-loc":"client/src/pages/RiskManagementPage.tsx:82",href:"/responsible-play",children:"Responsible Play"})]})]}),k?null:e.jsxs(I,{"data-loc":"client/src/pages/RiskManagementPage.tsx:82",type:"button",onClick:()=>
6O(b?"/smart-limit":"/login"),children:[b?"เปิด Smart Limit ของฉัน":"เข้าสู่ระบบเพื่อบันทึกแผน",e.jsx(h,{"data-loc":"client/src/pages/RiskManagementPage.tsx:82"})]})]}),e.jsxs("section",{"data-loc":"client/src/pages/RiskManagementPage.tsx:84",className:"risk-faq","aria-labelledby":"risk-faq-title",children:[e.jsxs("div",{"data-loc":"client/src/pages/RiskManagementPage.tsx:84",className:"risk-section-heading",children:[e.jsx("span",{"data-loc":"client/src/pages/RiskManagementPage.tsx:84",children:"FAQ"}),e.jsx("h2",{"data-loc":"client/src/pages/RiskManagementPage.tsx:84",id:"risk-faq-title",children:"คำถามที่พบบ่อยเกี่ยวกับ Risk Control"})]}),T.map(s=>e.jsxs("details",{"data-loc":"client/src/pages/RiskManagementPage.tsx:84",children:[e.jsxs("summary",{"data-loc":"client/src/pages/RiskManagementPage.tsx:84",children:[s.question,e.jsx("span",{"data-loc":"client/src/pages/RiskManagementPage.tsx:84",children:"+"})]}),e.jsx("p",{"data-loc":"client/src/pages/RiskManagementPage.tsx:84",children:s.answer})]},s.question))]})]}),e.jsxs("div",{"data-loc":"client/src/pages/RiskManagementPage.tsx:86",className:`risk-mobile-bar is-${c.level}`,children:[e.jsxs("span",{"data-loc":"client/src/pages/RiskManagementPage.tsx:86",children:["เวลา ",e.jsxs("strong",{"data-loc":"client/src/pages/RiskManagementPage.tsx:86",children:[n.minutes,"m"]})]}),e.jsxs("span",{"data-loc":"client/src/pages/RiskManagementPage.tsx:86",children:["งบ ",e.jsxs("strong",{"data-loc":"client/src/pages/RiskManagementPage.tsx:86",children:[Math.round(n.spent/a.sessionBudget*100),"%"]})]}),e.jsxs("span",{"data-loc":"client/src/pages/RiskManagementPage.tsx:86",children:["Risk ",e.jsx("strong",{"data-loc":"client/src/pages/RiskManagementPage.tsx:86",children:E[c.level]})]}),e.jsx("a",{"data-loc":"client/src/pages/RiskManagementPage.tsx:86",href:"#live-risk",children:"ดู Session"})]})]})})}export{Ne 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.