PageSourceSearch

https://sportal.bg/assets/game-center-app/assets/index-Bnxgp_Pq.js

js sportal.bg collected 2026-09-24 09:30:02 UTC 7,196 bytes, 107 lines download raw bytes

1import{p as k,i as f,u as s,j as e,r as c,W as P,w as R,Q as H,a as M,c as Q,f as N,B as V,g as U}from"../indexC80sFMMA.js";import{p as Z}from"./index-3F-JemMM.js";import{F as q,b as J}from"./index-B4JPVsXv.js";import{T as K}from"./index-BgSX3aGU.js";import{a as S,d as I}from"./index-o1vZr8t_-0Sa6y4sk.js";import{L as X}from"./index-BJaiBK6i.js";import{H as Y}from"./index-Cv87IY4E.js";import"./index-fhTDydb3.js";import"./index-C5o5pxu3.js";import"./array-ChgDoWGn.js";/**
2                     * @name Game Center
3                     * @version 3.9.0
4                     * @copyright 2026 Sportal.bg
5                     * @license All rights reserved. Unauthorized copying or distribution is strictly prohibited.
6                     * Proprietary and confidential.
7                     */const _="default",tt="2zG3xwShUyHZQb1eG97yw4",j="other",E=["prize","team","competition",j],et={prize:"С награди",team:"По отбори",competition:"Първенства",other:"Други"},nt={text:"Класирането което търсите не може да бъде заредено.",btnData:{label:"Виж всички",link:k.standings}},at=t=>t.find(n=>E.includes(n.trim()))??j,it=t=>{var a,l;const n={};return((l=(a=t.rules)==null?void 0:a.trim)==null?void 0:l.call(a))!==""&&(n.standing={label:"Класиране",value:"standing"},n.rules={label:"Правила",value:"rules"}),n},y=s.div`
8    display: flex;
9    flex-direction: column;
10    align-items: center;
11    gap: ${({$gap:t})=>`${t??20}px`};
12    width: 100%;
13    container-type: inline-size;
14`,ot=s(y)`
15    container-type: inline-size;
16    padding: 0 10px;
17
18    ${({theme:t})=>t.mediaContainers.xl(f`
19            padding: 0;
20        `)}
21`,T=s.aside`
22    flex-shrink: 0;
23    width: 100%;
24
25    ${({theme:t})=>t.mediaContainers.md(f`
26            width: 300px;
27        `)}
28`,C=s(y)`
29    display: flex;
30    flex-direction: column;
31    align-items: stretch;
32    gap: 10px;
33    width: 100%;
34
35    ${({theme:t})=>t.mediaContainers.md(f`
36            flex-direction: row;
37        `)}
38`,rt=({filter:t,info:n,navigation:a,main:l,aside:i})=>e.jsxs(ot,{children:[e.jsxs(C,{children:[e.jsxs(y,{$gap:30,children:[t,n,a.tabList.length>0&&e.jsx(K,{tabs:a.tabList,activeTab:a.activeTab,onTabChange:a.onTabChange})]}),i&&e.jsx(T,{})]}),e.jsxs(C,{children:[e.jsx(y,{children:l}),i&&e.jsx(T,{children:i})]})]}),L=s.select`
39    width: 100%;
40    min-height: 40px;
41    padding: 0 20px;
42    font-family: ${({theme:t})=>t.typography.fontFamily};
43    font-size: ${({theme:t})=>t.typography.fontSize.small};
44    font-weight: bold;
45    line-height: 1em;
46    border-radius: 10px;
47    border: 0;
48    outline: 0;
49
50    ${({theme:t})=>t.applyLightThemeStyles(f`
51            background-color: ${({theme:n})=>n.colors.content.main};
52        `)}
53
54    &:disabled {
55        background-color: ${({theme:t})=>t.colors.content.main}}
56    }
57`,st=s.div`
58    display: flex;
59    flex-direction: column;
60    justify-content: center;
61    align-items: center;
62    gap: 20px;
63    width: 100%;
64
65    ${({theme:t})=>t.mediaContainers.md(f`
66            flex-direction: row;
67        `)}
68`,z=s.label`
69    display: flex;
70    flex-direction: column;
71    gap: 10px;
72    width: 100%;
73    text-align: center;
74    font-size: ${({theme:t})=>t.typography.fontSize.large};
75    font-weight: bold;
76    line-height: 1.5em;
77
78    ${({theme:t})=>t.applyLightThemeStyles(f`
79            color: ${({theme:n})=>n.colors.content.dark};
80        `)}
81}
82`,lt=({activeGroup:t,standingOptions:n,activeStanding:a,action:l})=>{const[i,p]=c.useState({group:t,templateId:a}),r=o=>{if(o.target.value!==""&&(o.target.name==="group"&&p({templateId:"",group:o.target.value}),o.target.name==="standing")){const u={...i,templateId:o.target.value};l(u),p(u)}};return e.jsxs(st,{children:[e.jsxs(z,{children:["Видове класирания",e.jsx(L,{value:i.group,onChange:r,name:"group",children:E.map(o=>e.jsx("option",{value:o,children:et[o]},o))})]}),e.jsxs(z,{children:["Класирания",e.jsxs(L,{value:i.templateId,onChange:r,name:"standing",children:[e.jsx("option",{value:"",children:"---"}),Object.entries(n[i.group]).map(([o,u])=>e.jsx("option",{value:o,children:u.name},o))]})]})]})},dt=s.section`
83    display: flex;
84    flex-direction: column;
85    justify-content: center;
86    align-items: center;
87    gap: 5px;
88    width: 100%;
89    box-sizing: content-box;
90`,ct=s.h1`
91    font-family: ${({theme:t})=>t.typography.fontFamily};
92    font-size: ${({theme:t})=>t.typography.fontSize.xLarge};
93    font-weight: bold;
94    text-align: center;
95    color: ${({theme:t})=>t.colors.primary.main};
96`,pt=s.section`
97    display: flex;
98`,D=s.p`
99    font-family: ${({theme:t})=>t.typography.fontFamily};
100    font-size: ${({theme:t})=>t.typography.fontSize.small};
101    text-align: center;
102`,ut=s(D).attrs(()=>({as:"span"}))`
103    color: ${({theme:t})=>t.colors.palette.grey.grey60};
104`,mt=({title:t,period:n})=>e.jsxs(dt,{children:[e.jsx(ct,{children:t}),e.jsx(pt,{children:n&&e.jsxs(D,{children:[e.jsx(ut,{children:"Период на играта:"})," ",n]})})]}),gt=({template:t})=>{let n=null;return t.fromDate!==null&&t.toDate!==null&&(n=`${S(I({date:t.fromDate,excludeOptions:["hour","minute"]}))} - ${S(I({date:t.toDate,excludeOptions:["hour","minute"]}))}`),e.jsx(mt,{title:t.name??"",period:n})},F=s.div`
105    display: ${({$active:t})=>t?"block":"none"};
106    width: 100%;
107`,ft=({selection:t,templatesByGroup:n,activeTab:a,tabList:l,onTabChange:i,onFilterChange:p})=>n===null||t===null?e.jsx(P,{loading:!0}):e.jsx(rt,{info:e.jsx(gt,{template:n[t.group][t.templateId]}),filter:e.jsx(lt,{standingOptions:n,activeGroup:t.group,activeStanding:t.templateId,action:p}),navigation:{tabList:Object.values(l),activeTab:a,onTabChange:i},main:e.jsxs(e.Fragment,{children:[e.jsx(F,{$active:a==="standing",children:e.jsx(X,{id:t.templateId,type:"TEMPLATE"},t.templateId)}),l.rules&&e.jsx(F,{$active:a==="rules",children:e.jsx(Y,{content:n[t.group][t.templateId].rules})})]})}),ht=()=>{const t=H(),{id:n}=M(),a=Q(),{showBoundary:l}=N(),[i,p]=c.useState(null),[r,o]=c.useState(null),[u,B]=c.useState(!0),[G,$]=c.useState("standing"),W=d=>!u&&$(d),O=d=>{o(d),$("standing")};c.useEffect(()=>{(async()=>{if(r!==null){a(`${k.standings}/${r.templateId}`,{replace:!0});return}try{const d=await Z.api.getAll(),b={};let h,m;if(d.data.forEach(g=>{var v;const x=at(g.flags??[]);if(b[x]={...b[x],[g.id]:g},n!==void 0){n===g.id&&(h=x,m=n);return}m===void 0&&((v=g.flags)!=null&&v.includes(_))&&(h=x,m=g.id)}),p(b),n===void 0&&m===void 0){o({templateId:tt,group:j});return}if(m!==void 0&&h!==void 0){o({templateId:m,group:h});return}throw new V("error",new Error("Wrong id for standing was provided!"))}catch(d){l(d)}finally{B(!1)}})()},[r]);const A=c.useMemo(()=>{if(r!==null&&i!==null){const{primaryColor:d}=J.getBrandingFromGame(i[r.group][r.templateId]);return{...t,colors:{...t.colors,primary:{...t.colors.primary,main:d??t.colors.primary.main}}}}return t},[r,i,t]);let w={};return i&&r&&(w=it(i[r.group][r.templateId])),e.jsx(U,{theme:A,children:e.jsx(ft,{selection:r,templatesByGroup:i,tabList:w,onFilterChange:O,activeTab:G,onTabChange:W})})},Ct=R(ht,{FallbackComponent:t=>e.jsx(q,{...t,...nt})});export{Ct 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.