1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8974],{20063:(e,t,s)=>{"use strict";var a=s(47260);s.o(a,"useParams")&&s.d(t,{useParams:function(){return a.useParams}}),s.o(a,"usePathname")&&s.d(t,{usePathname:function(){return a.usePathname}}),s.o(a,"useRouter")&&s.d(t,{useRouter:function(){return a.useRouter}}),s.o(a,"useSearchParams")&&s.d(t,{useSearchParams:function(){return a.useSearchParams}})},24318:(e,t,s)=>{"use strict";s.d(t,{A:()=>n});var a=s(95155),l=s(81398),r=s(30836);function n(e){let{children:t}=e;return(0,a.jsxs)("div",{className:"min-h-screen flex flex-col bg-gray-900 text-white",children:[(0,a.jsx)(l.A,{}),(0,a.jsx)("main",{className:"flex-1",children:t}),(0,a.jsx)(r.A,{})]})}},29877:(e,t,s)=>{"use strict";s.d(t,{default:()=>i});var a=s(95155),l=s(12115),r=s(15239),n=s(52619),d=s.n(n);function i(e){let{leagueName:t="premierleague"}=e,[s,n]=(0,l.useState)([]),[i,c]=(0,l.useState)(!0),[m,o]=(0,l.useState)(null),[,x]=(0,l.useState)(null),[,h]=(0,l.useState)({}),g=async()=>{try{c(!0),o(null);let e=await fetch("/api/news/"),t=await e.json();t.success?(n(t.data),x(new Date),h({cache_time:t.cache_time,fetched_at:t.fetched_at})):o("à¹à¸¡à¹à¸ªà¸²à¸¡à¸²à¸£à¸à¹à¸«à¸¥à¸à¸à¹à¸²à¸§à¸ªà¸²à¸£à¹à¸à¹")}catch(e){o("à¹à¸à¸´à¸à¸à¹à¸à¸à¸´à¸à¸à¸¥à¸²à¸à¹à¸à¸à¸²à¸£à¹à¸«à¸¥à¸à¸à¹à¸²à¸§à¸ªà¸²à¸£"),console.error("Error fetching news:",e)}finally{c(!1)}};if((0,l.useEffect)(()=>{g()},[t]),i)return(0,a.jsxs)("div",{className:"bg-white rounded-lg shadow-md p-4 sm:p-6",children:[(0,a.jsxs)("div",{className:"flex justify-between items-center mb-4 sm:mb-6",children:[(0,a.jsx)("div",{className:"h-6 sm:h-8 bg-gray-200 rounded w-32 sm:w-48 animate-pulse"}),(0,a.jsx)("div",{className:"h-3 sm:h-4 bg-gray-200 rounded w-24 sm:w-32 animate-pulse"})]}),(0,a.jsxs)("div",{className:"space-y-4 sm:space-y-6",children:[(0,a.jsxs)("div",{className:"animate-pulse",children:[(0,a.jsx)("div",{className:"bg-gray-200 h-48 sm:h-64 lg:h-96 rounded-lg mb-3 sm:mb-4"}),(0,a.jsx)("div",{className:"bg-gray-200 h-4 sm:h-6 rounded mb-2 sm:mb-3"}),(0,a.jsx)("div",{className:"bg-gray-200 h-3 sm:h-4 rounded mb-2"}),(0,a.jsx)("div",{className:"bg-gray-200 h-3 sm:h-4 rounded w-2/3"})]}),(0,a.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4 sm:gap-6",children:[...Array(6)].map((e,t)=>(0,a.jsxs)("div",{className:"animate-pulse",children:[(0,a.jsx)("div",{className:"bg-gray-200 h-32 sm:h-40 lg:h-48 rounded-lg mb-2 sm:mb-3"}),(0,a.jsx)("div",{className:"bg-gray-200 h-3 sm:h-4 rounded mb-2"}),(0,a.jsx)("div",{className:"bg-gray-200 h-3 rounded mb-2"}),(0,a.jsx)("div",{className:"bg-gray-200 h-3 rounded w-2/3"})]},t))})]})]});if(m)return(0,a.jsxs)("div",{className:"bg-white rounded-lg shadow-md p-4 sm:p-6",children:[(0,a.jsx)("h2",{className:"text-xl sm:text-2xl font-bold text-gray-900 mb-4 sm:mb-6",children:"à¸à¹à¸²à¸§à¸ªà¸²à¸£à¸¥à¹à¸²à¸ªà¸¸à¸"}),(0,a.jsx)("div",{className:"bg-red-50 border border-red-200 rounded-lg p-3 sm:p-4",children:(0,a.jsx)("p",{className:"text-red-600 text-sm sm:text-base",children:m})})]});let u=s[0],p=s.slice(1,7);return(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"py-4 sm:py-6",children:(0,a.jsx)("h2",{className:"text-xl sm:text-2xl font-bold text-white",children:"à¸à¹à¸²à¸§à¸à¸¸à¸à¸à¸à¸¥à¸¥à¹à¸²à¸ªà¸¸à¸"})}),(0,a.jsxs)("div",{className:"space-y-4 sm:space-y-6",children:[u&&(0,a.jsx)("div",{className:"group cursor-pointer relative bg-slate-900 rounded-lg shadow-sm hover:shadow-md transition-all duration-300 overflow-hidden",children:(0,a.jsxs)("a",{href:u.link,target:"_blank",className:"block","aria-label":"à¸à¹à¸²à¸à¸à¹à¸²à¸§: ".concat(u.subject),children:[(0,a.jsx)("div",{className:"relative overflow-hidden",children:(0,a.jsx)(r.default,{src:u.picture,alt:u.subject,width:800,height:400,className:"w-full h-48 sm:h-64 lg:h-96 object-cover",onError:e=>{e.target.src="/images/bg.jpg"}})}),(0,a.jsxs)("div",{className:"p-4 sm:p-6 space-y-2",children:[(0,a.jsx)("div",{className:"text-xs sm:text-sm text-gray-400",children:(0,a.jsx)("span",{children:u.formattedDate})}),(0,a.jsx)("h3",{className:"text-lg sm:text-xl lg:text-2xl font-bold text-white line-clamp-2 group-hover:text-yellow-600 transition-colors",children:u.subject}),(0,a.jsx)("p",{className:"text-sm sm:text-base lg:text-lg text-gray-400 line-clamp-3 lg:line-clamp-4",children:u.title})]})]})}),(0,a.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-3 sm:gap-4",children:p.map((e,t)=>(0,a.jsx)("div",{className:"group cursor-pointer relative bg-gray-900 rounded-lg shadow-sm hover:shadow-md transition-all duration-300 overflow-hidden",children:(0,a.jsxs)("a",{href:e.link,target:"_blank",className:"block","aria-label":"à¸à¹à¸²à¸à¸à¹à¸²à¸§: ".concat(e.subject),children:[(0,a.jsx)("div",{className:"relative overflow-hidden",children:(0,a.jsx)(r.default,{src:e.picture,alt:e.subject,width:300,height:200,className:"w-full h-40 object-cover object-top",onError:e=>{e.target.src="/images/bg.jpg"}})}),(0,a.jsxs)("div",{className:"p-3 sm:p-4 space-y-2 h-full",children:[(0,a.jsx)("div",{className:"text-xs text-gray-500",children:(0,a.jsx)("span",{children:e.formattedDate})}),(0,a.jsx)("h3",{className:"font-normal text-sm sm:text-base text-gray-200 group-hover:text-yellow-600 transition-colors line-clamp-2",children:e.subject})]})]})},e._id||e.id||t))}),(0,a.jsx)("div",{className:"text-right mt-4 p-2",children:(0,a.jsx)(d(),{href:"/news",className:"text-white/80 text-xs sm:text-sm",children:"à¸à¸¹à¸à¹à¸²à¸§à¸à¸¸à¸à¸à¸à¸¥à¸à¸±à¹à¸à¸«à¸¡à¸à¸à¸µà¹à¸à¸µà¹"})})]})]})}},30008:(e,t,s)=>{"use strict";s.d(t,{default:()=>d});var a=s(95155),l=s(24318),r=s(65380),n=s(68321);function d(e){let{children:t}=e;return(0,a.jsxs)(r.O,{children:[(0,a.jsx)(n.default,{id:"pubmatic-script",strategy:"afterInteractive",children:"\n var PWT={};\n var googletag = window.googletag || {};\n googletag.cmd = googletag.cmd || [];\n window.googletag = googletag;\n PWT.jsLoaded = function(){\n (function() {\
1n var gads = document.createElement('script');\n var useSSL = 'https:' == document.location.protocol;\n gads.src = (useSSL ? 'https:' : 'http:') + '//securepubads.g.doubleclick.net/tag/js/gpt.js';\n var node = document.getElementsByTagName('script')[0];\n node.parentNode.insertBefore(gads, node);\n })();\n };\n (function() {\n var purl = window.location.href;\n var url = '//ads.pubmatic.com/AdServer/js/pwt/156743/740';\n var profileVersionId = '';\n if(purl.indexOf('pwtv=')>0){\n var regexp = /pwtv=(.*?)(&|$)/g;\n var matches = regexp.exec(purl);\n if(matches.length >= 2 && matches[1].length > 0){\n profileVersionId = '/'+matches[1];\n }\n }\n var wtads = document.createElement('script');\n wtads.async = true;\n wtads.type = 'text/javascript';\n wtads.src = url+profileVersionId+'/pwt.js';\n var node = document.getElementsByTagName('script')[0];\n node.parentNode.insertBefore(wtads, node);\n })();\n "}),(0,a.jsx)(n.default,{id:"gam-ads-script-default",strategy:"afterInteractive",children:"\n var googletag = window.googletag || { cmd: [] };\n window.googletag = googletag;\n googletag.cmd.push(function() {\n googletag.defineSlot('/16357739/1px_inread_match_hp', [1, 1], 'div-gpt-ad-1763024399880-0').addService(googletag.pubads());\n googletag.defineSlot('/16357739/Football_300_2_PC', [[300,250],[1,1],[300,600]], 'div-gpt-ad-1584420816356-0').addService(googletag.pubads());\n googletag.defineSlot('/16357739/320', [[728,90],[1,1]], 'div-gpt-ad-1550064126874-0').addService(googletag.pubads());\n googletag.defineSlot('/16357739/320x50px', [[970,250],[1,1]], 'div-gpt-ad-1550064169442-0').addService(googletag.pubads());\n googletag.defineSlot('/16357739/football_320', [[320, 50], [320, 100], [1, 1]], 'div-gpt-ad-1758610633874-0').addService(googletag.pubads());\n googletag.defineSlot('/16357739/Football_inter_mob', [[336, 280], [300, 250], [320, 480]], 'div-gpt-ad-1758610657793-0').addService(googletag.pubads());\n googletag.defineSlot('/16357739/football_300', [[336, 280], [1, 1], [300, 250]], 'div-gpt-ad-1758610585406-0').addService(googletag.pubads());\n googletag.pubads().enableSingleRequest();\n googletag.pubads().collapseEmptyDivs(true);\n googletag.enableServices();\n });\n "}),(0,a.jsx)(l.A,{children:t})]})}},42026:(e,t,s)=>{"use strict";s.d(t,{default:()=>i});var a=s(95155),l=s(12115),r=s(15239),n=s(52619),d=s.n(n);function i(){let[e,t]=(0,l.useState)([]),[s,n]=(0,l.useState)(!0),[i,c]=(0,l.useState)(null);return((0,l.useEffect)(()=>{(async()=>{try{n(!0);let e=await fetch("/api/predictions"),s=await e.json();if(!e.ok)throw Error(s.error||"Failed to fetch predictions");t(s.data||[])}catch(e){c(e instanceof Error?e.message:"Something went wrong")}finally{n(!1)}})()},[]),s)?(0,a.jsxs)("div",{className:"text-white bg-gradient-to-t from-slate-800/80 to-gray-900/80 rounded-lg shadow-md p-4 sm:p-6",children:[(0,a.jsx)("h2",{className:"text-lg sm:text-xl lg:text-2xl font-bold mb-3 sm:mb-4 text-center",children:"วิà¹à¸à¸£à¸²à¸°à¸«à¹à¸à¹à¸à¸à¹à¸à¸¡"}),(0,a.jsx)("div",{className:"text-center py-6 sm:py-8",children:(0,a.jsx)("div",{className:"text-gray-500 text-sm sm:text-base",children:"à¸à¸³à¸¥à¸±à¸à¹à¸«à¸¥à¸à¸à¹à¸à¸¡à¸¹à¸¥..."})})]}):i?(0,a.jsxs)("div",{className:"text-white bg-gradient-to-t from-slate-800/80 to-gray-900/80 rounded-lg shadow-md p-4 sm:p-6",children:[(0,a.jsx)("h2",{className:"text-lg sm:text-xl lg:text-2xl font-bold mb-3 sm:mb-4 text-center",children:"วิà¹à¸à¸£à¸²à¸°à¸«à¹à¸à¹à¸à¸à¹à¸à¸¡"}),(0,a.jsx)("div",{className:"text-center py-6 sm:py-8",children:(0,a.jsxs)("div",{className:"text-red-500 text-sm sm:text-base",children:["à¹à¸à¸´à¸à¸à¹à¸à¸à¸´à¸à¸à¸¥à¸²à¸: ",i]})})]}):(0,a.jsxs)("div",{className:"bg-gradient-to-t from-white/10 to-white/20 backdrop-blur-xs rounded-lg shadow-md p-4 my-4",children:[(0,a.jsx)("h2",{className:"text-lg sm:text-xl lg:text-2xl font-bold mb-3 sm:mb-4 text-center text-white/80",children:"วิà¹à¸à¸£à¸²à¸°à¸«à¹à¸à¸à¸¥"}),0===e.length?(0,a.jsx)("div",{className:"text-center py-6 sm:py-8",children:(0,a.jsx)("div",{className:"text-gray-500 text-sm sm:text-base",children:"à¸à¸£à¸¸à¸à¸²à¸£à¸à¸ªà¸±à¸à¸à¸£à¸¹à¹"})}):(0,a.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-3",children:e.map(e=>(0,a.jsxs)("div",{className:"bg-gradient-to-t from-slate-700 to-slate-900 bg-radial border border-gray-500/30 text-white rounded-lg px-4 sm:px-6 py-3 hover:shadow-md transition-shadow",children:[(0,a.jsx)("div",{className:"items-center mb-2",children:(0,a.jsx)("div",{className:"text-xs sm:text-sm text-gray-400 font-medium text-center",children:(e=>{let t=new Date(e),s=t.getDate(),a=t.getMonth(),l=t.getFullYear()+543;return"".concat(s," ").concat(["ม.à¸.","à¸.à¸.","มี.à¸.","à¹à¸¡.ย.","à¸.à¸.","มิ.ย.","à¸.à¸.","ส.à¸.","à¸.ย.","à¸.à¸.","à¸.ย.","à¸.à¸."][a]," ").concat(l)})(e.starting_at)})}),(0,a.jsxs)("div",{className:"grid grid-cols-3 gap-2",children:[(0,a.jsx)("div",{className:"text-center",children:(0,a.jsxs)("a",{href:"/".concat(e.id),className:"block",children:[e.home_team_image_path?(0,a.jsx)(r.default,{src:e.home_team_image_path,alt:e.home_team_name,width:40,height:40,className:"w-8 h-8 sm:w-10 sm:h-10 object-contain mx-auto mb-1 sm:mb-2"}):(0,a.jsx)("div",{className:"w-8 h-8 sm:w-10 sm:h-10 bg-gray-300 rounded-full flex items-center justify-center mx-auto mb-1 sm:mb-2",children:(0,a.jsx)("span",{className:"text-sm sm:text-lg text-gray-600",children:"H"})}),(0,a.jsx)("div",{className:"text-xs sm:text-sm font-medium text-gray-300 truncate",children:e.home_team_name})]})}),(0,a.jsx)("div",{className:"text-center",children:(0,a.jsxs)("a",{href:"/".concat(e.id),className:"block",children:[(0,a.jsx)("div",{className:"text-lg sm:text-2xl font-bold text-yellow-500 mb-1 sm:mb-2",children:"VS"}),(0,a.jsx)("div",{className:"text-xs text-gray-400",children:(e=>{let t=new Date(e),s=t.getUTCHours().toString().padStart(2,"0"),a=t.getUTCMinutes().toString().padStart(2,"0");return"".concat(s,":").concat(a)})(e.starting_at)})]})}),(0,a.jsx)("div",{className:"text-center",children:(0,a.jsxs)("a",{href:"/".concat(e.id),className:"block",children:[e.away_team_image_path?(0,a.jsx)(r.default,{src:e.away_team_image_path,alt:e.away_team_name,width:40,height:40,className:"w-8 h-8 sm:w-10 sm:h-10 object-contain mx-auto mb-1 sm:mb-2"}):(0,a.jsx)("div",{className:"w-8 h-8 sm:w-10 sm:h-10 bg-gray-300 rounded-full flex items-center justify-center mx-auto mb-1 sm:mb-2",children:(0,a.jsx)("span",{className:"text-sm sm:text-lg",children:"A"})}),(0,a.jsx)("div",{className:"text-xs sm:text-sm font-medium text-gray-300 truncate",children:e.away_team_name})]})})]})]},e.id))}),(0,a.jsx)("div",{className:"text-center",children:(0,a.jsx)(d(),{href:"/prediction",className:"block text-white bg-white/10 py-2 border border-white/20 rounded-2xl mt-4 text-sm sm:text-base",children:"à¸à¹à¸²à¸à¸§à¸´à¹à¸à¸£à¸²à¸°à¸«à¹à¸à¸à¸¥ à¸à¸±à¹à¸à¸«à¸¡à¸à¸à¸µà¹à¸à¸µà¹"})})]})}},52768:(e,t,s)=>{"use strict";s.d(t,{default:()=>n});var a=s(95155),l=s(12115),r=s(15239);function n(){let[e,t]=(0,l.useState)([]),[s,n]=(0,l.useState)(!0),[d,i]=(0,l.useState)(!1),[c,m]=(0,l.useState)(null),[o,x]=(0,l.useState)(1),[h,g]=(0,l.useState)(!1),u=async(e,s)=>{try{s?i(!0):n(!0);let a=await fetch("/api/analysis?page=".concat(e,"&limit=").concat(8)),l=await a.json();if(!a.ok)throw Error(l.error||"Failed to fetch analysis");let r=l.data||[];t(e=>s?[...e,...r]:r),g(!!l.hasMore),x(e),m(null)}catch(e){m(e instanceof Error?e.message:"Something went wrong")}finally{n(!1),i(!1)}};return((0,l.useEffect)(()=>{u(1,!1)},[]),s)?(0,a.jsxs)("div",{className:"text-white bg-gradient-to-t from-slate-800/80 to-gray-900/80 rounded-lg shadow-md p-4 sm:p-6",children:[(0,a.jsx)("h2",{className:"text-lg sm:text-xl lg:text-2xl font-bold mb-3 sm:mb-4 text-center",children:"à¸à¸à¸ªà¸£à¸¸à¸à¸«à¸¥à¸±à¸à¹à¸à¸¡"}),(0,a.jsx)("div",{className:"text-center py-6 sm:py-8",children:(0,a.jsx)("div",{className:"text-gray-500 text-sm sm:text-base",children:"à¸à¸³à¸¥à¸±à¸à¹à¸«à¸¥à¸à¸à¹à¸à¸¡à¸¹à¸¥..."})})]}):c&&0===e.length?(0,a.jsxs)("div",{className:"text-white bg-gradient-to-t from-slate-800/80 to-gray-900/80 rounded-lg shadow-md p-4 sm:p-6",children:[(0,a.jsx)("h2",{className:"text-lg sm:text-xl lg:text-2xl font-bold mb-3 sm:mb-4 text-center",children:"à¸à¸à¸ªà¸£à¸¸à¸à¸«à¸¥à¸±à¸à¹à¸à¸¡"}),(0,a.jsx)("div",{className:"text-center py-6 sm:py-8",children:(0,a.jsxs)("div",{className:"text-red-500 text-sm sm:text-base",children:["à¹à¸à¸´à¸à¸à¹à¸à¸à¸´à¸à¸à¸¥à¸²à¸: ",c]})})]}):(0,a.jsxs)("div",{className:"text-white bg-gradient-to-t from-white/10 to-white/20 rounded-lg shadow-md p-4 sm:p-6",children:[(0,a.jsx)("h2",{className:"text-lg sm:text-xl lg:text-2xl font-bold mb-3 sm:mb-4 text-center",children:"à¸à¸à¸ªà¸£à¸¸à¸à¸«à¸¥à¸±à¸à¹à¸à¸¡"}),0===e.length?(0,a.jsx)("div",{className:"text-center py-6 sm:py-8",children:(0,a.jsx)("div",{className:"text-gray-500 text-sm sm:text-base",children:"à¸à¸£à¸¸à¸à¸²à¸£à¸à¸ªà¸±à¸à¸à¸£à¸¹à¹"})}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"grid grid-cols-1 lg:grid-cols-4 gap-3 sm:gap-4",children:e.map(e=>(0,a.jsx)("div",{className:"bg-gradient-to-t from-slate-700 to-slate-900 border border-gray-500/30 text-white rounded-lg p-3 sm:p-4 hover:shadow-md transition-shadow",children:(0,a.jsxs)("div",{className:"grid grid-cols-3 justify-center items-center gap-2",children:[(0,a.jsx)("div",{className:"text-center",children:(0,a.jsxs)("a",{href:"/".concat(e.id),className:"block",children:[e.home_team_image_path?(0,a.jsx)(r.default,{src:e.home_team_image_path,alt:e.home_team_name,width:40,height:40,className:"w-8 h-8 sm:w-10 sm:h-10 object-contain mx-auto mb-1 sm:mb-2"}):(0,a.jsx)("div",{className:"w-8 h-8 sm:w-10 sm:h-10 bg-gray-300 rounded-full flex items-center justify-center mx-auto mb-1 sm:mb-2",children:(0,a.jsx)("span",{className:"text-xs sm:text-sm text-gray-600",children:"H"})}),(0,a.jsx)("div",{className:"text-xs sm:text-sm font-medium truncate",children:e.home_team_name})]})}),(0,a.jsx)("div",{className:"text-center",children:(0,a.jsx)("a",{href:"/".concat(e.id),className:"block",children:(0,a.jsx)("div",{className:"text-2xl font-bold text-yellow-500 mb-1",children:null!==e.home_score&&null!==e.away_score?"".concat(e.home_score," - ").concat(e.away_score):"VS"})})}),(0,a.jsx)("div",{className:"text-center",children:(0,a.jsxs)("a",{href:"/".concat(e.id),className:"block",children:[e.away_team_image_path?(0,a.jsx)(r.default,{src:e.away_team_image_path,alt:e.away_team_name,width:40,height:40,className:"w-8 h-8 sm:w-10 sm:h-10 object-contain mx-auto mb-1 sm:mb-2"}):(0,a.jsx)("div",{className:"w-8 h-8 sm:w-10 sm:h-10 bg-gray-300 rounded-full flex items-center justify-center mx-auto mb-1 sm:mb-2",children:(0,a.jsx)("span",{className:"text-xs sm:text-sm",children:"A"})}),(0,a.jsx)("div",{className:"text-xs sm:text-sm font-medium truncate",children:e.away_team_name})]})})]})},e.id))}),h&&(0,a.jsx)("div",{className:"flex justify-center mt-4 sm:mt-6",children:(0,a.jsx)("button",{onClick:()=>{!d&&h&&u(o+1,!0)},disabled:d,className:"flex items-center space-x-2 px-6 py-3 bg-slate-600 text-white rounded-lg hover:bg-blue-700 disabled:opacity-50 disabled:cursor-not-allowed transition-colors font-medium",children:d?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("svg",{className:"w-5 h-5 animate-spin",fill:"none",viewBox:"0 0 24 24",children:[(0,a.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,a.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),(0,a.jsx)("span",{children:"à¸à¸³à¸¥à¸±à¸à¹à¸«à¸¥à¸..."})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})}),(0,a.jsx)("span",{children:"à¸à¸¹à¹à¸à¸´à¹à¸¡à¹à¸à¸´à¸¡"})]})})})]})]})}},76765:(e,t,s)=>{Promise.resolve().then(s.t.bind(s,41402,23)),Promise.resolve().then(s.bind(s,52768)),Promise.resolve().then(s.bind(s,40868)),Promise.resolve().then(s.bind(s,30008)),Promise.resolve().then(s.bind(s,29877)),Promise.resolve().then(s.bind(s,42026)),Promise.resolve().then(s.bind(s,77457)),Promise.resolve().then(s.bind(s,89405))},77457:(e,t,s)=>{"use strict";s.d(t,{default:()=>d});var a=s(95155),l=s(12115),r=s(52619),n=s.n(r);function d(){let{leagueId:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},[t,s]=(0,l.useState)([]),[r,d]=(0,l.useState)(e||8),[i,c]=(0,l.useState)([]),[m,o]=(0,l.useState)(!1),[x,h]=(0,l.useState)(null),g=async()=>{try{let e=await fetch("/api/admin/standings/leagues"),t=await e.json();e.ok&&t.success?s(t.data):console.error("Error fetching leagues:",t.error)}catch(e){console.error("Error fetching leagues:",e)}},u=async e=>{o(!0),h(null);try{let t=await fetch("/api/standings/league/".concat(e)),s=await t.json();t.ok&&s.success?c(s.data):h(s.error||"à¹à¸¡à¹à¸ªà¸²à¸¡à¸²à¸£à¸à¸à¸¶à¸à¸à¹à¸à¸¡à¸¹à¸¥ standings à¹à¸à¹")}catch(e){h("à¹à¸à¸´à¸à¸à¹à¸à¸à¸´à¸à¸à¸¥à¸²à¸à¹à¸à¸à¸²à¸£à¸à¸¶à¸à¸à¹à¸à¸¡à¸¹à¸¥")}finally{o(!1)}};(0,l.useEffect)(()=>{e||g()},[e]),(0,l.useEffect)(()=>{r&&u(r)},[r]);let p=t.find(e=>e.id===r);return(0,a.jsxs)("div",{children:[(0,a.jsx)("h2",{className:"text-lg sm:text-xl font-bold mb-2 text-white",children:"à¸à¸²à¸£à¸²à¸à¸à¸°à¹à¸à¸à¸à¸¸à¸à¸à¸à¸¥"}),!e&&(0,a.jsx)("div",{className:"mb-3 sm:mb-4",children:(0,a.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,a.jsx)("label",{className:"block w-1/3 text-xs sm:text-sm font-medium text-white",children:"à¹à¸¥à¸·à¸à¸à¸¥à¸µà¸:"}),(0,a.jsx)("select",{value:r,onChange:e=>d(Number(e.target.value)),className:"w-2/3 max-w-xs px-2 sm:px-3 py-1 sm:py-2 border border-gray-600 bg-gray-900 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500 text-xs sm:text-sm",children:t.map(e=>(0,a.jsx)("option",{value:e.id,children:e.name},e.id))})]})}),x&&(0,a.jsx)("div",{className:"mb-3 sm:mb-4 p-3 sm:p-4 bg-red-50 border border-red-200 rounded-md",children:(0,a.jsx)("p",{className:"text-red-600 text-xs sm:text-sm",children:x})}),m&&(0,a.jsx)("div",{className:"mb-3 sm:mb-4 p-3 sm:p-4 bg-blue-50 border border-blue-200 rounded-md",children:(0,a.jsx)("p",{className:"text-blue-600 text-xs sm:text-sm",children:"à¸à¸³à¸¥à¸±à¸à¹à¸«à¸¥à¸à¸à¹à¸à¸¡à¸¹à¸¥..."})}),i.length>0&&(p||e)&&(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"overflow-x-auto",children:(0,a.jsxs)("table",{className:"min-w-full bg-gray-900 text-white border border-gray-800 rounded-lg",children:[(0,a.jsx)("thead",{className:"bg-gray-900 border-b border-gray-800",children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{className:"w-[25px] sm:w-[30px] px-2 sm:px-3 py-1 sm:py-2 text-left text-xs font-medium",children:"à¸à¸±à¸à¸à¸±à¸"}),(0,a.jsx)("th",{className:"px-2 sm:px-3 py-1 sm:py-2 text-left text-xs font-medium",children:"à¸à¸µà¸¡"}),(0,a.jsx)("th",{className:"px-2 sm:px-3 py-1 sm:py-2 text-center text-xs font-medium",children:"à¹à¸¥à¹à¸"}),(0,a.jsx)("th",{className:"px-2 sm:px-3 py-1 sm:py-2 text-center text-xs font-medium",children:"à¸à¸°à¹à¸à¸"})]})}),(0,a.jsx)("tbody",{className:"divide-y divide-gray-800",children:i.map((e,t)=>{let s=e.games_played;return(0,a.jsxs)("tr",{className:"hover:bg-black",children:[(0,a.jsx)("td",{className:"px-2 sm:px-3 py-1 sm:py-2 text-xs sm:text-sm font-medium text-center",children:e.position}),(0,a.jsx)("td",{className:"px-2 sm:px-3 py-1 sm:py-2 text-xs sm:text-sm",children:(0,a.jsx)("div",{className:"flex items-center",children:(0,a.jsx)("span",{className:"truncate",children:e.
1team_name})})}),(0,a.jsx)("td",{className:"px-2 sm:px-3 py-1 sm:py-2 text-xs sm:text-sm text-center",children:s}),(0,a.jsx)("td",{className:"px-2 sm:px-3 py-1 sm:py-2 text-xs sm:text-sm text-center font-bold",children:e.points})]},"".concat(e.id,"-").concat(e.participant_id,"-").concat(t))})})]})}),(0,a.jsxs)("div",{className:"mt-4",children:[(0,a.jsx)("strong",{className:"block mb-2 font-normal text-sm",children:"ลึà¸à¸à¸¸à¸à¸à¸à¸¥à¸à¸±à¹à¸à¸«à¸¡à¸"}),(0,a.jsxs)("div",{className:"bg-slate-900 rounded-lg p-2 border border-slate-600 flex flex-col",children:[(0,a.jsx)("h3",{className:"font-normal text-sm border-b border-white/20 py-1 px-2",children:(0,a.jsx)(n(),{href:"/premierleague",children:"à¸à¸²à¸£à¸²à¸à¸à¸°à¹à¸à¸à¸à¸£à¸µà¹à¸¡à¸µà¸¢à¸£à¹à¸¥à¸µà¸"})}),(0,a.jsx)("h3",{className:"font-normal text-sm border-b border-white/20 py-1 px-2",children:(0,a.jsx)(n(),{href:"/laliga",children:"à¸à¸²à¸£à¸²à¸à¸à¸°à¹à¸à¸à¸¥à¸²à¸¥à¸µà¸à¸²"})}),(0,a.jsx)("h3",{className:"font-normal text-sm border-b border-white/20 py-1 px-2",children:(0,a.jsx)(n(),{href:"/seriea",children:"à¸à¸²à¸£à¸²à¸à¸à¸°à¹à¸à¸à¹à¸à¹à¸£à¸µà¸¢ à¸à¸²"})}),(0,a.jsx)("h3",{className:"font-normal text-sm border-b border-white/20 py-1 px-2",children:(0,a.jsx)(n(),{href:"/bundesliga",children:"à¸à¸²à¸£à¸²à¸à¸à¸°à¹à¸à¸à¸à¸¸à¸à¹à¸à¸ªà¸¥à¸µà¸à¸²"})}),(0,a.jsx)("h3",{className:"font-normal text-sm py-1 px-2",children:(0,a.jsx)(n(),{href:"/ligue1",children:"à¸à¸²à¸£à¸²à¸à¸à¸°à¹à¸à¸à¸¥à¸µà¸ à¹à¸à¸´à¸"})})]})]})]}),!m&&!x&&0===i.length&&(0,a.jsx)("div",{className:"p-4 sm:p-6 bg-yellow-50 border border-yellow-200 rounded-lg",children:(0,a.jsx)("p",{className:"text-yellow-800 text-center text-xs sm:text-sm",children:"à¹à¸¡à¹à¸à¸à¸à¹à¸à¸¡à¸¹à¸¥ standings สำหรัà¸à¸¥à¸µà¸à¸à¸µà¹à¹à¸¥à¸·à¸à¸"})})]})}},89405:(e,t,s)=>{"use strict";s.d(t,{default:()=>n});var a=s(95155),l=s(12115),r=s(20063);function n(){let e=(0,r.usePathname)();return(0,l.useEffect)(()=>{if(window._taboola){let e=document.getElementById("taboola-below-article-thumbnails");e&&(e.innerHTML=""),window._taboola.push({notify:"newPageLoad"}),window._taboola.push({category:"auto",url:window.location.href}),window._taboola.push({mode:"alternating-thumbnails-d-a",container:"taboola-below-article-thumbnails",placement:"Below Article Thumbnails",target_type:"mix"}),window._taboola.push({flush:!0})}},[e]),(0,a.jsx)("div",{className:"taboola-widget bg-white p-8 sm:p-6 lg:p-8 w-full max-w-[1200px] mx-auto",children:(0,a.jsx)("div",{id:"taboola-below-article-thumbnails"})})}}},e=>{e.O(0,[5730,2619,5239,445,7952,868,8441,1255,7358],()=>e(e.s=76765)),_N_E=e.O()}]);
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.