PageSourceSearch

https://sportal.bg/assets/fu-widgets/assets/index-CUoUqLJD.js

js sportal.bg collected 2026-09-24 09:29:47 UTC 21,886 bytes, 64 lines download raw bytes

1var K=Object.defineProperty;var J=(e,t,o)=>t in e?K(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o;var S=(e,t,o)=>J(e,typeof t!="symbol"?t+"":t,o);import{N}from"./notFound-Cr0KC2gK.js";import{j as n,r as u,e as U,u as l,i as b,f as D,Q as ee}from"../indexDG-t2xYb.js";import{P as te,E as oe}from"./update-swiper-B1V2aUn_.js";import{g as ie,e as ne}from"./index-BPNC8kD_.js";import{P as re}from"./index-CvYzfLY1.js";import{E as se,u as de,B as ce,k as M,e as le,W as ae,p as pe,v as ue,f as me}from"./withDraggableScroll-eelHqWwn-DjyzrmXO.js";import{u as A}from"./index-_wH0_aWu.js";import{S as fe,a as he}from"./navigation-D_VXZYU6.js";import{i as xe}from"./index-DHatyQ9z.js";/**
2                     * @name fu-widgets
3                     * @version 5.5.0
4                     * @copyright 2026 Sportal.bg
5                     * @license All rights reserved. Unauthorized copying or distribution is strictly prohibited.
6                     * Proprietary and confidential.
7                     */const z={ended:["SETTLED"],playable:["LIVE"]},ge=e=>{var o,i,r,s,d,c,a,p,m,w;const t={default:{activeColor:"#ff8400"}};return(i=(o=e==null?void 0:e.branding)==null?void 0:o.colors)!=null&&i.primaryColor?{activeColor:e.branding.colors.primaryColor,borderColor:(r=e.branding.colors)==null?void 0:r.borderColor,logo:(d=(s=e.branding)==null?void 0:s.images)==null?void 0:d.mainLogo,href:(a=(c=e.branding)==null?void 0:c.urls)==null?void 0:a.primaryUrl}:{activeColor:((p=e==null?void 0:e.customFields)==null?void 0:p.brand_color)??t.default.activeColor,borderColor:(m=e==null?void 0:e.customFields)==null?void 0:m.brand_border_color,logo:(w=e==null?void 0:e.customFields)==null?void 0:w.brand_logo}},ye=e=>Object.entries(e).reduce((t,[o,i])=>(Object.entries(i).forEach(([r,s])=>{s===void 0||s.matchModel.status.type!=="notstarted"||(t[`${o}-${r}`]=s.prediction.value)}),t),{}),be=l.div.withConfig({displayName:"styled__Wrapper",componentId:"sc-1bb6d4e-0"})(["position:fixed;bottom:0;right:0;width:100%;max-width:520px;z-index:10;"]),we=l.div.withConfig({displayName:"styled__Container",componentId:"sc-1bb6d4e-1"})(["position:relative;display:",";flex-direction:column;gap:10px;margin:20px;padding:15px;color:",";border:5px solid ",";border-radius:",";background-color:",";container-type:inline-size;",""],({$visible:e})=>e?"flex":"none",({theme:e})=>e.colors.primary,({theme:e})=>e.colors.border,({theme:e})=>e.border.radius.medium,({theme:e})=>e.colors.bg,({theme:e})=>e.media.md(b(["margin:10px;padding:10px;"]))),x={NONE:"none",MINIMIZED:"minimized",MAXIMIZED:"maximized"},Z=u.createContext(null),ve=M(ue(),"betslip"),je=({children:e,type:t,id:o})=>{const[i,r]=u.useState(x.NONE),{selections:s}=$(),d=u.useMemo(()=>M(ve,M(t,o)),[t,o]);u.useEffect(()=>{var a;if(!Object.values(s).some(p=>p&&Object.values(p).some(m=>m!==null))){r(x.NONE);return}if(i===x.NONE&&Object.keys(s).length!==0){const p=((a=le(d))==null?void 0:a.data)??null;if(p!==null&&(p===x.MINIMIZED||p===x.MAXIMIZED)){r(p);return}if(window.innerWidth<768){r(x.MINIMIZED);return}r(x.MAXIMIZED)}},[s,d,i]);const c=()=>{const a=i===x.MAXIMIZED?x.MINIMIZED:x.MAXIMIZED;me(d,a),r(a)};return n.jsx(Z.Provider,{value:{visibility:i,toggleVisibility:c,visibilityMap:x},children:n.jsx(be,{children:n.jsx(we,{$visible:i!==x.NONE,$isMinimized:i===x.MINIMIZED,children:e})})})},G=()=>{const e=u.useContext(Z);if(e===void 0)throw new Error("useVisibility must be used within a VisibilityProvider");return e};class Ie{processSelection(t){return t.map(o=>o.provider_info.selection_id).join(",")}generateUrl({selections:t}){return`https://www.betano.bg/mybet/?btag=Sportal_BG_betslip&selection_ids=${this.processSelection(t)}&return_url=${encodeURIComponent(window.location.href)}`}}const E={FT_1X2:"1x2",CORRECT_SCORE:"CORRECT_SCORE"},ke={509:Ie};class Ce{constructor(t,o,i){S(this,"getData",async()=>{const o=(await(await fetch(this.baseUrl,{method:"GET",headers:{Authorization:"Basic MDEyMjMyNGUyNGEyMTQ1NDdkYjQ5MjRlNGY2YjYyZmU6YjM2ZDRjZjYwMWJjMWM1YjQxM2M0NTUzNmE0NGRhZDc="}})).json()).matches,i={};let r;return o.forEach(s=>{s.odds.length===0||s.odds[0].bookmaker.id!==this.bookieId||(r===void 0&&(r=s.odds[0].bookmaker),i[s.id]=this.transformData(s.odds[0]))}),{bookie:r,odds:i}});S(this,"transformPrediction",(t,o)=>t==="CORRECT_SCORE"?o.replace(":","-"):t==="1x2"?o.toLowerCase():null);S(this,"transformData",t=>t.markets.reduce((o,i)=>(o[i.type.code]=i.selections,o),{}));const r=ke[t];if(!r)throw new Error("Invalid bookmaker id, no service found for it");this.service=new r,this.bookieId=t;const s=i.reduce((c,a)=>{const p=E[a];
7return p&&c.push(p),c},[]),d=o.map(c=>c.id);this.baseUrl=`https://football.cache.proxy.sportal365.com/v2/matches/livescore?odd_client=sportal_web_${t}&match_ids=${[...d].join(",")}&market_types=${[...s].join(",")}`}findSelection(t,o,i){var d;const r=E[o]??null;if(r===null)return null;const s=this.transformPrediction(r,i);return s===null?null:((d=t==null?void 0:t[r])==null?void 0:d.find(c=>c.provider_info&&c.code===s))??null}generateUrl(t){return this.service.generateUrl(t)}}const X=(e,t)=>{if(/^#([A-Fa-f0-9]{3}){1,2}$/.test(e)){let o=e.substring(1).split("");o.length===3&&(o=[o[0],o[0],o[1],o[1],o[2],o[2]]);const i=o.join(""),r=parseInt(i,16),s=r>>16&255,d=r>>8&255,c=r&255;return`rgba(${s},${d},${c},${t})`}return e},T="#fd841d",C={colors:{accentBase:T,accentText:"#ffffff",primary:"#000000",bg:"#ffffff",border:T,palette:{grey:{grey10:"#f8f8f8",grey20:"#CCCCCC",grey30:"#B3B3B3",grey40:"#a1a1a1",grey50:"#999999",grey60:"#808080",grey70:"#666666",grey80:"#333333",grey90:"#262626",grey100:"#1A1A1A"},accent:{accent20:X(T,.2)}}},border:{radius:{small:"5px",medium:"10px"}},applyLightThemeStyles:e=>b([".-theme--light &{","}"],e),typography:{fontFamily:"'Open Sans', 'Helvetica', 'Arial', sans-serif",fontSize:{small:"11px",medium:"12px",large:"14px",xLarge:"16px",xxLarge:"18px",xxxLarge:"24px",xxxxLarge:"30px"}},mediaContainer:{md:(...e)=>b(["@container (max-width:","){",";}"],O.md,b(...e))},media:{md:(...e)=>b(["@media (max-width:","){",";}"],O.md,b(...e))}},O={md:"768px"},_e=e=>{const t=e.background_color??C.colors.accentBase;return{...C,colors:{...C.colors,accentBase:t,accentText:e.text_color??C.colors.accentText,border:t,palette:{...C.colors.palette,accent:{accent20:X(t,.2)}}}}},Y=u.createContext(null),Se=({children:e,type:t,id:o,bookmakerId:i,matches:r,markets:s})=>{const d=u.useRef(new Ce(i,r,s)),c=u.useRef(null),[a,p]=u.useState(null),[m,w]=u.useState({}),{showBoundary:v}=de();u.useEffect(()=>{d.current.getData().then(f=>{(typeof f.bookie>"u"||Object.values(f.odds).length===0)&&v(new ce("critical",new Error("Betslip no odds data was found"))),p(f.odds),c.current=f.bookie}).catch(v)},[v]);const _=u.useCallback((f,g,I)=>{const h=d.current.findSelection(a[f],g,I);w(k=>({...k,[f]:{...k[f],[g]:h}}))},[a]),y=u.useMemo(()=>Object.values(m).reduce((f,g)=>{if(!g)return f;const I=Object.values(g).filter(h=>h!=null);return[...f,...I]},[]),[m]),j=u.useMemo(()=>{if(y.length!==0)return()=>d.current.generateUrl({selections:y})},[y]);return a&&c.current&&n.jsx(U,{theme:_e(c.current.branding),children:n.jsx(Y.Provider,{value:{id:o,odds:a,selections:m,findAndSetSelection:_,flattedSelection:y,getCtaUrl:j,bookieData:c.current},children:n.jsx(je,{id:o,type:t,children:e})})})},$=()=>{const e=u.useContext(Y);if(e===void 0)throw new Error("useOdds must be used within an OddsProvider");return e},Me=({type:e,id:t,matches:o,bookmakerId:i,markets:r})=>{let s=!0;return(!i||t.trim().length===0)&&(s=!1,console.error(`Invalid betslip bookmakerId! Provided bookmakerId: ${i}!`)),(!e||!["topX","matchQuiz","periodic","single"].includes(e))&&(s=!1,console.error(`Invalid betslip type! Valid types are: topX, matchQuiz, Provided: ${e} is not supported!`)),(!o||o.length===0)&&(s=!1,console.error(`Invalid betslip matches! Provided matches: ${o}!`)),(!t||t.trim().length===0)&&(s=!1,console.error(`Invalid betslip id! Provided id: ${t}!`)),(r.length===0||r.some(d=>E[d]===void 0))&&(s=!1,console.error(`Invalid betslip markets! Provided markets: ${r}! Markets can include ${Object.keys(E).join(", ")}`)),s},Ee="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3csvg%20width='20'%20height='19.999992'%20viewBox='0%200%2019.999999%2019.999993'%20fill='none'%20version='1.1'%20id='svg1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:svg='http://www.w3.org/2000/svg'%3e%3cdefs%20id='defs1'%20/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='m%209.9910557,3.9987693%202.0182603,2.0199255%207.554881,7.5614822%20c%200.259949,0.269398%200.403949,0.630298%200.400649,1.004847%20-0.0033,0.374549%20-0.153449,0.732898%20-0.418049,0.997798%20-0.264599,0.264749%20-0.622648,0.415049%20-0.996898,0.418349%20-0.374249,0.0032%20-0.734698,-0.14085%20-1.003947,-0.40095%20L%209.9910557,8.0387398%202.4361591,15.600221%20c%20-0.2691893,0.2601%20-0.6297435,0.404099%20-1.0039776,0.40095%20-0.3742491,-0.0033%20-0.7322382,-0.1536%20-0.9968826,-0.418349%20-0.2646443,-0.2649%20-0.414749,-0.623249%20-0.4180039,-0.997798%20-0.00326,-0.374549%200.1406096,-0.735449%200.4006189,-1.004847%20L%207.9728106,6.0186948%20Z'%20fill='%23fff'%20id='path1'%20style='stroke-width:1.49999'%20/%3e%3c/svg%3e",Te=l.button.withConfig({displayName:"styled__ToggleButton",componentId:"sc-49u8tu-0"})(["position:absolute;top:-15px;right:15px;width:25px;height:25px;margin-left:auto;rotate:",";background-image:",";background-size:13px 13px;background-position:center;background-repeat:no-repeat;background-color:",";border-radius:50%;cursor:pointer;transition:rotate 0.2s ease-in-out;"],({$isMinimize:e})=>e?"0deg":"180deg",`url("${Ee}")`,({theme:e})=>e.colors.accentBase);l.img.withConfig({displayName:"styled__Logo",componentId:"sc-49u8tu-1"})(["width:auto;height:18px;object-fit:contain;"]);const Ne=()=>{const{visibility:e,visibilityMap:t,toggleVisibility:o}=G();return n.jsx(Te,{onClick:o,$isMinimize:e===t.MINIMIZED})},$e=(e,t,o,i,r)=>{const[s,d]=u.useState(r);return u.useEffect(()=>{const c=ie(e,t,o.id,i),a=async p=>{let m=p.detail.prediction;typeof m=="object"&&m!==null&&!Array.isArray(m)&&(m=m.value),d(m)};return document.addEventListener(c,a),()=>{document.removeEventListener(c,a)}},[e,t,o.id,i]),s},Be=500,Pe=(e,t,o)=>{var c;const{selections:i,findAndSetSelection:r}=$(),[s,d]=u.useState(!1);return u.useEffect(()=>{if(e===void 0)return;d(!0);const a=setTimeout(async()=>{r(t.id,o,e),d(!1)},Be);return()=>{clearTimeout(a)}},[r,o,t.id,e]),{odds:(c=i[t.id])==null?void 0:c[o],isLoading:s}},Q=l.div.withConfig({displayName:"DisplayOdds",componentId:"sc-tgnwzo-0"})(["position:relative;width:fit-content;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;padding:5px;font-size:",";font-weight:bold;line-height:1;color:",";&:before{position:absolute;content:'';width:100%;height:100%;border-radius:",";background-color:",";opacity:0.1;}"],({theme:e})=>e.typography.fontSize.medium,({theme:e})=>e.colors.accentBase,({theme:e})=>
7e.border.radius.small,({theme:e})=>e.colors.accentBase),ze=({theme:e})=>D(["0%,80%{background:",";}100%{background:none;}"],e.colors.palette.accent.accent20),Oe=l.div.withConfig({displayName:"styled__Wrapper",componentId:"sc-14fmow6-0"})(["display:flex;flex-direction:row;justify-content:space-between;align-items:flex-start;gap:10px;padding-bottom:10px;border-bottom:1px solid ",";background:none;animation:"," 1s ease forwards;"],({theme:e})=>e.colors.palette.grey.grey20,ze),H=l.p.withConfig({displayName:"styled__TextEllipsed",componentId:"sc-14fmow6-1"})(["white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.2;color:",";"],({theme:e})=>e.colors.primary),Le=l(H).withConfig({displayName:"styled__TeamText",componentId:"sc-14fmow6-2"})(["font-size:13px;font-weight:normal;"]),Fe=l(H).withConfig({displayName:"styled__MarketText",componentId:"sc-14fmow6-3"})(["font-size:",";font-weight:bold;"],({theme:e})=>e.typography.fontSize.large),Re=l.div.withConfig({displayName:"styled__Container",componentId:"sc-14fmow6-4"})(["display:flex;flex-direction:column;max-width:80%;"]),We=({type:e,id:t,match:o,market:i,prediction:r})=>{const s=$e(e,t,o,i,r),{odds:d,isLoading:c}=Pe(s,o,i);return d&&n.jsxs(Oe,{children:[n.jsxs(Re,{children:[n.jsx(Fe,{children:s}),n.jsx(Le,{children:`${o.homeTeam.name} : ${o.awayTeam.name}`})]}),n.jsx(Q,{children:n.jsx(ae,{loading:c,width:100,spinnerPosition:50,spinnerSize:12,children:d.odds})})]},s+i+o.id)},L=l.p.withConfig({displayName:"smallText__Text",componentId:"sc-10ddnui-0"})(["font-size:",";color:",";line-height:1.2;"],({theme:e})=>e.typography.fontSize.medium,({theme:e})=>e.colors.palette.grey.grey80),Ve=l.div.withConfig({displayName:"styled__Wrapper",componentId:"sc-1kiydqn-0"})(["display:flex;flex-direction:column;overflow:hidden;gap:5px;max-height:",";opacity:",";width:",";transition:opacity 0.3s ease-in-out,width 0.3s ease-in-out,max-height 0.3s ease-in-out;"],({$visible:e})=>e?"100vh":"0",({$visible:e})=>e?"1":"0",({$visible:e})=>e?"100%":"0%"),Ue=l.div.withConfig({displayName:"styled__Header",componentId:"sc-1kiydqn-1"})(["display:flex;justify-content:space-between;align-items:center;line-height:1.2em;"]),Ae=l.div.withConfig({displayName:"styled__BetSelectionWrapper",componentId:"sc-1kiydqn-2"})(["display:flex;flex-direction:column;gap:8px;max-height:50vh;overflow-y:auto;"]),Ze=({type:e,id:t,matches:o,markets:i,predictions:r})=>{const{visibility:s,visibilityMap:d}=G();return n.jsxs(Ve,{$visible:s===d.MAXIMIZED,children:[n.jsxs(Ue,{children:[n.jsx(L,{children:"Прогнози"}),n.jsx(L,{children:"Коефициент"})]}),n.jsx(Ae,{children:o.map(c=>i.map(a=>n.jsx(We,{type:e,id:t,match:c,market:a,prediction:r==null?void 0:r[M(c.id,a)]},c.id+a)))})]})},Ge=l.div.withConfig({displayName:"styled__Wrapper",componentId:"sc-lf8221-0"})(["display:flex;flex-direction:column;gap:4px;"]),Xe=l.div.withConfig({displayName:"styled__Container",componentId:"sc-lf8221-1"})(["position:relative;display:flex;flex-direction:row;justify-content:space-between;align-items:center;"]),Ye=l.div.withConfig({displayName:"styled__SelectWrapper",componentId:"sc-lf8221-2"})(["flex-shrink:0;display:flex;flex-direction:row;justify-content:center;align-items:center;"]),Qe=l.div.withConfig({displayName:"styled__SelectOption",componentId:"sc-lf8221-3"})(["padding:5px 15px;font-size:",";font-weight:bold;cursor:pointer;border:1px solid ",";"," &:first-child{border-top-left-radius:",";border-bottom-left-radius:",";border-right:none;}&:last-child{border-top-right-radius:",";border-bottom-right-radius:",";border-left:none;}",""],({theme:e})=>e.typography.fontSize.medium,({theme:e})=>e.colors.accentBase,({theme:e,$isSelected:t})=>b(["color:",";background-color:",";"],t?e.colors.accentText:e.colors.primary,t?e.colors.accentBase:e.colors.bg),({theme:e})=>e.border.radius.medium,({theme:e})=>e.border.radius.medium,({theme:e})=>e.border.radius.medium,({theme:e})=>e.border.radius.medium,({theme:e})=>e.media.md(b(["padding:0 6px;"]))),He=({stakeValues:e,currentStake:t,onSelect:o})=>n.jsx(Ye,{children:e.map(i=>n.jsx(Qe,{$isSelected:t===i,onClick:()=>o(i),children:new Intl.NumberFormat("bg-BG",{style:"currency",currency:"EUR",minimumFractionDigits:0}).format(i)},i))}),qe=l.div.withConfig({displayName:"styled__Container",componentId:"sc-1htx4s2-0"})(["display:flex;justify-content:center;flex-direction:column;gap:10px;"]),Ke=l.a.withConfig({displayName:"styled__PlaceBetButton",componentId:"sc-1htx4s2-1"})(["width:100%;padding:12px 20px;text-align:center;font-weight:bold;font-size:",";color:",";border-radius:",";background-color:",";cursor:pointer;",""],({theme:e})=>e.typography.fontSize.medium,({theme:e})=>e.colors.accentText,({theme:e})=>
7e.border.radius.medium,({theme:e})=>e.colors.accentBase,({theme:e})=>e.media.md(b(["padding:6px 14px;"]))),Je=l.p.withConfig({displayName:"styled__TotalStakeStyled",componentId:"sc-1htx4s2-2"})(["font-size:",";font-weight:bold;text-align:right;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"],({theme:e})=>e.typography.fontSize.xLarge),De=({stake:e,totalOdds:t})=>n.jsx(Je,{children:new Intl.NumberFormat("bg-BG",{style:"currency",currency:"EUR"}).format(e*t)}),et=({stake:e,setStake:t,stakeValues:o,totalOdds:i})=>n.jsx(Ge,{children:n.jsxs(Xe,{children:[n.jsx(He,{currentStake:e,stakeValues:o,onSelect:t}),n.jsx(De,{totalOdds:i,stake:e})]})}),tt=l.div.withConfig({displayName:"styled__Wrapper",componentId:"sc-e3yqbc-0"})(["display:flex;flex-direction:row;justify-content:space-between;align-items:center;width:100%;"]),ot=l.p.withConfig({displayName:"styled__Text",componentId:"sc-e3yqbc-1"})(["font-size:",";"],({theme:e})=>e.typography.fontSize.medium),it=({totalOdds:e})=>n.jsxs(tt,{children:[n.jsx(ot,{children:"Общ коефициент"}),n.jsx(Q,{children:e==null?void 0:e.toFixed(2)})]}),F=[5,10,20],nt=()=>{const[e,t]=u.useState(F[0]),{id:o,flattedSelection:i,getCtaUrl:r,bookieData:s}=$(),d=i.reduce((a,p)=>(a||1)*Number(p==null?void 0:p.odds),0),c=()=>{pe("place_bet",{widget_name:"betslip",widget_game_id:o,bookmaker:s.name})};return d===0?null:n.jsxs(n.Fragment,{children:[n.jsxs(qe,{children:[n.jsx(it,{totalOdds:d}),n.jsx(et,{totalOdds:d,stake:e,setStake:t,stakeValues:F})]}),n.jsx(Ke,{href:r==null?void 0:r(),target:"_blank",onClick:c,children:"Прогноза"})]})},rt=e=>{const t=Me(e);return A(t&&e.id,"betslip"),t?n.jsx(se,{master:!0,FallbackComponent:()=>n.jsx(n.Fragment,{}),children:n.jsxs(Se,{...e,children:[n.jsx(Ne,{}),n.jsx(Ze,{type:e.type,id:e.id,matches:e.matches,predictions:e.predictions,markets:e.markets}),n.jsx(nt,{})]})}):null},q=e=>{const t=Date.now(),o=Math.floor(e.length/2),i=e.slice(0,o),r=e.slice(o),s=new Date(i.at(-1).filters.toDate).setHours(23,59,59),d=t<=s?i:r,c=new Date(d.at(0).filters.toDate).setHours(23,59,59);return t<=c||d.length===1?d.at(0):q(d)},R=4,st=e=>{let t=e.filter(o=>{if(new Date(o.kickoffAt).getTime()>=Date.now())return!0}).slice(0,R);return t.length===0&&(t=e.slice(R*-1)),t},dt=l.div`
8    margin: 10px;
9    border-radius: 20px;
10    text-align: center;
11    z-index: 1;
12`,ct=l(fe)`
13    .swiper-pagination-bullet {
14        width: 20px;
15        height: 20px;
16        line-height: 20px;
17        background: rgb(108, 108, 108);
18    }
19
20    .swiper-pagination-bullet-active {
21        background: ${({theme:e})=>e.colors.primary.main};
22    }
23`,W=l(he)`
24    display: flex !important;
25    justify-content: center;
26    align-items: center;
27    flex-direction: column;
28    max-width: 450px;
29    padding: 10px 0 45px 0;
30
31    @media (max-width: 768px) {
32        padding: 10px 5px 45px 5px;
33    }
34`,lt=l.h1`
35    margin: 0 !important;
36    font-size: 22px !important;
37    font-weight: bold !important;
38    line-height: 1.2em !important;
39    color: ${({theme:e})=>e.colors.primary.main};
40
41    @media screen and (min-width: 768px) {
42        font-size: 30px !important;
43    }
44`,at=l.a`
45    justify-content: center;
46    flex-grow: 1;
47    gap: 0;
48    height: 100%;
49    min-height: 220px;
50    margin-bottom: -40px;
51    padding: 50px 10px;
52    border-radius: 8px;
53    border: 1px solid ${({theme:e})=>e.colors.border.main};
54`,pt=l.p`
55    font-size: 16px !important;
56    font-weight: bold !important;
57    line-height: 1.4em !important;
58    margin: 0 0 20px 0 !important;
59    color: ${({theme:e})=>e.colors.primary.main};
60
61    @media screen and (min-width: 768px) {
62        font-size: 18px !important;
63    }
64`,ut=({gameData:e,branding:t})=>{var p,m,w,v,_;const[o,i]=u.useState(null),[r,s]=u.useState(null);if(A(e.id,"predictor"),u.useEffect(()=>{o===null&&(async()=>{var I;const y=(I=e==null?void 0:e.groups)==null?void 0:I.sort((h,k)=>{var B,P;return new Date(((B=h==null?void 0:h.filters)==null?void 0:B.fromDate)??"")-new Date(((P=k==null?void 0:k.filters)==null?void 0:P.fromDate)??"")}),j=q(y),f=j.filters.matchIds;let g=[];try{f.length===0?g=await window.FU.sdk.loyalty.getTemplateMatches(e.id,j.groupId):g=(await window.FU.sdk.football.getMatches({matchI
64ds:f})).data,g=st(g),xe()&&await ne(g.map(h=>h.id)).then(h=>{s(h)}).catch(()=>{}),i(g)}catch(h){console.log(h)}})()},[e.groups,e.id,o]),o===null)return n.jsx(n.Fragment,{});const d=((p=e.customFields)==null?void 0:p.main_market)??e.markets[0],c=((m=e.customFields)==null?void 0:m.showodds)==="yes"&&((w=e.customFields)==null?void 0:w.bookie),a=((v=e.customFields)==null?void 0:v.disableoddsmenu)==="yes";return n.jsxs(dt,{children:[n.jsxs(ct,{effect:"coverflow",grabCursor:!0,centeredSlides:!0,slidesPerView:"auto",modules:[te,oe],coverflowEffect:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:!1},pagination:{renderBullet:function(y,j){return'<span class="'+j+'"></span>'},clickable:!0},children:[o==null?void 0:o.map(y=>n.jsx(W,{children:n.jsx(re,{match:y,gameId:e.id,mainMarket:d,markets:e.markets,userPredictions:(r==null?void 0:r[y.id])??{},branding:t,...c&&{bookieId:c,showOdds:!0},...a&&{showAvailableOddsMenu:!1}})},y.id)),n.jsx(W,{children:n.jsxs(at,{target:"_blank",rel:"noreferrer",href:`https://sportal.bg/game-center/periodic-game/${e.id}`,children:[n.jsx(pt,{children:"Влез тук и продължи да играеш в"}),n.jsx(lt,{children:e.name})]})})]}),e.status==="LIVE"&&((_=e.customFields)==null?void 0:_.betslipenable)&&c&&n.jsx(rt,{id:e.id,type:"periodic",matches:o,predictions:r?ye(r):{},bookmakerId:c,markets:["FT_1X2"]})]})},V={},mt=({gameData:e,endGame:t})=>{const o=ee(),i=ge(e);return V[t]&&z.ended.includes(e.status)?V[t]:z.playable.includes(e.status)?n.jsx(U,{theme:{...o,colors:{...o.colors,primary:{main:i.activeColor},border:{...o.border,main:i.borderColor}}},children:n.jsx(ut,{gameData:e,branding:i})}):n.jsx(N,{})},kt=async({id:e,endGame:t})=>{if(!e)return console.error(`Predictor widget missing initial data: id: ${e}`),[{},N];try{return[{gameData:await window.FU.sdk.loyalty.getTemplateById(e),endGame:t},mt]}catch(o){return console.error(`Predictor widget with id: ${e}`,o),[{},N]}};export{kt 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.