1"use strict";(self.webpackChunkflashscore=self.webpackChunkflashscore||[]).push([[2784],{38253(t,e,r){r.r(e),r.d(e,{default:()=>p});var n=r(16522),s=r(74848),i=r(30041),a=(r(96540),r(85647)),o=r(45545),u=r(88930),l=r(23009),d=r(97131),g=r(99409),h=r(87050);function y(){return y=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)({}).hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},y.apply(null,arguments)}class c{constructor(t,e){this.stageGroups=void 0,this.initialStageId=void 0,this.byKey=t=>e=>r=>r[t]===e,this.byId=this.byKey("id"),this.byCountryId=this.byKey("countryId"),this.byGroupId=this.byKey("groupId"),this.country2stage={},this.group2country={},this.composeCountryKey=(t,e)=>e+"/"+t,this.stageGroups=t,this.initialStageId=e}getStageById(t){return this.stageGroups.stages.find(this.byId(t))}getInitialStage(){return this.getStageById(this.initialStageId)}getGroupByStageId(t){var e=this.getStageById(t);return this.stageGroups.groups.find(this.byId(null==e?void 0:e.groupId))}getCountryByStageId(t){var e=this.getStageById(t);return this.stageGroups.countries.find(this.byId(null==e?void 0:e.countryId))}getCountriesByGroupId(t){return this.stageGroups.countries.filter(this.byGroupId(t))}getStagesByCountryIdAndByGroupId(t,e){return this.stageGroups.stages.filter(this.byCountryId(t)).filter(this.byGroupId(e))}storeSelectedTabs(t,e,r){t&&e&&r&&(this.country2stage=y(y({},this.country2stage),{},{[this.composeCountryKey(e,t)]:r}),this.group2country=y(y({},this.group2country),{},{[t]:e}))}getInitialPathForGroup(t){var e=this.getInitialStage(),r=this.getCountriesByGroupId(t),n=r.some(t=>{var{id:r}=t;return r===(null==e?void 0:e.countryId)}),s=e&&n&&e.countryId||r[0].id;return this.getInitialPathForCountry(s,t)}getStagePathByGroupId(t){var e=this.group2country[t];return e&&this.country2stage[this.composeCountryKey(e,t)]||this.getInitialPathForGroup(t)}getInitialPathForCountry(t,e){var r=this.getStagesByCountryIdAndByGroupId(t,e);return r.map(t=>{var{id:e}=t;return e}).includes(this.initialStageId)?this.initialStageId:r[r.length-1].id}getStagePathByCountryIdAndByGroupId(t,e){return this.country2stage[this.composeCountryKey(t,e)]||this.getInitialPathForCountry(t,e)}}function p(t){var e,r,i,u,y=(0,n.c)(9),{stageGroups:p,parentPath:b}=t,C=void 0===b?"":b,{pathname:G}=(0,a.zy)();y[0]!==p.stages?(u=t=>p.stages.some(e=>e.id===t),y[0]=p.stages,y[1]=u):u=y[1];var S,j=G.split("/").find(u),B=(0,d.useConfig)();y[2]!==B?(S=B.getStats2Config(),y[2]=B,y[3]=S):S=y[3];var x,P=S.tournamentStage;y[4]!==P||y[5]!==p?(x=new c(p,P),y[4]=P,y[5]=p,y[6]=x):x=y[6];var O,F=x,k=j?F.getGroupByStageId(j):void 0,K=F.getCountriesByGroupId(null!=(e=null==k?void 0:k.id)?e:""),w=j?F.getCountryByStageId(j):void 0,M=p.groups.length?F.getStagesByCountryIdAndByGroupId(null!=(r=null==w?void 0:w.id)?r:"",null!=(i=null==k?void 0:k.id)?i:""):p.stages,A=p.groups.length<=1&&K.length<=1&&M.length<=1;return y[7]!==C?(O=t=>{var{id:e}=t;return(0,s.jsx)(a.qh,{path:e+"/*",children:(0,s.jsx)(a.qh,{path:"*",element:(0,s.jsx)(h.M,{tournamentStageId:e,parentTabPath:[C,e].filter(v).join("/")})})},"stage-"+e)},y[7]=C,y[8]=O):O=y[8],(0,s.jsxs)(s.Fragment,{children:[!A&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(I,{getters:F,groups:p.groups,selectedGroup:k,stageIdFromPath:j}),(0,s.jsx)(f,{getters:F,countries:K,selectedCountry:w,selectedGroup:k,stageIdFromPath:j}),(0,s.jsx)(m,{getters:F,stages:M,selectedGroup:k,selectedCountry:w})]}),(0,s.jsxs)(a.BV,{children:[p.stages.map(O),(0,s.jsx)(a.qh,{path:l.b,element:(0,s.jsx)(s.Fragment,{})},"legalAgeConfirmationModal"),(0,s.jsx)(a.qh,{path:"*",element:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(g.d,{}),(0,s.jsx)(o.E,{replace:!0,to:"../"+P+"/"})]})})]})]})}function v(t){return t}function I(t){var{groups:e,getters:r,selectedGroup:n,stageIdFromPath:a}=t;return!e.length||e.length<=1?null:(0,s.jsx)(i.tUM,{type:"secondary",className:"filterOver filterOver--border filterOver--table",children:e.map(t=>{var{name:e,id:i}=t,o=a&&(null==n?void 0:n.id)===i?a:r.getStagePathByGroupId(i);return(0,s.jsx)(u.p,{url:o,name:e,onClick:()=>{var t;return r.storeSelectedTabs(i,null==(t=r.getCountryByStageId(o))?void 0:t.id,o)}},"group-"+i)})})}function f(t){var{countries:e,getters:r,selectedCountry:n,selectedGroup:a,stageIdFromPath:o}=t;return!e.length||e.length<=1?null:(0,s.jsx)(i.tUM,{type:"secondary",className:"filterOver filterOver--border filterOver--table",children:e.map(t=>{var e,{name:i,id:l}=t,d=o&&(null==n?void 0:n.id)===l?o:r.getStagePathByCountryIdAndByGroupId(l,null!=(e=null==a?void 0:a.id)?e:"");return(0,s.jsx)(u.p,{url:d,name:i,onClick:()=>r.storeSelectedTabs(null==a?void 0:a.id,l,d)},"country-"+l)})})}function m(t){var{getters:e,stages:r,selectedGroup:n,selectedCountry:a}=t;return(0,s.jsx)(i.tUM,{type:"secondary",className:"filterOver filterOver--border filterOver--table",children:r.map(t=>{var{name:r,id:i}=t;return(0,s.jsx)(u.p,{url:i,name:r,onClick:()=>e.storeSelectedTabs(null==n?void 0:n.id,null==a?void 0:a.id,i)},"stage-"+i)})})}},87050(t,e,r){r.d(e,{M:()=>u});var n=r(74848),s=r(96540),i=r(7877),a=r(99409);function o(){return o=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)({}
1).hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},o.apply(null,arguments)}function u(t){var e=o({},(function(t){if(null==t)throw new TypeError("Cannot destructure "+t)}(t),t)),u=(0,i.M_)(()=>Promise.resolve().then(r.bind(r,52330)));return(0,n.jsx)(s.Suspense,{fallback:(0,n.jsx)(a.d,{}),children:(0,n.jsx)(u,o({},e))})}}}]);
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.