PageSourceSearch

https://www.bolabet.co.zm/spa/chunk-QWX7JZN4.js

js bolabet.co.zm collected 2026-10-06 20:05:44 UTC 3,880 bytes, 1 lines download raw bytes

1import{b as l,c as u,e as S,g as x}from"./chunk-KTZNCZ7I.js";import{ua as h,v as f,ya as m}from"./chunk-TGN2R54P.js";var c=new l(()=>(g,t)=>t),v=(g,t)=>{if(g.responseType==="json"&&g.context&&g.context.has(c)){let e=g.context.get(c);return t(g.clone({responseType:"text"})).pipe(f(r=>r instanceof S?r.clone({body:JSON.parse(r.body,e)}):r))}return t(g)};var o=class o{static reviver(t,e){return o.DATE_KEYS.has(t)&&typeof e=="string"&&o.DATE_PATTERN.test(e)?new Date(e):e}constructor(t){this.httpClient=t}getConfiguration(){return this.httpClient.get("api/frontend/matches/configuration")}processMockData(t){if(typeof t=="string")return o.DATE_PATTERN.test(t)?new Date(t):t;if(Array.isArray(t))return t.map(e=>this.processMockData(e));if(t!==null&&typeof t=="object"){let e={};for(let r in t)t.hasOwnProperty(r)&&(e[r]=o.DATE_KEYS.has(r)&&typeof t[r]=="string"?o.reviver(r,t[r]):this.processMockData(t[r]));return e}return t}getGroups(t,e,r,s,n){let i=new URLSearchParams;i.set("n",s.toString()),r!==void 0&&i.set("league",r.toString()),n!==void 0&&i.set("oddsGroupId",n.toString());let a=`api/frontend/matches/${t}/section/${e}?${i.toString()}`;return this.httpClient.get(a,{context:new u().set(c,o.reviver),observe:"response"}).pipe(f(p=>{let d=/max-age=(\d+)/.exec(p.headers.get("cache-control"));return p.body.maxAge=d?parseInt(d[1]):10,p.body}))}refreshGroups(t,e,r,s,n){let i=new URLSearchParams;s!==void 0&&i.set("league",s.toString()),n!==void 0&&i.set("oddsGroupId",n.toString());let a=`api/frontend/matches/${t}/section/${e}?${i.toString()}`;return this.httpClient.post(a,r,{context:new u().set(c,o.reviver)})}refreshMatches(t,e,r,s,n,i){let a=new URLSearchParams;a.set("mc",s.toString()),n!==void 0&&a.set("league",n.toString()),i!==void 0&&a.set("oddsGroupId",i.toString());let p=`api/frontend/matches/${t}/section/${e}?${a.toString()}`;return this.httpClient.post(p,r,{context:new u().set(c,o.reviver)})}getMatches(t,e,r,s,n,i){let a=new URLSearchParams;return a.set("m",s.join(",")),n!==void 0&&a.set("league",n.toString()),i!==void 0&&a.set("oddsGroupId",i.toString()),this.httpClient.get(`api/frontend/matches/${t}/section/${e}/group/${r}?${a.toString()}`,{context:new u().set(c,o.reviver)})}getOdds(t,e,r,s,n,i,a){let p=new URLSearchParams;if(n!==void 0&&p.set("league",n.toString()),i!==void 0&&p.set("oddsGroupId",i.toString()),a){let d={matchIds:r,marketIds:s};return this.httpClient.post(`api/frontend/matches/${t}/section/${e}/odds-list?${p.toString()}`,d,{context:new u().set(c,o.reviver)})}return p.set("i",r.join(",")),p.set("m",s.join(",")),this.httpClient.get(`api/frontend/matches/${t}/section/${e}/odds?${p.toString()}`,{context:new u().set(c,o.reviver)})}getLiveCount(){return this.httpClient.get("api/frontend/matches/live/count",{context:new u().set(c,o.reviver),observe:"response"}).pipe(f(t=>{let e=/max-age=(\d+)/.exec(t.headers.get("cache-control"));return{count:t.body,maxAge:e?parseInt(e[1]):10}}))}getLiveZoomWidgetUrl(t,e){let r=new URLSearchParams;return r.set("sportProviderCode",t),r.set("matchId",e),this.httpClient.get(`api/frontend/matches/live/zoom-widget-url?${r.toString()}`).pipe(f(s=>{var n;return(n=s.widgetUrl)!=null?n:null}))}getCategoriesAndOddsGroups(t){return this.httpClient.get(`api/frontend/events/${t}/categories-and-odds-groups`).pipe(f(e=>{let r=(e.categories||[]).map(n=>({id:n.idCategoriaGruppoQuota||0,name:n.nomeCategoriaGruppoQuota||"",order:n.ordine||0})),s=(e.oddsGroups||[]).map(n=>({id:n.idGruppoQuota||0,name:n.gruppoQuota||"",categoryIds:n.idCategoriaGruppoQuota!=null?[n.idCategoriaGruppoQuota]:[]}));return{categories:r,oddsGroups:s}}))}};o.DATE_KEYS=new Set(["start","lastRefresh","data"]),o.DATE_PATTERN=/^\d{4}-\d{1,2}-\d{1,2}T\d{1,2}:\d{1,2}:\d{1,2}/,o.\u0275fac=function(e){return new(e||o)(m(x))},o.\u0275prov=h({token:o,factory:o.\u0275fac,providedIn:"root"});var C=o;export{c as a,v as b,C as c};

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.