1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"821ea7e147f045d2860a3e0d1e100e4ae59e5c20"};var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="2dba4b42-d8e4-406d-84fc-a2fc213cfff8",e._sentryDebugIdIdentifier="sentry-dbid-2dba4b42-d8e4-406d-84fc-a2fc213cfff8")}catch(s){}}();import{i as e,D as t,L as s,bv as a,a4 as r,B as l,l as n,a_ as o,a$ as i,b0 as c,b1 as d,b2 as u}from"../chunks/chunk-O6FBTeNJ.js";import{f as m,j as p,r as g}from"../chunks/chunk-DbxBeaFY.js";import{P as h}from"../chunks/chunk-D_si96PC.js";import{C as x}from"../chunks/chunk-4uPJb4L6.js";import{S as y}from"../chunks/chunk-D8QBRFiO.js";import{S as f}from"../chunks/chunk-D_xRNFTR.js";import{g as b}from"../chunks/chunk-BCjEL8Jq.js";import{F as j}from"../chunks/chunk-Bnvr8ESG.js";import{u as k}from"../chunks/chunk-B5R0n4Sp.js";import{T as v,G as N,a as w,u as T,a8 as S,d as L}from"../chunks/chunk-88Eu5Xbc.js";import{S as C}from"../chunks/chunk-BR2Rmv7w.js";import{S as $}from"../chunks/chunk-ClGazBJa.js";import{D as A}from"../chunks/chunk-DtZeX0Vn.js";import{F as I}from"../chunks/chunk-CcO4esSC.js";import{u as E,g as P}from"../chunks/chunk-CtWKGuHi.js";import{u as _}from"../chunks/chunk-BMf0tU-Q.js";import"../chunks/chunk-BodaDULI.js";import"../chunks/chunk-COvqMv2m.js";import"../chunks/chunk-CtPuOAEL.js";import"../chunks/chunk-BWudSaIR.js";import"../chunks/chunk-DFmwVqnZ.js";/* empty css *//* empty css */import"../chunks/chunk-Crgq2rOm.js";import"../chunks/chunk-BK1TCzbo.js";const U={LEAGUE:"bg-green-100 dark:bg-green-900/30 text-green-700 dark:text-green-400",CUP:"bg-blue-100 dark:bg-blue-900/30 text-blue-700 dark:text-blue-400",CONTINENTAL:"bg-purple-100 dark:bg-purple-900/30 text-purple-700 dark:text-purple-400",INTERNATIONAL:"bg-orange-100 dark:bg-orange-900/30 text-orange-700 dark:text-orange-400"},z=a=>{const r=m.c(90),{competition:l,compact:n,pinned:o}=a,i=void 0!==n&&n,c=void 0!==o&&o,{t:d}=k();let u;r[0]!==l.name?(u=b(l.name),r[0]=l.name,r[1]=u):u=r[1];const g=u,h=U[l.type||""]||"bg-gray-100 dark:bg-gray-800 text-gray-700 dark:text-gray-400";if(i){const a=`/league/${l.leagueSlug||l.sportmonksLeagueId}
1`,n=`relative flex flex-col gap-2 p-3 sm:p-4 ${t.radius.card} ${c?"bg-amber-50/60 dark:bg-amber-900/10 border border-amber-300/60 dark:border-amber-700/40":`${t.colors.background.base} border ${t.colors.border.base}`} hover:border-primary-500 dark:hover:border-primary-500 hover:shadow-lg ${t.transitions.default} group`;let o,i,u,m,x,y,f,b,k,w,T;return r[2]!==l.leagueId?(o=l.leagueId&&p.jsx("div",{className:"absolute top-2 right-2 z-20",children:p.jsx(j,{entityType:"league",entityId:l.leagueId,size:"sm"})}),r[2]=l.leagueId,r[3]=o):o=r[3],r[4]!==l.logo||r[5]!==g?(i=p.jsx("div",{className:"w-10 h-10 shrink-0 p-1",children:l.logo?p.jsx("img",{src:e(l.logo,{width:80}),alt:g,className:"w-full h-full object-contain"}):p.jsx(v,{className:`w-full h-full ${t.colors.text.tertiary}`})}),r[4]=l.logo,r[5]=g,r[6]=i):i=r[6],r[7]!==g?(u=p.jsx("h3",{className:`font-semibold text-sm ${t.colors.text.primary} truncate group-hover:text-primary-600 dark:group-hover:text-primary-400 ${t.transitions.colors}`,children:g}),r[7]=g,r[8]=u):u=r[8],r[9]!==l.country?(m=l.country?l.country.flag?p.jsx("img",{src:e(l.country.flag,{width:32}),alt:l.country.name||"",className:"w-3.5 h-2.5 object-cover shrink-0"}):p.jsx(N,{className:"w-3 h-3 shrink-0"}):null,r[9]=l.country,r[10]=m):m=r[10],r[11]!==l.country||r[12]!==d?(x=l.country&&p.jsx("span",{className:"truncate",children:d(`countries.${l.country.name}`,l.country.name||"")}),r[11]=l.country,r[12]=d,r[13]=x):x=r[13],r[14]!==l.type||r[15]!==h?(y=l.type&&p.jsx("span",{className:`shrink-0 px-1.5 py-0.5 text-[10px] font-bold rounded-full ${h}`,children:l.type}),r[14]=l.type,r[15]=h,r[16]=y):y=r[16],r[17]!==l.isLive||r[18]!==d?(f=l.isLive&&p.jsxs("span",{className:"shrink-0 inline-flex items-center gap-1 text-[10px] font-bold uppercase text-red-600 dark:text-red-400",children:[p.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-red-500 animate-pulse motion-reduce:animate-none"}),d("common.live","LIVE")]}),r[17]=l.isLive,r[18]=d,r[19]=f):f=r[19],r[20]!==x||r[21]!==y||r[22]!==f||r[23]!==m?(b=p.jsxs("div",{className:"flex items-center gap-1 text-xs text-gray-500 dark:text-gray-400",children:[m,x,y,f]}),r[20]=x,r[21]=y,r[22]=f,r[23]=m,r[24]=b):b=r[24],r[25]!==b||r[26]!==u?(k=p.jsxs("div",{className:"min-w-0 flex-1",children:[u,b]}),r[25]=b,r[26]=u,r[27]=k):k=r[27],r[28]!==k||r[29]!==i?(w=p.jsxs("div",{className:"flex items-start gap-3 pr-8 pointer-events-none",children:[i,k]}),r[28]=k,r[29]=i,r[30]=w):w=r[30],r[31]!==w||r[32]!==a||r[33]!==n||r[34]!==o?(T=p.jsxs(s,{to:a,className:n,children:[o,w]}),r[31]=w,r[32]=a,r[33]=n,r[34]=o,r[35]=T):T=r[35],T}const x=`/league/${l.leagueSlug||l.sportmonksLeagueId}`;let y,f,w,T,S,L,C,$,A,I,E,P,_,z,F,D,O,R;return r[36]!==l.logo||r[37]!==g?(y=p.jsx("div",{className:"relative shrink-0",children:p.jsx("div",{className:`w-16 h-16 ${t.radius.button} p-2`,children:l.logo?p.jsx("img",{src:e(l.logo,{width:160}),alt:g,className:"w-full h-full object-contain"}):p.jsx(v,{className:`w-full h-full ${t.colors.text.tertiary}`})})}),r[36]=l.logo,r[37]=g,r[38]=y):y=r[38],r[39]!==g?(f=p.jsx("h3",{className:`font-semibold text-base ${t.colors.text.primary} truncate ${t.colors.text.linkHover} ${t.transitions.colors}`,children:g}),r[39]=g,r[40]=f):f=r[40],r[41]!==l.country||r[42]!==d?(w=l.country&&p.jsxs("div",{className:"flex items-center gap-1.5 mt-1 text-xs text-gray-500 dark:text-gray-400",children:[l.country.flag?p.jsx("img",{src:e(l.country.flag,{width:32}),alt:l.country.name||"",className:"w-4 h-3 object-cover"}):p.jsx(N,{className:"w-3 h-3"}),p.jsx("span",{className:"truncate",children:d(`countries.${l.country.name}`,l.country.name||"")})]}),r[41]=l.country,r[42]=d,r[43]=w):w=r[43],r[44]!==f||r[45]!==w?(T=p.jsxs("div",{className:"flex-1 min-w-0",children:[f,w]}),r[44]=f,r[45]=w,r[46]=T):T=r[46],r[47]!==l.leagueId?(S=l.leagueId&&p.jsx("div",{className:"shrink-0",children:p.jsx(j,{entityType:"league",entityId:l.leagueId,size:"md"})}),r[47]=l.leagueId,r[48]=S):S=r[48],r[49]!==y||r[50]!==T||r[51]!==S?(L=p.jsxs("div",{className:"flex items-start gap-3 mb-2",children:[y,T,S]}),r[49]=y,r[50]=T,r[51]=S,r[52]=L):L=r[52],r[53]!==l.season||r[54]!==l.type||r[55]!==h?(C=(l.type||l.season)&&p.jsxs("div",{className:"flex items-center gap-2 pt-2 border-t border-gray-200 dark:border-gray-700",children:[l.type&&p.jsx("span",{className:`text-xs px-2 py-0.5 rounded-full font-medium ${h}`,children:l.type}),l.season&&p.jsx("span",{className:"text-xs text-gray-500 dark:text-gray-400",children:l.season})]}),r[53]=l.season,r[54]=l.type,r[55]=h,r[56]=C):C=r[56],r[57]!==L||r[58]!==C?($=p.jsxs("div",{className:"block sm:hidden",children:[L,C]}),r[57]=L,r[58]=C,r[59]=$):$=r[59],r[60]!==l.logo||r[61]!==g?(A=p.jsx("div",{className:"relative shrink-0",children:p.jsx("div",{className:`w-20 h-20 ${t.radiu
1s.button} p-2 group-hover:scale-110 ${t.transitions.default}`,children:l.logo?p.jsx("img",{src:e(l.logo,{width:160}),alt:g,className:"w-full h-full object-contain"}):p.jsx(v,{className:`w-full h-full ${t.colors.text.tertiary}`})})}),r[60]=l.logo,r[61]=g,r[62]=A):A=r[62],r[63]!==g?(I=p.jsx("h3",{className:`font-bold text-lg ${t.colors.text.primary} truncate ${t.colors.text.linkHover} ${t.transitions.colors} mb-1`,children:g}),r[63]=g,r[64]=I):I=r[64],r[65]!==l.country||r[66]!==d?(E=l.country&&p.jsxs("div",{className:"flex items-center gap-1.5 text-gray-600 dark:text-gray-400",children:[p.jsx(N,{className:"w-4 h-4"}),l.country.flag?p.jsx("img",{src:e(l.country.flag,{width:32}),alt:l.country.name||"",className:"w-5 h-4 object-cover"}):null,p.jsx("span",{children:d(`countries.${l.country.name}`,l.country.name||"")})]}),r[65]=l.country,r[66]=d,r[67]=E):E=r[67],r[68]!==l.type||r[69]!==h?(P=l.type&&p.jsx("span",{className:`px-2.5 py-1 text-xs font-semibold rounded-full ${h}`,children:l.type}),r[68]=l.type,r[69]=h,r[70]=P):P=r[70],r[71]!==l.season?(_=l.season&&p.jsx("span",{className:"text-gray-600 dark:text-gray-400",children:l.season}),r[71]=l.season,r[72]=_):_=r[72],r[73]!==E||r[74]!==P||r[75]!==_?(z=p.jsxs("div",{className:"flex items-center gap-3 text-sm",children:[E,P,_]}),r[73]=E,r[74]=P,r[75]=_,r[76]=z):z=r[76],r[77]!==I||r[78]!==z?(F=p.jsxs("div",{className:"flex-1 min-w-0",children:[I,z]}),r[77]=I,r[78]=z,r[79]=F):F=r[79],r[80]!==l.leagueId?(D=l.leagueId&&p.jsx(j,{entityType:"league",entityId:l.leagueId,size:"lg"}),r[80]=l.leagueId,r[81]=D):D=r[81],r[82]!==A||r[83]!==F||r[84]!==D?(O=p.jsxs("div",{className:"hidden sm:flex items-center gap-4",children:[A,F,D]}),r[82]=A,r[83]=F,r[84]=D,r[85]=O):O=r[85],r[86]!==$||r[87]!==O||r[88]!==x?(R=p.jsxs(s,{to:x,className:`relative block p-3 sm:p-4 ${t.radiu
1s.card} ${t.colors.background.base} border ${t.colors.border.base} hover:border-primary-500 dark:hover:border-primary-500 hover:shadow-lg ${t.transitions.default} ${t.focus.ring} group hover:scale-[1.01] active:scale-[0.99] transition-transform`,children:[$,O]}),r[86]=$,r[87]=O,r[88]=x,r[89]=R):R=r[89],R},F={ALL:"bg-gray-100 dark:bg-gray-800 text-gray-700 dark:text-gray-400",LEAGUE:"bg-green-100 dark:bg-green-900/30 text-green-700 dark:text-green-400",CUP:"bg-blue-100 dark:bg-blue-900/30 text-blue-700 dark:text-blue-400",CONTINENTAL:"bg-purple-100 dark:bg-purple-900/30 text-purple-700 dark:text-purple-400",INTERNATIONAL:"bg-orange-100 dark:bg-orange-900/30 text-orange-700 dark:text-orange-400"},D=e=>{const t=m.c(61),{search:s,onSearchChange:a,countryOptions:r,selectedCountries:l,onCountriesChange:n,selectedType:o,onTypeChange:i,hasActiveFilters:c,onClearFilters:d}=e,{t:u}=k();let g,h,x,y,f,b,j,v,N,w,T;t[0]!==u?(g=u("leagues.allTypes","All Types"),t[0]=u,t[1]=g):g=t[1],t[2]!==g?(h={value:"ALL",label:g},t[2]=g,t[3]=h):h=t[3],t[4]!==u?(x=u("leagues.leagues","Leagues"),t[4]=u,t[5]=x):x=t[5],t[6]!==x?(y={value:"LEAGUE",label:x},t[6]=x,t[7]=y):y=t[7],t[8]!==u?(f=u("leagues.cups","Cups"),t[8]=u,t[9]=f):f=t[9],t[10]!==f?(b={value:"CUP",label:f},t[10]=f,t[11]=b):b=t[11],t[12]!==u?(j=u("leagues.continental","Continental"),t[12]=u,t[13]=j):j=t[13],t[14]!==j?(v={value:"CONTINENTAL",label:j},t[14]=j,t[15]=v):v=t[15],t[16]!==u?(N=u("leagues.international","International"),t[16]=u,t[17]=N):N=t[17],t[18]!==N?(w={value:"INTERNATIONAL",label:N},t[18]=N,t[19]=w):w=t[19],t[20]!==w||t[21]!==h||t[22]!==y||t[23]!==b||t[24]!==v?(T=[h,y,b,v,w],t[20]=w,t[21]=h,t[22]=y,t[23]=b,t[24]=v,t[25]=T):T=t[25];const S=T;let L,E,P,_,U,z,D,R,B,M;return t[26]!==u?(L=u("leagues.searchPlaceholder","Search leagues or countries..."),t[26]=u,t[27]=L):L=t[27],t[28]!==a||t[29]!==s||t[30]!==L?(E=p.jsx(C,{value:s,onChange:a,placeholder:L,className:"flex-1 min-w-50"}),t[28]=a,t[29]=s,t[30]=L,t[31]=E):E=t[31],t[32]!==u?(P=u("leagues.country","Country"),t[32]=u,t[33]=P):P=t[33],t[34]!==u?(_=u("leagues.allCountries","All countries"),t[34]=u,t[35]=_):_=t[35],t[36]!==r||t[37]!==n||t[38]!==l||t[39]!==P||t[40]!==_?(U=p.jsx($,{label:P,placeholder:_,options:r,selectedIds:l,onChange:n,variant:"compact",triggerClassName:"py-2.5"}),t[36]=r,t[37]=n,t[38]=l,t[39]=P,t[40]=_,t[41]=U):U=t[41],t[42]!==u?(z=u("leagues.filterByType","Competition Type"),t[42]=u,t[43]=z):z=t[43],t[44]!==o?(D=(e,t)=>p.jsxs(p.Fragment,{children:[p.jsx("span",{className:`w-2 h-2 rounded-full ${F[o].split(" ")[0]}`}),p.jsx("span",{className:"truncate",children:t})]}),t[44]=o,t[45]=D):D=t[45],t[46]!==i||t[47]!==o||t[48]!==z||t[49]!==D||t[50]!==S?(R=p.jsx(A,{value:o,options:S,onChange:i,ariaLabel:z,variant:"outline",triggerClassName:"gap-1.5 px-3 sm:px-3 md:px-3 py-2.5 sm:py-2.5",renderTrigger:D,renderOption:O}),t[46]=i,t[47]=o,t[48]=z,t[49]=D,t[50]=S,t[51]=R):R=t[51],t[52]!==c||t[53]!==d||t[54]!==u?(B=c&&p.jsx(I,{onClick:d,label:u("common.clearFilters","Clear all filters")}),t[52]=c,t[53]=d,t[54]=u,t[55]=B):B=t[55],t[56]!==E||t[57]!==U||t[58]!==R||t[59]!==B?(M=p.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[E,U,R,B]}),t[56]=E,t[57]=U,t[58]=R,t[59]=B,t[60]=M):M=t[60],M};function O(e){return p.jsx("span",{className:`px-2 py-0.5 text-xs font-bold rounded-full ${F[e.value]}`,children:e.label})}const R=()=>{const a=m.c(47),{t:r,i18n:l}=k(),{ranking:n,loading:o}=E(),[i,c]=g.useState(!1);let d;a[0]!==n?(d=n.filter(B),a[0]=n,a[1]=d):d=a[1];const u=d;if(o){let e;return a[2]===Symbol.for("react.memo_cache_sentinel")?(e=p.jsx("div",{className:"flex justify-center py-8",children:p.jsx(w,{className:`w-6 h-6 animate-spin ${t.colors.text.tertiary}`})}),a[2]=e):e=a[2],e}if(!u.length)return null;let h;a[3]!==u||a[4]!==i?(h=i?u:u.slice(0,20),a[3]=u,a[4]=i,a[5]=h):h=a[5];const x=h;let y,f,j,N,T,S,L,C,$,A,I,_,U;if(a[6]!==l.language||a[7]!==u[0].computedAt||a[8]!==r){const e=P(u[0].computedAt,l.language);let s;L="mb-8",T="mb-3",a[16]!==r?(s=r("leagues.eloTitle","League strength"),a[16]=r,a[17]=s):s=a[17],a[18]!==s?(S=p.jsx("h2",{className:`text-lg font-bold ${t.colors.text.primary}`,children:s}),a[18]=s,a[19]=S):S=a[19],y=`text-sm ${t.colors.text.secondary}`,a[20]!==r?(f=r("leagues.eloSubtitle","The average rating of each leagueâs current clubs, measured from results across borders instead of set by hand."),a[20]=r,a[21]=f):f=a[21],j=" ",N=r("leagues.eloAsOf","As of {{date}}.",{date:e}),a[6]=l.language,a[7]=u[0].computedAt,a[8]=r,a[9]=y,a[10]=f,a[11]=j,a[12]=N,a[13]=T,a[14]=S,a[15]=L}else y=a[9],f=a[10],j=a[11],N=a[12],T=a[13],S=a[14],L=a[15];if(a[22]!==y||a[23]!==f||a[24]!==j||a[25]!==N?(C=p.jsxs("p",{className:y,children:[f,j,N]}),a[22]=y,a[23]=f,a[24]=j,a[25]=N,a[26]=C):C=a[26],a[27]!==T||a[28]!==S||a[29]!==C?($=p.jsxs("div",{className:T,children:[S,C]}),a[27]=T,a[28]=S,a[29]=C,a[30]=$):$=a[30],a[31]!==r||a[32]!==x){let l;a[34]!==r?(l=a=>{const l=a.league?b(a.league.name):a.sportmonksLeagueId;return p.jsxs(s,{to:`/league/${a.league?.slug||a.sportmonksLeagueId}`,className:`flex items-center gap-3 px-3 py-2 border-b last:border-b-0 ${t.colors.border.base} hover:bg-gray-50 dark:hover:bg-gray-800/50 ${t.transitions.colors}`,children:[p.jsx("span",{className:`w-7 text-right text-sm tabular-nums ${t.colors.text.tertiary}`,children:a.rank}),p.jsx("span",{className:"w-6 h-6 shrink-0",children:a.league?.logo?p.jsx("img",{src:e(a.league.logo,{width:48}),alt:l,className:"w-full h-full object-contain"}):p.jsx(v,{className:`w-full h-full ${t.colors.text.tertiary}`})}),p.jsx("span",{className:`min-w-0 flex-1 truncate text-sm font-medium ${t.colors.text.primary}`,children:l}),p.jsx("span",{className:`hidden sm:block w-32 truncate text-sm ${t.colors.text.tertiary}`,children:a.country?r(`countries.${a.country}`,a.country):""}),p.jsx("span",{className:`w-14 text-right text-sm font-semibold tabular-nums ${t.colors.text.primary}`,children:Math.round(a.rating)}),p.jsx("span",{className:`w-12 text-right text-xs tabular-nums ${t.colors.text.tertiary}`,children:null!=a.levelError?`±${Math.round(a.levelError)}`:""})]},a.sportmonksLeagueId)},a[34]=r,a[35]=l):l=a[35],A=x.map(l),a[31]=r,a[32]=x,a[33]=A}else A=a[33];
1return a[36]!==A?(I=p.jsx("div",{className:`${t.radius.card} border ${t.colors.border.base} ${t.colors.background.base} overflow-hidden`,children:A}),a[36]=A,a[37]=I):I=a[37],a[38]!==u.length||a[39]!==i||a[40]!==r?(_=u.length>20&&p.jsx("button",{type:"button",onClick:()=>c(M),className:`mt-2 text-sm ${t.colors.text.tertiary} hover:text-primary-600 dark:hover:text-primary-400 ${t.transitions.colors}`,children:i?r("leagues.showLess","Show less"):r("leagues.eloShowAll","Show all {{count}} leagues",{count:u.length})}),a[38]=u.length,a[39]=i,a[40]=r,a[41]=_):_=a[41],a[42]!==$||a[43]!==I||a[44]!==_||a[45]!==L?(U=p.jsxs("section",{className:L,children:[$,I,_]}),a[42]=$,a[43]=I,a[44]=_,a[45]=L,a[46]=U):U=a[46],U};function B(e){return null!=e.rank}function M(e){return!e}const G={search:"",type:"ALL",countries:[]},V=[271,564,384,207,301,8,679,848,3,24];function H(){const e=m.c(97),{t:s}=k(),{getFavoriteIds:n}=r();let o,i;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=[],e[0]=o):o=e[0],g.useEffect(X,o),e[1]!==n?(i=Array.from(n("league")),e[1]=n,e[2]=i):i=e[2];const c=i,{filters:d,setFilter:u,clearFilters:j,hasActiveFilters:C}=function(){const e=m.c(24),[t,s]=a();let r;e[0]!==t?(r=t.get("q")||"",e[0]=t,e[1]=r):r=e[1];const l=r,[n,o]=g.useState(l);let i,c,d;e[2]!==l?(i=()=>{o(l)},c=[l],e[2]=l,e[3]=i,e[4]=c):(i=e[3],c=e[4]),g.useEffect(i,c),e[5]!==t?(d=t.get("type"),e[5]=t,e[6]=d):d=e[6];const u="ALL"===d||"LEAGUE"===d||"CUP"===d||"CONTINENTAL"===d||"INTERNATIONAL"===d?d:G.type;let p;if(e[7]!==t){const s=t.get("countries");p=s?s.split(",").filter(Boolean):[],e[7]=t,e[8]=p}else p=e[8];const h=p;let x;e[9]!==h||e[10]!==n||e[11]!==u?(x={search:n,type:u,countries:h},e[9]=h,e[10]=n,e[11]=u,e[12]=x):x=e[12];const y=x;let f;e[13]!==t||e[14]!==s?(f=(e,a)=>{const r=new URLSearchParams(t),l={search:"q",type:"type",countries:"countries"}[e];let n,i;if("countries"===e){const e=a;n=e.join(","),i=0===e.length}else n=String(a),i=a===G[e];i||""===n?r.delete(l):r.set(l,n),"search"===e?(o(a),s(r,{replace:!0})):s(r)},e[13]=t,e[14]=s,e[15]=f):f=e[15];const b=f;let j;e[16]!==t||e[17]!==s?(j=()=>{o("");const e=new URLSearchParams(t);e.delete("q"),e.delete("type"),e.delete("countries"),e.delete("favorites"),s(e)},e[16]=t,e[17]=s,e[18]=j):j=e[18];const k=j,v=""!==y.search||y.type!==G.type||y.countries.length>0;let N;return e[19]!==k||e[20]!==y||e[21]!==v||e[22]!==b?(N={filters:y,setFilter:b,clearFilters:k,hasActiveFilters:v},e[19]=k,e[20]=y,e[21]=v,e[22]=b,e[23]=N):N=e[23],N}(),{search:$,type:A,countries:I}=d,[E,P]=g.useState(!1),{competitions:U,loading:z,error:F,refetch:O}=_(!1,3e4);let B;e:{if(!U){let t;e[3]===Symbol.for("react.memo_cache_sentinel")?(t=[],e[3]=t):t=e[3],B=t;break e}let t;if(e[4]!==U){const s=new Map;U.forEach(e=>{e.country?.code&&e.country?.name&&s.set(e.country.code,{name:e.country.name,code:e.country.code,flag:e.country.flag})}),t=Array.from(s.values()).sort(W),e[4]=U,e[5]=t}else t=e[5];B=t}const M=B;let V;if(e[6]!==M||e[7]!==s){let t;e[9]!==s?(t=e=>({id:e.code,name:s(`countries.${e.name}`,e.name),logo:e.flag}),e[9]=s,e[10]=t):t=e[10],V=M.map(t),e[6]=M,e[7]=s,e[8]=V}else V=e[8];const H=V;let ee;e:{if(!U){let t;e[11]===Symbol.for("react.memo_cache_sentinel")?(t=[],e[11]=t):t=e[11],ee=t;break e}let t;e[12]!==U?(t=U.filter(Q).map(J),e[12]=U,e[13]=t):t=e[13],ee=t}const te=ee;let se;if(e[14]!==te||e[15]!==c){const t=[],s=[];te.forEach(e=>{e.leagueId&&c.includes(e.leagueId)?t.push(e):s.push(e)}),se={pinnedCompetitions:t,unpinnedCompetitions:s},e[14]=te,e[15]=c,e[16]=se}else se=e[16];const{pinnedCompetitions:ae,unpinnedCompetitions:re}=se;let le;if(e[17]!==$||e[18]!==I||e[19]!==A||e[20]!==s||e[21]!==re){if(le=[...re],$.trim()){const e=$.toLowerCase();le=le.filter(t=>{const a=b(t.name).toLowerCase(),r=t.country?.name?.toLowerCase()||"",l=t.country?.name?s(`countries.${t.country.name}`,"").toLowerCase():"";return a.includes(e)||r.includes(e)||l.includes(e)})}"ALL"!==A&&(le=le.filter(e=>e.type===A)),I.length>0&&(le=le.filter(e=>e.country?.code&&I.includes(e.country.code))),le.sort(Z),e[17]=$,e[18]=I,e[19]=A,e[20]=s,e[21]=re,e[22]=le}else le=e[22];const ne=le;let oe;e[23]!==$?(oe=$.trim(),e[23]=$,e[24]=oe):oe=e[24];const ie=oe.length>0;let ce;e[25]!==ne||e[26]!==ie||e[27]!==E?(ce=E||ie?ne:ne.slice(0,20),e[25]=ne,e[26]=ie,e[27]=E,e[28]=ce):ce=e[28];const de=ce,ue=U?.length||0;let me,pe,ge,he,xe,ye,fe,be,je,ke,ve,Ne,we,Te,Se,Le,Ce,$e,Ae,Ie,Ee;return e[29]!==s?(me=s("leagues.pageTitle","Football Leagues & Competitions - ScoutsLand"),e[29]=s,e[30]=me):me=e[30],e[31]!==s?(pe=s("leagues.pageDescription","Browse all football leagues and competitions. Find live scores, standings, and statistics for leagues worldwide."),e[31]=s,e[32]=pe):pe=e[32],e[33]!==me||e[34]!==pe?(ge=p.jsx(y,{title:me,description:pe,url:`${f.BASE_URL}/leagues`,twitterSite:"scoutsland_live"}),e[33]=me,e[34]=pe,e[35]=ge):ge=e[35],e[36]===Symbol.for("react.memo_cache_sentinel")?(he=p.jsx("div",{className:"p-2 bg-purple-100 dar
1k:bg-purple-900/30 rounded-xl",children:p.jsx(v,{className:"w-6 h-6 text-purple-600 dark:text-purple-400"})}),e[36]=he):he=e[36],e[37]!==s?(xe=s("leagues.title","Leagues & Competitions"),e[37]=s,e[38]=xe):xe=e[38],e[39]!==xe?(ye=p.jsxs("div",{className:"flex items-center gap-3",children:[he,p.jsx("h1",{className:"text-xl sm:text-2xl font-bold text-gray-900 dark:text-gray-100",children:xe})]}),e[39]=xe,e[40]=ye):ye=e[40],e[41]!==s||e[42]!==ue?(fe=s("leagues.competitionsTracked","{{count}} competitions tracked",{count:ue}),e[41]=s,e[42]=ue,e[43]=fe):fe=e[43],e[44]!==fe?(be=p.jsx("p",{className:`text-sm ${t.colors.text.secondary}`,children:fe}),e[44]=fe,e[45]=be):be=e[45],e[46]!==ye||e[47]!==be?(je=p.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-2",children:[ye,be]}),e[46]=ye,e[47]=be,e[48]=je):je=e[48],e[49]!==s?(ke=s("leagues.description","Every competition we cover, live â current matchday, table leader, and leading scorer. Pin the ones you follow and they stay at the top."),e[49]=s,e[50]=ke):ke=e[50],e[51]!==ke?(ve=p.jsx("p",{className:`text-sm ${t.colors.text.secondary}`,children:ke}),e[51]=ke,e[52]=ve):ve=e[52],e[53]!==u?(Ne=e=>u("search",e),e[53]=u,e[54]=Ne):Ne=e[54],e[55]!==u?(we=e=>u("countries",e),e[55]=u,e[56]=we):we=e[56],e[57]!==u?(Te=e=>u("type",e),e[57]=u,e[58]=Te):Te=e[58],e[59]!==j||e[60]!==H||e[61]!==C||e[62]!==$||e[63]!==I||e[64]!==A||e[65]!==Ne||e[66]!==we||e[67]!==Te?(Se=p.jsx(D,{search:$,onSearchChange:Ne,countryOptions:H,selectedCountries:I,onCountriesChange:we,selectedType:A,onTypeChange:Te,hasActiveFilters:C,onClearFilters:j}),e[59]=j,e[60]=H,e[61]=C,e[62]=$,e[63]=I,e[64]=A,e[65]=Ne,e[66]=we,e[67]=Te,e[68]=Se):Se=e[68],e[69]!==z?(Le=z&&p.jsx("div",{className:"flex items-center justify-center py-12",children:p.jsx(w,{className:"w-8 h-8 animate-spin text-primary-600"})}),e[69]=z,e[70]=Le):Le=e[70],e[71]!==F||e[72]!==O||e[73]!==s?(Ce=F&&p.jsxs(x,{className:"p-6 text-center",children:[p.jsx(T,{className:"w-12 h-12 text-red-500 mx-auto mb-4"}),p.jsx("h3",{className:"text-lg font-semibold text-gray-900 dark:text-white mb-2",children:s("common.error","Something went wrong")}),p.jsx("p",{className:"text-gray-600 dark:text-gray-400 mb-4",children:s("common.errorMessage","Failed to load competitions. Please try again.")}),p.jsx(l,{onClick:()=>O(),children:s("common.retry","Try Again")})]}),e[71]=F,e[72]=O,e[73]=s,e[74]=Ce):Ce=e[74],e[75]!==j||e[76]!==F||e[77]!==ne||e[78]!==C||e[79]!==ie||e[80]!==z||e[81]!==ae||e[82]!==E||e[83]!==s||e[84]!==de?($e=!z&&!F&&p.jsxs(p.Fragment,{children:[p.jsx(R,{}),p.jsxs("div",{children:[p.jsxs("h2",{className:`text-lg font-bold ${t.colors.text.primary} mb-1 flex items-center gap-2`,children:[p.jsx(S,{className:"w-5 h-5 text-amber-500 fill-amber-500"}),s("leagues.yourCompetitions","Your competitions"),p.jsx("span",{className:"text-sm font-normal text-gray-500 dark:text-gray-400",children:ae.length})]}),ae.length>0?p.jsxs(p.Fragment,{children:[p.jsx("p",{className:"text-xs text-gray-500 dark:text-gray-400 mb-3",children:s("leagues.pinnedHint","Pinned to the top of every browse view")}),p.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 gap-3",children:ae.map(K)})]}):p.jsx(x,{className:"p-4 text-sm text-gray-600 dark:text-gray-400",children:s("leagues.noFavoritesMessage","Tap the star on any competition to pin it here.")})]}),0===ne.length?p.jsxs(x,{className:"p-8 text-center",children:[p.jsx(N,{className:"w-12 h-12 text-gray-400 mx-auto mb-4"}),p.jsx("h3",{className:"text-lg font-semibold text-gray-900 dark:text-white mb-2",children:s("leagues.noResults","No competitions found")}),p.jsx("p",{className:"text-gray-600 dark:text-gray-400 mb-4",children:s("leagues.noResultsMessage","Try adjusting your search or filters.")}),C&&p.jsx(l,{variant:"outline",onClick:j,children:s("common.clearFilters","Clear Filters")})]}):p.jsxs("div",{children:[p.jsxs("h2",{className:`text-lg font-bold ${t.colors.text.primary} mb-3 mt-6`,children:[s("leagues.allCompetitions","All Competitions"),p.jsxs("span",{className:`ml-2 text-sm font-normal ${t.colors.text.secondary}`,children:["(",ne.length,")"]})]}),p.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 gap-3",children:de.map(Y)}),!ie&&ne.length>20&&p.jsx("div",{className:"mt-3",children:p.jsxs("button",{type:"button",onClick:()=>P(q),className:"flex items-center gap-1 text-sm font-medium text-primary-600 dark:text-primary-400 hover:underline min-h-11",children:[E?s("leagues.showLess","Show less"):s("leagues.showAllCompetitions","Show all {{count}} competitions",{count:ne.length}),p.jsx(L,{className:"w-4 h-4 "+(E?"rotate-180":"")})]})})]})]}),e[75]=j,e[76]=F,e[77]=ne,e[78]=C,e[79]=ie,e[80]=z,e[81]=ae,e[82]=E,e[83]=s,e[84]=de,e[85]=$e):$e=e[85],e[86]===Symbol.for("react.memo_cache_sentinel")?(Ae=p.jsx(h,{i18nKey:"leagues"}),e[86]=Ae):Ae=e[86],e[87]!==je||e[88]!==ve||e[89]!==Se||e[90]!==Le||e[91]!==Ce||e[92]!==$e?(Ie=p.jsxs("div",{className:"flex flex-col space-y-4",children:[je,ve,Se,Le,Ce,$e,Ae]}),e[87]=je,e[88]=ve,e[89]=Se,e[90]=Le,e[91]=Ce,e[92]=$e,e[93]=Ie):Ie=e[93],e[94]!==ge||e[95]!==Ie?(Ee=p.jsxs(p.Fragment,{children:[ge,Ie]}),e[94]=ge,e[95]=Ie,e[96]=Ee):Ee=e[96],Ee}function q(e){return!e}function Y(e){return p.jsx(z,{competition:e,compact:!0},e.id)}function K(e){return p.jsx(z,{competition:e,compact:!0,pinned:!0},e.id)}function Z(e,t){const s=e.sportmonksLeagueId&&V.includes(e.sportmonksLeagueId);if(s!==(t.sportmonksLeagueId&&V.includes(t.sportmonksLeagueId)))return s?-1:1;const a=b(e.name),r=b(t.name),l=(e.country?.name||"").localeCompare(t.country?.name||"");if(0!==l)return l;const n={LEAGUE:0,CUP:1,CONTINENTAL:2,INTERNATIONAL:3},o=n[e.type||""]??4,i=n[t.type||""]??4;return o!==i?o-i:a.localeCompare(r)}function J(e){return{id:e.id,name:e.name,logo:e.logo,type:e.type,season:e.season,sportmonksLeagueId:e.sportmonksLeagueId,leagueSlug:e.leagueSlug||void 0,leagueId:e.league?.id,country:e.country,isLive:e.isLive}}
1function Q(e){const t=("string"==typeof e.name?e.name:b(e.name)).toLowerCase();return!t.includes("friendly")&&!t.includes("friendlies")}function W(e,t){return e.name.localeCompare(t.name)}function X(){n.viewLeaguesPage()}const ee={hasServerOnlyHook:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!1}},isClientRuntimeLoaded:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},onBeforeRenderEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},dataEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},guardEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},onRenderClient:{type:"standard",definedAtData:{filePathToShowToUser:"vike-react/__internal/integration/onRenderClient",fileExportPathToShowToUser:[]},valueSerialized:{type:"pointer-import",value:u}},onPageTransitionStart:{type:"standard",definedAtData:{filePathToShowToUser:"/pages/+onPageTransitionStart.ts",fileExportPathToShowToUser:[]},valueSerialized:{type:"plus-file",exportValues:d}},onPageTransitionEnd:{type:"standard",definedAtData:{filePathToShowToUser:"/pages/+onPageTransitionEnd.ts",fileExportPathToShowToUser:[]},valueSerialized:{type:"plus-file",exportValues:c}},Page:{type:"standard",definedAtData:{filePathToShowToUser:"/pages/leagues/+Page.tsx",fileExportPathToShowToUser:[]},valueSerialized:{type:"plus-file",exportValues:Object.freeze(Object.defineProperty({__proto__:null,default:function(){const e=m.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=p.jsx(H,{}),e[0]=t):t=e[0],t}},Symbol.toStringTag,{value:"Module"}))}},hydrationCanBeAborted:{type:"standard",definedAtData:{filePathToShowToUser:"vike-react/config",fileExportPathToShowToUser:["default","hydrationCanBeAborted"]},valueSerialized:{type:"js-serialized",value:!0}},prefetchStaticAssets:{type:"standard",definedAtData:{filePathToShowToUser:"/pages/+config.ts",fileExportPathToShowToUser:["default","prefetchStaticAssets"]},valueSerialized:{type:"js-serialized",value:"viewport"}},Layout:{type:"cumulative",definedAtData:[{filePathToShowToUser:"/pages/+Layout.tsx",fileExportPathToShowToUser:[]}],valueSerialized:[{type:"plus-file",exportValues:i}]},Loading:{type:"standard",definedAtData:{filePathToShowToUser:"vike-react/__internal/integration/Loading",fileExportPathToShowToUser:[]},valueSerialized:{type:"pointer-import",value:o}}};export{ee as configValuesSerialized};
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.