1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[77293],{5966:e=>{e.exports={slide:"Slide_slide__VmKzy",slideDefault:"Slide_slideDefault__nIcZ5",live:"Slide_live__XUMk4",score:"Slide_score__VcX5X",mma:"Slide_mma__BpX2C",hockey:"Slide_hockey__TI8Q6",slideNoLink:"Slide_slideNoLink__6NKEW",detail:"Slide_detail__VjGeW",innerDetail:"Slide_innerDetail__A4tdJ",listItem:"Slide_listItem__SzRXd",last:"Slide_last__GP_Nt",liveMinute:"Slide_liveMinute__qOemX",blinkIn:"Slide_blinkIn__jssZ_",versus:"Slide_versus__HR7nV",team:"Slide_team___ijlq",trackbox:"Slide_trackbox__qW3MX",track:"Slide_track__XVgps",line:"Slide_line__iKMyn",name:"Slide_name__iHlOw"}},14650:e=>{e.exports={matchCarousel:"MatchCarousel_matchCarousel__L4qE7",homePage:"MatchCarousel_homePage__sDs0_",hasBranding:"MatchCarousel_hasBranding__vFSgN",header:"MatchCarousel_header__3ZM72",title:"MatchCarousel_title__777eK",filter:"MatchCarousel_filter__fzaPs",filters:"MatchCarousel_filters__gxHu7",icon:"MatchCarousel_icon__lZRwC",select:"MatchCarousel_select__730G_",slider:"MatchCarousel_slider__ZW90i",slide:"MatchCarousel_slide__AbwDo",slideHome:"MatchCarousel_slideHome__hfLhx",container:"MatchCarousel_container__nHIQU"}},74052:(e,a,t)=>{"use strict";t.d(a,{H:()=>r});var s=t(60004);function r(e){let a=(0,s.useRef)(e);return(0,s.useEffect)(()=>{null!=e&&(a.current=e)}),a.current}},77293:(e,a,t)=>{"use strict";t.r(a),t.d(a,{MatchCarousel:()=>K});var s=t(60072),r=t(60004),o=t(21115),l=t.n(o),i=t(53556),n=t(86419),c=t.n(n),m=t(10366),d=t(96848),_=t(10306),u=t(57222),h=t(87520),g=t(74052),p=t(1510),x=t(12519),f=t(39626),C=t(96857),N=t.n(C),v=t(11137),j=t.n(v),k=t(7524),M=t.n(k),b=t(7727),S=t(33354),y=t(45078),w=t(83055),L=t(2255),T=t(10983),B=t(65059),I=t(46883),H=t(84650),W=t.n(H);function R({label:e,value:a,bookmakerLogoUrl:t,href:r}){let o=(0,s.jsxs)(s.Fragment,{children:[t&&(0,s.jsx)("span",{className:W().coefChipLogo,"aria-hidden":!0,children:(0,s.jsx)(L._,{src:t,alt:"",width:20,height:20,layout:"fixed"})}),(0,s.jsx)("span",{className:W().coefLabel,children:e}),(0,s.jsx)("span",{className:W().coefValue,children:a??"â"})]});return r?(0,s.jsx)(p.N,{href:r,target:"_blank",className:W().coefChip,onClick:e=>e.stopPropagation(),children:o}):(0,s.jsx)("div",{className:W().coefChip,children:o})}let E={[y.N.HOCKEY]:"hockey",[y.N.FOOTBALL]:"ball"};function O({logoSrc:e,sportSlug:a}){if(e)return(0,s.jsx)(L._,{src:e,alt:"",width:24,height:24,layout:"fixed",className:c()(W().teamLogo,W().teamLogoImg)});let t=E[a||y.N.FOOTBALL];return(0,s.jsx)(B.I,{icon:t,size:24,className:c()(W().teamLogo,W().placeholderIcon),"aria-hidden":!0})}function A({teamHome:e,teamAway:a,state:t,league:r,leagueHref:o,matchHref:l,scoreHome:i,scoreAway:n,status:d,dateUnderTime:_,eventText:u,penaltyMainScore:g,leagueImageUrl:p,bookmakerLogoUrlT1:x,bookmakerLogoUrlX:f,bookmakerLogoUrlT2:C,bookmakerPromoUrlT1:N,bookmakerPromoUrlX:v,bookmakerPromoUrlT2:j,teamHomeLogoUrl:k,teamAwayLogoUrl:M,coefficientT1:b,coefficientX:y,coefficientT2:w,sportSlug:L,promoButtonText:H,promoButtonUrl:E,promoButtonIcon:D,promoButtonBgColor:z,promoButtonTextColor:U,className:P,isShowCoef:$=!0,isMatchOfTheDay:F=!1,isShowPenaltyMainScore:G=!1,isCompact:V=!1}){let X=(0,T.useRouter)(),{t:K}=(0,m.Bd)("layout"),q=void 0!==i&&void 0!==n&&"â"!==i&&"â"!==n,Q=t===S.r.IN_PROGRESS||t===S.r.BREAK,Z=t===S.r.NOT_STARTED,Y=t===S.r.FINISHED,J=t===S.r.CANCELLED,ee=(0,s.jsxs)("div",{className:c()(W().root,{[W().rootMatchDay]:F},{[W().rootCompact]:V},P),"data-state":t,children:[F&&p&&(0,s.jsx)("div",{className:W().matchDayBg,style:{backgroundImage:`url(${p})`},"aria-hidden":!0}),r&&(0,s.jsx)("div",{className:W().leagueRow,children:o?(0,s.jsx)("a",{href:o,className:W().leagueBadge,onClick:e=>e.stopPropagation(),children:r}):(0,s.jsx)("span",{className:W().leagueBadge,children:r})}),(0,s.jsxs)("div",{className:W().teamsRow,children:[(0,s.jsxs)("div",{className:W().teamBlock,children:[(0,s.jsx)(O,{logoSrc:k,sportSlug:L}),(0,s.jsx)("span",{className:W().teamName,children:e})]}),(0,s.jsxs)("div",{className:W().centerBlock,children:[Z&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:W().time,children:d}),_&&(0,s.jsx)("span",{className:W().dateUnderTime,children:_})]}),Q&&(0,s.jsxs)(s.Fragment,{children:[q&&(0,s.jsxs)("span",{className:W().score,"data-live":!0,children:[i,":",n]}),d&&(0,s.jsxs)("div",{className:W().matchStatus,children:[(0,s.jsx)("span",{className:W().statusText,children:d}),(0,s.jsx)(B.I,{icon:"translation",size:14,className:W().liveIcon})]}),(0,h.z2)(u)&&(0,s.jsx)("span",{className:W().eventText,children:u}),G&&g&&(0,s.jsx)("span",{className:W().penaltyMainScore,children:g})]}),Y&&(0,s.jsxs)(s.Fragment,{children:[q&&(0,s.jsxs)("span",{className:W().score,children:[i,":",n]}),d&&(0,s.jsx)("div",{className:W().matchStatusGameOver,children:(0,s.jsx)("span",{className:W().statusTextGameOver,children:d})}),G&&g&&(0,s.jsx)("span",{className:W().penaltyMainScore,children:g})]}),J&&(0,s.jsx)("div",{className:W().matchStatusGameOver,children:(0,s.jsx)("span",{className:W().statusTextCanceled,children:d||K("footballCancelled")})})]}),(0,s.jsxs)("div",{className:W().teamBlock,children:[(0,s.jsx)(O,{logoSrc:M,sportSlug:L}),(0,s.jsx)("span",{className:W().teamName,children:a})]})]}),$&&(0,s.jsxs)("div",{className:c()(W().coefRow,{[W().coefRowMatchDay]:F}),children:[(0,s.jsx)(R,{label:K("P1"),value:b,bookmakerLogoUrl:x,href:N}),(0,s.jsx)(R,{label:K("Px"),value:y,bookmakerLogoUrl:f,href:v}),(0,s.jsx)(R,{label:K("P2"),value:w,bookmakerLogoUrl:C,href:j})]}),(0,h.z2)(H)&&(0,h.z2)(E)&&"metaratings.ru".endsWith(".kz")&&(0,s.jsx)(I.a,{text:H,url:E,icon:D,bgColor:z,textColor:U,className:W().promoButton})]});return l?(0,s.jsx)("div",{onClick:()=>{X.push(l)},className:W().cardLink,role:"link",children:ee}):ee}var D=t(5966),z=t.n(D);let U="/images/placeholders/team.svg",P=({events:e,appearance:a,isLazy:t=!0,isCompact:o=!1})=>{let{serverTimezone:l,lang:i}=(0,w.Ym)(),{t:n}=(0,m.Bd)("layout"),d=(0,r.useRef)(null),_=(0,r.useRef)(null),[u,g]=(0,r.useState)(e.tournament?.name);(0,r.useEffect)(()=>{g(e.tournament?.name)},[e.id,e.tournament?.name]);let x="inprogress"===e.status,f="inprogress"===e.status||"finished"===e.status,C=(0,h.z2)(e.url)&&(0,h.z2)(e.slug)&&"4"===e.sport.id,v=c()(z().slide,{[z().isLazy]:t,[z().slideDefault]:"default"===a,[z().slideNoLink]:!C});if((0,r.useEffect)(()=>{let a=d.current,t=_.current;if(!a||!e.tournament?.name||!t)return;u||g(e.tournament.name);
1let s=(parseFloat(getComputedStyle(a).fontSize)+1.5)*3,r=(0,h.Ie)(e.tournament?.category)?"":` ${e.tournament.category}: `;if(a.scrollHeight>s){let e=u.split(" ");for(;a.scrollHeight>s&&e.length>0;)e=e.slice(0,-1),t.innerText=`${r}${e.join(" ").trim()}...`;g(`${e.join(" ").trim()}...`)}},[e.tournament?.name,e.tournament.category]),"home"===a){let a=function(e,a,t,s){let r=e.status||S.r.NOT_STARTED,o=r===S.r.IN_PROGRESS||r===S.r.BREAK,l=r===S.r.FINISHED,i=r===S.r.CANCELLED,n=!i&&!l&&(null!=e.coefficient_t1||null!=e.coefficient_x||null!=e.coefficient_t2),c="";if(o){var m,d;let t,s;m=e.game_minute,d=e.periods_progress,t=Number(d?.[1]??0),s=Number(d?.[0]??0),c=t>0?m?`${a("2ndHalf")} ${m}'`:a("2ndHalf"):s>0?m?`${a("1stHalf")} ${m}'`:a("1stHalf"):a("footballHt")}else l?c=a("footballFinished"):i?c=a("footballCancelled"):(N().extend(M()),N().extend(j()),c=N()(e.start_date).tz(t).format("HH:mm"));let _=!!e.regular_time_score,u=e.sport?.slug===y.N.HOCKEY?y.N.HOCKEY:y.N.FOOTBALL,h=u===y.N.FOOTBALL,g=h&&e.tournament?.slug&&e.sport?.slug?`/match-center/${e.sport.slug}/tournaments/${e.tournament.slug}/`:void 0,p=h?(o||l)&&e.url?`${e.url.replace(/\/$/,"")}/online/`:e.url:void 0;return{teamHome:e.teamHome?.name||"",teamAway:e.teamAway?.name||"",state:r,league:e.tournament?.name,leagueHref:g,matchHref:p,scoreHome:e.score?.[0],scoreAway:e.score?.[1],status:c,dateUnderTime:r===S.r.NOT_STARTED?(0,b.i)(e.start_date,"date",t,s):void 0,isShowPenaltyMainScore:_,penaltyMainScore:e.regular_time_score,isShowCoef:n,bookmakerLogoUrlT1:e.bookmaker_mini_logo_t1,bookmakerLogoUrlX:e.bookmaker_mini_logo_x,bookmakerLogoUrlT2:e.bookmaker_mini_logo_t2,bookmakerPromoUrlT1:e.bookmaker_promo_url_t1,bookmakerPromoUrlX:e.bookmaker_promo_url_x,bookmakerPromoUrlT2:e.bookmaker_promo_url_t2,teamHomeLogoUrl:e.teamHome?.preview,teamAwayLogoUrl:e.teamAway?.preview,coefficientT1:e.coefficient_t1,coefficientX:e.coefficient_x,coefficientT2:e.coefficient_t2,sportSlug:u,promoButtonText:e.promo_button_text,promoButtonUrl:e.promo_button_url,promoButtonIcon:e.promo_button_icon,promoButtonBgColor:e.promo_button_bg_color,promoButtonTextColor:e.promo_button_text_color}}(e,n,l,i);return(0,s.jsx)("div",{className:v,children:(0,s.jsx)(A,{...a,isCompact:o})})}let k=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:c()(z().detail,z().innerDetail),children:[x&&(0,s.jsx)("span",{className:z().live,children:"Live"}),(0,s.jsx)("div",{className:z().listItem,children:e.sport.name}),!x&&(0,s.jsx)("div",{className:z().listItem,children:(0,b.i)(e.start_date,"time",l,i)}),(0,h.z2)(e.tournament)&&(0,s.jsxs)("div",{className:z().listItem,ref:_,children:[(0,h.z2)(e.tournament?.category)&&`${e.tournament.category}:`," ",u]})]}),x&&(0,h.z2)(e.game_minute)&&(0,s.jsx)("div",{className:z().liveMinute,children:e.game_minute}),(0,s.jsxs)("div",{className:z().versus,children:[(0,s.jsx)(L._,{className:z().team,src:e.teamHome?.preview||U,alt:e.teamHome?.name||e.name,width:48,height:48,layout:"fixed",priority:!t}),(0,s.jsxs)("div",{className:z().score,children:[(0,h.z2)(e.score)&&f?`${e.score[0]} : ${e.score[1]}`:"- : -",x&&(0,h.z2)(e.periods_progress)&&(0,s.jsx)("div",{className:z().trackbox,children:e.periods_progress.map(e=>(0,s.jsx)("div",{className:z().track,children:(0,s.jsx)("div",{className:z().line,style:{width:`${e}%`}})}))})]}),(0,s.jsx)(L._,{className:z().team,src:e.teamAway?.preview||U,alt:e.teamAway?.name||e.name,width:48,height:48,layout:"fixed",priority:!t})]}),(0,h.z2)(e.teamHome)&&(0,h.z2)(e.teamAway)&&(0,s.jsx)("div",{className:z().name,children:e.teamHome?.name&&e.teamAway?.name?`${e.teamHome.name} - ${e.teamAway.name}`:e.name})]});return C?(0,s.jsx)(p.N,{href:e.url||"",className:v,children:k}):(0,s.jsx)("div",{className:v,children:k})};var $=t(14650),F=t.n($),G=t(40546);let V=(0,G.J1)` 2 query MatchCenterEvents($sport: [EventSports]) { 3 events: eventsSimple(first: 10, topHome: true, sport: $sport) { 4 data { 5 id 6 slug 7 name 8 status 9 score 10 url 11 tournament { 12 name 13 category 14 slug 15 url 16 logo { 17 url 18 } 19 } 20 start_date 21 game_minute 22 periods_progress 23 24 coefficient_t1 25 coefficient_x 26 coefficient_t2 27 bookmaker_mini_logo_t1 28 bookmaker_mini_logo_x 29 bookmaker_mini_logo_t2 30 bookmaker_promo_url_t1 31 bookmaker_promo_url_x 32 bookmaker_promo_url_t2 33 regular_time_score 34 35 sport { 36 name 37 id 38 slug 39 } 40 41 teamAway { 42 id 43 name 44 preview 45 } 46 47 teamHome { 48 id 49 name 50 preview 51 } 52 } 53 } 54 } 55`,X=l()(()=>Promise.all([t.e(63616),t.e(69616)]).then(t.bind(t,69616)),{loadableGenerated:{webpack:()=>[69616]},ssr:!1}),K=({title:e="ÐаÑÑ-ÑенÑÑ",detailPageUrl:a="/match-center/football/",events:t,perView:o=3,appearance:l="default"})=>{let n,C=(e,a=!1)=>e.map((e,t)=>t>1?(0,s.jsx)(d.A,{whenVisible:!0,children:(0,s.jsx)(P,{appearance:l,events:e,isLazy:!0,isCompact:a},e.id)}):(0,s.jsx)(P,{appearance:l,events:e,isLazy:!1,isCompact:a},t)),N="home"===l,v=N?"BRAND_MC_BLOCK_MAIN":void 0,j=(0,r.useContext)(_.BR).banners,k=!!(v&&!(0,h.Ie)((0,u.fq)(j||[],v))),M=(n=[],(t||[]).map(e=>e.sport).filter(function(e){return!n.includes(e.id)&&(n.push(e.id),!0)})),[b,S]=(0,r.useState)(void 0),[y,w]=(0,r.useState)(C(t||[],k)),[L,{loading:T,data:B}]=(0,i._)(V,{variables:{},ssr:!1}),I=(0,g.H)(B?.events?.data);(0,r.useEffect)(()=>{(0,h.Ie)(B?.events?.data)||w(C(B.events.data??I,k))},[B]),(0,r.useEffect)(()=>{void 0!==b&&L({variables:(0,h.Ie)(b)?{}:{sport:b.toUpperCase()}})},[b]);let{t:H}=(0,m.Bd)("layout");return t?(0,s.jsxs)("div",{className:c()(F().matchCarousel,{[F().hasBranding]:k,[F().homePage]:N}),children:[T&&(0,s.jsx)(X,{}),!(0,h.Ie)(v)&&(0,s.jsx)(x.A,{type:v}),(0,s.jsxs)("div",{className:N?"container":"",children:[(0,s.jsx)("header",{className:F().header,children:(0,s.jsx)(p.N,{href:a,className:F().title,children:e})}),N&&(0,s.jsxs)("nav",{className:F().filters,children:[(0,s.jsx)("button",{className:c()(F().filter,{[F().select]:(0,h.Ie)(b)}),onClick:e=>S(""),children:H("all")}),M.length>1&&(0,s.jsx)(s.Fragment,{children:M.sort(function(e,a){return e.name>a.name?1:e.name<a.name?-1:0}).map((e,a)=>(0,s.jsx)("button",{className:c()(F().filter,{[F().select]:b===e.slug}),onClick:a=>S(e.slug||""),children:e.name},a))})]}),(0,s.jsx)(f.F,{slides:y,sliderParams:((e,a=!1)=>a?{loop:!1,mode:"free",slides:{perView:"auto",spacing:16}}:{loop:!1,slides:{perView:"auto",spacing:16},breakpoints:{"(max-width: 1099px)":{mode:"free",slides:{perView:3,spacing:16}},"(max-width: 640px)":{mode:"free",slides:{perView:"auto",spacing:16}},"(min-width: 1100px)":{slides:{perView:e,spacing:16}}}})(o,N),sliderClasses:{wrapperClasses:F().slider,containerClasses:F().container,slidesClasses:c()(F().slide,{[F().slideHome]:N})},moreSlideUrl:a,moreSlideText:H("MoreMatches"),arrows:!0,isLazy:!1})]})]}):null}},84650:e=>{e.exports={cardLink:"MatchWidgetCard_cardLink__Pj_a_",root:"MatchWidgetCard_root__hkZhE",rootMatchDay:"MatchWidgetCard_rootMatchDay__HrkYS",match
55DayBg:"MatchWidgetCard_matchDayBg__XDBLG",teamLogo:"MatchWidgetCard_teamLogo__FTUE6",teamLogoImg:"MatchWidgetCard_teamLogoImg__oRvu4",leagueRow:"MatchWidgetCard_leagueRow__OZOcw",leagueBadge:"MatchWidgetCard_leagueBadge__LQ6_v",teamsRow:"MatchWidgetCard_teamsRow__lSeCf",teamBlock:"MatchWidgetCard_teamBlock__K7edc",placeholderIcon:"MatchWidgetCard_placeholderIcon__66_Ok",teamName:"MatchWidgetCard_teamName__rdjxL",centerBlock:"MatchWidgetCard_centerBlock__FgprA",score:"MatchWidgetCard_score__RU1_a",time:"MatchWidgetCard_time__0ycru",dateUnderTime:"MatchWidgetCard_dateUnderTime__ATK9q",matchStatus:"MatchWidgetCard_matchStatus__grta_",statusText:"MatchWidgetCard_statusText__nd6Jj",liveIcon:"MatchWidgetCard_liveIcon__0Fy_H",matchStatusGameOver:"MatchWidgetCard_matchStatusGameOver__z3BNs",statusTextGameOver:"MatchWidgetCard_statusTextGameOver__FqsOf",statusTextCanceled:"MatchWidgetCard_statusTextCanceled__sIx0h",eventText:"MatchWidgetCard_eventText__teLl8",penaltyMainScore:"MatchWidgetCard_penaltyMainScore__kQRvu",coefRow:"MatchWidgetCard_coefRow__dpm7P",coefChipLogo:"MatchWidgetCard_coefChipLogo__Qtu9Q",coefChip:"MatchWidgetCard_coefChip__5vDK_",coefLabel:"MatchWidgetCard_coefLabel__tCWyf",coefValue:"MatchWidgetCard_coefValue__Ig0pD",coefRowMatchDay:"MatchWidgetCard_coefRowMatchDay__D0U65",promoButton:"MatchWidgetCard_promoButton__b5NT3",rootCompact:"MatchWidgetCard_rootCompact__zQe8c"}}}]);
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.