"use strict";(()=>{var e={};e.id=8117,e.ids=[8117],e.modules={20399:e=>{e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},30517:e=>{e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},10053:(e,t,a)=>{a.r(t),a.d(t,{originalPathname:()=>h,patchFetch:()=>f,requestAsyncStorage:()=>v,routeModule:()=>c,serverHooks:()=>m,staticGenerationAsyncStorage:()=>x});var s={};a.r(s),a.d(s,{GET:()=>l});var o=a(49303),d=a(88716),r=a(60670),i=a(87070);let n=process.env.API_FOOTBALL_KEY||"",u=process.env.API_FOOTBALL_URL||"https://v3.football.api-sports.io",p=new Map;async function l(e,{params:t}){let a=t.id,s=p.get(a);if(s&&Date.now()-s.ts<36e5)return i.NextResponse.json({sukses:!0,data:s.data,dariCache:!0});if(n)try{let e=await fetch(`${u}/odds?fixture=${a}`,{headers:{"x-apisports-key":n}});if(e.ok){let t=(await e.json()).response||[];if(t.length>0){let e=[];return t.forEach(t=>{t.bookmakers&&t.bookmakers.forEach(t=>{e.push({bookmaker:t.name,bets:t.bets.map(e=>({id:e.id,name:e.name,values:e.values}))})})}),p.set(a,{data:e,ts:Date.now()}),i.NextResponse.json({sukses:!0,data:e,dariCache:!1})}}}catch(e){console.warn("Odds API error, using synthetic fallback:",e)}let o=function(e){let t=e.split("").reduce((e,t)=>e+t.charCodeAt(0),0),a=(t%30/10+1.5).toFixed(2),s=(t%10/10+3).toFixed(2),o=(t%20/10+2).toFixed(2),d=(t%8/10+1.7).toFixed(2),r=(t%6/10+1.9).toFixed(2),i=(t%5/10+1.8).toFixed(2),n=(t%7/10+1.85).toFixed(2);return[{bookmaker:"Estimasi Odds",bets:[{id:1,name:"Match Winner",values:[{value:"Home",odd:a},{value:"Draw",odd:s},{value:"Away",odd:o}]},{id:5,name:"Goals Over/Under",values:[{value:"Over 2.5",odd:d},{value:"Under 2.5",odd:r},{value:"Over 1.5",odd:(t%4/10+1.3).toFixed(2)},{value:"Under 1.5",odd:(t%9/10+2.5).toFixed(2)}]},{id:8,name:"Both Teams Score",values:[{value:"Yes",odd:i},{value:"No",odd:n}]}]}]}(a);return p.set(a,{data:o,ts:Date.now()}),i.NextResponse.json({sukses:!0,data:o,dariCache:!1,sumber:"synthetic"})}let c=new o.AppRouteRouteModule({definition:{kind:d.x.APP_ROUTE,page:"/api/fixtures/[id]/odds/route",pathname:"/api/fixtures/[id]/odds",filename:"route",bundlePath:"app/api/fixtures/[id]/odds/route"},resolvedPagePath:"C:\\xampp\\htdocs\\Bolafest\\app\\api\\fixtures\\[id]\\odds\\route.ts",nextConfigOutput:"standalone",userland:s}),{requestAsyncStorage:v,staticGenerationAsyncStorage:x,serverHooks:m}=c,h="/api/fixtures/[id]/odds/route";function f(){return(0,r.patchFetch)({serverHooks:m,staticGenerationAsyncStorage:x})}}};var t=require("../../../../../webpack-runtime.js");t.C(e);var a=e=>t(t.s=e),s=t.X(0,[9276,5972],()=>a(10053));module.exports=s})();