PageSourceSearch

https://www.fancode.com/fc-web-app/1790769440771/build/mobile/clie…-promotion.mobile.22c25fb6d40e825c.chunk.js

js fancode.com collected 2026-10-01 11:48:15 UTC 29,945 bytes, 115 lines download raw bytes

1"use strict";(self.webpackChunk_fancode_web_app=self.webpackChunk_fancode_web_app||[]).push([["9810"],{92539:function(e,t,o){o.d(t,{Z:()=>l});var n=o(52322),r=o(45818);let l=({size:e,color:t,containerStyles:o,...l})=>{let a=(0,n.jsx)("svg",{...l,viewBox:"0 0 24 24",fill:"currentColor",children:(0,n.jsx)("path",{d:"M15.1442 12L11 7.85582L9.95578 8.92502L13.0308 12L9.95578 15.075L11 16.1442L15.1442 12ZM21.5 11.9984C21.5 13.3123 21.2506 14.5473 20.752 15.7034C20.2533 16.8596 19.5765 17.8653 18.7217 18.7205C17.8669 19.5757 16.8616 20.2528 15.706 20.7517C14.5504 21.2506 13.3156 21.5 12.0017 21.5C10.6877 21.5 9.45268 21.2507 8.29655 20.752C7.1404 20.2533 6.13472 19.5766 5.2795 18.7217C4.42427 17.8669 3.74721 16.8617 3.24833 15.706C2.74944 14.5504 2.5 13.3156 2.5 12.0017C2.5 10.6878 2.74933 9.45273 3.248 8.2966C3.74667 7.14045 4.42342 6.13477 5.27825 5.27955C6.1331 4.42431 7.13834 3.74726 8.29398 3.24837C9.44959 2.74949 10.6844 2.50005 11.9983 2.50005C13.3122 2.50005 14.5473 2.74938 15.7034 3.24805C16.8596 3.74672 17.8652 4.42346 18.7205 5.2783C19.5757 6.13315 20.2527 7.13839 20.7516 8.29402C21.2505 9.44964 21.5 10.6844 21.5 11.9984Z",fill:"currentColor"})});return"number"==typeof e?(0,n.jsx)(r.t,{style:{...o,color:t},size:e,children:a}):(0,n.jsx)(r.q,{style:{...o,color:t},size:e,children:a})}},76546:function(e,t,o){o.d(t,{Z:()=>l});var n=o(52322),r=o(45818);let l=({size:e,color:t,containerStyles:o,...l})=>{let a=(0,n.jsx)("svg",{...l,viewBox:"0 0 24 24",fill:"currentColor",children:(0,n.jsx)("path",{d:"M9.39953 17.6538L8.3457 16.6L12.9457 12L8.3457 7.40002L9.39953 6.34619L15.0534 12L9.39953 17.6538Z",fill:"currentColor"})});return"number"==typeof e?(0,n.jsx)(r.t,{style:{...o,color:t},size:e,children:a}):(0,n.jsx)(r.q,{style:{...o,color:t},size:e,children:a})}},4061:function(e,t,o){o.d(t,{D:()=>n});let n=(e,t=100,o=setTimeout)=>{let n;return(...r)=>{clearTimeout(n),n=o(()=>{e(...r)},t)}}},7436:function(e,t,o){o.d(t,{Z:()=>c});var n=o(6368),r=o(65313),l=o(73803),a=o(2784),i=o(63964),s=o(43851);let c=a.memo(e=>{let{match:t,teamA:o,teamB:c}=e,u=(0,l._)(e,["match","teamA","teamB"]),m=(0,i.d)(),d=(0,a.useMemo)(()=>t&&(0,r._)((0,n._)({},t),{getImageSources:e=>m((0,n._)({},e,t.imageOptimizationProps))}),[t,m]),p=(0,a.useMemo)(()=>o&&(0,r._)((0,n._)({},o),{getLogoImageSources:e=>m((0,n._)({},e,o.imageOptimizationProps))}),[o,m]),h=(0,a.useMemo)(()=>c&&(0,r._)((0,n._)({},c),{getLogoImageSources:e=>m((0,n._)({},e,c.imageOptimizationProps))}),[c,m]);return a.createElement(s.qO,(0,n._)({match:d,teamA:p,teamB:h},u))})},56731:function(e,t,o){o.d(t,{Z:()=>m});var n=o(2784),r=o(19721),l=o(78943);let a=l.ZP.div.withConfig({displayName:"view-all-card.styled__ViewAllCardContainer",componentId:"sc-c20ebed9-0"})(["display:flex;justify-content:center;align-items:center;height:100%;width:100%;"]),i=l.ZP.div.withConfig({displayName:"view-all-card.styled__ViewAllContent",componentId:"sc-c20ebed9-1"})(["display:flex;flex-direction:column;
1cursor:pointer;align-items:center;"]);var s=o(1038),c=o(43851),u=o(92539);let m=n.memo(e=>{let t=(0,s.z)();return n.createElement(a,null,e.viewMoreLink?n.createElement(r.Z,{to:e.viewMoreLink,onClick:()=>{e.onClick&&e.onClick()}},n.createElement(i,null,n.createElement(u.Z,{color:t.palette.fc_colour_icon_neutralMedium,size:40}),n.createElement(c.WU,{typography:"fc_text_inlinelink_2",color:t.palette.fc_colour_text_neutralMedium,numberOfLines:1,whiteSpace:"nowrap",testId:"view-all-card-text"},"See All"))):null)})},86553:function(e,t,o){o.r(t),o.d(t,{default:()=>ed});var n=o(70850),r=o(8837),l=o(20253),a=o(24624),i=o(43851),s=o(80427),c=o(50094),u=o(6371),m=o(70038),d=o(56293),p=o(95517),h=o(2784),g=o(56731),T=o(76546),_=o(78943),f=o(19721);let v=_.ZP.div.withConfig({displayName:"tour-promotion-header.styled__SegmentTitle",componentId:"sc-341dd77-0"})(["z-index:1;"]),E=_.ZP.div.withConfig({displayName:"tour-promotion-header.styled__TourPromotionTitleGroupContainer",componentId:"sc-341dd77-1"})(["display:flex;flex-direction:column;"]),y=(0,_.ZP)(f.Z).withConfig({displayName:"tour-promotion-header.styled__TourPromotionTitleContainerLine1",componentId:"sc-341dd77-2"})(["display:flex;flex-direction:row;align-items:center;justify-content:flex-start;"]),S=(0,_.ZP)(y).withConfig({displayName:"tour-promotion-header.styled__TourPromotionTitleContainerLine2",componentId:"sc-341dd77-3"})(["max-width:45vw;@media ","{max-width:58vw;}"],a.Ak.MOBILE),C=_.ZP.div.withConfig({displayName:"tour-promotion-header.styled__TourPromotionTitle",componentId:"sc-341dd77-4"})(["color:",";cursor:pointer;position:relative;"],({theme:e})=>e.palette.fc_colour_text_neutralMedium),P=_.ZP.div.withConfig({displayName:"tour-promotion-header.styled__ChevronIcon",componentId:"sc-341dd77-5"})(["cursor:pointer;position:relative;display:flex;align-items:center;justify-content:center;color:",";"],({theme:e})=>e.palette.fc_colour_icon_neutralLight),A=(0,_.ZP)(i.J$.Container).withConfig({displayName:"tour-promotion-header.styled__SegmentTitleContainer",componentId:"sc-341dd77-6"})(["display:flex;flex-direction:column;@media ","{gap:0;}@media ","{gap:",";}@media ","{gap:",";}@media ","{gap:",";}"],a.Ak.MOBILE,a.Ak.TABLET,({theme:e})=>e.measures.spacing_xs,a.Ak.SMALL_DESKTOP,({theme:e})=>e.measures.spacing_xs,a.Ak.LARGE_DESKTOP,({theme:e})=>e.measures.spacing_sm),I={mobile:"24px",tablet:"32px",desktopSmall:"48px",desktopLarge:"48px"},w=e=>{var t,o;let n=(0,_.Fg)(),r=(0,l.Ij)({componentName:"tourPromotionHeader"},"tourPromotionTitleSplitFirstContainer","tourPromotionTitleSplitFirst","tourPromotionTitleSplitSecondContainer","tourPromotionTitleSplitSecond","titleChevronIcon","tourPromotionHeaderSegmentTitle");return h.createElement(A,null,h.createElement(v,null,h.createElement(i.WU,{color:n.palette.fc_colour_icon_neutralMedium,typography:"fc_text_overline",transform:"uppercase",testId:r.tourPromotionHeaderSegmentTitle,numberOfLines:1},(0,u.Pm)(e.segmentTitle)?e.segmentTitle:"")),h.createElement(E,null,h.createElement(y,{to:null!=(t=e.tourPageUrl)?t:"",testId:r.tourPromotionTitleSplitFirstContainer,onClick:e.onTitleClickCallback},h.createElement(C,null,h.createElement(i.WU,{color:n.palette.fc_colour_text_neutralDark,typography:"fc_text_display_4",testId:r.tourPromotionTitleSplitFirst,numberOfLines:1},e.tourTitleSplit.first)),!e.tourTitleSplit.second&&h.createElement(P,null,h.createElement(T.Z,{color:n.palette.fc_colour_icon_neutralDark,size:I}))),e.tourTitleSplit.second&&h.createElement(S,{to:null!=(o=e.tourPageUrl)?o:"",testId:r.tourPromotionTitleSplitSecondContainer,onClick:e.onTitleClickCallback},h.createElement(C,null,h.createElement(i.WU,{color:n.palette.fc_colour_text_neutralDark,typography:"fc_text_display_4",testId:r.tourPromotionTitleSplitSecond,numberOfLines:1,ellipsis:!0},e.tourTitleSplit.second)),h.createElement(P,null,h.createElement(T.Z,{color:n.palette.fc_colour_icon_neutralMedium,size:I,"data-testid":r.titleChevronIcon})))))};var D=o(22706);let b=e=>{if(!e)return i.lw.UPCOMING;switch(e){case D.GpV.ABANDONED:case D.GpV.COMPLETED:return i.lw.COMPLETED;case D.GpV.LIVE:return i.lw.LIVE;case D.GpV.NOT_STARTED:case D.GpV.PRE_LIVE:default:return i.lw.UPCOMING}};var L=o(7436);let x=h.memo(e=>{var t,o,n,r,a,i,s,c,u,m;let d=(0,l.Ij)({componentName:"tourPromotionMatchCard"},"matchCard"),{matchTime:p,matchDate:g}=(0,h.useMemo)(()=>{var t,o;let n=null==(o=e.matchData)||null==(t=o.match)?void 0:t.startTime;if(!n)return{matchTime:"",matchDate:""};try{let e=new Date(n);return{matchTime:e.toLocaleTimeString("en-US",{hour:"numeric",minute:"numeric"}),matchDate:e.toLocaleDateString("en-US",{dateStyle:"medium"})}}catch(e){return console.error("Error parsing match start time:",e),{matchTime:"",matchDate:""}}},[null==(o=e.matchData)||null==(t=o.match)?void 0:t.startTime]),T=(0,h.useCallback)(()=>
1{e.onMatchCardClick(e.matchData)},[e.matchData,e.onMatchCardClick]),_=(0,h.useMemo)(()=>{var t,o,n,r,l,a,i,s,c,u,m,h,_,f,v,E,y,S,C,P,A,I,w,L,x,k,M,N,O,R,Z,z;let U=null!=(x=null==(o=e.matchData)||null==(t=o.match)?void 0:t.teams)?x:[],$=null!=(k=null==(n=e.matchData)?void 0:n.teamsScore)?k:[],B=(null==(a=e.matchData)||null==(l=a.match)||null==(r=l.sport)?void 0:r.type)===D.PkL.DUAL_TEAM;return{testId:d.matchCard,state:b(null==(s=e.matchData)||null==(i=s.status)?void 0:i.status),teamA:{name:null!=(M=null==(c=U[0])?void 0:c.name)?M:"",hasLost:!(null==(u=$[0])?void 0:u.isWinner),imageSource:null!=(N=null==(m=U[0])?void 0:m.logo)?N:""},teamB:B&&U.length>1?{name:null!=(O=null==(h=U[1])?void 0:h.name)?O:"",hasLost:!(null==(_=$[1])?void 0:_.isWinner),imageSource:null!=(R=null==(f=U[1])?void 0:f.logo)?R:""}:void 0,match:{id:null==(E=e.matchData)||null==(v=E.match)?void 0:v.id,name:null!=(Z=null==(S=e.matchData)||null==(y=S.match)?void 0:y.name)?Z:"",startTimeText:p,startDateText:g,imageSource:null!=(z=null==(P=e.matchData)||null==(C=P.features)?void 0:C.bgImageUrl)?z:"",imageOptimizationProps:{position:"top"}},onClick:T,showFreeTag:(null==(I=e.matchData)||null==(A=I.features)?void 0:A.streamAuthorizationType)===D.MvF.AUTH||(null==(L=e.matchData)||null==(w=L.features)?void 0:w.streamAuthorizationType)===D.MvF.NONE,style:{width:"100%",zIndex:0}}},[d.matchCard,null==(r=e.matchData)||null==(n=r.status)?void 0:n.status,null==(a=e.matchData)?void 0:a.match,null==(i=e.matchData)?void 0:i.teamsScore,null==(c=e.matchData)||null==(s=c.features)?void 0:s.streamAuthorizationType,null==(m=e.matchData)||null==(u=m.features)?void 0:u.bgImageUrl,p,g,T]);return h.createElement(L.Z,_)});var k=o(93244),M=o(5046),N=o(84929),O=o(45797);let R=_.ZP.div.withConfig({displayName:"tour-promotion.styled__TourPromotionContainer",componentId:"sc-86c31ca3-0"})(["position:relative;display:flex;flex-direction:column;justify-content:flex-end;overflow:hidden;width:100%;aspect-ratio:16 / 7;@media ","{aspect-ratio:360/356;}@media ","{aspect-ratio:1.7777;}padding-top:",";gap:",";@media ","{padding-top:",";gap:",";}@media ","{padding-top:",";gap:",";}@media ","{padding-top:",";gap:",";}"],a.Ak.MOBILE,a.Ak.TABLET,({theme:e})=>e.measures.spacing_lg,({theme:e})=>e.measures.spacing_md,a.Ak.TABLET,({theme:e})=>e.measures.spacing_3xl,({theme:e})=>e.measures.spacing_lg,a.Ak.SMALL_DESKTOP,({theme:e})=>e.measures.spacing_4xl,({theme:e})=>e.measures.spacing_2xl,a.Ak.LARGE_DESKTOP,({theme:e})=>e.measures.spacing_5xl,({theme:e})=>e.measures.spacing_2xl),Z=_.ZP.div.withConfig({displayName:"tour-promotion.styled__TourPromotionLinearGradient",componentId:"sc-86c31ca3-1"})(["position:absolute;top:0;left:0;width:100%;height:100%;background:",";@media ","{background:",";}"],({theme:e})=>`linear-gradient(
2              261deg, 
3              ${e.palette.fc_colour_surface_greyAlpha_00} 27.69%, 
4              ${e.palette.fc_colour_surface_greyAlpha_01} 38.51%, 
5              ${e.palette.fc_colour_surface_greyAlpha_02} 52.93%, 
6              ${e.palette.fc_colour_surface_elevation_00} 67.35%,
7              ${e.palette.fc_colour_surface_elevation_00} 85.38%, 
8              ${e.palette.fc_colour_surface_elevation_01} 99.8%)`,a.Ak.MOBILE,({theme:e})=>`linear-gradient(250deg, ${e.colors.fc_colour_surface_greyAlpha_00} 0%, ${e.colors.fc_colour_surface_greyAlpha_01} 54%, ${e.colors.fc_colour_surface_greyAlpha_04} 100%)`),z=_.ZP.div.withConfig({displayName:"tour-promotion.styled__TourPromotionRailLinearGradient",componentId:"sc-86c31ca3-2"})(["position:absolute;bottom:0;left:0;width:100%;height:50%;background:",";@media ","{height:70%;background:",";}"],({theme:e})=>`linear-gradient(180deg, ${e.palette.fc_colour_surface_greyAlpha_00} 0%, ${e.palette.fc_colour_surface_elevation_00} 71%)`,a.Ak.MOBILE,({theme:e})=>`linear-gradient(180deg, 
9                  ${e.colors.fc_colour_surface_greyAlpha_00} 0%,
10                  ${e.colors.fc_colour_surface_elevation_00} 44%,
11                  ${e.colors.fc_colour_surface_elevation_00} 100%)`),U=(0,_.ZP)(O.V).withConfig({displayName:"tour-promotion.styled__TourPromotionBgImage",componentId:"sc-86c31ca3-3"})(["position:absolute;top:0;right:0;width:82%;aspect-ratio:1313/ 740;background-size:cover;@media ","{width:100%;aspect-ratio:360 / 228;background-position:top;background-repeat:no-repeat;}@media ","{width:100%;aspect-ratio:1.777;background-position:top;background-repeat:no-repeat;}"],a.Ak.MOBILE,a.Ak.TABLET),$=(0,_.ZP)(i.J$.Item).withConfig({displayName:"tour-promotion.styled__SeeAllFlexGridItem",componentId:"sc-86c31ca3-4"})(["z-index:0;justify-content:center;align-items:center;"]),B=(0,_.ZP)(M.Z).withConfig({displayName:"tour-promotion.styled__TourPromotionPrevArrow",componentId:"sc-86c31ca3-5"})(["width:124px;@media ","{width:84px;}background:none;&::before{content:'';position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:106px;@media ","{width:84px;}aspect-ratio:1;border-radius:50%;background:",";
11opacity:0.1;filter:blur(22px);z-index:0;}> *{position:relative;z-index:1;}"],a.Ak.TABLET,a.Ak.TABLET,({theme:e})=>e.palette.fc_colour_surface_greyAlpha_02),F=(0,_.ZP)(N.Z).withConfig({displayName:"tour-promotion.styled__TourPromotionNextArrow",componentId:"sc-86c31ca3-6"})(["width:124px;@media ","{width:84px;}background:none;&::before{content:'';position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:106px;@media ","{width:84px;}aspect-ratio:1;border-radius:50%;background:",";opacity:0.8;filter:blur(22px);z-index:0;}> *{position:relative;z-index:1;}"],a.Ak.TABLET,a.Ak.TABLET,({theme:e})=>e.palette.fc_colour_surface_greyAlpha_02),G=_.ZP.div.withConfig({displayName:"tour-promotion-shimmer.styled__HeaderShimmerContainer",componentId:"sc-65dd4084-0"})(["display:flex;flex-direction:column;gap:",";position:relative;z-index:1;"],({theme:e})=>e.measures.spacing_sm),V=_.ZP.div.withConfig({displayName:"tour-promotion-shimmer.styled__SegmentTitleShimmer",componentId:"sc-65dd4084-1"})(["display:flex;align-items:center;"]),H=_.ZP.div.withConfig({displayName:"tour-promotion-shimmer.styled__TourTitleShimmer",componentId:"sc-65dd4084-2"})(["display:flex;align-items:center;"]),W=h.memo(()=>{let e=(0,n.d)();return h.createElement(R,null,h.createElement(i.J$.Container,{scrollable:!0,header:h.createElement(G,null,h.createElement(V,null,h.createElement(k.Z,{width:e?120:180,height:e?16:20,borderRadius:4,isStatic:!0})),h.createElement(H,null,h.createElement(k.Z,{width:e?200:400,height:e?24:32,borderRadius:4,isStatic:!0})))},Array(e?3:8).fill(null).map((e,t)=>h.createElement(i.J$.Item,{key:t,m:7,t:4,sd:3,ld:3},h.createElement(i.qO,{state:i.lw.LIVE,testId:`tour-promotion-match-card-shimmer-${t}`,showSkeleton:!0,style:{width:"100%"}})))))});var j=o(10038),q=o(70590),K=o(6821),J=o(6368),Y=o(17579);let X=["tourPromotionWidget"],Q=`fragment TourPromotionSport on FanSport {
12  slug
13  type
14}
15
16fragment TourPromotionTour on FanTour {
17  id
18  name
19  collectionId
20  collectionSlug
21  sport {
22    ...TourPromotionSport
23  }
24}
25
26fragment TourPromotionTeam on FanTeam {
27  id
28  name
29  logo
30  flag
31}
32
33fragment TourPromotionMatch on FanMatch {
34  id
35  name
36  startTime
37  teams {
38    ...TourPromotionTeam
39  }
40  sport {
41    ...TourPromotionSport
42  }
43}
44
45fragment TourPromotionMatchStatus on FanMatchStatus {
46  status
47}
48
49fragment TourPromotionTeamsScore on Squad {
50  isWinner
51}
52
53fragment TourPromotionMatchFeatures on FanMatchFeatures {
54  bgImageUrl
55  slug
56  streamAuthorizationType
57}
58
59fragment TourPromotionMatchData on CasaMatch {
60  match {
61    ...TourPromotionMatch
62  }
63  features {
64    ...TourPromotionMatchFeatures
65  }
66  status {
67    ...TourPromotionMatchStatus
68  }
69  teamsScore {
70    ...TourPromotionTeamsScore
71  }
72  tour {
73    collectionSlug
74    collectionId
75  }
76}
77
78fragment TourPromotionTourFeatures on FanTourFeatures {
79  bgImageWithoutLogo
80}
81
82fragment TourPromotionWidget on TourPromotion {
83  tour {
84    ...TourPromotionTour
85  }
86  tourFeatures {
87    ...TourPromotionTourFeatures
88  }
89  matches {
90    ...TourPromotionMatchData
91  }
92}
93
94query TourPromotionData($tourId: Int!, $filter: SegmentFilterNeo) {
95  tourPromotionWidget(tourId: $tourId, filter: $filter) {
96    ...TourPromotionWidget
97  }
98}
99        `,ee=(e,t)=>(0,Y.Uv)(t,(0,J._)({query:Q,operationName:"TourPromotionData",operationType:"query",sha256Hash:"1263b68751383bdb36219595a1db160ca6d41650a4b31796cd484dc53e178720",queryFieldNames:X},e));var et=o(65313),eo=o(27029);let en="TourPromotion",er=(0,eo.zI)(en,{tourPromotionData:null,loaded:!1,hasError:!1,showSeeAllButton:!1});var el=o(4830);let ea=(0,j.e9)(er,{mount:(e,t)=>e,onTourPromotionResponse:(e,t)=>{let o=(0,el.VZ)(t);if(!o){var n,r;if(null==t||null==(n=t.data)?void 0:n.data){let o=t.data.data.tourPromotionWidget;(null==o||null==(r=o.matches)?void 0:r.length)?(e.showSeeAllButton=o.matches.length>8,e.tourPromotionData=(0,et._)((0,J._)({},o),{matches:o.matches.slice(0,8)})):e.tourPromotionData=o}}return e.loaded=!0,e.hasError=o,e},navigateToMatchDetailScreen:(e,t)=>e,navigateToTourScreen:(e,t)=>e,trackEvent:(e,t)=>e});var ei=o(40511);let es=(0,j.X3)(ea,{mount:async(e,{globalState:t,state:o,actions:n})=>e.segment.linkedTourId?[{resultCallback:n.onTourPromotionResponse,ioAction:ee({variables:{tourId:e.segment.linkedTourId,filter:{collectionId:e.collectionData.id,segmentId:e.segment.id}}},t)}]:[],navigateToMatchDetailScreen:async e=>{var t,o,n,r,l;let a=(0,K.lj)({tourSlug:null==e||null==(t=e.tour)?void 0:t.collectionSlug,tourCollectionId:null==e?void 0:e.tour.collectionId,sportSlug:null==(n=e.match)||null==(o=n.sport)?void 0:o.slug,matchI
99d:null==(r=e.match)?void 0:r.id,matchSlug:null==(l=e.features)?void 0:l.slug,withBaseUrl:!1});return a?[{ioAction:(0,q.KS)({params:{target:q.m$.REACT_ROUTE,path:a}})}]:[]},trackEvent:async(e,{globalState:t})=>[{ioAction:(0,q.UI)({type:q.n7.TRACK,destinations:[q.D1.DATA_HIGHWAY],name:e.name,params:(0,ei.P)(e.params,t)})}]}),ec={mobile:"24px",tablet:"36px",desktopSmall:"48px",desktopLarge:"56px"},eu={display:"flex",alignItems:"center"},em=[{width:360,height:228,minScreenSize:a.nN.MOBILE},{width:768,height:432,minScreenSize:a.nN.TABLET},{width:1034,height:584,minScreenSize:a.nN.DESKTOP_SMALL},{width:1313,height:740,minScreenSize:a.nN.DESKTOP_LARGE}],ed=h.memo(e=>{var t,o,a,T,_,f,v,E,y,S;let[C,P,A]=(0,s.R3)(e.source+"/"+en+"/"+e.segment.id,es),I=(0,l.Ij)({componentName:"tourPromotion"},"bgImage","carouselContainer");(0,r.n)(C,P,()=>{(!P.loaded||P.loaded&&P.hasError)&&A.mount(e)},c.s$),(0,h.useEffect)(()=>{P.loaded&&P.hasError&&A.mount(e)},[P.loaded,P.hasError,e]);let D=(0,h.useMemo)(()=>{var e,t,o;let n=(null!=(o=null==P||null==(t=P.tourPromotionData)||null==(e=t.tour)?void 0:e.name)?o:"").trim().split(/\s+/);return n.length<=3?{first:n.join(" "),second:null}:{first:n.slice(0,2).join(" "),second:n.slice(2).join(" ")}},[null==P||null==(o=P.tourPromotionData)||null==(t=o.tour)?void 0:t.name]),b=(0,h.useMemo)(()=>{var e,t,o;return null!=(o=null==(t=P.tourPromotionData)||null==(e=t.matches)?void 0:e.filter(u.Pm))?o:[]},[null==(a=P.tourPromotionData)?void 0:a.matches]),L=(0,h.useCallback)(()=>{A.trackEvent({name:"SectionElementClicked",params:{elementName:"seeAll",elementType:"icon",sectionName:e.segment.title,sectionPosition:e.segmentPosition,style:"promoTourMatches"}})},[A,e.segment.title,e.segmentPosition]),k=(0,h.useCallback)(()=>{A.trackEvent({name:"SectionElementClicked",params:{elementName:"next",elementType:"icon",sectionName:e.segment.title,sectionPosition:e.segmentPosition,style:"promoTourMatches"}})},[A,e.segment.title,e.segmentPosition]),M=(0,h.useCallback)(()=>{A.trackEvent({name:"SectionElementClicked",params:{elementName:"previous",elementType:"icon",sectionName:e.segment.title,sectionPosition:e.segmentPosition,style:"promoTourMatches"}})},[A,e.segment.title,e.segmentPosition]),N=(0,h.useCallback)((t,o)=>{A.trackEvent({name:"SectionContentClicked",params:{itemId:`${t.match.id}`,itemName:t.match.name,itemPosition:o,itemStyle:"MiniCard",itemType:"MatchCard",sectionName:e.segment.title,sectionPosition:e.segmentPosition}})},[A,e.segment.title,e.segmentPosition]),O=(0,h.useCallback)((e,t)=>{var o,n;return h.createElement(i.J$.Item,{key:null!=(n=null==(o=e.match)?void 0:o.id)?n:t,m:7,t:4,sd:3,ld:3},h.createElement(x,{source:C,matchData:e,onMatchCardClick:()=>{N(e,t),A.navigateToMatchDetailScreen(e)}}))},[C]),G=(0,h.useMemo)(()=>{var e,t,o,n,r,l,a,i,s,c;return(0,p.w)({sportSlug:null!=(i=null==(o=P.tourPromotionData)||null==(t=o.tour)||null==(e=t.sport)?void 0:e.slug)?i:"",tourSlug:null!=(s=null==(r=P.tourPromotionData)||null==(n=r.tour)?void 0:n.collectionSlug)?s:"",tourCollectionId:null!=(c=null==(a=P.tourPromotionData)||null==(l=a.tour)?void 0:l.collectionId)?c:0,tabSlug:"matches"})},[null==(T=P.tourPromotionData)?void 0:T.tour]),V=(0,n.d)(),H=(0,h.useMemo)(()=>{var e,t;return!V&&(null==(e=P.tourPromotionData)||!e.matches||!((null==(t=P.tourPromotionData)?void 0:t.matches.length)<=4))},[V,null==(_=P.tourPromotionData)?void 0:_.matches]);return P.loaded&&(0,u.Ew)(b)?null:h.createElement(d.Z,{id:C},P.loaded?h.createElement(R,null,(null==P||null==(v=P.tourPromotionData)||null==(f=v.tourFeatures)?void 0:f.bgImageWithoutLogo)&&h.createElement(U,{src:P.tourPromotionData.tourFeatures.bgImageWithoutLogo,imageSizes:em,width:360,height:228,position:"right",alt:null!=(S=null==P||null==(y=P.tourPromotionData)||null==(E=y.tour)?void 0:E.name)?S:"tour-promotion",testId:I.bgImage}),h.createElement(Z,null),h.createElement(z,null),h.createElement(w,{segmentTitle:e.segment.title,tourTitleSplit:D,tourPageUrl:G,onTitleClickCallback:L}),h.createElement(m.Z,{testId:I.carouselContainer,prevArrow:V?null:h.createElement(B,{iconSize:ec}),nextArrow:V?null:h.createElement(F,{iconSize:ec}),nextArrowContainerStyle:eu,prevArrowContainerStyle:eu,showPrevNextIndicators:H,numberOfItems:4,onNextArrowClicked:k,onPrevArrowClicked:M},h.createElement(i.J$.Container,{scrollable:!0},b.map(O),P.showSeeAllButton?h.createElement($,{m:3,t:1,sd:1,ld:1},h.createElement(g.Z,{viewMoreLink:G,onClick:L})):null))):h.createElement(W,null))})},61971:function(e,t,o){o.d(t,{As:()=>m,G5:()=>d,Jb:()=>c,PB:()=>p,WG:()=>a,XS:()=>u,d0:()=>s});var n,r=o(25152);let l={"today-matches":"matches","results-matches":"matches","upcoming-matches":"matches","video-highlights":"videos","points-table":"int-points-table-v2"};var a=((n={}).OVERVIEW="overview",n.MATCHES="matches",n.NEWS="news",n.VIDEOS="videos",n.SOCIAL="social",n.NEWS_VIDEOS="news-videos",n.POINTS_TABLE="points-table",n.SQUAD="team-squad",n.LIVE_BLOG="live-blog",n.INT_POINTS_TABLE_V2="int-points-table-v2",n.RESULTS_MATCHES="results-matches",n.UPCOMMING_MATCHES="upcomming-matches",n.VIDEO_HIGHLIGHTS="video-highlights",n.SCHEDULE="schedule",n.STANDINGS="standings",n.KEY_MOMENTS="key-moments",n);let i=["matches","news","videos","int-points-table-v2","schedule","key-moments","overview","standings"],s=e=>null==e?void 0:e.filter(e=>i.includes(e.slug)),c=e=>e?l[e]||e:null,u={matches:"matches",videos:"video-highlights","int-points-table-v2":"points-table"},m=(e,t)=>
99(null!=t?t:[]).findIndex(t=>t.slug===e),d=e=>{var t;return`${(0,r.yT)((null==e||null==(t=e.sport)?void 0:t.name)||"sports")}-${(0,r.yT)((null==e?void 0:e.tour.name)||"tour")}${(0,r.yT)((null==e?void 0:e.name)||"match")}`},p=(e,t)=>[{text:"Home",targetUrl:"/",isActive:!0},{text:t,isActive:!1}]},6821:function(e,t,o){o.d(t,{cy:()=>c,lj:()=>m,x8:()=>u});var n,r,l=o(6368),a=o(22706),i=o(25152),s=o(10732),c=((n={}).OVERVIEW="overview",n.LIVE_MATCH_STREAMING="live-match-streaming",n.FANTASY="fantasy-dream11-predictions",n.SCORECARD="live-cricket-score",n.COMMENTARY="commentary",n.SQUAD="squad",n.KEY_MOMENTS="key-moments",n.NEWS="news",n.STANDINGS="standings",n.TIMELINE="timeline",n.GALLERY="gallery",n.HIGHLIGHTS="highlights",n.SCHEDULE="schedule",n.RESULTS="results",n.LIVE="live",n.VIDEOS="videos",n.POINT_TABLE="int-points-table-v2",n.MATCHES="matches",n.MATCH_INFO_OVERVIEW="live-match-info",n),u=((r={}).CRICKET="cricket",r.KABADDI="kabaddi",r.FOOTBALL="football",r.HOCKEY="hockey",r.FORMULA1="formula1",r.RACING="racing",r.MOTOGP="motogp",r.HORSE_RACING="horseracing",r);a.y0n.NOT_STARTED,a.y0n.STARTED,a.y0n.PAUSED,a.y0n.COMPLETED,a.y0n.NOT_STARTED,a.y0n.STARTED,a.y0n.PAUSED,a.y0n.COMPLETED,a.y0n.NOT_STARTED,a.y0n.STARTED,a.y0n.PAUSED,a.y0n.COMPLETED,a.y0n.NOT_STARTED,a.y0n.STARTED,a.y0n.PAUSED,a.y0n.COMPLETED,a.y0n.NOT_STARTED,a.y0n.STARTED,a.y0n.PAUSED,a.y0n.COMPLETED,a.y0n.NOT_STARTED,a.y0n.STARTED,a.y0n.PAUSED,a.y0n.COMPLETED,a.y0n.NOT_STARTED,a.y0n.STARTED,a.y0n.PAUSED,a.y0n.COMPLETED,a.y0n.NOT_STARTED,a.y0n.STARTED,a.y0n.PAUSED,a.y0n.COMPLETED,a.y0n.NOT_STARTED,a.y0n.STARTED,a.y0n.PAUSED,a.y0n.COMPLETED;let m=({sportSlug:e,tourSlug:t,tourCollectionId:o,matchSlug:n,matchId:r,withBaseUrl:a,tabSlug:c,countrySlug:u})=>t&&n&&r?i.Z5.MATCH_DETAILS.reverse((0,l._)({sportsSlug:null!=e?e:"sports",tourInfo:`${t}-${String(o)}`,matchInfo:`${n}
99-${String(r)}`,tabSlug:(0,s.VW)(c)},u?{countrySlug:u}:{}),null!=a&&a):""},95517:function(e,t,o){o.d(t,{w:()=>s});var n=o(6368),r=o(25152),l=o(61971),a=o(23523),i=o(6821);let s=e=>{var t;return r.Z5.TOUR.reverse((0,n._)({sportsSlug:e.sportSlug,tourInfo:`${e.tourSlug}-${e.tourCollectionId}`,tabSlug:null!=(t=e.tabSlug)?t:c(e.sportSlug)},e.countrySlug?{countrySlug:e.countrySlug}:{}))},c=e=>{switch(e){case a.D.RACING:case a.D.FORMULA1:case a.D.MOTOGP:return i.cy.SCHEDULE;default:return l.WG.MATCHES}}},84929:function(e,t,o){o.d(t,{Z:()=>i});var n=o(2784),r=o(78943);let l=r.ZP.div.withConfig({displayName:"next-arrow.styled__ArrowContainer",componentId:"sc-567c2d2b-0"})(["display:flex;justify-content:center;align-items:center;width:124px;height:100%;"]);var a=o(76546);let i=n.memo(e=>{let t=(0,r.Fg)(),o=(0,n.useMemo)(()=>{var t;return null!=(t=e.iconSize)?t:{mobile:"24px",tablet:"44px",desktopSmall:"48px",desktopLarge:"56px"}},[e.iconSize]);return n.createElement(l,{className:e.className,style:e.containerStyle},n.createElement(a.Z,{color:t.palette.fc_colour_icon_neutralDark,size:o}))})},5046:function(e,t,o){o.d(t,{Z:()=>c});var n=o(2784),r=o(78943);let l=r.ZP.div.withConfig({displayName:"prev-arrow.styled__ArrowContainer",componentId:"sc-895e76c4-0"})(["display:flex;justify-content:center;align-items:center;width:124px;height:100%;"]);var a=o(52322),i=o(45818);let s=({size:e,color:t,containerStyles:o,...n})=>{let r=(0,a.jsx)("svg",{...n,viewBox:"0 0 24 24",fill:"currentColor",children:(0,a.jsx)("path",{d:"M13.9995 17.6538L8.3457 12L13.9995 6.34619L15.0534 7.40002L10.4534 12L15.0534 16.6L13.9995 17.6538Z",fill:"currentColor"})});return"number"==typeof e?(0,a.jsx)(i.t,{style:{...o,color:t},size:e,children:r}):(0,a.jsx)(i.q,{style:{...o,color:t},size:e,children:r})},c=n.memo(e=>{let t=(0,r.Fg)(),o=(0,n.useMemo)(()=>{var t;return null!=(t=e.iconSize)?t:{mobile:"24px",tablet:"44px",desktopSmall:"48px",desktopLarge:"56px"}},[e.iconSize]);return n.createElement(l,{className:e.className,style:e.containerStyle},n.createElement(s,{color:t.palette.fc_colour_icon_neutralDark,size:o}))})},70038:function(e,t,o){o.d(t,{Z:()=>p});var n=o(6368),r=o(65313),l=o(4061),a=o(2784),i=o(84929),s=o(5046),c=o(78943);let u=c.ZP.button.withConfig({displayName:"carousel-v3-styled__PrevArrowContainer",componentId:"sc-df3cb09f-0"})(["position:absolute;height:100%;z-index:3;opacity:0;transition:opacity 0.2s ease-in-out;"]),m=c.ZP.button.withConfig({displayName:"carousel-v3-styled__NextArrowContainer",componentId:"sc-df3cb09f-1"})(["position:absolute;height:100%;right:0;z-index:3;opacity:0;transition:opacity 0.2s ease-in-out;"]),d=c.ZP.div.withConfig({displayName:"carousel-v3-styled__CarouselV3Container",componentId:"sc-df3cb09f-2"})(["position:relative;",""],e=>e.showIndicatorAlways?`
100    ${u} {
101      opacity: 1;
102    }
103
104    ${m} {
105      opacity: 1;
106    }
107  `:`
108    &:hover ${u} {
109      opacity: 1;
110    }
111
112    &:hover ${m} {
113      opacity: 1;
114    }
115  `),p=a.memo(e=>{var t,o;let c=(0,a.useRef)(null),p=(0,a.useRef)(null),h=(0,a.useRef)(null),[g,T]=(0,a.useState)(!0),[_,f]=(0,a.useState)(!1);(0,a.useEffect)(()=>{var t;if(null==(t=e.scrollableContainerRef)?void 0:t.current)p.current=e.scrollableContainerRef.current;else if(c.current)for(let e=0;e<c.current.children.length;e++){let t=c.current.children[e];if(t){let e=window.getComputedStyle(t);if("auto"===e.overflowX||"scroll"===e.overflowX||t.scrollWidth>t.clientWidth){p.current=t;return}}}},[e.scrollableContainerRef]);let v=(0,a.useCallback)(t=>{let o=()=>{if(p.current){let o=p.current.clientWidth/(e.numberOfItems?e.numberOfItems:1);p.current.scrollBy({left:(t?1:-1)*o,behavior:"smooth"})}};requestAnimationFrame(o),h.current=setInterval(()=>{requestAnimationFrame(o)},200)},[e.numberOfItems]),E=(0,a.useCallback)(()=>{if(!h.current&&p.current){let{scrollLeft:e,scrollWidth:t,clientWidth:o}=p.current;0===e?T(!0):T(!1),e>=t-o-1?f(!0):f(!1)}},[]),y=(0,a.useCallback)(()=>{h.current&&(clearInterval(h.current),h.current=null,E())},[E]),S=(0,a.useCallback)((0,l.D)(()=>{E()},50),[E]);return(0,a.useEffect)(()=>{let e=p.current;return e&&(e.addEventListener("scroll",S),E()),()=>{e&&e.removeEventListener("scroll",S)}},[S,E]),(0,a.useEffect)(()=>{var t;let o=null==(t=e.scrollableContainerRef)?void 0:t.current;if(!o)return;let n=new MutationObserver(()=>{E()});return n.observe(o,{childList:!0,subtree:!0,characterData:!0}
115),()=>n.disconnect()},[e.scrollableContainerRef,E]),(0,a.useEffect)(()=>{let e=()=>{E()};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[E]),a.createElement(d,{ref:c,style:e.containerStyle,"data-testid":e.testId,className:e.className,showIndicatorAlways:e.showIndicatorAlways},e.showPrevNextIndicators&&!g?a.createElement(u,(0,r._)((0,n._)({onMouseDown:v.bind(null,!1),onMouseUp:y,onMouseLeave:y,style:e.prevArrowContainerStyle},e.testId&&{"data-testid":`${e.testId}/prev`}),{onClick:e.onPrevArrowClicked}),null!=(t=e.prevArrow)?t:a.createElement(s.Z,null)):null,e.showPrevNextIndicators&&!_?a.createElement(m,(0,r._)((0,n._)({onMouseDown:v.bind(null,!0),onMouseUp:y,onMouseLeave:y,style:e.nextArrowContainerStyle},e.testId&&{"data-testid":`${e.testId}/next`}),{onClick:e.onNextArrowClicked}),null!=(o=e.nextArrow)?o:a.createElement(i.Z,null)):null,e.children)})}}]);

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.