PageSourceSearch

https://bacctrack-7ha7hyw7.manus.space/assets/AdminFootballMatchPage-h6u-v8S-.js

js bacctrack-7ha7hyw7.manus.space collected 2026-10-03 05:02:40 UTC 54,509 bytes, 1 lines download raw bytes

1import{r as C,t as A,j as l,T as $,S as H,J as Z,d as L,b as E,I as T,L as _,aa as ll,ab as al,ac as tl,C as sl,e as B,ad as el,u as ol}from"./index-C3Qps0S4.js";import{S as y}from"./skeleton-Dte_fR4v.js";import{B as Q}from"./badge-DBCec9J8.js";import{B as k}from"./button-xdpkFraK.js";import{d as S}from"./footballUi-63-GIEDR.js";import{D as U}from"./FootballHomeComponents-BE1VZLe4.js";import{M as f,a as u,b as nl,c as il,O as cl,S as rl,H as dl,d as xl,L as ml,e as G,E as bl}from"./FootballMatchComponents-Cz2x-Dkj.js";import{D as J}from"./database-zap-1FoMEBzX.js";import{I as pl}from"./info-DmEqpz6r.js";import{G as Al}from"./gauge-C7AQYjdr.js";import{C as I}from"./circle-check-DmGdFs0e.js";import{H as fl}from"./history-B2QWoLNH.js";import{R as O}from"./refresh-cw-DwgqC19c.js";import{A as R}from"./arrow-left-AxGNO8ZF.js";import"./index-Jol-UBUv.js";import"./calendar-days-C-4YinGr.js";const q={recent_form:"ฟอร์มล่าสุด",home_away_form:"ผลงานเหย้า/เยือน",standings:"ตารางคะแนน",goals_for_against:"ประตูได้/เสีย",match_statistics:"สถิติการแข่งขัน",h2h:"ผลงานพบกัน",lineups:"รายชื่อผู้เล่น",injuries:"ผู้เล่นบาดเจ็บ"},K={available:{label:"พร้อม",icon:"✓",tone:"text-emerald-300"},pending:{label:"รอข้อมูล",icon:"…",tone:"text-amber-300"},unavailable:{label:"ไม่มีข้อมูล",icon:"—",tone:"text-zinc-500"}},hl={"home.recentFormScore":"ฟอร์มล่าสุดของเà¸
1ˆà¹‰à¸²à¸šà¹‰à¸²à¸™","away.recentFormScore":"ฟอร์มล่าสุดของทีมเยือน","home.venueFormScore":"ผลงานในบ้านของเจ้าบ้าน","away.venueFormScore":"ผลงานนอกบ้านของทีมเยือน","home.goalsScoredAverage":"ค่าเฉลี่ยประตูได้ของเจ้าบ้าน","away.goalsScoredAverage":"ค่าเฉลี่ยประตูได้ของทีมเยือน","home.goalsConcededAverage":"ค่าเฉลี่ยประตูเสียของเจ้าบ้าน","away.goalsConcededAverage":"ค่าเฉลี่ยประตูเสียของทีมเยือน","home.attackStrength":"ประสิทธิภาพเกมรุกของเจ้าบ้าน","away.attackStrength":"ประสิทธิภาพเกมรุกของทีมเยือน","home.defenceStrength":"ประสิทธิภาพเกมรับของเà¸
1ˆà¹‰à¸²à¸šà¹‰à¸²à¸™","away.defenceStrength":"ประสิทธิภาพเกมรับของทีมเยือน","home.leaguePosition":"อันดับในลีกของเจ้าบ้าน","away.leaguePosition":"อันดับในลีกของทีมเยือน",h2hHomePerformance:"ผลงานการพบกัน",leaguePositionDifference:"ความแตกต่างของอันดับในลีก",leagueHomeGoalsAverage:"ค่าเฉลี่ยประตูเจ้าบ้านในลีก",leagueAwayGoalsAverage:"ค่าเฉลี่ยประตูทีมเยือนในลีก"};function p(a){return Number.isFinite(a)?`${(a*100).toFixed(1)}%`:"N/A"}function V(a){return Number.isFinite(a)?a.toFixed(2):"N/A"}function W(a){return hl[a]??"ข้อมูลประกอบจากแบบจำลอง"}function D(a){return a.replace(/^Match Statistics:\s*/i,"สถิติการแข่งขัน: ").replace(/^Lineups:\s*/i,"รายชื่อผู้เล่น: ").replace(/^Injuries:\s*/i,"ผู้เล่นบาดเจ็บ: ").replace(/^Standings:\s*/i,"ตารางคะแนน: ").replace(/^Recent Form:\s*/i,"ฟอร์มล่าสุด: ")}function ul(a){if(!a)return[];const s=["สรุปความหมาย:","เหตุผลหลักที่สนับสนุนการประเมิน:","ความเสี่ยงและข้อจำกัดของการประเมิน:","ข้อควรระวังสุดท้าย:"];let t=a;for(const e of s)t=t.replace(e,`|||${e}`);return t.split("|||").map(e=>e.trim()).filter(Boolean)}function b({label:a,value:s,note:t,info:e}){return l.jsxs("div",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:97",className:`rounded-xl p-3 ${u}`,children:[l.jsxs("div",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:98",className:"flex items-center gap-1.5",children:[l.jsx("p",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:99",className:"text-[9px] font-bold uppercase tracking-[0.09em] text-zinc-600",children:a}),e&&l.jsxs(ll,{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:100",children:[l.jsx(al,{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:100",asChild:!0,children:l.jsx("button",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:100",type:"button","aria-label":`ข้อมูลเพิ่มเติมเกี่ยวกับ ${a}`,className:"grid h-5 w-5 place-items-center rounded-full text-zinc-500 hover:bg-white/5 hover:text-amber-300",children:l.jsx(pl,{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:100",className:"h-3.5 w-3.5"})})}),l.jsx(tl,{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:100",side:"bottom",className:"max-w-[280px] text-[10px] leading-5",children:e})]})]}),l.jsx("p",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:102",className:"mt-1 text-lg font-black tabular-nums text-white",children:s}),t&&l.jsx("p",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:103",className:"mt-1 text-[9px] leading-4 text-zinc-500",children:t})]})}function yl({canAnalyze:a,onAnalyze:s,loading:t}){return l.jsxs("section",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:110",className:`rounded-3xl px-5 py-12 text-center ${f}`,children:[a?l.jsx(T,{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:111",className:"mx-auto h-10 w-10 text-amber-300"}):l.jsx(_,{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:111",className:"mx-auto h-10 w-10 text-zinc-500"}),l.jsx("h2",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:112",className:"mt-3 text-base font-black text-white",children:a?"ยังไม่มีบทวิเคราะห์สำหรับคู่นี้":"บทวิเคราะห์ก่อนการแข่งขันถูกล็อก"}),l.jsx("p",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:113",className:"mx-auto mt-2 max-w-lg text-[11px] leading-5 text-zinc-500",children:a?"Admin สามารถเริ่มโหลดข้อมูลจริงและคำนวณแบบ manual ได้ ไม่มีการวิเคราะห์อัตโนมัติ และไม่มีการสร้างข้อมูลทดแทน":"การแข่งขันเริ่มแล้ว ระบบจà¸
1¶à¸‡à¹„ม่สร้างผลวิเคราะห์ย้อนหลังหลังทราบข้อมูลการแข่งขัน"}),a&&l.jsxs(k,{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:116",type:"button",onClick:s,disabled:t,className:"mt-5 min-h-11 bg-gradient-to-r from-amber-300 to-amber-500 font-black text-zinc-950 hover:from-amber-200 hover:to-amber-400",children:[l.jsx(H,{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:116",className:`mr-2 h-4 w-4 ${t?"animate-pulse motion-reduce:animate-none":""}`}),"เริ่มวิเคราะห์ด้วยข้อมูลจริง"]})]})}function gl({record:a}){const s=a.modelOutput;if(!s)return null;const t=[{key:"home",label:"เจ้าบ้าน",value:s.matchResult.home,tone:"bg-amber-400"},{key:"draw",label:"เสมอ",value:s.matchResult.draw,tone:"bg-zinc-400"},{key:"away",label:"ทีมเยือน",value:s.matchResult.away,tone:"bg-orange-500"}];return l.jsxs("section",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:130",className:`rounded-2xl p-4 ${f}`,children:[l.jsxs("div",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:131",className:"flex items-start gap-2",children:[l.jsx(sl,{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:131",className:"mt-0.5 h-4 w-4 shrink-0 text-amber-300"}),l.jsxs("div",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:131",children:[l.jsx("h3",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:131",className:"text-sm font-black text-white",children:"ความน่าจะเป็น 1X2 จากแบบจำลอง"}),l.jsx("p",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:131",className:"mt-1 text-[10px] leading-4 text-zinc-500",children:"แสดงค่าจาก Model Output โดยตรง ไม่ได้คำนวณหรือปรับตัวเลขใหม่ในหน้าจอ"})]})]}),l.jsx("div",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:132",className:"mt-4 flex h-3 overflow-hidden rounded-full bg-white/[0.05]","aria-label":`เจ้าบ้าน ${p(t[0].value)} เสมอ ${p(t[1].value)} ทีมเยือน ${p(t[2].value)}`,children:t.map(e=>l.jsx("span",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:133",className:`${e.tone} transition-[width] duration-500 motion-reduce:transition-none`,style:{width:p(e.value)}},e.key))}),l.jsx("div",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:135",className:"mt-3 grid grid-cols-3 gap-2",children:t.map(e=>l.jsxs("div",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:135",className:`rounded-xl p-2.5 text-center ${u}`,children:[l.jsx("p",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:135",className:"truncate text-[9px] text-zinc-500",children:e.label}),l.jsx("p",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:135",className:"mt-1 text-base font-black tabular-nums text-white",children:p(e.value)})]},e.key))}),l.jsx("p",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:136",className:"mt-3 text-[9px] leading-4 text-zinc-600",children:"การวิเคราะห์นี้ใช้ข้อมูลและแบบจำลองทางสถิติ ผลการแข่งขันจริงอาจแตกต่างได้"})]})}function Fl({record:a}){const s=a.modelOutput;if(!s)return null;const t=s.goals;return l.jsxs("section",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:146",className:"grid gap-3 lg:grid-cols-[0.8fr_1.2fr]",children:[l.jsxs("div",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:147",className:`rounded-2xl p-4 ${f}`,children:[l.jsxs("div",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:148",className:"flex items-center gap-2",children:[l.jsx(Al,{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:148",className:"h-4 w-4 text-amber-300"}),l.jsxs("div",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:148",children:[l.jsx("h3",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:148",className:"text-sm font-black text-white",children:"Model Expected Goals"}),l.jsx("p",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:148",className:"text-[9px] text-zinc-600",children:"ประตูคาดหมายจากแบบจำลอง"})]})]}),l.jsxs("div",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:149",className:"mt-3 grid grid-cols-2 gap-2",children:[l.jsx(b,{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:149",label:"Home",value:V(t.expectedHomeGoals)}),l.jsx(b,{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:149",label:"Away",value:V(t.expectedAwayGoals)})]}),l.jsx("p",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:150",className:"mt-3 text-[9px] leading-4 text-zinc-600",children:"เป็นค่าคาดหมายจากแบบจำลองของ MAWIN ไม่ใช่สถิติทางการจากผู้ให้บริการ และไม่ใช่สกอร์ที่ยืนยันว่าจะเà¸
1à¸´à¸”ขึ้นจริง"})]}),l.jsxs("div",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:152",className:`rounded-2xl p-4 ${f}`,children:[l.jsx("h3",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:153",className:"text-sm font-black text-white",children:"ความน่าจะเป็นด้านประตู"}),l.jsxs("div",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:154",className:"mt-3 grid grid-cols-2 gap-2 sm:grid-cols-3",children:[l.jsx(b,{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:155",label:"Over 1.5",value:p(t.over15)}),l.jsx(b,{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:156",label:"Over 2.5",value:p(t.over25)}),l.jsx(b,{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:157",label:"Over 3.5",value:p(t.over35)}),l.jsx(b,{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:158",label:"Under 2.5",value:p(t.under25)}),l.jsx(b,{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:159",label:"Under 3.5",value:p(t.under35)}),l.jsx(b,{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:160",label:"BTTS Yes / No",value:`${p(t.btts.yes)} / ${p(t.btts.no)}`})]})]})]})}function X(a){const s=[];for(const t of a.eligibility.dimensions)t.status!=="available"&&(t.key==="lineups"&&t.status==="pending"?s.push("รายชื่อผู้เล่นตัวจริงยังไม่ประกาศ"):t.key==="match_statistics"?s.push("สถิติการแข่งขันบางส่วนยังไม่มีข้อมูล"):t.key==="injuries"?s.push("ข้อมูลผู้เล่นบาดเจ็บยังไม่ครบ"):s.push(`${q[t.key]??t.label}: ${K[t.status].label}`));a.modelOutput?.calibration.status==="uncalibrated_development"&&s.push("แบบจำลองยังอยู่ระหว่างการทดสอบและปรับเทียบ"),a.modelOutput?.confidence.disagreement&&a.modelOutput.disagreementMessage&&s.push(a.modelOutput.disagreementMessage);for(const t of a.eligibility.missingReasons)s.push(D(t));for(const t of a.explanation?.riskFactors??[])s.push(D(t));return Array.from(new Set(s)).slice(0,8)}function Pl({record:a}){const s=a.explanation,t=s?.status==="ready"?s.keyFactors.slice(0,6).map(W):[],e=X(a);return l.jsxs("div",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:188",className:"grid gap-3 lg:grid-cols-2",children:[l.jsxs("section",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:189",className:`rounded-2xl p-4 ${f}`,children:[l.jsxs("div",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:190",className:"flex items-center gap-2",children:[l.jsx(I,{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:190",className:"h-4 w-4 text-emerald-300"}),l.jsx("h3",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:190",className:"text-sm font-black text-white",children:"ปัจจัยสำคัญ"})]}),t.length?l.jsx("div",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:191",className:"mt-3 flex flex-wrap gap-2",children:t.map((d,o)=>l.jsxs("span",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:191",className:"inline-flex items-center gap-1.5 rounded-full border border-emerald-400/15 bg-emerald-400/[0.05] px-3 py-2 text-[10px] leading-4 text-zinc-300",children:[l.jsx(I,{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:191",className:"h-3.5 w-3.5 shrink-0 text-emerald-300"}),d]},`factor-${o}`))}):l.jsx("p",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:191",className:"mt-3 text-[10px] text-zinc-500",children:"คำอธิบายปัจจัยยังไม่พร้อม"})]}),l.jsxs("section",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:193",className:"rounded-2xl border border-orange-400/15 bg-orange-400/[0.035] p-4",children:[l.jsxs("div",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:194",className:"flex items-center gap-2",children:[l.jsx($,{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:194",className:"h-4 w-4 text-orange-300"}),l.jsx("h3",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:194",className:"text-sm font-black text-white",children:"สิ่งที่ควรพิจารณา"})]}),e.length?l.jsx("ul",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:195",className:"mt-3 space-y-2",children:e.map((d,o)=>l.jsxs("li",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:195",className:"flex items-start gap-2 text-[10px] leading-5 text-zinc-300",children:[l.jsx($,{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:195",className:"mt-0.5 h-3.5 w-3.5 shrink-0 text-orange-300"}),d]},`${d}-${o}`))}):l.jsx("p",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:195",className:"mt-3 text-[10px] text-zinc-500",children:"ยังไม่พบข้อจำกัดเพิ่มเติมจากสถานะข้อมูลปัจจุบัน"})]})]})}function P({title:a,children:s}){return l.jsxs("section",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:202",className:`rounded-xl p-3 ${u}`,children:[l.jsx("h4",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:202",className:"text-[10px] font-black text-amber-300",children:a}),l.jsx("div",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:202",className:"mt-2 space-y-2 text-[11px] leading-6 text-zinc-300",children:s})]})}function z(a,s){return a.explanation?.status!=="ready"?[]:a.explanation.reasons.filter(t=>t.featureKeys.some(e=>s.some(d=>e.includes(d)))).map(t=>t.statement)}function jl({record:a}){const s=a.explanation;if(s?.status!=="ready")return l.jsxs("section",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:212",className:`rounded-2xl p-4 ${f}`,children:[l.jsx("h3",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:212",className:"text-sm font-black text-white",children:"บทวิเคราะห์ AI ภาษาไทย"}),l.jsx("p",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:212",className:"mt-3 text-[10px] leading-5 text-zinc-500",children:"คำอธิบาย AI ยังไม่พร้อม แต่ผลตัวเลขจากแบบจำลองยังคงเดิมและไม่ถูกแก้ไข"})]});const t=z(a,["recentForm","venueForm"]),e=z(a,["attackStrength","goalsScored"]),d=z(a,["defenceStrength","goalsConceded","cleanSheet"]),o=z(a,["h2h"]),m=X(a),n=ul(s.text);return l.jsxs("section",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:220",className:`rounded-2xl p-4 ${f}`,children:[l.jsxs("div",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:221",className:"flex items-start justify-between gap-3",children:[l.jsxs("div",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:221",className:"flex items-start gap-2",children:[l.jsx(T,{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:221",className:"mt-0.5 h-4 w-4 shrink-0 text-amber-300"}),l.jsxs("div",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:221",children:[l.jsx("h3",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:221",className:"text-sm font-black text-white",children:"บทวิเคราะห์ AI ภาษาไทย"}),l.jsx("p",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:221",className:"mt-1 text-[9px] text-zinc-600",children:"อธิบาย Model Output และ Traceable Evidence เท่านั้น ไม่มีสิทธิ์แก้ตัวเลข"})]})]}),l.jsx(Q,{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:221",variant:"outline",className:"border-white/10 text-[8px] text-zinc-500",children:"AI Explanation"})]}),l.jsxs("div",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:222",className:"mt-4 grid gap-2 sm:grid-cols-2",children:[l.jsx(P,{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:223",title:"ภาพรวม",children:n.map((i,c)=>l.jsx("p",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:223",children:i},c))}),t.length>0&&l.jsx(P,{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:224",title:"ฟอร์มล่าสุด",children:t.map((i,c)=>l.jsx("p",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:224",children:i},c))}),e.length>0&&l.jsx(P,{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:225",title:"เกมรุก",children:e.map((i,c)=>l.jsx("p",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:225",children:i},c))}),d.length>0&&l.jsx(P,{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:226",title:"เกมรับ",children:d.map((i,c)=>l.jsx("p",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:226",children:i},c))}),o.length>0&&l.jsx(P,{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:227",title:"ผลงานพบกัน",children:o.map((i,c)=>l.jsx("p",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:227",children:i},c))}),l.jsx(P,{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:228",title:"ปัจจัยที่มีผล",children:l.jsx("ul",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:228",className:"space-y-1.5",children:s.keyFactors.map((i,c)=>l.jsxs("li",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:228",children:["• ",W(i)]},c))})}),l.jsx(P,{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:229",title:"ข้อจำกัดของข้อมูล",children:l.jsx("ul",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:229",className:"space-y-1.5",children:m.map((i,c)=>l.jsxs("li",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:229",children:["• ",i]},c))})}),l.jsx(P,{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:230",title:"บทสรุป",children:l.jsx("p",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:230",children:"ควรอ่านผลนี้ร่วมกับความพร้อมของข้อมูล สถานะการปรับเทียบ และข้อมูลล่าสุดก่อนการแข่งขันเสมอ"})})]})]})}function Nl({record:a}){const s=a.eligibility.dimensions.filter(t=>t.status==="available").length;return l.jsxs("details",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:239",className:`group overflow-hidden rounded-2xl ${f}`,children:[l.jsxs("summary",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:240",className:"flex min-h-14 cursor-pointer list-none items-center gap-3 px-4",children:[l.jsx(J,{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:240",className:"h-4 w-4 shrink-0 text-amber-300"}),l.jsxs("div",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:240",className:"min-w-0 flex-1",children:[l.jsx("h3",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:240",className:"text-[11px] font-black text-white",children:"ความพร้อมของข้อมูล"}),l.jsxs("p",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:240",className:"mt-0.5 text-[9px] text-zinc-600",children:[s,"/",a.eligibility.dimensions.length," พร้อม · แตะเพื่อดูรายละเอียด"]})]}),l.jsx(U,{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:240",level:a.eligibility.level,compact:!0}),l.jsx(B,{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:240",className:"h-4 w-4 shrink-0 text-zinc-500 transition-transform group-open:rotate-180 motion-reduce:transition-none"})]}),l.jsx("div",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:241",className:"grid grid-cols-1 gap-1.5 border-t border-white/[0.06] p-3 min-[390px]:grid-cols-2 sm:grid-cols-4",children:a.eligibility.dimensions.map(t=>{const e=K[t.status];return l.jsxs("div",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:241",className:`rounded-xl p-3 ${u}`,children:[l.jsxs("div",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:241",className:"flex items-center justify-between gap-2",children:[l.jsx("span",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:241",className:"truncate text-[10px] font-bold text-zinc-300",children:q[t.key]??t.label}),l.jsx("span",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:241",className:`shrink-0 text-[10px] font-black ${e.tone}`,children:e.icon})]}),l.jsx("p",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:241",className:`mt-1 text-[9px] font-semibold ${e.tone}`,children:e.label}),l.jsxs("p",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:241",className:"mt-1 text-[8px] leading-4 text-zinc-600",children:["Sample ",t.sampleSize]})]},t.key)})})]})}function vl({record:a,sourceUpdatedAt:s,phase:t}){const e=a.audit.lockState==="locked"||t!=="upcoming",d=a.eligibility.dimensions.find(o=>o.key==="lineups")?.status==="available";return l.jsxs("section",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:250",className:`rounded-2xl p-4 ${f}`,children:[e&&l.jsxs("div",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:251",className:"mb-3 flex items-start gap-2 rounded-xl border border-zinc-500/20 bg-white/[0.025] p-3",children:[l.jsx(_,{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:251",className:"mt-0.5 h-4 w-4 shrink-0 text-zinc-400"}),l.jsxs("div",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:251",children:[l.jsx("p",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:251",className:"text-[10px] font-black text-zinc-200",children:"บทวิเคราะห์ก่อนการแข่งขัน"}),l.jsxs("p",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:251",className:"mt-1 text-[9px] text-zinc-500",children:["ล็อกเมื่อ ",S(a.audit.analysisCreatedAt)]})]})]}),!e&&l.jsxs("div",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:252",className:"mb-3 flex items-start gap-2 rounded-xl border border-emerald-400/15 bg-emerald-400/[0.035] p-3",children:[l.jsx(L,{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:252",className:"mt-0.5 h-4 w-4 shrink-0 text-emerald-300"}),l.jsxs("div",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:252",children:[l.jsx("p",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:252",className:"text-[10px] font-black text-zinc-200",children:"Pre-match analysis · ยังเปิดรับข้อมูลก่อนเริ่มแข่ง"}),l.jsx("p",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:252",className:"mt-1 text-[9px] leading-4 text-zinc-500",children:"ระบบจะล็อกเวอร์ชันก่อนการแข่งขันเมื่อเข้าสู่เวลาแข่งขัน และไม่สร้างผลย้อนหลังหลังทราบผล"})]})]}),l.jsxs("div",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:253",className:"grid gap-2 min-[390px]:grid-cols-2 sm:grid-cols-3",children:[l.jsx(b,{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:254",label:"ข้อมูลอà¸
1±à¸›à¹€à¸”ตล่าสุด",value:S(s??a.updatedAt)}),l.jsx(b,{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:255",label:"วิเคราะห์เมื่อ",value:S(a.createdAt)}),l.jsx(b,{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:256",label:"Analysis Version",value:a.audit.predictionVersion,note:a.audit.predictionVersion==="UPDATED"&&d?"อัปเดตหลังประกาศรายชื่อผู้เล่น":void 0})]})]})}function wl({record:a,versions:s,onAnalyze:t,onRefresh:e,onRetry:d,activeAction:o,canAnalyze:m}){return l.jsxs("details",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:264",className:"group overflow-hidden rounded-2xl border border-sky-400/15 bg-sky-400/[0.025]",children:[l.jsxs("summary",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:265",className:"flex min-h-14 cursor-pointer list-none items-center gap-3 px-4",children:[l.jsx(fl,{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:265",className:"h-4 w-4 text-sky-300"}),l.jsxs("div",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:265",className:"min-w-0 flex-1",children:[l.jsx("h3",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:265",className:"text-[11px] font-black text-white",children:"Admin Technical / Audit"}),l.jsx("p",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:265",className:"mt-0.5 text-[9px] text-zinc-600",children:"Feature Values · Model Output · Hashes · Source References"})]}),l.jsx(B,{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:265",className:"h-4 w-4 text-zinc-500 transition-transform group-open:rotate-180 motion-reduce:transition-none"})]}),l.jsxs("div",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:266",className:"space-y-3 border-t border-white/[0.06] p-3",children:[l.jsx("div",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:267",className:"grid gap-2 sm:grid-cols-2",children:[["Prediction Version",a.audit.predictionVersion],["Model Version",a.audit.modelVersion],["Data Version",a.audit.dataVersion],["Lock State",a.audit.lockState],["Input Hash",a.audit.normalizedInputHash],["Feature Hash",a.audit.featureHash],["Model Output Hash",a.audit.modelOutputHash],["Explanation Hash",a.audit.explanationHash??"N/A"]].map(([n,i])=>l.jsxs("div",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:269",className:`rounded-xl p-3 ${u}`,children:[l.jsx("p",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:269",className:"text-[8px] uppercase tracking-[0.1em] text-zinc-600",children:n}),l.jsx("p",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:269",className:"mt-1 break-all font-mono text-[9px] leading-4 text-zinc-300",children:i})]},n))}),l.jsxs("details",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:270",className:`rounded-xl ${u}`,children:[l.jsx("summary",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:270",className:"cursor-pointer list-none px-3 py-3 text-[10px] font-bold text-zinc-300",children:"Normalized Fixture / Feature Values"}),l.jsx("pre",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:270",className:"max-h-80 overflow-auto border-t border-white/[0.05] p-3 text-[8px] leading-4 text-zinc-500",children:JSON.stringify({fixture:a.fixture,features:a.features},null,2)})]}),l.jsxs("details",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:271",className:`rounded-xl ${u}`,children:[l.jsx("summary",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:271",className:"cursor-pointer list-none px-3 py-3 text-[10px] font-bold text-zinc-300",children:"Model Output / Calibration"}),l.jsx("pre",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:271",className:"max-h-80 overflow-auto border-t border-white/[0.05] p-3 text-[8px] leading-4 text-zinc-500",children:JSON.stringify(a.modelOutput,null,2)})]}),l.jsxs("details",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:272",className:`rounded-xl ${u}`,children:[l.jsxs("summary",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:272",className:"cursor-pointer list-none px-3 py-3 text-[10px] font-bold text-zinc-300",children:["Source References (",a.audit.sourceRefs.length,")"]}),l.jsx("div",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:272",className:"max-h-64 overflow-auto border-t border-white/[0.05] p-3",children:a.audit.sourceRefs.map(n=>l.jsx("p",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:272",className:"break-all font-mono text-[8px] leading-4 text-zinc-600",children:n},n))})]}),l.jsxs("div",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:273",className:`rounded-xl p-3 ${u}`,children:[l.jsxs("p",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:273",className:"text-[9px] text-zinc-500",children:["Version history: ",s.length," · Development memory only"]}),l.jsx("div",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:273",className:"mt-2 space-y-1",children:s.map(n=>l.jsxs("div",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:273",className:"flex items-center justify-between gap-3 text-[8px]",children:[l.jsxs("span",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:273",className:"font-mono text-zinc-500",children:[n.audit.predictionVersion," · ",n.audit.dataVersion]}),l.jsx("span",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:273",className:"text-zinc-600",children:S(n.updatedAt)})]},`${n.audit.dataVersion}-${n.createdAt}`))})]}),l.jsxs("div",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:274",className:"grid gap-2 sm:grid-cols-3",children:[l.jsxs(k,{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:274",type:"button",variant:"outline",onClick:t,disabled:!m||o!==null,className:"min-h-11 border-white/10 text-zinc-300",children:[l.jsx(T,{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:274",className:`mr-2 h-4 w-4 ${o==="analyze"?"animate-pulse motion-reduce:animate-none":""}`}),"ใช้ Analysis Cache"]}
1),l.jsxs(k,{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:274",type:"button",variant:"outline",onClick:e,disabled:!m||o!==null,className:"min-h-11 border-amber-400/30 text-amber-300",children:[l.jsx(O,{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:274",className:`mr-2 h-4 w-4 ${o==="refresh"?"animate-spin motion-reduce:animate-none":""}`}),"รีเฟรชข้อมูลจริง"]}),l.jsxs(k,{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:274",type:"button",variant:"outline",onClick:d,disabled:!m||o!==null||a.explanation?.status==="ready",className:"min-h-11 border-sky-400/25 text-sky-300",children:[l.jsx(O,{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:274",className:`mr-2 h-4 w-4 ${o==="retry"?"animate-spin motion-reduce:animate-none":""}`}),"Retry คำอธิบาย"]})]}),l.jsx("p",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:275",className:"text-center text-[8px] leading-4 text-zinc-600",children:"ไม่มีการวิเคราะห์อัตโนมัติ · ไม่มี LLM call ตอนเปิดหน้า · ไม่มี Cron · ไม่มีการแก้ Model Output ใน Frontend"})]})]})}function kl({fixtureId:a,kickoffAt:s,phase:t,sourceUpdatedAt:e}){const[d,o]=C.useState(null),m=C.useMemo(()=>({fixtureId:a}),[a]),n=A.useUtils(),i=A.football.aiLatest.useQuery(m,{staleTime:15e3}),c=A.football.aiVersions.useQuery(m,{staleTime:15e3}),v=A.football.aiAnalyze.useMutation(),N=t==="upcoming",g=async F=>{o(F);try{const h=await v.mutateAsync({fixtureId:a,includeExplanation:!0,forceData:F==="refresh"||void 0,forceExplanation:F==="retry"||void 0});n.football.aiLatest.setData(m,h.record),await Promise.all([n.football.aiLatest.invalidate(m),n.football.aiVersions.invalidate(m),n.football.aiTodayRanking.invalidate({date:s.slice(0,10)})]);const Y=h.explanationUpdated===!0;E.success(h.versionCreated?"สร้าง Analysis Version แล้ว":Y?"อัปเดตคำอธิบาย AI ในเวอร์ชันเดิมแล้ว":"ใช้ผลวิเคราะห์จาก Cache")}catch(h){E.error(h instanceof Error?h.message:"ไม่สามารถวิเคราะห์การแข่งขันนี้ได้")}finally{o(null)}};if(i.isLoading)return l.jsxs("div",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:305",className:"space-y-3",children:[l.jsx(y,{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:305",className:"h-40 rounded-3xl"}),l.jsx(y,{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:305",className:"h-48 rounded-2xl"}),l.jsx(y,{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:305",className:"h-72 rounded-2xl"})]});if(i.error)return l.jsxs("div",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:306",role:"alert",className:"rounded-2xl border border-red-400/20 bg-red-400/[0.06] p-5 text-center",children:[l.jsx($,{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:306",className:"mx-auto h-8 w-8 text-red-300"}),l.jsx("p",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:306",className:"mt-2 text-sm font-black text-red-100",children:"โหลด Football AI Development data ไม่สำเร็จ"}),l.jsx(k,{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:306",variant:"outline",size:"sm",onClick:()=>i.refetch(),className:"mt-4 border-red-400/30 text-red-200",children:"ลองใหม่"})]});const x=i.data;if(!x)return l.jsx(yl,{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:309",canAnalyze:N,onAnalyze:()=>g("analyze"),loading:d==="analyze"});const r=x.modelOutput,M=r?.calibration.status==="uncalibrated_development";return l.jsxs("div",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:314",className:"space-y-3",children:[l.jsxs("section",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:315",className:`relative overflow-hidden rounded-3xl p-4 sm:p-5 ${f}`,children:[l.jsx("div",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:316","aria-hidden":!0,
1className:"pointer-events-none absolute inset-x-0 top-0 h-40 bg-[radial-gradient(circle_at_top_right,rgba(251,191,36,0.14),transparent_62%)]"}),l.jsxs("div",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:317",className:"relative flex flex-wrap items-start justify-between gap-3",children:[l.jsxs("div",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:317",children:[l.jsxs("div",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:317",className:"flex items-center gap-2 text-[9px] font-black uppercase tracking-[0.16em] text-amber-300",children:[l.jsx(H,{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:317",className:"h-3.5 w-3.5"})," MAWIN FOOTBALL AI"]}),l.jsx("h2",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:317",className:"mt-2 text-lg font-black text-white",children:"การวิเคราะห์จากข้อมูลและแบบจำลองทางสถิติ"}),l.jsx("p",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:317",className:"mt-1 max-w-xl text-[10px] leading-5 text-zinc-500",children:"สำหรับอ่านแนวโน้มเชิงสถิติ ไม่ใช่คำสั่งเดิมพัน และผลการแข่งขันจริงอาจแตกต่างได้"})]}),l.jsx(U,{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:317",level:x.eligibility.level})]}),l.jsxs("div",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:318",className:"relative mt-4 grid grid-cols-2 gap-2 sm:grid-cols-4",children:[l.jsx(b,{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:318",label:"ความพร้อมข้อมูล",value:p(x.eligibility.completeness),note:"Evidence ที่พร้อมใช้"}),l.jsx(b,{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:318",label:"Experimental Confidence",value:r?p(r.confidence.score):"N/A",note:"ไม่ใช่โอกาสชนะ",info:"Experimental Confidence เป็นดัชนีภายในที่ยังไม่ผ่าน empirical validation อย่างเพียงพอ และไม่ใช่ความน่าจะเป็นหรือเปอร์เซ็นต์รับประกันผลการแข่งขัน"}),l.jsx(b,{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:318",label:"Analysis Version",value:x.audit.predictionVersion}),l.jsx(b,{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:318",label:"Model Status",value:M?"Development":r?.calibration.status??"No model"})]}),M&&l.jsx("div",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:319",role:"status",className:"relative mt-3 rounded-xl border border-amber-400/25 bg-amber-400/[0.06] p-3",children:l.jsxs("div",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:319",className:"flex flex-wrap items-center gap-2",children:[l.jsx(Q,{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:319",variant:"outline",className:"border-amber-400/30 bg-amber-400/10 text-[9px] text-amber-200",children:"Development Estimate"}),l.jsx("p",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:319",className:"text-[10px] font-bold text-amber-100",children:"ค่าความน่าจะเป็นนี้เป็นผลประมาณจากแบบจำลองที่อยู่ระหว่างการทดสอบและปรับเทียบ ไม่ใช่การรับประกันผลการแข่งขัน"})]})}),x.eligibility.warning&&l.jsxs("div",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:320",className:"relative mt-3 flex items-start gap-2 rounded-xl border border-orange-400/15 bg-orange-400/[0.04] p-3 text-[10px] leading-5 text-orange-200",children:[l.jsx($,{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:320",className:"mt-0.5 h-4 w-4 shrink-0"}),x.eligibility.warning]})]}),r?l.jsxs(l.Fragment,{children:[l.jsx(gl,{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:323",record:x}),l.jsx(Fl,{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:323",record:x}),l.jsx(Pl,{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:323",record:x}),l.jsx(jl,{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:323",record:x})]}):l.jsxs("section",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:323",className:`rounded-2xl px-5 py-10 text-center ${f}`,children:[l.jsx(J,{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:323",className:"mx-auto h-9 w-9 text-zinc-500"}),l.jsx("h3",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:323",className:"mt-3 text-base font-black text-white",children:"ข้อมูลไม่เพียงพอสำหรับการวิเคราะห์"}),l.jsx("p",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:323",className:"mx-auto mt-2 max-w-lg text-[11px] leading-5 text-zinc-500",children:"ระบบบันทึกเฉพาะสถานะคุณภาพข้อมูลและไม่สร้าง Probability, Confidence หรือคำอธิบายเชิงผลการแข่งขันเมื่อข้อมูลยังไม่ผ่าน Core Evidence Gate"})]}),l.jsx(Nl,{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:325",record:x}),l.jsx(vl,{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:326",record:x,sourceUpdatedAt:e,phase:t}),r&&l.jsx("section",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:327",className:"rounded-2xl border border-sky-400/15 bg-sky-4
100/[0.03] p-4",children:l.jsxs("div",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:327",className:"flex items-start gap-2",children:[l.jsx(Z,{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:327",className:"mt-0.5 h-4 w-4 shrink-0 text-sky-300"}),l.jsxs("div",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:327",children:[l.jsxs("p",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:327",className:"text-[10px] font-black text-sky-200",children:["สถานะการปรับเทียบ: ",r.calibration.status]}),l.jsx("p",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:327",className:"mt-1 text-[9px] leading-4 text-zinc-500",children:r.calibration.note})]})]})}),l.jsx(wl,{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:328",record:x,versions:c.data??[],onAnalyze:()=>g("analyze"),onRefresh:()=>g("refresh"),onRetry:()=>g("retry"),activeAction:d,canAnalyze:N}),l.jsxs("p",{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:329",className:"px-2 text-center text-[9px] leading-5 text-zinc-600",children:[l.jsx(L,{"data-loc":"client/src/components/football/FootballAiAnalysisPanel.tsx:329",className:"mr-1 inline h-3.5 w-3.5"}),"การวิเคราะห์นี้ใช้ข้อมูลและแบบจำลองทางสถิติ ผลการแข่งขันจริงอาจแตกต่างได้"]})]})}function Ml(){const a=new URLSearchParams(window.location.search).get("tab");return G.some(([s])=>s===a)?a:"overview"}function j({text:a="โหลดข้อมูลส่วนนี้ไม่สำเร็จ กรุณาลองอีกครั้ง"}){return l.jsx("div",{"data-loc":"client/src/pages/admin/AdminFootballMatchPage.tsx:26",role:"alert",className:"rounded-2xl border border-red-400/20 bg-red-400/[0.06] px-4 py-8 text-center text-[11px] text-red-200",children:a})}function w({height:a="h-72"}){return l.jsxs("div",{"data-loc":"client/src/pages/admin/AdminFootballMatchPage.tsx:30",className:"space-y-2",children:[l.jsx(y,{"data-loc":"client/src/pages/admin/AdminFootballMatchPage.tsx:30",className:"h-16 rounded-2xl"}),l.jsx(y,{"data-loc":"client/src/pages/admin/AdminFootballMatchPage.tsx:30",className:`${a} rounded-2xl`})]})}function Ul(){const[,a]=el("/admin/football-match/:fixtureId"),s=Number(a?.fixtureId??0),[,t]=ol(),[e,d]=C.useState(Ml),o={fixtureId:s},m=A.football.overview.useQuery(o,{enabled:s>0,staleTime:3e4}),n=A.football.forms.useQuery(o,{enabled:s>0&&e==="overview",staleTime:3e4}),i=A.football.aiLatest.useQuery(o,{enabled:s>0&&e==="overview",staleTime:15e3}),c=A.football.statistics.useQuery(o,{enabled:s>0&&e==="statistics",staleTime:3e4}),v=A.football.h2h.useQuery(o,{enabled:s>0&&e==="h2h",staleTime:3e4}),N=A.football.standings.useQuery(o,{enabled:s>0&&e==="standings",staleTime:3e4}),g=A.football.lineups.useQuery(o,{enabled:s>0&&e==="players",staleTime:3e4}),x=A.football.injuries.useQuery(o,{enabled:s>0&&e==="players",staleTime:3e4}),r=m.data?.data,M=F=>{d(F);const h=new URLSearchParams(window.location.search);h.set("tab",F),window.history.replaceState(null,"",`${window.location.pathname}?${h.toString()}`)};return s<=0?l.jsx(j,{"data-loc":"client/src/pages/admin/AdminFootballMatchPage.tsx:57",text:"Fixture ID ไม่ถูกต้อง"}):m.isLoading?l.jsxs("div",{"data-loc":"client/src/pages/admin/AdminFootballMatchPage.tsx:58",className:"space-y-3",children:[l.jsx(y,{"data-loc":"client/src/pages/admin/AdminFootballMatchPage.tsx:58",className:"h-10 rounded-xl"}),l.jsx(y,{"data-loc":"client/src/pages/admin/AdminFootballMatchPage.tsx:58",className:"h-64 rounded-3xl"}),l.jsx(y,{"data-loc":"client/src/pages/admin/AdminFootballMatchPage.tsx:58",className:"h-12 rounded-2xl"}),l.jsx(y,{"data-loc":"client/src/pages/admin/AdminFootballMatchPage.tsx:58",className:"h-72 rounded-2xl"})]}):m.error||!r?l.jsxs("div",{"data-loc":"client/src/pages/admin/AdminFootballMatchPage.tsx:59",className:"space-y-3",children:[l.jsxs("button",{"data-loc":"client/src/pages/admin/AdminFootballMatchPage.tsx:59",type:"button",onClick:()=>t("/admin/football-preview"),className:"inline-flex min-h-11 items-center gap-2 text-[11px] font-semibold text-zinc-400",children:[l.jsx(R,{"data-loc":"client/src/pages/admin/AdminFootballMatchPage.tsx:59",className:"h-4 w-4"})," ฟุตบอลวันนี้"]}),l.jsx(j,{"data-loc":"client/src/pages/admin/AdminFootballMatchPage.tsx:59"})]}):l.jsxs("div",{"data-loc":"client/src/pages/admin/AdminFootballMatchPage.tsx:62",className:"mx-auto w-full max-w-5xl space-y-3 pb-10 text-zinc-100",children:[l.jsxs("button",{"data-loc":"client/src/pages/admin/AdminFootballMatchPage.tsx:63",type:"button",onClick:()=>t("/admin/football-preview"),className:"inline-flex min-h-11 items-center gap-2 rounded-xl px-1 text-[11px] font-bold text-zinc-500 transition hover:text-white active:scale-[0.98] motion-reduce:transition-none",children:[l.jsx(R,{"data-loc":"client/src/pages/admin/AdminFootballMatchPage.tsx:63",className:"h-4 w-4"})," กลับฟุตบอลวันนี้"]}),l.jsx(nl,{"data-loc":"client/src/pages/admin/AdminFootballMatchPage.tsx:65",match:r,stale:m.data?.cache.stale===!0}),l.jsx(il,{"data-loc":"client/src/pages/admin/AdminFootballMatchPage.tsx:66",active:e,onCh
1ange:M}),l.jsxs("div",{"data-loc":"client/src/pages/admin/AdminFootballMatchPage.tsx:68",className:"animate-in fade-in slide-in-from-bottom-1 duration-200 motion-reduce:animate-none",children:[e==="overview"&&(n.isLoading||i.isLoading?l.jsx(w,{"data-loc":"client/src/pages/admin/AdminFootballMatchPage.tsx:70"}):n.error?l.jsx(j,{"data-loc":"client/src/pages/admin/AdminFootballMatchPage.tsx:70"}):l.jsx(cl,{"data-loc":"client/src/pages/admin/AdminFootballMatchPage.tsx:70",match:r,homeForm:n.data?.home??null,awayForm:n.data?.away??null,analysis:i.data??null})),e==="statistics"&&(c.isLoading?l.jsx(w,{"data-loc":"client/src/pages/admin/AdminFootballMatchPage.tsx:74"}):c.error?l.jsx(j,{"data-loc":"client/src/pages/admin/AdminFootballMatchPage.tsx:74"}):l.jsx(rl,{"data-loc":"client/src/pages/admin/AdminFootballMatchPage.tsx:74",rows:c.data?.data??[],hasStarted:r.status.phase!=="upcoming"})),e==="h2h"&&(v.isLoading?l.jsx(w,{"data-loc":"client/src/pages/admin/AdminFootballMatchPage.tsx:78"}):v.error?l.jsx(j,{"data-loc":"client/src/pages/admin/AdminFootballMatchPage.tsx:78"}):l.jsx(dl,{"data-loc":"client/src/pages/admin/AdminFootballMatchPage.tsx:78",rows:v.data?.data??[],homeId:r.home.id,awayId:r.away.id})),e==="standings"&&(N.isLoading?l.jsx(w,{"data-loc":"client/src/pages/admin/AdminFootballMatchPage.tsx:82"}):N.error?l.jsx(j,{"data-loc":"client/src/pages/admin/AdminFootballMatchPage.tsx:82"}):l.jsx(xl,{"data-loc":"client/src/pages/admin/AdminFootballMatchPage.tsx:82",rows:N.data?.data??[],homeId:r.home.id,awayId:r.away.id})),e==="players"&&(g.isLoading||x.isLoading?l.jsx(w,{"data-loc":"client/src/pages/admin/AdminFootballMatchPage.tsx:86"}):g.error||x.error?l.jsx(j,{"data-loc":"client/src/pages/admin/AdminFootballMatchPage.tsx:86"}):l.jsx(ml,{"data-loc":"client/src/pages/admin/AdminFootballMatchPage.tsx:86",rows:g.data?.data??[],injuries:x.data?.data??[]})),e==="ai"&&l.jsx(kl,{"data-loc":"client/src/pages/admin/AdminFootballMatchPage.tsx:89",fixtureId:s,kickoffAt:r.kickoffAt,phase:r.status.phase,sourceUpdatedAt:m.data?.meta.requestedAt}),!G.some(([F])=>F===e)&&l.jsx(bl,{"data-loc":"client/src/pages/admin/AdminFootballMatchPage.tsx:91",title:"ไม่พบแท็บที่เลือก",description:"กรุณาเลือกข้อมูลการแข่งขันจากเมนูด้านบน"})]},e),l.jsxs("footer",{"data-loc":"client/src/pages/admin/AdminFootballMatchPage.tsx:94",className:"flex items-center justify-center gap-2 py-2 text-center text-[9px] leading-4 text-zinc-600",children:[l.jsx(L,{"data-loc":"client/src/pages/admin/AdminFootballMatchPage.tsx:94",className:"h-3.5 w-3.5 shrink-0"})," ข้อมูลจริงจาก API-Football · Development Preview · ไม่มีการสร้างผลการแข่งขันเอง"]})]})}export{Ul 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.